!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var s,c,u,l=0,d=[];l<r.length;l++)c=r[l],i[c]&&d.push(i[c][0]),i[c]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s]);for(n&&n(r,o,a);d.length;)d.shift()();if(a)for(l=0;l<a.length;l++)u=e(e.s=a[l]);return u};var r={},i={1:0};e.e=function(t){function n(){s.onerror=s.onload=null,clearTimeout(c);var e=i[t];0!==e&&(e&&e[1](new Error('Loading chunk '+t+' failed.')),i[t]=void 0)}var r=i[t];if(0===r)return new Promise(function(t){t()});if(r)return r[2];var o=new Promise(function(e,n){r=i[t]=[e,n]});r[2]=o;var a=document.getElementsByTagName('head')[0],s=document.createElement('script');s.type='text/javascript',s.charset='utf-8',s.async=!0,s.timeout=12e4,e.nc&&s.setAttribute('nonce',e.nc),s.src=e.p+''+t+'-258f767644daeb1c9ae7.js';var c=setTimeout(n,12e4);return s.onerror=s.onload=n,a.appendChild(s),o},e.m=t,e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,'a',n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p='',e.oe=function(t){throw console.error(t),t},e(e.s=115)}([function(t,e,n){'use strict';function r(t){return t}function i(){}function o(t,e,n,r,i){void 0===i&&(i=!1);var o=function(e){return t()[e].bind(n())},a=function(t){return function(){return e[t]=o(t),e[t].apply(null,arguments)}};return r=r||Object.keys(t()),r.reduce(function(t,e){return t[e]=i?a(e):o(e),t},e)}function a(t,e){return-1!==t.indexOf(e)}function s(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),t}function c(t,e){return t.push(e),e}function u(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=n.concat({}).reverse(),o=e.extend.apply(null,i);return e.extend({},o,d(t||{},Object.keys(o)))}function l(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}function d(t,e){var n={};for(var r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function f(t,n){return Object.keys(t).filter(T.not(e.inArray(n))).reduce(function(e,n){return e[n]=t[n],e},{})}function m(t,e){return v(t,T.prop(e))}function p(t,n){var r=A.isArray(t),i=r?[]:{},o=r?function(t){return i.push(t)}:function(t,e){return i[e]=t};return e.forEach(t,function(t,e){n(t,e)&&o(t,e)}),i}function h(t,n){var r;return e.forEach(t,function(t,e){r||n(t,e)&&(r=t)}),r}function v(t,n){var r=A.isArray(t)?[]:{};return e.forEach(t,function(t,e){return r[e]=n(t,e)}),r}function g(t,e){return t.push(e),t}function $(t,e){return void 0===e&&(e='assert failure'),function(n){var r=t(n);if(!r)throw new Error(A.isFunction(e)?e(n):e);return r}}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return[];var n,r=t.reduce(function(t,e){return Math.min(e.length,t)},9007199254740991),i=[];for(n=0;n<r;n++)switch(t.length){case 1:i.push([t[0][n]]);break;case 2:i.push([t[0][n],t[1][n]]);break;case 3:i.push([t[0][n],t[1][n],t[2][n]]);break;case 4:i.push([t[0][n],t[1][n],t[2][n],t[3][n]]);break;default:i.push(t.map(function(t){return t[n]}))}return i}function y(t,e){var n,r;if(A.isArray(e)&&(n=e[0],r=e[1]),!A.isString(n))throw new Error('invalid parameters to applyPairs');return t[n]=r,t}function E(t){return t.length&&t[t.length-1]||void 0}function w(t,n){return n&&Object.keys(n).forEach(function(t){return delete n[t]}),n||(n={}),e.extend(n,t)}function C(t,e,n){if(A.isArray(t))return t.forEach(e,n);Object.keys(t).forEach(function(n){return e(t[n],n)})}function _(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var r=Object.keys(n),i=0;i<r.length;i++)t[r[i]]=n[r[i]]}return t}function x(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n=typeof t;if(n!==typeof e||'object'!==n)return!1;var r=[t,e];if(T.all(A.isArray)(r))return M(t,e);if(T.all(A.isDate)(r))return t.getTime()===e.getTime();if(T.all(A.isRegExp)(r))return t.toString()===e.toString();if(T.all(A.isFunction)(r))return!0;if([A.isFunction,A.isArray,A.isDate,A.isRegExp].map(T.any).reduce(function(t,e){return t||!!e(r)},!1))return!1;var i,o={};for(i in t){if(!x(t[i],e[i]))return!1;o[i]=!0}for(i in e)if(!o[i])return!1;return!0}function M(t,e){return t.length===e.length&&b(t,e).reduce(function(t,e){return t&&x(e[0],e[1])},!0)}Object.defineProperty(e,'__esModule',{value:!0});var A=n(1),T=n(2),k=n(3),S='undefined'==typeof window?{}:window,O=S.angular||{};e.fromJson=O.fromJson||JSON.parse.bind(JSON),e.toJson=O.toJson||JSON.stringify.bind(JSON),e.copy=O.copy||w,e.forEach=O.forEach||C,e.extend=Object.assign||_,e.equals=O.equals||x,e.identity=r,e.noop=i,e.createProxyFunctions=o,e.inherit=function(t,n){return e.extend(Object.create(t),n)};e.inArray=T.curry(a),e._inArray=a,e.removeFrom=T.curry(s),e._removeFrom=s,e.pushTo=T.curry(c),e._pushTo=c,e.deregAll=function(t){return t.slice().forEach(function(n){'function'==typeof n&&n(),e.removeFrom(t,n)})},e.defaults=u,e.mergeR=function(t,n){return e.extend(t,n)},e.ancestors=l,e.pick=d,e.omit=f,e.pluck=m,e.filter=p,e.find=h,e.mapObj=v,e.map=v,e.values=function(t){return Object.keys(t).map(function(e){return t[e]})},e.allTrueR=function(t,e){return t&&e},e.anyTrueR=function(t,e){return t||e},e.unnestR=function(t,e){return t.concat(e)},e.flattenR=function(t,n){return A.isArray(n)?t.concat(n.reduce(e.flattenR,[])):g(t,n)},e.pushR=g,e.uniqR=function(t,n){return e.inArray(t,n)?t:g(t,n)},e.unnest=function(t){return t.reduce(e.unnestR,[])},e.flatten=function(t){return t.reduce(e.flattenR,[])},e.assertPredicate=$,e.assertMap=$,e.assertFn=$,e.pairs=function(t){return Object.keys(t).map(function(e){return[e,t[e]]})},e.arrayTuples=b,e.applyPairs=y,e.tail=E,e._extend=_,e.sortBy=function(t,e){return void 0===e&&(e=T.val(!0)),function(n,r){return e(n)&&e(r)?t(n)-t(r):0}},e.composeSort=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e,n){return t.reduce(function(t,r){return t||r(e,n)},0)}},e.silenceUncaughtInPromise=function(t){return t.catch(function(t){return 0})&&t},e.silentRejection=function(t){return e.silenceUncaughtInPromise(k.services.$q.reject(t))}},function(t,e,n){'use strict';function r(t){if(e.isArray(t)&&t.length){var n=t.slice(0,-1),r=t.slice(-1);return!(n.filter(i.not(e.isString)).length||r.filter(i.not(e.isFunction)).length)}return e.isFunction(t)}Object.defineProperty(e,'__esModule',{value:!0});var i=n(2),o=n(27),a=Object.prototype.toString,s=function(t){return function(e){return typeof e===t}};e.isUndefined=s('undefined'),e.isDefined=i.not(e.isUndefined),e.isNull=function(t){return null===t},e.isNullOrUndefined=i.or(e.isNull,e.isUndefined),e.isFunction=s('function'),e.isNumber=s('number'),e.isString=s('string'),e.isObject=function(t){return null!==t&&'object'==typeof t},e.isArray=Array.isArray,e.isDate=function(t){return'[object Date]'===a.call(t)},e.isRegExp=function(t){return'[object RegExp]'===a.call(t)},e.isState=o.StateObject.isState,e.isInjectable=r,e.isPromise=i.and(e.isObject,i.pipe(i.prop('then'),e.isFunction))},function(t,e,n){'use strict';function r(t){function e(n){return n.length>=r?t.apply(null,n):function(){return e(n.concat([].slice.apply(arguments)))}}var n=[].slice.apply(arguments,[1]),r=t.length;return e(n)}function i(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.apply(null,[].slice.call(arguments).reverse())}function a(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(null,n)&&e.apply(null,n)}}function s(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(null,n)||e.apply(null,n)}}function c(t,e){return function(n){return n[t].apply(n,e)}}function u(t){return function(e){for(var n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}Object.defineProperty(e,'__esModule',{value:!0}),e.curry=r,e.compose=i,e.pipe=o,e.prop=function(t){return function(e){return e&&e[t]}},e.propEq=r(function(t,e,n){return n&&n[t]===e}),e.parse=function(t){return o.apply(null,t.split('.').map(e.prop))},e.not=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}},e.and=a,e.or=s,e.all=function(t){return function(e){return e.reduce(function(e,n){return e&&!!t(n)},!0)}},e.any=function(t){return function(e){return e.reduce(function(e,n){return e||!!t(n)},!1)}},e.is=function(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}},e.eq=function(t){return function(e){return t===e}},e.val=function(t){return function(){return t}},e.invoke=c,e.pattern=u},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.notImplemented=function(t){return function(){throw new Error(t+'(): No coreservices implementation for UI-Router is loaded.')}};var r={$q:void 0,$injector:void 0};e.services=r},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(12)),r(n(75)),r(n(76)),r(n(77)),r(n(78)),r(n(88)),r(n(89)),r(n(90)),r(n(52)),r(n(47)),r(n(91)),r(n(94))},function(t,e,n){'use strict';function r(t,e){return e.length<=t?e:e.substr(0,t-3)+'...'}function i(t,e){for(;e.length<t;)e+=' ';return e}function o(t){return t.replace(/^([A-Z])/,function(t){return t.toLowerCase()}).replace(/([A-Z])/g,function(t){return'-'+t.toLowerCase()})}function a(t){var e=s(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||'';return i&&r.match(/function \(/)?'function '+i+r.substr(9):r}function s(t){var e=d.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||'undefined'}function c(t){function e(t){if(d.isObject(t)){if(-1!==n.indexOf(t))return'[circular ref]';n.push(t)}return $(t)}var n=[];return JSON.stringify(t,function(t,n){return e(n)}).replace(/\\"/g,'"')}function u(t){var e=new RegExp('('+t+')','g');return function(t){return t.split(e).filter(m.identity)}}function l(t,e){return d.isString(m.tail(t))&&d.isString(e)?t.slice(0,-1).concat(m.tail(t)+e):m.pushR(t,e)}Object.defineProperty(e,'__esModule',{value:!0});var d=n(1),f=n(13),m=n(0),p=n(2),h=n(19),v=n(15);e.maxLength=r,e.padString=i,e.kebobString=o,e.functionToString=a,e.fnToString=s;var g=null,$=function(t){var e=f.Rejection.isRejectionPromise;return(g=g||p.pattern([[p.not(d.isDefined),p.val('undefined')],[d.isNull,p.val('null')],[d.isPromise,p.val('[Promise]')],[e,function(t){return t._transitionRejection.toString()}],[p.is(f.Rejection),p.invoke('toString')],[p.is(h.Transition),p.invoke('toString')],[p.is(v.Resolvable),p.invoke('toString')],[d.isInjectable,a],[p.val(!0),m.identity]]))(t)};e.stringify=c,e.beforeAfterSubstr=function(t){return function(e){if(!e)return['',''];var n=e.indexOf(t);return-1===n?[e,'']:[e.substr(0,n),e.substr(n+1)]}},e.splitOnDelim=u,e.joinNeighborsR=l},function(t,e,n){'use strict';function r(t){if(!t)return'ui-view (defunct)';var e=t.creationContext?t.creationContext.name||'(root)':'(none)';return'[ui-view#'+t.id+' '+t.$type+':'+t.fqn+' ('+t.name+'@'+e+')]'}function i(t){return s.isNumber(t)?o[t]:o[o[t]]}Object.defineProperty(e,'__esModule',{value:!0});var o,a=n(2),s=n(1),c=n(5),u=function(t){var e=t.viewDecl,n=e.$context.name||'(root)';return'[View#'+t.$id+' from \''+n+'\' state]: target ui-view: \''+e.$uiViewName+'@'+e.$uiViewContextAnchor+'\''};!function(t){t[t.RESOLVE=0]='RESOLVE',t[t.TRANSITION=1]='TRANSITION',t[t.HOOK=2]='HOOK',t[t.UIVIEW=3]='UIVIEW',t[t.VIEWCONFIG=4]='VIEWCONFIG'}(o=e.Category||(e.Category={}));var l=a.parse('$id'),d=a.parse('router.$id'),f=function(t){return'Transition #'+l(t)+'-'+d(t)},m=function(){function t(){this._enabled={},this.approximateDigests=0}return t.prototype._set=function(t,e){var n=this;e.length||(e=Object.keys(o).map(function(t){return parseInt(t,10)}).filter(function(t){return!isNaN(t)}).map(function(t){return o[t]})),e.map(i).forEach(function(e){return n._enabled[e]=t})},t.prototype.enable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!0,t)},t.prototype.disable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!1,t)},t.prototype.enabled=function(t){return!!this._enabled[i(t)]},t.prototype.traceTransitionStart=function(t){this.enabled(o.TRANSITION)&&console.log(f(t)+': Started  -> '+c.stringify(t))},t.prototype.traceTransitionIgnored=function(t){this.enabled(o.TRANSITION)&&console.log(f(t)+': Ignored  <> '+c.stringify(t))},t.prototype.traceHookInvocation=function(t,e,n){if(this.enabled(o.HOOK)){var r=a.parse('traceData.hookType')(n)||'internal',i=a.parse('traceData.context.state.name')(n)||a.parse('traceData.context')(n)||'unknown',s=c.functionToString(t.registeredHook.callback);console.log(f(e)+':   Hook -> '+r+' context: '+i+', '+c.maxLength(200,s))}},t.prototype.traceHookResult=function(t,e,n){this.enabled(o.HOOK)&&console.log(f(e)+':   <- Hook returned: '+c.maxLength(200,c.stringify(t)))},t.prototype.traceResolvePath=function(t,e,n){this.enabled(o.RESOLVE)&&console.log(f(n)+':         Resolving '+t+' ('+e+')')},t.prototype.traceResolvableResolved=function(t,e){this.enabled(o.RESOLVE)&&console.log(f(e)+':               <- Resolved  '+t+' to: '+c.maxLength(200,c.stringify(t.data)))},t.prototype.traceError=function(t,e){this.enabled(o.TRANSITION)&&console.log(f(e)+': <- Rejected '+c.stringify(e)+', reason: '+t)},t.prototype.traceSuccess=function(t,e){this.enabled(o.TRANSITION)&&console.log(f(e)+': <- Success  '+c.stringify(e)+', final state: '+t.name)},t.prototype.traceUIViewEvent=function(t,e,n){void 0===n&&(n=''),this.enabled(o.UIVIEW)&&console.log('ui-view: '+c.padString(30,t)+' '+r(e)+n)},t.prototype.traceUIViewConfigUpdated=function(t,e){this.enabled(o.UIVIEW)&&this.traceUIViewEvent('Updating',t,' with ViewConfig from context=\''+e+'\'')},t.prototype.traceUIViewFill=function(t,e){this.enabled(o.UIVIEW)&&this.traceUIViewEvent('Fill',t,' with: '+c.maxLength(200,e))},t.prototype.traceViewSync=function(t){if(this.enabled(o.VIEWCONFIG)){var e=t.map(function(t){var e=t[0],n=t[1];return{'ui-view fqn':e.$type+':'+e.fqn,'state: view name':n&&n.viewDecl.$context.name+': '+n.viewDecl.$name+' ('+n.viewDecl.$type+')'}}).sort(function(t,e){return t['ui-view fqn'].localeCompare(e['ui-view fqn'])});console.table(e)}},t.prototype.traceViewServiceEvent=function(t,e){this.enabled(o.VIEWCONFIG)&&console.log('VIEWCONFIG: '+t+' '+u(e))},t.prototype.traceViewServiceUIViewEvent=function(t,e){this.enabled(o.VIEWCONFIG)&&console.log('VIEWCONFIG: '+t+' '+r(e))},t}();e.Trace=m;var p=new m;e.trace=p},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(1),o=function(){function t(t,e,n,r){void 0===r&&(r={}),this._identifier=t,this._definition=e,this._options=r,this._params=n||{}}return t.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},t.prototype.identifier=function(){return this._identifier},t.prototype.params=function(){return this._params},t.prototype.$state=function(){return this._definition},t.prototype.state=function(){return this._definition&&this._definition.self},t.prototype.options=function(){return this._options},t.prototype.exists=function(){return!(!this._definition||!this._definition.self)},t.prototype.valid=function(){return!this.error()},t.prototype.error=function(){var t=this.options().relative;if(!this._definition&&t){var e=t.name?t.name:t;return'Could not resolve \''+this.name()+'\' from state \''+e+'\''}return this._definition?this._definition.self?void 0:'State \''+this.name()+'\' has an invalid definition':'No such state \''+this.name()+'\''},t.prototype.toString=function(){return'\''+this.name()+'\''+r.toJson(this.params())},t.isDef=function(t){return t&&t.state&&(i.isString(t.state)||i.isString(t.state.name))},t}();e.TargetState=o},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(11),i=angular;e.ng=r&&r.module?r:i},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});!function(t){t[t.CREATE=0]='CREATE',t[t.BEFORE=1]='BEFORE',t[t.RUN=2]='RUN',t[t.SUCCESS=3]='SUCCESS',t[t.ERROR=4]='ERROR'}(e.TransitionHookPhase||(e.TransitionHookPhase={}));!function(t){t[t.TRANSITION=0]='TRANSITION',t[t.STATE=1]='STATE'}(e.TransitionHookScope||(e.TransitionHookScope={}))},function(t,e,n){'use strict';function r(t){function e(){return t.value}return t=p(t)&&{value:t}||t,e.__cacheable=!0,c.extend(t,{$$fn:l.isInjectable(t.value)?t.value:e})}function i(t,e,n,r,i){if(t.type&&e&&'string'!==e.name)throw new Error('Param \''+r+'\' has two type configurations.');if(t.type&&e&&'string'===e.name&&i.type(t.type))return i.type(t.type);if(e)return e;if(!t.type){var o=n===s.CONFIG?'any':n===s.PATH?'path':n===s.SEARCH?'query':'string';return i.type(o)}return t.type instanceof f.ParamType?t.type:i.type(t.type)}function o(t,e,n){var r=t.squash;if(!e||!1===r)return!1;if(!l.isDefined(r)||null==r)return n;if(!0===r||l.isString(r))return r;throw new Error('Invalid squash policy: \''+r+'\'. Valid policies: false, true, or arbitrary string')}function a(t,e,n,r){var i,o,a=[{from:'',to:n||e?void 0:''},{from:null,to:n||e?void 0:''}];return i=l.isArray(t.replace)?t.replace:[],l.isString(r)&&i.push({from:r,to:void 0}),o=c.map(i,u.prop('from')),c.filter(a,function(t){return-1===o.indexOf(t.from)}).concat(i)}Object.defineProperty(e,'__esModule',{value:!0});var s,c=n(0),u=n(2),l=n(1),d=n(3),f=n(31),m=Object.prototype.hasOwnProperty,p=function(t){return 0===['value','type','squash','array','dynamic'].filter(m.bind(t||{})).length};!function(t){t[t.PATH=0]='PATH',t[t.SEARCH=1]='SEARCH',t[t.CONFIG=2]='CONFIG'}(s=e.DefType||(e.DefType={}));var h=function(){function t(t,e,n,u,d){n=r(n),e=i(n,e,u,t,d.paramTypes);var f=function(){var e={array:u===s.SEARCH&&'auto'},r=t.match(/\[\]$/)?{array:!0}:{};return c.extend(e,r,n).array}();e=f?e.$asArray(f,u===s.SEARCH):e;var m=void 0!==n.value||u===s.SEARCH,p=l.isDefined(n.dynamic)?!!n.dynamic:!!e.dynamic,h=l.isDefined(n.raw)?!!n.raw:!!e.raw,v=o(n,m,d.defaultSquashPolicy()),g=a(n,f,m,v),$=l.isDefined(n.inherit)?!!n.inherit:!!e.inherit;c.extend(this,{id:t,type:e,location:u,isOptional:m,dynamic:p,raw:h,squash:v,replace:g,inherit:$,array:f,config:n})}return t.prototype.isDefaultValue=function(t){return this.isOptional&&this.type.equals(this.value(),t)},t.prototype.value=function(t){var e=this;return t=function(t){for(var n=0,r=e.replace;n<r.length;n++){var i=r[n];if(i.from===t)return i.to}return t}(t),l.isUndefined(t)?function(){if(e._defaultValueCache)return e._defaultValueCache.defaultValue;if(!d.services.$injector)throw new Error('Injectable functions cannot be called at configuration time');var t=d.services.$injector.invoke(e.config.$$fn);if(null!==t&&void 0!==t&&!e.type.is(t))throw new Error('Default value ('+t+') for parameter \''+e.id+'\' is not an instance of ParamType ('+e.type.name+')');return e.config.$$fn.__cacheable&&(e._defaultValueCache={defaultValue:t}),t}():this.type.$normalize(t)},t.prototype.isSearch=function(){return this.location===s.SEARCH},t.prototype.validates=function(t){if((l.isUndefined(t)||null===t)&&this.isOptional)return!0;var e=this.type.$normalize(t);if(!this.type.is(e))return!1;var n=this.type.encode(e);return!(l.isString(n)&&!this.type.pattern.exec(n))},t.prototype.toString=function(){return'{Param:'+this.id+' '+this.type+' squash: \''+this.squash+'\' optional: '+this.isOptional+'}'},t.values=function(t,e){void 0===e&&(e={});for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];n[o.id]=o.value(e[o.id])}return n},t.changed=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),t.filter(function(t){return!t.type.equals(e[t.id],n[t.id])})},t.equals=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),0===t.changed(e,n,r).length},t.validates=function(t,e){return void 0===e&&(e={}),t.map(function(t){return t.validates(e[t.id])}).reduce(c.allTrueR,!0)},t}();e.Param=h},function(t,e,n){n(69),t.exports=angular},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(0)),r(n(3)),r(n(18)),r(n(2)),r(n(1)),r(n(28)),r(n(5)),r(n(6))},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r,i=n(0),o=n(5),a=n(2);!function(t){t[t.SUPERSEDED=2]='SUPERSEDED',t[t.ABORTED=3]='ABORTED',t[t.INVALID=4]='INVALID',t[t.IGNORED=5]='IGNORED',t[t.ERROR=6]='ERROR'}(r=e.RejectType||(e.RejectType={}));var s=0,c=function(){function t(t,e,n){this.$id=s++,this.type=t,this.message=e,this.detail=n}return t.prototype.toString=function(){var t=function(t){return t&&t.toString!==Object.prototype.toString?t.toString():o.stringify(t)}(this.detail),e=this;return'Transition Rejection($id: '+e.$id+' type: '+e.type+', message: '+e.message+', detail: '+t+')'},t.prototype.toPromise=function(){return i.extend(i.silentRejection(this),{_transitionRejection:this})},t.isRejectionPromise=function(e){return e&&'function'==typeof e.then&&a.is(t)(e._transitionRejection)},t.superseded=function(e,n){var i=new t(r.SUPERSEDED,'The transition has been superseded by a different transition',e);return n&&n.redirected&&(i.redirected=!0),i},t.redirected=function(e){return t.superseded(e,{redirected:!0})},t.invalid=function(e){return new t(r.INVALID,'This transition is invalid',e)},t.ignored=function(e){return new t(r.IGNORED,'The transition was ignored',e)},t.aborted=function(e){return new t(r.ABORTED,'The transition has been aborted',e)},t.errored=function(e){return new t(r.ERROR,'The transition errored',e)},t.normalize=function(e){return a.is(t)(e)?e:t.errored(e)},t}();e.Rejection=c},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(9),i=n(0),o=n(5),a=n(1),s=n(2),c=n(6),u=n(3),l=n(13),d=n(7),f={current:i.noop,transition:null,traceData:{},bind:null},m=function(){function t(t,e,n,o){var a=this;this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=o,this.isSuperseded=function(){return a.type.hookPhase===r.TransitionHookPhase.RUN&&!a.options.transition.isActive()},this.options=i.defaults(o,f),this.type=n.eventType}return t.prototype.logError=function(t){this.transition.router.stateService.defaultErrorHandler()(t)},t.prototype.invokeHook=function(){var t=this,e=this.registeredHook;if(!e._deregistered){var n=this.getNotCurrentRejection();if(n)return n;var r=this.options;c.trace.traceHookInvocation(this,this.transition,r);var i=function(t){return l.Rejection.normalize(t).toPromise()},o=function(n){return e.eventType.getErrorHandler(t)(n)},s=function(n){return e.eventType.getResultHandler(t)(n)};try{var u=function(){return e.callback.call(r.bind,t.transition,t.stateContext)}();return!this.type.synchronous&&a.isPromise(u)?u.catch(i).then(s,o):s(u)}catch(t){return o(l.Rejection.normalize(t))}}},t.prototype.handleHookResult=function(t){var e=this,n=this.getNotCurrentRejection();return n||(a.isPromise(t)?t.then(function(t){return e.handleHookResult(t)}):(c.trace.traceHookResult(t,this.transition,this.options),!1===t?l.Rejection.aborted('Hook aborted transition').toPromise():s.is(d.TargetState)(t)?l.Rejection.redirected(t).toPromise():void 0))},t.prototype.getNotCurrentRejection=function(){var t=this.transition.router;return t._disposed?l.Rejection.aborted('UIRouter instance #'+t.$id+' has been stopped (disposed)').toPromise():this.transition._aborted?l.Rejection.aborted().toPromise():this.isSuperseded()?l.Rejection.superseded(this.options.current()).toPromise():void 0},t.prototype.toString=function(){var t=this,e=t.options,n=t.registeredHook,r=s.parse('traceData.hookType')(e)||'internal',i=s.parse('traceData.context.state.name')(e)||s.parse('traceData.context')(e)||'unknown',a=o.fnToString(n.callback);return r+' context: '+i+', '+o.maxLength(200,a)},t.chain=function(t,e){var n=function(t,e){return t.then(function(){return e.invokeHook()})};return t.reduce(n,e||u.services.$q.when())},t.invokeHooks=function(e,n){for(var r=0;r<e.length;r++){var i=e[r].invokeHook();if(a.isPromise(i)){var o=e.slice(r+1);return t.chain(o,i).then(n)}}return n()},t.runAllHooks=function(t){t.forEach(function(t){return t.invokeHook()})},t.HANDLE_RESULT=function(t){return function(e){return t.handleHookResult(e)}},t.LOG_REJECTED_RESULT=function(t){return function(e){a.isPromise(e)&&e.catch(function(e){return t.logError(l.Rejection.normalize(e))})}},t.LOG_ERROR=function(t){return function(e){return t.logError(e)}},t.REJECT_ERROR=function(t){return function(t){return i.silentRejection(t)}},t.THROW_ERROR=function(t){return function(t){throw t}},t}();e.TransitionHook=m},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(3),o=n(6),a=n(5),s=n(1),c=n(12);e.defaultResolvePolicy={when:'LAZY',async:'WAIT'};var u=function(){function t(e,n,o,a,u){if(this.resolved=!1,this.promise=void 0,e instanceof t)r.extend(this,e);else if(s.isFunction(n)){if(c.isNullOrUndefined(e))throw new Error('new Resolvable(): token argument is required');if(!s.isFunction(n))throw new Error('new Resolvable(): resolveFn argument must be a function');this.token=e,this.policy=a,this.resolveFn=n,this.deps=o||[],this.data=u,this.resolved=void 0!==u,this.promise=this.resolved?i.services.$q.when(this.data):void 0}else if(s.isObject(e)&&e.token&&s.isFunction(e.resolveFn)){var l=e;return new t(l.token,l.resolveFn,l.deps,l.policy,l.data)}}return t.prototype.getPolicy=function(t){var n=this.policy||{},r=t&&t.resolvePolicy||{};return{when:n.when||r.when||e.defaultResolvePolicy.when,async:n.async||r.async||e.defaultResolvePolicy.async}},t.prototype.resolve=function(t,e){var n=this,a=i.services.$q,s=function(){return a.all(t.getDependencies(n).map(function(n){return n.get(t,e)}))},c=function(t){return n.resolveFn.apply(null,t)},u=function(t){var e=t.cache(1);return e.take(1).toPromise().then(function(){return e})},l=t.findNode(this),d=l&&l.state,f='RXWAIT'===this.getPolicy(d).async?u:r.identity,m=function(t){return n.data=t,n.resolved=!0,o.trace.traceResolvableResolved(n,e),n.data};return this.promise=a.when().then(s).then(c).then(f).then(m)},t.prototype.get=function(t,e){return this.promise||this.resolve(t,e)},t.prototype.toString=function(){return'Resolvable(token: '+a.stringify(this.token)+', requires: ['+this.deps.map(a.stringify)+'])'},t.prototype.clone=function(){return new t(this)},t.fromData=function(e,n){return new t(e,function(){return n},null,null,n)},t}();e.Resolvable=u},function(t,e,n){'use strict';function r(t){var n=function(t){return t||''},r=e.splitHash(t).map(n),i=r[0],o=r[1],a=e.splitQuery(i).map(n);return{path:a[0],search:a[1],hash:o,url:t}}function i(t,e,n,r){return function(i){function o(t){t.dispose(a),t.dispose(s)}var a=i.locationService=new n(i),s=i.locationConfig=new r(i,e);return{name:t,service:a,configuration:s,dispose:o}}}Object.defineProperty(e,'__esModule',{value:!0});var o=n(12),a=n(0),s=function(t){return function(e){if(!e)return['',''];var n=e.indexOf(t);return-1===n?[e,'']:[e.substr(0,n),e.substr(n+1)]}};e.splitHash=s('#'),e.splitQuery=s('?'),e.splitEqual=s('='),e.trimHashVal=function(t){return t?t.replace(/^#/,''):''},e.keyValsToObjectR=function(t,e){var n=e[0],r=e[1];return t.hasOwnProperty(n)?o.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]:t[n]=r,t},e.getParams=function(t){return t.split('&').filter(a.identity).map(e.splitEqual).reduce(e.keyValsToObjectR,{})},e.parseUrl=r,e.buildUrl=function(t){var e=t.path(),n=t.search(),r=t.hash(),i=Object.keys(n).map(function(t){var e=n[t];return(o.isArray(e)?e:[e]).map(function(e){return t+'='+e})}).reduce(a.unnestR,[]).join('&');return e+(i?'?'+i:'')+(r?'#'+r:'')},e.locationPluginFactory=i},function(t,e,n){(function(t,r){var i;(function(){function o(t,e){return t.set(e[0],e[1]),t}function a(t,e){return t.add(e),t}function s(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function c(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function u(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function l(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function d(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function f(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function m(t,e){return!!(null==t?0:t.length)&&_(t,e,0)>-1}function p(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function h(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function v(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function g(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function $(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function b(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function y(t){return t.split('')}function E(t){return t.match(Fe)||[]}function w(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function C(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function _(t,e,n){return e===e?X(t,e,n):C(t,M,n)}function x(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function M(t){return t!==t}function A(t,e){var n=null==t?0:t.length;return n?N(t,e)/n:Pt}function T(t){return function(e){return null==e?it:e[t]}}function k(t){return function(e){return null==t?it:t[e]}}function S(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function O(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function N(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==it&&(n=n===it?o:n+o)}return n}function I(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function D(t,e){return h(e,function(e){return[e,t[e]]})}function P(t){return function(e){return t(e)}}function R(t,e){return h(e,function(e){return t[e]})}function H(t,e){return t.has(e)}function j(t,e){for(var n=-1,r=t.length;++n<r&&_(e,t[n],0)>-1;);return n}function L(t,e){for(var n=t.length;n--&&_(e,t[n],0)>-1;);return n}function F(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}function V(t){return'\\'+Tn[t]}function U(t,e){return null==t?it:t[e]}function q(t){return bn.test(t)}function B(t){return yn.test(t)}function z(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function W(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function Y(t,e){return function(n){return t(e(n))}}function K(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==lt||(t[n]=lt,o[i++]=n)}return o}function G(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Z(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function X(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Q(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}function J(t){return q(t)?et(t):zn(t)}function tt(t){return q(t)?nt(t):y(t)}function et(t){for(var e=gn.lastIndex=0;gn.test(t);)++e;return e}function nt(t){return t.match(gn)||[]}function rt(t){return t.match($n)||[]}var it,ot=200,at='Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',st='Expected a function',ct='__lodash_hash_undefined__',ut=500,lt='__lodash_placeholder__',dt=1,ft=2,mt=4,pt=1,ht=2,vt=1,gt=2,$t=4,bt=8,yt=16,Et=32,wt=64,Ct=128,_t=256,xt=512,Mt=30,At='...',Tt=800,kt=16,St=1,Ot=2,Nt=1/0,It=9007199254740991,Dt=1.7976931348623157e308,Pt=NaN,Rt=4294967295,Ht=Rt-1,jt=Rt>>>1,Lt=[['ary',Ct],['bind',vt],['bindKey',gt],['curry',bt],['curryRight',yt],['flip',xt],['partial',Et],['partialRight',wt],['rearg',_t]],Ft='[object Arguments]',Vt='[object Array]',Ut='[object AsyncFunction]',qt='[object Boolean]',Bt='[object Date]',zt='[object DOMException]',Wt='[object Error]',Yt='[object Function]',Kt='[object GeneratorFunction]',Gt='[object Map]',Zt='[object Number]',Xt='[object Null]',Qt='[object Object]',Jt='[object Proxy]',te='[object RegExp]',ee='[object Set]',ne='[object String]',re='[object Symbol]',ie='[object Undefined]',oe='[object WeakMap]',ae='[object WeakSet]',se='[object ArrayBuffer]',ce='[object DataView]',ue='[object Float32Array]',le='[object Float64Array]',de='[object Int8Array]',fe='[object Int16Array]',me='[object Int32Array]',pe='[object Uint8Array]',he='[object Uint8ClampedArray]',ve='[object Uint16Array]',ge='[object Uint32Array]',$e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,we=/[&<>"']/g,Ce=RegExp(Ee.source),_e=RegExp(we.source),xe=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ke=/^\w*$/,Se=/^\./,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ne.source),De=/^\s+|\s+$/g,Pe=/^\s+/,Re=/\s+$/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,Fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Be=/^[-+]0x[0-9a-f]+$/i,ze=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Ye=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Xe=/['\n\r\u2028\u2029\\]/g,Qe='\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff',Je='\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',tn='['+Je+']',en='['+Qe+']',nn='[a-z\\xdf-\\xf6\\xf8-\\xff]',rn='[^\\ud800-\\udfff'+Je+'\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]',on='\\ud83c[\\udffb-\\udfff]',an='(?:\\ud83c[\\udde6-\\uddff]){2}',sn='[\\ud800-\\udbff][\\udc00-\\udfff]',cn='[A-Z\\xc0-\\xd6\\xd8-\\xde]',un='(?:'+nn+'|'+rn+')',ln='(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?',dn='(?:\\u200d(?:'+['[^\\ud800-\\udfff]',an,sn].join('|')+')[\\ufe0e\\ufe0f]?'+ln+')*',fn='[\\ufe0e\\ufe0f]?'+ln+dn,mn='(?:'+['[\\u2700-\\u27bf]',an,sn].join('|')+')'+fn,pn='(?:'+['[^\\ud800-\\udfff]'+en+'?',en,an,sn,'[\\ud800-\\udfff]'].join('|')+')',hn=RegExp('[\'’]','g'),vn=RegExp(en,'g'),gn=RegExp(on+'(?='+on+')|'+pn+fn,'g'),$n=RegExp([cn+'?'+nn+'+(?:[\'’](?:d|ll|m|re|s|t|ve))?(?='+[tn,cn,'$'].join('|')+')','(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:[\'’](?:D|LL|M|RE|S|T|VE))?(?='+[tn,cn+un,'$'].join('|')+')',cn+'?'+un+'+(?:[\'’](?:d|ll|m|re|s|t|ve))?',cn+'+(?:[\'’](?:D|LL|M|RE|S|T|VE))?','\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)','\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)','\\d+',mn].join('|'),'g'),bn=RegExp('[\\u200d\\ud800-\\udfff'+Qe+'\\ufe0e\\ufe0f]'),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,En=['Array','Buffer','DataView','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Map','Math','Object','Promise','RegExp','Set','String','Symbol','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','_','clearTimeout','isFinite','parseInt','setTimeout'],wn=-1,Cn={};Cn[ue]=Cn[le]=Cn[de]=Cn[fe]=Cn[me]=Cn[pe]=Cn[he]=Cn[ve]=Cn[ge]=!0,Cn[Ft]=Cn[Vt]=Cn[se]=Cn[qt]=Cn[ce]=Cn[Bt]=Cn[Wt]=Cn[Yt]=Cn[Gt]=Cn[Zt]=Cn[Qt]=Cn[te]=Cn[ee]=Cn[ne]=Cn[oe]=!1;var _n={};_n[Ft]=_n[Vt]=_n[se]=_n[ce]=_n[qt]=_n[Bt]=_n[ue]=_n[le]=_n[de]=_n[fe]=_n[me]=_n[Gt]=_n[Zt]=_n[Qt]=_n[te]=_n[ee]=_n[ne]=_n[re]=_n[pe]=_n[he]=_n[ve]=_n[ge]=!0,_n[Wt]=_n[Yt]=_n[oe]=!1;var xn={'À':'A','Á':'A','Â':'A','Ã':'A','Ä':'A','Å':'A','à':'a','á':'a','â':'a','ã':'a','ä':'a','å':'a','Ç':'C','ç':'c','Ð':'D','ð':'d','È':'E','É':'E','Ê':'E','Ë':'E','è':'e','é':'e','ê':'e','ë':'e','Ì':'I','Í':'I','Î':'I','Ï':'I','ì':'i','í':'i','î':'i','ï':'i','Ñ':'N','ñ':'n','Ò':'O','Ó':'O','Ô':'O','Õ':'O','Ö':'O','Ø':'O','ò':'o','ó':'o','ô':'o','õ':'o','ö':'o','ø':'o','Ù':'U','Ú':'U','Û':'U','Ü':'U','ù':'u','ú':'u','û':'u','ü':'u','Ý':'Y','ý':'y','ÿ':'y','Æ':'Ae','æ':'ae','Þ':'Th','þ':'th','ß':'ss','Ā':'A','Ă':'A','Ą':'A','ā':'a','ă':'a','ą':'a','Ć':'C','Ĉ':'C','Ċ':'C','Č':'C','ć':'c','ĉ':'c','ċ':'c','č':'c','Ď':'D','Đ':'D','ď':'d','đ':'d','Ē':'E','Ĕ':'E','Ė':'E','Ę':'E','Ě':'E','ē':'e','ĕ':'e','ė':'e','ę':'e','ě':'e','Ĝ':'G','Ğ':'G','Ġ':'G','Ģ':'G','ĝ':'g','ğ':'g','ġ':'g','ģ':'g','Ĥ':'H','Ħ':'H','ĥ':'h','ħ':'h','Ĩ':'I','Ī':'I','Ĭ':'I','Į':'I','İ':'I','ĩ':'i','ī':'i','ĭ':'i','į':'i','ı':'i','Ĵ':'J','ĵ':'j','Ķ':'K','ķ':'k','ĸ':'k','Ĺ':'L','Ļ':'L','Ľ':'L','Ŀ':'L','Ł':'L','ĺ':'l','ļ':'l','ľ':'l','ŀ':'l','ł':'l','Ń':'N','Ņ':'N','Ň':'N','Ŋ':'N','ń':'n','ņ':'n','ň':'n','ŋ':'n','Ō':'O','Ŏ':'O','Ő':'O','ō':'o','ŏ':'o','ő':'o','Ŕ':'R','Ŗ':'R','Ř':'R','ŕ':'r','ŗ':'r','ř':'r','Ś':'S','Ŝ':'S','Ş':'S','Š':'S','ś':'s','ŝ':'s','ş':'s','š':'s','Ţ':'T','Ť':'T','Ŧ':'T','ţ':'t','ť':'t','ŧ':'t','Ũ':'U','Ū':'U','Ŭ':'U','Ů':'U','Ű':'U','Ų':'U','ũ':'u','ū':'u','ŭ':'u','ů':'u','ű':'u','ų':'u','Ŵ':'W','ŵ':'w','Ŷ':'Y','ŷ':'y','Ÿ':'Y','Ź':'Z','Ż':'Z','Ž':'Z','ź':'z','ż':'z','ž':'z','Ĳ':'IJ','ĳ':'ij','Œ':'Oe','œ':'oe','ŉ':'\'n','ſ':'s'},Mn={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;','\'':'&#39;'},An={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'"','&#39;':'\''},Tn={'\\':'\\','\'':'\'','\n':'n','\r':'r','\u2028':'u2028','\u2029':'u2029'},kn=parseFloat,Sn=parseInt,On='object'==typeof t&&t&&t.Object===Object&&t,Nn='object'==typeof self&&self&&self.Object===Object&&self,In=On||Nn||Function('return this')(),Dn='object'==typeof e&&e&&!e.nodeType&&e,Pn=Dn&&'object'==typeof r&&r&&!r.nodeType&&r,Rn=Pn&&Pn.exports===Dn,Hn=Rn&&On.process,jn=function(){try{return Hn&&Hn.binding&&Hn.binding('util')}catch(t){}}(),Ln=jn&&jn.isArrayBuffer,Fn=jn&&jn.isDate,Vn=jn&&jn.isMap,Un=jn&&jn.isRegExp,qn=jn&&jn.isSet,Bn=jn&&jn.isTypedArray,zn=T('length'),Wn=k(xn),Yn=k(Mn),Kn=k(An),Gn=function t(e){function n(t){if(oc(t)&&!gf(t)&&!(t instanceof y)){if(t instanceof i)return t;if(vl.call(t,'__wrapped__'))return na(t)}return new i(t)}function r(){}function i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=it}function y(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Rt,this.__views__=[]}function k(){var t=new y(this.__wrapped__);return t.__actions__=Hi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Hi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Hi(this.__views__),t}function X(){if(this.__filtered__){var t=new y(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,n=gf(t),r=e<0,i=n?t.length:0,o=Ao(0,i,this.__views__),a=o.start,s=o.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,d=l.length,f=0,m=Wl(c,this.__takeCount__);if(!n||!r&&i==c&&m==c)return $i(t,this.__actions__);var p=[];t:for(;c--&&f<m;){u+=e;for(var h=-1,v=t[u];++h<d;){var g=l[h],$=g.iteratee,b=g.type,y=$(v);if(b==Ot)v=y;else if(!y){if(b==St)continue t;break t}}p[f++]=v}return p}function nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Fe(){this.__data__=nd?nd(null):{},this.size=0}function Qe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function Je(t){var e=this.__data__;if(nd){var n=e[t];return n===ct?it:n}return vl.call(e,t)?e[t]:it}function tn(t){var e=this.__data__;return nd?e[t]!==it:vl.call(e,t)}function en(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nd&&e===it?ct:e,this}function nn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rn(){this.__data__=[],this.size=0}function on(t){var e=this.__data__,n=Zn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Sl.call(e,n,1),--this.size,!0)}function an(t){var e=this.__data__,n=Zn(e,t);return n<0?it:e[n][1]}function sn(t){return Zn(this.__data__,t)>-1}function cn(t,e){var n=this.__data__,r=Zn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ln(){this.size=0,this.__data__={hash:new nt,map:new(Ql||nn),string:new nt}}function dn(t){var e=Co(this,t).delete(t);return this.size-=e?1:0,e}function fn(t){return Co(this,t).get(t)}function mn(t){return Co(this,t).has(t)}function pn(t,e){var n=Co(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function gn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new un;++e<n;)this.add(t[e])}function $n(t){return this.__data__.set(t,ct),this}function bn(t){return this.__data__.has(t)}function yn(t){var e=this.__data__=new nn(t);this.size=e.size}function xn(){this.__data__=new nn,this.size=0}function Mn(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function An(t){return this.__data__.get(t)}function Tn(t){return this.__data__.has(t)}function On(t,e){var n=this.__data__;if(n instanceof nn){var r=n.__data__;if(!Ql||r.length<ot-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new un(r)}return n.set(t,e),this.size=n.size,this}function Nn(t,e){var n=gf(t),r=!n&&vf(t),i=!n&&!r&&bf(t),o=!n&&!r&&!i&&_f(t),a=n||r||i||o,s=a?I(t.length,ul):[],c=s.length;for(var u in t)!e&&!vl.call(t,u)||a&&('length'==u||i&&('offset'==u||'parent'==u)||o&&('buffer'==u||'byteLength'==u||'byteOffset'==u)||Po(u,c))||s.push(u);return s}function Dn(t){var e=t.length;return e?t[Jr(0,e-1)]:it}function Pn(t,e){return Qo(Hi(t),nr(e,0,t.length))}function Hn(t){return Qo(Hi(t))}function jn(t,e,n){(n===it||zs(t[e],n))&&(n!==it||e in t)||tr(t,e,n)}function zn(t,e,n){var r=t[e];vl.call(t,e)&&zs(r,n)&&(n!==it||e in t)||tr(t,e,n)}function Zn(t,e){for(var n=t.length;n--;)if(zs(t[n][0],e))return n;return-1}function Xn(t,e,n,r){return pd(t,function(t,i,o){e(r,t,n(t),o)}),r}function Qn(t,e){return t&&ji(e,Fc(e),t)}function Jn(t,e){return t&&ji(e,Vc(e),t)}function tr(t,e,n){'__proto__'==e&&Dl?Dl(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function er(t,e){for(var n=-1,r=e.length,i=nl(r),o=null==t;++n<r;)i[n]=o?it:Hc(t,e[n]);return i}function nr(t,e,n){return t===t&&(n!==it&&(t=t<=n?t:n),e!==it&&(t=t>=e?t:e)),t}function rr(t,e,n,r,i,o){var a,s=e&dt,c=e&ft,l=e&mt;if(n&&(a=i?n(t,r,i,o):n(t)),a!==it)return a;if(!ic(t))return t;var d=gf(t);if(d){if(a=So(t),!s)return Hi(t,a)}else{var f=Md(t),m=f==Yt||f==Kt;if(bf(t))return xi(t,s);if(f==Qt||f==Ft||m&&!i){if(a=c||m?{}:Oo(t),!s)return c?Fi(t,Jn(a,t)):Li(t,Qn(a,t))}else{if(!_n[f])return i?t:{};a=No(t,f,rr,s)}}o||(o=new yn);var p=o.get(t);if(p)return p;o.set(t,a);var h=l?c?bo:$o:c?Vc:Fc,v=d?it:h(t);return u(v||t,function(r,i){v&&(i=r,r=t[i]),zn(a,i,rr(r,e,n,i,t,o))}),a}function ir(t){var e=Fc(t);return function(n){return or(n,t,e)}}function or(t,e,n){var r=n.length;if(null==t)return!r;for(t=sl(t);r--;){var i=n[r],o=e[i],a=t[i];if(a===it&&!(i in t)||!o(a))return!1}return!0}function ar(t,e,n){if('function'!=typeof t)throw new ll(st);return kd(function(){t.apply(it,n)},e)}function sr(t,e,n,r){var i=-1,o=m,a=!0,s=t.length,c=[],u=e.length;if(!s)return c;n&&(e=h(e,P(n))),r?(o=p,a=!1):e.length>=ot&&(o=H,a=!1,e=new gn(e));t:for(;++i<s;){var l=t[i],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d===d){for(var f=u;f--;)if(e[f]===d)continue t;c.push(l)}else o(e,d,r)||c.push(l)}return c}function cr(t,e){var n=!0;return pd(t,function(t,r,i){return n=!!e(t,r,i)}),n}function ur(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(s===it?a===a&&!vc(a):n(a,s)))var s=a,c=o}return c}function lr(t,e,n,r){var i=t.length;for(n=wc(n),n<0&&(n=-n>i?0:i+n),r=r===it||r>i?i:wc(r),r<0&&(r+=i),r=n>r?0:Cc(r);n<r;)t[n++]=e;return t}function dr(t,e){var n=[];return pd(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function fr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Do),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?fr(s,e-1,n,r,i):v(i,s):r||(i[i.length]=s)}return i}function mr(t,e){return t&&vd(t,e,Fc)}function pr(t,e){return t&&gd(t,e,Fc)}function hr(t,e){return f(e,function(e){return ec(t[e])})}function vr(t,e){e=Ci(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Jo(e[n++])];return n&&n==r?t:it}function gr(t,e,n){var r=e(t);return gf(t)?r:v(r,n(t))}function $r(t){return null==t?t===it?ie:Xt:Il&&Il in sl(t)?Mo(t):Wo(t)}function br(t,e){return t>e}function yr(t,e){return null!=t&&vl.call(t,e)}function Er(t,e){return null!=t&&e in sl(t)}function wr(t,e,n){return t>=Wl(e,n)&&t<zl(e,n)}function Cr(t,e,n){for(var r=n?p:m,i=t[0].length,o=t.length,a=o,s=nl(o),c=1/0,u=[];a--;){var l=t[a];a&&e&&(l=h(l,P(e))),c=Wl(l.length,c),s[a]=!n&&(e||i>=120&&l.length>=120)?new gn(a&&l):it}l=t[0];var d=-1,f=s[0];t:for(;++d<i&&u.length<c;){var v=l[d],g=e?e(v):v;if(v=n||0!==v?v:0,!(f?H(f,g):r(u,g,n))){for(a=o;--a;){var $=s[a];if(!($?H($,g):r(t[a],g,n)))continue t}f&&f.push(g),u.push(v)}}return u}function _r(t,e,n,r){return mr(t,function(t,i,o){e(r,n(t),i,o)}),r}function xr(t,e,n){e=Ci(e,t),t=Ko(t,e);var r=null==t?t:t[Jo(Ea(e))];return null==r?it:s(r,t,n)}function Mr(t){return oc(t)&&$r(t)==Ft}function Ar(t){return oc(t)&&$r(t)==se}function Tr(t){return oc(t)&&$r(t)==Bt}function kr(t,e,n,r,i){return t===e||(null==t||null==e||!oc(t)&&!oc(e)?t!==t&&e!==e:Sr(t,e,n,r,kr,i))}function Sr(t,e,n,r,i,o){var a=gf(t),s=gf(e),c=a?Vt:Md(t),u=s?Vt:Md(e);c=c==Ft?Qt:c,u=u==Ft?Qt:u;var l=c==Qt,d=u==Qt,f=c==u;if(f&&bf(t)){if(!bf(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new yn),a||_f(t)?po(t,e,n,r,i,o):ho(t,e,c,n,r,i,o);if(!(n&pt)){var m=l&&vl.call(t,'__wrapped__'),p=d&&vl.call(e,'__wrapped__');if(m||p){var h=m?t.value():t,v=p?e.value():e;return o||(o=new yn),i(h,v,n,r,o)}}return!!f&&(o||(o=new yn),vo(t,e,n,r,i,o))}function Or(t){return oc(t)&&Md(t)==Gt}function Nr(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=sl(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){s=n[i];var c=s[0],u=t[c],l=s[1];if(a&&s[2]){if(u===it&&!(c in t))return!1}else{var d=new yn;if(r)var f=r(u,l,c,t,e,d);if(!(f===it?kr(l,u,pt|ht,r,d):f))return!1}}return!0}function Ir(t){return!(!ic(t)||Fo(t))&&(ec(t)?wl:We).test(ta(t))}function Dr(t){return oc(t)&&$r(t)==te}function Pr(t){return oc(t)&&Md(t)==ee}function Rr(t){return oc(t)&&rc(t.length)&&!!Cn[$r(t)]}function Hr(t){return'function'==typeof t?t:null==t?Su:'object'==typeof t?gf(t)?qr(t[0],t[1]):Ur(t):ju(t)}function jr(t){if(!Vo(t))return Bl(t);var e=[];for(var n in sl(t))vl.call(t,n)&&'constructor'!=n&&e.push(n);return e}function Lr(t){if(!ic(t))return zo(t);var e=Vo(t),n=[];for(var r in t)('constructor'!=r||!e&&vl.call(t,r))&&n.push(r);return n}function Fr(t,e){return t<e}function Vr(t,e){var n=-1,r=Ws(t)?nl(t.length):[];return pd(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Ur(t){var e=_o(t);return 1==e.length&&e[0][2]?qo(e[0][0],e[0][1]):function(n){return n===t||Nr(n,t,e)}}function qr(t,e){return Ho(t)&&Uo(e)?qo(Jo(t),e):function(n){var r=Hc(n,t);return r===it&&r===e?Lc(n,t):kr(e,r,pt|ht)}}function Br(t,e,n,r,i){t!==e&&vd(e,function(o,a){if(ic(o))i||(i=new yn),zr(t,e,a,n,Br,r,i);else{var s=r?r(t[a],o,a+'',t,e,i):it;s===it&&(s=o),jn(t,a,s)}},Vc)}function zr(t,e,n,r,i,o,a){var s=t[n],c=e[n],u=a.get(c);if(u)return void jn(t,n,u);var l=o?o(s,c,n+'',t,e,a):it,d=l===it;if(d){var f=gf(c),m=!f&&bf(c),p=!f&&!m&&_f(c);l=c,f||m||p?gf(s)?l=s:Ys(s)?l=Hi(s):m?(d=!1,l=xi(c,!0)):p?(d=!1,l=Ni(c,!0)):l=[]:mc(c)||vf(c)?(l=s,vf(s)?l=xc(s):(!ic(s)||r&&ec(s))&&(l=Oo(c))):d=!1}d&&(a.set(c,l),i(l,c,r,o,a),a.delete(c)),jn(t,n,l)}function Wr(t,e){var n=t.length;if(n)return e+=e<0?n:0,Po(e,n)?t[e]:it}function Yr(t,e,n){var r=-1;return e=h(e.length?e:[Su],P(wo())),O(Vr(t,function(t,n,i){return{criteria:h(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return Di(t,e,n)})}function Kr(t,e){return Gr(t,e,function(e,n){return Lc(t,n)})}function Gr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=vr(t,a);n(s,a)&&oi(o,Ci(a,t),s)}return o}function Zr(t){return function(e){return vr(e,t)}}function Xr(t,e,n,r){var i=r?x:_,o=-1,a=e.length,s=t;for(t===e&&(e=Hi(e)),n&&(s=h(t,P(n)));++o<a;)for(var c=0,u=e[o],l=n?n(u):u;(c=i(s,l,c,r))>-1;)s!==t&&Sl.call(s,c,1),Sl.call(t,c,1);return t}function Qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Po(i)?Sl.call(t,i,1):hi(t,i)}}return t}function Jr(t,e){return t+Ll(Gl()*(e-t+1))}function ti(t,e,n,r){for(var i=-1,o=zl(jl((e-t)/(n||1)),0),a=nl(o);o--;)a[r?o:++i]=t,t+=n;return a}function ei(t,e){var n='';if(!t||e<1||e>It)return n;do{e%2&&(n+=t),(e=Ll(e/2))&&(t+=t)}while(e);return n}function ni(t,e){return Sd(Yo(t,e,Su),t+'')}function ri(t){return Dn(Jc(t))}function ii(t,e){var n=Jc(t);return Qo(n,nr(e,0,n.length))}function oi(t,e,n,r){if(!ic(t))return t;e=Ci(e,t);for(var i=-1,o=e.length,a=o-1,s=t;null!=s&&++i<o;){var c=Jo(e[i]),u=n;if(i!=a){var l=s[c];u=r?r(l,c,s):it,u===it&&(u=ic(l)?l:Po(e[i+1])?[]:{})}zn(s,c,u),s=s[c]}return t}function ai(t){return Qo(Jc(t))}function si(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=nl(i);++r<i;)o[r]=t[r+e];return o}function ci(t,e){var n;return pd(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ui(t,e,n){var r=0,i=null==t?r:t.length;if('number'==typeof e&&e===e&&i<=jt){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!vc(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return li(t,e,Su,n)}function li(t,e,n,r){e=n(e);for(var i=0,o=null==t?0:t.length,a=e!==e,s=null===e,c=vc(e),u=e===it;i<o;){var l=Ll((i+o)/2),d=n(t[l]),f=d!==it,m=null===d,p=d===d,h=vc(d);if(a)var v=r||p;else v=u?p&&(r||f):s?p&&f&&(r||!m):c?p&&f&&!m&&(r||!h):!m&&!h&&(r?d<=e:d<e);v?i=l+1:o=l}return Wl(o,Ht)}function di(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!zs(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function fi(t){return'number'==typeof t?t:vc(t)?Pt:+t}function mi(t){if('string'==typeof t)return t;if(gf(t))return h(t,mi)+'';if(vc(t))return fd?fd.call(t):'';var e=t+'';return'0'==e&&1/t==-Nt?'-0':e}function pi(t,e,n){var r=-1,i=m,o=t.length,a=!0,s=[],c=s;if(n)a=!1,i=p;else if(o>=ot){var u=e?null:wd(t);if(u)return G(u);a=!1,i=H,c=new gn}else c=e?[]:s;t:for(;++r<o;){var l=t[r],d=e?e(l):l;if(l=n||0!==l?l:0,a&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue t;e&&c.push(d),s.push(l)}else i(c,d,n)||(c!==s&&c.push(d),s.push(l))}return s}function hi(t,e){return e=Ci(e,t),null==(t=Ko(t,e))||delete t[Jo(Ea(e))]}function vi(t,e,n,r){return oi(t,e,n(vr(t,e)),r)}function gi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?si(t,r?0:o,r?o+1:i):si(t,r?o+1:0,r?i:o)}function $i(t,e){var n=t;return n instanceof y&&(n=n.value()),g(e,function(t,e){return e.func.apply(e.thisArg,v([t],e.args))},n)}function bi(t,e,n){var r=t.length;if(r<2)return r?pi(t[0]):[];for(var i=-1,o=nl(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=sr(o[i]||a,t[s],e,n));return pi(fr(o,1),e,n)}function yi(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:it;n(a,t[r],s)}return a}function Ei(t){return Ys(t)?t:[]}function wi(t){return'function'==typeof t?t:Su}function Ci(t,e){return gf(t)?t:Ho(t,e)?[t]:Od(Ac(t))}function _i(t,e,n){var r=t.length;return n=n===it?r:n,!e&&n>=r?t:si(t,e,n)}function xi(t,e){if(e)return t.slice();var n=t.length,r=Ml?Ml(n):new t.constructor(n);return t.copy(r),r}function Mi(t){var e=new t.constructor(t.byteLength);return new xl(e).set(new xl(t)),e}function Ai(t,e){var n=e?Mi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ti(t,e,n){return g(e?n(W(t),dt):W(t),o,new t.constructor)}function ki(t){var e=new t.constructor(t.source,qe.exec(t));return e.lastIndex=t.lastIndex,e}function Si(t,e,n){return g(e?n(G(t),dt):G(t),a,new t.constructor)}function Oi(t){return dd?sl(dd.call(t)):{}}function Ni(t,e){var n=e?Mi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ii(t,e){if(t!==e){var n=t!==it,r=null===t,i=t===t,o=vc(t),a=e!==it,s=null===e,c=e===e,u=vc(e);if(!s&&!u&&!o&&t>e||o&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}function Di(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var c=Ii(i[r],o[r]);if(c){if(r>=s)return c;return c*('desc'==n[r]?-1:1)}}return t.index-e.index}function Pi(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,c=e.length,u=zl(o-a,0),l=nl(c+u),d=!r;++s<c;)l[s]=e[s];for(;++i<a;)(d||i<o)&&(l[n[i]]=t[i]);for(;u--;)l[s++]=t[i++];return l}function Ri(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,c=-1,u=e.length,l=zl(o-s,0),d=nl(l+u),f=!r;++i<l;)d[i]=t[i];for(var m=i;++c<u;)d[m+c]=e[c];for(;++a<s;)(f||i<o)&&(d[m+n[a]]=t[i++]);return d}function Hi(t,e){var n=-1,r=t.length;for(e||(e=nl(r));++n<r;)e[n]=t[n];return e}function ji(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],c=r?r(n[s],t[s],s,n,t):it;c===it&&(c=t[s]),i?tr(n,s,c):zn(n,s,c)}return n}function Li(t,e){return ji(t,_d(t),e)}function Fi(t,e){return ji(t,xd(t),e)}function Vi(t,e){return function(n,r){var i=gf(n)?c:Xn,o=e?e():{};return i(n,t,wo(r,2),o)}}function Ui(t){return ni(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:it,a=i>2?n[2]:it;for(o=t.length>3&&'function'==typeof o?(i--,o):it,a&&Ro(n[0],n[1],a)&&(o=i<3?it:o,i=1),e=sl(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}function qi(t,e){return function(n,r){if(null==n)return n;if(!Ws(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=sl(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Bi(t){return function(e,n,r){for(var i=-1,o=sl(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}function zi(t,e,n){function r(){return(this&&this!==In&&this instanceof r?o:t).apply(i?n:this,arguments)}var i=e&vt,o=Ki(t);return r}function Wi(t){return function(e){e=Ac(e);var n=q(e)?tt(e):it,r=n?n[0]:e.charAt(0),i=n?_i(n,1).join(''):e.slice(1);return r[t]()+i}}function Yi(t){return function(e){return g(xu(ou(e).replace(hn,'')),t,'')}}function Ki(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=md(t.prototype),r=t.apply(n,e);return ic(r)?r:n}}function Gi(t,e,n){function r(){for(var o=arguments.length,a=nl(o),c=o,u=Eo(r);c--;)a[c]=arguments[c];var l=o<3&&a[0]!==u&&a[o-1]!==u?[]:K(a,u);return(o-=l.length)<n?ao(t,e,Qi,r.placeholder,it,a,l,it,it,n-o):s(this&&this!==In&&this instanceof r?i:t,this,a)}var i=Ki(t);return r}function Zi(t){return function(e,n,r){var i=sl(e);if(!Ws(e)){var o=wo(n,3);e=Fc(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:it}}function Xi(t){return go(function(e){var n=e.length,r=n,o=i.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if('function'!=typeof a)throw new ll(st);if(o&&!s&&'wrapper'==yo(a))var s=new i([],!0)}for(r=s?r:n;++r<n;){a=e[r];var c=yo(a),u='wrapper'==c?Cd(a):it;s=u&&Lo(u[0])&&u[1]==(Ct|bt|Et|_t)&&!u[4].length&&1==u[9]?s[yo(u[0])].apply(s,u[3]):1==a.length&&Lo(a)?s[c]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&gf(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function Qi(t,e,n,r,i,o,a,s,c,u){function l(){for(var g=arguments.length,$=nl(g),b=g;b--;)$[b]=arguments[b];if(p)var y=Eo(l),E=F($,y);if(r&&($=Pi($,r,i,p)),o&&($=Ri($,o,a,p)),g-=E,p&&g<u){var w=K($,y);return ao(t,e,Qi,l.placeholder,n,$,w,s,c,u-g)}var C=f?n:this,_=m?C[t]:t;return g=$.length,s?$=Go($,s):h&&g>1&&$.reverse(),d&&c<g&&($.length=c),this&&this!==In&&this instanceof l&&(_=v||Ki(_)),_.apply(C,$)}var d=e&Ct,f=e&vt,m=e&gt,p=e&(bt|yt),h=e&xt,v=m?it:Ki(t);return l}function Ji(t,e){return function(n,r){return _r(n,t,e(r),{})}}function to(t,e){return function(n,r){var i;if(n===it&&r===it)return e;if(n!==it&&(i=n),r!==it){if(i===it)return r;'string'==typeof n||'string'==typeof r?(n=mi(n),r=mi(r)):(n=fi(n),r=fi(r)),i=t(n,r)}return i}}function eo(t){return go(function(e){return e=h(e,P(wo())),ni(function(n){var r=this;return t(e,function(t){return s(t,r,n)})})})}function no(t,e){e=e===it?' ':mi(e);var n=e.length;if(n<2)return n?ei(e,t):e;var r=ei(e,jl(t/J(e)));return q(e)?_i(tt(r),0,t).join(''):r.slice(0,t)}function ro(t,e,n,r){function i(){for(var e=-1,c=arguments.length,u=-1,l=r.length,d=nl(l+c),f=this&&this!==In&&this instanceof i?a:t;++u<l;)d[u]=r[u];for(;c--;)d[u++]=arguments[++e];return s(f,o?n:this,d)}var o=e&vt,a=Ki(t);return i}function io(t){return function(e,n,r){return r&&'number'!=typeof r&&Ro(e,n,r)&&(n=r=it),e=Ec(e),n===it?(n=e,e=0):n=Ec(n),r=r===it?e<n?1:-1:Ec(r),ti(e,n,r,t)}}function oo(t){return function(e,n){return'string'==typeof e&&'string'==typeof n||(e=_c(e),n=_c(n)),t(e,n)}}function ao(t,e,n,r,i,o,a,s,c,u){var l=e&bt,d=l?a:it,f=l?it:a,m=l?o:it,p=l?it:o;e|=l?Et:wt,(e&=~(l?wt:Et))&$t||(e&=~(vt|gt));var h=[t,e,i,m,d,p,f,s,c,u],v=n.apply(it,h);return Lo(t)&&Td(v,h),v.placeholder=r,Zo(v,t,e)}function so(t){var e=al[t];return function(t,n){if(t=_c(t),n=null==n?0:Wl(wc(n),292)){var r=(Ac(t)+'e').split('e');return r=(Ac(e(r[0]+'e'+(+r[1]+n)))+'e').split('e'),+(r[0]+'e'+(+r[1]-n))}return e(t)}}function co(t){return function(e){var n=Md(e);return n==Gt?W(e):n==ee?Z(e):D(e,t(e))}}function uo(t,e,n,r,i,o,a,s){var c=e&gt;if(!c&&'function'!=typeof t)throw new ll(st);var u=r?r.length:0;if(u||(e&=~(Et|wt),r=i=it),a=a===it?a:zl(wc(a),0),s=s===it?s:wc(s),u-=i?i.length:0,e&wt){var l=r,d=i;r=i=it}var f=c?it:Cd(t),m=[t,e,n,r,i,l,d,o,a,s];if(f&&Bo(m,f),t=m[0],e=m[1],n=m[2],r=m[3],i=m[4],s=m[9]=m[9]===it?c?0:t.length:zl(m[9]-u,0),!s&&e&(bt|yt)&&(e&=~(bt|yt)),e&&e!=vt)p=e==bt||e==yt?Gi(t,e,s):e!=Et&&e!=(vt|Et)||i.length?Qi.apply(it,m):ro(t,e,n,r);else var p=zi(t,e,n);return Zo((f?$d:Td)(p,m),t,e)}function lo(t,e,n,r){return t===it||zs(t,ml[n])&&!vl.call(r,n)?e:t}function fo(t,e,n,r,i,o){return ic(t)&&ic(e)&&(o.set(e,t),Br(t,e,it,fo,o),o.delete(e)),t}function mo(t){return mc(t)?it:t}function po(t,e,n,r,i,o){var a=n&pt,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(t);if(u&&o.get(e))return u==e;var l=-1,d=!0,f=n&ht?new gn:it;for(o.set(t,e),o.set(e,t);++l<s;){var m=t[l],p=e[l];if(r)var h=a?r(p,m,l,e,t,o):r(m,p,l,t,e,o);if(h!==it){if(h)continue;d=!1;break}if(f){if(!b(e,function(t,e){if(!H(f,e)&&(m===t||i(m,t,n,r,o)))return f.push(e)})){d=!1;break}}else if(m!==p&&!i(m,p,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function ho(t,e,n,r,i,o,a){switch(n){case ce:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case se:return!(t.byteLength!=e.byteLength||!o(new xl(t),new xl(e)));case qt:case Bt:case Zt:return zs(+t,+e);case Wt:return t.name==e.name&&t.message==e.message;case te:case ne:return t==e+'';case Gt:var s=W;case ee:var c=r&pt;if(s||(s=G),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=ht,a.set(t,e);var l=po(s(t),s(e),r,i,o,a);return a.delete(t),l;case re:if(dd)return dd.call(t)==dd.call(e)}return!1}function vo(t,e,n,r,i,o){var a=n&pt,s=$o(t),c=s.length;if(c!=$o(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:vl.call(e,l)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var f=!0;o.set(t,e),o.set(e,t);for(var m=a;++u<c;){l=s[u];var p=t[l],h=e[l];if(r)var v=a?r(h,p,l,e,t,o):r(p,h,l,t,e,o);if(!(v===it?p===h||i(p,h,n,r,o):v)){f=!1;break}m||(m='constructor'==l)}if(f&&!m){var g=t.constructor,$=e.constructor;g!=$&&'constructor'in t&&'constructor'in e&&!('function'==typeof g&&g instanceof g&&'function'==typeof $&&$ instanceof $)&&(f=!1)}return o.delete(t),o.delete(e),f}function go(t){return Sd(Yo(t,it,ma),t+'')}function $o(t){return gr(t,Fc,_d)}function bo(t){return gr(t,Vc,xd)}function yo(t){for(var e=t.name+'',n=id[e],r=vl.call(id,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Eo(t){return(vl.call(n,'placeholder')?n:t).placeholder}function wo(){var t=n.iteratee||Ou;return t=t===Ou?Hr:t,arguments.length?t(arguments[0],arguments[1]):t}function Co(t,e){var n=t.__data__;return jo(e)?n['string'==typeof e?'string':'hash']:n.map}function _o(t){for(var e=Fc(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Uo(i)]}return e}function xo(t,e){var n=U(t,e);return Ir(n)?n:it}function Mo(t){var e=vl.call(t,Il),n=t[Il];try{t[Il]=it;var r=!0}catch(t){}var i=bl.call(t);return r&&(e?t[Il]=n:delete t[Il]),i}function Ao(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case'drop':t+=a;break;case'dropRight':e-=a;break;case'take':e=Wl(e,t+a);break;case'takeRight':t=zl(t,e-a)}}return{start:t,end:e}}function To(t){var e=t.match(je);return e?e[1].split(Le):[]}function ko(t,e,n){e=Ci(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=Jo(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&rc(i)&&Po(a,i)&&(gf(t)||vf(t))}function So(t){var e=t.length,n=t.constructor(e);return e&&'string'==typeof t[0]&&vl.call(t,'index')&&(n.index=t.index,n.input=t.input),n}function Oo(t){return'function'!=typeof t.constructor||Vo(t)?{}:md(Al(t))}function No(t,e,n,r){var i=t.constructor;switch(e){case se:return Mi(t);case qt:case Bt:return new i(+t);case ce:return Ai(t,r);case ue:case le:case de:case fe:case me:case pe:case he:case ve:case ge:return Ni(t,r);case Gt:return Ti(t,r,n);case Zt:case ne:return new i(t);case te:return ki(t);case ee:return Si(t,r,n);case re:return Oi(t)}}function Io(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?'& ':'')+e[r],e=e.join(n>2?', ':' '),t.replace(He,'{\n/* [wrapped with '+e+'] */\n')}function Do(t){return gf(t)||vf(t)||!!(Ol&&t&&t[Ol])}function Po(t,e){return!!(e=null==e?It:e)&&('number'==typeof t||Ke.test(t))&&t>-1&&t%1==0&&t<e}function Ro(t,e,n){if(!ic(n))return!1;var r=typeof e;return!!('number'==r?Ws(n)&&Po(e,n.length):'string'==r&&e in n)&&zs(n[e],t)}function Ho(t,e){if(gf(t))return!1;var n=typeof t;return!('number'!=n&&'symbol'!=n&&'boolean'!=n&&null!=t&&!vc(t))||(ke.test(t)||!Te.test(t)||null!=e&&t in sl(e))}function jo(t){var e=typeof t;return'string'==e||'number'==e||'symbol'==e||'boolean'==e?'__proto__'!==t:null===t}function Lo(t){var e=yo(t),r=n[e];if('function'!=typeof r||!(e in y.prototype))return!1;if(t===r)return!0;var i=Cd(r);return!!i&&t===i[0]}function Fo(t){return!!$l&&$l in t}function Vo(t){var e=t&&t.constructor;return t===('function'==typeof e&&e.prototype||ml)}function Uo(t){return t===t&&!ic(t)}function qo(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==it||t in sl(n)))}}function Bo(t,e){var n=t[1],r=e[1],i=n|r,o=i<(vt|gt|Ct),a=r==Ct&&n==bt||r==Ct&&n==_t&&t[7].length<=e[8]||r==(Ct|_t)&&e[7].length<=e[8]&&n==bt;if(!o&&!a)return t;r&vt&&(t[2]=e[2],i|=n&vt?0:$t);var s=e[3];if(s){var c=t[3];t[3]=c?Pi(c,s,e[4]):s,t[4]=c?K(t[3],lt):e[4]}return s=e[5],s&&(c=t[5],t[5]=c?Ri(c,s,e[6]):s,t[6]=c?K(t[5],lt):e[6]),s=e[7],s&&(t[7]=s),r&Ct&&(t[8]=null==t[8]?e[8]:Wl(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function zo(t){var e=[];if(null!=t)for(var n in sl(t))e.push(n);return e}function Wo(t){return bl.call(t)}function Yo(t,e,n){return e=zl(e===it?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=zl(r.length-e,0),a=nl(o);++i<o;)a[i]=r[e+i];i=-1;for(var c=nl(e+1);++i<e;)c[i]=r[i];return c[e]=n(a),s(t,this,c)}}function Ko(t,e){return e.length<2?t:vr(t,si(e,0,-1))}function Go(t,e){for(var n=t.length,r=Wl(e.length,n),i=Hi(t);r--;){var o=e[r];t[r]=Po(o,n)?i[o]:it}return t}function Zo(t,e,n){var r=e+'';return Sd(t,Io(r,ea(To(r),n)))}function Xo(t){var e=0,n=0;return function(){var r=Yl(),i=kt-(r-n);if(n=r,i>0){if(++e>=Tt)return arguments[0]}else e=0;return t.apply(it,arguments)}}function Qo(t,e){var n=-1,r=t.length,i=r-1;for(e=e===it?r:e;++n<e;){var o=Jr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function Jo(t){if('string'==typeof t||vc(t))return t;var e=t+'';return'0'==e&&1/t==-Nt?'-0':e}function ta(t){if(null!=t){try{return hl.call(t)}catch(t){}try{return t+''}catch(t){}}return''}function ea(t,e){return u(Lt,function(n){var r='_.'+n[0];e&n[1]&&!m(t,r)&&t.push(r)}),t.sort()}function na(t){if(t instanceof y)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=Hi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function ra(t,e,n){e=(n?Ro(t,e,n):e===it)?1:zl(wc(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=nl(jl(r/e));i<r;)a[o++]=si(t,i,i+=e);return a}function ia(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function oa(){var t=arguments.length;if(!t)return[];for(var e=nl(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return v(gf(n)?Hi(n):[n],fr(e,1))}function aa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:wc(e),si(t,e<0?0:e,r)):[]}function sa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:wc(e),e=r-e,si(t,0,e<0?0:e)):[]}function ca(t,e){return t&&t.length?gi(t,wo(e,3),!0,!0):[]}function ua(t,e){return t&&t.length?gi(t,wo(e,3),!0):[]}function la(t,e,n,r){var i=null==t?0:t.length;return i?(n&&'number'!=typeof n&&Ro(t,e,n)&&(n=0,r=i),lr(t,e,n,r)):[]}function da(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:wc(n);return i<0&&(i=zl(r+i,0)),C(t,wo(e,3),i)}function fa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==it&&(i=wc(n),i=n<0?zl(r+i,0):Wl(i,r-1)),C(t,wo(e,3),i,!0)}function ma(t){return(null==t?0:t.length)?fr(t,1):[]}function pa(t){return(null==t?0:t.length)?fr(t,Nt):[]}function ha(t,e){return(null==t?0:t.length)?(e=e===it?1:wc(e),fr(t,e)):[]}function va(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function ga(t){return t&&t.length?t[0]:it}function $a(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:wc(n);return i<0&&(i=zl(r+i,0)),_(t,e,i)}function ba(t){return(null==t?0:t.length)?si(t,0,-1):[]}function ya(t,e){return null==t?'':ql.call(t,e)}function Ea(t){var e=null==t?0:t.length;return e?t[e-1]:it}function wa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==it&&(i=wc(n),i=i<0?zl(r+i,0):Wl(i,r-1)),e===e?Q(t,e,i):C(t,M,i,!0)}function Ca(t,e){return t&&t.length?Wr(t,wc(e)):it}function _a(t,e){return t&&t.length&&e&&e.length?Xr(t,e):t}function xa(t,e,n){return t&&t.length&&e&&e.length?Xr(t,e,wo(n,2)):t}function Ma(t,e,n){return t&&t.length&&e&&e.length?Xr(t,e,it,n):t}function Aa(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=wo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Qr(t,i),n}function Ta(t){return null==t?t:Zl.call(t)}function ka(t,e,n){var r=null==t?0:t.length;return r?(n&&'number'!=typeof n&&Ro(t,e,n)?(e=0,n=r):(e=null==e?0:wc(e),n=n===it?r:wc(n)),si(t,e,n)):[]}function Sa(t,e){return ui(t,e)}function Oa(t,e,n){return li(t,e,wo(n,2))}function Na(t,e){var n=null==t?0:t.length;if(n){var r=ui(t,e);if(r<n&&zs(t[r],e))return r}return-1}function Ia(t,e){return ui(t,e,!0)}function Da(t,e,n){return li(t,e,wo(n,2),!0)}function Pa(t,e){if(null==t?0:t.length){var n=ui(t,e,!0)-1;if(zs(t[n],e))return n}return-1}function Ra(t){return t&&t.length?di(t):[]}function Ha(t,e){return t&&t.length?di(t,wo(e,2)):[]}function ja(t){var e=null==t?0:t.length;return e?si(t,1,e):[]}function La(t,e,n){return t&&t.length?(e=n||e===it?1:wc(e),si(t,0,e<0?0:e)):[]}function Fa(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===it?1:wc(e),e=r-e,si(t,e<0?0:e,r)):[]}function Va(t,e){return t&&t.length?gi(t,wo(e,3),!1,!0):[]}function Ua(t,e){return t&&t.length?gi(t,wo(e,3)):[]}function qa(t){return t&&t.length?pi(t):[]}function Ba(t,e){return t&&t.length?pi(t,wo(e,2)):[]}function za(t,e){return e='function'==typeof e?e:it,t&&t.length?pi(t,it,e):[]}function Wa(t){if(!t||!t.length)return[];var e=0;return t=f(t,function(t){if(Ys(t))return e=zl(t.length,e),!0}),I(e,function(e){return h(t,T(e))})}function Ya(t,e){if(!t||!t.length)return[];var n=Wa(t);return null==e?n:h(n,function(t){return s(e,it,t)})}function Ka(t,e){return yi(t||[],e||[],zn)}function Ga(t,e){return yi(t||[],e||[],oi)}function Za(t){var e=n(t);return e.__chain__=!0,e}function Xa(t,e){return e(t),t}function Qa(t,e){return e(t)}function Ja(){return Za(this)}function ts(){return new i(this.value(),this.__chain__)}function es(){this.__values__===it&&(this.__values__=yc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?it:this.__values__[this.__index__++]}}function ns(){return this}function rs(t){for(var e,n=this;n instanceof r;){var i=na(n);i.__index__=0,i.__values__=it,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e}function is(){var t=this.__wrapped__;if(t instanceof y){var e=t;return this.__actions__.length&&(e=new y(this)),e=e.reverse(),e.__actions__.push({func:Qa,args:[Ta],thisArg:it}),new i(e,this.__chain__)}return this.thru(Ta)}function os(){return $i(this.__wrapped__,this.__actions__)}function as(t,e,n){var r=gf(t)?d:cr;return n&&Ro(t,e,n)&&(e=it),r(t,wo(e,3))}function ss(t,e){return(gf(t)?f:dr)(t,wo(e,3))}function cs(t,e){return fr(ps(t,e),1)}function us(t,e){return fr(ps(t,e),Nt)}function ls(t,e,n){return n=n===it?1:wc(n),fr(ps(t,e),n)}function ds(t,e){return(gf(t)?u:pd)(t,wo(e,3))}function fs(t,e){return(gf(t)?l:hd)(t,wo(e,3))}function ms(t,e,n,r){t=Ws(t)?t:Jc(t),n=n&&!r?wc(n):0;var i=t.length;return n<0&&(n=zl(i+n,0)),hc(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&_(t,e,n)>-1}function ps(t,e){return(gf(t)?h:Vr)(t,wo(e,3))}function hs(t,e,n,r){return null==t?[]:(gf(e)||(e=null==e?[]:[e]),n=r?it:n,gf(n)||(n=null==n?[]:[n]),Yr(t,e,n))}function vs(t,e,n){var r=gf(t)?g:S,i=arguments.length<3;return r(t,wo(e,4),n,i,pd)}function gs(t,e,n){var r=gf(t)?$:S,i=arguments.length<3;return r(t,wo(e,4),n,i,hd)}function $s(t,e){return(gf(t)?f:dr)(t,Ns(wo(e,3)))}function bs(t){return(gf(t)?Dn:ri)(t)}function ys(t,e,n){return e=(n?Ro(t,e,n):e===it)?1:wc(e),(gf(t)?Pn:ii)(t,e)}function Es(t){return(gf(t)?Hn:ai)(t)}function ws(t){if(null==t)return 0;if(Ws(t))return hc(t)?J(t):t.length;var e=Md(t);return e==Gt||e==ee?t.size:jr(t).length}function Cs(t,e,n){var r=gf(t)?b:ci;return n&&Ro(t,e,n)&&(e=it),r(t,wo(e,3))}function _s(t,e){if('function'!=typeof e)throw new ll(st);return t=wc(t),function(){if(--t<1)return e.apply(this,arguments)}}function xs(t,e,n){return e=n?it:e,e=t&&null==e?t.length:e,uo(t,Ct,it,it,it,it,e)}function Ms(t,e){var n;if('function'!=typeof e)throw new ll(st);return t=wc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=it),n}}function As(t,e,n){e=n?it:e;var r=uo(t,bt,it,it,it,it,it,e);return r.placeholder=As.placeholder,r}function Ts(t,e,n){e=n?it:e;var r=uo(t,yt,it,it,it,it,it,e);return r.placeholder=Ts.placeholder,r}function ks(t,e,n){function r(e){var n=f,r=m;return f=m=it,$=e,h=t.apply(r,n)}function i(t){return $=t,v=kd(s,e),b?r(t):h}function o(t){var n=t-g,r=t-$,i=e-n;return y?Wl(i,p-r):i}function a(t){var n=t-g,r=t-$;return g===it||n>=e||n<0||y&&r>=p}function s(){var t=of();if(a(t))return c(t);v=kd(s,o(t))}function c(t){return v=it,E&&f?r(t):(f=m=it,h)}function u(){v!==it&&Ed(v),$=0,f=g=m=v=it}function l(){return v===it?h:c(of())}function d(){var t=of(),n=a(t);if(f=arguments,m=this,g=t,n){if(v===it)return i(g);if(y)return v=kd(s,e),r(g)}return v===it&&(v=kd(s,e)),h}var f,m,p,h,v,g,$=0,b=!1,y=!1,E=!0;if('function'!=typeof t)throw new ll(st);return e=_c(e)||0,ic(n)&&(b=!!n.leading,y='maxWait'in n,p=y?zl(_c(n.maxWait)||0,e):p,E='trailing'in n?!!n.trailing:E),d.cancel=u,d.flush=l,d}function Ss(t){return uo(t,xt)}function Os(t,e){if('function'!=typeof t||null!=e&&'function'!=typeof e)throw new ll(st);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Os.Cache||un),n}function Ns(t){if('function'!=typeof t)throw new ll(st);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Is(t){return Ms(2,t)}function Ds(t,e){if('function'!=typeof t)throw new ll(st);return e=e===it?e:wc(e),ni(t,e)}function Ps(t,e){if('function'!=typeof t)throw new ll(st);return e=null==e?0:zl(wc(e),0),ni(function(n){var r=n[e],i=_i(n,0,e);return r&&v(i,r),s(t,this,i)})}function Rs(t,e,n){var r=!0,i=!0;if('function'!=typeof t)throw new ll(st);return ic(n)&&(r='leading'in n?!!n.leading:r,i='trailing'in n?!!n.trailing:i),ks(t,e,{leading:r,maxWait:e,trailing:i})}function Hs(t){return xs(t,1)}function js(t,e){return df(wi(e),t)}function Ls(){if(!arguments.length)return[];var t=arguments[0];return gf(t)?t:[t]}function Fs(t){return rr(t,mt)}function Vs(t,e){return e='function'==typeof e?e:it,rr(t,mt,e)}function Us(t){return rr(t,dt|mt)}function qs(t,e){return e='function'==typeof e?e:it,rr(t,dt|mt,e)}function Bs(t,e){return null==e||or(t,e,Fc(e))}function zs(t,e){return t===e||t!==t&&e!==e}function Ws(t){return null!=t&&rc(t.length)&&!ec(t)}function Ys(t){return oc(t)&&Ws(t)}function Ks(t){return!0===t||!1===t||oc(t)&&$r(t)==qt}function Gs(t){return oc(t)&&1===t.nodeType&&!mc(t)}function Zs(t){if(null==t)return!0;if(Ws(t)&&(gf(t)||'string'==typeof t||'function'==typeof t.splice||bf(t)||_f(t)||vf(t)))return!t.length;var e=Md(t);if(e==Gt||e==ee)return!t.size;if(Vo(t))return!jr(t).length;for(var n in t)if(vl.call(t,n))return!1;return!0}function Xs(t,e){return kr(t,e)}function Qs(t,e,n){n='function'==typeof n?n:it;var r=n?n(t,e):it;return r===it?kr(t,e,it,n):!!r}function Js(t){if(!oc(t))return!1;var e=$r(t);return e==Wt||e==zt||'string'==typeof t.message&&'string'==typeof t.name&&!mc(t)}function tc(t){return'number'==typeof t&&Ul(t)}function ec(t){if(!ic(t))return!1;var e=$r(t);return e==Yt||e==Kt||e==Ut||e==Jt}function nc(t){return'number'==typeof t&&t==wc(t)}function rc(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=It}function ic(t){var e=typeof t;return null!=t&&('object'==e||'function'==e)}function oc(t){return null!=t&&'object'==typeof t}function ac(t,e){return t===e||Nr(t,e,_o(e))}function sc(t,e,n){return n='function'==typeof n?n:it,Nr(t,e,_o(e),n)}function cc(t){return fc(t)&&t!=+t}function uc(t){if(Ad(t))throw new il(at);return Ir(t)}function lc(t){return null===t}function dc(t){return null==t}function fc(t){return'number'==typeof t||oc(t)&&$r(t)==Zt}function mc(t){if(!oc(t)||$r(t)!=Qt)return!1;var e=Al(t);if(null===e)return!0;var n=vl.call(e,'constructor')&&e.constructor;return'function'==typeof n&&n instanceof n&&hl.call(n)==yl}function pc(t){return nc(t)&&t>=-It&&t<=It}function hc(t){return'string'==typeof t||!gf(t)&&oc(t)&&$r(t)==ne}function vc(t){return'symbol'==typeof t||oc(t)&&$r(t)==re}function gc(t){return t===it}function $c(t){return oc(t)&&Md(t)==oe}function bc(t){return oc(t)&&$r(t)==ae}function yc(t){if(!t)return[];if(Ws(t))return hc(t)?tt(t):Hi(t);if(Nl&&t[Nl])return z(t[Nl]());var e=Md(t);return(e==Gt?W:e==ee?G:Jc)(t)}function Ec(t){if(!t)return 0===t?t:0;if((t=_c(t))===Nt||t===-Nt){return(t<0?-1:1)*Dt}return t===t?t:0}function wc(t){var e=Ec(t),n=e%1;return e===e?n?e-n:e:0}function Cc(t){return t?nr(wc(t),0,Rt):0}function _c(t){if('number'==typeof t)return t;if(vc(t))return Pt;if(ic(t)){var e='function'==typeof t.valueOf?t.valueOf():t;t=ic(e)?e+'':e}if('string'!=typeof t)return 0===t?t:+t;t=t.replace(De,'');var n=ze.test(t);return n||Ye.test(t)?Sn(t.slice(2),n?2:8):Be.test(t)?Pt:+t}function xc(t){return ji(t,Vc(t))}function Mc(t){return t?nr(wc(t),-It,It):0===t?t:0}function Ac(t){return null==t?'':mi(t)}function Tc(t,e){var n=md(t);return null==e?n:Qn(n,e)}function kc(t,e){return w(t,wo(e,3),mr)}function Sc(t,e){return w(t,wo(e,3),pr)}function Oc(t,e){return null==t?t:vd(t,wo(e,3),Vc)}function Nc(t,e){return null==t?t:gd(t,wo(e,3),Vc)}function Ic(t,e){return t&&mr(t,wo(e,3))}function Dc(t,e){return t&&pr(t,wo(e,3))}function Pc(t){return null==t?[]:hr(t,Fc(t))}function Rc(t){return null==t?[]:hr(t,Vc(t))}function Hc(t,e,n){var r=null==t?it:vr(t,e);return r===it?n:r}function jc(t,e){return null!=t&&ko(t,e,yr)}function Lc(t,e){return null!=t&&ko(t,e,Er)}function Fc(t){return Ws(t)?Nn(t):jr(t)}function Vc(t){return Ws(t)?Nn(t,!0):Lr(t)}function Uc(t,e){var n={};return e=wo(e,3),mr(t,function(t,r,i){tr(n,e(t,r,i),t)}),n}function qc(t,e){var n={};return e=wo(e,3),mr(t,function(t,r,i){tr(n,r,e(t,r,i))}),n}function Bc(t,e){return zc(t,Ns(wo(e)))}function zc(t,e){if(null==t)return{};var n=h(bo(t),function(t){return[t]});return e=wo(e),Gr(t,n,function(t,n){return e(t,n[0])})}function Wc(t,e,n){e=Ci(e,t);var r=-1,i=e.length;for(i||(i=1,t=it);++r<i;){var o=null==t?it:t[Jo(e[r])];o===it&&(r=i,o=n),t=ec(o)?o.call(t):o}return t}function Yc(t,e,n){return null==t?t:oi(t,e,n)}function Kc(t,e,n,r){return r='function'==typeof r?r:it,null==t?t:oi(t,e,n,r)}function Gc(t,e,n){var r=gf(t),i=r||bf(t)||_f(t);if(e=wo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ic(t)&&ec(o)?md(Al(t)):{}}return(i?u:mr)(t,function(t,r,i){return e(n,t,r,i)}),n}function Zc(t,e){return null==t||hi(t,e)}function Xc(t,e,n){return null==t?t:vi(t,e,wi(n))}function Qc(t,e,n,r){return r='function'==typeof r?r:it,null==t?t:vi(t,e,wi(n),r)}function Jc(t){return null==t?[]:R(t,Fc(t))}function tu(t){return null==t?[]:R(t,Vc(t))}function eu(t,e,n){return n===it&&(n=e,e=it),n!==it&&(n=_c(n),n=n===n?n:0),e!==it&&(e=_c(e),e=e===e?e:0),nr(_c(t),e,n)}function nu(t,e,n){return e=Ec(e),n===it?(n=e,e=0):n=Ec(n),t=_c(t),wr(t,e,n)}function ru(t,e,n){if(n&&'boolean'!=typeof n&&Ro(t,e,n)&&(e=n=it),n===it&&('boolean'==typeof e?(n=e,e=it):'boolean'==typeof t&&(n=t,t=it)),t===it&&e===it?(t=0,e=1):(t=Ec(t),e===it?(e=t,t=0):e=Ec(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Gl();return Wl(t+i*(e-t+kn('1e-'+((i+'').length-1))),e)}return Jr(t,e)}function iu(t){return Zf(Ac(t).toLowerCase())}function ou(t){return(t=Ac(t))&&t.replace(Ge,Wn).replace(vn,'')}function au(t,e,n){t=Ac(t),e=mi(e);var r=t.length;n=n===it?r:nr(wc(n),0,r);var i=n;return(n-=e.length)>=0&&t.slice(n,i)==e}function su(t){return t=Ac(t),t&&_e.test(t)?t.replace(we,Yn):t}function cu(t){return t=Ac(t),t&&Ie.test(t)?t.replace(Ne,'\\$&'):t}function uu(t,e,n){t=Ac(t),e=wc(e);var r=e?J(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return no(Ll(i),n)+t+no(jl(i),n)}function lu(t,e,n){t=Ac(t),e=wc(e);var r=e?J(t):0;return e&&r<e?t+no(e-r,n):t}function du(t,e,n){t=Ac(t),e=wc(e);var r=e?J(t):0;return e&&r<e?no(e-r,n)+t:t}function fu(t,e,n){return n||null==e?e=0:e&&(e=+e),Kl(Ac(t).replace(Pe,''),e||0)}function mu(t,e,n){return e=(n?Ro(t,e,n):e===it)?1:wc(e),ei(Ac(t),e)}function pu(){var t=arguments,e=Ac(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function hu(t,e,n){return n&&'number'!=typeof n&&Ro(t,e,n)&&(e=n=it),(n=n===it?Rt:n>>>0)?(t=Ac(t),t&&('string'==typeof e||null!=e&&!wf(e))&&!(e=mi(e))&&q(t)?_i(tt(t),0,n):t.split(e,n)):[]}function vu(t,e,n){return t=Ac(t),n=null==n?0:nr(wc(n),0,t.length),e=mi(e),t.slice(n,n+e.length)==e}function gu(t,e,r){var i=n.templateSettings;r&&Ro(t,e,r)&&(e=it),t=Ac(t),e=kf({},e,i,lo);var o,a,s=kf({},e.imports,i.imports,lo),c=Fc(s),u=R(s,c),l=0,d=e.interpolate||Ze,f='__p += \'',m=cl((e.escape||Ze).source+'|'+d.source+'|'+(d===Ae?Ue:Ze).source+'|'+(e.evaluate||Ze).source+'|$','g'),p='//# sourceURL='+('sourceURL'in e?e.sourceURL:'lodash.templateSources['+ ++wn+']')+'\n';t.replace(m,function(e,n,r,i,s,c){return r||(r=i),f+=t.slice(l,c).replace(Xe,V),n&&(o=!0,f+='\' +\n__e('+n+') +\n\''),s&&(a=!0,f+='\';\n'+s+';\n__p += \''),r&&(f+='\' +\n((__t = ('+r+')) == null ? \'\' : __t) +\n\''),l=c+e.length,e}),f+='\';\n';var h=e.variable;h||(f='with (obj) {\n'+f+'\n}\n'),f=(a?f.replace($e,''):f).replace(be,'$1').replace(ye,'$1;'),f='function('+(h||'obj')+') {\n'+(h?'':'obj || (obj = {});\n')+'var __t, __p = \'\''+(o?', __e = _.escape':'')+(a?', __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, \'\') }\n':';\n')+f+'return __p\n}';var v=Xf(function(){return ol(c,p+'return '+f).apply(it,u)});if(v.source=f,Js(v))throw v;return v}function $u(t){return Ac(t).toLowerCase()}function bu(t){return Ac(t).toUpperCase()}function yu(t,e,n){if((t=Ac(t))&&(n||e===it))return t.replace(De,'');if(!t||!(e=mi(e)))return t;var r=tt(t),i=tt(e);return _i(r,j(r,i),L(r,i)+1).join('')}function Eu(t,e,n){if((t=Ac(t))&&(n||e===it))return t.replace(Re,'');if(!t||!(e=mi(e)))return t;var r=tt(t);return _i(r,0,L(r,tt(e))+1).join('')}function wu(t,e,n){if((t=Ac(t))&&(n||e===it))return t.replace(Pe,'');if(!t||!(e=mi(e)))return t;var r=tt(t);return _i(r,j(r,tt(e))).join('')}function Cu(t,e){var n=Mt,r=At;if(ic(e)){var i='separator'in e?e.separator:i;n='length'in e?wc(e.length):n,r='omission'in e?mi(e.omission):r}t=Ac(t);var o=t.length;if(q(t)){var a=tt(t);o=a.length}if(n>=o)return t;var s=n-J(r);if(s<1)return r;var c=a?_i(a,0,s).join(''):t.slice(0,s);if(i===it)return c+r;if(a&&(s+=c.length-s),wf(i)){if(t.slice(s).search(i)){var u,l=c;for(i.global||(i=cl(i.source,Ac(qe.exec(i))+'g')),i.lastIndex=0;u=i.exec(l);)var d=u.index;c=c.slice(0,d===it?s:d)}}else if(t.indexOf(mi(i),s)!=s){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r}function _u(t){return t=Ac(t),t&&Ce.test(t)?t.replace(Ee,Kn):t}function xu(t,e,n){return t=Ac(t),e=n?it:e,e===it?B(t)?rt(t):E(t):t.match(e)||[]}function Mu(t){var e=null==t?0:t.length,n=wo();return t=e?h(t,function(t){if('function'!=typeof t[1])throw new ll(st);return[n(t[0]),t[1]]}):[],ni(function(n){for(var r=-1;++r<e;){var i=t[r];if(s(i[0],this,n))return s(i[1],this,n)}})}function Au(t){return ir(rr(t,dt))}function Tu(t){return function(){return t}}function ku(t,e){return null==t||t!==t?e:t}function Su(t){return t}function Ou(t){return Hr('function'==typeof t?t:rr(t,dt))}function Nu(t){return Ur(rr(t,dt))}function Iu(t,e){return qr(t,rr(e,dt))}function Du(t,e,n){var r=Fc(e),i=hr(e,r);null!=n||ic(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=hr(e,Fc(e)));var o=!(ic(n)&&'chain'in n&&!n.chain),a=ec(t);return u(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Hi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,v([this.value()],arguments))})}),t}function Pu(){return In._===this&&(In._=El),this}function Ru(){}function Hu(t){return t=wc(t),ni(function(e){return Wr(e,t)})}function ju(t){return Ho(t)?T(Jo(t)):Zr(t)}function Lu(t){return function(e){return null==t?it:vr(t,e)}}function Fu(){return[]}function Vu(){return!1}function Uu(){return{}}function qu(){return''}function Bu(){return!0}function zu(t,e){if((t=wc(t))<1||t>It)return[];var n=Rt,r=Wl(t,Rt);e=wo(e),t-=Rt;for(var i=I(r,e);++n<t;)e(n);return i}function Wu(t){return gf(t)?h(t,Jo):vc(t)?[t]:Hi(Od(Ac(t)))}function Yu(t){var e=++gl;return Ac(t)+e}function Ku(t){return t&&t.length?ur(t,Su,br):it}function Gu(t,e){return t&&t.length?ur(t,wo(e,2),br):it}function Zu(t){return A(t,Su)}function Xu(t,e){return A(t,wo(e,2))}function Qu(t){return t&&t.length?ur(t,Su,Fr):it}function Ju(t,e){return t&&t.length?ur(t,wo(e,2),Fr):it}function tl(t){return t&&t.length?N(t,Su):0}function el(t,e){return t&&t.length?N(t,wo(e,2)):0}e=null==e?In:Gn.defaults(In.Object(),e,Gn.pick(In,En));var nl=e.Array,rl=e.Date,il=e.Error,ol=e.Function,al=e.Math,sl=e.Object,cl=e.RegExp,ul=e.String,ll=e.TypeError,dl=nl.prototype,fl=ol.prototype,ml=sl.prototype,pl=e['__core-js_shared__'],hl=fl.toString,vl=ml.hasOwnProperty,gl=0,$l=function(){var t=/[^.]+$/.exec(pl&&pl.keys&&pl.keys.IE_PROTO||'');return t?'Symbol(src)_1.'+t:''}(),bl=ml.toString,yl=hl.call(sl),El=In._,wl=cl('^'+hl.call(vl).replace(Ne,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),Cl=Rn?e.Buffer:it,_l=e.Symbol,xl=e.Uint8Array,Ml=Cl?Cl.allocUnsafe:it,Al=Y(sl.getPrototypeOf,sl),Tl=sl.create,kl=ml.propertyIsEnumerable,Sl=dl.splice,Ol=_l?_l.isConcatSpreadable:it,Nl=_l?_l.iterator:it,Il=_l?_l.toStringTag:it,Dl=function(){try{var t=xo(sl,'defineProperty');return t({},'',{}),t}catch(t){}}(),Pl=e.clearTimeout!==In.clearTimeout&&e.clearTimeout,Rl=rl&&rl.now!==In.Date.now&&rl.now,Hl=e.setTimeout!==In.setTimeout&&e.setTimeout,jl=al.ceil,Ll=al.floor,Fl=sl.getOwnPropertySymbols,Vl=Cl?Cl.isBuffer:it,Ul=e.isFinite,ql=dl.join,Bl=Y(sl.keys,sl),zl=al.max,Wl=al.min,Yl=rl.now,Kl=e.parseInt,Gl=al.random,Zl=dl.reverse,Xl=xo(e,'DataView'),Ql=xo(e,'Map'),Jl=xo(e,'Promise'),td=xo(e,'Set'),ed=xo(e,'WeakMap'),nd=xo(sl,'create'),rd=ed&&new ed,id={},od=ta(Xl),ad=ta(Ql),sd=ta(Jl),cd=ta(td),ud=ta(ed),ld=_l?_l.prototype:it,dd=ld?ld.valueOf:it,fd=ld?ld.toString:it,md=function(){function t(){}return function(e){if(!ic(e))return{};if(Tl)return Tl(e);t.prototype=e;var n=new t;return t.prototype=it,n}}();n.templateSettings={escape:xe,evaluate:Me,interpolate:Ae,variable:'',imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,i.prototype=md(r.prototype),i.prototype.constructor=i,y.prototype=md(r.prototype),y.prototype.constructor=y,nt.prototype.clear=Fe,nt.prototype.delete=Qe,nt.prototype.get=Je,nt.prototype.has=tn,nt.prototype.set=en,nn.prototype.clear=rn,nn.prototype.delete=on,nn.prototype.get=an,nn.prototype.has=sn,nn.prototype.set=cn,un.prototype.clear=ln,un.prototype.delete=dn,un.prototype.get=fn,un.prototype.has=mn,un.prototype.set=pn,gn.prototype.add=gn.prototype.push=$n,gn.prototype.has=bn,yn.prototype.clear=xn,yn.prototype.delete=Mn,yn.prototype.get=An,yn.prototype.has=Tn,yn.prototype.set=On;var pd=qi(mr),hd=qi(pr,!0),vd=Bi(),gd=Bi(!0),$d=rd?function(t,e){return rd.set(t,e),t}:Su,bd=Dl?function(t,e){return Dl(t,'toString',{configurable:!0,enumerable:!1,value:Tu(e),writable:!0})}:Su,yd=ni,Ed=Pl||function(t){return In.clearTimeout(t)},wd=td&&1/G(new td([,-0]))[1]==Nt?function(t){return new td(t)}:Ru,Cd=rd?function(t){return rd.get(t)}:Ru,_d=Fl?function(t){return null==t?[]:(t=sl(t),f(Fl(t),function(e){return kl.call(t,e)}))}:Fu,xd=Fl?function(t){for(var e=[];t;)v(e,_d(t)),t=Al(t);return e}:Fu,Md=$r;(Xl&&Md(new Xl(new ArrayBuffer(1)))!=ce||Ql&&Md(new Ql)!=Gt||Jl&&'[object Promise]'!=Md(Jl.resolve())||td&&Md(new td)!=ee||ed&&Md(new ed)!=oe)&&(Md=function(t){var e=$r(t),n=e==Qt?t.constructor:it,r=n?ta(n):'';if(r)switch(r){case od:return ce;case ad:return Gt;case sd:return'[object Promise]';case cd:return ee;case ud:return oe}return e});var Ad=pl?ec:Vu,Td=Xo($d),kd=Hl||function(t,e){return In.setTimeout(t,e)},Sd=Xo(bd),Od=function(t){var e=Os(t,function(t){return n.size===ut&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return Se.test(t)&&e.push(''),t.replace(Oe,function(t,n,r,i){e.push(r?i.replace(Ve,'$1'):n||t)}),e}),Nd=ni(function(t,e){return Ys(t)?sr(t,fr(e,1,Ys,!0)):[]}),Id=ni(function(t,e){var n=Ea(e);return Ys(n)&&(n=it),Ys(t)?sr(t,fr(e,1,Ys,!0),wo(n,2)):[]}),Dd=ni(function(t,e){var n=Ea(e);return Ys(n)&&(n=it),Ys(t)?sr(t,fr(e,1,Ys,!0),it,n):[]}),Pd=ni(function(t){var e=h(t,Ei);return e.length&&e[0]===t[0]?Cr(e):[]}),Rd=ni(function(t){var e=Ea(t),n=h(t,Ei);return e===Ea(n)?e=it:n.pop(),n.length&&n[0]===t[0]?Cr(n,wo(e,2)):[]}),Hd=ni(function(t){var e=Ea(t),n=h(t,Ei);return e='function'==typeof e?e:it,e&&n.pop(),n.length&&n[0]===t[0]?Cr(n,it,e):[]}),jd=ni(_a),Ld=go(function(t,e){var n=null==t?0:t.length,r=er(t,e);return Qr(t,h(e,function(t){return Po(t,n)?+t:t}).sort(Ii)),r}),Fd=ni(function(t){return pi(fr(t,1,Ys,!0))}),Vd=ni(function(t){var e=Ea(t);return Ys(e)&&(e=it),pi(fr(t,1,Ys,!0),wo(e,2))}),Ud=ni(function(t){var e=Ea(t);return e='function'==typeof e?e:it,pi(fr(t,1,Ys,!0),it,e)}),qd=ni(function(t,e){return Ys(t)?sr(t,e):[]}),Bd=ni(function(t){return bi(f(t,Ys))}),zd=ni(function(t){var e=Ea(t);return Ys(e)&&(e=it),bi(f(t,Ys),wo(e,2))}),Wd=ni(function(t){var e=Ea(t);return e='function'==typeof e?e:it,bi(f(t,Ys),it,e)}),Yd=ni(Wa),Kd=ni(function(t){var e=t.length,n=e>1?t[e-1]:it;return n='function'==typeof n?(t.pop(),n):it,Ya(t,n)}),Gd=go(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return er(e,t)};return!(e>1||this.__actions__.length)&&r instanceof y&&Po(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Qa,args:[o],thisArg:it}),new i(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(it),t})):this.thru(o)}),Zd=Vi(function(t,e,n){vl.call(t,n)?++t[n]:tr(t,n,1)}),Xd=Zi(da),Qd=Zi(fa),Jd=Vi(function(t,e,n){vl.call(t,n)?t[n].push(e):tr(t,n,[e])}),tf=ni(function(t,e,n){var r=-1,i='function'==typeof e,o=Ws(t)?nl(t.length):[];return pd(t,function(t){o[++r]=i?s(e,t,n):xr(t,e,n)}),o}),ef=Vi(function(t,e,n){tr(t,n,e)}),nf=Vi(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),rf=ni(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ro(t,e[0],e[1])?e=[]:n>2&&Ro(e[0],e[1],e[2])&&(e=[e[0]]),Yr(t,fr(e,1),[])}),of=Rl||function(){return In.Date.now()},af=ni(function(t,e,n){var r=vt;if(n.length){var i=K(n,Eo(af));r|=Et}return uo(t,r,e,n,i)}),sf=ni(function(t,e,n){var r=vt|gt;if(n.length){var i=K(n,Eo(sf));r|=Et}return uo(e,r,t,n,i)}),cf=ni(function(t,e){return ar(t,1,e)}),uf=ni(function(t,e,n){return ar(t,_c(e)||0,n)});Os.Cache=un;var lf=yd(function(t,e){e=1==e.length&&gf(e[0])?h(e[0],P(wo())):h(fr(e,1),P(wo()));var n=e.length;return ni(function(r){for(var i=-1,o=Wl(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return s(t,this,r)})}),df=ni(function(t,e){var n=K(e,Eo(df));return uo(t,Et,it,e,n)}),ff=ni(function(t,e){var n=K(e,Eo(ff));return uo(t,wt,it,e,n)}),mf=go(function(t,e){return uo(t,_t,it,it,it,e)}),pf=oo(br),hf=oo(function(t,e){return t>=e}),vf=Mr(function(){return arguments}())?Mr:function(t){return oc(t)&&vl.call(t,'callee')&&!kl.call(t,'callee')},gf=nl.isArray,$f=Ln?P(Ln):Ar,bf=Vl||Vu,yf=Fn?P(Fn):Tr,Ef=Vn?P(Vn):Or,wf=Un?P(Un):Dr,Cf=qn?P(qn):Pr,_f=Bn?P(Bn):Rr,xf=oo(Fr),Mf=oo(function(t,e){return t<=e}),Af=Ui(function(t,e){if(Vo(e)||Ws(e))return void ji(e,Fc(e),t);for(var n in e)vl.call(e,n)&&zn(t,n,e[n])}),Tf=Ui(function(t,e){ji(e,Vc(e),t)}),kf=Ui(function(t,e,n,r){ji(e,Vc(e),t,r)}),Sf=Ui(function(t,e,n,r){ji(e,Fc(e),t,r)}),Of=go(er),Nf=ni(function(t){return t.push(it,lo),s(kf,it,t)}),If=ni(function(t){return t.push(it,fo),s(jf,it,t)}),Df=Ji(function(t,e,n){t[e]=n},Tu(Su)),Pf=Ji(function(t,e,n){vl.call(t,e)?t[e].push(n):t[e]=[n]},wo),Rf=ni(xr),Hf=Ui(function(t,e,n){Br(t,e,n)}),jf=Ui(function(t,e,n,r){Br(t,e,n,r)}),Lf=go(function(t,e){var n={};if(null==t)return n;var r=!1;e=h(e,function(e){return e=Ci(e,t),r||(r=e.length>1),e}),ji(t,bo(t),n),r&&(n=rr(n,dt|ft|mt,mo));for(var i=e.length;i--;)hi(n,e[i]);return n}),Ff=go(function(t,e){return null==t?{}:Kr(t,e)}),Vf=co(Fc),Uf=co(Vc),qf=Yi(function(t,e,n){return e=e.toLowerCase(),t+(n?iu(e):e)}),Bf=Yi(function(t,e,n){return t+(n?'-':'')+e.toLowerCase()}),zf=Yi(function(t,e,n){return t+(n?' ':'')+e.toLowerCase()}),Wf=Wi('toLowerCase'),Yf=Yi(function(t,e,n){return t+(n?'_':'')+e.toLowerCase()}),Kf=Yi(function(t,e,n){return t+(n?' ':'')+Zf(e)}),Gf=Yi(function(t,e,n){return t+(n?' ':'')+e.toUpperCase()}),Zf=Wi('toUpperCase'),Xf=ni(function(t,e){try{return s(t,it,e)}catch(t){return Js(t)?t:new il(t)}}),Qf=go(function(t,e){return u(e,function(e){e=Jo(e),tr(t,e,af(t[e],t))}),t}),Jf=Xi(),tm=Xi(!0),em=ni(function(t,e){return function(n){return xr(n,t,e)}}),nm=ni(function(t,e){return function(n){return xr(t,n,e)}}),rm=eo(h),im=eo(d),om=eo(b),am=io(),sm=io(!0),cm=to(function(t,e){return t+e},0),um=so('ceil'),lm=to(function(t,e){return t/e},1),dm=so('floor'),fm=to(function(t,e){return t*e},1),mm=so('round'),pm=to(function(t,e){return t-e},0);return n.after=_s,n.ary=xs,n.assign=Af,n.assignIn=Tf,n.assignInWith=kf,n.assignWith=Sf,n.at=Of,n.before=Ms,n.bind=af,n.bindAll=Qf,n.bindKey=sf,n.castArray=Ls,n.chain=Za,n.chunk=ra,n.compact=ia,n.concat=oa,n.cond=Mu,n.conforms=Au,n.constant=Tu,n.countBy=Zd,n.create=Tc,n.curry=As,n.curryRight=Ts,n.debounce=ks,n.defaults=Nf,n.defaultsDeep=If,n.defer=cf,n.delay=uf,n.difference=Nd,n.differenceBy=Id,n.differenceWith=Dd,n.drop=aa,n.dropRight=sa,n.dropRightWhile=ca,n.dropWhile=ua,n.fill=la,n.filter=ss,n.flatMap=cs,n.flatMapDeep=us,n.flatMapDepth=ls,n.flatten=ma,n.flattenDeep=pa,n.flattenDepth=ha,n.flip=Ss,n.flow=Jf,n.flowRight=tm,n.fromPairs=va,n.functions=Pc,n.functionsIn=Rc,n.groupBy=Jd,n.initial=ba,n.intersection=Pd,n.intersectionBy=Rd,n.intersectionWith=Hd,n.invert=Df,n.invertBy=Pf,n.invokeMap=tf,n.iteratee=Ou,n.keyBy=ef,n.keys=Fc,n.keysIn=Vc,n.map=ps,n.mapKeys=Uc,n.mapValues=qc,n.matches=Nu,n.matchesProperty=Iu,n.memoize=Os,n.merge=Hf,n.mergeWith=jf,n.method=em,n.methodOf=nm,n.mixin=Du,n.negate=Ns,n.nthArg=Hu,n.omit=Lf,n.omitBy=Bc,n.once=Is,n.orderBy=hs,n.over=rm,n.overArgs=lf,n.overEvery=im,n.overSome=om,n.partial=df,n.partialRight=ff,n.partition=nf,n.pick=Ff,n.pickBy=zc,n.property=ju,n.propertyOf=Lu,n.pull=jd,n.pullAll=_a,n.pullAllBy=xa,n.pullAllWith=Ma,n.pullAt=Ld,n.range=am,n.rangeRight=sm,n.rearg=mf,n.reject=$s,n.remove=Aa,n.rest=Ds,n.reverse=Ta,n.sampleSize=ys,n.set=Yc,n.setWith=Kc,n.shuffle=Es,n.slice=ka,n.sortBy=rf,n.sortedUniq=Ra,n.sortedUniqBy=Ha,n.split=hu,n.spread=Ps,n.tail=ja,n.take=La,n.takeRight=Fa,n.takeRightWhile=Va,n.takeWhile=Ua,n.tap=Xa,n.throttle=Rs,n.thru=Qa,n.toArray=yc,n.toPairs=Vf,n.toPairsIn=Uf,n.toPath=Wu,n.toPlainObject=xc,n.transform=Gc,n.unary=Hs,n.union=Fd,n.unionBy=Vd,n.unionWith=Ud,n.uniq=qa,n.uniqBy=Ba,n.uniqWith=za,n.unset=Zc,n.unzip=Wa,n.unzipWith=Ya,n.update=Xc,n.updateWith=Qc,n.values=Jc,n.valuesIn=tu,n.without=qd,n.words=xu,n.wrap=js,n.xor=Bd,n.xorBy=zd,n.xorWith=Wd,n.zip=Yd,n.zipObject=Ka,n.zipObjectDeep=Ga,n.zipWith=Kd,n.entries=Vf,n.entriesIn=Uf,n.extend=Tf,n.extendWith=kf,Du(n,n),n.add=cm,n.attempt=Xf,n.camelCase=qf,n.capitalize=iu,n.ceil=um,n.clamp=eu,n.clone=Fs,n.cloneDeep=Us,n.cloneDeepWith=qs,n.cloneWith=Vs,n.conformsTo=Bs,n.deburr=ou,n.defaultTo=ku,n.divide=lm,n.endsWith=au,n.eq=zs,n.escape=su,n.escapeRegExp=cu,n.every=as,n.find=Xd,n.findIndex=da,n.findKey=kc,n.findLast=Qd,n.findLastIndex=fa,n.findLastKey=Sc,n.floor=dm,n.forEach=ds,n.forEachRight=fs,n.forIn=Oc,n.forInRight=Nc,n.forOwn=Ic,n.forOwnRight=Dc,n.get=Hc,n.gt=pf,n.gte=hf,n.has=jc,n.hasIn=Lc,n.head=ga,n.identity=Su,n.includes=ms,n.indexOf=$a,n.inRange=nu,n.invoke=Rf,n.isArguments=vf,n.isArray=gf,n.isArrayBuffer=$f,n.isArrayLike=Ws,n.isArrayLikeObject=Ys,n.isBoolean=Ks,n.isBuffer=bf,n.isDate=yf,n.isElement=Gs,n.isEmpty=Zs,n.isEqual=Xs,n.isEqualWith=Qs,n.isError=Js,n.isFinite=tc,n.isFunction=ec,n.isInteger=nc,n.isLength=rc,n.isMap=Ef,n.isMatch=ac,n.isMatchWith=sc,n.isNaN=cc,n.isNative=uc,n.isNil=dc,n.isNull=lc,n.isNumber=fc,n.isObject=ic,n.isObjectLike=oc,n.isPlainObject=mc,n.isRegExp=wf,n.isSafeInteger=pc,n.isSet=Cf,n.isString=hc,n.isSymbol=vc,n.isTypedArray=_f,n.isUndefined=gc,n.isWeakMap=$c,n.isWeakSet=bc,n.join=ya,n.kebabCase=Bf,n.last=Ea,n.lastIndexOf=wa,n.lowerCase=zf,n.lowerFirst=Wf,n.lt=xf,n.lte=Mf,n.max=Ku,n.maxBy=Gu,n.mean=Zu,n.meanBy=Xu,n.min=Qu,n.minBy=Ju,n.stubArray=Fu,n.stubFalse=Vu,n.stubObject=Uu,n.stubString=qu,n.stubTrue=Bu,n.multiply=fm,n.nth=Ca,n.noConflict=Pu,n.noop=Ru,n.now=of,n.pad=uu,n.padEnd=lu,n.padStart=du,n.parseInt=fu,n.random=ru,n.reduce=vs,n.reduceRight=gs,n.repeat=mu,n.replace=pu,n.result=Wc,n.round=mm,n.runInContext=t,n.sample=bs,n.size=ws,n.snakeCase=Yf,n.some=Cs,n.sortedIndex=Sa,n.sortedIndexBy=Oa,n.sortedIndexOf=Na,n.sortedLastIndex=Ia,n.sortedLastIndexBy=Da,n.sortedLastIndexOf=Pa,n.startCase=Kf,n.startsWith=vu,n.subtract=pm,n.sum=tl,n.sumBy=el,n.template=gu,n.times=zu,n.toFinite=Ec,n.toInteger=wc,n.toLength=Cc,n.toLower=$u,n.toNumber=_c,n.toSafeInteger=Mc,n.toString=Ac,n.toUpper=bu,n.trim=yu,n.trimEnd=Eu,n.trimStart=wu,n.truncate=Cu,n.unescape=_u,n.uniqueId=Yu,n.upperCase=Gf,n.upperFirst=Zf,n.each=ds,n.eachRight=fs,n.first=ga,Du(n,function(){var t={};return mr(n,function(e,r){vl.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION='4.17.4',u(['bind','bindKey','curry','curryRight','partial','partialRight'],function(t){n[t].placeholder=n}),u(['drop','take'],function(t,e){y.prototype[t]=function(n){n=n===it?1:zl(wc(n),0);var r=this.__filtered__&&!e?new y(this):this.clone();return r.__filtered__?r.__takeCount__=Wl(n,r.__takeCount__):r.__views__.push({size:Wl(n,Rt),type:t+(r.__dir__<0?'Right':'')}),r},y.prototype[t+'Right']=function(e){return this.reverse()[t](e).reverse()}}),u(['filter','map','takeWhile'],function(t,e){var n=e+1,r=n==St||3==n;y.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:wo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),u(['head','last'],function(t,e){var n='take'+(e?'Right':'');y.prototype[t]=function(){return this[n](1).value()[0]}}),u(['initial','tail'],function(t,e){var n='drop'+(e?'':'Right');y.prototype[t]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(Su)},y.prototype.find=function(t){return this.filter(t).head()},y.prototype.findLast=function(t){return this.reverse().find(t)},y.prototype.invokeMap=ni(function(t,e){return'function'==typeof t?new y(this):this.map(function(n){return xr(n,t,e)})}),y.prototype.reject=function(t){return this.filter(Ns(wo(t)))},y.prototype.slice=function(t,e){t=wc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new y(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==it&&(e=wc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},y.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},y.prototype.toArray=function(){return this.take(Rt)},mr(y.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),a=n[o?'take'+('last'==e?'Right':''):e],s=o||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,c=o?[1]:arguments,u=e instanceof y,l=c[0],d=u||gf(e),f=function(t){var e=a.apply(n,v([t],c));return o&&m?e[0]:e};d&&r&&'function'==typeof l&&1!=l.length&&(u=d=!1);var m=this.__chain__,p=!!this.__actions__.length,h=s&&!m,g=u&&!p;if(!s&&d){e=g?e:new y(this);var $=t.apply(e,c);return $.__actions__.push({func:Qa,args:[f],thisArg:it}),new i($,m)}return h&&g?t.apply(this,c):($=this.thru(f),h?o?$.value()[0]:$.value():$)})}),u(['pop','push','shift','sort','splice','unshift'],function(t){var e=dl[t],r=/^(?:push|sort|unshift)$/.test(t)?'tap':'thru',i=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var n=this.value();return e.apply(gf(n)?n:[],t)}return this[r](function(n){return e.apply(gf(n)?n:[],t)})}}),mr(y.prototype,function(t,e){var r=n[e];if(r){var i=r.name+'';(id[i]||(id[i]=[])).push({name:e,func:r})}}),id[Qi(it,gt).name]=[{name:'wrapper',func:it}],y.prototype.clone=k,y.prototype.reverse=X,y.prototype.value=et,n.prototype.at=Gd,n.prototype.chain=Ja,n.prototype.commit=ts,n.prototype.next=es,n.prototype.plant=rs,n.prototype.reverse=is,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=os,n.prototype.first=n.prototype.head,Nl&&(n.prototype[Nl]=ns),n}();In._=Gn,(i=function(){return Gn}.call(e,n,e,r))!==it&&(r.exports=i)}).call(this)}).call(e,n(103),n(104)(t))},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=function(){function t(t){this.text=t,this.glob=t.split('.');var e=this.text.split('.').map(function(t){return'**'===t?'(?:|(?:\\.[^.]*)*)':'*'===t?'\\.[^.]*':'\\.'+t}).join('');this.regexp=new RegExp('^'+e+'$')}return t.prototype.matches=function(t){return this.regexp.test('.'+t)},t.is=function(t){return!!/[!,*]+/.exec(t)},t.fromString=function(e){return t.is(e)?new t(e):null},t}();e.Glob=r},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(6),i=n(3),o=n(0),a=n(1),s=n(2),c=n(9),u=n(14),l=n(29),d=n(38),f=n(20),m=n(7),p=n(10),h=n(15),v=n(21),g=s.prop('self'),$=function(){function t(t,e,n){var r=this;if(this._deferred=i.services.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new d.HookBuilder(this),this.isActive=function(){return r.router.globals.transition===r},this.router=n,this._targetState=e,!e.valid())throw new Error(e.error());this._options=o.extend({current:s.val(this)},e.options()),this.$id=n.transitionService._transitionCount++;var a=f.PathUtils.buildToPath(t,e);this._treeChanges=f.PathUtils.treeChanges(t,a,this._options.reloadState),this.createTransitionHookRegFns();var l=this._hookBuilder.buildHooksForPhase(c.TransitionHookPhase.CREATE);u.TransitionHook.invokeHooks(l,function(){return null}),this.applyViewConfigs(n)}return t.prototype.onBefore=function(t,e,n){},t.prototype.onStart=function(t,e,n){},t.prototype.onExit=function(t,e,n){},t.prototype.onRetain=function(t,e,n){},t.prototype.onEnter=function(t,e,n){},t.prototype.onFinish=function(t,e,n){},t.prototype.onSuccess=function(t,e,n){},t.prototype.onError=function(t,e,n){},t.prototype.createTransitionHookRegFns=function(){var t=this;this.router.transitionService._pluginapi._getEvents().filter(function(t){return t.hookPhase!==c.TransitionHookPhase.CREATE}).forEach(function(e){return l.makeEvent(t,t.router.transitionService,e)})},t.prototype.getHooks=function(t){return this._registeredHooks[t]},t.prototype.applyViewConfigs=function(t){var e=this._treeChanges.entering.map(function(t){return t.state});f.PathUtils.applyViewConfigs(t.transitionService.$view,this._treeChanges.to,e)},t.prototype.$from=function(){return o.tail(this._treeChanges.from).state},t.prototype.$to=function(){return o.tail(this._treeChanges.to).state},t.prototype.from=function(){return this.$from().self},t.prototype.to=function(){return this.$to().self},t.prototype.targetState=function(){return this._targetState},t.prototype.is=function(e){return e instanceof t?this.is({to:e.$to().name,from:e.$from().name}):!(e.to&&!l.matchState(this.$to(),e.to)||e.from&&!l.matchState(this.$from(),e.from))},t.prototype.params=function(t){return void 0===t&&(t='to'),Object.freeze(this._treeChanges[t].map(s.prop('paramValues')).reduce(o.mergeR,{}))},t.prototype.injector=function(t,e){void 0===e&&(e='to');var n=this._treeChanges[e];return t&&(n=f.PathUtils.subPath(n,function(e){return e.state===t||e.state.name===t})),new v.ResolveContext(n).injector()},t.prototype.getResolveTokens=function(t){return void 0===t&&(t='to'),new v.ResolveContext(this._treeChanges[t]).getTokens()},t.prototype.addResolvable=function(t,e){void 0===e&&(e=''),t=s.is(h.Resolvable)(t)?t:new h.Resolvable(t);var n='string'==typeof e?e:e.name,r=this._treeChanges.to,i=o.find(r,function(t){return t.state.name===n});new v.ResolveContext(r).addResolvables([t],i.state)},t.prototype.redirectedFrom=function(){return this._options.redirectedFrom||null},t.prototype.originalTransition=function(){var t=this.redirectedFrom();return t&&t.originalTransition()||this},t.prototype.options=function(){return this._options},t.prototype.entering=function(){return o.map(this._treeChanges.entering,s.prop('state')).map(g)},t.prototype.exiting=function(){return o.map(this._treeChanges.exiting,s.prop('state')).map(g).reverse()},t.prototype.retained=function(){return o.map(this._treeChanges.retained,s.prop('state')).map(g)},t.prototype.views=function(t,e){void 0===t&&(t='entering');var n=this._treeChanges[t];return n=e?n.filter(s.propEq('state',e)):n,n.map(s.prop('views')).filter(o.identity).reduce(o.unnestR,[])},t.prototype.treeChanges=function(t){return t?this._treeChanges[t]:this._treeChanges},t.prototype.redirect=function(t){for(var e=1,n=this;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error('Too many consecutive Transition redirects (20+)');var r={redirectedFrom:this,source:'redirect'};'url'===this.options().source&&!1!==t.options().location&&(r.location='replace');var i=o.extend({},this.options(),t.options(),r);t=new m.TargetState(t.identifier(),t.$state(),t.params(),i);var a=this.router.transitionService.create(this._treeChanges.from,t),c=this._treeChanges.entering,u=a._treeChanges.entering;return f.PathUtils.matching(u,c,f.PathUtils.nonDynamicParams).filter(s.not(function(t){return function(e){return t&&e.state.includes[t.name]}}(t.options().reloadState))).forEach(function(t,e){t.resolvables=c[e].resolvables}),a},t.prototype._changedParams=function(){var t=this._treeChanges;if(!this._options.reload&&!t.exiting.length&&!t.entering.length&&t.to.length===t.from.length){if(!o.arrayTuples(t.to,t.from).map(function(t){return t[0].state!==t[1].state}).reduce(o.anyTrueR,!1)){var e=t.to.map(function(t){return t.paramSchema}),n=[t.to,t.from].map(function(t){return t.map(function(t){return t.paramValues})}),r=n[0],i=n[1];return o.arrayTuples(e,r,i).map(function(t){var e=t[0],n=t[1],r=t[2];return p.Param.changed(e,n,r)}).reduce(o.unnestR,[])}}},t.prototype.dynamic=function(){var t=this._changedParams();return!!t&&t.map(function(t){return t.dynamic}).reduce(o.anyTrueR,!1)},t.prototype.ignored=function(){return!!this._ignoredReason()},t.prototype._ignoredReason=function(){var t=this.router.globals.transition,e=this._options.reloadState,n=function(t,n){if(t.length!==n.length)return!1;var r=f.PathUtils.matching(t,n);return t.length===r.filter(function(t){return!e||!t.state.includes[e.name]}).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?'SameAsPending':0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?'SameAsCurrent':void 0},t.prototype.run=function(){var t=this,e=u.TransitionHook.runAllHooks,n=function(e){return t._hookBuilder.buildHooksForPhase(e)},o=function(){r.trace.traceSuccess(t.$to(),t),t.success=!0,t._deferred.resolve(t.to()),e(n(c.TransitionHookPhase.SUCCESS))},a=function(i){r.trace.traceError(i,t),t.success=!1,t._deferred.reject(i),t._error=i,e(n(c.TransitionHookPhase.ERROR))},s=function(){var t=n(c.TransitionHookPhase.RUN),e=function(){return i.services.$q.when(void 0)};return u.TransitionHook.invokeHooks(t,e)},l=function(){var e=t.router.globals;return e.lastStartedTransitionId=t.$id,e.transition=t,e.transitionHistory.enqueue(t),r.trace.traceTransitionStart(t),i.services.$q.when(void 0)},d=n(c.TransitionHookPhase.BEFORE);return u.TransitionHook.invokeHooks(d,l).then(s).then(o,a),this.promise},t.prototype.valid=function(){return!this.error()||void 0!==this.success},t.prototype.abort=function(){a.isUndefined(this.success)&&(this._aborted=!0)},t.prototype.error=function(){var t=this.$to();if(t.self.abstract)return'Cannot transition to abstract state \''+t.name+'\'';var e=t.parameters(),n=this.params(),r=e.filter(function(t){return!t.validates(n[t.id])});return r.length?'Param values not valid for state \''+t.name+'\'. Invalid params: [ '+r.map(function(t){return t.id}).join(', ')+' ]':!1===this.success?this._error:void 0},t.prototype.toString=function(){var t=this.from(),e=this.to(),n=function(t){return null!==t['#']&&void 0!==t['#']?t:o.omit(t,['#'])};return'Transition#'+this.$id+'( \''+(a.isObject(t)?t.name:t)+'\''+o.toJson(n(this._treeChanges.from.map(s.prop('paramValues')).reduce(o.mergeR,{})))+' -> '+(this.valid()?'':'(X) ')+'\''+(a.isObject(e)?e.name:e)+'\''+o.toJson(n(this.params()))+' )'},t.diToken=t,t}();e.Transition=$},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(2),o=n(7),a=n(30),s=function(){function t(){}return t.makeTargetState=function(t){var e=r.tail(t).state;return new o.TargetState(e,e,t.map(i.prop('paramValues')).reduce(r.mergeR,{}))},t.buildPath=function(t){var e=t.params();return t.$state().path.map(function(t){return new a.PathNode(t).applyRawParams(e)})},t.buildToPath=function(e,n){var r=t.buildPath(n);return n.options().inherit?t.inheritParams(e,r,Object.keys(n.params())):r},t.applyViewConfigs=function(e,n,i){n.filter(function(t){return r.inArray(i,t.state)}).forEach(function(i){var o=r.values(i.state.views||{}),a=t.subPath(n,function(t){return t===i}),s=o.map(function(t){return e.createViewConfig(a,t)});i.views=s.reduce(r.unnestR,[])})},t.inheritParams=function(t,e,n){function o(t,e){var n=r.find(t,i.propEq('state',e));return r.extend({},n&&n.paramValues)}function s(e){var i=r.extend({},e&&e.paramValues),s=r.pick(i,n);i=r.omit(i,n);var u=r.omit(o(t,e.state)||{},c),l=r.extend(i,u,s);return new a.PathNode(e.state).applyRawParams(l)}void 0===n&&(n=[]);var c=t.map(function(t){return t.paramSchema}).reduce(r.unnestR,[]).filter(function(t){return!t.inherit}).map(i.prop('id'));return e.map(s)},t.treeChanges=function(e,n,r){function i(t,e){var r=a.PathNode.clone(t);return r.paramValues=n[e].paramValues,r}for(var o=0,s=Math.min(e.length,n.length);o<s&&e[o].state!==r&&function(e,n){return e.equals(n,t.nonDynamicParams)}(e[o],n[o]);)o++;var c,u,l,d,f;c=e,u=c.slice(0,o),l=c.slice(o);var m=u.map(i);return d=n.slice(o),f=m.concat(d),{from:c,to:f,retained:u,exiting:l,entering:d}},t.matching=function(t,e,n){var i=!1;return r.arrayTuples(t,e).reduce(function(t,e){var r=e[0],o=e[1];return i=i||!r.equals(o,n),i?t:t.concat(r)},[])},t.equals=function(e,n,r){return e.length===n.length&&t.matching(e,n,r).length===e.length},t.subPath=function(t,e){var n=r.find(t,e),i=t.indexOf(n);return-1===i?void 0:t.slice(0,i+1)},t.nonDynamicParams=function(t){return t.state.parameters({inherit:!1}).filter(function(t){return!t.dynamic})},t.paramValues=function(t){return t.reduce(function(t,e){return r.extend(t,e.paramValues)},{})},t}();e.PathUtils=s},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(2),o=n(6),a=n(3),s=n(39),c=n(15),u=n(20),l=n(5),d=s.resolvePolicies.when,f=[d.EAGER,d.LAZY],m=[d.EAGER];e.NATIVE_INJECTOR_TOKEN='Native Injector';var p=function(){function t(t){this._path=t}return t.prototype.getTokens=function(){return this._path.reduce(function(t,e){return t.concat(e.resolvables.map(function(t){return t.token}))},[]).reduce(r.uniqR,[])},t.prototype.getResolvable=function(t){var e=this._path.map(function(t){return t.resolvables}).reduce(r.unnestR,[]).filter(function(e){return e.token===t});return r.tail(e)},t.prototype.getPolicy=function(t){var e=this.findNode(t);return t.getPolicy(e.state)},t.prototype.subContext=function(e){return new t(u.PathUtils.subPath(this._path,function(t){return t.state===e}))},t.prototype.addResolvables=function(t,e){var n=r.find(this._path,i.propEq('state',e)),o=t.map(function(t){return t.token});n.resolvables=n.resolvables.filter(function(t){return-1===o.indexOf(t.token)}).concat(t)},t.prototype.resolvePath=function(t,e){var n=this;void 0===t&&(t='LAZY');var c=r.inArray(f,t)?t:'LAZY',u=c===s.resolvePolicies.when.EAGER?m:f;o.trace.traceResolvePath(this._path,t,e);var l=function(t,e){return function(i){return r.inArray(t,n.getPolicy(i)[e])}},d=this._path.reduce(function(t,r){var o=r.resolvables.filter(l(u,'when')),a=o.filter(l(['NOWAIT'],'async')),s=o.filter(i.not(l(['NOWAIT'],'async'))),c=n.subContext(r.state),d=function(t){return t.get(c,e).then(function(e){return{token:t.token,value:e}})};return a.forEach(d),t.concat(s.map(d))},[]);return a.services.$q.all(d)},t.prototype.injector=function(){return this._injector||(this._injector=new h(this))},t.prototype.findNode=function(t){return r.find(this._path,function(e){return r.inArray(e.resolvables,t)})},t.prototype.getDependencies=function(t){var e=this,n=this.findNode(t),i=u.PathUtils.subPath(this._path,function(t){return t===n})||this._path,o=i.reduce(function(t,e){return t.concat(e.resolvables)},[]).filter(function(e){return e!==t}),a=function(t){var n=o.filter(function(e){return e.token===t});if(n.length)return r.tail(n);var i=e.injector().getNative(t);if(!i)throw new Error('Could not find Dependency Injection token: '+l.stringify(t));return new c.Resolvable(t,function(){return i},[],i)};return t.deps.map(a)},t}();e.ResolveContext=p;var h=function(){function t(t){this.context=t,this.native=this.get(e.NATIVE_INJECTOR_TOKEN)||a.services.$injector}return t.prototype.get=function(t){var e=this.context.getResolvable(t);if(e){if('NOWAIT'===this.context.getPolicy(e).async)return e.get(this.context);if(!e.resolved)throw new Error('Resolvable async .get() not complete:'+l.stringify(e.token));return e.data}return this.native&&this.native.get(t)},t.prototype.getAsync=function(t){var e=this.context.getResolvable(t);return e?e.get(this.context):a.services.$q.when(this.native.get(t))},t.prototype.getNative=function(t){return this.native&&this.native.get(t)},t}()},function(t,e,n){'use strict';function r(t,e){var n=['',''],r=t.replace(/[\\\[\]\^$*+?.()|{}]/g,'\\$&');if(!e)return r;switch(e.squash){case!1:n=['(',')'+(e.isOptional?'?':'')];break;case!0:r=r.replace(/\/$/,''),n=['(?:/(',')|/)?'];break;default:n=['('+e.squash+'|',')?']}return r+n[0]+e.type.pattern.source+n[1]}Object.defineProperty(e,'__esModule',{value:!0});var i=n(0),o=n(2),a=n(1),s=n(10),c=n(5),u=function(t,e,n){return t[e]=t[e]||n()},l=c.splitOnDelim('/'),d=function(){function t(e,n,a,s){var c=this;this.config=s,this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.pattern=e,this.config=i.defaults(this.config,{params:{},strict:!0,caseInsensitive:!1,paramMap:i.identity});for(var u,l,d,f=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,m=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,p=0,h=[],v=function(n){if(!t.nameValidator.test(n))throw new Error('Invalid parameter name \''+n+'\' in pattern \''+e+'\'');if(i.find(c._params,o.propEq('id',n)))throw new Error('Duplicate parameter name \''+n+'\' in pattern \''+e+'\'')},g=function(t,r){var o=t[2]||t[3],a=r?t[4]:t[4]||('*'===t[1]?'[\\s\\S]*':null);return{id:o,regexp:a,cfg:c.config.params[o],segment:e.substring(p,t.index),type:a?n.type(a)||function(t){return i.inherit(n.type(r?'query':'path'),{pattern:new RegExp(t,c.config.caseInsensitive?'i':void 0)})}(a):null}};(u=f.exec(e))&&(l=g(u,!1),!(l.segment.indexOf('?')>=0));)v(l.id),this._params.push(a.fromPath(l.id,l.type,this.config.paramMap(l.cfg,!1))),this._segments.push(l.segment),h.push([l.segment,i.tail(this._params)]),p=f.lastIndex;d=e.substring(p);var $=d.indexOf('?');if($>=0){var b=d.substring($);if(d=d.substring(0,$),b.length>0)for(p=0;u=m.exec(b);)l=g(u,!0),v(l.id),this._params.push(a.fromSearch(l.id,l.type,this.config.paramMap(l.cfg,!0))),p=f.lastIndex}this._segments.push(d),this._compiled=h.map(function(t){return r.apply(null,t)}).concat(r(d))}return t.prototype.append=function(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t},t.prototype.isRoot=function(){return this._cache.path[0]===this},t.prototype.toString=function(){return this.pattern},t.prototype.exec=function(t,e,n,r){var s=this;void 0===e&&(e={}),void 0===r&&(r={});var c=u(this._cache,'pattern',function(){return new RegExp(['^',i.unnest(s._cache.path.map(o.prop('_compiled'))).join(''),!1===s.config.strict?'/?':'','$'].join(''),s.config.caseInsensitive?'i':void 0)}).exec(t);if(!c)return null;var l=this.parameters(),d=l.filter(function(t){return!t.isSearch()}),f=l.filter(function(t){return t.isSearch()}),m=this._cache.path.map(function(t){return t._segments.length-1}).reduce(function(t,e){return t+e}),p={};if(m!==c.length-1)throw new Error('Unbalanced capture group in route \''+this.pattern+'\'');for(var h=0;h<m;h++){for(var v=d[h],g=c[h+1],$=0;$<v.replace.length;$++)v.replace[$].from===g&&(g=v.replace[$].to);g&&!0===v.array&&(g=function(t){var e=function(t){return t.split('').reverse().join('')},n=function(t){return t.replace(/\\-/g,'-')},r=e(t).split(/-(?!\\)/),o=i.map(r,e);return i.map(o,n).reverse()}(g)),a.isDefined(g)&&(g=v.type.decode(g)),p[v.id]=v.value(g)}return f.forEach(function(t){for(var n=e[t.id],r=0;r<t.replace.length;r++)t.replace[r].from===n&&(n=t.replace[r].to);a.isDefined(n)&&(n=t.type.decode(n)),p[t.id]=t.value(n)}),n&&(p['#']=n),p},t.prototype.parameters=function(t){return void 0===t&&(t={}),!1===t.inherit?this._params:i.unnest(this._cache.path.map(function(t){return t._params}))},t.prototype.parameter=function(t,e){var n=this;void 0===e&&(e={});var r=this._cache.parent;return function(){for(var e=0,r=n._params;e<r.length;e++){var i=r[e];if(i.id===t)return i}}()||!1!==e.inherit&&r&&r.parameter(t,e)||null},t.prototype.validates=function(t){var e=function(t,e){return!t||t.validates(e)};return t=t||{},this.parameters().filter(function(e){return t.hasOwnProperty(e.id)}).map(function(n){return e(n,t[n.id])}).reduce(i.allTrueR,!0)},t.prototype.format=function(e){function n(t){var n=t.value(e[t.id]),r=t.validates(n),i=t.isDefaultValue(n);return{param:t,value:n,isValid:r,isDefaultValue:i,squash:!!i&&t.squash,encoded:t.type.encode(n)}}void 0===e&&(e={});var r=this._cache.path,o=r.map(t.pathSegmentsAndParams).reduce(i.unnestR,[]).map(function(t){return a.isString(t)?t:n(t)}),s=r.map(t.queryParams).reduce(i.unnestR,[]).map(n),c=function(t){return!1===t.isValid};if(o.concat(s).filter(c).length)return null;var u=o.reduce(function(e,n){if(a.isString(n))return e+n;var r=n.squash,o=n.encoded,s=n.param;return!0===r?e.match(/\/$/)?e.slice(0,-1):e:a.isString(r)?e+r:!1!==r?e:null==o?e:a.isArray(o)?e+i.map(o,t.encodeDashes).join('-'):s.raw?e+o:e+encodeURIComponent(o)},''),l=s.map(function(t){var e=t.param,n=t.squash,r=t.encoded,o=t.isDefaultValue;if(!(null==r||o&&!1!==n)&&(a.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=i.map(r,encodeURIComponent)),r.map(function(t){return e.id+'='+t})}).filter(i.identity).reduce(i.unnestR,[]).join('&');return u+(l?'?'+l:'')+(e['#']?'#'+e['#']:'')},t.encodeDashes=function(t){return encodeURIComponent(t).replace(/-/g,function(t){return'%5C%'+t.charCodeAt(0).toString(16).toUpperCase()})},t.pathSegmentsAndParams=function(t){var e=t._segments,n=t._params.filter(function(t){return t.location===s.DefType.PATH});return i.arrayTuples(e,n.concat(void 0)).reduce(i.unnestR,[]).filter(function(t){return''!==t&&a.isDefined(t)})},t.queryParams=function(t){return t._params.filter(function(t){return t.location===s.DefType.SEARCH})},t.compare=function(e,n){var r,o,u=function(e){return e._cache.segments=e._cache.segments||e._cache.path.map(t.pathSegmentsAndParams).reduce(i.unnestR,[]).reduce(c.joinNeighborsR,[]).map(function(t){return a.isString(t)?l(t):t}).reduce(i.unnestR,[])},d=function(t){return t._cache.weights=t._cache.weights||u(t).map(function(t){return'/'===t?1:a.isString(t)?2:t instanceof s.Param?3:void 0})},f=i.arrayTuples(d(e),d(n));for(o=0;o<f.length;o++)if(0!==(r=f[o][0]-f[o][1]))return r;return 0},t.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,t}();e.UrlMatcher=d},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(16),i=n(1),o=n(0),a=function(){function t(t,e){var n=this;this.fireAfterUpdate=e,this._listener=function(t){return n._listeners.forEach(function(e){return e(t)})},this._listeners=[],this.hash=function(){return r.parseUrl(n._get()).hash},this.path=function(){return r.parseUrl(n._get()).path},this.search=function(){return r.getParams(r.parseUrl(n._get()).search)},this._location=window&&window.location,this._history=window&&window.history}return t.prototype.url=function(t,e){if(void 0===e&&(e=!0),i.isDefined(t)&&t!==this._get()&&(this._set(null,null,t,e),this.fireAfterUpdate)){var n=o.extend(new Event('locationchange'),{url:t});this._listeners.forEach(function(t){return t(n)})}return r.buildUrl(this)},t.prototype.onChange=function(t){var e=this;return this._listeners.push(t),function(){return o.removeFrom(e._listeners,t)}},t.prototype.dispose=function(t){o.deregAll(this._listeners)},t}();e.BaseLocationServices=a},function(t,e,n){n(70),t.exports='ngAnimate'},function(t,e,n){n(71),t.exports='ngAria'},function(t,e,n){'use strict';function r(t){function e(t,e,r,i,o,a){return n._runtimeServices(i,t,r,e),delete b.router,delete b.$get,b}b=this.router=new s.UIRouter,b.stateProvider=new l.StateProvider(b.stateRegistry,b.stateService),b.stateRegistry.decorator('views',c.ng1ViewsBuilder),b.stateRegistry.decorator('onExit',d.getStateHookBuilder('onExit')),b.stateRegistry.decorator('onRetain',d.getStateHookBuilder('onRetain')),b.stateRegistry.decorator('onEnter',d.getStateHookBuilder('onEnter')),b.viewService._pluginapi._viewConfigFactory('ng1',c.getNg1ViewConfigFactory());var n=b.locationService=b.locationConfig=new f.Ng1LocationServices(t);return f.Ng1LocationServices.monkeyPatchPathParameterType(b),b.router=b,b.$get=e,e.$inject=['$location','$browser','$sniffer','$rootScope','$http','$templateCache'],b}function i(t,e,n){s.services.$injector=t,s.services.$q=e,n.stateRegistry.get().map(function(t){return t.$$state().resolvables}).reduce(s.unnestR,[]).filter(function(t){return'deferred'===t.deps}).forEach(function(e){return e.deps=t.annotate(e.resolveFn,t.strictDi)})}function o(t){t.$watch(function(){s.trace.approximateDigests++})}Object.defineProperty(e,'__esModule',{value:!0});var a=n(8),s=n(4),c=n(33),u=n(95),l=n(63),d=n(96),f=n(97),m=n(64);a.ng.module('ui.router.angular1',[]);var p=a.ng.module('ui.router.init',[]),h=a.ng.module('ui.router.util',['ng','ui.router.init']),v=a.ng.module('ui.router.router',['ui.router.util']),g=a.ng.module('ui.router.state',['ui.router.router','ui.router.util','ui.router.angular1']),$=a.ng.module('ui.router',['ui.router.init','ui.router.state','ui.router.angular1']),b=(a.ng.module('ui.router.compat',['ui.router']),null);r.$inject=['$locationProvider'];var y=function(t){return['$uiRouterProvider',function(e){var n=e.router[t];return n.$get=function(){return n},n}]};i.$inject=['$injector','$q','$uiRouter'];var E=function(t){return t.urlRouterProvider=new m.UrlRouterProvider(t)},w=function(){return s.extend(b.stateProvider,{$get:function(){return b.stateService}})};o.$inject=['$rootScope'],e.watchDigests=o,p.provider('$uiRouter',r),v.provider('$urlRouter',['$uiRouterProvider',E]),h.provider('$urlService',y('urlService')),h.provider('$urlMatcherFactory',['$uiRouterProvider',function(){return b.urlMatcherFactory}]),h.provider('$templateFactory',function(){return new u.TemplateFactory}),g.provider('$stateRegistry',y('stateRegistry')),g.provider('$uiRouterGlobals',y('globals')),g.provider('$transitions',y('transitionService')),g.provider('$state',['$uiRouterProvider',w]),g.factory('$stateParams',['$uiRouter',function(t){return t.globals.params}]),$.factory('$view',function(){return b.viewService}),$.service('$trace',function(){return s.trace}),$.run(o),h.run(['$urlMatcherFactory',function(t){}]),g.run(['$state',function(t){}]),v.run(['$urlRouter',function(t){}]),p.run(i),e.getLocals=function(t){return t.getTokens().filter(s.isString).map(function(e){var n=t.getResolvable(e);return[e,'NOWAIT'===t.getPolicy(n).async?n.promise:n.data]}).reduce(s.applyPairs,{})}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(2),o=n(18),a=n(1),s=function(){function t(e){return t.create(e||{})}return t.create=function(e){e=t.isStateClass(e)?new e:e;var n=r.inherit(r.inherit(e,t.prototype));return e.$$state=function(){return n},n.self=e,n.__stateObjectCache={nameGlob:o.Glob.fromString(n.name)},n},t.prototype.is=function(t){return this===t||this.self===t||this.fqn()===t},t.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var t=this.parent.fqn();return t?t+'.'+this.name:this.name},t.prototype.root=function(){return this.parent&&this.parent.root()||this},t.prototype.parameters=function(t){return t=r.defaults(t,{inherit:!0,matchingKeys:null}),(t.inherit&&this.parent&&this.parent.parameters()||[]).concat(r.values(this.params)).filter(function(e){return!t.matchingKeys||t.matchingKeys.hasOwnProperty(e.id)})},t.prototype.parameter=function(t,e){return void 0===e&&(e={}),this.url&&this.url.parameter(t,e)||r.find(r.values(this.params),i.propEq('id',t))||e.inherit&&this.parent&&this.parent.parameter(t)},t.prototype.toString=function(){return this.fqn()},t.isStateClass=function(t){return a.isFunction(t)&&!0===t.__uiRouterState},t.isState=function(t){return a.isObject(t.__stateObjectCache)},t}();e.StateObject=s},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=null),this._items=t,this._limit=e}return t.prototype.enqueue=function(t){var e=this._items;return e.push(t),this._limit&&e.length>this._limit&&e.shift(),t},t.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},t.prototype.clear=function(){var t=this._items;return this._items=[],t},t.prototype.size=function(){return this._items.length},t.prototype.remove=function(t){var e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]},t.prototype.peekTail=function(){return this._items[this._items.length-1]},t.prototype.peekHead=function(){if(this.size())return this._items[0]},t}();e.Queue=r},function(t,e,n){'use strict';function r(t,e){function n(t){for(var e=r,n=0;n<e.length;n++){var i=new c.Glob(e[n]);if(i&&i.matches(t.name)||!i&&e[n]===t.name)return!0}return!1}var r=a.isString(e)?[e]:e;return!!(a.isFunction(r)?r:n)(t)}function i(t,e,n){function r(t,r,i){void 0===i&&(i={});var s=new u(e,n,r,t,i);return a.push(s),function(){s._deregistered=!0,o.removeFrom(a)(s)}}var i=t._registeredHooks=t._registeredHooks||{},a=i[n.name]=[];return t[n.name]=r,r}Object.defineProperty(e,'__esModule',{value:!0});var o=n(0),a=n(1),s=n(9),c=n(18);e.matchState=r;var u=function(){function t(t,e,n,r,i){void 0===i&&(i={}),this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.priority=i.priority||0,this.bind=i.bind||null,this._deregistered=!1}return t.prototype._matchingNodes=function(t,e){if(!0===e)return t;var n=t.filter(function(t){return r(t.state,e)});return n.length?n:null},t.prototype._getDefaultMatchCriteria=function(){return o.map(this.tranSvc._pluginapi._getPathTypes(),function(){return!0})},t.prototype._getMatchingNodes=function(t){var e=this,n=o.extend(this._getDefaultMatchCriteria(),this.matchCriteria);return o.values(this.tranSvc._pluginapi._getPathTypes()).reduce(function(r,i){var a=i.scope===s.TransitionHookScope.STATE,c=t[i.name]||[],u=a?c:[o.tail(c)];return r[i.name]=e._matchingNodes(u,n[i.name]),r},{})},t.prototype.matches=function(t){var e=this._getMatchingNodes(t);return o.values(e).every(o.identity)?e:null},t}();e.RegisteredHook=u,e.makeEvent=i},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(2),o=n(10),a=function(){function t(e){if(e instanceof t){var n=e;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=r.extend({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{var i=e;this.state=i,this.paramSchema=i.parameters({inherit:!1}),this.paramValues={},this.resolvables=i.resolvables.map(function(t){return t.clone()})}}return t.prototype.applyRawParams=function(t){var e=function(e){return[e.id,e.value(t[e.id])]};return this.paramValues=this.paramSchema.reduce(function(t,n){return r.applyPairs(t,e(n))},{}),this},t.prototype.parameter=function(t){return r.find(this.paramSchema,i.propEq('id',t))},t.prototype.equals=function(t,e){var n=this.diff(t,e);return n&&0===n.length},t.prototype.diff=function(t,e){if(this.state!==t.state)return!1;var n=e?e(this):this.paramSchema;return o.Param.changed(n,this.paramValues,t.paramValues)},t.clone=function(e){return new t(e)},t}();e.PathNode=a},function(t,e,n){'use strict';function r(t,e){function n(t){return o.isArray(t)?t:o.isDefined(t)?[t]:[]}function r(t){switch(t.length){case 0:return;case 1:return'auto'===e?t[0]:t;default:return t}}function a(t,e){return function(a){if(o.isArray(a)&&0===a.length)return a;var s=n(a),c=i.map(s,t);return!0===e?0===i.filter(c,function(t){return!t}).length:r(c)}}function s(t){return function(e,r){var i=n(e),o=n(r);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}}var c=this;['encode','decode','equals','$normalize'].forEach(function(e){var n=t[e].bind(t),r='equals'===e?s:a;c[e]=r(n)}),i.extend(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,is:a(t.is.bind(t),!0),$arrayMode:e})}Object.defineProperty(e,'__esModule',{value:!0});var i=n(0),o=n(1),a=function(){function t(t){this.pattern=/.*/,this.inherit=!0,i.extend(this,t)}return t.prototype.is=function(t,e){return!0},t.prototype.encode=function(t,e){return t},t.prototype.decode=function(t,e){return t},t.prototype.equals=function(t,e){return t==e},t.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},t.prototype.toString=function(){return'{ParamType:'+this.name+'}'},t.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},t.prototype.$asArray=function(t,e){if(!t)return this;if('auto'===t&&!e)throw new Error('\'auto\' array mode is for query parameters only');return new r(this,t)},t}();e.ParamType=a},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(9),i=n(19),o=n(29),a=n(79),s=n(80),c=n(81),u=n(82),l=n(83),d=n(84),f=n(85),m=n(54),p=n(55),h=n(14),v=n(1),g=n(0),$=n(2),b=n(86),y=n(87);e.defaultTransOpts={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,custom:{},current:function(){return null},source:'unknown'};var E=function(){function t(t){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=t,this.$view=t.viewService,this._deregisterHookFns={},this._pluginapi=g.createProxyFunctions($.val(this),{},$.val(this),['_definePathType','_defineEvent','_getPathTypes','_getEvents','getHooks']),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks()}return t.prototype.onCreate=function(t,e,n){},t.prototype.onBefore=function(t,e,n){},t.prototype.onStart=function(t,e,n){},t.prototype.onExit=function(t,e,n){},t.prototype.onRetain=function(t,e,n){},t.prototype.onEnter=function(t,e,n){},t.prototype.onFinish=function(t,e,n){},t.prototype.onSuccess=function(t,e,n){},t.prototype.onError=function(t,e,n){},t.prototype.dispose=function(t){g.values(this._registeredHooks).forEach(function(t){return t.forEach(function(e){e._deregistered=!0,g.removeFrom(t,e)})})},t.prototype.create=function(t,e){return new i.Transition(t,e,this._router)},t.prototype._defineCoreEvents=function(){var t=r.TransitionHookPhase,e=h.TransitionHook,n=this._criteriaPaths;this._defineEvent('onCreate',t.CREATE,0,n.to,!1,e.LOG_REJECTED_RESULT,e.THROW_ERROR,!0),this._defineEvent('onBefore',t.BEFORE,0,n.to),this._defineEvent('onStart',t.RUN,0,n.to),this._defineEvent('onExit',t.RUN,100,n.exiting,!0),this._defineEvent('onRetain',t.RUN,200,n.retained),this._defineEvent('onEnter',t.RUN,300,n.entering),this._defineEvent('onFinish',t.RUN,400,n.to),this._defineEvent('onSuccess',t.SUCCESS,0,n.to,!1,e.LOG_REJECTED_RESULT,e.LOG_ERROR,!0),this._defineEvent('onError',t.ERROR,0,n.to,!1,e.LOG_REJECTED_RESULT,e.LOG_ERROR,!0)},t.prototype._defineCorePaths=function(){var t=r.TransitionHookScope.STATE,e=r.TransitionHookScope.TRANSITION;this._definePathType('to',e),this._definePathType('from',e),this._definePathType('exiting',t),this._definePathType('retained',t),this._definePathType('entering',t)},t.prototype._defineEvent=function(t,e,n,r,i,a,s,c){void 0===i&&(i=!1),void 0===a&&(a=h.TransitionHook.HANDLE_RESULT),void 0===s&&(s=h.TransitionHook.REJECT_ERROR),void 0===c&&(c=!1);var u=new p.TransitionEventType(t,e,n,r,i,a,s,c);this._eventTypes.push(u),o.makeEvent(this,this,u)},t.prototype._getEvents=function(t){return(v.isDefined(t)?this._eventTypes.filter(function(e){return e.hookPhase===t}):this._eventTypes.slice()).sort(function(t,e){var n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n})},t.prototype._definePathType=function(t,e){this._criteriaPaths[t]={name:t,scope:e}},t.prototype._getPathTypes=function(){return this._criteriaPaths},t.prototype.getHooks=function(t){return this._registeredHooks[t]},t.prototype._registerCoreTransitionHooks=function(){var t=this._deregisterHookFns;t.addCoreResolves=a.registerAddCoreResolvables(this),t.ignored=b.registerIgnoredTransitionHook(this),t.invalid=y.registerInvalidTransitionHook(this),t.redirectTo=s.registerRedirectToHook(this),t.onExit=c.registerOnExitHook(this),t.onRetain=c.registerOnRetainHook(this),t.onEnter=c.registerOnEnterHook(this),t.eagerResolve=u.registerEagerResolvePath(this),t.lazyResolve=u.registerLazyResolveState(this),t.loadViews=l.registerLoadEnteringViews(this),t.activateViews=l.registerActivateViews(this),t.updateGlobals=d.registerUpdateGlobalState(this),t.updateUrl=f.registerUpdateUrl(this),t.lazyLoad=m.registerLazyLoadHook(this)},t}();e.TransitionService=E},function(t,e,n){'use strict';function r(){var t=null;return function(e,n){return t=t||o.services.$injector.get('$templateFactory'),[new c(e,n,t)]}}function i(t){if(!t.parent)return{};var e=['templateProvider','templateUrl','template','notify','async'],n=['controller','controllerProvider','controllerAs','resolveAs'],r=['component','bindings','componentProvider'],i=e.concat(n),s=r.concat(i);if(o.isDefined(t.views)&&a(s,t))throw new Error('State \''+t.name+'\' has a \'views\' object. It cannot also have "view properties" at the state level.  Move the following properties into a view (in the \'views\' object):  '+s.filter(function(e){return o.isDefined(t[e])}).join(', '));var c={},u=t.views||{$default:o.pick(t,s)};return o.forEach(u,function(e,n){if(n=n||'$default',o.isString(e)&&(e={component:e}),e=o.extend({},e),a(r,e)&&a(i,e))throw new Error('Cannot combine: '+r.join('|')+' with: '+i.join('|')+' in stateview: \''+n+'@'+t.name+'\'');e.resolveAs=e.resolveAs||'$resolve',e.$type='ng1',e.$context=t,e.$name=n;var s=o.ViewService.normalizeUIViewTarget(e.$context,e.$name);e.$uiViewName=s.uiViewName,e.$uiViewContextAnchor=s.uiViewContextAnchor,c[n]=e}),c}Object.defineProperty(e,'__esModule',{value:!0});var o=n(4);e.getNg1ViewConfigFactory=r;var a=function(t,e){return t.reduce(function(t,n){return t||o.isDefined(e[n])},!1)};e.ng1ViewsBuilder=i;var s=0,c=function(){function t(t,e,n){var r=this;this.path=t,this.viewDecl=e,this.factory=n,this.$id=s++,this.loaded=!1,this.getTemplate=function(t,e){return r.component?r.factory.makeComponentTemplate(t,e,r.component,r.viewDecl.bindings):r.template}}return t.prototype.load=function(){var t=this,e=o.services.$q,n=new o.ResolveContext(this.path),r=this.path.reduce(function(t,e){return o.extend(t,e.paramValues)},{}),i={template:e.when(this.factory.fromConfig(this.viewDecl,r,n)),controller:e.when(this.getController(n))};return e.all(i).then(function(e){return o.trace.traceViewServiceEvent('Loaded',t),t.controller=e.controller,o.extend(t,e.template),t})},t.prototype.getController=function(t){var e=this.viewDecl.controllerProvider;if(!o.isInjectable(e))return this.viewDecl.controller;var n=o.services.$injector.annotate(e),r=o.isArray(e)?o.tail(e):e;return new o.Resolvable('',r,n).get(t)},t}();e.Ng1ViewConfig=c},function(t,e,n){n(72),t.exports='ngMessages'},function(t,e,n){n(73),t.exports='ngSanitize'},function(t,e,n){n(11),n(24),n(25),n(74),t.exports='ngMaterial'},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(26)),r(n(33)),r(n(63)),r(n(64)),n(98),n(99),n(100),n(101),n(102),e.default='ui.router';var i=n(4);e.core=i,r(n(4))},function(t,e,n){'use strict';function r(t){return void 0===t&&(t=!1),function(e,n){var r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}Object.defineProperty(e,'__esModule',{value:!0});var i=n(0),o=n(1),a=n(9),s=n(14),c=function(){function t(t){this.transition=t}return t.prototype.buildHooksForPhase=function(t){var e=this;return this.transition.router.transitionService._pluginapi._getEvents(t).map(function(t){return e.buildHooks(t)}).reduce(i.unnestR,[]).filter(i.identity)},t.prototype.buildHooks=function(t){var e=this.transition,n=e.treeChanges(),o=this.getMatchingHooks(t,n);if(!o)return[];var c={transition:e,current:e.options().current},u=function(r){return r.matches(n)[t.criteriaMatchPath.name].map(function(n){var o=i.extend({bind:r.bind,traceData:{hookType:t.name,context:n}},c),u=t.criteriaMatchPath.scope===a.TransitionHookScope.STATE?n.state.self:null,l=new s.TransitionHook(e,u,r,o);return{hook:r,node:n,transitionHook:l}})};return o.map(u).reduce(i.unnestR,[]).sort(r(t.reverseSort)).map(function(t){return t.transitionHook})},t.prototype.getMatchingHooks=function(t,e){var n=t.hookPhase===a.TransitionHookPhase.CREATE,r=this.transition.router.transitionService;return(n?[r]:[this.transition,r]).map(function(e){return e.getHooks(t.name)}).filter(i.assertPredicate(o.isArray,'broken event named: '+t.name)).reduce(i.unnestR,[]).filter(function(t){return t.matches(e)})},t}();e.HookBuilder=c},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.resolvePolicies={when:{LAZY:'LAZY',EAGER:'EAGER'},async:{WAIT:'WAIT',NOWAIT:'NOWAIT',RXWAIT:'RXWAIT'}}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(1),o=n(2),a=n(3),s=n(31),c=function(){function t(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=r.pick(t.prototype,['hash','string','query','path','int','bool','date','json','any']);var e=function(t,e){return new s.ParamType(r.extend({name:e},t))};this.types=r.inherit(r.map(this.defaultTypes,e),{})}return t.prototype.dispose=function(){this.types={}},t.prototype.type=function(t,e,n){if(!i.isDefined(e))return this.types[t];if(this.types.hasOwnProperty(t))throw new Error('A type named \''+t+'\' has already been defined.');return this.types[t]=new s.ParamType(r.extend({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this},t.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;){var t=this.typeQueue.shift();if(t.pattern)throw new Error('You cannot override a type\'s .pattern at runtime.');r.extend(this.types[t.name],a.services.$injector.invoke(t.def))}},t}();e.ParamTypes=c,function(){var t=function(t){var e=function(t){return null!=t?t.toString():t},n={encode:e,decode:e,is:o.is(String),pattern:/.*/,equals:function(t,e){return t==e}};return r.extend({},n,t)};r.extend(c.prototype,{string:t({}),path:t({pattern:/[^\/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:function(t){return parseInt(t,10)},is:function(t){return!i.isNullOrUndefined(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:function(t){return t&&1||0},decode:function(t){return 0!==parseInt(t,10)},is:o.is(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),('0'+(t.getMonth()+1)).slice(-2),('0'+t.getDate()).slice(-2)].join('-'):void 0},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]):void 0},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return['getFullYear','getMonth','getDate'].reduce(function(n,r){return n&&t[r]()===e[r]()},!0)},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:t({encode:r.toJson,decode:r.fromJson,is:o.is(Object),equals:r.equals,pattern:/[^\/]*/}),any:t({encode:r.identity,decode:r.identity,is:function(){return!0},equals:r.equals})})}()},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=function(){function t(t){void 0===t&&(t={}),r.extend(this,t)}return t.prototype.$inherit=function(t,e,n){var i,o=r.ancestors(e,n),a={},s=[];for(var c in o)if(o[c]&&o[c].params&&(i=Object.keys(o[c].params),i.length))for(var u in i)s.indexOf(i[u])>=0||(s.push(i[u]),a[i[u]]=this[i[u]]);return r.extend({},a,t)},t}();e.StateParams=i},function(t,e,n){'use strict';function r(t){return t.name}function i(t){return t.self.$$state=function(){return t},t.self}function o(t){return t.parent&&t.parent.data&&(t.data=t.self.data=u.inherit(t.parent.data,t.data)),t.data}function a(t){return t.parent?t.parent.path.concat(t):[t]}function s(t){var e=t.parent?u.extend({},t.parent.includes):{};return e[t.name]=!0,e}function c(t){var e=function(t){var e=p.services.$injector;return t.$inject||e&&e.annotate(t,e.strictDi)||'deferred'},n=function(t){return!(!t.token||!t.resolveFn)},r=function(t){return!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass))},i=function(t){return!!(t&&t.val&&(l.isString(t.val)||l.isArray(t.val)||l.isFunction(t.val)))},o=function(t){return t.provide||t.token},a=f.pattern([[f.prop('resolveFn'),function(t){return new m.Resolvable(o(t),t.resolveFn,t.deps,t.policy)}],[f.prop('useFactory'),function(t){return new m.Resolvable(o(t),t.useFactory,t.deps||t.dependencies,t.policy)}],[f.prop('useClass'),function(t){return new m.Resolvable(o(t),function(){return new t.useClass},[],t.policy)}],[f.prop('useValue'),function(t){return new m.Resolvable(o(t),function(){return t.useValue},[],t.policy,t.useValue)}],[f.prop('useExisting'),function(t){return new m.Resolvable(o(t),u.identity,[t.useExisting],t.policy)}]]),s=f.pattern([[f.pipe(f.prop('val'),l.isString),function(t){return new m.Resolvable(t.token,u.identity,[t.val],t.policy)}],[f.pipe(f.prop('val'),l.isArray),function(t){return new m.Resolvable(t.token,u.tail(t.val),t.val.slice(0,-1),t.policy)}],[f.pipe(f.prop('val'),l.isFunction),function(t){return new m.Resolvable(t.token,t.val,e(t.val),t.policy)}]]),c=f.pattern([[f.is(m.Resolvable),function(t){return t}],[n,a],[r,a],[i,s],[f.val(!0),function(t){throw new Error('Invalid resolve value: '+d.stringify(t))}]]),h=t.resolve;return(l.isArray(h)?h:function(t,e){return Object.keys(t||{}).map(function(n){return{token:n,val:t[n],deps:void 0,policy:e[n]}})}(h,t.resolvePolicy||{})).map(c)}Object.defineProperty(e,'__esModule',{value:!0});var u=n(0),l=n(1),d=n(5),f=n(2),m=n(15),p=n(3),h=function(t){if(!l.isString(t))return!1;var e='^'===t.charAt(0);return{val:e?t.substring(1):t,root:e}},v=function(t,e){return function(n){var r=n;r&&r.url&&r.name&&r.name.match(/\.\*\*$/)&&(r.url+='{remainder:any}');var i=h(r.url),o=n.parent,a=i?t.compile(i.val,{params:n.params||{},paramMap:function(t,e){return!1===r.reloadOnSearch&&e&&(t=u.extend(t||{},{dynamic:!0})),t}}):r.url;if(!a)return null;if(!t.isMatcher(a))throw new Error('Invalid url \''+a+'\' in state \''+n+'\'');return i&&i.root?a:(o&&o.navigable||e()).url.append(a)}},g=function(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}},$=function(t){return function(e){var n=function(e,n){return t.fromConfig(n,null,e)},r=e.url&&e.url.parameters({inherit:!1})||[],i=u.values(u.mapObj(u.omit(e.params||{},r.map(f.prop('id'))),n));return r.concat(i).map(function(t){return[t.id,t]}).reduce(u.applyPairs,{})}};e.resolvablesBuilder=c;var b=function(){function t(t,e){function n(e){return d(e)?null:t.find(u.parentName(e))||l()}this.matcher=t;var u=this,l=function(){return t.find('')},d=function(t){return''===t.name};this.builders={name:[r],self:[i],parent:[n],data:[o],url:[v(e,l)],navigable:[g(d)],params:[$(e.paramFactory)],views:[],path:[a],includes:[s],resolvables:[c]}}return t.prototype.builder=function(t,e){var n=this.builders,r=n[t]||[];return l.isString(t)&&!l.isDefined(e)?r.length>1?r:r[0]:l.isString(t)&&l.isFunction(e)?(n[t]=r,n[t].push(e),function(){return n[t].splice(n[t].indexOf(e,1))&&null}):void 0},t.prototype.build=function(t){var e=this,n=e.matcher,r=e.builders,i=this.parentName(t);if(i&&!n.find(i,void 0,!1))return null;for(var o in r)if(r.hasOwnProperty(o)){var a=r[o].reduce(function(t,e){return function(n){return e(n,t)}},u.noop);t[o]=a(t)}return t},t.prototype.parentName=function(t){var e=t.name||'',n=e.split('.');if('**'===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error('States that specify the \'parent:\' property should not have a \'.\' in their name ('+e+')');return n.join('.')}return t.parent?l.isString(t.parent)?t.parent:t.parent.name:''},t.prototype.name=function(t){var e=t.name;if(-1!==e.indexOf('.')||!t.parent)return e;var n=l.isString(t.parent)?t.parent:t.parent.name;return n?n+'.'+e:e},t}();e.StateBuilder=b},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(1),i=n(0),o=function(){function t(t){this._states=t}return t.prototype.isRelative=function(t){return t=t||'',0===t.indexOf('.')||0===t.indexOf('^')},t.prototype.find=function(t,e,n){if(void 0===n&&(n=!0),t||''===t){var o=r.isString(t),a=o?t:t.name;this.isRelative(a)&&(a=this.resolvePath(a,e));var s=this._states[a];if(s&&(o||!(o||s!==t&&s.self!==t)))return s;if(o&&n){var c=i.values(this._states),u=c.filter(function(t){return t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(a)});return u.length>1&&console.log('stateMatcher.find: Found multiple matches for '+a+' using glob: ',u.map(function(t){return t.name})),u[0]}}},t.prototype.resolvePath=function(t,e){if(!e)throw new Error('No reference point given for path \''+t+'\'');for(var n=this.find(e),r=t.split('.'),i=0,o=r.length,a=n;i<o;i++)if(''!==r[i]||0!==i){if('^'!==r[i])break;if(!a.parent)throw new Error('Path \''+t+'\' not valid for state \''+n.name+'\'');a=a.parent}else a=n;var s=r.slice(i).join('.');return a.name+(a.name&&s?'.':'')+s},t}();e.StateMatcher=o},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(1),o=n(27),a=n(2),s=function(){function t(t,e,n,r,i){this.$registry=t,this.$urlRouter=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[],this.matcher=t.matcher}return t.prototype.dispose=function(){this.queue=[]},t.prototype.register=function(t){var e=this.queue,n=o.StateObject.create(t),s=n.name;if(!i.isString(s))throw new Error('State must have a valid name');if(this.states.hasOwnProperty(s)||r.inArray(e.map(a.prop('name')),s))throw new Error('State \''+s+'\' is already defined');return e.push(n),this.flush(),n},t.prototype.flush=function(){for(var t=this,e=this,n=e.queue,r=e.states,i=e.builder,o=[],a=[],s={},c=function(e){return t.states.hasOwnProperty(e)&&t.states[e]};n.length>0;){var u=n.shift(),l=u.name,d=i.build(u),f=a.indexOf(u);if(d){var m=c(l);if(m&&m.name===l)throw new Error('State \''+l+'\' is already defined');var p=c(l+'.**');p&&this.$registry.deregister(p),r[l]=u,this.attachRoute(u),f>=0&&a.splice(f,1),o.push(u)}else{var h=s[l];if(s[l]=n.length,f>=0&&h===n.length)return n.push(u),r;f<0&&a.push(u),n.push(u)}}return o.length&&this.listeners.forEach(function(t){return t('registered',o.map(function(t){return t.self}))}),r},t.prototype.attachRoute=function(t){!t.abstract&&t.url&&this.$urlRouter.rule(this.$urlRouter.urlRuleFactory.create(t))},t}();e.StateQueueManager=s},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(43),i=n(42),o=n(44),a=n(0),s=n(2),c=function(){function t(t){this._router=t,this.states={},this.listeners=[],this.matcher=new r.StateMatcher(this.states),this.builder=new i.StateBuilder(this.matcher,t.urlMatcherFactory),this.stateQueue=new o.StateQueueManager(this,t.urlRouter,this.states,this.builder,this.listeners),this._registerRoot()}return t.prototype._registerRoot=function(){var t={name:'',url:'^',views:null,params:{'#':{value:null,type:'hash',dynamic:!0}},abstract:!0};(this._root=this.stateQueue.register(t)).navigable=null},t.prototype.dispose=function(){var t=this;this.stateQueue.dispose(),this.listeners=[],this.get().forEach(function(e){return t.get(e)&&t.deregister(e)})},t.prototype.onStatesChanged=function(t){return this.listeners.push(t),function(){a.removeFrom(this.listeners)(t)}.bind(this)},t.prototype.root=function(){return this._root},t.prototype.register=function(t){return this.stateQueue.register(t)},t.prototype._deregisterTree=function(t){var e=this,n=this.get().map(function(t){return t.$$state()}),r=function(t){var e=n.filter(function(e){return-1!==t.indexOf(e.parent)});return 0===e.length?e:e.concat(r(e))},i=r([t]),o=[t].concat(i).reverse();return o.forEach(function(t){var n=e._router.urlRouter;n.rules().filter(s.propEq('state',t)).forEach(n.removeRule.bind(n)),delete e.states[t.name]}),o},t.prototype.deregister=function(t){var e=this.get(t);if(!e)throw new Error('Can\'t deregister state; not found: '+t);var n=this._deregisterTree(e.$$state());return this.listeners.forEach(function(t){return t('deregistered',n.map(function(t){return t.self}))}),n},t.prototype.get=function(t,e){var n=this;if(0===arguments.length)return Object.keys(this.states).map(function(t){return n.states[t].self});var r=this.matcher.find(t,e);return r&&r.self||null},t.prototype.decorator=function(t,e){return this.builder.builder(t,e)},t}();e.StateRegistry=c},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(1),o=n(28),a=n(3),s=n(20),c=n(30),u=n(32),l=n(13),d=n(7),f=n(10),m=n(18),p=n(21),h=n(54),v=n(2),g=function(){function t(e){this.router=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?(console.error(t),console.error(t.stack)):t instanceof l.Rejection?(console.error(t.toString()),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};var n=['current','$current','params','transition'],i=Object.keys(t.prototype).filter(v.not(r.inArray(n)));r.createProxyFunctions(v.val(t.prototype),this,v.val(this),i)}return Object.defineProperty(t.prototype,'transition',{get:function(){return this.router.globals.transition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,'params',{get:function(){return this.router.globals.params},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,'current',{get:function(){return this.router.globals.current},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,'$current',{get:function(){return this.router.globals.$current},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.defaultErrorHandler(r.noop),this.invalidCallbacks=[]},t.prototype._handleInvalidTargetState=function(t,e){function n(){var t=m.dequeue();return void 0===t?l.Rejection.invalid(e.error()).toPromise():a.services.$q.when(t(e,i,h)).then(v).then(function(t){return t||n()})}var r=this,i=s.PathUtils.makeTargetState(t),c=this.router.globals,u=function(){return c.transitionHistory.peekTail()},f=u(),m=new o.Queue(this.invalidCallbacks.slice()),h=new p.ResolveContext(t).injector(),v=function(t){if(t instanceof d.TargetState){var e=t;return e=r.target(e.identifier(),e.params(),e.options()),e.valid()?u()!==f?l.Rejection.superseded().toPromise():r.transitionTo(e.identifier(),e.params(),e.options()):l.Rejection.invalid(e.error()).toPromise()}};return n()},t.prototype.onInvalid=function(t){return this.invalidCallbacks.push(t),function(){r.removeFrom(this.invalidCallbacks)(t)}.bind(this)},t.prototype.reload=function(t){return this.transitionTo(this.current,this.params,{reload:!i.isDefined(t)||t,inherit:!1,notify:!1})},t.prototype.go=function(t,e,n){var i={relative:this.$current,inherit:!0},o=r.defaults(n,i,u.defaultTransOpts);return this.transitionTo(t,e,o)},t.prototype.target=function(t,e,n){if(void 0===n&&(n={}),i.isObject(n.reload)&&!n.reload.name)throw new Error('Invalid reload state object');var r=this.router.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error('No such reload state \''+(i.isString(n.reload)?n.reload:n.reload.name)+'\'');var o=r.matcher.find(t,n.relative);return new d.TargetState(t,o,e,n)},t.prototype.getCurrentPath=function(){var t=this,e=this.router.globals,n=e.successfulTransitions.peekTail();return n?n.treeChanges().to:function(){return[new c.PathNode(t.router.stateRegistry.root())]}()},t.prototype.transitionTo=function(t,e,n){var i=this;void 0===e&&(e={}),void 0===n&&(n={});var o=this.router,s=o.globals;n=r.defaults(n,u.defaultTransOpts);var c=function(){return s.transition};n=r.extend(n,{current:c});var f=this.target(t,e,n),m=this.getCurrentPath();if(!f.exists())return this._handleInvalidTargetState(m,f);if(!f.valid())return r.silentRejection(f.error());var p=function(t){return function(e){if(e instanceof l.Rejection){var n=o.globals.lastStartedTransitionId===t.$id;if(e.type===l.RejectType.IGNORED)return n&&o.urlRouter.update(),a.services.$q.when(s.current);var r=e.detail;if(e.type===l.RejectType.SUPERSEDED&&e.redirected&&r instanceof d.TargetState){var c=t.redirect(r);return c.run().catch(p(c))}if(e.type===l.RejectType.ABORTED)return n&&o.urlRouter.update(),a.services.$q.reject(e)}return i.defaultErrorHandler()(e),a.services.$q.reject(e)}},h=this.router.transitionService.create(m,f),v=h.run().catch(p(h));return r.silenceUncaughtInPromise(v),r.extend(v,{transition:h})},t.prototype.is=function(t,e,n){n=r.defaults(n,{relative:this.$current});var o=this.router.stateRegistry.matcher.find(t,n.relative);if(i.isDefined(o)){if(this.$current!==o)return!1;if(!e)return!0;var a=o.parameters({inherit:!0,matchingKeys:e});return f.Param.equals(a,f.Param.values(a,e),this.params)}},t.prototype.includes=function(t,e,n){n=r.defaults(n,{relative:this.$current});var o=i.isString(t)&&m.Glob.fromString(t);if(o){if(!o.matches(this.$current.name))return!1;t=this.$current.name}var a=this.router.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(i.isDefined(a)){if(!i.isDefined(s[a.name]))return!1;if(!e)return!0;var c=a.parameters({inherit:!0,matchingKeys:e});return f.Param.equals(c,f.Param.values(c,e),this.params)}},t.prototype.href=function(t,e,n){var o={lossy:!0,inherit:!0,absolute:!1,relative:this.$current};n=r.defaults(n,o),e=e||{};var a=this.router.stateRegistry.matcher.find(t,n.relative);if(!i.isDefined(a))return null;n.inherit&&(e=this.params.$inherit(e,this.$current,a));var s=a&&n.lossy?a.navigable:a;return s&&void 0!==s.url&&null!==s.url?this.router.urlRouter.href(s.url,e,{absolute:n.absolute}):null},t.prototype.defaultErrorHandler=function(t){return this._defaultErrorHandler=t||this._defaultErrorHandler},t.prototype.get=function(t,e){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)},t.prototype.lazyLoad=function(t,e){var n=this.get(t);if(!n||!n.lazyLoad)throw new Error('Can not lazy load '+t);var r=this.getCurrentPath(),i=s.PathUtils.makeTargetState(r);return e=e||this.router.transitionService.create(r,i),h.lazyLoadState(e,n)},t}();e.StateService=g},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(48),i=n(49),o=n(32),a=n(51),s=n(45),c=n(46),u=n(52),l=n(0),d=n(1),f=n(53),m=n(6),p=0,h=function(){function t(t,e){void 0===t&&(t=f.UrlService.locationServiceStub),void 0===e&&(e=f.UrlService.locationConfigStub),this.locationService=t,this.locationConfig=e,this.$id=p++,this._disposed=!1,this._disposables=[],this.trace=m.trace,this.viewService=new a.ViewService,this.transitionService=new o.TransitionService(this),this.globals=new u.UIRouterGlobals,this.urlMatcherFactory=new r.UrlMatcherFactory,this.urlRouter=new i.UrlRouter(this),this.stateRegistry=new s.StateRegistry(this),this.stateService=new c.StateService(this),this.urlService=new f.UrlService(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlRouter),this.disposable(t),this.disposable(e)}return t.prototype.disposable=function(t){this._disposables.push(t)},t.prototype.dispose=function(t){var e=this;if(t&&d.isFunction(t.dispose))return void t.dispose(this);this._disposed=!0,this._disposables.slice().forEach(function(t){try{'function'==typeof t.dispose&&t.dispose(e),l.removeFrom(e._disposables,t)}catch(t){}})},t.prototype.plugin=function(t,e){void 0===e&&(e={});var n=new t(this,e);if(!n.name)throw new Error('Required property `name` missing on plugin: '+n);return this._disposables.push(n),this._plugins[n.name]=n},t.prototype.getPlugin=function(t){return t?this._plugins[t]:l.values(this._plugins)},t}();e.UIRouter=h},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(1),o=n(22),a=n(10),s=n(40),c=function(){function t(){var t=this;this.paramTypes=new s.ParamTypes,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this._getConfig=function(e){return r.extend({strict:t._isStrictMode,caseInsensitive:t._isCaseInsensitive},e)},this.paramFactory={fromConfig:function(e,n,r){return new a.Param(e,n,r,a.DefType.CONFIG,t)},fromPath:function(e,n,r){return new a.Param(e,n,r,a.DefType.PATH,t)},fromSearch:function(e,n,r){return new a.Param(e,n,r,a.DefType.SEARCH,t)}},r.extend(this,{UrlMatcher:o.UrlMatcher,Param:a.Param})}return t.prototype.caseInsensitive=function(t){return this._isCaseInsensitive=i.isDefined(t)?t:this._isCaseInsensitive},t.prototype.strictMode=function(t){return this._isStrictMode=i.isDefined(t)?t:this._isStrictMode},t.prototype.defaultSquashPolicy=function(t){if(i.isDefined(t)&&!0!==t&&!1!==t&&!i.isString(t))throw new Error('Invalid squash policy: '+t+'. Valid policies: false, true, arbitrary-string');return this._defaultSquashPolicy=i.isDefined(t)?t:this._defaultSquashPolicy},t.prototype.compile=function(t,e){return new o.UrlMatcher(t,this.paramTypes,this.paramFactory,this._getConfig(e))},t.prototype.isMatcher=function(t){if(!i.isObject(t))return!1;var e=!0;return r.forEach(o.UrlMatcher.prototype,function(n,r){i.isFunction(n)&&(e=e&&i.isDefined(t[r])&&i.isFunction(t[r]))}),e},t.prototype.type=function(t,e,n){var r=this.paramTypes.type(t,e,n);return i.isDefined(e)?this:r},t.prototype.$get=function(){return this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue(),this},t.prototype.dispose=function(){this.paramTypes.dispose()},t}();e.UrlMatcherFactory=c},function(t,e,n){'use strict';function r(t,e,n,r){return'/'===r?t:e?r.slice(0,-1)+t:n?r.slice(1)+t:t}function i(t){if(!(s.isFunction(t)||s.isString(t)||u.is(d.TargetState)(t)||d.TargetState.isDef(t)))throw new Error('\'handler\' must be a string, function, TargetState, or have a state: \'newtarget\' property');return s.isFunction(t)?t:u.val(t)}Object.defineProperty(e,'__esModule',{value:!0});var o,a=n(0),s=n(1),c=n(22),u=n(2),l=n(50),d=n(7),f=u.prop('urlMatcher');o=a.composeSort(a.sortBy(u.pipe(u.prop('priority'),function(t){return-t})),a.sortBy(u.pipe(u.prop('type'),function(t){return{STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1}[t]})),function(t,e){return f(t)&&f(e)?c.UrlMatcher.compare(f(t),f(e)):0},a.sortBy(u.prop('$id'),a.inArray(['REGEXP','RAW','OTHER'])));var m=function(){function t(e){this._sortFn=o,this._rules=[],this.interceptDeferred=!1,this._id=0,this._sorted=!1,this._router=e,this.urlRuleFactory=new l.UrlRuleFactory(e),a.createProxyFunctions(u.val(t.prototype),this,u.val(this))}return t.prototype.dispose=function(){this.listen(!1),this._rules=[],delete this._otherwiseFn},t.prototype.sort=function(t){this._rules.sort(this._sortFn=t||this._sortFn),this._sorted=!0},t.prototype.ensureSorted=function(){this._sorted||this.sort()},t.prototype.match=function(t){var e=this;this.ensureSorted(),t=a.extend({path:'',search:{},hash:''},t);var n=this.rules();this._otherwiseFn&&n.push(this._otherwiseFn);for(var r,i=0;i<n.length&&(!r||0===this._sortFn(n[i],r.rule));i++){var o=function(n){var r=n.match(t,e._router);return r&&{match:r,rule:n,weight:n.matchPriority(r)}}(n[i]);r=!r||o&&o.weight>r.weight?o:r}return r},t.prototype.sync=function(t){if(!t||!t.defaultPrevented){var e=this._router,n=e.urlService,r=e.stateService,i={path:n.path(),search:n.search(),hash:n.hash()},o=this.match(i);u.pattern([[s.isString,function(t){return n.url(t,!0)}],[d.TargetState.isDef,function(t){return r.go(t.state,t.params,t.options)}],[u.is(d.TargetState),function(t){return r.go(t.state(),t.params(),t.options())}]])(o&&o.rule.handler(o.match,i,e))}},t.prototype.listen=function(t){var e=this;if(!1!==t)return this._stopFn=this._stopFn||this._router.urlService.onChange(function(t){return e.sync(t)});this._stopFn&&this._stopFn(),delete this._stopFn},t.prototype.update=function(t){var e=this._router.locationService;if(t)return void(this.location=e.path());e.path()!==this.location&&e.url(this.location,!0)},t.prototype.push=function(t,e,n){var r=n&&!!n.replace;this._router.urlService.url(t.format(e||{}),r)},t.prototype.href=function(t,e,n){var i=t.format(e);if(null==i)return null;n=n||{absolute:!1};var o=this._router.urlService.config,a=o.html5Mode();if(a||null===i||(i='#'+o.hashPrefix()+i),i=r(i,a,n.absolute,o.baseHref()),!n.absolute||!i)return i;var s=!a&&i?'/':'',c=o.port();return c=80===c||443===c?'':':'+c,[o.protocol(),'://',o.host(),c,s,i].join('')},t.prototype.rule=function(t){var e=this;if(!l.UrlRuleFactory.isUrlRule(t))throw new Error('invalid rule');return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,function(){return e.removeRule(t)}},t.prototype.removeRule=function(t){a.removeFrom(this._rules,t)},t.prototype.rules=function(){return this.ensureSorted(),this._rules.slice()},t.prototype.otherwise=function(t){var e=i(t);this._otherwiseFn=this.urlRuleFactory.create(u.val(!0),e),this._sorted=!1},t.prototype.initial=function(t){var e=i(t),n=function(t,e){return 0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)};this.rule(this.urlRuleFactory.create(n,e))},t.prototype.when=function(t,e,n){var r=this.urlRuleFactory.create(t,e);return s.isDefined(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r},t.prototype.deferIntercept=function(t){void 0===t&&(t=!0),this.interceptDeferred=t},t}();e.UrlRouter=m},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(22),i=n(1),o=n(0),a=n(2),s=function(){function t(t){this.router=t}return t.prototype.compile=function(t){return this.router.urlMatcherFactory.compile(t)},t.prototype.create=function(t,e){var n=this,o=a.pattern([[i.isString,function(t){return o(n.compile(t))}],[a.is(r.UrlMatcher),function(t){return n.fromUrlMatcher(t,e)}],[i.isState,function(t){return n.fromState(t,n.router)}],[a.is(RegExp),function(t){return n.fromRegExp(t,e)}],[i.isFunction,function(t){return new c(t,e)}]]),s=o(t);if(!s)throw new Error('invalid \'what\' in when()');return s},t.prototype.fromUrlMatcher=function(t,e){function n(e){var n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}function s(e){var n=t.parameters().filter(function(t){return t.isOptional});return n.length?n.filter(function(t){return e[t.id]}).length/n.length:1e-6}var u=e;i.isString(e)&&(e=this.router.urlMatcherFactory.compile(e)),a.is(r.UrlMatcher)(e)&&(u=function(t){return e.format(t)});var l={urlMatcher:t,matchPriority:s,type:'URLMATCHER'};return o.extend(new c(n,u),l)},t.prototype.fromState=function(t,e){var n=function(n){var r=e.stateService,i=e.globals;r.href(t,n)!==r.href(i.current,i.params)&&r.transitionTo(t,n,{inherit:!0,source:'url'})},r={state:t,type:'STATE'};return o.extend(this.fromUrlMatcher(t.url,n),r)},t.prototype.fromRegExp=function(t,e){if(t.global||t.sticky)throw new Error('Rule RegExp must not be global or sticky');var n=function(t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t['$'===n?0:Number(n)]})},r=i.isString(e)?n:e,a=function(e){return t.exec(e.path)},s={regexp:t,type:'REGEXP'};return o.extend(new c(a,r),s)},t.isUrlRule=function(t){return t&&['type','match','handler'].every(function(e){return i.isDefined(t[e])})},t}();e.UrlRuleFactory=s;var c=function(){function t(t,e){var n=this;this.match=t,this.type='RAW',this.matchPriority=function(t){return 0-n.$id},this.handler=e||o.identity}return t}();e.BaseUrlRule=c},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(2),o=n(1),a=n(6),s=function(){function t(){var t=this;this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIViews:function(){return t._uiViews},_activeViewConfigs:function(){return t._viewConfigs}}}return t.prototype._rootViewContext=function(t){return this._rootContext=t||this._rootContext},t.prototype._viewConfigFactory=function(t,e){this._viewConfigFactories[t]=e},t.prototype.createViewConfig=function(t,e){var n=this._viewConfigFactories[e.$type];if(!n)throw new Error('ViewService: No view config factory registered for type '+e.$type);var r=n(t,e);return o.isArray(r)?r:[r]},t.prototype.deactivateViewConfig=function(t){a.trace.traceViewServiceEvent('<- Removing',t),r.removeFrom(this._viewConfigs,t)},t.prototype.activateViewConfig=function(t){a.trace.traceViewServiceEvent('-> Registering',t),this._viewConfigs.push(t)},t.prototype.sync=function(){function e(t){var e=function(t){return t&&t.parent?e(t.parent)+1:1};return 1e4*t.fqn.split('.').length+e(t.creationContext)}function n(t){for(var e=t.viewDecl.$context,n=0;++n&&e.parent;)e=e.parent;return n}var o=this,s=this._uiViews.map(function(t){return[t.fqn,t]}).reduce(r.applyPairs,{}),c=i.curry(function(t,e,n,r){return e*(t(n)-t(r))}),u=function(e){var r=o._viewConfigs.filter(t.matches(s,e));return r.length>1&&r.sort(c(n,-1)),[e,r[0]]},l=function(t){var e=t[0],n=t[1];-1!==o._uiViews.indexOf(e)&&e.configUpdated(n)},d=this._uiViews.sort(c(e,1)).map(u);a.trace.traceViewSync(d),d.forEach(l)},t.prototype.registerUIView=function(t){a.trace.traceViewServiceUIViewEvent('-> Registering',t);var e=this._uiViews,n=function(e){return e.fqn===t.fqn&&e.$type===t.$type};return e.filter(n).length&&a.trace.traceViewServiceUIViewEvent('!!!! duplicate uiView named:',t),e.push(t),this.sync(),function(){if(-1===e.indexOf(t))return void a.trace.traceViewServiceUIViewEvent('Tried removing non-registered uiView',t);a.trace.traceViewServiceUIViewEvent('<- Deregistering',t),r.removeFrom(e)(t)}},t.prototype.available=function(){return this._uiViews.map(i.prop('fqn'))},t.prototype.active=function(){return this._uiViews.filter(i.prop('$config')).map(i.prop('name'))},t.normalizeUIViewTarget=function(t,e){void 0===e&&(e='');var n=e.split('@'),r=n[0]||'$default',i=o.isString(n[1])?n[1]:'^',a=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);(a&&(i=a[1],r=a[2]),'!'===r.charAt(0)&&(r=r.substr(1),i=''),/^(\^(?:\.\^)*)$/.exec(i))?i=i.split('.').reduce(function(t,e){return t.parent},t).name:'.'===i&&(i=t.name);return{uiViewName:r,uiViewContextAnchor:i}},t.matches=function(t,e){return function(n){if(e.$type!==n.viewDecl.$type)return!1;var i=n.viewDecl,o=i.$uiViewName.split('.'),a=e.fqn.split('.');if(!r.equals(o,a.slice(0-o.length)))return!1;var s=1-o.length||void 0,c=a.slice(0,s).join('.'),u=t[c].creationContext;return i.$uiViewContextAnchor===(u&&u.name)}},t}();e.ViewService=s},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(41),i=n(28),o=function(){function t(){this.params=new r.StateParams,this.lastStartedTransitionId=-1,this.transitionHistory=new i.Queue([],1),this.successfulTransitions=new i.Queue([],1)}return t.prototype.dispose=function(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null},t}();e.UIRouterGlobals=o},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(3),i=n(0),o=function(t){return t.reduce(function(t,e){return t[e]=r.notImplemented(e),t},{dispose:i.noop})},a=['url','path','search','hash','onChange'],s=['port','protocol','host','baseHref','html5Mode','hashPrefix'],c=['type','caseInsensitive','strictMode','defaultSquashPolicy'],u=['sort','when','initial','otherwise','rules','rule','removeRule'],l=['deferIntercept','listen','sync','match'],d=function(){function t(t,e){void 0===e&&(e=!0),this.router=t,this.rules={},this.config={};var n=function(){return t.locationService};i.createProxyFunctions(n,this,n,a,e);var r=function(){return t.locationConfig};i.createProxyFunctions(r,this.config,r,s,e);var o=function(){return t.urlMatcherFactory};i.createProxyFunctions(o,this.config,o,c);var d=function(){return t.urlRouter};i.createProxyFunctions(d,this.rules,d,u),i.createProxyFunctions(d,this,d,l)}return t.prototype.url=function(t,e,n){},t.prototype.path=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.onChange=function(t){},t.prototype.parts=function(){return{path:this.path(),search:this.search(),hash:this.hash()}},t.prototype.dispose=function(){},t.prototype.sync=function(t){},t.prototype.listen=function(t){},t.prototype.deferIntercept=function(t){},t.prototype.match=function(t){},t.locationServiceStub=o(a),t.locationConfigStub=o(s),t}();e.UrlService=d},function(t,e,n){'use strict';function r(t,e){function n(e){return e&&Array.isArray(e.states)&&e.states.forEach(function(e){return t.router.stateRegistry.register(e)}),e}var r=e.$$state().lazyLoad,o=r._promise;if(!o){var a=function(t){return delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t},s=function(t){return delete r._promise,i.services.$q.reject(t)};o=r._promise=i.services.$q.when(r(t,e)).then(n).then(a,s)}return o}Object.defineProperty(e,'__esModule',{value:!0});var i=n(3),o=function(t){function e(){if('url'!==t.originalTransition().options().source){var e=t.targetState();return n.stateService.target(e.identifier(),e.params(),e.options())}var r=n.urlService,i=r.match(r.parts()),o=i&&i.rule;if(o&&'STATE'===o.type){var a=o.state,s=i.match;return n.stateService.target(a,s,t.options())}n.urlService.sync()}var n=t.router,o=t.entering().filter(function(t){return!!t.$$state().lazyLoad}).map(function(e){return r(t,e)});return i.services.$q.all(o).then(e)};e.registerLazyLoadHook=function(t){return t.onBefore({entering:function(t){return!!t.lazyLoad}},o)},e.lazyLoadState=r},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(14),i=function(){function t(t,e,n,i,o,a,s,c){void 0===o&&(o=!1),void 0===a&&(a=r.TransitionHook.HANDLE_RESULT),void 0===s&&(s=r.TransitionHook.REJECT_ERROR),void 0===c&&(c=!1),this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=i,this.reverseSort=o,this.getResultHandler=a,this.getErrorHandler=s,this.synchronous=c}return t}();e.TransitionEventType=i},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(12);e.$q={when:function(t){return new Promise(function(e,n){return e(t)})},reject:function(t){return new Promise(function(e,n){n(t)})},defer:function(){var t={};return t.promise=new Promise(function(e,n){t.resolve=e,t.reject=n}),t},all:function(t){if(r.isArray(t))return Promise.all(t);if(r.isObject(t)){var n=Object.keys(t).map(function(e){return t[e].then(function(t){return{key:e,val:t}})});return e.$q.all(n).then(function(t){return t.reduce(function(t,e){return t[e.key]=e.val,t},{})})}}}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(12),i={},o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,a=/([^\s,]+)/g;e.$injector={get:function(t){return i[t]},has:function(t){return null!=e.$injector.get(t)},invoke:function(t,n,o){var a=r.extend({},i,o||{}),s=e.$injector.annotate(t),c=r.assertPredicate(function(t){return a.hasOwnProperty(t)},function(t){return'DI can\'t find injectable: \''+t+'\''}),u=s.filter(c).map(function(t){return a[t]});return r.isFunction(t)?t.apply(n,u):t.slice(-1)[0].apply(n,u)},annotate:function(t){if(!r.isInjectable(t))throw new Error('Not an injectable function: '+t);if(t&&t.$inject)return t.$inject;if(r.isArray(t))return t.slice(0,-1);var e=t.toString().replace(o,'');return e.slice(e.indexOf('(')+1,e.indexOf(')')).match(a)||[]}}},function(t,e,n){'use strict';var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,'__esModule',{value:!0});var i=n(16),o=n(23),a=function(t){function e(e){var n=t.call(this,e,!1)||this;return window.addEventListener('hashchange',n._listener,!1),n}return r(e,t),e.prototype._get=function(){return i.trimHashVal(this._location.hash)},e.prototype._set=function(t,e,n,r){this._location.hash=n},e.prototype.dispose=function(e){t.prototype.dispose.call(this,e),window.removeEventListener('hashchange',this._listener)},e}(o.BaseLocationServices);e.HashLocationService=a},function(t,e,n){'use strict';var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,'__esModule',{value:!0});var i=n(23),o=function(t){function e(e){return t.call(this,e,!0)||this}return r(e,t),e.prototype._get=function(){return this._url},e.prototype._set=function(t,e,n,r){this._url=n},e}(i.BaseLocationServices);e.MemoryLocationService=o},function(t,e,n){'use strict';var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,'__esModule',{value:!0});var i=n(16),o=n(23),a=function(t){function e(e){var n=t.call(this,e,!0)||this;return n._config=e.urlService.config,window.addEventListener('popstate',n._listener,!1),n}return r(e,t),e.prototype._get=function(){var t=this._location,e=t.pathname,n=t.hash,r=t.search;return r=i.splitQuery(r)[1],n=i.splitHash(n)[1],e+(r?'?'+r:'')+(n?'$'+r:'')},e.prototype._set=function(t,e,n,r){var i=this,o=i._config,a=i._history,s=o.baseHref()+n;r?a.replaceState(t,e,s):a.pushState(t,e,s)},e.prototype.dispose=function(e){t.prototype.dispose.call(this,e),window.removeEventListener('popstate',this._listener)},e}(o.BaseLocationServices);e.PushStateLocationService=a},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(1),i=n(0),o=function(){function t(){var t=this;this._baseHref='',this._port=80,this._protocol='http',this._host='localhost',this._hashPrefix='',this.port=function(){return t._port},this.protocol=function(){return t._protocol},this.host=function(){return t._host},this.baseHref=function(){return t._baseHref},this.html5Mode=function(){return!1},this.hashPrefix=function(e){return r.isDefined(e)?t._hashPrefix=e:t._hashPrefix},this.dispose=i.noop}return t}();e.MemoryLocationConfig=o},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(1),i=function(){function t(t,e){void 0===e&&(e=!1),this._isHtml5=e,this._baseHref=void 0,this._hashPrefix=''}return t.prototype.port=function(){return location.port?Number(location.port):'https'===this.protocol()?443:80},t.prototype.protocol=function(){return location.protocol.replace(/:/g,'')},t.prototype.host=function(){return location.host},t.prototype.html5Mode=function(){return this._isHtml5},t.prototype.hashPrefix=function(t){return r.isDefined(t)?this._hashPrefix=t:this._hashPrefix},t.prototype.baseHref=function(t){return r.isDefined(t)?this._baseHref=t:this._baseHref||this.applyDocumentBaseHref()},t.prototype.applyDocumentBaseHref=function(){var t=document.getElementsByTagName('base');return this._baseHref=t.length?t[0].href.substr(location.origin.length):''},t.prototype.dispose=function(){},t}();e.BrowserLocationConfig=i},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(4),i=function(){function t(e,n){this.stateRegistry=e,this.stateService=n,r.createProxyFunctions(r.val(t.prototype),this,r.val(this))}return t.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},t.prototype.state=function(t,e){return r.isObject(t)?e=t:e.name=t,this.stateRegistry.register(e),this},t.prototype.onInvalid=function(t){return this.stateService.onInvalid(t)},t}();e.StateProvider=i},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(4),i=n(4),o=function(){function t(t){this._router=t,this._urlRouter=t.urlRouter}return t.prototype.$get=function(){var t=this._urlRouter;return t.update(!0),t.interceptDeferred||t.listen(),t},t.prototype.rule=function(t){var e=this;if(!i.isFunction(t))throw new Error('\'rule\' must be a function');var n=function(){return t(i.services.$injector,e._router.locationService)},o=new r.BaseUrlRule(n,i.identity);return this._urlRouter.rule(o),this},t.prototype.otherwise=function(t){var e=this,n=this._urlRouter;if(i.isString(t))n.otherwise(t);else{if(!i.isFunction(t))throw new Error('\'rule\' must be a string or function');n.otherwise(function(){return t(i.services.$injector,e._router.locationService)})}return this},t.prototype.when=function(e,n){return(i.isArray(n)||i.isFunction(n))&&(n=t.injectableHandler(this._router,n)),this._urlRouter.when(e,n),this},t.injectableHandler=function(t,e){return function(n){return i.services.$injector.invoke(e,null,{$match:n,$stateParams:t.globals.params})}},t.prototype.deferIntercept=function(t){this._urlRouter.deferIntercept(t)},t}();e.UrlRouterProvider=o},function(t,e,n){var r,i;/*!
 * angular-translate - v2.15.2 - 2017-06-22
 * 
 * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
 */
!function(n,o){r=[],void 0!==(i=function(){return o()}.apply(e,r))&&(t.exports=i)}(0,function(){function t(t){'use strict';var e=t.storageKey(),n=t.storage(),r=function(){var r=t.preferredLanguage();angular.isString(r)?t.use(r):n.put(e,t.use())};r.displayName='fallbackFromIncorrectStorageValue',n?n.get(e)?t.use(n.get(e)).catch(r):r():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function e(){'use strict';var t,e,n,r=null,i=!1,o=!1;n={sanitize:function(t,e){return'text'===e&&(t=s(t)),t},escape:function(t,e){return'text'===e&&(t=a(t)),t},sanitizeParameters:function(t,e){return'params'===e&&(t=u(t,s)),t},escapeParameters:function(t,e){return'params'===e&&(t=u(t,a)),t},sce:function(t,e,n){return'text'===e?t=c(t):'params'===e&&'filter'!==n&&(t=u(t,a)),t},sceParameters:function(t,e){return'params'===e&&(t=u(t,c)),t}},n.escaped=n.escapeParameters,this.addStrategy=function(t,e){return n[t]=e,this},this.removeStrategy=function(t){return delete n[t],this},this.useStrategy=function(t){return i=!0,r=t,this},this.$get=['$injector','$log',function(a,s){var c={},u=function(t,e,r,i){return angular.forEach(i,function(i){if(angular.isFunction(i))t=i(t,e,r);else if(angular.isFunction(n[i]))t=n[i](t,e,r);else{if(!angular.isString(n[i]))throw new Error('pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: \''+i+'\'');if(!c[n[i]])try{c[n[i]]=a.get(n[i])}catch(t){throw c[n[i]]=function(){},new Error('pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: \''+i+'\'')}t=c[n[i]](t,e,r)}}),t},l=function(){i||o||(s.warn('pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details.'),o=!0)};return a.has('$sanitize')&&(t=a.get('$sanitize')),a.has('$sce')&&(e=a.get('$sce')),{useStrategy:function(t){return function(e){t.useStrategy(e)}}(this),sanitize:function(t,e,n,i){if(r||l(),n||null===n||(n=r),!n)return t;i||(i='service');var o=angular.isArray(n)?n:[n];return u(t,e,i,o)}}}];var a=function(t){var e=angular.element('<div></div>');return e.text(t),e.html()},s=function(e){if(!t)throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as \'escape\'.');return t(e)},c=function(t){if(!e)throw new Error('pascalprecht.translate.$translateSanitization: Error cannot find $sce service.');return e.trustAsHtml(t)},u=function(t,e,n){if(angular.isDate(t))return t;if(angular.isObject(t)){var r=angular.isArray(t)?[]:{};if(n){if(n.indexOf(t)>-1)throw new Error('pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object')}else n=[];return n.push(t),angular.forEach(t,function(t,i){angular.isFunction(t)||(r[i]=u(t,e,n))}),n.splice(-1,1),r}return angular.isNumber(t)?t:!0===t||!1===t?t:angular.isUndefined(t)||null===t?t:e(t)}}function n(t,e,n,r){'use strict';var i,o,a,s,c,u,l,d,f,m,p,h,v,g,$,b,y={},E=[],w=t,C=[],_='translate-cloak',x=!1,M=!1,A='.',T=!1,k=!1,S=0,O=!0,N='default',I={default:function(t){return(t||'').split('-').join('_')},java:function(t){var e=(t||'').split('-').join('_'),n=e.split('_');return n.length>1?n[0].toLowerCase()+'_'+n[1].toUpperCase():e},bcp47:function(t){var e=(t||'').split('_').join('-'),n=e.split('-');return n.length>1?n[0].toLowerCase()+'-'+n[1].toUpperCase():e},'iso639-1':function(t){return(t||'').split('_').join('-').split('-')[0].toLowerCase()}},D=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var t,n,i=e.$get().navigator,o=['language','browserLanguage','systemLanguage','userLanguage'];if(angular.isArray(i.languages))for(t=0;t<i.languages.length;t++)if((n=i.languages[t])&&n.length)return n;for(t=0;t<o.length;t++)if((n=i[o[t]])&&n.length)return n;return null};D.displayName='angular-translate/service: getFirstBrowserLanguage';var P=function(){var t=D()||'';return I[N]&&(t=I[N](t)),t};P.displayName='angular-translate/service: getLocale';var R=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},H=function(){return this.toString().replace(/^\s+|\s+$/g,'')},j=function(t){if(t){for(var e=[],n=angular.lowercase(t),r=0,i=E.length;r<i;r++)e.push(angular.lowercase(E[r]));if(R(e,n)>-1)return t;if(o){var a;for(var s in o)if(o.hasOwnProperty(s)){var c=!1,u=Object.prototype.hasOwnProperty.call(o,s)&&angular.lowercase(s)===angular.lowercase(t);if('*'===s.slice(-1)&&(c=s.slice(0,-1)===t.slice(0,s.length-1)),(u||c)&&(a=o[s],R(e,angular.lowercase(a))>-1))return a}}var l=t.split('_');return l.length>1&&R(e,angular.lowercase(l[0]))>-1?l[0]:void 0}},L=function(t,e){if(!t&&!e)return y;if(t&&!e){if(angular.isString(t))return y[t]}else angular.isObject(y[t])||(y[t]={}),angular.extend(y[t],F(e));return this};this.translations=L,this.cloakClassName=function(t){return t?(_=t,this):_},this.nestedObjectDelimeter=function(t){return t?(A=t,this):A};var F=function(t,e,n,r){var i,o,a,s;e||(e=[]),n||(n={});for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s=t[i],angular.isObject(s)?F(s,e.concat(i),n,i):(o=e.length?''+e.join(A)+A+i:i,e.length&&i===r&&(a=''+e.join(A),n[a]='@:'+o),n[o]=s));return n};F.displayName='flatObject',this.addInterpolation=function(t){return C.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation('$translateMessageFormatInterpolation')},this.useInterpolation=function(t){return m=t,this},this.useSanitizeValueStrategy=function(t){return n.useStrategy(t),this},this.preferredLanguage=function(t){return t?(V(t),this):i};var V=function(t){return t&&(i=t),i};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(v=t,this):v},this.translationNotFoundIndicatorRight=function(t){return t?(g=t,this):g},this.fallbackLanguage=function(t){return U(t),this};var U=function(t){return t?(angular.isString(t)?(s=!0,a=[t]):angular.isArray(t)&&(s=!1,a=t),angular.isString(i)&&R(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(t){if(t){if(!y[t]&&!p)throw new Error('$translateProvider couldn\'t find translationTable for langKey: \''+t+'\'');return c=t,this}return c},this.resolveClientLocale=function(){return P()};var q=function(t){return t?(w=t,this):d?d+w:w};this.storageKey=q,this.useUrlLoader=function(t,e){return this.useLoader('$translateUrlLoader',angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader('$translateStaticFilesLoader',t)},this.useLoader=function(t,e){return p=t,h=e||{},this},this.useLocalStorage=function(){return this.useStorage('$translateLocalStorage')},this.useCookieStorage=function(){return this.useStorage('$translateCookieStorage')},this.useStorage=function(t){return l=t,this},this.storagePrefix=function(t){return t?(d=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler('$translateMissingTranslationHandlerLog')},this.useMissingTranslationHandler=function(t){return f=t,this},this.usePostCompiling=function(t){return x=!!t,this},this.forceAsyncReload=function(t){return M=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},N=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():P();return i=E.length?j(e)||e:e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(E=t,e&&(o=e),this):E},this.useLoaderCache=function(t){return!1===t?$=void 0:!0===t?$=!0:void 0===t?$='$translationCache':t&&($=t),this},this.directivePriority=function(t){return void 0===t?S:(S=t,this)},this.statefulFilter=function(t){return void 0===t?O:(O=t,this)},this.postProcess=function(t){return b=t||void 0,this},this.keepContent=function(t){return k=!!t,this},this.$get=['$log','$injector','$rootScope','$q',function(t,e,n,r){var o,d,N,I=e.get(m||'$translateDefaultInterpolation'),D=!1,B={},z={},W=function(t,e,n,s,u){!c&&i&&(c=i);var f=u&&u!==c?j(u)||u:c;if(u&&ut(u),angular.isArray(t)){return function(t){for(var i={},o=[],a=0,c=t.length;a<c;a++)o.push(function(t){var o=r.defer(),a=function(e){i[t]=e,o.resolve([t,e])};return W(t,e,n,s,u).then(a,a),o.promise}(t[a]));return r.all(o).then(function(){return i})}(t)}var m=r.defer();t&&(t=H.apply(t));var p=function(){var t=i?z[i]:z[f];if(d=0,l&&!t){var e=o.get(w);if(t=z[e],a&&a.length){var n=R(a,e);d=0===n?1:0,R(a,i)<0&&a.push(i)}}return t}();if(p){var h=function(){u||(f=c),ot(t,e,n,s,f).then(m.resolve,m.reject)};h.displayName='promiseResolved',p.finally(h).catch(angular.noop)}else ot(t,e,n,s,f).then(m.resolve,m.reject);return m.promise},Y=function(t){return v&&(t=[v,t].join(' ')),g&&(t=[t,g].join(' ')),t},K=function(t){c=t,l&&o.put(W.storageKey(),c),n.$emit('$translateChangeSuccess',{language:t}),I.setLocale(c);var e=function(t,e){B[e].setLocale(c)};e.displayName='eachInterpolatorLocaleSetter',angular.forEach(B,e),n.$emit('$translateChangeEnd',{language:t})},G=function(t){if(!t)throw'No language key specified for loading.';var i=r.defer();n.$emit('$translateLoadingStart',{language:t}),D=!0;var o=$;'string'==typeof o&&(o=e.get(o));var a=angular.extend({},h,{key:t,$http:angular.extend({},{cache:o},h.$http)}),s=function(e){var r={};n.$emit('$translateLoadingSuccess',{language:t}),angular.isArray(e)?angular.forEach(e,function(t){angular.extend(r,F(t))}):angular.extend(r,F(e)),D=!1,i.resolve({key:t,table:r}),n.$emit('$translateLoadingEnd',{language:t})};s.displayName='onLoaderSuccess';var c=function(t){n.$emit('$translateLoadingError',{language:t}),i.reject(t),n.$emit('$translateLoadingEnd',{language:t})};return c.displayName='onLoaderError',e.get(p)(a).then(s,c),i.promise};if(l&&(o=e.get(l),!o.get||!o.put))throw new Error('Couldn\'t use storage \''+l+'\', missing get() or put() method!');if(C.length){var Z=function(t){var n=e.get(t);n.setLocale(i||c),B[n.getInterpolationIdentifier()]=n};Z.displayName='interpolationFactoryAdder',angular.forEach(C,Z)}var X=function(t){var e=r.defer();if(Object.prototype.hasOwnProperty.call(y,t))e.resolve(y[t]);else if(z[t]){var n=function(t){L(t.key,t.table),e.resolve(t.table)};n.displayName='translationTableResolver',z[t].then(n,e.reject)}else e.reject();return e.promise},Q=function(t,e,n,i,o){var a=r.defer(),s=function(r){if(Object.prototype.hasOwnProperty.call(r,e)&&null!==r[e]){i.setLocale(t);var s=r[e];if('@:'===s.substr(0,2))Q(t,s.substr(2),n,i,o).then(a.resolve,a.reject);else{var u=i.interpolate(r[e],n,'service',o,e);u=ct(e,r[e],u,n,t),a.resolve(u)}i.setLocale(c)}else a.reject()};return s.displayName='fallbackTranslationResolver',X(t).then(s,a.reject),a.promise},J=function(t,e,n,r,i){var o,a=y[t];if(a&&Object.prototype.hasOwnProperty.call(a,e)&&null!==a[e]){if(r.setLocale(t),o=r.interpolate(a[e],n,'filter',i,e),o=ct(e,a[e],o,n,t,i),!angular.isString(o)&&angular.isFunction(o.$$unwrapTrustedValue)){var s=o.$$unwrapTrustedValue();if('@:'===s.substr(0,2))return J(t,s.substr(2),n,r,i)}else if('@:'===o.substr(0,2))return J(t,o.substr(2),n,r,i);r.setLocale(c)}return o},tt=function(t,n,r,i){return f?e.get(f)(t,c,n,r,i):t},et=function(t,e,n,i,o,s){var c=r.defer();if(t<a.length){var u=a[t];Q(u,e,n,i,s).then(function(t){c.resolve(t)},function(){return et(t+1,e,n,i,o,s).then(c.resolve,c.reject)})}else if(o)c.resolve(o);else{var l=tt(e,n,o);f&&l?c.resolve(l):c.reject(Y(e))}return c.promise},nt=function(t,e,n,r,i){var o;if(t<a.length){var s=a[t];o=J(s,e,n,r,i),o||''===o||(o=nt(t+1,e,n,r))}return o},rt=function(t,e,n,r,i){return et(N>0?N:d,t,e,n,r,i)},it=function(t,e,n,r){return nt(N>0?N:d,t,e,n,r)},ot=function(t,e,n,i,o,s){var c=r.defer(),u=o?y[o]:y,l=n?B[n]:I;if(u&&Object.prototype.hasOwnProperty.call(u,t)&&null!==u[t]){var d=u[t];if('@:'===d.substr(0,2))W(d.substr(2),e,n,i,o).then(c.resolve,c.reject);else{var m=l.interpolate(d,e,'service',s,t);m=ct(t,d,m,e,o),c.resolve(m)}}else{var p;f&&!D&&(p=tt(t,e,i)),o&&a&&a.length?rt(t,e,l,i,s).then(function(t){c.resolve(t)},function(t){c.reject(Y(t))}):f&&!D&&p?i?c.resolve(i):c.resolve(p):i?c.resolve(i):c.reject(Y(t))}return c.promise},at=function(t,e,n,r,i){var o,s=r?y[r]:y,c=I;if(B&&Object.prototype.hasOwnProperty.call(B,n)&&(c=B[n]),s&&Object.prototype.hasOwnProperty.call(s,t)&&null!==s[t]){var u=s[t];'@:'===u.substr(0,2)?o=at(u.substr(2),e,n,r,i):(o=c.interpolate(u,e,'filter',i,t),o=ct(t,u,o,e,r,i))}else{var l;f&&!D&&(l=tt(t,e,i)),r&&a&&a.length?(d=0,o=it(t,e,c,i)):o=f&&!D&&l?l:Y(t)}return o},st=function(t){u===t&&(u=void 0),z[t]=void 0},ct=function(t,n,r,i,o,a){var s=b;return s&&('string'==typeof s&&(s=e.get(s)),s)?s(t,n,r,i,o,a):r},ut=function(t){y[t]||!p||z[t]||(z[t]=G(t).then(function(t){return L(t.key,t.table),t}))};W.preferredLanguage=function(t){return t&&V(t),i},W.cloakClassName=function(){return _},W.nestedObjectDelimeter=function(){return A},W.fallbackLanguage=function(t){if(void 0!==t&&null!==t){if(U(t),p&&a&&a.length)for(var e=0,n=a.length;e<n;e++)z[a[e]]||(z[a[e]]=G(a[e]));W.use(W.use())}return s?a[0]:a},W.useFallbackLanguage=function(t){if(void 0!==t&&null!==t)if(t){var e=R(a,t);e>-1&&(N=e)}else N=0},W.proposedLanguage=function(){return u},W.storage=function(){return o},W.negotiateLocale=j,W.use=function(t){if(!t)return c;var e=r.defer();e.promise.then(null,angular.noop),n.$emit('$translateChangeStart',{language:t});var i=j(t);return E.length>0&&!i?r.reject(t):(i&&(t=i),u=t,!M&&y[t]||!p||z[t]?z[t]?z[t].then(function(t){return u===t.key&&K(t.key),e.resolve(t.key),t},function(t){return!c&&a&&a.length>0&&a[0]!==t?W.use(a[0]).then(e.resolve,e.reject):e.reject(t)}):(e.resolve(t),K(t)):(z[t]=G(t).then(function(n){return L(n.key,n.table),e.resolve(n.key),u===t&&K(n.key),n},function(t){return n.$emit('$translateChangeError',{language:t}),e.reject(t),n.$emit('$translateChangeEnd',{language:t}),r.reject(t)}),z[t].finally(function(){st(t)}).catch(angular.noop)),e.promise)},W.resolveClientLocale=function(){return P()},W.storageKey=function(){return q()},W.isPostCompilingEnabled=function(){return x},W.isForceAsyncReloadEnabled=function(){return M},W.isKeepContent=function(){return k},W.refresh=function(t){function e(t){var e=G(t);return z[t]=e,e.then(function(e){y[t]={},L(t,e.table),o[t]=!0},angular.noop),e}if(!p)throw new Error('Couldn\'t refresh translation table, no loader registered!');n.$emit('$translateRefreshStart',{language:t});var i=r.defer(),o={};if(i.promise.then(function(){for(var t in y)y.hasOwnProperty(t)&&(t in o||delete y[t]);c&&K(c)},angular.noop).finally(function(){n.$emit('$translateRefreshEnd',{language:t})}),t)y[t]?e(t).then(i.resolve,i.reject):i.reject();else{var s=a&&a.slice()||[];c&&-1===s.indexOf(c)&&s.push(c),r.all(s.map(e)).then(i.resolve,i.reject)}return i.promise},W.instant=function(t,e,n,r,o){var s=r&&r!==c?j(r)||r:c;if(null===t||angular.isUndefined(t))return t;if(r&&ut(r),angular.isArray(t)){for(var u={},l=0,d=t.length;l<d;l++)u[t[l]]=W.instant(t[l],e,n,r,o);return u}if(angular.isString(t)&&t.length<1)return t;t&&(t=H.apply(t));var m,p=[];i&&p.push(i),s&&p.push(s),a&&a.length&&(p=p.concat(a));for(var h=0,$=p.length;h<$;h++){var b=p[h];if(y[b]&&void 0!==y[b][t]&&(m=at(t,e,n,s,o)),void 0!==m)break}if(!m&&''!==m)if(v||g)m=Y(t);else{m=I.interpolate(t,e,'filter',o);var E;f&&!D&&(E=tt(t,e,o)),f&&!D&&E&&(m=E)}return m},W.versionInfo=function(){return'2.15.2'},W.loaderCache=function(){return $},W.directivePriority=function(){return S},W.statefulFilter=function(){return O},W.isReady=function(){return T};var lt=r.defer();lt.promise.then(function(){T=!0}),W.onReady=function(t){var e=r.defer();return angular.isFunction(t)&&e.promise.then(t),T?e.resolve():lt.promise.then(e.resolve),e.promise},W.getAvailableLanguageKeys=function(){return E.length>0?E:null},W.getTranslationTable=function(t){return t=t||W.use(),t&&y[t]?angular.copy(y[t]):null};var dt=n.$on('$translateReady',function(){lt.resolve(),dt(),dt=null}),ft=n.$on('$translateChangeEnd',function(){lt.resolve(),ft(),ft=null});if(p){if(angular.equals(y,{})&&W.use()&&W.use(W.use()),a&&a.length)for(var mt=function(t){return L(t.key,t.table),n.$emit('$translateChangeEnd',{language:t.key}),t},pt=0,ht=a.length;pt<ht;pt++){var vt=a[pt];!M&&y[vt]||(z[vt]=G(vt).then(mt))}}else n.$emit('$translateReady',{language:W.use()});return W}]}function r(t,e){'use strict';var n,r={};return r.setLocale=function(t){n=t},r.getInterpolationIdentifier=function(){return'default'},r.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},r.interpolate=function(n,r,i,o,a){r=r||{},r=e.sanitize(r,'params',o,i);var s;return angular.isNumber(n)?s=''+n:angular.isString(n)?(s=t(n)(r),s=e.sanitize(s,'text',o,i)):s='',s},r}function i(t,e,n,r,i){'use strict';var a=function(){return this.toString().replace(/^\s+|\s+$/g,'')};return{restrict:'AE',scope:!0,priority:t.directivePriority(),compile:function(s,c){var u=c.translateValues?c.translateValues:void 0,l=c.translateInterpolation?c.translateInterpolation:void 0,d=s[0].outerHTML.match(/translate-value-+/i),f='^(.*)('+e.startSymbol()+'.*'+e.endSymbol()+')(.*)',m='^(.*)'+e.startSymbol()+'(.*)'+e.endSymbol()+'(.*)';return function(s,p,h){s.interpolateParams={},s.preText='',s.postText='',s.translateNamespace=o(s);var v={},g=function(t){if(angular.isFunction(g._unwatchOld)&&(g._unwatchOld(),g._unwatchOld=void 0),angular.equals(t,'')||!angular.isDefined(t)){var n=a.apply(p.text()),r=n.match(f);if(angular.isArray(r)){s.preText=r[1],s.postText=r[3],v.translate=e(r[2])(s.$parent);var i=n.match(m);angular.isArray(i)&&i[2]&&i[2].length&&(g._unwatchOld=s.$watch(i[2],function(t){v.translate=t,E()}))}else v.translate=n||void 0}else v.translate=t;E()};!function(t,e,n){if(e.translateValues&&angular.extend(t,r(e.translateValues)(s.$parent)),d)for(var i in n)if(Object.prototype.hasOwnProperty.call(e,i)&&'translateValue'===i.substr(0,14)&&'translateValues'!==i){var o=angular.lowercase(i.substr(14,1))+i.substr(15);t[o]=n[i]}}(s.interpolateParams,h,c);var $=!0;h.$observe('translate',function(t){void 0===t?g(''):''===t&&$||(v.translate=t,E()),$=!1});for(var b in h)h.hasOwnProperty(b)&&'translateAttr'===b.substr(0,13)&&b.length>13&&function(t){h.$observe(t,function(e){v[t]=e,E()})}(b);if(h.$observe('translateDefault',function(t){s.defaultText=t,E()}),u&&h.$observe('translateValues',function(t){t&&s.$parent.$watch(function(){angular.extend(s.interpolateParams,r(t)(s.$parent))})}),d){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&'translateValue'===y.substr(0,14)&&'translateValues'!==y&&function(t){h.$observe(t,function(e){var n=angular.lowercase(t.substr(14,1))+t.substr(15);s.interpolateParams[n]=e})}(y)}var E=function(){for(var t in v)v.hasOwnProperty(t)&&void 0!==v[t]&&w(t,v[t],s,s.interpolateParams,s.defaultText,s.translateNamespace)},w=function(e,n,r,i,o,a){n?(a&&'.'===n.charAt(0)&&(n=a+n),t(n,i,l,o,r.translateLanguage).then(function(t){C(t,r,!0,e)},function(t){C(t,r,!1,e)})):C(n,r,!1,e)},C=function(e,r,i,o){if(i||void 0!==r.defaultText&&(e=r.defaultText),'translate'===o){(i||!i&&!t.isKeepContent()&&void 0===h.translateKeepContent)&&p.empty().append(r.preText+e+r.postText);var a=t.isPostCompilingEnabled(),s=void 0!==c.translateCompile,u=s&&'false'!==c.translateCompile;(a&&!s||u)&&n(p.contents())(r)}else{var l=h.$attr[o];'data-'===l.substr(0,5)&&(l=l.substr(5)),l=l.substr(15),p.attr(l,e)}};(u||d||h.translateDefault)&&s.$watch('interpolateParams',E,!0),s.$on('translateLanguageChanged',E);var _=i.$on('$translateChangeSuccess',E);p.text().length?g(h.translate?h.translate:''):h.translate&&g(h.translate),E(),s.$on('$destroy',_)}}}}function o(t){'use strict';return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function a(t,e){'use strict';return{restrict:'A',priority:t.directivePriority(),link:function(n,r,i){var o,a,c={},u=function(){angular.forEach(o,function(e,o){e&&(c[o]=!0,n.translateNamespace&&'.'===e.charAt(0)&&(e=n.translateNamespace+e),t(e,a,i.translateInterpolation,void 0,n.translateLanguage).then(function(t){r.attr(o,t)},function(t){r.attr(o,t)}))}),angular.forEach(c,function(t,e){o[e]||(r.removeAttr(e),delete c[e])})};s(n,i.translateAttr,function(t){o=t},u),s(n,i.translateValues,function(t){a=t},u),i.translateValues&&n.$watch(i.translateValues,u,!0),n.$on('translateLanguageChanged',u);var l=e.$on('$translateChangeSuccess',u);u(),n.$on('$destroy',l)}}}function s(t,e,n,r){'use strict';e&&('::'===e.substr(0,2)?e=e.substr(2):t.$watch(e,function(t){n(t),r()},!0),n(t.$eval(e)))}function c(t,e){'use strict';return{compile:function(n){var r=function(e){e.addClass(t.cloakClassName())},i=function(e){e.removeClass(t.cloakClassName())};return r(n),function(n,o,a){var s=i.bind(this,o),c=r.bind(this,o);a.translateCloak&&a.translateCloak.length?(a.$observe('translateCloak',function(e){t(e).then(s,c)}),e.$on('$translateChangeSuccess',function(){t(a.translateCloak).then(s,c)})):t.onReady(s)}}}}function u(){'use strict';return{restrict:'A',scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=o(t),t.translateNamespace&&'.'===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function o(t){'use strict';return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function l(){'use strict';return{restrict:'A',scope:!0,compile:function(){return function(t,e,n){n.$observe('translateLanguage',function(e){t.translateLanguage=e}),t.$watch('translateLanguage',function(){t.$broadcast('translateLanguageChanged')})}}}}function d(t,e){'use strict';var n=function(n,r,i,o){if(!angular.isObject(r)){var a=this||{__SCOPE_IS_NOT_AVAILABLE:'More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f'};r=t(r)(a)}return e.instant(n,r,i,o)};return e.statefulFilter()&&(n.$stateful=!0),n}function f(t){'use strict';return t('translations')}return t.$inject=['$translate'],n.$inject=['$STORAGE_KEY','$windowProvider','$translateSanitizationProvider','pascalprechtTranslateOverrider'],r.$inject=['$interpolate','$translateSanitization'],i.$inject=['$translate','$interpolate','$compile','$parse','$rootScope'],a.$inject=['$translate','$rootScope'],c.$inject=['$translate','$rootScope'],d.$inject=['$parse','$translate'],f.$inject=['$cacheFactory'],angular.module('pascalprecht.translate',['ng']).run(t),t.displayName='runTranslate',angular.module('pascalprecht.translate').provider('$translateSanitization',e),angular.module('pascalprecht.translate').constant('pascalprechtTranslateOverrider',{}).provider('$translate',n),n.displayName='displayName',angular.module('pascalprecht.translate').factory('$translateDefaultInterpolation',r),r.displayName='$translateDefaultInterpolation',angular.module('pascalprecht.translate').constant('$STORAGE_KEY','NG_TRANSLATE_LANG_KEY'),angular.module('pascalprecht.translate').directive('translate',i),i.displayName='translateDirective',angular.module('pascalprecht.translate').directive('translateAttr',a),a.displayName='translateAttrDirective',angular.module('pascalprecht.translate').directive('translateCloak',c),c.displayName='translateCloakDirective',angular.module('pascalprecht.translate').directive('translateNamespace',u),u.displayName='translateNamespaceDirective',angular.module('pascalprecht.translate').directive('translateLanguage',l),l.displayName='translateLanguageDirective',angular.module('pascalprecht.translate').filter('translate',d),d.displayName='translateFilterFactory',angular.module('pascalprecht.translate').factory('$translationCache',f),f.displayName='$translationCache','pascalprecht.translate'})},function(t,e,n){var r,i;/*!
 * angular-translate - v2.15.2 - 2017-06-22
 * 
 * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT
 */
!function(n,o){r=[],void 0!==(i=function(){return o()}.apply(e,r))&&(t.exports=i)}(0,function(){function t(t,e){'use strict';return function(n){if(!(n&&(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix))))throw new Error('Couldn\'t load static files, no files and prefix or suffix specified!');n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=[],i=n.files.length,o=0;o<i;o++)r.push(function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error('Couldn\'t load static file, no prefix or suffix specified!');var i=[r.prefix,n.key,r.suffix].join('');return angular.isObject(n.fileMap)&&n.fileMap[i]&&(i=n.fileMap[i]),e(angular.extend({url:i,method:'GET'},n.$http)).then(function(t){return t.data},function(){return t.reject(n.key)})}({prefix:n.files[o].prefix,key:n.key,suffix:n.files[o].suffix}));return t.all(r).then(function(t){for(var e=t.length,n={},r=0;r<e;r++)for(var i in t[r])n[i]=t[r][i];return n})}}return t.$inject=['$q','$http'],angular.module('pascalprecht.translate').factory('$translateStaticFilesLoader',t),t.displayName='$translateStaticFilesLoader','pascalprecht.translate'})},,,function(t,e){/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t){'use strict';function e(t,e){return e=e||Error,function(){var n,r,i=arguments[0],o=arguments[1],a='['+(t?t+':':'')+i+'] ',s=W(arguments,2).map(function(t){return wt(t,Yr.objectMaxDepth)});for(a+=o.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e<s.length?s[e]:t}),a+='\nhttp://errors.angularjs.org/1.6.4/'+(t?t+'/':'')+i,r=0,n='?';r<s.length;r++,n='&')a+=n+'p'+r+'='+encodeURIComponent(s[r]);return new e(a)}}function n(t){if(!E(t))return Yr;y(t.objectMaxDepth)&&(Yr.objectMaxDepth=r(t.objectMaxDepth)?t.objectMaxDepth:NaN)}function r(t){return _(t)&&t>0}function i(t){if(null==t||T(t))return!1;if(di(t)||C(t)||Jr&&t instanceof Jr)return!0;var e='length'in Object(t)&&t.length;return _(e)&&(e>=0&&(e-1 in t||t instanceof Array)||'function'==typeof t.item)}function o(t,e,n){var r,a;if(t)if(M(t))for(r in t)'prototype'!==r&&'length'!==r&&'name'!==r&&t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else if(di(t)||i(t)){var s='object'!=typeof t;for(r=0,a=t.length;r<a;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(w(t))for(r in t)e.call(n,t[r],r,t);else if('function'==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)Wr.call(t,r)&&e.call(n,t[r],r,t);return t}function a(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function s(t){return function(e,n){t(n,e)}}function c(){return++ui}function u(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function l(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(E(a)||M(a))for(var s=Object.keys(a),c=0,d=s.length;c<d;c++){var f=s[c],m=a[f];n&&E(m)?x(m)?t[f]=new Date(m.valueOf()):A(m)?t[f]=new RegExp(m):m.nodeName?t[f]=m.cloneNode(!0):H(m)?t[f]=m.clone():(E(t[f])||(t[f]=di(m)?[]:{}),l(t[f],[m],!0)):t[f]=m}}return u(t,r),t}function d(t){return l(t,ni.call(arguments,1),!1)}function f(t){return l(t,ni.call(arguments,1),!0)}function m(t){return parseInt(t,10)}function p(t,e){return d(Object.create(t),e)}function h(){}function v(t){return t}function g(t){return function(){return t}}function $(t){return M(t.toString)&&t.toString!==oi}function b(t){return void 0===t}function y(t){return void 0!==t}function E(t){return null!==t&&'object'==typeof t}function w(t){return null!==t&&'object'==typeof t&&!ai(t)}function C(t){return'string'==typeof t}function _(t){return'number'==typeof t}function x(t){return'[object Date]'===oi.call(t)}function M(t){return'function'==typeof t}function A(t){return'[object RegExp]'===oi.call(t)}function T(t){return t&&t.window===t}function k(t){return t&&t.$evalAsync&&t.$watch}function S(t){return'[object File]'===oi.call(t)}function O(t){return'[object FormData]'===oi.call(t)}function N(t){return'[object Blob]'===oi.call(t)}function I(t){return'boolean'==typeof t}function D(t){return t&&M(t.then)}function P(t){return t&&_(t.length)&&fi.test(oi.call(t))}function R(t){return'[object ArrayBuffer]'===oi.call(t)}function H(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function j(t){var e,n={},r=t.split(',');for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function L(t){return Kr(t.nodeName||t[0]&&t[0].nodeName)}function F(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function V(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function U(t,e,n){function i(t,e,n){if(--n<0)return'...';var r,i=e.$$hashKey;if(di(t))for(var o=0,s=t.length;o<s;o++)e.push(a(t[o],n));else if(w(t))for(r in t)e[r]=a(t[r],n);else if(t&&'function'==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=a(t[r],n));else for(r in t)Wr.call(t,r)&&(e[r]=a(t[r],n));return u(e,i),e}function a(t,e){if(!E(t))return t;var n=c.indexOf(t);if(-1!==n)return l[n];if(T(t)||k(t))throw si('cpws','Can\'t copy! Making copies of Window or Scope instances is not supported.');var r=!1,o=s(t);return void 0===o&&(o=di(t)?[]:Object.create(ai(t)),r=!0),c.push(t),l.push(o),r?i(t,o,e):o}function s(t){switch(oi.call(t)){case'[object Int8Array]':case'[object Int16Array]':case'[object Int32Array]':case'[object Float32Array]':case'[object Float64Array]':case'[object Uint8Array]':case'[object Uint8ClampedArray]':case'[object Uint16Array]':case'[object Uint32Array]':return new t.constructor(a(t.buffer),t.byteOffset,t.length);case'[object ArrayBuffer]':if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case'[object Boolean]':case'[object Number]':case'[object String]':case'[object Date]':return new t.constructor(t.valueOf());case'[object RegExp]':var n=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case'[object Blob]':return new t.constructor([t],{type:t.type})}if(M(t.cloneNode))return t.cloneNode(!0)}var c=[],l=[];if(n=r(n)?n:NaN,e){if(P(e)||R(e))throw si('cpta','Can\'t copy! TypedArray destination cannot be mutated.');if(t===e)throw si('cpi','Can\'t copy! Source and destination are identical.');return di(e)?e.length=0:o(e,function(t,n){'$$hashKey'!==n&&delete e[n]}),c.push(t),l.push(e),i(t,e,n)}return a(t,n)}function q(t,e){return t===e||t!==t&&e!==e}function B(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,o=typeof t,a=typeof e;if(o===a&&'object'===o){if(!di(t)){if(x(t))return!!x(e)&&q(t.getTime(),e.getTime());if(A(t))return!!A(e)&&t.toString()===e.toString();if(k(t)||k(e)||T(t)||T(e)||di(e)||x(e)||A(e))return!1;i=gt();for(r in t)if('$'!==r.charAt(0)&&!M(t[r])){if(!B(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&'$'!==r.charAt(0)&&y(e[r])&&!M(e[r]))return!1;return!0}if(!di(e))return!1;if((n=t.length)===e.length){for(r=0;r<n;r++)if(!B(t[r],e[r]))return!1;return!0}}return!1}function z(t,e,n){return t.concat(ni.call(e,n))}function W(t,e){return ni.call(t,e||0)}function Y(t,e){var n=arguments.length>2?W(arguments,2):[];return!M(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,z(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function K(e,n){var r=n;return'string'==typeof e&&'$'===e.charAt(0)&&'$'===e.charAt(1)?r=void 0:T(n)?r='$WINDOW':n&&t.document===n?r='$DOCUMENT':k(n)&&(r='$SCOPE'),r}function G(t,e){if(!b(t))return _(e)||(e=e?2:null),JSON.stringify(t,K,e)}function Z(t){return C(t)?JSON.parse(t):t}function X(t,e){t=t.replace(gi,'');var n=Date.parse('Jan 01, 1970 00:00:00 '+t)/6e4;return li(n)?e:n}function Q(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function J(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return Q(t,n*(X(e,r)-r))}function tt(t){t=Jr(t).clone();try{t.empty()}catch(t){}var e=Jr('<div>').append(t).html();try{return t[0].nodeType===Ci?Kr(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(t,e){return'<'+Kr(e)})}catch(t){return Kr(e)}}function et(t){try{return decodeURIComponent(t)}catch(t){}}function nt(t){var e={};return o((t||'').split('&'),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,'%20'),n=t.indexOf('='),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=et(r),y(r)&&(i=!y(i)||et(i),Wr.call(e,r)?di(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function rt(t){var e=[];return o(t,function(t,n){di(t)?o(t,function(t){e.push(ot(n,!0)+(!0===t?'':'='+ot(t,!0)))}):e.push(ot(n,!0)+(!0===t?'':'='+ot(t,!0)))}),e.length?e.join('&'):''}function it(t){return ot(t,!0).replace(/%26/gi,'&').replace(/%3D/gi,'=').replace(/%2B/gi,'+')}function ot(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 at(t,e){var n,r,i=$i.length;for(r=0;r<i;++r)if(n=$i[r]+e,C(n=t.getAttribute(n)))return n;return null}function st(e,n){var r,i,a={};if(o($i,function(t){var n=t+'app';!r&&e.hasAttribute&&e.hasAttribute(n)&&(r=e,i=e.getAttribute(n))}),o($i,function(t){var n,o=t+'app';!r&&(n=e.querySelector('['+o.replace(':','\\:')+']'))&&(r=n,i=n.getAttribute(o))}),r){if(!bi)return void t.console.error('Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.');a.strictDi=null!==at(r,'strict-di'),n(r,i?[i]:[],a)}}function ct(e,n,r){E(r)||(r={}),r=d({strictDi:!1},r);var i=function(){if(e=Jr(e),e.injector()){var i=e[0]===t.document?'document':tt(e);throw si('btstrpd','App already bootstrapped with this element \'{0}\'',i.replace(/</,'&lt;').replace(/>/,'&gt;'))}n=n||[],n.unshift(['$provide',function(t){t.value('$rootElement',e)}]),r.debugInfoEnabled&&n.push(['$compileProvider',function(t){t.debugInfoEnabled(!0)}]),n.unshift('ng');var o=ce(n,r.strictDi);return o.invoke(['$rootScope','$rootElement','$compile','$injector',function(t,e,n,r){t.$apply(function(){e.data('$injector',r),n(e)(t)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(t&&a.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(a,'')),t&&!s.test(t.name))return i();t.name=t.name.replace(s,''),ci.resumeBootstrap=function(t){return o(t,function(t){n.push(t)}),i()},M(ci.resumeDeferredBootstrap)&&ci.resumeDeferredBootstrap()}function ut(){t.name='NG_ENABLE_DEBUG_INFO!'+t.name,t.location.reload()}function lt(t){var e=ci.element(t).injector();if(!e)throw si('test','no injector found for element argument to getTestability');return e.get('$$testability')}function dt(t,e){return e=e||'_',t.replace(yi,function(t,n){return(n?e:'')+t.toLowerCase()})}function ft(t,e,n){if(!t)throw si('areq','Argument \'{0}\' is {1}',e||'?',n||'required');return t}function mt(t,e,n){return n&&di(t)&&(t=t[t.length-1]),ft(M(t),e,'not a function, got '+(t&&'object'==typeof t?t.constructor.name||'Object':typeof t)),t}function pt(t,e){if('hasOwnProperty'===t)throw si('badname','hasOwnProperty is not a valid {0} name',e)}function ht(t,e,n){if(!e)return t;for(var r,i=e.split('.'),o=t,a=i.length,s=0;s<a;s++)r=i[s],t&&(t=(o=t)[r]);return!n&&M(t)?Y(o,t):t}function vt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=Jr(ni.call(t,0,i))),e.push(n));return e||t}function gt(){return Object.create(null)}function $t(t){if(null==t)return'';switch(typeof t){case'string':break;case'number':t=''+t;break;default:t=!$(t)||di(t)||x(t)?G(t):t.toString()}return t}function bt(t){function n(t,e,n){return t[e]||(t[e]=n())}var r=e('$injector'),i=e('ng'),o=n(t,'angular',Object);return o.$$minErr=o.$$minErr||e,n(o,'module',function(){var t={};return function(e,o,a){var s={};return function(t,e){if('hasOwnProperty'===t)throw i('badname','hasOwnProperty is not a valid {0} name',e)}(e,'module'),o&&t.hasOwnProperty(e)&&(t[e]=null),n(t,e,function(){function t(t,e,n,r){return r||(r=c),function(){return r[n||'push']([t,e,arguments]),f}}function n(t,n,r){return r||(r=c),function(i,o){return o&&M(o)&&(o.$$moduleName=e),r.push([t,n,arguments]),f}}if(!o)throw r('nomod','Module \'{0}\' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.',e);var c=[],u=[],l=[],d=t('$injector','invoke','push',u),f={_invokeQueue:c,_configBlocks:u,_runBlocks:l,info:function(t){if(y(t)){if(!E(t))throw i('aobj','Argument \'{0}\' must be an object','value');return s=t,this}return s},requires:o,name:e,provider:n('$provide','provider'),factory:n('$provide','factory'),service:n('$provide','service'),value:t('$provide','value'),constant:t('$provide','constant','unshift'),decorator:n('$provide','decorator',u),animation:n('$animateProvider','register'),filter:n('$filterProvider','register'),controller:n('$controllerProvider','register'),directive:n('$compileProvider','directive'),component:n('$compileProvider','component'),config:d,run:function(t){return l.push(t),this}};return a&&d(a),f})}})}function yt(t,e){if(di(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(E(t)){e=e||{};for(var i in t)'$'===i.charAt(0)&&'$'===i.charAt(1)||(e[i]=t[i])}return e||t}function Et(t,e){var n=[];return r(e)&&(t=U(t,null,e)),JSON.stringify(t,function(t,e){if(e=K(t,e),E(e)){if(n.indexOf(e)>=0)return'...';n.push(e)}return e})}function wt(t,e){return'function'==typeof t?t.toString().replace(/ \{[\s\S]*$/,''):b(t)?'undefined':'string'!=typeof t?Et(t,e):t}function Ct(){return++ki}function _t(t){return Mt(t.replace(Oi,'ms-'))}function xt(t,e){return e.toUpperCase()}function Mt(t){return t.replace(Si,xt)}function At(t){return!Pi.test(t)}function Tt(t){var e=t.nodeType;return e===wi||!e||e===xi}function kt(t){for(var e in Ti[t.ng339])return!0;return!1}function St(t,e){var n,r,i,a,s=e.createDocumentFragment(),c=[];if(At(t))c.push(e.createTextNode(t));else{for(n=s.appendChild(e.createElement('div')),r=(Ri.exec(t)||['',''])[1].toLowerCase(),i=ji[r]||ji._default,n.innerHTML=i[1]+t.replace(Hi,'<$1></$2>')+i[2],a=i[0];a--;)n=n.lastChild;c=z(c,n.childNodes),n=s.firstChild,n.textContent=''}return s.textContent='',s.innerHTML='',o(c,function(t){s.appendChild(t)}),s}function Ot(e,n){n=n||t.document;var r;return(r=Di.exec(e))?[n.createElement(r[1])]:(r=St(e,n))?r.childNodes:[]}function Nt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function It(t){if(t instanceof It)return t;var e;if(C(t)&&(t=mi(t),e=!0),!(this instanceof It)){if(e&&'<'!==t.charAt(0))throw Ii('nosel','Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element');return new It(t)}e?qt(this,Ot(t)):M(t)?Gt(t):qt(this,t)}function Dt(t){return t.cloneNode(!0)}function Pt(t,e){!e&&Tt(t)&&Jr.cleanData([t]),t.querySelectorAll&&Jr.cleanData(t.querySelectorAll('*'))}function Rt(t,e,n,r){if(y(r))throw Ii('offargs','jqLite#off() does not support the `selector` argument');var i=jt(t),a=i&&i.events,s=i&&i.handle;if(s)if(e){var c=function(e){var r=a[e];y(n)&&V(r||[],n),y(n)&&r&&r.length>0||(t.removeEventListener(e,s),delete a[e])};o(e.split(' '),function(t){c(t),Ni[t]&&c(Ni[t])})}else for(e in a)'$destroy'!==e&&t.removeEventListener(e,s),delete a[e]}function Ht(t,e){var n=t.ng339,r=n&&Ti[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},'$destroy'),Rt(t)),delete Ti[n],t.ng339=void 0}}function jt(t,e){var n=t.ng339,r=n&&Ti[n];return e&&!r&&(t.ng339=n=Ct(),r=Ti[n]={events:{},data:{},handle:void 0}),r}function Lt(t,e,n){if(Tt(t)){var r,i=y(n),o=!i&&e&&!E(e),a=!e,s=jt(t,!o),c=s&&s.data;if(i)c[Mt(e)]=n;else{if(a)return c;if(o)return c&&c[Mt(e)];for(r in e)c[Mt(r)]=e[r]}}}function Ft(t,e){return!!t.getAttribute&&(' '+(t.getAttribute('class')||'')+' ').replace(/[\n\t]/g,' ').indexOf(' '+e+' ')>-1}function Vt(t,e){e&&t.setAttribute&&o(e.split(' '),function(e){t.setAttribute('class',mi((' '+(t.getAttribute('class')||'')+' ').replace(/[\n\t]/g,' ').replace(' '+mi(e)+' ',' ')))})}function Ut(t,e){if(e&&t.setAttribute){var n=(' '+(t.getAttribute('class')||'')+' ').replace(/[\n\t]/g,' ');o(e.split(' '),function(t){t=mi(t),-1===n.indexOf(' '+t+' ')&&(n+=t+' ')}),t.setAttribute('class',mi(n))}}function qt(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 r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Bt(t,e){return zt(t,'$'+(e||'ngController')+'Controller')}function zt(t,e,n){t.nodeType===xi&&(t=t.documentElement);for(var r=di(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(y(n=Jr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===Mi&&t.host}}function Wt(t){for(Pt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Yt(t,e){e||Pt(t);var n=t.parentNode;n&&n.removeChild(t)}function Kt(e,n){n=n||t,'complete'===n.document.readyState?n.setTimeout(e):Jr(n).on('load',e)}function Gt(e){function n(){t.document.removeEventListener('DOMContentLoaded',n),t.removeEventListener('load',n),e()}'complete'===t.document.readyState?t.setTimeout(e):(t.document.addEventListener('DOMContentLoaded',n),t.addEventListener('load',n))}function Zt(t,e){var n=Vi[e.toLowerCase()];return n&&Ui[L(t)]&&n}function Xt(t){return qi[t]}function Qt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(b(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};var s=i.specialHandlerWrapper||Jt;o>1&&(i=yt(i));for(var c=0;c<o;c++)n.isImmediatePropagationStopped()||s(t,n,i[c])}};return n.elem=t,n}function Jt(t,e,n){n.call(t,e)}function te(t,e,n){var r=e.relatedTarget;r&&(r===t||Li.call(t,r))||n.call(t,e)}function ee(){this.$get=function(){return d(It,{hasClass:function(t,e){return t.attr&&(t=t[0]),Ft(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Ut(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Vt(t,e)}})}}function ne(t,e){var n=t&&t.$$hashKey;if(n)return'function'==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n='function'===r||'object'===r&&null!==t?t.$$hashKey=r+':'+(e||c)():r+':'+t}function re(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function ie(t){return Function.prototype.toString.call(t)}function oe(t){var e=ie(t).replace(Xi,'');return e.match(Yi)||e.match(Ki)}function ae(t){var e=oe(t);return e?'function('+(e[1]||'').replace(/[\s\r\n]+/,' ')+')':'fn'}function se(t,e,n){var r,i,a;if('function'==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw C(n)&&n||(n=t.name||ae(t)),Qi('strictdi','{0} is not using explicit annotation and cannot be invoked in strict mode',n);i=oe(t),o(i[1].split(Gi),function(t){t.replace(Zi,function(t,e,n){r.push(n)})})}t.$inject=r}}else di(t)?(a=t.length-1,mt(t[a],'fn'),r=t.slice(0,a)):mt(t,'fn',!0);return r}function ce(t,e){function n(t){return function(e,n){if(!E(e))return t(e,n);o(e,s(t))}}function r(t,e){if(pt(t,'service'),(M(e)||di(e))&&(e=w.instantiate(e)),!e.$get)throw Qi('pget','Provider \'{0}\' must define $get factory method.',t);return y[t+h]=e}function i(t,e){return function(){var n=A.invoke(e,this);if(b(n))throw Qi('undef','Provider \'{0}\' must return a value from $get factory method.',t);return n}}function a(t,e,n){return r(t,{$get:!1!==n?i(t,e):e})}function c(t,e){return a(t,['$injector',function(t){return t.instantiate(e)}])}function u(t,e){return a(t,g(e),!1)}function l(t,e){pt(t,'constant'),y[t]=e,_[t]=e}function d(t,e){var n=w.get(t+h),r=n.$get;n.$get=function(){var t=A.invoke(r,n);return A.invoke(e,null,{$delegate:t})}}function f(t){ft(b(t)||di(t),'modulesToLoad','not an array');var e,n=[];return o(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=w.get(r[0]);i[r[1]].apply(i,r[2])}}if(!$.get(t)){$.set(t,!0);try{C(t)?(e=ei(t),A.modules[t]=e,n=n.concat(f(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):M(t)?n.push(w.invoke(t)):di(t)?n.push(w.invoke(t)):mt(t,'module')}catch(e){throw di(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+'\n'+e.stack),Qi('modulerr','Failed to instantiate module {0} due to:\n{1}',t,e.stack||e.message||e)}}}),n}function m(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===p)throw Qi('cdep','Circular dependency found: {0}',e+' <- '+v.join(' <- '));return t[e]}try{return v.unshift(e),t[e]=p,t[e]=n(e,r),t[e]}catch(n){throw t[e]===p&&delete t[e],n}finally{v.shift()}}function i(t,n,i){for(var o=[],a=ce.$$annotate(t,e,i),s=0,c=a.length;s<c;s++){var u=a[s];if('string'!=typeof u)throw Qi('itkn','Incorrect injection token! Expected service name as string, got {0}',u);o.push(n&&n.hasOwnProperty(u)?n[u]:r(u,i))}return o}function o(t){if(Qr||'function'!=typeof t)return!1;var e=t.$$ngIsClass;return I(e)||(e=t.$$ngIsClass=/^(?:class\b|constructor\()/.test(ie(t))),e}function a(t,e,n,r){'string'==typeof n&&(r=n,n=null);var a=i(t,n,r);return di(t)&&(t=t[t.length-1]),o(t)?(a.unshift(null),new(Function.prototype.bind.apply(t,a))):t.apply(e,a)}function s(t,e,n){var r=di(t)?t[t.length-1]:t,o=i(t,e,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:ce.$$annotate,has:function(e){return y.hasOwnProperty(e+h)||t.hasOwnProperty(e)}}}e=!0===e;var p={},h='Provider',v=[],$=new zi,y={$provide:{provider:n(r),factory:n(a),service:n(c),value:n(u),constant:n(l),decorator:d}},w=y.$injector=m(y,function(t,e){throw ci.isString(e)&&v.push(e),Qi('unpr','Unknown provider: {0}',v.join(' <- '))}),_={},x=m(_,function(t,e){var n=w.get(t+h,e);return A.invoke(n.$get,n,void 0,t)}),A=x;y['$injector'+h]={$get:g(x)},A.modules=w.modules=gt();var T=f(t);return A=x.get('$injector'),A.strictDi=e,o(T,function(t){t&&A.invoke(t)}),A}function ue(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=['$window','$location','$rootScope',function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if('a'===L(t))return e=t,!0}),e}function o(){var t=s.yOffset;if(M(t))t=t();else if(H(t)){var n=t[0],r=e.getComputedStyle(n);t='fixed'!==r.position?0:n.getBoundingClientRect().bottom}else _(t)||(t=0);return t}function a(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(t){t=C(t)?t:_(t)?t.toString():n.hash();var e;t?(e=c.getElementById(t))?a(e):(e=i(c.getElementsByName(t)))?a(e):'top'===t&&a(null):a(null)}var c=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&''===t||Kt(function(){r.$evalAsync(s)})}),s}]}function le(t,e){return t||e?t?e?(di(t)&&(t=t.join(' ')),di(e)&&(e=e.join(' ')),t+' '+e):t:e:''}function de(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===to)return n}}function fe(t){C(t)&&(t=t.split(' '));var e=gt();return o(t,function(t){t.length&&(e[t]=!0)}),e}function me(t){return E(t)?t:{}}function pe(t,e,n,r){function i(t){try{t.apply(null,W(arguments,1))}finally{if(0===--g)for(;$.length;)try{$.pop()()}catch(t){n.error(t)}}}function a(t){var e=t.indexOf('#');return-1===e?'':t.substr(e)}function s(){_=null,u()}function c(){y=x(),y=b(y)?null:y,B(y,T)&&(y=T),T=y,E=y}function u(){var t=E;c(),w===l.url()&&t===y||(w=l.url(),E=y,o(M,function(t){t(l.url(),y)}))}var l=this,d=t.location,f=t.history,m=t.setTimeout,p=t.clearTimeout,v={};l.isMock=!1;var g=0,$=[];l.$$completeOutstandingRequest=i,l.$$incOutstandingRequestCount=function(){g++},l.notifyWhenNoOutstandingRequests=function(t){0===g?t():$.push(t)};var y,E,w=d.href,C=e.find('base'),_=null,x=r.history?function(){try{return f.state}catch(t){}}:h;c(),l.url=function(e,n,i){if(b(i)&&(i=null),d!==t.location&&(d=t.location),f!==t.history&&(f=t.history),e){var o=E===i;if(w===e&&(!r.history||o))return l;var s=w&&Ge(w)===Ge(e);return w=e,E=i,!r.history||s&&o?(s||(_=e),n?d.replace(e):s?d.hash=a(e):d.href=e,d.href!==e&&(_=e)):(f[n?'replaceState':'pushState'](i,'',e),c()),_&&(_=e),l}return _||d.href.replace(/%27/g,'\'')},l.state=function(){return y};var M=[],A=!1,T=null;l.onUrlChange=function(e){return A||(r.history&&Jr(t).on('popstate',s),Jr(t).on('hashchange',s),A=!0),M.push(e),e},l.$$applicationDestroyed=function(){Jr(t).off('hashchange popstate',s)},l.$$checkUrlChange=u,l.baseHref=function(){var t=C.attr('href');return t?t.replace(/^(https?:)?\/\/[^\/]*/,''):''},l.defer=function(t,e){var n;return g++,n=m(function(){delete v[n],i(t)},e||0),v[n]=!0,n},l.defer.cancel=function(t){return!!v[t]&&(delete v[t],p(t),i(h),!0)}}function he(){this.$get=['$window','$log','$sniffer','$document',function(t,e,n,r){return new pe(t,r,e,n)}]}function ve(){this.$get=function(){function t(t,r){function i(t){t!==f&&(m?m===t&&(m=t.n):m=t,o(t.n,t.p),o(t,f),f=t,f.n=null)}function o(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}if(t in n)throw e('$cacheFactory')('iid','CacheId \'{0}\' is already taken!',t);var a=0,s=d({},r,{id:t}),c=gt(),u=r&&r.capacity||Number.MAX_VALUE,l=gt(),f=null,m=null;return n[t]={put:function(t,e){if(!b(e)){if(u<Number.MAX_VALUE){i(l[t]||(l[t]={key:t}))}return t in c||a++,c[t]=e,a>u&&this.remove(m.key),e}},get:function(t){if(u<Number.MAX_VALUE){var e=l[t];if(!e)return;i(e)}return c[t]},remove:function(t){if(u<Number.MAX_VALUE){var e=l[t];if(!e)return;e===f&&(f=e.p),e===m&&(m=e.n),o(e.n,e.p),delete l[t]}t in c&&(delete c[t],a--)},removeAll:function(){c=gt(),a=0,l=gt(),f=m=null},destroy:function(){c=null,s=null,l=null,delete n[t]},info:function(){return d({},s,{size:a})}}}var n={};return t.info=function(){var t={};return o(n,function(e,n){t[n]=e.info()}),t},t.get=function(t){return n[t]},t}}function ge(){this.$get=['$cacheFactory',function(t){return t('templates')}]}function $e(){}function be(e,n){function r(t,e,n){var r=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,i=gt();return o(t,function(t,o){if(t in A)return void(i[o]=A[t]);var a=t.match(r);if(!a)throw so('iscp','Invalid {3} for directive \'{0}\'. Definition: {... {1}: \'{2}\' ...}',e,o,t,n?'controller bindings definition':'isolate scope definition');i[o]={mode:a[1][0],collection:'*'===a[2],optional:'?'===a[3],attrName:a[4]||o},a[4]&&(A[t]=i[o])}),i}function i(t,e){var n={isolateScope:null,bindToController:null};if(E(t.scope)&&(!0===t.bindToController?(n.bindToController=r(t.scope,e,!0),n.isolateScope={}):n.isolateScope=r(t.scope,e,!1)),E(t.bindToController)&&(n.bindToController=r(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw so('noctrl','Cannot bind to controller without directive \'{0}\'s controller.',e);return n}function a(t){var e=t.charAt(0);if(!e||e!==Kr(e))throw so('baddir','Directive/Component name \'{0}\' is invalid. The first character must be a lowercase letter',t);if(t!==t.trim())throw so('baddir','Directive/Component name \'{0}\' is invalid. The name should not contain leading or trailing whitespaces',t)}function c(t){var e=t.require||t.controller&&t.name;return!di(e)&&E(e)&&o(e,function(t,n){var r=t.match(_);t.substring(r[0].length)||(e[n]=r[0]+n)}),e}function u(t,e){if(t&&(!C(t)||!/[EACM]/.test(t)))throw so('badrestrict','Restrict property \'{0}\' of directive \'{1}\' is invalid',t,e);return t||'EA'}var l={},f='Directive',m=/^\s*directive:\s*([\w-]+)\s+(.*)$/,$=/(([\w-]+)(?::([^;]+))?;?)/,w=j('ngSrc,ngSrcset,src,srcset'),_=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,x=/^(on[a-z]+|formaction)$/,A=gt();this.directive=function t(n,r){return ft(n,'name'),pt(n,'directive'),C(n)?(a(n),ft(r,'directiveFactory'),l.hasOwnProperty(n)||(l[n]=[],e.factory(n+f,['$injector','$exceptionHandler',function(t,e){var r=[];return o(l[n],function(i,o){try{var a=t.invoke(i);M(a)?a={compile:g(a)}:!a.compile&&a.link&&(a.compile=g(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=c(a),a.restrict=u(a.restrict,n),a.$$moduleName=i.$$moduleName,r.push(a)}catch(t){e(t)}}),r}])),l[n].push(r)):o(n,s(t)),this},this.component=function(t,e){function n(t){function n(e){return M(e)||di(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var i=e.template||e.templateUrl?e.template:'',a={controller:r,controllerAs:_e(e.controller)||e.controllerAs||'$ctrl',template:n(i),templateUrl:n(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:'E',require:e.require};return o(e,function(t,e){'$'===e.charAt(0)&&(a[e]=t)}),a}var r=e.controller||function(){};return o(e,function(t,e){'$'===e.charAt(0)&&(n[e]=t,M(r)&&(r[e]=t))}),n.$inject=['$injector'],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return y(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var T=!0;this.debugInfoEnabled=function(t){return y(t)?(T=t,this):T};var S=!1;this.preAssignBindingsEnabled=function(t){return y(t)?(S=t,this):S};var O=10;this.onChangesTtl=function(t){return arguments.length?(O=t,this):O};var N=!0;this.commentDirectivesEnabled=function(t){return arguments.length?(N=t,this):N};var D=!0;this.cssClassDirectivesEnabled=function(t){return arguments.length?(D=t,this):D},this.$get=['$injector','$interpolate','$exceptionHandler','$templateRequest','$parse','$controller','$rootScope','$sce','$animate','$$sanitizeUri',function(e,n,r,a,s,c,u,g,A,P){function R(){try{if(!--St)throw _t=void 0,so('infchng','{0} $onChanges() iterations reached. Aborting!\n',O);u.$apply(function(){for(var t=[],e=0,n=_t.length;e<n;++e)try{_t[e]()}catch(e){t.push(e)}if(_t=void 0,t.length)throw t})}finally{St++}}function H(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t}function j(t,e,n){Mt.innerHTML='<span '+e+'>';var r=Mt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function F(t,e){try{t.addClass(e)}catch(t){}}function U(t,e,n,r,i){t instanceof Jr||(t=Jr(t));var o=K(t,e,t,n,r,i);U.$$addScopeClass(t);var a=null;return function(e,n,r){if(!t)throw so('multilink','This element has already been linked.');ft(e,'scope'),i&&i.needsNewScope&&(e=e.$parent.$new()),r=r||{};var s=r.parentBoundTranscludeFn,c=r.transcludeControllers,u=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=z(u));var l;if(l='html'!==a?Jr(vt(a,Jr('<div>').append(t).html())):n?Fi.clone.call(t):t,c)for(var d in c)l.data('$'+d+'Controller',c[d].instance);return U.$$addScopeInfo(l,e),n&&n(l,e),o&&o(e,l,l,s),n||(t=o=null),l}}function z(t){var e=t&&t[0];return e&&'foreignobject'!==L(e)&&oi.call(e).match(/SVG/)?'svg':'html'}function K(t,e,n,r,i,o){function a(t,n,r,i){var o,a,s,c,u,l,d,f,h;if(m){var v=n.length;for(h=new Array(v),u=0;u<p.length;u+=3)d=p[u],h[d]=n[d]}else h=n;for(u=0,l=p.length;u<l;)s=h[p[u++]],o=p[u++],a=p[u++],o?(o.scope?(c=t.$new(),U.$$addScopeInfo(Jr(s),c)):c=t,f=o.transcludeOnThisElement?Z(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?Z(t,e):null,o(a,c,s,r,f)):a&&a(t,s.childNodes,void 0,i)}for(var s,c,u,l,d,f,m,p=[],h=di(t)||t instanceof Jr,v=0;v<t.length;v++)s=new H,11===Qr&&G(t,v,h),c=X(t[v],[],s,0===v?r:void 0,i),u=c.length?rt(c,t[v],s,e,n,null,[],[],o):null,u&&u.scope&&U.$$addScopeClass(s.$$element),d=u&&u.terminal||!(l=t[v].childNodes)||!l.length?null:K(l,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:e),(u||d)&&(p.push(v,u,d),f=!0,m=m||u),o=null;return f?a:null}function G(t,e,n){var r,i=t[e],o=i.parentNode;if(i.nodeType===Ci)for(;;){if(!(r=o?i.nextSibling:t[e+1])||r.nodeType!==Ci)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===t[e+1]&&t.splice(e+1,1)}}function Z(t,e,n){function r(r,i,o,a,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=gt();for(var o in e.$$slots)e.$$slots[o]?i[o]=Z(t,e.$$slots[o],n):i[o]=null;return r}function X(t,e,n,r,i){var o,a,s,c=t.nodeType,u=n.$attr;switch(c){case wi:a=L(t),st(e,Ee(a),'E',r,i);for(var l,d,f,m,p,h,v=t.attributes,g=0,b=v&&v.length;g<b;g++){var y=!1,w=!1;l=v[g],d=l.name,p=l.value,m=Ee(d),h=Pt.test(m),h&&(d=d.replace(uo,'').substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var _=m.match(Rt);_&&ct(_[1])&&(y=d,w=d.substr(0,d.length-5)+'end',d=d.substr(0,d.length-6)),f=Ee(d.toLowerCase()),u[f]=d,!h&&n.hasOwnProperty(f)||(n[f]=p,Zt(t,f)&&(n[f]=!0)),bt(t,e,p,f,h),st(e,f,'A',r,i,y,w)}if('input'===a&&'hidden'===t.getAttribute('type')&&t.setAttribute('autocomplete','off'),!kt)break;if(s=t.className,E(s)&&(s=s.animVal),C(s)&&''!==s)for(;o=$.exec(s);)f=Ee(o[2]),st(e,f,'C',r,i)&&(n[f]=mi(o[3])),s=s.substr(o.index+o[0].length);break;case Ci:ht(e,t.nodeValue);break;case _i:if(!Tt)break;Q(t,e,n,r,i)}return e.sort(mt),e}function Q(t,e,n,r,i){try{var o=m.exec(t.nodeValue);if(o){var a=Ee(o[1]);st(e,a,'M',r,i)&&(n[a]=mi(o[2]))}}catch(t){}}function J(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw so('uterdir','Unterminated attribute, found \'{0}\' but no matching \'{1}\' found.',e,n);t.nodeType===wi&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return Jr(r)}function et(t,e,n){return function(r,i,o,a,s){return i=J(i[0],e,n),t(r,i,o,a,s)}}function nt(t,e,n,r,i,o){var a;return t?U(e,n,r,i,o):function(){return a||(a=U(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function rt(t,e,n,i,a,s,c,u,l){function f(t,e,n,r){t&&(n&&(t=et(t,n,r)),t.require=p.require,t.directiveName=h,(_===p||p.$$isolateScope)&&(t=Et(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=et(e,n,r)),e.require=p.require,e.directiveName=h,(_===p||p.$$isolateScope)&&(e=Et(e,{isolateScope:!0})),u.push(e))}function m(t,i,a,s,l){function f(t,e,n,r){var i;if(k(t)||(r=n,n=e,e=t,t=void 0),N&&(i=$),n||(n=N?A.parent():A),!r)return l(t,e,i,n,L);var o=l.$$slots[r];if(o)return o(t,e,i,n,L);if(b(o))throw so('noslot','No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,tt(A))}var m,p,h,v,g,$,y,A,T,O;e===a?(T=n,A=n.$$element):(A=Jr(a),T=new H(A,n)),g=i,_?v=i.$new(!0):w&&(g=i.$parent),l&&(y=f,y.$$boundTransclude=l,y.isSlotFilled=function(t){return!!l.$$slots[t]}),C&&($=ot(A,T,y,C,v,i,_)),_&&(U.$$addScopeInfo(A,v,!0,!(x&&(x===_||x===_.$$originalDirective))),U.$$addScopeClass(A,!0),v.$$isolateBindings=_.$$isolateBindings,O=Ct(i,T,v,v.$$isolateBindings,_),O.removeWatches&&v.$on('$destroy',O.removeWatches));for(var I in $){var D=C[I],P=$[I],R=D.$$bindings.bindToController;if(S){P.bindingInfo=R?Ct(g,T,P.instance,R,D):{};var j=P();j!==P.instance&&(P.instance=j,A.data('$'+D.name+'Controller',j),P.bindingInfo.removeWatches&&P.bindingInfo.removeWatches(),P.bindingInfo=Ct(g,T,P.instance,R,D))}else P.instance=P(),A.data('$'+D.name+'Controller',P.instance),P.bindingInfo=Ct(g,T,P.instance,R,D)}for(o(C,function(t,e){var n=t.require;t.bindToController&&!di(n)&&E(n)&&d($[e].instance,it(e,n,A,$))}),o($,function(t){var e=t.instance;if(M(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){r(t)}if(M(e.$onInit))try{e.$onInit()}catch(t){r(t)}M(e.$doCheck)&&(g.$watch(function(){e.$doCheck()}),e.$doCheck()),M(e.$onDestroy)&&g.$on('$destroy',function(){e.$onDestroy()})}),m=0,p=c.length;m<p;m++)h=c[m],wt(h,h.isolateScope?v:i,A,T,h.require&&it(h.directiveName,h.require,A,$),y);var L=i;for(_&&(_.template||null===_.templateUrl)&&(L=v),t&&t(L,a.childNodes,void 0,l),m=u.length-1;m>=0;m--)h=u[m],wt(h,h.isolateScope?v:i,A,T,h.require&&it(h.directiveName,h.require,A,$),y);o($,function(t){var e=t.instance;M(e.$postLink)&&e.$postLink()})}l=l||{};for(var p,h,v,g,$,y=-Number.MAX_VALUE,w=l.newScopeDirective,C=l.controllerDirectives,_=l.newIsolateScopeDirective,x=l.templateDirective,A=l.nonTlbTranscludeDirective,T=!1,O=!1,N=l.hasElementTranscludeDirective,I=n.$$element=Jr(e),D=s,P=i,R=!1,j=!1,F=0,V=t.length;F<V;F++){p=t[F];var q=p.$$start,B=p.$$end;if(q&&(I=J(e,q,B)),v=void 0,y>p.priority)break;if($=p.scope,$&&(p.templateUrl||(E($)?(pt('new/isolated scope',_||w,p,I),_=p):pt('new/isolated scope',_,p,I)),w=w||p),h=p.name,!R&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var z,K=F+1;z=t[K++];)if(z.transclude&&!z.$$tlb||z.replace&&(z.templateUrl||z.template)){j=!0;break}R=!0}if(!p.templateUrl&&p.controller&&(C=C||gt(),pt('\''+h+'\' controller',C[h],p,I),C[h]=p),$=p.transclude)if(T=!0,p.$$tlb||(pt('transclusion',A,p,I),A=p),'element'===$)N=!0,y=p.priority,v=I,I=n.$$element=Jr(U.$$createComment(h,n[h])),e=I[0],yt(a,W(v),e),v[0].$$parentNode=v[0].parentNode,P=nt(j,v,i,y,D&&D.name,{nonTlbTranscludeDirective:A});else{var G=gt();if(E($)){v=[];var Z=gt(),Q=gt();o($,function(t,e){var n='?'===t.charAt(0);t=n?t.substring(1):t,Z[t]=e,G[e]=null,Q[e]=n}),o(I.contents(),function(t){var e=Z[Ee(L(t))];e?(Q[e]=!0,G[e]=G[e]||[],G[e].push(t)):v.push(t)}),o(Q,function(t,e){if(!t)throw so('reqslot','Required transclusion slot `{0}` was not filled.',e)});for(var rt in G)G[rt]&&(G[rt]=nt(j,G[rt],i))}else v=Jr(Dt(e)).contents();I.empty(),P=nt(j,v,i,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),P.$$slots=G}if(p.template)if(O=!0,pt('template',x,p,I),x=p,$=M(p.template)?p.template(I,n):p.template,$=It($),p.replace){if(D=p,v=At($)?[]:Ce(vt(p.templateNamespace,mi($))),e=v[0],1!==v.length||e.nodeType!==wi)throw so('tplrt','Template for directive \'{0}\' must have exactly one root element. {1}',h,'');yt(a,I,e);var st={$attr:{}},ct=X(e,[],st),dt=t.splice(F+1,t.length-(F+1));(_||w)&&at(ct,_,w),t=t.concat(ct).concat(dt),ut(n,st),V=t.length}else I.html($);if(p.templateUrl)O=!0,pt('template',x,p,I),x=p,p.replace&&(D=p),m=lt(t.splice(F,t.length-F),I,n,a,T&&P,c,u,{controllerDirectives:C,newScopeDirective:w!==p&&w,newIsolateScopeDirective:_,templateDirective:x,nonTlbTranscludeDirective:A}),V=t.length;else if(p.compile)try{g=p.compile(I,n,P);var ft=p.$$originalDirective||p;M(g)?f(null,Y(ft,g),q,B):g&&f(Y(ft,g.pre),Y(ft,g.post),q,B)}catch(t){r(t,tt(I))}p.terminal&&(m.terminal=!0,y=Math.max(y,p.priority))}return m.scope=w&&!0===w.scope,m.transcludeOnThisElement=T,m.templateOnThisElement=O,m.transclude=P,l.hasElementTranscludeDirective=N,m}function it(t,e,n,r){var i;if(C(e)){var a=e.match(_),s=e.substring(a[0].length),c=a[1]||a[3],u='?'===a[2];if('^^'===c?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var l='$'+s+'Controller';i=c?n.inheritedData(l):n.data(l)}if(!i&&!u)throw so('ctreq','Controller \'{0}\', required by directive \'{1}\', can\'t be found!',s,t)}else if(di(e)){i=[];for(var d=0,f=e.length;d<f;d++)i[d]=it(t,e[d],n,r)}else E(e)&&(i={},o(e,function(e,o){i[o]=it(t,e,n,r)}));return i||null}function ot(t,e,n,r,i,o,a){var s=gt();for(var u in r){var l=r[u],d={$scope:l===a||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=l.controller;'@'===f&&(f=e[l.name]);var m=c(f,d,!0,l.controllerAs);s[l.name]=m,t.data('$'+l.name+'Controller',m.instance)}return s}function at(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=p(t[r],{$$isolateScope:e,$$newScope:n})}function st(t,n,r,o,a,s,c){if(n===a)return null;var u=null;if(l.hasOwnProperty(n))for(var d,m=e.get(n+f),h=0,v=m.length;h<v;h++)if(d=m[h],(b(o)||o>d.priority)&&-1!==d.restrict.indexOf(r)){if(s&&(d=p(d,{$$start:s,$$end:c})),!d.$$bindings){var g=d.$$bindings=i(d,d.name);E(g.isolateScope)&&(d.$$isolateBindings=g.isolateScope)}t.push(d),u=d}return u}function ct(t){if(l.hasOwnProperty(t))for(var n,r=e.get(t+f),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function ut(t,e){var n=e.$attr,r=t.$attr;o(t,function(r,i){'$'!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=('style'===i?';':' ')+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))}),o(e,function(e,i){t.hasOwnProperty(i)||'$'===i.charAt(0)||(t[i]=e,'class'!==i&&'style'!==i&&(r[i]=n[i]))})}function lt(t,e,n,i,s,c,u,l){var d,f,m=[],h=e[0],v=t.shift(),g=p(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),$=M(v.templateUrl)?v.templateUrl(e,n):v.templateUrl,b=v.templateNamespace;return e.empty(),a($).then(function(r){var a,p,y,w;if(r=It(r),v.replace){if(y=At(r)?[]:Ce(vt(b,mi(r))),a=y[0],1!==y.length||a.nodeType!==wi)throw so('tplrt','Template for directive \'{0}\' must have exactly one root element. {1}',v.name,$);p={$attr:{}},yt(i,e,a);var C=X(a,[],p);E(v.scope)&&at(C,!0),t=C.concat(t),ut(n,p)}else a=h,e.html(r);for(t.unshift(g),d=rt(t,a,n,s,e,v,c,u,l),o(i,function(t,n){t===a&&(i[n]=e[0])}),f=K(e[0].childNodes,s);m.length;){var _=m.shift(),x=m.shift(),M=m.shift(),A=m.shift(),T=e[0];if(!_.$$destroyed){if(x!==h){var k=x.className;l.hasElementTranscludeDirective&&v.replace||(T=Dt(a)),yt(M,Jr(x),T),F(Jr(T),k)}w=d.transcludeOnThisElement?Z(_,d.transclude,A):A,d(f,_,T,i,w)}}m=null}).catch(function(t){t instanceof Error&&r(t)}),function(t,e,n,r,i){var o=i;e.$$destroyed||(m?m.push(e,n,r,o):(d.transcludeOnThisElement&&(o=Z(e,d.transclude,i)),d(f,e,n,r,o)))}}function mt(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 pt(t,e,n,r){function i(t){return t?' (module: '+t+')':''}if(e)throw so('multidir','Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}',e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,tt(r))}function ht(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&U.$$addBindingClass(e),function(t,e){var i=e.parent();n||U.$$addBindingClass(i),U.$$addBindingInfo(i,r.expressions),t.$watch(r,function(t){e[0].nodeValue=t})}}})}function vt(e,n){switch(e=Kr(e||'html')){case'svg':case'math':var r=t.document.createElement('div');return r.innerHTML='<'+e+'>'+n+'</'+e+'>',r.childNodes[0].childNodes;default:return n}}function $t(t,e){if('srcdoc'===e)return g.HTML;var n=L(t);if('src'===e||'ngSrc'===e){if(-1===['img','video','audio','source','track'].indexOf(n))return g.RESOURCE_URL}else if('xlinkHref'===e||'form'===n&&'action'===e||'link'===n&&'href'===e)return g.RESOURCE_URL}function bt(t,e,r,i,o){var a=$t(t,i),s=!o,c=w[i]||o,u=n(r,s,a,c);if(u){if('multiple'===i&&'select'===L(t))throw so('selmulti','Binding to the \'multiple\' attribute is not supported. Element: {0}',tt(t));if(x.test(i))throw so('nodomevents','Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.');e.push({priority:100,compile:function(){return{pre:function(t,e,o){var s=o.$$observers||(o.$$observers=gt()),l=o[i];l!==r&&(u=l&&n(l,!0,a,c),r=l),u&&(o[i]=u(t),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||t).$watch(u,function(t,e){'class'===i&&t!==e?o.$updateClass(t,e):o.$set(i,t)}))}}}})}}function yt(e,n,r){var i,o,a=n[0],s=n.length,c=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]===a){e[i++]=r;for(var u=i,l=u+s-1,d=e.length;u<d;u++,l++)l<d?e[u]=e[l]:delete e[u];e.length-=s-1,e.context===a&&(e.context=r);break}c&&c.replaceChild(r,a);var f=t.document.createDocumentFragment();for(i=0;i<s;i++)f.appendChild(n[i]);for(Jr.hasData(a)&&(Jr.data(r,Jr.data(a)),Jr(a).off('$destroy')),Jr.cleanData(f.querySelectorAll('*')),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function Et(t,e){return d(function(){return t.apply(null,arguments)},t,e)}function wt(t,e,n,i,o,a){try{t(e,n,i,o,a)}catch(t){r(t,tt(n))}}function Ct(t,e,r,i,a){function c(e,n,i){M(r.$onChanges)&&!q(n,i)&&(_t||(t.$$postDigest(R),_t=[]),l||(l={},_t.push(u)),l[e]&&(i=l[e].previousValue),l[e]=new ye(i,n))}function u(){r.$onChanges(l),l=void 0}var l,d=[],f={};return o(i,function(i,o){var u,l,m,p,v,g=i.attrName,$=i.optional,b=i.mode;switch(b){case'@':$||Wr.call(e,g)||(r[o]=e[g]=void 0),v=e.$observe(g,function(t){if(C(t)||I(t)){var e=r[o];c(o,t,e),r[o]=t}}),e.$$observers[g].$$scope=t,u=e[g],C(u)?r[o]=n(u)(t):I(u)&&(r[o]=u),f[o]=new ye(co,r[o]),d.push(v);break;case'=':if(!Wr.call(e,g)){if($)break;e[g]=void 0}if($&&!e[g])break;l=s(e[g]),p=l.literal?B:q,m=l.assign||function(){throw u=r[o]=l(t),so('nonassign','Expression \'{0}\' in attribute \'{1}\' used with directive \'{2}\' is non-assignable!',e[g],g,a.name)},u=r[o]=l(t);var y=function(e){return p(e,r[o])||(p(e,u)?m(t,e=r[o]):r[o]=e),u=e};y.$stateful=!0,v=i.collection?t.$watchCollection(e[g],y):t.$watch(s(e[g],y),null,l.literal),d.push(v);break;case'<':if(!Wr.call(e,g)){if($)break;e[g]=void 0}if($&&!e[g])break;l=s(e[g]);var E=l.literal,w=r[o]=l(t);f[o]=new ye(co,r[o]),v=t.$watch(l,function(t,e){if(e===t){if(e===w||E&&B(e,w))return;e=w}c(o,t,e),r[o]=t},E),d.push(v);break;case'&':if((l=e.hasOwnProperty(g)?s(e[g]):h)===h&&$)break;r[o]=function(e){return l(t,e)}}}),{initialChanges:f,removeWatches:d.length&&function(){for(var t=0,e=d.length;t<e;++t)d[t]()}}}var _t,xt=/^\w/,Mt=t.document.createElement('div'),Tt=N,kt=D,St=O;H.prototype={$normalize:Ee,$addClass:function(t){t&&t.length>0&&A.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&A.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=we(t,e);n&&n.length&&A.addClass(this.$$element,n);var r=we(e,t);r&&r.length&&A.removeClass(this.$$element,r)},$set:function(t,e,n,i){var a,s=this.$$element[0],c=Zt(s,t),u=Xt(t),l=t;if(c?(this.$$element.prop(t,e),i=c):u&&(this[u]=e,l=u),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=dt(t,'-')),'a'===(a=L(this.$$element))&&('href'===t||'xlinkHref'===t)||'img'===a&&'src'===t)this[t]=e=P(e,'src'===t);else if('img'===a&&'srcset'===t&&y(e)){for(var d='',f=mi(e),m=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,p=/\s/.test(f)?m:/(,)/,h=f.split(p),v=Math.floor(h.length/2),g=0;g<v;g++){var $=2*g;d+=P(mi(h[$]),!0),d+=' '+mi(h[$+1])}var E=mi(h[2*g]).split(/\s/);d+=P(mi(E[0]),!0),2===E.length&&(d+=' '+mi(E[1])),this[t]=e=d}!1!==n&&(null===e||b(e)?this.$$element.removeAttr(i):xt.test(i)?this.$$element.attr(i,e):j(this.$$element[0],i,e));var w=this.$$observers;w&&o(w[l],function(t){try{t(e)}catch(t){r(t)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=gt()),i=r[t]||(r[t]=[]);return i.push(e),u.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||b(n[t])||e(n[t])}),function(){V(i,e)}}};var Ot=n.startSymbol(),Nt=n.endSymbol(),It='{{'===Ot&&'}}'===Nt?v:function(t){return t.replace(/\{\{/g,Ot).replace(/}}/g,Nt)},Pt=/^ngAttr[A-Z]/,Rt=/^(.+)Start$/;return U.$$addBindingInfo=T?function(t,e){var n=t.data('$binding')||[];di(e)?n=n.concat(e):n.push(e),t.data('$binding',n)}:h,U.$$addBindingClass=T?function(t){F(t,'ng-binding')}:h,U.$$addScopeInfo=T?function(t,e,n,r){var i=n?r?'$isolateScopeNoTemplate':'$isolateScope':'$scope';t.data(i,e)}:h,U.$$addScopeClass=T?function(t,e){F(t,e?'ng-isolate-scope':'ng-scope')}:h,U.$$createComment=function(e,n){var r='';return T&&(r=' '+(e||'')+': ',n&&(r+=n+' ')),t.document.createComment(r)},U}]}function ye(t,e){this.previousValue=t,this.currentValue=e}function Ee(t){return t.replace(uo,'').replace(lo,xt)}function we(t,e){var n='',r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue t;n+=(n.length>0?' ':'')+a}return n}function Ce(t){t=Jr(t);var e=t.length;if(e<=1)return t;for(;e--;){var n=t[e];(n.nodeType===_i||n.nodeType===Ci&&''===n.nodeValue.trim())&&ri.call(t,e,1)}return t}function _e(t,e){if(e&&C(e))return e;if(C(t)){var n=mo.exec(t);if(n)return n[3]}}function xe(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){pt(e,'controller'),E(e)?d(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=['$injector','$window',function(r,i){function o(t,n,r,i){if(!t||!E(t.$scope))throw e('$controller')('noscp','Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',i,n);t.$scope[n]=r}return function(e,a,s,c){var u,l,f,m;if(s=!0===s,c&&C(c)&&(m=c),C(e)){if(!(l=e.match(mo)))throw fo('ctrlfmt','Badly formed controller string \'{0}\'. Must match `__name__ as __id__` or `__name__`.',e);if(f=l[1],m=m||l[3],!(e=t.hasOwnProperty(f)?t[f]:ht(a.$scope,f,!0)||(n?ht(i,f,!0):void 0)))throw fo('ctrlreg','The controller with the name \'{0}\' is not registered.',f);mt(e,f,!0)}if(s){var p=(di(e)?e[e.length-1]:e).prototype;return u=Object.create(p||null),m&&o(a,m,u,f||e.name),d(function(){var t=r.invoke(e,u,a,f);return t!==u&&(E(t)||M(t))&&(u=t,m&&o(a,m,u,f||e.name)),u},{instance:u,identifier:m})}return u=r.instantiate(e,a,f),m&&o(a,m,u,f||e.name),u}}]}function Me(){this.$get=['$window',function(t){return Jr(t.document)}]}function Ae(){this.$get=['$document','$rootScope',function(t,e){function n(){i=r.hidden}var r=t[0],i=r&&r.hidden;return t.on('visibilitychange',n),e.$on('$destroy',function(){t.off('visibilitychange',n)}),function(){return i}}]}function Te(){this.$get=['$log',function(t){return function(e,n){t.error.apply(t,arguments)}}]}function ke(t){return E(t)?x(t)?t.toISOString():G(t):t}function Se(){this.$get=function(){return function(t){if(!t)return'';var e=[];return a(t,function(t,n){null===t||b(t)||(di(t)?o(t,function(t){e.push(ot(n)+'='+ot(ke(t)))}):e.push(ot(n)+'='+ot(ke(t))))}),e.join('&')}}}function Oe(){this.$get=function(){return function(t){function e(t,r,i){null===t||b(t)||(di(t)?o(t,function(t,n){e(t,r+'['+(E(t)?n:'')+']')}):E(t)&&!x(t)?a(t,function(t,n){e(t,r+(i?'':'[')+n+(i?'':']'))}):n.push(ot(r)+'='+ot(ke(t))))}if(!t)return'';var n=[];return e(t,'',!0),n.join('&')}}}function Ne(t,e){if(C(t)){var n=t.replace(bo,'').trim();if(n){var r=e('Content-Type');if(r&&0===r.indexOf(ho)||Ie(n))try{t=Z(n)}catch(e){throw yo('baddata','Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}return t}function Ie(t){var e=t.match(go);return e&&$o[e[0]].test(t)}function De(t){function e(t,e){t&&(r[t]=r[t]?r[t]+', '+e:e)}var n,r=gt();return C(t)?o(t.split('\n'),function(t){n=t.indexOf(':'),e(Kr(mi(t.substr(0,n))),mi(t.substr(n+1)))}):E(t)&&o(t,function(t,n){e(Kr(n),mi(t))}),r}function Pe(t){var e;return function(n){if(e||(e=De(t)),n){var r=e[Kr(n)];return void 0===r&&(r=null),r}return e}}function Re(t,e,n,r){return M(r)?r(t,e,n):(o(r,function(r){t=r(t,e,n)}),t)}function He(t){return 200<=t&&t<300}function je(){var t=this.defaults={transformResponse:[Ne],transformRequest:[function(t){return!E(t)||S(t)||N(t)||O(t)?t:G(t)}],headers:{common:{Accept:'application/json, text/plain, */*'},post:yt(vo),put:yt(vo),patch:yt(vo)},xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',paramSerializer:'$httpParamSerializer',jsonpCallbackParam:'callback'},n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n};var r=this.interceptors=[];this.$get=['$browser','$httpBackend','$$cookieReader','$cacheFactory','$rootScope','$q','$injector','$sce',function(i,a,s,c,u,l,f,m){function p(n){function r(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function a(){i.$$completeOutstandingRequest(h)}function s(t,e){var n,r={};return o(t,function(t,i){M(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t}),r}function c(e){var n=e.headers,r=Re(e.data,Pe(n),void 0,e.transformRequest);return b(r)&&o(n,function(t,e){'content-type'===Kr(e)&&delete n[e]}),b(e.withCredentials)&&!b(t.withCredentials)&&(e.withCredentials=t.withCredentials),v(e,r).then(u,u)}function u(t){var e=d({},t);return e.data=Re(t.data,t.headers,t.status,p.transformResponse),He(t.status)?e:l.reject(e)}if(!E(n))throw e('$http')('badreq','Http request configuration must be an object.  Received: {0}',n);if(!C(m.valueOf(n.url)))throw e('$http')('badreq','Http request configuration url must be a string or a $sce trusted object.  Received: {0}',n.url);var p=d({method:'get',transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer,jsonpCallbackParam:t.jsonpCallbackParam},n);p.headers=function(e){var n,r,i,o=t.headers,a=d({},e.headers);o=d({},o.common,o[Kr(e.method)]);t:for(n in o){r=Kr(n);for(i in a)if(Kr(i)===r)continue t;a[n]=o[n]}return s(a,yt(e))}(n),p.method=Gr(p.method),p.paramSerializer=C(p.paramSerializer)?f.get(p.paramSerializer):p.paramSerializer,i.$$incOutstandingRequestCount();var g=[],$=[],y=l.resolve(p);return o(_,function(t){(t.request||t.requestError)&&g.unshift(t.request,t.requestError),(t.response||t.responseError)&&$.push(t.response,t.responseError)}),y=r(y,g),y=y.then(c),y=r(y,$),y=y.finally(a)}function v(e,r){function i(t){if(t){var e={};return o(t,function(t,r){e[r]=function(e){function r(){t(e)}n?u.$applyAsync(r):u.$$phase?r():u.$apply(r)}}),e}}function c(t,e,r,i){function o(){d(e,t,r,i)}v&&(He(t)?v.put(k,[t,e,De(r),i]):v.remove(k)),n?u.$applyAsync(o):(o(),u.$$phase||u.$apply())}function d(t,n,r,i){n=n>=-1?n:0,(He(n)?x.resolve:x.reject)({data:t,status:n,headers:Pe(r),config:e,statusText:i})}function f(t){d(t.data,t.status,yt(t.headers()),t.statusText)}function h(){var t=p.pendingRequests.indexOf(e);-1!==t&&p.pendingRequests.splice(t,1)}var v,_,x=l.defer(),M=x.promise,A=e.headers,T='jsonp'===Kr(e.method),k=e.url;if(T?k=m.getTrustedResourceUrl(k):C(k)||(k=m.valueOf(k)),k=g(k,e.paramSerializer(e.params)),T&&(k=$(k,e.jsonpCallbackParam)),p.pendingRequests.push(e),M.then(h,h),!e.cache&&!t.cache||!1===e.cache||'GET'!==e.method&&'JSONP'!==e.method||(v=E(e.cache)?e.cache:E(t.cache)?t.cache:w),v&&(_=v.get(k),y(_)?D(_)?_.then(f,f):di(_)?d(_[1],_[0],yt(_[2]),_[3]):d(_,200,{},'OK'):v.put(k,M)),b(_)){var S=jn(e.url)?s()[e.xsrfCookieName||t.xsrfCookieName]:void 0;S&&(A[e.xsrfHeaderName||t.xsrfHeaderName]=S),a(e.method,k,r,c,A,e.timeout,e.withCredentials,e.responseType,i(e.eventHandlers),i(e.uploadEventHandlers))}return M}function g(t,e){return e.length>0&&(t+=(-1===t.indexOf('?')?'?':'&')+e),t}function $(t,e){if(/[&?][^=]+=JSON_CALLBACK/.test(t))throw yo('badjsonp','Illegal use of JSON_CALLBACK in url, "{0}"',t);if(new RegExp('[&?]'+e+'=').test(t))throw yo('badjsonp','Illegal use of callback param, "{0}", in url, "{1}"',e,t);return t+=(-1===t.indexOf('?')?'?':'&')+e+'=JSON_CALLBACK'}var w=c('$http');t.paramSerializer=C(t.paramSerializer)?f.get(t.paramSerializer):t.paramSerializer;var _=[];return o(r,function(t){_.unshift(C(t)?f.get(t):f.invoke(t))}),p.pendingRequests=[],function(t){o(arguments,function(t){p[t]=function(e,n){return p(d({},n||{},{method:t,url:e}))}})}('get','delete','head','jsonp'),function(t){o(arguments,function(t){p[t]=function(e,n,r){return p(d({},r||{},{method:t,url:e,data:n}))}})}('post','put','patch'),p.defaults=t,p}]}function Le(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function Fe(){this.$get=['$browser','$jsonpCallbacks','$document','$xhrFactory',function(t,e,n,r){return Ve(t,r,t.defer,e,n[0])}]}function Ve(t,e,n,r,i){function a(t,e,n){t=t.replace('JSON_CALLBACK',e);var o=i.createElement('script'),a=null;return o.type='text/javascript',o.src=t,o.async=!0,a=function(t){o.removeEventListener('load',a),o.removeEventListener('error',a),i.body.removeChild(o),o=null;var s=-1,c='unknown';t&&('load'!==t.type||r.wasCalled(e)||(t={type:'error'}),c=t.type,s='error'===t.type?404:200),n&&n(s,c)},o.addEventListener('load',a),o.addEventListener('error',a),i.body.appendChild(o),a}return function(i,s,c,u,l,d,f,m,p,h){function v(){E&&E(),w&&w.abort()}function g(t,e,r,i,o){y(_)&&n.cancel(_),E=w=null,t(e,r,i,o)}if(s=s||t.url(),'jsonp'===Kr(i))var $=r.createCallback(s),E=a(s,$,function(t,e){var n=200===t&&r.getResponse($);g(u,t,n,'',e),r.removeCallback($)});else{var w=e(i,s);w.open(i,s,!0),o(l,function(t,e){y(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'===Hn(s).protocol?404:0),g(u,n,e,w.getAllResponseHeaders(),t)};var C=function(){g(u,-1,null,null,'')};if(w.onerror=C,w.onabort=C,w.ontimeout=C,o(p,function(t,e){w.addEventListener(e,t)}),o(h,function(t,e){w.upload.addEventListener(e,t)}),f&&(w.withCredentials=!0),m)try{w.responseType=m}catch(t){if('json'!==m)throw t}w.send(b(c)?null:c)}if(d>0)var _=n(v,d);else D(d)&&d.then(v)}}function Ue(){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,r,i){function o(t){return'\\\\\\'+t}function a(n){return n.replace(f,t).replace(m,e)}function s(t,e,n,r){var i=t.$watch(function(t){return i(),r(t)},e,n);return i}function c(o,c,f,m){function p(t){try{return t=S(t),m&&!y(t)?t:$t(t)}catch(t){r(Eo.interr(o,t))}}if(!o.length||-1===o.indexOf(t)){var h;if(!c){h=g(a(o)),h.exp=o,h.expressions=[],h.$$watchDelegate=s}return h}m=!!m;for(var v,$,E,w=0,C=[],_=[],x=o.length,A=[],T=[];w<x;){if(-1===(v=o.indexOf(t,w))||-1===($=o.indexOf(e,v+u))){w!==x&&A.push(a(o.substring(w)));break}w!==v&&A.push(a(o.substring(w,v))),E=o.substring(v+u,$),C.push(E),_.push(n(E,p)),w=$+l,T.push(A.length),A.push('')}if(f&&A.length>1&&Eo.throwNoconcat(o),!c||C.length){var k=function(t){for(var e=0,n=C.length;e<n;e++){if(m&&b(t[e]))return;A[T[e]]=t[e]}return A.join('')},S=function(t){return f?i.getTrusted(f,t):i.valueOf(t)};return d(function(t){var e=0,n=C.length,i=new Array(n);try{for(;e<n;e++)i[e]=_[e](t);return k(i)}catch(t){r(Eo.interr(o,t))}},{exp:o,expressions:C,$$watchDelegate:function(t,e){var n;return t.$watchGroup(_,function(r,i){var o=k(r);M(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var u=t.length,l=e.length,f=new RegExp(t.replace(/./g,o),'g'),m=new RegExp(e.replace(/./g,o),'g');return c.startSymbol=function(){return t},c.endSymbol=function(){return e},c}]}function qe(){this.$get=['$rootScope','$window','$q','$$q','$browser',function(t,e,n,r,i){function o(o,s,c,u){function l(){d?o.apply(null,f):o(h)}var d=arguments.length>4,f=d?W(arguments,4):[],m=e.setInterval,p=e.clearInterval,h=0,v=y(u)&&!u,g=(v?r:n).defer(),$=g.promise;return c=y(c)?c:0,$.$$intervalId=m(function(){v?i.defer(l):t.$evalAsync(l),g.notify(h++),c>0&&h>=c&&(g.resolve(h),p($.$$intervalId),delete a[$.$$intervalId]),v||t.$apply()},s),a[$.$$intervalId]=g,$}var a={};return o.cancel=function(t){return!!(t&&t.$$intervalId in a)&&(a[t.$$intervalId].promise.catch(h),a[t.$$intervalId].reject('canceled'),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0)},o}]}function Be(t){for(var e=t.split('/'),n=e.length;n--;)e[n]=it(e[n]);return e.join('/')}function ze(t,e){var n=Hn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=m(n.port)||_o[n.protocol]||null}function We(t,e){if(Mo.test(t))throw xo('badpath','Invalid url "{0}".',t);var n='/'!==t.charAt(0);n&&(t='/'+t);var r=Hn(t);e.$$path=decodeURIComponent(n&&'/'===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=nt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&'/'!==e.$$path.charAt(0)&&(e.$$path='/'+e.$$path)}function Ye(t,e){return t.slice(0,e.length)===e}function Ke(t,e){if(Ye(e,t))return e.substr(t.length)}function Ge(t){var e=t.indexOf('#');return-1===e?t:t.substr(0,e)}function Ze(t){return t.replace(/(#.+)|#$/,'$1')}function Xe(t){return t.substr(0,Ge(t).lastIndexOf('/')+1)}function Qe(t){return t.substring(0,t.indexOf('/',t.indexOf('//')+2))}function Je(t,e,n){this.$$html5=!0,n=n||'',ze(t,this),this.$$parse=function(t){var n=Ke(e,t);if(!C(n))throw xo('ipthprfx','Invalid url "{0}", missing path prefix "{1}".',t,e);We(n,this),this.$$path||(this.$$path='/'),this.$$compose()},this.$$compose=function(){var t=rt(this.$$search),n=this.$$hash?'#'+it(this.$$hash):'';this.$$url=Be(this.$$path)+(t?'?'+t:'')+n,this.$$absUrl=e+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&'#'===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return y(o=Ke(t,r))?(a=o,s=n&&y(o=Ke(n,o))?e+(Ke('/',o)||o):t+a):y(o=Ke(e,r))?s=e+o:e===r+'/'&&(s=e),s&&this.$$parse(s),!!s}}function tn(t,e,n){ze(t,this),this.$$parse=function(r){var i,o=Ke(t,r)||Ke(e,r);b(o)||'#'!==o.charAt(0)?this.$$html5?i=o:(i='',b(o)&&(t=r,this.replace())):(i=Ke(n,o),b(i)&&(i=o)),We(i,this),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return Ye(e,n)&&(e=e.replace(n,'')),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}(this.$$path,i,t),this.$$compose()},this.$$compose=function(){var e=rt(this.$$search),r=this.$$hash?'#'+it(this.$$hash):'';this.$$url=Be(this.$$path)+(e?'?'+e:'')+r,this.$$absUrl=t+(this.$$url?n+this.$$url:''),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(e,n){return Ge(t)===Ge(e)&&(this.$$parse(e),!0)}}function en(t,e,n){this.$$html5=!0,tn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&'#'===i[0])return this.hash(i.slice(1)),!0;var o,a;return t===Ge(r)?o=r:(a=Ke(e,r))?o=t+n+a:e===r+'/'&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=rt(this.$$search),r=this.$$hash?'#'+it(this.$$hash):'';this.$$url=Be(this.$$path)+(e?'?'+e:'')+r,this.$$absUrl=t+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function nn(t){return function(){return this[t]}}function rn(t,e){return function(n){return b(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function on(){var t='!',e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return I(t)?(e.enabled=t,this):E(t)?(I(t.enabled)&&(e.enabled=t.enabled),I(t.requireBase)&&(e.requireBase=t.requireBase),(I(t.rewriteLinks)||C(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=['$rootScope','$browser','$sniffer','$rootElement','$window',function(n,r,i,o,a){function s(t,e,n){var i=u.url(),o=u.$$state;try{r.url(t,e,n),u.$$state=r.state()}catch(t){throw u.url(i),u.$$state=o,t}}function c(t,e){n.$broadcast('$locationChangeSuccess',u.absUrl(),t,u.$$state,e)}var u,l,d,f=r.baseHref(),m=r.url();if(e.enabled){if(!f&&e.requireBase)throw xo('nobase','$location in HTML5 mode requires a <base> tag to be present!');d=Qe(m)+(f||'/'),l=i.history?Je:en}else d=Ge(m),l=tn;var p=Xe(d);u=new l(d,p,'#'+t),u.$$parseLinkUrl(m,m),u.$$state=r.state();var h=/^\s*(javascript|mailto):/i;o.on('click',function(t){var i=e.rewriteLinks;if(i&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var s=Jr(t.target);'a'!==L(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!C(i)||!b(s.attr(i))){var c=s.prop('href'),l=s.attr('href')||s.attr('xlink:href');E(c)&&'[object SVGAnimatedString]'===c.toString()&&(c=Hn(c.animVal).href),h.test(c)||!c||s.attr('target')||t.isDefaultPrevented()||u.$$parseLinkUrl(c,l)&&(t.preventDefault(),u.absUrl()!==r.url()&&(n.$apply(),a.angular['ff-684208-preventDefault']=!0))}}}),Ze(u.absUrl())!==Ze(m)&&r.url(u.absUrl(),!0);var v=!0;return r.onUrlChange(function(t,e){if(!Ye(t,p))return void(a.location.href=t);n.$evalAsync(function(){var r,i=u.absUrl(),o=u.$$state;t=Ze(t),u.$$parse(t),u.$$state=e,r=n.$broadcast('$locationChangeStart',t,i,e,o).defaultPrevented,u.absUrl()===t&&(r?(u.$$parse(i),u.$$state=o,s(i,!1,o)):(v=!1,c(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){if(v||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var t=Ze(r.url()),e=Ze(u.absUrl()),o=r.state(),a=u.$$replace,l=t!==e||u.$$html5&&i.history&&o!==u.$$state;(v||l)&&(v=!1,n.$evalAsync(function(){var e=u.absUrl(),r=n.$broadcast('$locationChangeStart',e,t,u.$$state,o).defaultPrevented;u.absUrl()===e&&(r?(u.$$parse(t),u.$$state=o):(l&&s(e,a,o===u.$$state?null:u.$$state),c(t,o)))}))}u.$$replace=!1}),u}]}function an(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=['$window',function(n){function r(t){return t instanceof Error&&(t.stack&&a?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 i(t){var e=n.console||{},i=e[t]||e.log||h,a=!1;try{a=!!i.apply}catch(t){}return a?function(){var t=[];return o(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?'':e)}}var a=Qr||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i('log'),info:i('info'),warn:i('warn'),error:i('error'),debug:function(){var n=i('debug');return function(){t&&n.apply(e,arguments)}}()}}]}function sn(t){return t+''}function cn(t,e){return void 0!==t?t:e}function un(t,e){return void 0===t?e:void 0===e?t:t+e}function ln(t,e){return!t(e).$stateful}function dn(t,e){var n,r,i;switch(t.type){case Io.Program:n=!0,o(t.body,function(t){dn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case Io.Literal:t.constant=!0,t.toWatch=[];break;case Io.UnaryExpression:dn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case Io.BinaryExpression:dn(t.left,e),dn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case Io.LogicalExpression:dn(t.left,e),dn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case Io.ConditionalExpression:dn(t.test,e),dn(t.alternate,e),dn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case Io.Identifier:t.constant=!1,t.toWatch=[t];break;case Io.MemberExpression:dn(t.object,e),t.computed&&dn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case Io.CallExpression:i=!!t.filter&&ln(e,t.callee.name),n=i,r=[],o(t.arguments,function(t){dn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=i?r:[t];break;case Io.AssignmentExpression:dn(t.left,e),dn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case Io.ArrayExpression:n=!0,r=[],o(t.elements,function(t){dn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case Io.ObjectExpression:n=!0,r=[],o(t.properties,function(t){dn(t.value,e),n=n&&t.value.constant&&!t.computed,t.value.constant||r.push.apply(r,t.value.toWatch),t.computed&&(dn(t.key,e),t.key.constant||r.push.apply(r,t.key.toWatch))}),t.constant=n,t.toWatch=r;break;case Io.ThisExpression:case Io.LocalsExpression:t.constant=!1,t.toWatch=[]}}function fn(t){if(1===t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:void 0}}function mn(t){return t.type===Io.Identifier||t.type===Io.MemberExpression}function pn(t){if(1===t.body.length&&mn(t.body[0].expression))return{type:Io.AssignmentExpression,left:t.body[0].expression,right:{type:Io.NGValueParameter},operator:'='}}function hn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===Io.Literal||t.body[0].expression.type===Io.ArrayExpression||t.body[0].expression.type===Io.ObjectExpression)}function vn(t){return t.constant}function gn(t){this.$filter=t}function $n(t){this.$filter=t}function bn(t,e,n){this.ast=new Io(t,n),this.astCompiler=n.csp?new $n(e):new gn(e)}function yn(t){return M(t.valueOf)?t.valueOf():ko.call(t)}function En(){var t,e,n=gt(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){r[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=['$filter',function(i){function a(t,e){var r,o,a;switch(typeof t){case'string':if(t=t.trim(),a=t,!(r=n[a])){':'===t.charAt(0)&&':'===t.charAt(1)&&(o=!0,t=t.substring(2));r=new bn(new No(p),i,p).parse(t),r.constant?r.$$watchDelegate=d:o?(r.oneTime=!0,r.$$watchDelegate=u):r.inputs&&(r.$$watchDelegate=c),n[a]=r}return f(r,e);case'function':return f(t,e);default:return f(h,e)}}function s(t,e,n){return null==t||null==e?t===e:!('object'==typeof t&&'object'==typeof(t=yn(t))&&!n)&&(t===e||t!==t&&e!==e)}function c(t,e,n,r,i){var o,a=r.inputs;if(1===a.length){var c=s;return a=a[0],t.$watch(function(t){var e=a(t);return s(e,c,r.literal)||(o=r(t,void 0,void 0,[e]),c=e&&yn(e)),o},e,n,i)}for(var u=[],l=[],d=0,f=a.length;d<f;d++)u[d]=s,l[d]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var c=a[n](t);(e||(e=!s(c,u[n],r.literal)))&&(l[n]=c,u[n]=c&&yn(c))}return e&&(o=r(t,void 0,void 0,l)),o},e,n,i)}function u(t,e,n,r,i){function o(t){return r(t)}function a(t,n,r){u=t,M(e)&&e(t,n,r),d(t)&&r.$$postDigest(function(){d(u)&&s()})}var s,u,d=r.literal?l:y;return s=r.inputs?c(t,a,n,r,i):t.$watch(o,a,n)}function l(t){var e=!0;return o(t,function(t){y(t)||(e=!1)}),e}function d(t,e,n,r){var i=t.$watch(function(t){return i(),r(t)},e,n);return i}function f(t,e){function n(n,r,i,a){var s=o&&a?a[0]:t(n,r,i,a);return e(s,n,r)}function r(n,r,i,s){var c=o&&s?s[0]:t(n,r,i,s),u=e(c,n,r);return a(c)?u:c}if(!e)return t;var i=t.$$watchDelegate,o=!1,a=t.literal?l:y,s=t.oneTime?r:n;return s.literal=t.literal,s.oneTime=t.oneTime,o=!t.inputs,i&&i!==c?(s.$$watchDelegate=i,s.inputs=t.inputs):e.$stateful||(s.$$watchDelegate=c,s.inputs=t.inputs?t.inputs:[t]),s}var m=hi().noUnsafeEval,p={csp:m,literals:U(r),isIdentifierStart:M(t)&&t,isIdentifierContinue:M(e)&&e};return a}]}function wn(){var t=!0;this.$get=['$rootScope','$exceptionHandler',function(e,n){return _n(function(t){e.$evalAsync(t)},n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function Cn(){var t=!0;this.$get=['$browser','$exceptionHandler',function(e,n){return _n(function(t){e.defer(t)},n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function _n(t,n,r){function i(){return new a}function a(){var t=this.promise=new s;this.resolve=function(e){f(t,e)},this.reject=function(e){p(t,e)},this.notify=function(e){v(t,e)}}function s(){this.$$state={status:0}}function c(e){var n,i,o;o=e.pending,e.processScheduled=!1,e.pending=void 0;try{for(var a=0,s=o.length;a<s;++a){e.pur=!0,i=o[a][0],n=o[a][e.status];try{M(n)?f(i,n(e.value)):1===e.status?f(i,e.value):p(i,e.value)}catch(t){p(i,t)}}}finally{--A,r&&0===A&&t(u)}}function u(){for(;!A&&T.length;){var t=T.shift();if(!t.pur){t.pur=!0;var e='Possibly unhandled rejection: '+wt(t.value);t.value instanceof Error?n(t.value,e):n(e)}}}function l(e){!r||e.pending||2!==e.status||e.pur||(0===A&&0===T.length&&t(u),T.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++A,t(function(){c(e)}))}function f(t,e){t.$$state.status||(e===t?h(t,x('qcycle','Expected promise to be resolved with value other than itself \'{0}\'',e)):m(t,e))}function m(t,e){function n(e){a||(a=!0,m(t,e))}function r(e){a||(a=!0,h(t,e))}function i(e){v(t,e)}var o,a=!1;try{(E(e)||M(e))&&(o=e.then),M(o)?(t.$$state.status=-1,o.call(e,n,r,i)):(t.$$state.value=e,t.$$state.status=1,l(t.$$state))}catch(t){r(t)}}function p(t,e){t.$$state.status||h(t,e)}function h(t,e){t.$$state.value=e,t.$$state.status=2,l(t.$$state)}function v(e,r){var i=e.$$state.pending;e.$$state.status<=0&&i&&i.length&&t(function(){for(var t,e,o=0,a=i.length;o<a;o++){e=i[o][0],t=i[o][3];try{v(e,M(t)?t(r):r)}catch(t){n(t)}}})}function g(t){var e=new s;return p(e,t),e}function $(t,e,n){var r=null;try{M(n)&&(r=n())}catch(t){return g(t)}return D(r)?r.then(function(){return e(t)},g):e(t)}function y(t,e,n,r){var i=new s;return f(i,t),i.then(e,n,r)}function w(t){var e=new s,n=0,r=di(t)?[]:{};return o(t,function(t,i){n++,y(t).then(function(t){r[i]=t,--n||f(e,r)},function(t){p(e,t)})}),0===n&&f(e,r),e}function C(t){var e=i();return o(t,function(t){y(t).then(e.resolve,e.reject)}),e.promise}function _(t){function e(t){f(r,t)}function n(t){p(r,t)}if(!M(t))throw x('norslvr','Expected resolverFn, got \'{0}\'',t);var r=new s;return t(e,n),r}var x=e('$q',TypeError),A=0,T=[];d(s.prototype,{then:function(t,e,n){if(b(t)&&b(e)&&b(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&l(this.$$state),r},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then(function(e){return $(e,k,t)},function(e){return $(e,g,t)},e)}});var k=y;return _.prototype=s.prototype,_.defer=i,_.reject=g,_.when=y,_.resolve=k,_.all=w,_.race=C,_}function xn(){this.$get=['$window','$timeout',function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function Mn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=c(),this.$$ChildScope=null}return e.prototype=t,e}var n=10,r=e('$rootScope'),a=null,s=null;this.digestTtl=function(t){return arguments.length&&(n=t),n},this.$get=['$exceptionHandler','$parse','$browser',function(e,u,l){function d(t){t.currentScope.$$destroyed=!0}function f(t){9===Qr&&(t.$$childHead&&f(t.$$childHead),t.$$nextSibling&&f(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function m(){this.$id=c(),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 p(t){if(_.$$phase)throw r('inprog','{0} already in progress',_.$$phase);_.$$phase=t}function v(){_.$$phase=null}function g(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function $(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function y(){}function w(){for(;T.length;)try{T.shift()()}catch(t){e(t)}s=null}function C(){null===s&&(s=l.defer(function(){_.$apply(w)}))}m.prototype={constructor:m,$new:function(e,n){var r;return n=n||this,e?(r=new m,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!==this)&&r.$on('$destroy',d),r},$watch:function(t,e,n,r){var i=u(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,s=o.$$watchers,c={fn:e,last:y,get:i,exp:r||t,eq:!!n};return a=null,M(e)||(c.fn=h),s||(s=o.$$watchers=[],s.$$digestWatchIndex=-1),s.unshift(c),s.$$digestWatchIndex++,g(this,1),function(){var t=V(s,c);t>=0&&(g(o,-1),t<s.$$digestWatchIndex&&s.$$digestWatchIndex--),a=null}},$watchGroup:function(t,e){function n(){c=!1,u?(u=!1,e(i,i,s)):e(i,r,s)}var r=new Array(t.length),i=new Array(t.length),a=[],s=this,c=!1,u=!0;if(!t.length){var l=!0;return s.$evalAsync(function(){l&&e(i,i,s)}),function(){l=!1}}return 1===t.length?this.$watch(t[0],function(t,n,o){i[0]=t,r[0]=n,e(i,t===n?i:r,o)}):(o(t,function(t,e){var o=s.$watch(t,function(t,o){i[e]=t,r[e]=o,c||(c=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function n(t){o=t;var e,n,r,s;if(!b(o)){if(E(o))if(i(o)){a!==m&&(a=m,v=a.length=0,d++),e=o.length,v!==e&&(d++,a.length=v=e);for(var c=0;c<e;c++)s=a[c],r=o[c],s!==s&&r!==r||s===r||(d++,a[c]=r)}else{a!==p&&(a=p={},v=0,d++),e=0;for(n in o)Wr.call(o,n)&&(e++,r=o[n],s=a[n],n in a?s!==s&&r!==r||s===r||(d++,a[n]=r):(v++,a[n]=r,d++));if(v>e){d++;for(n in a)Wr.call(o,n)||(v--,delete a[n])}}else a!==o&&(a=o,d++);return d}}function r(){if(h?(h=!1,e(o,o,c)):e(o,s,c),l)if(E(o))if(i(o)){s=new Array(o.length);for(var t=0;t<o.length;t++)s[t]=o[t]}else{s={};for(var n in o)Wr.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,c=this,l=e.length>1,d=0,f=u(t,n),m=[],p={},h=!0,v=0;return this.$watch(f,r)},$digest:function(){var t,i,o,c,u,d,f,m,h,g,$,b=n,E=this,C=[];p('$digest'),l.$$checkUrlChange(),this===_&&null!==s&&(l.defer.cancel(s),w()),a=null;do{f=!1,h=E;for(var T=0;T<x.length;T++){try{$=x[T],c=$.fn,c($.scope,$.locals)}catch(t){e(t)}a=null}x.length=0;t:do{if(d=h.$$watchers)for(d.$$digestWatchIndex=d.length;d.$$digestWatchIndex--;)try{if(t=d[d.$$digestWatchIndex])if(u=t.get,(i=u(h))===(o=t.last)||(t.eq?B(i,o):li(i)&&li(o))){if(t===a){f=!1;break t}}else f=!0,a=t,t.last=t.eq?U(i,null):i,c=t.fn,c(i,o===y?i:o,h),b<5&&(g=4-b,C[g]||(C[g]=[]),C[g].push({msg:M(t.exp)?'fn: '+(t.exp.name||t.exp.toString()):t.exp,newVal:i,oldVal:o}))}catch(t){e(t)}if(!(m=h.$$watchersCount&&h.$$childHead||h!==E&&h.$$nextSibling))for(;h!==E&&!(m=h.$$nextSibling);)h=h.$parent}while(h=m);if((f||x.length)&&!b--)throw v(),r('infdig','{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}',n,C)}while(f||x.length);for(v();k<A.length;)try{A[k++]()}catch(t){e(t)}A.length=k=0,l.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast('$destroy'),this.$$destroyed=!0,this===_&&l.$$applicationDestroyed(),g(this,-this.$$watchersCount);for(var e in this.$$listenerCount)$(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=h,this.$on=this.$watch=this.$watchGroup=function(){return h},this.$$listeners={},this.$$nextSibling=null,f(this)}},$eval:function(t,e){return u(t)(this,e)},$evalAsync:function(t,e){_.$$phase||x.length||l.defer(function(){x.length&&_.$digest()}),x.push({scope:this,fn:u(t),locals:e})},$$postDigest:function(t){A.push(t)},$apply:function(t){try{p('$apply');try{return this.$eval(t)}finally{v()}}catch(t){e(t)}finally{try{_.$digest()}catch(t){throw e(t),t}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&T.push(e),t=u(t),C()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,$(i,1,t))}},$emit:function(t,n){var r,i,o,a=[],s=this,c=!1,u={name:t,targetScope:s,stopPropagation:function(){c=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=z([u],arguments,1);do{for(r=s.$$listeners[t]||a,u.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,l)}catch(t){e(t)}else r.splice(i,1),i--,o--;if(c)return u.currentScope=null,u;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(t,n){var r=this,i=r,o=r,a={name:t,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[t])return a;for(var s,c,u,l=z([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[t]||[],c=0,u=s.length;c<u;c++)if(s[c])try{s[c].apply(null,l)}catch(t){e(t)}else s.splice(c,1),c--,u--;if(!(o=i.$$listenerCount[t]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var _=new m,x=_.$$asyncQueue=[],A=_.$$postDigestQueue=[],T=_.$$applyAsyncQueue=[],k=0;return _}]}function An(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=Hn(n).href,''===i||i.match(o)?n:'unsafe:'+i}}}function Tn(t){return t.replace(Ro,xt)}function kn(t){if('self'===t)return t;if(C(t)){if(t.indexOf('***')>-1)throw Do('iwcard','Illegal sequence *** in string matcher.  String: {0}',t);return t=pi(t).replace(/\\\*\\\*/g,'.*').replace(/\\\*/g,'[^:/.?&;]*'),new RegExp('^'+t+'$')}if(A(t))return new RegExp('^'+t.source+'$');throw Do('imatcher','Matchers may only be "self", string patterns or RegExp objects')}function Sn(t){var e=[];return y(t)&&o(t,function(t){e.push(kn(t))}),e}function On(){this.SCE_CONTEXTS=Po;var t=['self'],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Sn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Sn(t)),e},this.$get=['$injector',function(n){function r(t,e){return'self'===t?jn(e):!!t.exec(e.href)}function i(n){var i,o,a=Hn(n.toString()),s=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!0;break}if(s)for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!1;break}return s}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}function a(t,e){var n=d.hasOwnProperty(t)?d[t]:null;if(!n)throw Do('icontext','Attempted to trust a value in invalid context. Context: {0}; Value: {1}',t,e);if(null===e||b(e)||''===e)return e;if('string'!=typeof e)throw Do('itype','Attempted to trust a non-string value in a content requiring a string: Context: {0}',t);return new n(e)}function s(t){return t instanceof l?t.$$unwrapTrustedValue():t}function c(t,e){if(null===e||b(e)||''===e)return e;var n=d.hasOwnProperty(t)?d[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===Po.RESOURCE_URL){if(i(e))return e;throw Do('insecurl','Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}',e.toString())}if(t===Po.HTML)return u(e);throw Do('unsafe','Attempting to use an unsafe value in a safe context.')}var u=function(t){throw Do('unsafe','Attempting to use an unsafe value in a safe context.')};n.has('$sanitize')&&(u=n.get('$sanitize'));var l=o(),d={};return d[Po.HTML]=o(l),d[Po.CSS]=o(l),d[Po.URL]=o(l),d[Po.JS]=o(l),d[Po.RESOURCE_URL]=o(d[Po.URL]),{trustAs:a,getTrusted:c,valueOf:s}}]}function Nn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=['$parse','$sceDelegate',function(e,n){if(t&&Qr<8)throw Do('iequirks','Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.');var r=yt(Po);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=v),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(Po,function(t,e){var n=Kr(e);r[Tn('parse_as_'+n)]=function(e){return i(t,e)},r[Tn('get_trusted_'+n)]=function(e){return a(t,e)},r[Tn('trust_as_'+n)]=function(e){return s(t,e)}}),r}]}function In(){this.$get=['$window','$document',function(t,e){var n={},r=t.nw&&t.nw.process,i=!r&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id),o=!i&&t.history&&t.history.pushState,a=m((/android (\d+)/.exec(Kr((t.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((t.navigator||{}).userAgent),c=e[0]||{},u=c.body&&c.body.style,l=!1,d=!1;return u&&(l=!!('transition'in u||'webkitTransition'in u),d=!!('animation'in u||'webkitAnimation'in u)),{history:!(!o||a<4||s),hasEvent:function(t){if('input'===t&&Qr)return!1;if(b(n[t])){var e=c.createElement('div');n[t]='on'+t in e}return n[t]},csp:hi(),transitions:l,animations:d,android:a}}]}function Dn(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=['$exceptionHandler','$templateCache','$http','$q','$sce',function(e,n,r,i,o){function a(s,c){function u(t){return c||(t=Ho('tpload','Failed to load template: {0} (HTTP status: {1} {2})',s,t.status,t.statusText),e(t)),i.reject(t)}a.totalPendingRequests++,C(s)&&!b(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return di(l)?l=l.filter(function(t){return t!==Ne}):l===Ne&&(l=null),r.get(s,d({cache:n,transformResponse:l},t)).finally(function(){a.totalPendingRequests--}).then(function(t){return n.put(s,t.data),t.data},u)}return a.totalPendingRequests=0,a}]}function Pn(){this.$get=['$rootScope','$browser','$location',function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName('ng-binding'),i=[];return o(r,function(t){var r=ci.element(t).data('$binding');r&&o(r,function(r){if(n){new RegExp('(^|\\s)'+pi(e)+'(\\s|\\||$)').test(r)&&i.push(t)}else-1!==r.indexOf(e)&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=['ng-','data-ng-','ng\\:'],i=0;i<r.length;++i){var o=n?'=':'*=',a='['+r[i]+'model'+o+'"'+e+'"]',s=t.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},r.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},r}]}function Rn(){this.$get=['$rootScope','$browser','$q','$$q','$exceptionHandler',function(t,e,n,r,i){function o(o,s,c){M(o)||(c=s,s=o,o=h);var u,l=W(arguments,3),d=y(c)&&!c,f=(d?r:n).defer(),m=f.promise;return u=e.defer(function(){try{f.resolve(o.apply(null,l))}catch(t){f.reject(t),i(t)}finally{delete a[m.$$timeoutId]}d||t.$apply()},s),m.$$timeoutId=u,a[u]=f,m}var a={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in a)&&(a[t.$$timeoutId].promise.catch(h),a[t.$$timeoutId].reject('canceled'),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function Hn(t){var e=t;return Qr&&(jo.setAttribute('href',e),e=jo.href),jo.setAttribute('href',e),{href:jo.href,protocol:jo.protocol?jo.protocol.replace(/:$/,''):'',host:jo.host,search:jo.search?jo.search.replace(/^\?/,''):'',hash:jo.hash?jo.hash.replace(/^#/,''):'',hostname:jo.hostname,port:jo.port,pathname:'/'===jo.pathname.charAt(0)?jo.pathname:'/'+jo.pathname}}function jn(t){var e=C(t)?Hn(t):t;return e.protocol===Lo.protocol&&e.host===Lo.host}function Ln(){this.$get=g(t)}function Fn(t){function e(t){try{return t.cookie||''}catch(t){return''}}function n(t){try{return decodeURIComponent(t)}catch(e){return t}}var r=t[0]||{},i={},o='';return function(){var t,a,s,c,u,l=e(r);if(l!==o)for(o=l,t=o.split('; '),i={},s=0;s<t.length;s++)a=t[s],(c=a.indexOf('='))>0&&(u=n(a.substring(0,c)),b(i[u])&&(i[u]=n(a.substring(c+1))));return i}}function Vn(){this.$get=Fn}function Un(t){function e(r,i){if(E(r)){var a={};return o(r,function(t,n){a[n]=e(n,t)}),a}return t.factory(r+n,i)}var n='Filter';this.register=e,this.$get=['$injector',function(t){return function(e){return t.get(e+n)}}],e('currency',Yn),e('date',cr),e('filter',qn),e('json',ur),e('limitTo',lr),e('lowercase',Wo),e('number',Kn),e('orderBy',fr),e('uppercase',Yo)}function qn(){return function(t,n,r,o){if(!i(t)){if(null==t)return t;throw e('filter')('notarray','Expected array but received: {0}',t)}o=o||'$';var a,s,c=Wn(n);switch(c){case'function':a=n;break;case'boolean':case'null':case'number':case'string':s=!0;case'object':a=Bn(n,r,o,s);break;default:return t}return Array.prototype.filter.call(t,a)}}function Bn(t,e,n,r){var i=E(t)&&n in t;return!0===e?e=B:M(e)||(e=function(t,e){return!b(t)&&(null===t||null===e?t===e:!(E(e)||E(t)&&!$(t))&&(t=Kr(''+t),e=Kr(''+e),-1!==t.indexOf(e)))}),function(o){return i&&!E(o)?zn(o,t[n],e,n,!1):zn(o,t,e,n,r)}}function zn(t,e,n,r,i,o){var a=Wn(t),s=Wn(e);if('string'===s&&'!'===e.charAt(0))return!zn(t,e.substring(1),n,r,i);if(di(t))return t.some(function(t){return zn(t,e,n,r,i)});switch(a){case'object':var c;if(i){for(c in t)if(c.charAt&&'$'!==c.charAt(0)&&zn(t[c],e,n,r,!0))return!0;return!o&&zn(t,e,n,r,!1)}if('object'===s){for(c in e){var u=e[c];if(!M(u)&&!b(u)){var l=c===r;if(!zn(l?t:t[c],u,n,r,l,l))return!1}}return!0}return n(t,e);case'function':return!1;default:return n(t,e)}}function Wn(t){return null===t?'null':typeof t}function Yn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return b(n)&&(n=e.CURRENCY_SYM),b(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Xn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Kn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Xn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Gn(t){var e,n,r,i,o,a=0;for((n=t.indexOf(Vo))>-1&&(t=t.replace(Vo,'')),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)===Uo;r++);if(r===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===Uo;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>Fo&&(e=e.splice(0,Fo-1),a=n-1,n=1),{d:e,e:a,i:n}}function Zn(t,e,n,r){var i=t.d,o=i.length-t.i;e=b(e)?Math.min(Math.max(n,o),r):+e;var a=e+t.i,s=i[a];if(a>0){i.splice(Math.max(t.i,a));for(var c=a;c<i.length;c++)i[c]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,a=e+1),i[0]=0;for(var u=1;u<a;u++)i[u]=0}if(s>=5)if(a-1<0){for(var l=0;l>a;l--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[a-1]++;for(;o<Math.max(0,e);o++)i.push(0);var d=i.reduceRight(function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)},0);d&&(i.unshift(d),t.i++)}function Xn(t,e,n,r,i){if(!C(t)&&!_(t)||isNaN(t))return'';var o,a=!isFinite(t),s=!1,c=Math.abs(t)+'',u='';if(a)u='∞';else{o=Gn(c),Zn(o,i,e.minFrac,e.maxFrac);var l=o.d,d=o.i,f=o.e,m=[];for(s=l.reduce(function(t,e){return t&&!e},!0);d<0;)l.unshift(0),d++;d>0?m=l.splice(d,l.length):(m=l,l=[0]);var p=[];for(l.length>=e.lgSize&&p.unshift(l.splice(-e.lgSize,l.length).join(''));l.length>e.gSize;)p.unshift(l.splice(-e.gSize,l.length).join(''));l.length&&p.unshift(l.join('')),u=p.join(n),m.length&&(u+=r+m.join('')),f&&(u+='e+'+f)}return t<0&&!s?e.negPre+u+e.negSuf:e.posPre+u+e.posSuf}function Qn(t,e,n,r){var i='';for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i='-')),t=''+t;t.length<e;)t=Uo+t;return n&&(t=t.substr(t.length-e)),i+t}function Jn(t,e,n,r,i){return n=n||0,function(o){var a=o['get'+t]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Qn(a,e,r,i)}}function tr(t,e,n){return function(r,i){var o=r['get'+t]();return i[Gr((n?'STANDALONE':'')+(e?'SHORT':'')+t)][o]}}function er(t,e,n){var r=-1*n,i=r>=0?'+':'';return i+=Qn(Math[r>0?'floor':'ceil'](r/60),2)+Qn(Math.abs(r%60),2)}function nr(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function rr(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function ir(t){return function(e){var n=nr(e.getFullYear()),r=rr(e),i=+r-+n;return Qn(1+Math.round(i/6048e5),t)}}function or(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function ar(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function sr(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function cr(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=m(e[9]+e[10]),o=m(e[9]+e[11])),a.call(r,m(e[1]),m(e[2])-1,m(e[3]));var c=m(e[4]||0)-i,u=m(e[5]||0)-o,l=m(e[6]||0),d=Math.round(1e3*parseFloat('0.'+(e[7]||0)));return s.call(r,c,u,l,d),r}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,r,i){var a,s,c='',u=[];if(r=r||'mediumDate',r=t.DATETIME_FORMATS[r]||r,C(n)&&(n=zo.test(n)?m(n):e(n)),_(n)&&(n=new Date(n)),!x(n)||!isFinite(n.getTime()))return n;for(;r;)s=Bo.exec(r),s?(u=z(u,s,1),r=u.pop()):(u.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=X(i,l),n=J(n,i,!0)),o(u,function(e){a=qo[e],c+=a?a(n,t.DATETIME_FORMATS,l):'\'\''===e?'\'':e.replace(/(^'|'$)/g,'').replace(/''/g,'\'')}),c}}function ur(){return function(t,e){return b(e)&&(e=2),G(t,e)}}function lr(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):m(e),li(e)?t:(_(t)&&(t=t.toString()),i(t)?(n=!n||isNaN(n)?0:m(n),n=n<0?Math.max(0,t.length+n):n,e>=0?dr(t,n,n+e):0===n?dr(t,e,t.length):dr(t,Math.max(0,n+e),n)):t)}}function dr(t,e,n){return C(t)?t.slice(e,n):ni.call(t,e,n)}function fr(t){function n(e){return e.map(function(e){var n=1,r=v;if(M(e))r=e;else if(C(e)&&('+'!==e.charAt(0)&&'-'!==e.charAt(0)||(n='-'===e.charAt(0)?-1:1,e=e.substring(1)),''!==e&&(r=t(e),r.constant))){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})}function r(t){switch(typeof t){case'number':case'boolean':case'string':return!0;default:return!1}}function o(t){return M(t.valueOf)&&(t=t.valueOf(),r(t))?t:($(t)&&(t=t.toString(),r(t)),t)}function a(t,e){var n=typeof t;return null===t?(n='string',t='null'):'object'===n&&(t=o(t)),{value:t,type:n,index:e}}function s(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,a=e.value;'string'===r?(o=o.toLowerCase(),a=a.toLowerCase()):'object'===r&&(E(o)&&(o=t.index),E(a)&&(a=e.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}return function(t,r,o,c){function u(t,e){return{value:t,tieBreaker:{value:e,type:'number',index:e},predicateValues:d.map(function(n){return a(n.get(t),e)})}}function l(t,e){for(var n=0,r=d.length;n<r;n++){var i=m(t.predicateValues[n],e.predicateValues[n]);if(i)return i*d[n].descending*f}return m(t.tieBreaker,e.tieBreaker)*f}if(null==t)return t;if(!i(t))throw e('orderBy')('notarray','Expected array but received: {0}',t);di(r)||(r=[r]),0===r.length&&(r=['+']);var d=n(r),f=o?-1:1,m=M(c)?c:s,p=Array.prototype.map.call(t,u);return p.sort(l),t=p.map(function(t){return t.value})}}function mr(t){return M(t)&&(t={link:t}),t.restrict=t.restrict||'AC',g(t)}function pr(t,e){t.$name=e}function hr(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||'')(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Zo,this.$$element=t,this.$$animate=r,vr(this)}function vr(t){t.$$classCache={},t.$$classCache[Ia]=!(t.$$classCache[Na]=t.$$element.hasClass(Na))}function gr(t){function e(t,e,n,r){t[e]||(t[e]={}),a(t[e],n,r)}function n(t,e,n,r){t[e]&&s(t[e],n,r),$r(t[e])&&(t[e]=void 0)}function r(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function i(t,e,n){e=e?'-'+dt(e,'-'):'',r(t,Na+e,!0===n),r(t,Ia+e,!1===n)}var o=t.clazz,a=t.set,s=t.unset;o.prototype.$setValidity=function(t,o,c){b(o)?e(this,'$pending',t,c):n(this,'$pending',t,c),I(o)?o?(s(this.$error,t,c),a(this.$$success,t,c)):(a(this.$error,t,c),s(this.$$success,t,c)):(s(this.$error,t,c),s(this.$$success,t,c)),this.$pending?(r(this,Xo,!0),this.$valid=this.$invalid=void 0,i(this,'',null)):(r(this,Xo,!1),this.$valid=$r(this.$error),this.$invalid=!this.$valid,i(this,'',this.$valid));var u;u=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),i(this,t,u),this.$$parentForm.$setValidity(t,u,this)}}function $r(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function br(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function yr(t,e,n,r,i,o){Er(t,e,n,r,i,o),br(r)}function Er(t,e,n,r,i,o){var a=Kr(e[0].type);if(!i.android){var s=!1;e.on('compositionstart',function(){s=!0}),e.on('compositionend',function(){s=!1,u()})}var c,u=function(t){if(c&&(o.defer.cancel(c),c=null),!s){var i=e.val(),u=t&&t.type;'password'===a||n.ngTrim&&'false'===n.ngTrim||(i=mi(i)),(r.$viewValue!==i||''===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent('input'))e.on('input',u);else{var l=function(t,e,n){c||(c=o.defer(function(){c=null,e&&e.value===n||u(t)}))};e.on('keydown',function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)}),i.hasEvent('paste')&&e.on('paste cut',l)}e.on('change',u),da[a]&&r.$$hasNativeValidators&&a===n.type&&e.on(la,function(t){if(!c){var e=this[zr],n=e.badInput,r=e.typeMismatch;c=o.defer(function(){c=null,e.badInput===n&&e.typeMismatch===r||u(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?'':r.$viewValue;e.val()!==t&&e.val(t)}}function wr(t,e){if(x(t))return t;if(C(t)){sa.lastIndex=0;var n=sa.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,u=nr(r),l=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),c=e.getMilliseconds()),new Date(r,0,u.getDate()+l,o,a,s,c)}}return NaN}function Cr(t,e){return function(n,r){var i,a;if(x(n))return n;if(C(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),ea.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,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 NaN}}function _r(t,e,n,r){return function(i,o,a,s,c,u,l){function d(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function f(t){return y(t)&&!x(t)?n(t)||void 0:t}xr(i,o,a,s),Er(i,o,a,s,c,u);var m,p=s&&s.$options.getOption('timezone');if(s.$$parserName=t,s.$parsers.push(function(t){if(s.$isEmpty(t))return null;if(e.test(t)){var r=n(t,m);return p&&(r=J(r,p)),r}}),s.$formatters.push(function(t){if(t&&!x(t))throw Ra('datefmt','Expected `{0}` to be a date',t);return d(t)?(m=t,m&&p&&(m=J(m,p,!0)),l('date')(t,r,p)):(m=null,'')}),y(a.min)||a.ngMin){var h;s.$validators.min=function(t){return!d(t)||b(h)||n(t)>=h},a.$observe('min',function(t){h=f(t),s.$validate()})}if(y(a.max)||a.ngMax){var v;s.$validators.max=function(t){return!d(t)||b(v)||n(t)<=v},a.$observe('max',function(t){v=f(t),s.$validate()})}}}function xr(t,e,n,r){var i=e[0];(r.$$hasNativeValidators=E(i.validity))&&r.$parsers.push(function(t){var n=e.prop(zr)||{};return n.badInput||n.typeMismatch?void 0:t})}function Mr(t){t.$$parserName='number',t.$parsers.push(function(e){return t.$isEmpty(e)?null:ia.test(e)?parseFloat(e):void 0}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!_(e))throw Ra('numfmt','Expected `{0}` to be a number',e);e=e.toString()}return e})}function Ar(t){return y(t)&&!_(t)&&(t=parseFloat(t)),li(t)?void 0:t}function Tr(t){return(0|t)===t}function kr(t){var e=t.toString(),n=e.indexOf('.');if(-1===n){if(-1<t&&t<1){var r=/e-(\d+)$/.exec(e);if(r)return Number(r[1])}return 0}return e.length-n-1}function Sr(t,e,n){var r=Number(t),i=!Tr(r),o=!Tr(e),a=!Tr(n);if(i||o||a){var s=i?kr(r):0,c=o?kr(e):0,u=a?kr(n):0,l=Math.max(s,c,u),d=Math.pow(10,l);r*=d,e*=d,n*=d,i&&(r=Math.round(r)),o&&(e=Math.round(e)),a&&(n=Math.round(n))}return(r-e)%n==0}function Or(t,e,n,r,i,o){xr(t,e,n,r),Mr(r),Er(t,e,n,r,i,o);var a,s;if((y(n.min)||n.ngMin)&&(r.$validators.min=function(t){return r.$isEmpty(t)||b(a)||t>=a},n.$observe('min',function(t){a=Ar(t),r.$validate()})),(y(n.max)||n.ngMax)&&(r.$validators.max=function(t){return r.$isEmpty(t)||b(s)||t<=s},n.$observe('max',function(t){s=Ar(t),r.$validate()})),y(n.step)||n.ngStep){var c;r.$validators.step=function(t,e){return r.$isEmpty(e)||b(c)||Sr(e,a||0,c)},n.$observe('step',function(t){c=Ar(t),r.$validate()})}}function Nr(t,e,n,r,i,o){function a(t,r){e.attr(t,n[t]),n.$observe(t,r)}function s(t){if(d=Ar(t),!li(r.$modelValue))if(l){var n=e.val();d>n&&(n=d,e.val(n)),r.$setViewValue(n)}else r.$validate()}function c(t){if(f=Ar(t),!li(r.$modelValue))if(l){var n=e.val();f<n&&(e.val(f),n=f<d?d:f),r.$setViewValue(n)}else r.$validate()}function u(t){m=Ar(t),li(r.$modelValue)||(l&&r.$viewValue!==e.val()?r.$setViewValue(e.val()):r.$validate())}xr(t,e,n,r),Mr(r),Er(t,e,n,r,i,o);var l=r.$$hasNativeValidators&&'range'===e[0].type,d=l?0:void 0,f=l?100:void 0,m=l?1:void 0,p=e[0].validity,h=y(n.min),v=y(n.max),g=y(n.step),$=r.$render;r.$render=l&&y(p.rangeUnderflow)&&y(p.rangeOverflow)?function(){$(),r.$setViewValue(e.val())}:$,h&&(r.$validators.min=l?function(){return!0}:function(t,e){return r.$isEmpty(e)||b(d)||e>=d},a('min',s)),v&&(r.$validators.max=l?function(){return!0}:function(t,e){return r.$isEmpty(e)||b(f)||e<=f},a('max',c)),g&&(r.$validators.step=l?function(){return!p.stepMismatch}:function(t,e){return r.$isEmpty(e)||b(m)||Sr(e,d||0,m)},a('step',u))}function Ir(t,e,n,r,i,o){Er(t,e,n,r,i,o),br(r),r.$$parserName='url',r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||na.test(n)}}function Dr(t,e,n,r,i,o){Er(t,e,n,r,i,o),br(r),r.$$parserName='email',r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||ra.test(n)}}function Pr(t,e,n,r){var i=!n.ngTrim||'false'!==mi(n.ngTrim);b(n.name)&&e.attr('name',c());var o=function(t){var o;e[0].checked&&(o=n.value,i&&(o=mi(o)),r.$setViewValue(o,t&&t.type))};e.on('click',o),r.$render=function(){var t=n.value;i&&(t=mi(t)),e[0].checked=t===r.$viewValue},n.$observe('value',r.$render)}function Rr(t,e,n,r,i){var o;if(y(r)){if(o=t(r),!o.constant)throw Ra('constexpr','Expected constant expression for `{0}`, but saw `{1}`.',n,r);return o(e)}return i}function Hr(t,e,n,r,i,o,a,s){var c=Rr(s,t,'ngTrueValue',n.ngTrueValue,!0),u=Rr(s,t,'ngFalseValue',n.ngFalseValue,!1),l=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on('click',l),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return B(t,c)}),r.$parsers.push(function(t){return t?c:u})}function jr(t,e){function n(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i===e[o])continue t;n.push(i)}return n}function r(t){return t&&t.split(' ')}function i(t){var e=t;return di(t)?e=t.map(i).join(' '):E(t)&&(e=Object.keys(t).filter(function(e){return t[e]}).join(' ')),e}t='ngClass'+t;var a;return['$parse',function(s){return{restrict:'AC',link:function(c,u,l){function d(t){t=p(r(t),1),l.$addClass(t)}function f(t){t=p(r(t),-1),l.$removeClass(t)}function m(t,e){var i=r(t),o=r(e),a=n(i,o),s=n(o,i),c=p(a,-1),u=p(s,1);l.$addClass(u),l.$removeClass(c)}function p(t,e){var n=[];return o(t,function(t){(e>0||$[t])&&($[t]=($[t]||0)+e,$[t]===+(e>0)&&n.push(t))}),n.join(' ')}function h(t){t===e?d(g):f(g),b=t}function v(t){C(t)||(t=i(t)),b===e&&m(g,t),g=t}var g,$=u.data('$classCounts'),b=!0;$||($=gt(),u.data('$classCounts',$)),'ngClass'!==t&&(a||(a=s('$index',function(t){return 1&t})),c.$watch(a,h)),c.$watch(s(l[t],i),v)}}}]}function Lr(t,e,n,r,i,o,a,s,c){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||'',!1)(t),this.$$parentForm=Zo,this.$options=Ha,this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,Object.defineProperty(this,'$$scope',{value:t}),this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=e,vr(this),Fr(this)}function Fr(t){t.$$scope.$watch(function(e){var n=t.$$ngModelGet(e);if(n!==t.$modelValue&&(t.$modelValue===t.$modelValue||n===n)){t.$modelValue=t.$$rawModelValue=n,t.$$parserValid=void 0;for(var r=t.$formatters,i=r.length,o=n;i--;)o=r[i](o);t.$viewValue!==o&&(t.$$updateEmptyClasses(o),t.$viewValue=t.$$lastCommittedViewValue=o,t.$render(),t.$$runValidators(t.$modelValue,t.$viewValue,h))}return n})}function Vr(t){this.$$options=t}function Ur(t,e){o(e,function(e,n){y(t[n])||(t[n]=e)})}function qr(t,e){t.prop('selected',e),t.attr('selected',e)}var Br=/^\/(.+)\/([a-z]*)$/,zr='validity',Wr=Object.prototype.hasOwnProperty,Yr={objectMaxDepth:5},Kr=function(t){return C(t)?t.toLowerCase():t},Gr=function(t){return C(t)?t.toUpperCase():t},Zr=function(t){return C(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Xr=function(t){return C(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};'i'!=='I'.toLowerCase()&&(Kr=Zr,Gr=Xr);var Qr,Jr,ti,ei,ni=[].slice,ri=[].splice,ii=[].push,oi=Object.prototype.toString,ai=Object.getPrototypeOf,si=e('ng'),ci=t.angular||(t.angular={}),ui=0;Qr=t.document.documentMode;var li=Number.isNaN||function(t){return t!==t};h.$inject=[],v.$inject=[];var di=Array.isArray,fi=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,mi=function(t){return C(t)?t.trim():t},pi=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,'\\$1').replace(/\x08/g,'\\x08')},hi=function(){if(!y(hi.rules)){var e=t.document.querySelector('[ng-csp]')||t.document.querySelector('[data-ng-csp]');if(e){var n=e.getAttribute('ng-csp')||e.getAttribute('data-ng-csp');hi.rules={noUnsafeEval:!n||-1!==n.indexOf('no-unsafe-eval'),noInlineStyle:!n||-1!==n.indexOf('no-inline-style')}}else hi.rules={noUnsafeEval:function(){try{return new Function(''),!1}catch(t){return!0}}(),noInlineStyle:!1}}return hi.rules},vi=function(){if(y(vi.name_))return vi.name_;var e,n,r,i,o=$i.length;for(n=0;n<o;++n)if(r=$i[n],e=t.document.querySelector('['+r.replace(':','\\:')+'jq]')){i=e.getAttribute(r+'jq');break}return vi.name_=i},gi=/:/g,$i=['ng-','data-ng-','ng:','x-ng-'],bi=function(e){var n=e.currentScript;if(!n)return!0;if(!(n instanceof t.HTMLScriptElement||n instanceof t.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem('src'),r.getNamedItem('href'),r.getNamedItem('xlink:href')].every(function(t){if(!t)return!0;if(!t.value)return!1;var n=e.createElement('a');if(n.href=t.value,e.location.origin===n.origin)return!0;switch(n.protocol){case'http:':case'https:':case'ftp:':case'blob:':case'file:':case'data:':return!0;default:return!1}})}(t.document),yi=/[A-Z]/g,Ei=!1,wi=1,Ci=3,_i=8,xi=9,Mi=11,Ai={full:'1.6.4',major:1,minor:6,dot:4,codeName:'phenomenal-footnote'};It.expando='ng339';var Ti=It.cache={},ki=1;It._data=function(t){return this.cache[t[this.expando]]||{}};var Si=/-([a-z])/g,Oi=/^-ms-/,Ni={mouseleave:'mouseout',mouseenter:'mouseover'},Ii=e('jqLite'),Di=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Pi=/<|&#?\w+;/,Ri=/<([\w:-]+)/,Hi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ji={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,'','']};ji.optgroup=ji.option,ji.tbody=ji.tfoot=ji.colgroup=ji.caption=ji.thead,ji.th=ji.td;var Li=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},Fi=It.prototype={ready:Gt,toString:function(){var t=[];return o(this,function(e){t.push(''+e)}),'['+t.join(', ')+']'},eq:function(t){return Jr(t>=0?this[t]:this[this.length+t])},length:0,push:ii,sort:[].sort,splice:[].splice},Vi={};o('multiple,selected,checked,disabled,readOnly,required,open'.split(','),function(t){Vi[Kr(t)]=t});var Ui={};o('input,select,option,textarea,button,form,details'.split(','),function(t){Ui[t]=!0});var qi={ngMinlength:'minlength',ngMaxlength:'maxlength',ngMin:'min',ngMax:'max',ngPattern:'pattern',ngStep:'step'};o({data:Lt,removeData:Ht,hasData:kt,cleanData:function(t){for(var e=0,n=t.length;e<n;e++)Ht(t[e])}},function(t,e){It[e]=t}),o({data:Lt,inheritedData:zt,scope:function(t){return Jr.data(t,'$scope')||zt(t.parentNode||t,['$isolateScope','$scope'])},isolateScope:function(t){return Jr.data(t,'$isolateScope')||Jr.data(t,'$isolateScopeNoTemplate')},controller:Bt,injector:function(t){return zt(t,'$injector')},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Ft,css:function(t,e,n){if(e=_t(e),!y(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r,i=t.nodeType;if(i!==Ci&&2!==i&&i!==_i&&t.getAttribute){var o=Kr(e),a=Vi[o];if(!y(n))return r=t.getAttribute(e),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?t.removeAttribute(e):t.setAttribute(e,a?o:n)}},prop:function(t,e,n){if(!y(n))return t[e];t[e]=n},text:function(){function t(t,e){if(b(e)){var n=t.nodeType;return n===wi||n===Ci?t.textContent:''}t.textContent=e}return t.$dv='',t}(),val:function(t,e){if(b(e)){if(t.multiple&&'select'===L(t)){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),n}return t.value}t.value=e},html:function(t,e){if(b(e))return t.innerHTML;Pt(t,!0),t.innerHTML=e},empty:Wt},function(t,e){It.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Wt&&b(2===t.length&&t!==Ft&&t!==Bt?e:n)){if(E(e)){for(r=0;r<o;r++)if(t===Lt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=b(a)?Math.min(o,1):o,c=0;c<s;c++){var u=t(this[c],e,n);a=a?a+u:u}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}}),o({removeData:Ht,on:function(t,e,n,r){if(y(r))throw Ii('onargs','jqLite#on() does not support the `selector` or `eventData` parameters');if(Tt(t)){var i=jt(t,!0),o=i.events,a=i.handle;a||(a=i.handle=Qt(t,o));for(var s=e.indexOf(' ')>=0?e.split(' '):[e],c=s.length,u=function(e,r,i){var s=o[e];s||(s=o[e]=[],s.specialHandlerWrapper=r,'$destroy'===e||i||t.addEventListener(e,a)),s.push(n)};c--;)e=s[c],Ni[e]?(u(Ni[e],te),u(e,void 0,!0)):u(e)}},off:Rt,one:function(t,e,n){t=Jr(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;Pt(t),o(new It(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){t.nodeType===wi&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===wi||n===Mi){e=new It(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===wi){var n=t.firstChild;o(new It(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){Nt(t,Jr(e).eq(0).clone()[0])},remove:Yt,detach:function(t){Yt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;if(r){e=new It(e);for(var i=0,o=e.length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}}},addClass:Ut,removeClass:Vt,toggleClass:function(t,e,n){e&&o(e.split(' '),function(e){var r=n;b(r)&&(r=!Ft(t,e)),(r?Ut:Vt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==Mi?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Dt,triggerHandler:function(t,e,n){var r,i,a,s=e.type||e,c=jt(t),u=c&&c.events,l=u&&u[s];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:h,type:s,target:t},e.type&&(r=d(r,e)),i=yt(l),a=n?[r].concat(n):[r],o(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(t,e){It.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)b(i)?(i=t(this[o],e,n,r),y(i)&&(i=Jr(i))):qt(i,t(this[o],e,n,r));return y(i)?i:this}}),It.prototype.bind=It.prototype.on,It.prototype.unbind=It.prototype.off;var Bi=Object.create(null);re.prototype={_idx:function(t){return t===this._lastKey?this._lastIndex:(this._lastKey=t,this._lastIndex=this._keys.indexOf(t),this._lastIndex)},_transformKey:function(t){return li(t)?Bi:t},get:function(t){t=this._transformKey(t);var e=this._idx(t);if(-1!==e)return this._values[e]},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);var e=this._idx(t);return-1!==e&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var zi=re,Wi=[function(){this.$get=[function(){return zi}]}],Yi=/^([^(]+?)=>/,Ki=/^[^(]*\(\s*([^)]*)\)/m,Gi=/,/,Zi=/^\s*(_?)(\S+?)\1\s*$/,Xi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Qi=e('$injector');ce.$$annotate=se;var Ji=e('$animate'),to=1,eo=function(){this.$get=h},no=function(){var t=new zi,e=[];this.$get=['$$AnimateRunner','$rootScope',function(n,r){function i(t,e,n){var r=!1;return e&&(e=C(e)?e.split(' '):di(e)?e:[],o(e,function(e){e&&(r=!0,t[e]=n)})),r}function a(){o(e,function(e){var n=t.get(e);if(n){var r=fe(e.attr('class')),i='',a='';o(n,function(t,e){t!==!!r[e]&&(t?i+=(i.length?' ':'')+e:a+=(a.length?' ':'')+e)}),o(e,function(t){i&&Ut(t,i),a&&Vt(t,a)}),t.delete(e)}}),e.length=0}function s(n,o,s){var c=t.get(n)||{},u=i(c,o,!0),l=i(c,s,!1);(u||l)&&(t.set(n,c),e.push(n),1===e.length&&r.$$postDigest(a))}return{enabled:h,on:h,off:h,pin:h,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},ro=['$provide',function(t){var e=this,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&'.'!==n.charAt(0))throw Ji('notcsel','Expecting class selector starting with \'.\' got \'{0}\'.',n);var i=n+'-animation';e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null)){if(new RegExp('[(\\s|\\/)]ng-animate[(\\s|\\/)]').test(n.toString()))throw n=null,Ji('nongcls','$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.','ng-animate')}return n},this.$get=['$$animateQueue',function(t){function e(t,e,n){if(n){var r=de(n);!r||r.parentNode||r.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,r,i,o){return r=r&&Jr(r),i=i&&Jr(i),r=r||i.parent(),e(n,r,i),t.push(n,'enter',me(o))},move:function(n,r,i,o){return r=r&&Jr(r),i=i&&Jr(i),r=r||i.parent(),e(n,r,i),t.push(n,'move',me(o))},leave:function(e,n){return t.push(e,'leave',me(n),function(){e.remove()})},addClass:function(e,n,r){return r=me(r),r.addClass=le(r.addclass,n),t.push(e,'addClass',r)},removeClass:function(e,n,r){return r=me(r),r.removeClass=le(r.removeClass,n),t.push(e,'removeClass',r)},setClass:function(e,n,r,i){return i=me(i),i.addClass=le(i.addClass,n),i.removeClass=le(i.removeClass,r),t.push(e,'setClass',i)},animate:function(e,n,r,i,o){return o=me(o),o.from=o.from?d(o.from,n):n,o.to=o.to?d(o.to,r):r,i=i||'ng-inline-animate',o.tempClasses=le(o.tempClasses,i),t.push(e,'animate',o)}}}]}],io=function(){this.$get=['$$rAF',function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},oo=function(){this.$get=['$q','$sniffer','$$animateAsyncRun','$$isDocumentHidden','$timeout',function(t,e,n,r,i){function a(t){this.setHost(t);var e=n(),o=function(t){i(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){r()?o(t):e(t)},this._state=0}return a.chain=function(t,e){function n(){if(r===t.length)return void e(!0);t[r](function(t){if(!1===t)return void e(!1);r++,n()})}var r=0;n()},a.all=function(t,e){function n(n){i=i&&n,++r===t.length&&e(i)}var r=0,i=!0;o(t,function(t){t.done(n)})},a.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:h,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._tick(function(){e._resolve(t)}))},_resolve:function(t){2!==this._state&&(o(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},a}]},ao=function(){this.$get=['$$rAF','$q','$$AnimateRunner',function(t,e,n){return function(e,r){function i(){return t(function(){o(),s||c.complete(),s=!0}),c}function o(){a.addClass&&(e.addClass(a.addClass),a.addClass=null),a.removeClass&&(e.removeClass(a.removeClass),a.removeClass=null),a.to&&(e.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=U(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(e.css(a.from),a.from=null);var s,c=new n;return{start:i,end:i}}}]},so=e('$compile'),co=new $e;be.$inject=['$provide','$$sanitizeUriProvider'],ye.prototype.isFirstChange=function(){return this.previousValue===co};var uo=/^((?:x|data)[:\-_])/i,lo=/[:\-_]+(.)/g,fo=e('$controller'),mo=/^(\S+)(\s+as\s+([\w$]+))?$/,po=function(){this.$get=['$document',function(t){return function(e){return e?!e.nodeType&&e instanceof Jr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},ho='application/json',vo={'Content-Type':ho+';charset=utf-8'},go=/^\[|^\{(?!\{)/,$o={'[':/]$/,'{':/}$/},bo=/^\)]\}',?\n/,yo=e('$http'),Eo=ci.$interpolateMinErr=e('$interpolate');Eo.throwNoconcat=function(t){throw Eo('noconcat','Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce',t)},Eo.interr=function(t,e){return Eo('interr','Can\'t interpolate: {0}\n{1}',t,e.toString())};var wo=function(){this.$get=function(){function t(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}var e=ci.callbacks,n={};return{createCallback:function(r){var i='_'+(e.$$counter++).toString(36),o='angular.callbacks.'+i,a=t(i);return n[o]=e[i]=a,o},wasCalled:function(t){return n[t].called},getResponse:function(t){return n[t].data},removeCallback:function(t){var r=n[t];delete e[r.id],delete n[t]}}}},Co=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,_o={http:80,https:443,ftp:21},xo=e('$location'),Mo=/^\s*[\\\/]{2,}/,Ao={$$absUrl:'',$$html5:!1,$$replace:!1,absUrl:nn('$$absUrl'),url:function(t){if(b(t))return this.$$url;var e=Co.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:nn('$$protocol'),host:nn('$$host'),port:nn('$$port'),path:rn('$$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(C(t)||_(t))t=t.toString(),this.$$search=nt(t);else{if(!E(t))throw xo('isrcharg','The first argument of the `$location#search()` call must be a string or an object.');t=U(t,{}),o(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:b(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:rn('$$hash',function(t){return null!==t?t.toString():''}),replace:function(){return this.$$replace=!0,this}};o([en,tn,Je],function(t){t.prototype=Object.create(Ao),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Je||!this.$$html5)throw xo('nostate','History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API');return this.$$state=b(e)?null:e,this.$$urlUpdatedByLocation=!0,this}});var To=e('$parse'),ko={}.constructor.prototype.valueOf,So=gt();o('+ - * / % === !== == != < > <= >= && || ! = |'.split(' '),function(t){So[t]=!0});var Oo={n:'\n',f:'\f',r:'\r',t:'\t',v:'\v','\'':'\'','"':'"'},No=function(t){this.options=t};No.prototype={constructor:No,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||'\''===e)this.readString(e);else if(this.isNumber(e)||'.'===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,'(){}[].,;:?'))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=So[e],o=So[n],a=So[r];if(i||o||a){var s=a?r:o?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else 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){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return'0'<=t&&t<='9'&&'string'==typeof t},isWhitespace:function(t){return' '===t||'\r'===t||'\t'===t||'\n'===t||'\v'===t||' '===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return'a'<=t&&t<='z'||'A'<=t&&t<='Z'||'_'===t||'$'===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return'-'===t||'+'===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=y(e)?'s '+e+'-'+this.index+' ['+this.text.substring(e,n)+']':' '+n;throw To('lexerr','Lexer Error: {0} at column{1} in expression [{2}].',t,r,this.text)},readNumber:function(){for(var t='',e=this.index;this.index<this.text.length;){var n=Kr(this.text.charAt(this.index));if('.'===n||this.isNumber(n))t+=n;else{var r=this.peek();if('e'===n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&'e'===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||'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(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}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='',r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if('u'===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError('Invalid unicode escape [\\u'+a+']'),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=Oo[o]||o}i=!1}else if('\\'===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError('Unterminated quote',e)}};var Io=function(t,e){this.lexer=t,this.options=e};Io.Program='Program',Io.ExpressionStatement='ExpressionStatement',Io.AssignmentExpression='AssignmentExpression',Io.ConditionalExpression='ConditionalExpression',Io.LogicalExpression='LogicalExpression',Io.BinaryExpression='BinaryExpression',Io.UnaryExpression='UnaryExpression',Io.CallExpression='CallExpression',Io.MemberExpression='MemberExpression',Io.Identifier='Identifier',Io.Literal='Literal',Io.ArrayExpression='ArrayExpression',Io.Property='Property',Io.ObjectExpression='ObjectExpression',Io.ThisExpression='ThisExpression',Io.LocalsExpression='LocalsExpression',Io.NGValueParameter='NGValueParameter',Io.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError('is an unexpected token',this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek('}',')',';',']')&&t.push(this.expressionStatement()),!this.expect(';'))return{type:Io.Program,body:t}},expressionStatement:function(){return{type:Io.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();if(this.expect('=')){if(!mn(t))throw To('lval','Trying to assign a value to a non l-value');t={type:Io.AssignmentExpression,left:t,right:this.assignment(),operator:'='}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect('?')&&(t=this.expression(),this.consume(':'))?(e=this.expression(),{type:Io.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect('||');)t={type:Io.LogicalExpression,operator:'||',left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect('&&');)t={type:Io.LogicalExpression,operator:'&&',left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect('==','!=','===','!==');)e={type:Io.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect('<','>','<=','>=');)e={type:Io.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect('+','-');)e={type:Io.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect('*','/','%');)e={type:Io.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect('+','-','!'))?{type:Io.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.selfReferential.hasOwnProperty(this.peek().text)?t=U(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:Io.Literal,value:this.options.literals[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:Io.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(')')):'['===e.text?(t={type:Io.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume(']')):'.'===e.text?t={type:Io.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError('IMPOSSIBLE');return t},filter:function(t){for(var e=[t],n={type:Io.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(':');)e.push(this.expression());return n},parseArguments:function(){var t=[];if(')'!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(','));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError('is not a valid identifier',t),{type:Io.Identifier,name:t.text}},constant:function(){return{type:Io.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:Io.ArrayExpression,elements:t}},object:function(){var t,e=[];if('}'!==this.peekToken().text)do{if(this.peek('}'))break;t={type:Io.Property,kind:'init'},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(':'),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(':')?(this.consume(':'),t.value=this.expression()):t.value=t.key):this.peek('[')?(this.consume('['),t.key=this.expression(),this.consume(']'),t.computed=!0,this.consume(':'),t.value=this.expression()):this.throwError('invalid key',this.peek()),e.push(t)}while(this.expect(','));return this.consume('}'),{type:Io.ObjectExpression,properties:e}},throwError:function(t,e){throw To('syntax','Syntax Error: Token \'{0}\' {1} at column {2} of the expression [{3}] starting at [{4}].',e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw To('ueoe','Unexpected end of expression: {0}',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 To('ueoe','Unexpected end of expression: {0}',this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:Io.ThisExpression},$locals:{type:Io.LocalsExpression}}},gn.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},dn(t,e.$filter);var n,r='';if(this.stage='assign',n=pn(t)){this.state.computing='assign';var i=this.nextId();this.recurse(n,i),this.return_(i),r='fn.assign='+this.generateFunction('assign','s,v,l')}var a=fn(t.body);e.stage='inputs',o(a,function(t,n){var r='fn'+n;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;var i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push(r),t.watchId=n}),this.state.computing='fn',this.stage='main',this.recurse(t);var s='"'+this.USE+' '+this.STRICT+'";\n'+this.filterPrefix()+'var fn='+this.generateFunction('fn','s,l,a,i')+r+this.watchFns()+'return fn;',c=new Function('$filter','getStringValue','ifDefined','plus',s)(this.$filter,sn,cn,un);return this.state=this.stage=void 0,c},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,r){t.push(n+'=$filter('+e.escape(r)+')')}),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,n,r,i,a){var s,c,u,l,d,f=this;if(r=r||h,!a&&y(t.watchId))return e=e||this.nextId(),void this.if_('i',this.lazyAssign(e,this.computedMember('i',t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case Io.Program:o(t.body,function(e,n){f.recurse(e.expression,void 0,void 0,function(t){c=t}),n!==t.body.length-1?f.current().body.push(c,';'):f.return_(c)});break;case Io.Literal:l=this.escape(t.value),this.assign(e,l),r(e||l);break;case Io.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){c=t}),l=t.operator+'('+this.ifDefined(c,0)+')',this.assign(e,l),r(l);break;case Io.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){s=t}),this.recurse(t.right,void 0,void 0,function(t){c=t}),l='+'===t.operator?this.plus(s,c):'-'===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(c,0):'('+s+')'+t.operator+'('+c+')',this.assign(e,l),r(l);break;case Io.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_('&&'===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),r(e);break;case Io.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),r(e);break;case Io.Identifier:e=e||this.nextId(),n&&(n.context='inputs'===f.stage?'s':this.assign(this.nextId(),this.getHasOwnProperty('l',t.name)+'?l:s'),n.computed=!1,n.name=t.name),f.if_('inputs'===f.stage||f.not(f.getHasOwnProperty('l',t.name)),function(){f.if_('inputs'===f.stage||'s',function(){i&&1!==i&&f.if_(f.isNull(f.nonComputedMember('s',t.name)),f.lazyAssign(f.nonComputedMember('s',t.name),'{}')),f.assign(e,f.nonComputedMember('s',t.name))})},e&&f.lazyAssign(e,f.nonComputedMember('l',t.name))),r(e);break;case Io.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,s,void 0,function(){f.if_(f.notNull(s),function(){t.computed?(c=f.nextId(),f.recurse(t.property,c),f.getStringValue(c),i&&1!==i&&f.if_(f.not(f.computedMember(s,c)),f.lazyAssign(f.computedMember(s,c),'{}')),l=f.computedMember(s,c),f.assign(e,l),n&&(n.computed=!0,n.name=c)):(i&&1!==i&&f.if_(f.isNull(f.nonComputedMember(s,t.property.name)),f.lazyAssign(f.nonComputedMember(s,t.property.name),'{}')),l=f.nonComputedMember(s,t.property.name),f.assign(e,l),n&&(n.computed=!1,n.name=t.property.name))},function(){f.assign(e,'undefined')}),r(e)},!!i);break;case Io.CallExpression:e=e||this.nextId(),t.filter?(c=f.filter(t.callee.name),u=[],o(t.arguments,function(t){var e=f.nextId();f.recurse(t,e),u.push(e)}),l=c+'('+u.join(',')+')',f.assign(e,l),r(e)):(c=f.nextId(),s={},u=[],f.recurse(t.callee,c,s,function(){f.if_(f.notNull(c),function(){o(t.arguments,function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,function(t){u.push(t)})}),l=s.name?f.member(s.context,s.name,s.computed)+'('+u.join(',')+')':c+'('+u.join(',')+')',f.assign(e,l)},function(){f.assign(e,'undefined')}),r(e)}));break;case Io.AssignmentExpression:c=this.nextId(),s={},this.recurse(t.left,void 0,s,function(){f.if_(f.notNull(s.context),function(){f.recurse(t.right,c),l=f.member(s.context,s.name,s.computed)+t.operator+c,f.assign(e,l),r(e||l)})},1);break;case Io.ArrayExpression:u=[],o(t.elements,function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,function(t){u.push(t)})}),l='['+u.join(',')+']',this.assign(e,l),r(e||l);break;case Io.ObjectExpression:u=[],d=!1,o(t.properties,function(t){t.computed&&(d=!0)}),d?(e=e||this.nextId(),this.assign(e,'{}'),o(t.properties,function(t){t.computed?(s=f.nextId(),f.recurse(t.key,s)):s=t.key.type===Io.Identifier?t.key.name:''+t.key.value,c=f.nextId(),f.recurse(t.value,c),f.assign(f.member(e,s,t.computed),c)})):(o(t.properties,function(e){f.recurse(e.value,t.constant?void 0:f.nextId(),void 0,function(t){u.push(f.escape(e.key.type===Io.Identifier?e.key.name:''+e.key.value)+':'+t)})}),l='{'+u.join(',')+'}',this.assign(e,l)),r(e||l);break;case Io.ThisExpression:this.assign(e,'s'),r(e||'s');break;case Io.LocalsExpression:this.assign(e,'l'),r(e||'l');break;case Io.NGValueParameter:this.assign(e,'v'),r(e||'v')}},getHasOwnProperty:function(t,e){var n=t+'.'+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+'&&('+this.escape(e)+' in '+t+')')),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,'=',e,';'),t},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 r=this.current().body;r.push('if(',t,'){'),e(),r.push('}'),n&&(r.push('else{'),n(),r.push('}'))}},not:function(t){return'!('+t+')'},isNull:function(t){return t+'==null'},notNull:function(t){return t+'!=null'},nonComputedMember:function(t,e){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(e)?t+'.'+e:t+'["'+e.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+'['+e+']'},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,'getStringValue('+t+')')},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,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(C(t))return'\''+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+'\'';if(_(t))return t.toString();if(!0===t)return'true';if(!1===t)return'false';if(null===t)return'null';if(void 0===t)return'undefined';throw To('esc','IMPOSSIBLE')},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]}},$n.prototype={compile:function(t){var e=this;dn(t,e.$filter);var n,r;(n=pn(t))&&(r=this.recurse(n));var i,a=fn(t.body);a&&(i=[],o(a,function(t,n){var r=e.recurse(t);t.input=r,i.push(r),t.watchId=n}));var s=[];o(t.body,function(t){s.push(e.recurse(t.expression))});var c=0===t.body.length?h:1===t.body.length?s[0]:function(t,e){var n;return o(s,function(r){n=r(t,e)}),n};return r&&(c.assign=function(t,e,n){return r(t,n,e)}),i&&(c.inputs=i),c},recurse:function(t,e,n){var r,i,a,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case Io.Literal:return this.value(t.value,e);case Io.UnaryExpression:return i=this.recurse(t.argument),this['unary'+t.operator](i,e);case Io.BinaryExpression:case Io.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this['binary'+t.operator](r,i,e);case Io.ConditionalExpression:return this['ternary?:'](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Io.Identifier:return s.identifier(t.name,e,n);case Io.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case Io.CallExpression:return a=[],o(t.arguments,function(t){a.push(s.recurse(t))}),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,o){for(var s=[],c=0;c<a.length;++c)s.push(a[c](t,n,r,o));var u=i.apply(void 0,s,o);return e?{context:void 0,name:void 0,value:u}:u}:function(t,n,r,o){var s,c=i(t,n,r,o);if(null!=c.value){for(var u=[],l=0;l<a.length;++l)u.push(a[l](t,n,r,o));s=c.value.apply(c.context,u)}return e?{value:s}:s};case Io.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,o,a){var s=r(t,n,o,a),c=i(t,n,o,a);return s.context[s.name]=c,e?{value:c}:c};case Io.ArrayExpression:return a=[],o(t.elements,function(t){a.push(s.recurse(t))}),function(t,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,r,i));return e?{value:o}:o};case Io.ObjectExpression:return a=[],o(t.properties,function(t){t.computed?a.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):a.push({key:t.key.type===Io.Identifier?t.key.name:''+t.key.value,computed:!1,value:s.recurse(t.value)})}),function(t,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(t,n,r,i)]=a[s].value(t,n,r,i):o[a[s].key]=a[s].value(t,n,r,i);return e?{value:o}:o};case Io.ThisExpression:return function(t){return e?{value:t}:t};case Io.LocalsExpression:return function(t,n){return e?{value:n}:n};case Io.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},'unary+':function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=y(a)?+a:0,e?{value:a}:a}},'unary-':function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=y(a)?-a:-0,e?{value:a}:a}},'unary!':function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},'binary+':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),c=e(r,i,o,a),u=un(s,c);return n?{value:u}:u}},'binary-':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),c=e(r,i,o,a),u=(y(s)?s:0)-(y(c)?c:0);return n?{value:u}:u}},'binary*':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)*e(r,i,o,a);return n?{value:s}:s}},'binary/':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)/e(r,i,o,a);return n?{value:s}:s}},'binary%':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)%e(r,i,o,a);return n?{value:s}:s}},'binary===':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)===e(r,i,o,a);return n?{value:s}:s}},'binary!==':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!==e(r,i,o,a);return n?{value:s}:s}},'binary==':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)==e(r,i,o,a);return n?{value:s}:s}},'binary!=':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!=e(r,i,o,a);return n?{value:s}:s}},'binary<':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<e(r,i,o,a);return n?{value:s}:s}},'binary>':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>e(r,i,o,a);return n?{value:s}:s}},'binary<=':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<=e(r,i,o,a);return n?{value:s}:s}},'binary>=':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>=e(r,i,o,a);return n?{value:s}:s}},'binary&&':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)&&e(r,i,o,a);return n?{value:s}:s}},'binary||':function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)||e(r,i,o,a);return n?{value:s}:s}},'ternary?:':function(t,e,n,r){return function(i,o,a,s){var c=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s);return r?{value:c}:c}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(r,i,o,a){var s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});var c=s?s[t]:void 0;return e?{context:s,name:t,value:c}:c}},computedMember:function(t,e,n,r){return function(i,o,a,s){var c,u,l=t(i,o,a,s);return null!=l&&(c=e(i,o,a,s),c=sn(c),r&&1!==r&&l&&!l[c]&&(l[c]={}),u=l[c]),n?{context:l,name:c,value:u}:u}},nonComputedMember:function(t,e,n,r){return function(i,o,a,s){var c=t(i,o,a,s);r&&1!==r&&c&&null==c[e]&&(c[e]={});var u=null!=c?c[e]:void 0;return n?{context:c,name:e,value:u}:u}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}},bn.prototype={constructor:bn,parse:function(t){var e=this.ast.ast(t),n=this.astCompiler.compile(e);return n.literal=hn(e),n.constant=vn(e),n}};var Do=e('$sce'),Po={HTML:'html',CSS:'css',URL:'url',RESOURCE_URL:'resourceUrl',JS:'js'},Ro=/_([a-z])/g,Ho=e('$compile'),jo=t.document.createElement('a'),Lo=Hn(t.location.href);Fn.$inject=['$document'],Un.$inject=['$provide'];var Fo=22,Vo='.',Uo='0';Yn.$inject=['$locale'],Kn.$inject=['$locale'];var qo={yyyy:Jn('FullYear',4,0,!1,!0),yy:Jn('FullYear',2,0,!0,!0),y:Jn('FullYear',1,0,!1,!0),MMMM:tr('Month'),MMM:tr('Month',!0),MM:Jn('Month',2,1),M:Jn('Month',1,1),LLLL:tr('Month',!1,!0),dd:Jn('Date',2),d:Jn('Date',1),HH:Jn('Hours',2),H:Jn('Hours',1),hh:Jn('Hours',2,-12),h:Jn('Hours',1,-12),mm:Jn('Minutes',2),m:Jn('Minutes',1),ss:Jn('Seconds',2),s:Jn('Seconds',1),sss:Jn('Milliseconds',3),EEEE:tr('Day'),EEE:tr('Day',!0),a:or,Z:er,ww:ir(2),w:ir(1),G:ar,GG:ar,GGG:ar,GGGG:sr},Bo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,zo=/^-?\d+$/;cr.$inject=['$locale'];var Wo=g(Kr),Yo=g(Gr);fr.$inject=['$parse'];var Ko=g({restrict:'E',compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if('a'===e[0].nodeName.toLowerCase()){var n='[object SVGAnimatedString]'===oi.call(e.prop('href'))?'xlink:href':'href';e.on('click',function(t){e.attr(n)||t.preventDefault()})}}}}),Go={};o(Vi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if('multiple'!==t){var r=Ee('ng-'+e),i=n;'checked'===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Go[r]=function(){return{restrict:'A',priority:100,link:i}}}}),o(qi,function(t,e){Go[e]=function(){return{priority:100,link:function(t,n,r){if('ngPattern'===e&&'/'===r.ngPattern.charAt(0)){var i=r.ngPattern.match(Br);if(i)return void r.$set('ngPattern',new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),o(['src','srcset','href'],function(t){var e=Ee('ng-'+t);Go[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;'href'===t&&'[object SVGAnimatedString]'===oi.call(r.prop('href'))&&(a='xlinkHref',i.$attr[a]='xlink:href',o=null),i.$observe(e,function(e){if(!e)return void('href'===t&&i.$set(a,null));i.$set(a,e),Qr&&o&&r.prop(o,i[a])})}}}});var Zo={$addControl:h,$$renameControl:pr,$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h},Xo='ng-pending';hr.$inject=['$element','$attrs','$scope','$animate','$interpolate'],hr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(t){t.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(t){t.$commitViewValue()})},$addControl:function(t){pt(t.$name,'input'),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],o(this.$pending,function(e,n){this.$setValidity(n,null,t)},this),o(this.$error,function(e,n){this.$setValidity(n,null,t)},this),o(this.$$success,function(e,n){this.$setValidity(n,null,t)},this),V(this.$$controls,t),t.$$parentForm=Zo},$setDirty:function(){this.$$animate.removeClass(this.$$element,Da),this.$$animate.addClass(this.$$element,Pa),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Da,Pa+' ng-submitted'),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(t){t.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(t){t.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,'ng-submitted'),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},gr({clazz:hr,set:function(t,e,n){var r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(V(r,n),0===r.length&&delete t[e])}});var Qo=function(t){return['$timeout','$parse',function(e,n){function r(t){return''===t?n('this[""]').assign:n(t).assign||h}return{name:'form',restrict:t?'EAC':'E',require:['form','^^?form'],controller:hr,compile:function(n,i){n.addClass(Da).addClass(Na);var o=i.name?'name':!(!t||!i.ngForm)&&'ngForm';return{pre:function(t,n,i,a){var s=a[0];if(!('action'in i)){var c=function(e){t.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),e.preventDefault()};n[0].addEventListener('submit',c),n.on('$destroy',function(){e(function(){n[0].removeEventListener('submit',c)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var u=o?r(s.$name):h;o&&(u(t,s),i.$observe(o,function(e){s.$name!==e&&(u(t,void 0),s.$$parentForm.$$renameControl(s,e),(u=r(s.$name))(t,s))})),n.on('$destroy',function(){s.$$parentForm.$removeControl(s),u(t,void 0),d(s,Zo)})}}}}}]},Jo=Qo(),ta=Qo(!0),ea=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,na=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ra=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,ia=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,oa=/^(\d{4,})-(\d{2})-(\d{2})$/,aa=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,sa=/^(\d{4,})-W(\d\d)$/,ca=/^(\d{4,})-(\d\d)$/,ua=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,la='keydown wheel mousedown',da=gt();o('date,datetime-local,month,time,week'.split(','),function(t){da[t]=!0});var fa={text:yr,date:_r('date',oa,Cr(oa,['yyyy','MM','dd']),'yyyy-MM-dd'),'datetime-local':_r('datetimelocal',aa,Cr(aa,['yyyy','MM','dd','HH','mm','ss','sss']),'yyyy-MM-ddTHH:mm:ss.sss'),time:_r('time',ua,Cr(ua,['HH','mm','ss','sss']),'HH:mm:ss.sss'),week:_r('week',sa,wr,'yyyy-Www'),month:_r('month',ca,Cr(ca,['yyyy','MM']),'yyyy-MM'),number:Or,url:Ir,email:Dr,radio:Pr,range:Nr,checkbox:Hr,hidden:h,button:h,submit:h,reset:h,file:h},ma=['$browser','$sniffer','$filter','$parse',function(t,e,n,r){return{restrict:'E',require:['?ngModel'],link:{pre:function(i,o,a,s){s[0]&&(fa[Kr(a.type)]||fa.text)(i,o,a,s[0],e,t,n,r)}}}}],pa=/^(true|false|\d+)$/,ha=function(){function t(t,e,n){var r=y(n)?n:9===Qr?'':null;t.prop('value',r),e.$set('value',n)}return{restrict:'A',priority:100,compile:function(e,n){return pa.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,function(e){t(n,r,e)})}}}},va=['$compile',function(t){return{restrict:'AC',compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=$t(t)})}}}}],ga=['$interpolate','$compile',function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe('ngBindTemplate',function(t){r.textContent=b(t)?'':t})}}}}],$a=['$sce','$parse','$compile',function(t,e,n){return{restrict:'A',compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(e){return t.valueOf(e)});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){var n=o(e);r.html(t.getTrustedHtml(n)||'')})}}}}],ba=g({restrict:'A',require:'ngModel',link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),ya=jr('',!0),Ea=jr('Odd',0),wa=jr('Even',1),Ca=mr({compile:function(t,e){e.$set('ngCloak',void 0),t.removeClass('ng-cloak')}}),_a=[function(){return{restrict:'A',scope:!0,controller:'@',priority:500}}],xa={},Ma={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=Ee('ng-'+t);xa[e]=['$parse','$rootScope',function(n,r){return{restrict:'A',compile:function(i,o){var a=n(o[e]);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};Ma[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var Aa=['$animate','$compile',function(t,e){return{multiElement:!0,transclude:'element',priority:600,terminal:!0,restrict:'A',$$tlb:!0,link:function(n,r,i,o,a){var s,c,u;n.$watch(i.ngIf,function(n){n?c||a(function(n,o){c=o,n[n.length++]=e.$$createComment('end ngIf',i.ngIf),s={clone:n},t.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),c&&(c.$destroy(),c=null),s&&(u=vt(s.clone),t.leave(u).done(function(t){!1!==t&&(u=null)}),s=null))})}}}],Ta=['$templateRequest','$anchorScroll','$animate',function(t,e,n){return{restrict:'ECA',priority:400,terminal:!0,transclude:'element',controller:ci.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||'',s=i.autoscroll;return function(r,i,c,u,l){var d,f,m,p=0,h=function(){f&&(f.remove(),f=null),d&&(d.$destroy(),d=null),m&&(n.leave(m).done(function(t){!1!==t&&(f=null)}),f=m,m=null)};r.$watch(o,function(o){var c=function(t){!1===t||!y(s)||s&&!r.$eval(s)||e()},f=++p;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&f===p){var e=r.$new();u.template=t;var s=l(e,function(t){h(),n.enter(t,null,i).done(c)});d=e,m=s,d.$emit('$includeContentLoaded',o),r.$eval(a)}},function(){r.$$destroyed||f===p&&(h(),r.$emit('$includeContentError',o))}),r.$emit('$includeContentRequested',o)):(h(),u.template=null)})}}}}],ka=['$compile',function(e){return{restrict:'ECA',priority:-400,require:'ngInclude',link:function(n,r,i,o){if(oi.call(r[0]).match(/SVG/))return r.empty(),void e(St(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],Sa=mr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Oa=function(){return{restrict:'A',priority:100,require:'ngModel',link:function(t,e,n,r){var i=n.ngList||', ',a='false'!==n.ngTrim,s=a?mi(i):i,c=function(t){if(!b(t)){var e=[];return t&&o(t.split(s),function(t){t&&e.push(a?mi(t):t)}),e}};r.$parsers.push(c),r.$formatters.push(function(t){if(di(t))return t.join(i)}),r.$isEmpty=function(t){return!t||!t.length}}}},Na='ng-valid',Ia='ng-invalid',Da='ng-pristine',Pa='ng-dirty',Ra=e('ngModel');Lr.$inject=['$scope','$exceptionHandler','$attrs','$element','$parse','$animate','$timeout','$q','$interpolate'],Lr.prototype={$$initGetterSetters:function(){if(this.$options.getOption('getterSetter')){var t=this.$$parse(this.$$attr.ngModel+'()'),e=this.$$parse(this.$$attr.ngModel+'($$$p)');this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return M(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){M(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw Ra('nonassign','Expression \'{0}\' is non-assignable. Element: {1}',this.$$attr.ngModel,tt(this.$$element))},$render:h,$isEmpty:function(t){return b(t)||''===t||null===t||t!==t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,'ng-not-empty'),this.$$animate.addClass(this.$$element,'ng-empty')):(this.$$animate.removeClass(this.$$element,'ng-empty'),this.$$animate.addClass(this.$$element,'ng-not-empty'))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Pa),this.$$animate.addClass(this.$$element,Da)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Da),this.$$animate.addClass(this.$$element,Pa),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,'ng-untouched','ng-touched')},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,'ng-touched','ng-untouched')},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!li(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption('allowInvalid'),o=this;this.$$runValidators(e,t,function(t){i||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(t,e,n){function r(t,e){a===s.$$currentValidationRunId&&s.$setValidity(t,e)}function i(t){a===s.$$currentValidationRunId&&n(t)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;return function(){var t=s.$$parserName||'parse';return b(s.$$parserValid)?(r(t,null),!0):(s.$$parserValid||(o(s.$validators,function(t,e){r(e,null)}),o(s.$asyncValidators,function(t,e){r(e,null)})),r(t,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(t,e));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(t,e){r(e,null)}),!1)}()?void function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(t,e);if(!D(s))throw Ra('nopromise','Expected asynchronous validator to return a promise but got \'{0}\' instead.',s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},h):i(!0)}():void i(!1)},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||''===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function t(){r.$modelValue!==o&&r.$$writeModelToScope()}var e=this.$$lastCommittedViewValue,n=e,r=this;if(this.$$parserValid=!b(n)||void 0,this.$$parserValid)for(var i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),b(n)){this.$$parserValid=!1;break}li(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var o=this.$modelValue,a=this.$options.getOption('allowInvalid');this.$$rawModelValue=n,a&&(this.$modelValue=n,t()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(e){a||(r.$modelValue=e?n:void 0,t())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(t){try{t()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption('updateOnDefault')&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption('debounce');_(e[t])?e=e[t]:_(e.default)&&(e=e.default),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;e>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},e):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t)}},gr({clazz:Lr,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Ha,ja=['$rootScope',function(t){return{restrict:'A',require:['ngModel','^?form','^?ngModelOptions'],controller:Lr,priority:1,compile:function(e){return e.addClass(Da).addClass('ng-untouched').addClass(Na),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe('name',function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on('$destroy',function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$options.getOption('updateOn')&&n.on(a.$options.getOption('updateOn'),function(t){a.$$debounceViewValueCommit(t&&t.type)}),n.on('blur',function(){a.$touched||(t.$$phase?e.$evalAsync(o):e.$apply(o))})}}}}}],La=/(\s+|^)default(\s+|$)/;Vr.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return t=d({},t),o(t,function(n,r){'$inherit'===n?'*'===r?e=!0:(t[r]=this.$$options[r],'updateOn'===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):'updateOn'===r&&(t.updateOnDefault=!1,t[r]=mi(n.replace(La,function(){return t.updateOnDefault=!0,' '})))},this),e&&(delete t['*'],Ur(t,this.$$options)),Ur(t,Ha.$$options),new Vr(t)}},Ha=new Vr({updateOn:'',updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Fa=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=['$attrs','$scope'],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Ha,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:'A',priority:10,require:{parentCtrl:'?^^ngModelOptions'},bindToController:!0,controller:t}},Va=mr({terminal:!0,priority:1e3}),Ua=e('ngOptions'),qa=/^\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]+?))?$/,Ba=['$compile','$document','$parse',function(e,n,r){function a(t,e,n){function o(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function a(t){var e;if(!u&&i(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(qa);if(!s)throw Ua('iexp','Expected expression in form of \'_select_ (as _label_)? for (_key_,)?_value_ in _collection_\' but got \'{0}\'. Element: {1}',t,tt(e));var c=s[5]||s[7],u=s[6],l=/ as /.test(s[0])&&s[1],d=s[9],f=r(s[2]?s[1]:c),m=l&&r(l),p=m||f,h=d&&r(d),v=d?function(t,e){return h(n,e)}:function(t){return ne(t)},g=function(t,e){return v(t,C(t,e))},$=r(s[2]||s[1]),b=r(s[3]||''),y=r(s[4]||''),E=r(s[8]),w={},C=u?function(t,e){return w[u]=e,w[c]=t,w}:function(t){return w[c]=t,w};return{trackBy:d,getTrackByValue:g,getWatchables:r(E,function(t){var e=[];t=t||[];for(var r=a(t),i=r.length,o=0;o<i;o++){var c=t===r?o:r[o],u=t[c],l=C(u,c),d=v(u,l);if(e.push(d),s[2]||s[1]){var f=$(n,l);e.push(f)}if(s[4]){var m=y(n,l);e.push(m)}}return e}),getOptions:function(){for(var t=[],e={},r=E(n)||[],i=a(r),s=i.length,c=0;c<s;c++){var u=r===i?c:i[c],l=r[u],f=C(l,u),m=p(n,f),h=v(m,f),w=$(n,f),_=b(n,f),x=y(n,f),M=new o(h,m,w,_,x);t.push(M),e[h]=M}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[g(t)]},getViewValueFromOption:function(t){return d?U(t.viewValue):t.viewValue}}}}}function s(t,r,i,s){function l(t,e){var n=c.cloneNode(!1);e.appendChild(n),f(t,n)}function d(t){var e=w.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}function f(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),e.value=t.selectValue}function m(){var t=w&&p.readValue();if(w)for(var e=w.items.length-1;e>=0;e--){var n=w.items[e];Yt(y(n.group)?n.element.parentNode:n.element)}w=C.getOptions();var i={};if(E&&r.prepend(p.emptyOption),w.items.forEach(function(t){var e;y(t.group)?(e=i[t.group],e||(e=u.cloneNode(!1),_.appendChild(e),e.label=null===t.group?'null':t.group,i[t.group]=e),l(t,e)):l(t,_)}),r[0].appendChild(_),h.$render(),!h.$isEmpty(t)){var o=p.readValue();(C.trackBy||v?B(t,o):t===o)||(h.$setViewValue(o),h.$render())}}for(var p=s[0],h=s[1],v=i.multiple,g=0,$=r.children(),b=$.length;g<b;g++)if(''===$[g].value){p.hasEmptyOption=!0,p.emptyOption=$.eq(g);break}var E=!!p.emptyOption;Jr(c.cloneNode(!1)).val('?');var w,C=a(i.ngOptions,r,t),_=n[0].createDocumentFragment();p.generateUnknownOptionValue=function(t){return'?'},v?(p.writeValue=function(t){var e=t&&t.map(d)||[];w.items.forEach(function(t){t.element.selected&&!F(e,t)&&(t.element.selected=!1)})},p.readValue=function(){var t=r.val()||[],e=[];return o(t,function(t){var n=w.selectValueMap[t];n&&!n.disabled&&e.push(w.getViewValueFromOption(n))}),e},C.trackBy&&t.$watchCollection(function(){if(di(h.$viewValue))return h.$viewValue.map(function(t){return C.getTrackByValue(t)})},function(){h.$render()})):(p.writeValue=function(t){var e=w.selectValueMap[r.val()],n=w.getOptionFromViewValue(t);e&&e.element.removeAttribute('selected'),n?(r[0].value!==n.selectValue&&(p.removeUnknownOption(),p.unselectEmptyOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute('selected','selected')):E?p.selectEmptyOption():p.unknownOption.parent().length?p.updateUnknownOption(t):p.renderUnknownOption(t)},p.readValue=function(){var t=w.selectValueMap[r.val()];return t&&!t.disabled?(p.unselectEmptyOption(),p.removeUnknownOption(),w.getViewValueFromOption(t)):null},C.trackBy&&t.$watch(function(){return C.getTrackByValue(h.$viewValue)},function(){h.$render()})),E&&(p.emptyOption.remove(),e(p.emptyOption)(t),p.emptyOption[0].nodeType===_i?(p.hasEmptyOption=!1,p.registerOption=function(t,e){''===e.val()&&(p.hasEmptyOption=!0,p.emptyOption=e,p.emptyOption.removeClass('ng-scope'),h.$render(),e.on('$destroy',function(){p.hasEmptyOption=!1,p.emptyOption=void 0}))}):p.emptyOption.removeClass('ng-scope')),r.empty(),m(),t.$watchCollection(C.getWatchables,m)}var c=t.document.createElement('option'),u=t.document.createElement('optgroup');return{restrict:'A',terminal:!0,require:['select','ngModel'],link:{pre:function(t,e,n,r){r[0].registerOption=h},post:s}}}],za=['$locale','$interpolate','$log',function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,c){function u(t){s.text(t||'')}var l,d=c.count,f=c.$attr.when&&s.attr(c.$attr.when),m=c.offset||0,p=a.$eval(f)||{},v={},g=e.startSymbol(),$=e.endSymbol(),y=g+d+'-'+m+$,E=ci.noop;o(c,function(t,e){var n=i.exec(e);if(n){var r=(n[1]?'-':'')+Kr(n[2]);p[r]=s.attr(c.$attr[e])}}),o(p,function(t,n){v[n]=e(t.replace(r,y))}),a.$watch(d,function(e){var r=parseFloat(e),i=li(r);if(i||r in p||(r=t.pluralCat(r-m)),!(r===l||i&&li(l))){E();var o=v[r];b(o)?(null!=e&&n.debug('ngPluralize: no rule defined for \''+r+'\' in '+f),E=h,u()):E=a.$watch(o,u),l=r}})}}}],Wa=['$parse','$animate','$compile',function(t,n,r){var a=e('ngRepeat'),s=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=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))},c=function(t){return t.clone[0]},u=function(t){return t.clone[t.clone.length-1]};return{restrict:'A',multiElement:!0,transclude:'element',priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,l){var d=l.ngRepeat,f=r.$$createComment('end ngRepeat',d),m=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw a('iexp','Expected expression in form of \'_item_ in _collection_[ track by _id_]\' but got \'{0}\'.',d);var p=m[1],h=m[2],v=m[3],g=m[4];if(!(m=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a('iidexp','\'_item_\' in \'_item_ in _collection_\' should be an identifier or \'(_key_, _value_)\' expression, but got \'{0}\'.',p);var $=m[3]||m[1],b=m[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw a('badident','alias \'{0}\' is invalid --- must be a valid JS identifier which is not a reserved name.',v);var y,E,w,C,_={$id:ne};return g?y=t(g):(w=function(t,e){return ne(e)},C=function(t){return t}),function(t,e,r,l,m){y&&(E=function(e,n,r){return b&&(_[b]=e),_[$]=n,_.$index=r,y(t,_)});var p=gt();t.$watchCollection(h,function(r){var l,h,g,y,_,x,M,A,T,k,S,O,N=e[0],I=gt();if(v&&(t[v]=r),i(r))T=r,A=E||w;else{A=E||C,T=[];for(var D in r)Wr.call(r,D)&&'$'!==D.charAt(0)&&T.push(D)}for(y=T.length,S=new Array(y),l=0;l<y;l++)if(_=r===T?l:T[l],x=r[_],M=A(_,x,l),p[M])k=p[M],delete p[M],I[M]=k,S[l]=k;else{if(I[M])throw o(S,function(t){t&&t.scope&&(p[t.id]=t)}),a('dupes','Duplicates in a repeater are not allowed. Use \'track by\' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}',d,M,x);S[l]={id:M,scope:void 0,clone:void 0},I[M]=!0}for(var P in p){if(k=p[P],O=vt(k.clone),n.leave(O),O[0].parentNode)for(l=0,h=O.length;l<h;l++)O[l].$$NG_REMOVED=!0;k.scope.$destroy()}for(l=0;l<y;l++)if(_=r===T?l:T[l],x=r[_],k=S[l],k.scope){g=N;do{g=g.nextSibling}while(g&&g.$$NG_REMOVED);c(k)!==g&&n.move(vt(k.clone),null,N),N=u(k),s(k.scope,l,$,x,b,_,y)}else m(function(t,e){k.scope=e;var r=f.cloneNode(!1);t[t.length++]=r,n.enter(t,null,N),N=r,k.clone=t,I[k.id]=k,s(k.scope,l,$,x,b,_,y)});p=I})}}}}],Ya=['$animate',function(t){return{restrict:'A',multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?'removeClass':'addClass'](n,'ng-hide',{tempClasses:'ng-hide-animate'})})}}}],Ka=['$animate',function(t){return{restrict:'A',multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?'addClass':'removeClass'](n,'ng-hide',{tempClasses:'ng-hide-animate'})})}}}],Ga=mr(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)}),Za=['$animate','$compile',function(t,e){return{require:'ngSwitch',controller:['$scope',function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,c=[],u=[],l=[],d=[],f=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};n.$watch(s,function(n){for(var r,i;l.length;)t.cancel(l.pop());for(r=0,i=d.length;r<i;++r){var s=vt(u[r].clone);d[r].$destroy();(l[r]=t.leave(s)).done(f(l,r))}u.length=0,d.length=0,(c=a.cases['!'+n]||a.cases['?'])&&o(c,function(n){n.transclude(function(r,i){d.push(i);var o=n.element;r[r.length++]=e.$$createComment('end ngSwitchWhen');var a={clone:r};u.push(a),t.enter(r,o.parent(),o)})})})}}}],Xa=mr({transclude:'element',priority:1200,require:'^ngSwitch',multiElement:!0,link:function(t,e,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(t,e,n){return n[e-1]!==t}),function(t){r.cases['!'+t]=r.cases['!'+t]||[],r.cases['!'+t].push({transclude:i,element:e})})}}),Qa=mr({transclude:'element',priority:1200,require:'^ngSwitch',multiElement:!0,link:function(t,e,n,r,i){r.cases['?']=r.cases['?']||[],r.cases['?'].push({transclude:i,element:e})}}),Ja=e('ngTransclude'),ts=['$compile',function(t){return{restrict:'EAC',terminal:!0,compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){function a(t,n){t.length&&c(t)?e.append(t):(s(),n.$destroy())}function s(){n(t,function(t){e.append(t)})}function c(t){for(var e=0,n=t.length;e<n;e++){var r=t[e];if(r.nodeType!==Ci||r.nodeValue.trim())return!0}}if(!o)throw Ja('orphan','Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}',tt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude='');var u=r.ngTransclude||r.ngTranscludeSlot;o(a,null,u),u&&!o.isSlotFilled(u)&&s()}}}}],es=['$templateCache',function(t){return{restrict:'E',terminal:!0,compile:function(e,n){if('text/ng-template'===n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],ns={$setViewValue:h,$render:h},rs=['$element','$scope',function(e,n){function r(){s||(s=!0,n.$$postDigest(function(){s=!1,o.ngModelCtrl.$render()}))}function i(t){c||(c=!0,n.$$postDigest(function(){n.$$destroyed||(c=!1,o.ngModelCtrl.$setViewValue(o.readValue()),t&&o.ngModelCtrl.$render())}))}var o=this,a=new zi;o.selectValueMap={},o.ngModelCtrl=ns,o.multiple=!1,o.unknownOption=Jr(t.document.createElement('option')),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(t){var n=o.generateUnknownOptionValue(t);o.unknownOption.val(n),e.prepend(o.unknownOption),qr(o.unknownOption,!0),e.val(n)},o.updateUnknownOption=function(t){var n=o.generateUnknownOptionValue(t);o.unknownOption.val(n),qr(o.unknownOption,!0),e.val(n)},o.generateUnknownOptionValue=function(t){return'? '+ne(t)+' ?'},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(e.val(''),qr(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&o.emptyOption.removeAttr('selected')},n.$on('$destroy',function(){o.renderUnknownOption=h}),o.readValue=function(){var t=e.val(),n=t in o.selectValueMap?o.selectValueMap[t]:t;return o.hasOption(n)?n:null},o.writeValue=function(t){var n=e[0].options[e[0].selectedIndex];if(n&&qr(Jr(n),!1),o.hasOption(t)){o.removeUnknownOption();var r=ne(t);e.val(r in o.selectValueMap?r:t);var i=e[0].options[e[0].selectedIndex];qr(Jr(i),!0)}else null==t&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(t):o.renderUnknownOption(t)},o.addOption=function(t,e){if(e[0].nodeType!==_i){pt(t,'"option value"'),''===t&&(o.hasEmptyOption=!0,o.emptyOption=e);var n=a.get(t)||0;a.set(t,n+1),r()}},o.removeOption=function(t){var e=a.get(t);e&&(1===e?(a.delete(t),''===t&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(t,e-1))},o.hasOption=function(t){return!!a.get(t)};var s=!1,c=!1;o.registerOption=function(t,e,n,a,s){if(n.$attr.ngValue){var c,u=NaN;n.$observe('value',function(t){var n,r=e.prop('selected');y(u)&&(o.removeOption(c),delete o.selectValueMap[u],n=!0),u=ne(t),c=t,o.selectValueMap[u]=t,o.addOption(t,e),e.attr('value',u),n&&r&&i()})}else a?n.$observe('value',function(t){o.readValue();var n,r=e.prop('selected');y(c)&&(o.removeOption(c),n=!0),c=t,o.addOption(t,e),n&&r&&i()}):s?t.$watch(s,function(t,r){n.$set('value',t);var a=e.prop('selected');r!==t&&o.removeOption(r),o.addOption(t,e),r&&a&&i()}):o.addOption(n.value,e);n.$observe('disabled',function(t){('true'===t||t&&e.prop('selected'))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),e.on('$destroy',function(){var t=o.readValue(),e=n.value;o.removeOption(e),r(),(o.multiple&&t&&-1!==t.indexOf(e)||t===e)&&i(!0)})}}],is=function(){function t(t,e,n,r){var i=r[0],a=r[1];if(!a)return void(i.registerOption=h);if(i.ngModelCtrl=a,e.on('change',function(){i.removeUnknownOption(),t.$apply(function(){a.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var t=[];return o(e.find('option'),function(e){if(e.selected&&!e.disabled){var n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),t},i.writeValue=function(t){o(e.find('option'),function(e){var n=!!t&&(F(t,e.value)||F(t,i.selectValueMap[e.value]));n!==e.selected&&qr(Jr(e),n)})};var s,c=NaN;t.$watch(function(){c!==a.$viewValue||B(s,a.$viewValue)||(s=yt(a.$viewValue),a.$render()),c=a.$viewValue}),a.$isEmpty=function(t){return!t||0===t.length}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:'E',require:['select','?ngModel'],controller:rs,priority:1,link:{pre:t,post:e}}},os=['$interpolate',function(t){return{restrict:'E',priority:100,compile:function(e,n){var r,i;return y(n.ngValue)||(y(n.value)?r=t(n.value,!0):(i=t(e.text(),!0))||n.$set('value',e.text())),function(t,e,n){var o=e.parent(),a=o.data('$selectController')||o.parent().data('$selectController');a&&a.registerOption(t,e,n,r,i)}}}}],as=function(){return{restrict:'A',require:'?ngModel',link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe('required',function(){r.$validate()}))}}},ss=function(){return{restrict:'A',require:'?ngModel',link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe('pattern',function(t){if(C(t)&&t.length>0&&(t=new RegExp('^'+t+'$')),t&&!t.test)throw e('ngPattern')('noregexp','Expected {0} to be a RegExp but was {1}. Element: {2}',a,t,tt(n));o=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||b(o)||o.test(e)}}}}},cs=function(){return{restrict:'A',require:'?ngModel',link:function(t,e,n,r){if(r){var i=-1;n.$observe('maxlength',function(t){var e=m(t);i=li(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},us=function(){return{restrict:'A',require:'?ngModel',link:function(t,e,n,r){if(r){var i=0;n.$observe('minlength',function(t){i=m(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};if(t.angular.bootstrap)return void(t.console&&console.log('WARNING: Tried to load angular more than once.'));!function(){var e;if(!Ei){var n=vi();ti=b(n)?t.jQuery:n?t[n]:void 0,ti&&ti.fn.on?(Jr=ti,d(ti.fn,{scope:Fi.scope,isolateScope:Fi.isolateScope,controller:Fi.controller,injector:Fi.injector,inheritedData:Fi.inheritedData}),e=ti.cleanData,ti.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)(n=ti._data(r,'events'))&&n.$destroy&&ti(r).triggerHandler('$destroy');e(t)}):Jr=It,ci.element=Jr,Ei=!0}}(),function(r){d(r,{errorHandlingConfig:n,bootstrap:ct,copy:U,extend:d,merge:f,equals:B,element:Jr,forEach:o,injector:ce,noop:h,bind:Y,toJson:G,fromJson:Z,identity:v,isUndefined:b,isDefined:y,isString:C,isFunction:M,isObject:E,isNumber:_,isElement:H,isArray:di,version:Ai,isDate:x,lowercase:Kr,uppercase:Gr,callbacks:{$$counter:0},getTestability:lt,reloadWithDebugInfo:ut,$$minErr:e,$$csp:hi,$$encodeUriSegment:it,$$encodeUriQuery:ot,$$stringify:$t}),ei=bt(t),ei('ng',['ngLocale'],['$provide',function(t){t.provider({$$sanitizeUri:An}),t.provider('$compile',be).directive({a:Ko,input:ma,textarea:ma,form:Jo,script:es,select:is,option:os,ngBind:va,ngBindHtml:$a,ngBindTemplate:ga,ngClass:ya,ngClassEven:wa,ngClassOdd:Ea,ngCloak:Ca,ngController:_a,ngForm:ta,ngHide:Ka,ngIf:Aa,ngInclude:Ta,ngInit:Sa,ngNonBindable:Va,ngPluralize:za,ngRepeat:Wa,ngShow:Ya,ngStyle:Ga,ngSwitch:Za,ngSwitchWhen:Xa,ngSwitchDefault:Qa,ngOptions:Ba,ngTransclude:ts,ngModel:ja,ngList:Oa,ngChange:ba,pattern:ss,ngPattern:ss,required:as,ngRequired:as,minlength:us,ngMinlength:us,maxlength:cs,ngMaxlength:cs,ngValue:ha,ngModelOptions:Fa}).directive({ngInclude:ka}).directive(Go).directive(xa),t.provider({$anchorScroll:ue,$animate:ro,$animateCss:ao,$$animateJs:eo,$$animateQueue:no,$$AnimateRunner:oo,$$animateAsyncRun:io,$browser:he,$cacheFactory:ve,$controller:xe,$document:Me,$$isDocumentHidden:Ae,$exceptionHandler:Te,$filter:Un,$$forceReflow:po,$interpolate:Ue,$interval:qe,$http:je,$httpParamSerializer:Se,$httpParamSerializerJQLike:Oe,$httpBackend:Fe,$xhrFactory:Le,$jsonpCallbacks:wo,$location:on,$log:an,$parse:En,$rootScope:Mn,$q:wn,$$q:Cn,$sce:Nn,$sceDelegate:On,$sniffer:In,$templateCache:ge,$templateRequest:Dn,$$testability:Pn,$timeout:Rn,$window:Ln,$$rAF:xn,$$jqLite:ee,$$Map:Wi,$$cookieReader:Vn})}]).info({angularVersion:'1.6.4'})}(ci),ci.module('ngLocale',[],['$provide',function(t){function e(t){t+='';var e=t.indexOf('.');return-1==e?0:t.length-e-1}function n(t,n){var r=n;void 0===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r);return{v:r,f:(t*i|0)%i}}var r={ZERO:'zero',ONE:'one',TWO:'two',FEW:'few',MANY:'many',OTHER:'other'};t.value('$locale',{DATETIME_FORMATS:{AMPMS:['AM','PM'],DAY:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],ERANAMES:['Before Christ','Anno Domini'],ERAS:['BC','AD'],FIRSTDAYOFWEEK:6,MONTH:['January','February','March','April','May','June','July','August','September','October','November','December'],SHORTDAY:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],SHORTMONTH:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],STANDALONEMONTH:['January','February','March','April','May','June','July','August','September','October','November','December'],WEEKENDRANGE:[5,6],fullDate:'EEEE, MMMM d, y',longDate:'MMMM d, y',medium:'MMM d, y h:mm:ss a',mediumDate:'MMM d, y',mediumTime:'h:mm:ss a',short:'M/d/yy h:mm a',shortDate:'M/d/yy',shortTime:'h:mm a'},NUMBER_FORMATS:{CURRENCY_SYM:'$',DECIMAL_SEP:'.',GROUP_SEP:',',PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:'-',negSuf:'',posPre:'',posSuf:''},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:'-¤',negSuf:'',posPre:'¤',posSuf:''}]},id:'en-us',localeID:'en_US',pluralCat:function(t,e){var i=0|t,o=n(t,e);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),Jr(function(){st(t.document,ct)})}(window),!window.angular.$$csp().noInlineStyle&&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>')},function(t,e){/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e){'use strict';function n(t,e,n){if(!t)throw ct('areq','Argument \'{0}\' is {1}',e||'?',n||'required');return t}function r(t,e){return t||e?t?e?(W(t)&&(t=t.join(' ')),W(e)&&(e=e.join(' ')),t+' '+e):t:e:''}function i(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function o(t,e,n){var r='';return t=W(t)?t:t&&X(t)&&t.length?t.split(/\s+/):[],z(t,function(t,i){t&&t.length>0&&(r+=i>0?' ':'',r+=n?e+t:t+e)}),r}function a(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function s(t){if(t instanceof J)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===H)return t;break;default:return J(c(t))}if(t.nodeType===H)return J(t)}function c(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===H)return n}}function u(t,e,n){z(e,function(e){t.addClass(e,n)})}function l(t,e,n){z(e,function(e){t.removeClass(e,n)})}function d(t){return function(e,n){n.addClass&&(u(t,e,n.addClass),n.addClass=null),n.removeClass&&(l(t,e,n.removeClass),n.removeClass=null)}}function f(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||tt;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=tt},t.$$prepared=!0}return t}function m(t,e){p(t,e),h(t,e)}function p(t,e){e.from&&(t.css(e.from),e.from=null)}function h(t,e){e.to&&(t.css(e.to),e.to=null)}function v(t,e,n){var r=e.options||{},i=n.options||{},o=(r.addClass||'')+' '+(i.addClass||''),a=(r.removeClass||'')+' '+(i.removeClass||''),s=g(t.attr('class'),o,a);i.preparationClasses&&(r.preparationClasses=_(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var c=r.domOperation!==tt?r.domOperation:null;return B(r,i),c&&(r.domOperation=c),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function g(t,e,n){function r(t){X(t)&&(t=t.split(' '));var e={};return z(t,function(t){t.length&&(e[t]=!0)}),e}var i={};t=r(t),e=r(e),z(e,function(t,e){i[e]=1}),n=r(n),z(n,function(t,e){i[e]=1===i[e]?null:-1});var o={addClass:'',removeClass:''};return z(i,function(e,n){var r,i;1===e?(r='addClass',i=!t[n]||t[n+L]):-1===e&&(r='removeClass',i=t[n]||t[n+j]),i&&(o[r].length&&(o[r]+=' '),o[r]+=n)}),o}function $(t){return t instanceof J?t[0]:t}function b(t,e,n){var r='';e&&(r=o(e,F,!0)),n.addClass&&(r=_(r,o(n.addClass,j))),n.removeClass&&(r=_(r,o(n.removeClass,L))),r.length&&(n.preparationClasses=r,t.addClass(r))}function y(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function E(t,e){var n=e?'-'+e+'s':'';return C(t,[at,n]),[at,n]}function w(t,e){var n=e?'paused':'',r=P+rt;return C(t,[r,n]),[r,n]}function C(t,e){var n=e[0],r=e[1];t.style[n]=r}function _(t,e){return t?e?t+' '+e:t:e}function x(t){return[ot,t+'s']}function M(t,e){return[e?it:at,t+'s']}function A(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return z(n,function(t,e){var n=i[t];if(n){var o=n.charAt(0);('-'===o||'+'===o||o>=0)&&(n=T(n)),0===n&&(n=null),r[e]=n}}),r}function T(t){var e=0,n=t.split(/\s*,\s*/);return z(n,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 k(t){return 0===t||null!=t}function S(t,e){var n=I,r=t+'s';return e?n+=et:r+=' linear all',[n,r]}function O(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function N(t,e,n){z(n,function(n){t[n]=Y(t[n])?t[n]:e.style.getPropertyValue(n)})}var I,D,P,R,H=1,j='-add',L='-remove',F='ng-',V='ng-animate',U='$$ngAnimateChildren';void 0===t.ontransitionend&&void 0!==t.onwebkittransitionend?('-webkit-',I='WebkitTransition',D='webkitTransitionEnd transitionend'):(I='transition',D='transitionend'),void 0===t.onanimationend&&void 0!==t.onwebkitanimationend?('-webkit-',P='WebkitAnimation',R='webkitAnimationEnd animationend'):(P='animation',R='animationend');var q,B,z,W,Y,K,G,Z,X,Q,J,tt,et='Duration',nt='TimingFunction',rt='PlayState',it=P+'Delay',ot=P+et,at=I+'Delay',st=I+et,ct=e.$$minErr('ng'),ut=['$$rAF',function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),o=0;o<e.length;o++)e[o]();i||t(function(){i||n()})}}var r,i;return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}],lt=['$interpolate',function(t){return{link:function(e,n,r){function i(t){t='on'===t||'true'===t,n.data(U,t)}var o=r.ngAnimateChildren;X(o)&&0===o.length?n.data(U,!0):(i(t(o)(e)),r.$observe('ngAnimateChildren',i))}}}],dt='$$animateCss',ft=1e3,mt=3,pt=1.5,ht={transitionDuration:st,transitionDelay:at,transitionProperty:I+'Property',animationDuration:ot,animationDelay:it,animationIterationCount:P+'IterationCount'},vt={transitionDuration:st,transitionDelay:at,animationDuration:ot,animationDelay:it},gt=['$animateProvider',function(t){var e=O(),n=O();this.$get=['$window','$$jqLite','$$AnimateRunner','$timeout','$$forceReflow','$sniffer','$$rAFScheduler','$$animateQueue',function(t,r,s,c,u,l,v,g){function b(t,e){var n='$$ngAnimateParentKey',r=t.parentNode;return(r[n]||(r[n]=++V))+'-'+t.getAttribute('class')+'-'+e}function y(n,r,i,o){var a=e.get(i);return a||(a=A(t,n,o),'infinite'===a.animationIterationCount&&(a.animationIterationCount=1)),e.put(i,a),a}function _(i,a,s,c){var u;if(e.count(s)>0&&!(u=n.get(s))){var l=o(a,'-stagger');r.addClass(i,l),u=A(t,i,c),u.animationDuration=Math.max(u.animationDuration,0),u.transitionDuration=Math.max(u.transitionDuration,0),r.removeClass(i,l),n.put(s,u)}return u||{}}function T(t){U.push(t),v.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=u(),r=0;r<U.length;r++)U[r](t);U.length=0})}function O(t,e,n){var r=y(t,e,n,ht),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var H=d(r),V=0,U=[];return function(t,n){function u(){v()}function d(){v(!0)}function v(e){if(!(G||X&&Z)){G=!0,Z=!1,B.$$skipPreparationClasses||r.removeClass(t,yt),r.removeClass(t,wt),w(K,!1),E(K,!1),z(st,function(t){K.style[t[0]]=''}),H(t,B),m(t,B),Object.keys(Y).length&&z(Y,function(t,e){t?K.style.setProperty(e,t):K.style.removeProperty(e)}),B.onDone&&B.onDone(),lt&&lt.length&&t.off(lt.join(' '),V);var n=t.data(dt);n&&(c.cancel(n[0].timer),t.removeData(dt)),Q&&Q.complete(!e)}}function y(t){Pt.blockTransition&&E(K,t),Pt.blockKeyframeAnimation&&w(K,!!t)}function A(){return Q=new s({end:u,cancel:d}),T(tt),v(),{$$willAnimate:!1,start:function(){return Q},end:u}}function V(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(mt));Math.max(n-at,0)>=rt&&r>=it&&(X=!0,v())}function U(){function e(){if(!G){if(y(!1),z(st,function(t){var e=t[0],n=t[1];K.style[e]=n}),H(t,B),r.addClass(t,wt),Pt.recalculateTimingStyles){if(Et=K.getAttribute('class')+' '+yt,_t=b(K,Et),It=O(K,Et,_t),Dt=It.maxDelay,et=Math.max(Dt,0),0===(it=It.maxDuration))return void v();Pt.hasTransitions=It.transitionDuration>0,Pt.hasAnimations=It.animationDuration>0}if(Pt.applyAnimationDelay&&(Dt='boolean'!=typeof B.delay&&k(B.delay)?parseFloat(B.delay):Dt,et=Math.max(Dt,0),It.animationDelay=Dt,Rt=M(Dt,!0),st.push(Rt),K.style[Rt[0]]=Rt[1]),rt=et*ft,ot=it*ft,B.easing){var e,i=B.easing;Pt.hasTransitions&&(e=I+nt,st.push([e,i]),K.style[e]=i),Pt.hasAnimations&&(e=P+nt,st.push([e,i]),K.style[e]=i)}It.transitionDuration&&lt.push(D),It.animationDuration&&lt.push(R),at=Date.now();var o=rt+pt*ot,a=at+o,s=t.data(dt)||[],u=!0;if(s.length){var l=s[0];u=a>l.expectedEndTime,u?c.cancel(l.timer):s.push(v)}if(u){var d=c(n,o,!1);s[0]={timer:d,expectedEndTime:a},s.push(v),t.data(dt,s)}lt.length&&t.on(lt.join(' '),V),B.to&&(B.cleanupStyles&&N(Y,K,Object.keys(B.to)),h(t,B))}}function n(){var e=t.data(dt);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData(dt)}}if(!G){if(!K.parentNode)return void v();var i=function(t){if(X)Z&&t&&(Z=!1,v());else if(Z=!t,It.animationDuration){var e=w(K,Z);Z?st.push(e):a(st,e)}},o=Ot>0&&(It.transitionDuration&&0===xt.transitionDuration||It.animationDuration&&0===xt.animationDuration)&&Math.max(xt.animationDelay,xt.transitionDelay);o?c(e,Math.floor(o*Ot*ft),!1):e(),J.resume=function(){i(!0)},J.pause=function(){i(!1)}}}var B=n||{};B.$$prepared||(B=f(q(B)));var Y={},K=$(t);if(!K||!K.parentNode||!g.enabled())return A();var G,Z,X,Q,J,et,rt,it,ot,at,st=[],ct=t.attr('class'),ut=i(B),lt=[];if(0===B.duration||!l.animations&&!l.transitions)return A();var ht=B.event&&W(B.event)?B.event.join(' '):B.event,gt=ht&&B.structural,$t='',bt='';gt?$t=o(ht,F,!0):ht&&($t=ht),B.addClass&&(bt+=o(B.addClass,j)),B.removeClass&&(bt.length&&(bt+=' '),bt+=o(B.removeClass,L)),B.applyClassesEarly&&bt.length&&H(t,B);var yt=[$t,bt].join(' ').trim(),Et=ct+' '+yt,wt=o(yt,'-active'),Ct=ut.to&&Object.keys(ut.to).length>0;if(!((B.keyframeStyle||'').length>0||Ct||yt))return A();var _t,xt;if(B.stagger>0){var Mt=parseFloat(B.stagger);xt={transitionDelay:Mt,animationDelay:Mt,transitionDuration:0,animationDuration:0}}else _t=b(K,Et),xt=_(K,yt,_t,vt);B.$$skipPreparationClasses||r.addClass(t,yt);var At;if(B.transitionStyle){var Tt=[I,B.transitionStyle];C(K,Tt),st.push(Tt)}if(B.duration>=0){At=K.style[I].length>0;var kt=S(B.duration,At);C(K,kt),st.push(kt)}if(B.keyframeStyle){var St=[P,B.keyframeStyle];C(K,St),st.push(St)}var Ot=xt?B.staggerIndex>=0?B.staggerIndex:e.count(_t):0,Nt=0===Ot;Nt&&!B.skipBlocking&&E(K,9999);var It=O(K,Et,_t),Dt=It.maxDelay;et=Math.max(Dt,0),it=It.maxDuration;var Pt={};if(Pt.hasTransitions=It.transitionDuration>0,Pt.hasAnimations=It.animationDuration>0,Pt.hasTransitionAll=Pt.hasTransitions&&'all'===It.transitionProperty,Pt.applyTransitionDuration=Ct&&(Pt.hasTransitions&&!Pt.hasTransitionAll||Pt.hasAnimations&&!Pt.hasTransitions),Pt.applyAnimationDuration=B.duration&&Pt.hasAnimations,Pt.applyTransitionDelay=k(B.delay)&&(Pt.applyTransitionDuration||Pt.hasTransitions),Pt.applyAnimationDelay=k(B.delay)&&Pt.hasAnimations,Pt.recalculateTimingStyles=bt.length>0,(Pt.applyTransitionDuration||Pt.applyAnimationDuration)&&(it=B.duration?parseFloat(B.duration):it,Pt.applyTransitionDuration&&(Pt.hasTransitions=!0,It.transitionDuration=it,At=K.style[I+'Property'].length>0,st.push(S(it,At))),Pt.applyAnimationDuration&&(Pt.hasAnimations=!0,It.animationDuration=it,st.push(x(it)))),0===it&&!Pt.recalculateTimingStyles)return A();if(null!=B.delay){var Rt;'boolean'!=typeof B.delay&&(Rt=parseFloat(B.delay),et=Math.max(Rt,0)),Pt.applyTransitionDelay&&st.push(M(Rt)),Pt.applyAnimationDelay&&st.push(M(Rt,!0))}return null==B.duration&&It.transitionDuration>0&&(Pt.recalculateTimingStyles=Pt.recalculateTimingStyles||Nt),rt=et*ft,ot=it*ft,B.skipBlocking||(Pt.blockTransition=It.transitionDuration>0,Pt.blockKeyframeAnimation=It.animationDuration>0&&xt.animationDelay>0&&0===xt.animationDuration),B.from&&(B.cleanupStyles&&N(Y,K,Object.keys(B.from)),p(t,B)),Pt.blockTransition||Pt.blockKeyframeAnimation?y(it):B.skipBlocking||E(K,!1),{$$willAnimate:!0,end:u,start:function(){if(!G)return J={end:u,cancel:d,resume:null,pause:null},Q=new s(J),T(U),Q}}}}]}],$t=['$$animationProvider',function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push('$$animateCssDriver');var n='ng-animate-shim',r='ng-anchor-out';this.$get=['$animateCss','$rootScope','$$AnimateRunner','$rootElement','$sniffer','$$jqLite','$document',function(t,i,o,a,s,c,u){function l(t){return t.replace(/\bng-\S+\b/g,'')}function d(t,e){return X(t)&&(t=t.split(' ')),X(e)&&(e=e.split(' ')),t.filter(function(t){return-1===e.indexOf(t)}).join(' ')}function f(e,i,a){function s(t){var e={},n=$(t).getBoundingClientRect();return z(['width','height','top','left'],function(t){var r=n[t];switch(t){case'top':r+=h.scrollTop;break;case'left':r+=h.scrollLeft}e[t]=Math.floor(r)+'px'}),e}function c(t){return t.attr('class')||''}function u(){var e=l(c(a)),n=d(e,p),i=d(p,e),o=t(m,{to:s(a),addClass:'ng-anchor-in '+n,removeClass:r+' '+i,delay:!0});return o.$$willAnimate?o:null}function f(){m.remove(),i.removeClass(n),a.removeClass(n)}var m=J($(i).cloneNode(!0)),p=l(c(m));i.addClass(n),a.addClass(n),m.addClass('ng-anchor'),g.append(m);var v,b=function(){var e=t(m,{addClass:r,delay:!0,from:s(i)});return e.$$willAnimate?e:null}();if(!b&&!(v=u()))return f();var y=b||v;return{start:function(){function t(){n&&n.end()}var e,n=y.start();return n.done(function(){if(n=null,!v&&(v=u()))return n=v.start(),n.done(function(){n=null,f(),e.complete()}),n;f(),e.complete()}),e=new o({end:t,cancel:t})}}}function m(t,e,n,r){var i=p(t),a=p(e),s=[];if(z(r,function(t){var e=t.out,r=t.in,i=f(n,e,r);i&&s.push(i)}),i||a||0!==s.length)return{start:function(){function t(){z(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),a&&e.push(a.start()),z(s,function(t){e.push(t.start())});var n=new o({end:t,cancel:t});return o.all(e,function(t){n.complete(t)}),n}}}function p(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,'leave'===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=_(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!s.animations&&!s.transitions)return tt;var h=u[0].body,v=$(a),g=J(e(v)||h.contains(v)?v:h);return function(t){return t.from&&t.to?m(t.from,t.to,t.classes,t.anchors):p(t)}}]}],bt=['$animateProvider',function(t){this.$get=['$injector','$$AnimateRunner','$$jqLite',function(e,n,r){function i(n){n=W(n)?n:n.split(' ');for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!i[a]&&(r.push(e.get(s)),i[a]=!0)}return r}var o=d(r);return function(t,e,r,a){function s(){a.domOperation(),o(t,a)}function c(){p=!0,s(),m(t,a)}function u(t,e,r,i,o){var a;switch(r){case'animate':a=[e,i.from,i.to,o];break;case'setClass':a=[e,g,$,o];break;case'addClass':a=[e,g,o];break;case'removeClass':a=[e,$,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(G(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(G(s))return s;return tt}function l(t,e,r,i,o){var a=[];return z(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,c=function(t){a||(a=!0,(o||tt)(t),i.complete(!t))};return i=new n({end:function(){c()},cancel:function(){c(!0)}}),o=u(s,t,e,r,function(t){c(!1===t)}),i})}),a}function d(t,e,r,i,o){var a=l(t,e,r,i,o);if(0===a.length){var s,c;'beforeSetClass'===o?(s=l(t,'removeClass',r,i,'beforeRemoveClass'),c=l(t,'addClass',r,i,'beforeAddClass')):'setClass'===o&&(s=l(t,'removeClass',r,i,'removeClass'),c=l(t,'addClass',r,i,'addClass')),s&&(a=a.concat(s)),c&&(a=a.concat(c))}if(0!==a.length)return function(t){var e=[];return a.length&&z(a,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){z(e,function(e){t?e.cancel():e.end()})}}}var p=!1;3===arguments.length&&Z(r)&&(a=r,r=null),a=f(a),r||(r=t.attr('class')||'',a.addClass&&(r+=' '+a.addClass),a.removeClass&&(r+=' '+a.removeClass));var h,v,g=a.addClass,$=a.removeClass,b=i(r);if(b.length){var y,E;'leave'===e?(E='leave',y='afterLeave'):(E='before'+e.charAt(0).toUpperCase()+e.substr(1),y=e),'enter'!==e&&'move'!==e&&(h=d(t,e,a,b,E)),v=d(t,e,a,b,y)}if(h||v){var w;return{$$willAnimate:!0,end:function(){return w?w.end():(c(),w=new n,w.complete(!0)),w},start:function(){function t(t){c(t),w.complete(t)}function e(e){p||((r||tt)(e),t(e))}if(w)return w;w=new n;var r,i=[];return h&&i.push(function(t){r=h(t)}),i.length?i.push(function(t){s(),t(!0)}):s(),v&&i.push(function(t){r=v(t)}),w.setHost({end:function(){e()},cancel:function(){e(!0)}}),n.chain(i,t),w}}}}}]}],yt=['$$animationProvider',function(t){t.drivers.push('$$animateJsDriver'),this.$get=['$$animateJs','$$AnimateRunner',function(t,e){function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){function t(){return function(){z(o,function(t){t.end()})}}function n(t){a.complete(t)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),e.all(o,n);var a=new e({end:t(),cancel:t()});return a}}}return n(t)}}]}],Et='data-ng-animate',wt='$ngAnimatePin',Ct=['$animateProvider',function(e){function r(t){if(!t)return null;var e=t.split(p),n=Object.create(null);return z(e,function(t){n[t]=!0}),n}function i(t,e){if(t&&e){var n=r(e);return t.split(p).some(function(t){return n[t]})}}function o(t,e,n){return h[t].some(function(t){return t(e,n)})}function a(t,e){var n=(t.addClass||'').length>0,r=(t.removeClass||'').length>0;return e?n&&r:n||r}var u=1,l=2,p=' ',h=this.rules={skip:[],cancel:[],join:[]};h.join.push(function(t,e){return!t.structural&&a(t)}),h.skip.push(function(t,e){return!t.structural&&!a(t)}),h.skip.push(function(t,e){return'leave'===e.event&&t.structural}),h.skip.push(function(t,e){return e.structural&&e.state===l&&!t.structural}),h.cancel.push(function(t,e){return e.structural&&t.structural}),h.cancel.push(function(t,e){return e.state===l&&t.structural}),h.cancel.push(function(t,e){if(e.structural)return!1;var n=t.addClass,r=t.removeClass,o=e.addClass,a=e.removeClass;return!(Q(n)&&Q(r)||Q(o)&&Q(a))&&(i(n,a)||i(r,o))}),this.$get=['$$rAF','$rootScope','$rootElement','$document','$$Map','$$animation','$$AnimateRunner','$templateRequest','$$jqLite','$$forceReflow','$$isDocumentHidden',function(r,i,p,h,g,E,w,C,_,x,M){function A(){var t=!1;return function(e){t?e():i.$$postDigest(function(){t=!0,e()})}}function T(t,e){return v(t,e,{})}function k(t,e,n){var r=[],i=G[n];return i&&z(i,function(i){rt.call(i.node,e)?r.push(i.callback):'leave'===n&&rt.call(i.node,t)&&r.push(i.callback)}),r}function S(t,e,n){var r=c(e);return t.filter(function(t){return!(t.node===r&&(!n||t.callback===n))})}function O(t,e){'close'!==t||e.parentNode||it.off(e)}function N(t,e,n){function c(t,e,n,i){x(function(){var t=k(C,g,e);t.length?r(function(){z(t,function(t){t(h,n,i)}),O(n,g)}):O(n,g)}),t.progress(e,n,i)}function d(t){y(h,p),nt(h,p),m(h,p),p.domOperation(),_.complete(!t)}var p=q(n),h=s(t),g=$(h),C=g&&g.parentNode;p=f(p);var _=new w,x=A();if(W(p.addClass)&&(p.addClass=p.addClass.join(' ')),p.addClass&&!X(p.addClass)&&(p.addClass=null),W(p.removeClass)&&(p.removeClass=p.removeClass.join(' ')),p.removeClass&&!X(p.removeClass)&&(p.removeClass=null),p.from&&!Z(p.from)&&(p.from=null),p.to&&!Z(p.to)&&(p.to=null),!g)return d(),_;var S=[g.getAttribute('class'),p.addClass,p.removeClass].join(' ');if(!et(S))return d(),_;var N=['enter','move','leave'].indexOf(e)>=0,H=M(),V=!F||H||L.get(g),U=!V&&j.get(g)||{},B=!!U.state;if(V||B&&U.state===u||(V=!P(g,C,e)),V)return H&&c(_,e,'start'),d(),H&&c(_,e,'close'),_;N&&I(g);var Y={structural:N,element:h,event:e,addClass:p.addClass,removeClass:p.removeClass,close:d,options:p,runner:_};if(B){if(o('skip',Y,U))return U.state===l?(d(),_):(v(h,U,Y),U.runner);if(o('cancel',Y,U))if(U.state===l)U.runner.end();else{if(!U.structural)return v(h,U,Y),U.runner;U.close()}else{if(o('join',Y,U)){if(U.state!==l)return b(h,N?e:null,p),e=Y.event=U.event,p=v(h,U,Y),U.runner;T(h,Y)}}}else T(h,Y);var K=Y.structural;if(K||(K='animate'===Y.event&&Object.keys(Y.options.to||{}).length>0||a(Y)),!K)return d(),D(g),_;var G=(U.counter||0)+1;return Y.counter=G,R(g,u,Y),i.$$postDigest(function(){h=s(t);var n=j.get(g),r=!n;n=n||{};var i=h.parent()||[],o=i.length>0&&('animate'===n.event||n.structural||a(n));if(r||n.counter!==G||!o)return r&&(nt(h,p),m(h,p)),(r||N&&n.event!==e)&&(p.domOperation(),_.end()),void(o||D(g));e=!n.structural&&a(n,!0)?'setClass':n.event,R(g,l);var u=E(h,e,n.options);_.setHost(u),c(_,e,'start',{}),u.done(function(t){d(!t);var n=j.get(g);n&&n.counter===G&&D(g),c(_,e,'close',{})})}),_}function I(t){var e=t.querySelectorAll('['+Et+']');z(e,function(t){var e=parseInt(t.getAttribute(Et),10),n=j.get(t);if(n)switch(e){case l:n.runner.end();case u:j.delete(t)}})}function D(t){t.removeAttribute(Et),j.delete(t)}function P(t,e,n){var r,i=h[0].body,o=$(p),a=t===i||'HTML'===t.nodeName,s=t===o,c=!1,u=L.get(t),l=J.data(t,wt);for(l&&(e=$(l));e&&(s||(s=e===o),e.nodeType===H);){var d=j.get(e)||{};if(!c){var f=L.get(e);if(!0===f&&!1!==u){u=!0;break}!1===f&&(u=!1),c=d.structural}if(Q(r)||!0===r){var m=J.data(e,U);Y(m)&&(r=m)}if(c&&!1===r)break;if(a||(a=e===i),a&&s)break;e=s||!(l=J.data(e,wt))?e.parentNode:$(l)}return(!c||r)&&!0!==u&&s&&a}function R(t,e,n){n=n||{},n.state=e,t.setAttribute(Et,e);var r=j.get(t),i=r?B(r,n):n;j.set(t,i)}var j=new g,L=new g,F=null,V=i.$watch(function(){return 0===C.totalPendingRequests},function(t){t&&(V(),i.$$postDigest(function(){i.$$postDigest(function(){null===F&&(F=!0)})}))}),G=Object.create(null),tt=e.classNameFilter(),et=tt?function(t){return tt.test(t)}:function(){return!0},nt=d(_),rt=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))},it={on:function(t,e,n){var r=c(e);G[t]=G[t]||[],G[t].push({node:r,callback:n}),J(e).on('$destroy',function(){j.get(r)||it.off(t,e,n)})},off:function(t,e,n){if(1!==arguments.length||X(arguments[0])){var r=G[t];r&&(G[t]=1===arguments.length?null:S(r,e,n))}else{e=arguments[0];for(var i in G)G[i]=S(G[i],e)}},pin:function(t,e){n(K(t),'element','not an element'),n(K(e),'parentElement','not an element'),t.data(wt,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,N(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!F;else{if(K(t)){var r=$(t);1===n?e=!L.get(r):L.set(r,!e)}else e=F=!!t}return e}};return it}]}],_t=['$animateProvider',function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function i(t){return t.data(s)}var o='ng-animate-ref',a=this.drivers=[],s='$$animationRunner';this.$get=['$$jqLite','$rootScope','$injector','$$AnimateRunner','$$Map','$$rAFScheduler',function(t,s,c,u,l,p){function h(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,o=n.parentNode;i.set(n,t);for(var a;o;){if(a=i.get(o)){a.processed||(a=e(a));break}o=o.parentNode}return(a||r).children.push(t),t}var n,r={children:[]},i=new l;for(n=0;n<t.length;n++){var o=t[n];i.set(o.domNode,t[n]={domNode:o.domNode,fn:o.fn,children:[]})}for(n=0;n<t.length;n++)e(t[n]);return function(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,o=0,a=[];for(e=0;e<r.length;e++){var s=r[e];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s.fn),s.children.forEach(function(t){o++,r.push(t)}),i--}return a.length&&n.push(a),n}(r)}var v=[],g=d(t);return function(l,d,b){function y(t){var e='['+o+']',n=t.hasAttribute(o)?[t]:t.querySelectorAll(e),r=[];return z(n,function(t){var e=t.getAttribute(o);e&&e.length&&r.push(t)}),r}function E(t){var e=[],n={};z(t,function(t,r){var i=t.element,a=$(i),s=t.event,c=['enter','move'].indexOf(s)>=0,u=t.structural?y(a):[];if(u.length){var l=c?'to':'from';z(u,function(t){var e=t.getAttribute(o);n[e]=n[e]||{},n[e][l]={animationID:r,element:J(t)}})}else e.push(t)});var r={},i={};return z(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var c=a?a.animationID:s.animationID,u=c.toString();return void(r[u]||(r[u]=!0,e.push(t[c])))}var l=t[a.animationID],d=t[s.animationID],f=a.animationID.toString();if(!i[f]){var m=i[f]={structural:!0,beforeStart:function(){l.beforeStart(),d.beforeStart()},close:function(){l.close(),d.close()},classes:w(l.classes,d.classes),from:l,to:d,anchors:[]};m.classes.length?e.push(m):(e.push(l),e.push(d))}i[f].anchors.push({out:a.element,in:s.element})}),e}function w(t,e){t=t.split(' '),e=e.split(' ');for(var n=[],r=0;r<t.length;r++){var i=t[r];if('ng-'!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(' ')}function C(t){for(var e=a.length-1;e>=0;e--){var n=a[e],r=c.get(n),i=r(t);if(i)return i}}function _(){l.addClass(V),O&&t.addClass(l,O),N&&(t.removeClass(l,N),N=null)}function x(t,e){function n(t){var n=i(t);n&&n.setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function M(){var t=i(l);!t||'leave'===d&&b.$$domOperationFired||t.end()}function A(e){l.off('$destroy',M),n(l),g(l,b),m(l,b),b.domOperation(),O&&t.removeClass(l,O),l.removeClass(V),k.complete(!e)}b=f(b);var T=['enter','move','leave'].indexOf(d)>=0,k=new u({end:function(){A()},cancel:function(){A(!0)}});if(!a.length)return A(),k;e(l,k);var S=r(l.attr('class'),r(b.addClass,b.removeClass)),O=b.tempClasses;O&&(S+=' '+O,b.tempClasses=null);var N;return T&&(N='ng-'+d+'-prepare',t.addClass(l,N)),v.push({element:l,classes:S,event:d,structural:T,options:b,beforeStart:_,close:A}),l.on('$destroy',M),v.length>1?k:(s.$$postDigest(function(){var t=[];z(v,function(e){i(e.element)?t.push(e):e.close()}),v.length=0;var e=E(t),n=[];z(e,function(t){n.push({domNode:$(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close;if(i(t.anchors?t.from.element||t.to.element:t.element)){var r=C(t);r&&(e=r.start)}if(e){var o=e();o.done(function(t){n(!t)}),x(t,o)}else n()}})}),p(h(n))}),k)}}]}],xt=['$animate','$rootScope',function(t,e){return{restrict:'A',transclude:'element',terminal:!0,priority:600,link:function(e,n,r,i,o){var a,s;e.$watchCollection(r.ngAnimateSwap||r.for,function(r){a&&t.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=e.$new(),o(s,function(e){a=e,t.enter(e,null,n)}))})}}}];e.module('ngAnimate',[],function(){tt=e.noop,q=e.copy,B=e.extend,J=e.element,z=e.forEach,W=e.isArray,X=e.isString,Z=e.isObject,Q=e.isUndefined,Y=e.isDefined,G=e.isFunction,K=e.isElement}).info({angularVersion:'1.6.4'}).directive('ngAnimateSwap',xt).directive('ngAnimateChildren',lt).factory('$$rAFScheduler',ut).provider('$$animateQueue',Ct).provider('$$animation',_t).provider('$animateCss',gt).provider('$$animateCssDriver',$t).provider('$$animateJs',bt).provider('$$animateJsDriver',yt)}(window,window.angular)},function(t,e){/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e){'use strict';function n(){function t(t,e,r,i){return function(a,s,c){var u=c.$normalize(e);!n[u]||o(s,r)||c[u]||a.$watch(c[t],function(t){t=i?!t:!!t,s.attr(e,t)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};this.config=function(t){n=e.extend(n,t)},this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:t}}}var r=e.module('ngAria',['ng']).info({angularVersion:'1.6.4'}).provider('$aria',n),i=['BUTTON','A','INPUT','TEXTAREA','SELECT','DETAILS','SUMMARY'],o=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};r.directive('ngShow',['$aria',function(t){return t.$$watchExpr('ngShow','aria-hidden',[],!0)}]).directive('ngHide',['$aria',function(t){return t.$$watchExpr('ngHide','aria-hidden',[],!1)}]).directive('ngValue',['$aria',function(t){return t.$$watchExpr('ngValue','aria-checked',i,!1)}]).directive('ngChecked',['$aria',function(t){return t.$$watchExpr('ngChecked','aria-checked',i,!1)}]).directive('ngReadonly',['$aria',function(t){return t.$$watchExpr('ngReadonly','aria-readonly',i,!1)}]).directive('ngRequired',['$aria',function(t){return t.$$watchExpr('ngRequired','aria-required',i,!1)}]).directive('ngModel',['$aria',function(t){function e(e,n,r,a){return t.config(n)&&!r.attr(e)&&(a||!o(r,i))}function n(t,e){return!e.attr('role')&&e.attr('type')===t&&!o(e,i)}function r(t,e){var n=t.type,r=t.role;return'checkbox'===(n||r)||'menuitemcheckbox'===r?'checkbox':'radio'===(n||r)||'menuitemradio'===r?'radio':'range'===n||'progressbar'===r||'slider'===r?'range':''}return{restrict:'A',require:'ngModel',priority:200,compile:function(i,o){var a=r(o,i);return{post:function(r,i,o,s){function c(){return s.$modelValue}function u(t){var e=o.value==s.$viewValue;i.attr('aria-checked',e)}function l(){i.attr('aria-checked',!s.$isEmpty(s.$viewValue))}var d=e('tabindex','tabindex',i,!1);switch(a){case'radio':case'checkbox':n(a,i)&&i.attr('role',a),e('aria-checked','ariaChecked',i,!1)&&r.$watch(c,'radio'===a?u:l),d&&i.attr('tabindex',0);break;case'range':if(n(a,i)&&i.attr('role','slider'),t.config('ariaValue')){var f=!i.attr('aria-valuemin')&&(o.hasOwnProperty('min')||o.hasOwnProperty('ngMin')),m=!i.attr('aria-valuemax')&&(o.hasOwnProperty('max')||o.hasOwnProperty('ngMax')),p=!i.attr('aria-valuenow');f&&o.$observe('min',function(t){i.attr('aria-valuemin',t)}),m&&o.$observe('max',function(t){i.attr('aria-valuemax',t)}),p&&r.$watch(c,function(t){i.attr('aria-valuenow',t)})}d&&i.attr('tabindex',0)}!o.hasOwnProperty('ngRequired')&&s.$validators.required&&e('aria-required','ariaRequired',i,!1)&&o.$observe('required',function(){i.attr('aria-required',!!o.required)}),e('aria-invalid','ariaInvalid',i,!0)&&r.$watch(function(){return s.$invalid},function(t){i.attr('aria-invalid',!!t)})}}}}}]).directive('ngDisabled',['$aria',function(t){return t.$$watchExpr('ngDisabled','aria-disabled',i,!1)}]).directive('ngMessages',function(){return{restrict:'A',require:'?ngMessages',link:function(t,e,n,r){e.attr('aria-live')||e.attr('aria-live','assertive')}}}).directive('ngClick',['$aria','$parse',function(t,e){return{restrict:'A',compile:function(n,r){var a=e(r.ngClick);return function(e,n,r){o(n,i)||(t.config('bindRoleForClick')&&!n.attr('role')&&n.attr('role','button'),t.config('tabindex')&&!n.attr('tabindex')&&n.attr('tabindex',0),!t.config('bindKeydown')||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.on('keydown',function(t){function n(){a(e,{$event:t})}var r=t.which||t.keyCode;32!==r&&13!==r||e.$apply(n)}))}}}}]).directive('ngDblclick',['$aria',function(t){return function(e,n,r){!t.config('tabindex')||n.attr('tabindex')||o(n,i)||n.attr('tabindex',0)}}])}(window,window.angular)},function(t,e){/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e){'use strict';function n(){function t(t,e){if(t)return i(t)?t.indexOf(e)>=0:t.hasOwnProperty(e)}return['$animate',function(e){return{restrict:'AE',transclude:'element',priority:1,terminal:!0,require:'^^ngMessages',link:function(n,r,o,a,s){var c,u=r[0],l=o.ngMessage||o.when,d=o.ngMessageExp||o.whenExp,f=function(t){c=t?i(t)?t:t.split(/[\s,]+/):null,a.reRender()};d?(f(n.$eval(d)),n.$watchCollection(d,f)):f(l);var m,p;a.register(u,p={test:function(e){return t(c,e)},attach:function(){m||s(function(t,n){e.enter(t,null,r),m=t;var i=m.$$attachId=a.getAttachId();m.on('$destroy',function(){m&&m.$$attachId===i&&(a.deregister(u),p.detach()),n.$destroy()})})},detach:function(){if(m){var t=m;m=null,e.leave(t)}}})}}}]}var r,i,o,a;e.module('ngMessages',[],function(){r=e.forEach,i=e.isArray,o=e.isString,a=e.element}).info({angularVersion:'1.6.4'}).directive('ngMessages',['$animate',function(t){function e(t,e){return o(e)&&0===e.length||n(t.$eval(e))}function n(t){return o(t)?t.length:!!t}return{require:'ngMessages',restrict:'AE',controller:['$element','$scope','$attrs',function(i,o,a){function s(t,e){for(var n=e,r=[];n&&n!==t;){var i=n.$$ngMessageNode;if(i&&i.length)return h[i];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}function c(t,e,n){var r=h[n];if(l.head){var i=s(t,e);i?(r.next=i.next,i.next=r):(r.next=l.head,l.head=r)}else l.head=r}function u(t,e,n){var r=h[n],i=s(t,e);i?i.next=r.next:l.head=r.next}var l=this,d=0,f=0;this.getAttachId=function(){return f++};var m,p,h=this.messages={};this.render=function(s){s=s||{},m=!1,p=s;for(var c=e(o,a.ngMessagesMultiple)||e(o,a.multiple),u=[],d={},f=l.head,h=!1,v=0;null!=f;){v++;var g=f.message,$=!1;h||r(s,function(t,e){if(!$&&n(t)&&g.test(e)){if(d[e])return;d[e]=!0,$=!0,g.attach()}}),$?h=!c:u.push(g),f=f.next}r(u,function(t){t.detach()}),u.length!==v?t.setClass(i,'ng-active','ng-inactive'):t.setClass(i,'ng-inactive','ng-active')},o.$watchCollection(a.ngMessages||a.for,l.render),i.on('$destroy',function(){r(h,function(t){t.message.detach()})}),this.reRender=function(){m||(m=!0,o.$evalAsync(function(){m&&p&&l.render(p)}))},this.register=function(t,e){var n=d.toString();h[n]={message:e},c(i[0],t,n),t.$$ngMessageNode=n,d++,l.reRender()},this.deregister=function(t){var e=t.$$ngMessageNode;delete t.$$ngMessageNode,u(i[0],t,e),delete h[e],l.reRender()}}]}}]).directive('ngMessagesInclude',['$templateRequest','$document','$compile',function(t,e,n){function r(t,r){var i=n.$$createComment?n.$$createComment('ngMessagesInclude',r):e[0].createComment(' ngMessagesInclude: '+r+' '),o=a(i);t.after(o),t.remove()}return{restrict:'AE',require:'^^ngMessages',link:function(e,i,a){var s=a.ngMessagesInclude||a.src;t(s).then(function(t){e.$$destroyed||(o(t)&&!t.trim()?r(i,s):n(t)(e,function(t){i.after(t),r(i,s)}))})}}}]).directive('ngMessage',n()).directive('ngMessageExp',n())}(window,window.angular)},function(t,e){/**
 * @license AngularJS v1.6.4
 * (c) 2010-2017 Google, Inc. http://angularjs.org
 * License: MIT
 */
!function(t,e){'use strict';function n(){function n(t,e){var n,r={},i=t.split(',');for(n=0;n<i.length;n++)r[e?c(i[n]):i[n]]=!0;return r}function r(e,n){null===e||void 0===e?e='':'string'!=typeof e&&(e=''+e),y.innerHTML=e;var r=5;do{if(0===r)throw m('uinput','Failed to sanitize html because the input is unstable');r--,t.document.documentMode&&g(y),e=y.innerHTML,y.innerHTML=e}while(e!==y.innerHTML);for(var i=y.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),p(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&n.end(i.nodeName.toLowerCase()),o=$('nextSibling',i))))for(;null==o&&(i=$('parentNode',i))!==y;)o=$('nextSibling',i),1===i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=y.firstChild;)y.removeChild(i)}function p(t){for(var e={},n=0,r=t.length;n<r;n++){var i=t[n];e[i.name]=i.value}return e}function h(t){return t.replace(/&/g,'&amp;').replace(E,function(t){return'&#'+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+';'}).replace(w,function(t){return'&#'+t.charCodeAt(0)+';'}).replace(/</g,'&lt;').replace(/>/g,'&gt;')}function v(t,e){var n=!1,r=i(t,t.push);return{start:function(t,i){t=c(t),!n&&S[t]&&(n=t),n||!0!==O[t]||(r('<'),r(t),a(i,function(n,i){var o=c(i),a='img'===t&&'src'===o||'background'===o;!0!==P[o]||!0===N[o]&&!e(n,a)||(r(' '),r(i),r('="'),r(h(n)),r('"'))}),r('>'))},end:function(t){t=c(t),n||!0!==O[t]||!0===C[t]||(r('</'),r(t),r('>')),t==n&&(n=!1)},chars:function(t){n||r(h(t))}}}function g(e){for(;e;){if(e.nodeType===t.Node.ELEMENT_NODE)for(var n=e.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();'xmlns:ns1'!==a&&0!==a.lastIndexOf('ns1:',0)||(e.removeAttributeNode(o),r--,i--)}var s=e.firstChild;s&&g(s),e=$('nextSibling',e)}}function $(t,e){var n=e[t];if(n&&l.call(e,n))throw m('elclob','Failed to sanitize html because the element is clobbered: {0}',e.outerHTML||e.outerText);return n}var b=!1;this.$get=['$$sanitizeUri',function(t){return b&&o(O,k),function(e){var n=[];return d(e,f(n,function(e,n){return!/^unsafe:/.test(t(e,n))})),n.join('')}}],this.enableSvg=function(t){return s(t)?(b=t,this):b},i=e.bind,o=e.extend,a=e.forEach,s=e.isDefined,c=e.lowercase,u=e.noop,d=r,f=v,l=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};var y,E=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,w=/([^#-~ |!])/g,C=n('area,br,col,hr,img,wbr'),_=n('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'),x=n('rp,rt'),M=o({},x,_),A=o({},_,n('address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul')),T=o({},x,n('a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var')),k=n('circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan'),S=n('script,style'),O=o({},C,A,T,M),N=n('background,cite,href,longdesc,src,xlink:href'),I=n('abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width'),D=n('accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan',!0),P=o({},N,D,I);!function(t){var e;if(!t.document||!t.document.implementation)throw m('noinert','Can\'t create an inert html document');e=t.document.implementation.createHTMLDocument('inert');var n=e.documentElement||e.getDocumentElement(),r=n.getElementsByTagName('body');if(1===r.length)y=r[0];else{var i=e.createElement('html');y=e.createElement('body'),i.appendChild(y),e.appendChild(i)}}(t)}function r(t){var e=[];return f(e,u).chars(t),e.join('')}var i,o,a,s,c,u,l,d,f,m=e.$$minErr('$sanitize');e.module('ngSanitize',[]).provider('$sanitize',n).info({angularVersion:'1.6.4'}),e.module('ngSanitize').filter('linky',['$sanitize',function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=e.$$minErr('linky'),a=e.isDefined,s=e.isFunction,c=e.isObject,u=e.isString;return function(e,l,d){function f(t){t&&$.push(r(t))}if(null==e||''===e)return e;if(!u(e))throw o('notstring','Expected string but received: {0}',e);for(var m,p,h,v=s(d)?d:c(d)?function(){return d}:function(){return{}},g=e,$=[];m=g.match(n);)p=m[0],m[2]||m[4]||(p=(m[3]?'http://':'mailto:')+p),h=m.index,f(g.substr(0,h)),function(t,e){var n,r=v(t);$.push('<a ');for(n in r)$.push(n+'="'+r[n]+'" ');!a(l)||'target'in r||$.push('target="',l,'" '),$.push('href="',t.replace(/"/g,'&quot;'),'">'),f(e),$.push('</a>')}(p,m[0].replace(i,'')),g=g.substring(h+m[0].length);return f(g),t($.join(''))}}])}(window,window.angular)},function(t,e){/*!
 * AngularJS Material Design
 * https://github.com/angular/material
 * @license MIT
 * v1.1.4
 */
!function(t,e,n){'use strict';!function(){e.module('ngMaterial',['ng','ngAnimate','ngAria','material.core','material.core.interaction','material.core.gestures','material.core.layout','material.core.meta','material.core.theming.palette','material.core.theming','material.core.animate','material.components.autocomplete','material.components.backdrop','material.components.bottomSheet','material.components.button','material.components.card','material.components.checkbox','material.components.chips','material.components.colors','material.components.content','material.components.datepicker','material.components.dialog','material.components.divider','material.components.fabActions','material.components.fabShared','material.components.fabSpeedDial','material.components.fabToolbar','material.components.gridList','material.components.icon','material.components.input','material.components.list','material.components.menu','material.components.menuBar','material.components.navBar','material.components.progressCircular','material.components.panel','material.components.progressLinear','material.components.radioButton','material.components.showHide','material.components.sidenav','material.components.select','material.components.slider','material.components.sticky','material.components.subheader','material.components.switch','material.components.swipe','material.components.tabs','material.components.toast','material.components.toolbar','material.components.tooltip','material.components.truncate','material.components.virtualRepeat','material.components.whiteframe'])}(),function(){function t(t,e){if(e.has('$swipe')){t.warn('You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!')}}function n(t,e){t.decorator('$$rAF',['$delegate',r]),t.decorator('$q',['$delegate',i]),e.theme('default').primaryPalette('indigo').accentPalette('pink').warnPalette('deep-orange').backgroundPalette('grey')}function r(t){return t.throttle=function(e){var n,r,i,o;return function(){n=arguments,o=this,i=e,r||(r=!0,t(function(){i.apply(o,Array.prototype.slice.call(n)),r=!1}))}},t}function i(t){return t.resolve||(t.resolve=t.when),t}t.$inject=['$log','$injector'],n.$inject=['$provide','$mdThemingProvider'],r.$inject=['$delegate'],i.$inject=['$delegate'],e.module('material.core',['ngAnimate','material.core.animate','material.core.layout','material.core.interaction','material.core.gestures','material.core.theming']).config(n).run(t)}(),function(){function t(t){function n(n,r,i){function o(t){e.isUndefined(t)&&(t=!0),r.toggleClass('md-autofocus',!!t)}var a=i.mdAutoFocus||i.mdAutofocus||i.mdSidenavFocus;o(t(a)(n)),a&&n.$watch(a,o)}return{restrict:'A',link:{pre:n}}}t.$inject=['$parse'],e.module('material.core').directive('mdAutofocus',t).directive('mdAutoFocus',t).directive('mdSidenavFocus',t)}(),function(){function t(){function t(t){var e='#'===t[0]?t.substr(1):t,n=e.length/3,r=e.substr(0,n),i=e.substr(n,n),o=e.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),'rgba('+parseInt(r,16)+','+parseInt(i,16)+','+parseInt(o,16)+',0.1)'}function e(t){return t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),(t&&4===t.length?'#'+('0'+parseInt(t[1],10).toString(16)).slice(-2)+('0'+parseInt(t[2],10).toString(16)).slice(-2)+('0'+parseInt(t[3],10).toString(16)).slice(-2):'').toUpperCase()}function n(t){return t.replace(')',', 0.1)').replace('(','a(')}function r(t){return t?t.replace('rgba','rgb').replace(/,[^\),]+\)/,')'):'rgb(0,0,0)'}return{rgbaToHex:e,hexToRgba:t,rgbToRgba:n,rgbaToRgb:r}}e.module('material.core').factory('$mdColorUtil',t)}(),function(){function t(){function t(t){var e=o+'-'+t,a=r(e),s=a.charAt(0).toLowerCase()+a.substring(1);return n(i,t)?t:n(i,a)?a:n(i,s)?s:t}function n(t,n){return e.isDefined(t.style[n])}function r(t){return t.replace(s,function(t,e,n,r){return r?n.toUpperCase():n})}var i=document.createElement('div'),o=function(t){var e,n,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(e in t.style)if(n=r.exec(e))return n[0]}(i),a=/webkit/i.test(o),s=/([:\-_]+(.))/g,c={isInputKey:function(t){return t.keyCode>=31&&t.keyCode<=90},isNumPadKey:function(t){return 3===t.location&&t.keyCode>=97&&t.keyCode<=105},isMetaKey:function(t){return t.keyCode>=91&&t.keyCode<=93},isFnLockKey:function(t){return t.keyCode>=112&&t.keyCode<=145},isNavigationKey:function(t){var e=c.KEY_CODE;return-1!=[e.SPACE,e.ENTER,e.UP_ARROW,e.DOWN_ARROW].indexOf(t.keyCode)},hasModifierKey:function(t){return t.ctrlKey||t.metaKey||t.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:'transitionend'+(a?' webkitTransitionEnd':''),ANIMATIONEND:'animationend'+(a?' webkitAnimationEnd':''),TRANSFORM:t('transform'),TRANSFORM_ORIGIN:t('transformOrigin'),TRANSITION:t('transition'),TRANSITION_DURATION:t('transitionDuration'),ANIMATION_PLAY_STATE:t('animationPlayState'),ANIMATION_DURATION:t('animationDuration'),ANIMATION_NAME:t('animationName'),ANIMATION_TIMING:t('animationTimingFunction'),ANIMATION_DIRECTION:t('animationDirection')},MEDIA:{xs:'(max-width: 599px)','gt-xs':'(min-width: 600px)',sm:'(min-width: 600px) and (max-width: 959px)','gt-sm':'(min-width: 960px)',md:'(min-width: 960px) and (max-width: 1279px)','gt-md':'(min-width: 1280px)',lg:'(min-width: 1280px) and (max-width: 1919px)','gt-lg':'(min-width: 1920px)',xl:'(min-width: 1920px)',landscape:'(orientation: landscape)',portrait:'(orientation: portrait)',print:'print'},MEDIA_PRIORITY:['xl','gt-lg','lg','gt-md','md','gt-sm','sm','gt-xs','xs','landscape','portrait','print']};return c}e.module('material.core').factory('$mdConstant',t)}(),function(){function t(t,n){function r(){return[].concat($)}function i(){return $.length}function o(t){return $.length&&t>-1&&t<$.length}function a(t){return!!t&&o(f(t)+1)}function s(t){return!!t&&o(f(t)-1)}function c(t){return o(t)?$[t]:null}function u(t,e){return $.filter(function(n){return n[t]===e})}function l(t,n){return t?(e.isNumber(n)||(n=$.length),$.splice(n,0,t),f(t)):-1}function d(t){m(t)&&$.splice(f(t),1)}function f(t){return $.indexOf(t)}function m(t){return t&&f(t)>-1}function p(){return $.length?$[0]:null}function h(){return $.length?$[$.length-1]:null}function v(t,r,i,a){i=i||g;for(var s=f(r);;){if(!o(s))return null;var c=s+(t?-1:1),u=null;if(o(c)?u=$[c]:n&&(u=t?h():p(),c=f(u)),null===u||c===a)return null;if(i(u))return u;e.isUndefined(a)&&(a=c),s=c}}var g=function(){return!0};t&&!e.isArray(t)&&(t=Array.prototype.slice.call(t)),n=!!n;var $=t||[];return{items:r,count:i,inRange:o,contains:m,indexOf:f,itemAt:c,findBy:u,add:l,remove:d,first:p,last:h,next:e.bind(null,v,!1),previous:e.bind(null,v,!0),hasPrevious:s,hasNext:a}}e.module('material.core').config(['$provide',function(e){e.decorator('$mdUtil',['$delegate',function(e){return e.iterator=t,e}])}])}(),function(){function t(t,n,r){function i(t){var n=f[t];e.isUndefined(n)&&(n=f[t]=o(t));var r=p[n];return e.isUndefined(r)&&(r=a(n)),r}function o(e){return t.MEDIA[e]||('('!==e.charAt(0)?'('+e+')':e)}function a(t){var e=m[t];return e||(e=m[t]=r.matchMedia(t)),e.addListener(s),p[e.media]=!!e.matches}function s(t){n.$evalAsync(function(){p[t.media]=!!t.matches})}function c(t){return m[t]}function u(e,n){for(var r=0;r<t.MEDIA_PRIORITY.length;r++){var i=t.MEDIA_PRIORITY[r];if(m[f[i]].matches){var o=d(e,n+'-'+i);if(e[o])return e[o]}}return e[d(e,n)]}function l(n,r,i){var o=[];return n.forEach(function(n){var a=d(r,n);e.isDefined(r[a])&&o.push(r.$observe(a,e.bind(void 0,i,null)));for(var s in t.MEDIA)a=d(r,n+'-'+s),e.isDefined(r[a])&&o.push(r.$observe(a,e.bind(void 0,i,s)))}),function(){o.forEach(function(t){t()})}}function d(t,e){return h[e]||(h[e]=t.$normalize(e))}var f={},m={},p={},h={};return i.getResponsiveAttribute=u,i.getQuery=c,i.watchResponsiveAttributes=l,i}t.$inject=['$mdConstant','$rootScope','$window'],e.module('material.core').factory('$mdMedia',t)}(),function(){function t(t,n){function r(t){return t=e.isArray(t)?t:[t],t.forEach(function(e){c.forEach(function(n){t.push(n+'-'+e)})}),t}function i(t){return t=e.isArray(t)?t:[t],r(t).map(function(t){return'['+t+']'}).join(',')}function o(t,e){if(!(t=s(t)))return!1;for(var n=r(e),i=0;i<n.length;i++)if(t.hasAttribute(n[i]))return!0;return!1}function a(t,e){(t=s(t))&&r(e).forEach(function(e){t.removeAttribute(e)})}function s(t){if(t=t[0]||t,t.nodeType)return t}var c=['data','x'];return t?n?i(t):r(t):{buildList:r,buildSelector:i,hasAttribute:o,removeAttribute:a}}e.module('material.core').config(['$provide',function(e){e.decorator('$mdUtil',['$delegate',function(e){return e.prefixer=t,e}])}])}(),function(){function r(r,o,a,s,c,u,l,d,f,m){function p(t){return t?h(t)||v(t)?t:t+'px':'0'}function h(t){return String(t).indexOf('px')>-1}function v(t){return String(t).indexOf('%')>-1}function g(t){return t[0]||t}var $=u.startSymbol(),b=u.endSymbol(),y='{{'===$&&'}}'===b,E=function(t,n,r){var i=!1;if(t&&t.length){var o=f.getComputedStyle(t[0]);i=e.isDefined(o[n])&&(!r||o[n]==r)}return i},w={dom:{},now:t.performance&&t.performance.now?e.bind(t.performance,t.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(t,e){if(t.$options){var n=t.$options;return n.getOption?n.getOption(e):n[e]}},bidi:function(t,n,i,o){var a=!('rtl'==r[0].dir||'rtl'==r[0].body.dir);if(0==arguments.length)return a?'ltr':'rtl';var s=e.element(t);a&&e.isDefined(i)?s.css(n,p(i)):!a&&e.isDefined(o)&&s.css(n,p(o))},bidiProperty:function(t,n,i,o){var a=!('rtl'==r[0].dir||'rtl'==r[0].body.dir),s=e.element(t);a&&e.isDefined(n)?(s.css(n,p(o)),s.css(i,'')):!a&&e.isDefined(i)&&(s.css(i,p(o)),s.css(n,''))},clientRect:function(t,e,n){var r=g(t);e=g(e||r.offsetParent||document.body);var i=r.getBoundingClientRect(),o=n?e.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-o.left,top:i.top-o.top,width:i.width,height:i.height}},offsetRect:function(t,e){return w.clientRect(t,e,!0)},nodesToArray:function(t){t=t||[];for(var e=[],n=0;n<t.length;++n)e.push(t.item(n));return e},getViewportTop:function(){return t.scrollY||t.pageYOffset||0},findFocusTarget:function(t,n){function r(t,n){var r,i=t[0].querySelectorAll(n);return i&&i.length&&i.length&&e.forEach(i,function(t){t=e.element(t),t.hasClass('md-autofocus')&&(r=t)}),r}var i,o=this.prefixer('md-autofocus',!0);return i=r(t,n||o),i||n==o||(i=r(t,this.prefixer('md-auto-focus',!0)))||(i=r(t,o)),i},disableScrollAround:function(t,n,i){if(i=i||{},w.disableScrollAround._count=Math.max(0,w.disableScrollAround._count||0),w.disableScrollAround._count++,w.disableScrollAround._restoreScroll)return w.disableScrollAround._restoreScroll;var o=r[0].body,a=function(){var t=r[0].documentElement,n=t.style.cssText||'',i=o.style.cssText||'',a=w.getViewportTop(),s=o.clientWidth,c=o.scrollHeight>o.clientHeight+1;return c&&e.element(o).css({position:'fixed',width:'100%',top:-a+'px'}),o.clientWidth<s&&(o.style.overflow='hidden'),c&&(t.style.overflowY='scroll'),function(){o.style.cssText=i,t.style.cssText=n,o.scrollTop=a}}(),s=function(t){function n(t){t.preventDefault()}t=e.element(t||o);var r;return i.disableScrollMask?r=t:(r=e.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),t.append(r)),r.on('wheel',n),r.on('touchmove',n),function(){r.off('wheel'),r.off('touchmove'),i.disableScrollMask||r[0].parentNode.removeChild(r[0])}}(n);return w.disableScrollAround._restoreScroll=function(){--w.disableScrollAround._count<=0&&(a(),s(),delete w.disableScrollAround._restoreScroll)}},enableScrolling:function(){var t=this.disableScrollAround._restoreScroll;t&&t()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var t=e.element('<div><div></div></div>').css({width:'100%','z-index':-1,position:'absolute',height:'35px','overflow-y':'scroll'});t.children().css('height','60px'),r[0].body.appendChild(t[0]),this.floatingScrollbars.cached=t[0].offsetWidth==t[0].childNodes[0].offsetWidth,t.remove()}return this.floatingScrollbars.cached},forceFocus:function(e){var n=e[0]||e;document.addEventListener('click',function t(e){e.target===n&&e.$focus&&(n.focus(),e.stopImmediatePropagation(),e.preventDefault(),n.removeEventListener('click',t))},!0);var r=document.createEvent('MouseEvents');r.initMouseEvent('click',!1,!0,t,{},0,0,0,0,!1,!1,!1,!1,0,null),r.$material=!0,r.$focus=!0,n.dispatchEvent(r)},createBackdrop:function(t,e){return a(w.supplant('<md-backdrop class="{0}">',[e]))(t)},supplant:function(t,e,n){return n=n||/\{([^\{\}]*)\}/g,t.replace(n,function(t,n){var r=n.split('.'),i=e;try{for(var o in r)r.hasOwnProperty(o)&&(i=i[r[o]])}catch(e){i=t}return'string'==typeof i||'number'==typeof i?i:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:e.noop,$setViewValue:function(t){this.$viewValue=t,this.$render(t),this.$viewChangeListeners.forEach(function(t){t()})},$isEmpty:function(t){return 0===(''+t).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:e.noop}},debounce:function(t,e,r,i){var a;return function(){var s=r,c=Array.prototype.slice.call(arguments);o.cancel(a),a=o(function(){a=n,t.apply(s,c)},e||10,i)}},throttle:function(t,e){var n;return function(){var r=this,i=arguments,o=w.now();(!n||o-n>e)&&(t.apply(r,i),n=o)}},time:function(t){var e=w.now();return t(),w.now()-e},valueOnUse:function(t,e,n){var r=null,i=Array.prototype.slice.call(arguments),o=i.length>3?i.slice(3):[];Object.defineProperty(t,e,{get:function(){return null===r&&(r=n.apply(t,o)),r}})},nextUid:function(){return''+i++},disconnectScope:function(t){if(t&&t.$root!==t&&!t.$$destroyed){var e=t.$parent;t.$$disconnected=!0,e.$$childHead===t&&(e.$$childHead=t.$$nextSibling),e.$$childTail===t&&(e.$$childTail=t.$$prevSibling),t.$$prevSibling&&(t.$$prevSibling.$$nextSibling=t.$$nextSibling),t.$$nextSibling&&(t.$$nextSibling.$$prevSibling=t.$$prevSibling),t.$$nextSibling=t.$$prevSibling=null}},reconnectScope:function(t){if(t&&t.$root!==t&&t.$$disconnected){var e=t,n=e.$parent;e.$$disconnected=!1,e.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=e,n.$$childTail=e):n.$$childHead=n.$$childTail=e}},getClosest:function(t,n,r){if(e.isString(n)){var i=n.toUpperCase();n=function(t){return t.nodeName.toUpperCase()===i}}if(t instanceof e.element&&(t=t[0]),r&&(t=t.parentNode),!t)return null;do{if(n(t))return t}while(t=t.parentNode);return null},elementContains:function(n,r){return(t.Node&&t.Node.prototype&&Node.prototype.contains?e.bind(n,n.contains):e.bind(n,function(t){return n===r||!!(16&this.compareDocumentPosition(t))}))(r)},extractElementByName:function(t,n,r,i){function o(t){return a(t)||(r?s(t):null)}function a(t){if(t)for(var e=0,r=t.length;e<r;e++)if(t[e].nodeName.toLowerCase()===n)return t[e];return null}function s(t){var e;if(t)for(var n=0,r=t.length;n<r;n++){var i=t[n];if(!e)for(var a=0,s=i.childNodes.length;a<s;a++)e=e||o([i.childNodes[a]])}return e}var c=o(t);return!c&&i&&l.warn(w.supplant('Unable to find node \'{0}\' in element \'{1}\'.',[n,t[0].outerHTML])),e.element(c||t)},initOptionalProperties:function(t,n,r){r=r||{},e.forEach(t.$$isolateBindings,function(i,o){if(i.optional&&e.isUndefined(t[o])){var a=e.isDefined(n[i.attrName]);t[o]=e.isDefined(r[o])?r[o]:a}})},nextTick:function(t,e,n){function r(){var t=i.queue,e=i.digest;i.queue=[],i.timeout=null,i.digest=!1,t.forEach(function(t){t.scope&&t.scope.$$destroyed||t.callback()}),e&&s.$digest()}var i=w.nextTick,a=i.timeout,c=i.queue||[];return c.push({scope:n,callback:t}),null==e&&(e=!0),i.digest=i.digest||e,i.queue=c,a||(i.timeout=o(r,0,!1))},processTemplate:function(t){return y?t:t&&e.isString(t)?t.replace(/\{\{/g,$).replace(/}}/g,b):t},getParentWithPointerEvents:function(t){for(var e=t.parent();E(e,'pointer-events','none');)e=e.parent();return e},getNearestContentElement:function(t){for(var e=t.parent()[0];e&&e!==d[0]&&e!==document.body&&'MD-CONTENT'!==e.nodeName.toUpperCase();)e=e.parentNode;return e},checkStickySupport:function(){var t,n=e.element('<div>');r[0].body.appendChild(n[0]);for(var i=['sticky','-webkit-sticky'],o=0;o<i.length;++o)if(n.css({position:i[o],top:0,'z-index':2}),n.css('position')==i[o]){t=i[o];break}return n.remove(),t},parseAttributeBoolean:function(t,e){return''===t||!!t&&(!1===e||'false'!==t&&'0'!==t)},hasComputedStyle:E,isParentFormSubmitted:function(t){var n=w.getClosest(t,'form'),r=n?e.element(n).controller('form'):null;return!!r&&r.$submitted},animateScrollTo:function(t,e,n){function r(){var n=i();t.scrollTop=n,(c?n<e:n>e)&&m(r)}function i(){var t=n||1e3;return o(w.now()-u,a,s,t)}function o(t,e,n,r){if(t>r)return e+n;var i=(t/=r)*t;return e+n*(i*t*-2+3*i)}var a=t.scrollTop,s=e-a,c=a<e,u=w.now();m(r)},uniq:function(t){if(t)return t.filter(function(t,e,n){return n.indexOf(t)===e})}};return w.dom.animator=c(w),w}r.$inject=['$document','$timeout','$compile','$rootScope','$$mdAnimate','$interpolate','$log','$rootElement','$window','$$rAF'];var i=0;e.module('material.core').factory('$mdUtil',r),e.element.prototype.focus=e.element.prototype.focus||function(){return this.length&&this[0].focus(),this},e.element.prototype.blur=e.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){function t(t,e,n,r,i){this.$q=t,this.$templateRequest=e,this.$injector=n,this.$compile=r,this.$controller=i}t.$inject=['$q','$templateRequest','$injector','$compile','$controller'],e.module('material.core').service('$mdCompiler',t),t.prototype.compile=function(t){return t.contentElement?this._prepareContentElement(t):this._compileTemplate(t)},t.prototype._prepareContentElement=function(t){var e=this._fetchContentElement(t);return this.$q.resolve({element:e.element,cleanup:e.restore,locals:{},link:function(){return e.element}})},t.prototype._compileTemplate=function(t){var n=this,r=t.templateUrl,i=t.template||'',o=e.extend({},t.resolve),a=e.extend({},t.locals),s=t.transformTemplate||e.identity;return e.forEach(o,function(t,r){e.isString(t)?o[r]=n.$injector.get(t):o[r]=n.$injector.invoke(t)}),e.extend(o,a),o.$$ngTemplate=r?this.$templateRequest(r):this.$q.when(i),this.$q.all(o).then(function(r){var i=s(r.$$ngTemplate,t),o=t.element||e.element('<div>').html(i.trim()).contents();return n._compileElement(r,o,t)})},t.prototype._compileElement=function(t,n,r){function i(i){if(t.$scope=i,r.controller){var c=e.extend(t,{$element:n}),u=o.$controller(r.controller,c,!0,r.controllerAs);r.bindToController&&e.extend(u.instance,t);var l=u();n.data('$ngControllerController',l),n.children().data('$ngControllerController',l),s.controller=l}return a(i)}var o=this,a=this.$compile(n),s={element:n,cleanup:n.remove.bind(n),locals:t,link:i};return s},t.prototype._fetchContentElement=function(t){function n(t){var e=t.parentNode,n=t.nextElementSibling;return function(){n?e.insertBefore(t,n):e.appendChild(t)}}var r=t.contentElement,i=null;return e.isString(r)?(r=document.querySelector(r),i=n(r)):(r=r[0]||r,i=document.contains(r)?n(r):function(){r.parentNode&&r.parentNode.removeChild(r)}),{element:e.element(r),restore:i}}}(),function(){function t(){function t(){e.showWarnings=!1}var e={showWarnings:!0};return{disableWarnings:t,$get:['$$rAF','$log','$window','$interpolate',function(t,r,i,o){return n.apply(e,arguments)}]}}function n(t,n,r,i){function o(t,r,i){var o=e.element(t)[0]||t;!o||o.hasAttribute(r)&&0!==o.getAttribute(r).length||l(o,r)||(i=e.isString(i)?i.trim():'',i.length?t.attr(r,i):m&&n.warn('ARIA: Attribute "',r,'", required for accessibility, is missing on node:',o))}function a(e,n,r){t(function(){o(e,n,r())})}function s(t,e){var n=u(t)||'';n.indexOf(i.startSymbol())>-1?a(t,e,function(){return u(t)}):o(t,e,n)}function c(t,e){var n=u(t);n.indexOf(i.startSymbol())>-1||n||o(t,e,n)}function u(t){t=t[0]||t;for(var e,n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r='';e=n.nextNode();)(function(e){for(;e.parentNode&&(e=e.parentNode)!==t;)if(e.getAttribute&&'true'===e.getAttribute('aria-hidden'))return!0})(e)||(r+=e.textContent);return r.trim()||''}function l(t,e){var n=t.hasChildNodes(),i=!1;if(n)for(var o=t.childNodes,a=0;a<o.length;a++){var s=o[a];1===s.nodeType&&s.hasAttribute(e)&&(function(t){return'none'===(t.currentStyle?t.currentStyle:r.getComputedStyle(t)).display}(s)||(i=!0))}return i}function d(t){var n=e.element(t)[0]||t;return!!n.hasAttribute&&(n.hasAttribute('aria-label')||n.hasAttribute('aria-labelledby')||n.hasAttribute('aria-describedby'))}function f(t,n){n=n||1;var r=e.element(t)[0]||t;return!!r.parentNode&&(!!function(t){if(!d(t))return!1;if(t.hasAttribute('role'))switch(t.getAttribute('role').toLowerCase()){case'command':case'definition':case'directory':case'grid':case'list':case'listitem':case'log':case'marquee':case'menu':case'menubar':case'note':case'presentation':case'separator':case'scrollbar':case'status':case'tablist':return!1}switch(t.tagName.toLowerCase()){case'abbr':case'acronym':case'address':case'applet':case'audio':case'b':case'bdi':case'bdo':case'big':case'blockquote':case'br':case'canvas':case'caption':case'center':case'cite':case'code':case'col':case'data':case'dd':case'del':case'dfn':case'dir':case'div':case'dl':case'em':case'embed':case'fieldset':case'figcaption':case'font':case'h1':case'h2':case'h3':case'h4':case'h5':case'h6':case'hgroup':case'html':case'i':case'ins':case'isindex':case'kbd':case'keygen':case'label':case'legend':case'li':case'map':case'mark':case'menu':case'object':case'ol':case'output':case'pre':case'presentation':case'q':case'rt':case'ruby':case'samp':case'small':case'source':case'span':case'status':case'strike':case'strong':case'sub':case'sup':case'svg':case'tbody':case'td':case'th':case'thead':case'time':case'tr':case'track':case'tt':case'ul':case'var':return!1}return!0}(r.parentNode)||!!--n&&f(r.parentNode,n))}var m=this.showWarnings;return{expect:o,expectAsync:a,expectWithText:s,expectWithoutText:c,getText:u,hasAriaLabel:d,parentHasAriaLabel:f}}n.$inject=['$$rAF','$log','$window','$interpolate'],e.module('material.core').provider('$mdAria',t)}(),function(){function n(t,n){this.$timeout=t,this.$mdUtil=n,this.bodyElement=e.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputEventMap={keydown:'keyboard',mousedown:'mouse',mouseenter:'mouse',touchstart:'touch',pointerdown:'pointer',MSPointerDown:'pointer'},this.iePointerMap={2:'touch',3:'touch',4:'mouse'},this.initializeEvents()}n.$inject=['$timeout','$mdUtil'],e.module('material.core.interaction',[]).service('$mdInteraction',n),n.prototype.initializeEvents=function(){var e='MSPointerEvent'in t?'MSPointerDown':'PointerEvent'in t?'pointerdown':null;this.bodyElement.on('keydown mousedown',this.onInputEvent.bind(this)),'ontouchstart'in document.documentElement&&this.bodyElement.on('touchstart',this.onBufferInputEvent.bind(this)),e&&this.bodyElement.on(e,this.onInputEvent.bind(this))},n.prototype.onInputEvent=function(t){if(!this.isBuffering){var e=this.inputEventMap[t.type];'pointer'===e&&(e=this.iePointerMap[t.pointerType]||t.pointerType),this.lastInteractionType=e,this.lastInteractionTime=this.$mdUtil.now()}},n.prototype.onBufferInputEvent=function(t){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(t),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},n.prototype.getLastInteractionType=function(){return this.lastInteractionType},n.prototype.isUserInvoked=function(t){var n=e.isNumber(t)?t:15;return this.lastInteractionTime>=this.$mdUtil.now()-n}}(),function(){function n(){}function r(n,r,i){function o(t){return function(e,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(e,t,n)}}function a(t,e,n){var r=p[e.replace(/^\$md./,'')];if(!r)throw new Error('Failed to register element with handler '+e+'. Available handlers: '+Object.keys(p).join(', '));return r.registerElement(t,n)}function c(t,r){var i=new n(t);return e.extend(i,r),p[t]=i,g}var u=navigator.userAgent||navigator.vendor||t.opera,d=u.match(/ipad|iphone|ipod/i),f=u.match(/android/i),m=function(){for(var t=document.createElement('div'),n=['','webkit','Moz','MS','ms','o'],r=0;r<n.length;r++){var i=n[r],o=i?i+'TouchAction':'touchAction';if(e.isDefined(t.style[o]))return o}}(),v=void 0!==t.jQuery&&e.element===t.jQuery,g={handler:c,register:a,isHijackingClicks:(d||f)&&!v&&!h};if(g.isHijackingClicks){g.handler('click',{options:{maxDistance:6},onEnd:o('click')}),g.handler('focus',{options:{maxDistance:6},onEnd:function(t,e){e.distance<this.state.options.maxDistance&&function(t){var e=['INPUT','SELECT','BUTTON','TEXTAREA','VIDEO','AUDIO'];return'-1'!=t.getAttribute('tabindex')&&!t.hasAttribute('DISABLED')&&(t.hasAttribute('tabindex')||t.hasAttribute('href')||t.isContentEditable||-1!=e.indexOf(t.nodeName))}(t.target)&&(this.dispatchEvent(t,'focus',e),t.target.focus())}}),g.handler('mouseup',{options:{maxDistance:6},onEnd:o('mouseup')}),g.handler('mousedown',{onStart:function(t){this.dispatchEvent(t,'mousedown')}})}return g.handler('press',{onStart:function(t,e){this.dispatchEvent(t,'$md.pressdown')},onEnd:function(t,e){this.dispatchEvent(t,'$md.pressup')}}).handler('hold',{options:{maxDistance:6,delay:500},onCancel:function(){i.cancel(this.state.timeout)},onStart:function(t,n){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:n.x,y:n.y},this.state.timeout=i(e.bind(this,function(){this.dispatchEvent(t,'$md.hold'),this.cancel()}),this.state.options.delay,!1)},onMove:function(t,e){m||'touchmove'!==t.type||t.preventDefault();var n=this.state.pos.x-e.x,r=this.state.pos.y-e.y;Math.sqrt(n*n+r*r)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler('drag',{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(t,e){m&&(this.oldTouchAction=t[0].style[m],t[0].style[m]=e.horizontal?'pan-y':'pan-x')},onCleanup:function(t){this.oldTouchAction&&(t[0].style[m]=this.oldTouchAction)},onStart:function(t){this.state.registeredParent||this.cancel()},onMove:function(t,e){var n,r;m||'touchmove'!==t.type||t.preventDefault(),this.state.dragPointer?this.dispatchDragMove(t):(this.state.options.horizontal?(n=Math.abs(e.distanceX)>this.state.options.minDistance,r=Math.abs(e.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(e.distanceY)>this.state.options.minDistance,r=Math.abs(e.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=s(t),l(t,this.state.dragPointer),this.dispatchEvent(t,'$md.dragstart',this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:r.throttle(function(t){this.state.isRunning&&(l(t,this.state.dragPointer),this.dispatchEvent(t,'$md.drag',this.state.dragPointer))}),onEnd:function(t,e){this.state.dragPointer&&(l(t,this.state.dragPointer),this.dispatchEvent(t,'$md.dragend',this.state.dragPointer))}}).handler('swipe',{options:{minVelocity:.65,minDistance:10},onEnd:function(t,e){var n;Math.abs(e.velocityX)>this.state.options.minVelocity&&Math.abs(e.distanceX)>this.state.options.minDistance?(n='left'==e.directionX?'$md.swipeleft':'$md.swiperight',this.dispatchEvent(t,n)):Math.abs(e.velocityY)>this.state.options.minVelocity&&Math.abs(e.distanceY)>this.state.options.minDistance&&(n='up'==e.directionY?'$md.swipeup':'$md.swipedown',this.dispatchEvent(t,n))}})}function i(t){this.name=t,this.state={}}function o(){function n(t,n,r){r=r||f;var i=new e.element.Event(n);i.$material=!0,i.pointer=r,i.srcEvent=t,e.extend(i,{clientX:r.x,clientY:r.y,screenX:r.x,screenY:r.y,pageX:r.x,pageY:r.y,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey}),e.element(r.target).trigger(i)}function r(e,n,r){r=r||f;var i;'click'===n||'mouseup'==n||'mousedown'==n?(i=document.createEvent('MouseEvents'),i.initMouseEvent(n,!0,!0,t,e.detail,r.x,r.y,r.x,r.y,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget||null)):(i=document.createEvent('CustomEvent'),i.initCustomEvent(n,!0,!0,{})),i.$material=!0,i.pointer=r,i.srcEvent=e,r.target.dispatchEvent(i)}var o=void 0!==t.jQuery&&e.element===t.jQuery;return i.prototype={options:{},dispatchEvent:o?n:r,onSetup:e.noop,onCleanup:e.noop,onStart:e.noop,onMove:e.noop,onEnd:e.noop,onCancel:e.noop,start:function(t,n){if(!this.state.isRunning){var r=this.getNearestParent(t.target),i=r&&r.$mdGesture[this.name]||{};this.state={isRunning:!0,options:e.extend({},this.options,i),registeredParent:r},this.onStart(t,n)}},move:function(t,e){this.state.isRunning&&this.onMove(t,e)},end:function(t,e){this.state.isRunning&&(this.onEnd(t,e),this.state.isRunning=!1)},cancel:function(t,e){this.onCancel(t,e),this.state={}},getNearestParent:function(t){for(var e=t;e;){if((e.$mdGesture||{})[this.name])return e;e=e.parentNode}return null},registerElement:function(t,e){function n(){delete t[0].$mdGesture[r.name],t.off('$destroy',n),r.onCleanup(t,e||{})}var r=this;return t[0].$mdGesture=t[0].$mdGesture||{},t[0].$mdGesture[this.name]=e||{},t.on('$destroy',n),r.onSetup(t,e||{}),n}},i}function a(t,n){function r(t){!t.clientX&&!t.clientY||t.$material||t.isIonicTap||u(t)||(t.preventDefault(),t.stopPropagation())}function i(t){var e=0===t.clientX&&0===t.clientY,n=t.target&&'submit'===t.target.type;e||t.$material||t.isIonicTap||u(t)||n?(v=null,'label'==t.target.tagName.toLowerCase()&&(v={x:t.x,y:t.y})):(t.preventDefault(),t.stopPropagation(),v=null)}function o(t,e){var r;for(var i in p)(r=p[i])instanceof n&&('start'===t&&r.cancel(),r[t](e,f))}function a(t){if(!f){var e=+Date.now();m&&!c(t,m)&&e-m.endTime<1500||(f=s(t),o('start',t))}}function d(t){f&&c(t,f)&&(l(t,f),o('move',t))}function h(t){f&&c(t,f)&&(l(t,f),f.endTime=+Date.now(),o('end',t),m=f,f=null)}document.contains||(document.contains=function(t){return document.body.contains(t)}),!g&&t.isHijackingClicks&&(document.addEventListener('click',i,!0),document.addEventListener('mouseup',r,!0),document.addEventListener('mousedown',r,!0),document.addEventListener('focus',r,!0),g=!0);e.element(document).on('mousedown touchstart pointerdown',a).on('mousemove touchmove pointermove',d).on('mouseup mouseleave touchend touchcancel pointerup pointercancel',h).on('$$mdGestureReset',function(){m=f=null})}function s(t){var e=d(t),n={startTime:+Date.now(),target:t.target,type:t.type.charAt(0)};return n.startX=n.x=e.pageX,n.startY=n.y=e.pageY,n}function c(t,e){return t&&e&&t.type.charAt(0)===e.type}function u(t){return v&&v.x==t.x&&v.y==t.y}function l(t,e){var n=d(t),r=e.x=n.pageX,i=e.y=n.pageY;e.distanceX=r-e.startX,e.distanceY=i-e.startY,e.distance=Math.sqrt(e.distanceX*e.distanceX+e.distanceY*e.distanceY),e.directionX=e.distanceX>0?'right':e.distanceX<0?'left':'',e.directionY=e.distanceY>0?'down':e.distanceY<0?'up':'',e.duration=+Date.now()-e.startTime,e.velocityX=e.distanceX/e.duration,e.velocityY=e.distanceY/e.duration}function d(t){return t=t.originalEvent||t,t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t}r.$inject=['$$MdGestureHandler','$$rAF','$timeout'],a.$inject=['$mdGesture','$$MdGestureHandler'];var f,m,p={},h=!1,v=null,g=!1;e.module('material.core.gestures',[]).provider('$mdGesture',n).factory('$$MdGestureHandler',o).run(a),n.prototype={skipClickHijack:function(){return h=!0},$get:['$$MdGestureHandler','$$rAF','$timeout',function(t,e,n){return new r(t,e,n)}]}}(),function(){function t(){function t(t){function n(t){return c.optionsFactory=t.options,c.methods=(t.methods||[]).concat(a),u}function r(t,e){return s[t]=e,u}function i(e,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(e))throw new Error('Preset \''+e+'\' in '+t+' is reserved!');if(n.methods.indexOf('_options')>-1)throw new Error('Method \'_options\' in '+t+' is reserved!');return c.presets[e]={methods:n.methods.concat(a),optionsFactory:n.options,argOption:n.argOption},u}function o(n,r){function i(t){return t=t||{},t._options&&(t=t._options),d.show(e.extend({},l,t))}function o(t){return d.destroy(t)}function a(e,n){var i={};return i[t]=f,r.invoke(e||function(){return n},{},i)}var u,l,d=n(),f={hide:d.hide,cancel:d.cancel,show:i,destroy:o};return u=c.methods||[],l=a(c.optionsFactory,{}),e.forEach(s,function(t,e){f[e]=t}),e.forEach(c.presets,function(t,n){function r(t){this._options=e.extend({},i,t)}var i=a(t.optionsFactory,{}),o=(t.methods||[]).concat(u);if(e.extend(i,{$type:n}),e.forEach(o,function(t){r.prototype[t]=function(e){return this._options[t]=e,this}}),t.argOption){var s='show'+n.charAt(0).toUpperCase()+n.slice(1);f[s]=function(t){var e=f[n](t);return f.show(e)}}f[n]=function(n){return arguments.length&&t.argOption&&!e.isObject(n)&&!e.isArray(n)?(new r)[t.argOption](n):new r(n)}}),f}o.$inject=['$$interimElement','$injector'];var a=['onHide','onShow','onRemove'],s={},c={presets:{}},u={setDefaults:n,addPreset:i,addMethod:r,$get:o};return u.addPreset('build',{methods:['controller','controllerAs','resolve','multiple','template','templateUrl','themable','transformTemplate','parent','contentElement']}),u}function r(t,r,i,o,a,s,c,u,l,d,f){return function(){function m(t){t=t||{};var e=new $(t||{}),n=t.multiple?r.resolve():r.all(E);t.multiple||(n=n.then(function(){var t=w.concat(C.map(b.cancel));return r.all(t)}));var i=n.then(function(){return e.show().catch(function(t){return t}).finally(function(){E.splice(E.indexOf(i),1),C.push(e)})});return E.push(i),e.deferred.promise.catch(function(t){return t instanceof Error&&f(t),t}),e.deferred.promise}function p(t,e){function i(n){var r=n.remove(t,!1,e||{}).catch(function(t){return t}).finally(function(){w.splice(w.indexOf(r),1)});return C.splice(C.indexOf(n),1),w.push(r),n.deferred.promise}return e=e||{},e.closeAll?r.all(C.slice().reverse().map(i)):e.closeTo!==n?r.all(C.slice(e.closeTo).map(i)):i(C[C.length-1])}function h(t,n){var i=C.pop();if(!i)return r.when(t);var o=i.remove(t,!0,n||{}).catch(function(t){return t}).finally(function(){w.splice(w.indexOf(o),1)});return w.push(o),i.deferred.promise.catch(e.noop)}function v(t){return function(){var e=arguments;return C.length?t.apply(b,e):E.length?E[0].finally(function(){return t.apply(b,e)}):r.when('No interim elements currently showing up.')}}function g(t){var n=t?null:C.shift(),i=e.element(t).length&&e.element(t)[0].parentNode;if(i){var o=C.filter(function(t){return t.options.element[0]===i});o.length&&(n=o[0],C.splice(C.indexOf(n),1))}return n?n.remove(y,!1,{$destroy:!0}):r.when(y)}function $(d){function f(){return r(function(t,e){function n(t){E.deferred.reject(t),e(t)}d.onCompiling&&d.onCompiling(d),p(d).then(function(e){w=h(e,d),d.cleanupElement=e.cleanup,C=$(w,d,e.controller).then(t,n)}).catch(n)})}function m(t,n,i){function o(t){E.deferred.resolve(t)}function a(t){E.deferred.reject(t)}return w?(d=e.extend(d||{},i||{}),d.cancelAutoHide&&d.cancelAutoHide(),d.element.triggerHandler('$mdInterimElementRemove'),!0===d.$destroy?y(d.element,d).then(function(){n&&a(t)||o(t)}):(r.when(C).finally(function(){y(d.element,d).then(function(){n?a(t):o(t)},a)}),E.deferred.promise)):r.when(!1)}function p(t){return(t.skipCompile?null:u.compile(t))||r(function(e){e({locals:{},link:function(){return t.element}})})}function h(t,n){e.extend(t.locals,n);var r=t.link(n.scope);return n.element=r,n.parent=v(r,n),n.themable&&l(r),r}function v(n,r){var i=r.parent;if(i=e.isFunction(i)?i(r.scope,n,r):e.isString(i)?e.element(t[0].querySelector(i)):e.element(i),!(i||{}).length){var o;return a[0]&&a[0].querySelector&&(o=a[0].querySelector(':not(svg) > body')),o||(o=a[0]),'#comment'==o.nodeName&&(o=t[0].body),e.element(o)}return i}function g(){var t,r=e.noop;d.hideDelay&&(t=o(b.hide,d.hideDelay),r=function(){o.cancel(t)}),d.cancelAutoHide=function(){r(),d.cancelAutoHide=n}}function $(t,n,i){var o=n.onShowing||e.noop,a=n.onComplete||e.noop;try{o(n.scope,t,n,i)}catch(t){return r.reject(t)}return r(function(e,o){try{r.when(n.onShow(n.scope,t,n,i)).then(function(){a(n.scope,t,n),g(),e(t)},o)}catch(t){o(t.message)}})}function y(t,n){var i=n.onRemoving||e.noop;return r(function(e,o){try{var a=r.when(n.onRemove(n.scope,t,n)||!0);i(t,a),n.$destroy?(e(t),!n.preserveScope&&n.scope&&a.then(function(){n.scope.$destroy()})):a.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),e(t)},o)}catch(t){o(t.message)}})}var E,w,C=r.when(!0);return d=function(t){return t=t||{},t.template&&(t.template=c.processTemplate(t.template)),e.extend({preserveScope:!1,cancelAutoHide:e.noop,scope:t.scope||i.$new(t.isolateScope),onShow:function(t,e,n){return s.enter(e,n.parent)},onRemove:function(t,e){return e&&s.leave(e)||r.when()}},t)}(d),E={options:d,deferred:r.defer(),show:f,remove:m}}var b,y=!1,E=[],w=[],C=[];return b={show:m,hide:v(p),cancel:v(h),destroy:g,$injector_:d}}}return r.$inject=['$document','$q','$rootScope','$timeout','$rootElement','$animate','$mdUtil','$mdCompiler','$mdTheming','$injector','$exceptionHandler'],t.$get=r,t}e.module('material.core').provider('$$interimElement',t)}(),function(){!function(){function t(){var t=!!document.querySelector('[md-layouts-disabled]');_.enabled=!t}function n(){return _.enabled=!1,{restrict:'A',priority:'900'}}function r(t){return['$timeout',function(n){return{restrict:'A',priority:-10,compile:function(r){return _.enabled?(r.addClass(t),function(e,r){n(function(){r.removeClass(t)},10,!1)}):e.noop}}}]}function i(t){function n(e,n,r){var i=a(n,t),o=r.$observe(r.$normalize(t),i);i(f(t,r,'')),e.$on('$destroy',function(){o()})}return['$mdUtil','$interpolate','$log',function(r,i,o){return h=r,v=i,g=o,{restrict:'A',compile:function(r,i){var o;return _.enabled&&(c(t,i,r,g),u(t,f(t,i,''),l(r,t,i)),o=n),o||e.noop}}}]}function o(t){function n(e,n){n.addClass(t)}return['$mdUtil','$interpolate','$log',function(r,i,o){return h=r,v=i,g=o,{restrict:'A',compile:function(r,i){var o;return _.enabled&&(u(t,f(t,i,''),l(r,t,i)),n(null,r),o=n),o||e.noop}}}]}function a(t,n){var r;return function(i){var o=u(n,i||'');e.isDefined(o)&&(r&&t.removeClass(r),r=o?n+'-'+o.trim().replace(b,'-'):n,t.addClass(r))}}function s(t){var n=t.split('-');return['$log',function(r){return r.warn(t+'has been deprecated. Please use a `'+n[0]+'-gt-<xxx>` variant.'),e.noop}]}function c(t,e,n,r){var i,o,a,s=n[0].nodeName.toLowerCase();switch(t.replace($,'')){case'flex':'md-button'!=s&&'fieldset'!=s||(o='<'+s+' '+t+'></'+s+'>',a='https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers',i='Markup \'{0}\' may not work as expected in IE Browsers. Consult \'{1}\' for details.',r.warn(h.supplant(i,[o,a])))}}function u(t,n,r){if(!d(n)){switch(t.replace($,'')){case'layout':m(n,E)||(n=E[0]);break;case'flex':m(n,y)||isNaN(n)&&(n='');break;case'flex-offset':case'flex-order':n&&!isNaN(+n)||(n='0');break;case'layout-align':var i=p(n);n=h.supplant('{main}-{cross}',i);break;case'layout-padding':case'layout-margin':case'layout-fill':case'layout-wrap':case'layout-nowrap':case'layout-nowrap':n=''}void 0!=n&&(r||e.noop)(n)}return n?n.trim():''}function l(t,e,n){return function(t){d(t)||(n[n.$normalize(e)]=t)}}function d(t){return(t||'').indexOf(v.startSymbol())>-1}function f(t,e,n){var r=e.$normalize(t);return e[r]?e[r].trim().replace(b,'-'):n||null}function m(t,e,n){t=n&&t?t.replace(b,n):t;var r=!1;return t&&e.forEach(function(e){e=n?e.replace(b,n):e,r=r||e===t}),r}function p(t){var e,n={main:'start',cross:'stretch'};return t=t||'',0!==t.indexOf('-')&&0!==t.indexOf(' ')||(t='none'+t),e=t.toLowerCase().trim().replace(b,'-').split('-'),e.length&&'space'===e[0]&&(e=[e[0]+'-'+e[1],e[2]]),e.length>0&&(n.main=e[0]||n.main),e.length>1&&(n.cross=e[1]||n.cross),w.indexOf(n.main)<0&&(n.main='start'),C.indexOf(n.cross)<0&&(n.cross='stretch'),n}var h,v,g,$=/(-gt)?-(sm|md|lg|print)/g,b=/\s+/g,y=['grow','initial','auto','none','noshrink','nogrow'],E=['row','column'],w=['','start','center','end','stretch','space-around','space-between'],C=['','start','center','end','stretch'],_={enabled:!0,breakpoints:[]};!function(a){function l(t){return t.replace(d,'').replace(f,function(t,e,n,r){return r?n.toUpperCase():n})}var d=/^((?:x|data)[\:\-_])/i,f=/([\:\-\_]+(.))/g,m=['','xs','gt-xs','sm','gt-sm','md','gt-md','lg','gt-lg','xl','print'],p=['layout','flex','flex-order','flex-offset','layout-align'],h=['show','hide','layout-padding','layout-margin'];e.forEach(m,function(t){e.forEach(p,function(e){var n=t?e+'-'+t:e;a.directive(l(n),i(n))}),e.forEach(h,function(e){var n=t?e+'-'+t:e;a.directive(l(n),o(n))})}),a.provider('$$mdLayout',function(){return{$get:e.noop,validateAttributeValue:u,validateAttributeUsage:c,disableLayouts:function(t){_.enabled=!0!==t}}}).directive('mdLayoutCss',n).directive('ngCloak',r('ng-cloak')).directive('layoutWrap',o('layout-wrap')).directive('layoutNowrap',o('layout-nowrap')).directive('layoutNoWrap',o('layout-no-wrap')).directive('layoutFill',o('layout-fill')).directive('layoutLtMd',s('layout-lt-md')).directive('layoutLtLg',s('layout-lt-lg')).directive('flexLtMd',s('flex-lt-md')).directive('flexLtLg',s('flex-lt-lg')).directive('layoutAlignLtMd',s('layout-align-lt-md')).directive('layoutAlignLtLg',s('layout-align-lt-lg')).directive('flexOrderLtMd',s('flex-order-lt-md')).directive('flexOrderLtLg',s('flex-order-lt-lg')).directive('offsetLtMd',s('flex-offset-lt-md')).directive('offsetLtLg',s('flex-offset-lt-lg')).directive('hideLtMd',s('hide-lt-md')).directive('hideLtLg',s('hide-lt-lg')).directive('showLtMd',s('show-lt-md')).directive('showLtLg',s('show-lt-lg')).config(t)}(e.module('material.core.layout',['ng']))}()}(),function(){function t(t){this._$timeout=t,this._liveElement=this._createLiveElement(),this._announceTimeout=100}t.$inject=['$timeout'],e.module('material.core').service('$mdLiveAnnouncer',t),t.prototype.announce=function(t,e){e||(e='polite');var n=this;n._liveElement.textContent='',n._liveElement.setAttribute('aria-live',e),n._$timeout(function(){n._liveElement.textContent=t},n._announceTimeout,!1)},t.prototype._createLiveElement=function(){var t=document.createElement('div');return t.classList.add('md-visually-hidden'),t.setAttribute('role','status'),t.setAttribute('aria-atomic','true'),t.setAttribute('aria-live','polite'),document.body.appendChild(t),t}}(),function(){e.module('material.core.meta',[]).provider('$$mdMeta',function(){function t(t){if(o[t])return!0;var n=document.getElementsByName(t)[0];return!!n&&(o[t]=e.element(n),!0)}function n(n,r){if(t(n),o[n])o[n].attr('content',r);else{var a=e.element('<meta name="'+n+'" content="'+r+'"/>');i.append(a),o[n]=a}return function(){o[n].attr('content',''),o[n].remove(),delete o[n]}}function r(e){if(!t(e))throw Error('$$mdMeta: could not find a meta tag with the name \''+e+'\'');return o[e].attr('content')}var i=e.element(document.head),o={},a={setMeta:n,getMeta:r};return e.extend({},a,{$get:function(){return a}})})}(),function(){function t(t,r){function i(t){return t&&''!==t}var o,a=[],s={};return o={notFoundError:function(e,n){t.error((n||'')+'No instance found for handle',e)},getInstances:function(){return a},get:function(t){if(!i(t))return null;var e,n,r;for(e=0,n=a.length;e<n;e++)if(r=a[e],r.$$mdHandle===t)return r;return null},register:function(t,n){function r(){var e=a.indexOf(t);-1!==e&&a.splice(e,1)}return n?(t.$$mdHandle=n,a.push(t),function(){var e=s[n];e&&(e.forEach(function(e){e.resolve(t)}),delete s[n])}(),r):e.noop},when:function(t){if(i(t)){var e=r.defer(),a=o.get(t);return a?e.resolve(a):(s[t]===n&&(s[t]=[]),s[t].push(e)),e.promise}return r.reject('Invalid `md-component-id` value.')}}}t.$inject=['$log','$q'],e.module('material.core').factory('$mdComponentRegistry',t)}(),function(){!function(){function t(t){function n(t){return t.hasClass('md-icon-button')?{isMenuItem:t.hasClass('md-menu-item'),fitRipple:!0,center:!0}:{isMenuItem:t.hasClass('md-menu-item'),dimBackground:!0}}return{attach:function(r,i,o){return o=e.extend(n(i),o),t.attach(r,i,o)}}}t.$inject=['$mdInkRipple'],e.module('material.core').factory('$mdButtonInkRipple',t)}()}(),function(){!function(){function t(t){function n(n,r,i){return t.attach(n,r,e.extend({center:!0,dimBackground:!1,fitRipple:!0},i))}return{attach:n}}t.$inject=['$mdInkRipple'],e.module('material.core').factory('$mdCheckboxInkRipple',t)}()}(),function(){!function(){function t(t){function n(n,r,i){return t.attach(n,r,e.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:'full'},i))}return{attach:n}}t.$inject=['$mdInkRipple'],e.module('material.core').factory('$mdListInkRipple',t)}()}(),function(){function t(t,n){return{controller:e.noop,link:function(e,r,i){i.hasOwnProperty('mdInkRippleCheckbox')?n.attach(e,r):t.attach(e,r)}}}function n(){function t(){n=!0}var n=!1;return{disableInkRipple:t,$get:['$injector',function(t){function i(i,o,a){return n||o.controller('mdNoInk')?e.noop:t.instantiate(r,{$scope:i,$element:o,rippleOptions:a})}return{attach:i}}]}}function r(t,n,r,i,o,a,s){this.$window=i,this.$timeout=o,this.$mdUtil=a,this.$mdColorUtil=s,this.$scope=t,this.$element=n,this.options=r,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,a.valueOnUse(this,'container',this.createContainer),this.$element.addClass('md-ink-ripple'),(n.controller('mdInkRipple')||{}).createRipple=e.bind(this,this.createRipple),(n.controller('mdInkRipple')||{}).setColor=e.bind(this,this.color),this.bindEvents()}function i(t,n){(t.mousedown||t.lastRipple)&&(t.mousedown=!1,t.$mdUtil.nextTick(e.bind(t,n),!1))}function o(){return{controller:e.noop}}r.$inject=['$scope','$element','rippleOptions','$window','$timeout','$mdUtil','$mdColorUtil'],t.$inject=['$mdButtonInkRipple','$mdCheckboxInkRipple'],e.module('material.core').provider('$mdInkRipple',n).directive('mdInkRipple',t).directive('mdNoInk',o).directive('mdNoBar',o).directive('mdNoStretch',o);r.prototype.color=function(t){var n=this;return e.isDefined(t)&&(n._color=n._parseColor(t)),n._color||n._parseColor(n.inkRipple())||n._parseColor(function(){var t=n.options&&n.options.colorElement?n.options.colorElement:[],e=t.length?t[0]:n.$element[0];return e?n.$window.getComputedStyle(e).color:'rgb(0,0,0)'}())},r.prototype.calculateColor=function(){return this.color()},r.prototype._parseColor=function(t,e){e=e||1;var n=this.$mdColorUtil;if(t)return 0===t.indexOf('rgba')?t.replace(/\d?\.?\d*\s*\)\s*$/,(.1*e).toString()+')'):0===t.indexOf('rgb')?n.rgbToRgba(t):0===t.indexOf('#')?n.hexToRgba(t):void 0},r.prototype.bindEvents=function(){this.$element.on('mousedown',e.bind(this,this.handleMousedown)),this.$element.on('mouseup touchend',e.bind(this,this.handleMouseup)),this.$element.on('mouseleave',e.bind(this,this.handleMouseup)),this.$element.on('touchmove',e.bind(this,this.handleTouchmove))},r.prototype.handleMousedown=function(t){if(!this.mousedown)if(t.hasOwnProperty('originalEvent')&&(t=t.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop('clientWidth')/2,this.container.prop('clientWidth')/2);else if(t.srcElement!==this.$element[0]){var e=this.$element[0].getBoundingClientRect(),n=t.clientX-e.left,r=t.clientY-e.top;this.createRipple(n,r)}else this.createRipple(t.offsetX,t.offsetY)},r.prototype.handleMouseup=function(){i(this,this.clearRipples)},r.prototype.handleTouchmove=function(){i(this,this.deleteRipples)},r.prototype.deleteRipples=function(){for(var t=0;t<this.ripples.length;t++)this.ripples[t].remove()},r.prototype.clearRipples=function(){for(var t=0;t<this.ripples.length;t++)this.fadeInComplete(this.ripples[t])},r.prototype.createContainer=function(){var t=e.element('<div class="md-ripple-container"></div>');return this.$element.append(t),t},r.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},r.prototype.isRippleAllowed=function(){var t=this.$element[0];do{if(!t.tagName||'BODY'===t.tagName)break;if(t&&e.isFunction(t.hasAttribute)){if(t.hasAttribute('disabled'))return!1;if('false'===this.inkRipple()||'0'===this.inkRipple())return!1}}while(t=t.parentNode);return!0},r.prototype.inkRipple=function(){return this.$element.attr('md-ink-ripple')},r.prototype.createRipple=function(t,n){if(this.isRippleAllowed()){var r=this,i=r.$mdColorUtil,o=e.element('<div class="md-ripple"></div>'),a=this.$element.prop('clientWidth'),s=this.$element.prop('clientHeight'),c=2*Math.max(Math.abs(a-t),t),u=2*Math.max(Math.abs(s-n),n),l=function(t,e,n){return t?Math.max(e,n):Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}(this.options.fitRipple,c,u),d=this.calculateColor();o.css({left:t+'px',top:n+'px',background:'black',width:l+'px',height:l+'px',backgroundColor:i.rgbaToRgb(d),borderColor:i.rgbaToRgb(d)}),this.lastRipple=o,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(o)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:d}),this.container.append(o),this.ripples.push(o),o.addClass('md-ripple-placed'),this.$mdUtil.nextTick(function(){o.addClass('md-ripple-scaled md-ripple-active'),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},r.prototype.fadeInComplete=function(t){this.lastRipple===t?this.timeout||this.mousedown||this.removeRipple(t):this.removeRipple(t)},r.prototype.removeRipple=function(t){var e=this;this.ripples.indexOf(t)<0||(this.ripples.splice(this.ripples.indexOf(t),1),t.removeClass('md-ripple-active'),t.addClass('md-ripple-remove'),0===this.ripples.length&&this.container.css({backgroundColor:''}),this.$timeout(function(){e.fadeOutComplete(t)},450,!1))},r.prototype.fadeOutComplete=function(t){t.remove(),this.lastRipple=null}}(),function(){!function(){function t(t){function n(n,r,i){return t.attach(n,r,e.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:'full'},i))}return{attach:n}}t.$inject=['$mdInkRipple'],e.module('material.core').factory('$mdTabInkRipple',t)}()}(),function(){e.module('material.core.theming.palette',[]).constant('$mdColorPalette',{red:{50:'#ffebee',100:'#ffcdd2',200:'#ef9a9a',300:'#e57373',400:'#ef5350',500:'#f44336',600:'#e53935',700:'#d32f2f',800:'#c62828',900:'#b71c1c',A100:'#ff8a80',A200:'#ff5252',A400:'#ff1744',A700:'#d50000',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 300 A100',contrastStrongLightColors:'400 500 600 700 A200 A400 A700'},pink:{50:'#fce4ec',100:'#f8bbd0',200:'#f48fb1',300:'#f06292',400:'#ec407a',500:'#e91e63',600:'#d81b60',700:'#c2185b',800:'#ad1457',900:'#880e4f',A100:'#ff80ab',A200:'#ff4081',A400:'#f50057',A700:'#c51162',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 A100',contrastStrongLightColors:'500 600 A200 A400 A700'},purple:{50:'#f3e5f5',100:'#e1bee7',200:'#ce93d8',300:'#ba68c8',400:'#ab47bc',500:'#9c27b0',600:'#8e24aa',700:'#7b1fa2',800:'#6a1b9a',900:'#4a148c',A100:'#ea80fc',A200:'#e040fb',A400:'#d500f9',A700:'#aa00ff',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 A100',contrastStrongLightColors:'300 400 A200 A400 A700'},'deep-purple':{50:'#ede7f6',100:'#d1c4e9',200:'#b39ddb',300:'#9575cd',400:'#7e57c2',500:'#673ab7',600:'#5e35b1',700:'#512da8',800:'#4527a0',900:'#311b92',A100:'#b388ff',A200:'#7c4dff',A400:'#651fff',A700:'#6200ea',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 A100',contrastStrongLightColors:'300 400 A200'},indigo:{50:'#e8eaf6',100:'#c5cae9',200:'#9fa8da',300:'#7986cb',400:'#5c6bc0',500:'#3f51b5',600:'#3949ab',700:'#303f9f',800:'#283593',900:'#1a237e',A100:'#8c9eff',A200:'#536dfe',A400:'#3d5afe',A700:'#304ffe',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 A100',contrastStrongLightColors:'300 400 A200 A400'},blue:{50:'#e3f2fd',100:'#bbdefb',200:'#90caf9',300:'#64b5f6',400:'#42a5f5',500:'#2196f3',600:'#1e88e5',700:'#1976d2',800:'#1565c0',900:'#0d47a1',A100:'#82b1ff',A200:'#448aff',A400:'#2979ff',A700:'#2962ff',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 300 400 A100',contrastStrongLightColors:'500 600 700 A200 A400 A700'},'light-blue':{50:'#e1f5fe',100:'#b3e5fc',200:'#81d4fa',300:'#4fc3f7',400:'#29b6f6',500:'#03a9f4',600:'#039be5',700:'#0288d1',800:'#0277bd',900:'#01579b',A100:'#80d8ff',A200:'#40c4ff',A400:'#00b0ff',A700:'#0091ea',contrastDefaultColor:'dark',contrastLightColors:'600 700 800 900 A700',contrastStrongLightColors:'600 700 800 A700'},cyan:{50:'#e0f7fa',100:'#b2ebf2',200:'#80deea',300:'#4dd0e1',400:'#26c6da',500:'#00bcd4',600:'#00acc1',700:'#0097a7',800:'#00838f',900:'#006064',A100:'#84ffff',A200:'#18ffff',A400:'#00e5ff',A700:'#00b8d4',contrastDefaultColor:'dark',contrastLightColors:'700 800 900',contrastStrongLightColors:'700 800 900'},teal:{50:'#e0f2f1',100:'#b2dfdb',200:'#80cbc4',300:'#4db6ac',400:'#26a69a',500:'#009688',600:'#00897b',700:'#00796b',800:'#00695c',900:'#004d40',A100:'#a7ffeb',A200:'#64ffda',A400:'#1de9b6',A700:'#00bfa5',contrastDefaultColor:'dark',contrastLightColors:'500 600 700 800 900',contrastStrongLightColors:'500 600 700'},green:{50:'#e8f5e9',100:'#c8e6c9',200:'#a5d6a7',300:'#81c784',400:'#66bb6a',500:'#4caf50',600:'#43a047',700:'#388e3c',800:'#2e7d32',900:'#1b5e20',A100:'#b9f6ca',A200:'#69f0ae',A400:'#00e676',A700:'#00c853',contrastDefaultColor:'dark',contrastLightColors:'500 600 700 800 900',contrastStrongLightColors:'500 600 700'},'light-green':{50:'#f1f8e9',100:'#dcedc8',200:'#c5e1a5',300:'#aed581',400:'#9ccc65',500:'#8bc34a',600:'#7cb342',700:'#689f38',800:'#558b2f',900:'#33691e',A100:'#ccff90',A200:'#b2ff59',A400:'#76ff03',A700:'#64dd17',contrastDefaultColor:'dark',contrastLightColors:'700 800 900',contrastStrongLightColors:'700 800 900'},lime:{50:'#f9fbe7',100:'#f0f4c3',200:'#e6ee9c',300:'#dce775',400:'#d4e157',500:'#cddc39',600:'#c0ca33',700:'#afb42b',800:'#9e9d24',900:'#827717',A100:'#f4ff81',A200:'#eeff41',A400:'#c6ff00',A700:'#aeea00',contrastDefaultColor:'dark',contrastLightColors:'900',contrastStrongLightColors:'900'},yellow:{50:'#fffde7',100:'#fff9c4',200:'#fff59d',300:'#fff176',400:'#ffee58',500:'#ffeb3b',600:'#fdd835',700:'#fbc02d',800:'#f9a825',900:'#f57f17',A100:'#ffff8d',A200:'#ffff00',A400:'#ffea00',A700:'#ffd600',contrastDefaultColor:'dark'},amber:{50:'#fff8e1',100:'#ffecb3',200:'#ffe082',300:'#ffd54f',400:'#ffca28',500:'#ffc107',600:'#ffb300',700:'#ffa000',800:'#ff8f00',900:'#ff6f00',A100:'#ffe57f',A200:'#ffd740',A400:'#ffc400',A700:'#ffab00',contrastDefaultColor:'dark'},orange:{50:'#fff3e0',100:'#ffe0b2',200:'#ffcc80',300:'#ffb74d',400:'#ffa726',500:'#ff9800',600:'#fb8c00',700:'#f57c00',800:'#ef6c00',900:'#e65100',A100:'#ffd180',A200:'#ffab40',A400:'#ff9100',A700:'#ff6d00',contrastDefaultColor:'dark',contrastLightColors:'800 900',contrastStrongLightColors:'800 900'},'deep-orange':{50:'#fbe9e7',100:'#ffccbc',200:'#ffab91',300:'#ff8a65',400:'#ff7043',500:'#ff5722',600:'#f4511e',700:'#e64a19',800:'#d84315',900:'#bf360c',A100:'#ff9e80',A200:'#ff6e40',A400:'#ff3d00',A700:'#dd2c00',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 300 400 A100 A200',contrastStrongLightColors:'500 600 700 800 900 A400 A700'},brown:{50:'#efebe9',100:'#d7ccc8',200:'#bcaaa4',300:'#a1887f',400:'#8d6e63',500:'#795548',600:'#6d4c41',700:'#5d4037',800:'#4e342e',900:'#3e2723',A100:'#d7ccc8',A200:'#bcaaa4',A400:'#8d6e63',A700:'#5d4037',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 A100 A200',contrastStrongLightColors:'300 400'},grey:{50:'#fafafa',100:'#f5f5f5',200:'#eeeeee',300:'#e0e0e0',400:'#bdbdbd',500:'#9e9e9e',600:'#757575',700:'#616161',800:'#424242',900:'#212121',A100:'#ffffff',A200:'#000000',A400:'#303030',A700:'#616161',contrastDefaultColor:'dark',contrastLightColors:'600 700 800 900 A200 A400 A700'},'blue-grey':{50:'#eceff1',100:'#cfd8dc',200:'#b0bec5',300:'#90a4ae',400:'#78909c',500:'#607d8b',600:'#546e7a',700:'#455a64',800:'#37474f',900:'#263238',A100:'#cfd8dc',A200:'#b0bec5',A400:'#78909c',A700:'#455a64',contrastDefaultColor:'light',contrastDarkColors:'50 100 200 300 A100 A200',contrastStrongLightColors:'400 500 700'}})}(),function(){!function(t){function e(t){var e=!!document.querySelector('[md-themes-disabled]');t.disableTheming(e)}function r(e,r){function i(t,e){return e=e||{},m[t]=a(t,e),p}function o(e,n){return a(e,t.extend({},m[e]||{},n))}function a(t,e){var n=M.filter(function(t){return!e[t]});if(n.length)throw new Error('Missing colors %1 in palette %2!'.replace('%1',n.join(', ')).replace('%2',t));return e}function c(e,n){if(b[e])return b[e];n=n||'default';var r='string'==typeof n?b[n]:n,i=new l(e);return r&&t.forEach(r.colors,function(e,n){i.colors[n]={name:e.name,hues:t.extend({},e.hues)}}),b[e]=i,i}function l(e){function n(e){if((e=0===arguments.length||!!e)!==r.isDark){r.isDark=e,r.foregroundPalette=r.isDark?v:h,r.foregroundShadow=r.isDark?g:$;var n=r.isDark?x:_,i=r.isDark?_:x;return t.forEach(n,function(t,e){var n=r.colors[e],o=i[e];if(n)for(var a in n.hues)n.hues[a]===o[a]&&(n.hues[a]=t[a])}),r}}var r=this;r.name=e,r.colors={},r.dark=n,n(!1),w.forEach(function(e){var n=(r.isDark?x:_)[e];r[e+'Palette']=function(i,o){var a=r.colors[e]={name:i,hues:t.extend({},n,o)};return Object.keys(a.hues).forEach(function(t){if(!n[t])throw new Error('Invalid hue name \'%1\' in theme %2\'s %3 color %4. Available hue names: %4'.replace('%1',t).replace('%2',r.name).replace('%3',i).replace('%4',Object.keys(n).join(', ')))}),Object.keys(a.hues).map(function(t){return a.hues[t]}).forEach(function(t){if(-1==M.indexOf(t))throw new Error('Invalid hue value \'%1\' in theme %2\'s %3 color %4. Available hue values: %5'.replace('%1',t).replace('%2',r.name).replace('%3',e).replace('%4',i).replace('%5',M.join(', ')))}),r},r[e+'Color']=function(){var t=Array.prototype.slice.call(arguments);return console.warn('$mdThemingProviderTheme.'+e+'Color() has been deprecated. Use $mdThemingProviderTheme.'+e+'Palette() instead.'),r[e+'Palette'].apply(r,t)}})}function d(e,r,i,o){function a(t){return t===n||''===t||l.THEMES[t]!==n}function s(t,e){function n(e){if(e){a(e)||o.warn('Attempted to use unregistered theme \''+e+'\'. Register it with $mdThemingProvider.theme().');var n=t.data('$mdThemeName');n&&t.removeClass('md-'+n+'-theme'),t.addClass('md-'+e+'-theme'),t.data('$mdThemeName',e),i&&t.data('$mdThemeController',i)}}var i=e.controller('mdTheme')||t.data('$mdThemeController');if(n(function(){return i&&i.$mdTheme||('default'==E?'':E)}()),i)var s=y||i.$shouldWatch||r.parseAttributeBoolean(t.attr('md-theme-watch')),c=i.registerChanges(function(e){n(e),s?t.on('$destroy',c):c()})}var l=function(t,r){r===n&&(r=t,t=n),t===n&&(t=e),l.inherit(r,r)};return Object.defineProperty(l,'THEMES',{get:function(){return t.extend({},b)}}),Object.defineProperty(l,'PALETTES',{get:function(){return t.extend({},m)}}),Object.defineProperty(l,'ALWAYS_WATCH',{get:function(){return y}}),l.inherit=s,l.registered=a,l.defaultTheme=function(){return E},l.generateTheme=function(t){u(b[t],t,A.nonce)},l.defineTheme=function(t,e){e=e||{};var n=c(t);return e.primary&&n.primaryPalette(e.primary),e.accent&&n.accentPalette(e.accent),e.warn&&n.warnPalette(e.warn),e.background&&n.backgroundPalette(e.background),e.dark&&n.dark(),this.generateTheme(t),i.resolve(t)},l.setBrowserColor=T,l}d.$inject=['$rootScope','$mdUtil','$q','$log'],m={};var p,b={},y=!1,E='default';t.extend(m,e);var C=function(t){var e=r.setMeta('theme-color',t),n=r.setMeta('msapplication-navbutton-color',t);return function(){e(),n()}},T=function(e){e=t.isObject(e)?e:{};var n=e.theme||'default',r=e.hue||'800',i=m[e.palette]||m[b[n].colors[e.palette||'primary'].name],o=t.isObject(i[r])?i[r].hex:i[r];return C(o)};return p={definePalette:i,extendPalette:o,theme:c,configuration:function(){return t.extend({},A,{defaultTheme:E,alwaysWatchTheme:y,registeredStyles:[].concat(A.registeredStyles)})},disableTheming:function(e){A.disableTheming=t.isUndefined(e)||!!e},registerStyles:function(t){A.registeredStyles.push(t)},setNonce:function(t){A.nonce=t},generateThemesOnDemand:function(t){A.generateOnDemand=t},setDefaultTheme:function(t){E=t},alwaysWatchTheme:function(t){y=t},enableBrowserColor:T,$get:d,_LIGHT_DEFAULT_HUES:_,_DARK_DEFAULT_HUES:x,_PALETTES:m,_THEMES:b,_parseRules:s,_rgba:f}}function i(e,n,r,i,o,a){return{priority:101,link:{pre:function(s,c,u){var l=[],d=n.startSymbol(),f=n.endSymbol(),m=u.mdTheme.trim(),p=m.substr(0,d.length)===d&&m.lastIndexOf(f)===m.length-f.length,h='::'===u.mdTheme.split(d).join('').split(f).join('').trim().substr(0,'::'.length),v={registerChanges:function(e,n){return n&&(e=t.bind(n,e)),l.push(e),function(){var t=l.indexOf(e);t>-1&&l.splice(t,1)}},$setTheme:function(t){e.registered(t)||a.warn('attempted to use unregistered theme \''+t+'\''),v.$mdTheme=t;for(var n=l.length;n--;)l[n](t)},$shouldWatch:i.parseAttributeBoolean(c.attr('md-theme-watch'))||e.ALWAYS_WATCH||p&&!h};c.data('$mdThemeController',v);var g=function(){var t=n(u.mdTheme)(s);return r(t)(s)||t},$=function(e){if('string'==typeof e)return v.$setTheme(e);o.when(t.isFunction(e)?e():e).then(function(t){v.$setTheme(t)})};$(g());var b=s.$watch(g,function(t){t&&($(t),v.$shouldWatch||b())})}}}}function o(){return A.disableTheming=!0,{restrict:'A',priority:'900'}}function a(t){return t}function s(e,n,r){l(e,n),r=r.replace(/THEME_NAME/g,e.name);var i=[],o=e.colors[n],a=new RegExp('\\.md-'+e.name+'-theme','g'),s=new RegExp('(\'|")?{{\\s*('+n+')-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}("|\')?','g'),c=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,u=m[o.name];return r=r.replace(c,function(t,n,r,i,o){return'foreground'===n?'shadow'==r?e.foregroundShadow:e.foregroundPalette[r]||e.foregroundPalette[1]:(0!==r.indexOf('hue')&&'default'!==r||(r=e.colors[n].hues[r]),f((m[e.colors[n].name][r]||'')[o?'contrast':'value'],i))}),t.forEach(o.hues,function(t,n){var o=r.replace(s,function(e,n,r,i,o){return f(u[t]['color'===i?'value':'contrast'],o)});if('default'!==n&&(o=o.replace(a,'.md-'+e.name+'-theme.md-'+n)),'default'==e.name){var c=/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;o=o.replace(c,function(t,e,n){return t+', '+e+n})}i.push(o)}),i}function c(e,n){function r(e,n){var r=e.contrastDefaultColor,i=e.contrastLightColors||[],o=e.contrastStrongLightColors||[],a=e.contrastDarkColors||[];'string'==typeof i&&(i=i.split(' ')),'string'==typeof o&&(o=o.split(' ')),'string'==typeof a&&(a=a.split(' ')),delete e.contrastDefaultColor,delete e.contrastLightColors,delete e.contrastStrongLightColors,delete e.contrastDarkColors,t.forEach(e,function(n,s){if(!t.isObject(n)){var c=d(n);if(!c)throw new Error('Color %1, in palette %2\'s hue %3, is invalid. Hex or rgb(a) color expected.'.replace('%1',n).replace('%2',e.name).replace('%3',s));e[s]={hex:e[s],value:c,contrast:function(){return'light'===r?a.indexOf(s)>-1?b:o.indexOf(s)>-1?E:y:i.indexOf(s)>-1?o.indexOf(s)>-1?E:y:b}()}}})}var i=document.head,o=i?i.firstElementChild:null,a=!A.disableTheming&&e.has('$MD_THEME_CSS')?e.get('$MD_THEME_CSS'):'';if(a+=A.registeredStyles.join(''),o&&0!==a.length){t.forEach(m,r);var s=a.split(/\}(?!(\}|'|"|;))/).filter(function(t){return t&&t.trim().length}).map(function(t){return t.trim()+'}'}),c=new RegExp('md-('+w.join('|')+')','g');w.forEach(function(t){T[t]=''}),s.forEach(function(t){for(var e,n=(t.match(c),0);e=w[n];n++)if(t.indexOf('.md-'+e)>-1)return T[e]+=t;for(n=0;e=w[n];n++)if(t.indexOf(e)>-1)return T[e]+=t;return T[C]+=t}),A.generateOnDemand||t.forEach(n.THEMES,function(t){p[t.name]||'default'!==n.defaultTheme()&&'default'===t.name||u(t,t.name,A.nonce)})}}function u(t,e,n){var r=document.head,i=r?r.firstElementChild:null;p[e]||(w.forEach(function(e){for(var o=s(t,e,T[e]);o.length;){var a=o.shift();if(a){var c=document.createElement('style');c.setAttribute('md-theme-style',''),n&&c.setAttribute('nonce',n),c.appendChild(document.createTextNode(a)),r.insertBefore(c,i)}}}),p[t.name]=!0)}function l(t,e){if(!m[(t.colors[e]||{}).name])throw new Error('You supplied an invalid color palette for theme %1\'s %2 palette. Available palettes: %3'.replace('%1',t.name).replace('%2',e).replace('%3',Object.keys(m).join(', ')))}function d(e){if(t.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,'').split(',').map(function(t,e){return 3==e?parseFloat(t,10):parseInt(t,10)});if('#'==e.charAt(0)&&(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var n=e.length/3,r=e.substr(0,n),i=e.substr(n,n),o=e.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),[parseInt(r,16),parseInt(i,16),parseInt(o,16)]}}function f(e,n){return e?(4==e.length&&(e=t.copy(e),n?e.pop():n=e.pop()),n&&('number'==typeof n||'string'==typeof n&&n.length)?'rgba('+e.join(',')+','+n+')':'rgb('+e.join(',')+')'):'rgb(\'0,0,0\')'}e.$inject=['$mdThemingProvider'],i.$inject=['$mdTheming','$interpolate','$parse','$mdUtil','$q','$log'],a.$inject=['$mdTheming'],r.$inject=['$mdColorPalette','$$mdMetaProvider'],c.$inject=['$injector','$mdTheming'],t.module('material.core.theming',['material.core.theming.palette','material.core.meta']).directive('mdTheme',i).directive('mdThemable',a).directive('mdThemesDisabled',o).provider('$mdTheming',r).config(e).run(c);var m,p={},h={name:'dark',1:'rgba(0,0,0,0.87)',2:'rgba(0,0,0,0.54)',3:'rgba(0,0,0,0.38)',4:'rgba(0,0,0,0.12)'},v={name:'light',1:'rgba(255,255,255,1.0)',2:'rgba(255,255,255,0.7)',3:'rgba(255,255,255,0.5)',4:'rgba(255,255,255,0.12)'},g='1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)',$='',b=d('rgba(0,0,0,0.87)'),y=d('rgba(255,255,255,0.87)'),E=d('rgb(255,255,255)'),w=['primary','accent','warn','background'],C='primary',_={accent:{default:'A200','hue-1':'A100','hue-2':'A400','hue-3':'A700'},background:{default:'50','hue-1':'A100','hue-2':'100','hue-3':'300'}},x={background:{default:'A400','hue-1':'800','hue-2':'900','hue-3':'A200'}};w.forEach(function(t){var e={default:'500','hue-1':'300','hue-2':'800','hue-3':'A100'};_[t]||(_[t]=e),x[t]||(x[t]=e)});var M=['50','100','200','300','400','500','600','700','800','900','A100','A200','A400','A700'],A={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},T={}}(t.angular)}(),function(){function n(n,r,i,o,a){var s;return s={translate3d:function(t,e,n,r){function i(n){return a(t,{to:n||e,addClass:r.transitionOutClass,removeClass:r.transitionInClass,duration:r.duration}).start()}return a(t,{from:e,to:n,addClass:r.transitionInClass,removeClass:r.transitionOutClass,duration:r.duration}).start().then(function(){return i})},waitTransitionEnd:function(e,n){var a=3e3;return r(function(r,s){function c(t){t&&t.target!==e[0]||(t&&i.cancel(u),e.off(o.CSS.TRANSITIONEND,c),r())}n=n||{},function(n){return n=n||t.getComputedStyle(e[0]),'0s'==n.transitionDuration||!n.transition&&!n.transitionProperty}(n.cachedTransitionStyles)&&(a=0);var u=i(c,n.timeout||a);e.on(o.CSS.TRANSITIONEND,c)})},calculateTransformValues:function(t,e){var n=e.element,r=e.bounds;if(n||r){var i=n?s.clientRect(n)||function(){var e=t?t.parent():null,n=e?e.parent():null;return n?s.clientRect(n):null}():s.copyRect(r),o=s.copyRect(t[0].getBoundingClientRect()),a=s.centerPointFor(o),c=s.centerPointFor(i);return{centerX:c.x-a.x,centerY:c.y-a.y,scaleX:Math.round(100*Math.min(.5,i.width/o.width))/100,scaleY:Math.round(100*Math.min(.5,i.height/o.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(t,r){return e.bind(null,n.supplant,'translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )')(s.calculateTransformValues(t,r))},calculateSlideToOrigin:function(t,r){return e.bind(null,n.supplant,'translate3d( {centerX}px, {centerY}px, 0 )')(s.calculateTransformValues(t,r))},toCss:function(t){function n(t,n,i){e.forEach(n.split(' '),function(t){r[t]=i})}var r={};return e.forEach(t,function(t,i){if(!e.isUndefined(t))if('left top right bottom width height x y min-width min-height max-width max-height'.indexOf(i)>=0)r[i]=t+'px';else switch(i){case'transition':n(i,o.CSS.TRANSITION,t);break;case'transform':n(i,o.CSS.TRANSFORM,t);break;case'transformOrigin':n(i,o.CSS.TRANSFORM_ORIGIN,t);break;case'font-size':r['font-size']=t}}),r},toTransformCss:function(t,n,r){var i={};return e.forEach(o.CSS.TRANSFORM.split(' '),function(e){i[e]=t}),n&&(r=r||'all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important',i.transition=r),i},copyRect:function(t,n){return t?(n=n||{},e.forEach('left top right bottom width height'.split(' '),function(e){n[e]=Math.round(t[e])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(t){var n=e.element(t)[0].getBoundingClientRect();return function(t){return t&&t.width>0&&t.height>0}(n)?s.copyRect(n):null},centerPointFor:function(t){return t?{x:Math.round(t.left+t.width/2),y:Math.round(t.top+t.height/2)}:{x:0,y:0}}}}e.module('material.core').factory('$$mdAnimate',['$q','$timeout','$mdConstant','$animateCss',function(t,e,r,i){return function(o){return n(o,t,e,r,i)}}])}(),function(){e.version.minor>=4?e.module('material.core.animate',[]):function(){function t(t){return t.replace(/-[a-z]/g,function(t){return t.charAt(1).toUpperCase()})}var n=e.forEach,r=e.isDefined(document.documentElement.style.WebkitAppearance),i=r?'-webkit-':'',o=(r?'webkitTransitionEnd ':'')+'transitionend',a=(r?'webkitAnimationEnd ':'')+'animationend',s=['$document',function(t){return function(){return t[0].body.clientWidth+1}}],c=['$$rAF',function(t){return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}],u=['$q','$$rAFMutex',function(t,r){function i(t){this.setHost(t),this._doneCallbacks=[],this._runInAnimationFrame=r(),this._state=0}return i.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:e.noop,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&&(n(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},i.all=function(t,e){function r(n){o=o&&n,++i===t.length&&e(o)}var i=0,o=!0;n(t,function(t){t.done(r)})},i}];e.module('material.core.animate',[]).factory('$$forceReflow',s).factory('$$AnimateRunner',u).factory('$$rAFMutex',c).factory('$animateCss',['$window','$$rAF','$$AnimateRunner','$$forceReflow','$$jqLite','$timeout','$animate',function(e,s,c,u,l,d,f){function m(r,s){var u=[],l=E(r),m=l&&f.enabled(),v=!1,C=!1;m&&(s.transitionStyle&&u.push([i+'transition',s.transitionStyle]),s.keyframeStyle&&u.push([i+'animation',s.keyframeStyle]),s.delay&&u.push([i+'transition-delay',s.delay+'s']),s.duration&&u.push([i+'transition-duration',s.duration+'s']),v=s.keyframeStyle||s.to&&(s.duration>0||s.transitionStyle),C=!!s.addClass||!!s.removeClass,w(r,!0));var _=m&&(v||C);b(r,s);var x,M,A=!1;return{close:e.close,start:function(){function e(){if(!A)return A=!0,x&&M&&r.off(x,M),p(r,s),$(r,s),n(u,function(e){l.style[t(e[0])]=''}),f.complete(!0),f}var f=new c;return g(function(){if(w(r,!1),!_)return e();n(u,function(e){var n=e[0],r=e[1];l.style[t(n)]=r}),p(r,s);var c=h(r);if(0===c.duration)return e();var f=[];s.easing&&(c.transitionDuration&&f.push([i+'transition-timing-function',s.easing]),c.animationDuration&&f.push([i+'animation-timing-function',s.easing])),s.delay&&c.animationDelay&&f.push([i+'animation-delay',s.delay+'s']),s.duration&&c.animationDuration&&f.push([i+'animation-duration',s.duration+'s']),n(f,function(e){var n=e[0],r=e[1];l.style[t(n)]=r,u.push(e)});var m=c.delay,v=1e3*m,g=c.duration,$=1e3*g,b=Date.now();x=[],c.transitionDuration&&x.push(o),c.animationDuration&&x.push(a),x=x.join(' '),M=function(t){t.stopPropagation();var n=t.originalEvent||t,r=n.timeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(r-b,0)>=v&&i>=g&&e()},r.on(x,M),y(r,s),d(e,v+1.5*$,!1)}),f}}}function p(t,e){e.addClass&&(l.addClass(t,e.addClass),e.addClass=null),e.removeClass&&(l.removeClass(t,e.removeClass),e.removeClass=null)}function h(t){function n(t){return r?'Webkit'+t.charAt(0).toUpperCase()+t.substr(1):t}var i=E(t),o=e.getComputedStyle(i),a=v(o[n('transitionDuration')]),s=v(o[n('animationDuration')]),c=v(o[n('transitionDelay')]),u=v(o[n('animationDelay')]);return s*=parseInt(o[n('animationIterationCount')],10)||1,{duration:Math.max(s,a),delay:Math.max(u,c),animationDuration:s,transitionDuration:a,animationDelay:u,transitionDelay:c}}function v(t){var e=0,r=(t||'').split(/\s*,\s*/);return n(r,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 g(t){C&&C(),_.push(t),C=s(function(){C=null;for(var t=u(),e=0;e<_.length;e++)_[e](t);_.length=0})}function $(t,e){b(t,e),y(t,e)}function b(t,e){e.from&&(t.css(e.from),e.from=null)}function y(t,e){e.to&&(t.css(e.to),e.to=null)}function E(t){for(var e=0;e<t.length;e++)if(1===t[e].nodeType)return t[e]}function w(e,n){var r=E(e),o=t(i+'transition-delay');r.style[o]=n?'-9999s':''}var C,_=[];return m}])}()}(),function(){e.module('material.components.autocomplete',['material.core','material.components.icon','material.components.virtualRepeat'])}(),function(){e.module('material.components.backdrop',['material.core']).directive('mdBackdrop',['$mdTheming','$mdUtil','$animate','$rootElement','$window','$log','$$rAF','$document',function(t,n,r,i,o,a,s,c){function u(u,d,f){function m(){var t=parseInt(p.height,10)+Math.abs(parseInt(p.top,10));d.css('height',t+'px')}r.pin&&r.pin(d,i);var p;s(function(){if(p=o.getComputedStyle(c[0].body),'fixed'===p.position){var r=n.debounce(function(){p=o.getComputedStyle(c[0].body),m()},60,null,!1);m(),e.element(o).on('resize',r),u.$on('$destroy',function(){e.element(o).off('resize',r)})}var i=d.parent();if(i.length){'BODY'===i[0].nodeName&&d.css('position','fixed');'static'===o.getComputedStyle(i[0]).position&&a.warn(l),t.inherit(d,i)}})}var l='<md-backdrop> may not work properly in a scrolled, static-positioned parent container.';return{restrict:'E',link:u}}])}(),function(){function t(t){return{restrict:'E',link:function(e,n){n.addClass('_md'),e.$on('$destroy',function(){t.destroy()})}}}function n(t){function n(t,n,o,a,s,c,u,l){function d(r,i,u,d){if(i=o.extractElementByName(i,'md-bottom-sheet'),i.attr('tabindex','-1'),i.hasClass('ng-cloak')){l.warn('$mdBottomSheet: using `<md-bottom-sheet ng-cloak >` will affect the bottom-sheet opening animations.',i[0])}u.disableBackdrop||(p=o.createBackdrop(r,'md-bottom-sheet-backdrop md-opaque'),p[0].tabIndex=-1,u.clickOutsideToClose&&p.on('click',function(){o.nextTick(s.cancel,!0)}),a.inherit(p,u.parent),t.enter(p,u.parent,null));var f=new m(i,u.parent);return u.bottomSheet=f,a.inherit(f.element,u.parent),u.disableParentScroll&&(u.restoreScroll=o.disableScrollAround(f.element,u.parent)),t.enter(f.element,u.parent,p).then(function(){var t=o.findFocusTarget(i)||e.element(i[0].querySelector('button')||i[0].querySelector('a')||i[0].querySelector(o.prefixer('ng-click',!0)))||p;u.escapeToClose&&(u.rootElementKeyupCallback=function(t){t.keyCode===n.KEY_CODE.ESCAPE&&o.nextTick(s.cancel,!0)},c.on('keyup',u.rootElementKeyupCallback),t&&t.focus())})}function f(e,n,r){var i=r.bottomSheet;return r.disableBackdrop||t.leave(p),t.leave(i.element).then(function(){r.disableParentScroll&&(r.restoreScroll(),delete r.restoreScroll),i.cleanup()})}function m(t,e){function a(e){t.css(n.CSS.TRANSITION_DURATION,'0ms')}function c(e){var r=e.pointer.distanceY;r<5&&(r=Math.max(-i,r/2)),t.css(n.CSS.TRANSFORM,'translate3d(0,'+(i+r)+'px,0)')}function l(e){if(e.pointer.distanceY>0&&(e.pointer.distanceY>20||Math.abs(e.pointer.velocityY)>r)){var i=t.prop('offsetHeight')-e.pointer.distanceY,a=Math.min(i/e.pointer.velocityY*.75,500);t.css(n.CSS.TRANSITION_DURATION,a+'ms'),o.nextTick(s.cancel,!0)}else t.css(n.CSS.TRANSITION_DURATION,''),t.css(n.CSS.TRANSFORM,'')}var d=u.register(e,'drag',{horizontal:!1});return e.on('$md.dragstart',a).on('$md.drag',c).on('$md.dragend',l),{element:t,cleanup:function(){d(),e.off('$md.dragstart',a),e.off('$md.drag',c),e.off('$md.dragend',l)}}}var p;return{themable:!0,onShow:d,onRemove:f,disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}n.$inject=['$animate','$mdConstant','$mdUtil','$mdTheming','$mdBottomSheet','$rootElement','$mdGesture','$log'];var r=.5,i=80;return t('$mdBottomSheet').setDefaults({methods:['disableParentScroll','escapeToClose','clickOutsideToClose'],options:n})}t.$inject=['$mdBottomSheet'],n.$inject=['$$interimElementProvider'],e.module('material.components.bottomSheet',['material.core','material.components.backdrop']).directive('mdBottomSheet',t).provider('$mdBottomSheet',n)}(),function(){function t(t){return{restrict:'E',link:function(e,n){t(n)}}}function n(t,n,r,i){function o(t){return e.isDefined(t.href)||e.isDefined(t.ngHref)||e.isDefined(t.ngLink)||e.isDefined(t.uiSref)}function a(t,e){return o(e)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===e.type?'button':e.type)+'" ng-transclude></button>'}function s(a,s,c){n(s),t.attach(a,s),r.expectWithoutText(s,'aria-label'),o(c)&&e.isDefined(c.ngDisabled)&&a.$watch(c.ngDisabled,function(t){s.attr('tabindex',t?-1:0)}),s.on('click',function(t){!0===c.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),s.hasClass('md-no-focus')||(s.on('focus',function(){i.isUserInvoked()&&'keyboard'!==i.getLastInteractionType()||s.addClass('md-focused')}),s.on('blur',function(){s.removeClass('md-focused')}))}return{restrict:'EA',replace:!0,transclude:!0,template:a,link:s}}n.$inject=['$mdButtonInkRipple','$mdTheming','$mdAria','$mdInteraction'],t.$inject=['$mdTheming'],e.module('material.components.button',['material.core']).directive('mdButton',n).directive('a',t)}(),function(){function t(t){return{restrict:'E',link:function(e,n,r){n.addClass('_md'),t(n)}}}t.$inject=['$mdTheming'],e.module('material.components.card',['material.core']).directive('mdCard',t)}(),function(){function t(t,n,r,i,o,a){function s(s,c){function u(s,c,u,l){function d(t){var e=t.which||t.keyCode;e!==r.KEY_CODE.SPACE&&e!==r.KEY_CODE.ENTER||(t.preventDefault(),c.addClass('md-focused'),f(t))}function f(t){c[0].hasAttribute('disabled')||s.skipToggle||s.$apply(function(){var e=u.ngChecked&&u.ngClick?u.checked:!g.$viewValue;g.$setViewValue(e,t&&t.type),g.$render()})}function m(){c.toggleClass('md-checked',!!g.$viewValue&&!h)}function p(t){h=!1!==t,h&&c.attr('aria-checked','mixed'),c.toggleClass('md-indeterminate',h)}var h,v=l[0],g=l[1]||o.fakeNgModel(),$=l[2];if(v){var b=v.isErrorGetter||function(){return g.$invalid&&(g.$touched||$&&$.$submitted)};v.input=c,s.$watch(b,v.setInvalid)}i(c),c.children().on('focus',function(){c.focus()}),o.parseAttributeBoolean(u.mdIndeterminate)&&(p(),s.$watch(u.mdIndeterminate,p)),u.ngChecked&&s.$watch(s.$eval.bind(s,u.ngChecked),function(t){g.$setViewValue(t),g.$render()}),function(t,e,n){u[t]&&s.$watch(u[t],function(t){n[t]&&c.attr(e,n[t])})}('ngDisabled','tabindex',{true:'-1',false:u.tabindex}),n.expectWithText(c,'aria-label'),t.link.pre(s,{on:e.noop,0:{}},u,[g]),c.on('click',f).on('keypress',d).on('focus',function(){'keyboard'===a.getLastInteractionType()&&c.addClass('md-focused')}).on('blur',function(){c.removeClass('md-focused')}),g.$render=m}return c.$set('tabindex',c.tabindex||'0'),c.$set('type','checkbox'),c.$set('role',c.type),{pre:function(t,e){e.on('click',function(t){this.hasAttribute('disabled')&&t.stopImmediatePropagation()})},post:u}}return t=t[0],{restrict:'E',transclude:!0,require:['^?mdInputContainer','?ngModel','?^form'],priority:r.BEFORE_NG_ARIA,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:s}}t.$inject=['inputDirective','$mdAria','$mdConstant','$mdTheming','$mdUtil','$mdInteraction'],e.module('material.components.checkbox',['material.core']).directive('mdCheckbox',t)}(),function(){e.module('material.components.chips',['material.core','material.components.autocomplete'])}(),function(){!function(){function t(t,n,r){function o(t,e){try{e&&t.css(c(e))}catch(t){r.error(t.message)}}function a(t){return s(l(t))}function s(e,r){r=r||!1;var i=t.PALETTES[e.palette][e.hue];return i=r?i.contrast:i.value,n.supplant('rgba({0}, {1}, {2}, {3})',[i[0],i[1],i[2],i[3]||e.opacity])}function c(t){var n={},r=t.hasOwnProperty('color');return e.forEach(t,function(t,e){var i=l(t),o=e.indexOf('background')>-1;n[e]=s(i),o&&!r&&(n.color=s(i,!0))}),n}function u(n){return e.isDefined(t.THEMES[n.split('-')[0]])}function l(n){var r=n.split('-'),i=e.isDefined(t.THEMES[r[0]]),o=i?r.splice(0,1)[0]:t.defaultTheme();return{theme:o,palette:d(r,o),hue:f(r,o),opacity:r[2]||1}}function d(e,r){var o=e.length>1&&-1!==i.indexOf(e[1]),a=e[0].replace(/([a-z])([A-Z])/g,'$1-$2').toLowerCase();if(o&&(a=e[0]+'-'+e.splice(1,1)),-1===i.indexOf(a)){var s=t.THEMES[r].colors[a];if(!s)throw new Error(n.supplant('mdColors: couldn\'t find \'{palette}\' in the palettes.',{palette:a}));a=s.name}return a}function f(e,r){var i=t.THEMES[r].colors;if('hue'===e[1]){var o=parseInt(e.splice(2,1)[0],10);if(o<1||o>3)throw new Error(n.supplant('mdColors: \'hue-{hueNumber}\' is not a valid hue, can be only \'hue-1\', \'hue-2\' and \'hue-3\'',{hueNumber:o}));if(e[1]='hue-'+o,!(e[0]in i))throw new Error(n.supplant('mdColors: \'hue-x\' can only be used with [{availableThemes}], but was used with \'{usedTheme}\'',{availableThemes:Object.keys(i).join(', '),usedTheme:e[0]}));return i[e[0]].hues[e[1]]}return e[1]||i[e[0]in i?e[0]:'primary'].hues.default}return i=i||Object.keys(t.PALETTES),{applyThemeColors:o,getThemeColor:a,hasTheme:u}}function n(t,n,i,o){return{restrict:'A',require:['^?mdTheme'],compile:function(a,s){var c=function(){var t=s.mdColors,i=t.indexOf('::')>-1,o=!!i||r.test(s.mdColors);s.mdColors=t.replace('::','');var a=e.isDefined(s.mdColorsWatch);return!i&&!o&&(!a||n.parseAttributeBoolean(s.mdColorsWatch))}();return function(n,r,a,s){var u=s[0],l={},d=function(e){'string'!=typeof e&&(e=''),a.mdColors||(a.mdColors='{}');var r=o(a.mdColors)(n);return u&&Object.keys(r).forEach(function(n){var i=r[n];t.hasTheme(i)||(r[n]=(e||u.$mdTheme)+'-'+i)}),f(r),r},f=function(t){if(!e.equals(t,l)){var n=Object.keys(l);l.background&&!n.color&&n.push('color'),n.forEach(function(t){r.css(t,'')})}l=t},m=e.noop;u&&(m=u.registerChanges(function(e){t.applyThemeColors(r,d(e))})),n.$on('$destroy',function(){m()});try{c?n.$watch(d,e.bind(this,t.applyThemeColors,r),!0):t.applyThemeColors(r,d())}catch(t){i.error(t.message)}}}}}n.$inject=['$mdColors','$mdUtil','$log','$parse'],t.$inject=['$mdTheming','$mdUtil','$log'];var r=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,i=null;e.module('material.components.colors',['material.core']).directive('mdColors',n).service('$mdColors',t)}()}(),function(){function t(t){function e(t,e){this.$scope=t,this.$element=e}return{restrict:'E',controller:['$scope','$element',e],link:function(e,r){r.addClass('_md'),t(r),e.$broadcast('$mdContentLoaded',r),n(r[0])}}}function n(t){e.element(t).on('$md.pressdown',function(e){'t'===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===t.scrollTop?t.scrollTop=1:t.scrollHeight===t.scrollTop+t.offsetHeight&&(t.scrollTop-=1)))})}t.$inject=['$mdTheming'],e.module('material.components.content',['material.core']).directive('mdContent',t)}(),function(){e.module('material.components.datepicker',['material.core','material.components.icon','material.components.virtualRepeat'])}(),function(){function t(t,n,r){return{restrict:'E',link:function(i,o){o.addClass('_md'),n(o),t(function(){function t(){o.toggleClass('md-content-overflow',a.scrollHeight>a.clientHeight)}var n,a=o[0].querySelector('md-dialog-content');a&&(n=a.getElementsByTagName('img'),t(),e.element(n).on('load',t)),i.$on('$destroy',function(){r.destroy(o)})})}}}function r(t){function r(t,e){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">','  <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">','    <h2 class="md-title">{{ dialog.title }}</h2>','    <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ','        ng-bind-html="::dialog.mdHtmlContent"></div>','    <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">','      <p>{{::dialog.mdTextContent}}</p>','    </div>','    <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">','      <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result"              placeholder="{{::dialog.placeholder}}">','    </md-input-container>','  </md-dialog-content>','  <md-dialog-actions>','    <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'"               ng-click="dialog.abort()" class="md-primary md-cancel-button">','      {{ dialog.cancel }}','    </md-button>','    <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'">','      {{ dialog.ok }}','    </md-button>','  </md-dialog-actions>','</md-dialog>'].join('').replace(/\s\s+/g,''),controller:function(){var n='prompt'==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){t.hide(!n||this.result)},this.abort=function(){t.cancel()},this.keypress=function(n){n.keyCode===e.KEY_CODE.ENTER&&t.hide(this.result)}},controllerAs:'dialog',bindToController:!0}}function i(t,r,i,s,c,u,l,d,f,m,p,h,v){function g(t){t.defaultTheme=p.defaultTheme(),E(t)}function $(t,e,n,r){if(r){var i=r.htmlContent||n.htmlContent||'',o=r.textContent||n.textContent||r.content||n.content||'';if(i&&!m.has('$sanitize'))throw Error('The ngSanitize module must be loaded in order to use htmlContent.');if(i&&o)throw Error('md-dialog cannot have both `htmlContent` and `textContent`');r.mdHtmlContent=i,r.mdTextContent=o}}function b(t,n,r,o){function a(){n[0].querySelector('.md-actions')&&f.warn('Using a class of md-actions is deprecated, please use <md-dialog-actions>.')}function s(){if(r.focusOnOpen){(i.findFocusTarget(n)||function(){return n[0].querySelector('.dialog-close, md-dialog-actions button:last-child')}()||c).focus()}}e.element(u[0].body).addClass('md-dialog-is-showing');var c=n.find('md-dialog');if(c.hasClass('ng-cloak')){f.warn('$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.',n[0])}return w(r),x(c,r),_(t,n,r),C(n,r),T(n,r).then(function(){M(n,r),a(),s()})}function y(t,n,r){function i(){e.element(u[0].body).removeClass('md-dialog-is-showing'),r.contentElement&&r.reverseContainerStretch(),r.cleanupElement(),r.$destroy||'keyboard'!==r.originInteraction||r.origin.focus()}return r.deactivateListeners(),r.unlockScreenReader(),r.hideBackdrop(r.$destroy),o&&o.parentNode&&o.parentNode.removeChild(o),a&&a.parentNode&&a.parentNode.removeChild(a),r.$destroy?i():function(){return k(n,r)}().then(i)}function E(t){var n;t.targetEvent&&t.targetEvent.target&&(n=e.element(t.targetEvent.target));var r=n&&n.controller('mdTheme');if(r){t.themeWatch=r.$shouldWatch;var i=t.theme||r.$mdTheme;i&&(t.scope.theme=i);var o=r.registerChanges(function(e){t.scope.theme=e,t.themeWatch||o()})}}function w(t){function r(t,r){var i=e.element(t||{});if(i&&i.length){var o={top:0,left:0,height:0,width:0},a=e.isFunction(i[0].getBoundingClientRect);return e.extend(r||{},{element:a?i:n,bounds:a?i[0].getBoundingClientRect():e.extend({},o,i[0]),focus:e.bind(i,i.focus)})}}function i(t,n){return e.isString(t)&&(t=u[0].querySelector(t)),e.element(t||n)}t.origin=e.extend({element:null,bounds:null,focus:e.noop},t.origin||{}),t.parent=i(t.parent,d),t.closeTo=r(i(t.closeTo)),t.openFrom=r(i(t.openFrom)),t.targetEvent&&(t.origin=r(t.targetEvent.target,t.origin),t.originInteraction=v.getLastInteractionType())}function C(n,r){var o=e.element(l),a=i.debounce(function(){A(n,r)},60),c=[],u=function(){var e='alert'==r.$type?t.hide:t.cancel;i.nextTick(e,!0)};if(r.escapeToClose){var d=r.parent,f=function(t){t.keyCode===s.KEY_CODE.ESCAPE&&(t.stopPropagation(),t.preventDefault(),u())};n.on('keydown',f),d.on('keydown',f),c.push(function(){n.off('keydown',f),d.off('keydown',f)})}if(o.on('resize',a),c.push(function(){o.off('resize',a)}),r.clickOutsideToClose){var m,p=n,h=function(t){m=t.target},v=function(t){m===p[0]&&t.target===p[0]&&(t.stopPropagation(),t.preventDefault(),u())};p.on('mousedown',h),p.on('mouseup',v),c.push(function(){p.off('mousedown',h),p.off('mouseup',v)})}r.deactivateListeners=function(){c.forEach(function(t){t()}),r.deactivateListeners=null}}function _(t,e,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(e,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(t,'md-dialog-backdrop md-opaque'),c.enter(n.backdrop,n.parent)),n.hideBackdrop=function(t){n.backdrop&&(t?n.backdrop.remove():c.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function x(t,e){var n='alert'===e.$type?'alertdialog':'dialog',s=t.find('md-dialog-content'),c=t.attr('id'),u='dialogContent_'+(c||i.nextUid());t.attr({role:n,tabIndex:'-1'}),0===s.length&&(s=t,c&&(u=c)),s.attr('id',u),t.attr('aria-describedby',u),e.ariaLabel?r.expect(t,'aria-label',e.ariaLabel):r.expectAsync(t,'aria-label',function(){var t=s.text().split(/\s+/);return t.length>3&&(t=t.slice(0,3).concat('...')),t.join(' ')}),o=document.createElement('div'),o.classList.add('md-dialog-focus-trap'),o.tabIndex=0,a=o.cloneNode(!1);var l=function(){t.focus()};o.addEventListener('focus',l),a.addEventListener('focus',l),t[0].parentNode.insertBefore(o,t[0]),t.after(a)}function M(t,e){function n(t){for(;t.parentNode;){if(t===document.body)return;for(var e=t.parentNode.children,i=0;i<e.length;i++)t===e[i]||S(e[i],['SCRIPT','STYLE'])||e[i].setAttribute('aria-hidden',r);n(t=t.parentNode)}}var r=!0;n(t[0]),e.unlockScreenReader=function(){r=!1,n(t[0]),e.unlockScreenReader=null}}function A(t,e){var n='fixed'==l.getComputedStyle(u[0].body).position,r=e.backdrop?l.getComputedStyle(e.backdrop[0]):null,i=r?Math.min(u[0].body.clientHeight,Math.ceil(Math.abs(parseInt(r.height,10)))):0,o={top:t.css('top'),height:t.css('height')},a=Math.abs(e.parent[0].getBoundingClientRect().top);return t.css({top:(n?a:0)+'px',height:i?i+'px':'100%'}),function(){t.css(o)}}function T(t,e){e.parent.append(t),e.reverseContainerStretch=A(t,e);var n=t.find('md-dialog'),r=i.dom.animator,o=r.calculateZoomToOrigin,a={transitionInClass:'md-transition-in',transitionOutClass:'md-transition-out'},s=r.toTransformCss(o(n,e.openFrom||e.origin)),c=r.toTransformCss('');return n.toggleClass('md-dialog-fullscreen',!!e.fullscreen),r.translate3d(n,s,c,a).then(function(t){return e.reverseAnimate=function(){return delete e.reverseAnimate,e.closeTo?(a={transitionInClass:'md-transition-out',transitionOutClass:'md-transition-in'},s=c,c=r.toTransformCss(o(n,e.closeTo)),r.translate3d(n,s,c,a)):t(c=r.toTransformCss(o(n,e.origin)))},e.clearAnimate=function(){return delete e.clearAnimate,n.removeClass([a.transitionOutClass,a.transitionInClass].join(' ')),r.translate3d(n,c,r.toTransformCss(''),{})},!0})}function k(t,e){return e.reverseAnimate().then(function(){e.contentElement&&e.clearAnimate()})}function S(t,e){if(-1!==e.indexOf(t.nodeName))return!0}return{hasBackdrop:!0,isolateScope:!0,onCompiling:g,onShow:b,onShowing:$,onRemove:y,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(t,e){var n=h.startSymbol(),r=h.endSymbol();return'<div class="md-dialog-container" tabindex="-1" md-theme="'+n+(e.themeWatch?'':'::')+'theme'+r+'">'+function(t){return e.autoWrap&&!/<\/md-dialog>/g.test(t)?'<md-dialog>'+(t||'')+'</md-dialog>':t||''}(t)+'</div>'}}}r.$inject=['$mdDialog','$mdConstant'],i.$inject=['$mdDialog','$mdAria','$mdUtil','$mdConstant','$animate','$document','$window','$rootElement','$log','$injector','$mdTheming','$interpolate','$mdInteraction'];var o,a;return t('$mdDialog').setDefaults({methods:['disableParentScroll','hasBackdrop','clickOutsideToClose','escapeToClose','targetEvent','closeTo','openFrom','parent','fullscreen','multiple'],options:i}).addPreset('alert',{methods:['title','htmlContent','textContent','content','ariaLabel','ok','theme','css'],options:r}).addPreset('confirm',{methods:['title','htmlContent','textContent','content','ariaLabel','ok','cancel','theme','css'],options:r}).addPreset('prompt',{methods:['title','htmlContent','textContent','initialValue','content','placeholder','ariaLabel','ok','cancel','theme','css'],options:r})}t.$inject=['$$rAF','$mdTheming','$mdDialog'],r.$inject=['$$interimElementProvider'],e.module('material.components.dialog',['material.core','material.components.backdrop']).directive('mdDialog',t).provider('$mdDialog',r)}(),function(){function t(t){return{restrict:'E',link:t}}t.$inject=['$mdTheming'],e.module('material.components.divider',['material.core']).directive('mdDivider',t)}(),function(){!function(){function t(t){return{restrict:'E',require:['^?mdFabSpeedDial','^?mdFabToolbar'],compile:function(e,n){var r=e.children();t.prefixer().hasAttribute(r,'ng-repeat')?r.addClass('md-fab-action-item'):r.wrap('<div class="md-fab-action-item">')}}}t.$inject=['$mdUtil'],e.module('material.components.fabActions',['material.core']).directive('mdFabActions',t)}()}(),function(){!function(){function t(t,n,r,i,o,a){function s(){S.direction=S.direction||'down',S.isOpen=S.isOpen||!1,l(),n.addClass('md-animations-waiting')}function c(){var r=['click','focusin','focusout'];e.forEach(r,function(t){n.on(t,u)}),t.$on('$destroy',function(){e.forEach(r,function(t){n.off(t,u)}),p()})}function u(t){'click'==t.type&&A(t),'focusout'!=t.type||N||(N=a(function(){S.close()},100,!1)),'focusin'==t.type&&N&&(a.cancel(N),N=null)}function l(){S.currentActionIndex=-1}function d(){t.$watch('vm.direction',function(t,e){r.removeClass(n,'md-'+e),r.addClass(n,'md-'+t),l()});var e,i;t.$watch('vm.isOpen',function(t){l(),e&&i||(e=T(),i=k()),t?m():p();var o=t?'md-is-open':'',a=t?'':'md-is-open';e.attr('aria-haspopup',!0),e.attr('aria-expanded',t),i.attr('aria-hidden',!t),r.setClass(n,o,a)})}function f(){n[0].scrollHeight>0?r.addClass(n,'_md-animations-ready').then(function(){n.removeClass('md-animations-waiting')}):O<10&&(a(f,100),O+=1)}function m(){n.on('keydown',v),i.nextTick(function(){e.element(document).on('click touchend',h)})}function p(){n.off('keydown',v),e.element(document).off('click touchend',h)}function h(t){if(t.target){var e=i.getClosest(t.target,'md-fab-trigger'),n=i.getClosest(t.target,'md-fab-actions');e||n||S.close()}}function v(t){switch(t.which){case o.KEY_CODE.ESCAPE:return S.close(),t.preventDefault(),!1;case o.KEY_CODE.LEFT_ARROW:return E(t),!1;case o.KEY_CODE.UP_ARROW:return w(t),!1;case o.KEY_CODE.RIGHT_ARROW:return C(t),!1;case o.KEY_CODE.DOWN_ARROW:return _(t),!1}}function g(t){b(t,-1)}function $(t){b(t,1)}function b(t,n){var r=y();S.currentActionIndex=S.currentActionIndex+n,S.currentActionIndex=Math.min(r.length-1,S.currentActionIndex),S.currentActionIndex=Math.max(0,S.currentActionIndex);var i=e.element(r[S.currentActionIndex]).children()[0];e.element(i).attr('tabindex',0),i.focus(),t.preventDefault(),t.stopImmediatePropagation()}function y(){var t=k()[0].querySelectorAll('.md-fab-action-item');return e.forEach(t,function(t){e.element(e.element(t).children()[0]).attr('tabindex',-1)}),t}function E(t){'left'===S.direction?$(t):g(t)}function w(t){'down'===S.direction?g(t):$(t)}function C(t){'left'===S.direction?g(t):$(t)}function _(t){'up'===S.direction?g(t):$(t)}function x(t){return i.getClosest(t,'md-fab-trigger')}function M(t){return i.getClosest(t,'md-fab-actions')}function A(t){x(t.target)&&S.toggle(),M(t.target)&&S.close()}function T(){return n.find('md-fab-trigger')}function k(){return n.find('md-fab-actions')}var S=this,O=0;S.open=function(){t.$evalAsync('vm.isOpen = true')},S.close=function(){t.$evalAsync('vm.isOpen = false'),n.find('md-fab-trigger')[0].focus()},S.toggle=function(){t.$evalAsync('vm.isOpen = !vm.isOpen')},S.$onInit=function(){s(),c(),d(),f()},1===e.version.major&&e.version.minor<=4&&this.$onInit();var N}t.$inject=['$scope','$element','$animate','$mdUtil','$mdConstant','$timeout'],e.module('material.components.fabShared',['material.core']).controller('MdFabController',t)}()}(),function(){!function(){function n(){function t(t,e){e.prepend('<div class="_md-css-variables"></div>')}return{restrict:'E',scope:{direction:'@?mdDirection',isOpen:'=?mdOpen'},bindToController:!0,controller:'MdFabController',controllerAs:'vm',link:t}}function r(n){function r(t){n(t,o,!1)}function i(n){if(!n.hasClass('md-animations-waiting')||n.hasClass('_md-animations-ready')){var r=n[0],i=n.controller('mdFabSpeedDial'),o=r.querySelectorAll('.md-fab-action-item'),a=r.querySelector('md-fab-trigger'),s=r.querySelector('._md-css-variables'),c=parseInt(t.getComputedStyle(s).zIndex);e.forEach(o,function(t,e){var n=t.style;n.transform=n.webkitTransform='',n.transitionDelay='',n.opacity=1,n.zIndex=o.length-e+c}),a.style.zIndex=c+o.length+1,i.isOpen||e.forEach(o,function(t,e){var n,r,o=t.style,s=(a.clientHeight-t.clientHeight)/2,c=(a.clientWidth-t.clientWidth)/2;switch(i.direction){case'up':n=t.scrollHeight*(e+1)+s,r='Y';break;case'down':n=-(t.scrollHeight*(e+1)+s),r='Y';break;case'left':n=t.scrollWidth*(e+1)+c,r='X';break;case'right':n=-(t.scrollWidth*(e+1)+c),r='X'}var u='translate'+r+'('+n+'px)';o.transform=o.webkitTransform=u})}}return{addClass:function(t,e,n){t.hasClass('md-fling')?(i(t),r(n)):n()},removeClass:function(t,e,n){i(t),r(n)}}}function i(n){function r(t){n(t,o,!1)}function i(n){var r=n[0],i=n.controller('mdFabSpeedDial'),o=r.querySelectorAll('.md-fab-action-item'),s=r.querySelector('._md-css-variables'),c=parseInt(t.getComputedStyle(s).zIndex);e.forEach(o,function(t,e){var n=t.style,r=e*a;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?'scale(1)':'scale(0)',n.transitionDelay=(i.isOpen?r:o.length-r)+'ms',n.zIndex=o.length-e+c})}var a=65;return{addClass:function(t,e,n){i(t),r(n)},removeClass:function(t,e,n){i(t),r(n)}}}r.$inject=['$timeout'],i.$inject=['$timeout'];var o=300;e.module('material.components.fabSpeedDial',['material.core','material.components.fabShared','material.components.fabActions']).directive('mdFabSpeedDial',n).animation('.md-fling',r).animation('.md-scale',i).service('mdFabSpeedDialFlingAnimation',r).service('mdFabSpeedDialScaleAnimation',i)}()}(),function(){!function(){function n(){function t(t,e,n){e.addClass('md-fab-toolbar'),e.find('md-fab-trigger').find('button').prepend('<div class="md-fab-toolbar-background"></div>')}return{restrict:'E',transclude:!0,template:'<div class="md-fab-toolbar-wrapper">  <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:'@?mdDirection',isOpen:'=?mdOpen'},bindToController:!0,controller:'MdFabController',controllerAs:'vm',link:t}}function r(){function n(n,r,i){if(r){var o=n[0],a=n.controller('mdFabToolbar'),s=o.querySelector('.md-fab-toolbar-background'),c=o.querySelector('md-fab-trigger button'),u=o.querySelector('md-toolbar'),l=o.querySelector('md-fab-trigger button md-icon'),d=n.find('md-fab-actions').children();if(c&&s){var f=t.getComputedStyle(c).getPropertyValue('background-color'),m=o.offsetWidth,p=(o.offsetHeight,m/c.offsetWidth*2);s.style.backgroundColor=f,s.style.borderRadius=m+'px',a.isOpen?(u.style.pointerEvents='inherit',s.style.width=c.offsetWidth+'px',s.style.height=c.offsetHeight+'px',s.style.transform='scale('+p+')',s.style.transitionDelay='0ms',l&&(l.style.transitionDelay='.3s'),e.forEach(d,function(t,e){t.style.transitionDelay=25*(d.length-e)+'ms'})):(u.style.pointerEvents='none',s.style.transform='scale(1)',s.style.top='0',n.hasClass('md-right')&&(s.style.left='0',s.style.right=null),n.hasClass('md-left')&&(s.style.right='0',s.style.left=null),s.style.transitionDelay='200ms',l&&(l.style.transitionDelay='0ms'),e.forEach(d,function(t,e){t.style.transitionDelay=200+25*e+'ms'}))}}}return{addClass:function(t,e,r){n(t,e,r),r()},removeClass:function(t,e,r){n(t,e,r),r()}}}e.module('material.components.fabToolbar',['material.core','material.components.fabShared','material.components.fabActions']).directive('mdFabToolbar',n).animation('.md-fab-toolbar',r).service('mdFabToolbarAnimation',r)}()}(),function(){function t(t,r,i,o){function a(n,a,s,c){function u(){c.layoutDelegate=e.noop,C();for(var t in r.MEDIA)o.getQuery(r.MEDIA[t]).removeListener(w)}function l(t){null==t?c.invalidateLayout():o(t)&&c.invalidateLayout()}function d(t){var r=h(),o={tileSpans:v(r),colCount:g(),rowMode:y(),rowHeight:b(),gutter:$()};if(t||!e.equals(o,_)){var s=i(o.colCount,o.tileSpans,r).map(function(t,n){return{grid:{element:a,style:p(o.colCount,n,o.gutter,o.rowMode,o.rowHeight)},tiles:t.map(function(t,i){return{element:e.element(r[i]),style:m(t.position,t.spans,o.colCount,n,o.gutter,o.rowMode,o.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:s}}),_=o}}function f(t){return x+t+M}function m(t,e,n,r,i,o,a){var s=1/n*100,c=(n-1)/n,u=A({share:s,gutterShare:c,gutter:i}),l='rtl'!=document.dir&&'rtl'!=document.body.dir,d=l?{left:T({unit:u,offset:t.col,gutter:i}),width:k({unit:u,span:e.col,gutter:i}),paddingTop:'',marginTop:'',top:'',height:''}:{right:T({unit:u,offset:t.col,gutter:i}),width:k({unit:u,span:e.col,gutter:i}),paddingTop:'',marginTop:'',top:'',height:''};switch(o){case'fixed':d.top=T({unit:a,offset:t.row,gutter:i}),d.height=k({unit:a,span:e.row,gutter:i});break;case'ratio':var f=s/a,m=A({share:f,gutterShare:c,gutter:i});d.paddingTop=k({unit:m,span:e.row,gutter:i}),d.marginTop=T({unit:m,offset:t.row,gutter:i});break;case'fit':var p=(r-1)/r,f=1/r*100,m=A({share:f,gutterShare:p,gutter:i});d.top=T({unit:m,offset:t.row,gutter:i}),d.height=k({unit:m,span:e.row,gutter:i})}return d}function p(t,e,n,r,i){var o={};switch(r){case'fixed':o.height=k({unit:i,span:e,gutter:n}),o.paddingBottom='';break;case'ratio':var a=1===t?0:(t-1)/t,s=1/t*100,c=s*(1/i),u=A({share:c,gutterShare:a,gutter:n});o.height='',o.paddingBottom=k({unit:u,span:e,gutter:n})}return o}function h(){return[].filter.call(a.children(),function(t){return'MD-GRID-TILE'==t.tagName&&!t.$$mdDestroyed})}function v(t){return[].map.call(t,function(t){var n=e.element(t).controller('mdGridTile');return{row:parseInt(o.getResponsiveAttribute(n.$attrs,'md-rowspan'),10)||1,col:parseInt(o.getResponsiveAttribute(n.$attrs,'md-colspan'),10)||1}})}function g(){var t=parseInt(o.getResponsiveAttribute(s,'md-cols'),10);if(isNaN(t))throw'md-grid-list: md-cols attribute was not found, or contained a non-numeric value';return t}function $(){return E(o.getResponsiveAttribute(s,'md-gutter')||1)}function b(){var t=o.getResponsiveAttribute(s,'md-row-height');if(!t)throw'md-grid-list: md-row-height attribute was not found';switch(y()){case'fixed':return E(t);case'ratio':var e=t.split(':');return parseFloat(e[0])/parseFloat(e[1]);case'fit':return 0}}function y(){var t=o.getResponsiveAttribute(s,'md-row-height');if(!t)throw'md-grid-list: md-row-height attribute was not found';return'fit'==t?'fit':-1!==t.indexOf(':')?'ratio':'fixed'}function E(t){return/\D$/.test(t)?t:t+'px'}a.addClass('_md'),a.attr('role','list'),c.layoutDelegate=d;var w=e.bind(c,c.invalidateLayout),C=function(){for(var t in r.MEDIA)o(t),o.getQuery(r.MEDIA[t]).addListener(w);return o.watchResponsiveAttributes(['md-cols','md-row-height','md-gutter'],s,l)}();n.$on('$destroy',u);var _,x=t.startSymbol(),M=t.endSymbol(),A=t(f('share')+'% - ('+f('gutter')+' * '+f('gutterShare')+')'),T=t('calc(('+f('unit')+' + '+f('gutter')+') * '+f('offset')+')'),k=t('calc(('+f('unit')+') * '+f('span')+' + ('+f('span')+' - 1) * '+f('gutter')+')')}return{restrict:'E',controller:n,scope:{mdOnLayout:'&'},link:a}}function n(t){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=t.nextTick,this.layoutDelegate=e.noop}function r(t){function n(e,n){var r,a,s,c,u,l;return c=t.time(function(){a=i(e,n)}),r={layoutInfo:function(){return a},map:function(e){return u=t.time(function(){var t=r.layoutInfo();s=e(t.positioning,t.rowCount)}),r},reflow:function(e){return l=t.time(function(){(e||o)(s.grid,s.tiles)}),r},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:u,reflowTime:l,totalTime:c+u+l}}}}function r(t,e){t.element.css(t.style),e.forEach(function(t){t.element.css(t.style)})}function i(t,e){function n(e,n){if(e.col>t)throw'md-grid-list: Tile at position '+n+' has a colspan ('+e.col+') that exceeds the column count ('+t+')';for(var u=0,l=0;l-u<e.col;)a>=t?r():(u=c.indexOf(0,a),-1!==u&&-1!==(l=o(u+1))?a=l+1:(u=l=0,r()));return i(u,e.col,e.row),a=u+e.col,{col:u,row:s}}function r(){a=0,s++,i(0,t,-1)}function i(t,e,n){for(var r=t;r<t+e;r++)c[r]=Math.max(c[r]+n,0)}function o(t){var e;for(e=t;e<c.length;e++)if(0!==c[e])return e;if(e===c.length)return e}var a=0,s=0,c=function(){for(var e=[],n=0;n<t;n++)e.push(0);return e}();return{positioning:e.map(function(t,e){return{spans:t,position:n(t,e)}}),rowCount:s+Math.max.apply(Math,c)}}var o=r;return n.animateWith=function(t){o=e.isFunction(t)?t:r},n}function i(t){function n(n,r,i,o){r.attr('role','listitem');var a=t.watchResponsiveAttributes(['md-colspan','md-rowspan'],i,e.bind(o,o.invalidateLayout));o.invalidateTiles(),n.$on('$destroy',function(){r[0].$$mdDestroyed=!0,a(),o.invalidateLayout()}),e.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(t,e){t!==e&&o.invalidateTiles()})}return{restrict:'E',require:'^mdGridList',template:'<figure ng-transclude></figure>',transclude:!0,scope:{},controller:['$attrs',function(t){this.$attrs=t}],link:n}}function o(){return{template:'<figcaption ng-transclude></figcaption>',transclude:!0}}n.$inject=['$mdUtil'],r.$inject=['$mdUtil'],t.$inject=['$interpolate','$mdConstant','$mdGridLayout','$mdMedia'],i.$inject=['$mdMedia'],e.module('material.components.gridList',['material.core']).directive('mdGridList',t).directive('mdGridTile',i).directive('mdGridTileFooter',o).directive('mdGridTileHeader',o).factory('$mdGridLayout',r),n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(e.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),function(){e.module('material.components.icon',['material.core'])}(),function(){function n(t,e){function n(e){var n=e[0].querySelector(o),r=e[0].querySelector(a);return n&&e.addClass('md-icon-left'),r&&e.addClass('md-icon-right'),function(e,n){t(n)}}function r(t,n,r,i){var o=this;o.isErrorGetter=r.mdIsError&&e(r.mdIsError),o.delegateClick=function(){o.input.focus()},o.element=n,o.setFocused=function(t){n.toggleClass('md-input-focused',!!t)},o.setHasValue=function(t){n.toggleClass('md-input-has-value',!!t)},o.setHasPlaceholder=function(t){n.toggleClass('md-input-has-placeholder',!!t)},o.setInvalid=function(t){t?i.addClass(n,'md-input-invalid'):i.removeClass(n,'md-input-invalid')},t.$watch(function(){return o.label&&o.input},function(t){t&&!o.label.attr('for')&&o.label.attr('for',o.input.attr('id'))})}r.$inject=['$scope','$element','$attrs','$animate'];var i=['INPUT','TEXTAREA','SELECT','MD-SELECT'],o=i.reduce(function(t,e){return t.concat(['md-icon ~ '+e,'.md-icon ~ '+e])},[]).join(','),a=i.reduce(function(t,e){return t.concat([e+' ~ md-icon',e+' ~ .md-icon'])},[]).join(',');return{restrict:'E',compile:n,controller:r}}function r(){return{restrict:'E',require:'^?mdInputContainer',link:function(t,e,n,r){!r||n.mdNoFloat||e.hasClass('md-container-ignore')||(r.label=e,t.$on('$destroy',function(){r.label=null}))}}}function i(t,n,r,i,o){function a(a,s,c,u){function l(t){return f.setHasValue(!p.$isEmpty(t)),t}function d(){f.setHasValue(s.val().length>0||(s[0].validity||{}).badInput)}var f=u[0],m=!!u[1],p=u[1]||t.fakeNgModel(),h=u[2],v=e.isDefined(c.readonly),g=t.parseAttributeBoolean(c.mdNoAsterisk),$=s[0].tagName.toLowerCase();if(f){if('hidden'===c.type)return void s.attr('aria-hidden','true');if(f.input){if(f.input[0].contains(s[0]))return;throw new Error('<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!')}f.input=s,function(){f.label&&c.$observe('required',function(t){f.label.toggleClass('md-required',t&&!g)})}();var b=e.element('<div class="md-errors-spacer">');s.after(b),f.label||r.expect(s,'aria-label',c.placeholder),s.addClass('md-input'),s.attr('id')||s.attr('id','input_'+t.nextUid()),'input'===$&&'number'===c.type&&c.min&&c.max&&!c.step?s.attr('step','any'):'textarea'===$&&function(){function r(){s.attr('rows',1).css('height','auto').addClass('md-no-flex');var t=u();if(!b){var e=s[0].style.padding||'';b=s.css('padding',0).prop('offsetHeight'),s[0].style.padding=e}if(v&&b&&(t=Math.max(t,b*v)),g&&b){var n=b*g;n<t?(s.attr('md-no-autogrow',''),t=n):s.removeAttr('md-no-autogrow')}b&&s.attr('rows',Math.round(t/b)),s.css('height',t+'px').removeClass('md-no-flex')}function u(){var t=y.offsetHeight,e=y.scrollHeight-t;return t+Math.max(e,0)}function l(e){return t.nextTick(r),e}function d(){if(h&&(h=!1,e.element(n).off('resize',r),$&&$(),s.attr('md-no-autogrow','').off('input',r),m)){var t=p.$formatters.indexOf(l);t>-1&&p.$formatters.splice(t,1)}}var h=!c.hasOwnProperty('mdNoAutogrow');if(function(){function t(t){t.preventDefault(),l=!0,m=t.clientY,p=parseFloat(s.css('height'))||s.prop('offsetHeight')}function n(t){l&&(t.preventDefault(),d(),h.addClass('md-input-resized'))}function r(t){l&&s.css('height',p+t.pointer.distanceY+'px')}function i(t){l&&(l=!1,h.removeClass('md-input-resized'))}if(!c.hasOwnProperty('mdNoResize')){var u=e.element('<div class="md-resize-handle"></div>'),l=!1,m=null,p=0,h=f.element,v=o.register(u,'drag',{horizontal:!1});s.wrap('<div class="md-resize-wrapper">').after(u),u.on('mousedown',t),h.on('$md.dragstart',n).on('$md.drag',r).on('$md.dragend',i),a.$on('$destroy',function(){u.off('mousedown',t).remove(),h.off('$md.dragstart',n).off('$md.drag',r).off('$md.dragend',i),v(),u=null,h=null,v=null})}}(),h){var v=c.hasOwnProperty('rows')?parseInt(c.rows):NaN,g=c.hasOwnProperty('maxRows')?parseInt(c.maxRows):NaN,$=a.$on('md-resize-textarea',r),b=null,y=s[0];if(i(function(){t.nextTick(r)},10,!1),s.on('input',r),m&&p.$formatters.push(l),v||s.attr('rows',1),e.element(n).on('resize',r),a.$on('$destroy',d),c.hasOwnProperty('mdDetectHidden')){var E=function(){var t=!1;return function(){var e=0===y.offsetHeight;!1===e&&!0===t&&r(),t=e}}();a.$watch(function(){return t.nextTick(E,!1),!0})}}}(),m||d();var y=f.isErrorGetter||function(){return p.$invalid&&(p.$touched||h&&h.$submitted)};a.$watch(y,f.setInvalid),c.ngValue&&c.$observe('value',d),p.$parsers.push(l),p.$formatters.push(l),s.on('input',d),v||s.on('focus',function(e){t.nextTick(function(){f.setFocused(!0)})}).on('blur',function(e){t.nextTick(function(){f.setFocused(!1),d()})}),a.$on('$destroy',function(){f.setFocused(!1),f.setHasValue(!1),f.input=null})}}return{restrict:'E',require:['^?mdInputContainer','?ngModel','?^form'],link:a}}function o(t,n){function r(r,i,o,a){function s(t){return u.parent?(u.text(String(i.val()||t||'').length+' / '+c),t):t}var c,u,l,d=a[0],f=a[1];n.nextTick(function(){l=e.element(f.element[0].querySelector('.md-errors-spacer')),u=e.element('<div class="md-char-counter">'),l.append(u),o.$set('ngTrim','false'),r.$watch(o.mdMaxlength,function(n){c=n,e.isNumber(n)&&n>0?(u.parent().length||t.enter(u,l),s()):t.leave(u)}),d.$validators['md-maxlength']=function(t,n){return!e.isNumber(c)||c<0||(s(),(t||i.val()||n||'').length<=c)}})}return{restrict:'A',require:['ngModel','^mdInputContainer'],link:r}}function a(t){function n(n,r,i,o){if(o){var a=o.element.find('label'),s=o.element.attr('md-no-float');if(a&&a.length||''===s||n.$eval(s))return void o.setHasPlaceholder(!0);if('MD-SELECT'!=r[0].nodeName){var c=e.element('<label ng-click="delegateClick()" tabindex="-1">'+i.placeholder+'</label>');i.$set('placeholder',null),o.element.addClass('md-icon-float').prepend(c),t(c)(n)}}}return{restrict:'A',require:'^^?mdInputContainer',priority:200,link:{pre:n}}}function s(t){function e(e,n,r){function i(){a=!0,t(function(){n[0].select(),a=!1},1,!1)}function o(t){a&&t.preventDefault()}if('INPUT'===n[0].nodeName||'TEXTAREA'===n[0].nodeName){var a=!1;n.on('focus',i).on('mouseup',o),e.$on('$destroy',function(){n.off('focus',i).off('mouseup',o)})}}return{restrict:'A',link:e}}function c(){function t(t,n,r,i){i&&(n.toggleClass('md-input-messages-animation',!0),n.toggleClass('md-auto-hide',!0),('false'==r.mdAutoHide||e(r))&&n.toggleClass('md-auto-hide',!1))}function e(t){return x.some(function(e){return t[e]})}return{restrict:'EA',link:t,require:'^^?mdInputContainer'}}function u(t){function e(e){function n(e){return!!t.getClosest(e,'md-input-container')}function r(t){t.toggleClass('md-input-message-animation',!0)}if(n(e))r(e);else if(function(){for(var t=e[0];t=t.parentNode;)if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(t,i){n(i)&&r(e)}}return{restrict:'EA',compile:e,priority:100}}function l(t,e,n,r){return b(t,e,n,r),{addClass:function(t,e,n){m(t,n)}}}function d(t,e,n,r){return b(t,e,n,r),{enter:function(t,e){m(t,e)},leave:function(t,e){p(t,e)},addClass:function(t,e,n){'ng-hide'==e?p(t,n):n()},removeClass:function(t,e,n){'ng-hide'==e?m(t,n):n()}}}function f(t,e,n,r){return b(t,e,n,r),{enter:function(t,e){h(t).start().done(e)},leave:function(t,e){v(t).start().done(e)}}}function m(t,n){var r,i=[],o=$(t),a=o.children();if(0==o.length||0==a.length)return _.warn('mdInput messages show animation called on invalid messages element: ',t),void n();e.forEach(a,function(t){r=h(e.element(t)),i.push(r.start())}),E.all(i,n)}function p(t,n){var r,i=[],o=$(t),a=o.children();if(0==o.length||0==a.length)return _.warn('mdInput messages hide animation called on invalid messages element: ',t),void n();e.forEach(a,function(t){r=v(e.element(t)),i.push(r.start())}),E.all(i,n)}function h(e){var n=parseInt(t.getComputedStyle(e[0]).height),r=parseInt(t.getComputedStyle(e[0]).marginTop),i=$(e),o=g(e);return r>-n||i.hasClass('md-auto-hide')&&!o.hasClass('md-input-invalid')?w(e,{}):w(e,{event:'enter',structural:!0,from:{opacity:0,'margin-top':-n+'px'},to:{opacity:1,'margin-top':'0'},duration:.3})}function v(e){var n=e[0].offsetHeight,r=t.getComputedStyle(e[0]);return 0===parseInt(r.opacity)?w(e,{}):w(e,{event:'leave',structural:!0,from:{opacity:1,'margin-top':0},to:{opacity:0,'margin-top':-n+'px'},duration:.3})}function g(t){return t.controller('mdInputContainer').element}function $(t){return t.hasClass('md-input-messages-animation')?t:t.hasClass('md-input-message-animation')?e.element(C.getClosest(t,function(t){return t.classList.contains('md-input-messages-animation')})):e.element(t[0].querySelector('.md-input-messages-animation'))}function b(t,e,n,r){E=t,w=e,C=n,_=r}n.$inject=['$mdTheming','$parse'],i.$inject=['$mdUtil','$window','$mdAria','$timeout','$mdGesture'],o.$inject=['$animate','$mdUtil'],a.$inject=['$compile'],u.$inject=['$mdUtil'],s.$inject=['$timeout'],l.$inject=['$$AnimateRunner','$animateCss','$mdUtil','$log'],d.$inject=['$$AnimateRunner','$animateCss','$mdUtil','$log'],f.$inject=['$$AnimateRunner','$animateCss','$mdUtil','$log'];var y=e.module('material.components.input',['material.core']).directive('mdInputContainer',n).directive('label',r).directive('input',i).directive('textarea',i).directive('mdMaxlength',o).directive('placeholder',a).directive('ngMessages',c).directive('ngMessage',u).directive('ngMessageExp',u).directive('mdSelectOnFocus',s).animation('.md-input-invalid',l).animation('.md-input-messages-animation',d).animation('.md-input-message-animation',f);t._mdMocksIncluded&&y.service('$$mdInput',function(){return{messages:{show:m,hide:p,getElement:$}}}).service('mdInputInvalidAnimation',l).service('mdInputMessagesAnimation',d).service('mdInputMessageAnimation',f);var E,w,C,_,x=['ngIf','ngShow','ngHide','ngSwitchWhen','ngSwitchDefault']}(),function(){function t(t){return{restrict:'E',compile:function(e){return e[0].setAttribute('role','list'),t}}}function n(t,n,r,i){var o=['md-checkbox','md-switch','md-menu'];return{restrict:'E',controller:'MdListController',compile:function(a,s){function c(n){if('div'==n)$=e.element('<div class="md-no-style md-list-item-inner">'),$.append(a.contents()),a.addClass('md-proxy-focus');else{$=e.element('<div class="md-button md-no-style">   <div class="md-list-item-inner"></div></div>');var r=e.element('<md-button class="md-no-style"></md-button>');l(a[0],r[0]),r.attr('aria-label')||r.attr('aria-label',t.getText(a)),a.hasClass('md-no-focus')&&r.addClass('md-no-focus'),$.prepend(r),$.children().eq(1).append(a.contents()),a.addClass('_md-button-wrap')}a[0].setAttribute('tabindex','-1'),a.append($)}function u(n,r){if(n&&!f(n)&&n.hasAttribute('ng-click')){t.expect(n,'aria-label');var i=e.element('<md-button class="md-secondary md-icon-button">');l(n,i[0],['ng-if','ng-hide','ng-show']),n.setAttribute('tabindex','-1'),i.append(n),n=i[0]}n&&(!m(n)||!s.ngClick&&d(n))&&e.element(n).removeClass('md-secondary'),a.addClass('md-with-secondary'),r.append(n)}function l(t,n,i){var o=r.prefixer(['ng-if','ng-click','ng-dblclick','aria-label','ng-disabled','ui-sref','href','ng-href','target','ng-attr-ui-sref','ui-sref-opts']);i&&(o=o.concat(r.prefixer(i))),e.forEach(o,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function d(t){return-1!=o.indexOf(t.nodeName.toLowerCase())}function f(t){var e=t.nodeName.toUpperCase();return'MD-BUTTON'==e||'BUTTON'==e}function m(t){for(var e=t.attributes,n=0;n<e.length;n++)if('ngClick'===s.$normalize(e[n].name))return!0;return!1}function p(t,a,s,c){function u(t){var e=['md-slider'];if(!t.path)return-1!==e.indexOf(t.target.tagName.toLowerCase());for(var n=t.path.indexOf(a.children()[0]),r=0;r<n;r++)if(-1!==e.indexOf(t.path[r].tagName.toLowerCase()))return!0}a.addClass('_md');var l=[],d=a[0].firstElementChild,f=a.hasClass('_md-button-wrap'),p=f?d.firstElementChild:d,h=p&&m(p),v=a.hasClass('md-no-proxy');!function(){d&&d.children&&!h&&!v&&e.forEach(o,function(t){e.forEach(d.querySelectorAll(t+':not(.md-secondary)'),function(t){l.push(t)})})}(),function(){(1==l.length||h)&&(a.addClass('md-clickable'),h||c.attachRipple(t,e.element(a[0].querySelector('.md-no-style'))))}(),l.length&&e.forEach(l,function(n){n=e.element(n),t.mouseActive=!1,n.on('mousedown',function(){t.mouseActive=!0,i(function(){t.mouseActive=!1},100)}).on('focus',function(){!1===t.mouseActive&&a.addClass('md-focused'),n.on('blur',function t(){a.removeClass('md-focused'),n.off('blur',t)})})});var g=function(t){if('INPUT'!=t.target.nodeName&&'TEXTAREA'!=t.target.nodeName&&!t.target.isContentEditable){(t.which||t.keyCode)==n.KEY_CODE.SPACE&&p&&(p.click(),t.preventDefault(),t.stopPropagation())}};h||l.length||p&&p.addEventListener('keypress',g),a.off('click'),a.off('keypress'),1==l.length&&p&&a.children().eq(0).on('click',function(t){if(!u(t)){!r.getClosest(t.target,'BUTTON')&&p.contains(t.target)&&e.forEach(l,function(n){t.target===n||n.contains(t.target)||('MD-MENU'===n.nodeName&&(n=n.children[0]),e.element(n).triggerHandler('click'))})}}),t.$on('$destroy',function(){p&&p.removeEventListener('keypress',g)})}var h,v,g=a[0].querySelectorAll('.md-secondary'),$=a;if(a[0].setAttribute('role','listitem'),s.ngClick||s.ngDblclick||s.ngHref||s.href||s.uiSref||s.ngAttrUiSref)c('button');else if(!a.hasClass('md-no-proxy')){for(var b,y=0;b=o[y];++y)if(v=a[0].querySelector(b)){h=!0;break}h?c('div'):a.addClass('md-no-proxy')}return function(){var t=e.element('<div class="md-secondary-container">');e.forEach(g,function(e){u(e,t)}),$.append(t)}(),function(){for(var t,e,n=['md-switch','md-checkbox'],r=0;e=n[r];++r)if((t=a.find(e)[0])&&!t.hasAttribute('aria-label')){var i=a.find('p')[0];if(!i)return;t.setAttribute('aria-label','Toggle '+i.textContent)}}(),h&&'MD-MENU'===v.nodeName&&function(){var t=e.element(v),n=t.parent().hasClass('md-secondary-container')||v.parentNode.firstElementChild!==v,r='left';n&&(r='right'),t.attr('md-position-mode')||t.attr('md-position-mode',r+' target');var i=t.children().eq(0);m(i[0])||i.attr('ng-click','$mdMenu.open($event)'),i.attr('aria-label')||i.attr('aria-label','Open List Menu')}(),p}}}function r(t,e,n){function r(t,e){var r={};n.attach(t,e,r)}this.attachRipple=r}r.$inject=['$scope','$element','$mdListInkRipple'],t.$inject=['$mdTheming'],n.$inject=['$mdAria','$mdConstant','$mdUtil','$timeout'],e.module('material.components.list',['material.core']).controller('MdListController',r).directive('mdList',t).directive('mdListItem',n)}(),function(){e.module('material.components.menu',['material.core','material.components.backdrop'])}(),function(){e.module('material.components.menuBar',['material.core','material.components.icon','material.components.menu'])}(),function(){function t(t,n){return{restrict:'E',transclude:!0,controller:r,controllerAs:'ctrl',bindToController:!0,scope:{mdSelectedNavItem:'=?',mdNoInkBar:'=?',navBarAriaLabel:'@?'},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="listbox"tabindex="0"ng-focus="ctrl.onFocus()"ng-keydown="ctrl.onKeydown($event)"aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(r,i,o,a){n(i),a.navBarAriaLabel||t.expectAsync(i,'aria-label',e.noop)}}}function r(t,e,n,r){this._$timeout=n,this._$scope=e,this._$mdConstant=r,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=t[0],this._inkbar;var i=this,o=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll('._md-nav-button').length},function(t){t>0&&(i._initTabs(),o())})}function i(t,n){return{restrict:'E',require:['mdNavItem','^mdNavBar'],controller:o,bindToController:!0,controllerAs:'ctrl',replace:!0,transclude:!0,template:function(t,e){var n,r,i,o=e.mdNavClick,a=e.mdNavHref,s=e.mdNavSref,c=e.srefOpts;if((o?1:0)+(a?1:0)+(s?1:0)>1)throw Error('Must not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.');return o?n='ng-click="ctrl.mdNavClick()"':a?n='ng-href="{{ctrl.mdNavHref}}"':s&&(n='ui-sref="{{ctrl.mdNavSref}}"'),r=c?'ui-sref-opts="{{ctrl.srefOpts}}" ':'',n&&(i='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" tabindex="-1" '+r+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="option" aria-selected="{{ctrl.isSelected()}}">'+(i||'')+'</li>'},scope:{mdNavClick:'&?',mdNavHref:'@?',mdNavSref:'@?',srefOpts:'=?',name:'@'},link:function(r,i,o,a){n(function(){var n=a[0],o=a[1],s=e.element(i[0].querySelector('._md-nav-button'));n.name||(n.name=e.element(i[0].querySelector('._md-nav-button-text')).text().trim()),s.on('click',function(){o.mdSelectedNavItem=n.name,r.$apply()}),t.expectWithText(i,'aria-label')})}}}function o(t){this._$element=t,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this._selected=!1,this._focused=!1}r.$inject=['$element','$scope','$timeout','$mdConstant'],i.$inject=['$mdAria','$$rAF'],o.$inject=['$element'],t.$inject=['$mdAria','$mdTheming'],e.module('material.components.navBar',['material.core']).controller('MdNavBarController',r).directive('mdNavBar',t).controller('MdNavItemController',o).directive('mdNavItem',i),r.prototype._initTabs=function(){this._inkbar=e.element(this._navBarEl.querySelector('md-nav-ink-bar'));var t=this;this._$timeout(function(){t._updateTabs(t.mdSelectedNavItem,n)}),this._$scope.$watch('ctrl.mdSelectedNavItem',function(e,n){t._$timeout(function(){t._updateTabs(e,n)})})},r.prototype._updateTabs=function(t,e){var n=this,r=this._getTabs();if(r){var i=-1,o=-1,a=this._getTabByName(t),s=this._getTabByName(e);s&&(s.setSelected(!1),i=r.indexOf(s)),a&&(a.setSelected(!0),o=r.indexOf(a)),this._$timeout(function(){n._updateInkBarStyles(a,o,i)})}},r.prototype._updateInkBarStyles=function(t,e,n){if(this._inkbar.toggleClass('_md-left',e<n).toggleClass('_md-right',e>n),this._inkbar.css({display:e<0?'none':''}),t){var r=t.getButtonEl(),i=r.offsetLeft;this._inkbar.css({left:i+'px',width:r.offsetWidth+'px'})}},r.prototype._getTabs=function(){var t=Array.prototype.slice.call(this._navBarEl.querySelectorAll('.md-nav-item')).map(function(t){return e.element(t).controller('mdNavItem')});return t.indexOf(n)?t:null},r.prototype._getTabByName=function(t){return this._findTab(function(e){return e.getName()==t})},r.prototype._getSelectedTab=function(){return this._findTab(function(t){return t.isSelected()})},r.prototype.getFocusedTab=function(){return this._findTab(function(t){return t.hasFocus()})},r.prototype._findTab=function(t){for(var e=this._getTabs(),n=0;n<e.length;n++)if(t(e[n]))return e[n];return null},r.prototype.onFocus=function(){var t=this._getSelectedTab();t&&t.setFocused(!0)},r.prototype._moveFocus=function(t,e){t.setFocused(!1),e.setFocused(!0)},r.prototype.onKeydown=function(t){var e=this._$mdConstant.KEY_CODE,n=this._getTabs(),r=this.getFocusedTab();if(r){var i=n.indexOf(r);switch(t.keyCode){case e.UP_ARROW:case e.LEFT_ARROW:i>0&&this._moveFocus(r,n[i-1]);break;case e.DOWN_ARROW:case e.RIGHT_ARROW:i<n.length-1&&this._moveFocus(r,n[i+1]);break;case e.SPACE:case e.ENTER:this._$timeout(function(){r.getButtonEl().click()})}}},o.prototype.getNgClassMap=function(){return{'md-active':this._selected,'md-primary':this._selected,'md-unselected':!this._selected,'md-focused':this._focused}},o.prototype.getName=function(){return this.name},o.prototype.getButtonEl=function(){return this._$element[0].querySelector('._md-nav-button')},o.prototype.setSelected=function(t){this._selected=t},o.prototype.isSelected=function(){return this._selected},o.prototype.setFocused=function(t){this._focused=t,t&&this.getButtonEl().focus()},o.prototype.hasFocus=function(){return this._focused}}(),function(){e.module('material.components.progressCircular',['material.core'])}(),function(){function t(){return{definePreset:r,getAllPresets:i,clearPresets:o,$get:a()}}function r(t,e){if(!t||!e)throw new Error('mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.');if(h.hasOwnProperty(t))throw new Error('mdPanelProvider: The panel preset you have requested has already been defined.');delete e.id,delete e.position,delete e.animation,h[t]=e}function i(){return e.copy(h)}function o(){h={}}function a(){return['$rootElement','$rootScope','$injector','$window',function(t,e,n,r){return new s(h,t,e,n,r)}]}function s(t,n,r,i,o){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:e.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:m},this._config={},this._presets=t,this._$rootElement=n,this._$rootScope=r,this._$injector=i,this._$window=o,this._$mdUtil=this._$injector.get('$mdUtil'),this._trackedPanels={},this._groups=Object.create(null),this.animation=l.animation,this.xPosition=u.xPosition,this.yPosition=u.yPosition,this.interceptorTypes=c.interceptorTypes,this.closeReasons=c.closeReasons,this.absPosition=u.absPosition}function c(t,e){this._$q=e.get('$q'),this._$mdCompiler=e.get('$mdCompiler'),this._$mdConstant=e.get('$mdConstant'),this._$mdUtil=e.get('$mdUtil'),this._$mdTheming=e.get('$mdTheming'),this._$rootScope=e.get('$rootScope'),this._$animate=e.get('$animate'),this._$mdPanel=e.get('$mdPanel'),this._$log=e.get('$log'),this._$window=e.get('$window'),this._$$rAF=e.get('$$rAF'),this.id=t.id,this.config=t,this.panelContainer,this.panelEl,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap,this._bottomFocusTrap,this._backdropRef,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:'',classes:''}}function u(t){this._$window=t.get('$window'),this._isRTL='rtl'===t.get('$mdUtil').bidi(),this._$mdConstant=t.get('$mdConstant'),this._absolute=!1,this._relativeToEl,this._top='',this._bottom='',this._left='',this._right='',this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function l(t){this._$mdUtil=t.get('$mdUtil'),this._openFrom,this._closeTo,this._animationClass='',this._openDuration,this._closeDuration,this._rawDuration}function d(t){var n=e.isString(t)?document.querySelector(t):t;return e.element(n)}function f(t,e){var n=getComputedStyle(t[0]||t)[e],r=n.indexOf('('),i=n.lastIndexOf(')'),o={x:0,y:0};if(r>-1&&i>-1){var a=n.substring(r+1,i).split(', ').slice(-2);o.x=parseInt(a[0]),o.y=parseInt(a[1])}return o}s.$inject=['presets','$rootElement','$rootScope','$injector','$window'],e.module('material.components.panel',['material.core','material.components.backdrop']).provider('$mdPanel',t);var m=80,p=e.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),h={};s.prototype.create=function(t,n){if('string'==typeof t?t=this._getPresetByName(t):'object'!=typeof t||!e.isUndefined(n)&&n||(n=t,t={}),t=t||{},n=n||{},e.isDefined(n.id)&&this._trackedPanels[n.id]){var r=this._trackedPanels[n.id];return e.extend(r.config,n),r}this._config=e.extend({id:n.id||'panel_'+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,n,t);var i=new c(this._config,this._$injector);return this._trackedPanels[n.id]=i,this._config.groupName&&(e.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),e.forEach(this._config.groupName,function(t){i.addToGroup(t)})),this._config.scope.$on('$destroy',e.bind(i,i.detach)),i},s.prototype.open=function(t,e){var n=this.create(t,e);return n.open().then(function(){return n})},s.prototype._getPresetByName=function(t){if(!this._presets[t])throw new Error('mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.');return this._presets[t]},s.prototype.newPanelPosition=function(){return new u(this._$injector)},s.prototype.newPanelAnimation=function(){return new l(this._$injector)},s.prototype.newPanelGroup=function(t,e){if(!this._groups[t]){e=e||{};var n={panels:[],openPanels:[],maxOpen:e.maxOpen>0?e.maxOpen:1/0};this._groups[t]=n}return this._groups[t]},s.prototype.setGroupMaxOpen=function(t,e){if(!this._groups[t])throw new Error('mdPanel: Group does not exist yet. Call newPanelGroup().');this._groups[t].maxOpen=e},s.prototype._openCountExceedsMaxOpen=function(t){if(this._groups[t]){var e=this._groups[t];return e.maxOpen>0&&e.openPanels.length>e.maxOpen}return!1},s.prototype._closeFirstOpenedPanel=function(t){this._groups[t].openPanels[0].close()},s.prototype._wrapTemplate=function(t){return'<div class="md-panel-outer-wrapper">  <div class="md-panel _md-panel-offscreen">'+(t||'')+'</div></div>'},s.prototype._wrapContentElement=function(t){var n=e.element('<div class="md-panel-outer-wrapper">');return t.addClass('md-panel _md-panel-offscreen'),n.append(t),n},c.interceptorTypes={CLOSE:'onClose'},c.prototype.open=function(){var t=this;return this._$q(function(n,r){var i=t._done(n,t),o=t._simpleBind(t.show,t),a=function(){t.config.groupName&&e.forEach(t.config.groupName,function(e){t._$mdPanel._openCountExceedsMaxOpen(e)&&t._$mdPanel._closeFirstOpenedPanel(e)})};t.attach().then(o).then(a).then(i).catch(r)})},c.prototype.close=function(t){var n=this;return this._$q(function(r,i){n._callInterceptors(c.interceptorTypes.CLOSE).then(function(){var o=n._done(r,n),a=n._simpleBind(n.detach,n),s=n.config.onCloseSuccess||e.noop;s=e.bind(n,s,n,t),n.hide().then(a).then(o).then(s).catch(i)},i)})},c.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var t=this;return this._$q(function(n,r){var i=t._done(n,t),o=t.config.onDomAdded||e.noop,a=function(e){return t.isAttached=!0,t._addEventListeners(),e};t._$q.all([t._createBackdrop(),t._createPanel().then(a).catch(r)]).then(o).then(i).catch(r)})},c.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var t=this,n=t.config.onDomRemoved||e.noop,r=function(){return t._removeEventListeners(),t._topFocusTrap&&t._topFocusTrap.parentNode&&t._topFocusTrap.parentNode.removeChild(t._topFocusTrap),t._bottomFocusTrap&&t._bottomFocusTrap.parentNode&&t._bottomFocusTrap.parentNode.removeChild(t._bottomFocusTrap),t._restoreCache.classes&&(t.panelEl[0].className=t._restoreCache.classes),t.panelEl[0].style.cssText=t._restoreCache.styles||'',t._compilerCleanup(),t.panelContainer.remove(),t.isAttached=!1,t._$q.when(t)};return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(e,i){var o=t._done(e,t);t._$q.all([r(),!t._backdropRef||t._backdropRef.detach()]).then(n).then(o).catch(i)})},c.prototype.destroy=function(){var t=this;this.config.groupName&&e.forEach(this.config.groupName,function(e){t.removeFromGroup(e)}),this.config.scope.$destroy(),this.config.locals=null,this._interceptors=null},c.prototype.show=function(){if(!this.panelContainer)return this._$q(function(t,e){e('mdPanel: Panel does not exist yet. Call open() or attach().')});if(!this.panelContainer.hasClass('_md-panel-hidden'))return this._$q.when(this);var t=this,n=function(){return t.panelContainer.removeClass('_md-panel-hidden'),t._animateOpen()};return this._$q(function(r,i){var o=t._done(r,t),a=t.config.onOpenComplete||e.noop,s=function(){t.config.groupName&&e.forEach(t.config.groupName,function(e){t._$mdPanel._groups[e].openPanels.push(t)})};t._$q.all([t._backdropRef?t._backdropRef.show():t,n().then(function(){t._focusOnOpen()},i)]).then(a).then(s).then(o).catch(i)})},c.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(t,e){e('mdPanel: Panel does not exist yet. Call open() or attach().')});if(this.panelContainer.hasClass('_md-panel-hidden'))return this._$q.when(this);var t=this;return this._$q(function(n,r){var i=t._done(n,t),o=t.config.onRemoving||e.noop,a=function(){t.panelContainer.addClass('_md-panel-hidden')},s=function(){if(t.config.groupName){var n;e.forEach(t.config.groupName,function(e){e=t._$mdPanel._groups[e],(n=e.openPanels.indexOf(t))>-1&&e.openPanels.splice(n,1)})}},c=function(){var e=t.config.origin;e&&d(e).focus()};t._$q.all([t._backdropRef?t._backdropRef.hide():t,t._animateClose().then(o).then(a).then(s).then(c).catch(r)]).then(i,r)})},c.prototype.addClass=function(t,e){if(this._$log.warn('mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef.'),!this.panelContainer)throw new Error('mdPanel: Panel does not exist yet. Call open() or attach().');e||this.panelContainer.hasClass(t)?e&&!this.panelEl.hasClass(t)&&this.panelEl.addClass(t):this.panelContainer.addClass(t)},c.prototype.removeClass=function(t,e){if(this._$log.warn('mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef.'),!this.panelContainer)throw new Error('mdPanel: Panel does not exist yet. Call open() or attach().');!e&&this.panelContainer.hasClass(t)?this.panelContainer.removeClass(t):e&&this.panelEl.hasClass(t)&&this.panelEl.removeClass(t)},c.prototype.toggleClass=function(t,e){if(this._$log.warn('mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef.'),!this.panelContainer)throw new Error('mdPanel: Panel does not exist yet. Call open() or attach().');e?this.panelEl.toggleClass(t):this.panelContainer.toggleClass(t)},c.prototype._compile=function(){var t=this;return t._$mdCompiler.compile(t.config).then(function(n){var r=t.config;if(r.contentElement){var i=n.element;t._restoreCache.styles=i[0].style.cssText,t._restoreCache.classes=i[0].className,t.panelContainer=t._$mdPanel._wrapContentElement(i),t.panelEl=i}else t.panelContainer=n.link(r.scope),t.panelEl=e.element(t.panelContainer[0].querySelector('.md-panel'));return t._compilerCleanup=n.cleanup,d(t.config.attachTo).append(t.panelContainer),t})},c.prototype._createPanel=function(){var t=this;return this._$q(function(e,n){t.config.locals||(t.config.locals={}),t.config.locals.mdPanelRef=t,t._compile().then(function(){t.config.disableParentScroll&&(t._restoreScroll=t._$mdUtil.disableScrollAround(null,t.panelContainer,{disableScrollMask:!0})),t.config.panelClass&&t.panelEl.addClass(t.config.panelClass),t.config.propagateContainerEvents&&t.panelContainer.css('pointer-events','none'),t._$animate.pin&&t._$animate.pin(t.panelContainer,d(t.config.attachTo)),t._configureTrapFocus(),t._addStyles().then(function(){e(t)},n)},n)})},c.prototype._addStyles=function(){var t=this;return this._$q(function(e){t.panelContainer.css('z-index',t.config.zIndex),t.panelEl.css('z-index',t.config.zIndex+1);var n=function(){t._setTheming(),t.panelEl.removeClass('_md-panel-offscreen'),t.panelContainer.addClass('_md-panel-hidden'),e(t)};return t.config.fullscreen?(t.panelEl.addClass('_md-panel-fullscreen'),void n()):t.config.position?void t._$rootScope.$$postDigest(function(){t._updatePosition(!0),t._setTheming(),e(t)}):void n()})},c.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},c.prototype.updatePosition=function(t){if(!this.panelContainer)throw new Error('mdPanel: Panel does not exist yet. Call open() or attach().');this.config.position=t,this._updatePosition()},c.prototype._updatePosition=function(t){var e=this.config.position;e&&(e._setPanelPosition(this.panelEl),t&&(this.panelEl.removeClass('_md-panel-offscreen'),this.panelContainer.addClass('_md-panel-hidden')),this.panelEl.css(u.absPosition.TOP,e.getTop()),this.panelEl.css(u.absPosition.BOTTOM,e.getBottom()),this.panelEl.css(u.absPosition.LEFT,e.getLeft()),this.panelEl.css(u.absPosition.RIGHT,e.getRight()))},c.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var t=this;this._$rootScope.$$postDigest(function(){(t._$mdUtil.findFocusTarget(t.panelEl)||t.panelEl).focus()})}},c.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var t=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:'_md-opaque-enter',close:'_md-opaque-leave'});this.config.animation&&t.duration(this.config.animation._rawDuration);var e={animation:t,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:'_md-panel-backdrop',zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(e)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},c.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},c.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(t){t()}),this._removeListeners=[]},c.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var t=d(this.config.attachTo),e=this,n=function(t){t.keyCode===e._$mdConstant.KEY_CODE.ESCAPE&&(t.stopPropagation(),t.preventDefault(),e.close(c.closeReasons.ESCAPE))};this.panelContainer.on('keydown',n),t.on('keydown',n),this._removeListeners.push(function(){e.panelContainer.off('keydown',n),t.off('keydown',n)})}},c.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var t,n=this.config.propagateContainerEvents?e.element(document.body):this.panelContainer,r=function(e){t=e.target},i=this,o=function(e){i.config.propagateContainerEvents?t===i.panelEl[0]||i.panelEl[0].contains(t)||i.close():t===n[0]&&e.target===n[0]&&(e.stopPropagation(),e.preventDefault(),i.close(c.closeReasons.CLICK_OUTSIDE))};n.on('mousedown',r),n.on('mouseup',o),this._removeListeners.push(function(){n.off('mousedown',r),n.off('mouseup',o)})}},c.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var t=e.bind(this,this._updatePosition),n=this._$$rAF.throttle(t),r=this,i=function(){n()};this._$window.addEventListener('scroll',i,!0),this._removeListeners.push(function(){r._$window.removeEventListener('scroll',i,!0)})}},c.prototype._configureTrapFocus=function(){if(this.panelEl.attr('tabIndex','-1'),this.config.trapFocus){var t=this.panelEl;this._topFocusTrap=p.clone()[0],this._bottomFocusTrap=p.clone()[0];var e=function(){t.focus()};this._topFocusTrap.addEventListener('focus',e),this._bottomFocusTrap.addEventListener('focus',e),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener('focus',e),this._bottomFocusTrap.removeEventListener('focus',e)},this)),t[0].parentNode.insertBefore(this._topFocusTrap,t[0]),t.after(this._bottomFocusTrap)}},c.prototype.updateAnimation=function(t){this.config.animation=t,this._backdropRef&&this._backdropRef.config.animation.duration(t._rawDuration)},c.prototype._animateOpen=function(){this.panelContainer.addClass('md-panel-is-showing');var t=this.config.animation;if(!t)return this.panelContainer.addClass('_md-panel-shown'),this._$q.when(this);var e=this;return this._$q(function(n){var r=e._done(n,e),i=function(){e._$log.warn('mdPanel: MdPanel Animations failed. Showing panel without animating.'),r()};t.animateOpen(e.panelEl).then(r,i)})},c.prototype._animateClose=function(){var t=this.config.animation;if(!t)return this.panelContainer.removeClass('md-panel-is-showing'),this.panelContainer.removeClass('_md-panel-shown'),this._$q.when(this);var e=this;return this._$q(function(n){var r=function(){e.panelContainer.removeClass('md-panel-is-showing'),n(e)},i=function(){e._$log.warn('mdPanel: MdPanel Animations failed. Hiding panel without animating.'),r()};t.animateClose(e.panelEl).then(r,i)})},c.prototype.registerInterceptor=function(t,n){var r=null;if(e.isString(t)?e.isFunction(n)||(r='Interceptor callback must be a function, instead got '+typeof n):r='Interceptor type must be a string, instead got '+typeof t,r)throw new Error('MdPanel: '+r);var i=this._interceptors[t]=this._interceptors[t]||[];return-1===i.indexOf(n)&&i.push(n),this},c.prototype.removeInterceptor=function(t,e){var n=this._interceptors[t]?this._interceptors[t].indexOf(e):-1;return n>-1&&this._interceptors[t].splice(n,1),this},c.prototype.removeAllInterceptors=function(t){return t?this._interceptors[t]=[]:this._interceptors=Object.create(null),this},c.prototype._callInterceptors=function(t){var n=this,r=n._$q;return(n._interceptors&&n._interceptors[t]||[]).reduceRight(function(t,i){var o=i&&e.isFunction(i.then),a=o?i:null;return t.then(function(){if(!a)try{a=i(n)}catch(t){a=r.reject(t)}return a})},r.resolve(n))},c.prototype._simpleBind=function(t,e){return function(n){return t.apply(e,n)}},c.prototype._done=function(t,e){return function(){t(e)}},c.prototype.addToGroup=function(t){this._$mdPanel._groups[t]||this._$mdPanel.newPanelGroup(t);var e=this._$mdPanel._groups[t];e.panels.indexOf(this)<0&&e.panels.push(this)},c.prototype.removeFromGroup=function(t){if(!this._$mdPanel._groups[t])throw new Error('mdPanel: The group '+t+' does not exist.');var e=this._$mdPanel._groups[t],n=e.panels.indexOf(this);n>-1&&e.panels.splice(n,1)},c.closeReasons={CLICK_OUTSIDE:'clickOutsideToClose',ESCAPE:'escapeToClose'},u.xPosition={CENTER:'center',ALIGN_START:'align-start',ALIGN_END:'align-end',OFFSET_START:'offset-start',OFFSET_END:'offset-end'},u.yPosition={CENTER:'center',ALIGN_TOPS:'align-tops',ALIGN_BOTTOMS:'align-bottoms',ABOVE:'above',BELOW:'below'},u.absPosition={TOP:'top',RIGHT:'right',BOTTOM:'bottom',LEFT:'left'},u.viewportMargin=8,u.prototype.absolute=function(){return this._absolute=!0,this},u.prototype._setPosition=function(t,n){if(t===u.absPosition.RIGHT||t===u.absPosition.LEFT)this._left=this._right='';else{if(t!==u.absPosition.BOTTOM&&t!==u.absPosition.TOP){var r=Object.keys(u.absPosition).join().toLowerCase();throw new Error('mdPanel: Position must be one of '+r+'.')}this._top=this._bottom=''}return this['_'+t]=e.isString(n)?n:'0',this},u.prototype.top=function(t){return this._setPosition(u.absPosition.TOP,t)},u.prototype.bottom=function(t){return this._setPosition(u.absPosition.BOTTOM,t)},u.prototype.start=function(t){var e=this._isRTL?u.absPosition.RIGHT:u.absPosition.LEFT;return this._setPosition(e,t)},u.prototype.end=function(t){var e=this._isRTL?u.absPosition.LEFT:u.absPosition.RIGHT;return this._setPosition(e,t)},u.prototype.left=function(t){return this._setPosition(u.absPosition.LEFT,t)},u.prototype.right=function(t){return this._setPosition(u.absPosition.RIGHT,t)},u.prototype.centerHorizontally=function(){return this._left='50%',this._right='',this._translateX=['-50%'],this},u.prototype.centerVertically=function(){return this._top='50%',this._bottom='',this._translateY=['-50%'],this},u.prototype.center=function(){return this.centerHorizontally().centerVertically()},u.prototype.relativeTo=function(t){return this._absolute=!1,this._relativeToEl=d(t),this},u.prototype.addPanelPosition=function(t,e){if(!this._relativeToEl)throw new Error('mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.');return this._validateXPosition(t),this._validateYPosition(e),this._positions.push({x:t,y:e}),this},u.prototype._validateYPosition=function(t){if(null!=t){for(var e,n=Object.keys(u.yPosition),r=[],i=0;e=n[i];i++){var o=u.yPosition[e];if(r.push(o),o===t)return}throw new Error('mdPanel: Panel y position only accepts the following values:\n'+r.join(' | '))}},u.prototype._validateXPosition=function(t){if(null!=t){for(var e,n=Object.keys(u.xPosition),r=[],i=0;e=n[i];i++){var o=u.xPosition[e];if(r.push(o),o===t)return}throw new Error('mdPanel: Panel x Position only accepts the following values:\n'+r.join(' | '))}},u.prototype.withOffsetX=function(t){return this._translateX.push(t),this},u.prototype.withOffsetY=function(t){return this._translateY.push(t),this},u.prototype.getTop=function(){return this._top},u.prototype.getBottom=function(){return this._bottom},u.prototype.getLeft=function(){return this._left},u.prototype.getRight=function(){return this._right},u.prototype.getTransform=function(){return(this._reduceTranslateValues('translateX',this._translateX)+' '+this._reduceTranslateValues('translateY',this._translateY)).trim()},u.prototype._setTransform=function(t){return t.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},u.prototype._isOnscreen=function(t){var e=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var r=this._$mdConstant.CSS.TRANSFORM,i=f(t,r);e+=i.x,n+=i.y}var o=e+t[0].offsetWidth,a=n+t[0].offsetHeight;return e>=0&&n>=0&&a<=this._$window.innerHeight&&o<=this._$window.innerWidth},u.prototype.getActualPosition=function(){return this._actualPosition},u.prototype._reduceTranslateValues=function(t,n){return n.map(function(n){var r=e.isFunction(n)?n(this):n;return t+'('+r+')'},this).join(' ')},u.prototype._setPanelPosition=function(t){if(t.removeClass('_md-panel-position-adjusted'),this._absolute)return void this._setTransform(t);if(this._actualPosition)return this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),void this._constrainToViewport(t);for(var e=0;e<this._positions.length;e++)if(this._actualPosition=this._positions[e],this._calculatePanelPosition(t,this._actualPosition),this._setTransform(t),this._isOnscreen(t))return;this._constrainToViewport(t)},u.prototype._constrainToViewport=function(t){var e=u.viewportMargin,n=this._top,r=this._left;if(this.getTop()){var i=parseInt(this.getTop()),o=t[0].offsetHeight+i,a=this._$window.innerHeight;i<e?this._top=e+'px':o>a&&(this._top=i-(o-a+e)+'px')}if(this.getLeft()){var s=parseInt(this.getLeft()),c=t[0].offsetWidth+s,l=this._$window.innerWidth;s<e?this._left=e+'px':c>l&&(this._left=s-(c-l+e)+'px')}t.toggleClass('_md-panel-position-adjusted',this._top!==n||this._left!==r)},u.prototype._reverseXPosition=function(t){if(t!==u.xPosition.CENTER){return t.indexOf('start')>-1?t.replace('start','end'):t.replace('end','start')}},u.prototype._bidi=function(t){return this._isRTL?this._reverseXPosition(t):t},u.prototype._calculatePanelPosition=function(t,e){var n=t[0].getBoundingClientRect(),r=n.width,i=n.height,o=this._relativeToEl[0].getBoundingClientRect(),a=o.left,s=o.right,c=o.width;switch(this._bidi(e.x)){case u.xPosition.OFFSET_START:this._left=a-r+'px';break;case u.xPosition.ALIGN_END:this._left=s-r+'px';break;case u.xPosition.CENTER:var l=a+.5*c-.5*r;this._left=l+'px';break;case u.xPosition.ALIGN_START:this._left=a+'px';break;case u.xPosition.OFFSET_END:this._left=s+'px'}var d=o.top,f=o.bottom,m=o.height;switch(e.y){case u.yPosition.ABOVE:this._top=d-i+'px';break;case u.yPosition.ALIGN_BOTTOMS:this._top=f-i+'px';break;case u.yPosition.CENTER:var p=d+.5*m-.5*i;this._top=p+'px';break;case u.yPosition.ALIGN_TOPS:this._top=d+'px';break;case u.yPosition.BELOW:this._top=f+'px'}},l.animation={SLIDE:'md-panel-animate-slide',SCALE:'md-panel-animate-scale',FADE:'md-panel-animate-fade'},l.prototype.openFrom=function(t){return t=t.target?t.target:t,this._openFrom=this._getPanelAnimationTarget(t),this._closeTo||(this._closeTo=this._openFrom),this},l.prototype.closeTo=function(t){return this._closeTo=this._getPanelAnimationTarget(t),this},l.prototype.duration=function(t){function n(t){if(e.isNumber(t))return t/1e3}return t&&(e.isNumber(t)?this._openDuration=this._closeDuration=n(t):e.isObject(t)&&(this._openDuration=n(t.open),this._closeDuration=n(t.close))),this._rawDuration=t,this},l.prototype._getPanelAnimationTarget=function(t){return e.isDefined(t.top)||e.isDefined(t.left)?{element:n,bounds:{top:t.top||0,left:t.left||0}}:this._getBoundingClientRect(d(t))},l.prototype.withAnimation=function(t){return this._animationClass=t,this},l.prototype.animateOpen=function(t){var n=this._$mdUtil.dom.animator;this._fixBounds(t);var r={},i=t[0].style.transform||'',o=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case l.animation.SLIDE:t.css('opacity','1'),r={transitionInClass:'_md-panel-animate-enter'};var s=n.calculateSlideToOrigin(t,this._openFrom)||'';o=n.toTransformCss(s+' '+i);break;case l.animation.SCALE:r={transitionInClass:'_md-panel-animate-enter'};var c=n.calculateZoomToOrigin(t,this._openFrom)||'';o=n.toTransformCss(c+' '+i);break;case l.animation.FADE:r={transitionInClass:'_md-panel-animate-enter'};break;default:r=e.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return r.duration=this._openDuration,n.translate3d(t,o,a,r)},l.prototype.animateClose=function(t){var n=this._$mdUtil.dom.animator,r={},i=t[0].style.transform||'',o=n.toTransformCss(i),a=n.toTransformCss(i);switch(this._animationClass){case l.animation.SLIDE:t.css('opacity','1'),r={transitionInClass:'_md-panel-animate-leave'};var s=n.calculateSlideToOrigin(t,this._closeTo)||'';a=n.toTransformCss(s+' '+i);break;case l.animation.SCALE:r={transitionInClass:'_md-panel-animate-scale-out _md-panel-animate-leave'};var c=n.calculateZoomToOrigin(t,this._closeTo)||'';a=n.toTransformCss(c+' '+i);break;case l.animation.FADE:r={transitionInClass:'_md-panel-animate-fade-out _md-panel-animate-leave'};break;default:r=e.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return r.duration=this._closeDuration,n.translate3d(t,o,a,r)},l.prototype._fixBounds=function(t){var e=t[0].offsetWidth,n=t[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=e),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=e)},l.prototype._getBoundingClientRect=function(t){if(t instanceof e.element)return{element:t,bounds:t[0].getBoundingClientRect()}}}(),function(){function t(t,n,r){function i(t,e,n){return t.attr('aria-valuemin',0),t.attr('aria-valuemax',100),t.attr('role','progressbar'),o}function o(r,i,o){function f(){var t=(o.mdMode||'').trim();if(t)switch(t){case s:case c:case u:case l:break;default:t=c}return t}function m(t,r){if(!h&&f()){var i=n.supplant('translateX({0}%) scale({1},1)',[(r-100)/2,r/100]),o=v({transform:i});e.element(t).css(o)}}t(i);var p,h=o.hasOwnProperty('disabled'),v=n.dom.animator.toCss,g=e.element(i[0].querySelector('.md-bar1')),$=e.element(i[0].querySelector('.md-bar2')),b=e.element(i[0].querySelector('.md-container'));i.attr('md-mode',f()).toggleClass(d,h),function(){if(e.isUndefined(o.mdMode)){var t=e.isDefined(o.value),n=t?s:c;i.attr('md-mode',n),o.mdMode=n}}(),function(){o.$observe('value',function(t){var e=a(t);i.attr('aria-valuenow',e),f()!=l&&m($,e)}),o.$observe('mdBufferValue',function(t){m(g,a(t))}),o.$observe('disabled',function(t){h=!0===t||!1===t?!!t:e.isDefined(t),i.toggleClass(d,h),b.toggleClass(p,!h)}),o.$observe('mdMode',function(t){switch(p&&b.removeClass(p),t){case l:case u:case s:case c:b.addClass(p='md-mode-'+t);break;default:b.addClass(p='md-mode-'+c)}})}()}function a(t){return Math.max(0,Math.min(t||0,100))}var s='determinate',c='indeterminate',u='buffer',l='query',d='_md-progress-linear-disabled';return{restrict:'E',template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:i}}t.$inject=['$mdTheming','$mdUtil','$log'],e.module('material.components.progressLinear',['material.core']).directive('mdProgressLinear',t)}(),function(){function t(t,n,r,i){function o(o,a,s,c){function u(){a.hasClass('md-focused')||a.addClass('md-focused')}function l(r){var i=r.which||r.keyCode;if(i==n.KEY_CODE.ENTER||r.currentTarget==r.target)switch(i){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:r.preventDefault(),d.selectPrevious(),u();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:r.preventDefault(),d.selectNext(),u();break;case n.KEY_CODE.ENTER:var o=e.element(t.getClosest(a[0],'form'));o.length>0&&o.triggerHandler('submit')}}a.addClass('_md'),r(a);var d=c[0],f=c[1]||t.fakeNgModel();d.init(f),o.mouseActive=!1,a.attr({role:'radiogroup',tabIndex:a.attr('tabindex')||'0'}).on('keydown',l).on('mousedown',function(t){o.mouseActive=!0,i(function(){o.mouseActive=!1},100)}).on('focus',function(){!1===o.mouseActive&&d.$element.addClass('md-focused')}).on('blur',function(){d.$element.removeClass('md-focused')})}function a(t){this._radioButtonRenderFns=[],this.$element=t}function s(n,r){var i=t.iterator(n[0].querySelectorAll('md-radio-button'),!0);if(i.count()){var o=function(t){return!e.element(t).attr('disabled')},a=n[0].querySelector('md-radio-button.md-checked'),s=i[r<0?'previous':'next'](a,o)||i.first();e.element(s).triggerHandler('click')}}return a.prototype=function(){return{init:function(t){this._ngModelCtrl=t,this._ngModelCtrl.$render=e.bind(this,this.render)},add:function(t){this._radioButtonRenderFns.push(t)},remove:function(t){var e=this._radioButtonRenderFns.indexOf(t);-1!==e&&this._radioButtonRenderFns.splice(e,1)},render:function(){this._radioButtonRenderFns.forEach(function(t){t()})},setViewValue:function(t,e){this._ngModelCtrl.$setViewValue(t,e),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return s(this.$element,1)},selectPrevious:function(){return s(this.$element,-1)},setActiveDescendant:function(t){this.$element.attr('aria-activedescendant',t)},isDisabled:function(){return this.$element[0].hasAttribute('disabled')}}}(),{restrict:'E',controller:['$element',a],require:['mdRadioGroup','?ngModel'],link:{pre:o}}}function n(t,e,n){function r(r,o,a,s){function c(){if(!s)throw'RadioButton: No RadioGroupController could be found.';s.add(l),a.$observe('value',l),o.on('click',u).on('$destroy',function(){s.remove(l)})}function u(t){o[0].hasAttribute('disabled')||s.isDisabled()||r.$apply(function(){s.setViewValue(a.value,t&&t.type)})}function l(){var t=s.getViewValue()==a.value;t!==d&&('md-radio-group'!==o[0].parentNode.nodeName.toLowerCase()&&o.parent().toggleClass(i,t),t&&s.setActiveDescendant(o.attr('id')),d=t,o.attr('aria-checked',t).toggleClass(i,t))}var d;n(o),function(n,r){n.attr({id:a.id||'radio_'+e.nextUid(),role:'radio','aria-checked':'false'}),t.expectWithText(n,'aria-label')}(o),a.ngValue?e.nextTick(c,!1):c()}var i='md-checked';return{restrict:'E',require:'^mdRadioGroup',transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:r}}t.$inject=['$mdUtil','$mdConstant','$mdTheming','$timeout'],n.$inject=['$mdAria','$mdUtil','$mdTheming'],e.module('material.components.radioButton',['material.core']).directive('mdRadioGroup',t).directive('mdRadioButton',n)}(),function(){function t(t,e){return['$mdUtil','$window',function(n,r){return{restrict:'A',multiElement:!0,link:function(i,o,a){var s=i.$on('$md-resize-enable',function(){s();var c=o[0],u=c.nodeType===r.Node.ELEMENT_NODE?r.getComputedStyle(c):{};i.$watch(a[t],function(t){if(!!t===e){n.nextTick(function(){i.$broadcast('$md-resize')});var r={cachedTransitionStyles:u};n.dom.animator.waitTransitionEnd(o,r).then(function(){i.$broadcast('$md-resize')})}})})}}}]}e.module('material.components.showHide',['material.core']).directive('ngShow',t('ngShow',!0)).directive('ngHide',t('ngHide',!1))}(),function(){function t(t,r,i,o){function a(t,n){var o=function(){return!1},a=function(){return i.when(r.supplant(u,[n||'']))};return e.extend({isLockedOpen:o,isOpen:o,toggle:a,open:a,close:a,onClose:e.noop,then:function(t){return c(n).then(t||e.noop)}},t)}function s(e,i){var a=t.get(e);return a||i?a:(o.error(r.supplant(u,[e||''])),n)}function c(e){return t.when(e).catch(o.error)}var u='SideNav \'{0}\' is not available! Did you use md-component-id=\'{0}\'?',l={find:s,waitFor:c};return function(t,n){if(e.isUndefined(t))return l;var r=!0===n,i=l.find(t,r);return!i&&r?l.waitFor(t):!i&&e.isUndefined(n)?a(l,t):i}}function r(){return{restrict:'A',require:'^mdSidenav',link:function(t,e,n,r){}}}function i(t,r,i,o,a,s,c,u,l,d,f,m,p){function h(c,h,v,g){function $(t,e){c.isLockedOpen=t,t===e?h.toggleClass('md-locked-open',!!t):s[t?'addClass':'removeClass'](h,'md-locked-open'),M&&M.toggleClass('md-locked-open',!!t)}function b(t){var e=r.findFocusTarget(h)||r.findFocusTarget(h,'[md-sidenav-focus]')||h,n=h.parent();n[t?'on':'off']('keydown',C),M&&M[t?'on':'off']('click',_);var i=y(n,t);return t&&(S=f[0].activeElement,A=a.getLastInteractionType()),E(t),O=d.all([t&&M?s.enter(M,n):M?s.leave(M):d.when(!0),s[t?'removeClass':'addClass'](h,'md-closed')]).then(function(){c.isOpen&&(p(function(){I.triggerHandler('resize')}),e&&e.focus()),i&&i()})}function y(t,e){var n=h[0],r=t[0].scrollTop;if(e&&r){T={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:r+'px',bottom:'auto',height:t[0].clientHeight+'px'};h.css(i),M.css(i)}if(!e&&T)return function(){n.style.top=T.top,n.style.bottom=T.bottom,n.style.height=T.height,M[0].style.top=null,M[0].style.bottom=null,M[0].style.height=null,T=null}}function E(t){t&&!x?(x=k.css('overflow'),k.css('overflow','hidden')):e.isDefined(x)&&(k.css('overflow',x),x=n)}function w(t){return c.isOpen==t?d.when(!0):(c.isOpen&&g.onCloseCb&&g.onCloseCb(),d(function(e){c.isOpen=t,r.nextTick(function(){O.then(function(t){!c.isOpen&&S&&'keyboard'===A&&(S.focus(),S=null),e(t)})})}))}function C(t){return t.keyCode===i.KEY_CODE.ESCAPE?_(t):d.when(!0)}function _(t){return t.preventDefault(),g.close()}var x,M,A,T,k=null,S=null,O=d.when(!0),N=u(v.mdIsLockedOpen),I=e.element(m),D=function(){return N(c.$parent,{$media:function(e){return l.warn('$media is deprecated for is-locked-open. Use $mdMedia instead.'),t(e)},$mdMedia:t})};v.mdDisableScrollTarget&&(k=f[0].querySelector(v.mdDisableScrollTarget),k?k=e.element(k):l.warn(r.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:v.mdDisableScrollTarget}))),k||(k=h.parent()),v.hasOwnProperty('mdDisableBackdrop')||(M=r.createBackdrop(c,'md-sidenav-backdrop md-opaque ng-enter')),h.addClass('_md'),o(h),M&&o.inherit(M,h),h.on('$destroy',function(){M&&M.remove(),g.destroy()}),c.$on('$destroy',function(){M&&M.remove()}),c.$watch(D,$),c.$watch('isOpen',b),g.$toggleOpen=w}return{restrict:'E',scope:{isOpen:'=?mdIsOpen'},controller:'$mdSidenavController',compile:function(t){return t.addClass('md-closed').attr('tabIndex','-1'),h}}}function o(t,e,n,r,i){var o=this;o.isOpen=function(){return!!t.isOpen},o.isLockedOpen=function(){return!!t.isLockedOpen},o.onClose=function(t){return o.onCloseCb=t,o},o.open=function(){return o.$toggleOpen(!0)},o.close=function(){return o.$toggleOpen(!1)},o.toggle=function(){return o.$toggleOpen(!t.isOpen)},o.$toggleOpen=function(e){return r.when(t.isOpen=e)};var a=e.mdComponentId,s=a&&a.indexOf(i.startSymbol())>-1,c=s?i(a)(t.$parent):a;o.destroy=n.register(o,c),s&&e.$observe('mdComponentId',function(t){t&&t!==o.$$mdHandle&&(o.destroy(),o.destroy=n.register(o,t))})}t.$inject=['$mdComponentRegistry','$mdUtil','$q','$log'],i.$inject=['$mdMedia','$mdUtil','$mdConstant','$mdTheming','$mdInteraction','$animate','$compile','$parse','$log','$q','$document','$window','$$rAF'],o.$inject=['$scope','$attrs','$mdComponentRegistry','$q','$interpolate'],e.module('material.components.sidenav',['material.core','material.components.backdrop']).factory('$mdSidenav',t).directive('mdSidenav',i).directive('mdSidenavFocus',r).controller('$mdSidenavController',o)}(),function(){function r(t,r,i,o,a,s,c,l){function d(l,d){var f=e.element('<md-select-value><span></span></md-select-value>');if(f.append('<span class="md-select-icon" aria-hidden="true"></span>'),f.addClass('md-select-value'),f[0].hasAttribute('id')||f.attr('id','select_value_label_'+r.nextUid()),l.find('md-content').length||l.append(e.element('<md-content>').append(l.contents())),d.mdOnOpen&&(l.find('md-content').prepend(e.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),l.find('md-option').attr('ng-show','$$loadingAsyncDone')),d.name){var m=e.element('<select class="md-visually-hidden">');m.attr({name:d.name,'aria-hidden':'true',tabindex:'-1'});var p=l.find('md-option');e.forEach(p,function(t){var n=e.element('<option>'+t.innerHTML+'</option>');t.hasAttribute('ng-value')?n.attr('ng-value',t.getAttribute('ng-value')):t.hasAttribute('value')&&n.attr('value',t.getAttribute('value')),m.append(n)}),m.append('<option ng-value="'+d.ngModel+'" selected></option>'),l.parent().append(m)}var h=r.parseAttributeBoolean(d.multiple),v=h?'multiple':'',g='<div class="md-select-menu-container" aria-hidden="true"><md-select-menu {0}>{1}</md-select-menu></div>';return g=r.supplant(g,[v,l.html()]),l.empty().append(f),l.append(g),d.tabindex||d.$set('tabindex',0),function(l,d,f,m){function p(){var t=d.attr('aria-label')||d.attr('placeholder');!t&&_&&_.label&&(t=_.label.text()),w=t,a.expect(d,'aria-label',t)}function v(){N&&(D=D||N.find('md-select-menu').controller('mdSelectMenu'),x.setLabelText(D.selectedLabels()))}function g(){if(w){var t=D.selectedLabels({mode:'aria'});d.attr('aria-label',t.length?w+': '+t:w)}}function $(){_&&_.setHasValue(D.selectedLabels().length>0||(d[0].validity||{}).badInput)}function b(t){if(i.isNavigationKey(t))t.preventDefault(),y();else if(u(t,i)){t.preventDefault();var n=D.optNodeForKeyboardSearch(t);if(!n||n.hasAttribute('disabled'))return;var r=e.element(n).controller('mdOption');D.isMultiple||D.deselect(Object.keys(D.selected)[0]),D.select(r.hashKey,r.value),D.refreshViewValue()}}function y(){I._mdSelectIsOpen=!0,d.attr('aria-expanded','true'),t.show({scope:I,preserveScope:!0,skipCompile:!0,element:N,target:d[0],selectCtrl:x,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!f.mdOnOpen&&(l.$eval(f.mdOnOpen)||!0)}).finally(function(){I._mdSelectIsOpen=!1,d.focus(),d.attr('aria-expanded','false'),M.$setTouched()})}var E,w,C=!0,_=m[0],x=m[1],M=m[2],A=m[3],T=d.find('md-select-value'),k=e.isDefined(f.readonly),S=r.parseAttributeBoolean(f.mdNoAsterisk);if(S&&d.addClass('md-no-asterisk'),_){var O=_.isErrorGetter||function(){return M.$invalid&&(M.$touched||A&&A.$submitted)};if(_.input&&d.find('md-select-header').find('input')[0]!==_.input[0])throw new Error('<md-input-container> can only have *one* child <input>, <textarea> or <select> element!');_.input=d,_.label||a.expect(d,'aria-label',d.attr('placeholder')),l.$watch(O,_.setInvalid)}var N,I,D;!function(){if(N=e.element(d[0].querySelector('.md-select-menu-container')),I=l,f.mdContainerClass){var t=N[0].getAttribute('class')+' '+f.mdContainerClass;N[0].setAttribute('class',t)}D=N.find('md-select-menu').controller('mdSelectMenu'),D.init(M,f.ngModel),d.on('$destroy',function(){N.remove()})}(),o(d),A&&e.isDefined(f.multiple)&&r.nextTick(function(){(M.$modelValue||M.$viewValue)&&A.$setPristine()});var P=M.$render;M.$render=function(){P(),v(),g(),$()},f.$observe('placeholder',M.$render),_&&_.label&&f.$observe('required',function(t){_.label.toggleClass('md-required',t&&!S)}),x.setLabelText=function(t){x.setIsPlaceholder(!t);var e=!1;if(f.mdSelectedText&&f.mdSelectedHtml)throw Error('md-select cannot have both `md-selected-text` and `md-selected-html`');if(f.mdSelectedText||f.mdSelectedHtml)t=s(f.mdSelectedText||f.mdSelectedHtml)(l),e=!0;else if(!t){var n=f.placeholder||(_&&_.label?_.label.text():'');t=n||'',e=!0}var r=T.children().eq(0);f.mdSelectedHtml?r.html(c.getTrustedHtml(t)):e?r.text(t):r.html(t)},x.setIsPlaceholder=function(t){t?(T.addClass('md-select-placeholder'),_&&_.label&&_.label.addClass('md-placeholder')):(T.removeClass('md-select-placeholder'),_&&_.label&&_.label.removeClass('md-placeholder'))},k||(d.on('focus',function(t){_&&_.setFocused(!0)}),d.on('blur',function(t){C&&(C=!1,I._mdSelectIsOpen&&t.stopImmediatePropagation()),I._mdSelectIsOpen||(_&&_.setFocused(!1),$())})),x.triggerClose=function(){s(f.mdOnClose)(l)},l.$$postDigest(function(){p(),v(),g()}),l.$watch(function(){return D.selectedLabels()},v);var R;f.$observe('ngMultiple',function(t){R&&R();var e=s(t);R=l.$watch(function(){return e(l)},function(t,e){t===n&&e===n||(t?d.attr('multiple','multiple'):d.removeAttr('multiple'),d.attr('aria-multiselectable',t?'true':'false'),N&&(D.setMultiple(t),P=M.$render,M.$render=function(){P(),v(),g(),$()},M.$render()))})}),f.$observe('disabled',function(t){e.isString(t)&&(t=!0),E!==n&&E===t||(E=t,t?d.attr({'aria-disabled':'true'}).removeAttr('tabindex').off('click',y).off('keydown',b):d.attr({tabindex:f.tabindex,'aria-disabled':'false'}).on('click',y).on('keydown',b))}),f.hasOwnProperty('disabled')||f.hasOwnProperty('ngDisabled')||(d.attr({'aria-disabled':'false'}),d.on('click',y),d.on('keydown',b));var H={role:'listbox','aria-expanded':'false','aria-multiselectable':h&&!f.ngMultiple?'true':'false'};d[0].hasAttribute('id')||(H.id='select_'+r.nextUid());var j='select_container_'+r.nextUid();N.attr('id',j),H['aria-owns']=j,d.attr(H),l.$on('$destroy',function(){t.destroy().finally(function(){_&&(_.setFocused(!1),_.setHasValue(!1),_.input=null),M.$setTouched()})})}}var f=i.KEY_CODE;f.SPACE,f.ENTER,f.UP_ARROW,f.DOWN_ARROW;return{restrict:'E',require:['^?mdInputContainer','mdSelect','ngModel','?^form'],compile:d,controller:function(){}}}function i(t,r,i,o){function a(t,n,i,a){function s(t){13!=t.keyCode&&32!=t.keyCode||c(t)}function c(n){var i=r.getClosest(n.target,'md-option'),o=i&&e.element(i).data('$mdOptionController');if(i&&o){if(i.hasAttribute('disabled'))return n.stopImmediatePropagation(),!1;var a=u.hashGetter(o.value),s=e.isDefined(u.selected[a]);t.$apply(function(){u.isMultiple?s?u.deselect(a):u.select(a,o.value):s||(u.deselect(Object.keys(u.selected)[0]),u.select(a,o.value)),u.refreshViewValue()})}}var u=a[0];n.addClass('_md'),o(n),n.on('click',c),n.on('keypress',s)}function s(o,a,s){function c(){var t=l.ngModel.$modelValue||l.ngModel.$viewValue||[];if(e.isArray(t)){var n=Object.keys(l.selected),r=t.map(l.hashGetter);n.filter(function(t){return-1===r.indexOf(t)}).forEach(l.deselect),r.forEach(function(e,n){l.select(e,t[n])})}}function u(){var t=l.ngModel.$viewValue||l.ngModel.$modelValue;Object.keys(l.selected).forEach(l.deselect),l.select(l.hashGetter(t),t)}var l=this;l.isMultiple=e.isDefined(a.multiple),l.selected={},l.options={},o.$watchCollection(function(){return l.options},function(){l.ngModel.$render()});var f,m;l.setMultiple=function(t){function n(t,n){return e.isArray(t||n||[])}var r=l.ngModel;m=m||r.$isEmpty,l.isMultiple=t,f&&f(),l.isMultiple?(r.$validators['md-multiple']=n,r.$render=c,o.$watchCollection(l.modelBinding,function(t){n(t)&&c(),l.ngModel.$setPristine()}),r.$isEmpty=function(t){return!t||0===t.length}):(delete r.$validators['md-multiple'],r.$render=u)};var p,h,v,g='';l.optNodeForKeyboardSearch=function(t){p&&clearTimeout(p),p=setTimeout(function(){p=n,g='',v=n,h=n},300);var r=t.keyCode-(i.isNumPadKey(t)?48:0);g+=String.fromCharCode(r);var o=new RegExp('^'+g,'i');h||(h=s.find('md-option'),v=new Array(h.length),e.forEach(h,function(t,e){v[e]=t.textContent.trim()}));for(var a=0;a<v.length;++a)if(o.test(v[a]))return h[a]},l.init=function(n,i){l.ngModel=n,l.modelBinding=i,l.ngModel.$isEmpty=function(t){return!l.options[l.hashGetter(t)]};var a=r.getModelOption(n,'trackBy');if(a){var s={},c=t(a);l.hashGetter=function(t,e){return s.$value=t,c(e||o,s)}}else l.hashGetter=function(t){return e.isObject(t)?'object_'+(t.$$mdSelectId||(t.$$mdSelectId=++d)):t};l.setMultiple(l.isMultiple)},l.selectedLabels=function(t){t=t||{};var e=t.mode||'html',n=r.nodesToArray(s[0].querySelectorAll('md-option[selected]'));if(n.length){var i;return'html'==e?i=function(t){if(t.hasAttribute('md-option-empty'))return'';var e=t.innerHTML,n=t.querySelector('.md-ripple-container');n&&(e=e.replace(n.outerHTML,''));var r=t.querySelector('.md-container');return r&&(e=e.replace(r.outerHTML,'')),e}:'aria'==e&&(i=function(t){return t.hasAttribute('aria-label')?t.getAttribute('aria-label'):t.textContent}),r.uniq(n.map(i)).join(', ')}return''},l.select=function(t,e){var n=l.options[t];n&&n.setSelected(!0),l.selected[t]=e},l.deselect=function(t){var e=l.options[t];e&&e.setSelected(!1),delete l.selected[t]},l.addOption=function(t,n){if(e.isDefined(l.options[t]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');l.options[t]=n,e.isDefined(l.selected[t])&&(l.select(t,n.value),e.isDefined(l.ngModel.$modelValue)&&l.hashGetter(l.ngModel.$modelValue)===t&&l.ngModel.$validate(),l.refreshViewValue())},l.removeOption=function(t){delete l.options[t]},l.refreshViewValue=function(){var t,n=[];for(var i in l.selected)(t=l.options[i])?n.push(t.value):n.push(l.selected[i]);var o=r.getModelOption(l.ngModel,'trackBy'),a=l.isMultiple?n:n[0],s=l.ngModel.$modelValue;(o?e.equals(s,a):s+''===a)||(l.ngModel.$setViewValue(a),l.ngModel.$render())}}return s.$inject=['$scope','$attrs','$element'],{restrict:'E',require:['mdSelectMenu'],scope:!1,controller:s,link:{pre:a}}}function o(t,n,r){function i(t,n){return t.append(e.element('<div class="md-text">').append(t.contents())),t.attr('tabindex',n.tabindex||'0'),o(n)||t.attr('md-option-empty',''),a}function o(t){var e=t.value,n=t.ngValue;return e||n}function a(i,o,a,s){function c(t,e,n){if(!l.hashGetter)return void(n||i.$$postDigest(function(){c(t,e,!0)}));var r=l.hashGetter(e,i),o=l.hashGetter(t,i);u.hashKey=o,u.value=t,l.removeOption(r,u),l.addOption(o,u)}var u=s[0],l=s[1];r(o),l.isMultiple&&(o.addClass('md-checkbox-enabled'),o.prepend(f.clone())),e.isDefined(a.ngValue)?i.$watch(a.ngValue,c):e.isDefined(a.value)?c(a.value):i.$watch(function(){return o.text().trim()},c),a.$observe('disabled',function(t){t?o.attr('tabindex','-1'):o.attr('tabindex','0')}),i.$$postDigest(function(){a.$observe('selected',function(t){e.isDefined(t)&&('string'==typeof t&&(t=!0),t?(l.isMultiple||l.deselect(Object.keys(l.selected)[0]),l.select(u.hashKey,u.value)):l.deselect(u.hashKey),l.refreshViewValue())})}),t.attach(i,o),function(){var t={role:'option','aria-selected':'false'};o[0].hasAttribute('id')||(t.id='select_option_'+n.nextUid()),o.attr(t)}(),i.$on('$destroy',function(){l.removeOption(u.hashKey,u)})}function s(t){this.selected=!1,this.setSelected=function(e){e&&!this.selected?t.attr({selected:'selected','aria-selected':'true'}):!e&&this.selected&&(t.removeAttr('selected'),t.attr('aria-selected','false')),this.selected=e}}return s.$inject=['$element'],{restrict:'E',require:['mdOption','^^mdSelectMenu'],controller:s,compile:i}}function a(){function t(t,n){(function(){return t.parent().find('md-select-header').length})()||function(){var r=t.find('label');r.length||(r=e.element('<label>'),t.prepend(r)),r.addClass('md-container-ignore'),n.label&&r.text(n.label)}()}return{restrict:'E',compile:t}}function s(){return{restrict:'E'}}function c(r){function i(r,i,d,f,m,p,h,v,g){function $(t,e,n){function r(){e.removeClass('md-active'),e.attr('aria-hidden','true'),e[0].style.display='none',y(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}return n=n||{},n.cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?r():function(){return h(e,{addClass:'md-leave'}).start()}().then(r)}function b(t,o,a){function s(){return m(function(e){if(a.isRemoved)return m.reject(!1);var n=E(t,o,a);n.container.element.css(C.toCss(n.container.styles)),n.dropDown.element.css(C.toCss(n.dropDown.styles)),p(function(){o.addClass('md-active'),n.dropDown.element.css(C.toCss({transform:''})),c(a.focusedNode),e()})})}function c(t){t&&!t.hasAttribute('disabled')&&t.focus()}function l(){var n=function(t,e,n){return function(){if(!n.isRemoved){var r=E(t,e,n),i=r.container,o=r.dropDown;i.element.css(C.toCss(i.styles)),o.element.css(C.toCss(o.styles))}}}(t,o,a),r=e.element(f);return r.on('resize',n),r.on('orientationchange',n),function(){r.off('resize',n),r.off('orientationchange',n)}}function $(){function t(t){t.preventDefault(),t.stopPropagation(),a.restoreFocus=!1,d.nextTick(r.hide,!0)}function e(t){switch(t.preventDefault(),t.stopPropagation(),t.keyCode){case _.UP_ARROW:return l();case _.DOWN_ARROW:return c();case _.SPACE:case _.ENTER:var e=d.getClosest(t.target,'md-option');e&&(m.triggerHandler({type:'click',target:e}),t.preventDefault()),f(t);break;case _.TAB:case _.ESCAPE:t.stopPropagation(),t.preventDefault(),a.restoreFocus=!0,d.nextTick(r.hide,!0);break;default:if(u(t,i)){var n=m.controller('mdSelectMenu').optNodeForKeyboardSearch(t);a.focusedNode=n||a.focusedNode,n&&n.focus()}}}function s(t){var e,r=d.nodesToArray(a.optionNodes),i=r.indexOf(a.focusedNode);do{-1===i?i=0:'next'===t&&i<r.length-1?i++:'prev'===t&&i>0&&i--,e=r[i],e.hasAttribute('disabled')&&(e=n)}while(!e&&i<r.length-1&&i>0);e&&e.focus(),a.focusedNode=e}function c(){s('next')}function l(){s('prev')}function f(t){if(!(t&&'click'==t.type&&t.currentTarget!=m[0]||function(){var e=!1;if(t&&t.currentTarget.children.length>0){var n=t.currentTarget.children[0];if(n.scrollHeight>n.clientHeight&&n.children.length>0){t.pageX-t.currentTarget.getBoundingClientRect().left>n.querySelector('md-option').offsetWidth&&(e=!0)}}return e}())){var e=d.getClosest(t.target,'md-option');e&&e.hasAttribute&&!e.hasAttribute('disabled')&&(t.preventDefault(),t.stopPropagation(),p.isMultiple||(a.restoreFocus=!0,d.nextTick(function(){r.hide(p.ngModel.$viewValue)},!0)))}}if(!a.isRemoved){var m=a.selectEl,p=m.controller('mdSelectMenu')||{};return o.addClass('md-clickable'),a.backdrop&&a.backdrop.on('click',t),m.on('keydown',e),m.on('click',f),function(){a.backdrop&&a.backdrop.off('click',t),m.off('keydown',e),m.off('click',f),o.removeClass('md-clickable'),a.isRemoved=!0}}}return function(){a.loadingAsync&&!a.isRemoved&&(t.$$loadingAsyncDone=!1,m.when(a.loadingAsync).then(function(){t.$$loadingAsyncDone=!0,delete a.loadingAsync}).then(function(){p(s)}))}(),function(t,n){var r=o.find('md-select-menu');if(!n.target)throw new Error(d.supplant(w,[n.target]));e.extend(n,{isRemoved:!1,target:e.element(n.target),parent:e.element(n.parent),selectEl:r,contentEl:o.find('md-content'),optionNodes:r[0].getElementsByTagName('md-option')})}(0,a),a.hideBackdrop=function(t,e,n){return n.disableParentScroll&&!d.getClosest(n.target,'MD-DIALOG')?n.restoreScroll=d.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1,n.hasBackdrop&&(n.backdrop=d.createBackdrop(t,'md-select-backdrop md-click-catcher'),v.enter(n.backdrop,g[0].body,null,{duration:0})),function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(t,o,a),function(t,e,n){return n.parent.append(e),m(function(t,n){try{h(e,{removeClass:'md-leave',duration:0}).start().then(s).then(t)}catch(t){n(t)}})}(t,o,a).then(function(t){return o.attr('aria-hidden','false'),a.alreadyOpen=!0,a.cleanupInteraction=$(),a.cleanupResizing=l(),t},a.hideBackdrop)}function y(t){var e=t.selectCtrl;if(e){var n=t.selectEl.controller('mdSelectMenu');e.setLabelText(n?n.selectedLabels():''),e.triggerClose()}}function E(n,r,i){var u,m=r[0],p=i.target[0].children[0],h=g[0].body,v=i.selectEl[0],$=i.contentEl[0],b=h.getBoundingClientRect(),y=p.getBoundingClientRect(),E={left:b.left+l,top:l,bottom:b.height-l,right:b.width-l-(d.floatingScrollbars()?16:0)},w={top:y.top-E.top,left:y.left-E.left,right:E.right-(y.left+y.width),bottom:E.bottom-(y.top+y.height)},C=b.width-2*l,_=v.querySelector('md-option[selected]'),x=v.getElementsByTagName('md-option'),M=v.getElementsByTagName('md-optgroup'),A=c(r,$);u=o(i.loadingAsync)?$.firstElementChild||$:_||(M.length?M[0]:x.length?x[0]:$.firstElementChild||$),$.offsetWidth>C?$.style['max-width']=C+'px':$.style.maxWidth=null,A&&v.classList.add('md-overflow');var T=u;'MD-OPTGROUP'===(T.tagName||'').toUpperCase()&&(T=x[0]||$.firstElementChild||$,u=T),i.focusedNode=T,m.style.display='block';var k=v.getBoundingClientRect(),S=s(u);if(u){var O=f.getComputedStyle(u);S.paddingLeft=parseInt(O.paddingLeft,10)||0,S.paddingRight=parseInt(O.paddingRight,10)||0}if(A){var N=$.offsetHeight/2;$.scrollTop=S.top+S.height/2-N,w.top<N?$.scrollTop=Math.min(S.top,$.scrollTop+N-w.top):w.bottom<N&&($.scrollTop=Math.max(S.top+S.height-k.height,$.scrollTop-N+w.bottom))}var I,D,P,R,H;I=y.left+S.left-S.paddingLeft+2,D=Math.floor(y.top+y.height/2-S.height/2-S.top+$.scrollTop)+2,P=S.left+y.width/2+'px '+(S.top+S.height/2-$.scrollTop)+'px 0px',R=Math.min(y.width+S.paddingLeft+S.paddingRight,C),H=t.getComputedStyle(p)['font-size'];var j=m.getBoundingClientRect(),L=Math.round(100*Math.min(y.width/k.width,1))/100,F=Math.round(100*Math.min(y.height/k.height,1))/100;return{container:{element:e.element(m),styles:{left:Math.floor(a(E.left,I,E.right-j.width)),top:Math.floor(a(E.top,D,E.bottom-j.height)),'min-width':R,'font-size':H}},dropDown:{element:e.element(v),styles:{transformOrigin:P,transform:i.alreadyOpen?'':d.supplant('scale({0},{1})',[L,F])}}}}var w='$mdSelect.show() expected a target element in options.target but got \'{0}\'!',C=d.dom.animator,_=i.KEY_CODE;return{parent:'body',themable:!0,onShow:b,onRemove:$,hasBackdrop:!0,disableParentScroll:!0}}function o(t){return t&&e.isFunction(t.then)}function a(t,e,n){return Math.max(t,Math.min(e,n))}function s(t){return t?{left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}:{left:0,top:0,width:0,height:0}}function c(t,e){var n=!1;try{var r=t[0].style.display;t[0].style.display='block',n=e.scrollHeight>e.offsetHeight,t[0].style.display=r}finally{}return n}return i.$inject=['$mdSelect','$mdConstant','$mdUtil','$window','$q','$$rAF','$animateCss','$animate','$document'],r('$mdSelect').setDefaults({methods:['target'],options:i})}function u(t,e){var n=String.fromCharCode(t.keyCode),r=t.keyCode<=31;return n&&n.length&&!r&&!e.isMetaKey(t)&&!e.isFnLockKey(t)&&!e.hasModifierKey(t)}r.$inject=['$mdSelect','$mdUtil','$mdConstant','$mdTheming','$mdAria','$parse','$sce','$injector'],i.$inject=['$parse','$mdUtil','$mdConstant','$mdTheming'],o.$inject=['$mdButtonInkRipple','$mdUtil','$mdTheming'],c.$inject=['$$interimElementProvider'];var l=8,d=0,f=e.element('<div class="md-container"><div class="md-icon"></div></div>');e.module('material.components.select',['material.core','material.components.backdrop']).directive('mdSelect',r).directive('mdSelectMenu',i).directive('mdOption',o).directive('mdOptgroup',a).directive('mdSelectHeader',s).provider('$mdSelect',c)}(),function(){function t(){return{controller:function(){},compile:function(t){var r=t.find('md-slider');if(r){return r.attr('md-vertical')!==n&&t.attr('md-vertical',''),r.attr('flex')||r.attr('flex',''),function(t,n,r,i){function o(t){n.children().attr('disabled',t),n.find('input').attr('disabled',t)}n.addClass('_md');var a=e.noop;r.disabled?o(!0):r.ngDisabled&&(a=t.$watch(r.ngDisabled,function(t){o(t)})),t.$on('$destroy',function(){a()});var s;i.fitInputWidthToTextLength=function(t){var e=n[0].querySelector('md-input-container');if(e){var r=getComputedStyle(e),i=parseInt(r.minWidth),o=2*parseInt(r.padding);s=s||parseInt(r.maxWidth);var a=Math.max(s,i+o+i/2*t);e.style.maxWidth=a+'px'}}}}}}}function r(t,n,r,i,o,a,s,c,u,l){function d(t,n){var i=e.element(t[0].getElementsByClassName('md-slider-wrapper')),o=n.tabindex||0;return i.attr('tabindex',o),(n.disabled||n.ngDisabled)&&i.attr('tabindex',-1),i.attr('role','slider'),r.expect(t,'aria-label'),f}function f(r,d,f,m){function p(){w(),k()}function h(t){at=parseFloat(t),d.attr('aria-valuemin',t),p()}function v(t){st=parseFloat(t),d.attr('aria-valuemax',t),p()}function g(t){ct=parseFloat(t)}function $(t){ut=S(parseInt(t),0,6)}function b(){d.attr('aria-disabled',!!Y())}function y(){if(rt&&!Y()&&!e.isUndefined(ct)){if(ct<=0){var t='Slider step value must be greater than zero when in discrete mode';throw u.error(t),new Error(t)}var r=Math.floor((st-at)/ct);lt||(lt=e.element('<canvas>').css('position','absolute'),J.append(lt),dt=lt[0].getContext('2d'));var i=C();!i||i.height||i.width||(w(),i=ft),lt[0].width=i.width,lt[0].height=i.height;for(var o,a=0;a<=r;a++){var s=n.getComputedStyle(J[0]);dt.fillStyle=s.color||'black',o=Math.floor((nt?i.height:i.width)*(a/r)),dt.fillRect(nt?0:o-1,nt?o-1:0,nt?i.width:2,nt?2:i.height)}}}function E(){if(lt&&dt){var t=C();dt.clearRect(0,0,t.width,t.height)}}function w(){ft=X[0].getBoundingClientRect()}function C(){return et(),ft}function _(t){if(!Y()){var e;(nt?t.keyCode===o.KEY_CODE.DOWN_ARROW:t.keyCode===o.KEY_CODE.LEFT_ARROW)?e=-ct:(nt?t.keyCode===o.KEY_CODE.UP_ARROW:t.keyCode===o.KEY_CODE.RIGHT_ARROW)&&(e=ct),e=it?-e:e,e&&((t.metaKey||t.ctrlKey||t.altKey)&&(e*=4),t.preventDefault(),t.stopPropagation(),r.$evalAsync(function(){T(z.$viewValue+e)}))}}function x(){y(),r.mouseActive=!0,tt.removeClass('md-focused'),l(function(){r.mouseActive=!1},100)}function M(){!1===r.mouseActive&&tt.addClass('md-focused')}function A(){tt.removeClass('md-focused'),d.removeClass('md-active'),E()}function T(t){z.$setViewValue(S(O(t)))}function k(){isNaN(z.$viewValue)&&(z.$viewValue=z.$modelValue),z.$viewValue=S(z.$viewValue);var t=B(z.$viewValue);r.modelValue=z.$viewValue,d.attr('aria-valuenow',z.$viewValue),N(t),G.text(z.$viewValue)}function S(t,n,r){if(e.isNumber(t))return n=e.isNumber(n)?n:at,r=e.isNumber(r)?r:st,Math.max(n,Math.min(r,t))}function O(t){if(e.isNumber(t)){var n=Math.round((t-at)/ct)*ct+at;return n=Math.round(n*Math.pow(10,ut))/Math.pow(10,ut),W&&W.fitInputWidthToTextLength&&i.debounce(function(){W.fitInputWidthToTextLength(n.toString().length)},100)(),n}}function N(t){t=V(t);var e=100*t+'%',n=it?100*(1-t)+'%':e;nt?Z.css('bottom',e):i.bidiProperty(Z,'left','right',e),Q.css(nt?'height':'width',n),d.toggleClass(it?'md-max':'md-min',0===t),d.toggleClass(it?'md-min':'md-max',1===t)}function I(t){if(!Y()){d.addClass('md-active'),d[0].focus(),w();var e=q(U(nt?t.pointer.y:t.pointer.x)),n=S(O(e));r.$apply(function(){T(n),N(B(n))})}}function D(t){if(!Y()){d.removeClass('md-dragging');var e=q(U(nt?t.pointer.y:t.pointer.x)),n=S(O(e));r.$apply(function(){T(n),k()})}}function P(t){Y()||(mt=!0,t.stopPropagation(),d.addClass('md-dragging'),j(t))}function R(t){mt&&(t.stopPropagation(),j(t))}function H(t){mt&&(t.stopPropagation(),mt=!1)}function j(t){rt?F(nt?t.pointer.y:t.pointer.x):L(nt?t.pointer.y:t.pointer.x)}function L(t){r.$evalAsync(function(){T(q(U(t)))})}function F(t){var e=q(U(t)),n=S(O(e));N(U(t)),G.text(n)}function V(t){return Math.max(0,Math.min(t||0,1))}function U(t){var e=nt?ft.top:ft.left,n=nt?ft.height:ft.width,r=(t-e)/n;return nt||'rtl'!==i.bidi()||(r=1-r),Math.max(0,Math.min(1,nt?1-r:r))}function q(t){return at+(it?1-t:t)*(st-at)}function B(t){var e=(t-at)/(st-at);return it?1-e:e}a(d);var z=m[0]||{$setViewValue:function(t){this.$viewValue=t,this.$viewChangeListeners.forEach(function(t){t()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},W=m[1],Y=(e.element(i.getClosest(d,'_md-slider-container',!0)),f.ngDisabled?e.bind(null,c(f.ngDisabled),r.$parent):function(){return d[0].hasAttribute('disabled')}),K=e.element(d[0].querySelector('.md-thumb')),G=e.element(d[0].querySelector('.md-thumb-text')),Z=K.parent(),X=e.element(d[0].querySelector('.md-track-container')),Q=e.element(d[0].querySelector('.md-track-fill')),J=e.element(d[0].querySelector('.md-track-ticks')),tt=e.element(d[0].getElementsByClassName('md-slider-wrapper')),et=(e.element(d[0].getElementsByClassName('md-slider-content')),i.throttle(w,5e3)),nt=e.isDefined(f.mdVertical),rt=e.isDefined(f.mdDiscrete),it=e.isDefined(f.mdInvert);e.isDefined(f.min)?f.$observe('min',h):h(0),e.isDefined(f.max)?f.$observe('max',v):v(100),e.isDefined(f.step)?f.$observe('step',g):g(1),e.isDefined(f.round)?f.$observe('round',$):$(3);e.noop;f.ngDisabled&&r.$parent.$watch(f.ngDisabled,b),s.register(tt,'drag',{horizontal:!nt}),r.mouseActive=!1,tt.on('keydown',_).on('mousedown',x).on('focus',M).on('blur',A).on('$md.pressdown',I).on('$md.pressup',D).on('$md.dragstart',P).on('$md.drag',R).on('$md.dragend',H),setTimeout(p,0);var ot=t.throttle(p);e.element(n).on('resize',ot),r.$on('$destroy',function(){e.element(n).off('resize',ot)}),z.$render=k,z.$viewChangeListeners.push(k),z.$formatters.push(S),z.$formatters.push(O);var at,st,ct,ut,lt,dt,ft={};w();var mt=!1}return{scope:{},require:['?ngModel','?^mdSliderContainer'],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',compile:d}}r.$inject=['$$rAF','$window','$mdAria','$mdUtil','$mdConstant','$mdTheming','$mdGesture','$parse','$log','$timeout'],e.module('material.components.slider',['material.core']).directive('mdSlider',r).directive('mdSliderContainer',t)}(),function(){function t(t,e,r,i){function o(i){function o(t,e){e.addClass('md-sticky-clone');var n={element:t,clone:e};return h.items.push(n),r.nextTick(function(){m.prepend(n.clone)}),p(),function(){h.items.forEach(function(e,n){e.element[0]===t[0]&&(h.items.splice(n,1),e.clone.remove())}),p()}}function s(){h.items.forEach(c),h.items=h.items.sort(function(t,e){return t.top<e.top?-1:1});for(var t,e=m.prop('scrollTop'),n=h.items.length-1;n>=0;n--)if(e>h.items[n].top){t=h.items[n];break}l(t)}function c(t){var e=t.element[0];for(t.top=0,t.left=0,t.right=0;e&&e!==m[0];)t.top+=e.offsetTop,t.left+=e.offsetLeft,e.offsetParent&&(t.right+=e.offsetParent.offsetWidth-e.offsetWidth-e.offsetLeft),e=e.offsetParent;t.height=t.element.prop('offsetHeight');var i=r.floatingScrollbars()?'0':n;r.bidi(t.clone,'margin-left',t.left,i),r.bidi(t.clone,'margin-right',i,t.right)}function u(){var t=m.prop('scrollTop'),e=t>(u.prevScrollTop||0);if(u.prevScrollTop=t,0===t)return void l(null);if(e){if(h.next&&h.next.top<=t)return void l(h.next);if(h.current&&h.next&&h.next.top-t<=h.next.height)return void f(h.current,t+(h.next.top-h.next.height-t))}if(!e){if(h.current&&h.prev&&t<h.current.top)return void l(h.prev);if(h.next&&h.current&&t>=h.next.top-h.current.height)return void f(h.current,t+(h.next.top-t-h.current.height))}h.current&&f(h.current,t)}function l(t){if(h.current!==t){h.current&&(f(h.current,null),d(h.current,null)),t&&d(t,'active'),h.current=t;var e=h.items.indexOf(t);h.next=h.items[e+1],h.prev=h.items[e-1],d(h.next,'next'),d(h.prev,'prev')}}function d(t,e){t&&t.state!==e&&(t.state&&(t.clone.attr('sticky-prev-state',t.state),t.element.attr('sticky-prev-state',t.state)),t.clone.attr('sticky-state',e),t.element.attr('sticky-state',e),t.state=e)}function f(e,i){e&&(null===i||i===n?e.translateY&&(e.translateY=null,e.clone.css(t.CSS.TRANSFORM,'')):(e.translateY=i,r.bidi(e.clone,t.CSS.TRANSFORM,'translate3d('+e.left+'px,'+i+'px,0)','translateY('+i+'px)')))}var m=i.$element,p=e.throttle(s);a(m),m.on('$scrollstart',p),m.on('$scroll',u);var h;return h={prev:null,current:null,next:null,items:[],add:o,refreshElements:s}}function a(t){function n(){+r.now()-o>a?(i=!1,t.triggerHandler('$scrollend')):(t.triggerHandler('$scroll'),e.throttle(n))}var i,o,a=200;t.on('scroll touchmove',function(){i||(i=!0,e.throttle(n),t.triggerHandler('$scrollstart')),t.triggerHandler('$scroll'),o=+r.now()})}var s=r.checkStickySupport();return function(t,e,n){var r=e.controller('mdContent');if(r)if(s)e.css({position:s,top:0,'z-index':2});else{var a=r.$element.data('$$sticky');a||(a=o(r),r.$element.data('$$sticky',a));var c=n||i(e.clone())(t),u=a.add(e,c);t.$on('$destroy',u)}}}t.$inject=['$mdConstant','$$rAF','$mdUtil','$compile'],e.module('material.components.sticky',['material.core','material.components.content']).factory('$mdSticky',t)}(),function(){function t(t,n,r,i,o){return{restrict:'E',replace:!0,transclude:!0,template:'<div class="md-subheader _md">  <div class="md-subheader-inner">    <div class="md-subheader-content"></div>  </div></div>',link:function(a,s,c,u,l){function d(t){return e.element(t[0].querySelector('.md-subheader-content'))}r(s),s.addClass('_md'),i.prefixer().removeAttribute(s,'ng-repeat');var f=s[0].outerHTML;c.$set('role','heading'),o.expect(s,'aria-level','2'),l(a,function(t){d(s).append(t)}),s.hasClass('md-no-sticky')||l(a,function(e){var r=n('<div class="md-subheader-wrapper" aria-hidden="true">'+f+'</div>')(a);i.nextTick(function(){d(r).append(e)}),t(a,s,r)})}}}t.$inject=['$mdSticky','$compile','$mdTheming','$mdUtil','$mdAria'],e.module('material.components.subheader',['material.core','material.components.sticky']).directive('mdSubheader',t)}(),function(){function t(t,n,r,i,o,a,s){function c(t,c){var l=u.compile(t,c).post;return t.addClass('md-dragging'),function(t,c,u,d){function f(e){g&&g(t)||(e.stopPropagation(),c.addClass('md-dragging'),E={width:$.prop('offsetWidth')})}function m(t){if(E){t.stopPropagation(),t.srcEvent&&t.srcEvent.preventDefault();var e=t.pointer.distanceX/E.width,n=v.$viewValue?1+e:e;n=Math.max(0,Math.min(1,n)),$.css(r.CSS.TRANSFORM,'translate3d('+100*n+'%,0,0)'),E.translate=n}}function p(e){if(E){e.stopPropagation(),c.removeClass('md-dragging'),$.css(r.CSS.TRANSFORM,'');(v.$viewValue?E.translate<.5:E.translate>.5)&&h(!v.$viewValue),E=null,t.skipToggle=!0,s(function(){t.skipToggle=!1},1)}}function h(e){t.$apply(function(){v.$setViewValue(e),v.$render()})}var v=(d[0],d[1]||n.fakeNgModel()),g=(d[2],null);null!=u.disabled?g=function(){return!0}:u.ngDisabled&&(g=i(u.ngDisabled));var $=e.element(c[0].querySelector('.md-thumb-container')),b=e.element(c[0].querySelector('.md-container')),y=e.element(c[0].querySelector('.md-label'));o(function(){c.removeClass('md-dragging')}),l(t,c,u,d),g&&t.$watch(g,function(t){c.attr('tabindex',t?-1:0)}),u.$observe('mdInvert',function(t){var e=n.parseAttributeBoolean(t);e?c.prepend(y):c.prepend(b),c.toggleClass('md-inverted',e)}),a.register(b,'drag'),b.on('$md.dragstart',f).on('$md.drag',m).on('$md.dragend',p);var E}}var u=t[0];return{restrict:'E',priority:r.BEFORE_NG_ARIA,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:['^?mdInputContainer','?ngModel','?^form'],compile:c}}t.$inject=['mdCheckboxDirective','$mdUtil','$mdConstant','$parse','$$rAF','$mdGesture','$timeout'],e.module('material.components.switch',['material.core','material.components.checkbox']).directive('mdSwitch',t)}(),function(){function t(t){function e(t){function e(e,i,o){i.css('touch-action',o.mdSwipeTouchAction||'none');var a=t(o[n]);i.on(r,function(t){e.$applyAsync(function(){a(e,{$event:t})})})}return{restrict:'A',link:e}}e.$inject=['$parse'];var n='md'+t,r='$md.'+t.toLowerCase();return e}e.module('material.components.swipe',['material.core']).directive('mdSwipeLeft',t('SwipeLeft')).directive('mdSwipeRight',t('SwipeRight')).directive('mdSwipeUp',t('SwipeUp')).directive('mdSwipeDown',t('SwipeDown'))}(),function(){e.module('material.components.tabs',['material.core','material.components.icon'])}(),function(){function t(t){return{restrict:'E',link:function(e,n){n.addClass('_md'),e.$on('$destroy',function(){t.destroy()})}}}function n(t){function n(t){i=t}function r(t,n,r,o){function a(e,a,s){i=s.textContent||s.content;var l=!o('gt-sm');return a=r.extractElementByName(a,'md-toast',!0),s.element=a,s.onSwipe=function(t,e){var i=t.type.replace('$md.',''),o=i.replace('swipe','');'down'===o&&-1!=s.position.indexOf('top')&&!l||'up'===o&&(-1!=s.position.indexOf('bottom')||l)||('left'!==o&&'right'!==o||!l)&&(a.addClass('md-'+i),r.nextTick(n.cancel))},s.openClass=c(s.position),a.addClass(s.toastClass),s.parent.addClass(s.openClass),r.hasComputedStyle(s.parent,'position','static')&&s.parent.css('position','relative'),a.on(u,s.onSwipe),a.addClass(l?'md-bottom':s.position.split(' ').map(function(t){return'md-'+t}).join(' ')),s.parent&&s.parent.addClass('md-toast-animating'),t.enter(a,s.parent).then(function(){s.parent&&s.parent.removeClass('md-toast-animating')})}function s(e,n,i){return n.off(u,i.onSwipe),i.parent&&i.parent.addClass('md-toast-animating'),i.openClass&&i.parent.removeClass(i.openClass),(1==i.$destroy?n.remove():t.leave(n)).then(function(){i.parent&&i.parent.removeClass('md-toast-animating'),r.hasComputedStyle(i.parent,'position','static')&&i.parent.css('position','')})}function c(t){return o('gt-xs')?'md-toast-open-'+(t.indexOf('top')>-1?'top':'bottom'):'md-toast-open-bottom'}var u='$md.swipeleft $md.swiperight $md.swipeup $md.swipedown';return{onShow:a,onRemove:s,toastClass:'',position:'bottom left',themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(t,n){if(n.autoWrap&&t&&!/md-toast-content/g.test(t)){var r=document.createElement('md-template');r.innerHTML=t;for(var i=0;i<r.children.length;i++)if('MD-TOAST'===r.children[i].nodeName){var o=e.element('<div class="md-toast-content">');o.append(e.element(r.children[i].childNodes)),r.children[i].appendChild(o[0])}return r.innerHTML}return t||''}}}r.$inject=['$animate','$mdToast','$mdUtil','$mdMedia'];var i;return t('$mdToast').setDefaults({methods:['position','hideDelay','capsule','parent','position','toastClass'],options:r}).addPreset('simple',{argOption:'textContent',methods:['textContent','content','action','highlightAction','highlightClass','theme','parent'],options:['$mdToast','$mdTheming',function(t,e){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">  <div class="md-toast-content">    <span class="md-toast-text" role="alert" aria-relevant="all" aria-atomic="true">      {{ toast.content }}    </span>    <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()"         ng-class="highlightClasses">      {{ toast.action }}    </md-button>  </div></md-toast>',controller:['$scope',function(e){var n=this;n.highlightAction&&(e.highlightClasses=['md-highlight',n.highlightClass]),e.$watch(function(){return i},function(){n.content=i}),this.resolve=function(){t.hide('ok')}}],theme:e.defaultTheme(),controllerAs:'toast',bindToController:!0}}]}).addMethod('updateTextContent',n).addMethod('updateContent',n)}t.$inject=['$mdToast'],n.$inject=['$$interimElementProvider'],e.module('material.components.toast',['material.core','material.components.button']).directive('mdToast',t).provider('$mdToast',n)}(),function(){function t(t,n,r,i,o){var a=e.bind(null,r.supplant,'translate3d(0,{0}px,0)');return{template:'',restrict:'E',link:function(s,c,u){c.addClass('_md'),i(c),r.nextTick(function(){c.addClass('_md-toolbar-transitions')},!1),e.isDefined(u.mdScrollShrink)&&function(){function i(t){var e=c.parent().find('md-content');!h&&e.length&&l(null,e),t=s.$eval(t),!1===t?v():v=f()}function l(t,e){e&&c.parent()[0]===e.parent()[0]&&(h&&h.off('scroll',y),h=e,v=f())}function d(t){var e=t?t.target.scrollTop:$;E(),g=Math.min(p/b,Math.max(0,g+e-$)),c.css(n.CSS.TRANSFORM,a([-g*b])),h.css(n.CSS.TRANSFORM,a([(p-g)*b])),$=e,r.nextTick(function(){var t=c.hasClass('md-whiteframe-z1');t&&!g?o.removeClass(c,'md-whiteframe-z1'):!t&&g&&o.addClass(c,'md-whiteframe-z1')})}function f(){return h?(h.on('scroll',y),h.attr('scroll-shrink','true'),r.nextTick(m,!1),function(){h.off('scroll',y),h.attr('scroll-shrink','false'),m()}):e.noop}function m(){p=c.prop('offsetHeight');var t=-p*b+'px';h.css({'margin-top':t,'margin-bottom':t}),d()}var p,h,v=e.noop,g=0,$=0,b=u.mdShrinkSpeedFactor||.5,y=t.throttle(d),E=r.debounce(m,5e3);s.$on('$mdContentLoaded',l),u.$observe('mdScrollShrink',i),u.ngShow&&s.$watch(u.ngShow,m),u.ngHide&&s.$watch(u.ngHide,m),s.$on('$destroy',v)}()}}}t.$inject=['$$rAF','$mdConstant','$mdUtil','$mdTheming','$animate'],e.module('material.components.toolbar',['material.core','material.components.content']).directive('mdToolbar',t)}(),function(){function n(t,n,r,i,o,a,s,c){function u(u,v,g){function $(){u.mdZIndex=u.mdZIndex||f,u.mdDelay=u.mdDelay||m,h[u.mdDirection]||(u.mdDirection=p)}function b(t){var e=t||o(v.text().trim())(u.$parent);(!N.attr('aria-label')&&!N.attr('aria-labelledby')||N.attr('md-labeled-by-tooltip'))&&(N.attr('aria-label',e),N.attr('md-labeled-by-tooltip')||N.attr('md-labeled-by-tooltip',O))}function y(){$(),T&&T.panelEl&&T.panelEl.removeClass(x),x='md-origin-'+u.mdDirection,M=h[u.mdDirection],A=s.newPanelPosition().relativeTo(N).addPanelPosition(M.x,M.y),T&&T.panelEl&&(T.panelEl.addClass(x),T.updatePosition(A))}function E(e){E.queued&&E.value===!!e||!E.queued&&u.mdVisible===!!e||(E.value=!!e,E.queued||(e?(E.queued=!0,S=t(function(){u.mdVisible=E.value,E.queued=!1,S=null,u.visibleWatcher||w(u.mdVisible)},u.mdDelay)):a.nextTick(function(){u.mdVisible=!1,u.visibleWatcher||w(!1)})))}function w(t){t?C():_()}function C(){if(!v[0].textContent.trim())throw new Error('Text for the tooltip has not been provided. Please include text within the mdTooltip element.');if(!T){var t=e.element(document.body),n=s.newPanelAnimation().openFrom(N).closeTo(N).withAnimation({open:'md-show',close:'md-hide'}),r={id:O,attachTo:t,contentElement:v,propagateContainerEvents:!0,panelClass:'md-tooltip '+x,animation:n,position:A,zIndex:u.mdZIndex,focusOnOpen:!1};T=s.create(r)}T.open().then(function(){T.panelEl.attr('role','tooltip')})}function _(){T&&T.close()}var x,M,A,T,k,S,O='md-tooltip-'+a.nextUid(),N=a.getParentWithPointerEvents(v),I=r.throttle(y),D=!1,P=null;$(),b(),v.detach(),y(),function(){function e(t){return t.some(function(t){return'disabled'===t.attributeName&&N[0].disabled}),!1}function r(){E(!1)}function o(){P=document.activeElement===N[0]}function s(t){'focus'===t.type&&P?P=!1:u.mdVisible||(N.on(d,f),E(!0),'touchstart'===t.type&&N.one('touchend',function(){a.nextTick(function(){i.one('touchend',f)},!1)}))}function f(){k=u.hasOwnProperty('mdAutohide')?u.mdAutohide:g.hasOwnProperty('mdAutohide'),(k||D||i[0].activeElement!==N[0])&&(S&&(t.cancel(S),E.queued=!1,S=null),N.off(d,f),N.triggerHandler('blur'),E(!1)),D=!1}function m(){D=!0}function p(){c.deregister('scroll',r,!0),c.deregister('blur',o),c.deregister('resize',I),N.off(l,s).off(d,f).off('mousedown',m),f(),h&&h.disconnect()}if(N[0]&&'MutationObserver'in n){var h=new MutationObserver(function(t){e(t)&&a.nextTick(function(){E(!1)})});h.observe(N[0],{attributes:!0})}P=!1,c.register('scroll',r,!0),c.register('blur',o),c.register('resize',I),u.$on('$destroy',p),N.on('mousedown',m),N.on(l,s)}(),function(){function t(){u.$destroy()}if(v[0]&&'MutationObserver'in n){var e=new MutationObserver(function(t){t.forEach(function(t){'md-visible'!==t.attributeName||u.visibleWatcher||(u.visibleWatcher=u.$watch('mdVisible',w))})});e.observe(v[0],{attributes:!0}),g.hasOwnProperty('mdVisible')&&(u.visibleWatcher=u.$watch('mdVisible',w))}else u.visibleWatcher=u.$watch('mdVisible',w);u.$watch('mdDirection',y),v.one('$destroy',t),N.one('$destroy',t),u.$on('$destroy',function(){E(!1),T&&T.destroy(),e&&e.disconnect(),v.remove()}),v.text().indexOf(o.startSymbol())>-1&&u.$watch(function(){return v.text().trim()},b)}()}var l='focus touchstart mouseenter',d='blur touchcancel mouseleave',f=100,m=0,p='bottom',h={top:{x:s.xPosition.CENTER,y:s.yPosition.ABOVE},right:{x:s.xPosition.OFFSET_END,y:s.yPosition.CENTER},bottom:{x:s.xPosition.CENTER,y:s.yPosition.BELOW},left:{x:s.xPosition.OFFSET_START,y:s.yPosition.CENTER}};return{restrict:'E',priority:210,scope:{mdZIndex:'=?mdZIndex',mdDelay:'=?mdDelay',mdVisible:'=?mdVisible',mdAutohide:'=?mdAutohide',mdDirection:'@?mdDirection'},link:u}}function r(){function n(t){o[t.type]&&o[t.type].forEach(function(e){e.call(this,t)},this)}function r(e,r,i){var s=o[e]=o[e]||[];s.length||(i?t.addEventListener(e,n,!0):a.on(e,n)),-1===s.indexOf(r)&&s.push(r)}function i(e,r,i){var s=o[e],c=s?s.indexOf(r):-1;c>-1&&(s.splice(c,1),0===s.length&&(i?t.removeEventListener(e,n,!0):a.off(e,n)))}var o={},a=e.element(t);return{register:r,deregister:i}}n.$inject=['$timeout','$window','$$rAF','$document','$interpolate','$mdUtil','$mdPanel','$$mdTooltipRegistry'],e.module('material.components.tooltip',['material.core','material.components.panel']).directive('mdTooltip',n).service('$$mdTooltipRegistry',r)}(),function(){function t(){return{restrict:'AE',controller:n,controllerAs:'$ctrl',bindToController:!0}}function n(t){t.addClass('md-truncate')}n.$inject=['$element'],e.module('material.components.truncate',['material.core']).directive('mdTruncate',t)}(),function(){function t(){return{controller:r,template:n,compile:function(t,e){t.addClass('md-virtual-repeat-container').addClass(e.hasOwnProperty('mdOrientHorizontal')?'md-orient-horizontal':'md-orient-vertical')}}}function n(t){return'<div class="md-virtual-repeat-scroller"><div class="md-virtual-repeat-sizer"></div><div class="md-virtual-repeat-offsetter">'+t[0].innerHTML+'</div></div>'}function r(t,n,r,i,o,a,s,c,u){this.$rootScope=o,this.$scope=s,this.$element=c,this.$attrs=u,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty('mdOrientHorizontal'),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty('mdAutoShrink'),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=r.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=i(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),e.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,e.bind(this,function(t){t!==this.topIndex&&this.scrollToIndex(t)}))):this.topIndex=0,this.scroller=c[0].querySelector('.md-virtual-repeat-scroller'),this.sizer=this.scroller.querySelector('.md-virtual-repeat-sizer'),this.offsetter=this.scroller.querySelector('.md-virtual-repeat-offsetter');var l=e.bind(this,this.updateSize);t(e.bind(this,function(){l();var t=n.debounce(l,10,null,!1),r=e.element(a);this.size||t(),r.on('resize',t),s.$on('$destroy',function(){r.off('resize',t)}),s.$emit('$md-resize-enable'),s.$on('$md-resize',l)}))}function i(t){return{controller:o,priority:1e3,require:['mdVirtualRepeat','^^mdVirtualRepeatContainer'],restrict:'A',terminal:!0,transclude:'element',compile:function(e,n){var r=n.mdVirtualRepeat,i=r.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),o=i[1],a=t(i[2]),s=n.mdExtraName&&t(n.mdExtraName);return function(t,e,n,r,i){r[0].link_(r[1],i,o,a,s)}}}}function o(t,n,r,i,o,a,s,c){this.$scope=t,this.$element=n,this.$attrs=r,this.$browser=i,this.$document=o,this.$rootScope=a,this.$$rAF=s,this.onDemand=c.parseAttributeBoolean(r.mdOnDemand),this.browserCheckUrlChange=i.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=t.$eval(r.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=e.noop,this.blocks={},this.pooledBlocks=[],t.$on('$destroy',e.bind(this,this.cleanupBlocks_))}function a(t){if(!e.isFunction(t.getItemAtIndex)||!e.isFunction(t.getLength))throw Error('When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength() ');this.model=t}r.$inject=['$$rAF','$mdUtil','$mdConstant','$parse','$rootScope','$window','$scope','$element','$attrs'],o.$inject=['$scope','$element','$attrs','$browser','$document','$rootScope','$$rAF','$mdUtil'],i.$inject=['$parse'],e.module('material.components.virtualRepeat',['material.core','material.components.showHide']).directive('mdVirtualRepeatContainer',t).directive('mdVirtualRepeat',i);r.prototype.register=function(t){this.repeater=t,e.element(this.scroller).on('scroll wheel touchmove touchend',e.bind(this,this.handleScroll_))},r.prototype.isHorizontal=function(){return this.horizontal},r.prototype.getSize=function(){return this.size},r.prototype.setSize_=function(t){var e=this.getDimensionName_();this.size=t,this.$element[0].style[e]=t+'px'},r.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},r.prototype.updateSize=function(){this.originalSize||(this.size=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight,this.handleScroll_(),this.repeater&&this.repeater.containerUpdated())},r.prototype.getScrollSize=function(){return this.scrollSize},r.prototype.getDimensionName_=function(){return this.isHorizontal()?'width':'height'},r.prototype.sizeScroller_=function(t){var e=this.getDimensionName_(),n=this.isHorizontal()?'height':'width';if(this.sizer.innerHTML='',t<this.maxElementPixels)this.sizer.style[e]=t+'px';else{this.sizer.style[e]='auto',this.sizer.style[n]='auto';var r=Math.floor(t/this.maxElementPixels),i=document.createElement('div');i.style[e]=this.maxElementPixels+'px',i.style[n]='1px';for(var o=0;o<r;o++)this.sizer.appendChild(i.cloneNode(!1));i.style[e]=t-r*this.maxElementPixels+'px',this.sizer.appendChild(i)}},r.prototype.autoShrink_=function(t){var e=Math.max(t,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&e!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||e<n)this.originalSize||(this.originalSize=this.size),this.setSize_(e);else if(null!==this.originalSize){this.unsetSize_();var r=this.originalSize;this.originalSize=null,r||this.updateSize(),this.setSize_(r||this.size)}this.repeater.containerUpdated()}},r.prototype.setScrollSize=function(t){var e=t+this.offsetSize;this.scrollSize!==e&&(this.sizeScroller_(e),this.autoShrink_(e),this.scrollSize=e)},r.prototype.getScrollOffset=function(){return this.scrollOffset},r.prototype.scrollTo=function(t){this.scroller[this.isHorizontal()?'scrollLeft':'scrollTop']=t,this.handleScroll_()},r.prototype.scrollToIndex=function(t){var e=this.repeater.getItemSize(),n=this.repeater.itemsLength;t>n&&(t=n-1),this.scrollTo(e*t)},r.prototype.resetScroll=function(){this.scrollTo(0)},r.prototype.handleScroll_=function(){var t='rtl'!=document.dir&&'rtl'!=document.body.dir;t||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?t?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(e===this.scrollOffset||e>this.scrollSize-this.size)){var n=this.repeater.getItemSize();if(n){var r=Math.max(0,Math.floor(e/n)-3),i=(this.isHorizontal()?'translateX(':'translateY(')+(!this.isHorizontal()||t?r*n:-r*n)+'px)';if(this.scrollOffset=e,this.offsetter.style.webkitTransform=i,this.offsetter.style.transform=i,this.bindTopIndex){var o=Math.floor(e/n);o!==this.topIndex&&o<this.repeater.getItemCount()&&(this.topIndex=o,this.bindTopIndex.assign(this.$scope,o),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},o.Block,o.prototype.link_=function(t,n,r,i,o){this.container=t,this.transclude=n,this.repeatName=r,this.rawRepeatListExpression=i,this.extraName=o,this.sized=!1,this.repeatListExpression=e.bind(this,this.repeatListExpression_),this.container.register(this)},o.prototype.cleanupBlocks_=function(){e.forEach(this.pooledBlocks,function(t){t.element.remove()})},o.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var t=this.getBlock_(0);t.element[0].parentNode||this.parentNode.appendChild(t.element[0]),this.itemSize=t.element[0][this.container.isHorizontal()?'offsetWidth':'offsetHeight']||null,this.blocks[0]=t,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},o.prototype.repeatListExpression_=function(t){var e=this.rawRepeatListExpression(t);if(this.onDemand&&e){var n=new a(e);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return e},o.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==e.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,e.bind(this,function(t){t&&t.length&&this.readItemSize_()})),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,e.bind(this,function(t,e){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(t,e)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof a&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},o.prototype.getItemSize=function(){return this.itemSize},o.prototype.getItemCount=function(){return this.itemsLength},o.prototype.virtualRepeatUpdate_=function(t,n){this.isVirtualRepeatUpdating_=!0;var r=t&&t.length||0,i=!1;if(this.items&&r<this.items.length&&0!==this.container.getScrollOffset()){this.items=t;var o=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(o)}r!==this.itemsLength&&(i=!0,this.itemsLength=r),this.items=t,(t!==n||i)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,i&&this.container.setScrollSize(r*this.itemSize);var a,s=!1;this.isFirstRender&&(s=!0,this.isFirstRender=!1,a=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex,this.container.scrollToIndex(a)),Object.keys(this.blocks).forEach(function(t){var e=parseInt(t,10);(e<this.newStartIndex||e>=this.newEndIndex)&&this.poolBlock_(e)},this),this.$browser.$$checkUrlChange=e.noop;var c,u,l=[],d=[];for(c=this.newStartIndex;c<this.newEndIndex&&null==this.blocks[c];c++)u=this.getBlock_(c),this.updateBlock_(u,c),l.push(u);for(;null!=this.blocks[c];c++)this.updateBlock_(this.blocks[c],c);for(var f=c-1;c<this.newEndIndex;c++)u=this.getBlock_(c),this.updateBlock_(u,c),d.push(u);l.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(l),this.$element[0].nextSibling),d.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(d),this.blocks[f]&&this.blocks[f].element[0].nextSibling),s&&this.container.scrollToIndex(a),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isVirtualRepeatUpdating_=!1},o.prototype.getBlock_=function(t){if(this.pooledBlocks.length)return this.pooledBlocks.pop();var n;return this.transclude(e.bind(this,function(e,r){n={element:e,new:!0,scope:r},this.updateScope_(r,t),this.parentNode.appendChild(e[0])})),n},o.prototype.updateBlock_=function(t,e){this.blocks[e]=t,(t.new||t.scope.$index!==e||t.scope[this.repeatName]!==this.items[e])&&(t.new=!1,this.updateScope_(t.scope,e),this.$rootScope.$$phase||t.scope.$digest())},o.prototype.updateScope_=function(t,e){t.$index=e,t[this.repeatName]=this.items&&this.items[e],this.extraName&&(t[this.extraName(this.$scope)]=this.items[e])},o.prototype.poolBlock_=function(t){this.pooledBlocks.push(this.blocks[t]),this.parentNode.removeChild(this.blocks[t].element[0]),delete this.blocks[t]},o.prototype.domFragmentFromBlocks_=function(t){var e=this.$document[0].createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element[0])}),e},o.prototype.updateIndexes_=function(){var t=this.items?this.items.length:0,e=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(t-e,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+e+3,this.newEndIndex=Math.min(t,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},a.prototype.$$includeIndexes=function(t,e){for(var n=t;n<e;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()}}(),function(){function t(t){function e(e,a,s){var c='';s.$observe('mdWhiteframe',function(e){(e=parseInt(e,10)||o)!=n&&(e>i||e<r)&&(t.warn('md-whiteframe attribute value is invalid. It should be a number between '+r+' and '+i,a[0]),e=o);var u=e==n?'':'md-whiteframe-'+e+'dp';s.$updateClass(u,c),c=u})}var n=-1,r=1,i=24,o=4;return{link:e}}t.$inject=['$log'],e.module('material.components.whiteframe',['material.core']).directive('mdWhiteframe',t)}(),function(){function t(t,s,c,u,l,d,f,m,p,h,v,g){function $(){t.requireMatch&&St&&St.$setValidity('md-require-match',!!t.selectedItem||!t.searchText)}function b(){function e(){var t=Ct.scrollContainer.getBoundingClientRect(),e={};t.right>f.right-o&&(e.left=l.right-t.width+'px'),Ct.$.scrollContainer.css(e)}if(!Ct)return c.nextTick(b,!1,t);var n,u=(t.dropdownItems||i)*r,l=Ct.wrap.getBoundingClientRect(),d=Ct.snap.getBoundingClientRect(),f=Ct.root.getBoundingClientRect(),m=d.bottom-f.top,h=f.bottom-d.top,v=l.left-f.left,g=l.width,$=function(){var t=0,e=s.find('md-input-container');if(e.length){var n=e.find('input');t=e.prop('offsetHeight'),t-=n.prop('offsetTop'),t-=n.prop('offsetHeight'),t+=e.prop('offsetTop')}return t}(),y=t.dropdownPosition;if(y||(y=m>h&&f.height-m-o<u?'top':'bottom'),p.mdFloatingLabel&&(v+=a,g-=2*a),n={left:v+'px',minWidth:g+'px',maxWidth:Math.max(l.right-f.left,f.right-l.left)-o+'px'},'top'===y)n.top='auto',n.bottom=h+'px',n.maxHeight=Math.min(u,l.top-f.top-o)+'px';else{var E=f.bottom-l.bottom-o+c.getViewportTop();n.top=m-$+'px',n.bottom='auto',n.maxHeight=Math.min(u,E)+'px'}Ct.$.scrollContainer.css(n),c.nextTick(e,!1)}function y(){Ct.$.root.length&&(l(Ct.$.scrollContainer),Ct.$.scrollContainer.detach(),Ct.$.root.append(Ct.$.scrollContainer),f.pin&&f.pin(Ct.$.scrollContainer,m))}function E(){Ct.input.focus()}function w(){var n=parseInt(t.delay,10)||0;p.$observe('disabled',function(t){yt.isDisabled=c.parseAttributeBoolean(t,!1)}),p.$observe('required',function(t){yt.isRequired=c.parseAttributeBoolean(t,!1)}),p.$observe('readonly',function(t){yt.isReadonly=c.parseAttributeBoolean(t,!1)}),t.$watch('searchText',n?c.debounce(L,n):L),t.$watch('selectedItem',I),e.element(d).on('resize',Ot),t.$on('$destroy',C)}function C(){if(yt.hidden||c.enableScrolling(),e.element(d).off('resize',Ot),Ct){var t=['ul','scroller','scrollContainer','input'];e.forEach(t,function(t){Ct.$[t].remove()})}}function _(){yt.hidden||b()}function x(){var t=M();Ct={main:s[0],scrollContainer:s[0].querySelector('.md-virtual-repeat-container'),scroller:s[0].querySelector('.md-virtual-repeat-scroller'),ul:s.find('ul')[0],input:s.find('input')[0],wrap:t.wrap,snap:t.snap,root:document.body},Ct.li=Ct.ul.getElementsByTagName('li'),Ct.$=A(Ct),St=Ct.$.input.controller('ngModel')}function M(){var t,n;for(t=s;t.length&&(n=t.attr('md-autocomplete-snap'),!e.isDefined(n));t=t.parent());if(t.length)return{snap:t[0],wrap:'width'===n.toLowerCase()?t[0]:s.find('md-autocomplete-wrap')[0]};var r=s.find('md-autocomplete-wrap')[0];return{snap:r,wrap:r}}function A(t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e.element(t[r]));return n}function T(t,n){!t&&n?(b(),lt(!0,Nt.Count|Nt.Selected),Ct&&(c.disableScrollAround(Ct.ul),kt=k(e.element(Ct.wrap)))):t&&!n&&(c.enableScrolling(),kt&&(kt(),kt=null))}function k(t){function e(t){t.preventDefault()}return t.on('wheel',e),t.on('touchmove',e),function(){t.off('wheel',e),t.off('touchmove',e)}}function S(){xt=!0}function O(){At||yt.hidden||Ct.input.focus(),xt=!1,yt.hidden=G()}function N(){Ct.input.focus()}function I(n,r){$(),n?z(n).then(function(e){t.searchText=e,R(n,r)}):r&&t.searchText&&z(r).then(function(n){e.isString(t.searchText)&&n.toString().toLowerCase()===t.searchText.toLowerCase()&&(t.searchText='')}),n!==r&&D()}function D(){e.isFunction(t.itemChange)&&t.itemChange(W(t.selectedItem))}function P(){e.isFunction(t.textChange)&&t.textChange()}function R(t,e){Mt.forEach(function(n){n(t,e)})}function H(t){-1==Mt.indexOf(t)&&Mt.push(t)}function j(t){var e=Mt.indexOf(t);-1!=e&&Mt.splice(e,1)}function L(e,n){yt.index=Y(),e!==n&&($(),z(t.selectedItem).then(function(r){e!==r&&(t.selectedItem=null,e!==n&&P(),it()?vt():(yt.matches=[],K(!1),lt(!1,Nt.Count)))}))}function F(t){At=!1,xt||(yt.hidden=G(),bt('ngBlur',{$event:t}))}function V(t){t&&(xt=!1,At=!1),Ct.input.blur()}function U(t){At=!0,Z()&&it()&&vt(),yt.hidden=G(),bt('ngFocus',{$event:t})}function q(e){switch(e.keyCode){case u.KEY_CODE.DOWN_ARROW:if(yt.loading)return;e.stopPropagation(),e.preventDefault(),yt.index=Math.min(yt.index+1,yt.matches.length-1),ft(),lt(!1,Nt.Selected);break;case u.KEY_CODE.UP_ARROW:if(yt.loading)return;e.stopPropagation(),e.preventDefault(),yt.index=yt.index<0?yt.matches.length-1:Math.max(0,yt.index-1),ft(),lt(!1,Nt.Selected);break;case u.KEY_CODE.TAB:if(O(),yt.hidden||yt.loading||yt.index<0||yt.matches.length<1)return;ot(yt.index);break;case u.KEY_CODE.ENTER:if(yt.hidden||yt.loading||yt.index<0||yt.matches.length<1)return;if(et())return;e.stopPropagation(),e.preventDefault(),ot(yt.index);break;case u.KEY_CODE.ESCAPE:if(e.preventDefault(),!X())return;e.stopPropagation(),st(),t.searchText&&Q('clear')&&ct(),yt.hidden=!0,Q('blur')&&V(!0)}}function B(){return e.isNumber(t.minLength)?t.minLength:1}function z(n){return h.when(function(e){return e&&t.itemText?t.itemText(W(e)):null}(n)||n).then(function(t){return t&&!e.isString(t)&&v.warn('md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute.'),t})}function W(t){if(!t)return n;var e={};return yt.itemName&&(e[yt.itemName]=t),e}function Y(){return t.autoselect?0:-1}function K(t){yt.loading!=t&&(yt.loading=t),yt.hidden=G()}function G(){return!Z()||!J()}function Z(){return!(yt.loading&&!tt())&&(!et()&&!!At)}function X(){return Q('blur')||!yt.hidden||yt.loading||Q('clear')&&t.searchText}function Q(e){return!t.escapeOptions||-1!==t.escapeOptions.toLowerCase().indexOf(e)}function J(){return it()&&tt()||ht()}function tt(){return!!yt.matches.length}function et(){return!!yt.scope.selectedItem}function nt(){return yt.loading&&!et()}function rt(){return z(yt.matches[yt.index])}function it(){return(t.searchText||'').length>=B()}function ot(e){c.nextTick(function(){z(yt.matches[e]).then(function(t){var e=Ct.$.input.controller('ngModel');e.$setViewValue(t),e.$render()}).finally(function(){t.selectedItem=yt.matches[e],K(!1)})},!1)}function at(){st(),ct()}function st(){yt.index=0,yt.matches=[]}function ct(){K(!0),t.searchText='';var e=document.createEvent('CustomEvent');e.initCustomEvent('change',!0,!0,{value:''}),Ct.input.dispatchEvent(e),Ct.input.blur(),t.searchText='',Ct.input.focus()}function ut(n){function r(e){_t[o]=e,(n||'')===(t.searchText||'')&&gt(e)}var i=t.$parent.$eval(wt),o=n.toLowerCase(),a=e.isArray(i),s=!!i.then;a?r(i):s&&function(e){e&&(e=h.when(e),Tt++,K(!0),c.nextTick(function(){e.then(r).finally(function(){0==--Tt&&K(!1)})},!0,t))}(i)}function lt(t,e){var n=t?'polite':'assertive',r=[];e&Nt.Selected&&-1!==yt.index&&r.push(rt()),e&Nt.Count&&r.push(h.resolve(dt())),h.all(r).then(function(t){g.announce(t.join(' '),n)})}function dt(){switch(yt.matches.length){case 0:return'There are no matches available.';case 1:return'There is 1 match available.';default:return'There are '+yt.matches.length+' matches available.'}}function ft(){if(Ct.li[0]){var t=Ct.li[0].offsetHeight,e=t*yt.index,n=e+t,r=Ct.scroller.clientHeight,i=Ct.scroller.scrollTop;e<i?pt(e):n>i+r&&pt(n-r)}}function mt(){return 0!==Tt}function pt(t){Ct.$.scrollContainer.controller('mdVirtualRepeatContainer').scrollTo(t)}function ht(){var t=(yt.scope.searchText||'').length;return yt.hasNotFound&&!tt()&&(!yt.loading||mt())&&t>=B()&&(At||xt)&&!et()}function vt(){var e=t.searchText||'',n=e.toLowerCase();!t.noCache&&_t[n]?gt(_t[n]):ut(e),yt.hidden=G()}function gt(e){yt.matches=e,yt.hidden=G(),yt.loading&&K(!1),t.selectOnMatch&&$t(),b(),lt(!0,Nt.Count)}function $t(){var e=t.searchText,n=yt.matches,r=n[0];1===n.length&&z(r).then(function(n){var r=e==n;t.matchInsensitive&&!r&&(r=e.toLowerCase()==n.toLowerCase()),r&&ot(0)})}function bt(e,n){p[e]&&t.$parent.$eval(p[e],n||{})}var yt=this,Et=t.itemsExpr.split(/ in /i),wt=Et[1],Ct=null,_t={},xt=!1,Mt=[],At=!1,Tt=0,kt=null,St=null,Ot=c.debounce(_);!function(t,e,n){Object.defineProperty(yt,t,{get:function(){return n},set:function(t){var r=n;n=t,e(t,r)}})}('hidden',T,!0),yt.scope=t,yt.parent=t.$parent,yt.itemName=Et[0],yt.matches=[],yt.loading=!1,yt.hidden=!0,yt.index=null,yt.id=c.nextUid(),yt.isDisabled=null,yt.isRequired=null,yt.isReadonly=null,yt.hasNotFound=!1,yt.keydown=q,yt.blur=F,yt.focus=U,yt.clear=at,yt.select=ot,yt.listEnter=S,yt.listLeave=O,yt.mouseUp=N,yt.getCurrentDisplayValue=rt,yt.registerSelectedItemWatcher=H,yt.unregisterSelectedItemWatcher=j,yt.notFoundVisible=ht,yt.loadingIsVisible=nt,yt.positionDropdown=b;var Nt={Count:1,Selected:2};return function(){c.initOptionalProperties(t,p,{searchText:'',selectedItem:null,clearButton:!1}),l(s),w(),c.nextTick(function(){x(),y(),t.autofocus&&s.on('focus',E)})}()}t.$inject=['$scope','$element','$mdUtil','$mdConstant','$mdTheming','$window','$animate','$rootElement','$attrs','$q','$log','$mdLiveAnnouncer'],e.module('material.components.autocomplete').controller('MdAutocompleteCtrl',t);var r=48,i=5,o=8,a=2}(),function(){function t(t){return{controller:'MdAutocompleteCtrl',controllerAs:'$mdAutocompleteCtrl',scope:{inputName:'@mdInputName',inputMinlength:'@mdInputMinlength',inputMaxlength:'@mdInputMaxlength',searchText:'=?mdSearchText',selectedItem:'=?mdSelectedItem',itemsExpr:'@mdItems',itemText:'&mdItemText',placeholder:'@placeholder',noCache:'=?mdNoCache',requireMatch:'=?mdRequireMatch',selectOnMatch:'=?mdSelectOnMatch',matchInsensitive:'=?mdMatchCaseInsensitive',itemChange:'&?mdSelectedItemChange',textChange:'&?mdSearchTextChange',minLength:'=?mdMinLength',delay:'=?mdDelay',autofocus:'=?mdAutofocus',floatingLabel:'@?mdFloatingLabel',autoselect:'=?mdAutoselect',menuClass:'@?mdMenuClass',inputId:'@?mdInputId',escapeOptions:'@?mdEscapeOptions',dropdownItems:'=?mdDropdownItems',dropdownPosition:'@?mdDropdownPosition',clearButton:'=?mdClearButton'},compile:function(t,n){var r=['md-select-on-focus','md-no-asterisk','ng-trim','ng-pattern'],i=t.find('input');return r.forEach(function(t){var e=n[n.$normalize(t)];null!==e&&i.attr(t,e)}),function(t,n,r,i){i.hasNotFound=!!n.attr('md-has-not-found'),e.isDefined(r.mdClearButton)||t.floatingLabel||(t.clearButton=!0)}},template:function(e,n){var r=function(){var t=e.find('md-not-found').detach(),n=t.length?t.html():'';return n?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"                         md-autocomplete-parent-scope>'+n+'</li>':''}(),i=function(){var t=e.find('md-item-template').detach(),n=t.length?t.html():e.html();return t.length||e.empty(),'<md-autocomplete-parent-scope md-autocomplete-replace>'+n+'</md-autocomplete-parent-scope>'}(),o=e.html(),a=n.tabindex;return r&&e.attr('md-has-not-found',!0),e.attr('tabindex','-1'),'        <md-autocomplete-wrap            ng-class="{ \'md-whiteframe-z1\': !floatingLabel,                         \'md-menu-showing\': !$mdAutocompleteCtrl.hidden,                         \'md-show-clear-button\': !!clearButton }">          '+function(){return n.mdFloatingLabel?'            <md-input-container ng-if="floatingLabel">              <label>{{floatingLabel}}</label>              <input type="search"                  '+(null!=a?'tabindex="'+a+'"':'')+'                  id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                  name="{{inputName}}"                  autocomplete="off"                  ng-required="$mdAutocompleteCtrl.isRequired"                  ng-readonly="$mdAutocompleteCtrl.isReadonly"                  ng-minlength="inputMinlength"                  ng-maxlength="inputMaxlength"                  ng-disabled="$mdAutocompleteCtrl.isDisabled"                  ng-model="$mdAutocompleteCtrl.scope.searchText"                  ng-model-options="{ allowInvalid: true }"                  ng-keydown="$mdAutocompleteCtrl.keydown($event)"                  ng-blur="$mdAutocompleteCtrl.blur($event)"                  ng-focus="$mdAutocompleteCtrl.focus($event)"                  aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                  aria-label="{{floatingLabel}}"                  aria-autocomplete="list"                  role="combobox"                  aria-haspopup="true"                  aria-activedescendant=""                  aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>              <div md-autocomplete-parent-scope md-autocomplete-replace>'+o+'</div>            </md-input-container>':'            <input type="search"                '+(null!=a?'tabindex="'+a+'"':'')+'                id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}"                name="{{inputName}}"                ng-if="!floatingLabel"                autocomplete="off"                ng-required="$mdAutocompleteCtrl.isRequired"                ng-disabled="$mdAutocompleteCtrl.isDisabled"                ng-readonly="$mdAutocompleteCtrl.isReadonly"                ng-minlength="inputMinlength"                ng-maxlength="inputMaxlength"                ng-model="$mdAutocompleteCtrl.scope.searchText"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur($event)"                ng-focus="$mdAutocompleteCtrl.focus($event)"                placeholder="{{placeholder}}"                aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                aria-label="{{placeholder}}"                aria-autocomplete="list"                role="combobox"                aria-haspopup="true"                aria-activedescendant=""                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>'}()+'          '+function(){return'<button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText && !$mdAutocompleteCtrl.isDisabled" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+t.mdClose+'"></md-icon></button>'}()+'          <md-progress-linear              class="'+(n.mdFloatingLabel?'md-inline':'')+'"              ng-if="$mdAutocompleteCtrl.loadingIsVisible()"              md-mode="indeterminate"></md-progress-linear>          <md-virtual-repeat-container              md-auto-shrink              md-auto-shrink-min="1"              ng-mouseenter="$mdAutocompleteCtrl.listEnter()"              ng-mouseleave="$mdAutocompleteCtrl.listLeave()"              ng-mouseup="$mdAutocompleteCtrl.mouseUp()"              ng-hide="$mdAutocompleteCtrl.hidden"              class="md-autocomplete-suggestions-container md-whiteframe-z1"              ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"              role="presentation">            <ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}">              <li md-virtual-repeat="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-click="$mdAutocompleteCtrl.select($index)"                  md-extra-name="$mdAutocompleteCtrl.itemName">                  '+i+'                  </li>'+r+'            </ul>          </md-virtual-repeat-container>        </md-autocomplete-wrap>'}}}t.$inject=['$$mdSvgRegistry'],e.module('material.components.autocomplete').directive('mdAutocomplete',t)}(),function(){function t(t,e){function n(t,n,r){return function(t,n,i){function o(n,r){s[r]=t[n],t.$watch(n,function(t){e.nextTick(function(){s[r]=t})})}var a=t.$mdAutocompleteCtrl,s=a.parent.$new(),c=a.itemName;o('$index','$index'),o('item',c),function(){var e=!1,n=!1;t.$watch(function(){n||e||(e=!0,t.$$postDigest(function(){n||s.$digest(),e=n=!1}))}),s.$watch(function(){n=!0})}(),r(s,function(t){n.after(t)})}}return{restrict:'AE',compile:n,terminal:!0,transclude:'element'}}t.$inject=['$compile','$mdUtil'],e.module('material.components.autocomplete').directive('mdAutocompleteParentScope',t)}(),function(){function t(t,e,n){this.$scope=t,this.$element=e,this.$attrs=n,this.regex=null}t.$inject=['$scope','$element','$attrs'],e.module('material.components.autocomplete').controller('MdHighlightCtrl',t),t.prototype.init=function(t,e){this.flags=this.$attrs.mdHighlightFlags||'',this.unregisterFn=this.$scope.$watch(function(n){return{term:t(n),contentText:e(n)}}.bind(this),this.onRender.bind(this),!0),this.$element.on('$destroy',this.unregisterFn)},t.prototype.onRender=function(t,e){var n=t.contentText;null!==this.regex&&t.term===e.term||(this.regex=this.createRegex(t.term,this.flags)),t.term?this.applyRegex(n):this.$element.text(n)},t.prototype.applyRegex=function(t){var n=this.resolveTokens(t);this.$element.empty(),n.forEach(function(t){if(t.isMatch){var n=e.element('<span class="highlight">').text(t.text);this.$element.append(n)}else this.$element.append(document.createTextNode(t))}.bind(this))},t.prototype.resolveTokens=function(t){function e(e,r){var i=t.slice(e,r);i&&n.push(i)}var n=[],r=0;return t.replace(this.regex,function(t,i){e(r,i),n.push({text:t,isMatch:!0}),r=i+t.length}),e(r),n},t.prototype.createRegex=function(t,e){var n='',r='',i=this.sanitizeRegex(t);return e.indexOf('^')>=0&&(n='^'),e.indexOf('$')>=0&&(r='$'),new RegExp(n+i+r,e.replace(/[$\^]/g,''))},t.prototype.sanitizeRegex=function(t){return t&&t.toString().replace(/[\\\^\$\*\+\?\.\(\)\|\{}\[\]]/g,'\\$&')}}(),function(){function t(t,e){return{terminal:!0,controller:'MdHighlightCtrl',compile:function(n,r){var i=e(r.mdHighlightText),o=t(n.html());return function(t,e,n,r){r.init(i,o)}}}}t.$inject=['$interpolate','$parse'],e.module('material.components.autocomplete').directive('mdHighlightText',t)}(),function(){function r(t,e,r,i,o){this.$scope=t,this.$element=e,this.$mdConstant=r,this.$timeout=i,this.$mdUtil=o,this.isEditting=!1,this.parentController=n,this.enableChipEdit=!1}r.$inject=['$scope','$element','$mdConstant','$timeout','$mdUtil'],e.module('material.components.chips').controller('MdChipCtrl',r),r.prototype.init=function(t){this.parentController=t,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on('keydown',this.chipKeyDown.bind(this)),this.$element.on('mousedown',this.chipMouseDown.bind(this)),this.getChipContent().addClass('_md-chip-content-edit-is-enabled'))},r.prototype.getChipContent=function(){var t=this.$element[0].getElementsByClassName('md-chip-content');return e.element(t[0])},r.prototype.getContentElement=function(){return e.element(this.getChipContent().children()[0])},r.prototype.getChipIndex=function(){return parseInt(this.$element.attr('index'))},r.prototype.goOutOfEditMode=function(){if(this.isEditting){this.isEditting=!1,this.$element.removeClass('_md-chip-editing'),this.getChipContent()[0].contentEditable='false';var t=this.getChipIndex();this.getContentElement().text()?(this.parentController.updateChipContents(t,this.getContentElement().text()),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===t&&this.parentController.focusChip(t)}.bind(this))):this.parentController.removeChipAndFocusInput(t)}},r.prototype.selectNodeContents=function(e){var n,r;document.body.createTextRange?(n=document.body.createTextRange(),n.moveToElementText(e),n.select()):t.getSelection&&(r=t.getSelection(),n=document.createRange(),n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n))},r.prototype.goInEditMode=function(){this.isEditting=!0,this.$element.addClass('_md-chip-editing'),this.getChipContent()[0].contentEditable='true',this.getChipContent().on('blur',function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},r.prototype.chipKeyDown=function(t){this.isEditting||t.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&t.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditting&&t.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(t.preventDefault(),this.goOutOfEditMode()):(t.preventDefault(),this.goInEditMode())},r.prototype.chipMouseDown=function(){this.getChipIndex()==this.parentController.selectedChip&&this.enableChipEdit&&!this.isEditting&&this.goInEditMode()}}(),function(){function t(t,r,i,o){function a(n,r,a,c){var u=c.shift(),l=c.shift(),d=e.element(r[0].querySelector('.md-chip-content'));t(r),u&&(l.init(u),d.append(i(s)(n)),d.on('blur',function(){u.resetSelectedChip(),u.$scope.$applyAsync()})),o(function(){u&&u.shouldFocusLastChip&&u.focusLastChipThenInput()})}var s=r.processTemplate(n);return{restrict:'E',require:['^?mdChips','mdChip'],link:a,controller:'MdChipCtrl'}}t.$inject=['$mdTheming','$mdUtil','$compile','$timeout'],e.module('material.components.chips').directive('mdChip',t);var n='    <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden">      {{$mdChipsCtrl.deleteHint}}    </span>'}(),function(){function t(t){function e(e,n,r,i){n.on('click',function(t){e.$apply(function(){i.removeChip(e.$$replacedScope.$index)})}),t(function(){n.attr({tabindex:-1,'aria-hidden':!0}),n.find('button').attr('tabindex','-1')})}return{restrict:'A',require:'^mdChips',scope:!1,link:e}}t.$inject=['$timeout'],e.module('material.components.chips').directive('mdChipRemove',t)}(),function(){function t(t){function e(e,n,r){var i=e.$parent.$mdChipsCtrl,o=i.parent.$new(!1,i.parent);o.$$replacedScope=e,o.$chip=e.$chip,o.$index=e.$index,o.$mdChipsCtrl=i;var a=i.$scope.$eval(r.mdChipTransclude);n.html(a),t(n.contents())(o)}return{restrict:'EA',terminal:!0,link:e,scope:!1}}t.$inject=['$compile'],e.module('material.components.chips').directive('mdChipTransclude',t)}(),function(){function t(t,e,r,i,o,a,s){this.$timeout=a,this.$mdConstant=r,this.$scope=t,this.parent=t.$parent,this.$mdUtil=s,this.$log=i,this.$element=o,this.$attrs=e,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=s.parseAttributeBoolean(e.mdEnableChipEdit),this.addOnBlur=s.parseAttributeBoolean(e.mdAddOnBlur),this.inputAriaLabel='Chips input.',this.containerHint='Chips container. Use arrow keys to select chips.',this.deleteHint='Press delete to remove this chip.',this.deleteButtonLabel='Remove',this.chipBuffer='',this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId='',this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=n,this.init()}t.$inject=['$scope','$attrs','$mdConstant','$log','$element','$timeout','$mdUtil'];var n=300;e.module('material.components.chips').controller('MdChipsCtrl',t),t.prototype.init=function(){var t=this;t.wrapperId='_md-chips-wrapper-'+t.$mdUtil.nextUid(),t.$scope.$watchCollection('$mdChipsCtrl.items',function(){t.setupInputAria(),t.setupWrapperAria()}),t.$attrs.$observe('mdChipAppendDelay',function(e){t.chipAppendDelay=parseInt(e)||n})},t.prototype.setupInputAria=function(){var t=this.$element.find('input');t&&(t.attr('role','textbox'),t.attr('aria-multiline',!0))},t.prototype.setupWrapperAria=function(){var t=this,e=this.$element.find('md-chips-wrap');this.items&&this.items.length?(e.attr('role','listbox'),this.contentIds=this.items.map(function(){return t.wrapperId+'-chip-'+t.$mdUtil.nextUid()}),e.attr('aria-owns',this.contentIds.join(' '))):(e.removeAttr('role'),e.removeAttr('aria-owns'))},t.prototype.inputKeydown=function(t){var e=this.getChipBuffer();if(!(this.autocompleteCtrl&&t.isDefaultPrevented&&t.isDefaultPrevented())){if(t.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(t.target))return;return t.preventDefault(),t.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(t.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!e)return;if(t.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(e.trim()),this.resetChipBuffer(),!1}}},t.prototype.getCursorPosition=function(t){try{if(t.selectionStart===t.selectionEnd)return t.selectionStart}catch(e){if(!t.value)return 0}},t.prototype.updateChipContents=function(t,e){t>=0&&t<this.items.length&&(this.items[t]=e,this.ngModelCtrl.$setDirty())},t.prototype.isEditingChip=function(){return!!this.$element[0].querySelector('._md-chip-editing')},t.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!e.isDefined(this.removable)||this.removable)},t.prototype.chipKeydown=function(t){if(!this.getChipBuffer()&&!this.isEditingChip())switch(t.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(t.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:t.preventDefault(),(this.selectedChip<0||this.readonly&&0==this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:t.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;t.preventDefault(),this.onFocus()}},t.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(''==this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},t.prototype.removeAndSelectAdjacentChip=function(t){var e=this,n=e.getAdjacentChipIndex(t);this.$element[0].querySelector('md-chips-wrap'),this.$element[0].querySelector('md-chip[index="'+t+'"]');e.removeChip(t),e.$timeout(function(){e.$timeout(function(){e.selectAndFocusChipSafe(n)})})},t.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},t.prototype.getAdjacentChipIndex=function(t){var e=this.items.length-1;return 0==e?-1:t==e?t-1:t},t.prototype.appendChip=function(t){if(this.shouldFocusLastChip=!0,this.useTransformChip&&this.transformChip){var n=this.transformChip({$chip:t});e.isDefined(n)&&(t=n)}if(e.isObject(t)){if(this.items.some(function(n){return e.equals(t,n)}))return}if(!(null==t||this.items.indexOf(t)+1)){var r=this.items.push(t),i=r-1;this.ngModelCtrl.$setDirty(),this.validateModel(),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:t,$index:i})}},t.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},t.prototype.useOnAddExpression=function(){this.useOnAdd=!0},t.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},t.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},t.prototype.getChipBuffer=function(){var t=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return e.isString(t)?t:''},t.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(''),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value='':this.chipBuffer=''},t.prototype.hasMaxChipsReached=function(){return e.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),this.maxChips>0&&this.items.length>=this.maxChips},t.prototype.validateModel=function(){this.ngModelCtrl.$setValidity('md-max-chips',!this.hasMaxChipsReached())},t.prototype.removeChip=function(t){var e=this.items.splice(t,1);this.ngModelCtrl.$setDirty(),this.validateModel(),e&&e.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:e[0],$index:t})},t.prototype.removeChipAndFocusInput=function(t){this.removeChip(t),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},t.prototype.selectAndFocusChipSafe=function(t){if(!this.items.length||-1===t)return this.focusInput();if(t>=this.items.length){if(!this.readonly)return this.onFocus();t=0}t=Math.max(t,0),t=Math.min(t,this.items.length-1),this.selectChip(t),this.focusChip(t)},t.prototype.focusLastChipThenInput=function(){var t=this;t.shouldFocusLastChip=!1,t.focusChip(this.items.length-1),t.$timeout(function(){t.focusInput()},t.chipAppendDelay)},t.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},t.prototype.selectChip=function(t){t>=-1&&t<=this.items.length?(this.selectedChip=t,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[t]})):this.$log.warn('Selected Chip index out of bounds; ignoring.')},t.prototype.selectAndFocusChip=function(t){this.selectChip(t),-1!=t&&this.focusChip(t)},t.prototype.focusChip=function(t){var e=this.$element[0].querySelector('md-chip[index="'+t+'"] .md-chip-content');this.ariaTabIndex=t,e.focus()},t.prototype.configureNgModel=function(t){this.ngModelCtrl=t;var e=this;t.$render=function(){e.items=e.ngModelCtrl.$viewValue}},t.prototype.onFocus=function(){var t=this.$element[0].querySelector('input');t&&t.focus(),this.resetSelectedChip()},t.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},t.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},t.prototype.configureUserInput=function(t){this.userInputElement=t;var n=t.controller('ngModel');n!=this.ngModelCtrl&&(this.userInputNgModelCtrl=n);var r=this.$scope,i=this,o=function(t,n){r.$evalAsync(e.bind(i,n,t))};t.attr({tabindex:0}).on('keydown',function(t){o(t,i.inputKeydown)}).on('focus',function(t){o(t,i.onInputFocus)}).on('blur',function(t){o(t,i.onInputBlur)})},t.prototype.configureAutocomplete=function(t){t&&(this.autocompleteCtrl=t,t.registerSelectedItemWatcher(e.bind(this,function(t){if(t){if(this.hasMaxChipsReached())return;this.appendChip(t),this.resetChipBuffer()}})),this.$element.find('input').on('focus',e.bind(this,this.onInputFocus)).on('blur',e.bind(this,this.onInputBlur)))},t.prototype.shouldAddOnBlur=function(){this.validateModel();var t=this.getChipBuffer().trim(),e=this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(e=e&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&t&&e&&!n},t.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0},t.prototype.contentIdFor=function(t){return this.contentIds[t]}}(),function(){function t(t,e,a,s,c,u){function l(n,r){function i(t){if(r.ngModel){var e=o[0].querySelector(t);return e&&e.outerHTML}}var o=r.$mdUserTemplate;r.$mdUserTemplate=null;var l=i('md-chips>md-chip-template'),f=e.prefixer().buildList('md-chip-remove').map(function(t){return'md-chips>*['+t+']'}).join(','),m=i(f)||d.remove,p=l||d.default,h=i('md-chips>md-autocomplete')||i('md-chips>input')||d.input,v=o.find('md-chip');return o[0].querySelector('md-chip-template>*[md-chip-remove]')&&s.warn('invalid placement of md-chip-remove within md-chip-template.'),function(n,i,o,s){e.initOptionalProperties(n,r),t(i);var f=s[0];if(l&&(f.enableChipEdit=!1),f.chipContentsTemplate=p,f.chipRemoveTemplate=m,f.chipInputTemplate=h,f.mdCloseIcon=u.mdClose,i.attr({tabindex:-1}).on('focus',function(){f.onFocus()}),r.ngModel&&(f.configureNgModel(i.controller('ngModel')),o.mdTransformChip&&f.useTransformChipExpression(),o.mdOnAppend&&f.useOnAppendExpression(),o.mdOnAdd&&f.useOnAddExpression(),o.mdOnRemove&&f.useOnRemoveExpression(),o.mdOnSelect&&f.useOnSelectExpression(),h!=d.input&&n.$watch('$mdChipsCtrl.readonly',function(t){t||e.nextTick(function(){if(0===h.indexOf('<md-autocomplete')){var t=i.find('md-autocomplete');f.configureAutocomplete(t.controller('mdAutocomplete'))}f.configureUserInput(i.find('input'))})}),e.nextTick(function(){var t=i.find('input');t&&t.toggleClass('md-input',!0)})),v.length>0){var g=a(v.clone())(n.$parent);c(function(){i.find('md-chips-wrap').prepend(g)})}}}var d=function(){return{chips:e.processTemplate(n),input:e.processTemplate(r),default:e.processTemplate(i),remove:e.processTemplate(o)}}();return{template:function(t,e){return e.$mdUserTemplate=t.clone(),d.chips},require:['mdChips'],restrict:'E',controller:'MdChipsCtrl',controllerAs:'$mdChipsCtrl',bindToController:!0,compile:l,scope:{readonly:'=readonly',removable:'=mdRemovable',placeholder:'@',secondaryPlaceholder:'@',maxChips:'@mdMaxChips',transformChip:'&mdTransformChip',onAppend:'&mdOnAppend',onAdd:'&mdOnAdd',onRemove:'&mdOnRemove',onSelect:'&mdOnSelect',inputAriaLabel:'@',containerHint:'@',deleteHint:'@',deleteButtonLabel:'@',separatorKeys:'=?mdSeparatorKeys',requireMatch:'=?mdRequireMatch',chipAppendDelayString:'@?mdChipAppendDelay'}}}t.$inject=['$mdTheming','$mdUtil','$compile','$log','$timeout','$$mdSvgRegistry'],e.module('material.components.chips').directive('mdChips',t);var n='      <md-chips-wrap          id="{{$mdChipsCtrl.wrapperId}}"          tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}"          ng-keydown="$mdChipsCtrl.chipKeydown($event)"          ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(),                       \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly,                      \'md-removable\': $mdChipsCtrl.isRemovable() }"          aria-setsize="{{$mdChipsCtrl.items.length}}"          class="md-chips">        <span ng-if="$mdChipsCtrl.readonly" class="md-visually-hidden">          {{$mdChipsCtrl.containerHint}}        </span>        <md-chip ng-repeat="$chip in $mdChipsCtrl.items"            index="{{$index}}"            ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}">          <div class="md-chip-content"              tabindex="{{$mdChipsCtrl.ariaTabIndex == $index ? 0 : -1}}"              id="{{$mdChipsCtrl.contentIdFor($index)}}"              role="option"              aria-selected="{{$mdChipsCtrl.selectedChip == $index}}"               aria-posinset="{{$index}}"              ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)"              ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"              md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>          <div ng-if="$mdChipsCtrl.isRemovable()"               class="md-chip-remove-container"               tabindex="-1"               md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>        </md-chip>        <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl">          <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>        </div>      </md-chips-wrap>',r='        <input            class="md-input"            tabindex="0"            aria-label="{{$mdChipsCtrl.inputAriaLabel}}"             placeholder="{{$mdChipsCtrl.getPlaceholder()}}"            ng-model="$mdChipsCtrl.chipBuffer"            ng-focus="$mdChipsCtrl.onInputFocus()"            ng-blur="$mdChipsCtrl.onInputBlur()"            ng-keydown="$mdChipsCtrl.inputKeydown($event)">',i='      <span>{{$chip}}</span>',o='      <button          class="md-chip-remove"          ng-if="$mdChipsCtrl.isRemovable()"          ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"          type="button"          tabindex="-1">        <md-icon md-svg-src="{{ $mdChipsCtrl.mdCloseIcon }}"></md-icon>        <span class="md-visually-hidden">          {{$mdChipsCtrl.deleteButtonLabel}}        </span>      </button>'}(),function(){function t(){this.selectedItem=null,this.searchText=''}e.module('material.components.chips').controller('MdContactChipsCtrl',t),t.prototype.queryContact=function(t){return this.contactQuery({$query:t})},t.prototype.itemName=function(t){return t[this.contactName]}}(),function(){function t(t,e){function r(n,r){return function(n,i,o,a){var s=a;e.initOptionalProperties(n,r),t(i),i.attr('tabindex','-1'),o.$observe('mdChipAppendDelay',function(t){s.chipAppendDelay=t})}}return{template:function(t,e){return n},restrict:'E',controller:'MdContactChipsCtrl',controllerAs:'$mdContactChipsCtrl',bindToController:!0,compile:r,scope:{contactQuery:'&mdContacts',placeholder:'@',secondaryPlaceholder:'@',contactName:'@mdContactName',contactImage:'@mdContactImage',contactEmail:'@mdContactEmail',contacts:'=ngModel',requireMatch:'=?mdRequireMatch',minLength:'=?mdMinLength',highlightFlags:'@?mdHighlightFlags',chipAppendDelay:'@?mdChipAppendDelay'}}}t.$inject=['$mdTheming','$mdUtil'],e.module('material.components.chips').directive('mdContactChips',t);var n='      <md-chips class="md-contact-chips"          ng-model="$mdContactChipsCtrl.contacts"          md-require-match="$mdContactChipsCtrl.requireMatch"          md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}"           md-autocomplete-snap>          <md-autocomplete              md-menu-class="md-contact-chips-suggestions"              md-selected-item="$mdContactChipsCtrl.selectedItem"              md-search-text="$mdContactChipsCtrl.searchText"              md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"              md-item-text="$mdContactChipsCtrl.itemName(item)"              md-no-cache="true"              md-min-length="$mdContactChipsCtrl.minLength"              md-autoselect              placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?                  $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">            <div class="md-contact-suggestion">              <img                   ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"                  alt="{{item[$mdContactChipsCtrl.contactName]}}"                  ng-if="item[$mdContactChipsCtrl.contactImage]" />              <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"                    md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}">                {{item[$mdContactChipsCtrl.contactName]}}              </span>              <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>            </div>          </md-autocomplete>          <md-chip-template>            <div class="md-contact-avatar">              <img                   ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"                  alt="{{$chip[$mdContactChipsCtrl.contactName]}}"                  ng-if="$chip[$mdContactChipsCtrl.contactImage]" />            </div>            <div class="md-contact-name">              {{$chip[$mdContactChipsCtrl.contactName]}}            </div>          </md-chip-template>      </md-chips>'}(),function(){!function(){function t(){return{template:function(t,e){return'<div ng-switch="calendarCtrl.currentView" '+(e.hasOwnProperty('ngIf')?'':'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:'=mdMinDate',maxDate:'=mdMaxDate',dateFilter:'=mdDateFilter',_currentView:'@mdCurrentView'},require:['ngModel','mdCalendar'],controller:n,controllerAs:'calendarCtrl',bindToController:!0,link:function(t,e,n,r){var i=r[0];r[1].configureNgModel(i)}}}function n(t,n,i,o,a,s,c,u,l){s(t),this.$element=t,this.$scope=n,this.dateUtil=i,this.$mdUtil=o,this.keyCode=a.KEY_CODE,this.$$rAF=c,this.$mdDateLocale=l,this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=null,this.SELECTED_DATE_CLASS='md-calendar-selected-date',this.TODAY_CLASS='md-calendar-date-today',this.FOCUSED_DATE_CLASS='md-focus',this.id=r++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,u.tabindex||t.attr('tabindex','-1');var d,f=e.bind(this,this.handleKeyEvent);d=t.parent().hasClass('md-datepicker-calendar')?e.element(document.body):t,d.on('keydown',f),n.$on('$destroy',function(){d.off('keydown',f)}),1===e.version.major&&e.version.minor<=4&&this.$onInit()}n.$inject=['$element','$scope','$$mdDateUtil','$mdUtil','$mdConstant','$mdTheming','$$rAF','$attrs','$mdDateLocale'],e.module('material.components.datepicker').directive('mdCalendar',t);var r=0;n.prototype.$onInit=function(){this.currentView=this._currentView||'month';var t=this.$mdDateLocale;this.minDate&&this.minDate>t.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=t.firstRenderableDate,this.maxDate&&this.maxDate<t.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=t.lastRenderableDate},n.prototype.configureNgModel=function(t){var e=this;e.ngModelCtrl=t,e.$mdUtil.nextTick(function(){e.isInitialized=!0}),t.$render=function(){var t=this.$viewValue;e.$scope.$broadcast('md-calendar-parent-changed',t),e.selectedDate||(e.selectedDate=t),e.displayDate||(e.displayDate=e.selectedDate||e.today)}},n.prototype.setNgModelValue=function(t){var e=this.dateUtil.createDateAtMidnight(t);return this.focus(e),this.$scope.$emit('md-calendar-change',e),this.ngModelCtrl.$setViewValue(e),this.ngModelCtrl.$render(),e},n.prototype.setCurrentView=function(t,n){var r=this;r.$mdUtil.nextTick(function(){r.currentView=t,n&&(r.displayDate=e.isDate(n)?n:new Date(n))})},n.prototype.focus=function(t){if(this.dateUtil.isValidDate(t)){var e=this.$element[0].querySelector('.md-focus');e&&e.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(t,this.currentView),r=document.getElementById(n);r&&(r.classList.add(this.FOCUSED_DATE_CLASS),r.focus(),this.displayDate=t)}else{var i=this.$element[0].querySelector('[ng-switch]');i&&i.focus()}},n.prototype.getActionFromKeyEvent=function(t){var e=this.keyCode;switch(t.which){case e.ENTER:return'select';case e.RIGHT_ARROW:return'move-right';case e.LEFT_ARROW:return'move-left';case e.DOWN_ARROW:return t.metaKey?'move-page-down':'move-row-down';case e.UP_ARROW:return t.metaKey?'move-page-up':'move-row-up';case e.PAGE_DOWN:return'move-page-down';case e.PAGE_UP:return'move-page-up';case e.HOME:return'start';case e.END:return'end';default:return null}},n.prototype.handleKeyEvent=function(t){var e=this;this.$scope.$apply(function(){if(t.which==e.keyCode.ESCAPE||t.which==e.keyCode.TAB)return e.$scope.$emit('md-calendar-close'),void(t.which==e.keyCode.TAB&&t.preventDefault());var n=e.getActionFromKeyEvent(t);n&&(t.preventDefault(),t.stopPropagation(),e.$scope.$broadcast('md-calendar-parent-action',n))})},n.prototype.hideVerticalScrollbar=function(t){function e(){var e=n.width||340,r=n.scrollbarWidth,o=t.calendarScroller;i.style.width=e+'px',o.style.width=e+r+'px',o.style.paddingRight=r+'px'}var n=this,r=t.$element[0],i=r.querySelector('.md-calendar-scroll-mask');n.width>0?e():n.$$rAF(function(){var i=t.calendarScroller;n.scrollbarWidth=i.offsetWidth-i.clientWidth,n.width=r.querySelector('table').offsetWidth,e()})},n.prototype.getDateId=function(t,e){if(!e)throw new Error('A namespace for the date id has to be specified.');return['md',this.id,e,t.getFullYear(),t.getMonth(),t.getDate()].join('-')},n.prototype.updateVirtualRepeat=function(){var t=this.$scope,e=t.$on('$md-resize-enable',function(){t.$$phase||t.$apply(),e()})}}()}(),function(){!function(){function t(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(i-r)+'"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="'+r+'"><tr aria-hidden="true" style="height:'+r+'px;"></tr></tbody></table></md-virtual-repeat-container></div>',require:['^^mdCalendar','mdCalendarMonth'],controller:n,controllerAs:'monthCtrl',bindToController:!0,link:function(t,e,n,r){var i=r[0];r[1].initialize(i)}}}function n(t,e,n,r,i,o){this.$element=t,this.$scope=e,this.$animate=n,this.$q=r,this.dateUtil=i,this.dateLocale=o,this.calendarScroller=t[0].querySelector('.md-virtual-repeat-scroller'),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var t=i.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(t)})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView('year',i.getTimestampFromNode(this))}}n.$inject=['$element','$scope','$animate','$q','$$mdDateUtil','$mdDateLocale'],e.module('material.components.datepicker').directive('mdCalendarMonth',t);var r=265,i=45;n.prototype.initialize=function(t){this.items={length:this.dateUtil.getMonthDistance(t.firstRenderableDate,t.lastRenderableDate)+2},this.calendarCtrl=t,this.attachScopeListeners(),t.updateVirtualRepeat(),t.ngModelCtrl&&t.ngModelCtrl.$render()},n.prototype.getSelectedMonthIndex=function(){var t=this.calendarCtrl;return this.dateUtil.getMonthDistance(t.firstRenderableDate,t.displayDate||t.selectedDate||t.today)},n.prototype.changeSelectedDate=function(t){var e=this,n=e.calendarCtrl,r=n.selectedDate;n.selectedDate=t,this.changeDisplayDate(t).then(function(){var e=n.SELECTED_DATE_CLASS;if(r){var i=document.getElementById(n.getDateId(r,'month'));i&&(i.classList.remove(e),i.setAttribute('aria-selected','false'))}if(t){var o=document.getElementById(n.getDateId(t,'month'));o&&(o.classList.add(e),o.setAttribute('aria-selected','true'))}})},n.prototype.changeDisplayDate=function(t){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(t)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var e=this.animateDateChange(t);this.calendarCtrl.displayDate=t;var n=this;return e.then(function(){n.isMonthTransitionInProgress=!1}),e},n.prototype.animateDateChange=function(t){if(this.dateUtil.isValidDate(t)){var e=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,t);this.calendarScroller.scrollTop=e*r}return this.$q.when()},n.prototype.buildWeekHeader=function(){for(var t=this.dateLocale.firstDayOfWeek,e=this.dateLocale.shortDays,n=document.createElement('tr'),r=0;r<7;r++){var i=document.createElement('th');i.textContent=e[(r+t)%7],n.appendChild(i)}this.$element.find('thead').append(n)},n.prototype.attachScopeListeners=function(){var t=this;t.$scope.$on('md-calendar-parent-changed',function(e,n){t.changeSelectedDate(n)}),t.$scope.$on('md-calendar-parent-action',e.bind(this,this.handleKeyEvent))},n.prototype.handleKeyEvent=function(t,e){var n=this.calendarCtrl,r=n.displayDate;if('select'===e)n.setNgModelValue(r);else{var i=null,o=this.dateUtil;switch(e){case'move-right':i=o.incrementDays(r,1);break;case'move-left':i=o.incrementDays(r,-1);break;case'move-page-down':i=o.incrementMonths(r,1);break;case'move-page-up':i=o.incrementMonths(r,-1);break;case'move-row-down':i=o.incrementDays(r,7);break;case'move-row-up':i=o.incrementDays(r,-7);break;case'start':i=o.getFirstDateOfMonth(r);break;case'end':i=o.getLastDateOfMonth(r)}i&&(i=this.dateUtil.clampDate(i,n.minDate,n.maxDate),this.changeDisplayDate(i).then(function(){n.focus(i)}))}}}()}(),function(){!function(){function t(t,r){var i=t('<md-icon md-svg-src="'+r.mdTabsArrow+'"></md-icon>')({})[0];return{require:['^^mdCalendar','^^mdCalendarMonth','mdCalendarMonthBody'],scope:{offset:'=mdMonthOffset'},controller:n,controllerAs:'mdMonthBodyCtrl',bindToController:!0,link:function(t,n,r,o){var a=o[0],s=o[1],c=o[2];c.calendarCtrl=a,c.monthCtrl=s,c.arrowIcon=i.cloneNode(!0),t.$watch(function(){return c.offset},function(t){e.isNumber(t)&&c.generateContent()})}}}function n(t,e,n){this.$element=t,this.dateUtil=e,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}t.$inject=['$compile','$$mdSvgRegistry'],n.$inject=['$element','$$mdDateUtil','$mdDateLocale'],e.module('material.components.datepicker').directive('mdCalendarMonthBody',t),n.prototype.generateContent=function(){var t=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(t)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(t){var e=this.monthCtrl,n=this.calendarCtrl,r=document.createElement('td');if(r.tabIndex=-1,r.classList.add('md-calendar-date'),r.setAttribute('role','gridcell'),t){r.setAttribute('tabindex','-1'),r.setAttribute('aria-label',this.dateLocale.longDateFormatter(t)),r.id=n.getDateId(t,'month'),r.setAttribute('data-timestamp',t.getTime()),this.dateUtil.isSameDay(t,n.today)&&r.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(t,n.selectedDate)&&(r.classList.add(n.SELECTED_DATE_CLASS),r.setAttribute('aria-selected','true'));var i=this.dateLocale.dates[t.getDate()];if(this.isDateEnabled(t)){var o=document.createElement('span');o.classList.add('md-calendar-date-selection-indicator'),o.textContent=i,r.appendChild(o),r.addEventListener('click',e.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(t,n.displayDate)&&(this.focusAfterAppend=r)}else r.classList.add('md-calendar-date-disabled'),r.textContent=i}return r},n.prototype.isDateEnabled=function(t){return this.dateUtil.isDateWithinRange(t,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!e.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(t))},n.prototype.buildDateRow=function(t){var e=document.createElement('tr');return e.setAttribute('role','row'),e.setAttribute('aria-label',this.dateLocale.weekNumberFormatter(t)),e},n.prototype.buildCalendarForMonth=function(t){var e=this.dateUtil.isValidDate(t)?t:new Date,n=this.dateUtil.getFirstDateOfMonth(e),r=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(e),o=document.createDocumentFragment(),a=1,s=this.buildDateRow(a);o.appendChild(s);var c=this.offset===this.monthCtrl.items.length-1,u=0,l=document.createElement('td'),d=document.createElement('span');if(d.textContent=this.dateLocale.monthHeaderFormatter(e),l.appendChild(d),l.classList.add('md-calendar-month-label'),this.calendarCtrl.maxDate&&n>this.calendarCtrl.maxDate?l.classList.add('md-calendar-month-label-disabled'):(l.addEventListener('click',this.monthCtrl.headerClickHandler),l.setAttribute('data-timestamp',n.getTime()),l.setAttribute('aria-label',this.dateLocale.monthFormatter(e)),l.appendChild(this.arrowIcon.cloneNode(!0))),r<=2){l.setAttribute('colspan','7');var f=this.buildDateRow();if(f.appendChild(l),o.insertBefore(f,s),c)return o}else u=3,l.setAttribute('colspan','3'),s.appendChild(l);for(var m=u;m<r;m++)s.appendChild(this.buildDateCell());for(var p=r,h=n,v=1;v<=i;v++){if(7===p){if(c)return o;p=0,a++,s=this.buildDateRow(a),o.appendChild(s)}h.setDate(v);var g=this.buildDateCell(h);s.appendChild(g),p++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;o.childNodes.length<6;){for(var $=this.buildDateRow(),b=0;b<7;b++)$.appendChild(this.buildDateCell());o.appendChild($)}return o},n.prototype.getLocaleDay_=function(t){return(t.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}()}(),function(){!function(){function t(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="'+r+'"><tr aria-hidden="true" style="height:'+r+'px;"></tr></tbody></table></md-virtual-repeat-container></div>',require:['^^mdCalendar','mdCalendarYear'],controller:n,controllerAs:'yearCtrl',bindToController:!0,link:function(t,e,n,r){var i=r[0];r[1].initialize(i)}}}function n(t,e,n,r,i){this.$element=t,this.$scope=e,this.$animate=n,this.$q=r,this.dateUtil=i,this.calendarScroller=t[0].querySelector('.md-virtual-repeat-scroller'),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var o=this;this.cellClickHandler=function(){o.calendarCtrl.setCurrentView('month',i.getTimestampFromNode(this))}}n.$inject=['$element','$scope','$animate','$q','$$mdDateUtil'],e.module('material.components.datepicker').directive('mdCalendarYear',t);var r=88;n.prototype.initialize=function(t){this.items={length:this.dateUtil.getYearDistance(t.firstRenderableDate,t.lastRenderableDate)+1},this.calendarCtrl=t,this.attachScopeListeners(),t.updateVirtualRepeat(),t.ngModelCtrl&&t.ngModelCtrl.$render()},n.prototype.getFocusedYearIndex=function(){var t=this.calendarCtrl;return this.dateUtil.getYearDistance(t.firstRenderableDate,t.displayDate||t.selectedDate||t.today)},n.prototype.changeDate=function(t){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(t)&&!this.isMonthTransitionInProgress){var e=this,n=this.animateDateChange(t);return e.isMonthTransitionInProgress=!0,e.calendarCtrl.displayDate=t,n.then(function(){e.isMonthTransitionInProgress=!1})}},n.prototype.animateDateChange=function(t){if(this.dateUtil.isValidDate(t)){var e=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,t);this.calendarScroller.scrollTop=e*r}return this.$q.when()},n.prototype.handleKeyEvent=function(t,e){var n=this.calendarCtrl,r=n.displayDate;if('select'===e)this.changeDate(r).then(function(){n.setCurrentView('month',r),n.focus(r)});else{var i=null,o=this.dateUtil;switch(e){case'move-right':i=o.incrementMonths(r,1);break;case'move-left':i=o.incrementMonths(r,-1);break;case'move-row-down':i=o.incrementMonths(r,6);break;case'move-row-up':i=o.incrementMonths(r,-6)}if(i){var a=n.minDate?o.getFirstDateOfMonth(n.minDate):null,s=n.maxDate?o.getFirstDateOfMonth(n.maxDate):null;i=o.getFirstDateOfMonth(this.dateUtil.clampDate(i,a,s)),this.changeDate(i).then(function(){n.focus(i)})}}},n.prototype.attachScopeListeners=function(){var t=this;t.$scope.$on('md-calendar-parent-changed',function(e,n){t.changeDate(n)}),t.$scope.$on('md-calendar-parent-action',e.bind(t,t.handleKeyEvent))}}()}(),function(){!function(){function t(){return{require:['^^mdCalendar','^^mdCalendarYear','mdCalendarYearBody'],scope:{offset:'=mdYearOffset'},controller:n,controllerAs:'mdYearBodyCtrl',bindToController:!0,link:function(t,n,r,i){var o=i[0],a=i[1],s=i[2];s.calendarCtrl=o,s.yearCtrl=a,t.$watch(function(){return s.offset},function(t){e.isNumber(t)&&s.generateContent()})}}}function n(t,e,n){this.$element=t,this.dateUtil=e,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}n.$inject=['$element','$$mdDateUtil','$mdDateLocale'],e.module('material.components.datepicker').directive('mdCalendarYearBody',t),n.prototype.generateContent=function(){var t=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(t)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildMonthCell=function(t,e){var n=this.calendarCtrl,r=this.yearCtrl,i=this.buildBlankCell(),o=new Date(t,e,1);i.setAttribute('aria-label',this.dateLocale.monthFormatter(o)),i.id=n.getDateId(o,'year'),i.setAttribute('data-timestamp',o.getTime()),this.dateUtil.isSameMonthAndYear(o,n.today)&&i.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(o,n.selectedDate)&&(i.classList.add(n.SELECTED_DATE_CLASS),i.setAttribute('aria-selected','true'));var a=this.dateLocale.shortMonths[e];if(this.dateUtil.isMonthWithinRange(o,n.minDate,n.maxDate)){var s=document.createElement('span');s.classList.add('md-calendar-date-selection-indicator'),s.textContent=a,i.appendChild(s),i.addEventListener('click',r.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(o,n.displayDate)&&(this.focusAfterAppend=i)}else i.classList.add('md-calendar-date-disabled'),i.textContent=a;return i},n.prototype.buildBlankCell=function(){var t=document.createElement('td');return t.tabIndex=-1,t.classList.add('md-calendar-date'),t.setAttribute('role','gridcell'),t.setAttribute('tabindex','-1'),t},n.prototype.buildCalendarForYear=function(t){var e,n=t.getFullYear(),r=document.createDocumentFragment(),i=document.createElement('tr'),o=document.createElement('td');for(o.className='md-calendar-month-label',o.textContent=n,i.appendChild(o),e=0;e<6;e++)i.appendChild(this.buildMonthCell(n,e));r.appendChild(i);var a=document.createElement('tr');for(a.appendChild(this.buildBlankCell()),e=6;e<12;e++)a.appendChild(this.buildMonthCell(n,e));return r.appendChild(a),r}}()}(),function(){!function(){e.module('material.components.datepicker').config(['$provide',function(t){function e(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.msgCalendar='',this.msgOpenCalendar=''}e.prototype.$get=function(t,e){function n(t,n){if(!t)return'';var r=t.toLocaleTimeString(),i=t;return 0!==t.getHours()||-1===r.indexOf('11:')&&-1===r.indexOf('23:')||(i=new Date(t.getFullYear(),t.getMonth(),t.getDate(),1,0,0)),e('date')(i,'M/d/yyyy',n)}function r(t){return new Date(t)}function i(t){return t=t.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ \.,]+|[\/\-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(t)}function o(t){return p.shortMonths[t.getMonth()]+' '+t.getFullYear()}function a(t){return p.months[t.getMonth()]+' '+t.getFullYear()}function s(t){return'Week '+t}function c(t){return[p.days[t.getDay()],p.months[t.getMonth()],p.dates[t.getDate()],t.getFullYear()].join(' ')}for(var u=t.DATETIME_FORMATS.SHORTDAY.map(function(t){return t.substring(0,1)}),l=Array(32),d=1;d<=31;d++)l[d]=d;var f=new Date(1880,0,1),m=new Date(f.getFullYear()+250,0,1),p={months:this.months||t.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||t.DATETIME_FORMATS.SHORTMONTH,days:this.days||t.DATETIME_FORMATS.DAY,shortDays:this.shortDays||u,dates:this.dates||l,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||n,parseDate:this.parseDate||r,isDateComplete:this.isDateComplete||i,monthHeaderFormatter:this.monthHeaderFormatter||o,monthFormatter:this.monthFormatter||a,weekNumberFormatter:this.weekNumberFormatter||s,longDateFormatter:this.longDateFormatter||c,msgCalendar:this.msgCalendar||'Calendar',msgOpenCalendar:this.msgOpenCalendar||'Open calendar',firstRenderableDate:this.firstRenderableDate||f,lastRenderableDate:this.lastRenderableDate||m};return p},e.prototype.$get.$inject=['$locale','$filter'],t.provider('$mdDateLocale',new e)}])}()}(),function(){!function(){e.module('material.components.datepicker').factory('$$mdDateUtil',function(){function t(t){return new Date(t.getFullYear(),t.getMonth(),1)}function n(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function r(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function i(t){return new Date(t.getFullYear(),t.getMonth()-1,1)}function o(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()}function a(t,e){return t.getDate()==e.getDate()&&o(t,e)}function s(t,e){return o(r(t),e)}function c(t,e){return o(e,i(t))}function u(t,e){return g((t.getTime()+e.getTime())/2)}function l(e){var n=t(e);return Math.floor((n.getDay()+e.getDate()-1)/7)}function d(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)}function f(t,e){var r=new Date(t.getFullYear(),t.getMonth()+e,1),i=n(r);return i<t.getDate()?r.setDate(i):r.setDate(t.getDate()),r}function m(t,e){return 12*(e.getFullYear()-t.getFullYear())+(e.getMonth()-t.getMonth())}function p(t){return new Date(t.getFullYear(),t.getMonth(),n(t))}function h(t){return t&&t.getTime&&!isNaN(t.getTime())}function v(t){h(t)&&t.setHours(0,0,0,0)}function g(t){var n;return n=e.isUndefined(t)?new Date:new Date(t),v(n),n}function $(t,e,n){var r=g(t),i=h(e)?g(e):null,o=h(n)?g(n):null;return(!i||i<=r)&&(!o||o>=r)}function b(t,e){return f(t,12*e)}function y(t,e){return e.getFullYear()-t.getFullYear()}function E(t,e,n){var r=t;return e&&t<e&&(r=new Date(e.getTime())),n&&t>n&&(r=new Date(n.getTime())),r}function w(t){if(t&&t.hasAttribute('data-timestamp'))return Number(t.getAttribute('data-timestamp'))}function C(t,e,n){var r=t.getMonth(),i=t.getFullYear();return(!e||e.getFullYear()<i||e.getMonth()<=r)&&(!n||n.getFullYear()>i||n.getMonth()>=r)}return{getFirstDateOfMonth:t,getNumberOfDaysInMonth:n,getDateInNextMonth:r,getDateInPreviousMonth:i,isInNextMonth:s,isInPreviousMonth:c,getDateMidpoint:u,isSameMonthAndYear:o,getWeekOfMonth:l,incrementDays:d,incrementMonths:f,getLastDateOfMonth:p,isSameDay:a,getMonthDistance:m,isValidDate:h,setDateTimeToMidnight:v,createDateAtMidnight:g,isDateWithinRange:$,incrementYears:b,getYearDistance:y,clampDate:E,getTimestampFromNode:w,isMonthWithinRange:C}})}()}(),function(){!function(){function n(t,n,i,c){return{template:function(e,n){var r=n.mdHideIcons,i=n.ariaLabel||n.mdPlaceholder,o='all'===r||'calendar'===r?'':'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+t.mdCalendar+'"></md-icon></md-button>',a='';return'all'!==r&&'triangle'!==r&&(a='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',e.addClass(s)),o+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(i?'aria-label="'+i+'" ':'')+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+a+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}"md-min-date="ctrl.minDate"md-max-date="ctrl.maxDate"md-date-filter="ctrl.dateFilter"ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:['ngModel','mdDatepicker','?^mdInputContainer','?^form'],scope:{minDate:'=mdMinDate',maxDate:'=mdMaxDate',placeholder:'@mdPlaceholder',currentView:'@mdCurrentView',dateFilter:'=mdDateFilter',isOpen:'=?mdIsOpen',debounceInterval:'=mdDebounceInterval',dateLocale:'=mdDateLocale'},controller:r,controllerAs:'ctrl',bindToController:!0,link:function(t,r,s,u){var l=u[0],d=u[1],f=u[2],m=u[3],p=n.parseAttributeBoolean(s.mdNoAsterisk);if(d.configureNgModel(l,f,c),f){var h=r[0].querySelector('.md-errors-spacer');h&&r.after(e.element('<div>').append(h)),f.setHasPlaceholder(s.mdPlaceholder),f.input=r,f.element.addClass(o).toggleClass(a,'calendar'!==s.mdHideIcons&&'all'!==s.mdHideIcons),f.label?p||s.$observe('required',function(t){f.label.toggleClass('md-required',!!t)}):i.expect(r,'aria-label',s.mdPlaceholder),t.$watch(f.isErrorGetter||function(){return l.$invalid&&(l.$touched||m&&m.$submitted)},f.setInvalid)}else if(m)var v=t.$watch(function(){return m.$submitted},function(t){t&&(d.updateErrorState(),v())})}}}function r(n,r,i,o,a,s,u,l,d,f,m){this.$window=o,this.dateUtil=d,this.$mdConstant=a,this.$mdUtil=u,this.$$rAF=f,this.$mdDateLocale=l,this.documentElement=e.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=r[0].querySelector('input'),this.ngInputElement=e.element(this.inputElement),this.inputContainer=r[0].querySelector('.md-datepicker-input-container'),this.calendarPane=r[0].querySelector('.md-datepicker-calendar-pane'),this.calendarButton=r[0].querySelector('.md-datepicker-button'),this.inputMask=e.element(r[0].querySelector('.md-datepicker-input-mask-opaque')),this.$element=r,this.$attrs=i,this.$scope=n,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(r[0].disabled||e.isString(i.disabled)),this.isCalendarOpen=!1,this.openOnFocus=i.hasOwnProperty('mdOpenOnFocus'),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId='md-date-pane-'+u.nextUid(),this.bodyClickHandler=e.bind(this,this.handleBodyClick),this.windowEventName=c.test(navigator.userAgent||navigator.vendor||t.opera)?'orientationchange':'resize',this.windowEventHandler=u.debounce(e.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=e.bind(this,this.handleWindowBlur),this.ngDateFilter=m('date'),this.leftMargin=20,this.topMargin=null,i.tabindex?(this.ngInputElement.attr('tabindex',i.tabindex),i.$set('tabindex',null)):i.$set('tabindex','-1'),i.$set('aria-owns',this.calendarPaneId),s(r),s(e.element(this.calendarPane));var p=this;n.$on('$destroy',function(){p.detachCalendarPane()}),i.mdIsOpen&&n.$watch('ctrl.isOpen',function(t){t?p.openCalendarPane({target:p.inputElement}):p.closeCalendarPane()}),1===e.version.major&&e.version.minor<=4&&this.$onInit()}r.$inject=['$scope','$element','$attrs','$window','$mdConstant','$mdTheming','$mdUtil','$mdDateLocale','$$mdDateUtil','$$rAF','$filter'],n.$inject=['$$mdSvgRegistry','$mdUtil','$mdAria','inputDirective'],e.module('material.components.datepicker').directive('mdDatepicker',n);var i='md-datepicker-open',o='_md-datepicker-floating-label',a='_md-datepicker-has-calendar-icon',s='_md-datepicker-has-triangle-icon',c=/ipad|iphone|ipod|android/i;r.prototype.$onInit=function(){this.locale=this.dateLocale?e.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},r.prototype.configureNgModel=function(t,n,r){this.ngModelCtrl=t,this.mdInputContainer=n,this.$attrs.$set('type','date'),r[0].link.pre(this.$scope,{on:e.noop,val:e.noop,0:{}},this.$attrs,[t]);var i=this;i.ngModelCtrl.$formatters.push(function(t){var n=e.isDefined(t)?Date.parse(t):null;if(!isNaN(n)&&e.isNumber(n)&&(t=new Date(n)),t&&!(t instanceof Date))throw Error('The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: '+typeof t);return i.onExternalChange(t),t}),t.$viewChangeListeners.unshift(e.bind(this,this.updateErrorState));var o=i.$mdUtil.getModelOption(t,'updateOn');o&&this.ngInputElement.on(o,e.bind(this.$element,this.$element.triggerHandler,o))},r.prototype.attachChangeListeners=function(){var t=this;t.$scope.$on('md-calendar-change',function(e,n){t.setModelValue(n),t.onExternalChange(n),t.closeCalendarPane()}),t.ngInputElement.on('input',e.bind(t,t.resizeInputElement));var n=e.isDefined(this.debounceInterval)?this.debounceInterval:500;t.ngInputElement.on('input',t.$mdUtil.debounce(t.handleInputEvent,n,t))},r.prototype.attachInteractionListeners=function(){var t=this,n=this.$scope,r=this.$mdConstant.KEY_CODE;t.ngInputElement.on('keydown',function(e){e.altKey&&e.keyCode==r.DOWN_ARROW&&(t.openCalendarPane(e),n.$digest())}),t.openOnFocus&&(t.ngInputElement.on('focus',e.bind(t,t.openCalendarPane)),e.element(t.$window).on('blur',t.windowBlurHandler),n.$on('$destroy',function(){e.element(t.$window).off('blur',t.windowBlurHandler)})),n.$on('md-calendar-close',function(){t.closeCalendarPane()})},r.prototype.installPropertyInterceptors=function(){var t=this;if(this.$attrs.ngDisabled){var e=this.$scope.$parent;e&&e.$watch(this.$attrs.ngDisabled,function(e){t.setDisabled(e)})}Object.defineProperty(this,'placeholder',{get:function(){return t.inputElement.placeholder},set:function(e){t.inputElement.placeholder=e||''}})},r.prototype.setDisabled=function(t){this.isDisabled=t,this.inputElement.disabled=t,this.calendarButton&&(this.calendarButton.disabled=t)},r.prototype.updateErrorState=function(t){var n=t||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(n)){if(n=this.dateUtil.createDateAtMidnight(n),this.dateUtil.isValidDate(this.minDate)){var r=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity('mindate',n>=r)}if(this.dateUtil.isValidDate(this.maxDate)){var i=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity('maxdate',n<=i)}e.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity('filtered',this.dateFilter(n))}else this.ngModelCtrl.$setValidity('valid',null==n);e.element(this.inputContainer).toggleClass('md-datepicker-invalid',!this.ngModelCtrl.$valid)},r.prototype.clearErrorState=function(){this.inputContainer.classList.remove('md-datepicker-invalid'),['mindate','maxdate','filtered','valid'].forEach(function(t){this.ngModelCtrl.$setValidity(t,!0)},this)},r.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},r.prototype.handleInputEvent=function(){var t=this.inputElement.value,e=t?this.locale.parseDate(t):null;this.dateUtil.setDateTimeToMidnight(e),(''==t||this.dateUtil.isValidDate(e)&&this.locale.isDateComplete(t)&&this.isDateEnabled(e))&&(this.setModelValue(e),this.date=e),this.updateErrorState(e)},r.prototype.isDateEnabled=function(t){return this.dateUtil.isDateWithinRange(t,this.minDate,this.maxDate)&&(!e.isFunction(this.dateFilter)||this.dateFilter(t))},r.prototype.attachCalendarPane=function(){var t=this.calendarPane,n=document.body;t.style.transform='',this.$element.addClass(i),this.mdInputContainer&&this.mdInputContainer.element.addClass(i),e.element(n).addClass('md-datepicker-is-showing');var r=this.inputContainer.getBoundingClientRect(),o=n.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop('clientHeight')-this.ngInputElement.prop('clientHeight'))/2);var a=r.top-o.top-this.topMargin,s=r.left-o.left-this.leftMargin,c=o.top<0&&0==document.body.scrollTop?-o.top:document.body.scrollTop,u=o.left<0&&0==document.body.scrollLeft?-o.left:document.body.scrollLeft,l=c+this.$window.innerHeight,d=u+this.$window.innerWidth;if(this.inputMask.css({position:'absolute',left:this.leftMargin+'px',top:this.topMargin+'px',width:r.width-1+'px',height:r.height-2+'px'}),s+360>d){if(d-360>0)s=d-360;else{s=u;var f=this.$window.innerWidth/360;t.style.transform='scale('+f+')'}t.classList.add('md-datepicker-pos-adjusted')}a+368>l&&l-368>c&&(a=l-368,t.classList.add('md-datepicker-pos-adjusted')),t.style.left=s+'px',t.style.top=a+'px',document.body.appendChild(t),this.$$rAF(function(){t.classList.add('md-pane-open')})},r.prototype.detachCalendarPane=function(){this.$element.removeClass(i),this.mdInputContainer&&this.mdInputContainer.element.removeClass(i),e.element(document.body).removeClass('md-datepicker-is-showing'),this.calendarPane.classList.remove('md-pane-open'),this.calendarPane.classList.remove('md-datepicker-pos-adjusted'),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},r.prototype.openCalendarPane=function(e){if(!this.isCalendarOpen&&!this.isDisabled&&!this.inputFocusedOnWindowBlur){this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=e.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr('ngFocus');var n=this;this.$mdUtil.nextTick(function(){n.documentElement.on('click touchstart',n.bodyClickHandler)},!1),t.addEventListener(this.windowEventName,this.windowEventHandler)}},r.prototype.closeCalendarPane=function(){function e(){n.isCalendarOpen=n.isOpen=!1}if(this.isCalendarOpen){var n=this;n.detachCalendarPane(),n.ngModelCtrl.$setTouched(),n.evalAttr('ngBlur'),n.documentElement.off('click touchstart',n.bodyClickHandler),t.removeEventListener(n.windowEventName,n.windowEventHandler),n.calendarPaneOpenedFrom.focus(),n.calendarPaneOpenedFrom=null,n.openOnFocus?n.$mdUtil.nextTick(e):e()}},r.prototype.getCalendarCtrl=function(){return e.element(this.calendarPane.querySelector('md-calendar')).controller('mdCalendar')},r.prototype.focusCalendar=function(){var t=this;this.$mdUtil.nextTick(function(){t.getCalendarCtrl().focus()},!1)},r.prototype.setFocused=function(t){t||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(t?'ngFocus':'ngBlur'),this.isFocused=t},r.prototype.handleBodyClick=function(t){if(this.isCalendarOpen){this.$mdUtil.getClosest(t.target,'md-calendar')||this.closeCalendarPane(),this.$scope.$digest()}},r.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},r.prototype.evalAttr=function(t){this.$attrs[t]&&this.$scope.$parent.$eval(this.$attrs[t])},r.prototype.setModelValue=function(t){var e=this.$mdUtil.getModelOption(this.ngModelCtrl,'timezone');this.ngModelCtrl.$setViewValue(this.ngDateFilter(t,'yyyy-MM-dd',e))},r.prototype.onExternalChange=function(t){var e=this.$mdUtil.getModelOption(this.ngModelCtrl,'timezone');this.date=t,this.inputElement.value=this.locale.formatDate(t,e),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!t),this.resizeInputElement(),this.updateErrorState()}}()}(),function(){function t(t,e,n,r){function i(r,i,o){function a(){if(!o.mdSvgIcon&&!o.mdSvgSrc){o.mdFontIcon&&(i.removeClass(s),i.addClass(o.mdFontIcon),s=o.mdFontIcon);var e=t.fontSet(o.mdFontSet);c!==e&&(i.removeClass(c),i.addClass(e),c=e)}}e(i);var s=o.mdFontIcon,c=t.fontSet(o.mdFontSet);!function(){o.mdSvgIcon||o.mdSvgSrc||(o.mdFontIcon&&i.addClass('md-font '+o.mdFontIcon),i.addClass(c))}(),o.$observe('mdFontIcon',a),o.$observe('mdFontSet',a);var u=(i[0].getAttribute(o.$attr.mdSvgSrc),o.$normalize(o.$attr.mdSvgIcon||o.$attr.mdSvgSrc||''));if(o.role||(n.expect(i,'role','img'),o.role='img'),'img'===o.role&&!o.ariaHidden&&!n.hasAriaLabel(i)){var l;o.alt?n.expect(i,'aria-label',o.alt):n.parentHasAriaLabel(i,2)?n.expect(i,'aria-hidden','true'):(l=o.mdFontIcon||o.mdSvgIcon||i.text())?n.expect(i,'aria-label',l):n.expect(i,'aria-hidden','true')}u&&o.$observe(u,function(e){i.empty(),e&&t(e).then(function(t){i.empty(),i.append(t)})})}return{restrict:'E',link:i}}e.module('material.components.icon').directive('mdIcon',['$mdIcon','$mdTheming','$mdAria','$sce',t])}(),function(){function n(){}function r(t,e){this.url=t,this.viewBoxSize=e||o.defaultViewBoxSize}function i(n,r,i,o,a,s){function c(t){return t=t||'',e.isString(t)||(t=s.getTrustedUrl(t)),b[t]?i.when(l(b[t])):E.test(t)||w.test(t)?p(t).then(d(t)):(-1==t.indexOf(':')&&(t='$default:'+t),(n[t]?f:m)(t).then(d(t)))}function u(t){if(e.isUndefined(t)||!(t&&t.length))return n.defaultFontSet;var r=t;return e.forEach(n.fontSets,function(e){e.alias==t&&(r=e.fontSet||r)}),r}function l(t){var n=t.clone(),r='_cache'+a.nextUid();return n.id&&(n.id+=r),e.forEach(n.querySelectorAll('[id]'),function(t){t.id+=r}),n}function d(t){return function(e){return b[t]=h(e)?e:new v(e,n[t]),b[t].clone()}}function f(t){var e=n[t];return p(e.url).then(function(t){return new v(t,e)})}function m(t){function e(e){var n=t.slice(t.lastIndexOf(':')+1),i=e.querySelector('#'+n);return i?new v(i,s):r(t)}function r(t){var e='icon '+t+' not found';return o.warn(e),i.reject(e||t)}var a=t.substring(0,t.lastIndexOf(':'))||'$default',s=n[a];return s?p(s.url).then(e):r(t)}function p(n){return w.test(n)?function(n){var r=w.exec(n),o=/base64/i.test(n),a=o?t.atob(r[2]):r[2];return i.when(e.element(a)[0])}(n):function(t){return i(function(n,i){var a=function(t){var n=e.isString(t)?t:t.message||t.data||t.statusText;o.warn(n),i(t)},s=function(r){y[t]||(y[t]=e.element('<div>').append(r)[0].querySelector('svg')),n(y[t])};r(t,!0).then(s,a)})}(n)}function h(t){return e.isDefined(t.element)&&e.isDefined(t.config)}function v(t,n){t&&'svg'!=t.tagName&&(t=e.element('<svg xmlns="http://www.w3.org/2000/svg">').append(t.cloneNode(!0))[0]),t.getAttribute('xmlns')||t.setAttribute('xmlns','http://www.w3.org/2000/svg'),this.element=t,this.config=n,this.prepare()}function g(){var t=this.config?this.config.viewBoxSize:n.defaultViewBoxSize;e.forEach({fit:'',height:'100%',width:'100%',preserveAspectRatio:'xMidYMid meet',viewBox:this.element.getAttribute('viewBox')||'0 0 '+t+' '+t,focusable:!1},function(t,e){this.element.setAttribute(e,t)},this)}function $(){return this.element.cloneNode(!0)}var b={},y={},E=/[-\w@:%\+.~#?&\/\/=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%\+.~#?&\/\/=]*)?/i,w=/^data:image\/svg\+xml[\s*;\w\-\=]*?(base64)?,(.*)$/i;return v.prototype={clone:$,prepare:g},c.fontSet=u,c}i.$inject=['config','$templateRequest','$q','$log','$mdUtil','$sce'],e.module('material.components.icon').constant('$$mdSvgRegistry',{mdTabsArrow:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=',mdClose:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=',mdCancel:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==',mdMenu:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+',mdToggleArrow:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==',mdCalendar:'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==',mdChecked:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+'}).provider('$mdIcon',n);var o={defaultViewBoxSize:24,defaultFontSet:'material-icons',fontSets:[]};n.prototype={icon:function(t,e,n){return-1==t.indexOf(':')&&(t='$default:'+t),o[t]=new r(e,n),this},iconSet:function(t,e,n){return o[t]=new r(e,n),this},defaultIconSet:function(t,e){return o.$default||(o.$default=new r(t,e)),o.$default.viewBoxSize=e||o.defaultViewBoxSize,this},defaultViewBoxSize:function(t){return o.defaultViewBoxSize=t,this},fontSet:function(t,e){return o.fontSets.push({alias:t,fontSet:e||t}),this},defaultFontSet:function(t){return o.defaultFontSet=t||'',this},defaultIconSize:function(t){return o.defaultIconSize=t,this},$get:['$templateRequest','$q','$log','$mdUtil','$sce',function(t,e,n,r,a){return i(o,t,e,n,r,a)}]}}(),function(){function t(t,r,i,o,a,s,c,u,l){var d,f,m=a.prefixer(),p=this;this.nestLevel=parseInt(r.mdNestLevel,10)||0,this.init=function(n,r){r=r||{},d=n,f=i[0].querySelector(m.buildSelector(['ng-click','ng-mouseenter'])),f.setAttribute('aria-expanded','false'),this.isInMenuBar=r.isInMenuBar,this.nestedMenus=a.nodesToArray(d[0].querySelectorAll('.md-nested-menu')),d.on('$mdInterimElementRemove',function(){p.isOpen=!1,a.nextTick(function(){p.onIsOpenChanged(p.isOpen)})}),a.nextTick(function(){p.onIsOpenChanged(p.isOpen)});var s='menu_container_'+a.nextUid();d.attr('id',s),e.element(f).attr({'aria-owns':s,'aria-haspopup':'true'}),o.$on('$destroy',e.bind(this,function(){this.disableHoverListener(),t.destroy()})),d.on('$destroy',function(){t.destroy()})};var h,v,g=[];this.enableHoverListener=function(){g.push(c.$on('$mdMenuOpen',function(t,e){d[0].contains(e[0])&&(p.currentlyOpenMenu=e.controller('mdMenu'),p.isAlreadyOpening=!1,p.currentlyOpenMenu.registerContainerProxy(p.triggerContainerProxy.bind(p)))})),g.push(c.$on('$mdMenuClose',function(t,e){d[0].contains(e[0])&&(p.currentlyOpenMenu=n)})),v=e.element(a.nodesToArray(d[0].children[0].children)),v.on('mouseenter',p.handleMenuItemHover),v.on('mouseleave',p.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;g.length;)g.shift()();v&&v.off('mouseenter',p.handleMenuItemHover),v&&v.off('mouseleave',p.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(t){if(!p.isAlreadyOpening){var n=t.target.querySelector('md-menu')||a.getClosest(t.target,'MD-MENU');h=s(function(){if(n&&(n=e.element(n).controller('mdMenu')),p.currentlyOpenMenu&&p.currentlyOpenMenu!=n){var t=p.nestLevel+1;p.currentlyOpenMenu.close(!0,{closeTo:t}),p.isAlreadyOpening=!!n,n&&n.open()}else n&&!n.isOpen&&n.open&&(p.isAlreadyOpening=!!n,n&&n.open())},n?100:250);var r=t.currentTarget.querySelector('.md-button:not([disabled])');r&&r.focus()}},this.handleMenuItemMouseLeave=function(){h&&(s.cancel(h),h=n)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),p.isOpen||(p.enableHoverListener(),p.isOpen=!0,a.nextTick(function(){p.onIsOpenChanged(p.isOpen)}),f=f||(e?e.target:i[0]),f.setAttribute('aria-expanded','true'),o.$emit('$mdMenuOpen',i),t.show({scope:o,mdMenuCtrl:p,nestLevel:p.nestLevel,element:d,target:f,preserveElement:!0,parent:'body'}).finally(function(){f.setAttribute('aria-expanded','false'),p.disableHoverListener()}))},this.onIsOpenChanged=function(t){t?(d.attr('aria-hidden','false'),i[0].classList.add('md-open'),e.forEach(p.nestedMenus,function(t){t.classList.remove('md-open')})):(d.attr('aria-hidden','true'),i[0].classList.remove('md-open')),o.$mdMenuIsOpen=p.isOpen},this.focusMenuContainer=function(){var t=d[0].querySelector(m.buildSelector(['md-menu-focus-target','md-autofocus']));t||(t=d[0].querySelector('.md-button:not([disabled])')),t.focus()},this.registerContainerProxy=function(t){this.containerProxy=t},this.triggerContainerProxy=function(t){this.containerProxy&&this.containerProxy(t)},this.destroy=function(){return p.isOpen?t.destroy():u.when(!1)},this.close=function(n,r){if(p.isOpen){p.isOpen=!1,a.nextTick(function(){p.onIsOpenChanged(p.isOpen)});var s=e.extend({},r,{skipFocus:n});if(o.$emit('$mdMenuClose',i,s),t.hide(null,r),!n){var c=p.restoreFocusTo||i.find('button')[0];c instanceof e.element&&(c=c[0]),c&&c.focus()}}},this.positionMode=function(){var t=(r.mdPositionMode||'target').split(' ');return 1==t.length&&t.push(t[0]),{left:t[0],top:t[1]}},this.offsets=function(){var t=(r.mdOffset||'0 0').split(' ').map(parseFloat);if(2==t.length)return{left:t[0],top:t[1]};if(1==t.length)return{top:t[0],left:t[0]};throw Error('Invalid offsets specified. Please follow format <x, y> or <n>')},o.$mdMenu={open:this.open,close:this.close},o.$mdOpenMenu=e.bind(this,function(){return l.warn('mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`.'),this.open.apply(this,arguments)})}t.$inject=['$mdMenu','$attrs','$element','$scope','$mdUtil','$timeout','$rootScope','$q','$log'],e.module('material.components.menu').controller('mdMenuCtrl',t)}(),function(){function t(t){function n(n){n.addClass('md-menu');var o=n.children()[0],a=n.children()[1],s=t.prefixer();s.hasAttribute(o,'ng-click')||(o=o.querySelector(s.buildSelector(['ng-click','ng-mouseenter']))||o);var c='MD-BUTTON'===o.nodeName||'BUTTON'===o.nodeName;if(o&&c&&!o.hasAttribute('type')&&o.setAttribute('type','button'),!o)throw Error(i+'Expected the menu to have a trigger element.');if(!a||'MD-MENU-CONTENT'!==a.nodeName)throw Error(i+'Expected the menu to contain a `md-menu-content` element.');o&&o.setAttribute('aria-haspopup','true');var u=n[0].querySelectorAll('md-menu'),l=parseInt(n[0].getAttribute('md-nest-level'),10)||0;return u&&e.forEach(t.nodesToArray(u),function(t){t.hasAttribute('md-position-mode')||t.setAttribute('md-position-mode','cascade'),t.classList.add('_md-nested-menu'),t.setAttribute('md-nest-level',l+1)}),r}function r(t,n,r,i){var o=i[0],a=!!i[1],s=e.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),c=n.children()[1];n.addClass('_md'),c.hasAttribute('role')||c.setAttribute('role','menu'),s.append(c),n.on('$destroy',function(){s.remove()}),n.append(s),s[0].style.display='none',o.init(s,{isInMenuBar:a})}var i='Invalid HTML for md-menu: ';return{restrict:'E',require:['mdMenu','?^mdMenuBar'],controller:'mdMenuCtrl',scope:!0,compile:n}}t.$inject=['$mdUtil'],e.module('material.components.menu').directive('mdMenu',t)}(),function(){function t(t){function r(t,r,a,s,c,u,l,d,f,m){function p(n,r,i){return i.nestLevel?e.noop:(i.disableParentScroll&&!t.getClosest(i.target,'MD-DIALOG')?i.restoreScroll=t.disableScrollAround(i.element,i.parent):i.disableParentScroll=!1,i.hasBackdrop&&(i.backdrop=t.createBackdrop(n,'md-menu-backdrop md-click-catcher'),f.enter(i.backdrop,s[0].body)),function(){i.backdrop&&i.backdrop.remove(),i.disableParentScroll&&i.restoreScroll()})}function h(t,e,n){function r(){e.removeClass('md-active'),b(e,n),n.alreadyOpen=!1}return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),e.removeClass('md-clickable'),!0===n.$destroy?r():function(){return d(e,{addClass:'md-leave'}).start()}().then(r)}function v(n,i,o){function s(){return o.backdrop?(o.backdrop.on('click',f),function(){o.backdrop.off('click',f)}):e.noop}function f(t){t.preventDefault(),t.stopPropagation(),n.$apply(function(){o.mdMenuCtrl.close(!0,{closeAll:!0})})}function h(){function r(e){var n;switch(e.keyCode){case a.KEY_CODE.ESCAPE:o.mdMenuCtrl.close(!1,{closeAll:!0}),n=!0;break;case a.KEY_CODE.UP_ARROW:g(e,o.menuContentEl,o,-1)||o.nestLevel||o.mdMenuCtrl.triggerContainerProxy(e),n=!0;break;case a.KEY_CODE.DOWN_ARROW:g(e,o.menuContentEl,o,1)||o.nestLevel||o.mdMenuCtrl.triggerContainerProxy(e),n=!0;break;case a.KEY_CODE.LEFT_ARROW:o.nestLevel?o.mdMenuCtrl.close():o.mdMenuCtrl.triggerContainerProxy(e),n=!0;break;case a.KEY_CODE.RIGHT_ARROW:var r=t.getClosest(e.target,'MD-MENU');r&&r!=o.parent[0]?e.target.click():o.mdMenuCtrl.triggerContainerProxy(e),n=!0}n&&(e.preventDefault(),e.stopImmediatePropagation())}function i(e){function r(t,e){if(!t)return!1;for(var n,r=0;n=e[r];++r)if(E.hasAttribute(t,n))return!0;return!1}var i=e.target;do{if(i==o.menuContentEl[0])return;if((r(i,['ng-click','ng-href','ui-sref'])||'BUTTON'==i.nodeName||'MD-BUTTON'==i.nodeName)&&!r(i,['md-prevent-menu-close'])){var a=t.getClosest(i,'MD-MENU');i.hasAttribute('disabled')||a&&a!=o.parent[0]||function(){n.$apply(function(){o.mdMenuCtrl.close(!0,{closeAll:!0})})}();break}}while(i=i.parentNode)}if(!o.menuContentEl[0])return e.noop;o.menuContentEl.on('keydown',r),o.menuContentEl[0].addEventListener('click',i,!0);var s=o.menuContentEl[0].querySelector(E.buildSelector(['md-menu-focus-target','md-autofocus']));if(!s)for(var c=o.menuContentEl[0].children.length,u=0;u<c;u++){var l=o.menuContentEl[0].children[u];if(s=l.querySelector('.md-button:not([disabled])'))break;if(l.firstElementChild&&!l.firstElementChild.disabled){s=l.firstElementChild;break}}return s&&s.focus(),function(){o.menuContentEl.off('keydown',r),o.menuContentEl[0].removeEventListener('click',i,!0)}}return function(){if(!o.target)throw Error('$mdMenu.show() expected a target to animate from in options.target');e.extend(o,{alreadyOpen:!1,isRemoved:!1,target:e.element(o.target),parent:e.element(o.parent),menuContentEl:e.element(i[0].querySelector('md-menu-content'))})}(),o.menuContentEl[0]?r.inherit(o.menuContentEl,o.target):m.warn('$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.',i),o.cleanupResizing=function(){var t=function(t,e){return l.throttle(function(){if(!o.isRemoved){var n=y(t,e);t.css(w.toCss(n))}})}(i,o);return c.addEventListener('resize',t),c.addEventListener('orientationchange',t),function(){c.removeEventListener('resize',t),c.removeEventListener('orientationchange',t)}}(),o.hideBackdrop=p(n,i,o),function(){return o.parent.append(i),i[0].style.display='',u(function(t){var e=y(i,o);i.removeClass('md-leave'),d(i,{addClass:'md-active',from:w.toCss(e),to:w.toCss({transform:''})}).start().then(t)})}().then(function(t){return o.alreadyOpen=!0,o.cleanupInteraction=h(),o.cleanupBackdrop=s(),i.addClass('md-clickable'),t})}function g(e,n,r,i){for(var o,a=t.getClosest(e.target,'MD-MENU-ITEM'),s=t.nodesToArray(n[0].children),c=s.indexOf(a),u=c+i;u>=0&&u<s.length;u+=i){if(o=$(s[u].querySelector('.md-button')))break}return o}function $(t){if(t&&-1!=t.getAttribute('tabindex'))return t.focus(),s[0].activeElement==t}function b(t,e){e.preserveElement?i(t).style.display='none':i(t).parentNode===i(e.parent)&&i(e.parent).removeChild(i(t))}function y(e,r){var i,a=e[0],u=e[0].firstElementChild,l=u.getBoundingClientRect(),d=s[0].body,f=d.getBoundingClientRect(),m=c.getComputedStyle(u),p=r.target[0].querySelector(E.buildSelector('md-menu-origin'))||r.target[0],h=p.getBoundingClientRect(),v={left:f.left+o,top:Math.max(f.top,0)+o,bottom:Math.max(f.bottom,Math.max(f.top,0)+f.height)-o,right:f.right-o},g={top:0,left:0,right:0,bottom:0},$={top:0,left:0,right:0,bottom:0},b=r.mdMenuCtrl.positionMode();'target'!=b.top&&'target'!=b.left&&'target-right'!=b.left||(i=function(){for(var t=0;t<u.children.length;++t)if('none'!=c.getComputedStyle(u.children[t]).display)return u.children[t]}())&&(i=i.firstElementChild||i,i=i.querySelector(E.buildSelector('md-menu-align-target'))||i,g=i.getBoundingClientRect(),$={top:parseFloat(a.style.top||0),left:parseFloat(a.style.left||0)});var y={},w='top ';switch(b.top){case'target':y.top=$.top+h.top-g.top;break;case'cascade':y.top=h.top-parseFloat(m.paddingTop)-p.style.top;break;case'bottom':y.top=h.top+h.height;break;default:throw new Error('Invalid target mode "'+b.top+'" specified for md-menu on Y axis.')}var C='rtl'==t.bidi();switch(b.left){case'target':y.left=$.left+h.left-g.left,w+=C?'right':'left';break;case'target-left':y.left=h.left,w+='left';break;case'target-right':y.left=h.right-l.width+(l.right-g.right),w+='right';break;case'cascade':var _=C?h.left-l.width<v.left:h.right+l.width<v.right;y.left=_?h.right-p.style.left:h.left-p.style.left-l.width,w+=_?'left':'right';break;case'right':C?(y.left=h.right-h.width,w+='left'):(y.left=h.right-l.width,w+='right');break;case'left':C?(y.left=h.right-l.width,w+='right'):(y.left=h.left,w+='left');break;default:throw new Error('Invalid target mode "'+b.left+'" specified for md-menu on X axis.')}var x=r.mdMenuCtrl.offsets();y.top+=x.top,y.left+=x.left,function(t){t.top=Math.max(Math.min(t.top,v.bottom-a.offsetHeight),v.top),t.left=Math.max(Math.min(t.left,v.right-a.offsetWidth),v.left)}(y);var M=Math.round(100*Math.min(h.width/a.offsetWidth,1))/100,A=Math.round(100*Math.min(h.height/a.offsetHeight,1))/100;return{top:Math.round(y.top),left:Math.round(y.left),transform:r.alreadyOpen?n:t.supplant('scale({0},{1})',[M,A]),transformOrigin:w}}var E=t.prefixer(),w=t.dom.animator;return{parent:'body',onShow:v,onRemove:h,hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0}}function i(t){return t instanceof e.element&&(t=t[0]),t}r.$inject=['$mdUtil','$mdTheming','$mdConstant','$document','$window','$q','$$rAF','$animateCss','$animate','$log'];var o=8;return t('$mdMenu').setDefaults({methods:['target'],options:r})}t.$inject=['$$interimElementProvider'],e.module('material.components.menu').provider('$mdMenu',t)}(),function(){function t(t,n,i,o,a,s,c,u){this.$element=i,this.$attrs=o,this.$mdConstant=a,this.$mdUtil=c,this.$document=s,this.$scope=t,this.$rootScope=n,this.$timeout=u;var l=this;e.forEach(r,function(t){l[t]=e.bind(l,l[t])})}t.$inject=['$scope','$rootScope','$element','$attrs','$mdConstant','$document','$mdUtil','$timeout'],e.module('material.components.menuBar').controller('MenuBarController',t);var r=['handleKeyDown','handleMenuHover','scheduleOpenHoveredMenu','cancelScheduledOpen'];t.prototype.init=function(){var t=this.$element,e=this.$mdUtil,r=this.$scope,i=this,o=[];t.on('keydown',this.handleKeyDown),this.parentToolbar=e.getClosest(t,'MD-TOOLBAR'),o.push(this.$rootScope.$on('$mdMenuOpen',function(e,n){-1!=i.getMenus().indexOf(n[0])&&(t[0].classList.add('md-open'),n[0].classList.add('md-open'),i.currentlyOpenMenu=n.controller('mdMenu'),i.currentlyOpenMenu.registerContainerProxy(i.handleKeyDown),i.enableOpenOnHover())})),o.push(this.$rootScope.$on('$mdMenuClose',function(r,o,a){var s=i.getMenus();if(-1!=s.indexOf(o[0])&&(t[0].classList.remove('md-open'),o[0].classList.remove('md-open')),t[0].contains(o[0])){for(var c=o[0];c&&-1==s.indexOf(c);)c=e.getClosest(c,'MD-MENU',!0);c&&(a.skipFocus||c.querySelector('button:not([disabled])').focus(),i.currentlyOpenMenu=n,i.disableOpenOnHover(),i.setKeyboardMode(!0))}})),r.$on('$destroy',function(){for(i.disableOpenOnHover();o.length;)o.shift()()}),this.setKeyboardMode(!0)},t.prototype.setKeyboardMode=function(t){t?this.$element[0].classList.add('md-keyboard-mode'):this.$element[0].classList.remove('md-keyboard-mode')},t.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var t=this;t.openOnHoverEnabled=!0,t.parentToolbar&&(t.parentToolbar.classList.add('md-has-open-menu'),t.$mdUtil.nextTick(function(){e.element(t.parentToolbar).on('click',t.handleParentClick)},!1)),e.element(t.getMenus()).on('mouseenter',t.handleMenuHover)}},t.prototype.handleMenuHover=function(t){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(t)},t.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove('md-has-open-menu'),e.element(this.parentToolbar).off('click',this.handleParentClick)),e.element(this.getMenus()).off('mouseenter',this.handleMenuHover))},t.prototype.scheduleOpenHoveredMenu=function(t){var n=e.element(t.currentTarget),r=n.controller('mdMenu');this.setKeyboardMode(!1),this.scheduleOpenMenu(r)},t.prototype.scheduleOpenMenu=function(t){var e=this,r=this.$timeout;t!=e.currentlyOpenMenu&&(r.cancel(e.pendingMenuOpen),e.pendingMenuOpen=r(function(){e.pendingMenuOpen=n,e.currentlyOpenMenu&&e.currentlyOpenMenu.close(!0,{closeAll:!0}),t.open()},200,!1))},t.prototype.handleKeyDown=function(t){var n=this.$mdConstant.KEY_CODE,r=this.currentlyOpenMenu,i=r&&r.isOpen;this.setKeyboardMode(!0);var o,a,s;switch(t.keyCode){case n.DOWN_ARROW:r?r.focusMenuContainer():this.openFocusedMenu(),o=!0;break;case n.UP_ARROW:r&&r.close(),o=!0;break;case n.LEFT_ARROW:a=this.focusMenu(-1),i&&(s=e.element(a).controller('mdMenu'),this.scheduleOpenMenu(s)),o=!0;break;case n.RIGHT_ARROW:a=this.focusMenu(1),i&&(s=e.element(a).controller('mdMenu'),this.scheduleOpenMenu(s)),o=!0}o&&(t&&t.preventDefault&&t.preventDefault(),t&&t.stopImmediatePropagation&&t.stopImmediatePropagation())},t.prototype.focusMenu=function(t){var e=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var r=!1;if(-1==n?(n=0,r=!0):(t<0&&n>0||t>0&&n<e.length-t)&&(n+=t,r=!0),r)return e[n].querySelector('button').focus(),e[n]},t.prototype.openFocusedMenu=function(){var t=this.getFocusedMenu();t&&e.element(t).controller('mdMenu').open()},t.prototype.getMenus=function(){var t=this.$element;return this.$mdUtil.nodesToArray(t[0].children).filter(function(t){return'MD-MENU'==t.nodeName})},t.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},t.prototype.getFocusedMenuIndex=function(){var t=this.$mdUtil,e=t.getClosest(this.$document[0].activeElement,'MD-MENU');return e?this.getMenus().indexOf(e):-1},t.prototype.getOpenMenuIndex=function(){for(var t=this.getMenus(),e=0;e<t.length;++e)if(t[e].classList.contains('md-open'))return e;return-1},t.prototype.handleParentClick=function(t){var n=this.querySelector('md-menu.md-open');n&&!n.contains(t.target)&&e.element(n).controller('mdMenu').close(!0,{closeAll:!0})}}(),function(){function t(t,n){return{restrict:'E',require:'mdMenuBar',controller:'MenuBarController',compile:function(r,i){return i.ariaRole||r[0].setAttribute('role','menubar'),e.forEach(r[0].children,function(n){if('MD-MENU'==n.nodeName){n.hasAttribute('md-position-mode')||(n.setAttribute('md-position-mode','left bottom'),n.querySelector('button, a, md-button').setAttribute('role','menuitem'));var r=t.nodesToArray(n.querySelectorAll('md-menu-content'));e.forEach(r,function(t){t.classList.add('md-menu-bar-menu'),t.classList.add('md-dense'),t.hasAttribute('width')||t.setAttribute('width',5)})}}),r.find('md-menu-item').addClass('md-in-menu-bar'),function(t,e,r,i){e.addClass('_md'),n(t,e),i.init()}}}}t.$inject=['$mdUtil','$mdTheming'],e.module('material.components.menuBar').directive('mdMenuBar',t)}(),function(){function t(){return{restrict:'E',compile:function(t,e){e.role||t[0].setAttribute('role','separator')}}}e.module('material.components.menuBar').directive('mdMenuDivider',t)}(),function(){function t(t,e,n){this.$element=e,this.$attrs=n,this.$scope=t}t.$inject=['$scope','$element','$attrs'],e.module('material.components.menuBar').controller('MenuItemController',t),t.prototype.init=function(t){var e=this.$element,n=this.$attrs;this.ngModel=t,'checkbox'!=n.type&&'radio'!=n.type||(this.mode=n.type,this.iconEl=e[0].children[0],this.buttonEl=e[0].children[1],t&&this.initClickListeners())},t.prototype.clearNgAria=function(){var t=this.$element[0],n=['role','tabindex','aria-invalid','aria-checked'];e.forEach(n,function(e){t.removeAttribute(e)})},t.prototype.initClickListeners=function(){function t(){if('radio'==s){var t=a.ngValue?o.$eval(a.ngValue):a.value;return i.$modelValue==t}return i.$modelValue}function n(t){t?u.off('click',l):u.on('click',l)}var r=this,i=this.ngModel,o=this.$scope,a=this.$attrs,s=(this.$element,this.mode);this.handleClick=e.bind(this,this.handleClick);var c=this.iconEl,u=e.element(this.buttonEl),l=this.handleClick;a.$observe('disabled',n),n(a.disabled),i.$render=function(){r.clearNgAria(),t()?(c.style.display='',u.attr('aria-checked','true')):(c.style.display='none',u.attr('aria-checked','false'))},o.$$postDigest(i.$render)},t.prototype.handleClick=function(t){var e,n=this.mode,r=this.ngModel,i=this.$attrs;'checkbox'==n?e=!r.$modelValue:'radio'==n&&(e=i.ngValue?this.$scope.$eval(i.ngValue):i.value),r.$setViewValue(e),r.$render()}}(),function(){function t(t,n,r){return{controller:'MenuItemController',require:['mdMenuItem','?ngModel'],priority:n.BEFORE_NG_ARIA,compile:function(n,i){function o(t,r,i){i=i||n,i instanceof e.element&&(i=i[0]),i.hasAttribute(t)||i.setAttribute(t,r)}var a=i.type;if('checkbox'!=a&&'radio'!=a||!n.hasClass('md-in-menu-bar'))o('role','menuitem',n[0].querySelector('md-button, button, a'));else{var s=n[0].textContent,c=e.element('<md-button type="button"></md-button>'),u='<md-icon md-svg-src="'+r.mdChecked+'"></md-icon>';c.html(s),c.attr('tabindex','0'),n.html(''),n.append(e.element(u)),n.append(c),n.addClass('md-indent').removeClass('md-in-menu-bar'),o('role','checkbox'==a?'menuitemcheckbox':'menuitemradio',c),function(r){var i=t.prefixer(r);e.forEach(i,function(t){if(n[0].hasAttribute(t)){var e=n[0].getAttribute(t);c[0].setAttribute(t,e),n[0].removeAttribute(t)}})}('ng-disabled')}return function(t,e,n,r){var i=r[0],o=r[1];i.init(o)}}}}t.$inject=['$mdUtil','$mdConstant','$$mdSvgRegistry'],e.module('material.components.menuBar').directive('mdMenuItem',t)}(),function(){function t(t,n,r,i,o,a){function s(a,s,b){function y(e,r,o,s,c,l){function p(t){T.attr('stroke-dashoffset',u($,b,t,C)),T.attr('transform','rotate('+w+' '+$/2+' '+$/2+')')}var h=++N,v=i.now(),g=r-e,$=d(a.mdDiameter),b=f($),y=o||n.easeFn,E=s||n.duration,w=-90*(c||0),C=l||100;r===e?p(r):_=m(function n(){var r=t.Math.max(0,t.Math.min(i.now()-v,E));p(y(r,e,g,E)),h===N&&r<E&&(_=m(n))})}function E(){y(k,S,n.easeFnIndeterminate,n.durationIndeterminate,O,75),O=++O%4}function w(){x||(x=o(E,n.durationIndeterminate,0,!1),E(),s.addClass($).removeAttr('aria-valuenow'))}function C(){x&&(o.cancel(x),x=null,s.removeClass($))}var _,x,M=s[0],A=e.element(M.querySelector('svg')),T=e.element(M.querySelector('path')),k=n.startIndeterminate,S=n.endIndeterminate,O=0,N=0;r(s),s.toggleClass(g,b.hasOwnProperty('disabled')),a.mdMode===v&&w(),a.$on('$destroy',function(){C(),_&&p(_)}),a.$watchGroup(['value','mdMode',function(){var t=M.disabled;return!0===t||!1===t?t:e.isDefined(s.attr('disabled'))}],function(t,e){var n=t[1],r=t[2];if(r!==e[2]&&s.toggleClass(g,!!r),r)C();else if(n!==h&&n!==v&&(n=v,b.$set('mdMode',n)),n===v)w();else{var i=l(t[0]);C(),s.attr('aria-valuenow',i),y(l(e[0]),i)}}),a.$watch('mdDiameter',function(e){var n=d(e),r=f(n),i=l(a.value),o=n/2+'px',m={width:n+'px',height:n+'px'};A[0].setAttribute('viewBox','0 0 '+n+' '+n),A.css(m).css('transform-origin',o+' '+o+' '+o),s.css(m),T.attr('stroke-width',r),T.attr('stroke-linecap','square'),a.mdMode==v?(T.attr('d',c(n,r,!0)),T.attr('stroke-dasharray',(n-r)*t.Math.PI*.75),T.attr('stroke-dashoffset',u(n,r,1,75))):(T.attr('d',c(n,r,!1)),T.attr('stroke-dasharray',(n-r)*t.Math.PI),T.attr('stroke-dashoffset',u(n,r,0,100)),y(i,i))})}function c(t,e,n){var r=t/2,i=e/2,o=r+','+i,a=i+','+r,s=r-i;return'M'+o+'A'+s+','+s+' 0 1 1 '+a+(n?'':'A'+s+','+s+' 0 0 1 '+o)}function u(e,n,r,i){return(e-n)*t.Math.PI*(3*(i||100)/100-r/100)}function l(e){return t.Math.max(0,t.Math.min(e||0,100))}function d(t){var e=n.progressSize;if(t){var r=parseFloat(t);return t.lastIndexOf('%')===t.length-1&&(r=r/100*e),r}return e}function f(t){return n.strokeWidth/100*t}var m=t.requestAnimationFrame||t.webkitRequestAnimationFrame||e.noop,p=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame||e.noop,h='determinate',v='indeterminate',g='_md-progress-circular-disabled',$='md-mode-indeterminate';return{restrict:'E',scope:{value:'@',mdDiameter:'@',mdMode:'@'},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(t,n){if(t.attr({'aria-valuemin':0,'aria-valuemax':100,role:'progressbar'}),e.isUndefined(n.mdMode)){var r=n.hasOwnProperty('value')?h:v;n.$set('mdMode',r)}else n.$set('mdMode',n.mdMode.trim());return s}}}t.$inject=['$window','$mdProgressCircular','$mdTheming','$mdUtil','$interval','$log'],e.module('material.components.progressCircular').directive('mdProgressCircular',t)}(),function(){function t(){function t(t,e,n,r){return n*t/r+e}function n(t,e,n,r){var i=(t/=r)*t,o=i*t;return e+n*(6*o*i+-15*i*i+10*o)}var r={progressSize:50,strokeWidth:10,duration:100,easeFn:t,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:t,materialEase:n}};return{configure:function(t){return r=e.extend(r,t||{})},$get:function(){return r}}}e.module('material.components.progressCircular').provider('$mdProgressCircular',t)}(),function(){function t(){function t(t,r,i,o){if(o){var a=o.getTabElementIndex(r),s=n(r,'md-tab-body').remove(),c=n(r,'md-tab-label').remove(),u=o.insertTab({scope:t,parent:t.$parent,index:a,element:r,template:s.html(),label:c.html()},a);t.select=t.select||e.noop,t.deselect=t.deselect||e.noop,t.$watch('active',function(t){t&&o.select(u.getIndex(),!0)}),t.$watch('disabled',function(){o.refreshIndex()}),t.$watch(function(){return o.getTabElementIndex(r)},function(t){u.index=t,o.updateTabOrder()}),t.$on('$destroy',function(){o.removeTab(u)})}}function n(t,n){for(var r=t[0].children,i=0,o=r.length;i<o;i++){var a=r[i];if(a.tagName===n.toUpperCase())return e.element(a)}return e.element()}return{require:'^?mdTabs',terminal:!0,compile:function(r,i){var o=n(r,'md-tab-label'),a=n(r,'md-tab-body');if(0===o.length&&(o=e.element('<md-tab-label></md-tab-label>'),i.label?o.text(i.label):o.append(r.contents()),0===a.length)){var s=r.contents().detach();a=e.element('<md-tab-body></md-tab-body>'),a.append(s)}return r.append(o),a.html()&&r.append(a),t},scope:{active:'=?mdActive',disabled:'=?ngDisabled',select:'&?mdOnSelect',deselect:'&?mdOnDeselect'}}}e.module('material.components.tabs').directive('mdTab',t)}(),function(){function t(){return{require:'^?mdTabs',link:function(t,e,n,r){r&&r.attachRipple(t,e)}}}e.module('material.components.tabs').directive('mdTabItem',t)}(),function(){function t(){return{terminal:!0}}e.module('material.components.tabs').directive('mdTabLabel',t)}(),function(){function t(t){return{restrict:'A',compile:function(e,n){var r=t(n.mdTabScroll,null,!0);return function(t,e){e.on('mousewheel',function(e){t.$apply(function(){r(t,{$event:e})})})}}}}t.$inject=['$parse'],e.module('material.components.tabs').directive('mdTabScroll',t)}(),function(){function t(t,r,i,o,a,s,c,u,l,d,f){function m(){$('stretchTabs',E),G('focusIndex',A,ft.selectedIndex||0),G('offsetLeft',M,0),G('hasContent',x,!1),G('maxTabWidth',C,Q()),G('shouldPaginate',_,!1),b('noInkBar',H),b('dynamicHeight',j),b('noPagination'),b('swipeContent'),b('noDisconnect'),b('autoselect'),b('noSelectClick'),b('centerTabs',w),b('enableDisconnect'),ft.scope=t,ft.parent=t.$parent,ft.tabs=[],ft.lastSelectedIndex=null,ft.hasFocus=!1,ft.styleTabItemFocus=!1,ft.shouldCenterTabs=W(),ft.tabContentPrefix='tab-content-',p()}function p(){ft.selectedIndex=ft.selectedIndex||0,h(),g(),v(),d(r),s.nextTick(function(){pt=V(),at(),nt(),st(),ft.tabs[ft.selectedIndex]&&ft.tabs[ft.selectedIndex].scope.select(),gt=!0,Z()})}function h(){var t=u.$mdTabsTemplate,n=e.element(r[0].querySelector('md-tab-data'));n.html(t),l(n.contents())(ft.parent),delete u.$mdTabsTemplate}function v(){e.element(i).on('resize',R),t.$on('$destroy',y)}function g(){t.$watch('$mdTabsCtrl.selectedIndex',T)}function $(t,e){var n=u.$normalize('md-'+t);e&&G(t,e),u.$observe(n,function(e){ft[t]=e})}function b(t,e){function n(e){ft[t]='false'!==e}var r=u.$normalize('md-'+t);e&&G(t,e),u.hasOwnProperty(r)&&n(u[r]),u.$observe(r,n)}function y(){vt=!0,e.element(i).off('resize',R)}function E(t){var n=V();e.element(n.wrapper).toggleClass('md-stretch-tabs',z()),st()}function w(t){ft.shouldCenterTabs=W()}function C(t,n){if(t!==n){var r=V();e.forEach(r.tabs,function(e){e.style.maxWidth=t+'px'}),s.nextTick(ft.updateInkBarStyles)}}function _(t,e){t!==e&&(ft.maxTabWidth=Q(),ft.shouldCenterTabs=W(),s.nextTick(function(){ft.maxTabWidth=Q(),nt(ft.selectedIndex)}))}function x(t){r[t?'removeClass':'addClass']('md-no-tab-content')}function M(n){var r=V(),i=ft.shouldCenterTabs?'':'-'+n+'px';e.element(r.paging).css(o.CSS.TRANSFORM,'translate3d('+i+', 0, 0)'),t.$broadcast('$mdTabsPaginationChanged')}function A(t,e){t!==e&&V().tabs[t]&&(nt(),et())}function T(e,n){e!==n&&(ft.selectedIndex=K(e),ft.lastSelectedIndex=n,ft.updateInkBarStyles(),at(),nt(e),t.$broadcast('$mdTabsChanged'),ft.tabs[n]&&ft.tabs[n].scope.deselect(),ft.tabs[e]&&ft.tabs[e].scope.select())}function k(t){var e=r[0].getElementsByTagName('md-tab');return Array.prototype.indexOf.call(e,t[0])}function S(){S.watcher||(S.watcher=t.$watch(function(){s.nextTick(function(){S.watcher&&r.prop('offsetParent')&&(S.watcher(),S.watcher=null,R())},!1)}))}function O(t){switch(t.keyCode){case o.KEY_CODE.LEFT_ARROW:t.preventDefault(),tt(-1,!0);break;case o.KEY_CODE.RIGHT_ARROW:t.preventDefault(),tt(1,!0);break;case o.KEY_CODE.SPACE:case o.KEY_CODE.ENTER:t.preventDefault(),mt||N(ft.focusIndex)}}function N(t,e){mt||(ft.focusIndex=ft.selectedIndex=t),e&&ft.noSelectClick||s.nextTick(function(){ft.tabs[t].element.triggerHandler('click')},!1)}function I(t){ft.shouldPaginate&&(t.preventDefault(),ft.offsetLeft=ut(ft.offsetLeft-t.wheelDelta))}function D(){var t,e,n=V(),r=n.canvas.clientWidth,i=r+ft.offsetLeft;for(t=0;t<n.tabs.length&&(e=n.tabs[t],!(e.offsetLeft+e.offsetWidth>i));t++);r>e.offsetWidth?ft.offsetLeft=ut(e.offsetLeft):ft.offsetLeft=ut(e.offsetLeft+(e.offsetWidth-r+1))}function P(){var t,e,n=V();for(t=0;t<n.tabs.length&&(e=n.tabs[t],!(e.offsetLeft+e.offsetWidth>=ft.offsetLeft));t++);n.canvas.clientWidth>e.offsetWidth?ft.offsetLeft=ut(e.offsetLeft+e.offsetWidth-n.canvas.clientWidth):ft.offsetLeft=ut(e.offsetLeft)}function R(){ft.lastSelectedIndex=ft.selectedIndex,ft.offsetLeft=ut(ft.offsetLeft),s.nextTick(function(){ft.updateInkBarStyles(),Z()})}function H(t){e.element(V().inkBar).toggleClass('ng-hide',t)}function j(t){r.toggleClass('md-dynamic-height',t)}function L(t){if(!vt){var e=ft.selectedIndex,n=ft.tabs.splice(t.getIndex(),1)[0];ot(),ft.selectedIndex===e&&(n.scope.deselect(),ft.tabs[ft.selectedIndex]&&ft.tabs[ft.selectedIndex].scope.select()),s.nextTick(function(){Z(),ft.offsetLeft=ut(ft.offsetLeft)})}}function F(t,n){var r=gt,i={getIndex:function(){return ft.tabs.indexOf(o)},isActive:function(){return this.getIndex()===ft.selectedIndex},isLeft:function(){return this.getIndex()<ft.selectedIndex},isRight:function(){return this.getIndex()>ft.selectedIndex},shouldRender:function(){return!ft.noDisconnect||this.isActive()},hasFocus:function(){return ft.styleTabItemFocus&&ft.hasFocus&&this.getIndex()===ft.focusIndex},id:s.nextUid(),hasContent:!(!t.template||!t.template.trim())},o=e.extend(i,t);return e.isDefined(n)?ft.tabs.splice(n,0,o):ft.tabs.push(o),rt(),it(),s.nextTick(function(){Z(),dt(o),r&&ft.autoselect&&s.nextTick(function(){s.nextTick(function(){N(ft.tabs.indexOf(o))})})}),o}function V(){var t={},e=r[0];return t.wrapper=e.querySelector('md-tabs-wrapper'),t.canvas=t.wrapper.querySelector('md-tabs-canvas'),t.paging=t.canvas.querySelector('md-pagination-wrapper'),t.inkBar=t.paging.querySelector('md-ink-bar'),t.contents=e.querySelectorAll('md-tabs-content-wrapper > md-tab-content'),t.tabs=t.paging.querySelectorAll('md-tab-item'),t.dummies=t.canvas.querySelectorAll('md-dummy-tab'),t}function U(){return ft.offsetLeft>0}function q(){var t=V(),e=t.tabs[t.tabs.length-1];return e&&e.offsetLeft+e.offsetWidth>t.canvas.clientWidth+ft.offsetLeft}function B(){var t=ft.tabs[ft.focusIndex];return t&&t.id?'tab-item-'+t.id:null}function z(){switch(ft.stretchTabs){case'always':return!0;case'never':return!1;default:return!ft.shouldPaginate&&i.matchMedia('(max-width: 600px)').matches}}function W(){return ft.centerTabs&&!ft.shouldPaginate}function Y(){if(ft.noPagination||!gt)return!1;var t=r.prop('clientWidth');return e.forEach(V().dummies,function(e){t-=e.offsetWidth}),t<0}function K(t){if(-1===t)return-1;var e,n,r=Math.max(ft.tabs.length-t,t);for(e=0;e<=r;e++){if((n=ft.tabs[t+e])&&!0!==n.scope.disabled)return n.getIndex();if((n=ft.tabs[t-e])&&!0!==n.scope.disabled)return n.getIndex()}return t}function G(t,e,n){Object.defineProperty(ft,t,{get:function(){return n},set:function(t){var r=n;n=t,e&&e(t,r)}})}function Z(){ft.maxTabWidth=Q(),ft.shouldPaginate=Y()}function X(t){var n=0;return e.forEach(t,function(t){n+=Math.max(t.offsetWidth,t.getBoundingClientRect().width)}),Math.ceil(n)}function Q(){return r.prop('clientWidth')}function J(){var t=ft.tabs[ft.selectedIndex],e=ft.tabs[ft.focusIndex];ft.tabs=ft.tabs.sort(function(t,e){return t.index-e.index}),ft.selectedIndex=ft.tabs.indexOf(t),ft.focusIndex=ft.tabs.indexOf(e)}function tt(t,e){var n,r=e?'focusIndex':'selectedIndex',i=ft[r];for(n=i+t;ft.tabs[n]&&ft.tabs[n].scope.disabled;n+=t);ft.tabs[n]&&(ft[r]=n)}function et(){ft.styleTabItemFocus='keyboard'===f.getLastInteractionType(),V().dummies[ft.focusIndex].focus()}function nt(t){var n=V();if(e.isNumber(t)||(t=ft.focusIndex),n.tabs[t]&&!ft.shouldCenterTabs){var r=n.tabs[t],i=r.offsetLeft,o=r.offsetWidth+i;ft.offsetLeft=Math.max(ft.offsetLeft,ut(o-n.canvas.clientWidth+64)),ft.offsetLeft=Math.min(ft.offsetLeft,ut(i))}}function rt(){ht.forEach(function(t){s.nextTick(t)}),ht=[]}function it(){for(var t=!1,e=0;e<ft.tabs.length;e++)if(ft.tabs[e].hasContent){t=!0;break}ft.hasContent=t}function ot(){ft.selectedIndex=K(ft.selectedIndex),ft.focusIndex=K(ft.focusIndex)}function at(){if(!ft.dynamicHeight)return r.css('height','');if(!ft.tabs.length)return ht.push(at);var t=V(),e=t.contents[ft.selectedIndex],i=e?e.offsetHeight:0,o=t.wrapper.offsetHeight,a=i+o,u=r.prop('clientHeight');if(u!==a){'bottom'===r.attr('md-align-tabs')&&(u-=o,a-=o,r.attr('md-border-bottom')!==n&&++u),mt=!0;var l={height:u+'px'},d={height:a+'px'};r.css(l),c(r,{from:l,to:d,easing:'cubic-bezier(0.35, 0, 0.25, 1)',duration:.5}).start().done(function(){r.css({transition:'none',height:''}),s.nextTick(function(){r.css('transition','')}),mt=!1})}}function st(){var t=V();if(!t.tabs[ft.selectedIndex])return void e.element(t.inkBar).css({left:'auto',right:'auto'});if(!ft.tabs.length)return ht.push(ft.updateInkBarStyles);if(!r.prop('offsetParent'))return S();var n=ft.selectedIndex,i=t.paging.offsetWidth,o=t.tabs[n],a=o.offsetLeft,c=i-a-o.offsetWidth;if(ft.shouldCenterTabs){i>X(t.tabs)&&s.nextTick(st,!1)}ct(),e.element(t.inkBar).css({left:a+'px',right:c+'px'})}function ct(){var t=V(),n=ft.selectedIndex,r=ft.lastSelectedIndex,i=e.element(t.inkBar);e.isNumber(r)&&i.toggleClass('md-left',n<r).toggleClass('md-right',n>r)}function ut(t){var e=V();if(!e.tabs.length||!ft.shouldPaginate)return 0;var n=e.tabs[e.tabs.length-1],r=n.offsetLeft+n.offsetWidth;return t=Math.max(0,t),t=Math.min(r-e.canvas.clientWidth,t)}function lt(t,n){var r=V(),i={colorElement:e.element(r.inkBar)};a.attach(t,n,i)}function dt(t){if(t.hasContent){var n=r[0].querySelectorAll('[md-tab-id="'+t.id+'"]');e.element(n).attr('aria-controls',ft.tabContentPrefix+t.id)}}var ft=this,mt=!1,pt=V(),ht=[],vt=!1,gt=!1;ft.$onInit=m,ft.updatePagination=s.debounce(Z,100),ft.redirectFocus=et,ft.attachRipple=lt,ft.insertTab=F,ft.removeTab=L,ft.select=N,ft.scroll=I,ft.nextPage=D,ft.previousPage=P,ft.keydown=O,ft.canPageForward=q,ft.canPageBack=U,ft.refreshIndex=ot,ft.incrementIndex=tt,ft.getTabElementIndex=k,ft.updateInkBarStyles=s.debounce(st,100),ft.updateTabOrder=s.debounce(J,100),ft.getFocusedTabId=B,1===e.version.major&&e.version.minor<=4&&this.$onInit()}t.$inject=['$scope','$element','$window','$mdConstant','$mdTabInkRipple','$mdUtil','$animateCss','$attrs','$compile','$mdTheming','$mdInteraction'],e.module('material.components.tabs').controller('MdTabsController',t)}(),function(){function t(t){return{scope:{selectedIndex:'=?mdSelected'},template:function(e,n){return n.$mdTabsTemplate=e.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" aria-activedescendant="{{$mdTabsCtrl.getFocusedTabId()}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)"> <md-tab-item tabindex="-1" class="md-tab" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-class="{ \'md-active\':    tab.isActive(), \'md-focused\':   tab.hasFocus(), \'md-disabled\':  tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-touch-action="pan-y" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" md-swipe-touch-action="pan-y" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\':        tab.isActive(), \'md-left\':          tab.isLeft(), \'md-right\':         tab.isRight(), \'md-no-scroll\':     $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:'MdTabsController',controllerAs:'$mdTabsCtrl',bindToController:!0}}t.$inject=['$$mdSvgRegistry'],e.module('material.components.tabs').directive('mdTabs',t)}(),function(){function t(t,e){return{require:'^?mdTabs',link:function(n,r,i,o){if(o){var a,s,c=function(){o.updatePagination(),o.updateInkBarStyles()};if('MutationObserver'in e){var u={childList:!0,subtree:!0,characterData:!0};a=new MutationObserver(c),a.observe(r[0],u),s=a.disconnect.bind(a)}else{var l=t.debounce(c,15,null,!1);r.on('DOMSubtreeModified',l),s=r.off.bind(r,'DOMSubtreeModified',l)}n.$on('$destroy',function(){s()})}}}}t.$inject=['$mdUtil','$window'],e.module('material.components.tabs').directive('mdTabsDummyWrapper',t)}(),function(){function t(t,e){function n(n,r,i,o){function a(){n.$watch('connected',function(t){!1===t?s():c()}),n.$on('$destroy',c)}function s(){o.enableDisconnect&&e.disconnectScope(u)}function c(){o.enableDisconnect&&e.reconnectScope(u)}if(o){var u=o.enableDisconnect?n.compileScope.$new():n.compileScope;return r.html(n.template),t(r.contents())(u),e.nextTick(a)}}return{restrict:'A',link:n,scope:{template:'=mdTabsTemplate',connected:'=?mdConnectedIf',compileScope:'=mdScope'},require:'^?mdTabs'}}t.$inject=['$compile','$mdUtil'],e.module('material.components.tabs').directive('mdTabsTemplate',t)}(),function(){e.module('material.core').constant('$MD_THEME_CSS','md-autocomplete.md-THEME_NAME-theme{background:"{{background-A100}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-100}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-A100}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li{color:"{{background-900}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight{color:"{{background-600}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{background:"{{background-200}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-50}}";border-top-color:"{{background-300}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-50}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-calendar.md-THEME_NAME-theme{background:"{{background-A100}}";color:"{{background-A200-0.87}}"}.md-calendar.md-THEME_NAME-theme tr:last-child td{border-bottom-color:"{{background-200}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-300}}";color:"{{background-A200-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-300}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{background-A200-0.435}}"}.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-A100}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-A100}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{background-A200-0.87}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{background-A200-0.25}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{background-A200-0.11}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-2}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background:"{{background-200}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.2}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.2}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-A100}}";color:"{{background-A200}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{background-A100-0.87}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{background-A100-0.87}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked.md-primary .md-ink-ripple{color:"{{warn-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background:"{{background-A100}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{background-600-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{background-900-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{background-400-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background:"{{background-200}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{background-900-0.87}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')}()}(window,window.angular),window.ngMaterial={version:{full:'1.1.4'}}},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(10)),r(n(40)),r(n(41)),r(n(31))},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(30)),r(n(20))},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(39)),r(n(15)),r(n(21))},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(42)),r(n(27)),r(n(43)),r(n(44)),r(n(45)),r(n(46)),r(n(7))},function(t,e,n){'use strict';function r(t){t.addResolvable({token:o.UIRouter,deps:[],resolveFn:function(){return t.router},data:t.router},''),t.addResolvable({token:i.Transition,deps:[],resolveFn:function(){return t},data:t},''),t.addResolvable({token:'$transition$',deps:[],resolveFn:function(){return t},data:t},''),t.addResolvable({token:'$stateParams',deps:[],resolveFn:function(){return t.params()},data:t.params()},''),t.entering().forEach(function(e){t.addResolvable({token:'$state$',deps:[],resolveFn:function(){return e},data:e},e)})}Object.defineProperty(e,'__esModule',{value:!0});var i=n(19),o=n(47);e.registerAddCoreResolvables=function(t){return t.onCreate({},r)}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(1),i=n(3),o=n(7),a=function(t){function e(e){if(e)return e instanceof o.TargetState?e:r.isString(e)?a.target(e,t.params(),t.options()):e.state||e.params?a.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}var n=t.to().redirectTo;if(n){var a=t.router.stateService;return r.isFunction(n)?i.services.$q.when(n(t)).then(e):e(n)}};e.registerRedirectToHook=function(t){return t.onStart({to:function(t){return!!t.redirectTo}},a)}},function(t,e,n){'use strict';function r(t){return function(e,n){return(0,n.$$state()[t])(e,n)}}Object.defineProperty(e,'__esModule',{value:!0});var i=r('onExit');e.registerOnExitHook=function(t){return t.onExit({exiting:function(t){return!!t.onExit}},i)};var o=r('onRetain');e.registerOnRetainHook=function(t){return t.onRetain({retained:function(t){return!!t.onRetain}},o)};var a=r('onEnter');e.registerOnEnterHook=function(t){return t.onEnter({entering:function(t){return!!t.onEnter}},a)}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(21),o=n(2),a=function(t){return new i.ResolveContext(t.treeChanges().to).resolvePath('EAGER',t).then(r.noop)};e.registerEagerResolvePath=function(t){return t.onStart({},a,{priority:1e3})};var s=function(t,e){return new i.ResolveContext(t.treeChanges().to).subContext(e.$$state()).resolvePath('LAZY',t).then(r.noop)};e.registerLazyResolveState=function(t){return t.onEnter({entering:o.val(!0)},s,{priority:1e3})}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=n(3),o=function(t){var e=i.services.$q,n=t.views('entering');if(n.length)return e.all(n.map(function(t){return e.when(t.load())})).then(r.noop)};e.registerLoadEnteringViews=function(t){return t.onFinish({},o)};var a=function(t){var e=t.views('entering'),n=t.views('exiting');if(e.length||n.length){var r=t.router.viewService;n.forEach(function(t){return r.deactivateViewConfig(t)}),e.forEach(function(t){return r.activateViewConfig(t)}),r.sync()}};e.registerActivateViews=function(t){return t.onSuccess({},a)}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(0),i=function(t){var e=t.router.globals,n=function(){e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,r.copy(t.params(),e.params)},i=function(){e.transition===t&&(e.transition=null)};t.onSuccess({},n,{priority:1e4}),t.promise.then(i,i)};e.registerUpdateGlobalState=function(t){return t.onCreate({},i)}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=function(t){var e=t.options(),n=t.router.stateService,r=t.router.urlRouter;if('url'!==e.source&&e.location&&n.$current.navigable){var i={replace:'replace'===e.location};r.push(n.$current.navigable.url,n.params,i)}r.update(!0)};e.registerUpdateUrl=function(t){return t.onSuccess({},r,{priority:9999})}},function(t,e,n){'use strict';function r(t){var e=t._ignoredReason();if(e){i.trace.traceTransitionIgnored(t);var n=t.router.globals.transition;return'SameAsCurrent'===e&&n&&n.abort(),o.Rejection.ignored().toPromise()}}Object.defineProperty(e,'__esModule',{value:!0});var i=n(6),o=n(13);e.registerIgnoredTransitionHook=function(t){return t.onBefore({},r,{priority:-9999})}},function(t,e,n){'use strict';function r(t){if(!t.valid())throw new Error(t.error())}Object.defineProperty(e,'__esModule',{value:!0}),e.registerInvalidTransitionHook=function(t){return t.onBefore({},r,{priority:-1e4})}},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(9)),r(n(38)),r(n(29)),r(n(13)),r(n(19)),r(n(14)),r(n(55)),r(n(32))},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(22)),r(n(48)),r(n(49)),r(n(50)),r(n(53))},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(51))},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(92))},function(t,e,n){'use strict';function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,'__esModule',{value:!0}),r(n(56)),r(n(57)),r(n(23)),r(n(58)),r(n(59)),r(n(60)),r(n(61)),r(n(62)),r(n(16)),r(n(93))},function(t,e,n){'use strict';function r(t){return f.services.$injector=l.$injector,f.services.$q=d.$q,{name:'vanilla.services',$q:d.$q,$injector:l.$injector,dispose:function(){return null}}}Object.defineProperty(e,'__esModule',{value:!0});var i=n(62),o=n(58),a=n(16),s=n(60),c=n(59),u=n(61),l=n(57),d=n(56),f=n(3);e.servicesPlugin=r,e.hashLocationPlugin=a.locationPluginFactory('vanilla.hashBangLocation',!1,o.HashLocationService,i.BrowserLocationConfig),e.pushStateLocationPlugin=a.locationPluginFactory('vanilla.pushStateLocation',!0,s.PushStateLocationService,i.BrowserLocationConfig),e.memoryLocationPlugin=a.locationPluginFactory('vanilla.memoryLocation',!1,c.MemoryLocationService,u.MemoryLocationConfig)},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=function(){function t(){}return t.prototype.dispose=function(t){},t}();e.UIRouterPluginBase=r},function(t,e,n){'use strict';function r(t){var e=o.services.$injector.get(t+'Directive');if(!e||!e.length)throw new Error('Unable to find component named \''+t+'\'');return e.map(s).reduce(o.unnestR,[])}Object.defineProperty(e,'__esModule',{value:!0});var i=n(8),o=n(4),a=function(){function t(){var t=this;this._useHttp=i.ng.version.minor<3,this.$get=['$http','$templateCache','$injector',function(e,n,r){return t.$templateRequest=r.has&&r.has('$templateRequest')&&r.get('$templateRequest'),t.$http=e,t.$templateCache=n,t}]}return t.prototype.useHttpService=function(t){this._useHttp=t},t.prototype.fromConfig=function(t,e,n){var r=function(t){return o.services.$q.when(t).then(function(t){return{template:t}})},i=function(t){return o.services.$q.when(t).then(function(t){return{component:t}})};return o.isDefined(t.template)?r(this.fromString(t.template,e)):o.isDefined(t.templateUrl)?r(this.fromUrl(t.templateUrl,e)):o.isDefined(t.templateProvider)?r(this.fromProvider(t.templateProvider,e,n)):o.isDefined(t.component)?i(t.component):o.isDefined(t.componentProvider)?i(this.fromComponentProvider(t.componentProvider,e,n)):r('<ui-view></ui-view>')},t.prototype.fromString=function(t,e){return o.isFunction(t)?t(e):t},t.prototype.fromUrl=function(t,e){return o.isFunction(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:'text/html'}}).then(function(t){return t.data}):this.$templateRequest(t)},t.prototype.fromProvider=function(t,e,n){var r=o.services.$injector.annotate(t),i=o.isArray(t)?o.tail(t):t;return new o.Resolvable('',i,r).get(n)},t.prototype.fromComponentProvider=function(t,e,n){var r=o.services.$injector.annotate(t),i=o.isArray(t)?o.tail(t):t;return new o.Resolvable('',i,r).get(n)},t.prototype.makeComponentTemplate=function(t,e,n,a){a=a||{};var s=i.ng.version.minor>=3?'::':'',c=function(t){var e=o.kebobString(t);return/^(x|data)-/.exec(e)?'x-'+e:e},u=function(n){var r=n.name,i=n.type,u=c(r);if(t.attr(u)&&!a[r])return u+'=\''+t.attr(u)+'\'';var l=a[r]||r;if('@'===i)return u+'=\'{{'+s+'$resolve.'+l+'}}\'';if('&'===i){var d=e.getResolvable(l),f=d&&d.data,m=f&&o.services.$injector.annotate(f)||[];return u+'=\'$resolve.'+l+(o.isArray(f)?'['+(f.length-1)+']':'')+'('+m.join(',')+')\''}return u+'=\''+s+'$resolve.'+l+'\''},l=r(n).map(u).join(' '),d=c(n);return'<'+d+' '+l+'></'+d+'>'},t}();e.TemplateFactory=a;var s=function(t){return c(o.isObject(t.bindToController)?t.bindToController:t.scope)},c=function(t){return Object.keys(t||{}).map(function(e){return[e,/^([=<@&])[?]?(.*)/.exec(t[e])]}).filter(function(t){return o.isDefined(t)&&o.isArray(t[1])}).map(function(t){return{name:t[1][2]||t[0],type:t[1][1]}})}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(4),i=n(26);e.getStateHookBuilder=function(t){return function(e,n){function o(t,e){var n=new r.ResolveContext(t.treeChanges(s)),o=r.extend(i.getLocals(n),{$state$:e,$transition$:t});return r.services.$injector.invoke(a,this,o)}var a=e[t],s='onExit'===t?'from':'to';return a?o:void 0}}},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var r=n(4),i=function(){function t(t){this._urlListeners=[],this.$locationProvider=t;var e=r.val(t);r.createProxyFunctions(e,this,e,['hashPrefix'])}return t.prototype.dispose=function(){},t.prototype.onChange=function(t){var e=this;return this._urlListeners.push(t),function(){return r.removeFrom(e._urlListeners)(t)}},t.prototype.html5Mode=function(){var t=this.$locationProvider.html5Mode();return(t=r.isObject(t)?t.enabled:t)&&this.$sniffer.history},t.prototype.url=function(t,e,n){return void 0===e&&(e=!1),t&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},t.prototype._runtimeServices=function(t,e,n,i){var o=this;this.$location=e,this.$sniffer=n,t.$on('$locationChangeSuccess',function(t){return o._urlListeners.forEach(function(e){return e(t)})});var a=r.val(e),s=r.val(i);r.createProxyFunctions(a,this,a,['replace','path','search','hash']),r.createProxyFunctions(a,this,a,['port','protocol','host']),r.createProxyFunctions(s,this,s,['baseHref'])},t.monkeyPatchPathParameterType=function(t){var e=t.urlMatcherFactory.type('path');e.encode=function(t){return null!=t?t.toString().replace(/(~|\/)/g,function(t){return{'~':'~~','/':'~2F'}[t]}):t},e.decode=function(t){return null!=t?t.toString().replace(/(~~|~2F)/g,function(t){return{'~~':'~','~2F':'/'}[t]}):t}},t}();e.Ng1LocationServices=i},function(t,e,n){'use strict';Object.defineProperty(e,'__esModule',{value:!0})},function(t,e,n){'use strict';function r(t){var e,n=t.match(/^\s*({[^}]*})\s*$/);if(n&&(t='('+n[1]+')'),!(e=t.replace(/\n/g,' ').match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/))||4!==e.length)throw new Error('Invalid state ref \''+t+'\'');return{state:e[1]||null,paramExpr:e[3]||null}}function i(t){var e=t.parent().inheritedData('$uiView'),n=f.parse('$cfg.path')(e);return n?f.tail(n).state.name:void 0}function o(t,e,n){var r=n.uiState||t.current.name,i=f.extend(c(e,t),n.uiStateOpts||{}),o=t.href(r,n.uiStateParams,i);return{uiState:r,uiStateParams:n.uiStateParams,uiStateOpts:i,href:o}}function a(t){var e='[object SVGAnimatedString]'===Object.prototype.toString.call(t.prop('href')),n='FORM'===t[0].nodeName;return{attr:n?'action':e?'xlink:href':'href',isAnchor:'A'===t.prop('tagName').toUpperCase(),clickable:!n}}function s(t,e,n,r,i){return function(o){var a=o.which||o.button,s=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||t.attr('target'))){var c=n(function(){e.go(s.uiState,s.uiStateParams,s.uiStateOpts)});o.preventDefault();var u=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){u--<=0&&n.cancel(c)}}}}function c(t,e){return{relative:i(t)||e.$current,inherit:!0,source:'sref'}}function u(t,e,n,r){var i;r&&(i=r.events),f.isArray(i)||(i=['click']);for(var o=t.on?'on':'bind',a=0,s=i;a<s.length;a++){var c=s[a];t[o](c,n)}e.$on('$destroy',function(){for(var e=t.off?'off':'unbind',r=0,o=i;r<o.length;r++){var a=o[r];t[e](a,n)}})}Object.defineProperty(e,'__esModule',{value:!0});var l,d=n(8),f=n(4);l=['$uiRouter','$timeout',function(t,e){var n=t.stateService;return{restrict:'A',require:['?^uiSrefActive','?^uiSrefActiveEq'],link:function(i,c,l,d){function m(){var t=b();g&&g(),v&&(g=v.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&l.$set(h.attr,t.href)}var p,h=a(c),v=d[1]||d[0],g=null,$={},b=function(){return o(n,c,$)},y=r(l.uiSref);$.uiState=y.state,$.uiStateOpts=l.uiSrefOpts?i.$eval(l.uiSrefOpts):{},y.paramExpr&&(i.$watch(y.paramExpr,function(t){$.uiStateParams=f.extend({},t),m()},!0),$.uiStateParams=f.extend({},i.$eval(y.paramExpr))),m(),i.$on('$destroy',t.stateRegistry.onStatesChanged(m)),i.$on('$destroy',t.transitionService.onSuccess({},m)),h.clickable&&(p=s(c,n,e,h,b),u(c,i,p,$.uiStateOpts))}}}];var m;m=['$uiRouter','$timeout',function(t,e){var n=t.stateService;return{restrict:'A',require:['?^uiSrefActive','?^uiSrefActiveEq'],link:function(r,i,c,l){function d(){var t=$();v&&v(),h&&(v=h.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&c.$set(p.attr,t.href)}var m,p=a(i),h=l[1]||l[0],v=null,g={},$=function(){return o(n,i,g)},b=['uiState','uiStateParams','uiStateOpts'],y=b.reduce(function(t,e){return t[e]=f.noop,t},{});b.forEach(function(t){g[t]=c[t]?r.$eval(c[t]):null,c.$observe(t,function(e){y[t](),y[t]=r.$watch(e,function(e){g[t]=e,d()},!0)})}),d(),r.$on('$destroy',t.stateRegistry.onStatesChanged(d)),r.$on('$destroy',t.transitionService.onSuccess({},d)),p.clickable&&(m=s(i,n,e,p,$),u(i,r,m,g.uiStateOpts))}}}];var p;p=['$state','$stateParams','$interpolate','$uiRouter',function(t,e,n,o){return{restrict:'A',controller:['$scope','$element','$attrs',function(e,a,s){function c(t){t.promise.then(l,f.noop)}function u(e,n,r){var o=t.get(e,i(a)),s={state:o||{name:e},params:n,activeClass:r};return p.push(s),function(){f.removeFrom(p)(s)}}function l(){var n=function(t){return t.split(/\s/).filter(f.identity)},r=function(t){return t.map(function(t){return t.activeClass}).map(n).reduce(f.unnestR,[])},i=r(p).concat(n(d)).reduce(f.uniqR,[]),o=r(p.filter(function(e){return t.includes(e.state.name,e.params)})),s=!!p.filter(function(e){return t.is(e.state.name,e.params)}).length,c=s?n(d):[],u=o.concat(c).reduce(f.uniqR,[]),l=i.filter(function(t){return!f.inArray(u,t)});e.$evalAsync(function(){u.forEach(function(t){return a.addClass(t)}),l.forEach(function(t){return a.removeClass(t)})})}var d,m,p=[];d=n(s.uiSrefActiveEq||'',!1)(e);try{m=e.$eval(s.uiSrefActive)}catch(t){}m=m||n(s.uiSrefActive||'',!1)(e),f.isObject(m)&&f.forEach(m,function(t,n){if(f.isString(t)){var i=r(t);u(i.state,e.$eval(i.paramExpr),n)}}),this.$$addStateInfo=function(t,e){if(!(f.isObject(m)&&p.length>0)){var n=u(t,e,m);return l(),n}},e.$on('$stateChangeSuccess',l),e.$on('$destroy',o.transitionService.onStart({},c)),o.globals.transition&&c(o.globals.transition),l()}]}}],d.ng.module('ui.router.state').directive('uiSref',l).directive('uiSrefActive',p).directive('uiSrefActiveEq',p).directive('uiState',m)},function(t,e,n){'use strict';function r(t){var e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function i(t){var e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}Object.defineProperty(e,'__esModule',{value:!0});var o=n(8);r.$inject=['$state'],e.$IsStateFilter=r,i.$inject=['$state'],e.$IncludedByStateFilter=i,o.ng.module('ui.router.state').filter('isState',r).filter('includedByState',i)},function(t,e,n){'use strict';function r(t,e,n,r,c,l){var d=s.parse('viewDecl.controllerAs'),f=s.parse('viewDecl.resolveAs');return{restrict:'ECA',priority:-400,compile:function(r){var l=r.html();return r.empty(),function(r,m){var p=m.data('$uiView');if(!p)return m.html(l),void t(m.contents())(r);var h=p.$cfg||{viewDecl:{},getTemplate:a.noop},v=h.path&&new s.ResolveContext(h.path);m.html(h.getTemplate(m,v)||l),s.trace.traceUIViewFill(p.$uiView,m.html());var g=t(m.contents()),$=h.controller,b=d(h),y=f(h),E=v&&u.getLocals(v);if(r[y]=E,$){var w=e($,s.extend({},E,{$scope:r,$element:m}));b&&(r[b]=w,r[b][y]=E),m.data('$ngControllerController',w),m.children().data('$ngControllerController',w),i(c,n,w,r,h)}if(s.isString(h.viewDecl.component))var C=h.viewDecl.component,_=s.kebobString(C),x=new RegExp('^(x-|data-)?'+_+'$','i'),M=function(){var t=[].slice.call(m[0].children).filter(function(t){return t&&t.tagName&&x.exec(t.tagName)});return t&&o.ng.element(t).data('$'+C+'Controller')},A=r.$watch(M,function(t){t&&(i(c,n,t,r,h),A())});g(r)}}}}function i(t,e,n,r,i){!s.isFunction(n.$onInit)||i.viewDecl.component&&l||n.$onInit();var o=s.tail(i.path).state.self,a={bind:n};if(s.isFunction(n.uiOnParamsChanged)){var c=new s.ResolveContext(i.path),u=c.getResolvable('$transition$').data,f=function(t){if(t!==u&&-1===t.exiting().indexOf(o)){var e=t.params('to'),r=t.params('from'),i=t.treeChanges().to.map(function(t){return t.paramSchema}).reduce(s.unnestR,[]),a=t.treeChanges().from.map(function(t){return t.paramSchema}).reduce(s.unnestR,[]),c=i.filter(function(t){var n=a.indexOf(t);return-1===n||!a[n].type.equals(e[t.id],r[t.id])});if(c.length){var l=c.map(function(t){return t.id}),d=s.filter(e,function(t,e){return-1!==l.indexOf(e)});n.uiOnParamsChanged(d,t)}}};r.$on('$destroy',e.onSuccess({},f,a))}if(s.isFunction(n.uiCanExit)){var m=d++,p=function(t){return!!t&&(t._uiCanExitIds&&!0===t._uiCanExitIds[m]||p(t.redirectedFrom()))},h=function(e){var r,i=e._uiCanExitIds=e._uiCanExitIds||{};return p(e)||(r=t.when(n.uiCanExit(e)),r.then(function(t){return i[m]=!1!==t})),r},v={exiting:o.name};r.$on('$destroy',e.onBefore(v,h,a))}}Object.defineProperty(e,'__esModule',{value:!0});var o=n(8),a=n(11),s=n(4),c=n(33),u=n(26);e.uiView=['$view','$animate','$uiViewScroll','$interpolate','$q',function(t,e,n,r,i){function a(t,n){return{enter:function(t,n,r){o.ng.version.minor>2?e.enter(t,null,n).then(r):e.enter(t,null,n,r)},leave:function(t,n){o.ng.version.minor>2?e.leave(t).then(n):e.leave(t,n)}}}function u(t,e){return t===e}var l={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$uiView:{}},d={count:0,restrict:'ECA',terminal:!0,priority:400,transclude:'element',compile:function(e,o,f){return function(e,o,m){function p(t){(!t||t instanceof c.Ng1ViewConfig)&&(u(_,t)||(s.trace.traceUIViewConfigUpdated(A,t&&t.viewDecl&&t.viewDecl.$context),_=t,v(t)))}function h(){if(g&&(s.trace.traceUIViewEvent('Removing (previous) el',g.data('$uiView')),g.remove(),g=null),b&&(s.trace.traceUIViewEvent('Destroying scope',A),b.$destroy(),b=null),$){var t=$.data('$uiViewAnim');s.trace.traceUIViewEvent('Animate out',t),C.leave($,function(){t.$$animLeave.resolve(),g=null}),g=$,$=null}}function v(t){var r=e.$new(),a=i.defer(),c=i.defer(),u={$cfg:t,$uiView:A},l={$animEnter:a.promise,$animLeave:c.promise,$$animLeave:c};r.$emit('$viewContentLoading',M);var d=f(r,function(t){t.data('$uiViewAnim',l),t.data('$uiView',u),C.enter(t,o,function(){a.resolve(),b&&b.$emit('$viewContentAnimationEnded'),(s.isDefined(w)&&!w||e.$eval(w))&&n(t)}),h()});$=d,b=r,b.$emit('$viewContentLoaded',t||_),b.$eval(E)}var g,$,b,y,E=m.onload||'',w=m.autoscroll,C=a(m,e),_=void 0,x=o.inheritedData('$uiView')||l,M=r(m.uiView||m.name||'')(e)||'$default',A={$type:'ng1',id:d.count++,name:M,fqn:x.$uiView.fqn?x.$uiView.fqn+'.'+M:M,config:null,configUpdated:p,get creationContext(){var t=s.parse('$cfg.viewDecl.$context')(x),e=s.parse('$uiView.creationContext')(x);return t||e}};s.trace.traceUIViewEvent('Linking',A),o.data('$uiView',{$uiView:A}),v(),y=t.registerUIView(A),e.$on('$destroy',function(){s.trace.traceUIViewEvent('Destroying/Unregistering',A),y()})}}};return d}],r.$inject=['$compile','$controller','$transitions','$view','$q','$timeout'];var l='function'==typeof o.ng.module('ui.router').component,d=0;o.ng.module('ui.router.state').directive('uiView',e.uiView),o.ng.module('ui.router.state').directive('uiView',r)},function(t,e,n){'use strict';function r(){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)}}]}Object.defineProperty(e,'__esModule',{value:!0}),n(8).ng.module('ui.router.state').provider('$uiViewScroll',r)},function(t,e){var n;n=function(){return this}();try{n=n||Function('return this')()||(0,eval)('this')}catch(t){'object'==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,'loaded',{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,'id',{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,,,,,,,,,,function(t,e,n){n(37),n(11),n(24),n(25),n(36),n(34),n(35),n(65),n(66),t.exports=n(17)}]);