{"size": 548837, "ext": "js", "max_stars_repo_path": "build/js/dependenciesJs.js", "max_stars_repo_name": "kpingul/shoppingWidget", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/js/dependenciesJs.js", "max_issues_repo_name": "kpingul/shoppingWidget", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/js/dependenciesJs.js", "max_forks_repo_name": "kpingul/shoppingWidget", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24947.1363636364, "max_line_length": 32054, "alphanum_fraction": 0.6760659358}
!function(t,e,n){"use strict";function i(t){return function(){var e,n=arguments[0];for(e="["+(t?t+":":"")+n+"] http://errors.angularjs.org/1.4.3/"+(t?t+"/":"")+n,n=1;n<arguments.length;n++){e=e+(1==n?"?":"&")+"p"+(n-1)+"=";var i,r=encodeURIComponent;i=arguments[n],i="function"==typeof i?i.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof i?"undefined":"string"!=typeof i?JSON.stringify(i):i,e+=r(i)}return Error(e)}}function r(t){if(null==t||A(t))return!1;var e="length"in Object(t)&&t.length;return t.nodeType===di&&e?!0:_(t)||ni(t)||0===e||"number"==typeof e&&e>0&&e-1 in t}function o(t,e,n){var i,a;if(t)if(S(t))for(i in t)"prototype"==i||"length"==i||"name"==i||t.hasOwnProperty&&!t.hasOwnProperty(i)||e.call(n,t[i],i,t);else if(ni(t)||r(t)){var s="object"!=typeof t;for(i=0,a=t.length;a>i;i++)(s||i in t)&&e.call(n,t[i],i,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(x(t))for(i in t)e.call(n,t[i],i,t);else if("function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else for(i in t)Un.call(t,i)&&e.call(n,t[i],i,t);return t}function a(t,e,n){for(var i=Object.keys(t).sort(),r=0;r<i.length;r++)e.call(n,t[i[r]],i[r]);return i}function s(t){return function(e,n){t(n,e)}}function l(){return++ti}function c(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function u(t,e,n){for(var i=t.$$hashKey,r=0,o=e.length;o>r;++r){var a=e[r];if(w(a)||S(a))for(var s=Object.keys(a),l=0,d=s.length;d>l;l++){var p=s[l],f=a[p];n&&w(f)?C(f)?t[p]=new Date(f.valueOf()):(w(t[p])||(t[p]=ni(f)?[]:{}),u(t[p],[f],!0)):t[p]=f}}return c(t,i),t}function d(t){return u(t,Gn.call(arguments,1),!1)}function p(t){return u(t,Gn.call(arguments,1),!0)}function f(t){return parseInt(t,10)}function h(t,e){return d(Object.create(t),e)}function m(){}function g(t){return t}function v(t){return function(){return t}}function $(t){return S(t.toString)&&t.toString!==Object.prototype.toString}function y(t){return"undefined"==typeof t}function b(t){return"undefined"!=typeof t}function w(t){return null!==t&&"object"==typeof t}function x(t){return null!==t&&"object"==typeof t&&!Zn(t)}function _(t){return"string"==typeof t}function k(t){return"number"==typeof t}function C(t){return"[object Date]"===Yn.call(t)}function S(t){return"function"==typeof t}function T(t){return"[object RegExp]"===Yn.call(t)}function A(t){return t&&t.window===t}function E(t){return t&&t.$evalAsync&&t.$watch}function O(t){return"boolean"==typeof t}function D(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function P(t){var e={};t=t.split(",");var n;for(n=0;n<t.length;n++)e[t[n]]=!0;return e}function j(t){return Bn(t.nodeName||t[0]&&t[0].nodeName)}function M(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function N(t,e,n,i){if(A(t)||E(t))throw Jn("cpws");if(ii.test(Yn.call(e)))throw Jn("cpta");if(e){if(t===e)throw Jn("cpi");n=n||[],i=i||[],w(t)&&(n.push(t),i.push(e));var r;if(ni(t))for(r=e.length=0;r<t.length;r++)e.push(N(t[r],null,n,i));else{var a=e.$$hashKey;if(ni(e)?e.length=0:o(e,function(t,n){delete e[n]}),x(t))for(r in t)e[r]=N(t[r],null,n,i);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=N(t[r],null,n,i));else for(r in t)Un.call(t,r)&&(e[r]=N(t[r],null,n,i));c(e,a)}}else if(e=t,w(t)){if(n&&-1!==(a=n.indexOf(t)))return i[a];if(ni(t))return N(t,[],n,i);if(ii.test(Yn.call(t)))e=new t.constructor(t);else if(C(t))e=new Date(t.getTime());else{if(!T(t))return r=Object.create(Zn(t)),N(t,r,n,i);e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),e.lastIndex=t.lastIndex}i&&(n.push(t),i.push(e))}return e}function q(t,e){if(ni(t)){e=e||[];for(var n=0,i=t.length;i>n;n++)e[n]=t[n]}else if(w(t))for(n in e=e||{},t)("$"!==n.charAt(0)||"$"!==n.charAt(1))&&(e[n]=t[n]);return e||t}function H(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var i,r=typeof t;if(r==typeof e&&"object"==r){if(!ni(t)){if(C(t))return C(e)?H(t.getTime(),e.getTime()):!1;if(T(t))return T(e)?t.toString()==e.toString():!1;if(E(t)||E(e)||A(t)||A(e)||ni(e)||C(e)||T(e))return!1;r=ct();for(i in t)if("$"!==i.charAt(0)&&!S(t[i])){if(!H(t[i],e[i]))return!1;r[i]=!0}for(i in e)if(!(i in r||"$"===i.charAt(0)||e[i]===n||S(e[i])))return!1;return!0}if(!ni(e))return!1;if((r=t.length)==e.length){for(i=0;r>i;i++)if(!H(t[i],e[i]))return!1;return!0}}return!1}function F(t,e,n){return t.concat(Gn.call(e,n))}function I(t,e){var n=2<arguments.length?Gn.call(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,F(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function L(t,i){var r=i;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=n:A(i)?r="$WINDOW":i&&e===i?r="$DOCUMENT":E(i)&&(r="$SCOPE"),r}function R(t,e){return"undefined"==typeof t?n:(k(e)||(e=e?2:null),JSON.stringify(t,L,e))}function z(t){return _(t)?JSON.parse(t):t}function V(t,e){var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function B(t,e,n){n=n?-1:1;var i=V(e,t.getTimezoneOffset());return e=t,t=n*(i-t.getTimezoneOffset()),e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function U(t){t=Ln(t).clone();try{t.empty()}catch(e){}var n=Ln("<div>").append(t).html();try{return t[0].nodeType===pi?Bn(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Bn(e)})}catch(i){return Bn(n)}}function W(t){try{return decodeURIComponent(t)}catch(e){}}function G(t){var e,n,i={};return o((t||"").split("&"),function(t){t&&(e=t.replace(/\+/g,"%20").split("="),n=W(e[0]),b(n)&&(t=b(e[1])?W(e[1]):!0,Un.call(i,n)?ni(i[n])?i[n].push(t):i[n]=[i[n],t]:i[n]=t))}),i}function Q(t){var e=[];return o(t,function(t,n){ni(t)?o(t,function(t){e.push(Y(n,!0)+(!0===t?"":"="+Y(t,!0)))}):e.push(Y(n,!0)+(!0===t?"":"="+Y(t,!0)))}),e.length?e.join("&"):""}function X(t){return Y(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Y(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function Z(t,e){var n,i,r=li.length;for(i=0;r>i;++i)if(n=li[i]+e,_(n=t.getAttribute(n)))return n;return null}function J(t,e){var n,i,r={};o(li,function(e){e+="app",!n&&t.hasAttribute&&t.hasAttribute(e)&&(n=t,i=t.getAttribute(e))}),o(li,function(e){e+="app";var r;!n&&(r=t.querySelector("["+e.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(e))}),n&&(r.strictDi=null!==Z(n,"strict-di"),e(n,i?[i]:[],r))}function K(n,i,r){w(r)||(r={}),r=d({strictDi:!1},r);var a=function(){if(n=Ln(n),n.injector()){var t=n[0]===e?"document":U(n);throw Jn("btstrpd",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}return i=i||[],i.unshift(["$provide",function(t){t.value("$rootElement",n)}]),r.debugInfoEnabled&&i.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),i.unshift("ng"),t=Ft(i,r.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply(function(){e.data("$injector",i),n(e)(t)})}]),t},s=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return t&&s.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!l.test(t.name)?a():(t.name=t.name.replace(l,""),Kn.resumeBootstrap=function(t){return o(t,function(t){i.push(t)}),a()},void(S(Kn.resumeDeferredBootstrap)&&Kn.resumeDeferredBootstrap()))}function tt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function et(t){if(t=Kn.element(t).injector(),!t)throw Jn("test");return t.get("$$testability")}function nt(t,e){return e=e||"_",t.replace(ci,function(t,n){return(n?e:"")+t.toLowerCase()})}function it(){var e;if(!ui){var i=si();Rn=t.jQuery,b(i)&&(Rn=null===i?n:t[i]),Rn&&Rn.fn.on?(Ln=Rn,d(Rn.fn,{scope:Ci.scope,isolateScope:Ci.isolateScope,controller:Ci.controller,injector:Ci.injector,inheritedData:Ci.inheritedData}),e=Rn.cleanData,Rn.cleanData=function(t){var n;if(ei)ei=!1;else for(var i,r=0;null!=(i=t[r]);r++)(n=Rn._data(i,"events"))&&n.$destroy&&Rn(i).triggerHandler("$destroy");e(t)}):Ln=mt,Kn.element=Ln,ui=!0}}function rt(t,e,n){if(!t)throw Jn("areq",e||"?",n||"required");return t}function ot(t,e,n){return n&&ni(t)&&(t=t[t.length-1]),rt(S(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function at(t,e){if("hasOwnProperty"===t)throw Jn("badname",e)}function st(t,e,n){if(!e)return t;e=e.split(".");for(var i,r=t,o=e.length,a=0;o>a;a++)i=e[a],t&&(t=(r=t)[i]);return!n&&S(t)?I(r,t):t}function lt(t){var e=t[0];t=t[t.length-1];var n=[e];do{if(e=e.nextSibling,!e)break;n.push(e)}while(e!==t);return Ln(n)}function ct(){return Object.create(null)}function ut(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=i("$injector"),r=i("ng");return t=e(t,"angular",Object),t.$$minErr=t.$$minErr||i,e(t,"module",function(){var t={};return function(i,o,a){if("hasOwnProperty"===i)throw r("badname","module");return o&&t.hasOwnProperty(i)&&(t[i]=null),e(t,i,function(){function t(t,e,n,i){return i||(i=r),function(){return i[n||"push"]([t,e,arguments]),u}}function e(t,e){return function(n,o){return o&&S(o)&&(o.$$moduleName=i),r.push([t,e,arguments]),u}}if(!o)throw n("nomod",i);var r=[],s=[],l=[],c=t("$injector","invoke","push",s),u={_invokeQueue:r,_configBlocks:s,_runBlocks:l,requires:o,name:i,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:c,run:function(t){return l.push(t),this}};return a&&c(a),u})}})}function dt(e){d(e,{bootstrap:K,copy:N,extend:d,merge:p,equals:H,element:Ln,forEach:o,injector:Ft,noop:m,bind:I,toJson:R,fromJson:z,identity:g,isUndefined:y,isDefined:b,isString:_,isFunction:S,isObject:w,isNumber:k,isElement:D,isArray:ni,version:fi,isDate:C,lowercase:Bn,uppercase:Wn,callbacks:{counter:0},getTestability:et,$$minErr:i,$$csp:ai,reloadWithDebugInfo:tt}),zn=ut(t);try{zn("ngLocale")}catch(n){zn("ngLocale",[]).provider("$locale",fe)}zn("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Xe}),t.provider("$compile",Gt).directive({a:yr,input:Nr,textarea:Nr,form:_r,script:ko,select:To,style:Eo,option:Ao,ngBind:Fr,ngBindHtml:Lr,ngBindTemplate:Ir,ngClass:zr,ngClassEven:Br,ngClassOdd:Vr,ngCloak:Ur,ngController:Wr,ngForm:kr,ngHide:$o,ngIf:Xr,ngInclude:Yr,ngInit:Jr,ngNonBindable:uo,ngPluralize:mo,ngRepeat:go,ngShow:vo,ngStyle:yo,ngSwitch:bo,ngSwitchWhen:wo,ngSwitchDefault:xo,ngOptions:ho,ngTransclude:_o,ngModel:so,ngList:Kr,ngChange:Rr,pattern:Do,ngPattern:Do,required:Oo,ngRequired:Oo,minlength:jo,ngMinlength:jo,maxlength:Po,ngMaxlength:Po,ngValue:Hr,ngModelOptions:co}).directive({ngInclude:Zr}).directive(br).directive(Gr),t.provider({$anchorScroll:It,$animate:Fi,$$animateQueue:Hi,$$AnimateRunner:qi,$browser:Bt,$cacheFactory:Ut,$controller:Zt,$document:Jt,$exceptionHandler:Kt,$filter:un,$interpolate:de,$interval:pe,$http:se,$httpParamSerializer:ee,$httpParamSerializerJQLike:ne,$httpBackend:ce,$location:Se,$log:Te,$parse:Ve,$rootScope:Qe,$q:Be,$$q:Ue,$sce:Ke,$sceDelegate:Je,$sniffer:tn,$templateCache:Wt,$templateRequest:en,$$testability:nn,$timeout:rn,$window:sn,$$rAF:Ge,$$jqLite:Mt,$$HashMap:Ei,$$cookieReader:cn})}])}function pt(t){return t.replace(gi,function(t,e,n,i){return i?n.toUpperCase():n}).replace(vi,"Moz$1")}function ft(t){return t=t.nodeType,t===di||!t||9===t}function ht(t,e){var n,i,r=e.createDocumentFragment(),a=[];if(wi.test(t)){for(n=n||r.appendChild(e.createElement("div")),i=(xi.exec(t)||["",""])[1].toLowerCase(),i=ki[i]||ki._default,n.innerHTML=i[1]+t.replace(_i,"<$1></$2>")+i[2],i=i[0];i--;)n=n.lastChild;a=F(a,n.childNodes),n=r.firstChild,n.textContent=""}else a.push(e.createTextNode(t));return r.textContent="",r.innerHTML="",o(a,function(t){r.appendChild(t)}),r}function mt(t){if(t instanceof mt)return t;var n;if(_(t)&&(t=ri(t),n=!0),!(this instanceof mt)){if(n&&"<"!=t.charAt(0))throw yi("nosel");return new mt(t)}if(n){n=e;var i;t=(i=bi.exec(t))?[n.createElement(i[1])]:(i=ht(t,n))?i.childNodes:[]}Ct(this,t)}function gt(t){return t.cloneNode(!0)}function vt(t,e){if(e||yt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),i=0,r=n.length;r>i;i++)yt(n[i])}function $t(t,e,n,i){if(b(i))throw yi("offargs");var r=(i=bt(t))&&i.events,a=i&&i.handle;if(a)if(e)o(e.split(" "),function(e){if(b(n)){var i=r[e];if(M(i||[],n),i&&0<i.length)return}t.removeEventListener(e,a,!1),delete r[e]});else for(e in r)"$destroy"!==e&&t.removeEventListener(e,a,!1),delete r[e]}function yt(t,e){var i=t.ng339,r=i&&hi[i];r&&(e?delete r.data[e]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),$t(t)),delete hi[i],t.ng339=n))}function bt(t,e){var i=t.ng339,i=i&&hi[i];return e&&!i&&(t.ng339=i=++mi,i=hi[i]={events:{},data:{},handle:n}),i}function wt(t,e,n){if(ft(t)){var i=b(n),r=!i&&e&&!w(e),o=!e;if(t=(t=bt(t,!r))&&t.data,i)t[e]=n;else{if(o)return t;if(r)return t&&t[e];d(t,e)}}}function xt(t,e){return t.getAttribute?-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" "):!1}function _t(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",ri((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ri(e)+" "," ")))})}function kt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=ri(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",ri(n))}}function Ct(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var i=0;n>i;i++)t[t.length++]=e[i]}else t[t.length++]=e}}function St(t,e){return Tt(t,"$"+(e||"ngController")+"Controller")}function Tt(t,e,i){for(9==t.nodeType&&(t=t.documentElement),e=ni(e)?e:[e];t;){for(var r=0,o=e.length;o>r;r++)if((i=Ln.data(t,e[r]))!==n)return i;t=t.parentNode||11===t.nodeType&&t.host}}function At(t){for(vt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Et(t,e){e||vt(t);var n=t.parentNode;n&&n.removeChild(t)}function Ot(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Ln(n).on("load",e)}function Dt(t,e){var n=Si[e.toLowerCase()];return n&&Ti[j(t)]&&n}function Pt(t,e){var n=t.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&Ai[e]}function jt(t,e){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=e[i||n.type],o=r?r.length:0;if(o){if(y(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped},o>1&&(r=q(r));for(var s=0;o>s;s++)n.isImmediatePropagationStopped()||r[s].call(t,n)}};return n.elem=t,n}function Mt(){this.$get=function(){return d(mt,{hasClass:function(t,e){return t.attr&&(t=t[0]),xt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),kt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),_t(t,e)}})}}function Nt(t,e){var n=t&&t.$$hashKey;return n?("function"==typeof n&&(n=t.$$hashKey()),n):(n=typeof t,n="function"==n||"object"==n&&null!==t?t.$$hashKey=n+":"+(e||l)():n+":"+t)}function qt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}o(t,this.put,this)}function Ht(t){return(t=t.toString().replace(ji,"").match(Oi))?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Ft(t,e){function i(t){return function(e,n){return w(e)?void o(e,s(t)):t(e,n)}}function r(t,e){if(at(t,"service"),(S(e)||ni(e))&&(e=m.instantiate(e)),!e.$get)throw Mi("pget",t);return h[t+"Provider"]=e}function a(t,e){return function(){var n=$.invoke(e,this);if(y(n))throw Mi("undef",t);return n}}function l(t,e,n){return r(t,{$get:!1!==n?a(t,e):e})}function c(t){var e,n=[];return o(t,function(t){function i(t){var e,n;for(e=0,n=t.length;n>e;e++){var i=t[e],r=m.get(i[0]);r[i[1]].apply(r,i[2])}}if(!f.get(t)){f.put(t,!0);try{_(t)?(e=zn(t),n=n.concat(c(e.requires)).concat(e._runBlocks),i(e._invokeQueue),i(e._configBlocks)):S(t)?n.push(m.invoke(t)):ni(t)?n.push(m.invoke(t)):ot(t,"module")}catch(r){throw ni(t)&&(t=t[t.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),Mi("modulerr",t,r.stack||r.message||r)}}}),n}function u(t,n){function i(e,i){if(t.hasOwnProperty(e)){if(t[e]===d)throw Mi("cdep",e+" <- "+p.join(" <- "));return t[e]}try{return p.unshift(e),t[e]=d,t[e]=n(e,i)}catch(r){throw t[e]===d&&delete t[e],r}finally{p.shift()}}function r(t,n,r,o){"string"==typeof r&&(o=r,r=null);var a,s,l,c=[],u=Ft.$$annotate(t,e,o);for(s=0,a=u.length;a>s;s++){if(l=u[s],"string"!=typeof l)throw Mi("itkn",l);c.push(r&&r.hasOwnProperty(l)?r[l]:i(l,o))}return ni(t)&&(t=t[a]),t.apply(n,c)}return{invoke:r,instantiate:function(t,e,n){var i=Object.create((ni(t)?t[t.length-1]:t).prototype||null);return t=r(t,i,e,n),w(t)||S(t)?t:i},get:i,annotate:Ft.$$annotate,has:function(e){return h.hasOwnProperty(e+"Provider")||t.hasOwnProperty(e)}}}e=!0===e;var d={},p=[],f=new qt([],!0),h={$provide:{provider:i(r),factory:i(l),service:i(function(t,e){return l(t,["$injector",function(t){return t.instantiate(e)}])}),value:i(function(t,e){return l(t,v(e),!1)}),constant:i(function(t,e){at(t,"constant"),h[t]=e,g[t]=e}),decorator:function(t,e){var n=m.get(t+"Provider"),i=n.$get;n.$get=function(){var t=$.invoke(i,n);return $.invoke(e,null,{$delegate:t})}}}},m=h.$injector=u(h,function(t,e){throw Kn.isString(e)&&p.push(e),Mi("unpr",p.join(" <- "))}),g={},$=g.$injector=u(g,function(t,e){var i=m.get(t+"Provider",e);return $.invoke(i.$get,i,n,t)});return o(c(t),function(t){t&&$.invoke(t)}),$}function It(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,i){function r(t){var e=null;return Array.prototype.some.call(t,function(t){return"a"===j(t)?(e=t,!0):void 0}),e}function o(t){if(t){t.scrollIntoView();var n;n=a.yOffset,S(n)?n=n():D(n)?(n=n[0],n="fixed"!==e.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom):k(n)||(n=0),n&&(t=t.getBoundingClientRect().top,e.scrollBy(0,t-n))}else e.scrollTo(0,0)}function a(t){t=_(t)?t:n.hash();var e;t?(e=s.getElementById(t))?o(e):(e=r(s.getElementsByName(t)))?o(e):"top"===t&&o(null):o(null)}var s=e.document;return t&&i.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||Ot(function(){i.$evalAsync(a)})}),a}]}function Lt(t,e){return t||e?t?e?(ni(t)&&(t=t.join(" ")),ni(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function Rt(t){_(t)&&(t=t.split(" "));var e=ct();return o(t,function(t){t.length&&(e[t]=!0)}),e}function zt(t){return w(t)?t:{}}function Vt(t,e,n,i){function r(t){try{t.apply(null,Gn.call(arguments,1))}finally{if(g--,0===g)for(;v.length;)try{v.pop()()}catch(e){n.error(e)}}}function a(){s(),l()}function s(){t:{try{$=d.state;break t}catch(t){}$=void 0}$=y($)?null:$,H($,S)&&($=S),S=$}function l(){(w!==c.url()||b!==$)&&(w=c.url(),b=$,o(k,function(t){t(c.url(),$)}))}var c=this,u=t.location,d=t.history,p=t.setTimeout,f=t.clearTimeout,h={};c.isMock=!1;var g=0,v=[];c.$$completeOutstandingRequest=r,c.$$incOutstandingRequestCount=function(){g++},c.notifyWhenNoOutstandingRequests=function(t){0===g?t():v.push(t)};var $,b,w=u.href,x=e.find("base"),_=null;s(),b=$,c.url=function(e,n,r){if(y(r)&&(r=null),u!==t.location&&(u=t.location),d!==t.history&&(d=t.history),e){var o=b===r;if(w===e&&(!i.history||o))return c;var a=w&&$e(w)===$e(e);return w=e,b=r,!i.history||a&&o?((!a||_)&&(_=e),n?u.replace(e):a?(n=u,r=e.indexOf("#"),e=-1===r?"":e.substr(r),n.hash=e):u.href=e):(d[n?"replaceState":"pushState"](r,"",e),s(),b=$),c}return _||u.href.replace(/%27/g,"'")},c.state=function(){return $};var k=[],C=!1,S=null;c.onUrlChange=function(e){return C||(i.history&&Ln(t).on("popstate",a),Ln(t).on("hashchange",a),C=!0),k.push(e),e},c.$$applicationDestroyed=function(){Ln(t).off("hashchange popstate",a)},c.$$checkUrlChange=l,c.baseHref=function(){var t=x.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(t,e){var n;return g++,n=p(function(){delete h[n],r(t)},e||0),h[n]=!0,n},c.defer.cancel=function(t){return h[t]?(delete h[t],f(t),r(m),!0):!1}}function Bt(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,i){return new Vt(t,i,e,n)}]}function Ut(){this.$get=function(){function t(t,n){function r(t){t!=p&&(f?f==t&&(f=t.n):f=t,o(t.n,t.p),o(t,p),p=t,p.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw i("$cacheFactory")("iid",t);var a=0,s=d({},n,{id:t}),l={},c=n&&n.capacity||Number.MAX_VALUE,u={},p=null,f=null;return e[t]={put:function(t,e){if(!y(e)){if(c<Number.MAX_VALUE){var n=u[t]||(u[t]={key:t});r(n)}return t in l||a++,l[t]=e,a>c&&this.remove(f.key),e}},get:function(t){if(c<Number.MAX_VALUE){var e=u[t];if(!e)return;r(e)}return l[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=u[t];if(!e)return;e==p&&(p=e.p),e==f&&(f=e.n),o(e.n,e.p),delete u[t]}delete l[t],a--},removeAll:function(){l={},a=0,u={},p=f=null},destroy:function(){u=s=l=null,delete e[t]},info:function(){return d({},s,{size:a})}}}var e={};return t.info=function(){var t={};return o(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function Wt(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Gt(t,i){function r(t,e,n){var i=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,r={};return o(t,function(t,o){var a=t.match(i);if(!a)throw Ii("iscp",e,o,t,n?"controller bindings definition":"isolate scope definition");r[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o}}),r}function a(t){var e=t.charAt(0);if(!e||e!==Bn(e))throw Ii("baddir",t);if(t!==t.trim())throw Ii("baddir",t)}var l={},c=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,u=/(([\w\-]+)(?:\:([^;]+))?;?)/,p=P("ngSrc,ngSrcset,src,srcset"),f=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,$=/^(on[a-z]+|formaction)$/;this.directive=function x(e,n){return at(e,"directive"),_(e)?(a(e),rt(n,"directiveFactory"),l.hasOwnProperty(e)||(l[e]=[],t.factory(e+"Directive",["$injector","$exceptionHandler",function(t,n){var i=[];return o(l[e],function(o,a){try{var s=t.invoke(o);S(s)?s={compile:v(s)}:!s.compile&&s.link&&(s.compile=v(s.link)),s.priority=s.priority||0,s.index=a,s.name=s.name||e,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA";var l=s,c=s,u=s.name,d={isolateScope:null,bindToController:null};if(w(c.scope)&&(!0===c.bindToController?(d.bindToController=r(c.scope,u,!0),d.isolateScope={}):d.isolateScope=r(c.scope,u,!1)),w(c.bindToController)&&(d.bindToController=r(c.bindToController,u,!0)),w(d.bindToController)){var p=c.controller,f=c.controllerAs;if(!p)throw Ii("noctrl",u);var h;t:if(f&&_(f))h=f;else{if(_(p)){var m=zi.exec(p);if(m){h=m[3];break t}}h=void 0}if(!h)throw Ii("noident",u)}var g=l.$$bindings=d;w(g.isolateScope)&&(s.$$isolateBindings=g.isolateScope),s.$$moduleName=o.$$moduleName,i.push(s)}catch($){n($)}}),i}])),l[e].push(n)):o(e,s(x)),this},this.aHrefSanitizationWhitelist=function(t){return b(t)?(i.aHrefSanitizationWhitelist(t),this):i.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(i.imgSrcSanitizationWhitelist(t),this):i.imgSrcSanitizationWhitelist()};var y=!0;this.debugInfoEnabled=function(t){return b(t)?(y=t,this):y},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,i,r,a,s,v,b,x,k,C,T){function A(t,e){try{t.addClass(e)}catch(n){}}function O(t,e,n,i,r){t instanceof Ln||(t=Ln(t)),o(t,function(e,n){e.nodeType==pi&&e.nodeValue.match(/\S+/)&&(t[n]=Ln(e).wrap("<span></span>").parent()[0])});var a=D(t,e,t,n,i,r);O.$$addScopeClass(t);var s=null;return function(e,n,i){rt(e,"scope"),i=i||{};var r=i.parentBoundTranscludeFn,o=i.transcludeControllers;if(i=i.futureParentElement,r&&r.$$boundTransclude&&(r=r.$$boundTransclude),s||(s=(i=i&&i[0])&&"foreignobject"!==j(i)&&i.toString().match(/SVG/)?"svg":"html"),i="html"!==s?Ln(X(s,Ln("<div>").append(t).html())):n?Ci.clone.call(t):t,o)for(var l in o)i.data("$"+l+"Controller",o[l].instance);return O.$$addScopeInfo(i,e),n&&n(i,e),a&&a(e,i,i,r),i}}function D(t,e,i,r,o,a){function s(t,i,r,o){var a,s,l,c,u,d,h;if(p)for(h=Array(i.length),c=0;c<f.length;c+=3)a=f[c],h[a]=i[a];else h=i;for(c=0,u=f.length;u>c;)s=h[f[c++]],i=f[c++],a=f[c++],i?(i.scope?(l=t.$new(),O.$$addScopeInfo(Ln(s),l),(d=i.$$destroyBindings)&&(i.$$destroyBindings=null,l.$on("$destroyed",d))):l=t,d=i.transcludeOnThisElement?P(t,i.transclude,o):!i.templateOnThisElement&&o?o:!o&&e?P(t,e):null,i(a,l,s,r,d,i)):a&&a(t,s.childNodes,n,o)}for(var l,c,u,d,p,f=[],h=0;h<t.length;h++)l=new it,c=N(t[h],[],l,0===h?r:n,o),(a=c.length?I(c,t[h],l,e,i,null,[],[],a):null)&&a.scope&&O.$$addScopeClass(l.$$element),l=a&&a.terminal||!(u=t[h].childNodes)||!u.length?null:D(u,a?(a.transcludeOnThisElement||!a.templateOnThisElement)&&a.transclude:e),(a||l)&&(f.push(h,a,l),d=!0,p=p||a),a=null;return d?s:null}function P(t,e,n){return function(i,r,o,a,s){return i||(i=t.$new(!1,s),i.$$transcluded=!0),e(i,r,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}}function N(t,e,n,i,r){var o,a=n.$attr;switch(t.nodeType){case di:R(e,Qt(j(t)),"E",i,r);for(var s,l,d,p=t.attributes,f=0,h=p&&p.length;h>f;f++){var m=!1,g=!1;s=p[f],o=s.name,l=ri(s.value),s=Qt(o),(d=lt.test(s))&&(o=o.replace(Li,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var v=s.replace(/(Start|End)$/,"");z(v)&&s===v+"Start"&&(m=o,g=o.substr(0,o.length-5)+"end",o=o.substr(0,o.length-6)),s=Qt(o.toLowerCase()),a[s]=o,(d||!n.hasOwnProperty(s))&&(n[s]=l,Dt(t,s)&&(n[s]=!0)),Z(t,e,l,s,d),R(e,s,"A",i,r,m,g)}if(t=t.className,w(t)&&(t=t.animVal),_(t)&&""!==t)for(;o=u.exec(t);)s=Qt(o[2]),R(e,s,"C",i,r)&&(n[s]=ri(o[3])),t=t.substr(o.index+o[0].length);break;case pi:if(11===In)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===pi;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);Q(e,t.nodeValue);break;case 8:try{(o=c.exec(t.nodeValue))&&(s=Qt(o[1]),R(e,s,"M",i,r)&&(n[s]=ri(o[2])))}catch($){}}return e.sort(W),e}function q(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Ii("uterdir",e,n);t.nodeType==di&&(t.hasAttribute(e)&&r++,t.hasAttribute(n)&&r--),i.push(t),t=t.nextSibling}while(r>0)}else i.push(t);return Ln(i)}function F(t,e,n){return function(i,r,o,a,s){return r=q(r[0],e,n),t(i,r,o,a,s)}}function I(t,i,o,a,s,l,c,u,d){function p(t,e,n,i){t&&(n&&(t=F(t,n,i)),t.require=$.require,t.directiveName=y,(A===$||$.$$isolateScope)&&(t=K(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=F(e,n,i)),e.require=$.require,e.directiveName=y,(A===$||$.$$isolateScope)&&(e=K(e,{isolateScope:!0})),u.push(e))}function h(t,e,n,i){var r;if(_(e)){var o=e.match(f);e=e.substring(o[0].length);var a=o[1]||o[3],o="?"===o[2];if("^^"===a?n=n.parent():r=(r=i&&i[e])&&r.instance,r||(i="$"+e+"Controller",r=a?n.inheritedData(i):n.data(i)),!r&&!o)throw Ii("ctreq",e,t)}else if(ni(e))for(r=[],a=0,o=e.length;o>a;a++)r[a]=h(t,e[a],n,i);return r||null}function m(t,e,n,i,r,o){var a,s=ct();for(a in i){var l=i[a],c={$scope:l===A||l.$$isolateScope?r:o,$element:t,$attrs:e,$transclude:n},u=l.controller;"@"==u&&(u=e[l.name]),c=v(u,c,!0,l.controllerAs),s[l.name]=c,H||t.data("$"+l.name+"Controller",c.instance)}return s}function g(t,e,r,a,s,l){function d(t,e,i){var r;return E(t)||(i=e,e=t,t=n),H&&(r=$),i||(i=H?b.parent():b),s(t,e,r,i,k)}var p,f,g,v,$,y,b;if(i===r?(a=o,b=o.$$element):(b=Ln(r),a=new it(b,o)),A&&(v=e.$new(!0)),s&&(y=d,y.$$boundTransclude=s),T&&($=m(b,a,y,T,v,e)),A&&(O.$$addScopeInfo(b,v,!0,!(D&&(D===A||D===A.$$originalDirective))),O.$$addScopeClass(b,!0),v.$$isolateBindings=A.$$isolateBindings,et(e,a,v,v.$$isolateBindings,A,v)),$){var w,x=A||C;x&&$[x.name]&&(f=x.$$bindings.bindToController,(g=$[x.name])&&g.identifier&&f&&(w=g,l.$$destroyBindings=et(e,a,g.instance,f,x)));for(p in $){g=$[p];var _=g();_!==g.instance&&(g.instance=_,b.data("$"+p+"Controller",_),g===w&&(l.$$destroyBindings(),l.$$destroyBindings=et(e,a,_,f,x)))}}for(p=0,l=c.length;l>p;p++)f=c[p],tt(f,f.isolateScope?v:e,b,a,f.require&&h(f.directiveName,f.require,b,$),y);var k=e;for(A&&(A.template||null===A.templateUrl)&&(k=v),t&&t(k,r.childNodes,n,s),p=u.length-1;p>=0;p--)f=u[p],tt(f,f.isolateScope?v:e,b,a,f.require&&h(f.directiveName,f.require,b,$),y)}d=d||{};for(var $,y,b,x,k=-Number.MAX_VALUE,C=d.newScopeDirective,T=d.controllerDirectives,A=d.newIsolateScopeDirective,D=d.templateDirective,P=d.nonTlbTranscludeDirective,j=!1,M=!1,H=d.hasElementTranscludeDirective,I=o.$$element=Ln(i),R=a,z=0,W=t.length;W>z;z++){$=t[z];var Q=$.$$start,Y=$.$$end;if(Q&&(I=q(i,Q,Y)),b=n,k>$.priority)break;if((b=$.scope)&&($.templateUrl||(w(b)?(G("new/isolated scope",A||C,$,I),A=$):G("new/isolated scope",A,$,I)),C=C||$),y=$.name,!$.templateUrl&&$.controller&&(b=$.controller,T=T||ct(),G("'"+y+"' controller",T[y],$,I),T[y]=$),(b=$.transclude)&&(j=!0,$.$$tlb||(G("transclusion",P,$,I),P=$),"element"==b?(H=!0,k=$.priority,b=I,I=o.$$element=Ln(e.createComment(" "+y+": "+o[y]+" ")),i=I[0],J(s,Gn.call(b,0),i),R=O(b,a,k,l&&l.name,{nonTlbTranscludeDirective:P})):(b=Ln(gt(i)).contents(),I.empty(),R=O(b,a))),$.template)if(M=!0,G("template",D,$,I),D=$,b=S($.template)?$.template(I,o):$.template,b=st(b),$.replace){if(l=$,b=wi.test(b)?Yt(X($.templateNamespace,ri(b))):[],i=b[0],1!=b.length||i.nodeType!==di)throw Ii("tplrt",y,"");J(s,I,i),W={$attr:{}},b=N(i,[],W);var Z=t.splice(z+1,t.length-(z+1));A&&L(b),t=t.concat(b).concat(Z),V(o,W),W=t.length}else I.html(b);if($.templateUrl)M=!0,G("template",D,$,I),D=$,$.replace&&(l=$),g=B(t.splice(z,t.length-z),I,o,s,j&&R,c,u,{controllerDirectives:T,newScopeDirective:C!==$&&C,newIsolateScopeDirective:A,templateDirective:D,nonTlbTranscludeDirective:P}),W=t.length;else if($.compile)try{x=$.compile(I,o,R),S(x)?p(null,x,Q,Y):x&&p(x.pre,x.post,Q,Y)}catch(nt){r(nt,U(I))}$.terminal&&(g.terminal=!0,k=Math.max(k,$.priority))}return g.scope=C&&!0===C.scope,g.transcludeOnThisElement=j,g.templateOnThisElement=M,g.transclude=R,d.hasElementTranscludeDirective=H,g}function L(t){for(var e=0,n=t.length;n>e;e++)t[e]=h(t[e],{$$isolateScope:!0})}function R(e,i,o,a,s,c,u){if(i===s)return null;if(s=null,l.hasOwnProperty(i)){var d;i=t.get(i+"Directive");for(var p=0,f=i.length;f>p;p++)try{d=i[p],(a===n||a>d.priority)&&-1!=d.restrict.indexOf(o)&&(c&&(d=h(d,{$$start:c,$$end:u})),e.push(d),s=d)}catch(m){r(m)}}return s}function z(e){if(l.hasOwnProperty(e))for(var n=t.get(e+"Directive"),i=0,r=n.length;r>i;i++)if(e=n[i],e.multiElement)return!0;return!1}function V(t,e){var n=e.$attr,i=t.$attr,r=t.$$element;o(t,function(i,r){"$"!=r.charAt(0)&&(e[r]&&e[r]!==i&&(i+=("style"===r?";":" ")+e[r]),t.$set(r,i,!0,n[r]))}),o(e,function(e,o){"class"==o?(A(r,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==o?(r.attr("style",r.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,i[o]=n[o])})}function B(t,e,n,i,r,s,l,c){var u,d,p=[],f=e[0],m=t.shift(),g=h(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),v=S(m.templateUrl)?m.templateUrl(e,n):m.templateUrl,$=m.templateNamespace;return e.empty(),a(v).then(function(a){var h,y;if(a=st(a),m.replace){if(a=wi.test(a)?Yt(X($,ri(a))):[],h=a[0],1!=a.length||h.nodeType!==di)throw Ii("tplrt",m.name,v);a={$attr:{}},J(i,e,h);var b=N(h,[],a);w(m.scope)&&L(b),t=b.concat(t),V(n,a)}else h=f,e.html(a);for(t.unshift(g),u=I(t,h,n,r,e,m,s,l,c),o(i,function(t,n){t==h&&(i[n]=e[0])}),d=D(e[0].childNodes,r);p.length;){a=p.shift(),y=p.shift();var x=p.shift(),_=p.shift(),b=e[0];if(!a.$$destroyed){if(y!==f){var k=y.className;c.hasElementTranscludeDirective&&m.replace||(b=gt(h)),J(x,Ln(y),b),A(Ln(b),k)}y=u.transcludeOnThisElement?P(a,u.transclude,_):_,u(d,a,b,i,y,u)}}p=null}),function(t,e,n,i,r){t=r,e.$$destroyed||(p?p.push(e,n,i,t):(u.transcludeOnThisElement&&(t=P(e,u.transclude,r)),u(d,e,n,i,t,u)))}}function W(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index;

}function G(t,e,n,i){function r(t){return t?" (module: "+t+")":""}if(e)throw Ii("multidir",e.name,r(e.$$moduleName),n.name,r(n.$$moduleName),t,U(i))}function Q(t,e){var n=i(e,!0);n&&t.push({priority:0,compile:function(t){t=t.parent();var e=!!t.length;return e&&O.$$addBindingClass(t),function(t,i){var r=i.parent();e||O.$$addBindingClass(r),O.$$addBindingInfo(r,n.expressions),t.$watch(n,function(t){i[0].nodeValue=t})}}})}function X(t,n){switch(t=Bn(t||"html")){case"svg":case"math":var i=e.createElement("div");return i.innerHTML="<"+t+">"+n+"</"+t+">",i.childNodes[0].childNodes;default:return n}}function Y(t,e){if("srcdoc"==e)return k.HTML;var n=j(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?k.RESOURCE_URL:void 0}function Z(t,e,n,r,o){var a=Y(t,r);o=p[r]||o;var s=i(n,!0,a,o);if(s){if("multiple"===r&&"select"===j(t))throw Ii("selmulti",U(t));e.push({priority:100,compile:function(){return{pre:function(t,e,l){if(e=l.$$observers||(l.$$observers={}),$.test(r))throw Ii("nodomevents");var c=l[r];c!==n&&(s=c&&i(c,!0,a,o),n=c),s&&(l[r]=s(t),(e[r]||(e[r]=[])).$$inter=!0,(l.$$observers&&l.$$observers[r].$$scope||t).$watch(s,function(t,e){"class"===r&&t!=e?l.$updateClass(t,e):l.$set(r,t)}))}}}})}}function J(t,n,i){var r,o,a=n[0],s=n.length,l=a.parentNode;if(t)for(r=0,o=t.length;o>r;r++)if(t[r]==a){t[r++]=i,o=r+s-1;for(var c=t.length;c>r;r++,o++)c>o?t[r]=t[o]:delete t[r];t.length-=s-1,t.context===a&&(t.context=i);break}for(l&&l.replaceChild(i,a),t=e.createDocumentFragment(),t.appendChild(a),Ln.hasData(a)&&(Ln(i).data(Ln(a).data()),Rn?(ei=!0,Rn.cleanData([a])):delete Ln.cache[a[Ln.expando]]),a=1,s=n.length;s>a;a++)l=n[a],Ln(l).remove(),t.appendChild(l),delete n[a];n[0]=i,n.length=1}function K(t,e){return d(function(){return t.apply(null,arguments)},t,e)}function tt(t,e,n,i,o,a){try{t(e,n,i,o,a)}catch(s){r(s,U(n))}}function et(t,e,r,a,l,c){var u;return o(a,function(o,a){var c,d,p,f,h=o.attrName,g=o.optional,v=o.mode;switch(Un.call(e,h)||(e[h]=n),v){case"@":e[h]||g||(r[a]=n),e.$observe(h,function(t){r[a]=t}),e.$$observers[h].$$scope=t,e[h]&&(r[a]=i(e[h])(t));break;case"=":if(g&&!e[h])break;d=s(e[h]),f=d.literal?H:function(t,e){return t===e||t!==t&&e!==e},p=d.assign||function(){throw c=r[a]=d(t),Ii("nonassign",e[h],l.name)},c=r[a]=d(t),g=function(e){return f(e,r[a])||(f(e,c)?p(t,e=r[a]):r[a]=e),c=e},g.$stateful=!0,g=o.collection?t.$watchCollection(e[h],g):t.$watch(s(e[h],g),null,d.literal),u=u||[],u.push(g);break;case"&":if(d=s(e[h]),d===m&&g)break;r[a]=function(e){return d(t,e)}}}),a=u?function(){for(var t=0,e=u.length;e>t;++t)u[t]()}:m,c&&a!==m?(c.$on("$destroy",a),m):a}var it=function(t,e){if(e){var n,i,r,o=Object.keys(e);for(n=0,i=o.length;i>n;n++)r=o[n],this[r]=e[r]}else this.$attr={};this.$$element=t};it.prototype={$normalize:Qt,$addClass:function(t){t&&0<t.length&&C.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&C.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Xt(t,e);n&&n.length&&C.addClass(this.$$element,n),(n=Xt(e,t))&&n.length&&C.removeClass(this.$$element,n)},$set:function(t,e,i,a){var s=this.$$element[0],l=Dt(s,t),c=Pt(s,t),s=t;if(l?(this.$$element.prop(t,e),a=l):c&&(this[c]=e,s=c),this[t]=e,a?this.$attr[t]=a:(a=this.$attr[t])||(this.$attr[t]=a=nt(t,"-")),l=j(this.$$element),"a"===l&&"href"===t||"img"===l&&"src"===t)this[t]=e=T(e,"src"===t);else if("img"===l&&"srcset"===t){for(var l="",c=ri(e),u=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,u=/\s/.test(c)?u:/(,)/,c=c.split(u),u=Math.floor(c.length/2),d=0;u>d;d++)var p=2*d,l=l+T(ri(c[p]),!0),l=l+(" "+ri(c[p+1]));c=ri(c[2*d]).split(/\s/),l+=T(ri(c[0]),!0),2===c.length&&(l+=" "+ri(c[1])),this[t]=e=l}!1!==i&&(null===e||e===n?this.$$element.removeAttr(a):this.$$element.attr(a,e)),(t=this.$$observers)&&o(t[s],function(t){try{t(e)}catch(n){r(n)}})},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=ct()),r=i[t]||(i[t]=[]);return r.push(e),b.$evalAsync(function(){!r.$$inter&&n.hasOwnProperty(t)&&e(n[t])}),function(){M(r,e)}}};var ot=i.startSymbol(),at=i.endSymbol(),st="{{"==ot||"}}"==at?g:function(t){return t.replace(/\{\{/g,ot).replace(/}}/g,at)},lt=/^ngAttr[A-Z]/;return O.$$addBindingInfo=y?function(t,e){var n=t.data("$binding")||[];ni(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:m,O.$$addBindingClass=y?function(t){A(t,"ng-binding")}:m,O.$$addScopeInfo=y?function(t,e,n,i){t.data(n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:m,O.$$addScopeClass=y?function(t,e){A(t,e?"ng-isolate-scope":"ng-scope")}:m,O}]}function Qt(t){return pt(t.replace(Li,""))}function Xt(t,e){var n="",i=t.split(/\s+/),r=e.split(/\s+/),o=0;t:for(;o<i.length;o++){for(var a=i[o],s=0;s<r.length;s++)if(a==r[s])continue t;n+=(0<n.length?" ":"")+a}return n}function Yt(t){t=Ln(t);var e=t.length;if(1>=e)return t;for(;e--;)8===t[e].nodeType&&Qn.call(t,e,1);return t}function Zt(){var t={},e=!1;this.register=function(e,n){at(e,"controller"),w(e)?d(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(r,o){function a(t,e,n,r){if(!t||!w(t.$scope))throw i("$controller")("noscp",r,e);t.$scope[e]=n}return function(i,s,l,c){var u,p,f;if(l=!0===l,c&&_(c)&&(f=c),_(i)){if(c=i.match(zi),!c)throw Ri("ctrlfmt",i);p=c[1],f=f||c[3],i=t.hasOwnProperty(p)?t[p]:st(s.$scope,p,!0)||(e?st(o,p,!0):n),ot(i,p,!0)}return l?(l=(ni(i)?i[i.length-1]:i).prototype,u=Object.create(l||null),f&&a(s,f,u,p||i.name),d(function(){var t=r.invoke(i,u,s,p);return t!==u&&(w(t)||S(t))&&(u=t,f&&a(s,f,u,p||i.name)),u},{instance:u,identifier:f})):(u=r.instantiate(i,s,p),f&&a(s,f,u,p||i.name),u)}}]}function Jt(){this.$get=["$window",function(t){return Ln(t.document)}]}function Kt(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function te(t){return w(t)?C(t)?t.toISOString():R(t):t}function ee(){this.$get=function(){return function(t){if(!t)return"";var e=[];return a(t,function(t,n){null===t||y(t)||(ni(t)?o(t,function(t,i){e.push(Y(n)+"="+Y(te(t)))}):e.push(Y(n)+"="+Y(te(t))))}),e.join("&")}}}function ne(){this.$get=function(){return function(t){function e(t,i,r){null===t||y(t)||(ni(t)?o(t,function(t){e(t,i+"[]")}):w(t)&&!C(t)?a(t,function(t,n){e(t,i+(r?"":"[")+n+(r?"":"]"))}):n.push(Y(i)+"="+Y(te(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function ie(t,e){if(_(t)){var n=t.replace(Gi,"").trim();if(n){var i=e("Content-Type");(i=i&&0===i.indexOf(Vi))||(i=(i=n.match(Ui))&&Wi[i[0]].test(n)),i&&(t=z(n))}}return t}function re(t){var e,n=ct();return _(t)?o(t.split("\n"),function(t){e=t.indexOf(":");var i=Bn(ri(t.substr(0,e)));t=ri(t.substr(e+1)),i&&(n[i]=n[i]?n[i]+", "+t:t)}):w(t)&&o(t,function(t,e){var i=Bn(e),r=ri(t);i&&(n[i]=n[i]?n[i]+", "+r:r)}),n}function oe(t){var e;return function(n){return e||(e=re(t)),n?(n=e[Bn(n)],void 0===n&&(n=null),n):e}}function ae(t,e,n,i){return S(i)?i(t,e,n):(o(i,function(i){t=i(t,e,n)}),t)}function se(){var t=this.defaults={transformResponse:[ie],transformRequest:[function(t){return w(t)&&"[object File]"!==Yn.call(t)&&"[object Blob]"!==Yn.call(t)&&"[object FormData]"!==Yn.call(t)?R(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:q(Bi),put:q(Bi),patch:q(Bi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e};var r=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,l,c,u,p){function f(e){function r(t){var e=d({},t);return e.data=t.data?ae(t.data,t.headers,t.status,s.transformResponse):t.data,t=t.status,t>=200&&300>t?e:u.reject(e)}function a(t,e){var n,i={};return o(t,function(t,r){S(t)?(n=t(e),null!=n&&(i[r]=n)):i[r]=t}),i}if(!Kn.isObject(e))throw i("$http")("badreq",e);var s=d({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);s.headers=function(e){var n,i,r,o=t.headers,s=d({},e.headers),o=d({},o.common,o[Bn(e.method)]);t:for(n in o){i=Bn(n);for(r in s)if(Bn(r)===i)continue t;s[n]=o[n]}return a(s,q(e))}(e),s.method=Wn(s.method),s.paramSerializer=_(s.paramSerializer)?p.get(s.paramSerializer):s.paramSerializer;var l=[function(e){var i=e.headers,a=ae(e.data,oe(i),n,e.transformRequest);return y(a)&&o(i,function(t,e){"content-type"===Bn(e)&&delete i[e]}),y(e.withCredentials)&&!y(t.withCredentials)&&(e.withCredentials=t.withCredentials),h(e,a).then(r,r)},n],c=u.when(s);for(o(v,function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&l.push(t.response,t.responseError)});l.length;){e=l.shift();var f=l.shift(),c=c.then(e,f)}return c.success=function(t){return ot(t,"fn"),c.then(function(e){t(e.data,e.status,e.headers,s)}),c},c.error=function(t){return ot(t,"fn"),c.then(null,function(e){t(e.data,e.status,e.headers,s)}),c},c}function h(i,r){function o(t,n,i,r){function o(){l(n,t,i,r)}h&&(t>=200&&300>t?h.put(k,[t,n,re(i),r]):h.remove(k)),e?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function l(t,e,n,r){e=Math.max(e,0),(e>=200&&300>e?$.resolve:$.reject)({data:t,status:e,headers:oe(n),config:i,statusText:r})}function d(t){l(t.data,t.status,q(t.headers()),t.statusText)}function p(){var t=f.pendingRequests.indexOf(i);-1!==t&&f.pendingRequests.splice(t,1)}var h,v,$=u.defer(),x=$.promise,_=i.headers,k=m(i.url,i.paramSerializer(i.params));return f.pendingRequests.push(i),x.then(p,p),!i.cache&&!t.cache||!1===i.cache||"GET"!==i.method&&"JSONP"!==i.method||(h=w(i.cache)?i.cache:w(t.cache)?t.cache:g),h&&(v=h.get(k),b(v)?v&&S(v.then)?v.then(d,d):ni(v)?l(v[1],v[0],q(v[2]),v[3]):l(v,200,{},"OK"):h.put(k,x)),y(v)&&((v=an(i.url)?s()[i.xsrfCookieName||t.xsrfCookieName]:n)&&(_[i.xsrfHeaderName||t.xsrfHeaderName]=v),a(i.method,k,r,o,_,i.timeout,i.withCredentials,i.responseType)),x}function m(t,e){return 0<e.length&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}var g=l("$http");t.paramSerializer=_(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var v=[];return o(r,function(t){v.unshift(_(t)?p.get(t):p.invoke(t))}),f.pendingRequests=[],function(t){o(arguments,function(t){f[t]=function(e,n){return f(d({},n||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){f[t]=function(e,n,i){return f(d({},i||{},{method:t,url:e,data:n}))}})}("post","put","patch"),f.defaults=t,f}]}function le(){return new t.XMLHttpRequest}function ce(){this.$get=["$browser","$window","$document",function(t,e,n){return ue(t,le,t.defer,e.angular.callbacks,n[0])}]}function ue(t,e,i,r,a){function s(t,e,n){var i=a.createElement("script"),o=null;return i.type="text/javascript",i.src=t,i.async=!0,o=function(t){i.removeEventListener("load",o,!1),i.removeEventListener("error",o,!1),a.body.removeChild(i),i=null;var s=-1,l="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),l=t.type,s="error"===t.type?404:200),n&&n(s,l)},i.addEventListener("load",o,!1),i.addEventListener("error",o,!1),a.body.appendChild(i),o}return function(a,l,c,u,d,p,f,h){function g(){y&&y(),w&&w.abort()}function v(e,r,o,a,s){_!==n&&i.cancel(_),y=w=null,e(r,o,a,s),t.$$completeOutstandingRequest(m)}if(t.$$incOutstandingRequestCount(),l=l||t.url(),"jsonp"==Bn(a)){var $="_"+(r.counter++).toString(36);r[$]=function(t){r[$].data=t,r[$].called=!0};var y=s(l.replace("JSON_CALLBACK","angular.callbacks."+$),$,function(t,e){v(u,t,r[$].data,"",e),r[$]=m})}else{var w=e();if(w.open(a,l,!0),o(d,function(t,e){b(t)&&w.setRequestHeader(e,t)}),w.onload=function(){var t=w.statusText||"",e="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=e?200:"file"==on(l).protocol?404:0),v(u,n,e,w.getAllResponseHeaders(),t)},a=function(){v(u,-1,null,null,"")},w.onerror=a,w.onabort=a,f&&(w.withCredentials=!0),h)try{w.responseType=h}catch(x){if("json"!==h)throw x}w.send(c)}if(p>0)var _=i(g,p);else p&&S(p.then)&&p.then(g)}}function de(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,i,r){function o(t){return"\\\\\\"+t}function a(n){return n.replace(u,t).replace(p,e)}function s(o,s,u,p){function f(t){try{var e=t;t=u?r.getTrusted(u,e):r.valueOf(e);var n;if(p&&!b(t))n=t;else if(null==t)n="";else{switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=R(t)}n=t}return n}catch(a){i(Qi.interr(o,a))}}p=!!p;for(var h,m,g=0,v=[],$=[],w=o.length,x=[],_=[];w>g;){if(-1==(h=o.indexOf(t,g))||-1==(m=o.indexOf(e,h+l))){g!==w&&x.push(a(o.substring(g)));break}g!==h&&x.push(a(o.substring(g,h))),g=o.substring(h+l,m),v.push(g),$.push(n(g,f)),g=m+c,_.push(x.length),x.push("")}if(u&&1<x.length&&Qi.throwNoconcat(o),!s||v.length){var k=function(t){for(var e=0,n=v.length;n>e;e++){if(p&&y(t[e]))return;x[_[e]]=t[e]}return x.join("")};return d(function(t){var e=0,n=v.length,r=Array(n);try{for(;n>e;e++)r[e]=$[e](t);return k(r)}catch(a){i(Qi.interr(o,a))}},{exp:o,expressions:v,$$watchDelegate:function(t,e){var n;return t.$watchGroup($,function(i,r){var o=k(i);S(e)&&e.call(this,o,i!==r?n:o,t),n=o})}})}}var l=t.length,c=e.length,u=new RegExp(t.replace(/./g,o),"g"),p=new RegExp(e.replace(/./g,o),"g");return s.startSymbol=function(){return t},s.endSymbol=function(){return e},s}]}function pe(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,i){function r(r,a,s,l){var c=4<arguments.length,u=c?Gn.call(arguments,4):[],d=e.setInterval,p=e.clearInterval,f=0,h=b(l)&&!l,m=(h?i:n).defer(),g=m.promise;return s=b(s)?s:0,g.then(null,null,c?function(){r.apply(null,u)}:r),g.$$intervalId=d(function(){m.notify(f++),s>0&&f>=s&&(m.resolve(f),p(g.$$intervalId),delete o[g.$$intervalId]),h||t.$apply()},a),o[g.$$intervalId]=m,g}var o={};return r.cancel=function(t){return t&&t.$$intervalId in o?(o[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete o[t.$$intervalId],!0):!1},r}]}function fe(){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",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(t){return 1===t?"one":"other"}}}}function he(t){t=t.split("/");for(var e=t.length;e--;)t[e]=X(t[e]);return t.join("/")}function me(t,e){var n=on(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=f(n.port)||Yi[n.protocol]||null}function ge(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var i=on(t);e.$$path=decodeURIComponent(n&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname),e.$$search=G(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ve(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function $e(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function ye(t){return t.replace(/(#.+)|#$/,"$1")}function be(t){return t.substr(0,$e(t).lastIndexOf("/")+1)}function we(t,e){this.$$html5=!0,e=e||"";var i=be(t);me(t,this),this.$$parse=function(t){var e=ve(i,t);if(!_(e))throw Zi("ipthprfx",t,i);ge(e,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=Q(this.$$search),e=this.$$hash?"#"+X(this.$$hash):"";this.$$url=he(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,o){if(o&&"#"===o[0])return this.hash(o.slice(1)),!0;var a,s;return(a=ve(t,r))!==n?(s=a,s=(a=ve(e,a))!==n?i+(ve("/",a)||a):t+s):(a=ve(i,r))!==n?s=i+a:i==r+"/"&&(s=i),s&&this.$$parse(s),!!s}}function xe(t,e){var n=be(t);me(t,this),this.$$parse=function(i){var r,o=ve(t,i)||ve(n,i);y(o)||"#"!==o.charAt(0)?this.$$html5?r=o:(r="",y(o)&&(t=i,this.replace())):(r=ve(e,o),y(r)&&(r=o)),ge(r,this),i=this.$$path;var o=t,a=/^\/[A-Z]:(\/.*)/;0===r.indexOf(o)&&(r=r.replace(o,"")),a.exec(r)||(i=(r=a.exec(i))?r[1]:i),this.$$path=i,this.$$compose()},this.$$compose=function(){var n=Q(this.$$search),i=this.$$hash?"#"+X(this.$$hash):"";this.$$url=he(this.$$path)+(n?"?"+n:"")+i,this.$$absUrl=t+(this.$$url?e+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return $e(t)==$e(e)?(this.$$parse(e),!0):!1}}function _e(t,e){this.$$html5=!0,xe.apply(this,arguments);var n=be(t);this.$$parseLinkUrl=function(i,r){if(r&&"#"===r[0])return this.hash(r.slice(1)),!0;var o,a;return t==$e(i)?o=i:(a=ve(n,i))?o=t+e+a:n===i+"/"&&(o=n),o&&this.$$parse(o),!!o},this.$$compose=function(){var n=Q(this.$$search),i=this.$$hash?"#"+X(this.$$hash):"";this.$$url=he(this.$$path)+(n?"?"+n:"")+i,this.$$absUrl=t+e+this.$$url}}function ke(t){return function(){return this[t]}}function Ce(t,e){return function(n){return y(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Se(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return b(e)?(t=e,this):t},this.html5Mode=function(t){return O(t)?(e.enabled=t,this):w(t)?(O(t.enabled)&&(e.enabled=t.enabled),O(t.requireBase)&&(e.requireBase=t.requireBase),O(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,o,a){function s(t,e,n){var r=c.url(),o=c.$$state;try{i.url(t,e,n),c.$$state=i.state()}catch(a){throw c.url(r),c.$$state=o,a}}function l(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,u;u=i.baseHref();var d,p=i.url();if(e.enabled){if(!u&&e.requireBase)throw Zi("nobase");d=p.substring(0,p.indexOf("/",p.indexOf("//")+2))+(u||"/"),u=r.history?we:_e}else d=$e(p),u=xe;c=new u(d,"#"+t),c.$$parseLinkUrl(p,p),c.$$state=i.state();var f=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var r=Ln(t.target);"a"!==j(r[0]);)if(r[0]===o[0]||!(r=r.parent())[0])return;var s=r.prop("href"),l=r.attr("href")||r.attr("xlink:href");w(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=on(s.animVal).href),f.test(s)||!s||r.attr("target")||t.isDefaultPrevented()||!c.$$parseLinkUrl(s,l)||(t.preventDefault(),c.absUrl()!=i.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),ye(c.absUrl())!=ye(p)&&i.url(c.absUrl(),!0);var h=!0;return i.onUrlChange(function(t,e){n.$evalAsync(function(){var i,r=c.absUrl(),o=c.$$state;c.$$parse(t),c.$$state=e,i=n.$broadcast("$locationChangeStart",t,r,e,o).defaultPrevented,c.absUrl()===t&&(i?(c.$$parse(r),c.$$state=o,s(r,!1,o)):(h=!1,l(r,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){var t=ye(i.url()),e=ye(c.absUrl()),o=i.state(),a=c.$$replace,u=t!==e||c.$$html5&&r.history&&o!==c.$$state;(h||u)&&(h=!1,n.$evalAsync(function(){var e=c.absUrl(),i=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(i?(c.$$parse(t),c.$$state=o):(u&&s(e,a,o===c.$$state?null:c.$$state),l(t,o)))})),c.$$replace=!1}),c}]}function Te(){var t=!0,e=this;this.debugEnabled=function(e){return b(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function r(t){var e=n.console||{},r=e[t]||e.log||m;t=!1;try{t=!!r.apply}catch(a){}return t?function(){var t=[];return o(arguments,function(e){t.push(i(e))}),r.apply(e,t)}:function(t,e){r(t,null==e?"":e)}}return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Ae(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Ki("isecfld",e);return t}function Ee(t,e){if(t){if(t.constructor===t)throw Ki("isecfn",e);if(t.window===t)throw Ki("isecwindow",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Ki("isecdom",e);if(t===Object)throw Ki("isecobj",e)}return t}function Oe(t,e){if(t){if(t.constructor===t)throw Ki("isecfn",e);if(t===tr||t===er||t===nr)throw Ki("isecff",e)}}function De(t,e){return"undefined"!=typeof t?t:e}function Pe(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function je(t,e){var n,i;switch(t.type){case ar.Program:n=!0,o(t.body,function(t){je(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case ar.Literal:t.constant=!0,t.toWatch=[];break;case ar.UnaryExpression:je(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case ar.BinaryExpression:je(t.left,e),je(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case ar.LogicalExpression:je(t.left,e),je(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case ar.ConditionalExpression:je(t.test,e),je(t.alternate,e),je(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case ar.Identifier:t.constant=!1,t.toWatch=[t];break;case ar.MemberExpression:je(t.object,e),t.computed&&je(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case ar.CallExpression:n=t.filter?!e(t.callee.name).$stateful:!1,i=[],o(t.arguments,function(t){je(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&!e(t.callee.name).$stateful?i:[t];break;case ar.AssignmentExpression:je(t.left,e),je(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case ar.ArrayExpression:n=!0,i=[],o(t.elements,function(t){je(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case ar.ObjectExpression:n=!0,i=[],o(t.properties,function(t){je(t.value,e),n=n&&t.value.constant,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case ar.ThisExpression:t.constant=!1,t.toWatch=[]}}function Me(t){if(1==t.length){t=t[0].expression;var e=t.toWatch;return 1!==e.length?e:e[0]!==t?e:n}}function Ne(t){return t.type===ar.Identifier||t.type===ar.MemberExpression}function qe(t){return 1===t.body.length&&Ne(t.body[0].expression)?{type:ar.AssignmentExpression,left:t.body[0].expression,right:{type:ar.NGValueParameter},operator:"="}:void 0}function He(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===ar.Literal||t.body[0].expression.type===ar.ArrayExpression||t.body[0].expression.type===ar.ObjectExpression)}function Fe(t,e){this.astBuilder=t,this.$filter=e}function Ie(t,e){this.astBuilder=t,this.$filter=e}function Le(t,e,n,i){Ee(t,i),e=e.split(".");for(var r,o=0;1<e.length;o++){r=Ae(e.shift(),i);var a=Ee(t[r],i);a||(a={},t[r]=a),t=a}return r=Ae(e.shift(),i),Ee(t[r],i),t[r]=n}function Re(t){return"constructor"==t}function ze(t){return S(t.valueOf)?t.valueOf():lr.call(t)}function Ve(){var t=ct(),e=ct();this.$get=["$filter","$sniffer",function(i,r){function a(t,e){return null==t||null==e?t===e:"object"==typeof t&&(t=ze(t),"object"==typeof t)?!1:t===e||t!==t&&e!==e}function s(t,e,i,r,o){var s,l=r.inputs;if(1===l.length){var c=a,l=l[0];return t.$watch(function(t){var e=l(t);return a(e,c)||(s=r(t,n,n,[e]),c=e&&ze(e)),s},e,i,o)}for(var u=[],d=[],p=0,f=l.length;f>p;p++)u[p]=a,d[p]=null;return t.$watch(function(t){for(var e=!1,i=0,o=l.length;o>i;i++){var c=l[i](t);(e||(e=!a(c,u[i])))&&(d[i]=c,u[i]=c&&ze(c))}return e&&(s=r(t,n,n,d)),s},e,i,o)}function l(t,e,n,i){var r,o;return r=t.$watch(function(t){return i(t)},function(t,n,i){o=t,S(e)&&e.apply(this,arguments),b(t)&&i.$$postDigest(function(){b(o)&&r()})},n)}function c(t,e,n,i){function r(t){var e=!0;return o(t,function(t){b(t)||(e=!1)}),e}var a,s;return a=t.$watch(function(t){return i(t)},function(t,n,i){s=t,S(e)&&e.call(this,t,n,i),r(t)&&i.$$postDigest(function(){r(s)&&a()})},n)}function u(t,e,n,i){var r;return r=t.$watch(function(t){return i(t)},function(t,n,i){S(e)&&e.apply(this,arguments),r()},n)}function d(t,e){if(!e)return t;var n=t.$$watchDelegate,n=n!==c&&n!==l?function(n,i,r,o){return r=t(n,i,r,o),e(r,n,i)}:function(n,i,r,o){return r=t(n,i,r,o),n=e(r,n,i),b(r)?n:r};return t.$$watchDelegate&&t.$$watchDelegate!==s?n.$$watchDelegate=t.$$watchDelegate:e.$stateful||(n.$$watchDelegate=s,n.inputs=t.inputs?t.inputs:[t]),n}var p={csp:r.csp,expensiveChecks:!1},f={csp:r.csp,expensiveChecks:!0};return function(n,r,o){var a,h,g;switch(typeof n){case"string":g=n=n.trim();var v=o?e:t;return a=v[g],a||(":"===n.charAt(0)&&":"===n.charAt(1)&&(h=!0,n=n.substring(2)),o=o?f:p,a=new or(o),a=new sr(a,i,o).parse(n),a.constant?a.$$watchDelegate=u:h?a.$$watchDelegate=a.literal?c:l:a.inputs&&(a.$$watchDelegate=s),v[g]=a),d(a,r);case"function":return d(n,r);default:return m}}}]}function Be(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return We(function(e){t.$evalAsync(e)},e)}]}function Ue(){this.$get=["$browser","$exceptionHandler",function(t,e){return We(function(e){t.defer(e)},e)}]}function We(t,e){function r(t,e,n){function i(e){return function(n){r||(r=!0,e.call(t,n))}}var r=!1;return[i(e),i(n)]}function a(){this.$$state={status:0}}function s(t,e){return function(n){e.call(t,n)}}function l(i){!i.processScheduled&&i.pending&&(i.processScheduled=!0,t(function(){var t,r,o;o=i.pending,i.processScheduled=!1,i.pending=n;for(var a=0,s=o.length;s>a;++a){r=o[a][0],t=o[a][i.status];try{S(t)?r.resolve(t(i.value)):1===i.status?r.resolve(i.value):r.reject(i.value)}catch(l){r.reject(l),e(l)}}}))}function c(){this.promise=new a,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}var u=i("$q",TypeError);a.prototype={then:function(t,e,n){var i=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,t,e,n]),0<this.$$state.status&&l(this.$$state),i.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return p(e,!0,t)},function(e){return p(e,!1,t)},e)}},c.prototype={resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(u("qcycle",t)):this.$$resolve(t))},$$resolve:function(t){var n,i;i=r(this,this.$$resolve,this.$$reject);try{(w(t)||S(t))&&(n=t&&t.then),S(n)?(this.promise.$$state.status=-1,n.call(t,i[0],i[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,l(this.promise.$$state))}catch(o){i[1](o),e(o)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(n){var i=this.promise.$$state.pending;0>=this.promise.$$state.status&&i&&i.length&&t(function(){for(var t,r,o=0,a=i.length;a>o;o++){r=i[o][0],t=i[o][3];try{r.notify(S(t)?t(n):n)}catch(s){e(s)}}})}};var d=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},p=function(t,e,n){var i=null;try{S(n)&&(i=n())}catch(r){return d(r,!1)}return i&&S(i.then)?i.then(function(){return d(t,e)},function(t){return d(t,!1)}):d(t,e)},f=function(t,e,n,i){var r=new c;return r.resolve(t),r.promise.then(e,n,i)},h=function m(t){if(!S(t))throw u("norslvr",t);if(!(this instanceof m))return new m(t);var e=new c;return t(function(t){e.resolve(t)},function(t){e.reject(t)}),e.promise};return h.defer=function(){return new c},h.reject=function(t){var e=new c;return e.reject(t),e.promise},h.when=f,h.resolve=f,h.all=function(t){var e=new c,n=0,i=ni(t)?[]:{};return o(t,function(t,r){n++,f(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise},h}function Ge(){this.$get=["$window","$timeout",function(t,e){function n(){for(var t=0;t<u.length;t++){var e=u[t];e&&(u[t]=null,e())}c=u.length=0}function i(t){var e=u.length;return c++,u.push(t),0===e&&(l=s(n)),function(){e>=0&&(e=u[e]=null,0===--c&&l&&(l(),l=null,u.length=0))}}var r=t.requestAnimationFrame||t.webkitRequestAnimationFrame,o=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,a=!!r,s=a?function(t){var e=r(t);return function(){o(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};i.supported=a;var l,c=0,u=[];return i}]}function Qe(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++ti,this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=i("$rootScope"),a=null,s=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(i,l,c,u){function d(t){t.currentScope.$$destroyed=!0}function p(){this.$id=++ti,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function f(t){if(x.$$phase)throw n("inprog",x.$$phase);x.$$phase=t}function h(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function g(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function v(){}function $(){for(;C.length;)try{C.shift()()}catch(t){l(t)}s=null}function b(){null===s&&(s=u.defer(function(){x.$apply($)}))}p.prototype={constructor:p,$new:function(e,n){var i;return n=n||this,e?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),i=new this.$$ChildScope),i.$parent=n,i.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=i,n.$$childTail=i):n.$$childHead=n.$$childTail=i,(e||n!=this)&&i.$on("$destroy",d),i},$watch:function(t,e,n,i){var r=c(t);if(r.$$watchDelegate)return r.$$watchDelegate(this,e,n,r,t);var o=this,s=o.$$watchers,l={fn:e,last:v,get:r,exp:i||t,eq:!!n};return a=null,S(e)||(l.fn=m),s||(s=o.$$watchers=[]),s.unshift(l),h(this,1),function(){0<=M(s,l)&&h(o,-1),a=null}},$watchGroup:function(t,e){function n(){l=!1,c?(c=!1,e(r,r,s)):e(r,i,s)}var i=Array(t.length),r=Array(t.length),a=[],s=this,l=!1,c=!0;if(!t.length){var u=!0;return s.$evalAsync(function(){u&&e(r,r,s)}),function(){u=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){r[0]=t,i[0]=n,e(r,t===n?r:i,o)}):(o(t,function(t,e){var o=s.$watch(t,function(t,o){r[e]=t,i[e]=o,l||(l=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function n(t){i=t;var e,n,a,s;if(!y(i)){if(w(i))if(r(i))for(o!==p&&(o=p,m=o.length=0,u++),t=i.length,m!==t&&(u++,o.length=m=t),e=0;t>e;e++)s=o[e],a=i[e],n=s!==s&&a!==a,n||s===a||(u++,o[e]=a);else{o!==f&&(o=f={},m=0,u++),t=0;for(e in i)i.hasOwnProperty(e)&&(t++,a=i[e],s=o[e],e in o?(n=s!==s&&a!==a,n||s===a||(u++,o[e]=a)):(m++,o[e]=a,u++));if(m>t)for(e in u++,o)i.hasOwnProperty(e)||(m--,delete o[e])}else o!==i&&(o=i,u++);return u}}n.$stateful=!0;var i,o,a,s=this,l=1<e.length,u=0,d=c(t,n),p=[],f={},h=!0,m=0;return this.$watch(d,function(){if(h?(h=!1,e(i,i,s)):e(i,a,s),l)if(w(i))if(r(i)){a=Array(i.length);for(var t=0;t<i.length;t++)a[t]=i[t]}else for(t in a={},i)Un.call(i,t)&&(a[t]=i[t]);else a=i})},$digest:function(){var t,i,r,o,c,d,p,h,m,g=e,y=[];f("$digest"),u.$$checkUrlChange(),this===x&&null!==s&&(u.defer.cancel(s),$()),a=null;do{for(d=!1,p=this;_.length;){try{m=_.shift(),m.scope.$eval(m.expression,m.locals)}catch(b){l(b)}a=null}t:do{if(o=p.$$watchers)for(c=o.length;c--;)try{if(t=o[c])if((i=t.get(p))===(r=t.last)||(t.eq?H(i,r):"number"==typeof i&&"number"==typeof r&&isNaN(i)&&isNaN(r))){if(t===a){d=!1;break t}}else d=!0,
a=t,t.last=t.eq?N(i,null):i,t.fn(i,r===v?i:r,p),5>g&&(h=4-g,y[h]||(y[h]=[]),y[h].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:i,oldVal:r}))}catch(w){l(w)}if(!(o=p.$$watchersCount&&p.$$childHead||p!==this&&p.$$nextSibling))for(;p!==this&&!(o=p.$$nextSibling);)p=p.$parent}while(p=o);if((d||_.length)&&!g--)throw x.$$phase=null,n("infdig",e,y)}while(d||_.length);for(x.$$phase=null;k.length;)try{k.shift()()}catch(C){l(C)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===x&&u.$$applicationDestroyed(),h(this,-this.$$watchersCount);for(var e in this.$$listenerCount)g(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=m,this.$on=this.$watch=this.$watchGroup=function(){return m},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){x.$$phase||_.length||u.defer(function(){_.length&&x.$digest()}),_.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){k.push(t)},$apply:function(t){try{return f("$apply"),this.$eval(t)}catch(e){l(e)}finally{x.$$phase=null;try{x.$digest()}catch(n){throw l(n),n}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&C.push(e),b()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var i=this;do i.$$listenerCount[t]||(i.$$listenerCount[t]=0),i.$$listenerCount[t]++;while(i=i.$parent);var r=this;return function(){var i=n.indexOf(e);-1!==i&&(n[i]=null,g(r,1,t))}},$emit:function(t,e){var n,i,r,o=[],a=this,s=!1,c={name:t,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},u=F([c],arguments,1);do{for(n=a.$$listeners[t]||o,c.currentScope=a,i=0,r=n.length;r>i;i++)if(n[i])try{n[i].apply(null,u)}catch(d){l(d)}else n.splice(i,1),i--,r--;if(s)return c.currentScope=null,c;a=a.$parent}while(a);return c.currentScope=null,c},$broadcast:function(t,e){var n=this,i=this,r={name:t,targetScope:this,preventDefault:function(){r.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[t])return r;for(var o,a,s=F([r],arguments,1);n=i;){for(r.currentScope=n,i=n.$$listeners[t]||[],o=0,a=i.length;a>o;o++)if(i[o])try{i[o].apply(null,s)}catch(c){l(c)}else i.splice(o,1),o--,a--;if(!(i=n.$$listenerCount[t]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(i=n.$$nextSibling);)n=n.$parent}return r.currentScope=null,r}};var x=new p,_=x.$$asyncQueue=[],k=x.$$postDigestQueue=[],C=x.$$applyAsyncQueue=[];return x}]}function Xe(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.$get=function(){return function(n,i){var r,o=i?e:t;return r=on(n).href,""===r||r.match(o)?n:"unsafe:"+r}}}function Ye(t){if("self"===t)return t;if(_(t)){if(-1<t.indexOf("***"))throw cr("iwcard",t);return t=oi(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(T(t))return new RegExp("^"+t.source+"$");throw cr("imatcher")}function Ze(t){var e=[];return b(t)&&o(t,function(t){e.push(Ye(t))}),e}function Je(){this.SCE_CONTEXTS=ur;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Ze(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Ze(t)),e},this.$get=["$injector",function(i){function r(t,e){return"self"===t?an(e):!!t.exec(e.href)}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}var a=function(t){throw cr("unsafe")};i.has("$sanitize")&&(a=i.get("$sanitize"));var s=o(),l={};return l[ur.HTML]=o(s),l[ur.CSS]=o(s),l[ur.URL]=o(s),l[ur.JS]=o(s),l[ur.RESOURCE_URL]=o(l[ur.URL]),{trustAs:function(t,e){var i=l.hasOwnProperty(t)?l[t]:null;if(!i)throw cr("icontext",t,e);if(null===e||e===n||""===e)return e;if("string"!=typeof e)throw cr("itype",t);return new i(e)},getTrusted:function(i,o){if(null===o||o===n||""===o)return o;var s=l.hasOwnProperty(i)?l[i]:null;if(s&&o instanceof s)return o.$$unwrapTrustedValue();if(i===ur.RESOURCE_URL){var c,u,s=on(o.toString()),d=!1;for(c=0,u=t.length;u>c;c++)if(r(t[c],s)){d=!0;break}if(d)for(c=0,u=e.length;u>c;c++)if(r(e[c],s)){d=!1;break}if(d)return o;throw cr("insecurl",o.toString())}if(i===ur.HTML)return a(o);throw cr("unsafe")},valueOf:function(t){return t instanceof s?t.$$unwrapTrustedValue():t}}}]}function Ke(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&8>In)throw cr("iequirks");var i=q(ur);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=g),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var r=i.parseAs,a=i.getTrusted,s=i.trustAs;return o(ur,function(t,e){var n=Bn(e);i[pt("parse_as_"+n)]=function(e){return r(t,e)},i[pt("get_trusted_"+n)]=function(e){return a(t,e)},i[pt("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function tn(){this.$get=["$window","$document",function(t,e){var n,i={},r=f((/android (\d+)/.exec(Bn((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},s=/^(Moz|webkit|ms)(?=[A-Z])/,l=a.body&&a.body.style,c=!1,u=!1;if(l){for(var d in l)if(c=s.exec(d)){n=c[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),c=!!("transition"in l||n+"Transition"in l),u=!!("animation"in l||n+"Animation"in l),!r||c&&u||(c=_(l.webkitTransition),u=_(l.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>r||o),hasEvent:function(t){if("input"===t&&11>=In)return!1;if(y(i[t])){var e=a.createElement("div");i[t]="on"+t in e}return i[t]},csp:ai(),vendorPrefix:n,transitions:c,animations:u,android:r}}]}function en(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,i){function r(o,a){r.totalPendingRequests++,_(o)&&t.get(o)||(o=i.getTrustedResourceUrl(o));var s=e.defaults&&e.defaults.transformResponse;return ni(s)?s=s.filter(function(t){return t!==ie}):s===ie&&(s=null),e.get(o,{cache:t,transformResponse:s})["finally"](function(){r.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},function(t){if(!a)throw Ii("tpload",o,t.status,t.statusText);return n.reject(t)})}return r.totalPendingRequests=0,r}]}function nn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){t=t.getElementsByClassName("ng-binding");var i=[];return o(t,function(t){var r=Kn.element(t).data("$binding");r&&o(r,function(r){n?new RegExp("(^|\\s)"+oi(e)+"(\\s|\\||$)").test(r)&&i.push(t):-1!=r.indexOf(e)&&i.push(t)})}),i},findModels:function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var o=t.querySelectorAll("["+i[r]+"model"+(n?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}}}]}function rn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,i,r){function o(o,s,l){S(o)||(l=s,s=o,o=m);var c,u=Gn.call(arguments,3),d=b(l)&&!l,p=(d?i:n).defer(),f=p.promise;return c=e.defer(function(){try{p.resolve(o.apply(null,u))}catch(e){p.reject(e),r(e)}finally{delete a[f.$$timeoutId]}d||t.$apply()},s),f.$$timeoutId=c,a[c]=p,f}var a={};return o.cancel=function(t){return t&&t.$$timeoutId in a?(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId)):!1},o}]}function on(t){return In&&(dr.setAttribute("href",t),t=dr.href),dr.setAttribute("href",t),{href:dr.href,protocol:dr.protocol?dr.protocol.replace(/:$/,""):"",host:dr.host,search:dr.search?dr.search.replace(/^\?/,""):"",hash:dr.hash?dr.hash.replace(/^#/,""):"",hostname:dr.hostname,port:dr.port,pathname:"/"===dr.pathname.charAt(0)?dr.pathname:"/"+dr.pathname}}function an(t){return t=_(t)?on(t):t,t.protocol===pr.protocol&&t.host===pr.host}function sn(){this.$get=v(t)}function ln(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var i=t[0]||{},r={},o="";return function(){var t,a,s,l,c;if(t=i.cookie||"",t!==o)for(o=t,t=o.split("; "),r={},s=0;s<t.length;s++)a=t[s],l=a.indexOf("="),l>0&&(c=e(a.substring(0,l)),r[c]===n&&(r[c]=e(a.substring(l+1))));return r}}function cn(){this.$get=ln}function un(t){function e(n,i){if(w(n)){var r={};return o(n,function(t,n){r[n]=e(n,t)}),r}return t.factory(n+"Filter",i)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",mn),e("date",kn),e("filter",dn),e("json",Cn),e("limitTo",Sn),e("lowercase",vr),e("number",gn),e("orderBy",Tn),e("uppercase",$r)}function dn(){return function(t,e,n){if(!r(t)){if(null==t)return t;throw i("filter")("notarray",t)}var o;switch(hn(e)){case"function":break;case"boolean":case"null":case"number":case"string":o=!0;case"object":e=pn(e,n,o);break;default:return t}return Array.prototype.filter.call(t,e)}}function pn(t,e,n){var i=w(t)&&"$"in t;return!0===e?e=H:S(e)||(e=function(t,e){return y(t)?!1:null===t||null===e?t===e:w(e)||w(t)&&!$(t)?!1:(t=Bn(""+t),e=Bn(""+e),-1!==t.indexOf(e))}),function(r){return i&&!w(r)?fn(r,t.$,e,!1):fn(r,t,e,n)}}function fn(t,e,n,i,r){var o=hn(t),a=hn(e);if("string"===a&&"!"===e.charAt(0))return!fn(t,e.substring(1),n,i);if(ni(t))return t.some(function(t){return fn(t,e,n,i)});switch(o){case"object":var s;if(i){for(s in t)if("$"!==s.charAt(0)&&fn(t[s],e,n,!0))return!0;return r?!1:fn(t,e,n,!1)}if("object"===a){for(s in e)if(r=e[s],!S(r)&&!y(r)&&(o="$"===s,!fn(o?t:t[s],r,n,o,o)))return!1;return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function hn(t){return null===t?"null":typeof t}function mn(t){var e=t.NUMBER_FORMATS;return function(t,n,i){return y(n)&&(n=e.CURRENCY_SYM),y(i)&&(i=e.PATTERNS[1].maxFrac),null==t?t:vn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,i).replace(/\u00A4/g,n)}}function gn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:vn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function vn(t,e,n,i,r){if(w(t))return"";var o=0>t;t=Math.abs(t);var a=1/0===t;if(!a&&!isFinite(t))return"";var s=t+"",l="",c=!1,u=[];if(a&&(l="∞"),!a&&-1!==s.indexOf("e")){var d=s.match(/([\d\.]+)e(-?)(\d+)/);d&&"-"==d[2]&&d[3]>r+1?t=0:(l=s,c=!0)}if(a||c)r>0&&1>t&&(l=t.toFixed(r),t=parseFloat(l));else{a=(s.split(fr)[1]||"").length,y(r)&&(r=Math.min(Math.max(e.minFrac,a),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+r)).toString()+"e"+-r);var a=(""+t).split(fr),s=a[0],a=a[1]||"",d=0,p=e.lgSize,f=e.gSize;if(s.length>=p+f)for(d=s.length-p,c=0;d>c;c++)0===(d-c)%f&&0!==c&&(l+=n),l+=s.charAt(c);for(c=d;c<s.length;c++)0===(s.length-c)%p&&0!==c&&(l+=n),l+=s.charAt(c);for(;a.length<r;)a+="0";r&&"0"!==r&&(l+=i+a.substr(0,r))}return 0===t&&(o=!1),u.push(o?e.negPre:e.posPre,l,o?e.negSuf:e.posSuf),u.join("")}function $n(t,e,n){var i="";for(0>t&&(i="-",t=-t),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),i+t}function yn(t,e,n,i){return n=n||0,function(r){return r=r["get"+t](),(n>0||r>-n)&&(r+=n),0===r&&-12==n&&(r=12),$n(r,e,i)}}function bn(t,e){return function(n,i){var r=n["get"+t](),o=Wn(e?"SHORT"+t:t);return i[o][r]}}function wn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function xn(t){return function(e){var n=wn(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+n,e=1+Math.round(e/6048e5),$n(e,t)}}function _n(t,e){return 0>=t.getFullYear()?e.ERAS[0]:e.ERAS[1]}function kn(t){function e(t){var e;if(e=t.match(n)){t=new Date(0);var i=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(i=f(e[9]+e[10]),r=f(e[9]+e[11])),o.call(t,f(e[1]),f(e[2])-1,f(e[3])),i=f(e[4]||0)-i,r=f(e[5]||0)-r,o=f(e[6]||0),e=Math.round(1e3*parseFloat("0."+(e[7]||0))),a.call(t,i,r,o,e)}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,r){var a,s,l="",c=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,_(n)&&(n=gr.test(n)?f(n):e(n)),k(n)&&(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;i;)(s=mr.exec(i))?(c=F(c,s,1),i=c.pop()):(c.push(i),i=null);var u=n.getTimezoneOffset();return r&&(u=V(r,n.getTimezoneOffset()),n=B(n,r,!0)),o(c,function(e){a=hr[e],l+=a?a(n,t.DATETIME_FORMATS,u):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function Cn(){return function(t,e){return y(e)&&(e=2),R(t,e)}}function Sn(){return function(t,e,n){return e=1/0===Math.abs(Number(e))?Number(e):f(e),isNaN(e)?t:(k(t)&&(t=t.toString()),ni(t)||_(t)?(n=!n||isNaN(n)?0:f(n),n=0>n&&n>=-t.length?t.length+n:n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function Tn(t){function e(e,n){return n=n?-1:1,e.map(function(e){var i=1,r=g;if(S(e))r=e;else if(_(e)&&(("+"==e.charAt(0)||"-"==e.charAt(0))&&(i="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e),r.constant)))var o=r(),r=function(t){return t[o]};return{get:r,descending:i*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}return function(t,i,o){if(!r(t))return t;ni(i)||(i=[i]),0===i.length&&(i=["+"]);var a=e(i,o);return t=Array.prototype.map.call(t,function(t,e){return{value:t,predicateValues:a.map(function(i){var r=i.get(t);return i=typeof r,null===r?(i="string",r="null"):"string"===i?r=r.toLowerCase():"object"===i&&("function"==typeof r.valueOf&&(r=r.valueOf(),n(r))||$(r)&&(r=r.toString(),n(r))||(r=e)),{value:r,type:i}})}}),t.sort(function(t,e){for(var n=0,i=0,r=a.length;r>i;++i){var n=t.predicateValues[i],o=e.predicateValues[i],s=0;if(n.type===o.type?n.value!==o.value&&(s=n.value<o.value?-1:1):s=n.type<o.type?-1:1,n=s*a[i].descending)break}return n}),t=t.map(function(t){return t.value})}}function An(t){return S(t)&&(t={link:t}),t.restrict=t.restrict||"AC",v(t)}function En(t,e,i,r,a){var s=this,l=[],c=s.$$parentForm=t.parent().controller("form")||wr;s.$error={},s.$$success={},s.$pending=n,s.$name=a(e.name||e.ngForm||"")(i),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,c.$addControl(s),s.$rollbackViewValue=function(){o(l,function(t){t.$rollbackViewValue()})},s.$commitViewValue=function(){o(l,function(t){t.$commitViewValue()})},s.$addControl=function(t){at(t.$name,"input"),l.push(t),t.$name&&(s[t.$name]=t)},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&&delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&&s[t.$name]===t&&delete s[t.$name],o(s.$pending,function(e,n){s.$setValidity(n,null,t)}),o(s.$error,function(e,n){s.$setValidity(n,null,t)}),o(s.$$success,function(e,n){s.$setValidity(n,null,t)}),M(l,t)},Hn({ctrl:this,$element:t,set:function(t,e,n){var i=t[e];i?-1===i.indexOf(n)&&i.push(n):t[e]=[n]},unset:function(t,e,n){var i=t[e];i&&(M(i,n),0===i.length&&delete t[e])},parentForm:c,$animate:r}),s.$setDirty=function(){r.removeClass(t,no),r.addClass(t,io),s.$dirty=!0,s.$pristine=!1,c.$setDirty()},s.$setPristine=function(){r.setClass(t,no,io+" ng-submitted"),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,o(l,function(t){t.$setPristine()})},s.$setUntouched=function(){o(l,function(t){t.$setUntouched()})},s.$setSubmitted=function(){r.addClass(t,"ng-submitted"),s.$submitted=!0,c.$setSubmitted()}}function On(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function Dn(t,e,n,i,r,o){var a=Bn(e[0].type);if(!r.android){var s=!1;e.on("compositionstart",function(t){s=!0}),e.on("compositionend",function(){s=!1,l()})}var l=function(t){if(c&&(o.defer.cancel(c),c=null),!s){var r=e.val();t=t&&t.type,"password"===a||n.ngTrim&&"false"===n.ngTrim||(r=ri(r)),(i.$viewValue!==r||""===r&&i.$$hasNativeValidators)&&i.$setViewValue(r,t)}};if(r.hasEvent("input"))e.on("input",l);else{var c,u=function(t,e,n){c||(c=o.defer(function(){c=null,e&&e.value===n||l(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||e>15&&19>e||e>=37&&40>=e||u(t,this,this.value)}),r.hasEvent("paste")&&e.on("paste cut",u)}e.on("change",l),i.$render=function(){e.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)}}function Pn(t,e){return function(n,i){var r,a;if(C(n))return n;if(_(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Cr.test(n))return new Date(n);if(t.lastIndex=0,r=t.exec(n))return r.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(r,function(t,n){n<e.length&&(a[e[n]]=+t)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return 0/0}}function jn(t,e,i,r){return function(o,a,s,l,c,u,d){function p(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function f(t){return b(t)?C(t)?t:i(t):n}Mn(o,a,s,l),Dn(o,a,s,l,c,u);var h,m=l&&l.$options&&l.$options.timezone;if(l.$$parserName=t,l.$parsers.push(function(t){return l.$isEmpty(t)?null:e.test(t)?(t=i(t,h),m&&(t=B(t,m)),t):n}),l.$formatters.push(function(t){if(t&&!C(t))throw oo("datefmt",t);return p(t)?((h=t)&&m&&(h=B(h,m,!0)),d("date")(t,r,m)):(h=null,"")}),b(s.min)||s.ngMin){var g;l.$validators.min=function(t){return!p(t)||y(g)||i(t)>=g},s.$observe("min",function(t){g=f(t),l.$validate()})}if(b(s.max)||s.ngMax){var v;l.$validators.max=function(t){return!p(t)||y(v)||i(t)<=v},s.$observe("max",function(t){v=f(t),l.$validate()})}}}function Mn(t,e,i,r){(r.$$hasNativeValidators=w(e[0].validity))&&r.$parsers.push(function(t){var i=e.prop("validity")||{};return i.badInput&&!i.typeMismatch?n:t})}function Nn(t,e,n,r,o){if(b(r)){if(t=t(r),!t.constant)throw i("ngModel")("constexpr",n,r);return t(e)}return o}function qn(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[],i=0;t:for(;i<t.length;i++){for(var r=t[i],o=0;o<e.length;o++)if(r==e[o])continue t;n.push(r)}return n}function r(t){var e=[];return ni(t)?(o(t,function(t){e=e.concat(r(t))}),e):_(t)?t.split(" "):w(t)?(o(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(a,s,l){function c(t,e){var n=s.data("$classCounts")||ct(),i=[];return o(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),s.data("$classCounts",n),i.join(" ")}function u(t){if(!0===e||a.$index%2===e){var o=r(t||[]);if(d){if(!H(t,d)){var u=r(d),p=i(o,u),o=i(u,o),p=c(p,1),o=c(o,-1);p&&p.length&&n.addClass(s,p),o&&o.length&&n.removeClass(s,o)}}else{var p=c(o,1);l.$addClass(p)}}d=q(t)}var d;a.$watch(l[t],u,!0),l.$observe("class",function(e){u(a.$eval(l[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,i){var o=1&n;if(o!==(1&i)){var s=r(a.$eval(l[t]));o===e?(o=c(s,1),l.$addClass(o)):(o=c(s,-1),l.$removeClass(o))}})}}}]}function Hn(t){function e(t,e){e&&!a[t]?(u.addClass(o,t),a[t]=!0):!e&&a[t]&&(u.removeClass(o,t),a[t]=!1)}function i(t,n){t=t?"-"+nt(t,"-"):"",e(to+t,!0===n),e(eo+t,!1===n)}var r=t.ctrl,o=t.$element,a={},s=t.set,l=t.unset,c=t.parentForm,u=t.$animate;a[eo]=!(a[to]=o.hasClass(to)),r.$setValidity=function(t,o,a){o===n?(r.$pending||(r.$pending={}),s(r.$pending,t,a)):(r.$pending&&l(r.$pending,t,a),Fn(r.$pending)&&(r.$pending=n)),O(o)?o?(l(r.$error,t,a),s(r.$$success,t,a)):(s(r.$error,t,a),l(r.$$success,t,a)):(l(r.$error,t,a),l(r.$$success,t,a)),r.$pending?(e(ro,!0),r.$valid=r.$invalid=n,i("",null)):(e(ro,!1),r.$valid=Fn(r.$error),r.$invalid=!r.$valid,i("",r.$valid)),o=r.$pending&&r.$pending[t]?n:r.$error[t]?!1:r.$$success[t]?!0:null,i(t,o),c.$setValidity(t,o,r)}}function Fn(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var In,Ln,Rn,zn,Vn=/^\/(.+)\/([a-z]*)$/,Bn=function(t){return _(t)?t.toLowerCase():t},Un=Object.prototype.hasOwnProperty,Wn=function(t){return _(t)?t.toUpperCase():t},Gn=[].slice,Qn=[].splice,Xn=[].push,Yn=Object.prototype.toString,Zn=Object.getPrototypeOf,Jn=i("ng"),Kn=t.angular||(t.angular={}),ti=0;In=e.documentMode,m.$inject=[],g.$inject=[];var ei,ni=Array.isArray,ii=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,ri=function(t){return _(t)?t.trim():t},oi=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},ai=function(){if(b(ai.isActive_))return ai.isActive_;var t=!(!e.querySelector("[ng-csp]")&&!e.querySelector("[data-ng-csp]"));if(!t)try{new Function("")}catch(n){t=!0}return ai.isActive_=t},si=function(){if(b(si.name_))return si.name_;var t,n,i,r,o=li.length;for(n=0;o>n;++n)if(i=li[n],t=e.querySelector("["+i.replace(":","\\:")+"jq]")){r=t.getAttribute(i+"jq");break}return si.name_=r},li=["ng-","data-ng-","ng:","x-ng-"],ci=/[A-Z]/g,ui=!1,di=1,pi=3,fi={full:"1.4.3",major:1,minor:4,dot:3,codeName:"foam-acceleration"};mt.expando="ng339";var hi=mt.cache={},mi=1;mt._data=function(t){return this.cache[t[this.expando]]||{}};var gi=/([\:\-\_]+(.))/g,vi=/^moz([A-Z])/,$i={mouseleave:"mouseout",mouseenter:"mouseover"},yi=i("jqLite"),bi=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,wi=/<|&#?\w+;/,xi=/<([\w:]+)/,_i=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ki={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ki.optgroup=ki.option,ki.tbody=ki.tfoot=ki.colgroup=ki.caption=ki.thead,ki.th=ki.td;var Ci=mt.prototype={ready:function(n){function i(){r||(r=!0,n())}var r=!1;"complete"===e.readyState?setTimeout(i):(this.on("DOMContentLoaded",i),mt(t).on("load",i))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Ln(t>=0?this[t]:this[this.length+t])},length:0,push:Xn,sort:[].sort,splice:[].splice},Si={};o("multiple selected checked disabled readOnly required open".split(" "),function(t){Si[Bn(t)]=t});var Ti={};o("input select option textarea button form details".split(" "),function(t){Ti[t]=!0});var Ai={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};o({data:wt,removeData:yt,hasData:function(t){for(var e in hi[t.ng339])return!0;return!1}},function(t,e){mt[e]=t}),o({data:wt,inheritedData:Tt,scope:function(t){return Ln.data(t,"$scope")||Tt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Ln.data(t,"$isolateScope")||Ln.data(t,"$isolateScopeNoTemplate")},controller:St,injector:function(t){return Tt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:xt,css:function(t,e,n){return e=pt(e),b(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,i){var r=t.nodeType;if(r!==pi&&2!==r&&8!==r)if(r=Bn(e),Si[r]){if(!b(i))return t[e]||(t.attributes.getNamedItem(e)||m).specified?r:n;i?(t[e]=!0,t.setAttribute(e,r)):(t[e]=!1,t.removeAttribute(r))}else if(b(i))t.setAttribute(e,i);else if(t.getAttribute)return t=t.getAttribute(e,2),null===t?n:t},prop:function(t,e,n){return b(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(y(e)){var n=t.nodeType;return n===di||n===pi?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(y(e)){if(t.multiple&&"select"===j(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return y(e)?t.innerHTML:(vt(t,!0),void(t.innerHTML=e))},empty:At},function(t,e){mt.prototype[e]=function(e,i){var r,o,a=this.length;if(t!==At&&(2==t.length&&t!==xt&&t!==St?e:i)===n){if(w(e)){for(r=0;a>r;r++)if(t===wt)t(this[r],e);else for(o in e)t(this[r],o,e[o]);return this}for(r=t.$dv,a=r===n?Math.min(a,1):a,o=0;a>o;o++){var s=t(this[o],e,i);r=r?r+s:s}return r}for(r=0;a>r;r++)t(this[r],e,i);return this}}),o({removeData:yt,on:function Mo(t,e,n,i){if(b(i))throw yi("onargs");if(ft(t)){var r=bt(t,!0);i=r.events;var o=r.handle;o||(o=r.handle=jt(t,i));for(var r=0<=e.indexOf(" ")?e.split(" "):[e],a=r.length;a--;){e=r[a];var s=i[e];s||(i[e]=[],"mouseenter"===e||"mouseleave"===e?Mo(t,$i[e],function(t){var n=t.relatedTarget;n&&(n===this||this.contains(n))||o(t,e)}):"$destroy"!==e&&t.addEventListener(e,o,!1),s=i[e]),s.push(n)}}},off:$t,one:function(t,e,n){t=Ln(t),t.on(e,function i(){t.off(e,n),t.off(e,i)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;vt(t),o(new mt(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===di&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===di||11===n){e=new mt(e);for(var n=0,i=e.length;i>n;n++)t.appendChild(e[n])}},prepend:function(t,e){if(t.nodeType===di){var n=t.firstChild;o(new mt(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=Ln(e).eq(0).clone()[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:Et,detach:function(t){Et(t,!0)},after:function(t,e){var n=t,i=t.parentNode;e=new mt(e);for(var r=0,o=e.length;o>r;r++){var a=e[r];i.insertBefore(a,n.nextSibling),n=a}},addClass:kt,removeClass:_t,toggleClass:function(t,e,n){e&&o(e.split(" "),function(e){var i=n;y(i)&&(i=!xt(t,e)),(i?kt:_t)(t,e)})},parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:gt,triggerHandler:function(t,e,n){var i,r,a=e.type||e,s=bt(t);(s=(s=s&&s.events)&&s[a])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:m,type:a,target:t},e.type&&(i=d(i,e)),e=q(s),r=n?[i].concat(n):[i],o(e,function(e){i.isImmediatePropagationStopped()||e.apply(t,r)}))}},function(t,e){mt.prototype[e]=function(e,n,i){for(var r,o=0,a=this.length;a>o;o++)y(r)?(r=t(this[o],e,n,i),b(r)&&(r=Ln(r))):Ct(r,t(this[o],e,n,i));return b(r)?r:this},mt.prototype.bind=mt.prototype.on,mt.prototype.unbind=mt.prototype.off}),qt.prototype={put:function(t,e){this[Nt(t,this.nextUid)]=e},get:function(t){return this[Nt(t,this.nextUid)]},remove:function(t){var e=this[t=Nt(t,this.nextUid)];return delete this[t],e}};var Ei=[function(){this.$get=[function(){return qt}]}],Oi=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Di=/,/,Pi=/^\s*(_?)(\S+?)\1\s*$/,ji=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Mi=i("$injector");Ft.$$annotate=function(t,e,n){var i;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw _(n)&&n||(n=t.name||Ht(t)),Mi("strictdi",n);e=t.toString().replace(ji,""),e=e.match(Oi),o(e[1].split(Di),function(t){t.replace(Pi,function(t,e,n){i.push(n)})})}t.$inject=i}}else ni(t)?(e=t.length-1,ot(t[e],"fn"),i=t.slice(0,e)):ot(t,"fn",!0);return i};var Ni=i("$animate"),qi=function(){this.$get=["$q","$$rAF",function(t,e){function n(){}return n.all=m,n.chain=m,n.prototype={end:m,cancel:m,resume:m,pause:m,complete:m,then:function(n,i){return t(function(t){e(function(){t()})}).then(n,i)}},n}]},Hi=function(){var t=new qt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function r(n,r,a){var s=t.get(n);s||(t.put(n,s={}),e.push(n)),r&&o(r.split(" "),function(t){t&&(s[t]=!0)}),a&&o(a.split(" "),function(t){t&&(s[t]=!1)}),1<e.length||i.$$postDigest(function(){o(e,function(e){var n=t.get(e);if(n){var i=Rt(e.attr("class")),r="",a="";o(n,function(t,e){t!==!!i[e]&&(t?r+=(r.length?" ":"")+e:a+=(a.length?" ":"")+e)}),o(e,function(t){r&&kt(t,r),a&&_t(t,a)}),t.remove(e)}}),e.length=0})}return{enabled:m,on:m,off:m,pin:m,push:function(t,e,i,o){return o&&o(),i=i||{},i.from&&t.css(i.from),i.to&&t.css(i.to),(i.addClass||i.removeClass)&&r(t,i.addClass,i.removeClass),new n}}}]},Fi=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,i){if(n&&"."!==n.charAt(0))throw Ni("notcsel",n);var r=n+"-animation";e.$$registeredAnimations[n.substr(1)]=r,t.factory(r,i)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Ni("nongcls","ng-animate");return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var i;t:{for(i=0;i<n.length;i++){var r=n[i];if(1===r.nodeType){i=r;break t}}i=void 0}!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,i,r,o){return i=i&&Ln(i),r=r&&Ln(r),i=i||r.parent(),e(n,i,r),t.push(n,"enter",zt(o))},move:function(n,i,r,o){return i=i&&Ln(i),r=r&&Ln(r),i=i||r.parent(),e(n,i,r),t.push(n,"move",zt(o))},leave:function(e,n){return t.push(e,"leave",zt(n),function(){e.remove()})},addClass:function(e,n,i){return i=zt(i),i.addClass=Lt(i.addclass,n),t.push(e,"addClass",i)},removeClass:function(e,n,i){return i=zt(i),i.removeClass=Lt(i.removeClass,n),t.push(e,"removeClass",i)},setClass:function(e,n,i,r){return r=zt(r),r.addClass=Lt(r.addClass,n),r.removeClass=Lt(r.removeClass,i),t.push(e,"setClass",r)},animate:function(e,n,i,r,o){return o=zt(o),o.from=o.from?d(o.from,n):n,o.to=o.to?d(o.to,i):i,o.tempClasses=Lt(o.tempClasses,r||"ng-inline-animate"),t.push(e,"animate",o)}}}]}],Ii=i("$compile");Gt.$inject=["$provide","$$sanitizeUriProvider"];var Li=/^((?:x|data)[\:\-_])/i,Ri=i("$controller"),zi=/^(\S+)(\s+as\s+(\w+))?$/,Vi="application/json",Bi={"Content-Type":Vi+";charset=utf-8"},Ui=/^\[|^\{(?!\{)/,Wi={"[":/]$/,"{":/}$/},Gi=/^\)\]\}',?\n/,Qi=Kn.$interpolateMinErr=i("$interpolate");Qi.throwNoconcat=function(t){throw Qi("noconcat",t)},Qi.interr=function(t,e){return Qi("interr",t,e.toString())};var Xi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Yi={http:80,https:443,ftp:21},Zi=i("$location"),Ji={$$html5:!1,$$replace:!1,absUrl:ke("$$absUrl"),url:function(t){if(y(t))return this.$$url;var e=Xi.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:ke("$$protocol"),host:ke("$$host"),port:ke("$$port"),path:Ce("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(_(t)||k(t))t=t.toString(),this.$$search=G(t);else{if(!w(t))throw Zi("isrcharg");t=N(t,{}),o(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:y(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ce("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};o([_e,xe,we],function(t){t.prototype=Object.create(Ji),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==we||!this.$$html5)throw Zi("nostate");return this.$$state=y(e)?null:e,this}});var Ki=i("$parse"),tr=Function.prototype.call,er=Function.prototype.apply,nr=Function.prototype.bind,ir=ct();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){ir[t]=!0});var rr={n:"\n",f:"\f",r:"\r",t:"	",v:"","'":"'",'"':'"'},or=function(t){this.options=t};or.prototype={constructor:or,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;)if(t=this.text.charAt(this.index),'"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();
else if(this.isIdent(t))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var e=t+this.peek(),n=e+this.peek(2),i=ir[e],r=ir[n];ir[t]||i||r?(t=r?n:i?e:t,this.tokens.push({index:this.index,text:t,operator:!0}),this.index+=t.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){return t=t||1,this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(t){return t>="0"&&"9">=t&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"	"===t||"\n"===t||""===t||" "===t},isIdent:function(t){return t>="a"&&"z">=t||t>="A"&&"Z">=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){throw n=n||this.index,e=b(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n,Ki("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=Bn(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"==n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",i=t,r=!1;this.index<this.text.length;){var o=this.text.charAt(this.index),i=i+o;if(r)"u"===o?(r=this.text.substring(this.index+1,this.index+5),r.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,n+=String.fromCharCode(parseInt(r,16))):n+=rr[o]||o,r=!1;else if("\\"===o)r=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:i,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var ar=function(t,e){this.lexer=t,this.options=e};ar.Program="Program",ar.ExpressionStatement="ExpressionStatement",ar.AssignmentExpression="AssignmentExpression",ar.ConditionalExpression="ConditionalExpression",ar.LogicalExpression="LogicalExpression",ar.BinaryExpression="BinaryExpression",ar.UnaryExpression="UnaryExpression",ar.CallExpression="CallExpression",ar.MemberExpression="MemberExpression",ar.Identifier="Identifier",ar.Literal="Literal",ar.ArrayExpression="ArrayExpression",ar.Property="Property",ar.ObjectExpression="ObjectExpression",ar.ThisExpression="ThisExpression",ar.NGValueParameter="NGValueParameter",ar.prototype={ast:function(t){return this.text=t,this.tokens=this.lexer.lex(t),t=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var t=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:ar.Program,body:t}},expressionStatement:function(){return{type:ar.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:ar.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:ar.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:ar.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:ar.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:ar.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:ar.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:ar.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:ar.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:ar.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=N(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:ar.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:ar.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:ar.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){t=[t];for(var e={type:ar.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.expression());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:ar.Identifier,name:t.text}},constant:function(){return{type:ar.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:ar.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:ar.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:ar.ObjectExpression,properties:e}},throwError:function(t,e){throw Ki("syntax",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Ki("ueoe",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Ki("ueoe",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,r){if(this.tokens.length>t){t=this.tokens[t];var o=t.text;if(o===e||o===n||o===i||o===r||!(e||n||i||r))return t}return!1},expect:function(t,e,n,i){return(t=this.peek(t,e,n,i))?(this.tokens.shift(),t):!1},constants:{"true":{type:ar.Literal,value:!0},"false":{type:ar.Literal,value:!1},"null":{type:ar.Literal,value:null},undefined:{type:ar.Literal,value:n},"this":{type:ar.ThisExpression}}},Fe.prototype={compile:function(t,e){var i=this,r=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},je(r,i.$filter);var a,s="";return this.stage="assign",(a=qe(r))&&(this.state.computing="assign",s=this.nextId(),this.recurse(a,s),s="fn.assign="+this.generateFunction("assign","s,v,l")),a=Me(r.body),i.stage="inputs",o(a,function(t,e){var n="fn"+e;i.state[n]={vars:[],body:[],own:{}},i.state.computing=n;var r=i.nextId();i.recurse(t,r),i.return_(r),i.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(r),s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",s=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",s)(this.$filter,Ae,Ee,Oe,De,Pe,t),this.state=this.stage=n,s.literal=He(r),s.constant=r.constant,s},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,function(n,i){t.push(n+"=$filter("+e.escape(i)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,i,r,a,s){var l,c,u,d,p=this;if(r=r||m,!s&&b(t.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,i,r,a,!0));else switch(t.type){case ar.Program:o(t.body,function(e,i){p.recurse(e.expression,n,n,function(t){c=t}),i!==t.body.length-1?p.current().body.push(c,";"):p.return_(c)});break;case ar.Literal:d=this.escape(t.value),this.assign(e,d),r(d);break;case ar.UnaryExpression:this.recurse(t.argument,n,n,function(t){c=t}),d=t.operator+"("+this.ifDefined(c,0)+")",this.assign(e,d),r(d);break;case ar.BinaryExpression:this.recurse(t.left,n,n,function(t){l=t}),this.recurse(t.right,n,n,function(t){c=t}),d="+"===t.operator?this.plus(l,c):"-"===t.operator?this.ifDefined(l,0)+t.operator+this.ifDefined(c,0):"("+l+")"+t.operator+"("+c+")",this.assign(e,d),r(d);break;case ar.LogicalExpression:e=e||this.nextId(),p.recurse(t.left,e),p.if_("&&"===t.operator?e:p.not(e),p.lazyRecurse(t.right,e)),r(e);break;case ar.ConditionalExpression:e=e||this.nextId(),p.recurse(t.test,e),p.if_(e,p.lazyRecurse(t.alternate,e),p.lazyRecurse(t.consequent,e)),r(e);break;case ar.Identifier:e=e||this.nextId(),i&&(i.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),i.computed=!1,i.name=t.name),Ae(t.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",t.name)),function(){p.if_("inputs"===p.stage||"s",function(){a&&1!==a&&p.if_(p.not(p.nonComputedMember("s",t.name)),p.lazyAssign(p.nonComputedMember("s",t.name),"{}")),p.assign(e,p.nonComputedMember("s",t.name))})},e&&p.lazyAssign(e,p.nonComputedMember("l",t.name))),(p.state.expensiveChecks||Re(t.name))&&p.addEnsureSafeObject(e),r(e);break;case ar.MemberExpression:l=i&&(i.context=this.nextId())||this.nextId(),e=e||this.nextId(),p.recurse(t.object,l,n,function(){p.if_(p.notNull(l),function(){t.computed?(c=p.nextId(),p.recurse(t.property,c),p.addEnsureSafeMemberName(c),a&&1!==a&&p.if_(p.not(p.computedMember(l,c)),p.lazyAssign(p.computedMember(l,c),"{}")),d=p.ensureSafeObject(p.computedMember(l,c)),p.assign(e,d),i&&(i.computed=!0,i.name=c)):(Ae(t.property.name),a&&1!==a&&p.if_(p.not(p.nonComputedMember(l,t.property.name)),p.lazyAssign(p.nonComputedMember(l,t.property.name),"{}")),d=p.nonComputedMember(l,t.property.name),(p.state.expensiveChecks||Re(t.property.name))&&(d=p.ensureSafeObject(d)),p.assign(e,d),i&&(i.computed=!1,i.name=t.property.name))},function(){p.assign(e,"undefined")}),r(e)},!!a);break;case ar.CallExpression:e=e||this.nextId(),t.filter?(c=p.filter(t.callee.name),u=[],o(t.arguments,function(t){var e=p.nextId();p.recurse(t,e),u.push(e)}),d=c+"("+u.join(",")+")",p.assign(e,d),r(e)):(c=p.nextId(),l={},u=[],p.recurse(t.callee,c,l,function(){p.if_(p.notNull(c),function(){p.addEnsureSafeFunction(c),o(t.arguments,function(t){p.recurse(t,p.nextId(),n,function(t){u.push(p.ensureSafeObject(t))})}),l.name?(p.state.expensiveChecks||p.addEnsureSafeObject(l.context),d=p.member(l.context,l.name,l.computed)+"("+u.join(",")+")"):d=c+"("+u.join(",")+")",d=p.ensureSafeObject(d),p.assign(e,d)},function(){p.assign(e,"undefined")}),r(e)}));break;case ar.AssignmentExpression:if(c=this.nextId(),l={},!Ne(t.left))throw Ki("lval");this.recurse(t.left,n,l,function(){p.if_(p.notNull(l.context),function(){p.recurse(t.right,c),p.addEnsureSafeObject(p.member(l.context,l.name,l.computed)),d=p.member(l.context,l.name,l.computed)+t.operator+c,p.assign(e,d),r(e||d)})},1);break;case ar.ArrayExpression:u=[],o(t.elements,function(t){p.recurse(t,p.nextId(),n,function(t){u.push(t)})}),d="["+u.join(",")+"]",this.assign(e,d),r(d);break;case ar.ObjectExpression:u=[],o(t.properties,function(t){p.recurse(t.value,p.nextId(),n,function(e){u.push(p.escape(t.key.type===ar.Identifier?t.key.name:""+t.key.value)+":"+e)})}),d="{"+u.join(",")+"}",this.assign(e,d),r(d);break;case ar.ThisExpression:this.assign(e,"s"),r("s");break;case ar.NGValueParameter:this.assign(e,"v"),r("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),i[n]},assign:function(t,e){return t?(this.current().body.push(t,"=",e,";"),t):void 0},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var i=this.current().body;i.push("if(",t,"){"),e(),i.push("}"),n&&(i.push("else{"),n(),i.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},lazyRecurse:function(t,e,n,i,r,o){var a=this;return function(){a.recurse(t,e,n,i,r,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(_(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(k(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw Ki("esc")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Ie.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,je(i,n.$filter);var r,a;(r=qe(i))&&(a=this.recurse(r)),r=Me(i.body);var s;r&&(s=[],o(r,function(t,e){var i=n.recurse(t);t.input=i,s.push(i),t.watchId=e}));var l=[];return o(i.body,function(t){l.push(n.recurse(t.expression))}),r=0===i.body.length?function(){}:1===i.body.length?l[0]:function(t,e){var n;return o(l,function(i){n=i(t,e)}),n},a&&(r.assign=function(t,e,n){return a(t,n,e)}),s&&(r.inputs=s),r.literal=He(i),r.constant=i.constant,r},recurse:function(t,e,i){var r,a,s,l=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case ar.Literal:return this.value(t.value,e);case ar.UnaryExpression:return a=this.recurse(t.argument),this["unary"+t.operator](a,e);case ar.BinaryExpression:return r=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](r,a,e);case ar.LogicalExpression:return r=this.recurse(t.left),a=this.recurse(t.right),this["binary"+t.operator](r,a,e);case ar.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case ar.Identifier:return Ae(t.name,l.expression),l.identifier(t.name,l.expensiveChecks||Re(t.name),e,i,l.expression);case ar.MemberExpression:return r=this.recurse(t.object,!1,!!i),t.computed||(Ae(t.property.name,l.expression),a=t.property.name),t.computed&&(a=this.recurse(t.property)),t.computed?this.computedMember(r,a,e,i,l.expression):this.nonComputedMember(r,a,l.expensiveChecks,e,i,l.expression);case ar.CallExpression:return s=[],o(t.arguments,function(t){s.push(l.recurse(t))}),t.filter&&(a=this.$filter(t.callee.name)),t.filter||(a=this.recurse(t.callee,!0)),t.filter?function(t,i,r,o){for(var l=[],c=0;c<s.length;++c)l.push(s[c](t,i,r,o));return t=a.apply(n,l,o),e?{context:n,name:n,value:t}:t}:function(t,n,i,r){var o,c=a(t,n,i,r);if(null!=c.value){Ee(c.context,l.expression),Oe(c.value,l.expression),o=[];for(var u=0;u<s.length;++u)o.push(Ee(s[u](t,n,i,r),l.expression));o=Ee(c.value.apply(c.context,o),l.expression)}return e?{value:o}:o};case ar.AssignmentExpression:return r=this.recurse(t.left,!0,1),a=this.recurse(t.right),function(t,n,i,o){var s=r(t,n,i,o);return t=a(t,n,i,o),Ee(s.value,l.expression),s.context[s.name]=t,e?{value:t}:t};case ar.ArrayExpression:return s=[],o(t.elements,function(t){s.push(l.recurse(t))}),function(t,n,i,r){for(var o=[],a=0;a<s.length;++a)o.push(s[a](t,n,i,r));return e?{value:o}:o};case ar.ObjectExpression:return s=[],o(t.properties,function(t){s.push({key:t.key.type===ar.Identifier?t.key.name:""+t.key.value,value:l.recurse(t.value)})}),function(t,n,i,r){for(var o={},a=0;a<s.length;++a)o[s[a].key]=s[a].value(t,n,i,r);return e?{value:o}:o};case ar.ThisExpression:return function(t){return e?{value:t}:t};case ar.NGValueParameter:return function(t,n,i,r){return e?{value:i}:i}}},"unary+":function(t,e){return function(n,i,r,o){return n=t(n,i,r,o),n=b(n)?+n:0,e?{value:n}:n}},"unary-":function(t,e){return function(n,i,r,o){return n=t(n,i,r,o),n=b(n)?-n:0,e?{value:n}:n}},"unary!":function(t,e){return function(n,i,r,o){return n=!t(n,i,r,o),e?{value:n}:n}},"binary+":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a);return i=e(i,r,o,a),s=Pe(s,i),n?{value:s}:s}},"binary-":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a);return i=e(i,r,o,a),s=(b(s)?s:0)-(b(i)?i:0),n?{value:s}:s}},"binary*":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)*e(i,r,o,a),n?{value:i}:i}},"binary/":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)/e(i,r,o,a),n?{value:i}:i}},"binary%":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)%e(i,r,o,a),n?{value:i}:i}},"binary===":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)===e(i,r,o,a),n?{value:i}:i}},"binary!==":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)!==e(i,r,o,a),n?{value:i}:i}},"binary==":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)==e(i,r,o,a),n?{value:i}:i}},"binary!=":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)!=e(i,r,o,a),n?{value:i}:i}},"binary<":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)<e(i,r,o,a),n?{value:i}:i}},"binary>":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)>e(i,r,o,a),n?{value:i}:i}},"binary<=":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)<=e(i,r,o,a),n?{value:i}:i}},"binary>=":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)>=e(i,r,o,a),n?{value:i}:i}},"binary&&":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)&&e(i,r,o,a),n?{value:i}:i}},"binary||":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)||e(i,r,o,a),n?{value:i}:i}},"ternary?:":function(t,e,n,i){return function(r,o,a,s){return r=t(r,o,a,s)?e(r,o,a,s):n(r,o,a,s),i?{value:r}:r}},value:function(t,e){return function(){return e?{context:n,name:n,value:t}:t}},identifier:function(t,e,i,r,o){return function(a,s,l,c){return a=s&&t in s?s:a,r&&1!==r&&a&&!a[t]&&(a[t]={}),s=a?a[t]:n,e&&Ee(s,o),i?{context:a,name:t,value:s}:s}},computedMember:function(t,e,n,i,r){return function(o,a,s,l){var c,u,d=t(o,a,s,l);return null!=d&&(c=e(o,a,s,l),Ae(c,r),i&&1!==i&&d&&!d[c]&&(d[c]={}),u=d[c],Ee(u,r)),n?{context:d,name:c,value:u}:u}},nonComputedMember:function(t,e,i,r,o,a){return function(s,l,c,u){return s=t(s,l,c,u),o&&1!==o&&s&&!s[e]&&(s[e]={}),l=null!=s?s[e]:n,(i||Re(e))&&Ee(l,a),r?{context:s,name:e,value:l}:l}},inputs:function(t,e){return function(n,i,r,o){return o?o[e]:t(n,i,r)}}};var sr=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new ar(this.lexer),this.astCompiler=n.csp?new Ie(this.ast,e):new Fe(this.ast,e)};sr.prototype={constructor:sr,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}},ct(),ct();var lr=Object.prototype.valueOf,cr=i("$sce"),ur={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ii=i("$compile"),dr=e.createElement("a"),pr=on(t.location.href);ln.$inject=["$document"],un.$inject=["$provide"],mn.$inject=["$locale"],gn.$inject=["$locale"];var fr=".",hr={yyyy:yn("FullYear",4),yy:yn("FullYear",2,0,!0),y:yn("FullYear",1),MMMM:bn("Month"),MMM:bn("Month",!0),MM:yn("Month",2,1),M:yn("Month",1,1),dd:yn("Date",2),d:yn("Date",1),HH:yn("Hours",2),H:yn("Hours",1),hh:yn("Hours",2,-12),h:yn("Hours",1,-12),mm:yn("Minutes",2),m:yn("Minutes",1),ss:yn("Seconds",2),s:yn("Seconds",1),sss:yn("Milliseconds",3),EEEE:bn("Day"),EEE:bn("Day",!0),a:function(t,e){return 12>t.getHours()?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){return t=-1*n,t=(t>=0?"+":"")+($n(Math[t>0?"floor":"ceil"](t/60),2)+$n(Math.abs(t%60),2))},ww:xn(2),w:xn(1),G:_n,GG:_n,GGG:_n,GGGG:function(t,e){return 0>=t.getFullYear()?e.ERANAMES[0]:e.ERANAMES[1]}},mr=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,gr=/^\-?\d+$/;kn.$inject=["$locale"];var vr=v(Bn),$r=v(Wn);Tn.$inject=["$parse"];var yr=v({restrict:"E",compile:function(t,e){return e.href||e.xlinkHref?void 0:function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Yn.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),br={};o(Si,function(t,e){function n(t,n,r){t.$watch(r[i],function(t){r.$set(e,!!t)})}if("multiple"!=t){var i=Qt("ng-"+e),r=n;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[i]&&n(t,e,r)}),br[i]=function(){return{restrict:"A",priority:100,link:r}}}}),o(Ai,function(t,e){br[e]=function(){return{priority:100,link:function(t,n,i){return"ngPattern"===e&&"/"==i.ngPattern.charAt(0)&&(n=i.ngPattern.match(Vn))?void i.$set("ngPattern",new RegExp(n[1],n[2])):void t.$watch(i[e],function(t){i.$set(e,t)})}}}}),o(["src","srcset","href"],function(t){var e=Qt("ng-"+t);br[e]=function(){return{priority:99,link:function(n,i,r){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===Yn.call(i.prop("href"))&&(a="xlinkHref",r.$attr[a]="xlink:href",o=null),r.$observe(e,function(e){e?(r.$set(a,e),In&&o&&i.prop(o,r[a])):"href"===t&&r.$set(a,null)})}}}});var wr={$addControl:m,$$renameControl:function(t,e){t.$name=e},$removeControl:m,$setValidity:m,$setDirty:m,$setPristine:m,$setSubmitted:m};En.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var xr=function(t){return["$timeout",function(e){return{name:"form",restrict:t?"EAC":"E",controller:En,compile:function(i,r){i.addClass(no).addClass(to);var o=r.name?"name":t&&r.ngForm?"ngForm":!1;return{pre:function(t,i,r,a){if(!("action"in r)){var s=function(e){t.$apply(function(){a.$commitViewValue(),a.$setSubmitted()}),e.preventDefault()};i[0].addEventListener("submit",s,!1),i.on("$destroy",function(){e(function(){i[0].removeEventListener("submit",s,!1)},0,!1)})}var l=a.$$parentForm;o&&(Le(t,a.$name,a,a.$name),r.$observe(o,function(e){a.$name!==e&&(Le(t,a.$name,n,a.$name),l.$$renameControl(a,e),Le(t,a.$name,a,a.$name))})),i.on("$destroy",function(){l.$removeControl(a),o&&Le(t,r[o],n,a.$name),d(a,wr)})}}}}}]},_r=xr(),kr=xr(!0),Cr=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Sr=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Tr=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ar=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Er=/^(\d{4})-(\d{2})-(\d{2})$/,Or=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Dr=/^(\d{4})-W(\d\d)$/,Pr=/^(\d{4})-(\d\d)$/,jr=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Mr={text:function(t,e,n,i,r,o){Dn(t,e,n,i,r,o),On(i)},date:jn("date",Er,Pn(Er,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":jn("datetimelocal",Or,Pn(Or,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:jn("time",jr,Pn(jr,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:jn("week",Dr,function(t,e){if(C(t))return t;if(_(t)){Dr.lastIndex=0;var n=Dr.exec(t);if(n){var i=+n[1],r=+n[2],o=n=0,a=0,s=0,l=wn(i),r=7*(r-1);return e&&(n=e.getHours(),o=e.getMinutes(),a=e.getSeconds(),s=e.getMilliseconds()),new Date(i,0,l.getDate()+r,n,o,a,s)}}return 0/0},"yyyy-Www"),month:jn("month",Pr,Pn(Pr,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,i,r,o,a){if(Mn(t,e,i,r),Dn(t,e,i,r,o,a),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:Ar.test(t)?parseFloat(t):n}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!k(t))throw oo("numfmt",t);t=t.toString()}return t}),b(i.min)||i.ngMin){var s;r.$validators.min=function(t){return r.$isEmpty(t)||y(s)||t>=s},i.$observe("min",function(t){b(t)&&!k(t)&&(t=parseFloat(t,10)),s=k(t)&&!isNaN(t)?t:n,r.$validate()})}if(b(i.max)||i.ngMax){var l;r.$validators.max=function(t){return r.$isEmpty(t)||y(l)||l>=t},i.$observe("max",function(t){b(t)&&!k(t)&&(t=parseFloat(t,10)),l=k(t)&&!isNaN(t)?t:n,r.$validate()})}},url:function(t,e,n,i,r,o){Dn(t,e,n,i,r,o),On(i),i.$$parserName="url",i.$validators.url=function(t,e){var n=t||e;return i.$isEmpty(n)||Sr.test(n)}},email:function(t,e,n,i,r,o){Dn(t,e,n,i,r,o),On(i),i.$$parserName="email",i.$validators.email=function(t,e){var n=t||e;return i.$isEmpty(n)||Tr.test(n)}},radio:function(t,e,n,i){y(n.name)&&e.attr("name",++ti),e.on("click",function(t){e[0].checked&&i.$setViewValue(n.value,t&&t.type)}),i.$render=function(){e[0].checked=n.value==i.$viewValue},n.$observe("value",i.$render)},checkbox:function(t,e,n,i,r,o,a,s){var l=Nn(s,t,"ngTrueValue",n.ngTrueValue,!0),c=Nn(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){i.$setViewValue(e[0].checked,t&&t.type)}),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(function(t){return H(t,l)}),i.$parsers.push(function(t){return t?l:c})},hidden:m,button:m,submit:m,reset:m,file:m},Nr=["$browser","$sniffer","$filter","$parse",function(t,e,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,o,a,s){s[0]&&(Mr[Bn(a.type)]||Mr.text)(r,o,a,s[0],e,t,n,i)}}}}],qr=/^(true|false|\d+)$/,Hr=function(){return{restrict:"A",priority:100,compile:function(t,e){return qr.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Fr=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,i,r){t.$$addBindingInfo(i,r.ngBind),i=i[0],e.$watch(r.ngBind,function(t){i.textContent=t===n?"":t})}}}}],Ir=["$interpolate","$compile",function(t,e){return{compile:function(i){return e.$$addBindingClass(i),function(i,r,o){i=t(r.attr(o.$attr.ngBindTemplate)),e.$$addBindingInfo(r,i.expressions),r=r[0],o.$observe("ngBindTemplate",function(t){r.textContent=t===n?"":t})}}}}],Lr=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(i,r){var o=e(r.ngBindHtml),a=e(r.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(i),function(e,i,r){n.$$addBindingInfo(i,r.ngBindHtml),e.$watch(a,function(){i.html(t.getTrustedHtml(o(e))||"")})}}}}],Rr=v({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),zr=qn("",!0),Vr=qn("Odd",0),Br=qn("Even",1),Ur=An({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Wr=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Gr={},Qr={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=Qt("ng-"+t);Gr[e]=["$parse","$rootScope",function(n,i){return{restrict:"A",compile:function(r,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var r=function(){a(e,{$event:n})};Qr[t]&&i.$$phase?e.$evalAsync(r):e.$apply(r)})}}}}]});var Xr=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,o,a){var s,l,c;n.$watch(r.ngIf,function(n){n?l||a(function(n,o){l=o,n[n.length++]=e.createComment(" end ngIf: "+r.ngIf+" "),s={clone:n},t.enter(n,i.parent(),i)}):(c&&(c.remove(),c=null),l&&(l.$destroy(),l=null),s&&(c=lt(s.clone),t.leave(c).then(function(){c=null}),s=null))})}}}],Yr=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Kn.noop,compile:function(i,r){var o=r.ngInclude||r.src,a=r.onload||"",s=r.autoscroll;return function(i,r,l,c,u){var d,p,f,h=0,m=function(){p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(n.leave(f).then(function(){p=null}),p=f,f=null)};i.$watch(o,function(o){var l=function(){!b(s)||s&&!i.$eval(s)||e()},p=++h;o?(t(o,!0).then(function(t){if(p===h){var e=i.$new();c.template=t,t=u(e,function(t){m(),n.enter(t,null,r).then(l)}),d=e,f=t,d.$emit("$includeContentLoaded",o),i.$eval(a)}},function(){p===h&&(m(),i.$emit("$includeContentError",o))}),i.$emit("$includeContentRequested",o)):(m(),c.template=null)})}}}}],Zr=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,r,o){/SVG/.test(i[0].toString())?(i.empty(),t(ht(o.template,e).childNodes)(n,function(t){i.append(t)},{futureParentElement:i})):(i.html(o.template),t(i.contents())(n))}}}],Jr=An({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Kr=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,i,r){var a=e.attr(i.$attr.ngList)||", ",s="false"!==i.ngTrim,l=s?ri(a):a;r.$parsers.push(function(t){if(!y(t)){var e=[];return t&&o(t.split(l),function(t){t&&e.push(s?ri(t):t)}),e}}),r.$formatters.push(function(t){return ni(t)?t.join(a):n}),r.$isEmpty=function(t){return!t||!t.length}}}},to="ng-valid",eo="ng-invalid",no="ng-pristine",io="ng-dirty",ro="ng-pending",oo=new i("ngModel"),ao=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,i,r,a,s,l,c,u,d){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=d(i.name||"",!1)(t);var p,f=a(i.ngModel),h=f.assign,g=f,v=h,$=null,w=this;this.$$setOptions=function(t){if((w.$options=t)&&t.getterSetter){var e=a(i.ngModel+"()"),n=a(i.ngModel+"($$$p)");g=function(t){var n=f(t);return S(n)&&(n=e(t)),n},v=function(t,e){S(f(t))?n(t,{$$$p:w.$modelValue}):h(t,w.$modelValue)}}else if(!f.assign)throw oo("nonassign",i.ngModel,U(r))},this.$render=m,this.$isEmpty=function(t){return y(t)||""===t||null===t||t!==t;

};var x=r.inheritedData("$formController")||wr,_=0;Hn({ctrl:this,$element:r,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},parentForm:x,$animate:s}),this.$setPristine=function(){w.$dirty=!1,w.$pristine=!0,s.removeClass(r,io),s.addClass(r,no)},this.$setDirty=function(){w.$dirty=!0,w.$pristine=!1,s.removeClass(r,no),s.addClass(r,io),x.$setDirty()},this.$setUntouched=function(){w.$touched=!1,w.$untouched=!0,s.setClass(r,"ng-untouched","ng-touched")},this.$setTouched=function(){w.$touched=!0,w.$untouched=!1,s.setClass(r,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){l.cancel($),w.$viewValue=w.$$lastCommittedViewValue,w.$render()},this.$validate=function(){if(!k(w.$modelValue)||!isNaN(w.$modelValue)){var t=w.$$rawModelValue,e=w.$valid,i=w.$modelValue,r=w.$options&&w.$options.allowInvalid;w.$$runValidators(t,w.$$lastCommittedViewValue,function(o){r||e===o||(w.$modelValue=o?t:n,w.$modelValue!==i&&w.$$writeModelToScope())})}},this.$$runValidators=function(t,e,i){function r(){var n=!0;return o(w.$validators,function(i,r){var o=i(t,e);n=n&&o,s(r,o)}),n?!0:(o(w.$asyncValidators,function(t,e){s(e,null)}),!1)}function a(){var i=[],r=!0;o(w.$asyncValidators,function(o,a){var l=o(t,e);if(!l||!S(l.then))throw oo("$asyncValidators",l);s(a,n),i.push(l.then(function(){s(a,!0)},function(t){r=!1,s(a,!1)}))}),i.length?u.all(i).then(function(){l(r)},m):l(!0)}function s(t,e){c===_&&w.$setValidity(t,e)}function l(t){c===_&&i(t)}_++;var c=_;(function(){var t=w.$$parserName||"parse";return p!==n?(p||(o(w.$validators,function(t,e){s(e,null)}),o(w.$asyncValidators,function(t,e){s(e,null)})),s(t,p),p):(s(t,null),!0)})()&&r()?a():l(!1)},this.$commitViewValue=function(){var t=w.$viewValue;l.cancel($),(w.$$lastCommittedViewValue!==t||""===t&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=t,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=w.$$lastCommittedViewValue;if(p=y(e)?n:!0)for(var i=0;i<w.$parsers.length;i++)if(e=w.$parsers[i](e),y(e)){p=!1;break}k(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=g(t));var r=w.$modelValue,o=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=e,o&&(w.$modelValue=e,w.$modelValue!==r&&w.$$writeModelToScope()),w.$$runValidators(e,w.$$lastCommittedViewValue,function(t){o||(w.$modelValue=t?e:n,w.$modelValue!==r&&w.$$writeModelToScope())})},this.$$writeModelToScope=function(){v(t,w.$modelValue),o(w.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){w.$viewValue=t,w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n=0,i=w.$options;i&&b(i.debounce)&&(i=i.debounce,k(i)?n=i:k(i[e])?n=i[e]:k(i["default"])&&(n=i["default"])),l.cancel($),n?$=l(function(){w.$commitViewValue()},n):c.$$phase?w.$commitViewValue():t.$apply(function(){w.$commitViewValue()})},t.$watch(function(){var e=g(t);if(e!==w.$modelValue&&(w.$modelValue===w.$modelValue||e===e)){w.$modelValue=w.$$rawModelValue=e,p=n;for(var i=w.$formatters,r=i.length,o=e;r--;)o=i[r](o);w.$viewValue!==o&&(w.$viewValue=w.$$lastCommittedViewValue=o,w.$render(),w.$$runValidators(e,o,m))}return e})}],so=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ao,priority:1,compile:function(e){return e.addClass(no).addClass("ng-untouched").addClass(to),{pre:function(t,e,n,i){var r=i[0],o=i[1]||wr;r.$$setOptions(i[2]&&i[2].$options),o.$addControl(r),n.$observe("name",function(t){r.$name!==t&&o.$$renameControl(r,t)}),t.$on("$destroy",function(){o.$removeControl(r)})},post:function(e,n,i,r){var o=r[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(n){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],lo=/(\s+|^)default(\s+|$)/,co=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var i=this;this.$options=N(t.$eval(e.ngModelOptions)),this.$options.updateOn!==n?(this.$options.updateOnDefault=!1,this.$options.updateOn=ri(this.$options.updateOn.replace(lo,function(){return i.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},uo=An({terminal:!0,priority:1e3}),po=i("ngOptions"),fo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ho=["$compile","$parse",function(t,n){function i(t,e,i){function o(t,e,n,i,r){this.selectValue=t,this.viewValue=e,this.label=n,this.group=i,this.disabled=r}function a(t){var e;if(!c&&r(t))e=t;else{e=[];for(var n in t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n)}return e}var s=t.match(fo);if(!s)throw po("iexp",t,U(e));var l=s[5]||s[7],c=s[6];t=/ as /.test(s[0])&&s[1];var u=s[9];e=n(s[2]?s[1]:l);var d=t&&n(t)||e,p=u&&n(u),f=u?function(t,e){return p(i,e)}:function(t){return Nt(t)},h=function(t,e){return f(t,b(t,e))},m=n(s[2]||s[1]),g=n(s[3]||""),v=n(s[4]||""),$=n(s[8]),y={},b=c?function(t,e){return y[c]=e,y[l]=t,y}:function(t){return y[l]=t,y};return{trackBy:u,getTrackByValue:h,getWatchables:n($,function(t){var e=[];t=t||[];for(var n=a(t),r=n.length,o=0;r>o;o++){var l=t===n?o:n[o],c=b(t[l],l),l=f(t[l],c);e.push(l),(s[2]||s[1])&&(l=m(i,c),e.push(l)),s[4]&&(c=v(i,c),e.push(c))}return e}),getOptions:function(){for(var t=[],e={},n=$(i)||[],r=a(n),s=r.length,l=0;s>l;l++){var c=n===r?l:r[l],p=b(n[c],c),y=d(i,p),c=f(y,p),w=m(i,p),x=g(i,p),p=v(i,p),y=new o(c,y,w,x,p);t.push(y),e[c]=y}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[h(t)]},getViewValueFromOption:function(t){return u?Kn.copy(t.viewValue):t.viewValue}}}}}var a=e.createElement("option"),s=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(e,n,r,l){function c(t,e){t.element=e,e.disabled=t.disabled,t.value!==e.value&&(e.value=t.selectValue),t.label!==e.label&&(e.label=t.label,e.textContent=t.label)}function u(t,e,n,i){return e&&Bn(e.nodeName)===n?n=e:(n=i.cloneNode(!1),e?t.insertBefore(n,e):t.appendChild(n)),n}function d(t){for(var e;t;)e=t.nextSibling,Et(t),t=e}function p(t){var e=g&&g[0],n=w&&w[0];if(e||n)for(;t&&(t===e||t===n);)t=t.nextSibling;return t}function f(){var t=x&&m.readValue();x=_.getOptions();var e={},i=n[0].firstChild;if(b&&n.prepend(g),i=p(i),x.items.forEach(function(t){var r,o;t.group?(r=e[t.group],r||(r=u(n[0],i,"optgroup",s),i=r.nextSibling,r.label=t.group,r=e[t.group]={groupElement:r,currentOptionElement:r.firstChild}),o=u(r.groupElement,r.currentOptionElement,"option",a),c(t,o),r.currentOptionElement=o.nextSibling):(o=u(n[0],i,"option",a),c(t,o),i=o.nextSibling)}),Object.keys(e).forEach(function(t){d(e[t].currentOptionElement)}),d(i),h.$render(),!h.$isEmpty(t)){var r=m.readValue();(_.trackBy?H(t,r):t===r)||(h.$setViewValue(r),h.$render())}}var h=l[1];if(h){var m=l[0];l=r.multiple;for(var g,v=0,$=n.children(),y=$.length;y>v;v++)if(""===$[v].value){g=$.eq(v);break}var b=!!g,w=Ln(a.cloneNode(!1));w.val("?");var x,_=i(r.ngOptions,n,e);l?(h.$isEmpty=function(t){return!t||0===t.length},m.writeValue=function(t){x.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){(t=x.getOptionFromViewValue(t))&&!t.disabled&&(t.element.selected=!0)})},m.readValue=function(){var t=n.val()||[],e=[];return o(t,function(t){t=x.selectValueMap[t],t.disabled||e.push(x.getViewValueFromOption(t))}),e},_.trackBy&&e.$watchCollection(function(){return ni(h.$viewValue)?h.$viewValue.map(function(t){return _.getTrackByValue(t)}):void 0},function(){h.$render()})):(m.writeValue=function(t){var e=x.getOptionFromViewValue(t);e&&!e.disabled?n[0].value!==e.selectValue&&(w.remove(),b||g.remove(),n[0].value=e.selectValue,e.element.selected=!0,e.element.setAttribute("selected","selected")):null===t||b?(w.remove(),b||n.prepend(g),n.val(""),g.prop("selected",!0),g.attr("selected",!0)):(b||g.remove(),n.prepend(w),n.val("?"),w.prop("selected",!0),w.attr("selected",!0))},m.readValue=function(){var t=x.selectValueMap[n.val()];return t&&!t.disabled?(b||g.remove(),w.remove(),x.getViewValueFromOption(t)):null},_.trackBy&&e.$watch(function(){return _.getTrackByValue(h.$viewValue)},function(){h.$render()})),b?(g.remove(),t(g)(e),g.removeClass("ng-scope")):g=Ln(a.cloneNode(!1)),f(),e.$watchCollection(_.getWatchables,f)}}}}],mo=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,r=/^when(Minus)?(.+)$/;return{link:function(a,s,l){function c(t){s.text(t||"")}var u,d=l.count,p=l.$attr.when&&s.attr(l.$attr.when),f=l.offset||0,h=a.$eval(p)||{},g={},v=e.startSymbol(),$=e.endSymbol(),b=v+d+"-"+f+$,w=Kn.noop;o(l,function(t,e){var n=r.exec(e);n&&(n=(n[1]?"-":"")+Bn(n[2]),h[n]=s.attr(l.$attr[e]))}),o(h,function(t,n){g[n]=e(t.replace(i,b))}),a.$watch(d,function(e){var i=parseFloat(e),r=isNaN(i);r||i in h||(i=t.pluralCat(i-f)),i===u||r&&k(u)&&isNaN(u)||(w(),r=g[i],y(r)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+p),w=m,c()):w=a.$watch(r,c),u=i)})}}}],go=["$parse","$animate",function(t,a){var s=i("ngRepeat"),l=function(t,e,n,i,r,o,a){t[n]=i,r&&(t[r]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,c){var u=c.ngRepeat,d=e.createComment(" end ngRepeat: "+u+" "),p=u.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw s("iexp",u);var f=p[1],h=p[2],m=p[3],g=p[4],p=f.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!p)throw s("iidexp",f);var v=p[3]||p[1],$=p[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw s("badident",m);var y,b,w,x,_={$id:Nt};return g?y=t(g):(w=function(t,e){return Nt(e)},x=function(t){return t}),function(t,e,i,c,p){y&&(b=function(e,n,i){return $&&(_[$]=e),_[v]=n,_.$index=i,y(t,_)});var f=ct();t.$watchCollection(h,function(i){var c,h,g,y,_,k,C,S,T,A,E=e[0],O=ct();if(m&&(t[m]=i),r(i))S=i,h=b||w;else for(A in h=b||x,S=[],i)i.hasOwnProperty(A)&&"$"!==A.charAt(0)&&S.push(A);for(y=S.length,A=Array(y),c=0;y>c;c++)if(_=i===S?c:S[c],k=i[_],C=h(_,k,c),f[C])T=f[C],delete f[C],O[C]=T,A[c]=T;else{if(O[C])throw o(A,function(t){t&&t.scope&&(f[t.id]=t)}),s("dupes",u,C,k);A[c]={id:C,scope:n,clone:n},O[C]=!0}for(g in f){if(T=f[g],C=lt(T.clone),a.leave(C),C[0].parentNode)for(c=0,h=C.length;h>c;c++)C[c].$$NG_REMOVED=!0;T.scope.$destroy()}for(c=0;y>c;c++)if(_=i===S?c:S[c],k=i[_],T=A[c],T.scope){g=E;do g=g.nextSibling;while(g&&g.$$NG_REMOVED);T.clone[0]!=g&&a.move(lt(T.clone),null,Ln(E)),E=T.clone[T.clone.length-1],l(T.scope,c,v,k,$,_,y)}else p(function(t,e){T.scope=e;var n=d.cloneNode(!1);t[t.length++]=n,a.enter(t,null,Ln(E)),E=n,T.clone=t,O[T.id]=T,l(T.scope,c,v,k,$,_,y)});f=O})}}}}],vo=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngShow,function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],$o=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngHide,function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],yo=An(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&o(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),bo=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,r,a){var s=[],l=[],c=[],u=[],d=function(t,e){return function(){t.splice(e,1)}};n.$watch(r.ngSwitch||r.on,function(n){var i,r;for(i=0,r=c.length;r>i;++i)t.cancel(c[i]);for(i=c.length=0,r=u.length;r>i;++i){var p=lt(l[i].clone);u[i].$destroy(),(c[i]=t.leave(p)).then(d(c,i))}l.length=0,u.length=0,(s=a.cases["!"+n]||a.cases["?"])&&o(s,function(n){n.transclude(function(i,r){u.push(r);var o=n.element;i[i.length++]=e.createComment(" end ngSwitchWhen: "),l.push({clone:i}),t.enter(i,o.parent(),o)})})})}}}],wo=An({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["!"+n.ngSwitchWhen]=i.cases["!"+n.ngSwitchWhen]||[],i.cases["!"+n.ngSwitchWhen].push({transclude:r,element:e})}}),xo=An({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:e})}}),_o=An({restrict:"EAC",link:function(t,e,n,r,o){if(!o)throw i("ngTransclude")("orphan",U(e));o(function(t){e.empty(),e.append(t)})}}),ko=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){"text/ng-template"==n.type&&t.put(n.id,e[0].text)}}}],Co={$setViewValue:m,$render:m},So=["$element","$scope","$attrs",function(t,i,r){var o=this,a=new qt;o.ngModelCtrl=Co,o.unknownOption=Ln(e.createElement("option")),o.renderUnknownOption=function(e){e="? "+Nt(e)+" ?",o.unknownOption.val(e),t.prepend(o.unknownOption),t.val(e)},i.$on("$destroy",function(){o.renderUnknownOption=m}),o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.readValue=function(){return o.removeUnknownOption(),t.val()},o.writeValue=function(e){o.hasOption(e)?(o.removeUnknownOption(),t.val(e),""===e&&o.emptyOption.prop("selected",!0)):null==e&&o.emptyOption?(o.removeUnknownOption(),t.val("")):o.renderUnknownOption(e)},o.addOption=function(t,e){at(t,'"option value"'),""===t&&(o.emptyOption=e);var n=a.get(t)||0;a.put(t,n+1)},o.removeOption=function(t){var e=a.get(t);e&&(1===e?(a.remove(t),""===t&&(o.emptyOption=n)):a.put(t,e-1))},o.hasOption=function(t){return!!a.get(t)}}],To=function(){return{restrict:"E",require:["select","?ngModel"],controller:So,link:function(t,e,n,i){var r=i[1];if(r){var a=i[0];if(a.ngModelCtrl=r,r.$render=function(){a.writeValue(r.$viewValue)},e.on("change",function(){t.$apply(function(){r.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return o(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},a.writeValue=function(t){var n=new qt(t);o(e.find("option"),function(t){t.selected=b(n.get(t.value))})};var s,l=0/0;t.$watch(function(){l!==r.$viewValue||H(s,r.$viewValue)||(s=q(r.$viewValue),r.$render()),l=r.$viewValue}),r.$isEmpty=function(t){return!t||0===t.length}}}}}},Ao=["$interpolate",function(t){function e(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}return{restrict:"E",priority:100,compile:function(n,i){if(y(i.value)){var r=t(n.text(),!0);r||i.$set("value",n.text())}return function(t,n,i){var o=n.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.ngModelCtrl&&(r?t.$watch(r,function(t,r){i.$set("value",t),r!==t&&a.removeOption(r),a.addOption(t,n),a.ngModelCtrl.$render(),e(n)}):(a.addOption(i.value,n),a.ngModelCtrl.$render(),e(n)),n.on("$destroy",function(){a.removeOption(i.value),a.ngModelCtrl.$render()}))}}}}],Eo=v({restrict:"E",terminal:!1}),Oo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){i&&(n.required=!0,i.$validators.required=function(t,e){return!n.required||!i.$isEmpty(e)},n.$observe("required",function(){i.$validate()}))}}},Do=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,r,o){if(o){var a,s=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(_(t)&&0<t.length&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw i("ngPattern")("noregexp",s,t,U(e));a=t||n,o.$validate()}),o.$validators.pattern=function(t){return o.$isEmpty(t)||y(a)||a.test(t)}}}}},Po=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){if(i){var r=-1;n.$observe("maxlength",function(t){t=f(t),r=isNaN(t)?-1:t,i.$validate()}),i.$validators.maxlength=function(t,e){return 0>r||i.$isEmpty(e)||e.length<=r}}}}},jo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){if(i){var r=0;n.$observe("minlength",function(t){r=f(t)||0,i.$validate()}),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=r}}}}};t.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(it(),dt(Kn),Ln(e).ready(function(){J(e,K)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document.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:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(t,e,n){"use strict";function i(t,e){return I(new(I(function(){},{prototype:t})),e)}function r(t){return F(arguments,function(e){e!==t&&F(e,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})}),t}function o(t,e){var n=[];for(var i in t.path){if(t.path[i]!==e.path[i])break;n.push(t.path[i])}return n}function a(t){if(Object.keys)return Object.keys(t);var e=[];return F(t,function(t,n){e.push(n)}),e}function s(t,e){if(Array.prototype.indexOf)return t.indexOf(e,Number(arguments[2])||0);var n=t.length>>>0,i=Number(arguments[2])||0;for(i=0>i?Math.ceil(i):Math.floor(i),0>i&&(i+=n);n>i;i++)if(i in t&&t[i]===e)return i;return-1}function l(t,e,n,i){var r,l=o(n,i),c={},u=[];for(var d in l)if(l[d].params&&(r=a(l[d].params),r.length))for(var p in r)s(u,r[p])>=0||(u.push(r[p]),c[r[p]]=t[r[p]]);return I({},c,e)}function c(t,e,n){if(!n){n=[];for(var i in t)n.push(i)}for(var r=0;r<n.length;r++){var o=n[r];if(t[o]!=e[o])return!1}return!0}function u(t,e){var n={};return F(t,function(t){n[t]=e[t]}),n}function d(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return F(n,function(n){n in t&&(e[n]=t[n])}),e}function p(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var i in t)-1==s(n,i)&&(e[i]=t[i]);return e}function f(t,e){var n=H(t),i=n?[]:{};return F(t,function(t,r){e(t,r)&&(i[n?i.length:r]=t)}),i}function h(t,e){var n=H(t)?[]:{};return F(t,function(t,i){n[i]=e(t,i)}),n}function m(t,e){var i=1,o=2,l={},c=[],u=l,d=I(t.when(l),{$$promises:l,$$values:l});this.study=function(l){function f(t,n){if($[n]!==o){if(v.push(n),$[n]===i)throw v.splice(0,s(v,n)),new Error("Cyclic dependency: "+v.join(" -> "));if($[n]=i,N(t))g.push(n,[function(){return e.get(t)}],c);else{var r=e.annotate(t);F(r,function(t){t!==n&&l.hasOwnProperty(t)&&f(l[t],t)}),g.push(n,t,r)}v.pop(),$[n]=o}}function h(t){return q(t)&&t.then&&t.$$promises}if(!q(l))throw new Error("'invocables' must be an object");var m=a(l||{}),g=[],v=[],$={};return F(l,f),l=v=$=null,function(i,o,a){function s(){--b||(w||r(y,o.$$values),v.$$values=y,v.$$promises=v.$$promises||!0,delete v.$$inheritedValues,f.resolve(y))}function l(t){v.$$failure=t,f.reject(t)}function c(n,r,o){function c(t){d.reject(t),l(t)}function u(){if(!j(v.$$failure))try{d.resolve(e.invoke(r,a,y)),d.promise.then(function(t){y[n]=t,s()},c)}catch(t){c(t)}}var d=t.defer(),p=0;F(o,function(t){$.hasOwnProperty(t)&&!i.hasOwnProperty(t)&&(p++,$[t].then(function(e){y[t]=e,--p||u()},c))}),p||u(),$[n]=d.promise}if(h(i)&&a===n&&(a=o,o=i,i=null),i){if(!q(i))throw new Error("'locals' must be an object")}else i=u;if(o){if(!h(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=d;var f=t.defer(),v=f.promise,$=v.$$promises={},y=I({},i),b=1+g.length/3,w=!1;if(j(o.$$failure))return l(o.$$failure),v;o.$$inheritedValues&&r(y,p(o.$$inheritedValues,m)),I($,o.$$promises),o.$$values?(w=r(y,p(o.$$values,m)),v.$$inheritedValues=p(o.$$values,m),s()):(o.$$inheritedValues&&(v.$$inheritedValues=p(o.$$inheritedValues,m)),o.then(s,l));for(var x=0,_=g.length;_>x;x+=3)i.hasOwnProperty(g[x])?s():c(g[x],g[x+1],g[x+2]);return v}},this.resolve=function(t,e,n,i){return this.study(t)(e,n,i)}}function g(t,e,n){this.fromConfig=function(t,e,n){return j(t.template)?this.fromString(t.template,e):j(t.templateUrl)?this.fromUrl(t.templateUrl,e):j(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return M(t)?t(e):t},this.fromUrl=function(n,i){return M(n)&&(n=n(i)),null==n?null:t.get(n,{cache:e,headers:{Accept:"text/html"}}).then(function(t){return t.data})},this.fromProvider=function(t,e,i){return n.invoke(t,null,i||{params:e})}}function v(t,e,r){function o(e,n,i,r){if(g.push(e),h[e])return h[e];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+t+"'");if(m[e])throw new Error("Duplicate parameter name '"+e+"' in pattern '"+t+"'");return m[e]=new R.Param(e,n,i,r),m[e]}function a(t,e,n,i){var r=["",""],o=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return o;switch(n){case!1:r=["(",")"+(i?"?":"")];break;case!0:r=["?(",")?"];break;default:r=["("+n+"|",")?"]}return o+r[0]+e+r[1]}function s(r,o){var a,s,l,c,u;return a=r[2]||r[3],u=e.params[a],l=t.substring(p,r.index),s=o?r[4]:r[4]||("*"==r[1]?".*":null),c=R.type(s||"string")||i(R.type("string"),{pattern:new RegExp(s,e.caseInsensitive?"i":n)}),{id:a,regexp:s,segment:l,type:c,cfg:u}}e=I({params:{}},q(e)?e:{});var l,c=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,u=/([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,d="^",p=0,f=this.segments=[],h=r?r.params:{},m=this.params=r?r.params.$$new():new R.ParamSet,g=[];this.source=t;for(var v,$,y;(l=c.exec(t))&&(v=s(l,!1),!(v.segment.indexOf("?")>=0));)$=o(v.id,v.type,v.cfg,"path"),d+=a(v.segment,$.type.pattern.source,$.squash,$.isOptional),f.push(v.segment),p=c.lastIndex;y=t.substring(p);var b=y.indexOf("?");if(b>=0){var w=this.sourceSearch=y.substring(b);if(y=y.substring(0,b),this.sourcePath=t.substring(0,p+b),w.length>0)for(p=0;l=u.exec(w);)v=s(l,!0),$=o(v.id,v.type,v.cfg,"search"),p=c.lastIndex}else this.sourcePath=t,this.sourceSearch="";d+=a(y)+(e.strict===!1?"/?":"")+"$",f.push(y),this.regexp=new RegExp(d,e.caseInsensitive?"i":n),this.prefix=f[0],this.$$paramNames=g}function $(t){I(this,t)}function y(){function t(t){return null!=t?t.toString().replace(/\//g,"%2F"):t}function r(t){return null!=t?t.toString().replace(/%2F/g,"/"):t}function o(){return{strict:m,caseInsensitive:p}}function l(t){return M(t)||H(t)&&M(t[t.length-1])}function c(){for(;x.length;){var t=x.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");e.extend(b[t.name],d.invoke(t.def))}}function u(t){I(this,t||{})}R=this;var d,p=!1,m=!0,g=!1,b={},w=!0,x=[],_={string:{encode:t,decode:r,is:function(t){return null==t||!j(t)||"string"==typeof t},pattern:/[^/]*/},"int":{encode:t,decode:function(t){return parseInt(t,10)},is:function(t){return j(t)&&this.decode(t.toString())===t},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:function(t){return t===!0||t===!1},pattern:/0|1/},date:{encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):n},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):n},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return this.is(t)&&this.is(e)&&t.toISOString()===e.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:e.toJson,decode:e.fromJson,is:e.isObject,equals:e.equals,pattern:/[^/]*/},any:{encode:e.identity,decode:e.identity,equals:e.equals,pattern:/.*/}};y.$$getDefaultValue=function(t){if(!l(t.value))return t.value;if(!d)throw new Error("Injectable functions cannot be called at configuration time");return d.invoke(t.value)},this.caseInsensitive=function(t){return j(t)&&(p=t),p},this.strictMode=function(t){return j(t)&&(m=t),m},this.defaultSquashPolicy=function(t){if(!j(t))return g;if(t!==!0&&t!==!1&&!N(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return g=t,t},this.compile=function(t,e){return new v(t,I(o(),e))},this.isMatcher=function(t){if(!q(t))return!1;var e=!0;return F(v.prototype,function(n,i){M(n)&&(e=e&&j(t[i])&&M(t[i]))}),e},this.type=function(t,e,n){if(!j(e))return b[t];if(b.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return b[t]=new $(I({name:t},e)),n&&(x.push({name:t,def:n}),w||c()),this},F(_,function(t,e){b[e]=new $(I({name:e},t))}),b=i(b,{}),this.$get=["$injector",function(t){return d=t,w=!1,c(),F(_,function(t,e){b[e]||(b[e]=new $(t))}),this}],this.Param=function(t,e,i,r){function o(t){var e=q(t)?a(t):[],n=-1===s(e,"value")&&-1===s(e,"type")&&-1===s(e,"squash")&&-1===s(e,"array");return n&&(t={value:t}),t.$$fn=l(t.value)?t.value:function(){return t.value},t}function c(e,n,i){if(e.type&&n)throw new Error("Param '"+t+"' has two type configurations.");return n?n:e.type?e.type instanceof $?e.type:new $(e.type):"config"===i?b.any:b.string}function u(){var e={array:"search"===r?"auto":!1},n=t.match(/\[\]$/)?{array:!0}:{};return I(e,n,i).array}function p(t,e){var n=t.squash;if(!e||n===!1)return!1;if(!j(n)||null==n)return g;if(n===!0||N(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}function m(t,e,i,r){var o,a,l=[{from:"",to:i||e?n:""},{from:null,to:i||e?n:""}];return o=H(t.replace)?t.replace:[],N(r)&&o.push({from:r,to:n}),a=h(o,function(t){return t.from}),f(l,function(t){return-1===s(a,t.from)}).concat(o)}function v(){if(!d)throw new Error("Injectable functions cannot be called at configuration time");var t=d.invoke(i.$$fn);if(null!==t&&t!==n&&!x.type.is(t))throw new Error("Default value ("+t+") for parameter '"+x.id+"' is not an instance of Type ("+x.type.name+")");return t}function y(t){function e(t){return function(e){return e.from===t}}function n(t){var n=h(f(x.replace,e(t)),function(t){return t.to});return n.length?n[0]:t}return t=n(t),j(t)?x.type.$normalize(t):v()}function w(){return"{Param:"+t+" "+e+" squash: '"+C+"' optional: "+k+"}"}var x=this;i=o(i),e=c(i,e,r);var _=u();e=_?e.$asArray(_,"search"===r):e,"string"!==e.name||_||"path"!==r||i.value!==n||(i.value="");var k=i.value!==n,C=p(i,k),S=m(i,_,k,C);I(this,{id:t,type:e,location:r,array:_,squash:C,replace:S,isOptional:k,value:y,dynamic:n,config:i,toString:w})},u.prototype={$$new:function(){return i(this,I(new u,{$$parent:this}))},$$keys:function(){for(var t=[],e=[],n=this,i=a(u.prototype);n;)e.push(n),n=n.$$parent;return e.reverse(),F(e,function(e){F(a(e),function(e){-1===s(t,e)&&-1===s(i,e)&&t.push(e)})}),t},$$values:function(t){var e={},n=this;return F(n.$$keys(),function(i){e[i]=n[i].value(t&&t[i])}),e},$$equals:function(t,e){var n=!0,i=this;return F(i.$$keys(),function(r){var o=t&&t[r],a=e&&e[r];i[r].type.equals(o,a)||(n=!1)}),n},$$validates:function(t){var i,r,o,a,s,l=this.$$keys();for(i=0;i<l.length&&(r=this[l[i]],o=t[l[i]],o!==n&&null!==o||!r.isOptional);i++){if(a=r.type.$normalize(o),!r.type.is(a))return!1;if(s=r.type.encode(a),e.isString(s)&&!r.type.pattern.exec(s))return!1}return!0},$$parent:n},this.ParamSet=u}function b(t,i){function r(t){var e=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(t.source);return null!=e?e[1].replace(/\\(.)/g,"$1"):""}function o(t,e){return t.replace(/\$(\$|\d{1,2})/,function(t,n){return e["$"===n?0:Number(n)]})}function a(t,e,n){if(!n)return!1;var i=t.invoke(e,e,{$match:n});return j(i)?i:!0}function s(i,r,o,a){function s(t,e,n){return"/"===m?t:e?m.slice(0,-1)+t:n?m.slice(1)+t:t}function p(t){function e(t){var e=t(o,i);return e?(N(e)&&i.replace().url(e),!0):!1}if(!t||!t.defaultPrevented){h&&i.url()===h,h=n;var r,a=c.length;for(r=0;a>r;r++)if(e(c[r]))return;u&&e(u)}}function f(){return l=l||r.$on("$locationChangeSuccess",p)}var h,m=a.baseHref(),g=i.url();return d||f(),{sync:function(){p()},listen:function(){return f()},update:function(t){return t?void(g=i.url()):void(i.url()!==g&&(i.url(g),i.replace()))},push:function(t,e,r){var o=t.format(e||{});null!==o&&e&&e["#"]&&(o+="#"+e["#"]),i.url(o),h=r&&r.$$avoidResync?i.url():n,r&&r.replace&&i.replace()},href:function(n,r,o){if(!n.validates(r))return null;var a=t.html5Mode();e.isObject(a)&&(a=a.enabled);var l=n.format(r);if(o=o||{},a||null===l||(l="#"+t.hashPrefix()+l),null!==l&&r&&r["#"]&&(l+="#"+r["#"]),l=s(l,a,o.absolute),!o.absolute||!l)return l;var c=!a&&l?"/":"",u=i.port();return u=80===u||443===u?"":":"+u,[i.protocol(),"://",i.host(),u,c,l].join("")}}}var l,c=[],u=null,d=!1;this.rule=function(t){if(!M(t))throw new Error("'rule' must be a function");return c.push(t),this},this.otherwise=function(t){if(N(t)){var e=t;t=function(){return e}}else if(!M(t))throw new Error("'rule' must be a function");return u=t,this},this.when=function(t,e){var n,s=N(e);if(N(t)&&(t=i.compile(t)),!s&&!M(e)&&!H(e))throw new Error("invalid 'handler' in when()");var l={matcher:function(t,e){return s&&(n=i.compile(e),e=["$match",function(t){return n.format(t)}]),I(function(n,i){return a(n,e,t.exec(i.path(),i.search()))},{prefix:N(t.prefix)?t.prefix:""})},regex:function(t,e){if(t.global||t.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(n=e,e=["$match",function(t){return o(n,t)}]),I(function(n,i){return a(n,e,t.exec(i.path()))},{prefix:r(t)})}},c={matcher:i.isMatcher(t),regex:t instanceof RegExp};for(var u in c)if(c[u])return this.rule(l[u](t,e));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){t===n&&(t=!0),d=t},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser"]}function w(t,r){function o(t){return 0===t.indexOf(".")||0===t.indexOf("^")}function p(t,e){if(!t)return n;var i=N(t),r=i?t:t.name,a=o(r);if(a){if(!e)throw new Error("No reference point given for path '"+r+"'");e=p(e);for(var s=r.split("."),l=0,c=s.length,u=e;c>l;l++)if(""!==s[l]||0!==l){if("^"!==s[l])break;if(!u.parent)throw new Error("Path '"+r+"' not valid for state '"+e.name+"'");u=u.parent}else u=e;s=s.slice(l).join("."),r=u.name+(u.name&&s?".":"")+s}var d=C[r];return!d||!i&&(i||d!==t&&d.self!==t)?n:d}function f(t,e){S[t]||(S[t]=[]),S[t].push(e)}function m(t){for(var e=S[t]||[];e.length;)g(e.shift())}function g(e){e=i(e,{self:e,resolve:e.resolve||{},toString:function(){return this.name}});var n=e.name;if(!N(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(C.hasOwnProperty(n))throw new Error("State '"+n+"'' is already defined");var r=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):N(e.parent)?e.parent:q(e.parent)&&N(e.parent.name)?e.parent.name:"";if(r&&!C[r])return f(r,e.self);for(var o in A)M(A[o])&&(e[o]=A[o](e,A.$delegates[o]));return C[n]=e,!e[T]&&e.url&&t.when(e.url,["$match","$stateParams",function(t,n){k.$current.navigable==e&&c(t,n)||k.transitionTo(e,t,{inherit:!0,location:!1})}]),m(n),e}function v(t){return t.indexOf("*")>-1}function $(t){for(var e=t.split("."),n=k.$current.name.split("."),i=0,r=e.length;r>i;i++)"*"===e[i]&&(n[i]="*");return"**"===e[0]&&(n=n.slice(s(n,e[1])),n.unshift("**")),"**"===e[e.length-1]&&(n.splice(s(n,e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length!=n.length?!1:n.join("")===e.join("")}function y(t,e){return N(t)&&!j(e)?A[t]:M(e)&&N(t)?(A[t]&&!A.$delegates[t]&&(A.$delegates[t]=A[t]),A[t]=e,this):this}function b(t,e){return q(t)?e=t:e.name=t,g(e),this}function w(t,r,o,s,d,f,m,g,y){function b(e,n,i,o){var a=t.$broadcast("$stateNotFound",e,n,i);if(a.defaultPrevented)return m.update(),E;if(!a.retry)return null;if(o.$retry)return m.update(),O;var s=k.transition=r.when(a.retry);return s.then(function(){return s!==k.transition?S:(e.options.$retry=!0,k.transitionTo(e.to,e.toParams,e.options))},function(){return E}),m.update(),s}function w(t,n,i,a,l,c){function p(){var n=[];return F(t.views,function(i,r){var a=i.resolve&&i.resolve!==t.resolve?i.resolve:{};a.$template=[function(){return o.load(r,{view:i,locals:l.globals,params:f,notify:c.notify
})||""}],n.push(d.resolve(a,l.globals,l.resolve,t).then(function(n){if(M(i.controllerProvider)||H(i.controllerProvider)){var o=e.extend({},a,l.globals);n.$$controller=s.invoke(i.controllerProvider,null,o)}else n.$$controller=i.controller;n.$$state=t,n.$$controllerAs=i.controllerAs,l[r]=n}))}),r.all(n).then(function(){return l.globals})}var f=i?n:u(t.params.$$keys(),n),h={$stateParams:f};l.resolve=d.resolve(t.resolve,h,l.resolve,t);var m=[l.resolve.then(function(t){l.globals=t})];return a&&m.push(a),r.all(m).then(p).then(function(t){return l})}var S=r.reject(new Error("transition superseded")),A=r.reject(new Error("transition prevented")),E=r.reject(new Error("transition aborted")),O=r.reject(new Error("transition failed"));return _.locals={resolve:null,globals:{$stateParams:{}}},k={params:{},current:_.self,$current:_,transition:null},k.reload=function(t){return k.transitionTo(k.current,f,{reload:t||!0,inherit:!1,notify:!0})},k.go=function(t,e,n){return k.transitionTo(t,e,I({inherit:!0,relative:k.$current},n))},k.transitionTo=function(e,n,o){n=n||{},o=I({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a,c=k.$current,d=k.params,h=c.path,g=p(e,o.relative),v=n["#"];if(!j(g)){var $={to:e,toParams:n,options:o},y=b($,c.self,d,o);if(y)return y;if(e=$.to,n=$.toParams,o=$.options,g=p(e,o.relative),!j(g)){if(!o.relative)throw new Error("No such state '"+e+"'");throw new Error("Could not resolve '"+e+"' from state '"+o.relative+"'")}}if(g[T])throw new Error("Cannot transition to abstract state '"+e+"'");if(o.inherit&&(n=l(f,n||{},k.$current,g)),!g.params.$$validates(n))return O;n=g.params.$$values(n),e=g;var C=e.path,E=0,D=C[E],P=_.locals,M=[];if(o.reload){if(N(o.reload)||q(o.reload)){if(q(o.reload)&&!o.reload.name)throw new Error("Invalid reload state object");var H=o.reload===!0?h[0]:p(o.reload);if(o.reload&&!H)throw new Error("No such reload state '"+(N(o.reload)?o.reload:o.reload.name)+"'");for(;D&&D===h[E]&&D!==H;)P=M[E]=D.locals,E++,D=C[E]}}else for(;D&&D===h[E]&&D.ownParams.$$equals(n,d);)P=M[E]=D.locals,E++,D=C[E];if(x(e,n,c,d,P,o))return v&&(n["#"]=v),k.params=n,L(k.params,f),o.location&&e.navigable&&e.navigable.url&&(m.push(e.navigable.url,n,{$$avoidResync:!0,replace:"replace"===o.location}),m.update(!0)),k.transition=null,r.when(k.current);if(n=u(e.params.$$keys(),n||{}),o.notify&&t.$broadcast("$stateChangeStart",e.self,n,c.self,d).defaultPrevented)return t.$broadcast("$stateChangeCancel",e.self,n,c.self,d),m.update(),A;for(var F=r.when(P),R=E;R<C.length;R++,D=C[R])P=M[R]=i(P),F=w(D,n,D===e,F,P,o);var z=k.transition=F.then(function(){var i,r,a;if(k.transition!==z)return S;for(i=h.length-1;i>=E;i--)a=h[i],a.self.onExit&&s.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(i=E;i<C.length;i++)r=C[i],r.locals=M[i],r.self.onEnter&&s.invoke(r.self.onEnter,r.self,r.locals.globals);return v&&(n["#"]=v),k.transition!==z?S:(k.$current=e,k.current=e.self,k.params=n,L(k.params,f),k.transition=null,o.location&&e.navigable&&m.push(e.navigable.url,e.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&t.$broadcast("$stateChangeSuccess",e.self,n,c.self,d),m.update(!0),k.current)},function(i){return k.transition!==z?S:(k.transition=null,a=t.$broadcast("$stateChangeError",e.self,n,c.self,d,i),a.defaultPrevented||m.update(),r.reject(i))});return z},k.is=function(t,e,i){i=I({relative:k.$current},i||{});var r=p(t,i.relative);return j(r)?k.$current!==r?!1:e?c(r.params.$$values(e),f):!0:n},k.includes=function(t,e,i){if(i=I({relative:k.$current},i||{}),N(t)&&v(t)){if(!$(t))return!1;t=k.$current.name}var r=p(t,i.relative);return j(r)?j(k.$current.includes[r.name])?e?c(r.params.$$values(e),f,a(e)):!0:!1:n},k.href=function(t,e,i){i=I({lossy:!0,inherit:!0,absolute:!1,relative:k.$current},i||{});var r=p(t,i.relative);if(!j(r))return null;i.inherit&&(e=l(f,e||{},k.$current,r));var o=r&&i.lossy?r.navigable:r;return o&&o.url!==n&&null!==o.url?m.href(o.url,u(r.params.$$keys().concat("#"),e||{}),{absolute:i.absolute}):null},k.get=function(t,e){if(0===arguments.length)return h(a(C),function(t){return C[t].self});var n=p(t,e||k.$current);return n&&n.self?n.self:null},k}function x(t,e,n,i,r,o){function a(t,e,n){function i(e){return"search"!=t.params[e].location}var r=t.params.$$keys().filter(i),o=d.apply({},[t.params].concat(r)),a=new R.ParamSet(o);return a.$$equals(e,n)}return!o.reload&&t===n&&(r===n.locals||t.self.reloadOnSearch===!1&&a(n,i,e))?!0:void 0}var _,k,C={},S={},T="abstract",A={parent:function(t){if(j(t.parent)&&t.parent)return p(t.parent);var e=/^(.+)\.[^.]+$/.exec(t.name);return e?p(e[1]):_},data:function(t){return t.parent&&t.parent.data&&(t.data=t.self.data=I({},t.parent.data,t.data)),t.data},url:function(t){var e=t.url,n={params:t.params||{}};if(N(e))return"^"==e.charAt(0)?r.compile(e.substring(1),n):(t.parent.navigable||_).url.concat(e,n);if(!e||r.isMatcher(e))return e;throw new Error("Invalid url '"+e+"' in state '"+t+"'")},navigable:function(t){return t.url?t:t.parent?t.parent.navigable:null},ownParams:function(t){var e=t.url&&t.url.params||new R.ParamSet;return F(t.params||{},function(t,n){e[n]||(e[n]=new R.Param(n,null,t,"config"))}),e},params:function(t){return t.parent&&t.parent.params?I(t.parent.params.$$new(),t.ownParams):new R.ParamSet},views:function(t){var e={};return F(j(t.views)?t.views:{"":t},function(n,i){i.indexOf("@")<0&&(i+="@"+t.parent.name),e[i]=n}),e},path:function(t){return t.parent?t.parent.path.concat(t):[]},includes:function(t){var e=t.parent?I({},t.parent.includes):{};return e[t.name]=!0,e},$delegates:{}};_=g({name:"",url:"^",views:null,"abstract":!0}),_.navigable=null,this.decorator=y,this.state=b,this.$get=w,w.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function x(){function t(t,e){return{load:function(n,i){var r,o={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return i=I(o,i),i.view&&(r=e.fromConfig(i.view,i.params,i.locals)),r&&i.notify&&t.$broadcast("$viewContentLoading",i),r}}}this.$get=t,t.$inject=["$rootScope","$templateFactory"]}function _(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n(function(){t[0].scrollIntoView()},0,!1)}}]}function k(t,n,i,r){function o(){return n.has?function(t){return n.has(t)?n.get(t):null}:function(t){try{return n.get(t)}catch(e){return null}}}function a(t,e){var n=function(){return{enter:function(t,e,n){e.after(t),n()},leave:function(t,e){t.remove(),e()}}};if(c)return{enter:function(t,e,n){var i=c.enter(t,null,e,n);i&&i.then&&i.then(n)},leave:function(t,e){var n=c.leave(t,e);n&&n.then&&n.then(e)}};if(l){var i=l&&l(e,t);return{enter:function(t,e,n){i.enter(t,null,e),n()},leave:function(t,e){i.leave(t),e()}}}return n()}var s=o(),l=s("$animator"),c=s("$animate"),u={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,o,s){return function(n,o,l){function c(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(v.leave(p,function(){d=null}),d=p,p=null)}function u(a){var u,d=S(n,l,o,r),$=d&&t.$current&&t.$current.locals[d];if(a||$!==h){u=n.$new(),h=t.$current.locals[d];var y=s(u,function(t){v.enter(t,o,function(){f&&f.$emit("$viewContentAnimationEnded"),(e.isDefined(g)&&!g||n.$eval(g))&&i(t)}),c()});p=y,f=u,f.$emit("$viewContentLoaded"),f.$eval(m)}}var d,p,f,h,m=l.onload||"",g=l.autoscroll,v=a(l,n);n.$on("$stateChangeSuccess",function(){u(!1)}),n.$on("$viewContentLoading",function(){u(!1)}),u(!0)}}};return u}function C(t,e,n,i){return{restrict:"ECA",priority:-400,compile:function(r){var o=r.html();return function(r,a,s){var l=n.$current,c=S(r,s,a,i),u=l&&l.locals[c];if(u){a.data("$uiView",{name:c,state:u.$$state}),a.html(u.$template?u.$template:o);var d=t(a.contents());if(u.$$controller){u.$scope=r,u.$element=a;var p=e(u.$$controller,u);u.$$controllerAs&&(r[u.$$controllerAs]=p),a.data("$ngControllerController",p),a.children().data("$ngControllerController",p)}d(r)}}}}}function S(t,e,n,i){var r=i(e.uiView||e.name||"")(t),o=n.inheritedData("$uiView");return r.indexOf("@")>=0?r:r+"@"+(o?o.state.name:"")}function T(t,e){var n,i=t.match(/^\s*({[^}]*})\s*$/);if(i&&(t=e+"("+i[1]+")"),n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function A(t){var e=t.parent().inheritedData("$uiView");return e&&e.state&&e.state.name?e.state:void 0}function E(t,n){var i=["location","inherit","reload","absolute"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,o,a,s){var l=T(a.uiSref,t.current.name),c=null,u=A(o)||t.$current,d="[object SVGAnimatedString]"===Object.prototype.toString.call(o.prop("href"))?"xlink:href":"href",p=null,f="A"===o.prop("tagName").toUpperCase(),h="FORM"===o[0].nodeName,m=h?"action":d,g=!0,v={relative:u,inherit:!0},$=r.$eval(a.uiSrefOpts)||{};e.forEach(i,function(t){t in $&&(v[t]=$[t])});var y=function(n){if(n&&(c=e.copy(n)),g){p=t.href(l.state,c,v);var i=s[1]||s[0];return i&&i.$$addStateInfo(l.state,c),null===p?(g=!1,!1):void a.$set(m,p)}};l.paramExpr&&(r.$watch(l.paramExpr,function(t,e){t!==c&&y(t)},!0),c=e.copy(r.$eval(l.paramExpr))),y(),h||o.bind("click",function(e){var i=e.which||e.button;if(!(i>1||e.ctrlKey||e.metaKey||e.shiftKey||o.attr("target"))){var r=n(function(){t.go(l.state,c,v)});e.preventDefault();var a=f&&!p?1:0;e.preventDefault=function(){a--<=0&&n.cancel(r)}}})}}}function O(t,e,n){return{restrict:"A",controller:["$scope","$element","$attrs",function(e,i,r){function o(){a()?i.addClass(l):i.removeClass(l)}function a(){for(var t=0;t<c.length;t++)if(s(c[t].state,c[t].params))return!0;return!1}function s(e,n){return"undefined"!=typeof r.uiSrefActiveEq?t.is(e.name,n):t.includes(e.name,n)}var l,c=[];l=n(r.uiSrefActiveEq||r.uiSrefActive||"",!1)(e),this.$$addStateInfo=function(e,n){var r=t.get(e,A(i));c.push({state:r||{name:e},params:n}),o()},e.$on("$stateChangeSuccess",o)}]}}function D(t){var e=function(e){return t.is(e)};return e.$stateful=!0,e}function P(t){var e=function(e){return t.includes(e)};return e.$stateful=!0,e}var j=e.isDefined,M=e.isFunction,N=e.isString,q=e.isObject,H=e.isArray,F=e.forEach,I=e.extend,L=e.copy;e.module("ui.router.util",["ng"]),e.module("ui.router.router",["ui.router.util"]),e.module("ui.router.state",["ui.router.router","ui.router.util"]),e.module("ui.router",["ui.router.state"]),e.module("ui.router.compat",["ui.router"]),m.$inject=["$q","$injector"],e.module("ui.router.util").service("$resolve",m),g.$inject=["$http","$templateCache","$injector"],e.module("ui.router.util").service("$templateFactory",g);var R;v.prototype.concat=function(t,e){var n={caseInsensitive:R.caseInsensitive(),strict:R.strictMode(),squash:R.defaultSquashPolicy()};return new v(this.sourcePath+t+this.sourceSearch,I(n,e),this)},v.prototype.toString=function(){return this.source},v.prototype.exec=function(t,e){function n(t){function e(t){return t.split("").reverse().join("")}function n(t){return t.replace(/\\-/g,"-")}var i=e(t).split(/-(?!\\)/),r=h(i,e);return h(r,n).reverse()}var i=this.regexp.exec(t);if(!i)return null;e=e||{};var r,o,a,s=this.parameters(),l=s.length,c=this.segments.length-1,u={};if(c!==i.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(r=0;c>r;r++){a=s[r];var d=this.params[a],p=i[r+1];for(o=0;o<d.replace;o++)d.replace[o].from===p&&(p=d.replace[o].to);p&&d.array===!0&&(p=n(p)),u[a]=d.value(p)}for(;l>r;r++)a=s[r],u[a]=this.params[a].value(e[a]);return u},v.prototype.parameters=function(t){return j(t)?this.params[t]||null:this.$$paramNames},v.prototype.validates=function(t){return this.params.$$validates(t)},v.prototype.format=function(t){function e(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})}t=t||{};var n=this.segments,i=this.parameters(),r=this.params;if(!this.validates(t))return null;var o,a=!1,s=n.length-1,l=i.length,c=n[0];for(o=0;l>o;o++){var u=s>o,d=i[o],p=r[d],f=p.value(t[d]),m=p.isOptional&&p.type.equals(p.value(),f),g=m?p.squash:!1,v=p.type.encode(f);if(u){var $=n[o+1];if(g===!1)null!=v&&(c+=H(v)?h(v,e).join("-"):encodeURIComponent(v)),c+=$;else if(g===!0){var y=c.match(/\/$/)?/\/?(.*)/:/(.*)/;c+=$.match(y)[1]}else N(g)&&(c+=g+$)}else{if(null==v||m&&g!==!1)continue;H(v)||(v=[v]),v=h(v,encodeURIComponent).join("&"+d+"="),c+=(a?"&":"?")+(d+"="+v),a=!0}}return c},$.prototype.is=function(t,e){return!0},$.prototype.encode=function(t,e){return t},$.prototype.decode=function(t,e){return t},$.prototype.equals=function(t,e){return t==e},$.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},$.prototype.pattern=/.*/,$.prototype.toString=function(){return"{Type:"+this.name+"}"},$.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},$.prototype.$asArray=function(t,e){function i(t,e){function i(t,e){return function(){return t[e].apply(t,arguments)}}function r(t){return H(t)?t:j(t)?[t]:[]}function o(t){switch(t.length){case 0:return n;case 1:return"auto"===e?t[0]:t;default:return t}}function a(t){return!t}function s(t,e){return function(n){n=r(n);var i=h(n,t);return e===!0?0===f(i,a).length:o(i)}}function l(t){return function(e,n){var i=r(e),o=r(n);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!t(i[a],o[a]))return!1;return!0}}this.encode=s(i(t,"encode")),this.decode=s(i(t,"decode")),this.is=s(i(t,"is"),!0),this.equals=l(i(t,"equals")),this.pattern=t.pattern,this.$normalize=s(i(t,"$normalize")),this.name=t.name,this.$arrayMode=e}if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new i(this,t)},e.module("ui.router.util").provider("$urlMatcherFactory",y),e.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),b.$inject=["$locationProvider","$urlMatcherFactoryProvider"],e.module("ui.router.router").provider("$urlRouter",b),w.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],e.module("ui.router.state").value("$stateParams",{}).provider("$state",w),x.$inject=[],e.module("ui.router.state").provider("$view",x),e.module("ui.router.state").provider("$uiViewScroll",_),k.$inject=["$state","$injector","$uiViewScroll","$interpolate"],C.$inject=["$compile","$controller","$state","$interpolate"],e.module("ui.router.state").directive("uiView",k),e.module("ui.router.state").directive("uiView",C),E.$inject=["$state","$timeout"],O.$inject=["$state","$stateParams","$interpolate"],e.module("ui.router.state").directive("uiSref",E).directive("uiSrefActive",O).directive("uiSrefActiveEq",O),D.$inject=["$state"],P.$inject=["$state"],e.module("ui.router.state").filter("isState",D).filter("includedByState",P)}(window,window.angular),function(t,e,n){"use strict";function i(t,e,n){if(!t)throw ngMinErr("areq",e||"?",n||"required");return t}function r(t,e){return t||e?t?e?(N(t)&&(t=t.join(" ")),N(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function o(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function a(t,e,n){var i="";return t=N(t)?t:t&&q(t)&&t.length?t.split(/\s+/):[],M(t,function(t,r){t&&0<t.length&&(i+=r>0?" ":"",i+=n?e+t:t+e)}),i}function s(t){if(t instanceof j)switch(t.length){case 0:return[];case 1:if(1===t[0].nodeType)return t;break;default:return j(l(t))}return 1===t.nodeType?j(t):void 0}function l(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(1==n.nodeType)return n}}function c(t,e,n){M(e,function(e){t.addClass(e,n)})}function u(t,e,n){M(e,function(e){t.removeClass(e,n)})}function d(t){return function(e,n){n.addClass&&(c(t,e,n.addClass),n.addClass=null),n.removeClass&&(u(t,e,n.removeClass),n.removeClass=null)}}function p(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||D;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=D},t.$$prepared=!0}return t}function f(t,e){h(t,e),m(t,e)}function h(t,e){e.from&&(t.css(e.from),e.from=null)}function m(t,e){e.to&&(t.css(e.to),e.to=null)}function g(t,e,n){var i=(e.addClass||"")+" "+(n.addClass||""),r=(e.removeClass||"")+" "+(n.removeClass||"");return t=v(t.attr("class"),i,r),P(e,n),e.addClass=t.addClass?t.addClass:null,e.removeClass=t.removeClass?t.removeClass:null,e}function v(t,e,n){function i(t){q(t)&&(t=t.split(" "));var e={};return M(t,function(t){t.length&&(e[t]=!0)}),e}var r={};t=i(t),e=i(e),M(e,function(t,e){r[e]=1}),n=i(n),M(n,function(t,e){r[e]=1===r[e]?null:-1});var o={addClass:"",removeClass:""};return M(r,function(e,n){var i,r;1===e?(i="addClass",r=!t[n]):-1===e&&(i="removeClass",r=t[n]),r&&(o[i].length&&(o[i]+=" "),o[i]+=n)}),o}function $(t){return t instanceof e.element?t[0]:t}function y(t,e,n){var i=Object.create(null),r=t.getComputedStyle(e)||{};return M(n,function(t,e){var n=r[t];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=b(n)),0===n&&(n=null),i[e]=n}}),i}function b(t){var e=0;return t=t.split(/\s*,\s*/),M(t,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function w(t){return 0===t||null!=t}function x(t,e){var n=T,i=t+"s";return e?n+="Duration":i+=" linear all",[n,i]}function _(t,e){var n=e?"-"+e+"s":"";return C(t,[B,n]),[B,n]}function k(t,e){var n=e?"paused":"",i=E+"PlayState";return C(t,[i,n]),[i,n]}function C(t,e){t.style[e[0]]=e[1]}function S(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){return(e=t[e])?e.total:0},get:function(e){return(e=t[e])&&e.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}var T,A,E,O,D=e.noop,P=e.extend,j=e.element,M=e.forEach,N=e.isArray,q=e.isString,H=e.isObject,F=e.isUndefined,I=e.isDefined,L=e.isFunction,R=e.isElement;t.ontransitionend===n&&t.onwebkittransitionend!==n?(T="WebkitTransition",A="webkitTransitionEnd transitionend"):(T="transition",A="transitionend"),t.onanimationend===n&&t.onwebkitanimationend!==n?(E="WebkitAnimation",O="webkitAnimationEnd animationend"):(E="animation",O="animationend");var z=E+"Delay",V=E+"Duration",B=T+"Delay";t=T+"Duration";var U={transitionDuration:t,transitionDelay:B,transitionProperty:T+"Property",animationDuration:V,animationDelay:z,animationIterationCount:E+"IterationCount"},W={transitionDuration:t,transitionDelay:B,animationDuration:V,animationDelay:z};e.module("ngAnimate",[]).directive("ngAnimateChildren",[function(){return function(t,n,i){t=i.ngAnimateChildren,e.isString(t)&&0===t.length?n.data("$$ngAnimateChildren",!0):i.$observe("ngAnimateChildren",function(t){n.data("$$ngAnimateChildren","on"===t||"true"===t)})}}]).factory("$$rAFMutex",["$$rAF",function(t){return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]).factory("$$rAFScheduler",["$$rAF",function(t){function e(t){r.push([].concat(t)),n()}function n(){if(r.length){for(var e=[],o=0;o<r.length;o++){var a=r[o];a.shift()(),a.length&&e.push(a)}r=e,i||t(function(){i||n()})}}var i,r=[];return e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}]).factory("$$AnimateRunner",["$q","$$rAFMutex",function(t,e){function n(t){this.setHost(t),this._doneCallbacks=[],this._runInAnimationFrame=e(),this._state=0}return n.chain=function(t,e){function n(){i===t.length?e(!0):t[i](function(t){!1===t?e(!1):(i++,n())})}var i=0;n()},n.all=function(t,e){function n(n){r=r&&n,++i===t.length&&e(r)}var i=0,r=!0;M(t,function(t){t.done(n)})},n.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:D,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){!1===e?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._runInAnimationFrame(function(){e._resolve(t)}))},_resolve:function(t){2!==this._state&&(M(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},n}]).provider("$$animateQueue",["$animateProvider",function(t){function e(t,e,n,i){return r[t].some(function(t){return t(e,n,i)})}function n(t,e){t=t||{};var n=0<(t.addClass||"").length,i=0<(t.removeClass||"").length;return e?n&&i:n||i}var r=this.rules={skip:[],cancel:[],join:[]};r.join.push(function(t,e,i){return!e.structural&&n(e.options)}),r.skip.push(function(t,e,i){return!e.structural&&!n(e.options)}),r.skip.push(function(t,e,n){return"leave"==n.event&&e.structural}),r.skip.push(function(t,e,n){return n.structural&&!e.structural}),r.cancel.push(function(t,e,n){return n.structural&&e.structural}),r.cancel.push(function(t,e,n){return 2===n.state&&e.structural}),r.cancel.push(function(t,e,n){return t=e.options,n=n.options,t.addClass&&t.addClass===n.removeClass||t.removeClass&&t.removeClass===n.addClass}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite",function(r,o,a,c,u,h,m,v,y){function b(t,e){var n=$(t),i=[],r=z[e];return r&&M(r,function(t){t.node.contains(n)&&i.push(t.callback)}),i}function w(t,e,n,i){r(function(){M(b(e,t),function(t){t(e,n,i)})})}function x(t,i,r){function a(e,n,i,r){w(n,t,i,r),e.progress(n,i,r)}function l(e){U(t,r),f(t,r),r.domOperation(),d.complete(!e)}var c,u;(t=s(t))&&(c=$(t),u=t.parent()),r=p(r);var d=new m;if(!c)return l(),d;N(r.addClass)&&(r.addClass=r.addClass.join(" ")),N(r.removeClass)&&(r.removeClass=r.removeClass.join(" ")),r.from&&!H(r.from)&&(r.from=null),r.to&&!H(r.to)&&(r.to=null);var v=[c.className,r.addClass,r.removeClass].join(" ");if(!B(v))return l(),d;var y=0<=["enter","move","leave"].indexOf(i),b=!D||O.get(c),v=!b&&E.get(c)||{},x=!!v.state;if(b||x&&1==v.state||(b=!T(t,u,i)),b)return l(),d;if(y&&_(t),b={structural:y,element:t,event:i,close:l,options:r,runner:d},x){if(e("skip",t,b,v))return 2===v.state?(l(),d):(g(t,v.options,r),v.runner);if(e("cancel",t,b,v))2===v.state?v.runner.end():v.structural?v.close():g(t,b.options,v.options);else if(e("join",t,b,v)){if(2!==v.state)return i=b.event=v.event,r=g(t,v.options,b.options),d;g(t,r,{})}}else g(t,r,{});if((x=b.structural)||(x="animate"===b.event&&0<Object.keys(b.options.to||{}).length||n(b.options)),!x)return l(),k(t),d;y&&S(u);var C=(v.counter||0)+1;return b.counter=C,A(t,1,b),o.$$postDigest(function(){var e=E.get(c),o=!e,e=e||{},s=t.parent()||[],u=0<s.length&&("animate"===e.event||e.structural||n(e.options));o||e.counter!==C||!u?(o&&(U(t,r),f(t,r)),(o||y&&e.event!==i)&&(r.domOperation(),d.end()),u||k(t)):(i=!e.structural&&n(e.options,!0)?"setClass":e.event,e.structural&&S(s),A(t,2),e=h(t,i,e.options),e.done(function(e){l(!e),(e=E.get(c))&&e.counter===C&&k($(t)),a(d,i,"close",{})}),d.setHost(e),a(d,i,"start",{}))}),d}function _(t){t=$(t).querySelectorAll("[data-ng-animate]"),M(t,function(t){var e=parseInt(t.getAttribute("data-ng-animate")),n=E.get(t);switch(e){case 2:n.runner.end();case 1:n&&E.remove(t)}})}function k(t){t=$(t),t.removeAttribute("data-ng-animate"),E.remove(t)}function C(t,e){return $(t)===$(e)}function S(t){for(t=$(t);;){if(!t||1!==t.nodeType)break;var e=E.get(t);if(e){var i=t;!e.structural&&n(e.options)&&(2===e.state&&e.runner.end(),k(i))}t=t.parentNode}}function T(t,e,n){var i,r=n=!1,o=!1;for((t=t.data("$ngAnimatePin"))&&(e=t);e&&e.length&&(r||(r=C(e,a)),t=e[0],1===t.nodeType);){var s=E.get(t)||{};if(o||(o=s.structural||O.get(t)),(F(i)||!0===i)&&(t=e.data("$$ngAnimateChildren"),I(t)&&(i=t)),o&&!1===i)break;r||(r=C(e,a),r||(t=e.data("$ngAnimatePin"))&&(e=t)),n||(n=C(e,L)),e=e.parent()}return(!o||i)&&r&&n}function A(t,e,n){n=n||{},n.state=e,t=$(t),t.setAttribute("data-ng-animate",e),n=(e=E.get(t))?P(e,n):n,E.put(t,n)}var E=new u,O=new u,D=null,q=o.$watch(function(){return 0===v.totalPendingRequests},function(t){t&&(q(),o.$$postDigest(function(){o.$$postDigest(function(){null===D&&(D=!0)})}))}),L=j(c[0].body),z={},V=t.classNameFilter(),B=V?function(t){return V.test(t)}:function(){return!0},U=d(y);return{on:function(t,e,n){e=l(e),z[t]=z[t]||[],z[t].push({node:e,callback:n})},off:function(t,e,n){function i(t,e,n){var i=l(e);return t.filter(function(t){return!(t.node===i&&(!n||t.callback===n))})}var r=z[t];r&&(z[t]=1===arguments.length?null:i(r,e,n))},pin:function(t,e){i(R(t),"element","not an element"),i(R(e),"parentElement","not an element"),t.data("$ngAnimatePin",e)},push:function(t,e,n,i){return n=n||{},n.domOperation=i,x(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!D;else if(R(t)){var i=$(t),r=O.get(i);1===n?e=!r:(e=!!e)?r&&O.remove(i):O.put(i,!0)}else e=D=!!t;return e}}}]}]).provider("$$animation",["$animateProvider",function(t){function e(t){return t.data("$$animationRunner")}var n=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$rAFScheduler",function(t,i,o,a,s){var l=[],c=d(t),u=0,h=0,m=[];return function(d,g,v){function y(t){t=t.hasAttribute("ng-animate-ref")?[t]:t.querySelectorAll("[ng-animate-ref]");var e=[];return M(t,function(t){var n=t.getAttribute("ng-animate-ref");n&&n.length&&e.push(t)}),e}function b(t){var e=[],n={};M(t,function(t,i){var r=$(t.element),o=0<=["enter","move"].indexOf(t.event),r=t.structural?y(r):[];if(r.length){var a=o?"to":"from";M(r,function(t){var e=t.getAttribute("ng-animate-ref");n[e]=n[e]||{},n[e][a]={animationID:i,element:j(t)}})}else e.push(t)});var i={},r={};return M(n,function(n,o){var a=n.from,s=n.to;if(a&&s){var l=t[a.animationID],c=t[s.animationID],u=a.animationID.toString();if(!r[u]){var d=r[u]={structural:!0,beforeStart:function(){l.beforeStart(),c.beforeStart()},close:function(){l.close(),c.close()},classes:w(l.classes,c.classes),from:l,to:c,anchors:[]};d.classes.length?e.push(d):(e.push(l),e.push(c))}r[u].anchors.push({out:a.element,"in":s.element})}else a=a?a.animationID:s.animationID,s=a.toString(),i[s]||(i[s]=!0,e.push(t[a]))}),e}function w(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],i=0;i<t.length;i++){var r=t[i];if("ng-"!==r.substring(0,3))for(var o=0;o<e.length;o++)if(r===e[o]){n.push(r);break}}return n.join(" ")}function x(t){for(var e=n.length-1;e>=0;e--){var i=n[e];if(o.has(i)&&(i=o.get(i)(t)))return i}}function _(t,n){t.from&&t.to?(e(t.from.element).setHost(n),e(t.to.element).setHost(n)):e(t.element).setHost(n)}function k(){var t=e(d);!t||"leave"===g&&v.$$domOperationFired||t.end()}function C(e){d.off("$destroy",k),d.removeData("$$animationRunner"),c(d,v),f(d,v),v.domOperation(),E&&t.removeClass(d,E),d.removeClass("ng-animate"),T.complete(!e)}v=p(v);var S=0<=["enter","move","leave"].indexOf(g),T=new a({end:function(){C()},cancel:function(){C(!0)}});if(!n.length)return C(),T;d.data("$$animationRunner",T);var A=r(d.attr("class"),r(v.addClass,v.removeClass)),E=v.tempClasses;E&&(A+=" "+E,v.tempClasses=null);var O;return S||(O=u,u+=1),l.push({element:d,classes:A,event:g,classBasedIndex:O,structural:S,options:v,beforeStart:function(){d.addClass("ng-animate"),E&&t.addClass(d,E)},close:C}),d.on("$destroy",k),1<l.length?T:(i.$$postDigest(function(){h=u,u=0,m.length=0;var t=[];M(l,function(n){e(n.element)&&t.push(n)}),l.length=0,M(b(t),function(t){function n(){t.beforeStart();var n,i=t.close,r=t.anchors?t.from.element||t.to.element:t.element;e(r)&&$(r).parentNode&&(r=x(t))&&(n=r.start),n?(n=n(),n.done(function(t){i(!t)}),_(t,n)):i()}t.structural?n():(m.push({node:$(t.element),fn:n}),t.classBasedIndex===h-1&&(m=m.sort(function(t,e){return e.node.contains(t.node)}).map(function(t){return t.fn}),s(m)))})}),T)}}]}]).provider("$animateCss",["$animateProvider",function(t){var e=S(),n=S();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$document","$sniffer","$$rAFScheduler",function(t,i,r,s,l,c,u){function g(t,e){var n=t.parentNode;return(n.$$ngAnimateParentKey||(n.$$ngAnimateParentKey=++P))+"-"+t.getAttribute("class")+"-"+e}function v(r,o,s,l){var c;return 0<e.count(s)&&(c=n.get(s),c||(o=a(o,"-stagger"),i.addClass(r,o),c=y(t,r,l),c.animationDuration=Math.max(c.animationDuration,0),c.transitionDuration=Math.max(c.transitionDuration,0),i.removeClass(r,o),n.put(s,c))),c||{}}function b(t){q.push(t),u.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=j.offsetWidth+1,i=0;i<q.length;i++)q[i](t);q.length=0})}function S(n,i,r){return i=e.get(r),i||(i=y(t,n,U),"infinite"===i.animationIterationCount&&(i.animationIterationCount=1)),e.put(r,i),n=i,r=n.animationDelay,i=n.transitionDelay,n.maxDelay=r&&i?Math.max(r,i):r||i,n.maxDuration=Math.max(n.animationDuration*n.animationIterationCount,n.transitionDuration),n}var D=d(i),P=0,j=$(l).body,q=[];return function(t,n){function l(){d()}function u(){d(!0)}function d(e){H||I&&F||(H=!0,F=!1,i.removeClass(t,nt),i.removeClass(t,rt),k(q,!1),_(q,!1),M(Y,function(t){q.style[t[0]]=""}),D(t,n),f(t,n),n.onDone&&n.onDone(),L&&L.complete(!e))}function y(t){ut.blockTransition&&_(q,t),ut.blockKeyframeAnimation&&k(q,!!t)}function P(){return L=new r({end:l,cancel:u}),d(),{$$willAnimate:!1,start:function(){return L},end:l}}function j(){function e(){if(!H){if(y(!1),M(Y,function(t){q.style[t[0]]=t[1]}),D(t,n),i.addClass(t,rt),ut.recalculateTimingStyles){if(it=q.className+" "+nt,ot=g(q,it),lt=S(q,it,ot),ct=lt.maxDelay,U=Math.max(ct,0),Q=lt.maxDuration,0===Q)return void d();ut.hasTransitions=0<lt.transitionDuration,ut.hasAnimations=0<lt.animationDuration}if(ut.applyTransitionDelay||ut.applyAnimationDelay){ct="boolean"!=typeof n.delay&&w(n.delay)?parseFloat(n.delay):ct,U=Math.max(ct,0);var e;ut.applyTransitionDelay&&(lt.transitionDelay=ct,e=[B,ct+"s"],Y.push(e),q.style[e[0]]=e[1]),ut.applyAnimationDelay&&(lt.animationDelay=ct,e=[z,ct+"s"],Y.push(e),q.style[e[0]]=e[1])}if(G=1e3*U,X=1e3*Q,n.easing){var c=n.easing;ut.hasTransitions&&(e=T+"TimingFunction",Y.push([e,c]),q.style[e]=c),ut.hasAnimations&&(e=E+"TimingFunction",Y.push([e,c]),q.style[e]=c)}lt.transitionDuration&&l.push(A),lt.animationDuration&&l.push(O),a=Date.now(),t.on(l.join(" "),o),s(r,G+1.5*X),m(t,n)}}function r(){d()}function o(t){t.stopPropagation();var e=t.originalEvent||t;t=e.$manualTimeStamp||e.timeStamp||Date.now(),e=parseFloat(e.elapsedTime.toFixed(3)),Math.max(t-a,0)>=G&&e>=Q&&(I=!0,d())}if(!H)if(q.parentNode){var a,l=[],c=function(t){if(I)F&&t&&(F=!1,d());else if(F=!t,lt.animationDuration)if(t=k(q,F),F)Y.push(t);else{var e=Y,n=e.indexOf(t);t>=0&&e.splice(n,1)}},u=st>0&&(lt.transitionDuration&&0===at.transitionDuration||lt.animationDuration&&0===at.animationDuration)&&Math.max(at.animationDelay,at.transitionDelay);u?s(e,Math.floor(u*st*1e3),!1):e(),R.resume=function(){c(!0)},R.pause=function(){c(!1)}}else d()}var q=$(t);if(!q||!q.parentNode)return P();n=p(n);var H,F,I,L,R,U,G,Q,X,Y=[],Z=t.attr("class"),J=o(n);if(0===n.duration||!c.animations&&!c.transitions)return P();var K=n.event&&N(n.event)?n.event.join(" "):n.event,tt="",et="";K&&n.structural?tt=a(K,"ng-",!0):K&&(tt=K),n.addClass&&(et+=a(n.addClass,"-add")),n.removeClass&&(et.length&&(et+=" "),et+=a(n.removeClass,"-remove")),n.applyClassesEarly&&et.length&&(D(t,n),et="");var nt=[tt,et].join(" ").trim(),it=Z+" "+nt,rt=a(nt,"-active"),Z=J.to&&0<Object.keys(J.to).length;if(!(0<(n.keyframeStyle||"").length||Z||nt))return P();var ot,at;0<n.stagger?(J=parseFloat(n.stagger),at={transitionDelay:J,animationDelay:J,transitionDuration:0,animationDuration:0}):(ot=g(q,it),at=v(q,nt,ot,W)),i.addClass(t,nt),n.transitionStyle&&(J=[T,n.transitionStyle],C(q,J),Y.push(J)),0<=n.duration&&(J=0<q.style[T].length,J=x(n.duration,J),C(q,J),Y.push(J)),n.keyframeStyle&&(J=[E,n.keyframeStyle],C(q,J),Y.push(J));var st=at?0<=n.staggerIndex?n.staggerIndex:e.count(ot):0;(K=0===st)&&_(q,9999);var lt=S(q,it,ot),ct=lt.maxDelay;U=Math.max(ct,0),Q=lt.maxDuration;var ut={};return ut.hasTransitions=0<lt.transitionDuration,ut.hasAnimations=0<lt.animationDuration,
ut.hasTransitionAll=ut.hasTransitions&&"all"==lt.transitionProperty,ut.applyTransitionDuration=Z&&(ut.hasTransitions&&!ut.hasTransitionAll||ut.hasAnimations&&!ut.hasTransitions),ut.applyAnimationDuration=n.duration&&ut.hasAnimations,ut.applyTransitionDelay=w(n.delay)&&(ut.applyTransitionDuration||ut.hasTransitions),ut.applyAnimationDelay=w(n.delay)&&ut.hasAnimations,ut.recalculateTimingStyles=0<et.length,(ut.applyTransitionDuration||ut.applyAnimationDuration)&&(Q=n.duration?parseFloat(n.duration):Q,ut.applyTransitionDuration&&(ut.hasTransitions=!0,lt.transitionDuration=Q,J=0<q.style[T+"Property"].length,Y.push(x(Q,J))),ut.applyAnimationDuration&&(ut.hasAnimations=!0,lt.animationDuration=Q,Y.push([V,Q+"s"]))),0!==Q||ut.recalculateTimingStyles?(null==n.duration&&0<lt.transitionDuration&&(ut.recalculateTimingStyles=ut.recalculateTimingStyles||K),G=1e3*U,X=1e3*Q,n.skipBlocking||(ut.blockTransition=0<lt.transitionDuration,ut.blockKeyframeAnimation=0<lt.animationDuration&&0<at.animationDelay&&0===at.animationDuration),h(t,n),ut.blockTransition||_(q,!1),y(Q),{$$willAnimate:!0,end:l,start:function(){return H?void 0:(R={end:l,cancel:u,resume:null,pause:null},L=new r(R),b(j),L)}}):P()}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document","$sniffer",function(t,e,n,i,r,o){function a(t){return t.replace(/\bng-\S+\b/g,"")}function s(t,e){return q(t)&&(t=t.split(" ")),q(e)&&(e=e.split(" ")),t.filter(function(t){return-1===e.indexOf(t)}).join(" ")}function l(e,i,r){function o(t){var e={},n=$(t).getBoundingClientRect();return M(["width","height","top","left"],function(t){var i=n[t];switch(t){case"top":i+=d.scrollTop;break;case"left":i+=d.scrollLeft}e[t]=Math.floor(i)+"px"}),e}function l(){var e=a(r.attr("class")||""),n=s(e,f),e=s(f,e),n=t(u,{to:o(r),addClass:"ng-anchor-in "+n,removeClass:"ng-anchor-out "+e,delay:!0});return n.$$willAnimate?n:null}function c(){u.remove(),i.removeClass("ng-animate-shim"),r.removeClass("ng-animate-shim")}var u=j($(i).cloneNode(!0)),f=a(u.attr("class")||"");i.addClass("ng-animate-shim"),r.addClass("ng-animate-shim"),u.addClass("ng-anchor"),p.append(u);var h;if(e=function(){var e=t(u,{addClass:"ng-anchor-out",delay:!0,from:o(i)});return e.$$willAnimate?e:null}(),!e&&(h=l(),!h))return c();var m=e||h;return{start:function(){function t(){i&&i.end()}var e,i=m.start();return i.done(function(){return i=null,!h&&(h=l())?(i=h.start(),i.done(function(){i=null,c(),e.complete()}),i):(c(),void e.complete())}),e=new n({end:t,cancel:t})}}}function c(t,e,i,r){var o=u(t),a=u(e),s=[];return M(r,function(t){(t=l(i,t.out,t["in"]))&&s.push(t)}),o||a||0!==s.length?{start:function(){function t(){M(e,function(t){t.end()})}var e=[];o&&e.push(o.start()),a&&e.push(a.start()),M(s,function(t){e.push(t.start())});var i=new n({end:t,cancel:t});return n.all(e,function(t){i.complete(t)}),i}}:void 0}function u(e){var n=e.element,i=e.options||{};return e.structural?(i.structural=i.applyClassesEarly=!0,i.event=e.event,"leave"===i.event&&(i.onDone=i.domOperation)):i.event=null,e=t(n,i),e.$$willAnimate?e:null}if(!o.animations&&!o.transitions)return D;var d=$(r).body;e=$(i);var p=j(d.parentNode===e?d:e);return function(t){return t.from&&t.to?c(t.from,t.to,t.classes,t.anchors):u(t)}}]}]).provider("$$animateJs",["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$rAFMutex","$$jqLite",function(e,n,i,r){function o(n){n=N(n)?n:n.split(" ");for(var i=[],r={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!r[a]&&(i.push(e.get(s)),r[a]=!0)}return i}var a=d(r);return function(t,e,i,r){function s(){r.domOperation(),a(t,r)}function l(t,e,i,r,o){switch(i){case"animate":e=[e,r.from,r.to,o];break;case"setClass":e=[e,m,g,o];break;case"addClass":e=[e,m,o];break;case"removeClass":e=[e,g,o];break;default:e=[e,o]}if(e.push(r),t=t.apply(t,e))if(L(t.start)&&(t=t.start()),t instanceof n)t.done(o);else if(L(t))return t;return D}function c(t,e,i,r,o){var a=[];return M(r,function(r){var s=r[o];s&&a.push(function(){var r,o,a=!1,c=function(t){a||(a=!0,(o||D)(t),r.complete(!t))};return r=new n({end:function(){c()},cancel:function(){c(!0)}}),o=l(s,t,e,i,function(t){c(!1===t)}),r})}),a}function u(t,e,i,r,o){var a=c(t,e,i,r,o);if(0===a.length){var s,l;"beforeSetClass"===o?(s=c(t,"removeClass",i,r,"beforeRemoveClass"),l=c(t,"addClass",i,r,"beforeAddClass")):"setClass"===o&&(s=c(t,"removeClass",i,r,"removeClass"),l=c(t,"addClass",i,r,"addClass")),s&&(a=a.concat(s)),l&&(a=a.concat(l))}return 0!==a.length?function(t){var e=[];return a.length&&M(a,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){M(e,function(e){t?e.cancel():e.end()})}}:void 0}3===arguments.length&&H(i)&&(r=i,i=null),r=p(r),i||(i=t.attr("class")||"",r.addClass&&(i+=" "+r.addClass),r.removeClass&&(i+=" "+r.removeClass));var d,h,m=r.addClass,g=r.removeClass,v=o(i);if(v.length){var $,y;"leave"==e?(y="leave",$="afterLeave"):(y="before"+e.charAt(0).toUpperCase()+e.substr(1),$=e),"enter"!==e&&"move"!==e&&(d=u(t,e,r,v,y)),h=u(t,e,r,v,$)}return d||h?{start:function(){function e(e){a=!0,s(),f(t,r),l.complete(e)}var i,o=[];d&&o.push(function(t){i=d(t)}),o.length?o.push(function(t){s(),t(!0)}):s(),h&&o.push(function(t){i=h(t)});var a=!1,l=new n({end:function(){a||((i||D)(void 0),e(void 0))},cancel:function(){a||((i||D)(!0),e(!0))}});return n.chain(o,e),l}}:void 0}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){function n(e){return t(e.element,e.event,e.classes,e.options)}return function(t){if(!t.from||!t.to)return n(t);var i=n(t.from),r=n(t.to);return i||r?{start:function(){function t(){return function(){M(n,function(t){t.end()})}}var n=[];i&&n.push(i.start()),r&&n.push(r.start()),e.all(n,function(t){o.complete(t)});var o=new e({end:t(),cancel:t()});return o}}:void 0}}]}])}(window,window.angular),!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=K.type(t);return"function"===n||K.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function i(t,e,n){if(K.isFunction(e))return K.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return K.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(st.test(e))return K.filter(e,t,n);e=K.filter(e,t)}return K.grep(t,function(t){return W.call(e,t)>=0!==n})}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=ht[t]={};return K.each(t.match(ft)||[],function(t,n){e[n]=!0}),e}function a(){Z.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1),K.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=K.expando+s.uid++}function l(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(bt,"-$1").toLowerCase(),n=t.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:yt.test(n)?K.parseJSON(n):n}catch(r){}$t.set(t,e,n)}else n=void 0;return n}function c(){return!0}function u(){return!1}function d(){try{return Z.activeElement}catch(t){}}function p(t,e){return K.nodeName(t,"table")&&K.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function f(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function h(t){var e=qt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function m(t,e){for(var n=0,i=t.length;i>n;n++)vt.set(t[n],"globalEval",!e||vt.get(e[n],"globalEval"))}function g(t,e){var n,i,r,o,a,s,l,c;if(1===e.nodeType){if(vt.hasData(t)&&(o=vt.access(t),a=vt.set(e,o),c=o.events)){delete a.handle,a.events={};for(r in c)for(n=0,i=c[r].length;i>n;n++)K.event.add(e,r,c[r][n])}$t.hasData(t)&&(s=$t.access(t),l=K.extend({},s),$t.set(e,l))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&K.nodeName(t,e)?K.merge([t],n):n}function $(t,e){var n=e.nodeName.toLowerCase();"input"===n&&kt.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function y(e,n){var i,r=K(n.createElement(e)).appendTo(n.body),o=t.getDefaultComputedStyle&&(i=t.getDefaultComputedStyle(r[0]))?i.display:K.css(r[0],"display");return r.detach(),o}function b(t){var e=Z,n=Lt[t];return n||(n=y(t,e),"none"!==n&&n||(It=(It||K("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=It[0].contentDocument,e.write(),e.close(),n=y(t,e),It.detach()),Lt[t]=n),n}function w(t,e,n){var i,r,o,a,s=t.style;return n=n||Vt(t),n&&(a=n.getPropertyValue(e)||n[e]),n&&(""!==a||K.contains(t.ownerDocument,t)||(a=K.style(t,e)),zt.test(a)&&Rt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function x(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function _(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),i=e,r=Xt.length;r--;)if(e=Xt[r]+n,e in t)return e;return i}function k(t,e,n){var i=Ut.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function C(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=K.css(t,n+xt[o],!0,r)),i?("content"===n&&(a-=K.css(t,"padding"+xt[o],!0,r)),"margin"!==n&&(a-=K.css(t,"border"+xt[o]+"Width",!0,r))):(a+=K.css(t,"padding"+xt[o],!0,r),"padding"!==n&&(a+=K.css(t,"border"+xt[o]+"Width",!0,r)));return a}function S(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=Vt(t),a="border-box"===K.css(t,"boxSizing",!1,o);if(0>=r||null==r){if(r=w(t,e,o),(0>r||null==r)&&(r=t.style[e]),zt.test(r))return r;i=a&&(Y.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+C(t,e,n||(a?"border":"content"),i,o)+"px"}function T(t,e){for(var n,i,r,o=[],a=0,s=t.length;s>a;a++)i=t[a],i.style&&(o[a]=vt.get(i,"olddisplay"),n=i.style.display,e?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&_t(i)&&(o[a]=vt.access(i,"olddisplay",b(i.nodeName)))):(r=_t(i),"none"===n&&r||vt.set(i,"olddisplay",r?n:K.css(i,"display"))));for(a=0;s>a;a++)i=t[a],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[a]||"":"none"));return t}function A(t,e,n,i,r){return new A.prototype.init(t,e,n,i,r)}function E(){return setTimeout(function(){Yt=void 0}),Yt=K.now()}function O(t,e){var n,i=0,r={height:t};for(e=e?1:0;4>i;i+=2-e)n=xt[i],r["margin"+n]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function D(t,e,n){for(var i,r=(ne[e]||[]).concat(ne["*"]),o=0,a=r.length;a>o;o++)if(i=r[o].call(n,e,t))return i}function P(t,e,n){var i,r,o,a,s,l,c,u,d=this,p={},f=t.style,h=t.nodeType&&_t(t),m=vt.get(t,"fxshow");n.queue||(s=K._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,K.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=K.css(t,"display"),u="none"===c?vt.get(t,"olddisplay")||b(t.nodeName):c,"inline"===u&&"none"===K.css(t,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],Jt.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;h=!0}p[i]=m&&m[i]||K.style(t,i)}else c=void 0;if(K.isEmptyObject(p))"inline"===("none"===c?b(t.nodeName):c)&&(f.display=c);else{m?"hidden"in m&&(h=m.hidden):m=vt.access(t,"fxshow",{}),o&&(m.hidden=!h),h?K(t).show():d.done(function(){K(t).hide()}),d.done(function(){var e;vt.remove(t,"fxshow");for(e in p)K.style(t,e,p[e])});for(i in p)a=D(h?m[i]:0,i,d),i in m||(m[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function j(t,e){var n,i,r,o,a;for(n in t)if(i=K.camelCase(n),r=e[i],o=t[n],K.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),a=K.cssHooks[i],a&&"expand"in a){o=a.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function M(t,e,n){var i,r,o=0,a=ee.length,s=K.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Yt||E(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,o=1-i,a=0,l=c.tweens.length;l>a;a++)c.tweens[a].run(o);return s.notifyWith(t,[c,o,n]),1>o&&l?n:(s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:K.extend({},e),opts:K.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Yt||E(),duration:n.duration,tweens:[],createTween:function(e,n){var i=K.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)c.tweens[n].run(1);return e?s.resolveWith(t,[c,e]):s.rejectWith(t,[c,e]),this}}),u=c.props;for(j(u,c.opts.specialEasing);a>o;o++)if(i=ee[o].call(c,t,u,c.opts))return i;return K.map(u,D,c),K.isFunction(c.opts.start)&&c.opts.start.call(t,c),K.fx.timer(K.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function N(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(ft)||[];if(K.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function q(t,e,n,i){function r(s){var l;return o[s]=!0,K.each(t[s]||[],function(t,s){var c=s(e,n,i);return"string"!=typeof c||a||o[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var o={},a=t===ye;return r(e.dataTypes[0])||!o["*"]&&r("*")}function H(t,e){var n,i,r=K.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&K.extend(!0,t,i),t}function F(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}function I(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=c[l+" "+o]||c["* "+o],!a)for(r in c)if(s=r.split(" "),s[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[r]:c[r]!==!0&&(o=s[0],u.unshift(s[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function L(t,e,n,i){var r;if(K.isArray(e))K.each(e,function(e,r){n||ke.test(t)?i(t,r):L(t+"["+("object"==typeof r?e:"")+"]",r,n,i)});else if(n||"object"!==K.type(e))i(t,e);else for(r in e)L(t+"["+r+"]",e[r],n,i)}function R(t){return K.isWindow(t)?t:9===t.nodeType&&t.defaultView}var z=[],V=z.slice,B=z.concat,U=z.push,W=z.indexOf,G={},Q=G.toString,X=G.hasOwnProperty,Y={},Z=t.document,J="2.1.4",K=function(t,e){return new K.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,nt=/-([\da-z])/gi,it=function(t,e){return e.toUpperCase()};K.fn=K.prototype={jquery:J,constructor:K,selector:"",length:0,toArray:function(){return V.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:V.call(this)},pushStack:function(t){var e=K.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return K.each(this,t,e)},map:function(t){return this.pushStack(K.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(V.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:z.sort,splice:z.splice},K.extend=K.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||K.isFunction(a)||(a={}),s===l&&(a=this,s--);l>s;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],i=t[e],a!==i&&(c&&i&&(K.isPlainObject(i)||(r=K.isArray(i)))?(r?(r=!1,o=n&&K.isArray(n)?n:[]):o=n&&K.isPlainObject(n)?n:{},a[e]=K.extend(c,o,i)):void 0!==i&&(a[e]=i));return a},K.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===K.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!K.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==K.type(t)||t.nodeType||K.isWindow(t)?!1:t.constructor&&!X.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?G[Q.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=K.trim(t),t&&(1===t.indexOf("use strict")?(e=Z.createElement("script"),e.text=t,Z.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(et,"ms-").replace(nt,it)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var r,o=0,a=t.length,s=n(t);if(i){if(s)for(;a>o&&(r=e.apply(t[o],i),r!==!1);o++);else for(o in t)if(r=e.apply(t[o],i),r===!1)break}else if(s)for(;a>o&&(r=e.call(t[o],o,t[o]),r!==!1);o++);else for(o in t)if(r=e.call(t[o],o,t[o]),r===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?K.merge(i,"string"==typeof t?[t]:t):U.call(i,t)),i},inArray:function(t,e,n){return null==e?-1:W.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;n>i;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i,r=[],o=0,a=t.length,s=!n;a>o;o++)i=!e(t[o],o),i!==s&&r.push(t[o]);return r},map:function(t,e,i){var r,o=0,a=t.length,s=n(t),l=[];if(s)for(;a>o;o++)r=e(t[o],o,i),null!=r&&l.push(r);else for(o in t)r=e(t[o],o,i),null!=r&&l.push(r);return B.apply([],l)},guid:1,proxy:function(t,e){var n,i,r;return"string"==typeof e&&(n=t[e],e=t,t=n),K.isFunction(t)?(i=V.call(arguments,2),r=function(){return t.apply(e||this,i.concat(V.call(arguments)))},r.guid=t.guid=t.guid||K.guid++,r):void 0},now:Date.now,support:Y}),K.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){G["[object "+e+"]"]=e.toLowerCase()});var rt=function(t){function e(t,e,n,i){var r,o,a,s,l,c,d,f,h,m;if((e?e.ownerDocument||e:L)!==P&&D(e),e=e||P,n=n||[],s=e.nodeType,"string"!=typeof t||!t||1!==s&&9!==s&&11!==s)return n;if(!i&&M){if(11!==s&&(r=$t.exec(t)))if(a=r[1]){if(9===s){if(o=e.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&F(e,o)&&o.id===a)return n.push(o),n}else{if(r[2])return J.apply(n,e.getElementsByTagName(t)),n;if((a=r[3])&&w.getElementsByClassName)return J.apply(n,e.getElementsByClassName(a)),n}if(w.qsa&&(!N||!N.test(t))){if(f=d=I,h=e,m=1!==s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(c=C(t),(d=e.getAttribute("id"))?f=d.replace(bt,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",l=c.length;l--;)c[l]=f+p(c[l]);h=yt.test(t)&&u(e.parentNode)||e,m=c.join(",")}if(m)try{return J.apply(n,h.querySelectorAll(m)),n}catch(g){}finally{d||e.removeAttribute("id")}}}return T(t.replace(lt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[I]=!0,t}function r(t){var e=P.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=t.length;i--;)x.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function c(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function d(){}function p(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=z++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,a){var s,l,c=[R,o];if(a){for(;e=e[i];)if((1===e.nodeType||r)&&t(e,n,a))return!0}else for(;e=e[i];)if(1===e.nodeType||r){if(l=e[I]||(e[I]={}),(s=l[i])&&s[0]===R&&s[1]===o)return c[2]=s[2];if(l[i]=c,c[2]=t(e,n,a))return!0}}}function h(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var r=0,o=n.length;o>r;r++)e(t,n[r],i);return i}function g(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;l>s;s++)(o=t[s])&&(!n||n(o,i,r))&&(a.push(o),c&&e.push(s));return a}function v(t,e,n,r,o,a){return r&&!r[I]&&(r=v(r)),o&&!o[I]&&(o=v(o,a)),i(function(i,a,s,l){var c,u,d,p=[],f=[],h=a.length,v=i||m(e||"*",s.nodeType?[s]:s,[]),$=!t||!i&&e?v:g(v,p,t,s,l),y=n?o||(i?t:h||r)?[]:a:$;if(n&&n($,y,s,l),r)for(c=g(y,f),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(y[f[u]]=!($[f[u]]=d));if(i){if(o||t){if(o){for(c=[],u=y.length;u--;)(d=y[u])&&c.push($[u]=d);o(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=o?tt(i,d):p[u])>-1&&(i[c]=!(a[c]=d))}}else y=g(y===a?y.splice(h,y.length):y),o?o(null,a,y,l):J.apply(a,y)})}function $(t){for(var e,n,i,r=t.length,o=x.relative[t[0].type],a=o||x.relative[" "],s=o?1:0,l=f(function(t){return t===e},a,!0),c=f(function(t){return tt(e,t)>-1},a,!0),u=[function(t,n,i){var r=!o&&(i||n!==A)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,r}];r>s;s++)if(n=x.relative[t[s].type])u=[f(h(u),n)];else{if(n=x.filter[t[s].type].apply(null,t[s].matches),n[I]){for(i=++s;r>i&&!x.relative[t[i].type];i++);return v(s>1&&h(u),s>1&&p(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(lt,"$1"),n,i>s&&$(t.slice(s,i)),r>i&&$(t=t.slice(i)),r>i&&p(t))}u.push(n)}return h(u)}function y(t,n){var r=n.length>0,o=t.length>0,a=function(i,a,s,l,c){var u,d,p,f=0,h="0",m=i&&[],v=[],$=A,y=i||o&&x.find.TAG("*",c),b=R+=null==$?1:Math.random()||.1,w=y.length;for(c&&(A=a!==P&&a);h!==w&&null!=(u=y[h]);h++){if(o&&u){for(d=0;p=t[d++];)if(p(u,a,s)){l.push(u);break}c&&(R=b)}r&&((u=!p&&u)&&f--,i&&m.push(u))}if(f+=h,r&&h!==f){for(d=0;p=n[d++];)p(m,v,a,s);if(i){if(f>0)for(;h--;)m[h]||v[h]||(v[h]=Y.call(l));v=g(v)}J.apply(l,v),c&&!i&&v.length>0&&f+n.length>1&&e.uniqueSort(l)}return c&&(R=b,A=$),m};return r?i(a):a}var b,w,x,_,k,C,S,T,A,E,O,D,P,j,M,N,q,H,F,I="sizzle"+1*new Date,L=t.document,R=0,z=0,V=n(),B=n(),U=n(),W=function(t,e){return t===e&&(O=!0),0},G=1<<31,Q={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,J=X.push,K=X.slice,tt=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=it.replace("w","w#"),ot="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",at=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),lt=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ct=new RegExp("^"+nt+"*,"+nt+"*"),ut=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),dt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),pt=new RegExp(at),ft=new RegExp("^"+rt+"$"),ht={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,$t=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),xt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},_t=function(){D()};try{J.apply(X=K.call(L.childNodes),L.childNodes),X[L.childNodes.length].nodeType}catch(kt){J={apply:X.length?function(t,e){Z.apply(t,K.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}w=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},D=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:L;return i!==P&&9===i.nodeType&&i.documentElement?(P=i,j=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),M=!k(i),w.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=r(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(i.getElementsByClassName),w.getById=r(function(t){return j.appendChild(t).id=I,!i.getElementsByName||!i.getElementsByName(I).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&M){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(wt,xt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},x.find.CLASS=w.getElementsByClassName&&function(t,e){return M?e.getElementsByClassName(t):void 0},q=[],N=[],(w.qsa=vt.test(i.querySelectorAll))&&(r(function(t){j.appendChild(t).innerHTML="<a id='"+I+"'></a><select id='"+I+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||N.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+I+"-]").length||N.push("~="),t.querySelectorAll(":checked").length||N.push(":checked"),t.querySelectorAll("a#"+I+"+*").length||N.push(".#.+[+~]")}),r(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&N.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),N.push(",.*:")})),(w.matchesSelector=vt.test(H=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&r(function(t){w.disconnectedMatch=H.call(t,"div"),H.call(t,"[s!='']:x"),q.push("!=",at)}),N=N.length&&new RegExp(N.join("|")),q=q.length&&new RegExp(q.join("|")),e=vt.test(j.compareDocumentPosition),F=e||vt.test(j.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return O=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===L&&F(L,t)?-1:e===i||e.ownerDocument===L&&F(L,e)?1:E?tt(E,t)-tt(E,e):0:4&n?-1:1)}:function(t,e){if(t===e)return O=!0,0;var n,r=0,o=t.parentNode,s=e.parentNode,l=[t],c=[e];if(!o||!s)return t===i?-1:e===i?1:o?-1:s?1:E?tt(E,t)-tt(E,e):0;if(o===s)return a(t,e);for(n=t;n=n.parentNode;)l.unshift(n);for(n=e;n=n.parentNode;)c.unshift(n);for(;l[r]===c[r];)r++;return r?a(l[r],c[r]):l[r]===L?-1:c[r]===L?1:0},i):P},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==P&&D(t),n=n.replace(dt,"='$1']"),!(!w.matchesSelector||!M||q&&q.test(n)||N&&N.test(n)))try{var i=H.call(t,n);if(i||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(r){}return e(n,P,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==P&&D(t),F(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==P&&D(t);var n=x.attrHandle[e.toLowerCase()],i=n&&Q.call(x.attrHandle,e.toLowerCase())?n(t,e,!M):void 0;return void 0!==i?i:w.attributes||!M?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(O=!w.detectDuplicates,E=!w.sortStable&&t.slice(0),t.sort(W),O){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return E=null,t},_=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=_(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=_(e);return n},x=e.selectors={cacheLength:50,createPseudo:i,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(wt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,xt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&pt.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:n?(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(st," ")+" ").indexOf(i)>-1:"|="===n?o===i||o.slice(0,i.length+1)===i+"-":!1):!0;

}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,p,f,h,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),$=!l&&!s;if(g){if(o){for(;m;){for(d=e;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&$){for(u=g[I]||(g[I]={}),c=u[t]||[],f=c[0]===R&&c[1],p=c[0]===R&&c[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(p=f=0)||h.pop();)if(1===d.nodeType&&++p&&d===e){u[t]=[R,f,p];break}}else if($&&(c=(e[I]||(e[I]={}))[t])&&c[0]===R)p=c[1];else for(;(d=++f&&d&&d[m]||(p=f=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++p||($&&((d[I]||(d[I]={}))[t]=[R,p]),d!==e)););return p-=r,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(t,n){var r,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[I]?o(n):o.length>1?(r=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),a=r.length;a--;)i=tt(t,r[a]),t[i]=!(e[i]=r[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=S(t.replace(lt,"$1"));return r[I]?i(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(wt,xt),function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:i(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,xt).toLowerCase(),function(e){var n;do if(n=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===j},focus:function(t){return t===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return mt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,n){return[0>n?n+e:n]}),even:c(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:c(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:c(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:c(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return d.prototype=x.filters=x.pseudos,x.setFilters=new d,C=e.tokenize=function(t,n){var i,r,o,a,s,l,c,u=B[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=x.preFilter;s;){(!i||(r=ct.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=ut.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(lt," ")}),s=s.slice(i.length));for(a in x.filter)!(r=ht[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?e.error(t):B(t,l).slice(0)},S=e.compile=function(t,e){var n,i=[],r=[],o=U[t+" "];if(!o){for(e||(e=C(t)),n=e.length;n--;)o=$(e[n]),o[I]?i.push(o):r.push(o);o=U(t,y(r,i)),o.selector=t}return o},T=e.select=function(t,e,n,i){var r,o,a,s,l,c="function"==typeof t&&t,d=!i&&C(t=c.selector||t);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===e.nodeType&&M&&x.relative[o[1].type]){if(e=(x.find.ID(a.matches[0].replace(wt,xt),e)||[])[0],!e)return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ht.needsContext.test(t)?0:o.length;r--&&(a=o[r],!x.relative[s=a.type]);)if((l=x.find[s])&&(i=l(a.matches[0].replace(wt,xt),yt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&p(o),!t)return J.apply(n,i),n;break}}return(c||S(t,d))(i,e,!M,n,yt.test(t)&&u(e.parentNode)||e),n},w.sortStable=I.split("").sort(W).join("")===I,w.detectDuplicates=!!O,D(),w.sortDetached=r(function(t){return 1&t.compareDocumentPosition(P.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);K.find=rt,K.expr=rt.selectors,K.expr[":"]=K.expr.pseudos,K.unique=rt.uniqueSort,K.text=rt.getText,K.isXMLDoc=rt.isXML,K.contains=rt.contains;var ot=K.expr.match.needsContext,at=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,st=/^.[^:#\[\.,]*$/;K.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?K.find.matchesSelector(i,t)?[i]:[]:K.find.matches(t,K.grep(e,function(t){return 1===t.nodeType}))},K.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(K(t).filter(function(){for(e=0;n>e;e++)if(K.contains(r[e],this))return!0}));for(e=0;n>e;e++)K.find(t,r[e],i);return i=this.pushStack(n>1?K.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ot.test(t)?K(t):t||[],!1).length}});var lt,ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ut=K.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ct.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof K?e[0]:e,K.merge(this,K.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:Z,!0)),at.test(n[1])&&K.isPlainObject(e))for(n in e)K.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return i=Z.getElementById(n[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Z,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):K.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(K):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),K.makeArray(t,this))};ut.prototype=K.fn,lt=K(Z);var dt=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};K.extend({dir:function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&K(t).is(n))break;i.push(t)}return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),K.fn.extend({has:function(t){var e=K(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(K.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],a=ot.test(t)||"string"!=typeof t?K(t,e||this.context):0;r>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&K.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?K.unique(o):o)},index:function(t){return t?"string"==typeof t?W.call(K(t),this[0]):W.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(K.unique(K.merge(this.get(),K(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),K.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return K.dir(t,"parentNode")},parentsUntil:function(t,e,n){return K.dir(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return K.dir(t,"nextSibling")},prevAll:function(t){return K.dir(t,"previousSibling")},nextUntil:function(t,e,n){return K.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return K.dir(t,"previousSibling",n)},siblings:function(t){return K.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return K.sibling(t.firstChild)},contents:function(t){return t.contentDocument||K.merge([],t.childNodes)}},function(t,e){K.fn[t]=function(n,i){var r=K.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=K.filter(i,r)),this.length>1&&(pt[t]||K.unique(r),dt.test(t)&&r.reverse()),this.pushStack(r)}});var ft=/\S+/g,ht={};K.Callbacks=function(t){t="string"==typeof t?ht[t]||o(t):K.extend({},t);var e,n,i,r,a,s,l=[],c=!t.once&&[],u=function(o){for(e=t.memory&&o,n=!0,s=r||0,r=0,a=l.length,i=!0;l&&a>s;s++)if(l[s].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}i=!1,l&&(c?c.length&&u(c.shift()):e?l=[]:d.disable())},d={add:function(){if(l){var n=l.length;!function o(e){K.each(e,function(e,n){var i=K.type(n);"function"===i?t.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==i&&o(n)})}(arguments),i?a=l.length:e&&(r=n,u(e))}return this},remove:function(){return l&&K.each(arguments,function(t,e){for(var n;(n=K.inArray(e,l,n))>-1;)l.splice(n,1),i&&(a>=n&&a--,s>=n&&s--)}),this},has:function(t){return t?K.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this},disable:function(){return l=c=e=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,e||d.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!l||n&&!c||(e=e||[],e=[t,e.slice?e.slice():e],i?c.push(e):u(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},K.extend({Deferred:function(t){var e=[["resolve","done",K.Callbacks("once memory"),"resolved"],["reject","fail",K.Callbacks("once memory"),"rejected"],["notify","progress",K.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return K.Deferred(function(n){K.each(e,function(e,o){var a=K.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&K.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?K.extend(t,i):i}},r={};return i.pipe=i.then,K.each(e,function(t,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=V.call(arguments),a=o.length,s=1!==a||t&&K.isFunction(t.promise)?a:0,l=1===s?t:K.Deferred(),c=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?V.call(arguments):r,i===e?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(a>1)for(e=new Array(a),n=new Array(a),i=new Array(a);a>r;r++)o[r]&&K.isFunction(o[r].promise)?o[r].promise().done(c(r,i,o)).fail(l.reject).progress(c(r,n,e)):--s;return s||l.resolveWith(i,o),l.promise()}});var mt;K.fn.ready=function(t){return K.ready.promise().done(t),this},K.extend({isReady:!1,readyWait:1,holdReady:function(t){t?K.readyWait++:K.ready(!0)},ready:function(t){(t===!0?--K.readyWait:K.isReady)||(K.isReady=!0,t!==!0&&--K.readyWait>0||(mt.resolveWith(Z,[K]),K.fn.triggerHandler&&(K(Z).triggerHandler("ready"),K(Z).off("ready"))))}}),K.ready.promise=function(e){return mt||(mt=K.Deferred(),"complete"===Z.readyState?setTimeout(K.ready):(Z.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1))),mt.promise(e)},K.ready.promise();var gt=K.access=function(t,e,n,i,r,o,a){var s=0,l=t.length,c=null==n;if("object"===K.type(n)){r=!0;for(s in n)K.access(t,e,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,K.isFunction(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(K(t),n)})),e))for(;l>s;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):o};K.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},s.uid=1,s.accepts=K.acceptData,s.prototype={key:function(t){if(!s.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=s.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(i){e[this.expando]=n,K.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var i,r=this.key(t),o=this.cache[r];if("string"==typeof e)o[e]=n;else if(K.isEmptyObject(o))K.extend(this.cache[r],e);else for(i in e)o[i]=e[i];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?(i=this.get(t,e),void 0!==i?i:this.get(t,K.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=this.key(t),a=this.cache[o];if(void 0===e)this.cache[o]={};else{K.isArray(e)?i=e.concat(e.map(K.camelCase)):(r=K.camelCase(e),e in a?i=[e,r]:(i=r,i=i in a?[i]:i.match(ft)||[])),n=i.length;for(;n--;)delete a[i[n]]}},hasData:function(t){return!K.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new s,$t=new s,yt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;K.extend({hasData:function(t){return $t.hasData(t)||vt.hasData(t)},data:function(t,e,n){return $t.access(t,e,n)},removeData:function(t,e){$t.remove(t,e)},_data:function(t,e,n){return vt.access(t,e,n)},_removeData:function(t,e){vt.remove(t,e)}}),K.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=$t.get(o),1===o.nodeType&&!vt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=K.camelCase(i.slice(5)),l(o,i,r[i])));vt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){$t.set(this,t)}):gt(this,function(e){var n,i=K.camelCase(t);if(o&&void 0===e){if(n=$t.get(o,t),void 0!==n)return n;if(n=$t.get(o,i),void 0!==n)return n;if(n=l(o,i,void 0),void 0!==n)return n}else this.each(function(){var n=$t.get(this,i);$t.set(this,i,e),-1!==t.indexOf("-")&&void 0!==n&&$t.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){$t.remove(this,t)})}}),K.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=vt.get(t,e),n&&(!i||K.isArray(n)?i=vt.access(t,e,K.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=K.queue(t,e),i=n.length,r=n.shift(),o=K._queueHooks(t,e),a=function(){K.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return vt.get(t,n)||vt.access(t,n,{empty:K.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",n])})})}}),K.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?K.queue(this[0],t):void 0===e?this:this.each(function(){var n=K.queue(this,t,e);K._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&K.dequeue(this,t)})},dequeue:function(t){return this.each(function(){K.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=K.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=vt.get(o[a],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var wt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,xt=["Top","Right","Bottom","Left"],_t=function(t,e){return t=e||t,"none"===K.css(t,"display")||!K.contains(t.ownerDocument,t)},kt=/^(?:checkbox|radio)$/i;!function(){var t=Z.createDocumentFragment(),e=t.appendChild(Z.createElement("div")),n=Z.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),Y.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",Y.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";Y.focusinBubbles="onfocusin"in t;var St=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,At=/^(?:focusinfocus|focusoutblur)$/,Et=/^([^.]*)(?:\.(.+)|)$/;K.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,d,p,f,h,m,g=vt.get(t);if(g)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=K.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return typeof K!==Ct&&K.event.triggered!==e.type?K.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(ft)||[""],c=e.length;c--;)s=Et.exec(e[c])||[],f=m=s[1],h=(s[2]||"").split(".").sort(),f&&(d=K.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=K.event.special[f]||{},u=K.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&K.expr.match.needsContext.test(r),namespace:h.join(".")},o),(p=l[f])||(p=l[f]=[],p.delegateCount=0,d.setup&&d.setup.call(t,i,h,a)!==!1||t.addEventListener&&t.addEventListener(f,a,!1)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),K.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,d,p,f,h,m,g=vt.hasData(t)&&vt.get(t);if(g&&(l=g.events)){for(e=(e||"").match(ft)||[""],c=e.length;c--;)if(s=Et.exec(e[c])||[],f=m=s[1],h=(s[2]||"").split(".").sort(),f){for(d=K.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,p=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)u=p[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(t,u));a&&!p.length&&(d.teardown&&d.teardown.call(t,h,g.handle)!==!1||K.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)K.event.remove(t,f+e[c],n,i,!0);K.isEmptyObject(l)&&(delete g.handle,vt.remove(t,"events"))}},trigger:function(e,n,i,r){var o,a,s,l,c,u,d,p=[i||Z],f=X.call(e,"type")?e.type:e,h=X.call(e,"namespace")?e.namespace.split("."):[];if(a=s=i=i||Z,3!==i.nodeType&&8!==i.nodeType&&!At.test(f+K.event.triggered)&&(f.indexOf(".")>=0&&(h=f.split("."),f=h.shift(),h.sort()),c=f.indexOf(":")<0&&"on"+f,e=e[K.expando]?e:new K.Event(f,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=h.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:K.makeArray(n,[e]),d=K.event.special[f]||{},r||!d.trigger||d.trigger.apply(i,n)!==!1)){if(!r&&!d.noBubble&&!K.isWindow(i)){for(l=d.delegateType||f,At.test(l+f)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(i.ownerDocument||Z)&&p.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)e.type=o>1?l:d.bindType||f,u=(vt.get(a,"events")||{})[e.type]&&vt.get(a,"handle"),u&&u.apply(a,n),u=c&&a[c],u&&u.apply&&K.acceptData(a)&&(e.result=u.apply(a,n),e.result===!1&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),n)!==!1||!K.acceptData(i)||c&&K.isFunction(i[f])&&!K.isWindow(i)&&(s=i[c],s&&(i[c]=null),K.event.triggered=f,i[f](),K.event.triggered=void 0,s&&(i[c]=s)),e.result}},dispatch:function(t){t=K.event.fix(t);var e,n,i,r,o,a=[],s=V.call(arguments),l=(vt.get(this,"events")||{})[t.type]||[],c=K.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(a=K.event.handlers.call(this,t,l),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(o.namespace))&&(t.handleObj=o,t.data=o.data,i=((K.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(i=[],n=0;s>n;n++)o=e[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?K(r,this).index(l)>=0:K.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||Z,i=n.documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[K.expando])return t;var e,n,i,r=t.type,o=t,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Tt.test(r)?this.mouseHooks:St.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,t=new K.Event(o),e=i.length;e--;)n=i[e],t[n]=o[n];return t.target||(t.target=Z),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==d()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===d()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&K.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return K.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=K.extend(new K.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?K.event.trigger(r,null,e):K.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},K.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},K.Event=function(t,e){return this instanceof K.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?c:u):this.type=t,e&&K.extend(this,e),this.timeStamp=t&&t.timeStamp||K.now(),void(this[K.expando]=!0)):new K.Event(t,e)},K.Event.prototype={isDefaultPrevented:u,isPropagationStopped:u,isImmediatePropagationStopped:u,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=c,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=c,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=c,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},K.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){K.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return(!r||r!==i&&!K.contains(i,r))&&(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),Y.focusinBubbles||K.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){K.event.simulate(e,t.target,K.event.fix(t),!0)};K.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=vt.access(i,e);r||i.addEventListener(t,n,!0),vt.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=vt.access(i,e)-1;r?vt.access(i,e,r):(i.removeEventListener(t,n,!0),vt.remove(i,e))}}}),K.fn.extend({on:function(t,e,n,i,r){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(a in t)this.on(a,e,n,t[a],r);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),i===!1)i=u;else if(!i)return this;return 1===r&&(o=i,i=function(t){return K().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=K.guid++)),this.each(function(){K.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,K(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=u),this.each(function(){K.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){K.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?K.event.trigger(t,e,n,!0):void 0}});var Ot=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Dt=/<([\w:]+)/,Pt=/<|&#?\w+;/,jt=/<(?:script|style|link)/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^$|\/(?:java|ecma)script/i,qt=/^true\/(.*)/,Ht=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ft={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ft.optgroup=Ft.option,Ft.tbody=Ft.tfoot=Ft.colgroup=Ft.caption=Ft.thead,Ft.th=Ft.td,K.extend({clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=K.contains(t.ownerDocument,t);if(!(Y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||K.isXMLDoc(t)))for(a=v(s),o=v(t),i=0,r=o.length;r>i;i++)$(o[i],a[i]);if(e)if(n)for(o=o||v(t),a=a||v(s),i=0,r=o.length;r>i;i++)g(o[i],a[i]);else g(t,s);return a=v(s,"script"),a.length>0&&m(a,!l&&v(t,"script")),s},buildFragment:function(t,e,n,i){for(var r,o,a,s,l,c,u=e.createDocumentFragment(),d=[],p=0,f=t.length;f>p;p++)if(r=t[p],r||0===r)if("object"===K.type(r))K.merge(d,r.nodeType?[r]:r);else if(Pt.test(r)){for(o=o||u.appendChild(e.createElement("div")),a=(Dt.exec(r)||["",""])[1].toLowerCase(),s=Ft[a]||Ft._default,o.innerHTML=s[1]+r.replace(Ot,"<$1></$2>")+s[2],c=s[0];c--;)o=o.lastChild;K.merge(d,o.childNodes),o=u.firstChild,o.textContent=""}else d.push(e.createTextNode(r));for(u.textContent="",p=0;r=d[p++];)if((!i||-1===K.inArray(r,i))&&(l=K.contains(r.ownerDocument,r),o=v(u.appendChild(r),"script"),l&&m(o),n))for(c=0;r=o[c++];)Nt.test(r.type||"")&&n.push(r);return u},cleanData:function(t){for(var e,n,i,r,o=K.event.special,a=0;void 0!==(n=t[a]);a++){if(K.acceptData(n)&&(r=n[vt.expando],r&&(e=vt.cache[r]))){if(e.events)for(i in e.events)o[i]?K.event.remove(n,i):K.removeEvent(n,i,e.handle);vt.cache[r]&&delete vt.cache[r]}delete $t.cache[n[$t.expando]]}}}),K.fn.extend({text:function(t){return gt(this,function(t){return void 0===t?K.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?K.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||K.cleanData(v(n)),n.parentNode&&(e&&K.contains(n.ownerDocument,n)&&m(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(K.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return K.clone(this,t,e)})},html:function(t){return gt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!jt.test(t)&&!Ft[(Dt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ot,"<$1></$2>");try{for(;i>n;n++)e=this[n]||{},1===e.nodeType&&(K.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(r){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,K.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=B.apply([],t);var n,i,r,o,a,s,l=0,c=this.length,u=this,d=c-1,p=t[0],m=K.isFunction(p);if(m||c>1&&"string"==typeof p&&!Y.checkClone&&Mt.test(p))return this.each(function(n){var i=u.eq(n);m&&(t[0]=p.call(this,n,i.html())),i.domManip(t,e)});if(c&&(n=K.buildFragment(t,this[0].ownerDocument,!1,this),i=n.firstChild,1===n.childNodes.length&&(n=i),i)){for(r=K.map(v(n,"script"),f),o=r.length;c>l;l++)a=n,l!==d&&(a=K.clone(a,!0,!0),o&&K.merge(r,v(a,"script"))),e.call(this[l],a,l);if(o)for(s=r[r.length-1].ownerDocument,K.map(r,h),l=0;o>l;l++)a=r[l],Nt.test(a.type||"")&&!vt.access(a,"globalEval")&&K.contains(s,a)&&(a.src?K._evalUrl&&K._evalUrl(a.src):K.globalEval(a.textContent.replace(Ht,"")))}return this}}),K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){K.fn[t]=function(t){for(var n,i=[],r=K(t),o=r.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),K(r[a])[e](n),U.apply(i,n.get());return this.pushStack(i)}});var It,Lt={},Rt=/^margin/,zt=new RegExp("^("+wt+")(?!px)[a-z%]+$","i"),Vt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a.innerHTML="",r.appendChild(o);var e=t.getComputedStyle(a,null);n="1%"!==e.top,i="4px"===e.width,r.removeChild(o)}var n,i,r=Z.documentElement,o=Z.createElement("div"),a=Z.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",Y.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(a),t.getComputedStyle&&K.extend(Y,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==i&&e(),i},reliableMarginRight:function(){var e,n=a.appendChild(Z.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",r.appendChild(o),e=!parseFloat(t.getComputedStyle(n,null).marginRight),r.removeChild(o),a.removeChild(n),e}}))}(),K.swap=function(t,e,n,i){
var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=a[o];return r};var Bt=/^(none|table(?!-c[ea]).+)/,Ut=new RegExp("^("+wt+")(.*)$","i"),Wt=new RegExp("^([+-])=("+wt+")","i"),Gt={position:"absolute",visibility:"hidden",display:"block"},Qt={letterSpacing:"0",fontWeight:"400"},Xt=["Webkit","O","Moz","ms"];K.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=w(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=K.camelCase(e),l=t.style;return e=K.cssProps[s]||(K.cssProps[s]=_(l,s)),a=K.cssHooks[e]||K.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:l[e]:(o=typeof n,"string"===o&&(r=Wt.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(K.css(t,e)),o="number"),void(null!=n&&n===n&&("number"!==o||K.cssNumber[s]||(n+="px"),Y.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l[e]=n))))}},css:function(t,e,n,i){var r,o,a,s=K.camelCase(e);return e=K.cssProps[s]||(K.cssProps[s]=_(t.style,s)),a=K.cssHooks[e]||K.cssHooks[s],a&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=w(t,e,i)),"normal"===r&&e in Qt&&(r=Qt[e]),""===n||n?(o=parseFloat(r),n===!0||K.isNumeric(o)?o||0:r):r}}),K.each(["height","width"],function(t,e){K.cssHooks[e]={get:function(t,n,i){return n?Bt.test(K.css(t,"display"))&&0===t.offsetWidth?K.swap(t,Gt,function(){return S(t,e,i)}):S(t,e,i):void 0},set:function(t,n,i){var r=i&&Vt(t);return k(t,n,i?C(t,e,i,"border-box"===K.css(t,"boxSizing",!1,r),r):0)}}}),K.cssHooks.marginRight=x(Y.reliableMarginRight,function(t,e){return e?K.swap(t,{display:"inline-block"},w,[t,"marginRight"]):void 0}),K.each({margin:"",padding:"",border:"Width"},function(t,e){K.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];4>i;i++)r[t+xt[i]+e]=o[i]||o[i-2]||o[0];return r}},Rt.test(t)||(K.cssHooks[t+e].set=k)}),K.fn.extend({css:function(t,e){return gt(this,function(t,e,n){var i,r,o={},a=0;if(K.isArray(e)){for(i=Vt(t),r=e.length;r>a;a++)o[e[a]]=K.css(t,e[a],!1,i);return o}return void 0!==n?K.style(t,e,n):K.css(t,e)},t,e,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){_t(this)?K(this).show():K(this).hide()})}}),K.Tween=A,A.prototype={constructor:A,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(K.cssNumber[n]?"":"px")},cur:function(){var t=A.propHooks[this.prop];return t&&t.get?t.get(this):A.propHooks._default.get(this)},run:function(t){var e,n=A.propHooks[this.prop];return this.pos=e=this.options.duration?K.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):A.propHooks._default.set(this),this}},A.prototype.init.prototype=A.prototype,A.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=K.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){K.fx.step[t.prop]?K.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[K.cssProps[t.prop]]||K.cssHooks[t.prop])?K.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},K.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},K.fx=A.prototype.init,K.fx.step={};var Yt,Zt,Jt=/^(?:toggle|show|hide)$/,Kt=new RegExp("^(?:([+-])=|)("+wt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[P],ne={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=Kt.exec(e),o=r&&r[3]||(K.cssNumber[t]?"":"px"),a=(K.cssNumber[t]||"px"!==o&&+i)&&Kt.exec(K.css(n.elem,t)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],r=r||[],a=+i||1;do s=s||".5",a/=s,K.style(n.elem,t,a+o);while(s!==(s=n.cur()/i)&&1!==s&&--l)}return r&&(a=n.start=+a||+i||0,n.unit=o,n.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),n}]};K.Animation=K.extend(M,{tweener:function(t,e){K.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,r=t.length;r>i;i++)n=t[i],ne[n]=ne[n]||[],ne[n].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),K.speed=function(t,e,n){var i=t&&"object"==typeof t?K.extend({},t):{complete:n||!n&&e||K.isFunction(t)&&t,duration:t,easing:n&&e||e&&!K.isFunction(e)&&e};return i.duration=K.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in K.fx.speeds?K.fx.speeds[i.duration]:K.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){K.isFunction(i.old)&&i.old.call(this),i.queue&&K.dequeue(this,i.queue)},i},K.fn.extend({fadeTo:function(t,e,n,i){return this.filter(_t).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=K.isEmptyObject(t),o=K.speed(e,n,i),a=function(){var e=M(this,K.extend({},t),o);(r||vt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=K.timers,a=vt.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&te.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));(e||!n)&&K.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=vt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=K.timers,a=i?i.length:0;for(n.finish=!0,K.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;a>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),K.each(["toggle","show","hide"],function(t,e){var n=K.fn[e];K.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(O(e,!0),t,i,r)}}),K.each({slideDown:O("show"),slideUp:O("hide"),slideToggle:O("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){K.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),K.timers=[],K.fx.tick=function(){var t,e=0,n=K.timers;for(Yt=K.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||K.fx.stop(),Yt=void 0},K.fx.timer=function(t){K.timers.push(t),t()?K.fx.start():K.timers.pop()},K.fx.interval=13,K.fx.start=function(){Zt||(Zt=setInterval(K.fx.tick,K.fx.interval))},K.fx.stop=function(){clearInterval(Zt),Zt=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fn.delay=function(t,e){return t=K.fx?K.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},function(){var t=Z.createElement("input"),e=Z.createElement("select"),n=e.appendChild(Z.createElement("option"));t.type="checkbox",Y.checkOn=""!==t.value,Y.optSelected=n.selected,e.disabled=!0,Y.optDisabled=!n.disabled,t=Z.createElement("input"),t.value="t",t.type="radio",Y.radioValue="t"===t.value}();var ie,re,oe=K.expr.attrHandle;K.fn.extend({attr:function(t,e){return gt(this,K.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){K.removeAttr(this,t)})}}),K.extend({attr:function(t,e,n){var i,r,o=t.nodeType;return t&&3!==o&&8!==o&&2!==o?typeof t.getAttribute===Ct?K.prop(t,e,n):(1===o&&K.isXMLDoc(t)||(e=e.toLowerCase(),i=K.attrHooks[e]||(K.expr.match.bool.test(e)?re:ie)),void 0===n?i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=K.find.attr(t,e),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):void K.removeAttr(t,e)):void 0},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(ft);if(o&&1===t.nodeType)for(;n=o[r++];)i=K.propFix[n]||n,K.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!Y.radioValue&&"radio"===e&&K.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),re={set:function(t,e,n){return e===!1?K.removeAttr(t,n):t.setAttribute(n,n),n}},K.each(K.expr.match.bool.source.match(/\w+/g),function(t,e){var n=oe[e]||K.find.attr;oe[e]=function(t,e,i){var r,o;return i||(o=oe[e],oe[e]=r,r=null!=n(t,e,i)?e.toLowerCase():null,oe[e]=o),r}});var ae=/^(?:input|select|textarea|button)$/i;K.fn.extend({prop:function(t,e){return gt(this,K.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[K.propFix[t]||t]})}}),K.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,r,o,a=t.nodeType;return t&&3!==a&&8!==a&&2!==a?(o=1!==a||!K.isXMLDoc(t),o&&(e=K.propFix[e]||e,r=K.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]):void 0},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||ae.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),Y.optSelected||(K.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),K.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){K.propFix[this.toLowerCase()]=this});var se=/[\t\r\n\f]/g;K.fn.extend({addClass:function(t){var e,n,i,r,o,a,s="string"==typeof t&&t,l=0,c=this.length;if(K.isFunction(t))return this.each(function(e){K(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(ft)||[];c>l;l++)if(n=this[l],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):" ")){for(o=0;r=e[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=K.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,i,r,o,a,s=0===arguments.length||"string"==typeof t&&t,l=0,c=this.length;if(K.isFunction(t))return this.each(function(e){K(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(ft)||[];c>l;l++)if(n=this[l],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):"")){for(o=0;r=e[o++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");a=t?K.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(K.isFunction(t)?function(n){K(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,i=0,r=K(this),o=t.match(ft)||[];e=o[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else(n===Ct||"boolean"===n)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(se," ").indexOf(e)>=0)return!0;return!1}});var le=/\r/g;K.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=K.isFunction(t),this.each(function(n){var r;1===this.nodeType&&(r=i?t.call(this,n,K(this).val()):t,null==r?r="":"number"==typeof r?r+="":K.isArray(r)&&(r=K.map(r,function(t){return null==t?"":t+""})),e=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=K.valHooks[r.type]||K.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(le,""):null==n?"":n)):void 0}}),K.extend({valHooks:{option:{get:function(t){var e=K.find.attr(t,"value");return null!=e?e:K.trim(K.text(t))}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||0>r,a=o?null:[],s=o?r+1:i.length,l=0>r?s:o?r:0;s>l;l++)if(n=i[l],!(!n.selected&&l!==r||(Y.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&K.nodeName(n.parentNode,"optgroup"))){if(e=K(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=K.makeArray(e),a=r.length;a--;)i=r[a],(i.selected=K.inArray(i.value,o)>=0)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]={set:function(t,e){return K.isArray(e)?t.checked=K.inArray(K(t).val(),e)>=0:void 0}},Y.checkOn||(K.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){K.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),K.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var ce=K.now(),ue=/\?/;K.parseJSON=function(t){return JSON.parse(t+"")},K.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{n=new DOMParser,e=n.parseFromString(t,"text/xml")}catch(i){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&K.error("Invalid XML: "+t),e};var de=/#.*$/,pe=/([?&])_=[^&]*/,fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,he=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,me=/^(?:GET|HEAD)$/,ge=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,$e={},ye={},be="*/".concat("*"),we=t.location.href,xe=ve.exec(we.toLowerCase())||[];K.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we,type:"GET",isLocal:he.test(xe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":K.parseJSON,"text xml":K.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?H(H(t,K.ajaxSettings),e):H(K.ajaxSettings,t)},ajaxPrefilter:N($e),ajaxTransport:N(ye),ajax:function(t,e){function n(t,e,n,a){var l,u,v,$,b,x=e;2!==y&&(y=2,s&&clearTimeout(s),i=void 0,o=a||"",w.readyState=t>0?4:0,l=t>=200&&300>t||304===t,n&&($=F(d,w,n)),$=I(d,$,w,l),l?(d.ifModified&&(b=w.getResponseHeader("Last-Modified"),b&&(K.lastModified[r]=b),b=w.getResponseHeader("etag"),b&&(K.etag[r]=b)),204===t||"HEAD"===d.type?x="nocontent":304===t?x="notmodified":(x=$.state,u=$.data,v=$.error,l=!v)):(v=x,(t||!x)&&(x="error",0>t&&(t=0))),w.status=t,w.statusText=(e||x)+"",l?h.resolveWith(p,[u,x,w]):h.rejectWith(p,[w,x,v]),w.statusCode(g),g=void 0,c&&f.trigger(l?"ajaxSuccess":"ajaxError",[w,d,l?u:v]),m.fireWith(p,[w,x]),c&&(f.trigger("ajaxComplete",[w,d]),--K.active||K.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,s,l,c,u,d=K.ajaxSetup({},e),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?K(p):K.event,h=K.Deferred(),m=K.Callbacks("once memory"),g=d.statusCode||{},v={},$={},y=0,b="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!a)for(a={};e=fe.exec(o);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?o:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return y||(t=$[n]=$[n]||t,v[t]=e),this},overrideMimeType:function(t){return y||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>y)for(e in t)g[e]=[g[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||b;return i&&i.abort(e),n(0,e),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,d.url=((t||d.url||we)+"").replace(de,"").replace(ge,xe[1]+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=K.trim(d.dataType||"*").toLowerCase().match(ft)||[""],null==d.crossDomain&&(l=ve.exec(d.url.toLowerCase()),d.crossDomain=!(!l||l[1]===xe[1]&&l[2]===xe[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(xe[3]||("http:"===xe[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=K.param(d.data,d.traditional)),q($e,d,e,w),2===y)return w;c=K.event&&d.global,c&&0===K.active++&&K.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!me.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(ue.test(r)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=pe.test(r)?r.replace(pe,"$1_="+ce++):r+(ue.test(r)?"&":"?")+"_="+ce++)),d.ifModified&&(K.lastModified[r]&&w.setRequestHeader("If-Modified-Since",K.lastModified[r]),K.etag[r]&&w.setRequestHeader("If-None-Match",K.etag[r])),(d.data&&d.hasContent&&d.contentType!==!1||e.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+be+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)w.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(p,w,d)===!1||2===y))return w.abort();b="abort";for(u in{success:1,error:1,complete:1})w[u](d[u]);if(i=q(ye,d,e,w)){w.readyState=1,c&&f.trigger("ajaxSend",[w,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},d.timeout));try{y=1,i.send(v,n)}catch(x){if(!(2>y))throw x;n(-1,x)}}else n(-1,"No Transport");return w},getJSON:function(t,e,n){return K.get(t,e,n,"json")},getScript:function(t,e){return K.get(t,void 0,e,"script")}}),K.each(["get","post"],function(t,e){K[e]=function(t,n,i,r){return K.isFunction(n)&&(r=r||i,i=n,n=void 0),K.ajax({url:t,type:e,dataType:r,data:n,success:i})}}),K._evalUrl=function(t){return K.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},K.fn.extend({wrapAll:function(t){var e;return K.isFunction(t)?this.each(function(e){K(this).wrapAll(t.call(this,e))}):(this[0]&&(e=K(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return this.each(K.isFunction(t)?function(e){K(this).wrapInner(t.call(this,e))}:function(){var e=K(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=K.isFunction(t);return this.each(function(n){K(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){K.nodeName(this,"body")||K(this).replaceWith(this.childNodes)}).end()}}),K.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},K.expr.filters.visible=function(t){return!K.expr.filters.hidden(t)};var _e=/%20/g,ke=/\[\]$/,Ce=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;K.param=function(t,e){var n,i=[],r=function(t,e){e=K.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=K.ajaxSettings&&K.ajaxSettings.traditional),K.isArray(t)||t.jquery&&!K.isPlainObject(t))K.each(t,function(){r(this.name,this.value)});else for(n in t)L(n,t[n],e,r);return i.join("&").replace(_e,"+")},K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=K.prop(this,"elements");return t?K.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!K(this).is(":disabled")&&Te.test(this.nodeName)&&!Se.test(t)&&(this.checked||!kt.test(t))}).map(function(t,e){var n=K(this).val();return null==n?null:K.isArray(n)?K.map(n,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:n.replace(Ce,"\r\n")}}).get()}}),K.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ae=0,Ee={},Oe={0:200,1223:204},De=K.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ee)Ee[t]()}),Y.cors=!!De&&"withCredentials"in De,Y.ajax=De=!!De,K.ajaxTransport(function(t){var e;return Y.cors||De&&!t.crossDomain?{send:function(n,i){var r,o=t.xhr(),a=++Ae;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)o.setRequestHeader(r,n[r]);e=function(t){return function(){e&&(delete Ee[a],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?i(o.status,o.statusText):i(Oe[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=Ee[a]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(s){if(e)throw s}},abort:function(){e&&e()}}:void 0}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return K.globalEval(t),t}}}),K.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),K.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=K("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),Z.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Pe=[],je=/(=)\?(?=&|$)|\?\?/;K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Pe.pop()||K.expando+"_"+ce++;return this[t]=!0,t}}),K.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,a,s=e.jsonp!==!1&&(je.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&je.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=K.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(je,"$1"+r):e.jsonp!==!1&&(e.url+=(ue.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||K.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},i.always(function(){t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Pe.push(r)),a&&K.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),K.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||Z;var i=at.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=K.buildFragment([t],e,r),r&&r.length&&K(r).remove(),K.merge([],i.childNodes))};var Me=K.fn.load;K.fn.load=function(t,e,n){if("string"!=typeof t&&Me)return Me.apply(this,arguments);var i,r,o,a=this,s=t.indexOf(" ");return s>=0&&(i=K.trim(t.slice(s)),t=t.slice(0,s)),K.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&K.ajax({url:t,type:r,dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?K("<div>").append(K.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},K.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){K.fn[e]=function(t){return this.on(e,t)}}),K.expr.filters.animated=function(t){return K.grep(K.timers,function(e){return t===e.elem}).length};var Ne=t.document.documentElement;K.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c,u=K.css(t,"position"),d=K(t),p={};"static"===u&&(t.style.position="relative"),s=d.offset(),o=K.css(t,"top"),l=K.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1,c?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),K.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(p.top=e.top-s.top+a),null!=e.left&&(p.left=e.left-s.left+r),"using"in e?e.using.call(t,p):d.css(p)}},K.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){K.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(e=o.documentElement,K.contains(e,i)?(typeof i.getBoundingClientRect!==Ct&&(r=i.getBoundingClientRect()),n=R(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===K.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),K.nodeName(t[0],"html")||(i=t.offset()),i.top+=K.css(t[0],"borderTopWidth",!0),i.left+=K.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-K.css(n,"marginTop",!0),left:e.left-i.left-K.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Ne;t&&!K.nodeName(t,"html")&&"static"===K.css(t,"position");)t=t.offsetParent;return t||Ne})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var i="pageYOffset"===n;K.fn[e]=function(r){return gt(this,function(e,r,o){var a=R(e);return void 0===o?a?a[n]:e[r]:void(a?a.scrollTo(i?t.pageXOffset:o,i?o:t.pageYOffset):e[r]=o)},e,r,arguments.length,null)}}),K.each(["top","left"],function(t,e){K.cssHooks[e]=x(Y.pixelPosition,function(t,n){return n?(n=w(t,e),zt.test(n)?K(t).position()[e]+"px":n):void 0})}),K.each({Height:"height",Width:"width"},function(t,e){K.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){K.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||r===!0?"margin":"border");return gt(this,function(e,n,i){var r;return K.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===i?K.css(e,n,a):K.style(e,n,i,a)},e,o?i:void 0,o,null)}})}),K.fn.size=function(){return this.length},K.fn.andSelf=K.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return K});var qe=t.jQuery,He=t.$;return K.noConflict=function(e){return t.$===K&&(t.$=He),e&&t.jQuery===K&&(t.jQuery=qe),K},typeof e===Ct&&(t.jQuery=t.$=K),K}),!function(t,e,n,i){"use strict";function r(t){return("string"==typeof t||t instanceof String)&&(t=t.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")),t}var o=function(e){for(var n=e.length,i=t("head");n--;)0===i.has("."+e[n]).length&&i.append('<meta class="'+e[n]+'" />')};o(["foundation-mq-small","foundation-mq-small-only","foundation-mq-medium","foundation-mq-medium-only","foundation-mq-large","foundation-mq-large-only","foundation-mq-xlarge","foundation-mq-xlarge-only","foundation-mq-xxlarge","foundation-data-attribute-namespace"]),t(function(){"undefined"!=typeof FastClick&&"undefined"!=typeof n.body&&FastClick.attach(n.body)});var a=function(e,i){if("string"==typeof e){if(i){var r;if(i.jquery){if(r=i[0],!r)return i}else r=i;return t(r.querySelectorAll(e))}return t(n.querySelectorAll(e))}return t(e,i)},s=function(t){var e=[];return t||e.push("data"),this.namespace.length>0&&e.push(this.namespace),e.push(this.name),e.join("-")},l=function(t){for(var e=t.split("-"),n=e.length,i=[];n--;)0!==n?i.push(e[n]):this.namespace.length>0?i.push(this.namespace,e[n]):i.push(e[n]);return i.reverse().join("-")},c=function(e,n){var i=this,r=function(){var r=a(this),o=!r.data(i.attr_name(!0)+"-init");r.data(i.attr_name(!0)+"-init",t.extend({},i.settings,n||e,i.data_options(r))),o&&i.events(this)};return a(this.scope).is("["+this.attr_name()+"]")?r.call(this.scope):a("["+this.attr_name()+"]",this.scope).each(r),"string"==typeof e?this[e].call(this,n):void 0},u=function(t,e){function n(){e(t[0])}function i(){if(this.one("load",n),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}return t.attr("src")?void(t[0].complete||4===t[0].readyState?n():i.call(t)):void n()};e.matchMedia||(e.matchMedia=function(){var t=e.styleMedia||e.media;if(!t){var i=n.createElement("style"),r=n.getElementsByTagName("script")[0],o=null;i.type="text/css",i.id="matchmediajs-test",r.parentNode.insertBefore(i,r),o="getComputedStyle"in e&&e.getComputedStyle(i,null)||i.currentStyle,t={matchMedium:function(t){var e="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return i.styleSheet?i.styleSheet.cssText=e:i.textContent=e,"1px"===o.width}}}return function(e){return{matches:t.matchMedium(e||"all"),media:e||"all"}}}()),function(t){function n(){i&&(a(n),l&&t.fx.tick())}for(var i,r=0,o=["webkit","moz"],a=e.requestAnimationFrame,s=e.cancelAnimationFrame,l="undefined"!=typeof t.fx;r<o.length&&!a;r++)a=e[o[r]+"RequestAnimationFrame"],s=s||e[o[r]+"CancelAnimationFrame"]||e[o[r]+"CancelRequestAnimationFrame"];a?(e.requestAnimationFrame=a,e.cancelAnimationFrame=s,l&&(t.fx.timer=function(e){e()&&t.timers.push(e)&&!i&&(i=!0,n())},t.fx.stop=function(){i=!1})):(e.requestAnimationFrame=function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-r)),o=e.setTimeout(function(){t(n+i)},i);return r=n+i,o},e.cancelAnimationFrame=function(t){clearTimeout(t)})}(t),e.Foundation={name:"Foundation",version:"5.5.2",media_queries:{small:a(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"small-only":a(".foundation-mq-small-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:a(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"medium-only":a(".foundation-mq-medium-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:a(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"large-only":a(".foundation-mq-large-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:a(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"xlarge-only":a(".foundation-mq-xlarge-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:a(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:t("<style></style>").appendTo("head")[0].sheet,global:{namespace:i},init:function(t,n,i,r,o){var s=[t,i,r,o],l=[];if(this.rtl=/rtl/i.test(a("html").attr("dir")),this.scope=t||this.scope,this.set_namespace(),n&&"string"==typeof n&&!/reflow/i.test(n))this.libs.hasOwnProperty(n)&&l.push(this.init_lib(n,s));else for(var c in this.libs)l.push(this.init_lib(c,n));return a(e).load(function(){a(e).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider")}),t},init_lib:function(e,n){return this.libs.hasOwnProperty(e)?(this.patch(this.libs[e]),n&&n.hasOwnProperty(e)?("undefined"!=typeof this.libs[e].settings?t.extend(!0,this.libs[e].settings,n[e]):"undefined"!=typeof this.libs[e].defaults&&t.extend(!0,this.libs[e].defaults,n[e]),this.libs[e].init.apply(this.libs[e],[this.scope,n[e]])):(n=n instanceof Array?n:new Array(n),this.libs[e].init.apply(this.libs[e],n))):function(){}},patch:function(t){t.scope=this.scope,t.namespace=this.global.namespace,t.rtl=this.rtl,t.data_options=this.utils.data_options,t.attr_name=s,t.add_namespace=l,t.bindings=c,t.S=this.utils.S},inherit:function(t,e){for(var n=e.split(" "),i=n.length;i--;)this.utils.hasOwnProperty(n[i])&&(t[n[i]]=this.utils[n[i]])},set_namespace:function(){var e=this.global.namespace===i?t(".foundation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=e===i||/false/i.test(e)?"":e},libs:{},utils:{S:a,throttle:function(t,e){var n=null;return function(){var i=this,r=arguments;null==n&&(n=setTimeout(function(){t.apply(i,r),n=null},e))}},debounce:function(t,e,n){var i,r;return function(){var o=this,a=arguments,s=function(){i=null,n||(r=t.apply(o,a));

},l=n&&!i;return clearTimeout(i),i=setTimeout(s,e),l&&(r=t.apply(o,a)),r}},data_options:function(e,n){function i(t){return!isNaN(t-0)&&null!==t&&""!==t&&t!==!1&&t!==!0}function r(e){return"string"==typeof e?t.trim(e):e}n=n||"options";var o,a,s,l={},c=function(t){var e=Foundation.global.namespace;return t.data(e.length>0?e+"-"+n:n)},u=c(e);if("object"==typeof u)return u;for(s=(u||":").split(";"),o=s.length;o--;)a=s[o].split(":"),a=[a[0],a.slice(1).join(":")],/true/i.test(a[1])&&(a[1]=!0),/false/i.test(a[1])&&(a[1]=!1),i(a[1])&&(a[1]=-1===a[1].indexOf(".")?parseInt(a[1],10):parseFloat(a[1])),2===a.length&&a[0].length>0&&(l[r(a[0])]=r(a[1]));return l},register_media:function(e,n){Foundation.media_queries[e]===i&&(t("head").append('<meta class="'+n+'"/>'),Foundation.media_queries[e]=r(t("."+n).css("font-family")))},add_custom_rule:function(t,e){if(e===i&&Foundation.stylesheet)Foundation.stylesheet.insertRule(t,Foundation.stylesheet.cssRules.length);else{var n=Foundation.media_queries[e];n!==i&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[e]+"{ "+t+" }",Foundation.stylesheet.cssRules.length)}},image_loaded:function(t,e){function n(t){for(var e=t.length,n=e-1;n>=0;n--)if(t.attr("height")===i)return!1;return!0}var r=this,o=t.length;(0===o||n(t))&&e(t),t.each(function(){u(r.S(this),function(){o-=1,0===o&&e(t)})})},random_str:function(){return this.fidx||(this.fidx=0),this.prefix=this.prefix||[this.name||"F",(+new Date).toString(36)].join("-"),this.prefix+(this.fidx++).toString(36)},match:function(t){return e.matchMedia(t).matches},is_small_up:function(){return this.match(Foundation.media_queries.small)},is_medium_up:function(){return this.match(Foundation.media_queries.medium)},is_large_up:function(){return this.match(Foundation.media_queries.large)},is_xlarge_up:function(){return this.match(Foundation.media_queries.xlarge)},is_xxlarge_up:function(){return this.match(Foundation.media_queries.xxlarge)},is_small_only:function(){return!(this.is_medium_up()||this.is_large_up()||this.is_xlarge_up()||this.is_xxlarge_up())},is_medium_only:function(){return this.is_medium_up()&&!this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_large_only:function(){return this.is_medium_up()&&this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xxlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&this.is_xxlarge_up()}}},t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(t)),this})}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.abide={name:"abide",version:"5.5.2",settings:{live_validate:!0,validate_on_blur:!0,focus_on_invalid:!0,error_labels:!0,error_class:"error",timeout:1e3,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^(https?|ftp|file|ssh):\/\/([-;:&=\+\$,\w]+@{1})?([-A-Za-z0-9\.]+)+:?(\d+)?((\/[-\+~%\/\.\w]+)?\??([-\+=&;%@\.\w]+)?#?([\w]+)?)?/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},validators:{equalTo:function(t,e,i){var r=n.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value,o=t.value,a=r===o;return a}}},timer:null,init:function(t,e,n){this.bindings(e,n)},events:function(e){function n(t,e){clearTimeout(i.timer),i.timer=setTimeout(function(){i.validate([t],e)}.bind(t),o.timeout)}var i=this,r=i.S(e).attr("novalidate","novalidate"),o=r.data(this.attr_name(!0)+"-init")||{};this.invalid_attr=this.add_namespace("data-invalid"),r.off(".abide").on("submit.fndtn.abide",function(t){var e=/ajax/i.test(i.S(this).attr(i.attr_name()));return i.validate(i.S(this).find("input, textarea, select").not(":hidden, [data-abide-ignore]").get(),t,e)}).on("validate.fndtn.abide",function(t){"manual"===o.validate_on&&i.validate([t.target],t)}).on("reset",function(e){return i.reset(t(this),e)}).find("input, textarea, select").not(":hidden, [data-abide-ignore]").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(t){o.validate_on_blur&&o.validate_on_blur===!0&&n(this,t),"change"===o.validate_on&&n(this,t)}).on("keydown.fndtn.abide",function(t){o.live_validate&&o.live_validate===!0&&9!=t.which&&n(this,t),"tab"===o.validate_on&&9===t.which?n(this,t):"change"===o.validate_on&&n(this,t)}).on("focus",function(e){navigator.userAgent.match(/iPad|iPhone|Android|BlackBerry|Windows Phone|webOS/i)&&t("html, body").animate({scrollTop:t(e.target).offset().top},100)})},reset:function(e,n){var i=this;e.removeAttr(i.invalid_attr),t("["+i.invalid_attr+"]",e).removeAttr(i.invalid_attr),t("."+i.settings.error_class,e).not("small").removeClass(i.settings.error_class),t(":input",e).not(":button, :submit, :reset, :hidden, [data-abide-ignore]").val("").removeAttr(i.invalid_attr)},validate:function(t,e,n){for(var i=this.parse_patterns(t),r=i.length,o=this.S(t[0]).closest("form"),a=/submit/.test(e.type),s=0;r>s;s++)if(!i[s]&&(a||n))return this.settings.focus_on_invalid&&t[s].focus(),o.trigger("invalid.fndtn.abide"),this.S(t[s]).closest("form").attr(this.invalid_attr,""),!1;return(a||n)&&o.trigger("valid.fndtn.abide"),o.removeAttr(this.invalid_attr),n?!1:!0},parse_patterns:function(t){for(var e=t.length,n=[];e--;)n.push(this.pattern(t[e]));return this.check_validation_and_apply_styles(n)},pattern:function(t){var e=t.getAttribute("type"),n="string"==typeof t.getAttribute("required"),i=t.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(i)&&i.length>0?[t,this.settings.patterns[i],n]:i.length>0?[t,new RegExp(i),n]:this.settings.patterns.hasOwnProperty(e)?[t,this.settings.patterns[e],n]:(i=/.*/,[t,i,n])},check_validation_and_apply_styles:function(e){var n=e.length,i=[],r=this.S(e[0][0]).closest("[data-"+this.attr_name(!0)+"]");for(r.data(this.attr_name(!0)+"-init")||{};n--;){var o,a,s=e[n][0],l=e[n][2],c=s.value.trim(),u=this.S(s).parent(),d=s.getAttribute(this.add_namespace("data-abide-validator")),p="radio"===s.type,f="checkbox"===s.type,h=this.S('label[for="'+s.getAttribute("id")+'"]'),m=l?s.value.length>0:!0,g=[];if(s.getAttribute(this.add_namespace("data-equalto"))&&(d="equalTo"),o=u.is("label")?u.parent():u,p&&l)g.push(this.valid_radio(s,l));else if(f&&l)g.push(this.valid_checkbox(s,l));else if(d){for(var v=d.split(" "),$=!0,y=!0,b=0;b<v.length;b++)a=this.settings.validators[v[b]].apply(this,[s,l,o]),g.push(a),y=a&&$,$=a;y?(this.S(s).removeAttr(this.invalid_attr),o.removeClass("error"),h.length>0&&this.settings.error_labels&&h.removeClass(this.settings.error_class).removeAttr("role"),t(s).triggerHandler("valid")):(this.S(s).attr(this.invalid_attr,""),o.addClass("error"),h.length>0&&this.settings.error_labels&&h.addClass(this.settings.error_class).attr("role","alert"),t(s).triggerHandler("invalid"))}else if(g.push(e[n][1].test(c)&&m||!l&&s.value.length<1||t(s).attr("disabled")?!0:!1),g=[g.every(function(t){return t})],g[0])this.S(s).removeAttr(this.invalid_attr),s.setAttribute("aria-invalid","false"),s.removeAttribute("aria-describedby"),o.removeClass(this.settings.error_class),h.length>0&&this.settings.error_labels&&h.removeClass(this.settings.error_class).removeAttr("role"),t(s).triggerHandler("valid");else{this.S(s).attr(this.invalid_attr,""),s.setAttribute("aria-invalid","true");var w=o.find("small."+this.settings.error_class,"span."+this.settings.error_class),x=w.length>0?w[0].id:"";x.length>0&&s.setAttribute("aria-describedby",x),o.addClass(this.settings.error_class),h.length>0&&this.settings.error_labels&&h.addClass(this.settings.error_class).attr("role","alert"),t(s).triggerHandler("invalid")}i=i.concat(g)}return i},valid_checkbox:function(e,n){var e=this.S(e),i=e.is(":checked")||!n||e.get(0).getAttribute("disabled");return i?(e.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class),t(e).triggerHandler("valid")):(e.attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),t(e).triggerHandler("invalid")),i},valid_radio:function(e,n){for(var i=e.getAttribute("name"),r=this.S(e).closest("[data-"+this.attr_name(!0)+"]").find("[name='"+i+"']"),o=r.length,a=!1,s=!1,l=0;o>l;l++)r[l].getAttribute("disabled")?(s=!0,a=!0):r[l].checked?a=!0:s&&(a=!1);for(var l=0;o>l;l++)a?(this.S(r[l]).removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class),t(r[l]).triggerHandler("valid")):(this.S(r[l]).attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),t(r[l]).triggerHandler("invalid"));return a},valid_equal:function(t,e,i){var r=n.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value,o=t.value,a=r===o;return a?(this.S(t).removeAttr(this.invalid_attr),i.removeClass(this.settings.error_class),label.length>0&&settings.error_labels&&label.removeClass(this.settings.error_class)):(this.S(t).attr(this.invalid_attr,""),i.addClass(this.settings.error_class),label.length>0&&settings.error_labels&&label.addClass(this.settings.error_class)),a},valid_oneof:function(t,e,n,i){var t=this.S(t),r=this.S("["+this.add_namespace("data-oneof")+"]"),o=r.filter(":checked").length>0;if(o?t.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class):t.attr(this.invalid_attr,"").parent().addClass(this.settings.error_class),!i){var a=this;r.each(function(){a.valid_oneof.call(a,this,null,null,!0)})}return o},reflow:function(t,e){var n=this,i=n.S("["+this.attr_name()+"]").attr("novalidate","novalidate");n.S(i).each(function(t,e){n.events(e)})}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.5.2",settings:{content_class:"content",active_class:"active",multi_expand:!1,toggleable:!0,callback:function(){}},init:function(t,e,n){this.bindings(e,n)},events:function(e){var n=this,i=this.S;n.create(this.S(e)),i(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion","["+this.attr_name()+"] > dd > a, ["+this.attr_name()+"] > li > a",function(e){var r=i(this).closest("["+n.attr_name()+"]"),o=n.attr_name()+"="+r.attr(n.attr_name()),a=r.data(n.attr_name(!0)+"-init")||n.settings,s=i("#"+this.href.split("#")[1]),l=t("> dd, > li",r),c=l.children("."+a.content_class),u=c.filter("."+a.active_class);return e.preventDefault(),r.attr(n.attr_name())&&(c=c.add("["+o+"] dd > ."+a.content_class+", ["+o+"] li > ."+a.content_class),l=l.add("["+o+"] dd, ["+o+"] li")),a.toggleable&&s.is(u)?(s.parent("dd, li").toggleClass(a.active_class,!1),s.toggleClass(a.active_class,!1),i(this).attr("aria-expanded",function(t,e){return"true"===e?"false":"true"}),a.callback(s),s.triggerHandler("toggled",[r]),void r.triggerHandler("toggled",[s])):(a.multi_expand||(c.removeClass(a.active_class),l.removeClass(a.active_class),l.children("a").attr("aria-expanded","false")),s.addClass(a.active_class).parent().addClass(a.active_class),a.callback(s),s.triggerHandler("toggled",[r]),r.triggerHandler("toggled",[s]),void i(this).attr("aria-expanded","true"))})},create:function(e){var n=this,i=e,r=t("> .accordion-navigation",i),o=i.data(n.attr_name(!0)+"-init")||n.settings;r.children("a").attr("aria-expanded","false"),r.has("."+o.content_class+"."+o.active_class).children("a").attr("aria-expanded","true"),o.multi_expand&&e.attr("aria-multiselectable","true")},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.alert={name:"alert",version:"5.5.2",settings:{callback:function(){}},init:function(t,e,n){this.bindings(e,n)},events:function(){var e=this,n=this.S;t(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] .close",function(t){var i=n(this).closest("["+e.attr_name()+"]"),r=i.data(e.attr_name(!0)+"-init")||e.settings;t.preventDefault(),Modernizr.csstransitions?(i.addClass("alert-close"),i.on("transitionend webkitTransitionEnd oTransitionEnd",function(t){n(this).trigger("close.fndtn.alert").remove(),r.callback()})):i.fadeOut(300,function(){n(this).trigger("close.fndtn.alert").remove(),r.callback()})})},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.clearing={name:"clearing",version:"5.5.2",settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><div class="clearing-touch-label"></div><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div><img class="clearing-preload-next" style="display: none" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><img class="clearing-preload-prev" style="display: none" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" />'},close_selectors:".clearing-close, div.clearing-blackout",open_selectors:"",skip_selector:"",touch_label:"",init:!1,locked:!1},init:function(t,e,n){var i=this;Foundation.inherit(this,"throttle image_loaded"),this.bindings(e,n),i.S(this.scope).is("["+this.attr_name()+"]")?this.assemble(i.S("li",this.scope)):i.S("["+this.attr_name()+"]",this.scope).each(function(){i.assemble(i.S("li",this))})},events:function(i){var r=this,o=r.S,a=t(".scroll-container");a.length>0&&(this.scope=a),o(this.scope).off(".clearing").on("click.fndtn.clearing","ul["+this.attr_name()+"] li "+this.settings.open_selectors,function(t,e,n){var e=e||o(this),n=n||e,i=e.next("li"),a=e.closest("["+r.attr_name()+"]").data(r.attr_name(!0)+"-init"),s=o(t.target);t.preventDefault(),a||(r.init(),a=e.closest("["+r.attr_name()+"]").data(r.attr_name(!0)+"-init")),n.hasClass("visible")&&e[0]===n[0]&&i.length>0&&r.is_open(e)&&(n=i,s=o("img",n)),r.open(s,e,n),r.update_paddles(n)}).on("click.fndtn.clearing",".clearing-main-next",function(t){r.nav(t,"next")}).on("click.fndtn.clearing",".clearing-main-prev",function(t){r.nav(t,"prev")}).on("click.fndtn.clearing",this.settings.close_selectors,function(t){Foundation.libs.clearing.close(t,this)}),t(n).on("keydown.fndtn.clearing",function(t){r.keydown(t)}),o(e).off(".clearing").on("resize.fndtn.clearing",function(){r.resize()}),this.swipe_events(i)},swipe_events:function(t){var e=this,n=e.S;n(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:i};n(this).data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(t){if(t.touches||(t=t.originalEvent),!(t.touches.length>1||t.scale&&1!==t.scale)){var i=n(this).data("swipe-transition");if("undefined"==typeof i&&(i={}),i.delta_x=t.touches[0].pageX-i.start_page_x,Foundation.rtl&&(i.delta_x=-i.delta_x),"undefined"==typeof i.is_scrolling&&(i.is_scrolling=!!(i.is_scrolling||Math.abs(i.delta_x)<Math.abs(t.touches[0].pageY-i.start_page_y))),!i.is_scrolling&&!i.active){t.preventDefault();var r=i.delta_x<0?"next":"prev";i.active=!0,e.nav(t,r)}}}).on("touchend.fndtn.clearing",".visible-img",function(t){n(this).data("swipe-transition",{}),t.stopPropagation()})},assemble:function(e){var n=e.parent();if(!n.parent().hasClass("carousel")){n.after('<div id="foundationClearingHolder"></div>');var i=n.detach(),r="";if(null!=i[0]){r=i[0].outerHTML;var o=this.S("#foundationClearingHolder"),a=n.data(this.attr_name(!0)+"-init"),s={grid:'<div class="carousel">'+r+"</div>",viewing:a.templates.viewing},l='<div class="clearing-assembled"><div>'+s.viewing+s.grid+"</div></div>",c=this.settings.touch_label;Modernizr.touch&&(l=t(l).find(".clearing-touch-label").html(c).end()),o.after(l).remove()}}},open:function(e,i,r){function o(){setTimeout(function(){this.image_loaded(p,function(){1!==p.outerWidth()||h?a.call(this,p):o.call(this)}.bind(this))}.bind(this),100)}function a(e){var n=t(e);n.css("visibility","visible"),n.trigger("imageVisible"),l.css("overflow","hidden"),c.addClass("clearing-blackout"),u.addClass("clearing-container"),d.show(),this.fix_height(r).caption(s.S(".clearing-caption",d),s.S("img",r)).center_and_label(e,f).shift(i,r,function(){r.closest("li").siblings().removeClass("visible"),r.closest("li").addClass("visible")}),d.trigger("opened.fndtn.clearing")}var s=this,l=t(n.body),c=r.closest(".clearing-assembled"),u=s.S("div",c).first(),d=s.S(".visible-img",u),p=s.S("img",d).not(e),f=s.S(".clearing-touch-label",u),h=!1,m={};t("body").on("touchmove",function(t){t.preventDefault()}),p.error(function(){h=!0}),this.locked()||(d.trigger("open.fndtn.clearing"),m=this.load(e),m.interchange?p.attr("data-interchange",m.interchange).foundation("interchange","reflow"):p.attr("src",m.src).attr("data-interchange",""),p.css("visibility","hidden"),o.call(this))},close:function(e,i){e.preventDefault();var r,o,a=function(t){return/blackout/.test(t.selector)?t:t.closest(".clearing-blackout")}(t(i)),s=t(n.body);return i===e.target&&a&&(s.css("overflow",""),r=t("div",a).first(),o=t(".visible-img",r),o.trigger("close.fndtn.clearing"),this.settings.prev_index=0,t("ul["+this.attr_name()+"]",a).attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),r.removeClass("clearing-container"),o.hide(),o.trigger("closed.fndtn.clearing")),t("body").off("touchmove"),!1},is_open:function(t){return t.parent().prop("style").length>0},keydown:function(e){var n=t(".clearing-blackout ul["+this.attr_name()+"]"),i=this.rtl?37:39,r=this.rtl?39:37,o=27;e.which===i&&this.go(n,"next"),e.which===r&&this.go(n,"prev"),e.which===o&&this.S("a.clearing-close").trigger("click.fndtn.clearing")},nav:function(e,n){var i=t("ul["+this.attr_name()+"]",".clearing-blackout");e.preventDefault(),this.go(i,n)},resize:function(){var e=t("img",".clearing-blackout .visible-img"),n=t(".clearing-touch-label",".clearing-blackout");e.length&&(this.center_and_label(e,n),e.trigger("resized.fndtn.clearing"))},fix_height:function(t){var e=t.parent().children(),n=this;return e.each(function(){var t=n.S(this),e=t.find("img");t.height()>e.outerHeight()&&t.addClass("fix-height")}).closest("ul").width(100*e.length+"%"),this},update_paddles:function(t){t=t.closest("li");var e=t.closest(".carousel").siblings(".visible-img");t.next().length>0?this.S(".clearing-main-next",e).removeClass("disabled"):this.S(".clearing-main-next",e).addClass("disabled"),t.prev().length>0?this.S(".clearing-main-prev",e).removeClass("disabled"):this.S(".clearing-main-prev",e).addClass("disabled")},center_and_label:function(t,e){return e.css(!this.rtl&&e.length>0?{marginLeft:-(e.outerWidth()/2),marginTop:-(t.outerHeight()/2)-e.outerHeight()-10}:{marginRight:-(e.outerWidth()/2),marginTop:-(t.outerHeight()/2)-e.outerHeight()-10,left:"auto",right:"50%"}),this},load:function(t){var e,n,i;return"A"===t[0].nodeName?(e=t.attr("href"),n=t.data("clearing-interchange")):(i=t.closest("a"),e=i.attr("href"),n=i.data("clearing-interchange")),this.preload(t),{src:e?e:t.attr("src"),interchange:e?n:t.data("clearing-interchange")}},preload:function(t){this.img(t.closest("li").next(),"next").img(t.closest("li").prev(),"prev")},img:function(e,n){if(e.length){var i,r,o,a=t(".clearing-preload-"+n),s=this.S("a",e);s.length?(i=s.attr("href"),r=s.data("clearing-interchange")):(o=this.S("img",e),i=o.attr("src"),r=o.data("clearing-interchange")),r?a.attr("data-interchange",r):(a.attr("src",i),a.attr("data-interchange",""))}return this},caption:function(t,e){var n=e.attr("data-caption");return n?t.html(n).show():t.text("").hide(),this},go:function(t,e){var n=this.S(".visible",t),i=n[e]();this.settings.skip_selector&&0!=i.find(this.settings.skip_selector).length&&(i=i[e]()),i.length&&this.S("img",i).trigger("click.fndtn.clearing",[n,i]).trigger("change.fndtn.clearing")},shift:function(t,e,n){var i,r=e.parent(),o=this.settings.prev_index||e.index(),a=this.direction(r,t,e),s=this.rtl?"right":"left",l=parseInt(r.css("left"),10),c=e.outerWidth(),u={};e.index()===o||/skip/.test(a)?/skip/.test(a)&&(i=e.index()-this.settings.up_count,this.lock(),i>0?(u[s]=-(i*c),r.animate(u,300,this.unlock())):(u[s]=0,r.animate(u,300,this.unlock()))):/left/.test(a)?(this.lock(),u[s]=l+c,r.animate(u,300,this.unlock())):/right/.test(a)&&(this.lock(),u[s]=l-c,r.animate(u,300,this.unlock())),n()},direction:function(t,e,n){var i,r=this.S("li",t),o=r.outerWidth()+r.outerWidth()/4,a=Math.floor(this.S(".clearing-container").outerWidth()/o)-1,s=r.index(n);return this.settings.up_count=a,i=this.adjacent(this.settings.prev_index,s)?s>a&&s>this.settings.prev_index?"right":s>a-1&&s<=this.settings.prev_index?"left":!1:"skip",this.settings.prev_index=s,i},adjacent:function(t,e){for(var n=e+1;n>=e-1;n--)if(n===t)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},off:function(){this.S(this.scope).off(".fndtn.clearing"),this.S(e).off(".fndtn.clearing")},reflow:function(){this.init()}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.5.2",settings:{active_class:"open",disabled_class:"disabled",mega_class:"mega",align:"bottom",is_hover:!1,hover_timeout:150,opened:function(){},closed:function(){}},init:function(e,n,i){Foundation.inherit(this,"throttle"),t.extend(!0,this.settings,n,i),this.bindings(n,i)},events:function(i){var r=this,o=r.S;o(this.scope).off(".dropdown").on("click.fndtn.dropdown","["+this.attr_name()+"]",function(e){var n=o(this).data(r.attr_name(!0)+"-init")||r.settings;(!n.is_hover||Modernizr.touch)&&(e.preventDefault(),o(this).parent("[data-reveal-id]").length&&e.stopPropagation(),r.toggle(t(this)))}).on("mouseenter.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(t){var e,n,i=o(this);clearTimeout(r.timeout),i.data(r.data_attr())?(e=o("#"+i.data(r.data_attr())),n=i):(e=i,n=o("["+r.attr_name()+'="'+e.attr("id")+'"]'));var a=n.data(r.attr_name(!0)+"-init")||r.settings;o(t.currentTarget).data(r.data_attr())&&a.is_hover&&r.closeall.call(r),a.is_hover&&r.open.apply(r,[e,n])}).on("mouseleave.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(t){var e,n=o(this);if(n.data(r.data_attr()))e=n.data(r.data_attr(!0)+"-init")||r.settings;else var i=o("["+r.attr_name()+'="'+o(this).attr("id")+'"]'),e=i.data(r.attr_name(!0)+"-init")||r.settings;r.timeout=setTimeout(function(){n.data(r.data_attr())?e.is_hover&&r.close.call(r,o("#"+n.data(r.data_attr()))):e.is_hover&&r.close.call(r,n)}.bind(this),e.hover_timeout)}).on("click.fndtn.dropdown",function(e){var i=o(e.target).closest("["+r.attr_name()+"-content]"),a=i.find("a");return a.length>0&&"false"!==i.attr("aria-autoclose")&&r.close.call(r,o("["+r.attr_name()+"-content]")),e.target!==n&&!t.contains(n.documentElement,e.target)||o(e.target).closest("["+r.attr_name()+"]").length>0?void 0:!o(e.target).data("revealId")&&i.length>0&&(o(e.target).is("["+r.attr_name()+"-content]")||t.contains(i.first()[0],e.target))?void e.stopPropagation():void r.close.call(r,o("["+r.attr_name()+"-content]"))}).on("opened.fndtn.dropdown","["+r.attr_name()+"-content]",function(){r.settings.opened.call(this)}).on("closed.fndtn.dropdown","["+r.attr_name()+"-content]",function(){r.settings.closed.call(this)}),o(e).off(".dropdown").on("resize.fndtn.dropdown",r.throttle(function(){r.resize.call(r)},50)),this.resize()},close:function(e){var n=this;e.each(function(i){var r=t("["+n.attr_name()+"="+e[i].id+"]")||t("aria-controls="+e[i].id+"]");r.attr("aria-expanded","false"),n.S(this).hasClass(n.settings.active_class)&&(n.S(this).css(Foundation.rtl?"right":"left","-99999px").attr("aria-hidden","true").removeClass(n.settings.active_class).prev("["+n.attr_name()+"]").removeClass(n.settings.active_class).removeData("target"),n.S(this).trigger("closed.fndtn.dropdown",[e]))}),e.removeClass("f-open-"+this.attr_name(!0))},closeall:function(){var e=this;t.each(e.S(".f-open-"+this.attr_name(!0)),function(){e.close.call(e,e.S(this))})},open:function(t,e){this.css(t.addClass(this.settings.active_class),e),t.prev("["+this.attr_name()+"]").addClass(this.settings.active_class),t.data("target",e.get(0)).trigger("opened.fndtn.dropdown",[t,e]),t.attr("aria-hidden","false"),e.attr("aria-expanded","true"),t.focus(),t.addClass("f-open-"+this.attr_name(!0))},data_attr:function(){return this.namespace.length>0?this.namespace+"-"+this.name:this.name},toggle:function(t){if(!t.hasClass(this.settings.disabled_class)){var e=this.S("#"+t.data(this.data_attr()));0!==e.length&&(this.close.call(this,this.S("["+this.attr_name()+"-content]").not(e)),e.hasClass(this.settings.active_class)?(this.close.call(this,e),e.data("target")!==t.get(0)&&this.open.call(this,e,t)):this.open.call(this,e,t))}},resize:function(){var e=this.S("["+this.attr_name()+"-content].open"),n=t(e.data("target"));e.length&&n.length&&this.css(e,n)},css:function(t,e){var n=Math.max((e.width()-t.width())/2,8),i=e.data(this.attr_name(!0)+"-init")||this.settings,r=t.parent().css("overflow-y")||t.parent().css("overflow");if(this.clear_idx(),this.small()){var o=this.dirs.bottom.call(t,e,i);t.attr("style","").removeClass("drop-left drop-right drop-top").css({position:"absolute",width:"95%","max-width":"none",top:o.top}),t.css(Foundation.rtl?"right":"left",n)}else if("visible"!==r){var a=e[0].offsetTop+e[0].offsetHeight;t.attr("style","").css({position:"absolute",top:a}),t.css(Foundation.rtl?"right":"left",n)}else this.style(t,e,i);return t},style:function(e,n,i){var r=t.extend({position:"absolute"},this.dirs[i.align].call(e,n,i));e.attr("style","").css(r)},dirs:{_base:function(t){var i=this.offsetParent(),r=i.offset(),o=t.offset();o.top-=r.top,o.left-=r.left,o.missRight=!1,o.missTop=!1,o.missLeft=!1,o.leftRightFlag=!1;var a;a=n.getElementsByClassName("row")[0]?n.getElementsByClassName("row")[0].clientWidth:e.innerWidth;var s=(e.innerWidth-a)/2,l=a;return this.hasClass("mega")||(t.offset().top<=this.outerHeight()&&(o.missTop=!0,l=e.innerWidth-s,o.leftRightFlag=!0),t.offset().left+this.outerWidth()>t.offset().left+s&&t.offset().left-s>this.outerWidth()&&(o.missRight=!0,o.missLeft=!1),t.offset().left-this.outerWidth()<=0&&(o.missLeft=!0,o.missRight=!1)),o},top:function(t,e){var n=Foundation.libs.dropdown,i=n.dirs._base.call(this,t);return this.addClass("drop-top"),1==i.missTop&&(i.top=i.top+t.outerHeight()+this.outerHeight(),this.removeClass("drop-top")),1==i.missRight&&(i.left=i.left-this.outerWidth()+t.outerWidth()),(t.outerWidth()<this.outerWidth()||n.small()||this.hasClass(e.mega_menu))&&n.adjust_pip(this,t,e,i),Foundation.rtl?{left:i.left-this.outerWidth()+t.outerWidth(),top:i.top-this.outerHeight()}:{left:i.left,top:i.top-this.outerHeight()}},bottom:function(t,e){var n=Foundation.libs.dropdown,i=n.dirs._base.call(this,t);return 1==i.missRight&&(i.left=i.left-this.outerWidth()+t.outerWidth()),(t.outerWidth()<this.outerWidth()||n.small()||this.hasClass(e.mega_menu))&&n.adjust_pip(this,t,e,i),n.rtl?{left:i.left-this.outerWidth()+t.outerWidth(),top:i.top+t.outerHeight()}:{left:i.left,top:i.top+t.outerHeight()}},left:function(t,e){var n=Foundation.libs.dropdown.dirs._base.call(this,t);return this.addClass("drop-left"),1==n.missLeft&&(n.left=n.left+this.outerWidth(),n.top=n.top+t.outerHeight(),this.removeClass("drop-left")),{left:n.left-this.outerWidth(),top:n.top}},right:function(t,e){var n=Foundation.libs.dropdown.dirs._base.call(this,t);this.addClass("drop-right"),1==n.missRight?(n.left=n.left-this.outerWidth(),n.top=n.top+t.outerHeight(),this.removeClass("drop-right")):n.triggeredRight=!0;var i=Foundation.libs.dropdown;return(t.outerWidth()<this.outerWidth()||i.small()||this.hasClass(e.mega_menu))&&i.adjust_pip(this,t,e,n),{left:n.left+t.outerWidth(),top:n.top}}},adjust_pip:function(t,e,n,i){var r=Foundation.stylesheet,o=8;t.hasClass(n.mega_class)?o=i.left+e.outerWidth()/2-8:this.small()&&(o+=i.left-8),this.rule_idx=r.cssRules.length;var a=".f-dropdown.open:before",s=".f-dropdown.open:after",l="left: "+o+"px;",c="left: "+(o-1)+"px;";1==i.missRight&&(o=t.outerWidth()-23,a=".f-dropdown.open:before",s=".f-dropdown.open:after",l="left: "+o+"px;",c="left: "+(o-1)+"px;"),1==i.triggeredRight&&(a=".f-dropdown.open:before",s=".f-dropdown.open:after",l="left:-12px;",c="left:-14px;"),r.insertRule?(r.insertRule([a,"{",l,"}"].join(" "),this.rule_idx),r.insertRule([s,"{",c,"}"].join(" "),this.rule_idx+1)):(r.addRule(a,l,this.rule_idx),r.addRule(s,c,this.rule_idx+1))},clear_idx:function(){var t=Foundation.stylesheet;"undefined"!=typeof this.rule_idx&&(t.deleteRule(this.rule_idx),t.deleteRule(this.rule_idx),delete this.rule_idx)},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){this.S(this.scope).off(".fndtn.dropdown"),this.S("html, body").off(".fndtn.dropdown"),this.S(e).off(".fndtn.dropdown"),this.S("[data-dropdown-content]").off(".fndtn.dropdown")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.equalizer={name:"equalizer",version:"5.5.2",settings:{use_tallest:!0,before_height_change:t.noop,after_height_change:t.noop,equalize_on_stack:!1,act_on_hidden_el:!1},init:function(t,e,n){Foundation.inherit(this,"image_loaded"),this.bindings(e,n),this.reflow()},events:function(){this.S(e).off(".equalizer").on("resize.fndtn.equalizer",function(t){this.reflow()}.bind(this))},equalize:function(e){var n,i,r=!1,o=e.data("equalizer"),a=e.data(this.attr_name(!0)+"-init")||this.settings;if(n=e.find(a.act_on_hidden_el?o?"["+this.attr_name()+'-watch="'+o+'"]':"["+this.attr_name()+"-watch]":o?"["+this.attr_name()+'-watch="'+o+'"]:visible':"["+this.attr_name()+"-watch]:visible"),0!==n.length&&(a.before_height_change(),e.trigger("before-height-change.fndth.equalizer"),n.height("inherit"),a.equalize_on_stack!==!1||(i=n.first().offset().top,n.each(function(){return t(this).offset().top!==i?(r=!0,!1):void 0}),!r))){var s=n.map(function(){return t(this).outerHeight(!1)}).get();if(a.use_tallest){var l=Math.max.apply(null,s);n.css("height",l)}else{var c=Math.min.apply(null,s);n.css("height",c)}a.after_height_change(),e.trigger("after-height-change.fndtn.equalizer")}},reflow:function(){var e=this;this.S("["+this.attr_name()+"]",this.scope).each(function(){var n=t(this),i=n.data("equalizer-mq"),r=!0;i&&(i="is_"+i.replace(/-/g,"_"),Foundation.utils.hasOwnProperty(i)&&(r=!1)),e.image_loaded(e.S("img",this),function(){if(r||Foundation.utils[i]())e.equalize(n);else{var t=n.find("["+e.attr_name()+"-watch]:visible");t.css("height","auto")}})})}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.5.2",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen",small:Foundation.media_queries.small,"small-only":Foundation.media_queries["small-only"],medium:Foundation.media_queries.medium,"medium-only":Foundation.media_queries["medium-only"],large:Foundation.media_queries.large,
"large-only":Foundation.media_queries["large-only"],xlarge:Foundation.media_queries.xlarge,"xlarge-only":Foundation.media_queries["xlarge-only"],xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,n,i){if(null!==e&&/IMG/.test(e[0].nodeName)){var r=e[0].src;if(new RegExp(n,"i").test(r))return;return e.attr("src",n),i(e[0].src)}var o=e.data(this.data_attr+"-last-path"),a=this;return o!=n?/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(n)?(t(e).css("background-image","url("+n+")"),e.data("interchange-last-path",n),i(n)):t.get(n,function(t){e.html(t),e.data(a.data_attr+"-last-path",n),i()}):void 0}}},init:function(e,n,i){Foundation.inherit(this,"throttle random_str"),this.data_attr=this.set_data_attr(),t.extend(!0,this.settings,n,i),this.bindings(n,i),this.reflow()},get_media_hash:function(){var t="";for(var e in this.settings.named_queries)t+=matchMedia(this.settings.named_queries[e]).matches.toString();return t},events:function(){var n,i=this;return t(e).off(".interchange").on("resize.fndtn.interchange",i.throttle(function(){var t=i.get_media_hash();t!==n&&i.resize(),n=t},50)),this},resize:function(){var e=this.cache;if(!this.images_loaded||!this.nodes_loaded)return void setTimeout(t.proxy(this.resize,this),50);for(var n in e)if(e.hasOwnProperty(n)){var i=this.results(n,e[n]);i&&this.settings.directives[i.scenario[1]].call(this,i.el,i.scenario[0],function(t){if(arguments[0]instanceof Array)var e=arguments[0];else var e=Array.prototype.slice.call(arguments,0);return function(){t.el.trigger(t.scenario[1],e)}}(i))}},results:function(t,e){var n=e.length;if(n>0)for(var i=this.S("["+this.add_namespace("data-uuid")+'="'+t+'"]');n--;){var r,o=e[n][2];if(r=matchMedia(this.settings.named_queries.hasOwnProperty(o)?this.settings.named_queries[o]:o),r.matches)return{el:i,scenario:e[n]}}return!1},load:function(t,e){return("undefined"==typeof this["cached_"+t]||e)&&this["update_"+t](),this["cached_"+t]},update_images:function(){var t=this.S("img["+this.data_attr+"]"),e=t.length,n=e,i=0,r=this.data_attr;for(this.cache={},this.cached_images=[],this.images_loaded=0===e;n--;){if(i++,t[n]){var o=t[n].getAttribute(r)||"";o.length>0&&this.cached_images.push(t[n])}i===e&&(this.images_loaded=!0,this.enhance("images"))}return this},update_nodes:function(){var t=this.S("["+this.data_attr+"]").not("img"),e=t.length,n=e,i=0,r=this.data_attr;for(this.cached_nodes=[],this.nodes_loaded=0===e;n--;){i++;var o=t[n].getAttribute(r)||"";o.length>0&&this.cached_nodes.push(t[n]),i===e&&(this.nodes_loaded=!0,this.enhance("nodes"))}return this},enhance:function(n){for(var i=this["cached_"+n].length;i--;)this.object(t(this["cached_"+n][i]));return t(e).trigger("resize.fndtn.interchange")},convert_directive:function(t){var e=this.trim(t);return e.length>0?e:"replace"},parse_scenario:function(t){var e=t[0].match(/(.+),\s*(\w+)\s*$/),n=t[1].match(/(.*)\)/);if(e)var i=e[1],r=e[2];else var o=t[0].split(/,\s*$/),i=o[0],r="";return[this.trim(i),this.convert_directive(r),this.trim(n[1])]},object:function(t){var e=this.parse_data_attr(t),n=[],i=e.length;if(i>0)for(;i--;){var r=e[i].split(/,\s?\(/);if(r.length>1){var o=this.parse_scenario(r);n.push(o)}}return this.store(t,n)},store:function(t,e){var n=this.random_str(),i=t.data(this.add_namespace("uuid",!0));return this.cache[i]?this.cache[i]:(t.attr(this.add_namespace("data-uuid"),n),this.cache[n]=e)},trim:function(e){return"string"==typeof e?t.trim(e):e},set_data_attr:function(t){return t?this.namespace.length>0?this.namespace+"-"+this.settings.load_attr:this.settings.load_attr:this.namespace.length>0?"data-"+this.namespace+"-"+this.settings.load_attr:"data-"+this.settings.load_attr},parse_data_attr:function(t){for(var e=t.attr(this.attr_name()).split(/\[(.*?)\]/),n=e.length,i=[];n--;)e[n].replace(/[\W\d]+/,"").length>4&&i.push(e[n]);return i},reflow:function(){this.load("images",!0),this.load("nodes",!0)}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.joyride={name:"joyride",version:"5.5.2",defaults:{expose:!1,modal:!0,keyboard:!0,tip_location:"bottom",nub_position:"auto",scroll_speed:1500,scroll_animation:"linear",timer:0,start_timer_on_click:!0,start_offset:0,next_button:!0,prev_button:!0,tip_animation:"fade",pause_after:[],exposed:[],tip_animation_fade_speed:300,cookie_monster:!1,cookie_name:"joyride",cookie_domain:!1,cookie_expires:365,tip_container:"body",abort_on_close:!0,tip_location_patterns:{top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},post_ride_callback:function(){},post_step_callback:function(){},pre_step_callback:function(){},pre_ride_callback:function(){},post_expose_callback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">&times;</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',prev_button:'<a href="#" class="small button joyride-prev-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',expose_cover:'<div class="joyride-expose-cover"></div>'},expose_add_class:""},init:function(e,n,i){Foundation.inherit(this,"throttle random_str"),this.settings=this.settings||t.extend({},this.defaults,i||n),this.bindings(n,i)},go_next:function(){this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())},go_prev:function(){this.settings.$li.prev().length<1||(this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(null,!0),this.startTimer()):(this.hide(),this.show(null,!0)))},events:function(){var n=this;t(this.scope).off(".joyride").on("click.fndtn.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),this.go_next()}.bind(this)).on("click.fndtn.joyride",".joyride-prev-tip",function(t){t.preventDefault(),this.go_prev()}.bind(this)).on("click.fndtn.joyride",".joyride-close-tip",function(t){t.preventDefault(),this.end(this.settings.abort_on_close)}.bind(this)).on("keyup.fndtn.joyride",function(t){if(this.settings.keyboard&&this.settings.riding)switch(t.which){case 39:t.preventDefault(),this.go_next();break;case 37:t.preventDefault(),this.go_prev();break;case 27:t.preventDefault(),this.end(this.settings.abort_on_close)}}.bind(this)),t(e).off(".joyride").on("resize.fndtn.joyride",n.throttle(function(){if(t("["+n.attr_name()+"]").length>0&&n.settings.$next_tip&&n.settings.riding){if(n.settings.exposed.length>0){var e=t(n.settings.exposed);e.each(function(){var e=t(this);n.un_expose(e),n.expose(e)})}n.is_phone()?n.pos_phone():n.pos_default(!1)}},100))},start:function(){var e=this,n=t("["+this.attr_name()+"]",this.scope),i=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],r=i.length;!n.length>0||(this.settings.init||this.events(),this.settings=n.data(this.attr_name(!0)+"-init"),this.settings.$content_el=n,this.settings.$body=t(this.settings.tip_container),this.settings.body_offset=t(this.settings.tip_container).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.riding=!0,"function"!=typeof t.cookie&&(this.settings.cookie_monster=!1),(!this.settings.cookie_monster||this.settings.cookie_monster&&!t.cookie(this.settings.cookie_name))&&(this.settings.$tip_content.each(function(n){var o=t(this);this.settings=t.extend({},e.defaults,e.data_options(o));for(var a=r;a--;)e.settings[i[a]]=parseInt(e.settings[i[a]],10);e.create({$li:o,index:n})}),!this.settings.start_timer_on_click&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init")))},resume:function(){this.set_li(),this.show()},tip_template:function(e){var n,i;return e.tip_class=e.tip_class||"",n=t(this.settings.template.tip).addClass(e.tip_class),i=t.trim(t(e.li).html())+this.prev_button_text(e.prev_button_text,e.index)+this.button_text(e.button_text)+this.settings.template.link+this.timer_instance(e.index),n.append(t(this.settings.template.wrapper)),n.first().attr(this.add_namespace("data-index"),e.index),t(".joyride-content-wrapper",n).append(i),n[0]},timer_instance:function(e){var n;return n=0===e&&this.settings.start_timer_on_click&&this.settings.timer>0||0===this.settings.timer?"":t(this.settings.template.timer)[0].outerHTML},button_text:function(e){return this.settings.tip_settings.next_button?(e=t.trim(e)||"Next",e=t(this.settings.template.button).append(e)[0].outerHTML):e="",e},prev_button_text:function(e,n){return this.settings.tip_settings.prev_button?(e=t.trim(e)||"Previous",e=0==n?t(this.settings.template.prev_button).append(e).addClass("disabled")[0].outerHTML:t(this.settings.template.prev_button).append(e)[0].outerHTML):e="",e},create:function(e){this.settings.tip_settings=t.extend({},this.settings,this.data_options(e.$li));var n=e.$li.attr(this.add_namespace("data-button"))||e.$li.attr(this.add_namespace("data-text")),i=e.$li.attr(this.add_namespace("data-button-prev"))||e.$li.attr(this.add_namespace("data-prev-text")),r=e.$li.attr("class"),o=t(this.tip_template({tip_class:r,index:e.index,button_text:n,prev_button_text:i,li:e.$li}));t(this.settings.tip_container).append(o)},show:function(e,n){var r=null;if(this.settings.$li===i||-1===t.inArray(this.settings.$li.index(),this.settings.pause_after))if(this.settings.paused?this.settings.paused=!1:this.set_li(e,n),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0){if(e&&(this.settings.pre_ride_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.pre_step_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tip_settings=t.extend({},this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tip_settings.tip_location_pattern=this.settings.tip_location_patterns[this.settings.tip_settings.tip_location],!/body/i.test(this.settings.$target.selector)){var o=t(".joyride-modal-bg");/pop/i.test(this.settings.tipAnimation)?o.hide():o.fadeOut(this.settings.tipAnimationFadeSpeed),this.scroll_to()}this.is_phone()?this.pos_phone(!0):this.pos_default(!0),r=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tip_animation)?(r.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),setTimeout(function(){r.animate({width:r.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tip_animation)&&(r.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(),setTimeout(function(){r.animate({width:r.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed)),this.settings.$current_tip=this.settings.$next_tip}else this.settings.$li&&this.settings.$target.length<1?this.show(e,n):this.end();else this.settings.paused=!0},is_phone:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||t(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(t.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(t,e){t?(this.settings.$li=this.settings.$tip_content.eq(this.settings.start_offset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=e?this.settings.$li.prev():this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=t(".joyride-tip-guide").eq(this.settings.$li.index()),this.settings.$next_tip.data("closed","")},set_target:function(){var e=this.settings.$li.attr(this.add_namespace("data-class")),i=this.settings.$li.attr(this.add_namespace("data-id")),r=function(){return i?t(n.getElementById(i)):e?t("."+e).first():t("body")};this.settings.$target=r()},scroll_to:function(){var n,i;n=t(e).height()/2,i=Math.ceil(this.settings.$target.offset().top-n+this.settings.$next_tip.outerHeight()),0!=i&&t("html, body").stop().animate({scrollTop:i},this.settings.scroll_speed,"swing")},paused:function(){return-1===t.inArray(this.settings.$li.index()+1,this.settings.pause_after)},restart:function(){this.hide(),this.settings.$li=i,this.show("init")},pos_default:function(t){var e=this.settings.$next_tip.find(".joyride-nub"),n=Math.ceil(e.outerWidth()/2),i=Math.ceil(e.outerHeight()/2),r=t||!1;if(r&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector))this.settings.$li.length&&this.pos_modal(e);else{var o=this.settings.tip_settings.tipAdjustmentY?parseInt(this.settings.tip_settings.tipAdjustmentY):0,a=this.settings.tip_settings.tipAdjustmentX?parseInt(this.settings.tip_settings.tipAdjustmentX):0;this.bottom()?(this.settings.$next_tip.css(this.rtl?{top:this.settings.$target.offset().top+i+this.settings.$target.outerHeight()+o,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()+a}:{top:this.settings.$target.offset().top+i+this.settings.$target.outerHeight()+o,left:this.settings.$target.offset().left+a}),this.nub_position(e,this.settings.tip_settings.nub_position,"top")):this.top()?(this.settings.$next_tip.css(this.rtl?{top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-i+o,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}:{top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-i+o,left:this.settings.$target.offset().left+a}),this.nub_position(e,this.settings.tip_settings.nub_position,"bottom")):this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top+o,left:this.settings.$target.outerWidth()+this.settings.$target.offset().left+n+a}),this.nub_position(e,this.settings.tip_settings.nub_position,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top+o,left:this.settings.$target.offset().left-this.settings.$next_tip.outerWidth()-n+a}),this.nub_position(e,this.settings.tip_settings.nub_position,"right")),!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tip_settings.tip_location_pattern.length&&(e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tip_settings.tip_location=this.settings.tip_settings.tip_location_pattern[this.settings.attempts],this.settings.attempts++,this.pos_default())}r&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(e){var n=this.settings.$next_tip.outerHeight(),i=(this.settings.$next_tip.offset(),this.settings.$target.outerHeight()),r=t(".joyride-nub",this.settings.$next_tip),o=Math.ceil(r.outerHeight()/2),a=e||!1;r.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),a&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(r):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-n-o}),r.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+i+o}),r.addClass("top")),a&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(t){this.center(),t.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var e=t(".joyride-modal-bg");if(e.length<1){var e=t(this.settings.template.modal);e.appendTo("body")}/pop/i.test(this.settings.tip_animation)?e.show():e.fadeIn(this.settings.tip_animation_fade_speed)}},expose:function(){var n,i,r,o,a,s="expose-"+this.random_str(6);if(arguments.length>0&&arguments[0]instanceof t)r=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;r=this.settings.$target}return r.length<1?(e.console&&console.error("element not valid",r),!1):(n=t(this.settings.template.expose),this.settings.$body.append(n),n.css({top:r.offset().top,left:r.offset().left,width:r.outerWidth(!0),height:r.outerHeight(!0)}),i=t(this.settings.template.expose_cover),o={zIndex:r.css("z-index"),position:r.css("position")},a=null==r.attr("class")?"":r.attr("class"),r.css("z-index",parseInt(n.css("z-index"))+1),"static"==o.position&&r.css("position","relative"),r.data("expose-css",o),r.data("orig-class",a),r.attr("class",a+" "+this.settings.expose_add_class),i.css({top:r.offset().top,left:r.offset().left,width:r.outerWidth(!0),height:r.outerHeight(!0)}),this.settings.modal&&this.show_modal(),this.settings.$body.append(i),n.addClass(s),i.addClass(s),r.data("expose",s),this.settings.post_expose_callback(this.settings.$li.index(),this.settings.$next_tip,r),void this.add_exposed(r))},un_expose:function(){var n,i,r,o,a,s=!1;if(arguments.length>0&&arguments[0]instanceof t)i=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}return i.length<1?(e.console&&console.error("element not valid",i),!1):(n=i.data("expose"),r=t("."+n),arguments.length>1&&(s=arguments[1]),s===!0?t(".joyride-expose-wrapper,.joyride-expose-cover").remove():r.remove(),o=i.data("expose-css"),"auto"==o.zIndex?i.css("z-index",""):i.css("z-index",o.zIndex),o.position!=i.css("position")&&("static"==o.position?i.css("position",""):i.css("position",o.position)),a=i.data("orig-class"),i.attr("class",a),i.removeData("orig-classes"),i.removeData("expose"),i.removeData("expose-z-index"),void this.remove_exposed(i))},add_exposed:function(e){this.settings.exposed=this.settings.exposed||[],e instanceof t||"object"==typeof e?this.settings.exposed.push(e[0]):"string"==typeof e&&this.settings.exposed.push(e)},remove_exposed:function(e){var n,i;for(e instanceof t?n=e[0]:"string"==typeof e&&(n=e),this.settings.exposed=this.settings.exposed||[],i=this.settings.exposed.length;i--;)if(this.settings.exposed[i]==n)return void this.settings.exposed.splice(i,1)},center:function(){var n=t(e);return this.settings.$next_tip.css({top:(n.height()-this.settings.$next_tip.outerHeight())/2+n.scrollTop(),left:(n.width()-this.settings.$next_tip.outerWidth())/2+n.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(this.settings.tip_settings.tip_location)},top:function(){return/top/i.test(this.settings.tip_settings.tip_location)},right:function(){return/right/i.test(this.settings.tip_settings.tip_location)},left:function(){return/left/i.test(this.settings.tip_settings.tip_location)},corners:function(n){var i=t(e),r=i.height()/2,o=Math.ceil(this.settings.$target.offset().top-r+this.settings.$next_tip.outerHeight()),a=i.width()+i.scrollLeft(),s=i.height()+o,l=i.height()+i.scrollTop(),c=i.scrollTop();return c>o&&(c=0>o?0:o),s>l&&(l=s),[n.offset().top<c,a<n.offset().left+n.outerWidth(),l<n.offset().top+n.outerHeight(),i.scrollLeft()>n.offset().left]},visible:function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0},nub_position:function(t,e,n){t.addClass("auto"===e?n:e)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(e){this.settings.cookie_monster&&t.cookie(this.settings.cookie_name,"ridden",{expires:this.settings.cookie_expires,domain:this.settings.cookie_domain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),t(this.scope).off("keyup.joyride"),this.settings.$next_tip.data("closed",!0),this.settings.riding=!1,t(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),("undefined"==typeof e||e===!1)&&(this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip),this.settings.post_ride_callback(this.settings.$li.index(),this.settings.$current_tip)),t(".joyride-tip-guide").remove()},off:function(){t(this.scope).off(".joyride"),t(e).off(".joyride"),t(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),t(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs["magellan-expedition"]={name:"magellan-expedition",version:"5.5.2",settings:{active_class:"active",threshold:0,destination_threshold:20,throttle_delay:30,fixed_top:0,offset_by_height:!0,duration:700,easing:"swing"},init:function(t,e,n){Foundation.inherit(this,"throttle"),this.bindings(e,n)},events:function(){var e=this,n=e.S,i=e.settings;e.set_expedition_position(),n(e.scope).off(".magellan").on("click.fndtn.magellan","["+e.add_namespace("data-magellan-arrival")+"] a[href*=#]",function(n){var i=this.hostname===location.hostname||!this.hostname,r=e.filterPathname(location.pathname)===e.filterPathname(this.pathname),o=this.hash.replace(/(:|\.|\/)/g,"\\$1"),a=this;if(i&&r&&o){n.preventDefault();var s=t(this).closest("["+e.attr_name()+"]"),l=s.data("magellan-expedition-init"),c=this.hash.split("#").join(""),u=t('a[name="'+c+'"]');0===u.length&&(u=t("#"+c));var d=u.offset().top-l.destination_threshold+1;l.offset_by_height&&(d-=s.outerHeight()),t("html, body").stop().animate({scrollTop:d},l.duration,l.easing,function(){history.pushState?history.pushState(null,null,a.pathname+"#"+c):location.hash=a.pathname+"#"+c})}}).on("scroll.fndtn.magellan",e.throttle(this.check_for_arrivals.bind(this),i.throttle_delay))},check_for_arrivals:function(){var t=this;t.update_arrivals(),t.update_expedition_positions()},set_expedition_position:function(){var e=this;t("["+this.attr_name()+"=fixed]",e.scope).each(function(n,i){var r,o,a=t(this),s=a.data("magellan-expedition-init"),l=a.attr("styles");a.attr("style",""),r=a.offset().top+s.threshold,o=parseInt(a.data("magellan-fixed-top")),isNaN(o)||(e.settings.fixed_top=o),a.data(e.data_attr("magellan-top-offset"),r),a.attr("style",l)})},update_expedition_positions:function(){var n=this,i=t(e).scrollTop();t("["+this.attr_name()+"=fixed]",n.scope).each(function(){var e=t(this),r=e.data("magellan-expedition-init"),o=e.attr("style"),a=e.data("magellan-top-offset");if(i+n.settings.fixed_top>=a){var s=e.prev("["+n.add_namespace("data-magellan-expedition-clone")+"]");0===s.length&&(s=e.clone(),s.removeAttr(n.attr_name()),s.attr(n.add_namespace("data-magellan-expedition-clone"),""),e.before(s)),e.css({position:"fixed",top:r.fixed_top}).addClass("fixed")}else e.prev("["+n.add_namespace("data-magellan-expedition-clone")+"]").remove(),e.attr("style",o).css("position","").css("top","").removeClass("fixed")})},update_arrivals:function(){var n=this,i=t(e).scrollTop();t("["+this.attr_name()+"]",n.scope).each(function(){var e=t(this),r=e.data(n.attr_name(!0)+"-init"),o=n.offsets(e,i),a=e.find("["+n.add_namespace("data-magellan-arrival")+"]"),s=!1;o.each(function(t,i){if(i.viewport_offset>=i.top_offset){var o=e.find("["+n.add_namespace("data-magellan-arrival")+"]");return o.not(i.arrival).removeClass(r.active_class),i.arrival.addClass(r.active_class),s=!0,!0}}),s||a.removeClass(r.active_class)})},offsets:function(e,n){var i=this,r=e.data(i.attr_name(!0)+"-init"),o=n;return e.find("["+i.add_namespace("data-magellan-arrival")+"]").map(function(n,a){var s=t(this).data(i.data_attr("magellan-arrival")),l=t("["+i.add_namespace("data-magellan-destination")+"="+s+"]");if(l.length>0){var c=l.offset().top-r.destination_threshold;return r.offset_by_height&&(c-=e.outerHeight()),c=Math.floor(c),{destination:l,arrival:t(this),top_offset:c,viewport_offset:o}}}).sort(function(t,e){return t.top_offset<e.top_offset?-1:t.top_offset>e.top_offset?1:0})},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},off:function(){this.S(this.scope).off(".magellan"),this.S(e).off(".magellan")},filterPathname:function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},reflow:function(){var e=this;t("["+e.add_namespace("data-magellan-expedition-clone")+"]",e.scope).remove()}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.5.2",settings:{open_method:"move",close_on_click:!1},init:function(t,e,n){this.bindings(e,n)},events:function(){var e=this,n=e.S,i="",r="",o="";"move"===this.settings.open_method?(i="move-",r="right",o="left"):"overlap_single"===this.settings.open_method?(i="offcanvas-overlap-",r="right",o="left"):"overlap"===this.settings.open_method&&(i="offcanvas-overlap"),n(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(o){e.click_toggle_class(o,i+r),"overlap"!==e.settings.open_method&&n(".left-submenu").removeClass(i+r),t(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".left-off-canvas-menu a",function(o){var a=e.get_settings(o),s=n(this).parent();!a.close_on_click||s.hasClass("has-submenu")||s.hasClass("back")?n(this).parent().hasClass("has-submenu")?(o.preventDefault(),n(this).siblings(".left-submenu").toggleClass(i+r)):s.hasClass("back")&&(o.preventDefault(),s.parent().removeClass(i+r)):(e.hide.call(e,i+r,e.get_wrapper(o)),s.parent().removeClass(i+r)),t(".left-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(r){e.click_toggle_class(r,i+o),"overlap"!==e.settings.open_method&&n(".right-submenu").removeClass(i+o),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".right-off-canvas-menu a",function(r){var a=e.get_settings(r),s=n(this).parent();!a.close_on_click||s.hasClass("has-submenu")||s.hasClass("back")?n(this).parent().hasClass("has-submenu")?(r.preventDefault(),n(this).siblings(".right-submenu").toggleClass(i+o)):s.hasClass("back")&&(r.preventDefault(),s.parent().removeClass(i+o)):(e.hide.call(e,i+o,e.get_wrapper(r)),s.parent().removeClass(i+o)),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(a){e.click_remove_class(a,i+o),n(".right-submenu").removeClass(i+o),r&&(e.click_remove_class(a,i+r),n(".left-submenu").removeClass(i+o)),t(".right-off-canvas-toggle").attr("aria-expanded","true")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(n){e.click_remove_class(n,i+o),t(".left-off-canvas-toggle").attr("aria-expanded","false"),r&&(e.click_remove_class(n,i+r),t(".right-off-canvas-toggle").attr("aria-expanded","false"))})},toggle:function(t,e){e=e||this.get_wrapper(),e.is("."+t)?this.hide(t,e):this.show(t,e)},show:function(t,e){e=e||this.get_wrapper(),e.trigger("open.fndtn.offcanvas"),e.addClass(t)},hide:function(t,e){e=e||this.get_wrapper(),e.trigger("close.fndtn.offcanvas"),e.removeClass(t)},click_toggle_class:function(t,e){t.preventDefault();var n=this.get_wrapper(t);this.toggle(e,n)},click_remove_class:function(t,e){t.preventDefault();var n=this.get_wrapper(t);this.hide(e,n)},get_settings:function(t){var e=this.S(t.target).closest("["+this.attr_name()+"]");return e.data(this.attr_name(!0)+"-init")||this.settings},get_wrapper:function(t){var e=this.S(t?t.target:this.scope).closest(".off-canvas-wrap");return 0===e.length&&(e=this.S(".off-canvas-wrap")),e},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";var r=function(){},o=function(r,o){if(r.hasClass(o.slides_container_class))return this;var c,u,d,p,f,h,m=this,g=r,v=0,$=!1;m.slides=function(){return g.children(o.slide_selector)},m.slides().first().addClass(o.active_slide_class),m.update_slide_number=function(e){o.slide_number&&(u.find("span:first").text(parseInt(e)+1),u.find("span:last").text(m.slides().length)),o.bullets&&(d.children().removeClass(o.bullets_active_class),t(d.children().get(e)).addClass(o.bullets_active_class))},m.update_active_link=function(e){var n=t('[data-orbit-link="'+m.slides().eq(e).attr("data-orbit-slide")+'"]');n.siblings().removeClass(o.bullets_active_class),n.addClass(o.bullets_active_class)},m.build_markup=function(){g.wrap('<div class="'+o.container_class+'"></div>'),c=g.parent(),g.addClass(o.slides_container_class),o.stack_on_small&&c.addClass(o.stack_on_small_class),o.navigation_arrows&&(c.append(t('<a href="#"><span></span></a>').addClass(o.prev_class)),c.append(t('<a href="#"><span></span></a>').addClass(o.next_class))),o.timer&&(p=t("<div>").addClass(o.timer_container_class),p.append("<span>"),p.append(t("<div>").addClass(o.timer_progress_class)),p.addClass(o.timer_paused_class),c.append(p)),o.slide_number&&(u=t("<div>").addClass(o.slide_number_class),u.append("<span></span> "+o.slide_number_text+" <span></span>"),c.append(u)),o.bullets&&(d=t("<ol>").addClass(o.bullets_container_class),c.append(d),d.wrap('<div class="orbit-bullets-container"></div>'),m.slides().each(function(e,n){var i=t("<li>").attr("data-orbit-slide",e).on("click",m.link_bullet);d.append(i)}))},m._goto=function(e,n){if(e===v)return!1;"object"==typeof h&&h.restart();var i=m.slides(),r="next";if($=!0,v>e&&(r="prev"),e>=i.length){if(!o.circular)return!1;e=0}else if(0>e){if(!o.circular)return!1;e=i.length-1}var a=t(i.get(v)),s=t(i.get(e));a.css("zIndex",2),a.removeClass(o.active_slide_class),s.css("zIndex",4).addClass(o.active_slide_class),g.trigger("before-slide-change.fndtn.orbit"),o.before_slide_change(),m.update_active_link(e);var l=function(){var t=function(){v=e,$=!1,n===!0&&(h=m.create_timer(),h.start()),m.update_slide_number(v),g.trigger("after-slide-change.fndtn.orbit",[{slide_number:v,total_slides:i.length}]),o.after_slide_change(v,i.length)};g.outerHeight()!=s.outerHeight()&&o.variable_height?g.animate({height:s.outerHeight()},250,"linear",t):t()};if(1===i.length)return l(),!1;var c=function(){"next"===r&&f.next(a,s,l),"prev"===r&&f.prev(a,s,l)};s.outerHeight()>g.outerHeight()&&o.variable_height?g.animate({height:s.outerHeight()},250,"linear",c):c()},m.next=function(t){t.stopImmediatePropagation(),t.preventDefault(),m._goto(v+1)},m.prev=function(t){t.stopImmediatePropagation(),t.preventDefault(),m._goto(v-1)},m.link_custom=function(e){e.preventDefault();var n=t(this).attr("data-orbit-link");if("string"==typeof n&&""!=(n=t.trim(n))){var i=c.find("[data-orbit-slide="+n+"]");-1!=i.index()&&m._goto(i.index())}},m.link_bullet=function(e){var n=t(this).attr("data-orbit-slide");if("string"==typeof n&&""!=(n=t.trim(n)))if(isNaN(parseInt(n))){var i=c.find("[data-orbit-slide="+n+"]");-1!=i.index()&&m._goto(i.index()+1)}else m._goto(parseInt(n))},m.timer_callback=function(){m._goto(v+1,!0)},m.compute_dimensions=function(){var e=t(m.slides().get(v)),n=e.outerHeight();o.variable_height||m.slides().each(function(){t(this).outerHeight()>n&&(n=t(this).outerHeight())}),g.height(n)},m.create_timer=function(){var t=new a(c.find("."+o.timer_container_class),o,m.timer_callback);return t},m.stop_timer=function(){"object"==typeof h&&h.stop()},m.toggle_timer=function(){
var t=c.find("."+o.timer_container_class);t.hasClass(o.timer_paused_class)?("undefined"==typeof h&&(h=m.create_timer()),h.start()):"object"==typeof h&&h.stop()},m.init=function(){m.build_markup(),o.timer&&(h=m.create_timer(),Foundation.utils.image_loaded(this.slides().children("img"),h.start)),f=new l(o,g),"slide"===o.animation&&(f=new s(o,g)),c.on("click","."+o.next_class,m.next),c.on("click","."+o.prev_class,m.prev),o.next_on_click&&c.on("click","."+o.slides_container_class+" [data-orbit-slide]",m.link_bullet),c.on("click",m.toggle_timer),o.swipe&&c.on("touchstart.fndtn.orbit",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:i};c.data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.orbit",function(t){if(t.touches||(t=t.originalEvent),!(t.touches.length>1||t.scale&&1!==t.scale)){var e=c.data("swipe-transition");if("undefined"==typeof e&&(e={}),e.delta_x=t.touches[0].pageX-e.start_page_x,"undefined"==typeof e.is_scrolling&&(e.is_scrolling=!!(e.is_scrolling||Math.abs(e.delta_x)<Math.abs(t.touches[0].pageY-e.start_page_y))),!e.is_scrolling&&!e.active){t.preventDefault();var n=e.delta_x<0?v+1:v-1;e.active=!0,m._goto(n)}}}).on("touchend.fndtn.orbit",function(t){c.data("swipe-transition",{}),t.stopPropagation()}),c.on("mouseenter.fndtn.orbit",function(t){o.timer&&o.pause_on_hover&&m.stop_timer()}).on("mouseleave.fndtn.orbit",function(t){o.timer&&o.resume_on_mouseout&&h.start()}),t(n).on("click","[data-orbit-link]",m.link_custom),t(e).on("load resize",m.compute_dimensions),Foundation.utils.image_loaded(this.slides().children("img"),m.compute_dimensions),Foundation.utils.image_loaded(this.slides().children("img"),function(){c.prev("."+o.preloader_class).css("display","none"),m.update_slide_number(0),m.update_active_link(0),g.trigger("ready.fndtn.orbit")})},m.init()},a=function(t,e,n){var i,r,o=this,a=e.timer_speed,s=t.find("."+e.timer_progress_class),l=-1;this.update_progress=function(t){var e=s.clone();e.attr("style",""),e.css("width",t+"%"),s.replaceWith(e),s=e},this.restart=function(){clearTimeout(r),t.addClass(e.timer_paused_class),l=-1,o.update_progress(0)},this.start=function(){return t.hasClass(e.timer_paused_class)?(l=-1===l?a:l,t.removeClass(e.timer_paused_class),i=(new Date).getTime(),s.animate({width:"100%"},l,"linear"),r=setTimeout(function(){o.restart(),n()},l),void t.trigger("timer-started.fndtn.orbit")):!0},this.stop=function(){if(t.hasClass(e.timer_paused_class))return!0;clearTimeout(r),t.addClass(e.timer_paused_class);var n=(new Date).getTime();l-=n-i;var s=100-l/a*100;o.update_progress(s),t.trigger("timer-stopped.fndtn.orbit")}},s=function(e,n){var i=e.animation_speed,r=1===t("html[dir=rtl]").length,o=r?"marginRight":"marginLeft",a={};a[o]="0%",this.next=function(t,e,n){t.animate({marginLeft:"-100%"},i),e.animate(a,i,function(){t.css(o,"100%"),n()})},this.prev=function(t,e,n){t.animate({marginLeft:"100%"},i),e.css(o,"-100%"),e.animate(a,i,function(){t.css(o,"100%"),n()})}},l=function(e,n){var i=e.animation_speed;1===t("html[dir=rtl]").length,this.next=function(t,e,n){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},i,"linear",function(){t.css("margin","100%"),n()})},this.prev=function(t,e,n){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},i,"linear",function(){t.css("margin","100%"),n()})}};Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"5.5.2",settings:{animation:"slide",timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,next_on_click:!0,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",preloader_class:"preloader",slide_selector:"*",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,circular:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:r,after_slide_change:r},init:function(t,e,n){this.bindings(e,n)},events:function(t){var e=new o(this.S(t),this.S(t).data("orbit-init"));this.S(t).data(this.name+"-instance",e)},reflow:function(){var t=this;if(t.S(t.scope).is("[data-orbit]")){var e=t.S(t.scope),n=e.data(t.name+"-instance");n.compute_dimensions()}else t.S("[data-orbit]",t.scope).each(function(e,n){var i=t.S(n),r=(t.data_options(i),i.data(t.name+"-instance"));r.compute_dimensions()})}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";function r(t){var e=/fade/i.test(t),n=/pop/i.test(t);return{animate:e||n,pop:n,fade:e}}Foundation.libs.reveal={name:"reveal",version:"5.5.2",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",multiple_opened:!1,bg_class:"reveal-modal-bg",root_element:"body",open:function(){},opened:function(){},close:function(){},closed:function(){},on_ajax_error:t.noop,bg:t(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(e,n,i){t.extend(!0,this.settings,n,i),this.bindings(n,i)},events:function(t){var e=this,i=e.S;return i(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]:not([disabled])",function(t){if(t.preventDefault(),!e.locked){var n=i(this),r=n.data(e.data_attr("reveal-ajax")),o=n.data(e.data_attr("reveal-replace-content"));if(e.locked=!0,"undefined"==typeof r)e.open.call(e,n);else{var a=r===!0?n.attr("href"):r;e.open.call(e,n,{url:a},{replaceContentSel:o})}}}),i(n).on("click.fndtn.reveal",this.close_targets(),function(t){if(t.preventDefault(),!e.locked){var n=i("["+e.attr_name()+"].open").data(e.attr_name(!0)+"-init")||e.settings,r=i(t.target)[0]===i("."+n.bg_class)[0];if(r){if(!n.close_on_background_click)return;t.stopPropagation()}e.locked=!0,e.close.call(e,r?i("["+e.attr_name()+"].open:not(.toback)"):i(this).closest("["+e.attr_name()+"]"))}}),i("["+e.attr_name()+"]",this.scope).length>0?i(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):i(this.scope).on("open.fndtn.reveal","["+e.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+e.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+e.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+e.attr_name()+"]",this.close_video),!0},key_up_on:function(t){var e=this;return e.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",function(t){var n=e.S("["+e.attr_name()+"].open"),i=n.data(e.attr_name(!0)+"-init")||e.settings;i&&27===t.which&&i.close_on_esc&&!e.locked&&e.close.call(e,n)}),!0},key_up_off:function(t){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(n,i){var r,o=this;n?"undefined"!=typeof n.selector?r=o.S("#"+n.data(o.data_attr("reveal-id"))).first():(r=o.S(this.scope),i=n):r=o.S(this.scope);var a=r.data(o.attr_name(!0)+"-init");if(a=a||this.settings,r.hasClass("open")&&n.attr("data-reveal-id")==r.attr("id"))return o.close(r);if(!r.hasClass("open")){var s=o.S("["+o.attr_name()+"].open");if("undefined"==typeof r.data("css-top")&&r.data("css-top",parseInt(r.css("top"),10)).data("offset",this.cache_offset(r)),r.attr("tabindex","0").attr("aria-hidden","false"),this.key_up_on(r),r.on("open.fndtn.reveal",function(t){"fndtn.reveal"!==t.namespace}),r.on("open.fndtn.reveal").trigger("open.fndtn.reveal"),s.length<1&&this.toggle_bg(r,!0),"string"==typeof i&&(i={url:i}),"undefined"!=typeof i&&i.url){var l="undefined"!=typeof i.success?i.success:null;t.extend(i,{success:function(e,n,i){if(t.isFunction(l)){var c=l(e,n,i);"string"==typeof c&&(e=c)}"undefined"!=typeof options&&"undefined"!=typeof options.replaceContentSel?r.find(options.replaceContentSel).html(e):r.html(e),o.S(r).foundation("section","reflow"),o.S(r).children().foundation(),s.length>0&&(a.multiple_opened?o.to_back(s):o.hide(s,a.css.close)),o.show(r,a.css.open)}}),a.on_ajax_error!==t.noop&&t.extend(i,{error:a.on_ajax_error}),t.ajax(i)}else s.length>0&&(a.multiple_opened?o.to_back(s):o.hide(s,a.css.close)),this.show(r,a.css.open)}o.S(e).trigger("resize")},close:function(e){var e=e&&e.length?e:this.S(this.scope),n=this.S("["+this.attr_name()+"].open"),i=e.data(this.attr_name(!0)+"-init")||this.settings,r=this;n.length>0&&(e.removeAttr("tabindex","0").attr("aria-hidden","true"),this.locked=!0,this.key_up_off(e),e.trigger("close.fndtn.reveal"),(i.multiple_opened&&1===n.length||!i.multiple_opened||e.length>1)&&(r.toggle_bg(e,!1),r.to_front(e)),i.multiple_opened?(r.hide(e,i.css.close,i),r.to_front(t(t.makeArray(n).reverse()[1]))):r.hide(n,i.css.close,i))},close_targets:function(){var t="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?t+", ."+this.settings.bg_class:t},toggle_bg:function(e,n){0===this.S("."+this.settings.bg_class).length&&(this.settings.bg=t("<div />",{"class":this.settings.bg_class}).appendTo("body").hide());var r=this.settings.bg.filter(":visible").length>0;n!=r&&((n==i?r:!n)?this.hide(this.settings.bg):this.show(this.settings.bg))},show:function(n,i){if(i){var o=n.data(this.attr_name(!0)+"-init")||this.settings,a=o.root_element,s=this;if(0===n.parent(a).length){var l=n.wrap('<div style="display: none;" />').parent();n.on("closed.fndtn.reveal.wrapped",function(){n.detach().appendTo(l),n.unwrap().unbind("closed.fndtn.reveal.wrapped")}),n.detach().appendTo(a)}var c=r(o.animation);if(c.animate||(this.locked=!1),c.pop){i.top=t(e).scrollTop()-n.data("offset")+"px";var u={top:t(e).scrollTop()+n.data("css-top")+"px",opacity:1};return setTimeout(function(){return n.css(i).animate(u,o.animation_speed,"linear",function(){s.locked=!1,n.trigger("opened.fndtn.reveal")}).addClass("open")},o.animation_speed/2)}if(c.fade){i.top=t(e).scrollTop()+n.data("css-top")+"px";var u={opacity:1};return setTimeout(function(){return n.css(i).animate(u,o.animation_speed,"linear",function(){s.locked=!1,n.trigger("opened.fndtn.reveal")}).addClass("open")},o.animation_speed/2)}return n.css(i).show().css({opacity:1}).addClass("open").trigger("opened.fndtn.reveal")}var o=this.settings;return r(o.animation).fade?n.fadeIn(o.animation_speed/2):(this.locked=!1,n.show())},to_back:function(t){t.addClass("toback")},to_front:function(t){t.removeClass("toback")},hide:function(n,i){if(i){var o=n.data(this.attr_name(!0)+"-init"),a=this;o=o||this.settings;var s=r(o.animation);if(s.animate||(this.locked=!1),s.pop){var l={top:-t(e).scrollTop()-n.data("offset")+"px",opacity:0};return setTimeout(function(){return n.animate(l,o.animation_speed,"linear",function(){a.locked=!1,n.css(i).trigger("closed.fndtn.reveal")}).removeClass("open")},o.animation_speed/2)}if(s.fade){var l={opacity:0};return setTimeout(function(){return n.animate(l,o.animation_speed,"linear",function(){a.locked=!1,n.css(i).trigger("closed.fndtn.reveal")}).removeClass("open")},o.animation_speed/2)}return n.hide().css(i).removeClass("open").trigger("closed.fndtn.reveal")}var o=this.settings;return r(o.animation).fade?n.fadeOut(o.animation_speed/2):n.hide()},close_video:function(e){var n=t(".flex-video",e.target),i=t("iframe",n);i.length>0&&(i.attr("data-src",i[0].src),i.attr("src",i.attr("src")),n.hide())},open_video:function(e){var n=t(".flex-video",e.target),r=n.find("iframe");if(r.length>0){var o=r.attr("data-src");if("string"==typeof o)r[0].src=r.attr("data-src");else{var a=r[0].src;r[0].src=i,r[0].src=a}n.show()}},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},cache_offset:function(t){var e=t.show().height()+parseInt(t.css("top"),10)+t.scrollY;return t.hide(),e},off:function(){t(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.slider={name:"slider",version:"5.5.2",settings:{start:0,end:100,step:1,precision:null,initial:null,display_selector:"",vertical:!1,trigger_input_change:!1,on_change:function(){}},cache:{},init:function(t,e,n){Foundation.inherit(this,"throttle"),this.bindings(e,n),this.reflow()},events:function(){var n=this;t(this.scope).off(".slider").on("mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider","["+n.attr_name()+"]:not(.disabled, [disabled]) .range-slider-handle",function(e){n.cache.active||(e.preventDefault(),n.set_active_slider(t(e.target)))}).on("mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider",function(i){if(n.cache.active)if(i.preventDefault(),t.data(n.cache.active[0],"settings").vertical){var r=0;i.pageY||(r=e.scrollY),n.calculate_position(n.cache.active,n.get_cursor_position(i,"y")+r)}else n.calculate_position(n.cache.active,n.get_cursor_position(i,"x"))}).on("mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider",function(t){n.remove_active_slider()}).on("change.fndtn.slider",function(t){n.settings.on_change()}),n.S(e).on("resize.fndtn.slider",n.throttle(function(t){n.reflow()},300)),this.S("["+this.attr_name()+"]").each(function(){var e=t(this),i=e.children(".range-slider-handle")[0],r=n.initialize_settings(i);""!=r.display_selector&&t(r.display_selector).each(function(){this.hasOwnProperty("value")&&t(this).change(function(){e.foundation("slider","set_value",t(this).val())})})})},get_cursor_position:function(t,e){var n,i="page"+e.toUpperCase(),r="client"+e.toUpperCase();return"undefined"!=typeof t[i]?n=t[i]:"undefined"!=typeof t.originalEvent[r]?n=t.originalEvent[r]:t.originalEvent.touches&&t.originalEvent.touches[0]&&"undefined"!=typeof t.originalEvent.touches[0][r]?n=t.originalEvent.touches[0][r]:t.currentPoint&&"undefined"!=typeof t.currentPoint[e]&&(n=t.currentPoint[e]),n},set_active_slider:function(t){this.cache.active=t},remove_active_slider:function(){this.cache.active=null},calculate_position:function(e,n){var i=this,r=t.data(e[0],"settings"),o=(t.data(e[0],"handle_l"),t.data(e[0],"handle_o"),t.data(e[0],"bar_l")),a=t.data(e[0],"bar_o");requestAnimationFrame(function(){var t;t=Foundation.rtl&&!r.vertical?i.limit_to((a+o-n)/o,0,1):i.limit_to((n-a)/o,0,1),t=r.vertical?1-t:t;var s=i.normalized_value(t,r.start,r.end,r.step,r.precision);i.set_ui(e,s)})},set_ui:function(e,n){var i=t.data(e[0],"settings"),r=t.data(e[0],"handle_l"),o=t.data(e[0],"bar_l"),a=this.normalized_percentage(n,i.start,i.end),s=a*(o-r)-1,l=100*a,c=e.parent(),u=e.parent().children("input[type=hidden]");Foundation.rtl&&!i.vertical&&(s=-s),s=i.vertical?-s+o-r+1:s,this.set_translate(e,s,i.vertical),i.vertical?e.siblings(".range-slider-active-segment").css("height",l+"%"):e.siblings(".range-slider-active-segment").css("width",l+"%"),c.attr(this.attr_name(),n).trigger("change.fndtn.slider"),u.val(n),i.trigger_input_change&&u.trigger("change.fndtn.slider"),e[0].hasAttribute("aria-valuemin")||e.attr({"aria-valuemin":i.start,"aria-valuemax":i.end}),e.attr("aria-valuenow",n),""!=i.display_selector&&t(i.display_selector).each(function(){this.hasAttribute("value")?t(this).val(n):t(this).text(n)})},normalized_percentage:function(t,e,n){return Math.min(1,(t-e)/(n-e))},normalized_value:function(t,e,n,i,r){var o=n-e,a=t*o,s=(a-a%i)/i,l=a%i,c=l>=.5*i?i:0;return(s*i+c+e).toFixed(r)},set_translate:function(e,n,i){i?t(e).css("-webkit-transform","translateY("+n+"px)").css("-moz-transform","translateY("+n+"px)").css("-ms-transform","translateY("+n+"px)").css("-o-transform","translateY("+n+"px)").css("transform","translateY("+n+"px)"):t(e).css("-webkit-transform","translateX("+n+"px)").css("-moz-transform","translateX("+n+"px)").css("-ms-transform","translateX("+n+"px)").css("-o-transform","translateX("+n+"px)").css("transform","translateX("+n+"px)")},limit_to:function(t,e,n){return Math.min(Math.max(t,e),n)},initialize_settings:function(e){var n,i=t.extend({},this.settings,this.data_options(t(e).parent()));return null===i.precision&&(n=(""+i.step).match(/\.([\d]*)/),i.precision=n&&n[1]?n[1].length:0),i.vertical?(t.data(e,"bar_o",t(e).parent().offset().top),t.data(e,"bar_l",t(e).parent().outerHeight()),t.data(e,"handle_o",t(e).offset().top),t.data(e,"handle_l",t(e).outerHeight())):(t.data(e,"bar_o",t(e).parent().offset().left),t.data(e,"bar_l",t(e).parent().outerWidth()),t.data(e,"handle_o",t(e).offset().left),t.data(e,"handle_l",t(e).outerWidth())),t.data(e,"bar",t(e).parent()),t.data(e,"settings",i)},set_initial_position:function(e){var n=t.data(e.children(".range-slider-handle")[0],"settings"),i="number"!=typeof n.initial||isNaN(n.initial)?Math.floor(.5*(n.end-n.start)/n.step)*n.step+n.start:n.initial,r=e.children(".range-slider-handle");this.set_ui(r,i)},set_value:function(e){var n=this;t("["+n.attr_name()+"]",this.scope).each(function(){t(this).attr(n.attr_name(),e)}),t(this.scope).attr(n.attr_name())&&t(this.scope).attr(n.attr_name(),e),n.reflow()},reflow:function(){var e=this;e.S("["+this.attr_name()+"]").each(function(){var n=t(this).children(".range-slider-handle")[0],i=t(this).attr(e.attr_name());e.initialize_settings(n),i?e.set_ui(t(n),parseFloat(i)):e.set_initial_position(t(this))})}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.tab={name:"tab",version:"5.5.2",settings:{active_class:"active",callback:function(){},deep_linking:!1,scroll_to_content:!0,is_hover:!1},default_tab_hashes:[],init:function(t,n,i){var r=this,o=this.S;o("["+this.attr_name()+"] > .active > a",this.scope).each(function(){r.default_tab_hashes.push(this.hash)}),r.entry_location=e.location.href,this.bindings(n,i),this.handle_location_hash_change()},events:function(){var t=this,n=this.S,i=function(e,i){var r=n(i).closest("["+t.attr_name()+"]").data(t.attr_name(!0)+"-init");(!r.is_hover||Modernizr.touch)&&(e.preventDefault(),e.stopPropagation(),t.toggle_active_tab(n(i).parent()))};n(this.scope).off(".tab").on("keydown.fndtn.tab","["+this.attr_name()+"] > * > a",function(t){var e=this,n=t.keyCode||t.which;9==n&&(t.preventDefault(),i(t,e))}).on("click.fndtn.tab","["+this.attr_name()+"] > * > a",function(t){var e=this;i(t,e)}).on("mouseenter.fndtn.tab","["+this.attr_name()+"] > * > a",function(e){var i=n(this).closest("["+t.attr_name()+"]").data(t.attr_name(!0)+"-init");i.is_hover&&t.toggle_active_tab(n(this).parent())}),n(e).on("hashchange.fndtn.tab",function(e){e.preventDefault(),t.handle_location_hash_change()})},handle_location_hash_change:function(){var e=this,n=this.S;n("["+this.attr_name()+"]",this.scope).each(function(){var r=n(this).data(e.attr_name(!0)+"-init");if(r.deep_linking){var o;if(o=r.scroll_to_content?e.scope.location.hash:e.scope.location.hash.replace("fndtn-",""),""!=o){var a=n(o);if(a.hasClass("content")&&a.parent().hasClass("tabs-content"))e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href="+o+"]").parent());else{var s=a.closest(".content").attr("id");s!=i&&e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href=#"+s+"]").parent(),o)}}else for(var l=0;l<e.default_tab_hashes.length;l++)e.toggle_active_tab(t("["+e.attr_name()+"] > * > a[href="+e.default_tab_hashes[l]+"]").parent())}})},toggle_active_tab:function(r,o){var a=this,s=a.S,l=r.closest("["+this.attr_name()+"]"),c=r.find("a"),u=r.children("a").first(),d="#"+u.attr("href").split("#")[1],p=s(d),f=r.siblings(),h=l.data(this.attr_name(!0)+"-init"),m=function(e){var i,r=t(this),o=t(this).parents("li").prev().children('[role="tab"]'),a=t(this).parents("li").next().children('[role="tab"]');switch(e.keyCode){case 37:i=o;break;case 39:i=a;break;default:i=!1}i.length&&(r.attr({tabindex:"-1","aria-selected":null}),i.attr({tabindex:"0","aria-selected":!0}).focus()),t('[role="tabpanel"]').attr("aria-hidden","true"),t("#"+t(n.activeElement).attr("href").substring(1)).attr("aria-hidden",null)},g=function(t){var n=e.location.href===a.entry_location,i=h.scroll_to_content?a.default_tab_hashes[0]:n?e.location.hash:"fndtn-"+a.default_tab_hashes[0].replace("#","");n&&t===i||(e.location.hash=t)};u.data("tab-content")&&(d="#"+u.data("tab-content").split("#")[1],p=s(d)),h.deep_linking&&(h.scroll_to_content?(g(o||d),o==i||o==d?r.parent()[0].scrollIntoView():s(d)[0].scrollIntoView()):g(o!=i?"fndtn-"+o.replace("#",""):"fndtn-"+d.replace("#",""))),r.addClass(h.active_class).triggerHandler("opened"),c.attr({"aria-selected":"true",tabindex:0}),f.removeClass(h.active_class),f.find("a").attr({"aria-selected":"false",tabindex:-1}),p.siblings().removeClass(h.active_class).attr({"aria-hidden":"true",tabindex:-1}),p.addClass(h.active_class).attr("aria-hidden","false").removeAttr("tabindex"),h.callback(r),p.triggerHandler("toggled",[p]),l.triggerHandler("toggled",[r]),c.off("keydown").on("keydown",m)},data_attr:function(t){return this.namespace.length>0?this.namespace+"-"+t:t},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.5.2",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,hover_delay:200,show_on:"all",tip_template:function(t,e){return'<span data-selector="'+t+'" id="'+t+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'" role="tooltip">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(t,e,n){Foundation.inherit(this,"random_str"),this.bindings(e,n)},should_show:function(e,n){var i=t.extend({},this.settings,this.data_options(e));return"all"===i.show_on?!0:this.small()&&"small"===i.show_on?!0:this.medium()&&"medium"===i.show_on?!0:this.large()&&"large"===i.show_on?!0:!1},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},events:function(e){function n(t,e,n){t.timer||(n?(t.timer=null,r.showTip(e)):t.timer=setTimeout(function(){t.timer=null,r.showTip(e)}.bind(t),r.settings.hover_delay))}function i(t,e){t.timer&&(clearTimeout(t.timer),t.timer=null),r.hide(e)}var r=this,o=r.S;r.create(this.S(e)),t(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"]",function(e){var a=o(this),s=t.extend({},r.settings,r.data_options(a)),l=!1;if(Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type)&&o(e.target).is("a"))return!1;if(/mouse/i.test(e.type)&&r.ie_touch(e))return!1;if(a.hasClass("open"))Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type)&&e.preventDefault(),r.hide(a);else{if(s.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type))return;if(!s.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(e.type)&&(e.preventDefault(),o(s.tooltip_class+".open").hide(),l=!0,t(".open["+r.attr_name()+"]").length>0)){var c=o(t(".open["+r.attr_name()+"]")[0]);r.hide(c)}/enter|over/i.test(e.type)?n(this,a):"mouseout"===e.type||"mouseleave"===e.type?i(this,a):n(this,a,!0)}}).on("mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"].open",function(e){return/mouse/i.test(e.type)&&r.ie_touch(e)?!1:void(("touch"!=t(this).data("tooltip-open-event-type")||"mouseleave"!=e.type)&&("mouse"==t(this).data("tooltip-open-event-type")&&/MSPointerDown|touchstart/i.test(e.type)?r.convert_to_touch(t(this)):i(this,t(this))))}).on("DOMNodeRemoved DOMAttrModified","["+this.attr_name()+"]:not(a)",function(t){i(this,o(this))})},ie_touch:function(t){return!1},showTip:function(t){var e=this.getTip(t);return this.should_show(t,e)?this.show(t):void 0},getTip:function(e){var n=this.selector(e),i=t.extend({},this.settings,this.data_options(e)),r=null;return n&&(r=this.S('span[data-selector="'+n+'"]'+i.tooltip_class)),"object"==typeof r?r:!1},selector:function(t){var e=t.attr(this.attr_name())||t.attr("data-selector");return"string"!=typeof e&&(e=this.random_str(6),t.attr("data-selector",e).attr("aria-describedby",e)),e},create:function(n){var i=this,r=t.extend({},this.settings,this.data_options(n)),o=this.settings.tip_template;"string"==typeof r.tip_template&&e.hasOwnProperty(r.tip_template)&&(o=e[r.tip_template]);var a=t(o(this.selector(n),t("<div></div>").html(n.attr("title")).html())),s=this.inheritable_classes(n);a.addClass(s).appendTo(r.append_to),Modernizr.touch&&(a.append('<span class="tap-to-close">'+r.touch_close_text+"</span>"),a.on("touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip",function(t){i.hide(n)})),n.removeAttr("title").attr("title","")},reposition:function(e,n,i){var r,o,a,s,l;if(n.css("visibility","hidden").show(),r=e.data("width"),o=n.children(".nub"),a=o.outerHeight(),s=o.outerHeight(),n.css(this.small()?{width:"100%"}:{width:r?r:"auto"}),l=function(t,e,n,i,r,o){return t.css({top:e?e:"auto",bottom:i?i:"auto",left:r?r:"auto",right:n?n:"auto"}).end()},l(n,e.offset().top+e.outerHeight()+10,"auto","auto",e.offset().left),this.small())l(n,e.offset().top+e.outerHeight()+10,"auto","auto",12.5,t(this.scope).width()),n.addClass("tip-override"),l(o,-a,"auto","auto",e.offset().left);else{var c=e.offset().left;Foundation.rtl&&(o.addClass("rtl"),c=e.offset().left+e.outerWidth()-n.outerWidth()),l(n,e.offset().top+e.outerHeight()+10,"auto","auto",c),o.attr("style")&&o.removeAttr("style"),n.removeClass("tip-override"),i&&i.indexOf("tip-top")>-1?(Foundation.rtl&&o.addClass("rtl"),l(n,e.offset().top-n.outerHeight(),"auto","auto",c).removeClass("tip-override")):i&&i.indexOf("tip-left")>-1?(l(n,e.offset().top+e.outerHeight()/2-n.outerHeight()/2,"auto","auto",e.offset().left-n.outerWidth()-a).removeClass("tip-override"),o.removeClass("rtl")):i&&i.indexOf("tip-right")>-1&&(l(n,e.offset().top+e.outerHeight()/2-n.outerHeight()/2,"auto","auto",e.offset().left+e.outerWidth()+a).removeClass("tip-override"),o.removeClass("rtl"))}n.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},inheritable_classes:function(e){var n=t.extend({},this.settings,this.data_options(e)),i=["tip-top","tip-left","tip-bottom","tip-right","radius","round"].concat(n.additional_inheritable_classes),r=e.attr("class"),o=r?t.map(r.split(" "),function(e,n){return-1!==t.inArray(e,i)?e:void 0}).join(" "):"";return t.trim(o)},convert_to_touch:function(e){var n=this,i=n.getTip(e),r=t.extend({},n.settings,n.data_options(e));0===i.find(".tap-to-close").length&&(i.append('<span class="tap-to-close">'+r.touch_close_text+"</span>"),i.on("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose",function(t){n.hide(e)})),e.data("tooltip-open-event-type","touch")},show:function(t){var e=this.getTip(t);"touch"==t.data("tooltip-open-event-type")&&this.convert_to_touch(t),this.reposition(t,e,t.attr("class")),t.addClass("open"),e.fadeIn(150)},hide:function(t){var e=this.getTip(t);e.fadeOut(150,function(){e.find(".tap-to-close").remove(),e.off("click.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose"),t.removeClass("open")})},off:function(){var e=this;this.S(this.scope).off(".fndtn.tooltip"),this.S(this.settings.tooltip_class).each(function(n){t("["+e.attr_name()+"]").eq(n).attr("title",t(this).text())}).remove()},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.5.2",settings:{index:0,start_offset:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",mobile_show_parent_link:!0,is_hover:!0,scrolltop:!0,sticky_on:"all",dropdown_autoclose:!0},init:function(e,n,i){Foundation.inherit(this,"add_custom_rule register_media throttle");var r=this;r.register_media("topbar","foundation-mq-topbar"),this.bindings(n,i),r.S("["+this.attr_name()+"]",this.scope).each(function(){var e=t(this),n=e.data(r.attr_name(!0)+"-init");r.S("section, .top-bar-section",this),e.data("index",0);var i=e.parent();i.hasClass("fixed")||r.is_sticky(e,i,n)?(r.settings.sticky_class=n.sticky_class,r.settings.sticky_topbar=e,e.data("height",i.outerHeight()),e.data("stickyoffset",i.offset().top)):e.data("height",e.outerHeight()),n.assembled||r.assemble(e),n.is_hover?r.S(".has-dropdown",e).addClass("not-click"):r.S(".has-dropdown",e).removeClass("not-click"),r.add_custom_rule(".f-topbar-fixed { padding-top: "+e.data("height")+"px }"),i.hasClass("fixed")&&r.S("body").addClass("f-topbar-fixed")})},is_sticky:function(t,e,n){var i=e.hasClass(n.sticky_class),r=matchMedia(Foundation.media_queries.small).matches,o=matchMedia(Foundation.media_queries.medium).matches,a=matchMedia(Foundation.media_queries.large).matches;return i&&"all"===n.sticky_on?!0:i&&this.small()&&-1!==n.sticky_on.indexOf("small")&&r&&!o&&!a?!0:i&&this.medium()&&-1!==n.sticky_on.indexOf("medium")&&r&&o&&!a?!0:i&&this.large()&&-1!==n.sticky_on.indexOf("large")&&r&&o&&a?!0:!1},toggle:function(n){var i,r=this;i=n?r.S(n).closest("["+this.attr_name()+"]"):r.S("["+this.attr_name()+"]");var o=i.data(this.attr_name(!0)+"-init"),a=r.S("section, .top-bar-section",i);r.breakpoint()&&(r.rtl?(a.css({right:"0%"}),t(">.name",a).css({right:"100%"})):(a.css({left:"0%"}),t(">.name",a).css({left:"100%"})),r.S("li.moved",a).removeClass("moved"),i.data("index",0),i.toggleClass("expanded").css("height","")),o.scrolltop?i.hasClass("expanded")?i.parent().hasClass("fixed")&&(o.scrolltop?(i.parent().removeClass("fixed"),i.addClass("fixed"),r.S("body").removeClass("f-topbar-fixed"),e.scrollTo(0,0)):i.parent().removeClass("expanded")):i.hasClass("fixed")&&(i.parent().addClass("fixed"),i.removeClass("fixed"),r.S("body").addClass("f-topbar-fixed")):(r.is_sticky(i,i.parent(),o)&&i.parent().addClass("fixed"),i.parent().hasClass("fixed")&&(i.hasClass("expanded")?(i.addClass("fixed"),i.parent().addClass("expanded"),r.S("body").addClass("f-topbar-fixed")):(i.removeClass("fixed"),i.parent().removeClass("expanded"),r.update_sticky_positioning())))},timer:null,events:function(n){var i=this,r=this.S;r(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",function(t){t.preventDefault(),i.toggle(this)}).on("click.fndtn.topbar contextmenu.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',function(e){var n=t(this).closest("li"),r=n.closest("["+i.attr_name()+"]"),o=r.data(i.attr_name(!0)+"-init");if(o.dropdown_autoclose&&o.is_hover){var a=t(this).closest(".hover");a.removeClass("hover")}!i.breakpoint()||n.hasClass("back")||n.hasClass("has-dropdown")||i.toggle()}).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",function(e){var n=r(this),o=r(e.target),a=n.closest("["+i.attr_name()+"]"),s=a.data(i.attr_name(!0)+"-init");return o.data("revealId")?void i.toggle():void(i.breakpoint()||(!s.is_hover||Modernizr.touch)&&(e.stopImmediatePropagation(),n.hasClass("hover")?(n.removeClass("hover").find("li").removeClass("hover"),n.parents("li.hover").removeClass("hover")):(n.addClass("hover"),t(n).siblings().removeClass("hover"),"A"===o[0].nodeName&&o.parent().hasClass("has-dropdown")&&e.preventDefault())))}).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",function(t){if(i.breakpoint()){t.preventDefault();var e=r(this),n=e.closest("["+i.attr_name()+"]"),o=n.find("section, .top-bar-section"),a=(e.next(".dropdown").outerHeight(),e.closest("li"));n.data("index",n.data("index")+1),a.addClass("moved"),i.rtl?(o.css({right:-(100*n.data("index"))+"%"}),o.find(">.name").css({right:100*n.data("index")+"%"})):(o.css({left:-(100*n.data("index"))+"%"}),o.find(">.name").css({
left:100*n.data("index")+"%"})),n.css("height",e.siblings("ul").outerHeight(!0)+n.data("height"))}}),r(e).off(".topbar").on("resize.fndtn.topbar",i.throttle(function(){i.resize.call(i)},50)).trigger("resize.fndtn.topbar").load(function(){r(this).trigger("resize.fndtn.topbar")}),r("body").off(".topbar").on("click.fndtn.topbar",function(t){var e=r(t.target).closest("li").closest("li.hover");e.length>0||r("["+i.attr_name()+"] li.hover").removeClass("hover")}),r(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",function(t){t.preventDefault();var e=r(this),n=e.closest("["+i.attr_name()+"]"),o=n.find("section, .top-bar-section"),a=(n.data(i.attr_name(!0)+"-init"),e.closest("li.moved")),s=a.parent();n.data("index",n.data("index")-1),i.rtl?(o.css({right:-(100*n.data("index"))+"%"}),o.find(">.name").css({right:100*n.data("index")+"%"})):(o.css({left:-(100*n.data("index"))+"%"}),o.find(">.name").css({left:100*n.data("index")+"%"})),0===n.data("index")?n.css("height",""):n.css("height",s.outerHeight(!0)+n.data("height")),setTimeout(function(){a.removeClass("moved")},300)}),r(this.scope).find(".dropdown a").focus(function(){t(this).parents(".has-dropdown").addClass("hover")}).blur(function(){t(this).parents(".has-dropdown").removeClass("hover")})},resize:function(){var t=this;t.S("["+this.attr_name()+"]").each(function(){var e,i=t.S(this),r=i.data(t.attr_name(!0)+"-init"),o=i.parent("."+t.settings.sticky_class);if(!t.breakpoint()){var a=i.hasClass("expanded");i.css("height","").removeClass("expanded").find("li").removeClass("hover"),a&&t.toggle(i)}t.is_sticky(i,o,r)&&(o.hasClass("fixed")?(o.removeClass("fixed"),e=o.offset().top,t.S(n.body).hasClass("f-topbar-fixed")&&(e-=i.data("height")),i.data("stickyoffset",e),o.addClass("fixed")):(e=o.offset().top,i.data("stickyoffset",e)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},small:function(){return matchMedia(Foundation.media_queries.small).matches},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},assemble:function(e){var n=this,i=e.data(this.attr_name(!0)+"-init"),r=n.S("section, .top-bar-section",e);r.detach(),n.S(".has-dropdown>a",r).each(function(){var e,r=n.S(this),o=r.siblings(".dropdown"),a=r.attr("href");o.find(".title.back").length||(e=t(1==i.mobile_show_parent_link&&a?'<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link hide-for-medium-up"><a class="parent-link js-generated" href="'+a+'">'+r.html()+"</a></li>":'<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>'),t("h5>a",e).html(1==i.custom_back_text?i.back_text:"&laquo; "+r.html()),o.prepend(e))}),r.appendTo(e),this.sticky(),this.assembled(e)},assembled:function(e){e.data(this.attr_name(!0),t.extend({},e.data(this.attr_name(!0)),{assembled:!0}))},height:function(e){var n=0,i=this;return t("> li",e).each(function(){n+=i.S(this).outerHeight(!0)}),n},sticky:function(){var t=this;this.S(e).on("scroll",function(){t.update_sticky_positioning()})},update_sticky_positioning:function(){var t="."+this.settings.sticky_class,n=this.S(e),i=this;if(i.settings.sticky_topbar&&i.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)){var r=this.settings.sticky_topbar.data("stickyoffset")+this.settings.start_offset;i.S(t).hasClass("expanded")||(n.scrollTop()>r?i.S(t).hasClass("fixed")||(i.S(t).addClass("fixed"),i.S("body").addClass("f-topbar-fixed")):n.scrollTop()<=r&&i.S(t).hasClass("fixed")&&(i.S(t).removeClass("fixed"),i.S("body").removeClass("f-topbar-fixed")))}},off:function(){this.S(this.scope).off(".fndtn.topbar"),this.S(e).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,window,window.document),function(t,e,n,i){"use strict";Foundation.libs.alert={name:"alert",version:"5.5.2",settings:{callback:function(){}},init:function(t,e,n){this.bindings(e,n)},events:function(){var e=this,n=this.S;t(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] .close",function(t){var i=n(this).closest("["+e.attr_name()+"]"),r=i.data(e.attr_name(!0)+"-init")||e.settings;t.preventDefault(),Modernizr.csstransitions?(i.addClass("alert-close"),i.on("transitionend webkitTransitionEnd oTransitionEnd",function(t){n(this).trigger("close.fndtn.alert").remove(),r.callback()})):i.fadeOut(300,function(){n(this).trigger("close.fndtn.alert").remove(),r.callback()})})},reflow:function(){}}}(jQuery,window,window.document),angular.module("mm.foundation",["mm.foundation.accordion","mm.foundation.alert","mm.foundation.bindHtml","mm.foundation.buttons","mm.foundation.position","mm.foundation.mediaQueries","mm.foundation.dropdownToggle","mm.foundation.interchange","mm.foundation.transition","mm.foundation.modal","mm.foundation.offcanvas","mm.foundation.pagination","mm.foundation.tooltip","mm.foundation.popover","mm.foundation.progressbar","mm.foundation.rating","mm.foundation.tabs","mm.foundation.topbar","mm.foundation.tour","mm.foundation.typeahead"]),angular.module("mm.foundation.accordion",[]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(i){var r=angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers;r&&angular.forEach(this.groups,function(t){t!==i&&(t.isOpen=!1)})},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",function(){e.removeGroup(t)})},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",["$parse",function(t){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(e,n,i,r){var o,a;r.addGroup(e),e.isOpen=!1,i.isOpen&&(o=t(i.isOpen),a=o.assign,e.$parent.$watch(o,function(t){e.isOpen=!!t})),e.$watch("isOpen",function(t){t&&r.closeOthers(e),a&&a(e.$parent,t)})}}}]).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",compile:function(t,e,n){return function(t,e,i,r){r.setHeading(n(t,function(){}))}}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(t,e,n,i){t.$watch(function(){return i[n.accordionTransclude]},function(t){t&&(e.html(""),e.append(t))})}}}),angular.module("mm.foundation.alert",[]).controller("AlertController",["$scope","$attrs",function(t,e){t.closeable="close"in e}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"=",close:"&"}}}),angular.module("mm.foundation.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(t,e,n){e.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),t.$watch(n.bindHtmlUnsafe,function(t){e.html(t||"")})}}),angular.module("mm.foundation.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(t){this.activeClass=t.activeClass,this.toggleEvent=t.toggleEvent}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){var r=i[0],o=i[1];o.$render=function(){e.toggleClass(r.activeClass,angular.equals(o.$modelValue,t.$eval(n.btnRadio)))},e.bind(r.toggleEvent,function(){e.hasClass(r.activeClass)||t.$apply(function(){o.$setViewValue(t.$eval(n.btnRadio)),o.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){function r(){return a(n.btnCheckboxTrue,!0)}function o(){return a(n.btnCheckboxFalse,!1)}function a(e,n){var i=t.$eval(e);return angular.isDefined(i)?i:n}var s=i[0],l=i[1];l.$render=function(){e.toggleClass(s.activeClass,angular.equals(l.$modelValue,r()))},e.bind(s.toggleEvent,function(){t.$apply(function(){l.$setViewValue(e.hasClass(s.activeClass)?o():r()),l.$render()})})}}}),angular.module("mm.foundation.position",[]).factory("$position",["$document","$window",function(t,e){function n(t,n){return t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n]}function i(t){return"static"===(n(t,"position")||"static")}var r=function(e){for(var n=t[0],r=e.offsetParent||n;r&&r!==n&&i(r);)r=r.offsetParent;return r||n};return{position:function(e){var n=this.offset(e),i={top:0,left:0},o=r(e[0]);o!=t[0]&&(i=this.offset(angular.element(o)),i.top+=o.clientTop-o.scrollTop,i.left+=o.clientLeft-o.scrollLeft);var a=e[0].getBoundingClientRect();return{width:a.width||e.prop("offsetWidth"),height:a.height||e.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(e.pageYOffset||t[0].body.scrollTop||t[0].documentElement.scrollTop),left:i.left+(e.pageXOffset||t[0].body.scrollLeft||t[0].documentElement.scrollLeft)}}}}]),angular.module("mm.foundation.mediaQueries",[]).factory("matchMedia",["$document","$window",function(t,e){return e.matchMedia||function(t){var e,n=t.documentElement,i=n.firstElementChild||n.firstChild,r=t.createElement("body"),o=t.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(o),function(t){return o.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(r,i),e=42===o.offsetWidth,n.removeChild(r),{matches:e,media:t}}}(t[0])}]).factory("mediaQueries",["$document","matchMedia",function(t,e){var n=angular.element(t[0].querySelector("head"));n.append('<meta class="foundation-mq-topbar" />'),n.append('<meta class="foundation-mq-small" />'),n.append('<meta class="foundation-mq-medium" />'),n.append('<meta class="foundation-mq-large" />');var i=/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,r={topbar:getComputedStyle(n[0].querySelector("meta.foundation-mq-topbar")).fontFamily.replace(i,""),small:getComputedStyle(n[0].querySelector("meta.foundation-mq-small")).fontFamily.replace(i,""),medium:getComputedStyle(n[0].querySelector("meta.foundation-mq-medium")).fontFamily.replace(i,""),large:getComputedStyle(n[0].querySelector("meta.foundation-mq-large")).fontFamily.replace(i,"")};return{topbarBreakpoint:function(){return!e(r.topbar).matches},small:function(){return e(r.small).matches},medium:function(){return e(r.medium).matches},large:function(){return e(r.large).matches}}}]),angular.module("mm.foundation.dropdownToggle",["mm.foundation.position","mm.foundation.mediaQueries"]).controller("DropdownToggleController",["$scope","$attrs","mediaQueries",function(t,e,n){this.small=function(){return n.small()&&!n.medium()}}]).directive("dropdownToggle",["$document","$window","$location","$position",function(t,e,n,i){var r=null,o=angular.noop;return{restrict:"CA",scope:{dropdownToggle:"@"},controller:"DropdownToggleController",link:function(n,a,s,l){var c=a.parent(),u=angular.element(t[0].querySelector(n.dropdownToggle)),d=function(){return c.hasClass("has-dropdown")},p=function(s){u=angular.element(t[0].querySelector(n.dropdownToggle));var p=a===r;if(s.preventDefault(),s.stopPropagation(),r&&o(),!p&&!a.hasClass("disabled")&&!a.prop("disabled")){u.css("display","block");var f=i.offset(a),h=i.offset(angular.element(u[0].offsetParent)),m=u.prop("offsetWidth"),g={top:f.top-h.top+f.height+"px"};if(l.small())g.left=Math.max((h.width-m)/2,8)+"px",g.position="absolute",g.width="95%",g["max-width"]="none";else{var v=Math.round(f.left-h.left),$=e.innerWidth-m-8;v>$&&(v=$,u.removeClass("left").addClass("right")),g.left=v+"px",g.position=null,g["max-width"]=null}u.css(g),a.addClass("expanded"),d()&&c.addClass("hover"),r=a,o=function(){t.off("click",o),u.css("display","none"),a.removeClass("expanded"),o=angular.noop,r=null,c.hasClass("hover")&&c.removeClass("hover")},t.on("click",o)}};u&&u.css("display","none"),n.$watch("$location.path",function(){o()}),a.on("click",p),a.on("$destroy",function(){a.off("click",p)})}}}]),angular.module("mm.foundation.interchange",["mm.foundation.mediaQueries"]).factory("interchangeQueries",["$document",function(t){for(var e,n,i={"default":"only screen",landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},r="foundation-mq-",o=["small","medium","large","xlarge","xxlarge"],a=angular.element(t[0].querySelector("head")),s=0;s<o.length;s++)a.append('<meta class="'+r+o[s]+'" />'),e=getComputedStyle(a[0].querySelector("meta."+r+o[s])),n=e.fontFamily.replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),i[o[s]]=n;return i}]).factory("interchangeQueriesManager",["interchangeQueries",function(t){return{add:function(e,n){return e&&n&&angular.isString(e)&&angular.isString(n)&&!t[e]?(t[e]=n,!0):!1}}}]).factory("interchangeTools",["$window","matchMedia","interchangeQueries",function(t,e,n){var i=function(t){for(var e,n=t.split(/\[(.*?)\]/),i=n.length,r=/^(.+)\,\ \((.+)\)$/,o={};i--;)n[i].replace(/[\W\d]+/,"").length>4&&(e=r.exec(n[i]),e&&3===e.length&&(o[e[2]]=e[1]));return o},r=function(t){var i,r,o;for(i in t)if(r=n[i]||i,o=e(r),o.matches)return t[i]};return{parseAttribute:i,findCurrentMediaFile:r}}]).directive("interchange",["$window","$rootScope","interchangeTools",function(t,e,n){var i=/[A-Za-z0-9-_]+\.(jpg|jpeg|png|gif|bmp|tiff)\ *,/i;return{restrict:"A",scope:!0,priority:450,compile:function(r,o){return"DIV"!==r[0].nodeName||i.test(o.interchange)||r.html('<ng-include src="currentFile"></ng-include>'),{pre:function(){},post:function(i,r,o){var a,s;switch(s=r&&r[0]&&r[0].nodeName,i.fileMap=n.parseAttribute(o.interchange),s){case"DIV":a=n.findCurrentMediaFile(i.fileMap),i.type=/[A-Za-z0-9-_]+\.(jpg|jpeg|png|gif|bmp|tiff)$/i.test(a)?"background":"include";break;case"IMG":i.type="image";break;default:return}var l=function(t){var o=n.findCurrentMediaFile(i.fileMap);if(!i.currentFile||i.currentFile!==o){switch(i.currentFile=o,i.type){case"image":r.attr("src",i.currentFile);break;case"background":r.css("background-image","url("+i.currentFile+")")}e.$emit("replace",r,i),t&&i.$apply()}};l(),t.addEventListener("resize",l),i.$on("$destroy",function(){t.removeEventListener("resize",l)})}}}}}]),angular.module("mm.foundation.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(t,e,n){function i(t){for(var e in t)if(void 0!==o.style[e])return t[e]}var r=function(i,o,a){a=a||{};var s=t.defer(),l=r[a.animation?"animationEndEventName":"transitionEndEventName"],c=function(){n.$apply(function(){i.unbind(l,c),s.resolve(i)})};return l&&i.bind(l,c),e(function(){angular.isString(o)?i.addClass(o):angular.isFunction(o)?o(i):angular.isObject(o)&&i.css(o),l||s.resolve(i)}),s.promise.cancel=function(){l&&i.unbind(l,c),s.reject("Transition cancelled")},s.promise},o=document.createElement("trans"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return r.transitionEndEventName=i(a),r.animationEndEventName=i(s),r}]),angular.module("mm.foundation.modal",["mm.foundation.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n<t.length;n++)if(e==t[n].key)return t[n]},keys:function(){for(var e=[],n=0;n<t.length;n++)e.push(t[n].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var n=-1,i=0;i<t.length;i++)if(e==t[i].key){n=i;break}return t.splice(n,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}).directive("modalBackdrop",["$modalStack","$timeout",function(t,e){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(n){n.animate=!1,e(function(){n.animate=!0}),n.close=function(e){var n=t.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(n.key,"backdrop click"))}}}}]).directive("modalWindow",["$modalStack","$timeout",function(t,e){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:"template/modal/window.html",link:function(t,n,i){t.windowClass=i.windowClass||"",e(function(){t.animate=!0,n[0].querySelectorAll("[autofocus]").length>0?n[0].querySelectorAll("[autofocus]")[0].focus():n[0].focus()})}}}]).factory("$modalStack",["$window","$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(t,e,n,i,r,o,a){function s(){for(var t=-1,e=h.keys(),n=0;n<e.length;n++)h.get(e[n]).value.backdrop&&(t=n);return t}function l(t){var e=i.find("body").eq(0),n=h.get(t).value;h.remove(t),u(n.modalDomEl,n.modalScope,300,function(){n.modalScope.$destroy(),e.toggleClass(f,h.length()>0),c()})}function c(){if(d&&-1==s()){var t=p;u(d,p,150,function(){t.$destroy(),t=null}),d=void 0,p=void 0}}function u(t,i,r,o){function a(){a.done||(a.done=!0,t.remove(),o&&o())}i.animate=!1;var s=e.transitionEndEventName;if(s){var l=n(a,r);t.bind(s,function(){n.cancel(l),a(),i.$apply()})}else n(a,0)}var d,p,f="modal-open",h=a.createNew(),m={};return o.$watch(s,function(t){p&&(p.index=t)}),i.bind("keydown",function(t){var e;27===t.which&&(e=h.top(),e&&e.value.keyboard&&o.$apply(function(){m.dismiss(e.key)}))}),m.open=function(e,n){h.add(e,{deferred:n.deferred,modalScope:n.scope,backdrop:n.backdrop,keyboard:n.keyboard});var a=i.find("body").eq(0),l=s();l>=0&&!d&&(p=o.$new(!0),p.index=l,d=r("<div modal-backdrop></div>")(p),a.append(d));var c=angular.element('<div class="reveal-modal" style="z-index:-1""></div>');a.append(c[0]);var u=parseInt(getComputedStyle(c[0]).top)||0;c.remove();var m=t.pageYOffset||0,g=m+u,v=angular.element('<div modal-window style="visibility: visible; top:'+g+'px;"></div>').attr({"window-class":n.windowClass,index:h.length()-1,animate:"animate"});v.html(n.content);var $=r(v)(n.scope);h.top().value.modalDomEl=$,a.append($),a.addClass(f)},m.close=function(t,e){var n=h.get(t).value;n&&(n.deferred.resolve(e),l(t))},m.dismiss=function(t,e){var n=h.get(t).value;n&&(n.deferred.reject(e),l(t))},m.dismissAll=function(t){for(var e=this.getTop();e;)this.dismiss(e.key,t),e=this.getTop()},m.getTop=function(){return h.top()},m}]).provider("$modal",function(){var t={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(e,n,i,r,o,a,s){function l(t){return t.template?i.when(t.template):r.get(t.templateUrl,{cache:o}).then(function(t){return t.data})}function c(t){var n=[];return angular.forEach(t,function(t){(angular.isFunction(t)||angular.isArray(t))&&n.push(i.when(e.invoke(t)))}),n}var u={};return u.open=function(e){var r=i.defer(),o=i.defer(),u={result:r.promise,opened:o.promise,close:function(t){s.close(u,t)},dismiss:function(t){s.dismiss(u,t)}};if(e=angular.extend({},t.options,e),e.resolve=e.resolve||{},!e.template&&!e.templateUrl)throw new Error("One of template or templateUrl options is required.");var d=i.all([l(e)].concat(c(e.resolve)));return d.then(function(t){var i=(e.scope||n).$new();i.$close=u.close,i.$dismiss=u.dismiss;var o,l={},c=1;e.controller&&(l.$scope=i,l.$modalInstance=u,angular.forEach(e.resolve,function(e,n){l[n]=t[c++]}),o=a(e.controller,l),e.controllerAs&&(i[e.controllerAs]=o)),s.open(u,{scope:i,deferred:r,content:t[0],backdrop:e.backdrop,keyboard:e.keyboard,windowClass:e.windowClass})},function(t){r.reject(t)}),d.then(function(){o.resolve(!0)},function(){o.reject(!1)}),u},u}]};return t}),angular.module("mm.foundation.offcanvas",[]).directive("offCanvasWrap",["$window",function(t){return{scope:{},restrict:"C",link:function(e,n){var i=angular.element(t),r=e.sidebar=n;e.hide=function(){r.removeClass("move-left"),r.removeClass("move-right")},i.bind("resize.body",e.hide),e.$on("$destroy",function(){i.unbind("resize.body",e.hide)})},controller:["$scope",function(t){this.leftToggle=function(){t.sidebar.toggleClass("move-right")},this.rightToggle=function(){t.sidebar.toggleClass("move-left")},this.hide=function(){t.hide()}}]}}]).directive("leftOffCanvasToggle",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.leftToggle()})}}}]).directive("rightOffCanvasToggle",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.rightToggle()})}}}]).directive("exitOffCanvas",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.hide()})}}}]).directive("offCanvasList",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.hide()})}}}]),angular.module("mm.foundation.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse","$interpolate",function(t,e,n,i){var r=this,o=e.numPages?n(e.numPages).assign:angular.noop;this.init=function(i){e.itemsPerPage?t.$parent.$watch(n(e.itemsPerPage),function(e){r.itemsPerPage=parseInt(e,10),t.totalPages=r.calculateTotalPages()}):this.itemsPerPage=i},this.noPrevious=function(){return 1===this.page},this.noNext=function(){return this.page===t.totalPages},this.isActive=function(t){return this.page===t},this.calculateTotalPages=function(){var e=this.itemsPerPage<1?1:Math.ceil(t.totalItems/this.itemsPerPage);return Math.max(e||0,1)},this.getAttributeValue=function(e,n,r){return angular.isDefined(e)?r?i(e)(t.$parent):t.$parent.$eval(e):n},this.render=function(){this.page=parseInt(t.page,10)||1,this.page>0&&this.page<=t.totalPages&&(t.pages=this.getPages(this.page,t.totalPages))},t.selectPage=function(e){!r.isActive(e)&&e>0&&e<=t.totalPages&&(t.page=e,t.onSelectPage({page:e}))},t.$watch("page",function(){r.render()}),t.$watch("totalItems",function(){t.totalPages=r.calculateTotalPages()}),t.$watch("totalPages",function(e){o(t.$parent,e),r.page>e?t.selectPage(e):r.render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(t,e){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &"},controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,i,r,o){function a(t,e,n,i){return{number:t,text:e,active:n,disabled:i}}var s,l=o.getAttributeValue(r.boundaryLinks,e.boundaryLinks),c=o.getAttributeValue(r.directionLinks,e.directionLinks),u=o.getAttributeValue(r.firstText,e.firstText,!0),d=o.getAttributeValue(r.previousText,e.previousText,!0),p=o.getAttributeValue(r.nextText,e.nextText,!0),f=o.getAttributeValue(r.lastText,e.lastText,!0),h=o.getAttributeValue(r.rotate,e.rotate);o.init(e.itemsPerPage),r.maxSize&&n.$parent.$watch(t(r.maxSize),function(t){s=parseInt(t,10),o.render()}),o.getPages=function(t,e){var n=[],i=1,r=e,m=angular.isDefined(s)&&e>s;m&&(h?(i=Math.max(t-Math.floor(s/2),1),r=i+s-1,r>e&&(r=e,i=r-s+1)):(i=(Math.ceil(t/s)-1)*s+1,r=Math.min(i+s-1,e)));for(var g=i;r>=g;g++){var v=a(g,g,o.isActive(g),!1);n.push(v)}if(m&&!h){if(i>1){var $=a(i-1,"...",!1,!1);n.unshift($)}if(e>r){var y=a(r+1,"...",!1,!1);n.push(y)}}if(c){var b=a(t-1,d,!1,o.noPrevious());n.unshift(b);var w=a(t+1,p,!1,o.noNext());n.push(w)}if(l){var x=a(1,u,!1,o.noPrevious());n.unshift(x);var _=a(e,f,!1,o.noNext());n.push(_)}return n}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(t){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &"},controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(e,n,i,r){function o(t,e,n,i,r){return{number:t,text:e,disabled:n,previous:l&&i,next:l&&r}}var a=r.getAttributeValue(i.previousText,t.previousText,!0),s=r.getAttributeValue(i.nextText,t.nextText,!0),l=r.getAttributeValue(i.align,t.align);r.init(t.itemsPerPage),r.getPages=function(t){return[o(t-1,a,r.noPrevious(),!0,!1),o(t+1,s,r.noNext(),!1,!0)]}}}}]),angular.module("mm.foundation.tooltip",["mm.foundation.position","mm.foundation.bindHtml"]).provider("$tooltip",function(){function t(t){var e=/[A-Z]/g,n="-";return t.replace(e,function(t,e){return(e?n:"")+t.toLowerCase()})}var e={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},i={};this.options=function(t){angular.extend(i,t)},this.setTriggers=function(t){angular.extend(n,t)},this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate",function(r,o,a,s,l,c,u){return function(r,d,p){function f(t){var e=t||h.trigger||p,i=n[e]||e;return{show:e,hide:i}}var h=angular.extend({},e,i),m=t(r),g=u.startSymbol(),v=u.endSymbol(),$="<div "+m+'-popup title="'+g+"tt_title"+v+'" content="'+g+"tt_content"+v+'" placement="'+g+"tt_placement"+v+'" animation="tt_animation" is-open="tt_isOpen"></div>';return{restrict:"EA",scope:!0,compile:function(){var t=o($);return function(e,n,i){function o(){e.tt_isOpen?p():u()}function u(){(!C||e.$eval(i[d+"Enable"]))&&(e.tt_popupDelay?(w=a(m,e.tt_popupDelay,!1),w.then(function(t){t()})):m()())}function p(){e.$apply(function(){g()})}function m(){return e.tt_content?(v(),b&&a.cancel(b),y.css({top:0,left:0,display:"block"}),x?l.find("body").append(y):n.after(y),S(),e.tt_isOpen=!0,e.$digest(),S):angular.noop}function g(){e.tt_isOpen=!1,a.cancel(w),e.tt_animation?b=a($,500):$()}function v(){y&&$(),y=t(e,function(){}),e.$digest()}function $(){y&&(y.remove(),y=null)}var y,b,w,x=angular.isDefined(h.appendToBody)?h.appendToBody:!1,_=f(void 0),k=!1,C=angular.isDefined(i[d+"Enable"]),S=function(){var t,i,r,o;switch(t=x?c.offset(n):c.position(n),i=y.prop("offsetWidth"),r=y.prop("offsetHeight"),e.tt_placement){case"right":o={top:t.top+t.height/2-r/2,left:t.left+t.width+10};break;case"bottom":o={top:t.top+t.height+10,left:t.left};break;case"left":o={top:t.top+t.height/2-r/2,left:t.left-i-10};break;default:o={top:t.top-r-10,left:t.left}}o.top+="px",o.left+="px",y.css(o)};e.tt_isOpen=!1,i.$observe(r,function(t){e.tt_content=t,!t&&e.tt_isOpen&&g()}),i.$observe(d+"Title",function(t){e.tt_title=t}),i[d+"Placement"]=i[d+"Placement"]||null,i.$observe(d+"Placement",function(t){e.tt_placement=angular.isDefined(t)&&t?t:h.placement}),i[d+"PopupDelay"]=i[d+"PopupDelay"]||null,i.$observe(d+"PopupDelay",function(t){var n=parseInt(t,10);e.tt_popupDelay=isNaN(n)?h.popupDelay:n});var T=function(){k&&(angular.isFunction(_.show)?A():(n.unbind(_.show,u),n.unbind(_.hide,p)))},A=function(){};i[d+"Trigger"]=i[d+"Trigger"]||null,i.$observe(d+"Trigger",function(t){T(),A(),_=f(t),angular.isFunction(_.show)?A=e.$watch(function(){return _.show(e,n,i)},function(t){return a(t?m:g)}):_.show===_.hide?n.bind(_.show,o):(n.bind(_.show,u),n.bind(_.hide,p)),k=!0});var E=e.$eval(i[d+"Animation"]);e.tt_animation=angular.isDefined(E)?!!E:h.animation,i.$observe(d+"AppendToBody",function(t){x=angular.isDefined(t)?s(t)(e):x}),x&&e.$on("$locationChangeSuccess",function(){e.tt_isOpen&&g()}),e.$on("$destroy",function(){a.cancel(b),a.cancel(w),T(),A(),$()})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(t){return t("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(t){return t("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("mm.foundation.popover",["mm.foundation.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(t){return t("popover","popover","click")}]),angular.module("mm.foundation.progressbar",["mm.foundation.transition"]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig","$transition",function(t,e,n,i){var r=this,o=[],a=angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max,s=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;this.addBar=function(t,e){var n=0,i=t.$parent.$index;angular.isDefined(i)&&o[i]&&(n=o[i].value),o.push(t),this.update(e,t.value,n),t.$watch("value",function(t,n){t!==n&&r.update(e,t,n)}),t.$on("$destroy",function(){r.removeBar(t)})},this.update=function(t,e,n){var r=this.getPercentage(e);s?(t.css("width",this.getPercentage(n)+"%"),i(t,{width:r+"%"})):t.css({transition:"none",width:r+"%"})},this.removeBar=function(t){o.splice(o.indexOf(t),1)},this.getPercentage=function(t){return Math.round(100*t/a)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},template:'<div class="progress" ng-transclude></div>'}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]))}}}),angular.module("mm.foundation.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","$parse","ratingConfig",function(t,e,n,i){this.maxRange=angular.isDefined(e.max)?t.$parent.$eval(e.max):i.max,this.stateOn=angular.isDefined(e.stateOn)?t.$parent.$eval(e.stateOn):i.stateOn,this.stateOff=angular.isDefined(e.stateOff)?t.$parent.$eval(e.stateOff):i.stateOff,this.createRateObjects=function(t){for(var e={stateOn:this.stateOn,stateOff:this.stateOff},n=0,i=t.length;i>n;n++)t[n]=angular.extend({index:n},e,t[n]);return t},t.range=this.createRateObjects(angular.isDefined(e.ratingStates)?angular.copy(t.$parent.$eval(e.ratingStates)):new Array(this.maxRange)),t.rate=function(e){t.value===e||t.readonly||(t.value=e)},t.enter=function(e){t.readonly||(t.val=e),t.onHover({value:e})},t.reset=function(){t.val=angular.copy(t.value),t.onLeave()},t.$watch("value",function(e){t.val=e}),t.readonly=!1,e.readonly&&t.$parent.$watch(n(e.readonly),function(e){t.readonly=!!e})}]).directive("rating",function(){return{restrict:"EA",scope:{value:"=",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0}}),angular.module("mm.foundation.tabs",[]).controller("TabsetController",["$scope",function(t){var e=this,n=e.tabs=t.tabs=[];e.select=function(t){angular.forEach(n,function(t){t.active=!1}),t.active=!0},e.addTab=function(t){n.push(t),(1===n.length||t.active)&&e.select(t)},e.removeTab=function(t){var i=n.indexOf(t);if(t.active&&n.length>1){var r=i==n.length-1?i-1:i+1;e.select(n[r])}n.splice(i,1)}}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,
replace:!0,scope:{},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){t.vertical=angular.isDefined(n.vertical)?t.$parent.$eval(n.vertical):!1,t.justified=angular.isDefined(n.justified)?t.$parent.$eval(n.justified):!1,t.type=angular.isDefined(n.type)?t.$parent.$eval(n.type):"tabs"}}}).directive("tab",["$parse",function(t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(e,n,i){return function(e,n,r,o){var a,s;r.active?(a=t(r.active),s=a.assign,e.$parent.$watch(a,function(t,n){t!==n&&(e.active=!!t)}),e.active=a(e.$parent)):s=a=angular.noop,e.$watch("active",function(t){angular.isFunction(s)&&(s(e.$parent,t),t?(o.select(e),e.onSelect()):e.onDeselect())}),e.disabled=!1,r.disabled&&e.$parent.$watch(t(r.disabled),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},o.addTab(e),e.$on("$destroy",function(){o.removeTab(e)}),e.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}]).directive("tabContentTransclude",function(){function t(t){return t.tagName&&(t.hasAttribute("tab-heading")||t.hasAttribute("data-tab-heading")||"tab-heading"===t.tagName.toLowerCase()||"data-tab-heading"===t.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(e,n,i){var r=e.$eval(i.tabContentTransclude);r.$transcludeFn(r.$parent,function(e){angular.forEach(e,function(e){t(e)?r.headingElement=e:n.append(e)})})}}}),angular.module("mm.foundation.topbar",["mm.foundation.mediaQueries"]).factory("closest",[function(){return function(t,e){for(var n=function(t,e){for(var n=(t.parentNode||t.document).querySelectorAll(e),i=-1;n[++i]&&n[i]!=t;);return!!n[i]},i=t[0];i;){if(n(i,e))return angular.element(i);i=i.parentElement}return!1}}]).directive("topBar",["$timeout","$compile","$window","$document","mediaQueries",function(t,e,n,i,r){return{scope:{stickyClass:"@",backText:"@",stickyOn:"=",customBackText:"=",isHover:"=",mobileShowParentLink:"=",scrolltop:"="},restrict:"EA",replace:!0,templateUrl:"template/topbar/top-bar.html",transclude:!0,controller:["$window","$scope","closest",function(e,n,o){n.settings={},n.settings.stickyClass=n.stickyClass||"sticky",n.settings.backText=n.backText||"Back",n.settings.stickyOn=n.stickyOn||"all",n.settings.customBackText=void 0===n.customBackText?!0:n.customBackText,n.settings.isHover=void 0===n.isHover?!0:n.isHover,n.settings.mobileShowParentLink=void 0===n.mobileShowParentLink?!0:n.mobileShowParentLink,n.settings.scrolltop=void 0===n.scrolltop?!0:n.scrolltop,this.settings=n.settings,n.index=0;var a=function(t){var e=t.offsetHeight,n=t.currentStyle||getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10)},s=[];this.addSection=function(t){s.push(t)},this.removeSection=function(t){var e=s.indexOf(t);e>-1&&s.splice(e,1)};var l=/rtl/i.test(i.find("html").attr("dir"))?"right":"left";n.$watch("index",function(t){for(var e=0;e<s.length;e++)s[e].move(l,t)}),this.toggle=function(t){n.toggle(t);for(var e=0;e<s.length;e++)s[e].reset();n.index=0,n.height="",n.$apply()},this.back=function(e){if(!(n.index<1)&&r.topbarBreakpoint()){var i=angular.element(e.currentTarget),s=o(i,"li.moved"),l=s.parent();n.index=n.index-1,n.height=0===n.index?"":n.originalHeight+a(l[0]),t(function(){s.removeClass("moved")},300)}},this.forward=function(t){if(!r.topbarBreakpoint())return!1;var e=angular.element(t.currentTarget),i=o(e,"li");i.addClass("moved"),n.height=n.originalHeight+a(e.parent()[0].querySelector("ul")),n.index=n.index+1,n.$apply()}}],link:function(t,e){var o=t.topbar=e,a=o.parent(),s=angular.element(i[0].querySelector("body")),l=r.topbarBreakpoint(),c=t.isSticky=function(){var e=a.hasClass(t.settings.stickyClass);return e&&"all"===t.settings.stickyOn?!0:e&&r.small()&&"small"===t.settings.stickyOn?!0:e&&r.medium()&&"medium"===t.settings.stickyOn?!0:e&&r.large()&&"large"===t.settings.stickyOn?!0:!1},u=function(){if(t.stickyTopbar&&t.isSticky()){var e=f;n.pageYOffset>e&&!a.hasClass("fixed")?(a.addClass("fixed"),s.css("padding-top",t.originalHeight+"px")):n.pageYOffset<=e&&a.hasClass("fixed")&&(a.removeClass("fixed"),s.css("padding-top",""))}},d=function(){var e=r.topbarBreakpoint();if(l!==e){l=r.topbarBreakpoint(),o.removeClass("expanded"),o.parent().removeClass("expanded"),t.height="";var n=angular.element(o[0].querySelectorAll("section"));angular.forEach(n,function(t){angular.element(t.querySelectorAll("li.moved")).removeClass("moved")}),t.$apply()}},p=function(){u(),t.$apply()};if(t.toggle=function(e){if(!r.topbarBreakpoint())return!1;var i=void 0===e?!o.hasClass("expanded"):e;i?o.addClass("expanded"):o.removeClass("expanded"),t.settings.scrolltop?!i&&o.hasClass("fixed")?(o.parent().addClass("fixed"),o.removeClass("fixed"),s.css("padding-top",t.originalHeight+"px")):i&&o.parent().hasClass("fixed")&&(o.parent().removeClass("fixed"),o.addClass("fixed"),s.css("padding-top",""),n.scrollTo(0,0)):(c()&&o.parent().addClass("fixed"),o.parent().hasClass("fixed")&&(i?(o.addClass("fixed"),o.parent().addClass("expanded"),s.css("padding-top",t.originalHeight+"px")):(o.removeClass("fixed"),o.parent().removeClass("expanded"),u())))},a.hasClass("fixed")||c()){t.stickyTopbar=!0,t.height=a[0].offsetHeight;var f=a[0].getBoundingClientRect().top+n.pageYOffset}else t.height=o[0].offsetHeight;t.originalHeight=t.height,t.$watch("height",function(t){t?o.css("height",t+"px"):o.css("height","")}),angular.element(n).bind("resize",d),angular.element(n).bind("scroll",p),t.$on("$destroy",function(){angular.element(n).unbind("scroll",d),angular.element(n).unbind("resize",p)}),a.hasClass("fixed")&&s.css("padding-top",t.originalHeight+"px")}}}]).directive("toggleTopBar",["closest",function(t){return{scope:{},require:"^topBar",restrict:"A",replace:!0,templateUrl:"template/topbar/toggle-top-bar.html",transclude:!0,link:function(e,n,i,r){n.bind("click",function(e){var n=t(angular.element(e.currentTarget),"li");n.hasClass("back")||n.hasClass("has-dropdown")||r.toggle()}),e.$on("$destroy",function(){n.unbind("click")})}}}]).directive("topBarSection",["$compile","closest",function(t,e){return{scope:{},require:"^topBar",restrict:"EA",replace:!0,templateUrl:"template/topbar/top-bar-section.html",transclude:!0,link:function(t,n,i,r){var o=n;t.reset=function(){angular.element(o[0].querySelectorAll("li.moved")).removeClass("moved")},t.move=function(t,e){o.css("left"===t?{left:-100*e+"%"}:{right:-100*e+"%"})},r.addSection(t),t.$on("$destroy",function(){r.removeSection(t)});var a=o[0].querySelectorAll("li>a");angular.forEach(a,function(n){var i=angular.element(n),o=e(i,"li");o.hasClass("has-dropdown")||o.hasClass("back")||o.hasClass("title")||(i.bind("click",function(){r.toggle(!1)}),t.$on("$destroy",function(){i.bind("click")}))})}}}]).directive("hasDropdown",["mediaQueries",function(t){return{scope:{},require:"^topBar",restrict:"A",templateUrl:"template/topbar/has-dropdown.html",replace:!0,transclude:!0,link:function(e,n,i,r){e.triggerLink=n.children("a")[0];var o=angular.element(e.triggerLink);o.bind("click",function(t){r.forward(t)}),e.$on("$destroy",function(){o.unbind("click")}),n.bind("mouseenter",function(){r.settings.isHover&&!t.topbarBreakpoint()&&n.addClass("not-click")}),n.bind("click",function(){r.settings.isHover||t.topbarBreakpoint()||n.toggleClass("not-click")}),n.bind("mouseleave",function(){n.removeClass("not-click")}),e.$on("$destroy",function(){n.unbind("click"),n.unbind("mouseenter"),n.unbind("mouseleave")})},controller:["$window","$scope",function(t,e){this.triggerLink=e.triggerLink}]}}]).directive("topBarDropdown",["$compile",function(t){return{scope:{},require:["^topBar","^hasDropdown"],restrict:"A",replace:!0,templateUrl:"template/topbar/top-bar-dropdown.html",transclude:!0,link:function(e,n,i,r){var o,a=r[0],s=r[1],l=angular.element(s.triggerLink),c=l.attr("href");e.linkText=l.text(),e.back=function(t){a.back(t)},e.backText=a.settings.customBackText?a.settings.backText:"&laquo; "+l.html(),o=angular.element(a.settings.mobileShowParentLink&&c&&c.length>1?'<li class="title back js-generated"><h5><a href="#" ng-click="back($event);">{{backText}}</a></h5></li><li><a class="parent-link js-generated" href="'+c+'">{{linkText}}</a></li>':'<li class="title back js-generated"><h5><a href="" ng-click="back($event);">{{backText}}</a></h5></li>'),t(o)(e),n.prepend(o)}}}]),angular.module("mm.foundation.tour",["mm.foundation.position","mm.foundation.tooltip"]).service("$tour",["$window",function(t){function e(){try{return parseInt(t.localStorage.getItem("mm.tour.step"),10)}catch(e){if("SecurityError"!==e.name)throw e}}function n(){try{t.localStorage.setItem("mm.tour.step",r)}catch(e){if("SecurityError"!==e.name)throw e}}function i(t){r=t,n()}var r=e(),o={};this.add=function(t,e){o[t]=e},this.has=function(t){return!!o[t]},this.isActive=function(){return r>0},this.current=function(t){return t?void i(r):r},this.start=function(){i(1)},this.next=function(){i(r+1)},this.end=function(){i(0)}}]).directive("stepTextPopup",["$tour",function(t){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tour/tour.html",link:function(e,n){e.isLastStep=function(){return!t.has(t.current()+1)},e.endTour=function(){n.remove(),t.end()},e.nextStep=function(){n.remove(),t.next()},e.$on("$locationChangeSuccess",e.endTour)}}}]).directive("stepText",["$position","$tooltip","$tour","$window",function(t,e,n,i){function r(t){var e=t[0].getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=i.innerHeight-80&&e.right<=i.innerWidth}function o(e,o,a){var s=parseInt(a.stepIndex,10);if(n.isActive()&&s&&(n.add(s,a),s===n.current())){if(!r(o)){var l=t.offset(o);i.scrollTo(0,l.top-i.innerHeight/2)}return!0}return!1}return e("stepText","step",o)}]),angular.module("mm.foundation.typeahead",["mm.foundation.position","mm.foundation.bindHtml"]).factory("typeaheadParser",["$parse",function(t){var e=/^\s*(.*?)(?:\s+as\s+(.*?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+(.*)$/;return{parse:function(n){var i=n.match(e);if(!i)throw new Error("Expected typeahead specification in form of '_modelValue_ (as _label_)? for _item_ in _collection_' but got '"+n+"'.");return{itemName:i[3],source:t(i[4]),viewMapper:t(i[2]||i[1]),modelMapper:t(i[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(t,e,n,i,r,o,a){var s=[9,13,27,38,40];return{require:"ngModel",link:function(l,c,u,d){var p,f=l.$eval(u.typeaheadMinLength)||1,h=l.$eval(u.typeaheadWaitMs)||0,m=l.$eval(u.typeaheadEditable)!==!1,g=e(u.typeaheadLoading).assign||angular.noop,v=e(u.typeaheadOnSelect),$=u.typeaheadInputFormatter?e(u.typeaheadInputFormatter):void 0,y=u.typeaheadAppendToBody?e(u.typeaheadAppendToBody):!1,b=e(u.ngModel).assign,w=a.parse(u.typeahead),x=angular.element("<div typeahead-popup></div>");x.attr({matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(u.typeaheadTemplateUrl)&&x.attr("template-url",u.typeaheadTemplateUrl);var _=l.$new();l.$on("$destroy",function(){_.$destroy()});var k=function(){_.matches=[],_.activeIdx=-1},C=function(t){var e={$viewValue:t};g(l,!0),n.when(w.source(l,e)).then(function(n){if(t===d.$viewValue&&p){if(n.length>0){_.activeIdx=0,_.matches.length=0;for(var i=0;i<n.length;i++)e[w.itemName]=n[i],_.matches.push({label:w.viewMapper(_,e),model:n[i]});_.query=t,_.position=y?o.offset(c):o.position(c),_.position.top=_.position.top+c.prop("offsetHeight")}else k();g(l,!1)}},function(){k(),g(l,!1)})};k(),_.query=void 0;var S;d.$parsers.unshift(function(t){return t&&t.length>=f?h>0?(S&&i.cancel(S),S=i(function(){C(t)},h)):C(t):(g(l,!1),k()),m?t:t?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),t)}),d.$formatters.push(function(t){var e,n,i={};return $?(i.$model=t,$(l,i)):(i[w.itemName]=t,e=w.viewMapper(l,i),i[w.itemName]=void 0,n=w.viewMapper(l,i),e!==n?e:t)}),_.select=function(t){var e,n,i={};i[w.itemName]=n=_.matches[t].model,e=w.modelMapper(l,i),b(l,e),d.$setValidity("editable",!0),v(l,{$item:n,$model:e,$label:w.viewMapper(l,i)}),k(),c[0].focus()},c.bind("keydown",function(t){0!==_.matches.length&&-1!==s.indexOf(t.which)&&(t.preventDefault(),40===t.which?(_.activeIdx=(_.activeIdx+1)%_.matches.length,_.$digest()):38===t.which?(_.activeIdx=(_.activeIdx?_.activeIdx:_.matches.length)-1,_.$digest()):13===t.which||9===t.which?_.$apply(function(){_.select(_.activeIdx)}):27===t.which&&(t.stopPropagation(),k(),_.$digest()))}),c.bind("blur",function(){p=!1}),c.bind("focus",function(){p=!0});var T=function(t){c[0]!==t.target&&(k(),_.$digest())};r.bind("click",T),l.$on("$destroy",function(){r.unbind("click",T)});var A=t(x)(_);y?r.find("body").append(A):c.after(A)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(t,e,n){t.templateUrl=n.templateUrl,t.isOpen=function(){return t.matches.length>0},t.isActive=function(e){return t.active==e},t.selectActive=function(e){t.active=e},t.selectMatch=function(e){t.select({activeIdx:e})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(t,e,n,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,o,a){var s=i(a.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";t.get(s,{cache:e}).success(function(t){o.replaceWith(n(t.trim())(r))})}}}]).filter("typeaheadHighlight",function(){function t(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(e,n){return n?e.replace(new RegExp(t(n),"gi"),"<strong>$&</strong>"):e}}),angular.module("mm.foundation",["mm.foundation.tpls","mm.foundation.accordion","mm.foundation.alert","mm.foundation.bindHtml","mm.foundation.buttons","mm.foundation.position","mm.foundation.mediaQueries","mm.foundation.dropdownToggle","mm.foundation.interchange","mm.foundation.transition","mm.foundation.modal","mm.foundation.offcanvas","mm.foundation.pagination","mm.foundation.tooltip","mm.foundation.popover","mm.foundation.progressbar","mm.foundation.rating","mm.foundation.tabs","mm.foundation.topbar","mm.foundation.tour","mm.foundation.typeahead"]),angular.module("mm.foundation.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/topbar/has-dropdown.html","template/topbar/toggle-top-bar.html","template/topbar/top-bar-dropdown.html","template/topbar/top-bar-section.html","template/topbar/top-bar.html","template/tour/tour.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("mm.foundation.accordion",[]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(i){var r=angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers;r&&angular.forEach(this.groups,function(t){t!==i&&(t.isOpen=!1)})},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",function(){e.removeGroup(t)})},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",["$parse",function(t){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(e,n,i,r){var o,a;r.addGroup(e),e.isOpen=!1,i.isOpen&&(o=t(i.isOpen),a=o.assign,e.$parent.$watch(o,function(t){e.isOpen=!!t})),e.$watch("isOpen",function(t){t&&r.closeOthers(e),a&&a(e.$parent,t)})}}}]).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",compile:function(t,e,n){return function(t,e,i,r){r.setHeading(n(t,function(){}))}}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(t,e,n,i){t.$watch(function(){return i[n.accordionTransclude]},function(t){t&&(e.html(""),e.append(t))})}}}),angular.module("mm.foundation.alert",[]).controller("AlertController",["$scope","$attrs",function(t,e){t.closeable="close"in e}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"=",close:"&"}}}),angular.module("mm.foundation.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(t,e,n){e.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),t.$watch(n.bindHtmlUnsafe,function(t){e.html(t||"")})}}),angular.module("mm.foundation.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(t){this.activeClass=t.activeClass,this.toggleEvent=t.toggleEvent}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){var r=i[0],o=i[1];o.$render=function(){e.toggleClass(r.activeClass,angular.equals(o.$modelValue,t.$eval(n.btnRadio)))},e.bind(r.toggleEvent,function(){e.hasClass(r.activeClass)||t.$apply(function(){o.$setViewValue(t.$eval(n.btnRadio)),o.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){function r(){return a(n.btnCheckboxTrue,!0)}function o(){return a(n.btnCheckboxFalse,!1)}function a(e,n){var i=t.$eval(e);return angular.isDefined(i)?i:n}var s=i[0],l=i[1];l.$render=function(){e.toggleClass(s.activeClass,angular.equals(l.$modelValue,r()))},e.bind(s.toggleEvent,function(){t.$apply(function(){l.$setViewValue(e.hasClass(s.activeClass)?o():r()),l.$render()})})}}}),angular.module("mm.foundation.position",[]).factory("$position",["$document","$window",function(t,e){function n(t,n){return t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n]}function i(t){return"static"===(n(t,"position")||"static")}var r=function(e){for(var n=t[0],r=e.offsetParent||n;r&&r!==n&&i(r);)r=r.offsetParent;return r||n};return{position:function(e){var n=this.offset(e),i={top:0,left:0},o=r(e[0]);o!=t[0]&&(i=this.offset(angular.element(o)),i.top+=o.clientTop-o.scrollTop,i.left+=o.clientLeft-o.scrollLeft);var a=e[0].getBoundingClientRect();return{width:a.width||e.prop("offsetWidth"),height:a.height||e.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(e.pageYOffset||t[0].body.scrollTop||t[0].documentElement.scrollTop),left:i.left+(e.pageXOffset||t[0].body.scrollLeft||t[0].documentElement.scrollLeft)}}}}]),angular.module("mm.foundation.mediaQueries",[]).factory("matchMedia",["$document","$window",function(t,e){return e.matchMedia||function(t){var e,n=t.documentElement,i=n.firstElementChild||n.firstChild,r=t.createElement("body"),o=t.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(o),function(t){return o.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(r,i),e=42===o.offsetWidth,n.removeChild(r),{matches:e,media:t}}}(t[0])}]).factory("mediaQueries",["$document","matchMedia",function(t,e){var n=angular.element(t[0].querySelector("head"));n.append('<meta class="foundation-mq-topbar" />'),n.append('<meta class="foundation-mq-small" />'),n.append('<meta class="foundation-mq-medium" />'),n.append('<meta class="foundation-mq-large" />');var i=/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,r={topbar:getComputedStyle(n[0].querySelector("meta.foundation-mq-topbar")).fontFamily.replace(i,""),small:getComputedStyle(n[0].querySelector("meta.foundation-mq-small")).fontFamily.replace(i,""),medium:getComputedStyle(n[0].querySelector("meta.foundation-mq-medium")).fontFamily.replace(i,""),large:getComputedStyle(n[0].querySelector("meta.foundation-mq-large")).fontFamily.replace(i,"")};return{topbarBreakpoint:function(){return!e(r.topbar).matches},small:function(){return e(r.small).matches},medium:function(){return e(r.medium).matches},large:function(){return e(r.large).matches}}}]),angular.module("mm.foundation.dropdownToggle",["mm.foundation.position","mm.foundation.mediaQueries"]).controller("DropdownToggleController",["$scope","$attrs","mediaQueries",function(t,e,n){this.small=function(){return n.small()&&!n.medium()}}]).directive("dropdownToggle",["$document","$window","$location","$position",function(t,e,n,i){var r=null,o=angular.noop;return{restrict:"CA",scope:{dropdownToggle:"@"},controller:"DropdownToggleController",link:function(n,a,s,l){var c=a.parent(),u=angular.element(t[0].querySelector(n.dropdownToggle)),d=function(){return c.hasClass("has-dropdown")},p=function(s){u=angular.element(t[0].querySelector(n.dropdownToggle));var p=a===r;if(s.preventDefault(),s.stopPropagation(),r&&o(),!p&&!a.hasClass("disabled")&&!a.prop("disabled")){u.css("display","block");var f=i.offset(a),h=i.offset(angular.element(u[0].offsetParent)),m=u.prop("offsetWidth"),g={top:f.top-h.top+f.height+"px"};if(l.small())g.left=Math.max((h.width-m)/2,8)+"px",g.position="absolute",g.width="95%",g["max-width"]="none";else{var v=Math.round(f.left-h.left),$=e.innerWidth-m-8;v>$&&(v=$,u.removeClass("left").addClass("right")),g.left=v+"px",g.position=null,g["max-width"]=null}u.css(g),a.addClass("expanded"),d()&&c.addClass("hover"),r=a,o=function(){t.off("click",o),u.css("display","none"),a.removeClass("expanded"),o=angular.noop,r=null,c.hasClass("hover")&&c.removeClass("hover")},t.on("click",o)}};u&&u.css("display","none"),n.$watch("$location.path",function(){o()}),a.on("click",p),a.on("$destroy",function(){a.off("click",p)})}}}]),angular.module("mm.foundation.interchange",["mm.foundation.mediaQueries"]).factory("interchangeQueries",["$document",function(t){for(var e,n,i={"default":"only screen",landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},r="foundation-mq-",o=["small","medium","large","xlarge","xxlarge"],a=angular.element(t[0].querySelector("head")),s=0;s<o.length;s++)a.append('<meta class="'+r+o[s]+'" />'),e=getComputedStyle(a[0].querySelector("meta."+r+o[s])),n=e.fontFamily.replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),i[o[s]]=n;return i}]).factory("interchangeQueriesManager",["interchangeQueries",function(t){return{add:function(e,n){return e&&n&&angular.isString(e)&&angular.isString(n)&&!t[e]?(t[e]=n,!0):!1}}}]).factory("interchangeTools",["$window","matchMedia","interchangeQueries",function(t,e,n){var i=function(t){for(var e,n=t.split(/\[(.*?)\]/),i=n.length,r=/^(.+)\,\ \((.+)\)$/,o={};i--;)n[i].replace(/[\W\d]+/,"").length>4&&(e=r.exec(n[i]),e&&3===e.length&&(o[e[2]]=e[1]));return o},r=function(t){var i,r,o;for(i in t)if(r=n[i]||i,o=e(r),o.matches)return t[i]};return{parseAttribute:i,findCurrentMediaFile:r}}]).directive("interchange",["$window","$rootScope","interchangeTools",function(t,e,n){var i=/[A-Za-z0-9-_]+\.(jpg|jpeg|png|gif|bmp|tiff)\ *,/i;return{restrict:"A",scope:!0,priority:450,compile:function(r,o){return"DIV"!==r[0].nodeName||i.test(o.interchange)||r.html('<ng-include src="currentFile"></ng-include>'),{pre:function(){},post:function(i,r,o){var a,s;switch(s=r&&r[0]&&r[0].nodeName,i.fileMap=n.parseAttribute(o.interchange),s){case"DIV":a=n.findCurrentMediaFile(i.fileMap),i.type=/[A-Za-z0-9-_]+\.(jpg|jpeg|png|gif|bmp|tiff)$/i.test(a)?"background":"include";break;case"IMG":i.type="image";break;default:return}var l=function(t){var o=n.findCurrentMediaFile(i.fileMap);if(!i.currentFile||i.currentFile!==o){switch(i.currentFile=o,i.type){case"image":r.attr("src",i.currentFile);break;case"background":r.css("background-image","url("+i.currentFile+")")}e.$emit("replace",r,i),t&&i.$apply()}};l(),t.addEventListener("resize",l),i.$on("$destroy",function(){t.removeEventListener("resize",l)})}}}}}]),angular.module("mm.foundation.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(t,e,n){function i(t){for(var e in t)if(void 0!==o.style[e])return t[e]}var r=function(i,o,a){a=a||{};var s=t.defer(),l=r[a.animation?"animationEndEventName":"transitionEndEventName"],c=function(){n.$apply(function(){i.unbind(l,c),s.resolve(i)})};return l&&i.bind(l,c),e(function(){angular.isString(o)?i.addClass(o):angular.isFunction(o)?o(i):angular.isObject(o)&&i.css(o),l||s.resolve(i)}),s.promise.cancel=function(){l&&i.unbind(l,c),s.reject("Transition cancelled")},s.promise},o=document.createElement("trans"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return r.transitionEndEventName=i(a),r.animationEndEventName=i(s),r}]),angular.module("mm.foundation.modal",["mm.foundation.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n<t.length;n++)if(e==t[n].key)return t[n]},keys:function(){for(var e=[],n=0;n<t.length;n++)e.push(t[n].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var n=-1,i=0;i<t.length;i++)if(e==t[i].key){n=i;break}return t.splice(n,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}).directive("modalBackdrop",["$modalStack","$timeout",function(t,e){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(n){n.animate=!1,e(function(){n.animate=!0}),n.close=function(e){var n=t.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(n.key,"backdrop click"))}}}}]).directive("modalWindow",["$modalStack","$timeout",function(t,e){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:"template/modal/window.html",link:function(t,n,i){t.windowClass=i.windowClass||"",e(function(){t.animate=!0,n[0].querySelectorAll("[autofocus]").length>0?n[0].querySelectorAll("[autofocus]")[0].focus():n[0].focus()})}}}]).factory("$modalStack",["$window","$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(t,e,n,i,r,o,a){function s(){for(var t=-1,e=h.keys(),n=0;n<e.length;n++)h.get(e[n]).value.backdrop&&(t=n);return t}function l(t){var e=i.find("body").eq(0),n=h.get(t).value;h.remove(t),u(n.modalDomEl,n.modalScope,300,function(){n.modalScope.$destroy(),e.toggleClass(f,h.length()>0),c()})}function c(){if(d&&-1==s()){var t=p;u(d,p,150,function(){t.$destroy(),t=null}),d=void 0,p=void 0}}function u(t,i,r,o){function a(){a.done||(a.done=!0,t.remove(),o&&o())}i.animate=!1;var s=e.transitionEndEventName;if(s){var l=n(a,r);t.bind(s,function(){n.cancel(l),a(),i.$apply()})}else n(a,0)}var d,p,f="modal-open",h=a.createNew(),m={};return o.$watch(s,function(t){p&&(p.index=t)}),i.bind("keydown",function(t){var e;27===t.which&&(e=h.top(),e&&e.value.keyboard&&o.$apply(function(){m.dismiss(e.key)}))}),m.open=function(e,n){h.add(e,{deferred:n.deferred,modalScope:n.scope,backdrop:n.backdrop,keyboard:n.keyboard});var a=i.find("body").eq(0),l=s();l>=0&&!d&&(p=o.$new(!0),p.index=l,d=r("<div modal-backdrop></div>")(p),a.append(d));var c=angular.element('<div class="reveal-modal" style="z-index:-1""></div>');a.append(c[0]);var u=parseInt(getComputedStyle(c[0]).top)||0;c.remove();var m=t.pageYOffset||0,g=m+u,v=angular.element('<div modal-window style="visibility: visible; top:'+g+'px;"></div>').attr({"window-class":n.windowClass,index:h.length()-1,animate:"animate"});v.html(n.content);var $=r(v)(n.scope);h.top().value.modalDomEl=$,a.append($),a.addClass(f)},m.close=function(t,e){var n=h.get(t).value;n&&(n.deferred.resolve(e),l(t))},m.dismiss=function(t,e){var n=h.get(t).value;n&&(n.deferred.reject(e),l(t))},m.dismissAll=function(t){for(var e=this.getTop();e;)this.dismiss(e.key,t),e=this.getTop()},m.getTop=function(){return h.top()},m}]).provider("$modal",function(){var t={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(e,n,i,r,o,a,s){function l(t){return t.template?i.when(t.template):r.get(t.templateUrl,{cache:o}).then(function(t){return t.data})}function c(t){var n=[];return angular.forEach(t,function(t){(angular.isFunction(t)||angular.isArray(t))&&n.push(i.when(e.invoke(t)))}),n}var u={};return u.open=function(e){var r=i.defer(),o=i.defer(),u={result:r.promise,opened:o.promise,close:function(t){s.close(u,t)},dismiss:function(t){s.dismiss(u,t)}};if(e=angular.extend({},t.options,e),e.resolve=e.resolve||{},!e.template&&!e.templateUrl)throw new Error("One of template or templateUrl options is required.");var d=i.all([l(e)].concat(c(e.resolve)));return d.then(function(t){var i=(e.scope||n).$new();i.$close=u.close,i.$dismiss=u.dismiss;var o,l={},c=1;e.controller&&(l.$scope=i,l.$modalInstance=u,angular.forEach(e.resolve,function(e,n){l[n]=t[c++]}),o=a(e.controller,l),e.controllerAs&&(i[e.controllerAs]=o)),s.open(u,{scope:i,deferred:r,content:t[0],backdrop:e.backdrop,keyboard:e.keyboard,windowClass:e.windowClass})},function(t){r.reject(t)}),d.then(function(){o.resolve(!0)},function(){o.reject(!1)}),u},u}]};return t}),angular.module("mm.foundation.offcanvas",[]).directive("offCanvasWrap",["$window",function(t){return{scope:{},restrict:"C",link:function(e,n){var i=angular.element(t),r=e.sidebar=n;e.hide=function(){r.removeClass("move-left"),r.removeClass("move-right")},i.bind("resize.body",e.hide),e.$on("$destroy",function(){i.unbind("resize.body",e.hide)})},controller:["$scope",function(t){this.leftToggle=function(){t.sidebar.toggleClass("move-right")},this.rightToggle=function(){t.sidebar.toggleClass("move-left")},this.hide=function(){t.hide()}}]}}]).directive("leftOffCanvasToggle",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.leftToggle()})}}}]).directive("rightOffCanvasToggle",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.rightToggle()})}}}]).directive("exitOffCanvas",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.hide()})}}}]).directive("offCanvasList",[function(){return{require:"^offCanvasWrap",restrict:"C",link:function(t,e,n,i){e.on("click",function(){i.hide()})}}}]),angular.module("mm.foundation.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse","$interpolate",function(t,e,n,i){var r=this,o=e.numPages?n(e.numPages).assign:angular.noop;this.init=function(i){e.itemsPerPage?t.$parent.$watch(n(e.itemsPerPage),function(e){
r.itemsPerPage=parseInt(e,10),t.totalPages=r.calculateTotalPages()}):this.itemsPerPage=i},this.noPrevious=function(){return 1===this.page},this.noNext=function(){return this.page===t.totalPages},this.isActive=function(t){return this.page===t},this.calculateTotalPages=function(){var e=this.itemsPerPage<1?1:Math.ceil(t.totalItems/this.itemsPerPage);return Math.max(e||0,1)},this.getAttributeValue=function(e,n,r){return angular.isDefined(e)?r?i(e)(t.$parent):t.$parent.$eval(e):n},this.render=function(){this.page=parseInt(t.page,10)||1,this.page>0&&this.page<=t.totalPages&&(t.pages=this.getPages(this.page,t.totalPages))},t.selectPage=function(e){!r.isActive(e)&&e>0&&e<=t.totalPages&&(t.page=e,t.onSelectPage({page:e}))},t.$watch("page",function(){r.render()}),t.$watch("totalItems",function(){t.totalPages=r.calculateTotalPages()}),t.$watch("totalPages",function(e){o(t.$parent,e),r.page>e?t.selectPage(e):r.render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(t,e){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &"},controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,i,r,o){function a(t,e,n,i){return{number:t,text:e,active:n,disabled:i}}var s,l=o.getAttributeValue(r.boundaryLinks,e.boundaryLinks),c=o.getAttributeValue(r.directionLinks,e.directionLinks),u=o.getAttributeValue(r.firstText,e.firstText,!0),d=o.getAttributeValue(r.previousText,e.previousText,!0),p=o.getAttributeValue(r.nextText,e.nextText,!0),f=o.getAttributeValue(r.lastText,e.lastText,!0),h=o.getAttributeValue(r.rotate,e.rotate);o.init(e.itemsPerPage),r.maxSize&&n.$parent.$watch(t(r.maxSize),function(t){s=parseInt(t,10),o.render()}),o.getPages=function(t,e){var n=[],i=1,r=e,m=angular.isDefined(s)&&e>s;m&&(h?(i=Math.max(t-Math.floor(s/2),1),r=i+s-1,r>e&&(r=e,i=r-s+1)):(i=(Math.ceil(t/s)-1)*s+1,r=Math.min(i+s-1,e)));for(var g=i;r>=g;g++){var v=a(g,g,o.isActive(g),!1);n.push(v)}if(m&&!h){if(i>1){var $=a(i-1,"...",!1,!1);n.unshift($)}if(e>r){var y=a(r+1,"...",!1,!1);n.push(y)}}if(c){var b=a(t-1,d,!1,o.noPrevious());n.unshift(b);var w=a(t+1,p,!1,o.noNext());n.push(w)}if(l){var x=a(1,u,!1,o.noPrevious());n.unshift(x);var _=a(e,f,!1,o.noNext());n.push(_)}return n}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(t){return{restrict:"EA",scope:{page:"=",totalItems:"=",onSelectPage:" &"},controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(e,n,i,r){function o(t,e,n,i,r){return{number:t,text:e,disabled:n,previous:l&&i,next:l&&r}}var a=r.getAttributeValue(i.previousText,t.previousText,!0),s=r.getAttributeValue(i.nextText,t.nextText,!0),l=r.getAttributeValue(i.align,t.align);r.init(t.itemsPerPage),r.getPages=function(t){return[o(t-1,a,r.noPrevious(),!0,!1),o(t+1,s,r.noNext(),!1,!0)]}}}}]),angular.module("mm.foundation.tooltip",["mm.foundation.position","mm.foundation.bindHtml"]).provider("$tooltip",function(){function t(t){var e=/[A-Z]/g,n="-";return t.replace(e,function(t,e){return(e?n:"")+t.toLowerCase()})}var e={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},i={};this.options=function(t){angular.extend(i,t)},this.setTriggers=function(t){angular.extend(n,t)},this.$get=["$window","$compile","$timeout","$parse","$document","$position","$interpolate",function(r,o,a,s,l,c,u){return function(r,d,p){function f(t){var e=t||h.trigger||p,i=n[e]||e;return{show:e,hide:i}}var h=angular.extend({},e,i),m=t(r),g=u.startSymbol(),v=u.endSymbol(),$="<div "+m+'-popup title="'+g+"tt_title"+v+'" content="'+g+"tt_content"+v+'" placement="'+g+"tt_placement"+v+'" animation="tt_animation" is-open="tt_isOpen"></div>';return{restrict:"EA",scope:!0,compile:function(){var t=o($);return function(e,n,i){function o(){e.tt_isOpen?p():u()}function u(){(!C||e.$eval(i[d+"Enable"]))&&(e.tt_popupDelay?(w=a(m,e.tt_popupDelay,!1),w.then(function(t){t()})):m()())}function p(){e.$apply(function(){g()})}function m(){return e.tt_content?(v(),b&&a.cancel(b),y.css({top:0,left:0,display:"block"}),x?l.find("body").append(y):n.after(y),S(),e.tt_isOpen=!0,e.$digest(),S):angular.noop}function g(){e.tt_isOpen=!1,a.cancel(w),e.tt_animation?b=a($,500):$()}function v(){y&&$(),y=t(e,function(){}),e.$digest()}function $(){y&&(y.remove(),y=null)}var y,b,w,x=angular.isDefined(h.appendToBody)?h.appendToBody:!1,_=f(void 0),k=!1,C=angular.isDefined(i[d+"Enable"]),S=function(){var t,i,r,o;switch(t=x?c.offset(n):c.position(n),i=y.prop("offsetWidth"),r=y.prop("offsetHeight"),e.tt_placement){case"right":o={top:t.top+t.height/2-r/2,left:t.left+t.width+10};break;case"bottom":o={top:t.top+t.height+10,left:t.left};break;case"left":o={top:t.top+t.height/2-r/2,left:t.left-i-10};break;default:o={top:t.top-r-10,left:t.left}}o.top+="px",o.left+="px",y.css(o)};e.tt_isOpen=!1,i.$observe(r,function(t){e.tt_content=t,!t&&e.tt_isOpen&&g()}),i.$observe(d+"Title",function(t){e.tt_title=t}),i[d+"Placement"]=i[d+"Placement"]||null,i.$observe(d+"Placement",function(t){e.tt_placement=angular.isDefined(t)&&t?t:h.placement}),i[d+"PopupDelay"]=i[d+"PopupDelay"]||null,i.$observe(d+"PopupDelay",function(t){var n=parseInt(t,10);e.tt_popupDelay=isNaN(n)?h.popupDelay:n});var T=function(){k&&(angular.isFunction(_.show)?A():(n.unbind(_.show,u),n.unbind(_.hide,p)))},A=function(){};i[d+"Trigger"]=i[d+"Trigger"]||null,i.$observe(d+"Trigger",function(t){T(),A(),_=f(t),angular.isFunction(_.show)?A=e.$watch(function(){return _.show(e,n,i)},function(t){return a(t?m:g)}):_.show===_.hide?n.bind(_.show,o):(n.bind(_.show,u),n.bind(_.hide,p)),k=!0});var E=e.$eval(i[d+"Animation"]);e.tt_animation=angular.isDefined(E)?!!E:h.animation,i.$observe(d+"AppendToBody",function(t){x=angular.isDefined(t)?s(t)(e):x}),x&&e.$on("$locationChangeSuccess",function(){e.tt_isOpen&&g()}),e.$on("$destroy",function(){a.cancel(b),a.cancel(w),T(),A(),$()})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(t){return t("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(t){return t("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("mm.foundation.popover",["mm.foundation.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(t){return t("popover","popover","click")}]),angular.module("mm.foundation.progressbar",["mm.foundation.transition"]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig","$transition",function(t,e,n,i){var r=this,o=[],a=angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max,s=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;this.addBar=function(t,e){var n=0,i=t.$parent.$index;angular.isDefined(i)&&o[i]&&(n=o[i].value),o.push(t),this.update(e,t.value,n),t.$watch("value",function(t,n){t!==n&&r.update(e,t,n)}),t.$on("$destroy",function(){r.removeBar(t)})},this.update=function(t,e,n){var r=this.getPercentage(e);s?(t.css("width",this.getPercentage(n)+"%"),i(t,{width:r+"%"})):t.css({transition:"none",width:r+"%"})},this.removeBar=function(t){o.splice(o.indexOf(t),1)},this.getPercentage=function(t){return Math.round(100*t/a)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},template:'<div class="progress" ng-transclude></div>'}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]))}}}),angular.module("mm.foundation.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","$parse","ratingConfig",function(t,e,n,i){this.maxRange=angular.isDefined(e.max)?t.$parent.$eval(e.max):i.max,this.stateOn=angular.isDefined(e.stateOn)?t.$parent.$eval(e.stateOn):i.stateOn,this.stateOff=angular.isDefined(e.stateOff)?t.$parent.$eval(e.stateOff):i.stateOff,this.createRateObjects=function(t){for(var e={stateOn:this.stateOn,stateOff:this.stateOff},n=0,i=t.length;i>n;n++)t[n]=angular.extend({index:n},e,t[n]);return t},t.range=this.createRateObjects(angular.isDefined(e.ratingStates)?angular.copy(t.$parent.$eval(e.ratingStates)):new Array(this.maxRange)),t.rate=function(e){t.value===e||t.readonly||(t.value=e)},t.enter=function(e){t.readonly||(t.val=e),t.onHover({value:e})},t.reset=function(){t.val=angular.copy(t.value),t.onLeave()},t.$watch("value",function(e){t.val=e}),t.readonly=!1,e.readonly&&t.$parent.$watch(n(e.readonly),function(e){t.readonly=!!e})}]).directive("rating",function(){return{restrict:"EA",scope:{value:"=",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0}}),angular.module("mm.foundation.tabs",[]).controller("TabsetController",["$scope",function(t){var e=this,n=e.tabs=t.tabs=[];e.select=function(t){angular.forEach(n,function(t){t.active=!1}),t.active=!0},e.addTab=function(t){n.push(t),(1===n.length||t.active)&&e.select(t)},e.removeTab=function(t){var i=n.indexOf(t);if(t.active&&n.length>1){var r=i==n.length-1?i-1:i+1;e.select(n[r])}n.splice(i,1)}}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){t.vertical=angular.isDefined(n.vertical)?t.$parent.$eval(n.vertical):!1,t.justified=angular.isDefined(n.justified)?t.$parent.$eval(n.justified):!1,t.type=angular.isDefined(n.type)?t.$parent.$eval(n.type):"tabs"}}}).directive("tab",["$parse",function(t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(e,n,i){return function(e,n,r,o){var a,s;r.active?(a=t(r.active),s=a.assign,e.$parent.$watch(a,function(t,n){t!==n&&(e.active=!!t)}),e.active=a(e.$parent)):s=a=angular.noop,e.$watch("active",function(t){angular.isFunction(s)&&(s(e.$parent,t),t?(o.select(e),e.onSelect()):e.onDeselect())}),e.disabled=!1,r.disabled&&e.$parent.$watch(t(r.disabled),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},o.addTab(e),e.$on("$destroy",function(){o.removeTab(e)}),e.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}]).directive("tabContentTransclude",function(){function t(t){return t.tagName&&(t.hasAttribute("tab-heading")||t.hasAttribute("data-tab-heading")||"tab-heading"===t.tagName.toLowerCase()||"data-tab-heading"===t.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(e,n,i){var r=e.$eval(i.tabContentTransclude);r.$transcludeFn(r.$parent,function(e){angular.forEach(e,function(e){t(e)?r.headingElement=e:n.append(e)})})}}}),angular.module("mm.foundation.topbar",["mm.foundation.mediaQueries"]).factory("closest",[function(){return function(t,e){for(var n=function(t,e){for(var n=(t.parentNode||t.document).querySelectorAll(e),i=-1;n[++i]&&n[i]!=t;);return!!n[i]},i=t[0];i;){if(n(i,e))return angular.element(i);i=i.parentElement}return!1}}]).directive("topBar",["$timeout","$compile","$window","$document","mediaQueries",function(t,e,n,i,r){return{scope:{stickyClass:"@",backText:"@",stickyOn:"=",customBackText:"=",isHover:"=",mobileShowParentLink:"=",scrolltop:"="},restrict:"EA",replace:!0,templateUrl:"template/topbar/top-bar.html",transclude:!0,controller:["$window","$scope","closest",function(e,n,o){n.settings={},n.settings.stickyClass=n.stickyClass||"sticky",n.settings.backText=n.backText||"Back",n.settings.stickyOn=n.stickyOn||"all",n.settings.customBackText=void 0===n.customBackText?!0:n.customBackText,n.settings.isHover=void 0===n.isHover?!0:n.isHover,n.settings.mobileShowParentLink=void 0===n.mobileShowParentLink?!0:n.mobileShowParentLink,n.settings.scrolltop=void 0===n.scrolltop?!0:n.scrolltop,this.settings=n.settings,n.index=0;var a=function(t){var e=t.offsetHeight,n=t.currentStyle||getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10)},s=[];this.addSection=function(t){s.push(t)},this.removeSection=function(t){var e=s.indexOf(t);e>-1&&s.splice(e,1)};var l=/rtl/i.test(i.find("html").attr("dir"))?"right":"left";n.$watch("index",function(t){for(var e=0;e<s.length;e++)s[e].move(l,t)}),this.toggle=function(t){n.toggle(t);for(var e=0;e<s.length;e++)s[e].reset();n.index=0,n.height="",n.$apply()},this.back=function(e){if(!(n.index<1)&&r.topbarBreakpoint()){var i=angular.element(e.currentTarget),s=o(i,"li.moved"),l=s.parent();n.index=n.index-1,n.height=0===n.index?"":n.originalHeight+a(l[0]),t(function(){s.removeClass("moved")},300)}},this.forward=function(t){if(!r.topbarBreakpoint())return!1;var e=angular.element(t.currentTarget),i=o(e,"li");i.addClass("moved"),n.height=n.originalHeight+a(e.parent()[0].querySelector("ul")),n.index=n.index+1,n.$apply()}}],link:function(t,e){var o=t.topbar=e,a=o.parent(),s=angular.element(i[0].querySelector("body")),l=r.topbarBreakpoint(),c=t.isSticky=function(){var e=a.hasClass(t.settings.stickyClass);return e&&"all"===t.settings.stickyOn?!0:e&&r.small()&&"small"===t.settings.stickyOn?!0:e&&r.medium()&&"medium"===t.settings.stickyOn?!0:e&&r.large()&&"large"===t.settings.stickyOn?!0:!1},u=function(){if(t.stickyTopbar&&t.isSticky()){var e=f;n.pageYOffset>e&&!a.hasClass("fixed")?(a.addClass("fixed"),s.css("padding-top",t.originalHeight+"px")):n.pageYOffset<=e&&a.hasClass("fixed")&&(a.removeClass("fixed"),s.css("padding-top",""))}},d=function(){var e=r.topbarBreakpoint();if(l!==e){l=r.topbarBreakpoint(),o.removeClass("expanded"),o.parent().removeClass("expanded"),t.height="";var n=angular.element(o[0].querySelectorAll("section"));angular.forEach(n,function(t){angular.element(t.querySelectorAll("li.moved")).removeClass("moved")}),t.$apply()}},p=function(){u(),t.$apply()};if(t.toggle=function(e){if(!r.topbarBreakpoint())return!1;var i=void 0===e?!o.hasClass("expanded"):e;i?o.addClass("expanded"):o.removeClass("expanded"),t.settings.scrolltop?!i&&o.hasClass("fixed")?(o.parent().addClass("fixed"),o.removeClass("fixed"),s.css("padding-top",t.originalHeight+"px")):i&&o.parent().hasClass("fixed")&&(o.parent().removeClass("fixed"),o.addClass("fixed"),s.css("padding-top",""),n.scrollTo(0,0)):(c()&&o.parent().addClass("fixed"),o.parent().hasClass("fixed")&&(i?(o.addClass("fixed"),o.parent().addClass("expanded"),s.css("padding-top",t.originalHeight+"px")):(o.removeClass("fixed"),o.parent().removeClass("expanded"),u())))},a.hasClass("fixed")||c()){t.stickyTopbar=!0,t.height=a[0].offsetHeight;var f=a[0].getBoundingClientRect().top+n.pageYOffset}else t.height=o[0].offsetHeight;t.originalHeight=t.height,t.$watch("height",function(t){t?o.css("height",t+"px"):o.css("height","")}),angular.element(n).bind("resize",d),angular.element(n).bind("scroll",p),t.$on("$destroy",function(){angular.element(n).unbind("scroll",d),angular.element(n).unbind("resize",p)}),a.hasClass("fixed")&&s.css("padding-top",t.originalHeight+"px")}}}]).directive("toggleTopBar",["closest",function(t){return{scope:{},require:"^topBar",restrict:"A",replace:!0,templateUrl:"template/topbar/toggle-top-bar.html",transclude:!0,link:function(e,n,i,r){n.bind("click",function(e){var n=t(angular.element(e.currentTarget),"li");n.hasClass("back")||n.hasClass("has-dropdown")||r.toggle()}),e.$on("$destroy",function(){n.unbind("click")})}}}]).directive("topBarSection",["$compile","closest",function(t,e){return{scope:{},require:"^topBar",restrict:"EA",replace:!0,templateUrl:"template/topbar/top-bar-section.html",transclude:!0,link:function(t,n,i,r){var o=n;t.reset=function(){angular.element(o[0].querySelectorAll("li.moved")).removeClass("moved")},t.move=function(t,e){o.css("left"===t?{left:-100*e+"%"}:{right:-100*e+"%"})},r.addSection(t),t.$on("$destroy",function(){r.removeSection(t)});var a=o[0].querySelectorAll("li>a");angular.forEach(a,function(n){var i=angular.element(n),o=e(i,"li");o.hasClass("has-dropdown")||o.hasClass("back")||o.hasClass("title")||(i.bind("click",function(){r.toggle(!1)}),t.$on("$destroy",function(){i.bind("click")}))})}}}]).directive("hasDropdown",["mediaQueries",function(t){return{scope:{},require:"^topBar",restrict:"A",templateUrl:"template/topbar/has-dropdown.html",replace:!0,transclude:!0,link:function(e,n,i,r){e.triggerLink=n.children("a")[0];var o=angular.element(e.triggerLink);o.bind("click",function(t){r.forward(t)}),e.$on("$destroy",function(){o.unbind("click")}),n.bind("mouseenter",function(){r.settings.isHover&&!t.topbarBreakpoint()&&n.addClass("not-click")}),n.bind("click",function(){r.settings.isHover||t.topbarBreakpoint()||n.toggleClass("not-click")}),n.bind("mouseleave",function(){n.removeClass("not-click")}),e.$on("$destroy",function(){n.unbind("click"),n.unbind("mouseenter"),n.unbind("mouseleave")})},controller:["$window","$scope",function(t,e){this.triggerLink=e.triggerLink}]}}]).directive("topBarDropdown",["$compile",function(t){return{scope:{},require:["^topBar","^hasDropdown"],restrict:"A",replace:!0,templateUrl:"template/topbar/top-bar-dropdown.html",transclude:!0,link:function(e,n,i,r){var o,a=r[0],s=r[1],l=angular.element(s.triggerLink),c=l.attr("href");e.linkText=l.text(),e.back=function(t){a.back(t)},e.backText=a.settings.customBackText?a.settings.backText:"&laquo; "+l.html(),o=angular.element(a.settings.mobileShowParentLink&&c&&c.length>1?'<li class="title back js-generated"><h5><a href="#" ng-click="back($event);">{{backText}}</a></h5></li><li><a class="parent-link js-generated" href="'+c+'">{{linkText}}</a></li>':'<li class="title back js-generated"><h5><a href="" ng-click="back($event);">{{backText}}</a></h5></li>'),t(o)(e),n.prepend(o)}}}]),angular.module("mm.foundation.tour",["mm.foundation.position","mm.foundation.tooltip"]).service("$tour",["$window",function(t){function e(){try{return parseInt(t.localStorage.getItem("mm.tour.step"),10)}catch(e){if("SecurityError"!==e.name)throw e}}function n(){try{t.localStorage.setItem("mm.tour.step",r)}catch(e){if("SecurityError"!==e.name)throw e}}function i(t){r=t,n()}var r=e(),o={};this.add=function(t,e){o[t]=e},this.has=function(t){return!!o[t]},this.isActive=function(){return r>0},this.current=function(t){return t?void i(r):r},this.start=function(){i(1)},this.next=function(){i(r+1)},this.end=function(){i(0)}}]).directive("stepTextPopup",["$tour",function(t){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tour/tour.html",link:function(e,n){e.isLastStep=function(){return!t.has(t.current()+1)},e.endTour=function(){n.remove(),t.end()},e.nextStep=function(){n.remove(),t.next()},e.$on("$locationChangeSuccess",e.endTour)}}}]).directive("stepText",["$position","$tooltip","$tour","$window",function(t,e,n,i){function r(t){var e=t[0].getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=i.innerHeight-80&&e.right<=i.innerWidth}function o(e,o,a){var s=parseInt(a.stepIndex,10);if(n.isActive()&&s&&(n.add(s,a),s===n.current())){if(!r(o)){var l=t.offset(o);i.scrollTo(0,l.top-i.innerHeight/2)}return!0}return!1}return e("stepText","step",o)}]),angular.module("mm.foundation.typeahead",["mm.foundation.position","mm.foundation.bindHtml"]).factory("typeaheadParser",["$parse",function(t){var e=/^\s*(.*?)(?:\s+as\s+(.*?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+(.*)$/;return{parse:function(n){var i=n.match(e);if(!i)throw new Error("Expected typeahead specification in form of '_modelValue_ (as _label_)? for _item_ in _collection_' but got '"+n+"'.");return{itemName:i[3],source:t(i[4]),viewMapper:t(i[2]||i[1]),modelMapper:t(i[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(t,e,n,i,r,o,a){var s=[9,13,27,38,40];return{require:"ngModel",link:function(l,c,u,d){var p,f=l.$eval(u.typeaheadMinLength)||1,h=l.$eval(u.typeaheadWaitMs)||0,m=l.$eval(u.typeaheadEditable)!==!1,g=e(u.typeaheadLoading).assign||angular.noop,v=e(u.typeaheadOnSelect),$=u.typeaheadInputFormatter?e(u.typeaheadInputFormatter):void 0,y=u.typeaheadAppendToBody?e(u.typeaheadAppendToBody):!1,b=e(u.ngModel).assign,w=a.parse(u.typeahead),x=angular.element("<div typeahead-popup></div>");x.attr({matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(u.typeaheadTemplateUrl)&&x.attr("template-url",u.typeaheadTemplateUrl);var _=l.$new();l.$on("$destroy",function(){_.$destroy()});var k=function(){_.matches=[],_.activeIdx=-1},C=function(t){var e={$viewValue:t};g(l,!0),n.when(w.source(l,e)).then(function(n){if(t===d.$viewValue&&p){if(n.length>0){_.activeIdx=0,_.matches.length=0;for(var i=0;i<n.length;i++)e[w.itemName]=n[i],_.matches.push({label:w.viewMapper(_,e),model:n[i]});_.query=t,_.position=y?o.offset(c):o.position(c),_.position.top=_.position.top+c.prop("offsetHeight")}else k();g(l,!1)}},function(){k(),g(l,!1)})};k(),_.query=void 0;var S;d.$parsers.unshift(function(t){return t&&t.length>=f?h>0?(S&&i.cancel(S),S=i(function(){C(t)},h)):C(t):(g(l,!1),k()),m?t:t?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),t)}),d.$formatters.push(function(t){var e,n,i={};return $?(i.$model=t,$(l,i)):(i[w.itemName]=t,e=w.viewMapper(l,i),i[w.itemName]=void 0,n=w.viewMapper(l,i),e!==n?e:t)}),_.select=function(t){var e,n,i={};i[w.itemName]=n=_.matches[t].model,e=w.modelMapper(l,i),b(l,e),d.$setValidity("editable",!0),v(l,{$item:n,$model:e,$label:w.viewMapper(l,i)}),k(),c[0].focus()},c.bind("keydown",function(t){0!==_.matches.length&&-1!==s.indexOf(t.which)&&(t.preventDefault(),40===t.which?(_.activeIdx=(_.activeIdx+1)%_.matches.length,_.$digest()):38===t.which?(_.activeIdx=(_.activeIdx?_.activeIdx:_.matches.length)-1,_.$digest()):13===t.which||9===t.which?_.$apply(function(){_.select(_.activeIdx)}):27===t.which&&(t.stopPropagation(),k(),_.$digest()))}),c.bind("blur",function(){p=!1}),c.bind("focus",function(){p=!0});var T=function(t){c[0]!==t.target&&(k(),_.$digest())};r.bind("click",T),l.$on("$destroy",function(){r.unbind("click",T)});var A=t(x)(_);y?r.find("body").append(A):c.after(A)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(t,e,n){t.templateUrl=n.templateUrl,t.isOpen=function(){return t.matches.length>0},t.isActive=function(e){return t.active==e},t.selectActive=function(e){t.active=e},t.selectMatch=function(e){t.select({activeIdx:e})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(t,e,n,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,o,a){var s=i(a.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";t.get(s,{cache:e}).success(function(t){o.replaceWith(n(t.trim())(r))})}}}]).filter("typeaheadHighlight",function(){function t(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(e,n){return n?e.replace(new RegExp(t(n),"gi"),"<strong>$&</strong>"):e}}),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion-group.html",'<dd>\n  <a ng-click="isOpen = !isOpen" ng-class="{ active: isOpen }"  accordion-transclude="heading">{{heading}}</a>\n  <div class="content" ng-style="isOpen ? {display: \'block\'} : {}" ng-transclude></div>\n</dd>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion.html",'<dl class="accordion" ng-transclude></dl>\n')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("template/alert/alert.html","<div class='alert-box' ng-class='(type || \"\")'>\n  <span ng-transclude></span>\n  <a ng-show='closeable' class='close' ng-click='close()'>&times;</a>\n</div>\n")}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("template/modal/backdrop.html",'<div class="reveal-modal-bg fade" ng-class="{in: animate}" ng-click="close($event)" style="display: block"></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(t){t.put("template/modal/window.html",'<div tabindex="-1" class="reveal-modal fade {{ windowClass }}"\n  ng-class="{in: animate}" style="display: block; visibility: visible">\n  <div ng-transclude></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pager.html",'<ul class="pagination">\n  <li ng-repeat="page in pages" class="arrow" ng-class="{unavailable: page.disabled, left: page.previous, right: page.next}"><a ng-click="selectPage(page.number)">{{page.text}}</a></li>\n</ul>\n')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-repeat="page in pages" ng-class="{arrow: $first || $last, current: page.active, unavailable: page.disabled}"><a ng-click="selectPage(page.number)">{{page.text}}</a></li>\n</ul>\n')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-html-unsafe-popup.html",'<span class="tooltip tip-{{placement}}"\n  ng-class="{ in: isOpen(), fade: animation() }"\n  style="width: auto">\n  <span bind-html-unsafe="content"></span>\n  <span class="nub"></span>\n</span>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-popup.html",'<span class="tooltip tip-{{placement}}"\n  ng-class="{ in: isOpen(), fade: animation() }"\n  style="width: auto">\n  <span ng-bind="content"></span>\n  <span class="nub"></span>\n</span>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover.html",'<div class="joyride-tip-guide" ng-class="{ in: isOpen(), fade: animation() }">\n  <span class="joyride-nub" ng-class="{\n    bottom: placement === \'top\',\n    left: placement === \'right\',\n    right: placement === \'left\',\n    top: placement === \'bottom\'\n  }"></span>\n  <div class="joyride-content-wrapper">\n    <h4 ng-bind="title" ng-show="title"></h4>\n    <p ng-bind="content"></p>\n  </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/bar.html",'<span class="meter" ng-transclude></span>\n')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progress.html",'<div class="progress" ng-class="type" ng-transclude></div>\n')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progressbar.html",'<div class="progress" ng-class="type">\n  <span class="meter" ng-transclude></span>\n</div>\n')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("template/rating/rating.html",'<span ng-mouseleave="reset()">\n  <i ng-repeat="r in range" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="fa"\n    ng-class="$index < val && (r.stateOn || \'fa-star\') || (r.stateOff || \'fa-star-o\')"></i>\n</span>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tab.html",'<dd ng-class="{active: active}">\n  <a ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</dd>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tabset.html",'<div class="tabbable">\n  <dl class="tabs" ng-class="{\'vertical\': vertical}" ng-transclude></dl>\n  <div class="tabs-content" ng-class="{\'vertical\': vertical}">\n    <div class="content" \n      ng-repeat="tab in tabs" \n      ng-class="{active: tab.active}">\n      <div tab-content-transclude="tab"></div>\n    </div>\n  </div>\n</div>\n')}]),angular.module("template/topbar/has-dropdown.html",[]).run(["$templateCache",function(t){t.put("template/topbar/has-dropdown.html",'<li class="has-dropdown" ng-transclude></li>')}]),angular.module("template/topbar/toggle-top-bar.html",[]).run(["$templateCache",function(t){t.put("template/topbar/toggle-top-bar.html",'<li class="toggle-topbar menu-icon" ng-transclude></li>')}]),angular.module("template/topbar/top-bar-dropdown.html",[]).run(["$templateCache",function(t){t.put("template/topbar/top-bar-dropdown.html",'<ul class="dropdown" ng-transclude></ul>')}]),angular.module("template/topbar/top-bar-section.html",[]).run(["$templateCache",function(t){t.put("template/topbar/top-bar-section.html",'<section class="top-bar-section" ng-transclude></section>')}]),angular.module("template/topbar/top-bar.html",[]).run(["$templateCache",function(t){t.put("template/topbar/top-bar.html",'<nav class="top-bar" ng-transclude></nav>')}]),angular.module("template/tour/tour.html",[]).run(["$templateCache",function(t){t.put("template/tour/tour.html",'<div class="joyride-tip-guide" ng-class="{ in: isOpen(), fade: animation() }">\n  <span class="joyride-nub" ng-class="{\n    bottom: placement === \'top\',\n    left: placement === \'right\',\n    right: placement === \'left\',\n    top: placement === \'bottom\'\n  }"></span>\n  <div class="joyride-content-wrapper">\n    <h4 ng-bind="title" ng-show="title"></h4>\n    <p ng-bind="content"></p>\n    <a class="small button joyride-next-tip" ng-show="!isLastStep()" ng-click="nextStep()">Next</a>\n    <a class="small button joyride-next-tip" ng-show="isLastStep()" ng-click="endTour()">End</a>\n    <a class="joyride-close-tip" ng-click="endTour()">&times;</a>\n  </div>\n</div>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-popup.html","<ul class=\"f-dropdown\" ng-style=\"{display: isOpen()&&'block' || 'none', top: position.top+'px', left: position.left+'px'}\">\n"+'    <li ng-repeat="match in matches" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),window.Modernizr=function(t,e,n){function i(t){y.cssText=t}function r(t,e){return i(_.join(t+";")+(e||""))}function o(t,e){return typeof t===e}function a(t,e){return!!~(""+t).indexOf(e)}function s(t,e){for(var i in t){var r=t[i];if(!a(r,"-")&&y[r]!==n)return"pfx"==e?r:!0}return!1}function l(t,e,i){for(var r in t){
var a=e[t[r]];if(a!==n)return i===!1?t[r]:o(a,"function")?a.bind(i||e):a}return!1}function c(t,e,n){var i=t.charAt(0).toUpperCase()+t.slice(1),r=(t+" "+C.join(i+" ")+i).split(" ");return o(e,"string")||o(e,"undefined")?s(r,e):(r=(t+" "+S.join(i+" ")+i).split(" "),l(r,e,n))}function u(){h.input=function(n){for(var i=0,r=n.length;r>i;i++)O[n[i]]=!!(n[i]in b);return O.list&&(O.list=!(!e.createElement("datalist")||!t.HTMLDataListElement)),O}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),h.inputtypes=function(t){for(var i,r,o,a=0,s=t.length;s>a;a++)b.setAttribute("type",r=t[a]),i="text"!==b.type,i&&(b.value=w,b.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&b.style.WebkitAppearance!==n?(g.appendChild(b),o=e.defaultView,i=o.getComputedStyle&&"textfield"!==o.getComputedStyle(b,null).WebkitAppearance&&0!==b.offsetHeight,g.removeChild(b)):/^(search|tel)$/.test(r)||(i=/^(url|email)$/.test(r)?b.checkValidity&&b.checkValidity()===!1:b.value!=w)),E[t[a]]=!!i;return E}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d,p,f="2.8.3",h={},m=!0,g=e.documentElement,v="modernizr",$=e.createElement(v),y=$.style,b=e.createElement("input"),w=":)",x={}.toString,_=" -webkit- -moz- -o- -ms- ".split(" "),k="Webkit Moz O ms",C=k.split(" "),S=k.toLowerCase().split(" "),T={svg:"http://www.w3.org/2000/svg"},A={},E={},O={},D=[],P=D.slice,j=function(t,n,i,r){var o,a,s,l,c=e.createElement("div"),u=e.body,d=u||e.createElement("body");if(parseInt(i,10))for(;i--;)s=e.createElement("div"),s.id=r?r[i]:v+(i+1),c.appendChild(s);return o=["&#173;",'<style id="s',v,'">',t,"</style>"].join(""),c.id=v,(u?c:d).innerHTML+=o,d.appendChild(c),u||(d.style.background="",d.style.overflow="hidden",l=g.style.overflow,g.style.overflow="hidden",g.appendChild(d)),a=n(c,t),u?c.parentNode.removeChild(c):(d.parentNode.removeChild(d),g.style.overflow=l),!!a},M=function(e){var n=t.matchMedia||t.msMatchMedia;if(n)return n(e)&&n(e).matches||!1;var i;return j("@media "+e+" { #"+v+" { position: absolute; } }",function(e){i="absolute"==(t.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position}),i},N=function(){function t(t,r){r=r||e.createElement(i[t]||"div"),t="on"+t;var a=t in r;return a||(r.setAttribute||(r=e.createElement("div")),r.setAttribute&&r.removeAttribute&&(r.setAttribute(t,""),a=o(r[t],"function"),o(r[t],"undefined")||(r[t]=n),r.removeAttribute(t))),r=null,a}var i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),q={}.hasOwnProperty;p=o(q,"undefined")||o(q.call,"undefined")?function(t,e){return e in t&&o(t.constructor.prototype[e],"undefined")}:function(t,e){return q.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var n=P.call(arguments,1),i=function(){if(this instanceof i){var r=function(){};r.prototype=e.prototype;var o=new r,a=e.apply(o,n.concat(P.call(arguments)));return Object(a)===a?a:o}return e.apply(t,n.concat(P.call(arguments)))};return i}),A.flexbox=function(){return c("flexWrap")},A.flexboxlegacy=function(){return c("boxDirection")},A.canvas=function(){var t=e.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},A.canvastext=function(){return!(!h.canvas||!o(e.createElement("canvas").getContext("2d").fillText,"function"))},A.webgl=function(){return!!t.WebGLRenderingContext},A.touch=function(){var n;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?n=!0:j(["@media (",_.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){n=9===t.offsetTop}),n},A.geolocation=function(){return"geolocation"in navigator},A.postmessage=function(){return!!t.postMessage},A.websqldatabase=function(){return!!t.openDatabase},A.indexedDB=function(){return!!c("indexedDB",t)},A.hashchange=function(){return N("hashchange",t)&&(e.documentMode===n||e.documentMode>7)},A.history=function(){return!(!t.history||!history.pushState)},A.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},A.websockets=function(){return"WebSocket"in t||"MozWebSocket"in t},A.rgba=function(){return i("background-color:rgba(150,255,150,.5)"),a(y.backgroundColor,"rgba")},A.hsla=function(){return i("background-color:hsla(120,40%,100%,.5)"),a(y.backgroundColor,"rgba")||a(y.backgroundColor,"hsla")},A.multiplebgs=function(){return i("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(y.background)},A.backgroundsize=function(){return c("backgroundSize")},A.borderimage=function(){return c("borderImage")},A.borderradius=function(){return c("borderRadius")},A.boxshadow=function(){return c("boxShadow")},A.textshadow=function(){return""===e.createElement("div").style.textShadow},A.opacity=function(){return r("opacity:.55"),/^0.55$/.test(y.opacity)},A.cssanimations=function(){return c("animationName")},A.csscolumns=function(){return c("columnCount")},A.cssgradients=function(){var t="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return i((t+"-webkit- ".split(" ").join(e+t)+_.join(n+t)).slice(0,-t.length)),a(y.backgroundImage,"gradient")},A.cssreflections=function(){return c("boxReflect")},A.csstransforms=function(){return!!c("transform")},A.csstransforms3d=function(){var t=!!c("perspective");return t&&"webkitPerspective"in g.style&&j("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,n){t=9===e.offsetLeft&&3===e.offsetHeight}),t},A.csstransitions=function(){return c("transition")},A.fontface=function(){var t;return j('@font-face {font-family:"font";src:url("https://")}',function(n,i){var r=e.getElementById("smodernizr"),o=r.sheet||r.styleSheet,a=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"";t=/src/i.test(a)&&0===a.indexOf(i.split(" ")[0])}),t},A.generatedcontent=function(){var t;return j(["#",v,"{font:0/0 a}#",v,':after{content:"',w,'";visibility:hidden;font:3px/1 a}'].join(""),function(e){t=e.offsetHeight>=3}),t},A.video=function(){var t=e.createElement("video"),n=!1;try{(n=!!t.canPlayType)&&(n=new Boolean(n),n.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(i){}return n},A.audio=function(){var t=e.createElement("audio"),n=!1;try{(n=!!t.canPlayType)&&(n=new Boolean(n),n.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(i){}return n},A.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(t){return!1}},A.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(t){return!1}},A.webworkers=function(){return!!t.Worker},A.applicationcache=function(){return!!t.applicationCache},A.svg=function(){return!!e.createElementNS&&!!e.createElementNS(T.svg,"svg").createSVGRect},A.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==T.svg},A.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(x.call(e.createElementNS(T.svg,"animate")))},A.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(x.call(e.createElementNS(T.svg,"clipPath")))};for(var H in A)p(A,H)&&(d=H.toLowerCase(),h[d]=A[H](),D.push((h[d]?"":"no-")+d));return h.input||u(),h.addTest=function(t,e){if("object"==typeof t)for(var i in t)p(t,i)&&h.addTest(i,t[i]);else{if(t=t.toLowerCase(),h[t]!==n)return h;e="function"==typeof e?e():e,"undefined"!=typeof m&&m&&(g.className+=" "+(e?"":"no-")+t),h[t]=e}return h},i(""),$=b=null,function(t,e){function n(t,e){var n=t.createElement("p"),i=t.getElementsByTagName("head")[0]||t.documentElement;return n.innerHTML="x<style>"+e+"</style>",i.insertBefore(n.lastChild,i.firstChild)}function i(){var t=$.elements;return"string"==typeof t?t.split(" "):t}function r(t){var e=v[t[m]];return e||(e={},g++,t[m]=g,v[g]=e),e}function o(t,n,i){if(n||(n=e),u)return n.createElement(t);i||(i=r(n));var o;return o=i.cache[t]?i.cache[t].cloneNode():h.test(t)?(i.cache[t]=i.createElem(t)).cloneNode():i.createElem(t),!o.canHaveChildren||f.test(t)||o.tagUrn?o:i.frag.appendChild(o)}function a(t,n){if(t||(t=e),u)return t.createDocumentFragment();n=n||r(t);for(var o=n.frag.cloneNode(),a=0,s=i(),l=s.length;l>a;a++)o.createElement(s[a]);return o}function s(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(n){return $.shivMethods?o(n,t,e):e.createElem(n)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")($,e.frag)}function l(t){t||(t=e);var i=r(t);return!$.shivCSS||c||i.hasCSS||(i.hasCSS=!!n(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||s(t,i),t}var c,u,d="3.7.0",p=t.html5||{},f=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,m="_html5shiv",g=0,v={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",c="hidden"in t,u=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return"undefined"==typeof t.cloneNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.createElement}()}catch(n){c=!0,u=!0}}();var $={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:d,shivCSS:p.shivCSS!==!1,supportsUnknownElements:u,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:l,createElement:o,createDocumentFragment:a};t.html5=$,l(e)}(this,e),h._version=f,h._prefixes=_,h._domPrefixes=S,h._cssomPrefixes=C,h.mq=M,h.hasEvent=N,h.testProp=function(t){return s([t])},h.testAllProps=c,h.testStyles=j,h.prefixed=function(t,e,n){return e?c(t,e,n):c(t,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(m?" js "+D.join(" "):""),h}(this,this.document),!function(t,e,n){"use strict";t.fn.scrollUp=function(e){t.data(n.body,"scrollUp")||(t.data(n.body,"scrollUp",!0),t.fn.scrollUp.init(e))},t.fn.scrollUp.init=function(i){var r,o,a,s,l,c,u,d=t.fn.scrollUp.settings=t.extend({},t.fn.scrollUp.defaults,i),p=!1;switch(u=d.scrollTrigger?t(d.scrollTrigger):t("<a/>",{id:d.scrollName,href:"#top"}),d.scrollTitle&&u.attr("title",d.scrollTitle),u.appendTo("body"),d.scrollImg||d.scrollTrigger||u.html(d.scrollText),u.css({display:"none",position:"fixed",zIndex:d.zIndex}),d.activeOverlay&&t("<div/>",{id:d.scrollName+"-active"}).css({position:"absolute",top:d.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+d.activeOverlay,zIndex:d.zIndex}).appendTo("body"),d.animation){case"fade":r="fadeIn",o="fadeOut",a=d.animationSpeed;break;case"slide":r="slideDown",o="slideUp",a=d.animationSpeed;break;default:r="show",o="hide",a=0}s="top"===d.scrollFrom?d.scrollDistance:t(n).height()-t(e).height()-d.scrollDistance,l=t(e).scroll(function(){t(e).scrollTop()>s?p||(u[r](a),p=!0):p&&(u[o](a),p=!1)}),d.scrollTarget?"number"==typeof d.scrollTarget?c=d.scrollTarget:"string"==typeof d.scrollTarget&&(c=Math.floor(t(d.scrollTarget).offset().top)):c=0,u.click(function(e){e.preventDefault(),t("html, body").animate({scrollTop:c},d.scrollSpeed,d.easingType)})},t.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},t.fn.scrollUp.destroy=function(i){t.removeData(n.body,"scrollUp"),t("#"+t.fn.scrollUp.settings.scrollName).remove(),t("#"+t.fn.scrollUp.settings.scrollName+"-active").remove(),t.fn.jquery.split(".")[1]>=7?t(e).off("scroll",i):t(e).unbind("scroll",i)},t.scrollUp=t.fn.scrollUp}(jQuery,window,document),function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var n,i=document.createElement(t||"div");for(n in e)i[n]=e[n];return i}function e(t){for(var e=1,n=arguments.length;n>e;e++)t.appendChild(arguments[e]);return t}function n(t,e,n,i){var r=["opacity",e,~~(100*t),n,i].join("-"),o=.01+n/i*100,a=Math.max(1-(1-t)/e*(100-o),t),s=c.substring(0,c.indexOf("Animation")).toLowerCase(),l=s&&"-"+s+"-"||"";return d[r]||(p.insertRule("@"+l+"keyframes "+r+"{0%{opacity:"+a+"}"+o+"%{opacity:"+t+"}"+(o+.01)+"%{opacity:1}"+(o+e)%100+"%{opacity:"+t+"}100%{opacity:"+a+"}}",p.cssRules.length),d[r]=1),r}function i(t,e){var n,i,r=t.style;for(e=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<u.length;i++)if(n=u[i]+e,void 0!==r[n])return n;return void 0!==r[e]?e:void 0}function r(t,e){for(var n in e)t.style[i(t,n)||n]=e[n];return t}function o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)void 0===t[i]&&(t[i]=n[i])}return t}function a(t,e){return"string"==typeof t?t:t[e%t.length]}function s(t){this.opts=o(t||{},s.defaults,f)}function l(){function n(e,n){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}p.addRule(".spin-vml","behavior:url(#default#VML)"),s.prototype.lines=function(t,i){function o(){return r(n("group",{coordsize:u+" "+u,coordorigin:-c+" "+-c}),{width:u,height:u})}function s(t,s,l){e(p,e(r(o(),{rotation:360/i.lines*t+"deg",left:~~s}),e(r(n("roundrect",{arcsize:i.corners}),{width:c,height:i.width,left:i.radius,top:-i.width>>1,filter:l}),n("fill",{color:a(i.color,t),opacity:i.opacity}),n("stroke",{opacity:0}))))}var l,c=i.length+i.width,u=2*c,d=2*-(i.width+i.length)+"px",p=r(o(),{position:"absolute",top:d,left:d});if(i.shadow)for(l=1;l<=i.lines;l++)s(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=i.lines;l++)s(l);return e(t,p)},s.prototype.opacity=function(t,e,n,i){var r=t.firstChild;i=i.shadow&&i.lines||0,r&&e+i<r.childNodes.length&&(r=r.childNodes[e+i],r=r&&r.firstChild,r=r&&r.firstChild,r&&(r.opacity=n))}}var c,u=["webkit","Moz","ms","O"],d={},p=function(){var n=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),f={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};s.defaults={},o(s.prototype,{spin:function(e){this.stop();var n=this,i=n.opts,o=n.el=r(t(0,{className:i.className}),{position:i.position,width:0,zIndex:i.zIndex});if(r(o,{left:i.left,top:i.top}),e&&e.insertBefore(o,e.firstChild||null),o.setAttribute("role","progressbar"),n.lines(o,n.opts),!c){var a,s=0,l=(i.lines-1)*(1-i.direction)/2,u=i.fps,d=u/i.speed,p=(1-i.opacity)/(d*i.trail/100),f=d/i.lines;!function h(){s++;for(var t=0;t<i.lines;t++)a=Math.max(1-(s+(i.lines-t)*f)%d*p,i.opacity),n.opacity(o,t*i.direction+l,a,i);n.timeout=n.el&&setTimeout(h,~~(1e3/u))}()}return n},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(i,o){function s(e,n){return r(t(),{position:"absolute",width:o.length+o.width+"px",height:o.width+"px",background:e,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*u+o.rotate)+"deg) translate("+o.radius+"px,0)",borderRadius:(o.corners*o.width>>1)+"px"})}for(var l,u=0,d=(o.lines-1)*(1-o.direction)/2;u<o.lines;u++)l=r(t(),{position:"absolute",top:1+~(o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:c&&n(o.opacity,o.trail,d+u*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&e(l,r(s("#000","0 0 4px #000"),{top:"2px"})),e(i,e(l,s(a(o.color,u),"0 0 1px rgba(0,0,0,.1)")));return i},opacity:function(t,e,n){e<t.childNodes.length&&(t.childNodes[e].style.opacity=n)}});var h=r(t("group"),{behavior:"url(#default#VML)"});return!i(h,"transform")&&h.adj?l():c=i(h,"animation"),s}),function(t){"use strict";function e(t,e){return t.module("angularSpinner",[]).provider("usSpinnerConfig",function(){var t={};return{setDefaults:function(e){t=e||t},$get:function(){return{config:t}}}}).factory("usSpinnerService",["$rootScope",function(t){var e={};return e.spin=function(e){t.$broadcast("us-spinner:spin",e)},e.stop=function(e){t.$broadcast("us-spinner:stop",e)},e}]).directive("usSpinner",["$window","usSpinnerConfig",function(n,i){return{scope:!0,link:function(r,o,a){function s(){r.spinner&&r.spinner.stop()}var l=e||n.Spinner;r.spinner=null,r.key=t.isDefined(a.spinnerKey)?a.spinnerKey:!1,r.startActive=t.isDefined(a.spinnerStartActive)?r.$eval(a.spinnerStartActive):r.key?!1:!0,r.spin=function(){r.spinner&&r.spinner.spin(o[0])},r.stop=function(){r.startActive=!1,s()},r.$watch(a.usSpinner,function(t){s(),t=t||{};for(var e in i.config)void 0===t[e]&&(t[e]=i.config[e]);r.spinner=new l(t),(!r.key||r.startActive)&&r.spinner.spin(o[0])},!0),r.$on("us-spinner:spin",function(t,e){e===r.key&&r.spin()}),r.$on("us-spinner:stop",function(t,e){e===r.key&&r.stop()}),r.$on("$destroy",function(){r.stop(),r.spinner=null})}}}])}"function"==typeof define&&define.amd?define(["angular","spin"],e):e(t.angular)}(window),function(){"use strict";var t=function(t,e){var n=t.lastIndexOf(e),i=t.substring(0,n);return i},e={radius:15,width:5,length:18},n={radius:50,width:10,length:60},i={radius:35,width:8,length:50},r={small:e,medium:i,large:n};angular.module("angular-ui-view-spinner",[]).directive("uiLoadingView",["$rootScope","$timeout",function(e,n){return{priority:1e3,restrict:"EA",scope:{name:"@?",autoscroll:"@?",templateUrl:"@?",rootState:"@?",spinnerSettings:"@?",size:"@?"},compile:function(i,o){return{post:function(i,o,a){if(a.size=a.size||"medium",a.size&&!a.spinnerSettings&&(a.spinnerSettings=r[a.size],!a.spinnerSettings))throw new Error("angular-ui-view-spinner directive: Invalid size specified '"+a.size+"'.  Valid values are: small, medium or large.");var s=i.rootState;i.spinnerEnabled=!1,i.isSpinnerEnabled=function(){return!!i.spinnerEnabled},i.isNextRouteLoading=function(){return i.nextRouteLoading},i.showView=function(){return!i.isNextRouteLoading()},i.showSpinner=function(){return i.isSpinnerEnabled()||i.isNextRouteLoading()},i.isAutoscroll=function(){return i.$eval("autoscroll")};var l=[],c=function(t){i._unbindClearSpinnerSettings=n(function(){i.spinnerEnabled=!1,i.globalRoute=!1,i.nextRouteLoaded=!0,i.nextRouteLoading=!1},0,!0)},u=function(t,e,n,i){t.globalRoute=!1,t.nextRouteLoaded=!1,t.nextRouteLoading=!0},d=function(e,n,i,r){var o=n?n.name:"",a=i?i.name:"",l=t(o,"."),d=t(a,"."),p=void 0===s&&a===d,f=s&&l===s&&l===d,h=l.length<d.length,m=l.length>d.length;e.globalRoute=p,r&&(e.spinnerEnabled=m&&d===s||h&&o===s||f?!0:!1),p&&!s?r?u(e,a,d,p):c(p):!p&&s&&o.indexOf(d)>-1&&r?u(e,a,d,p):c(p)};l.push(e.$on("$stateChangeError",function(t,e,n,r,o){d(i,r,e,!1)})),l.push(e.$on("$stateChangeCancel",function(t,e,n,r,o){d(i,r,e,!1)})),l.push(e.$on("$stateChangeSuccess",function(e,n,r,o,a){var l=o?o.name:"",c=n?n.name:"",u=(t(l,"."),t(c,"."));(o===s||u===s)&&d(i,o,n,!1)})),l.push(e.$on("$stateChangeStart",function(e,n,r,o,a){var l=o?o.name:"",c=n?n.name:"",u=(t(l,"."),t(c,"."));(o===s||u===s)&&d(i,o,n,!0)}));var p=function(){angular.forEach([i._unbindClearSpinnerSettings],function(t){t&&n.cancel(t)})},f=function(){angular.forEach(l,function(t){t()}),p()};i.$on("$destroy",function(){f()})}}},templateUrl:function(t,e){return e.templateUrl||"angular-ui-view-spinner.html"}}}]).run(["$templateCache",function(t){var e='<div class="view-loading-spinner-container"><div class="view-loading-spinner fadein obscure delay-fadein no-fadeout" ng-hide="!showSpinner()" us-spinner="spinnerSettings" spinner-start-active="1"></div></div><div ui-view name="{{name}}" autoscroll="isAutoscroll()" ng-hide="!showView()"></div></div>';t.put("angular-ui-view-spinner.html",e)}])}(),!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,i){var r,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(e+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.hidden="hidden",o.paused=!1,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(e),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,r=t(e).data("slick")||{},o.options=t.extend({},o.defaults,r,i),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,"undefined"!=typeof document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.instanceUid=n++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0),o.checkResponsive(!0)}var n=0;return e}(),e.prototype.addSlide=e.prototype.slickAdd=function(e,n,i){var r=this;if("boolean"==typeof n)i=n,n=null;else if(0>n||n>=r.slideCount)return!1;r.unload(),"number"==typeof n?0===n&&0===r.$slides.length?t(e).appendTo(r.$slideTrack):i?t(e).insertBefore(r.$slides.eq(n)):t(e).insertAfter(r.$slides.eq(n)):i===!0?t(e).prependTo(r.$slideTrack):t(e).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each(function(e,n){t(n).attr("data-slick-index",e)}),r.$slidesCache=r.$slides,r.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,n){var i={},r=this;r.animateHeight(),r.options.rtl===!0&&r.options.vertical===!1&&(e=-e),r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:e},r.options.speed,r.options.easing,n):r.$slideTrack.animate({top:e},r.options.speed,r.options.easing,n):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),t({animStart:r.currentLeft}).animate({animStart:e},{duration:r.options.speed,easing:r.options.easing,step:function(t){t=Math.ceil(t),r.options.vertical===!1?(i[r.animType]="translate("+t+"px, 0px)",r.$slideTrack.css(i)):(i[r.animType]="translate(0px,"+t+"px)",r.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(r.applyTransition(),e=Math.ceil(e),i[r.animType]=r.options.vertical===!1?"translate3d("+e+"px, 0px, 0px)":"translate3d(0px,"+e+"px, 0px)",r.$slideTrack.css(i),n&&setTimeout(function(){r.disableTransition(),n.call()},r.options.speed))},e.prototype.asNavFor=function(e){var n=this,i=n.options.asNavFor;i&&null!==i&&(i=t(i).not(n.$slider)),null!==i&&"object"==typeof i&&i.each(function(){var n=t(this).slick("getSlick");n.unslicked||n.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,n={};n[e.transitionType]=e.options.fade===!1?e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:"opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.autoPlay=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer),t.slideCount>t.options.slidesToShow&&t.paused!==!0&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this;t.options.infinite===!1?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(0===t.currentSlide-1&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,n,i=this;if(i.options.dots===!0&&i.slideCount>i.options.slidesToShow){for(n='<ul class="'+i.options.dotsClass+'">',e=0;e<=i.getDotCount();e+=1)n+="<li>"+i.options.customPaging.call(this,i,e)+"</li>";n+="</ul>",i.$dots=t(n).appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,n){t(n).attr("data-slick-index",e).data("originalStyling",t(n).attr("style")||"")}),e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(e.options.centerMode===!0||e.options.swipeToSlide===!0)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,n,i,r,o,a,s=this;if(i=document.createDocumentFragment(),o=s.$slider.children(),s.options.rows>1){for(a=s.options.slidesPerRow*s.options.rows,r=Math.ceil(o.length/a),t=0;r>t;t++){var l=document.createElement("div");for(e=0;e<s.options.rows;e++){var c=document.createElement("div");for(n=0;n<s.options.slidesPerRow;n++){var u=t*a+(e*s.options.slidesPerRow+n);o.get(u)&&c.appendChild(o.get(u))}l.appendChild(c)}i.appendChild(l)}s.$slider.html(i),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,n){var i,r,o,a=this,s=!1,l=a.$slider.width(),c=window.innerWidth||t(window).width();if("window"===a.respondTo?o=c:"slider"===a.respondTo?o=l:"min"===a.respondTo&&(o=Math.min(c,l)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){r=null;for(i in a.breakpoints)a.breakpoints.hasOwnProperty(i)&&(a.originalSettings.mobileFirst===!1?o<a.breakpoints[i]&&(r=a.breakpoints[i]):o>a.breakpoints[i]&&(r=a.breakpoints[i]));null!==r?null!==a.activeBreakpoint?(r!==a.activeBreakpoint||n)&&(a.activeBreakpoint=r,"unslick"===a.breakpointSettings[r]?a.unslick(r):(a.options=t.extend({},a.originalSettings,a.breakpointSettings[r]),e===!0&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),s=r):(a.activeBreakpoint=r,"unslick"===a.breakpointSettings[r]?a.unslick(r):(a.options=t.extend({},a.originalSettings,a.breakpointSettings[r]),e===!0&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),s=r):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,e===!0&&(a.currentSlide=a.options.initialSlide),a.refresh(e),s=r),e||s===!1||a.$slider.trigger("breakpoint",[a,s])}},e.prototype.changeSlide=function(e,n){var i,r,o,a=this,s=t(e.target);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),o=0!==a.slideCount%a.options.slidesToScroll,i=o?0:(a.slideCount-a.currentSlide)%a.options.slidesToScroll,e.data.message){case"previous":r=0===i?a.options.slidesToScroll:a.options.slidesToShow-i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide-r,!1,n);break;case"next":r=0===i?a.options.slidesToScroll:i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide+r,!1,n);break;case"index":var l=0===e.data.index?0:e.data.index||s.index()*a.options.slidesToScroll;a.slideHandler(a.checkNavigable(l),!1,n),s.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,n,i=this;if(e=i.getNavigableIndexes(),n=0,t>e[e.length-1])t=e[e.length-1];else for(var r in e){if(t<e[r]){t=n;break}n=e[r]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide),e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).off("mouseenter.slick",t.proxy(e.setPaused,e,!0)).off("mouseleave.slick",t.proxy(e.setPaused,e,!1))),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),
e.$list.off("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.html(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),t(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.unslicked=!0,e||n.$slider.trigger("destroy",[n])},e.prototype.disableTransition=function(t){var e=this,n={};n[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.fadeSlide=function(t,e){var n=this;n.cssTransitions===!1?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout(function(){n.disableTransition(t),e.call()},n.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,n=0,i=0;if(t.options.infinite===!0)for(;e<t.slideCount;)++i,e=n+t.options.slidesToShow,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)i=t.slideCount;else for(;e<t.slideCount;)++i,e=n+t.options.slidesToShow,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return i-1},e.prototype.getLeft=function(t){var e,n,i,r=this,o=0;return r.slideOffset=0,n=r.$slides.first().outerHeight(!0),r.options.infinite===!0?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=-1*r.slideWidth*r.options.slidesToShow,o=-1*n*r.options.slidesToShow),0!==r.slideCount%r.options.slidesToScroll&&t+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(t>r.slideCount?(r.slideOffset=-1*(r.options.slidesToShow-(t-r.slideCount))*r.slideWidth,o=-1*(r.options.slidesToShow-(t-r.slideCount))*n):(r.slideOffset=-1*r.slideCount%r.options.slidesToScroll*r.slideWidth,o=-1*r.slideCount%r.options.slidesToScroll*n))):t+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(t+r.options.slidesToShow-r.slideCount)*r.slideWidth,o=(t+r.options.slidesToShow-r.slideCount)*n),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,o=0),r.options.centerMode===!0&&r.options.infinite===!0?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:r.options.centerMode===!0&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),e=r.options.vertical===!1?-1*t*r.slideWidth+r.slideOffset:-1*t*n+o,r.options.variableWidth===!0&&(i=r.$slideTrack.children(".slick-slide").eq(r.slideCount<=r.options.slidesToShow||r.options.infinite===!1?t:t+r.options.slidesToShow),e=i[0]?-1*i[0].offsetLeft:0,r.options.centerMode===!0&&(i=r.$slideTrack.children(".slick-slide").eq(r.options.infinite===!1?t:t+r.options.slidesToShow+1),e=i[0]?-1*i[0].offsetLeft:0,e+=(r.$list.width()-i.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,n=0,i=0,r=[];for(e.options.infinite===!1?t=e.slideCount:(n=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,t=2*e.slideCount);t>n;)r.push(n),n=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return r},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,n,i,r=this;return i=r.options.centerMode===!0?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,r.options.swipeToSlide===!0?(r.$slideTrack.find(".slick-slide").each(function(e,o){return o.offsetLeft-i+t(o).outerWidth()/2>-1*r.swipeLeft?(n=o,!1):void 0}),e=Math.abs(t(n).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var n=this;n.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var n=this;t(n.$slider).hasClass("slick-initialized")||(t(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots()),e&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.setPaused,e,!0)).on("mouseleave.slick",t.proxy(e.setPaused,e,!1))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.$list.on("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),t.options.autoplay===!0&&t.autoPlay()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),n=t(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",n).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")})})},i.src=n})}var n,i,r,o,a=this;a.options.centerMode===!0?a.options.infinite===!0?(r=a.currentSlide+(a.options.slidesToShow/2+1),o=r+a.options.slidesToShow+2):(r=Math.max(0,a.currentSlide-(a.options.slidesToShow/2+1)),o=2+(a.options.slidesToShow/2+1)+a.currentSlide):(r=a.options.infinite?a.options.slidesToShow+a.currentSlide:a.currentSlide,o=r+a.options.slidesToShow,a.options.fade===!0&&(r>0&&r--,o<=a.slideCount&&o++)),n=a.$slider.find(".slick-slide").slice(r,o),e(n),a.slideCount<=a.options.slidesToShow?(i=a.$slider.find(".slick-slide"),e(i)):a.currentSlide>=a.slideCount-a.options.slidesToShow?(i=a.$slider.find(".slick-cloned").slice(0,a.options.slidesToShow),e(i)):0===a.currentSlide&&(i=a.$slider.find(".slick-cloned").slice(-1*a.options.slidesToShow),e(i))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.paused=!1,t.autoPlay()},e.prototype.postSlide=function(t){var e=this;e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay===!0&&e.paused===!1&&e.autoPlay(),e.options.accessibility===!0&&e.initADA()},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(){var e,n,i=this;e=t("img[data-lazy]",i.$slider).length,e>0&&(n=t("img[data-lazy]",i.$slider).first(),n.attr("src",n.attr("data-lazy")).removeClass("slick-loading").load(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad(),i.options.adaptiveHeight===!0&&i.setPosition()}).error(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad()}))},e.prototype.refresh=function(e){var n=this,i=n.currentSlide;n.destroy(!0),t.extend(n,n.initials,{currentSlide:i}),n.init(),e||n.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,n,i,r=this,o=r.options.responsive||null;if("array"===t.type(o)&&o.length){r.respondTo=r.options.respondTo||"window";for(e in o)if(i=r.breakpoints.length-1,n=o[e].breakpoint,o.hasOwnProperty(e)){for(;i>=0;)r.breakpoints[i]&&r.breakpoints[i]===n&&r.breakpoints.splice(i,1),i--;r.breakpoints.push(n),r.breakpointSettings[n]=o[e].settings}r.breakpoints.sort(function(t,e){return r.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(0),e.setPosition(),e.$slider.trigger("reInit",[e]),e.options.autoplay===!0&&e.focusHandler()},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,n){var i=this;return"boolean"==typeof t?(e=t,t=e===!0?0:i.slideCount-1):t=e===!0?--t:t,i.slideCount<1||0>t||t>i.slideCount-1?!1:(i.unload(),n===!0?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(t).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,void i.reinit())},e.prototype.setCSS=function(t){var e,n,i=this,r={};i.options.rtl===!0&&(t=-t),e="left"==i.positionProp?Math.ceil(t)+"px":"0px",n="top"==i.positionProp?Math.ceil(t)+"px":"0px",r[i.positionProp]=t,i.transformsEnabled===!1?i.$slideTrack.css(r):(r={},i.cssTransitions===!1?(r[i.animType]="translate("+e+", "+n+")",i.$slideTrack.css(r)):(r[i.animType]="translate3d("+e+", "+n+", 0px)",i.$slideTrack.css(r)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,n=this;n.$slides.each(function(i,r){e=-1*n.slideWidth*i,t(r).css(n.options.rtl===!0?{position:"relative",right:e,top:0,zIndex:n.options.zIndex-2,opacity:0}:{position:"relative",left:e,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(e,n,i){var r,o,a=this;if("responsive"===e&&"array"===t.type(n))for(o in n)if("array"!==t.type(a.options.responsive))a.options.responsive=[n[o]];else{for(r=a.options.responsive.length-1;r>=0;)a.options.responsive[r].breakpoint===n[o].breakpoint&&a.options.responsive.splice(r,1),r--;a.options.responsive.push(n[o])}else a.options[e]=n;i===!0&&(a.unload(),a.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,n,i,r,o=this;n=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),o.options.centerMode===!0?(e=Math.floor(o.options.slidesToShow/2),o.options.infinite===!0&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(i=o.options.slidesToShow+t,n.slice(i-e+1,i+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?n.eq(n.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&n.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=o.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=o.slideCount%o.options.slidesToShow,i=o.options.infinite===!0?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?n.slice(i-(o.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},e.prototype.setupInfinite=function(){var e,n,i,r=this;if(r.options.fade===!0&&(r.options.centerMode=!1),r.options.infinite===!0&&r.options.fade===!1&&(n=null,r.slideCount>r.options.slidesToShow)){for(i=r.options.centerMode===!0?r.options.slidesToShow+1:r.options.slidesToShow,e=r.slideCount;e>r.slideCount-i;e-=1)n=e-1,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(e=0;i>e;e+=1)n=e,t(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.setPaused=function(t){var e=this;e.options.autoplay===!0&&e.options.pauseOnHover===!0&&(e.paused=t,t?e.autoPlayClear():e.autoPlay())},e.prototype.selectHandler=function(e){var n=this,i=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),r=parseInt(i.attr("data-slick-index"));return r||(r=0),n.slideCount<=n.options.slidesToShow?(n.setSlideClasses(r),void n.asNavFor(r)):void n.slideHandler(r)},e.prototype.slideHandler=function(t,e,n){var i,r,o,a,s=null,l=this;return e=e||!1,l.animating===!0&&l.options.waitForAnimate===!0||l.options.fade===!0&&l.currentSlide===t||l.slideCount<=l.options.slidesToShow?void 0:(e===!1&&l.asNavFor(t),i=t,s=l.getLeft(i),a=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?a:l.swipeLeft,l.options.infinite===!1&&l.options.centerMode===!1&&(0>t||t>l.getDotCount()*l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(a,function(){l.postSlide(i)}):l.postSlide(i))):l.options.infinite===!1&&l.options.centerMode===!0&&(0>t||t>l.slideCount-l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(a,function(){l.postSlide(i)}):l.postSlide(i))):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),r=0>i?0!==l.slideCount%l.options.slidesToScroll?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+i:i>=l.slideCount?0!==l.slideCount%l.options.slidesToScroll?0:i-l.slideCount:i,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,r]),o=l.currentSlide,l.currentSlide=r,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(n!==!0?(l.fadeSlideOut(o),l.fadeSlide(r,function(){l.postSlide(r)})):l.postSlide(r),void l.animateHeight()):void(n!==!0?l.animateSlide(s,function(){l.postSlide(r)}):l.postSlide(r))))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,n,i,r=this;return t=r.touchObject.startX-r.touchObject.curX,e=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(e,t),i=Math.round(180*n/Math.PI),0>i&&(i=360-Math.abs(i)),45>=i&&i>=0?r.options.rtl===!1?"left":"right":360>=i&&i>=315?r.options.rtl===!1?"left":"right":i>=135&&225>=i?r.options.rtl===!1?"right":"left":r.options.verticalSwiping===!0?i>=35&&135>=i?"left":"right":"vertical"},e.prototype.swipeEnd=function(){var t,e=this;if(e.dragging=!1,e.shouldClick=e.touchObject.swipeLength>10?!1:!0,void 0===e.touchObject.curX)return!1;if(e.touchObject.edgeHit===!0&&e.$slider.trigger("edge",[e,e.swipeDirection()]),e.touchObject.swipeLength>=e.touchObject.minSwipe)switch(e.swipeDirection()){case"left":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide+e.getSlideCount()):e.currentSlide+e.getSlideCount(),e.slideHandler(t),e.currentDirection=0,e.touchObject={},e.$slider.trigger("swipe",[e,"left"]);break;case"right":t=e.options.swipeToSlide?e.checkNavigable(e.currentSlide-e.getSlideCount()):e.currentSlide-e.getSlideCount(),e.slideHandler(t),e.currentDirection=1,e.touchObject={},e.$slider.trigger("swipe",[e,"right"])}else e.touchObject.startX!==e.touchObject.curX&&(e.slideHandler(e.currentSlide),e.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,n,i,r,o,a=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!a.dragging||o&&1!==o.length?!1:(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,a.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),a.options.verticalSwiping===!0&&(a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2)))),n=a.swipeDirection(),"vertical"!==n?(void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&t.preventDefault(),r=(a.options.rtl===!1?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),a.options.verticalSwiping===!0&&(r=a.touchObject.curY>a.touchObject.startY?1:-1),i=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,a.options.infinite===!1&&(0===a.currentSlide&&"right"===n||a.currentSlide>=a.getDotCount()&&"left"===n)&&(i=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),a.swipeLeft=a.options.vertical===!1?e+i*r:e+i*(a.$list.height()/a.listWidth)*r,a.options.verticalSwiping===!0&&(a.swipeLeft=e+i*r),a.options.fade===!0||a.options.touchMove===!1?!1:a.animating===!0?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft)):void 0)},e.prototype.swipeStart=function(t){var e,n=this;return 1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow?(n.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(n.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;document[t.hidden]?(t.paused=!0,t.autoPlayClear()):t.options.autoplay===!0&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(n){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+n})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(n){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+n,id:"slick-slide"+e.instanceUid+n})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.activateADA=function(){var t=this,e=t.$slider.find("*").is(":focus");t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"}),e&&t.$slideTrack.find(".slick-active").focus()},e.prototype.focusHandler=function(){var e=this;e.$slider.on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var i=t(this);setTimeout(function(){e.isPlay&&(i.is(":focus")?(e.autoPlayClear(),e.paused=!0):(e.paused=!1,e.autoPlay()))},0)})},t.fn.slick=function(){var t,n=this,i=arguments[0],r=Array.prototype.slice.call(arguments,1),o=n.length,a=0;for(a;o>a;a++)if("object"==typeof i||"undefined"==typeof i?n[a].slick=new e(n[a],i):t=n[a].slick[i].apply(n[a].slick,r),"undefined"!=typeof t)return t;return n}}),function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var n,i=document.createElement(t||"div");for(n in e)i[n]=e[n];return i}function e(t){for(var e=1,n=arguments.length;n>e;e++)t.appendChild(arguments[e]);return t}function n(t,e,n,i){var r=["opacity",e,~~(100*t),n,i].join("-"),o=.01+n/i*100,a=Math.max(1-(1-t)/e*(100-o),t),s=c.substring(0,c.indexOf("Animation")).toLowerCase(),l=s&&"-"+s+"-"||"";return d[r]||(p.insertRule("@"+l+"keyframes "+r+"{0%{opacity:"+a+"}"+o+"%{opacity:"+t+"}"+(o+.01)+"%{opacity:1}"+(o+e)%100+"%{opacity:"+t+"}100%{opacity:"+a+"}}",p.cssRules.length),d[r]=1),r}function i(t,e){var n,i,r=t.style;for(e=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<u.length;i++)if(n=u[i]+e,void 0!==r[n])return n;return void 0!==r[e]?e:void 0}function r(t,e){for(var n in e)t.style[i(t,n)||n]=e[n];return t}function o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)void 0===t[i]&&(t[i]=n[i])}return t}function a(t,e){return"string"==typeof t?t:t[e%t.length]}function s(t){this.opts=o(t||{},s.defaults,f)}function l(){function n(e,n){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}p.addRule(".spin-vml","behavior:url(#default#VML)"),s.prototype.lines=function(t,i){function o(){return r(n("group",{coordsize:u+" "+u,coordorigin:-c+" "+-c}),{width:u,height:u})}function s(t,s,l){e(p,e(r(o(),{rotation:360/i.lines*t+"deg",left:~~s}),e(r(n("roundrect",{arcsize:i.corners}),{width:c,height:i.width,left:i.radius,top:-i.width>>1,filter:l}),n("fill",{color:a(i.color,t),opacity:i.opacity}),n("stroke",{opacity:0}))))}var l,c=i.length+i.width,u=2*c,d=2*-(i.width+i.length)+"px",p=r(o(),{position:"absolute",top:d,left:d});if(i.shadow)for(l=1;l<=i.lines;l++)s(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=i.lines;l++)s(l);return e(t,p)},s.prototype.opacity=function(t,e,n,i){var r=t.firstChild;i=i.shadow&&i.lines||0,r&&e+i<r.childNodes.length&&(r=r.childNodes[e+i],r=r&&r.firstChild,r=r&&r.firstChild,r&&(r.opacity=n))}}var c,u=["webkit","Moz","ms","O"],d={},p=function(){var n=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),f={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};s.defaults={},o(s.prototype,{spin:function(e){this.stop();{var n=this,i=n.opts,o=n.el=r(t(0,{className:i.className}),{position:i.position,width:0,zIndex:i.zIndex});i.radius+i.length+i.width}if(r(o,{left:i.left,top:i.top}),e&&e.insertBefore(o,e.firstChild||null),o.setAttribute("role","progressbar"),n.lines(o,n.opts),!c){var a,s=0,l=(i.lines-1)*(1-i.direction)/2,u=i.fps,d=u/i.speed,p=(1-i.opacity)/(d*i.trail/100),f=d/i.lines;!function h(){s++;for(var t=0;t<i.lines;t++)a=Math.max(1-(s+(i.lines-t)*f)%d*p,i.opacity),n.opacity(o,t*i.direction+l,a,i);n.timeout=n.el&&setTimeout(h,~~(1e3/u))}()}return n},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(i,o){function s(e,n){return r(t(),{position:"absolute",width:o.length+o.width+"px",height:o.width+"px",background:e,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*u+o.rotate)+"deg) translate("+o.radius+"px,0)",borderRadius:(o.corners*o.width>>1)+"px"})}for(var l,u=0,d=(o.lines-1)*(1-o.direction)/2;u<o.lines;u++)l=r(t(),{position:"absolute",top:1+~(o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:c&&n(o.opacity,o.trail,d+u*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&e(l,r(s("#000","0 0 4px #000"),{
top:"2px"})),e(i,e(l,s(a(o.color,u),"0 0 1px rgba(0,0,0,.1)")));return i},opacity:function(t,e,n){e<t.childNodes.length&&(t.childNodes[e].style.opacity=n)}});var h=r(t("group"),{behavior:"url(#default#VML)"});return!i(h,"transform")&&h.adj?l():c=i(h,"animation"),s}),function(t,e){"object"==typeof exports?module.exports=e(require("spin.js")):"function"==typeof define&&define.amd?define(["spin"],e):t.Ladda=e(t.Spinner)}(this,function(t){"use strict";function e(t){if("undefined"==typeof t)return void console.warn("Ladda button target must be defined.");t.querySelector(".ladda-label")||(t.innerHTML='<span class="ladda-label">'+t.innerHTML+"</span>");var e,n=t.querySelector(".ladda-spinner");n||(n=document.createElement("span"),n.className="ladda-spinner"),t.appendChild(n);var i,r={start:function(){return e||(e=a(t)),t.setAttribute("disabled",""),t.setAttribute("data-loading",""),clearTimeout(i),e.spin(n),this.setProgress(0),this},startAfter:function(t){return clearTimeout(i),i=setTimeout(function(){r.start()},t),this},stop:function(){return t.removeAttribute("disabled"),t.removeAttribute("data-loading"),clearTimeout(i),e&&(i=setTimeout(function(){e.stop()},1e3)),this},toggle:function(){return this.isLoading()?this.stop():this.start(),this},setProgress:function(e){e=Math.max(Math.min(e,1),0);var n=t.querySelector(".ladda-progress");0===e&&n&&n.parentNode?n.parentNode.removeChild(n):(n||(n=document.createElement("div"),n.className="ladda-progress",t.appendChild(n)),n.style.width=(e||0)*t.offsetWidth+"px")},enable:function(){return this.stop(),this},disable:function(){return this.stop(),t.setAttribute("disabled",""),this},isLoading:function(){return t.hasAttribute("data-loading")},remove:function(){clearTimeout(i),t.removeAttribute("disabled",""),t.removeAttribute("data-loading",""),e&&(e.stop(),e=null);for(var n=0,o=l.length;o>n;n++)if(r===l[n]){l.splice(n,1);break}}};return l.push(r),r}function n(t,e){for(;t.parentNode&&t.tagName!==e;)t=t.parentNode;return e===t.tagName?t:void 0}function i(t){for(var e=["input","textarea","select"],n=[],i=0;i<e.length;i++)for(var r=t.getElementsByTagName(e[i]),o=0;o<r.length;o++)r[o].hasAttribute("required")&&n.push(r[o]);return n}function r(t,r){r=r||{};var o=[];"string"==typeof t?o=s(document.querySelectorAll(t)):"object"==typeof t&&"string"==typeof t.nodeName&&(o=[t]);for(var a=0,l=o.length;l>a;a++)!function(){var t=o[a];if("function"==typeof t.addEventListener){var s=e(t),l=-1;t.addEventListener("click",function(e){var o=!0,a=n(t,"FORM");if("undefined"!=typeof a)for(var c=i(a),u=0;u<c.length;u++)""===c[u].value.replace(/^\s+|\s+$/g,"")&&(o=!1),"checkbox"!==c[u].type&&"radio"!==c[u].type||c[u].checked||(o=!1),"email"===c[u].type&&(o=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(c[u].value));o&&(s.startAfter(1),"number"==typeof r.timeout&&(clearTimeout(l),l=setTimeout(s.stop,r.timeout)),"function"==typeof r.callback&&r.callback.apply(null,[s]))},!1)}}()}function o(){for(var t=0,e=l.length;e>t;t++)l[t].stop()}function a(e){var n,i=e.offsetHeight;0===i&&(i=parseFloat(window.getComputedStyle(e).height)),i>32&&(i*=.8),e.hasAttribute("data-spinner-size")&&(i=parseInt(e.getAttribute("data-spinner-size"),10)),e.hasAttribute("data-spinner-color")&&(n=e.getAttribute("data-spinner-color"));var r=12,o=.2*i,a=.6*o,s=7>o?2:3;return new t({color:n||"#fff",lines:r,radius:o,length:a,width:s,zIndex:"auto",top:"auto",left:"auto",className:""})}function s(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e}var l=[];return{bind:r,create:e,stopAll:o}}),!function(t,e){"use strict";if("function"==typeof define&&define.amd)define(["angular","ladda"],e);else{if("undefined"==typeof module||"object"!=typeof module.exports)return e(t.angular,t.Ladda);module.exports=e(require("angular"),require("ladda"))}}(this,function(t,e){"use strict";var n="angular-ladda";return t.module(n,[]).provider("ladda",function(){var e={style:"zoom-in"};return{setOption:function(n){t.extend(e,n)},$get:function(){return e}}}).directive("ladda",["ladda",function(n){return{restrict:"A",priority:-1,link:function(i,r,o){if(r.addClass("ladda-button"),t.isUndefined(r.attr("data-style"))&&r.attr("data-style",n.style||"zoom-in"),!r[0].querySelector(".ladda-label")){var a=document.createElement("span");a.className="ladda-label",t.element(a).append(r.contents()),r.append(a)}var s=e.create(r[0]);i.$watch(o.ladda,function(e){return e||t.isNumber(e)?(s.isLoading()||s.start(),void(t.isNumber(e)&&s.setProgress(e))):(s.stop(),void(o.ngDisabled&&r.attr("disabled",i.$eval(o.ngDisabled))))})}}}]),n});