/** * @license AngularJS v1.6.9 * (c) 2010-2018 Google, Inc. http://angularjs.org * License: MIT */ /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if(function(e){"use strict";function t(e){if(!x(e))return Zr;w(e.objectMaxDepth)&&(Zr.objectMaxDepth=n(e.objectMaxDepth)?e.objectMaxDepth:NaN)}function n(e){return $(e)&&e>0}function r(e,t){return t=t||Error,function(){var n,r,i=arguments[0],o=arguments[1],a="["+(e?e+":":"")+i+"] ",s=q(arguments,2).map(function(e){return Se(e,Zr.objectMaxDepth)});for(a+=o.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(k(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(vi(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r=0&&e.splice(n,1),n}function B(e,t,r){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(vi(e))for(var o=0,s=e.length;o2?q(arguments,2):[];return!k(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,W(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function X(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:A(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":D(n)&&(r="$SCOPE"),r}function Z(e,t){if(!b(e))return $(t)||(t=t?2:null),JSON.stringify(e,X,t)}function K(e){return S(e)?JSON.parse(e):e}function J(e,t){e=e.replace(Si,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return mi(n)?t:n}function Q(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function ee(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return Q(e,n*(J(t,r)-r))}function te(e){e=oi(e).clone().empty();var t=oi("
").append(e).html();try{return e[0].nodeType===Ai?ei(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+ei(t)})}catch(e){return ei(t)}}function ne(e){try{return decodeURIComponent(e)}catch(e){}}function re(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=ne(r),w(r)&&(i=!w(i)||ne(i),Qr.call(t,r)?vi(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function ie(e){var t=[];return o(e,function(e,n){vi(e)?o(e,function(e){t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}):t.push(ae(n,!0)+(!0===e?"":"="+ae(e,!0)))}),t.length?t.join("&"):""}function oe(e){return ae(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ae(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function se(e,t){var n,r,i=$i.length;for(r=0;r protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==se(r,"strict-di"),n(r,i?[i]:[],a)}}function ue(t,n,r){x(r)||(r={}),r=d({strictDi:!1},r);var i=function(){if(t=oi(t),t.injector()){var i=t[0]===e.document?"document":te(t);throw fi("btstrpd","App already bootstrapped with this element '{0}'",i.replace(//,">"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=ut(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),hi.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},k(hi.resumeDeferredBootstrap)&&hi.resumeDeferredBootstrap()}function ce(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function de(e){var t=hi.element(e).injector();if(!t)throw fi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function pe(e,t){return t=t||"_",e.replace(Ti,function(e,n){return(n?t:"")+e.toLowerCase()})}function fe(e,t,n){if(!e)throw fi("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function he(e,t,n){return n&&vi(e)&&(e=e[e.length-1]),fe(k(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function ge(e,t){if("hasOwnProperty"===e)throw fi("badname","hasOwnProperty is not a valid {0} name",t)}function me(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s=0)return"...";r.push(t)}return t})}function Se(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):b(e)?"undefined":"string"!=typeof e?Ce(e,t):e}function $e(){return++Ii}function Ee(e){return ke(e.replace(Ni,"ms-"))}function Te(e,t){return t.toUpperCase()}function ke(e){return e.replace(Fi,Te)}function _e(e){return!Hi.test(e)}function Ae(e){var t=e.nodeType;return t===_i||!t||t===Mi}function De(e){for(var t in Ri[e.ng339])return!0;return!1}function Me(e,t){var n,r,i,a,s=t.createDocumentFragment(),l=[];if(_e(e))l.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),r=(zi.exec(e)||["",""])[1].toLowerCase(),i=Ui[r]||Ui._default,n.innerHTML=i[1]+e.replace(Bi,"<$1>")+i[2],a=i[0];a--;)n=n.lastChild;l=W(l,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(l,function(e){s.appendChild(e)}),s}function Oe(t,n){n=n||e.document;var r;return(r=ji.exec(t))?[n.createElement(r[1])]:(r=Me(t,n))?r.childNodes:[]}function Pe(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Re(e){if(e instanceof Re)return e;var t;if(S(e)&&(e=bi(e),t=!0),!(this instanceof Re)){if(t&&"<"!==e.charAt(0))throw Vi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Re(e)}t?Ue(this,Oe(e)):k(e)?Ze(e):Ue(this,e)}function Ie(e){return e.cloneNode(!0)}function Fe(e,t){!t&&Ae(e)&&oi.cleanData([e]),e.querySelectorAll&&oi.cleanData(e.querySelectorAll("*"))}function Ne(e,t,n,r){if(w(r))throw Vi("offargs","jqLite#off() does not support the `selector` argument");var i=Ve(e),a=i&&i.events,s=i&&i.handle;if(s)if(t){var l=function(t){var r=a[t];w(n)&&z(r||[],n),w(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete a[t])};o(t.split(" "),function(e){l(e),Li[e]&&l(Li[e])})}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t]}function Le(e,t){var n=e.ng339,r=n&&Ri[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Ne(e)),delete Ri[n],e.ng339=void 0}}function Ve(e,t){var n=e.ng339,r=n&&Ri[n];return t&&!r&&(e.ng339=n=$e(),r=Ri[n]={events:{},data:{},handle:void 0}),r}function je(e,t,n){if(Ae(e)){var r,i=w(n),o=!i&&t&&!x(t),a=!t,s=Ve(e,!o),l=s&&s.data;if(i)l[ke(t)]=n;else{if(a)return l;if(o)return l&&l[ke(t)];for(r in t)l[ke(r)]=t[r]}}}function He(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function ze(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=bi(e),r=r.replace(" "+e+" "," ")}),r!==n&&e.setAttribute("class",bi(r))}}function Be(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=bi(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")}),r!==n&&e.setAttribute("class",bi(r))}}function Ue(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r1&&(i=xe(i));for(var l=0;lu&&this.remove(f.key),t}},get:function(e){if(u";var r=De.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function B(e,t){try{e.addClass(t)}catch(e){}}function W(e,t,n,r,i){e instanceof oi||(e=oi(e));var o=Z(e,t,e,n,r,i);W.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw ho("multilink","This element has already been linked.");fe(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),r=r||{};var s=r.parentBoundTranscludeFn,l=r.transcludeControllers,u=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=X(u));var c;if(c="html"!==a?oi(be(a,oi("
").append(e).html())):n?Wi.clone.call(e):e,l)for(var d in l)c.data("$"+d+"Controller",l[d].instance);return W.$$addScopeInfo(c,t),n&&n(c,t),o&&o(t,c,c,s),n||(e=o=null),c}}function X(e){var t=e&&e[0];return t&&"foreignobject"!==j(t)&&di.call(t).match(/SVG/)?"svg":"html"}function Z(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,l,u,c,d,p,g;if(f){var m=n.length;for(g=new Array(m),u=0;u0);else r.push(e);return oi(r)}function re(e,t,n){return function(r,i,o,a,s){return i=ne(i[0],t,n),e(r,i,o,a,s)}}function ie(e,t,n,r,i,o){var a;return e?W(t,n,r,i,o):function(){return a||(a=W(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function oe(e,t,n,i,a,s,l,u,c){function p(e,t,n,r){e&&(n&&(e=re(e,n,r)),e.require=h.require,e.directiveName=g,($===h||h.$$isolateScope)&&(e=Se(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=re(t,n,r)),t.require=h.require,t.directiveName=g,($===h||h.$$isolateScope)&&(t=Se(t,{isolateScope:!0})),u.push(t))}function f(e,i,a,s,c){function p(e,t,n,r){var i;if(D(e)||(r=n,n=t,t=e,e=void 0),O&&(i=y),n||(n=O?T.parent():T),!r)return c(e,t,i,n,L);var o=c.$$slots[r];if(o)return o(e,t,i,n,L);if(b(o))throw ho("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,te(T))}var f,h,g,m,v,y,w,T,_,A;t===a?(_=n,T=n.$$element):(T=oi(a),_=new V(T,n)),v=i,$?m=i.$new(!0):C&&(v=i.$parent),c&&(w=p,w.$$boundTransclude=c,w.isSlotFilled=function(e){return!!c.$$slots[e]}),S&&(y=se(T,_,w,S,m,i,$)),$&&(W.$$addScopeInfo(T,m,!0,!(E&&(E===$||E===$.$$originalDirective))),W.$$addScopeClass(T,!0),m.$$isolateBindings=$.$$isolateBindings,A=Te(i,_,m,m.$$isolateBindings,$),A.removeWatches&&m.$on("$destroy",A.removeWatches));for(var P in y){var R=S[P],I=y[P],F=R.$$bindings.bindToController;if(M){I.bindingInfo=F?Te(v,_,I.instance,F,R):{};var N=I();N!==I.instance&&(I.instance=N,T.data("$"+R.name+"Controller",N),I.bindingInfo.removeWatches&&I.bindingInfo.removeWatches(),I.bindingInfo=Te(v,_,I.instance,F,R))}else I.instance=I(),T.data("$"+R.name+"Controller",I.instance),I.bindingInfo=Te(v,_,I.instance,F,R)}for(o(S,function(e,t){var n=e.require;e.bindToController&&!vi(n)&&x(n)&&d(y[t].instance,ae(t,n,T,y))}),o(y,function(e){var t=e.instance;if(k(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(k(t.$onInit))try{t.$onInit()}catch(e){r(e)}k(t.$doCheck)&&(v.$watch(function(){t.$doCheck()}),t.$doCheck()),k(t.$onDestroy)&&v.$on("$destroy",function(){t.$onDestroy()})}),f=0,h=l.length;f=0;f--)g=u[f],$e(g,g.isolateScope?m:i,T,_,g.require&&ae(g.directiveName,g.require,T,y),w);o(y,function(e){var t=e.instance;k(t.$postLink)&&t.$postLink()})}c=c||{};for(var h,g,m,v,y,w=-Number.MAX_VALUE,C=c.newScopeDirective,S=c.controllerDirectives,$=c.newIsolateScopeDirective,E=c.templateDirective,T=c.nonTlbTranscludeDirective,_=!1,A=!1,O=c.hasElementTranscludeDirective,P=n.$$element=oi(t),R=s,I=i,F=!1,N=!1,L=0,H=e.length;Lh.priority)break;if(y=h.scope,y&&(h.templateUrl||(x(y)?(me("new/isolated scope",$||C,h,P),$=h):me("new/isolated scope",$,h,P)),C=C||h),g=h.name,!F&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var U,G=L+1;U=e[G++];)if(U.transclude&&!U.$$tlb||U.replace&&(U.templateUrl||U.template)){N=!0;break}F=!0}if(!h.templateUrl&&h.controller&&(S=S||ye(),me("'"+g+"' controller",S[g],h,P),S[g]=h),y=h.transclude)if(_=!0,h.$$tlb||(me("transclusion",T,h,P),T=h),"element"===y)O=!0,w=h.priority,m=P,P=n.$$element=oi(W.$$createComment(g,n[g])),t=P[0],Ce(a,q(m),t),m[0].$$parentNode=m[0].parentNode,I=ie(N,m,i,w,R&&R.name,{nonTlbTranscludeDirective:T});else{var X=ye();if(x(y)){m=[];var Z=ye(),K=ye();o(y,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,Z[e]=t,X[t]=null,K[t]=n}),o(P.contents(),function(e){var t=Z[Ct(j(e))];t?(K[t]=!0,X[t]=X[t]||[],X[t].push(e)):m.push(e)}),o(K,function(e,t){if(!e)throw ho("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var J in X)X[J]&&(X[J]=ie(N,X[J],i))}else m=oi(Ie(t)).contents();P.empty(),I=ie(N,m,i,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope}),I.$$slots=X}if(h.template)if(A=!0,me("template",E,h,P),E=h,y=k(h.template)?h.template(P,n):h.template,y=Ne(y),h.replace){if(R=h,m=_e(y)?[]:$t(be(h.templateNamespace,bi(y))),t=m[0],1!==m.length||t.nodeType!==_i)throw ho("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g,"");Ce(a,P,t);var ee={$attr:{}},oe=Q(t,[],ee),ue=e.splice(L+1,e.length-(L+1));($||C)&&le(oe,$,C),e=e.concat(oe).concat(ue),de(n,ee),H=e.length}else P.html(y);if(h.templateUrl)A=!0,me("template",E,h,P),E=h,h.replace&&(R=h),f=he(e.splice(L,e.length-L),P,n,a,_&&I,l,u,{controllerDirectives:S,newScopeDirective:C!==h&&C,newIsolateScopeDirective:$,templateDirective:E,nonTlbTranscludeDirective:T}),H=e.length;else if(h.compile)try{v=h.compile(P,n,I);var ce=h.$$originalDirective||h;k(v)?p(null,Y(ce,v),z,B):v&&p(Y(ce,v.pre),Y(ce,v.post),z,B)}catch(e){r(e,te(P))}h.terminal&&(f.terminal=!0,w=Math.max(w,h.priority))}return f.scope=C&&!0===C.scope,f.transcludeOnThisElement=_,f.templateOnThisElement=A,f.transclude=I,c.hasElementTranscludeDirective=O,f}function ae(e,t,n,r){var i;if(S(t)){var a=t.match($),s=t.substring(a[0].length),l=a[1]||a[3],u="?"===a[2];if("^^"===l?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var c="$"+s+"Controller";i=l?n.inheritedData(c):n.data(c)}if(!i&&!u)throw ho("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(vi(t)){i=[];for(var d=0,p=t.length;dd.priority)&&-1!==d.restrict.indexOf(r)){if(s&&(d=h(d,{$$start:s,$$end:l})),!d.$$bindings){var v=d.$$bindings=i(d,d.name);x(v.isolateScope)&&(d.$$isolateBindings=v.isolateScope)}e.push(d),u=d}return u}function ce(e){if(c.hasOwnProperty(e))for(var n,r=t.get(e+p),i=0,o=r.length;i"+n+"",r.childNodes[0].childNodes;default:return n}}function we(e,t){if("srcdoc"===t)return v.HTML;var n=j(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(n))return v.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t||"link"===n&&"href"===t)return v.RESOURCE_URL}function xe(e,t,r,i,o){var a=we(e,i),s=!o,l=C[i]||o,u=n(r,s,a,l);if(u){if("multiple"===i&&"select"===j(e))throw ho("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",te(e));if(E.test(i))throw ho("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=ye()),c=o[i];c!==r&&(u=c&&n(c,!0,a,l),r=c),u&&(o[i]=u(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(u,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function Ce(t,n,r){var i,o,a=n[0],s=n.length,l=a.parentNode;if(t)for(i=0,o=t.length;i0&&_.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&_.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=St(e,t);n&&n.length&&_.addClass(this.$$element,n);var r=St(t,e);r&&r.length&&_.removeClass(this.$$element,r)},$set:function(e,t,n,i){var a,s=this.$$element[0],l=Ke(s,e),u=Je(e),c=e;if(l?(this.$$element.prop(e,t),i=l):u&&(this[u]=t,c=u),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=pe(e,"-")),"a"===(a=j(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=N(t,"src"===e);else if("img"===a&&"srcset"===e&&w(t)){for(var d="",p=bi(t),f=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(p)?f:/(,)/,g=p.split(h),m=Math.floor(g.length/2),v=0;v0?" ":"")+a}return n}function $t(e){e=oi(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Di||n.nodeType===Ai&&""===n.nodeValue.trim())&&ui.call(e,t,1)}return e}function Et(e,t){if(t&&S(t))return t;if(S(e)){var n=bo.exec(e);if(n)return n[3]}}function Tt(){var e={},t=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){ge(t,"controller"),x(t)?d(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(n,i){function o(e,t,n,i){if(!e||!x(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,a,s,l){var u,c,p,f;if(s=!0===s,l&&S(l)&&(f=l),S(r)){if(!(c=r.match(bo)))throw yo("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(p=c[1],f=f||c[3],!(r=e.hasOwnProperty(p)?e[p]:me(a.$scope,p,!0)||(t?me(i,p,!0):void 0)))throw yo("ctrlreg","The controller with the name '{0}' is not registered.",p);he(r,p,!0)}if(s){var h=(vi(r)?r[r.length-1]:r).prototype;return u=Object.create(h||null),f&&o(a,f,u,p||r.name),d(function(){var e=n.invoke(r,u,a,p);return e!==u&&(x(e)||k(e))&&(u=e,f&&o(a,f,u,p||r.name)),u},{instance:u,identifier:f})}return u=n.instantiate(r,a,p),f&&o(a,f,u,p||r.name),u}}]}function kt(){this.$get=["$window",function(e){return oi(e.document)}]}function _t(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function At(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Dt(e){return x(e)?E(e)?e.toISOString():Z(e):e}function Mt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||b(e)||k(e)||(vi(e)?o(e,function(e){t.push(ae(n)+"="+ae(Dt(e)))}):t.push(ae(n)+"="+ae(Dt(e))))}),t.join("&")}}}function Ot(){this.$get=function(){return function(e){function t(e,r,i){null===e||b(e)||(vi(e)?o(e,function(e,n){t(e,r+"["+(x(e)?n:"")+"]")}):x(e)&&!E(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(ae(r)+"="+ae(Dt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Pt(e,t){if(S(e)){var n=e.replace(Eo,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf(xo);if(i||Rt(n))try{e=K(n)}catch(t){if(!i)return e;throw To("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function Rt(e){var t=e.match(So);return t&&$o[t[0]].test(e)}function It(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=ye();return S(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(ei(bi(e.substr(0,n))),bi(e.substr(n+1)))}):x(e)&&o(e,function(e,n){t(ei(n),bi(e))}),r}function Ft(e){var t;return function(n){if(t||(t=It(e)),n){var r=t[ei(n)];return void 0===r&&(r=null),r}return t}}function Nt(e,t,n,r){return k(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function Lt(e){return 200<=e&&e<300}function Vt(){var e=this.defaults={transformResponse:[Pt],transformRequest:[function(e){return!x(e)||M(e)||P(e)||O(e)?e:Z(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:xe(Co),put:xe(Co),patch:xe(Co)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return w(e)?(t=!!e,this):t};var n=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,a,s,l,u,c,p,f){function h(t){function n(e,t){for(var n=0,r=t.length;n=-1?t:0,(Lt(t)?E.resolve:E.reject)({data:e,status:t,headers:Ft(r),config:n,statusText:i,xhrStatus:o})}function p(e){d(e.data,e.status,xe(e.headers()),e.statusText,e.xhrStatus)}function g(){var e=h.pendingRequests.indexOf(n);-1!==e&&h.pendingRequests.splice(e,1)}var m,$,E=c.defer(),T=E.promise,k=n.headers,_="jsonp"===ei(n.method),A=n.url;if(_?A=f.getTrustedResourceUrl(A):S(A)||(A=f.valueOf(A)),A=v(A,n.paramSerializer(n.params)),_&&(A=y(A,n.jsonpCallbackParam)),h.pendingRequests.push(n),T.then(g,g),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(m=x(n.cache)?n.cache:x(e.cache)?e.cache:C),m&&($=m.get(A),w($)?I($)?$.then(p,p):vi($)?d($[1],$[0],xe($[2]),$[3],$[4]):d($,200,{},"OK","complete"):m.put(A,T)),b($)){var D=Un(n.url)?s()[n.xsrfCookieName||e.xsrfCookieName]:void 0;D&&(k[n.xsrfHeaderName||e.xsrfHeaderName]=D),a(n.method,A,r,l,k,n.timeout,n.withCredentials,n.responseType,i(n.eventHandlers),i(n.uploadEventHandlers))}return T}function v(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function y(e,t){var n=e.split("?");if(n.length>2)throw To("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return o(re(n[1]),function(n,r){if("JSON_CALLBACK"===n)throw To("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw To("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)}),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var C=l("$http");e.paramSerializer=S(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var $=[];return o(n,function(e){$.unshift(S(e)?p.get(e):p.invoke(e))}),h.pendingRequests=[],function(e){o(arguments,function(e){h[e]=function(t,n){return h(d({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){h[e]=function(t,n,r){return h(d({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),h.defaults=e,h}]}function jt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Ht(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return zt(e,r,e.defer,t,n[0])}]}function zt(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,l="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),l=e.type,s="error"===e.type?404:200),n&&n(s,l)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,l,u,c,d,p,f,h,g){function m(){x&&x(),C&&C.abort()}function v(e,t,r,i,o,a){w(T)&&n.cancel(T),x=C=null,e(t,r,i,o,a)}if(s=s||e.url(),"jsonp"===ei(i))var y=r.createCallback(s),x=a(s,y,function(e,t){var n=200===e&&r.getResponse(y);v(u,e,n,"",t,"complete"),r.removeCallback(y)});else{var C=t(i,s);C.open(i,s,!0),o(c,function(e,t){w(e)&&C.setRequestHeader(t,e)}),C.onload=function(){var e=C.statusText||"",t="response"in C?C.response:C.responseText,n=1223===C.status?204:C.status;0===n&&(n=t?200:"file"===Bn(s).protocol?404:0),v(u,n,t,C.getAllResponseHeaders(),e,"complete")};var S=function(){v(u,-1,null,null,"","error")},$=function(){v(u,-1,null,null,"","abort")},E=function(){v(u,-1,null,null,"","timeout")};if(C.onerror=S,C.onabort=$,C.ontimeout=E,o(h,function(e,t){C.addEventListener(t,e)}),o(g,function(e,t){C.upload.addEventListener(t,e)}),p&&(C.withCredentials=!0),f)try{C.responseType=f}catch(e){if("json"!==f)throw e}C.send(b(l)?null:l)}if(d>0)var T=n(m,d);else I(d)&&d.then(m)}}function Bt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(p,e).replace(f,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function l(o,l,p,f){function h(e){try{return e=A(e),f&&!w(e)?e:be(e)}catch(e){r(ko.interr(o,e))}}if(!o.length||-1===o.indexOf(e)){var g;if(!l){g=v(a(o)),g.exp=o,g.expressions=[],g.$$watchDelegate=s}return g}f=!!f;for(var m,y,x,C=0,S=[],$=[],E=o.length,T=[],k=[];C1&&ko.throwNoconcat(o),!l||S.length){var _=function(e){for(var t=0,n=S.length;t4,p=d?q(arguments,4):[],f=t.setInterval,h=t.clearInterval,g=0,m=w(u)&&!u,v=(m?r:n).defer(),y=v.promise;return l=w(l)?l:0,y.$$intervalId=f(function(){m?i.defer(c):e.$evalAsync(c),v.notify(g++),l>0&&g>=l&&(v.resolve(g),h(y.$$intervalId),delete a[y.$$intervalId]),m||e.$apply()},s),a[y.$$intervalId]=v,y}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(Dn(a[e.$$intervalId].promise),a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Gt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=oe(t[n].replace(/%2F/g,"/"));return t.join("/")}function Wt(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}function qt(e,t){var n=Bn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=f(n.port)||Do[n.protocol]||null}function Yt(e,t,n){if(Oo.test(e))throw Mo("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=Bn(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=Wt(o,n),t.$$search=re(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Xt(e,t){return e.slice(0,t.length)===t}function Zt(e,t){if(Xt(t,e))return t.substr(e.length)}function Kt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Jt(e){return e.replace(/(#.+)|#$/,"$1")}function Qt(e){return e.substr(0,Kt(e).lastIndexOf("/")+1)}function en(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function tn(e,t,n){this.$$html5=!0,n=n||"",qt(e,this),this.$$parse=function(e){var n=Zt(t,e);if(!S(n))throw Mo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Yt(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ie(this.$$search),n=this.$$hash?"#"+oe(this.$$hash):"";this.$$url=Gt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return w(o=Zt(e,r))?(a=o,s=n&&w(o=Zt(n,o))?t+(Zt("/",o)||o):e+a):w(o=Zt(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function nn(e,t,n){qt(e,this),this.$$parse=function(r){var i,o=Zt(e,r)||Zt(t,r);b(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",b(o)&&(e=r,this.replace())):(i=Zt(n,o),b(i)&&(i=o)),Yt(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return Xt(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=ie(this.$$search),r=this.$$hash?"#"+oe(this.$$hash):"";this.$$url=Gt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,n){return Kt(e)===Kt(t)&&(this.$$parse(t),!0)}}function rn(e,t,n){this.$$html5=!0,nn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e===Kt(r)?o=r:(a=Zt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=ie(this.$$search),r=this.$$hash?"#"+oe(this.$$hash):"";this.$$url=Gt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function on(e){return function(){return this[e]}}function an(e,t){return function(n){return b(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function sn(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return w(t)?(e=t,this):e},this.html5Mode=function(e){return R(e)?(t.enabled=e,this):x(e)?(R(e.enabled)&&(t.enabled=e.enabled),R(e.requireBase)&&(t.requireBase=e.requireBase),(R(e.rewriteLinks)||S(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=u.url(),o=u.$$state;try{r.url(e,t,n),u.$$state=r.state()}catch(e){throw u.url(i),u.$$state=o,e}}function l(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var u,c,d,p=r.baseHref(),f=r.url();if(t.enabled){if(!p&&t.requireBase)throw Mo("nobase","$location in HTML5 mode requires a tag to be present!");d=en(f)+(p||"/"),c=i.history?tn:rn}else d=Kt(f),c=nn;var h=Qt(d);u=new c(d,h,"#"+e),u.$$parseLinkUrl(f,f),u.$$state=r.state();var g=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=oi(e.target);"a"!==j(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!S(i)||!b(s.attr(i))){var l=s.prop("href"),c=s.attr("href")||s.attr("xlink:href");x(l)&&"[object SVGAnimatedString]"===l.toString()&&(l=Bn(l.animVal).href),g.test(l)||!l||s.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(l,c)&&(e.preventDefault(),u.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Jt(u.absUrl())!==Jt(f)&&r.url(u.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){if(!Xt(e,h))return void(a.location.href=e);n.$evalAsync(function(){var r,i=u.absUrl(),o=u.$$state;e=Jt(e),u.$$parse(e),u.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(r?(u.$$parse(i),u.$$state=o,s(i,!1,o)):(m=!1,l(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){if(m||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var e=Jt(r.url()),t=Jt(u.absUrl()),o=r.state(),a=u.$$replace,c=e!==t||u.$$html5&&i.history&&o!==u.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var t=u.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,u.$$state,o).defaultPrevented;u.absUrl()===t&&(r?(u.$$parse(e),u.$$state=o):(c&&s(t,a,o===u.$$state?null:u.$$state),l(e,o)))}))}u.$$replace=!1}),u}]}function ln(){var e=!0,t=this;this.debugEnabled=function(t){return w(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return T(e)&&(e.stack&&a?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||g;return function(){var e=[];return o(arguments,function(t){e.push(r(t))}),Function.prototype.apply.call(i,t,e)}}var a=ii||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function un(e){return e+""}function cn(e,t){return void 0!==e?e:t}function dn(e,t){return void 0===e?t:void 0===t?e:e+t}function pn(e,t){return!e(t).$stateful}function fn(e,t){switch(e.type){case Vo.MemberExpression:if(e.computed)return!1;break;case Vo.UnaryExpression:return jo;case Vo.BinaryExpression:return"+"!==e.operator&&jo;case Vo.CallExpression:return!1}return void 0===t?Ho:t}function hn(e,t,n){var r,i,a,s=e.isPure=fn(e,n);switch(e.type){case Vo.Program:r=!0,o(e.body,function(e){hn(e.expression,t,s),r=r&&e.expression.constant}),e.constant=r;break;case Vo.Literal:e.constant=!0,e.toWatch=[];break;case Vo.UnaryExpression:hn(e.argument,t,s),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break ;case Vo.BinaryExpression:hn(e.left,t,s),hn(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Vo.LogicalExpression:hn(e.left,t,s),hn(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Vo.ConditionalExpression:hn(e.test,t,s),hn(e.alternate,t,s),hn(e.consequent,t,s),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Vo.Identifier:e.constant=!1,e.toWatch=[e];break;case Vo.MemberExpression:hn(e.object,t,s),e.computed&&hn(e.property,t,s),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Vo.CallExpression:a=!!e.filter&&pn(t,e.callee.name),r=a,i=[],o(e.arguments,function(e){hn(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=a?i:[e];break;case Vo.AssignmentExpression:hn(e.left,t,s),hn(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Vo.ArrayExpression:r=!0,i=[],o(e.elements,function(e){hn(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case Vo.ObjectExpression:r=!0,i=[],o(e.properties,function(e){hn(e.value,t,s),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(hn(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case Vo.ThisExpression:case Vo.LocalsExpression:e.constant=!1,e.toWatch=[]}}function gn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function mn(e){return e.type===Vo.Identifier||e.type===Vo.MemberExpression}function vn(e){if(1===e.body.length&&mn(e.body[0].expression))return{type:Vo.AssignmentExpression,left:e.body[0].expression,right:{type:Vo.NGValueParameter},operator:"="}}function yn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Vo.Literal||e.body[0].expression.type===Vo.ArrayExpression||e.body[0].expression.type===Vo.ObjectExpression)}function bn(e){return e.constant}function wn(e){this.$filter=e}function xn(e){this.$filter=e}function Cn(e,t,n){this.ast=new Vo(e,n),this.astCompiler=n.csp?new xn(t):new wn(t)}function Sn(e){return k(e.valueOf)?e.valueOf():Io.call(e)}function $n(){var e,t,n=ye(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t){var r,o;switch(typeof e){case"string":if(e=e.trim(),o=e,!(r=n[o])){r=new Cn(new Lo(m),i,m).parse(e),r.constant?r.$$watchDelegate=p:r.oneTime?r.$$watchDelegate=r.literal?d:c:r.inputs&&(r.$$watchDelegate=u),n[o]=r}return f(r,t);case"function":return f(e,t);default:return f(g,t)}}function s(e){return new Cn(new Lo(m),i,m).getAst(e).ast}function l(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Sn(e))&&!n)&&(e===t||e!==e&&t!==t)}function u(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var s=l;return a=a[0],e.$watch(function(e){var t=a(e);return l(t,s,a.isPure)||(o=r(e,void 0,void 0,[t]),s=t&&Sn(t)),o},t,n,i)}for(var u=[],c=[],d=0,p=a.length;d0&&c(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return y(t,D,e)},function(t){return y(t,v,e)},t)}});var D=w;return $.prototype=s.prototype,$.defer=i,$.reject=v,$.when=w,$.resolve=D,$.all=C,$.race=S,$}function _n(e){return!!e.pur}function An(e){e.pur=!0}function Dn(e){An(e.$$state)}function Mn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function On(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=l(),this.$$ChildScope=null}return t.prototype=e,t}var t=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(r,u,c){function d(e){e.currentScope.$$destroyed=!0}function p(e){9===ii&&(e.$$childHead&&p(e.$$childHead),e.$$nextSibling&&p(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function f(){this.$id=l(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if($.$$phase)throw n("inprog","{0} already in progress",$.$$phase);$.$$phase=e}function m(){$.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function y(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function w(){}function C(){for(;_.length;)try{_.shift()()}catch(e){r(e)}s=null}function S(){null===s&&(s=c.defer(function(){$.$apply(C)}))}f.prototype={constructor:f,$new:function(t,n){var r;return n=n||this,t?(r=new f,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",d),r},$watch:function(e,t,n,r){var i=u(e),o=k(t)?t:g;if(i.$$watchDelegate)return i.$$watchDelegate(this,o,n,i,e);var s=this,l=s.$$watchers,c={fn:o,last:w,get:i,exp:r||e,eq:!!n};return a=null,l||(l=s.$$watchers=[],l.$$digestWatchIndex=-1),l.unshift(c),l.$$digestWatchIndex++,v(this,1),function(){var e=z(l,c);e>=0&&(v(s,-1),et){d++;for(n in a)Qr.call(o,n)||(m--,delete a[n])}}else a!==o&&(a=o,d++);return d}}function r(){if(g?(g=!1,t(o,o,l)):t(o,s,l),c)if(x(o))if(i(o)){s=new Array(o.length);for(var e=0;e1,d=0,p=u(e,n),f=[],h={},g=!0,m=0;return this.$watch(p,r)},$digest:function(){var e,i,o,l,u,d,p,f,g,v,y,b=t,x=this,S=[];h("$digest"),c.$$checkUrlChange(),this===$&&null!==s&&(c.defer.cancel(s),C()),a=null;do{p=!1,g=x;for(var _=0;_-1)throw zo("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=wi(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(_(e))return new RegExp("^"+e.source+"$");throw zo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Fn(e){var t=[];return w(e)&&o(e,function(e){t.push(In(e))}),t}function Nn(){this.SCE_CONTEXTS=Bo;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Fn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Fn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Un(t):!!e.exec(t.href)}function i(n){var i,o,a=Bn(n.toString()),s=!1;for(i=0,o=e.length;i to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=xe(Bo);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(Bo,function(e,t){var n=ei(t);r[Rn("parse_as_"+n)]=function(t){return i(e,t)},r[Rn("get_trusted_"+n)]=function(t){return a(e,t)},r[Rn("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function Vn(){this.$get=["$window","$document",function(e,t){var n={},r=e.nw&&e.nw.process,i=!r&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),o=!i&&e.history&&e.history.pushState,a=f((/android (\d+)/.exec(ei((e.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},u=l.body&&l.body.style,c=!1,d=!1;return u&&(c=!!("transition"in u||"webkitTransition"in u),d=!!("animation"in u||"webkitAnimation"in u)),{history:!(!o||a<4||s),hasEvent:function(e){if("input"===e&&ii)return!1;if(b(n[e])){var t=l.createElement("div");n[e]="on"+e in t}return n[e]},csp:xi(),transitions:c,animations:d,android:a}}]}function jn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,l){function u(e){return l||(e=Go("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)}a.totalPendingRequests++,S(s)&&!b(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=r.defaults&&r.defaults.transformResponse;return vi(c)?c=c.filter(function(e){return e!==Pt}):c===Pt&&(c=null),r.get(s,d({cache:n,transformResponse:c},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data),e.data},u)}return a.totalPendingRequests=0,a}]}function Hn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=hi.element(e).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+wi(t)+"(\\s|\\||$)").test(r)&&i.push(e)}else-1!==r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i0&&(u=n(a.substring(0,l)),b(i[u])&&(i[u]=n(a.substring(l+1))));return i}}function qn(){this.$get=Wn}function Yn(e){function t(r,i){if(x(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Qn),t("date",hr),t("filter",Xn),t("json",gr),t("limitTo",mr),t("lowercase",ea),t("number",er),t("orderBy",yr),t("uppercase",ta)}function Xn(){return function(e,t,n,o){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s,l=Jn(t);switch(l){case"function":a=t;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=Zn(t,n,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function Zn(e,t,n,r){var i=x(e)&&n in e;return!0===t?t=G:k(t)||(t=function(e,t){return!b(e)&&(null===e||null===t?e===t:!(x(t)||x(e)&&!y(e))&&(e=ei(""+e),t=ei(""+t),-1!==e.indexOf(t)))}),function(o){return i&&!x(o)?Kn(o,e[n],t,n,!1):Kn(o,e,t,n,r)}}function Kn(e,t,n,r,i,o){var a=Jn(e),s=Jn(t);if("string"===s&&"!"===t.charAt(0))return!Kn(e,t.substring(1),n,r,i);if(vi(e))return e.some(function(e){return Kn(e,t,n,r,i)});switch(a){case"object":var l;if(i){for(l in e)if(l.charAt&&"$"!==l.charAt(0)&&Kn(e[l],t,n,r,!0))return!0;return!o&&Kn(e,t,n,r,!1)}if("object"===s){for(l in t){var u=t[l];if(!k(u)&&!b(u)){var c=l===r;if(!Kn(c?e:e[l],u,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Jn(e){return null===e?"null":typeof e}function Qn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){b(n)&&(n=t.CURRENCY_SYM),b(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:rr(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function er(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:rr(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function tr(e){var t,n,r,i,o,a=0;for((n=e.indexOf(Xo))>-1&&(e=e.replace(Xo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===Zo;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Zo;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>Yo&&(t=t.splice(0,Yo-1),a=n-1,n=1),{d:t,e:a,i:n}}function nr(e,t,n,r){var i=e.d,o=i.length-e.i;t=b(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var l=a;l=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o0?f=c.splice(d,c.length):(f=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&h.unshift(c.join("")),u=h.join(n),f.length&&(u+=r+f.join("")),p&&(u+="e+"+p)}return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function ir(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),ir(a,t,r,i)}}function ar(e,t,n){return function(r,i){var o=r["get"+e]();return i[ti((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function sr(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=ir(Math[r>0?"floor":"ceil"](r/60),2)+ir(Math.abs(r%60),2)}function lr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function ur(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function cr(e){return function(t){var n=lr(t.getFullYear()),r=ur(t),i=+r-+n;return ir(1+Math.round(i/6048e5),e)}}function dr(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function pr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function fr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function hr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=f(t[9]+t[10]),o=f(t[9]+t[11])),a.call(r,f(t[1]),f(t[2])-1,f(t[3]));var l=f(t[4]||0)-i,u=f(t[5]||0)-o,c=f(t[6]||0),d=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,l,u,c,d),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,l="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,S(n)&&(n=Qo.test(n)?f(n):t(n)),$(n)&&(n=new Date(n)),!E(n)||!isFinite(n.getTime()))return n;for(;r;)s=Jo.exec(r),s?(u=W(u,s,1),r=u.pop()):(u.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=J(i,c),n=ee(n,i,!0)),o(u,function(t){a=Ko[t],l+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function gr(){return function(e,t){return b(t)&&(t=2),Z(e,t)}}function mr(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):f(t),mi(t)?e:($(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:f(n),n=n<0?Math.max(0,e.length+n):n,t>=0?vr(e,n,n+t):0===n?vr(e,t,e.length):vr(e,Math.max(0,n+t),n)):e)}}function vr(e,t,n){return S(e)?e.slice(t,n):li.call(e,t,n)}function yr(e){function t(t){return t.map(function(t){var n=1,r=m;if(k(t))r=t;else if(S(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return k(e.valueOf)&&(e=e.valueOf(),n(e))?e:(y(e)&&(e=e.toString(),n(e)),e)}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(x(o)&&(o=e.index),x(a)&&(a=t.index)),o!==a&&(n=o=g},a.$observe("min",function(e){g=p(e),s.$validate()})}if(w(a.max)||a.ngMax){var m;s.$validators.max=function(e){return!d(e)||b(m)||n(e)<=m},a.$observe("max",function(e){m=p(e),s.$validate()})}}}function Mr(e,t,n,r){var i=t[0];(r.$$hasNativeValidators=x(i.validity))&&r.$parsers.push(function(e){var n=t.prop(Jr)||{};return n.badInput||n.typeMismatch?void 0:e})}function Or(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:pa.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!$(t))throw Ua("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Pr(e){return w(e)&&!$(e)&&(e=parseFloat(e)),mi(e)?void 0:e}function Rr(e){return(0|e)===e}function Ir(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1=a},n.$observe("min",function(e){a=Pr(e),r.$validate()})),(w(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||b(s)||e<=s},n.$observe("max",function(e){s=Pr(e),r.$validate()})),w(n.step)||n.ngStep){var l;r.$validators.step=function(e,t){return r.$isEmpty(t)||b(l)||Fr(t,a||0,l)},n.$observe("step",function(e){l=Pr(e),r.$validate()})}}function Lr(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]),n.$observe(e,r)}function s(e){if(d=Pr(e),!mi(r.$modelValue))if(c){var n=t.val();d>n&&(n=d,t.val(n)),r.$setViewValue(n)}else r.$validate()}function l(e){if(p=Pr(e),!mi(r.$modelValue))if(c){var n=t.val();p=d},a("min",s)),m&&(r.$validators.max=c?function(){return!0}:function(e,t){return r.$isEmpty(t)||b(p)||t<=p},a("max",l)),v&&(r.$validators.step=c?function(){return!h.stepMismatch}:function(e,t){return r.$isEmpty(t)||b(f)||Fr(t,d||0,f)},a("step",u))}function Vr(e,t,n,r,i,o){kr(e,t,n,r,i,o),Er(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||ca.test(n)}}function jr(e,t,n,r,i,o){kr(e,t,n,r,i,o),Er(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||da.test(n)}}function Hr(e,t,n,r){var i=!n.ngTrim||"false"!==bi(n.ngTrim);b(n.name)&&t.attr("name",l());var o=function(e){var o;t[0].checked&&(o=n.value,i&&(o=bi(o)),r.$setViewValue(o,e&&e.type))};t.on("click",o),r.$render=function(){var e=n.value;i&&(e=bi(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)}function zr(e,t,n,r,i){var o;if(w(r)){if(o=e(r),!o.constant)throw Ua("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function Br(e,t,n,r,i,o,a,s){var l=zr(s,e,"ngTrueValue",n.ngTrueValue,!0),u=zr(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return G(e,l)}),r.$parsers.push(function(e){return e?l:u})}function Ur(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r0||E[e])&&(E[e]=(E[e]||0)+t,E[e]===+(t>0)&&n.push(e))}),n.join(" ")}function m(e){e===t?p(b):f(b),T=e}function v(e){var t=i(e);t!==b&&y(t)}function y(e){T===t&&h(b,e),b=e}var b,w=d[e].trim(),x=":"===w.charAt(0)&&":"===w.charAt(1),C=x?a:i,S=l(w,C),$=x?v:y,E=c.data("$classCounts"),T=!0;E||(E=ye(),c.data("$classCounts",E)),"ngClass"!==e&&(s||(s=l("$index",function(e){return 1&e})),u.$watch(s,m)),u.$watch(S,$,x)}}}]}function Gr(e,t,n,r,i,o,a,s,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(e),this.$$parentForm=ia,this.$options=Ga,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,"$$scope",{value:e}),this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,Cr(this),Wr(this)}function Wr(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);return n===e.$modelValue||e.$modelValue!==e.$modelValue&&n!==n||e.$$setModelValue(n),n})}function qr(e){this.$$options=e}function Yr(e,t){o(t,function(t,n){w(e[n])||(e[n]=t)})}function Xr(e,t){e.prop("selected",t),e.attr("selected",t)}var Zr={objectMaxDepth:5},Kr=/^\/(.+)\/([a-z]*)$/,Jr="validity",Qr=Object.prototype.hasOwnProperty,ei=function(e){return S(e)?e.toLowerCase():e},ti=function(e){return S(e)?e.toUpperCase():e},ni=function(e){return S(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},ri=function(e){return S(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(ei=ni,ti=ri);var ii,oi,ai,si,li=[].slice,ui=[].splice,ci=[].push,di=Object.prototype.toString,pi=Object.getPrototypeOf,fi=r("ng"),hi=e.angular||(e.angular={}),gi=0;ii=e.document.documentMode;var mi=Number.isNaN||function(e){return e!==e};g.$inject=[],m.$inject=[];var vi=Array.isArray,yi=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,bi=function(e){return S(e)?e.trim():e},wi=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#(?:<\/\1>|)$/,Hi=/<|&#?\w+;/,zi=/<([\w:-]+)/,Bi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ui={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ui.optgroup=Ui.option,Ui.tbody=Ui.tfoot=Ui.colgroup=Ui.caption=Ui.thead,Ui.th=Ui.td;var Gi=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Wi=Re.prototype={ready:Ze,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return oi(e>=0?this[e]:this[this.length+e])},length:0,push:ci,sort:[].sort,splice:[].splice},qi={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){qi[ei(e)]=e});var Yi={};o("input,select,option,textarea,button,form,details".split(","),function(e){Yi[e]=!0});var Xi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:je,removeData:Le,hasData:De,cleanData:function(e){for(var t=0,n=e.length;t=0?t.split(" "):[t],l=s.length,u=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};l--;)t=s[l],Li[t]?(u(Li[t],tt),u(t,void 0,!0)):u(t)}},off:Ne,one:function(e,t,n){e=oi(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Fe(e),o(new Re(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===_i&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===_i||n===Oi){t=new Re(t);for(var r=0,i=t.length;r/,eo=/^[^(]*\(\s*([^)]*)\)/m,to=/,/,no=/^\s*(_?)(\S+?)\1\s*$/,ro=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,io=r("$injector");ut.$$annotate=lt;var oo=r("$animate"),ao=1,so=function(){this.$get=g},lo=function(){var e=new Ki,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=S(t)?t.split(" "):vi(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=ft(t.attr("class")),i="",a="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Be(e,i),a&&ze(e,a)}),e.delete(t)}}),t.length=0}function s(n,o,s){var l=e.get(n)||{},u=i(l,o,!0),c=i(l,s,!1);(u||c)&&(e.set(n,l),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:g,on:g,off:g,pin:g,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},uo=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw oo("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=k(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){if(new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,oo("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=pt(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&oi(r),i=i&&oi(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",ht(o))},move:function(n,r,i,o){return r=r&&oi(r),i=i&&oi(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",ht(o))},leave:function(t,n){return e.push(t,"leave",ht(n),function(){t.remove()})},addClass:function(t,n,r){return r=ht(r),r.addClass=dt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=ht(r),r.removeClass=dt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=ht(i),i.addClass=dt(i.addClass,n),i.removeClass=dt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=ht(o),o.from=o.from?d(o.from,n):n,o.to=o.to?d(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=dt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],co=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e <= >= && || ! = |".split(" "),function(e){Fo[e]=!0});var No={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Lo=function(e){this.options=e};Lo.prototype={constructor:Lo,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=w(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Ro("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:Vo.Program,body:e}},expressionStatement:function(){return{type:Vo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!mn(e))throw Ro("lval","Trying to assign a value to a non l-value");e={type:Vo.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:Vo.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Vo.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Vo.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Vo.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Vo.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Vo.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Vo.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Vo.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=B(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Vo.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:Vo.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Vo.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Vo.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Vo.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Vo.Identifier,name:e.text}},constant:function(){return{type:Vo.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Vo.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Vo.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Vo.ObjectExpression,properties:t}},throwError:function(e,t){throw Ro("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Ro("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Ro("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text ;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:Vo.ThisExpression},$locals:{type:Vo.LocalsExpression}}};var jo=1,Ho=2;wn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},hn(e,t.$filter);var n,r="";if(this.stage="assign",n=vn(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=gn(e.body);t.stage="inputs",o(a,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",l=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,un,cn,dn);return this.state=this.stage=void 0,l},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),t.length&&e.push("fn.inputs=["+t.map(function(e){return e.name}).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var s,l,u,c,d,p=this;if(r=r||g,!a&&w(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case Vo.Program:o(e.body,function(t,n){p.recurse(t.expression,void 0,void 0,function(e){l=e}),n!==e.body.length-1?p.current().body.push(l,";"):p.return_(l)});break;case Vo.Literal:c=this.escape(e.value),this.assign(t,c),r(t||c);break;case Vo.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){l=e}),c=e.operator+"("+this.ifDefined(l,0)+")",this.assign(t,c),r(c);break;case Vo.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){l=e}),c="+"===e.operator?this.plus(s,l):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(l,0):"("+s+")"+e.operator+"("+l+")",this.assign(t,c),r(c);break;case Vo.LogicalExpression:t=t||this.nextId(),p.recurse(e.left,t),p.if_("&&"===e.operator?t:p.not(t),p.lazyRecurse(e.right,t)),r(t);break;case Vo.ConditionalExpression:t=t||this.nextId(),p.recurse(e.test,t),p.if_(t,p.lazyRecurse(e.alternate,t),p.lazyRecurse(e.consequent,t)),r(t);break;case Vo.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",e.name)),function(){p.if_("inputs"===p.stage||"s",function(){i&&1!==i&&p.if_(p.isNull(p.nonComputedMember("s",e.name)),p.lazyAssign(p.nonComputedMember("s",e.name),"{}")),p.assign(t,p.nonComputedMember("s",e.name))})},t&&p.lazyAssign(t,p.nonComputedMember("l",e.name))),r(t);break;case Vo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),p.recurse(e.object,s,void 0,function(){p.if_(p.notNull(s),function(){e.computed?(l=p.nextId(),p.recurse(e.property,l),p.getStringValue(l),i&&1!==i&&p.if_(p.not(p.computedMember(s,l)),p.lazyAssign(p.computedMember(s,l),"{}")),c=p.computedMember(s,l),p.assign(t,c),n&&(n.computed=!0,n.name=l)):(i&&1!==i&&p.if_(p.isNull(p.nonComputedMember(s,e.property.name)),p.lazyAssign(p.nonComputedMember(s,e.property.name),"{}")),c=p.nonComputedMember(s,e.property.name),p.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){p.assign(t,"undefined")}),r(t)},!!i);break;case Vo.CallExpression:t=t||this.nextId(),e.filter?(l=p.filter(e.callee.name),u=[],o(e.arguments,function(e){var t=p.nextId();p.recurse(e,t),u.push(t)}),c=l+"("+u.join(",")+")",p.assign(t,c),r(t)):(l=p.nextId(),s={},u=[],p.recurse(e.callee,l,s,function(){p.if_(p.notNull(l),function(){o(e.arguments,function(t){p.recurse(t,e.constant?void 0:p.nextId(),void 0,function(e){u.push(e)})}),c=s.name?p.member(s.context,s.name,s.computed)+"("+u.join(",")+")":l+"("+u.join(",")+")",p.assign(t,c)},function(){p.assign(t,"undefined")}),r(t)}));break;case Vo.AssignmentExpression:l=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){p.if_(p.notNull(s.context),function(){p.recurse(e.right,l),c=p.member(s.context,s.name,s.computed)+e.operator+l,p.assign(t,c),r(t||c)})},1);break;case Vo.ArrayExpression:u=[],o(e.elements,function(t){p.recurse(t,e.constant?void 0:p.nextId(),void 0,function(e){u.push(e)})}),c="["+u.join(",")+"]",this.assign(t,c),r(t||c);break;case Vo.ObjectExpression:u=[],d=!1,o(e.properties,function(e){e.computed&&(d=!0)}),d?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(s=p.nextId(),p.recurse(e.key,s)):s=e.key.type===Vo.Identifier?e.key.name:""+e.key.value,l=p.nextId(),p.recurse(e.value,l),p.assign(p.member(t,s,e.computed),l)})):(o(e.properties,function(t){p.recurse(t.value,e.constant?void 0:p.nextId(),void 0,function(e){u.push(p.escape(t.key.type===Vo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+u.join(",")+"}",this.assign(t,c)),r(t||c);break;case Vo.ThisExpression:this.assign(t,"s"),r(t||"s");break;case Vo.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case Vo.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(S(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if($(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Ro("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},xn.prototype={compile:function(e){var t=this;hn(e,t.$filter);var n,r;(n=vn(e))&&(r=this.recurse(n));var i,a=gn(e.body);a&&(i=[],o(a,function(e,n){var r=t.recurse(e);r.isPure=e.isPure,e.input=r,i.push(r),e.watchId=n}));var s=[];o(e.body,function(e){s.push(t.recurse(e.expression))});var l=0===e.body.length?g:1===e.body.length?s[0]:function(e,t){var n;return o(s,function(r){n=r(e,t)}),n};return r&&(l.assign=function(e,t,n){return r(e,n,t)}),i&&(l.inputs=i),l},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Vo.Literal:return this.value(e.value,t);case Vo.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case Vo.BinaryExpression:case Vo.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case Vo.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Vo.Identifier:return s.identifier(e.name,t,n);case Vo.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case Vo.CallExpression:return a=[],o(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],l=0;l":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var l=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:l}:l}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var l=s?s[e]:void 0;return t?{context:s,name:e,value:l}:l}},computedMember:function(e,t,n,r){return function(i,o,a,s){var l,u,c=e(i,o,a,s);return null!=c&&(l=t(i,o,a,s),l=un(l),r&&1!==r&&c&&!c[l]&&(c[l]={}),u=c[l]),n?{context:c,name:l,value:u}:u}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var l=e(i,o,a,s);r&&1!==r&&l&&null==l[t]&&(l[t]={});var u=null!=l?l[t]:void 0;return n?{context:l,name:t,value:u}:u}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Cn.prototype={constructor:Cn,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=yn(t.ast),n.constant=bn(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return e=e.trim(),":"===e.charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var zo=r("$sce"),Bo={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Uo=/_([a-z])/g,Go=r("$compile"),Wo=e.document.createElement("a"),qo=Bn(e.location.href);Wn.$inject=["$document"],Yn.$inject=["$provide"];var Yo=22,Xo=".",Zo="0";Qn.$inject=["$locale"],er.$inject=["$locale"];var Ko={yyyy:or("FullYear",4,0,!1,!0),yy:or("FullYear",2,0,!0,!0),y:or("FullYear",1,0,!1,!0),MMMM:ar("Month"),MMM:ar("Month",!0),MM:or("Month",2,1),M:or("Month",1,1),LLLL:ar("Month",!1,!0),dd:or("Date",2),d:or("Date",1),HH:or("Hours",2),H:or("Hours",1),hh:or("Hours",2,-12),h:or("Hours",1,-12),mm:or("Minutes",2),m:or("Minutes",1),ss:or("Seconds",2),s:or("Seconds",1),sss:or("Milliseconds",3),EEEE:ar("Day"),EEE:ar("Day",!0),a:dr,Z:sr,ww:cr(2),w:cr(1),G:pr,GG:pr,GGG:pr,GGGG:fr},Jo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Qo=/^-?\d+$/;hr.$inject=["$locale"];var ea=v(ei),ta=v(ti);yr.$inject=["$parse"];var na=v({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===di.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),ra={};o(qi,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=Ct("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),ra[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(Xi,function(e,t){ra[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(Kr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=Ct("ng-"+e);ra[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===di.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){if(!t)return void("href"===e&&i.$set(a,null));i.$set(a,t),ii&&o&&r.prop(o,i[a])})}}}});var ia={$addControl:g,$$renameControl:wr,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},oa="ng-pending";xr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],xr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){ge(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),z(this.$$controls,e),e.$$parentForm=ia},$setDirty:function(){this.$$animate.removeClass(this.$$element,za),this.$$animate.addClass(this.$$element,Ba),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,za,Ba+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},Sr({clazz:xr,set:function(e,t,n){var r=e[t];if(r){-1===r.indexOf(n)&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(z(r,n),0===r.length&&delete e[t])}});var aa=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||g}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:xr,compile:function(n,i){n.addClass(za).addClass(ja);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var l=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",l),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",l)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var u=o?r(s.$name):g;o&&(u(e,s),i.$observe(o,function(t){s.$name!==t&&(u(e,void 0),s.$$parentForm.$$renameControl(s,t),(u=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),u(e,void 0),d(s,ia)})}}}}}]},sa=aa(),la=aa(!0),ua=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ca=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,da=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,pa=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,fa=/^(\d{4,})-(\d{2})-(\d{2})$/,ha=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ga=/^(\d{4,})-W(\d\d)$/,ma=/^(\d{4,})-(\d\d)$/,va=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ya="keydown wheel mousedown",ba=ye();o("date,datetime-local,month,time,week".split(","),function(e){ba[e]=!0});var wa={text:Tr,date:Dr("date",fa,Ar(fa,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Dr("datetimelocal",ha,Ar(ha,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Dr("time",va,Ar(va,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Dr("week",ga,_r,"yyyy-Www"),month:Dr("month",ma,Ar(ma,["yyyy","MM"]),"yyyy-MM"),number:Nr,url:Vr,email:jr,radio:Hr,range:Lr,checkbox:Br,hidden:g,button:g,submit:g,reset:g,file:g},xa=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(wa[ei(a.type)]||wa.text)(i,o,a,s[0],t,e,n,r)}}}}],Ca=/^(true|false|\d+)$/,Sa=function(){function e(e,t,n){var r=w(n)?n:9===ii?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Ca.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},$a=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=be(e)})}}}}],Ea=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=b(e)?"":e})}}}}],Ta=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],ka=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),_a=Ur("",!0),Aa=Ur("Odd",0),Da=Ur("Even",1),Ma=br({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Oa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Pa={},Ra={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Ct("ng-"+e);Pa[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t]);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};Ra[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Ia=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,l,u;n.$watch(i.ngIf,function(n){n?l||a(function(n,o){l=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),l&&(l.$destroy(),l=null),s&&(u=ve(s.clone),e.leave(u).done(function(e){!1!==e&&(u=null)}),s=null))})}}}],Fa=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:hi.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,l,u,c){var d,p,f,h=0,g=function(){p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(n.leave(f).done(function(e){!1!==e&&(p=null)}),p=f,f=null)};r.$watch(o,function(o){var l=function(e){!1===e||!w(s)||s&&!r.$eval(s)||t()},p=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&p===h){var t=r.$new();u.template=e;var s=c(t,function(e){g(),n.enter(e,null,i).done(l)});d=t,f=s,d.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||p===h&&(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),u.template=null)})}}}}],Na=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(di.call(r[0]).match(/SVG/))return r.empty(),void t(Me(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],La=br({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Va=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?bi(i):i,l=function(e){if(!b(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(a?bi(e):e)}),t}};r.$parsers.push(l),r.$formatters.push(function(e){if(vi(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},ja="ng-valid",Ha="ng-invalid",za="ng-pristine",Ba="ng-dirty",Ua=r("ngModel");Gr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Gr.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return k(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){k(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Ua("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,te(this.$$element))},$render:g,$isEmpty:function(e){return b(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Ba),this.$$animate.addClass(this.$$element,za)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,za),this.$$animate.addClass(this.$$element,Ba),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!mi(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function i(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;return function(){var e=s.$$parserName||"parse";return b(s.$$parserValid)?(r(e,null),!0):(s.$$parserValid||(o(s.$validators,function(e,t){r(t,null)}),o(s.$asyncValidators,function(e,t){r(t,null)})),r(e,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(e,t));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(e,t){r(t,null)}),!1)}()?void function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(e,t);if(!I(s))throw Ua("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},g):i(!0)}():void i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!b(n)||void 0,this.$$parserValid)for(var i=0;i0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,g))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Sr({clazz:Gr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Ga,Wa=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Gr,priority:1,compile:function(t){return t.addClass(za).addClass("ng-untouched").addClass(ja),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$$setUpdateOnEvents(),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],qa=/(\s+|^)default(\s+|$)/;qr.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=d({},e),o(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=bi(n.replace(qa,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],Yr(e,this.$$options)),Yr(e,Ga.$$options),new qr(e)}},Ga=new qr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Ya=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Ga,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Xa=br({terminal:!0,priority:1e3}),Za=r("ngOptions"),Ka=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Ja=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!u&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(Ka);if(!s)throw Za("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,te(t));var l=s[5]||s[7],u=s[6],c=/ as /.test(s[0])&&s[1],d=s[9],p=r(s[2]?s[1]:l),f=c&&r(c),h=f||p,g=d&&r(d),m=d?function(e,t){return g(n,t)}:function(e){return rt(e)},v=function(e,t){return m(e,S(e,t))},y=r(s[2]||s[1]),b=r(s[3]||""),w=r(s[4]||""),x=r(s[8]),C={},S=u?function(e,t){return C[u]=t,C[l]=e,C}:function(e){return C[l]=e,C};return{trackBy:d,getTrackByValue:v,getWatchables:r(x,function(e){var t=[];e=e||[];for(var r=a(e),i=r.length,o=0;o=0;t--){var n=C.items[t];Ye(w(n.group)?n.element.parentNode:n.element)}C=S.getOptions();var i={};if(C.items.forEach(function(e){var t;w(e.group)?(t=i[e.group],t||(t=u.cloneNode(!1),$.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),c(e,t)):c(e,$)}),r[0].appendChild($),g.$render(),!g.$isEmpty(e)){var o=h.readValue();(S.trackBy||m?G(e,o):e===o)||(g.$setViewValue(o),g.$render())}}for(var h=s[0],g=s[1],m=i.multiple,v=0,y=r.children(),b=y.length;v0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,te(t));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||b(o)||o.test(t)}}}}},ms=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=f(e);i=mi(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},vs=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=f(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load AngularJS more than once."));!function(){var t;if(!ki){var n=Ci();ai=b(n)?e.jQuery:n?e[n]:void 0,ai&&ai.fn.on?(oi=ai,d(ai.fn,{scope:Wi.scope,isolateScope:Wi.isolateScope,controller:Wi.controller,injector:Wi.injector,inheritedData:Wi.inheritedData}),t=ai.cleanData,ai.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=ai._data(r,"events"))&&n.$destroy&&ai(r).triggerHandler("$destroy");t(e)}):oi=Re,hi.element=oi,ki=!0}}(),function(n){d(n,{errorHandlingConfig:t,bootstrap:ue,copy:B,extend:d,merge:p,equals:G,element:oi,forEach:o,injector:ut,noop:g,bind:Y,toJson:Z,fromJson:K,identity:m,isUndefined:b,isDefined:w,isString:S,isFunction:k,isObject:x,isNumber:$,isElement:L,isArray:vi,version:Pi,isDate:E,lowercase:ei,uppercase:ti,callbacks:{$$counter:0},getTestability:de,reloadWithDebugInfo:ce,$$minErr:r,$$csp:xi,$$encodeUriSegment:oe,$$encodeUriQuery:ae,$$stringify:be}),si=we(e),si("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Pn}),e.provider("$compile",wt).directive({a:na,input:xa,textarea:xa,form:sa,script:us,select:ps,option:fs,ngBind:$a,ngBindHtml:Ta,ngBindTemplate:Ea,ngClass:_a,ngClassEven:Da,ngClassOdd:Aa,ngCloak:Ma,ngController:Oa,ngForm:la,ngHide:ns,ngIf:Ia,ngInclude:Fa,ngInit:La,ngNonBindable:Xa,ngPluralize:Qa,ngRepeat:es,ngShow:ts,ngStyle:rs,ngSwitch:is,ngSwitchWhen:os,ngSwitchDefault:as,ngOptions:Ja,ngTransclude:ls,ngModel:Wa,ngList:Va,ngChange:ka,pattern:gs,ngPattern:gs,required:hs,ngRequired:hs,minlength:vs,ngMinlength:vs,maxlength:ms,ngMaxlength:ms,ngValue:Sa,ngModelOptions:Ya}).directive({ngInclude:Na}).directive(ra).directive(Pa),e.provider({$anchorScroll:ct,$animate:uo,$animateCss:fo,$$animateJs:so,$$animateQueue:lo,$$AnimateRunner:po,$$animateAsyncRun:co,$browser:mt,$cacheFactory:vt,$controller:Tt,$document:kt,$$isDocumentHidden:_t,$exceptionHandler:At,$filter:Yn,$$forceReflow:wo,$interpolate:Bt,$interval:Ut,$http:Vt,$httpParamSerializer:Mt,$httpParamSerializerJQLike:Ot,$httpBackend:Ht,$xhrFactory:jt,$jsonpCallbacks:_o,$location:sn,$log:ln,$parse:$n,$rootScope:On,$q:En,$$q:Tn,$sce:Ln,$sceDelegate:Nn,$sniffer:Vn,$templateCache:yt,$templateRequest:jn,$$testability:Hn,$timeout:zn,$window:Gn,$$rAF:Mn,$$jqLite:nt,$$Map:Ji,$$cookieReader:qn})}]).info({angularVersion:"1.6.9"})}(hi),hi.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),oi(function(){le(e.document,ue)})}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(''),/*! * State-based routing for AngularJS * @version v1.0.0-beta.3 * @link https://ui-router.github.io * @license MIT License, http://www.opensource.org/licenses/MIT */ function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("angular")):"function"==typeof define&&define.amd?define("angular-ui-router",["angular"],t):"object"==typeof exports?exports["angular-ui-router"]=t(require("angular")):e["angular-ui-router"]=t(e.angular)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(1)),r(n(53)),r(n(55)),r(n(58)),n(60),n(61),n(62),n(63),Object.defineProperty(t,"__esModule",{value:!0}),t.default="ui.router"},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(2)),r(n(46)),r(n(47)),r(n(48)),r(n(49)),r(n(50)),r(n(51)),r(n(52)),r(n(44));var i=n(25);t.UIRouter=i.UIRouter},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(3)),r(n(6)),r(n(7)),r(n(5)),r(n(4)),r(n(8)),r(n(9)),r(n(12))},function(e,t,n){"use strict";function r(e,t,n,r){return void 0===r&&(r=Object.keys(e)),r.filter(function(t){return"function"==typeof e[t]}).forEach(function(r){return t[r]=e[r].bind(n)})}function i(e){void 0===e&&(e={});for(var n=[],r=1;r=0&&e.splice(n,1),e}),t.defaults=i,t.merge=o,t.mergeR=function(e,n){return t.extend(e,n)},t.ancestors=a,t.equalForKeys=s,t.pick=u,t.omit=c,t.pluck=d,t.filter=p,t.find=f,t.mapObj=h,t.map=h,t.values=function(e){return Object.keys(e).map(function(t){return e[t]})},t.allTrueR=function(e,t){return e&&t},t.anyTrueR=function(e,t){return e||t},t.unnestR=function(e,t){return e.concat(t)},t.flattenR=function(e,n){return T.isArray(n)?e.concat(n.reduce(t.flattenR,[])):g(e,n)},t.pushR=g,t.uniqR=function(e,n){return t.inArray(e,n)?e:g(e,n)},t.unnest=function(e){return e.reduce(t.unnestR,[])},t.flatten=function(e){return e.reduce(t.flattenR,[])},t.assertPredicate=m,t.pairs=function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},t.arrayTuples=v,t.applyPairs=y,t.tail=b,t.silenceUncaughtInPromise=function(e){return e.catch(function(e){return 0})&&e},t.silentRejection=function(e){return t.silenceUncaughtInPromise(_.services.$q.reject(e))}},function(e,t,n){"use strict";function r(e){if(t.isArray(e)&&e.length){var n=e.slice(0,-1),r=e.slice(-1);return!(n.filter(i.not(t.isString)).length||r.filter(i.not(t.isFunction)).length)}return t.isFunction(e)}var i=n(5),o=Object.prototype.toString,a=function(e){return function(t){return typeof t===e}};t.isUndefined=a("undefined"),t.isDefined=i.not(t.isUndefined),t.isNull=function(e){return null===e},t.isFunction=a("function"),t.isNumber=a("number"),t.isString=a("string"),t.isObject=function(e){return null!==e&&"object"==typeof e},t.isArray=Array.isArray,t.isDate=function(e){return"[object Date]"===o.call(e)},t.isRegExp=function(e){return"[object RegExp]"===o.call(e)},t.isInjectable=r,t.isPromise=i.and(t.isObject,i.pipe(i.prop("then"),t.isFunction))},function(e,t){"use strict";function n(e){function t(n){return n.length>=r?e.apply(null,n):function(){return t(n.concat([].slice.apply(arguments)))}}var n=[].slice.apply(arguments,[1]),r=e.length;return t(n)}function r(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function i(){for(var e=[],t=0;t-1},e.fromString=function(t){return this.is(t)?new e(t):null},e}();t.Glob=n},function(e,t){"use strict";var n=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=null),this._items=e,this._limit=t}return e.prototype.enqueue=function(e){var t=this._items;return t.push(e),this._limit&&t.length>this._limit&&t.shift(),e},e.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},e.prototype.clear=function(){var e=this._items;return this._items=[],e},e.prototype.size=function(){return this._items.length},e.prototype.remove=function(e){var t=this._items.indexOf(e);return t>-1&&this._items.splice(t,1)[0]},e.prototype.peekTail=function(){return this._items[this._items.length-1]},e.prototype.peekHead=function(){if(this.size())return this._items[0]},e}();t.Queue=n},function(e,t,n){"use strict";function r(e,t){return t.length<=e?t:t.substr(0,e-3)+"..."}function i(e,t){for(;t.length20)return"Too many Transition redirects (20+)";return e.self.abstract?"Cannot transition to abstract state '"+e.name+"'":g.Param.validates(e.parameters(),this.params())?!1===this.success?this._error:void 0:"Param values not valid for state '"+e.name+"'"},e.prototype.toString=function(){var e=this.from(),t=this.to(),n=function(e){return null!==e["#"]&&void 0!==e["#"]?e:a.omit(e,"#")};return"Transition#"+this.$id+"( '"+(s.isObject(e)?e.name:e)+"'"+a.toJson(n(this._treeChanges.from.map(l.prop("paramValues")).reduce(a.mergeR,{})))+" -> "+(this.valid()?"":"(X) ")+"'"+(s.isObject(t)?t.name:t)+"'"+a.toJson(n(this.params()))+" )"},e.diToken=e,e}();t.Transition=C},function(e,t,n){"use strict";function r(e){return e?"[ui-view#"+e.id+" tag in template from '"+(e.creationContext&&e.creationContext.name||"(root)")+"' state]: fqn: '"+e.fqn+"', name: '"+e.name+"@"+e.creationContext+"')":"ui-view (defunct)"}function i(e){return a.isNumber(e)?u[e]:u[u[e]]}var o=n(5),a=n(4),s=n(9),l=function(e){return"[ViewConfig#"+e.$id+" from '"+(e.viewDecl.$context.name||"(root)")+"' state]: target ui-view: '"+e.viewDecl.$uiViewName+"@"+e.viewDecl.$uiViewContextAnchor+"'"};!function(e){e[e.RESOLVE=0]="RESOLVE",e[e.TRANSITION=1]="TRANSITION",e[e.HOOK=2]="HOOK",e[e.UIVIEW=3]="UIVIEW",e[e.VIEWCONFIG=4]="VIEWCONFIG"}(t.Category||(t.Category={}));var u=t.Category,c=function(){function e(){this._enabled={},this.approximateDigests=0}return e.prototype._set=function(e,t){var n=this;t.length||(t=Object.keys(u).map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)}).map(function(e){return u[e]})),t.map(i).forEach(function(t){return n._enabled[t]=e})},e.prototype.enable=function(){for(var e=[],t=0;t "+r)}},e.prototype.traceTransitionIgnored=function(e){if(this.enabled(u.TRANSITION)){var t=e&&e.$id,n=this.approximateDigests,r=s.stringify(e);console.log("Transition #"+t+" Digest #"+n+": Ignored <> "+r)}},e.prototype.traceHookInvocation=function(e,t){if(this.enabled(u.HOOK)){var n=o.parse("transition.$id")(t),r=this.approximateDigests,i=o.parse("traceData.hookType")(t)||"internal",a=o.parse("traceData.context.state.name")(t)||o.parse("traceData.context")(t)||"unknown",l=s.functionToString(e.eventHook.callback);console.log("Transition #"+n+" Digest #"+r+": Hook -> "+i+" context: "+a+", "+s.maxLength(200,l))}},e.prototype.traceHookResult=function(e,t){if(this.enabled(u.HOOK)){var n=o.parse("transition.$id")(t),r=this.approximateDigests,i=s.stringify(e);console.log("Transition #"+n+" Digest #"+r+": <- Hook returned: "+s.maxLength(200,i))}},e.prototype.traceResolvePath=function(e,t,n){if(this.enabled(u.RESOLVE)){var r=n&&n.$id,i=this.approximateDigests,o=e&&e.toString();console.log("Transition #"+r+" Digest #"+i+": Resolving "+o+" ("+t+")")}},e.prototype.traceResolvableResolved=function(e,t){if(this.enabled(u.RESOLVE)){var n=t&&t.$id,r=this.approximateDigests,i=e&&e.toString(),o=s.stringify(e.data);console.log("Transition #"+n+" Digest #"+r+": <- Resolved "+i+" to: "+s.maxLength(200,o))}},e.prototype.traceError=function(e,t){if(this.enabled(u.TRANSITION)){var n=t&&t.$id,r=this.approximateDigests,i=s.stringify(t);console.log("Transition #"+n+" Digest #"+r+": <- Rejected "+i+", reason: "+e)}},e.prototype.traceSuccess=function(e,t){if(this.enabled(u.TRANSITION)){var n=t&&t.$id,r=this.approximateDigests,i=e.name,o=s.stringify(t);console.log("Transition #"+n+" Digest #"+r+": <- Success "+o+", final state: "+i)}},e.prototype.traceUIViewEvent=function(e,t,n){void 0===n&&(n=""),this.enabled(u.UIVIEW)&&console.log("ui-view: "+s.padString(30,e)+" "+r(t)+n)},e.prototype.traceUIViewConfigUpdated=function(e,t){this.enabled(u.UIVIEW)&&this.traceUIViewEvent("Updating",e," with ViewConfig from context='"+t+"'")},e.prototype.traceUIViewFill=function(e,t){this.enabled(u.UIVIEW)&&this.traceUIViewEvent("Fill",e," with: "+s.maxLength(200,t))},e.prototype.traceViewServiceEvent=function(e,t){this.enabled(u.VIEWCONFIG)&&console.log("VIEWCONFIG: "+e+" "+l(t))},e.prototype.traceViewServiceUIViewEvent=function(e,t){this.enabled(u.VIEWCONFIG)&&console.log("VIEWCONFIG: "+e+" "+r(t))},e}();t.Trace=c;var d=new c;t.trace=d},function(e,t,n){"use strict";var r=n(3),i=n(9),o=n(4),a=n(5),s=n(12),l=n(6),u=n(10),c=n(14),d={async:!0,rejectIfSuperseded:!0,current:r.noop,transition:null,traceData:{},bind:null},p=function(){function e(e,t,n,i){var o=this;this.transition=e,this.stateContext=t,this.eventHook=n,this.options=i,this.isSuperseded=function(){return o.options.current()!==o.options.transition},this.options=r.defaults(i,d)}return e.prototype.invokeHook=function(){var e=this,t=e.options,n=e.eventHook;if(s.trace.traceHookInvocation(this,t),t.rejectIfSuperseded&&this.isSuperseded())return u.Rejection.superseded(t.current()).toPromise();var r=n._deregistered?void 0:n.callback.call(t.bind,this.transition,this.stateContext);return this.handleHookResult(r)},e.prototype.handleHookResult=function(e){return this.isSuperseded()?u.Rejection.superseded(this.options.current()).toPromise():o.isPromise(e)?e.then(this.handleHookResult.bind(this)):(s.trace.traceHookResult(e,this.options),!1===e?u.Rejection.aborted("Hook aborted transition").toPromise():a.is(c.TargetState)(e)?u.Rejection.redirected(e).toPromise():void 0)},e.prototype.toString=function(){var e=this,t=e.options,n=e.eventHook,r=a.parse("traceData.hookType")(t)||"internal",o=a.parse("traceData.context.state.name")(t)||a.parse("traceData.context")(t)||"unknown",s=i.fnToString(n.callback);return r+" context: "+o+", "+i.maxLength(200,s)},e.runSynchronousHooks=function(e,t){void 0===t&&(t=!1);for(var n=[],r=0;r=0));)m(c.id),this._params.push(s.Param.fromPath(c.id,c.type,this.config.paramMap(c.cfg,!1),n)),this._segments.push(c.segment),g.push([c.segment,i.tail(this._params)]),h=p.lastIndex;d=t.substring(h);var y=d.indexOf("?");if(y>=0){var b=d.substring(y);if(d=d.substring(0,y),b.length>0)for(h=0;u=f.exec(b);)c=v(u,!0),m(c.id),this._params.push(s.Param.fromSearch(c.id,c.type,this.config.paramMap(c.cfg,!0),n)),h=p.lastIndex}this._segments.push(d),i.extend(this,{_compiled:g.map(function(e){return r.apply(null,e)}).concat(r(d)),prefix:this._segments[0]}),Object.freeze(this)}return e.prototype.append=function(e){return this._children.push(e),i.forEach(e._cache,function(t,n){return e._cache[n]=a.isArray(t)?[]:null}),e._cache.path=this._cache.path.concat(this),e},e.prototype.isRoot=function(){return 0===this._cache.path.length},e.prototype.toString=function(){return this.pattern},e.prototype.exec=function(e,t,n,r){var a=this;void 0===t&&(t={}),void 0===r&&(r={});var s=p(this._cache,"pattern",function(){return new RegExp(["^",i.unnest(a._cache.path.concat(a).map(o.prop("_compiled"))).join(""),!1===a.config.strict?"/?":"","$"].join(""),a.config.caseInsensitive?"i":void 0)}).exec(e);if(!s)return null;var u=this.parameters(),c=u.filter(function(e){return!e.isSearch()}),d=u.filter(function(e){return e.isSearch()}),f=this._cache.path.concat(this).map(function(e){return e._segments.length-1}).reduce(function(e,t){return e+t}),h={};if(f!==s.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");for(var g=0;g1&&r.sort(s(n,-1)),[t,r[0]]},u=function(t){var n=t[0],r=t[1];-1!==e.uiViews.indexOf(n)&&n.configUpdated(r)};e.uiViews.sort(s(t,1)).map(l).forEach(u)}}return e.prototype.rootContext=function(e){return this._rootContext=e||this._rootContext},e.prototype.viewConfigFactory=function(e,t){this._viewConfigFactories[e]=t},e.prototype.createViewConfig=function(e,t){var n=this._viewConfigFactories[t.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+t.$type);var r=n(e,t);return o.isArray(r)?r:[r]},e.prototype.deactivateViewConfig=function(e){a.trace.traceViewServiceEvent("<- Removing",e),r.removeFrom(this.viewConfigs,e)},e.prototype.activateViewConfig=function(e){a.trace.traceViewServiceEvent("-> Registering",e),this.viewConfigs.push(e)},e.prototype.registerUIView=function(e){a.trace.traceViewServiceUIViewEvent("-> Registering",e);var t=this.uiViews,n=function(t){return t.fqn===e.fqn};return t.filter(n).length&&a.trace.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",e),t.push(e),this.sync(),function(){if(-1===t.indexOf(e))return void a.trace.traceViewServiceUIViewEvent("Tried removing non-registered uiView",e);a.trace.traceViewServiceUIViewEvent("<- Deregistering",e),r.removeFrom(t)(e)}},e.prototype.available=function(){return this.uiViews.map(i.prop("fqn"))},e.prototype.active=function(){return this.uiViews.filter(i.prop("$config")).map(i.prop("name"))},e.normalizeUIViewTarget=function(e,t){void 0===t&&(t="");var n=t.split("@"),r=n[0]||"$default",i=o.isString(n[1])?n[1]:"^",a=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);(a&&(i=a[1],r=a[2]),"!"===r.charAt(0)&&(r=r.substr(1),i=""),/^(\^(?:\.\^)*)$/.exec(i))&&(i=i.split(".").reduce(function(e,t){return e.parent},e).name);return{uiViewName:r,uiViewContextAnchor:i}},e}();t.ViewService=s},function(e,t,n){"use strict";var r=n(39),i=n(40),o=n(41),a=n(3),s=function(){function e(e,t){this.urlRouterProvider=t,this.states={},this.listeners=[],this.matcher=new r.StateMatcher(this.states),this.builder=new i.StateBuilder(this.matcher,e),this.stateQueue=new o.StateQueueManager(this.states,this.builder,t,this.listeners);var n={name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0};(this._root=this.stateQueue.register(n)).navigable=null}return e.prototype.onStatesChanged=function(e){return this.listeners.push(e),function(){a.removeFrom(this.listeners)(e)}.bind(this)}, e.prototype.root=function(){return this._root},e.prototype.register=function(e){return this.stateQueue.register(e)},e.prototype._deregisterTree=function(e){var t=this,n=this.get().map(function(e){return e.$$state()}),r=function(e){var t=n.filter(function(t){return-1!==e.indexOf(t.parent)});return 0===t.length?t:t.concat(r(t))},i=r([e]),o=[e].concat(i).reverse();return o.forEach(function(e){t.urlRouterProvider.removeRule(e._urlRule),delete t.states[e.name]}),o},e.prototype.deregister=function(e){var t=this.get(e);if(!t)throw new Error("Can't deregister state; not found: "+e);var n=this._deregisterTree(t.$$state());return this.listeners.forEach(function(e){return e("deregistered",n.map(function(e){return e.self}))}),n},e.prototype.get=function(e,t){var n=this;if(0===arguments.length)return Object.keys(this.states).map(function(e){return n.states[e].self});var r=this.matcher.find(e,t);return r&&r.self||null},e.prototype.decorator=function(e,t){return this.builder.builder(e,t)},e}();t.StateRegistry=s},function(e,t,n){"use strict";var r=n(4),i=n(7),o=n(3),a=function(){function e(e){this._states=e}return e.prototype.isRelative=function(e){return e=e||"",0===e.indexOf(".")||0===e.indexOf("^")},e.prototype.find=function(e,t){if(e||""===e){var n=r.isString(e),a=n?e:e.name;this.isRelative(a)&&(a=this.resolvePath(a,t));var s=this._states[a];if(s&&(n||!(n||s!==e&&s.self!==e)))return s;if(n){var l=o.values(this._states).filter(function(e){return new i.Glob(e.name).matches(a)});return l.length>1&&console.log("stateMatcher.find: Found multiple matches for "+a+" using glob: ",l.map(function(e){return e.name})),l[0]}}},e.prototype.resolvePath=function(e,t){if(!t)throw new Error("No reference point given for path '"+e+"'");for(var n=this.find(t),r=e.split("."),i=0,o=r.length,a=n;i1?r:r[0]:c.isString(e)&&c.isFunction(t)?(n[e]=r,n[e].push(t),function(){return n[e].splice(n[e].indexOf(t,1))&&null}):void 0},e.prototype.build=function(e){var t=this,n=t.matcher,r=t.builders,i=this.parentName(e);if(i&&!n.find(i))return null;for(var o in r)if(r.hasOwnProperty(o)){var a=r[o].reduce(function(e,t){return function(n){return t(n,e)}},u.noop);e[o]=a(e)}return e},e.prototype.parentName=function(e){var t=e.name||"",n=t.split(".");if(n.length>1){if(e.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+t+")");return"**"===n.pop()&&n.pop(),n.join(".")}return e.parent?c.isString(e.parent)?e.parent:e.parent.name:""},e.prototype.name=function(e){var t=e.name;if(-1!==t.indexOf(".")||!e.parent)return t;var n=c.isString(e.parent)?e.parent:e.parent.name;return n?n+"."+t:t},e}();t.StateBuilder=w},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(42),a=function(){function e(e,t,n,r){this.states=e,this.builder=t,this.$urlRouterProvider=n,this.listeners=r,this.queue=[]}return e.prototype.register=function(e){var t=this,n=t.states,a=t.queue,s=t.$state,l=r.inherit(new o.State,r.extend({},e,{self:e,resolve:e.resolve||[],toString:function(){return e.name}}));if(!i.isString(l.name))throw new Error("State must have a valid name");if(n.hasOwnProperty(l.name)||-1!==r.pluck(a,"name").indexOf(l.name))throw new Error("State '"+l.name+"' is already defined");return a.push(l),this.$state&&this.flush(s),l},e.prototype.flush=function(e){for(var t=this,n=t.queue,r=t.states,i=t.builder,o=[],a=[],s={};n.length>0;){var l=n.shift(),u=i.build(l),c=a.indexOf(l);if(u){if(r.hasOwnProperty(l.name))throw new Error("State '"+name+"' is already defined");r[l.name]=l,this.attachRoute(e,l),c>=0&&a.splice(c,1),o.push(l)}else{var d=s[l.name];if(s[l.name]=n.length,c>=0&&d===n.length)return n.push(l),r;c<0&&a.push(l),n.push(l)}}return o.length&&this.listeners.forEach(function(e){return e("registered",o.map(function(e){return e.self}))}),r},e.prototype.autoFlush=function(e){this.$state=e,this.flush(e)},e.prototype.attachRoute=function(e,t){var n=this.$urlRouterProvider;!t.abstract&&t.url&&n.when(t.url,["$match","$stateParams",function(n,i){e.$current.navigable===t&&r.equalForKeys(n,i)||e.transitionTo(t,n,{inherit:!0,source:"url"})}],function(e){return t._urlRule=e})},e}();t.StateQueueManager=a},function(e,t,n){"use strict";var r=n(3),i=n(5),o=function(){function e(e){r.extend(this,e)}/** * @ngdoc function * @name ui.router.state.type:State#is * @methodOf ui.router.state.type:State * * @description * Compares the identity of the state against the passed value, which is either an object * reference to the actual `State` instance, the original definition object passed to * `$stateProvider.state()`, or the fully-qualified name. * * @param {Object} ref Can be one of (a) a `State` instance, (b) an object that was passed * into `$stateProvider.state()`, (c) the fully-qualified name of a state as a string. * @returns {boolean} Returns `true` if `ref` matches the current `State` instance. */ return e.prototype.is=function(e){return this===e||this.self===e||this.fqn()===e},e.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var e=this.parent.fqn();return e?e+"."+this.name:this.name},e.prototype.root=function(){return this.parent&&this.parent.root()||this},e.prototype.parameters=function(e){return e=r.defaults(e,{inherit:!0}),(e.inherit&&this.parent&&this.parent.parameters()||[]).concat(r.values(this.params))},e.prototype.parameter=function(e,t){return void 0===t&&(t={}),this.url&&this.url.parameter(e,t)||r.find(r.values(this.params),i.propEq("id",e))||t.inherit&&this.parent&&this.parent.parameter(e)},e.prototype.toString=function(){return this.fqn()},e}();t.State=o},function(e,t,n){"use strict";var r=n(3),i=n(4),o=n(8),a=n(6),s=n(20),l=n(21),u=n(30),c=n(10),d=n(14),p=n(22),f=n(7),h=n(3),g=n(3),m=n(17),v=function(){function e(t){this.router=t,this.invalidCallbacks=[],this._defaultErrorHandler=function(e){e instanceof Error&&e.stack?(console.error(e),console.error(e.stack)):e instanceof c.Rejection?(console.error(e.toString()),e.detail&&e.detail.stack&&console.error(e.detail.stack)):console.error(e)};var n=["current","$current","params","transition"],r=Object.keys(e.prototype).filter(function(e){return-1===n.indexOf(e)});g.bindFunctions(e.prototype,this,this,r)}return Object.defineProperty(e.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!0,configurable:!0}),e.prototype._handleInvalidTargetState=function(e,t){function n(){var e=f.dequeue();return void 0===e?c.Rejection.invalid(t.error()).toPromise():a.services.$q.when(e(t,i,h)).then(g).then(function(e){return e||n()})}var r=this,i=s.PathFactory.makeTargetState(e),l=this.router.globals,u=function(){return l.transitionHistory.peekTail()},p=u(),f=new o.Queue(this.invalidCallbacks.slice()),h=new m.ResolveContext(e).injector(),g=function(e){if(e instanceof d.TargetState){var t=e;return t=r.target(t.identifier(),t.params(),t.options()),t.valid()?u()!==p?c.Rejection.superseded().toPromise():r.transitionTo(t.identifier(),t.params(),t.options()):c.Rejection.invalid(t.error()).toPromise()}};return n()},e.prototype.onInvalid=function(e){return this.invalidCallbacks.push(e),function(){r.removeFrom(this.invalidCallbacks)(e)}.bind(this)},e.prototype.reload=function(e){return this.transitionTo(this.current,this.params,{reload:!i.isDefined(e)||e,inherit:!1,notify:!1})},e.prototype.go=function(e,t,n){var i={relative:this.$current,inherit:!0},o=r.defaults(n,i,u.defaultTransOpts);return this.transitionTo(e,t,o)},e.prototype.target=function(e,t,n){if(void 0===n&&(n={}),i.isObject(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");var r=this.router.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error("No such reload state '"+(i.isString(n.reload)?n.reload:n.reload.name)+"'");var o=r.matcher.find(e,n.relative);return new d.TargetState(e,o,t,n)},e.prototype.transitionTo=function(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n={});var o=this.router,s=o.globals,p=s.transitionHistory;n=r.defaults(n,u.defaultTransOpts),n=r.extend(n,{current:p.peekTail.bind(p)});var f=this.target(e,t,n),h=s.successfulTransitions.peekTail(),g=h?h.treeChanges().to:function(){return[new l.PathNode(i.router.stateRegistry.root())]}();if(!f.exists())return this._handleInvalidTargetState(g,f);if(!f.valid())return r.silentRejection(f.error());var m=function(e){return function(t){if(t instanceof c.Rejection){if(t.type===c.RejectType.IGNORED)return o.urlRouter.update(),a.services.$q.when(s.current);var n=t.detail;if(t.type===c.RejectType.SUPERSEDED&&t.redirected&&n instanceof d.TargetState){var r=e.redirect(n);return r.run().catch(m(r))}t.type===c.RejectType.ABORTED&&o.urlRouter.update()}return i.defaultErrorHandler()(t),a.services.$q.reject(t)}},v=this.router.transitionService.create(g,f),y=v.run().catch(m(v));return r.silenceUncaughtInPromise(y),r.extend(y,{transition:v})},e.prototype.is=function(e,t,n){n=r.defaults(n,{relative:this.$current});var o=this.router.stateRegistry.matcher.find(e,n.relative);if(i.isDefined(o))return this.$current===o&&(!i.isDefined(t)||null===t||p.Param.equals(o.parameters(),this.params,t))},e.prototype.includes=function(e,t,n){n=r.defaults(n,{relative:this.$current});var o=i.isString(e)&&f.Glob.fromString(e);if(o){if(!o.matches(this.$current.name))return!1;e=this.$current.name}var a=this.router.stateRegistry.matcher.find(e,n.relative),s=this.$current.includes;if(i.isDefined(a))return!!i.isDefined(s[a.name])&&(!t||h.equalForKeys(p.Param.values(a.parameters(),t),this.params,Object.keys(t)))},e.prototype.href=function(e,t,n){var o={lossy:!0,inherit:!0,absolute:!1,relative:this.$current};n=r.defaults(n,o),t=t||{};var a=this.router.stateRegistry.matcher.find(e,n.relative);if(!i.isDefined(a))return null;n.inherit&&(t=this.params.$inherit(t,this.$current,a));var s=a&&n.lossy?a.navigable:a;return s&&void 0!==s.url&&null!==s.url?this.router.urlRouter.href(s.url,p.Param.values(a.parameters(),t),{absolute:n.absolute}):null},e.prototype.defaultErrorHandler=function(e){return this._defaultErrorHandler=e||this._defaultErrorHandler},e.prototype.get=function(e,t){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(e,t||this.$current)},e}();t.StateService=v},function(e,t,n){"use strict";var r=n(45),i=n(8),o=n(3),a=function(){function e(e){var t=this;this.params=new r.StateParams,this.transitionHistory=new i.Queue([],1),this.successfulTransitions=new i.Queue([],1);var n=function(e){t.transition=e,t.transitionHistory.enqueue(e);var n=function(){t.successfulTransitions.enqueue(e),t.$current=e.$to(),t.current=t.$current.self,o.copy(e.params(),t.params)};e.onSuccess({},n,{priority:1e4});var r=function(){t.transition===e&&(t.transition=null)};e.promise.then(r,r)};e.onBefore({},n)}return e}();t.Globals=a},function(e,t,n){"use strict";var r=n(3),i=function(){function e(e){void 0===e&&(e={}),r.extend(this,e)}return e.prototype.$inherit=function(e,t,n){var i,o=r.ancestors(t,n),a={},s=[];for(var l in o)if(o[l]&&o[l].params&&(i=Object.keys(o[l].params),i.length))for(var u in i)s.indexOf(i[u])>=0||(s.push(i[u]),a[i[u]]=this[i[u]]);return r.extend({},a,e)},e}();t.StateParams=i},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(22)),r(n(28)),r(n(45)),r(n(24))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(21)),r(n(20))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(18)),r(n(19)),r(n(17))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(40)),r(n(42)),r(n(39)),r(n(41)),r(n(38)),r(n(43)),r(n(14))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(16)),r(n(15)),r(n(10)),r(n(11)),r(n(13)),r(n(30))},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}r(n(27)),r(n(23)),r(n(26)),r(n(29))},function(e,t,n){"use strict";!function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(37))},function(e,t,n){"use strict";function r(e){var t=d.services.$injector,n=t.get("$controller"),r=t.instantiate;try{var i;return t.instantiate=function(e){t.instantiate=r,i=t.annotate(e)},n(e,{$scope:{}}),i}finally{t.instantiate=r}}function i(e){function t(t,r,i,o,a,s){return o.$on("$locationChangeSuccess",function(e){return n.forEach(function(t){return t(e)})}),d.services.locationConfig.html5Mode=function(){var t=e.html5Mode();return(t=h.isObject(t)?t.enabled:t)&&i.history},d.services.location.setUrl=function(e,n){void 0===n&&(n=!1),t.url(e),n&&t.replace()},d.services.template.get=function(e){return a.get(e,{cache:s,headers:{Accept:"text/html"}}).then(f.prop("data"))},p.bindFunctions(t,d.services.location,t,["replace","url","path","search","hash"]),p.bindFunctions(t,d.services.locationConfig,t,["port","protocol","host"]),p.bindFunctions(r,d.services.locationConfig,r,["baseHref"]),C}C=new c.UIRouter,C.stateProvider=new b.StateProvider(C.stateRegistry,C.stateService),C.stateRegistry.decorator("views",v.ng1ViewsBuilder),C.stateRegistry.decorator("onExit",w.getStateHookBuilder("onExit")),C.stateRegistry.decorator("onRetain",w.getStateHookBuilder("onRetain")),C.stateRegistry.decorator("onEnter",w.getStateHookBuilder("onEnter")),C.viewService.viewConfigFactory("ng1",v.ng1ViewConfigFactory),p.bindFunctions(e,d.services.locationConfig,e,["hashPrefix"]);var n=[];d.services.location.onChange=function(e){return n.push(e),function(){return p.removeFrom(n)(e)}},this.$get=t,t.$inject=["$location","$browser","$sniffer","$rootScope","$http","$templateCache"]}function o(e,t){d.services.$injector=e,d.services.$q=t}function a(){return C.urlRouterProvider.$get=function(){return C.urlRouter.update(!0),this.interceptDeferred||C.urlRouter.listen(),C.urlRouter},C.urlRouterProvider}function s(){return C.stateProvider.$get=function(){return C.stateRegistry.stateQueue.autoFlush(C.stateService),C.stateService},C.stateProvider}function l(){return C.transitionService.$get=function(){return C.transitionService},C.transitionService}function u(e){e.$watch(function(){m.trace.approximateDigests++})}var c=n(25),d=n(6),p=n(3),f=n(5),h=n(4),g=n(54),m=n(12),v=n(55),y=n(56),b=n(58),w=n(59),x=n(57);x.module("ui.router.angular1",[]);x.module("ui.router.util",["ng","ui.router.init"]),x.module("ui.router.router",["ui.router.util"]),x.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),x.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),x.module("ui.router.compat",["ui.router"]),t.annotateController=r;var C=null;i.$inject=["$locationProvider"],x.module("ui.router.init",[]).provider("$uiRouter",i),o.$inject=["$injector","$q"],x.module("ui.router.init").run(o),x.module("ui.router.init").run(["$uiRouter",function(e){}]),x.module("ui.router.util").provider("$urlMatcherFactory",["$uiRouterProvider",function(){return C.urlMatcherFactory}]),x.module("ui.router.util").run(["$urlMatcherFactory",function(e){}]),x.module("ui.router.router").provider("$urlRouter",["$uiRouterProvider",a]),x.module("ui.router.router").run(["$urlRouter",function(e){}]),x.module("ui.router.state").provider("$state",["$uiRouterProvider",s]),x.module("ui.router.state").run(["$state",function(e){}]),x.module("ui.router.state").factory("$stateParams",["$uiRouter",function(e){return e.globals.params}]),x.module("ui.router.state").provider("$transitions",["$uiRouterProvider",l]),x.module("ui.router.util").factory("$templateFactory",["$uiRouter",function(){return new y.TemplateFactory}]),x.module("ui.router").factory("$view",function(){return C.viewService}),x.module("ui.router").factory("$resolve",g.resolveFactory),x.module("ui.router").service("$trace",function(){return m.trace}),u.$inject=["$rootScope"],t.watchDigests=u,x.module("ui.router").run(u),t.getLocals=function(e){return e.getTokens().filter(h.isString).map(function(t){return[t,e.getResolvable(t).data]}).reduce(p.applyPairs,{})}},function(e,t,n){"use strict";var r=n(42),i=n(21),o=n(17),a=n(3),s=n(40),l={resolve:function(e,t,n){void 0===t&&(t={});var l=new i.PathNode(new r.State({params:{},resolvables:[]})),u=new i.PathNode(new r.State({params:{},resolvables:[]})),c=new o.ResolveContext([l,u]);c.addResolvables(s.resolvablesBuilder({resolve:e}),u.state);var d=function(e){var n=function(e){return s.resolvablesBuilder({resolve:a.mapObj(e,function(e){return function(){return e}})})};c.addResolvables(n(e),l.state),c.addResolvables(n(t),u.state);var r=function(e,t){return e[t.token]=t.value,e};return c.resolvePath().then(function(e){return e.reduce(r,{})})};return n?n.then(d):d({})}};t.resolveFactory=function(){return l}},function(e,t,n){"use strict";function r(e){var t=["templateProvider","templateUrl","template","notify","async"],n=["controller","controllerProvider","controllerAs","resolveAs"],r=["component","bindings"],u=t.concat(n),c=r.concat(u),d={},p=e.views||{$default:o.pick(e,c)};return o.forEach(p,function(t,n){if(n=n||"$default",l.isString(t)&&(t={component:t}),Object.keys(t).length){if(t.component){if(u.map(function(e){return l.isDefined(t[e])}).reduce(o.anyTrueR,!1))throw new Error("Cannot combine: "+r.join("|")+" with: "+u.join("|")+" in stateview: 'name@"+e.name+"'");t.templateProvider=["$injector",function(e){var n=function(e){return t.bindings&&t.bindings[e]||e},r=h.version.minor>=3?"::":"",o=function(e){var t=a.kebobString(e.name),i=n(e.name);return"@"===e.type?t+"='{{"+r+"$resolve."+i+"}}'":t+"='"+r+"$resolve."+i+"'"},s=i(e,t.component).map(o).join(" "),l=a.kebobString(t.component);return"<"+l+" "+s+">"}]}t.resolveAs=t.resolveAs||"$resolve",t.$type="ng1",t.$context=e,t.$name=n;var c=s.ViewService.normalizeUIViewTarget(t.$context,t.$name);t.$uiViewName=c.uiViewName,t.$uiViewContextAnchor=c.uiViewContextAnchor,d[n]=t}}),d}function i(e,t){var n=e.get(t+"Directive");if(!n||!n.length)throw new Error("Unable to find component named '"+t+"'");return n.map(m).reduce(o.unnestR,[])}var o=n(3),a=n(9),s=n(37),l=n(4),u=n(6),c=n(12),d=n(56),p=n(17),f=n(19),h=n(57);t.ng1ViewConfigFactory=function(e,t){return[new y(e,t)]},t.ng1ViewsBuilder=r;var g=function(e){return Object.keys(e||{}).map(function(t){return[t,/^([=<@])[?]?(.*)/.exec(e[t])]}).filter(function(e){return l.isDefined(e)&&l.isDefined(e[1])}).map(function(e){return{name:e[1][2]||e[0],type:e[1][1]}})},m=function(e){return g(l.isObject(e.bindToController)?e.bindToController:e.scope)},v=0,y=function(){function e(e,t){this.path=e,this.viewDecl=t,this.$id=v++,this.loaded=!1}return e.prototype.load=function(){var e=this,t=u.services.$q;if(!this.hasTemplate())throw new Error("No template configuration specified for '"+this.viewDecl.$uiViewName+"@"+this.viewDecl.$uiViewContextAnchor+"'");var n=new p.ResolveContext(this.path),r=this.path.reduce(function(e,t){return o.extend(e,t.paramValues)},{}),i={template:t.when(this.getTemplate(r,new d.TemplateFactory,n)),controller:t.when(this.getController(n))};return t.all(i).then(function(t){return c.trace.traceViewServiceEvent("Loaded",e),e.controller=t.controller,e.template=t.template,e})},e.prototype.hasTemplate=function(){return!!(this.viewDecl.template||this.viewDecl.templateUrl||this.viewDecl.templateProvider)},e.prototype.getTemplate=function(e,t,n){return t.fromConfig(this.viewDecl,e,n)},e.prototype.getController=function(e){var t=this.viewDecl.controllerProvider;if(!l.isInjectable(t))return this.viewDecl.controller;var n=u.services.$injector.annotate(t),r=l.isArray(t)?o.tail(t):t;return new f.Resolvable("",r,n).get(e)},e}();t.Ng1ViewConfig=y},function(e,t,n){"use strict";var r=n(4),i=n(6),o=n(3),a=n(19),s=function(){function e(){}return e.prototype.fromConfig=function(e,t,n){return r.isDefined(e.template)?this.fromString(e.template,t):r.isDefined(e.templateUrl)?this.fromUrl(e.templateUrl,t):r.isDefined(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},e.prototype.fromString=function(e,t){return r.isFunction(e)?e(t):e},e.prototype.fromUrl=function(e,t){return r.isFunction(e)&&(e=e(t)),null==e?null:i.services.template.get(e)},e.prototype.fromProvider=function(e,t,n){var s=i.services.$injector.annotate(e),l=r.isArray(e)?o.tail(e):e;return new a.Resolvable("",l,s).get(n)},e}();t.TemplateFactory=s},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(4),i=n(3),o=function(){function e(t,n){this.stateRegistry=t,this.stateService=n,i.bindFunctions(e.prototype,this,this)}return e.prototype.decorator=function(e,t){return this.stateRegistry.decorator(e,t)||this},e.prototype.state=function(e,t){return r.isObject(e)?t=e:t.name=e,this.stateRegistry.register(t),this},e.prototype.onInvalid=function(e){return this.stateService.onInvalid(e)},e}();t.StateProvider=o},function(e,t,n){"use strict";var r=n(6),i=n(53),o=n(17),a=n(3);t.getStateHookBuilder=function(e){return function(t,n){function s(e,t){var n=new o.ResolveContext(e.treeChanges().to);return r.services.$injector.invoke(l,this,a.extend({$state$:t},i.getLocals(n)))}var l=t[e];return l?s:void 0}}},function(e,t,n){"use strict";function r(e,t){var n,r=e.match(/^\s*({[^}]*})\s*$/);if(r&&(e=t+"("+r[1]+")"),!(n=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1],paramExpr:n[3]||null}}function i(e){var t=e.parent().inheritedData("$uiView"),n=d.parse("$cfg.path")(t);return n?u.tail(n).state.name:void 0}function o(e){var t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.prop("href")),n="FORM"===e[0].nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.prop("tagName").toUpperCase(),clickable:!n}}function a(e,t,n,r,i){return function(o){var a=o.which||o.button,s=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||e.attr("target"))){var l=n(function(){t.go(s.state,s.params,s.options)});o.preventDefault();var u=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){u--<=0&&n.cancel(l)}}}}function s(e,t){return{relative:i(e)||t.$current,inherit:!0,source:"sref"}}var l=n(57),u=n(3),c=n(4),d=n(5),p=["$state","$timeout",function(e,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,i,c,d){var p,f=r(c.uiSref,e.current.name),h={state:f.state,href:null,params:null,options:null},g=o(i),m=d[1]||d[0],v=null;h.options=u.extend(s(i,e),c.uiSrefOpts?n.$eval(c.uiSrefOpts):{});var y=function(t){t&&(h.params=l.copy(t)),h.href=e.href(f.state,h.params,h.options),v&&v(),m&&(v=m.$$addStateInfo(f.state,h.params)),null!==h.href&&c.$set(g.attr,h.href)};f.paramExpr&&(n.$watch(f.paramExpr,function(e){e!==h.params&&y(e)},!0),h.params=l.copy(n.$eval(f.paramExpr))),y(),g.clickable&&(p=a(i,e,t,g,function(){return h}),i.on("click",p),n.$on("$destroy",function(){i.off("click",p)}))}}}],f=["$state","$timeout",function(e,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,r,i,s){function l(t){h.state=t[0],h.params=t[1],h.options=t[2],h.href=e.href(h.state,h.params,h.options),g&&g(),d&&(g=d.$$addStateInfo(h.state,h.params)),h.href&&i.$set(c.attr,h.href)}var u,c=o(r),d=s[1]||s[0],p=[i.uiState,i.uiStateParams||null,i.uiStateOpts||null],f="["+p.map(function(e){return e||"null"}).join(", ")+"]",h={state:null,params:null,options:null,href:null},g=null;n.$watch(f,l,!0),l(n.$eval(f)),c.clickable&&(u=a(r,e,t,c,function(){return h}),r.on("click",u),n.$on("$destroy",function(){r.off("click",u)}))}}}],h=["$state","$stateParams","$interpolate","$transitions","$uiRouter",function(e,t,n,o,a){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(t,s,l,d){function p(e){e.promise.then(g)}function f(t,n,r){var o=e.get(t,i(s)),a=h(t,n),l={state:o||{name:t},params:n,hash:a};return C.push(l),S[a]=r,function(){var e=C.indexOf(l);-1!==e&&C.splice(e,1)}}function h(e,n){if(!c.isString(e))throw new Error("state should be a string");return c.isObject(n)?e+u.toJson(n):(n=t.$eval(n),c.isObject(n)?e+u.toJson(n):e)}function g(){for(var e=0;e0)){var n=f(e,t,x);return g(),n}},t.$on("$stateChangeSuccess",g),t.$on("$destroy",o.onStart({},p)),a.globals.transition&&p(a.globals.transition),g()}]}}];l.module("ui.router.state").directive("uiSref",p).directive("uiSrefActive",h).directive("uiSrefActiveEq",h).directive("uiState",f)},function(e,t,n){"use strict";function r(e){var t=function(t,n,r){return e.is(t,n,r)};return t.$stateful=!0,t}function i(e){var t=function(t,n,r){return e.includes(t,n,r)};return t.$stateful=!0,t}var o=n(57);r.$inject=["$state"],t.$IsStateFilter=r,i.$inject=["$state"],t.$IncludedByStateFilter=i,o.module("ui.router.state").filter("isState",r).filter("includedByState",i)},function(e,t,n){"use strict";function r(e,t,n,r,l){var h=u.parse("viewDecl.controllerAs"),g=u.parse("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){var l=r.html();return function(r,u){var m=u.data("$uiView");if(m){var v=m.$cfg||{viewDecl:{}};u.html(v.template||l),s.trace.traceUIViewFill(m.$uiView,u.html());var y=e(u.contents()),b=v.controller,w=h(v),x=g(v),C=v.path&&new c.ResolveContext(v.path),S=C&&p.getLocals(C);if(r[x]=S,b){var $=t(b,o.extend({},S,{$scope:r,$element:u}));w&&(r[w]=$,r[w][x]=S),u.data("$ngControllerController",$),u.children().data("$ngControllerController",$),i(n,$,r,v)}if(a.isString(v.viewDecl.component))var E=v.viewDecl.component,T=d.kebobString(E),k=function(){var e=[].slice.call(u[0].children).filter(function(e){return e&&e.tagName&&e.tagName.toLowerCase()===T});return e&&f.element(e).data("$"+E+"Controller")},_=r.$watch(k,function(e){e&&(i(n,e,r,v),_())});y(r)}}}}}function i(e,t,n,r){!a.isFunction(t.$onInit)||r.viewDecl.component&&g||t.$onInit();var i=o.tail(r.path).state.self,s={bind:t};if(a.isFunction(t.uiOnParamsChanged)){var l=new c.ResolveContext(r.path),u=l.getResolvable("$transition$").data,d=function(e){if(e!==u&&-1===e.exiting().indexOf(i)){var n=e.params("to"),r=e.params("from"),a=e.treeChanges().to.map(function(e){return e.paramSchema}).reduce(o.unnestR,[]),s=e.treeChanges().from.map(function(e){return e.paramSchema}).reduce(o.unnestR,[]),l=a.filter(function(e){var t=s.indexOf(e);return-1===t||!s[t].type.equals(n[e.id],r[e.id])});if(l.length){var c=l.map(function(e){return e.id});t.uiOnParamsChanged(o.filter(n,function(e,t){return-1!==c.indexOf(t)}),e)}}};n.$on("$destroy",e.onSuccess({},d,s))}if(a.isFunction(t.uiCanExit)){var p={exiting:i.name};n.$on("$destroy",e.onBefore(p,t.uiCanExit,s))}}var o=n(3),a=n(4),s=n(12),l=n(55),u=n(5),c=n(17),d=n(9),p=n(53),f=n(57),h=["$view","$animate","$uiViewScroll","$interpolate","$q",function(e,t,n,r,i){function o(e,n){return{enter:function(e,n,r){f.version.minor>2?t.enter(e,null,n).then(r):t.enter(e,null,n,r)},leave:function(e,n){f.version.minor>2?t.leave(e).then(n):t.leave(e,n)}}}function c(e,t){return e===t}var d={$cfg:{viewDecl:{$context:e.rootContext()}},$uiView:{}},p={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(t,f,h){return function(t,f,g){function m(e){(!e||e instanceof l.Ng1ViewConfig)&&(c(T,e)||(s.trace.traceUIViewConfigUpdated(A,e&&e.viewDecl&&e.viewDecl.$context),T=e,y(e)))}function v(){if(b&&(s.trace.traceUIViewEvent("Removing (previous) el",b.data("$uiView")),b.remove(),b=null),x&&(s.trace.traceUIViewEvent("Destroying scope",A),x.$destroy(),x=null),w){var e=w.data("$uiViewAnim");s.trace.traceUIViewEvent("Animate out",e),E.leave(w,function(){e.$$animLeave.resolve(),b=null}),b=w,w=null}}function y(e){var r=t.$new(),o=i.defer(),s=i.defer(),l={$cfg:e,$uiView:A},u={$animEnter:o.promise,$animLeave:s.promise,$$animLeave:s},c=h(r,function(e){e.data("$uiViewAnim",u),e.data("$uiView",l),E.enter(e,f,function(){o.resolve(),x&&x.$emit("$viewContentAnimationEnded"),(a.isDefined($)&&!$||t.$eval($))&&n(e)}),v()});w=c,x=r,x.$emit("$viewContentLoaded",e||T),x.$eval(S)}var b,w,x,C,S=g.onload||"",$=g.autoscroll,E=o(g,t),T=void 0,k=f.inheritedData("$uiView")||d,_=r(g.uiView||g.name||"")(t)||"$default",A={$type:"ng1",id:p.count++,name:_,fqn:k.$uiView.fqn?k.$uiView.fqn+"."+_:_,config:null,configUpdated:m,get creationContext(){return u.parse("$cfg.viewDecl.$context")(k)}};s.trace.traceUIViewEvent("Linking",A),f.data("$uiView",{$uiView:A}),y(),C=e.registerUIView(A),t.$on("$destroy",function(){s.trace.traceUIViewEvent("Destroying/Unregistering",A),C()})}}};return p}];r.$inject=["$compile","$controller","$transitions","$view","$timeout"];var g="function"==typeof f.module("ui.router").component;f.module("ui.router.state").directive("uiView",h),f.module("ui.router.state").directive("uiView",r)},function(e,t,n){"use strict";function r(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){return n(function(){e[0].scrollIntoView()},0,!1)}}]}n(57).module("ui.router.state").provider("$uiViewScroll",r)}])}),angular.module("ngHttpStatus",[]).constant("HttpCodes",{CONTINUE:100,SWITCHING_PROTOCOLS:101,PROCESSING:102,HEURISTIC_EXPIRATION:113,MISCELLANEOUS_WARNING:199,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,ALREADY_REPORTED:208,TRANSFORMATION_APPLIED:214,IM_USED:226,MISCELLANEOUS_PERSISTENT_WARNING:299,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,UNUSED:306,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,TOO_MANY_REDIRECTS:310,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,IM_A_TEAPOT:418,MISDIRECT_REQUEST:421,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,UNORDERED_COLLEcTION:425,UPGRADE_REQUIRED:426,PRECONDITION_REQUIRED:428,TOO_MANY_REQUEST:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,VARIANT_ALSO_NEGOTIATES:506,INSUFFICIENT_STORAGE:507,LOOP_DETECTED:508,NOT_EXTENDED:510,NETWORK_AUTHENTICATION_REQUIRED:511}).factory("HttpStatus",["HttpCodes",function(e){var t=function(e){return e.toLowerCase().replace(/_/g," ").replace(/(^|\s)\S/g,function(e){return e.toUpperCase()})};return{toString:function(n){if(!1===angular.isNumber(n))throw new TypeError(n+" is not a number and obviously not a valid HTTP status code.");for(var r=Object.keys(e),i=0;i * @copyright Pathgather 2015 * @license MIT * @link https://github.com/Pathgather/please-wait * @module please-wait * @version 0.0.5 */ function(e,t){"object"==typeof exports?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e)}(this,function(e){var t,n,r,i,o,a,s,l,u,c,d,p,f,h,g,m;a=document.createElement("fakeelement"),i=!1,f=!1,r="animationend",p=null,o="Webkit Moz O ms".split(" "),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};for(s in d)if(h=d[s],null!=a.style[s]){p=h,f=!0;break}if(null!=a.style.animationName&&(i=!0),!i)for(g=0,m=o.length;g0&&e._changeLoadingHtml(),e.finishing)return null!=t&&t.stopPropagation(),e._finish()}}(this),null!=this._loadingHtmlElem&&(i?this._loadingHtmlElem.addEventListener(r,a):a(),this._loadingHtmlListener=function(e){return function(){if(e._readyToShowLoadingHtml=!0,c("pg-loading",e._loadingHtmlElem),f&&e._loadingHtmlElem.removeEventListener(p,e._loadingHtmlListener),e._loadingHtmlToDisplay.length>0)return e._changeLoadingHtml()}}(this),this._removingHtmlListener=function(e){return function(){return e._loadingHtmlElem.innerHTML=e._loadingHtmlToDisplay.shift(),c("pg-removing",e._loadingHtmlElem),n("pg-loading",e._loadingHtmlElem),f?(e._loadingHtmlElem.removeEventListener(p,e._removingHtmlListener),e._loadingHtmlElem.addEventListener(p,e._loadingHtmlListener)):e._loadingHtmlListener()}}(this))}return e._defaultOptions={backgroundColor:null,logo:null,loadingHtml:null,template:"
\n
\n
\n

\n \n

\n
\n
\n
\n
\n
",onLoadedCallback:null},e.prototype.finish=function(e,t){if(null==e&&(e=!1),window.document.hidden&&(e=!0),this.finishing=!0,null!=t&&this.updateOption("onLoadedCallback",t),this.loaded||e)return this._finish(e)},e.prototype.updateOption=function(e,t){switch(e){case"backgroundColor":return this._loadingElem.style.backgroundColor=t;case"logo":return this._logoElem.src=t;case"loadingHtml":return this.updateLoadingHtml(t);case"onLoadedCallback":return this._onLoadedCallback=t;default:throw new Error("Unknown option '"+e+"'")}},e.prototype.updateOptions=function(e){var t,n,r;null==e&&(e={}),r=[];for(t in e)n=e[t],r.push(this.updateOption(t,n));return r},e.prototype.updateLoadingHtml=function(e,t){if(null==t&&(t=!1),null==this._loadingHtmlElem)throw new Error("The loading template does not have an element of class 'pg-loading-html'");if(t?(this._loadingHtmlToDisplay=[e],this._readyToShowLoadingHtml=!0):this._loadingHtmlToDisplay.push(e),this._readyToShowLoadingHtml)return this._changeLoadingHtml()},e.prototype._changeLoadingHtml=function(){return this._readyToShowLoadingHtml=!1,this._loadingHtmlElem.removeEventListener(p,this._loadingHtmlListener),this._loadingHtmlElem.removeEventListener(p,this._removingHtmlListener),c("pg-loading",this._loadingHtmlElem),c("pg-removing",this._loadingHtmlElem),f?(n("pg-removing",this._loadingHtmlElem),this._loadingHtmlElem.addEventListener(p,this._removingHtmlListener)):this._removingHtmlListener()},e.prototype._finish=function(e){var t;if(null==e&&(e=!1),null!=this._loadingElem)return n("pg-loaded",document.body),"function"==typeof this._onLoadedCallback&&this._onLoadedCallback.apply(this),t=function(e){return function(){return document.body.removeChild(e._loadingElem),c("pg-loading",document.body),i&&e._loadingElem.removeEventListener(r,t),e._loadingElem=null}}(this),!e&&i?(n("pg-loaded",this._loadingElem),this._loadingElem.addEventListener(r,t)):t()},e}(),u=function(e){return null==e&&(e={}),new t(e)},e.pleaseWait=u,u}),/** * interact.js v1.3.3 * * Copyright (c) 2012-2018 Taye Adeyemi * Released under the MIT License. * https://raw.github.com/taye/interact.js/master/LICENSE */ function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.interact=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a6&&void 0!==arguments[6]&&arguments[6];r(this,e);var f=t.target,h=(f&&f.options||a).deltaSource,g=o(f,c,l),m="start"===u,v="end"===u,y=m?t.startCoords:t.curCoords,b=t.prevEvent;c=c||t.element;var w=i({},y.page),x=i({},y.client);w.x-=g.x,w.y-=g.y,x.x-=g.x,x.y-=g.y,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.button=n.button,this.buttons=n.buttons,this.target=c,this.currentTarget=c,this.relatedTarget=d||null,this.preEnd=p,this.type=l+(u||""),this.interaction=t,this.interactable=f,this.t0=m?t.downTimes[t.downTimes.length-1]:b.t0;var C={interaction:t,event:n,action:l,phase:u,element:c,related:d,page:w,client:x,coords:y,starting:m,ending:v,deltaSource:h,iEvent:this};s.fire("set-xy",C),v?(this.pageX=b.pageX,this.pageY=b.pageY,this.clientX=b.clientX,this.clientY=b.clientY):(this.pageX=w.x,this.pageY=w.y,this.clientX=x.x,this.clientY=x.y),this.x0=t.startCoords.page.x-g.x,this.y0=t.startCoords.page.y-g.y,this.clientX0=t.startCoords.client.x-g.x,this.clientY0=t.startCoords.client.y-g.y,s.fire("set-delta",C),this.timeStamp=y.timeStamp,this.dt=t.pointerDelta.timeStamp,this.duration=this.timeStamp-this.t0,this.speed=t.pointerDelta[h].speed,this.velocityX=t.pointerDelta[h].vx,this.velocityY=t.pointerDelta[h].vy,this.swipe=v||"inertiastart"===u?this.getSwipe():null,s.fire("new",C)}return e.prototype.getSwipe=function(){var e=this.interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5,i=!n&&(292.5<=t||t<67.5);return{up:r,down:!r&&22.5<=t&&t<157.5,left:n,right:i,angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}},e.prototype.preventDefault=function(){},e.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();s.on("set-delta",function(e){var t=e.iEvent,n=e.interaction,r=e.starting,i=e.deltaSource,o=r?t:n.prevEvent;"client"===i?(t.dx=t.clientX-o.clientX,t.dy=t.clientY-o.clientY):(t.dx=t.pageX-o.pageX,t.dy=t.pageY-o.pageY)}),l.signals=s,t.exports=l},{"./defaultOptions":18,"./utils/Signals":34,"./utils/extend":41,"./utils/getOriginXY":42}],4:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("./utils/clone"),o=e("./utils/is"),a=e("./utils/events"),s=e("./utils/extend"),l=e("./actions/base"),u=e("./scope"),c=e("./Eventable"),d=e("./defaultOptions"),p=e("./utils/Signals").new(),f=e("./utils/domUtils"),h=f.getElementRect,g=f.nodeContains,m=f.trySelector,v=f.matchesSelector,y=e("./utils/window"),b=y.getWindow,w=e("./utils/arr"),x=w.contains,C=e("./utils/browser"),S=C.wheelEvent;u.interactables=[];var $=function(){function e(t,n){r(this,e),n=n||{},this.target=t,this.events=new c,this._context=n.context||u.document,this._win=b(m(t)?this._context:t),this._doc=this._win.document,p.fire("new",{target:t,options:n,interactable:this,win:this._win}),u.addDocument(this._doc,this._win),u.interactables.push(this),this.set(n)}return e.prototype.setOnEvents=function(e,t){var n="on"+e;return o.function(t.onstart)&&(this.events[n+"start"]=t.onstart),o.function(t.onmove)&&(this.events[n+"move"]=t.onmove),o.function(t.onend)&&(this.events[n+"end"]=t.onend),o.function(t.oninertiastart)&&(this.events[n+"inertiastart"]=t.oninertiastart),this},e.prototype.setPerAction=function(e,t){for(var n in t)n in d[e]&&(o.object(t[n])?(this.options[e][n]=i(this.options[e][n]||{}),s(this.options[e][n],t[n]),o.object(d.perAction[n])&&"enabled"in d.perAction[n]&&(this.options[e][n].enabled=!1!==t[n].enabled)):o.bool(t[n])&&o.object(d.perAction[n])?this.options[e][n].enabled=t[n]:void 0!==t[n]&&(this.options[e][n]=t[n]))},e.prototype.getRect=function(e){return e=e||this.target,o.string(this.target)&&!o.element(e)&&(e=this._context.querySelector(this.target)),h(e)},e.prototype.rectChecker=function(e){return o.function(e)?(this.getRect=e,this):null===e?(delete this.options.getRect,this):this.getRect},e.prototype._backCompatOption=function(e,t){if(m(t)||o.object(t)){this.options[e]=t;for(var n=0;ne.pointerMoveTolerance);var s={pointer:t,pointerIndex:this.getPointerIndex(t),event:n,eventTarget:r,dx:o,dy:a,duplicate:i,interaction:this,interactingBeforeMove:this.interacting()};i||l.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords),f.fire("move",s),i||(this.interacting()&&this.doMove(s),this.pointerWasMoved&&l.copyCoords(this.prevCoords,this.curCoords))},e.prototype.doMove=function(e){e=l.extend({pointer:this.pointers[0],event:this.prevEvent,eventTarget:this._eventTarget,interaction:this},e||{}),f.fire("before-action-move",e),this._dontFireMove||f.fire("action-move",e),this._dontFireMove=!1},e.prototype.pointerUp=function(e,t,n,r){var i=this.getPointerIndex(e);f.fire(/cancel$/i.test(t.type)?"cancel":"up",{pointer:e,pointerIndex:i,event:t,eventTarget:n,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.pointerIsDown=!1,this.removePointer(e,t)},e.prototype.end=function(e){this._ending=!0,e=e||this.prevEvent,this.interacting()&&f.fire("action-end",{event:e,interaction:this}),this.stop(),this._ending=!1},e.prototype.currentAction=function(){return this._interacting?this.prepared.name:null},e.prototype.interacting=function(){return this._interacting},e.prototype.stop=function(){f.fire("stop",{interaction:this}),this._interacting&&(f.fire("stop-active",{interaction:this}),f.fire("stop-"+this.prepared.name,{interaction:this})),this.target=this.element=null,this._interacting=!1,this.prepared.name=this.prevEvent=null},e.prototype.getPointerIndex=function(e){return"mouse"===this.pointerType||"pen"===this.pointerType?0:this.pointerIds.indexOf(l.getPointerId(e))},e.prototype.updatePointer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t&&/(down|start)$/i.test(t.type),r=l.getPointerId(e),i=this.getPointerIndex(e);return-1===i&&(i=this.pointerIds.length,this.pointerIds[i]=r),n&&f.fire("update-pointer-down",{pointer:e,event:t,down:n,pointerId:r,pointerIndex:i,interaction:this}),this.pointers[i]=e,i},e.prototype.removePointer=function(e,t){var n=this.getPointerIndex(e);-1!==n&&(f.fire("remove-pointer",{pointer:e,event:t,pointerIndex:n,interaction:this}),this.pointers.splice(n,1),this.pointerIds.splice(n,1),this.downTargets.splice(n,1),this.downTimes.splice(n,1))},e.prototype._updateEventTargets=function(e,t){this._eventTarget=e,this._curEventTarget=t},e}(),y=0;yo.left&&u.xo.top&&u.y=o.left&&h<=o.right&&g>=o.top&&g<=o.bottom}if(f&&c.is.number(s)){a=Math.max(0,Math.min(o.right,f.right)-Math.max(o.left,f.left))*Math.max(0,Math.min(o.bottom,f.bottom)-Math.max(o.top,f.top))/(f.width*f.height)>=s}return this.options.drop.checker&&(a=this.options.drop.checker(e,t,a,this,i,n,r)),a},h.signals.on("unset",function(e){e.interactable.dropzone(!1)}),h.settingsMethods.push("dropChecker"),g.signals.on("new",function(e){e.dropTarget=null,e.dropElement=null,e.prevDropTarget=null,e.prevDropElement=null,e.dropEvents=null,e.activeDrops={dropzones:[],elements:[],rects:[]}}),g.signals.on("stop",function(e){var t=e.interaction;t.dropTarget=t.dropElement=t.prevDropTarget=t.prevDropElement=null}),p.dynamicDrop=function(e){return c.is.bool(e)?(y=e,p):y},c.merge(h.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),u.methodDict.drop="dropzone",m.drop=v.defaults,t.exports=v},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"./base":6}],9:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../InteractEvent"),a=e("../Interactable"),s=e("../Interaction"),l=e("../defaultOptions"),u={defaults:{enabled:!1,origin:null,restrict:null},checker:function(e,t,n,r,i){return i.pointerIds.length>=2?{name:"gesture"}:null},getCursor:function(){return""}};o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturestart"===t.type&&(t.ds=0,n.gesture.startDistance=n.gesture.prevDistance=t.distance,n.gesture.startAngle=n.gesture.prevAngle=t.angle,n.gesture.scale=1)}),o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturemove"===t.type&&(t.ds=t.scale-n.gesture.scale,n.target.fire(t),n.gesture.prevAngle=t.angle,n.gesture.prevDistance=t.distance,t.scale===1/0||null===t.scale||void 0===t.scale||isNaN(t.scale)||(n.gesture.scale=t.scale))}),a.prototype.gesturable=function(e){return i.is.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):i.is.bool(e)?(this.options.gesture.enabled=e,e||(this.ongesturestart=this.ongesturestart=this.ongestureend=null),this):this.options.gesture},o.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent,r=e.action,a=e.event,s=e.starting,l=e.ending,u=e.deltaSource;if("gesture"===r){var c=t.pointers;n.touches=[c[0],c[1]],s?(n.distance=i.touchDistance(c,u),n.box=i.touchBBox(c),n.scale=1,n.ds=0,n.angle=i.touchAngle(c,void 0,u),n.da=0):l||a instanceof o?(n.distance=t.prevEvent.distance,n.box=t.prevEvent.box,n.scale=t.prevEvent.scale,n.ds=n.scale-1,n.angle=t.prevEvent.angle,n.da=n.angle-t.gesture.startAngle):(n.distance=i.touchDistance(c,u),n.box=i.touchBBox(c),n.scale=n.distance/t.gesture.startDistance,n.angle=i.touchAngle(c,t.gesture.prevAngle,u),n.ds=n.scale-t.gesture.prevScale,n.da=n.angle-t.gesture.prevAngle)}}),s.signals.on("new",function(e){e.gesture={start:{x:0,y:0},startDistance:0,prevDistance:0,distance:0,scale:1,startAngle:0,prevAngle:0}}),r.gesture=u,r.names.push("gesture"),i.merge(a.eventTypes,["gesturestart","gesturemove","gestureend"]),r.methodDict.gesture="gesturable",l.gesture=u.defaults,t.exports=u},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],10:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s){if(!t)return!1;if(!0===t){var l=o.is.number(a.width)?a.width:a.right-a.left,u=o.is.number(a.height)?a.height:a.bottom-a.top;if(l<0&&("left"===e?e="right":"right"===e&&(e="left")),u<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(l>=0?a.left:a.right)+s;if("top"===e)return n.y<(u>=0?a.top:a.bottom)+s;if("right"===e)return n.x>(l>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(u>=0?a.bottom:a.top)-s}return!!o.is.element(r)&&(o.is.element(t)?t===r:o.matchesUpTo(r,t,i))}var i=e("./base"),o=e("../utils"),a=e("../utils/browser"),s=e("../InteractEvent"),l=e("../Interactable"),u=e("../Interaction"),c=e("../defaultOptions"),d=a.supportsTouch||a.supportsPointerEvent?20:10,p={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(e,t,n,i,a,s){if(!s)return null;var l=o.extend({},a.curCoords.page),u=n.options;if(u.resize.enabled){var c=u.resize,p={left:!1,right:!1,top:!1,bottom:!1};if(o.is.object(c.edges)){for(var f in p)p[f]=r(f,c.edges[f],l,a._eventTarget,i,s,c.margin||d);if(p.left=p.left&&!p.right,p.top=p.top&&!p.bottom,p.left||p.right||p.top||p.bottom)return{name:"resize",edges:p}}else{var h="y"!==u.resize.axis&&l.x>s.right-d,g="x"!==u.resize.axis&&l.y>s.bottom-d;if(h||g)return{name:"resize",axes:(h?"x":"")+(g?"y":"")}}}return null},cursors:a.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"},getCursor:function(e){if(e.axis)return p.cursors[e.name+e.axis];if(e.edges){for(var t="",n=["top","bottom","left","right"],r=0;r<4;r++)e.edges[n[r]]&&(t+=n[r]);return p.cursors[t]}}};s.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;if("resizestart"===t.type&&n.prepared.edges){var r=n.target.getRect(n.element),i=n.target.options.resize;if(i.square||i.preserveAspectRatio){var a=o.extend({},n.prepared.edges);a.top=a.top||a.left&&!a.bottom,a.left=a.left||a.top&&!a.right,a.bottom=a.bottom||a.right&&!a.top,a.right=a.right||a.bottom&&!a.left,n.prepared._linkedEdges=a}else n.prepared._linkedEdges=null;i.preserveAspectRatio&&(n.resizeStartAspectRatio=r.width/r.height),n.resizeRects={start:r,current:o.extend({},r),inverted:o.extend({},r),previous:o.extend({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},t.rect=n.resizeRects.inverted,t.deltaRect=n.resizeRects.delta}}),s.signals.on("new",function(e){var t=e.iEvent,n=e.phase,r=e.interaction;if("move"===n&&r.prepared.edges){var i=r.target.options.resize,a=i.invert,s="reposition"===a||"negate"===a,l=r.prepared.edges,u=r.resizeRects.start,c=r.resizeRects.current,d=r.resizeRects.inverted,p=r.resizeRects.delta,f=o.extend(r.resizeRects.previous,d),h=l,g=t.dx,m=t.dy;if(i.preserveAspectRatio||i.square){var v=i.preserveAspectRatio?r.resizeStartAspectRatio:1;l=r.prepared._linkedEdges,h.left&&h.bottom||h.right&&h.top?m=-g/v:h.left||h.right?m=g/v:(h.top||h.bottom)&&(g=m*v)}if(l.top&&(c.top+=m),l.bottom&&(c.bottom+=m),l.left&&(c.left+=g),l.right&&(c.right+=g),s){if(o.extend(d,c),"reposition"===a){var y=void 0;d.top>d.bottom&&(y=d.top,d.top=d.bottom,d.bottom=y),d.left>d.right&&(y=d.left,d.left=d.right,d.right=y)}}else d.top=Math.min(c.top,u.bottom),d.bottom=Math.max(c.bottom,u.top),d.left=Math.min(c.left,u.right),d.right=Math.max(c.right,u.left);d.width=d.right-d.left,d.height=d.bottom-d.top;for(var b in d)p[b]=d[b]-f[b];t.edges=r.prepared.edges,t.rect=d,t.deltaRect=p}}),l.prototype.resizable=function(e){return o.is.object(e)?(this.options.resize.enabled=!1!==e.enabled,this.setPerAction("resize",e),this.setOnEvents("resize",e),/^x$|^y$|^xy$/.test(e.axis)?this.options.resize.axis=e.axis:null===e.axis&&(this.options.resize.axis=c.resize.axis),o.is.bool(e.preserveAspectRatio)?this.options.resize.preserveAspectRatio=e.preserveAspectRatio:o.is.bool(e.square)&&(this.options.resize.square=e.square),this):o.is.bool(e)?(this.options.resize.enabled=e,e||(this.onresizestart=this.onresizestart=this.onresizeend=null),this):this.options.resize},u.signals.on("new",function(e){e.resizeAxes="xy"}),s.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent;"resize"===e.action&&t.resizeAxes&&(t.target.options.resize.square?("y"===t.resizeAxes?n.dx=n.dy:n.dy=n.dx,n.axes="xy"):(n.axes=t.resizeAxes,"x"===t.resizeAxes?n.dy=0:"y"===t.resizeAxes&&(n.dx=0)))}),i.resize=p,i.names.push("resize"), o.merge(l.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeinertiaresume","resizeend"]),i.methodDict.resize="resizable",c.resize=p.defaults,t.exports=p},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/browser":36,"./base":6}],11:[function(e,t,n){"use strict";var r=e("./utils/raf"),i=e("./utils/window").getWindow,o=e("./utils/is"),a=e("./utils/domUtils"),s=e("./Interaction"),l=e("./defaultOptions"),u={defaults:{enabled:!1,container:null,margin:60,speed:300},interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,start:function(e){u.isScrolling=!0,r.cancel(u.i),u.interaction=e,u.prevTime=(new Date).getTime(),u.i=r.request(u.scroll)},stop:function(){u.isScrolling=!1,r.cancel(u.i)},scroll:function(){var e=u.interaction.target.options[u.interaction.prepared.name].autoScroll,t=e.container||i(u.interaction.element),n=(new Date).getTime(),a=(n-u.prevTime)/1e3,s=e.speed*a;s>=1&&(o.window(t)?t.scrollBy(u.x*s,u.y*s):t&&(t.scrollLeft+=u.x*s,t.scrollTop+=u.y*s),u.prevTime=n),u.isScrolling&&(r.cancel(u.i),u.i=r.request(u.scroll))},check:function(e,t){var n=e.options;return n[t].autoScroll&&n[t].autoScroll.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&u.check(t.target,t.prepared.name)){if(t.simulation)return void(u.x=u.y=0);var r=void 0,s=void 0,l=void 0,c=void 0,d=t.target.options[t.prepared.name].autoScroll,p=d.container||i(t.element);if(o.window(p))c=n.clientXp.innerWidth-u.margin,l=n.clientY>p.innerHeight-u.margin;else{var f=a.getElementClientRect(p);c=n.clientXf.right-u.margin,l=n.clientY>f.bottom-u.margin}u.x=s?1:c?-1:0,u.y=l?1:r?-1:0,u.isScrolling||(u.margin=d.margin,u.speed=d.speed,u.start(t))}}};s.signals.on("stop-active",function(){u.stop()}),s.signals.on("action-move",u.onInteractionMove),l.perAction.autoScroll=u.defaults,t.exports=u},{"./Interaction":5,"./defaultOptions":18,"./utils/domUtils":39,"./utils/is":46,"./utils/raf":50,"./utils/window":52}],12:[function(e,t,n){"use strict";var r=e("../Interactable"),i=e("../actions/base"),o=e("../utils/is"),a=e("../utils/domUtils"),s=e("../utils"),l=s.warnOnce;r.prototype.getAction=function(e,t,n,r){var i=this.defaultActionChecker(e,t,n,r);return this.options.actionChecker?this.options.actionChecker(e,t,i,this,r,n):i},r.prototype.ignoreFrom=l(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreForm() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),r.prototype.allowFrom=l(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowForm() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),r.prototype.testIgnore=function(e,t,n){return!(!e||!o.element(n))&&(o.string(e)?a.matchesUpTo(n,e,t):!!o.element(e)&&a.nodeContains(e,n))},r.prototype.testAllow=function(e,t,n){return!e||!!o.element(n)&&(o.string(e)?a.matchesUpTo(n,e,t):!!o.element(e)&&a.nodeContains(e,n))},r.prototype.testIgnoreAllow=function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)},r.prototype.actionChecker=function(e){return o.function(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker},r.prototype.styleCursor=function(e){return o.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor},r.prototype.defaultActionChecker=function(e,t,n,r){for(var o=this.getRect(r),a=t.buttons||{0:1,1:4,3:8,4:16}[t.button],s=null,l=0;l=m.maxInteractions)return!1;if(d.target===e){if((s+=p===n.name|0)>=i)return!1;if(d.element===t&&(l++,p!==n.name||l>=o))return!1}}}return m.maxInteractions>0}}var l=e("../interact"),u=e("../Interactable"),c=e("../Interaction"),d=e("../actions/base"),p=e("../defaultOptions"),f=e("../scope"),h=e("../utils"),g=e("../utils/Signals").new();e("./InteractableMethods");var m={signals:g,withinInteractionLimit:s,maxInteractions:1/0,defaults:{perAction:{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}},setActionDefaults:function(e){h.extend(e.defaults,m.defaults.perAction)},validateAction:r};c.signals.on("down",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;if(!t.interacting()){a(t,o(t,n,r,i))}}),c.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;if("mouse"===t.pointerType&&!t.pointerIsDown&&!t.interacting()){a(t,o(t,n,r,i))}}),c.signals.on("move",function(e){var t=e.interaction,n=e.event;if(t.pointerIsDown&&!t.interacting()&&t.pointerWasMoved&&t.prepared.name){g.fire("before-start",e);var r=t.target;t.prepared.name&&r&&(r.options[t.prepared.name].manualStart||!s(r,t.element,t.prepared)?t.stop(n):t.start(t.prepared,r,t.element))}}),c.signals.on("stop",function(e){var t=e.interaction,n=t.target;n&&n.options.styleCursor&&(n._doc.documentElement.style.cursor="")}),l.maxInteractions=function(e){return h.is.number(e)?(m.maxInteractions=e,l):m.maxInteractions},u.settingsMethods.push("styleCursor"),u.settingsMethods.push("actionChecker"),u.settingsMethods.push("ignoreFrom"),u.settingsMethods.push("allowFrom"),p.base.actionChecker=null,p.base.styleCursor=!0,h.extend(p.perAction,m.defaults.perAction),t.exports=m},{"../Interactable":4,"../Interaction":5,"../actions/base":6,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"../utils/Signals":34,"./InteractableMethods":12}],14:[function(e,t,n){"use strict";function r(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}var i=e("./base"),o=e("../scope"),a=e("../utils/is"),s=e("../utils/domUtils"),l=s.parentNode;i.setActionDefaults(e("../actions/drag")),i.signals.on("before-start",function(e){var t=e.interaction,n=e.eventTarget,s=e.dx,u=e.dy;if("drag"===t.prepared.name){var c=Math.abs(s),d=Math.abs(u),p=t.target.options.drag,f=p.startAxis,h=c>d?"x":c0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.target,t.element)},n))}),o.signals.on("move",function(e){var t=e.interaction,n=e.duplicate;t.pointerWasMoved&&!n&&clearTimeout(t.autoStartHoldTimer)}),i.signals.on("before-start",function(e){var t=e.interaction;r(t)>0&&(t.prepared.name=null)}),t.exports={getHoldDuration:r}},{"../Interaction":5,"./base":13}],17:[function(e,t,n){"use strict";e("./base").setActionDefaults(e("../actions/resize"))},{"../actions/resize":10,"./base":13}],18:[function(e,t,n){"use strict";t.exports={base:{accept:null,preventDefault:"auto",deltaSource:"page"},perAction:{origin:{x:0,y:0},inertia:{enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}}}},{}],19:[function(e,t,n){"use strict";e("./inertia"),e("./modifiers/snap"),e("./modifiers/restrict"),e("./pointerEvents/base"),e("./pointerEvents/holdRepeat"),e("./pointerEvents/interactableTargets"),e("./autoStart/hold"),e("./actions/gesture"),e("./actions/resize"),e("./actions/drag"),e("./actions/drop"),e("./modifiers/snapSize"),e("./modifiers/restrictEdges"),e("./modifiers/restrictSize"),e("./autoStart/gesture"),e("./autoStart/resize"),e("./autoStart/drag"),e("./interactablePreventDefault.js"),e("./autoScroll"),t.exports=e("./interact")},{"./actions/drag":7,"./actions/drop":8,"./actions/gesture":9,"./actions/resize":10,"./autoScroll":11,"./autoStart/drag":14,"./autoStart/gesture":15,"./autoStart/hold":16,"./autoStart/resize":17,"./inertia":20,"./interact":21,"./interactablePreventDefault.js":22,"./modifiers/restrict":24,"./modifiers/restrictEdges":25,"./modifiers/restrictSize":26,"./modifiers/snap":27,"./modifiers/snapSize":28,"./pointerEvents/base":30,"./pointerEvents/holdRepeat":31,"./pointerEvents/interactableTargets":32}],20:[function(e,t,n){"use strict";function r(e,t){var n=e.target.options[e.prepared.name].inertia,r=n.resistance,i=-Math.log(n.endSpeed/t.v0)/r;t.x0=e.prevEvent.pageX,t.y0=e.prevEvent.pageY,t.t0=t.startEvent.timeStamp/1e3,t.sx=t.sy=0,t.modifiedXe=t.xe=(t.vx0-i)/r,t.modifiedYe=t.ye=(t.vy0-i)/r,t.te=i,t.lambda_v0=r/t.v0,t.one_ve_v0=1-n.endSpeed/t.v0}function i(){a(this),c.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords);var e=this.inertiaStatus,t=this.target.options[this.prepared.name].inertia,n=t.resistance,r=(new Date).getTime()/1e3-e.t0;if(rl.minSpeed&&g>l.endSpeed,w={interaction:t,pageCoords:h,statuses:f,preEnd:!0,requireEndOnly:!0};y&&!b&&(u.resetStatuses(f),v=u.setAll(w),v.shouldMove&&v.locked&&(m=!0)),(b||m)&&(c.copyCoords(i.upCoords,t.curCoords),t.pointers[0]=i.startEvent=new s(t,n,t.prepared.name,"inertiastart",t.element),i.t0=p,i.active=!0,i.allowResume=l.allowResume,t.simulation=i,o.fire(i.startEvent),b?(i.vx0=t.pointerDelta.client.vx,i.vy0=t.pointerDelta.client.vy,i.v0=g,r(t,i),c.extend(h,t.curCoords.page),h.x+=i.xe,h.y+=i.ye,u.resetStatuses(f),v=u.setAll(w),i.modifiedXe+=v.dx,i.modifiedYe+=v.dy,i.i=d.request(t.boundInertiaFrame)):(i.smoothEnd=!0,i.xe=v.dx,i.ye=v.dy,i.sx=i.sy=0,i.i=d.request(t.boundSmoothEndFrame)))}}),l.signals.on("stop-active",function(e){var t=e.interaction,n=t.inertiaStatus;n.active&&(d.cancel(n.i),n.active=!1,t.simulation=null)})},{"./InteractEvent":3,"./Interaction":5,"./modifiers/base":23,"./utils":44,"./utils/raf":50}],21:[function(e,t,n){"use strict";function r(e,t){var n=s.interactables.get(e,t);return n||(n=new l(e,t),n.events.global=c),n}var i=e("./utils/browser"),o=e("./utils/events"),a=e("./utils"),s=e("./scope"),l=e("./Interactable"),u=e("./Interaction"),c={};r.isSet=function(e,t){return-1!==s.interactables.indexOfElement(e,t&&t.context)},r.on=function(e,t,n){if(a.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),a.is.array(e)){for(var i=0;i=0;t--)s.interactions[t].stop(e);return r},r.pointerMoveTolerance=function(e){return a.is.number(e)?(u.pointerMoveTolerance=e,r):u.pointerMoveTolerance},r.addDocument=s.addDocument,r.removeDocument=s.removeDocument,s.interact=r,t.exports=r},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils":44,"./utils/browser":36,"./utils/events":40}],22:[function(e,t,n){"use strict";function r(e){var t=e.interaction,n=e.event;t.target&&t.target.checkAndPreventDefault(n)}var i=e("./Interactable"),o=e("./Interaction"),a=e("./scope"),s=e("./utils/is"),l=e("./utils/events"),u=e("./utils/browser"),c=e("./utils/domUtils"),d=c.nodeContains,p=c.matchesSelector;i.prototype.preventDefault=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):s.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault},i.prototype.checkAndPreventDefault=function(e){var t=this.options.preventDefault;if("never"!==t)return"always"===t?void e.preventDefault():void(l.supportsPassive&&/^touch(start|move)$/.test(e.type)&&!u.isIOS||/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||s.element(e.target)&&p(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||e.preventDefault())};for(var f=["down","move","up","cancel"],h=0;h=0&&(p.selectors[f]!==e||p.contexts[f]!==t);f--);-1===f&&(f=p.selectors.length,p.selectors.push(e),p.contexts.push(t),p.listeners.push([])),p.listeners[f].push([i,!!a.capture,a.passive])}function a(e,t,n,r,o){var a=c(o),u=x[n],d=!1,p=void 0;if(u)for(p=u.selectors.length-1;p>=0;p--)if(u.selectors[p]===e&&u.contexts[p]===t){for(var f=u.listeners[p],h=f.length-1;h>=0;h--){var g=f[h],m=g[0],v=g[1],y=g[2];if(m===r&&v===!!a.capture&&y===a.passive){f.splice(h,1),f.length||(u.selectors.splice(p,1),u.contexts.splice(p,1),u.listeners.splice(p,1),i(t,n,s),i(t,n,l,!0),u.selectors.length||(x[n]=null)),d=!0;break}}if(d)break}}function s(e,t){var n=c(t),r={},i=x[e.type],o=f.getEventTargets(e),a=o[0],s=a;for(h(r,e),r.originalEvent=e,r.preventDefault=u;d.element(s);){for(var l=0;l=2)continue;if(!o.interacting()&&t===o.pointerType)return o}return null}};t.exports=o},{"../scope":33,"./index":44}],46:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e("./window"),o=e("./isWindow"),a={array:function(){},window:function(e){return e===i.window||o(e)},docFrag:function(e){return a.object(e)&&11===e.nodeType},object:function(e){return!!e&&"object"===(void 0===e?"undefined":r(e))},function:function(e){return"function"==typeof e},number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==(void 0===e?"undefined":r(e)))return!1;var t=i.getWindow(e)||i.window;return/object|function/.test(r(t.Element))?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return a.object(e)&&"Object"===e.constructor.name}};a.array=function(e){return a.object(e)&&void 0!==e.length&&a.function(e.splice)},t.exports=a},{"./isWindow":47,"./window":52}],47:[function(e,t,n){"use strict";t.exports=function(e){return!(!e||!e.Window)&&e instanceof e.Window}},{}],48:[function(e,t,n){"use strict";function r(e,n){for(var r in n){var i=t.exports.prefixedPropREs,o=!1;for(var a in i)if(0===r.indexOf(a)&&i[a].test(r)){o=!0;break}o||"function"==typeof n[r]||(e[r]=n[r])}return e}r.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/},t.exports=r},{}],49:[function(e,t,n){"use strict";var r=e("./hypot"),i=e("./browser"),o=e("./domObjects"),a=e("./domUtils"),s=e("./domObjects"),l=e("./is"),u=e("./pointerExtend"),c={copyCoords:function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},setCoordDeltas:function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp;var i=Math.max(e.timeStamp/1e3,.001);e.page.speed=r(e.page.x,e.page.y)/i,e.page.vx=e.page.x/i,e.page.vy=e.page.y/i,e.client.speed=r(e.client.x,e.page.y)/i,e.client.vx=e.client.x/i,e.client.vy=e.client.y/i},isNativePointer:function(e){return e instanceof o.Event||e instanceof o.Touch},getXY:function(e,t,n){return n=n||{},e=e||"page",n.x=t[e+"X"],n.y=t[e+"Y"],n},getPageXY:function(e,t){return t=t||{},i.isOperaMobile&&c.isNativePointer(e)?(c.getXY("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):c.getXY("page",e,t),t},getClientXY:function(e,t){return t=t||{},i.isOperaMobile&&c.isNativePointer(e)?c.getXY("screen",e,t):c.getXY("client",e,t),t},getPointerId:function(e){return l.number(e.pointerId)?e.pointerId:e.identifier},setCoords:function(e,t,n){var r=t.length>1?c.pointerAverage(t):t[0],i={};c.getPageXY(r,i),e.page.x=i.x,e.page.y=i.y,c.getClientXY(r,i),e.client.x=i.x,e.client.y=i.y,e.timeStamp=l.number(n)?n:(new Date).getTime()},pointerExtend:u,getTouchPair:function(e){var t=[];return l.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t},pointerAverage:function(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n1){var t=c.getTouchPair(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,width:Math.max(t[0].pageX,t[1].pageX)-n,height:Math.max(t[0].pageY,t[1].pageY)-r}}},touchDistance:function(e,t){var n=t+"X",i=t+"Y",o=c.getTouchPair(e),a=o[0][n]-o[1][n],s=o[0][i]-o[1][i];return r(a,s)},touchAngle:function(e,t,n){var r=n+"X",i=n+"Y",o=c.getTouchPair(e),a=o[1][r]-o[0][r],s=o[1][i]-o[0][i];return 180*Math.atan2(s,a)/Math.PI},getPointerType:function(e){return l.string(e.pointerType)?e.pointerType:l.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type)||e instanceof s.Touch?"touch":"mouse"},getEventTargets:function(e){var t=l.function(e.composedPath)?e.composedPath():e.path;return[a.getActualElement(t?t[0]:e.target),a.getActualElement(e.currentTarget)]}};t.exports=c},{"./browser":36,"./domObjects":38,"./domUtils":39,"./hypot":43,"./is":46,"./pointerExtend":48}],50:[function(e,t,n){"use strict";for(var r=e("./window"),i=r.window,o=["ms","moz","webkit","o"],a=0,s=void 0,l=void 0,u=0;u0)for(n=0;n<_r.length;n++)r=_r[n],o=t[r],i(o)||(e[r]=o);return e}function m(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ar&&(Ar=!0,e.updateOffset(this),Ar=!1)}function v(e){return e instanceof m||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function w(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r0?"future":"past"];return $(n)?n(t):n.replace(/%s/i,t)}function R(e,t){var n=e.toLowerCase();Fr[n]=Fr[n+"s"]=Fr[t]=e}function I(e){return"string"==typeof e?Fr[e]||Fr[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)l(e,n)&&(t=I(n))&&(r[t]=e[n]);return r}function N(e,t){Nr[e]=t}function L(e){var t=[];for(var n in e)t.push({unit:n,priority:Nr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function j(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Hr[e]=i),t&&(Hr[t[0]]=function(){return V(i.apply(this,arguments),t[1],t[2])}),n&&(Hr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,n,r=e.match(Lr);for(t=0,n=r.length;t=0&&Vr.test(e);)e=e.replace(Vr,n),Vr.lastIndex=0,r-=1;return e}function G(e,t,n){oi[e]=$(t)?t:function(e,r){return e&&n?n:t}}function W(e,t){return l(oi,e)?oi[e](t._strict,t._locale):new RegExp(q(e))}function q(e){return Y(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Y(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=b(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var r=7+t-n;return-(7+be(e,0,r).getUTCDay()-t)%7+r-1}function xe(e,t,n,r,i){var o,a,s=(7+n-r)%7,l=we(e,r,i),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,a=J(o)+u):u>J(e)?(o=e+1,a=u-J(e)):(o=e,a=u),{year:o, dayOfYear:a}}function Ce(e,t,n){var r,i,o=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Se(i,t,n)):a>Se(e.year(),t,n)?(r=a-Se(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Se(e,t,n){var r=we(e,t,n),i=we(e+1,t,n);return(J(e)-r+i)/7}function $e(e){return Ce(e,this._week.dow,this._week.doy).week}function Ee(){return this._week.dow}function Te(){return this._week.doy}function ke(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function _e(e){var t=Ce(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ae(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function De(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Me(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone}function Oe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Pe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Re(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=mi.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=mi.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=mi.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?-1!==(i=mi.call(this._weekdaysParse,a))?i:-1!==(i=mi.call(this._shortWeekdaysParse,a))?i:(i=mi.call(this._minWeekdaysParse,a),-1!==i?i:null):"ddd"===t?-1!==(i=mi.call(this._shortWeekdaysParse,a))?i:-1!==(i=mi.call(this._weekdaysParse,a))?i:(i=mi.call(this._minWeekdaysParse,a),-1!==i?i:null):-1!==(i=mi.call(this._minWeekdaysParse,a))?i:-1!==(i=mi.call(this._weekdaysParse,a))?i:(i=mi.call(this._shortWeekdaysParse,a),-1!==i?i:null)}function Ie(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Re.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=c([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ae(e,this.localeData()),this.add(e-t,"d")):t}function Ne(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Le(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=De(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ve(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=ki),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function je(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_i),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function He(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ai),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=Y(s[t]),l[t]=Y(l[t]),u[t]=Y(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Be(){return this.hours()%12||12}function Ue(){return this.hours()||24}function Ge(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function We(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ye(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,r,i,o=0;o0;){if(r=Ke(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}o++}return Di}function Ke(e){var t=null;if(!Ri[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Di._abbr;require("./locale/"+e),Je(t)}catch(e){}return Ri[e]}function Je(e,t){var n;return e&&(n=i(t)?tt(e):Qe(e,t),n?Di=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Di._abbr}function Qe(e,t){if(null!==t){var n,r=Pi;if(t.abbr=e,null!=Ri[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ri[e]._config;else if(null!=t.parentLocale)if(null!=Ri[t.parentLocale])r=Ri[t.parentLocale]._config;else{if(null==(n=Ke(t.parentLocale)))return Ii[t.parentLocale]||(Ii[t.parentLocale]=[]),Ii[t.parentLocale].push({name:e,config:t}),null;r=n._config}return Ri[e]=new k(T(r,t)),Ii[e]&&Ii[e].forEach(function(e){Qe(e.name,e.config)}),Je(e),Ri[e]}return delete Ri[e],null}function et(e,t){if(null!=t){var n,r,i=Pi;r=Ke(e),null!=r&&(i=r._config),t=T(i,t),n=new k(t),n.parentLocale=Ri[e],Ri[e]=n,Je(e)}else null!=Ri[e]&&(null!=Ri[e].parentLocale?Ri[e]=Ri[e].parentLocale:null!=Ri[e]&&delete Ri[e]);return Ri[e]}function tt(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Di;if(!t(e)){if(n=Ke(e))return n;e=[e]}return Ze(e)}function nt(){return Mr(Ri)}function rt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[li]<0||n[li]>11?li:n[ui]<1||n[ui]>se(n[si],n[li])?ui:n[ci]<0||n[ci]>24||24===n[ci]&&(0!==n[di]||0!==n[pi]||0!==n[fi])?ci:n[di]<0||n[di]>59?di:n[pi]<0||n[pi]>59?pi:n[fi]<0||n[fi]>999?fi:-1,p(e)._overflowDayOfYear&&(tui)&&(t=ui),p(e)._overflowWeeks&&-1===t&&(t=hi),p(e)._overflowWeekday&&-1===t&&(t=gi),p(e).overflow=t),e}function it(e,t,n){return null!=e?e:null!=t?t:n}function ot(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function at(e){var t,n,r,i,o,a=[];if(!e._d){for(r=ot(e),e._w&&null==e._a[ui]&&null==e._a[li]&&st(e),null!=e._dayOfYear&&(o=it(e._a[si],r[si]),(e._dayOfYear>J(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=be(o,0,e._dayOfYear),e._a[li]=n.getUTCMonth(),e._a[ui]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ci]&&0===e._a[di]&&0===e._a[pi]&&0===e._a[fi]&&(e._nextDay=!0,e._a[ci]=0),e._d=(e._useUTC?be:ye).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ci]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function st(e){var t,n,r,i,o,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=it(t.GG,e._a[si],Ce($t(),1,4).year),r=it(t.W,1),((i=it(t.E,1))<1||i>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=Ce($t(),o,a);n=it(t.gg,e._a[si],u.year),r=it(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o}r<1||r>Se(n,o,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=xe(n,r,i,o,a),e._a[si]=s.year,e._dayOfYear=s.dayOfYear)}function lt(e){var t,n,r,i,o,a,s=e._i,l=Fi.exec(s)||Ni.exec(s);if(l){for(p(e).iso=!0,t=0,n=Vi.length;t0&&p(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),u+=r.length),Hr[o]?(r?p(t).empty=!1:p(t).unusedTokens.push(o),K(o,r,t)):t._strict&&!r&&p(t).unusedTokens.push(o);p(t).charsLeftOver=l-u,s.length>0&&p(t).unusedInput.push(s),t._a[ci]<=12&&!0===p(t).bigHour&&t._a[ci]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[ci]=vt(t._locale,t._a[ci],t._meridiem),at(t),rt(t)}function vt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function yt(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gt(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=xt(e),e._a){var t=e._isUTC?c(e._a):$t(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Wt(){return!!this.isValid()&&!this._isUTC}function qt(){return!!this.isValid()&&this._isUTC}function Yt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xt(e,t){var n,r,i,a=e,s=null;return Ot(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(a={},t?a[t]=e:a.milliseconds=e):(s=Xi.exec(e))?(n="-"===s[1]?-1:1,a={y:0,d:b(s[ui])*n,h:b(s[ci])*n,m:b(s[di])*n,s:b(s[pi])*n,ms:b(Pt(1e3*s[fi]))*n}):(s=Zi.exec(e))?(n="-"===s[1]?-1:(s[1],1),a={y:Zt(s[2],n),M:Zt(s[3],n),w:Zt(s[4],n),d:Zt(s[5],n),h:Zt(s[6],n),m:Zt(s[7],n),s:Zt(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Jt($t(a.from),$t(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Mt(a),Ot(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Jt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ft(t,e),e.isBefore(t)?n=Kt(e,t):(n=Kt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Qt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Xt(n,r),en(this,i,e),this}}function en(t,n,r,i){var o=n._milliseconds,a=Pt(n._days),s=Pt(n._months);t.isValid()&&(i=null==i||i,s&&pe(t,ne(t,"Month")+s*r),a&&re(t,"Date",ne(t,"Date")+a*r),o&&t._d.setTime(t._d.valueOf()+o*r),i&&e.updateOffset(t,a||s))}function tn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function nn(t,n){var r=t||$t(),i=Ft(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",a=n&&($(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,$t(r)))}function rn(){return new m(this)}function on(e,t){var n=v(e)?e:$t(e);return!(!this.isValid()||!n.isValid())&&(t=I(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):$(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function mn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=B(this,t);return this.localeData().postformat(n)}function vn(e,t){return this.isValid()&&(v(e)&&e.isValid()||$t(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yn(e){return this.from($t(),e)}function bn(e,t){return this.isValid()&&(v(e)&&e.isValid()||$t(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wn(e){return this.to($t(),e)}function xn(e){var t;return void 0===e?this._locale._abbr:(t=tt(e),null!=t&&(this._locale=t),this)}function Cn(){return this._locale}function Sn(e){switch(e=I(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function $n(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function En(){return this._d.valueOf()-6e4*(this._offset||0)}function Tn(){return Math.floor(this.valueOf()/1e3)}function kn(){return new Date(this.valueOf())}function _n(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function An(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dn(){return this.isValid()?this.toISOString():null}function Mn(){return f(this)}function On(){return u({},p(this))}function Pn(){return p(this).overflow}function Rn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function In(e,t){j(0,[e,e.length],0,t)}function Fn(e){return jn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Nn(e){return jn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Se(this.year(),1,4)}function Vn(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function jn(e,t,n,r,i){var o;return null==e?Ce(this,r,i).year:(o=Se(e,r,i),t>o&&(t=o),Hn.call(this,e,t,n,r,i))}function Hn(e,t,n,r,i){var o=xe(e,t,n,r,i),a=be(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function zn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Bn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Un(e,t){t[fi]=b(1e3*("0."+e))}function Gn(){return this._isUTC?"UTC":""}function Wn(){return this._isUTC?"Coordinated Universal Time":""}function qn(e){return $t(1e3*e)}function Yn(){return $t.apply(null,arguments).parseZone()}function Xn(e){return e}function Zn(e,t,n,r){var i=tt(),o=c().set(r,t);return i[n](o,e)}function Kn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return Zn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Zn(e,r,n,"month");return i}function Jn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i=tt(),a=e?i._week.dow:0;if(null!=n)return Zn(t,(n+a)%7,r,"day");var s,l=[];for(s=0;s<7;s++)l[s]=Zn(t,(s+a)%7,r,"day");return l}function Qn(e,t){return Kn(e,t,"months")}function er(e,t){return Kn(e,t,"monthsShort")}function tr(e,t,n){return Jn(e,t,n,"weekdays")}function nr(e,t,n){return Jn(e,t,n,"weekdaysShort")}function rr(e,t,n){return Jn(e,t,n,"weekdaysMin")}function ir(){var e=this._data;return this._milliseconds=so(this._milliseconds),this._days=so(this._days),this._months=so(this._months),e.milliseconds=so(e.milliseconds),e.seconds=so(e.seconds),e.minutes=so(e.minutes),e.hours=so(e.hours),e.months=so(e.months),e.years=so(e.years),this}function or(e,t,n,r){var i=Xt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ar(e,t){return or(this,e,t,1)}function sr(e,t){return or(this,e,t,-1)}function lr(e){return e<0?Math.floor(e):Math.ceil(e)}function ur(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*lr(dr(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=y(o/1e3),l.seconds=e%60,t=y(e/60),l.minutes=t%60,n=y(t/60),l.hours=n%24,a+=y(n/24),i=y(cr(a)),s+=i,a-=lr(dr(i)),r=y(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function cr(e){return 4800*e/146097}function dr(e){return 146097*e/4800}function pr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+r/864e5,n=this._months+cr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(dr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function fr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function hr(e){return function(){return this.as(e)}}function gr(){return Xt(this)}function mr(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function vr(e){return function(){return this.isValid()?this._data[e]:NaN}}function yr(){return y(this.days()/7)}function br(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function wr(e,t,n){var r=Xt(e).abs(),i=$o(r.as("s")),o=$o(r.as("m")),a=$o(r.as("h")),s=$o(r.as("d")),l=$o(r.as("M")),u=$o(r.as("y")),c=i<=Eo.ss&&["s",i]||i0,c[4]=n,br.apply(null,c)}function xr(e){return void 0===e?$o:"function"==typeof e&&($o=e,!0)}function Cr(e,t){return void 0!==Eo[e]&&(void 0===t?Eo[e]:(Eo[e]=t,"s"===e&&(Eo.ss=t-1),!0))}function Sr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=wr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function $r(e){return(e>0)-(e<0)||+e}function Er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=To(this._milliseconds)/1e3,i=To(this._days),o=To(this._months);e=y(r/60),t=y(e/60),r%=60,e%=60,n=y(o/12),o%=12;var a=n,s=o,l=i,u=t,c=e,d=r?r.toFixed(3).replace(/\.?0+$/,""):"",p=this.asSeconds();if(!p)return"P0D";var f=p<0?"-":"",h=$r(this._months)!==$r(p)?"-":"",g=$r(this._days)!==$r(p)?"-":"",m=$r(this._milliseconds)!==$r(p)?"-":"";return f+"P"+(a?h+a+"Y":"")+(s?h+s+"M":"")+(l?g+l+"D":"")+(u||c||d?"T":"")+(u?m+u+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var Tr,kr;kr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var mi,vi=te("FullYear",!0);mi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tthis?this:e:h()}),Wi=function(){return Date.now?Date.now():+new Date},qi=["year","quarter","month","week","day","hour","minute","second","millisecond"];Rt("Z",":"),Rt("ZZ",""),G("Z",ni),G("ZZ",ni),X(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=It(ni,e)});var Yi=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Xi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Zi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Xt.fn=Mt.prototype,Xt.invalid=Dt;var Ki=Qt(1,"add"),Ji=Qt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qi=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),In("gggg","weekYear"),In("ggggg","weekYear"),In("GGGG","isoWeekYear"),In("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),G("G",ei),G("g",ei),G("GG",qr,Br),G("gg",qr,Br),G("GGGG",Kr,Gr),G("gggg",Kr,Gr),G("GGGGG",Jr,Wr),G("ggggg",Jr,Wr),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=b(e)}),Z(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),j("Q",0,"Qo","quarter"),R("quarter","Q"),N("quarter",7),G("Q",zr),X("Q",function(e,t){t[li]=3*(b(e)-1)}),j("D",["DD",2],"Do","date"),R("date","D"),N("date",9),G("D",qr),G("DD",qr,Br),G("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),X(["D","DD"],ui),X("Do",function(e,t){t[ui]=b(e.match(qr)[0])});var eo=te("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),N("dayOfYear",4),G("DDD",Zr),G("DDDD",Ur),X(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),j("m",["mm",2],0,"minute"),R("minute","m"),N("minute",14),G("m",qr),G("mm",qr,Br),X(["m","mm"],di);var to=te("Minutes",!1);j("s",["ss",2],0,"second"),R("second","s"),N("second",15),G("s",qr),G("ss",qr,Br),X(["s","ss"],pi);var no=te("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),N("millisecond",16),G("S",Zr,zr),G("SS",Zr,Br),G("SSS",Zr,Ur);var ro;for(ro="SSSS";ro.length<=9;ro+="S")G(ro,Qr);for(ro="S";ro.length<=9;ro+="S")X(ro,Un);var io=te("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var oo=m.prototype;oo.add=Ki,oo.calendar=nn,oo.clone=rn,oo.diff=dn,oo.endOf=$n,oo.format=mn,oo.from=vn,oo.fromNow=yn,oo.to=bn,oo.toNow=wn,oo.get=ie,oo.invalidAt=Pn,oo.isAfter=on,oo.isBefore=an,oo.isBetween=sn,oo.isSame=ln,oo.isSameOrAfter=un,oo.isSameOrBefore=cn,oo.isValid=Mn,oo.lang=Qi,oo.locale=xn,oo.localeData=Cn,oo.max=Gi,oo.min=Ui,oo.parsingFlags=On,oo.set=oe,oo.startOf=Sn,oo.subtract=Ji,oo.toArray=_n,oo.toObject=An,oo.toDate=kn,oo.toISOString=hn,oo.inspect=gn,oo.toJSON=Dn,oo.toString=fn,oo.unix=Tn,oo.valueOf=En,oo.creationData=Rn,oo.year=vi,oo.isLeapYear=ee,oo.weekYear=Fn,oo.isoWeekYear=Nn,oo.quarter=oo.quarters=zn,oo.month=fe,oo.daysInMonth=he,oo.week=oo.weeks=ke,oo.isoWeek=oo.isoWeeks=_e,oo.weeksInYear=Vn,oo.isoWeeksInYear=Ln,oo.date=eo,oo.day=oo.days=Fe,oo.weekday=Ne,oo.isoWeekday=Le,oo.dayOfYear=Bn,oo.hour=oo.hours=Oi,oo.minute=oo.minutes=to,oo.second=oo.seconds=no,oo.millisecond=oo.milliseconds=io,oo.utcOffset=Lt,oo.utc=jt,oo.local=Ht,oo.parseZone=zt,oo.hasAlignedHourOffset=Bt,oo.isDST=Ut,oo.isLocal=Wt,oo.isUtcOffset=qt,oo.isUtc=Yt,oo.isUTC=Yt,oo.zoneAbbr=Gn,oo.zoneName=Wn,oo.dates=C("dates accessor is deprecated. Use date instead.",eo),oo.months=C("months accessor is deprecated. Use month instead",fe),oo.years=C("years accessor is deprecated. Use year instead",vi),oo.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vt),oo.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gt);var ao=k.prototype;ao.calendar=_,ao.longDateFormat=A,ao.invalidDate=D,ao.ordinal=M,ao.preparse=Xn,ao.postformat=Xn,ao.relativeTime=O,ao.pastFuture=P,ao.set=E,ao.months=le,ao.monthsShort=ue,ao.monthsParse=de,ao.monthsRegex=me,ao.monthsShortRegex=ge,ao.week=$e,ao.firstDayOfYear=Te,ao.firstDayOfWeek=Ee,ao.weekdays=Me,ao.weekdaysMin=Pe,ao.weekdaysShort=Oe,ao.weekdaysParse=Ie,ao.weekdaysRegex=Ve,ao.weekdaysShortRegex=je,ao.weekdaysMinRegex=He,ao.isPM=qe,ao.meridiem=Ye,Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=C("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=C("moment.langData is deprecated. Use moment.localeData instead.",tt);var so=Math.abs,lo=hr("ms"),uo=hr("s"),co=hr("m"),po=hr("h"),fo=hr("d"),ho=hr("w"),go=hr("M"),mo=hr("y"),vo=vr("milliseconds"),yo=vr("seconds"),bo=vr("minutes"),wo=vr("hours"),xo=vr("days"),Co=vr("months"),So=vr("years"),$o=Math.round,Eo={ss:44,s:45,m:45,h:22,d:26,M:11},To=Math.abs,ko=Mt.prototype;return ko.isValid=At,ko.abs=ir,ko.add=ar,ko.subtract=sr,ko.as=pr,ko.asMilliseconds=lo,ko.asSeconds=uo,ko.asMinutes=co,ko.asHours=po,ko.asDays=fo,ko.asWeeks=ho,ko.asMonths=go,ko.asYears=mo,ko.valueOf=fr,ko._bubble=ur,ko.clone=gr,ko.get=mr,ko.milliseconds=vo,ko.seconds=yo,ko.minutes=bo,ko.hours=wo,ko.days=xo,ko.weeks=yr,ko.months=Co,ko.years=So,ko.humanize=Sr,ko.toISOString=Er,ko.toString=Er,ko.toJSON=Er,ko.locale=xn,ko.localeData=Cn,ko.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Er),ko.lang=Qi,j("X",0,0,"unix"),j("x",0,0,"valueOf"),G("x",ei),G("X",ri),X("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),X("x",function(e,t,n){n._d=new Date(b(e))}),e.version="2.21.0",function(e){Tr=e}($t),e.fn=oo,e.min=Tt,e.max=kt,e.now=Wi,e.utc=c,e.unix=qn,e.months=Qn,e.isDate=a,e.locale=Je,e.invalid=h,e.duration=Xt,e.isMoment=v,e.weekdays=tr,e.parseZone=Yn,e.localeData=tt,e.isDuration=Ot,e.monthsShort=er,e.weekdaysMin=rr,e.defineLocale=Qe,e.updateLocale=et,e.locales=nt,e.weekdaysShort=nr,e.normalizeUnits=I,e.relativeTimeRounding=xr,e.relativeTimeThreshold=Cr,e.calendarFormat=tn,e.prototype=oo,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e}),/*! * jQuery JavaScript Library v3.4.0 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2019-04-10T19:48Z */ function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t,n){n=n||le;var r,i,o=n.createElement("script");if(o.text=e,t)for(r in Ce)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function r(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?he[ge.call(e)]||"object":typeof e}function i(e){var t=!!e&&"length"in e&&e.length,n=r(e);return!we(e)&&!xe(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function a(e,t,n){return we(t)?Se.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?Se.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Se.grep(e,function(e){return fe.call(t,e)>-1!==n}):Se.filter(t,e,n)}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return Se.each(e.match(Re)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function d(e,t,n,r){var i;try{e&&we(i=e.promise)?i.call(e).done(t).fail(n):e&&we(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function p(){le.removeEventListener("DOMContentLoaded",p),e.removeEventListener("load",p),Se.ready()}function f(e,t){return t.toUpperCase()}function h(e){return e.replace(Le,"ms-").replace(Ve,f)}function g(){this.expando=Se.expando+g.uid++}function m(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Be.test(e)?JSON.parse(e):e)}function v(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=m(n)}catch(e){}ze.set(e,t,n)}else n=void 0;return n}function y(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return Se.css(e,t,"")},l=s(),u=n&&n[3]||(Se.cssNumber[t]?"":"px"),c=e.nodeType&&(Se.cssNumber[t]||"px"!==u&&+l)&&We.exec(Se.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)Se.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,Se.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function b(e){var t,n=e.ownerDocument,r=e.nodeName,i=Qe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=Se.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Qe[r]=i,i)}function w(e,t){for(var n,r,i=[],o=0,a=e.length;o-1)o&&o.push(a);else if(c=Xe(a),s=x(p.appendChild(a),"script"),c&&C(s),n)for(d=0;a=s[d++];)nt.test(a.type||"")&&n.push(a);return p}function $(){return!0}function E(){return!1}function T(e,t){return e===k()==("focus"===t)}function k(){try{return le.activeElement}catch(e){}}function _(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)_(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=E;else if(!i)return e;return 1===o&&(a=i,i=function(e){return Se().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=Se.guid++)),e.each(function(){Se.event.add(this,t,i,r,n)})}function A(e,t,n){if(!n)return void Se.event.add(e,t,$);He.set(e,t,!1),Se.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=He.get(this,t);if(1&e.isTrigger&&this[t]){if(o)(Se.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=ce.call(arguments),He.set(this,t,o),r=n(this,t),this[t](),i=He.get(this,t),o!==i||r?He.set(this,t,!1):i=void 0,o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else o&&(He.set(this,t,Se.event.trigger(Se.extend(o.shift(),Se.Event.prototype),o,this)),e.stopImmediatePropagation())}})}function D(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")?Se(e).children("tbody")[0]||e:e}function M(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function O(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function P(e,t){var n,r,i,o,a,s,l,u;if(1===t.nodeType){if(He.hasData(e)&&(o=He.access(e),a=He.set(t,o),u=o.events)){delete a.handle,a.events={};for(i in u)for(n=0,r=u[i].length;n1&&"string"==typeof h&&!be.checkClone&&ct.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),I(o,t,r,i)});if(p&&(o=S(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=Se.map(x(o,"script"),M),l=s.length;d=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function B(e,t,n){var r=ft(e),i=!be.boxSizingReliable()||n,o=i&&"border-box"===Se.css(e,"boxSizing",!1,r),a=o,s=N(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(pt.test(s)){if(!n)return s;s="auto"}return(!be.boxSizingReliable()&&o||"auto"===s||!parseFloat(s)&&"inline"===Se.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===Se.css(e,"boxSizing",!1,r),(a=l in e)&&(s=e[l])),(s=parseFloat(s)||0)+z(e,t,n||(o?"border":"content"),a,r,s)+"px"}function U(e,t,n,r,i){return new U.prototype.init(e,t,n,r,i)}function G(){St&&(!1===le.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(G):e.setTimeout(G,Se.fx.interval),Se.fx.tick())}function W(){return e.setTimeout(function(){Ct=void 0}),Ct=Date.now()}function q(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=qe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Y(e,t,n){for(var r,i=(K.tweeners[t]||[]).concat(K.tweeners["*"]),o=0,a=i.length;o=0&&nx.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[L]=!0,e}function i(e){var t=M.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&$e(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function c(){}function d(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function h(e,n,r){for(var i=0,o=n.length;i-1&&(r[u]=!(a[u]=d))}}else b=g(b===a?b.splice(m,b.length):b),o?o(null,a,b,l):K.apply(a,b)})}function v(e){for(var t,n,r,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,l=p(function(e){return e===t},a,!0),u=p(function(e){return Q(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==k)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s1&&f(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ae,"$1"),n,s0,o=e.length>0,a=function(r,a,s,l,u){var c,d,p,f=0,h="0",m=r&&[],v=[],y=k,b=r||o&&x.find.TAG("*",u),w=j+=null==y?1:Math.random()||.1,C=b.length;for(u&&(k=a===M||a||u);h!==C&&null!=(c=b[h]);h++){if(o&&c){for(d=0,a||c.ownerDocument===M||(D(c),s=!P);p=e[d++];)if(p(c,a||M,s)){l.push(c);break}u&&(j=w)}i&&((c=!p&&c)&&f--,r&&m.push(c))}if(f+=h,i&&h!==f){for(d=0;p=n[d++];)p(m,v,a,s);if(r){if(f>0)for(;h--;)m[h]||v[h]||(v[h]=X.call(l));v=g(v)}K.apply(l,v),u&&!r&&v.length>0&&f+n.length>1&&t.uniqueSort(l)}return u&&(j=w,k=y),m};return i?r(a):a}var b,w,x,C,S,$,E,T,k,_,A,D,M,O,P,R,I,F,N,L="sizzle"+1*new Date,V=e.document,j=0,H=0,z=n(),B=n(),U=n(),G=n(),W=function(e,t){return e===t&&(A=!0),0},q={}.hasOwnProperty,Y=[],X=Y.pop,Z=Y.push,K=Y.push,J=Y.slice,Q=function(e,t){for(var n=0,r=e.length;n+~]|"+te+")"+te+"*"),ue=new RegExp(te+"|>"),ce=new RegExp(ie),de=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},fe=/HTML$/i,he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=new RegExp("\\\\([\\da-f]{1,6}"+te+"?|("+te+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ce=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Se=function(){D()},$e=p(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{K.apply(Y=J.call(V.childNodes),V.childNodes),Y[V.childNodes.length].nodeType}catch(e){K={apply:Y.length?function(e,t){Z.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},S=t.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!fe.test(t||n&&n.nodeName||"HTML")},D=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:V;return r!==M&&9===r.nodeType&&r.documentElement?(M=r,O=M.documentElement,P=!S(M),V!==M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Se,!1):n.attachEvent&&n.attachEvent("onunload",Se)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(M.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(M.getElementsByClassName),w.getById=i(function(e){return O.appendChild(e).id=L,!M.getElementsByName||!M.getElementsByName(L).length}),w.getById?(x.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(x.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),x.find.TAG=w.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=w.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&P)return t.getElementsByClassName(e)},I=[],R=[],(w.qsa=me.test(M.querySelectorAll))&&(i(function(e){O.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+te+"*(?:value|"+ee+")"),e.querySelectorAll("[id~="+L+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+L+"+*").length||R.push(".#.+[+~]")}),i(function(e){e.innerHTML="";var t=M.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+te+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),O.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(w.matchesSelector=me.test(F=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&i(function(e){w.disconnectedMatch=F.call(e,"*"),F.call(e,"[s!='']:x"),I.push("!=",ie)}),R=R.length&&new RegExp(R.join("|")),I=I.length&&new RegExp(I.join("|")),t=me.test(O.compareDocumentPosition),N=t||me.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===M||e.ownerDocument===V&&N(V,e)?-1:t===M||t.ownerDocument===V&&N(V,t)?1:_?Q(_,e)-Q(_,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],l=[t];if(!i||!o)return e===M?-1:t===M?1:i?-1:o?1:_?Q(_,e)-Q(_,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[r]===l[r];)r++;return r?a(s[r],l[r]):s[r]===V?-1:l[r]===V?1:0},M):M},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==M&&D(e),w.matchesSelector&&P&&!G[n+" "]&&(!I||!I.test(n))&&(!R||!R.test(n)))try{var r=F.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){G(n,!0)}return t(n,M,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==M&&D(e),N(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==M&&D(e);var n=x.attrHandle[t.toLowerCase()],r=n&&q.call(x.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:w.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,Ce)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!w.detectDuplicates,_=!w.sortStable&&e.slice(0),e.sort(W),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return _=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},x=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=$(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,f,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(p=m,d=p[L]||(p[L]={}),c=d[p.uniqueID]||(d[p.uniqueID]={}),u=c[e]||[],f=u[0]===j&&u[1],b=f&&u[2],p=f&&m.childNodes[f];p=++f&&p&&p[g]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[j,f,b];break}}else if(y&&(p=t,d=p[L]||(p[L]={}),c=d[p.uniqueID]||(d[p.uniqueID]={}),u=c[e]||[],f=u[0]===j&&u[1],b=f),!1===b)for(;(p=++f&&p&&p[g]||(b=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&(d=p[L]||(p[L]={}),c=d[p.uniqueID]||(d[p.uniqueID]={}),c[e]=[j,b]),p!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,n){var i,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[L]?o(n):o.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=Q(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=E(e.replace(ae,"$1"));return i[L]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||C(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do{if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(a=o[0]).type&&9===t.nodeType&&P&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(be,we),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((l=x.find[s])&&(r=l(a.matches[0].replace(be,we),ye.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&d(o)))return K.apply(n,r),n;break}}return(c||E(e,p))(r,t,!P,n,!t||ye.test(e)&&u(t.parentNode)||t),n},w.sortStable=L.split("").sort(W).join("")===L,w.detectDuplicates=!!A,D(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(M.createElement("fieldset"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(ee,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Se.find=Ee,Se.expr=Ee.selectors,Se.expr[":"]=Se.expr.pseudos,Se.uniqueSort=Se.unique=Ee.uniqueSort,Se.text=Ee.getText,Se.isXMLDoc=Ee.isXML,Se.contains=Ee.contains,Se.escapeSelector=Ee.escape;var Te=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Se(e).is(n))break;r.push(e)}return r},ke=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},_e=Se.expr.match.needsContext,Ae=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Se.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Se.find.matchesSelector(r,e)?[r]:[]:Se.find.matches(e,Se.grep(t,function(e){return 1===e.nodeType}))},Se.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(Se(e).filter(function(){for(t=0;t1?Se.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&_e.test(e)?Se(e):e||[],!1).length}});var De,Me=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(Se.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||De,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Me.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof Se?t[0]:t,Se.merge(this,Se.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:le,!0)),Ae.test(r[1])&&Se.isPlainObject(t))for(r in t)we(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=le.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):we(e)?void 0!==n.ready?n.ready(e):e(Se):Se.makeArray(e,this)}).prototype=Se.fn,De=Se(le);var Oe=/^(?:parents|prev(?:Until|All))/,Pe={children:!0,contents:!0,next:!0,prev:!0};Se.fn.extend({has:function(e){var t=Se(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&Se.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Se.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?fe.call(Se(e),this[0]):fe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Se.uniqueSort(Se.merge(this.get(),Se(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Se.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Te(e,"parentNode")},parentsUntil:function(e,t,n){return Te(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,t,n){return Te(e,"nextSibling",n)},prevUntil:function(e,t,n){return Te(e,"previousSibling",n)},siblings:function(e){return ke((e.parentNode||{}).firstChild,e)},children:function(e){return ke(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(o(e,"template")&&(e=e.content||e),Se.merge([],e.childNodes))}},function(e,t){Se.fn[e]=function(n,r){var i=Se.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Se.filter(r,i)),this.length>1&&(Pe[e]||Se.uniqueSort(i),Oe.test(e)&&i.reverse()),this.pushStack(i)}});var Re=/[^\x20\t\r\n\f]+/g;Se.Callbacks=function(e){e="string"==typeof e?l(e):Se.extend({},e);var t,n,i,o,a=[],s=[],u=-1,c=function(){for(o=o||e.once,i=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?Se.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},Se.extend({Deferred:function(t){var n=[["notify","progress",Se.Callbacks("memory"),Se.Callbacks("memory"),2],["resolve","done",Se.Callbacks("once memory"),Se.Callbacks("once memory"),0,"resolved"],["reject","fail",Se.Callbacks("once memory"),Se.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return Se.Deferred(function(t){Se.each(n,function(n,r){var i=we(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&we(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,l=arguments,d=function(){var e,d;if(!(t=a&&(r!==c&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?p():(Se.Deferred.getStackHook&&(p.stackTrace=Se.Deferred.getStackHook()),e.setTimeout(p))}}var a=0;return Se.Deferred(function(e){n[0][3].add(o(0,e,we(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,we(t)?t:u)),n[2][3].add(o(0,e,we(r)?r:c))}).promise()},promise:function(e){return null!=e?Se.extend(e,i):i}},o={};return Se.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=ce.call(arguments),o=Se.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?ce.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(d(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||we(i[n]&&i[n].then)))return o.then();for(;n--;)d(i[n],a(n),o.reject);return o.promise()}});var Ie=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Se.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Ie.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Se.readyException=function(t){e.setTimeout(function(){throw t})};var Fe=Se.Deferred();Se.fn.ready=function(e){return Fe.then(e).catch(function(e){Se.readyException(e)}),this},Se.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--Se.readyWait:Se.isReady)||(Se.isReady=!0,!0!==e&&--Se.readyWait>0||Fe.resolveWith(le,[Se]))}}),Se.ready.then=Fe.then,"complete"===le.readyState||"loading"!==le.readyState&&!le.documentElement.doScroll?e.setTimeout(Se.ready):(le.addEventListener("DOMContentLoaded",p),e.addEventListener("load",p));var Ne=function(e,t,n,i,o,a,s){var l=0,u=e.length,c=null==n;if("object"===r(n)){o=!0;for(l in n)Ne(e,t,l,n[l],!0,a,s)}else if(void 0!==i&&(o=!0,we(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(Se(e),n)})),t))for(;l1,null,!0)},removeData:function(e){return this.each(function(){ze.remove(this,e)})}}),Se.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=He.get(e,t),n&&(!r||Array.isArray(n)?r=He.access(e,t,Se.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=Se.queue(e,t),r=n.length,i=n.shift(),o=Se._queueHooks(e,t),a=function(){Se.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return He.get(e,n)||He.access(e,n,{empty:Se.Callbacks("once memory").add(function(){He.remove(e,[t+"queue",n])})})}}),Se.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,nt=/^$|^module$|\/(?:java|ecma)script/i,rt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};rt.optgroup=rt.option,rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td;var it=/<|&#?\w+;/;!function(){ var e=le.createDocumentFragment(),t=e.appendChild(le.createElement("div")),n=le.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),be.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",be.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var ot=/^key/,at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,st=/^([^.]*)(?:\.(.+)|)/;Se.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,p,f,h,g,m=He.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&Se.find.matchesSelector(Ye,i),n.guid||(n.guid=Se.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==Se&&Se.event.triggered!==t.type?Se.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Re)||[""],u=t.length;u--;)s=st.exec(t[u])||[],f=g=s[1],h=(s[2]||"").split(".").sort(),f&&(d=Se.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=Se.event.special[f]||{},c=Se.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Se.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=l[f])||(p=l[f]=[],p.delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),Se.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,p,f,h,g,m=He.hasData(e)&&He.get(e);if(m&&(l=m.events)){for(t=(t||"").match(Re)||[""],u=t.length;u--;)if(s=st.exec(t[u])||[],f=g=s[1],h=(s[2]||"").split(".").sort(),f){for(d=Se.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,p=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||Se.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)Se.event.remove(e,f+t[u],n,r,!0);Se.isEmptyObject(l)&&He.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=Se.event.fix(e),l=new Array(arguments.length),u=(He.get(this,"events")||{})[s.type]||[],c=Se.event.special[s.type]||{};for(l[0]=s,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n-1:Se.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,ut=/\s*$/g;Se.extend({htmlPrefilter:function(e){return e.replace(lt,"<$1>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=Xe(e);if(!(be.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Se.isXMLDoc(e)))for(a=x(s),o=x(e),r=0,i=o.length;r0&&C(a,!l&&x(e,"script")),s},cleanData:function(e){for(var t,n,r,i=Se.event.special,o=0;void 0!==(n=e[o]);o++)if(je(n)){if(t=n[He.expando]){if(t.events)for(r in t.events)i[r]?Se.event.remove(n,r):Se.removeEvent(n,r,t.handle);n[He.expando]=void 0}n[ze.expando]&&(n[ze.expando]=void 0)}}}),Se.fn.extend({detach:function(e){return F(this,e,!0)},remove:function(e){return F(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?Se.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){D(this,e).appendChild(e)}})},prepend:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=D(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Se.cleanData(x(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Se.clone(this,e,t)})},html:function(e){return Ne(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ut.test(e)&&!rt[(tt.exec(e)||["",""])[1].toLowerCase()]){e=Se.htmlPrefilter(e);try{for(;n1)}}),Se.Tween=U,U.prototype={constructor:U,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||Se.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Se.cssNumber[n]?"":"px")},cur:function(){var e=U.propHooks[this.prop];return e&&e.get?e.get(this):U.propHooks._default.get(this)},run:function(e){var t,n=U.propHooks[this.prop];return this.options.duration?this.pos=t=Se.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):U.propHooks._default.set(this),this}},U.prototype.init.prototype=U.prototype,U.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Se.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){Se.fx.step[e.prop]?Se.fx.step[e.prop](e):1!==e.elem.nodeType||!Se.cssHooks[e.prop]&&null==e.elem.style[j(e.prop)]?e.elem[e.prop]=e.now:Se.style(e.elem,e.prop,e.now+e.unit)}}},U.propHooks.scrollTop=U.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Se.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Se.fx=U.prototype.init,Se.fx.step={};var Ct,St,$t=/^(?:toggle|show|hide)$/,Et=/queueHooks$/;Se.Animation=Se.extend(K,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,We.exec(t),n),n}]},tweener:function(e,t){we(e)?(t=e,e=["*"]):e=e.match(Re);for(var n,r=0,i=e.length;r1)},removeAttr:function(e){return this.each(function(){Se.removeAttr(this,e)})}}),Se.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?Se.prop(e,t,n):(1===o&&Se.isXMLDoc(e)||(i=Se.attrHooks[t.toLowerCase()]||(Se.expr.match.bool.test(t)?Tt:void 0)),void 0!==n?null===n?void Se.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=Se.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!be.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Re);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Tt={set:function(e,t,n){return!1===t?Se.removeAttr(e,n):e.setAttribute(n,n),n}},Se.each(Se.expr.match.bool.source.match(/\w+/g),function(e,t){var n=kt[t]||Se.find.attr;kt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=kt[a],kt[a]=i,i=null!=n(e,t,r)?a:null,kt[a]=o),i}});var _t=/^(?:input|select|textarea|button)$/i,At=/^(?:a|area)$/i;Se.fn.extend({prop:function(e,t){return Ne(this,Se.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Se.propFix[e]||e]})}}),Se.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Se.isXMLDoc(e)||(t=Se.propFix[t]||t,i=Se.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=Se.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),be.optSelected||(Se.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Se.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Se.propFix[this.toLowerCase()]=this}),Se.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(we(e))return this.each(function(t){Se(this).addClass(e.call(this,t,Q(this)))});if(t=ee(e),t.length)for(;n=this[l++];)if(i=Q(n),r=1===n.nodeType&&" "+J(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=J(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(we(e))return this.each(function(t){Se(this).removeClass(e.call(this,t,Q(this)))});if(!arguments.length)return this.attr("class","");if(t=ee(e),t.length)for(;n=this[l++];)if(i=Q(n),r=1===n.nodeType&&" "+J(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=J(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):we(e)?this.each(function(n){Se(this).toggleClass(e.call(this,n,Q(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=Se(this),a=ee(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||(t=Q(this),t&&He.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":He.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+J(Q(n))+" ").indexOf(t)>-1)return!0;return!1}});var Dt=/\r/g;Se.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=we(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,Se(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Se.map(i,function(e){return null==e?"":e+""})),(t=Se.valHooks[this.type]||Se.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=Se.valHooks[i.type]||Se.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Dt,""):null==n?"":n)}}}),Se.extend({valHooks:{option:{get:function(e){var t=Se.find.attr(e,"value");return null!=t?t:J(Se.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,s="select-one"===e.type,l=s?null:[],u=s?a+1:i.length;for(r=a<0?u:s?a:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Se.each(["radio","checkbox"],function(){Se.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=Se.inArray(Se(e).val(),t)>-1}},be.checkOn||(Se.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),be.focusin="onfocusin"in e;var Mt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};Se.extend(Se.event,{trigger:function(t,n,r,i){var o,a,s,l,u,c,d,p,f=[r||le],h=me.call(t,"type")?t.type:t,g=me.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=r=r||le,3!==r.nodeType&&8!==r.nodeType&&!Mt.test(h+Se.event.triggered)&&(h.indexOf(".")>-1&&(g=h.split("."),h=g.shift(),g.sort()),u=h.indexOf(":")<0&&"on"+h,t=t[Se.expando]?t:new Se.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:Se.makeArray(n,[t]),d=Se.event.special[h]||{},i||!d.trigger||!1!==d.trigger.apply(r,n))){if(!i&&!d.noBubble&&!xe(r)){for(l=d.delegateType||h,Mt.test(l+h)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||le)&&f.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=f[o++])&&!t.isPropagationStopped();)p=a,t.type=o>1?l:d.bindType||h,c=(He.get(a,"events")||{})[t.type]&&He.get(a,"handle"),c&&c.apply(a,n),(c=u&&a[u])&&c.apply&&je(a)&&(t.result=c.apply(a,n),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),n)||!je(r)||u&&we(r[h])&&!xe(r)&&(s=r[u],s&&(r[u]=null),Se.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,Ot),r[h](),t.isPropagationStopped()&&p.removeEventListener(h,Ot),Se.event.triggered=void 0,s&&(r[u]=s)),t.result}},simulate:function(e,t,n){var r=Se.extend(new Se.Event,n,{type:e,isSimulated:!0});Se.event.trigger(r,null,t)}}),Se.fn.extend({trigger:function(e,t){return this.each(function(){Se.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Se.event.trigger(e,t,n,!0)}}),be.focusin||Se.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Se.event.simulate(t,e.target,Se.event.fix(e))};Se.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=He.access(r,t);i||r.addEventListener(e,n,!0),He.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=He.access(r,t)-1;i?He.access(r,t,i):(r.removeEventListener(e,n,!0),He.remove(r,t))}}});var Pt=e.location,Rt=Date.now(),It=/\?/;Se.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||Se.error("Invalid XML: "+t),n};var Ft=/\[\]$/,Nt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Vt=/^(?:input|select|textarea|keygen)/i;Se.param=function(e,t){var n,r=[],i=function(e,t){var n=we(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Se.isPlainObject(e))Se.each(e,function(){i(this.name,this.value)});else for(n in e)te(n,e[n],t,i);return r.join("&")},Se.fn.extend({serialize:function(){return Se.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Se.prop(this,"elements");return e?Se.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Se(this).is(":disabled")&&Vt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!et.test(e))}).map(function(e,t){var n=Se(this).val();return null==n?null:Array.isArray(n)?Se.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}});var jt=/%20/g,Ht=/#.*$/,zt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gt=/^(?:GET|HEAD)$/,Wt=/^\/\//,qt={},Yt={},Xt="*/".concat("*"),Zt=le.createElement("a");Zt.href=Pt.href,Se.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pt.href,type:"GET",isLocal:Ut.test(Pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Se.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,Se.ajaxSettings),t):ie(Se.ajaxSettings,e)},ajaxPrefilter:ne(qt),ajaxTransport:ne(Yt),ajax:function(t,n){function r(t,n,r,s){var u,p,f,w,x,C=n;c||(c=!0,l&&e.clearTimeout(l),i=void 0,a=s||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,r&&(w=oe(h,S,r)),w=ae(h,w,S,u),u?(h.ifModified&&(x=S.getResponseHeader("Last-Modified"),x&&(Se.lastModified[o]=x),(x=S.getResponseHeader("etag"))&&(Se.etag[o]=x)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=w.state,p=w.data,f=w.error,u=!f)):(f=C,!t&&C||(C="error",t<0&&(t=0))),S.status=t,S.statusText=(n||C)+"",u?v.resolveWith(g,[p,C,S]):v.rejectWith(g,[S,C,f]),S.statusCode(b),b=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[S,h,u?p:f]),y.fireWith(g,[S,C]),d&&(m.trigger("ajaxComplete",[S,h]),--Se.active||Se.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,l,u,c,d,p,f,h=Se.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?Se(g):Se.event,v=Se.Deferred(),y=Se.Callbacks("once memory"),b=h.statusCode||{},w={},x={},C="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Bt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),r(0,t),this}};if(v.promise(S),h.url=((t||h.url||Pt.href)+"").replace(Wt,Pt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Re)||[""],null==h.crossDomain){u=le.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Zt.protocol+"//"+Zt.host!=u.protocol+"//"+u.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Se.param(h.data,h.traditional)),re(qt,h,n,S),c)return S;d=Se.event&&h.global,d&&0==Se.active++&&Se.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Gt.test(h.type),o=h.url.replace(Ht,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(It.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(zt,"$1"),f=(It.test(o)?"&":"?")+"_="+Rt+++f),h.url=o+f),h.ifModified&&(Se.lastModified[o]&&S.setRequestHeader("If-Modified-Since",Se.lastModified[o]),Se.etag[o]&&S.setRequestHeader("If-None-Match",Se.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Xt+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)S.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,S,h)||c))return S.abort();if(C="abort",y.add(h.complete),S.done(h.success),S.fail(h.error),i=re(Yt,h,n,S)){if(S.readyState=1,d&&m.trigger("ajaxSend",[S,h]),c)return S;h.async&&h.timeout>0&&(l=e.setTimeout(function(){S.abort("timeout")},h.timeout));try{c=!1,i.send(w,r)}catch(e){if(c)throw e;r(-1,e)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return Se.get(e,t,n,"json")},getScript:function(e,t){return Se.get(e,void 0,t,"script")}}),Se.each(["get","post"],function(e,t){Se[t]=function(e,n,r,i){return we(n)&&(i=i||r,r=n,n=void 0),Se.ajax(Se.extend({url:e,type:t,dataType:i,data:n,success:r},Se.isPlainObject(e)&&e))}}),Se._evalUrl=function(e,t){return Se.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Se.globalEval(e,t)}})},Se.fn.extend({wrapAll:function(e){var t;return this[0]&&(we(e)&&(e=e.call(this[0])),t=Se(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return we(e)?this.each(function(t){Se(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Se(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=we(e);return this.each(function(n){Se(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){ return this.parent(e).not("body").each(function(){Se(this).replaceWith(this.childNodes)}),this}}),Se.expr.pseudos.hidden=function(e){return!Se.expr.pseudos.visible(e)},Se.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Se.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Jt=Se.ajaxSettings.xhr();be.cors=!!Jt&&"withCredentials"in Jt,be.ajax=Jt=!!Jt,Se.ajaxTransport(function(t){var n,r;if(be.cors||Jt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),Se.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Se.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Se.globalEval(e),e}}}),Se.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Se.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=Se("
I am in a box.
it('should apply the right class to the element', function () { element(by.css('.blah')).getCssValue('border-top-width') .then(function(c) { expect(c).toContain('1px'); }); }); */ angular.module("ui.grid").directive("uiGridStyle",["gridUtil","$interpolate",function(e,t){return{link:function(e,n,r,i){var o=t(n.text(),!0);o&&e.$watch(o,function(e){n.text(e)})}}}])}(),function(){"use strict";angular.module("ui.grid").directive("uiGridViewport",["gridUtil","ScrollEvent","uiGridConstants","$log",function(e,t,n,r){return{replace:!0,scope:{},controllerAs:"Viewport",templateUrl:"ui-grid/uiGridViewport",require:["^uiGrid","^uiGridRenderContainer"],link:function(n,r,i,o){function a(i){var o=r[0].scrollTop,a=e.normalizeScrollLeft(r,g),s=f.scrollVertical(o),l=h.scrollHorizontal(a),u=new t(g,f,h,t.Sources.ViewPortScroll);u.newScrollLeft=a,u.newScrollTop=o,l>-1&&(u.x={percentage:l}),s>-1&&(u.y={percentage:s}),g.scrollContainers(n.$parent.containerId,u)}function s(e){p.prevScrollArgs=e;var t=e.getNewScrollTop(f,p.viewport);r[0].scrollTop=t}function l(t){p.prevScrollArgs=t;var n=t.getNewScrollLeft(h,p.viewport);r[0].scrollLeft=e.denormalizeScrollLeft(p.viewport,n,g)}function u(t){var n=t.getNewScrollLeft(h,p.viewport);p.headerViewport&&(p.headerViewport.scrollLeft=e.denormalizeScrollLeft(p.viewport,n,g))}function c(t){var n=t.getNewScrollLeft(h,p.viewport);p.footerViewport&&(p.footerViewport.scrollLeft=e.denormalizeScrollLeft(p.viewport,n,g))}var d=o[0],p=o[1];n.containerCtrl=p;var f=p.rowContainer,h=p.colContainer,g=d.grid;n.grid=d.grid,n.rowContainer=p.rowContainer,n.colContainer=p.colContainer,p.viewport=r,g&&g.options&&g.options.customScroller?g.options.customScroller(r,a):r.on("scroll",a);n.$parent.bindScrollVertical&&g.addVerticalScrollSync(n.$parent.containerId,s),n.$parent.bindScrollHorizontal&&(g.addHorizontalScrollSync(n.$parent.containerId,l),g.addHorizontalScrollSync(n.$parent.containerId+"header",u),g.addHorizontalScrollSync(n.$parent.containerId+"footer",c)),n.$on("$destroy",function(){r.off()})},controller:["$scope",function(e){this.rowStyle=function(t){var n=e.rowContainer,r=e.colContainer,i={};if(0!==n.currentTopRow){var o="translateY("+n.currentTopRow*n.grid.options.rowHeight+"px)";i.transform=o,i["-webkit-transform"]=o,i["-ms-transform"]=o}return 0!==r.currentFirstColumn&&(r.grid.isRTL()?i["margin-right"]=r.columnOffset+"px":i["margin-left"]=r.columnOffset+"px"),i}}]}}])}(),function(){angular.module("ui.grid").directive("uiGridVisible",function(){return function(e,t,n){e.$watch(n.uiGridVisible,function(e){t[e?"removeClass":"addClass"]("ui-grid-invisible")})}})}(),function(){"use strict";function e(e,t,n){return{templateUrl:"ui-grid/ui-grid",scope:{uiGrid:"="},replace:!0,transclude:!0,controller:"uiGridController",compile:function(){return{post:function(r,i,o,a){function s(){i[0].offsetWidth<=0&&h(p.grid.rowHeaderColumns?p.grid.rowHeaderColumns.length:0);!a&&!n.uiGridColumns&&0===p.grid.options.columnDefs.length&&t.length>0&&p.grid.buildColumnDefsFromData(t),!a&&(p.grid.options.columnDefs.length>0||t.length>0)&&r.push(p.grid.buildColumns().then(function(){p.grid.preCompileCellTemplates()}).catch(angular.noop)),i.all(r).then(function(){p.grid.modifyRows(h).then(function(){p.grid.redrawInPlace(!0),e.$evalAsync(function(){p.grid.refreshCanvas(!0),p.grid.callDataChangeCallbacks(o.dataChange.ROW)})}).catch(angular.noop)}).catch(angular.noop)}}var p=this,f=[];p.grid=a.createGrid(e.uiGrid),p.grid.appScope=p.grid.appScope||e.$parent,t.addClass("grid"+p.grid.id),p.grid.rtl="rtl"===r.getStyles(t[0]).direction,e.grid=p.grid,n.uiGridColumns&&f.push(n.$observe("uiGridColumns",function(e){p.grid.options.columnDefs=angular.isString(e)?angular.fromJson(e):e,p.grid.buildColumns().then(function(){p.grid.preCompileCellTemplates(),p.grid.refreshCanvas(!0)}).catch(angular.noop)})),p.grid.options.fastWatch?(p.uiGrid=e.uiGrid,angular.isString(e.uiGrid.data)?(f.push(e.$parent.$watch(e.uiGrid.data,d)),f.push(e.$parent.$watch(function(){return p.grid.appScope[e.uiGrid.data]?p.grid.appScope[e.uiGrid.data].length:void 0},d))):(f.push(e.$parent.$watch(function(){return e.uiGrid.data},d)),f.push(e.$parent.$watch(function(){return u(e.uiGrid.data)},function(){d(e.uiGrid.data)}))),f.push(e.$parent.$watch(function(){return e.uiGrid.columnDefs},c)),f.push(e.$parent.$watch(function(){return u(e.uiGrid.columnDefs)},function(){c(e.uiGrid.columnDefs)}))):(angular.isString(e.uiGrid.data)?f.push(e.$parent.$watchCollection(e.uiGrid.data,d)):f.push(e.$parent.$watchCollection(function(){return e.uiGrid.data},d)),f.push(e.$parent.$watchCollection(function(){return e.uiGrid.columnDefs},c)));var h,g=e.$watch(function(){return p.grid.styleComputations},function(){p.grid.refreshCanvas(!0)});e.$on("$destroy",function(){f.forEach(function(e){e()}),g()}),p.fireEvent=function(t,n){n=n||{},angular.isUndefined(n.grid)&&(n.grid=p.grid),e.$broadcast(t,n)},p.innerCompile=function(t){l(t)(e)}}]),angular.module("ui.grid").directive("uiGrid",e),e.$inject=["$window","gridUtil","uiGridConstants"]}(),function(){"use strict";angular.module("ui.grid").directive("uiGridPinnedContainer",["gridUtil",function(e){return{restrict:"EA",replace:!0,template:'
',scope:{side:"=uiGridPinnedContainer"},require:"^uiGrid",compile:function(){return{post:function(e,t,n,r){function i(){var e=this,t=0;e.visibleColumnCache.forEach(function(e){t+=e.drawnWidth});var n=e.getViewportAdjustment();return t+=n.width}function o(){if("left"===e.side||"right"===e.side){for(var t=s.renderContainers[e.side].visibleColumnCache,n=0,r=0;r0?t[0]:null},g.prototype.getColDef=function(e){var t=this.options.columnDefs.filter(function(t){return t.name===e});return t.length>0?t[0]:null},g.prototype.assignTypes=function(){var e=this;e.options.columnDefs.forEach(function(t,n){if(!t.type){var i=new a(t,n,e),o=e.rows.length>0?e.rows[0]:null;t.type=o?r.guessType(e.getCellValue(o,i)):"string"}})},g.prototype.isRowHeaderColumn=function(e){return-1!==this.rowHeaderColumns.indexOf(e)},g.prototype.addRowHeaderColumn=function(e,t,n){var i=this;void 0===t&&(t=0);var o=new a(e,r.nextUid(),i);o.isRowHeader=!0,i.isRTL()?(i.createRightContainer(),o.renderContainer="right"):(i.createLeftContainer(),o.renderContainer="left"),i.columnBuilders[0](e,o,i.options).then(function(){o.enableFiltering=!1,o.enableSorting=!1,o.enableHiding=!1,o.headerPriority=t,i.rowHeaderColumns.push(o),i.rowHeaderColumns=i.rowHeaderColumns.sort(function(e,t){return e.headerPriority-t.headerPriority}),n||i.buildColumns().then(function(){i.preCompileCellTemplates(),i.queueGridRefresh()}).catch(angular.noop)}).catch(angular.noop)},g.prototype.getOnlyDataColumns=function(){var e=this,t=[];return e.columns.forEach(function(n){-1===e.rowHeaderColumns.indexOf(n)&&t.push(n)}),t},g.prototype.buildColumns=function(t){var n={orderByColumnDefs:!1};angular.extend(n,t);var i,o=this,s=[],l=o.rowHeaderColumns.length;for(i=0;i=0;u--)o.columns.unshift(o.rowHeaderColumns[u]);if(o.options.columnDefs.forEach(function(e,t){o.preprocessColDef(e);var n=o.getColumn(e.name);n?n.updateColumnDef(e,!1):(n=new a(e,r.nextUid(),o),o.columns.splice(t+l,0,n)),o.columnBuilders.forEach(function(t){s.push(t.call(o,e,n,o.options))})}),n.orderByColumnDefs){var c=o.columns.slice(0),d=Math.min(o.options.columnDefs.length,o.columns.length);for(i=0;i0&&o.assignTypes(),n.preCompileCellTemplates&&o.preCompileCellTemplates()}).catch(angular.noop)},g.prototype.preCompileCellTemplate=function(e){var n=this,r=e.cellTemplate.replace(i.MODEL_COL_FIELD,n.getQualifiedColField(e));r=r.replace(i.COL_FIELD,"grid.getCellValue(row, col)");var o=t(r);e.compiledElementFn=o,e.compiledElementFnDefer&&e.compiledElementFnDefer.resolve(e.compiledElementFn)},g.prototype.preCompileCellTemplates=function(){var e=this;e.columns.forEach(function(t){t.cellTemplate?e.preCompileCellTemplate(t):t.cellTemplatePromise&&t.cellTemplatePromise.then(function(){e.preCompileCellTemplate(t)}).catch(angular.noop)})},g.prototype.getQualifiedColField=function(e){return e.field===i.ENTITY_BINDING?"row.entity":r.preEval("row.entity."+e.field)},g.prototype.createLeftContainer=function(){this.hasLeftContainer()||(this.renderContainers.left=new d("left",this,{disableColumnOffset:!0}))},g.prototype.createRightContainer=function(){this.hasRightContainer()||(this.renderContainers.right=new d("right",this,{disableColumnOffset:!0}))},g.prototype.hasLeftContainer=function(){return void 0!==this.renderContainers.left},g.prototype.hasRightContainer=function(){return void 0!==this.renderContainers.right},g.prototype.preprocessColDef=function(e){var t=this;if(!e.field&&!e.name)throw new Error("colDef.name or colDef.field property is required");if(void 0===e.name&&void 0!==e.field){for(var n=e.field,r=2;t.getColumn(n);)n=e.field+r.toString(),r++;e.name=n}},g.prototype.newInN=function(e,t,n,r){for(var i=this,o=[],a=0;a0?r[0]:null},g.prototype.modifyRows=function(t){var n=this,r=n.rows.slice(0),i=n.rowHashMap||n.createRowHashMap(),o=!0;n.rowHashMap=n.createRowHashMap(),n.rows.length=0,t.forEach(function(e,t){var a,l;l=n.options.enableRowHashing?i.get(e):n.getRow(e,r),l&&(a=l,a.entity=e),a||(a=n.processRowBuilders(new s(e,t,n))),n.rows.push(a),n.rowHashMap.put(e,a),a.isSelected||(o=!1)}),n.selection&&(n.selection.selectAll=o),n.assignTypes();var a=e.when(n.processRowsProcessors(n.rows)).then(function(e){return n.setVisibleRows(e)}).catch(angular.noop),l=e.when(n.processColumnsProcessors(n.columns)).then(function(e){return n.setVisibleColumns(e)}).catch(angular.noop);return e.all([a,l])},g.prototype.addRows=function(e){for(var t=this,n=t.rows.length,r=0;r=o-n;s--)a+=e.columns[s].drawnWidth;a=t&&(t=e.sort.priority+1)}),t},g.prototype.resetColumnSorting=function(e){this.columns.forEach(function(t){t===e||t.suppressRemoveSort||(t.sort={})})},g.prototype.getColumnSorting=function(){var e,t=this,n=[];return e=t.columns.slice(0),e.sort(u.prioritySort).forEach(function(e){e.sort&&void 0!==e.sort.direction&&e.sort.direction&&(e.sort.direction===i.ASC||e.sort.direction===i.DESC)&&n.push(e)}),n},g.prototype.sortColumn=function(t,n,r){var i=this,o=null;if(void 0===t||!t)throw new Error("No column parameter provided");if("boolean"==typeof n?r=n:o=n,r?void 0===t.sort.priority&&(t.sort.priority=i.getNextColumnSortPriority()):(i.resetColumnSorting(t),t.sort.priority=void 0,t.sort.priority=i.getNextColumnSortPriority()),o)t.sort.direction=o;else{var a=t.sortDirectionCycle.indexOf(t.sort.direction?t.sort.direction:null);a=(a+1)%t.sortDirectionCycle.length,t.colDef&&t.suppressRemoveSort&&!t.sortDirectionCycle[a]&&(a=(a+1)%t.sortDirectionCycle.length),t.sortDirectionCycle[a]?t.sort.direction=t.sortDirectionCycle[a]:m(t,i)}return i.api.core.raise.sortChanged(i,i.getColumnSorting()),e.when(t)};var m=function(e,t){t.columns.forEach(function(t){t.sort&&void 0!==t.sort.priority&&t.sort.priority>e.sort.priority&&(t.sort.priority-=1)}),e.sort={}};return g.prototype.renderingComplete=function(){angular.isFunction(this.options.onRegisterApi)&&this.options.onRegisterApi(this.api),this.api.core.raise.renderingComplete(this.api)},g.prototype.createRowHashMap=function(){var e=this,t=new h;return t.grid=e,t},g.prototype.refresh=function(t){var n=this,r=n.processRowsProcessors(n.rows).then(function(e){n.setVisibleRows(e)}).catch(angular.noop),i=n.processColumnsProcessors(n.columns).then(function(e){n.setVisibleColumns(e)}).catch(angular.noop);return e.all([r,i]).then(function(){n.refreshCanvas(!0),n.redrawInPlace(t)}).catch(angular.noop)},g.prototype.refreshRows=function(){var e=this;return e.processRowsProcessors(e.rows).then(function(t){e.setVisibleRows(t),e.redrawInPlace(),e.refreshCanvas(!0)}).catch(angular.noop)},g.prototype.refreshCanvas=function(t){var n=this,i=e.defer(),o=[];for(var a in n.renderContainers)if(n.renderContainers.hasOwnProperty(a)){var s=n.renderContainers[a];if(null===s.canvasWidth||isNaN(s.canvasWidth))continue;(s.header||s.headerCanvas)&&(s.explicitHeaderHeight=null,s.explicitHeaderCanvasHeight=null,o.push(s))}return t&&n.buildStyles(),p(o.length>0?function(){var e,a,s=!1,l=0,u=0,c=function(e,t){return e!==t&&(s=!0),t};for(e=0;el&&(l=h)}if(a.headerCanvas){var g=a.headerCanvasHeight=c(a.headerCanvasHeight,parseInt(r.outerElementHeight(a.headerCanvas),10));!a.explicitHeaderCanvasHeight&&g>u&&(u=g)}}for(e=0;e0&&void 0!==a.headerHeight&&null!==a.headerHeight&&(a.explicitHeaderHeight||a.headerHeight0&&void 0!==a.headerCanvasHeight&&null!==a.headerCanvasHeight&&(a.explicitHeaderCanvasHeight||a.headerCanvasHeight0},g.prototype.hasRightContainerColumns=function(){return this.hasRightContainer()&&this.renderContainers.right.renderedColumns.length>0},g.prototype.scrollToIfNecessary=function(t,n){var r=this,i=new f(r,"uiGrid.scrollToIfNecessary"),o=r.renderContainers.body.visibleRowCache,a=r.renderContainers.body.visibleColumnCache,s=r.renderContainers.body.prevScrollTop+r.headerHeight;s=s<0?0:s;var l=r.renderContainers.body.prevScrollLeft,u=r.renderContainers.body.prevScrollTop+r.gridHeight-r.renderContainers.body.headerHeight-r.footerHeight-r.scrollbarWidth,c=r.renderContainers.body.prevScrollLeft+Math.ceil(r.renderContainers.body.getViewportWidth());if(null!==t){var d=o.indexOf(t),p=r.renderContainers.body.getCanvasHeight()-r.renderContainers.body.getViewportHeight(),h=d*r.options.rowHeight+r.headerHeight;h=h<0?0:h;var g,m;hu&&(g=h-u+r.renderContainers.body.prevScrollTop,(m=g/p)<=1&&(i.y={percentage:m}))}if(null!==n){for(var v=a.indexOf(n),y=r.renderContainers.body.getCanvasWidth()-r.renderContainers.body.getViewportWidth(),b=0,w=0;w1?1:S,i.x={percentage:S}):x>c&&(C=x-c+r.renderContainers.body.prevScrollLeft,S=C/y,S=S>1?1:S,i.x={percentage:S})}var $=e.defer();if(i.y||i.x){i.withDelay=!1,r.scrollContainers("",i);var E=r.api.core.on.scrollEnd(null,function(){$.resolve(i),E()})}else $.resolve();return $.promise},g.prototype.scrollTo=function(e,t){var n=null,r=null;return null!==e&&void 0!==e&&(n=this.getRow(e)),null!==t&&void 0!==t&&(r=this.getColumn(t.name?t.name:t.field)),this.scrollToIfNecessary(n,r)},g.prototype.clearAllFilters=function(e,t,n){if(void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=!1),this.columns.forEach(function(e){e.filters.forEach(function(e){e.term=void 0,t&&(e.condition=void 0),n&&(e.flags=void 0)})}),e)return this.refreshRows()},h.prototype={ put:function(e,t){this[this.grid.options.rowIdentity(e)]=t},get:function(e){return this[this.grid.options.rowIdentity(e)]},remove:function(e){var t=this[e=this.grid.options.rowIdentity(e)];return delete this[e],t}},g}])}(),function(){angular.module("ui.grid").factory("GridApi",["$q","$rootScope","gridUtil","uiGridConstants","GridRow","uiGridGridMenuService",function(e,t,n,r,i,o){function a(e,n,r,i){return t.$on(e,function(e){var t=Array.prototype.slice.call(arguments);t.splice(0,1),n.apply(i||r.api,t)})}var s=function(e){this.grid=e,this.listeners=[],this.registerEvent("core","renderingComplete"),this.registerEvent("core","filterChanged"),this.registerMethod("core","setRowInvisible",i.prototype.setRowInvisible),this.registerMethod("core","clearRowInvisible",i.prototype.clearRowInvisible),this.registerMethod("core","getVisibleRows",this.grid.getVisibleRows),this.registerEvent("core","rowsVisibleChanged"),this.registerEvent("core","rowsRendered"),this.registerEvent("core","scrollBegin"),this.registerEvent("core","scrollEnd"),this.registerEvent("core","canvasHeightChanged"),this.registerEvent("core","gridDimensionChanged")};return s.prototype.suppressEvents=function(e,t){var n=this,r=angular.isArray(e)?e:[e],i=n.listeners.filter(function(e){return r.some(function(t){return e.handler===t})});i.forEach(function(e){e.dereg()}),t(),i.forEach(function(e){e.dereg=a(e.eventId,e.handler,n.grid,e._this)})},s.prototype.registerEvent=function(e,r){var i=this;i[e]||(i[e]={});var o=i[e];o.on||(o.on={},o.raise={});var s=i.grid.id+e+r;o.raise[r]=function(){t.$emit.apply(t,[s].concat(Array.prototype.slice.call(arguments)))},o.on[r]=function(t,o,l){if(null!==t&&void 0===t.$on)return void n.logError("asked to listen on "+e+".on."+r+" but scope wasn't passed in the input parameters. It is legitimate to pass null, but you've passed something else, so you probably forgot to provide scope rather than did it deliberately, not registering");var u=a(s,o,i.grid,l),c={handler:o,dereg:u,eventId:s,scope:t,_this:l};i.listeners.push(c);var d=function(){c.dereg();var e=i.listeners.indexOf(c);i.listeners.splice(e,1)};return t&&t.$on("$destroy",function(){d()}),d}},s.prototype.registerEventsFromObject=function(e){var t=this,n=[];angular.forEach(e,function(e,t){var r={name:t,events:[]};angular.forEach(e,function(e,t){r.events.push(t)}),n.push(r)}),n.forEach(function(e){e.events.forEach(function(n){t.registerEvent(e.name,n)})})},s.prototype.registerMethod=function(e,t,r,i){this[e]||(this[e]={}),this[e][t]=n.createBoundedWrapper(i||this.grid,r)},s.prototype.registerMethodsFromObject=function(e,t){var n=this,r=[];angular.forEach(e,function(e,t){var n={name:t,methods:[]};angular.forEach(e,function(e,t){n.methods.push({name:t,fn:e})}),r.push(n)}),r.forEach(function(e){e.methods.forEach(function(r){n.registerMethod(e.name,r.name,r.fn,t)})})},s}])}(),function(){angular.module("ui.grid").factory("GridColumn",["gridUtil","uiGridConstants","i18nService",function(e,t,n){function r(e,n,r){var i=this;i.grid=r,i.uid=n,i.updateColumnDef(e,!0),i.aggregationValue=void 0,i.updateAggregationValue=function(){if(!i.aggregationType)return void(i.aggregationValue=void 0);var e=0,n=i.grid.getVisibleRows(),r=function(){var e=[];return n.forEach(function(t){var n=i.grid.getCellValue(t,i),r=Number(n);isNaN(r)||e.push(r)}),e};angular.isFunction(i.aggregationType)?i.aggregationValue=i.aggregationType(n,i):i.aggregationType===t.aggregationTypes.count?i.aggregationValue=i.grid.getVisibleRowCount():i.aggregationType===t.aggregationTypes.sum?(r().forEach(function(t){e+=t}),i.aggregationValue=e):i.aggregationType===t.aggregationTypes.avg?(r().forEach(function(t){e+=t}),e/=r().length,i.aggregationValue=e):i.aggregationType===t.aggregationTypes.min?i.aggregationValue=Math.min.apply(null,r()):i.aggregationType===t.aggregationTypes.max?i.aggregationValue=Math.max.apply(null,r()):i.aggregationValue=" "},this.getAggregationValue=function(){return i.aggregationValue}}return r.prototype.hideColumn=function(){this.colDef.visible=!1},r.prototype.setPropertyOrDefault=function(e,t,n){var r=this;void 0!==e[t]&&e[t]?r[t]=e[t]:void 0!==r[t]?r[t]=r[t]:r[t]=n||{}},r.prototype.updateColumnDef=function(n,r){var i=this;if(i.colDef=n,void 0===n.name)throw new Error("colDef.name is required for column at index "+i.grid.options.columnDefs.indexOf(n));if(i.displayName=void 0===n.displayName?e.readableColumnName(n.name):n.displayName,!angular.isNumber(i.width)||!i.hasCustomWidth||n.allowCustomWidthOverride){var o=n.width,a="Cannot parse column width '"+o+"' for column named '"+n.name+"'";if(i.hasCustomWidth=!1,angular.isString(o)||angular.isNumber(o))if(angular.isString(o))if(e.endsWith(o,"%")){var s=o.replace(/%/g,""),l=parseInt(s,10);if(isNaN(l))throw new Error(a);i.width=o}else if(o.match(/^(\d+)$/))i.width=parseInt(o.match(/^(\d+)$/)[1],10);else{if(!o.match(/^\*+$/))throw new Error(a);i.width=o}else i.width=o;else i.width="*"}["minWidth","maxWidth"].forEach(function(e){var t=n[e],r="Cannot parse column "+e+" '"+t+"' for column named '"+n.name+"'";if(angular.isString(t)||angular.isNumber(t))if(angular.isString(t)){if(!t.match(/^(\d+)$/))throw new Error(r);i[e]=parseInt(t.match(/^(\d+)$/)[1],10)}else i[e]=t;else i[e]="minWidth"===e?30:9e3}),i.field=void 0===n.field?n.name:n.field,"string"!=typeof i.field&&e.logError("Field is not a string, this is likely to break the code, Field is: "+i.field),i.name=n.name,i.displayName=void 0===n.displayName?e.readableColumnName(n.name):n.displayName,i.aggregationType=angular.isDefined(n.aggregationType)?n.aggregationType:null,i.footerCellTemplate=angular.isDefined(n.footerCellTemplate)?n.footerCellTemplate:null,void 0===n.cellTooltip||!1===n.cellTooltip?i.cellTooltip=!1:!0===n.cellTooltip?i.cellTooltip=function(e,t){return i.grid.getCellValue(e,t)}:"function"==typeof n.cellTooltip?i.cellTooltip=n.cellTooltip:i.cellTooltip=function(e,t){return t.colDef.cellTooltip},void 0===n.headerTooltip||!1===n.headerTooltip?i.headerTooltip=!1:!0===n.headerTooltip?i.headerTooltip=function(e){return e.displayName}:"function"==typeof n.headerTooltip?i.headerTooltip=n.headerTooltip:i.headerTooltip=function(e){return e.colDef.headerTooltip},i.footerCellClass=n.footerCellClass,i.cellClass=n.cellClass,i.headerCellClass=n.headerCellClass,i.cellFilter=n.cellFilter?n.cellFilter:"",i.sortCellFiltered=!!n.sortCellFiltered,i.filterCellFiltered=!!n.filterCellFiltered,i.headerCellFilter=n.headerCellFilter?n.headerCellFilter:"",i.footerCellFilter=n.footerCellFilter?n.footerCellFilter:"",i.visible=e.isNullOrUndefined(n.visible)||n.visible,i.headerClass=n.headerClass,i.enableSorting=void 0!==n.enableSorting?n.enableSorting:i.grid.options.enableSorting,i.sortingAlgorithm=n.sortingAlgorithm,i.sortDirectionCycle=void 0!==n.sortDirectionCycle?n.sortDirectionCycle:[null,t.ASC,t.DESC],void 0===i.suppressRemoveSort&&(i.suppressRemoveSort=void 0!==n.suppressRemoveSort&&n.suppressRemoveSort),i.enableFiltering=void 0===n.enableFiltering||n.enableFiltering,i.setPropertyOrDefault(n,"menuItems",[]),r&&i.setPropertyOrDefault(n,"sort"),i.setPropertyOrDefault(n,"defaultSort");var u=[];n.filter?u.push(n.filter):n.filters?u=n.filters:u.push({}),r?(i.setPropertyOrDefault(n,"filter"),i.setPropertyOrDefault(n,"extraStyle"),i.setPropertyOrDefault(n,"filters",u)):i.filters.length===u.length&&i.filters.forEach(function(e,t){void 0!==u[t].placeholder&&(e.placeholder=u[t].placeholder),void 0!==u[t].ariaLabel&&(e.ariaLabel=u[t].ariaLabel),void 0!==u[t].flags&&(e.flags=u[t].flags),void 0!==u[t].type&&(e.type=u[t].type),void 0!==u[t].selectOptions&&(e.selectOptions=u[t].selectOptions)})},r.prototype.unsort=function(){var e=this.sort.priority;this.grid.columns.forEach(function(t){t.sort&&void 0!==t.sort.priority&&t.sort.priority>e&&(t.sort.priority-=1)}),this.sort={},this.grid.api.core.raise.sortChanged(this.grid,this.grid.getColumnSorting())},r.prototype.getColClass=function(e){var n=t.COL_CLASS_PREFIX+this.uid;return e?"."+n:n},r.prototype.isPinnedLeft=function(){return"left"===this.renderContainer},r.prototype.isPinnedRight=function(){return"right"===this.renderContainer},r.prototype.getColClassDefinition=function(){return" .grid"+this.grid.id+" "+this.getColClass(!0)+" { min-width: "+this.drawnWidth+"px; max-width: "+this.drawnWidth+"px; }"},r.prototype.getRenderContainer=function(){var e=this,t=e.renderContainer;return null!==t&&""!==t&&void 0!==t||(t="body"),e.grid.renderContainers[t]},r.prototype.showColumn=function(){this.colDef.visible=!0},r.prototype.getAggregationText=function(){var e=this;if(e.colDef.aggregationHideLabel)return"";if(e.colDef.aggregationLabel)return e.colDef.aggregationLabel;switch(e.colDef.aggregationType){case t.aggregationTypes.count:return n.getSafeText("aggregation.count");case t.aggregationTypes.sum:return n.getSafeText("aggregation.sum");case t.aggregationTypes.avg:return n.getSafeText("aggregation.avg");case t.aggregationTypes.min:return n.getSafeText("aggregation.min");case t.aggregationTypes.max:return n.getSafeText("aggregation.max");default:return""}},r.prototype.getCellTemplate=function(){return this.cellTemplatePromise},r.prototype.getCompiledElementFn=function(){return this.compiledElementFnDefer.promise},r}])}(),function(){angular.module("ui.grid").factory("GridOptions",["gridUtil","uiGridConstants",function(e,t){return{initialize:function(n){return n.onRegisterApi=n.onRegisterApi||angular.noop(),n.data=n.data||[],n.columnDefs=n.columnDefs||[],n.excludeProperties=n.excludeProperties||["$$hashKey"],n.enableRowHashing=!1!==n.enableRowHashing,n.rowIdentity=n.rowIdentity||function(t){return e.hashKey(t)},n.getRowIdentity=n.getRowIdentity||function(e){return e.$$hashKey},n.flatEntityAccess=!0===n.flatEntityAccess,n.showHeader=void 0===n.showHeader||n.showHeader,n.showHeader?n.headerRowHeight=void 0!==n.headerRowHeight?n.headerRowHeight:30:n.headerRowHeight=0,"string"==typeof n.rowHeight?n.rowHeight=parseInt(n.rowHeight)||30:n.rowHeight=n.rowHeight||30,n.minRowsToShow=void 0!==n.minRowsToShow?n.minRowsToShow:10,n.showGridFooter=!0===n.showGridFooter,n.showColumnFooter=!0===n.showColumnFooter,n.columnFooterHeight=void 0!==n.columnFooterHeight?n.columnFooterHeight:30,n.gridFooterHeight=void 0!==n.gridFooterHeight?n.gridFooterHeight:30,n.columnWidth=void 0!==n.columnWidth?n.columnWidth:50,n.maxVisibleColumnCount=void 0!==n.maxVisibleColumnCount?n.maxVisibleColumnCount:200,n.virtualizationThreshold=void 0!==n.virtualizationThreshold?n.virtualizationThreshold:20,n.columnVirtualizationThreshold=void 0!==n.columnVirtualizationThreshold?n.columnVirtualizationThreshold:10,n.excessRows=void 0!==n.excessRows?n.excessRows:4,n.scrollThreshold=void 0!==n.scrollThreshold?n.scrollThreshold:4,n.excessColumns=void 0!==n.excessColumns?n.excessColumns:4,n.horizontalScrollThreshold=void 0!==n.horizontalScrollThreshold?n.horizontalScrollThreshold:2,n.aggregationCalcThrottle=void 0!==n.aggregationCalcThrottle?n.aggregationCalcThrottle:500,n.wheelScrollThrottle=void 0!==n.wheelScrollThrottle?n.wheelScrollThrottle:70,n.scrollDebounce=void 0!==n.scrollDebounce?n.scrollDebounce:300,n.enableSorting=!1!==n.enableSorting,n.enableFiltering=!0===n.enableFiltering,n.enableColumnMenus=!1!==n.enableColumnMenus,n.enableVerticalScrollbar=void 0!==n.enableVerticalScrollbar?n.enableVerticalScrollbar:t.scrollbars.ALWAYS,n.enableHorizontalScrollbar=void 0!==n.enableHorizontalScrollbar?n.enableHorizontalScrollbar:t.scrollbars.ALWAYS,n.enableMinHeightCheck=!1!==n.enableMinHeightCheck,n.minimumColumnSize=void 0!==n.minimumColumnSize?n.minimumColumnSize:10,n.rowEquality=n.rowEquality||function(e,t){return e===t},n.headerTemplate=n.headerTemplate||null,n.footerTemplate=n.footerTemplate||"ui-grid/ui-grid-footer",n.gridFooterTemplate=n.gridFooterTemplate||"ui-grid/ui-grid-grid-footer",n.rowTemplate=n.rowTemplate||"ui-grid/ui-grid-row",n.gridMenuTemplate=n.gridMenuTemplate||"ui-grid/uiGridMenu",n.appScopeProvider=n.appScopeProvider||null,n}}}])}(),function(){angular.module("ui.grid").factory("GridRenderContainer",["gridUtil","uiGridConstants",function(e,t){function n(e,t,n){var r=this;r.name=e,r.grid=t,r.visibleRowCache=[],r.visibleColumnCache=[],r.renderedRows=[],r.renderedColumns=[],r.prevScrollTop=0,r.prevScrolltopPercentage=0,r.prevRowScrollIndex=0,r.prevScrollLeft=0,r.prevScrollleftPercentage=0,r.prevColumnScrollIndex=0,r.columnStyles="",r.viewportAdjusters=[],r.hasHScrollbar=!1,r.hasVScrollbar=!1,r.canvasHeightShouldUpdate=!0,r.$$canvasHeight=0,n&&angular.isObject(n)&&angular.extend(r,n),t.registerStyleComputation({priority:5,func:function(){return r.updateColumnWidths(),r.columnStyles}})}return n.prototype.reset=function(){this.visibleColumnCache.length=0,this.visibleRowCache.length=0,this.renderedRows.length=0,this.renderedColumns.length=0},n.prototype.containsColumn=function(e){return-1!==this.visibleColumnCache.indexOf(e)},n.prototype.minRowsToRender=function(){for(var e=this,t=0,n=0,r=e.getViewportHeight(),i=e.visibleRowCache.length-1;n=0;i--)n+=e.visibleRowCache[i].height,t++;return t},n.prototype.minColumnsToRender=function(){for(var e=this,t=this.getViewportWidth(),n=0,r=0,i=0;i=i-n;s--)a+=e.visibleColumnCache[s].drawnWidth?e.visibleColumnCache[s].drawnWidth:0;a-1&&this.viewportAdjusters.splice(t,1)},n.prototype.getViewportAdjustment=function(){var e=this,t={height:0,width:0};return e.viewportAdjusters.forEach(function(e){t=e.call(this,t)}),t},n.prototype.getMargin=function(e){var t=this,n=0;return t.viewportAdjusters.forEach(function(t){var r=t.call(this,{height:0,width:0});r.side&&r.side===e&&(n+=-1*r.width)}),n},n.prototype.getViewportHeight=function(){var e=this,t=e.headerHeight?e.headerHeight:e.grid.headerHeight,n=e.grid.gridHeight-t-e.grid.footerHeight;return n+=e.getViewportAdjustment().height},n.prototype.getViewportWidth=function(){var e=this,t=e.grid.gridWidth;return t+=e.getViewportAdjustment().width},n.prototype.getHeaderViewportWidth=function(){return this.getViewportWidth()},n.prototype.getCanvasHeight=function(){var e=this;if(!e.canvasHeightShouldUpdate)return e.$$canvasHeight;var t=e.$$canvasHeight;return e.$$canvasHeight=0,e.visibleRowCache.forEach(function(t){e.$$canvasHeight+=t.height}),e.canvasHeightShouldUpdate=!1,e.grid.api.core.raise.canvasHeightChanged(t,e.$$canvasHeight),e.$$canvasHeight},n.prototype.getVerticalScrollLength=function(){return this.getCanvasHeight()-this.getViewportHeight()+this.grid.scrollbarHeight!==0?this.getCanvasHeight()-this.getViewportHeight()+this.grid.scrollbarHeight:-1},n.prototype.getHorizontalScrollLength=function(){return this.getCanvasWidth()-this.getViewportWidth()+this.grid.scrollbarWidth!==0?this.getCanvasWidth()-this.getViewportWidth()+this.grid.scrollbarWidth:-1},n.prototype.getCanvasWidth=function(){return this.canvasWidth},n.prototype.setRenderedRows=function(e){this.renderedRows.length=e.length;for(var t=0;t0&&(this.grid.scrollDirection=t.scrollDirection.DOWN),r<0&&(this.grid.scrollDirection=t.scrollDirection.UP);return n=e/this.getVerticalScrollLength(),n>1&&(n=1),n<0&&(n=0),this.adjustScrollVertical(e,n),n}},n.prototype.scrollHorizontal=function(e){var n=-1;if(e!==this.prevScrollLeft){var r=e-this.prevScrollLeft;r>0&&(this.grid.scrollDirection=t.scrollDirection.RIGHT),r<0&&(this.grid.scrollDirection=t.scrollDirection.LEFT);var i=this.getHorizontalScrollLength();return n=0!==i?e/i:0,this.adjustScrollHorizontal(e,n),n}},n.prototype.adjustScrollVertical=function(e,t,n){(this.prevScrollTop!==e||n)&&(void 0!==e&&void 0!==e&&null!==e||(e=(this.getCanvasHeight()-this.getViewportHeight())*t),this.adjustRows(e,t,!1),this.prevScrollTop=e,this.prevScrolltopPercentage=t,this.grid.queueRefresh())},n.prototype.adjustScrollHorizontal=function(e,t,n){(this.prevScrollLeft!==e||n)&&(void 0!==e&&void 0!==e&&null!==e||(e=(this.getCanvasWidth()-this.getViewportWidth())*t),this.adjustColumns(e,t),this.prevScrollLeft=e,this.prevScrollleftPercentage=t,this.grid.queueRefresh())},n.prototype.adjustRows=function(e,t,n){var r=this,i=r.minRowsToRender(),o=r.visibleRowCache,a=o.length-i;void 0!==t&&null!==t||!e||(t=e/r.getVerticalScrollLength());var s=Math.ceil(Math.min(a,a*t));s>a&&(s=a);var l=[];if(o.length>r.grid.options.virtualizationThreshold){if(void 0!==e&&null!==e){if(!r.grid.suppressParentScrollDown&&r.prevScrollTope&&s>r.prevRowScrollIndex-r.grid.options.scrollThreshold&&so&&(a=o);var s=[];if(i.length>n.grid.options.columnVirtualizationThreshold&&n.getCanvasWidth()>n.getViewportWidth()){s=[Math.max(0,a-n.grid.options.excessColumns),Math.min(i.length,a+r+n.grid.options.excessColumns)]}else{var l=n.visibleColumnCache.length;s=[0,Math.max(l,r+n.grid.options.excessColumns)]}n.updateViewableColumnRange(s),n.prevColumnScrollIndex=a},n.prototype.updateViewableRowRange=function(e){var t=this.visibleRowCache.slice(e[0],e[1]);this.currentTopRow=e[0],this.setRenderedRows(t)},n.prototype.updateViewableColumnRange=function(e){var t=this.visibleColumnCache.slice(e[0],e[1]);this.currentFirstColumn=e[0],this.setRenderedColumns(t)},n.prototype.headerCellWrapperStyle=function(){var e=this;if(0!==e.currentFirstColumn){var t=e.columnOffset;return e.grid.isRTL()?{"margin-right":t+"px"}:{"margin-left":t+"px"}}return null},n.prototype.updateColumnWidths=function(){var t=this,n=[],r=0,i=0,o="",a=!1,s=[],l=[],u=0,c=t.grid.getViewportWidth()-t.grid.scrollbarWidth,d=[];angular.forEach(t.grid.renderContainers,function(e){d=d.concat(e.visibleColumnCache)}),d.forEach(function(o){var d=0;if(o.visible)if(a&&(c+=t.grid.scrollbarWidth),!a&&o.colDef.pinnedRight&&(a=!0),angular.isNumber(o.width))d=parseInt(o.width,10),i+=d,o.drawnWidth=d,s.push(o);else if(e.endsWith(o.width,"%")){var p=parseInt(o.width.replace(/%/g,""),10);d=parseInt(p/100*c),d>o.maxWidth&&(d=o.maxWidth),d0){var f=p/r;n.forEach(function(e){var t=parseInt(e.width.length*f,10);t>e.maxWidth&&(t=e.maxWidth),t0?h=n:l.length>0&&0===s.length&&100===u&&(h=l),!angular.isUndefined(h)){for(var g=function(e){e.drawnWidth0&&(e.drawnWidth++,i++,m--,v=!0)},m=c-i,v=!0;m>0&&v;)v=!1,h.forEach(g);var y=function(e){e.drawnWidth>e.minWidth&&b>0&&(e.drawnWidth--,i--,b--,v=!0)},b=i-c;for(v=!0;b>0&&v;)v=!1,h.forEach(y)}var w=0;t.visibleColumnCache.forEach(function(e){e.visible&&(w+=e.drawnWidth)}),d.forEach(function(e){o+=e.getColClassDefinition()}),t.canvasWidth=w,this.columnStyles=o},n.prototype.needsHScrollbarPlaceholder=function(){return this.grid.options.enableHorizontalScrollbar&&!this.hasHScrollbar&&!this.grid.disableScrolling},n.prototype.getViewportStyle=function(){var e=this,n={};return e.hasHScrollbar=!1,e.hasVScrollbar=!1,e.grid.disableScrolling?(n["overflow-x"]="hidden",n["overflow-y"]="hidden",n):("body"===e.name?(e.hasHScrollbar=e.grid.options.enableHorizontalScrollbar!==t.scrollbars.NEVER,e.grid.isRTL()?e.grid.hasLeftContainerColumns()||(e.hasVScrollbar=e.grid.options.enableVerticalScrollbar!==t.scrollbars.NEVER):e.grid.hasRightContainerColumns()||(e.hasVScrollbar=e.grid.options.enableVerticalScrollbar!==t.scrollbars.NEVER)):"left"===e.name?e.hasVScrollbar=!!e.grid.isRTL()&&e.grid.options.enableVerticalScrollbar!==t.scrollbars.NEVER:e.hasVScrollbar=!e.grid.isRTL()&&e.grid.options.enableVerticalScrollbar!==t.scrollbars.NEVER,n["overflow-x"]=e.hasHScrollbar?"scroll":"hidden",n["overflow-y"]=e.hasVScrollbar?"scroll":"hidden",n)},n}])}(),function(){angular.module("ui.grid").factory("GridRow",["gridUtil","uiGridConstants",function(e,t){function n(t,n,r){this.grid=r,this.entity=t,this.uid=e.nextUid(),this.visible=!0,this.isSelected=!1,this.$$height=r.options.rowHeight}return Object.defineProperty(n.prototype,"height",{get:function(){return this.$$height},set:function(e){e!==this.$$height&&(this.grid.updateCanvasHeight(),this.$$height=e)}}),n.prototype.getQualifiedColField=function(e){return"row."+this.getEntityQualifiedColField(e)},n.prototype.getEntityQualifiedColField=function(n){return n.field===t.ENTITY_BINDING?"entity":e.preEval("entity."+n.field)},n.prototype.setRowInvisible=function(e){e&&e.setThisRowInvisible&&e.setThisRowInvisible("user")},n.prototype.clearRowInvisible=function(e){e&&e.clearThisRowInvisible&&e.clearThisRowInvisible("user")},n.prototype.setThisRowInvisible=function(e,t){this.invisibleReason||(this.invisibleReason={}),this.invisibleReason[e]=!0,this.evaluateRowVisibility(t)},n.prototype.clearThisRowInvisible=function(e,t){void 0!==this.invisibleReason&&delete this.invisibleReason[e],this.evaluateRowVisibility(t)},n.prototype.evaluateRowVisibility=function(e){var t=!0;void 0!==this.invisibleReason&&angular.forEach(this.invisibleReason,function(e,n){e&&(t=!1)}),void 0!==this.visible&&this.visible===t||(this.visible=t,e||(this.grid.queueGridRefresh(),this.grid.api.core.raise.rowsVisibleChanged(this)))},n}])}(),function(){"use strict";angular.module("ui.grid").factory("GridRowColumn",["$parse","$filter",function(e,t){var n=function e(t,n){if(!(this instanceof e))throw"Using GridRowColumn as a function insead of as a constructor. Must be called with `new` keyword";this.row=t,this.col=n};return n.prototype.getIntersectionValueRaw=function(){return e(this.row.getEntityQualifiedColField(this.col))(this.row)},n}])}(),function(){angular.module("ui.grid").factory("ScrollEvent",["gridUtil",function(e){function t(t,n,r,i){var o=this;if(!t)throw new Error("grid argument is required");o.grid=t,o.source=i,o.withDelay=!0,o.sourceRowContainer=n,o.sourceColContainer=r,o.newScrollLeft=null,o.newScrollTop=null,o.x=null,o.y=null,o.verticalScrollLength=-9999999,o.horizontalScrollLength=-999999,o.fireThrottledScrollingEvent=e.throttle(function(e){o.grid.scrollContainers(e,o)},o.grid.options.wheelScrollThrottle,{trailing:!0})}return t.prototype.getNewScrollLeft=function(t,n){var r=this;if(!r.newScrollLeft){var i,o=t.getCanvasWidth()-t.getViewportWidth(),a=e.normalizeScrollLeft(n,r.grid);if(void 0!==r.x.percentage&&void 0!==r.x.percentage)i=r.x.percentage;else{if(void 0===r.x.pixels||void 0===r.x.pixels)throw new Error("No percentage or pixel value provided for scroll event X axis");i=r.x.percentage=(a+r.x.pixels)/o}return Math.max(0,i*o)}return r.newScrollLeft},t.prototype.getNewScrollTop=function(e,t){var n=this;if(!n.newScrollTop){var r,i=e.getVerticalScrollLength(),o=t[0].scrollTop;if(void 0!==n.y.percentage&&void 0!==n.y.percentage)r=n.y.percentage;else{if(void 0===n.y.pixels||void 0===n.y.pixels)throw new Error("No percentage or pixel value provided for scroll event Y axis");r=n.y.percentage=(o+n.y.pixels)/i}return Math.max(0,r*i)}return n.newScrollTop},t.prototype.atTop=function(e){return this.y&&(0===this.y.percentage||this.verticalScrollLength<0)&&0===e},t.prototype.atBottom=function(e){return this.y&&(1===this.y.percentage||0===this.verticalScrollLength)&&e>0},t.prototype.atLeft=function(e){return this.x&&(0===this.x.percentage||this.horizontalScrollLength<0)&&0===e},t.prototype.atRight=function(e){return this.x&&(1===this.x.percentage||0===this.horizontalScrollLength)&&e>0},t.Sources={ViewPortScroll:"ViewPortScroll",RenderContainerMouseWheel:"RenderContainerMouseWheel",RenderContainerTouchMove:"RenderContainerTouchMove",Other:99},t}])}(),function(){"use strict";angular.module("ui.grid").service("gridClassFactory",["gridUtil","$q","$compile","$templateCache","uiGridConstants","Grid","GridColumn","GridRow",function(e,t,n,r,i,o,a,s){var l={createGrid:function(r){r=void 0!==r?r:{},r.id=e.newId();var i=new o(r);if(i.options.rowTemplate){var a=t.defer();i.getRowTemplateFn=a.promise,e.getTemplate(i.options.rowTemplate).then(function(e){var t=n(e);a.resolve(t)},function(e){throw new Error("Couldn't fetch/use row template '"+i.options.rowTemplate+"'")}).catch(angular.noop)}return i.registerColumnBuilder(l.defaultColumnBuilder),i.registerRowBuilder(l.rowTemplateAssigner),i.registerRowsProcessor(function(e){return e.forEach(function(e){e.evaluateRowVisibility(!0)},50),e}),i.registerColumnsProcessor(function(e){return e.forEach(function(e){e.visible=!angular.isDefined(e.colDef.visible)||e.colDef.visible}),e},50),i.registerRowsProcessor(i.searchRows,100),i.options.externalSort&&angular.isFunction(i.options.externalSort)?i.registerRowsProcessor(i.options.externalSort,200):i.registerRowsProcessor(i.sortByColumn,200),i},defaultColumnBuilder:function(n,r,o){var a=[],s=function(t,o,s,l,u){n[t]?r[o]=n[t]:r[o]=s;var c=e.getTemplate(r[o]).then(function(e){angular.isFunction(e)&&(e=e());var n="cellTooltip"===u?"col.cellTooltip(row,col)":"col.headerTooltip(col)";u&&!1===r[u]?e=e.replace(i.TOOLTIP,""):u&&r[u]&&(e=e.replace(i.TOOLTIP,'title="{{'+n+' CUSTOM_FILTERS }}"')),r[t]=l?e.replace(i.CUSTOM_FILTERS,function(){return r[l]?"|"+r[l]:""}):e},function(e){throw new Error("Couldn't fetch/use colDef."+t+" '"+n[t]+"'")}).catch(angular.noop);return a.push(c),c};return r.cellTemplatePromise=s("cellTemplate","providedCellTemplate","ui-grid/uiGridCell","cellFilter","cellTooltip"),r.headerCellTemplatePromise=s("headerCellTemplate","providedHeaderCellTemplate","ui-grid/uiGridHeaderCell","headerCellFilter","headerTooltip"),r.footerCellTemplatePromise=s("footerCellTemplate","providedFooterCellTemplate","ui-grid/uiGridFooterCell","footerCellFilter"),r.filterHeaderTemplatePromise=s("filterHeaderTemplate","providedFilterHeaderTemplate","ui-grid/ui-grid-filter"),r.compiledElementFnDefer=t.defer(),t.all(a)},rowTemplateAssigner:function(r){var i=this;if(r.rowTemplate){var o=t.defer();r.getRowTemplateFn=o.promise,e.getTemplate(r.rowTemplate).then(function(e){var t=n(e);o.resolve(t)},function(e){throw new Error("Couldn't fetch/use row template '"+r.rowTemplate+"'")})}else r.rowTemplate=i.options.rowTemplate,r.getRowTemplateFn=i.getRowTemplateFn;return r.getRowTemplateFn}};return l}])}(),function(){function e(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}angular.module("ui.grid").service("rowSearcher",["gridUtil","uiGridConstants",function(t,n){var r=n.filter.CONTAINS,i={};return i.getTerm=function(e){if(void 0===e.term)return e.term;var t=e.term;return"string"==typeof t&&(t=t.trim()),t},i.stripTerm=function(t){var n=i.getTerm(t);return"string"==typeof n?e(n.replace(/(^\*|\*$)/g,"")):n},i.guessCondition=function(e){if(void 0===e.term||!e.term)return r;var t=i.getTerm(e);if(/\*/.test(t)){var n="";e.flags&&e.flags.caseSensitive||(n+="i");var o=t.replace(/(\\)?\*/g,function(e,t){return t?e:"[\\s\\S]*?"});return new RegExp("^"+o+"$",n)}return r},i.setupFilters=function(e){for(var r=[],o=e.length,a=0;as:i.condition===n.filter.GREATER_THAN_OR_EQUAL?o>=s:i.condition===n.filter.LESS_THAN?o0){for(var u=function(e,t,n,r){t.visible&&!i.searchColumn(e,t,n,r)&&(t.visible=!1)},c=o.length,d=0;d=1?"floor":"ceil"](r/$),i=Math[i>=1?"floor":"ceil"](i/$),o=Math[o>=1?"floor":"ceil"](o/$);var u={originalEvent:t,deltaX:i,deltaY:o,deltaFactor:$,preventDefault:function(){t.preventDefault()},stopPropagation:function(){t.stopPropagation()}};S&&clearTimeout(S),S=setTimeout(w,200),e.call(n[0],u)}}function w(){$=null}function x(e,t){return"mousewheel"===e.type&&t%120==0}var C={augmentWidthOrHeight:t,getStyles:e,createBoundedWrapper:function(e,t){return function(){return t.apply(e,arguments)}},readableColumnName:function(e){return void 0===e||void 0===e||null===e?e:("string"!=typeof e&&(e=String(e)),e.replace(/_+/g," ").replace(/^[A-Z]+$/,function(e){return angular.lowercase(angular.uppercase(e.charAt(0))+e.slice(1))}).replace(/([\w\u00C0-\u017F]+)/g,function(e){return angular.uppercase(e.charAt(0))+e.slice(1)}).replace(/(\w+?(?=[A-Z]))/g,"$1 "))},getColumnsFromData:function(e,t){var n=[];if(!e||void 0===e[0]||void 0===e[0])return[];angular.isUndefined(t)&&(t=[]);var r=e[0];return angular.forEach(r,function(e,r){-1===t.indexOf(r)&&n.push({name:r})}),n},newId:function(){var e=(new Date).getTime();return function(){return e+=1}}(),getTemplate:function(e){if(p.get(e))return C.postProcessTemplate(p.get(e));if(angular.isFunction(e.then))return e.then(C.postProcessTemplate).catch(angular.noop);try{if(angular.element(e).length>0)return m.when(e).then(C.postProcessTemplate).catch(angular.noop)}catch(e){}return C.logDebug("fetching url",e),d({method:"GET",url:e}).then(function(t){var n=t.data.trim();return p.put(e,n),n},function(t){throw new Error("Could not get template "+e+": "+t)}).then(C.postProcessTemplate).catch(angular.noop)},postProcessTemplate:function(e){var t=v.startSymbol(),n=v.endSymbol();return"{{"===t&&"}}"===n||(e=e.replace(/\{\{/g,t),e=e.replace(/\}\}/g,n)),m.when(e)},guessType:function(e){var t=typeof e;switch(t){case"number":case"boolean":case"string":return t;default:return angular.isDate(e)?"date":"object"}},elementWidth:function(e){},elementHeight:function(e){},getScrollbarWidth:function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),t-r},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},fakeElement:function(e,t,n,r){var i,o,a=angular.element(e).clone()[0];for(o in t)a.style[o]=t[o];return angular.element(document.body).append(a),i=n.call(a,a),angular.element(a).remove(),i},normalizeWheelEvent:function(e){var t,n,r,i=e||window.event,o=([].slice.call(arguments,1),0),a=0,s=0,l=0,u=0;return i.originalEvent&&(i=i.originalEvent),i.wheelDelta&&(o=i.wheelDelta),i.detail&&(o=-1*i.detail),s=o,void 0!==i.axis&&i.axis===i.HORIZONTAL_AXIS&&(s=0,a=-1*o),i.deltaY&&(s=-1*i.deltaY,o=s),i.deltaX&&(a=i.deltaX,o=-1*a),void 0!==i.wheelDeltaY&&(s=i.wheelDeltaY),void 0!==i.wheelDeltaX&&(a=i.wheelDeltaX),l=Math.abs(o),(!t||l0?"floor":"ceil",o=Math[r](o/t),a=Math[r](a/n),s=Math[r](s/n),{delta:o,deltaX:a,deltaY:s}},isTouchEnabled:function(){var e;return("ontouchstart"in a||a.DocumentTouch&&c instanceof DocumentTouch)&&(e=!0),e},isNullOrUndefined:function(e){return void 0===e||null===e},endsWith:function(e,t){return!(!e||!t||"string"!=typeof e)&&-1!==e.indexOf(t,e.length-t.length)},arrayContainsObjectWithProperty:function(e,t,n){var r=!1;return angular.forEach(e,function(e){e[t]===n&&(r=!0)}),r},numericAndNullSort:function(e,t){return null===e?1:null===t?-1:null===e&&null===t?0:e-t},disableAnimations:function(e){var t;try{t=g.get("$animate"),angular.version.major>1||1===angular.version.major&&angular.version.minor>=4?t.enabled(e,!1):t.enabled(!1,e)}catch(e){}},enableAnimations:function(e){var t;try{return t=g.get("$animate"),angular.version.major>1||1===angular.version.major&&angular.version.minor>=4?t.enabled(e,!0):t.enabled(!0,e),t}catch(e){}},nextUid:function(){for(var e,t=u.length;t;){if(t--,57===(e=u[t].charCodeAt(0)))return u[t]="A","uiGrid-"+u.join("");if(90!==e)return u[t]=String.fromCharCode(e+1),"uiGrid-"+u.join("");u[t]="0"}return u.unshift("0"),"uiGrid-"+u.join("")},hashKey:function(e){var t,n=typeof e;return"object"===n&&null!==e?"function"==typeof(t=e.$$hashKey)?t=e.$$hashKey():void 0!==e.$$hashKey&&e.$$hashKey?t=e.$$hashKey:void 0===t&&(t=e.$$hashKey=C.nextUid()):t=e,n+":"+t},resetUids:function(){u=["0","0","0"]},logError:function(e){y.LOG_ERROR_MESSAGES&&o.error(e)},logWarn:function(e){y.LOG_WARN_MESSAGES&&o.warn(e)},logDebug:function(){y.LOG_DEBUG_MESSAGES&&o.debug.apply(o,arguments)}};C.focus={queue:[],byId:function(e,t){this._purgeQueue();var n=f(function(){var n=(t&&t.id?t.id+"-":"")+e,r=a.document.getElementById(n);r?r.focus():C.logWarn("[focus.byId] Element id "+n+" was not found.")},0,!1);return this.queue.push(n),n},byElement:function(e){if(!angular.isElement(e))return C.logWarn("Trying to focus on an element that isn't an element."),m.reject("not-element");e=angular.element(e),this._purgeQueue();var t=f(function(){e&&e[0].focus()},0,!1);return this.queue.push(t),t},bySelector:function(e,t,n){var r=this;if(!angular.isElement(e))throw new Error("The parent element is not an element.");e=angular.element(e);var i=function(){var n=e[0].querySelector(t);return r.byElement(n)};if(this._purgeQueue(),n){var o=f(i,0,!1);return this.queue.push(o),o}return i()},_purgeQueue:function(){this.queue.forEach(function(e){f.cancel(e)}),this.queue=[]}},["width","height"].forEach(function(t){var r=angular.uppercase(t.charAt(0))+t.substr(1);C["element"+r]=function(r,i){var o=r;if(o&&void 0!==o.length&&o.length&&(o=r[0]),o&&null!==o){var a=e(o);return 0===o.offsetWidth&&s.test(a.display)?C.swap(o,l,function(){return n(o,t,i)}):n(o,t,i)}return null},C["outerElement"+r]=function(e,t){return e?C["element"+r].call(this,e,t?"margin":"border"):null}}),C.closestElm=function(e,t){void 0!==e.length&&e.length&&(e=e[0]);var n;["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].some(function(e){return"function"==typeof document.body[e]&&(n=e,!0)});for(var r;null!==e;){if(null!==(r=e.parentElement)&&r[n](t))return r;e=r}return null},C.type=function(e){return Function.prototype.toString.call(e.constructor).match(/function (.*?)\(/)[1]},C.getBorderSize=function(t,n){void 0!==t.length&&t.length&&(t=t[0]);var r=e(t);n=n?"border"+n.charAt(0).toUpperCase()+n.slice(1):"border",n+="Width";var i=parseInt(r[n],10);return isNaN(i)?0:i},C.detectBrowser=function(){var e=a.navigator.userAgent,t={chrome:/chrome/i,safari:/safari/i,firefox:/firefox/i,ie:/internet explorer|trident\//i};for(var n in t)if(t[n].test(e))return n;return"unknown"},C.rtlScrollType=function e(){if(e.type)return e.type;var t=angular.element('
A
')[0],n="reverse";return document.body.appendChild(t),t.scrollLeft>0?n="default":(t.scrollLeft=1,0===t.scrollLeft&&(n="negative")),angular.element(t).remove(),e.type=n,n},C.normalizeScrollLeft=function(e,t){void 0!==e.length&&e.length&&(e=e[0]);var n=e.scrollLeft;if(t.isRTL())switch(C.rtlScrollType()){case"default":return e.scrollWidth-n-e.clientWidth;case"negative":return Math.abs(n);case"reverse":return n}return n},C.denormalizeScrollLeft=function(e,t,n){if(void 0!==e.length&&e.length&&(e=e[0]),n.isRTL())switch(C.rtlScrollType()){case"default":return e.scrollWidth-e.clientWidth-t;case"negative":return-1*t;case"reverse":return t}return t},C.preEval=function(e){var t=y.BRACKET_REGEXP.exec(e);if(t)return(t[1]?C.preEval(t[1]):t[1])+t[2]+(t[3]?C.preEval(t[3]):t[3]);e=e.replace(y.APOS_REGEXP,"\\'");var n=e.split(y.DOT_REGEXP),r=[n.shift()];return angular.forEach(n,function(e){r.push(e.replace(y.FUNC_REGEXP,"']$1"))}),r.join("['")},C.debounce=function(e,t,n){function r(){a=this,o=arguments;var r=function(){i=null,n||(s=e.apply(a,o))},l=n&&!i;return i&&f.cancel(i),i=f(r,t,!1),l&&(s=e.apply(a,o)),s}var i,o,a,s;return r.cancel=function(){f.cancel(i),i=null},r},C.throttle=function(e,t,n){function r(t){a=+new Date,e.apply(i,o),h(function(){s=null},0,1,!1)}n=n||{};var i,o,a=0,s=null;return function(){if(i=this,o=arguments,null===s){var e=+new Date-a;e>t?r():n.trailing&&(s=h(r,t-e,1,!1))}}},C.on={},C.off={},C._events={},C.addOff=function(e){C.off[e]=function(t,n){var r=C._events[e].indexOf(n);r>0&&C._events[e].removeAt(r)}};var S,$,E="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"];return C.on.mousewheel=function(e,t){if(e&&t){var n=angular.element(e);n.data("mousewheel-line-height",r(n)),n.data("mousewheel-page-height",C.elementHeight(n)),n.data("mousewheel-callbacks")||n.data("mousewheel-callbacks",{});var o=n.data("mousewheel-callbacks");o[t]=(Function.prototype.bind||i).call(b,n[0],t);for(var a=E.length;a;)n.on(E[--a],o[t]);n.on("$destroy",function(){for(var e=E.length;e;)n.off(E[--e],o[t])})}},C.off.mousewheel=function(e,t){var n=angular.element(e),r=n.data("mousewheel-callbacks"),i=r[t];if(i)for(var o=E.length;o;)n.off(E[--o],i);delete r[t],0===Object.keys(r).length&&(n.removeData("mousewheel-line-height"),n.removeData("mousewheel-page-height"),n.removeData("mousewheel-callbacks"))},C}]),o.filter("px",function(){return function(e){return e.match(/^[\d\.]+$/)?e+"px":e}})}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("ar",{headerCell:{aria:{defaultFilterLabel:"التصفيه بالعمود",removeFilter:"محو التصفيه",columnMenuButtonLabel:"قاءمه الاعمده"},priority:"أولويه : ",filterLabel:"تصفيه بالاعمده :"},aggregate:{label:"العناصر"},groupPanel:{description:"اسحب رأس العمود هنا وأسقطه لإنشاء مجموعه"},search:{placeholder:"بحث ...",showingItems:"العناصر الظاهره :",selectedItems:"العناصر المحدده :",totalItems:"عدد العناصر :",size:"حجم الصفحه :",first:"اول صفحه",next:"الصفحه التاليه",previous:"الصفحه الصابقه",last:"الصفحه الاخيره"},menu:{text:"اختيار العمود :"},sort:{ascending:"ترتيب تصاعدى",descending:"ترتيب تنازلى",none:"عدم التحديد",remove:"حذف الترتيب"},column:{hide:"إخفاء عمود"},aggregation:{count:"عدد الصفوف: ",sum:"جمع: ",avg:"المتوسط الحسابى: ",min:"الادنى: ",max:"الاقصى: "},pinning:{pinLeft:"تثبيت لليسار",pinRight:"تثبيت لليمين",unpin:"فك التثبيت"},columnMenu:{close:"غلق"},gridMenu:{aria:{buttonLabel:"قائمه الجدول"},columns:"الاعمده:",importerTitle:"إدخال ملف",exporterAllAsCsv:"إخراج كل البيانات ك(csv)",exporterVisibleAsCsv:"إخراج كل البيانات الواضحه ك (csv)",exporterSelectedAsCsv:"إخراج كل البيانات المحدده ك (csv)",exporterAllAsPdf:"إخراج كل البيانات ك(pdf)",exporterVisibleAsPdf:"إخراج كل البيانات الواضحه ك (pdf)",exporterSelectedAsPdf:"إخراج كل البيانات المحدده ك (pdf)",clearAllFilters:"محو كل الترشيح"},importer:{noHeaders:"اسماء هؤلاء الاعمده غير واضحه، هل يوجد رأس للملف؟",noObjects:"Objects were not able to be derived, was there data in the file other than headers?",invalidCsv:"الملف غير قادر على الاتمام ، هل ال (CSV) صحيح؟",invalidJson:"الملف غير قادر على الاتمام ، هل ال (JSON) صحيح؟",jsonNotArray:"Imported json file must contain an array, aborting."},pagination:{aria:{pageToFirst:"الصفحه الاولى",pageBack:"الصفه السابقه",pageSelected:"الصفحه المحدده",pageForward:"الصفحه التاليه",pageToLast:"الصفحه الاخيره"},sizes:"عدد العناصر فى الصفحه",totalItems:"عناصر",through:"إلى",of:"من"},grouping:{group:"جمع",ungroup:"فك الجمع",aggregate_count:"جمله : العدد",aggregate_sum:"جمله : الحاصل",aggregate_max:"جمله : الاقصى",aggregate_min:"جمله : الاقل",aggregate_avg:"جمله :المتوسط ",aggregate_remove:"جمله : حذف"},validate:{error:"خطأ :",minLength:"القيمه لابد ان لا تقل عن THRESHOLD حرف.",maxLength:"القيمه لابد ان لا تزيد عن THRESHOLD حرف.",required:"مطلوب قيمه"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("bg",{headerCell:{aria:{defaultFilterLabel:"Филттър за колоната",removeFilter:"Премахни филтър",columnMenuButtonLabel:"Меню на колоната"},priority:"Приоритет:",filterLabel:"Филтър за колоната: "},aggregate:{label:"обекти"},search:{placeholder:"Търсене...",showingItems:"Показани обекти:",selectedItems:"избрани обекти:",totalItems:"Общо:",size:"Размер на страницата:",first:"Първа страница",next:"Следваща страница",previous:"Предишна страница",last:"Последна страница"},menu:{text:"Избери колони:"},sort:{ascending:"Сортиране по възходящ ред",descending:"Сортиране по низходящ ред",none:"Без сортиране",remove:"Премахни сортирането"},column:{hide:"Скрий колоната"},aggregation:{count:"Общо редове: ",sum:"общо: ",avg:"средно: ",min:"най-малко: ",max:"най-много: "},pinning:{pinLeft:"Прикрепи вляво",pinRight:"Прикрепи вдясно",unpin:"Премахване"},columnMenu:{close:"Затвори"},gridMenu:{aria:{buttonLabel:"Меню на таблицата"},columns:"Колони:",importerTitle:"Импортиране на файл",exporterAllAsCsv:"Експортиране на данните като csv",exporterVisibleAsCsv:"Експортиране на видимите данни като csv",exporterSelectedAsCsv:"Експортиране на избраните данни като csv",exporterAllAsPdf:"Експортиране на данните като pdf",exporterVisibleAsPdf:"Експортиране на видимите данни като pdf",exporterSelectedAsPdf:"Експортиране на избраните данни като pdf",clearAllFilters:"Премахни всички филтри"},importer:{noHeaders:"Имената на колоните не успяха да бъдат извлечени, файлът има ли хедър?",noObjects:"Обектите не успяха да бъдат извлечени, файлът съдържа ли данни, различни от хедър?",invalidCsv:"Файлът не може да бъде обработеб, уверете се, че е валиден CSV файл",invalidJson:"Файлът не може да бъде обработеб, уверете се, че е валиден JSON файл",jsonNotArray:"Импортираният JSON файл трябва да съдържа масив, прекратяване."},pagination:{aria:{pageToFirst:"Към първа страница",pageBack:"Страница назад",pageSelected:"Избрана страница",pageForward:"Страница напред",pageToLast:"Към последна страница"},sizes:"обекта на страница",totalItems:"обекта",through:"до",of:"от"},grouping:{group:"Групиране",ungroup:"Премахване на групирането",aggregate_count:"Сбор: Брой",aggregate_sum:"Сбор: Сума",aggregate_max:"Сбор: Максимум",aggregate_min:"Сбор: Минимум",aggregate_avg:"Сбор: Средно",aggregate_remove:"Сбор: Премахване"},validate:{error:"Грешка:",minLength:"Стойността трябва да съдържа поне THRESHOLD символа.",maxLength:"Стойността не трябва да съдържа повече от THRESHOLD символа.",required:"Необходима е стойност."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){var t={aggregate:{label:"položky"},groupPanel:{description:"Přesuňte záhlaví zde pro vytvoření skupiny dle sloupce."},search:{placeholder:"Hledat...",showingItems:"Zobrazuji položky:",selectedItems:"Vybrané položky:",totalItems:"Celkem položek:",size:"Velikost strany:",first:"První strana",next:"Další strana",previous:"Předchozí strana",last:"Poslední strana"},menu:{text:"Vyberte sloupec:"},sort:{ascending:"Seřadit od A-Z",descending:"Seřadit od Z-A",remove:"Odebrat seřazení"},column:{hide:"Schovat sloupec"},aggregation:{count:"celkem řádků: ",sum:"celkem: ",avg:"avg: ",min:"min.: ",max:"max.: "},pinning:{pinLeft:"Zamknout vlevo",pinRight:"Zamknout vpravo",unpin:"Odemknout"},gridMenu:{columns:"Sloupce:",importerTitle:"Importovat soubor",exporterAllAsCsv:"Exportovat všechna data do csv",exporterVisibleAsCsv:"Exportovat viditelná data do csv",exporterSelectedAsCsv:"Exportovat vybraná data do csv",exporterAllAsPdf:"Exportovat všechna data do pdf",exporterVisibleAsPdf:"Exportovat viditelná data do pdf",exporterSelectedAsPdf:"Exportovat vybraná data do pdf",exporterAllAsExcel:"Exportovat všechna data do excel",exporterVisibleAsExcel:"Exportovat viditelná data do excel",exporterSelectedAsExcel:"Exportovat vybraná data do excel",clearAllFilters:"Odstranit všechny filtry"},importer:{noHeaders:"Názvy sloupců se nepodařilo získat, obsahuje soubor záhlaví?",noObjects:"Data se nepodařilo zpracovat, obsahuje soubor řádky mimo záhlaví?",invalidCsv:"Soubor nelze zpracovat, jedná se o CSV?",invalidJson:"Soubor nelze zpracovat, je to JSON?",jsonNotArray:"Soubor musí obsahovat json. Ukončuji.."},pagination:{sizes:"položek na stránku",totalItems:"položek"},grouping:{group:"Seskupit",ungroup:"Odebrat seskupení",aggregate_count:"Agregace: Count",aggregate_sum:"Agregace: Sum",aggregate_max:"Agregace: Max",aggregate_min:"Agregace: Min",aggregate_avg:"Agregace: Avg",aggregate_remove:"Agregace: Odebrat"}};return e.add("cs",t),e.add("cz",t),e.add("cs-cz",t),e.add("cs-CZ",t),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("da",{aggregate:{label:"artikler"},groupPanel:{description:"Grupér rækker udfra en kolonne ved at trække dens overskift hertil."},search:{placeholder:"Søg...",showingItems:"Viste rækker:",selectedItems:"Valgte rækker:",totalItems:"Rækker totalt:",size:"Side størrelse:",first:"Første side",next:"Næste side",previous:"Forrige side",last:"Sidste side"},menu:{text:"Vælg kolonner:"},sort:{ascending:"Sorter stigende",descending:"Sorter faldende",none:"Sorter ingen",remove:"Fjern sortering"},column:{hide:"Skjul kolonne"},aggregation:{count:"antal rækker: ",sum:"sum: ",avg:"gns: ",min:"min: ",max:"max: "},gridMenu:{columns:"Kolonner:",importerTitle:"Importer fil",exporterAllAsCsv:"Eksporter alle data som csv",exporterVisibleAsCsv:"Eksporter synlige data som csv",exporterSelectedAsCsv:"Eksporter markerede data som csv",exporterAllAsPdf:"Eksporter alle data som pdf",exporterVisibleAsPdf:"Eksporter synlige data som pdf",exporterSelectedAsPdf:"Eksporter markerede data som pdf",exporterAllAsExcel:"Eksporter alle data som excel",exporterVisibleAsExcel:"Eksporter synlige data som excel",exporterSelectedAsExcel:"Eksporter markerede data som excel",clearAllFilters:"Clear all filters"},importer:{noHeaders:"Column names were unable to be derived, does the file have a header?",noObjects:"Objects were not able to be derived, was there data in the file other than headers?",invalidCsv:"File was unable to be processed, is it valid CSV?",invalidJson:"File was unable to be processed, is it valid Json?",jsonNotArray:"Imported json file must contain an array, aborting."},pagination:{aria:{pageToFirst:"Gå til første",pageBack:"Gå tilbage",pageSelected:"Valgte side",pageForward:"Gå frem",pageToLast:"Gå til sidste"},sizes:"genstande per side",totalItems:"genstande",through:"gennem",of:"af"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("de",{headerCell:{aria:{defaultFilterLabel:"Filter für Spalte",removeFilter:"Filter löschen",columnMenuButtonLabel:"Spaltenmenü",column:"Spalte"},priority:"Priorität:",filterLabel:"Filter für Spalte: "},aggregate:{label:"Eintrag"},groupPanel:{description:"Ziehen Sie eine Spaltenüberschrift hierhin, um nach dieser Spalte zu gruppieren."},search:{aria:{selected:"Zeile markiert",notSelected:"Zeile nicht markiert"},placeholder:"Suche...",showingItems:"Zeige Einträge:",selectedItems:"Ausgewählte Einträge:",totalItems:"Einträge gesamt:",size:"Einträge pro Seite:",first:"Erste Seite",next:"Nächste Seite",previous:"Vorherige Seite",last:"Letzte Seite"},menu:{text:"Spalten auswählen:"},sort:{ascending:"aufsteigend sortieren",descending:"absteigend sortieren",none:"keine Sortierung",remove:"Sortierung zurücksetzen"},column:{hide:"Spalte ausblenden"},aggregation:{count:"Zeilen insgesamt: ",sum:"gesamt: ",avg:"Durchschnitt: ",min:"min: ",max:"max: "},pinning:{pinLeft:"Links anheften",pinRight:"Rechts anheften",unpin:"Lösen"},columnMenu:{close:"Schließen"},gridMenu:{aria:{buttonLabel:"Tabellenmenü"},columns:"Spalten:",importerTitle:"Datei importieren",exporterAllAsCsv:"Alle Daten als CSV exportieren",exporterVisibleAsCsv:"sichtbare Daten als CSV exportieren",exporterSelectedAsCsv:"markierte Daten als CSV exportieren",exporterAllAsPdf:"Alle Daten als PDF exportieren",exporterVisibleAsPdf:"sichtbare Daten als PDF exportieren",exporterSelectedAsPdf:"markierte Daten als PDF exportieren",exporterAllAsExcel:"Alle Daten als Excel exportieren",exporterVisibleAsExcel:"sichtbare Daten als Excel exportiere",exporterSelectedAsExcel:"markierte Daten als Excel exportieren",clearAllFilters:"Alle Filter zurücksetzen"},importer:{noHeaders:"Es konnten keine Spaltennamen ermittelt werden. Sind in der Datei Spaltendefinitionen enthalten?",noObjects:"Es konnten keine Zeileninformationen gelesen werden, Sind in der Datei außer den Spaltendefinitionen auch Daten enthalten?",invalidCsv:"Die Datei konnte nicht eingelesen werden, ist es eine gültige CSV-Datei?",invalidJson:"Die Datei konnte nicht eingelesen werden. Enthält sie gültiges JSON?",jsonNotArray:"Die importierte JSON-Datei muß ein Array enthalten. Breche Import ab."},pagination:{aria:{pageToFirst:"Zum Anfang",pageBack:"Seite zurück",pageSelected:"Ausgwählte Seite",pageForward:"Seite vor",pageToLast:"Zum Ende"},sizes:"Einträge pro Seite",totalItems:"Einträgen",through:"bis",of:"von"},grouping:{group:"Gruppieren",ungroup:"Gruppierung aufheben",aggregate_count:"Agg: Anzahl",aggregate_sum:"Agg: Summe",aggregate_max:"Agg: Maximum",aggregate_min:"Agg: Minimum",aggregate_avg:"Agg: Mittelwert",aggregate_remove:"Aggregation entfernen"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("en",{headerCell:{aria:{defaultFilterLabel:"Filter for column",removeFilter:"Remove Filter",columnMenuButtonLabel:"Column Menu",column:"Column"},priority:"Priority:",filterLabel:"Filter for column: "},aggregate:{label:"items"},groupPanel:{description:"Drag a column header here and drop it to group by that column."},search:{aria:{selected:"Row selected",notSelected:"Row not selected"},placeholder:"Search...",showingItems:"Showing Items:",selectedItems:"Selected Items:",totalItems:"Total Items:",size:"Page Size:",first:"First Page",next:"Next Page",previous:"Previous Page",last:"Last Page"},menu:{text:"Choose Columns:"},sort:{ascending:"Sort Ascending",descending:"Sort Descending",none:"Sort None",remove:"Remove Sort"},column:{hide:"Hide Column"},aggregation:{count:"total rows: ",sum:"total: ",avg:"avg: ",min:"min: ",max:"max: "},pinning:{pinLeft:"Pin Left",pinRight:"Pin Right",unpin:"Unpin"},columnMenu:{close:"Close"},gridMenu:{aria:{buttonLabel:"Grid Menu"},columns:"Columns:",importerTitle:"Import file",exporterAllAsCsv:"Export all data as csv",exporterVisibleAsCsv:"Export visible data as csv",exporterSelectedAsCsv:"Export selected data as csv",exporterAllAsPdf:"Export all data as pdf",exporterVisibleAsPdf:"Export visible data as pdf",exporterSelectedAsPdf:"Export selected data as pdf",exporterAllAsExcel:"Export all data as excel",exporterVisibleAsExcel:"Export visible data as excel",exporterSelectedAsExcel:"Export selected data as excel",clearAllFilters:"Clear all filters"},importer:{noHeaders:"Column names were unable to be derived, does the file have a header?",noObjects:"Objects were not able to be derived, was there data in the file other than headers?",invalidCsv:"File was unable to be processed, is it valid CSV?",invalidJson:"File was unable to be processed, is it valid Json?",jsonNotArray:"Imported json file must contain an array, aborting."},pagination:{aria:{pageToFirst:"Page to first",pageBack:"Page back",pageSelected:"Selected page",pageForward:"Page forward",pageToLast:"Page to last"},sizes:"items per page",totalItems:"items",through:"through",of:"of"},grouping:{group:"Group",ungroup:"Ungroup",aggregate_count:"Agg: Count",aggregate_sum:"Agg: Sum",aggregate_max:"Agg: Max",aggregate_min:"Agg: Min",aggregate_avg:"Agg: Avg",aggregate_remove:"Agg: Remove"},validate:{error:"Error:",minLength:"Value should be at least THRESHOLD characters long.",maxLength:"Value should be at most THRESHOLD characters long.",required:"A value is needed."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("es",{aggregate:{label:"Artículos"},groupPanel:{description:"Arrastre un encabezado de columna aquí y suéltelo para agrupar por esa columna."},search:{placeholder:"Buscar...",showingItems:"Artículos Mostrados:",selectedItems:"Artículos Seleccionados:",totalItems:"Artículos Totales:",size:"Tamaño de Página:",first:"Primera Página",next:"Página Siguiente",previous:"Página Anterior",last:"Última Página"},menu:{text:"Elegir columnas:"},sort:{ascending:"Orden Ascendente",descending:"Orden Descendente",remove:"Sin Ordenar"},column:{hide:"Ocultar la columna"},aggregation:{count:"filas totales: ",sum:"total: ",avg:"media: ",min:"min: ",max:"max: "},pinning:{pinLeft:"Fijar a la Izquierda",pinRight:"Fijar a la Derecha",unpin:"Quitar Fijación"},gridMenu:{columns:"Columnas:",importerTitle:"Importar archivo",exporterAllAsCsv:"Exportar todo como csv",exporterVisibleAsCsv:"Exportar vista como csv",exporterSelectedAsCsv:"Exportar selección como csv",exporterAllAsPdf:"Exportar todo como pdf",exporterVisibleAsPdf:"Exportar vista como pdf",exporterSelectedAsPdf:"Exportar selección como pdf",exporterAllAsExcel:"Exportar todo como excel",exporterVisibleAsExcel:"Exportar vista como excel",exporterSelectedAsExcel:"Exportar selección como excel",clearAllFilters:"Limpiar todos los filtros"},importer:{noHeaders:"No fue posible derivar los nombres de las columnas, ¿tiene encabezados el archivo?",noObjects:"No fue posible obtener registros, ¿contiene datos el archivo, aparte de los encabezados?",invalidCsv:"No fue posible procesar el archivo, ¿es un CSV válido?",invalidJson:"No fue posible procesar el archivo, ¿es un Json válido?",jsonNotArray:"El archivo json importado debe contener un array, abortando."},pagination:{sizes:"registros por página",totalItems:"registros",of:"de"},grouping:{group:"Agrupar",ungroup:"Desagrupar",aggregate_count:"Agr: Cont",aggregate_sum:"Agr: Sum",aggregate_max:"Agr: Máx",aggregate_min:"Agr: Min",aggregate_avg:"Agr: Prom",aggregate_remove:"Agr: Quitar"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("fa",{aggregate:{label:"قلم"},groupPanel:{description:"عنوان یک ستون را بگیر و به گروهی از آن ستون رها کن."},search:{placeholder:"جستجو...",showingItems:"نمایش اقلام:",selectedItems:"قلم‌های انتخاب شده:",totalItems:"مجموع اقلام:",size:"اندازه‌ی صفحه:",first:"اولین صفحه",next:"صفحه‌ی‌بعدی",previous:"صفحه‌ی‌ قبلی",last:"آخرین صفحه"},menu:{text:"ستون‌های انتخابی:"},sort:{ascending:"ترتیب صعودی",descending:"ترتیب نزولی",remove:"حذف مرتب کردن"},column:{hide:"پنهان‌کردن ستون"},aggregation:{count:"تعداد: ",sum:"مجموع: ",avg:"میانگین: ",min:"کمترین: ",max:"بیشترین: "},pinning:{pinLeft:"پین کردن سمت چپ",pinRight:"پین کردن سمت راست",unpin:"حذف پین"},gridMenu:{columns:"ستون‌ها:",importerTitle:"وارد کردن فایل",exporterAllAsCsv:"خروجی تمام داده‌ها در فایل csv",exporterVisibleAsCsv:"خروجی داده‌های قابل مشاهده در فایل csv",exporterSelectedAsCsv:"خروجی داده‌های انتخاب‌شده در فایل csv",exporterAllAsPdf:"خروجی تمام داده‌ها در فایل pdf",exporterVisibleAsPdf:"خروجی داده‌های قابل مشاهده در فایل pdf",exporterSelectedAsPdf:"خروجی داده‌های انتخاب‌شده در فایل pdf",clearAllFilters:"پاک کردن تمام فیلتر"},importer:{noHeaders:"نام ستون قابل استخراج نیست. آیا فایل عنوان دارد؟",noObjects:"اشیا قابل استخراج نیستند. آیا به جز عنوان‌ها در فایل داده وجود دارد؟",invalidCsv:"فایل قابل پردازش نیست. آیا فرمت csv معتبر است؟",invalidJson:"فایل قابل پردازش نیست. آیا فرمت json معتبر است؟",jsonNotArray:"فایل json وارد شده باید حاوی آرایه باشد. عملیات ساقط شد."},pagination:{sizes:"اقلام در هر صفحه",totalItems:"اقلام",of:"از"},grouping:{group:"گروه‌بندی",ungroup:"حذف گروه‌بندی",aggregate_count:"Agg: تعداد",aggregate_sum:"Agg: جمع",aggregate_max:"Agg: بیشینه",aggregate_min:"Agg: کمینه", aggregate_avg:"Agg: میانگین",aggregate_remove:"Agg: حذف"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("fi",{aggregate:{label:"rivit"},groupPanel:{description:"Raahaa ja pudota otsikko tähän ryhmittääksesi sarakkeen mukaan."},search:{placeholder:"Hae...",showingItems:"Näytetään rivejä:",selectedItems:"Valitut rivit:",totalItems:"Rivejä yht.:",size:"Näytä:",first:"Ensimmäinen sivu",next:"Seuraava sivu",previous:"Edellinen sivu",last:"Viimeinen sivu"},menu:{text:"Valitse sarakkeet:"},sort:{ascending:"Järjestä nouseva",descending:"Järjestä laskeva",remove:"Poista järjestys"},column:{hide:"Piilota sarake"},aggregation:{count:"Rivejä yht.: ",sum:"Summa: ",avg:"K.a.: ",min:"Min: ",max:"Max: "},pinning:{pinLeft:"Lukitse vasemmalle",pinRight:"Lukitse oikealle",unpin:"Poista lukitus"},gridMenu:{columns:"Sarakkeet:",importerTitle:"Tuo tiedosto",exporterAllAsCsv:"Vie tiedot csv-muodossa",exporterVisibleAsCsv:"Vie näkyvä tieto csv-muodossa",exporterSelectedAsCsv:"Vie valittu tieto csv-muodossa",exporterAllAsPdf:"Vie tiedot pdf-muodossa",exporterVisibleAsPdf:"Vie näkyvä tieto pdf-muodossa",exporterSelectedAsPdf:"Vie valittu tieto pdf-muodossa",exporterAllAsExcel:"Vie tiedot excel-muodossa",exporterVisibleAsExcel:"Vie näkyvä tieto excel-muodossa",exporterSelectedAsExcel:"Vie valittu tieto excel-muodossa",clearAllFilters:"Puhdista kaikki suodattimet"},importer:{noHeaders:"Sarakkeen nimiä ei voitu päätellä, onko tiedostossa otsikkoriviä?",noObjects:"Tietoja ei voitu lukea, onko tiedostossa muuta kuin otsikkot?",invalidCsv:"Tiedostoa ei voitu käsitellä, oliko se CSV-muodossa?",invalidJson:"Tiedostoa ei voitu käsitellä, oliko se JSON-muodossa?",jsonNotArray:"Tiedosto ei sisältänyt taulukkoa, lopetetaan."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("fr",{headerCell:{aria:{defaultFilterLabel:"Filtre de la colonne",removeFilter:"Supprimer le filtre",columnMenuButtonLabel:"Menu de la colonne"},priority:"Priorité:",filterLabel:"Filtre de la colonne: "},aggregate:{label:"éléments"},groupPanel:{description:"Faites glisser une en-tête de colonne ici pour créer un groupe de colonnes."},search:{placeholder:"Recherche...",showingItems:"Affichage des éléments :",selectedItems:"Éléments sélectionnés :",totalItems:"Nombre total d'éléments:",size:"Taille de page:",first:"Première page",next:"Page Suivante",previous:"Page précédente",last:"Dernière page"},menu:{text:"Choisir des colonnes :"},sort:{ascending:"Trier par ordre croissant",descending:"Trier par ordre décroissant",none:"Aucun tri",remove:"Enlever le tri"},column:{hide:"Cacher la colonne"},aggregation:{count:"lignes totales: ",sum:"total: ",avg:"moy: ",min:"min: ",max:"max: "},pinning:{pinLeft:"Épingler à gauche",pinRight:"Épingler à droite",unpin:"Détacher"},columnMenu:{close:"Fermer"},gridMenu:{aria:{buttonLabel:"Menu du tableau"},columns:"Colonnes:",importerTitle:"Importer un fichier",exporterAllAsCsv:"Exporter toutes les données en CSV",exporterVisibleAsCsv:"Exporter les données visibles en CSV",exporterSelectedAsCsv:"Exporter les données sélectionnées en CSV",exporterAllAsPdf:"Exporter toutes les données en PDF",exporterVisibleAsPdf:"Exporter les données visibles en PDF",exporterSelectedAsPdf:"Exporter les données sélectionnées en PDF",exporterAllAsExcel:"Exporter toutes les données en Excel",exporterVisibleAsExcel:"Exporter les données visibles en Excel",exporterSelectedAsExcel:"Exporter les données sélectionnées en Excel",clearAllFilters:"Nettoyez tous les filtres"},importer:{noHeaders:"Impossible de déterminer le nom des colonnes, le fichier possède-t-il une en-tête ?",noObjects:"Aucun objet trouvé, le fichier possède-t-il des données autres que l'en-tête ?",invalidCsv:"Le fichier n'a pas pu être traité, le CSV est-il valide ?",invalidJson:"Le fichier n'a pas pu être traité, le JSON est-il valide ?",jsonNotArray:"Le fichier JSON importé doit contenir un tableau, abandon."},pagination:{aria:{pageToFirst:"Aller à la première page",pageBack:"Page précédente",pageSelected:"Page sélectionnée",pageForward:"Page suivante",pageToLast:"Aller à la dernière page"},sizes:"éléments par page",totalItems:"éléments",through:"à",of:"sur"},grouping:{group:"Grouper",ungroup:"Dégrouper",aggregate_count:"Agg: Compter",aggregate_sum:"Agg: Somme",aggregate_max:"Agg: Max",aggregate_min:"Agg: Min",aggregate_avg:"Agg: Moy",aggregate_remove:"Agg: Retirer"},validate:{error:"Erreur:",minLength:"La valeur doit être supérieure ou égale à THRESHOLD caractères.",maxLength:"La valeur doit être inférieure ou égale à THRESHOLD caractères.",required:"Une valeur est nécéssaire."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("he",{aggregate:{label:"items"},groupPanel:{description:"גרור עמודה לכאן ושחרר בכדי לקבץ עמודה זו."},search:{placeholder:"חפש...",showingItems:"מציג:",selectedItems:'סה"כ נבחרו:',totalItems:'סה"כ רשומות:',size:"תוצאות בדף:",first:"דף ראשון",next:"דף הבא",previous:"דף קודם",last:"דף אחרון"},menu:{text:"בחר עמודות:"},sort:{ascending:"סדר עולה",descending:"סדר יורד",remove:"בטל"},column:{hide:"טור הסתר"},aggregation:{count:"total rows: ",sum:"total: ",avg:"avg: ",min:"min: ",max:"max: "},gridMenu:{columns:"Columns:",importerTitle:"Import file",exporterAllAsCsv:"Export all data as csv",exporterVisibleAsCsv:"Export visible data as csv",exporterSelectedAsCsv:"Export selected data as csv",exporterAllAsPdf:"Export all data as pdf",exporterVisibleAsPdf:"Export visible data as pdf",exporterSelectedAsPdf:"Export selected data as pdf",exporterAllAsExcel:"Export all data as excel",exporterVisibleAsExcel:"Export visible data as excel",exporterSelectedAsExcel:"Export selected data as excel",clearAllFilters:"Clean all filters"},importer:{noHeaders:"Column names were unable to be derived, does the file have a header?",noObjects:"Objects were not able to be derived, was there data in the file other than headers?",invalidCsv:"File was unable to be processed, is it valid CSV?",invalidJson:"File was unable to be processed, is it valid Json?",jsonNotArray:"Imported json file must contain an array, aborting."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("hy",{aggregate:{label:"տվյալներ"},groupPanel:{description:"Ըստ սյան խմբավորելու համար քաշեք և գցեք վերնագիրն այստեղ։"},search:{placeholder:"Փնտրում...",showingItems:"Ցուցադրված տվյալներ՝",selectedItems:"Ընտրված:",totalItems:"Ընդամենը՝",size:"Տողերի քանակը էջում՝",first:"Առաջին էջ",next:"Հաջորդ էջ",previous:"Նախորդ էջ",last:"Վերջին էջ"},menu:{text:"Ընտրել սյուները:"},sort:{ascending:"Աճման կարգով",descending:"Նվազման կարգով",remove:"Հանել "},column:{hide:"Թաքցնել սյունը"},aggregation:{count:"ընդամենը տող՝ ",sum:"ընդամենը՝ ",avg:"միջին՝ ",min:"մին՝ ",max:"մաքս՝ "},pinning:{pinLeft:"Կպցնել ձախ կողմում",pinRight:"Կպցնել աջ կողմում",unpin:"Արձակել"},gridMenu:{columns:"Սյուներ:",importerTitle:"Ներմուծել ֆայլ",exporterAllAsCsv:"Արտահանել ամբողջը CSV",exporterVisibleAsCsv:"Արտահանել երևացող տվյալները CSV",exporterSelectedAsCsv:"Արտահանել ընտրված տվյալները CSV",exporterAllAsPdf:"Արտահանել PDF",exporterVisibleAsPdf:"Արտահանել երևացող տվյալները PDF",exporterSelectedAsPdf:"Արտահանել ընտրված տվյալները PDF",exporterAllAsExcel:"Արտահանել excel",exporterVisibleAsExcel:"Արտահանել երևացող տվյալները excel",exporterSelectedAsExcel:"Արտահանել ընտրված տվյալները excel",clearAllFilters:"Մաքրել բոլոր ֆիլտրերը"},importer:{noHeaders:"Հնարավոր չեղավ որոշել սյան վերնագրերը։ Արդյո՞ք ֆայլը ունի վերնագրեր։",noObjects:"Հնարավոր չեղավ կարդալ տվյալները։ Արդյո՞ք ֆայլում կան տվյալներ։",invalidCsv:"Հնարավոր չեղավ մշակել ֆայլը։ Արդյո՞ք այն վավեր CSV է։",invalidJson:"Հնարավոր չեղավ մշակել ֆայլը։ Արդյո՞ք այն վավեր Json է։",jsonNotArray:"Ներմուծված json ֆայլը պետք է պարունակի զանգված, կասեցվում է։"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("is",{headerCell:{aria:{defaultFilterLabel:"Sía fyrir dálk",removeFilter:"Fjarlægja síu",columnMenuButtonLabel:"Dálkavalmynd"},priority:"Forgangsröðun:",filterLabel:"Sía fyrir dálka: "},aggregate:{label:"hlutir"},groupPanel:{description:"Dragðu dálkhaus hingað til að flokka saman eftir þeim dálki."},search:{placeholder:"Leita...",showingItems:"Sýni hluti:",selectedItems:"Valdir hlutir:",totalItems:"Hlutir alls:",size:"Stærð síðu:",first:"Fyrsta síða",next:"Næsta síða",previous:"Fyrri síða",last:"Síðasta síða"},menu:{text:"Veldu dálka:"},sort:{ascending:"Raða hækkandi",descending:"Raða lækkandi",none:"Engin röðun",remove:"Fjarlægja röðun"},column:{hide:"Fela dálk"},aggregation:{count:"fjöldi raða: ",sum:"summa: ",avg:"meðaltal: ",min:"lágmark: ",max:"hámark: "},pinning:{pinLeft:"Festa til vinstri",pinRight:"Festa til hægri",unpin:"Losa"},columnMenu:{close:"Loka"},gridMenu:{aria:{buttonLabel:"Töflu valmynd"},columns:"Dálkar:",importerTitle:"Flytja inn skjal",exporterAllAsCsv:"Flytja út gögn sem csv",exporterVisibleAsCsv:"Flytja út sýnileg gögn sem csv",exporterSelectedAsCsv:"Flytja út valin gögn sem csv",exporterAllAsPdf:"Flytja út öll gögn sem pdf",exporterVisibleAsPdf:"Flytja út sýnileg gögn sem pdf",exporterSelectedAsPdf:"Flytja út valin gögn sem pdf",clearAllFilters:"Hreinsa allar síur"},importer:{noHeaders:"Ekki hægt að vinna dálkanöfn úr skjalinu, er skjalið örugglega með haus?",noObjects:"Ekki hægt að vinna hluti úr skjalinu, voru örugglega gögn í skjalinu önnur en hausinn?",invalidCsv:"Tókst ekki að vinna skjal, er það örggulega gilt CSV?",invalidJson:"Tókst ekki að vinna skjal, er það örugglega gilt Json?",jsonNotArray:"Innflutt json skjal verður að innihalda fylki, hætti við."},pagination:{aria:{pageToFirst:"Fletta að fyrstu",pageBack:"Fletta til baka",pageSelected:"Valin síða",pageForward:"Fletta áfram",pageToLast:"Fletta að síðustu"},sizes:"hlutir á síðu",totalItems:"hlutir",through:"gegnum",of:"af"},grouping:{group:"Flokka",ungroup:"Sundurliða",aggregate_count:"Fjöldi: ",aggregate_sum:"Summa: ",aggregate_max:"Hámark: ",aggregate_min:"Lágmark: ",aggregate_avg:"Meðaltal: ",aggregate_remove:"Fjarlægja: "},validate:{error:"Villa:",minLength:"Gildi ætti að vera a.m.k. THRESHOLD stafa langt.",maxLength:"Gildi ætti að vera í mesta lagi THRESHOLD stafa langt.",required:"Þarf að hafa gildi."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("it",{aggregate:{label:"elementi"},groupPanel:{description:"Trascina un'intestazione all'interno del gruppo della colonna."},search:{placeholder:"Ricerca...",showingItems:"Mostra:",selectedItems:"Selezionati:",totalItems:"Totali:",size:"Tot Pagine:",first:"Prima",next:"Prossima",previous:"Precedente",last:"Ultima"},menu:{text:"Scegli le colonne:"},sort:{ascending:"Asc.",descending:"Desc.",remove:"Annulla ordinamento"},column:{hide:"Nascondi"},aggregation:{count:"righe totali: ",sum:"tot: ",avg:"media: ",min:"minimo: ",max:"massimo: "},pinning:{pinLeft:"Blocca a sx",pinRight:"Blocca a dx",unpin:"Blocca in alto"},gridMenu:{columns:"Colonne:",importerTitle:"Importa",exporterAllAsCsv:"Esporta tutti i dati in CSV",exporterVisibleAsCsv:"Esporta i dati visibili in CSV",exporterSelectedAsCsv:"Esporta i dati selezionati in CSV",exporterAllAsPdf:"Esporta tutti i dati in PDF",exporterVisibleAsPdf:"Esporta i dati visibili in PDF",exporterSelectedAsPdf:"Esporta i dati selezionati in PDF",exporterAllAsExcel:"Esporta tutti i dati in excel",exporterVisibleAsExcel:"Esporta i dati visibili in excel",exporterSelectedAsExcel:"Esporta i dati selezionati in excel",clearAllFilters:"Pulire tutti i filtri"},importer:{noHeaders:"Impossibile reperire i nomi delle colonne, sicuro che siano indicati all'interno del file?",noObjects:"Impossibile reperire gli oggetti, sicuro che siano indicati all'interno del file?",invalidCsv:"Impossibile elaborare il file, sicuro che sia un CSV?",invalidJson:"Impossibile elaborare il file, sicuro che sia un JSON valido?",jsonNotArray:"Errore! Il file JSON da importare deve contenere un array."},pagination:{aria:{pageToFirst:"Prima",pageBack:"Indietro",pageSelected:"Pagina selezionata",pageForward:"Avanti",pageToLast:"Ultima"},sizes:"elementi per pagina",totalItems:"elementi",through:"a",of:"di"},grouping:{group:"Raggruppa",ungroup:"Separa",aggregate_count:"Agg: N. Elem.",aggregate_sum:"Agg: Somma",aggregate_max:"Agg: Massimo",aggregate_min:"Agg: Minimo",aggregate_avg:"Agg: Media",aggregate_remove:"Agg: Rimuovi"},validate:{error:"Errore:",minLength:"Lunghezza minima pari a THRESHOLD caratteri.",maxLength:"Lunghezza massima pari a THRESHOLD caratteri.",required:"Necessario inserire un valore."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("ja",{headerCell:{aria:{defaultFilterLabel:"列のフィルター",removeFilter:"フィルターの解除",columnMenuButtonLabel:"列のメニュー"},priority:"優先度:",filterLabel:"列フィルター: "},aggregate:{label:"項目"},groupPanel:{description:"ここに列ヘッダをドラッグアンドドロップして、その列でグループ化します。"},search:{placeholder:"検索...",showingItems:"表示中の項目:",selectedItems:"選択した項目:",totalItems:"項目の総数:",size:"ページサイズ:",first:"最初のページ",next:"次のページ",previous:"前のページ",last:"前のページ"},menu:{text:"列の選択:"},sort:{ascending:"昇順に並べ替え",descending:"降順に並べ替え",none:"並べ替え無し",remove:"並べ替えの解除"},column:{hide:"列の非表示"},aggregation:{count:"行数: ",sum:"合計: ",avg:"平均: ",min:"最小: ",max:"最大: "},pinning:{pinLeft:"左に固定",pinRight:"右に固定",unpin:"固定解除"},columnMenu:{close:"閉じる"},gridMenu:{aria:{buttonLabel:"グリッドメニュー"},columns:"列の表示/非表示:",importerTitle:"ファイルのインポート",exporterAllAsCsv:"すべてのデータをCSV形式でエクスポート",exporterVisibleAsCsv:"表示中のデータをCSV形式でエクスポート",exporterSelectedAsCsv:"選択したデータをCSV形式でエクスポート",exporterAllAsPdf:"すべてのデータをPDF形式でエクスポート",exporterVisibleAsPdf:"表示中のデータをPDF形式でエクスポート",exporterSelectedAsPdf:"選択したデータをPDF形式でエクスポート",clearAllFilters:"すべてのフィルタをクリア"},importer:{noHeaders:"列名を取得できません。ファイルにヘッダが含まれていることを確認してください。",noObjects:"オブジェクトを取得できません。ファイルにヘッダ以外のデータが含まれていることを確認してください。",invalidCsv:"ファイルを処理できません。ファイルが有効なCSV形式であることを確認してください。",invalidJson:"ファイルを処理できません。ファイルが有効なJSON形式であることを確認してください。",jsonNotArray:"インポートしたJSONファイルには配列が含まれている必要があります。処理を中止します。"},pagination:{aria:{pageToFirst:"最初のページ",pageBack:"前のページ",pageSelected:"現在のページ",pageForward:"次のページ",pageToLast:"最後のページ"},sizes:"項目/ページ",totalItems:"項目",through:"から",of:"項目/全"},grouping:{group:"グループ化",ungroup:"グループ化の解除",aggregate_count:"集計表示: 行数",aggregate_sum:"集計表示: 合計",aggregate_max:"集計表示: 最大",aggregate_min:"集計表示: 最小",aggregate_avg:"集計表示: 平均",aggregate_remove:"集計表示: 解除"},validate:{error:"Error:",minLength:"THRESHOLD 文字以上で入力してください。",maxLength:"THRESHOLD 文字以下で入力してください。",required:"値が必要です。"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("ko",{aggregate:{label:"아이템"},groupPanel:{description:"컬럼으로 그룹핑하기 위해서는 컬럼 헤더를 끌어 떨어뜨려 주세요."},search:{placeholder:"검색...",showingItems:"항목 보여주기:",selectedItems:"선택 항목:",totalItems:"전체 항목:",size:"페이지 크기:",first:"첫번째 페이지",next:"다음 페이지",previous:"이전 페이지",last:"마지막 페이지"},menu:{text:"컬럼을 선택하세요:"},sort:{ascending:"오름차순 정렬",descending:"내림차순 정렬",remove:"소팅 제거"},column:{hide:"컬럼 제거"},aggregation:{count:"전체 갯수: ",sum:"전체: ",avg:"평균: ",min:"최소: ",max:"최대: "},pinning:{pinLeft:"왼쪽 핀",pinRight:"오른쪽 핀",unpin:"핀 제거"},gridMenu:{columns:"컬럼:",importerTitle:"파일 가져오기",exporterAllAsCsv:"csv로 모든 데이터 내보내기",exporterVisibleAsCsv:"csv로 보이는 데이터 내보내기",exporterSelectedAsCsv:"csv로 선택된 데이터 내보내기",exporterAllAsPdf:"pdf로 모든 데이터 내보내기",exporterVisibleAsPdf:"pdf로 보이는 데이터 내보내기",exporterSelectedAsPdf:"pdf로 선택 데이터 내보내기",clearAllFilters:"모든 필터를 청소"},importer:{noHeaders:"컬럼명이 지정되어 있지 않습니다. 파일에 헤더가 명시되어 있는지 확인해 주세요.",noObjects:"데이터가 지정되어 있지 않습니다. 데이터가 파일에 있는지 확인해 주세요.",invalidCsv:"파일을 처리할 수 없습니다. 올바른 csv인지 확인해 주세요.",invalidJson:"파일을 처리할 수 없습니다. 올바른 json인지 확인해 주세요.",jsonNotArray:"json 파일은 배열을 포함해야 합니다."},pagination:{sizes:"페이지당 항목",totalItems:"전체 항목"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("nl",{aggregate:{label:"items"},groupPanel:{description:"Sleep hier een kolomnaam heen om op te groeperen."},search:{placeholder:"Zoeken...",showingItems:"Getoonde items:",selectedItems:"Geselecteerde items:",totalItems:"Totaal aantal items:",size:"Items per pagina:",first:"Eerste pagina",next:"Volgende pagina",previous:"Vorige pagina",last:"Laatste pagina"},menu:{text:"Kies kolommen:"},sort:{ascending:"Sorteer oplopend",descending:"Sorteer aflopend",remove:"Verwijder sortering"},column:{hide:"Verberg kolom"},aggregation:{count:"Aantal rijen: ",sum:"Som: ",avg:"Gemiddelde: ",min:"Min: ",max:"Max: "},pinning:{pinLeft:"Zet links vast",pinRight:"Zet rechts vast",unpin:"Maak los"},gridMenu:{columns:"Kolommen:",importerTitle:"Importeer bestand",exporterAllAsCsv:"Exporteer alle data als csv",exporterVisibleAsCsv:"Exporteer zichtbare data als csv",exporterSelectedAsCsv:"Exporteer geselecteerde data als csv",exporterAllAsPdf:"Exporteer alle data als pdf",exporterVisibleAsPdf:"Exporteer zichtbare data als pdf",exporterSelectedAsPdf:"Exporteer geselecteerde data als pdf",exporterAllAsExcel:"Exporteer alle data als excel",exporterVisibleAsExcel:"Exporteer zichtbare data als excel",exporterSelectedAsExcel:"Exporteer alle data als excel",clearAllFilters:"Reinig alle filters"},importer:{noHeaders:"Kolomnamen kunnen niet worden afgeleid. Heeft het bestand een header?",noObjects:"Objecten kunnen niet worden afgeleid. Bevat het bestand data naast de headers?",invalidCsv:"Het bestand kan niet verwerkt worden. Is het een valide csv bestand?",invalidJson:"Het bestand kan niet verwerkt worden. Is het valide json?",jsonNotArray:"Het json bestand moet een array bevatten. De actie wordt geannuleerd."},pagination:{sizes:"items per pagina",totalItems:"items",of:"van de"},grouping:{group:"Groepeer",ungroup:"Groepering opheffen",aggregate_count:"Agg: Aantal",aggregate_sum:"Agg: Som",aggregate_max:"Agg: Max",aggregate_min:"Agg: Min",aggregate_avg:"Agg: Gem",aggregate_remove:"Agg: Verwijder"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("no",{headerCell:{aria:{defaultFilterLabel:"Filter for kolonne",removeFilter:"Fjern filter",columnMenuButtonLabel:"Kolonnemeny"},priority:"Prioritet:",filterLabel:"Filter for kolonne: "},aggregate:{label:"elementer"},groupPanel:{description:"Trekk en kolonneoverskrift hit og slipp den for å gruppere etter den kolonnen."},search:{placeholder:"Søk...",showingItems:"Viste elementer:",selectedItems:"Valgte elementer:",totalItems:"Antall elementer:",size:"Sidestørrelse:",first:"Første side",next:"Neste side",previous:"Forrige side",last:"Siste side"},menu:{text:"Velg kolonner:"},sort:{ascending:"Sortere stigende",descending:"Sortere fallende",none:"Ingen sortering",remove:"Fjern sortering"},column:{hide:"Skjul kolonne"},aggregation:{count:"antall rader: ",sum:"total: ",avg:"gjennomsnitt: ",min:"minimum: ",max:"maksimum: "},pinning:{pinLeft:"Fest til venstre",pinRight:"Fest til høyre",unpin:"Løsne"},columnMenu:{close:"Lukk"},gridMenu:{aria:{buttonLabel:"Grid Menu"},columns:"Kolonner:",importerTitle:"Importer fil",exporterAllAsCsv:"Eksporter alle data som csv",exporterVisibleAsCsv:"Eksporter synlige data som csv",exporterSelectedAsCsv:"Eksporter utvalgte data som csv",exporterAllAsPdf:"Eksporter alle data som pdf",exporterVisibleAsPdf:"Eksporter synlige data som pdf",exporterSelectedAsPdf:"Eksporter utvalgte data som pdf",exporterAllAsExcel:"Eksporter alle data som excel",exporterVisibleAsExcel:"Eksporter synlige data som excel",exporterSelectedAsExcel:"Eksporter utvalgte data som excel",clearAllFilters:"Clear all filters"},importer:{noHeaders:"Kolonnenavn kunne ikke avledes. Har filen en overskrift?",noObjects:"Objekter kunne ikke avledes. Er der andre data i filen enn overskriften?",invalidCsv:"Filen kunne ikke behandles. Er den gyldig CSV?",invalidJson:"Filen kunne ikke behandles. Er den gyldig JSON?",jsonNotArray:"Importert JSON-fil må inneholde en liste. Avbryter."},pagination:{aria:{pageToFirst:"Gå til første side",pageBack:"Gå til forrige side",pageSelected:"Valgte side",pageForward:"Gå til neste side",pageToLast:"Gå til siste side"},sizes:"elementer per side",totalItems:"elementer",through:"til",of:"av"},grouping:{group:"Gruppere",ungroup:"Fjerne gruppering",aggregate_count:"Agr: Antall",aggregate_sum:"Agr: Sum",aggregate_max:"Agr: Maksimum",aggregate_min:"Agr: Minimum",aggregate_avg:"Agr: Gjennomsnitt",aggregate_remove:"Agr: Fjern"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("pl",{headerCell:{aria:{defaultFilterLabel:"Filtr dla kolumny",removeFilter:"Usuń filtr",columnMenuButtonLabel:"Opcje kolumny",column:"Kolumna"},priority:"Priorytet:",filterLabel:"Filtr dla kolumny: "},aggregate:{label:"pozycji"},groupPanel:{description:"Przeciągnij nagłówek kolumny tutaj, aby pogrupować według niej."},search:{aria:{selected:"Wiersz zaznaczony",notSelected:"Wiersz niezaznaczony"},placeholder:"Szukaj...",showingItems:"Widoczne pozycje:",selectedItems:"Zaznaczone pozycje:",totalItems:"Wszystkich pozycji:",size:"Rozmiar strony:",first:"Pierwsza strona",next:"Następna strona",previous:"Poprzednia strona",last:"Ostatnia strona"},menu:{text:"Wybierz kolumny:"},sort:{ascending:"Sortuj rosnąco",descending:"Sortuj malejąco",none:"Brak sortowania",remove:"Wyłącz sortowanie"},column:{hide:"Ukryj kolumnę"},aggregation:{count:"Razem pozycji: ",sum:"Razem: ",avg:"Średnia: ",min:"Min: ",max:"Max: "},pinning:{pinLeft:"Przypnij do lewej",pinRight:"Przypnij do prawej",unpin:"Odepnij"},columnMenu:{close:"Zamknij"},gridMenu:{aria:{buttonLabel:"Opcje tabeli"},columns:"Kolumny:",importerTitle:"Importuj plik",exporterAllAsCsv:"Eksportuj wszystkie dane do csv",exporterVisibleAsCsv:"Eksportuj widoczne dane do csv",exporterSelectedAsCsv:"Eksportuj zaznaczone dane do csv",exporterAllAsPdf:"Eksportuj wszystkie dane do pdf",exporterVisibleAsPdf:"Eksportuj widoczne dane do pdf",exporterSelectedAsPdf:"Eksportuj zaznaczone dane do pdf",exporterAllAsExcel:"Eksportuj wszystkie dane do excel",exporterVisibleAsExcel:"Eksportuj widoczne dane do excel",exporterSelectedAsExcel:"Eksportuj zaznaczone dane do excel",clearAllFilters:"Wyczyść filtry"},importer:{noHeaders:"Nie udało się wczytać nazw kolumn. Czy plik posiada nagłówek?",noObjects:"Nie udalo się wczytać pozycji. Czy plik zawiera dane?",invalidCsv:"Nie udało się przetworzyć pliku. Czy to prawidłowy plik CSV?",invalidJson:"Nie udało się przetworzyć pliku. Czy to prawidłowy plik JSON?",jsonNotArray:"Importowany plik JSON musi zawierać tablicę. Importowanie przerwane."},pagination:{aria:{pageToFirst:"Pierwsza strona",pageBack:"Poprzednia strona",pageSelected:"Wybrana strona",pageForward:"Następna strona",pageToLast:"Ostatnia strona"},sizes:"pozycji na stronę",totalItems:"pozycji",through:"do",of:"z"},grouping:{group:"Grupuj",ungroup:"Rozgrupuj",aggregate_count:"Zbiorczo: Razem",aggregate_sum:"Zbiorczo: Suma",aggregate_max:"Zbiorczo: Max",aggregate_min:"Zbiorczo: Min",aggregate_avg:"Zbiorczo: Średnia",aggregate_remove:"Zbiorczo: Usuń"},validate:{error:"Błąd:",minLength:"Wartość powinna składać się z co najmniej THRESHOLD znaków.",maxLength:"Wartość powinna składać się z przynajmniej THRESHOLD znaków.",required:"Wartość jest wymagana."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("pt-br",{headerCell:{aria:{defaultFilterLabel:"Filtro por coluna",removeFilter:"Remover filtro",columnMenuButtonLabel:"Menu coluna"},priority:"Prioridade:",filterLabel:"Filtro por coluna: "},aggregate:{label:"itens"},groupPanel:{description:"Arraste e solte uma coluna aqui para agrupar por essa coluna"},search:{placeholder:"Procurar...",showingItems:"Mostrando os Itens:",selectedItems:"Items Selecionados:",totalItems:"Total de Itens:",size:"Tamanho da Página:",first:"Primeira Página",next:"Próxima Página",previous:"Página Anterior",last:"Última Página"},menu:{text:"Selecione as colunas:"},sort:{ascending:"Ordenar Ascendente",descending:"Ordenar Descendente",none:"Nenhuma Ordem",remove:"Remover Ordenação"},column:{hide:"Esconder coluna"},aggregation:{count:"total de linhas: ",sum:"total: ",avg:"med: ",min:"min: ",max:"max: "},pinning:{pinLeft:"Fixar Esquerda",pinRight:"Fixar Direita",unpin:"Desprender"},columnMenu:{close:"Fechar"},gridMenu:{aria:{buttonLabel:"Menu Grid"},columns:"Colunas:",importerTitle:"Importar arquivo",exporterAllAsCsv:"Exportar todos os dados como csv",exporterVisibleAsCsv:"Exportar dados visíveis como csv",exporterSelectedAsCsv:"Exportar dados selecionados como csv",exporterAllAsPdf:"Exportar todos os dados como pdf",exporterVisibleAsPdf:"Exportar dados visíveis como pdf",exporterSelectedAsPdf:"Exportar dados selecionados como pdf",clearAllFilters:"Limpar todos os filtros"},importer:{noHeaders:"Nomes de colunas não puderam ser derivados. O arquivo tem um cabeçalho?",noObjects:"Objetos não puderam ser derivados. Havia dados no arquivo, além dos cabeçalhos?",invalidCsv:"Arquivo não pode ser processado. É um CSV válido?",invalidJson:"Arquivo não pode ser processado. É um Json válido?",jsonNotArray:"Arquivo json importado tem que conter um array. Abortando."},pagination:{aria:{pageToFirst:"Primeira página",pageBack:"Página anterior",pageSelected:"Página Selecionada",pageForward:"Proxima",pageToLast:"Anterior"},sizes:"itens por página",totalItems:"itens",through:"através dos",of:"de"},grouping:{group:"Agrupar",ungroup:"Desagrupar",aggregate_count:"Agr: Contar",aggregate_sum:"Agr: Soma",aggregate_max:"Agr: Max",aggregate_min:"Agr: Min",aggregate_avg:"Agr: Med",aggregate_remove:"Agr: Remover"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("pt",{headerCell:{aria:{defaultFilterLabel:"Filtro por coluna",removeFilter:"Remover filtro",columnMenuButtonLabel:"Menu coluna"},priority:"Prioridade:",filterLabel:"Filtro por coluna: "},aggregate:{label:"itens"},groupPanel:{description:"Arraste e solte uma coluna aqui para agrupar por essa coluna"},search:{placeholder:"Procurar...",showingItems:"Mostrando os Itens:",selectedItems:"Itens Selecionados:",totalItems:"Total de Itens:",size:"Tamanho da Página:",first:"Primeira Página",next:"Próxima Página",previous:"Página Anterior",last:"Última Página"},menu:{text:"Selecione as colunas:"},sort:{ascending:"Ordenar Ascendente",descending:"Ordenar Descendente",none:"Nenhuma Ordem",remove:"Remover Ordenação"},column:{hide:"Esconder coluna"},aggregation:{count:"total de linhas: ",sum:"total: ",avg:"med: ",min:"min: ",max:"max: "},pinning:{pinLeft:"Fixar Esquerda",pinRight:"Fixar Direita",unpin:"Desprender"},columnMenu:{close:"Fechar"},gridMenu:{aria:{buttonLabel:"Menu Grid"},columns:"Colunas:",importerTitle:"Importar ficheiro",exporterAllAsCsv:"Exportar todos os dados como csv",exporterVisibleAsCsv:"Exportar dados visíveis como csv",exporterSelectedAsCsv:"Exportar dados selecionados como csv",exporterAllAsPdf:"Exportar todos os dados como pdf",exporterVisibleAsPdf:"Exportar dados visíveis como pdf",exporterSelectedAsPdf:"Exportar dados selecionados como pdf",clearAllFilters:"Limpar todos os filtros"},importer:{noHeaders:"Nomes de colunas não puderam ser derivados. O ficheiro tem um cabeçalho?",noObjects:"Objetos não puderam ser derivados. Havia dados no ficheiro, além dos cabeçalhos?",invalidCsv:"Ficheiro não pode ser processado. É um CSV válido?",invalidJson:"Ficheiro não pode ser processado. É um Json válido?",jsonNotArray:"Ficheiro json importado tem que conter um array. Interrompendo."},pagination:{aria:{pageToFirst:"Primeira página",pageBack:"Página anterior",pageSelected:"Página Selecionada",pageForward:"Próxima",pageToLast:"Anterior"},sizes:"itens por página",totalItems:"itens",through:"a",of:"de"},grouping:{group:"Agrupar",ungroup:"Desagrupar",aggregate_count:"Agr: Contar",aggregate_sum:"Agr: Soma",aggregate_max:"Agr: Max",aggregate_min:"Agr: Min",aggregate_avg:"Agr: Med",aggregate_remove:"Agr: Remover"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("ro",{headerCell:{aria:{defaultFilterLabel:"Filtru pentru coloana",removeFilter:"Sterge filtru",columnMenuButtonLabel:"Column Menu"},priority:"Prioritate:",filterLabel:"Filtru pentru coloana:"},aggregate:{label:"Elemente"},groupPanel:{description:"Trage un cap de coloana aici pentru a grupa elementele dupa coloana respectiva"},search:{placeholder:"Cauta...",showingItems:"Arata elementele:",selectedItems:"Elementele selectate:",totalItems:"Total elemente:",size:"Marime pagina:",first:"Prima pagina",next:"Pagina urmatoare",previous:"Pagina anterioara",last:"Ultima pagina"},menu:{text:"Alege coloane:"},sort:{ascending:"Ordoneaza crescator",descending:"Ordoneaza descrescator",none:"Fara ordonare",remove:"Sterge ordonarea"},column:{hide:"Ascunde coloana"},aggregation:{count:"total linii: ",sum:"total: ",avg:"medie: ",min:"min: ",max:"max: "},pinning:{pinLeft:"Pin la stanga",pinRight:"Pin la dreapta",unpin:"Sterge pinul"},columnMenu:{close:"Inchide"},gridMenu:{aria:{buttonLabel:"Grid Menu"},columns:"Coloane:",importerTitle:"Incarca fisier",exporterAllAsCsv:"Exporta toate datele ca csv",exporterVisibleAsCsv:"Exporta datele vizibile ca csv",exporterSelectedAsCsv:"Exporta datele selectate ca csv",exporterAllAsPdf:"Exporta toate datele ca pdf",exporterVisibleAsPdf:"Exporta datele vizibile ca pdf",exporterSelectedAsPdf:"Exporta datele selectate ca csv pdf",clearAllFilters:"Sterge toate filtrele"},importer:{noHeaders:"Numele coloanelor nu a putut fi incarcat, acest fisier are un header?",noObjects:"Datele nu au putut fi incarcate, exista date in fisier in afara numelor de coloane?",invalidCsv:"Fisierul nu a putut fi procesat, ati incarcat un CSV valid ?",invalidJson:"Fisierul nu a putut fi procesat, ati incarcat un Json valid?",jsonNotArray:"Json-ul incarcat trebuie sa contina un array, inchidere."},pagination:{aria:{pageToFirst:"Prima pagina",pageBack:"O pagina inapoi",pageSelected:"Pagina selectata",pageForward:"O pagina inainte",pageToLast:"Ultima pagina"},sizes:"Elemente per pagina",totalItems:"elemente",through:"prin",of:"of"},grouping:{group:"Grupeaza",ungroup:"Opreste gruparea",aggregate_count:"Agg: Count",aggregate_sum:"Agg: Sum",aggregate_max:"Agg: Max",aggregate_min:"Agg: Min",aggregate_avg:"Agg: Avg",aggregate_remove:"Agg: Remove"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("ru",{headerCell:{aria:{defaultFilterLabel:"Фильтр столбца",removeFilter:"Удалить фильтр",columnMenuButtonLabel:"Меню столбца"},priority:"Приоритет:",filterLabel:"Фильтр столбца: "},aggregate:{label:"элементы"},groupPanel:{description:"Для группировки по столбцу перетащите сюда его название."},search:{placeholder:"Поиск...",showingItems:"Показать элементы:",selectedItems:"Выбранные элементы:",totalItems:"Всего элементов:",size:"Размер страницы:",first:"Первая страница",next:"Следующая страница",previous:"Предыдущая страница",last:"Последняя страница"},menu:{text:"Выбрать столбцы:"},sort:{ascending:"По возрастанию",descending:"По убыванию",none:"Без сортировки",remove:"Убрать сортировку"},column:{hide:"Спрятать столбец"},aggregation:{count:"всего строк: ",sum:"итого: ",avg:"среднее: ",min:"мин: ",max:"макс: "},pinning:{pinLeft:"Закрепить слева",pinRight:"Закрепить справа",unpin:"Открепить"},columnMenu:{close:"Закрыть"},gridMenu:{aria:{ buttonLabel:"Меню"},columns:"Столбцы:",importerTitle:"Импортировать файл",exporterAllAsCsv:"Экспортировать всё в CSV",exporterVisibleAsCsv:"Экспортировать видимые данные в CSV",exporterSelectedAsCsv:"Экспортировать выбранные данные в CSV",exporterAllAsPdf:"Экспортировать всё в PDF",exporterVisibleAsPdf:"Экспортировать видимые данные в PDF",exporterSelectedAsPdf:"Экспортировать выбранные данные в PDF",clearAllFilters:"Очистите все фильтры"},importer:{noHeaders:"Не удалось получить названия столбцов, есть ли в файле заголовок?",noObjects:"Не удалось получить данные, есть ли в файле строки кроме заголовка?",invalidCsv:"Не удалось обработать файл, это правильный CSV-файл?",invalidJson:"Не удалось обработать файл, это правильный JSON?",jsonNotArray:"Импортируемый JSON-файл должен содержать массив, операция отменена."},pagination:{aria:{pageToFirst:"Первая страница",pageBack:"Предыдущая страница",pageSelected:"Выбранная страница",pageForward:"Следующая страница",pageToLast:"Последняя страница"},sizes:"строк на страницу",totalItems:"строк",through:"по",of:"из"},grouping:{group:"Группировать",ungroup:"Разгруппировать",aggregate_count:"Группировать: Count",aggregate_sum:"Для группы: Сумма",aggregate_max:"Для группы: Максимум",aggregate_min:"Для группы: Минимум",aggregate_avg:"Для группы: Среднее",aggregate_remove:"Для группы: Пусто"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("sk",{aggregate:{label:"items"},groupPanel:{description:"Pretiahni sem názov stĺpca pre zoskupenie podľa toho stĺpca."},search:{placeholder:"Hľadaj...",showingItems:"Zobrazujem položky:",selectedItems:"Vybraté položky:",totalItems:"Počet položiek:",size:"Počet:",first:"Prvá strana",next:"Ďalšia strana",previous:"Predchádzajúca strana",last:"Posledná strana"},menu:{text:"Vyberte stĺpce:"},sort:{ascending:"Zotriediť vzostupne",descending:"Zotriediť zostupne",remove:"Vymazať triedenie"},aggregation:{count:"total rows: ",sum:"total: ",avg:"avg: ",min:"min: ",max:"max: "},gridMenu:{columns:"Columns:",importerTitle:"Import file",exporterAllAsCsv:"Export all data as csv",exporterVisibleAsCsv:"Export visible data as csv",exporterSelectedAsCsv:"Export selected data as csv",exporterAllAsPdf:"Export all data as pdf",exporterVisibleAsPdf:"Export visible data as pdf",exporterSelectedAsPdf:"Export selected data as pdf",exporterAllAsExcel:"Export all data as excel",exporterVisibleAsExcel:"Export visible data as excel",exporterSelectedAsExcel:"Export selected data as excel",clearAllFilters:"Clear all filters"},importer:{noHeaders:"Column names were unable to be derived, does the file have a header?",noObjects:"Objects were not able to be derived, was there data in the file other than headers?",invalidCsv:"File was unable to be processed, is it valid CSV?",invalidJson:"File was unable to be processed, is it valid Json?",jsonNotArray:"Imported json file must contain an array, aborting."}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("sv",{aggregate:{label:"Artiklar"},groupPanel:{description:"Dra en kolumnrubrik hit och släpp den för att gruppera efter den kolumnen."},search:{placeholder:"Sök...",showingItems:"Visar artiklar:",selectedItems:"Valda artiklar:",totalItems:"Antal artiklar:",size:"Sidstorlek:",first:"Första sidan",next:"Nästa sida",previous:"Föregående sida",last:"Sista sidan"},menu:{text:"Välj kolumner:"},sort:{ascending:"Sortera stigande",descending:"Sortera fallande",remove:"Inaktivera sortering"},column:{hide:"Göm kolumn"},aggregation:{count:"Antal rader: ",sum:"Summa: ",avg:"Genomsnitt: ",min:"Min: ",max:"Max: "},pinning:{pinLeft:"Fäst vänster",pinRight:"Fäst höger",unpin:"Lösgör"},gridMenu:{columns:"Kolumner:",importerTitle:"Importera fil",exporterAllAsCsv:"Exportera all data som CSV",exporterVisibleAsCsv:"Exportera synlig data som CSV",exporterSelectedAsCsv:"Exportera markerad data som CSV",exporterAllAsPdf:"Exportera all data som PDF",exporterVisibleAsPdf:"Exportera synlig data som PDF",exporterSelectedAsPdf:"Exportera markerad data som PDF",clearAllFilters:"Rengör alla filter"},importer:{noHeaders:"Kolumnnamn kunde inte härledas. Har filen ett sidhuvud?",noObjects:"Objekt kunde inte härledas. Har filen data undantaget sidhuvud?",invalidCsv:"Filen kunde inte behandlas, är den en giltig CSV?",invalidJson:"Filen kunde inte behandlas, är den en giltig JSON?",jsonNotArray:"Importerad JSON-fil måste innehålla ett fält. Import avbruten."},pagination:{sizes:"Artiklar per sida",totalItems:"Artiklar"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("ta",{aggregate:{label:"உருப்படிகள்"},groupPanel:{description:"ஒரு பத்தியை குழுவாக அமைக்க அப்பத்தியின் தலைப்பை இங்கே இழுத்து வரவும் "},search:{placeholder:"தேடல் ...",showingItems:"உருப்படிகளை காண்பித்தல்:",selectedItems:"தேர்ந்தெடுக்கப்பட்ட உருப்படிகள்:",totalItems:"மொத்த உருப்படிகள்:",size:"பக்க அளவு: ",first:"முதல் பக்கம்",next:"அடுத்த பக்கம்",previous:"முந்தைய பக்கம் ",last:"இறுதி பக்கம்"},menu:{text:"பத்திகளை தேர்ந்தெடு:"},sort:{ascending:"மேலிருந்து கீழாக",descending:"கீழிருந்து மேலாக",remove:"வரிசையை நீக்கு"},column:{hide:"பத்தியை மறைத்து வை "},aggregation:{count:"மொத்த வரிகள்:",sum:"மொத்தம்: ",avg:"சராசரி: ",min:"குறைந்தபட்ச: ",max:"அதிகபட்ச: "},pinning:{pinLeft:"இடதுபுறமாக தைக்க ",pinRight:"வலதுபுறமாக தைக்க",unpin:"பிரி"},gridMenu:{columns:"பத்திகள்:",importerTitle:"கோப்பு : படித்தல்",exporterAllAsCsv:"எல்லா தரவுகளையும் கோப்பாக்கு: csv",exporterVisibleAsCsv:"இருக்கும் தரவுகளை கோப்பாக்கு: csv",exporterSelectedAsCsv:"தேர்ந்தெடுத்த தரவுகளை கோப்பாக்கு: csv",exporterAllAsPdf:"எல்லா தரவுகளையும் கோப்பாக்கு: pdf",exporterVisibleAsPdf:"இருக்கும் தரவுகளை கோப்பாக்கு: pdf",exporterSelectedAsPdf:"தேர்ந்தெடுத்த தரவுகளை கோப்பாக்கு: pdf",clearAllFilters:"Clear all filters"},importer:{noHeaders:"பத்தியின் தலைப்புகளை பெற இயலவில்லை, கோப்பிற்கு தலைப்பு உள்ளதா?",noObjects:"இலக்குகளை உருவாக்க முடியவில்லை, கோப்பில் தலைப்புகளை தவிர தரவு ஏதேனும் உள்ளதா? ",invalidCsv:"சரிவர நடைமுறை படுத்த இயலவில்லை, கோப்பு சரிதானா? - csv",invalidJson:"சரிவர நடைமுறை படுத்த இயலவில்லை, கோப்பு சரிதானா? - json",jsonNotArray:"படித்த கோப்பில் வரிசைகள் உள்ளது, நடைமுறை ரத்து செய் : json"},pagination:{sizes:"உருப்படிகள் / பக்கம்",totalItems:"உருப்படிகள் "},grouping:{group:"குழு",ungroup:"பிரி",aggregate_count:"மதிப்பீட்டு : எண்ணு",aggregate_sum:"மதிப்பீட்டு : கூட்டல்",aggregate_max:"மதிப்பீட்டு : அதிகபட்சம்",aggregate_min:"மதிப்பீட்டு : குறைந்தபட்சம்",aggregate_avg:"மதிப்பீட்டு : சராசரி",aggregate_remove:"மதிப்பீட்டு : நீக்கு"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("tr",{headerCell:{aria:{defaultFilterLabel:"Sütun için filtre",removeFilter:"Filtreyi Kaldır",columnMenuButtonLabel:"Sütun Menüsü"},priority:"Öncelik:",filterLabel:"Sütun için filtre: "},aggregate:{label:"kayıtlar"},groupPanel:{description:"Sütuna göre gruplamak için sütun başlığını buraya sürükleyin ve bırakın."},search:{placeholder:"Arama...",showingItems:"Gösterilen Kayıt:",selectedItems:"Seçili Kayıt:",totalItems:"Toplam Kayıt:",size:"Sayfa Boyutu:",first:"İlk Sayfa",next:"Sonraki Sayfa",previous:"Önceki Sayfa",last:"Son Sayfa"},menu:{text:"Sütunları Seç:"},sort:{ascending:"Artan Sırada Sırala",descending:"Azalan Sırada Sırala",none:"Sıralama Yapma",remove:"Sıralamayı Kaldır"},column:{hide:"Sütunu Gizle"},aggregation:{count:"toplam satır: ",sum:"toplam: ",avg:"ort: ",min:"min: ",max:"maks: "},pinning:{pinLeft:"Sola Sabitle",pinRight:"Sağa Sabitle",unpin:"Sabitlemeyi Kaldır"},columnMenu:{close:"Kapat"},gridMenu:{aria:{buttonLabel:"Tablo Menü"},columns:"Sütunlar:",importerTitle:"Dosya içeri aktar",exporterAllAsCsv:"Bütün veriyi CSV olarak dışarı aktar",exporterVisibleAsCsv:"Görünen veriyi CSV olarak dışarı aktar",exporterSelectedAsCsv:"Seçili veriyi CSV olarak dışarı aktar",exporterAllAsPdf:"Bütün veriyi PDF olarak dışarı aktar",exporterVisibleAsPdf:"Görünen veriyi PDF olarak dışarı aktar",exporterSelectedAsPdf:"Seçili veriyi PDF olarak dışarı aktar",clearAllFilters:"Bütün filtreleri kaldır"},importer:{noHeaders:"Sütun isimleri üretilemiyor, dosyanın bir başlığı var mı?",noObjects:"Nesneler üretilemiyor, dosyada başlıktan başka bir veri var mı?",invalidCsv:"Dosya işlenemedi, geçerli bir CSV dosyası mı?",invalidJson:"Dosya işlenemedi, geçerli bir Json dosyası mı?",jsonNotArray:"Alınan Json dosyasında bir dizi bulunmalıdır, işlem iptal ediliyor."},pagination:{aria:{pageToFirst:"İlk sayfaya",pageBack:"Geri git",pageSelected:"Seçili sayfa",pageForward:"İleri git",pageToLast:"Sona git"},sizes:"Sayfadaki nesne sayısı",totalItems:"kayıtlar",through:"",of:""},grouping:{group:"Grupla",ungroup:"Gruplama",aggregate_count:"Yekun: Sayı",aggregate_sum:"Yekun: Toplam",aggregate_max:"Yekun: Maks",aggregate_min:"Yekun: Min",aggregate_avg:"Yekun: Ort",aggregate_remove:"Yekun: Sil"}}),e}])}])}(),function(){angular.module("ui.grid").config(["$provide",function(e){e.decorator("i18nService",["$delegate",function(e){return e.add("ua",{headerCell:{aria:{defaultFilterLabel:"Фільтр стовпчика",removeFilter:"Видалити фільтр",columnMenuButtonLabel:"Меню ствпчика"},priority:"Пріоритет:",filterLabel:"Фільтр стовпчика: "},aggregate:{label:"елементи"},groupPanel:{description:"Для групування за стовпчиком перетягніть сюди його назву."},search:{placeholder:"Пошук...",showingItems:"Показати елементи:",selectedItems:"Обрані елементи:",totalItems:"Усього елементів:",size:"Розмір сторінки:",first:"Перша сторінка",next:"Наступна сторінка",previous:"Попередня сторінка",last:"Остання сторінка"},menu:{text:"Обрати ствпчики:"},sort:{ascending:"За зростанням",descending:"За спаданням",none:"Без сортування",remove:"Прибрати сортування"},column:{hide:"Приховати стовпчик"},aggregation:{count:"усього рядків: ",sum:"ітого: ",avg:"середнє: ",min:"мін: ",max:"макс: "},pinning:{pinLeft:"Закріпити ліворуч",pinRight:"Закріпити праворуч",unpin:"Відкріпити"},columnMenu:{close:"Закрити"},gridMenu:{aria:{buttonLabel:"Меню"},columns:"Стовпчики:",importerTitle:"Імпортувати файл",exporterAllAsCsv:"Експортувати все в CSV",exporterVisibleAsCsv:"Експортувати видимі дані в CSV",exporterSelectedAsCsv:"Експортувати обрані дані в CSV",exporterAllAsPdf:"Експортувати все в PDF",exporterVisibleAsPdf:"Експортувати видимі дані в PDF",exporterSelectedAsPdf:"Експортувати обрані дані в PDF",clearAllFilters:"Очистити всі фільтри"},importer:{noHeaders:"Не вдалося отримати назви стовпчиків, чи є в файлі заголовок?",noObjects:"Не вдалося отримати дані, чи є в файлі рядки окрім заголовка?",invalidCsv:"Не вдалося обробити файл, чи це коректний CSV-файл?",invalidJson:"Не вдалося обробити файл, чи це коректний JSON?",jsonNotArray:"JSON-файл що імпортується повинен містити масив, операцію скасовано."},pagination:{aria:{pageToFirst:"Перша сторінка",pageBack:"Попередня сторінка",pageSelected:"Обрана сторінка",pageForward:"Наступна сторінка",pageToLast:"Остання сторінка"},sizes:"рядків на сторінку",totalItems:"рядків",through:"по",of:"з"},grouping:{group:"Групувати",ungroup:"Розгрупувати",aggregate_count:"Групувати: Кількість",aggregate_sum:"Для групи: Сума",aggregate_max:"Для групи: Максимум",aggregate_min:"Для групи: Мінімум",aggregate_avg:"Для групи: Серднє",aggregate_remove:"Для групи: Пусто"}}),e}])}])}(),function(){var e=["uiT","uiTranslate"],t=["t","uiTranslate"],n=angular.module("ui.grid.i18n");n.constant("i18nConstants",{MISSING:"[MISSING]",UPDATE_EVENT:"$uiI18n",LOCALE_DIRECTIVE_ALIAS:"uiI18n",DEFAULT_LANG:"en"}),n.service("i18nService",["$log","i18nConstants","$rootScope",function(e,t,n){var r={_langs:{},current:null,get:function(e){return this._langs[e.toLowerCase()]},add:function(e,t){var n=e.toLowerCase();this._langs[n]||(this._langs[n]={}),angular.extend(this._langs[n],t)},getAllLangs:function(){var e=[];if(!this._langs)return e;for(var t in this._langs)e.push(t);return e},setCurrent:function(e){this.current=e.toLowerCase()},getCurrentLang:function(){return this.current}},i={add:function(e,t){"object"==typeof e?angular.forEach(e,function(e){e&&r.add(e,t)}):r.add(e,t)},getAllLangs:function(){return r.getAllLangs()},get:function(e){var t=e||i.getCurrentLang();return r.get(t)},getSafeText:function(e,n){var o=n||i.getCurrentLang(),a=r.get(o);if(!a)return t.MISSING;for(var s=e.split("."),l=a,u=0;u=o?0===a?new r(e,n[s]):new r(i[a-1],n[s]):new r(e,n[s])},o.prototype.getRowColRight=function(e,t){var n=this.getFocusableCols(),i=this.getFocusableRows(),o=n.indexOf(t),a=i.indexOf(e);-1===o&&(o=0);var s=o===n.length-1?0:o+1;return s<=o?a===i.length-1?new r(e,n[s]):new r(i[a+1],n[s]):new r(e,n[s])},o.prototype.getRowColDown=function(e,t){var n=this.getFocusableCols(),i=this.getFocusableRows(),o=n.indexOf(t),a=i.indexOf(e);return-1===o&&(o=0),a===i.length-1?new r(e,n[o]):new r(i[a+1],n[o])},o.prototype.getRowColPageDown=function(e,t){var n=this.getFocusableCols(),i=this.getFocusableRows(),o=n.indexOf(t),a=i.indexOf(e);-1===o&&(o=0);var s=this.bodyContainer.minRowsToRender();return a>=i.length-s?new r(i[i.length-1],n[o]):new r(i[a+s],n[o])},o.prototype.getRowColUp=function(e,t){var n=this.getFocusableCols(),i=this.getFocusableRows(),o=n.indexOf(t),a=i.indexOf(e);return-1===o&&(o=0),0===a?new r(e,n[o]):new r(i[a-1],n[o])},o.prototype.getRowColPageUp=function(e,t){var n=this.getFocusableCols(),i=this.getFocusableRows(),o=n.indexOf(t),a=i.indexOf(e);-1===o&&(o=0);var s=this.bodyContainer.minRowsToRender();return a-s<0?new r(i[0],n[o]):new r(i[a-s],n[o])},o}]),e.service("uiGridCellNavService",["gridUtil","uiGridConstants","uiGridCellNavConstants","$q","uiGridCellNavFactory","GridRowColumn","ScrollEvent",function(e,t,n,r,i,o,a){var s={initializeGrid:function(e){e.registerColumnBuilder(s.cellNavColumnBuilder),e.cellNav={},e.cellNav.lastRowCol=null,e.cellNav.focusedCells=[],s.defaultGridOptions(e.options);var t={events:{cellNav:{navigate:function(e,t){},viewPortKeyDown:function(e,t){},viewPortKeyPress:function(e,t){}}},methods:{cellNav:{scrollToFocus:function(t,n){return s.scrollToFocus(e,t,n)},getFocusedCell:function(){return e.cellNav.lastRowCol},getCurrentSelection:function(){return e.cellNav.focusedCells},rowColSelectIndex:function(t){for(var n=-1,r=0;r0)return e[0]},s.cellNav.broadcastCellNav=u.cellNav.broadcastCellNav=function(e,t,r){t=!(void 0===t||!t),e=s.cellNav.makeRowCol(e),s.cellNav.broadcastFocus(e,t,r),l.$broadcast(n.CELL_NAV_EVENT,e,t,r)},s.cellNav.clearFocus=u.cellNav.clearFocus=function(){u.cellNav.focusedCells=[],l.$broadcast(n.CELL_NAV_EVENT)},s.cellNav.broadcastFocus=function(e,t,n){t=!(void 0===t||!t),e=s.cellNav.makeRowCol(e);var r=e.row,o=e.col,a=s.grid.api.cellNav.rowColSelectIndex(e);if(null===u.cellNav.lastRowCol||-1===a||u.cellNav.lastRowCol.col===o&&u.cellNav.lastRowCol.row===r){var l=new i(r,o);(null===u.cellNav.lastRowCol||u.cellNav.lastRowCol.row!==l.row||u.cellNav.lastRowCol.col!==l.col||u.options.enableCellEditOnFocus)&&(u.api.cellNav.raise.navigate(l,u.cellNav.lastRowCol,n),u.cellNav.lastRowCol=l),s.grid.options.modifierKeysToMultiSelectCells&&t?u.cellNav.focusedCells.push(e):u.cellNav.focusedCells=[e]}else u.options.modifierKeysToMultiSelectCells&&t&&a>=0&&u.cellNav.focusedCells.splice(a,1)},s.cellNav.handleKeyDown=function(e){var i=t.getDirection(e);if(null===i)return null;var o="body";e.uiGridTargetRenderContainerId&&(o=e.uiGridTargetRenderContainerId);var a=s.grid.api.cellNav.getFocusedCell();if(a){var l=s.grid.renderContainers[o].cellNav.getNextRowCol(i,a.row,a.col),c=s.grid.renderContainers[o].cellNav.getFocusableCols(),d=s.grid.api.cellNav.rowColSelectIndex(l);return i===n.direction.LEFT&&l.col===c[c.length-1]&&l.row===a.row&&e.keyCode===r.keymap.TAB&&e.shiftKey?(u.cellNav.focusedCells.splice(d,1),s.cellNav.clearFocus(),!0):i!==n.direction.RIGHT||l.col!==c[0]||l.row!==a.row||e.keyCode!==r.keymap.TAB||e.shiftKey?(u.scrollToIfNecessary(l.row,l.col).then(function(){s.cellNav.broadcastCellNav(l,null,e)}),e.stopPropagation(),e.preventDefault(),!1):(u.cellNav.focusedCells.splice(d,1),s.cellNav.clearFocus(),!0)}}},post:function(e,t,r,i){var o=i.grid,l=!0;try{angular.module("ngAria")}catch(e){l=!1}l&&function(){var r='',i=a(r)(e);t.prepend(i),e.$on(n.CELL_NAV_EVENT,function(e,t,n,r){if(!r||"focus"!==r.type){for(var a=[],l=o.api.cellNav.getCurrentSelection(),u=0;u
')(t);r.append(h),h.on("focus",function(e){e.uiGridTargetRenderContainerId=p;var t=u.grid.api.cellNav.getFocusedCell();null===t&&(t=u.grid.renderContainers[p].cellNav.getNextRowCol(a.direction.DOWN,null,null),t.row&&t.col&&u.cellNav.broadcastCellNav(t))}),d.setAriaActivedescendant=function(e){r.attr("aria-activedescendant",e)},d.removeAriaActivedescendant=function(e){r.attr("aria-activedescendant")===e&&r.attr("aria-activedescendant","")},u.focus=function(){n.focus.byElement(h[0])};var g=null;h.on("keydown",function(e){e.uiGridTargetRenderContainerId=p;var t=u.grid.api.cellNav.getFocusedCell();null===(u.grid.options.keyDownOverrides.some(function(t){return Object.keys(t).every(function(n){return t[n]===e[n]})})?null:u.cellNav.handleKeyDown(e))&&(u.grid.api.cellNav.raise.viewPortKeyDown(e,t,u.cellNav.handleKeyDown),g=t)}),h.on("keypress",function(t){g&&(e(function(){u.grid.api.cellNav.raise.viewPortKeyPress(t,g)},4),g=null)}),t.$on("$destroy",function(){h.off()})}}}}}}}]),e.directive("uiGridViewport",["$timeout","$document","gridUtil","uiGridConstants","uiGridCellNavService","uiGridCellNavConstants","$log","$compile",function(e,t,n,r,i,o,a,s){return{replace:!0,priority:-99999,require:["^uiGrid","^uiGridRenderContainer","?^uiGridCellnav"],scope:!1,compile:function(){return{pre:function(e,t,n,r){},post:function(e,t,n,r){var i=r[0],o=r[1];if(i.grid.api.cellNav){if("body"===o.containerId){var a=i.grid;a.api.core.on.scrollBegin(e,function(e){var t=i.grid.api.cellNav.getFocusedCell();null!==t&&o.colContainer.containsColumn(t.col)&&i.cellNav.clearFocus()}),a.api.core.on.scrollEnd(e,function(e){var t=i.grid.api.cellNav.getFocusedCell();null!==t&&o.colContainer.containsColumn(t.col)&&i.cellNav.broadcastCellNav(t)}),a.api.cellNav.on.navigate(e,function(){i.focus()})}}}}}}}]),e.directive("uiGridCell",["$timeout","$document","uiGridCellNavService","gridUtil","uiGridCellNavConstants","uiGridConstants","GridRowColumn",function(e,t,n,r,i,o,a){return{priority:-150,restrict:"A",require:["^uiGrid","?^uiGridCellnav"],scope:!1,link:function(e,t,n,r){function s(e){e.preventDefault()}function l(){f.cellNav.focusedCells.some(function(t,n){return t.row===e.row&&t.col===e.col})?u():c()}function u(){if(!e.focused){t.find("div").addClass("ui-grid-cell-focus"),t.attr("aria-selected",!0),p.setAriaActivedescendant(t.attr("id")),e.focused=!0}}function c(){if(e.focused){t.find("div").removeClass("ui-grid-cell-focus"),t.attr("aria-selected",!1),p.removeAriaActivedescendant(t.attr("id")),e.focused=!1}}var d=r[0],p=r[1];if(d.grid.api.cellNav&&e.col.colDef.allowCellFocus){var f=d.grid;e.focused=!1,t.attr("tabindex",-1),t.find("div").on("click",function(t){d.cellNav.broadcastCellNav(new a(e.row,e.col),t.ctrlKey||t.metaKey,t),t.stopPropagation(),e.$apply()}),t.on("mousedown",s),d.grid.api.edit&&(d.grid.api.edit.on.beginCellEdit(e,function(){t.off("mousedown",s)}),d.grid.api.edit.on.afterCellEdit(e,function(){t.on("mousedown",s)}),d.grid.api.edit.on.cancelCellEdit(e,function(){t.on("mousedown",s)})),l(),t.on("focus",function(t){d.cellNav.broadcastCellNav(new a(e.row,e.col),!1,t),t.stopPropagation(),e.$apply()}),e.$on(i.CELL_NAV_EVENT,l);var h=d.grid.registerDataChangeCallback(function(t){c(),e.$applyAsync(l)},[o.dataChange.ROW]);e.$on("$destroy",function(){h(),t.find("div").off(),t.off()})}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.edit",["ui.grid"]);e.constant("uiGridEditConstants",{EDITABLE_CELL_TEMPLATE:/EDITABLE_CELL_TEMPLATE/g,EDITABLE_CELL_DIRECTIVE:/editable_cell_directive/g,events:{BEGIN_CELL_EDIT:"uiGridEventBeginCellEdit",END_CELL_EDIT:"uiGridEventEndCellEdit",CANCEL_CELL_EDIT:"uiGridEventCancelCellEdit"}}),e.service("uiGridEditService",["$q","uiGridConstants","gridUtil",function(e,t,n){var r={initializeGrid:function(e){r.defaultGridOptions(e.options),e.registerColumnBuilder(r.editColumnBuilder),e.edit={};var t={events:{edit:{afterCellEdit:function(e,t,n,r){},beginCellEdit:function(e,t,n){},cancelCellEdit:function(e,t){}}},methods:{edit:{}}};e.api.registerEventsFromObject(t.events)},defaultGridOptions:function(e){e.cellEditableCondition=void 0===e.cellEditableCondition||e.cellEditableCondition,e.enableCellEditOnFocus=void 0!==e.enableCellEditOnFocus&&e.enableCellEditOnFocus},editColumnBuilder:function(t,r,i){var o=[];return t.enableCellEdit=void 0===t.enableCellEdit?void 0===i.enableCellEdit?"object"!==t.type:i.enableCellEdit:t.enableCellEdit,t.cellEditableCondition=void 0===t.cellEditableCondition?i.cellEditableCondition:t.cellEditableCondition,t.enableCellEdit&&(t.editableCellTemplate=t.editableCellTemplate||i.editableCellTemplate||"ui-grid/cellEditor",o.push(n.getTemplate(t.editableCellTemplate).then(function(e){r.editableCellTemplate=e},function(e){throw new Error("Couldn't fetch/use colDef.editableCellTemplate '"+t.editableCellTemplate+"'")}))),t.enableCellEditOnFocus=void 0===t.enableCellEditOnFocus?i.enableCellEditOnFocus:t.enableCellEditOnFocus,e.all(o)},isStartEditKey:function(e){return!(e.metaKey||e.keyCode===t.keymap.ESC||e.keyCode===t.keymap.SHIFT||e.keyCode===t.keymap.CTRL||e.keyCode===t.keymap.ALT||e.keyCode===t.keymap.WIN||e.keyCode===t.keymap.CAPSLOCK||e.keyCode===t.keymap.LEFT||e.keyCode===t.keymap.TAB&&e.shiftKey||e.keyCode===t.keymap.RIGHT||e.keyCode===t.keymap.TAB||e.keyCode===t.keymap.UP||e.keyCode===t.keymap.ENTER&&e.shiftKey||e.keyCode===t.keymap.DOWN||e.keyCode===t.keymap.ENTER)}};return r}]), e.directive("uiGridEdit",["gridUtil","uiGridEditService",function(e,t){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,r,i){t.initializeGrid(i.grid)},post:function(e,t,n,r){}}}}}]),e.directive("uiGridViewport",["uiGridEditConstants",function(e){return{replace:!0,priority:-99998,require:["^uiGrid","^uiGridRenderContainer"],scope:!1,compile:function(){return{post:function(t,n,r,i){var o=i[0];if(o.grid.api.edit&&o.grid.api.cellNav){"body"===i[1].containerId&&(t.$on(e.events.CANCEL_CELL_EDIT,function(){o.focus()}),t.$on(e.events.END_CELL_EDIT,function(){o.focus()}))}}}}}}]),e.directive("uiGridCell",["$compile","$injector","$timeout","uiGridConstants","uiGridEditConstants","gridUtil","$parse","uiGridEditService","$rootScope","$q",function(e,t,n,r,i,o,a,s,l,u){var c=500;if(t.has("uiGridCellNavService")){t.get("uiGridCellNavService")}return{priority:-100,restrict:"A",scope:!1,require:"?^uiGrid",link:function(t,d,p,f){function h(){d.on("dblclick",w),d.on("touchstart",g),f&&f.grid.api.cellNav&&(O=f.grid.api.cellNav.on.viewPortKeyDown(t,function(e,n){null!==n&&(n.row!==t.row||n.col!==t.col||t.col.colDef.enableCellEditOnFocus||y(e))}),M=f.grid.api.cellNav.on.navigate(t,function(e,r,i){t.col.colDef.enableCellEditOnFocus&&(e.row!==t.row||e.col!==t.col||i&&(!i||"click"!==i.type&&"keydown"!==i.type)||n(function(){w(i)}))})),t.beginEditEventsWired=!0}function g(e){void 0!==e.originalEvent&&void 0!==e.originalEvent&&(e=e.originalEvent),d.on("touchend",m),_=n(function(){},c),_.then(function(){setTimeout(w,0),d.off("touchend",m)})}function m(e){n.cancel(_),d.off("touchend",m)}function v(){d.off("dblclick",w),d.off("keydown",y),d.off("touchstart",g),M(),O(),t.beginEditEventsWired=!1}function y(e){s.isStartEditKey(e)&&w(e)}function b(e,n,r){return!n.isSaving&&(angular.isFunction(e.colDef.cellEditableCondition)?e.colDef.cellEditableCondition(t,r):e.colDef.cellEditableCondition)}function w(e){t.grid.api.core.scrollToIfNecessary(t.row,t.col).then(function(){x(e)})}function x(s){if(!D&&b(t.col,t.row,s)){var c=t.row.getQualifiedColField(t.col);t.col.colDef.editModelField&&(c=o.preEval("row.entity."+t.col.colDef.editModelField)),k=a(c),T=k(t),E=t.col.editableCellTemplate,E=E.replace(r.MODEL_COL_FIELD,c),E=E.replace(r.COL_FIELD,"grid.getCellValue(row, col)");var p=t.col.colDef.editDropdownFilter?"|"+t.col.colDef.editDropdownFilter:"";E=E.replace(r.CUSTOM_FILTERS,p);var f="text";switch(t.col.colDef.type){case"boolean":f="checkbox";break;case"number":f="number";break;case"date":f="date"}E=E.replace("INPUT_TYPE",f);var h=t.col.colDef.editDropdownOptionsFunction;if(h)u.when(h(t.row.entity,t.col.colDef)).then(function(e){t.editDropdownOptionsArray=e});else{var g=t.col.colDef.editDropdownRowEntityOptionsArrayPath;t.editDropdownOptionsArray=g?$(t.row.entity,g):t.col.colDef.editDropdownOptionsArray}t.editDropdownIdLabel=t.col.colDef.editDropdownIdLabel?t.col.colDef.editDropdownIdLabel:"id",t.editDropdownValueLabel=t.col.colDef.editDropdownValueLabel?t.col.colDef.editDropdownValueLabel:"value";var m=function(){D=!0,v();var n=angular.element(E);d.append(n),A=t.$new(),e(n)(A),angular.element(d.children()[0]).addClass("ui-grid-cell-contents-hidden")};l.$$phase?m():t.$apply(m);var y=t.col.grid.api.core.on.scrollBegin(t,function(){t.grid.disableScrolling||(C(),t.grid.api.edit.raise.afterCellEdit(t.row.entity,t.col.colDef,k(t),T),y(),w(),x())}),w=t.$on(i.events.END_CELL_EDIT,function(){C(),t.grid.api.edit.raise.afterCellEdit(t.row.entity,t.col.colDef,k(t),T),w(),y(),x()}),x=t.$on(i.events.CANCEL_CELL_EDIT,function(){S(),x(),y(),w()});t.$broadcast(i.events.BEGIN_CELL_EDIT,s),n(function(){t.grid.api.edit.raise.beginCellEdit(t.row.entity,t.col.colDef,s)})}}function C(){if(t.grid.disableScrolling=!1,D){f&&f.grid.api.cellNav&&f.focus();var e=angular.element(d.children()[0]);A.$destroy();for(var n=d.children(),i=1;i0&&(c.$setViewValue(String.fromCharCode(n),e),c.$render())}a()});o.on("mousedown",function(t){"checkbox"===o[0].type&&(o.off("blur",e.stopEdit),r(function(){o[0].focus(),o.on("blur",e.stopEdit)}))}),o.on("blur",e.stopEdit)}),e.deepEdit=!1,e.stopEdit=function(t){e.inputForm&&!e.inputForm.$valid?(t.stopPropagation(),e.$emit(n.events.CANCEL_CELL_EDIT)):e.$emit(n.events.END_CELL_EDIT),e.deepEdit=!1},o.on("click",function(t){"checkbox"!==o[0].type&&(e.deepEdit=!0,e.$applyAsync(function(){e.grid.disableScrolling=!0}))}),o.on("keydown",function(r){switch(r.keyCode){case t.keymap.ESC:r.stopPropagation(),e.$emit(n.events.CANCEL_CELL_EDIT)}if(!e.deepEdit||r.keyCode!==t.keymap.LEFT&&r.keyCode!==t.keymap.RIGHT&&r.keyCode!==t.keymap.UP&&r.keyCode!==t.keymap.DOWN)if(l&&l.grid.api.cellNav)r.uiGridTargetRenderContainerId=u.containerId,null!==l.cellNav.handleKeyDown(r)&&e.stopEdit(r);else switch(r.keyCode){case t.keymap.ENTER:case t.keymap.TAB:r.stopPropagation(),r.preventDefault(),e.stopEdit(r)}else r.stopPropagation();return!0}),e.$on("$destroy",function(){o.off()})}}}}}]),e.directive("uiGridEditor",["$filter",function(e){function t(e){if(void 0===e||""===e)return null;var t=e.split("-");if(3!==t.length)return null;var n=parseInt(t[0],10),r=parseInt(t[1],10),i=parseInt(t[2],10);return r<1||n<1||i<1?null:new Date(n,r-1,i)}return{priority:-100,require:"?ngModel",link:function(n,r,i,o){2===angular.version.minor&&i.type&&"date"===i.type&&o&&(o.$formatters.push(function(t){return o.$setValidity(null,!t||!isNaN(t.getTime())),e("date")(t,"yyyy-MM-dd")}),o.$parsers.push(function(e){if(e&&e.length>0){var n=t(e);return o.$setValidity(null,n&&!isNaN(n.getTime())),n}return o.$setValidity(null,!0),null}))}}}]),e.directive("uiGridEditDropdown",["uiGridConstants","uiGridEditConstants","$timeout",function(e,t,n){return{require:["?^uiGrid","?^uiGridRenderContainer"],scope:!0,compile:function(){return{pre:function(e,t,n){},post:function(r,i,o,a){var s=a[0],l=a[1];r.$on(t.events.BEGIN_CELL_EDIT,function(){n(function(){i[0].focus()}),i[0].style.width=i[0].parentElement.offsetWidth-1+"px",i.on("blur",function(e){r.stopEdit(e)})}),r.stopEdit=function(e){r.$emit(t.events.END_CELL_EDIT)},i.on("keydown",function(n){switch(n.keyCode){case e.keymap.ESC:n.stopPropagation(),r.$emit(t.events.CANCEL_CELL_EDIT)}if(s&&s.grid.api.cellNav)n.uiGridTargetRenderContainerId=l.containerId,null!==s.cellNav.handleKeyDown(n)&&r.stopEdit(n);else switch(n.keyCode){case e.keymap.ENTER:case e.keymap.TAB:n.stopPropagation(),n.preventDefault(),r.stopEdit(n)}return!0}),r.$on("$destroy",function(){i.off()})}}}}}]),e.directive("uiGridEditFileChooser",["gridUtil","uiGridConstants","uiGridEditConstants","$timeout",function(e,t,n,r){return{scope:!0,require:["?^uiGrid","?^uiGridRenderContainer"],compile:function(){return{pre:function(e,t,n){},post:function(t,r,i,o){function a(r){var i=r.srcElement||r.target;i&&i.files&&i.files.length>0?("function"==typeof t.col.colDef.editFileChooserCallback?t.col.colDef.editFileChooserCallback(t.row,t.col,i.files):e.logError("You need to set colDef.editFileChooserCallback to use the file chooser"),i.form.reset(),t.$emit(n.events.END_CELL_EDIT)):t.$emit(n.events.CANCEL_CELL_EDIT)}r[0].addEventListener("change",a,!1),t.$on(n.events.BEGIN_CELL_EDIT,function(){r[0].focus(),r[0].select(),r.on("blur",function(e){t.$emit(n.events.END_CELL_EDIT)})}),t.$on("$destroy",function(){r.off(),r[0].removeEventListener("change",a,!1)})}}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.emptyBaseLayer",["ui.grid"]);e.service("uiGridBaseLayerService",["gridUtil","$compile",function(e,t){return{initializeGrid:function(e,t){e.baseLayer={emptyRows:[]},!1!==e.options.enableEmptyGridBaseLayer&&(e.options.enableEmptyGridBaseLayer=!t)},setNumberOfEmptyRows:function(e,t){var n=t.options.rowHeight,r=Math.ceil(e/n);if(r>0){t.baseLayer.emptyRows=[];for(var i=0;i0},order:e.options.exporterMenuItemOrder+2},{title:o.getSafeText("gridMenu.exporterAllAsPdf"),action:function(n){e.api.exporter.pdfExport(t.ALL,t.ALL)},shown:function(){return e.options.exporterMenuPdf&&e.options.exporterMenuAllData},order:e.options.exporterMenuItemOrder+3},{title:o.getSafeText("gridMenu.exporterVisibleAsPdf"),action:function(n){e.api.exporter.pdfExport(t.VISIBLE,t.VISIBLE)},shown:function(){return e.options.exporterMenuPdf&&e.options.exporterMenuVisibleData},order:e.options.exporterMenuItemOrder+4},{title:o.getSafeText("gridMenu.exporterSelectedAsPdf"),action:function(n){e.api.exporter.pdfExport(t.SELECTED,t.VISIBLE)},shown:function(){return e.options.exporterMenuPdf&&e.options.exporterMenuSelectedData&&e.api.selection&&e.api.selection.getSelectedRows().length>0},order:e.options.exporterMenuItemOrder+5},{title:o.getSafeText("gridMenu.exporterAllAsExcel"),action:function(n){e.api.exporter.excelExport(t.ALL,t.ALL)},shown:function(){return e.options.exporterMenuExcel&&e.options.exporterMenuAllData},order:e.options.exporterMenuItemOrder+6},{title:o.getSafeText("gridMenu.exporterVisibleAsExcel"),action:function(n){e.api.exporter.excelExport(t.VISIBLE,t.VISIBLE)},shown:function(){return e.options.exporterMenuExcel&&e.options.exporterMenuVisibleData},order:e.options.exporterMenuItemOrder+7},{title:o.getSafeText("gridMenu.exporterSelectedAsExcel"),action:function(n){e.api.exporter.excelExport(t.SELECTED,t.VISIBLE)},shown:function(){return e.options.exporterMenuExcel&&e.options.exporterMenuSelectedData&&e.api.selection&&e.api.selection.getSelectedRows().length>0},order:e.options.exporterMenuItemOrder+8}])},csvExport:function(e,t,n){var r=this;this.loadAllDataIfNeeded(e,t,n).then(function(){var i=e.options.showHeader?r.getColumnHeaders(e,n):[],o=r.getData(e,t,n),a=r.formatAsCsv(i,o,e.options.exporterCsvColumnSeparator);r.downloadFile(e.options.exporterCsvFilename,a,e.options.exporterCsvColumnSeparator,e.options.exporterOlderExcelCompatibility,e.options.exporterIsExcelCompatible)})},loadAllDataIfNeeded:function(n,r,i){if(r===t.ALL&&n.rows.length!==n.options.totalItems&&n.options.exporterAllDataFn)return n.options.exporterAllDataFn().then(function(e){n.modifyRows(e)});var o=e.defer();return o.resolve(),o.promise},getColumnHeaders:function(e,n){var r,i=[];if(n===t.ALL)r=e.columns;else{var o=e.renderContainers.left?e.renderContainers.left.visibleColumnCache.filter(function(e){return e.visible}):[],a=e.renderContainers.body?e.renderContainers.body.visibleColumnCache.filter(function(e){return e.visible}):[],s=e.renderContainers.right?e.renderContainers.right.visibleColumnCache.filter(function(e){return e.visible}):[];r=o.concat(a,s)}return r.forEach(function(t,n){if(!0!==t.colDef.exporterSuppressExport&&"$$hashKey"!==t.field&&-1===e.options.exporterSuppressColumns.indexOf(t.name)){var r={name:t.field,displayName:e.options.exporterHeaderFilter?e.options.exporterHeaderFilterUseName?e.options.exporterHeaderFilter(t.name):e.options.exporterHeaderFilter(t.displayName):t.displayName,width:t.drawnWidth?t.drawnWidth:t.width,align:t.colDef.align?t.colDef.align:"number"===t.colDef.type?"right":"left"};i.push(r)}}),i},getRowsFromNode:function(e){for(var t=[],n=0;n0?r.formatRowAsCsv(this,n)(i)+"\n":"";return o+=t.map(this.formatRowAsCsv(this,n)).join("\n")},formatRowAsCsv:function(e,t){return function(n){return n.map(e.formatFieldAsCsv).join(t)}},formatFieldAsCsv:function(e){return null==e.value?"":"number"==typeof e.value?e.value:"boolean"==typeof e.value?e.value?"TRUE":"FALSE":"string"==typeof e.value?'"'+e.value.replace(/"/g,'""')+'"':JSON.stringify(e.value)},isIE:function(){var e=navigator.userAgent.search(/(?:Edge|MSIE|Trident\/.*; rv:)/),t=!1;return-1!==e&&(t=!0),t},downloadFile:function(e,t,n,r,i){var o,a=document,s=a.createElement("a"),l="application/octet-stream;charset=utf-8",u=this.isIE();if(i&&(t="sep="+n+"\r\n"+t),navigator.msSaveBlob)return navigator.msSaveOrOpenBlob(new Blob([r?"\ufeff":"",t],{type:l}),e);if(u){var c=a.createElement("iframe");return document.body.appendChild(c),c.contentWindow.document.open("text/html","replace"),c.contentWindow.document.write(t),c.contentWindow.document.close(),c.contentWindow.focus(),c.contentWindow.document.execCommand("SaveAs",!0,e),document.body.removeChild(c),!0}if("download"in s){var d=new Blob([r?"\ufeff":"",t],{type:l});o=URL.createObjectURL(d),s.setAttribute("download",e)}else o="data:"+l+","+encodeURIComponent(t),s.setAttribute("target","_blank");s.href=o,s.setAttribute("style","display:none;"),a.body.appendChild(s),setTimeout(function(){if(s.click)s.click();else if(document.createEvent){var e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),s.dispatchEvent(e)}a.body.removeChild(s)},this.delay)},pdfExport:function(e,t,n){var r=this;this.loadAllDataIfNeeded(e,t,n).then(function(){var i=r.getColumnHeaders(e,n),o=r.getData(e,t,n),a=r.prepareAsPdf(e,i,o);r.isIE()||-1!==navigator.appVersion.indexOf("Edge")?r.downloadPDF(e.options.exporterPdfFilename,a):pdfMake.createPdf(a).open()})},downloadPDF:function(e,t){var n,r=document;r.createElement("a");n=this.isIE();var i,o=pdfMake.createPdf(t);o.getBuffer(function(t){if(i=new Blob([t]),navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(n){var o=r.createElement("iframe");return document.body.appendChild(o),o.contentWindow.document.open("text/html","replace"),o.contentWindow.document.write(i),o.contentWindow.document.close(),o.contentWindow.focus(),o.contentWindow.document.execCommand("SaveAs",!0,e),document.body.removeChild(o),!0}})},prepareAsPdf:function(e,t,n){var r=this.calculatePdfHeaderWidths(e,t),i=t.map(function(e){return{text:e.displayName,style:"tableHeader"}}),o=n.map(this.formatRowAsPdf(this)),a=[i].concat(o),s={pageOrientation:e.options.exporterPdfOrientation,pageSize:e.options.exporterPdfPageSize,content:[{style:"tableStyle",table:{headerRows:1,widths:r,body:a}}],styles:{tableStyle:e.options.exporterPdfTableStyle,tableHeader:e.options.exporterPdfTableHeaderStyle},defaultStyle:e.options.exporterPdfDefaultStyle};return e.options.exporterPdfLayout&&(s.layout=e.options.exporterPdfLayout),e.options.exporterPdfHeader&&(s.header=e.options.exporterPdfHeader),e.options.exporterPdfFooter&&(s.footer=e.options.exporterPdfFooter),e.options.exporterPdfCustomFormatter&&(s=e.options.exporterPdfCustomFormatter(s)),s},calculatePdfHeaderWidths:function(e,t){var n=0;t.forEach(function(e){"number"==typeof e.width&&(n+=e.width)});var r=0;t.forEach(function(e){if("*"===e.width&&(r+=100),"string"==typeof e.width&&e.width.match(/(\d)*%/)){var t=parseInt(e.width.match(/(\d)*%/)[0]);e.width=n*t/100,r+=e.width}});var i=n+r;return t.map(function(t){return"*"===t.width?t.width:t.width*e.options.exporterPdfMaxGridWidth/i})},formatRowAsPdf:function(e){return function(t){return t.map(e.formatFieldAsPdfString)}},formatFieldAsPdfString:function(e){var t;return t=null==e.value?"":"number"==typeof e.value?e.value.toString():"boolean"==typeof e.value?e.value?"TRUE":"FALSE":"string"==typeof e.value?e.value.replace(/"/g,'""'):e.value instanceof Date?JSON.stringify(e.value).replace(/^"/,"").replace(/"$/,""):"object"==typeof e.value?e.value:JSON.stringify(e.value).replace(/^"/,"").replace(/"$/,""),e.alignment&&"string"==typeof e.alignment&&(t={text:t,alignment:e.alignment}),t},formatAsExcel:function(e,t,n,r,i){for(var o=e.map(function(e){return{value:e.displayName}}),a=[],s=[],l=0;l-1&&(r.treeAggregationFn=l.nativeAggregations()[t.aggregation.COUNT].aggregationFn,r.treeAggregationFinalizerFn=u.groupedFinalizerFn)):void 0===r.grouping&&(r.grouping={}),void 0!==r.grouping&&void 0!==r.grouping.groupPriority&&r.grouping.groupPriority>=0&&(r.suppressRemoveSort=!0);var o={name:"ui.grid.grouping.group",title:a.get().grouping.group,icon:"ui-grid-icon-indent-right",shown:function(){return void 0===this.context.col.grouping||void 0===this.context.col.grouping.groupPriority||this.context.col.grouping.groupPriority<0},action:function(){u.groupColumn(this.context.col.grid,this.context.col)}},s={name:"ui.grid.grouping.ungroup",title:a.get().grouping.ungroup,icon:"ui-grid-icon-indent-left",shown:function(){return void 0!==this.context.col.grouping&&void 0!==this.context.col.grouping.groupPriority&&this.context.col.grouping.groupPriority>=0},action:function(){u.ungroupColumn(this.context.col.grid,this.context.col)}},c={name:"ui.grid.grouping.aggregateRemove",title:a.get().grouping.aggregate_remove,shown:function(){return void 0!==this.context.col.treeAggregationFn},action:function(){u.aggregateColumn(this.context.col.grid,this.context.col,null)}},d=function(e,t){t=t||a.get().grouping["aggregate_"+e]||e;var i={name:"ui.grid.grouping.aggregate"+e,title:t,shown:function(){return void 0===this.context.col.treeAggregation||void 0===this.context.col.treeAggregation.type||this.context.col.treeAggregation.type!==e},action:function(){u.aggregateColumn(this.context.col.grid,this.context.col,e)}};n.arrayContainsObjectWithProperty(r.menuItems,"name","ui.grid.grouping.aggregate"+e)||r.menuItems.push(i)};!1!==r.colDef.groupingShowGroupingMenu&&(n.arrayContainsObjectWithProperty(r.menuItems,"name","ui.grid.grouping.group")||r.menuItems.push(o),n.arrayContainsObjectWithProperty(r.menuItems,"name","ui.grid.grouping.ungroup")||r.menuItems.push(s)),!1!==r.colDef.groupingShowAggregationMenu&&(angular.forEach(l.nativeAggregations(),function(e,t){d(t)}),angular.forEach(i.treeCustomAggregations,function(e,t){d(t,e.menuTitle)}),n.arrayContainsObjectWithProperty(r.menuItems,"name","ui.grid.grouping.aggregateRemove")||r.menuItems.push(c))}},groupingColumnProcessor:function(e,t){return e=u.moveGroupColumns(this,e,t)},groupedFinalizerFn:function(e){var t=this;void 0!==e.groupVal?(e.rendered=e.groupVal,t.grid.options.groupingShowCounts&&"date"!==t.colDef.type&&"object"!==t.colDef.type&&(e.rendered+=" ("+e.value+")")):e.rendered=null},moveGroupColumns:function(e,t,n){return!1===e.options.moveGroupColumns?t:(t.forEach(function(e,t){e.groupingPosition=t}),t.sort(function(e,t){var n,r;return n=e.isRowHeader?e.headerPriority:void 0===e.grouping||void 0===e.grouping.groupPriority||e.grouping.groupPriority<0?null:e.grouping.groupPriority,r=t.isRowHeader?t.headerPriority:void 0===t.grouping||void 0===t.grouping.groupPriority||t.grouping.groupPriority<0?null:t.grouping.groupPriority,null!==n&&null===r?-1:null!==r&&null===n?1:null!==n&&null!==r?n-r:e.groupingPosition-t.groupingPosition}),t.forEach(function(e,t){delete e.groupingPosition}),t)},groupColumn:function(e,n){void 0===n.grouping&&(n.grouping={});var r=u.getGrouping(e);n.grouping.groupPriority=r.grouping.length,n.previousSort=angular.copy(n.sort),n.sort?void 0!==n.sort.direction&&null!==n.sort.direction||(n.sort.direction=s.ASC):n.sort={direction:s.ASC},n.treeAggregation={type:t.aggregation.COUNT,source:"grouping"},n.treeAggregationFn=l.nativeAggregations()[t.aggregation.COUNT].aggregationFn,n.treeAggregationFinalizerFn=u.groupedFinalizerFn,e.api.grouping.raise.groupingChanged(n),e.api.core.raise.sortChanged(e,e.getColumnSorting()),e.queueGridRefresh()},ungroupColumn:function(e,t){void 0!==t.grouping&&(delete t.grouping.groupPriority,delete t.treeAggregation,delete t.customTreeAggregationFinalizer,t.previousSort&&(t.sort=t.previousSort,delete t.previousSort),u.tidyPriorities(e),e.api.grouping.raise.groupingChanged(t),e.api.core.raise.sortChanged(e,e.getColumnSorting()),e.queueGridRefresh())},aggregateColumn:function(e,t,n){void 0!==t.grouping&&void 0!==t.grouping.groupPriority&&t.grouping.groupPriority>=0&&u.ungroupColumn(e,t);var r={};void 0!==e.options.treeCustomAggregations[n]?r=e.options.treeCustomAggregations[n]:void 0!==l.nativeAggregations()[n]&&(r=l.nativeAggregations()[n]),t.treeAggregation={type:n,label:a.get().aggregation[r.label]||r.label},t.treeAggregationFn=r.aggregationFn,t.treeAggregationFinalizerFn=r.finalizerFn,e.api.grouping.raise.aggregationChanged(t),e.queueGridRefresh()},setGrouping:function(e,t){void 0!==t&&(u.clearGrouping(e),t.grouping&&t.grouping.length&&t.grouping.length>0&&t.grouping.forEach(function(t){var n=e.getColumn(t.colName);n&&u.groupColumn(e,n)}),t.aggregations&&t.aggregations.length&&t.aggregations.forEach(function(t){var n=e.getColumn(t.colName);n&&u.aggregateColumn(e,n,t.aggregation.type)}),t.rowExpandedStates&&u.applyRowExpandedStates(e.grouping.groupingHeaderCache,t.rowExpandedStates))},clearGrouping:function(e){var t=u.getGrouping(e);t.grouping.length>0&&t.grouping.forEach(function(t){t.col||(t.col=e.getColumn(t.colName)),u.ungroupColumn(e,t.col)}),t.aggregations.length>0&&t.aggregations.forEach(function(t){t.col||(t.col=e.getColumn(t.colName)),u.aggregateColumn(e,t.col,null)})},tidyPriorities:function(e){void 0!==e&&void 0===e.grid||void 0===this.grid||(e=this.grid);var t=[],n=[];e.columns.forEach(function(e,r){void 0!==e.grouping&&void 0!==e.grouping.groupPriority&&e.grouping.groupPriority>=0?t.push(e):void 0!==e.sort&&void 0!==e.sort.priority&&e.sort.priority>=0&&n.push(e)}),t.sort(function(e,t){return e.grouping.groupPriority-t.grouping.groupPriority}),t.forEach(function(e,t){e.grouping.groupPriority=t,e.suppressRemoveSort=!0,void 0===e.sort&&(e.sort={}),e.sort.priority=t});var r=t.length;n.sort(function(e,t){return e.sort.priority-t.sort.priority}),n.forEach(function(e,t){e.sort.priority=r,e.suppressRemoveSort=e.colDef.suppressRemoveSort,r++})},groupRows:function(e){if(0===e.length)return e;var t=this;t.grouping.oldGroupingHeaderCache=t.grouping.groupingHeaderCache||{},t.grouping.groupingHeaderCache={};for(var n=u.initialiseProcessingState(t),i=function(i,s){var l=t.getCellValue(a,i.col);i.initialised&&0===r.getSortFn(t,i.col,e)(l,i.currentValue)||(u.insertGroupHeader(t,e,o,n,s),o++)},o=0;o=0&&t.push({field:e.field,col:e,groupPriority:e.grouping.groupPriority,grouping:e.grouping}),e.treeAggregation&&e.treeAggregation.type&&n.push({field:e.field,col:e,aggregation:e.treeAggregation})}),t.sort(function(e,t){return e.groupPriority-t.groupPriority}),t.forEach(function(e,t){e.grouping.groupPriority=t,e.groupPriority=t,delete e.grouping}),{grouping:t,aggregations:n}},insertGroupHeader:function(e,t,n,r,a){var s=(r[a].fieldName,r[a].col),l=e.getCellValue(t[n],s),c=l;void 0!==l&&null!==l||(c=e.options.groupingNullLabel);for(var d=function(e){return angular.isObject(e)?JSON.stringify(e):e},p=e.grouping.oldGroupingHeaderCache,f=0;f 1 or < 1 file choosers within the menu item, error, cannot continue"):l[0].addEventListener("change",a,!1)}}}])}(),function(){"use strict";var e=angular.module("ui.grid.infiniteScroll",["ui.grid"]);e.service("uiGridInfiniteScrollService",["gridUtil","$compile","$rootScope","uiGridConstants","ScrollEvent","$q",function(e,t,n,r,i,o){var a={initializeGrid:function(e,t){if(a.defaultGridOptions(e.options),e.options.enableInfiniteScroll){e.infiniteScroll={dataLoading:!1},a.setScrollDirections(e,e.options.infiniteScrollUp,e.options.infiniteScrollDown),e.api.core.on.scrollEnd(t,a.handleScroll);var n={events:{infiniteScroll:{needLoadMoreData:function(e,t){},needLoadMoreDataTop:function(e,t){}}},methods:{infiniteScroll:{dataLoaded:function(t,n){return a.setScrollDirections(e,t,n),a.adjustScroll(e).then(function(){e.infiniteScroll.dataLoading=!1})},resetScroll:function(t,n){a.setScrollDirections(e,t,n),a.adjustInfiniteScrollPosition(e,0)},saveScrollPercentage:function(){e.infiniteScroll.prevScrollTop=e.renderContainers.body.prevScrollTop,e.infiniteScroll.previousVisibleRows=e.getVisibleRowCount()},dataRemovedTop:function(t,n){a.dataRemovedTop(e,t,n)},dataRemovedBottom:function(t,n){a.dataRemovedBottom(e,t,n)},setScrollDirections:function(t,n){a.setScrollDirections(e,t,n)}}}};e.api.registerEventsFromObject(n.events),e.api.registerMethodsFromObject(n.methods)}},defaultGridOptions:function(e){e.enableInfiniteScroll=!1!==e.enableInfiniteScroll,e.infiniteScrollRowsFromEnd=e.infiniteScrollRowsFromEnd||20,e.infiniteScrollUp=!0===e.infiniteScrollUp,e.infiniteScrollDown=!1!==e.infiniteScrollDown},setScrollDirections:function(e,t,n){e.infiniteScroll.scrollUp=!0===t,e.suppressParentScrollUp=!0===t,e.infiniteScroll.scrollDown=!1!==n,e.suppressParentScrollDown=!1!==n},handleScroll:function(e){if(!(e.grid.infiniteScroll&&e.grid.infiniteScroll.dataLoading||"ui.grid.adjustInfiniteScrollPosition"===e.source)&&e.y)if(0===e.y.percentage)e.grid.scrollDirection=r.scrollDirection.UP,a.loadData(e.grid);else if(1===e.y.percentage)e.grid.scrollDirection=r.scrollDirection.DOWN,a.loadData(e.grid);else{var t=e.grid.options.infiniteScrollRowsFromEnd/e.grid.renderContainers.body.visibleRowCache.length;e.grid.scrollDirection===r.scrollDirection.UP?e.y.percentage<=t&&a.loadData(e.grid):e.grid.scrollDirection===r.scrollDirection.DOWN&&1-e.y.percentage<=t&&a.loadData(e.grid)}},loadData:function(e){e.infiniteScroll.previousVisibleRows=e.renderContainers.body.visibleRowCache.length,e.infiniteScroll.direction=e.scrollDirection,delete e.infiniteScroll.prevScrollTop,e.scrollDirection===r.scrollDirection.UP&&e.infiniteScroll.scrollUp?(e.infiniteScroll.dataLoading=!0,e.api.infiniteScroll.raise.needLoadMoreDataTop()):e.scrollDirection===r.scrollDirection.DOWN&&e.infiniteScroll.scrollDown&&(e.infiniteScroll.dataLoading=!0,e.api.infiniteScroll.raise.needLoadMoreData())},adjustScroll:function(e){var t=o.defer();return n.$applyAsync(function(){var i,o,s,l,u;i=e.getViewportHeight()+e.headerHeight-e.renderContainers.body.headerHeight-e.scrollbarHeight,o=e.options.rowHeight,void 0===e.infiniteScroll.direction&&a.adjustInfiniteScrollPosition(e,0),s=e.getVisibleRowCount();var c=o*s;e.infiniteScroll.scrollDown&&i>c&&e.api.infiniteScroll.raise.needLoadMoreData(),e.infiniteScroll.direction===r.scrollDirection.UP&&(l=e.infiniteScroll.prevScrollTop||0,u=l+(s-e.infiniteScroll.previousVisibleRows)*o,a.adjustInfiniteScrollPosition(e,u),n.$applyAsync(function(){t.resolve()})),e.infiniteScroll.direction===r.scrollDirection.DOWN&&(u=e.infiniteScroll.prevScrollTop||e.infiniteScroll.previousVisibleRows*o-i,a.adjustInfiniteScrollPosition(e,u),n.$applyAsync(function(){t.resolve()}))},0),t.promise},adjustInfiniteScrollPosition:function(e,t){var n=new i(e,null,null,"ui.grid.adjustInfiniteScrollPosition"),r=e.getVisibleRowCount(),o=e.getViewportHeight()+e.headerHeight-e.renderContainers.body.headerHeight-e.scrollbarHeight,a=e.options.rowHeight,s=r*a-o;0===t&&e.infiniteScroll.scrollUp?n.y={percentage:1/s}:n.y={percentage:t/s},e.scrollContainers("",n)},dataRemovedTop:function(e,t,n){var r,i,o,s;a.setScrollDirections(e,t,n),r=e.renderContainers.body.visibleRowCache.length,i=e.infiniteScroll.prevScrollTop,s=e.options.rowHeight,o=i-(e.infiniteScroll.previousVisibleRows-r)*s,a.adjustInfiniteScrollPosition(e,o)},dataRemovedBottom:function(e,t,n){var r;a.setScrollDirections(e,t,n),r=e.infiniteScroll.prevScrollTop,a.adjustInfiniteScrollPosition(e,r)}};return a}]),e.directive("uiGridInfiniteScroll",["uiGridInfiniteScrollService",function(e){return{priority:-200,scope:!1,require:"^uiGrid",compile:function(t,n,r){return{pre:function(t,n,r,i){e.initializeGrid(i.grid,t)},post:function(e,t,n){}}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.moveColumns",["ui.grid"]);e.service("uiGridMoveColumnService",["$q","$rootScope","$log","ScrollEvent","uiGridConstants","gridUtil",function(e,t,n,r,i,o){var a={initializeGrid:function(e){var t=this;this.registerPublicApi(e),this.defaultGridOptions(e.options),e.moveColumns={orderCache:[]},e.registerColumnBuilder(t.movableColumnBuilder),e.registerDataChangeCallback(t.verifyColumnOrder,[i.dataChange.COLUMN])},registerPublicApi:function(e){var t=this,n={events:{colMovable:{columnPositionChanged:function(e,t,n){}}},methods:{colMovable:{moveColumn:function(n,r){var i=e.columns;if(!angular.isNumber(n)||!angular.isNumber(r))return void o.logError("MoveColumn: Please provide valid values for originalPosition and finalPosition");for(var a=0,s=0;s=i.length-a||r>=i.length-a)return void o.logError("MoveColumn: Invalid values for originalPosition, finalPosition");var l=function(e){for(var t=e,n=0;n<=t;n++)angular.isDefined(i[n])&&(angular.isDefined(i[n].colDef.visible)&&!1===i[n].colDef.visible||!0===i[n].isRowHeader)&&t++;return t};t.redrawColumnAtPosition(e,l(n),l(r))}}}};e.api.registerEventsFromObject(n.events),e.api.registerMethodsFromObject(n.methods)},defaultGridOptions:function(e){e.enableColumnMoving=!1!==e.enableColumnMoving},movableColumnBuilder:function(t,n,r){var i=[];return t.enableColumnMoving=void 0===t.enableColumnMoving?r.enableColumnMoving:t.enableColumnMoving,e.all(i)},updateColumnCache:function(e){e.moveColumns.orderCache=e.getOnlyDataColumns()},verifyColumnOrder:function(e){var t,n=e.rowHeaderColumns.length;angular.forEach(e.moveColumns.orderCache,function(r,i){if(-1!==(t=e.columns.indexOf(r))&&t-n!==i){var o=e.columns.splice(t,1)[0];e.columns.splice(i+n,0,o)}})},redrawColumnAtPosition:function(e,n,r){var o=e.columns;if(n!==r){var s=nMath.max(s,r))){var u=o[n];if(u.colDef.enableColumnMoving){if(n>r)for(var c=n;c>r;c--)o[c]=o[c-1];else if(r>n)for(var d=n;dMath.abs(u)){n.redrawColumnAtPosition(e.grid,i,s-1);break}}else for(s=i-1;s>=0;s--)if((angular.isUndefined(r[s].colDef.visible)||!0===r[s].colDef.visible)&&(l+=r[s].drawnWidth||r[s].width||r[s].colDef.width)>Math.abs(u)){n.redrawColumnAtPosition(e.grid,i,s+1);break}l0){var c,p=0;if(e.grid.isRTL()){for(c=i-1;c>0;c--)if((angular.isUndefined(r[c].colDef.visible)||!0===r[c].colDef.visible)&&(p+=r[c].drawnWidth||r[c].width||r[c].colDef.width)>u){n.redrawColumnAtPosition(e.grid,i,c);break}}else for(c=i+1;cu){n.redrawColumnAtPosition(e.grid,i,c-1);break}pr&&(p=e.col.drawnWidth+(r-i),n.width=p+"px"),d.css(n)},C=function(t){for(var n=e.grid.columns,r=0,i=0;i=s||t>0)&&(h<=c||t<0))d.css({visibility:"visible",left:d[0].offsetLeft+(lMath.ceil(o.grid.gridWidth)){t*=8;var g=new a(e.col.grid,null,null,"uiGridHeaderCell.moveElement");g.x={pixels:t},g.grid.scrollContainers("",g)}for(var m=0,v=0;v0?e.options.paginationCurrentPage=Math.min(e.options.paginationCurrentPage+1,n.methods.pagination.getTotalPages()):e.options.paginationCurrentPage++)},previousPage:function(){e.options.enablePagination&&(e.options.paginationCurrentPage=Math.max(e.options.paginationCurrentPage-1,1))},seek:function(t){if(e.options.enablePagination){if(!angular.isNumber(t)||t<1)throw"Invalid page number: "+t;e.options.paginationCurrentPage=Math.min(t,n.methods.pagination.getTotalPages())}}}}};e.api.registerEventsFromObject(n.events),e.api.registerMethodsFromObject(n.methods);var r=function(t){if(e.options.useExternalPagination||!e.options.enablePagination)return t;var r=parseInt(e.options.paginationPageSize,10),i=parseInt(e.options.paginationCurrentPage,10),o=t.filter(function(e){return e.visible});e.options.totalItems=o.length;var a=n.methods.pagination.getFirstRowIndex(),s=n.methods.pagination.getLastRowIndex();return a>o.length&&(i=e.options.paginationCurrentPage=1,a=(i-1)*r),o.slice(a,s+1)};e.registerRowsProcessor(r,900)},defaultGridOptions:function(t){t.enablePagination=!1!==t.enablePagination,t.enablePaginationControls=!1!==t.enablePaginationControls,t.useExternalPagination=!0===t.useExternalPagination,t.useCustomPagination=!0===t.useCustomPagination,e.isNullOrUndefined(t.totalItems)&&(t.totalItems=0),e.isNullOrUndefined(t.paginationPageSizes)&&(t.paginationPageSizes=[250,500,1e3]),e.isNullOrUndefined(t.paginationPageSize)&&(t.paginationPageSizes.length>0?t.paginationPageSize=t.paginationPageSizes[0]:t.paginationPageSize=0),e.isNullOrUndefined(t.paginationCurrentPage)&&(t.paginationCurrentPage=1),e.isNullOrUndefined(t.paginationTemplate)&&(t.paginationTemplate="ui-grid/pagination")},onPaginationChanged:function(e,t,n){e.api.pagination.raise.paginationChanged(t,n),e.options.useExternalPagination||e.queueGridRefresh()}};return t}]),e.directive("uiGridPagination",["gridUtil","uiGridPaginationService",function(e,t){return{priority:-200,scope:!1,require:"uiGrid",link:{pre:function(n,r,i,o){t.initializeGrid(o.grid),e.getTemplate(o.grid.options.paginationTemplate).then(function(e){var t=angular.element(e);r.append(t),o.innerCompile(t)})}}}}]),e.directive("uiGridPager",["uiGridPaginationService","uiGridConstants","gridUtil","i18nService","i18nConstants",function(e,t,n,r,i){return{priority:-200,scope:!0,require:"^uiGrid",link:function(o,a,s,l){o.aria=r.getSafeText("pagination.aria");var u=function(){o.paginationApi=l.grid.api.pagination,o.sizesLabel=r.getSafeText("pagination.sizes"),o.totalItemsLabel=r.getSafeText("pagination.totalItems"),o.paginationOf=r.getSafeText("pagination.of"),o.paginationThrough=r.getSafeText("pagination.through")};u(),o.$on(i.UPDATE_EVENT,u);var c=l.grid.options;l.grid.renderContainers.body.registerViewportAdjuster(function(e){return c.enablePaginationControls&&(e.height=e.height-n.elementHeight(a,"padding")),e});var d=l.grid.registerDataChangeCallback(function(e){e.options.useExternalPagination||(e.options.totalItems=e.rows.length)},[t.dataChange.ROW]);o.$on("$destroy",d);var p=o.$watch("grid.options.paginationCurrentPage + grid.options.paginationPageSize",function(t,n){if(t!==n&&void 0!==n)return!angular.isNumber(c.paginationCurrentPage)||c.paginationCurrentPage<1?void(c.paginationCurrentPage=1):c.totalItems>0&&c.paginationCurrentPage>o.paginationApi.getTotalPages()?void(c.paginationCurrentPage=o.paginationApi.getTotalPages()):void e.onPaginationChanged(o.grid,c.paginationCurrentPage,c.paginationPageSize)});o.$on("$destroy",function(){p()}),o.cantPageForward=function(){return o.paginationApi.getTotalPages()?o.cantPageToLast():c.data.length<1},o.cantPageToLast=function(){var e=o.paginationApi.getTotalPages();return!e||c.paginationCurrentPage>=e},o.cantPageBackward=function(){return c.paginationCurrentPage<=1};var f=function(e){e&&n.focus.bySelector(a,".ui-grid-pager-control-input")};o.pageFirstPageClick=function(){o.paginationApi.seek(1),f(o.cantPageBackward())},o.pagePreviousPageClick=function(){o.paginationApi.previousPage(),f(o.cantPageBackward())},o.pageNextPageClick=function(){o.paginationApi.nextPage(),f(o.cantPageForward())},o.pageLastPageClick=function(){o.paginationApi.seek(o.paginationApi.getTotalPages()),f(o.cantPageToLast())}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.pinning",["ui.grid"]);e.constant("uiGridPinningConstants",{container:{LEFT:"left",RIGHT:"right",NONE:""}}),e.service("uiGridPinningService",["gridUtil","GridRenderContainer","i18nService","uiGridPinningConstants",function(e,t,n,r){var i={initializeGrid:function(e){i.defaultGridOptions(e.options),e.registerColumnBuilder(i.pinningColumnBuilder);var t={events:{pinning:{columnPinned:function(e,t){}}},methods:{pinning:{pinColumn:function(t,n){i.pinColumn(e,t,n)}}}};e.api.registerEventsFromObject(t.events),e.api.registerMethodsFromObject(t.methods)},defaultGridOptions:function(e){e.enablePinning=!1!==e.enablePinning,e.hidePinLeft=e.enablePinning&&e.hidePinLeft,e.hidePinRight=e.enablePinning&&e.hidePinRight},pinningColumnBuilder:function(t,o,a){if(t.enablePinning=void 0===t.enablePinning?a.enablePinning:t.enablePinning,t.hidePinLeft=void 0===t.hidePinLeft?a.hidePinLeft:t.hidePinLeft,t.hidePinRight=void 0===t.hidePinRight?a.hidePinRight:t.hidePinRight,t.pinnedLeft?(o.renderContainer="left",o.grid.createLeftContainer()):t.pinnedRight&&(o.renderContainer="right",o.grid.createRightContainer()),t.enablePinning){var s={name:"ui.grid.pinning.pinLeft",title:n.get().pinning.pinLeft,icon:"ui-grid-icon-left-open",shown:function(){return void 0===this.context.col.renderContainer||!this.context.col.renderContainer||"left"!==this.context.col.renderContainer},action:function(){i.pinColumn(this.context.col.grid,this.context.col,r.container.LEFT)}},l={name:"ui.grid.pinning.pinRight",title:n.get().pinning.pinRight,icon:"ui-grid-icon-right-open",shown:function(){return void 0===this.context.col.renderContainer||!this.context.col.renderContainer||"right"!==this.context.col.renderContainer},action:function(){i.pinColumn(this.context.col.grid,this.context.col,r.container.RIGHT)}},u={name:"ui.grid.pinning.unpin",title:n.get().pinning.unpin,icon:"ui-grid-icon-cancel",shown:function(){return void 0!==this.context.col.renderContainer&&null!==this.context.col.renderContainer&&"body"!==this.context.col.renderContainer},action:function(){i.pinColumn(this.context.col.grid,this.context.col,r.container.NONE)}};t.hidePinLeft||e.arrayContainsObjectWithProperty(o.menuItems,"name","ui.grid.pinning.pinLeft")||o.menuItems.push(s),t.hidePinRight||e.arrayContainsObjectWithProperty(o.menuItems,"name","ui.grid.pinning.pinRight")||o.menuItems.push(l),e.arrayContainsObjectWithProperty(o.menuItems,"name","ui.grid.pinning.unpin")||o.menuItems.push(u)}},pinColumn:function(e,t,n){n===r.container.NONE?(t.renderContainer=null,t.colDef.pinnedLeft=t.colDef.pinnedRight=!1):(t.renderContainer=n,n===r.container.LEFT?e.createLeftContainer():n===r.container.RIGHT&&e.createRightContainer()),e.refresh().then(function(){e.api.pinning.raise.columnPinned(t.colDef,n)})}};return i}]),e.directive("uiGridPinning",["gridUtil","uiGridPinningService",function(e,t){return{require:"uiGrid",scope:!1,compile:function(){return{pre:function(e,n,r,i){t.initializeGrid(i.grid)},post:function(e,t,n,r){}}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.resizeColumns",["ui.grid"]);e.service("uiGridResizeColumnsService",["gridUtil","$q","$rootScope",function(e,t,n){return{defaultGridOptions:function(e){e.enableColumnResizing=!1!==e.enableColumnResizing,!1===e.enableColumnResize&&(e.enableColumnResizing=!1)},colResizerColumnBuilder:function(e,n,r){var i=[];return e.enableColumnResizing=void 0===e.enableColumnResizing?r.enableColumnResizing:e.enableColumnResizing,!1===e.enableColumnResize&&(e.enableColumnResizing=!1),t.all(i)},registerPublicApi:function(e){var t={events:{colResizable:{columnSizeChanged:function(e,t){}}}};e.api.registerEventsFromObject(t.events)},fireColumnSizeChanged:function(t,r,i){n.$applyAsync(function(){t.api.colResizable?t.api.colResizable.raise.columnSizeChanged(r,i):e.logError("The resizeable api is not registered, this may indicate that you've included the module but not added the 'ui-grid-resize-columns' directive to your grid definition. Cannot raise any events.")})},findTargetCol:function(e,t,n){var r=e.getRenderContainer();if("left"===t){var i=r.visibleColumnCache.indexOf(e);return r.visibleColumnCache[i-1*n]}return e}}}]),e.directive("uiGridResizeColumns",["gridUtil","uiGridResizeColumnsService",function(e,t){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,r,i){t.defaultGridOptions(i.grid.options),i.grid.registerColumnBuilder(t.colResizerColumnBuilder),t.registerPublicApi(i.grid)},post:function(e,t,n,r){}}}}}]),e.directive("uiGridHeaderCell",["gridUtil","$templateCache","$compile","$q","uiGridResizeColumnsService","uiGridConstants",function(e,t,n,r,i,o){return{priority:-10,require:"^uiGrid",compile:function(){return{post:function(e,r,a,s){var l=s.grid;if(l.options.enableColumnResizing){var u=t.get("ui-grid/columnResizer"),c=1;l.isRTL()&&(e.position="left",c=-1);var d=function(){for(var t=r[0].getElementsByClassName("ui-grid-column-resizer"),o=0;o
');return{priority:0,scope:{col:"=",position:"@",renderIndex:"="},require:"?^uiGrid",link:function(o,a,s,l){function u(e){l.grid.refreshCanvas(!0).then(function(){l.grid.queueGridRefresh()})}function c(e,t){var n=t;return e.minWidth&&ne.maxWidth&&(n=e.maxWidth),n}function d(e,t){e.originalEvent&&(e=e.originalEvent),e.preventDefault(),h=(e.targetTouches?e.targetTouches[0]:e).clientX-g,h<0?h=0:h>l.grid.gridWidth&&(h=l.grid.gridWidth);var a=r.findTargetCol(o.col,o.position,m);if(!1!==a.colDef.enableColumnResizing){l.grid.element.hasClass("column-resizing")||l.grid.element.addClass("column-resizing");var s=h-f,u=parseInt(a.drawnWidth+s*m,10);h+=(c(a,u)-u)*m,i.css({left:h+"px"}),l.fireEvent(n.events.ITEM_DRAGGING)}}function p(e,t){e.originalEvent&&(e=e.originalEvent),e.preventDefault(),l.grid.element.removeClass("column-resizing"),i.remove(),h=(e.changedTouches?e.changedTouches[0]:e).clientX-g;var n=h-f;if(0===n)return b(),void y();var a=r.findTargetCol(o.col,o.position,m);if(!1!==a.colDef.enableColumnResizing){var s=parseInt(a.drawnWidth+n*m,10);a.width=c(a,s),a.hasCustomWidth=!0,u(n),r.fireColumnSizeChanged(l.grid,a.colDef,n),b(),y()}}var f=0,h=0,g=0,m=1;l.grid.isRTL()&&(o.position="left",m=-1),"left"===o.position?a.addClass("left"):"right"===o.position&&a.addClass("right");var v=function(t,n){t.originalEvent&&(t=t.originalEvent),t.stopPropagation(),g=l.grid.element[0].getBoundingClientRect().left,f=(t.targetTouches?t.targetTouches[0]:t).clientX-g,l.grid.element.append(i),i.css({left:f}),"touchstart"===t.type?(e.on("touchend",p),e.on("touchmove",d),a.off("mousedown",v)):(e.on("mouseup",p),e.on("mousemove",d),a.off("touchstart",v))},y=function(){a.on("mousedown",v),a.on("touchstart",v)},b=function(){e.off("mouseup",p),e.off("touchend",p),e.off("mousemove",d),e.off("touchmove",d),a.off("mousedown",v),a.off("touchstart",v)};y();var w=function(e,i){e.stopPropagation();var s=r.findTargetCol(o.col,o.position,m);if(!1!==s.colDef.enableColumnResizing){var d=0,p=0,f=t.closestElm(a,".ui-grid-render-container"),h=f.querySelectorAll("."+n.COL_CLASS_PREFIX+s.uid+" .ui-grid-cell-contents");Array.prototype.forEach.call(h,function(e){var n;angular.element(e).parent().hasClass("ui-grid-header-cell")&&(n=angular.element(e).parent()[0].querySelectorAll(".ui-grid-column-menu-button")),t.fakeElement(e,{},function(e){var r=angular.element(e);r.attr("style","float: left");var i=t.elementWidth(r);if(n){i+=t.elementWidth(n)}i>d&&(d=i)})});var g=c(s,d);p=g-s.drawnWidth,s.width=g,s.hasCustomWidth=!0,u(p),r.fireColumnSizeChanged(l.grid,s.colDef,p)}};a.on("dblclick",w),a.on("$destroy",function(){a.off("dblclick",w),b()})}}}])}(),function(){"use strict";var e=angular.module("ui.grid.rowEdit",["ui.grid","ui.grid.edit","ui.grid.cellNav"]);e.constant("uiGridRowEditConstants",{}),e.service("uiGridRowEditService",["$interval","$q","uiGridConstants","uiGridRowEditConstants","gridUtil",function(e,t,n,r,i){var o={initializeGrid:function(e,t){t.rowEdit={};var n={events:{rowEdit:{saveRow:function(e){}}},methods:{rowEdit:{setSavePromise:function(e,n){o.setSavePromise(t,e,n)},getDirtyRows:function(){return t.rowEdit.dirtyRows?t.rowEdit.dirtyRows:[]},getErrorRows:function(){return t.rowEdit.errorRows?t.rowEdit.errorRows:[]},flushDirtyRows:function(){return o.flushDirtyRows(t)},setRowsDirty:function(e){o.setRowsDirty(t,e)},setRowsClean:function(e){o.setRowsClean(t,e)}}}};t.api.registerEventsFromObject(n.events),t.api.registerMethodsFromObject(n.methods),t.api.core.on.renderingComplete(e,function(n){t.api.edit.on.afterCellEdit(e,o.endEditCell),t.api.edit.on.beginCellEdit(e,o.beginEditCell),t.api.edit.on.cancelCellEdit(e,o.cancelEditCell),t.api.cellNav&&t.api.cellNav.on.navigate(e,o.navigate)})},defaultGridOptions:function(e){},saveRow:function(e,t){var n=this;return function(){if(t.isSaving=!0,t.rowEditSavePromise)return t.rowEditSavePromise;var r=e.api.rowEdit.raise.saveRow(t.entity);return t.rowEditSavePromise?t.rowEditSavePromise.then(n.processSuccessPromise(e,t),n.processErrorPromise(e,t)):i.logError("A promise was not returned when saveRow event was raised, either nobody is listening to event, or event handler did not return a promise"),r}},setSavePromise:function(e,t,n){e.getRow(t).rowEditSavePromise=n},processSuccessPromise:function(e,t){var n=this;return function(){delete t.isSaving,delete t.isDirty,delete t.isError,delete t.rowEditSaveTimer,delete t.rowEditSavePromise,n.removeRow(e.rowEdit.errorRows,t),n.removeRow(e.rowEdit.dirtyRows,t)}},processErrorPromise:function(e,t){return function(){delete t.isSaving,delete t.rowEditSaveTimer,delete t.rowEditSavePromise,t.isError=!0,e.rowEdit.errorRows||(e.rowEdit.errorRows=[]),o.isRowPresent(e.rowEdit.errorRows,t)||e.rowEdit.errorRows.push(t)}},removeRow:function(e,t){void 0!==e&&null!==e&&e.forEach(function(n,r){n.uid===t.uid&&e.splice(r,1)})},isRowPresent:function(e,t){var n=!1;return e.forEach(function(e,r){e.uid===t.uid&&(n=!0)}),n},flushDirtyRows:function(e){var n=[];return e.api.rowEdit.getDirtyRows().forEach(function(t){o.cancelTimer(e,t),o.saveRow(e,t)(),n.push(t.rowEditSavePromise)}),t.all(n)},endEditCell:function(e,t,n,r){var a=this.grid,s=a.getRow(e);if(!s)return void i.logError("Unable to find rowEntity in grid data, dirty flag cannot be set");(n!==r||s.isDirty)&&(a.rowEdit.dirtyRows||(a.rowEdit.dirtyRows=[]),s.isDirty||(s.isDirty=!0,a.rowEdit.dirtyRows.push(s)),delete s.isError,o.considerSetTimer(a,s))},beginEditCell:function(e,t){var n=this.grid,r=n.getRow(e);if(!r)return void i.logError("Unable to find rowEntity in grid data, timer cannot be cancelled");o.cancelTimer(n,r)},cancelEditCell:function(e,t){var n=this.grid,r=n.getRow(e);if(!r)return void i.logError("Unable to find rowEntity in grid data, timer cannot be set");o.considerSetTimer(n,r)},navigate:function(e,t){var n=this.grid;e.row.rowEditSaveTimer&&o.cancelTimer(n,e.row),t&&t.row&&t.row!==e.row&&o.considerSetTimer(n,t.row)},considerSetTimer:function(t,n){if(o.cancelTimer(t,n),n.isDirty&&!n.isSaving&&-1!==t.options.rowEditWaitInterval){var r=t.options.rowEditWaitInterval?t.options.rowEditWaitInterval:2e3;n.rowEditSaveTimer=e(o.saveRow(t,n),r,1)}},cancelTimer:function(t,n){n.rowEditSaveTimer&&!n.isSaving&&(e.cancel(n.rowEditSaveTimer),delete n.rowEditSaveTimer)},setRowsDirty:function(e,t){var n;t.forEach(function(t,r){n=e.getRow(t),n?(e.rowEdit.dirtyRows||(e.rowEdit.dirtyRows=[]),n.isDirty||(n.isDirty=!0,e.rowEdit.dirtyRows.push(n)),delete n.isError,o.considerSetTimer(e,n)):i.logError("requested row not found in rowEdit.setRowsDirty, row was: "+t)})},setRowsClean:function(e,t){var n;t.forEach(function(t,r){n=e.getRow(t),n?(delete n.isDirty,o.removeRow(e.rowEdit.dirtyRows,n),o.cancelTimer(e,n),delete n.isError,o.removeRow(e.rowEdit.errorRows,n)):i.logError("requested row not found in rowEdit.setRowsClean, row was: "+t)})}};return o}]),e.directive("uiGridRowEdit",["gridUtil","uiGridRowEditService","uiGridEditConstants",function(e,t,n){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,r,i){t.initializeGrid(e,i.grid)},post:function(e,t,n,r){}}}}}]),e.directive("uiGridViewport",["$compile","uiGridConstants","gridUtil","$parse",function(e,t,n,r){return{priority:-200,scope:!1,compile:function(e,t){var n=angular.element(e.children().children()[0]),r=n.attr("ng-class"),i="" ;return i=r?r.slice(0,-1)+", 'ui-grid-row-dirty': row.isDirty, 'ui-grid-row-saving': row.isSaving, 'ui-grid-row-error': row.isError}":"{'ui-grid-row-dirty': row.isDirty, 'ui-grid-row-saving': row.isSaving, 'ui-grid-row-error': row.isError}",n.attr("ng-class",i),{pre:function(e,t,n,r){},post:function(e,t,n,r){}}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.saveState",["ui.grid","ui.grid.selection","ui.grid.cellNav","ui.grid.grouping","ui.grid.pinning","ui.grid.treeView"]);e.constant("uiGridSaveStateConstants",{featureName:"saveState"}),e.service("uiGridSaveStateService",["$q","uiGridSaveStateConstants","gridUtil","$compile","$interval","uiGridConstants",function(e,t,n,r,i,o){var a={initializeGrid:function(e){e.saveState={},this.defaultGridOptions(e.options);var t={events:{saveState:{}},methods:{saveState:{save:function(){return a.save(e)},restore:function(t,n){return a.restore(e,t,n)}}}};e.api.registerEventsFromObject(t.events),e.api.registerMethodsFromObject(t.methods)},defaultGridOptions:function(e){e.saveWidths=!1!==e.saveWidths,e.saveOrder=!1!==e.saveOrder,e.saveScroll=!0===e.saveScroll,e.saveFocus=!0!==e.saveScroll&&!1!==e.saveFocus,e.saveVisible=!1!==e.saveVisible,e.saveSort=!1!==e.saveSort,e.saveFilter=!1!==e.saveFilter,e.saveSelection=!1!==e.saveSelection,e.saveGrouping=!1!==e.saveGrouping,e.saveGroupingExpandedStates=!0===e.saveGroupingExpandedStates,e.savePinning=!1!==e.savePinning,e.saveTreeView=!1!==e.saveTreeView},save:function(e){var t={};return t.columns=a.saveColumns(e),t.scrollFocus=a.saveScrollFocus(e),t.selection=a.saveSelection(e),t.grouping=a.saveGrouping(e),t.treeView=a.saveTreeView(e),t.pagination=a.savePagination(e),t},restore:function(e,t,n){return n.columns&&a.restoreColumns(e,n.columns),n.scrollFocus&&a.restoreScrollFocus(e,t,n.scrollFocus),n.selection&&a.restoreSelection(e,n.selection),n.grouping&&a.restoreGrouping(e,n.grouping),n.treeView&&a.restoreTreeView(e,n.treeView),n.pagination&&a.restorePagination(e,n.pagination),e.refresh()},saveColumns:function(e){var t=[];return e.getOnlyDataColumns().forEach(function(n){var r={};r.name=n.name,e.options.saveVisible&&(r.visible=n.visible),e.options.saveWidths&&(r.width=n.width),e.options.saveSort&&(r.sort=angular.copy(n.sort)),e.options.saveFilter&&(r.filters=[],n.filters.forEach(function(e){var t={};angular.forEach(e,function(e,n){"condition"!==n&&"$$hashKey"!==n&&"placeholder"!==n&&(t[n]=e)}),r.filters.push(t)})),e.api.pinning&&e.options.savePinning&&(r.pinned=n.renderContainer?n.renderContainer:""),t.push(r)}),t},saveScrollFocus:function(e){if(!e.api.cellNav)return{};var t={};if(e.options.saveFocus){t.focus=!0;var n=e.api.cellNav.getFocusedCell();null!==n&&(null!==n.col&&(t.colName=n.col.colDef.name),null!==n.row&&(t.rowVal=a.getRowVal(e,n.row)))}return(e.options.saveScroll||e.options.saveFocus&&!t.colName&&!t.rowVal)&&(t.focus=!1,e.renderContainers.body.prevRowScrollIndex&&(t.rowVal=a.getRowVal(e,e.renderContainers.body.visibleRowCache[e.renderContainers.body.prevRowScrollIndex])),e.renderContainers.body.prevColScrollIndex&&(t.colName=e.renderContainers.body.visibleColumnCache[e.renderContainers.body.prevColScrollIndex].name)),t},saveSelection:function(e){return e.api.selection&&e.options.saveSelection?e.api.selection.getSelectedGridRows().map(function(t){return a.getRowVal(e,t)}):[]},saveGrouping:function(e){return e.api.grouping&&e.options.saveGrouping?e.api.grouping.getGrouping(e.options.saveGroupingExpandedStates):{}},savePagination:function(e){return e.api.pagination&&e.options.paginationPageSize?{paginationCurrentPage:e.options.paginationCurrentPage,paginationPageSize:e.options.paginationPageSize}:{}},saveTreeView:function(e){return e.api.treeView&&e.options.saveTreeView?e.api.treeView.getTreeView():{}},getRowVal:function(e,t){if(!t)return null;var n={};return e.options.saveRowIdentity?(n.identity=!0,n.row=e.options.saveRowIdentity(t.entity)):(n.identity=!1,n.row=e.renderContainers.body.visibleRowCache.indexOf(t)),n},restoreColumns:function(e,t){var n=!1;t.forEach(function(t,r){var i=e.getColumn(t.name);if(i&&!e.isRowHeaderColumn(i)){!e.options.saveVisible||i.visible===t.visible&&i.colDef.visible===t.visible||(i.visible=t.visible,i.colDef.visible=t.visible,e.api.core.raise.columnVisibilityChanged(i)),e.options.saveWidths&&i.width!==t.width&&(i.width=t.width,i.hasCustomWidth=!0),!e.options.saveSort||angular.equals(i.sort,t.sort)||void 0===i.sort&&angular.isEmpty(t.sort)||(i.sort=angular.copy(t.sort),n=!0),e.options.saveFilter&&!angular.equals(i.filters,t.filters)&&(t.filters.forEach(function(e,t){angular.extend(i.filters[t],e),void 0!==e.term&&null!==e.term||delete i.filters[t].term}),e.api.core.raise.filterChanged()),e.api.pinning&&e.options.savePinning&&i.renderContainer!==t.pinned&&e.api.pinning.pinColumn(i,t.pinned);var o=e.getOnlyDataColumns().indexOf(i);if(-1!==o&&e.options.saveOrder&&o!==r){var a=e.columns.splice(o+e.rowHeaderColumns.length,1)[0];e.columns.splice(r+e.rowHeaderColumns.length,0,a)}}}),n&&e.api.core.raise.sortChanged(e,e.getColumnSorting())},restoreScrollFocus:function(e,t,n){if(e.api.cellNav){var r,i;if(n.colName){var o=e.options.columnDefs.filter(function(e){return e.name===n.colName});o.length>0&&(r=o[0])}n.rowVal&&n.rowVal.row&&(i=n.rowVal.identity?a.findRowByIdentity(e,n.rowVal):e.renderContainers.body.visibleRowCache[n.rowVal.row]);var s=i&&i.entity?i.entity:null;(r||s)&&(n.focus?e.api.cellNav.scrollToFocus(s,r):e.scrollTo(s,r))}},restoreSelection:function(e,t){e.api.selection&&(e.api.selection.clearSelectedRows(),t.forEach(function(t){if(t.identity){var n=a.findRowByIdentity(e,t);n&&e.api.selection.selectRow(n.entity)}else e.api.selection.selectRowByVisibleIndex(t.row)}))},restoreGrouping:function(e,t){e.api.grouping&&void 0!==t&&null!==t&&!angular.equals(t,{})&&e.api.grouping.setGrouping(t)},restoreTreeView:function(e,t){e.api.treeView&&void 0!==t&&null!==t&&!angular.equals(t,{})&&e.api.treeView.setTreeView(t)},restorePagination:function(e,t){e.api.pagination&&e.options.paginationPageSize&&(e.options.paginationCurrentPage=t.paginationCurrentPage,e.options.paginationPageSize=t.paginationPageSize)},findRowByIdentity:function(e,t){if(!e.options.saveRowIdentity)return null;var n=e.rows.filter(function(n){return e.options.saveRowIdentity(n.entity)===t.row});return n.length>0?n[0]:null}};return a}]),e.directive("uiGridSaveState",["uiGridSaveStateConstants","uiGridSaveStateService","gridUtil","$compile",function(e,t,n,r){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,link:function(e,n,r,i){t.initializeGrid(i.grid)}}}])}(),function(){"use strict";var e=angular.module("ui.grid.selection",["ui.grid"]);e.constant("uiGridSelectionConstants",{featureName:"selection",selectionRowHeaderColName:"selectionRowHeaderCol"}),angular.module("ui.grid").config(["$provide",function(e){e.decorator("GridRow",["$delegate",function(e){return e.prototype.setSelected=function(e){e!==this.isSelected&&(this.isSelected=e,this.grid.selection.selectedCount+=e?1:-1)},e}])}]),e.service("uiGridSelectionService",["$q","$templateCache","uiGridSelectionConstants","gridUtil",function(e,t,n,r){function i(e,t,n,r,i){if(t.treeNode&&t.treeNode.parentRow){for(var o=t.treeNode.parentRow,s=[],l=0;l1&&(s=!1,a.clearSelectedRows(e,n))):a.clearSelectedRows(e,n),s&&o||(t.setSelected(!s),!0===t.isSelected&&(e.selection.lastSelectedRow=t),l=a.getSelectedRows(e),e.selection.selectAll=e.rows.length===l.length,e.api.selection.raise.rowSelectionChanged(t,n),i(e,t,n,r,o))}},shiftSelect:function(e,t,n,r){if(r){var i=a.getSelectedRows(e),o=i.length>0?e.renderContainers.body.visibleRowCache.indexOf(e.selection.lastSelectedRow):0,s=e.renderContainers.body.visibleRowCache.indexOf(t);if(o>s){var l=o;o=s,s=l}for(var u=[],c=o;c<=s;c++){var d=e.renderContainers.body.visibleRowCache[c];d&&(d.isSelected||!1===d.enableSelection||(d.setSelected(!0),e.selection.lastSelectedRow=d,a.decideRaiseSelectionEvent(e,d,u,n)))}a.decideRaiseSelectionBatchEvent(e,u,n)}},getSelectedRows:function(e){var t;t=e.treeBase&&e.treeBase.tree?o(e.treeBase.tree):e.rows;for(var n=[],r=0;r0&&e.api.selection.raise.rowSelectionChangedBatch(t,n)}};return a}]),e.directive("uiGridSelection",["uiGridSelectionConstants","uiGridSelectionService","$templateCache","uiGridConstants",function(e,t,n,r){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(n,i,o,a){if(t.initializeGrid(a.grid),a.grid.options.enableRowHeaderSelection){var s={name:e.selectionRowHeaderColName,displayName:"",width:a.grid.options.selectionRowHeaderWidth,minWidth:10,cellTemplate:"ui-grid/selectionRowHeader",headerCellTemplate:"ui-grid/selectionHeaderCell",enableColumnResizing:!1,enableColumnMenu:!1,exporterSuppressExport:!0,allowCellFocus:!0};a.grid.addRowHeaderColumn(s,0)}var l=!1,u=function(e){return e.forEach(function(e){e.enableSelection=a.grid.options.isRowSelectable(e)}),e},c=function(){a.grid.options.isRowSelectable!==angular.noop&&!0!==l&&(a.grid.registerRowsProcessor(u,500),l=!0)};c();var d=a.grid.registerDataChangeCallback(c,[r.dataChange.OPTIONS]);n.$on("$destroy",d)},post:function(e,t,n,r){}}}}}]),e.directive("uiGridSelectionRowHeaderButtons",["$templateCache","uiGridSelectionService","gridUtil",function(e,t,n){return{replace:!0,restrict:"E",template:e.get("ui-grid/selectionRowHeaderButtons"),scope:!0,require:"^uiGrid",link:function(e,r,i,o){function a(e,t){32===t.keyCode&&(t.preventDefault(),s(e,t))}function s(e,t){if(t.stopPropagation(),e.groupHeader){l(e,t);for(var n=e.isSelected,r=0;r=0&&n.treeNode.state!==t.EXPANDED;)i.push(n),n=n.treeNode.parentRow;if(i.length>0){for(n=i.pop();n;)n.treeNode.state=t.EXPANDED,e.api.treeBase.raise.rowExpanded(n),n=i.pop();e.treeBase.expandAll=l.allExpanded(e.treeBase.tree),e.queueGridRefresh()}}else{if(void 0===n.treeLevel||null===n.treeLevel||n.treeLevel<0)return;n.treeNode.state!==t.EXPANDED&&(n.treeNode.state=t.EXPANDED,e.api.treeBase.raise.rowExpanded(n),e.treeBase.expandAll=l.allExpanded(e.treeBase.tree),e.queueGridRefresh())}},expandRowChildren:function(e,n){void 0===n.treeLevel||null===n.treeLevel||n.treeLevel<0||(l.setAllNodes(e,n.treeNode,t.EXPANDED),e.treeBase.expandAll=l.allExpanded(e.treeBase.tree),e.queueGridRefresh())},collapseRow:function(e,n){void 0===n.treeLevel||null===n.treeLevel||n.treeLevel<0||n.treeNode.state!==t.COLLAPSED&&(n.treeNode.state=t.COLLAPSED,e.treeBase.expandAll=!1,e.api.treeBase.raise.rowCollapsed(n),e.queueGridRefresh())},collapseRowChildren:function(e,n){void 0===n.treeLevel||null===n.treeLevel||n.treeLevel<0||(l.setAllNodes(e,n.treeNode,t.COLLAPSED),e.treeBase.expandAll=!1,e.queueGridRefresh())},allExpanded:function(e){var t=!0;return e.forEach(function(e){l.allExpandedInternal(e)||(t=!1)}),t},allExpandedInternal:function(e){if(e.children&&e.children.length>0){if(e.state===t.COLLAPSED)return!1;var n=!0;return e.children.forEach(function(e){l.allExpandedInternal(e)||(n=!1)}),n}return!0},treeRows:function(e){if(0===e.length)return e;var n=this;t.EXPANDED;return n.treeBase.tree=l.createTree(n,e),l.updateRowHeaderWidth(n),l.sortTree(n),l.fixFilter(n),l.renderTree(n.treeBase.tree)},updateRowHeaderWidth:function(e){var n=e.getColumn(t.rowHeaderColName),r=e.options.treeRowHeaderBaseWidth+e.options.treeIndent*Math.max(e.treeBase.numberLevels-1,0);n&&r!==n.width&&(n.width=r,e.queueRefresh());var i=!0;!1===e.options.showTreeRowHeader&&(i=!1),!1===e.options.treeRowHeaderAlwaysVisible&&e.treeBase.numberLevels<=0&&(i=!1),n&&n.visible!==i&&(n.visible=i,n.colDef.visible=i,e.queueGridRefresh())},renderTree:function(e){var n=[];return e.forEach(function(e){e.row.visible&&n.push(e.row),e.state===t.EXPANDED&&e.children&&e.children.length>0&&(n=n.concat(l.renderTree(e.children)))}),n},createTree:function(e,n){var r,i=-1,o=[];e.treeBase.tree=[],e.treeBase.numberLevels=0;var a=l.getAggregations(e),s=function(n){if(void 0!==n.entity.$$treeLevel&&n.treeLevel!==n.entity.$$treeLevel&&(n.treeLevel=n.entity.$$treeLevel),n.treeLevel<=i){for(;n.treeLevel<=i;){var s=o.pop();l.finaliseAggregations(s),i--}r=o.length>0?l.setCurrentState(o):t.EXPANDED}(void 0===n.treeLevel||null===n.treeLevel||n.treeLevel<0)&&n.visible&&l.aggregate(e,n,o),l.addOrUseNode(e,n,o,a),void 0!==n.treeLevel&&null!==n.treeLevel&&n.treeLevel>=0&&(o.push(n),i++,r=l.setCurrentState(o)),e.treeBase.numberLevels0;){var u=o.pop();l.finaliseAggregations(u)}return e.treeBase.tree},addOrUseNode:function(e,n,r,i){var o=[];i.forEach(function(e){o.push(l.buildAggregationObject(e.col))});var a={state:t.COLLAPSED,row:n,parentRow:null,aggregations:o,children:[]};n.treeNode&&(a.state=n.treeNode.state),r.length>0&&(a.parentRow=r[r.length-1]),n.treeNode=a,0===r.length?e.treeBase.tree.push(a):r[r.length-1].treeNode.children.push(a)},setCurrentState:function(e){var n=t.EXPANDED;return e.forEach(function(e){e.treeNode.state===t.COLLAPSED&&(n=t.COLLAPSED)}),n},sortTree:function(e){e.columns.forEach(function(e){e.sort&&e.sort.ignoreSort&&delete e.sort.ignoreSort}),e.treeBase.tree=l.sortInternal(e,e.treeBase.tree)},sortInternal:function(e,n){var r=n.map(function(e){return e.row});r=s.sort(e,r,e.columns);var i=r.map(function(e){return e.treeNode});return i.forEach(function(n){n.state===t.EXPANDED&&n.children&&n.children.length>0&&(n.children=l.sortInternal(e,n.children))}),i},fixFilter:function(e){var t;e.treeBase.tree.forEach(function(e){e.children&&e.children.length>0&&(t=e.row.visible,l.fixFilterInternal(e.children,t))})},fixFilterInternal:function(e,t){return e.forEach(function(e){e.row.visible&&!t&&(l.setParentsVisible(e),t=!0),e.children&&e.children.length>0&&l.fixFilterInternal(e.children,t&&e.row.visible)&&(t=!0)}),t},setParentsVisible:function(e){for(;e.parentRow;)e.parentRow.visible=!0,e=e.parentRow.treeNode},buildAggregationObject:function(e){var t={col:e};return e.treeAggregation&&e.treeAggregation.type&&(t.type=e.treeAggregation.type),e.treeAggregation&&e.treeAggregation.label&&(t.label=e.treeAggregation.label),t},getAggregations:function(e){var t=[];return e.columns.forEach(function(n){void 0!==n.treeAggregationFn&&(t.push(l.buildAggregationObject(n)),e.options.showColumnFooter&&void 0===n.colDef.aggregationType&&n.treeAggregation&&(n.treeFooterAggregation=l.buildAggregationObject(n),n.aggregationType=l.treeFooterAggregationType))}),t},aggregate:function(e,t,n){0===n.length&&t.treeNode&&t.treeNode.aggregations&&t.treeNode.aggregations.forEach(function(n){if(void 0!==n.col.treeFooterAggregation){var r=e.getCellValue(t,n.col),i=Number(r);n.col.treeAggregationFn(n.col.treeFooterAggregation,r,i,t)}}),n.forEach(function(n,r){n.treeNode.aggregations&&n.treeNode.aggregations.forEach(function(n){var i=e.getCellValue(t,n.col),o=Number(i);n.col.treeAggregationFn(n,i,o,t),0===r&&void 0!==n.col.treeFooterAggregation&&n.col.treeAggregationFn(n.col.treeFooterAggregation,i,o,t)})})},nativeAggregations:function(){return{count:{label:o.get().aggregation.count,menuTitle:o.get().grouping.aggregate_count,aggregationFn:function(e,t,n){void 0===e.value?e.value=1:e.value++}},sum:{label:o.get().aggregation.sum,menuTitle:o.get().grouping.aggregate_sum,aggregationFn:function(e,t,n){isNaN(n)||(void 0===e.value?e.value=n:e.value+=n)}},min:{label:o.get().aggregation.min,menuTitle:o.get().grouping.aggregate_min,aggregationFn:function(e,t,n){void 0===e.value?e.value=t:void 0!==t&&null!==t&&(te.value||null===e.value)&&(e.value=t)}},avg:{label:o.get().aggregation.avg,menuTitle:o.get().grouping.aggregate_avg,aggregationFn:function(e,t,n){void 0===e.count?e.count=1:e.count++,isNaN(n)||(void 0===e.value||void 0===e.sum?(e.value=n,e.sum=n):(e.sum+=n,e.value=e.sum/e.count))}}}},finaliseAggregation:function(e,t){t.col.treeAggregationUpdateEntity&&void 0!==e&&void 0!==e.entity["$$"+t.col.uid]&&angular.extend(t,e.entity["$$"+t.col.uid]),"function"==typeof t.col.treeAggregationFinalizerFn&&t.col.treeAggregationFinalizerFn(t),"function"==typeof t.col.customTreeAggregationFinalizerFn&&t.col.customTreeAggregationFinalizerFn(t),void 0===t.rendered&&(t.rendered=t.label?t.label+t.value:t.value)},finaliseAggregations:function(e){null!=e&&void 0!==e.treeNode.aggregations&&e.treeNode.aggregations.forEach(function(t){if(l.finaliseAggregation(e,t),t.col.treeAggregationUpdateEntity){var n={};angular.forEach(t,function(e,r){t.hasOwnProperty(r)&&"col"!==r&&(n[r]=e)}),e.entity["$$"+t.col.uid]=n}})},treeFooterAggregationType:function(e,t){return l.finaliseAggregation(void 0,t.treeFooterAggregation),void 0===t.treeFooterAggregation.value||null===t.treeFooterAggregation.rendered?"":t.treeFooterAggregation.rendered}};return l}]),e.directive("uiGridTreeBaseRowHeaderButtons",["$templateCache","uiGridTreeBaseService",function(e,t){return{replace:!0,restrict:"E",template:e.get("ui-grid/treeBaseRowHeaderButtons"),scope:!0,require:"^uiGrid",link:function(e,n,r,i){var o=i.grid;e.treeButtonClick=function(e,n){t.toggleRowTreeState(o,e,n)}}}}]),e.directive("uiGridTreeBaseExpandAllButtons",["$templateCache","uiGridTreeBaseService",function(e,t){return{replace:!0,restrict:"E",template:e.get("ui-grid/treeBaseExpandAllButtons"),scope:!1,link:function(e,n,r,i){var o=e.col.grid;e.headerButtonClick=function(e,n){o.treeBase.expandAll?t.collapseAllRows(o,n):t.expandAllRows(o,n)}}}}]),e.directive("uiGridViewport",["$compile","uiGridConstants","gridUtil","$parse",function(e,t,n,r){return{priority:-200,scope:!1,compile:function(e,t){var n=angular.element(e.children().children()[0]),r=n.attr("ng-class"),i="";return i=r?r.slice(0,-1)+",'ui-grid-tree-header-row': row.treeLevel > -1}":"{'ui-grid-tree-header-row': row.treeLevel > -1}",n.attr("ng-class",i),{pre:function(e,t,n,r){},post:function(e,t,n,r){}}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.treeView",["ui.grid","ui.grid.treeBase"]);e.constant("uiGridTreeViewConstants",{featureName:"treeView",rowHeaderColName:"treeBaseRowHeaderCol",EXPANDED:"expanded",COLLAPSED:"collapsed",aggregation:{COUNT:"count",SUM:"sum",MAX:"max",MIN:"min",AVG:"avg"}}),e.service("uiGridTreeViewService",["$q","uiGridTreeViewConstants","uiGridTreeBaseConstants","uiGridTreeBaseService","gridUtil","GridRow","gridClassFactory","i18nService","uiGridConstants",function(e,t,n,r,i,o,a,s,l){var u={initializeGrid:function(e,t){r.initializeGrid(e,t),e.treeView={},e.registerRowsProcessor(u.adjustSorting,60);var n={events:{treeView:{}},methods:{treeView:{}}};e.api.registerEventsFromObject(n.events),e.api.registerMethodsFromObject(n.methods)},defaultGridOptions:function(e){e.enableTreeView=!1!==e.enableTreeView},adjustSorting:function(e){return this.columns.forEach(function(e){e.sort&&(e.sort.ignoreSort=!0)}),e}};return u}]),e.directive("uiGridTreeView",["uiGridTreeViewConstants","uiGridTreeViewService","$templateCache",function(e,t,n){return{replace:!0,priority:0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,r,i){!1!==i.grid.options.enableTreeView&&t.initializeGrid(i.grid,e)},post:function(e,t,n,r){}}}}}])}(),function(){"use strict";var e=angular.module("ui.grid.validate",["ui.grid"]);e.service("uiGridValidateService",["$sce","$q","$http","i18nService","uiGridConstants",function(e,t,n,r,i){var o={validatorFactories:{},setExternalFactoryFunction:function(e){o.externalFactoryFunction=e},clearExternalFactory:function(){delete o.externalFactoryFunction},getValidatorFromExternalFactory:function(e,t){return o.externalFactoryFunction(e,t).validatorFactory(t)},getMessageFromExternalFactory:function(e,t){return o.externalFactoryFunction(e,t).messageFunction(t)},setValidator:function(e,t,n){o.validatorFactories[e]={validatorFactory:t,messageFunction:n}},getValidator:function(e,t){ if(o.externalFactoryFunction){var n=o.getValidatorFromExternalFactory(e,t);if(n)return n}if(!o.validatorFactories[e])throw"Invalid validator name: "+e;return o.validatorFactories[e].validatorFactory(t)},getMessage:function(e,t){if(o.externalFactoryFunction){var n=o.getMessageFromExternalFactory(e,t);if(n)return n}return o.validatorFactories[e].messageFunction(t)},isInvalid:function(e,t){return e["$$invalid"+t.name]},setInvalid:function(e,t){e["$$invalid"+t.name]=!0},setValid:function(e,t){delete e["$$invalid"+t.name]},setError:function(e,t,n){e["$$errors"+t.name]||(e["$$errors"+t.name]={}),e["$$errors"+t.name][n]=!0},clearError:function(e,t,n){e["$$errors"+t.name]&&n in e["$$errors"+t.name]&&delete e["$$errors"+t.name][n]},getErrorMessages:function(e,t){var n=[];return e["$$errors"+t.name]&&0!==Object.keys(e["$$errors"+t.name]).length?(Object.keys(e["$$errors"+t.name]).sort().forEach(function(e){n.push(o.getMessage(e,t.validators[e]))}),n):n},getFormattedErrors:function(t,n){var i="",a=o.getErrorMessages(t,n);if(a.length)return a.forEach(function(e){i+=e+"
"}),e.trustAsHtml("

"+r.getSafeText("validate.error")+"

"+i)},getTitleFormattedErrors:function(t,n){var i="",a=o.getErrorMessages(t,n);if(a.length)return a.forEach(function(e){i+=e+"\n"}),e.trustAsHtml(r.getSafeText("validate.error")+"\n"+i)},runValidators:function(e,n,r,i,a){if(r!==i){if(void 0===n.name||!n.name)throw new Error("colDef.name is required to perform validation");o.setValid(e,n);var s=[];for(var l in n.validators){o.clearError(e,n,l);var u=o.getValidator(l,n.validators[l]),c=t.when(u(i,r,e,n)).then(function(e,t,n){return function(s){s||(o.setInvalid(e,t),o.setError(e,t,n),a&&a.api.validate.raise.validationFailed(e,t,r,i))}}(e,n,l));s.push(c)}return t.all(s)}},createDefaultValidators:function(){o.setValidator("minLength",function(e){return function(t,n,r,i){return void 0===n||null===n||""===n||n.length>=e}},function(e){return r.getSafeText("validate.minLength").replace("THRESHOLD",e)}),o.setValidator("maxLength",function(e){return function(t,n,r,i){return void 0===n||null===n||""===n||n.length<=e}},function(e){return r.getSafeText("validate.maxLength").replace("THRESHOLD",e)}),o.setValidator("required",function(e){return function(t,n,r,i){return!e||!(void 0===n||null===n||""===n)}},function(e){return r.getSafeText("validate.required")})},initializeGrid:function(e,t){t.validate={isInvalid:o.isInvalid,getFormattedErrors:o.getFormattedErrors,getTitleFormattedErrors:o.getTitleFormattedErrors,runValidators:o.runValidators};var n={events:{validate:{validationFailed:function(e,t,n,r){}}},methods:{validate:{isInvalid:function(e,n){return t.validate.isInvalid(e,n)},getErrorMessages:function(e,n){return t.validate.getErrorMessages(e,n)},getFormattedErrors:function(e,n){return t.validate.getFormattedErrors(e,n)},getTitleFormattedErrors:function(e,n){return t.validate.getTitleFormattedErrors(e,n)}}}};t.api.registerEventsFromObject(n.events),t.api.registerMethodsFromObject(n.methods),t.edit&&t.api.edit.on.afterCellEdit(e,function(e,n,r,i){t.validate.runValidators(e,n,r,i,t)}),o.createDefaultValidators()}};return o}]),e.directive("uiGridValidate",["gridUtil","uiGridValidateService",function(e,t){return{priority:0,replace:!0,require:"^uiGrid",scope:!1,compile:function(){return{pre:function(e,n,r,i){t.initializeGrid(e,i.grid)},post:function(e,t,n,r){}}}}}])}(),angular.module("ui.grid").run(["$templateCache",function(e){"use strict";e.put("ui-grid/ui-grid-filter",'
 
 
'),e.put("ui-grid/ui-grid-footer",''),e.put("ui-grid/ui-grid-grid-footer",''),e.put("ui-grid/ui-grid-header",'
\x3c!-- theader --\x3e
'),e.put("ui-grid/ui-grid-menu-button",'
 
'),e.put("ui-grid/ui-grid-no-header",'
'),e.put("ui-grid/ui-grid-row","
"),e.put("ui-grid/ui-grid",'
\x3c!-- TODO (c0bra): add "scoped" attr here, eventually? --\x3e
'),e.put("ui-grid/uiGridCell",'
{{COL_FIELD CUSTOM_FILTERS}}
'),e.put("ui-grid/uiGridColumnMenu",'
\x3c!--
\n
\n
    \n
    \n
  • Sort Ascending
  • \n
  • Sort Descending
  • \n
  • Remove Sort
  • \n
    \n
\n
\n
--\x3e
'),e.put("ui-grid/uiGridFooterCell",'
{{ col.getAggregationText() + ( col.getAggregationValue() CUSTOM_FILTERS ) }}
'),e.put("ui-grid/uiGridHeaderCell",'
{{ col.displayName CUSTOM_FILTERS }} {{col.sort.priority + 1}}
'),e.put("ui-grid/uiGridMenu",'
'),e.put("ui-grid/uiGridMenuItem",''),e.put("ui-grid/uiGridRenderContainer","
\x3c!-- All of these dom elements are replaced in place --\x3e
"),e.put("ui-grid/uiGridViewport",'
\x3c!-- tbody --\x3e
'),e.put("ui-grid/cellEditor",'
'),e.put("ui-grid/dropdownEditor",'
'),e.put("ui-grid/fileChooserEditor",'
'),e.put("ui-grid/emptyBaseLayerContainer",'
'),e.put("ui-grid/expandableRow",'
'),e.put("ui-grid/expandableRowHeader",'
'),e.put("ui-grid/expandableScrollFiller","
"),e.put("ui-grid/expandableTopRowHeader",'
'),e.put("ui-grid/csvLink",'LINK_LABEL'),e.put("ui-grid/importerMenuItem",'
  • '),e.put("ui-grid/importerMenuItemContainer","
    "),e.put("ui-grid/pagination",'
    {{ 1 + paginationApi.getFirstRowIndex() }} - {{ 1 + paginationApi.getLastRowIndex() }} {{paginationOf}} {{grid.options.totalItems}} {{totalItemsLabel}}
    '),e.put("ui-grid/columnResizer",'
    '),e.put("ui-grid/gridFooterSelectedItems",'({{"search.selectedItems" | t}} {{grid.selection.selectedCount}})'),e.put("ui-grid/selectionHeaderCell",'
    \x3c!--
     
    --\x3e
    '),e.put("ui-grid/selectionRowHeader",'
    '),e.put("ui-grid/selectionRowHeaderButtons",''),e.put("ui-grid/selectionSelectAllButtons",'
    '),e.put("ui-grid/treeBaseExpandAllButtons",'
    '),e.put("ui-grid/treeBaseHeaderCell",'
    '),e.put("ui-grid/treeBaseRowHeader",'
    '),e.put("ui-grid/treeBaseRowHeaderButtons","
    -1 }\" ng-click=\"treeButtonClick(row, $event)\"> -1 ) || ( row.treeNode.children && row.treeNode.children.length > 0 ) ) && row.treeNode.state === 'expanded', 'ui-grid-icon-plus-squared': ( ( grid.options.showTreeExpandNoChildren && row.treeLevel > -1 ) || ( row.treeNode.children && row.treeNode.children.length > 0 ) ) && row.treeNode.state === 'collapsed'}\" ng-style=\"{'padding-left': grid.options.treeIndent * row.treeLevel + 'px'}\">  
    "),e.put("ui-grid/cellTitleValidator",'
    {{COL_FIELD CUSTOM_FILTERS}}
    '),e.put("ui-grid/cellTooltipValidator",'
    {{COL_FIELD CUSTOM_FILTERS}}
    ')}]), // Copyright (c) 2013 – 2017 Adobe Systems Incorporated. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // build: 2017-02-07 function(e){var t,n,r="0.5.0",i="hasOwnProperty",o=/[\.\/]/,a=/\s*,\s*/,s=function(e,t){return e-t},l={n:{}},u=function(){for(var e=0,t=this.length;t>e;e++)if(void 0!==this[e])return this[e]},c=function(){for(var e=this.length;--e;)if(void 0!==this[e])return this[e]},d=Object.prototype.toString,p=String,f=Array.isArray||function(e){return e instanceof Array||"[object Array]"==d.call(e)};eve=function(e,r){var i,o=n,a=Array.prototype.slice.call(arguments,2),l=eve.listeners(e),d=0,p=[],f={},h=[],g=t;h.firstDefined=u,h.lastDefined=c,t=e,n=0;for(var m=0,v=l.length;v>m;m++)"zIndex"in l[m]&&(p.push(l[m].zIndex),l[m].zIndex<0&&(f[l[m].zIndex]=l[m]));for(p.sort(s);p[d]<0;)if(i=f[p[d++]],h.push(i.apply(r,a)),n)return n=o,h;for(m=0;v>m;m++)if("zIndex"in(i=l[m]))if(i.zIndex==p[d]){if(h.push(i.apply(r,a)),n)break;do{if(d++,i=f[p[d]],i&&h.push(i.apply(r,a)),n)break}while(i)}else f[i.zIndex]=i;else if(h.push(i.apply(r,a)),n)break;return n=o,t=g,h},eve._events=l,eve.listeners=function(e){var t,n,r,i,a,s,u,c,d=f(e)?e:e.split(o),p=l,h=[p],g=[];for(i=0,a=d.length;a>i;i++){for(c=[],s=0,u=h.length;u>s;s++)for(p=h[s].n,n=[p[d[i]],p["*"]],r=2;r--;)(t=n[r])&&(c.push(t),g=g.concat(t.f||[]));h=c}return g},eve.separator=function(e){e?(e=p(e).replace(/(?=[\.\^\]\[\-])/g,"\\"),e="["+e+"]",o=new RegExp(e)):o=/[\.\/]/},eve.on=function(e,t){if("function"!=typeof t)return function(){};for(var n=f(e)?f(e[0])?e:[e]:p(e).split(a),r=0,i=n.length;i>r;r++)!function(e){for(var n,r=f(e)?e:p(e).split(o),i=l,a=0,s=r.length;s>a;a++)i=i.n,i=i.hasOwnProperty(r[a])&&i[r[a]]||(i[r[a]]={n:{}});for(i.f=i.f||[],a=0,s=i.f.length;s>a;a++)if(i.f[a]==t){n=!0;break}!n&&i.f.push(t)}(n[r]);return function(e){+e==+e&&(t.zIndex=+e)}},eve.f=function(e){var t=[].slice.call(arguments,1);return function(){eve.apply(null,[e,null].concat(t).concat([].slice.call(arguments,0)))}},eve.stop=function(){n=1},eve.nt=function(e){var n=f(t)?t.join("."):t;return e?new RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(n):n},eve.nts=function(){return f(t)?t:t.split(o)},eve.off=eve.unbind=function(e,t){if(!e)return void(eve._events=l={n:{}});var n=f(e)?f(e[0])?e:[e]:p(e).split(a);if(n.length>1)for(var r=0,s=n.length;s>r;r++)eve.off(n[r],t);else{n=f(e)?e:p(e).split(o);var u,c,d,r,s,h,g,m=[l],v=[];for(r=0,s=n.length;s>r;r++)for(h=0;hr;r++)for(u=m[r];u.n;){if(t){if(u.f){for(h=0,g=u.f.length;g>h;h++)if(u.f[h]==t){u.f.splice(h,1);break}!u.f.length&&delete u.f}for(c in u.n)if(u.n[i](c)&&u.n[c].f){var y=u.n[c].f;for(h=0,g=y.length;g>h;h++)if(y[h]==t){y.splice(h,1);break}!y.length&&delete u.n[c].f}}else{delete u.f;for(c in u.n)u.n[i](c)&&u.n[c].f&&delete u.n[c].f}u=u.n}e:for(r=0,s=v.length;s>r;r++){u=v[r];for(c in u.n[u.name].f)continue e;for(c in u.n[u.name].n)continue e;delete u.n[u.name]}}},eve.once=function(e,t){var n=function(){return eve.off(e,n),t.apply(this,arguments)};return eve.on(e,n)},eve.version=r,eve.toString=function(){return"You are running Eve "+r},"undefined"!=typeof module&&module.exports?module.exports=eve:"function"==typeof define&&define.amd?define("eve",[],function(){return eve}):e.eve=eve}(this),function(e,t){if("function"==typeof define&&define.amd)define(["eve"],function(n){return t(e,n)});else if("undefined"!=typeof exports){var n=require("eve");module.exports=t(e,n)}else t(e,e.eve)}(window||this,function(e,t){var n=function(t){var n,r={},i=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16,(new Date).getTime()),!0},o=Array.isArray||function(e){return e instanceof Array||"[object Array]"==Object.prototype.toString.call(e)},a=0,s="M"+(+new Date).toString(36),l=function(){return s+(a++).toString(36)},u=Date.now||function(){return+new Date},c=function(e){var t=this;if(null==e)return t.s;var n=t.s-e;t.b+=t.dur*n,t.B+=t.dur*n,t.s=e},d=function(e){var t=this;return null==e?t.spd:void(t.spd=e)},p=function(e){var t=this;return null==e?t.dur:(t.s=t.s*e/t.dur,void(t.dur=e))},f=function(){var e=this;delete r[e.id],e.update(),t("mina.stop."+e.id,e)},h=function(){var e=this;e.pdif||(delete r[e.id],e.update(),e.pdif=e.get()-e.b)},g=function(){var e=this;e.pdif&&(e.b=e.get()-e.pdif,delete e.pdif,r[e.id]=e,v())},m=function(){var e,t=this;if(o(t.start)){e=[];for(var n=0,r=t.start.length;r>n;n++)e[n]=+t.start[n]+(t.end[n]-t.start[n])*t.easing(t.s)}else e=+t.start+(t.end-t.start)*t.easing(t.s);t.set(e)},v=function(e){if(!e)return void(n||(n=i(v)));var o=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],l=s.get();o++,s.s=(l-s.b)/(s.dur/s.spd),s.s>=1&&(delete r[a],s.s=1,o--,function(e){setTimeout(function(){t("mina.finish."+e.id,e)})}(s)),s.update()}n=!!o&&i(v)},y=function(e,t,n,i,o,a,s){var u={id:l(),start:e,end:t,b:n,s:0,dur:i-n,spd:1,get:o,set:a,easing:s||y.linear,status:c,speed:d,duration:p,stop:f,pause:h,resume:g,update:m};r[u.id]=u;var b,w=0;for(b in r)if(r.hasOwnProperty(b)&&2==++w)break;return 1==w&&v(),u};return y.time=u,y.getById=function(e){return r[e]||null},y.linear=function(e){return e},y.easeout=function(e){return Math.pow(e,1.7)},y.easein=function(e){return Math.pow(e,.48)},y.easeinout=function(e){if(1==e)return 1;if(0==e)return 0;var t=.48-e/1.04,n=Math.sqrt(.1734+t*t),r=n-t,i=Math.pow(Math.abs(r),1/3)*(0>r?-1:1),o=-n-t,a=Math.pow(Math.abs(o),1/3)*(0>o?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},y.backin=function(e){if(1==e)return 1;var t=1.70158;return e*e*((t+1)*e-t)},y.backout=function(e){if(0==e)return 0;e-=1;var t=1.70158;return e*e*((t+1)*e+t)+1},y.elastic=function(e){return e==!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1},y.bounce=function(e){var t,n=7.5625,r=2.75;return 1/r>e?t=n*e*e:2/r>e?(e-=1.5/r,t=n*e*e+.75):2.5/r>e?(e-=2.25/r,t=n*e*e+.9375):(e-=2.625/r,t=n*e*e+.984375),t},e.mina=y,y}(void 0===t?function(){}:t),r=function(e){function n(e,t){if(e){if(e.nodeType)return C(e);if(i(e,"array")&&n.set)return n.set.apply(n,e);if(e instanceof y)return e;if(null==t)try{return e=$.doc.querySelector(String(e)),C(e)}catch(e){return null}}return e=null==e?"100%":e,t=null==t?"100%":t,new x(e,t)}function r(e,t){if(t){if("#text"==e&&(e=$.doc.createTextNode(t.text||t["#text"]||"")),"#comment"==e&&(e=$.doc.createComment(t.text||t["#text"]||"")),"string"==typeof e&&(e=r(e)),"string"==typeof t)return 1==e.nodeType?"xlink:"==t.substring(0,6)?e.getAttributeNS(G,t.substring(6)):"xml:"==t.substring(0,4)?e.getAttributeNS(W,t.substring(4)):e.getAttribute(t):"text"==t?e.nodeValue:null;if(1==e.nodeType){for(var n in t)if(t[E](n)){var i=T(t[n]);i?"xlink:"==n.substring(0,6)?e.setAttributeNS(G,n.substring(6),i):"xml:"==n.substring(0,4)?e.setAttributeNS(W,n.substring(4),i):e.setAttribute(n,i):e.removeAttribute(n)}}else"text"in t&&(e.nodeValue=t.text)}else e=$.doc.createElementNS(W,e);return e}function i(e,t){return t=T.prototype.toLowerCase.call(t),"finite"==t?isFinite(e):!("array"!=t||!(e instanceof Array||Array.isArray&&Array.isArray(e)))||("null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||I.call(e).slice(8,-1).toLowerCase()==t)}function o(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)e[E](n)&&(t[n]=o(e[n]));return t}function a(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return e.push(e.splice(n,1)[0])}function s(e,t,n){function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),s=r.cache=r.cache||{},l=r.count=r.count||[];return s[E](o)?(a(l,o),n?n(s[o]):s[o]):(l.length>=1e3&&delete s[l.shift()],l.push(o),s[o]=e.apply(t,i),n?n(s[o]):s[o])}return r}function l(e,t,n,r,i,o){if(null==i){var a=e-n,s=t-r;return a||s?(180+180*A.atan2(-s,-a)/P+360)%360:0}return l(e,t,i,o)-l(n,r,i,o)}function u(e){return e%360*P/180}function c(e){return 180*e/P%360}function d(e){var t=[];return e=e.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(e,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?t.push(["m",1,0,A.tan(u(r[0])),1,0,0]):"skewY"==n?t.push(["m",1,A.tan(u(r[0])),0,1,0,0]):t.push([n.charAt(0)].concat(r)),e}),t}function p(e,t){var r=ee(e),i=new n.Matrix;if(r)for(var o=0,a=r.length;a>o;o++){var s,l,u,c,d,p=r[o],f=p.length,h=T(p[0]).toLowerCase(),g=p[0]!=h,m=g?i.invert():0;"t"==h&&2==f?i.translate(p[1],0):"t"==h&&3==f?g?(s=m.x(0,0),l=m.y(0,0),u=m.x(p[1],p[2]),c=m.y(p[1],p[2]),i.translate(u-s,c-l)):i.translate(p[1],p[2]):"r"==h?2==f?(d=d||t,i.rotate(p[1],d.x+d.width/2,d.y+d.height/2)):4==f&&(g?(u=m.x(p[2],p[3]),c=m.y(p[2],p[3]),i.rotate(p[1],u,c)):i.rotate(p[1],p[2],p[3])):"s"==h?2==f||3==f?(d=d||t,i.scale(p[1],p[f-1],d.x+d.width/2,d.y+d.height/2)):4==f?g?(u=m.x(p[2],p[3]),c=m.y(p[2],p[3]),i.scale(p[1],p[1],u,c)):i.scale(p[1],p[1],p[2],p[3]):5==f&&(g?(u=m.x(p[3],p[4]),c=m.y(p[3],p[4]),i.scale(p[1],p[2],u,c)):i.scale(p[1],p[2],p[3],p[4])):"m"==h&&7==f&&i.add(p[1],p[2],p[3],p[4],p[5],p[6])}return i}function f(e){var t=e.node.ownerSVGElement&&C(e.node.ownerSVGElement)||e.node.parentNode&&C(e.node.parentNode)||n.select("svg")||n(0,0),r=t.select("defs"),i=null!=r&&r.node;return i||(i=w("defs",t.node).node),i}function h(e){return e.node.ownerSVGElement&&C(e.node.ownerSVGElement)||n.select("svg")}function m(e,t,n){function i(e){if(null==e)return R;if(e==+e)return e;r(u,{width:e});try{return u.getBBox().width}catch(e){return 0}}function o(e){if(null==e)return R;if(e==+e)return e;r(u,{height:e});try{return u.getBBox().height}catch(e){return 0}}function a(r,i){null==t?l[r]=i(e.attr(r)||0):r==t&&(l=i(null==n?e.attr(r)||0:n))}var s=h(e).node,l={},u=s.querySelector(".svg---mgr");switch(u||(u=r("rect"),r(u,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),s.appendChild(u)),e.type){case"rect":a("rx",i),a("ry",o);case"image":a("width",i),a("height",o);case"text":a("x",i),a("y",o);break;case"circle":a("cx",i),a("cy",o),a("r",i);break;case"ellipse":a("cx",i),a("cy",o),a("rx",i),a("ry",o);break;case"line":a("x1",i),a("x2",i),a("y1",o),a("y2",o);break;case"marker":a("refX",i),a("markerWidth",i),a("refY",o),a("markerHeight",o);break;case"radialGradient":a("fx",i),a("fy",o);break;case"tspan":a("dx",i),a("dy",o);break;default:a(t,i)}return s.removeChild(u),l}function v(e){i(e,"array")||(e=Array.prototype.slice.call(arguments,0));for(var t=0,n=0,r=this.node;this[t];)delete this[t++];for(t=0;tn;n++){var i={type:e[n].type,attr:e[n].attr()},o=e[n].children();t.push(i),o.length&&S(o,i.childNodes=[])}}n.version="0.5.1",n.toString=function(){return"Snap v"+this.version},n._={};var $={win:e.window,doc:e.window.document};n._.glob=$;var E="hasOwnProperty",T=String,k=parseFloat,_=parseInt,A=Math,D=A.max,M=A.min,O=A.abs,P=(A.pow,A.PI),R=(A.round,""),I=Object.prototype.toString,F=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,N=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),L={hs:1,rg:1},V=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,j=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,H=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,z=0,B="S"+(+new Date).toString(36),U=function(e){return(e&&e.type?e.type:R)+B+(z++).toString(36)},G="http://www.w3.org/1999/xlink",W="http://www.w3.org/2000/svg",q={};n.url=function(e){return"url('#"+e+"')"},n._.$=r,n._.id=U,n.format=function(){var e=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(e,n,r){var i=r;return n.replace(t,function(e,t,n,r,o){t=t||r,i&&(t in i&&(i=i[t]),"function"==typeof i&&o&&(i=i()))}),i=(null==i||i==r?e:i)+""};return function(t,r){return T(t).replace(e,function(e,t){return n(e,t,r)})}}(),n._.clone=o,n._.cacher=s,n.rad=u,n.deg=c,n.sin=function(e){return A.sin(n.rad(e))},n.tan=function(e){return A.tan(n.rad(e))},n.cos=function(e){return A.cos(n.rad(e))},n.asin=function(e){return n.deg(A.asin(e))},n.acos=function(e){return n.deg(A.acos(e))},n.atan=function(e){return n.deg(A.atan(e))},n.atan2=function(e){return n.deg(A.atan2(e))},n.angle=l,n.len=function(e,t,r,i){return Math.sqrt(n.len2(e,t,r,i))},n.len2=function(e,t,n,r){return(e-n)*(e-n)+(t-r)*(t-r)},n.closestPoint=function(e,t,n){function r(e){var r=e.x-t,i=e.y-n;return r*r+i*i}for(var i,o,a,s,l=e.node,u=l.getTotalLength(),c=u/l.pathSegList.numberOfItems*.125,d=1/0,p=0;u>=p;p+=c)(s=r(a=l.getPointAtLength(p))).5;){var f,h,g,m,v,y;(g=o-c)>=0&&(v=r(f=l.getPointAtLength(g)))o)return t-o;if(o>e-n)return t-o+e}return t},n.getRGB=s(function(e){if(!e||(e=T(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:K};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:K};if(!(L[E](e.toLowerCase().substring(0,2))||"#"==e.charAt())&&(e=Y(e)),!e)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:K};var t,r,o,a,s,l,u=e.match(F);return u?(u[2]&&(o=_(u[2].substring(5),16),r=_(u[2].substring(3,5),16),t=_(u[2].substring(1,3),16)),u[3]&&(o=_((s=u[3].charAt(3))+s,16),r=_((s=u[3].charAt(2))+s,16),t=_((s=u[3].charAt(1))+s,16)),u[4]&&(l=u[4].split(N),t=k(l[0]),"%"==l[0].slice(-1)&&(t*=2.55),r=k(l[1]),"%"==l[1].slice(-1)&&(r*=2.55),o=k(l[2]),"%"==l[2].slice(-1)&&(o*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(a=k(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),u[5]?(l=u[5].split(N),t=k(l[0]),"%"==l[0].slice(-1)&&(t/=100),r=k(l[1]),"%"==l[1].slice(-1)&&(r/=100),o=k(l[2]),"%"==l[2].slice(-1)&&(o/=100),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(t/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(a=k(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),n.hsb2rgb(t,r,o,a)):u[6]?(l=u[6].split(N),t=k(l[0]),"%"==l[0].slice(-1)&&(t/=100),r=k(l[1]),"%"==l[1].slice(-1)&&(r/=100),o=k(l[2]),"%"==l[2].slice(-1)&&(o/=100),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(t/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(a=k(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),n.hsl2rgb(t,r,o,a)):(t=M(A.round(t),255),r=M(A.round(r),255),o=M(A.round(o),255),a=M(D(a,0),1),u={r:t,g:r,b:o,toString:K},u.hex="#"+(16777216|o|r<<8|t<<16).toString(16).slice(1),u.opacity=i(a,"finite")?a:1,u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:K}},n),n.hsb=s(function(e,t,r){return n.hsb2rgb(e,t,r).hex}),n.hsl=s(function(e,t,r){return n.hsl2rgb(e,t,r).hex}),n.rgb=s(function(e,t,n,r){if(i(r,"finite")){var o=A.round;return"rgba("+[o(e),o(t),o(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|t<<8|e<<16).toString(16).slice(1)});var Y=function(e){var t=$.doc.getElementsByTagName("head")[0]||$.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(Y=s(function(e){if("red"==e.toLowerCase())return n;t.style.color=n,t.style.color=e;var r=$.doc.defaultView.getComputedStyle(t,R).getPropertyValue("color");return r==n?null:r}))(e)},X=function(){return"hsb("+[this.h,this.s,this.b]+")"},Z=function(){return"hsl("+[this.h,this.s,this.l]+")"},K=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},J=function(e,t,r){if(null==t&&i(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(r=e.b,t=e.g,e=e.r),null==t&&i(e,string)){var o=n.getRGB(e);e=o.r,t=o.g,r=o.b}return(e>1||t>1||r>1)&&(e/=255,t/=255,r/=255),[e,t,r]},Q=function(e,t,r,o){e=A.round(255*e),t=A.round(255*t),r=A.round(255*r);var a={r:e,g:t,b:r,opacity:i(o,"finite")?o:1,hex:n.rgb(e,t,r),toString:K};return i(o,"finite")&&(a.opacity=o),a};n.color=function(e){var t;return i(e,"object")&&"h"in e&&"s"in e&&"b"in e?(t=n.hsb2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.opacity=1,e.hex=t.hex):i(e,"object")&&"h"in e&&"s"in e&&"l"in e?(t=n.hsl2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.opacity=1,e.hex=t.hex):(i(e,"string")&&(e=n.getRGB(e)),i(e,"object")&&"r"in e&&"g"in e&&"b"in e&&!("error"in e)?(t=n.rgb2hsl(e),e.h=t.h,e.s=t.s,e.l=t.l,t=n.rgb2hsb(e),e.v=t.b):(e={hex:"none"},e.r=e.g=e.b=e.h=e.s=e.v=e.l=-1,e.error=1)),e.toString=K,e},n.hsb2rgb=function(e,t,n,r){i(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(n=e.b,t=e.s,r=e.o,e=e.h),e*=360;var o,a,s,l,u;return e=e%360/60,u=n*t,l=u*(1-O(e%2-1)),o=a=s=n-u,e=~~e,o+=[u,l,0,0,l,u][e],a+=[l,u,u,l,0,0][e],s+=[0,0,l,u,u,l][e],Q(o,a,s,r)},n.hsl2rgb=function(e,t,n,r){i(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(n=e.l,t=e.s,e=e.h),(e>1||t>1||n>1)&&(e/=360,t/=100,n/=100),e*=360;var o,a,s,l,u;return e=e%360/60,u=2*t*(.5>n?n:1-n),l=u*(1-O(e%2-1)),o=a=s=n-u/2,e=~~e,o+=[u,l,0,0,l,u][e],a+=[l,u,u,l,0,0][e],s+=[0,0,l,u,u,l][e],Q(o,a,s,r)},n.rgb2hsb=function(e,t,n){n=J(e,t,n),e=n[0],t=n[1],n=n[2];var r,i,o,a;return o=D(e,t,n),a=o-M(e,t,n),r=0==a?null:o==e?(t-n)/a:o==t?(n-e)/a+2:(e-t)/a+4,r=(r+360)%6*60/360,i=0==a?0:a/o,{h:r,s:i,b:o,toString:X}},n.rgb2hsl=function(e,t,n){n=J(e,t,n),e=n[0],t=n[1],n=n[2];var r,i,o,a,s,l;return a=D(e,t,n),s=M(e,t,n),l=a-s,r=0==l?null:a==e?(t-n)/l:a==t?(n-e)/l+2:(e-t)/l+4,r=(r+360)%6*60/360,o=(a+s)/2,i=0==l?0:.5>o?l/(2*o):l/(2-2*o),{h:r,s:i,l:o,toString:Z}},n.parsePathString=function(e){if(!e)return null;var t=n.path(e);if(t.arr)return n.path.clone(t.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},o=[];return i(e,"array")&&i(e[0],"array")&&(o=n.path.clone(e)),o.length||T(e).replace(V,function(e,t,n){var i=[],a=t.toLowerCase();if(n.replace(H,function(e,t){t&&i.push(+t)}),"m"==a&&i.length>2&&(o.push([t].concat(i.splice(0,2))),a="l",t="m"==t?"l":"L"),"o"==a&&1==i.length&&o.push([t,i[0]]),"r"==a)o.push([t].concat(i));else for(;i.length>=r[a]&&(o.push([t].concat(i.splice(0,r[a]))),r[a]););}),o.toString=n.path.toString,t.arr=n.path.clone(o),o};var ee=n.parseTransformString=function(e){if(!e)return null;var t=[];return i(e,"array")&&i(e[0],"array")&&(t=n.path.clone(e)),t.length||T(e).replace(j,function(e,n,r){var i=[];n.toLowerCase(),r.replace(H,function(e,t){t&&i.push(+t)}),t.push([n].concat(i))}),t.toString=n.path.toString,t};n._.svgTransform2string=d,n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=p,n._unit2px=m,$.doc.contains||$.doc.compareDocumentPosition,n._.getSomeDefs=f,n._.getSomeSVG=h,n.select=function(e){return e=T(e).replace(/([^\\]):/g,"$1\\:"),C($.doc.querySelector(e))},n.selectAll=function(e){for(var t=$.doc.querySelectorAll(e),r=(n.set||Array)(),i=0;il;l++)s[a[l].nodeName]=a[l].nodeValue;return s}if(i(e,"string")){if(!(arguments.length>1))return t("snap.util.getattr."+e,r).firstDefined();var c={};c[e]=n,e=c}for(var d in e)e[E](d)&&t("snap.util.attr."+d,r,e[d]);return r},n.parse=function(e){var t=$.doc.createDocumentFragment(),n=!0,r=$.doc.createElement("div");if(e=T(e),e.match(/^\s*<\s*svg(?:\s|>)/)||(e=""+e+"",n=!1),r.innerHTML=e,e=r.getElementsByTagName("svg")[0])if(n)t=e;else for(;e.firstChild;)t.appendChild(e.firstChild);return new b(t)},n.fragment=function(){for(var e=Array.prototype.slice.call(arguments,0),t=$.doc.createDocumentFragment(),r=0,i=e.length;i>r;r++){var o=e[r];o.node&&o.node.nodeType&&t.appendChild(o.node),o.nodeType&&t.appendChild(o),"string"==typeof o&&t.appendChild(n.parse(o).node)}return new b(t)},n._.make=w,n._.wrap=C,x.prototype.el=function(e,t){var n=w(e,this.node);return t&&n.attr(t),n},y.prototype.children=function(){for(var e=[],t=this.node.childNodes,r=0,i=t.length;i>r;r++)e[r]=n(t[r]);return e},y.prototype.toJSON=function(){var e=[];return S([this],e),e[0]},t.on("snap.util.getattr",function(){var e=t.nt();e=e.substring(e.lastIndexOf(".")+1);var n=e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});return te[E](n)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(n):r(this.node,e)});var te={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};t.on("snap.util.attr",function(e){var n=t.nt(),i={};n=n.substring(n.lastIndexOf(".")+1),i[n]=e;var o=n.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()}),a=n.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});te[E](a)?this.node.style[o]=null==e?R:e:r(this.node,i)}),x.prototype,n.ajax=function(e,n,r,o){var a=new XMLHttpRequest,s=U();if(a){if(i(n,"function"))o=r,r=n,n=null;else if(i(n,"object")){var l=[];for(var u in n)n.hasOwnProperty(u)&&l.push(encodeURIComponent(u)+"="+encodeURIComponent(n[u]));n=l.join("&")}return a.open(n?"POST":"GET",e,!0),n&&(a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(t.once("snap.ajax."+s+".0",r),t.once("snap.ajax."+s+".200",r),t.once("snap.ajax."+s+".304",r)),a.onreadystatechange=function(){4==a.readyState&&t("snap.ajax."+s+"."+a.status,o,a)},4==a.readyState?a:(a.send(n),a)}},n.load=function(e,t,r){n.ajax(e,function(e){var i=n.parse(e.responseText);r?t.call(r,i):t(i)})};var ne=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.body,i=n.documentElement,o=i.clientTop||r.clientTop||0,a=i.clientLeft||r.clientLeft||0;return{y:t.top+(g.win.pageYOffset||i.scrollTop||r.scrollTop)-o,x:t.left+(g.win.pageXOffset||i.scrollLeft||r.scrollLeft)-a}};return n.getElementByPoint=function(e,t){var n=this,r=(n.canvas,$.doc.elementFromPoint(e,t));if($.win.opera&&"svg"==r.tagName){var i=ne(r),o=r.createSVGRect();o.x=e-i.x,o.y=t-i.y,o.width=o.height=1;var a=r.getIntersectionList(o,null);a.length&&(r=a[a.length-1])}return r?C(r):null},n.plugin=function(e){e(n,y,x,$,b)},$.win.Snap=n,n}(e||this);return r.plugin(function(n,r,i,o,a){function s(e,t){if(null==t){var r=!0;if(!(t="linearGradient"==e.type||"radialGradient"==e.type?e.node.getAttribute("gradientTransform"):"pattern"==e.type?e.node.getAttribute("patternTransform"):e.node.getAttribute("transform")))return new n.Matrix;t=n._.svgTransform2string(t)}else t=n._.rgTransform.test(t)?p(t).replace(/\.{3}|\u2026/g,e._.transform||""):n._.svgTransform2string(t),d(t,"array")&&(t=n.path?n.path.toString.call(t):p(t)),e._.transform=t;var i=n._.transform2matrix(t,e.getBBox(1));return r?i:void(e.matrix=i)}function l(e){function t(e,t){var r=h(e.node,t);r=r&&r.match(o),(r=r&&r[2])&&"#"==r.charAt()&&(r=r.substring(1))&&(s[r]=(s[r]||[]).concat(function(r){var i={};i[t]=n.url(r),h(e.node,i)}))}for(var r,i=e.selectAll("*"),o=/^\s*url\(("|'|)(.*)\1\)\s*$/,a=[],s={},l=0,u=i.length;u>l;l++){r=i[l],t(r,"fill"),t(r,"stroke"),t(r,"filter"),t(r,"mask"),t(r,"clip-path"),function(e){var t=h(e.node,"xlink:href");t&&"#"==t.charAt()&&(t=t.substring(1))&&(s[t]=(s[t]||[]).concat(function(t){e.attr("xlink:href","#"+t)}))}(r);var c=h(r.node,"id");c&&(h(r.node,{id:r.id}),a.push({old:c,id:r.id}))}for(l=0,u=a.length;u>l;l++){var d=s[a[l].old];if(d)for(var p=0,f=d.length;f>p;p++)d[p](a[l].id)}}function u(e){return function(){var t=e?"<"+this.type:"",n=this.node.attributes,r=this.node.childNodes;if(e)for(var i=0,o=n.length;o>i;i++)t+=" "+n[i].name+'="'+n[i].value.replace(/"/g,'\\"')+'"';if(r.length){for(e&&(t+=">"),i=0,o=r.length;o>i;i++)3==r[i].nodeType?t+=r[i].nodeValue:1==r[i].nodeType&&(t+=v(r[i]).toString());e&&(t+="")}else e&&(t+="/>");return t}}var c=r.prototype,d=n.is,p=String,f=n._unit2px,h=n._.$,g=n._.make,m=n._.getSomeDefs,v=n._.wrap;c.getBBox=function(e){if("tspan"==this.type)return n._.box(this.node.getClientRects().item(0));if(!n.Matrix||!n.path)return this.node.getBBox();var t=this,r=new n.Matrix;if(t.removed)return n._.box();for(;"use"==t.type;)if(e||(r=r.add(t.transform().localMatrix.translate(t.attr("x")||0,t.attr("y")||0))),t.original)t=t.original;else{var i=t.attr("xlink:href");t=t.original=t.node.ownerDocument.getElementById(i.substring(i.indexOf("#")+1))}var o=t._,a=n.path.get[t.type]||n.path.get.deflt;try{return e?(o.bboxwt=a?n.path.getBBox(t.realPath=a(t)):n._.box(t.node.getBBox()),n._.box(o.bboxwt)):(t.realPath=a(t),t.matrix=t.transform().localMatrix,o.bbox=n.path.getBBox(n.path.map(t.realPath,r.add(t.matrix))),n._.box(o.bbox))}catch(e){return n._.box()}};var y=function(){return this.string};c.transform=function(e){var t=this._;if(null==e){for(var r,i=this,o=new n.Matrix(this.node.getCTM()),a=s(this),l=[a],u=new n.Matrix,c=a.toTransformString(),d=p(a)==p(this.matrix)?p(t.transform):c;"svg"!=i.type&&(i=i.parent());)l.push(s(i));for(r=l.length;r--;)u.add(l[r]);return{string:d,globalMatrix:o,totalMatrix:u,localMatrix:a,diffMatrix:o.clone().add(a.invert()),global:o.toTransformString(),total:u.toTransformString(),local:c,toString:y}}return e instanceof n.Matrix?(this.matrix=e,this._.transform=e.toTransformString()):s(this,e),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?h(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?h(this.node,{patternTransform:this.matrix}):h(this.node,{transform:this.matrix})),this},c.parent=function(){return v(this.node.parentNode)},c.append=c.add=function(e){if(e){if("set"==e.type){var t=this;return e.forEach(function(e){t.add(e)}),this}e=v(e),this.node.appendChild(e.node),e.paper=this.paper}return this},c.appendTo=function(e){return e&&(e=v(e),e.append(this)),this},c.prepend=function(e){if(e){if("set"==e.type){var t,n=this;return e.forEach(function(e){t?t.after(e):n.prepend(e),t=e}),this}e=v(e);var r=e.parent();this.node.insertBefore(e.node,this.node.firstChild),this.add&&this.add(),e.paper=this.paper,this.parent()&&this.parent().add(),r&&r.add()}return this},c.prependTo=function(e){return e=v(e),e.prepend(this),this},c.before=function(e){if("set"==e.type){var t=this;return e.forEach(function(e){var n=e.parent();t.node.parentNode.insertBefore(e.node,t.node),n&&n.add()}),this.parent().add(),this}e=v(e);var n=e.parent();return this.node.parentNode.insertBefore(e.node,this.node),this.parent()&&this.parent().add(),n&&n.add(),e.paper=this.paper,this},c.after=function(e){e=v(e);var t=e.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(e.node,this.node.nextSibling):this.node.parentNode.appendChild(e.node),this.parent()&&this.parent().add(),t&&t.add(),e.paper=this.paper,this},c.insertBefore=function(e){e=v(e);var t=this.parent();return e.node.parentNode.insertBefore(this.node,e.node),this.paper=e.paper,t&&t.add(),e.parent()&&e.parent().add(),this},c.insertAfter=function(e){e=v(e);var t=this.parent();return e.node.parentNode.insertBefore(this.node,e.node.nextSibling),this.paper=e.paper,t&&t.add(),e.parent()&&e.parent().add(),this},c.remove=function(){var e=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,e&&e.add(),this},c.select=function(e){return v(this.node.querySelector(e))},c.selectAll=function(e){for(var t=this.node.querySelectorAll(e),r=(n.set||Array)(),i=0;i{contents}',{x:+t.x.toFixed(3),y:+t.y.toFixed(3),width:+t.width.toFixed(3),height:+t.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r)))}},a.prototype.select=c.select,a.prototype.selectAll=c.selectAll}),r.plugin(function(e,r,i,o,a){function s(e,t,n){return function(r){var i=r.slice(e,t);return 1==i.length&&(i=i[0]),n?n(i):i}} var l=r.prototype,u=e.is,c=String,d="hasOwnProperty",p=function(e,t,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=e,this.dur=t,r&&(this.easing=r),i&&(this.callback=i)};e._.Animation=p,e.animation=function(e,t,n,r){return new p(e,t,n,r)},l.inAnim=function(){var e=this,t=[];for(var n in e.anims)e.anims[d](n)&&function(e){t.push({anim:new p(e._attrs,e.dur,e.easing,e._callback),mina:e,curStatus:e.status(),status:function(t){return e.status(t)},stop:function(){e.stop()}})}(e.anims[n]);return t},e.animate=function(e,r,i,o,a,s){"function"!=typeof a||a.length||(s=a,a=n.linear);var l=n.time(),u=n(e,r,l,l+o,n.time,i,a);return s&&t.once("mina.finish."+u.id,s),u},l.stop=function(){for(var e=this.inAnim(),t=0,n=e.length;n>t;t++)e[t].stop();return this},l.animate=function(e,r,i,o){"function"!=typeof i||i.length||(o=i,i=n.linear),e instanceof p&&(o=e.callback,i=e.easing,r=e.dur,e=e.attr);var a,l,f,h,g=[],m=[],v={},y=this;for(var b in e)if(e[d](b)){y.equal?(h=y.equal(b,c(e[b])),a=h.from,l=h.to,f=h.f):(a=+y.attr(b),l=+e[b]);var w=u(a,"array")?a.length:1;v[b]=s(g.length,g.length+w,f),g=g.concat(a),m=m.concat(l)}var x=n.time(),C=n(g,m,x,x+r,n.time,function(e){var t={};for(var n in v)v[d](n)&&(t[n]=v[n](e));y.attr(t)},i);return y.anims[C.id]=C,C._attrs=e,C._callback=o,t("snap.animcreated."+y.id,C),t.once("mina.finish."+C.id,function(){t.off("mina.*."+C.id),delete y.anims[C.id],o&&o.call(y)}),t.once("mina.stop."+C.id,function(){t.off("mina.*."+C.id),delete y.anims[C.id]}),y}}),r.plugin(function(e,t,n,r,i){function o(e,t,n,r,i,o){return null==t&&"[object SVGMatrix]"==a.call(e)?(this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.e=e.e,void(this.f=e.f)):void(null!=e?(this.a=+e,this.b=+t,this.c=+n,this.d=+r,this.e=+i,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var a=Object.prototype.toString,s=String,l=Math;!function(t){function n(e){return e[0]*e[0]+e[1]*e[1]}function r(e){var t=l.sqrt(n(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}t.add=function(e,t,n,r,i,a){if(e&&e instanceof o)return this.add(e.a,e.b,e.c,e.d,e.e,e.f);var s=e*this.a+t*this.c,l=e*this.b+t*this.d;return this.e+=i*this.a+a*this.c,this.f+=i*this.b+a*this.d,this.c=n*this.a+r*this.c,this.d=n*this.b+r*this.d,this.a=s,this.b=l,this},o.prototype.multLeft=function(e,t,n,r,i,a){if(e&&e instanceof o)return this.multLeft(e.a,e.b,e.c,e.d,e.e,e.f);var s=e*this.a+n*this.b,l=e*this.c+n*this.d,u=e*this.e+n*this.f+i;return this.b=t*this.a+r*this.b,this.d=t*this.c+r*this.d,this.f=t*this.e+r*this.f+a,this.a=s,this.c=l,this.e=u,this},t.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new o(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},t.clone=function(){return new o(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(e,t){return this.e+=e*this.a+t*this.c,this.f+=e*this.b+t*this.d,this},t.scale=function(e,t,n,r){return null==t&&(t=e),(n||r)&&this.translate(n,r),this.a*=e,this.b*=e,this.c*=t,this.d*=t,(n||r)&&this.translate(-n,-r),this},t.rotate=function(t,n,r){t=e.rad(t),n=n||0,r=r||0;var i=+l.cos(t).toFixed(9),o=+l.sin(t).toFixed(9);return this.add(i,o,-o,i,n,r),this.add(1,0,0,1,-n,-r)},t.skewX=function(e){return this.skew(e,0)},t.skewY=function(e){return this.skew(0,e)},t.skew=function(t,n){t=t||0,n=n||0,t=e.rad(t),n=e.rad(n);var r=l.tan(t).toFixed(9),i=l.tan(n).toFixed(9);return this.add(1,i,r,1,0,0)},t.x=function(e,t){return e*this.a+t*this.c+this.e},t.y=function(e,t){return e*this.b+t*this.d+this.f},t.get=function(e){return+this[s.fromCharCode(97+e)].toFixed(4)},t.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.determinant=function(){return this.a*this.d-this.b*this.c},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var i=[[this.a,this.b],[this.c,this.d]];t.scalex=l.sqrt(n(i[0])),r(i[0]),t.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*t.shear,i[1][1]-i[0][1]*t.shear],t.scaley=l.sqrt(n(i[1])),r(i[1]),t.shear/=t.scaley,this.determinant()<0&&(t.scalex=-t.scalex);var o=i[0][1],a=i[1][1];return 0>a?(t.rotate=e.deg(l.acos(a)),0>o&&(t.rotate=360-t.rotate)):t.rotate=e.deg(l.asin(o)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(e){var t=e||this.split();return+t.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[+t.dx.toFixed(4),+t.dy.toFixed(4)]:"")+(t.rotate?"r"+[+t.rotate.toFixed(4),0,0]:"")+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:""))}}(o.prototype),e.Matrix=o,e.matrix=function(e,t,n,r,i,a){return new o(e,t,n,r,i,a)}}),r.plugin(function(e,n,r,i,o){function a(r){return function(i){if(t.stop(),i instanceof o&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,f(this).appendChild(i),i=d(i)),i instanceof n)if("radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type){i.node.id||g(i.node,{id:i.id});var a=m(i.node.id)}else a=i.attr(r);else if(a=e.color(i),a.error){var s=e(f(this).ownerSVGElement).gradient(i);s?(s.node.id||g(s.node,{id:s.id}),a=m(s.node.id)):a=i}else a=v(a);var l={};l[r]=a,g(this.node,l),this.node.style[r]=b}}function s(e){t.stop(),e==+e&&(e+="px"),this.node.style.fontSize=e}function l(e){for(var t=[],n=e.childNodes,r=0,i=n.length;i>r;r++){var o=n[r];3==o.nodeType&&t.push(o.nodeValue),"tspan"==o.tagName&&(1==o.childNodes.length&&3==o.firstChild.nodeType?t.push(o.firstChild.nodeValue):t.push(l(o)))}return t}function u(){return t.stop(),this.node.style.fontSize}var c=e._.make,d=e._.wrap,p=e.is,f=e._.getSomeDefs,h=/^url\((['"]?)([^)]+)\1\)$/,g=e._.$,m=e.url,v=String,y=e._.separator,b="";e.deurl=function(e){var t=String(e).match(h);return t?t[2]:e},t.on("snap.util.attr.mask",function(e){if(e instanceof n||e instanceof o){if(t.stop(),e instanceof o&&1==e.node.childNodes.length&&(e=e.node.firstChild,f(this).appendChild(e),e=d(e)),"mask"==e.type)var r=e;else r=c("mask",f(this)),r.node.appendChild(e.node);!r.node.id&&g(r.node,{id:r.id}),g(this.node,{mask:m(r.id)})}}),function(e){t.on("snap.util.attr.clip",e),t.on("snap.util.attr.clip-path",e),t.on("snap.util.attr.clipPath",e)}(function(e){if(e instanceof n||e instanceof o){t.stop();for(var r,i=e.node;i;){if("clipPath"===i.nodeName){r=new n(i);break}if("svg"===i.nodeName){r=void 0;break}i=i.parentNode}r||(r=c("clipPath",f(this)),r.node.appendChild(e.node),!r.node.id&&g(r.node,{id:r.id})),g(this.node,{"clip-path":m(r.node.id||r.id)})}}),t.on("snap.util.attr.fill",a("fill")),t.on("snap.util.attr.stroke",a("stroke"));var w=/^([lr])(?:\(([^)]*)\))?(.*)$/i;t.on("snap.util.grad.parse",function(e){function t(e,t){for(var n=(t-s)/(e-l),r=l;e>r;r++)o[r].offset=+(+s+n*(r-l)).toFixed(2);l=e,s=t}e=v(e);var n=e.match(w);if(!n)return null;var r=n[1],i=n[2],o=n[3];i=i.split(/\s*,\s*/).map(function(e){return+e==e?+e:e}),1==i.length&&0==i[0]&&(i=[]),o=o.split("-"),o=o.map(function(e){e=e.split(":");var t={color:e[0]};return e[1]&&(t.offset=parseFloat(e[1])),t});var a=o.length,s=0,l=0;a--;for(var u=0;a>u;u++)"offset"in o[u]&&t(u,o[u].offset);return o[a].offset=o[a].offset||100,t(a,o[a].offset),{type:r,params:i,stops:o}}),t.on("snap.util.attr.d",function(n){t.stop(),p(n,"array")&&p(n[0],"array")&&(n=e.path.toString.call(n)),n=v(n),n.match(/[ruo]/i)&&(n=e.path.toAbsolute(n)),g(this.node,{d:n})})(-1),t.on("snap.util.attr.#text",function(e){t.stop(),e=v(e);for(var n=i.doc.createTextNode(e);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(n)})(-1),t.on("snap.util.attr.path",function(e){t.stop(),this.attr({d:e})})(-1),t.on("snap.util.attr.class",function(e){t.stop(),this.node.className.baseVal=e})(-1),t.on("snap.util.attr.viewBox",function(e){var n;n=p(e,"object")&&"x"in e?[e.x,e.y,e.width,e.height].join(" "):p(e,"array")?e.join(" "):e,g(this.node,{viewBox:n}),t.stop()})(-1),t.on("snap.util.attr.transform",function(e){this.transform(e),t.stop()})(-1),t.on("snap.util.attr.r",function(e){"rect"==this.type&&(t.stop(),g(this.node,{rx:e,ry:e}))})(-1),t.on("snap.util.attr.textpath",function(e){if(t.stop(),"text"==this.type){var r,i,o;if(!e&&this.textPath){for(i=this.textPath;i.node.firstChild;)this.node.appendChild(i.node.firstChild);return i.remove(),void delete this.textPath}if(p(e,"string")){var a=f(this),s=d(a.parentNode).path(e);a.appendChild(s.node),r=s.id,s.attr({id:r})}else(e=d(e))instanceof n&&((r=e.attr("id"))||(r=e.id,e.attr({id:r})));if(r)if(i=this.textPath,o=this.node,i)i.attr({"xlink:href":"#"+r});else{for(i=g("textPath",{"xlink:href":"#"+r});o.firstChild;)i.appendChild(o.firstChild);o.appendChild(i),this.textPath=d(i)}}})(-1),t.on("snap.util.attr.text",function(e){if("text"==this.type){for(var n=this.node,r=function(e){var t=g("tspan");if(p(e,"array"))for(var n=0;n1&&(e=Array.prototype.slice.call(arguments,0));var t={};return l(e,"object")&&!l(e,"array")?t=e:null!=e&&(t={points:e}),this.el("polyline",t)},s.polygon=function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments,0));var t={};return l(e,"object")&&!l(e,"array")?t=e:null!=e&&(t={points:e}),this.el("polygon",t)},function(){function r(){return this.selectAll("stop")}function i(e,t){var r=d("stop"),i={offset:+t+"%"};e=n.color(e),i["stop-color"]=e.hex,e.opacity<1&&(i["stop-opacity"]=e.opacity),d(r,i);for(var o,a=this.stops(),s=0;st){this.node.insertBefore(r,a[s].node),o=!0;break}}return o||this.node.appendChild(r),this}function o(){if("linearGradient"==this.type){var e=d(this.node,"x1")||0,t=d(this.node,"x2")||1,r=d(this.node,"y1")||0,i=d(this.node,"y2")||0;return n._.box(e,r,math.abs(t-e),math.abs(i-r))}var o=this.node.cx||.5,a=this.node.cy||.5,s=this.node.r||0;return n._.box(o-s,a-s,2*s,2*s)}function a(e){var r=e,i=this.stops();if("string"==typeof e&&(r=t("snap.util.grad.parse",null,"l(0,0,0,1)"+e).firstDefined().stops),n.is(r,"array")){for(var o=0;os;s++){var l=o[s];r.addStop(l.color,l.offset)}return r}function u(e,t,s,l,u){var c=n._.make("linearGradient",e);return c.stops=r,c.addStop=i,c.getBBox=o,c.setStops=a,null!=t&&d(c.node,{x1:t,y1:s,x2:l,y2:u}),c}function c(e,t,a,s,l,u){var c=n._.make("radialGradient",e);return c.stops=r,c.addStop=i,c.getBBox=o,null!=t&&d(c.node,{cx:t,cy:a,r:s}),null!=l&&null!=u&&d(c.node,{fx:l,fy:u}),c}var d=n._.$;s.gradient=function(e){return l(this.defs,e)},s.gradientLinear=function(e,t,n,r){return u(this.defs,e,t,n,r)},s.gradientRadial=function(e,t,n,r,i){return c(this.defs,e,t,n,r,i)},s.toString=function(){var e,t=this.node.ownerDocument,r=t.createDocumentFragment(),i=t.createElement("div"),o=this.node.cloneNode(!0);return r.appendChild(i),i.appendChild(o),n._.$(o,{xmlns:"http://www.w3.org/2000/svg"}),e=i.innerHTML,r.removeChild(r.firstChild),e},s.toDataURL=function(){return e&&e.btoa?"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this))):void 0},s.clear=function(){for(var e,t=this.node.firstChild;t;)e=t.nextSibling,"defs"!=t.tagName?t.parentNode.removeChild(t):s.clear.call({node:t}),t=e}}()}),r.plugin(function(e,t,n,r){function i(e){var t=i.ps=i.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(function(){for(var n in t)t[L](n)&&n!=e&&!--t[n].sleep&&delete t[n]}),t[e]}function o(e,t,n,r){return null==e&&(e=t=n=r=0),null==t&&(t=e.y,n=e.width,r=e.height,e=e.x),{x:e,y:t,width:n,w:n,height:r,h:r,x2:e+n,y2:t+r,cx:e+n/2,cy:t+r/2,r1:H.min(n,r)/2,r2:H.max(n,r)/2,r0:H.sqrt(n*n+r*r)/2,path:$(e,t,n,r),vb:[e,t,n,r].join(" ")}}function a(){return this.join(",").replace(V,"$1")}function s(e){var t=N(e);return t.toString=a,t}function l(e,t,n,r,i,o,a,s,l){return null==l?g(e,t,n,r,i,o,a,s):c(e,t,n,r,i,o,a,s,m(e,t,n,r,i,o,a,s,l))}function u(n,r){function i(e){return+(+e).toFixed(3)}return e._.cacher(function(e,o,a){e instanceof t&&(e=e.attr("d")),e=O(e);for(var s,u,d,p,f,h="",g={},m=0,v=0,y=e.length;y>v;v++){if(d=e[v],"M"==d[0])s=+d[1],u=+d[2];else{if(p=l(s,u,d[1],d[2],d[3],d[4],d[5],d[6]),m+p>o){if(r&&!g.start){if(f=l(s,u,d[1],d[2],d[3],d[4],d[5],d[6],o-m),h+=["C"+i(f.start.x),i(f.start.y),i(f.m.x),i(f.m.y),i(f.x),i(f.y)],a)return h;g.start=h,h=["M"+i(f.x),i(f.y)+"C"+i(f.n.x),i(f.n.y),i(f.end.x),i(f.end.y),i(d[5]),i(d[6])].join(),m+=p,s=+d[5],u=+d[6];continue}if(!n&&!r)return f=l(s,u,d[1],d[2],d[3],d[4],d[5],d[6],o-m)}m+=p,s=+d[5],u=+d[6]}h+=d.shift()+d}return g.end=h,f=n?m:r?g:c(s,u,d[0],d[1],d[2],d[3],d[4],d[5],1)},null,e._.clone)}function c(e,t,n,r,i,o,a,s,l){var u=1-l,c=G(u,3),d=G(u,2),p=l*l,f=p*l,h=c*e+3*d*l*n+3*u*l*l*i+f*a,g=c*t+3*d*l*r+3*u*l*l*o+f*s,m=e+2*l*(n-e)+p*(i-2*n+e),v=t+2*l*(r-t)+p*(o-2*r+t),y=n+2*l*(i-n)+p*(a-2*i+n),b=r+2*l*(o-r)+p*(s-2*o+r);return{x:h,y:g,m:{x:m,y:v},n:{x:y,y:b},start:{x:u*e+l*n,y:u*t+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*H.atan2(m-y,v-b)/z}}function d(t,n,r,i,a,s,l,u){e.is(t,"array")||(t=[t,n,r,i,a,s,l,u]);var c=M.apply(null,t);return o(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function p(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function f(e,t){return e=o(e),t=o(t),p(t,e.x,e.y)||p(t,e.x2,e.y)||p(t,e.x,e.y2)||p(t,e.x2,e.y2)||p(e,t.x,t.y)||p(e,t.x2,t.y)||p(e,t.x,t.y2)||p(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)}function h(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n}function g(e,t,n,r,i,o,a,s,l){null==l&&(l=1),l=l>1?1:0>l?0:l;for(var u=l/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;12>f;f++){var g=u*c[f]+u,m=h(g,e,n,i,a),v=h(g,t,r,o,s),y=m*m+v*v;p+=d[f]*H.sqrt(y)}return u*p}function m(e,t,n,r,i,o,a,s,l){if(!(0>l||g(e,t,n,r,i,o,a,s).01;)c/=2,d+=(l>u?1:-1)*c,u=g(e,t,n,r,i,o,a,s,d);return d}}function v(e,t,n,r,i,o,a,s){if(!(U(e,n)U(i,a)||U(t,r)U(o,s))){var l=(e*r-t*n)*(i-a)-(e-n)*(i*s-o*a),u=(e*r-t*n)*(o-s)-(t-r)*(i*s-o*a),c=(e-n)*(o-s)-(t-r)*(i-a);if(c){var d=l/c,p=u/c,f=+d.toFixed(2),h=+p.toFixed(2);if(!(f<+B(e,n).toFixed(2)||f>+U(e,n).toFixed(2)||f<+B(i,a).toFixed(2)||f>+U(i,a).toFixed(2)||h<+B(t,r).toFixed(2)||h>+U(t,r).toFixed(2)||h<+B(o,s).toFixed(2)||h>+U(o,s).toFixed(2)))return{x:d,y:p}}}}function y(e,t,n){if(!f(d(e),d(t)))return n?0:[];for(var r=g.apply(0,e),i=g.apply(0,t),o=~~(r/8),a=~~(i/8),s=[],l=[],u={},p=n?0:[],h=0;o+1>h;h++){var m=c.apply(0,e.concat(h/o));s.push({x:m.x,y:m.y,t:h/o})}for(h=0;a+1>h;h++)m=c.apply(0,t.concat(h/a)),l.push({x:m.x,y:m.y,t:h/a});for(h=0;o>h;h++)for(var y=0;a>y;y++){var b=s[h],w=s[h+1],x=l[y],C=l[y+1],S=W(w.x-b.x)<.001?"y":"x",$=W(C.x-x.x)<.001?"y":"x",E=v(b.x,b.y,w.x,w.y,x.x,x.y,C.x,C.y);if(E){if(u[E.x.toFixed(4)]==E.y.toFixed(4))continue;u[E.x.toFixed(4)]=E.y.toFixed(4);var T=b.t+W((E[S]-b[S])/(w[S]-b[S]))*(w.t-b.t),k=x.t+W((E[$]-x[$])/(C[$]-x[$]))*(C.t-x.t);T>=0&&1>=T&&k>=0&&1>=k&&(n?p++:p.push({x:E.x,y:E.y,t1:T,t2:k}))}}return p}function b(e,t){return x(e,t)}function w(e,t){return x(e,t,1)}function x(e,t,n){e=O(e),t=O(t);for(var r,i,o,a,s,l,u,c,d,p,f=n?0:[],h=0,g=e.length;g>h;h++){var m=e[h];if("M"==m[0])r=s=m[1],i=l=m[2];else{"C"==m[0]?(d=[r,i].concat(m.slice(1)),r=d[6],i=d[7]):(d=[r,i,r,i,s,l,s,l],r=s,i=l);for(var v=0,b=t.length;b>v;v++){var w=t[v];if("M"==w[0])o=u=w[1],a=c=w[2];else{"C"==w[0]?(p=[o,a].concat(w.slice(1)),o=p[6],a=p[7]):(p=[o,a,o,a,u,c,u,c],o=u,a=c);var x=y(d,p,n);if(n)f+=x;else{for(var C=0,S=x.length;S>C;C++)x[C].segment1=h,x[C].segment2=v,x[C].bez1=d,x[C].bez2=p;f=f.concat(x)}}}}}return f}function C(e,t,n){var r=S(e);return p(r,t,n)&&x(e,[["M",t,n],["H",r.x2+10]],1)%2==1}function S(e){var t=i(e);if(t.bbox)return N(t.bbox);if(!e)return o();e=O(e);for(var n,r=0,a=0,s=[],l=[],u=0,c=e.length;c>u;u++)if(n=e[u],"M"==n[0])r=n[1],a=n[2],s.push(r),l.push(a);else{var d=M(r,a,n[1],n[2],n[3],n[4],n[5],n[6]);s=s.concat(d.min.x,d.max.x),l=l.concat(d.min.y,d.max.y),r=n[5],a=n[6]}var p=B.apply(0,s),f=B.apply(0,l),h=U.apply(0,s),g=U.apply(0,l),m=o(p,f,h-p,g-f);return t.bbox=N(m),m}function $(e,t,n,r,i){if(i)return[["M",+e+ +i,t],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.toString=a,o}function E(e,t,n,r,i){if(null==i&&null==r&&(r=n),e=+e,t=+t,n=+n,r=+r,null!=i)var o=Math.PI/180,s=e+n*Math.cos(-r*o),l=e+n*Math.cos(-i*o),u=t+n*Math.sin(-r*o),c=t+n*Math.sin(-i*o),d=[["M",s,u],["A",n,n,0,+(i-r>180),0,l,c]];else d=[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return d.toString=a,d}function T(t){var n=i(t),r=String.prototype.toLowerCase;if(n.rel)return s(n.rel);e.is(t,"array")&&e.is(t&&t[0],"array")||(t=e.parsePathString(t));var o=[],l=0,u=0,c=0,d=0,p=0;"M"==t[0][0]&&(l=t[0][1],u=t[0][2],c=l,d=u,p++,o.push(["M",l,u]));for(var f=p,h=t.length;h>f;f++){var g=o[f]=[],m=t[f];if(m[0]!=r.call(m[0]))switch(g[0]=r.call(m[0]),g[0]){case"a":g[1]=m[1],g[2]=m[2],g[3]=m[3],g[4]=m[4],g[5]=m[5],g[6]=+(m[6]-l).toFixed(3),g[7]=+(m[7]-u).toFixed(3);break;case"v":g[1]=+(m[1]-u).toFixed(3);break;case"m":c=m[1],d=m[2];default:for(var v=1,y=m.length;y>v;v++)g[v]=+(m[v]-(v%2?l:u)).toFixed(3)}else{g=o[f]=[],"m"==m[0]&&(c=m[1]+l,d=m[2]+u);for(var b=0,w=m.length;w>b;b++)o[f][b]=m[b]}var x=o[f].length;switch(o[f][0]){case"z":l=c,u=d;break;case"h":l+=+o[f][x-1];break;case"v":u+=+o[f][x-1];break;default:l+=+o[f][x-2],u+=+o[f][x-1]}}return o.toString=a,n.rel=s(o),o}function k(t){var n=i(t);if(n.abs)return s(n.abs);if(F(t,"array")&&F(t&&t[0],"array")||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var r,o=[],l=0,u=0,c=0,d=0,p=0;"M"==t[0][0]&&(l=+t[0][1],u=+t[0][2],c=l,d=u,p++,o[0]=["M",l,u]);for(var f,h,g=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),m=p,v=t.length;v>m;m++){if(o.push(f=[]),h=t[m],(r=h[0])!=r.toUpperCase())switch(f[0]=r.toUpperCase(),f[0]){case"A":f[1]=h[1],f[2]=h[2],f[3]=h[3],f[4]=h[4],f[5]=h[5],f[6]=+h[6]+l,f[7]=+h[7]+u;break;case"V":f[1]=+h[1]+u;break;case"H":f[1]=+h[1]+l;break;case"R":for(var y=[l,u].concat(h.slice(1)),b=2,w=y.length;w>b;b++)y[b]=+y[b]+l,y[++b]=+y[b]+u;o.pop(),o=o.concat(R(y,g));break;case"O":o.pop(),y=E(l,u,h[1],h[2]),y.push(y[0]),o=o.concat(y);break;case"U":o.pop(),o=o.concat(E(l,u,h[1],h[2],h[3])),f=["U"].concat(o[o.length-1].slice(-2));break;case"M":c=+h[1]+l,d=+h[2]+u;default:for(b=1,w=h.length;w>b;b++)f[b]=+h[b]+(b%2?l:u)}else if("R"==r)y=[l,u].concat(h.slice(1)),o.pop(),o=o.concat(R(y,g)),f=["R"].concat(h.slice(-2));else if("O"==r)o.pop(),y=E(l,u,h[1],h[2]),y.push(y[0]),o=o.concat(y);else if("U"==r)o.pop(),o=o.concat(E(l,u,h[1],h[2],h[3])),f=["U"].concat(o[o.length-1].slice(-2));else for(var x=0,C=h.length;C>x;x++)f[x]=h[x];if("O"!=(r=r.toUpperCase()))switch(f[0]){case"Z":l=+c,u=+d;break;case"H":l=f[1];break;case"V":u=f[1];break;case"M":c=f[f.length-2],d=f[f.length-1];default:l=f[f.length-2],u=f[f.length-1]}}return o.toString=a,n.abs=s(o),o}function _(e,t,n,r){return[e,t,n,r,n,r]}function A(e,t,n,r,i,o){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*r,a*i+s*n,a*o+s*r,i,o]}function D(t,n,r,i,o,a,s,l,u,c){var d,p=120*z/180,f=z/180*(+o||0),h=[],g=e._.cacher(function(e,t,n){return{x:e*H.cos(n)-t*H.sin(n),y:e*H.sin(n)+t*H.cos(n)}});if(!r||!i)return[t,n,l,u,l,u];if(c)$=c[0],E=c[1],C=c[2],S=c[3];else{d=g(t,n,-f),t=d.x,n=d.y,d=g(l,u,-f),l=d.x,u=d.y;var m=(H.cos(z/180*o),H.sin(z/180*o),(t-l)/2),v=(n-u)/2,y=m*m/(r*r)+v*v/(i*i);y>1&&(y=H.sqrt(y),r*=y,i*=y);var b=r*r,w=i*i,x=(a==s?-1:1)*H.sqrt(W((b*w-b*v*v-w*m*m)/(b*v*v+w*m*m))),C=x*r*v/i+(t+l)/2,S=x*-i*m/r+(n+u)/2,$=H.asin(((n-S)/i).toFixed(9)),E=H.asin(((u-S)/i).toFixed(9));$=C>t?z-$:$,E=C>l?z-E:E,0>$&&($=2*z+$),0>E&&(E=2*z+E),s&&$>E&&($-=2*z),!s&&E>$&&(E-=2*z)}var T=E-$;if(W(T)>p){var k=E,_=l,A=u;E=$+p*(s&&E>$?1:-1),l=C+r*H.cos(E),u=S+i*H.sin(E),h=D(l,u,r,i,o,0,s,_,A,[E,k,C,S])}T=E-$;var M=H.cos($),O=H.sin($),P=H.cos(E),R=H.sin(E),I=H.tan(T/4),F=4/3*r*I,N=4/3*i*I,L=[t,n],V=[t+F*O,n-N*M],j=[l+F*R,u-N*P],B=[l,u];if(V[0]=2*L[0]-V[0],V[1]=2*L[1]-V[1],c)return[V,j,B].concat(h);h=[V,j,B].concat(h).join().split(",");for(var U=[],G=0,q=h.length;q>G;G++)U[G]=G%2?g(h[G-1],h[G],f).y:g(h[G],h[G+1],f).x;return U}function M(e,t,n,r,i,o,a,s){for(var l,u,c,d,p,f,h,g,m=[],v=[[],[]],y=0;2>y;++y)if(0==y?(u=6*e-12*n+6*i,l=-3*e+9*n-9*i+3*a,c=3*n-3*e):(u=6*t-12*r+6*o,l=-3*t+9*r-9*o+3*s,c=3*r-3*t),W(l)<1e-12){if(W(u)<1e-12)continue;(d=-c/u)>0&&1>d&&m.push(d)}else h=u*u-4*c*l,g=H.sqrt(h),0>h||(p=(-u+g)/(2*l),p>0&&1>p&&m.push(p),(f=(-u-g)/(2*l))>0&&1>f&&m.push(f));for(var b,w=m.length,x=w;w--;)d=m[w],b=1-d,v[0][w]=b*b*b*e+3*b*b*d*n+3*b*d*d*i+d*d*d*a,v[1][w]=b*b*b*t+3*b*b*d*r+3*b*d*d*o+d*d*d*s;return v[0][x]=e,v[1][x]=t,v[0][x+1]=a,v[1][x+1]=s,v[0].length=v[1].length=x+2,{min:{x:B.apply(0,v[0]),y:B.apply(0,v[1])},max:{x:U.apply(0,v[0]),y:U.apply(0,v[1])}}}function O(e,t){var n=!t&&i(e);if(!t&&n.curve)return s(n.curve);for(var r=k(e),o=t&&k(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u=(function(e,t,n){var r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"].concat(D.apply(0,[t.x,t.y].concat(e.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*t.x-t.bx,i=2*t.y-t.by):(r=t.x,i=t.y),e=["C",r,i].concat(e.slice(1));break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"].concat(A(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"].concat(A(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"].concat(_(t.x,t.y,e[1],e[2]));break;case"H":e=["C"].concat(_(t.x,t.y,e[1],t.y));break;case"V":e=["C"].concat(_(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"].concat(_(t.x,t.y,t.X,t.Y))}return e}),c=function(e,t){if(e[t].length>7){e[t].shift();for(var n=e[t];n.length;)p[t]="A",o&&(f[t]="A"),e.splice(t++,0,["C"].concat(n.splice(0,6)));e.splice(t,1),v=U(r.length,o&&o.length||0)}},d=function(e,t,n,i,a){e&&t&&"M"==e[a][0]&&"M"!=t[a][0]&&(t.splice(a,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=e[a][1],n.y=e[a][2],v=U(r.length,o&&o.length||0))},p=[],f=[],h="",g="",m=0,v=U(r.length,o&&o.length||0);v>m;m++){r[m]&&(h=r[m][0]),"C"!=h&&(p[m]=h,m&&(g=p[m-1])),r[m]=u(r[m],a,g),"A"!=p[m]&&"C"==h&&(p[m]="C"),c(r,m),o&&(o[m]&&(h=o[m][0]),"C"!=h&&(f[m]=h,m&&(g=f[m-1])),o[m]=u(o[m],l,g),"A"!=f[m]&&"C"==h&&(f[m]="C"),c(o,m)),d(r,o,a,l,m),d(o,r,l,a,m);var y=r[m],b=o&&o[m],w=y.length,x=o&&b.length;a.x=y[w-2],a.y=y[w-1],a.bx=j(y[w-4])||a.x,a.by=j(y[w-3])||a.y,l.bx=o&&(j(b[x-4])||l.x),l.by=o&&(j(b[x-3])||l.y),l.x=o&&b[x-2],l.y=o&&b[x-1]}return o||(n.curve=s(r)),o?[r,o]:r}function P(e,t){if(!t)return e;var n,r,i,o,a,s,l;for(e=O(e),i=0,a=e.length;a>i;i++)for(l=e[i],o=1,s=l.length;s>o;o+=2)n=t.x(l[o],l[o+1]),r=t.y(l[o],l[o+1]),l[o]=n,l[o+1]=r;return e}function R(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var o=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4==r?o[3]={x:+e[0],y:+e[1]}:i-2==r&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[i-2],y:+e[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var I=t.prototype,F=e.is,N=e._.clone,L="hasOwnProperty",V=/,?([a-z]),?/gi,j=parseFloat,H=Math,z=H.PI,B=H.min,U=H.max,G=H.pow,W=H.abs,q=u(1),Y=u(),X=u(0,1),Z=e._unit2px,K={path:function(e){return e.attr("path")},circle:function(e){var t=Z(e);return E(t.cx,t.cy,t.r)},ellipse:function(e){var t=Z(e);return E(t.cx||0,t.cy||0,t.rx,t.ry)},rect:function(e){var t=Z(e);return $(t.x||0,t.y||0,t.width,t.height,t.rx,t.ry)},image:function(e){var t=Z(e);return $(t.x||0,t.y||0,t.width,t.height)},line:function(e){return"M"+[e.attr("x1")||0,e.attr("y1")||0,e.attr("x2"),e.attr("y2")]},polyline:function(e){return"M"+e.attr("points")},polygon:function(e){return"M"+e.attr("points")+"z"},deflt:function(e){ var t=e.node.getBBox();return $(t.x,t.y,t.width,t.height)}};e.path=i,e.path.getTotalLength=q,e.path.getPointAtLength=Y,e.path.getSubpath=function(e,t,n){if(this.getTotalLength(e)-n<1e-6)return X(e,t).end;var r=X(e,n,1);return t?X(r,t).end:r},I.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},I.getPointAtLength=function(e){return Y(this.attr("d"),e)},I.getSubpath=function(t,n){return e.path.getSubpath(this.attr("d"),t,n)},e._.box=o,e.path.findDotsAtSegment=c,e.path.bezierBBox=d,e.path.isPointInsideBBox=p,e.closest=function(t,n,r,i){for(var a=100,s=o(t-a/2,n-a/2,a,a),l=[],u=r[0].hasOwnProperty("x")?function(e){return{x:r[e].x,y:r[e].y}}:function(e){return{x:r[e],y:i[e]}},c=0;1e6>=a&&!c;){for(var d=0,f=r.length;f>d;d++){var h=u(d);if(p(s,h.x,h.y)){c++,l.push(h);break}}c||(a*=2,s=o(t-a/2,n-a/2,a,a))}if(1e6!=a){var g,m=1/0;for(d=0,f=l.length;f>d;d++){var v=e.len(t,n,l[d].x,l[d].y);m>v&&(m=v,l[d].len=v,g=l[d])}return g}},e.path.isBBoxIntersect=f,e.path.intersection=b,e.path.intersectionNumber=w,e.path.isPointInside=C,e.path.getBBox=S,e.path.get=K,e.path.toRelative=T,e.path.toAbsolute=k,e.path.toCubic=O,e.path.map=P,e.path.toString=a,e.path.clone=s}),r.plugin(function(e,r,i,o){var a=Math.max,s=Math.min,l=function(e){if(this.items=[],this.bindings={},this.length=0,this.type="set",e)for(var t=0,n=e.length;n>t;t++)e[t]&&(this[this.items.length]=this.items[this.items.length]=e[t],this.length++)},u=l.prototype;u.push=function(){for(var e,t,n=0,r=arguments.length;r>n;n++)(e=arguments[n])&&(t=this.items.length,this[t]=this.items[t]=e,this.length++);return this},u.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},u.forEach=function(e,t){for(var n=0,r=this.items.length;r>n;n++)if(!1===e.call(t,this.items[n],n))return this;return this},u.animate=function(r,i,o,a){"function"!=typeof o||o.length||(a=o,o=n.linear),r instanceof e._.Animation&&(a=r.callback,o=r.easing,i=o.dur,r=r.attr);var s=arguments;if(e.is(r,"array")&&e.is(s[s.length-1],"array"))var l=!0;var u,c=function(){u?this.b=u:u=this.b},d=0,p=this,f=a&&function(){++d==p.length&&a.call(this)};return this.forEach(function(e,n){t.once("snap.animcreated."+e.id,c),l?s[n]&&e.animate.apply(e,s[n]):e.animate(r,i,o,f)})},u.remove=function(){for(;this.length;)this.pop().remove();return this},u.bind=function(e,t,n){var r={};if("function"==typeof t)this.bindings[e]=t;else{var i=n||e;this.bindings[e]=function(e){r[i]=e,t.attr(r)}}return this},u.attr=function(e){var t={};for(var n in e)this.bindings[n]?this.bindings[n](e[n]):t[n]=e[n];for(var r=0,i=this.items.length;i>r;r++)this.items[r].attr(t);return this},u.clear=function(){for(;this.length;)this.pop()},u.splice=function(e,t,n){e=0>e?a(this.length+e,0):e,t=a(0,s(this.length-e,t));var r,i=[],o=[],u=[];for(r=2;rr;r++)o.push(this[e+r]);for(;rr?u[r]:i[r-c];for(r=this.items.length=this.length-=t-c;this[r];)delete this[r++];return new l(o)},u.exclude=function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]==e)return this.splice(t,1),!0;return!1},u.insertAfter=function(e){for(var t=this.items.length;t--;)this.items[t].insertAfter(e);return this},u.getBBox=function(){for(var e=[],t=[],n=[],r=[],i=this.items.length;i--;)if(!this.items[i].removed){var o=this.items[i].getBBox();e.push(o.x),t.push(o.y),n.push(o.x+o.width),r.push(o.y+o.height)}return e=s.apply(0,e),t=s.apply(0,t),n=a.apply(0,n),r=a.apply(0,r),{x:e,y:t,x2:n,y2:r,width:n-e,height:r-t,cx:e+(n-e)/2,cy:t+(r-t)/2}},u.clone=function(e){e=new l;for(var t=0,n=this.items.length;n>t;t++)e.push(this.items[t].clone());return e},u.toString=function(){return"Snap‘s set"},u.type="set",e.Set=l,e.set=function(){var e=new l;return arguments.length&&e.push.apply(e,Array.prototype.slice.call(arguments,0)),e}}),r.plugin(function(e,n,r,i){function o(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return 4==e.length?[t,0,e[2],e[3]]:[t,0];case"s":return 5==e.length?[t,1,1,e[3],e[4]]:3==e.length?[t,1,1]:[t,1]}}function a(t,n,r){t=t||new e.Matrix,n=n||new e.Matrix,t=e.parseTransformString(t.toTransformString())||[],n=e.parseTransformString(n.toTransformString())||[];for(var i,a,s,l,u=Math.max(t.length,n.length),c=[],f=[],h=0;u>h;h++){if(s=t[h]||o(n[h]),l=n[h]||o(s),s[0]!=l[0]||"r"==s[0].toLowerCase()&&(s[2]!=l[2]||s[3]!=l[3])||"s"==s[0].toLowerCase()&&(s[3]!=l[3]||s[4]!=l[4])){t=e._.transform2matrix(t,r()),n=e._.transform2matrix(n,r()),c=[["m",t.a,t.b,t.c,t.d,t.e,t.f]],f=[["m",n.a,n.b,n.c,n.d,n.e,n.f]];break}for(c[h]=[],f[h]=[],i=0,a=Math.max(s.length,l.length);a>i;i++)i in s&&(c[h][i]=s[i]),i in l&&(f[h][i]=l[i])}return{from:p(c),to:p(f),f:d(c)}}function s(e){return e}function l(e){return function(t){return+t.toFixed(3)+e}}function u(e){return e.join(" ")}function c(t){return e.rgb(t[0],t[1],t[2],t[3])}function d(e){var t,n,r,i,o,a,s=0,l=[];for(t=0,n=e.length;n>t;t++){for(o="[",a=['"'+e[t][0]+'"'],r=1,i=e[t].length;i>r;r++)a[r]="val["+s+++"]";o+=a+"]",l[t]=o}return Function("val","return Snap.path.toString.call(["+l+"])")}function p(e){for(var t=[],n=0,r=e.length;r>n;n++)for(var i=1,o=e[n].length;o>i;i++)t.push(e[n][i]);return t}function f(e){return isFinite(e)}function h(t,n){return!(!e.is(t,"array")||!e.is(n,"array"))&&t.toString()==n.toString()}var g={},m=/[%a-z]+$/i,v=String;g.stroke=g.fill="colour",n.prototype.equal=function(e,n){return t("snap.util.equal",this,e,n).firstDefined()},t.on("snap.util.equal",function(t,n){var r,i,o=v(this.attr(t)||""),y=this;if("colour"==g[t])return r=e.color(o),i=e.color(n),{from:[r.r,r.g,r.b,r.opacity],to:[i.r,i.g,i.b,i.opacity],f:c};if("viewBox"==t)return r=this.attr(t).vb.split(" ").map(Number),i=n.split(" ").map(Number),{from:r,to:i,f:u};if("transform"==t||"gradientTransform"==t||"patternTransform"==t)return"string"==typeof n&&(n=v(n).replace(/\.{3}|\u2026/g,o)),o=this.matrix,n=e._.rgTransform.test(n)?e._.transform2matrix(n,this.getBBox()):e._.transform2matrix(e._.svgTransform2string(n),this.getBBox()),a(o,n,function(){return y.getBBox(1)});if("d"==t||"path"==t)return r=e.path.toCubic(o,n),{from:p(r[0]),to:p(r[1]),f:d(r[0])};if("points"==t)return r=v(o).split(e._.separator),i=v(n).split(e._.separator),{from:r,to:i,f:function(e){return e}};if(f(o)&&f(n))return{from:parseFloat(o),to:parseFloat(n),f:s};var b=o.match(m),w=v(n).match(m);return b&&h(b,w)?{from:parseFloat(o),to:parseFloat(n),f:l(b)}:{from:this.asPX(t),to:this.asPX(t,n),f:s}})}),r.plugin(function(e,n,r,i){for(var o=n.prototype,a=("createTouch"in i.doc),s=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],l={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},u=(function(e,t){var n="y"==e?"scrollTop":"scrollLeft",r=t&&t.node?t.node.ownerDocument:i.doc;return r[n in r.documentElement?"documentElement":"body"][n]}),c=function(){return this.originalEvent.preventDefault()},d=function(){return this.originalEvent.stopPropagation()},p=function(e,t,n,r){var i=a&&l[t]?l[t]:t,o=function(i){var o=u("y",r),s=u("x",r);if(a&&l.hasOwnProperty(t))for(var p=0,f=i.targetTouches&&i.targetTouches.length;f>p;p++)if(i.targetTouches[p].target==e||e.contains(i.targetTouches[p].target)){var h=i;i=i.targetTouches[p],i.originalEvent=h,i.preventDefault=c,i.stopPropagation=d;break}var g=i.clientX+s,m=i.clientY+o;return n.call(r,i,g,m)};return t!==i&&e.addEventListener(t,o,!1),e.addEventListener(i,o,!1),function(){return t!==i&&e.removeEventListener(t,o,!1),e.removeEventListener(i,o,!1),!0}},f=[],h=function(e){for(var n,r=e.clientX,i=e.clientY,o=u("y"),s=u("x"),l=f.length;l--;){if(n=f[l],a){for(var c,d=e.touches&&e.touches.length;d--;)if(c=e.touches[d],c.identifier==n.el._drag.id||n.el.node.contains(c.target)){r=c.clientX,i=c.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var p=n.el.node;p.nextSibling,p.parentNode,p.style.display,r+=s,i+=o,t("snap.drag.move."+n.el.id,n.move_scope||n.el,r-n.el._drag.x,i-n.el._drag.y,r,i,e)}},g=function(n){e.unmousemove(h).unmouseup(g);for(var r,i=f.length;i--;)r=f[i],r.el._drag={},t("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,n),t.off("snap.drag.*."+r.el.id);f=[]},m=s.length;m--;)!function(t){e[t]=o[t]=function(n,r){if(e.is(n,"function"))this.events=this.events||[],this.events.push({name:t,f:n,unbind:p(this.node||document,t,n,r||this)});else for(var i=0,o=this.events.length;o>i;i++)if(this.events[i].name==t)try{this.events[i].f.call(this)}catch(e){}return this},e["un"+t]=o["un"+t]=function(e){for(var n=this.events||[],r=n.length;r--;)if(n[r].name==t&&(n[r].f==e||!e))return n[r].unbind(),n.splice(r,1),!n.length&&delete this.events,this;return this}}(s[m]);o.hover=function(e,t,n,r){return this.mouseover(e,n).mouseout(t,r||n)},o.unhover=function(e,t){return this.unmouseover(e).unmouseout(t)};var v=[];o.drag=function(n,r,i,o,a,s){function l(l,u,d){(l.originalEvent||l).preventDefault(),c._drag.x=u,c._drag.y=d,c._drag.id=l.identifier,!f.length&&e.mousemove(h).mouseup(g),f.push({el:c,move_scope:o,start_scope:a,end_scope:s}),r&&t.on("snap.drag.start."+c.id,r),n&&t.on("snap.drag.move."+c.id,n),i&&t.on("snap.drag.end."+c.id,i),t("snap.drag.start."+c.id,a||o||c,u,d,l)}function u(e,n,r){t("snap.draginit."+c.id,c,e,n,r)}var c=this;if(!arguments.length){var d;return c.drag(function(e,t){this.attr({transform:d+(d?"T":"t")+[e,t]})},function(){d=this.transform().local})}return t.on("snap.draginit."+c.id,l),c._drag={},v.push({el:c,start:l,init:u}),c.mousedown(u),c},o.undrag=function(){for(var n=v.length;n--;)v[n].el==this&&(this.unmousedown(v[n].init),v.splice(n,1),t.unbind("snap.drag.*."+this.id),t.unbind("snap.draginit."+this.id));return!v.length&&e.unmousemove(h).unmouseup(g),this}}),r.plugin(function(e,n,r,i){var o=(n.prototype,r.prototype),a=/^\s*url\((.+)\)/,s=String,l=e._.$;e.filter={},o.filter=function(t){var r=this;"svg"!=r.type&&(r=r.paper);var i=e.parse(s(t)),o=e._.id(),a=(r.node.offsetWidth,r.node.offsetHeight,l("filter"));return l(a,{id:o,filterUnits:"userSpaceOnUse"}),a.appendChild(i.node),r.defs.appendChild(a),new n(a)},t.on("snap.util.getattr.filter",function(){t.stop();var n=l(this.node,"filter");if(n){var r=s(n).match(a);return r&&e.select(r[1])}}),t.on("snap.util.attr.filter",function(r){if(r instanceof n&&"filter"==r.type){t.stop();var i=r.node.id;i||(l(r.node,{id:r.id}),i=r.id),l(this.node,{filter:e.url(i)})}r&&"none"!=r||(t.stop(),this.node.removeAttribute("filter"))}),e.filter.blur=function(t,n){null==t&&(t=2);var r=null==n?t:[t,n];return e.format('',{def:r})},e.filter.blur.toString=function(){return this()},e.filter.shadow=function(t,n,r,i,o){return null==o&&(null==i?(o=r,r=4,i="#000"):(o=i,i=r,r=4)),null==r&&(r=4),null==o&&(o=1),null==t&&(t=0,n=2),null==n&&(n=t),i=e.color(i),e.format('',{color:i,dx:t,dy:n,blur:r,opacity:o})},e.filter.shadow.toString=function(){return this()},e.filter.grayscale=function(t){return null==t&&(t=1),e.format('',{a:.2126+.7874*(1-t),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})},e.filter.grayscale.toString=function(){return this()},e.filter.sepia=function(t){return null==t&&(t=1),e.format('',{a:.393+.607*(1-t),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})},e.filter.sepia.toString=function(){return this()},e.filter.saturate=function(t){return null==t&&(t=1),e.format('',{amount:1-t})},e.filter.saturate.toString=function(){return this()},e.filter.hueRotate=function(t){return t=t||0,e.format('',{angle:t})},e.filter.hueRotate.toString=function(){return this()},e.filter.invert=function(t){return null==t&&(t=1),e.format('',{amount:t,amount2:1-t})},e.filter.invert.toString=function(){return this()},e.filter.brightness=function(t){return null==t&&(t=1),e.format('',{amount:t})},e.filter.brightness.toString=function(){return this()},e.filter.contrast=function(t){return null==t&&(t=1),e.format('',{amount:t,amount2:.5-t/2})},e.filter.contrast.toString=function(){return this()}}),r.plugin(function(e,t,n,r,i){var o=e._.box,a=e.is,s=/^[^a-z]*([tbmlrc])/i,l=function(){return"T"+this.dx+","+this.dy};t.prototype.getAlign=function(e,t){null==t&&a(e,"string")&&(t=e,e=null),e=e||this.paper;var n=e.getBBox?e.getBBox():o(e),r=this.getBBox(),i={};switch(t=t&&t.match(s),t=t?t[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=n.y-r.y;break;case"b":i.dx=0,i.dy=n.y2-r.y2;break;case"m":i.dx=0,i.dy=n.cy-r.cy;break;case"l":i.dx=n.x-r.x,i.dy=0;break;case"r":i.dx=n.x2-r.x2,i.dy=0;break;default:i.dx=n.cx-r.cx,i.dy=0}return i.toString=l,i},t.prototype.align=function(e,t){return this.transform("..."+this.getAlign(e,t))}}),r.plugin(function(t,n,r,i){function o(e){e=e.split(/(?=#)/);var t=new String(e[5]);return t[50]=e[0],t[100]=e[1],t[200]=e[2],t[300]=e[3],t[400]=e[4],t[500]=e[5],t[600]=e[6],t[700]=e[7],t[800]=e[8],t[900]=e[9],e[10]&&(t.A100=e[10],t.A200=e[11],t.A400=e[12],t.A700=e[13]),t}t.mui={},t.flat={},t.mui.red=o("#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000"),t.mui.pink=o("#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162"),t.mui.purple=o("#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF"),t.mui.deeppurple=o("#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA"),t.mui.indigo=o("#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE"),t.mui.blue=o("#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF"),t.mui.lightblue=o("#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA"),t.mui.cyan=o("#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4"),t.mui.teal=o("#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5"),t.mui.green=o("#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853"),t.mui.lightgreen=o("#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17"),t.mui.lime=o("#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00"),t.mui.yellow=o("#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600"),t.mui.amber=o("#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00"),t.mui.orange=o("#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00"),t.mui.deeporange=o("#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00"),t.mui.brown=o("#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723"),t.mui.grey=o("#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121"),t.mui.bluegrey=o("#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238"),t.flat.turquoise="#1abc9c",t.flat.greensea="#16a085",t.flat.sunflower="#f1c40f",t.flat.orange="#f39c12",t.flat.emerland="#2ecc71",t.flat.nephritis="#27ae60",t.flat.carrot="#e67e22",t.flat.pumpkin="#d35400",t.flat.peterriver="#3498db",t.flat.belizehole="#2980b9",t.flat.alizarin="#e74c3c",t.flat.pomegranate="#c0392b",t.flat.amethyst="#9b59b6",t.flat.wisteria="#8e44ad",t.flat.clouds="#ecf0f1",t.flat.silver="#bdc3c7",t.flat.wetasphalt="#34495e",t.flat.midnightblue="#2c3e50",t.flat.concrete="#95a5a6",t.flat.asbestos="#7f8c8d",t.importMUIColors=function(){for(var n in t.mui)t.mui.hasOwnProperty(n)&&(e[n]=t.mui[n])}}),r}),/** * @license AngularJS v1.6.9 * (c) 2010-2018 Google, Inc. http://angularjs.org * License: MIT */ function(e,t){"use strict";function n(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&a.test("."+e)}function r(e,r){if(!n(r))throw o("badmember",'Dotted member path "@{0}" is invalid.',r);for(var i=r.split("."),a=0,s=i.length;a (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT */ function(e,t,n){"use strict";function r(){"ngInject";var e="showElement",t="hideElement",n=!1;this.setDefaultOnAuthorizedMethod=function(t){e=t},this.setDefaultOnUnauthorizedMethod=function(e){t=e},this.suppressUndefinedPermissionWarning=function(e){n=e},this.$get=function(){return{defaultOnAuthorizedMethod:e,defaultOnUnauthorizedMethod:t,suppressUndefinedPermissionWarning:n}}}function i(e){"ngInject";function n(n){var r=e.defer(),i=0,o=t.isArray(n)?[]:{};return t.forEach(n,function(t,n){i++,e.when(t).then(function(e){r.resolve(e)}).catch(function(e){o[n]=e,--i||r.reject(e)})}),0===i&&r.reject(o),r.promise}return e.any=n,e}function o(){"ngInject";this.broadcastPermissionStartEvent=function(){throw new Error("Method broadcastPermissionStartEvent in PermTransitionEvents interface must be implemented")},this.broadcastPermissionAcceptedEvent=function(){throw new Error("Method broadcastPermissionAcceptedEvent in PermTransitionEvents interface must be implemented")},this.broadcastPermissionDeniedEvent=function(){throw new Error("Method broadcastPermissionDeniedEvent in PermTransitionEvents interface must be implemented")}}function a(e,n,r){"ngInject";function i(e,t){a(e,t),this.permissionName=e,this.validationFunction=s(t)}function o(t,n){return t?e.resolve(n):e.reject(n)}function a(e,n){if(!t.isString(e))throw new TypeError('Parameter "permissionName" name must be String');if(!t.isFunction(n)&&!t.isArray(n))throw new TypeError('Parameter "validationFunction" must be Function or an injectable Function using explicit annotation')}function s(e){return t.isArray(e.$inject||e)||(e=["permissionName","transitionProperties",e]),e}return i.prototype.validatePermission=function(e){var i={permissionName:this.permissionName,transitionProperties:e||r},a=n.invoke(this.validationFunction,null,i);return t.isFunction(a.then)||(a=o(a,this.permissionName)),a},i}function s(e,n,r,i){"ngInject";function o(e,t){s(e,t),this.roleName=e,this.validationFunction=l(t)}function a(t,n){return t?e.resolve(n):e.reject(n)}function s(e,n){if(!t.isString(e))throw new TypeError('Parameter "roleName" name must be String');if(!t.isArray(n)&&!t.isFunction(n))throw new TypeError('Parameter "validationFunction" must be array or function')}function l(e){return t.isArray(e)&&!t.isFunction(e[e.length-1])?e=u(e):t.isArray(e.$inject||e)||(e=["roleName","transitionProperties",e]),e}function u(t,n){return function(){var i=t.map(function(t){if(r.hasPermissionDefinition(t)){return r.getPermissionDefinition(t).validatePermission(n)}return e.reject(t)});return e.all(i)}}return o.prototype.validateRole=function(e){var r={roleName:this.roleName,transitionProperties:e||i},o=n.invoke(this.validationFunction,null,r);return t.isFunction(o.then)||(o=a(o,this.roleName)),o},o}function l(e){"ngInject";function n(t,n){u[t]=new e(t,n)}function r(e,r){if(!t.isArray(e))throw new TypeError('Parameter "permissionNames" name must be Array');t.forEach(e,function(e){n(e,r)})}function i(e){delete u[e]}function o(e){return t.isDefined(u[e])}function a(e){return u[e]}function s(){return u}function l(){u={}}var u={};this.definePermission=n,this.defineManyPermissions=r,this.removePermissionDefinition=i,this.hasPermissionDefinition=o,this.getPermissionDefinition=a,this.getStore=s,this.clearStore=l}function u(e){"ngInject";function n(t,n){u[t]=new e(t,n)}function r(e){if(!t.isObject(e))throw new TypeError('Parameter "roleNames" name must be object');t.forEach(e,function(e,t){n(t,e)})}function i(e){delete u[e]}function o(e){return t.isDefined(u[e])}function a(e){return u[e]}function s(){return u}function l(){u={}}var u={};this.defineRole=n,this.defineManyRoles=r,this.getRoleDefinition=a,this.hasRoleDefinition=o,this.removeRoleDefinition=i,this.getStore=s,this.clearStore=l}function c(e,n,r,i){"ngInject";return{restrict:"A",bindToController:{sref:"=?permissionSref",options:"=?permissionOptions",only:"=?permissionOnly",except:"=?permissionExcept",onAuthorized:"&?permissionOnAuthorized",onUnauthorized:"&?permissionOnUnauthorized"},controllerAs:"permission",controller:["$scope","$element","$permission",function(o,a,s){function l(){return n.has("$state")&&d.sref}function u(){if(t.isFunction(d.onAuthorized))d.onAuthorized()(a);else{var e=s.defaultOnAuthorizedMethod;i[e](a)}}function c(){if(t.isFunction(d.onUnauthorized))d.onUnauthorized()(a);else{var e=s.defaultOnUnauthorizedMethod;i[e](a)}}var d=this;o.$watchGroup(["permission.only","permission.except","sref","permissionOptions"],function(){try{var i=t.copy(d.options);if(t.isString(d.options)&&(i=o.$eval(i)),l()){n.get("PermStateAuthorization").authorizeByStateName(d.sref,i).then(function(){u()}).catch(function(){c()})}else{var a=n.get("PermAuthorization"),s=new r({only:d.only,except:d.except});a.authorizeByPermissionMap(s,d.options).then(function(){u()}).catch(function(){c()})}}catch(t){c(),e.error(t.message)}})}]}}function d(e){"ngInject";function t(t,r){var i=e.defer();return n(i,t,r),i.promise}function n(t,n,i){var o=n.resolvePropertyValidity(n.except,i);e.any(o).then(function(e){t.reject(e)}).catch(function(){r(t,n,i)})}function r(t,n,r){if(!n.only.length)return void t.resolve();var i=n.resolvePropertyValidity(n.only,r);e.any(i).then(function(e){t.resolve(e)}).catch(function(e){t.reject(e)})}this.authorizeByPermissionMap=t}function p(e,n,r,i,o,a,s){"ngInject";function l(e){e=e||{},this.only=c(e.only),this.except=c(e.except),this.redirectTo=d(e.redirectTo)}function u(n,i){return e.when(r.invoke(n,null,{rejectedPermission:i,transitionProperties:o})).then(function(n){return t.isString(n)?{state:n}:t.isObject(n)?n:e.reject()})}function c(e){return t.isString(e)?[e]:t.isArray(e)?e:t.isFunction(e)?e.call(null,o):[]}function d(e){if(t.isDefined(e)){if(m(e)||t.isFunction(e))return v(e);if(t.isObject(e))return f(e)?h(e):g(e);if(t.isString(e))return p(e);throw new ReferenceError('Property "redirectTo" must be String, Function, Array or Object')}}function p(e){var t={};return t.default=function(){return{state:e}},t.default.$inject=["rejectedPermission","transitionProperties"],t}function f(e){return t.isDefined(e.state)}function h(e){var t={};return t.default=function(){return e},t}function g(e){var n={};return t.forEach(e,function(e,r){m(e)?n[r]=e:t.isFunction(e)&&(n[r]=e,n[r].$inject=[]),t.isObject(e)&&(n[r]=function(){return e},n[r].$inject=[]),t.isString(e)&&(n[r]=function(){return{state:e}},n[r].$inject=[])}),n}function m(e){return t.isArray(e)||t.isFunction(e)&&t.isArray(e.$inject)}function v(e){var n={};return n.default=e,t.isDefined(e.$inject)||(n.default.$inject=["rejectedPermission","transitionProperties"]),n}return l.prototype.resolveRedirectState=function(n){return t.isDefined(this.redirectTo)?u(this.redirectTo[n]||this.redirectTo.default,n):e.reject()},l.prototype.resolvePropertyValidity=function(t,r){return t.map(function(t){if(a.hasRoleDefinition(t)){return a.getRoleDefinition(t).validateRole(r)}if(s.hasPermissionDefinition(t)){return s.getPermissionDefinition(t).validatePermission(r)}return i.suppressUndefinedPermissionWarning||n.warn("Permission or role "+t+" was not defined."),e.reject(t)})},l}i.$inject=["$delegate"],a.$inject=["$q","$injector","PermTransitionProperties"],s.$inject=["$q","$injector","PermPermissionStore","PermTransitionProperties"],l.$inject=["PermPermission"],u.$inject=["PermRole"],c.$inject=["$log","$injector","PermPermissionMap","PermPermissionStrategies"],d.$inject=["$q"],p.$inject=["$q","$log","$injector","$permission","PermTransitionProperties","PermRoleStore","PermPermissionStore"];var f=t.module("permission",[]);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=f.name),t.module("permission").provider("$permission",r),t.module("permission").decorator("$q",i);var h={enableElement:function(e){e.removeAttr("disabled")},disableElement:function(e){e.attr("disabled","disabled")},showElement:function(e){e.removeClass("ng-hide")},hideElement:function(e){e.addClass("ng-hide")}};t.module("permission").value("PermPermissionStrategies",h).value("PermissionStrategies",h);var g={};t.module("permission").value("PermTransitionProperties",g),t.module("permission").service("PermTransitionEvents",o),t.module("permission").factory("PermPermission",a),t.module("permission").factory("PermRole",s),t.module("permission").service("PermPermissionStore",l),t.module("permission").service("PermRoleStore",u),t.module("permission").directive("permission",c),t.module("permission").service("PermAuthorization",d),t.module("permission").factory("PermPermissionMap",p)}(window,window.angular),/** * angular-permission-ui * Extension module of angular-permission for access control within ui-router * @version v5.3.2 - 2018-02-27 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT */ function(e,t,n){"use strict";function r(e){"ngInject";e.decorator("$delegate",function(e){return e.self.$$permissionState=function(){return e},e})}function i(e,n,r,i,o,a,s){"ngInject";function l(e){!function(e){i.toState=e.to(),i.toParams=e.params("to"),i.fromState=e.from(),i.fromParams=e.params("from"),i.options=e.options()}(e);var t=new s(i.toState);return a.authorizeByPermissionMap(t).catch(function(n){return t.resolveRedirectState(n).then(function(t){return e.router.stateService.target(t.state,t.params,t.options)})})}function u(e,n,l,u,c,d){function p(e){t.extend(n,{$$isAuthorizationFinished:e})}function f(){o.broadcastPermissionAcceptedEvent();var e=t.extend({},i.options,{notify:!1,location:!0});r.go(i.toState.name,i.toParams,e).then(function(){o.broadcastStateChangeSuccessEvent()})}function h(e,t){o.broadcastPermissionDeniedEvent(),t.resolveRedirectState(e).then(function(e){r.go(e.state,e.params,e.options)})}if(!function(){return n.$$isAuthorizationFinished}())if(p(!0),function(){i.toState=n,i.toParams=l,i.fromState=u,i.fromParams=c,i.options=d}(),o.areEventsDefaultPrevented())p(!1);else{o.broadcastPermissionStartEvent(),e.preventDefault();var g=new s(i.toState);a.authorizeByPermissionMap(g).then(function(){f()}).catch(function(e){h(e,g)}).finally(function(){p(!1)})}}if(e.has("$transitions")){e.get("$transitions").onBefore({},l)}else n.$on("$stateChangeStart",function(e,t,n,r,i,o){u(e,t,n,r,i,o)})}function o(e,t,n,r){"ngInject";function i(){return u()||c()}function o(){t.$broadcast(r.permissionStart,n.toState,n.toParams,n.options)}function a(){t.$broadcast(r.permissionAccepted,n.toState,n.toParams,n.options)}function s(){t.$broadcast(r.permissionDenies,n.toState,n.toParams,n.options)}function l(){t.$broadcast("$stateChangeSuccess",n.toState,n.toParams,n.fromState,n.fromParams)}function u(){return t.$broadcast(r.permissionStart,n.toState,n.toParams,n.options).defaultPrevented}function c(){return t.$broadcast("$stateChangeStart",n.toState,n.toParams,n.fromState,n.fromParams,n.options).defaultPrevented}return e.areEventsDefaultPrevented=i,e.broadcastStateChangeSuccessEvent=l,e.broadcastPermissionStartEvent=o,e.broadcastPermissionAcceptedEvent=a,e.broadcastPermissionDeniedEvent=s,e}function a(e,n,r){"ngInject";function i(e,t){return a(e,t)}function o(e,t){var o=n.get(e);return i(new r(o,t),t)}function a(t,n){var r=e.defer();return s(r,t,n),r.promise}function s(n,r,i){var o=u(r.except,r,i);e.all(c(o)).then(function(){l(n,r,i)}).catch(function(e){t.isArray(e)||(e=[e]),n.reject(e[0])})}function l(t,n,r){if(!n.only.length)return void t.resolve();var i=u(n.only,n,r);e.all(i).then(function(e){t.resolve(e)}).catch(function(e){t.reject(e)})}function u(n,r,i){return n.length?n.map(function(n){var o=r.resolvePropertyValidity(n,i);return e.any(o).then(function(e){return t.isArray(e)?e[0]:e})}):[e.reject()]}function c(t){return t.map(function(t){var n=e.defer();return t.then(n.reject,n.resolve),n.promise})}this.authorizeByPermissionMap=i,this.authorizeByStateName=o}function s(e){"ngInject";function n(n){var i=n.$$permissionState(),o=i.path;t.forEach(o,function(t){if(r(t)){var n=new e(t.data.permissions);this.extendPermissionMap(n)}},this)}function r(e){try{return Object.prototype.hasOwnProperty.call(e.data,"permissions")}catch(e){return!1}}return n.prototype=new e,n.prototype.extendPermissionMap=function(e){e.only.length&&(this.only=this.only.concat([e.only])),e.except.length&&(this.except=this.except.concat([e.except])),t.isDefined(e.redirectTo)&&(this.redirectTo=t.extend({},this.redirectTo,e.redirectTo))},n}r.$inject=["$stateProvider"],i.$inject=["$injector","$rootScope","$state","PermTransitionProperties","PermTransitionEvents","PermStateAuthorization","PermStatePermissionMap"],o.$inject=["$delegate","$rootScope","PermTransitionProperties","PermTransitionEventNames"],a.$inject=["$q","$state","PermStatePermissionMap"],s.$inject=["PermPermissionMap"];var l=t.module("permission.ui",["permission","ui.router"]).config(r).run(i);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=l.name),t.module("permission.ui").decorator("PermTransitionEvents",o);var u={permissionStart:"$stateChangePermissionStart",permissionAccepted:"$stateChangePermissionAccepted",permissionDenies:"$stateChangePermissionDenied"};t.module("permission.ui").value("PermTransitionEventNames",u),t.module("permission").service("PermStateAuthorization",a),t.module("permission.ui").factory("PermStatePermissionMap",s)}(window,window.angular),/** * angular-permission-ng * Extension module of angular-permission for access control within angular-route * @version v5.3.2 - 2018-02-27 * @link https://github.com/Narzerus/angular-permission * @author Rafael Vidaurre (http://www.rafaelvidaurre.com), Blazej Krysiak * @license MIT License, http://www.opensource.org/licenses/MIT */ function(e,t,n){"use strict";function r(e,t,n,r,i,o){"ngInject";e.$on("$routeChangeStart",function(e,a,s){function l(){var e=new o({only:a.$$route.data.permissions.only,except:a.$$route.data.permissions.except,redirectTo:a.$$route.data.permissions.redirectTo}),t=i.authorizeByPermissionMap(e);return t.then(function(){u()}).catch(function(t){c(t,e)}),t}function u(){r.broadcastPermissionAcceptedEvent()}function c(e,n){r.broadcastPermissionDeniedEvent(),n.resolveRedirectState(e).then(function(e){t.path(e.state).replace()})}!function(){n.next=a,n.current=s}(),function(){try{return!!a.$$route.data.permissions}catch(e){return!1}}()&&!r.areEventsDefaultPrevented()&&(r.broadcastPermissionStartEvent(),a.$$route.resolve=a.$$route.resolve||{},a.$$route.resolve.$$permission=l)})}function i(e,t,n,r){"ngInject";function i(){return l()}function o(){t.$broadcast(r.permissionStart,n.next)}function a(){t.$broadcast(r.permissionAccepted,n.next)}function s(){t.$broadcast(r.permissionDenied,n.next)}function l(){return t.$broadcast(r.permissionStart,n.next).defaultPrevented}return e.areEventsDefaultPrevented=i,e.broadcastPermissionStartEvent=o,e.broadcastPermissionAcceptedEvent=a,e.broadcastPermissionDeniedEvent=s,e}r.$inject=["$rootScope","$location","PermTransitionProperties","PermTransitionEvents","PermAuthorization","PermPermissionMap"],i.$inject=["$delegate","$rootScope","PermTransitionProperties","PermTransitionEventNames"];var o=t.module("permission.ng",["permission","ngRoute"]).run(r);"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports=o.name),t.module("permission.ng").decorator("PermTransitionEvents",i);var a={permissionStart:"$routeChangePermissionStart",permissionAccepted:"$routeChangePermissionAccepted",permissionDenied:"$routeChangePermissionDenied"};t.module("permission.ng").value("PermTransitionEventNames",a)}(window,window.angular),/** * @license AngularJS v1.6.9 * (c) 2010-2018 Google, Inc. http://angularjs.org * License: MIT */ function(e,t){"use strict";function n(e,t,n){if(!e)throw le("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(W(e)&&(e=e.join(" ")),W(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=W(e)?e:e&&K(e)&&e.length?e.split(/\s+/):[],G(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof Q)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===N)return e;break;default:return Q(l(e))}if(e.nodeType===N)return Q(e)}function l(e){if(!e[0])return e;for(var t=0;t=0)&&(n=_(n)),0===n&&(n=null),r[t]=n}}),r}function _(e){var t=0,n=e.split(/\s*,\s*/);return G(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function A(e){return 0===e||null!=e}function D(e,t){var n=P,r=e+"s";return t?n+=te:r+=" linear all",[n,r]}function M(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function O(e,t,n){G(n,function(n){e[n]=q(e[n])?e[n]:t.style.getPropertyValue(n)})}var P,R,I,F,N=1,L="-add",V="-remove",j="ng-",H="ng-animate",z="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",P="WebkitTransition",R="webkitTransitionEnd transitionend"):(P="transition",R="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",I="WebkitAnimation",F="webkitAnimationEnd animationend"):(I="animation",F="animationend");var B,U,G,W,q,Y,X,Z,K,J,Q,ee,te="Duration",ne="TimingFunction",re="PlayState",ie=I+"Delay",oe=I+te,ae=P+"Delay",se=P+te,le=t.$$minErr("ng"),ue=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o0&&!(u=n.get(s))){var c=o(a,"-stagger");r.addClass(i,c),u=k(e,i,l),u.animationDuration=Math.max(u.animationDuration,0),u.transitionDuration=Math.max(u.transitionDuration,0),r.removeClass(i,c),n.put(s,u)}return u||{}}function _(e){z.push(e),m.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=u(),r=0;r=re&&r>=ie&&(K=!0,m())}}function z(){function t(){if(!X){if(w(!1),G(se,function(e){var t=e[0],n=e[1];Y.style[t]=n}),N(e,U),r.addClass(e,Ce),Ie.recalculateTimingStyles){if(xe=Y.getAttribute("class")+" "+we,$e=b(Y,xe),Pe=M(Y,xe,$e),Re=Pe.maxDelay,te=Math.max(Re,0),0===(ie=Pe.maxDuration))return void m();Ie.hasTransitions=Pe.transitionDuration>0,Ie.hasAnimations=Pe.animationDuration>0}if(Ie.applyAnimationDelay&&(Re="boolean"!=typeof U.delay&&A(U.delay)?parseFloat(U.delay):Re,te=Math.max(Re,0),Pe.animationDelay=Re,Fe=T(Re,!0),se.push(Fe),Y.style[Fe[0]]=Fe[1]),re=te*pe,oe=ie*pe,U.easing){var t,i=U.easing;Ie.hasTransitions&&(t=P+ne,se.push([t,i]),Y.style[t]=i),Ie.hasAnimations&&(t=I+ne,se.push([t,i]),Y.style[t]=i)}Pe.transitionDuration&&ce.push(R),Pe.animationDuration&&ce.push(F),ae=Date.now();var o=re+he*oe,a=ae+o,s=e.data(de)||[],u=!0;if(s.length){var c=s[0];u=a>c.expectedEndTime,u?l.cancel(c.timer):s.push(m)}if(u){var d=l(n,o,!1);s[0]={timer:d,expectedEndTime:a},s.push(m),e.data(de,s)}ce.length&&e.on(ce.join(" "),H),U.to&&(U.cleanupStyles&&O(q,Y,Object.keys(U.to)),g(e,U))}}function n(){var t=e.data(de);if(t){for(var n=1;n0&&(Pe.transitionDuration&&0===Ee.transitionDuration||Pe.animationDuration&&0===Ee.animationDuration)&&Math.max(Ee.animationDelay,Ee.transitionDelay);o?l(t,Math.floor(o*Me*pe),!1):t(),Q.resume=function(){i(!0)},Q.pause=function(){i(!1)}}}var U=n||{};U.$$prepared||(U=p(B(U)));var q={},Y=y(e);if(!Y||!Y.parentNode||!v.enabled())return k();var X,Z,K,J,Q,te,re,ie,oe,ae,se=[],le=e.attr("class"),ue=i(U),ce=[];if(0===U.duration||!c.animations&&!c.transitions)return k();var ge=U.event&&W(U.event)?U.event.join(" "):U.event,ve=ge&&U.structural,ye="",be="";ve?ye=o(ge,j,!0):ge&&(ye=ge),U.addClass&&(be+=o(U.addClass,L)),U.removeClass&&(be.length&&(be+=" "),be+=o(U.removeClass,V)),U.applyClassesEarly&&be.length&&N(e,U);var we=[ye,be].join(" ").trim(),xe=le+" "+we,Ce=o(we,"-active"),Se=ue.to&&Object.keys(ue.to).length>0;if(!((U.keyframeStyle||"").length>0||Se||we))return k();var $e,Ee;if(U.stagger>0){var Te=parseFloat(U.stagger);Ee={transitionDelay:Te,animationDelay:Te,transitionDuration:0,animationDuration:0}}else $e=b(Y,xe),Ee=$(Y,we,$e,me);U.$$skipPreparationClasses||r.addClass(e,we);var ke;if(U.transitionStyle){var _e=[P,U.transitionStyle];S(Y,_e),se.push(_e)}if(U.duration>=0){ke=Y.style[P].length>0;var Ae=D(U.duration,ke);S(Y,Ae),se.push(Ae)}if(U.keyframeStyle){var De=[I,U.keyframeStyle];S(Y,De),se.push(De)}var Me=Ee?U.staggerIndex>=0?U.staggerIndex:t.count($e):0,Oe=0===Me;Oe&&!U.skipBlocking&&x(Y,9999);var Pe=M(Y,xe,$e),Re=Pe.maxDelay;te=Math.max(Re,0),ie=Pe.maxDuration;var Ie={};if(Ie.hasTransitions=Pe.transitionDuration>0,Ie.hasAnimations=Pe.animationDuration>0,Ie.hasTransitionAll=Ie.hasTransitions&&"all"===Pe.transitionProperty,Ie.applyTransitionDuration=Se&&(Ie.hasTransitions&&!Ie.hasTransitionAll||Ie.hasAnimations&&!Ie.hasTransitions),Ie.applyAnimationDuration=U.duration&&Ie.hasAnimations,Ie.applyTransitionDelay=A(U.delay)&&(Ie.applyTransitionDuration||Ie.hasTransitions),Ie.applyAnimationDelay=A(U.delay)&&Ie.hasAnimations,Ie.recalculateTimingStyles=be.length>0,(Ie.applyTransitionDuration||Ie.applyAnimationDuration)&&(ie=U.duration?parseFloat(U.duration):ie,Ie.applyTransitionDuration&&(Ie.hasTransitions=!0,Pe.transitionDuration=ie,ke=Y.style[P+"Property"].length>0,se.push(D(ie,ke))),Ie.applyAnimationDuration&&(Ie.hasAnimations=!0,Pe.animationDuration=ie,se.push(E(ie)))),0===ie&&!Ie.recalculateTimingStyles)return k();if(null!=U.delay){var Fe;"boolean"!=typeof U.delay&&(Fe=parseFloat(U.delay),te=Math.max(Fe,0)),Ie.applyTransitionDelay&&se.push(T(Fe)),Ie.applyAnimationDelay&&se.push(T(Fe,!0))}return null==U.duration&&Pe.transitionDuration>0&&(Ie.recalculateTimingStyles=Ie.recalculateTimingStyles||Oe),re=te*pe,oe=ie*pe,U.skipBlocking||(Ie.blockTransition=Pe.transitionDuration>0,Ie.blockKeyframeAnimation=Pe.animationDuration>0&&Ee.animationDelay>0&&0===Ee.animationDuration),U.from&&(U.cleanupStyles&&O(q,Y,Object.keys(U.from)),h(e,U)),Ie.blockTransition||Ie.blockKeyframeAnimation?w(ie):U.skipBlocking||x(Y,!1),{$$willAnimate:!0,end:u,start:function(){if(!X)return Q={end:u,cancel:d,resume:null,pause:null},J=new s(Q),_(z),J}}}}]}],ye=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,i,o,a,s,l,u){function c(e){return e.replace(/\bng-\S+\b/g,"")}function d(e,t){return K(e)&&(e=e.split(" ")),K(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function p(t,i,a){function s(e){var t={},n=y(e).getBoundingClientRect();return G(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=g.scrollTop;break;case"left":r+=g.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function l(e){return e.attr("class")||""}function u(){var t=c(l(a)),n=d(t,h),i=d(h,t),o=e(f,{to:s(a),addClass:"ng-anchor-in "+n,removeClass:r+" "+i,delay:!0});return o.$$willAnimate?o:null}function p(){f.remove(),i.removeClass(n),a.removeClass(n)}var f=Q(y(i).cloneNode(!0)),h=c(l(f));i.addClass(n),a.addClass(n),f.addClass("ng-anchor"),v.append(f);var m,b=function(){var t=e(f,{addClass:r,delay:!0,from:s(i)});return t.$$willAnimate?t:null}();if(!b&&!(m=u()))return p();var w=b||m;return{start:function(){function e(){n&&n.end()}var t,n=w.start();return n.done(function(){if(n=null,!m&&(m=u()))return n=m.start(),n.done(function(){n=null,p(),t.complete()}),n;p(),t.complete()}),t=new o({end:e,cancel:e})}}}function f(e,t,n,r){var i=h(e),a=h(t),s=[];if(G(r,function(e){var t=e.out,r=e.in,i=p(n,t,r);i&&s.push(i)}),i||a||0!==s.length)return{start:function(){function e(){G(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),a&&t.push(a.start()),G(s,function(e){t.push(e.start())});var n=new o({end:e,cancel:e});return o.all(t,function(e){n.complete(e)}),n}}}function h(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=$(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!s.animations&&!s.transitions)return ee;var g=u[0].body,m=y(a),v=Q(t(m)||g.contains(m)?m:g);return function(e){return e.from&&e.to?f(e.from,e.to,e.classes,e.anchors):h(e)}}]}],be=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=W(n)?n:n.split(" ");for(var r=[],i={},o=0;o0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var u=1,c=2,h=" ",g=this.rules={skip:[],cancel:[],join:[]};g.join.push(function(e,t){return!e.structural&&a(e)}),g.skip.push(function(e,t){return!e.structural&&!a(e)}),g.skip.push(function(e,t){return"leave"===t.event&&e.structural}),g.skip.push(function(e,t){return t.structural&&t.state===c&&!e.structural}),g.cancel.push(function(e,t){return t.structural&&e.structural}),g.cancel.push(function(e,t){return t.state===c&&e.structural}),g.cancel.push(function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,o=t.addClass,a=t.removeClass;return!(J(n)&&J(r)||J(o)&&J(a))&&(i(n,a)||i(r,o))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(r,i,h,g,v,x,C,S,$,E,T){function k(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function _(e,t){return m(e,t,{})}function A(e,t,n){var r=[],i=X[n];return i&&G(i,function(i){ae.call(i.node,t)?r.push(i.callback):"leave"===n&&ae.call(i.node,e)&&r.push(i.callback)}),r}function D(e,t,n){var r=l(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function M(e,t){"close"!==e||t.parentNode||se.off(t)}function O(e,t,n){function l(e,t,n,i){E(function(){var e=A(S,v,t);e.length?r(function(){G(e,function(e){e(g,n,i)}),M(n,v)}):M(n,v)}),e.progress(t,n,i)}function d(e){w(g,h),oe(g,h),f(g,h),h.domOperation(),$.complete(!e)}var h=B(n),g=s(e),v=y(g),S=v&&v.parentNode;h=p(h);var $=new C,E=k();if(W(h.addClass)&&(h.addClass=h.addClass.join(" ")),h.addClass&&!K(h.addClass)&&(h.addClass=null),W(h.removeClass)&&(h.removeClass=h.removeClass.join(" ")),h.removeClass&&!K(h.removeClass)&&(h.removeClass=null),h.from&&!Z(h.from)&&(h.from=null),h.to&&!Z(h.to)&&(h.to=null),!(j&&v&&re(v,t,n)&&ie(v,h)))return d(),$;var D=["enter","move","leave"].indexOf(t)>=0,O=T(),N=O||V.get(v),H=!N&&L.get(v)||{},z=!!H.state;if(N||z&&H.state===u||(N=!I(v,S,t)),N)return O&&l($,t,"start"),d(),O&&l($,t,"close"),$;D&&P(v);var U={structural:D,element:g,event:t,addClass:h.addClass,removeClass:h.removeClass,close:d,options:h,runner:$};if(z){if(o("skip",U,H))return H.state===c?(d(),$):(m(g,H,U),H.runner);if(o("cancel",U,H))if(H.state===c)H.runner.end();else{if(!H.structural)return m(g,H,U),H.runner;H.close()}else{if(o("join",U,H)){if(H.state!==c)return b(g,D?t:null,h),t=U.event=H.event,h=m(g,H,U),H.runner;_(g,U)}}}else _(g,U);var q=U.structural;if(q||(q="animate"===U.event&&Object.keys(U.options.to||{}).length>0||a(U)),!q)return d(),R(v),$;var Y=(H.counter||0)+1;return U.counter=Y,F(v,u,U),i.$$postDigest(function(){g=s(e);var n=L.get(v),r=!n;n=n||{};var i=g.parent()||[],o=i.length>0&&("animate"===n.event||n.structural||a(n));if(r||n.counter!==Y||!o)return r&&(oe(g,h),f(g,h)),(r||D&&n.event!==t)&&(h.domOperation(),$.end()),void(o||R(v));t=!n.structural&&a(n,!0)?"setClass":n.event,F(v,c);var u=x(g,t,n.options);$.setHost(u),l($,t,"start",{}),u.done(function(e){d(!e);var n=L.get(v);n&&n.counter===Y&&R(v),l($,t,"close",{})})}),$}function P(e){var t=e.querySelectorAll("["+xe+"]");G(t,function(e){var t=parseInt(e.getAttribute(xe),10),n=L.get(e);if(n)switch(t){case c:n.runner.end();case u:L.delete(e)}})}function R(e){e.removeAttribute(xe),L.delete(e)}function I(e,t,n){var r,i=g[0].body,o=y(h),a=e===i||"HTML"===e.nodeName,s=e===o,l=!1,u=V.get(e),c=Q.data(e,Ce);for(c&&(t=y(c));t&&(s||(s=t===o),t.nodeType===N);){var d=L.get(t)||{};if(!l){var p=V.get(t);if(!0===p&&!1!==u){u=!0;break}!1===p&&(u=!1),l=d.structural}if(J(r)||!0===r){var f=Q.data(t,z);q(f)&&(r=f)}if(l&&!1===r)break;if(a||(a=t===i),a&&s)break;t=s||!(c=Q.data(t,Ce))?t.parentNode:y(c)}return(!l||r)&&!0!==u&&s&&a}function F(e,t,n){n=n||{},n.state=t,e.setAttribute(xe,t);var r=L.get(e),i=r?U(r,n):n;L.set(e,i)}var L=new v,V=new v,j=null,H=i.$watch(function(){return 0===S.totalPendingRequests},function(e){e&&(H(),i.$$postDigest(function(){i.$$postDigest(function(){null===j&&(j=!0)})}))}),X=Object.create(null),ee=t.customFilter(),te=t.classNameFilter(),ne=function(){return!0},re=ee||ne,ie=te?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return te.test(n)}:ne,oe=d($),ae=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},se={on:function(e,t,n){var r=l(t);X[e]=X[e]||[],X[e].push({node:r,callback:n}),Q(t).on("$destroy",function(){L.get(r)||se.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||K(arguments[0])){var r=X[e];r&&(X[e]=1===arguments.length?null:D(r,t,n))}else{t=arguments[0];for(var i in X)X[i]=D(X[i],t)}},pin:function(e,t){n(Y(e),"element","not an element"),n(Y(t),"parentElement","not an element"),e.data(Ce,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,O(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!j;else{if(Y(e)){var r=y(e);1===n?t=!V.get(r):V.set(r,!t)}else t=j=!!e}return t}};return se}]}],$e=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function i(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler",function(e,s,l,u,c,h){function g(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,o=n.parentNode;i.set(n,e);for(var a;o;){if(a=i.get(o)){a.processed||(a=t(a));break}o=o.parentNode}return(a||r).children.push(e),e}var n,r={children:[]},i=new c;for(n=0;n=0,u=e.structural?w(a):[];if(u.length){var c=l?"to":"from";G(u,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][c]={animationID:r,element:Q(e)}})}else t.push(e)});var r={},i={};return G(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var l=a?a.animationID:s.animationID,u=l.toString();return void(r[u]||(r[u]=!0,t.push(e[l])))}var c=e[a.animationID],d=e[s.animationID],p=a.animationID.toString();if(!i[p]){var f=i[p]={structural:!0,beforeStart:function(){c.beforeStart(),d.beforeStart()},close:function(){c.close(),d.close()},classes:C(c.classes,d.classes),from:c,to:d,anchors:[]};f.classes.length?t.push(f):(t.push(c),t.push(d))}i[p].anchors.push({out:a.element,in:s.element})}),t}function C(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r=0;t--){var n=a[t],r=l.get(n),i=r(e);if(i)return i}}function $(){c.addClass(H),M&&e.addClass(c,M),O&&(e.removeClass(c,O),O=null)}function E(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function T(){var e=i(c);!e||"leave"===d&&b.$$domOperationFired||e.end()}function k(t){c.off("$destroy",T),n(c),v(c,b),f(c,b),b.domOperation(),M&&e.removeClass(c,M),c.removeClass(H),A.complete(!t)}b=p(b);var _=["enter","move","leave"].indexOf(d)>=0,A=new u({end:function(){k()},cancel:function(){k(!0)}});if(!a.length)return k(),A;t(c,A);var D=r(c.attr("class"),r(b.addClass,b.removeClass)),M=b.tempClasses;M&&(D+=" "+M,b.tempClasses=null);var O;return _&&(O="ng-"+d+"-prepare",e.addClass(c,O)),m.push({element:c,classes:D,event:d,structural:_,options:b,beforeStart:$,close:k}),c.on("$destroy",T),m.length>1?A:(s.$$postDigest(function(){var e=[];G(m,function(t){i(t.element)?e.push(t):t.close()}),m.length=0;var t=x(e),n=[];G(t,function(e){n.push({domNode:y(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close;if(i(e.anchors?e.from.element||e.to.element:e.element)){var r=S(e);r&&(t=r.start)}if(t){var o=t();o.done(function(e){n(!e)}),E(e,o)}else n()}})}),h(g(n))}),A)}}]}],Ee=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(r){a&&e.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),o(s,function(t){a=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[],function(){ee=t.noop,B=t.copy,U=t.extend,Q=t.element,G=t.forEach,W=t.isArray,K=t.isString,Z=t.isObject,J=t.isUndefined,q=t.isDefined,X=t.isFunction,Y=t.isElement}).info({angularVersion:"1.6.9"}).directive("ngAnimateSwap",Ee).directive("ngAnimateChildren",ce).factory("$$rAFScheduler",ue).provider("$$animateQueue",Se).provider("$$animation",$e).provider("$animateCss",ve).provider("$$animateCssDriver",ye).provider("$$animateJs",be).provider("$$animateJsDriver",we)}(window,window.angular),function(){"use strict";function e(e,t,n,r,i,o,a){function s(){return x.length}function l(e){if(1!==arguments.length||e)if(e)h(e.toastId);else for(var t=0;t=0&&e.scope.refreshTimer(t)}function h(t,n){function r(){return!x.length}var i=function(e){for(var t=0;t=t&&x[t-1].open.resolve(),r()&&(b.remove(),b=null,$=a.defer())}))}function g(e,t,n,r){return angular.isObject(n)&&(r=n,n=null),y({iconClass:e,message:t,optionsOverride:r,title:n})}function m(){return angular.extend({},o)}function v(t){if(b)return $.promise;b=angular.element("
    "),b.attr("id",t.containerId),b.addClass(t.positionClass),b.css({"pointer-events":"auto"});var n=angular.element(document.querySelector(t.target));if(!n||!n.length)throw"Target for toasts doesn't exist";return e.enter(b,n).then(function(){$.resolve()}),$.promise}function y(n){function o(e,t,n){function r(t){if(n[t])return function(){n[t](e)}}n.allowHtml?(e.scope.allowHtml=!0,e.scope.title=i.trustAsHtml(t.title),e.scope.message=i.trustAsHtml(t.message)):(e.scope.title=t.title,e.scope.message=t.message),e.scope.toastType=e.iconClass,e.scope.toastId=e.toastId,e.scope.extraData=n.extraData,e.scope.options={extendedTimeOut:n.extendedTimeOut,messageClass:n.messageClass,onHidden:n.onHidden,onShown:r("onShown"),onTap:r("onTap"),progressBar:n.progressBar,tapToDismiss:n.tapToDismiss,timeOut:n.timeOut,titleClass:n.titleClass,toastClass:n.toastClass},n.closeButton&&(e.scope.options.closeHtml=n.closeHtml)}function s(e){var n=angular.element("
    ");return t.get("$compile")(n)(e)}var l=m();if(!function(){var e=l.preventDuplicates&&n.message===C,t=l.preventOpenDuplicates&&S[n.message];return!(!e&&!t)||(C=n.message,S[n.message]=!0,!1)}()){var u=function(){var e={toastId:w++,isOpened:!1,scope:r.$new(),open:a.defer()};return e.iconClass=n.iconClass,n.optionsOverride&&(angular.extend(l,function(e){for(var t=["containerId","iconClasses","maxOpened","newestOnTop","positionClass","preventDuplicates","preventOpenDuplicates","templates"],n=0,r=t.length;nl.maxOpened}())for(var c=x.slice(0,x.length-l.maxOpened),d=0,p=c.length;d×",containerId:"toast-container",extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},maxOpened:0,messageClass:"toast-message",newestOnTop:!0,onHidden:null,onShown:null,onTap:null,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,progressBar:!1,tapToDismiss:!0,target:"body",templates:{toast:"directives/toast/toast.html",progressbar:"directives/progressbar/progressbar.html"},timeOut:5e3,titleClass:"toast-title",toastClass:"toast"})}(),function(){"use strict";function e(e){function t(e,t,n,r){function i(){var e=(s-(new Date).getTime())/a*100;t.css("width",e+"%")}var o,a,s;r.progressBar=e,e.start=function(e){o&&clearInterval(o),a=parseFloat(e),s=(new Date).getTime()+a,o=setInterval(i,10)},e.stop=function(){o&&clearInterval(o)},e.$on("$destroy",function(){clearInterval(o)})}return{require:"^toast",templateUrl:function(){return e.templates.progressbar},link:t}}angular.module("toastr").directive("progressBar",e),e.$inject=["toastrConfig"]}(),function(){"use strict";function e(){this.progressBar=null,this.startProgressBar=function(e){this.progressBar&&this.progressBar.start(e)},this.stopProgressBar=function(){this.progressBar&&this.progressBar.stop()}}angular.module("toastr").controller("ToastController",e)}(),function(){"use strict";function e(e,t,n,r){function i(n,i,o,a){function s(e){return a.startProgressBar(e),t(function(){a.stopProgressBar(),r.remove(n.toastId)},e,1)}function l(){n.progressBar=!1,a.stopProgressBar()}var u;if(n.toastClass=n.options.toastClass,n.titleClass=n.options.titleClass,n.messageClass=n.options.messageClass,n.progressBar=n.options.progressBar,function(){return n.options.closeHtml}()){var c=angular.element(n.options.closeHtml),d=e.get("$compile");c.addClass("toast-close-button"),c.attr("ng-click","close(true, $event)"),d(c)(n),i.children().prepend(c)}n.init=function(){n.options.timeOut&&(u=s(n.options.timeOut)),n.options.onShown&&n.options.onShown()},i.on("mouseenter",function(){l(),u&&t.cancel(u)}),n.tapToast=function(){angular.isFunction(n.options.onTap)&&n.options.onTap(),n.options.tapToDismiss&&n.close(!0)},n.close=function(e,t){t&&angular.isFunction(t.stopPropagation)&&t.stopPropagation(),r.remove(n.toastId,e)},n.refreshTimer=function(e){u&&(t.cancel(u),u=s(e||n.options.timeOut))},i.on("mouseleave",function(){0===n.options.timeOut&&0===n.options.extendedTimeOut||(n.$apply(function(){n.progressBar=n.options.progressBar}),u=s(n.options.extendedTimeOut))})}return{templateUrl:function(){ return n.templates.toast},controller:"ToastController",link:i}}angular.module("toastr").directive("toast",e),e.$inject=["$injector","$interval","toastrConfig","toastr"]}(),angular.module("toastr").run(["$templateCache",function(e){e.put("directives/progressbar/progressbar.html",'
    \n'),e.put("directives/toast/toast.html",'
    \n
    \n
    {{title}}
    \n
    {{message}}
    \n
    \n
    \n
    \n \n
    \n')}]),/*! angular-block-ui v0.2.1 (c) 2015 (null) McNull https://github.com/McNull/angular-block-ui License: MIT */ function(e){function t(t){try{e.module(t)}catch(e){return!1}return!0}function n(e,n,r){function i(){e.$on("$locationChangeStart",function(e){n.$_blockLocationChange&&n.state().blockCount>0&&e.preventDefault()}),e.$on("$locationChangeSuccess",function(){n.$_blockLocationChange=r.blockBrowserNavigation})}if(r.blockBrowserNavigation)if(t("ngRoute"))var o=e.$on("$viewContentLoaded",function(){o(),i()});else i()}var r=e.module("blockUI",[]);r.config(["$provide","$httpProvider",function(e,t){e.decorator("$exceptionHandler",["$delegate","$injector",function(e,t){var n,r;return function(i,o){if(r=r||t.get("blockUIConfig"),r.resetOnException)try{n=n||t.get("blockUI"),n.instances.reset()}catch(e){console.log("$exceptionHandler",i)}e(i,o)}}]),t.interceptors.push("blockUIHttpInterceptor")}]),r.run(["$document","blockUIConfig","$templateCache",function(e,t,n){t.autoInjectBodyBlock&&e.find("body").attr("block-ui","main"),t.template&&(t.templateUrl="$$block-ui-template$$",n.put(t.templateUrl,t.template))}]),r.config(["$provide",function(e){e.decorator("$location",i)}]);var i=["$delegate","blockUI","blockUIConfig",function(t,n,r){function i(e){var r=t[e];t[e]=function(){var e=r.apply(t,arguments);return e===t&&(n.$_blockLocationChange=!1),e}}if(r.blockBrowserNavigation){n.$_blockLocationChange=!0;var o=["url","path","search","hash","state"];e.forEach(o,i)}return t}];r.directive("blockUiContainer",["blockUIConfig","blockUiContainerLinkFn",function(e,t){return{scope:!0,restrict:"A",templateUrl:e.templateUrl,compile:function(e){return t}}}]).factory("blockUiContainerLinkFn",["blockUI","blockUIUtils",function(e,t){return function(e,t,n){var r=t.inheritedData("block-ui");if(!r)throw new Error("No parent block-ui service instance located.");e.state=r.state()}}]),r.directive("blockUi",["blockUiCompileFn",function(e){return{scope:!0,restrict:"A",compile:e}}]).factory("blockUiCompileFn",["blockUiPreLinkFn",function(e){return function(t,n){return t.append('
    '),{pre:e}}}]).factory("blockUiPreLinkFn",["blockUI","blockUIUtils","blockUIConfig",function(e,t,r){return function(i,o,a){o.hasClass("block-ui")||o.addClass(r.cssClass),a.$observe("blockUiMessageClass",function(e){i.$_blockUiMessageClass=e});var s=a.blockUi||"_"+i.$id,l=e.instances.get(s);if("main"===s)n(i,l,r);else{var u=o.inheritedData("block-ui");u&&(l._parent=u)}i.$on("$destroy",function(){l.release()}),l.addRef(),i.$_blockUiState=l.state(),i.$watch("$_blockUiState.blocking",function(e){o.attr("aria-busy",!!e),o.toggleClass("block-ui-visible",!!e)}),i.$watch("$_blockUiState.blockCount > 0",function(e){o.toggleClass("block-ui-active",!!e)});var c=a.blockUiPattern;if(c){var d=t.buildRegExp(c);l.pattern(d)}o.data("block-ui",l)}}]),r.constant("blockUIConfig",{templateUrl:"angular-block-ui/angular-block-ui.ng.html",delay:250,message:"Loading ...",autoBlock:!0,resetOnException:!0,requestFilter:e.noop,autoInjectBodyBlock:!0,cssClass:"block-ui block-ui-anim-fade",blockBrowserNavigation:!1}),r.factory("blockUIHttpInterceptor",["$q","$injector","blockUIConfig","$templateCache",function(e,t,n,r){function i(){s=s||t.get("blockUI")}function o(e){n.autoBlock&&e&&!e.$_noBlock&&e.$_blocks&&(i(),e.$_blocks.stop())}function a(t){try{o(t.config)}catch(e){console.log("httpRequestError",e)}return e.reject(t)}var s;return{request:function(e){if(n.autoBlock&&("GET"!=e.method||!r.get(e.url))){var t=n.requestFilter(e);!1===t?e.$_noBlock=!0:(i(),e.$_blocks=s.instances.locate(e),e.$_blocks.start(t))}return e},requestError:a,response:function(e){return e&&o(e.config),e},responseError:a}}]),r.factory("blockUI",["blockUIConfig","$timeout","blockUIUtils","$document",function(t,n,r,i){function o(o){var l,c=this,d={id:o,blockCount:0,message:t.message,blocking:!1},p=[];this._id=o,this._refs=0,this.start=function(o){function u(){l=null,d.blocking=!0}o=o||{},e.isString(o)?o={message:o}:e.forEach(s,function(e){if(o[e])throw new Error("The property "+e+" is reserved for the block state.")}),e.extend(d,o),d.blockCount>0?d.message=o.message||d.message||t.message:d.message=o.message||t.message,d.blockCount++;var p=e.element(i[0].activeElement);p.length&&r.isElementInBlockScope(p,c)&&(c._restoreFocus=p[0],n(function(){c._restoreFocus&&c._restoreFocus!==a[0]&&c._restoreFocus.blur()})),l||0===t.delay?0===t.delay&&u():l=n(u,t.delay)},this._cancelStartTimeout=function(){l&&(n.cancel(l),l=null)},this.stop=function(){d.blockCount=Math.max(0,--d.blockCount),0===d.blockCount&&c.reset(!0)},this.isBlocking=function(){return d.blocking},this.message=function(e){d.message=e},this.pattern=function(e){return void 0!==e&&(c._pattern=e),c._pattern},this.reset=function(t){if(c._cancelStartTimeout(),d.blockCount=0,d.blocking=!1,c._restoreFocus&&(!i[0].activeElement||i[0].activeElement===a[0])){try{c._restoreFocus.focus()}catch(e){!function(){var e=c._restoreFocus;n(function(){if(e)try{e.focus()}catch(e){}},100)}()}c._restoreFocus=null}try{t&&e.forEach(p,function(e){e()})}finally{p.length=0}},this.done=function(e){p.push(e)},this.state=function(){return d},this.addRef=function(){c._refs+=1},this.release=function(){--c._refs<=0&&u.instances._destroy(c)}}var a=i.find("body"),s=["id","blockCount","blocking"],l=[];l.get=function(e){if(!isNaN(e))throw new Error("BlockUI id cannot be a number");var t=l[e];return t||(t=l[e]=new o(e),l.push(t)),t},l._destroy=function(t){if(e.isString(t)&&(t=l[t]),t){t.reset();var n=r.indexOf(l,t);l.splice(n,1),delete l[t.state().id]}},l.locate=function(e){var t=[];r.forEachFnHook(t,"start"),r.forEachFnHook(t,"stop");for(var n=l.length;n--;){var i=l[n],o=i._pattern;o&&o.test(e.url)&&t.push(i)}return 0===t.length&&t.push(u),t},r.forEachFnHook(l,"reset");var u=l.get("main");return u.addRef(),u.instances=l,u}]),r.factory("blockUIUtils",function(){var t=e.element,n={buildRegExp:function(e){var t=e.match(/^\/(.*)\/([gim]*)$/);if(!t)throw Error("Incorrect regular expression format: "+e);return new RegExp(t[1],t[2])},forEachFn:function(e,t,n){for(var r=e.length;r--;){var i=e[r];i[t].apply(i,n)}},forEachFnHook:function(e,t){e[t]=function(){n.forEachFn(this,t,arguments)}},isElementInBlockScope:function(e,t){for(var n=e.inheritedData("block-ui");n;){if(n===t)return!0;n=n._parent}return!1},findElement:function(e,r,i){var o=null;if(r(e))o=e;else{var a;a=i?e.parent():e.children();for(var s=a.length;!o&&s--;)o=n.findElement(t(a[s]),r,i)}return o},indexOf:function(e,t,n){for(var r=n||0,i=e.length;r
    {{ state.message }}
    ')}])}(angular),/** * @license AngularJS v1.6.9 * (c) 2010-2018 Google, Inc. http://angularjs.org * License: MIT */ function(e,t){"use strict";function n(e){return t.lowercase(e.nodeName||e[0]&&e[0].nodeName)}function r(e,n){var r=!1,i=!1;this.ngClickOverrideEnabled=function(o){return t.isDefined(o)?(o&&!i&&(i=!0,a.$$moduleName="ngTouch",n.directive("ngClick",a),e.decorator("ngClickDirective",["$delegate",function(e){if(r)e.shift();else for(var t=e.length-1;t>=0;){if("ngTouch"===e[t].$$moduleName){e.splice(t,1);break}t--}return e}])),r=o,this):r},this.$get=function(){return{ngClickOverrideEnabled:function(){return r}}}}function i(e,n,r){o.directive(e,["$parse","$swipe",function(i,o){return function(a,s,l){function u(e){if(!c)return!1;var t=Math.abs(e.y-c.y),r=(e.x-c.x)*n;return d&&t<75&&r>0&&r>30&&t/r<.3}var c,d,p=i(l[e]),f=["touch"];t.isDefined(l.ngSwipeDisableMouse)||f.push("mouse"),o.bind(s,{start:function(e,t){c=e,d=!0},cancel:function(e){d=!1},end:function(e,t){u(e)&&a.$apply(function(){s.triggerHandler(r),p(a,{$event:t})})}},f)}}])}var o=t.module("ngTouch",[]);o.info({angularVersion:"1.6.9"}),o.provider("$touch",r),r.$inject=["$provide","$compileProvider"],o.factory("$swipe",[function(){function e(e){var t=e.originalEvent||e,n=t.touches&&t.touches.length?t.touches:[t],r=t.changedTouches&&t.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function n(e,n){var i=[];return t.forEach(e,function(e){var t=r[e][n];t&&i.push(t)}),i.join(" ")}var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};return{bind:function(t,r,i){var o,a,s,l,u=!1;i=i||["mouse","touch","pointer"],t.on(n(i,"start"),function(t){s=e(t),u=!0,o=0,a=0,l=s,r.start&&r.start(s,t)});var c=n(i,"cancel");c&&t.on(c,function(e){u=!1,r.cancel&&r.cancel(e)}),t.on(n(i,"move"),function(t){if(u&&s){var n=e(t);if(o+=Math.abs(n.x-l.x),a+=Math.abs(n.y-l.y),l=n,!(o<10&&a<10))return a>o?(u=!1,void(r.cancel&&r.cancel(t))):(t.preventDefault(),void(r.move&&r.move(n,t)))}}),t.on(n(i,"end"),function(t){u&&(u=!1,r.end&&r.end(e(t),t))})}}}]);var a=["$parse","$timeout","$rootElement",function(e,r,i){function o(e,t,n,r){return Math.abs(e-n)f)){var t=e.touches&&e.touches.length?e.touches:[e],r=t[0].clientX,i=t[0].clientY;r<1&&i<1||p&&p[0]===r&&p[1]===i||(p&&(p=null),"label"===n(e.target)&&(p=[r,i]),a(d,r,i)||(e.stopPropagation(),e.preventDefault(),e.target&&e.target.blur&&e.target.blur()))}}function l(e){var t=e.touches&&e.touches.length?e.touches:[e],n=t[0].clientX,i=t[0].clientY;d.push(n,i),r(function(){for(var e=0;e=0;r--)this.eventListeners.hasOwnProperty(n[r])&&delete this.eventListeners[n[r]]}for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(i,this.eventListeners[i],!1);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},l.prototype.enableMouseWheelZoom=function(){if(!this.options.mouseWheelZoomEnabled){var e=this;this.wheelListener=function(t){return e.handleMouseWheel(t)},r.on(this.options.eventsListenerElement||this.svg,this.wheelListener,!1),this.options.mouseWheelZoomEnabled=!0}},l.prototype.disableMouseWheelZoom=function(){this.options.mouseWheelZoomEnabled&&(r.off(this.options.eventsListenerElement||this.svg,this.wheelListener,!1),this.options.mouseWheelZoomEnabled=!1)},l.prototype.handleMouseWheel=function(e){if(this.options.zoomEnabled&&"none"===this.state){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1);var t=e.deltaY||1,n=Date.now()-this.lastMouseWheelEventTime,r=3+Math.max(0,30-n);this.lastMouseWheelEventTime=Date.now(),"deltaMode"in e&&0===e.deltaMode&&e.wheelDelta&&(t=0===e.deltaY?0:Math.abs(e.wheelDelta)/e.deltaY),t=-.30?1:-1)*Math.log(Math.abs(t)+10)/r;var i=this.svg.getScreenCTM().inverse(),o=a.getEventPoint(e,this.svg).matrixTransform(i),s=Math.pow(1+this.options.zoomScaleSensitivity,-1*t);this.zoomAtPoint(s,o)}},l.prototype.zoomAtPoint=function(e,t,n){var r=this.viewport.getOriginalState();n?(e=Math.max(this.options.minZoom*r.zoom,Math.min(this.options.maxZoom*r.zoom,e)),e/=this.getZoom()):this.getZoom()*ethis.options.maxZoom*r.zoom&&(e=this.options.maxZoom*r.zoom/this.getZoom());var i=this.viewport.getCTM(),o=t.matrixTransform(i.inverse()),a=this.svg.createSVGMatrix().translate(o.x,o.y).scale(e).translate(-o.x,-o.y),s=i.multiply(a);s.a!==i.a&&this.viewport.setCTM(s)},l.prototype.zoom=function(e,t){this.zoomAtPoint(e,a.getSvgCenterPoint(this.svg,this.width,this.height),t)},l.prototype.publicZoom=function(e,t){t&&(e=this.computeFromRelativeZoom(e)),this.zoom(e,t)},l.prototype.publicZoomAtPoint=function(e,t,n){if(n&&(e=this.computeFromRelativeZoom(e)),"SVGPoint"!==o.getType(t)){if(!("x"in t&&"y"in t))throw new Error("Given point is invalid");t=a.createSVGPoint(this.svg,t.x,t.y)}this.zoomAtPoint(e,t,n)},l.prototype.getZoom=function(){return this.viewport.getZoom()},l.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},l.prototype.computeFromRelativeZoom=function(e){return e*this.viewport.getOriginalState().zoom},l.prototype.resetZoom=function(){var e=this.viewport.getOriginalState();this.zoom(e.zoom,!0)},l.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},l.prototype.reset=function(){this.resetZoom(),this.resetPan()},l.prototype.handleDblClick=function(e){if(this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.options.controlIconsEnabled){if((e.target.getAttribute("class")||"").indexOf("svg-pan-zoom-control")>-1)return!1}var t;t=e.shiftKey?1/(2*(1+this.options.zoomScaleSensitivity)):2*(1+this.options.zoomScaleSensitivity);var n=a.getEventPoint(e,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(t,n)},l.prototype.handleMouseDown=function(e,t){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),o.mouseAndTouchNormalize(e,this.svg),this.options.dblClickZoomEnabled&&o.isDblClick(e,t)?this.handleDblClick(e):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=a.getEventPoint(e,this.svg).matrixTransform(this.firstEventCTM.inverse()))},l.prototype.handleMouseMove=function(e){if(this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),"pan"===this.state&&this.options.panEnabled){var t=a.getEventPoint(e,this.svg).matrixTransform(this.firstEventCTM.inverse()),n=this.firstEventCTM.translate(t.x-this.stateOrigin.x,t.y-this.stateOrigin.y);this.viewport.setCTM(n)}},l.prototype.handleMouseUp=function(e){this.options.preventMouseEventsDefault&&(e.preventDefault?e.preventDefault():e.returnValue=!1),"pan"===this.state&&(this.state="none")},l.prototype.fit=function(){var e=this.viewport.getViewBox(),t=Math.min(this.width/e.width,this.height/e.height);this.zoom(t,!0)},l.prototype.contain=function(){var e=this.viewport.getViewBox(),t=Math.max(this.width/e.width,this.height/e.height);this.zoom(t,!0)},l.prototype.center=function(){var e=this.viewport.getViewBox(),t=.5*(this.width-(e.width+2*e.x)*this.getZoom()),n=.5*(this.height-(e.height+2*e.y)*this.getZoom());this.getPublicInstance().pan({x:t,y:n})},l.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},l.prototype.pan=function(e){var t=this.viewport.getCTM();t.e=e.x,t.f=e.y,this.viewport.setCTM(t)},l.prototype.panBy=function(e){var t=this.viewport.getCTM();t.e+=e.x,t.f+=e.y,this.viewport.setCTM(t)},l.prototype.getPan=function(){var e=this.viewport.getState();return{x:e.x,y:e.y}},l.prototype.resize=function(){var e=a.getBoundingClientRectNormalized(this.svg);this.width=e.width,this.height=e.height;var t=this.viewport;t.options.width=this.width,t.options.height=this.height,t.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},l.prototype.destroy=function(){var e=this;this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,this.onUpdatedCTM=null,null!=this.options.customEventsHandler&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});for(var t in this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(t,this.eventListeners[t],!1);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),c=c.filter(function(t){return t.svg!==e.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},l.prototype.getPublicInstance=function(){var e=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return e.options.panEnabled=!0,e.pi},disablePan:function(){return e.options.panEnabled=!1,e.pi},isPanEnabled:function(){return!!e.options.panEnabled},pan:function(t){return e.pan(t),e.pi},panBy:function(t){return e.panBy(t),e.pi},getPan:function(){return e.getPan()},setBeforePan:function(t){return e.options.beforePan=null===t?null:o.proxy(t,e.publicInstance),e.pi},setOnPan:function(t){return e.options.onPan=null===t?null:o.proxy(t,e.publicInstance),e.pi},enableZoom:function(){return e.options.zoomEnabled=!0,e.pi},disableZoom:function(){return e.options.zoomEnabled=!1,e.pi},isZoomEnabled:function(){return!!e.options.zoomEnabled},enableControlIcons:function(){return e.options.controlIconsEnabled||(e.options.controlIconsEnabled=!0,i.enable(e)),e.pi},disableControlIcons:function(){return e.options.controlIconsEnabled&&(e.options.controlIconsEnabled=!1,i.disable(e)),e.pi},isControlIconsEnabled:function(){return!!e.options.controlIconsEnabled},enableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!0,e.pi},disableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!1,e.pi},isDblClickZoomEnabled:function(){return!!e.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return e.enableMouseWheelZoom(),e.pi},disableMouseWheelZoom:function(){return e.disableMouseWheelZoom(),e.pi},isMouseWheelZoomEnabled:function(){return!!e.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(t){return e.options.zoomScaleSensitivity=t,e.pi},setMinZoom:function(t){return e.options.minZoom=t,e.pi},setMaxZoom:function(t){return e.options.maxZoom=t,e.pi},setBeforeZoom:function(t){return e.options.beforeZoom=null===t?null:o.proxy(t,e.publicInstance),e.pi},setOnZoom:function(t){return e.options.onZoom=null===t?null:o.proxy(t,e.publicInstance),e.pi},zoom:function(t){return e.publicZoom(t,!0),e.pi},zoomBy:function(t){return e.publicZoom(t,!1),e.pi},zoomAtPoint:function(t,n){return e.publicZoomAtPoint(t,n,!0),e.pi},zoomAtPointBy:function(t,n){return e.publicZoomAtPoint(t,n,!1),e.pi},zoomIn:function(){return this.zoomBy(1+e.options.zoomScaleSensitivity),e.pi},zoomOut:function(){return this.zoomBy(1/(1+e.options.zoomScaleSensitivity)),e.pi},getZoom:function(){return e.getRelativeZoom()},setOnUpdatedCTM:function(t){return e.options.onUpdatedCTM=null===t?null:o.proxy(t,e.publicInstance),e.pi},resetZoom:function(){return e.resetZoom(),e.pi},resetPan:function(){return e.resetPan(),e.pi},reset:function(){return e.reset(),e.pi},fit:function(){return e.fit(),e.pi},contain:function(){return e.contain(),e.pi},center:function(){return e.center(),e.pi},updateBBox:function(){return e.updateBBox(),e.pi},resize:function(){return e.resize(),e.pi},getSizes:function(){return{width:e.width,height:e.height,realZoom:e.getZoom(),viewBox:e.viewport.getViewBox()}},destroy:function(){return e.destroy(),e.pi}}),this.publicInstance};var c=[],d=function(e,t){var n=o.getSvg(e);if(null===n)return null;for(var r=c.length-1;r>=0;r--)if(c[r].svg===n)return c[r].instance.getPublicInstance();return c.push({svg:n,instance:new l(n,t)}),c[c.length-1].instance.getPublicInstance()};t.exports=d},{"./control-icons":2,"./shadow-viewport":3,"./svg-utilities":5,"./uniwheel":6,"./utilities":7}],5:[function(e,t,n){var r=e("./utilities"),i="unknown";document.documentMode&&(i="ie"),t.exports={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(e){if(e.clientWidth&&e.clientHeight)return{width:e.clientWidth,height:e.clientHeight};if(e.getBoundingClientRect())return e.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(e,t){var n=null;if(!(n=r.isElement(t)?t:e.querySelector(t))){var i=Array.prototype.slice.call(e.childNodes||e.children).filter(function(e){return"defs"!==e.nodeName&&"#text"!==e.nodeName});1===i.length&&"g"===i[0].nodeName&&null===i[0].getAttribute("transform")&&(n=i[0])}if(!n){var o="viewport-"+(new Date).toISOString().replace(/\D/g,"");n=document.createElementNS(this.svgNS,"g"),n.setAttribute("id",o);var a=e.childNodes||e.children;if(a&&a.length>0)for(var s=a.length;s>0;s--)"defs"!==a[a.length-s].nodeName&&n.appendChild(a[a.length-s]);e.appendChild(n)}var l=[];return n.getAttribute("class")&&(l=n.getAttribute("class").split(" ")),~l.indexOf("svg-pan-zoom_viewport")||(l.push("svg-pan-zoom_viewport"),n.setAttribute("class",l.join(" "))),n},setupSvgAttributes:function(e){if(e.setAttribute("xmlns",this.svgNS),e.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),e.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),null!==e.parentNode){var t=e.getAttribute("style")||"";-1===t.toLowerCase().indexOf("overflow")&&e.setAttribute("style","overflow: hidden; "+t)}},internetExplorerRedisplayInterval:300,refreshDefsGlobal:r.throttle(function(){for(var e=document.querySelectorAll("defs"),t=e.length,n=0;nt?(clearTimeout(s),s=null,l=c,o=e.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(u,d)),o}},createRequestAnimationFrame:function(e){var t=null;return"auto"!==e&&e<60&&e>1&&(t=Math.floor(1e3/e)),null===t?window.requestAnimationFrame||r(33):r(t)}}},{}]},{},[1]),/*! * Chart.js v2.8.0 * https://www.chartjs.org * (c) 2019 Chart.js Contributors * Released under the MIT License */ function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(function(){try{return require("moment")}catch(e){}}()):"function"==typeof define&&define.amd?define(["require"],function(e){return t(function(){try{return e("moment")}catch(e){}}())}):e.Chart=t(e.moment)}(this,function(e){"use strict";function t(e){var t,n,r,i=e[0]/255,o=e[1]/255,a=e[2]/255,s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s;return l==s?t=0:i==l?t=(o-a)/u:o==l?t=2+(a-i)/u:a==l&&(t=4+(i-o)/u),t=Math.min(60*t,360),t<0&&(t+=360),r=(s+l)/2,n=l==s?0:r<=.5?u/(l+s):u/(2-l-s),[t,100*n,100*r]}function n(e){var t,n,r,i=e[0],o=e[1],a=e[2],s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s;return n=0==l?0:u/l*1e3/10,l==s?t=0:i==l?t=(o-a)/u:o==l?t=2+(a-i)/u:a==l&&(t=4+(i-o)/u),t=Math.min(60*t,360),t<0&&(t+=360),r=l/255*1e3/10,[t,n,r]}function i(e){var n=e[0],r=e[1],i=e[2],o=t(e)[0],a=1/255*Math.min(n,Math.min(r,i)),i=1-1/255*Math.max(n,Math.max(r,i));return[o,100*a,100*i]}function o(e){var t,n,r,i,o=e[0]/255,a=e[1]/255,s=e[2]/255;return i=Math.min(1-o,1-a,1-s),t=(1-o-i)/(1-i)||0,n=(1-a-i)/(1-i)||0,r=(1-s-i)/(1-i)||0,[100*t,100*n,100*r,100*i]}function a(e){return rn[JSON.stringify(e)]}function s(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function l(e){var t,n,r,i=s(e),o=i[0],a=i[1],l=i[2];return o/=95.047,a/=100,l/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,l=l>.008856?Math.pow(l,1/3):7.787*l+16/116,t=116*a-16,n=500*(o-a),r=200*(a-l),[t,n,r]}function u(e){return F(l(e))}function c(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return o=255*l,[o,o,o];n=l<.5?l*(1+s):l+s-l*s,t=2*l-n,i=[0,0,0];for(var u=0;u<3;u++)r=a+1/3*-(u-1),r<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i}function d(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100;return 0===o?[0,0,0]:(o*=2,i*=o<=1?o:2-o,n=(o+i)/2,t=2*i/(o+i),[r,100*t,100*n])}function p(e){return i(c(e))}function f(e){return o(c(e))}function h(e){return a(c(e))}function m(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o)),r=255*r;switch(i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}}function v(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100;return n=(2-i)*o,t=i*o,t/=n<=1?n:2-n,t=t||0,n/=2,[r,100*t,100*n]}function y(e){return i(m(e))}function w(e){return o(m(e))}function x(e){return a(m(e))}function C(e){var t,n,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),t=Math.floor(6*a),n=1-l,i=6*a-t,0!=(1&t)&&(i=1-i),o=s+i*(n-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function S(e){return t(C(e))}function $(e){return n(C(e))}function E(e){return o(C(e))}function T(e){return a(C(e))}function k(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,i*(1-s)+s),n=1-Math.min(1,o*(1-s)+s),r=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*r]}function _(e){return t(k(e))}function A(e){return n(k(e))}function D(e){return i(k(e))}function M(e){return a(k(e))}function O(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return t=3.2406*i+-1.5372*o+-.4986*a,n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]}function P(e){var t,n,r,i=e[0],o=e[1],a=e[2];return i/=95.047,o/=100,a/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,t=116*o-16,n=500*(i-o),r=200*(o-a),[t,n,r]}function R(e){return F(P(e))}function I(e){var t,n,r,i,o=e[0],a=e[1],s=e[2];return o<=8?(n=100*o/903.3,i=n/100*7.787+16/116):(n=100*Math.pow((o+16)/116,3),i=Math.pow(n/100,1/3)),t=t/95.047<=.008856?t=95.047*(a/500+i-16/116)/7.787:95.047*Math.pow(a/500+i,3),r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3),[t,n,r]}function F(e){var t,n,r,i=e[0],o=e[1],a=e[2];return t=Math.atan2(a,o),n=360*t/2/Math.PI,n<0&&(n+=360),r=Math.sqrt(o*o+a*a),[i,r,n]}function N(e){return O(I(e))}function L(e){var t,n,r,i=e[0],o=e[1],a=e[2];return r=a/360*2*Math.PI,t=o*Math.cos(r),n=o*Math.sin(r),[i,t,n]}function V(e){return I(L(e))}function j(e){return N(L(e))}function H(e){return nn[e]}function z(e){return t(H(e))}function B(e){return n(H(e))}function U(e){return i(H(e))}function G(e){return o(H(e))}function W(e){return l(H(e))}function q(e){return s(H(e))}function Y(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,o=/(\w+)/,a=[0,0,0],s=1,l=e.match(t),u="";if(l){l=l[1],u=l[3];for(var c=0;c=0&&t<1?ce(Math.round(255*t)):"")}function te(e,t){return t<1||e[3]&&e[3]<1?ne(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function ne(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function re(e,t){return t<1||e[3]&&e[3]<1?ie(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"}function ie(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function oe(e,t){return t<1||e[3]&&e[3]<1?ae(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function ae(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function se(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function le(e){return gn[e.slice(0,3)]}function ue(e,t,n){return Math.min(Math.max(t,e),n)}function ce(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}function de(e){return!e||wn.isNullOrUndef(e.size)||wn.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function pe(e,t,n,r){var i,o,a,s,l,u,c,d,p,f=Object.keys(n);for(i=0,o=f.length;i0||(Gn.forEach(function(t){delete e[t]}),delete e._chartjs)}}function ge(e){var t=this._view;return!!t&&Math.abs(e-t.x)e.x&&(t=be(t,"left","right")):e.basen?n:r,r:l.right||i<0?0:i>t?t:i,b:l.bottom||o<0?0:o>n?n:o,l:l.left||a<0?0:a>t?t:a}}function Ce(e){var t=ye(e),n=t.right-t.left,r=t.bottom-t.top,i=xe(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}function Se(e,t,n){var r=null===t,i=null===n,o=!(!e||r&&i)&&ye(e);return o&&(r||t>=o.left&&t<=o.right)&&(i||n>=o.top&&n<=o.bottom)}function $e(e,t){var n,r,i,o,a=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(i=1,o=t.length;i0?Math.min(a,r-n):a,n=r;return a}function Ee(e,t,n){var r,i,o=n.barThickness,a=t.stackCount,s=t.pixels[e];return In.isNullOrUndef(o)?(r=t.min*n.categoryPercentage,i=n.barPercentage):(r=o*a,i=1),{chunk:r/a,ratio:i,start:s-r/2}}function Te(e,t,n){var r,i,o=t.pixels,a=o[e],s=e>0?o[e-1]:null,l=e-1?e.split("\n"):e}function et(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,i=e._datasetIndex,o=e._chart.getDatasetMeta(i).controller,a=o._getIndexScale(),s=o._getValueScale();return{xLabel:t?t.getLabelForIndex(r,i):"",yLabel:n?n.getLabelForIndex(r,i):"",label:a?""+a.getLabelForIndex(r,i):"",value:s?""+s.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:e._model.x,y:e._model.y}}function tt(e){var t=On.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:qr(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:qr(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:qr(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:qr(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:qr(e.titleFontStyle,t.defaultFontStyle),titleFontSize:qr(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:qr(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:qr(e.footerFontStyle,t.defaultFontStyle),footerFontSize:qr(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function nt(e,t){var n=e._chart.ctx,r=2*t.yPadding,i=0,o=t.body,a=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;r+=s*u,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=a*c,r+=a?(a-1)*t.bodySpacing:0,r+=l?t.footerMarginTop:0,r+=l*d,r+=l?(l-1)*t.footerSpacing:0;var p=0,f=function(e){i=Math.max(i,n.measureText(e).width+p)};return n.font=In.fontString(u,t._titleFontStyle,t._titleFontFamily),In.each(t.title,f),n.font=In.fontString(c,t._bodyFontStyle,t._bodyFontFamily),In.each(t.beforeBody.concat(t.afterBody),f),p=t.displayColors?c+2:0,In.each(o,function(e){In.each(e.before,f),In.each(e.lines,f),In.each(e.after,f)}),p=0,n.font=In.fontString(d,t._footerFontStyle,t._footerFontFamily),In.each(t.footer,f),i+=2*t.xPadding,{width:i,height:r}}function rt(e,t){var n=e._model,r=e._chart,i=e._chart.chartArea,o="center",a="center";n.yr.height-t.height&&(a="bottom");var s,l,u,c,d,p=(i.left+i.right)/2,f=(i.top+i.bottom)/2;"center"===a?(s=function(e){return e<=p},l=function(e){return e>p}):(s=function(e){return e<=t.width/2},l=function(e){return e>=r.width-t.width/2}),u=function(e){return e+t.width+n.caretSize+n.caretPadding>r.width},c=function(e){return e-t.width-n.caretSize-n.caretPadding<0},d=function(e){return e<=f?"top":"bottom"},s(n.x)?(o="left",u(n.x)&&(o="center",a=d(n.y))):l(n.x)&&(o="right",c(n.x)&&(o="center",a=d(n.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:o,yAlign:h.yAlign?h.yAlign:a}}function it(e,t,n,r){var i=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=n.xAlign,c=n.yAlign,d=a+s,p=l+s;return"right"===u?i-=t.width:"center"===u&&(i-=t.width/2,i+t.width>r.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===c?o+=d:o-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===u?i+=d:"right"===u&&(i-=d):"left"===u?i-=p:"right"===u&&(i+=p),{x:i,y:o}}function ot(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function at(e){return Je([],Qe(e))}function st(){return In.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,o,a,s=n[e].length;for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?In.merge(t[e][i],[Wr.getScaleDefaults(o),a]):In.merge(t[e][i],a)}else In._merger(e,t,n,r)}})}function lt(){return In.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||{},o=n[e];"scales"===e?t[e]=st(i,o):"scale"===e?t[e]=In.merge(i,[Wr.getScaleDefaults(o.type),o]):In._merger(e,t,n,r)}})}function ut(e){e=e||{};var t=e.data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=lt(On.global,On[e.type],e.options||{}),e}function ct(e){var t=e.options;In.each(e.scales,function(t){Dr.removeBox(e,t)}),t=lt(On.global,On[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function dt(e){return"top"===e||"bottom"===e}function pt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function ft(e){this.options=e||{}}function ht(e){var t,n,r=[];for(t=0,n=e.length;tu&&(g=In.niceNum(o*g/u/l)*l),s||di(p)?n=Math.pow(10,In._decimalPlaces(g)):(n=Math.pow(10,p),g=Math.ceil(g*n)/n),r=Math.floor(f/g)*g,i=Math.ceil(h/g)*g,s&&(!di(c)&&In.almostWhole(c/g,g/1e3)&&(r=c),!di(d)&&In.almostWhole(d/g,g/1e3)&&(i=d)),o=(i-r)/g,o=In.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(di(c)?r:c);for(var m=1;m=0?1:l),o=Math.round(r*Math.pow(10,n)*l)/l}while(n=0?e:t}function wt(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function xt(e){var t=e.ticks;return t.display&&e.display?wi(t.fontSize,On.global.defaultFontSize)+2*t.backdropPaddingY:0}function Ct(e,t,n){return In.isArray(n)?{w:In.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function St(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function $t(e){var t,n,r,i=In.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=i.string,e._pointLabelSizes=[];var s=wt(e);for(t=0;to.r&&(o.r=c.end,a.r=l),d.starto.b&&(o.b=d.end,a.b=l)}e.setReductions(e.drawingArea,o,a)}function Et(e){return 0===e||180===e?"center":e<180?"left":"right"}function Tt(e,t,n,r){var i,o,a=n.y+r/2;if(In.isArray(t))for(i=0,o=t.length;i270||e<90)&&(n.y-=t.h)}function _t(e){var t=e.ctx,n=e.options,r=n.angleLines,i=n.gridLines,o=n.pointLabels,a=wi(r.lineWidth,i.lineWidth),s=wi(r.color,i.color),l=xt(n);t.save(),t.lineWidth=a,t.strokeStyle=s,t.setLineDash&&(t.setLineDash(Ci([r.borderDash,i.borderDash,[]])),t.lineDashOffset=Ci([r.borderDashOffset,i.borderDashOffset,0]));var u=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),c=In.options._parseFont(o);t.font=c.string,t.textBaseline="middle";for(var d=wt(e)-1;d>=0;d--){if(r.display&&a&&s){var p=e.getPointPosition(d,u);t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(p.x,p.y),t.stroke()}if(o.display){var f=0===d?l/2:0,h=e.getPointPosition(d,u+f+5),g=xi(o.fontColor,d,On.global.defaultFontColor);t.fillStyle=g;var m=e.getIndexAngle(d),v=In.toDegrees(m);t.textAlign=Et(v),kt(v,e._pointLabelSizes[d],h),Tt(t,e.pointLabels[d]||"",h,c.lineHeight)}}t.restore()}function At(e,t,n,r){var i,o=e.ctx,a=t.circular,s=wt(e),l=xi(t.color,r-1),u=xi(t.lineWidth,r-1);if((a||s)&&l&&u){if(o.save(),o.strokeStyle=l,o.lineWidth=u,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{i=e.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var c=1;ct&&s=0&&a<=s;){if(r=a+s>>1,i=e[r-1]||null,o=e[r],!i)return{lo:null,hi:o};if(o[t]n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}function It(e,t,n,r){var i=Rt(e,t,n),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],a=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=a[t]-o[t],l=s?(n-o[t])/s:0,u=(a[r]-o[r])*l;return o[r]+u}function Ft(e,t){var n=e._adapter,r=e.options.time,i=r.parser,o=i||r.format,a=t;return"function"==typeof i&&(a=i(a)),In.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!=typeof o||(a=o(t),In.isFinite(a)||(a=n.parse(a))),a)}function Nt(e,t){if(In.isNullOrUndef(t))return null;var n=e.options.time,r=Ft(e,e.getRightValue(t));return null===r?r:(n.round&&(r=+e._adapter.startOf(r,n.round)),r)}function Lt(e,t,n,r){var i,o,a,s=t-e,l=Ai[n],u=l.size,c=l.steps;if(!c)return Math.ceil(s/(r*u));for(i=0,o=c.length;i=Di.indexOf(n);o--)if(a=Di[o],Ai[a].common&&e._adapter.diff(i,r,a)>=t.length)return a;return Di[n?Di.indexOf(n):0]}function Ht(e){for(var t=Di.indexOf(e)+1,n=Di.length;t=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function Wt(e){var t,n=e.el._model||{},r=e.el._scale||{},i=e.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(In.isFinite(o))return t=r.isHorizontal(),{x:t?o:null,y:t?null:o}}return null}function qt(e,t,n){var r,i=e[t],o=i.fill,a=[t];if(!n)return o;for(;!1!==o&&-1===a.indexOf(o);){if(!isFinite(o))return o;if(!(r=e[o]))return!1;if(r.visible)return o;a.push(o),o=r.fill}return!1}function Yt(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Fi[n](e))}function Xt(e){return e&&!e.skip}function Zt(e,t,n,r,i){var o;if(r&&i){for(e.moveTo(t[0].x,t[0].y),o=1;o0;--o)In.canvas.lineTo(e,n[o],n[o-1],!0)}}function Kt(e,t,n,r,i,o){var a,s,l,u,c,d,p,f=t.length,h=r.spanGaps,g=[],m=[],v=0,y=0;for(e.beginPath(),a=0,s=f+!!o;at?t:e.boxWidth}function Qt(e,t){var n=new ji({ctx:e.ctx,options:t,chart:e});Dr.configure(e,n,t),Dr.addBox(e,n),e.legend=n}function en(e,t){var n=new Bi({ctx:e.ctx,options:t,chart:e});Dr.configure(e,n,t),Dr.addBox(e,n),e.titleBlock=n}e=e&&e.hasOwnProperty("default")?e.default:e;/* MIT license */ var tn={rgb2hsl:t,rgb2hsv:n,rgb2hwb:i,rgb2cmyk:o,rgb2keyword:a,rgb2xyz:s,rgb2lab:l,rgb2lch:u,hsl2rgb:c,hsl2hsv:d,hsl2hwb:p,hsl2cmyk:f,hsl2keyword:h,hsv2rgb:m,hsv2hsl:v,hsv2hwb:y,hsv2cmyk:w,hsv2keyword:x,hwb2rgb:C,hwb2hsl:S,hwb2hsv:$,hwb2cmyk:E,hwb2keyword:T,cmyk2rgb:k,cmyk2hsl:_,cmyk2hsv:A,cmyk2hwb:D,cmyk2keyword:M,keyword2rgb:H,keyword2hsl:z,keyword2hsv:B,keyword2hwb:U,keyword2cmyk:G,keyword2lab:W,keyword2xyz:q,xyz2rgb:O,xyz2lab:P,xyz2lch:R,lab2xyz:I,lab2rgb:N,lab2lch:F,lch2lab:L,lch2xyz:V,lch2rgb:j},nn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},rn={};for(var on in nn)rn[JSON.stringify(nn[on])]=on;var an=function(){return new dn};for(var sn in tn){an[sn+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),tn[e](t)}}(sn);var ln=/(\w+)2(\w+)/.exec(sn),un=ln[1],cn=ln[2];an[un]=an[un]||{},an[un][cn]=an[sn]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=tn[e](t);if("string"==typeof n||void 0===n)return n;for(var r=0;rn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new vn,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(e=r[o],t={}.toString.call(e),"[object Array]"===t?i[o]=e.slice(0):"[object Number]"===t?i[o]=e:console.error("unexpected color value:",e));return n}},vn.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},vn.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},vn.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r=0;i--)t.call(n,e[i],i);else for(i=0;i=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-xn.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*xn.easeInBounce(2*e):.5*xn.easeOutBounce(2*e-1)+.5}},Cn={effects:xn};wn.easingEffects=xn;var Sn=Math.PI,$n=Sn/180,En=2*Sn,Tn=Sn/2,kn=Sn/4,_n=2*Sn/3,An={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=t+a,l=n+a,u=t+r-a,c=n+i-a;e.moveTo(t,l),st.left-1e-6&&e.xt.top-1e-6&&e.y0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,r,i=this.animations,o=0;o=n?(In.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(o,1)):++o}},Un=In.options.resolve,Gn=["push","pop","shift","splice","unshift"],Wn=function(e,t){this.initialize(e,t)};In.extend(Wn.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this.update(!0)},destroy:function(){this._data&&he(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),i=n.getDataset().data||[],o=r.data;for(e=0,t=i.length;er&&e.insertElements(r,i-r)},insertElements:function(e,t){for(var n=0;ns;)i-=2*Math.PI;for(;i=a&&i<=s,u=o>=n.innerRadius&&o<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r=n.startAngle,i=n.endAngle,o="inner"===n.borderAlign?.33:0;t.save(),t.beginPath(),t.arc(n.x,n.y,Math.max(n.outerRadius-o,0),r,i),t.arc(n.x,n.y,n.innerRadius,i,r,!0),t.closePath(),t.fillStyle=n.backgroundColor,t.fill(),n.borderWidth&&("inner"===n.borderAlign?(t.beginPath(),e=o/n.outerRadius,t.arc(n.x,n.y,n.outerRadius,r-e,i+e),n.innerRadius>o?(e=o/n.innerRadius,t.arc(n.x,n.y,n.innerRadius-o,i+e,r-e,!0)):t.arc(n.x,n.y,o,i+Math.PI/2,r-Math.PI/2),t.closePath(),t.clip(),t.beginPath(),t.arc(n.x,n.y,n.outerRadius,r,i),t.arc(n.x,n.y,n.innerRadius,i,r,!0),t.closePath(),t.lineWidth=2*n.borderWidth,t.lineJoin="round"):(t.lineWidth=n.borderWidth,t.lineJoin="bevel"),t.strokeStyle=n.borderColor,t.stroke()),t.restore()}}),Xn=In.valueOrDefault,Zn=On.global.defaultColor;On._set("global",{elements:{line:{tension:.4,backgroundColor:Zn,borderWidth:3,borderColor:Zn,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Kn=jn.extend({draw:function(){var e,t,n,r,i=this,o=i._view,a=i._chart.ctx,s=o.spanGaps,l=i._children.slice(),u=On.global,c=u.elements.line,d=-1;for(i._loop&&l.length&&l.push(l[0]),a.save(),a.lineCap=o.borderCapStyle||c.borderCapStyle,a.setLineDash&&a.setLineDash(o.borderDash||c.borderDash),a.lineDashOffset=Xn(o.borderDashOffset,c.borderDashOffset),a.lineJoin=o.borderJoinStyle||c.borderJoinStyle,a.lineWidth=Xn(o.borderWidth,c.borderWidth),a.strokeStyle=o.borderColor||u.defaultColor,a.beginPath(),d=-1,e=0;e=0&&i>0)&&(y+=i));return o=d.getPixelForValue(y),a=d.getPixelForValue(y+h),s=a-o,void 0!==g&&Math.abs(s)=0&&!p||h<0&&p?o-g:o+g),{size:s,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n){var r=this,i=n.scale.options,o="flex"===i.barThickness?Te(t,n,i):Ee(t,n,i),a=r.getStackIndex(e,r.getMeta().stack),s=o.start+o.chunk*a+o.chunk/2,l=Math.min(In.valueOrDefault(i.maxBarThickness,1/0),o.chunk*o.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),r=e.getMeta().data,i=e.getDataset(),o=r.length,a=0;for(In.canvas.clipArea(t.ctx,t.chartArea);a');var n=e.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o'),i[o]&&t.push(i[o]),t.push("");return t.push(""),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){ var i=e.getDatasetMeta(0),o=t.datasets[0],a=i.data[r],s=a&&a.custom||{},l=e.options.elements.arc;return{text:n,fillStyle:fr([s.backgroundColor,o.backgroundColor,l.backgroundColor],void 0,r),strokeStyle:fr([s.borderColor,o.borderColor,l.borderColor],void 0,r),lineWidth:fr([s.borderWidth,o.borderWidth,l.borderWidth],void 0,r),hidden:isNaN(o.data[r])||i.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n=Math.PI?-1:m<-Math.PI?1:0);var v=m+h,y={x:Math.cos(m),y:Math.sin(m)},b={x:Math.cos(v),y:Math.sin(v)},w=m<=0&&v>=0||m<=2*Math.PI&&2*Math.PI<=v,x=m<=.5*Math.PI&&.5*Math.PI<=v||m<=2.5*Math.PI&&2.5*Math.PI<=v,C=m<=-Math.PI&&-Math.PI<=v||m<=Math.PI&&Math.PI<=v,S=m<=.5*-Math.PI&&.5*-Math.PI<=v||m<=1.5*Math.PI&&1.5*Math.PI<=v,$=f/100,E={x:C?-1:Math.min(y.x*(y.x<0?1:$),b.x*(b.x<0?1:$)),y:S?-1:Math.min(y.y*(y.y<0?1:$),b.y*(b.y<0?1:$))},T={x:w?1:Math.max(y.x*(y.x>0?1:$),b.x*(b.x>0?1:$)),y:x?1:Math.max(y.y*(y.y>0?1:$),b.y*(b.y>0?1:$))},k={width:.5*(T.x-E.x),height:.5*(T.y-E.y)};u=Math.min(s/k.width,l/k.height),c={x:-.5*(T.x+E.x),y:-.5*(T.y+E.y)}}for(t=0,n=p.length;t0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,i,o,a,s,l,u=this,c=0,d=u.chart;if(!e)for(t=0,n=d.data.datasets.length;tc?s:c,c=l>c?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,r=In.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=hr(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=hr(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=hr(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(e,t){var n,r,i,o=this,a=o.chart,s=o.getDataset(),l=e.custom||{},u=a.options.elements.arc,c={},d={chart:a,dataIndex:t,dataset:s,datasetIndex:o.index},p=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=p.length;n0&&br(c[t-1]._model,u)&&(r.controlPointPreviousX=e(r.controlPointPreviousX,u.left,u.right),r.controlPointPreviousY=e(r.controlPointPreviousY,u.top,u.bottom)),t');var n=e.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o'),i[o]&&t.push(i[o]),t.push("");return t.push(""),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var i=e.getDatasetMeta(0),o=t.datasets[0],a=i.data[r],s=a.custom||{},l=e.options.elements.arc;return{text:n,fillStyle:xr([s.backgroundColor,o.backgroundColor,l.backgroundColor],void 0,r),strokeStyle:xr([s.borderColor,o.borderColor,l.borderColor],void 0,r),lineWidth:xr([s.borderWidth,o.borderWidth,l.borderWidth],void 0,r),hidden:isNaN(o.data[r])||i.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return Pe(e,t,{intersect:!1})},point:function(e,t){return De(e,_e(t,e))},nearest:function(e,t,n){var r=_e(t,e);n.axis=n.axis||"xy";var i=Oe(n.axis);return Me(e,r,n.intersect,i)},x:function(e,t,n){var r=_e(t,e),i=[],o=!1;return Ae(e,function(e){e.inXRange(r.x)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(i=[]),i},y:function(e,t,n){var r=_e(t,e),i=[],o=!1;return Ae(e,function(e){e.inYRange(r.y)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(i=[]),i}}};On._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Dr={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}),Pr=function(e){return e&&e.default||e}(Or),Rr="$chartjs",Ir="chartjs-size-monitor",Fr="chartjs-render-monitor",Nr="chartjs-render-animation",Lr=["animationstart","webkitAnimationStart"],Vr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},jr=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}(),Hr=!!jr&&{passive:!0},zr={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){this._loaded||(this._loaded=!0,this.disableCSSInjection||Ke(this,Pr))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return this._ensureLoaded(),n&&n.canvas===e?(Ve(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[Rr]){var n=t[Rr].initial;["height","width"].forEach(function(e){var r=n[e];In.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)}),In.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[Rr]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"===t)return void Xe(r,n,e);var i=n[Rr]||(n[Rr]={});je(r,t,(i.proxies||(i.proxies={}))[e.id+"_"+t]=function(t){n(Be(t,e))})},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"===t)return void Ze(r);var i=n[Rr]||{},o=i.proxies||{},a=o[e.id+"_"+t];a&&He(r,t,a)}};In.addEvent=je,In.removeEvent=He;var Br=zr._enabled?zr:Mr,Ur=In.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Br);On._set("global",{plugins:{}});var Gr={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,i,o,a,s,l=this.descriptors(e),u=l.length;for(r=0;r0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y },i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(r,t,e,n),r.y+=t.yPadding,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),r=!In.arrayEquals(t._active,t._lastActive),r&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),Zr=Yr,Kr=Xr;Kr.positioners=Zr;var Jr=In.valueOrDefault;On._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Qr=function(e,t){return this.construct(e,t),this};In.extend(Qr.prototype,{construct:function(e,t){var n=this;t=ut(t);var r=Ur.acquireContext(e,t),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;if(n.id=In.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n.chart=n,n.controller=n,Qr.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),!r||!i)return void console.error("Failed to create chart: can't acquire context from the given item");n.initialize(),n.update()},initialize:function(){var e=this;return Gr.notify(e,"beforeInit"),In.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),Gr.notify(e,"afterInit"),e},clear:function(){return In.canvas.clear(this),this},stop:function(){return Bn.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(In.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:In.getMaximumHeight(r)));if((t.width!==o||t.height!==a)&&(r.width=t.width=o,r.height=t.height=a,r.style.width=o+"px",r.style.height=a+"px",In.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};Gr.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;In.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),In.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),In.each(r,function(t){var r=t.options,o=r.id,a=Jr(r.type,t.dtype);dt(r.position)!==dt(t.dposition)&&(r.position=t.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)s=n[o],s.options=r,s.ctx=e.ctx,s.chart=e;else{var l=Wr.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)}),In.each(i,function(e,t){e||delete n[t]}),e.scales=n,Wr.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,t=[];return In.each(e.data.datasets,function(n,r){var i=e.getDatasetMeta(r),o=n.type||e.config.type;if(i.type&&i.type!==o&&(e.destroyDatasetMeta(r),i=e.getDatasetMeta(r)),i.type=o,i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{var a=_r[i.type];if(void 0===a)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new a(e,r),t.push(i.controller)}},e),t},resetElements:function(){var e=this;In.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),ct(t),Gr._invalidate(t),!1!==Gr.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var n=t.buildOrUpdateControllers();In.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.buildOrUpdateElements()},t),t.updateLayout(),t.options.animation&&t.options.animation.duration&&In.each(n,function(e){e.reset()}),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],Gr.notify(t,"afterUpdate"),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){var e=this;!1!==Gr.notify(e,"beforeLayout")&&(Dr.update(this,this.width,this.height),Gr.notify(e,"afterScaleUpdate"),Gr.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==Gr.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);Gr.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,r=n.getDatasetMeta(e),i={meta:r,index:e,easingValue:t};!1!==Gr.notify(n,"beforeDatasetDraw",[i])&&(r.controller.draw(t),Gr.notify(n,"afterDatasetDraw",[i]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==Gr.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),Gr.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return Ar.modes.single(this,e)},getElementsAtEvent:function(e){return Ar.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Ar.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=Ar.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return Ar.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=In.log10(Math.abs(r)),o="";if(0!==e){if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=In.log10(Math.abs(e));o=e.toExponential(Math.floor(a)-Math.floor(i))}else{var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),o=e.toFixed(s)}}else o="0";return o},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(In.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},ii=In.valueOrDefault,oi=In.valueAtIndexOrDefault;On._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:ri.formatters.values,minor:{},major:{}}});var ai=jn.extend({getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1});for(var t in e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){In.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,i,o,a,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=e,u.maxHeight=t,u.margins=In.extend({left:0,right:0,top:0,bottom:0},n),u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],s=u.afterBuildTicks(s)||s,u.beforeTickToLabelConversion(),o=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),u.ticks=o,r=0,i=o.length;ru&&oe.maxHeight){o--;break}o++,l=a*s}e.labelRotation=o},afterCalculateTickRotation:function(){In.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){In.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=ht(e._ticks),r=e.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=e._isVisible(),l=r.position,u=e.isHorizontal(),c=In.options._parseFont,d=c(i),p=r.gridLines.tickMarkLength;if(t.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:s&&a.drawTicks?p:0,t.height=u?s&&a.drawTicks?p:0:e.maxHeight,o.display&&s){var f=c(o),h=In.options.toPadding(o.padding),g=f.lineHeight+h.height;u?t.height+=g:t.width+=g}if(i.display&&s){var m=In.longestText(e.ctx,d.string,n,e.longestTextCache),v=In.numberOfLabelLines(n),y=.5*d.size,b=e.options.ticks.padding;if(e._maxLabelLines=v,e.longestLabelWidth=m,u){var w=In.toRadians(e.labelRotation),x=Math.cos(w),C=Math.sin(w),S=C*m+d.lineHeight*v+y;t.height=Math.min(e.maxHeight,t.height+S+b),e.ctx.font=d.string;var $,E,T=mt(e.ctx,n[0],d.string),k=mt(e.ctx,n[n.length-1],d.string),_=e.getPixelForTick(0)-e.left,A=e.right-e.getPixelForTick(n.length-1);0!==e.labelRotation?($="bottom"===l?x*T:x*y,E="bottom"===l?x*y:x*k):($=T/2,E=k/2),e.paddingLeft=Math.max($-_,0)+3,e.paddingRight=Math.max(E-A,0)+3}else i.mirror?m=0:m+=b+y,t.width=Math.min(e.maxWidth,t.width+m),e.paddingTop=d.size/2,e.paddingBottom=d.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){In.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(In.isNullOrUndef(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:In.noop,getPixelForValue:In.noop,getValueForPixel:In.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var r=t.width-(t.paddingLeft+t.paddingRight),i=r/Math.max(t._ticks.length-(n?0:1),1),o=i*e+t.paddingLeft;n&&(o+=i/2);var a=t.left+o;return a+=t.isFullWidth()?t.margins.left:0}var s=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(s/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=t.width-(t.paddingLeft+t.paddingRight),r=n*e+t.paddingLeft,i=t.left+r;return i+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r=this,i=r.isHorizontal(),o=r.options.ticks.minor,a=e.length,s=!1,l=o.maxTicksLimit,u=r._tickSize()*(a-1),c=i?r.width-(r.paddingLeft+r.paddingRight):r.height-(r.paddingTop+r.PaddingBottom),d=[];for(u>c&&(s=1+Math.floor(u/c)),a>l&&(s=Math.max(s,1+Math.floor(a/l))),t=0;t1&&t%s>0&&delete n.label,d.push(n);return d},_tickSize:function(){var e=this,t=e.isHorizontal(),n=e.options.ticks.minor,r=In.toRadians(e.labelRotation),i=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),a=n.autoSkipPadding||0,s=e.longestLabelWidth+a||0,l=In.options._parseFont(n),u=e._maxLabelLines*l.lineHeight+a||0;return t?u*i>s*o?s/i:u/o:u*o0&&i>0&&(e.min=0)}var o=void 0!==n.min||void 0!==n.suggestedMin,a=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?e.min=n.min:void 0!==n.suggestedMin&&(null===e.min?e.min=n.suggestedMin:e.min=Math.min(e.min,n.suggestedMin)),void 0!==n.max?e.max=n.max:void 0!==n.suggestedMax&&(null===e.max?e.max=n.suggestedMax:e.max=Math.max(e.max,n.suggestedMax)),o!==a&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,n.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,i=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:ci,buildTicks:function(){var e=this,t=e.options,n=t.ticks,r=e.getTickLimit();r=Math.max(2,r);var i={maxTicks:r,min:n.min,max:n.max,precision:n.precision,stepSize:In.valueOrDefault(n.fixedStepSize,n.stepSize)},o=e.ticks=vt(i,e);e.handleDirectionalChanges(),e.max=In.max(o),e.min=In.min(o),n.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),ai.prototype.convertTicksToLabels.call(e)}}),fi={position:"left",ticks:{callback:ri.formatters.linear}},hi=pi.extend({determineDataLimits:function(){function e(e){return a?e.xAxisID===t.id:e.yAxisID===t.id}var t=this,n=t.options,r=t.chart,i=r.data,o=i.datasets,a=t.isHorizontal();t.min=null,t.max=null;var s=n.stacked;if(void 0===s&&In.each(o,function(t,n){if(!s){var i=r.getDatasetMeta(n);r.isDatasetVisible(n)&&e(i)&&void 0!==i.stack&&(s=!0)}}),n.stacked||s){var l={};In.each(o,function(i,o){var a=r.getDatasetMeta(o),s=[a.type,void 0===n.stacked&&void 0===a.stack?o:"",a.stack].join(".");void 0===l[s]&&(l[s]={positiveValues:[],negativeValues:[]});var u=l[s].positiveValues,c=l[s].negativeValues;r.isDatasetVisible(o)&&e(a)&&In.each(i.data,function(e,r){var i=+t.getRightValue(e);isNaN(i)||a.data[r].hidden||(u[r]=u[r]||0,c[r]=c[r]||0,n.relativePoints?u[r]=100:i<0?c[r]+=i:u[r]+=i)})}),In.each(l,function(e){var n=e.positiveValues.concat(e.negativeValues),r=In.min(n),i=In.max(n);t.min=null===t.min?r:Math.min(t.min,r),t.max=null===t.max?i:Math.max(t.max,i)})}else In.each(o,function(n,i){var o=r.getDatasetMeta(i);r.isDatasetVisible(i)&&e(o)&&In.each(n.data,function(e,n){var r=+t.getRightValue(e);isNaN(r)||o.data[n].hidden||(null===t.min?t.min=r:rt.max&&(t.max=r))})});t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=In.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),i=t.end-n;return t.isHorizontal()?t.left+t.width/i*(r-n):t.bottom-t.height/i*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,i=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*i},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}}),gi=fi;hi._defaults=gi;var mi=In.valueOrDefault,vi={position:"left",ticks:{callback:ri.formatters.logarithmic}},yi=ai.extend({determineDataLimits:function(){function e(e){return a?e.xAxisID===t.id:e.yAxisID===t.id}var t=this,n=t.options,r=t.chart,i=r.data,o=i.datasets,a=t.isHorizontal();t.min=null,t.max=null,t.minNotZero=null;var s=n.stacked;if(void 0===s&&In.each(o,function(t,n){if(!s){var i=r.getDatasetMeta(n);r.isDatasetVisible(n)&&e(i)&&void 0!==i.stack&&(s=!0)}}),n.stacked||s){var l={};In.each(o,function(i,o){var a=r.getDatasetMeta(o),s=[a.type,void 0===n.stacked&&void 0===a.stack?o:"",a.stack].join(".");r.isDatasetVisible(o)&&e(a)&&(void 0===l[s]&&(l[s]=[]),In.each(i.data,function(e,n){var r=l[s],i=+t.getRightValue(e);isNaN(i)||a.data[n].hidden||i<0||(r[n]=r[n]||0,r[n]+=i)}))}),In.each(l,function(e){if(e.length>0){var n=In.min(e),r=In.max(e);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?r:Math.max(t.max,r)}})}else In.each(o,function(n,i){var o=r.getDatasetMeta(i);r.isDatasetVisible(i)&&e(o)&&In.each(n.data,function(e,n){var r=+t.getRightValue(e);isNaN(r)||o.data[n].hidden||r<0||(null===t.min?t.min=r:rt.max&&(t.max=r),0!==r&&(null===t.minNotZero||r0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(In.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:bt(t.min),max:bt(t.max)},i=e.ticks=yt(r,e);e.max=In.max(i),e.min=In.min(i),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),ai.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(In.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(e){var t,n,r,i,o,a=this,s=a.options.ticks,l=s.reverse,u=In.log10,c=a._getFirstTickValue(a.minNotZero),d=0;return e=+a.getRightValue(e),l?(r=a.end,i=a.start,o=-1):(r=a.start,i=a.end,o=1),a.isHorizontal()?(t=a.width,n=l?a.right:a.left):(t=a.height,o*=-1,n=l?a.top:a.bottom),e!==r&&(0===r&&(d=mi(s.fontSize,On.global.defaultFontSize),t-=d,r=c),0!==e&&(d+=t/(u(i)-u(r))*(u(e)-u(r))),n+=o*d),n},getValueForPixel:function(e){var t,n,r,i,o=this,a=o.options.ticks,s=a.reverse,l=In.log10,u=o._getFirstTickValue(o.minNotZero);if(s?(n=o.end,r=o.start):(n=o.start,r=o.end),o.isHorizontal()?(t=o.width,i=s?o.right-e:e-o.left):(t=o.height,i=s?e-o.top:o.bottom-e),i!==n){if(0===n){var c=mi(a.fontSize,On.global.defaultFontSize);i-=c,t-=c,n=u}i*=l(r)-l(n),i/=t,i=Math.pow(10,l(n)+i)}return i}}),bi=vi;yi._defaults=bi;var wi=In.valueOrDefault,xi=In.valueAtIndexOrDefault,Ci=In.options.resolve,Si={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:ri.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}},$i=pi.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=xt(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;In.each(t.data.datasets,function(i,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o);In.each(i.data,function(t,i){var o=+e.getRightValue(t);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/xt(this.options))},convertTicksToLabels:function(){var e=this;pi.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?$t(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Dt(i),o=Dt(o),a=Dt(a),s=Dt(s), r.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,n,r){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=n+i.drawingArea,l=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(e){return e*(2*Math.PI/wt(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,r=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this,t=e.min,n=e.max;return e.getPointPositionForValue(0,e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},draw:function(){var e=this,t=e.options,n=t.gridLines,r=t.ticks;if(t.display){var i=e.ctx,o=this.getIndexAngle(0),a=In.options._parseFont(r);(t.angleLines.display||t.pointLabels.display)&&_t(e),In.each(e.ticks,function(t,s){if(s>0||r.reverse){var l=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]);if(n.display&&0!==s&&At(e,n,l,s),r.display){var u=wi(r.fontColor,On.global.defaultFontColor);if(i.font=a.string,i.save(),i.translate(e.xCenter,e.yCenter),i.rotate(o),r.showLabelBackdrop){var c=i.measureText(t).width;i.fillStyle=r.backdropColor,i.fillRect(-c/2-r.backdropPaddingX,-l-a.size/2-r.backdropPaddingY,c+2*r.backdropPaddingX,a.size+2*r.backdropPaddingY)}i.textAlign="center",i.textBaseline="middle",i.fillStyle=u,i.fillText(t,0,-l),i.restore()}}})}}}),Ei=Si;$i._defaults=Ei;var Ti=In.valueOrDefault,ki=Number.MIN_SAFE_INTEGER||-9007199254740991,_i=Number.MAX_SAFE_INTEGER||9007199254740991,Ai={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},Di=Object.keys(Ai),Mi={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Oi=ai.extend({initialize:function(){this.mergeTicksOptions(),ai.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new ni._date(t.adapters.date);return n.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),In.mergeIf(n.displayFormats,r.formats()),ai.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),ai.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,i,o,a=this,s=a.chart,l=a._adapter,u=a.options.time,c=u.unit||"day",d=_i,p=ki,f=[],h=[],g=[],m=s.data.labels||[];for(e=0,n=m.length;e=i&&n<=o&&u.push(n);return r.min=i,r.max=o,r._unit=s.unit||jt(r,u,s.minUnit,r.min,r.max),r._majorUnit=Ht(r._unit),r._table=Pt(r._timestamps.data,i,o,a.distribution),r._offsets=Bt(r._table,u,i,o,a),a.ticks.reverse&&u.reverse(),Ut(r,u,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,i=n.chart.data,o=n.options.time,a=i.labels&&e=0&&e0?a:1}}),Pi=Mi;Oi._defaults=Pi;var Ri={category:li,linear:hi,logarithmic:yi,radialLinear:$i,time:Oi},Ii={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};ni._date.override("function"==typeof e?{_id:"moment",formats:function(){return Ii},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e.duration(e(t).diff(e(n))).as(r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),On._set("global",{plugins:{filler:{propagate:!0}}});var Fi={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t),o=i&&r.dataset._children||[],a=o.length||0;return a?function(e,t){return t');for(var n=0;n'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("");return t.push(""),t.join("")}});var ji=jn.extend({initialize:function(e){In.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Li,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Li,beforeSetDimensions:Li,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Li,beforeBuildLabels:Li,buildLabels:function(){var e=this,t=e.options.labels||{},n=In.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Li,beforeFit:Li,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,i=e.ctx,o=In.options._parseFont(n),a=o.size,s=e.legendHitBoxes=[],l=e.minSize,u=e.isHorizontal();if(u?(l.width=e.maxWidth,l.height=r?10:0):(l.width=r?10:0,l.height=e.maxHeight),r)if(i.font=o.string,u){var c=e.lineWidths=[0],d=0;i.textAlign="left",i.textBaseline="top",In.each(e.legendItems,function(e,t){var r=Jt(n,a),o=r+a/2+i.measureText(e.text).width;(0===t||c[c.length-1]+o+n.padding>l.width)&&(d+=a+n.padding,c[c.length-(t>0?0:1)]=n.padding),s[t]={left:0,top:0,width:o,height:a},c[c.length-1]+=o+n.padding}),l.height+=d}else{var p=n.padding,f=e.columnWidths=[],h=n.padding,g=0,m=0,v=a+p;In.each(e.legendItems,function(e,t){var r=Jt(n,a),o=r+a/2+i.measureText(e.text).width;t>0&&m+v>l.height-p&&(h+=g+n.padding,f.push(g),g=0,m=0),g=Math.max(g,o),m+=v,s[t]={left:0,top:0,width:o,height:a}}),h+=g,f.push(g),l.width+=h}e.width=l.width,e.height=l.height},afterFit:Li,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=On.global,i=r.defaultColor,o=r.elements.line,a=e.width,s=e.lineWidths;if(t.display){var l,u=e.ctx,c=Vi(n.fontColor,r.defaultFontColor),d=In.options._parseFont(n),p=d.size;u.textAlign="left",u.textBaseline="middle",u.lineWidth=.5,u.strokeStyle=c,u.fillStyle=c,u.font=d.string;var f=Jt(n,p),h=e.legendHitBoxes,g=function(e,n,r){if(!(isNaN(f)||f<=0)){u.save();var a=Vi(r.lineWidth,o.borderWidth);if(u.fillStyle=Vi(r.fillStyle,i),u.lineCap=Vi(r.lineCap,o.borderCapStyle),u.lineDashOffset=Vi(r.lineDashOffset,o.borderDashOffset),u.lineJoin=Vi(r.lineJoin,o.borderJoinStyle),u.lineWidth=a,u.strokeStyle=Vi(r.strokeStyle,i),u.setLineDash&&u.setLineDash(Vi(r.lineDash,o.borderDash)),t.labels&&t.labels.usePointStyle){var s=f*Math.SQRT2/2,l=e+f/2,c=n+p/2;In.canvas.drawPoint(u,r.pointStyle,s,l,c)}else 0!==a&&u.strokeRect(e,n,f,p),u.fillRect(e,n,f,p);u.restore()}},m=function(e,t,n,r){var i=p/2,o=f+i+e,a=t+i;u.fillText(n.text,o,a),n.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(o,a),u.lineTo(o+r,a),u.stroke())},v=e.isHorizontal();l=v?{x:e.left+(a-s[0])/2+n.padding,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var y=p+n.padding;In.each(e.legendItems,function(t,r){var i=u.measureText(t.text).width,o=f+p/2+i,c=l.x,d=l.y;v?r>0&&c+o+n.padding>e.left+e.minSize.width&&(d=l.y+=y,l.line++,c=l.x=e.left+(a-s[l.line])/2+n.padding):r>0&&d+y>e.top+e.minSize.height&&(c=l.x=c+e.columnWidths[l.line]+n.padding,d=l.y=e.top+n.padding,l.line++),g(c,d,t),h[r].left=c,h[r].top=d,m(c,d,t,i),v?l.x+=o+n.padding:l.y+=y})}},_getLegendItemAt:function(e,t){var n,r,i,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(i=o.legendHitBoxes,n=0;n=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===i?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}}),Hi={id:"legend",_element:ji,beforeInit:function(e){var t=e.options.legend;t&&Qt(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(In.mergeIf(t,On.global.legend),n?(Dr.configure(e,n,t),n.options=t):Qt(e,t)):n&&(Dr.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},zi=In.noop;On._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Bi=jn.extend({initialize:function(e){var t=this;In.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:zi,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:zi,beforeSetDimensions:zi,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:zi,beforeBuildLabels:zi,buildLabels:zi,afterBuildLabels:zi,beforeFit:zi,fit:function(){var e=this,t=e.options,n=t.display,r=e.minSize,i=In.isArray(t.text)?t.text.length:1,o=In.options._parseFont(t),a=n?i*o.lineHeight+2*t.padding:0;e.isHorizontal()?(r.width=e.maxWidth,r.height=a):(r.width=a,r.height=e.maxHeight),e.width=r.width,e.height=r.height},afterFit:zi,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,i,o,a=In.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,u=0,c=e.top,d=e.left,p=e.bottom,f=e.right;t.fillStyle=In.valueOrDefault(n.fontColor,On.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(i=d+(f-d)/2,o=c+l,r=f-d):(i="left"===n.position?d+l:f-l,o=c+(p-c)/2,r=p-c,u=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(i,o),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var h=n.text;if(In.isArray(h))for(var g=0,m=0;m=0;r--){var i=e[r];if(t(i))return i}},In.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},In.almostEquals=function(e,t,n){return Math.abs(e-t)e},In.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},In.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},In.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},In.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},In.toRadians=function(e){return e*(Math.PI/180)},In.toDegrees=function(e){return e*(180/Math.PI)},In._decimalPlaces=function(e){if(In.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},In.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},In.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},In.aliasPixel=function(e){return e%2==0?0:.5},In._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,i=n/2;return Math.round((t-i)*r)/r+i},In.splineCurve=function(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;var d=r*u,p=r*c;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}},In.EPSILON=Number.EPSILON||1e-14,In.splineCurveMonotone=function(e){var t,n,r,i,o=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),a=o.length;for(t=0;t0?o[t-1]:null,(i=t0?o[t-1]:null,i=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},In.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},In.niceNum=function(e,t){var n=Math.floor(In.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},In.requestAnimFrame=function(){return"undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),In.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(In.getStyle(o,"padding-left")),u=parseFloat(In.getStyle(o,"padding-top")),c=parseFloat(In.getStyle(o,"padding-right")),d=parseFloat(In.getStyle(o,"padding-bottom")),p=a.right-a.left-l-c,f=a.bottom-a.top-u-d;return n=Math.round((n-a.left-l)/p*o.width/t.currentDevicePixelRatio),r=Math.round((r-a.top-u)/f*o.height/t.currentDevicePixelRatio),{x:n,y:r}},In.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},In.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},In._calculatePadding=function(e,t,n){return t=In.getStyle(e,t),t.indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},In._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},In.getMaximumWidth=function(e){var t=In._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=In._calculatePadding(t,"padding-left",n),i=In._calculatePadding(t,"padding-right",n),o=n-r-i,a=In.getConstraintWidth(e);return isNaN(a)?o:Math.min(o,a)},In.getMaximumHeight=function(e){var t=In._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=In._calculatePadding(t,"padding-top",n),i=In._calculatePadding(t,"padding-bottom",n),o=n-r-i,a=In.getConstraintHeight(e);return isNaN(a)?o:Math.min(o,a)},In.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},In.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,o=e.width;r.height=i*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},In.fontString=function(e,t,n){return t+" "+e+"px "+n},In.longestText=function(e,t,n,r){r=r||{};var i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.font=t;var a=0;In.each(n,function(t){void 0!==t&&null!==t&&!0!==In.isArray(t)?a=In.measureText(e,i,o,a,t):In.isArray(t)&&In.each(t,function(t){void 0===t||null===t||In.isArray(t)||(a=In.measureText(e,i,o,a,t))})});var s=o.length/2;if(s>n.length){for(var l=0;lr&&(r=o),r},In.numberOfLabelLines=function(e){var t=1;return In.each(e,function(e){In.isArray(e)&&e.length>t&&(t=e.length)}),t},In.color=yn?function(e){return e instanceof CanvasGradient&&(e=On.global.defaultColor),yn(e)}:function(e){return console.error("Color.js not found!"),e},In.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:In.color(e).saturate(.5).darken(.1).rgbString()}}(),ei._adapters=ni,ei.Animation=zn,ei.animationService=Bn,ei.controllers=_r,ei.DatasetController=qn,ei.defaults=On,ei.Element=jn,ei.elements=rr,ei.Interaction=Ar,ei.layouts=Dr,ei.platform=Ur,ei.plugins=Gr,ei.Scale=ai,ei.scaleService=Wr,ei.Ticks=ri,ei.Tooltip=Kr,ei.helpers.each(Ri,function(e,t){ei.scaleService.registerScaleType(t,e,e._defaults)});for(var Xi in Gi)Gi.hasOwnProperty(Xi)&&ei.plugins.register(Gi[Xi]);ei.platform.initialize();var Zi=ei;return"undefined"!=typeof window&&(window.Chart=ei),ei.Chart=ei,ei.Legend=Gi.legend._element,ei.Title=Gi.title._element,ei.pluginService=ei.plugins,ei.PluginBase=ei.Element.extend({}),ei.canvasHelpers=ei.helpers.canvas,ei.layoutService=ei.layouts,ei.LinearScaleBase=pi,ei.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){ei[e]=function(t,n){return new ei(t,ei.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),Zi}),/*! * angular-chart.js - An angular.js wrapper for Chart.js * http://jtblin.github.io/angular-chart.js/ * Version: 1.1.1 * * Copyright 2016 Jerome Touffe-Blin * Released under the BSD-2-Clause license * https://github.com/jtblin/angular-chart.js/blob/master/LICENSE */ function(e){"use strict";if("object"==typeof exports)module.exports=e("undefined"!=typeof angular?angular:require("angular"),"undefined"!=typeof Chart?Chart:require("chart.js"));else if("function"==typeof define&&define.amd)define(["angular","chart"],e);else{if("undefined"==typeof angular)throw new Error("AngularJS framework needs to be included, see https://angularjs.org/");if("undefined"==typeof Chart)throw new Error("Chart.js library needs to be included, see http://jtblin.github.io/angular-chart.js/");e(angular,Chart)}}(function(e,t){"use strict";function n(){var n={responsive:!0},r={Chart:t,getOptions:function(t){var r=t&&n[t]||{};return e.extend({},n,r)}};this.setOptions=function(t,i){i?n[t]=e.merge(n[t]||{},i):(i=t,n=e.merge(n,i)),e.merge(r.Chart.defaults,n)},this.$get=function(){return r}}function r(n,r){function o(e,t,r){var i=C(e,t);if(v(t)&&T(e,t,r,i)){var o=r[0],a=o.getContext("2d");t.chartGetColor=y(t);var s=b(e,t);k(t),t.chart=new n.Chart(a,{type:e,data:s,options:i}),t.$emit("chart-create",t.chart),S(o,t)}}function a(e,t){return!!(e&&t&&e.length&&t.length)&&(Array.isArray(e[0])?e.length===t.length&&e.every(function(e,n){return e.length===t[n].length}):t.reduce(s,0)>0&&e.length===t.length)}function s(e,t){return e+t}function l(t,n,r){var i={point:void 0,points:void 0};return function(o){var a=t.chart.getElementAtEvent||t.chart.getPointAtEvent,s=t.chart.getElementsAtEvent||t.chart.getPointsAtEvent;if(s){var l=s.call(t.chart,o),u=a?a.call(t.chart,o)[0]:void 0;!1!==r&&(e.equals(i.points,l)||e.equals(i.point,u))||(i.point=u,i.points=l,t[n](l,o,u))}}}function u(r,i){for(var o=e.copy(i.chartColors||n.getOptions(r).chartColors||t.defaults.global.colors),a=o.length>16&255,t>>8&255,255&t]}function m(e){var t=e.match(/^rgba?\(([\d,.]+)\)$/);if(!t)throw new Error("Cannot parse rgb value");return e=t[1].split(","),e.map(Number)}function v(e){return e.chartData&&e.chartData.length}function y(e){return"function"==typeof e.chartGetColor?e.chartGetColor:d}function b(e,t){var n=u(e,t);return Array.isArray(t.chartData[0])?w(t.chartLabels,t.chartData,t.chartSeries||[],n,t.chartDatasetOverride):x(t.chartLabels,t.chartData,n,t.chartDatasetOverride)}function w(t,n,r,i,o){return{labels:t,datasets:n.map(function(t,n){var a=e.extend({},i[n],{label:r[n],data:t});return o&&o.length>=n&&e.merge(a,o[n]),a})}}function x(t,n,r,i){var o={labels:t,datasets:[{data:n,backgroundColor:r.map(function(e){return e.pointBackgroundColor}),hoverBackgroundColor:r.map(function(e){return e.backgroundColor})}]};return i&&e.merge(o.datasets[0],i),o}function C(t,r){return e.extend({},n.getOptions(t),r.chartOptions)}function S(t,n){t.onclick=n.chartClick?l(n,"chartClick",!1):e.noop,t.onmousemove=n.chartHover?l(n,"chartHover",!0):e.noop}function $(e,t){Array.isArray(t.chartData[0])?t.chart.data.datasets.forEach(function(t,n){t.data=e[n]}):t.chart.data.datasets[0].data=e,t.chart.update(),t.$emit("chart-update",t.chart)}function E(e){return!e||Array.isArray(e)&&!e.length||"object"==typeof e&&!Object.keys(e).length}function T(e,t,n,i){return!i.responsive||0!==n[0].clientHeight||(r(function(){o(e,t,n)},50,!1),!1)}function k(e){e.chart&&(e.chart.destroy(),e.$emit("chart-destroy",e.chart))}return function(t){return{restrict:"CA",scope:{chartGetColor:"=?",chartType:"=",chartData:"=?",chartLabels:"=?",chartOptions:"=?",chartSeries:"=?",chartColors:"=?",chartClick:"=?",chartHover:"=?",chartDatasetOverride:"=?"},link:function(n,r){function s(e,i){if(!e||!e.length||Array.isArray(e[0])&&!e[0].length)return void k(n);var s=t||n.chartType;if(s)return n.chart&&a(e,i)?$(e,n):void o(s,n,r)}function l(i,a){if(!E(i)&&!e.equals(i,a)){var s=t||n.chartType;s&&o(s,n,r)}}function u(t,i){E(t)||e.equals(t,i)||o(t,n,r)}i&&window.G_vmlCanvasManager.initElement(r[0]),n.$watch("chartData",s,!0),n.$watch("chartSeries",l,!0),n.$watch("chartLabels",l,!0),n.$watch("chartOptions",l,!0),n.$watch("chartColors",l,!0),n.$watch("chartDatasetOverride",l,!0),n.$watch("chartType",u,!1),n.$on("$destroy",function(){k(n)}),n.$on("$resize",function(){n.chart&&n.chart.resize()})}}}}t.defaults.global.multiTooltipTemplate="<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%= value %>",t.defaults.global.tooltips.mode="label",t.defaults.global.elements.line.borderWidth=2,t.defaults.global.elements.rectangle.borderWidth=2,t.defaults.global.legend.display=!1,t.defaults.global.colors=["#97BBCD","#DCDCDC","#F7464A","#46BFBD","#FDB45C","#949FB1","#4D5360"];var i="object"==typeof window.G_vmlCanvasManager&&null!==window.G_vmlCanvasManager&&"function"==typeof window.G_vmlCanvasManager.initElement;return i&&(t.defaults.global.animation=!1),e.module("chart.js",[]).provider("ChartJs",n).factory("ChartJsFactory",["ChartJs","$timeout",r]).directive("chartBase",["ChartJsFactory",function(e){return new e}]).directive("chartLine",["ChartJsFactory",function(e){return new e("line")}]).directive("chartBar",["ChartJsFactory",function(e){return new e("bar")}]).directive("chartHorizontalBar",["ChartJsFactory",function(e){return new e("horizontalBar")}]).directive("chartRadar",["ChartJsFactory",function(e){return new e("radar")}]).directive("chartDoughnut",["ChartJsFactory",function(e){return new e("doughnut")}]).directive("chartPie",["ChartJsFactory",function(e){return new e("pie")}]).directive("chartPolarArea",["ChartJsFactory",function(e){return new e("polarArea")}]).directive("chartBubble",["ChartJsFactory",function(e){return new e("bubble")}]).name}),/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */ function(e,t,n,r){"use strict";function i(e,t,n){return setTimeout(u(e,n),t)}function o(e,t,n){return!!Array.isArray(e)&&(a(e,n[t],n),!0)}function a(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,i,r),t.apply(this,arguments)}}function l(e,t,n){var r,i=t.prototype;r=e.prototype=Object.create(i),r.constructor=e,r._super=i,n&&ce(r,n)}function u(e,t){return function(){return e.apply(t,arguments)}}function c(e,t){return typeof e==fe?e.apply(t?t[0]||r:r,t):e}function d(e,t){return e===r?t:e}function p(e,t,n){a(m(t),function(t){e.addEventListener(t,n,!1)})}function f(e,t,n){a(m(t),function(t){e.removeEventListener(t,n,!1)})}function h(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function g(e,t){return e.indexOf(t)>-1}function m(e){return e.trim().split(/\s+/g)}function v(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]}):r.sort()),r}function w(e,t){for(var n,i,o=t[0].toUpperCase()+t.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=A(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=t.center=D(r);t.timeStamp=me(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=R(s,l),t.distance=P(s,l),k(n,t),t.offsetDirection=O(t.deltaX,t.deltaY);var u=M(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=ge(u.x)>ge(u.y)?u.x:u.y,t.scale=a?F(a.pointers,r):1,t.rotation=a?I(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,_(n,t);var c=e.element;h(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function k(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==Ee&&o.eventType!==ke||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}function _(e,t){var n,i,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(t.eventType!=_e&&(l>$e||s.velocity===r)){var u=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,d=M(l,u,c);i=d.x,o=d.y,n=ge(d.x)>ge(d.y)?d.x:d.y,a=O(u,c),e.lastInterval=t}else n=s.velocity,i=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=a}function A(e){for(var t=[],n=0;n=ge(t)?e<0?De:Me:t<0?Oe:Pe}function P(e,t,n){n||(n=Ne);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function R(e,t,n){n||(n=Ne);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}function I(e,t){return R(t[1],t[0],Le)+R(e[1],e[0],Le)}function F(e,t){return P(t[0],t[1],Le)/P(e[0],e[1],Le)}function N(){this.evEl=je,this.evWin=He,this.pressed=!1,S.apply(this,arguments)}function L(){this.evEl=Ue,this.evWin=Ge,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function V(){this.evTarget=qe,this.evWin=Ye,this.started=!1,S.apply(this,arguments)}function j(e,t){var n=y(e.touches),r=y(e.changedTouches);return t&(ke|_e)&&(n=b(n.concat(r),"identifier",!0)),[n,r]}function H(){this.evTarget=Ze,this.targetIds={},S.apply(this,arguments)}function z(e,t){var n=y(e.touches),r=this.targetIds;if(t&(Ee|Te)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=y(e.changedTouches),s=[],l=this.target;if(o=n.filter(function(e){return h(e.target,l)}),t===Ee)for(i=0;i-1&&r.splice(e,1)};setTimeout(i,Ke)}}function W(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state;r=ct&&t(n.options.event+Z(r))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return Q.prototype.attrTest.call(this,e)&&(this.state<||!(this.state<)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=K(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),l(te,Q,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[rt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state<)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),l(ne,X,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[tt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(ke|_e)&&!o)this.reset();else if(e.eventType&Ee)this.reset(),this._timer=i(function(){this.state=dt,this.tryEmit()},t.time,this);else if(e.eventType&ke)return dt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===dt&&(e&&e.eventType&ke?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=me(),this.manager.emit(this.options.event,this._input)))}}),l(re,Q,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[rt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state<)}}),l(ie,Q,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Re|Ie,pointers:1},getTouchAction:function(){return ee.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Re|Ie)?t=e.overallVelocity:n&Re?t=e.overallVelocityX:n&Ie&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&ge(t)>this.options.velocity&&e.eventType&ke},emit:function(e){var t=K(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),l(oe,X,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[nt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance=0;--n){var i=localStorage.key(n);i=i&&i.match(t),(i=i&&i[1])&&i.indexOf(g)<0&&e(i,r(i))}}function u(e){var t=r(e);s(e),s(t)}function c(e){var t=r(e),n=o(t);if(n){var a=parseInt(n,m);if(i()>=a)return s(e),s(t),!0}}function d(e,t){w&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+e),t&&window.console.warn("lscache - The error was: "+t.message))}var p,f,h="lscache-",g="-cacheexpiration",m=10,v=6e4,y=Math.floor(864e13/v),b="",w=!1;return{set:function(c,p,f){if(e()){if("string"!=typeof p){if(!n())return;try{p=JSON.stringify(p)}catch(e){return}}try{a(c,p)}catch(e){if(!t(e))return void d("Could not add item with key '"+c+"'",e);var h,g=[];l(function(e,t){var n=o(t);n=n?parseInt(n,m):y,g.push({key:e,size:(o(e)||"").length,expiration:n})}),g.sort(function(e,t){return t.expiration-e.expiration});for(var v=(p||"").length;g.length&&v>0;)h=g.pop(),d("Cache is full, removing item with key '"+c+"'"),u(h.key),v-=h.size;try{a(c,p)}catch(e){return void d("Could not add item with key '"+c+"', perhaps it's too big?",e)}}f?a(r(c),(i()+f).toString(m)):s(r(c))}},get:function(t){if(!e())return null;if(c(t))return null;var r=o(t);if(!r||!n())return r;try{return JSON.parse(r)}catch(e){return r}},remove:function(t){e()&&u(t)},supported:function(){return e()},flush:function(){e()&&l(function(e){u(e)})},flushExpired:function(){e()&&l(function(e){c(e)})},setBucket:function(e){b=e},resetBucket:function(){b=""},enableWarnings:function(e){w=e}}}),/** * lscache library * Copyright (c) 2011, Pamela Fox * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ function(e,t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&module.exports?module.exports=t():e.lscache=t()}(this,function(){function e(){var e="__lscachetest__";if(void 0!==p)return p;try{a(e,"__lscachetest__"),s(e),p=!0}catch(e){p=!!t(e)}return p}function t(e){return!!(e&&"QUOTA_EXCEEDED_ERR"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||"QuotaExceededError"===e.name)}function n(){return void 0===f&&(f=null!=window.JSON),f}function r(e){return e+g}function i(){return Math.floor((new Date).getTime()/v)}function o(e){return localStorage.getItem(h+b+e)}function a(e,t){localStorage.removeItem(h+b+e),localStorage.setItem(h+b+e,t)}function s(e){localStorage.removeItem(h+b+e)}function l(e){for(var t=new RegExp("^"+h+b+"(.*)"),n=localStorage.length-1;n>=0;--n){var i=localStorage.key(n);i=i&&i.match(t),i=i&&i[1],i&&i.indexOf(g)<0&&e(i,r(i))}}function u(e){var t=r(e);s(e),s(t)}function c(e){var t=r(e),n=o(t);if(n){var a=parseInt(n,m);if(i()>=a)return s(e),s(t),!0}}function d(e,t){w&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+e),t&&window.console.warn("lscache - The error was: "+t.message))}var p,f,h="lscache-",g="-cacheexpiration",m=10,v=6e4,y=Math.floor(864e13/v),b="",w=!1;return{set:function(c,p,f){if(e()){if("string"!=typeof p){if(!n())return;try{p=JSON.stringify(p)}catch(e){return}}try{a(c,p)}catch(e){if(!t(e))return void d("Could not add item with key '"+c+"'",e);var h,g=[];l(function(e,t){var n=o(t);n=n?parseInt(n,m):y,g.push({key:e,size:(o(e)||"").length,expiration:n})}),g.sort(function(e,t){return t.expiration-e.expiration});for(var v=(p||"").length;g.length&&v>0;)h=g.pop(),d("Cache is full, removing item with key '"+c+"'"),u(h.key),v-=h.size;try{a(c,p)}catch(e){return void d("Could not add item with key '"+c+"', perhaps it's too big?",e)}}f?a(r(c),(i()+f).toString(m)):s(r(c))}},get:function(t){if(!e())return null;if(c(t))return null;var r=o(t);if(!r||!n())return r;try{return JSON.parse(r)}catch(e){return r}},remove:function(t){e()&&u(t)},supported:function(){return e()},flush:function(){e()&&l(function(e){u(e)})},flushExpired:function(){e()&&l(function(e){c(e)})},setBucket:function(e){b=e},resetBucket:function(){b=""},enableWarnings:function(e){w=e}}}),/*! * howler.js v2.1.1 * howlerjs.com * * (c) 2013-2018, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */ function(){"use strict";var e=function(){this.init()};e.prototype={init:function(){var e=this||t;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var n=this||t;if(e=parseFloat(e),n.ctx||u(),void 0!==e&&e>=0&&e<=1){if(n._volume=e,n._muted)return n;n.usingWebAudio&&n.masterGain.gain.setValueAtTime(e,t.ctx.currentTime);for(var r=0;r=0;n--)e._howls[n].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,u()),e},codecs:function(e){return(this||t)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||t;if(e.state=e.ctx?e.ctx.state||"suspended":"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{var n=new Audio;void 0===n.oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{var n=new Audio;n.muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||t,n=null;try{n="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!n||"function"!=typeof n.canPlayType)return e;var r=n.canPlayType("audio/mpeg;").replace(/^no$/,""),i=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),o=i&&parseInt(i[0].split("/")[1],10)<33;return e._codecs={mp3:!(o||!r&&!n.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!r,opus:!!n.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!n.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!n.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!n.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(n.canPlayType("audio/x-m4a;")||n.canPlayType("audio/m4a;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(n.canPlayType("audio/x-mp4;")||n.canPlayType("audio/mp4;")||n.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!n.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!n.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(n.canPlayType("audio/x-flac;")||n.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||t,n=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome|Safari/i.test(e._navigator&&e._navigator.userAgent);if(!e._audioUnlocked&&e.ctx&&n){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var r=function(t){for(var n=0;n0?s._seek:r._sprite[e][0]/1e3),c=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-u),d=1e3*c/Math.abs(s._rate),p=r._sprite[e][0]/1e3,f=(r._sprite[e][0]+r._sprite[e][1])/1e3,h=!(!s._loop&&!r._sprite[e][2]);s._sprite=e,s._ended=!1;var g=function(){s._paused=!1,s._seek=u,s._start=p,s._stop=f,s._loop=h};if(u>=f)return void r._ended(s);var m=s._node;if(r._webAudio){var v=function(){r._playLock=!1,g(),r._refreshBuffer(s);var e=s._muted||r._muted?0:s._volume;m.gain.setValueAtTime(e,t.ctx.currentTime),s._playStart=t.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,c):s._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,c),d!==1/0&&(r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d)),n||setTimeout(function(){r._emit("play",s._id),r._loadQueue()},0)};"running"===t.state?v():(r._playLock=!0,r.once("resume",v),r._clearTimer(s._id))}else{var y=function(){m.currentTime=u,m.muted=s._muted||r._muted||t._muted||m.muted,m.volume=s._volume*t.volume(),m.playbackRate=s._rate;try{var i=m.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(r._playLock=!0,g(),i.then(function(){r._playLock=!1,m._unlocked=!0,n||(r._emit("play",s._id),r._loadQueue())}).catch(function(){r._playLock=!1,r._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):n||(r._playLock=!1,g(),r._emit("play",s._id),r._loadQueue()),m.playbackRate=s._rate,m.paused)return void r._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d):(r._endTimers[s._id]=function(){r._ended(s),m.removeEventListener("ended",r._endTimers[s._id],!1)},m.addEventListener("ended",r._endTimers[s._id],!1))}catch(e){r._emit("playerror",s._id,e)}},b=window&&window.ejecta||!m.readyState&&t._navigator.isCocoonJS;if(m.readyState>=3||b)y();else{r._playLock=!0;var w=function(){y(),m.removeEventListener(t._canPlayEvent,w,!1)};m.addEventListener(t._canPlayEvent,w,!1),r._clearTimer(s._id)}}return s._id},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r=0?n=parseInt(i[0],10):e=parseFloat(i[0])}else i.length>=2&&(e=parseFloat(i[0]),n=parseInt(i[1],10));var o;if(!(void 0!==e&&e>=0&&e<=1))return o=n?r._soundById(n):r._sounds[0],o?o._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===n&&(r._volume=e),n=r._getSoundIds(n);for(var a=0;a0?r/u:r),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-d)/r;d=Date.now(),s+=l*i,s=Math.max(0,s),s=Math.min(1,s),s=Math.round(100*s)/100,a._webAudio?e._volume=s:a.volume(s,e._id,!0),o&&(a._volume=s),(nt&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))},c)},_stopFade:function(e){var n=this,r=n._soundById(e);return r&&r._interval&&(n._webAudio&&r._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(r._interval),r._interval=null,n.volume(r._fadeTo,e),r._fadeTo=null,n._emit("fade",e)),n},loop:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=r._soundById(parseInt(i[0],10)))&&n._loop;e=i[0],r._loop=e}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var o=r._getSoundIds(t),a=0;a=0?n=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),n=parseInt(i[1],10));var s;if("number"!=typeof e)return s=r._soundById(n),s?s._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===n&&(r._rate=e),n=r._getSoundIds(n);for(var l=0;l=0?n=parseInt(i[0],10):r._sounds.length&&(n=r._sounds[0]._id,e=parseFloat(i[0]))}else 2===i.length&&(e=parseFloat(i[0]),n=parseInt(i[1],10));if(void 0===n)return r;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"seek",action:function(){r.seek.apply(r,i)}}),r;var s=r._soundById(n);if(s){if(!("number"==typeof e&&e>=0)){if(r._webAudio){var l=r.playing(n)?t.ctx.currentTime-s._playStart:0,u=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(u+l*Math.abs(s._rate))}return s._node.currentTime}var c=r.playing(n);c&&r.pause(n,!0),s._seek=e,s._ended=!1,r._clearTimer(n),r._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var d=function(){r._emit("seek",n),c&&r.play(n,!0)};if(c&&!r._webAudio){var p=function(){r._playLock?setTimeout(p,0):d()};setTimeout(p,0)}else d()}return r},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var r=0;r=0&&t._howls.splice(o,1);var a=!0;for(r=0;r=0){a=!1;break}return i&&a&&delete i[e._src],t.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this,o=i["_on"+e];return"function"==typeof t&&o.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),i},off:function(e,t,n){var r=this,i=r["_on"+e],o=0;if("number"==typeof t&&(n=t,t=null),t||n)for(o=0;o=0;o--)i[o].id&&i[o].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(r,i[o].fn),0),i[o].once&&r.off(e,i[o].fn,i[o].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var n=this,r=e._sprite;if(!n._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){var t=this;if(void 0===e){for(var n=[],r=0;r=0;if(t._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),r))try{e.bufferSource.buffer=t._scratchBuffer}catch(e){}return e.bufferSource=null,n}};var r=function(e){this._parent=e,this.init()};r.prototype={init:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++t._counter,n._sounds.push(e),e.create(),e},create:function(){var e=this,n=e._parent,r=t._muted||e._muted||e._parent._muted?0:e._volume;return n._webAudio?(e._node=void 0===t.ctx.createGain?t.ctx.createGainNode():t.ctx.createGain(),e._node.gain.setValueAtTime(r,t.ctx.currentTime),e._node.paused=!0,e._node.connect(t.masterGain)):(e._node=t._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(t._canPlayEvent,e._loadFn,!1),e._node.src=n._src,e._node.preload="auto",e._node.volume=r*t.volume(),e._node.load()),e},reset:function(){var e=this,n=e._parent;return e._muted=n._muted,e._loop=n._loop,e._volume=n._volume,e._rate=n._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++t._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,n=e._parent;n._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(n._sprite).length&&(n._sprite={__default:[0,1e3*n._duration]}),"loaded"!==n._state&&(n._state="loaded",n._emit("load"),n._loadQueue()),e._node.removeEventListener(t._canPlayEvent,e._loadFn,!1)}};var i={},o=function(e){var t=e._src;if(i[t])return e._duration=i[t].duration,void l(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),o=0;o0?(i[n._src]=e,l(n,e)):r()};"undefined"!=typeof Promise&&1===t.ctx.decodeAudioData.length?t.ctx.decodeAudioData(e).then(o).catch(r):t.ctx.decodeAudioData(e,o,r)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},u=function(){if(t.usingWebAudio){try{"undefined"!=typeof AudioContext?t.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch(e){t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),n=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),r=n?parseInt(n[1],10):null;if(e&&r&&r<9){var i=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());(t._navigator&&t._navigator.standalone&&!i||t._navigator&&!t._navigator.standalone&&!i)&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=void 0===t.ctx.createGain?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:1,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:t,Howl:n}}),"undefined"!=typeof exports&&(exports.Howler=t,exports.Howl=n),"undefined"!=typeof window?(window.HowlerGlobal=e,window.Howler=t,window.Howl=n,window.Sound=r):"undefined"!=typeof global&&(global.HowlerGlobal=e,global.Howler=t,global.Howl=n,global.Sound=r)}(),/*! * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. * * howler.js v2.1.1 * howlerjs.com * * (c) 2013-2018, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */ function(){"use strict";HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;return r.ctx&&r.ctx.listener?(t="number"!=typeof t?r._pos[1]:t,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof e?r._pos:(r._pos=[e,t,n],void 0!==r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,o){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,r="number"!=typeof r?s[3]:r,i="number"!=typeof i?s[4]:i,o="number"!=typeof o?s[5]:o,"number"!=typeof e?s:(a._orientation=[e,t,n,r,i,o],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(n,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,r,i,o),a)},Howl.prototype.init=function(e){return function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}}(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(t,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof t)return r._stereo;r._stereo=t,r._pos=[t,0,0]}for(var o=r._getSoundIds(n),a=0;an&&(t=n)}return t}function o(e,t){if(e.scaleAxes&&e.rangeMin&&!b.isNullOrUndef(e.rangeMin[e.scaleAxes])){var n=e.rangeMin[e.scaleAxes];t1?w.zoomCumulativeDelta+1:w.zoomCumulativeDelta-1,Math.abs(w.zoomCumulativeDelta)>c&&(w.zoomCumulativeDelta<0?(p>=d?s<=0?u=Math.min(l,u+1):s=Math.max(0,s-1):p=l?s=Math.max(0,s-1):u=Math.min(l,u+1)),w.zoomCumulativeDelta=0):w.zoomCumulativeDelta>0&&(p>=d?s=ss?u=Math.max(s,u-1):u),w.zoomCumulativeDelta=0),e.options.ticks.min=o(r,a[s]),e.options.ticks.max=i(r,a[u]))}function s(e,t,n,r){var a,s,l=e.options;e.isHorizontal()?(a=e.right-e.left,s=(n.x-e.left)/a):(a=e.bottom-e.top,s=(n.y-e.top)/a);var u=1-s,c=a*(t-1),d=c*s,p=c*u,f=e.getValueForPixel(e.getPixelForValue(e.min)+d),h=e.getValueForPixel(e.getPixelForValue(e.max)-p),g=h.diff(f),m=o(r,g)!=g,v=i(r,g)!=g;m||v||(l.time.min=f,l.time.max=h)}function l(e,t,n,r){var a=e.max-e.min,s=a*(t-1),l=e.isHorizontal()?n.x:n.y,u=(e.getValueForPixel(l)-e.min)/a,c=1-u,d=s*u,p=s*c;e.options.ticks.min=o(r,e.min+d),e.options.ticks.max=i(r,e.max-p)}function u(e,t,n,r){var i=x[e.options.type];i&&i(e,t,n,r)}function c(e,t,n,i){var o=e.chartArea;n||(n={x:(o.left+o.right)/2,y:(o.top+o.bottom)/2});var a=e.options.zoom;if(a&&b.getValueOrDefault(a.enabled,S.zoom.enabled)){var s=b.getValueOrDefault(e.options.zoom.mode,S.zoom.mode);a.sensitivity=b.getValueOrDefault(e.options.zoom.sensitivity,S.zoom.sensitivity);var l;l="xy"==s&&void 0!==i?i:"xy",b.each(e.scales,function(e,i){e.isHorizontal()&&r(s,"x")&&r(l,"x")?(a.scaleAxes="x",u(e,t,n,a)):!e.isHorizontal()&&r(s,"y")&&r(l,"y")&&(a.scaleAxes="y",u(e,t,n,a))}),e.update(0),"function"==typeof a.onZoom&&a.onZoom()}}function d(e,t,n){var r,a=e.chart.data.labels,s=a.length-1,l=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),u=n.speed,c=e.minIndex,d=Math.round(e.width/(l*u));w.panCumulativeDelta+=t,c=w.panCumulativeDelta>d?Math.max(0,c-1):w.panCumulativeDelta<-d?Math.min(s-l+1,c+1):c,w.panCumulativeDelta=c!==e.minIndex?0:w.panCumulativeDelta,r=Math.min(s,c+l-1),e.options.ticks.min=o(n,a[c]),e.options.ticks.max=i(n,a[r])}function p(e,t,n){var r=e.options,a=i(n,e.getValueForPixel(e.getPixelForValue(e.max)-t)),s=o(n,e.getValueForPixel(e.getPixelForValue(e.min)-t)),l=t<0?a-e.max:s-e.min;r.time.max=e.max+l,r.time.min=e.min+l}function f(e,t,n){var r=e.options.ticks,a=e.start,s=e.end;r.reverse?(r.max=e.getValueForPixel(e.getPixelForValue(a)-t),r.min=e.getValueForPixel(e.getPixelForValue(s)-t)):(r.min=e.getValueForPixel(e.getPixelForValue(a)-t),r.max=e.getValueForPixel(e.getPixelForValue(s)-t)),r.min=o(n,r.min),r.max=i(n,r.max)}function h(e,t,n){var r=C[e.options.type];r&&r(e,t,n)}function g(e,t,n){var i=e.options.pan;if(i&&b.getValueOrDefault(i.enabled,S.pan.enabled)){var o=b.getValueOrDefault(e.options.pan.mode,S.pan.mode);i.speed=b.getValueOrDefault(e.options.pan.speed,S.pan.speed),b.each(e.scales,function(e,a){e.isHorizontal()&&r(o,"x")&&0!==t?(i.scaleAxes="x",h(e,t,i)):!e.isHorizontal()&&r(o,"y")&&0!==n&&(i.scaleAxes="y",h(e,n,i))}),e.update(0),"function"==typeof i.onPan&&i.onPan()}}function m(e){var t=e.scales;for(var n in t){var r=t[n];if(!r.isHorizontal())return r}}var v=e("hammerjs");v="function"==typeof v?v:window.Hammer;var y=e("chart.js");y="function"==typeof y?y:window.Chart;var b=y.helpers,w=y.Zoom=y.Zoom||{},x=w.zoomFunctions=w.zoomFunctions||{},C=w.panFunctions=w.panFunctions||{},S=w.defaults={pan:{enabled:!0,mode:"xy",speed:20,threshold:10},zoom:{enabled:!0,mode:"xy",sensitivity:3}};w.zoomFunctions.category=a,w.zoomFunctions.time=s,w.zoomFunctions.linear=l,w.zoomFunctions.logarithmic=l,w.panFunctions.category=d,w.panFunctions.time=p,w.panFunctions.linear=f,w.panFunctions.logarithmic=f,w.panCumulativeDelta=0,w.zoomCumulativeDelta=0;var $={id:"zoom",afterInit:function(e){b.each(e.scales,function(e){e.originalOptions=b.clone(e.options)}),e.resetZoom=function(){b.each(e.scales,function(e,t){var n=e.options.time,r=e.options.ticks;n&&(n.min=e.originalOptions.time.min,n.max=e.originalOptions.time.max),r&&(r.min=e.originalOptions.ticks.min,r.max=e.originalOptions.ticks.max)}),b.each(e.data.datasets,function(e,t){e._meta=null}),e.update()}},beforeInit:function(e){e.zoom={};var t=e.zoom.node=e.chart.ctx.canvas,n=e.options,r=b.getValueOrDefault(n.pan?n.pan.threshold:void 0,w.defaults.pan.threshold);if(n.zoom&&n.zoom.enabled&&(n.zoom.drag?(n.zoom.mode="x",e.zoom._mouseDownHandler=function(t){e.zoom._dragZoomStart=t},t.addEventListener("mousedown",e.zoom._mouseDownHandler),e.zoom._mouseMoveHandler=function(t){e.zoom._dragZoomStart&&(e.zoom._dragZoomEnd=t,e.update(0))},t.addEventListener("mousemove",e.zoom._mouseMoveHandler),e.zoom._mouseUpHandler=function(t){if(e.zoom._dragZoomStart){var n=e.chartArea,r=m(e),i=e.zoom._dragZoomStart,o=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,t.clientX)-o,s=Math.max(i.clientX,t.clientX)-o,l=s-a,u=n.right-n.left,d=1+(u-l)/u;e.zoom._dragZoomStart=null,e.zoom._dragZoomEnd=null,l>0&&c(e,d,{x:l/2+a,y:(r.bottom-r.top)/2})}},t.addEventListener("mouseup",e.zoom._mouseUpHandler)):(e.zoom._wheelHandler=function(t){var n=t.target.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top,o={x:r,y:i};t.deltaY<0?c(e,1.1,o):c(e,.909,o),t.preventDefault()},t.addEventListener("wheel",e.zoom._wheelHandler)),v)){var i=new v.Manager(t);i.add(new v.Pinch),i.add(new v.Pan({threshold:r}));var o,a=function(t){var n,r=1/o*t.scale,i=t.target.getBoundingClientRect(),a=t.center.x-i.left,s=t.center.y-i.top,l={x:a,y:s},u=Math.abs(t.pointers[0].clientX-t.pointers[1].clientX),d=Math.abs(t.pointers[0].clientY-t.pointers[1].clientY),p=u/d;n=p>.3&&p<1.7?"xy":u>d?"x":"y",c(e,r,l,n),o=t.scale};i.on("pinchstart",function(e){o=1}),i.on("pinch",a),i.on("pinchend",function(e){a(e),o=null,w.zoomCumulativeDelta=0});var s=null,l=null,u=!1,d=function(t){if(null!==s&&null!==l){u=!0;var n=t.deltaX-s,r=t.deltaY-l;s=t.deltaX,l=t.deltaY,g(e,n,r)}};i.on("panstart",function(e){s=0,l=0,d(e)}),i.on("panmove",d),i.on("panend",function(e){s=null,l=null,w.panCumulativeDelta=0,setTimeout(function(){u=!1},500)}),e.zoom._ghostClickHandler=function(e){u&&(e.stopImmediatePropagation(),e.preventDefault())},t.addEventListener("click",e.zoom._ghostClickHandler),e._mc=i}},beforeDatasetsDraw:function(e){var t=e.chart.ctx,n=e.chartArea;if(t.save(),t.beginPath(),e.zoom._dragZoomEnd){var r=m(e),i=e.zoom._dragZoomStart,o=e.zoom._dragZoomEnd,a=i.target.getBoundingClientRect().left,s=Math.min(i.clientX,o.clientX)-a,l=Math.max(i.clientX,o.clientX)-a,u=l-s;t.fillStyle="rgba(225,225,225,0.3)",t.lineWidth=5,t.fillRect(s,r.top,u,r.bottom-r.top)}t.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),t.clip()},afterDatasetsDraw:function(e){e.chart.ctx.restore()},destroy:function(e){if(e.zoom){var t=e.options,n=e.zoom.node;t.zoom&&t.zoom.drag?(n.removeEventListener("mousedown",e.zoom._mouseDownHandler),n.removeEventListener("mousemove",e.zoom._mouseMoveHandler),n.removeEventListener("mouseup",e.zoom._mouseUpHandler)):n.removeEventListener("wheel",e.zoom._wheelHandler),v&&n.removeEventListener("click",e.zoom._ghostClickHandler),delete e.zoom;var r=e._mc;r&&(r.remove("pinchstart"),r.remove("pinch"),r.remove("pinchend"),r.remove("panstart"),r.remove("pan"),r.remove("panend"))}}};t.exports=$,y.pluginService.register($)},{"chart.js":1,hammerjs:1}]},{},[2]),function(e,t,n,r){"use strict";n.module("ngFitText",[]).value("fitTextDefaultConfig",{debounce:!1,delay:250,loadDelay:10,compressor:1,min:0,max:Number.POSITIVE_INFINITY}).directive("fittext",["$timeout","fitTextDefaultConfig","fitTextConfig",function(t,r,i){return{restrict:"A",scope:!0,link:function(o,a,s){function l(){var e=x*h/d.offsetWidth/h;return Math.max(Math.min((c[0].offsetWidth-6)*e*m,parseFloat(y)),parseFloat(v))}function u(){d.offsetHeight*d.offsetWidth!=0&&(p.fontSize=x+"px",p.lineHeight="1",p.display="inline-block",p.fontSize=l()+"px",p.lineHeight=b,p.display=w)}n.extend(r,i.config);var c=a.parent(),d=a[0],p=d.style,f=e.getComputedStyle(a[0],null),h=a.children().length||1,g=s.fittextLoadDelay||r.loadDelay,m=s.fittext||r.compressor,v=("inherit"===s.fittextMin?f["font-size"]:s.fittextMin)||r.min,y=("inherit"===s.fittextMax?f["font-size"]:s.fittextMax)||r.max,b=f["line-height"],w=f.display,x=10;t(function(){u()},g),o.$watch(s.ngBind,function(){u()}),r.debounce?n.element(e).bind("resize",r.debounce(function(){o.$apply(u)},r.delay)):n.element(e).bind("resize",function(){o.$apply(u)})}}}]).provider("fitTextConfig",function(){var e=this;return this.config={},this.$get=function(){var t={};return t.config=e.config,t},this})}(window,document,angular); //# sourceMappingURL=../maps/scripts/vendor-c01236b331.js.map