function closeMegaMenu(){$(".megaMenu .root.open").removeClass("open").find(".menuContainer").hide()}function mainNavToggle(){var n=$(window).width(),t=$(".megaMenu").is(":visible");t?$(".js-toggleMegaMenu").text("Skjul"):$(".js-toggleMegaMenu").text("Meny");$(".children").css("display","none");n>768&&($(".megaMenu").css("display","block"),$(".megaMenu .root .link.levelOne").removeClass("open"),$(".megaMenu .root").removeClass("open"),$(".menuContainer").css("display","none"),$(".children").css("display","block"))}function addMenuEvents(){$(".js-toggleMegaMenu").click(function(){$(".mainSearchContainer").toggle();$(".megaMenu").toggle();var n=$(".megaMenu").is(":visible");return n?$(".js-toggleMegaMenu").text("Skjul"):$(".js-toggleMegaMenu").text("Meny"),!1});$(".menuButton.levelOne").click(function(){return $(this).closest("li").children(".menuContainer").toggle(),$(this).toggleClass("expanded"),!1});$(".menuButton.levelTwo").click(function(){return $(this).closest("li").toggleClass("open"),$(this).closest("li").children(".children").toggle(),$(this).toggleClass("expanded"),!1});$(".megaMenu .root .link.levelOne").click(function(){if($(window).width()>767)return $(this).closest(".root").hasClass("open")?($(this).closest(".root").removeClass("open"),$(this).closest(".root").find(".menuContainer").hide()):($(".megaMenu .root").removeClass("open"),$(".menuContainer").hide(),$(this).closest(".root").addClass("open"),$(this).closest(".root").find(".menuContainer").show()),!1});$(".openSearchOnTabletBtn").click(function(){return $(this).parent().addClass("focus"),$("#search-txt").focus(),!1});$(document).bind("click",function(n){$(n.target).closest(".mainSearchContainer").length===0&&$(".mainSearchContainer").removeClass("focus")})}function updateSize(){var n=$(window).width();if($(".mainSearchForm").show(),n<768&&($(".mainSearchContainer").hide(),$(".megaMenu").hide(),$(".menuContainer").hide(),$(".children").hide()),n>767){$("body").on("click",closeMegaMenu).on("tap",closeMegaMenu);$(".mainSearchContainer").show();$(".megaMenu").show();$(".children").show();$(".menuContainer").hide();$(".megaMenu .root").removeClass("open")}n>767&&n<1280&&$(".mainSearchForm").css("display","");$(window).resize()}function studyDropdownToggle(){var n=$(window).width();if($(".studydropdown li.selected a").off("click.studyDropdown"),n<768)$(".studydropdown li.selected a").on("click.studyDropdown",function(n){n.preventDefault();var t=$(n.target).closest("ul");t.find("li:not(.selected)").slideToggle("fast");t.find("li.selected").prev().css("border-bottom","none");t.toggleClass("open")})}function stopSpinner(){spinner!=null&&spinner.stop()}function startSpinner(){var n=$("#spinnercontainer"),t;n.length>0&&(t={lines:13,length:20,width:10,radius:30,corners:1,rotate:0,direction:1,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"50%",left:"50%"},spinner=new Spinner(t).spin(n[0]))}function changeHashWithoutScrolling(n){var t=n.replace(/^.*#/,""),i=document.getElementById(t);i&&(i.id=t+"-tmp",window.location.hash=n,i.id=t)}function toggleAccordion(n){var t=n.children("ul").first();t.is(":visible")?(t.slideUp(),n.removeClass("open")):(t.slideDown(),n.addClass("open"))}var spinner,module,studySearchController;(function(n,t,i){"use strict";function v(n){return function(){for(var i=arguments[0],i="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.2.14/"+(n?n+"/":"")+i,t=1;t<arguments.length;t++)i=i+(1==t?"?":"&")+"p"+(t-1)+"="+encodeURIComponent("function"==typeof arguments[t]?arguments[t].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[t]?"undefined":"string"!=typeof arguments[t]?JSON.stringify(arguments[t]):arguments[t]);return Error(i)}}function iu(n){if(null==n||ti(n))return!1;var t=n.length;return 1===n.nodeType&&t?!0:e(n)||s(n)||0===t||"number"==typeof t&&0<t&&t-1 in n}function r(n,t,i){var u;if(n)if(c(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||t.call(i,n[u],u);else if(n.forEach&&n.forEach!==r)n.forEach(t,i);else if(iu(n))for(u=0;u<n.length;u++)t.call(i,n[u],u);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u);return n}function tf(n){var t=[];for(var i in n)n.hasOwnProperty(i)&&t.push(i);return t.sort()}function yo(n,t,i){for(var r=tf(n),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function rf(n){return function(t,i){n(i,t)}}function fr(){for(var n=ct.length,t;n;){if(n--,t=ct[n].charCodeAt(0),57==t)return ct[n]="A",ct.join("");if(90==t)ct[n]="0";else return ct[n]=String.fromCharCode(t+1),ct.join("")}return ct.unshift("0"),ct.join("")}function uf(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function l(n){var t=n.$$hashKey;return r(arguments,function(t){t!==n&&r(t,function(t,i){n[i]=t})}),uf(n,t),n}function b(n){return parseInt(n,10)}function ff(n,t){return l(new(l(function(){},{prototype:n})),t)}function o(){}function ni(n){return n}function nt(n){return function(){return n}}function h(n){return"undefined"==typeof n}function f(n){return"undefined"!=typeof n}function y(n){return null!=n&&"object"==typeof n}function e(n){return"string"==typeof n}function ru(n){return"number"==typeof n}function vi(n){return"[object Date]"===ei.call(n)}function s(n){return"[object Array]"===ei.call(n)}function c(n){return"function"==typeof n}function er(n){return"[object RegExp]"===ei.call(n)}function ti(n){return n&&n.document&&n.location&&n.alert&&n.setInterval}function po(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function wo(n,t,i){var u=[];return r(n,function(n,r,f){u.push(t.call(i,n,r,f))}),u}function or(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0;i<n.length;i++)if(t===n[i])return i;return-1}function yi(n,t){var i=or(n,t);return 0<=i&&n.splice(i,1),t}function tt(n,t){var i,u;if(ti(n)||n&&n.$evalAsync&&n.$watch)throw nr("cpws");if(t){if(n===t)throw nr("cpi");if(s(n))for(i=t.length=0;i<n.length;i++)t.push(tt(n[i]));else{i=t.$$hashKey;r(t,function(n,i){delete t[i]});for(u in n)t[u]=tt(n[u]);uf(t,i)}}else(t=n)&&(s(n)?t=tt(n,[]):vi(n)?t=new Date(n.getTime()):er(n)?t=RegExp(n.source):y(n)&&(t=tt(n,{})));return t}function ef(n,t){t=t||{};for(var i in n)n.hasOwnProperty(i)&&("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t}function pt(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,r;if(u==typeof t&&"object"==u)if(s(n)){if(!s(t))return!1;if((u=n.length)==t.length){for(r=0;r<u;r++)if(!pt(n[r],t[r]))return!1;return!0}}else{if(vi(n))return vi(t)&&n.getTime()==t.getTime();if(er(n)&&er(t))return n.toString()==t.toString();if(n&&n.$evalAsync&&n.$watch||t&&t.$evalAsync&&t.$watch||ti(n)||ti(t)||s(t))return!1;u={};for(r in n)if("$"!==r.charAt(0)&&!c(n[r])){if(!pt(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!u.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t[r]!==i&&!c(t[r]))return!1;return!0}return!1}function of(){return t.securityPolicy&&t.securityPolicy.isActive||t.querySelector&&!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"))}function sr(n,t){var i=2<arguments.length?dt.call(arguments,2):[];return!c(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,i.concat(dt.call(arguments,0))):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function bo(n,r){var u=r;return"string"==typeof n&&"$"===n.charAt(0)?u=i:ti(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":r&&r.$evalAsync&&r.$watch&&(u="$SCOPE"),u}function lt(n,t){return"undefined"==typeof n?i:JSON.stringify(n,bo,t?"  ":null)}function sf(n){return e(n)?JSON.parse(n):n}function pi(n){return"function"==typeof n?n=!0:n&&0!==n.length?(n=a(""+n),n=!("f"==n||"0"==n||"false"==n||"no"==n||"n"==n||"[]"==n)):n=!1,n}function ut(n){n=u(n).clone();try{n.empty()}catch(i){}var t=u("<div>").append(n).html();try{return 3===n[0].nodeType?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+a(t)})}catch(r){return a(t)}}function hf(n){try{return decodeURIComponent(n)}catch(t){}}function cf(n){var i={},u,t;return r((n||"").split("&"),function(n){n&&(u=n.split("="),t=hf(u[0]),f(t)&&(n=f(u[1])?hf(u[1]):!0,i[t]?s(i[t])?i[t].push(n):i[t]=[i[t],n]:i[t]=n))}),i}function lf(n){var t=[];return r(n,function(n,i){s(n)?r(n,function(n){t.push(wt(i,!0)+(!0===n?"":"="+wt(n,!0)))}):t.push(wt(i,!0)+(!0===n?"":"="+wt(n,!0)))}),t.length?t.join("&"):""}function uu(n){return wt(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function wt(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function ko(n,i){function f(n){n&&s.push(n)}var s=[n],u,e,o=["ng:app","ng-app","x-ng-app","data-ng-app"],h=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;r(o,function(i){o[i]=!0;f(t.getElementById(i));i=i.replace(":","\\:");n.querySelectorAll&&(r(n.querySelectorAll("."+i),f),r(n.querySelectorAll("."+i+"\\:"),f),r(n.querySelectorAll("["+i+"]"),f))});r(s,function(n){if(!u){var t=h.exec(" "+n.className+" ");t?(u=n,e=(t[2]||"").replace(/\s+/g,",")):r(n.attributes,function(t){!u&&o[t.name]&&(u=n,e=t.value)})}});u&&i(u,e?[e]:[])}function af(i,f){var e=function(){if(i=u(i),i.injector()){var n=i[0]===t?"document":ut(i);throw nr("btstrpd",n);}return f=f||[],f.unshift(["$provide",function(n){n.value("$rootElement",i)}]),f.unshift("ng"),n=ne(f),n.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},o=/^NG_DEFER_BOOTSTRAP!/;if(n&&!o.test(n.name))return e();n.name=n.name.replace(o,"");oi.resumeBootstrap=function(n){r(n,function(n){f.push(n)});e()}}function hr(n,t){return t=t||"_",n.replace(kh,function(n,i){return(i?t:"")+n.toLowerCase()})}function fu(n,t,i){if(!n)throw nr("areq",t||"?",i||"required");return n}function wi(n,t,i){return i&&s(n)&&(n=n[n.length-1]),fu(c(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function bt(n,t){if("hasOwnProperty"===n)throw nr("badname",t);}function vf(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,e=t.length,r=0;r<e;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&c(n)?sr(f,n):n}function eu(n){var t=n[0],i;if(n=n[n.length-1],t===n)return u(t);i=[t];do{if(t=t.nextSibling,!t)break;i.push(t)}while(t!==n);return u(i)}function go(n){var t=v("$injector"),i=v("ng");return n=n.angular||(n.angular={}),n.$$minErr=n.$$minErr||v,n.module||(n.module=function(){var n={};return function(r,u,f){if("hasOwnProperty"===r)throw i("badname","module");return u&&n.hasOwnProperty(r)&&(n[r]=null),n[r]||(n[r]=function(){function n(n,t,r){return function(){return i[r||"push"]([n,t,arguments]),s}}if(!u)throw t("nomod",r);var i=[],e=[],o=n("$injector","invoke"),s={_invokeQueue:i,_runBlocks:e,requires:u,name:r,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:n("$provide","value"),constant:n("$provide","constant","unshift"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),config:o,run:function(n){return e.push(n),this}};return f&&o(f),s}())}}())}function bi(n){return n.replace(nc,function(n,t,i,r){return r?i.toUpperCase():i}).replace(tc,"Moz$1")}function ou(n,t,i,r){function e(n){var h=i&&n?[this.filter(n)]:[this],c=t,l,o,a,e,s,v;if(!r||null!=n)for(;h.length;)for(l=h.shift(),o=0,a=l.length;o<a;o++)for(e=u(l[o]),c?e.triggerHandler("$destroy"):c=!c,s=0,e=(v=e.children()).length;s<e;s++)h.push(fi(v[s]));return f.apply(this,arguments)}var f=fi.fn[n],f=f.$original||f;e.$original=f;fi.fn[n]=e}function w(n){if(n instanceof w)return n;if(e(n)&&(n=g(n)),!(this instanceof w)){if(e(n)&&"<"!=n.charAt(0))throw bu("nosel");return new w(n)}if(e(n)){var i=t.createElement("div");i.innerHTML="<div>&#160;<\/div>"+n;i.removeChild(i.firstChild);cu(this,i.childNodes);u(t.createDocumentFragment()).append(this)}else cu(this,n)}function su(n){return n.cloneNode(!0)}function ii(n){pf(n);var t=0;for(n=n.childNodes||[];t<n.length;t++)ii(n[t])}function yf(n,t,i,u){if(f(u))throw bu("offargs");var e=et(n,"events");et(n,"handle")&&(h(t)?r(e,function(t,i){wu(n,i,t);delete e[i]}):r(t.split(" "),function(t){h(i)?(wu(n,t,e[t]),delete e[t]):yi(e[t]||[],i)}))}function pf(n,t){var u=n[br],r=ir[u];r&&(t?delete ir[u].data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),yf(n)),delete ir[u],n[br]=i))}function et(n,t,i){var r=n[br],r=ir[r||-1];if(f(i))r||(n[br]=r=++gh,r=ir[r]={}),r[t]=i;else return r&&r[t]}function wf(n,t,i){var r=et(n,"data"),u=f(i),e=!u&&f(t),o=e&&!y(t);if(r||o||et(n,"data",r={}),u)r[t]=i;else if(e){if(o)return r&&r[t];l(r,t)}else return r}function hu(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function cr(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",g((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+g(t)+" "," ")))})}function lr(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=g(n);-1===i.indexOf(" "+n+" ")&&(i+=n+" ")});n.setAttribute("class",g(i))}}function cu(n,t){if(t){t=t.nodeName||!f(t.length)||ti(t)?[t]:t;for(var i=0;i<t.length;i++)n.push(t[i])}}function bf(n,t){return ar(n,"$"+(t||"ngController")+"Controller")}function ar(n,t,r){for(n=u(n),9==n[0].nodeType&&(n=n.find("html")),t=s(t)?t:[t];n.length;){for(var f=0,e=t.length;f<e;f++)if((r=n.data(t[f]))!==i)return r;n=n.parent()}}function kf(n){for(var t=0,i=n.childNodes;t<i.length;t++)ii(i[t]);for(;n.firstChild;)n.removeChild(n.firstChild)}function df(n,t){var i=kr[t.toLowerCase()];return i&&ku[n.nodeName]&&i}function ns(n,i){var u=function(u,f){var e,o;u.preventDefault||(u.preventDefault=function(){u.returnValue=!1});u.stopPropagation||(u.stopPropagation=function(){u.cancelBubble=!0});u.target||(u.target=u.srcElement||t);h(u.defaultPrevented)&&(e=u.preventDefault,u.preventDefault=function(){u.defaultPrevented=!0;e.call(u)},u.defaultPrevented=!1);u.isDefaultPrevented=function(){return u.defaultPrevented||!1===u.returnValue};o=ef(i[f||u.type]||[]);r(o,function(t){t.call(n,u)});8>=p?(u.preventDefault=null,u.stopPropagation=null,u.isDefaultPrevented=null):(delete u.preventDefault,delete u.stopPropagation,delete u.isDefaultPrevented)};return u.elem=n,u}function ri(n){var r=typeof n,t;return"object"==r&&null!==n?"function"==typeof(t=n.$$hashKey)?t=n.$$hashKey():t===i&&(t=n.$$hashKey=fr()):t=n,r+":"+t}function ki(n){r(n,this.put,this)}function gf(n){var i,t;return"function"==typeof n?(i=n.$inject)||(i=[],n.length&&(t=n.toString().replace(ec,""),t=t.match(rc),r(t[1].split(uc),function(n){n.replace(fc,function(n,t,r){i.push(r)})})),n.$inject=i):s(n)?(t=n.length-1,wi(n[t],"fn"),i=n.slice(0,t)):wi(n,"fn",!0),i}function ne(n){function i(n){return function(t,i){if(y(t))r(t,rf(n));else return n(t,i)}}function w(n,i){if(bt(n,"service"),(c(i)||s(i))&&(i=t.instantiate(i)),!i.$get)throw rr("pget",n);return u[n+h]=i}function a(n,t){return w(n,{$get:t})}function b(n){var i=[],u,o,f,h;return r(n,function(n){if(!d.get(n)){d.put(n,!0);try{if(e(n))for(u=tr(n),i=i.concat(b(u.requires)).concat(u._runBlocks),o=u._invokeQueue,f=0,h=o.length;f<h;f++){var l=o[f],a=t.get(l[0]);a[l[1]].apply(a,l[2])}else c(n)?i.push(t.invoke(n)):s(n)?i.push(t.invoke(n)):wi(n,"module")}catch(r){throw s(n)&&(n=n[n.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),rr("modulerr",n,r.stack||r.message||r);}}}),i}function k(n,t){function i(i){if(n.hasOwnProperty(i)){if(n[i]===v)throw rr("cdep",l.join(" <- "));return n[i]}try{return l.unshift(i),n[i]=v,n[i]=t(i)}catch(r){throw n[i]===v&&delete n[i],r;}finally{l.shift()}}function r(n,t,r){for(var o=[],s=gf(n),u,f=0,e=s.length;f<e;f++){if(u=s[f],"string"!=typeof u)throw rr("itkn",u);o.push(r&&r.hasOwnProperty(u)?r[u]:i(u))}return n.$inject||(n=n[e]),n.apply(t,o)}return{invoke:r,instantiate:function(n,t){var i=function(){},u;return i.prototype=(s(n)?n[n.length-1]:n).prototype,i=new i,u=r(n,i,t),y(u)||c(u)?u:i},get:i,annotate:gf,has:function(t){return u.hasOwnProperty(t+h)||n.hasOwnProperty(t)}}}var v={},h="Provider",l=[],d=new ki,u={$provide:{provider:i(w),factory:i(a),service:i(function(n,t){return a(n,["$injector",function(n){return n.instantiate(t)}])}),value:i(function(n,t){return a(n,nt(t))}),constant:i(function(n,t){bt(n,"constant");u[n]=t;p[n]=t}),decorator:function(n,i){var r=t.get(n+h),u=r.$get;r.$get=function(){var n=f.invoke(u,r);return f.invoke(i,null,{$delegate:n})}}}},t=u.$injector=k(u,function(){throw rr("unpr",l.join(" <- "));}),p={},f=p.$injector=k(p,function(n){return n=t.get(n+h),f.invoke(n.$get,n)});return r(b(n),function(n){f.invoke(n||o)}),f}function ts(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,u){function o(n){var t=null;return r(n,function(n){t||"a"!==a(n.nodeName)||(t=n)}),t}function f(){var n=i.hash(),r;n?(r=e.getElementById(n))?r.scrollIntoView():(r=o(e.getElementsByName(n)))?r.scrollIntoView():"top"===n&&t.scrollTo(0,0):t.scrollTo(0,0)}var e=t.document;return n&&u.$watch(function(){return i.hash()},function(){u.$evalAsync(f)}),f}]}function is(){this.$get=["$$rAF","$timeout",function(n,t){return n.supported?function(t){return n(t)}:function(n){return t(n,0,!1)}}]}function rs(n,t,f,s){function g(n){try{n.apply(null,dt.call(arguments,1))}finally{if(a--,0===a)for(;w.length;)try{w.pop()()}catch(t){f.error(t)}}}function ht(n,t){(function i(){r(b,function(n){n()});ot=t(i,n)})()}function nt(){it=null;k!=c.url()&&(k=c.url(),r(rt,function(n){n(c.url())}))}var c=this,v=t[0],l=n.location,y=n.history,et=n.setTimeout,ct=n.clearTimeout,p={},a,w,b,ot,rt,ut;c.isMock=!1;a=0;w=[];c.$$completeOutstandingRequest=g;c.$$incOutstandingRequestCount=function(){a++};c.notifyWhenNoOutstandingRequests=function(n){r(b,function(n){n()});0===a?n():w.push(n)};b=[];c.addPollFn=function(n){return h(ot)&&ht(100,et),b.push(n),n};var k=l.href,tt=t.find("base"),it=null;c.url=function(t,i){if(l!==n.location&&(l=n.location),y!==n.history&&(y=n.history),t){if(k!=t)return k=t,s.history?i?y.replaceState(null,"",t):(y.pushState(null,"",t),tt.attr("href",tt.attr("href"))):(it=t,i?l.replace(t):l.href=t),c}else return it||l.href.replace(/%27/g,"'")};rt=[];ut=!1;c.onUrlChange=function(t){if(!ut){if(s.history)u(n).on("popstate",nt);if(s.hashchange)u(n).on("hashchange",nt);else c.addPollFn(nt);ut=!0}return rt.push(t),t};c.baseHref=function(){var n=tt.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var d={},ft="",st=c.baseHref();c.cookies=function(n,t){var r,u,o,s;if(n)t===i?v.cookie=escape(n)+"=;path="+st+";expires=Thu, 01 Jan 1970 00:00:00 GMT":e(t)&&(r=(v.cookie=escape(n)+"="+escape(t)+";path="+st).length+1,4096<r&&f.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+r+" > 4096 bytes)!"));else{if(v.cookie!==ft)for(ft=v.cookie,r=ft.split("; "),d={},o=0;o<r.length;o++)u=r[o],s=u.indexOf("="),0<s&&(n=unescape(u.substring(0,s)),d[n]===i&&(d[n]=unescape(u.substring(s+1))));return d}};c.defer=function(n,t){var i;return a++,i=et(function(){delete p[i];g(n)},t||0),p[i]=!0,i};c.defer.cancel=function(n){return p[n]?(delete p[n],ct(n),g(o),!0):!1}}function us(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new rs(n,r,t,i)}]}function fs(){this.$get=function(){function t(t,i){function a(n){n!=f&&(r?r==n&&(r=n.n):r=n,c(n.n,n.p),c(n,f),f=n,f.n=null)}function c(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw v("$cacheFactory")("iid",t);var o=0,y=l({},i,{id:t}),e={},s=i&&i.capacity||Number.MAX_VALUE,u={},f=null,r=null;return n[t]={put:function(n,t){if(s<Number.MAX_VALUE){var i=u[n]||(u[n]={key:n});a(i)}if(!h(t))return n in e||o++,e[n]=t,o>s&&this.remove(r.key),t},get:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;a(t)}return e[n]},remove:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;t==f&&(f=t.p);t==r&&(r=t.n);c(t.n,t.p);delete u[n]}delete e[n];o--},removeAll:function(){e={};o=0;u={};f=r=null},destroy:function(){u=y=e=null;delete n[t]},info:function(){return l({},y,{size:o})}}}var n={};return t.info=function(){var t={};return r(n,function(n,i){t[i]=n.info()}),t},t.get=function(t){return n[t]},t}}function es(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function te(n,o){var h={},a="Directive",v=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,w=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,b=/^<\s*(tr|th|td|tbody)(\s+[^>]*)?>/i,k=/^(on[a-z]+|formaction)$/;this.directive=function d(t,i){return bt(t,"directive"),e(t)?(fu(i,"directiveFactory"),h.hasOwnProperty(t)||(h[t]=[],n.factory(t+a,["$injector","$exceptionHandler",function(n,i){var u=[];return r(h[t],function(r,f){try{var e=n.invoke(r);c(e)?e={compile:nt(e)}:!e.compile&&e.link&&(e.compile=nt(e.link));e.priority=e.priority||0;e.index=f;e.name=e.name||t;e.require=e.require||e.controller&&e.name;e.restrict=e.restrict||"A";u.push(e)}catch(o){i(o)}}),u}])),h[t].push(i)):r(t,rf(d)),this};this.aHrefSanitizationWhitelist=function(n){return f(n)?(o.aHrefSanitizationWhitelist(n),this):o.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(o.imgSrcSanitizationWhitelist(n),this):o.imgSrcSanitizationWhitelist()};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,f,o,d,tt,it,rt,et,st,ht,ct,lt){function bt(n,t,i,f,e){n instanceof u||(n=u(n));r(n,function(t,i){3==t.nodeType&&t.nodeValue.match(/\S+/)&&(n[i]=u(t).wrap("<span><\/span>").parent()[0])});var o=kt(n,t,n,i,f,e);return at(n,"ng-scope"),function(t,i,u){var f,s,e;for(fu(t,"scope"),f=i?hi.clone.call(n):n,r(u,function(n,t){f.data("$"+t+"Controller",n)}),u=0,s=f.length;u<s;u++)e=f[u].nodeType,1!==e&&9!==e||f.eq(u).data("$scope",t);return i&&i(f,t),o&&o(t,f,f),f}}function at(n,t){try{n.addClass(t)}catch(i){}}function kt(n,t,r,f,e,o){function y(n,r,f,e){var s,h,a,l,o,p,v,y;for(s=r.length,y=Array(s),o=0;o<s;o++)y[o]=r[o];for(v=o=0,p=c.length;o<p;v++)h=y[v],r=c[o++],s=c[o++],a=u(h),r?(r.scope?(l=n.$new(),a.data("$scope",l)):l=n,(a=r.transclude)||!e&&t?r(s,l,h,f,ri(n,a||t)):r(s,l,h,f,e)):s&&s(n,h.childNodes,i,e)}for(var c=[],h,l,a,v,s=0;s<n.length;s++)h=new ii,l=gt(n[s],[],h,0===s?f:i,e),(o=l.length?fi(l,n[s],h,t,r,null,[],[],o):null)&&o.scope&&at(u(n[s]),"ng-scope"),h=o&&o.terminal||!(a=n[s].childNodes)||!a.length?null:kt(a,o?o.transclude:t),c.push(o,h),v=v||o||h,o=null;return v?y:null}function ri(n,t){return function(i,r,u){var f=!1;if(i||(i=n.$new(),f=i.$$transcluded=!0),r=t(i,r,u),f)r.on("$destroy",sr(i,i.$destroy));return r}}function gt(n,t,i,r,u){var k=i.$attr,o,h,s,f,c,y,l,a,b;switch(n.nodeType){case 1:for(yt(t,ot(si(n).toLowerCase()),"E",r,u),o=n.attributes,c=0,y=o&&o.length;c<y;c++)l=!1,a=!1,h=o[c],(!p||8<=p||h.specified)&&(s=h.name,f=ot(s),gi.test(f)&&(s=hr(f.substr(6),"-")),b=f.replace(/(Start|End)$/,""),f===b+"Start"&&(l=s,a=s.substr(0,s.length-5)+"end",s=s.substr(0,s.length-6)),f=ot(s.toLowerCase()),k[f]=s,i[f]=h=g(h.value),df(n,f)&&(i[f]=!0),di(n,t,h,f),yt(t,f,"A",r,u,l,a));if(n=n.className,e(n)&&""!==n)for(;o=w.exec(n);)f=ot(o[2]),yt(t,f,"C",r,u)&&(i[f]=g(o[3])),n=n.substr(o.index+o[0].length);break;case 3:bi(t,n.nodeValue);break;case 8:try{(o=v.exec(n.nodeValue))&&(f=ot(o[1]),yt(t,f,"M",r,u)&&(i[f]=g(o[2])))}catch(d){}}return t.sort(wi),t}function ti(n,t,i){var r=[],f=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw ft("uterdir",t,i);1==n.nodeType&&(n.hasAttribute(t)&&f++,n.hasAttribute(i)&&f--);r.push(n);n=n.nextSibling}while(0<f)}else r.push(n);return u(r)}function ui(n,t,i){return function(r,u,f,e,o){return u=ti(u[0],t,i),n(r,u,f,e,o)}}function fi(n,h,l,a,v,p,w,b,k){function wi(n,t,i,r){n&&(i&&(n=ui(n,i,r)),n.require=d.require,(nt===d||d.$$isolateScope)&&(n=li(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=ui(t,i,r)),t.require=d.require,(nt===d||d.$$isolateScope)&&(t=li(t,{isolateScope:!0})),b.push(t))}function vi(n,t,i){var u,f="data",o=!1;if(e(n)){for(;"^"==(u=n.charAt(0))||"?"==u;)n=n.substr(1),"^"==u&&(f="inheritedData"),o=o||"?"==u;if(u=null,i&&"data"===f&&(u=i[n]),u=u||t[f]("$"+n+"Controller"),!u&&!o)throw ft("ctreq",n,et);}else s(n)&&(u=[],r(n,function(n){u.push(vi(n,t,i))}));return u}function kt(n,t,e,s,c){function ht(n,t){var r;return 2>arguments.length&&(t=n,n=i),ai&&(r=d),c(n,t,r)}var v,p,tt,y,k,a,d={},g,et;for(v=h===e?l:ef(l,new ii(u(e),l.$attr)),p=v.$$element,nt&&(et=/^\s*([@=&])(\??)\s*(\w*)\s*$/,s=u(e),a=t.$new(!0),st&&st===nt.$$originalDirective?s.data("$isolateScope",a):s.data("$isolateScopeNoTemplate",a),at(s,"ng-isolate-scope"),r(nt.scope,function(n,i){var e=n.match(et)||[],r=e[3]||i,c="?"==e[2],e=e[1],o,u,h,s;a.$$isolateBindings[i]=e+r;switch(e){case"@":v.$observe(r,function(n){a[i]=n});v.$$observers[r].$$scope=t;v[r]&&(a[i]=f(v[r])(t));break;case"=":if(c&&!v[r])break;u=it(v[r]);s=u.literal?pt:function(n,t){return n===t};h=u.assign||function(){o=a[i]=u(t);throw ft("nonassign",v[r],nt.name);};o=a[i]=u(t);a.$watch(function(){var n=u(t);return s(n,a[i])||(s(n,o)?h(t,n=a[i]):a[i]=n),o=n},null,u.literal);break;case"&":u=it(v[r]);a[i]=function(n){return u(t,n)};break;default:throw ft("iscp",nt.name,i,n);}})),g=c&&ht,ot&&r(ot,function(n){var r={$scope:n===nt||n.$$isolateScope?a:t,$element:p,$attrs:v,$transclude:g},i;k=n.controller;"@"==k&&(k=v[n.name]);i=rt(k,r);d[n.name]=i;ai||p.data("$"+n.name+"Controller",i);n.controllerAs&&(r.$scope[n.controllerAs]=i)}),s=0,tt=w.length;s<tt;s++)try{y=w[s];y(y.isolateScope?a:t,p,v,y.require&&vi(y.require,p,d),g)}catch(ct){o(ct,ut(p))}for(s=t,nt&&(nt.template||null===nt.templateUrl)&&(s=a),n&&n(s,e.childNodes,i,c),s=b.length-1;0<=s;s--)try{y=b[s];y(y.isolateScope?a:t,p,v,y.require&&vi(y.require,p,d),g)}catch(lt){o(lt,ut(p))}}var yt,fi,ki;k=k||{};for(var ni=-Number.MAX_VALUE,si,ot=k.controllerDirectives,nt=k.newIsolateScopeDirective,st=k.templateDirective,hi=k.nonTlbTranscludeDirective,bi=!1,ai=k.hasElementTranscludeDirective,tt=l.$$element=u(h),d,et,g,ri=a,ct,ht=0,lt=n.length;ht<lt;ht++){if(d=n[ht],yt=d.$$start,fi=d.$$end,yt&&(tt=ti(h,yt,fi)),g=i,ni>d.priority)break;if((g=d.scope)&&(si=si||d,d.templateUrl||(vt("new/isolated scope",nt,d,tt),y(g)&&(nt=d))),et=d.name,!d.templateUrl&&d.controller&&(g=d.controller,ot=ot||{},vt("'"+et+"' controller",ot[et],d,tt),ot[et]=d),(g=d.transclude)&&(bi=!0,d.$$tlb||(vt("transclusion",hi,d,tt),hi=d),"element"==g?(ai=!0,ni=d.priority,g=ti(h,yt,fi),tt=l.$$element=u(t.createComment(" "+et+": "+l[et]+" ")),h=tt[0],wt(v,u(dt.call(g,0)),h),ri=bt(g,a,ni,p&&p.name,{nonTlbTranscludeDirective:hi})):(g=u(su(h)).contents(),tt.empty(),ri=bt(g,a))),d.template)if(vt("template",st,d,tt),st=d,g=c(d.template)?d.template(tt,l):d.template,g=yi(g),d.replace){if(p=d,g=ci(g),h=g[0],1!=g.length||1!==h.nodeType)throw ft("tplrt",et,"");wt(v,tt,h);lt={$attr:{}};g=gt(h,[],lt);ki=n.splice(ht+1,n.length-(ht+1));nt&&ei(g);n=n.concat(g).concat(ki);oi(l,lt);lt=n.length}else tt.html(g);if(d.templateUrl)vt("template",st,d,tt),st=d,d.replace&&(p=d),kt=pi(n.splice(ht,n.length-ht),tt,l,v,ri,w,b,{controllerDirectives:ot,newIsolateScopeDirective:nt,templateDirective:st,nonTlbTranscludeDirective:hi}),lt=n.length;else if(d.compile)try{ct=d.compile(tt,l,ri);c(ct)?wi(null,ct,yt,fi):ct&&wi(ct.pre,ct.post,yt,fi)}catch(di){o(di,ut(tt))}d.terminal&&(kt.terminal=!0,ni=Math.max(ni,d.priority))}return kt.scope=si&&!0===si.scope,kt.transclude=bi&&ri,k.hasElementTranscludeDirective=ai,kt}function ei(n){for(var t=0,i=n.length;t<i;t++)n[t]=ff(n[t],{$$isolateScope:!0})}function yt(t,r,u,f,e,s,c){var l,v,y;if(r===e)return null;if(e=null,h.hasOwnProperty(r))for(r=n.get(r+a),v=0,y=r.length;v<y;v++)try{l=r[v];(f===i||f>l.priority)&&-1!=l.restrict.indexOf(u)&&(s&&(l=ff(l,{$$start:s,$$end:c})),t.push(l),e=l)}catch(p){o(p)}return e}function oi(n,t){var u=t.$attr,f=n.$attr,i=n.$$element;r(n,function(i,r){"$"!=r.charAt(0)&&(t[r]&&(i+=("style"===r?";":" ")+t[r]),n.$set(r,i,!0,u[r]))});r(t,function(t,r){"class"==r?(at(i,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):"style"==r?(i.attr("style",i.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==r.charAt(0)||n.hasOwnProperty(r)||(n[r]=t,f[r]=u[r])})}function ci(n){var t,r,i;return(n=g(n),t=b.exec(n))?(t=t[1].toLowerCase(),n=u("<table>"+n+"<\/table>"),r=n.children("tbody"),i=/(td|th)/.test(t)&&n.find("tr"),r.length&&"tbody"!==t&&(n=r),i&&i.length&&(n=i),n.contents()):u("<div>"+n+"<\/div>").contents()}function pi(n,t,i,f,e,o,s,h){var a=[],p,w,b=t[0],v=n.shift(),g=l({},v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),k=c(v.templateUrl)?v.templateUrl(t,i):v.templateUrl;return t.empty(),d.get(ht.getTrustedResourceUrl(k),{cache:tt}).success(function(c){var l,nt,d,tt;if(c=yi(c),v.replace){if(c=ci(c),l=c[0],1!=c.length||1!==l.nodeType)throw ft("tplrt",v.name,k);c={$attr:{}};wt(f,t,l);d=gt(l,[],c);y(v.scope)&&ei(d);n=d.concat(n);oi(i,c)}else l=b,t.html(c);for(n.unshift(g),p=fi(n,l,i,e,t,v,o,s,h),r(f,function(n,i){n==l&&(f[i]=t[0])}),w=kt(t[0].childNodes,e);a.length;){c=a.shift();nt=a.shift();var it=a.shift(),rt=a.shift(),d=t[0];nt!==b&&(tt=nt.className,h.hasElementTranscludeDirective&&v.replace||(d=su(l)),wt(it,u(nt),d),at(u(d),tt));nt=p.transclude?ri(c,p.transclude):rt;p(w,c,d,f,nt)}a=null}).error(function(n,t,i,r){throw ft("tpload",r.url);}),function(n,t,i,r,u){a?(a.push(t),a.push(i),a.push(r),a.push(u)):p(w,t,i,r,u)}}function wi(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function vt(n,t,i,r){if(t)throw ft("multidir",t.name,i.name,n,ut(r));}function bi(n,t){var i=f(t,!0);i&&n.push({priority:0,compile:nt(function(n,t){var r=t.parent(),u=r.data("$binding")||[];u.push(i);at(r.data("$binding",u),"ng-binding");n.$watch(i,function(n){t[0].nodeValue=n})})})}function ki(n,t){if("srcdoc"==t)return ht.HTML;var i=si(n);if("xlinkHref"==t||"FORM"==i&&"action"==t||"IMG"!=i&&("src"==t||"ngSrc"==t))return ht.RESOURCE_URL}function di(n,t,i,r){var u=f(i,!0);if(u){if("multiple"===r&&"SELECT"===si(n))throw ft("selmulti",ut(n));t.push({priority:100,compile:function(){return{pre:function(t,i,e){if(i=e.$$observers||(e.$$observers={}),k.test(r))throw ft("nodomevents");(u=f(e[r],!0,ki(n,r)))&&(e[r]=u(t),(i[r]||(i[r]=[])).$$inter=!0,(e.$$observers&&e.$$observers[r].$$scope||t).$watch(u,function(n,t){"class"===r&&n!=t?e.$updateClass(n,t):e.$set(r,n)}))}}}})}}function wt(n,i,r){var f=i[0],h=i.length,s=f.parentNode,e,o,c;if(n)for(e=0,o=n.length;e<o;e++)if(n[e]==f){for(n[e++]=r,o=e+h-1,c=n.length;e<c;e++,o++)o<c?n[e]=n[o]:delete n[e];n.length-=h-1;break}for(s&&s.replaceChild(r,f),n=t.createDocumentFragment(),n.appendChild(f),r[u.expando]=f[u.expando],f=1,h=i.length;f<h;f++)s=i[f],u(s).remove(),n.appendChild(s),delete i[f];i[0]=r;i.length=1}function li(n,t){return l(function(){return n.apply(null,arguments)},n,t)}var ii=function(n,t){this.$$element=n;this.$attr=t||{}};ii.prototype={$normalize:ot,$addClass:function(n){n&&0<n.length&&ct.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&ct.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=ie(n,t),r=ie(t,n);0===i.length?ct.removeClass(this.$$element,r):0===r.length?ct.addClass(this.$$element,i):ct.setClass(this.$$element,i,r)},$set:function(n,t,u,f){var e=df(this.$$element[0],n);e&&(this.$$element.prop(n,t),f=e);this[n]=t;f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=hr(n,"-"));e=si(this.$$element);("A"===e&&"href"===n||"IMG"===e&&"src"===n)&&(this[n]=t=lt(t,"src"===n));!1!==u&&(null===t||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));(u=this.$$observers)&&r(u[n],function(n){try{n(t)}catch(i){o(i)}})},$observe:function(n,t){var i=this,r=i.$$observers||(i.$$observers={}),u=r[n]||(r[n]=[]);return u.push(t),et.$evalAsync(function(){u.$$inter||t(i[n])}),t}};var ai=f.startSymbol(),vi=f.endSymbol(),yi="{{"==ai||"}}"==vi?ni:function(n){return n.replace(/\{\{/g,ai).replace(/}}/g,vi)},gi=/^ngAttr[A-Z]/;return bt}]}function ot(n){return bi(n.replace(hc,""))}function ie(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f==o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function os(){var n={},t=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,i){bt(t,"controller");y(t)?l(n,t):n[t]=i};this.$get=["$injector","$window",function(i,r){return function(u,f){var s,o,h;if(e(u)&&(s=u.match(t),o=s[1],h=s[3],u=n.hasOwnProperty(o)?n[o]:vf(f.$scope,o,!0)||vf(r,o,!0),wi(u,o,!0)),s=i.instantiate(u,f),h){if(!f||"object"!=typeof f.$scope)throw v("$controller")("noscp",o||u.name,h);f.$scope[h]=s}return s}}]}function ss(){this.$get=["$window",function(n){return u(n.document)}]}function hs(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function re(n){var t={},i,u,f;return n?(r(n.split("\n"),function(n){f=n.indexOf(":");i=a(g(n.substr(0,f)));u=g(n.substr(f+1));i&&(t[i]=t[i]?t[i]+(", "+u):u)}),t):t}function ue(n){var t=y(n)?n:i;return function(i){return t||(t=re(n)),i?t[a(i)]||null:t}}function fe(n,t,i){return c(i)?i(n,t):(r(i,function(i){n=i(n,t)}),n)}function cs(){var u=/^\s*(\[|\{[^\{])/,o=/[\}\]]\s*$/,v=/^\)\]\}',?\n/,t={"Content-Type":"application/json;charset=utf-8"},n=this.defaults={transformResponse:[function(n){return e(n)&&(n=n.replace(v,""),u.test(n)&&o.test(n)&&(n=sf(n))),n}],transformRequest:[function(n){return y(n)&&"[object File]"!==ei.call(n)?lt(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:tt(t),put:tt(t),patch:tt(t)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},p=this.interceptors=[],w=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,u,o,v,b,k){function d(t){function v(n){var t=l({},n,{data:fe(n.data,n.headers,f.transformResponse)});return 200<=n.status&&300>n.status?t:b.reject(t)}var f={method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse},o=function(t){function e(n){var t;r(n,function(i,r){c(i)&&(t=i(),null!=t?n[r]=t:delete n[r])})}var i=n.headers,u=l({},t.headers),f,o,i=l({},i.common,i[a(t.method)]);e(i);e(u);n:for(f in i){t=a(f);for(o in u)if(a(o)===t)continue n;u[f]=i[f]}return u}(t),s,y,e;for(l(f,t),f.headers=o,f.method=ui(f.method),(t=vu(f.url)?u.cookies()[f.xsrfCookieName||n.xsrfCookieName]:i)&&(o[f.xsrfHeaderName||n.xsrfHeaderName]=t),s=[function(t){o=t.headers;var i=fe(t.data,ue(o),t.transformRequest);return h(t.data)&&r(o,function(n,t){"content-type"===a(t)&&delete o[t]}),h(t.withCredentials)&&!h(n.withCredentials)&&(t.withCredentials=n.withCredentials),nt(t,i,o).then(v,v)},i],e=b.when(f),r(g,function(n){(n.request||n.requestError)&&s.unshift(n.request,n.requestError);(n.response||n.responseError)&&s.push(n.response,n.responseError)});s.length;)t=s.shift(),y=s.shift(),e=e.then(t,y);return e.success=function(n){return e.then(function(t){n(t.data,t.status,t.headers,f)}),e},e.error=function(n){return e.then(null,function(t){n(t.data,t.status,t.headers,f)}),e},e}function nt(i,r,u){function k(n,t,i){o&&(200<=n&&300>n?o.put(c,[n,t,re(i)]):o.remove(c));a(t,n,i);v.$$phase||v.$apply()}function a(n,t,r){t=Math.max(t,0);(200<=t&&300>t?p.resolve:p.reject)({data:n,status:t,headers:ue(r),config:i})}function l(){var n=or(d.pendingRequests,i);-1!==n&&d.pendingRequests.splice(n,1)}var p=b.defer(),w=p.promise,o,e,c=it(i.url,i.params);if(d.pendingRequests.push(i),w.then(l,l),(i.cache||n.cache)&&!1!==i.cache&&"GET"==i.method&&(o=y(i.cache)?i.cache:y(n.cache)?n.cache:rt),o)if(e=o.get(c),f(e)){if(e.then)return e.then(l,l),e;s(e)?a(e[1],e[0],tt(e[2])):a(e,200,{})}else o.put(c,w);return h(e)&&t(i.method,c,r,k,u,i.timeout,i.withCredentials,i.responseType),w}function it(n,t){if(!t)return n;var i=[];return yo(t,function(n,t){null===n||h(n)||(s(n)||(n=[n]),r(n,function(n){y(n)&&(n=lt(n));i.push(wt(t)+"="+wt(n))}))}),0<i.length&&(n+=(-1==n.indexOf("?")?"?":"&")+i.join("&")),n}var rt=o("$http"),g=[];return r(p,function(n){g.unshift(e(n)?k.get(n):k.invoke(n))}),r(w,function(n,t){var i=e(n)?k.get(n):k.invoke(n);g.splice(t,0,{response:function(n){return i(b.when(n))},responseError:function(n){return i(b.reject(n))}})}),d.pendingRequests=[],function(){r(arguments,function(n){d[n]=function(t,i){return d(l(i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){r(arguments,function(n){d[n]=function(t,i,r){return d(l(r||{},{method:n,url:t,data:i}))}})}("post","put"),d.defaults=n,d}]}function ls(t){if(8>=p&&(!t.match(/^(get|post|head|put|delete|options)$/i)||!n.XMLHttpRequest))return new n.ActiveXObject("Microsoft.XMLHTTP");if(n.XMLHttpRequest)return new n.XMLHttpRequest;throw v("$httpBackend")("noxhr");}function as(){this.$get=["$browser","$window","$document",function(n,t,i){return vs(n,ls,n.defer,t.angular.callbacks,i[0])}]}function vs(n,t,i,u,e){function h(n,t){var i=e.createElement("script"),r=function(){i.onreadystatechange=i.onload=i.onerror=null;e.body.removeChild(i);t&&t()};return i.type="text/javascript",i.src=n,p&&8>=p?i.onreadystatechange=function(){/loaded|complete/.test(i.readyState)&&r()}:i.onload=i.onerror=function(){r()},e.body.appendChild(i),r}var s=-1;return function(e,c,l,v,y,p,w,b){function rt(){g=s;nt&&nt();k&&k.abort()}function tt(t,r,u,f){it&&i.cancel(it);nt=k=null;r=0===r?u?200:404:r;t(1223==r?204:r,u,f);n.$$completeOutstandingRequest(o)}var g,d,nt,k,it;if(n.$$incOutstandingRequestCount(),c=c||n.url(),"jsonp"==a(e))d="_"+(u.counter++).toString(36),u[d]=function(n){u[d].data=n},nt=h(c.replace("JSON_CALLBACK","angular.callbacks."+d),function(){u[d].data?tt(v,200,u[d].data):tt(v,g||-2);u[d]=oi.noop});else{if(k=t(e),k.open(e,c,!0),r(y,function(n,t){f(n)&&k.setRequestHeader(t,n)}),k.onreadystatechange=function(){if(k&&4==k.readyState){var n=null,t=null;g!==s&&(n=k.getAllResponseHeaders(),t="response"in k?k.response:k.responseText);tt(v,g||k.status,t,n)}},w&&(k.withCredentials=!0),b)try{k.responseType=b}catch(ut){if("json"!==b)throw ut;}k.send(l||null)}0<p?it=i(rt,p):p&&p.then&&p.then(rt)}}function ys(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,r,u){function f(f,s,c){for(var y,w,l=0,a=[],v=f.length,p=!1,b=[];l<v;)-1!=(y=f.indexOf(n,l))&&-1!=(w=f.indexOf(t,y+e))?(l!=y&&a.push(f.substring(l,y)),a.push(l=i(p=f.substring(y+e,w))),l.exp=p,l=w+o,p=!0):(l!=v&&a.push(f.substring(l)),l=v);if((v=a.length)||(a.push(""),v=1),c&&1<a.length)throw io("noconcat",f);if(!s||p)return b.length=v,l=function(n){try{for(var i=0,e=v,t;i<e;i++)"function"==typeof(t=a[i])&&(t=t(n),t=c?u.getTrusted(c,t):u.valueOf(t),null===t||h(t)?t="":"string"!=typeof t&&(t=lt(t))),b[i]=t;return b.join("")}catch(o){n=io("interr",f,o.toString());r(n)}},l.exp=f,l.parts=a,l}var e=n.length,o=t.length;return f.startSymbol=function(){return n},f.endSymbol=function(){return t},f}]}function ps(){this.$get=["$rootScope","$window","$q",function(n,t,i){function u(u,e,o,s){var a=t.setInterval,v=t.clearInterval,c=i.defer(),h=c.promise,l=0,y=f(s)&&!s;return o=f(o)?o:0,h.then(null,null,u),h.$$intervalId=a(function(){c.notify(l++);0<o&&l>=o&&(c.resolve(l),v(h.$$intervalId),delete r[h.$$intervalId]);y||n.$apply()},e),r[h.$$intervalId]=c,h}var r={};return u.cancel=function(n){return n&&n.$$intervalId in r?(r[n.$$intervalId].reject("canceled"),clearInterval(n.$$intervalId),delete r[n.$$intervalId],!0):!1},u}]}function ws(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(n){return 1===n?"one":"other"}}}}function ee(n){n=n.split("/");for(var t=n.length;t--;)n[t]=uu(n[t]);return n.join("/")}function oe(n,t,i){n=kt(n,i);t.$$protocol=n.protocol;t.$$host=n.hostname;t.$$port=b(n.port)||lc[n.protocol]||null}function se(n,t,i){var r="/"!==n.charAt(0);r&&(n="/"+n);n=kt(n,i);t.$$path=decodeURIComponent(r&&"/"===n.pathname.charAt(0)?n.pathname.substring(1):n.pathname);t.$$search=cf(n.search);t.$$hash=decodeURIComponent(n.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function st(n,t){if(0===t.indexOf(n))return t.substr(n.length)}function di(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function lu(n){return n.substr(0,di(n).lastIndexOf("/")+1)}function he(n,t){this.$$html5=!0;t=t||"";var r=lu(n);oe(n,this,n);this.$$parse=function(t){var i=st(r,t);if(!e(i))throw du("ipthprfx",t,r);se(i,this,n);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=lf(this.$$search),t=this.$$hash?"#"+uu(this.$$hash):"";this.$$url=ee(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$rewrite=function(u){var f;return(f=st(n,u))!==i?(u=f,(f=st(t,f))!==i?r+(st("/",f)||f):n+u):(f=st(r,u))!==i?r+f:r==u+"/"?r:void 0}}function au(n,t){var i=lu(n);oe(n,this,n);this.$$parse=function(r){var u=st(n,r)||st(i,r),u="#"==u.charAt(0)?st(t,u):this.$$html5?u:"",f;if(!e(u))throw du("ihshprfx",r,t);se(u,this,n);r=this.$$path;f=/^\/?.*?:(\/.*)/;0===u.indexOf(n)&&(u=u.replace(n,""));f.exec(u)||(r=(u=f.exec(r))?u[1]:r);this.$$path=r;this.$$compose()};this.$$compose=function(){var i=lf(this.$$search),r=this.$$hash?"#"+uu(this.$$hash):"";this.$$url=ee(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$rewrite=function(t){if(di(n)==di(t))return t}}function ce(n,t){this.$$html5=!0;au.apply(this,arguments);var i=lu(n);this.$$rewrite=function(r){var u;return n==di(r)?r:(u=st(i,r))?n+t+u:i===r+"/"?i:void 0}}function vr(n){return function(){return this[n]}}function le(n,t){return function(i){return h(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function bs(){var t="",i=!1;this.hashPrefix=function(n){return f(n)?(t=n,this):t};this.html5Mode=function(n){return f(n)?(i=n,this):i};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(r,f,e,o){function v(n){r.$broadcast("$locationChangeSuccess",s.absUrl(),n)}var s,c=f.baseHref(),h=f.url(),l;i?(c=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(c||"/"),e=e.history?he:ce):(c=di(h),e=au);s=new e(c,"#"+t);s.$$parse(s.$$rewrite(h));o.on("click",function(t){var i,e,h;if(!t.ctrlKey&&!t.metaKey&&2!=t.which){for(i=u(t.target);"a"!==a(i[0].nodeName);)if(i[0]===o[0]||!(i=i.parent())[0])return;e=i.prop("href");y(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=kt(e.animVal).href);h=s.$$rewrite(e);e&&!i.attr("target")&&h&&!t.isDefaultPrevented()&&(t.preventDefault(),h!=f.url()&&(s.$$parse(h),r.$apply(),n.angular["ff-684208-preventDefault"]=!0))}});s.absUrl()!=h&&f.url(s.absUrl(),!0);f.onUrlChange(function(n){s.absUrl()!=n&&(r.$evalAsync(function(){var t=s.absUrl();s.$$parse(n);r.$broadcast("$locationChangeStart",n,t).defaultPrevented?(s.$$parse(t),f.url(t)):v(t)}),r.$$phase||r.$digest())});return l=0,r.$watch(function(){var n=f.url(),t=s.$$replace;return l&&n==s.absUrl()||(l++,r.$evalAsync(function(){r.$broadcast("$locationChangeStart",s.absUrl(),n).defaultPrevented?s.$$parse(n):(f.url(s.absUrl(),t),v(n))})),s.$$replace=!1,l}),s}]}function ks(){var n=!0,t=this;this.debugEnabled=function(t){return f(t)?(n=t,this):n};this.$get=["$window",function(i){function f(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var t=i.console||{},u=t[n]||t.log||o;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return r(arguments,function(t){n.push(f(t))}),u.apply(t,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var i=u("debug");return function(){n&&i.apply(t,arguments)}}()}}]}function it(n,t){if("constructor"===n)throw gt("isecfld",t);return n}function gi(n,t){if(n){if(n.constructor===n)throw gt("isecfn",t);if(n.document&&n.location&&n.alert&&n.setInterval)throw gt("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw gt("isecdom",t);}return n}function yr(n,t,r,u,f){var e,s,o;for(f=f||{},t=t.split("."),s=0;1<t.length;s++)e=it(t.shift(),u),o=n[e],o||(o={},n[e]=o),n=o,n.then&&f.unwrapPromises&&(vt(u),"$$v"in n||function(n){n.then(function(t){n.$$v=t})}(n),n.$$v===i&&(n.$$v={}),n=n.$$v);return e=it(t.shift(),u),n[e]=r}function ae(n,t,r,u,f,e,o){return it(n,e),it(t,e),it(r,e),it(u,e),it(f,e),o.unwrapPromises?function(o,s){var h=s&&s.hasOwnProperty(n)?s:o,c;return null==h?h:((h=h[n])&&h.then&&(vt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!t)?h:null==h?i:((h=h[t])&&h.then&&(vt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!r)?h:null==h?i:((h=h[r])&&h.then&&(vt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!u)?h:null==h?i:((h=h[u])&&h.then&&(vt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),!f)?h:null==h?i:((h=h[f])&&h.then&&(vt(e),"$$v"in h||(c=h,c.$$v=i,c.then(function(n){c.$$v=n})),h=h.$$v),h)}:function(e,o){var s=o&&o.hasOwnProperty(n)?o:e;return null==s?s:(s=s[n],!t)?s:null==s?i:(s=s[t],!r)?s:null==s?i:(s=s[r],!u)?s:null==s?i:(s=s[u],f?null==s?i:s=s[f]:s)}}function ds(n,t){return it(n,t),function(t,r){return null==t?i:(r&&r.hasOwnProperty(n)?r:t)[n]}}function gs(n,t,r){return it(n,r),it(t,r),function(r,u){return null==r?i:(r=(u&&u.hasOwnProperty(n)?u:r)[n],null==r?i:r[t])}}function ve(n,t,u){var f,s,e,o,h;return nf.hasOwnProperty(n)?nf[n]:(f=n.split("."),s=f.length,t.unwrapPromises||1!==s?t.unwrapPromises||2!==s?t.csp?e=6>s?ae(f[0],f[1],f[2],f[3],f[4],u,t):function(n,r){var e=0,o;do o=ae(f[e++],f[e++],f[e++],f[e++],f[e++],u,t)(n,r),r=i,n=o;while(e<s);return o}:(o="var p;\n",r(f,function(n,i){it(n,u);o+="if(s == null) return undefined;\ns="+(i?"s":'((k&&k.hasOwnProperty("'+n+'"))?k:s)')+'["'+n+'"];\n'+(t.unwrapPromises?'if (s && s.then) {\n pw("'+u.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n':"")}),o=o+"return s;",h=new Function("s","k","pw",o),h.toString=nt(o),e=t.unwrapPromises?function(n,t){return h(n,t,vt)}:h):e=gs(f[0],f[1],u):e=ds(f[0],u),"hasOwnProperty"!==n&&(nf[n]=e),e)}function nh(){var t={},n={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0};this.unwrapPromises=function(t){return f(t)?(n.unwrapPromises=!!t,this):n.unwrapPromises};this.logPromiseWarnings=function(t){return f(t)?(n.logPromiseWarnings=t,this):n.logPromiseWarnings};this.$get=["$filter","$sniffer","$log",function(i,r,u){return n.csp=r.csp,vt=function(t){n.logPromiseWarnings&&!ro.hasOwnProperty(t)&&(ro[t]=!0,u.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r){var u;switch(typeof r){case"string":return t.hasOwnProperty(r)?t[r]:(u=new gu(n),u=new li(u,i,n).parse(r,!1),"hasOwnProperty"!==r&&(t[r]=u),u);case"function":return r;default:return o}}}]}function th(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return ih(function(t){n.$evalAsync(t)},t)}]}function ih(n,t){function f(n){return n}function h(n){return o(n)}var u=function(){var r=[],o,s;return s={resolve:function(t){if(r){var u=r;r=i;o=e(t);u.length&&n(function(){for(var n,t=0,i=u.length;t<i;t++)n=u[t],o.then(n[0],n[1],n[2])})}},reject:function(n){s.resolve(l(n))},notify:function(t){if(r){var i=r;r.length&&n(function(){for(var r,n=0,u=i.length;n<u;n++)r=i[n],r[2](t)})}},promise:{then:function(n,i,e){var s=u(),l=function(i){try{s.resolve((c(n)?n:f)(i))}catch(r){s.reject(r);t(r)}},a=function(n){try{s.resolve((c(i)?i:h)(n))}catch(r){s.reject(r);t(r)}},v=function(n){try{s.notify((c(e)?e:f)(n))}catch(i){t(i)}};return r?r.push([l,a,v]):o.then(l,a,v),s.promise},"catch":function(n){return this.then(null,n)},"finally":function(n){function t(n,t){var i=u();return t?i.resolve(n):i.reject(n),i.promise}function i(i,r){var u=null;try{u=(n||f)()}catch(e){return t(e,!1)}return u&&c(u.then)?u.then(function(){return t(i,r)},function(n){return t(n,!1)}):t(i,r)}return this.then(function(n){return i(n,!0)},function(n){return i(n,!1)})}}}},e=function(t){return t&&c(t.then)?t:{then:function(i){var r=u();return n(function(){r.resolve(i(t))}),r.promise}}},o=function(n){var t=u();return t.reject(n),t.promise},l=function(i){return{then:function(r,f){var e=u();return n(function(){try{e.resolve((c(f)?f:h)(i))}catch(n){e.reject(n);t(n)}}),e.promise}}};return{defer:u,reject:o,when:function(i,r,s,l){var v=u(),a,w=function(n){try{return(c(r)?r:f)(n)}catch(i){return t(i),o(i)}},y=function(n){try{return(c(s)?s:h)(n)}catch(i){return t(i),o(i)}},p=function(n){try{return(c(l)?l:f)(n)}catch(i){t(i)}};return n(function(){e(i).then(function(n){a||(a=!0,v.resolve(e(n).then(w,y,p)))},function(n){a||(a=!0,v.resolve(y(n)))},function(n){a||v.notify(p(n))})}),v.promise},all:function(n){var i=u(),f=0,t=s(n)?[]:{};return r(n,function(n,r){f++;e(n).then(function(n){t.hasOwnProperty(r)||(t[r]=n,--f||i.resolve(t))},function(n){t.hasOwnProperty(r)||i.reject(n)})}),0===f&&i.resolve(t),i.promise}}}function rh(){this.$get=["$window",function(n){var t=n.requestAnimationFrame||n.webkitRequestAnimationFrame,i=n.cancelAnimationFrame||n.webkitCancelAnimationFrame;return n=function(n){var r=t(n);return function(){i(r)}},n.supported=!!t,n}]}function uh(){var t=10,i=v("$rootScope"),n=null;this.digestTtl=function(n){return arguments.length&&(t=n),t};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(u,f,e,s){function l(){this.$id=fr();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$postDigestQueue=[];this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings={}}function a(n){if(h.$$phase)throw i("inprog",h.$$phase);h.$$phase=n}function v(n,t){var i=e(n);return wi(i,t),i}function p(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function w(){}l.prototype={constructor:l,$new:function(n){return n?(n=new l,n.$root=this.$root,n.$$asyncQueue=this.$$asyncQueue,n.$$postDigestQueue=this.$$postDigestQueue):(n=function(){},n.prototype=this,n=new n,n.$id=fr()),n["this"]=n,n.$$listeners={},n.$$listenerCount={},n.$parent=this,n.$$watchers=n.$$nextSibling=n.$$childHead=n.$$childTail=null,n.$$prevSibling=this.$$childTail,this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=n:this.$$childHead=this.$$childTail=n,n},$watch:function(t,i,r){var e=v(t,"watch"),f=this.$$watchers,u={fn:i,last:w,get:e,exp:t,eq:!!r},s,h;return n=null,c(i)||(s=v(i||o,"listener"),u.fn=function(n,t,i){s(i)}),"string"==typeof t&&e.constant&&(h=u.fn,u.fn=function(n,t,i){h.call(this,n,t,i);yi(f,u)}),f||(f=this.$$watchers=[]),f.unshift(u),function(){yi(f,u);n=null}},$watchCollection:function(n,t){var o=this,i,r,u=0,c=e(n),s=[],h={},f=0;return this.$watch(function(){r=c(o);var t,n;if(y(r))if(iu(r))for(i!==s&&(i=s,f=i.length=0,u++),t=r.length,f!==t&&(u++,i.length=f=t),n=0;n<t;n++)i[n]!==r[n]&&(u++,i[n]=r[n]);else{i!==h&&(i=h={},f=0,u++);t=0;for(n in r)r.hasOwnProperty(n)&&(t++,i.hasOwnProperty(n)?i[n]!==r[n]&&(u++,i[n]=r[n]):(f++,i[n]=r[n],u++));if(f>t)for(n in u++,i)i.hasOwnProperty(n)&&!r.hasOwnProperty(n)&&(f--,delete i[n])}else i!==r&&(i=r,u++);return u},function(){t(r,i,o)})},$digest:function(){var r,e,o,s,v=this.$$asyncQueue,nt=this.$$postDigestQueue,b,l,k=t,u,y=[],p,d,g;a("$digest");n=null;do{for(l=!1,u=this;v.length;){try{g=v.shift();g.scope.$eval(g.expression)}catch(it){h.$$phase=null;f(it)}n=null}n:do{if(s=u.$$watchers)for(b=s.length;b--;)try{if(r=s[b])if((e=r.get(u))===(o=r.last)||(r.eq?pt(e,o):"number"==typeof e&&"number"==typeof o&&isNaN(e)&&isNaN(o))){if(r===n){l=!1;break n}}else l=!0,n=r,r.last=r.eq?tt(e):e,r.fn(e,o===w?e:o,u),5>k&&(p=4-k,y[p]||(y[p]=[]),d=c(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,d+="; newVal: "+lt(e)+"; oldVal: "+lt(o),y[p].push(d))}catch(rt){h.$$phase=null;f(rt)}if(!(s=u.$$childHead||u!==this&&u.$$nextSibling))for(;u!==this&&!(s=u.$$nextSibling);)u=u.$parent}while(u=s);if((l||v.length)&&!k--)throw h.$$phase=null,i("infdig",t,lt(y));}while(l||v.length);for(h.$$phase=null;nt.length;)try{nt.shift()()}catch(ut){f(ut)}},$destroy:function(){if(!this.$$destroyed){var n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this!==h&&(r(this.$$listenerCount,sr(null,p,this)),n.$$childHead==this&&(n.$$childHead=this.$$nextSibling),n.$$childTail==this&&(n.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null)}},$eval:function(n,t){return e(n)(this,t)},$evalAsync:function(n){h.$$phase||h.$$asyncQueue.length||s.defer(function(){h.$$asyncQueue.length&&h.$digest()});this.$$asyncQueue.push({scope:this,expression:n})},$$postDigest:function(n){this.$$postDigestQueue.push(n)},$apply:function(n){try{return a("$apply"),this.$eval(n)}catch(i){f(i)}finally{h.$$phase=null;try{h.$digest()}catch(t){throw f(t),t;}}},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){r[or(r,t)]=null;p(u,1,n)}},$emit:function(n){var s=[],r,i=this,o=!1,u={name:n,targetScope:i,stopPropagation:function(){o=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},h=[u].concat(dt.call(arguments,1)),t,e;do{for(r=i.$$listeners[n]||s,u.currentScope=i,t=0,e=r.length;t<e;t++)if(r[t])try{r[t].apply(null,h)}catch(c){f(c)}else r.splice(t,1),t--,e--;if(o)break;i=i.$parent}while(i);return u},$broadcast:function(n){for(var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},o=[u].concat(dt.call(arguments,1)),r,e;t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,e=i.length;r<e;r++)if(i[r])try{i[r].apply(null,o)}catch(s){f(s)}else i.splice(r,1),r--,e--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u}};var h=new l;return h}]}function fh(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*(https?|ftp|file):|data:image\//;this.aHrefSanitizationWhitelist=function(t){return f(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return f(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(!p||8<=p)&&(u=kt(i).href,""!==u&&!u.match(f))?"unsafe:"+u:i}}}function eh(n){if("self"===n)return n;if(e(n)){if(-1<n.indexOf("***"))throw yt("iwcard",n);return n=n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08").replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),RegExp("^"+n+"$")}if(er(n))return RegExp("^"+n.source+"$");throw yt("imatcher");}function ye(n){var t=[];return f(n)&&r(n,function(n){t.push(eh(n))}),t}function oh(){this.SCE_CONTEXTS=rt;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=ye(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=ye(n)),t};this.$get=["$injector",function(r){function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var o=function(){throw yt("unsafe");},e,u;return r.has("$sanitize")&&(o=r.get("$sanitize")),e=f(),u={},u[rt.HTML]=f(e),u[rt.CSS]=f(e),u[rt.URL]=f(e),u[rt.JS]=f(e),u[rt.RESOURCE_URL]=f(u[rt.URL]),{trustAs:function(n,t){var r=u.hasOwnProperty(n)?u[n]:null;if(!r)throw yt("icontext",n,t);if(null===t||t===i||""===t)return t;if("string"!=typeof t)throw yt("itype",n);return new r(t)},getTrusted:function(r,f){var s,e,c,h;if(null===f||f===i||""===f)return f;if(s=u.hasOwnProperty(r)?u[r]:null,s&&f instanceof s)return f.$$unwrapTrustedValue();if(r===rt.RESOURCE_URL){for(s=kt(f.toString()),h=!1,e=0,c=n.length;e<c;e++)if("self"===n[e]?vu(s):n[e].exec(s.href)){h=!0;break}if(h)for(e=0,c=t.length;e<c;e++)if("self"===t[e]?vu(s):t[e].exec(s.href)){h=!1;break}if(h)return f;throw yt("insecurl",f.toString());}if(r===rt.HTML)return o(f);throw yt("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function sh(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sniffer","$sceDelegate",function(t,i,u){var f;if(n&&i.msie&&8>i.msieDocumentMode)throw yt("iequirks");f=tt(rt);f.isEnabled=function(){return n};f.trustAs=u.trustAs;f.getTrusted=u.getTrusted;f.valueOf=u.valueOf;n||(f.trustAs=f.getTrusted=function(n,t){return t},f.valueOf=ni);f.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:function(t,i){return f.getTrusted(n,r(t,i))}};var e=f.parseAs,o=f.getTrusted,s=f.trustAs;return r(rt,function(n,t){var i=a(t);f[bi("parse_as_"+i)]=function(t){return e(n,t)};f[bi("get_trusted_"+i)]=function(t){return o(n,t)};f[bi("trust_as_"+i)]=function(t){return s(n,t)}}),f}]}function hh(){this.$get=["$window","$document",function(n,t){var s={},c=b((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),y=/Boxee/i.test((n.navigator||{}).userAgent),u=t[0]||{},l=u.documentMode,i,r=u.body&&u.body.style,f=!1,o=!1,v;if(r){for(v in r)if(f=/^(Moz|webkit|O|ms)(?=[A-Z])/.exec(v)){i=f[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in r&&"webkit");f=!!("transition"in r||i+"Transition"in r);o=!!("animation"in r||i+"Animation"in r);!c||f&&o||(f=e(u.body.style.webkitTransition),o=e(u.body.style.webkitAnimation))}return{history:!(!n.history||!n.history.pushState||4>c||y),hashchange:"onhashchange"in n&&(!l||7<l),hasEvent:function(n){if("input"==n&&9==p)return!1;if(h(s[n])){var t=u.createElement("div");s[n]="on"+n in t}return s[n]},csp:of(),vendorPrefix:i,transitions:f,animations:o,android:c,msie:p,msieDocumentMode:l}}]}function ch(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(n,t,i,r){function e(e,o,s){var h=i.defer(),c=h.promise,l=f(s)&&!s;return o=t.defer(function(){try{h.resolve(e())}catch(t){h.reject(t);r(t)}finally{delete u[c.$$timeoutId]}l||n.$apply()},o),c.$$timeoutId=o,u[o]=h,c}var u={};return e.cancel=function(n){return n&&n.$$timeoutId in u?(u[n.$$timeoutId].reject("canceled"),delete u[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},e}]}function kt(n){var t=n;return p&&(d.setAttribute("href",t),t=d.href),d.setAttribute("href",t),{href:d.href,protocol:d.protocol?d.protocol.replace(/:$/,""):"",host:d.host,search:d.search?d.search.replace(/^\?/,""):"",hash:d.hash?d.hash.replace(/^#/,""):"",hostname:d.hostname,port:d.port,pathname:"/"===d.pathname.charAt(0)?d.pathname:"/"+d.pathname}}function vu(n){return n=e(n)?kt(n):n,n.protocol===uo.protocol&&n.host===uo.host}function lh(){this.$get=nt(n)}function pe(n){function t(u,f){if(y(u)){var e={};return r(u,function(n,i){e[i]=t(i,n)}),e}return n.factory(u+i,f)}var i="Filter";this.register=t;this.$get=["$injector",function(n){return function(t){return n.get(t+i)}}];t("currency",we);t("date",de);t("filter",ah);t("json",vh);t("limitTo",yh);t("lowercase",eo);t("number",be);t("orderBy",ge);t("uppercase",oo)}function ah(){return function(n,t,i){var u,r,e,f,o;if(!s(n))return n;u=typeof i;r=[];r.check=function(n){for(var t=0;t<r.length;t++)if(!r[t](n))return!1;return!0};"function"!==u&&(i="boolean"===u&&i?function(n,t){return oi.equals(n,t)}:function(n,t){if(n&&t&&"object"==typeof n&&"object"==typeof t){for(var r in n)if("$"!==r.charAt(0)&&wh.call(n,r)&&i(n[r],t[r]))return!0;return!1}return t=(""+t).toLowerCase(),-1<(""+n).toLowerCase().indexOf(t)});e=function(n,t){if("string"==typeof t&&"!"===t.charAt(0))return!e(n,t.substr(1));switch(typeof n){case"boolean":case"number":case"string":return i(n,t);case"object":switch(typeof t){case"object":return i(n,t);default:for(var r in n)if("$"!==r.charAt(0)&&e(n[r],t))return!0}return!1;case"array":for(r=0;r<n.length;r++)if(e(n[r],t))return!0;return!1;default:return!1}};switch(typeof t){case"boolean":case"number":case"string":t={$:t};case"object":for(f in t)(function(n){"undefined"!=typeof t[n]&&r.push(function(i){return e("$"==n?i:i&&i[n],t[n])})})(f);break;case"function":r.push(t);break;default:return n}for(u=[],f=0;f<n.length;f++)o=n[f],r.check(o)&&u.push(o);return u}}function we(n){var t=n.NUMBER_FORMATS;return function(n,i){return h(i)&&(i=t.CURRENCY_SYM),ke(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,2).replace(/\u00A4/g,i)}}function be(n){var t=n.NUMBER_FORMATS;return function(n,i){return ke(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function ke(n,t,i,r,u){var l,s;if(null==n||!isFinite(n)||y(n))return"";l=0>n;n=Math.abs(n);var f=n+"",o="",c=[],e=!1;if(-1!==f.indexOf("e")&&(s=f.match(/([\d\.]+)e(-?)(\d+)/),s&&"-"==s[2]&&s[3]>u+1?f="0":(o=f,e=!0)),e)0<u&&-1<n&&1>n&&(o=n.toFixed(u));else{f=(f.split(fo)[1]||"").length;h(u)&&(u=Math.min(Math.max(t.minFrac,f),t.maxFrac));f=Math.pow(10,u);n=Math.round(n*f)/f;n=(""+n).split(fo);f=n[0];n=n[1]||"";var s=0,a=t.lgSize,v=t.gSize;if(f.length>=a+v)for(s=f.length-a,e=0;e<s;e++)0==(s-e)%v&&0!==e&&(o+=i),o+=f.charAt(e);for(e=s;e<f.length;e++)0==(f.length-e)%a&&0!==e&&(o+=i),o+=f.charAt(e);for(;n.length<u;)n+="0";u&&"0"!==u&&(o+=r+n.substr(0,u))}return c.push(l?t.negPre:t.posPre),c.push(o),c.push(l?t.negSuf:t.posSuf),c.join("")}function yu(n,t,i){var r="";for(0>n&&(r="-",n=-n),n=""+n;n.length<t;)n="0"+n;return i&&(n=n.substr(n.length-t)),r+n}function k(n,t,i,r){return i=i||0,function(u){return u=u["get"+n](),(0<i||u>-i)&&(u+=i),0===u&&-12==i&&(u=12),yu(u,t,r)}}function pr(n,t){return function(i,r){var u=i["get"+n](),f=ui(t?"SHORT"+n:n);return r[f][u]}}function de(n){function t(n){var t;if(t=n.match(i)){n=new Date(0);var r=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(r=b(t[9]+t[10]),u=b(t[9]+t[11]));f.call(n,b(t[1]),b(t[2])-1,b(t[3]));r=b(t[4]||0)-r;u=b(t[5]||0)-u;f=b(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,r,u,f,t)}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u){var s="",f=[],o,h;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,e(i)&&(i=pc.test(i)?b(i):t(i)),ru(i)&&(i=new Date(i)),!vi(i))return i;for(;u;)(h=yc.exec(u))?(f=f.concat(dt.call(h,1)),u=f.pop()):(f.push(u),u=null);return r(f,function(t){o=vc[t];s+=o?o(i,n.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function vh(){return function(n){return lt(n,!0)}}function yh(){return function(n,t){if(!s(n)&&!e(n))return n;if(t=b(t),e(n))return t?0<=t?n.slice(0,t):n.slice(t,n.length):"";var u=[],i,r;for(t>n.length?t=n.length:t<-n.length&&(t=-n.length),0<t?(i=0,r=t):(i=n.length+t,r=n.length);i<r;i++)u.push(n[i]);return u}}function ge(n){return function(t,i,r){function f(n,t){return pi(t)?function(t,i){return n(i,t)}:n}if(!s(t)||!i)return t;i=s(i)?i:[i];i=wo(i,function(t){var r=!1,i=t||ni;return e(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(r="-"==t.charAt(0),t=t.substring(1)),i=n(t)),f(function(n,t){var r=i(n);var u=i(t),f=typeof r,e=typeof u;return f==e?("string"==f&&(r=r.toLowerCase(),u=u.toLowerCase()),r=r===u?0:r<u?-1:1):r=f<e?-1:1,r},r)});for(var o=[],u=0;u<t.length;u++)o.push(t[u]);return o.sort(f(function(n,t){for(var u,r=0;r<i.length;r++)if(u=i[r](n,t),0!==u)return u;return 0},r))}}function at(n){return c(n)&&(n={link:n}),n.restrict=n.restrict||"AC",nt(n)}function no(n,t,i,u){function e(t,i){i=i?"-"+hr(i,"-"):"";u.removeClass(n,(t?nu:gr)+i);u.addClass(n,(t?gr:nu)+i)}var f=this,o=n.parent().controller("form")||ur,s=0,h=f.$error={},c=[];f.$name=t.name||t.ngForm;f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;o.$addControl(f);n.addClass(ai);e(!0);f.$addControl=function(n){bt(n.$name,"input");c.push(n);n.$name&&(f[n.$name]=n)};f.$removeControl=function(n){n.$name&&f[n.$name]===n&&delete f[n.$name];r(h,function(t,i){f.$setValidity(i,!0,n)});yi(c,n)};f.$setValidity=function(n,t,i){var r=h[n];if(t)r&&(yi(r,i),r.length||(s--,s||(e(t),f.$valid=!0,f.$invalid=!1),h[n]=!1,e(!0,n),o.$setValidity(n,!0,f)));else{if(s||e(t),r){if(-1!=or(r,i))return}else h[n]=r=[],s++,e(!1,n),o.$setValidity(n,!1,f);r.push(i);f.$valid=!1;f.$invalid=!0}};f.$setDirty=function(){u.removeClass(n,ai);u.addClass(n,tu);f.$dirty=!0;f.$pristine=!1;o.$setDirty()};f.$setPristine=function(){u.removeClass(n,tu);u.addClass(n,ai);f.$dirty=!1;f.$pristine=!0;r(c,function(n){n.$setPristine()})}}function ht(n,t,r,u){return n.$setValidity(t,r),r?u:i}function ph(n,t,i){var r=i.prop("validity");y(r)&&(i=function(i){if(n.$error[t]||!(r.badInput||r.customError||r.typeMismatch)||r.valueMissing)return i;n.$setValidity(t,!1)},n.$parsers.push(i),n.$formatters.push(i))}function wr(n,t,i,r,u,f){var l=t.prop("validity"),s,o,h,c,e,a,y;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(){if(!s){var u=t.val();pi(i.ngTrim||"T")&&(u=g(u));(r.$viewValue!==u||l&&""===u&&!l.valueMissing)&&(n.$$phase?r.$setViewValue(u):n.$apply(function(){r.$setViewValue(u)}))}},u.hasEvent("input"))t.on("input",o);else{c=function(){h||(h=f.defer(function(){o();h=null}))};t.on("keydown",function(n){n=n.keyCode;91===n||15<n&&19>n||37<=n&&40>=n||c()});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)};e=i.ngPattern;e&&((u=e.match(/^\/(.*)\/([gim]*)$/))?(e=RegExp(u[1],u[2]),u=function(n){return ht(r,"pattern",r.$isEmpty(n)||e.test(n),n)}):u=function(i){var u=n.$eval(e);if(!u||!u.test)throw v("ngPattern")("noregexp",e,u,ut(t));return ht(r,"pattern",r.$isEmpty(i)||u.test(i),i)},r.$formatters.push(u),r.$parsers.push(u));i.ngMinlength&&(a=b(i.ngMinlength),u=function(n){return ht(r,"minlength",r.$isEmpty(n)||n.length>=a,n)},r.$parsers.push(u),r.$formatters.push(u));i.ngMaxlength&&(y=b(i.ngMaxlength),u=function(n){return ht(r,"maxlength",r.$isEmpty(n)||n.length<=y,n)},r.$parsers.push(u),r.$formatters.push(u))}function pu(n,t){return n="ngClass"+n,function(){return{restrict:"AC",link:function(i,u,f){function h(n){if(!0===t||i.$index%2===t){var r=o(n||"");e?pt(n,e)||f.$updateClass(r,o(e)):f.$addClass(r)}e=tt(n)}function o(n){if(s(n))return n.join(" ");if(y(n)){var t=[];return r(n,function(n,i){n&&t.push(i)}),t.join(" ")}return n}var e;i.$watch(f[n],h,!0);f.$observe("class",function(){h(i.$eval(f[n]))});"ngClass"!==n&&i.$watch("$index",function(r,u){var s=r&1,e;s!==u&1&&(e=o(i.$eval(f[n])),s===t?f.$addClass(e):f.$removeClass(e))})}}}}var a=function(n){return e(n)?n.toLowerCase():n},wh=Object.prototype.hasOwnProperty,ui=function(n){return e(n)?n.toUpperCase():n},p,u,fi,dt=[].slice,bh=[].push,ei=Object.prototype.toString,nr=v("ng"),oi=n.angular||(n.angular={}),tr,si,ct=["0","0","0"],g,ku,li,eo,oo,so,dr,ur;p=b((/msie (\d+)/.exec(a(navigator.userAgent))||[])[1]);isNaN(p)&&(p=b((/trident\/.*; rv:(\d+)/.exec(a(navigator.userAgent))||[])[1]));o.$inject=[];ni.$inject=[];g=function(){return String.prototype.trim?function(n){return e(n)?n.trim():n}:function(n){return e(n)?n.replace(/^\s\s*/,"").replace(/\s\s*$/,""):n}}();si=9>p?function(n){return n=n.nodeName?n:n[0],n.scopeName&&"HTML"!=n.scopeName?ui(n.scopeName+":"+n.nodeName):n.nodeName}:function(n){return n.nodeName?n.nodeName:n[0].nodeName};var kh=/[A-Z]/g,dh={full:"1.2.14",major:1,minor:2,dot:14,codeName:"feisty-cryokinesis"},ir=w.cache={},br=w.expando="ng-"+(new Date).getTime(),gh=1,to=n.document.addEventListener?function(n,t,i){n.addEventListener(t,i,!1)}:function(n,t,i){n.attachEvent("on"+t,i)},wu=n.document.removeEventListener?function(n,t,i){n.removeEventListener(t,i,!1)}:function(n,t,i){n.detachEvent("on"+t,i)};w._data=function(n){return this.cache[n[this.expando]]||{}};var nc=/([\:\-\_]+(.))/g,tc=/^moz([A-Z])/,bu=v("jqLite"),hi=w.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),w(n).on("load",r))},toString:function(){var n=[];return r(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?u(this[n]):u(this[this.length+n])},length:0,push:bh,sort:[].sort,splice:[].splice},kr={};r("multiple selected checked disabled readOnly required open".split(" "),function(n){kr[a(n)]=n});ku={};r("input select option textarea button form details".split(" "),function(n){ku[ui(n)]=!0});r({data:wf,inheritedData:ar,scope:function(n){return u(n).data("$scope")||ar(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return u(n).data("$isolateScope")||u(n).data("$isolateScopeNoTemplate")},controller:bf,injector:function(n){return ar(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:hu,css:function(n,t,r){if(t=bi(t),f(r))n.style[t]=r;else{var u;return 8>=p&&(u=n.currentStyle&&n.currentStyle[t],""===u&&(u="auto")),u=u||n.style[t],8>=p&&(u=""===u?i:u),u}},attr:function(n,t,r){var u=a(t);if(kr[u])if(f(r))r?(n[t]=!0,n.setAttribute(t,u)):(n[t]=!1,n.removeAttribute(u));else return n[t]||(n.attributes.getNamedItem(t)||o).specified?u:i;else if(f(r))n.setAttribute(t,r);else if(n.getAttribute)return n=n.getAttribute(t,2),null===n?i:n},prop:function(n,t,i){if(f(i))n[t]=i;else return n[t]},text:function(){function t(t,i){var r=n[t.nodeType];if(h(i))return r?t[r]:"";t[r]=i}var n=[];return 9>p?(n[1]="innerText",n[3]="nodeValue"):n[1]=n[3]="textContent",t.$dv="",t}(),val:function(n,t){if(h(t)){if("SELECT"===si(n)&&n.multiple){var i=[];return r(n.options,function(n){n.selected&&i.push(n.value||n.text)}),0===i.length?null:i}return n.value}n.value=t},html:function(n,t){if(h(t))return n.innerHTML;for(var i=0,r=n.childNodes;i<r.length;i++)ii(r[i]);n.innerHTML=t},empty:kf},function(n,t){w.prototype[t]=function(t,r){var u,f,e,o;if(n!==kf&&(2==n.length&&n!==hu&&n!==bf?t:r)===i){if(y(t)){for(u=0;u<this.length;u++)if(n===wf)n(this[u],t);else for(f in t)n(this[u],f,t[f]);return this}for(u=n.$dv,f=u===i?Math.min(this.length,1):this.length,e=0;e<f;e++)o=n(this[e],t,r),u=u?u+o:o;return u}for(u=0;u<this.length;u++)n(this[u],t,r);return this}});r({removeData:pf,dealoc:ii,on:function ic(n,i,u,e){if(f(e))throw bu("onargs");var o=et(n,"events"),s=et(n,"handle");o||et(n,"events",o={});s||et(n,"handle",s=ns(n,o));r(i.split(" "),function(i){var r=o[i],f;r||("mouseenter"==i||"mouseleave"==i?(f=t.body.contains||t.body.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&1===i.nodeType&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},o[i]=[],ic(n,{mouseleave:"mouseout",mouseenter:"mouseover"}[i],function(n){var t=n.relatedTarget;t&&(t===this||f(this,t))||s(n,i)})):(to(n,i,s),o[i]=[]),r=o[i]);r.push(u)})},off:yf,one:function(n,t,i){n=u(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,t){var i,u=n.parentNode;ii(n);r(new w(t),function(t){i?u.insertBefore(t,i.nextSibling):u.replaceChild(t,n);i=t})},children:function(n){var t=[];return r(n.childNodes,function(n){1===n.nodeType&&t.push(n)}),t},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){r(new w(t),function(t){1!==n.nodeType&&11!==n.nodeType||n.appendChild(t)})},prepend:function(n,t){if(1===n.nodeType){var i=n.firstChild;r(new w(t),function(t){n.insertBefore(t,i)})}},wrap:function(n,t){t=u(t)[0];var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)},remove:function(n){ii(n);var t=n.parentNode;t&&t.removeChild(n)},after:function(n,t){var i=n,u=n.parentNode;r(new w(t),function(n){u.insertBefore(n,i.nextSibling);i=n})},addClass:lr,removeClass:cr,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;h(r)&&(r=!hu(n,t));(r?lr:cr)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){if(n.nextElementSibling)return n.nextElementSibling;for(n=n.nextSibling;null!=n&&1!==n.nodeType;)n=n.nextSibling;return n},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:su,triggerHandler:function(n,t,i){t=(et(n,"events")||{})[t];i=i||[];var u=[{preventDefault:o,stopPropagation:o}];r(t,function(t){t.apply(n,u.concat(i))})}},function(n,t){w.prototype[t]=function(t,i,r){for(var e,o=0;o<this.length;o++)h(e)?(e=n(this[o],t,i,r),f(e)&&(e=u(e))):cu(e,n(this[o],t,i,r));return f(e)?e:this};w.prototype.bind=w.prototype.on;w.prototype.unbind=w.prototype.off});ki.prototype={put:function(n,t){this[ri(n)]=t},get:function(n){return this[ri(n)]},remove:function(n){var t=this[n=ri(n)];return delete this[n],t}};var rc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,uc=/,/,fc=/^\s*(_?)(\S+?)\1\s*$/,ec=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,rr=v("$injector"),oc=v("$animate"),sc=["$provide",function(n){this.$$selectors={};this.register=function(t,i){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw oc("notcsel",t);this.$$selectors[t.substr(1)]=r;n.factory(r,i)};this.classNameFilter=function(n){return 1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null),this.$$classNameFilter};this.$get=["$timeout","$$asyncCallback",function(n,t){return{enter:function(n,i,r,u){r?r.after(n):(i&&i[0]||(i=r.parent()),i.append(n));u&&t(u)},leave:function(n,i){n.remove();i&&t(i)},move:function(n,t,i,r){this.enter(n,t,i,r)},addClass:function(n,i,u){i=e(i)?i:s(i)?i.join(" "):"";r(n,function(n){lr(n,i)});u&&t(u)},removeClass:function(n,i,u){i=e(i)?i:s(i)?i.join(" "):"";r(n,function(n){cr(n,i)});u&&t(u)},setClass:function(n,i,u,f){r(n,function(n){lr(n,i);cr(n,u)});f&&t(f)},enabled:o}}]}],ft=v("$compile");te.$inject=["$provide","$$sanitizeUriProvider"];var hc=/^(x[\:\-_]|data[\:\-_])/i,io=v("$interpolate"),cc=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,lc={http:80,https:443,ftp:21},du=v("$location");ce.prototype=au.prototype=he.prototype={$$html5:!1,$$replace:!1,absUrl:vr("$$absUrl"),url:function(n,t){if(h(n))return this.$$url;var i=cc.exec(n);return i[1]&&this.path(decodeURIComponent(i[1])),(i[2]||i[1])&&this.search(i[3]||""),this.hash(i[5]||"",t),this},protocol:vr("$$protocol"),host:vr("$$host"),port:vr("$$port"),path:le("$$path",function(n){return"/"==n.charAt(0)?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(e(n))this.$$search=cf(n);else if(y(n))this.$$search=n;else throw du("isrcharg");break;default:h(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:le("$$hash",ni),replace:function(){return this.$$replace=!0,this}};var gt=v("$parse"),ro={},vt,ci={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:o,"+":function(n,t,r,u){return r=r(n,t),u=u(n,t),f(r)?f(u)?r+u:r:f(u)?u:i},"-":function(n,t,i,r){return i=i(n,t),r=r(n,t),(f(i)?i:0)-(f(r)?r:0)},"*":function(n,t,i,r){return i(n,t)*r(n,t)},"/":function(n,t,i,r){return i(n,t)/r(n,t)},"%":function(n,t,i,r){return i(n,t)%r(n,t)},"^":function(n,t,i,r){return i(n,t)^r(n,t)},"=":o,"===":function(n,t,i,r){return i(n,t)===r(n,t)},"!==":function(n,t,i,r){return i(n,t)!==r(n,t)},"==":function(n,t,i,r){return i(n,t)==r(n,t)},"!=":function(n,t,i,r){return i(n,t)!=r(n,t)},"<":function(n,t,i,r){return i(n,t)<r(n,t)},">":function(n,t,i,r){return i(n,t)>r(n,t)},"<=":function(n,t,i,r){return i(n,t)<=r(n,t)},">=":function(n,t,i,r){return i(n,t)>=r(n,t)},"&&":function(n,t,i,r){return i(n,t)&&r(n,t)},"||":function(n,t,i,r){return i(n,t)||r(n,t)},"&":function(n,t,i,r){return i(n,t)&r(n,t)},"|":function(n,t,i,r){return r(n,t)(n,t,i(n,t))},"!":function(n,t,i){return!i(n,t)}},ac={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},gu=function(n){this.options=n};gu.prototype={constructor:gu,lex:function(n){var t;for(this.text=n,this.index=0,this.ch=i,this.lastCh=":",this.tokens=[],n=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent(),this.was("{,")&&"{"===n[0]&&(t=this.tokens[this.tokens.length-1])&&(t.json=-1===t.text.indexOf("."));else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch,json:this.was(":[,")&&this.is("{[")||this.is("}]:,")}),this.is("{[")&&n.unshift(this.ch),this.is("}]")&&n.shift(),this.index++;else if(this.isWhitespace(this.ch)){this.index++;continue}else{var r=this.ch+this.peek(),u=r+this.peek(2),f=ci[this.ch],e=ci[r],o=ci[u];o?(this.tokens.push({index:this.index,text:u,fn:o}),this.index+=3):e?(this.tokens.push({index:this.index,text:r,fn:e}),this.index+=2):f?(this.tokens.push({index:this.index,text:this.ch,fn:f,json:this.was("[,:")&&this.is("+-")}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(n){return-1!==n.indexOf(this.ch)},was:function(n){return-1!==n.indexOf(this.lastCh)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdent:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=f(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw gt("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}n*=1;this.tokens.push({index:r,text:n,json:!0,fn:function(){return n}})},readIdent:function(){for(var o,e=this,n="",i=this.index,r,u,f,t;this.index<this.text.length;){if(t=this.text.charAt(this.index),"."===t||this.isIdent(t)||this.isNumber(t))"."===t&&(r=this.index),n+=t;else break;this.index++}if(r)for(u=this.index;u<this.text.length;){if(t=this.text.charAt(u),"("===t){f=n.substr(r-i+1);n=n.substr(0,r-i);this.index=u;break}if(this.isWhitespace(t))u++;else break}i={index:i,text:n};ci.hasOwnProperty(n)?(i.fn=ci[n],i.json=ci[n]):(o=ve(n,this.options,this.text),i.fn=l(function(n,t){return o(n,t)},{assign:function(t,i){return yr(t,n,i,e.text,e.options)}}));this.tokens.push(i);f&&(this.tokens.push({index:r,text:".",json:!1}),this.tokens.push({index:r+1,text:f,json:!1}))},readString:function(n){var f=this.index,t,u;this.index++;for(var i="",u=n,r=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,r)"u"===t?(t=this.text.substring(this.index+1,this.index+5),t.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+t+"]"),this.index+=4,i+=String.fromCharCode(parseInt(t,16))):i=(r=ac[t])?i+r:i+t,r=!1;else if("\\"===t)r=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,string:i,json:!0,fn:function(){return i}});return}i+=t}this.index++}this.throwError("Unterminated quote",f)}};li=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i};li.ZERO=function(){return 0};li.prototype={constructor:li,parse:function(n,t){this.text=n;this.json=t;this.tokens=this.lexer.lex(n);t&&(this.assignment=this.logicalOR,this.functionCall=this.fieldAccess=this.objectIndex=this.filterChain=function(){this.throwError("is not valid json",{text:n,index:0})});var i=t?this.primary():this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),i.literal=!!i.literal,i.constant=!!i.constant,i},primary:function(){var n,t,i;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():(t=this.expect(),(n=t.fn)||this.throwError("not a primary expression",t),t.json&&(n.constant=!0,n.literal=!0));t=this.expect("(","[",".");)"("===t.text?(n=this.functionCall(n,i),i=null):"["===t.text?(i=n,n=this.objectIndex(n)):"."===t.text?(i=n,n=this.fieldAccess(n)):this.throwError("IMPOSSIBLE");return n},throwError:function(n,t){throw gt("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},peekToken:function(){if(0===this.tokens.length)throw gt("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){if(0<this.tokens.length){var f=this.tokens[0],u=f.text;if(u===n||u===t||u===i||u===r||!(n||t||i||r))return f}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.json&&!n.json&&this.throwError("is not valid json",n),this.tokens.shift(),n):!1},consume:function(n){this.expect(n)||this.throwError("is unexpected, expecting ["+n+"]",this.peek())},unaryFn:function(n,t){return l(function(i,r){return n(i,r,t)},{constant:t.constant})},ternaryFn:function(n,t,i){return l(function(r,u){return n(r,u)?t(r,u):i(r,u)},{constant:n.constant&&t.constant&&i.constant})},binaryFn:function(n,t,i){return l(function(r,u){return t(r,u,n,i)},{constant:n.constant&&i.constant})},statements:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.filterChain()),!this.expect(";"))return 1===n.length?n[0]:function(t,i){for(var f,u,r=0;r<n.length;r++)u=n[r],u&&(f=u(t,i));return f}},filterChain:function(){for(var n=this.expression(),t;;)if(t=this.expect("|"))n=this.binaryFn(n,t.fn,this.filter());else return n},filter:function(){for(var i,t=this.expect(),r=this.$filter(t.text),n=[];;)if(t=this.expect(":"))n.push(this.expression());else return i=function(t,i,u){u=[u];for(var f=0;f<n.length;f++)u.push(n[f](t,i));return r.apply(t,u)},function(){return i}},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary(),i,t;return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),i=this.ternary(),function(t,r){return n.assign(t,i(t,r),r)}):n},ternary:function(){var n=this.logicalOR(),t,i;if(this.expect("?")){if(t=this.ternary(),i=this.expect(":"))return this.ternaryFn(n,t,this.ternary());this.throwError("expected :",i)}else return n},logicalOR:function(){for(var n=this.logicalAND(),t;;)if(t=this.expect("||"))n=this.binaryFn(n,t.fn,this.logicalAND());else return n},logicalAND:function(){var n=this.equality(),t;return(t=this.expect("&&"))&&(n=this.binaryFn(n,t.fn,this.logicalAND())),n},equality:function(){var n=this.relational(),t;return(t=this.expect("==","!=","===","!=="))&&(n=this.binaryFn(n,t.fn,this.equality())),n},relational:function(){var n=this.additive(),t;return(t=this.expect("<",">","<=",">="))&&(n=this.binaryFn(n,t.fn,this.relational())),n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n=this.binaryFn(n,t.fn,this.multiplicative());return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n=this.binaryFn(n,t.fn,this.unary());return n},unary:function(){var n;return this.expect("+")?this.primary():(n=this.expect("-"))?this.binaryFn(li.ZERO,n.fn,this.unary()):(n=this.expect("!"))?this.unaryFn(n.fn,this.unary()):this.primary()},fieldAccess:function(n){var t=this,i=this.expect().text,r=ve(i,this.options,this.text);return l(function(t,i,u){return r(u||n(t,i))},{assign:function(r,u,f){return yr(n(r,f),i,u,t.text,t.options)}})},objectIndex:function(n){var t=this,r=this.expression();return this.consume("]"),l(function(u,f){var e=n(u,f),s=r(u,f),o;return e?((e=gi(e[s],t.text))&&e.then&&t.options.unwrapPromises&&(o=e,"$$v"in e||(o.$$v=i,o.then(function(n){o.$$v=n})),e=e.$$v),e):i},{assign:function(i,u,f){var e=r(i,f);return gi(n(i,f),t.text)[e]=u}})},functionCall:function(n,t){var r=[],i;if(")"!==this.peekToken().text)do r.push(this.expression());while(this.expect(","));return this.consume(")"),i=this,function(u,f){for(var e=[],h=t?t(u,f):u,s=0;s<r.length;s++)e.push(r[s](u,f));return s=n(u,f,h)||o,gi(h,i.text),gi(s,i.text),e=s.apply?s.apply(h,e):s(e[0],e[1],e[2],e[3],e[4]),gi(e,i.text)}},arrayDeclaration:function(){var n=[],i=!0,t;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t=this.expression();n.push(t);t.constant||(i=!1)}while(this.expect(","));return this.consume("]"),l(function(t,i){for(var u=[],r=0;r<n.length;r++)u.push(n[r](t,i));return u},{literal:!0,constant:i})},object:function(){var t=[],r=!0,n,i;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n=this.expect();n=n.string||n.text;this.consume(":");i=this.expression();t.push({key:n,value:i});i.constant||(r=!1)}while(this.expect(","));return this.consume("}"),l(function(n,i){for(var f,u={},r=0;r<t.length;r++)f=t[r],u[f.key]=f.value(n,i);return u},{literal:!0,constant:r})}};var nf={},yt=v("$sce"),rt={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},d=t.createElement("a"),uo=kt(n.location.href,!0);pe.$inject=["$provide"];we.$inject=["$locale"];be.$inject=["$locale"];var fo=".",vc={yyyy:k("FullYear",4),yy:k("FullYear",2,0,!0),y:k("FullYear",1),MMMM:pr("Month"),MMM:pr("Month",!0),MM:k("Month",2,1),M:k("Month",1,1),dd:k("Date",2),d:k("Date",1),HH:k("Hours",2),H:k("Hours",1),hh:k("Hours",2,-12),h:k("Hours",1,-12),mm:k("Minutes",2),m:k("Minutes",1),ss:k("Seconds",2),s:k("Seconds",1),sss:k("Milliseconds",3),EEEE:pr("Day"),EEE:pr("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n){return n=-1*n.getTimezoneOffset(),(0<=n?"+":"")+(yu(Math[0<n?"floor":"ceil"](n/60),2)+yu(Math.abs(n%60),2))}},yc=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,pc=/^\-?\d+$/;de.$inject=["$locale"];eo=nt(a);oo=nt(ui);ge.$inject=["$parse"];so=nt({restrict:"E",compile:function(n,i){return 8>=p&&(i.href||i.name||i.$set("href",""),n.append(t.createComment("IE fix"))),!i.href&&!i.xlinkHref&&!i.name?function(n,t){var i="[object SVGAnimatedString]"===ei.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}:void 0}});dr={};r(kr,function(n,t){if("multiple"!=n){var i=ot("ng-"+t);dr[i]=function(){return{priority:100,link:function(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}}}}});r(["src","srcset","href"],function(n){var t=ot("ng-"+n);dr[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===ei.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(n){n&&(u.$set(f,n),p&&e&&r.prop(e,u[f]))})}}}});ur={$addControl:o,$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o};no.$inject=["$element","$attrs","$scope","$animate"];var ho=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:no,compile:function(){return{pre:function(n,r,u,f){var o,s,e;if(!u.action){o=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1};to(r[0],"submit",o);r.on("$destroy",function(){t(function(){wu(r[0],"submit",o)},0,!1)})}if(s=r.parent().controller("form"),e=u.name||u.ngForm,e&&yr(n,e,f,e),s)r.on("$destroy",function(){s.$removeControl(f);e&&yr(n,e,i,e);l(f,ur)})}}}}}]},wc=ho(),bc=ho(!0),kc=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,dc=/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i,gc=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,co={text:wr,number:function(n,t,r,u,f,e){wr(n,t,r,u,f,e);u.$parsers.push(function(n){var t=u.$isEmpty(n);return t||gc.test(n)?(u.$setValidity("number",!0),""===n?null:t?n:parseFloat(n)):(u.$setValidity("number",!1),i)});ph(u,"number",t);u.$formatters.push(function(n){return u.$isEmpty(n)?"":""+n});r.min&&(n=function(n){var t=parseFloat(r.min);return ht(u,"min",u.$isEmpty(n)||n>=t,n)},u.$parsers.push(n),u.$formatters.push(n));r.max&&(n=function(n){var t=parseFloat(r.max);return ht(u,"max",u.$isEmpty(n)||n<=t,n)},u.$parsers.push(n),u.$formatters.push(n));u.$formatters.push(function(n){return ht(u,"number",u.$isEmpty(n)||ru(n),n)})},url:function(n,t,i,r,u,f){wr(n,t,i,r,u,f);n=function(n){return ht(r,"url",r.$isEmpty(n)||kc.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},email:function(n,t,i,r,u,f){wr(n,t,i,r,u,f);n=function(n){return ht(r,"email",r.$isEmpty(n)||dc.test(n),n)};r.$formatters.push(n);r.$parsers.push(n)},radio:function(n,t,i,r){h(i.name)&&t.attr("name",fr());t.on("click",function(){t[0].checked&&n.$apply(function(){r.$setViewValue(i.value)})});r.$render=function(){t[0].checked=i.value==r.$viewValue};i.$observe("value",r.$render)},checkbox:function(n,t,i,r){var u=i.ngTrueValue,f=i.ngFalseValue;e(u)||(u=!0);e(f)||(f=!1);t.on("click",function(){n.$apply(function(){r.$setViewValue(t[0].checked)})});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n!==u};r.$formatters.push(function(n){return n===u});r.$parsers.push(function(n){return n?u:f})},hidden:o,button:o,submit:o,reset:o,file:o},lo=["$browser","$sniffer",function(n,t){return{restrict:"E",require:"?ngModel",link:function(i,r,u,f){f&&(co[a(u.type)]||co.text)(i,r,u,f,t,n)}}}],gr="ng-valid",nu="ng-invalid",ai="ng-pristine",tu="ng-dirty",nl=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(n,t,i,u,f,e){function c(n,t){t=t?"-"+hr(t,"-"):"";e.removeClass(u,(n?nu:gr)+t);e.addClass(u,(n?gr:nu)+t)}var l,a,s;if(this.$modelValue=this.$viewValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=i.name,l=f(i.ngModel),a=l.assign,!a)throw v("ngModel")("nonassign",i.ngModel,ut(u));this.$render=o;this.$isEmpty=function(n){return h(n)||""===n||null===n||n!==n};var w=u.inheritedData("$formController")||ur,y=0,p=this.$error={};u.addClass(ai);c(!0);this.$setValidity=function(n,t){p[n]!==!t&&(t?(p[n]&&y--,y||(c(!0),this.$valid=!0,this.$invalid=!1)):(c(!1),this.$invalid=!0,this.$valid=!1,y++),p[n]=!t,c(t,n),w.$setValidity(n,t,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(u,tu);e.addClass(u,ai)};this.$setViewValue=function(i){this.$viewValue=i;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,e.removeClass(u,ai),e.addClass(u,tu),w.$setDirty());r(this.$parsers,function(n){i=n(i)});this.$modelValue!==i&&(this.$modelValue=i,a(n,i),r(this.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}}))};s=this;n.$watch(function(){var t=l(n),i,r;if(s.$modelValue!==t){for(i=s.$formatters,r=i.length,s.$modelValue=t;r--;)t=i[r](t);s.$viewValue!==t&&(s.$viewValue=t,s.$render())}return t})}],tl=function(){return{require:["ngModel","^?form"],controller:nl,link:function(n,t,i,r){var u=r[0],f=r[1]||ur;f.$addControl(u);n.$on("$destroy",function(){f.$removeControl(u)})}}},il=nt({require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),ao=function(){return{require:"?ngModel",link:function(n,t,i,r){if(r){i.required=!0;var u=function(n){if(i.required&&r.$isEmpty(n))r.$setValidity("required",!1);else return r.$setValidity("required",!0),n};r.$formatters.push(u);r.$parsers.unshift(u);i.$observe("required",function(){u(r.$viewValue)})}}}},rl=function(){return{require:"ngModel",link:function(n,t,u,f){var e=(n=/\/(.*)\//.exec(u.ngList))&&RegExp(n[1])||u.ngList||",";f.$parsers.push(function(n){if(!h(n)){var t=[];return n&&r(n.split(e),function(n){n&&t.push(g(n))}),t}});f.$formatters.push(function(n){return s(n)?n.join(", "):i});f.$isEmpty=function(n){return!n||!n.length}}}},ul=/^(true|false|\d+)$/,fl=function(){return{priority:100,compile:function(n,t){return ul.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},el=at(function(n,t,r){t.addClass("ng-binding").data("$binding",r.ngBind);n.$watch(r.ngBind,function(n){t.text(n==i?"":n)})}),ol=["$interpolate",function(n){return function(t,i,r){t=n(i.attr(r.$attr.ngBindTemplate));i.addClass("ng-binding").data("$binding",t);r.$observe("ngBindTemplate",function(n){i.text(n)})}}],sl=["$sce","$parse",function(n,t){return function(i,r,u){r.addClass("ng-binding").data("$binding",u.ngBindHtml);var f=t(u.ngBindHtml);i.$watch(function(){return(f(i)||"").toString()},function(){r.html(n.getTrustedHtml(f(i))||"")})}}],hl=pu("",!0),cl=pu("Odd",0),ll=pu("Even",1),al=at({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),vl=[function(){return{scope:!0,controller:"@",priority:500}}],vo={};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=ot("ng-"+n);vo[t]=["$parse",function(i){return{compile:function(r,u){var f=i(u[t]);return function(t,i){i.on(a(n),function(n){t.$apply(function(){f(t,{$event:n})})})}}}}]});var yl=["$animate",function(n){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,o,s;i.$watch(u.ngIf,function(f){pi(f)?o||(o=i.$new(),e(o,function(i){i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)})):(s&&(s.remove(),s=null),o&&(o.$destroy(),o=null),h&&(s=eu(h.clone),n.leave(s,function(){s=null}),h=null))})}}}],pl=["$http","$templateCache","$anchorScroll","$animate","$sce",function(n,t,i,r,u){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:oi.noop,compile:function(e,o){var h=o.ngInclude||o.src,c=o.onload||"",s=o.autoscroll;return function(e,o,l,a,v){var b=0,y,p,w,k=function(){p&&(p.remove(),p=null);y&&(y.$destroy(),y=null);w&&(r.leave(w,function(){p=null}),p=w,w=null)};e.$watch(u.parseAsResourceUrl(h),function(u){var l=function(){f(s)&&(!s||e.$eval(s))&&i()},h=++b;u?(n.get(u,{cache:t}).success(function(n){if(h===b){var t=e.$new();a.template=n;n=v(t,function(n){k();r.enter(n,null,o,l)});y=t;w=n;y.$emit("$includeContentLoaded");e.$eval(c)}}).error(function(){h===b&&k()}),e.$emit("$includeContentRequested")):(k(),a.template=null)})}}}}],wl=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,i,r,u){i.html(u.template);n(i.contents())(t)}}}],bl=at({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),kl=at({terminal:!0,priority:1e3}),dl=["$locale","$interpolate",function(n,t){var i=/{}/g;return{restrict:"EA",link:function(u,f,e){var s=e.count,l=e.$attr.when&&f.attr(e.$attr.when),h=e.offset||0,o=u.$eval(l)||{},c={},v=t.startSymbol(),y=t.endSymbol(),p=/^when(Minus)?(.+)$/;r(e,function(n,t){p.test(t)&&(o[a(t.replace("when","").replace("Minus","-"))]=f.attr(e.$attr[t]))});r(o,function(n,r){c[r]=t(n.replace(i,v+s+"-"+h+y))});u.$watch(function(){var t=parseFloat(u.$eval(s));return isNaN(t)?"":(t in o||(t=n.pluralCat(t-h)),c[t](u,f,!0))},function(n){f.text(n)})}}}],gl=["$parse","$animate",function(n,i){var f=v("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(e,o,s,h,c){var y=s.ngRepeat,l=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),k,w,d,g,b,v,p={$id:ri},a;if(!l)throw f("iexp",y);if(s=l[1],h=l[2],(l=l[3])?(k=n(l),w=function(n,t,i){return v&&(p[v]=n),p[b]=t,p.$index=i,k(e,p)}):(d=function(n,t){return ri(t)},g=function(n){return n}),l=s.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/),!l)throw f("iidexp",s);b=l[3]||l[1];v=l[2];a={};e.$watchCollection(h,function(n){var s,ft,rt=o[0],tt,ut={},et,l,k,p,nt,h,it=[];if(iu(n))nt=n,tt=w||d;else{tt=w||g;nt=[];for(k in n)n.hasOwnProperty(k)&&"$"!=k.charAt(0)&&nt.push(k);nt.sort()}for(et=nt.length,ft=it.length=nt.length,s=0;s<ft;s++)if(k=n===nt?s:nt[s],p=n[k],p=tt(k,p,s),bt(p,"`track by` id"),a.hasOwnProperty(p))h=a[p],delete a[p],ut[p]=h,it[s]=h;else{if(ut.hasOwnProperty(p))throw r(it,function(n){n&&n.scope&&(a[n.id]=n)}),f("dupes",y,p);it[s]={id:p};ut[p]=!1}for(k in a)a.hasOwnProperty(k)&&(h=a[k],s=eu(h.clone),i.leave(s),r(s,function(n){n.$$NG_REMOVED=!0}),h.scope.$destroy());for(s=0,ft=nt.length;s<ft;s++){if(k=n===nt?s:nt[s],p=n[k],h=it[s],it[s-1]&&(rt=it[s-1].clone[it[s-1].clone.length-1]),h.scope){l=h.scope;tt=rt;do tt=tt.nextSibling;while(tt&&tt.$$NG_REMOVED);h.clone[0]!=tt&&i.move(eu(h.clone),null,u(rt));rt=h.clone[h.clone.length-1]}else l=e.$new();l[b]=p;v&&(l[v]=k);l.$index=s;l.$first=0===s;l.$last=s===et-1;l.$middle=!(l.$first||l.$last);l.$odd=!(l.$even=0==(s&1));h.scope||c(l,function(n){n[n.length++]=t.createComment(" end ngRepeat: "+y+" ");i.enter(n,null,u(rt));rt=n;h.scope=l;h.clone=n;ut[h.id]=h})}a=ut})}}}],na=["$animate",function(n){return function(t,i,r){t.$watch(r.ngShow,function(t){n[pi(t)?"removeClass":"addClass"](i,"ng-hide")})}}],ta=["$animate",function(n){return function(t,i,r){t.$watch(r.ngHide,function(t){n[pi(t)?"addClass":"removeClass"](i,"ng-hide")})}}],ia=at(function(n,t,i){n.$watch(i.ngStyle,function(n,i){i&&n!==i&&r(i,function(n,i){t.css(i,"")});n&&t.css(n)},!0)}),ra=["$animate",function(n){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,i,u,f){var h,s,e,o=[];t.$watch(u.ngSwitch||u.on,function(i){var c,l=o.length,a;if(0<l){if(e){for(c=0;c<l;c++)e[c].remove();e=null}for(e=[],c=0;c<l;c++)a=s[c],o[c].$destroy(),e[c]=a,n.leave(a,function(){e.splice(c,1);0===e.length&&(e=null)})}s=[];o=[];(h=f.cases["!"+i]||f.cases["?"])&&(t.$eval(u.change),r(h,function(i){var r=t.$new();o.push(r);i.transclude(r,function(t){var r=i.element;s.push(t);n.enter(t,r.parent(),r)})}))})}}}],ua=at({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),fa=at({transclude:"element",priority:800,require:"^ngSwitch",link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),ea=at({link:function(n,t,i,r,u){if(!u)throw v("ngTransclude")("orphan",ut(t));u(function(n){t.empty();t.append(n)})}}),oa=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],sa=v("ngOptions"),ha=nt({terminal:!0}),ca=["$compile","$parse",function(n,e){var c=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\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]+?))?$/,l={$setViewValue:o};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,i){var r=this,f={},e=l,u;r.databound=i.ngModel;r.init=function(n,t,i){e=n;u=i};r.addOption=function(t){bt(t,'"option value"');f[t]=!0;e.$viewValue==t&&(n.val(t),u.parent()&&u.remove())};r.removeOption=function(n){this.hasOption(n)&&(delete f[n],e.$viewValue==n&&this.renderUnknownOption(n))};r.renderUnknownOption=function(t){t="? "+ri(t)+" ?";u.val(t);n.prepend(u);n.val(t);u.prop("selected",!0)};r.hasOption=function(n){return f.hasOwnProperty(n)};t.$on("$destroy",function(){r.renderUnknownOption=o})}],link:function(o,l,a,v){function rt(n,t,i,r){i.$render=function(){var n=i.$viewValue;r.hasOption(n)?(w.parent()&&w.remove(),t.val(n),""===n&&g.prop("selected",!0)):h(n)&&g?t.val(""):r.renderUnknownOption(n)};t.on("change",function(){n.$apply(function(){w.parent()&&w.remove();i.$setViewValue(t.val())})})}function ft(n,t,i){var u;i.$render=function(){var n=new ki(i.$viewValue);r(t.find("option"),function(t){t.selected=f(n.get(t.value))})};n.$watch(function(){pt(u,i.$viewValue)||(u=tt(i.$viewValue),i.$render())});t.on("change",function(){n.$apply(function(){var n=[];r(t.find("option"),function(t){t.selected&&n.push(t.value)});i.$setViewValue(n)})})}function et(t,r,u){function b(){var ft={"":[]},st=[""],n,d,i,c,it,rt,et,e,h,b,ut;if(c=u.$modelValue,it=k(t)||[],rt=a?tf(it):it,e={},i=!1,p)if(o&&s(c))for(i=new ki([]),h=0;h<c.length;h++)e[l]=c[h],i.put(o(t,e),c[h]);else i=new ki(c);for(h=0;et=rt.length,h<et;h++){if(d=h,a){if(d=rt[h],"$"===d.charAt(0))continue;e[a]=d}e[l]=it[d];n=tt(t,e)||"";(d=ft[n])||(d=ft[n]=[],st.push(n));p?n=f(i.remove(o?o(t,e):w(t,e))):(o?(n={},n[l]=c,n=o(t,n)===o(t,e)):n=c===w(t,e),i=i||n);b=g(t,e);b=f(b)?b:"";d.push({id:o?o(t,e):a?rt[h]:h,label:b,selected:n})}for(p||(y||null===c?ft[""].unshift({id:"",label:"",selected:!i}):i||ft[""].unshift({id:"?",label:"",selected:!0})),e=0,rt=st.length;e<rt;e++){for(n=st[e],d=ft[n],v.length<=e?(c={element:ot.clone().attr("label",n),label:d.label},it=[c],v.push(it),r.append(c.element)):(it=v[e],c=it[0],c.label!=n&&c.element.attr("label",c.label=n)),b=null,h=0,et=d.length;h<et;h++)i=d[h],(n=it[h+1])?(b=n.element,n.label!==i.label&&b.text(n.label=i.label),n.id!==i.id&&b.val(n.id=i.id),b[0].selected!==i.selected&&b.prop("selected",n.selected=i.selected)):(""===i.id&&y?ut=y:(ut=nt.clone()).val(i.id).attr("selected",i.selected).text(i.label),it.push({element:ut,label:i.label,id:i.id,selected:i.selected}),b?b.after(ut):c.element.append(ut),b=ut);for(h++;it.length>h;)it.pop().element.remove()}for(;v.length>e;)v.pop()[0].element.remove()}var h;if(!(h=d.match(c)))throw sa("iexp",d,ut(r));var g=e(h[2]||h[1]),l=h[4]||h[6],a=h[5],tt=e(h[3]||""),w=e(h[2]?h[1]:l),k=e(h[7]),o=h[8]?e(h[8]):null,v=[[{element:r,label:""}]];y&&(n(y)(t),y.removeClass("ng-scope"),y.remove());r.empty();r.on("change",function(){t.$apply(function(){var b,h=k(t)||[],f={},n,s,c,y,d,g,e;if(p){for(s=[],y=0,g=v.length;y<g;y++)for(b=v[y],c=1,d=b.length;c<d;c++)if((n=b[c].element)[0].selected){if(n=n.val(),a&&(f[a]=n),o)for(e=0;e<h.length&&(f[l]=h[e],o(t,f)!=n);e++);else f[l]=h[n];s.push(w(t,f))}}else if(n=r.val(),"?"==n)s=i;else if(""===n)s=null;else if(o){for(e=0;e<h.length;e++)if(f[l]=h[e],o(t,f)==n){s=w(t,f);break}}else f[l]=h[n],a&&(f[a]=n),s=w(t,f);u.$setViewValue(s)})});u.$render=b;t.$watch(b)}var k,b,it;if(v[1]){k=v[0];v=v[1];var p=a.multiple,d=a.ngOptions,y=!1,g,nt=u(t.createElement("option")),ot=u(t.createElement("optgroup")),w=nt.clone();for(a=0,b=l.children(),it=b.length;a<it;a++)if(""===b[a].value){g=y=b.eq(a);break}k.init(v,y,w);p&&(v.$isEmpty=function(n){return!n||0===n.length});d?et(o,l,v):p?ft(o,l,v):rt(o,l,v,k)}}}}],la=["$interpolate",function(n){var t={addOption:o,removeOption:o};return{restrict:"E",priority:100,compile:function(i,r){if(h(r.value)){var u=n(i.text(),!0);u||r.$set("value",i.text())}return function(n,i,r){var e=i.parent(),f=e.data("$selectController")||e.parent().data("$selectController");f&&f.databound?i.prop("selected",!1):f=t;u?n.$watch(u,function(n,t){r.$set("value",n);n!==t&&f.removeOption(t);f.addOption(n)}):f.addOption(r.value);i.on("$destroy",function(){f.removeOption(r.value)})}}}}],aa=nt({restrict:"E",terminal:!0});(fi=n.jQuery)?(u=fi,l(fi.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData}),ou("remove",!0,!0,!1),ou("empty",!1,!1,!1),ou("html",!1,!1,!0)):u=w;oi.element=u,function(t){l(t,{bootstrap:af,copy:tt,extend:l,equals:pt,element:u,forEach:r,injector:ne,noop:o,bind:sr,toJson:lt,fromJson:sf,identity:ni,isUndefined:h,isDefined:f,isString:e,isFunction:c,isObject:y,isNumber:ru,isElement:po,isArray:s,version:dh,isDate:vi,lowercase:a,uppercase:ui,callbacks:{counter:0},$$minErr:v,$$csp:of});tr=go(n);try{tr("ngLocale")}catch(i){tr("ngLocale",[]).provider("$locale",ws)}tr("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:fh});n.provider("$compile",te).directive({a:so,input:lo,textarea:lo,form:wc,script:oa,select:ca,style:aa,option:la,ngBind:el,ngBindHtml:sl,ngBindTemplate:ol,ngClass:hl,ngClassEven:ll,ngClassOdd:cl,ngCloak:al,ngController:vl,ngForm:bc,ngHide:ta,ngIf:yl,ngInclude:pl,ngInit:bl,ngNonBindable:kl,ngPluralize:dl,ngRepeat:gl,ngShow:na,ngStyle:ia,ngSwitch:ra,ngSwitchWhen:ua,ngSwitchDefault:fa,ngOptions:ha,ngTransclude:ea,ngModel:tl,ngList:rl,ngChange:il,required:ao,ngRequired:ao,ngValue:fl}).directive({ngInclude:wl}).directive(dr).directive(vo);n.provider({$anchorScroll:ts,$animate:sc,$browser:us,$cacheFactory:fs,$controller:os,$document:ss,$exceptionHandler:hs,$filter:pe,$interpolate:ys,$interval:ps,$http:cs,$httpBackend:as,$location:bs,$log:ks,$parse:nh,$rootScope:uh,$q:th,$sce:sh,$sceDelegate:oh,$sniffer:hh,$templateCache:es,$timeout:ch,$window:lh,$$rAF:rh,$$asyncCallback:is})}])}(oi);u(t).ready(function(){ko(t,af)})})(window,document);angular.$$csp()||angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}<\/style>'),function(n,t){"use strict";function i(n,i,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(u,f,e,o,s){function v(){l&&(l.remove(),l=null);h&&(h.$destroy(),h=null);c&&(r.leave(c,function(){l=null}),l=c,c=null)}function y(){var e=n.current&&n.current.locals,o;t.isDefined(e&&e.$template)?(e=u.$new(),o=n.current,c=s(e,function(n){r.enter(n,null,c||f,function(){t.isDefined(a)&&(!a||u.$eval(a))&&i()});v()}),h=o.scope=e,h.$emit("$viewContentLoaded"),h.$eval(p)):v()}var h,c,l,a=e.autoscroll,p=e.onload||"";u.$on("$routeChangeSuccess",y);y()}}}function r(n,t,i){return{restrict:"ECA",priority:-400,link:function(r,u){var e=i.current,f=e.locals,o;u.html(f.$template);o=n(u.contents());e.controller&&(f.$scope=r,f=t(e.controller,f),e.controllerAs&&(r[e.controllerAs]=f),u.data("$ngControllerController",f),u.children().data("$ngControllerController",f));o(r)}}}n=t.module("ngRoute",["ng"]).provider("$route",function(){function i(n,i){return t.extend(new(t.extend(function(){},{prototype:n})),i)}function r(n,t){var r=t.caseInsensitiveMatch,i={originalPath:n,regexp:n},u=i.keys=[];return n=n.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(n,t,i,r){return n="?"===r?r:null,r="*"===r?r:null,u.push({name:i,optional:!!n}),t=t||"",""+(n?"":t)+"(?:"+(n?t:"")+(r&&"(.+?)"||"([^/]+)")+(n||"")+")"+(n||"")}).replace(/([\/$\*])/g,"\\$1"),i.regexp=RegExp("^"+n+"$",r?"i":""),i}var n={};this.when=function(i,u){if(n[i]=t.extend({reloadOnSearch:!0},u,i&&r(i,u)),i){var f="/"==i[i.length-1]?i.substr(0,i.length-1):i+"/";n[f]=t.extend({redirectTo:i},r(f,u))}return this};this.otherwise=function(n){return this.when(null,n),this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache","$sce",function(r,u,f,e,o,s,h,c){function v(){var n=y(),i=l.current;n&&i&&n.$$route===i.$$route&&t.equals(n.pathParams,i.pathParams)&&!n.reloadOnSearch&&!a?(i.params=n.params,t.copy(i.params,f),r.$broadcast("$routeUpdate",i)):(n||i)&&(a=!1,r.$broadcast("$routeChangeStart",n,i),(l.current=n)&&n.redirectTo&&(t.isString(n.redirectTo)?u.path(p(n.redirectTo,n.params)).search(n.params).replace():u.url(n.redirectTo(n.pathParams,u.path(),u.search())).replace()),e.when(n).then(function(){if(n){var u=t.extend({},n.resolve),r,i;return t.forEach(u,function(n,i){u[i]=t.isString(n)?o.get(n):o.invoke(n)}),t.isDefined(r=n.template)?t.isFunction(r)&&(r=r(n.params)):t.isDefined(i=n.templateUrl)&&(t.isFunction(i)&&(i=i(n.params)),i=c.getTrustedResourceUrl(i),t.isDefined(i)&&(n.loadedTemplateUrl=i,r=s.get(i,{cache:h}).then(function(n){return n.data}))),t.isDefined(r)&&(u.$template=r),e.all(u)}}).then(function(u){n==l.current&&(n&&(n.locals=u,t.copy(n.params,f)),r.$broadcast("$routeChangeSuccess",n,i))},function(t){n==l.current&&r.$broadcast("$routeChangeError",n,i,t)}))}function y(){var f,r;return t.forEach(n,function(n){var e,o,h,s,a,c,l;if(e=!r){if(o=u.path(),e=n.keys,h={},n.regexp)if(o=n.regexp.exec(o)){for(s=1,a=o.length;s<a;++s)c=e[s-1],l="string"==typeof o[s]?decodeURIComponent(o[s]):o[s],c&&l&&(h[c.name]=l);e=h}else e=null;else e=null;e=f=e}e&&(r=i(n,{params:t.extend({},u.search(),f),pathParams:f}),r.$$route=n)}),r||n[null]&&i(n[null],{params:{},pathParams:{}})}function p(n,i){var r=[];return t.forEach((n||"").split(":"),function(n,t){if(0===t)r.push(n);else{var u=n.match(/(\w+)(.*)/),f=u[1];r.push(i[f]);r.push(u[2]||"");delete i[f]}}),r.join("")}var a=!1,l={routes:n,reload:function(){a=!0;r.$evalAsync(v)}};return r.$on("$locationChangeSuccess",v),l}]});n.provider("$routeParams",function(){this.$get=function(){return{}}});n.directive("ngView",i);n.directive("ngView",r);i.$inject=["$route","$anchorScroll","$animate"];r.$inject=["$compile","$controller","$route"]}(window,window.angular),function(n,t,i){"use strict";function k(n){var i=[];return o(i,t.noop).chars(n),i.join("")}function r(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function d(n,i){function b(n,r,e,s){if(r=t.lowercase(r),v[r])for(;u.last()&&y[u.last()];)o("",u.last());a[r]&&u.last()==r&&o("",r);(s=l[r]||!!s)||u.push(r);var h={};e.replace(nt,function(n,t,i,r,u){h[t]=f(i||r||u||"")});i.start&&i.start(r,h,s)}function o(n,r){var f=0,e;if(r=t.lowercase(r))for(f=u.length-1;0<=f&&u[f]!=r;f--);if(0<=f){for(e=u.length-1;e>=f;e--)i.end&&i.end(u[e]);u.length=f}}var r,e,u=[],w=n;for(u.last=function(){return u[u.length-1]};n;){if(e=!0,u.last()&&p[u.last()]?(n=n.replace(RegExp("(.*)<\\s*\\/\\s*"+u.last()+"[^>]*>","i"),function(n,t){return t=t.replace(rt,"$1").replace(ut,"$1"),i.chars&&i.chars(f(t)),""}),o("",u.last())):(0===n.indexOf("<!--")?(r=n.indexOf("--",4),0<=r&&n.lastIndexOf("-->",r)===r&&(i.comment&&i.comment(n.substring(4,r)),n=n.substring(r+3),e=!1)):c.test(n)?(r=n.match(c))&&(n=n.replace(r[0],""),e=!1):it.test(n)?(r=n.match(h))&&(n=n.substring(r[0].length),r[0].replace(h,o),e=!1):tt.test(n)&&(r=n.match(s))&&(n=n.substring(r[0].length),r[0].replace(s,b),e=!1),e&&(r=n.indexOf("<"),e=0>r?n:n.substring(0,r),n=0>r?"":n.substring(r),i.chars&&i.chars(f(e)))),n==w)throw g("badparse",n);w=n}o()}function f(n){var t,i;return n?(t=ot.exec(n),n=t[1],i=t[3],(t=t[2])&&(u.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in u?u.textContent:u.innerText),n+t+i):""}function e(n){return n.replace(/&/g,"&amp;").replace(ft,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o(n,i){var u=!1,r=t.bind(n,n.push);return{start:function(n,f,o){n=t.lowercase(n);!u&&p[n]&&(u=n);u||!0!==w[n]||(r("<"),r(n),t.forEach(f,function(u,f){var o=t.lowercase(f),s="img"===n&&"src"===o||"background"===o;!0===et[o]&&(!0!==b[o]||i(u,s))&&(r(" "),r(f),r('="'),r(e(u)),r('"'))}),r(o?"/>":">"))},end:function(n){n=t.lowercase(n);u||!0!==w[n]||(r("<\/"),r(n),r(">"));n==u&&(u=!1)},chars:function(n){u||r(e(n))}}}var g=t.$$minErr("$sanitize"),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,h=/^<\s*\/\s*([\w:-]+)[^>]*>/,nt=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,tt=/^</,it=/^<\s*\//,rt=/\x3c!--(.*?)--\x3e/g,c=/<!DOCTYPE([^>]*?)>/i,ut=/<!\[CDATA\[(.*?)]]\x3e/g,ft=/([^\#-~| |!])/g,l=r("area,br,col,hr,img,wbr");n=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");i=r("rp,rt");var a=t.extend({},i,n),v=t.extend({},n,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),y=t.extend({},i,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),p=r("script,style"),w=t.extend({},l,v,y,a),b=r("background,cite,href,longdesc,src,usemap"),et=t.extend({},b,r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width")),u=document.createElement("pre"),ot=/^(\s*)([\s\S]*?)(\s*)$/;t.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(n){return function(t){var i=[];return d(t,o(i,function(t,i){return!/^unsafe/.test(n(t,i))})),i.join("")}}]});t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>]/,r=/^mailto:/;return function(u,f){function c(n){n&&e.push(k(n))}function a(n,i){e.push("<a ");t.isDefined(f)&&(e.push('target="'),e.push(f),e.push('" '));e.push('href="');e.push(n);e.push('">');c(i);e.push("<\/a>")}if(!u)return u;for(var o,s=u,e=[],h,l;o=s.match(i);)h=o[0],o[2]==o[3]&&(h="mailto:"+h),l=o.index,c(s.substr(0,l)),a(h,o[0].replace(r,"")),s=s.substring(l+o[0].length);return c(s),n(e.join(""))}}])}(window,window.angular),function(n,t){"use strict";if(typeof define=="function"&&define.amd)define(["angular"],function(n){return t(n)});else return t(n)}(angular||null,function(n){"use strict";var t=n.module("ngTable",[]),i;return t.factory("ngTableParams",["$q","$log",function(t,i){var r=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};return function(u,f){var h=this,s=function(){e.debugMode&&i.debug&&i.debug.apply(this,arguments)},o,e;return this.data=[],this.parameters=function(t,i){var u,e,l,f,h,v,a,c;if(i=i||!1,n.isDefined(t)){for(u in t)if(e=t[u],i&&u.indexOf("[")>=0){for(l=u.split(/\[(.*)\]/).reverse(),f="",h=0,v=l.length;h<v;h++)a=l[h],a!==""&&(c=e,e={},e[f=a]=r(c)?parseFloat(c):c);f==="sorting"&&(o[f]={});o[f]=n.extend(o[f]||{},e[f])}else o[u]=r(t[u])?parseFloat(t[u]):t[u];return s("ngTable: set parameters",o),this}return o},this.settings=function(t){return n.isDefined(t)?(n.isArray(t.data)&&(t.total=t.data.length),e=n.extend(e,t),s("ngTable: set settings",e),this):e},this.page=function(t){return n.isDefined(t)?this.parameters({page:t}):o.page},this.total=function(t){return n.isDefined(t)?this.settings({total:t}):e.total},this.count=function(t){return n.isDefined(t)?this.parameters({count:t,page:1}):o.count},this.filter=function(t){return n.isDefined(t)?this.parameters({filter:t}):o.filter},this.sorting=function(t){if(arguments.length==2){var i={};return i[t]=arguments[1],this.parameters({sorting:i}),this}return n.isDefined(t)?this.parameters({sorting:t}):o.sorting},this.isSortBy=function(t,i){return n.isDefined(o.sorting[t])&&o.sorting[t]==i},this.orderBy=function(){var n=[];for(var t in o.sorting)n.push((o.sorting[t]==="asc"?"+":"-")+t);return n},this.getData=function(t,i){n.isArray(this.data)&&n.isObject(i)?t.resolve(this.data.slice((i.page()-1)*i.count(),i.page()*i.count())):t.resolve([])},this.getGroups=function(i,r){var u=t.defer();u.promise.then(function(t){var u={},f,e;n.forEach(t,function(t){var i=n.isFunction(r)?r(t):t[r];u[i]=u[i]||{data:[]};u[i].value=i;u[i].data.push(t)});f=[];for(e in u)f.push(u[e]);s("ngTable: refresh groups",f);i.resolve(f)});this.getData(u,h)},this.generatePagesArray=function(n,t,i){var h,o,s,e,u,f,r;if(h=11,f=[],u=Math.ceil(t/i),u>1){for(f.push({type:"prev",number:Math.max(1,n-1),active:n>1}),f.push({type:"first",number:1,active:n>1}),s=Math.round((h-5)/2),e=Math.max(2,n-s),o=Math.min(u-1,n+s*2-(n-e)),e=Math.max(2,e-(s*2-(o-e))),r=e;r<=o;)r===e&&r!==2||r===o&&r!==u-1?f.push({type:"more",active:!1}):f.push({type:"page",number:r,active:n!==r}),r++;f.push({type:"last",number:u,active:n!==u});f.push({type:"next",number:Math.min(u,n+1),active:n<u})}return f},this.url=function(t){var r,f,i,e,u,s;t=t||!1;r=t?[]:{};for(f in o)if(o.hasOwnProperty(f))if(i=o[f],e=encodeURIComponent(f),typeof i=="object")for(u in i)n.isUndefined(i[u])||i[u]===""||(s=e+"["+encodeURIComponent(u)+"]",t?r.push(s+"="+i[u]):r[s]=i[u]);else n.isFunction(i)||n.isUndefined(i)||i===""||(t?r.push(e+"="+encodeURIComponent(i)):r[e]=encodeURIComponent(i));return r},this.reload=function(){var i=t.defer(),n=this;e.$loading=!0;e.groupBy?e.getGroups(i,e.groupBy,this):e.getData(i,this);s("ngTable: reload data");i.promise.then(function(t){e.$loading=!1;s("ngTable: current scope",e.$scope);n.data=e.groupBy?e.$scope.$groups=t:e.$scope.$data=t;e.$scope.pages=n.generatePagesArray(n.page(),n.total(),n.count());e.$scope.$emit("ngTableAfterReloadData")})},this.reloadPages=function(){var n=this;e.$scope.pages=n.generatePagesArray(n.page(),n.total(),n.count())},o=this.$params={page:1,count:1,filter:{},sorting:{},group:{},groupBy:null},e={$scope:null,$loading:!1,data:null,total:0,defaultSort:"desc",filterDelay:750,counts:[10,25,50,100],getGroups:this.getGroups,getData:this.getData},this.settings(f),this.parameters(u,!0),this}}]),i=["$scope","ngTableParams","$timeout",function(t,i,r){t.$loading=!1;t.params||(t.params=new i);t.params.settings().$scope=t;var u=function(){var n=0;return function(t,i){r.cancel(n);n=r(t,i)}}();t.$watch("params.$params",function(i,r){t.params.settings().$scope=t;n.equals(i.filter,r.filter)?t.params.reload():u(function(){t.params.$params.page=1;t.params.reload()},t.params.settings().filterDelay)},!0);t.sortBy=function(n,i){var r=t.parse(n.sortable);if(r){var u=t.params.settings().defaultSort,e=u==="asc"?"desc":"asc",o=t.params.sorting()&&t.params.sorting()[r]&&t.params.sorting()[r]===u,f=i.ctrlKey||i.metaKey?t.params.sorting():{};f[r]=o?e:u;t.params.parameters({sorting:f})}}}],t.directive("ngTable",["$compile","$q","$parse",function(t,r,u){return{restrict:"A",priority:1001,scope:!0,controller:i,compile:function(i){var r=[],o=0,f=null,e=i.find("thead");if(n.forEach(n.element(i.find("tr")),function(t){t=n.element(t);t.hasClass("ng-table-group")||f||(f=t)}),f)return n.forEach(f.find("td"),function(t){var i=n.element(t);if(!i.attr("ignore-cell")||"true"!==i.attr("ignore-cell")){var e=function(n,t){return function(f){return u(i.attr("x-data-"+n)||i.attr("data-"+n)||i.attr(n))(f,{$columns:r})||t}},s=e("title"," "),l=e("header",!1),f=e("filter",!1)(),h=!1,c=!1;f&&f.$$name&&(c=f.$$name,delete f.$$name);f&&f.templateURL&&(h=f.templateURL,delete f.templateURL);i.attr("data-title-text",s());r.push({id:o++,title:s,sortable:e("sortable",!1),"class":i.attr("x-data-header-class")||i.attr("data-header-class")||i.attr("header-class"),filter:f,filterTemplateURL:h,filterName:c,headerTemplateURL:l,filterData:i.attr("filter-data")?i.attr("filter-data"):null,show:i.attr("ng-show")?function(n){return u(i.attr("ng-show"))(n)}:function(){return!0}})}}),function(i,f,o){if(i.$loading=!1,i.$columns=r,i.$watch(o.ngTable,function(t){n.isUndefined(t)||(i.paramsModel=u(o.ngTable),i.params=t)},!0),i.parse=function(t){return n.isDefined(t)?t(i):""},o.showFilter&&i.$parent.$watch(o.showFilter,function(n){i.show_filter=n}),n.forEach(r,function(t){var r;if(t.filterData){if(r=u(t.filterData)(i,{$column:t}),!(n.isObject(r)&&n.isObject(r.promise)))throw new Error("Function "+t.filterData+" must be instance of $q.defer()");return delete t.filterData,r.promise.then(function(i){n.isArray(i)||(i=[]);i.unshift({title:"-",id:""});t.data=i})}}),!f.hasClass("ng-table")){i.templates={header:o.templateHeader?o.templateHeader:"ng-table/header.html",pagination:o.templatePagination?o.templatePagination:"ng-table/pager.html"};var s=e.length>0?e:n.element(document.createElement("thead")).attr("ng-include","templates.header"),h=n.element(document.createElement("div")).attr({"ng-table-pagination":"params","template-url":"templates.pagination"});f.find("thead").remove();f.addClass("ng-table").prepend(s).after(h);t(s)(i);t(h)(i)}}}}}]),t.directive("ngTablePagination",["$compile",function(t){return{restrict:"A",scope:{params:"=ngTablePagination",templateUrl:"="},replace:!1,link:function(i,r){i.params.settings().$scope.$on("ngTableAfterReloadData",function(){i.pages=i.params.generatePagesArray(i.params.page(),i.params.total(),i.params.count())},!0);i.$watch("templateUrl",function(u){if(!n.isUndefined(u)){var f=n.element(document.createElement("div"));f.attr({"ng-include":"templateUrl"});r.append(f);t(f)(i)}})}}}]),n.module("ngTable").run(["$templateCache",function(n){n.put("ng-table/filters/select-multiple.html",'<select ng-options="data.id as data.title for data in column.data" multiple ng-multiple="true" ng-model="params.filter()[name]" ng-show="filter==\'select-multiple\'" class="filter filter-select-multiple form-control" name="{{column.filterName}}"> <\/select>');n.put("ng-table/filters/select.html",'<select ng-options="data.id as data.title for data in column.data" ng-model="params.filter()[name]" ng-show="filter==\'select\'" class="filter filter-select form-control" name="{{column.filterName}}"> <\/select>');n.put("ng-table/filters/text.html",'<input type="text" name="{{column.filterName}}" ng-model="params.filter()[name]" ng-if="filter==\'text\'" class="input-filter form-control"/>');n.put("ng-table/header.html",'<tr> <th ng-repeat="column in $columns" ng-class="{ \'sortable\': parse(column.sortable), \'sort-asc\': params.sorting()[parse(column.sortable)]==\'asc\', \'sort-desc\': params.sorting()[parse(column.sortable)]==\'desc\' }" ng-click="sortBy(column, $event)" ng-show="column.show(this)" ng-init="template=column.headerTemplateURL(this)" class="header {{column.class}}"> <div ng-if="!template" ng-show="!template" ng-bind="parse(column.title)"><\/div> <div ng-if="template" ng-show="template"><div ng-include="template"><\/div><\/div> <\/th> <\/tr> <tr ng-show="show_filter" class="ng-table-filters"> <th ng-repeat="column in $columns" ng-show="column.show(this)" class="filter"> <div ng-repeat="(name, filter) in column.filter"> <div ng-if="column.filterTemplateURL" ng-show="column.filterTemplateURL"> <div ng-include="column.filterTemplateURL"><\/div> <\/div> <div ng-if="!column.filterTemplateURL" ng-show="!column.filterTemplateURL"> <div ng-include="\'ng-table/filters/\' + filter + \'.html\'"><\/div> <\/div> <\/div> <\/th> <\/tr>');n.put("ng-table/pager.html",'<div class="ng-cloak ng-table-pager"> <div ng-if="params.settings().counts.length" class="ng-table-counts btn-group pull-right"> <button ng-repeat="count in params.settings().counts" type="button" ng-class="{\'active\':params.count()==count}" ng-click="params.count(count)" class="btn btn-default"> <span ng-bind="count"><\/span> <\/button> <\/div> <ul class="pagination ng-table-pagination"> <li ng-class="{\'disabled\': !page.active}" ng-repeat="page in pages" ng-switch="page.type"> <a ng-switch-when="prev" ng-click="params.page(page.number)" href="">&laquo;<\/a> <a ng-switch-when="first" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"><\/span><\/a> <a ng-switch-when="page" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"><\/span><\/a> <a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;<\/a> <a ng-switch-when="last" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"><\/span><\/a> <a ng-switch-when="next" ng-click="params.page(page.number)" href="">&raquo;<\/a> <\/li> <\/ul> <\/div> ')}]),t});$(window).ready(function(){addMenuEvents();updateSize()});$(document).ready(function(){$(".menuContainer").on("click",function(n){n.stopPropagation()}).on("tap",function(n){n.stopPropagation()})});$(window).resize(function(){mainNavToggle()}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}}),function(n){"use strict";n.fn.tabslet=function(t){var t=n.extend({mouseevent:"click",attribute:"href",animation:!1,autorotate:!1,pauseonhover:!0,delay:2e3,active:1,controls:{prev:".prev",next:".next"}},t);return this.each(function(){function forward(){i=++i%elements.length;t.mouseevent=="hover"?elements.eq(i).trigger("mouseover"):elements.eq(i).click();var n=setTimeout(forward,t.delay);$this.mouseover(function(){t.pauseonhover&&clearTimeout(n)})}function move(n){n=="forward"&&(i=++i%elements.length);n=="backward"&&(i=--i%elements.length);elements.eq(i).click()}var $this=n(this),fn,init,elements,i;if(t.mouseevent=$this.data("mouseevent")||t.mouseevent,t.attribute=$this.data("attribute")||t.attribute,t.animation=$this.data("animation")||t.animation,t.autorotate=$this.data("autorotate")||t.autorotate,t.pauseonhover=$this.data("pauseonhover")||t.pauseonhover,t.delay=$this.data("delay")||t.delay,t.active=$this.data("active")||t.active,$this.find("> div").hide(),$this.find("> div").eq(t.active-1).show(),$this.find("> ul li").eq(t.active-1).addClass("active"),fn=eval(function(){n(this).trigger("_before");$this.find("> ul li").removeClass("active");n(this).addClass("active");$this.find("> div").hide();var i=n(this).find("a").attr(t.attribute);return t.animation?$this.find(i).animate({opacity:"show"},"slow",function(){n(this).trigger("_after")}):($this.find(i).show(),n(this).trigger("_after")),!1}),init=eval("$this.find('> ul li')."+t.mouseevent+"(fn)"),init,elements=$this.find("> ul li"),i=t.active-1,t.autorotate&&(setTimeout(forward,0),t.pauseonhover))$this.on("mouseleave",function(){setTimeout(forward,1e3)});$this.find(t.controls.next).click(function(){move("forward")});$this.find(t.controls.prev).click(function(){move("backward")});$this.on("destroy",function(){n(this).removeData()})})};n(document).ready(function(){n('[data-toggle="tabslet"]').tabslet()})}(jQuery),function(n){"use strict";n.fn.extend({customSelect:function(t){if(typeof document.body.style.maxHeight=="undefined")return this;var t=n.extend({customClass:"customSelect",mapClass:!0,mapStyle:!0},t),u=t.customClass,r=function(t,r){var u=t.find(":selected"),f=r.children(":first"),e=u.html()||"&nbsp;";f.html(e);u.attr("disabled")?r.addClass(i("DisabledOption")):r.removeClass(i("DisabledOption"));setTimeout(function(){r.removeClass(i("Open"));n(document).off("mouseup.customSelect")},60)},i=function(n){return u+n};return this.each(function(){var e=n(this),o=n("<span />").addClass(i("Inner")),f=n("<span />");e.after(f.append(o));f.addClass(u);t.mapClass&&f.addClass(e.attr("class"));t.mapStyle&&f.attr("style",e.attr("style"));e.addClass("hasCustomSelect").on("render.customSelect",function(){var n,t;r(e,f);e.css("width","");n=parseInt(e.outerWidth(),10)-(parseInt(f.outerWidth(),10)-parseInt(f.width(),10));f.css({display:"inline-block"});t=f.outerHeight();e.attr("disabled")?f.addClass(i("Disabled")):f.removeClass(i("Disabled"));o.css({width:n,display:"inline-block"});e.css({"-webkit-appearance":"menulist-button",width:f.outerWidth(),position:"absolute",opacity:0,height:t,fontSize:f.css("font-size")})}).on("change.customSelect",function(){f.addClass(i("Changed"));r(e,f)}).on("keyup.customSelect",function(n){f.hasClass(i("Open"))?(n.which==13||n.which==27)&&r(e,f):(e.trigger("blur.customSelect"),e.trigger("focus.customSelect"))}).on("mousedown.customSelect",function(){f.removeClass(i("Changed"))}).on("mouseup.customSelect",function(t){if(!f.hasClass(i("Open")))if(n("."+i("Open")).not(f).length>0&&typeof InstallTrigger!="undefined")e.trigger("focus.customSelect");else{f.addClass(i("Open"));t.stopPropagation();n(document).one("mouseup.customSelect",function(t){t.target!=e.get(0)&&n.inArray(t.target,e.find("*").get())<0?e.trigger("blur.customSelect"):r(e,f)})}}).on("focus.customSelect",function(){f.removeClass(i("Changed")).addClass(i("Focus"))}).on("blur.customSelect",function(){f.removeClass(i("Focus")+" "+i("Open"))}).on("mouseenter.customSelect",function(){f.addClass(i("Hover"))}).on("mouseleave.customSelect",function(){f.removeClass(i("Hover"))}).trigger("render.customSelect")})}})}(jQuery),function(n,t){typeof exports=="object"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Spinner=t()}(this,function(){"use strict";function i(n,t){var i=document.createElement(n||"div");for(var r in t)i[r]=t[r];return i}function t(n){for(var t=1,i=arguments.length;t<i;t++)n.appendChild(arguments[t]);return n}function a(n,t,i,r){var f=["opacity",t,~~(n*100),i,r].join("-"),e=.01+i/r*100,s=Math.max(1-(1-n)/t*(100-e),n),h=u.substring(0,u.indexOf("Animation")).toLowerCase(),c=h&&"-"+h+"-"||"";return l[f]||(o.insertRule("@"+c+"keyframes "+f+"{0%{opacity:"+s+"}"+e+"%{opacity:"+n+"}"+(e+.01)+"%{opacity:1}"+(e+t)%100+"%{opacity:"+n+"}100%{opacity:"+s+"}}",o.cssRules.length),l[f]=1),f}function e(n,t){var u=n.style,r,i;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<c.length;i++)if(r=c[i]+t,u[r]!==undefined)return r;if(u[t]!==undefined)return t}function n(n,t){for(var i in t)n.style[e(n,i)||i]=t[i];return n}function s(n){for(var i,t,r=1;r<arguments.length;r++){i=arguments[r];for(t in i)n[t]===undefined&&(n[t]=i[t])}return n}function h(n,t){return typeof n=="string"?n:n[t%n.length]}function r(n){this.opts=s(n||{},r.defaults,y)}function v(){function u(n,t){return i("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}o.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(i,r){function s(){return n(u("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function c(i,f,o){t(a,t(n(s(),{rotation:360/r.lines*i+"deg",left:~~f}),t(n(u("roundrect",{arcsize:r.corners}),{width:e,height:r.width,left:r.radius,top:-r.width>>1,filter:o}),u("fill",{color:h(r.color,i),opacity:r.opacity}),u("stroke",{opacity:0}))))}var e=r.length+r.width,o=2*e,l=-(r.width+r.length)*2+"px",a=n(s(),{position:"absolute",top:l,left:l}),f;if(r.shadow)for(f=1;f<=r.lines;f++)c(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=r.lines;f++)c(f);return t(i,a)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var c=["webkit","Moz","ms","O"],l={},u,o=function(){var n=i("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),y={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:1/4,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"},f;return r.defaults={},s(r.prototype,{spin:function(t){this.stop();var f=this,r=f.opts,e=f.el=n(i(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex}),p=r.radius+r.length+r.width;if(n(e,{left:r.left,top:r.top}),t&&t.insertBefore(e,t.firstChild||null),e.setAttribute("role","progressbar"),f.lines(e,f.opts),!u){var s=0,l=(r.lines-1)*(1-r.direction)/2,h,c=r.fps,o=c/r.speed,a=(1-r.opacity)/(o*r.trail/100),v=o/r.lines;(function y(){s++;for(var n=0;n<r.lines;n++)h=Math.max(1-(s+(r.lines-n)*v)%o*a,r.opacity),f.opacity(e,n*r.direction+l,h,r);f.timeout=f.el&&setTimeout(y,~~(1e3/c))})()}return f},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=undefined),this},lines:function(r,f){function s(t,r){return n(i(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:t,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*e+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var e=0,c=(f.lines-1)*(1-f.direction)/2,o;e<f.lines;e++)o=n(i(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:u&&a(f.opacity,f.trail,c+e*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&t(o,n(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(o,s(h(f.color,e),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),f=n(i("group"),{behavior:"url(#default#VML)"}),!e(f,"transform")&&f.adj?v():u=e(f,"animation"),r});!function(n){var t={},r={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){}};n.fn.bxSlider=function(u){var f,e;if(0==this.length)return this;if(this.length>1)return this.each(function(){n(this).bxSlider(u)}),this;f={};e=this;t.el=this;var w=n(window).width(),b=n(window).height(),k=function(){f.settings=n.extend({},r,u);f.settings.slideWidth=parseInt(f.settings.slideWidth);f.children=e.children(f.settings.slideSelector);f.children.length<f.settings.minSlides&&(f.settings.minSlides=f.children.length);f.children.length<f.settings.maxSlides&&(f.settings.maxSlides=f.children.length);f.settings.randomStart&&(f.settings.startSlide=Math.floor(Math.random()*f.children.length));f.active={index:f.settings.startSlide};f.carousel=f.settings.minSlides>1||f.settings.maxSlides>1;f.carousel&&(f.settings.preloadImages="all");f.minThreshold=f.settings.minSlides*f.settings.slideWidth+(f.settings.minSlides-1)*f.settings.slideMargin;f.maxThreshold=f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin;f.working=!1;f.controls={};f.interval=null;f.animProp="vertical"==f.settings.mode?"top":"left";f.usingCSS=f.settings.useCSS&&"fade"!=f.settings.mode&&function(){var i=document.createElement("div"),n=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var t in n)if(void 0!==i.style[n[t]])return f.cssPrefix=n[t].replace("Perspective","").toLowerCase(),f.animProp="-"+f.cssPrefix+"-transform",!0;return!1}();"vertical"==f.settings.mode&&(f.settings.maxSlides=f.settings.minSlides);e.data("origStyle",e.attr("style"));e.children(f.settings.slideSelector).each(function(){n(this).data("origStyle",n(this).attr("style"))});ft()},ft=function(){e.wrap('<div class="bx-wrapper"><div class="bx-viewport"><\/div><\/div>');f.viewport=e.parent();f.loader=n('<div class="bx-loading" />');f.viewport.prepend(f.loader);e.css({width:"horizontal"==f.settings.mode?100*f.children.length+215+"%":"auto",position:"relative"});f.usingCSS&&f.settings.easing?e.css("-"+f.cssPrefix+"-transition-timing-function",f.settings.easing):f.settings.easing||(f.settings.easing="swing");h();f.viewport.css({width:"100%",overflow:"hidden",position:"relative"});f.viewport.parent().css({maxWidth:st()});f.settings.pager||f.viewport.parent().css({margin:"0 auto 0px"});f.children.css({float:"horizontal"==f.settings.mode?"left":"none",listStyle:"none",position:"relative"});f.children.css("width",d());"horizontal"==f.settings.mode&&f.settings.slideMargin>0&&f.children.css("marginRight",f.settings.slideMargin);"vertical"==f.settings.mode&&f.settings.slideMargin>0&&f.children.css("marginBottom",f.settings.slideMargin);"fade"==f.settings.mode&&(f.children.css({position:"absolute",zIndex:0,display:"none"}),f.children.eq(f.settings.startSlide).css({zIndex:50,display:"block"}));f.controls.el=n('<div class="bx-controls" />');f.settings.captions&&at();f.active.last=f.settings.startSlide==s()-1;f.settings.video&&e.fitVids();var t=f.children.eq(f.settings.startSlide);"all"==f.settings.preloadImages&&(t=f.children);f.settings.ticker?f.settings.pager=!1:(f.settings.pager&&ht(),f.settings.controls&&ct(),f.settings.auto&&f.settings.autoControls&&lt(),(f.settings.controls||f.settings.autoControls||f.settings.pager)&&f.viewport.after(f.controls.el));et(t,ot)},et=function(t,i){var r=t.find("img, iframe").length,u;if(0==r)return i(),void 0;u=0;t.find("img, iframe").each(function(){n(this).one("load",function(){++u==r&&i()}).each(function(){this.complete&&n(this).load()})})},ot=function(){if(f.settings.infiniteLoop&&"fade"!=f.settings.mode&&!f.settings.ticker){var t="vertical"==f.settings.mode?f.settings.minSlides:f.settings.maxSlides,i=f.children.slice(0,t).clone().addClass("bx-clone"),r=f.children.slice(-t).clone().addClass("bx-clone");e.append(i).prepend(r)}f.loader.remove();g();"vertical"==f.settings.mode&&(f.settings.adaptiveHeight=!0);f.viewport.height(l());e.redrawSlider();f.settings.onSliderLoad(f.active.index);f.initialized=!0;f.settings.responsive&&n(window).bind("resize",ut);f.settings.auto&&f.settings.autoStart&&kt();f.settings.ticker&&dt();f.settings.pager&&v(f.settings.startSlide);f.settings.controls&&tt();f.settings.touchEnabled&&!f.settings.ticker&&gt()},l=function(){var r=0,t=n(),u;if("vertical"==f.settings.mode||f.settings.adaptiveHeight)if(f.carousel)for(u=1==f.settings.moveSlides?f.active.index:f.active.index*c(),t=f.children.eq(u),i=1;i<=f.settings.maxSlides-1;i++)t=u+i>=f.children.length?t.add(f.children.eq(i-1)):t.add(f.children.eq(u+i));else t=f.children.eq(f.active.index);else t=f.children;return"vertical"==f.settings.mode?(t.each(function(){r+=n(this).outerHeight()}),f.settings.slideMargin>0&&(r+=f.settings.slideMargin*(f.settings.minSlides-1))):r=Math.max.apply(Math,t.map(function(){return n(this).outerHeight(!1)}).get()),r},st=function(){var n="100%";return f.settings.slideWidth>0&&(n="horizontal"==f.settings.mode?f.settings.maxSlides*f.settings.slideWidth+(f.settings.maxSlides-1)*f.settings.slideMargin:f.settings.slideWidth),n},d=function(){var t=f.settings.slideWidth,n=f.viewport.width();return 0==f.settings.slideWidth||f.settings.slideWidth>n&&!f.carousel||"vertical"==f.settings.mode?t=n:f.settings.maxSlides>1&&"horizontal"==f.settings.mode&&(n>f.maxThreshold||n<f.minThreshold&&(t=(n-f.settings.slideMargin*(f.settings.minSlides-1))/f.settings.minSlides)),t},h=function(){var n=1,t;return"horizontal"==f.settings.mode&&f.settings.slideWidth>0?f.viewport.width()<f.minThreshold?n=f.settings.minSlides:f.viewport.width()>f.maxThreshold?n=f.settings.maxSlides:(t=f.children.first().width(),n=Math.floor(f.viewport.width()/t)):"vertical"==f.settings.mode&&(n=f.settings.minSlides),n},s=function(){var n=0,t,i;if(f.settings.moveSlides>0)if(f.settings.infiniteLoop)n=f.children.length/c();else for(t=0,i=0;t<f.children.length;)++n,t=i+h(),i+=f.settings.moveSlides<=h()?f.settings.moveSlides:h();else n=Math.ceil(f.children.length/h());return n},c=function(){return f.settings.moveSlides>0&&f.settings.moveSlides<=h()?f.settings.moveSlides:h()},g=function(){var t,i,n;f.children.length>f.settings.maxSlides&&f.active.last&&!f.settings.infiniteLoop?"horizontal"==f.settings.mode?(t=f.children.last(),n=t.position(),o(-(n.left-(f.viewport.width()-t.width())),"reset",0)):"vertical"==f.settings.mode&&(i=f.children.length-f.settings.minSlides,n=f.children.eq(i).position(),o(-n.top,"reset",0)):(n=f.children.eq(f.active.index*c()).position(),f.active.index==s()-1&&(f.active.last=!0),void 0!=n&&("horizontal"==f.settings.mode?o(-n.left,"reset",0):"vertical"==f.settings.mode&&o(-n.top,"reset",0)))},o=function(n,t,i,r){var u,s;f.usingCSS?(u="vertical"==f.settings.mode?"translate3d(0, "+n+"px, 0)":"translate3d("+n+"px, 0, 0)",e.css("-"+f.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==t?(e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");y()})):"reset"==t?e.css(f.animProp,u):"ticker"==t&&(e.css("-"+f.cssPrefix+"-transition-timing-function","linear"),e.css(f.animProp,u),e.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){e.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");o(r.resetValue,"reset",0);a()}))):(s={},s[f.animProp]=n,"slide"==t?e.animate(s,i,f.settings.easing,function(){y()}):"reset"==t?e.css(f.animProp,n):"ticker"==t&&e.animate(s,speed,"linear",function(){o(r.resetValue,"reset",0);a()}))},nt=function(){for(var i,r="",u=s(),t=0;u>t;t++)i="",f.settings.buildPager&&n.isFunction(f.settings.buildPager)?(i=f.settings.buildPager(t),f.pagerEl.addClass("bx-custom-pager")):(i=t+1,f.pagerEl.addClass("bx-default-pager")),r+='<div class="bx-pager-item"><a href="" data-slide-index="'+t+'" class="bx-pager-link">'+i+"<\/a><\/div>";f.pagerEl.html(r)},ht=function(){f.settings.pagerCustom?f.pagerEl=n(f.settings.pagerCustom):(f.pagerEl=n('<div class="bx-pager" />'),f.settings.pagerSelector?n(f.settings.pagerSelector).html(f.pagerEl):f.controls.el.addClass("bx-has-pager").append(f.pagerEl),nt());f.pagerEl.delegate("a","click",bt)},ct=function(){f.controls.next=n('<a class="bx-next" href="">'+f.settings.nextText+"<\/a>");f.controls.prev=n('<a class="bx-prev" href="">'+f.settings.prevText+"<\/a>");f.controls.next.bind("click",vt);f.controls.prev.bind("click",yt);f.settings.nextSelector&&n(f.settings.nextSelector).append(f.controls.next);f.settings.prevSelector&&n(f.settings.prevSelector).append(f.controls.prev);f.settings.nextSelector||f.settings.prevSelector||(f.controls.directionEl=n('<div class="bx-controls-direction" />'),f.controls.directionEl.append(f.controls.prev).append(f.controls.next),f.controls.el.addClass("bx-has-controls-direction").append(f.controls.directionEl))},lt=function(){f.controls.start=n('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+f.settings.startText+"<\/a><\/div>");f.controls.stop=n('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+f.settings.stopText+"<\/a><\/div>");f.controls.autoEl=n('<div class="bx-controls-auto" />');f.controls.autoEl.delegate(".bx-start","click",pt);f.controls.autoEl.delegate(".bx-stop","click",wt);f.settings.autoControlsCombine?f.controls.autoEl.append(f.controls.start):f.controls.autoEl.append(f.controls.start).append(f.controls.stop);f.settings.autoControlsSelector?n(f.settings.autoControlsSelector).html(f.controls.autoEl):f.controls.el.addClass("bx-has-controls-auto").append(f.controls.autoEl);p(f.settings.autoStart?"stop":"start")},at=function(){f.children.each(function(){var t=n(this).find("img:first").attr("title");void 0!=t&&(""+t).length&&n(this).append('<div class="bx-caption"><span>'+t+"<\/span><\/div>")})},vt=function(n){f.settings.auto&&e.stopAuto();e.goToNextSlide();n.preventDefault()},yt=function(n){f.settings.auto&&e.stopAuto();e.goToPrevSlide();n.preventDefault()},pt=function(n){e.startAuto();n.preventDefault()},wt=function(n){e.stopAuto();n.preventDefault()},bt=function(t){f.settings.auto&&e.stopAuto();var r=n(t.currentTarget),i=parseInt(r.attr("data-slide-index"));i!=f.active.index&&e.goToSlide(i);t.preventDefault()},v=function(t){var i=f.children.length;return"short"==f.settings.pagerType?(f.settings.maxSlides>1&&(i=Math.ceil(f.children.length/f.settings.maxSlides)),f.pagerEl.html(t+1+f.settings.pagerShortSeparator+i),void 0):(f.pagerEl.find("a").removeClass("active"),f.pagerEl.each(function(i,r){n(r).find("a").eq(t).addClass("active")}),void 0)},y=function(){if(f.settings.infiniteLoop){var n="";0==f.active.index?n=f.children.eq(0).position():f.active.index==s()-1&&f.carousel?n=f.children.eq((s()-1)*c()).position():f.active.index==f.children.length-1&&(n=f.children.eq(f.children.length-1).position());"horizontal"==f.settings.mode?o(-n.left,"reset",0):"vertical"==f.settings.mode&&o(-n.top,"reset",0)}f.working=!1;f.settings.onSlideAfter(f.children.eq(f.active.index),f.oldIndex,f.active.index)},p=function(n){f.settings.autoControlsCombine?f.controls.autoEl.html(f.controls[n]):(f.controls.autoEl.find("a").removeClass("active"),f.controls.autoEl.find("a:not(.bx-"+n+")").addClass("active"))},tt=function(){1==s()?(f.controls.prev.addClass("disabled"),f.controls.next.addClass("disabled")):!f.settings.infiniteLoop&&f.settings.hideControlOnEnd&&(0==f.active.index?(f.controls.prev.addClass("disabled"),f.controls.next.removeClass("disabled")):f.active.index==s()-1?(f.controls.next.addClass("disabled"),f.controls.prev.removeClass("disabled")):(f.controls.prev.removeClass("disabled"),f.controls.next.removeClass("disabled")))},kt=function(){f.settings.autoDelay>0?setTimeout(e.startAuto,f.settings.autoDelay):e.startAuto();f.settings.autoHover&&e.hover(function(){f.interval&&(e.stopAuto(!0),f.autoPaused=!0)},function(){f.autoPaused&&(e.startAuto(!0),f.autoPaused=null)})},dt=function(){var i=0,t;"next"==f.settings.autoDirection?e.append(f.children.clone().addClass("bx-clone")):(e.prepend(f.children.clone().addClass("bx-clone")),t=f.children.first().position(),i="horizontal"==f.settings.mode?-t.left:-t.top);o(i,"reset",0);f.settings.pager=!1;f.settings.controls=!1;f.settings.autoControls=!1;f.settings.tickerHover&&!f.usingCSS&&f.viewport.hover(function(){e.stop()},function(){var t=0;f.children.each(function(){t+="horizontal"==f.settings.mode?n(this).outerWidth(!0):n(this).outerHeight(!0)});var i=f.settings.speed/t,r="horizontal"==f.settings.mode?"left":"top",u=i*(t-Math.abs(parseInt(e.css(r))));a(u)});a()},a=function(n){var t,i;speed=n?n:f.settings.speed;t={left:0,top:0};i={left:0,top:0};"next"==f.settings.autoDirection?t=e.find(".bx-clone").first().position():i=f.children.first().position();var r="horizontal"==f.settings.mode?-t.left:-t.top,u="horizontal"==f.settings.mode?-i.left:-i.top,s={resetValue:u};o(r,"ticker",speed,s)},gt=function(){f.touch={start:{x:0,y:0},end:{x:0,y:0}};f.viewport.bind("touchstart",ni)},ni=function(n){if(f.working)n.preventDefault();else{f.touch.originalPos=e.position();var t=n.originalEvent;f.touch.start.x=t.changedTouches[0].pageX;f.touch.start.y=t.changedTouches[0].pageY;f.viewport.bind("touchmove",it);f.viewport.bind("touchend",rt)}},it=function(n){var t=n.originalEvent,u=Math.abs(t.changedTouches[0].pageX-f.touch.start.x),e=Math.abs(t.changedTouches[0].pageY-f.touch.start.y),i,r;(3*u>e&&f.settings.preventDefaultSwipeX?n.preventDefault():3*e>u&&f.settings.preventDefaultSwipeY&&n.preventDefault(),"fade"!=f.settings.mode&&f.settings.oneToOneTouch)&&(i=0,"horizontal"==f.settings.mode?(r=t.changedTouches[0].pageX-f.touch.start.x,i=f.touch.originalPos.left+r):(r=t.changedTouches[0].pageY-f.touch.start.y,i=f.touch.originalPos.top+r),o(i,"reset",0))},rt=function(n){var r,i,t;f.viewport.unbind("touchmove",it);r=n.originalEvent;i=0;(f.touch.end.x=r.changedTouches[0].pageX,f.touch.end.y=r.changedTouches[0].pageY,"fade"==f.settings.mode)?(t=Math.abs(f.touch.start.x-f.touch.end.x),t>=f.settings.swipeThreshold&&(f.touch.start.x>f.touch.end.x?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto())):(t=0,"horizontal"==f.settings.mode?(t=f.touch.end.x-f.touch.start.x,i=f.touch.originalPos.left):(t=f.touch.end.y-f.touch.start.y,i=f.touch.originalPos.top),!f.settings.infiniteLoop&&(0==f.active.index&&t>0||f.active.last&&0>t)?o(i,"reset",200):Math.abs(t)>=f.settings.swipeThreshold?(0>t?e.goToNextSlide():e.goToPrevSlide(),e.stopAuto()):o(i,"reset",200));f.viewport.unbind("touchend",rt)},ut=function(){var t=n(window).width(),i=n(window).height();(w!=t||b!=i)&&(w=t,b=i,e.redrawSlider())};return e.goToSlide=function(t,i){var h,r,a,p,u,w,b;f.working||f.active.index==t||((f.working=!0,f.oldIndex=f.active.index,f.active.index=0>t?s()-1:t>=s()?0:t,f.settings.onSlideBefore(f.children.eq(f.active.index),f.oldIndex,f.active.index),"next"==i?f.settings.onSlideNext(f.children.eq(f.active.index),f.oldIndex,f.active.index):"prev"==i&&f.settings.onSlidePrev(f.children.eq(f.active.index),f.oldIndex,f.active.index),f.active.last=f.active.index>=s()-1,f.settings.pager&&v(f.active.index),f.settings.controls&&tt(),"fade"==f.settings.mode)?(f.settings.adaptiveHeight&&f.viewport.height()!=l()&&f.viewport.animate({height:l()},f.settings.adaptiveHeightSpeed),f.children.filter(":visible").fadeOut(f.settings.speed).css({zIndex:0}),f.children.eq(f.active.index).css("zIndex",51).fadeIn(f.settings.speed,function(){n(this).css("zIndex",50);y()})):(f.settings.adaptiveHeight&&f.viewport.height()!=l()&&f.viewport.animate({height:l()},f.settings.adaptiveHeightSpeed),h=0,r={left:0,top:0},!f.settings.infiniteLoop&&f.carousel&&f.active.last?"horizontal"==f.settings.mode?(u=f.children.eq(f.children.length-1),r=u.position(),h=f.viewport.width()-u.outerWidth()):(a=f.children.length-f.settings.minSlides,r=f.children.eq(a).position()):f.carousel&&f.active.last&&"prev"==i?(p=1==f.settings.moveSlides?f.settings.maxSlides-c():(s()-1)*c()-(f.children.length-f.settings.maxSlides),u=e.children(".bx-clone").eq(p),r=u.position()):"next"==i&&0==f.active.index?(r=e.find("> .bx-clone").eq(f.settings.maxSlides).position(),f.active.last=!1):t>=0&&(w=t*c(),r=f.children.eq(w).position()),"undefined"!=typeof r&&(b="horizontal"==f.settings.mode?-(r.left-h):-r.top,o(b,"slide",f.settings.speed))))},e.goToNextSlide=function(){if(f.settings.infiniteLoop||!f.active.last){var n=parseInt(f.active.index)+1;e.goToSlide(n,"next")}},e.goToPrevSlide=function(){if(f.settings.infiniteLoop||0!=f.active.index){var n=parseInt(f.active.index)-1;e.goToSlide(n,"prev")}},e.startAuto=function(n){f.interval||(f.interval=setInterval(function(){"next"==f.settings.autoDirection?e.goToNextSlide():e.goToPrevSlide()},f.settings.pause),f.settings.autoControls&&1!=n&&p("stop"))},e.stopAuto=function(n){f.interval&&(clearInterval(f.interval),f.interval=null,f.settings.autoControls&&1!=n&&p("start"))},e.getCurrentSlide=function(){return f.active.index},e.getSlideCount=function(){return f.children.length},e.redrawSlider=function(){f.children.add(e.find(".bx-clone")).outerWidth(d());f.viewport.css("height",l());f.settings.ticker||g();f.active.last&&(f.active.index=s()-1);f.active.index>=s()&&(f.active.last=!0);f.settings.pager&&!f.settings.pagerCustom&&(nt(),v(f.active.index))},e.destroySlider=function(){f.initialized&&(f.initialized=!1,n(".bx-clone",this).remove(),f.children.each(function(){void 0!=n(this).data("origStyle")?n(this).attr("style",n(this).data("origStyle")):n(this).removeAttr("style")}),void 0!=n(this).data("origStyle")?this.attr("style",n(this).data("origStyle")):n(this).removeAttr("style"),n(this).unwrap().unwrap(),f.controls.el&&f.controls.el.remove(),f.controls.next&&f.controls.next.remove(),f.controls.prev&&f.controls.prev.remove(),f.pagerEl&&f.pagerEl.remove(),n(".bx-caption",this).remove(),f.controls.autoEl&&f.controls.autoEl.remove(),clearInterval(f.interval),f.settings.responsive&&n(window).unbind("resize",ut))},e.reloadSlider=function(n){void 0!=n&&(u=n);e.destroySlider();k()},k(),this}}(jQuery);$(".bxslider").each(function(){var n=parseInt($(this).data("slider-duration"));n>0?$(this).bxSlider({auto:!0,autoHover:!0,pause:n}):$(this).bxSlider()}),function(){function t(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,u=this,f=u.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if("object"==typeof n){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if("object"===r)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return u.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});u={bind:r,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",u):n.eventie=u}(this),function(n,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,r){return t(n,i,r)}):"object"==typeof exports?module.exports=t(n,require("eventEmitter"),require("eventie")):n.imagesLoaded=t(n,n.EventEmitter,n.eventie)}(window,function(n,t,i){function s(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===v.call(n)}function l(n){var t=[],i,r;if(c(n))t=n;else if("number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function r(n,t,i){if(!(this instanceof r))return new r(n,t);"string"==typeof n&&(n=document.querySelectorAll(n));this.elements=l(n);this.options=s({},this.options);"function"==typeof t?i=t:s(this.options,t);i&&this.on("always",i);this.getImages();f&&(this.jqDeferred=new f.Deferred);var u=this;setTimeout(function(){u.check()})}function e(n){this.img=n}function u(n){this.src=n;o[n]=this}var f=n.jQuery,h=n.console,a=h!==void 0,v=Object.prototype.toString,o;return r.prototype=new t,r.prototype.options={},r.prototype.getImages=function(){var i,u,n,t,e;for(this.images=[],i=0,u=this.elements.length;u>i;i++)if(n=this.elements[i],"IMG"===n.nodeName&&this.addImage(n),t=n.nodeType,t&&(1===t||9===t||11===t))for(var f=n.querySelectorAll("img"),r=0,o=f.length;o>r;r++)e=f[r],this.addImage(e)},r.prototype.addImage=function(n){var t=new e(n);this.images.push(t)},r.prototype.check=function(){function f(n,r){return t.options.debug&&a&&h.log("confirm",n,r),t.progress(n),u++,u===i&&t.complete(),!0}var t=this,u=0,i=this.images.length,n,r;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(n=0;i>n;n++)r=this.images[n],r.on("confirm",f),r.check()},r.prototype.progress=function(n){this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,n);t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,n)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0;n=this;setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var i=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[i](n)}})},f&&(f.fn.imagesLoaded=function(n,t){var i=new r(this,n,t);return i.jqDeferred.promise(f(this))}),e.prototype=new t,e.prototype.check=function(){var n=o[this.img.src]||new u(this.img.src),t;if(n.isConfirmed)return this.confirm(n.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;t=this;n.on("confirm",function(n,i){return t.confirm(n.isLoaded,i),!0});n.check()},e.prototype.confirm=function(n,t){this.isLoaded=n;this.emit("confirm",this,t)},o={},u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var n=new Image;i.bind(n,"load",this);i.bind(n,"error",this);n.src=this.src;this.isChecked=!0}},u.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},u.prototype.onload=function(n){this.confirm(!0,"onload");this.unbindProxyEvents(n)},u.prototype.onerror=function(n){this.confirm(!1,"onerror");this.unbindProxyEvents(n)},u.prototype.confirm=function(n,t){this.isConfirmed=!0;this.isLoaded=n;this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(n){i.unbind(n.target,"load",this);i.unbind(n.target,"error",this)},r});!function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,s;if("string"==typeof f){for(var c=r.call(arguments,1),o=0,l=this.length;l>o;o++)if(h=this[o],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,c),void 0!==s)return s}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):t(n.jQuery)}(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});r={bind:u,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:n.eventie=r}(this),function(n){function t(n){"function"==typeof n&&(t.isReady?n():u.push(n))}function i(n){var o="readystatechange"===n.type&&"complete"!==r.readyState,i,f,e;if(!t.isReady&&!o)for(t.isReady=!0,i=0,f=u.length;f>i;i++)e=u[i],e()}function f(u){return u.bind(r,"DOMContentLoaded",i),u.bind(r,"readystatechange",i),u.bind(n,"load",i),t}var r=n.document,u=[];t.isReady=!1;"function"==typeof define&&define.amd?(t.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],f)):n.docReady=f(n.eventie)}(this),function(){function t(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,u=this,f=u.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if(n instanceof RegExp){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if(n instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return u.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function e(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)r=t[n],i[r]=0;return i}function r(n){function s(n){var s,u,a,c,v,y;if("string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(s=f(n),"none"===s.display)return e();u={};u.width=n.offsetWidth;u.height=n.offsetHeight;for(var nt=u.isBorderBox=!(!r||!s[r]||"border-box"!==s[r]),l=0,tt=t.length;tt>l;l++)a=t[l],c=s[a],c=h(n,c),v=parseFloat(c),u[a]=isNaN(v)?0:v;var p=u.paddingLeft+u.paddingRight,w=u.paddingTop+u.paddingBottom,it=u.marginLeft+u.marginRight,rt=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,k=u.borderTopWidth+u.borderBottomWidth,d=nt&&o,g=i(s.width);return g!==!1&&(u.width=g+(d?0:p+b)),y=i(s.height),y!==!1&&(u.height=y+(d?0:w+k)),u.innerWidth=u.width-(p+b),u.innerHeight=u.height-(w+k),u.outerWidth=u.width+it,u.outerHeight=u.height+rt,u}}function h(n,t){if(u||-1===t.indexOf("%"))return t;var i=n.style,e=i.left,r=n.runtimeStyle,f=r&&r.left;return f&&(r.left=n.currentStyle.left),i.left=t,t=i.pixelLeft,i.left=e,f&&(r.left=f),t}var o,r=n("boxSizing");return function(){var n,t,u;r&&(n=document.createElement("div"),n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[r]="border-box",t=document.body||document.documentElement,t.appendChild(n),u=f(n),o=200===i(u.width),t.removeChild(n))}(),s}var u=n.getComputedStyle,f=u?function(n){return u(n,null)}:function(n){return n.currentStyle},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):"object"==typeof exports?module.exports=r(require("get-style-property")):n.getSize=r(n.getStyleProperty)}(window),function(n,t){function r(n,t){return n[f](t)}function u(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function s(n,t){u(n);for(var r=n.parentNode.querySelectorAll(t),i=0,f=r.length;f>i;i++)if(r[i]===n)return!0;return!1}function h(n,t){return u(n),r(n,t)}var i,f=function(){var u,i;if(t.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],n=0,f=r.length;f>n;n++)if(u=r[n],i=u+"MatchesSelector",t[i])return i}(),e,o;f?(e=document.createElement("div"),o=r(e,"div"),i=o?r:h):i=s;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return i}):window.matchesSelector=i}(this,Element.prototype),function(n){function r(n,t){for(var i in t)n[i]=t[i];return n}function u(n){for(var t in n)return!1;return t=null,!0}function f(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function t(n,t,i){function o(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}var s=i("transition"),h=i("transform"),w=s&&h,b=!!i("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[s],l=["transform","transition","transitionDuration","transitionProperty"],k=function(){for(var n,t,u={},r=0,f=l.length;f>r;r++)n=l[r],t=i(n),t&&t!==n&&(u[n]=t);return u}(),a,v,y,p;return r(o.prototype,n.prototype),o.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},o.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},o.prototype.getSize=function(){this.size=t(this.element)},o.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=k[t]||t,r[i]=n[t]},o.prototype.getPosition=function(){var r=e(this.element),u=this.layout.options,f=u.isOriginLeft,o=u.isOriginTop,n=parseInt(r[f?"left":"right"],10),t=parseInt(r[o?"top":"bottom"],10),i;n=isNaN(n)?0:n;t=isNaN(t)?0:t;i=this.layout.size;n-=f?i.paddingLeft:i.paddingRight;t-=o?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},o.prototype.layoutPosition=function(){var t=this.layout.size,i=this.layout.options,n={};i.isOriginLeft?(n.left=this.position.x+t.paddingLeft+"px",n.right=""):(n.right=this.position.x+t.paddingRight+"px",n.left="");i.isOriginTop?(n.top=this.position.y+t.paddingTop+"px",n.bottom=""):(n.bottom=this.position.y+t.paddingBottom+"px",n.top="");this.css(n);this.emitEvent("layout",[this])},a=b?function(n,t){return"translate3d("+n+"px, "+t+"px, 0)"}:function(n,t){return"translate("+n+"px, "+t+"px)"},o.prototype._transitionTo=function(n,t){this.getPosition();var e=this.position.x,o=this.position.y,s=parseInt(n,10),h=parseInt(t,10),c=s===this.position.x&&h===this.position.y;if(this.setPosition(n,t),c&&!this.isTransitioning)return void this.layoutPosition();var i=n-e,r=t-o,u={},f=this.layout.options;i=f.isOriginLeft?i:-i;r=f.isOriginTop?r:-r;u.transform=a(i,r);this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},o.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},o.prototype.moveTo=w?o.prototype._transitionTo:o.prototype.goTo,o.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},o.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},o.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(n);i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},v=h&&f(h)+",opacity",o.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:v,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},o.prototype.transition=o.prototype[s?"_transition":"_nonTransition"],o.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},o.prototype.onotransitionend=function(n){this.ontransitionend(n)},y={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},o.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=y[n.propertyName]||n.propertyName,(delete t.ingProperties[i],u(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},o.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(c,this,!1);this.isTransitioning=!1},o.prototype._removeStyles=function(n){var t={};for(var i in n)t[i]="";this.css(t)},p={transitionProperty:"",transitionDuration:""},o.prototype.removeTransitionStyles=function(){this.css(p)},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.emitEvent("remove",[this])},o.prototype.remove=function(){if(!s||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var n=this;this.on("transitionEnd",function(){return n.removeElem(),!0});this.hide()},o.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0})},o.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},o.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}var i=n.getComputedStyle,e=i?function(n){return i(n,null)}:function(n){return n.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],t):(n.Outlayer={},n.Outlayer.Item=t(n.EventEmitter,n.getSize,n.getStyleProperty))}(window),function(n){function t(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===a.call(n)}function u(n){var t=[],i,r;if(c(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function e(n,t){var i=v(t,n);-1!==i&&t.splice(i,1)}function l(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()}function o(o,c,a,v,y,p){function w(n,i){if("string"==typeof n&&(n=s.querySelector(n)),!n||!f(n))return void(r&&r.error("Bad "+this.constructor.namespace+" element: "+n));this.element=n;this.options=t({},this.constructor.defaults);this.option(i);var u=++k;this.element.outlayerGUID=u;b[u]=this;this._create();this.options.isInitLayout&&this.layout()}var k=0,b={};return w.namespace="outlayer",w.Item=p,w.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},t(w.prototype,a.prototype),w.prototype.option=function(n){t(this.options,n)},w.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);t(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},w.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},w.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;o>t;t++)u=i[t],f=new e(u,this),r.push(f);return r},w.prototype._filterFindItemElements=function(n){var t;n=u(n);for(var r=this.options.itemSelector,i=[],e=0,h=n.length;h>e;e++)if(t=n[e],f(t))if(r){y(t,r)&&i.push(t);for(var s=t.querySelectorAll(r),o=0,c=s.length;c>o;o++)i.push(s[o])}else i.push(t);return i},w.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},w.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},w.prototype._init=w.prototype.layout,w.prototype._resetLayout=function(){this.getSize()},w.prototype.getSize=function(){this.size=v(this.element)},w.prototype._getMeasurement=function(n,t){var r,i=this.options[n];i?("string"==typeof i?r=this.element.querySelector(i):f(i)&&(r=i),this[n]=r?v(r)[t]:i):this[n]=0},w.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},w.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;u>t;t++)i=n[t],i.isIgnored||r.push(i);return r},w.prototype._layoutItems=function(n,t){function f(){e.emitEvent("layoutComplete",[e,n])}var e=this,i,r;if(!n||!n.length)return void f();this._itemsOn(n,"layout",f);for(var o=[],u=0,s=n.length;s>u;u++)i=n[u],r=this._getItemLayoutPosition(i),r.item=i,r.isInstant=t||i.isLayoutInstant,o.push(r);this._processLayoutQueue(o)},w.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},w.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},w.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},w.prototype._postLayout=function(){this.resizeContainer()},w.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},w.prototype._getContainerSize=h,w.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},w.prototype._itemsOn=function(n,t,i){function e(){return u++,u===o&&i.call(s),!0}for(var f,u=0,o=n.length,s=this,r=0,h=n.length;h>r;r++){f=n[r];f.on(t,e)}},w.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},w.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},w.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},w.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],e(i,this.stamps),this.unignore(i)},w.prototype._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u(n))},w.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},w.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},w.prototype._manageStamp=h,w.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,r=v(n);return{left:t.left-i.left-r.marginLeft,top:t.top-i.top-r.marginTop,right:i.right-t.right-r.marginRight,bottom:i.bottom-t.bottom-r.marginBottom}},w.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},w.prototype.bindResize=function(){this.isResizeBound||(o.bind(n,"resize",this),this.isResizeBound=!0)},w.prototype.unbindResize=function(){this.isResizeBound&&o.unbind(n,"resize",this);this.isResizeBound=!1},w.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},w.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},w.prototype.needsResizeLayout=function(){var n=v(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},w.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},w.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},w.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},w.prototype.reveal=function(n){var i=n&&n.length,t,r;if(i)for(t=0;i>t;t++)r=n[t],r.reveal()},w.prototype.hide=function(n){var i=n&&n.length,t,r;if(i)for(t=0;i>t;t++)r=n[t],r.hide()},w.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;r>t;t++)if(i=this.items[t],i.element===n)return i},w.prototype.getItems=function(n){var u,i;if(n&&n.length){for(var r=[],t=0,f=n.length;f>t;t++)u=n[t],i=this.getItem(u),i&&r.push(i);return r}},w.prototype.remove=function(n){var t,i,f,r;if(n=u(n),t=this.getItems(n),t&&t.length)for(this._itemsOn(t,"remove",function(){this.emitEvent("removeComplete",[this,t])}),i=0,f=t.length;f>i;i++)r=t[i],r.remove(),e(r,this.items)},w.prototype.destroy=function(){var t=this.element.style,n,r,u;for(t.height="",t.position="",t.width="",n=0,r=this.items.length;r>n;n++)u=this.items[n],u.destroy();this.unbindResize();delete this.element.outlayerGUID;i&&i.removeData(this.element,this.constructor.namespace)},w.data=function(n){var t=n&&n.outlayerGUID;return t&&b[t]},w.create=function(n,u){function f(){w.apply(this,arguments)}return Object.create?f.prototype=Object.create(w.prototype):t(f.prototype,w.prototype),f.prototype.constructor=f,f.defaults=t({},w.defaults),t(f.defaults,u),f.prototype.settings={},f.namespace=n,f.data=w.data,f.Item=function(){p.apply(this,arguments)},f.Item.prototype=new p,c(function(){for(var a,t,e,v,o=l(n),h=s.querySelectorAll(".js-"+o),c="data-"+o+"-options",u=0,y=h.length;y>u;u++){t=h[u];e=t.getAttribute(c);try{a=e&&JSON.parse(e)}catch(p){r&&r.error("Error parsing "+c+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new f(t,a);i&&i.data(t,n,v)}}),i&&i.bridget&&i.bridget(n,f),f},w.Item=p,w}var s=n.document,r=n.console,i=n.jQuery,h=function(){},a=Object.prototype.toString,f="object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1===n.nodeType&&"string"==typeof n.nodeName},v=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],o):n.Outlayer=o(n.eventie,n.docReady,n.EventEmitter,n.getSize,n.matchesSelector,n.Outlayer.Item)}(window),function(n){function t(n,t){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var n=this.items[0],i=n&&n.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth);this.cols=Math.max(this.cols,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;i>=r;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r}var i=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var u,i=0,r=n.length;r>i;i++)if(u=n[i],u===t)return i;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],t):n.Masonry=t(n.Outlayer,n.getSize)}(window);$(document).ready(function(){var i,n,r,t,u;$("#studysearchbtn").click(function(n){n.preventDefault();$("#studysearchform").submit()});$(".analytics-button").click(function(){if(typeof ga!="undefined"){var n=$(this).data("event-category"),t=$(this).data("event-label");ga("send","event",n,"Klikk",t)}});i=$(".tabs");i.length>0&&(n={},location.hash&&(r=$(".tabs li a").index($("a[href="+location.hash+"]")),n.active=r+1),$(".tabs").tabslet(n),setTimeout(function(){window.scrollTo(0,0)},1));$(".xform select").customSelect();t=$("#masonry-container");studyDropdownToggle();t.imagesLoaded(function(){t.masonry({itemSelector:".masonry-item"})});$("input[name=queryTemp]").keyup(function(){$("#primoQuery").val("any,contains,"+$(this).val().replace(",",""))});$("#loadmorelink").click(function(n){n.preventDefault();var t=$(this).attr("href");$("#loadmorecontainer").load(t+"&ajax=true",function(){var n,i,r;Modernizr.history&&history.pushState(null,null,t);n=$(".loadmoremeta").last().data("count");i=$("#loadmoretotal").text();n<i?(r=$(".loadmoremeta").last().data("nextpageurl"),$("#loadmorelink").attr("href",r),$("#loadmorecount").text(n)):($("#loadmorelinklabel").hide(),$("#loadmorecount").text(i))})});$("#spinnercontainer.spinner-immediate").length>0&&startSpinner();$("#snarveier a").click(function(n){n.preventDefault();var t=$(this).attr("href");t==="#innhold"&&$(t+" #focusthief").length>0&&(t="#focusthief");$("html, body").animate({scrollTop:$(t).offset().top-10});setTimeout(function(){$(t).find("a, input").first().focus()},0)});$("a[href^='#']").not("a[href='#']").not("#snarveier a").click(function(n){n.preventDefault();changeHashWithoutScrolling($(this).attr("href"));var i=$(this).attr("href"),t=$(i);t.length>0&&$("html, body").animate({scrollTop:t.offset().top})});setTimeout(function(){if(location.hash&&$(".ng-scope").length===0){window.scrollTo(0,0);var n=$(location.hash);n.length>0&&$("html, body").animate({scrollTop:n.offset().top})}},1);$(".fullheight").addClass("fullheight-js");u=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1;u&&$("body").css("min-height")=="100vh"&&$("body").css("min-height","0");$(".accordion-toggler").not(".open").children("ul").hide();$(".accordion-toggler ul").click(function(n){n.stopPropagation()});$(".accordion-toggler").click(function(){toggleAccordion($(this))})});$(window).resize(function(){studyDropdownToggle()});module=angular.module("studySearchApp",[]).constant("keyCodes",{esc:27,space:32,enter:13,tab:9,backspace:8,shift:16,ctrl:17,alt:18,capslock:20,numlock:144}).directive("keyBind",["keyCodes",function(n){function t(t){var r={},i,u;for(i in t)u=t[i],n.hasOwnProperty(i)&&(r[n[i]]=u);return r}return function(n,i,r){var u=t(n.$eval(r.keyBind));i.bind("keydown keypress",function(t){u.hasOwnProperty(t.which)&&(n.$apply(function(){n.$eval(u[t.which])}),t.preventDefault())})}}]);studySearchController=["$scope","$http","$timeout","$location",function(n,t,i,r){n.searchString="";n.language="";n.resultstring="";n.data={};n.count=0;n.timeInMs=0;n.urlKeys={HEALTH:"helse-og-sosialfag",TEACHER:"laererutdanning",MEDIA:"medie-og-kommunikasjonsfag",ENGINEER:"ingenioer-og-teknologifag",DIVING:"dykking",ECONOMY:"oekonomi-og-administrasjon",BACHELOR:"bachelor",MASTER:"master",PHD:"phd",POST:"etter-og-videreutdanning",PRE:"forkurs-realfagskurs-fagskoleutdanning",SHORT:"aars-og-toaarsstudium",PARTTIME:"deltid",FULLTIME:"heltid"};n.bachelorChecked=!1;n.masterChecked=!1;n.phdChecked=!1;n.afterEducationChecked=!1;n.preCourseChecked=!1;n.shorterChecked=!1;n.healthchecked=!1;n.enginchecked=!1;n.mediechecked=!1;n.teacherchecked=!1;n.ecochecked=!1;n.divingchecked=!1;n.partTimeChecked=!1;n.fullTimeChecked=!1;n.studybachelor=[];n.studymaster=[];n.studyphd=[];n.studyaftereducation=[];n.studypreparatorycourse=[];n.shorterstudies=[];var u=function(){n.timeInMs+=100;i(u,100);n.count=$(".searchResultItem").length};n.search=function(){var r="/service/search/study/"+n.language+"/"+n.searchString;t.get(r).then(function(t){stopSpinner();var r=t.data;n.count=r.length;n.resultstring=n.searchString;n.studybachelor=[];n.studymaster=[];n.studyphd=[];n.studyaftereducation=[];n.studypreparatorycourse=[];n.shorterstudies=[];n.studyweb=[];r.forEach(function(t){n.studyProgramFitsArea(t,"Bachelor")&&n.studybachelor.push(t);n.studyProgramFitsArea(t,"Master")&&n.studymaster.push(t);n.studyProgramFitsArea(t,"PHD")&&n.studyphd.push(t);n.studyProgramFitsArea(t,"EtterOgVidereutdanning")&&n.studyaftereducation.push(t);n.studyProgramFitsArea(t,"ForkursRealfagskursFagskoleutdanning")&&n.studypreparatorycourse.push(t);n.studyProgramFitsArea(t,"ArsOgToarsstudium")&&n.shorterstudies.push(t)});i(u,100)},function(){stopSpinner();console.log("Data feilet")})};n.getMetadataValue=function(n,t){var i="";return n.forEach(function(n){if(n.fieldName===t)return i=n.value,!1}),i};n.studyProgramFitsArea=function(t,i){var f=n.getMetadataValue(t.metadata,"Grad"),r,u;if(f===i)if(r=n.getMetadataValue(t.metadata,"Prosent"),r.length>0&&(n.partTimeChecked||n.fullTimeChecked)){if((u=parseInt(r),n.partTimeChecked&&u<100)||n.fullTimeChecked&&u===100)return!0}else return!0;return!1};n.masterhasElements=function(){return $(".masterItem").length>0};n.phdhasElements=function(){return $(".phdItem").length>0};n.afterhaselements=function(){return $(".afterEducationItem").length>0};n.bachelorhasElements=function(){return $(".bachelorEducationItem").length>0};n.prehasElements=function(){return $(".preEducationItem").length>0};n.shorterhasElements=function(){return $(".shorterEducationItem").length>0};n.go=function(){n.search();n.resultstring=n.searchString;n.count=$(".searchResultItem").length};n.oneChecked=function(){return n.bachelorChecked||n.masterChecked||n.phdChecked||n.afterEducationChecked||n.preCourseChecked||n.shorterChecked||n.healthchecked||n.enginchecked||n.mediechecked||n.teacherchecked||n.ecochecked||n.divingchecked};n.oneStudyTypeChecked=function(){return n.bachelorChecked||n.masterChecked||n.phdChecked||n.afterEducationChecked||n.preCourseChecked||n.shorterChecked};n.oneFagTypeChecked=function(){return n.healthchecked||n.enginchecked||n.mediechecked||n.teacherchecked||n.ecochecked||n.divingchecked};n.clear=function(){n.searchString=""};n.init=function(t,i,u){var f,e,o,s;n.language=u;n.searchString=t;f=n.getParsedLocation(r.path());f.fagomraader&&(e=f.fagomraader,e.contains(n.urlKeys.HEALTH)&&(n.healthchecked=!0),e.contains(n.urlKeys.TEACHER)&&(n.teacherchecked=!0),e.contains(n.urlKeys.MEDIA)&&(n.mediechecked=!0),e.contains(n.urlKeys.ENGINEER)&&(n.enginchecked=!0),e.contains(n.urlKeys.DIVING)&&(n.divingchecked=!0),e.contains(n.urlKeys.ECONOMY)&&(n.ecochecked=!0));f.studietyper&&(o=f.studietyper,o.contains(n.urlKeys.BACHELOR)&&(n.bachelorChecked=!0),o.contains(n.urlKeys.MASTER)&&(n.masterChecked=!0),o.contains(n.urlKeys.PHD)&&(n.phdChecked=!0),o.contains(n.urlKeys.POST)&&(n.afterEducationChecked=!0),o.contains(n.urlKeys.PRE)&&(n.preCourseChecked=!0),o.contains(n.urlKeys.SHORT)&&(n.shorterChecked=!0));f.varighet&&(s=f.varighet,s.contains(n.urlKeys.PARTTIME)&&(n.partTimeChecked=!0),s.contains(n.urlKeys.FULLTIME)&&(n.fullTimeChecked=!0));n.search()};n.getParsedLocation=function(){var t=r.path().replace(/^\/|\/$/g,"").split("/"),i={},n;if(t.length>1)for(n=0;n<t.length;n+=2)i[t[n]]=t[n+1].split(",");return i};n.filterChanged=function(){var i=[],t,u,f;n.healthchecked&&i.push(n.urlKeys.HEALTH);n.teacherchecked&&i.push(n.urlKeys.TEACHER);n.mediechecked&&i.push(n.urlKeys.MEDIA);n.enginchecked&&i.push(n.urlKeys.ENGINEER);n.divingchecked&&i.push(n.urlKeys.DIVING);n.ecochecked&&i.push(n.urlKeys.ECONOMY);t=[];n.bachelorChecked&&t.push(n.urlKeys.BACHELOR);n.masterChecked&&t.push(n.urlKeys.MASTER);n.phdChecked&&t.push(n.urlKeys.PHD);n.afterEducationChecked&&t.push(n.urlKeys.POST);n.preCourseChecked&&t.push(n.urlKeys.PRE);n.shorterChecked&&t.push(n.urlKeys.SHORT);u=[];n.partTimeChecked&&u.push(n.urlKeys.PARTTIME);n.fullTimeChecked&&u.push(n.urlKeys.FULLTIME);f=[];i.length>0&&f.push("fagomraader/"+i.join(","));t.length>0&&f.push("studietyper/"+t.join(","));u.length>0&&f.push("varighet/"+u.join(","));r.path(f.join("/"))};n.filterFag=function(t){var i=!1;return t.indexOf("HelseOgSosialfag")!==-1&&n.healthchecked&&(i=!0),t.indexOf("Larerutdanning")!==-1&&n.teacherchecked&&(i=!0),t.indexOf("MedieOgInformasjonsfag")!==-1&&n.mediechecked&&(i=!0),t.indexOf("IngeniorOgTeknologifag")!==-1&&n.enginchecked&&(i=!0),t.indexOf("Dykking")!==-1&&n.divingchecked&&(i=!0),t.indexOf("IngeniorOgTeknologifag")!==-1&&n.enginchecked&&(i=!0),t.indexOf("OkonomiOgAdministrasjon")!==-1&&n.ecochecked&&(i=!0),i};n.bachelorFilter=function(t){if(!n.oneChecked()||n.bachelorChecked&&!n.oneFagTypeChecked())return!0;if(!n.oneStudyTypeChecked()&&n.oneFagTypeChecked()||n.bachelorChecked){var i=n.getMetadataValue(t.metadata,"Linje");if(i.length>0)return n.filterFag(i)}return!1};n.masterFilter=function(t){if(!n.oneChecked()||n.masterChecked&&!n.oneFagTypeChecked())return!0;if(!n.oneStudyTypeChecked()&&n.oneFagTypeChecked()||n.masterChecked){var i=n.getMetadataValue(t.metadata,"Linje");if(i.length>0)return n.filterFag(i)}return!1};n.phdFilter=function(t){if(!n.oneChecked()||n.phdChecked&&!n.oneFagTypeChecked())return!0;if(!n.oneStudyTypeChecked()&&n.oneFagTypeChecked()||n.phdChecked){var i=n.getMetadataValue(t.metadata,"Linje");if(i.length>0)return n.filterFag(i)}return!1};n.postCourseFilter=function(t){if(!n.oneChecked()||n.afterEducationChecked&&!n.oneFagTypeChecked())return!0;if(!n.oneStudyTypeChecked()&&n.oneFagTypeChecked()||n.afterEducationChecked){var i=n.getMetadataValue(t.metadata,"Linje");if(i.length>0)return n.filterFag(i)}return!1};n.preCourseFilter=function(t){if(!n.oneChecked()||n.preCourseChecked&&!n.oneFagTypeChecked())return!0;if(!n.oneStudyTypeChecked()&&n.oneFagTypeChecked()||n.preCourseChecked){var i=n.getMetadataValue(t.metadata,"Linje");if(i.length>0)return n.filterFag(i)}return!1};n.shorterFilter=function(t){if(!n.oneChecked()||n.shorterChecked&&!n.oneFagTypeChecked())return!0;if(!(n.oneStudyTypeChecked()&&n.oneFagTypeChecked())||n.shorterChecked){var i=n.getMetadataValue(t.metadata,"Linje");if(i.length>0)return n.filterFag(i)}return!1}}];Array.prototype.contains=function(n){for(var t=this.length;t--;)if(this[t]===n)return!0;return!1};var module=angular.module("searchApp",["ngSanitize"]),searchController=["$scope","$http","$timeout","$sce","$location",function(n,t,i,r,u){n.count=0;n.searchString="";n.language="";n.quantity=5;n.quantityPerson=5;n.quantityStudies=5;n.quantityCalendar=5;n.quantityArticle=5;n.quantityOther=5;n.quantityPublications=5;n.urlKeys={PEOPLE:"personer",STUDIES:"studietilbud",EVENTS:"kalender",ARTICLES:"nyheter",OTHER:"annet"};n.personChecked=!1;n.studiesChecked=!1;n.calendarChecked=!1;n.articleChecked=!1;n.otherChecked=!1;n.besthits=[];n.studies=[];n.persons=[];n.calendars=[];n.articles=[];n.others=[];n.toHtml=function(n){return r.trustAsHtml(n)};var f=function(){n.timeInMs+=100;i(f,100);n.count=n.besthits.length};n.init=function(t,i){var f,r;n.searchString=t;n.language=i;f=n.getParsedLocation(u.path());f.typer&&(r=f.typer,r.contains(n.urlKeys.PEOPLE)&&(n.personChecked=!0),r.contains(n.urlKeys.STUDIES)&&(n.studiesChecked=!0),r.contains(n.urlKeys.EVENTS)&&(n.calendarChecked=!0),r.contains(n.urlKeys.ARTICLES)&&(n.articleChecked=!0),r.contains(n.urlKeys.OTHER)&&(n.otherChecked=!0));n.search()};n.search=function(){var i="/service/search/content/"+n.language+"/"+n.searchString;t.get(i).then(function(t){var r,i;for(stopSpinner(),r=t.data,n.count=t.data.count,n.besthits=[],n.studies=[],n.persons=[],n.calendars=[],n.articles=[],n.others=[],i=0;i<r.length;i++)r[i].id=r[i].id.replace(new RegExp(/\|/g),""),r[i].type.indexOf("ResourcePage")<0&&(n.besthits.push(r[i]),r[i].type.indexOf("StudieprogramPageData")>-1?n.studies.push(r[i]):r[i].type.indexOf("ArticlePage")>-1?n.articles.push(r[i]):r[i].type.indexOf("CalendarPage")>-1?n.calendars.push(r[i]):r[i].type.indexOf("UserIndexData")>-1?n.persons.push(r[i]):n.others.push(r[i]))},function(){stopSpinner();console.log("Data feilet")})};n.filterChanged=function(){var t=[],i;n.personChecked&&t.push(n.urlKeys.PEOPLE);n.studiesChecked&&t.push(n.urlKeys.STUDIES);n.calendarChecked&&t.push(n.urlKeys.EVENTS);n.articleChecked&&t.push(n.urlKeys.ARTICLES);n.otherChecked&&t.push(n.urlKeys.OTHER);i=[];t.length>0&&i.push("typer/"+t.join(","));u.path(i.join("/"))};n.getParsedLocation=function(){var t=u.path().replace(/^\/|\/$/g,"").split("/"),i={},n;if(t.length>1)for(n=0;n<t.length;n+=2)i[t[n]]=t[n+1].split(",");return i};n.stripText=function(n){var t=n;return t=t.replace(/<\/?[^>]+>/gi,""),n.length>255&&(t=t.substr(0,255)+"..."),t};n.getPhoneNumber=function(n){return n.type.indexOf("UserIndexData")>-1&&n.metadata[2].value!=="undefined"?n.metadata[2].value:""};n.getPhoneNumberLink=function(t){return n.getPhoneNumber(t)!==""?"tel:"+n.getPhoneNumber(t):""};n.getEmail=function(n){return n.type.indexOf("UserIndexData")>-1&&n.metadata[3].value!=="undefined"?n.metadata[3].value:""};n.getDepartment=function(n){return n.type.indexOf("UserIndexData")>-1&&n.metadata[5].value!=="undefined"?n.metadata[5].value:""};n.getDescriptionAndDepartment=function(t){return n.getDescription(t).length>0&&n.getDepartment(t).length>0?n.getDescription(t)+", "+n.getDepartment(t):""};n.getMailtoAddress=function(t){return n.getEmail(t)!==""?"mailto:"+n.getEmail(t):""};n.getDescription=function(t){var i=t.description,r=t.text;return t.type.indexOf("UserIndexData")>-1?t.metadata[0].value!=="undefined"?n.stripText(t.metadata[0].value):"":i.length>0&&i.length!=="undefined"?n.stripText(i):r.length>0&&r.length!=="undefined"?n.stripText(r):""};n.oneChecked=function(){return n.personChecked||n.studiesChecked||n.calendarChecked||n.articleChecked||n.otherChecked};n.outputFilter=function(t){return n.oneChecked()?t.type.indexOf("StudieprogramPageData")>-1&&n.studiesChecked?!0:t.type.indexOf("ArticlePage")>-1&&n.articleChecked||t.type.indexOf("CalendarPage")>-1&&n.calendarChecked||t.type.indexOf("UserIndexData")>-1&&n.personChecked||t.type.indexOf("StudieprogramPageData")>-1&&t.type.indexOf("ArticlePage")<0&&t.type.indexOf("CalendarPage")<0&&n.otherChecked?!0:!1:!0};n.disableSectionBesthits=function(){return n.besthits.length<1?!1:n.getNumbersInRecommended("CalendarPage")>0||n.getNumbersInRecommended("StudieprogramPageData")>0||n.getNumbersInRecommended("ArticlePage")||n.getNumbersInRecommended("UserIndexData")||n.getNumbersInRecommended("")};n.disableSectionKalender=function(){return!n.oneChecked()&&n.calendars.length&&n.calendars.length>n.getNumbersInRecommended("CalendarPage")?!0:n.calendars.length>0&&n.calendarChecked&&n.calendars.length>n.getNumbersInRecommended("CalendarPage")?!0:!1};n.disableSectionOther=function(){return!n.oneChecked()&&n.others.length>0&&n.others.length>n.getNumbersInRecommended("")?!0:n.others.length>0&&n.otherChecked&&n.others.length>n.getNumbersInRecommended("")?!0:!1};n.disableSectionArticles=function(){return!n.oneChecked()&&n.articles.length>0&&n.articles.length>n.getNumbersInRecommended("ArticlePage")?!0:n.articles.length>0&&n.articleChecked&&n.articles.length>n.getNumbersInRecommended("ArticlePage")?!0:!1};n.disableSectionStudies=function(){return!n.oneChecked()&&n.studies.length>0&&n.studies.length>n.getNumbersInRecommended("StudieprogramPageData")?!0:n.studiesChecked&&n.studies.length>0&&n.studies.length>n.getNumbersInRecommended("StudieprogramPageData")?!0:!1};n.disableSectionPersons=function(){return!n.oneChecked()&&n.persons.length>0&&n.persons.length>n.getNumbersInRecommended("UserIndexData")?!0:n.persons.length>0&&n.personChecked&&n.persons.length>n.getNumbersInRecommended("UserIndexData")?!0:!1};n.filterRecommended=function(n){return $("#"+n.id).length>0?!1:!0};n.getMaxNumber=function(t){return t==="StudieprogramPageData"?n.studies.length-n.getNumbersInRecommended(t):t==="ArticlePage"?n.articles.length-n.getNumbersInRecommended(t):t==="UserIndexData"?n.persons.length-n.getNumbersInRecommended(t):t==="CalendarPage"?n.calendars.length-n.getNumbersInRecommended(t):n.others.length-n.getNumbersInRecommended(t)};n.getNumbersInRecommended=function(n){return n==="StudieprogramPageData"||n==="ArticlePage"||n==="UserIndexData"||n==="CalendarPage"?$("li[data-contenttype='"+n+"']").length:$("li[data-contenttype]").length-$("li[data-contenttype='StudieprogramPageData']").length-$("li[data-contenttype='ArticlePage']").length-$("li[data-contenttype='UserIndexData']").length-$("li[data-contenttype='CalendarPage']").length};n.showQuantity=function(t){var i=n.getNumbersInRecommended(t);return t==="StudieprogramPageData"?n.quantityStudies<n.studies.length-i:t==="ArticlePage"?n.quantityArticle<n.articles.length-i:t==="CalendarPage"?n.quantityCalendar<n.calendars.length-i:t==="UserIndexData"?n.quantityPerson<n.persons.length-i:n.quantityOther<n.others.length-i};n.showTotalQuantity=function(){var i=n.getNumbersInRecommended("CalendarPage")+n.getNumbersInRecommended("StudieprogramPageData")+n.getNumbersInRecommended("ArticlePage")+n.getNumbersInRecommended("UserIndexData")+n.getNumbersInRecommended(""),t=0;return((!n.oneChecked()||n.studiesChecked)&&(t+=n.studies.length-n.getNumbersInRecommended("StudieprogramPageData")),(!n.oneChecked()||n.personChecked)&&(t+=n.persons.length-n.getNumbersInRecommended("UserIndexData")),(!n.oneChecked()||n.calendarChecked)&&(t+=n.calendars.length-n.getNumbersInRecommended("CalendarPage")),(!n.oneChecked()||n.articleChecked)&&(t+=n.articles.length-n.getNumbersInRecommended("ArticlePage")),(!n.oneChecked()||n.otherChecked)&&(t+=n.others.length-n.getNumbersInRecommended("")),!n.oneChecked())?n.besthits.length:t+i};n.showMoreStudies=function(){var i=5,r=n.getNumbersInRecommended("StudieprogramPageData"),t;n.getMaxNumber("StudieprogramPageData")>n.quantityStudies+(i-r)?(t=n.getMaxNumber("StudieprogramPageData")-n.quantityStudies,t<=0&&(n.quantityStudies=n.studies.length-r),n.quantityStudies+=t<=i?t:i):n.quantityStudies=n.studies.length-r};n.showMoreArticles=function(){var i=5,r=n.getNumbersInRecommended("ArticlePage"),t;n.getMaxNumber("ArticlePage")>n.quantityArticle+(i-r)?(t=n.getMaxNumber("ArticlePage")-n.quantityArticle,t<=0&&(n.quantityArticle=n.articles.length-r),n.quantityArticle+=t<=i?t:i):n.quantityArticle=n.articles.length-r};n.showMorePersons=function(){var i=5,r=n.getNumbersInRecommended("UserIndexData"),t;n.getMaxNumber("UserIndexData")>n.quantityPerson+(i-r)?(t=n.getMaxNumber("UserIndexData")-n.quantityPerson,t<=0&&(n.quantityPerson=n.persons.length-r),n.quantityPerson+=t<=i?t:i):n.quantityPerson=n.persons.length-r};n.showMoreCalendars=function(){var i=5,r=n.getNumbersInRecommended("CalendarPage"),t;n.getMaxNumber("CalendarPage")>n.quantityCalendar+(i-r)?(t=n.getMaxNumber("CalendarPage")-n.quantityCalendar,t<=0&&(n.quantityCalendar=n.calendars.length-r),n.quantityCalendar+=t<=i?t:i):n.quantityCalendar=n.calendars.length-r};n.showMoreOthers=function(){var i=5,r=n.getNumbersInRecommended(""),t;n.getMaxNumber("")>n.quantityOther+(i-r)?(t=n.getMaxNumber("")-n.quantityOther,t<=0&&(n.quantityOther=n.others.length-r),n.quantityOther+=t<=i?t:i):n.quantityOther=n.others.length-r};n.hideFacet=function(n){console.log(n.length)}}],module=angular.module("searchResourceApp",["ngSanitize"]).constant("keyCodes",{esc:27,space:32,enter:13,tab:9,backspace:8,shift:16,ctrl:17,alt:18,capslock:20,numlock:144}).directive("keyBind",["keyCodes",function(n){function t(t){var r={},i,u;for(i in t)u=t[i],n.hasOwnProperty(i)&&(r[n[i]]=u);return r}return function(n,i,r){var u=t(n.$eval(r.keyBind));i.bind("keydown keypress",function(t){u.hasOwnProperty(t.which)&&(n.$apply(function(){n.$eval(u[t.which])}),t.preventDefault())})}}]),resourcesearchcontroller=["$scope","$http","$sce",function(n,t,i){n.searchString="";n.language="no";n.outputSearchString="";n.count=0;n.data=[];n.toHtml=function(n){return i.trustAsHtml(n)};n.search=function(){if(n.data=[],n.outputSearchString="",!(n.searchString.length<1)){var i="/service/search/resource/"+n.language+"/"+n.searchString;t.get(i).then(function(t){for(var i=t.data,r=0;r<i.length;r++)n.data.push(i[r]);n.count=i.length;n.outputSearchString=n.searchString},function(){console.log("Data feilet")})}};n.itemIsRestricted=function(n){for(var i,t=0;t<n.metadata.length;t++)if(i=n.metadata[t],i.fieldName==="restricted"&&i.value==="true")return!0;return!1};n.itemUrl=function(n){for(var i,t=0;t<n.metadata.length;t++)if(i=n.metadata[t],i.fieldName==="resourceurl")return i.value;return""};n.init=function(t,i){n.searchString=t;n.language=i;n.go()};n.go=function(){n.search()}}],module=angular.module("pageNotFound",[]).constant("keyCodes",{esc:27,space:32,enter:13,tab:9,backspace:8,shift:16,ctrl:17,alt:18,capslock:20,numlock:144}).directive("keyBind",["keyCodes",function(n){function t(t){var r={},i,u;for(i in t)u=t[i],n.hasOwnProperty(i)&&(r[n[i]]=u);return r}return function(n,i,r){var u=t(n.$eval(r.keyBind));i.bind("keydown keypress",function(t){u.hasOwnProperty(t.which)&&(n.$apply(function(){n.$eval(u[t.which])}),t.preventDefault())})}}]),pageNotFoundController=["$scope","$http","$timeout",function(n,t){n.adminResponseMail={mail:"",comment:"",url:"",message:"",showForm:!0,lang:""};n.sendMail=function(){startSpinner();var i=JSON.stringify(n.adminResponseMail);t.post("/service/SendMail/SendAdminMail/",i).success(function(t,i){i==200&&(n.adminResponseMail=t);stopSpinner()}).error(function(){stopSpinner()})};n.init=function(t,i){n.adminResponseMail.url=t;n.adminResponseMail.lang=i};n.enter=function(){n.sendMail()}}];(function(){var t=Array.prototype.indexOf?function(n,t){return t.indexOf(n)}:function(n,t){for(var i=t.length;i--;)if(t[i]===n)return i;return-1},i=function(n,t,i,r,u){this.id=n?n:"";this.name=t?t:"";this.url=i?i:"";this.typeText=r?r:"";this.responsible=u?u:""},r=function(n){this.username=n?n:"";this.pagelist=[]},n;angular.module("pageResponsibleApp",["ngTable"]);angular.module("pageResponsibleApp").filter("getOrdered",function(){return function(n){var t={};for(var i in n)t[n[i].name]=n[i];return t}});n=["$scope","$http","$q","$filter","ngTableParams",function(n,u,f,e,o){var h;n.pageEntries=[];n.allUsers=[];n.selectedUser={};n.checkboxes={allChecked:!1,items:{}};n.saveResult="";h=function(){var t=f.all([u.get("/service/pageresponsible"),u.get("/service/users")]).then(function(t){var i=t[0].data,r=t[1].data;n.allUsers=r;n.pageEntries=v(i);y(n.pageEntries);w();p();n.selectedUser=n.allUsers[0]});t["finally"](function(){stopSpinner()})};n.saveChanges=function(){var i=new r(n.selectedUser.userName),f=[],t,e;angular.forEach(n.pageEntries,function(t){n.checkboxes.items[t.id]&&(i.pagelist.push(t.id),f.push(t))});t="";e=u.put("/service/responsible",i).success(function(n){n?(t="Endringen ble lagret",c(f),l()):t="En feil oppstod under lagring."}).error(function(){t="En feil oppstod under lagring"});e["finally"](function(){n.saveResult=t})};var c=function(t){angular.forEach(t,function(t){t.responsible=n.selectedUser.name})},l=function(){n.checkboxes.allChecked=!1;n.checkboxes.items={}},a=function(t){if(s(t))return"";var i="";return angular.forEach(n.allUsers,function(n){s(n.userName)||n.userName.toLowerCase()!==t.toLowerCase()||s(n.name)||(i=n.name)}),i?i:t},v=function(n){var t=[];return angular.forEach(n,function(n){var r=a(n.responsible);t.push(new i(n.id,n.name,n.url,n.typeText,r))}),t},s=function(n){return angular.isUndefined(n)||n===null},y=function(t){n.tableParams=new o({page:1,count:10},{total:t.length,getData:function(i,r){var u=r.sorting()?e("orderBy")(t,r.orderBy()):t;u=r.filter()?e("filter")(u,r.filter()):u;r.total(u.length);i.resolve(n.pageEntries=u.slice((r.page()-1)*r.count(),r.page()*r.count()))}})},p=function(){n.$watch("checkboxes.allChecked",function(t){angular.forEach(n.pageEntries,function(i){angular.isDefined(i.id)&&(n.checkboxes.items[i.id]=t)})},!0)},w=function(){n.$watch("checkboxes.items",function(){if(n.pageEntries){var t=0,i=0,r=n.pageEntries.length;angular.forEach(n.pageEntries,function(r){t+=n.checkboxes.items[r.id]||0;i+=!n.checkboxes.items[r.id]||0});(i===0||t===0)&&(n.checkboxes.allChecked=t==r);angular.element(document.getElementById("select_all")).prop("indeterminate",t!==0&&i!==0)}},!0)};h();n.doFilter=function(){var i=f.defer(),r=[],u=[];return angular.forEach(n.pageEntries,function(n){t(n.name,r)===-1&&(r.push(n.name),u.push({id:n.name,title:n.name}))}),i.resolve(u),i}}];angular.module("pageResponsibleApp").controller("pageResponsibleController",n)})()