Built xcally-motion-dialpad from commit 141221b.|1.0.96
[dialpad.git] / vendor.d76e66a8.js
1 !function(de){"use strict";var u={objectMaxDepth:5,urlErrorParamsEnabled:!0};function e(e){if(!we(e))return u;N(e.objectMaxDepth)&&(u.objectMaxDepth=l(e.objectMaxDepth)?e.objectMaxDepth:NaN),N(e.urlErrorParamsEnabled)&&Te(e.urlErrorParamsEnabled)&&(u.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function l(e){return w(e)&&0<e}function k(a,s){s=s||Error;var c="https://errors.angularjs.org/1.7.8/",e=c.replace(".","\\.")+"[\\s\\S]*",l=new RegExp(e,"g");return function(){var e,t,n=arguments[0],r=arguments[1],i="["+(a?a+":":"")+n+"] ",o=He(arguments,2).map(function(e){return We(e,u.objectMaxDepth)});if(i+=r.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<o.length?o[t].replace(l,""):e}),i+="\n"+c+(a?a+"/":"")+n,u.urlErrorParamsEnabled)for(t=0,e="?";t<o.length;t++,e="&")i+=e+"p"+t+"="+encodeURIComponent(o[t]);return new s(i)}}var me,he,t,v,o=/^\/(.+)\/([a-z]*)$/,d="validity",fe=Object.prototype.hasOwnProperty,pe=function(e){return _e(e)?e.toLowerCase():e},m=function(e){return _e(e)?e.toUpperCase():e},a=[].slice,r=[].splice,n=[].push,ge=Object.prototype.toString,h=Object.getPrototypeOf,f=k("ng"),$=de.angular||(de.angular={}),i=0;function H(e){if(null==e||x(e))return!1;if(Me(e)||_e(e)||he&&e instanceof he)return!0;var t="length"in Object(e)&&e.length;return w(t)&&(0<=t&&t-1 in e||"function"==typeof e.item)}function ve(e,t,n){var r,i;if(e)if(Ae(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(Me(e)||H(e)){var o="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(o||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==ve)e.forEach(t,n,e);else if(C(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)fe.call(e,r)&&t.call(n,e[r],r,e);return e}function s(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function T(n){return function(e,t){n(t,e)}}function c(){return++i}function p(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function g(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(we(a)||Ae(a))for(var s=Object.keys(a),c=0,l=s.length;c<l;c++){var u=s[c],d=a[u];n&&we(d)?_(d)?e[u]=new Date(d.valueOf()):M(d)?e[u]=new RegExp(d):d.nodeName?e[u]=d.cloneNode(!0):P(d)?e[u]=d.clone():(we(e[u])||(e[u]=Me(d)?[]:{}),g(e[u],[d],!0)):e[u]=d}}return p(e,r),e}function be(e){return g(e,a.call(arguments,1),!1)}function b(e){return g(e,a.call(arguments,1),!0)}function y(e){return parseInt(e,10)}me=de.document.documentMode;var S=Number.isNaN||function(e){return e!=e};function $e(e,t){return be(Object.create(e),t)}function ye(){}function Ee(e){return e}function D(e){return function(){return e}}function E(e){return Ae(e.toString)&&e.toString!==ge}function Ce(e){return void 0===e}function N(e){return void 0!==e}function we(e){return null!==e&&"object"==typeof e}function C(e){return null!==e&&"object"==typeof e&&!h(e)}function _e(e){return"string"==typeof e}function w(e){return"number"==typeof e}function _(e){return"[object Date]"===ge.call(e)}function Me(e){return Array.isArray(e)||e instanceof Array}function xe(e){switch(ge.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function Ae(e){return"function"==typeof e}function M(e){return"[object RegExp]"===ge.call(e)}function x(e){return e&&e.window===e}function ke(e){return e&&e.$evalAsync&&e.$watch}function Te(e){return"boolean"==typeof e}function A(e){return e&&Ae(e.then)}ye.$inject=[],Ee.$inject=[];var O=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Se=function(e){return _e(e)?e.trim():e},I=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function P(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function De(e){return pe(e.nodeName||e[0]&&e[0].nodeName)}function R(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function Ne(e,t){var n=e.indexOf(t);return 0<=n&&e.splice(n,1),n}function L(e,n,t){var r,i,o=[],a=[];if(t=l(t)?t:NaN,n){if((i=n)&&w(i.length)&&O.test(ge.call(i))||(r=n,"[object ArrayBuffer]"===ge.call(r)))throw f("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===n)throw f("cpi","Can't copy! Source and destination are identical.");return Me(n)?n.length=0:ve(n,function(e,t){"$$hashKey"!==t&&delete n[t]}),o.push(e),a.push(n),s(e,n,t)}return c(e,t);function s(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(Me(e))for(var o=0,a=e.length;o<a;o++)t.push(c(e[o],n));else if(C(e))for(r in e)t[r]=c(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=c(e[r],n));else for(r in e)fe.call(e,r)&&(t[r]=c(e[r],n));return p(t,i),t}function c(e,t){if(!we(e))return e;var n=o.indexOf(e);if(-1!==n)return a[n];if(x(e)||ke(e))throw f("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(e){switch(ge.call(e)){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 e.constructor(c(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(e.slice)return e.slice(0);var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t;case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(Ae(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=Me(e)?[]:Object.create(h(e)),r=!0),o.push(e),a.push(i),r?s(e,i,t):i}}function Oe(e,t){return e===t||e!=e&&t!=t}function Ie(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o===typeof t&&"object"===o){if(!Me(e)){if(_(e))return!!_(t)&&Oe(e.getTime(),t.getTime());if(M(e))return!!M(t)&&e.toString()===t.toString();if(ke(e)||ke(t)||x(e)||x(t)||Me(t)||_(t)||M(t))return!1;for(r in i=je(),e)if("$"!==r.charAt(0)&&!Ae(e[r])){if(!Ie(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&N(t[r])&&!Ae(t[r]))return!1;return!0}if(!Me(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!Ie(e[r],t[r]))return!1;return!0}}return!1}var F=function(){if(!N(F.rules)){var e=de.document.querySelector("[ng-csp]")||de.document.querySelector("[data-ng-csp]");if(e){var t=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");F.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")}}else F.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return F.rules},j=function(){if(N(j.name_))return j.name_;var e,t,n,r,i=Q.length;for(t=0;t<i;++t)if(n=Q[t],e=de.document.querySelector("["+n.replace(":","\\:")+"jq]")){r=e.getAttribute(n+"jq");break}return j.name_=r};function B(e,t,n){return e.concat(a.call(t,n))}function He(e,t){return a.call(e,t||0)}function Pe(e,t){var n=2<arguments.length?He(arguments,2):[];return!Ae(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,B(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function U(e,t){var n=t;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?n=void 0:x(t)?n="$WINDOW":t&&de.document===t?n="$DOCUMENT":ke(t)&&(n="$SCOPE"),n}function V(e,t){if(!Ce(e))return w(t)||(t=t?2:null),JSON.stringify(e,U,t)}function q(e){return _e(e)?JSON.parse(e):e}var z=/:/g;function Y(e,t){e=e.replace(z,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return S(n)?t:n}function W(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function G(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return W(e,n*(Y(t,r)-r))}function Re(e){e=he(e).clone().empty();var t=he("<div></div>").append(e).html();try{return e[0].nodeType===Ue?pe(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+pe(t)})}catch(e){return pe(t)}}function K(e){try{return decodeURIComponent(e)}catch(e){}}function X(e){var i={};return ve((e||"").split("&"),function(e){var t,n,r;e&&(n=e=e.replace(/\+/g,"%20"),-1!==(t=e.indexOf("="))&&(n=e.substring(0,t),r=e.substring(t+1)),N(n=K(n))&&(r=!N(r)||K(r),fe.call(i,n)?Me(i[n])?i[n].push(r):i[n]=[i[n],r]:i[n]=r))}),i}function Z(e){return J(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function J(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var Q=["ng-","data-ng-","ng:","x-ng-"];var ee=function(n){var e=n.currentScript;if(!e)return!0;if(!(e instanceof de.HTMLScriptElement||e instanceof de.SVGScriptElement))return!1;var t=e.attributes;return[t.getNamedItem("src"),t.getNamedItem("href"),t.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var t=n.createElement("a");if(t.href=e.value,n.location.origin===t.origin)return!0;switch(t.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})}(de.document);function te(r,e){var i,o,t={};if(ve(Q,function(e){var t=e+"app";!i&&r.hasAttribute&&r.hasAttribute(t)&&(o=(i=r).getAttribute(t))}),ve(Q,function(e){var t,n=e+"app";!i&&(t=r.querySelector("["+n.replace(":","\\:")+"]"))&&(o=(i=t).getAttribute(n))}),i){if(!ee)return void de.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");t.strictDi=null!==function(e,t){var n,r,i=Q.length;for(r=0;r<i;++r)if(n=Q[r]+t,_e(n=e.getAttribute(n)))return n;return null}(i,"strict-di"),e(i,o?[o]:[],t)}}function ne(n,r,i){we(i)||(i={});i=be({strictDi:!1},i);var t=function(){if((n=he(n)).injector()){var e=n[0]===de.document?"document":Re(n);throw f("btstrpd","App already bootstrapped with this element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}(r=r||[]).unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var t=Zt(r,i.strictDi);return t.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),t},e=/^NG_ENABLE_DEBUG_INFO!/,o=/^NG_DEFER_BOOTSTRAP!/;if(de&&e.test(de.name)&&(i.debugInfoEnabled=!0,de.name=de.name.replace(e,"")),de&&!o.test(de.name))return t();de.name=de.name.replace(o,""),$.resumeBootstrap=function(e){return ve(e,function(e){r.push(e)}),t()},Ae($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function re(){de.name="NG_ENABLE_DEBUG_INFO!"+de.name,de.location.reload()}function ie(e){var t=$.element(e).injector();if(!t)throw f("test","no injector found for element argument to getTestability");return t.get("$$testability")}var oe=/[A-Z]/g;function Le(e,n){return n=n||"_",e.replace(oe,function(e,t){return(t?n:"")+e.toLowerCase()})}var ae=!1;function Fe(e,t,n){if(!e)throw f("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function se(e,t,n){return n&&Me(e)&&(e=e[e.length-1]),Fe(Ae(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function ce(e,t){if("hasOwnProperty"===e)throw f("badname","hasOwnProperty is not a valid {0} name",t)}function le(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=he(a.call(e,0,i))),t.push(n));return t||e}function je(){return Object.create(null)}function ue(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!E(e)||Me(e)||_(e)?V(e):e.toString()}return e}var Be=1,Ue=3,Ve=8,qe=9,ze=11;function Ye(e,t){if(Me(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(we(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function We(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):Ce(e)?"undefined":"string"!=typeof e?(n=e,i=[],l(r=t)&&(n=$.copy(n,null,r)),JSON.stringify(n,function(e,t){if(we(t=U(e,t))){if(0<=i.indexOf(t))return"...";i.push(t)}return t})):e;var n,r,i}var Ge={full:"1.7.8",major:1,minor:7,dot:8,codeName:"enthusiastic-oblation"};mt.expando="ng339";var Ke=mt.cache={},Xe=1;mt._data=function(e){return this.cache[e[this.expando]]||{}};var Ze=/-([a-z])/g,Je=/^-ms-/,Qe={mouseleave:"mouseout",mouseenter:"mouseover"},et=k("jqLite");function tt(e,t){return t.toUpperCase()}function nt(e){return e.replace(Ze,tt)}var rt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,it=/<|&#?\w+;/,ot=/<([\w:-]+)/,at=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,st={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,"",""]};function ct(e){return!it.test(e)}function lt(e){var t=e.nodeType;return t===Be||!t||t===qe}function ut(e,t){var n,r,i,o,a=t.createDocumentFragment(),s=[];if(ct(e))s.push(t.createTextNode(e));else{for(n=a.appendChild(t.createElement("div")),r=(ot.exec(e)||["",""])[1].toLowerCase(),i=st[r]||st._default,n.innerHTML=i[1]+e.replace(at,"<$1></$2>")+i[2],o=i[0];o--;)n=n.lastChild;s=B(s,n.childNodes),(n=a.firstChild).textContent=""}return a.textContent="",a.innerHTML="",ve(s,function(e){a.appendChild(e)}),a}st.optgroup=st.option,st.tbody=st.tfoot=st.colgroup=st.caption=st.thead,st.th=st.td;var dt=de.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function mt(e){if(e instanceof mt)return e;var t,n,r,i;if(_e(e)&&(e=Se(e),t=!0),!(this instanceof mt)){if(t&&"<"!==e.charAt(0))throw et("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new mt(e)}t?_t(this,(n=e,r=r||de.document,(i=rt.exec(n))?[r.createElement(i[1])]:(i=ut(n,r))?i.childNodes:[])):Ae(e)?Tt(e):_t(this,e)}function ht(e){return e.cloneNode(!0)}function ft(e,t){!t&&lt(e)&&he.cleanData([e]),e.querySelectorAll&&he.cleanData(e.querySelectorAll("*"))}function pt(e){var t;for(t in e)return!1;return!0}function gt(e){var t=e.ng339,n=t&&Ke[t],r=n&&n.events,i=n&&n.data;i&&!pt(i)||r&&!pt(r)||(delete Ke[t],e.ng339=void 0)}function vt(n,e,r,t){if(N(t))throw et("offargs","jqLite#off() does not support the `selector` argument");var i=$t(n),o=i&&i.events,a=i&&i.handle;if(a){if(e){var s=function(e){var t=o[e];N(r)&&Ne(t||[],r),N(r)&&t&&0<t.length||(n.removeEventListener(e,a),delete o[e])};ve(e.split(" "),function(e){s(e),Qe[e]&&s(Qe[e])})}else for(e in o)"$destroy"!==e&&n.removeEventListener(e,a),delete o[e];gt(n)}}function bt(e,t){var n=e.ng339,r=n&&Ke[n];r&&(t?delete r.data[t]:r.data={},gt(e))}function $t(e,t){var n=e.ng339,r=n&&Ke[n];return t&&!r&&(e.ng339=n=++Xe,r=Ke[n]={events:{},data:{},handle:void 0}),r}function yt(e,t,n){if(lt(e)){var r,i=N(n),o=!i&&t&&!we(t),a=!t,s=$t(e,!o),c=s&&s.data;if(i)c[nt(t)]=n;else{if(a)return c;if(o)return c&&c[nt(t)];for(r in t)c[nt(r)]=t[r]}}}function Et(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function Ct(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;ve(t.split(" "),function(e){e=Se(e),r=r.replace(" "+e+" "," ")}),r!==n&&e.setAttribute("class",Se(r))}}function wt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;ve(t.split(" "),function(e){e=Se(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")}),r!==n&&e.setAttribute("class",Se(r))}}function _t(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Mt(e,t){return xt(e,"$"+(t||"ngController")+"Controller")}function xt(e,t,n){e.nodeType===qe&&(e=e.documentElement);for(var r=Me(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(N(n=he.data(e,r[i])))return n;e=e.parentNode||e.nodeType===ze&&e.host}}function At(e){for(ft(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function kt(e,t){t||ft(e);var n=e.parentNode;n&&n.removeChild(e)}function Tt(e){function t(){de.document.removeEventListener("DOMContentLoaded",t),de.removeEventListener("load",t),e()}"complete"===de.document.readyState?de.setTimeout(e):(de.document.addEventListener("DOMContentLoaded",t),de.addEventListener("load",t))}var St=mt.prototype={ready:Tt,toString:function(){var t=[];return ve(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(e){return he(0<=e?this[e]:this[this.length+e])},length:0,push:n,sort:[].sort,splice:[].splice},Dt={};ve("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Dt[pe(e)]=e});var Nt={};ve("input,select,option,textarea,button,form,details".split(","),function(e){Nt[e]=!0});var Ot={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function It(e,t){var n=Dt[t.toLowerCase()];return n&&Nt[De(e)]&&n}function Ht(e,t,n){n.call(e,t)}function Pt(e,t,n){var r=t.relatedTarget;r&&(r===e||dt.call(e,r))||n.call(e,t)}function Rt(){this.$get=function(){return be(mt,{hasClass:function(e,t){return e.attr&&(e=e[0]),Et(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),wt(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ct(e,t)}})}}function Lt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||c)():r+":"+e}ve({data:yt,removeData:bt,hasData:function(e){for(var t in Ke[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)bt(e[t]),vt(e[t])}},function(e,t){mt[t]=e}),ve({data:yt,inheritedData:xt,scope:function(e){return he.data(e,"$scope")||xt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return he.data(e,"$isolateScope")||he.data(e,"$isolateScopeNoTemplate")},controller:Mt,injector:function(e){return xt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Et,css:function(e,t,n){if(t=nt(t.replace(Je,"ms-")),!N(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Ue&&2!==i&&i!==Ve&&e.getAttribute){var o=pe(t),a=Dt[o];if(!N(n))return r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)}},prop:function(e,t,n){if(!N(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(Ce(t)){var n=e.nodeType;return n===Be||n===Ue?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(Ce(t)){if(e.multiple&&"select"===De(e)){var n=[];return ve(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(Ce(t))return e.innerHTML;ft(e,!0),e.innerHTML=t},empty:At},function(l,e){mt.prototype[e]=function(e,t){var n,r,i=this.length;if(l!==At&&Ce(2===l.length&&l!==Et&&l!==Mt?e:t)){if(we(e)){for(n=0;n<i;n++)if(l===yt)l(this[n],e);else for(r in e)l(this[n],r,e[r]);return this}for(var o=l.$dv,a=Ce(o)?Math.min(i,1):i,s=0;s<a;s++){var c=l(this[s],e,t);o=o?o+c:c}return o}for(n=0;n<i;n++)l(this[n],e,t);return this}}),ve({removeData:bt,on:function(i,e,o,t){if(N(t))throw et("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(lt(i)){var s,c,n,r=$t(i,!0),a=r.events,l=r.handle;l||(l=r.handle=(c=a,(n=function(e,t){e.isDefaultPrevented=function(){return e.defaultPrevented};var n=c[t||e.type],r=n?n.length:0;if(r){if(Ce(e.immediatePropagationStopped)){var i=e.stopImmediatePropagation;e.stopImmediatePropagation=function(){e.immediatePropagationStopped=!0,e.stopPropagation&&e.stopPropagation(),i&&i.call(e)}}e.isImmediatePropagationStopped=function(){return!0===e.immediatePropagationStopped};var o=n.specialHandlerWrapper||Ht;1<r&&(n=Ye(n));for(var a=0;a<r;a++)e.isImmediatePropagationStopped()||o(s,e,n[a])}}).elem=s=i,n));for(var u=0<=e.indexOf(" ")?e.split(" "):[e],d=u.length,m=function(e,t,n){var r=a[e];r||((r=a[e]=[]).specialHandlerWrapper=t,"$destroy"===e||n||i.addEventListener(e,l)),r.push(o)};d--;)e=u[d],Qe[e]?(m(Qe[e],Pt),m(e,void 0,!0)):m(e)}},off:vt,one:function(t,n,r){(t=he(t)).on(n,function e(){t.off(n,r),t.off(n,e)}),t.on(n,r)},replaceWith:function(t,e){var n,r=t.parentNode;ft(t),ve(new mt(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(e){var t=[];return ve(e.childNodes,function(e){e.nodeType===Be&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Be||n===ze)for(var r=0,i=(t=new mt(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(t,e){if(t.nodeType===Be){var n=t.firstChild;ve(new mt(e),function(e){t.insertBefore(e,n)})}},wrap:function(e,t){var n,r,i;n=e,r=he(t).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:kt,detach:function(e){kt(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new mt(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:wt,removeClass:Ct,toggleClass:function(n,e,r){e&&ve(e.split(" "),function(e){var t=r;Ce(t)&&(t=!Et(n,e)),(t?wt:Ct)(n,e)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==ze?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ht,triggerHandler:function(t,e,n){var r,i,o,a=e.type||e,s=$t(t),c=s&&s.events,l=c&&c[a];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:ye,type:a,target:t},e.type&&(r=be(r,e)),i=Ye(l),o=n?[r].concat(n):[r],ve(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,o)}))}},function(a,e){mt.prototype[e]=function(e,t,n){for(var r,i=0,o=this.length;i<o;i++)Ce(r)?N(r=a(this[i],e,t,n))&&(r=he(r)):_t(r,a(this[i],e,t,n));return N(r)?r:this}}),mt.prototype.bind=mt.prototype.on,mt.prototype.unbind=mt.prototype.off;var Ft=Object.create(null);function jt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}jt.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return S(e)?Ft:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Bt=jt,Ut=[function(){this.$get=[function(){return Bt}]}],Vt=/^([^(]+?)=>/,qt=/^[^(]*\(\s*([^)]*)\)/m,zt=/,/,Yt=/^\s*(_?)(\S+?)\1\s*$/,Wt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Gt=k("$injector");function Kt(e){return Function.prototype.toString.call(e)}function Xt(e){var t=Kt(e).replace(Wt,"");return t.match(Vt)||t.match(qt)}function Zt(e,l){l=!0===l;var i={},a="Provider",s=[],o=new Bt,u={$provide:{provider:m(h),factory:m(f),service:m(function(e,t){return f(e,["$injector",function(e){return e.instantiate(t)}])}),value:m(function(e,t){return f(e,D(t),!1)}),constant:m(function(e,t){ce(e,"constant"),u[e]=t,n[e]=t}),decorator:function(e,t){var n=c.get(e+a),r=n.$get;n.$get=function(){var e=d.invoke(r,n);return d.invoke(t,null,{$delegate:e})}}}},c=u.$injector=g(u,function(e,t){throw $.isString(t)&&s.push(t),Gt("unpr","Unknown provider: {0}",s.join(" <- "))}),n={},t=g(n,function(e,t){var n=c.get(e+a,t);return d.invoke(n.$get,n,void 0,e)}),d=t;u["$injector"+a]={$get:D(t)},d.modules=c.modules=je();var r=p(e);return(d=t.get("$injector")).strictDi=l,ve(r,function(e){e&&d.invoke(e)}),d.loadNewModules=function(e){ve(p(e),function(e){e&&d.invoke(e)})},d;function m(n){return function(e,t){if(!we(e))return n(e,t);ve(e,T(n))}}function h(e,t){if(ce(e,"service"),(Ae(t)||Me(t))&&(t=c.instantiate(t)),!t.$get)throw Gt("pget","Provider '{0}' must define $get factory method.",e);return u[e+a]=t}function f(e,t,n){return h(e,{$get:!1!==n?(r=e,i=t,function(){var e=d.invoke(i,this);if(Ce(e))throw Gt("undef","Provider '{0}' must return a value from $get factory method.",r);return e}):t});var r,i}function p(e){Fe(Ce(e)||Me(e),"modulesToLoad","not an array");var n,r=[];return ve(e,function(t){if(!o.get(t)){o.set(t,!0);try{_e(t)?(n=v(t),d.modules[t]=n,r=r.concat(p(n.requires)).concat(n._runBlocks),e(n._invokeQueue),e(n._configBlocks)):Ae(t)?r.push(c.invoke(t)):Me(t)?r.push(c.invoke(t)):se(t,"module")}catch(e){throw Me(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Gt("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function e(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=c.get(r[0]);i[r[1]].apply(i,r[2])}}}),r}function g(n,r){function c(t,e){if(n.hasOwnProperty(t)){if(n[t]===i)throw Gt("cdep","Circular dependency found: {0}",t+" <- "+s.join(" <- "));return n[t]}try{return s.unshift(t),n[t]=i,n[t]=r(t,e),n[t]}catch(e){throw n[t]===i&&delete n[t],e}finally{s.shift()}}function o(e,t,n){for(var r=[],i=Zt.$$annotate(e,l,n),o=0,a=i.length;o<a;o++){var s=i[o];if("string"!=typeof s)throw Gt("itkn","Incorrect injection token! Expected service name as string, got {0}",s);r.push(t&&t.hasOwnProperty(s)?t[s]:c(s,n))}return r}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var i=o(e,n,r);return Me(e)&&(e=e[e.length-1]),function(e){if(me||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return Te(t)||(t=e.$$ngIsClass=/^class\b/.test(Kt(e))),t}(e)?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,n){var r=Me(e)?e[e.length-1]:e,i=o(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:c,annotate:Zt.$$annotate,has:function(e){return u.hasOwnProperty(e+a)||n.hasOwnProperty(e)}}}}function Jt(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(r,i,o){var a=r.document;function s(e){if(e){e.scrollIntoView();var t=function(){var e=c.yOffset;if(Ae(e))e=e();else if(P(e)){var t=e[0];e="fixed"!==r.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else w(e)||(e=0);return e}();if(t){var n=e.getBoundingClientRect().top;r.scrollBy(0,n-t)}}else r.scrollTo(0,0)}function c(e){var t,n,r;(e=_e(e)?e:w(e)?e.toString():i.hash())?(t=a.getElementById(e))?s(t):(n=a.getElementsByName(e),r=null,Array.prototype.some.call(n,function(e){if("a"===De(e))return r=e,!0}),(t=r)?s(t):"top"===e&&s(null)):s(null)}return e&&o.$watch(function(){return i.hash()},function(e,t){var n,r;e===t&&""===e||(n=function(){o.$evalAsync(c)},"complete"===(r=r||de).document.readyState?r.setTimeout(n):he(r).on("load",n))}),c}]}Zt.$$annotate=function(e,t,n){var r,i,o;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw _e(n)&&n||(n=e.name||((o=Xt(e))?"function("+(o[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),Gt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);ve(Xt(e)[1].split(zt),function(e){e.replace(Yt,function(e,t,n){r.push(n)})})}e.$inject=r}}else Me(e)?(se(e[i=e.length-1],"fn"),r=e.slice(0,i)):se(e,"fn",!0);return r};var Qt=k("$animate"),en=1,tn="ng-animate";function nn(e,t){return e||t?e?t?(Me(e)&&(e=e.join(" ")),Me(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function rn(e){return we(e)?e:{}}var on=function(){this.$get=ye},an=function(){var p=new Bt,g=[];this.$get=["$$AnimateRunner","$rootScope",function(d,m){return{enabled:ye,on:ye,off:ye,pin:ye,push:function(e,t,n,r){var i,o,a,s,c,l;r&&r(),(n=n||{}).from&&e.css(n.from),n.to&&e.css(n.to),(n.addClass||n.removeClass)&&(i=e,o=n.addClass,a=n.removeClass,s=p.get(i)||{},c=h(s,o,!0),l=h(s,a,!1),(c||l)&&(p.set(i,s),g.push(i),1===g.length&&m.$$postDigest(f)));var u=new d;return u.complete(),u}};function h(t,e,n){var r=!1;return e&&ve(e=_e(e)?e.split(" "):Me(e)?e:[],function(e){e&&(r=!0,t[e]=n)}),r}function f(){ve(g,function(e){var t=p.get(e);if(t){var n=function(e){_e(e)&&(e=e.split(" "));var t=je();return ve(e,function(e){e.length&&(t[e]=!0)}),t}(e.attr("class")),r="",i="";ve(t,function(e,t){e!==!!n[t]&&(e?r+=(r.length?" ":"")+t:i+=(i.length?" ":"")+t)}),ve(e,function(e){r&&wt(e,r),i&&Ct(e,i)}),p.delete(e)}}),g.length=0}}]},sn=["$provide",function(r){var i=this,t=null,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(e,t){if(e&&"."!==e.charAt(0))throw Qt("notcsel","Expecting class selector starting with '.' got '{0}'.",e);var n=e+"-animation";i.$$registeredAnimations[e.substr(1)]=n,r.factory(n,t)},this.customFilter=function(e){return 1===arguments.length&&(n=Ae(e)?e:null),n},this.classNameFilter=function(e){if(1===arguments.length&&((t=e instanceof RegExp?e:null)&&new RegExp("[(\\s|\\/)]"+tn+"[(\\s|\\/)]").test(t.toString())))throw t=null,Qt("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',tn);return t},this.$get=["$$animateQueue",function(o){function i(e,t,n){if(n){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===en)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:o.on,off:o.off,pin:o.pin,enabled:o.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(e,t,n,r){return t=t&&he(t),n=n&&he(n),i(e,t=t||n.parent(),n),o.push(e,"enter",rn(r))},move:function(e,t,n,r){return t=t&&he(t),n=n&&he(n),i(e,t=t||n.parent(),n),o.push(e,"move",rn(r))},leave:function(e,t){return o.push(e,"leave",rn(t),function(){e.remove()})},addClass:function(e,t,n){return(n=rn(n)).addClass=nn(n.addclass,t),o.push(e,"addClass",n)},removeClass:function(e,t,n){return(n=rn(n)).removeClass=nn(n.removeClass,t),o.push(e,"removeClass",n)},setClass:function(e,t,n,r){return(r=rn(r)).addClass=nn(r.addClass,t),r.removeClass=nn(r.removeClass,n),o.push(e,"setClass",r)},animate:function(e,t,n,r,i){return(i=rn(i)).from=i.from?be(i.from,t):t,i.to=i.to?be(i.to,n):n,r=r||"ng-inline-animate",i.tempClasses=nn(i.tempClasses,r),o.push(e,"animate",i)}}}]}],cn=function(){this.$get=["$$rAF",function(t){var n=[];function r(e){n.push(e),1<n.length||t(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}return function(){var t=!1;return r(function(){t=!0}),function(e){t?e():r(e)}}}]},ln=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,r,i){function o(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){r()?i(e,0,!1):t(e)},this._state=0}return o.chain=function(e,n){var r=0;!function t(){if(r===e.length)return void n(!0);e[r](function(e){!1!==e?(r++,t()):n(!1)})}()},o.all=function(t,n){var r=0,i=!0;function o(e){i=i&&e,++r===t.length&&n(i)}ve(t,function(e){e.done(o)})},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:ye,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(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},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(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(ve(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},o}]},un=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,e,s){return function(e,t){var n=t||{};n.$$prepared||(n=L(n)),n.cleanupStyles&&(n.from=n.to=null),n.from&&(e.css(n.from),n.from=null);var r,i=new s;return{start:o,end:o};function o(){return a(function(){!function(){n.addClass&&(e.addClass(n.addClass),n.addClass=null);n.removeClass&&(e.removeClass(n.removeClass),n.removeClass=null);n.to&&(e.css(n.to),n.to=null)}(),r||i.complete(),r=!0}),i}}}]};function dn(s,e,t,c,n){var l=this,u=s.location,d=s.history,i=s.setTimeout,r=s.clearTimeout,o={},a=n(t);l.isMock=!1,l.$$completeOutstandingRequest=a.completeTask,l.$$incOutstandingRequestCount=a.incTaskCount,l.notifyWhenNoOutstandingRequests=a.notifyWhenNoPendingTasks;var m,h,f=u.href,p=e.find("base"),g=null,v=c.history?function(){try{return d.state}catch(e){}}:ye;C(),l.url=function(e,t,n){if(Ce(n)&&(n=null),u!==s.location&&(u=s.location),d!==s.history&&(d=s.history),e){var r=h===n;if(e=mi(e).href,f===e&&(!c.history||r))return l;var i=f&&lr(f)===lr(e);return f=e,h=n,!c.history||i&&r?(i||(g=e),t?u.replace(e):i?u.hash=-1===(a=(o=e).indexOf("#"))?"":o.substr(a):u.href=e,u.href!==e&&(g=e)):(d[t?"replaceState":"pushState"](n,"",e),C()),g&&(g=e),l}return(g||u.href).replace(/#$/,"");var o,a},l.state=function(){return m};var b=[],$=!1;function y(){g=null,w()}var E=null;function C(){Ie(m=Ce(m=v())?null:m,E)&&(m=E),h=E=m}function w(){var e=h;C(),f===l.url()&&e===m||(f=l.url(),h=m,ve(b,function(e){e(l.url(),m)}))}l.onUrlChange=function(e){return $||(c.history&&he(s).on("popstate",y),he(s).on("hashchange",y),$=!0),b.push(e),e},l.$$applicationDestroyed=function(){he(s).off("hashchange popstate",y)},l.$$checkUrlChange=w,l.baseHref=function(){var e=p.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},l.defer=function(e,t,n){var r;return t=t||0,n=n||a.DEFAULT_TASK_TYPE,a.incTaskCount(n),r=i(function(){delete o[r],a.completeTask(e,n)},t),o[r]=n,r},l.defer.cancel=function(e){if(o.hasOwnProperty(e)){var t=o[e];return delete o[e],r(e),a.completeTask(ye,t),!0}return!1}}function mn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new dn(e,r,t,n,i)}]}function hn(){this.$get=function(){var d={};function e(e,t){if(e in d)throw k("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var n=0,r=be({},t,{id:e}),i=je(),o=t&&t.capacity||Number.MAX_VALUE,a=je(),s=null,c=null;return d[e]={put:function(e,t){if(!Ce(t)){if(o<Number.MAX_VALUE)l(a[e]||(a[e]={key:e}));return e in i||n++,i[e]=t,o<n&&this.remove(c.key),t}},get:function(e){if(o<Number.MAX_VALUE){var t=a[e];if(!t)return;l(t)}return i[e]},remove:function(e){if(o<Number.MAX_VALUE){var t=a[e];if(!t)return;t===s&&(s=t.p),t===c&&(c=t.n),u(t.n,t.p),delete a[e]}e in i&&(delete i[e],n--)},removeAll:function(){i=je(),n=0,a=je(),s=c=null},destroy:function(){a=r=i=null,delete d[e]},info:function(){return be({},r,{size:n})}};function l(e){e!==s&&(c?c===e&&(c=e.n):c=e,u(e.n,e.p),u(e,s),(s=e).n=null)}function u(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return e.info=function(){var n={};return ve(d,function(e,t){n[t]=e.info()}),n},e.get=function(e){return d[e]},e}}function fn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var pn=k("$compile");var gn=new function(){};function vn(n,t){var f={},p="Directive",q=/^\s*directive:\s*([\w-]+)\s+(.*)$/,ue=/(([\w-]+)(?::([^;]+))?;?)/,g=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),b=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,y=/^(on[a-z]+|formaction)$/,s=je();function r(e,r,i){var o=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,a=je();return ve(e,function(e,t){if((e=e.trim())in s)a[t]=s[e];else{var n=e.match(o);if(!n)throw pn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",r,t,e,i?"controller bindings definition":"isolate scope definition");a[t]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||t},n[4]&&(s[e]=a[t])}}),a}function E(e,t){var n={isolateScope:null,bindToController:null};if(we(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),we(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw pn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(c,t){return Fe(c,"name"),ce(c,"directive"),_e(c)?(!function(e){var t=e.charAt(0);if(!t||t!==pe(t))throw pn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw pn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(c),Fe(t,"directiveFactory"),f.hasOwnProperty(c)||(f[c]=[],n.factory(c+p,["$injector","$exceptionHandler",function(o,a){var s=[];return ve(f[c],function(e,t){try{var n=o.invoke(e);Ae(n)?n={compile:D(n)}:!n.compile&&n.link&&(n.compile=D(n.link)),n.priority=n.priority||0,n.index=t,n.name=n.name||c,n.require=(!Me(i=(r=n).require||r.controller&&r.name)&&we(i)&&ve(i,function(e,t){var n=e.match(b);e.substring(n[0].length)||(i[t]=n[0]+t)}),i),n.restrict=function(e,t){if(e&&(!_e(e)||!/[EACM]/.test(e)))throw pn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(n.restrict,c),n.$$moduleName=e.$$moduleName,s.push(n)}catch(e){a(e)}var r,i}),s}])),f[c].push(t)):ve(c,T(e)),this},this.component=function e(t,i){if(!_e(t))return ve(t,T(Pe(this,e))),this;var o=i.controller||function(){};function n(r){function e(n){return Ae(n)||Me(n)?function(e,t){return r.invoke(n,this,{$element:e,$attrs:t})}:n}var t=i.template||i.templateUrl?i.template:"",n={controller:o,controllerAs:function(e,t){if(t&&_e(t))return t;if(_e(e)){var n=Mn.exec(e);if(n)return n[3]}}(i.controller)||i.controllerAs||"$ctrl",template:e(t),templateUrl:e(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return ve(i,function(e,t){"$"===t.charAt(0)&&(n[t]=e)}),n}return ve(i,function(e,t){"$"===t.charAt(0)&&(n[t]=e,Ae(o)&&(o[t]=e))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(e){return N(e)?(t.aHrefSanitizationWhitelist(e),this):t.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return N(e)?(t.imgSrcSanitizationWhitelist(e),this):t.imgSrcSanitizationWhitelist()};var C=!0,w=!(this.debugInfoEnabled=function(e){return N(e)?(C=e,this):C});this.strictComponentBindingsEnabled=function(e){return N(e)?(w=e,this):w};var _=10;this.onChangesTtl=function(e){return arguments.length?(_=e,this):_};var M=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(M=e,this):M};var x=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(x=e,this):x};var A=je();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in A&&A[r]!==n)throw pn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,A[r],n);return A[r]=n,this},function(){function e(t,e){ve(e,function(e){A[e.toLowerCase()]=t})}e(Gr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(Gr.CSS,["*|style"]),e(Gr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(Gr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(Gr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(h,T,z,e,S,Y,D,m,i){var o,c=/^\w/,l=de.document.createElement("div"),N=M,O=x,t=_;function a(){try{if(!--t)throw o=void 0,pn("infchng","{0} $onChanges() iterations reached. Aborting!\n",_);D.$apply(function(){for(var e=0,t=o.length;e<t;++e)try{o[e]()}catch(e){z(e)}o=void 0})}finally{t++}}function u(e,t){if(!e)return e;if(!_e(e))throw pn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Se(e),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),a=Math.floor(o.length/2),s=0;s<a;s++){var c=2*s;n+=m.getTrustedMediaUrl(Se(o[c])),n+=" "+Se(o[c+1])}var l=Se(o[2*s]).split(/\s/);return n+=m.getTrustedMediaUrl(Se(l[0])),2===l.length&&(n+=" "+Se(l[1])),n}function W(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function k(e,t){try{e.addClass(t)}catch(e){}}W.prototype={$normalize:En,$addClass:function(e){e&&0<e.length&&i.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&i.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Cn(e,t);n&&n.length&&i.addClass(this.$$element,n);var r=Cn(t,e);r&&r.length&&i.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=It(this.$$element[0],e),o=Ot[e],a=e;i?(this.$$element.prop(e,t),r=i):o&&(this[o]=t,a=o),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=Le(e,"-")),"img"===De(this.$$element)&&"srcset"===e&&(this[e]=t=u(t,"$set('srcset', value)")),!1!==n&&(null===t||Ce(t)?this.$$element.removeAttr(r):c.test(r)?i&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){l.innerHTML="<span "+t+">";var r=l.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],r,t));var s=this.$$observers;s&&ve(s[a],function(e){try{e(t)}catch(e){z(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=je()),i=r[e]||(r[e]=[]);return i.push(t),D.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||Ce(n[e])||t(n[e])}),function(){Ne(i,t)}}};var n=T.startSymbol(),r=T.endSymbol(),G="{{"===n&&"}}"===r?Ee:function(e){return e.replace(/\{\{/g,n).replace(/}}/g,r)},I=/^ng(Attr|Prop|On)([A-Z].*)$/,H=/^(.+)Start$/;return K.$$addBindingInfo=C?function(e,t){var n=e.data("$binding")||[];Me(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:ye,K.$$addBindingClass=C?function(e){k(e,"ng-binding")}:ye,K.$$addScopeInfo=C?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:ye,K.$$addScopeClass=C?function(e,t){k(e,t?"ng-isolate-scope":"ng-scope")}:ye,K.$$createComment=function(e,t){var n="";return C&&(n=" "+(e||"")+": ",t&&(n+=t+" ")),de.document.createComment(n)},K;function K(u,e,t,n,d){u instanceof he||(u=he(u));var m=P(u,e,u,t,n,d);K.$$addScopeClass(u);var h=null;return function(e,t,n){if(!u)throw pn("multilink","This element has already been linked.");Fe(e,"scope"),d&&d.needsNewScope&&(e=e.$parent.$new());var r,i,o,a=(n=n||{}).parentBoundTranscludeFn,s=n.transcludeControllers,c=n.futureParentElement;if(a&&a.$$boundTransclude&&(a=a.$$boundTransclude),h||(i=(r=c)&&r[0],h=i&&"foreignobject"!==De(i)&&ge.call(i).match(/SVG/)?"svg":"html"),o="html"!==h?he(oe(h,he("<div></div>").append(u).html())):t?St.clone.call(u):u,s)for(var l in s)o.data("$"+l+"Controller",s[l].instance);return K.$$addScopeInfo(o,e),t&&t(o,e),m&&m(e,o,o,a),t||(u=m=null),o}}function P(e,f,t,n,r,i){for(var o,a,s,c,l,u,p,g=[],d=Me(e)||e instanceof he,m=0;m<e.length;m++)o=new W,11===me&&v(e,m,d),(s=(a=X(e[m],[],o,0===m?n:void 0,r)).length?L(a,e[m],o,f,t,null,[],[],i):null)&&s.scope&&K.$$addScopeClass(o.$$element),l=s&&s.terminal||!(c=e[m].childNodes)||!c.length?null:P(c,s?(s.transcludeOnThisElement||!s.templateOnThisElement)&&s.transclude:f),(s||l)&&(g.push(m,s,l),u=!0,p=p||s),i=null;return u?function(e,t,n,r){var i,o,a,s,c,l,u,d,m;if(p){var h=t.length;for(m=new Array(h),c=0;c<g.length;c+=3)u=g[c],m[u]=t[u]}else m=t;for(c=0,l=g.length;c<l;)a=m[g[c++]],i=g[c++],o=g[c++],i?(i.scope?(s=e.$new(),K.$$addScopeInfo(he(a),s)):s=e,d=i.transcludeOnThisElement?R(e,i.transclude,r):!i.templateOnThisElement&&r?r:!r&&f?R(e,f):null,i(o,s,a,n,d)):o&&o(e,a.childNodes,void 0,r)}:null}function v(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Ue)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===Ue;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function R(o,a,s){function e(e,t,n,r,i){return e||((e=o.$new(!1,i)).$$transcluded=!0),a(e,t,{parentBoundTranscludeFn:s,transcludeControllers:n,futureParentElement:r})}var t=e.$$slots=je();for(var n in a.$$slots)a.$$slots[n]?t[n]=R(o,a.$$slots[n],s):t[n]=null;return e}function X(e,t,n,r,i){var o,a,s,c,l,u,d,m,h=e.nodeType,f=n.$attr;switch(h){case Be:F(t,En(a=De(e)),"E",r,i);for(var p,g,v,b,$,y=e.attributes,E=0,C=y&&y.length;E<C;E++){var w,_=!1,M=!1,x=!1,A=!1,k=!1;g=(p=y[E]).name,b=p.value,($=(v=En(g.toLowerCase())).match(I))?(x="Attr"===$[1],A="Prop"===$[1],k="On"===$[1],g=g.replace($n,"").toLowerCase().substr(4+$[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(w=v.match(H))&&j(w[1])&&(M=(_=g).substr(0,g.length-5)+"end",g=g.substr(0,g.length-6)),A||k?(n[v]=b,f[v]=p.name,A?U(e,t,v,g):(d=v,m=g,t.push(Uo(S,D,z,d,m,!1)))):(f[v=En(g.toLowerCase())]=g,!x&&n.hasOwnProperty(v)||(n[v]=b,It(e,v)&&(n[v]=!0)),V(e,t,b,v,x),F(t,v,"A",r,i,_,M))}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!O)break;if(we(s=e.className)&&(s=s.animVal),_e(s)&&""!==s)for(;o=ue.exec(s);)F(t,v=En(o[2]),"C",r,i)&&(n[v]=Se(o[3])),s=s.substr(o.index+o[0].length);break;case Ue:c=t,l=e.nodeValue,(u=T(l,!0))&&c.push({priority:0,compile:function(e){var t=e.parent(),r=!!t.length;return r&&K.$$addBindingClass(t),function(e,t){var n=t.parent();r||K.$$addBindingClass(n),K.$$addBindingInfo(n,u.expressions),e.$watch(u,function(e){t[0].nodeValue=e})}}});break;case Ve:if(!N)break;!function(e,t,n,r,i){try{var o=q.exec(e.nodeValue);if(o){var a=En(o[1]);F(t,a,"M",r,i)&&(n[a]=Se(o[2]))}}catch(e){}}(e,t,n,r,i)}return t.sort(B),t}function Z(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw pn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===Be&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(0<i);else r.push(e);return he(r)}function J(o,a,s){return function(e,t,n,r,i){return t=Z(t[0],a,s),o(e,t,n,r,i)}}function Q(e,t,n,r,i,o){var a;return e?K(t,n,r,i,o):function(){return a||(a=K(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function L(e,y,E,t,n,r,C,w,i){i=i||{};for(var o,a,s,c,l,u=-Number.MAX_VALUE,_=i.newScopeDirective,M=i.controllerDirectives,x=i.newIsolateScopeDirective,A=i.templateDirective,d=i.nonTlbTranscludeDirective,m=!1,h=!1,k=i.hasElementTranscludeDirective,f=E.$$element=he(y),p=r,g=t,v=!1,b=!1,$=0,T=e.length;$<T;$++){var S=(o=e[$]).$$start,D=o.$$end;if(S&&(f=Z(y,S,D)),s=void 0,u>o.priority)break;if((l=o.scope)&&(o.templateUrl||(we(l)?(ie("new/isolated scope",x||_,o,f),x=o):ie("new/isolated scope",x,o,f)),_=_||o),a=o.name,!v&&(o.replace&&(o.templateUrl||o.template)||o.transclude&&!o.$$tlb)){for(var N,O=$+1;N=e[O++];)if(N.transclude&&!N.$$tlb||N.replace&&(N.templateUrl||N.template)){b=!0;break}v=!0}if(!o.templateUrl&&o.controller&&(M=M||je(),ie("'"+a+"' controller",M[a],o,f),M[a]=o),l=o.transclude)if(m=!0,o.$$tlb||(ie("transclusion",d,o,f),d=o),"element"===l)k=!0,u=o.priority,s=f,f=E.$$element=he(K.$$createComment(a,E[a])),y=f[0],ae(n,He(s),y),g=Q(b,s,t,u,p&&p.name,{nonTlbTranscludeDirective:d});else{var I=je();if(we(l)){s=de.document.createDocumentFragment();var H=je(),P=je();for(var R in ve(l,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,H[e]=t,I[t]=null,P[t]=n}),ve(f.contents(),function(e){var t=H[En(De(e))];t?(P[t]=!0,I[t]=I[t]||de.document.createDocumentFragment(),I[t].appendChild(e)):s.appendChild(e)}),ve(P,function(e,t){if(!e)throw pn("reqslot","Required transclusion slot `{0}` was not filled.",t)}),I)if(I[R]){var L=he(I[R].childNodes);I[R]=Q(b,L,t)}s=he(s.childNodes)}else s=he(ht(y)).contents();f.empty(),(g=Q(b,s,t,void 0,void 0,{needsNewScope:o.$$isolateScope||o.$$newScope})).$$slots=I}if(o.template)if(h=!0,ie("template",A,o,f),l=Ae((A=o).template)?o.template(f,E):o.template,l=G(l),o.replace){if(p=o,s=ct(l)?[]:wn(oe(o.templateNamespace,Se(l))),y=s[0],1!==s.length||y.nodeType!==Be)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a,"");ae(n,f,y);var F={$attr:{}},j=X(y,[],F),B=e.splice($+1,e.length-($+1));(x||_)&&te(j,x,_),e=e.concat(j).concat(B),ne(E,F),T=e.length}else f.html(l);if(o.templateUrl)h=!0,ie("template",A,o,f),(A=o).replace&&(p=o),q=re(e.splice($,e.length-$),f,E,n,m&&g,C,w,{controllerDirectives:M,newScopeDirective:_!==o&&_,newIsolateScopeDirective:x,templateDirective:A,nonTlbTranscludeDirective:d}),T=e.length;else if(o.compile)try{c=o.compile(f,E,g);var U=o.$$originalDirective||o;Ae(c)?V(null,Pe(U,c),S,D):c&&V(Pe(U,c.pre),Pe(U,c.post),S,D)}catch(e){z(e,Re(f))}o.terminal&&(q.terminal=!0,u=Math.max(u,o.priority))}return q.scope=_&&!0===_.scope,q.transcludeOnThisElement=m,q.templateOnThisElement=h,q.transclude=g,i.hasElementTranscludeDirective=k,q;function V(e,t,n,r){e&&(n&&(e=J(e,n,r)),e.require=o.require,e.directiveName=a,(x===o||o.$$isolateScope)&&(e=se(e,{isolateScope:!0})),C.push(e)),t&&(n&&(t=J(t,n,r)),t.require=o.require,t.directiveName=a,(x===o||o.$$isolateScope)&&(t=se(t,{isolateScope:!0})),w.push(t))}function q(e,t,n,r,a){var i,o,s,c,l,u,d,m,h,f;for(var p in y===n?m=(h=E).$$element:h=new W(m=he(n),E),l=t,x?c=t.$new(!0):_&&(l=t.$parent),a&&((d=function(e,t,n,r){var i;ke(e)||(r=n,n=t,t=e,e=void 0);k&&(i=u);n||(n=k?m.parent():m);{if(!r)return a(e,t,i,n,$);var o=a.$$slots[r];if(o)return o(e,t,i,n,$);if(Ce(o))throw pn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Re(m))}}).$$boundTransclude=a,d.isSlotFilled=function(e){return!!a.$$slots[e]}),M&&(u=function(e,t,n,r,i,o,a){var s=je();for(var c in r){var l=r[c],u={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},d=l.controller;"@"===d&&(d=t[l.name]);var m=Y(d,u,!0,l.controllerAs);s[l.name]=m,e.data("$"+l.name+"Controller",m.instance)}return s}(m,h,d,M,c,t,x)),x&&(K.$$addScopeInfo(m,c,!0,!(A&&(A===x||A===x.$$originalDirective))),K.$$addScopeClass(m,!0),c.$$isolateBindings=x.$$isolateBindings,(f=le(t,h,c,c.$$isolateBindings,x)).removeWatches&&c.$on("$destroy",f.removeWatches)),u){var g=M[p],v=u[p],b=g.$$bindings.bindToController;v.instance=v(),m.data("$"+g.name+"Controller",v.instance),v.bindingInfo=le(l,h,v.instance,b,g)}for(ve(M,function(e,t){var n=e.require;e.bindToController&&!Me(n)&&we(n)&&be(u[t].instance,ee(t,n,m,u))}),ve(u,function(e){var t=e.instance;if(Ae(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){z(e)}if(Ae(t.$onInit))try{t.$onInit()}catch(e){z(e)}Ae(t.$doCheck)&&(l.$watch(function(){t.$doCheck()}),t.$doCheck()),Ae(t.$onDestroy)&&l.$on("$destroy",function(){t.$onDestroy()})}),i=0,o=C.length;i<o;i++)ce(s=C[i],s.isolateScope?c:t,m,h,s.require&&ee(s.directiveName,s.require,m,u),d);var $=t;for(x&&(x.template||null===x.templateUrl)&&($=c),e&&e($,n.childNodes,void 0,a),i=w.length-1;0<=i;i--)ce(s=w[i],s.isolateScope?c:t,m,h,s.require&&ee(s.directiveName,s.require,m,u),d);ve(u,function(e){var t=e.instance;Ae(t.$postLink)&&t.$postLink()})}}function ee(n,e,r,i){var o;if(_e(e)){var t=e.match(b),a=e.substring(t[0].length),s=t[1]||t[3],c="?"===t[2];if("^^"===s?r=r.parent():o=(o=i&&i[a])&&o.instance,!o){var l="$"+a+"Controller";o="^^"===s&&r[0]&&r[0].nodeType===qe?null:s?r.inheritedData(l):r.data(l)}if(!o&&!c)throw pn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,n)}else if(Me(e)){o=[];for(var u=0,d=e.length;u<d;u++)o[u]=ee(n,e[u],r,i)}else we(e)&&(o={},ve(e,function(e,t){o[t]=ee(n,e,r,i)}));return o||null}function te(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=$e(e[r],{$$isolateScope:t,$$newScope:n})}function F(e,t,n,r,i,o,a){if(t===i)return null;var s=null;if(f.hasOwnProperty(t))for(var c,l=h.get(t+p),u=0,d=l.length;u<d;u++)if(c=l[u],(Ce(r)||r>c.priority)&&-1!==c.restrict.indexOf(n)){if(o&&(c=$e(c,{$$start:o,$$end:a})),!c.$$bindings){var m=c.$$bindings=E(c,c.name);we(m.isolateScope)&&(c.$$isolateBindings=m.isolateScope)}e.push(c),s=c}return s}function j(e){if(f.hasOwnProperty(e))for(var t=h.get(e+p),n=0,r=t.length;n<r;n++)if(t[n].multiElement)return!0;return!1}function ne(n,r){var i=r.$attr,o=n.$attr;ve(n,function(e,t){"$"!==t.charAt(0)&&(r[t]&&r[t]!==e&&(e.length?e+=("style"===t?";":" ")+r[t]:e=r[t]),n.$set(t,e,!0,i[t]))}),ve(r,function(e,t){n.hasOwnProperty(t)||"$"===t.charAt(0)||(n[t]=e,"class"!==t&&"style"!==t&&(o[t]=i[t]))})}function re(m,h,f,p,g,v,b,$){var y,E,C=[],w=h[0],_=m.shift(),M=$e(_,{templateUrl:null,transclude:null,replace:null,$$originalDirective:_}),x=Ae(_.templateUrl)?_.templateUrl(h,f):_.templateUrl,A=_.templateNamespace;return h.empty(),e(x).then(function(e){var n,t,r,i;if(e=G(e),_.replace){if(r=ct(e)?[]:wn(oe(A,Se(e))),n=r[0],1!==r.length||n.nodeType!==Be)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",_.name,x);t={$attr:{}},ae(p,h,n);var o=X(n,[],t);we(_.scope)&&te(o,!0),m=o.concat(m),ne(f,t)}else n=w,h.html(e);for(m.unshift(M),y=L(m,n,f,g,h,_,v,b,$),ve(p,function(e,t){e===n&&(p[t]=h[0])}),E=P(h[0].childNodes,g);C.length;){var a=C.shift(),s=C.shift(),c=C.shift(),l=C.shift(),u=h[0];if(!a.$$destroyed){if(s!==w){var d=s.className;$.hasElementTranscludeDirective&&_.replace||(u=ht(n)),ae(c,he(s),u),k(he(u),d)}i=y.transcludeOnThisElement?R(a,y.transclude,l):l,y(E,a,u,p,i)}}C=null}).catch(function(e){xe(e)&&z(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(C?C.push(t,n,r,o):(y.transcludeOnThisElement&&(o=R(t,y.transclude,i)),y(E,t,n,r,o)))}}function B(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function ie(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw pn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,Re(r))}function oe(e,t){switch(e=pe(e||"html")){case"svg":case"math":var n=de.document.createElement("div");return n.innerHTML="<"+e+">"+t+"</"+e+">",n.childNodes[0].childNodes;default:return t}}function d(e){return u(m.valueOf(e),"ng-prop-srcset")}function U(e,t,n,o){if(y.test(o))throw pn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var r,i,a=De(e),s=(r=a,i=o.toLowerCase(),A[r+"|"+i]||A["*|"+i]),c=Ee;"srcset"!==o||"img"!==a&&"source"!==a?s&&(c=m.getTrusted.bind(m,s)):c=d,t.push({priority:100,compile:function(e,t){var r=S(t[n]),i=S(t[n],function(e){return m.valueOf(e)});return{pre:function(t,n){function e(){var e=r(t);n[0][o]=c(e)}e(),t.$watch(i,e)}}}})}function V(e,t,o,a,n){var r,i,s=De(e),c=(r=s,"srcdoc"===(i=a)?m.HTML:"src"===i||"ngSrc"===i?-1===["img","video","audio","source","track"].indexOf(r)?m.RESOURCE_URL:m.MEDIA_URL:"xlinkHref"===i?"image"===r?m.MEDIA_URL:"a"===r?m.URL:m.RESOURCE_URL:"form"===r&&"action"===i||"base"===r&&"href"===i||"link"===r&&"href"===i?m.RESOURCE_URL:"a"!==r||"href"!==i&&"ngHref"!==i?void 0:m.URL),l=!n,u=g[a]||n,d=T(o,l,c,u);if(d){if("multiple"===a&&"select"===s)throw pn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Re(e));if(y.test(a))throw pn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,n){var r=n.$$observers||(n.$$observers=je()),i=n[a];i!==o&&(d=i&&T(i,!0,c,u),o=i),d&&(n[a]=d(e),(r[a]||(r[a]=[])).$$inter=!0,(n.$$observers&&n.$$observers[a].$$scope||e).$watch(d,function(e,t){"class"===a&&e!==t?n.$updateClass(e,t):n.$set(a,e)}))}}}})}}function ae(e,t,n){var r,i,o=t[0],a=t.length,s=o.parentNode;if(e)for(r=0,i=e.length;r<i;r++)if(e[r]===o){e[r++]=n;for(var c=r,l=c+a-1,u=e.length;c<u;c++,l++)l<u?e[c]=e[l]:delete e[c];e.length-=a-1,e.context===o&&(e.context=n);break}s&&s.replaceChild(n,o);var d=de.document.createDocumentFragment();for(r=0;r<a;r++)d.appendChild(t[r]);for(he.hasData(o)&&(he.data(n,he.data(o)),he(o).off("$destroy")),he.cleanData(d.querySelectorAll("*")),r=1;r<a;r++)delete t[r];t[0]=n,t.length=1}function se(e,t){return be(function(){return e.apply(null,arguments)},e,t)}function ce(e,t,n,r,i,o){try{e(t,n,r,i,o)}catch(e){z(e,Re(n))}}function $(e,t){if(w)throw pn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function le(m,h,f,e,p){var r,g=[],v={};function b(e,t,n){Ae(f.$onChanges)&&!Oe(t,n)&&(o||(m.$$postDigest(a),o=[]),r||(r={},o.push(i)),r[e]&&(n=r[e].previousValue),r[e]=new bn(n,t))}function i(){f.$onChanges(r),r=void 0}return ve(e,function(e,n){var t,r,i,o,a,s=e.attrName,c=e.optional;switch(e.mode){case"@":c||fe.call(h,s)||($(s,p.name),f[n]=h[s]=void 0),a=h.$observe(s,function(e){if(_e(e)||Te(e)){var t=f[n];b(n,e,t),f[n]=e}}),h.$$observers[s].$$scope=m,_e(t=h[s])?f[n]=T(t)(m):Te(t)&&(f[n]=t),v[n]=new bn(gn,f[n]),g.push(a);break;case"=":if(!fe.call(h,s)){if(c)break;$(s,p.name),h[s]=void 0}if(c&&!h[s])break;r=S(h[s]),o=r.literal?Ie:Oe,i=r.assign||function(){throw t=f[n]=r(m),pn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",h[s],s,p.name)},t=f[n]=r(m);var l=function(e){return o(e,f[n])||(o(e,t)?i(m,e=f[n]):f[n]=e),t=e};l.$stateful=!0,a=e.collection?m.$watchCollection(h[s],l):m.$watch(S(h[s],l),null,r.literal),g.push(a);break;case"<":if(!fe.call(h,s)){if(c)break;$(s,p.name),h[s]=void 0}if(c&&!h[s])break;var u=(r=S(h[s])).literal,d=f[n]=r(m);v[n]=new bn(gn,f[n]),a=m[e.collection?"$watchCollection":"$watch"](r,function(e,t){if(t===e){if(t===d||u&&Ie(t,d))return;t=d}b(n,e,t),f[n]=e}),g.push(a);break;case"&":if(c||fe.call(h,s)||$(s,p.name),(r=h.hasOwnProperty(s)?S(h[s]):ye)===ye&&c)break;f[n]=function(e){return r(m,e)}}}),{initialChanges:v,removeWatches:g.length&&function(){for(var e=0,t=g.length;e<t;++e)g[e]()}}}}]}function bn(e,t){this.previousValue=e,this.currentValue=t}vn.$inject=["$provide","$$sanitizeUriProvider"],bn.prototype.isFirstChange=function(){return this.previousValue===gn};var $n=/^((?:x|data)[:\-_])/i,yn=/[:\-_]+(.)/g;function En(e){return e.replace($n,"").replace(yn,function(e,t,n){return n?t.toUpperCase():t})}function Cn(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(0<n.length?" ":"")+a}return n}function wn(e){var t=(e=he(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Ve||n.nodeType===Ue&&""===n.nodeValue.trim())&&r.call(e,t,1)}return e}var _n=k("$controller"),Mn=/^(\S+)(\s+as\s+([\w$]+))?$/;function xn(){var d={};this.has=function(e){return d.hasOwnProperty(e)},this.register=function(e,t){ce(e,"controller"),we(e)?be(d,e):d[e]=t},this.$get=["$injector",function(l){return function(t,n,e,r){var i,o,a,s;if(e=!0===e,r&&_e(r)&&(s=r),_e(t)){if(!(o=t.match(Mn)))throw _n("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(a=o[1],s=s||o[3],!(t=d.hasOwnProperty(a)?d[a]:function(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&Ae(e)?Pe(o,e):e}(n.$scope,a,!0)))throw _n("ctrlreg","The controller with the name '{0}' is not registered.",a);se(t,a,!0)}if(e){var c=(Me(t)?t[t.length-1]:t).prototype;return i=Object.create(c||null),s&&u(n,s,i,a||t.name),be(function(){var e=l.invoke(t,i,n,a);return e!==i&&(we(e)||Ae(e))&&(i=e,s&&u(n,s,i,a||t.name)),i},{instance:i,identifier:s})}return i=l.instantiate(t,n,a),s&&u(n,s,i,a||t.name),i};function u(e,t,n,r){if(!e||!we(e.$scope))throw k("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}}]}function An(){this.$get=["$window",function(e){return he(e.document)}]}function kn(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],r=n&&n.hidden;function i(){r=n.hidden}return e.on("visibilitychange",i),t.$on("$destroy",function(){e.off("visibilitychange",i)}),function(){return r}}]}function Tn(){this.$get=["$log",function(n){return function(e,t){n.error.apply(n,arguments)}}]}var Sn=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof he&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Dn="application/json",Nn={"Content-Type":Dn+";charset=utf-8"},On=/^\[|^\{(?!\{)/,In={"[":/]$/,"{":/}$/},Hn=/^\)]\}',?\n/,Pn=k("$http");function Rn(e){return we(e)?_(e)?e.toISOString():V(e):e}function Ln(){this.$get=function(){return function(e){if(!e)return"";var n=[];return s(e,function(e,t){null===e||Ce(e)||Ae(e)||(Me(e)?ve(e,function(e){n.push(J(t)+"="+J(Rn(e)))}):n.push(J(t)+"="+J(Rn(e))))}),n.join("&")}}}function Fn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function n(e,r,i){Me(e)?ve(e,function(e,t){n(e,r+"["+(we(e)?t:"")+"]")}):we(e)&&!_(e)?s(e,function(e,t){n(e,r+(i?"":"[")+t+(i?"":"]"))}):(Ae(e)&&(e=e()),t.push(J(r)+"="+(null==e?"":J(Rn(e)))))}(e,"",!0),t.join("&")}}}function jn(t,e){if(_e(t)){var n=t.replace(Hn,"").trim();if(n){var r=e("Content-Type"),i=r&&0===r.indexOf(Dn);if(i||(a=(o=n).match(On))&&In[a[0]].test(o))try{t=q(n)}catch(e){if(!i)return t;throw Pn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var o,a;return t}function Bn(e){var t,n=je();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return _e(e)?ve(e.split("\n"),function(e){t=e.indexOf(":"),r(pe(Se(e.substr(0,t))),Se(e.substr(t+1)))}):we(e)&&ve(e,function(e,t){r(pe(t),Se(e))}),n}function Un(n){var r;return function(e){if(r||(r=Bn(n)),e){var t=r[pe(e)];return void 0===t&&(t=null),t}return r}}function Vn(t,n,r,e){return Ae(e)?e(t,n,r):(ve(e,function(e){t=e(t,n,r)}),t)}function qn(e){return 200<=e&&e<300}function zn(){var _=this.defaults={transformResponse:[jn],transformRequest:[function(e){return we(e)&&(r=e,"[object File]"!==ge.call(r))&&(n=e,"[object Blob]"!==ge.call(n))&&(t=e,"[object FormData]"!==ge.call(t))?V(e):e;var t,n,r}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ye(Nn),put:Ye(Nn),patch:Ye(Nn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},M=!1;this.useApplyAsync=function(e){return N(e)?(M=!!e,this):M};var t=this.interceptors=[],r=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(s,g,v,e,b,$,c,y){var E=e("$http");_.paramSerializer=_e(_.paramSerializer)?c.get(_.paramSerializer):_.paramSerializer;var l=[];ve(t,function(e){l.unshift(_e(e)?c.get(e):c.invoke(e))});var n,C=(n=[ui].concat(r.map(mi)),function(e){var t=mi(e);return n.some(hi.bind(null,t))});function w(e){if(!we(e))throw k("$http")("badreq","Http request configuration must be an object.  Received: {0}",e);if(!_e(y.valueOf(e.url)))throw k("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",e.url);var n=be({method:"get",transformRequest:_.transformRequest,transformResponse:_.transformResponse,paramSerializer:_.paramSerializer,jsonpCallbackParam:_.jsonpCallbackParam},e);n.headers=function(e){var t,n,r,i=_.headers,o=be({},e.headers);i=be({},i.common,i[pe(e.method)]);e:for(t in i){for(r in n=pe(t),o)if(pe(r)===n)continue e;o[t]=i[t]}return a=o,s=Ye(e),l={},ve(a,function(e,t){Ae(e)?null!=(c=e(s))&&(l[t]=c):l[t]=e}),l;var a,s,c,l}(e),n.method=m(n.method),n.paramSerializer=_e(n.paramSerializer)?c.get(n.paramSerializer):n.paramSerializer,s.$$incOutstandingRequestCount("$http");var t=[],r=[],i=$.resolve(n);return ve(l,function(e){(e.request||e.requestError)&&t.unshift(e.request,e.requestError),(e.response||e.responseError)&&r.push(e.response,e.responseError)}),i=(i=o(i=(i=o(i,t)).then(function(e){var n=e.headers,t=Vn(e.data,Un(n),void 0,e.transformRequest);Ce(t)&&ve(n,function(e,t){"content-type"===pe(t)&&delete n[t]});Ce(e.withCredentials)&&!Ce(_.withCredentials)&&(e.withCredentials=_.withCredentials);return function(o,e){var a,t,s=$.defer(),n=s.promise,r=o.headers,i="jsonp"===pe(o.method),c=o.url;i?c=y.getTrustedResourceUrl(c):_e(c)||(c=y.valueOf(c));l=c,u=o.paramSerializer(o.params),0<u.length&&(l+=(-1===l.indexOf("?")?"?":"&")+u),c=l,i&&(c=function(n,r){var e=n.split("?");if(2<e.length)throw Pn("badjsonp",'Illegal use more than one "?", in url, "{1}"',n);return ve(X(e[1]),function(e,t){if("JSON_CALLBACK"===e)throw Pn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',n);if(t===r)throw Pn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',r,n)}),n+=(-1===n.indexOf("?")?"?":"&")+r+"=JSON_CALLBACK"}(c,o.jsonpCallbackParam));var l,u;w.pendingRequests.push(o),n.then(p,p),!o.cache&&!_.cache||!1===o.cache||"GET"!==o.method&&"JSONP"!==o.method||(a=we(o.cache)?o.cache:we(_.cache)?_.cache:E);a&&(N(t=a.get(c))?A(t)?t.then(f,f):Me(t)?h(t[1],t[0],Ye(t[2]),t[3],t[4]):h(t,200,{},"OK","complete"):a.put(c,n));if(Ce(t)){var d=C(o.url)?v()[o.xsrfCookieName||_.xsrfCookieName]:void 0;d&&(r[o.xsrfHeaderName||_.xsrfHeaderName]=d),g(o.method,c,e,function(e,t,n,r,i){a&&(qn(e)?a.put(c,[e,t,Bn(n),r,i]):a.remove(c));function o(){h(t,e,n,r,i)}M?b.$applyAsync(o):(o(),b.$$phase||b.$apply())},r,o.timeout,o.withCredentials,o.responseType,m(o.eventHandlers),m(o.uploadEventHandlers))}return n;function m(e){if(e){var t={};return ve(e,function(n,e){t[e]=function(e){function t(){n(e)}M?b.$applyAsync(t):b.$$phase?t():b.$apply(t)}}),t}}function h(e,t,n,r,i){(qn(t=-1<=t?t:0)?s.resolve:s.reject)({data:e,status:t,headers:Un(n),config:o,statusText:r,xhrStatus:i})}function f(e){h(e.data,e.status,Ye(e.headers()),e.statusText,e.xhrStatus)}function p(){var e=w.pendingRequests.indexOf(o);-1!==e&&w.pendingRequests.splice(e,1)}}(e,t).then(a,a)}),r)).finally(function(){s.$$completeOutstandingRequest(ye,"$http")});function o(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function a(e){var t=be({},e);return t.data=Vn(e.data,e.headers,e.status,n.transformResponse),qn(e.status)?t:$.reject(t)}}return w.pendingRequests=[],function(e){ve(arguments,function(n){w[n]=function(e,t){return w(be({},t||{},{method:n,url:e}))}})}("get","delete","head","jsonp"),function(e){ve(arguments,function(r){w[r]=function(e,t,n){return w(be({},n||{},{method:r,url:e,data:t}))}})}("post","put","patch"),w.defaults=_,w}]}function Yn(){this.$get=function(){return function(){return new de.XMLHttpRequest}}}function Wn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return b=r,$=(v=e).defer,y=t,E=n[0],function(e,r,t,i,n,o,a,s,c,l){if(r=r||v.url(),"jsonp"===pe(e))var u=y.createCallback(r),d=function(e,r,i){e=e.replace("JSON_CALLBACK",r);var o=E.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),E.body.removeChild(o),o=null;var t=-1,n="unknown";e&&("load"!==e.type||y.wasCalled(r)||(e={type:"error"}),n=e.type,t="error"===e.type?404:200),i&&i(t,n)},o.addEventListener("load",a),o.addEventListener("error",a),E.body.appendChild(o),a}(r,u,function(e,t){var n=200===e&&y.getResponse(u);g(i,e,n,"",t,"complete"),y.removeCallback(u)});else{var m=b(e,r),h=!1;if(m.open(e,r,!0),ve(n,function(e,t){N(e)&&m.setRequestHeader(t,e)}),m.onload=function(){var e=m.statusText||"",t="response"in m?m.response:m.responseText,n=1223===m.status?204:m.status;0===n&&(n=t?200:"file"===mi(r).protocol?404:0),g(i,n,t,m.getAllResponseHeaders(),e,"complete")},m.onerror=function(){g(i,-1,null,null,"","error")},m.ontimeout=function(){g(i,-1,null,null,"","timeout")},m.onabort=function(){g(i,-1,null,null,"",h?"timeout":"abort")},ve(c,function(e,t){m.addEventListener(t,e)}),ve(l,function(e,t){m.upload.addEventListener(t,e)}),a&&(m.withCredentials=!0),s)try{m.responseType=s}catch(e){if("json"!==s)throw e}m.send(Ce(t)?null:t)}if(0<o)var f=$(function(){p("timeout")},o);else A(o)&&o.then(function(){p(N(o.$$timeoutId)?"timeout":"abort")});function p(e){h="timeout"===e,d&&d(),m&&m.abort()}function g(e,t,n,r,i,o){N(f)&&$.cancel(f),d=m=null,e(t,n,r,i,o)}};var v,b,$,y,E}]}var Gn=$.$interpolateMinErr=k("$interpolate");function Kn(){var x="{{",A="}}";this.startSymbol=function(e){return e?(x=e,this):x},this.endSymbol=function(e){return e?(A=e,this):A},this.$get=["$parse","$exceptionHandler","$sce",function($,y,E){var C=x.length,w=A.length,t=new RegExp(x.replace(/./g,e),"g"),n=new RegExp(A.replace(/./g,e),"g");function e(e){return"\\\\\\"+e}function _(e){return e.replace(t,x).replace(n,A)}function M(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function r(i,e,r,o){var a=r===E.URL||r===E.MEDIA_URL;if(!i.length||-1===i.indexOf(x)){if(e)return;var t=_(i);a&&(t=E.getTrusted(r,t));var n=D(t);return n.exp=i,n.expressions=[],n.$$watchDelegate=M,n}o=!!o;for(var s,c,l,u,d,m=0,h=[],f=i.length,p=[],g=[];m<f;){if(-1===(s=i.indexOf(x,m))||-1===(c=i.indexOf(A,s+C))){m!==f&&p.push(_(i.substring(m)));break}m!==s&&p.push(_(i.substring(m,s))),u=i.substring(s+C,c),h.push(u),m=c+w,g.push(p.length),p.push("")}d=1===p.length&&1===g.length;var v=a&&d?void 0:function(e){try{return e=r&&!a?E.getTrusted(r,e):E.valueOf(e),o&&!N(e)?e:ue(e)}catch(e){y(Gn.interr(i,e))}};if(l=h.map(function(e){return $(e,v)}),!e||h.length){var b=function(e){for(var t=0,n=h.length;t<n;t++){if(o&&Ce(e[t]))return;p[g[t]]=e[t]}return a?E.getTrusted(r,d?p[0]:p.join("")):(r&&1<p.length&&Gn.throwNoconcat(i),p.join(""))};return be(function(e){var t=0,n=h.length,r=new Array(n);try{for(;t<n;t++)r[t]=l[t](e);return b(r)}catch(e){y(Gn.interr(i,e))}},{exp:i,expressions:h,$$watchDelegate:function(r,i){var o;return r.$watchGroup(l,function(e,t){var n=b(e);i.call(this,n,e!==t?o:n,r),o=n})}})}}return r.startSymbol=function(){return x},r.endSymbol=function(){return A},r}]}Gn.throwNoconcat=function(e){throw Gn("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",e)},Gn.interr=function(e,t){return Gn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Xn=k("$interval");function Zn(){this.$get=["$$intervalFactory","$window",function(e,i){var o={},r=function(e){i.clearInterval(e),delete o[e]},t=e(function(e,t,n){var r=i.setInterval(e,t);return o[r]=n,r},r);return t.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Xn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!o.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,n=o[t];return Vr(n.promise),n.reject("canceled"),r(t),!0},t}]}function Jn(){this.$get=["$browser","$q","$$q","$rootScope",function(h,f,p,g){return function(d,m){return function(e,t,n,r){var i=4<arguments.length,o=i?He(arguments,4):[],a=0,s=N(r)&&!r,c=(s?p:f).defer(),l=c.promise;function u(){i?e.apply(null,o):e(a)}return n=N(n)?n:0,l.$$intervalId=d(function(){s?h.defer(u):g.$evalAsync(u),c.notify(a++),0<n&&n<=a&&(c.resolve(a),m(l.$$intervalId)),s||g.$apply()},t,c,s),l}}}]}var Qn=function(){this.$get=function(){var o=$.callbacks,a={};return{createCallback:function(e){var t,n="_"+(o.$$counter++).toString(36),r="angular.callbacks."+n,i=((t=function(e){t.data=e,t.called=!0}).id=n,t);return a[r]=o[n]=i,r},wasCalled:function(e){return a[e].called},getResponse:function(e){return a[e].data},removeCallback:function(e){var t=a[e];delete o[t.id],delete a[e]}}}},er=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,tr={http:80,https:443,ftp:21},nr=k("$location");function rr(e,t,n){var r,i=(r=[],ve(t,function(e,t){Me(e)?ve(e,function(e){r.push(J(t,!0)+(!0===e?"":"="+J(e,!0)))}):r.push(J(t,!0)+(!0===e?"":"="+J(e,!0)))}),r.length?r.join("&"):""),o=n?"#"+Z(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Z(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(i?"?"+i:"")+o}function ir(e,t){var n=mi(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=y(n.port)||tr[n.protocol]||null}var or=/^\s*[\\/]{2,}/;function ar(e,t,n){if(or.test(e))throw nr("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=mi(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=function(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),t.$$search=X(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function sr(e,t){return e.slice(0,t.length)===t}function cr(e,t){if(sr(t,e))return t.substr(e.length)}function lr(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function ur(o,a,s){this.$$html5=!0,s=s||"",ir(o,this),this.$$parse=function(e){var t=cr(a,e);if(!_e(t))throw nr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,a);ar(t,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return a+e.substr(1)},this.$$parseLinkUrl=function(e,t){return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(N(n=cr(o,e))?(r=n,i=s&&N(n=cr(s,n))?a+(cr("/",n)||n):o+r):N(n=cr(a,e))?i=a+n:a===e+"/"&&(i=a),i&&this.$$parse(i),!!i);var n,r,i}}function dr(r,i,o){ir(r,this),this.$$parse=function(e){var t,n=cr(r,e)||cr(i,e);Ce(n)||"#"!==n.charAt(0)?this.$$html5?t=n:(t="",Ce(n)&&(r=e,this.replace())):Ce(t=cr(o,n))&&(t=n),ar(t,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;sr(t,n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(r=i.exec(e))?r[1]:e}(this.$$path,t,r),this.$$compose()},this.$$normalizeUrl=function(e){return r+(e?o+e:"")},this.$$parseLinkUrl=function(e,t){return lr(r)===lr(e)&&(this.$$parse(e),!0)}}function mr(i,o,a){this.$$html5=!0,dr.apply(this,arguments),this.$$parseLinkUrl=function(e,t){return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(i===lr(e)?n=e:(r=cr(o,e))?n=i+a+r:o===e+"/"&&(n=o),n&&this.$$parse(n),!!n);var n,r},this.$$normalizeUrl=function(e){return i+a+e}}var hr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=rr(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:fr("$$absUrl"),url:function(e){if(Ce(e))return this.$$url;var t=er.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:fr("$$protocol"),host:fr("$$host"),port:fr("$$port"),path:pr("$$path",function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e}),search:function(n,e){switch(arguments.length){case 0:return this.$$search;case 1:if(_e(n)||w(n))n=n.toString(),this.$$search=X(n);else{if(!we(n))throw nr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");ve(n=L(n,{}),function(e,t){null==e&&delete n[t]}),this.$$search=n}break;default:Ce(e)||null===e?delete this.$$search[n]:this.$$search[n]=e}return this.$$compose(),this},hash:pr("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};function fr(e){return function(){return this[e]}}function pr(t,n){return function(e){return Ce(e)?this[t]:(this[t]=n(e),this.$$compose(),this)}}function gr(){var v="!",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return N(e)?(v=e,this):v},this.html5Mode=function(e){return Te(e)?(b.enabled=e,this):we(e)?(Te(e.enabled)&&(b.enabled=e.enabled),Te(e.requireBase)&&(b.requireBase=e.requireBase),(Te(e.rewriteLinks)||_e(e.rewriteLinks))&&(b.rewriteLinks=e.rewriteLinks),this):b},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(s,c,l,o,e){var u,t,n,r,i=c.baseHref(),a=c.url();if(b.enabled){if(!i&&b.requireBase)throw nr("nobase","$location in HTML5 mode requires a <base> tag to be present!");n=(r=a).substring(0,r.indexOf("/",r.indexOf("//")+2))+(i||"/"),t=l.history?ur:mr}else n=lr(a),t=dr;var d,m=(d=n).substr(0,lr(d).lastIndexOf("/")+1);(u=new t(n,m,"#"+v)).$$parseLinkUrl(a,a),u.$$state=c.state();var h=/^\s*(javascript|mailto):/i;function f(e,t,n){var r=u.url(),i=u.$$state;try{c.url(e,t,n),u.$$state=c.state()}catch(e){throw u.url(r),u.$$state=i,e}}o.on("click",function(e){var t=b.rewriteLinks;if(t&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var n=he(e.target);"a"!==De(n[0]);)if(n[0]===o[0]||!(n=n.parent())[0])return;if(!_e(t)||!Ce(n.attr(t))){var r=n.prop("href"),i=n.attr("href")||n.attr("xlink:href");we(r)&&"[object SVGAnimatedString]"===r.toString()&&(r=mi(r.animVal).href),h.test(r)||!r||n.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(r,i)&&(e.preventDefault(),u.absUrl()!==c.url()&&s.$apply())}}}),u.absUrl()!==a&&c.url(u.absUrl(),!0);var p=!0;return c.onUrlChange(function(r,i){sr(r,m)?(s.$evalAsync(function(){var e,t=u.absUrl(),n=u.$$state;u.$$parse(r),u.$$state=i,e=s.$broadcast("$locationChangeStart",r,t,i,n).defaultPrevented,u.absUrl()===r&&(e?(u.$$parse(t),f(t,!1,u.$$state=n)):(p=!1,g(t,n)))}),s.$$phase||s.$digest()):e.location.href=r}),s.$watch(function(){if(p||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var n=c.url(),e=u.absUrl(),r=c.state(),i=u.$$replace,o=!((t=n)===(a=e)||mi(t).href===mi(a).href)||u.$$html5&&l.history&&r!==u.$$state;(p||o)&&(p=!1,s.$evalAsync(function(){var e=u.absUrl(),t=s.$broadcast("$locationChangeStart",e,n,u.$$state,r).defaultPrevented;u.absUrl()===e&&(t?(u.$$parse(n),u.$$state=r):(o&&f(e,i,r===u.$$state?null:u.$$state),g(n,r)))}))}var t,a;u.$$replace=!1}),u;function g(e,t){s.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}}]}function vr(){var r=!0,o=this;this.debugEnabled=function(e){return N(e)?(r=e,this):r},this.$get=["$window",function(n){var e,i=me||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:t("log"),info:t("info"),warn:t("warn"),error:t("error"),debug:(e=t("debug"),function(){r&&e.apply(o,arguments)})};function t(e){var t=n.console||{},r=t[e]||t.log||ye;return function(){var n=[];return ve(arguments,function(e){var t;n.push((xe(t=e)&&(t.stack&&i?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.prototype.apply.call(r,t,n)}}}]}ve([mr,dr,ur],function(t){t.prototype=Object.create(hr),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==ur||!this.$$html5)throw nr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=Ce(e)?null:e,this.$$urlUpdatedByLocation=!0,this}});var br=k("$parse"),$r={}.constructor.prototype.valueOf;function yr(e){return e+""}var Er=je();ve("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Er[e]=!0});var Cr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},wr=function(e){this.options=e};wr.prototype={constructor:wr,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=Er[t],o=Er[n],a=Er[r];if(i||o||a){var s=a?r:o?n:t;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(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return 55296<=n&&n<=56319&&56320<=r&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=N(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw br("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=pe(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,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+=Cr[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var _r=function(e,t){this.lexer=e,this.options=t};function Mr(e,t){return void 0!==e?e:t}function xr(e,t){return void 0===e?t:void 0===t?e:e+t}_r.Program="Program",_r.ExpressionStatement="ExpressionStatement",_r.AssignmentExpression="AssignmentExpression",_r.ConditionalExpression="ConditionalExpression",_r.LogicalExpression="LogicalExpression",_r.BinaryExpression="BinaryExpression",_r.UnaryExpression="UnaryExpression",_r.CallExpression="CallExpression",_r.MemberExpression="MemberExpression",_r.Identifier="Identifier",_r.Literal="Literal",_r.ArrayExpression="ArrayExpression",_r.Property="Property",_r.ObjectExpression="ObjectExpression",_r.ThisExpression="ThisExpression",_r.LocalsExpression="LocalsExpression",_r.NGValueParameter="NGValueParameter",_r.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:_r.Program,body:e}},expressionStatement:function(){return{type:_r.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Dr(e))throw br("lval","Trying to assign a value to a non l-value");e={type:_r.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:_r.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:_r.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:_r.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:_r.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:_r.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:_r.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:_r.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:_r.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=L(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:_r.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:_r.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:_r.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:_r.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:_r.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)for(;e.push(this.filterChain()),this.expect(","););return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:_r.Identifier,name:e.text}},constant:function(){return{type:_r.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:_r.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:_r.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:_r.ObjectExpression,properties:t}},throwError:function(e,t){throw br("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw br("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw br("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:_r.ThisExpression},$locals:{type:_r.LocalsExpression}}};var Ar=1,kr=2;function Tr(e,t,n){var r,i,o,a,s,c=e.isPure=function(e,t){switch(e.type){case _r.MemberExpression:if(e.computed)return!1;break;case _r.UnaryExpression:return Ar;case _r.BinaryExpression:return"+"!==e.operator&&Ar;case _r.CallExpression:return!1}return void 0===t?kr:t}(e,n);switch(e.type){case _r.Program:r=!0,ve(e.body,function(e){Tr(e.expression,t,c),r=r&&e.expression.constant}),e.constant=r;break;case _r.Literal:e.constant=!0,e.toWatch=[];break;case _r.UnaryExpression:Tr(e.argument,t,c),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case _r.BinaryExpression:Tr(e.left,t,c),Tr(e.right,t,c),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case _r.LogicalExpression:Tr(e.left,t,c),Tr(e.right,t,c),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case _r.ConditionalExpression:Tr(e.test,t,c),Tr(e.alternate,t,c),Tr(e.consequent,t,c),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case _r.Identifier:e.constant=!1,e.toWatch=[e];break;case _r.MemberExpression:Tr(e.object,t,c),e.computed&&Tr(e.property,t,c),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case _r.CallExpression:o=!!e.filter&&(a=t,s=e.callee.name,!a(s).$stateful),r=o,i=[],ve(e.arguments,function(e){Tr(e,t,c),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=o?i:[e];break;case _r.AssignmentExpression:Tr(e.left,t,c),Tr(e.right,t,c),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case _r.ArrayExpression:r=!0,i=[],ve(e.elements,function(e){Tr(e,t,c),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case _r.ObjectExpression:r=!0,i=[],ve(e.properties,function(e){Tr(e.value,t,c),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(Tr(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case _r.ThisExpression:case _r.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Sr(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function Dr(e){return e.type===_r.Identifier||e.type===_r.MemberExpression}function Nr(e){if(1===e.body.length&&Dr(e.body[0].expression))return{type:_r.AssignmentExpression,left:e.body[0].expression,right:{type:_r.NGValueParameter},operator:"="}}function Or(e){this.$filter=e}function Ir(e){this.$filter=e}function Hr(e,t,n){this.ast=new _r(e,n),this.astCompiler=n.csp?new Ir(t):new Or(t)}function Pr(e){return Ae(e.valueOf)?e.valueOf():$r.call(e)}function Rr(){var s,c,l=je(),u={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){u[e]=t},this.setIdentifierFns=function(e,t){return s=e,c=t,this},this.$get=["$filter",function(i){var o={csp:F().noUnsafeEval,literals:L(u),isIdentifierStart:Ae(s)&&s,isIdentifierContinue:Ae(c)&&c};return e.$$getAst=function(e){return new Hr(new wr(o),i,o).getAst(e).ast},e;function e(e,t){var n,r;switch(typeof e){case"string":if(e=e.trim(),!(n=l[r=e]))n=new Hr(new wr(o),i,o).parse(e),l[r]=f(n);return a(n,t);case"function":return a(e,t);default:return a(ye,t)}}function m(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Pr(e))&&!n)&&(e===t||e!=e&&t!=t)}function t(e,t,n,o,r){var a,s=o.inputs;if(1===s.length){var i=m;return s=s[0],e.$watch(function(e){var t=s(e);return m(t,i,s.isPure)||(a=o(e,void 0,void 0,[t]),i=t&&Pr(t)),a},t,n,r)}for(var c=[],l=[],u=0,d=s.length;u<d;u++)c[u]=m,l[u]=null;return e.$watch(function(e){for(var t=!1,n=0,r=s.length;n<r;n++){var i=s[n](e);(t||(t=!m(i,c[n],s[n].isPure)))&&(l[n]=i,c[n]=i&&Pr(i))}return t&&(a=o(e,void 0,void 0,l)),a},t,n,r)}function n(e,t,n,r,i){var o,a,s=r.literal?h:N,c=r.$$intercepted||r,l=r.$$interceptor||Ee,u=r.inputs&&!c.inputs;return m.literal=r.literal,m.constant=r.constant,m.inputs=r.inputs,f(m),o=e.$watch(m,t,n,i);function d(){s(a)&&o()}function m(e,t,n,r){return a=u&&r?r[0]:c(e,t,n,r),s(a)&&e.$$postDigest(d),l(a)}}function h(e){var t=!0;return ve(e,function(e){N(e)||(t=!1)}),t}function r(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function f(e){return e.constant?e.$$watchDelegate=r:e.oneTime?e.$$watchDelegate=n:e.inputs&&(e.$$watchDelegate=t),e}function a(o,a){if(!a)return o;o.$$interceptor&&(a=function(t,n){function e(e){return n(t(e))}return e.$stateful=t.$stateful||n.$stateful,e.$$pure=t.$$pure&&n.$$pure,e}(o.$$interceptor,a),o=o.$$intercepted);var s=!1,e=function(e,t,n,r){var i=s&&r?r[0]:o(e,t,n,r);return a(i)};return e.$$intercepted=o,e.$$interceptor=a,e.literal=o.literal,e.oneTime=o.oneTime,e.constant=o.constant,a.$stateful||(s=!o.inputs,e.inputs=o.inputs?o.inputs:[o],a.$$pure||(e.inputs=e.inputs.map(function(t){return t.isPure===kr?function(e){return t(e)}:t}))),f(e)}}]}function Lr(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,e){return jr(function(e){t.$evalAsync(e)},e,n)}],this.errorOnUnhandledRejections=function(e){return N(e)?(n=e,this):n}}function Fr(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,e){return jr(function(e){t.defer(e)},e,n)}],this.errorOnUnhandledRejections=function(e){return N(e)?(n=e,this):n}}function jr(a,s,c){var n=k("$q",TypeError),l=0,r=[];function i(){return new e}function e(){var t=this.promise=new o;this.resolve=function(e){m(t,e)},this.reject=function(e){h(t,e)},this.notify=function(e){p(t,e)}}function o(){this.$$state={status:0}}function u(){for(;!l&&r.length;){var e=r.shift();if(!Br(e)){Ur(e);var t="Possibly unhandled rejection: "+We(e.value);xe(e.value)?s(e.value,t):s(t)}}}function d(e){!c||e.pending||2!==e.status||Br(e)||(0===l&&0===r.length&&a(u),r.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++l,a(function(){!function(e){var t,n,r;r=e.pending,e.processScheduled=!1,e.pending=void 0;try{for(var i=0,o=r.length;i<o;++i){Ur(e),n=r[i][0],t=r[i][e.status];try{Ae(t)?m(n,t(e.value)):1===e.status?m(n,e.value):h(n,e.value)}catch(e){h(n,e),e&&!0===e.$$passToExceptionHandler&&s(e)}}}finally{--l,c&&0===l&&a(u)}}(e)}))}function m(e,t){e.$$state.status||(t===e?f(e,n("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):function t(n,e){var r;var i=!1;try{(we(e)||Ae(e))&&(r=e.then),Ae(r)?(n.$$state.status=-1,r.call(e,o,a,s)):(n.$$state.value=e,n.$$state.status=1,d(n.$$state))}catch(e){a(e)}function o(e){i||(i=!0,t(n,e))}function a(e){i||(i=!0,f(n,e))}function s(e){p(n,e)}}(e,t))}function h(e,t){e.$$state.status||f(e,t)}function f(e,t){e.$$state.value=t,e.$$state.status=2,d(e.$$state)}function p(e,i){var o=e.$$state.pending;e.$$state.status<=0&&o&&o.length&&a(function(){for(var e,t,n=0,r=o.length;n<r;n++){t=o[n][0],e=o[n][3];try{p(t,Ae(e)?e(i):i)}catch(e){s(e)}}})}function g(e){var t=new o;return h(t,e),t}function v(e,t,n){var r=null;try{Ae(n)&&(r=n())}catch(e){return g(e)}return A(r)?r.then(function(){return t(e)},g):t(e)}function b(e,t,n,r){var i=new o;return m(i,e),i.then(t,n,r)}be(o.prototype,{then:function(e,t,n){if(Ce(e)&&Ce(t)&&Ce(n))return this;var r=new o;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),0<this.$$state.status&&d(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(t,e){return this.then(function(e){return v(e,$,t)},function(e){return v(e,g,t)},e)}});var $=b;function t(e){if(!Ae(e))throw n("norslvr","Expected resolverFn, got '{0}'",e);var t=new o;return e(function(e){m(t,e)},function(e){h(t,e)}),t}return t.prototype=o.prototype,t.defer=i,t.reject=g,t.when=b,t.resolve=$,t.all=function(e){var n=new o,r=0,i=Me(e)?[]:{};return ve(e,function(e,t){r++,b(e).then(function(e){i[t]=e,--r||m(n,i)},function(e){h(n,e)})}),0===r&&m(n,i),n},t.race=function(e){var t=i();return ve(e,function(e){b(e).then(t.resolve,t.reject)}),t.promise},t}function Br(e){return!!e.pur}function Ur(e){e.pur=!0}function Vr(e){e.$$state&&Ur(e.$$state)}function qr(){this.$get=["$window","$timeout",function(e,n){var r=e.requestAnimationFrame||e.webkitRequestAnimationFrame,i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,t=!!r,o=t?function(e){var t=r(e);return function(){i(t)}}:function(e){var t=n(e,16.66,!1);return function(){n.cancel(t)}};return o.supported=t,o}]}function zr(){var _=10,M=k("$rootScope"),x=null,A=null;this.digestTtl=function(e){return arguments.length&&(_=e),_},this.$get=["$exceptionHandler","$parse","$browser",function(h,f,p){function r(e){e.currentScope.$$destroyed=!0}function i(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}i.prototype={constructor:i,$new:function(e,t){var n;return t=t||this,e?(n=new i).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=c(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",r),n},$watch:function(e,t,n,r){var i=f(e),o=Ae(t)?t:ye;if(i.$$watchDelegate)return i.$$watchDelegate(this,o,n,i,e);var a=this,s=a.$$watchers,c={fn:o,last:C,get:i,exp:r||e,eq:!!n};return x=null,s||((s=a.$$watchers=[]).$$digestWatchIndex=-1),s.unshift(c),s.$$digestWatchIndex++,l(this,1),function(){var e=Ne(s,c);0<=e&&(l(a,-1),e<s.$$digestWatchIndex&&s.$$digestWatchIndex--),x=null}},$watchGroup:function(t,r){var i=new Array(t.length),o=new Array(t.length),a=[],s=this,c=!1,n=!0;if(!t.length){var e=!0;return s.$evalAsync(function(){e&&r(o,o,s)}),function(){e=!1}}if(1===t.length)return this.$watch(t[0],function(e,t,n){o[0]=e,i[0]=t,r(o,e===t?o:i,n)});function l(){c=!1;try{n?(n=!1,r(o,o,s)):r(o,i,s)}finally{for(var e=0;e<t.length;e++)i[e]=o[e]}}return ve(t,function(e,t){var n=s.$watch(e,function(e){o[t]=e,c||(c=!0,s.$evalAsync(l))});a.push(n)}),function(){for(;a.length;)a.shift()()}},$watchCollection:function(e,n){h.$$pure=f(e).literal,h.$stateful=!h.$$pure;var a,s,r,i=this,o=1<n.length,c=0,t=f(e,h),l=[],u={},d=!0,m=0;function h(e){var t,n,r,i;if(!Ce(a=e)){if(we(a))if(H(a)){s!==l&&(m=(s=l).length=0,c++),t=a.length,m!==t&&(c++,s.length=m=t);for(var o=0;o<t;o++)i=s[o],r=a[o],i!=i&&r!=r||i===r||(c++,s[o]=r)}else{for(n in s!==u&&(s=u={},m=0,c++),t=0,a)fe.call(a,n)&&(t++,r=a[n],i=s[n],n in s?i!=i&&r!=r||i===r||(c++,s[n]=r):(m++,s[n]=r,c++));if(t<m)for(n in c++,s)fe.call(a,n)||(m--,delete s[n])}else s!==a&&(s=a,c++);return c}}return this.$watch(t,function(){if(d?(d=!1,n(a,a,i)):n(a,r,i),o)if(we(a))if(H(a)){r=new Array(a.length);for(var e=0;e<a.length;e++)r[e]=a[e]}else for(var t in r={},a)fe.call(a,t)&&(r[t]=a[t]);else r=a})},$digest:function(){var e,t,n,r,i,o,a,s,c,l=_,u=v.length?g:this,d=[];y("$digest"),p.$$checkUrlChange(),this===g&&null!==A&&(p.defer.cancel(A),w()),x=null;do{i=!1,a=u;for(var m=0;m<v.length;m++){try{(0,(c=v[m]).fn)(c.scope,c.locals)}catch(e){h(e)}x=null}v.length=0;e:do{if(r=!a.$$suspended&&a.$$watchers)for(r.$$digestWatchIndex=r.length;r.$$digestWatchIndex--;)try{if(e=r[r.$$digestWatchIndex])if((t=(0,e.get)(a))===(n=e.last)||(e.eq?Ie(t,n):S(t)&&S(n))){if(e===x){i=!1;break e}}else i=!0,(x=e).last=e.eq?L(t,null):t,(0,e.fn)(t,n===C?t:n,a),l<5&&(d[s=4-l]||(d[s]=[]),d[s].push({msg:Ae(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:t,oldVal:n}))}catch(e){h(e)}if(!(o=!a.$$suspended&&a.$$watchersCount&&a.$$childHead||a!==u&&a.$$nextSibling))for(;a!==u&&!(o=a.$$nextSibling);)a=a.$parent}while(a=o);if((i||v.length)&&!l--)throw E(),M("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",_,d)}while(i||v.length);for(E();$<b.length;)try{b[$++]()}catch(e){h(e)}b.length=$=0,p.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===g&&p.$$applicationDestroyed(),l(this,-this.$$watchersCount),this.$$listenerCount)o(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$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=ye,this.$on=this.$watch=this.$watchGroup=function(){return ye},this.$$listeners={},this.$$nextSibling=null,function e(t){9===me&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return f(e)(this,t)},$evalAsync:function(e,t){g.$$phase||v.length||p.defer(function(){v.length&&g.$digest()},null,"$evalAsync"),v.push({scope:this,fn:f(e),locals:t})},$$postDigest:function(e){b.push(e)},$apply:function(e){try{y("$apply");try{return this.$eval(e)}finally{E()}}catch(e){h(e)}finally{try{g.$digest()}catch(e){throw h(e),e}}},$applyAsync:function(e){var t=this;e&&n.push(function(){t.$eval(e)}),e=f(e),null===A&&(A=p.defer(function(){g.$apply(w)},null,"$applyAsync"))},$on:function(t,n){var r=this.$$listeners[t];r||(this.$$listeners[t]=r=[]),r.push(n);for(var e=this;e.$$listenerCount[t]||(e.$$listenerCount[t]=0),e.$$listenerCount[t]++,e=e.$parent;);var i=this;return function(){var e=r.indexOf(n);-1!==e&&(delete r[e],o(i,1,t))}},$emit:function(e,t){var n,r,i,o=[],a=this,s=!1,c={name:e,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=B([c],arguments,1);do{for(n=a.$$listeners[e]||o,c.currentScope=a,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,l)}catch(e){h(e)}else n.splice(r,1),r--,i--;if(s)break;a=a.$parent}while(a);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,r=n,i=n,o={name:e,targetScope:n,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return o;for(var a,s,c,l=B([o],arguments,1);r=i;){for(s=0,c=(a=(o.currentScope=r).$$listeners[e]||[]).length;s<c;s++)if(a[s])try{a[s].apply(null,l)}catch(e){h(e)}else a.splice(s,1),s--,c--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}};var g=new i,v=g.$$asyncQueue=[],b=g.$$postDigestQueue=[],n=g.$$applyAsyncQueue=[],$=0;return g;function y(e){if(g.$$phase)throw M("inprog","{0} already in progress",g.$$phase);g.$$phase=e}function E(){g.$$phase=null}function l(e,t){for(;e.$$watchersCount+=t,e=e.$parent;);}function o(e,t,n){for(;e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n],e=e.$parent;);}function C(){}function w(){for(;n.length;)try{n.shift()()}catch(e){h(e)}A=null}}]}function Yr(){var i=/^\s*(https?|s?ftp|mailto|tel|file):/,o=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return N(e)?(i=e,this):i},this.imgSrcSanitizationWhitelist=function(e){return N(e)?(o=e,this):o},this.$get=function(){return function(e,t){var n=t?o:i,r=mi(e&&e.trim()).href;return""===r||r.match(n)?e:"unsafe:"+r}}}Or.prototype={compile:function(e){var i=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Tr(e,i.$filter);var t,n="";if(this.stage="assign",t=Nr(e)){this.state.computing="assign";var r=this.nextId();this.recurse(t,r),this.return_(r),n="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Sr(e.body);i.stage="inputs",ve(o,function(e,t){var n="fn"+t;i.state[n]={vars:[],body:[],own:{}},i.state.computing=n;var r=i.nextId();i.recurse(e,r),i.return_(r),i.state.inputs.push({name:n,isPure:e.isPure}),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(e);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,yr,Mr,xr);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return ve(e,function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")}),e.length&&t.push("fn.inputs=["+e.map(function(e){return e.name}).join(",")+"];"),t.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var n=[],r=this;return ve(this.state.filters,function(e,t){n.push(e+"=$filter("+r.escape(t)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(n,t,e,r,i,o){var a,s,c,l,u,d=this;if(r=r||ye,!o&&N(n.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",n.watchId)),this.lazyRecurse(n,t,e,r,i,!0));switch(n.type){case _r.Program:ve(n.body,function(e,t){d.recurse(e.expression,void 0,void 0,function(e){s=e}),t!==n.body.length-1?d.current().body.push(s,";"):d.return_(s)});break;case _r.Literal:l=this.escape(n.value),this.assign(t,l),r(t||l);break;case _r.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(e){s=e}),l=n.operator+"("+this.ifDefined(s,0)+")",this.assign(t,l),r(l);break;case _r.BinaryExpression:this.recurse(n.left,void 0,void 0,function(e){a=e}),this.recurse(n.right,void 0,void 0,function(e){s=e}),l="+"===n.operator?this.plus(a,s):"-"===n.operator?this.ifDefined(a,0)+n.operator+this.ifDefined(s,0):"("+a+")"+n.operator+"("+s+")",this.assign(t,l),r(l);break;case _r.LogicalExpression:t=t||this.nextId(),d.recurse(n.left,t),d.if_("&&"===n.operator?t:d.not(t),d.lazyRecurse(n.right,t)),r(t);break;case _r.ConditionalExpression:t=t||this.nextId(),d.recurse(n.test,t),d.if_(t,d.lazyRecurse(n.alternate,t),d.lazyRecurse(n.consequent,t)),r(t);break;case _r.Identifier:t=t||this.nextId(),e&&(e.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),e.computed=!1,e.name=n.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",n.name)),function(){d.if_("inputs"===d.stage||"s",function(){i&&1!==i&&d.if_(d.isNull(d.nonComputedMember("s",n.name)),d.lazyAssign(d.nonComputedMember("s",n.name),"{}")),d.assign(t,d.nonComputedMember("s",n.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",n.name))),r(t);break;case _r.MemberExpression:a=e&&(e.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(n.object,a,void 0,function(){d.if_(d.notNull(a),function(){n.computed?(s=d.nextId(),d.recurse(n.property,s),d.getStringValue(s),i&&1!==i&&d.if_(d.not(d.computedMember(a,s)),d.lazyAssign(d.computedMember(a,s),"{}")),l=d.computedMember(a,s),d.assign(t,l),e&&(e.computed=!0,e.name=s)):(i&&1!==i&&d.if_(d.isNull(d.nonComputedMember(a,n.property.name)),d.lazyAssign(d.nonComputedMember(a,n.property.name),"{}")),l=d.nonComputedMember(a,n.property.name),d.assign(t,l),e&&(e.computed=!1,e.name=n.property.name))},function(){d.assign(t,"undefined")}),r(t)},!!i);break;case _r.CallExpression:t=t||this.nextId(),n.filter?(s=d.filter(n.callee.name),c=[],ve(n.arguments,function(e){var t=d.nextId();d.recurse(e,t),c.push(t)}),l=s+"("+c.join(",")+")",d.assign(t,l),r(t)):(s=d.nextId(),a={},c=[],d.recurse(n.callee,s,a,function(){d.if_(d.notNull(s),function(){ve(n.arguments,function(e){d.recurse(e,n.constant?void 0:d.nextId(),void 0,function(e){c.push(e)})}),l=a.name?d.member(a.context,a.name,a.computed)+"("+c.join(",")+")":s+"("+c.join(",")+")",d.assign(t,l)},function(){d.assign(t,"undefined")}),r(t)}));break;case _r.AssignmentExpression:s=this.nextId(),a={},this.recurse(n.left,void 0,a,function(){d.if_(d.notNull(a.context),function(){d.recurse(n.right,s),l=d.member(a.context,a.name,a.computed)+n.operator+s,d.assign(t,l),r(t||l)})},1);break;case _r.ArrayExpression:c=[],ve(n.elements,function(e){d.recurse(e,n.constant?void 0:d.nextId(),void 0,function(e){c.push(e)})}),l="["+c.join(",")+"]",this.assign(t,l),r(t||l);break;case _r.ObjectExpression:u=!(c=[]),ve(n.properties,function(e){e.computed&&(u=!0)}),u?(t=t||this.nextId(),this.assign(t,"{}"),ve(n.properties,function(e){e.computed?(a=d.nextId(),d.recurse(e.key,a)):a=e.key.type===_r.Identifier?e.key.name:""+e.key.value,s=d.nextId(),d.recurse(e.value,s),d.assign(d.member(t,a,e.computed),s)})):(ve(n.properties,function(t){d.recurse(t.value,n.constant?void 0:d.nextId(),void 0,function(e){c.push(d.escape(t.key.type===_r.Identifier?t.key.name:""+t.key.value)+":"+e)})}),l="{"+c.join(",")+"}",this.assign(t,l)),r(t||l);break;case _r.ThisExpression:this.assign(t,"s"),r(t||"s");break;case _r.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case _r.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(_e(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw br("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Ir.prototype={compile:function(e){var t,r,i=this;Tr(e,i.$filter),(t=Nr(e))&&(r=this.recurse(t));var o,n=Sr(e.body);n&&(o=[],ve(n,function(e,t){var n=i.recurse(e);n.isPure=e.isPure,e.input=n,o.push(n),e.watchId=t}));var a=[];ve(e.body,function(e){a.push(i.recurse(e.expression))});var s=0===e.body.length?ye:1===e.body.length?a[0]:function(t,n){var r;return ve(a,function(e){r=e(t,n)}),r};return r&&(s.assign=function(e,t,n){return r(e,n,t)}),o&&(s.inputs=o),s},recurse:function(e,c,t){var a,l,u,n=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case _r.Literal:return this.value(e.value,c);case _r.UnaryExpression:return l=this.recurse(e.argument),this["unary"+e.operator](l,c);case _r.BinaryExpression:case _r.LogicalExpression:return a=this.recurse(e.left),l=this.recurse(e.right),this["binary"+e.operator](a,l,c);case _r.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),c);case _r.Identifier:return n.identifier(e.name,c,t);case _r.MemberExpression:return a=this.recurse(e.object,!1,!!t),e.computed||(l=e.property.name),e.computed&&(l=this.recurse(e.property)),e.computed?this.computedMember(a,l,c,t):this.nonComputedMember(a,l,c,t);case _r.CallExpression:return u=[],ve(e.arguments,function(e){u.push(n.recurse(e))}),e.filter&&(l=this.$filter(e.callee.name)),e.filter||(l=this.recurse(e.callee,!0)),e.filter?function(e,t,n,r){for(var i=[],o=0;o<u.length;++o)i.push(u[o](e,t,n,r));var a=l.apply(void 0,i,r);return c?{context:void 0,name:void 0,value:a}:a}:function(e,t,n,r){var i,o=l(e,t,n,r);if(null!=o.value){for(var a=[],s=0;s<u.length;++s)a.push(u[s](e,t,n,r));i=o.value.apply(o.context,a)}return c?{value:i}:i};case _r.AssignmentExpression:return a=this.recurse(e.left,!0,1),l=this.recurse(e.right),function(e,t,n,r){var i=a(e,t,n,r),o=l(e,t,n,r);return i.context[i.name]=o,c?{value:o}:o};case _r.ArrayExpression:return u=[],ve(e.elements,function(e){u.push(n.recurse(e))}),function(e,t,n,r){for(var i=[],o=0;o<u.length;++o)i.push(u[o](e,t,n,r));return c?{value:i}:i};case _r.ObjectExpression:return u=[],ve(e.properties,function(e){e.computed?u.push({key:n.recurse(e.key),computed:!0,value:n.recurse(e.value)}):u.push({key:e.key.type===_r.Identifier?e.key.name:""+e.key.value,computed:!1,value:n.recurse(e.value)})}),function(e,t,n,r){for(var i={},o=0;o<u.length;++o)u[o].computed?i[u[o].key(e,t,n,r)]=u[o].value(e,t,n,r):i[u[o].key]=u[o].value(e,t,n,r);return c?{value:i}:i};case _r.ThisExpression:return function(e){return c?{value:e}:e};case _r.LocalsExpression:return function(e,t){return c?{value:t}:t};case _r.NGValueParameter:return function(e,t,n){return c?{value:n}:n}}},"unary+":function(o,a){return function(e,t,n,r){var i=o(e,t,n,r);return i=N(i)?+i:0,a?{value:i}:i}},"unary-":function(o,a){return function(e,t,n,r){var i=o(e,t,n,r);return i=N(i)?-i:-0,a?{value:i}:i}},"unary!":function(o,a){return function(e,t,n,r){var i=!o(e,t,n,r);return a?{value:i}:i}},"binary+":function(o,a,s){return function(e,t,n,r){var i=xr(o(e,t,n,r),a(e,t,n,r));return s?{value:i}:i}},"binary-":function(s,c,l){return function(e,t,n,r){var i=s(e,t,n,r),o=c(e,t,n,r),a=(N(i)?i:0)-(N(o)?o:0);return l?{value:a}:a}},"binary*":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)*a(e,t,n,r);return s?{value:i}:i}},"binary/":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)/a(e,t,n,r);return s?{value:i}:i}},"binary%":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)%a(e,t,n,r);return s?{value:i}:i}},"binary===":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)===a(e,t,n,r);return s?{value:i}:i}},"binary!==":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)!==a(e,t,n,r);return s?{value:i}:i}},"binary==":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)==a(e,t,n,r);return s?{value:i}:i}},"binary!=":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)!=a(e,t,n,r);return s?{value:i}:i}},"binary<":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)<a(e,t,n,r);return s?{value:i}:i}},"binary>":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)>a(e,t,n,r);return s?{value:i}:i}},"binary<=":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)<=a(e,t,n,r);return s?{value:i}:i}},"binary>=":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)>=a(e,t,n,r);return s?{value:i}:i}},"binary&&":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)&&a(e,t,n,r);return s?{value:i}:i}},"binary||":function(o,a,s){return function(e,t,n,r){var i=o(e,t,n,r)||a(e,t,n,r);return s?{value:i}:i}},"ternary?:":function(o,a,s,c){return function(e,t,n,r){var i=o(e,t,n,r)?a(e,t,n,r):s(e,t,n,r);return c?{value:i}:i}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(a,s,c){return function(e,t,n,r){var i=t&&a in t?t:e;c&&1!==c&&i&&null==i[a]&&(i[a]={});var o=i?i[a]:void 0;return s?{context:i,name:a,value:o}:o}},computedMember:function(s,c,l,u){return function(e,t,n,r){var i,o,a=s(e,t,n,r);return null!=a&&(i=yr(i=c(e,t,n,r)),u&&1!==u&&a&&!a[i]&&(a[i]={}),o=a[i]),l?{context:a,name:i,value:o}:o}},nonComputedMember:function(a,s,c,l){return function(e,t,n,r){var i=a(e,t,n,r);l&&1!==l&&i&&null==i[s]&&(i[s]={});var o=null!=i?i[s]:void 0;return c?{context:i,name:s,value:o}:o}},inputs:function(i,o){return function(e,t,n,r){return r?r[o]:i(e,t,n)}}},Hr.prototype={constructor:Hr,parse:function(e){var t,n=this.getAst(e),r=this.astCompiler.compile(n.ast);return r.literal=0===(t=n.ast).body.length||1===t.body.length&&(t.body[0].expression.type===_r.Literal||t.body[0].expression.type===_r.ArrayExpression||t.body[0].expression.type===_r.ObjectExpression),r.constant=n.ast.constant,r.oneTime=n.oneTime,r},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var Wr=k("$sce"),Gr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Kr=/_([a-z])/g;function Xr(e){return e.replace(Kr,tt)}function Zr(e){var t=[];return N(e)&&ve(e,function(e){t.push(function(e){if("self"===e)return e;if(_e(e)){if(-1<e.indexOf("***"))throw Wr("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=I(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(M(e))return new RegExp("^"+e.source+"$");throw Wr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))}),t}function Jr(){this.SCE_CONTEXTS=Gr;var s=["self"],c=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(s=Zr(e)),s},this.resourceUrlBlacklist=function(e){return arguments.length&&(c=Zr(e)),c},this.$get=["$injector","$$sanitizeUri",function(e,r){var i=function(e){throw Wr("unsafe","Attempting to use an unsafe value in a safe context.")};function o(e,t){return"self"===e?hi(t,ui)||hi(t,de.document.baseURI?de.document.baseURI:(ci||((ci=de.document.createElement("a")).href=".",ci=ci.cloneNode(!1)),ci.href)):!!e.exec(t.href)}function t(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}e.has("$sanitize")&&(i=e.get("$sanitize"));var n=t(),a={};return a[Gr.HTML]=t(n),a[Gr.CSS]=t(n),a[Gr.MEDIA_URL]=t(n),a[Gr.URL]=t(a[Gr.MEDIA_URL]),a[Gr.JS]=t(n),a[Gr.RESOURCE_URL]=t(a[Gr.URL]),{trustAs:function(e,t){var n=a.hasOwnProperty(e)?a[e]:null;if(!n)throw Wr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||Ce(t)||""===t)return t;if("string"!=typeof t)throw Wr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,t){if(null===t||Ce(t)||""===t)return t;var n=a.hasOwnProperty(e)?a[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(Ae(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===Gr.MEDIA_URL||e===Gr.URL)return r(t.toString(),e===Gr.MEDIA_URL);if(e===Gr.RESOURCE_URL){if(function(e){var t,n,r=mi(e.toString()),i=!1;for(t=0,n=s.length;t<n;t++)if(o(s[t],r)){i=!0;break}if(i)for(t=0,n=c.length;t<n;t++)if(o(c[t],r)){i=!1;break}return i}(t))return t;throw Wr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===Gr.HTML)return i(t);throw Wr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof n?e.$$unwrapTrustedValue():e}}}]}function Qr(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(r,e){if(t&&me<8)throw Wr("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 i=Ye(Gr);i.isEnabled=function(){return t},i.trustAs=e.trustAs,i.getTrusted=e.getTrusted,i.valueOf=e.valueOf,t||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=Ee),i.parseAs=function(t,e){var n=r(e);return n.literal&&n.constant?n:r(e,function(e){return i.getTrusted(t,e)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return ve(Gr,function(t,e){var n=pe(e);i[Xr("parse_as_"+n)]=function(e){return o(t,e)},i[Xr("get_trusted_"+n)]=function(e){return a(t,e)},i[Xr("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function ei(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=y((/android (\d+)/.exec(pe((e.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((e.navigator||{}).userAgent),a=t[0]||{},s=a.body&&a.body.style,c=!1,l=!1;return s&&(c=!!("transition"in s||"webkitTransition"in s),l=!!("animation"in s||"webkitAnimation"in s)),{history:!(!r||i<4||o),hasEvent:function(e){if("input"===e&&me)return!1;if(Ce(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:F(),transitions:c,animations:l,android:i}}]}function ti(){this.$get=D(function(e){return new ni(e)})}function ni(s){var c={},r=[],l=this.ALL_TASKS_TYPE="$$all$$",u=this.DEFAULT_TASK_TYPE="$$default$$";function d(){var e=r.pop();return e&&e.cb}function m(e){for(var t=r.length-1;0<=t;--t){var n=r[t];if(n.type===e)return r.splice(t,1),n.cb}}this.completeTask=function(e,t){t=t||u;try{e()}finally{c[a=(a=t)||u]&&(c[a]--,c[l]--);var n=c[t],r=c[l];if(!r||!n)for(var i,o=r?m:d;i=o(t);)try{i()}catch(e){s.error(e)}}var a},this.incTaskCount=function(e){c[e=e||u]=(c[e]||0)+1,c[l]=(c[l]||0)+1},this.notifyWhenNoPendingTasks=function(e,t){c[t=t||l]?r.push({type:t,cb:e}):e()}}var ri=k("$templateRequest");function ii(){var l;this.httpOptions=function(e){return e?(l=e,this):l},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(r,i,o,a,s){function c(t,n){c.totalPendingRequests++,_e(t)&&!Ce(i.get(t))||(t=s.getTrustedResourceUrl(t));var e=o.defaults&&o.defaults.transformResponse;return Me(e)?e=e.filter(function(e){return e!==jn}):e===jn&&(e=null),o.get(t,be({cache:i,transformResponse:e},l)).finally(function(){c.totalPendingRequests--}).then(function(e){return i.put(t,e.data)},function(e){n||(e=ri("tpload","Failed to load template: {0} (HTTP status: {1} {2})",t,e.status,e.statusText),r(e));return a.reject(e)})}return c.totalPendingRequests=0,c}]}function oi(){this.$get=["$rootScope","$browser","$location",function(t,n,r){var e={findBindings:function(e,n,r){var t=e.getElementsByClassName("ng-binding"),i=[];return ve(t,function(t){var e=$.element(t).data("$binding");e&&ve(e,function(e){r?new RegExp("(^|\\s)"+I(n)+"(\\s|\\||$)").test(e)&&i.push(t):-1!==e.indexOf(n)&&i.push(t)})}),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',a=e.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return r.url()},setLocation:function(e){e!==r.url()&&(r.url(e),t.$digest())},whenStable:function(e){n.notifyWhenNoOutstandingRequests(e)}};return e}]}var ai=k("$timeout");function si(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(c,l,u,d,m){var h={};function e(e,t,n){Ae(e)||(n=t,t=e,e=ye);var r,i=He(arguments,3),o=N(n)&&!n,a=(o?d:u).defer(),s=a.promise;return r=l.defer(function(){try{a.resolve(e.apply(null,i))}catch(e){a.reject(e),m(e)}finally{delete h[s.$$timeoutId]}o||c.$apply()},t,"$timeout"),s.$$timeoutId=r,h[r]=a,s}return e.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw ai("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!h.hasOwnProperty(e.$$timeoutId))return!1;var t=e.$$timeoutId,n=h[t];return Vr(n.promise),n.reject("canceled"),delete h[t],l.defer.cancel(t)},e}]}var ci,li=de.document.createElement("a"),ui=mi(de.location.href);li.href="http://[::1]";var di="[::1]"===li.hostname;function mi(e){if(!_e(e))return e;var t=e;me&&(li.setAttribute("href",t),t=li.href),li.setAttribute("href",t);var n=li.hostname;return!di&&-1<n.indexOf(":")&&(n="["+n+"]"),{href:li.href,protocol:li.protocol?li.protocol.replace(/:$/,""):"",host:li.host,search:li.search?li.search.replace(/^\?/,""):"",hash:li.hash?li.hash.replace(/^#/,""):"",hostname:n,port:li.port,pathname:"/"===li.pathname.charAt(0)?li.pathname:"/"+li.pathname}}function hi(e,t){return e=mi(e),t=mi(t),e.protocol===t.protocol&&e.host===t.host}function fi(){this.$get=D(de)}function pi(e){var a=e[0]||{},s={},c="";function l(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){var e,t,n,r,i,o=function(e){try{return e.cookie||""}catch(e){return""}}(a);if(o!==c)for(e=(c=o).split("; "),s={},n=0;n<e.length;n++)0<(r=(t=e[n]).indexOf("="))&&(i=l(t.substring(0,r)),Ce(s[i])&&(s[i]=l(t.substring(r+1))));return s}}function gi(){this.$get=pi}function vi(r){var i="Filter";function o(e,t){if(we(e)){var n={};return ve(e,function(e,t){n[t]=o(t,e)}),n}return r.factory(e+i,t)}this.register=o,this.$get=["$injector",function(t){return function(e){return t.get(e+i)}}],o("currency",_i),o("date",Pi),o("filter",bi),o("json",Ri),o("limitTo",ji),o("lowercase",Li),o("number",Mi),o("orderBy",Ui),o("uppercase",Fi)}function bi(){return function(e,t,n,r){if(!H(e)){if(null==e)return e;throw k("filter")("notarray","Expected array but received: {0}",e)}var i,o;switch(r=r||"$",yi(t)){case"function":i=t;break;case"boolean":case"null":case"number":case"string":o=!0;case"object":i=function(t,n,r,i){var o=we(t)&&r in t;!0===n?n=Ie:Ae(n)||(n=function(e,t){return!Ce(e)&&(null===e||null===t?e===t:!(we(t)||we(e)&&!E(e))&&(e=pe(""+e),t=pe(""+t),-1!==e.indexOf(t)))});return function(e){return o&&!we(e)?$i(e,t[r],n,r,!1):$i(e,t,n,r,i)}}(t,n,r,o);break;default:return e}return Array.prototype.filter.call(e,i)}}function $i(e,t,n,r,i,o){var a=yi(e),s=yi(t);if("string"===s&&"!"===t.charAt(0))return!$i(e,t.substring(1),n,r,i);if(Me(e))return e.some(function(e){return $i(e,t,n,r,i)});switch(a){case"object":var c;if(i){for(c in e)if(c.charAt&&"$"!==c.charAt(0)&&$i(e[c],t,n,r,!0))return!0;return!o&&$i(e,t,n,r,!1)}if("object"!==s)return n(e,t);for(c in t){var l=t[c];if(!Ae(l)&&!Ce(l)){var u=c===r;if(!$i(u?e:e[c],l,n,r,u,u))return!1}}return!0;case"function":return!1;default:return n(e,t)}}function yi(e){return null===e?"null":typeof e}pi.$inject=["$document"],vi.$inject=["$provide"];var Ei=22,Ci=".",wi="0";function _i(e){var i=e.NUMBER_FORMATS;return function(e,t,n){Ce(t)&&(t=i.CURRENCY_SYM),Ce(n)&&(n=i.PATTERNS[1].maxFrac);var r=t?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:xi(e,i.PATTERNS[1],i.GROUP_SEP,i.DECIMAL_SEP,n).replace(r,t)}}function Mi(e){var n=e.NUMBER_FORMATS;return function(e,t){return null==e?e:xi(e,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,t)}}function xi(e,t,n,r,i){if(!_e(e)&&!w(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,c=Math.abs(e)+"",l="";if(a)l="∞";else{(function(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=Ce(t)?Math.min(Math.max(n,o),r):+t)+e.i,s=i[a];if(0<a){i.splice(Math.max(e.i,a));for(var c=a;c<i.length;c++)i[c]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(5<=s)if(a-1<0){for(var u=0;a<u;u--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var d=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);d&&(i.unshift(d),e.i++)})(o=function(e){var t,n,r,i,o,a=0;for(-1<(n=e.indexOf(Ci))&&(e=e.replace(Ci,"")),0<(r=e.search(/e/i))?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===wi;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===wi;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return Ei<n&&(t=t.splice(0,Ei-1),a=n-1,n=1),{d:t,e:a,i:n}}(c),i,t.minFrac,t.maxFrac);var u=o.d,d=o.i,m=o.e,h=[];for(s=u.reduce(function(e,t){return e&&!t},!0);d<0;)u.unshift(0),d++;0<d?h=u.splice(d,u.length):(h=u,u=[0]);var f=[];for(u.length>=t.lgSize&&f.unshift(u.splice(-t.lgSize,u.length).join(""));u.length>t.gSize;)f.unshift(u.splice(-t.gSize,u.length).join(""));u.length&&f.unshift(u.join("")),l=f.join(n),h.length&&(l+=r+h.join("")),m&&(l+="e+"+m)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Ai(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=wi+e;return n&&(e=e.substr(e.length-t)),i+e}function ki(n,r,i,o,a){return i=i||0,function(e){var t=e["get"+n]();return(0<i||-i<t)&&(t+=i),0===t&&-12===i&&(t=12),Ai(t,r,o,a)}}function Ti(r,i,o){return function(e,t){var n=e["get"+r]();return t[m((o?"STANDALONE":"")+(i?"SHORT":"")+r)][n]}}function Si(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Di(i){return function(e){var t,n=Si(e.getFullYear()),r=+(t=e,new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay())))-+n;return Ai(1+Math.round(r/6048e5),i)}}function Ni(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}_i.$inject=["$locale"];var Oi={yyyy:ki("FullYear",4,0,!(Mi.$inject=["$locale"]),!0),yy:ki("FullYear",2,0,!0,!0),y:ki("FullYear",1,0,!1,!0),MMMM:Ti("Month"),MMM:Ti("Month",!0),MM:ki("Month",2,1),M:ki("Month",1,1),LLLL:Ti("Month",!1,!0),dd:ki("Date",2),d:ki("Date",1),HH:ki("Hours",2),H:ki("Hours",1),hh:ki("Hours",2,-12),h:ki("Hours",1,-12),mm:ki("Minutes",2),m:ki("Minutes",1),ss:ki("Seconds",2),s:ki("Seconds",1),sss:ki("Milliseconds",3),EEEE:Ti("Day"),EEE:Ti("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n,i=0<=r?"+":"";return i+=Ai(Math[0<r?"floor":"ceil"](r/60),2)+Ai(Math.abs(r%60),2)},ww:Di(2),w:Di(1),G:Ni,GG:Ni,GGG:Ni,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Ii=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Hi=/^-?\d+$/;function Pi(c){var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(t,e,n){var r,i,o="",a=[];if(e=e||"mediumDate",e=c.DATETIME_FORMATS[e]||e,_e(t)&&(t=Hi.test(t)?y(t):function(e){var t;if(t=e.match(d)){var n=new Date(0),r=0,i=0,o=t[8]?n.setUTCFullYear:n.setFullYear,a=t[8]?n.setUTCHours:n.setHours;t[9]&&(r=y(t[9]+t[10]),i=y(t[9]+t[11])),o.call(n,y(t[1]),y(t[2])-1,y(t[3]));var s=y(t[4]||0)-r,c=y(t[5]||0)-i,l=y(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(n,s,c,l,u),n}return e}(t)),w(t)&&(t=new Date(t)),!_(t)||!isFinite(t.getTime()))return t;for(;e;)e=(i=Ii.exec(e))?(a=B(a,i,1)).pop():(a.push(e),null);var s=t.getTimezoneOffset();return n&&(s=Y(n,s),t=G(t,n,!0)),ve(a,function(e){r=Oi[e],o+=r?r(t,c.DATETIME_FORMATS,s):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o}}function Ri(){return function(e,t){return Ce(t)&&(t=2),V(e,t)}}Pi.$inject=["$locale"];var Li=D(pe),Fi=D(m);function ji(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):y(t),S(t)?e:(w(e)&&(e=e.toString()),H(e)?(n=(n=!n||isNaN(n)?0:y(n))<0?Math.max(0,e.length+n):n,0<=t?Bi(e,n,n+t):0===n?Bi(e,t,e.length):Bi(e,Math.max(0,n+t),n)):e)}}function Bi(e,t,n){return _e(e)?e.slice(t,n):a.call(e,t,n)}function Ui(c){return function(e,t,n,r){if(null==e)return e;if(!H(e))throw k("orderBy")("notarray","Expected array but received: {0}",e);Me(t)||(t=[t]),0===t.length&&(t=["+"]);var o=t.map(function(e){var t=1,n=Ee;if(Ae(e))n=e;else if(_e(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(t="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(n=c(e)).constant)){var r=n();n=function(e){return e[r]}}return{get:n,descending:t}}),a=n?-1:1,s=Ae(r)?r:u,i=Array.prototype.map.call(e,function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:o.map(function(e){return function(e,t){var n=typeof e;null===e?n="null":"object"===n&&(e=function(e){if(Ae(e.valueOf)&&l(e=e.valueOf()))return e;if(E(e)&&l(e=e.toString()))return e;return e}(e));return{value:e,type:n,index:t}}(e.get(t),n)})}});return i.sort(function(e,t){for(var n=0,r=o.length;n<r;n++){var i=s(e.predicateValues[n],t.predicateValues[n]);if(i)return i*o[n].descending*a}return(s(e.tieBreaker,t.tieBreaker)||u(e.tieBreaker,t.tieBreaker))*a}),e=i.map(function(e){return e.value})};function l(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function u(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(we(o)&&(o=e.index),we(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i?-1:r<i?-1:1;return n}}function Vi(e){return Ae(e)&&(e={link:e}),e.restrict=e.restrict||"AC",D(e)}Ui.$inject=["$parse"];var qi=D({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===ge.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),zi={};ve(Dt,function(e,r){if("multiple"!==e){var i=En("ng-"+r),t=o;"checked"===e&&(t=function(e,t,n){n.ngModel!==n[i]&&o(e,0,n)}),zi[i]=function(){return{restrict:"A",priority:100,link:t}}}function o(e,t,n){e.$watch(n[i],function(e){n.$set(r,!!e)})}}),ve(Ot,function(e,i){zi[i]=function(){return{priority:100,link:function(e,t,n){if("ngPattern"===i&&"/"===n.ngPattern.charAt(0)){var r=n.ngPattern.match(o);if(r)return void n.$set("ngPattern",new RegExp(r[1],r[2]))}e.$watch(n[i],function(e){n.$set(i,e)})}}}}),ve(["src","srcset","href"],function(a){var s=En("ng-"+a);zi[s]=["$sce",function(o){return{priority:99,link:function(e,t,n){var r=a,i=a;"href"===a&&"[object SVGAnimatedString]"===ge.call(t.prop("href"))&&(i="xlinkHref",n.$attr[i]="xlink:href",r=null),n.$set(s,o.getTrustedMediaUrl(n[s])),n.$observe(s,function(e){e?(n.$set(i,e),me&&r&&t.prop(r,n[i])):"href"===a&&n.$set(i,null)})}}}]});var Yi={$addControl:ye,$getControls:D([]),$$renameControl:function(e,t){e.$name=t},$removeControl:ye,$setValidity:ye,$setDirty:ye,$setPristine:ye,$setSubmitted:ye,$$setSubmitted:ye},Wi="ng-pending",Gi="ng-submitted";function Ki(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Yi,this.$$element=e,this.$$animate=r,Qi(this)}Ki.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Ki.prototype={$rollbackViewValue:function(){ve(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){ve(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){ce(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Ye(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],(this[t]=e).$name=t},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name],ve(this.$pending,function(e,t){this.$setValidity(t,null,n)},this),ve(this.$error,function(e,t){this.$setValidity(t,null,n)},this),ve(this.$$success,function(e,t){this.$setValidity(t,null,n)},this),Ne(this.$$controls,n),n.$$parentForm=Yi},$setDirty:function(){this.$$animate.removeClass(this.$$element,Xo),this.$$animate.addClass(this.$$element,Zo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Xo,Zo+" "+Gi),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,ve(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){ve(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Yi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,Gi),this.$submitted=!0,ve(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},eo({clazz:Ki,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(Ne(r,n),0===r.length&&delete e[t])}});var Xi=function(n){return["$timeout","$parse",function(c,t){return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:Ki,compile:function(e,t){e.addClass(Xo).addClass(Go);var s=t.name?"name":!(!n||!t.ngForm)&&"ngForm";return{pre:function(t,e,n,r){var i=r[0];if(!("action"in n)){var o=function(e){t.$apply(function(){i.$commitViewValue(),i.$setSubmitted()}),e.preventDefault()};e[0].addEventListener("submit",o),e.on("$destroy",function(){c(function(){e[0].removeEventListener("submit",o)},0,!1)})}(r[1]||i.$$parentForm).$addControl(i);var a=s?l(i.$name):ye;s&&(a(t,i),n.$observe(s,function(e){i.$name!==e&&(a(t,void 0),i.$$parentForm.$$renameControl(i,e),(a=l(i.$name))(t,i))})),e.on("$destroy",function(){i.$$parentForm.$removeControl(i),a(t,void 0),be(i,Yi)})}}}};function l(e){return""===e?t('this[""]').assign:t(e).assign||ye}}]},Zi=Xi(),Ji=Xi(!0);function Qi(e){e.$$classCache={},e.$$classCache[Ko]=!(e.$$classCache[Go]=e.$$element.hasClass(Go))}function eo(e){var t=e.clazz,i=e.set,o=e.unset;function a(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function s(e,t,n){t=t?"-"+Le(t,"-"):"",a(e,Go+t,!0===n),a(e,Ko+t,!1===n)}t.prototype.$setValidity=function(e,t,n){var r;Ce(t)?function(e,t,n,r){e[t]||(e[t]={});i(e[t],n,r)}(this,"$pending",e,n):function(e,t,n,r){e[t]&&o(e[t],n,r);to(e[t])&&(e[t]=void 0)}(this,"$pending",e,n),Te(t)?t?(o(this.$error,e,n),i(this.$$success,e,n)):(i(this.$error,e,n),o(this.$$success,e,n)):(o(this.$error,e,n),o(this.$$success,e,n)),this.$pending?(a(this,Wi,!0),this.$valid=this.$invalid=void 0,s(this,"",null)):(a(this,Wi,!1),this.$valid=to(this.$error),this.$invalid=!this.$valid,s(this,"",this.$valid)),s(this,e,r=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,r,this)}}function to(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var no=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ro=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,io=/^(?=.{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])?)*$/,oo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,ao=/^(\d{4,})-(\d{2})-(\d{2})$/,so=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,co=/^(\d{4,})-W(\d\d)$/,lo=/^(\d{4,})-(\d\d)$/,uo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,mo="keydown wheel mousedown",ho=je();ve("date,datetime-local,month,time,week".split(","),function(e){ho[e]=!0});var fo={text:function(e,t,n,r,i,o){go(e,t,n,r,i,o),po(r)},date:bo("date",ao,vo(ao,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":bo("datetimelocal",so,vo(so,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:bo("time",uo,vo(uo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:bo("week",co,function(e,t){if(_(e))return e;if(_e(e)){co.lastIndex=0;var n=co.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,l=Si(r),u=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,l.getDate()+u,o,a,s,c)}}return NaN},"yyyy-Www"),month:bo("month",lo,vo(lo,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,a,s){var c;if($o(e,t,n,r,"number"),yo(r),go(e,t,n,r,i,o),N(n.min)||n.ngMin){var l=n.min||s(n.ngMin)(e);c=Eo(l),r.$validators.min=function(e,t){return r.$isEmpty(t)||Ce(c)||c<=t},n.$observe("min",function(e){e!==l&&(c=Eo(e),l=e,r.$validate())})}if(N(n.max)||n.ngMax){var u=n.max||s(n.ngMax)(e),d=Eo(u);r.$validators.max=function(e,t){return r.$isEmpty(t)||Ce(d)||t<=d},n.$observe("max",function(e){e!==u&&(d=Eo(e),u=e,r.$validate())})}if(N(n.step)||n.ngStep){var m=n.step||s(n.ngStep)(e),h=Eo(m);r.$validators.step=function(e,t){return r.$isEmpty(t)||Ce(h)||_o(t,c||0,h)},n.$observe("step",function(e){e!==m&&(h=Eo(e),m=e,r.$validate())})}},url:function(e,t,n,r,i,o){go(e,t,n,r,i,o),po(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||ro.test(n)}},email:function(e,t,n,r,i,o){go(e,t,n,r,i,o),po(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||io.test(n)}},radio:function(e,n,r,i){var o=!r.ngTrim||"false"!==Se(r.ngTrim);Ce(r.name)&&n.attr("name",c());n.on("change",function(e){var t;n[0].checked&&(t=r.value,o&&(t=Se(t)),i.$setViewValue(t,e&&e.type))}),i.$render=function(){var e=r.value;o&&(e=Se(e)),n[0].checked=e===i.$viewValue},r.$observe("value",i.$render)},range:function(e,r,i,n,t,o){$o(e,r,i,n,"range"),yo(n),go(e,r,i,n,t,o);var a=n.$$hasNativeValidators&&"range"===r[0].type,s=a?0:void 0,c=a?100:void 0,l=a?1:void 0,u=r[0].validity,d=N(i.min),m=N(i.max),h=N(i.step),f=n.$render;n.$render=a&&N(u.rangeUnderflow)&&N(u.rangeOverflow)?function(){f(),n.$setViewValue(r.val())}:f,d&&(s=Eo(i.min),n.$validators.min=a?function(){return!0}:function(e,t){return n.$isEmpty(t)||Ce(s)||s<=t},p("min",function(e){if(s=Eo(e),S(n.$modelValue))return;if(a){var t=r.val();t<s&&(t=s,r.val(t)),n.$setViewValue(t)}else n.$validate()}));m&&(c=Eo(i.max),n.$validators.max=a?function(){return!0}:function(e,t){return n.$isEmpty(t)||Ce(c)||t<=c},p("max",function(e){if(c=Eo(e),S(n.$modelValue))return;if(a){var t=r.val();c<t&&(r.val(c),t=c<s?s:c),n.$setViewValue(t)}else n.$validate()}));h&&(l=Eo(i.step),n.$validators.step=a?function(){return!u.stepMismatch}:function(e,t){return n.$isEmpty(t)||Ce(l)||_o(t,s||0,l)},p("step",function(e){if(l=Eo(e),S(n.$modelValue))return;a?n.$viewValue!==r.val()&&n.$setViewValue(r.val()):n.$validate()}));function p(e,t){r.attr(e,i[e]);var n=i[e];i.$observe(e,function(e){e!==n&&t(n=e)})}},checkbox:function(e,t,n,r,i,o,a,s){var c=Mo(s,e,"ngTrueValue",n.ngTrueValue,!0),l=Mo(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",function(e){r.$setViewValue(t[0].checked,e&&e.type)}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return Ie(e,c)}),r.$parsers.push(function(e){return e?c:l})},hidden:ye,button:ye,submit:ye,reset:ye,file:ye};function po(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function go(e,r,i,o,t,a){var s,c=pe(r[0].type);if(!t.android){var l=!1;r.on("compositionstart",function(){l=!0}),r.on("compositionupdate",function(e){(Ce(e.data)||""===e.data)&&(l=!1)}),r.on("compositionend",function(){l=!1,u()})}var u=function(e){if(s&&(a.defer.cancel(s),s=null),!l){var t=r.val(),n=e&&e.type;"password"===c||i.ngTrim&&"false"===i.ngTrim||(t=Se(t)),(o.$viewValue!==t||""===t&&o.$$hasNativeValidators)&&o.$setViewValue(t,n)}};if(t.hasEvent("input"))r.on("input",u);else{var n=function(e,t,n){s||(s=a.defer(function(){s=null,t&&t.value===n||u(e)}))};r.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||n(e,this,this.value)}),t.hasEvent("paste")&&r.on("paste cut drop",n)}r.on("change",u),ho[c]&&o.$$hasNativeValidators&&c===i.type&&r.on(mo,function(e){if(!s){var t=this[d],n=t.badInput,r=t.typeMismatch;s=a.defer(function(){s=null,t.badInput===n&&t.typeMismatch===r||u(e)})}}),o.$render=function(){var e=o.$isEmpty(o.$viewValue)?"":o.$viewValue;r.val()!==e&&r.val(e)}}function vo(o,a){return function(e,t){var n,r;if(_(e))return e;if(_e(e)){if('"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substring(1,e.length-1)),no.test(e))return new Date(e);if(o.lastIndex=0,n=o.exec(e)){n.shift(),r=t?{yyyy:t.getFullYear(),MM:t.getMonth()+1,dd:t.getDate(),HH:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds(),sss:t.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},ve(n,function(e,t){t<a.length&&(r[a[t]]=+e)});var i=new Date(r.yyyy,r.MM-1,r.dd,r.HH,r.mm,r.ss||0,1e3*r.sss||0);return r.yyyy<100&&i.setFullYear(r.yyyy),i}}return NaN}}function bo(b,$,y,E){return function(e,t,n,i,r,o,a,s){$o(e,t,n,i,b),go(0,t,n,i,r,o);var c,l,u="time"===b||"datetimelocal"===b;if(i.$parsers.push(function(e){return i.$isEmpty(e)?null:$.test(e)?v(e,c):void(i.$$parserName=b)}),i.$formatters.push(function(e){if(e&&!_(e))throw na("datefmt","Expected `{0}` to be a date",e);if(p(e)){c=e;var t=i.$options.getOption("timezone");return t&&(c=G(c,l=t,!0)),function(e,t){var n=E;u&&_e(i.$options.getOption("timeSecondsFormat"))&&(n=E.replace("ss.sss",i.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var r=a("date")(e,n,t);u&&i.$options.getOption("timeStripZeroSeconds")&&(r=r.replace(/(?::00)?(?:\.000)?$/,""));return r}(e,t)}return l=c=null,""}),N(n.min)||n.ngMin){var d=n.min||s(n.ngMin)(e),m=g(d);i.$validators.min=function(e){return!p(e)||Ce(m)||y(e)>=m},n.$observe("min",function(e){e!==d&&(m=g(e),d=e,i.$validate())})}if(N(n.max)||n.ngMax){var h=n.max||s(n.ngMax)(e),f=g(h);i.$validators.max=function(e){return!p(e)||Ce(f)||y(e)<=f},n.$observe("max",function(e){e!==h&&(f=g(e),h=e,i.$validate())})}function p(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function g(e){return N(e)&&!_(e)?v(e)||void 0:e}function v(e,t){var n=i.$options.getOption("timezone");l&&l!==n&&(t=W(t,Y(l)));var r=y(e,t);return!isNaN(r)&&n&&(r=G(r,n)),r}}}function $o(e,n,t,r,i){var o=n[0];(r.$$hasNativeValidators=we(o.validity))&&r.$parsers.push(function(e){var t=n.prop(d)||{};if(!t.badInput&&!t.typeMismatch)return e;r.$$parserName=i})}function yo(t){t.$parsers.push(function(e){return t.$isEmpty(e)?null:oo.test(e)?parseFloat(e):void(t.$$parserName="number")}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!w(e))throw na("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function Eo(e){return N(e)&&!w(e)&&(e=parseFloat(e)),S(e)?void 0:e}function Co(e){return(0|e)===e}function wo(e){var t=e.toString(),n=t.indexOf(".");if(-1!==n)return t.length-n-1;if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}function _o(e,t,n){var r=Number(e),i=!Co(r),o=!Co(t),a=!Co(n);if(i||o||a){var s=i?wo(r):0,c=o?wo(t):0,l=a?wo(n):0,u=Math.max(s,c,l),d=Math.pow(10,u);r*=d,t*=d,n*=d,i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function Mo(e,t,n,r,i){var o;if(N(r)){if(!(o=e(r)).constant)throw na("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var xo=["$browser","$sniffer","$filter","$parse",function(i,o,a,s){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,t,n,r){r[0]&&(fo[pe(n.type)]||fo.text)(e,t,n,r[0],o,i,a,s)}}}}],Ao=function(){var o={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(e,t){if("hidden"===pe(t.type))return{pre:function(e,t,n,r){var i=t[0];i.parentNode&&i.parentNode.insertBefore(i,i.nextSibling),Object.defineProperty&&Object.defineProperty(i,"value",o)}}}}},ko=/^(true|false|\d+)$/,To=function(){function r(e,t,n){var r=N(n)?n:9===me?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,t){return ko.test(t.ngValue)?function(e,t,n){r(t,n,e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){r(t,n,e)})}}}},So=["$compile",function(r){return{restrict:"AC",compile:function(e){return r.$$addBindingClass(e),function(e,t,n){r.$$addBindingInfo(t,n.ngBind),t=t[0],e.$watch(n.ngBind,function(e){t.textContent=ue(e)})}}}}],Do=["$interpolate","$compile",function(i,o){return{compile:function(e){return o.$$addBindingClass(e),function(e,t,n){var r=i(t.attr(n.$attr.ngBindTemplate));o.$$addBindingInfo(t,r.expressions),t=t[0],n.$observe("ngBindTemplate",function(e){t.textContent=Ce(e)?"":e})}}}}],No=["$sce","$parse","$compile",function(o,n,a){return{restrict:"A",compile:function(e,t){var r=n(t.ngBindHtml),i=n(t.ngBindHtml,function(e){return o.valueOf(e)});return a.$$addBindingClass(e),function(t,n,e){a.$$addBindingInfo(n,e.ngBindHtml),t.$watch(i,function(){var e=r(t);n.html(o.getTrustedHtml(e)||"")})}}}}],Oo=D({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}});function Io(i,m){var o;return i="ngClass"+i,["$parse",function(n){return{restrict:"AC",link:function(e,t,c){var l,r=t.data("$classCounts"),u=!0;function d(e,t){var n=[];return ve(e,function(e){(0<t||r[e])&&(r[e]=(r[e]||0)+t,r[e]===+(0<t)&&n.push(e))}),n.join(" ")}r||(r=je(),t.data("$classCounts",r)),"ngClass"!==i&&(o||(o=n("$index",function(e){return 1&e})),e.$watch(o,function(e){e===m?(n=d(f(n=l),1),c.$addClass(n)):(t=d(f(t=l),-1),c.$removeClass(t));var t;var n;u=e})),e.$watch(n(c[i],a),function(e){u===m&&(t=e,n=f(l),r=f(t),i=h(n,r),o=h(r,n),a=d(i,-1),s=d(o,1),c.$addClass(s),c.$removeClass(a));var t,n,r,i,o,a,s;l=e})}}}];function h(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function f(e){return e&&e.split(" ")}function a(t){if(!t)return t;var e=t;return Me(t)?e=t.map(a).join(" "):we(t)?e=Object.keys(t).filter(function(e){return t[e]}).join(" "):_e(t)||(e=t+""),e}}var Ho=Io("",!0),Po=Io("Odd",0),Ro=Io("Even",1),Lo=Vi({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Fo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],jo={},Bo={blur:!0,focus:!0};function Uo(n,i,o,a,s,c){return{restrict:"A",compile:function(e,t){var r=n(t[a]);return function(n,e){e.on(s,function(e){var t=function(){r(n,{$event:e})};if(i.$$phase)if(c)n.$evalAsync(t);else try{t()}catch(e){o(e)}else n.$apply(t)})}}}}ve("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(r){var i=En("ng-"+r);jo[i]=["$parse","$rootScope","$exceptionHandler",function(e,t,n){return Uo(e,t,n,i,r,Bo[r])}]});var Vo=["$animate","$compile",function(c,l){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(e,n,r,t,i){var o,a,s;e.$watch(r.ngIf,function(e){e?a||i(function(e,t){a=t,e[e.length++]=l.$$createComment("end ngIf",r.ngIf),o={clone:e},c.enter(e,n.parent(),n)}):(s&&(s.remove(),s=null),a&&(a.$destroy(),a=null),o&&(s=le(o.clone),c.leave(s).done(function(e){!1!==e&&(s=null)}),o=null))})}}}],qo=["$templateRequest","$anchorScroll","$animate",function(g,v,b){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:$.noop,compile:function(e,t){var n=t.ngInclude||t.src,f=t.onload||"",p=t.autoscroll;return function(a,s,e,c,l){var u,t,d,m=0,h=function(){t&&(t.remove(),t=null),u&&(u.$destroy(),u=null),d&&(b.leave(d).done(function(e){!1!==e&&(t=null)}),t=d,d=null)};a.$watch(n,function(r){var i=function(e){!1===e||!N(p)||p&&!a.$eval(p)||v()},o=++m;r?(g(r,!0).then(function(e){if(!a.$$destroyed&&o===m){var t=a.$new();c.template=e;var n=l(t,function(e){h(),b.enter(e,null,s).done(i)});d=n,(u=t).$emit("$includeContentLoaded",r),a.$eval(f)}},function(){a.$$destroyed||o===m&&(h(),a.$emit("$includeContentError",r))}),a.$emit("$includeContentRequested",r)):(h(),c.template=null)})}}}}],zo=["$compile",function(i){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,t,n,r){if(ge.call(t[0]).match(/SVG/))return t.empty(),void i(ut(r.template,de.document).childNodes)(e,function(e){t.append(e)},{futureParentElement:t});t.html(r.template),i(t.contents())(e)}}}],Yo=Vi({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Wo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,a=o?Se(i):i;r.$parsers.push(function(e){if(!Ce(e)){var t=[];return e&&ve(e.split(a),function(e){e&&t.push(o?Se(e):e)}),t}}),r.$formatters.push(function(e){if(Me(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},Go="ng-valid",Ko="ng-invalid",Xo="ng-pristine",Zo="ng-dirty",Jo="ng-untouched",Qo="ng-touched",ea="ng-empty",ta="ng-not-empty",na=k("ngModel");function ra(e,t,n,r,i,o,a,s,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(e),this.$$parentForm=Yi,this.$options=ia,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,Qi(this),(l=this).$$scope.$watch(function(e){var t=l.$$ngModelGet(e);return t===l.$modelValue||l.$modelValue!=l.$modelValue&&t!=t||l.$$setModelValue(t),t})}ra.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],ra.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),r=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var t=this.$$parsedNgModel(e);return Ae(t)&&(t=n(e)),t},this.$$ngModelSet=function(e,t){Ae(this.$$parsedNgModel(e))?r(e,{$$$p:t}):this.$$parsedNgModelAssign(e,t)}}else if(!this.$$parsedNgModel.assign)throw na("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Re(this.$$element))},$render:ye,$isEmpty:function(e){return Ce(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,ta),this.$$animate.addClass(this.$$element,ea)):(this.$$animate.removeClass(this.$$element,ea),this.$$animate.addClass(this.$$element,ta))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Zo),this.$$animate.addClass(this.$$element,Xo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Xo),this.$$animate.addClass(this.$$element,Zo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,Jo,Qo)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,Qo,Jo)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!S(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(r,i,t){this.$$currentValidationRunId++;var o,a,s,n=this.$$currentValidationRunId,c=this;(function(){var e=c.$$parserName;{if(!Ce(c.$$parserValid))return c.$$parserValid||(ve(c.$validators,function(e,t){l(t,null)}),ve(c.$asyncValidators,function(e,t){l(t,null)})),l(e,c.$$parserValid),c.$$parserValid;l(e,null)}return!0})()?(o=!0,ve(c.$validators,function(e,t){var n=Boolean(e(r,i));o=o&&n,l(t,n)}),o||(ve(c.$asyncValidators,function(e,t){l(t,null)}),0)?(a=[],s=!0,ve(c.$asyncValidators,function(e,t){var n=e(r,i);if(!A(n))throw na("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",n);l(t,void 0),a.push(n.then(function(){l(t,!0)},function(){l(t,s=!1)}))}),a.length?c.$$q.all(a).then(function(){e(s)},ye):e(!0)):e(!1)):e(!1);function l(e,t){n===c.$$currentValidationRunId&&c.$setValidity(e,t)}function e(e){n===c.$$currentValidationRunId&&t(e)}},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,n=this;if(this.$$parserValid=!Ce(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var e=0;e<this.$parsers.length;e++)if(Ce(t=this.$parsers[e](t))){this.$$parserValid=!1;break}S(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){n.$modelValue!==r&&n.$$writeModelToScope()}this.$$rawModelValue=t,i&&(this.$modelValue=t,o()),this.$$runValidators(t,this.$$lastCommittedViewValue,function(e){i||(n.$modelValue=e?t:void 0,o())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),ve(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");w(t[e])?t=t[e]:w(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:w(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;0<t?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,ye))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},eo({clazz:ra,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var ia,oa=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ra,priority:1,compile:function(e){return e.addClass(Xo).addClass(Jo).addClass(Go),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,t,n,r){var i=r[0];function o(){i.$setTouched()}i.$$setUpdateOnEvents(),t.on("blur",function(){i.$touched||(a.$$phase?e.$evalAsync(o):e.$apply(o))})}}}}}],aa=/(\s+|^)default(\s+|$)/;function sa(e){this.$$options=e}sa.prototype={getOption:function(e){return this.$$options[e]},createChild:function(n){var r=!1;return ve(n=be({},n),function(e,t){"$inherit"===e?"*"===t?r=!0:(n[t]=this.$$options[t],"updateOn"===t&&(n.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===t&&(n.updateOnDefault=!1,n[t]=Se(e.replace(aa,function(){return n.updateOnDefault=!0," "})))},this),r&&(delete n["*"],la(n,this.$$options)),la(n,ia.$$options),new sa(n)}},ia=new sa({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ca=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:ia,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function la(n,e){ve(e,function(e,t){N(n[t])||(n[t]=e)})}var ua=Vi({terminal:!0,priority:1e3}),da=k("ngOptions"),ma=/^\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]+?))?$/,ha=["$compile","$document","$parse",function(g,v,_){var b=de.document.createElement("option"),$=de.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=ye},post:function(e,a,t,n){for(var s=n[0],c=n[1],l=t.multiple,r=0,i=a.children(),o=i.length;r<o;r++)if(""===i[r].value){s.hasEmptyOption=!0,s.emptyOption=i.eq(r);break}a.empty();var u,d=!!s.emptyOption;he(b.cloneNode(!1)).val("?");var m=function(e,t,m){var d=e.match(ma);if(!d)throw da("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Re(t));var n=d[5]||d[7],r=d[6],i=/ as /.test(d[0])&&d[1],h=d[9],o=_(d[2]?d[1]:n),f=i&&_(i)||o,a=h&&_(h),p=h?function(e,t){return a(m,t)}:function(e){return Lt(e)},g=function(e,t){return p(e,E(e,t))},v=_(d[2]||d[1]),b=_(d[3]||""),$=_(d[4]||""),y=_(d[8]),s={},E=r?function(e,t){return s[r]=t,s[n]=e,s}:function(e){return s[n]=e,s};function C(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function w(e){var t;if(!r&&H(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:h,getTrackByValue:g,getWatchables:_(y,function(e){for(var t=[],n=w(e=e||[]),r=n.length,i=0;i<r;i++){var o=e===n?i:n[i],a=e[o],s=E(a,o),c=p(a,s);if(t.push(c),d[2]||d[1]){var l=v(m,s);t.push(l)}if(d[4]){var u=$(m,s);t.push(u)}}return t}),getOptions:function(){for(var e=[],t={},n=y(m)||[],r=w(n),i=r.length,o=0;o<i;o++){var a=n===r?o:r[o],s=n[a],c=E(s,a),l=f(m,c),u=p(l,c),d=new C(u,l,v(m,c),b(m,c),$(m,c));e.push(d),t[u]=d}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[g(e)]},getViewValueFromOption:function(e){return h?L(e.viewValue):e.viewValue}}}}}(t.ngOptions,a,e),h=v[0].createDocumentFragment();function f(e,t){var n,r,i=b.cloneNode(!1);t.appendChild(i),r=i,((n=e).element=r).disabled=n.disabled,n.label!==r.label&&(r.label=n.label,r.textContent=n.label),r.value=n.selectValue}function p(e){var t=u.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}s.generateUnknownOptionValue=function(e){return"?"},l?(s.writeValue=function(e){if(u){var t=e&&e.map(p)||[];u.items.forEach(function(e){e.element.selected&&!R(t,e)&&(e.element.selected=!1)})}},s.readValue=function(){var e=a.val()||[],n=[];return ve(e,function(e){var t=u.selectValueMap[e];t&&!t.disabled&&n.push(u.getViewValueFromOption(t))}),n},m.trackBy&&e.$watchCollection(function(){if(Me(c.$viewValue))return c.$viewValue.map(function(e){return m.getTrackByValue(e)})},function(){c.$render()})):(s.writeValue=function(e){if(u){var t=a[0].options[a[0].selectedIndex],n=u.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(a[0].value!==n.selectValue&&(s.removeUnknownOption(),a[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):s.selectUnknownOrEmptyOption(e)}},s.readValue=function(){var e=u.selectValueMap[a.val()];return e&&!e.disabled?(s.unselectEmptyOption(),s.removeUnknownOption(),u.getViewValueFromOption(e)):null},m.trackBy&&e.$watch(function(){return m.getTrackByValue(c.$viewValue)},function(){c.$render()})),d&&(g(s.emptyOption)(e),a.prepend(s.emptyOption),s.emptyOption[0].nodeType===Ve?(s.hasEmptyOption=!1,s.registerOption=function(e,t){""===t.val()&&(s.hasEmptyOption=!0,s.emptyOption=t,s.emptyOption.removeClass("ng-scope"),c.$render(),t.on("$destroy",function(){var e=s.$isEmptyOptionSelected();s.hasEmptyOption=!1,s.emptyOption=void 0,e&&c.$render()}))}):s.emptyOption.removeClass("ng-scope")),e.$watchCollection(m.getWatchables,function(){var e=u&&s.readValue();if(u)for(var t=u.items.length-1;0<=t;t--){var n=u.items[t];N(n.group)?kt(n.element.parentNode):kt(n.element)}u=m.getOptions();var r={};if(u.items.forEach(function(e){var t;N(e.group)?((t=r[e.group])||(t=$.cloneNode(!1),h.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),f(e,t)):f(e,h)}),a[0].appendChild(h),c.$render(),!c.$isEmpty(e)){var i=s.readValue(),o=m.trackBy||l;(o?Ie(e,i):e===i)||(c.$setViewValue(i),c.$render())}})}}}}],fa=["$locale","$interpolate","$log",function(f,p,g){var v=/{}/g,b=/^when(Minus)?(.+)$/;return{link:function(i,o,a){var s,e=a.count,c=a.$attr.when&&o.attr(a.$attr.when),l=a.offset||0,u=i.$eval(c)||{},d={},t=p.startSymbol(),n=p.endSymbol(),r=t+e+"-"+l+n,m=$.noop;function h(e){o.text(e||"")}ve(a,function(e,t){var n=b.exec(t);if(n){var r=(n[1]?"-":"")+pe(n[2]);u[r]=o.attr(a.$attr[t])}}),ve(u,function(e,t){d[t]=p(e.replace(v,r))}),i.$watch(e,function(e){var t=parseFloat(e),n=S(t);if(n||t in u||(t=f.pluralCat(t-l)),!(t===s||n&&S(s))){m();var r=d[t];Ce(r)?(null!=e&&g.debug("ngPluralize: no rule defined for '"+t+"' in "+c),m=ye,h()):m=i.$watch(r,h),s=t}})}}}],pa=k("ngRef"),ga=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,i){var o=En(De(e)),a=t(i.ngRef),s=a.assign||function(){throw pa("nonassign",'Expression in ngRef="{0}" is non-assignable!',i.ngRef)};return function(e,t,n){var r;if(n.hasOwnProperty("ngRefRead")){if("$element"===n.ngRefRead)r=t;else if(!(r=t.data("$"+n.ngRefRead+"Controller")))throw pa("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',n.ngRefRead,i.ngRef)}else r=t.data("$"+o+"Controller");s(e,r=r||t),t.on("$destroy",function(){a(e)===r&&s(e,null)})}}}}],va=["$parse","$animate","$compile",function(s,T,c){var S="$$NG_REMOVED",D=k("ngRepeat"),N=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},O=function(e,t,n){return Lt(n)},I=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,t){var C=t.ngRepeat,w=c.$$createComment("end ngRepeat",C),n=C.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!n)throw D("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",C);var r=n[1],i=n[2],_=n[3],o=n[4];if(!(n=r.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw D("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",r);var M,x=n[3]||n[1],A=n[2];if(_&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(_)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(_)))throw D("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",_);if(o){var k={$id:Lt},a=s(o);M=function(e,t,n,r){return A&&(k[A]=t),k[x]=n,k.$index=r,a(e,k)}}return function(b,$,e,t,y){var E=je();b.$watchCollection(i,function(e){var r,t,n,i,o,a,s,c,l,u,d,m,h,f=$[0],p=je();if(_&&(b[_]=e),H(e))l=e,c=M||O;else for(var g in c=M||I,l=[],e)fe.call(e,g)&&"$"!==g.charAt(0)&&l.push(g);for(i=l.length,d=new Array(i),r=0;r<i;r++)if(o=e===l?r:l[r],a=e[o],s=c(b,o,a,r),E[s])u=E[s],delete E[s],p[s]=u,d[r]=u;else{if(p[s])throw ve(d,function(e){e&&e.scope&&(E[e.id]=e)}),D("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",C,s,a);d[r]={id:s,scope:void 0,clone:void 0},p[s]=!0}for(var v in k&&(k[x]=void 0),E){if(m=le((u=E[v]).clone),T.leave(m),m[0].parentNode)for(r=0,t=m.length;r<t;r++)m[r][S]=!0;u.scope.$destroy()}for(r=0;r<i;r++)if(o=e===l?r:l[r],a=e[o],(u=d[r]).scope){for(n=f;(n=n.nextSibling)&&n[S];);u.clone[0]!==n&&T.move(le(u.clone),null,f),f=(h=u).clone[h.clone.length-1],N(u.scope,r,x,a,A,o,i)}else y(function(e,t){u.scope=t;var n=w.cloneNode(!1);e[e.length++]=n,T.enter(e,null,f),f=n,u.clone=e,p[u.id]=u,N(u.scope,r,x,a,A,o,i)});E=p})}}}}],ba="ng-hide",$a="ng-hide-animate",ya=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(e,t,n){e.$watch(n.ngShow,function(e){r[e?"removeClass":"addClass"](t,ba,{tempClasses:$a})})}}}],Ea=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(e,t,n){e.$watch(n.ngHide,function(e){r[e?"addClass":"removeClass"](t,ba,{tempClasses:$a})})}}}],Ca=Vi(function(e,t,n){e.$watchCollection(n.ngStyle,function(n,e){e&&n!==e&&(n||(n={}),ve(e,function(e,t){null==n[t]&&(n[t]="")})),n&&t.css(n)})}),wa=["$animate","$compile",function(u,d){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,t,n,i){var r=n.ngSwitch||n.on,o=[],a=[],s=[],c=[],l=function(t,n){return function(e){!1!==e&&t.splice(n,1)}};e.$watch(r,function(e){for(var t,n;s.length;)u.cancel(s.pop());for(t=0,n=c.length;t<n;++t){var r=le(a[t].clone);c[t].$destroy(),(s[t]=u.leave(r)).done(l(s,t))}a.length=0,c.length=0,(o=i.cases["!"+e]||i.cases["?"])&&ve(o,function(i){i.transclude(function(e,t){c.push(t);var n=i.element;e[e.length++]=d.$$createComment("end ngSwitchWhen");var r={clone:e};a.push(r),u.enter(e,n.parent(),n)})})})}}}],_a=Vi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){ve(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),Ma=Vi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),xa=k("ngTransclude"),Aa=["$compile",function(t){return{restrict:"EAC",compile:function(e){var s=t(e.contents());return e.empty(),function(e,n,t,r,i){if(!i)throw xa("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Re(n));t.ngTransclude===t.$attr.ngTransclude&&(t.ngTransclude="");var o=t.ngTransclude||t.ngTranscludeSlot;function a(){s(e,function(e){n.append(e)})}i(function(e,t){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Ue||r.nodeValue.trim())return!0}}(e)?n.append(e):(a(),t.$destroy())},null,o),o&&!i.isSlotFilled(o)&&a()}}}}],ka=["$templateCache",function(i){return{restrict:"E",terminal:!0,compile:function(e,t){if("text/ng-template"===t.type){var n=t.id,r=e[0].text;i.put(n,r)}}}}],Ta={$setViewValue:ye,$render:ye};function Sa(e,t){e.prop("selected",t),e.attr("selected",t)}var Da=["$element","$scope",function(i,t){var s=this,r=new Bt;s.selectValueMap={},s.ngModelCtrl=Ta,s.multiple=!1,s.unknownOption=he(de.document.createElement("option")),s.hasEmptyOption=!1,s.emptyOption=void 0,s.renderUnknownOption=function(e){var t=s.generateUnknownOptionValue(e);s.unknownOption.val(t),i.prepend(s.unknownOption),Sa(s.unknownOption,!0),i.val(t)},s.updateUnknownOption=function(e){var t=s.generateUnknownOptionValue(e);s.unknownOption.val(t),Sa(s.unknownOption,!0),i.val(t)},s.generateUnknownOptionValue=function(e){return"? "+Lt(e)+" ?"},s.removeUnknownOption=function(){s.unknownOption.parent()&&s.unknownOption.remove()},s.selectEmptyOption=function(){s.emptyOption&&(i.val(""),Sa(s.emptyOption,!0))},s.unselectEmptyOption=function(){s.hasEmptyOption&&Sa(s.emptyOption,!1)},t.$on("$destroy",function(){s.renderUnknownOption=ye}),s.readValue=function(){var e=i.val(),t=e in s.selectValueMap?s.selectValueMap[e]:e;return s.hasOption(t)?t:null},s.writeValue=function(e){var t=i[0].options[i[0].selectedIndex];if(t&&Sa(he(t),!1),s.hasOption(e)){s.removeUnknownOption();var n=Lt(e);i.val(n in s.selectValueMap?n:e);var r=i[0].options[i[0].selectedIndex];Sa(he(r),!0)}else s.selectUnknownOrEmptyOption(e)},s.addOption=function(e,t){if(t[0].nodeType!==Ve){ce(e,'"option value"'),""===e&&(s.hasEmptyOption=!0,s.emptyOption=t);var n=r.get(e)||0;r.set(e,n+1),c()}},s.removeOption=function(e){var t=r.get(e);t&&(1===t?(r.delete(e),""===e&&(s.hasEmptyOption=!1,s.emptyOption=void 0)):r.set(e,t-1))},s.hasOption=function(e){return!!r.get(e)},s.$hasEmptyOption=function(){return s.hasEmptyOption},s.$isUnknownOptionSelected=function(){return i[0].options[0]===s.unknownOption[0]},s.$isEmptyOptionSelected=function(){return s.hasEmptyOption&&i[0].options[i[0].selectedIndex]===s.emptyOption[0]};var e=!(s.selectUnknownOrEmptyOption=function(e){null==e&&s.emptyOption?(s.removeUnknownOption(),s.selectEmptyOption()):s.unknownOption.parent().length?s.updateUnknownOption(e):s.renderUnknownOption(e)});function c(){e||(e=!0,t.$$postDigest(function(){e=!1,s.ngModelCtrl.$render()}))}var n=!1;function l(e){n||(n=!0,t.$$postDigest(function(){t.$$destroyed||(n=!1,s.ngModelCtrl.$setViewValue(s.readValue()),e&&s.ngModelCtrl.$render())}))}s.registerOption=function(e,r,i,t,n){var o,a;i.$attr.ngValue?i.$observe("value",function(e){var t,n=r.prop("selected");N(a)&&(s.removeOption(o),delete s.selectValueMap[a],t=!0),a=Lt(e),o=e,s.selectValueMap[a]=e,s.addOption(e,r),r.attr("value",a),t&&n&&l()}):t?i.$observe("value",function(e){var t;s.readValue();var n=r.prop("selected");N(o)&&(s.removeOption(o),t=!0),o=e,s.addOption(e,r),t&&n&&l()}):n?e.$watch(n,function(e,t){i.$set("value",e);var n=r.prop("selected");t!==e&&s.removeOption(t),s.addOption(e,r),t&&n&&l()}):s.addOption(i.value,r);i.$observe("disabled",function(e){("true"===e||e&&r.prop("selected"))&&(s.multiple?l(!0):(s.ngModelCtrl.$setViewValue(null),s.ngModelCtrl.$render()))}),r.on("$destroy",function(){var e=s.readValue(),t=i.value;s.removeOption(t),c(),(s.multiple&&e&&-1!==e.indexOf(t)||e===t)&&l(!0)})}}],Na=function(){return{restrict:"E",require:["select","?ngModel"],controller:Da,priority:1,link:{pre:function(e,t,n,r){var i=r[0],o=r[1];if(!o)return void(i.registerOption=ye);if(i.ngModelCtrl=o,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){o.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var n=[];return ve(t.find("option"),function(e){if(e.selected&&!e.disabled){var t=e.value;n.push(t in i.selectValueMap?i.selectValueMap[t]:t)}}),n},i.writeValue=function(r){ve(t.find("option"),function(e){var t=!!r&&(R(r,e.value)||R(r,i.selectValueMap[e.value])),n=e.selected;t!==n&&Sa(he(e),t)})};var a,s=NaN;e.$watch(function(){s!==o.$viewValue||Ie(a,o.$viewValue)||(a=Ye(o.$viewValue),o.$render()),s=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},Oa=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(e,t){var a,s;return N(t.ngValue)||(N(t.value)?a=n(t.value,!0):(s=n(e.text(),!0))||t.$set("value",e.text())),function(e,t,n){var r="$selectController",i=t.parent(),o=i.data(r)||i.parent().data(r);o&&o.registerOption(e,t,n,a,s)}}}}],Ia=["$parse",function(o){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=n.hasOwnProperty("required")||o(n.ngRequired)(e);n.ngRequired||(n.required=!0),r.$validators.required=function(e,t){return!i||!r.$isEmpty(t)},n.$observe("required",function(e){i!==e&&(i=e,r.$validate())})}}}}],Ha=["$parse",function(n){return{restrict:"A",require:"?ngModel",compile:function(e,t){var a,s;return t.ngPattern&&(a=t.ngPattern,s="/"===t.ngPattern.charAt(0)&&o.test(t.ngPattern)?function(){return t.ngPattern}:n(t.ngPattern)),function(e,n,t,r){if(r){var i=t.pattern;t.ngPattern?i=s(e):a=t.pattern;var o=La(i,a,n);t.$observe("pattern",function(e){var t=o;o=La(e,a,n),(t&&t.toString())!==(o&&o.toString())&&r.$validate()}),r.$validators.pattern=function(e,t){return r.$isEmpty(t)||Ce(o)||o.test(t)}}}}}}],Pa=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=n.maxlength||a(n.ngMaxlength)(e),o=Fa(i);n.$observe("maxlength",function(e){i!==e&&(o=Fa(e),i=e,r.$validate())}),r.$validators.maxlength=function(e,t){return o<0||r.$isEmpty(t)||t.length<=o}}}}}],Ra=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=n.minlength||a(n.ngMinlength)(e),o=Fa(i)||-1;n.$observe("minlength",function(e){i!==e&&(o=Fa(e)||-1,i=e,r.$validate())}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=o}}}}}];function La(e,t,n){if(e){if(_e(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw k("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,Re(n));return e}}function Fa(e){var t=y(e);return S(t)?-1:t}de.angular.bootstrap?de.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var i;if(!ae){var e=j();(t=Ce(e)?de.jQuery:e?de[e]:void 0)&&t.fn.on?be((he=t).fn,{scope:St.scope,isolateScope:St.isolateScope,controller:St.controller,injector:St.injector,inheritedData:St.inheritedData}):he=mt,i=he.cleanData,he.cleanData=function(e){for(var t,n,r=0;null!=(n=e[r]);r++)(t=(he._data(n)||{}).events)&&t.$destroy&&he(n).triggerHandler("$destroy");i(e)},$.element=he,ae=!0}}(),be($,{errorHandlingConfig:e,bootstrap:ne,copy:L,extend:be,merge:b,equals:Ie,element:he,forEach:ve,injector:Zt,noop:ye,bind:Pe,toJson:V,fromJson:q,identity:Ee,isUndefined:Ce,isDefined:N,isString:_e,isFunction:Ae,isObject:we,isNumber:w,isElement:P,isArray:Me,version:Ge,isDate:_,callbacks:{$$counter:0},getTestability:ie,reloadWithDebugInfo:re,$$minErr:k,$$csp:F,$$encodeUriSegment:Z,$$encodeUriQuery:J,$$lowercase:pe,$$stringify:ue,$$uppercase:m}),(v=function(e){var d=k("$injector"),m=k("ng");function t(e,t,n){return e[t]||(e[t]=n())}var n=t(e,"angular",Object);return n.$$minErr=n.$$minErr||k,t(n,"module",function(){var e={};return function(s,c,l){var u={};return function(e,t){if("hasOwnProperty"===e)throw m("badname","hasOwnProperty is not a valid {0} name",t)}(s,"module"),c&&e.hasOwnProperty(s)&&(e[s]=null),t(e,s,function(){if(!c)throw d("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.",s);var o=[],e=[],t=[],n=r("$injector","invoke","push",e),a={_invokeQueue:o,_configBlocks:e,_runBlocks:t,info:function(e){if(N(e)){if(!we(e))throw m("aobj","Argument '{0}' must be an object","value");return u=e,this}return u},requires:c,name:s,provider:i("$provide","provider"),factory:i("$provide","factory"),service:i("$provide","service"),value:r("$provide","value"),constant:r("$provide","constant","unshift"),decorator:i("$provide","decorator",e),animation:i("$animateProvider","register"),filter:i("$filterProvider","register"),controller:i("$controllerProvider","register"),directive:i("$compileProvider","directive"),component:i("$compileProvider","component"),config:n,run:function(e){return t.push(e),this}};return l&&n(l),a;function r(e,t,n,r){return r||(r=o),function(){return r[n||"push"]([e,t,arguments]),a}}function i(n,r,i){return i||(i=o),function(e,t){return t&&Ae(t)&&(t.$$moduleName=s),i.push([n,r,arguments]),a}}})}})}(de))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Yr}),e.provider("$compile",vn).directive({a:qi,input:xo,textarea:xo,form:Zi,script:ka,select:Na,option:Oa,ngBind:So,ngBindHtml:No,ngBindTemplate:Do,ngClass:Ho,ngClassEven:Ro,ngClassOdd:Po,ngCloak:Lo,ngController:Fo,ngForm:Ji,ngHide:Ea,ngIf:Vo,ngInclude:qo,ngInit:Yo,ngNonBindable:ua,ngPluralize:fa,ngRef:ga,ngRepeat:va,ngShow:ya,ngStyle:Ca,ngSwitch:wa,ngSwitchWhen:_a,ngSwitchDefault:Ma,ngOptions:ha,ngTransclude:Aa,ngModel:oa,ngList:Wo,ngChange:Oo,pattern:Ha,ngPattern:Ha,required:Ia,ngRequired:Ia,minlength:Ra,ngMinlength:Ra,maxlength:Pa,ngMaxlength:Pa,ngValue:To,ngModelOptions:ca}).directive({ngInclude:zo,input:Ao}).directive(zi).directive(jo),e.provider({$anchorScroll:Jt,$animate:sn,$animateCss:un,$$animateJs:on,$$animateQueue:an,$$AnimateRunner:ln,$$animateAsyncRun:cn,$browser:mn,$cacheFactory:hn,$controller:xn,$document:An,$$isDocumentHidden:kn,$exceptionHandler:Tn,$filter:vi,$$forceReflow:Sn,$interpolate:Kn,$interval:Zn,$$intervalFactory:Jn,$http:zn,$httpParamSerializer:Ln,$httpParamSerializerJQLike:Fn,$httpBackend:Wn,$xhrFactory:Yn,$jsonpCallbacks:Qn,$location:gr,$log:vr,$parse:Rr,$rootScope:zr,$q:Lr,$$q:Fr,$sce:Qr,$sceDelegate:Jr,$sniffer:ei,$$taskTrackerFactory:ti,$templateCache:fn,$templateRequest:ii,$$testability:oi,$timeout:si,$window:fi,$$rAF:qr,$$jqLite:Rt,$$Map:Ut,$$cookieReader:gi})}]).info({angularVersion:"1.7.8"}),$.module("ngLocale",[],["$provide",function(e){var i="one",o="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var n=0|e,r=function(e,t){var n,r,i=t;void 0===i&&(i=Math.min((n=e,-1==(r=(n+="").indexOf("."))?0:n.length-r-1),3));var o=Math.pow(10,i);return{v:i,f:(e*o|0)%o}}(e,t);return 1==n&&0==r.v?i:o}})}]),he(function(){te(de.document,ne)}))}(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(m,e){"use strict";var re,ie,oe,ae,X=1,se="-add",ce="-remove",le="ng-",_="ng-animate",Z="$$ngAnimateChildren";ie=void 0===m.ontransitionend&&void 0!==m.onwebkittransitionend?("-webkit-",re="WebkitTransition","webkitTransitionEnd transitionend"):(re="transition","transitionend"),ae=void 0===m.onanimationend&&void 0!==m.onwebkitanimationend?("-webkit-",oe="WebkitAnimation","webkitAnimationEnd animationend"):(oe="animation","animationend");var i="Duration",ue="TimingFunction",o="PlayState",n=oe+"Delay",de=oe+i,r=re+"Delay",t=re+i,a=e.$$minErr("ng");function h(e,t,n){if(!e)throw a("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function M(e,t){return e||t?e?t?(Se(e)&&(e=e.join(" ")),Se(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function me(e,n,r){var i="";return e=Se(e)?e:e&&De(e)&&e.length?e.split(/\s+/):[],Te(e,function(e,t){e&&0<e.length&&(i+=0<t?" ":"",i+=r?n+e:e+n)}),i}function J(e){if(e instanceof Oe)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===X)return e;break;default:return Oe(f(e))}if(e.nodeType===X)return Oe(e)}function f(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===X)return n}}function x(c){return function(e,t){var n,r,i,o,a,s;t.addClass&&(n=c,r=e,i=t.addClass,Te(r,function(e){n.addClass(e,i)}),t.addClass=null),t.removeClass&&(o=c,a=e,s=t.removeClass,Te(a,function(e){o.removeClass(e,s)}),t.removeClass=null)}}function he(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||Ie;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=Ie},e.$$prepared=!0}return e}function fe(e,t){pe(e,t),ge(e,t)}function pe(e,t){t.from&&(e.css(t.from),t.from=null)}function ge(e,t){t.to&&(e.css(t.to),t.to=null)}function Q(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=function(i,e,t){var n={};i=r(i),e=r(e),Te(e,function(e,t){n[t]=1}),t=r(t),Te(t,function(e,t){n[t]=1===n[t]?null:-1});var o={addClass:"",removeClass:""};function r(e){De(e)&&(e=e.split(" "));var t={};return Te(e,function(e){e.length&&(t[e]=!0)}),t}return Te(n,function(e,t){var n,r;1===e?(n="addClass",r=!i[t]||i[t+ce]):-1===e&&(n="removeClass",r=i[t]||i[t+se]),r&&(o[n].length&&(o[n]+=" "),o[n]+=t)}),o}(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=ee(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var c=r.domOperation!==Ie?r.domOperation:null;return p(r,i),c&&(r.domOperation=c),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function ve(e){return e instanceof Oe?e[0]:e}function be(e,t){var n=t?"paused":"",r=oe+o;return $e(e,[r,n]),[r,n]}function $e(e,t){var n=t[0],r=t[1];e.style[n]=r}function ee(e,t){return e?t?e+" "+t:e:t}var ye=function(e,t){var n=t?"-"+t+"s":"";return $e(e,[r,n]),[r,n]},s=["$interpolate",function(o){return{link:function(e,t,n){var r=n.ngAnimateChildren;function i(e){e="on"===e||"true"===e,t.data(Z,e)}De(r)&&0===r.length?t.data(Z,!0):(i(o(r)(e)),n.$observe("ngAnimateChildren",i))}}}],Ee="$$animateCss",c={transitionDuration:t,transitionDelay:r,transitionProperty:re+"Property",animationDuration:de,animationDelay:n,animationIterationCount:oe+"IterationCount"},Ce={transitionDuration:t,transitionDelay:r,animationDuration:de,animationDelay:n};function we(e,t){return[t?n:r,e+"s"]}function _e(e,t,n){var a=Object.create(null),s=e.getComputedStyle(t)||{};return Te(n,function(e,t){var n,r,i=s[e];if(i){var o=i.charAt(0);("-"===o||"+"===o||0<=o)&&(n=0,r=i.split(/\s*,\s*/),Te(r,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,n=n?Math.max(e,n):e}),i=n),0===i&&(i=null),a[t]=i}}),a}function Me(e){return 0===e||null!=e}function xe(e,t){var n=re,r=e+"s";return t?n+=i:r+=" linear all",[n,r]}function Ae(t,n,e){Te(e,function(e){t[e]=te(t[e])?t[e]:n.style.getPropertyValue(e)})}var ke,p,Te,Se,te,g,E,ne,De,Ne,Oe,Ie,l=["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(W,G,K,X,Z,n,J,t,Q){var ee=x(G);var r=[];function te(e){r.push(e),t.waitUntilQuiet(function(){Z.flush();for(var e=n(),t=0;t<r.length;t++)r[t](e);r.length=0})}function ne(e,t,n,r){var i=function(e,t,n,r,i){var o=Z.get(n);o||"infinite"===(o=_e(W,e,i)).animationIterationCount&&(o.animationIterationCount=1);var a=r||0<o.transitionDuration||0<o.animationDuration;return Z.put(n,o,a),o}(e,0,n,r,c),o=i.animationDelay,a=i.transitionDelay;return i.maxDelay=o&&a?Math.max(o,a):o||a,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(l,e){var u=e||{};u.$$prepared||(u=he(ke(u)));var d={},m=ve(l);if(!m||!m.parentNode||!Q.enabled())return q();var t,n,h,o,a,r,i,f,p,g,v,b,$=[],s=(l.attr("class"),n={},(t=u)&&(t.to||t.from)&&(n.to=t.to,n.from=t.from),n),y=[];if(0===u.duration||!J.animations&&!J.transitions)return q();var E=u.event&&Se(u.event)?u.event.join(" "):u.event,c=E&&u.structural,C="",w="";c?C=me(E,le,!0):E&&(C=E),u.addClass&&(w+=me(u.addClass,se)),u.removeClass&&(w.length&&(w+=" "),w+=me(u.removeClass,ce)),u.applyClassesEarly&&w.length&&ee(l,u);var _=[C,w].join(" ").trim(),M=s.to&&0<Object.keys(s.to).length;if(!(0<(u.keyframeStyle||"").length)&&!M&&!_)return q();var x,A,k=Z.cacheKey(m,E,u.addClass,u.removeClass);if(Z.containsCachedAnimationWithoutDuration(k))return _=null,q();if(0<u.stagger){var T=parseFloat(u.stagger);x={transitionDelay:T,animationDelay:T,transitionDuration:0,animationDuration:0}}else x=function(e,t,n,r){var i,o="stagger-"+n;if(0<Z.count(n)&&!(i=Z.get(o))){var a=me(t,"-stagger");G.addClass(e,a),(i=_e(W,e,r)).animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),G.removeClass(e,a),Z.put(o,i,!0)}return i||{}}(m,_,k,Ce);if(u.$$skipPreparationClasses||G.addClass(l,_),u.transitionStyle){var S=[re,u.transitionStyle];$e(m,S),$.push(S)}if(0<=u.duration){A=0<m.style[re].length;var D=xe(u.duration,A);$e(m,D),$.push(D)}if(u.keyframeStyle){var N=[oe,u.keyframeStyle];$e(m,N),$.push(N)}var O=x?0<=u.staggerIndex?u.staggerIndex:Z.count(k):0,I=0===O;I&&!u.skipBlocking&&ye(m,9999);var H=ne(m,0,k,!c),P=H.maxDelay;f=Math.max(P,0),g=H.maxDuration;var R={};if(R.hasTransitions=0<H.transitionDuration,R.hasAnimations=0<H.animationDuration,R.hasTransitionAll=R.hasTransitions&&"all"===H.transitionProperty,R.applyTransitionDuration=M&&(R.hasTransitions&&!R.hasTransitionAll||R.hasAnimations&&!R.hasTransitions),R.applyAnimationDuration=u.duration&&R.hasAnimations,R.applyTransitionDelay=Me(u.delay)&&(R.applyTransitionDuration||R.hasTransitions),R.applyAnimationDelay=Me(u.delay)&&R.hasAnimations,R.recalculateTimingStyles=0<w.length,(R.applyTransitionDuration||R.applyAnimationDuration)&&(g=u.duration?parseFloat(u.duration):g,R.applyTransitionDuration&&(R.hasTransitions=!0,H.transitionDuration=g,A=0<m.style[re+"Property"].length,$.push(xe(g,A))),R.applyAnimationDuration&&(R.hasAnimations=!0,H.animationDuration=g,$.push([de,g+"s"]))),0===g&&!R.recalculateTimingStyles)return q();var L,F=me(_,"-active");null!=u.delay&&("boolean"!=typeof u.delay&&(L=parseFloat(u.delay),f=Math.max(L,0)),R.applyTransitionDelay&&$.push(we(L)),R.applyAnimationDelay&&$.push(we(L,!0)));return null==u.duration&&0<H.transitionDuration&&(R.recalculateTimingStyles=R.recalculateTimingStyles||I),p=1e3*f,v=1e3*g,u.skipBlocking||(R.blockTransition=0<H.transitionDuration,R.blockKeyframeAnimation=0<H.animationDuration&&0<x.animationDelay&&0===x.animationDuration),u.from&&(u.cleanupStyles&&Ae(d,m,Object.keys(u.from)),pe(l,u)),R.blockTransition||R.blockKeyframeAnimation?V(g):u.skipBlocking||ye(m,!1),{$$willAnimate:!0,end:j,start:function(){if(!h)return r=new K(i={end:j,cancel:B,resume:null,pause:null}),te(Y),r}};function j(){U()}function B(){U(!0)}function U(e){if(!(h||a&&o)){o=!(h=!0),_&&!u.$$skipPreparationClasses&&G.removeClass(l,_),F&&G.removeClass(l,F),be(m,!1),ye(m,!1),Te($,function(e){m.style[e[0]]=""}),ee(l,u),fe(l,u),Object.keys(d).length&&Te(d,function(e,t){e?m.style.setProperty(t,e):m.style.removeProperty(t)}),u.onDone&&u.onDone(),y&&y.length&&l.off(y.join(" "),z);var t=l.data(Ee);t&&(X.cancel(t[0].timer),l.removeData(Ee)),r&&r.complete(!e)}}function V(e){R.blockTransition&&ye(m,e),R.blockKeyframeAnimation&&be(m,!!e)}function q(){return r=new K({end:j,cancel:B}),te(Ie),U(),{$$willAnimate:!1,start:function(){return r},end:j}}function z(e){e.stopPropagation();var t=e.originalEvent||e;if(t.target===m){var n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-b,0)>=p&&g<=r&&(a=!0,U())}}function Y(){if(!h)if(m.parentNode){var e=function(e){if(a)o&&e&&(o=!1,U());else if(o=!e,H.animationDuration){var t=be(m,o);o?$.push(t):(r=t,i=(n=$).indexOf(r),0<=r&&n.splice(i,1))}var n,r,i},t=0<O&&(H.transitionDuration&&0===x.transitionDuration||H.animationDuration&&0===x.animationDuration)&&Math.max(x.animationDelay,x.transitionDelay);t?X(n,Math.floor(t*O*1e3),!1):n(),i.resume=function(){e(!0)},i.pause=function(){e(!1)}}else U();function n(){if(!h){if(V(!1),Te($,function(e){var t=e[0],n=e[1];m.style[t]=n}),ee(l,u),G.addClass(l,F),R.recalculateTimingStyles){if(m.getAttribute("class")+" "+_,k=Z.cacheKey(m,E,u.addClass,u.removeClass),H=ne(m,0,k,!1),P=H.maxDelay,f=Math.max(P,0),0===(g=H.maxDuration))return void U();R.hasTransitions=0<H.transitionDuration,R.hasAnimations=0<H.animationDuration}if(R.applyAnimationDelay&&(P="boolean"!=typeof u.delay&&Me(u.delay)?parseFloat(u.delay):P,f=Math.max(P,0),H.animationDelay=P,L=we(P,!0),$.push(L),m.style[L[0]]=L[1]),p=1e3*f,v=1e3*g,u.easing){var e,t=u.easing;R.hasTransitions&&(e=re+ue,$.push([e,t]),m.style[e]=t),R.hasAnimations&&(e=oe+ue,$.push([e,t]),m.style[e]=t)}H.transitionDuration&&y.push(ie),H.animationDuration&&y.push(ae),b=Date.now();var n=p+1.5*v,r=b+n,i=l.data(Ee)||[],o=!0;if(i.length){var a=i[0];(o=r>a.expectedEndTime)?X.cancel(a.timer):i.push(U)}if(o){var s=X(c,n,!1);i[0]={timer:s,expectedEndTime:r},i.push(U),l.data(Ee,i)}y.length&&l.on(y.join(" "),z),u.to&&(u.cleanupStyles&&Ae(d,m,Object.keys(u.to)),ge(l,u))}}function c(){var e=l.data(Ee);if(e){for(var t=1;t<e.length;t++)e[t]();l.removeData(Ee)}}}}}]}],u=["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver");var $="ng-animate-shim",y="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(h,e,f,t,n,r,i){if(!n.animations&&!n.transitions)return Ie;var o,p=i[0].body,a=ve(t),g=Oe((o=a).parentNode&&11===o.parentNode.nodeType||p.contains(a)?a:p);return function(e){return e.from&&e.to?function(e,t,n,r){var i=s(e),o=s(t),a=[];if(Te(r,function(e){var t=function(e,t,i){var o=Oe(ve(t).cloneNode(!0)),a=v(u(o));t.addClass($),i.addClass($),o.addClass("ng-anchor"),g.append(o);var r,n,s=(n=h(o,{addClass:y,delay:!0,from:l(t)})).$$willAnimate?n:null;if(!s&&!(r=d()))return m();var c=s||r;return{start:function(){var e,t=c.start();return t.done(function(){if(t=null,!r&&(r=d()))return(t=r.start()).done(function(){t=null,m(),e.complete()}),t;m(),e.complete()}),e=new f({end:n,cancel:n});function n(){t&&t.end()}}};function l(e){var n={},r=ve(e).getBoundingClientRect();return Te(["width","height","top","left"],function(e){var t=r[e];switch(e){case"top":t+=p.scrollTop;break;case"left":t+=p.scrollLeft}n[e]=Math.floor(t)+"px"}),n}function u(e){return e.attr("class")||""}function d(){var e=v(u(i)),t=b(e,a),n=b(a,e),r=h(o,{to:l(i),addClass:"ng-anchor-in "+t,removeClass:y+" "+n,delay:!0});return r.$$willAnimate?r:null}function m(){o.remove(),t.removeClass($),i.removeClass($)}}(0,e.out,e.in);t&&a.push(t)}),!i&&!o&&0===a.length)return;return{start:function(){var t=[];i&&t.push(i.start()),o&&t.push(o.start()),Te(a,function(e){t.push(e.start())});var n=new f({end:e,cancel:e});return f.all(t,function(e){n.complete(e)}),n;function e(){Te(t,function(e){e.end()})}}}}(e.from,e.to,e.classes,e.anchors):s(e)};function v(e){return e.replace(/\bng-\S+\b/g,"")}function b(e,t){return De(e)&&(e=e.split(" ")),De(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function s(e){var t=e.element,n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=ee(n.event,n.preparationClasses));var r=h(t,n);return r.$$willAnimate?r:null}}]}],d=["$animateProvider",function(y){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(v,b,e){var $=x(e);return function(e,t,n,r){var i=!1;3===arguments.length&&ne(n)&&(r=n,n=null),r=he(r),n||(n=e.attr("class")||"",r.addClass&&(n+=" "+r.addClass),r.removeClass&&(n+=" "+r.removeClass));var o,a,s,c,l,u=r.addClass,d=r.removeClass,m=function(e){e=Se(e)?e:e.split(" ");for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=y.$$registeredAnimations[i];o&&!n[i]&&(t.push(v.get(o)),n[i]=!0)}return t}(n);m.length&&(s="leave"===t?(c="leave","afterLeave"):(c="before"+t.charAt(0).toUpperCase()+t.substr(1),t),"enter"!==t&&"move"!==t&&(o=g(e,t,r,m,c)),a=g(e,t,r,m,s));if(o||a)return{$$willAnimate:!0,end:function(){return l?l.end():(f(),(l=new b).complete(!0)),l},start:function(){if(l)return l;var t;l=new b;var e=[];return o&&e.push(function(e){t=o(e)}),e.length?e.push(function(e){h(),e(!0)}):h(),a&&e.push(function(e){t=a(e)}),l.setHost({end:function(){r()},cancel:function(){r(!0)}}),b.chain(e,n),l;function n(e){f(),l.complete(e)}function r(e){i||((t||Ie)(e),n(e))}}};function h(){r.domOperation(),$(e,r)}function f(){i=!0,h(),fe(e,r)}function p(a,s,c,e,t){var n=[];return Te(e,function(e){var o=e[t];o&&n.push(function(){var t,n,r=!1,i=function(e){r||(r=!0,(n||Ie)(e),t.complete(!e))};return t=new b({end:function(){i()},cancel:function(){i(!0)}}),n=function(e,t,n,r,i){var o;switch(n){case"animate":o=[t,r.from,r.to,i];break;case"setClass":o=[t,u,d,i];break;case"addClass":o=[t,u,i];break;case"removeClass":o=[t,d,i];break;default:o=[t,i]}o.push(r);var a=e.apply(e,o);if(a)if(E(a.start)&&(a=a.start()),a instanceof b)a.done(i);else if(E(a))return a;return Ie}(o,a,s,c,function(e){i(!1===e)}),t})}),n}function g(e,t,n,r,i){var o,a,s=p(e,t,n,r,i);0===s.length&&("beforeSetClass"===i?(o=p(e,"removeClass",n,r,"beforeRemoveClass"),a=p(e,"addClass",n,r,"beforeAddClass")):"setClass"===i&&(o=p(e,"removeClass",n,r,"removeClass"),a=p(e,"addClass",n,r,"addClass")),o&&(s=s.concat(o)),a&&(s=s.concat(a)));if(0!==s.length)return function(e){var n=[];return s.length&&Te(s,function(e){n.push(e())}),n.length?b.all(n,e):e(),function(t){Te(n,function(e){t?e.cancel():e.end()})}}}}}]}],v=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(o,a){return function(e){if(e.from&&e.to){var r=t(e.from),i=t(e.to);if(!r&&!i)return;return{start:function(){var e=[];r&&e.push(r.start()),i&&e.push(i.start()),a.all(e,function(e){t.complete(e)});var t=new a({end:n(),cancel:n()});return t;function n(){return function(){Te(e,function(e){e.end()})}}}}}return t(e)};function t(e){var t=e.element,n=e.event,r=e.options,i=e.classes;return o(t,n,i,r)}}]}],He="data-ng-animate",Pe="$ngAnimatePin",b=["$animateProvider",function(d){var r=" ",i=this.rules={skip:[],cancel:[],join:[]};function W(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function a(e,t){if(e&&t){var n=function(e){if(!e)return null;var t=e.split(r),n=Object.create(null);return Te(t,function(e){n[e]=!0}),n}(t);return e.split(r).some(function(e){return n[e]})}}function G(e,t,n){return i[e].some(function(e){return e(t,n)})}function K(e,t){var n=0<(e.addClass||"").length,r=0<(e.removeClass||"").length;return t?n&&r:n||r}i.join.push(function(e,t){return!e.structural&&K(e)}),i.skip.push(function(e,t){return!e.structural&&!K(e)}),i.skip.push(function(e,t){return"leave"===t.event&&e.structural}),i.skip.push(function(e,t){return t.structural&&2===t.state&&!e.structural}),i.cancel.push(function(e,t){return t.structural&&e.structural}),i.cancel.push(function(e,t){return 2===t.state&&e.structural}),i.cancel.push(function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,i=t.addClass,o=t.removeClass;return!(Ne(n)&&Ne(r)||Ne(i)&&Ne(o))&&(a(n,o)||a(r,i))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(k,T,S,D,e,N,O,t,n,r,I){var H=new e,P=new e,R=null;function i(e){P.delete(e.target)}var o=T.$watch(function(){return 0===t.totalPendingRequests},function(e){e&&(o(),T.$$postDigest(function(){T.$$postDigest(function(){null===R&&(R=!0)})}))}),L=Object.create(null),a=d.customFilter(),s=d.classNameFilter(),c=function(){return!0},F=a||c,j=s?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return s.test(n)}:c,B=x(n);function U(e,t){return Q(e,t,{})}var V=m.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))};function l(e,t,n){var r=f(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function q(e,t){"close"!==e||t.parentNode||u.off(t)}var u={on:function(e,t,n){var r=f(t);L[e]=L[e]||[],L[e].push({node:r,callback:n}),Oe(t).on("$destroy",function(){H.get(r)||u.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||De(e)){var r=L[e];r&&(L[e]=1===arguments.length?null:l(r,t,n))}else for(var i in t=e,L)L[i]=l(L[i],t)},pin:function(e,t){h(g(e),"element","not an element"),h(g(t),"parentElement","not an element"),e.data(Pe,t)},push:function(e,t,n,r){return(n=n||{}).domOperation=r,function(i,o,e){var a=ke(e),l=J(i),u=ve(l),d=u&&u.parentNode;a=he(a);var s=new O,t=(n=!1,function(e){n?e():T.$$postDigest(function(){n=!0,e()})});var n;Se(a.addClass)&&(a.addClass=a.addClass.join(" "));a.addClass&&!De(a.addClass)&&(a.addClass=null);Se(a.removeClass)&&(a.removeClass=a.removeClass.join(" "));a.removeClass&&!De(a.removeClass)&&(a.removeClass=null);a.from&&!ne(a.from)&&(a.from=null);a.to&&!ne(a.to)&&(a.to=null);if(!(R&&u&&F(u,o,e)&&j(u,a)))return A(),s;var c=0<=["enter","move","leave"].indexOf(o),r=I(),m=r||P.get(u),h=!m&&H.get(u)||{},f=!!h.state;m||f&&1===h.state||(m=!function(e,t,n){var r,i=D[0].body,o=ve(S),a=e===i||"HTML"===e.nodeName,s=e===o,c=!1,l=P.get(e),u=Oe.data(e,Pe);u&&(t=ve(u));for(;t&&(s||(s=t===o),t.nodeType===X);){var d=H.get(t)||{};if(!c){var m=P.get(t);if(!0===m&&!1!==l){l=!0;break}!1===m&&(l=!1),c=d.structural}if(Ne(r)||!0===r){var h=Oe.data(t,Z);te(h)&&(r=h)}if(c&&!1===r)break;if(a||(a=t===i),a&&s)break;t=s||!(u=Oe.data(t,Pe))?t.parentNode:ve(u)}return(!c||r)&&!0!==l&&s&&a}(u,d));if(m)return r&&x(s,o,"start",W(a)),A(),r&&x(s,o,"close",W(a)),s;c&&(p=u.querySelectorAll("["+He+"]"),Te(p,function(e){var t=parseInt(e.getAttribute(He),10),n=H.get(e);if(n)switch(t){case 2:n.runner.end();case 1:H.delete(e)}}));var p;var g={structural:c,element:l,event:o,addClass:a.addClass,removeClass:a.removeClass,close:A,options:a,runner:s};if(f){var v=G("skip",g,h);if(v)return 2===h.state?(A(),s):(Q(l,h,g),h.runner);var b=G("cancel",g,h);if(b)if(2===h.state)h.runner.end();else{if(!h.structural)return Q(l,h,g),h.runner;h.close()}else{var $=G("join",g,h);if($){if(2!==h.state)return y=l,C=a,w="",(E=c?o:null)&&(w=me(E,le,!0)),C.addClass&&(w=ee(w,me(C.addClass,se))),C.removeClass&&(w=ee(w,me(C.removeClass,ce))),w.length&&(C.preparationClasses=w,y.addClass(w)),o=g.event=h.event,a=Q(l,h,g),h.runner;U(l,g)}}}else U(l,g);var y,E,C,w;var _=g.structural;_||(_="animate"===g.event&&0<Object.keys(g.options.to||{}).length||K(g));if(!_)return A(),z(u),s;var M=(h.counter||0)+1;return g.counter=M,Y(u,1,g),T.$$postDigest(function(){l=J(i);var e=H.get(u),t=!e;e=e||{};var n=0<(l.parent()||[]).length&&("animate"===e.event||e.structural||K(e));if(t||e.counter!==M||!n)return t&&(B(l,a),fe(l,a)),(t||c&&e.event!==o)&&(a.domOperation(),s.end()),void(n||z(u));o=!e.structural&&K(e,!0)?"setClass":e.event,Y(u,2);var r=N(l,o,e.options);s.setHost(r),x(s,o,"start",W(a)),r.done(function(e){A(!e);var t=H.get(u);t&&t.counter===M&&z(u),x(s,o,"close",W(a))})}),s;function x(e,a,s,c){t(function(){var t,n,r,i,e,o=(t=d,n=u,i=[],(e=L[r=a])&&Te(e,function(e){V.call(e.node,n)?i.push(e.callback):"leave"===r&&V.call(e.node,t)&&i.push(e.callback)}),i);o.length?k(function(){Te(o,function(e){e(l,s,c)}),q(s,u)}):q(s,u)}),e.progress(a,s,c)}function A(e){var t,n;t=l,(n=a).preparationClasses&&(t.removeClass(n.preparationClasses),n.preparationClasses=null),n.activeClasses&&(t.removeClass(n.activeClasses),n.activeClasses=null),B(l,a),fe(l,a),a.domOperation(),s.complete(!e)}}(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!R;else if(g(e)){var r=ve(e);1===n?t=!P.get(r):(P.has(r)||Oe(e).on("$destroy",i),P.set(r,!t))}else t=R=!!e;return t}};return u;function z(e){e.removeAttribute(He),H.delete(e)}function Y(e,t,n){(n=n||{}).state=t,e.setAttribute(He,t);var r=H.get(e),i=r?p(r,n):n;H.set(e,i)}}]}],$=["$animateProvider",function(e){var $="ng-animate-ref",y=this.drivers=[],E="$$animationRunner",C="$$animatePrepareClasses";function w(e){return e.data(E)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(d,l,m,h,f,p,g){var v=[],b=x(d);return function(t,n,u){u=he(u);var e=0<=["enter","move","leave"].indexOf(n),r=new h({end:function(){c()},cancel:function(){c(!0)}});if(!y.length)return c(),r;var i,o=M(t.attr("class"),M(u.addClass,u.removeClass)),a=u.tempClasses;return a&&(o+=" "+a,u.tempClasses=null),e&&t.data(C,"ng-"+n+"-prepare"),i=r,t.data(E,i),v.push({element:t,classes:o,event:n,structural:e,options:u,beforeStart:function(){a=(a?a+" ":"")+_,d.addClass(t,a);var e=t.data(C);e&&(d.removeClass(t,e),e=null)},close:c}),t.on("$destroy",s),1<v.length||l.$$postDigest(function(){var t=[];Te(v,function(e){w(e.element)?t.push(e):e.close()}),v.length=0;var e=function(u){var d=[],m={};Te(u,function(e,n){var t,r,i,o=e.element,a=ve(o),s=e.event,c=0<=["enter","move"].indexOf(s),l=e.structural?(r=(t=a).hasAttribute($)?[t]:t.querySelectorAll("[ng-animate-ref]"),i=[],Te(r,function(e){var t=e.getAttribute($);t&&t.length&&i.push(e)}),i):[];if(l.length){var u=c?"to":"from";Te(l,function(e){var t=e.getAttribute($);m[t]=m[t]||{},m[t][u]={animationID:n,element:Oe(e)}})}else d.push(e)});var h={},f={};return Te(m,function(e,t){var n=e.from,r=e.to;if(n&&r){var i=u[n.animationID],o=u[r.animationID],a=n.animationID.toString();if(!f[a]){var s=f[a]={structural:!0,beforeStart:function(){i.beforeStart(),o.beforeStart()},close:function(){i.close(),o.close()},classes:function(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}(i.classes,o.classes),from:i,to:o,anchors:[]};s.classes.length?d.push(s):(d.push(i),d.push(o))}f[a].anchors.push({out:n.element,in:r.element})}else{var c=n?n.animationID:r.animationID,l=c.toString();h[l]||(h[l]=!0,d.push(u[c]))}}),d}(t),n=[];Te(e,function(i){var e=i.from?i.from.element:i.element,t=u.addClass;t=(t?t+" ":"")+_;var o=g.cacheKey(e[0],i.event,t,u.removeClass);n.push({element:e,domNode:ve(e),fn:function(){var e,t=i.close;if(g.containsCachedAnimationWithoutDuration(o))t();else{if(i.beforeStart(),w(i.anchors?i.from.element||i.to.element:i.element)){var n=function(e){for(var t=y.length-1;0<=t;t--){var n=y[t],r=m.get(n),i=r(e);if(i)return i}}(i);n&&(e=n.start)}if(e){var r=e();r.done(function(e){t(!e)}),function(e,n){e.from&&e.to?(t(e.from.element),t(e.to.element)):t(e.element);function t(e){var t=w(e);t&&t.setHost(n)}}(i,r)}else t()}}})});for(var r=function(e){var t,i={children:[]},o=new f;for(t=0;t<e.length;t++){var n=e[t];o.set(n.domNode,e[t]={domNode:n.domNode,element:n.element,fn:n.fn,children:[]})}for(t=0;t<e.length;t++)a(e[t]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var s=r[t];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s),s.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}(i);function a(e){if(e.processed)return e;e.processed=!0;var t,n=e.domNode,r=n.parentNode;for(o.set(n,e);r;){if(t=o.get(r)){t.processed||(t=a(t));break}r=r.parentNode}return(t||i).children.push(e),e}}(n),i=0;i<r.length;i++)for(var o=r[i],a=0;a<o.length;a++){var s=o[a],c=s.element;if(r[i][a]=s.fn,0!==i){var l=c.data(C);l&&d.addClass(c,l)}else c.removeData(C)}p(r)}),r;function s(){var e=w(t);!e||"leave"===n&&u.$$domOperationFired||e.end()}function c(e){t.off("$destroy",s),t.removeData(E),b(t,u),fe(t,u),u.domOperation(),a&&d.removeClass(t,a),r.complete(!e)}}}]}];e.module("ngAnimate",[],function(){Ie=e.noop,ke=e.copy,p=e.extend,Oe=e.element,Te=e.forEach,Se=e.isArray,De=e.isString,ne=e.isObject,Ne=e.isUndefined,te=e.isDefined,E=e.isFunction,g=e.isElement}).info({angularVersion:"1.7.8"}).directive("ngAnimateSwap",["$animate",function(s){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(e,n,t,r,i){var o,a;e.$watchCollection(t.ngAnimateSwap||t.for,function(e){o&&s.leave(o),a&&(a.$destroy(),a=null),(e||0===e)&&i(function(e,t){o=e,a=t,s.enter(e,null,n)})})}}}]).directive("ngAnimateChildren",s).factory("$$rAFScheduler",["$$rAF",function(n){var r,i;function e(e){r=r.concat(e),o()}return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=n(function(){i=null,e(),o()})},e;function o(){if(r.length){for(var e=r.shift(),t=0;t<e.length;t++)e[t]();i||n(function(){i||o()})}}}]).provider("$$animateQueue",b).provider("$$animateCache",function(){var a="$$ngAnimateParentKey",s=0,r=Object.create(null);this.$get=[function(){return{cacheKey:function(e,t,n,r){var i=e.parentNode,o=[i[a]||(i[a]=++s),t,e.getAttribute("class")];return n&&o.push(n),r&&o.push(r),o.join(" ")},containsCachedAnimationWithoutDuration:function(e){var t=r[e];return t&&!t.isValid||!1},flush:function(){r=Object.create(null)},count:function(e){var t=r[e];return t?t.total:0},get:function(e){var t=r[e];return t&&t.value},put:function(e,t,n){r[e]?(r[e].total++,r[e].value=t):r[e]={total:1,value:t,isValid:n}}}}]}).provider("$$animation",$).provider("$animateCss",l).provider("$$animateCssDriver",u).provider("$$animateJs",d).provider("$$animateJsDriver",v)}(window,window.angular),function(e,t){"use strict";var h="ngAriaDisable",n=t.module("ngAria",["ng"]).info({angularVersion:"1.7.8"}).provider("$aria",function(){var c={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(i,o,a,s){return function(e,t,n){if(!n.hasOwnProperty(h)){var r=n.$normalize(o);!c[r]||l(t,a)||n[r]||e.$watch(n[i],function(e){e=s?!e:!!e,t.attr(o,e)})}}}this.config=function(e){c=t.extend(c,e)},this.$get=function(){return{config:function(e){return c[e]},$$watchExpr:e}}}),o=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],l=function(e,t){if(-1!==t.indexOf(e[0].nodeName))return!0};n.directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",o,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",o,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",o,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",o,!1)}]).directive("ngModel",["$aria",function(u){function d(e,t,n,r){return u.config(t)&&!n.attr(e)&&(r||!l(n,o))&&("hidden"!==n.attr("type")||"INPUT"!==n[0].nodeName)}function m(e,t){return!t.attr("role")&&t.attr("type")===e&&!l(t,o)}return{restrict:"A",require:"ngModel",priority:200,compile:function(e,t){if(!t.hasOwnProperty(h)){var n,r,i,l=(r=(n=t).type,i=n.role,"checkbox"===(r||i)||"menuitemcheckbox"===i?"checkbox":"radio"===(r||i)||"menuitemradio"===i?"radio":"range"===r||"progressbar"===i||"slider"===i?"range":"");return{post:function(e,n,r,i){var t=d("tabindex","tabindex",n,!1);function o(){return i.$modelValue}switch(l){case"radio":case"checkbox":m(l,n)&&n.attr("role",l),d("aria-checked","ariaChecked",n,!1)&&e.$watch(o,"radio"===l?function(e){var t=r.value==i.$viewValue;n.attr("aria-checked",t)}:function(){n.attr("aria-checked",!i.$isEmpty(i.$viewValue))}),t&&n.attr("tabindex",0);break;case"range":if(m(l,n)&&n.attr("role","slider"),u.config("ariaValue")){var a=!n.attr("aria-valuemin")&&(r.hasOwnProperty("min")||r.hasOwnProperty("ngMin")),s=!n.attr("aria-valuemax")&&(r.hasOwnProperty("max")||r.hasOwnProperty("ngMax")),c=!n.attr("aria-valuenow");a&&r.$observe("min",function(e){n.attr("aria-valuemin",e)}),s&&r.$observe("max",function(e){n.attr("aria-valuemax",e)}),c&&e.$watch(o,function(e){n.attr("aria-valuenow",e)})}t&&n.attr("tabindex",0)}!r.hasOwnProperty("ngRequired")&&i.$validators.required&&d("aria-required","ariaRequired",n,!1)&&r.$observe("required",function(){n.attr("aria-required",!!r.required)}),d("aria-invalid","ariaInvalid",n,!0)&&e.$watch(function(){return i.$invalid},function(e){n.attr("aria-invalid",!!e)})}}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",o,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,r){n.hasOwnProperty(h)||t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(i,n){return{restrict:"A",compile:function(e,t){if(!t.hasOwnProperty(h)){var r=n(t.ngClick);return function(n,e,t){l(e,o)||(i.config("bindRoleForClick")&&!e.attr("role")&&e.attr("role","button"),i.config("tabindex")&&!e.attr("tabindex")&&e.attr("tabindex",0),!i.config("bindKeydown")||t.ngKeydown||t.ngKeypress||t.ngKeyup||e.on("keydown",function(e){var t=e.which||e.keyCode;13!==t&&32!==t||(-1!==o.indexOf(e.target.nodeName)||e.target.isContentEditable||e.preventDefault(),n.$apply(function(){r(n,{$event:e})}))}))}}}}}]).directive("ngDblclick",["$aria",function(r){return function(e,t,n){n.hasOwnProperty(h)||!r.config("tabindex")||t.attr("tabindex")||l(t,o)||t.attr("tabindex",0)}}])}(window,window.angular),function(e,t){"use strict";var C,f,c,l;function n(h){return["$animate",function(m){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(e,r,t,i,n){var o,a,s,c,l,u;if(!h){o=r[0],s=t.ngMessage||t.when;var d=function(e){a=e?f(e)?e:e.split(/[\s,]+/):null,i.reRender()};(c=t.ngMessageExp||t.whenExp)?(d(e.$eval(c)),e.$watchCollection(c,d)):d(s)}i.register(o,u={test:function(e){return function(e,t){if(e)return f(e)?0<=e.indexOf(t):e.hasOwnProperty(t)}(a,e)},attach:function(){l||n(function(e,t){m.enter(e,null,r);var n=(l=e).$$attachId=i.getAttachId();l.on("$destroy",function(){l&&l.$$attachId===n&&(i.deregister(o,h),u.detach()),t.$destroy()})})},detach:function(){if(l){var e=l;l=null,m.leave(e)}}},h),e.$on("$destroy",function(){i.deregister(o,h)})}}}]}t.module("ngMessages",[],function(){C=t.forEach,f=t.isArray,c=t.isString,l=t.element}).info({angularVersion:"1.7.8"}).directive("ngMessages",["$animate",function(b){var $="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(m,h,f){var p=this,i=0,e=0;this.getAttachId=function(){return e++};var g,v,o=this.messages={};function a(e,t){for(var n=t,r=[];n&&n!==e;){var i=n.$$ngMessageNode;if(i&&i.length)return o[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))}}this.render=function(e){g=!1,v=e=e||{};for(var t=y(h,f.ngMessagesMultiple)||y(h,f.multiple),n=[],r={},i=0,o=p.head,a=!1,s=0;null!=o;){s++;var c=o.message,l=!1;a||C(e,function(e,t){if(E(e)&&!l&&(i++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}}),l?a=!t:n.push(c),o=o.next}C(n,function(e){e.detach()});var u=n.length!==s,d=p.default&&!u&&0<i;d?p.default.attach():p.default&&p.default.detach(),u||d?b.setClass(m,"ng-active",$):b.setClass(m,$,"ng-active")},h.$watchCollection(f.ngMessages||f.for,p.render),this.reRender=function(){g||(g=!0,h.$evalAsync(function(){g&&v&&p.render(v)}))},this.register=function(e,t,n){if(n)p.default=t;else{var r=i.toString();o[r]={message:t},function(e,t,n){var r=o[n];if(p.head){var i=a(e,t);i?(r.next=i.next,i.next=r):(r.next=p.head,p.head=r)}else p.head=r}(m[0],e,r),e.$$ngMessageNode=r,i++}p.reRender()},this.deregister=function(e,t){if(t)delete p.default;else{var n=e.$$ngMessageNode;delete e.$$ngMessageNode,function(e,t,n){var r=o[n];if(!r)return;var i=a(e,t);i?i.next=r.next:p.head=r.next}(m[0],e,n),delete o[n]}p.reRender()}}]};function y(e,t){return c(t)&&0===t.length||E(e.$eval(t))}function E(e){return c(e)?e.length:!!e}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(i,o,a){return{restrict:"AE",require:"^^ngMessages",link:function(t,n,e){var r=e.ngMessagesInclude||e.src;i(r).then(function(e){t.$$destroyed||(c(e)&&!e.trim()?s(n,r):a(e)(t,function(e){n.after(e),s(n,r)}))})}};function s(e,t){var n=a.$$createComment?a.$$createComment("ngMessagesInclude",t):o[0].createComment(" ngMessagesInclude: "+t+" "),r=l(n);e.after(r),e.remove()}}]).directive("ngMessage",n()).directive("ngMessageExp",n()).directive("ngMessageDefault",n(!0))}(window,window.angular),function(j,ue,de){"use strict";ue.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.animate","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","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.panel","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.showHide","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"]),function(){function e(e,t){if(t.has("$swipe")){e.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 t(e,t){e.decorator("$$rAF",["$delegate",n]),e.decorator("$q",["$delegate",r]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function n(o){return o.throttle=function(e){var t,n,r,i;return function(){t=arguments,i=this,r=e,n||(n=!0,o(function(){r.apply(i,Array.prototype.slice.call(t)),n=!1}))}},o}function r(e){return e.resolve||(e.resolve=e.when),e}e.$inject=["$log","$injector"],t.$inject=["$provide","$mdThemingProvider"],n.$inject=["$delegate"],r.$inject=["$delegate"],ue.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(t).run(e)}(),function(){function e(o){return{restrict:"A",link:{pre:function(e,t,n){var r=n.mdAutoFocus||n.mdAutofocus||n.mdSidenavFocus;i(o(r)(e)),r&&e.$watch(r,i);function i(e){ue.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}e.$inject=["$parse"],ue.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),ue.module("material.core").factory("$mdColorUtil",function(){return{rgbaToHex:function(e){return((e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()},hexToRgba:function(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,r=t.substr(0,n),i=t.substr(n,n),o=t.substr(2*n);return 1===n&&(r+=r,i+=i,o+=o),"rgba("+parseInt(r,16)+","+parseInt(i,16)+","+parseInt(o,16)+",0.1)"},rgbToRgba:function(e){return e.replace(")",", 0.1)").replace("(","a(")},rgbaToRgb:function(e){return e?e.replace("rgba","rgb").replace(/,[^),]+\)/,")"):"rgb(0,0,0)"}}}),ue.module("material.core").factory("$mdConstant",function(){var i=document.createElement("div"),o=function(e){var t,n,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=r.exec(t))return n[0]}(i),e=/webkit/i.test(o),a=/([:\-_]+(.))/g;function t(e){var t=o+"-"+e,n=t.replace(a,function(e,t,n,r){return r?n.toUpperCase():n}),r=n.charAt(0).toLowerCase()+n.substring(1);return s(i,e)?e:s(i,n)?n:s(i,r)?r:e}function s(e,t){return ue.isDefined(e.style[t])}var r={isInputKey:function(e){return 31<=e.keyCode&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&97<=e.keyCode&&e.keyCode<=105},isMetaKey:function(e){return 91<=e.keyCode&&e.keyCode<=93},isFnLockKey:function(e){return 112<=e.keyCode&&e.keyCode<=145},isNavigationKey:function(e){var t=r.KEY_CODE,n=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW];return-1!=n.indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.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"+(e?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(e?" 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 r}),function(){function t(e,s){var c=function(){return!0};e&&!ue.isArray(e)&&(e=Array.prototype.slice.call(e)),s=!!s;var l=e||[];return{items:function(){return[].concat(l)},count:function(){return l.length},inRange:u,contains:t,indexOf:d,itemAt:function(e){return u(e)?l[e]:null},findBy:function(t,n){return l.filter(function(e){return e[t]===n})},add:function(e,t){if(!e)return-1;ue.isNumber(t)||(t=l.length);return l.splice(t,0,e),d(e)},remove:function(e){t(e)&&l.splice(d(e),1)},first:m,last:h,next:ue.bind(null,n,!1),previous:ue.bind(null,n,!0),hasPrevious:function(e){return!!e&&u(d(e)-1)},hasNext:function(e){return!!e&&u(d(e)+1)}};function u(e){return l.length&&-1<e&&e<l.length}function d(e){return l.indexOf(e)}function t(e){return e&&-1<d(e)}function m(){return l.length?l[0]:null}function h(){return l.length?l[l.length-1]:null}function n(e,t,n,r){n=n||c;for(var i=d(t);;){if(!u(i))return null;var o=i+(e?-1:1),a=null;if(u(o)?a=l[o]:s&&(o=d(a=e?h():m())),null===a||o===r)return null;if(n(a))return a;ue.isUndefined(r)&&(r=o),i=o}}}ue.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.iterator=t,e}])}])}(),function(){function e(a,t,i){var o={},s={},c={},n={};return e.getResponsiveAttribute=function(e,t){for(var n=0;n<a.MEDIA_PRIORITY.length;n++){var r=a.MEDIA_PRIORITY[n];if(s[o[r]].matches){var i=u(e,t+"-"+r);if(e[i])return e[i]}}return e[u(e,t)]},e.getQuery=function(e){return s[e]},e.watchResponsiveAttributes=function(e,r,i){var o=[];return e.forEach(function(e){var t=u(r,e);for(var n in ue.isDefined(r[t])&&o.push(r.$observe(t,ue.bind(void 0,i,null))),a.MEDIA)t=u(r,e+"-"+n),ue.isDefined(r[t])&&o.push(r.$observe(t,ue.bind(void 0,i,n)))}),function(){o.forEach(function(e){e()})}},e;function e(e){var t,n=o[e];ue.isUndefined(n)&&(n=o[e]=(t=e,a.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)));var r=c[n];return ue.isUndefined(r)&&(r=function(e){var t=s[e];t||(t=s[e]=i.matchMedia(e));return t.addListener(l),c[t.media]=!!t.matches}(n)),r}function l(e){t.$evalAsync(function(){c[e.media]=!!e.matches})}function u(e,t){return n[t]||(n[t]=e.$normalize(t))}}e.$inject=["$mdConstant","$rootScope","$window"],ue.module("material.core").factory("$mdMedia",e)}(),function(){function t(e,t){var r=["data","x"];return e?t?n(e):i(e):{buildList:i,buildSelector:n,hasAttribute:function(e,t){if(!(e=o(e)))return!1;for(var n=i(t),r=0;r<n.length;r++)if(e.hasAttribute(n[r]))return!0;return!1},removeAttribute:function(t,e){if(!(t=o(t)))return;i(e).forEach(function(e){t.removeAttribute(e)})}};function i(n){return(n=ue.isArray(n)?n:[n]).forEach(function(t){r.forEach(function(e){n.push(e+"-"+t)})}),n}function n(e){return i(e=ue.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function o(e){if((e=e[0]||e).nodeType)return e}}ue.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.prefixer=t,e}])}])}(),function(){e.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var v=0;function e(c,s,n,a,e,t,o,r,l,d){var i=t.startSymbol(),u=t.endSymbol(),m="{{"===i&&"}}"===u,h=function(e,t,n){var r=!1;if(e&&e.length){var i=l.getComputedStyle(e[0]);r=ue.isDefined(i[t])&&(!n||i[t]==n)}return r};function f(e){return e?-1<String(e).indexOf("px")||-1<String(e).indexOf("%")?e:e+"px":"0"}var p={dom:{},now:j.performance&&j.performance.now?ue.bind(j.performance,j.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},bidi:function(e,t,n,r){var i=!("rtl"==c[0].dir||"rtl"==c[0].body.dir);if(0==arguments.length)return i?"ltr":"rtl";var o=ue.element(e);i&&ue.isDefined(n)?o.css(t,f(n)):!i&&ue.isDefined(r)&&o.css(t,f(r))},bidiProperty:function(e,t,n,r){var i=!("rtl"==c[0].dir||"rtl"==c[0].body.dir),o=ue.element(e);i&&ue.isDefined(t)?(o.css(t,f(r)),o.css(n,"")):!i&&ue.isDefined(n)&&(o.css(n,f(r)),o.css(t,""))},clientRect:function(e,t,n){var r=g(e);t=g(t||r.offsetParent||document.body);var i=r.getBoundingClientRect(),o=n?t.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(e,t){return p.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t},getViewportTop:function(){return p.disableScrollAround._count&&p.disableScrollAround._viewPortTop?p.disableScrollAround._viewPortTop:l.scrollY||l.pageYOffset||0},findFocusTarget:function(e,t){var n,r=this.prefixer("md-autofocus",!0);return(n=i(e,t||r))||t==r||(n=i(e,this.prefixer("md-auto-focus",!0)))||(n=i(e,r)),n;function i(e,t){var n,r=e[0].querySelectorAll(t);return r&&r.length&&r.length&&ue.forEach(r,function(e){(e=ue.element(e)).hasClass("md-autofocus")&&(n=e)}),n}},disableScrollAround:function(e,t,r){if(r=r||{},p.disableScrollAround._count=Math.max(0,p.disableScrollAround._count||0),p.disableScrollAround._count++,p.disableScrollAround._restoreScroll)return p.disableScrollAround._restoreScroll;var s=c[0].body,n=function(){var e=c[0].documentElement,t=e.style.cssText||"",n=s.style.cssText||"",r=p.getViewportTop();p.disableScrollAround._viewPortTop=r;var i=s.clientWidth,o=s.scrollHeight>s.clientHeight+1,a=0<e.scrollTop?e:s;o&&ue.element(s).css({position:"fixed",width:"100%",top:-r+"px"});s.clientWidth<i&&(s.style.overflow="hidden");return function(){s.style.cssText=n,e.style.cssText=t,a.scrollTop=r}}(),i=function(e){var t;e=ue.element(e||s),r.disableScrollMask?t=e:(t=ue.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),e.append(t));return t.on("wheel",n),t.on("touchmove",n),function(){t.off("wheel"),t.off("touchmove"),!r.disableScrollMask&&t[0].parentNode&&t[0].parentNode.removeChild(t[0])};function n(e){e.preventDefault()}}(t);return p.disableScrollAround._restoreScroll=function(){--p.disableScrollAround._count<=0&&(delete p.disableScrollAround._viewPortTop,n(),i(),delete p.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===de){var e=ue.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),c[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(e){var n=e[0]||e;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!1,!0,j,{},0,0,0,0,!1,!1,!1,!1,0,null),t.$material=!0,t.$focus=!0,n.dispatchEvent(t)},createBackdrop:function(e,t){return n(p.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,o,t){return t=t||/\{([^{}]*)\}/g,e.replace(t,function(t,e){var n=e.split("."),r=o;try{for(var i in n)n.hasOwnProperty(i)&&(r=r[n[i]])}catch(e){r=t}return"string"==typeof r||"number"==typeof r?r:t})},fakeNgModel:function(){return{$fake:!0,$setTouched:ue.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:ue.noop}},debounce:function(n,r,i,o){var a;return function(){var e=i,t=Array.prototype.slice.call(arguments);s.cancel(a),a=s(function(){a=de,n.apply(e,t)},r||10,o)}},throttle:function(n,r){var i;return function(){var e=arguments,t=p.now();(!i||r<t-i)&&(n.apply(this,e),i=t)}},time:function(e){var t=p.now();return e(),p.now()-t},valueOnUse:function(e,t,n){var r=null,i=Array.prototype.slice.call(arguments),o=3<i.length?i.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===r&&(r=n.apply(e,o)),r}})},nextUid:function(){return""+v++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,t,n){if(ue.isString(t)){var r=t.toUpperCase();t=function(e){return e.nodeName.toUpperCase()===r}}if(e instanceof ue.element&&(e=e[0]),n&&(e=e.parentNode),!e)return null;do{if(t(e))return e}while(e=e.parentNode);return null},elementContains:function(t,n){return(j.Node&&j.Node.prototype&&Node.prototype.contains?ue.bind(t,t.contains):ue.bind(t,function(e){return t===n||!!(16&this.compareDocumentPosition(e))}))(n)},extractElementByName:function(e,r,t,n){var i=s(e);return!i&&n&&o.warn(p.supplant("Unable to find node '{0}' in element '{1}'.",[r,e[0].outerHTML])),ue.element(i||e);function s(e){return function(e){if(e)for(var t=0,n=e.length;t<n;t++)if(e[t].nodeName.toLowerCase()===r)return e[t];return null}(e)||(t?function(e){var t;if(e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if(!t)for(var o=0,a=i.childNodes.length;o<a;o++)t=t||s([i.childNodes[o]])}return t}(e):null)}},initOptionalProperties:function(r,i,o){o=o||{},ue.forEach(r.$$isolateBindings,function(e,t){if(e.optional&&ue.isUndefined(r[t])){var n=ue.isDefined(i[e.attrName]);r[t]=ue.isDefined(o[t])?o[t]:n}})},nextTick:function(e,t,n){var r=p.nextTick,i=r.timeout,o=r.queue||[];return o.push({scope:n,callback:e}),null==t&&(t=!0),r.digest=r.digest||t,r.queue=o,i||(r.timeout=s(function(){var e=r.queue,t=r.digest;r.queue=[],r.timeout=null,r.digest=!1,e.forEach(function(e){e.scope&&e.scope.$$destroyed||e.callback()}),t&&a.$digest()},0,!1))},processTemplate:function(e){return m?e:e&&ue.isString(e)?e.replace(/\{\{/g,i).replace(/}}/g,u):e},getParentWithPointerEvents:function(e){for(var t=e.parent();h(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==r[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,t=ue.element("<div>");c[0].body.appendChild(t[0]);for(var n=["sticky","-webkit-sticky"],r=0;r<n.length;++r)if(t.css({position:n[r],top:0,"z-index":2}),t.css("position")==n[r]){e=n[r];break}return t.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:h,isParentFormSubmitted:function(e){var t=p.getClosest(e,"form"),n=t?ue.element(t).controller("form"):null;return!!n&&n.$submitted},animateScrollTo:function(i,o,a){var s=i.scrollTop,c=o-s,l=s<o,u=p.now();d(function e(){var t=(n=a||1e3,r=p.now()-u,function(e,t,n,r){if(r<e)return t+n;var i=(e/=r)*e;return t+n*(i*e*-2+3*i)}(r,s,c,n));var n,r;i.scrollTop=t;(l?t<o:o<t)&&d(e)})},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})},getInnerHTML:function(e){var t=new XMLSerializer;return Array.prototype.map.call(e.childNodes,function(e){return t.serializeToString(e)}).join("")},getOuterHTML:function(e){return(new XMLSerializer).serializeToString(e)},msie:j.document.documentMode};return p.dom.animator=e(p),p;function g(e){return e[0]||e}}ue.module("material.core").factory("$mdUtil",e),ue.element.prototype.focus=ue.element.prototype.focus||function(){return this.length&&this[0].focus(),this},ue.element.prototype.blur=ue.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),ue.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(n,i,a,s){return function(e){return r=e,t=n,c=i,l=a,o=s,u={translate3d:function(t,n,e,r){return o(t,{from:n,to:e,addClass:r.transitionInClass,removeClass:r.transitionOutClass,duration:r.duration}).start().then(function(){return i});function i(e){return o(t,{to:e||n,addClass:r.transitionOutClass,removeClass:r.transitionInClass,duration:r.duration}).start()}},waitTransitionEnd:function(o,a){var s=3e3;return t(function(t,e){var n;("0s"==(n=(n=(a=a||{}).cachedTransitionStyles)||j.getComputedStyle(o[0])).transitionDuration||!n.transition&&!n.transitionProperty)&&(s=0);var r=c(i,a.timeout||s);function i(e){e&&e.target!==o[0]||(e&&c.cancel(r),o.off(l.CSS.TRANSITIONEND,i),t())}o.on(l.CSS.TRANSITIONEND,i)})},calculateTransformValues:function(e,t){var n,r,i=t.element,o=t.bounds;if(i||o){var a=i?u.clientRect(i)||(n=e?e.parent():null,(r=n?n.parent():null)?u.clientRect(r):null):u.copyRect(o),s=u.copyRect(e[0].getBoundingClientRect()),c=u.centerPointFor(s),l=u.centerPointFor(a);return{centerX:l.x-c.x,centerY:l.y-c.y,scaleX:Math.round(100*Math.min(.5,a.width/s.width))/100,scaleY:Math.round(100*Math.min(.5,a.height/s.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,t){var n=ue.bind(null,r.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )");return n(u.calculateTransformValues(e,t))},calculateSlideToOrigin:function(e,t){var n=ue.bind(null,r.supplant,"translate3d( {centerX}px, {centerY}px, 0 )");return n(u.calculateTransformValues(e,t))},toCss:function(e){var r={};return ue.forEach(e,function(e,t){if(!ue.isUndefined(e))if(0<="left top right bottom width height x y min-width min-height max-width max-height".indexOf(t))r[t]=e+"px";else switch(t){case"transition":n(t,l.CSS.TRANSITION,e);break;case"transform":n(t,l.CSS.TRANSFORM,e);break;case"transformOrigin":n(t,l.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":r["font-size"]=e}}),r;function n(e,t,n){ue.forEach(t.split(" "),function(e){r[e]=n})}},toTransformCss:function(t,e,n){var r={};return ue.forEach(l.CSS.TRANSFORM.split(" "),function(e){r[e]=t}),e&&(n=n||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",r.transition=n),r},copyRect:function(t,n){return t?(n=n||{},ue.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(e){var t,n=ue.element(e)[0].getBoundingClientRect();return(t=n)&&0<t.width&&0<t.height?u.copyRect(n):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}};var r,t,c,l,o,u}}]),4<=ue.version.minor?ue.module("material.core.animate",[]):function(){var M=ue.forEach,x=ue.isDefined(document.documentElement.style.WebkitAppearance),A=x?"-webkit-":"",k=(x?"webkitTransitionEnd ":"")+"transitionend",T=(x?"webkitAnimationEnd ":"")+"animationend",e=["$q","$$rAFMutex",function(t,n){function e(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=n(),this._state=0}return e.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:ue.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(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},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(e){var t=this;0===t._state&&(t._state=1,t._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(t){2!==this._state&&(M(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=2)}},e.all=function(t,n){var r=0,i=!0;function o(e){i=i&&e,++r===t.length&&n(i)}M(t,function(e){e.done(o)})},e}];function S(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}ue.module("material.core.animate",[]).factory("$$forceReflow",["$document",function(e){return function(){return e[0].body.clientWidth+1}}]).factory("$$AnimateRunner",e).factory("$$rAFMutex",["$$rAF",function(n){return function(){var t=!1;return n(function(){t=!0}),function(e){t?e():n(e)}}}]).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(f,o,a,p,n,g,s){function v(e,t){t.addClass&&(n.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(n.removeClass(e,t.removeClass),t.removeClass=null)}function b(e){var t=0,n=(e||"").split(/\s*,\s*/);return M(n,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}var $,y=[];function E(e,t){t.from&&(e.css(t.from),t.from=null)}function C(e,t){t.to&&(e.css(t.to),t.to=null)}function w(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function _(e,t){var n=w(e),r=S(A+"transition-delay");n.style[r]=t?"-9999s":""}return function(r,c){var l=[],u=w(r),e=u&&s.enabled(),t=!1,n=!1;e&&(c.transitionStyle&&l.push([A+"transition",c.transitionStyle]),c.keyframeStyle&&l.push([A+"animation",c.keyframeStyle]),c.delay&&l.push([A+"transition-delay",c.delay+"s"]),c.duration&&l.push([A+"transition-duration",c.duration+"s"]),t=c.keyframeStyle||c.to&&(0<c.duration||c.transitionStyle),n=!!c.addClass||!!c.removeClass,_(r,!0));var d=e&&(t||n);E(r,c);var m,h,i=!1;return{close:f.close,start:function(){var e,n=new a;return e=function(){if(_(r,!1),!d)return s();M(l,function(e){var t=e[0],n=e[1];u.style[S(t)]=n}),v(r,c);var e=function(e){var t=w(e),n=f.getComputedStyle(t),r=b(n[l("transitionDuration")]),i=b(n[l("animationDuration")]),o=b(n[l("transitionDelay")]),a=b(n[l("animationDelay")]);i*=parseInt(n[l("animationIterationCount")],10)||1;var s=Math.max(i,r),c=Math.max(a,o);return{duration:s,delay:c,animationDuration:i,transitionDuration:r,animationDelay:a,transitionDelay:o};function l(e){return x?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(r);if(0===e.duration)return s();var t=[];c.easing&&(e.transitionDuration&&t.push([A+"transition-timing-function",c.easing]),e.animationDuration&&t.push([A+"animation-timing-function",c.easing])),c.delay&&e.animationDelay&&t.push([A+"animation-delay",c.delay+"s"]),c.duration&&e.animationDuration&&t.push([A+"animation-duration",c.duration+"s"]),M(t,function(e){var t=e[0],n=e[1];u.style[S(t)]=n,l.push(e)});var i=1e3*e.delay,o=e.duration,n=1e3*o,a=Date.now();m=[],e.transitionDuration&&m.push(k),e.animationDuration&&m.push(T),m=m.join(" "),h=function(e){e.stopPropagation();var t=e.originalEvent||e,n=t.timeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-a,0)>=i&&o<=r&&s()},r.on(m,h),C(r,c),g(s,i+1.5*n,!1)},$&&$(),y.push(e),$=o(function(){$=null;for(var e=p(),t=0;t<y.length;t++)y[t](e);y.length=0}),n;function s(){var e,t;if(!i)return i=!0,m&&h&&r.off(m,h),v(r,c),E(e=r,t=c),C(e,t),M(l,function(e){u.style[S(e[0])]=""}),n.complete(!0),n}}}}}])}(),function(){function o(r,i,c,o){var a=this.showWarnings;return{expect:s,expectAsync:l,expectWithText:function(e,t){var n=u(e)||"";-1<n.indexOf(o.startSymbol())?l(e,t,function(){return u(e)}):s(e,t,n)},expectWithoutText:function(e,t){var n=u(e);-1<n.indexOf(o.startSymbol())||n||s(e,t,n)},getText:u,hasAriaLabel:d,parentHasAriaLabel:function e(t,n){n=n||1;var r=ue.element(t)[0]||t;if(!r.parentNode)return!1;if(i(r.parentNode))return!0;n--;if(n)return e(r.parentNode,n);return!1;function i(e){if(!d(e))return!1;if(e.hasAttribute("role"))switch(e.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(e.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}}};function s(e,t,n){var r=ue.element(e)[0]||e;!r||r.hasAttribute(t)&&0!==r.getAttribute(t).length||function(e,t){var n=e.hasChildNodes(),r=!1;if(n)for(var i=e.childNodes,o=0;o<i.length;o++){var a=i[o];1===a.nodeType&&a.hasAttribute(t)&&(void 0,"none"!==((s=a).currentStyle?s.currentStyle:c.getComputedStyle(s)).display&&(r=!0))}var s;return r}(r,t)||((n=ue.isString(n)?n.trim():"").length?e.attr(t,n):a&&i.warn('ARIA: Attribute "',t,'", required for accessibility, is missing on node:',r))}function l(e,t,n){r(function(){s(e,t,n())})}function u(t){t=t[0]||t;for(var e,n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r="";e=n.nextNode();)i(e)||(r+=e.textContent);return r.trim()||"";function i(e){for(;e.parentNode&&(e=e.parentNode)!==t;)if(e.getAttribute&&"true"===e.getAttribute("aria-hidden"))return!0}}function d(e){var t=ue.element(e)[0]||e;return!!t.hasAttribute&&(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")||t.hasAttribute("aria-describedby"))}}o.$inject=["$$rAF","$log","$window","$interpolate"],ue.module("material.core").provider("$mdAria",function(){var i={showWarnings:!0};return{disableWarnings:function(){i.showWarnings=!1},$get:["$$rAF","$log","$window","$interpolate",function(e,t,n,r){return o.apply(i,arguments)}]}})}(),function(){function e(o){var a=!1;function s(e,t,n,r,i){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=r,this.$controller=i}this.respectPreAssignBindingsEnabled=function(e){return ue.isDefined(e)?(a=e,this):a},this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,r,i){return new s(e,t,n,r,i)}],s.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},s.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},s.prototype._compileTemplate=function(r){var i=this,e=r.templateUrl,t=r.template||"",n=ue.extend({},r.resolve),o=ue.extend({},r.locals),a=r.transformTemplate||ue.identity;return ue.forEach(n,function(e,t){ue.isString(e)?n[t]=i.$injector.get(e):n[t]=i.$injector.invoke(e)}),ue.extend(n,o),n.$$ngTemplate=e?this.$templateRequest(e):this.$q.when(t),this.$q.all(n).then(function(e){var t=a(e.$$ngTemplate,r),n=r.element||ue.element("<div>").html(t.trim()).contents();return i._compileElement(e,n,r)})},s.prototype._compileElement=function(r,i,o){var a=this,s=this.$compile(i),c={element:i,cleanup:i.remove.bind(i),locals:r,link:function(e){if(r.$scope=e,o.controller){var t=ue.extend({},r,{$element:i}),n=a._createController(o,t,r);i.data("$ngControllerController",n),i.children().data("$ngControllerController",n),c.controller=n}return s(e)}};return c},s.prototype._createController=function(e,t,n){var r;if(!a||("function"==typeof o.preAssignBindingsEnabled?o.preAssignBindingsEnabled():1===ue.version.major&&ue.version.minor<6)){var i=this.$controller(e.controller,t,!0);e.bindToController&&ue.extend(i.instance,n),r=i()}else r=this.$controller(e.controller,t),e.bindToController&&ue.extend(r,n);return e.controllerAs&&(t.$scope[e.controllerAs]=r),ue.isFunction(r.$onInit)&&r.$onInit(),r},s.prototype._fetchContentElement=function(e){var t=e.contentElement,n=null;return n=ue.isString(t)?r(t=document.querySelector(t)):(t=t[0]||t,document.contains(t)?r(t):function(){t.parentNode&&t.parentNode.removeChild(t)}),{element:ue.element(t),restore:n};function r(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}ue.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){i.$inject=["$$MdGestureHandler","$$rAF","$timeout"];var o,r,s={},c=6,l=!(f.$inject=["$mdGesture","$$MdGestureHandler"]),a=!1,u=null,d=!1,e=navigator.userAgent||navigator.vendor||j.opera,m=e.match(/ipad|iphone|ipod/i),h=e.match(/android/i);function t(){}function i(r,e,n){var i=function(){for(var e=document.createElement("div"),t=["","webkit","Moz","MS","ms","o"],n=0;n<t.length;n++){var r=t[n],i=r?r+"TouchAction":"touchAction";if(ue.isDefined(e.style[i]))return i}}(),t=void 0!==j.jQuery&&ue.element===j.jQuery,o={handler:function(e,t){var n=new r(e);return ue.extend(n,t),s[e]=n,o},register:function(e,t,n){var r=s[t.replace(/^\$md./,"")];if(r)return r.registerElement(e,n);throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(s).join(", "))},isAndroid:h,isIos:m,isHijackingClicks:(m||h)&&!t&&!l};function a(n){return function(e,t){t.distance<this.state.options.maxDistance&&this.dispatchEvent(e,n,t)}}return o.isHijackingClicks&&(o.handler("click",{options:{maxDistance:c},onEnd:a("click")}),o.handler("focus",{options:{maxDistance:c},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&y(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),o.handler("mouseup",{options:{maxDistance:c},onEnd:a("mouseup")}),o.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),o.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){n.cancel(this.state.timeout)},onStart:function(e,t){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:t.x,y:t.y},this.state.timeout=n(ue.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){i||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,r=this.state.pos.y-t.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(e,t){i&&(this.oldTouchAction=e[0].style[i],e[0].style[i]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[i]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,r;i||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(r=this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=p(e),b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(b(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function n(e){this.name=e,this.state={}}function f(e,i){if(!a){document.contains||(document.contains=function(e){return document.body.contains(e)}),!d&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t;t=m?ue.isDefined(e.webkitForce)&&0===e.webkitForce:0===e.clientX&&0===e.clientY;t||e.$material||e.isIonicTap||v(e)?(u=null,"label"===e.target.tagName.toLowerCase()&&(u={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),u=null)},!0),document.addEventListener("mouseup",t,!0),document.addEventListener("mousedown",t,!0),document.addEventListener("focus",t,!0),d=!0);ue.element(document).on("mousedown touchstart pointerdown",function(e){if(o)return;var t=+Date.now();if(r&&!g(e,r)&&t-r.endTime<1500)return;o=p(e),n("start",e)}).on("mousemove touchmove pointermove",function(e){if(!o||!g(e,o))return;b(e,o),n("move",e)}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){if(!o||!g(e,o))return;b(e,o),o.endTime=+Date.now(),"pointercancel"!==e.type&&n("end",e);r=o,o=null}).on("$$mdGestureReset",function(){r=o=null})}function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||v(e)||"mousedown"===e.type&&(y(e.target)||y(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function n(e,t){var n;for(var r in s)(n=s[r])instanceof i&&("start"===e&&n.cancel(),n[e](t,o))}}function p(e){var t=$(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function g(e,t){return e&&t&&e.type.charAt(0)===t.type}function v(e){return u&&u.x===e.x&&u.y===e.y}function b(e,t){var n=$(e),r=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=r-t.startX,t.distanceY=i-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=0<t.distanceX?"right":t.distanceX<0?"left":"",t.directionY=0<t.distanceY?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function $(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function y(e){return!!e&&"-1"!==e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!==["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName))}ue.module("material.core.gestures",[]).provider("$mdGesture",t).factory("$$MdGestureHandler",function(){var e=void 0!==j.jQuery&&ue.element===j.jQuery;return n.prototype={options:{},dispatchEvent:e?function(e,t,n){n=n||o;var r=new ue.element.Event(t);r.$material=!0,r.pointer=n,r.srcEvent=e,ue.extend(r,{clientX:n.x,clientY:n.y,screenX:n.x,screenY:n.y,pageX:n.x,pageY:n.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),ue.element(n.target).trigger(r)}:function(e,t,n){var r;n=n||o,"click"===t||"mouseup"===t||"mousedown"===t?"function"==typeof j.MouseEvent?r=new MouseEvent(t,{bubbles:!0,cancelable:!0,screenX:Number(e.screenX),screenY:Number(e.screenY),clientX:Number(n.x),clientY:Number(n.y),ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey,button:e.button,buttons:e.buttons,relatedTarget:e.relatedTarget||null}):(r=document.createEvent("MouseEvents")).initMouseEvent(t,!0,!0,j,e.detail,n.x,n.y,n.x,n.y,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget||null):"function"==typeof j.CustomEvent?r=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:{}}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,{}),r.$material=!0,r.pointer=n,r.srcEvent=e,n.target.dispatchEvent(r)},onSetup:ue.noop,onCleanup:ue.noop,onStart:ue.noop,onMove:ue.noop,onEnd:ue.noop,onCancel:ue.noop,start:function(e,t){if(!this.state.isRunning){var n=this.getNearestParent(e.target),r=n&&n.$mdGesture[this.name]||{};this.state={isRunning:!0,options:ue.extend({},this.options,r),registeredParent:n},this.onStart(e,t)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){var n=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",r),n.onSetup(e,t||{}),r;function r(){delete e[0].$mdGesture[n.name],e.off("$destroy",r),n.onCleanup(e,t||{})}}},n}).run(f),t.prototype={disableAll:function(){a=!0},skipClickHijack:function(){return l=!0},setMaxClickDistance:function(e){c=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new i(e,t,n)}]}}(),function(){function e(e,t,n){this.$timeout=e,this.$mdUtil=t,this.$rootScope=n,this.pointerEvent="MSPointerEvent"in j?"MSPointerDown":"PointerEvent"in j?"pointerdown":null,this.bodyElement=ue.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputHandler=this.onInputEvent.bind(this),this.bufferedInputHandler=this.onBufferInputEvent.bind(this),this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents(),this.$rootScope.$on("$destroy",this.deregister.bind(this))}e.$inject=["$timeout","$mdUtil","$rootScope"],ue.module("material.core.interaction",[]).service("$mdInteraction",e),e.prototype.deregister=function(){this.bodyElement.off("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.off("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.off(this.pointerEvent,this.inputHandler)},e.prototype.initializeEvents=function(){this.bodyElement.on("keydown mousedown",this.inputHandler),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.bufferedInputHandler),this.pointerEvent&&this.bodyElement.on(this.pointerEvent,this.inputHandler)},e.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},e.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},e.prototype.getLastInteractionType=function(){return this.lastInteractionType},e.prototype.isUserInvoked=function(e){var t=ue.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-t}}(),ue.module("material.core").provider("$$interimElement",function(){return t.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=t,e;function e(i){e.$inject=["$$interimElement","$injector"];var n=["onHide","onShow","onRemove"],o={},l={presets:{}},r={setDefaults:function(e){return l.optionsFactory=e.options,l.methods=(e.methods||[]).concat(n),r},addPreset:function(e,t){if((t=t||{}).methods=t.methods||[],t.options=t.options||function(){return{}},/^cancel|hide|show$/.test(e))throw new Error("Preset '"+e+"' in "+i+" is reserved!");if(-1<t.methods.indexOf("_options"))throw new Error("Method '_options' in "+i+" is reserved!");return l.presets[e]={methods:t.methods.concat(n),optionsFactory:t.options,argOption:t.argOption},r},addMethod:function(e,t){return o[e]=t,r},$get:e};return r.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),r;function e(e,r){var a,t,n=e(),s={hide:n.hide,cancel:n.cancel,show:function(e){return(e=e||{})._options&&(e=e._options),n.show(ue.extend({},t,e))},destroy:function(e){return n.destroy(e)}};return a=l.methods||[],t=c(l.optionsFactory,{}),ue.forEach(o,function(e,t){s[t]=e}),ue.forEach(l.presets,function(t,n){var r=c(t.optionsFactory,{}),e=(t.methods||[]).concat(a);function i(e){this._options=ue.extend({},r,e)}if(ue.extend(r,{$type:n}),ue.forEach(e,function(t){i.prototype[t]=function(e){return this._options[t]=e,this}}),t.argOption){var o="show"+n.charAt(0).toUpperCase()+n.slice(1);s[o]=function(e){var t=s[n](e);return s.show(t)}}s[n]=function(e){return arguments.length&&t.argOption&&!ue.isObject(e)&&!ue.isArray(e)?(new i)[t.argOption](e):new i(e)}}),s;function c(e,t){var n={};return n[i]=s,r.invoke(e||function(){return t},{},n)}}}function t(d,m,t,h,f,r,n,p,g,c,l){return function(){var u,i=[],o=[],a=[];return u={show:function(e){var t=new s((e=e||{})||{}),n=e.multiple?m.resolve():m.all(i);e.multiple||(n=n.then(function(){var e=o.concat(a.map(u.cancel));return m.all(e)}));var r=n.then(function(){return t.show().then(function(){a.push(t)}).catch(function(e){return e}).finally(function(){i.splice(i.indexOf(r),1)})});return i.push(r),t.deferred.promise.catch(function(e){return e instanceof Error&&l(e),e}),t.deferred.promise},hide:e(function(n,r){return(r=r||{}).closeAll?m.all(a.slice().reverse().map(e)):r.closeTo!==de?m.all(a.slice(r.closeTo).map(e)):e(a[a.length-1]);function e(e){if(!e)return m.when(n);var t=e.remove(n,!1,r||{}).catch(function(e){return e}).finally(function(){o.splice(o.indexOf(t),1)});return a.splice(a.indexOf(e),1),o.push(t),e.deferred.promise}}),cancel:e(function(e,t){var n=a.pop();if(!n)return m.when(e);var r=n.remove(e,!0,t||{}).catch(function(e){return e}).finally(function(){o.splice(o.indexOf(r),1)});return o.push(r),n.deferred.promise.catch(ue.noop)}),destroy:function(e){var t=e?null:a.shift(),n=ue.element(e).length&&ue.element(e)[0].parentNode;if(n){var r=a.filter(function(e){return e.options.element[0]===n});r.length&&(t=r[0],a.splice(a.indexOf(t),1))}return t?t.remove(!1,!1,{$destroy:!0}):m.when(!1)},$injector_:c};function e(t){return function(){var e=arguments;return a.length?t.apply(u,e):i.length?i[0].finally(function(){return t.apply(u,e)}):m.when("No interim elements currently showing up.")}}function s(a){var o,s,e,c=m.when(!0);return(e=(e=a)||{}).template&&(e.template=n.processTemplate(e.template)),a=ue.extend({preserveScope:!1,cancelAutoHide:ue.noop,scope:e.scope||t.$new(e.isolateScope),onShow:function(e,t,n){return r.enter(t,n.parent)},onRemove:function(e,t){return t&&r.leave(t)||m.when()}},e),o={options:a,deferred:m.defer(),show:function(){return m(function(t,n){var r;function i(e){o.deferred.reject(e),n(e)}a.onCompiling&&a.onCompiling(a),(r=a,(r.skipCompile?null:p.compile(r))||m(function(e){e({locals:{},link:function(){return r.element}})})).then(function(e){s=function(e,t){ue.extend(e.locals,t);var n,r,i,o,a=e.link(t.scope);return t.element=a,t.parent=(n=a,o=(r=t).parent,((o=ue.isFunction(o)?o(r.scope,n,r):ue.isString(o)?ue.element(d[0].querySelector(o)):ue.element(o))||{}).length?o:(f[0]&&f[0].querySelector&&(i=f[0].querySelector(":not(svg) > body")),i||(i=f[0]),"#comment"==i.nodeName&&(i=d[0].body),ue.element(i))),t.themable&&g(a),a}(e,a),a.cleanupElement=e.cleanup,c=function(r,i,e){var t=i.onShowing||ue.noop,o=i.onComplete||ue.noop;try{t(i.scope,r,i,e)}catch(e){return m.reject(e)}return m(function(n,t){try{m.when(i.onShow(i.scope,r,i,e)).then(function(){var e,t;o(i.scope,r,i),t=ue.noop,a.hideDelay&&(e=h(u.hide,a.hideDelay),t=function(){h.cancel(e)}),a.cancelAutoHide=function(){t(),a.cancelAutoHide=de},n(r)},t)}catch(e){t(e.message)}})}(s,a,e.controller).then(t,i)}).catch(i)})},remove:function(e,t,n){return s?((a=ue.extend(a||{},n||{})).cancelAutoHide&&a.cancelAutoHide(),a.element.triggerHandler("$mdInterimElementRemove"),!0===a.$destroy?l(a.element,a).then(function(){t&&i(e)||r(e)}):(m.when(c).finally(function(){l(a.element,a).then(function(){t?i(e):r(e)},i)}),o.deferred.promise)):m.when(!1);function r(e){o.deferred.resolve(e)}function i(e){o.deferred.reject(e)}}};function l(r,i){var o=i.onRemoving||ue.noop;return m(function(e,t){try{var n=m.when(i.onRemove(i.scope,r,i)||!0);o(r,n),i.$destroy?(e(r),!i.preserveScope&&i.scope&&n.then(function(){i.scope.$destroy()})):n.then(function(){!i.preserveScope&&i.scope&&i.scope.$destroy(),e(r)},t)}catch(e){t(e.message)}})}}}}}),function(){var s,l,u,c=/(-gt)?-(sm|md|lg|print)/g,d=/\s+/g,m=["grow","initial","auto","none","noshrink","nogrow"],h=["row","column"],f=["","start","center","end","stretch","space-around","space-between"],p=["","start","center","end","stretch"],g={enabled:!0,breakpoints:[]};function v(){var e=!!document.querySelector("[md-layouts-disabled]");g.enabled=!e}function b(){return g.enabled=!1,{restrict:"A",priority:"900"}}function $(r){return["$mdUtil","$interpolate","$log",function(e,t,n){return s=e,l=t,u=n,{restrict:"A",compile:function(e,t){var n;return g.enabled&&(C(r,M(r,t,""),w(0,r,t)),i(0,e),n=i),n||ue.noop}}}];function i(e,t){t.addClass(r)}}function y(t){var n=t.split("-");return["$log",function(e){return e.warn(t+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),ue.noop}]}function E(e,t,n,r){var i,o=n[0].nodeName.toLowerCase();switch(e.replace(c,"")){case"flex":"md-button"!=o&&"fieldset"!=o||(i="<"+o+" "+e+"></"+o+">",r.warn(s.supplant("Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",[i,"https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers"])))}}function C(e,t,n){if(!_(t)){switch(e.replace(c,"")){case"layout":x(t,h)||(t=h[0]);break;case"flex":x(t,m)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var r=(a={main:"start",cross:"stretch"},0!==(i=(i=t)||"").indexOf("-")&&0!==i.indexOf(" ")||(i="none"+i),(o=i.toLowerCase().trim().replace(d,"-").split("-")).length&&"space"===o[0]&&(o=[o[0]+"-"+o[1],o[2]]),0<o.length&&(a.main=o[0]||a.main),1<o.length&&(a.cross=o[1]||a.cross),f.indexOf(a.main)<0&&(a.main="start"),p.indexOf(a.cross)<0&&(a.cross="stretch"),a);t=s.supplant("{main}-{cross}",r);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":t=""}null!=t&&(n||ue.noop)(t)}var i,o,a;return t?t.trim():""}function w(e,t,n){return function(e){_(e)||(n[n.$normalize(t)]=e)}}function _(e){return-1<(e||"").indexOf(l.startSymbol())}function M(e,t,n){var r=t.$normalize(e);return t[r]?t[r].trim().replace(d,"-"):n||null}function x(t,e,n){t=n&&t?t.replace(d,n):t;var r=!1;return t&&e.forEach(function(e){e=n?e.replace(d,n):e,r=r||e===t}),r}!function(r){var i,t=/^((?:x|data)[:\-_])/i,n=/([:\-_]+(.))/g,e=["layout","flex","flex-order","flex-offset","layout-align"],o=["show","hide","layout-padding","layout-margin"];function a(e){return e.replace(t,"").replace(n,function(e,t,n,r){return r?n.toUpperCase():n})}ue.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(n){ue.forEach(e,function(e){var t=n?e+"-"+n:e;r.directive(a(t),function(c){return["$mdUtil","$interpolate","$log",function(e,t,n){return s=e,l=t,u=n,{restrict:"A",compile:function(e,t){var n;return g.enabled&&(E(c,0,e,u),C(c,M(c,t,""),w(0,c,t)),n=r),n||ue.noop}}}];function r(e,t,n){var r,i,o,a=(r=t,i=c,function(e){var t=C(i,e||"");ue.isDefined(t)&&(o&&r.removeClass(o),o=t?i+"-"+t.trim().replace(d,"-"):i,r.addClass(o))}),s=n.$observe(n.$normalize(c),a);a(M(c,n,"")),e.$on("$destroy",function(){s()})}}(t))}),ue.forEach(o,function(e){var t=n?e+"-"+n:e;r.directive(a(t),$(t))})}),r.provider("$$mdLayout",function(){return{$get:ue.noop,validateAttributeValue:C,validateAttributeUsage:E,disableLayouts:function(e){g.enabled=!0!==e}}}).directive("mdLayoutCss",b).directive("ngCloak",(i="ng-cloak",["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(e){return g.enabled?(e.addClass(i),function(e,t){n(function(){t.removeClass(i)},10,!1)}):ue.noop}}}])).directive("layoutWrap",$("layout-wrap")).directive("layoutNowrap",$("layout-nowrap")).directive("layoutNoWrap",$("layout-no-wrap")).directive("layoutFill",$("layout-fill")).directive("layoutLtMd",y("layout-lt-md")).directive("layoutLtLg",y("layout-lt-lg")).directive("flexLtMd",y("flex-lt-md")).directive("flexLtLg",y("flex-lt-lg")).directive("layoutAlignLtMd",y("layout-align-lt-md")).directive("layoutAlignLtLg",y("layout-align-lt-lg")).directive("flexOrderLtMd",y("flex-order-lt-md")).directive("flexOrderLtLg",y("flex-order-lt-lg")).directive("offsetLtMd",y("flex-offset-lt-md")).directive("offsetLtLg",y("flex-offset-lt-lg")).directive("hideLtMd",y("hide-lt-md")).directive("hideLtLg",y("hide-lt-lg")).directive("showLtMd",y("show-lt-md")).directive("showLtLg",y("show-lt-lg")).config(v)}(ue.module("material.core.layout",["ng"]))}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],ue.module("material.core").service("$mdLiveAnnouncer",e),e.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},e.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e}}(),ue.module("material.core.meta",[]).provider("$$mdMeta",function(){var r=ue.element(document.head),i={};function o(e){if(i[e])return!0;var t=document.getElementsByName(e)[0];return!!t&&(i[e]=ue.element(t),!0)}var e={setMeta:function(e,t){if(o(e),i[e])i[e].attr("content",t);else{var n=ue.element('<meta name="'+e+'" content="'+t+'"/>');r.append(n),i[e]=n}return function(){i[e].attr("content",""),i[e].remove(),delete i[e]}},getMeta:function(e){if(!o(e))throw Error("$$mdMeta: could not find a meta tag with the name '"+e+"'");return i[e].attr("content")}};return ue.extend({},e,{$get:function(){return e}})}),function(){function e(n,r){var i,o=[],a={};return i={notFoundError:function(e,t){n.error((t||"")+"No instance found for handle",e)},getInstances:function(){return o},get:function(e){if(!s(e))return null;var t,n,r;for(t=0,n=o.length;t<n;t++)if((r=o[t]).$$mdHandle===e)return r;return null},register:function(t,e){return e?(t.$$mdHandle=e,o.push(t),(n=a[e])&&(n.forEach(function(e){e.resolve(t)}),delete a[e]),function(){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}):ue.noop;var n},when:function(e){if(s(e)){var t=r.defer(),n=i.get(e);return n?t.resolve(n):(a[e]===de&&(a[e]=[]),a[e].push(t)),t.promise}return r.reject("Invalid `md-component-id` value.")}};function s(e){return e&&""!==e}}e.$inject=["$log","$q"],ue.module("material.core").factory("$mdComponentRegistry",e)}(),function(){function e(i){return{attach:function(e,t,n){var r;return n=ue.extend((r=t).hasClass("md-icon-button")?{isMenuItem:r.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:r.hasClass("md-menu-item"),dimBackground:!0},n),i.attach(e,t,n)}}}e.$inject=["$mdInkRipple"],ue.module("material.core").factory("$mdButtonInkRipple",e)}(),function(){function e(r){return{attach:function(e,t,n){return r.attach(e,t,ue.extend({center:!0,dimBackground:!1,fitRipple:!0},n))}}}e.$inject=["$mdInkRipple"],ue.module("material.core").factory("$mdCheckboxInkRipple",e)}(),function(){function e(r){return{attach:function(e,t,n){return r.attach(e,t,ue.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}e.$inject=["$mdInkRipple"],ue.module("material.core").factory("$mdListInkRipple",e)}(),function(){o.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],ue.module("material.core").provider("$mdInkRipple",function(){var i=!1;return{disableInkRipple:function(){i=!0},$get:["$injector",function(r){return{attach:function(e,t,n){return i||t.controller("mdNoInk")?ue.noop:r.instantiate(o,{$scope:e,$element:t,rippleOptions:n})}}}]}}).directive("mdInkRipple",e).directive("mdNoInk",n).directive("mdNoBar",n).directive("mdNoStretch",n);function e(r,i){return{controller:ue.noop,link:function(e,t,n){n.hasOwnProperty("mdInkRippleCheckbox")?i.attach(e,t):r.attach(e,t)}}}function o(e,t,n,r,i,o,a){this.$window=r,this.$timeout=i,this.$mdUtil=o,this.$mdColorUtil=a,this.$scope=e,this.$element=t,this.options=n,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,o.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(t.controller("mdInkRipple")||{}).createRipple=ue.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=ue.bind(this,this.color),this.bindEvents()}function t(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(ue.bind(e,t),!1))}function n(){return{controller:ue.noop}}o.prototype.color=function(e){var t,n,r=this;return ue.isDefined(e)&&(r._color=r._parseColor(e)),r._color||r._parseColor(r.inkRipple())||r._parseColor((t=r.options&&r.options.colorElement?r.options.colorElement:[],(n=t.length?t[0]:r.$element[0])?r.$window.getComputedStyle(n).color:"rgb(0,0,0)"))},o.prototype.calculateColor=function(){return this.color()},o.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},o.prototype.bindEvents=function(){this.$element.on("mousedown",ue.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",ue.bind(this,this.handleMouseup)),this.$element.on("mouseleave",ue.bind(this,this.handleMouseup)),this.$element.on("touchmove",ue.bind(this,this.handleTouchmove))},o.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;this.createRipple(n,r)}else this.createRipple(e.offsetX,e.offsetY)},o.prototype.handleMouseup=function(){this.$timeout(function(){t(this,this.clearRipples)}.bind(this))},o.prototype.handleTouchmove=function(){t(this,this.deleteRipples)},o.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},o.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},o.prototype.createContainer=function(){var e=ue.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},o.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},o.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&ue.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},o.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},o.prototype.createRipple=function(e,t){if(this.isRippleAllowed()){var n,r,i,o=this,a=o.$mdColorUtil,s=ue.element('<div class="md-ripple"></div>'),c=this.$element.prop("clientWidth"),l=this.$element.prop("clientHeight"),u=2*Math.max(Math.abs(c-e),e),d=2*Math.max(Math.abs(l-t),t),m=(n=this.options.fitRipple,r=u,i=d,n?Math.max(r,i):Math.sqrt(Math.pow(r,2)+Math.pow(i,2))),h=this.calculateColor();s.css({left:e+"px",top:t+"px",background:"black",width:m+"px",height:m+"px",backgroundColor:a.rgbaToRgb(h),borderColor:a.rgbaToRgb(h)}),this.lastRipple=s,this.clearTimeout(),this.timeout=this.$timeout(function(){o.clearTimeout(),o.mousedown||o.fadeInComplete(s)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:h}),this.container.append(s),this.ripples.push(s),s.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){s.addClass("md-ripple-scaled md-ripple-active"),o.$timeout(function(){o.clearRipples()},450,!1)},!1)}},o.prototype.fadeInComplete=function(e){this.lastRipple===e&&(this.timeout||this.mousedown)||this.removeRipple(e)},o.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},450,!1))},o.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){function e(r){return{attach:function(e,t,n){return r.attach(e,t,ue.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}e.$inject=["$mdInkRipple"],ue.module("material.core").factory("$mdTabInkRipple",e)}(),ue.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 e(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}e.$inject=["$mdThemingProvider"],n.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],r.$inject=["$mdTheming"],t.$inject=["$mdColorPalette","$$mdMetaProvider"],i.$inject=["$injector","$mdTheming"],$.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",n).directive("mdThemable",r).directive("mdThemesDisabled",function(){return E.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",t).config(e).run(i);var f,c={},s={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)"},l={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)"},u="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",p="",d=M("rgba(0,0,0,0.87)"),m=M("rgba(255,255,255,0.87)"),h=M("rgb(255,255,255)"),g=["primary","accent","warn","background"],a="primary",v={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},b={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};g.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};v[e]||(v[e]=t),b[e]||(b[e]=t)});var y=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],E={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function t(e,c){a.$inject=["$rootScope","$mdUtil","$q","$log"];var n,d={},m=!(f={}),h="default";$.extend(f,e);var t=function(e){var t,n,r,i=(e=$.isObject(e)?e:{}).theme||"default",o=e.hue||"800",a=f[e.palette]||f[d[i].colors[e.palette||"primary"].name],s=$.isObject(a[o])?a[o].hex:a[o];return"#"!==s.substr(0,1)&&(s="#"+s),t=s,n=c.setMeta("theme-color",t),r=c.setMeta("msapplication-navbutton-color",t),function(){n(),r()}};return n={definePalette:function(e,t){return t=t||{},f[e]=r(e,t),n},extendPalette:function(e,t){return r(e,$.extend({},f[e]||{},t))},theme:o,configuration:function(){return $.extend({},E,{defaultTheme:h,alwaysWatchTheme:m,registeredStyles:[].concat(E.registeredStyles)})},disableTheming:function(e){E.disableTheming=$.isUndefined(e)||!!e},registerStyles:function(e){E.registeredStyles.push(e)},setNonce:function(e){E.nonce=e},generateThemesOnDemand:function(e){E.generateOnDemand=e},setDefaultTheme:function(e){h=e},alwaysWatchTheme:function(e){m=e},enableBrowserColor:t,$get:a,_LIGHT_DEFAULT_HUES:v,_DARK_DEFAULT_HUES:b,_PALETTES:f,_THEMES:d,_parseRules:C,_rgba:x};function r(e,t){var n=y.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function o(e,t){if(d[e])return d[e];var n="string"==typeof(t=t||"default")?d[t]:t,r=new i(e);return n&&$.forEach(n.colors,function(e,t){r.colors[t]={name:e.name,hues:$.extend({},e.hues)}}),d[e]=r}function i(e){var a=this;function t(e){if((e=0===arguments.length||!!e)!==a.isDark){a.isDark=e,a.foregroundPalette=a.isDark?l:s,a.foregroundShadow=a.isDark?u:p;var t=a.isDark?b:v,o=a.isDark?v:b;return $.forEach(t,function(e,t){var n=a.colors[t],r=o[t];if(n)for(var i in n.hues)n.hues[i]===r[i]&&(n.hues[i]=e[i])}),a}}a.name=e,a.colors={},(a.dark=t)(!1),g.forEach(function(r){var i=(a.isDark?b:v)[r];a[r+"Palette"]=function(t,e){var n=a.colors[r]={name:t,hues:$.extend({},i,e)};return Object.keys(n.hues).forEach(function(e){if(!i[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",a.name).replace("%3",t).replace("%4",Object.keys(i).join(", ")))}),Object.keys(n.hues).map(function(e){return n.hues[e]}).forEach(function(e){if(-1==y.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",a.name).replace("%3",r).replace("%4",t).replace("%5",y.join(", ")))}),a},a[r+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+r+"Color() has been deprecated. Use $mdThemingProviderTheme."+r+"Palette() instead."),a[r+"Palette"].apply(a,e)}})}function a(n,c,r,l){var i=function(e,t){t===de&&(t=e,e=de),e===de&&(e=n),i.inherit(t,t)};return Object.defineProperty(i,"THEMES",{get:function(){return $.extend({},d)}}),Object.defineProperty(i,"PALETTES",{get:function(){return $.extend({},f)}}),Object.defineProperty(i,"ALWAYS_WATCH",{get:function(){return m}}),i.inherit=function(n,e){var r=e.controller("mdTheme")||n.data("$mdThemeController"),t=n.scope();if(s(r&&r.$mdTheme||("default"===h?"":h)),r){var i=m||r.$shouldWatch||c.parseAttributeBoolean(n.attr("md-theme-watch"));if(i||r.isAsyncTheme){var o=function(){a&&(a(),a=de)},a=r.registerChanges(function(e){s(e),i||o()});t?t.$on("$destroy",o):n.on("$destroy",o)}}function s(e){if(e){u(e)||l.warn("Attempted to use unregistered theme '"+e+"'. Register it with $mdThemingProvider.theme().");var t=n.data("$mdThemeName");t&&n.removeClass("md-"+t+"-theme"),n.addClass("md-"+e+"-theme"),n.data("$mdThemeName",e),r&&n.data("$mdThemeController",r)}}},i.registered=u,i.defaultTheme=function(){return h},i.generateTheme=function(e){_(d[e],e,E.nonce)},i.defineTheme=function(e,t){t=t||{};var n=o(e);return t.primary&&n.primaryPalette(t.primary,t.primaryHues),t.accent&&n.accentPalette(t.accent,t.accentHues),t.warn&&n.warnPalette(t.warn,t.warnHues),t.background&&n.backgroundPalette(t.background,t.backgroundHues),t.dark&&n.dark(),this.generateTheme(e),r.resolve(e)},i.setBrowserColor=t,i;function u(e){return e===de||""===e||i.THEMES[e]!==de}}}function n(h,f,p,g,v,b){return{priority:101,link:{pre:function(t,e,n){var r=[],i=f.startSymbol(),o=f.endSymbol(),a=n.mdTheme.trim(),s=a.substr(0,i.length)===i&&a.lastIndexOf(o)===a.length-o.length,c="::"===n.mdTheme.split(i).join("").split(o).join("").trim().substr(0,"::".length),l=function(){var e=f(n.mdTheme)(t);return p(e)(t)||e},u={isAsyncTheme:$.isFunction(l())||$.isFunction(l().then),registerChanges:function(t,e){return e&&(t=$.bind(e,t)),r.push(t),function(){var e=r.indexOf(t);-1<e&&r.splice(e,1)}},$setTheme:function(e){h.registered(e)||b.warn("attempted to use unregistered theme '"+e+"'"),u.$mdTheme=e;for(var t=r.length;t--;)r[t](e)},$shouldWatch:g.parseAttributeBoolean(e.attr("md-theme-watch"))||h.ALWAYS_WATCH||s&&!c};e.data("$mdThemeController",u);var d=function(e){if("string"==typeof e)return u.$setTheme(e);v.when($.isFunction(e)?e():e).then(function(e){u.$setTheme(e)})};d(l());var m=t.$watch(l,function(e){e&&(d(e),u.$shouldWatch||m())})}}}}function r(e){return e}function C(s,e,t){!function(e,t){if(!f[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(f).join(", ")))}(s,e),t=t.replace(/THEME_NAME/g,s.name);var n=new RegExp("\\.md-"+s.name+"-theme","g");t=t.replace(/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,function(e,t,n,r,i){return"foreground"===t?"shadow"==n?s.foregroundShadow:s.foregroundPalette[n]||s.foregroundPalette[1]:(0!==n.indexOf("hue")&&"default"!==n||(n=s.colors[t].hues[n]),x((f[s.colors[t].name][n]||"")[i?"contrast":"value"],r))});var r=new RegExp("('|\")?{{\\s*([a-zA-Z]+)-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),i=[];return $.forEach(["default","hue-1","hue-2","hue-3"],function(a){var e=t.replace(r,function(e,t,n,r,i){var o=s.colors[n];return x(f[o.name][o.hues[a]]["color"===r?"value":"contrast"],i)});"default"!==a&&(e=e.replace(n,".md-"+s.name+"-theme.md-"+a)),"default"==s.name&&(e=e.replace(/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),i.push(e)}),i}var w={};function i(e,t){var n=document.head,r=n?n.firstElementChild:null,i=!E.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(i+=E.registeredStyles.join(""),r&&0!==i.length){$.forEach(f,function(r,e){var i=r.contrastDefaultColor,o=r.contrastLightColors||[],a=r.contrastStrongLightColors||[],s=r.contrastDarkColors||[];"string"==typeof o&&(o=o.split(" ")),"string"==typeof a&&(a=a.split(" ")),"string"==typeof s&&(s=s.split(" ")),delete r.contrastDefaultColor,delete r.contrastLightColors,delete r.contrastStrongLightColors,delete r.contrastDarkColors,$.forEach(r,function(e,t){if(!$.isObject(e)){var n=M(e);if(!n)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",e).replace("%2",r.name).replace("%3",t));r[t]={hex:r[t],value:n,contrast:"light"===i?-1<s.indexOf(t)?d:-1<a.indexOf(t)?h:m:-1<o.indexOf(t)?-1<a.indexOf(t)?h:m:d}}})});var o=i.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"});g.forEach(function(e){w[e]=""}),o.forEach(function(e){for(var t,n=0;t=g[n];n++)if(-1<e.indexOf(".md-"+t))return w[t]+=e;for(n=0;t=g[n];n++)if(-1<e.indexOf(t))return w[t]+=e;return w[a]+=e}),E.generateOnDemand||$.forEach(t.THEMES,function(e){c[e.name]||"default"!==t.defaultTheme()&&"default"===e.name||_(e,e.name,E.nonce)})}}function _(i,e,o){var a=document.head,s=a?a.firstElementChild:null;c[e]||(g.forEach(function(e){for(var t=C(i,e,w[e]);t.length;){var n=t.shift();if(n){var r=document.createElement("style");r.setAttribute("md-theme-style",""),o&&r.setAttribute("nonce",o),r.appendChild(document.createTextNode(n)),a.insertBefore(r,s)}}}),c[i.name]=!0)}function M(e){if($.isArray(e)&&3==e.length)return e;if(/^rgb/.test(e))return e.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==e.charAt(0)&&(e=e.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(e)){var t=e.length/3,n=e.substr(0,t),r=e.substr(t,t),i=e.substr(2*t);return 1===t&&(n+=n,r+=r,i+=i),[parseInt(n,16),parseInt(r,16),parseInt(i,16)]}}function x(e,t){return e?(4==e.length&&(e=$.copy(e),t?e.pop():t=e.pop()),t&&("number"==typeof t||"string"==typeof t&&t.length)?"rgba("+e.join(",")+","+t+")":"rgb("+e.join(",")+")"):"rgb('0,0,0')"}}(j.angular),ue.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],ue.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var ie=48,oe=5,ae=8,se=2,ce="standard",le="virtual";function e(h,f,p,t,n,e,r,i,g,s,o,a){var c,l,u,d=this,m=h.itemsExpr.split(/ in /i),v=m[1],b=null,$={},y=!1,E=[],C=!1,w=0,_=null,M=null,x=p.debounce(function(){d.hidden||D()}),A=le;c="hidden",l=function(e,t){!e&&t?(D(),Z(!0,T.Count|T.Selected),b&&(p.disableScrollAround(b.ul),_=function(e){function t(e){e.preventDefault()}return e.on("wheel",t),e.on("touchmove",t),function(){e.off("wheel",t),e.off("touchmove",t)}}(ue.element(b.wrap)))):e&&!t&&(p.enableScrolling(),_&&(_(),_=null))},u=!0,Object.defineProperty(d,c,{get:function(){return u},set:function(e){var t=u;l(u=e,t)}}),d.scope=h,d.parent=h.$parent,d.itemName=m[0],d.matches=[],d.loading=!1,d.hidden=!0,d.index=null,d.id=p.nextUid(),d.isDisabled=null,d.isRequired=null,d.isReadonly=null,d.hasNotFound=!1,d.selectedMessage=h.selectedMessage||"selected",d.keydown=function(e){switch(e.keyCode){case t.KEY_CODE.DOWN_ARROW:if(d.loading||z())return;e.stopPropagation(),e.preventDefault(),d.index=Math.min(d.index+1,d.matches.length-1),J(),Z(!1,T.Selected);break;case t.KEY_CODE.UP_ARROW:if(d.loading||z())return;e.stopPropagation(),e.preventDefault(),d.index=d.index<0?d.matches.length-1:Math.max(0,d.index-1),J(),Z(!1,T.Selected);break;case t.KEY_CODE.TAB:if(I(),d.hidden||d.loading||d.index<0||d.matches.length<1)return;G(d.index);break;case t.KEY_CODE.ENTER:if(d.hidden||d.loading||d.index<0||d.matches.length<1)return;if(z())return;e.stopImmediatePropagation(),e.preventDefault(),G(d.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(V("blur")||!d.hidden||d.loading||V("clear")&&h.searchText))return;e.stopPropagation(),K(),h.searchText&&V("clear")&&X(),d.hidden=!0,V("blur")&&function(e){e&&(C=y=!1);b.input.blur()}(!0)}},d.blur=function(e){C=!1,y||(d.hidden=B(),re("ngBlur",{$event:e}))},d.focus=function(e){C=!0,U()&&W()&&te();d.hidden=B(),re("ngFocus",{$event:e})},d.clear=function(){K(),X()},d.select=G,d.listEnter=function(){y=!0},d.listLeave=I,d.mouseUp=function(){b.input.focus()},d.getCurrentDisplayValue=Y,d.registerSelectedItemWatcher=function(e){-1===E.indexOf(e)&&E.push(e)},d.unregisterSelectedItemWatcher=function(e){var t=E.indexOf(e);-1!==t&&E.splice(t,1)},d.notFoundVisible=ee,d.loadingIsVisible=function(){return d.loading&&!z()},d.positionDropdown=D;var k,T={Count:1,Selected:2};return p.initOptionalProperties(h,g,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),n(f),k=parseInt(h.delay,10)||0,g.$observe("disabled",function(e){d.isDisabled=p.parseAttributeBoolean(e,!1)}),g.$observe("required",function(e){d.isRequired=p.parseAttributeBoolean(e,!1)}),g.$observe("readonly",function(e){d.isReadonly=p.parseAttributeBoolean(e,!1)}),h.$watch("searchText",k?p.debounce(P,k):P),h.$watch("selectedItem",H),ue.element(e).on("resize",x),h.$on("$destroy",O),void p.nextTick(function(){var e;e=function(){var e,t;for(e=f;e.length&&(t=e.attr("md-autocomplete-snap"),!ue.isDefined(t));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===t.toLowerCase()?e[0]:f.find("md-autocomplete-wrap")[0]};var n=f.find("md-autocomplete-wrap")[0];return{snap:n,wrap:n}}(),(b={main:f[0],scrollContainer:f[0].querySelector(".md-virtual-repeat-container, .md-standard-list-container"),scroller:f[0].querySelector(".md-virtual-repeat-scroller, .md-standard-list-scroller"),ul:f.find("ul")[0],input:f.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body}).li=b.ul.getElementsByTagName("li"),b.$=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=ue.element(e[n]));return t}(b),A=b.scrollContainer.classList.contains("md-standard-list-container")?ce:le,M=b.$.input.controller("ngModel"),b.$.root.length&&(n(b.$.scrollContainer),b.$.scrollContainer.detach(),b.$.root.append(b.$.scrollContainer),r.pin&&r.pin(b.$.scrollContainer,i)),h.autofocus&&f.on("focus",N),h.inputAriaDescribedBy&&b.input.setAttribute("aria-describedby",h.inputAriaDescribedBy),h.floatingLabel||(h.inputAriaLabel?b.input.setAttribute("aria-label",h.inputAriaLabel):h.inputAriaLabelledBy?b.input.setAttribute("aria-labelledby",h.inputAriaLabelledBy):h.placeholder&&b.input.setAttribute("aria-label",h.placeholder))});function S(){h.requireMatch&&M&&M.$setValidity("md-require-match",!!h.selectedItem||!h.searchText)}function D(){if(!b)return p.nextTick(D,!1,h);var e,t=(h.dropdownItems||oe)*ie,n=b.wrap.getBoundingClientRect(),r=b.snap.getBoundingClientRect(),i=b.root.getBoundingClientRect(),o=r.bottom-i.top,a=i.bottom-r.top,s=n.left-i.left,c=n.width,l=function(){var e=0,t=f.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),u=h.dropdownPosition,d=i.bottom-r.bottom-ae+p.getViewportTop(),m=r.top-ae;u||(u=t<d?"bottom":t<m?"top":d<m?"top":"bottom"),g.mdFloatingLabel&&(s+=se,c-=2*se),e={left:s+"px",minWidth:c+"px",maxWidth:Math.max(n.right-i.left,i.right-n.left)-ae+"px"},"top"===u?(e.top="auto",e.bottom=a+"px",e.maxHeight=Math.min(t,m)+"px"):(d=i.bottom-n.bottom-ae+p.getViewportTop(),e.top=o-l+"px",e.bottom="auto",e.maxHeight=Math.min(t,d)+"px"),b.$.scrollContainer.css(e),p.nextTick(function(){var e=b.scrollContainer.getBoundingClientRect(),t={};e.right>i.right&&(t.left=n.right-e.width+"px");b.$.scrollContainer.css(t)},!1,h)}function N(){b.input.focus()}function O(){if(d.hidden||p.enableScrolling(),ue.element(e).off("resize",x),b){ue.forEach(["ul","scroller","scrollContainer","input"],function(e){b.$[e].remove()})}}function I(){C||d.hidden||b.input.focus(),y=!1,d.hidden=B()}function H(r,i){S(),r?L(r).then(function(e){var t,n;h.searchText=e,t=r,n=i,E.forEach(function(e){e(t,n)})}):i&&h.searchText&&L(i).then(function(e){ue.isString(h.searchText)&&e.toString().toLowerCase()===h.searchText.toLowerCase()&&(h.searchText="")}),r!==i&&ue.isFunction(h.itemChange)&&h.itemChange(F(h.selectedItem))}function P(t,n){d.index=h.autoselect?0:-1,t!==n&&(S(),L(h.selectedItem).then(function(e){t!==e&&(h.selectedItem=null,t!==n&&ue.isFunction(h.textChange)&&h.textChange(),W()?te():(j(!(d.matches=[])),Z(!0,T.Count)))}))}function R(){return ue.isNumber(h.minLength)?h.minLength:1}function L(e){return s.when((t=e,(t&&h.itemText?h.itemText(F(t)):null)||e)).then(function(e){return e&&!ue.isString(e)&&o.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e});var t}function F(e){if(!e)return de;var t={};return d.itemName&&(t[d.itemName]=e),t}function j(e){d.loading!==e&&(d.loading=e),d.hidden=B()}function B(){return!function(){{if(d.isReadonly)return!1;if(!U())return!1}return W()&&q()||ee()}()}function U(){return!(d.loading&&!q())&&(!z()&&!!C)}function V(e){return!h.escapeOptions||-1!==h.escapeOptions.toLowerCase().indexOf(e)}function q(){return!!d.matches.length}function z(){return!!d.scope.selectedItem}function Y(){return L(d.matches[d.index])}function W(){return(h.searchText||"").length>=R()}function G(e){p.nextTick(function(){L(d.matches[e]).then(function(e){var t=b.$.input.controller("ngModel");a.announce(e+" "+d.selectedMessage,"assertive"),t.$setViewValue(e),t.$render()}).finally(function(){h.selectedItem=d.matches[e],j(!1)})},!1)}function K(){d.index=0,d.matches=[]}function X(){j(!0),h.searchText="";var e=document.createEvent("CustomEvent");e.initCustomEvent("change",!0,!0,{value:""}),b.input.dispatchEvent(e),b.input.blur(),h.searchText="",b.input.focus()}function Z(e,t){var n=e?"polite":"assertive",r=[];t&T.Selected&&-1!==d.index&&r.push(Y()),t&T.Count&&r.push(s.resolve(function(){switch(d.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+d.matches.length+" matches available."}}())),s.all(r).then(function(e){a.announce(e.join(" "),n)})}function J(){var e,t,n,r,i,o,a,s,c,l;b.li[0]&&(A===ce?(o=b.li[d.index]||b.li[0],a=b.scrollContainer.offsetHeight,s=o&&o.offsetTop||0,c=s+o.clientHeight,l=b.scrollContainer.scrollTop,s<l?Q(s):l+a<c&&Q(c-a)):(e=b.li[0].offsetHeight,t=e*d.index,n=t+e,r=b.scroller.clientHeight,i=b.scroller.scrollTop,t<i?Q(t):i+r<n&&Q(n-r)))}function Q(e){A===ce?b.scrollContainer.scrollTop=e:b.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ee(){var e=(d.scope.searchText||"").length;return d.hasNotFound&&!q()&&(!d.loading||0!==w)&&e>=R()&&(C||y)&&!z()}function te(){var e=h.searchText||"",t=e.toLowerCase();!h.noCache&&$[t]?ne($[t]):function(t){var e=h.$parent.$eval(v),n=t.toLowerCase(),r=ue.isArray(e),i=!!e.then;function o(e){$[n]=e,(t||"")===(h.searchText||"")&&ne(e)}r?o(e):i&&(a=e,a&&(a=s.when(a),w++,j(!0),p.nextTick(function(){a.then(o).finally(function(){0==--w&&j(!1)})},!0,h)));var a}(e),d.hidden=B()}function ne(e){var n,t,r;d.matches=e,d.hidden=B(),d.loading&&j(!1),h.selectOnMatch&&(n=h.searchText,t=d.matches,r=t[0],1===t.length&&L(r).then(function(e){var t=n===e;h.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&G(0)})),D(),Z(!0,T.Count)}function re(e,t){g[e]&&h.$parent.$eval(g[e],t||{})}}}(),function(){function e(l){var u="virtual",t=["standard",u];function d(e){return e?(e=e.toLowerCase(),-1<t.indexOf(e)?e:u):u}return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?inputAriaLabel",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",menuContainerClass:"@?mdMenuContainerClass",inputClass:"@?mdInputClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton",selectedMessage:"@?mdSelectedMessage",mdMode:"=?mdMode"},compile:function(e,n){var r=e.find("input");return["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"].forEach(function(e){var t=n[n.$normalize(e)];null!==t&&r.attr(e,t)}),function(e,t,n,r){r.hasNotFound=!!t.attr("md-has-not-found"),ue.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=d(n.mdMode)}},template:function(n,e){var t,r,i=(t=n.find("md-not-found").detach(),(r=t.length?t.html():"")?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"                         md-autocomplete-parent-scope>'+r+"</li>":""),o=function(){var e=n.find("md-item-template").detach(),t=e.length?e.html():n.html();e.length||n.empty();return"<md-autocomplete-parent-scope md-autocomplete-replace>"+t+"</md-autocomplete-parent-scope>"}(),a=n.html(),s=e.tabindex;return i&&n.attr("md-has-not-found",!0),n.attr("tabindex","-1"),"        <md-autocomplete-wrap            ng-class=\"{ 'md-whiteframe-z1': !floatingLabel,                         'md-menu-showing': !$mdAutocompleteCtrl.hidden,                         'md-show-clear-button': !!clearButton }\">          "+(e.mdFloatingLabel?'            <md-input-container ng-if="floatingLabel">              <label>{{floatingLabel}}</label>              <input type="search"                '+(null!=s?'tabindex="'+s+'"':"")+'                id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                name="{{inputName}}"                ng-class="::inputClass"                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-label="{{floatingLabel}}"                aria-autocomplete="list"                role="combobox"                aria-haspopup="true"                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"                aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}">              <div md-autocomplete-parent-scope md-autocomplete-replace>'+a+"</div>            </md-input-container>":'            <input type="search"              '+(null!=s?'tabindex="'+s+'"':"")+'              id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}"              name="{{inputName}}"              ng-class="::inputClass"              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-label="{{placeholder}}"              aria-autocomplete="list"              role="combobox"              aria-haspopup="true"              aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"              aria-owns="ul-{{$mdAutocompleteCtrl.id}}"              ng-attr-aria-activedescendant="{{$mdAutocompleteCtrl.index >= 0 ? \'selected_option\' : undefined}}">')+'          <button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+l.mdClose+'"></md-icon></button>          <md-progress-linear              class="'+(e.mdFloatingLabel?"md-inline":"")+'"              ng-if="$mdAutocompleteCtrl.loadingIsVisible()"              md-mode="indeterminate"></md-progress-linear>          '+function(e,t){if(e=e?" "+e:"",c(t))return'            <div                 ng-hide="$mdAutocompleteCtrl.hidden"                class="md-standard-list-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'"                ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"                role="presentation">              <div class="md-standard-list-scroller" role="presentation">';return'          <md-virtual-repeat-container              md-auto-shrink              md-auto-shrink-min="1"              ng-hide="$mdAutocompleteCtrl.hidden"              class="md-virtual-repeat-container md-autocomplete-suggestions-container md-whiteframe-z1'+e+'"              ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"              role="presentation">'}(e.mdMenuContainerClass,e.mdMode)+'            <ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}"                ng-mouseenter="$mdAutocompleteCtrl.listEnter()"                ng-mouseleave="$mdAutocompleteCtrl.listLeave()"                ng-mouseup="$mdAutocompleteCtrl.mouseUp()"                role="listbox">              <li '+(c(e.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-attr-id="{{$index === $mdAutocompleteCtrl.index ? \'selected_option\' : undefined}}"                  ng-click="$mdAutocompleteCtrl.select($index)"                  role="option"                  aria-setsize="{{$mdAutocompleteCtrl.matches.length}}"                  aria-posinset="{{$index+1}}"                  aria-selected="{{$index === $mdAutocompleteCtrl.index ? true : false}}"                   md-extra-name="$mdAutocompleteCtrl.itemName">                  '+o+"                  </li>"+i+"            </ul>          "+(c(e.mdMode)?"   </div>              </div>            </div>":"</md-virtual-repeat-container>")+"        </md-autocomplete-wrap>";function c(e){return d(e)!==u}}}}e.$inject=["$$mdSvgRegistry"],ue.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,u){return{restrict:"AE",compile:function(e,t,l){return function(n,t,e){var r,i,o=n.$mdAutocompleteCtrl,a=o.parent.$new(),s=o.itemName;function c(e,t){a[t]=n[e],n.$watch(e,function(e){u.nextTick(function(){a[t]=e})})}c("$index","$index"),c("item",s),i=r=!1,n.$watch(function(){i||r||(r=!0,n.$$postDigest(function(){i||a.$digest(),r=i=!1}))}),a.$watch(function(){i=!0}),l(a,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}e.$inject=["$compile","$mdUtil"],ue.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e)}(),function(){function e(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}e.$inject=["$scope","$element","$attrs"],ue.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.prototype.init=function(t,n){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(e){return{term:t(e),contentText:n(e)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},e.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},e.prototype.applyRegex=function(e){var t=this.resolveTokens(e);this.$element.empty(),t.forEach(function(e){if(e.isMatch){var t=ue.element('<span class="highlight">').text(e.text);this.$element.append(t)}else this.$element.append(document.createTextNode(e))}.bind(this))},e.prototype.resolveTokens=function(r){var i=[],n=0;return r.replace(this.regex,function(e,t){o(n,t),i.push({text:e,isMatch:!0}),n=t+e.length}),o(n),i;function o(e,t){var n=r.slice(e,t);n&&i.push(n)}},e.prototype.createRegex=function(e,t){var n="",r="",i=this.sanitizeRegex(e);return 0<=t.indexOf("^")&&(n="^"),0<=t.indexOf("$")&&(r="$"),new RegExp(n+i+r,t.replace(/[$^]/g,""))},e.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\^$*+?.()|{}[\]]/g,"\\$&")}}(),function(){function e(n,r){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(e,t){var i=r(t.mdHighlightText),o=n(e.html());return function(e,t,n,r){r.init(i,o)}}}}e.$inject=["$interpolate","$parse"],ue.module("material.components.autocomplete").directive("mdHighlightText",e)}(),ue.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(s,c,t,n,l,u,d,m){return{restrict:"E",link:function(r,i,e){var o;function a(){var e=parseInt(o.height,10)+Math.abs(parseInt(o.top,10));i.css("height",e+"px")}t.pin&&t.pin(i,n),d(function(){if("fixed"===(o=l.getComputedStyle(m[0].body)).position){var e=c.debounce(function(){o=l.getComputedStyle(m[0].body),a()},60,null,!1);a(),ue.element(l).on("resize",e),r.$on("$destroy",function(){ue.element(l).off("resize",e)})}var t=i.parent();if(t.length){"BODY"===t[0].nodeName&&i.css("position","fixed");var n=l.getComputedStyle(t[0]);"static"===n.position&&u.warn("<md-backdrop> may not work properly in a scrolled, static-positioned parent container."),s.inherit(i,t)}})}}}]),function(){function e(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function t(e){t.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var h=.5,f=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(i,a,s,o,c,l,u,d){var m;return{themable:!0,onShow:function(e,t,n,r){if((t=s.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")){d.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak>` will affect the bottom-sheet opening animations.",t[0])}n.isLockedOpen?(n.clickOutsideToClose=!1,n.escapeToClose=!1):n.cleanupGestures=function(r,e){var t=u.register(e,"drag",{horizontal:!1});return e.on("$md.dragstart",n).on("$md.drag",i).on("$md.dragend",o),function(){t(),e.off("$md.dragstart",n),e.off("$md.drag",i),e.off("$md.dragend",o)};function n(){r.css(a.CSS.TRANSITION_DURATION,"0ms")}function i(e){var t=e.pointer.distanceY;t<5&&(t=Math.max(-f,t/2)),r.css(a.CSS.TRANSFORM,"translate3d(0,"+(f+t)+"px,0)")}function o(e){if(0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>h)){var t=r.prop("offsetHeight")-e.pointer.distanceY,n=Math.min(t/e.pointer.velocityY*.75,500);r.css(a.CSS.TRANSITION_DURATION,n+"ms"),s.nextTick(c.cancel,!0)}else r.css(a.CSS.TRANSITION_DURATION,""),r.css(a.CSS.TRANSFORM,"")}}(t,n.parent);n.disableBackdrop||((m=s.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,n.clickOutsideToClose&&m.on("click",function(){s.nextTick(c.cancel,!0)}),o.inherit(m,n.parent),i.enter(m,n.parent,null));o.inherit(t,n.parent),n.disableParentScroll&&(n.restoreScroll=s.disableScrollAround(t,n.parent));return i.enter(t,n.parent,m).then(function(){var e=s.findFocusTarget(t)||ue.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(s.prefixer("ng-click",!0)))||m;n.escapeToClose&&(n.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&s.nextTick(c.cancel,!0)},l.on("keyup",n.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,n){n.disableBackdrop||i.leave(m);return i.leave(t).then(function(){n.disableParentScroll&&(n.restoreScroll(),delete n.restoreScroll),n.cleanupGestures&&n.cleanupGestures()})},disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0,isLockedOpen:!1}}}e.$inject=["$mdBottomSheet"],t.$inject=["$$interimElementProvider"],ue.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",t)}(),function(){function e(n){return{restrict:"E",link:function(e,t){n(t)}}}function t(r,i,o,a){return{restrict:"EA",replace:!0,transclude:!0,template:function(e,t){{if(s(t))return'<a class="md-button" ng-transclude></a>';var n=void 0===t.type?"button":t.type;return'<button class="md-button" type="'+n+'" ng-transclude></button>'}},link:function(e,t,n){i(t),r.attach(e,t),o.expectWithoutText(t,"aria-label"),s(n)&&ue.isDefined(n.ngDisabled)&&!t.hasClass("_md-nav-button")&&e.$watch(n.ngDisabled,function(e){t.attr("tabindex",e?-1:0)});t.on("click",function(e){!0===n.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),t.hasClass("md-no-focus")||(t.on("focus",function(){a.isUserInvoked()&&"keyboard"!==a.getLastInteractionType()||t.addClass("md-focused")}),t.on("blur",function(){t.removeClass("md-focused")}))}};function s(e){return ue.isDefined(e.href)||ue.isDefined(e.ngHref)||ue.isDefined(e.ngLink)||ue.isDefined(e.uiSref)}}t.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],ue.module("material.components.button",["material.core"]).directive("mdButton",t).directive("a",e)}(),function(){function e(r){return{restrict:"E",link:function(e,t,n){t.addClass("_md"),r(t)}}}e.$inject=["$mdTheming"],ue.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(f,p,g,v,b,$){return f=f[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:g.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:function(e,t){return t.$set("tabindex",t.tabindex||"0"),t.$set("type","checkbox"),t.$set("role",t.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:function(e,i,n,t){var r,o,a,s,c=t[0],l=t[1]||b.fakeNgModel(),u=t[2];if(c){var d=c.isErrorGetter||function(){return l.$invalid&&(l.$touched||u&&u.$submitted)};c.input=i,e.$watch(d,c.setInvalid)}function m(t){i[0].hasAttribute("disabled")||e.skipToggle||e.$apply(function(){var e=n.ngChecked&&n.ngClick?n.checked:!l.$viewValue;l.$setViewValue(e,t&&t.type),l.$render()})}function h(e){(r=!1!==e)&&i.attr("aria-checked","mixed"),i.toggleClass("md-indeterminate",r)}v(i),i.children().on("focus",function(){i.focus()}),b.parseAttributeBoolean(n.mdIndeterminate)&&(h(),e.$watch(n.mdIndeterminate,h)),n.ngChecked&&e.$watch(e.$eval.bind(e,n.ngChecked),function(e){l.$setViewValue(e),l.$render()}),o="ngDisabled",a="tabindex",s={true:"-1",false:n.tabindex},n[o]&&e.$watch(n[o],function(e){s[e]&&i.attr(a,s[e])}),p.expectWithText(i,"aria-label"),f.link.pre(e,{on:ue.noop,0:{}},n,[l]),i.on("click",m).on("keypress",function(e){var t,n,r=e.which||e.keyCode;switch(e.preventDefault(),r){case g.KEY_CODE.SPACE:i.addClass("md-focused"),m(e);break;case g.KEY_CODE.ENTER:(n=b.getClosest(e.target,"form"))&&(t=n.querySelector('button[type="submit"]:enabled, input[type="submit"]:enabled'))&&t.click()}}).on("focus",function(){"keyboard"===$.getLastInteractionType()&&i.addClass("md-focused")}).on("blur",function(){i.removeClass("md-focused")}),l.$render=function(){i.toggleClass("md-checked",!!l.$viewValue&&!r)}}}}}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],ue.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),ue.module("material.components.chips",["material.core","material.components.autocomplete"]),function(){function e(e,t,n,r,i){this.$scope=e,this.$element=t,this.$mdConstant=n,this.$timeout=r,this.$mdUtil=i,this.isEditing=!1,this.parentController=de,this.enableChipEdit=!1}e.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],ue.module("material.components.chips").controller("MdChipCtrl",e),e.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("dblclick",this.chipMouseDoubleClick.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},e.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return ue.element(e[0])},e.prototype.getContentElement=function(){var e=ue.element(this.getChipContent().children()[0]);return e&&0!==e.length||(e=ue.element(this.getChipContent().contents()[0])),e},e.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},e.prototype.goOutOfEditMode=function(){if(this.isEditing){this.isEditing=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex(),t=this.getContentElement().text();t?(this.parentController.updateChipContents(e,t),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},e.prototype.selectNodeContents=function(e){var t,n;document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):j.getSelection&&(n=j.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},e.prototype.goInEditMode=function(){this.isEditing=!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])},e.prototype.chipKeyDown=function(e){this.isEditing||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditing&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},e.prototype.chipMouseDoubleClick=function(){this.enableChipEdit&&!this.isEditing&&this.goInEditMode()}}(),function(){function e(s,e,t,c){return{restrict:"E",require:["^?mdChips","mdChip"],link:function(e,t,n,r){var i=r.shift(),o=r.shift(),a=ue.element(t[0].querySelector(".md-chip-content"));s(t),i&&(o.init(i),a.on("blur",function(){i.resetSelectedChip(),i.$scope.$applyAsync()}));c(function(){i&&i.shouldFocusLastChip&&i.focusLastChipThenInput()})},controller:"MdChipCtrl"}}e.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],ue.module("material.components.chips").directive("mdChip",e)}(),function(){function e(i){return{restrict:"A",require:"^mdChips",scope:!1,link:function(t,e,n,r){e.on("click",function(e){t.$apply(function(){r.removeChip(t.$$replacedScope.$index)})}),i(function(){e.attr({tabindex:"-1","aria-hidden":"true"}),e.find("button").attr("tabindex","-1")})}}}e.$inject=["$timeout"],ue.module("material.components.chips").directive("mdChipRemove",e)}(),function(){function e(a){return{restrict:"EA",terminal:!0,link:function(e,t,n){var r=e.$parent.$mdChipsCtrl,i=r.parent.$new(!1,r.parent);i.$$replacedScope=e,i.$chip=e.$chip,i.$index=e.$index;var o=(i.$mdChipsCtrl=r).$scope.$eval(n.mdChipTransclude);t.html(o),a(t.contents())(i)},scope:!1}}e.$inject=["$compile"],ue.module("material.components.chips").directive("mdChipTransclude",e)}(),function(){e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var l=300;function e(e,t,n,r,i,o,a,s,c){this.$timeout=o,this.$mdConstant=n,this.$scope=e,this.parent=e.$parent,this.$mdUtil=a,this.$log=r,this.$mdLiveAnnouncer=s,this.$exceptionHandler=c,this.$element=i,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=a.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=a.parseAttributeBoolean(t.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.containerEmptyHint="Chips container. Enter the text area, then type text, and press enter to add a chip.",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=l,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}ue.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var t=this;this.wrapperId="_md-chips-wrapper-"+this.$mdUtil.nextUid(),this.$element.attr("ng-model")||this.setupStaticChips(),this.deRegister.push(this.$scope.$watchCollection("$mdChipsCtrl.items",function(){t.setupInputAria(),t.setupWrapperAria()})),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",function(e){t.chipAppendDelay=parseInt(e)||l}))},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0),this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy?(e.attr("aria-labelledby",this.inputAriaLabelledBy),e.removeAttr("aria-label")):e.attr("aria-label",this.inputAriaLabel))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map(function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()}),t.attr("aria-owns",this.contentIds.join(" ")),t.attr("aria-label",this.containerHint)):(t.removeAttr("role"),t.removeAttr("aria-owns"),t.attr("aria-label",this.containerEmptyHint))},e.prototype.setupStaticChips=function(){var e,t,n=this,r=this.$element.find("md-chips-wrap");this.$timeout(function(){for(r.attr("role","list"),t=r[0].children,e=0;e<t.length;e++)t[e].setAttribute("role","listitem"),t[e].setAttribute("aria-setsize",t.length);n.inputAriaDescribedBy&&r.attr("aria-describedby",n.inputAriaDescribedBy),n.inputAriaLabelledBy?(r.attr("aria-labelledby",n.inputAriaLabelledBy),r.removeAttr("aria-label")):r.attr("aria-label",n.inputAriaLabel)},10)},e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.autocompleteCtrl&&e.isDefaultPrevented&&e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(e.target))return;return e.preventDefault(),e.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(e.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!t)return;if(e.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(t.trim()),this.resetChipBuffer(),!1}}},e.prototype.getCursorPosition=function(t){try{if(t.selectionStart===t.selectionEnd)return t.selectionStart}catch(e){if(!t.value)return 0}},e.prototype.updateChipContents=function(e,t){0<=e&&e<this.items.length&&(this.items[e]=t,this.updateNgModel(!0))},e.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},e.prototype._isChipObject=function(e){return ue.isObject(e)},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!ue.isDefined(this.removable)||this.removable)},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer()&&!this.isEditingChip())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(e.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip,e);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.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:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""===this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},e.prototype.removeAndSelectAdjacentChip=function(e,t){var n=this,r=n.getAdjacentChipIndex(e);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+e+'"]');n.removeChip(e,t),n.$timeout(function(){n.$timeout(function(){n.selectAndFocusChipSafe(r)})})},e.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0===t?-1:e===t?e-1:e},e.prototype.appendChip=function(t){if(this.shouldFocusLastChip=!this.addOnBlur,this.useTransformChip&&this.transformChip){var e=this.transformChip({$chip:t});ue.isDefined(e)&&(t=e)}if(ue.isObject(t)&&this.items.some(function(e){return ue.equals(t,e)}))return;if(!(null==t||this.items.indexOf(t)+1)){var n=this.items.push(t)-1;this.updateNgModel();var r=ue.isObject(t)?"":t;this.$mdLiveAnnouncer.announce(r+" "+this.addedMessage,"assertive"),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:t,$index:n})}},e.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},e.prototype.useOnAddExpression=function(){this.useOnAdd=!0},e.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},e.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},e.prototype.getChipBuffer=function(){var e=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return ue.isString(e)?e:""},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.hasMaxChipsReached=function(){return ue.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),0<this.maxChips&&this.items.length>=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},e.prototype.updateNgModel=function(e){e||this.validateModel(),ue.forEach(this.ngModelCtrl.$viewChangeListeners,function(e){try{e()}catch(e){this.$exceptionHandler(e)}})},e.prototype.removeChip=function(e,t){var n=this.items.splice(e,1);this.updateNgModel(),this.ngModelCtrl.$setDirty();var r=ue.isObject(n[0])?"":n[0];this.$mdLiveAnnouncer.announce(r+" "+this.removedMessage,"assertive"),n&&n.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:n[0],$index:e,$event:t})},e.prototype.removeChipAndFocusInput=function(e,t){this.removeChip(e,t),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout(function(){e.focusInput()},e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){-1<=e&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!==e&&this.focusChip(e)},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$isEmpty=function(e){return!e||0===e.length},e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureInput=function(e){var t=e.controller("ngModel"),n=this;t&&(this.deRegister.push(this.$scope.$watch(function(){return t.$touched},function(e){e&&n.ngModelCtrl.$setTouched()})),this.deRegister.push(this.$scope.$watch(function(){return t.$dirty},function(e){e&&n.ngModelCtrl.$setDirty()})))},e.prototype.configureUserInput=function(e){var t=(this.userInputElement=e).controller("ngModel");t!==this.ngModelCtrl&&(this.userInputNgModelCtrl=t);var n=this.$scope,r=this,i=function(e,t){n.$evalAsync(ue.bind(r,t,e))};e.attr({tabindex:0}).on("keydown",function(e){i(e,r.inputKeydown)}).on("focus",function(e){i(e,r.onInputFocus)}).on("blur",function(e){i(e,r.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,this.$element.attr("container-empty-hint")||(this.containerEmptyHint="Chips container with autocompletion. Enter the text area, type text to search, and then use the up and down arrow keys to select an option. Press enter to add the selected option as a chip.",this.setupWrapperAria()),e.registerSelectedItemWatcher(ue.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",ue.bind(this,this.onInputFocus)).on("blur",ue.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$isEmpty(this.ngModelCtrl.$modelValue)||this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||0<=this.selectedChip},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){r.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],ue.module("material.components.chips").directive("mdChips",r);var e='      <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() }"          class="md-chips">        <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-setsize="{{$mdChipsCtrl.items.length}}"              aria-posinset="{{$index+1}}"              ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)"              aria-label="{{$mdChipsCtrl._isChipObject($chip) ? \'\' : $chip + \'. \'}}{{$mdChipsCtrl.isRemovable() ? \'\' + $mdChipsCtrl.deleteHint : \'\'}}"               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>',t='        <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)">',n="      <span>{{$chip}}</span>",i='      <button          class="md-chip-remove"          ng-if="$mdChipsCtrl.isRemovable()"          ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index, $event)"          type="button"          tabindex="-1"          aria-label="{{$mdChipsCtrl.deleteButtonLabel}}{{$mdChipsCtrl._isChipObject($chip) ? \'\' : \' \' + $chip}}">        <md-icon md-svg-src="{{$mdChipsCtrl.mdCloseIcon}}" aria-hidden="true"></md-icon>      </button>';function r(m,h,f,r,p,g){var v={chips:h.processTemplate(e),input:h.processTemplate(t),default:h.processTemplate(n),remove:h.processTemplate(i)};return{template:function(e,t){return t.$mdUserTemplate=e.clone(),v.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:function(e,a){var n=a.$mdUserTemplate;a.$mdUserTemplate=null;var s=t("md-chips>md-chip-template"),c=t(h.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","))||v.remove,l=s||v.default,u=t("md-chips>md-autocomplete")||t("md-chips>input")||v.input,d=n.find("md-chip");n[0].querySelector("md-chip-template>*[md-chip-remove]")&&r.warn("invalid placement of md-chip-remove within md-chip-template.");function t(e){if(a.ngModel){var t=n[0].querySelector(e);return t&&t.outerHTML}}return function(e,t,n,r){h.initOptionalProperties(e,a),m(t);var i=r[0];if(s&&(i.enableChipEdit=!1),i.chipContentsTemplate=l,i.chipRemoveTemplate=c,i.chipInputTemplate=u,i.mdCloseIcon=g.mdClose,t.attr({tabindex:-1}).on("focus",function(){i.onFocus()}).on("click",function(){i.readonly||-1!==i.selectedChip||i.onFocus()}),a.ngModel&&(i.configureNgModel(t.controller("ngModel")),n.mdTransformChip&&i.useTransformChipExpression(),n.mdOnAppend&&i.useOnAppendExpression(),n.mdOnAdd&&i.useOnAddExpression(),n.mdOnRemove&&i.useOnRemoveExpression(),n.mdOnSelect&&i.useOnSelectExpression(),u!==v.input&&e.$watch("$mdChipsCtrl.readonly",function(e){e||h.nextTick(function(){if(0===u.indexOf("<md-autocomplete")){var e=t.find("md-autocomplete");i.configureAutocomplete(e.controller("mdAutocomplete"))}i.configureUserInput(t.find("input"))})}),h.nextTick(function(){var e=t.find("input");e&&(i.configureInput(e),e.toggleClass("md-input",!0))})),0<d.length){var o=f(d.clone())(e.$parent);p(function(){t.find("md-chips-wrap").prepend(o)})}}},scope:{readonly:"=?readonly",removable:"=?mdRemovable",placeholder:"@?",secondaryPlaceholder:"@?",maxChips:"@?mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&?mdOnAppend",onAdd:"&?mdOnAdd",onRemove:"&?mdOnRemove",addedMessage:"@?mdAddedMessage",removedMessage:"@?mdRemovedMessage",onSelect:"&?mdOnSelect",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?",deleteButtonLabel:"@?",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay",ngChange:"&?"}}}}(),function(){function e(e,t,n){this.$element=t,this.$attrs=e,this.$timeout=n,this.selectedItem=null,this.searchText="",this.deRegister=[],this.init()}e.$inject=["$attrs","$element","$timeout"],ue.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.init=function(){var e=this,t=this.deRegister,n=this.$element;this.$timeout(function(){t.push(n.find("md-chips").scope().$watchCollection("$mdChipsCtrl.items",function(){e.setupChipsAria(),e.setupAutocompleteAria()}))})},e.prototype.setupChipsAria=function(){var e=this.$element.find("md-chips"),t=e.controller("mdChips");this.removedMessage&&(t.removedMessage=this.removedMessage),this.containerHint&&(t.containerHint=this.containerHint),this.containerEmptyHint&&(e.attr("container-empty-hint",this.containerEmptyHint),t.containerEmptyHint=this.containerEmptyHint),this.deleteHint&&(t.deleteHint=this.deleteHint),this.inputAriaLabel&&(t.inputAriaLabel=this.inputAriaLabel)},e.prototype.setupAutocompleteAria=function(){var e=this.$element.find("md-chips-wrap").find("md-autocomplete").find("input");this.inputAriaDescribedBy&&e.attr("aria-describedby",this.inputAriaDescribedBy),this.inputAriaLabelledBy&&(e.removeAttr("aria-label"),e.attr("aria-labelledby",this.inputAriaLabelledBy))},e.prototype.queryContact=function(e){return this.contactQuery({$query:e})},e.prototype.inputKeydown=function(e){if(this.separatorKeys&&!(this.separatorKeys.indexOf(e.keyCode)<0)){e.stopPropagation(),e.preventDefault();var t=ue.element(e.target).controller("mdAutocomplete");t.select(t.index)}},e.prototype.itemName=function(e){return e[this.contactName]},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)}}(),function(){e.$inject=["$mdTheming","$mdUtil"],ue.module("material.components.chips").directive("mdContactChips",e);var n='      <md-chips class="md-contact-chips"          ng-model="$mdContactChipsCtrl.contacts"          ng-change="$mdContactChipsCtrl.ngChange($mdContactChipsCtrl.contacts)"          md-require-match="$mdContactChipsCtrl.requireMatch"          md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}"          md-separator-keys="$mdContactChipsCtrl.separatorKeys"          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              ng-keydown="$mdContactChipsCtrl.inputKeydown($event)"              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 e(a,s){return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:function(e,o){return function(e,t,n,r){var i=r;s.initOptionalProperties(e,o),a(t),t.attr("tabindex","-1"),n.$observe("mdChipAppendDelay",function(e){i.chipAppendDelay=e})}},scope:{contactQuery:"&mdContacts",placeholder:"@?",secondaryPlaceholder:"@?",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",ngChange:"&?",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay",separatorKeys:"=?mdSeparatorKeys",removedMessage:"@?mdRemovedMessage",inputAriaDescribedBy:"@?inputAriaDescribedby",inputAriaLabelledBy:"@?inputAriaLabelledby",inputAriaLabel:"@?",containerHint:"@?",containerEmptyHint:"@?",deleteHint:"@?"}}}}(),function(){t.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var a=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,l=null;function e(o,a,r){return l=l||Object.keys(o.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css((i={},o=(n=t).hasOwnProperty("color"),ue.forEach(n,function(e,t){var n=c(e),r=-1<t.indexOf("background");i[t]=s(n),r&&!o&&(i.color=s(n,!0))}),i))}catch(e){r.error(e.message)}var n,i,o},getThemeColor:function(e){return s(c(e))},hasTheme:function(e){return ue.isDefined(o.THEMES[e.split("-")[0]])}};function s(e,t){t=t||!1;var n=o.PALETTES[e.palette][e.hue];return n=t?n.contrast:n.value,a.supplant("rgba({0}, {1}, {2}, {3})",[n[0],n[1],n[2],n[3]||e.opacity])}function c(e){var t=e.split("-"),n=ue.isDefined(o.THEMES[t[0]])?t.splice(0,1)[0]:o.defaultTheme();return{theme:n,palette:function(e,t){var n=1<e.length&&-1!==l.indexOf(e[1]),r=e[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(n&&(r=e[0]+"-"+e.splice(1,1)),-1===l.indexOf(r)){var i=o.THEMES[t].colors[r];if(!i)throw new Error(a.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:r}));r=i.name}return r}(t,n),hue:function(e,t){var n=o.THEMES[t].colors;if("hue"!==e[1])return e[1]||n[e[0]in n?e[0]:"primary"].hues.default;var r=parseInt(e.splice(2,1)[0],10);if(r<1||3<r)throw new Error(a.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:r}));if(e[1]="hue-"+r,e[0]in n)return n[e[0]].hues[e[1]];throw new Error(a.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(n).join(", "),usedTheme:e[0]}))}(t,n),opacity:t[2]||1}}}function t(u,o,d,m){return{restrict:"A",require:["^?mdTheme"],compile:function(e,i){var l=function(){var e=i.mdColors,t=-1<e.indexOf("::"),n=!!t||a.test(i.mdColors);i.mdColors=e.replace("::","");var r=ue.isDefined(i.mdColorsWatch);return!t&&!n&&(!r||o.parseAttributeBoolean(i.mdColorsWatch))}();return function(e,n,t,r){var i=r[0],o={},a=function(n){"string"!=typeof n&&(n=""),t.mdColors||(t.mdColors="{}");var r=m(t.mdColors)(e);return i&&Object.keys(r).forEach(function(e){var t=r[e];u.hasTheme(t)||(r[e]=(n||i.$mdTheme)+"-"+t)}),s(r),r},s=function(e){if(!ue.equals(e,o)){var t=Object.keys(o);o.background&&!t.color&&t.push("color"),t.forEach(function(e){n.css(e,"")})}o=e},c=ue.noop;i&&(c=i.registerChanges(function(e){u.applyThemeColors(n,a(e))})),e.$on("$destroy",function(){c()});try{l?e.$watch(a,ue.bind(this,u.applyThemeColors,n),!0):u.applyThemeColors(n,a())}catch(e){d.error(e.message)}}}}}ue.module("material.components.colors",["material.core"]).directive("mdColors",t).service("$mdColors",e)}(),function(){function e(r){return{restrict:"E",controller:["$scope","$element",function(e,t){this.$scope=e,this.$element=t}],link:function(e,t){var n;t.addClass("_md"),r(t),e.$broadcast("$mdContentLoaded",t),n=t[0],ue.element(n).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===n.scrollTop?n.scrollTop=1:n.scrollHeight===n.scrollTop+n.offsetHeight&&(n.scrollTop-=1)))})}}}e.$inject=["$mdTheming"],ue.module("material.components.content",["material.core"]).directive("mdContent",e)}(),ue.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){e.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],ue.module("material.components.datepicker").directive("mdCalendar",function(){return{template:function(e,t){var n=t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"',r='<div ng-switch="calendarCtrl.currentView" '+n+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>';return r},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:e,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0],o=r[1];o.configureNgModel(i)}}});var d=0,t={day:"month",month:"year"};function e(e,t,n,r,i,o,a,s,c){o(e),this.$element=e,this.$scope=t,this.dateUtil=n,this.$mdUtil=r,this.keyCode=i.KEY_CODE,this.$$rAF=a,this.$mdDateLocale=c,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=d++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,s.tabindex||e.attr("tabindex","-1");var l,u=ue.bind(this,this.handleKeyEvent);(l=e.parent().hasClass("md-datepicker-calendar")?ue.element(document.body):e).on("keydown",u),t.$on("$destroy",function(){l.off("keydown",u)}),1===ue.version.major&&ue.version.minor<=4&&this.$onInit()}e.prototype.$onInit=function(){this._mode&&t.hasOwnProperty(this._mode)?(this.currentView=t[this._mode],this.mode=this._mode):(this.currentView=this._currentView||"month",this.mode=null);var e=this.$mdDateLocale;this.minDate&&this.minDate>e.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=e.firstRenderableDate,this.maxDate&&this.maxDate<e.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=e.lastRenderableDate},e.prototype.configureNgModel=function(e){var t=this;t.ngModelCtrl=e,t.$mdUtil.nextTick(function(){t.isInitialized=!0}),e.$render=function(){var e=this.$viewValue;t.$scope.$broadcast("md-calendar-parent-changed",e),t.selectedDate||(t.selectedDate=e),t.displayDate||(t.displayDate=t.selectedDate||t.today)}},e.prototype.setNgModelValue=function(e){var t=this.dateUtil.createDateAtMidnight(e);return this.focus(t),this.$scope.$emit("md-calendar-change",t),this.ngModelCtrl.$setViewValue(t),this.ngModelCtrl.$render(),t},e.prototype.setCurrentView=function(e,t){var n=this;n.$mdUtil.nextTick(function(){n.currentView=e,t&&(n.displayDate=ue.isDate(t)?t:new Date(t))})},e.prototype.focus=function(e){if(this.dateUtil.isValidDate(e)){var t=this.$element[0].querySelector("."+this.FOCUSED_DATE_CLASS);t&&t.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(e,this.currentView),r=document.getElementById(n);r&&(r.classList.add(this.FOCUSED_DATE_CLASS),r.focus(),this.displayDate=e)}else{var i=this.$element[0].querySelector("[ng-switch]");i&&i.focus()}},e.prototype.changeSelectedDate=function(e){var t=this.SELECTED_DATE_CLASS,n=this.$element[0].querySelector("."+t);if(n&&(n.classList.remove(t),n.setAttribute("aria-selected","false")),e){var r=document.getElementById(this.getDateId(e,this.currentView));r&&(r.classList.add(t),r.setAttribute("aria-selected","true"))}this.selectedDate=e},e.prototype.getActionFromKeyEvent=function(e){var t=this.keyCode;switch(e.which){case t.ENTER:return"select";case t.RIGHT_ARROW:return"move-right";case t.LEFT_ARROW:return"move-left";case t.DOWN_ARROW:return e.metaKey?"move-page-down":"move-row-down";case t.UP_ARROW:return e.metaKey?"move-page-up":"move-row-up";case t.PAGE_DOWN:return"move-page-down";case t.PAGE_UP:return"move-page-up";case t.HOME:return"start";case t.END:return"end";default:return null}},e.prototype.handleKeyEvent=function(t){var n=this;this.$scope.$apply(function(){if(t.which==n.keyCode.ESCAPE||t.which==n.keyCode.TAB)return n.$scope.$emit("md-calendar-close"),void(t.which==n.keyCode.TAB&&t.preventDefault());var e=n.getActionFromKeyEvent(t);e&&(t.preventDefault(),t.stopPropagation(),n.$scope.$broadcast("md-calendar-parent-action",e))})},e.prototype.hideVerticalScrollbar=function(r){var i=this,t=r.$element[0],o=t.querySelector(".md-calendar-scroll-mask");function n(){var e=i.width||340,t=i.scrollbarWidth,n=r.calendarScroller;o.style.width=e+"px",n.style.width=e+t+"px",n.style.paddingRight=t+"px"}0<i.width?n():i.$$rAF(function(){var e=r.calendarScroller;i.scrollbarWidth=e.offsetWidth-e.clientWidth,i.width=t.querySelector("table").offsetWidth,n()})},e.prototype.getDateId=function(e,t){if(!t)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,t,e.getFullYear(),e.getMonth(),e.getDate()].join("-")},e.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",function(){e.$$phase||e.$apply(),t()})}}(),function(){t.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],ue.module("material.components.datepicker").directive("mdCalendarMonth",function(){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="'+(e-n)+'"><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="'+n+'"><tr aria-hidden="true" md-force-height="\''+n+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:t,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0],o=r[1];o.initialize(i)}}});var n=265,e=45;function t(e,t,n,r,i,o){this.$element=e,this.$scope=t,this.$animate=n,this.$q=r,this.dateUtil=i,this.dateLocale=o,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var a=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);a.$scope.$apply(function(){a.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){a.calendarCtrl.setCurrentView("year",i.getTimestampFromNode(this))}}t.prototype.initialize=function(e){this.items={length:this.dateUtil.getMonthDistance(e.firstRenderableDate,e.lastRenderableDate)+2},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},t.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},t.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.calendarCtrl.displayDate=e;var n=this;return t.then(function(){n.isMonthTransitionInProgress=!1}),t},t.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},t.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),r=0;r<7;r++){var i=document.createElement("th");i.textContent=t[(r+e)%7],n.appendChild(i)}this.$element.find("thead").append(n)},t.prototype.attachScopeListeners=function(){var n=this;n.$scope.$on("md-calendar-parent-changed",function(e,t){n.calendarCtrl.changeSelectedDate(t),n.changeDisplayDate(t)}),n.$scope.$on("md-calendar-parent-action",ue.bind(this,this.handleKeyEvent))},t.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,r=n.displayDate;if("select"===t)n.setNgModelValue(r);else{var i=null,o=this.dateUtil;switch(t){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 e(e,t){var s=e('<md-icon md-svg-src="'+t.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0],o=r[1],a=r[2];a.calendarCtrl=i,a.monthCtrl=o,a.arrowIcon=s.cloneNode(!0),e.$watch(function(){return a.offset},function(e){ue.isNumber(e)&&a.generateContent()})}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$compile","$$mdSvgRegistry"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],ue.module("material.components.datepicker").directive("mdCalendarMonthBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(e){var t=this.monthCtrl,n=this.calendarCtrl,r=document.createElement("td");if(r.tabIndex=-1,r.classList.add("md-calendar-date"),r.setAttribute("role","gridcell"),e){r.setAttribute("tabindex","-1"),r.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),r.id=n.getDateId(e,"month"),r.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,n.today)&&r.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(e,n.selectedDate)&&(r.classList.add(n.SELECTED_DATE_CLASS),r.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var o=document.createElement("span");o.classList.add("md-calendar-date-selection-indicator"),o.textContent=i,r.appendChild(o),r.addEventListener("click",t.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(e,n.displayDate)&&(this.focusAfterAppend=r)}else r.classList.add("md-calendar-date-disabled"),r.textContent=i}return r},n.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!ue.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},n.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},n.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),r=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(t),o=document.createDocumentFragment(),a=1,s=this.buildDateRow(a);o.appendChild(s);var c=this.offset===this.monthCtrl.items.length-1,l=0,u=document.createElement("td"),d=document.createElement("span"),m=this.calendarCtrl;if(d.textContent=this.dateLocale.monthHeaderFormatter(t),u.appendChild(d),u.classList.add("md-calendar-month-label"),m.maxDate&&n>m.maxDate?u.classList.add("md-calendar-month-label-disabled"):m.mode||(u.addEventListener("click",this.monthCtrl.headerClickHandler),u.setAttribute("data-timestamp",n.getTime()),u.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),u.classList.add("md-calendar-label-clickable"),u.appendChild(this.arrowIcon.cloneNode(!0))),r<=2){u.setAttribute("colspan","7");var h=this.buildDateRow();if(h.appendChild(u),o.insertBefore(h,s),c)return o}else l=3,u.setAttribute("colspan","3"),s.appendChild(u);for(var f=l;f<r;f++)s.appendChild(this.buildDateCell());for(var p=r,g=n,v=1;v<=i;v++){if(7===p){if(c)return o;p=0,a++,s=this.buildDateRow(a),o.appendChild(s)}g.setDate(v);var b=this.buildDateCell(g);s.appendChild(b),p++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;o.childNodes.length<6;){for(var $=this.buildDateRow(),y=0;y<7;y++)$.appendChild(this.buildDateCell());o.appendChild($)}return o},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],ue.module("material.components.datepicker").directive("mdCalendarYear",function(){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="'+n+'"><tr aria-hidden="true" md-force-height="\''+n+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarYear"],controller:e,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0],o=r[1];o.initialize(i)}}});var n=88;function e(e,t,n,r,i,o){this.$element=e,this.$scope=t,this.$animate=n,this.$q=r,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=o;var a=this;this.cellClickHandler=function(){a.onTimestampSelected(i.getTimestampFromNode(this))}}e.prototype.initialize=function(e){this.items={length:this.dateUtil.getYearDistance(e.firstRenderableDate,e.lastRenderableDate)+1},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},e.prototype.getFocusedYearIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getYearDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},e.prototype.changeDate=function(e){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(e)&&!this.isMonthTransitionInProgress){var t=this,n=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,n.then(function(){t.isMonthTransitionInProgress=!1})}},e.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*n}return this.$q.when()},e.prototype.handleKeyEvent=function(e,t){var n=this,r=n.calendarCtrl,i=r.displayDate;if("select"===t)n.changeDate(i).then(function(){n.onTimestampSelected(i)});else{var o=null,a=n.dateUtil;switch(t){case"move-right":o=a.incrementMonths(i,1);break;case"move-left":o=a.incrementMonths(i,-1);break;case"move-row-down":o=a.incrementMonths(i,6);break;case"move-row-up":o=a.incrementMonths(i,-6)}if(o){var s=r.minDate?a.getFirstDateOfMonth(r.minDate):null,c=r.maxDate?a.getFirstDateOfMonth(r.maxDate):null;o=a.getFirstDateOfMonth(n.dateUtil.clampDate(o,s,c)),n.changeDate(o).then(function(){r.focus(o)})}}},e.prototype.attachScopeListeners=function(){var n=this;n.$scope.$on("md-calendar-parent-changed",function(e,t){n.calendarCtrl.changeSelectedDate(t?n.dateUtil.getFirstDateOfMonth(t):t),n.changeDate(t)}),n.$scope.$on("md-calendar-parent-action",ue.bind(n,n.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(e)}):t.setCurrentView("month",e)}}(),function(){function e(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}e.$inject=["$element","$$mdDateUtil","$mdDateLocale"],ue.module("material.components.datepicker").directive("mdCalendarYearBody",function(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:e,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0],o=r[1],a=r[2];a.calendarCtrl=i,a.yearCtrl=o,e.$watch(function(){return a.offset},function(e){ue.isNumber(e)&&a.generateContent()})}}}),e.prototype.generateContent=function(){var e=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},e.prototype.buildMonthCell=function(e,t){var n=this.calendarCtrl,r=this.yearCtrl,i=this.buildBlankCell(),o=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(o)),i.id=n.getDateId(o,"year"),i.setAttribute("data-timestamp",String(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[t];if(!this.dateUtil.isMonthWithinRange(o,n.minDate,n.maxDate)||ue.isFunction(this.calendarCtrl.dateFilter)&&!this.calendarCtrl.dateFilter(o))i.classList.add("md-calendar-date-disabled"),i.textContent=a;else{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)}return i},e.prototype.buildBlankCell=function(){var e=document.createElement("td");return e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell"),e.setAttribute("tabindex","-1"),e},e.prototype.buildCalendarForYear=function(e){var t,n=e.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),t=0;t<6;t++)i.appendChild(this.buildMonthCell(n,t));r.appendChild(i);var a=document.createElement("tr");for(a.appendChild(this.buildBlankCell()),t=6;t<12;t++)a.appendChild(this.buildMonthCell(n,t));return r.appendChild(a),r}}(),ue.module("material.components.datepicker").config(["$provide",function(e){function t(){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.isDateComplete=null,this.msgCalendar="",this.msgOpenCalendar=""}(t.prototype.$get=function(e,i){for(var t=e.DATETIME_FORMATS.SHORTDAY.map(function(e){return e.substring(0,1)}),n=Array(32),r=1;r<=31;r++)n[r]=r;var o=new Date(1880,0,1),a=new Date(o.getFullYear()+250,0,1),s={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||t,dates:this.dates||n,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||function(e,t){if(!e)return"";var n=e.toLocaleTimeString(),r=e;return 0!==e.getHours()||-1===n.indexOf("11:")&&-1===n.indexOf("23:")||(r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),i("date")(r,"M/d/yyyy",t)},parseDate:this.parseDate||function(e){return new Date(e)},isDateComplete:this.isDateComplete||function(e){return e=e.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ .,]+|[/-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(e)},monthHeaderFormatter:this.monthHeaderFormatter||function(e){return s.shortMonths[e.getMonth()]+" "+e.getFullYear()},monthFormatter:this.monthFormatter||function(e){return s.months[e.getMonth()]+" "+e.getFullYear()},weekNumberFormatter:this.weekNumberFormatter||function(e){return"Week "+e},longDateFormatter:this.longDateFormatter||function(e){return[s.days[e.getDay()],s.months[e.getMonth()],s.dates[e.getDate()],e.getFullYear()].join(" ")},msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||o,lastRenderableDate:this.lastRenderableDate||a};return s}).$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}]),ue.module("material.components.datepicker").factory("$$mdDateUtil",function(){return{getFirstDateOfMonth:n,getNumberOfDaysInMonth:i,getDateInNextMonth:r,getDateInPreviousMonth:o,isInNextMonth:function(e,t){return a(r(e),t)},isInPreviousMonth:function(e,t){var n=o(e);return a(t,n)},getDateMidpoint:function(e,t){return u((e.getTime()+t.getTime())/2)},isSameMonthAndYear:a,getWeekOfMonth:function(e){var t=n(e);return Math.floor((t.getDay()+e.getDate()-1)/7)},incrementDays:function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},incrementMonths:s,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),i(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&a(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:c,setDateTimeToMidnight:l,createDateAtMidnight:u,isDateWithinRange:function(e,t,n){var r=u(e),i=c(t)?u(t):null,o=c(n)?u(n):null;return(!i||i<=r)&&(!o||r<=o)},incrementYears:function(e,t){return s(e,12*t)},getYearDistance:function(e,t){return t.getFullYear()-e.getFullYear()},clampDate:function(e,t,n){var r=e;return t&&e<t&&(r=new Date(t.getTime())),n&&n<e&&(r=new Date(n.getTime())),r},getTimestampFromNode:function(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))},isMonthWithinRange:function(e,t,n){var r=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=r)&&(!n||n.getFullYear()>i||n.getMonth()>=r)}};function n(e){return new Date(e.getFullYear(),e.getMonth(),1)}function i(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function r(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function o(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function a(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function s(e,t){var n=new Date(e.getFullYear(),e.getMonth()+t,1),r=i(n);return r<e.getDate()?n.setDate(r):n.setDate(e.getDate()),n}function c(e){return e&&e.getTime&&!isNaN(e.getTime())}function l(e){c(e)&&e.setHours(0,0,0,0)}function u(e){var t;return l(t=ue.isUndefined(e)?new Date:new Date(e)),t}}),function(){function e(a,d,m,h){return{template:function(e,t){var n=t.mdHideIcons,r=t.ariaLabel||t.mdPlaceholder,i="all"===n||"calendar"===n?"":'<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="'+a.mdCalendar+'"></md-icon></md-button>',o="";return"all"!==n&&"triangle"!==n&&(o='<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)),i+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(r?'aria-label="'+r+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+o+'</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-mode="{{::ctrl.mode}}" 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",mode:"@mdMode",dateFilter:"=mdDateFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:t,controllerAs:"ctrl",bindToController:!0,link:function(e,t,n,r){var i=r[0],o=r[1],a=r[2],s=r[3],c=d.parseAttributeBoolean(n.mdNoAsterisk);if(o.configureNgModel(i,a,h),a){var l=t[0].querySelector(".md-errors-spacer");l&&t.after(ue.element("<div>").append(l)),a.setHasPlaceholder(n.mdPlaceholder),a.input=t,a.element.addClass(f).toggleClass(p,"calendar"!==n.mdHideIcons&&"all"!==n.mdHideIcons),a.label?c||n.$observe("required",function(e){a.label.toggleClass("md-required",!!e)}):m.expect(t,"aria-label",n.mdPlaceholder),e.$watch(a.isErrorGetter||function(){return i.$invalid&&(i.$touched||s&&s.$submitted)},a.setInvalid)}else if(s)var u=e.$watch(function(){return s.$submitted},function(e){e&&(o.updateErrorState(),u())})}}}t.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter","$timeout"],e.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],ue.module("material.components.datepicker").directive("mdDatepicker",e);var a="md-datepicker-invalid",d="md-datepicker-open",f="_md-datepicker-floating-label",p="_md-datepicker-has-calendar-icon",s="_md-datepicker-has-triangle-icon",h=/ipad|iphone|ipod|android/i;function t(e,t,n,r,i,o,a,s,c,l,u,d){this.$window=r,this.dateUtil=c,this.$mdConstant=i,this.$mdUtil=a,this.$$rAF=l,this.$mdDateLocale=s,this.$timeout=d,this.documentElement=ue.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=ue.element(this.inputElement),this.inputContainer=t[0].querySelector(".md-datepicker-input-container"),this.calendarPane=t[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=t[0].querySelector(".md-datepicker-button"),this.inputMask=ue.element(t[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=t,this.$attrs=n,this.$scope=e,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(t[0].disabled||ue.isString(n.disabled)),this.isCalendarOpen=!1,this.openOnFocus=n.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+a.nextUid(),this.bodyClickHandler=ue.bind(this,this.handleBodyClick),this.windowEventName=h.test(navigator.userAgent||navigator.vendor||j.opera)?"orientationchange":"resize",this.windowEventHandler=a.debounce(ue.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=ue.bind(this,this.handleWindowBlur),this.ngDateFilter=u("date"),this.leftMargin=20,this.topMargin=null,n.tabindex?(this.ngInputElement.attr("tabindex",n.tabindex),n.$set("tabindex",null)):n.$set("tabindex","-1"),n.$set("aria-owns",this.calendarPaneId),o(t),o(ue.element(this.calendarPane));var m=this;e.$on("$destroy",function(){m.detachCalendarPane()}),n.mdIsOpen&&e.$watch("ctrl.isOpen",function(e){e?m.openCalendarPane({target:m.inputElement}):m.closeCalendarPane()}),1===ue.version.major&&ue.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?ue.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},t.prototype.configureNgModel=function(e,t,n){this.ngModelCtrl=e,this.mdInputContainer=t,this.$attrs.$set("type","date"),n[0].link.pre(this.$scope,{on:ue.noop,val:ue.noop,0:{}},this.$attrs,[e]);var r=this;r.ngModelCtrl.$formatters.push(function(e){var t=ue.isDefined(e)?e:null;if(!(e instanceof Date)&&(t=Date.parse(e),!isNaN(t)&&ue.isNumber(t)&&(e=new Date(t)),e&&!(e 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 e);return r.onExternalChange(e),e}),e.$viewChangeListeners.unshift(ue.bind(this,this.updateErrorState));var i=r.$mdUtil.getModelOption(e,"updateOn");i&&this.ngInputElement.on(i,ue.bind(this.$element,this.$element.triggerHandler,i))},t.prototype.attachChangeListeners=function(){var n=this;n.$scope.$on("md-calendar-change",function(e,t){n.setModelValue(t),n.onExternalChange(t),n.closeCalendarPane()}),n.ngInputElement.on("input",ue.bind(n,n.resizeInputElement));var e=ue.isDefined(this.debounceInterval)?this.debounceInterval:500;n.ngInputElement.on("input",n.$mdUtil.debounce(n.handleInputEvent,e,n))},t.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",ue.bind(t,t.openCalendarPane)),t.ngInputElement.on("click",function(e){e.stopPropagation()}),t.ngInputElement.on("pointerdown",function(e){e.target&&e.target.setPointerCapture&&e.target.setPointerCapture(e.pointerId)}),ue.element(t.$window).on("blur",t.windowBlurHandler),n.$on("$destroy",function(){ue.element(t.$window).off("blur",t.windowBlurHandler)})),n.$on("md-calendar-close",function(){t.closeCalendarPane()})},t.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||""}})},t.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton&&(this.calendarButton.disabled=e)},t.prototype.updateErrorState=function(e){var t=e||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(t)){if(t=this.dateUtil.createDateAtMidnight(t),this.dateUtil.isValidDate(this.minDate)){var n=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n<=t)}if(this.dateUtil.isValidDate(this.maxDate)){var r=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",t<=r)}ue.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(t))}else this.ngModelCtrl.$setValidity("valid",null==t);var i=this.inputElement.value,o=this.locale.parseDate(i);!this.isInputValid(i,o)&&this.ngModelCtrl.$valid&&this.ngModelCtrl.$setValidity("valid",null==t),ue.element(this.inputContainer).toggleClass(a,!this.ngModelCtrl.$valid)},t.prototype.isInputValid=function(e,t){return""===e||this.dateUtil.isValidDate(t)&&this.locale.isDateComplete(e)&&this.isDateEnabled(t)},t.prototype.clearErrorState=function(){this.inputContainer.classList.remove(a),["mindate","maxdate","filtered","valid"].forEach(function(e){this.ngModelCtrl.$setValidity(e,!0)},this)},t.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},t.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.locale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t),this.isInputValid(e,t)&&(this.setModelValue(t),this.date=t),this.updateErrorState(t)},t.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&&(!ue.isFunction(this.dateFilter)||this.dateFilter(e))},t.prototype.attachCalendarPane=function(){var e=this.calendarPane,t=document.body;e.style.transform="",this.$element.addClass(d),this.mdInputContainer&&this.mdInputContainer.element.addClass(d),ue.element(t).addClass("md-datepicker-is-showing");var n=this.inputContainer.getBoundingClientRect(),r=t.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var i=n.top-r.top-this.topMargin,o=n.left-r.left-this.leftMargin,a=r.top<0&&0==document.body.scrollTop?-r.top:document.body.scrollTop,s=r.left<0&&0==document.body.scrollLeft?-r.left:document.body.scrollLeft,c=a+this.$window.innerHeight,l=s+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:n.width-1+"px",height:n.height-2+"px"}),l<o+360){if(0<l-360)o=l-360;else{o=s;var u=this.$window.innerWidth/360;e.style.transform="scale("+u+")"}e.classList.add("md-datepicker-pos-adjusted")}c<i+368&&a<c-368&&(i=c-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=o+"px",e.style.top=i+"px",document.body.appendChild(e),this.$$rAF(function(){e.classList.add("md-pane-open")})},t.prototype.detachCalendarPane=function(){this.$element.removeClass(d),this.mdInputContainer&&this.mdInputContainer.element.removeClass(d),ue.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)},t.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 t=this;this.$mdUtil.nextTick(function(){t.documentElement.on("click touchstart",t.bodyClickHandler)},!1),j.addEventListener(this.windowEventName,this.windowEventHandler)}},t.prototype.closeCalendarPane=function(){if(this.isCalendarOpen){var e=this;e.detachCalendarPane(),e.ngModelCtrl.$setTouched(),e.evalAttr("ngBlur"),e.documentElement.off("click touchstart",e.bodyClickHandler),j.removeEventListener(e.windowEventName,e.windowEventHandler),e.calendarPaneOpenedFrom.focus(),e.calendarPaneOpenedFrom=null,e.openOnFocus?e.$timeout(t):t()}function t(){e.isCalendarOpen=e.isOpen=!1}},t.prototype.getCalendarCtrl=function(){return ue.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},t.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focus()},!1)},t.prototype.setFocused=function(e){e||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(e?"ngFocus":"ngBlur"),this.isFocused=e},t.prototype.handleBodyClick=function(e){this.isCalendarOpen&&(this.$mdUtil.getClosest(e.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest())},t.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},t.prototype.evalAttr=function(e){this.$attrs[e]&&this.$scope.$parent.$eval(this.$attrs[e])},t.prototype.setModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t))},t.prototype.onExternalChange=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.date=e,this.inputElement.value=this.locale.formatDate(e,t),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.updateErrorState()}}(),function(){function e(e,t,o){return{restrict:"E",link:function(r,i){i.addClass("_md"),t(i),e(function(){var e,t=i[0].querySelector("md-dialog-content");function n(){i.toggleClass("md-content-overflow",t.scrollHeight>t.clientHeight)}t&&(e=t.getElementsByTagName("img"),n(),ue.element(e).on("load",n)),r.$on("$destroy",function(){o.destroy(i)})})}}}function t(e){var y,E;return n.$inject=["$mdDialog","$mdConstant"],r.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:r}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:t});function t(){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}}" ng-required="dialog.required">',"    </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\'"               ng-disabled="dialog.required && !dialog.result">',"      {{ dialog.ok }}","    </md-button>","  </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:n,controllerAs:"dialog",bindToController:!0}}function n(r,i){this.$onInit=function(){var n="prompt"==this.$type;n&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){r.hide(!n||this.result)},this.abort=function(){r.cancel()},this.keypress=function(e){var t=n&&this.required&&!ue.isDefined(this.result);e.keyCode!==i.KEY_CODE.ENTER||t||r.hide(this.result)}}}function r(m,c,h,f,l,u,p,d,g,a,t,s,v){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=ue.element(t.targetEvent.target));var n=e&&e.controller("mdTheme");if(t.hasTheme=!!n,!t.hasTheme)return;t.themeWatch=n.$shouldWatch;var r=t.theme||n.$mdTheme;r&&(t.scope.theme=r);var i=n.registerChanges(function(e){t.scope.theme=e,t.themeWatch||i()})}(e)},onShow:function(e,t,n,r){ue.element(u[0].body).addClass("md-dialog-is-showing");var i=t.find("md-dialog");if(i.hasClass("ng-cloak")){g.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",t[0])}return function(e){function t(e,t){var n=ue.element(e||{});if(n&&n.length){var r=ue.isFunction(n[0].getBoundingClientRect);return ue.extend(t||{},{element:r?n:de,bounds:r?n[0].getBoundingClientRect():ue.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:ue.bind(n,n.focus)})}}function n(e,t){return ue.isString(e)&&(e=u[0].querySelector(e)),ue.element(e||t)}e.origin=ue.extend({element:null,bounds:null,focus:ue.noop},e.origin||{}),e.parent=n(e.parent,d),e.closeTo=t(n(e.closeTo)),e.openFrom=t(n(e.openFrom)),e.targetEvent&&(e.origin=t(e.targetEvent.target,e.origin),e.originInteraction=v.getLastInteractionType())}(n),function(e,t){var n="alert"===t.$type?"alertdialog":"dialog",r=e.find("md-dialog-content"),i=e.attr("id"),o="dialogContent_"+(i||h.nextUid());e.attr({role:n,tabIndex:"-1"}),0===r.length&&(r=e,i&&(o=i)),r.attr("id",o),e.attr("aria-describedby",o),t.ariaLabel?c.expect(e,"aria-label",t.ariaLabel):c.expectAsync(e,"aria-label",function(){if(t.title)return t.title;var e=r.text().split(/\s+/);return 3<e.length&&(e=e.slice(0,3).concat("...")),e.join(" ")}),(y=document.createElement("div")).classList.add("md-dialog-focus-trap"),y.tabIndex=0,E=y.cloneNode(!1);var a=function(){e.focus()};y.addEventListener("focus",a),E.addEventListener("focus",a),e[0].parentNode.insertBefore(y,e[0]),e.after(E)}(i,n),o=e,a=t,s=n,s.disableParentScroll&&(s.restoreScroll=h.disableScrollAround(a,s.parent)),s.hasBackdrop&&(s.backdrop=h.createBackdrop(o,"md-dialog-backdrop md-opaque"),l.enter(s.backdrop,s.parent)),s.hideBackdrop=function(e){s.backdrop&&(e?s.backdrop.remove():l.leave(s.backdrop)),s.disableParentScroll&&(s.restoreScroll&&s.restoreScroll(),delete s.restoreScroll),s.hideBackdrop=null},function(e,t){var n=ue.element(p),r=h.debounce(function(){b(e,t)},60),i=[],o=function(){var e="alert"==t.$type?m.hide:m.cancel;h.nextTick(e,!0)};if(t.escapeToClose){var a=t.parent,s=function(e){e.keyCode===f.KEY_CODE.ESCAPE&&(e.stopImmediatePropagation(),e.preventDefault(),o())};e.on("keydown",s),a.on("keydown",s),i.push(function(){e.off("keydown",s),a.off("keydown",s)})}if(n.on("resize",r),i.push(function(){n.off("resize",r)}),t.clickOutsideToClose){var c,l=e,u=function(e){c=e.target},d=function(e){c===l[0]&&e.target===l[0]&&(e.stopPropagation(),e.preventDefault(),o())};l.on("mousedown",u),l.on("mouseup",d),i.push(function(){l.off("mousedown",u),l.off("mouseup",d)})}t.deactivateListeners=function(){i.forEach(function(e){e()}),t.deactivateListeners=null}}(t,n),function(e,t){t.parent.append(e),t.reverseContainerStretch=b(e,t);var n=e.find("md-dialog"),r=h.dom.animator,i=r.calculateZoomToOrigin,o={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},a=r.toTransformCss(i(n,t.openFrom||t.origin)),s=r.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),r.translate3d(n,a,s,o).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(o={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},a=s,s=r.toTransformCss(i(n,t.closeTo)),r.translate3d(n,a,s,o)):e(s=r.toTransformCss(i(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([o.transitionOutClass,o.transitionInClass].join(" ")),r.translate3d(n,s,r.toTransformCss(""),{})},!0})}(t,n).then(function(){!function(e,t){var r=!0;function n(e){for(var t=function(e){for(var t=[];e.parentNode;){if(e===document.body)return t;for(var n=e.parentNode.children,r=0;r<n.length;r++)e===n[r]||$(n[r],["SCRIPT","STYLE"])||n[r].hasAttribute("aria-live")||t.push(n[r]);e=e.parentNode}return t}(e),n=0;n<t.length;n++)t[n].setAttribute("aria-hidden",r)}n(e[0]),t.unlockScreenReader=function(){r=!1,n(e[0]),t.unlockScreenReader=null}}(t,n),t[0].querySelector(".md-actions")&&g.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>."),function(){if(n.focusOnOpen){var e=h.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||i;e.focus()}}()});var o,a,s},onShowing:function(e,t,n,r){if(r){var i=r.htmlContent||n.htmlContent||"",o=r.textContent||n.textContent||r.content||n.content||"";if(i&&!a.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}},onRemove:function(e,t,n){n.deactivateListeners(),n.unlockScreenReader(),n.hideBackdrop(n.$destroy),y&&y.parentNode&&y.parentNode.removeChild(y);E&&E.parentNode&&E.parentNode.removeChild(E);return n.$destroy?i():(r=n,r.reverseAnimate().then(function(){r.contentElement&&r.clearAnimate()})).then(i);var r;function i(){ue.element(u[0].body).removeClass("md-dialog-is-showing"),n.contentElement&&n.reverseContainerStretch(),n.cleanupElement(),n.$destroy||"keyboard"!==n.originInteraction||n.origin.focus()}},clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n,r=s.startSymbol(),i=s.endSymbol(),o=r+(t.themeWatch?"":"::")+"theme"+i;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+o+'"':"")+">"+(n=e,t.autoWrap&&!/<\/md-dialog>/g.test(n)?"<md-dialog>"+(n||"")+"</md-dialog>":n||"")+"</div>"}};function b(e,t){var n="fixed"==p.getComputedStyle(u[0].body).position,r=t.backdrop?p.getComputedStyle(t.backdrop[0]):null,i=r?Math.min(u[0].body.clientHeight,Math.ceil(Math.abs(parseInt(r.height,10)))):0,o={top:e.css("top"),height:e.css("height")},a=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?a:0)+"px",height:i?i+"px":"100%"}),function(){e.css(o)}}function $(e,t){if(-1!==t.indexOf(e.nodeName))return!0}}}e.$inject=["$$rAF","$mdTheming","$mdDialog"],t.$inject=["$$interimElementProvider"],ue.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",t)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],ue.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){function e(r){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,t){var n=e.children();r.prefixer().hasAttribute(n,"ng-repeat")?n.addClass("md-fab-action-item"):n.wrap('<div class="md-fab-action-item">')}}}e.$inject=["$mdUtil"],ue.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}(),function(){function e(t,o,a,s,c,i){var l,u=this,e=0;function n(e){var t,n,r;"click"==e.type&&(n=(t=e).target,s.getClosest(n,"md-fab-trigger")&&u.toggle(),r=t.target,s.getClosest(r,"md-fab-actions")&&u.close()),"focusout"!=e.type||l||(l=i(function(){u.close()},100,!1)),"focusin"==e.type&&l&&(i.cancel(l),l=null)}function d(){u.currentActionIndex=-1}function m(){0<o[0].scrollHeight?a.addClass(o,"_md-animations-ready").then(function(){o.removeClass("md-animations-waiting")}):e<10&&(i(m,100),e+=1)}function h(){o.off("keydown",p),ue.element(document).off("click touchend",f)}function f(e){if(e.target){var t=s.getClosest(e.target,"md-fab-trigger"),n=s.getClosest(e.target,"md-fab-actions");t||n||u.close()}}function p(e){switch(e.which){case c.KEY_CODE.ESCAPE:return u.close(),e.preventDefault(),!1;case c.KEY_CODE.LEFT_ARROW:return i=e,"left"===u.direction?v(i):g(i),!1;case c.KEY_CODE.UP_ARROW:return r=e,"down"===u.direction?g(r):v(r),!1;case c.KEY_CODE.RIGHT_ARROW:return n=e,"left"===u.direction?g(n):v(n),!1;case c.KEY_CODE.DOWN_ARROW:return t=e,"up"===u.direction?g(t):v(t),!1}var t,n,r,i}function g(e){r(e,-1)}function v(e){r(e,1)}function r(e,t){var n,r=(n=b()[0].querySelectorAll(".md-fab-action-item"),ue.forEach(n,function(e){ue.element(ue.element(e).children()[0]).attr("tabindex",-1)}),n);u.currentActionIndex=u.currentActionIndex+t,u.currentActionIndex=Math.min(r.length-1,u.currentActionIndex),u.currentActionIndex=Math.max(0,u.currentActionIndex);var i=ue.element(r[u.currentActionIndex]).children()[0];ue.element(i).attr("tabindex",0),i.focus(),e.preventDefault(),e.stopImmediatePropagation()}function b(){return o.find("md-fab-actions")}u.open=function(){t.$evalAsync("vm.isOpen = true")},u.close=function(){t.$evalAsync("vm.isOpen = false"),o.find("md-fab-trigger")[0].focus()},u.toggle=function(){t.$evalAsync("vm.isOpen = !vm.isOpen")},u.$onInit=function(){var e,r,i;u.direction=u.direction||"down",u.isOpen=u.isOpen||!1,d(),o.addClass("md-animations-waiting"),e=["click","focusin","focusout"],ue.forEach(e,function(e){o.on(e,n)}),t.$on("$destroy",function(){ue.forEach(e,function(e){o.off(e,n)}),h()}),t.$watch("vm.direction",function(e,t){a.removeClass(o,"md-"+t),a.addClass(o,"md-"+e),d()}),t.$watch("vm.isOpen",function(e){d(),r&&i||(r=o.find("md-fab-trigger"),i=b()),e?(o.on("keydown",p),s.nextTick(function(){ue.element(document).on("click touchend",f)})):h();var t=e?"md-is-open":"",n=e?"":"md-is-open";r.attr("aria-haspopup",!0),r.attr("aria-expanded",e),i.attr("aria-hidden",!e),a.setClass(o,t,n)}),m()},1===ue.version.major&&ue.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],ue.module("material.components.fabShared",["material.core"]).controller("MdFabController",e)}(),function(){e.$inject=["$timeout"],t.$inject=["$timeout"];var n=300;function e(t){function r(e){t(e,n,!1)}function i(e){if(!e.hasClass("md-animations-waiting")||e.hasClass("_md-animations-ready")){var t=e[0],c=e.controller("mdFabSpeedDial"),r=t.querySelectorAll(".md-fab-action-item"),l=t.querySelector("md-fab-trigger"),n=t.querySelector("._md-css-variables"),i=parseInt(j.getComputedStyle(n).zIndex);ue.forEach(r,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=r.length-t+i}),l.style.zIndex=i+r.length+1,c.isOpen||ue.forEach(r,function(e,t){var n,r,i=e.style,o=(l.clientHeight-e.clientHeight)/2,a=(l.clientWidth-e.clientWidth)/2;switch(c.direction){case"up":n=e.scrollHeight*(t+1)+o,r="Y";break;case"down":n=-(e.scrollHeight*(t+1)+o),r="Y";break;case"left":n=e.scrollWidth*(t+1)+a,r="X";break;case"right":n=-(e.scrollWidth*(t+1)+a),r="X"}var s="translate"+r+"("+n+"px)";i.transform=i.webkitTransform=s})}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(i(e),r(n)):n()},removeClass:function(e,t,n){i(e),r(n)}}}function t(t){function r(e){t(e,n,!1)}function i(e){var t=e[0],i=e.controller("mdFabSpeedDial"),o=t.querySelectorAll(".md-fab-action-item"),n=t.querySelector("._md-css-variables"),a=parseInt(j.getComputedStyle(n).zIndex);ue.forEach(o,function(e,t){var n=e.style,r=65*t;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-t+a})}return{addClass:function(e,t,n){i(e),r(n)},removeClass:function(e,t,n){i(e),r(n)}}}ue.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",function(){return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:function(e,t){t.prepend('<div class="_md-css-variables"></div>')}}}).animation(".md-fling",e).animation(".md-scale",t).service("mdFabSpeedDialFlingAnimation",e).service("mdFabSpeedDialScaleAnimation",t)}(),function(){function e(){function r(e,t,n){if(t){var r=e[0],i=e.controller("mdFabToolbar"),o=r.querySelector(".md-fab-toolbar-background"),a=r.querySelector("md-fab-trigger button"),s=r.querySelector("md-toolbar"),c=r.querySelector("md-fab-trigger button md-icon"),l=e.find("md-fab-actions").children();if(a&&o){var u=j.getComputedStyle(a).getPropertyValue("background-color"),d=r.offsetWidth,m=(r.offsetHeight,d/a.offsetWidth*2);o.style.backgroundColor=u,o.style.borderRadius=d+"px",i.isOpen?(s.style.pointerEvents="inherit",o.style.width=a.offsetWidth+"px",o.style.height=a.offsetHeight+"px",o.style.transform="scale("+m+")",o.style.transitionDelay="0ms",c&&(c.style.transitionDelay=".3s"),ue.forEach(l,function(e,t){e.style.transitionDelay=25*(l.length-t)+"ms"})):(s.style.pointerEvents="none",o.style.transform="scale(1)",o.style.top="0",e.hasClass("md-right")&&(o.style.left="0",o.style.right=null),e.hasClass("md-left")&&(o.style.right="0",o.style.left=null),o.style.transitionDelay="200ms",c&&(c.style.transitionDelay="0ms"),ue.forEach(l,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,n){r(e,t),n()},removeClass:function(e,t,n){r(e,t),n()}}}ue.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",function(){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:function(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}}}).animation(".md-fab-toolbar",e).service("mdFabToolbarAnimation",e)}(),function(){function e(h,v,b,$){return{restrict:"E",controller:t,scope:{mdOnLayout:"&"},link:function(o,a,s,t){a.addClass("_md"),a.attr("role","list"),t.layoutDelegate=function(e){var r=[].filter.call(a.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed}),i={tileSpans:(t=r,[].map.call(t,function(e){var t=ue.element(e).controller("mdGridTile");return{row:parseInt($.getResponsiveAttribute(t.$attrs,"md-rowspan"),10)||1,col:parseInt($.getResponsiveAttribute(t.$attrs,"md-colspan"),10)||1}})),colCount:function(){var e=parseInt($.getResponsiveAttribute(s,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}(),rowMode:d(),rowHeight:function(){var e=$.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(d()){case"fixed":return m(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}(),gutter:m($.getResponsiveAttribute(s,"md-gutter")||1)};var t;if(!e&&ue.equals(i,c))return;var n=b(i.colCount,i.tileSpans,r).map(function(e,n){return{grid:{element:a,style:function(e,t,n,r,i){var o={};switch(r){case"fixed":o.height=g({unit:i,span:t,gutter:n}),o.paddingBottom="";break;case"ratio":var a=1===e?0:(e-1)/e,s=1/e*100,c=s*(1/i),l=f({share:c,gutterShare:a,gutter:n});o.height="",o.paddingBottom=g({unit:l,span:t,gutter:n})}return o}(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,t){return{element:ue.element(r[t]),style:function(e,t,n,r,i,o,a){var s=1/n*100,c=(n-1)/n,l=f({share:s,gutterShare:c,gutter:i}),u="rtl"!=document.dir&&"rtl"!=document.body.dir?{left:p({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:p({unit:l,offset:e.col,gutter:i}),width:g({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":u.top=p({unit:a,offset:e.row,gutter:i}),u.height=g({unit:a,span:t.row,gutter:i});break;case"ratio":var d=s/a,m=f({share:d,gutterShare:c,gutter:i});u.paddingTop=g({unit:m,span:t.row,gutter:i}),u.marginTop=p({unit:m,offset:e.row,gutter:i});break;case"fit":var h=(r-1)/r;m=f({share:d=1/r*100,gutterShare:h,gutter:i}),u.top=p({unit:m,offset:e.row,gutter:i}),u.height=g({unit:m,span:t.row,gutter:i})}return u}(e.position,e.spans,i.colCount,n,i.gutter,i.rowMode,i.rowHeight)}})}}).reflow().performance();o.mdOnLayout({$event:{performance:n}}),c=i};var c,n=ue.bind(t,t.invalidateLayout),r=function(){for(var e in v.MEDIA)$(e),$.getQuery(v.MEDIA[e]).addListener(n);return $.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],s,i)}();function i(e){null==e?t.invalidateLayout():$(e)&&t.invalidateLayout()}o.$on("$destroy",function(){for(var e in t.layoutDelegate=ue.noop,r(),v.MEDIA)$.getQuery(v.MEDIA[e]).removeListener(n)});var l=h.startSymbol(),u=h.endSymbol();function e(e){return l+e+u}var f=h(e("share")+"% - ("+e("gutter")+" * "+e("gutterShare")+")"),p=h("calc(("+e("unit")+" + "+e("gutter")+") * "+e("offset")+")"),g=h("calc(("+e("unit")+") * "+e("span")+" + ("+e("span")+" - 1) * "+e("gutter")+")");function d(){var e=$.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function m(e){return/\D$/.test(e)?e:e+"px"}}}}function t(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=ue.noop}function n(c){var l=t;return e.animateWith=function(e){l=ue.isFunction(e)?e:t},e;function e(e,t){var n,r,i,o,a,s;return o=c.time(function(){r=function(i,e){var o=0,a=0,s=function(){for(var e=[],t=0;t<i;t++)e.push(0);return e}();return{positioning:e.map(function(e,t){return{spans:e,position:function(e,t){if(e.col>i)throw"md-grid-list: Tile at position "+t+" has a colspan ("+e.col+") that exceeds the column count ("+i+")";var n=0,r=0;for(;r-n<e.col;)i<=o?c():-1!==(n=s.indexOf(0,o))&&-1!==(r=u(n+1))?o=r+1:(n=r=0,c());return l(n,e.col,e.row),o=n+e.col,{col:n,row:a}}(e,t)}}),rowCount:a+Math.max.apply(Math,s)};function c(){a++,l(o=0,i,-1)}function l(e,t,n){for(var r=e;r<e+t;r++)s[r]=Math.max(s[r]+n,0)}function u(e){var t;for(t=e;t<s.length;t++)if(0!==s[t])return t;if(t===s.length)return t}}(e,t)}),n={layoutInfo:function(){return r},map:function(t){return a=c.time(function(){var e=n.layoutInfo();i=t(e.positioning,e.rowCount)}),n},reflow:function(e){return s=c.time(function(){(e||l)(i.grid,i.tiles)}),n},performance:function(){return{tileCount:t.length,layoutTime:o,mapTime:a,reflowTime:s,totalTime:o+a+s}}}}function t(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}}function r(o){return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:function(e,t,n,r){t.attr("role","listitem");var i=o.watchResponsiveAttributes(["md-colspan","md-rowspan"],n,ue.bind(r,r.invalidateLayout));r.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,i(),r.invalidateLayout()}),ue.isDefined(e.$parent.$index)&&e.$watch(function(){return e.$parent.$index},function(e,t){e!==t&&r.invalidateTiles()})}}}function i(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}t.$inject=["$mdUtil"],n.$inject=["$mdUtil"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],r.$inject=["$mdMedia"],ue.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",r).directive("mdGridTileFooter",i).directive("mdGridTileHeader",i).factory("$mdGridLayout",n),t.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(ue.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),ue.module("material.components.icon",["material.core"]),ue.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(c,l,u,e){return{restrict:"E",link:function(e,t,n){l(t);var r=n.mdFontIcon,i=c.fontSet(n.mdFontSet);n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&t.addClass("md-font "+n.mdFontIcon),t.addClass(i)),n.$observe("mdFontIcon",s),n.$observe("mdFontSet",s),t[0].getAttribute(n.$attr.mdSvgSrc);var o,a=n.$normalize(n.$attr.mdSvgIcon||n.$attr.mdSvgSrc||"");function s(){if(!n.mdSvgIcon&&!n.mdSvgSrc){n.mdFontIcon&&(t.removeClass(r),t.addClass(n.mdFontIcon),r=n.mdFontIcon);var e=c.fontSet(n.mdFontSet);i!==e&&(t.removeClass(i),t.addClass(e),i=e)}}n.role||(u.expect(t,"role","img"),n.role="img"),"img"!==n.role||n.ariaHidden||u.hasAriaLabel(t)||(n.alt?u.expect(t,"aria-label",n.alt):u.parentHasAriaLabel(t,2)?u.expect(t,"aria-hidden","true"):(o=n.mdFontIcon||n.mdSvgIcon||t.text())?u.expect(t,"aria-label",o):u.expect(t,"aria-hidden","true")),a&&n.$observe(a,function(e){t.empty(),e&&c(e).then(function(e){t.empty(),t.append(e)})})}}}]),function(){a.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],ue.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",e);var o={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};function e(){}function r(e,t){this.url=e,this.viewBoxSize=t||o.defaultViewBoxSize}function a(a,o,s,c,u,t){var r={},l={},n=/[-\w@:%+.~#?&//=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&//=]*)?/i,d=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return v.prototype={clone:function(){return this.element.cloneNode(!0)},prepare:function(){var e=this.config?this.config.viewBoxSize:a.defaultViewBoxSize;ue.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e,focusable:!1},function(e,t){this.element.setAttribute(t,e)},this)}},e.fontSet=function(t){if(ue.isUndefined(t)||!t||!t.length)return a.defaultFontSet;var n=t;return ue.forEach(a.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return e=e||"",ue.isString(e)||(e=t.getTrustedUrl(e)),r[e]?s.when(i(r[e])):n.test(e)||d.test(e)?g(e).then(h(e)):(-1===e.indexOf(":")&&(e="$default:"+e),(a[e]?f:p)(e).then(h(e)))}function i(e){var n,r,i,o,a=e.clone(),s=u.nextUid(),c=["clip-path","color-profile","cursor","fill","filter","href","marker-start","marker-mid","marker-end","mask","stroke","style","vector-effect"],l=a.innerHTML===de;if(!isFinite(Number(s)))throw new Error("Unsafe and unexpected non-number result from $mdUtil.nextUid().");return n="_cache"+s,a.id&&(a.id+=n),ue.forEach(a.querySelectorAll("[id]"),function(t){for(r="",i=0;i<c.length;i++)r+="["+c[i]+'="url(#'+t.id+')"]',i+1<c.length&&(r+=", ");ue.forEach(a.querySelectorAll(r),function(e){m(t,e,l,s)}),ue.forEach(a.querySelectorAll("style"),function(e){m(t,e,l,s)}),ue.forEach(a.querySelectorAll("[*|href]:not([href])"),function(e){(o=e.getAttribute("xlink:href"))&&(o=o.replace("#"+t.id,"#"+t.id+n),e.setAttribute("xlink:href",o))}),t.id+=n}),a}function m(e,t,n,r){var i,o;if(!isFinite(Number(r)))throw new Error("Unsafe and unexpected non-number result for newUid.");o="_cache"+r,n?(i=(i=u.getOuterHTML(t)).replace("url(#"+e.id+")","url(#"+e.id+o+")"),t.textContent=ue.element(i)[0].innerHTML):t.outerHTML=t.outerHTML.replace("url(#"+e.id+")","url(#"+e.id+o+")")}function h(n){return function(e){var t;return r[n]=(t=e,ue.isDefined(t.element)&&ue.isDefined(t.config)?e:new v(e,a[n])),i(r[n])}}function f(e){var t=a[e];return g(t.url).then(function(e){return new v(e,t)})}function p(r){var e=r.substring(0,r.lastIndexOf(":"))||"$default",i=a[e];return i?g(i.url).then(function(e){var t=r.slice(r.lastIndexOf(":")+1),n=e.querySelector("#"+t);return n?new v(n,i):o(r)}):o(r);function o(e){var t="icon "+e+" not found";return c.warn(t),s.reject(t||e)}}function g(e){return d.test(e)?(t=e,n=d.exec(t),i=/base64/i.test(t)?j.atob(n[2]):n[2],s.when(ue.element(i)[0])):(r=e,s(function(t,n){o(r,!0).then(function(e){l[r]||(l[r]=ue.element("<div>").append(e)[0].querySelector("svg")),t(l[r])},function(e){var t=ue.isString(e)?e:e.message||e.data||e.statusText;c.warn(t),n(e)})}));var r,t,n,i}function v(e,t){if(e&&"symbol"===e.tagName.toLowerCase()){var n=e.getAttribute("viewBox");e=e.innerHTML?ue.element('<svg xmlns="http://www.w3.org/2000/svg">').html(e.innerHTML)[0]:ue.element('<svg xmlns="http://www.w3.org/2000/svg">').append(u.getInnerHTML(e))[0],n&&e.setAttribute("viewBox",n)}e&&"svg"!==e.tagName.toLowerCase()&&(e=ue.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e.cloneNode(!0))[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=t,this.prepare()}}e.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),o[e]=new r(t,n),this},iconSet:function(e,t,n){return o[e]=new r(t,n),this},defaultIconSet:function(e,t){var n="$default";return o[n]||(o[n]=new r(e,t)),o[n].viewBoxSize=t||o.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return o.defaultViewBoxSize=e,this},fontSet:function(e,t){return o.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return o.defaultFontSet=e||"",this},defaultIconSize:function(e){return o.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,r,i){return a(o,e,t,n,r,i)}]}}(),function(){t.$inject=["$mdTheming","$parse","$$rAF"],n.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],r.$inject=["$animate","$mdUtil"],i.$inject=["$compile"],u.$inject=["$mdUtil"],o.$inject=["$document","$timeout"],d.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],m.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],h.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var e=ue.module("material.components.input",["material.core"]).directive("mdInputContainer",t).directive("label",function(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,r){!r||n.mdNoFloat||t.hasClass("md-container-ignore")||(r.label=t,e.$on("$destroy",function(){r.label=null}))}}}).directive("input",n).directive("textarea",n).directive("mdMaxlength",r).directive("placeholder",i).directive("ngMessages",function(){return{restrict:"EA",link:function(e,t,n,r){if(!r)return;t.toggleClass("md-input-messages-animation",!0),t.toggleClass("md-auto-hide",!0),("false"==n.mdAutoHide||(i=n,l.some(function(e){return i[e]})))&&t.toggleClass("md-auto-hide",!1);var i},require:"^^?mdInputContainer"}}).directive("ngMessage",u).directive("ngMessageExp",u).directive("mdSelectOnFocus",o).animation(".md-input-invalid",d).animation(".md-input-messages-animation",m).animation(".md-input-message-animation",h);function t(i,o,a){n.$inject=["$scope","$element","$attrs","$animate"];var e=["INPUT","TEXTAREA","SELECT","MD-SELECT"],t=e.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),s=e.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:function(e){var n=e[0].querySelector(t),r=e[0].querySelector(s);return function(e,t){i(t),(n||r)&&a(function(){var e=t[0].querySelector("md-icon")||t[0].querySelector(".md-icon");n&&e&&t.addClass("md-icon-left"),r&&e&&t.addClass("md-icon-right")})}},controller:n};function n(e,t,n,r){var i=this;i.isErrorGetter=n.mdIsError&&o(n.mdIsError),i.delegateClick=function(){i.input.focus()},i.element=t,i.setFocused=function(e){t.toggleClass("md-input-focused",!!e)},i.setHasValue=function(e){t.toggleClass("md-input-has-value",!!e)},i.setHasPlaceholder=function(e){t.toggleClass("md-input-has-placeholder",!!e)},i.setInvalid=function(e){e?r.addClass(t,"md-input-invalid"):r.removeClass(t,"md-input-invalid")},e.$watch(function(){return i.label&&i.input},function(e){e&&!i.label.attr("for")&&i.label.attr("for",i.input.attr("id"))})}}function n(v,b,u,$,y){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(d,m,h,e){var f=e[0],p=!!e[1],g=e[1]||v.fakeNgModel(),t=e[2],n=ue.isDefined(h.readonly),r=v.parseAttributeBoolean(h.mdNoAsterisk),i=m[0].tagName.toLowerCase();if(!f)return;{if("hidden"===h.type)return void m.attr("aria-hidden","true");if(f.input){if(f.input[0].contains(m[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}}f.input=m,f.label&&h.$observe("required",function(e){f.label.toggleClass("md-required",e&&!r)});var o=ue.element('<div class="md-errors-spacer">');m.after(o);var a=ue.isString(h.placeholder)?h.placeholder.trim():"";f.label||a.length||u.expect(m,"aria-label");m.addClass("md-input"),m.attr("id")||m.attr("id","input_"+v.nextUid());"input"===i&&"number"===h.type&&h.min&&h.max&&!h.step?m.attr("step","any"):"textarea"===i&&function(){var t=!h.hasOwnProperty("mdNoAutogrow");if(function(){if(!h.hasOwnProperty("mdNoResize")){var e=ue.element('<div class="md-resize-handle"></div>'),t=!1,n=0,r=f.element,i=y.register(e,"drag",{horizontal:!1});m.wrap('<div class="md-resize-wrapper">').after(e),e.on("mousedown",o),r.on("$md.dragstart",a).on("$md.drag",s).on("$md.dragend",c),d.$on("$destroy",function(){e.off("mousedown",o).remove(),r.off("$md.dragstart",a).off("$md.drag",s).off("$md.dragend",c),i(),i=r=e=null})}function o(e){e.preventDefault(),t=!0,e.clientY,n=parseFloat(m.css("height"))||m.prop("offsetHeight")}function a(e){t&&(e.preventDefault(),l(),r.addClass("md-input-resized"))}function s(e){t&&m.css("height",n+e.pointer.distanceY+"px")}function c(e){t&&(t=!1,r.removeClass("md-input-resized"))}}(),!t)return;var o=h.hasOwnProperty("rows")?parseInt(h.rows):NaN,a=h.hasOwnProperty("maxRows")?parseInt(h.maxRows):NaN,n=d.$on("md-resize-textarea",r),s=null,c=m[0];$(function(){v.nextTick(r)},10,!1),m.on("input",r),p&&g.$formatters.push(i);o||m.attr("rows",1);function r(){m.attr("rows",1).css("height","auto").addClass("md-no-flex");var e,t,n=(e=c.offsetHeight,t=c.scrollHeight-e,e+Math.max(t,0));if(!s){var r=m[0].style.padding||"";s=m.css("padding",0).prop("offsetHeight"),m[0].style.padding=r}if(o&&s&&(n=Math.max(n,s*o)),a&&s){var i=s*a;i<n?(m.attr("md-no-autogrow",""),n=i):m.removeAttr("md-no-autogrow")}s&&m.attr("rows",Math.round(n/s)),m.css("height",n+"px").removeClass("md-no-flex")}function i(e){return v.nextTick(r),e}function l(){if(t&&(t=!1,ue.element(b).off("resize",r),n&&n(),m.attr("md-no-autogrow","").off("input",r),p)){var e=g.$formatters.indexOf(i);-1<e&&g.$formatters.splice(e,1)}}if(ue.element(b).on("resize",r),d.$on("$destroy",l),h.hasOwnProperty("mdDetectHidden")){var e=(u=!1,function(){var e=0===c.offsetHeight;!1===e&&!0===u&&r(),u=e});d.$watch(function(){return v.nextTick(e,!1),!0})}var u}();p||l();var s=f.isErrorGetter||function(){return g.$invalid&&(g.$touched||t&&t.$submitted)};d.$watch(s,f.setInvalid),h.ngValue&&h.$observe("value",l);g.$parsers.push(c),g.$formatters.push(c),m.on("input",l),n||m.on("focus",function(e){v.nextTick(function(){f.setFocused(!0)})}).on("blur",function(e){v.nextTick(function(){f.setFocused(!1),l()})});function c(e){return f.setHasValue(!g.$isEmpty(e)),e}function l(){f.setHasValue(0<m.val().length||(m[0].validity||{}).badInput)}d.$on("$destroy",function(){f.setFocused(!1),f.setHasValue(!1),f.input=null})}}}function r(h,f){return{restrict:"A",require:["ngModel","^mdInputContainer"],link:function(e,r,t,n){var i=parseInt(t.mdMaxlength);isNaN(i)&&(i=-1);var o,a,s=n[0],c=n[1],l=!ue.isDefined(t.ngTrim)||f.parseAttributeBoolean(t.ngTrim),u="password"===t.type;function d(e){return(e=l&&!u&&ue.isString(e)?e.trim():e)!==de&&null!==e||(e=""),String(e).length}function m(){o&&o.parent()&&o.text(d(r.val())+" / "+i)}e.$watch(t.mdMaxlength,function(e){i=e}),s.$validators["md-maxlength"]=function(e,t){if(!ue.isNumber(i)||i<0)return!0;m();var n=r.val()||t;return n!==de&&null!==n||(n=""),n=l&&!u&&ue.isString(n)?n.trim():n,String(n).length<=i},s.$isEmpty=function(e){return 0===d(e)},f.nextTick(function(){a=ue.element(c.element[0].querySelector(".md-errors-spacer")),o=ue.element('<div class="md-char-counter">'),a.append(o),t.$observe("ngTrim",function(e){l=!ue.isDefined(e)||f.parseAttributeBoolean(e)}),e.$watch(t.mdMaxlength,function(e){ue.isNumber(e)&&0<e?(o.parent().length||h.enter(o,a),m()):h.leave(o)})})}}}function i(s){return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:function(e,t,n,r){if(!r)return;var i=r.element.find("label"),o=r.element.attr("md-no-float");if(i&&i.length||""===o||e.$eval(o))return void r.setHasPlaceholder(!0);if("MD-SELECT"!==t[0].nodeName){var a=ue.element('<label ng-click="delegateClick()" tabindex="-1" aria-hidden="true">'+n.placeholder+"</label>");n.$set("placeholder",null),r.element.addClass("md-icon-float").prepend(a),s(a)(e)}}}}}function o(a,s){return{restrict:"A",link:function(e,t,n){if("INPUT"!==t[0].nodeName&&"TEXTAREA"!==t[0].nodeName)return;var r=!1;function i(){s(function(){a[0].activeElement===t[0]&&t[0].select(),r=!1},1,!(r=!0))}function o(e){r&&e.preventDefault()}t.on("focus",i).on("mouseup",o),e.$on("$destroy",function(){t.off("focus",i).off("mouseup",o)})}}}j._mdMocksIncluded&&e.service("$$mdInput",function(){return{messages:{getElement:b}}}).service("mdInputInvalidAnimation",d).service("mdInputMessagesAnimation",m).service("mdInputMessageAnimation",h);var a,s,c,l=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];function u(t){return{restrict:"EA",compile:function(n){if(r(n))i(n);else if(function(){var e=n[0];for(;e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,t){r(t)&&i(n)};function r(e){return!!t.getClosest(e,"md-input-container")}function i(e){e.toggleClass("md-input-message-animation",!0)}},priority:100}}function d(e,t,n){return $(e,t,n),{addClass:function(e,t,n){f(e,n)}}}function m(e,t,n){return $(e,t,n),{enter:function(e,t){f(e,t)},leave:function(e,t){p(e,t)},addClass:function(e,t,n){"ng-hide"==t?p(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?f(e,n):n()}}}function h(e,t,n,r){return $(e,t,n),{enter:function(e,t){g(e).start().done(t)},leave:function(e,t){v(e).start().done(t)}}}function f(e,t){var n,r=[],i=b(e),o=i.children();0!=i.length&&0!=o.length?(ue.forEach(o,function(e){n=g(ue.element(e)),r.push(n.start())}),a.all(r,t)):t()}function p(e,t){var n,r=[],i=b(e),o=i.children();0!=i.length&&0!=o.length?(ue.forEach(o,function(e){n=v(ue.element(e)),r.push(n.start())}),a.all(r,t)):t()}function g(e){var t=parseInt(j.getComputedStyle(e[0]).height),n=parseInt(j.getComputedStyle(e[0]).marginTop),r=b(e),i=e.controller("mdInputContainer").element;return-t<n||r.hasClass("md-auto-hide")&&!i.hasClass("md-input-invalid")?s(e,{}):s(e,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-t+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function v(e){var t=e[0].offsetHeight,n=j.getComputedStyle(e[0]);return 0===parseInt(n.opacity)?s(e,{}):s(e,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-t+"px"},duration:.3})}function b(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?ue.element(c.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):ue.element(e[0].querySelector(".md-input-messages-animation"))}function $(e,t,n){a=e,s=t,c=n}}(),function(){function e(t){return{restrict:"E",compile:function(e){return e[0].setAttribute("role","list"),t}}}function t(m,h,f,p){var g=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(o,a){var e,i,t,n=o[0].querySelectorAll(".md-secondary"),r=o;if(o[0].setAttribute("role","listitem"),a.ngClick||a.ngDblclick||a.ngHref||a.href||a.uiSref||a.ngAttrUiSref)l("button");else if(!o.hasClass("md-no-proxy")){for(var s,c=0;s=g[c];++c)if(i=o[0].querySelector(s)){e=!0;break}e?l("div"):o.addClass("md-no-proxy")}function l(e){if("div"==e)(r=ue.element('<div class="md-no-style md-list-item-inner">')).append(o.contents()),o.addClass("md-proxy-focus");else{r=ue.element('<div class="md-button md-no-style">   <div class="md-list-item-inner"></div></div>');var t=ue.element('<md-button class="md-no-style"></md-button>');u(o[0],t[0]),t.attr("aria-label")||t.attr("aria-label",m.getText(o)),o.hasClass("md-no-focus")&&t.addClass("md-no-focus"),r.prepend(t),r.children().eq(1).append(o.contents()),o.addClass("_md-button-wrap")}o[0].setAttribute("tabindex","-1"),o.append(r)}function u(t,n,e){var r=f.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","rel","target","ng-attr-ui-sref","ui-sref-opts","download"]);e&&(r=r.concat(f.prefixer(e))),ue.forEach(r,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function d(e){for(var t=e.attributes,n=0;n<t.length;n++)if("ngClick"===a.$normalize(t[n].name))return!0;return!1}return t=ue.element('<div class="md-secondary-container">'),ue.forEach(n,function(e){!function(e,t){if(e&&("MD-BUTTON"!=(r=e.nodeName.toUpperCase())&&"BUTTON"!=r)&&e.hasAttribute("ng-click")){m.expect(e,"aria-label");var n=ue.element('<md-button class="md-secondary md-icon-button">');u(e,n[0],["ng-if","ng-hide","ng-show"]),e.setAttribute("tabindex","-1"),n.append(e),e=n[0]}var r,i;!e||d(e)&&(a.ngClick||(i=e,-1==g.indexOf(i.nodeName.toLowerCase())))||ue.element(e).removeClass("md-secondary"),o.addClass("md-with-secondary"),t.append(e)}(e,t)}),r.append(t),function(){for(var e,t,n=["md-switch","md-checkbox"],r=0;t=n[r];++r)if((e=o.find(t)[0])&&!e.hasAttribute("aria-label")){var i=o.find("p")[0];if(!i)return;e.setAttribute("aria-label","Toggle "+i.textContent)}}(),e&&"MD-MENU"===i.nodeName&&function(){var e=ue.element(i),t=e.parent().hasClass("md-secondary-container")||i.parentNode.firstElementChild!==i,n="left";t&&(n="right");e.attr("md-position-mode")||e.attr("md-position-mode",n+" target");var r=e.children().eq(0);d(r[0])||r.attr("ng-click","$mdMenu.open($event)");r.attr("aria-label")||r.attr("aria-label","Open List Menu")}(),function(e,i,t,n){i.addClass("_md");var r=[],o=i[0].firstElementChild,a=i.hasClass("_md-button-wrap")?o.firstElementChild:o,s=a&&d(a),c=i.hasClass("md-no-proxy");o&&o.children&&!s&&!c&&ue.forEach(g,function(e){ue.forEach(o.querySelectorAll(e+":not(.md-secondary)"),function(e){r.push(e)})}),(1==r.length||s)&&(i.addClass("md-clickable"),s||n.attachRipple(e,ue.element(i[0].querySelector(".md-no-style")))),r.length&&ue.forEach(r,function(t){t=ue.element(t),e.mouseActive=!1,t.on("mousedown",function(){e.mouseActive=!0,p(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&i.addClass("md-focused"),t.on("blur",function e(){i.removeClass("md-focused"),t.off("blur",e)})})});var l=function(e){if("INPUT"!=e.target.nodeName&&"TEXTAREA"!=e.target.nodeName&&!e.target.isContentEditable){var t=e.which||e.keyCode;t==h.KEY_CODE.SPACE&&a&&(a.click(),e.preventDefault(),e.stopPropagation())}};s||r.length||a&&a.addEventListener("keypress",l);i.off("click"),i.off("keypress"),1==r.length&&a&&i.children().eq(0).on("click",function(t){if(!function(e){var t=["md-slider"];if(!e.path)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var n=e.path.indexOf(i.children()[0]),r=0;r<n;r++)if(-1!==t.indexOf(e.path[r].tagName.toLowerCase()))return!0}(t)){var e=f.getClosest(t.target,"BUTTON");!e&&a.contains(t.target)&&ue.forEach(r,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),ue.element(e).triggerHandler("click"))})}});e.$on("$destroy",function(){a&&a.removeEventListener("keypress",l)})}}}}function n(e,t,n){this.attachRipple=function(e,t){n.attach(e,t,{})}}n.$inject=["$scope","$element","$mdListInkRipple"],e.$inject=["$mdTheming"],t.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],ue.module("material.components.list",["material.core"]).controller("MdListController",n).directive("mdList",e).directive("mdListItem",t)}(),ue.module("material.components.menu",["material.core","material.components.backdrop"]),function(){function e(i,t,o,a,s,r,e,n,c){var l,u,d=s.prefixer(),m=this;this.nestLevel=parseInt(t.mdNestLevel,10)||0,this.init=function(e,t){t=t||{},l=e,(u=o[0].querySelector(d.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=t.isInMenuBar,this.nestedMenus=s.nodesToArray(l[0].querySelectorAll(".md-nested-menu")),l.on("$mdInterimElementRemove",function(){m.isOpen=!1,s.nextTick(function(){m.onIsOpenChanged(m.isOpen)})}),s.nextTick(function(){m.onIsOpenChanged(m.isOpen)});var n="menu_container_"+s.nextUid();l.attr("id",n),ue.element(u).attr({"aria-owns":n,"aria-haspopup":"true"}),a.$on("$destroy",ue.bind(this,function(){this.disableHoverListener(),i.destroy()})),l.on("$destroy",function(){i.destroy()})};var h,f,p=[];this.enableHoverListener=function(){p.push(e.$on("$mdMenuOpen",function(e,t){l[0].contains(t[0])&&(m.currentlyOpenMenu=t.controller("mdMenu"),m.isAlreadyOpening=!1,m.currentlyOpenMenu.registerContainerProxy(m.triggerContainerProxy.bind(m)))})),p.push(e.$on("$mdMenuClose",function(e,t){l[0].contains(t[0])&&(m.currentlyOpenMenu=de)})),(f=ue.element(s.nodesToArray(l[0].children[0].children))).on("mouseenter",m.handleMenuItemHover),f.on("mouseleave",m.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;p.length;)p.shift()();f&&f.off("mouseenter",m.handleMenuItemHover),f&&f.off("mouseleave",m.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!m.isAlreadyOpening){var t=e.target.querySelector("md-menu")||s.getClosest(e.target,"MD-MENU");h=r(function(){if(t&&(t=ue.element(t).controller("mdMenu")),m.currentlyOpenMenu&&m.currentlyOpenMenu!=t){var e=m.nestLevel+1;m.currentlyOpenMenu.close(!0,{closeTo:e}),m.isAlreadyOpening=!!t,t&&t.open()}else t&&!t.isOpen&&t.open&&(m.isAlreadyOpening=!!t,t&&t.open())},t?100:250);var n=e.currentTarget.querySelector(".md-button:not([disabled])");n&&n.focus()}},this.handleMenuItemMouseLeave=function(){h&&(r.cancel(h),h=de)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),m.isOpen||(m.enableHoverListener(),m.isOpen=!0,s.nextTick(function(){m.onIsOpenChanged(m.isOpen)}),(u=u||(e?e.target:o[0])).setAttribute("aria-expanded","true"),a.$emit("$mdMenuOpen",o),i.show({scope:a,mdMenuCtrl:m,nestLevel:m.nestLevel,element:l,target:u,preserveElement:!0,parent:"body"}).finally(function(){u.setAttribute("aria-expanded","false"),m.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(l.attr("aria-hidden","false"),o[0].classList.add("md-open"),ue.forEach(m.nestedMenus,function(e){e.classList.remove("md-open")})):(l.attr("aria-hidden","true"),o[0].classList.remove("md-open")),a.$mdMenuIsOpen=m.isOpen},this.focusMenuContainer=function(){var e=l[0].querySelector(d.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=l[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return m.isOpen?i.destroy():n.when(!1)},this.close=function(e,t){if(m.isOpen){m.isOpen=!1,s.nextTick(function(){m.onIsOpenChanged(m.isOpen)});var n=ue.extend({},t,{skipFocus:e});if(a.$emit("$mdMenuClose",o,n),i.hide(null,t),!e){var r=m.restoreFocusTo||o.find("button")[0];r instanceof ue.element&&(r=r[0]),r&&r.focus()}}},this.positionMode=function(){var e=(t.mdPositionMode||"target").split(" ");return 1===e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(t.mdOffset||"0 0").split(" ").map(parseFloat);if(2===e.length)return{left:e[0],top:e[1]};if(1===e.length)return{top:e[0],left:e[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},a.$mdMenu={open:this.open,close:this.close},a.$mdOpenMenu=ue.bind(this,function(){return c.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],ue.module("material.components.menu").controller("mdMenuCtrl",e)}(),function(){function e(a){var s="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:function(e){e.addClass("md-menu");var t=e.children()[0],n=a.prefixer();n.hasAttribute(t,"ng-click")||(t=t.querySelector(n.buildSelector(["ng-click","ng-mouseenter"]))||t);var r="MD-BUTTON"===t.nodeName||"BUTTON"===t.nodeName;t&&r&&!t.hasAttribute("type")&&t.setAttribute("type","button");if(!t)throw Error(s+"Expected the menu to have a trigger element.");if(2!==e.children().length)throw Error(s+"Expected two children elements. The second element must have a `md-menu-content` element.");t&&t.setAttribute("aria-haspopup","true");var i=e[0].querySelectorAll("md-menu"),o=parseInt(e[0].getAttribute("md-nest-level"),10)||0;i&&ue.forEach(a.nodesToArray(i),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",o+1)});return c}};function c(e,t,n,r){var i=r[0],o=!!r[1],a=ue.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),s=t.children()[1];t.addClass("_md"),s.hasAttribute("role")||s.setAttribute("role","menu"),a.append(s),t.on("$destroy",function(){a.remove()}),t.append(a),a[0].style.display="none",i.init(a,{isInMenuBar:o})}}e.$inject=["$mdUtil"],ue.module("material.components.menu").directive("mdMenu",e)}(),function(){function e(e){t.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var x=8;return e("$mdMenu").setDefaults({methods:["target"],options:t});function t(C,l,u,w,_,d,m,h,f,p){var M=C.prefixer(),g=C.dom.animator;return{parent:"body",onShow:function(a,n,s){(function(){if(!s.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");ue.extend(s,{alreadyOpen:!1,isRemoved:!1,target:ue.element(s.target),parent:ue.element(s.parent),menuContentEl:ue.element(n[0].querySelector("md-menu-content"))})})(),s.menuContentEl[0]?l.inherit(s.menuContentEl,s.target):p.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",n);return s.cleanupResizing=(r=n,i=s,o=m.throttle(function(){if(!s.isRemoved){var e=b(r,i);r.css(g.toCss(e))}}),_.addEventListener("resize",o),_.addEventListener("orientationchange",o),function(){_.removeEventListener("resize",o),_.removeEventListener("orientationchange",o)}),s.hideBackdrop=(e=a,t=s,t.nestLevel?ue.noop:(t.disableParentScroll&&!C.getClosest(t.target,"MD-DIALOG")?t.restoreScroll=C.disableScrollAround(t.element,t.parent):t.disableParentScroll=!1,t.hasBackdrop&&(t.backdrop=C.createBackdrop(e,"md-menu-backdrop md-click-catcher"),f.enter(t.backdrop,w[0].body)),function(){t.backdrop&&t.backdrop.remove(),t.disableParentScroll&&t.restoreScroll()})),(s.parent.append(n),n[0].style.display="",d(function(e){var t=b(n,s);n.removeClass("md-leave"),h(n,{addClass:"md-active",from:g.toCss(t),to:g.toCss({transform:""})}).start().then(e)})).then(function(e){return s.alreadyOpen=!0,s.cleanupInteraction=function(){if(!s.menuContentEl[0])return ue.noop;s.menuContentEl.on("keydown",i),s.menuContentEl[0].addEventListener("click",o,!0);var e=s.menuContentEl[0].querySelector(M.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!e)for(var t=s.menuContentEl[0].children.length,n=0;n<t;n++){var r=s.menuContentEl[0].children[n];if(e=r.querySelector(".md-button:not([disabled])"))break;if(r.firstElementChild&&!r.firstElementChild.disabled){e=r.firstElementChild;break}}return e&&e.focus(),function(){s.menuContentEl.off("keydown",i),s.menuContentEl[0].removeEventListener("click",o,!0)};function i(e){var t;switch(e.keyCode){case u.KEY_CODE.ESCAPE:s.mdMenuCtrl.close(!1,{closeAll:!0}),t=!0;break;case u.KEY_CODE.TAB:s.mdMenuCtrl.close(!1,{closeAll:!0}),t=!1;break;case u.KEY_CODE.UP_ARROW:v(e,s.menuContentEl,s,-1)||s.nestLevel||s.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case u.KEY_CODE.DOWN_ARROW:v(e,s.menuContentEl,s,1)||s.nestLevel||s.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case u.KEY_CODE.LEFT_ARROW:s.nestLevel?s.mdMenuCtrl.close():s.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case u.KEY_CODE.RIGHT_ARROW:var n=C.getClosest(e.target,"MD-MENU");n&&n!=s.parent[0]?e.target.click():s.mdMenuCtrl.triggerContainerProxy(e),t=!0}t&&(e.preventDefault(),e.stopImmediatePropagation())}function o(e){var t=e.target;do{if(t==s.menuContentEl[0])return;if((r(t,["ng-click","ng-href","ui-sref"])||"BUTTON"==t.nodeName||"MD-BUTTON"==t.nodeName)&&!r(t,["md-prevent-menu-close"])){var n=C.getClosest(t,"MD-MENU");t.hasAttribute("disabled")||n&&n!=s.parent[0]||a.$apply(function(){s.mdMenuCtrl.close(!0,{closeAll:!0})});break}}while(t=t.parentNode);function r(e,t){if(!e)return!1;for(var n,r=0;n=t[r];++r)if(M.hasAttribute(e,n))return!0;return!1}}}(),s.cleanupBackdrop=s.backdrop?(s.backdrop.on("click",c),function(){s.backdrop.off("click",c)}):ue.noop,n.addClass("md-clickable"),e});var e,t;var r,i,o;function c(e){e.preventDefault(),e.stopPropagation(),a.$apply(function(){s.mdMenuCtrl.close(!0,{closeAll:!0})})}},onRemove:function(e,n,r){return r.cleanupInteraction(),r.cleanupBackdrop(),r.cleanupResizing(),r.hideBackdrop(),n.removeClass("md-clickable"),!0===r.$destroy?t():h(n,{addClass:"md-leave"}).start().then(t);function t(){var e,t;n.removeClass("md-active"),e=n,(t=r).preserveElement?i(e).style.display="none":i(e).parentNode===i(t.parent)&&i(t.parent).removeChild(i(e)),r.alreadyOpen=!1}},hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0};function v(e,t,n,r){for(var i,o=C.getClosest(e.target,"MD-MENU-ITEM"),a=C.nodesToArray(t[0].children),s=a.indexOf(o)+r;0<=s&&s<a.length;s+=r){if(i=c(a[s].querySelector(".md-button")))break}return i}function c(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),w[0].activeElement==e}function b(e,t){var n,r=e[0],i=e[0].firstElementChild,o=i.getBoundingClientRect(),a=w[0].body.getBoundingClientRect(),s=_.getComputedStyle(i),c=t.target[0].querySelector(M.buildSelector("md-menu-origin"))||t.target[0],l=c.getBoundingClientRect(),u={left:a.left+x,top:Math.max(a.top,0)+x,bottom:Math.max(a.bottom,Math.max(a.top,0)+a.height)-x,right:a.right-x},d={top:0,left:0,right:0,bottom:0},m={top:0,left:0,right:0,bottom:0},h=t.mdMenuCtrl.positionMode();"target"!==h.top&&"target"!==h.left&&"target-right"!==h.left||(n=function(){for(var e=0;e<i.children.length;++e)if("none"!=_.getComputedStyle(i.children[e]).display)return i.children[e]}())&&(d=(n=(n=n.firstElementChild||n).querySelector(M.buildSelector("md-menu-align-target"))||n).getBoundingClientRect(),m={top:parseFloat(r.style.top||0),left:parseFloat(r.style.left||0)});var f={},p="top ";switch(h.top){case"target":f.top=m.top+l.top-d.top;break;case"cascade":f.top=l.top-parseFloat(s.paddingTop)-c.style.top;break;case"bottom":f.top=l.top+l.height;break;default:throw new Error('Invalid target mode "'+h.top+'" specified for md-menu on Y axis.')}var g="rtl"===C.bidi();switch(h.left){case"target":f.left=m.left+l.left-d.left,p+=g?"right":"left";break;case"target-left":f.left=l.left,p+="left";break;case"target-right":f.left=l.right-o.width+(o.right-d.right),p+="right";break;case"cascade":var v=g?l.left-o.width<u.left:l.right+o.width<u.right;f.left=v?l.right-c.style.left:l.left-c.style.left-o.width,p+=v?"left":"right";break;case"right":g?(f.left=l.right-l.width,p+="left"):(f.left=l.right-o.width,p+="right");break;case"left":g?(f.left=l.right-o.width,p+="right"):(f.left=l.left,p+="left");break;default:throw new Error('Invalid target mode "'+h.left+'" specified for md-menu on X axis.')}var b,$=t.mdMenuCtrl.offsets();f.top+=$.top,f.left+=$.left,(b=f).top=Math.max(Math.min(b.top,u.bottom-r.offsetHeight),u.top),b.left=Math.max(Math.min(b.left,u.right-r.offsetWidth),u.left);var y=Math.round(100*Math.min(l.width/r.offsetWidth,1))/100,E=Math.round(100*Math.min(l.height/r.offsetHeight,1))/100;return{top:Math.round(f.top),left:Math.round(f.left),transform:t.alreadyOpen?de:C.supplant("scale({0},{1})",[y,E]),transformOrigin:p}}}function i(e){return e instanceof ue.element&&(e=e[0]),e}}e.$inject=["$$interimElementProvider"],ue.module("material.components.menu").provider("$mdMenu",e)}(),ue.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],ue.module("material.components.menuBar").controller("MenuBarController",e);var l=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];function e(e,t,n,r,i,o,a,s){this.$element=n,this.$attrs=r,this.$mdConstant=i,this.$mdUtil=a,this.$document=o,this.$scope=e,this.$rootScope=t,this.$timeout=s;var c=this;ue.forEach(l,function(e){c[e]=ue.bind(c,c[e])})}e.prototype.init=function(){var o=this.$element,a=this.$mdUtil,e=this.$scope,s=this,t=[];o.on("keydown",this.handleKeyDown),this.parentToolbar=a.getClosest(o,"MD-TOOLBAR"),t.push(this.$rootScope.$on("$mdMenuOpen",function(e,t){-1!=s.getMenus().indexOf(t[0])&&(o[0].classList.add("md-open"),t[0].classList.add("md-open"),s.currentlyOpenMenu=t.controller("mdMenu"),s.currentlyOpenMenu.registerContainerProxy(s.handleKeyDown),s.enableOpenOnHover())})),t.push(this.$rootScope.$on("$mdMenuClose",function(e,t,n){var r=s.getMenus();if(-1!=r.indexOf(t[0])&&(o[0].classList.remove("md-open"),t[0].classList.remove("md-open")),o[0].contains(t[0])){for(var i=t[0];i&&-1==r.indexOf(i);)i=a.getClosest(i,"MD-MENU",!0);i&&(n.skipFocus||i.querySelector("button:not([disabled])").focus(),s.currentlyOpenMenu=de,s.disableOpenOnHover(),s.setKeyboardMode(!0))}})),e.$on("$destroy",function(){for(s.disableOpenOnHover();t.length;)t.shift()()}),this.setKeyboardMode(!0)},e.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},e.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){ue.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),ue.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},e.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},e.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),ue.element(this.parentToolbar).off("click",this.handleParentClick)),ue.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var t=ue.element(e.currentTarget).controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(t)},e.prototype.scheduleOpenMenu=function(e){var t=this,n=this.$timeout;e!=t.currentlyOpenMenu&&(n.cancel(t.pendingMenuOpen),t.pendingMenuOpen=n(function(){t.pendingMenuOpen=de,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},e.prototype.handleKeyDown=function(e){var t,n,r,i=this.$mdConstant.KEY_CODE,o=this.currentlyOpenMenu,a=o&&o.isOpen;switch(this.setKeyboardMode(!0),e.keyCode){case i.DOWN_ARROW:o?o.focusMenuContainer():this.openFocusedMenu(),t=!0;break;case i.UP_ARROW:o&&o.close(),t=!0;break;case i.LEFT_ARROW:n=this.focusMenu(-1),a&&(r=ue.element(n).controller("mdMenu"),this.scheduleOpenMenu(r)),t=!0;break;case i.RIGHT_ARROW:n=this.focusMenu(1),a&&(r=ue.element(n).controller("mdMenu"),this.scheduleOpenMenu(r)),t=!0}t&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},e.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var r=!1;if(-1==n?r=!(n=0):(e<0&&0<n||0<e&&n<t.length-e)&&(n+=e,r=!0),r)return t[n].querySelector("button").focus(),t[n]},e.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&ue.element(e).controller("mdMenu").open()},e.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},e.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},e.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil.getClosest(this.$document[0].activeElement,"MD-MENU");return e?this.getMenus().indexOf(e):-1},e.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t<e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1},e.prototype.handleParentClick=function(e){var t=this.querySelector("md-menu.md-open");t&&!t.contains(e.target)&&ue.element(t).controller("mdMenu").close(!0,{closeAll:!0})}}(),function(){function e(n,i){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(e,t){return t.ariaRole||e[0].setAttribute("role","menubar"),ue.forEach(e[0].children,function(e){if("MD-MENU"==e.nodeName){e.hasAttribute("md-position-mode")||(e.setAttribute("md-position-mode","left bottom"),e.querySelector("button, a, md-button").setAttribute("role","menuitem"));var t=n.nodesToArray(e.querySelectorAll("md-menu-content"));ue.forEach(t,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),e.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,n,r){t.addClass("_md"),i(e,t),r.init()}}}}e.$inject=["$mdUtil","$mdTheming"],ue.module("material.components.menuBar").directive("mdMenuBar",e)}(),ue.module("material.components.menuBar").directive("mdMenuDivider",function(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}),function(){function e(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}e.$inject=["$scope","$element","$attrs"],ue.module("material.components.menuBar").controller("MenuItemController",e),e.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&&this.initClickListeners())},e.prototype.clearNgAria=function(){var t=this.$element[0];ue.forEach(["role","tabindex","aria-invalid","aria-checked"],function(e){t.removeAttribute(e)})},e.prototype.initClickListeners=function(){var e=this,t=this.ngModel,n=this.$scope,r=this.$attrs,i=(this.$element,this.mode);this.handleClick=ue.bind(this,this.handleClick);var o=this.iconEl,a=ue.element(this.buttonEl),s=this.handleClick;function c(e){e?a.off("click",s):a.on("click",s)}r.$observe("disabled",c),c(r.disabled),t.$render=function(){e.clearNgAria(),!function(){{if("radio"!=i)return t.$modelValue;var e=r.ngValue?n.$eval(r.ngValue):r.value;return t.$modelValue==e}}()?(o.style.display="none",a.attr("aria-checked","false")):(o.style.display="",a.attr("aria-checked","true"))},n.$$postDigest(t.$render)},e.prototype.handleClick=function(e){var t,n=this.mode,r=this.ngModel,i=this.$attrs;"checkbox"==n?t=!r.$modelValue:"radio"==n&&(t=i.ngValue?this.$scope.$eval(i.ngValue):i.value),r.$setViewValue(t),r.$render()}}(),function(){function e(u,e,d){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:e.BEFORE_NG_ARIA,compile:function(r,e){var t,n,i=e.type,o="md-in-menu-bar";if("checkbox"!==i&&"radio"!==i||!r.hasClass(o))l("role","menuitem",r[0].querySelector("md-button, button, a"));else{var a=r[0].textContent,s=ue.element('<md-button type="button"></md-button>'),c='<md-icon md-svg-src="'+d.mdChecked+'"></md-icon>';s.html(a),s.attr("tabindex","0"),ue.isDefined(e.mdPreventMenuClose)&&s.attr("md-prevent-menu-close",e.mdPreventMenuClose),r.html(""),r.append(ue.element(c)),r.append(s),r.addClass("md-indent").removeClass(o),l("role","checkbox"===i?"menuitemcheckbox":"menuitemradio",s),t="ng-disabled",n=u.prefixer(t),ue.forEach(n,function(e){if(r[0].hasAttribute(e)){var t=r[0].getAttribute(e);s[0].setAttribute(e,t),r[0].removeAttribute(e)}})}return function(e,t,n,r){var i=r[0],o=r[1];i.init(o)};function l(e,t,n){(n=n||r)instanceof ue.element&&(n=n[0]),n.hasAttribute(e)||n.setAttribute(e,t)}}}}e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],ue.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(i,o){return{restrict:"E",transclude:!0,controller:t,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="tablist" ng-focus="ctrl.onFocus()" aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(e,t,n,r){o(t),r.navBarAriaLabel||i.expectAsync(t,"aria-label",ue.noop)}}}function t(e,t,n,r){this._$timeout=n,this._$scope=t,this._$mdConstant=r,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var i=this,o=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(e){0<e&&(i._initTabs(),o())})}function n(u,e,d,m){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:r,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var n,r,i=t.mdNavClick,o=t.mdNavHref,a=t.mdNavSref,s=t.srefOpts;if(1<(i?1:0)+(o?1:0)+(a?1:0))throw Error("Please do not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");if(i!==de&&null!==i)n='ng-click="ctrl.mdNavClick()"';else if(o!==de&&null!==o)n='ng-href="{{ctrl.mdNavHref}}"';else{if(a===de||null===a)throw Error("Please specify at least one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");n='ui-sref="{{ctrl.mdNavSref}}"'}return n&&(r='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" ng-disabled="ctrl.disabled" tabindex="-1" role="tab" ng-attr-aria-label="{{ctrl.navItemAriaLabel ? ctrl.navItemAriaLabel : undefined}}" aria-selected="{{ctrl.isSelected()}}" '+(s?'ui-sref-opts="{{ctrl.srefOpts}}" ':"")+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="presentation">'+(r||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@",navItemAriaLabel:"@?"},link:function(n,r,i,o){var a,s,c,l;e(function(){if(s=o[0],c=o[1],l=ue.element(r[0].querySelector("._md-nav-button")),s.name||(s.name=ue.element(r[0].querySelector("._md-nav-button-text")).text().trim()),l.on("keydown",function(e){c.onKeydown(e)}),l.on("focus",function(){c.getFocusedTab()||c.onFocus()}),l.on("click",function(){c.mdSelectedNavItem=s.name,n.$apply()}),s.disabled=d.parseAttributeBoolean(i.disabled,!1),"MutationObserver"in m){var e=r[0],t=new MutationObserver(function(e){d.nextTick(function(){s.disabled=d.parseAttributeBoolean(i[e[0].attributeName],!1)})});t.observe(e,{attributes:!0,attributeFilter:["disabled"]}),a=t.disconnect.bind(t)}else i.$observe("disabled",function(e){s.disabled=d.parseAttributeBoolean(e,!1)});s.navItemAriaLabel||u.expectWithText(l,"aria-label")}),n.$on("destroy",function(){l.off("keydown"),l.off("focus"),l.off("click"),a()})}}}function r(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this.navItemAriaLabel,this._selected=!1,this._focused=!1}e.$inject=["$mdAria","$mdTheming"],t.$inject=["$element","$scope","$timeout","$mdConstant"],n.$inject=["$mdAria","$$rAF","$mdUtil","$window"],r.$inject=["$element"],ue.module("material.components.navBar",["material.core"]).controller("MdNavBarController",t).directive("mdNavBar",e).controller("MdNavItemController",r).directive("mdNavItem",n),t.prototype._initTabs=function(){this._inkbar=ue.element(this._navBarEl.querySelector("md-nav-ink-bar"));var n=this;this._$timeout(function(){n._updateTabs(n.mdSelectedNavItem,de)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(e,t){n._$timeout(function(){n._updateTabs(e,t)})})},t.prototype._updateTabs=function(e,t){var n=this,r=this._getTabs(),i=e===t;if(r){var o=-1,a=-1,s=this._getTabByName(e),c=this._getTabByName(t);c&&(c.setSelected(!1),o=r.indexOf(c)),s&&(s.setSelected(!0),a=r.indexOf(s)),this._$timeout(function(){n._updateInkBarStyles(s,a,o),s&&c&&!i&&n._moveFocus(c,s)})}},t.prototype._updateInkBarStyles=function(e,t,n){if(this._inkbar.toggleClass("_md-left",t<n).toggleClass("_md-right",n<t),this._inkbar.css({display:t<0?"none":""}),e){var r=e.getButtonEl(),i=r.offsetLeft;this._inkbar.css({left:i+"px",width:r.offsetWidth+"px"})}},t.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return ue.element(e).controller("mdNavItem")});return e.indexOf(de)?e:null},t.prototype._getTabByName=function(t){return this._findTab(function(e){return e.getName()===t})},t.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},t.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},t.prototype._findTab=function(e,t){var n=this._getTabs();t!==de&&null!==t||(t=0);for(var r=t;r<n.length;r++)if(e(n[r]))return n[r];return null},t.prototype._findTabReverse=function(e,t){var n=this._getTabs();t!==de&&null!==t||(t=n.length-1);for(var r=t;0<=r;r--)if(e(n[r]))return n[r];return null},t.prototype.onFocus=function(){var e=this._getSelectedTab();e&&e.setFocused(!0)},t.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},t.prototype._focusFirstTab=function(){if(this._getTabs()){var e=this._findTab(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},t.prototype._focusLastTab=function(){if(this._getTabs()){var e=this._findTabReverse(function(e){return e._isEnabled()});e&&this._moveFocus(this.getFocusedTab(),e)}},t.prototype._focusNextTab=function(e){if(this._getTabs()){var t=this._findTab(function(e){return e._isEnabled()},e+1);t?this._moveFocus(this.getFocusedTab(),t):this._focusFirstTab()}},t.prototype._focusPreviousTab=function(e){if(this._getTabs()){var t=this._findTabReverse(function(e){return e._isEnabled()},e-1);t?this._moveFocus(this.getFocusedTab(),t):this._focusLastTab()}},t.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),r=this.getFocusedTab();if(r&&n){var i=n.indexOf(r);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:e.preventDefault(),this._focusPreviousTab(i);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:e.preventDefault(),this._focusNextTab(i);break;case t.SPACE:case t.ENTER:this._$timeout(function(){r.getButtonEl().click()});break;case t.HOME:e.preventDefault(),this._focusFirstTab();break;case t.END:e.preventDefault(),this._focusLastTab()}}},r.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},r.prototype.getName=function(){return this.name},r.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},r.prototype.setSelected=function(e){(this._selected=e)?this.getButtonEl().setAttribute("tabindex","0"):this.getButtonEl().setAttribute("tabindex","-1")},r.prototype.isSelected=function(){return this._selected},r.prototype.setFocused=function(e){(this._focused=e)&&this.getButtonEl().focus()},r.prototype.hasFocus=function(){return this._focused},r.prototype._isEnabled=function(){return!this._$element.attr("disabled")}}(),function(){s.$inject=["presets","$rootElement","$rootScope","$injector","$window"],ue.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",function(){return{definePreset:e,getAllPresets:t,clearPresets:r,$get:["$rootElement","$rootScope","$injector","$window",function(e,t,n,r){return new s(i,e,t,n,r)}]}});var o=80,a="_md-panel-hidden",n=ue.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),i={};function e(e,t){if(!e||!t)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(i.hasOwnProperty(e))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete t.id,delete t.position,delete t.animation,i[e]=t}function t(){return ue.copy(i)}function r(){i={}}function s(e,t,n,r,i){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:ue.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:o},this._config={},this._presets=e,this._$rootElement=t,this._$rootScope=n,this._$injector=r,this._$window=i,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=l.animation,this.xPosition=f.xPosition,this.yPosition=f.yPosition,this.interceptorTypes=c.interceptorTypes,this.closeReasons=c.closeReasons,this.absPosition=f.absPosition}function c(e,t){this._$q=t.get("$q"),this._$mdCompiler=t.get("$mdCompiler"),this._$mdConstant=t.get("$mdConstant"),this._$mdUtil=t.get("$mdUtil"),this._$mdTheming=t.get("$mdTheming"),this._$rootScope=t.get("$rootScope"),this._$animate=t.get("$animate"),this._$mdPanel=t.get("$mdPanel"),this._$log=t.get("$log"),this._$window=t.get("$window"),this._$$rAF=t.get("$$rAF"),this.id=e.id,this.config=e,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 f(e){this._$window=e.get("$window"),this._isRTL="rtl"===e.get("$mdUtil").bidi(),this._$mdConstant=e.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(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function u(e){var t=ue.isString(e)?document.querySelector(e):e;return ue.element(t)}function d(e){return ue.isNumber(e)?e+"px":e}s.prototype.create=function(e,t){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!ue.isUndefined(t)&&t||(t=e,e={}),e=e||{},t=t||{},ue.isDefined(t.id)&&this._trackedPanels[t.id]){var n=this._trackedPanels[t.id];return ue.extend(n.config,t),n}this._config=ue.extend({id:t.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,t,e);var r=new c(this._config,this._$injector);return this._trackedPanels[this._config.id]=r,this._config.groupName&&(ue.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),ue.forEach(this._config.groupName,function(e){r.addToGroup(e)})),this._config.scope.$on("$destroy",ue.bind(r,r.detach)),r},s.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},s.prototype._getPresetByName=function(e){if(!this._presets[e])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[e]},s.prototype.newPanelPosition=function(){return new f(this._$injector)},s.prototype.newPanelAnimation=function(){return new l(this._$injector)},s.prototype.newPanelGroup=function(e,t){if(!this._groups[e]){var n={panels:[],openPanels:[],maxOpen:0<(t=t||{}).maxOpen?t.maxOpen:1/0};this._groups[e]=n}return this._groups[e]},s.prototype.setGroupMaxOpen=function(e,t){if(!this._groups[e])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[e].maxOpen=t},s.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return 0<t.maxOpen&&t.openPanels.length>t.maxOpen}return!1},s.prototype._closeFirstOpenedPanel=function(e){this._groups[e].openPanels[0].close()},s.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper">  <div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div>"},s.prototype._wrapContentElement=function(e){var t=ue.element('<div class="md-panel-outer-wrapper">');return e.addClass("md-panel _md-panel-offscreen"),t.append(e),t},c.interceptorTypes={CLOSE:"onClose"},c.prototype.open=function(){var i=this;return this._$q(function(e,t){var n=i._done(e,i),r=i._simpleBind(i.show,i);i.attach().then(r).then(function(){i.config.groupName&&ue.forEach(i.config.groupName,function(e){i._$mdPanel._openCountExceedsMaxOpen(e)&&i._$mdPanel._closeFirstOpenedPanel(e)})}).then(n).catch(t)})},c.prototype.close=function(o){var a=this;return this._$q(function(r,i){a._callInterceptors(c.interceptorTypes.CLOSE).then(function(){var e=a._done(r,a),t=a._simpleBind(a.detach,a),n=a.config.onCloseSuccess||ue.noop;n=ue.bind(a,n,a,o),a.hide().then(t).then(e).then(n).catch(i)},i)})},c.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),r=i.config.onDomAdded||ue.noop;i._$q.all([i._createBackdrop(),i._createPanel().then(function(e){return i.isAttached=!0,i._addEventListeners(),e}).catch(t)]).then(r).then(n).catch(t)})},c.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var r=this,i=r.config.onDomRemoved||ue.noop;return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(e,t){var n=r._done(e,r);r._$q.all([(r._removeEventListeners(),r._topFocusTrap&&r._topFocusTrap.parentNode&&r._topFocusTrap.parentNode.removeChild(r._topFocusTrap),r._bottomFocusTrap&&r._bottomFocusTrap.parentNode&&r._bottomFocusTrap.parentNode.removeChild(r._bottomFocusTrap),r._restoreCache.classes&&(r.panelEl[0].className=r._restoreCache.classes),r.panelEl[0].style.cssText=r._restoreCache.styles||"",r._compilerCleanup(),r.panelContainer.remove(),r.isAttached=!1,r._$q.when(r)),!r._backdropRef||r._backdropRef.detach()]).then(i).then(n).catch(t)})},c.prototype.destroy=function(){var t=this;this.config.groupName&&ue.forEach(this.config.groupName,function(e){t.removeFromGroup(e)}),this.config.scope.$destroy(),this.config.locals=null,this.config.onDomAdded=null,this.config.onDomRemoved=null,this.config.onRemoving=null,this.config.onOpenComplete=null,this._interceptors=null},c.prototype.show=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass(a))return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),r=i.config.onOpenComplete||ue.noop;i._$q.all([i._backdropRef?i._backdropRef.show():i,(i.panelContainer.removeClass(a),i._animateOpen()).then(function(){i._focusOnOpen()},t)]).then(r).then(function(){i.config.groupName&&ue.forEach(i.config.groupName,function(e){i._$mdPanel._groups[e].openPanels.push(i)})}).then(n).catch(t)})},c.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass(a))return this._$q.when(this);var i=this;return this._$q(function(e,t){var n=i._done(e,i),r=i.config.onRemoving||ue.noop;i._$q.all([i._backdropRef?i._backdropRef.hide():i,i._animateClose().then(r).then(function(){i.panelContainer.addClass(a)}).then(function(){var t;i.config.groupName&&ue.forEach(i.config.groupName,function(e){e=i._$mdPanel._groups[e],-1<(t=e.openPanels.indexOf(i))&&e.openPanels.splice(t,1)})}).then(function(){var e=i.config.origin;e&&u(e).focus()}).catch(t)]).then(n,t)})},c.prototype.addClass=function(e,t){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().");t||this.panelContainer.hasClass(e)?t&&!this.panelEl.hasClass(e)&&this.panelEl.addClass(e):this.panelContainer.addClass(e)},c.prototype.removeClass=function(e,t){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().");!t&&this.panelContainer.hasClass(e)?this.panelContainer.removeClass(e):t&&this.panelEl.hasClass(e)&&this.panelEl.removeClass(e)},c.prototype.toggleClass=function(e,t){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().");t?this.panelEl.toggleClass(e):this.panelContainer.toggleClass(e)},c.prototype._compile=function(){var r=this;return r._$mdCompiler.compile(r.config).then(function(e){var t=r.config;if(t.contentElement){var n=e.element;r._restoreCache.styles=n[0].style.cssText,r._restoreCache.classes=n[0].className,r.panelContainer=r._$mdPanel._wrapContentElement(n),r.panelEl=n}else r.panelContainer=e.link(t.scope),r.panelEl=ue.element(r.panelContainer[0].querySelector(".md-panel"));return r._compilerCleanup=e.cleanup,u(r.config.attachTo).append(r.panelContainer),r})},c.prototype._createPanel=function(){var n=this;return this._$q(function(e,t){n.config.locals||(n.config.locals={}),(n.config.locals.mdPanelRef=n)._compile().then(function(){n.config.disableParentScroll&&(n._restoreScroll=n._$mdUtil.disableScrollAround(null,n.panelContainer,{disableScrollMask:!0})),n.config.panelClass&&n.panelEl.addClass(n.config.panelClass),n.config.propagateContainerEvents&&(n.panelContainer.css("pointer-events","none"),n.panelEl.css("pointer-events","all")),n._$animate.pin&&n._$animate.pin(n.panelContainer,u(n.config.attachTo)),n._configureTrapFocus(),n._addStyles().then(function(){e(n)},t)},t)})},c.prototype._addStyles=function(){var n=this;return this._$q(function(e){n.panelContainer.css("z-index",n.config.zIndex),n.panelEl.css("z-index",n.config.zIndex+1);var t=function(){n._setTheming(),n.panelEl.removeClass("_md-panel-offscreen"),n.panelContainer.addClass(a),e(n)};if(n.config.fullscreen)return n.panelEl.addClass("_md-panel-fullscreen"),void t();n.config.position?n._$rootScope.$$postDigest(function(){n._updatePosition(!0),n._setTheming(),e(n)}):t()})},c.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},c.prototype.updatePosition=function(e){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=e,this._updatePosition()},c.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.panelEl),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(a)),this.panelEl.css(f.absPosition.TOP,t.getTop()),this.panelEl.css(f.absPosition.BOTTOM,t.getBottom()),this.panelEl.css(f.absPosition.LEFT,t.getLeft()),this.panelEl.css(f.absPosition.RIGHT,t.getRight()))},c.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})}},c.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var e=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&e.duration(this.config.animation._rawDuration);var t={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(t)}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(e){e()}),this._removeListeners=[]},c.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=u(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(c.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)})}},c.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var t,n=this.config.propagateContainerEvents?ue.element(document.body):this.panelContainer,e=function(e){t=e.target},r=this,i=function(e){r.config.propagateContainerEvents?t===r.panelEl[0]||r.panelEl[0].contains(t)||r.close():t===n[0]&&e.target===n[0]&&(e.stopPropagation(),e.preventDefault(),r.close(c.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",e),n.on("mouseup",i),this._removeListeners.push(function(){n.off("mousedown",e),n.off("mouseup",i)})}},c.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=ue.bind(this,this._updatePosition),t=this._$$rAF.throttle(e),n=this,r=function(){t()};this._$window.addEventListener("scroll",r,!0),this._removeListeners.push(function(){n._$window.removeEventListener("scroll",r,!0)})}},c.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var e=this.panelEl;this._topFocusTrap=n.clone()[0],this._bottomFocusTrap=n.clone()[0];var t=function(){e.focus()};this._topFocusTrap.addEventListener("focus",t),this._bottomFocusTrap.addEventListener("focus",t),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",t),this._bottomFocusTrap.removeEventListener("focus",t)},this)),e[0].parentNode.insertBefore(this._topFocusTrap,e[0]),e.after(this._bottomFocusTrap)}},c.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},c.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var n=this.config.animation;if(!n)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var r=this;return this._$q(function(e){var t=r._done(e,r);n.animateOpen(r.panelEl).then(t,function(){r._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),t()})})},c.prototype._animateClose=function(){var n=this.config.animation;if(!n)return this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this);var r=this;return this._$q(function(e){var t=function(){r.panelContainer.removeClass("md-panel-is-showing"),e(r)};n.animateClose(r.panelEl).then(t,function(){r._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),t()})})},c.prototype.registerInterceptor=function(e,t){var n=null;if(ue.isString(e)?ue.isFunction(t)||(n="Interceptor callback must be a function, instead got "+typeof t):n="Interceptor type must be a string, instead got "+typeof e,n)throw new Error("MdPanel: "+n);var r=this._interceptors[e]=this._interceptors[e]||[];return-1===r.indexOf(t)&&r.push(t),this},c.prototype.removeInterceptor=function(e,t){var n=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return-1<n&&this._interceptors[e].splice(n,1),this},c.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},c.prototype._callInterceptors=function(e){var r=this,i=r._$q;return(r._interceptors&&r._interceptors[e]||[]).reduceRight(function(e,t){var n=t&&ue.isFunction(t.then)?t:null;return e.then(function(){if(!n)try{n=t(r)}catch(e){n=i.reject(e)}return n})},i.resolve(r))},c.prototype._simpleBind=function(t,n){return function(e){return t.apply(n,e)}},c.prototype._done=function(e,t){return function(){e(t)}},c.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);var t=this._$mdPanel._groups[e];t.panels.indexOf(this)<0&&t.panels.push(this)},c.prototype.removeFromGroup=function(e){if(!this._$mdPanel._groups[e])throw new Error("mdPanel: The group "+e+" does not exist.");var t=this._$mdPanel._groups[e],n=t.panels.indexOf(this);-1<n&&t.panels.splice(n,1)},c.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},f.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},f.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},f.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},f.viewportMargin=8,f.prototype.absolute=function(){return this._absolute=!0,this},f.prototype._setPosition=function(e,t){if(e===f.absPosition.RIGHT||e===f.absPosition.LEFT)this._left=this._right="";else{if(e!==f.absPosition.BOTTOM&&e!==f.absPosition.TOP){var n=Object.keys(f.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+n+".")}this._top=this._bottom=""}return this["_"+e]=ue.isString(t)?t:"0",this},f.prototype.top=function(e){return this._setPosition(f.absPosition.TOP,e)},f.prototype.bottom=function(e){return this._setPosition(f.absPosition.BOTTOM,e)},f.prototype.start=function(e){var t=this._isRTL?f.absPosition.RIGHT:f.absPosition.LEFT;return this._setPosition(t,e)},f.prototype.end=function(e){var t=this._isRTL?f.absPosition.LEFT:f.absPosition.RIGHT;return this._setPosition(t,e)},f.prototype.left=function(e){return this._setPosition(f.absPosition.LEFT,e)},f.prototype.right=function(e){return this._setPosition(f.absPosition.RIGHT,e)},f.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},f.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},f.prototype.center=function(){return this.centerHorizontally().centerVertically()},f.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=u(e),this},f.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(e),this._validateYPosition(t),this._positions.push({x:e,y:t}),this},f.prototype._validateYPosition=function(e){if(null!=e){for(var t,n=Object.keys(f.yPosition),r=[],i=0;t=n[i];i++){var o=f.yPosition[t];if(r.push(o),o===e)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+r.join(" | "))}},f.prototype._validateXPosition=function(e){if(null!=e){for(var t,n=Object.keys(f.xPosition),r=[],i=0;t=n[i];i++){var o=f.xPosition[t];if(r.push(o),o===e)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+r.join(" | "))}},f.prototype.withOffsetX=function(e){return this._translateX.push(d(e)),this},f.prototype.withOffsetY=function(e){return this._translateY.push(d(e)),this},f.prototype.getTop=function(){return this._top},f.prototype.getBottom=function(){return this._bottom},f.prototype.getLeft=function(){return this._left},f.prototype.getRight=function(){return this._right},f.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},f.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},f.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var r=function(e,t){var n=getComputedStyle(e[0]||e)[t],r=n.indexOf("("),i=n.lastIndexOf(")"),o={x:0,y:0};if(-1<r&&-1<i){var a=n.substring(r+1,i).split(", ").slice(-2);o.x=parseInt(a[0]),o.y=parseInt(a[1])}return o}(e,this._$mdConstant.CSS.TRANSFORM);t+=r.x,n+=r.y}var i=t+e[0].offsetWidth,o=n+e[0].offsetHeight;return 0<=t&&0<=n&&o<=this._$window.innerHeight&&i<=this._$window.innerWidth},f.prototype.getActualPosition=function(){return this._actualPosition},f.prototype._reduceTranslateValues=function(n,e){return e.map(function(e){var t=ue.isFunction(e)?d(e(this)):e;return n+"("+t+")"},this).join(" ")},f.prototype._setPanelPosition=function(e){if(e.removeClass("_md-panel-position-adjusted"),this._absolute)this._setTransform(e);else{if(this._actualPosition)return this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),void this._constrainToViewport(e);for(var t=0;t<this._positions.length;t++)if(this._actualPosition=this._positions[t],this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),this._isOnscreen(e))return;this._constrainToViewport(e)}},f.prototype._constrainToViewport=function(e){var t=f.viewportMargin,n=this._top,r=this._left;if(this.getTop()){var i=parseInt(this.getTop()),o=e[0].offsetHeight+i,a=this._$window.innerHeight;i<t?this._top=t+"px":a<o&&(this._top=i-(o-a+t)+"px")}if(this.getLeft()){var s=parseInt(this.getLeft()),c=e[0].offsetWidth+s,l=this._$window.innerWidth;s<t?this._left=t+"px":l<c&&(this._left=s-(c-l+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==r)},f.prototype._reverseXPosition=function(e){if(e===f.xPosition.CENTER)return e;return-1<e.indexOf("start")?e.replace("start","end"):e.replace("end","start")},f.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},f.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),r=Math.max(n.width,e[0].clientWidth),i=Math.max(n.height,e[0].clientHeight),o=this._relativeToEl[0].getBoundingClientRect(),a=o.left,s=o.right,c=o.width;switch(this._bidi(t.x)){case f.xPosition.OFFSET_START:this._left=a-r+"px";break;case f.xPosition.ALIGN_END:this._left=s-r+"px";break;case f.xPosition.CENTER:var l=a+.5*c-.5*r;this._left=l+"px";break;case f.xPosition.ALIGN_START:this._left=a+"px";break;case f.xPosition.OFFSET_END:this._left=s+"px"}var u=o.top,d=o.bottom,m=o.height;switch(t.y){case f.yPosition.ABOVE:this._top=u-i+"px";break;case f.yPosition.ALIGN_BOTTOMS:this._top=d-i+"px";break;case f.yPosition.CENTER:var h=u+.5*m-.5*i;this._top=h+"px";break;case f.yPosition.ALIGN_TOPS:this._top=u+"px";break;case f.yPosition.BELOW:this._top=d+"px"}},l.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},l.prototype.openFrom=function(e){return e=e.target?e.target:e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},l.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},l.prototype.duration=function(e){return e&&(ue.isNumber(e)?this._openDuration=this._closeDuration=t(e):ue.isObject(e)&&(this._openDuration=t(e.open),this._closeDuration=t(e.close))),this._rawDuration=e,this;function t(e){if(ue.isNumber(e))return e/1e3}},l.prototype._getPanelAnimationTarget=function(e){return ue.isDefined(e.top)||ue.isDefined(e.left)?{element:de,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(u(e))},l.prototype.withAnimation=function(e){return this._animationClass=e,this},l.prototype.animateOpen=function(e){var t=this._$mdUtil.dom.animator;this._fixBounds(e);var n={},r=e[0].style.transform||"",i=t.toTransformCss(r),o=t.toTransformCss(r);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),n={transitionInClass:"_md-panel-animate-enter"};var a=t.calculateSlideToOrigin(e,this._openFrom)||"";i=t.toTransformCss(a+" "+r);break;case l.animation.SCALE:n={transitionInClass:"_md-panel-animate-enter"};var s=t.calculateZoomToOrigin(e,this._openFrom)||"";i=t.toTransformCss(s+" "+r);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=ue.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return n.duration=this._openDuration,t.translate3d(e,i,o,n)},l.prototype.animateClose=function(e){var t=this._$mdUtil.dom.animator,n={},r=e[0].style.transform||"",i=t.toTransformCss(r),o=t.toTransformCss(r);switch(this._animationClass){case l.animation.SLIDE:e.css("opacity","1"),n={transitionInClass:"_md-panel-animate-leave"};var a=t.calculateSlideToOrigin(e,this._closeTo)||"";o=t.toTransformCss(a+" "+r);break;case l.animation.SCALE:n={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var s=t.calculateZoomToOrigin(e,this._closeTo)||"";o=t.toTransformCss(s+" "+r);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:n=ue.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return n.duration=this._closeDuration,t.translate3d(e,i,o,n)},l.prototype._fixBounds=function(e){var t=e[0].offsetWidth,n=e[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=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},l.prototype._getBoundingClientRect=function(e){if(e instanceof ue.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),ue.module("material.components.progressCircular",["material.core"]),function(){function e(y,E,s,C,h,e){var w=y.requestAnimationFrame||y.webkitRequestAnimationFrame||ue.noop,f=y.cancelAnimationFrame||y.webkitCancelAnimationFrame||y.webkitCancelRequestAnimationFrame||ue.noop,p="determinate",_="indeterminate",M="_md-progress-circular-disabled",x="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(e,t){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),ue.isUndefined(t.mdMode)){var n=t.hasOwnProperty("value")?p:_;t.$set("mdMode",n)}else t.$set("mdMode",t.mdMode.trim());return r}};function r(g,c,l){var v,e,t=c[0],a=ue.element(t.querySelector("svg")),b=ue.element(t.querySelector("path")),n=E.startIndeterminate,r=E.endIndeterminate,i=0,$=0;function u(n,e,t,r,i,o){var a=++$,s=C.now(),c=e-n,l=S(g.mdDiameter),u=D(l),d=t||E.easeFn,m=r||E.duration,h=-90*(i||0),f=o||100;function p(e){b.attr("stroke-dashoffset",k(l,u,e,f)),b.attr("transform","rotate("+h+" "+l/2+" "+l/2+")")}e===n?p(e):v=w(function e(){var t=y.Math.max(0,y.Math.min(C.now()-s,m));p(d(t,n,c,m)),a===$&&t<m&&(v=w(e))})}function o(){u(n,r,E.easeFnIndeterminate,E.durationIndeterminate,i,75),i=++i%4}function d(){e||(e=h(o,E.durationIndeterminate,0,!1),o(),c.addClass(x).removeAttr("aria-valuenow"))}function m(){e&&(h.cancel(e),e=null,c.removeClass(x))}s(c),c.toggleClass(M,l.hasOwnProperty("disabled")),g.mdMode===_&&d(),g.$on("$destroy",function(){m(),v&&f(v)}),g.$watchGroup(["value","mdMode",function(){var e=t.disabled;return!0===e||!1===e?e:ue.isDefined(c.attr("disabled"))}],function(e,t){var n=e[1],r=e[2],i=0,o=0;if(r!==t[2]&&c.toggleClass(M,!!r),r)m();else if(n!==p&&n!==_&&(n=_,l.$set("mdMode",n)),n===_)t[1]===p&&(o=D(i=S(g.mdDiameter)),b.attr("d",A(i,o,!0)),b.attr("stroke-dasharray",(i-o)*y.Math.PI*.75)),d();else{var a=T(e[0]),s=T(t[0]);m(),t[1]===_&&(o=D(i=S(g.mdDiameter)),b.attr("d",A(i,o,!1)),b.attr("stroke-dasharray",(i-o)*y.Math.PI)),c.attr("aria-valuenow",a),u(s,a)}}),g.$watch("mdDiameter",function(e){var t=S(e),n=D(t),r=T(g.value),i=t/2+"px",o={width:t+"px",height:t+"px"};a[0].setAttribute("viewBox","0 0 "+t+" "+t),a.css(o).css("transform-origin",i+" "+i+" "+i),c.css(o),b.attr("stroke-width",n),b.attr("stroke-linecap","square"),g.mdMode==_?(b.attr("d",A(t,n,!0)),b.attr("stroke-dasharray",(t-n)*y.Math.PI*.75),b.attr("stroke-dashoffset",k(t,n,1,75))):(b.attr("d",A(t,n,!1)),b.attr("stroke-dasharray",(t-n)*y.Math.PI),b.attr("stroke-dashoffset",k(t,n,0,100)),u(r,r))})}function A(e,t,n){var r=e/2,i=t/2,o=r+","+i,a=r-i;return"M"+o+"A"+a+","+a+" 0 1 1 "+(i+","+r)+(n?"":"A"+a+","+a+" 0 0 1 "+o)}function k(e,t,n,r){return(e-t)*y.Math.PI*(3*(r||100)/100-n/100)}function T(e){return y.Math.max(0,y.Math.min(e||0,100))}function S(e){var t=E.progressSize;if(e){var n=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(n=n/100*t),n}return t}function D(e){return E.strokeWidth/100*e}}e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],ue.module("material.components.progressCircular").directive("mdProgressCircular",e)}(),ue.module("material.components.progressCircular").provider("$mdProgressCircular",function(){var t={progressSize:50,strokeWidth:10,duration:100,easeFn:e,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:e,materialEase:n}};return{configure:function(e){return t=ue.extend(t,e||{})},$get:function(){return t}};function e(e,t,n,r){return n*e/r+t}function n(e,t,n,r){var i=(e/=r)*e,o=i*e;return t+n*(6*o*i+-15*i*i+10*o)}}),function(){function e(d,m,e){var h="determinate",f="indeterminate",p="buffer",g="query",v="_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:function(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),r}};function r(e,n,r){var t;d(n);var i=r.hasOwnProperty("disabled"),o=m.dom.animator.toCss,a=ue.element(n[0].querySelector(".md-bar1")),s=ue.element(n[0].querySelector(".md-bar2")),c=ue.element(n[0].querySelector(".md-container"));function l(){var e=(r.mdMode||"").trim();if(e)switch(e){case h:case f:case p:case g:break;default:e=f}return e}function u(e,t){if(!i&&l()){var n=m.supplant("translateX({0}%) scale({1},1)",[(t-100)/2,t/100]),r=o({transform:n});ue.element(e).css(r)}}n.attr("md-mode",l()).toggleClass(v,i),function(){if(ue.isUndefined(r.mdMode)){var e=ue.isDefined(r.value),t=e?h:f;n.attr("md-mode",t),r.mdMode=t}}(),r.$observe("value",function(e){var t=b(e);n.attr("aria-valuenow",t),l()!=g&&u(s,t)}),r.$observe("mdBufferValue",function(e){u(a,b(e))}),r.$observe("disabled",function(e){i=!0===e||!1===e?!!e:ue.isDefined(e),n.toggleClass(v,i),c.toggleClass(t,!i)}),r.$observe("mdMode",function(e){switch(t&&c.removeClass(t),e){case g:case p:case h:case f:c.addClass(t="md-mode-"+e);break;default:c.addClass(t="md-mode-"+f)}})}function b(e){return Math.max(0,Math.min(e||0,100))}}e.$inject=["$mdTheming","$mdUtil","$log"],ue.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e)}(),function(){function e(s,c,l,u){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=ue.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return t(this.$element,1)},selectPrevious:function(){return t(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}},{restrict:"E",controller:["$element",e],require:["mdRadioGroup","?ngModel"],link:{pre:function(t,r,e,n){r.addClass("_md"),l(r);var i=n[0],o=n[1]||s.fakeNgModel();function a(){r.hasClass("md-focused")||r.addClass("md-focused")}i.init(o),t.mouseActive=!1,r.attr({role:"radiogroup",tabIndex:r.attr("tabindex")||"0"}).on("keydown",function(e){var t=e.which||e.keyCode;if(t!=c.KEY_CODE.ENTER&&e.currentTarget!=e.target)return;switch(t){case c.KEY_CODE.LEFT_ARROW:case c.KEY_CODE.UP_ARROW:e.preventDefault(),i.selectPrevious(),a();break;case c.KEY_CODE.RIGHT_ARROW:case c.KEY_CODE.DOWN_ARROW:e.preventDefault(),i.selectNext(),a();break;case c.KEY_CODE.ENTER:var n=ue.element(s.getClosest(r[0],"form"));0<n.length&&n.triggerHandler("submit")}}).on("mousedown",function(e){t.mouseActive=!0,u(function(){t.mouseActive=!1},100)}).on("focus",function(){!1===t.mouseActive&&i.$element.addClass("md-focused")}).on("blur",function(){i.$element.removeClass("md-focused")})}}};function e(e){this._radioButtonRenderFns=[],this.$element=e}function t(e,t){var n=s.iterator(e[0].querySelectorAll("md-radio-button"),!0);if(n.count()){var r=e[0].querySelector("md-radio-button.md-checked"),i=n[t<0?"previous":"next"](r,function(e){return!ue.element(e).attr("disabled")})||n.first();ue.element(i).triggerHandler("click")}}}function t(l,u,d){var m="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:function(t,n,r,i){var o;d(n),e=n,e.attr({id:r.id||"radio_"+u.nextUid(),role:"radio","aria-checked":"false"}),l.expectWithText(e,"aria-label"),r.ngValue?u.nextTick(a,!1):a();var e;function a(){if(!i)throw"RadioButton: No RadioGroupController could be found.";i.add(c),r.$observe("value",c),n.on("click",s).on("$destroy",function(){i.remove(c)})}function s(e){n[0].hasAttribute("disabled")||i.isDisabled()||t.$apply(function(){i.setViewValue(r.value,e&&e.type)})}function c(){var e=i.getViewValue()==r.value;e!==o&&("md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(m,e),e&&i.setActiveDescendant(n.attr("id")),o=e,n.attr("aria-checked",e).toggleClass(m,e))}}}}e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],t.$inject=["$mdAria","$mdUtil","$mdTheming"],ue.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",t)}(),function(){e.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],t.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],n.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],r.$inject=["$$interimElementProvider"];var L=8,p=0,u=ue.element('<div class="md-container"><div class="md-icon"></div></div>');function e(k,T,S,D,N,O,I,e){var t=S.KEY_CODE;t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW;return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(e,t){var n=ue.element("<md-select-value><span></span></md-select-value>");n.append('<span class="md-select-icon" aria-hidden="true"></span>'),n.addClass("md-select-value"),n[0].hasAttribute("id")||n.attr("id","select_value_label_"+T.nextUid());var r=e.find("md-content");r.length||e.append(ue.element("<md-content>").append(e.contents()));r.attr("role","presentation"),t.mdOnOpen&&(e.find("md-content").prepend(ue.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),e.find("md-option").attr("ng-show","$$loadingAsyncDone"));if(t.name){var i=ue.element('<select class="md-visually-hidden"></select>');i.attr({name:t.name,"aria-hidden":"true",tabindex:"-1"});var o=e.find("md-option");ue.forEach(o,function(e){var t=ue.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?t.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&t.attr("value",e.getAttribute("value")),i.append(t)}),i.append('<option ng-value="'+t.ngModel+'" selected></option>'),e.parent().append(i)}var A=T.parseAttributeBoolean(t.multiple),a=A?"multiple":"",s='<div class="md-select-menu-container" aria-hidden="true" role="presentation"><md-select-menu role="presentation" {0}>{1}</md-select-menu></div>';s=T.supplant(s,[a,e.html()]),e.empty().append(n),e.append(s),t.tabindex||t.$set("tabindex",0);return function(i,n,o,e){var t,r,a,s,c,l=!0,u=e[0],d=e[1],m=e[2],h=e[3],f=n.find("md-select-value"),p=ue.isDefined(o.readonly),g=T.parseAttributeBoolean(o.mdNoAsterisk);if(g&&n.addClass("md-no-asterisk"),u){var v=u.isErrorGetter||function(){return m.$invalid&&(m.$touched||h&&h.$submitted)};if(u.input&&n.find("md-select-header").find("input")[0]!==u.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");u.input=n,u.label||N.expect(n,"aria-label",n.attr("placeholder")),i.$watch(v,u.setInvalid)}!function(){if(a=ue.element(n[0].querySelector(".md-select-menu-container")),s=i,o.mdContainerClass){var e=a[0].getAttribute("class")+" "+o.mdContainerClass;a[0].setAttribute("class",e)}(c=a.find("md-select-menu").controller("mdSelectMenu")).init(m,o.ngModel),n.on("$destroy",function(){a.remove()})}(),D(n);var b,$=m.$render;function y(){a&&(c=c||a.find("md-select-menu").controller("mdSelectMenu"),d.setLabelText(c.selectedLabels()))}function E(){if(r){var e=c.selectedLabels({mode:"aria"});n.attr("aria-label",e.length?r+": "+e:r)}}m.$render=function(){$(),y(),E(),_()},o.$observe("placeholder",m.$render),u&&u.label&&o.$observe("required",function(e){u.label.toggleClass("md-required",e&&!g)}),d.setLabelText=function(e){d.setIsPlaceholder(!e);var t=!1;if(o.mdSelectedText&&o.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(o.mdSelectedText||o.mdSelectedHtml)e=O(o.mdSelectedText||o.mdSelectedHtml)(i),t=!0;else if(!e){var n=o.placeholder||(u&&u.label?u.label.text():"");e=n||"",t=!0}var r=f.children().eq(0);o.mdSelectedHtml?r.html(I.getTrustedHtml(e)):t?r.text(e):r.html(e)},d.setIsPlaceholder=function(e){e?(f.addClass("md-select-placeholder"),u&&u.label&&u.label.addClass("md-placeholder")):(f.removeClass("md-select-placeholder"),u&&u.label&&u.label.removeClass("md-placeholder"))},p||(n.on("focus",function(e){u&&u.setFocused(!0)}),n.on("blur",function(e){l&&(l=!1,s._mdSelectIsOpen&&e.stopImmediatePropagation()),s._mdSelectIsOpen||(u&&u.setFocused(!1),_())})),d.triggerClose=function(){O(o.mdOnClose)(i)},i.$$postDigest(function(){!function(){var e=n.attr("aria-label")||n.attr("placeholder");!e&&u&&u.label&&(e=u.label.text());r=e,N.expect(n,"aria-label",e)}(),y(),E()}),i.$watch(function(){return c.selectedLabels()},y),o.$observe("ngMultiple",function(e){b&&b();var t=O(e);b=i.$watch(function(){return t(i)},function(e,t){e===de&&t===de||(e?n.attr("multiple","multiple"):n.removeAttr("multiple"),n.attr("aria-multiselectable",e?"true":"false"),a&&(c.setMultiple(e),$=m.$render,m.$render=function(){$(),y(),E(),_()},m.$render()))})}),o.$observe("disabled",function(e){ue.isString(e)&&(e=!0),t!==de&&t===e||((t=e)?n.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",x).off("keydown",M):n.attr({tabindex:o.tabindex,"aria-disabled":"false"}).on("click",x).on("keydown",M))}),o.hasOwnProperty("disabled")||o.hasOwnProperty("ngDisabled")||(n.attr({"aria-disabled":"false"}),n.on("click",x),n.on("keydown",M));var C={role:"listbox","aria-expanded":"false","aria-multiselectable":A&&!o.ngMultiple?"true":"false"};n[0].hasAttribute("id")||(C.id="select_"+T.nextUid());var w="select_container_"+T.nextUid();function _(){T.nextTick(function(){u&&u.setHasValue(0<c.selectedLabels().length||(n[0].validity||{}).badInput)})}function M(e){if(S.isNavigationKey(e))e.preventDefault(),x();else if(F(e,S)){e.preventDefault();var t=c.optNodeForKeyboardSearch(e);if(!t||t.hasAttribute("disabled"))return;var n=ue.element(t).controller("mdOption");c.isMultiple||c.deselect(Object.keys(c.selected)[0]),c.select(n.hashKey,n.value),c.refreshViewValue()}}function x(){s._mdSelectIsOpen=!0,n.attr("aria-expanded","true"),k.show({scope:s,preserveScope:!0,skipCompile:!0,element:a,target:n[0],selectCtrl:d,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!o.mdOnOpen&&(i.$eval(o.mdOnOpen)||!0)}).finally(function(){s._mdSelectIsOpen=!1,n.focus(),n.attr("aria-expanded","false"),m.$setTouched()})}a.attr("id",w),n.find("md-select-menu").length||(C["aria-owns"]=w),n.attr(C),i.$on("$destroy",function(){k.destroy().finally(function(){u&&(u.setFocused(!1),u.setHasValue(!1),u.input=null),m.$setTouched()})})}},controller:function(){}}}function t(h,f,e,i){return{restrict:"E",require:["mdSelectMenu"],scope:!(t.$inject=["$scope","$attrs","$element"]),controller:t,link:{pre:function(o,e,t,n){var a=n[0];function r(e){var t=f.getClosest(e.target,"md-option"),n=t&&ue.element(t).data("$mdOptionController");if(t&&n){if(t.hasAttribute("disabled"))return e.stopImmediatePropagation(),!1;var r=a.hashGetter(n.value),i=ue.isDefined(a.selected[r]);o.$apply(function(){a.isMultiple?i?a.deselect(r):a.select(r,n.value):i||(a.deselect(Object.keys(a.selected)[0]),a.select(r,n.value)),a.refreshViewValue()})}}e.addClass("_md"),i(e),e.on("click",r),e.on("keypress",function(e){13!=e.keyCode&&32!=e.keyCode||r(e)})}}};function t(o,e,i){var a,s=this;s.isMultiple=ue.isDefined(e.multiple),s.selected={},s.options={},o.$watchCollection(function(){return s.options},function(){s.ngModel.$render()}),s.setMultiple=function(e){var t=s.ngModel;if(a=a||t.$isEmpty,s.isMultiple=e,s.isMultiple){var n=!1,r=function(e){n?d():f.nextTick(function(){d(),n=!0})};t.$validators["md-multiple"]=i,t.$render=r,o.$watchCollection(s.modelBinding,function(e){i(e)&&r()}),t.$isEmpty=function(e){return!e||0===e.length}}else delete t.$validators["md-multiple"],t.$render=m;function i(e,t){return ue.isArray(e||t||[])}};var r,c,l,u="";function d(){var n=s.ngModel.$modelValue||s.ngModel.$viewValue||[];if(ue.isArray(n)){var e=Object.keys(s.selected),t=n.map(s.hashGetter);e.filter(function(e){return-1===t.indexOf(e)}).forEach(s.deselect),t.forEach(function(e,t){s.select(e,n[t])})}}function m(){var e=s.ngModel.$viewValue||s.ngModel.$modelValue;Object.keys(s.selected).forEach(s.deselect),s.select(s.hashGetter(e),e)}s.optNodeForKeyboardSearch=function(e){r&&clearTimeout(r),r=setTimeout(function(){u="",c=l=r=de},300),u+=e.key;var t=new RegExp("^"+u,"i");c||(c=i.find("md-option"),l=new Array(c.length),ue.forEach(c,function(e,t){l[t]=e.textContent.trim()}));for(var n=0;n<l.length;++n)if(t.test(l[n]))return c[n]},s.init=function(e,t){s.ngModel=e,s.modelBinding=t,s.ngModel.$isEmpty=function(e){return!s.options[s.hashGetter(e)]};var n=f.getModelOption(e,"trackBy");if(n){var r={},i=h(n);s.hashGetter=function(e,t){return r.$value=e,i(t||o,r)}}else s.hashGetter=function(e){return ue.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++p)):e};s.setMultiple(s.isMultiple)},s.selectedLabels=function(e){var t,n=(e=e||{}).mode||"html",r=f.nodesToArray(i[0].querySelectorAll("md-option[selected]"));return r.length?("html"==n?t=function(e){if(e.hasAttribute("md-option-empty"))return"";var t=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));var r=e.querySelector(".md-container");return r&&(t=t.replace(r.outerHTML,"")),t}:"aria"==n&&(t=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),f.uniq(r.map(t)).join(", ")):""},s.select=function(e,t){var n=s.options[e];n&&n.setSelected(!0),s.selected[e]=t},s.deselect=function(e){var t=s.options[e];t&&t.setSelected(!1),delete s.selected[e]},s.addOption=function(e,t){if(ue.isDefined(s.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+t.value+'" found.');s.options[e]=t,ue.isDefined(s.selected[e])&&(s.select(e,t.value),ue.isDefined(s.ngModel.$$rawModelValue)&&s.hashGetter(s.ngModel.$$rawModelValue)===e&&s.ngModel.$validate(),s.refreshViewValue())},s.removeOption=function(e){delete s.options[e]},s.refreshViewValue=function(){var e,t=[];for(var n in s.selected)(e=s.options[n])?t.push(e.value):t.push(s.selected[n]);var r=f.getModelOption(s.ngModel,"trackBy"),i=s.isMultiple?t:t[0],o=s.ngModel.$modelValue;(r?ue.equals(o,i):o+""===i)||(s.ngModel.$setViewValue(i),s.ngModel.$render())}}}function n(r,i,l){return e.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:e,compile:function(e,t){e.append(ue.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",t.tabindex||"0"),n=t,r=n.value,i=n.ngValue,r||i||e.attr("md-option-empty","");var n,r,i;return o}};function o(o,t,e,n){var a=n[0],s=n[1];function c(e,t,n){if(s.hashGetter){var r=s.hashGetter(t,o),i=s.hashGetter(e,o);a.hashKey=i,a.value=e,s.removeOption(r,a),s.addOption(i,a)}else n||o.$$postDigest(function(){c(e,t,!0)})}l(t),s.isMultiple&&(t.addClass("md-checkbox-enabled"),t.prepend(u.clone())),ue.isDefined(e.ngValue)?o.$watch(e.ngValue,c):ue.isDefined(e.value)?c(e.value):o.$watch(function(){return t.text().trim()},c),e.$observe("disabled",function(e){e?t.attr("tabindex","-1"):t.attr("tabindex","0")}),o.$$postDigest(function(){e.$observe("selected",function(e){ue.isDefined(e)&&("string"==typeof e&&(e=!0),e?(s.isMultiple||s.deselect(Object.keys(s.selected)[0]),s.select(a.hashKey,a.value)):s.deselect(a.hashKey),s.refreshViewValue())})}),r.attach(o,t),function(){var e={role:"option","aria-selected":"false"};t[0].hasAttribute("id")||(e.id="select_option_"+i.nextUid());t.attr(e)}(),o.$on("$destroy",function(){s.removeOption(a.hashKey,a)})}function e(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}}}function r(e){return t.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],e("$mdSelect").setDefaults({methods:["target"],options:t});function t(u,d,I,H,o,m,h,f,P){var p=I.dom.animator,g=d.KEY_CODE;return{parent:"body",themable:!0,onShow:function(a,s,c){return c.loadingAsync&&!c.isRemoved&&(a.$$loadingAsyncDone=!1,o.when(c.loadingAsync).then(function(){a.$$loadingAsyncDone=!0,delete c.loadingAsync}).then(function(){m(i)})),function(e,t){var n=s.find("md-select-menu");if(!t.target)throw new Error(I.supplant("$mdSelect.show() expected a target element in options.target but got '{0}'!",[t.target]));ue.extend(t,{isRemoved:!1,target:ue.element(t.target),parent:ue.element(t.parent),selectEl:n,contentEl:s.find("md-content"),optionNodes:n[0].getElementsByTagName("md-option")})}(0,c),c.hideBackdrop=(t=a,r=c,r.disableParentScroll&&!I.getClosest(r.target,"MD-DIALOG")?r.restoreScroll=I.disableScrollAround(r.element,r.parent):r.disableParentScroll=!1,r.hasBackdrop&&(r.backdrop=I.createBackdrop(t,"md-select-backdrop md-click-catcher"),f.enter(r.backdrop,P[0].body,null,{duration:0})),function(){r.backdrop&&r.backdrop.remove(),r.disableParentScroll&&r.restoreScroll(),delete r.restoreScroll}),(n=s,e=c,e.parent!==n.parent()&&n.parent().attr("aria-owns",n.attr("id")),n.parent().find("md-select-value").attr("aria-hidden","true"),e.parent.append(n),o(function(e,t){try{h(n,{removeClass:"md-leave",duration:0}).start().then(i).then(e)}catch(e){t(e)}})).then(function(e){var t,n,r,i,o;return s.attr("aria-hidden","false"),c.alreadyOpen=!0,c.cleanupInteraction=function(){if(!c.isRemoved){var r=c.selectEl,t=r.controller("mdSelectMenu")||{};return s.addClass("md-clickable"),c.backdrop&&c.backdrop.on("click",e),r.on("keydown",n),r.on("click",o),function(){c.backdrop&&c.backdrop.off("click",e),r.off("keydown",n),r.off("click",o),s.removeClass("md-clickable"),c.isRemoved=!0}}function e(e){e.preventDefault(),e.stopPropagation(),c.restoreFocus=!1,I.nextTick(u.hide,!0)}function n(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case g.UP_ARROW:return void i("prev");case g.DOWN_ARROW:return void i("next");case g.SPACE:case g.ENTER:var t=I.getClosest(e.target,"md-option");t&&(r.triggerHandler({type:"click",target:t}),e.preventDefault()),o(e);break;case g.TAB:case g.ESCAPE:e.stopPropagation(),e.preventDefault(),c.restoreFocus=!0,I.nextTick(u.hide,!0);break;default:if(F(e,d)){var n=r.controller("mdSelectMenu").optNodeForKeyboardSearch(e);c.focusedNode=n||c.focusedNode,n&&n.focus()}}}function i(e){for(var t,n=I.nodesToArray(c.optionNodes),r=n.indexOf(c.focusedNode);-1===r?r=0:"next"===e&&r<n.length-1?r++:"prev"===e&&0<r&&r--,(t=n[r]).hasAttribute("disabled")&&(t=de),!t&&r<n.length-1&&0<r;);t&&t.focus(),c.focusedNode=t}function o(i){if(!(i&&"click"==i.type&&i.currentTarget!=r[0]||function(){var e=!1;if(i&&0<i.currentTarget.children.length){var t=i.currentTarget.children[0],n=t.scrollHeight>t.clientHeight;if(n&&0<t.children.length){var r=i.pageX-i.currentTarget.getBoundingClientRect().left;r>t.querySelector("md-option").offsetWidth&&(e=!0)}}return e}())){var e=I.getClosest(i.target,"md-option");e&&e.hasAttribute&&!e.hasAttribute("disabled")&&(i.preventDefault(),i.stopPropagation(),t.isMultiple||(c.restoreFocus=!0,I.nextTick(function(){u.hide(t.ngModel.$viewValue)},!0)))}}}(),c.cleanupResizing=(r=a,i=s,o=c,t=function(){if(!o.isRemoved){var e=v(r,i,o),t=e.container,n=e.dropDown;t.element.css(p.toCss(t.styles)),n.element.css(p.toCss(n.styles))}},(n=ue.element(H)).on("resize",t),n.on("orientationchange",t),function(){n.off("resize",t),n.off("orientationchange",t)}),l(c.focusedNode),e},c.hideBackdrop);var n,e;var t,r;function i(){return o(function(e){if(c.isRemoved)return o.reject(!1);var t=v(a,s,c);t.container.element.css(p.toCss(t.container.styles)),t.dropDown.element.css(p.toCss(t.dropDown.styles)),m(function(){s.addClass("md-active"),t.dropDown.element.css(p.toCss({transform:""})),l(c.focusedNode),e()})})}function l(e){e&&!e.hasAttribute("disabled")&&e.focus()}},onRemove:function(e,t,n){var r=null,i=e.$on("$destroy",function(){r.end()});return(n=n||{}).cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?o():(r=h(t,{addClass:"md-leave"})).start().then(o);function o(){i(),t.removeClass("md-active").attr("aria-hidden","true").css({display:"none",top:"",right:"",bottom:"",left:"","font-size":"","min-width":""}),t.parent().find("md-select-value").removeAttr("aria-hidden"),function(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n?n.selectedLabels():""),t.triggerClose()}}(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}},hasBackdrop:!0,disableParentScroll:!0};function v(e,t,n){var r,i,o=t[0],a=n.target[0].children[0],s=P[0].body,c=n.selectEl[0],l=n.contentEl[0],u=s.getBoundingClientRect(),d=a.getBoundingClientRect(),m={left:u.left+L,top:L,bottom:u.height-L,right:u.width-L-(I.floatingScrollbars()?16:0)},h=d.top-m.top,f=(d.left,d.left,d.width,m.bottom-(d.top+d.height)),p=u.width-2*L,g=c.querySelector("md-option[selected]"),v=c.getElementsByTagName("md-option"),b=c.getElementsByTagName("md-optgroup"),$=function(e,t){var n=!1;try{var r=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=r}finally{}return n}(t,l);r=(i=n.loadingAsync)&&ue.isFunction(i.then)?l.firstElementChild||l:g||(b.length?b[0]:v.length?v[0]:l.firstElementChild||l),l.offsetWidth>p?l.style["max-width"]=p+"px":l.style.maxWidth=null,$&&c.classList.add("md-overflow");var y=r;"MD-OPTGROUP"===(y.tagName||"").toUpperCase()&&(r=y=v[0]||l.firstElementChild||l),n.focusedNode=y,o.style.display="block";var E,C,w,_,M,x,A=c.getBoundingClientRect(),k=(E=r)?{left:E.offsetLeft,top:E.offsetTop,width:E.offsetWidth,height:E.offsetHeight}:{left:0,top:0,width:0,height:0};if(r){var T=H.getComputedStyle(r);k.paddingLeft=parseInt(T.paddingLeft,10)||0,k.paddingRight=parseInt(T.paddingRight,10)||0}if($){var S=l.offsetHeight/2;l.scrollTop=k.top+k.height/2-S,h<S?l.scrollTop=Math.min(k.top,l.scrollTop+S-h):f<S&&(l.scrollTop=Math.max(k.top+k.height-A.height,l.scrollTop-S+f))}C=d.left+k.left-k.paddingLeft+2,w=Math.floor(d.top+d.height/2-k.height/2-k.top+l.scrollTop)+2,_=k.left+d.width/2+"px "+(k.top+k.height/2-l.scrollTop)+"px 0px",M=Math.min(d.width+k.paddingLeft+k.paddingRight,p),x=j.getComputedStyle(a)["font-size"];var D=o.getBoundingClientRect(),N=Math.round(100*Math.min(d.width/A.width,1))/100,O=Math.round(100*Math.min(d.height/A.height,1))/100;return{container:{element:ue.element(o),styles:{left:Math.floor(R(m.left,C,m.right-D.width)),top:Math.floor(R(m.top,w,m.bottom-D.height)),"min-width":M,"font-size":x}},dropDown:{element:ue.element(c),styles:{transformOrigin:_,transform:n.alreadyOpen?"":I.supplant("scale({0},{1})",[N,O])}}}}}function R(e,t,n){return Math.max(e,Math.min(t,n))}}function F(e,t){var n=String.fromCharCode(e.keyCode),r=e.keyCode<=31;return n&&n.length&&!r&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}ue.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",e).directive("mdSelectMenu",t).directive("mdOption",n).directive("mdOptgroup",function(){return{restrict:"E",compile:function(t,n){t.parent().find("md-select-header").length||function(){var e=t.find("label");e.length||(e=ue.element("<label>"),t.prepend(e));e.addClass("md-container-ignore"),e.attr("aria-hidden","true"),n.label&&e.text(n.label)}()}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",r)}(),function(){function e(c,l){return["$mdUtil","$window",function(a,s){return{restrict:"A",multiElement:!0,link:function(r,i,t){var o=r.$on("$md-resize-enable",function(){o();var e=i[0],n=e.nodeType===s.Node.ELEMENT_NODE?s.getComputedStyle(e):{};r.$watch(t[c],function(e){if(!!e===l){a.nextTick(function(){r.$broadcast("$md-resize")});var t={cachedTransitionStyles:n};a.dom.animator.waitTransitionEnd(i,t).then(function(){r.$broadcast("$md-resize")})}})})}}}]}ue.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function e(r,c,l,i){var u="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",d={find:function(e,t){var n=r.get(e);return n||t?n:(i.error(c.supplant(u,[e||""])),de)},waitFor:m};return function(e,t){if(ue.isUndefined(e))return d;var n,r,i,o,a=!0===t,s=d.find(e,a);return!s&&a?d.waitFor(e):!s&&ue.isUndefined(t)?(n=d,r=e,i=function(){return!1},o=function(){return l.when(c.supplant(u,[r||""]))},ue.extend({isLockedOpen:i,isOpen:i,toggle:o,open:o,close:o,onClose:ue.noop,then:function(e){return m(r).then(e||ue.noop)}},n)):s};function m(e){return r.when(e).catch(i.error)}}function t(r,b,i,$,y,E,e,C,w,_,M,x,A){return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),t}};function t(o,a,e,t){var s,c,l,u,d,m=null,h=null,f=_.when(!0),n=C(e.mdIsLockedOpen),p=ue.element(x);function g(e){return e.keyCode===i.KEY_CODE.ESCAPE?v(e):_.when(!0)}function v(e){return e.preventDefault(),t.close()}e.mdDisableScrollTarget&&((m=M[0].querySelector(e.mdDisableScrollTarget))?m=ue.element(m):w.warn(b.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),m||(m=a.parent()),e.hasOwnProperty("mdDisableBackdrop")||(c=b.createBackdrop(o,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(l=!0),a.addClass("_md"),$(a),c&&$.inherit(c,a),a.on("$destroy",function(){c&&c.remove(),t.destroy()}),o.$on("$destroy",function(){c&&c.remove()}),o.$watch(function(){return n(o.$parent,{$media:function(e){return w.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),r(e)},$mdMedia:r})},function(e,t){(o.isLockedOpen=e)===t?a.toggleClass("md-locked-open",!!e):E[e?"addClass":"removeClass"](a,"md-locked-open");c&&c.toggleClass("md-locked-open",!!e)}),o.$watch("isOpen",function(e){var t,n=b.findFocusTarget(a)||b.findFocusTarget(a,"[md-sidenav-focus]")||a,r=a.parent();l||(r[e?"on":"off"]("keydown",g),c&&c[e?"on":"off"]("click",v));t=function(e,t){var n=a[0],r=e[0].scrollTop;if(t&&r){d={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:r+"px",bottom:"auto",height:e[0].clientHeight+"px"};a.css(i),c.css(i)}if(!t&&d)return function(){n.style.top=d.top,n.style.bottom=d.bottom,n.style.height=d.height,c[0].style.top=null,c[0].style.bottom=null,c[0].style.height=null,d=null}}(r,e),e&&(h=M[0].activeElement,u=y.getLastInteractionType());return i=e,i&&!s?(s=m.css("overflow"),m.css("overflow","hidden")):ue.isDefined(s)&&(m.css("overflow",s),s=de),f=_.all([e&&c?E.enter(c,r):c?E.leave(c):_.when(!0),E[e?"removeClass":"addClass"](a,"md-closed")]).then(function(){o.isOpen&&(A(function(){p.triggerHandler("resize")}),n&&n.focus()),t&&t()});var i}),t.$toggleOpen=function(e){return o.isOpen===e?_.when(!0):(o.isOpen&&t.onCloseCb&&t.onCloseCb(),_(function(t){o.isOpen=e,b.nextTick(function(){f.then(function(e){!o.isOpen&&h&&"keyboard"===u&&(h.focus(),h=null),t(e)})})}))}}}function n(t,e,n,r,i){var o=this;o.isOpen=function(){return!!t.isOpen},o.isLockedOpen=function(){return!!t.isLockedOpen},o.onClose=function(e){return o.onCloseCb=e,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&&-1<a.indexOf(i.startSymbol()),c=s?i(a)(t.$parent):a;o.destroy=n.register(o,c),s&&e.$observe("mdComponentId",function(e){e&&e!==o.$$mdHandle&&(o.destroy(),o.destroy=n.register(o,e))})}e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],t.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],n.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],ue.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",t).directive("mdSidenavFocus",function(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,r){}}}).controller("$mdSidenavController",n)}(),function(){e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],ue.module("material.components.slider",["material.core"]).directive("mdSlider",e).directive("mdSliderContainer",function(){return{controller:function(){},compile:function(e){var t=e.find("md-slider");if(t){var n=t.attr("md-vertical");return n!==de&&e.attr("md-vertical",""),t.attr("flex")||t.attr("flex",""),function(e,a,t,n){function r(e){a.children().attr("disabled",e),a.find("input").attr("disabled",e)}a.addClass("_md");var s,i=ue.noop;t.disabled?r(!0):t.ngDisabled&&(i=e.$watch(t.ngDisabled,function(e){r(e)})),e.$on("$destroy",function(){i()}),n.fitInputWidthToTextLength=function(e){var t=a[0].querySelector("md-input-container");if(t){var n=getComputedStyle(t),r=parseInt(n.minWidth),i=parseInt(n.paddingLeft)+parseInt(n.paddingRight);s=s||parseInt(n.maxWidth);var o=Math.max(s,r+i+r/2*e);t.style.maxWidth=o+"px"}}}}}}});var Q=10,ee=4;function e(q,z,i,Y,W,G,K,X,Z,J){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:function(e,t){var n=ue.element(e[0].getElementsByClassName("md-slider-wrapper")),r=t.tabindex||0;n.attr("tabindex",r),(t.disabled||t.ngDisabled)&&n.attr("tabindex",-1);return n.attr("role","slider"),i.expect(e,"aria-label"),o}};function o(i,o,e,t){G(o);var r=t[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},n=t[1],a=(ue.element(Y.getClosest(o,"_md-slider-container",!0)),e.ngDisabled?ue.bind(null,X(e.ngDisabled),i.$parent):function(){return o[0].hasAttribute("disabled")}),s=ue.element(o[0].querySelector(".md-thumb")),c=ue.element(o[0].querySelector(".md-thumb-text")),l=s.parent(),u=ue.element(o[0].querySelector(".md-track-container")),d=ue.element(o[0].querySelector(".md-track-fill")),m=ue.element(o[0].querySelector(".md-track-ticks")),h=ue.element(o[0].getElementsByClassName("md-slider-wrapper")),f=(ue.element(o[0].getElementsByClassName("md-slider-content")),Y.throttle(D,5e3)),p=ue.isDefined(e.mdVertical),g=ue.isDefined(e.mdDiscrete),v=ue.isDefined(e.mdInvert);ue.isDefined(e.min)?e.$observe("min",x):x(0),ue.isDefined(e.max)?e.$observe("max",A):A(100),ue.isDefined(e.step)?e.$observe("step",k):k(1),ue.isDefined(e.round)?e.$observe("round",T):T(3);ue.noop;function b(){D(),H()}e.ngDisabled&&i.$parent.$watch(e.ngDisabled,function(){o.attr("aria-disabled",!!a())}),K.register(h,"drag",{horizontal:!p}),i.mouseActive=!1,h.on("keydown",function(e){if(a())return;var t,n=W.KEY_CODE;switch(e.keyCode){case n.DOWN_ARROW:case n.LEFT_ARROW:e.preventDefault(),t=-E;break;case n.UP_ARROW:case n.RIGHT_ARROW:e.preventDefault(),t=E;break;case n.PAGE_DOWN:e.preventDefault(),t=-E*Q;break;case n.PAGE_UP:e.preventDefault(),t=E*Q;break;case n.HOME:e.preventDefault(),e.stopPropagation(),O($);break;case n.END:e.preventDefault(),e.stopPropagation(),O(y)}t&&(t=v?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=ee),e.preventDefault(),e.stopPropagation(),O(r.$viewValue+t))}).on("mousedown",function(){(function(){if(!g||a())return;if(ue.isUndefined(E))return;if(E<=0){var e="Slider step value must be greater than zero when in discrete mode";throw Z.error(e),new Error(e)}var t=Math.floor((y-$)/E);w||(w=ue.element("<canvas>").css("position","absolute"),m.append(w),_=w[0].getContext("2d"));var n,r=N();!r||r.height||r.width||(D(),r=S);w[0].width=r.width,w[0].height=r.height;for(var i=0;i<=t;i++){var o=z.getComputedStyle(m[0]);_.fillStyle=o.color||"black",n=Math.floor((p?r.height:r.width)*(i/t)),_.fillRect(p?0:n-1,p?n-1:0,p?r.width:2,p?2:r.height)}})(),i.mouseActive=!0,h.removeClass("md-focused"),J(function(){i.mouseActive=!1},100)}).on("focus",function(){!1===i.mouseActive&&h.addClass("md-focused")}).on("blur",function(){h.removeClass("md-focused"),o.removeClass("md-active"),function(){if(w&&_){var e=N();_.clearRect(0,0,e.width,e.height)}}()}).on("$md.pressdown",function(e){if(a())return;o.addClass("md-active"),o[0].focus(),D();var t=P(R(U(B(p?e.pointer.y:e.pointer.x))));i.$apply(function(){I(t),L(V(t))})}).on("$md.pressup",function(e){if(a())return;o.removeClass("md-dragging");var t=P(R(U(B(p?e.pointer.y:e.pointer.x))));i.$apply(function(){I(t),H()})}).on("$md.dragstart",function(e){if(a())return;F=!0,e.stopPropagation(),o.addClass("md-dragging"),j(e)}).on("$md.drag",function(e){if(!F)return;e.stopPropagation(),j(e)}).on("$md.dragend",function(e){if(!F)return;e.stopPropagation(),F=!1}),setTimeout(b,0);var $,y,E,C,w,_,M=q.throttle(b);function x(e){$=parseFloat(e),r.$viewValue=P(r.$modelValue,$,y),h.attr("aria-valuemin",e),b()}function A(e){y=parseFloat(e),r.$viewValue=P(r.$modelValue,$,y),h.attr("aria-valuemax",e),b()}function k(e){E=parseFloat(e)}function T(e){C=P(parseInt(e),0,6)}ue.element(z).on("resize",M),i.$on("$destroy",function(){ue.element(z).off("resize",M)}),r.$render=H,r.$viewChangeListeners.push(H),r.$formatters.push(P),r.$formatters.push(R);var S={};function D(){S=u[0].getBoundingClientRect()}function N(){return f(),S}function O(e){i.$evalAsync(function(){I(e)})}function I(e){r.$setViewValue(P(R(e)))}function H(){isNaN(r.$viewValue)&&(r.$viewValue=r.$modelValue),r.$viewValue=P(r.$viewValue);var e=V(r.$viewValue);i.modelValue=r.$viewValue,h.attr("aria-valuenow",r.$viewValue),L(e),c.text(r.$viewValue)}function P(e,t,n){if(ue.isNumber(e))return t=ue.isNumber(t)?t:$,n=ue.isNumber(n)?n:y,Math.max(t,Math.min(n,e))}function R(e){if(ue.isNumber(e)){var t=Math.round((e-$)/E)*E+$;return t=Math.round(t*Math.pow(10,C))/Math.pow(10,C),n&&n.fitInputWidthToTextLength&&Y.debounce(function(){n.fitInputWidthToTextLength(t.toString().length)},100)(),t}}function L(e){var t;t=e;var n=100*(e=Math.max(0,Math.min(t||0,1)))+"%",r=v?100*(1-e)+"%":n;p?l.css("bottom",n):Y.bidiProperty(l,"left","right",n),d.css(p?"height":"width",r),o.toggleClass(v?"md-max":"md-min",0===e),o.toggleClass(v?"md-min":"md-max",1===e)}D();var F=!1;function j(e){var t,n,r;g?(n=p?e.pointer.y:e.pointer.x,r=P(R(U(B(n)))),L(B(n)),c.text(r)):(t=p?e.pointer.y:e.pointer.x,i.$evalAsync(function(){I(U(B(t)))}))}function B(e){var t=(e-(p?S.top:S.left))/(p?S.height:S.width);return p||"rtl"!==Y.bidi()||(t=1-t),Math.max(0,Math.min(1,p?1-t:t))}function U(e){return $+(v?1-e:e)*(y-$)}function V(e){var t=(e-$)/(y-$);return v?1-t:t}}}}(),function(){function e(l,u,d,s){var c=d.checkStickySupport();return function(e,t,n){var r=t.controller("mdContent");if(r)if(c)t.css({position:c,top:0,"z-index":2});else{var i=r.$element.data("$$sticky");i||(i=function(e){var r,i=e.$element,o=u.throttle(t);return function(e){var t,n,r=200;function i(){+d.now()-n>r?(t=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),u.throttle(i))}e.on("scroll touchmove",function(){t||(t=!0,u.throttle(i),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),n=+d.now()})}(i),i.on("$scrollstart",o),i.on("$scroll",function e(){var t=i.prop("scrollTop"),n=(e.prevScrollTop||0)<t;if(0!==(e.prevScrollTop=t)){if(n){if(r.next&&r.next.top<=t)return void s(r.next);if(r.current&&r.next&&r.next.top-t<=r.next.height)return void c(r.current,t+(r.next.top-r.next.height-t))}if(!n){if(r.current&&r.prev&&t<r.current.top)return void s(r.prev);if(r.next&&r.current&&t>=r.next.top-r.current.height)return void c(r.current,t+(r.next.top-t-r.current.height))}r.current&&c(r.current,t)}else s(null)}),r={prev:null,current:null,next:null,items:[],add:function(n,e){e.addClass("md-sticky-clone");var t={element:n,clone:e};return r.items.push(t),d.nextTick(function(){i.prepend(t.clone)}),o(),function(){r.items.forEach(function(e,t){e.element[0]===n[0]&&(r.items.splice(t,1),e.clone.remove())}),o()}},refreshElements:t};function t(){var e;r.items.forEach(a),r.items=r.items.sort(function(e,t){return e.top<t.top?-1:1});for(var t=i.prop("scrollTop"),n=r.items.length-1;0<=n;n--)if(t>r.items[n].top){e=r.items[n];break}s(e)}function a(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==i[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var n=d.floatingScrollbars()?"0":de;d.bidi(e.clone,"margin-left",e.left,n),d.bidi(e.clone,"margin-right",n,e.right)}function s(e){if(r.current!==e){r.current&&(c(r.current,null),n(r.current,null)),e&&n(e,"active"),r.current=e;var t=r.items.indexOf(e);r.next=r.items[t+1],r.prev=r.items[t-1],n(r.next,"next"),n(r.prev,"prev")}}function n(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function c(e,t){e&&(null===t||t===de?e.translateY&&(e.translateY=null,e.clone.css(l.CSS.TRANSFORM,"")):(e.translateY=t,d.bidi(e.clone,l.CSS.TRANSFORM,"translate3d("+e.left+"px,"+t+"px,0)","translateY("+t+"px)")))}}(r),r.$element.data("$$sticky",i));var o=n||s(t.clone())(e),a=i.add(t,o);e.$on("$destroy",a)}}}e.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],ue.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e)}(),function(){function e(s,c,l,u,d){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(n,r,e,t,i){l(r),r.addClass("_md"),u.prefixer().removeAttribute(r,"ng-repeat");var o=r[0].outerHTML;function a(e){return ue.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),d.expect(r,"aria-level","2"),i(n,function(e){a(r).append(e)}),r.hasClass("md-no-sticky")||i(n,function(e){var t=c('<div class="md-subheader-wrapper" aria-hidden="true">'+o+"</div>")(n);u.nextTick(function(){a(t).append(e)}),s(n,r,t)})}}}e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],ue.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e)}(),function(){function e(e){t.$inject=["$parse"];var o="md"+e,a="$md."+e.toLowerCase();return t;function t(i){return{restrict:"A",link:function(n,e,t){var r=i(t[o]);e.on(a,function(e){var t=e.currentTarget;n.$applyAsync(function(){r(n,{$event:e,$target:{current:t}})})})}}}}ue.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight")).directive("mdSwipeUp",e("SwipeUp")).directive("mdSwipeDown",e("SwipeDown"))}(),function(){function e(e,d,m,h,f,p,g){var n=e[0];return{restrict:"E",priority:m.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:function(e,t){var u=n.compile(e,t).post;return e.addClass("md-dragging"),function(n,r,e,t){t[0];var i=t[1]||d.fakeNgModel(),o=(t[2],null);null!=e.disabled?o=function(){return!0}:e.ngDisabled&&(o=h(e.ngDisabled));var a,s=ue.element(r[0].querySelector(".md-thumb-container")),c=ue.element(r[0].querySelector(".md-container")),l=ue.element(r[0].querySelector(".md-label"));f(function(){r.removeClass("md-dragging")}),u(n,r,e,t),o&&n.$watch(o,function(e){r.attr("tabindex",e?-1:0)}),e.$observe("mdInvert",function(e){var t=d.parseAttributeBoolean(e);t?r.prepend(l):r.prepend(c),r.toggleClass("md-inverted",t)}),p.register(c,"drag"),c.on("$md.dragstart",function(e){o&&o(n)||(e.stopPropagation(),r.addClass("md-dragging"),a={width:s.prop("offsetWidth")})}).on("$md.drag",function(e){if(a){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/a.width,n=i.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),s.css(m.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),a.translate=n}}).on("$md.dragend",function(e){var t;a&&(e.stopPropagation(),r.removeClass("md-dragging"),s.css(m.CSS.TRANSFORM,""),(i.$viewValue?a.translate<.5:.5<a.translate)&&(t=!i.$viewValue,n.$apply(function(){i.$setViewValue(t),i.$render()})),a=null,n.skipToggle=!0,g(function(){n.skipToggle=!1},1))})}}}}e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],ue.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e)}(),ue.module("material.components.tabs",["material.core","material.components.icon"]),ue.module("material.components.tabs").service("MdTabsPaginationService",function(){return{decreasePageOffset:function(e,t){var n,r,i=e.canvas,o=s(e);for(n=0;n<o.length;n++)if(o[n]>=t){r=o[n];break}return Math.max(0,r-i.clientWidth)},increasePageOffset:function(e,t){var n,r,i=e.canvas,o=c(e)-i.clientWidth,a=s(e);for(n=0;a.length,a[n]<=t+i.clientWidth;n++)r=a[n];return Math.min(o,r)},getTabOffsets:s,getTotalTabsWidth:c};function s(e){var t,n,r=0,i=[];for(t=0;t<e.tabs.length;t++)n=e.tabs[t],i.push(r),r+=n.offsetWidth;return i}function c(e){var t,n,r=0;for(t=0;t<e.tabs.length;t++)n=e.tabs[t],r+=n.offsetWidth;return r}}),ue.module("material.components.tabs").directive("mdTab",function(){return{require:"^?mdTabs",terminal:!0,compile:function(e,t){var n=c(e,"md-tab-label"),r=c(e,"md-tab-body");if(0===n.length&&(n=ue.element("<md-tab-label></md-tab-label>"),t.label?n.text(t.label):n.append(e.contents()),0===r.length)){var i=e.contents().detach();(r=ue.element("<md-tab-body></md-tab-body>")).append(i)}return e.append(n),r.html()&&e.append(r),o},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect",tabClass:"@mdTabClass"}};function o(e,t,n,r){if(r){var i=r.getTabElementIndex(t),o=c(t,"md-tab-body").remove(),a=c(t,"md-tab-label").remove(),s=r.insertTab({scope:e,parent:e.$parent,index:i,element:t,template:o.html(),label:a.html()},i);e.select=e.select||ue.noop,e.deselect=e.deselect||ue.noop,e.$watch("active",function(e){e&&r.select(s.getIndex(),!0)}),e.$watch("disabled",function(){r.refreshIndex()}),e.$watch(function(){return r.getTabElementIndex(t)},function(e){s.index=e,r.updateTabOrder()}),e.$on("$destroy",function(){r.removeTab(s)})}}function c(e,t){for(var n=e[0].children,r=0,i=n.length;r<i;r++){var o=n[r];if(o.tagName===t.toUpperCase())return ue.element(o)}return ue.element()}}),ue.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,r){r&&r.attachRipple(e,t)}}}),ue.module("material.components.tabs").directive("mdTabLabel",function(){return{terminal:!0}}),function(){function e(r){return{restrict:"A",compile:function(e,t){var n=r(t.mdTabScroll,null,!0);return function(t,e){e.on("wheel",function(e){t.$apply(function(){n(t,{$event:e})})})}}}}e.$inject=["$parse"],ue.module("material.components.tabs").directive("mdTabScroll",e)}(),function(){function e(l,u,n,r,i,d,c,o,a,s,t,m,h){var f=this,p=!1,g=[],v=!1,b=!1;function $(t,e){var n=o.$normalize("md-"+t);function r(e){f[t]="false"!==e}e&&P(t,e),o.hasOwnProperty(n)&&r(o[n]),o.$observe(n,r)}function y(){v=!0,ue.element(n).off("resize",S)}function E(){var e=O();ue.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(f.stretchTabs){case"always":return!0;case"never":return!1;default:return!f.shouldPaginate&&n.matchMedia("(max-width: 600px)").matches}}()),z()}function C(){f.shouldCenterTabs=I()}function w(t,e){if(t!==e){var n=O();ue.forEach(n.tabs,function(e){e.style.maxWidth=t+"px"}),ue.forEach(n.dummies,function(e){e.style.maxWidth=t+"px"}),d.nextTick(f.updateInkBarStyles)}}function _(e,t){e!==t&&(f.maxTabWidth=F(),f.shouldCenterTabs=I(),d.nextTick(function(){f.maxTabWidth=F(),U(f.selectedIndex)}))}function M(e){u[e?"removeClass":"addClass"]("md-no-tab-content")}function x(e){var t=(f.shouldCenterTabs||W()?"":"-")+e+"px";t=t.replace("--",""),ue.element(O().paging).css(r.CSS.TRANSFORM,"translate("+t+", 0)"),l.$broadcast("$mdTabsPaginationChanged")}function A(e,t){e!==t&&O().tabs[e]&&(U(),B())}function k(e,t){e!==t&&(f.selectedIndex=H(e),f.lastSelectedIndex=t,f.updateInkBarStyles(),q(),U(e),l.$broadcast("$mdTabsChanged"),f.tabs[t]&&f.tabs[t].scope.deselect(),f.tabs[e]&&f.tabs[e].scope.select())}function T(e,t){p||(f.focusIndex=f.selectedIndex=e),t&&f.noSelectClick||d.nextTick(function(){f.tabs[e].element.triggerHandler("click")},!1)}function S(){f.lastSelectedIndex=f.selectedIndex,f.offsetLeft=Y(f.offsetLeft),d.nextTick(function(){f.updateInkBarStyles(),R()})}function D(e){ue.element(O().inkBar).toggleClass("ng-hide",e)}function N(e){u.toggleClass("md-dynamic-height",e)}function O(){var e={},t=u[0];return e.wrapper=t.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.nextButton=t.querySelector("md-next-button"),e.prevButton=t.querySelector("md-prev-button"),e.contents=t.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function I(){return f.centerTabs&&!f.shouldPaginate}function H(e){if(-1===e)return-1;var t,n,r=Math.max(f.tabs.length-e,e);for(t=0;t<=r;t++){if((n=f.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=f.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function P(e,n,r){Object.defineProperty(f,e,{get:function(){return r},set:function(e){var t=r;r=e,n&&n(e,t)}})}function R(){f.maxTabWidth=F(),f.shouldPaginate=function(){var e;if(f.noPagination||!b)return!1;var t=u.prop("clientWidth");return ue.forEach(O().tabs,function(e){t-=e.offsetWidth}),e=t<0,d.msie&&(O().paging.style.width=e?"999999px":de),e}()}function L(e){var t=0;return ue.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function F(){var e=O().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function j(e,t){var n,r=t?"focusIndex":"selectedIndex",i=f[r];for(n=i+e;f.tabs[n]&&f.tabs[n].scope.disabled;n+=e);n=(i+e+f.tabs.length)%f.tabs.length,f.tabs[n]&&(f[r]=n)}function B(){f.styleTabItemFocus="keyboard"===t.getLastInteractionType();var e=O().tabs[f.focusIndex];e&&e.focus()}function U(e){var t=O();if(ue.isNumber(e)||(e=f.focusIndex),t.tabs[e]&&!f.shouldCenterTabs){var n=t.tabs[e],r=n.offsetLeft,i=n.offsetWidth+r;if(0!==e)if(W()){var o=L(Array.prototype.slice.call(t.tabs,0,e)),a=L(Array.prototype.slice.call(t.tabs,0,e+1));f.offsetLeft=Math.min(f.offsetLeft,Y(o)),f.offsetLeft=Math.max(f.offsetLeft,Y(a-t.canvas.clientWidth))}else f.offsetLeft=Math.max(f.offsetLeft,Y(i-t.canvas.clientWidth+32)),f.offsetLeft=Math.min(f.offsetLeft,Y(r));else f.offsetLeft=0}}function V(){f.selectedIndex=H(f.selectedIndex),f.focusIndex=H(f.focusIndex)}function q(){if(!f.dynamicHeight)return u.css("height","");if(!f.tabs.length)return g.push(q);var e=O(),t=e.contents[f.selectedIndex],n=t?t.offsetHeight:0,r=e.wrapper.offsetHeight,i=n+r,o=u.prop("clientHeight");if(o!==i){"bottom"===u.attr("md-align-tabs")&&(o-=r,i-=r,u.attr("md-border-bottom")!==de&&++o),p=!0;var a={height:o+"px"},s={height:i+"px"};u.css(a),c(u,{from:a,to:s,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){u.css({transition:"none",height:""}),d.nextTick(function(){u.css("transition","")}),p=!1})}}function z(e,t){if(!f.noInkBar){var n=O();if(n.tabs[f.selectedIndex])if(f.tabs.length)if(u.prop("offsetParent")){var r=f.selectedIndex,i=n.paging.offsetWidth,o=n.tabs[r],a=o.offsetLeft,s=i-a-o.offsetWidth;if(f.shouldCenterTabs){var c=L(n.tabs);c<i&&e!==i&&t!==c&&m(z,0,!0,i,c)}!function(){var e=O(),t=f.selectedIndex,n=f.lastSelectedIndex,r=ue.element(e.inkBar);if(!ue.isNumber(n))return;r.toggleClass("md-left",t<n).toggleClass("md-right",n<t)}(),ue.element(n.inkBar).css({left:a+"px",right:s+"px"})}else(function e(){e.watcher||(e.watcher=l.$watch(function(){d.nextTick(function(){e.watcher&&u.prop("offsetParent")&&(e.watcher(),e.watcher=null,S())},!1)}))})();else g.push(f.updateInkBarStyles);else ue.element(n.inkBar).css({left:"auto",right:"auto"})}}function Y(e){var t=O();if(!t.tabs.length||!f.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],r=n.offsetLeft+n.offsetWidth;return e=W()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),Math.max(0,e)):(e=Math.max(0,e),Math.min(r-t.canvas.clientWidth,e))}function W(){return"rtl"===d.bidi()}f.$onInit=function(){(function(t,e){var n=o.$normalize("md-"+t);e&&P(t,e);o.$observe(n,function(e){f[t]=e})})("stretchTabs",E),P("focusIndex",A,f.selectedIndex||0),P("offsetLeft",x,0),P("hasContent",M,!1),P("maxTabWidth",w,F()),P("shouldPaginate",_,!1),$("noInkBar",D),$("dynamicHeight",N),$("noPagination"),$("swipeContent"),$("noDisconnect"),$("autoselect"),$("noSelectClick"),$("centerTabs",C),$("enableDisconnect"),f.scope=l,f.parent=l.$parent,f.tabs=[],f.lastSelectedIndex=null,f.hasFocus=!1,f.styleTabItemFocus=!1,f.shouldCenterTabs=I(),f.tabContentPrefix="tab-content-",f.navigationHint="Use the left and right arrow keys to navigate between tabs",f.selectedIndex=f.selectedIndex||0,e=o.$mdTabsTemplate,t=ue.element(u[0].querySelector("md-tab-data")),t.html(e),a(t.contents())(f.parent),delete o.$mdTabsTemplate,l.$watch("$mdTabsCtrl.selectedIndex",k),ue.element(n).on("resize",S),l.$on("$destroy",y),s(u),d.nextTick(function(){q(),U(),z(),f.tabs[f.selectedIndex]&&f.tabs[f.selectedIndex].scope.select(),b=!0,R()});var e,t},f.updatePagination=d.debounce(R,100),f.redirectFocus=B,f.attachRipple=function(e,t){var n=O(),r={colorElement:ue.element(n.inkBar)};i.attach(e,t,r)},f.insertTab=function(e,t){var n=b,r={getIndex:function(){return f.tabs.indexOf(i)},isActive:function(){return this.getIndex()===f.selectedIndex},isLeft:function(){return this.getIndex()<f.selectedIndex},isRight:function(){return this.getIndex()>f.selectedIndex},shouldRender:function(){return!f.noDisconnect||this.isActive()},hasFocus:function(){return f.styleTabItemFocus&&f.hasFocus&&this.getIndex()===f.focusIndex},id:d.nextUid(),hasContent:!(!e.template||!e.template.trim())},i=ue.extend(r,e);ue.isDefined(t)?f.tabs.splice(t,0,i):f.tabs.push(i);return g.forEach(function(e){d.nextTick(e)}),g=[],function(){var e,t=!1;for(e=0;e<f.tabs.length;e++)if(f.tabs[e].hasContent){t=!0;break}f.hasContent=t}(),d.nextTick(function(){R(),function(e){if(e.hasContent){var t=u[0].querySelectorAll('[md-tab-id="'+e.id+'"]');ue.element(t).attr("aria-controls",f.tabContentPrefix+e.id)}}(i),n&&f.autoselect&&d.nextTick(function(){d.nextTick(function(){T(f.tabs.indexOf(i))})})}),i},f.removeTab=function(e){if(v)return;var t=f.selectedIndex,n=f.tabs.splice(e.getIndex(),1)[0];V(),f.selectedIndex===t&&(n.scope.deselect(),f.tabs[f.selectedIndex]&&f.tabs[f.selectedIndex].scope.select());d.nextTick(function(){R(),f.offsetLeft=Y(f.offsetLeft)})},f.select=T,f.scroll=function(e){if(!f.shouldPaginate)return;e.preventDefault(),e.deltaY?f.offsetLeft=Y(f.offsetLeft+e.deltaY):e.deltaX&&(f.offsetLeft=Y(f.offsetLeft+e.deltaX))},f.nextPage=function(){if(!f.canPageForward())return;var e=h.increasePageOffset(O(),f.offsetLeft);f.offsetLeft=Y(e)},f.previousPage=function(){if(!f.canPageBack())return;var e=h.decreasePageOffset(O(),f.offsetLeft);f.offsetLeft=Y(e)},f.keydown=function(e){switch(e.keyCode){case r.KEY_CODE.LEFT_ARROW:e.preventDefault(),j(-1,!0);break;case r.KEY_CODE.RIGHT_ARROW:e.preventDefault(),j(1,!0);break;case r.KEY_CODE.SPACE:case r.KEY_CODE.ENTER:e.preventDefault(),p||T(f.focusIndex);break;case r.KEY_CODE.TAB:f.focusIndex!==f.selectedIndex&&(f.focusIndex=f.selectedIndex)}},f.canPageForward=function(){var e=O(),t=e.tabs[e.tabs.length-1];if(W())return f.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+f.offsetLeft},f.canPageBack=function(){return 0<f.offsetLeft},f.refreshIndex=V,f.incrementIndex=j,f.getTabElementIndex=function(e){var t=u[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},f.updateInkBarStyles=d.debounce(z,100),f.updateTabOrder=d.debounce(function(){var e=f.tabs[f.selectedIndex],t=f.tabs[f.focusIndex];f.tabs=f.tabs.sort(function(e,t){return e.index-t.index}),f.selectedIndex=f.tabs.indexOf(e),f.focusIndex=f.tabs.indexOf(t)},100),f.getFocusedTabId=function(){var e=f.tabs[f.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===ue.version.major&&ue.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],ue.module("material.components.tabs").controller("MdTabsController",e)}(),function(){function e(n){return{scope:{navigationHint:"@?mdNavigationHint",selectedIndex:"=?mdSelected"},template:function(e,t){return t.$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="'+n.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="'+n.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)" role="tablist" aria-label="{{::$mdTabsCtrl.navigationHint}}"><md-tab-item tabindex="{{ tab.isActive() ? 0 : -1 }}" class="md-tab {{::tab.scope.tabClass}}" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" 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-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 aria-hidden="true" class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" 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)" 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}}e.$inject=["$$mdSvgRegistry"],ue.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(c,l){return{require:"^?mdTabs",link:function(e,t,n,r){if(r){var i,o,a=function(){r.updatePagination(),r.updateInkBarStyles()};if("MutationObserver"in l){(i=new MutationObserver(a)).observe(t[0],{childList:!0,subtree:!0,characterData:!0}),o=i.disconnect.bind(i)}else{var s=c.debounce(a,15,null,!1);t.on("DOMSubtreeModified",s),o=t.off.bind(t,"DOMSubtreeModified",s)}e.$on("$destroy",function(){o()})}}}}e.$inject=["$mdUtil","$window"],ue.module("material.components.tabs").directive("mdTabsDummyWrapper",e)}(),function(){function e(a,s){return{restrict:"A",link:function(e,t,n,r){if(!r)return;var i=r.enableDisconnect?e.compileScope.$new():e.compileScope;return t.html(e.template),a(t.contents())(i),s.nextTick(function(){e.$watch("connected",function(e){!1===e?r.enableDisconnect&&s.disconnectScope(i):o()}),e.$on("$destroy",o)});function o(){r.enableDisconnect&&s.reconnectScope(i)}},scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}e.$inject=["$compile","$mdUtil"],ue.module("material.components.tabs").directive("mdTabsTemplate",e)}(),function(){function e(n){return{restrict:"E",link:function(e,t){t.addClass("_md"),e.$on("$destroy",function(){n.destroy()})}}}function t(e){n.$inject=["$mdToast","$scope","$log"],r.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document"];var m,h="ok";function t(e){m=e}return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:r}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","actionKey","actionHint","highlightAction","highlightClass","theme","parent","dismissHint"],options:["$mdToast","$mdTheming",function(e,t){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">  <div class="md-toast-content" aria-live="polite" aria-relevant="all">    <span class="md-toast-text">      {{ toast.content }}    </span>    <span class="md-visually-hidden">{{ toast.dismissHint }}</span>    <span class="md-visually-hidden" ng-if="toast.action && toast.actionKey">      {{ toast.actionHint }}    </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:n,theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",t).addMethod("updateContent",t);function n(t,n,r){this.$onInit=function(){var e=this;e.highlightAction&&(n.highlightClasses=["md-highlight",e.highlightClass]),e.action&&!e.actionKey&&r.warn("Toasts with actions should define an actionKey for accessibility.","Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple"),e.actionKey&&!e.actionHint&&(e.actionHint='Press Control-"'+e.actionKey+'" to '),e.dismissHint||(e.dismissHint="Press Escape to dismiss."),n.$watch(function(){return m},function(){e.content=m}),this.resolve=function(){t.hide(h)}}}function r(r,s,c,l,u){var d="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,i,o){m=o.textContent||o.content;var a=!l("gt-sm");i=c.extractElementByName(i,"md-toast",!0),o.element=i,o.onSwipe=function(e,t){var n=e.type.replace("$md.",""),r=n.replace("swipe","");"down"===r&&-1!==o.position.indexOf("top")&&!a||"up"===r&&(-1!==o.position.indexOf("bottom")||a)||("left"!==r&&"right"!==r||!a)&&(i.addClass("md-"+n),c.nextTick(s.cancel))},o.openClass=(t=o.position,l("gt-xs")?"md-toast-open-"+(-1<t.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"),i.addClass(o.toastClass),o.parent.addClass(o.openClass),c.hasComputedStyle(o.parent,"position","static")&&o.parent.css("position","relative");var t;n=e.toast&&e.toast.actionKey?e.toast.actionKey:de,u.on("keydown",function(e){"Escape"===e.key&&s.hide(!1),n&&e.key===n&&e.ctrlKey&&s.hide(h)}),i.on(d,o.onSwipe),i.addClass(a?"md-bottom":o.position.split(" ").map(function(e){return"md-"+e}).join(" ")),o.parent&&o.parent.addClass("md-toast-animating");var n;return r.enter(i,o.parent).then(function(){o.parent&&o.parent.removeClass("md-toast-animating")})},onRemove:function(e,t,n){e.toast&&e.toast.actionKey&&u.off("keydown");t.off(d,n.onSwipe),n.parent&&n.parent.addClass("md-toast-animating");n.openClass&&n.parent.removeClass(n.openClass);return(!0===n.$destroy?t.remove():r.leave(t)).then(function(){n.parent&&n.parent.removeClass("md-toast-animating"),c.hasComputedStyle(n.parent,"position","static")&&n.parent.css("position","")})},toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(e,t){if(t.autoWrap&&e&&!/md-toast-content/g.test(e)){var n=document.createElement("md-template");n.innerHTML=e;for(var r=0;r<n.children.length;r++)if("MD-TOAST"===n.children[r].nodeName){var i=ue.element('<div class="md-toast-content">');i.append(ue.element(n.children[r].childNodes)),n.children[r].appendChild(i[0])}return n.innerHTML}return e||""}}}}e.$inject=["$mdToast"],t.$inject=["$$interimElementProvider"],ue.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",t)}(),function(){function e(p,g,v,e,b){var $=ue.bind(null,v.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(m,h,f){h.addClass("_md"),e(h),v.nextTick(function(){h.addClass("_md-toolbar-transitions")},!1),ue.isDefined(f.mdScrollShrink)&&function(){var n,r,i=ue.noop,o=0,a=0,s=f.mdShrinkSpeedFactor||.5,c=p.throttle(t),l=v.debounce(e,5e3);m.$on("$mdContentLoaded",u),f.$observe("mdScrollShrink",function(e){var t=h.parent().find("md-content");!r&&t.length&&u(null,t),!1===(e=m.$eval(e))?i():i=d()}),f.ngShow&&m.$watch(f.ngShow,e);f.ngHide&&m.$watch(f.ngHide,e);function u(e,t){t&&h.parent()[0]===t.parent()[0]&&(r&&r.off("scroll",c),r=t,i=d())}function t(e){var t=e?e.target.scrollTop:a;l(),o=Math.min(n/s,Math.max(0,o+t-a)),h.css(g.CSS.TRANSFORM,$([-o*s])),r.css(g.CSS.TRANSFORM,$([(n-o)*s])),a=t,v.nextTick(function(){var e=h.hasClass("md-whiteframe-z1");e&&!o?b.removeClass(h,"md-whiteframe-z1"):!e&&o&&b.addClass(h,"md-whiteframe-z1")})}function d(){return r?(r.on("scroll",c),r.attr("scroll-shrink","true"),v.nextTick(e,!1),function(){r.off("scroll",c),r.attr("scroll-shrink","false"),e()}):ue.noop}function e(){var e=-(n=h.prop("offsetHeight"))*s+"px";r.css({"margin-top":e,"margin-bottom":e}),t()}m.$on("$destroy",i)}()}}}e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],ue.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e)}(),function(){function e(b,$,y,E,C,w,_,M){var x="focus touchstart mouseenter",A="blur touchcancel mouseleave",k={top:{x:_.xPosition.CENTER,y:_.yPosition.ABOVE},right:{x:_.xPosition.OFFSET_END,y:_.yPosition.CENTER},bottom:{x:_.xPosition.CENTER,y:_.yPosition.BELOW},left:{x:_.xPosition.OFFSET_START,y:_.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:function(s,r,c){var i,e,o,a,l,u="md-tooltip-"+w.nextUid(),d=w.getParentWithPointerEvents(r),m=y.throttle(p),h=!1,f=null;function t(){s.mdZIndex=s.mdZIndex||100,s.mdDelay=s.mdDelay||0,k[s.mdDirection]||(s.mdDirection="bottom")}function n(e){var t=e||C(r.text().trim())(s.$parent);(!d.attr("aria-label")&&!d.attr("aria-labelledby")||d.attr("md-labeled-by-tooltip"))&&(d.attr("aria-label",t),d.attr("md-labeled-by-tooltip")||d.attr("md-labeled-by-tooltip",u))}function p(){t(),a&&a.panelEl&&a.panelEl.removeClass(i),i="md-origin-"+s.mdDirection,e=k[s.mdDirection],o=_.newPanelPosition().relativeTo(d).addPanelPosition(e.x,e.y),a&&a.panelEl&&(a.panelEl.addClass(i),a.updatePosition(o))}function g(e){g.queued&&g.value===!!e||!g.queued&&s.mdVisible===!!e||(g.value=!!e,g.queued||(e?(g.queued=!0,l=b(function(){s.mdVisible=g.value,g.queued=!1,l=null,s.visibleWatcher||v(s.mdVisible)},s.mdDelay)):w.nextTick(function(){s.mdVisible=!1,s.visibleWatcher||v(!1)})))}function v(e){e?function(){if(!r[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!a){var e=ue.element(document.body),t=_.newPanelAnimation().openFrom(d).closeTo(d).withAnimation({open:"md-show",close:"md-hide"}),n={id:u,attachTo:e,contentElement:r,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:t,position:o,zIndex:s.mdZIndex,focusOnOpen:!1,onDomAdded:function(){a.panelEl.addClass(i)}};a=_.create(n)}a.open().then(function(){a.panelEl.attr("role","tooltip")})}():a&&a.close()}t(),n(),r.detach(),p(),function(){if(d[0]&&"MutationObserver"in $){var e=new MutationObserver(function(e){e.some(function(e){return"disabled"===e.attributeName&&d[0].disabled})});e.observe(d[0],{attributes:!0})}function t(){g(!1)}function n(){f=document.activeElement===d[0]}function r(e){"focus"===e.type&&f?f=!1:s.mdVisible||(d.on(A,i),g(!0),"touchstart"===e.type&&d.one("touchend",function(){w.nextTick(function(){E.one("touchend",i)},!1)}))}function i(){((s.hasOwnProperty("mdAutohide")?s.mdAutohide:c.hasOwnProperty("mdAutohide"))||h||E[0].activeElement!==d[0])&&(l&&(b.cancel(l),g.queued=!1,l=null),d.off(A,i),d.triggerHandler("blur"),g(!1)),h=!1}function o(){h=!0}function a(){M.deregister("scroll",t,!0),M.deregister("blur",n),M.deregister("resize",m),d.off(x,r).off(A,i).off("mousedown",o),i(),e&&e.disconnect()}f=!1,M.register("scroll",t,!0),M.register("blur",n),M.register("resize",m),s.$on("$destroy",a),d.on("mousedown",o),d.on(x,r)}(),function(){if(r[0]&&"MutationObserver"in $){var e=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||s.visibleWatcher||(s.visibleWatcher=s.$watch("mdVisible",v))})});e.observe(r[0],{attributes:!0}),c.hasOwnProperty("mdVisible")&&(s.visibleWatcher=s.$watch("mdVisible",v))}else s.visibleWatcher=s.$watch("mdVisible",v);s.$watch("mdDirection",p),r.one("$destroy",t),d.one("$destroy",t),s.$on("$destroy",function(){g(!1),a&&a.destroy(),e&&e.disconnect(),r.remove()}),-1<r.text().indexOf(C.startSymbol())&&s.$watch(function(){return r.text().trim()},n);function t(){s.$destroy()}}()}}}e.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],ue.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",e).service("$$mdTooltipRegistry",function(){var o={},a=ue.element(j);return{register:function(e,t,n){var r=o[e]=o[e]||[];r.length||(n?j.addEventListener(e,s,!0):a.on(e,s));-1===r.indexOf(t)&&r.push(t)},deregister:function(e,t,n){var r=o[e],i=r?r.indexOf(t):-1;-1<i&&(r.splice(i,1),0===r.length&&(n?j.removeEventListener(e,s,!0):a.off(e,s)))}};function s(t){o[t.type]&&o[t.type].forEach(function(e){e.call(this,t)},this)}})}(),function(){function e(e){e.addClass("md-truncate")}e.$inject=["$element"],ue.module("material.components.truncate",["material.core"]).directive("mdTruncate",function(){return{restrict:"AE",controller:e}})}(),function(){function e(e){return'<div class="md-virtual-repeat-scroller" role="presentation"><div class="md-virtual-repeat-sizer" role="presentation"></div><div class="md-virtual-repeat-offsetter" role="presentation">'+e[0].innerHTML+"</div></div>"}t.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],i.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],n.$inject=["$parse"],ue.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",function(){return{controller:t,template:e,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}).directive("mdVirtualRepeat",n).directive("mdForceHeight",o);function t(e,n,t,r,i,o,a,s,c){this.$rootScope=i,this.$scope=a,this.$element=s,this.$attrs=c,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=t.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=r(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),ue.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,ue.bind(this,function(e){e!==this.topIndex&&this.scrollToIndex(e)}))):this.topIndex=0,this.scroller=s[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=ue.bind(this,this.updateSize);e(ue.bind(this,function(){l();var e=n.debounce(l,10,null,!1),t=ue.element(o);this.size||e(),t.on("resize",e),a.$on("$destroy",function(){t.off("resize",e)}),a.$emit("$md-resize-enable"),a.$on("$md-resize",l)}))}function n(r){return{controller:i,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(e,t){var n=t.mdVirtualRepeat.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),o=n[1],a=r(n[2]),s=t.mdExtraName&&r(t.mdExtraName);return function(e,t,n,r,i){r[0].link_(r[1],i,o,a,s)}}}}function i(e,t,n,r,i,o,a,s){this.$scope=e,this.$element=t,this.$attrs=n,this.$browser=r,this.$document=i,this.$mdUtil=s,this.$rootScope=o,this.$$rAF=a,this.onDemand=s.parseAttributeBoolean(n.mdOnDemand),this.browserCheckUrlChange=r.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(n.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=ue.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",ue.bind(this,this.cleanupBlocks_))}function r(e){if(!ue.isFunction(e.getItemAtIndex)||!ue.isFunction(e.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength().");this.model=e}function o(e){return{restrict:"A",link:function(e,t,n){var r=e.$eval(n.mdForceHeight)||null;r&&t&&(t[0].style.height=r)}}}t.prototype.register=function(e){this.repeater=e,ue.element(this.scroller).on("scroll wheel touchmove touchend",ue.bind(this,this.handleScroll_))},t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.getSize=function(){return this.size},t.prototype.setSize_=function(e){var t=this.getDimensionName_();this.size=e,this.$element[0].style[t]=e+"px"},t.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},t.prototype.updateSize=function(){if(!this.originalSize){var e=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight;e&&(this.size=e),this.handleScroll_(),this.repeater&&this.repeater.containerUpdated()}},t.prototype.getScrollSize=function(){return this.scrollSize},t.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},t.prototype.sizeScroller_=function(e){var t=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",e<this.maxElementPixels)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var r=Math.floor(e/this.maxElementPixels),i=document.createElement("div");i.style[t]=this.maxElementPixels+"px",i.style[n]="1px";for(var o=0;o<r;o++)this.sizer.appendChild(i.cloneNode(!1));i.style[t]=e-r*this.maxElementPixels+"px",this.sizer.appendChild(i)}},t.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&t!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||t<n)this.originalSize||(this.originalSize=this.size),this.setSize_(t);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()}},t.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&&(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},t.prototype.getScrollOffset=function(){return this.scrollOffset},t.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},t.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;n<e&&(e=n-1),this.scrollTo(t*e)},t.prototype.resetScroll=function(){this.scrollTo(0)},t.prototype.handleScroll_=function(){var e="rtl"!==document.dir&&"rtl"!==document.body.dir;e||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var t=this.isHorizontal()?e?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(this.scrollSize<this.size)&&(t>this.scrollSize-this.size&&(t=this.scrollSize-this.size),t!==this.scrollOffset)){var n=this.repeater.getItemSize();if(n){var r=Math.max(0,Math.floor(t/n)-3),i=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||e?r*n:-r*n)+"px)";if(this.scrollOffset=t,this.offsetter.style.webkitTransform=i,this.offsetter.style.transform=i,this.bindTopIndex){var o=Math.floor(t/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()}}},i.prototype.link_=function(e,t,n,r,i){this.container=e,this.transclude=t,this.repeatName=n,this.rawRepeatListExpression=r,this.extraName=i,this.sized=!1,this.repeatListExpression=ue.bind(this,this.repeatListExpression_),this.container.register(this)},i.prototype.cleanupBlocks_=function(){ue.forEach(this.pooledBlocks,function(e){e.element.remove()})},i.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var e=this.getBlock_(0);e.element[0].parentNode||this.parentNode.appendChild(e.element[0]),this.itemSize=e.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=e,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},i.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){var n=new r(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},i.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==ue.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,ue.bind(this,function(e){e&&e.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,ue.bind(this,function(e,t){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(e,t)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof r&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},i.prototype.getItemSize=function(){return this.itemSize},i.prototype.getItemCount=function(){return this.itemsLength},i.prototype.virtualRepeatUpdate_=function(e,t){this.isVirtualRepeatUpdating_=!0;var n=e&&e.length||0,r=!1;if(this.items&&n<this.items.length&&0!==this.container.getScrollOffset()){this.items=e;var i=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(i)}n!==this.itemsLength&&(r=!0,this.itemsLength=n),((this.items=e)!==t||r)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,r&&this.container.setScrollSize(n*this.itemSize),Object.keys(this.blocks).forEach(function(e){var t=parseInt(e,10);(t<this.newStartIndex||t>=this.newEndIndex)&&this.poolBlock_(t)},this),this.$browser.$$checkUrlChange=ue.noop;var o,a,s=[],c=[];for(o=this.newStartIndex;o<this.newEndIndex&&null==this.blocks[o];o++)a=this.getBlock_(o),this.updateBlock_(a,o),s.push(a);for(;null!=this.blocks[o];o++)this.updateBlock_(this.blocks[o],o);for(var l=o-1;o<this.newEndIndex;o++)a=this.getBlock_(o),this.updateBlock_(a,o),c.push(a);if(s.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(s),this.$element[0].nextSibling),c.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(c),this.blocks[l]&&this.blocks[l].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var u=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(u)}.bind(this))}this.isVirtualRepeatUpdating_=!1},i.prototype.getBlock_=function(n){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(ue.bind(this,function(e,t){r={element:e,new:!0,scope:t},this.updateScope_(t,n),this.parentNode.appendChild(e[0])})),r);var r},i.prototype.updateBlock_=function(e,t){((this.blocks[t]=e).new||e.scope.$index!==t||e.scope[this.repeatName]!==this.items[t])&&(e.new=!1,this.updateScope_(e.scope,t),this.$rootScope.$$phase||e.scope.$digest())},i.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&&this.items[t],this.extraName&&(e[this.extraName(this.$scope)]=this.items[t])},i.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},i.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element[0])}),t},i.prototype.updateIndexes_=function(){var e=this.items?this.items.length:0,t=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(e-t,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+t+3,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},r.prototype.$$includeIndexes=function(e,t){for(var n=e;n<t;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()},o.$inject=["$mdUtil"]}(),function(){function e(o){return{link:function(e,n,r){var i="";r.$observe("mdWhiteframe",function(e){-1!=(e=parseInt(e,10)||4)&&(24<e||e<1)&&(o.warn("md-whiteframe attribute value is invalid. It should be a number between 1 and 24",n[0]),e=4);var t=-1==e?"":"md-whiteframe-"+e+"dp";r.$updateClass(t,i),i=t})}}}e.$inject=["$log"],ue.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",e)}(),ue.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-hue-1}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-hue-2}}"}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.md-THEME_NAME-theme input{color:"{{foreground-1}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused .md-input{border-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-accent md-input-container.md-input-focused md-icon{color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-container{background-color:"{{accent-100}}"}md-autocomplete.md-THEME_NAME-theme.md-accent md-progress-linear .md-bar{background-color:"{{accent-color}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused .md-input{border-color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused label,md-autocomplete.md-THEME_NAME-theme.md-warn md-input-container.md-input-focused md-icon{color:"{{warn-A700}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-container{background-color:"{{warn-100}}"}md-autocomplete.md-THEME_NAME-theme.md-warn md-progress-linear .md-bar{background-color:"{{warn-color}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme,.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-hue-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme li,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li{color:"{{foreground-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme li#selected_option,.md-autocomplete-standard-list-container.md-THEME_NAME-theme li:hover,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li#selected_option,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{background:"{{background-500-0.18}}"}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-color}}";border-top-color:"{{background-hue-3}}"}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-color}}";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-THEME_NAME-theme .md-calendar{background:"{{background-hue-1}}";color:"{{foreground-1-0.87}}"}.md-THEME_NAME-theme .md-calendar tr:last-child td{border-bottom-color:"{{background-hue-2}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-500-0.32}}";color:"{{foreground-1-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-500-0.32}}"}.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:"{{foreground-3}}"}.md-THEME_NAME-theme .md-calendar-month-label md-icon,.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-hue-1}}"}.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-hue-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{foreground-1}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{foreground-2}}"}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:"{{foreground-3}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{foreground-4}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-1}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu>button{color:"{{foreground-1}}"}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-color:"{{ background-500-0.18}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.18}}"}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:"{{foreground-2}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.18}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{primary-contrast}}"}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-button._md-nav-button[disabled]{color:"{{foreground-3}}"}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-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}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-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-primary .md-bar1{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-dashed:before{background:radial-gradient("{{primary-100}}" 0,"{{primary-100}}" 16%,transparent 42%)}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-focused.ng-empty>md-radio-button:first-child .md-container:before{background-color:"{{foreground-3-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-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-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value{border-color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-accent .md-select-value span{color:"{{accent-color}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value{border-color:"{{warn-A700}}"}md-input-container:not(.md-input-invalid).md-input-focused.md-warn .md-select-value span{color:"{{warn-A700}}"}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-color:"{{background-hue-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{foreground-1}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{foreground-3}}"}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-color:"{{background-500-0.18}}"}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:"{{foreground-1}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}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-focused:not(.md-checked) .md-thumb:before,md-switch.md-THEME_NAME-theme.md-focused[disabled] .md-thumb:before{background-color:"{{foreground-4}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]) .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked:not([disabled]).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.19"}},function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.io=t():e.io=t()}(this,function(){return function(n){function r(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(e,t,n){"use strict";function r(e,t){"object"===(void 0===e?"undefined":c(e))&&(t=e,e=void 0),t=t||{};var n,r=l(e),i=r.source,o=r.id,a=r.path,s=m[o]&&a in m[o].nsps;return n=t.forceNew||t["force new connection"]||!1===t.multiplex||s?(d("ignoring socket cache for %s",i),u(i,t)):(m[o]||(d("new io instance for %s",i),m[o]=u(i,t)),m[o]),r.query&&!t.query&&(t.query=r.query),n.socket(r.path,t)}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(1),i=n(7),u=n(12),d=n(3)("socket.io-client");e.exports=t=r;var m=t.managers={};t.protocol=i.protocol,t.connect=r,t.Manager=n(12),t.Socket=n(36)},function(e,t,n){"use strict";var i=n(2),o=n(3)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),n=i(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var r=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+r+":"+n.port,n.href=n.protocol+"://"+r+(t&&t.port===n.port?"":":"+n.port),n}},function(e,t){var s=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));for(var i=s.exec(e||""),o={},a=14;a--;)o[c[a]]=i[a]||"";return-1!=n&&-1!=r&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o}},function(n,o,r){(function(t){function e(){var e;try{e=o.storage.debug}catch(e){}return!e&&void 0!==t&&"env"in t&&(e=t.env.DEBUG),e}(o=n.exports=r(5)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+o.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))}),e.splice(i,0,n)}},o.save=function(e){try{null==e?o.storage.removeItem("debug"):o.storage.debug=e}catch(e){}},o.load=e,o.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},o.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),o.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],o.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},o.enable(e())}).call(o,r(4))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(){f&&m&&(f=!1,m.length?h=m.concat(h):p=-1,h.length&&a())}function a(){if(!f){var e=i(o);f=!0;for(var t=h.length;t;){for(m=h,h=[];++p<t;)m&&m[p].run();p=-1,t=h.length}m=null,f=!1,function(t){if(u===clearTimeout)return clearTimeout(t);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(t);try{u(t)}catch(e){try{return u.call(null,t)}catch(e){return u.call(this,t)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,u,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}();var m,h=[],f=!1,p=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new s(e,t)),1!==h.length||f||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,c,t){function n(e){function r(){if(r.enabled){var i=r,e=+new Date,t=e-(s||e);i.diff=t,i.prev=s,i.curr=e,s=e;for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];o[0]=c.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(e,t){if("%%"===e)return e;a++;var n=c.formatters[t];if("function"==typeof n){var r=o[a];e=n.call(i,r),o.splice(a,1),a--}return e}),c.formatArgs.call(i,o),(r.log||c.log||console.log.bind(console)).apply(i,o)}}var s;return r.namespace=e,r.enabled=c.enabled(e),r.useColors=c.useColors(),r.color=function(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return c.colors[Math.abs(n)%c.colors.length]}(e),r.destroy=i,"function"==typeof c.init&&c.init(r),c.instances.push(r),r}function i(){var e=c.instances.indexOf(this);return-1!==e&&(c.instances.splice(e,1),!0)}(c=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},c.disable=function(){c.enable("")},c.enable=function(e){c.save(e),c.names=[],c.skips=[];var t,n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?c.skips.push(new RegExp("^"+e.substr(1)+"$")):c.names.push(new RegExp("^"+e+"$")));for(t=0;t<c.instances.length;t++){var i=c.instances[t];i.enabled=c.enabled(i.namespace)}},c.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=c.skips.length;t<n;t++)if(c.skips[t].test(e))return!1;for(t=0,n=c.names.length;t<n;t++)if(c.names[t].test(e))return!0;return!1},c.humanize=t(6),c.instances=[],c.names=[],c.skips=[],c.formatters={}},function(e,t){function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var n,r,i=typeof e;if("string"===i&&0<e.length)return function(e){if(!(100<(e=String(e)).length)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===i&&!1===isNaN(e))return t.long?o(r=e,864e5,"day")||o(r,36e5,"hour")||o(r,6e4,"minute")||o(r,1e3,"second")||r+" ms":864e5<=(n=e)?Math.round(n/864e5)+"d":36e5<=n?Math.round(n/36e5)+"h":6e4<=n?Math.round(n/6e4)+"m":1e3<=n?Math.round(n/1e3)+"s":n+"ms";throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,s,t){function n(){}function o(e){var t=""+e.type;if(s.BINARY_EVENT!==e.type&&s.BINARY_ACK!==e.type||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data){var n=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===n)return f;t+=n}return l("encoded %j as %s",e,t),t}function r(){this.reconstructor=null}function i(e){var t=0,n={type:Number(e.charAt(0))};if(null==s.types[n.type])return c("unknown packet type "+n.type);if(s.BINARY_EVENT===n.type||s.BINARY_ACK===n.type){for(var r="";"-"!==e.charAt(++t)&&(r+=e.charAt(t),t!=e.length););if(r!=Number(r)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(r)}if("/"===e.charAt(t+1))for(n.nsp="";++t;){if(","===(o=e.charAt(t)))break;if(n.nsp+=o,t===e.length)break}else n.nsp="/";var i=e.charAt(t+1);if(""!==i&&Number(i)==i){for(n.id="";++t;){var o;if(null==(o=e.charAt(t))||Number(o)!=o){--t;break}if(n.id+=e.charAt(t),t===e.length)break}n.id=Number(n.id)}if(e.charAt(++t)){var a=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(t));if(!(!1!==a&&(n.type===s.ERROR||m(a))))return c("invalid payload");n.data=a}return l("decoded %s as %j",e,n),n}function a(e){this.reconPack=e,this.buffers=[]}function c(e){return{type:s.ERROR,data:"parser error: "+e}}var l=t(3)("socket.io-parser"),u=t(8),d=t(9),m=t(10),h=t(11);s.protocol=4,s.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],s.CONNECT=0,s.DISCONNECT=1,s.EVENT=2,s.ACK=3,s.ERROR=4,s.BINARY_EVENT=5,s.BINARY_ACK=6,s.Encoder=n,s.Decoder=r;var f=s.ERROR+'"encode error"';n.prototype.encode=function(e,t){var n,i;(l("encoding packet %j",e),s.BINARY_EVENT===e.type||s.BINARY_ACK===e.type)?(n=e,i=t,d.removeBlobs(n,function(e){var t=d.deconstructPacket(e),n=o(t.packet),r=t.buffers;r.unshift(n),i(r)})):t([o(e)])},u(r.prototype),r.prototype.add=function(e){var t;if("string"==typeof e)t=i(e),s.BINARY_EVENT===t.type||s.BINARY_ACK===t.type?(this.reconstructor=new a(t),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",t)):this.emit("decoded",t);else{if(!h(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",t))}},r.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},a.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length!==this.reconPack.attachments)return null;var t=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t},a.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}(e.exports=r).prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t);return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){var u=n(10),d=n(11),r=Object.prototype.toString,m="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),h="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);t.deconstructPacket=function(e){var t=[],n=e.data,r=e;return r.data=function e(t,n){if(!t)return t;if(d(t)){var r={_placeholder:!0,num:n.length};return n.push(t),r}if(u(t)){for(var i=new Array(t.length),o=0;o<t.length;o++)i[o]=e(t[o],n);return i}if("object"!=typeof t||t instanceof Date)return t;i={};for(var a in t)i[a]=e(t[a],n);return i}(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(u(t))for(var r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(var i in t)t[i]=e(t[i],n);return t}(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,s){var c=0,l=e;(function e(t,n,r){if(!t)return t;if(m&&t instanceof Blob||h&&t instanceof File){c++;var i=new FileReader;i.onload=function(){r?r[n]=this.result:l=this.result,--c||s(l)},i.readAsArrayBuffer(t)}else if(u(t))for(var o=0;o<t.length;o++)e(t[o],o,t);else if("object"==typeof t&&!d(t))for(var a in t)e(t[a],a,t)})(l),c||s(l)}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){e.exports=function(e){return n&&Buffer.isBuffer(e)||r&&(e instanceof ArrayBuffer||i(e))};var n="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,r="function"==typeof ArrayBuffer,i=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}},function(e,t,n){"use strict";function r(e,t){if(!(this instanceof r))return new r(e,t);e&&"object"===(void 0===e?"undefined":i(e))&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=n(13),o=n(36),a=n(8),s=n(7),l=n(38),u=n(39),d=n(3)("socket.io-client:manager"),m=n(35),h=n(40),f=Object.prototype.hasOwnProperty;(e.exports=r).prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)f.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},r.prototype.updateSocketIds=function(){for(var e in this.nsps)f.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},r.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},a(r.prototype),r.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},r.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},r.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(n,e){if(d("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=c(this.uri,this.opts);var t=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=l(t,"open",function(){r.onopen(),n&&n()}),o=l(t,"error",function(e){if(d("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),n){var t=new Error("Connection error");t.data=e,n(t)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;d("connect attempt will timeout after %d",a);var s=setTimeout(function(){d("connect attempt timed out after %d",a),i.destroy(),t.close(),t.emit("error","timeout"),r.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(s)}})}return this.subs.push(i),this.subs.push(o),this},r.prototype.onopen=function(){d("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(l(e,"data",u(this,"ondata"))),this.subs.push(l(e,"ping",u(this,"onping"))),this.subs.push(l(e,"pong",u(this,"onpong"))),this.subs.push(l(e,"error",u(this,"onerror"))),this.subs.push(l(e,"close",u(this,"onclose"))),this.subs.push(l(this.decoder,"decoded",u(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(e){this.decoder.add(e)},r.prototype.ondecoded=function(e){this.emit("packet",e)},r.prototype.onerror=function(e){d("error",e),this.emitAll("error",e)},r.prototype.socket=function(e,t){function n(){~m(i.connecting,r)||i.connecting.push(r)}var r=this.nsps[e];if(!r){r=new o(this,e,t),this.nsps[e]=r;var i=this;r.on("connecting",n),r.on("connect",function(){r.id=i.generateId(e)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(e){var t=m(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},r.prototype.packet=function(n){d("writing packet %j",n);var r=this;n.query&&0===n.type&&(n.nsp+="?"+n.query),r.encoding?r.packetBuffer.push(n):(r.encoding=!0,this.encoder.encode(n,function(e){for(var t=0;t<e.length;t++)r.engine.write(e[t],n.options);r.encoding=!1,r.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(0<this.packetBuffer.length&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},r.prototype.cleanup=function(){d("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){d("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(e){d("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();d("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(d("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(d("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(d("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){e.exports=n(14),e.exports.parser=n(21)},function(e,t,n){function d(e,t){return this instanceof d?(t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=s(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=s(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&0<Object.keys(t.extraHeaders).length&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new d(e,t)}var r=n(15),i=n(8),m=n(3)("engine.io-client:socket"),o=n(35),a=n(21),s=n(2),c=n(29);(e.exports=d).priorWebsocketSuccess=!1,i(d.prototype),d.protocol=a.protocol,(d.Socket=d).Transport=n(20),d.transports=n(15),d.parser=n(21),d.prototype.createTransport=function(e){m('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=a.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},d.prototype.open=function(){var e;if(this.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},d.prototype.setTransport=function(e){m("setting transport %s",e.name);var t=this;this.transport&&(m("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),(this.transport=e).on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},d.prototype.probe=function(n){function e(){if(u.onlyBinaryUpgrades){var e=!this.supportsBinary&&u.transport.supportsBinary;l=l||e}l||(m('probe transport "%s" opened',n),c.send([{type:"ping",data:"probe"}]),c.once("packet",function(e){if(!l)if("pong"===e.type&&"probe"===e.data){if(m('probe transport "%s" pong',n),u.upgrading=!0,u.emit("upgrading",c),!c)return;d.priorWebsocketSuccess="websocket"===c.name,m('pausing current transport "%s"',u.transport.name),u.transport.pause(function(){l||"closed"!==u.readyState&&(m("changing transport and sending upgrade packet"),s(),u.setTransport(c),c.send([{type:"upgrade"}]),u.emit("upgrade",c),c=null,u.upgrading=!1,u.flush())})}else{m('probe transport "%s" failed',n);var t=new Error("probe error");t.transport=c.name,u.emit("upgradeError",t)}}))}function r(){l||(l=!0,s(),c.close(),c=null)}function t(e){var t=new Error("probe error: "+e);t.transport=c.name,r(),m('probe transport "%s" failed because of error: %s',n,e),u.emit("upgradeError",t)}function i(){t("transport closed")}function o(){t("socket closed")}function a(e){c&&e.name!==c.name&&(m('"%s" works - aborting "%s"',e.name,c.name),r())}function s(){c.removeListener("open",e),c.removeListener("error",t),c.removeListener("close",i),u.removeListener("close",o),u.removeListener("upgrading",a)}m('probing transport "%s"',n);var c=this.createTransport(n,{probe:1}),l=!1,u=this;d.priorWebsocketSuccess=!1,c.once("open",e),c.once("error",t),c.once("close",i),this.once("close",o),this.once("upgrading",a),c.open()},d.prototype.onOpen=function(){if(m("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){m("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},d.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(m('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else m('packet received with socket readyState "%s"',this.readyState)},d.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},d.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},d.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){m("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},d.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},d.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),(this.prevBufferLen=0)===this.writeBuffer.length?this.emit("drain"):this.flush()},d.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(m("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},d.prototype.write=d.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},d.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},d.prototype.close=function(){function e(){r.onClose("forced close"),m("socket closing - telling transport to close"),r.transport.close()}function t(){r.removeListener("upgrade",t),r.removeListener("upgradeError",t),e()}function n(){r.once("upgrade",t),r.once("upgradeError",t)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():e()}):this.upgrading?n():e()}return this},d.prototype.onError=function(e){m("socket error %j",e),d.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},d.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){m('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},d.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~o(this.transports,e[n])&&t.push(e[n]);return t}},function(e,t,n){var a=n(16),s=n(18),c=n(32),r=n(33);t.polling=function(e){var t=!1,n=!1,r=!1!==e.jsonp;if("undefined"!=typeof location){var i="https:"===location.protocol,o=location.port;o||(o=i?443:80),t=e.hostname!==location.hostname||o!==e.port,n=e.secure!==i}if(e.xdomain=t,e.xscheme=n,"open"in new a(e)&&!e.forceJSONP)return new s(e);if(!r)throw new Error("JSONP disabled");return new c(e)},t.websocket=r},function(e,t,n){var i=n(17);e.exports=function(e){var t=e.xdomain,n=e.xscheme,r=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||i))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&r)return new XDomainRequest}catch(e){}if(!t)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(e,t,n){function r(){}function i(e){if(c.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function o(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function a(){for(var e in o.requests)o.requests.hasOwnProperty(e)&&o.requests[e].abort()}var s=n(16),c=n(19),l=n(8),u=n(30),d=n(3)("engine.io-client:polling-xhr");if(e.exports=i,e.exports.Request=o,u(i,c),i.prototype.supportsBinary=!0,i.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new o(e)},i.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),i=this;r.on("success",t),r.on("error",function(e){i.onError("xhr post error",e)}),this.sendXhr=r},i.prototype.doPoll=function(){d("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},l(o.prototype),o.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new s(e),n=this;try{d("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var r in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&t.setRequestHeader(r,this.extraHeaders[r])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=!0),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");n.supportsBinary&&"application/octet-stream"===e&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout(function(){n.onError(t.status)},0))},d("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout(function(){n.onError(e)},0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},o.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},o.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},o.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",a);else if("function"==typeof addEventListener){var m="onpagehide"in self?"pagehide":"unload";addEventListener(m,a,!1)}},function(e,t,n){function r(e){var t=e&&e.forceBase64;u&&!t||(this.supportsBinary=!1),i.call(this,e)}var i=n(20),o=n(29),a=n(21),s=n(30),c=n(31),l=n(3)("engine.io-client:polling");e.exports=r;var u=null!=new(n(16))({xdomain:!1}).responseType;s(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(e){function t(){l("paused"),n.readyState="paused",e()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||t()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||t()}))}else t()},r.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(e){var r=this;l("polling got data %s",e);a.decodePayload(e,this.socket.binaryType,function(e,t,n){return"opening"===r.readyState&&r.onOpen(),"close"===e.type?(r.onClose(),!1):void r.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function e(){l("writing close packet"),t.write([{type:"close"}])}var t=this;"open"===this.readyState?(l("transport open - closing"),e()):(l("transport not open - deferring close"),this.once("open",e))},r.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){function r(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}var i=n(21);n(8)((e.exports=r).prototype),r.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(e){var t=i.decodePacket(e,this.socket.binaryType);this.onPacket(t)},r.prototype.onPacket=function(e){this.emit("packet",e)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,m,t){function s(e,t,n){if(!t)return m.encodeBase64Packet(e,n);if(d)return function(e,t,n){if(!t)return m.encodeBase64Packet(e,n);var r=new FileReader;return r.onload=function(){m.encodePacket({type:e.type,data:r.result},t,!0,n)},r.readAsArrayBuffer(e.data)}(e,t,n);var r=new Uint8Array(1);return r[0]=f[e.type],n(new v([r.buffer,e.data]))}function i(e,t,n){for(var i=new Array(e.length),r=c(e.length,n),o=function(n,e,r){t(e,function(e,t){i[n]=t,r(e,i)})},a=0;a<e.length;a++)o(a,e[a],r)}var o,n=t(22),a=t(23),h=t(24),c=t(25),l=t(26);"undefined"!=typeof ArrayBuffer&&(o=t(27));var r="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=r||u;m.protocol=3;var f=m.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=n(f),g={type:"error",data:"parser error"},v=t(28);m.encodePacket=function(e,t,n,r){"function"==typeof t&&(r=t,t=!1),"function"==typeof n&&(r=n,n=null);var i,o=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(e,t,n){if(!t)return m.encodeBase64Packet(e,n);var r=e.data,i=new Uint8Array(r),o=new Uint8Array(1+r.byteLength);o[0]=f[e.type];for(var a=0;a<i.length;a++)o[a+1]=i[a];return n(o.buffer)}(e,t,r);if(void 0!==v&&o instanceof v)return s(e,t,r);if(o&&o.base64)return i=e,r("b"+m.packets[i.type]+i.data.data);var a=f[e.type];return void 0!==e.data&&(a+=n?l.encode(String(e.data),{strict:!1}):String(e.data)),r(""+a)},m.encodeBase64Packet=function(t,n){var r,i="b"+m.packets[t.type];if(void 0!==v&&t.data instanceof v){var o=new FileReader;return o.onload=function(){var e=o.result.split(",")[1];n(i+e)},o.readAsDataURL(t.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(e){for(var a=new Uint8Array(t.data),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a[c];r=String.fromCharCode.apply(null,s)}return i+=btoa(r),n(i)},m.decodePacket=function(e,t,n){if(void 0===e)return g;if("string"==typeof e){if("b"===e.charAt(0))return m.decodeBase64Packet(e.substr(1),t);if(n&&!1===(e=function(e){try{e=l.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return g;var r=e.charAt(0);return Number(r)==r&&p[r]?1<e.length?{type:p[r],data:e.substring(1)}:{type:p[r]}:g}r=new Uint8Array(e)[0];var i=h(e,1);return v&&"blob"===t&&(i=new v([i])),{type:p[r],data:i}},m.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!o)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=o.decode(e.substr(1));return"blob"===t&&v&&(r=new v([r])),{type:n,data:r}},m.encodePayload=function(e,t,n){"function"==typeof t&&(n=t,t=null);var r=a(e);return t&&r?v&&!d?m.encodePayloadAsBlob(e,n):m.encodePayloadAsArrayBuffer(e,n):e.length?void i(e,function(e,n){m.encodePacket(e,!!r&&t,!1,function(e){var t;n(null,(t=e).length+":"+t)})},function(e,t){return n(t.join(""))}):n("0:")},m.decodePayload=function(e,t,n){if("string"!=typeof e)return m.decodePayloadAsBinary(e,t,n);var r;if("function"==typeof t&&(n=t,t=null),""===e)return n(g,0,1);for(var i,o,a="",s=0,c=e.length;s<c;s++){var l=e.charAt(s);if(":"===l){if(""===a||a!=(i=Number(a)))return n(g,0,1);if(a!=(o=e.substr(s+1,i)).length)return n(g,0,1);if(o.length){if(r=m.decodePacket(o,t,!1),g.type===r.type&&g.data===r.data)return n(g,0,1);if(!1===n(r,s+i,c))return}s+=i,a=""}else a+=l}return""!==a?n(g,0,1):void 0},m.encodePayloadAsArrayBuffer=function(e,r){return e.length?void i(e,function(e,t){m.encodePacket(e,!0,!0,function(e){return t(null,e)})},function(e,t){var n=t.reduce(function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2},0),a=new Uint8Array(n),s=0;return t.forEach(function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);n=r.buffer}a[s++]=t?0:1;var o=n.byteLength.toString();for(i=0;i<o.length;i++)a[s++]=parseInt(o[i]);a[s++]=255;for(r=new Uint8Array(n),i=0;i<r.length;i++)a[s++]=r[i]}),r(a.buffer)}):r(new ArrayBuffer(0))},m.encodePayloadAsBlob=function(e,n){i(e,function(e,s){m.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);e=n.buffer,t[0]=0}var i=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),o=new Uint8Array(i.length+1);for(r=0;r<i.length;r++)o[r]=parseInt(i[r]);if(o[i.length]=255,v){var a=new v([t.buffer,o.buffer,e]);s(null,a)}})},function(e,t){return n(new v(t))})},m.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var t=e,i=[];0<t.byteLength;){for(var o=new Uint8Array(t),a=0===o[0],s="",c=1;255!==o[c];c++){if(310<s.length)return r(g,0,1);s+=o[c]}t=h(t,2+s.length),s=parseInt(s);var l=h(t,0,s);if(a)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(e){var u=new Uint8Array(l);l="";for(c=0;c<u.length;c++)l+=String.fromCharCode(u[c])}i.push(l),t=h(t,s)}var d=i.length;i.forEach(function(e,t){r(m.decodePacket(e,n,!0),t,d)})}},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t,n){var o=n(10),r=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(o(t)){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||a&&t instanceof Blob||s&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return!0;return!1}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),r<n&&(n=r),r<=t||n<=t||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(e),o=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)o[s]=i[a];return o.buffer}},function(e,t){function a(){}e.exports=function(e,n,r){function i(e,t){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,n(e),n=r):0!==i.count||o||n(null,t)}var o=!1;return r=r||a,0===(i.count=e)?n():i}},function(e,t){function s(e){for(var t,n,r=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function r(e,t){if(55296<=e&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function i(e,t){return m(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return m(e);var n="";return 0==(4294965248&e)?n=m(e>>6&31|192):0==(4294901760&e)?(r(e,t)||(e=65533),n=m(e>>12&15|224),n+=i(e,6)):0==(4292870144&e)&&(n=m(e>>18&7|240),n+=i(e,12),n+=i(e,6)),n+m(63&e|128)}function o(){if(u<=d)throw Error("Invalid byte index");var e=255&l[d];if(d++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function a(e){var t,n;if(u<d)throw Error("Invalid byte index");if(d==u)return!1;if(t=255&l[d],d++,0==(128&t))return t;if(192==(224&t)){if(128<=(n=(31&t)<<6|o()))return n;throw Error("Invalid continuation byte")}if(224==(240&t)){if(2048<=(n=(15&t)<<12|o()<<6|o()))return r(n,e)?n:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(65536<=(n=(7&t)<<18|o()<<12|o()<<6|o())&&n<=1114111))return n;throw Error("Invalid UTF-8 detected")}var l,u,d,m=String.fromCharCode;e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=s(e),i=r.length,o=-1,a="";++o<i;)a+=c(r[o],n);return a},decode:function(e,t){var n=!1!==(t=t||{}).strict;l=s(e),u=l.length,d=0;for(var r,i=[];!1!==(r=a(n));)i.push(r);return function(e){for(var t,n=e.length,r=-1,i="";++r<n;)65535<(t=e[r])&&(i+=m((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=m(t);return i}(i)}}},function(e,t){!function(){"use strict";for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(256),e=0;e<o.length;e++)d[o.charCodeAt(e)]=e;t.encode=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=o[n[t]>>2],i+=o[(3&n[t])<<4|n[t+1]>>4],i+=o[(15&n[t+1])<<2|n[t+2]>>6],i+=o[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),u=new Uint8Array(l);for(t=0;t<s;t+=4)n=d[e.charCodeAt(t)],r=d[e.charCodeAt(t+1)],i=d[e.charCodeAt(t+2)],o=d[e.charCodeAt(t+3)],u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}}()},function(e,t){function r(e){return e.map(function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e})}function n(e,t){t=t||{};var n=new o;return r(e).forEach(function(e){n.append(e)}),t.type?n.getBlob(t.type):n.getBlob()}function i(e,t){return new Blob(r(e),t||{})}var o=void 0!==o?o:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),s=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;"undefined"!=typeof Blob&&(n.prototype=Blob.prototype,i.prototype=Blob.prototype),e.exports=a?s?Blob:i:c?n:void 0},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){"use strict";function n(e){for(var t="";t=o[e%a]+t,0<(e=Math.floor(e/a)););return t}function r(){var e=n(+new Date);return e!==i?(c=0,i=e):e+"."+n(c++)}for(var i,o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,s={},c=0,l=0;l<a;l++)s[o[l]]=l;r.encode=n,r.decode=function(e){var t=0;for(l=0;l<e.length;l++)t=t*a+s[e.charAt(l)];return t},e.exports=r},function(n,e,s){(function(r){function i(){}function e(e){if(o.call(this,e),this.query=this.query||{},!a){var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{};a=t.___eio=t.___eio||[]}this.index=a.length;var n=this;a.push(function(e){n.onData(e)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=i)},!1)}var o=s(19),t=s(30);n.exports=e;var a,l=/\n/g,u=/\\n/g;t(e,o),e.prototype.supportsBinary=!1,e.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},e.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},e.prototype.doWrite=function(e,t){function n(){r(),t()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(e){i.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(e)}catch(e){(o=document.createElement("iframe")).name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,a=document.createElement("form"),s=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=c,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),e=e.replace(u,"\\\n"),this.area.value=e.replace(l,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(e,t,n){function r(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=i&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(m=o),a.call(this,e)}var i,o,a=n(20),s=n(21),c=n(29),l=n(30),u=n(31),d=n(3)("engine.io-client:websocket");if("undefined"==typeof self)try{o=n(34)}catch(e){}else i=self.WebSocket||self.MozWebSocket;var m=i||o;l(e.exports=r,a),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new m(e,t):new m(e):new m(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(e){var r=this;this.writable=!1;for(var i=e.length,t=0,n=i;t<n;t++)!function(n){s.encodePacket(n,r.supportsBinary,function(e){if(!r.usingBrowserWebSocket){var t={};if(n.options&&(t.compress=n.options.compress),r.perMessageDeflate)("string"==typeof e?Buffer.byteLength(e):e.length)<r.perMessageDeflate.threshold&&(t.compress=!1)}try{r.usingBrowserWebSocket?r.ws.send(e):r.ws.send(e,t)}catch(e){d("websocket closed before onclose event")}--i||(r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0))})}(e[t])},r.prototype.onClose=function(){a.prototype.onClose.call(this)},r.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||(e.b64=1),(e=c.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},r.prototype.check=function(){return!(!m||"__initialize"in m&&this.name===r.prototype.name)}},function(e,t){},function(e,t){var r=[].indexOf;e.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,n){"use strict";function r(e,t,n){this.io=e,this.nsp=t,(this.json=this).ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(7),a=n(8),s=n(37),c=n(38),l=n(39),u=n(3)("socket.io-client:socket"),d=n(29),m=n(23);e.exports=r;var h={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},f=a.prototype.emit;a(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[c(e,"open",l(this,"onopen")),c(e,"packet",l(this,"onpacket")),c(e,"close",l(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},r.prototype.send=function(){var e=s(arguments);return e.unshift("message"),this.emit.apply(this,e),this},r.prototype.emit=function(e){if(h.hasOwnProperty(e))return f.apply(this,arguments),this;var t=s(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:m(t))?o.BINARY_EVENT:o.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},r.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},r.prototype.onopen=function(){if(u("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"===i(this.query)?d.encode(this.query):this.query;u("sending connect packet with query %s",e),this.packet({type:o.CONNECT,query:e})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(e){u("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},r.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===o.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case o.CONNECT:this.onconnect();break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",e.data)}},r.prototype.onevent=function(e){var t=e.data||[];u("emitting event %j",t),null!=e.id&&(u("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?f.apply(this,t):this.receiveBuffer.push(t)},r.prototype.ack=function(t){var n=this,r=!1;return function(){if(!r){r=!0;var e=s(arguments);u("sending ack %j",e),n.packet({type:m(e)?o.BINARY_ACK:o.ACK,id:t,data:e})}}},r.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(u("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):u("bad ack %s",e.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)f.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(e){return this.flags.compress=e,this},r.prototype.binary=function(e){return this.flags.binary=e,this}},function(e,t){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},function(e,t){"use strict";e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var r=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var n=r.call(arguments,2);return function(){return t.apply(e,n.concat(r.call(arguments)))}}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=0<e.jitter&&e.jitter<=1?e.jitter:0,this.attempts=0}(e.exports=n).prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}}])}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.angularLoad=t():e.angularLoad=t()}(this,function(){return function(n){var r={};function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=n,i.c=r,i.i=function(e){return e},i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t,n){"use strict";angular.module("angularLoad",[]).service("angularLoad",["$document","$q","$timeout",function(e,i,o){var r=e[0],a={};function t(r){return function(e){if(void 0===a[e]){var t=i.defer(),n=r(e);n.onload=n.onreadystatechange=function(e){n.readyState&&"complete"!==n.readyState&&"loaded"!==n.readyState||o(function(){t.resolve(e)})},n.onerror=function(e){o(function(){t.reject(e)})},a[e]=t.promise}return a[e]}}this.loadScript=t(function(e){var t=r.createElement("script");return t.src=e,r.body.appendChild(t),t}),this.loadCSS=t(function(e){var t=r.createElement("link");return t.rel="stylesheet",t.type="text/css",t.href=e,r.head.appendChild(t),t}),this.unloadCSS=function(e){delete a[e];var t=r.head;if(t){var n=t.querySelector('[href="'+e+'"]');if(n)return n.remove(),!0}return!1}}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default="angularLoad"}])}),function(){var na,ra="Expected a function",ia="__lodash_hash_undefined__",oa="__lodash_placeholder__",aa=9007199254740991,sa=NaN,ca=4294967295,la=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],ua="[object Arguments]",da="[object Array]",ma="[object Boolean]",ha="[object Date]",fa="[object Error]",pa="[object Function]",ga="[object GeneratorFunction]",va="[object Map]",ba="[object Number]",$a="[object Object]",ya="[object Promise]",Ea="[object RegExp]",Ca="[object Set]",wa="[object String]",_a="[object Symbol]",Ma="[object WeakMap]",xa="[object ArrayBuffer]",Aa="[object DataView]",ka="[object Float32Array]",Ta="[object Float64Array]",Sa="[object Int8Array]",Da="[object Int16Array]",Na="[object Int32Array]",Oa="[object Uint8Array]",Ia="[object Uint8ClampedArray]",Ha="[object Uint16Array]",Pa="[object Uint32Array]",Ra=/\b__p \+= '';/g,La=/\b(__p \+=) '' \+/g,Fa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ja=/&(?:amp|lt|gt|quot|#39);/g,Ba=/[&<>"']/g,Ua=RegExp(ja.source),Va=RegExp(Ba.source),qa=/<%-([\s\S]+?)%>/g,za=/<%([\s\S]+?)%>/g,Ya=/<%=([\s\S]+?)%>/g,Wa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ga=/^\w*$/,Ka=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xa=/[\\^$.*+?()[\]{}|]/g,Za=RegExp(Xa.source),Ja=/^\s+|\s+$/g,Qa=/^\s+/,es=/\s+$/,ts=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ns=/\{\n\/\* \[wrapped with (.+)\] \*/,rs=/,? & /,is=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,os=/\\(\\)?/g,as=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ss=/\w*$/,cs=/^[-+]0x[0-9a-f]+$/i,ls=/^0b[01]+$/i,us=/^\[object .+?Constructor\]$/,ds=/^0o[0-7]+$/i,ms=/^(?:0|[1-9]\d*)$/,hs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fs=/($^)/,ps=/['\n\r\u2028\u2029\\]/g,e="\\ud800-\\udfff",t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\ufe0e\\ufe0f",a="\\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",s="["+e+"]",c="["+a+"]",l="["+t+"]",u="\\d+",d="["+n+"]",m="["+r+"]",h="[^"+e+a+u+n+r+i+"]",f="\\ud83c[\\udffb-\\udfff]",p="[^"+e+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",b="["+i+"]",$="(?:"+m+"|"+h+")",y="(?:"+b+"|"+h+")",E="(?:['’](?:d|ll|m|re|s|t|ve))?",C="(?:['’](?:D|LL|M|RE|S|T|VE))?",w="(?:"+l+"|"+f+")"+"?",_="["+o+"]?",M=_+w+("(?:\\u200d(?:"+[p,g,v].join("|")+")"+_+w+")*"),x="(?:"+[d,g,v].join("|")+")"+M,A="(?:"+[p+l+"?",l,g,v,s].join("|")+")",gs=RegExp("['’]","g"),vs=RegExp(l,"g"),k=RegExp(f+"(?="+f+")|"+A+M,"g"),bs=RegExp([b+"?"+m+"+"+E+"(?="+[c,b,"$"].join("|")+")",y+"+"+C+"(?="+[c,b+$,"$"].join("|")+")",b+"?"+$+"+"+E,b+"+"+C,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u,x].join("|"),"g"),T=RegExp("[\\u200d"+e+t+o+"]"),$s=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ys=["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"],Es=-1,Cs={};Cs[ka]=Cs[Ta]=Cs[Sa]=Cs[Da]=Cs[Na]=Cs[Oa]=Cs[Ia]=Cs[Ha]=Cs[Pa]=!0,Cs[ua]=Cs[da]=Cs[xa]=Cs[ma]=Cs[Aa]=Cs[ha]=Cs[fa]=Cs[pa]=Cs[va]=Cs[ba]=Cs[$a]=Cs[Ea]=Cs[Ca]=Cs[wa]=Cs[Ma]=!1;var ws={};ws[ua]=ws[da]=ws[xa]=ws[Aa]=ws[ma]=ws[ha]=ws[ka]=ws[Ta]=ws[Sa]=ws[Da]=ws[Na]=ws[va]=ws[ba]=ws[$a]=ws[Ea]=ws[Ca]=ws[wa]=ws[_a]=ws[Oa]=ws[Ia]=ws[Ha]=ws[Pa]=!0,ws[fa]=ws[pa]=ws[Ma]=!1;var S={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ms=parseInt,D="object"==typeof global&&global&&global.Object===Object&&global,N="object"==typeof self&&self&&self.Object===Object&&self,xs=D||N||Function("return this")(),O="object"==typeof exports&&exports&&!exports.nodeType&&exports,I=O&&"object"==typeof module&&module&&!module.nodeType&&module,As=I&&I.exports===O,H=As&&D.process,P=function(){try{var e=I&&I.require&&I.require("util").types;return e||H&&H.binding&&H.binding("util")}catch(e){}}(),ks=P&&P.isArrayBuffer,Ts=P&&P.isDate,Ss=P&&P.isMap,Ds=P&&P.isRegExp,Ns=P&&P.isSet,Os=P&&P.isTypedArray;function Is(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Hs(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Ps(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rs(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ls(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Fs(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function js(e,t){return!!(null==e?0:e.length)&&-1<Ks(e,t,0)}function Bs(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Us(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Vs(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function qs(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function zs(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ys(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var R=Qs("length");function Ws(e,r,t){var i;return t(e,function(e,t,n){if(r(e,t,n))return i=t,!1}),i}function Gs(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ks(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Gs(e,Zs,n)}function Xs(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Zs(e){return e!=e}function Js(e,t){var n=null==e?0:e.length;return n?tc(e,t)/n:sa}function Qs(t){return function(e){return null==e?na:e[t]}}function L(t){return function(e){return null==t?na:t[e]}}function ec(e,r,i,o,t){return t(e,function(e,t,n){i=o?(o=!1,e):r(i,e,t,n)}),i}function tc(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==na&&(n=n===na?o:n+o)}return n}function nc(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function rc(t){return function(e){return t(e)}}function ic(t,e){return Us(e,function(e){return t[e]})}function oc(e,t){return e.has(t)}function ac(e,t){for(var n=-1,r=e.length;++n<r&&-1<Ks(t,e[n],0););return n}function sc(e,t){for(var n=e.length;n--&&-1<Ks(t,e[n],0););return n}var cc=L({"À":"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","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),lc=L({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function uc(e){return"\\"+S[e]}function dc(e){return T.test(e)}function mc(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function hc(t,n){return function(e){return t(n(e))}}function fc(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==oa||(e[n]=oa,o[i++]=n)}return o}function pc(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function gc(e){return dc(e)?function(e){var t=k.lastIndex=0;for(;k.test(e);)++t;return t}(e):R(e)}function vc(e){return dc(e)?e.match(k)||[]:e.split("")}var bc=L({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var $c=function e(t){var n,k=(t=null==t?xs:$c.defaults(xs.Object(),t,$c.pick(xs,ys))).Array,r=t.Date,i=t.Error,g=t.Function,o=t.Math,_=t.Object,v=t.RegExp,u=t.String,T=t.TypeError,a=k.prototype,s=g.prototype,d=_.prototype,c=t["__core-js_shared__"],l=s.toString,M=d.hasOwnProperty,m=0,h=(n=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",f=d.toString,p=l.call(_),b=xs._,$=v("^"+l.call(M).replace(Xa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=As?t.Buffer:na,E=t.Symbol,C=t.Uint8Array,w=y?y.allocUnsafe:na,x=hc(_.getPrototypeOf,_),A=_.create,S=d.propertyIsEnumerable,D=a.splice,N=E?E.isConcatSpreadable:na,O=E?E.iterator:na,I=E?E.toStringTag:na,H=function(){try{var e=jn(_,"defineProperty");return e({},"",{}),e}catch(e){}}(),P=t.clearTimeout!==xs.clearTimeout&&t.clearTimeout,R=r&&r.now!==xs.Date.now&&r.now,L=t.setTimeout!==xs.setTimeout&&t.setTimeout,F=o.ceil,j=o.floor,B=_.getOwnPropertySymbols,U=y?y.isBuffer:na,V=t.isFinite,q=a.join,z=hc(_.keys,_),Y=o.max,W=o.min,G=r.now,K=t.parseInt,X=o.random,Z=a.reverse,J=jn(t,"DataView"),Q=jn(t,"Map"),ee=jn(t,"Promise"),te=jn(t,"Set"),ne=jn(t,"WeakMap"),re=jn(_,"create"),ie=ne&&new ne,oe={},ae=fr(J),se=fr(Q),ce=fr(ee),le=fr(te),ue=fr(ne),de=E?E.prototype:na,me=de?de.valueOf:na,he=de?de.toString:na;function fe(e){if(Di(e)&&!yi(e)&&!(e instanceof be)){if(e instanceof ve)return e;if(M.call(e,"__wrapped__"))return pr(e)}return new ve(e)}var pe=function(){function n(){}return function(e){if(!Si(e))return{};if(A)return A(e);n.prototype=e;var t=new n;return n.prototype=na,t}}();function ge(){}function ve(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=na}function be(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ca,this.__views__=[]}function $e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ee;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ye(e);this.size=t.size}function _e(e,t){var n=yi(e),r=!n&&$i(e),i=!n&&!r&&_i(e),o=!n&&!r&&!i&&Fi(e),a=n||r||i||o,s=a?nc(e.length,u):[],c=s.length;for(var l in e)!t&&!M.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Wn(l,c))||s.push(l);return s}function Me(e){var t=e.length;return t?e[Ct(0,t-1)]:na}function xe(e,t){return lr(rn(e),He(t,0,e.length))}function Ae(e){return lr(rn(e))}function ke(e,t,n){(n===na||gi(e[t],n))&&(n!==na||t in e)||Oe(e,t,n)}function Te(e,t,n){var r=e[t];M.call(e,t)&&gi(r,n)&&(n!==na||t in e)||Oe(e,t,n)}function Se(e,t){for(var n=e.length;n--;)if(gi(e[n][0],t))return n;return-1}function De(e,r,i,o){return je(e,function(e,t,n){r(o,e,i(e),n)}),o}function Ne(e,t){return e&&on(t,so(t),e)}function Oe(e,t,n){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ie(e,t){for(var n=-1,r=t.length,i=k(r),o=null==e;++n<r;)i[n]=o?na:no(e,t[n]);return i}function He(e,t,n){return e==e&&(n!==na&&(e=e<=n?e:n),t!==na&&(e=t<=e?e:t)),e}function Pe(n,r,i,e,t,o){var a,s=1&r,c=2&r,l=4&r;if(i&&(a=t?i(n,e,t,o):i(n)),a!==na)return a;if(!Si(n))return n;var u,d,m,h,f,p,g,v,b,$=yi(n);if($){if(v=(g=n).length,b=new g.constructor(v),v&&"string"==typeof g[0]&&M.call(g,"index")&&(b.index=g.index,b.input=g.input),a=b,!s)return rn(n,a)}else{var y=Vn(n),E=y==pa||y==ga;if(_i(n))return Zt(n,s);if(y==$a||y==ua||E&&!t){if(a=c||E?{}:zn(n),!s)return c?(p=m=n,h=(f=a)&&on(p,co(p),f),on(m,Un(m),h)):(d=Ne(a,u=n),on(u,Bn(u),d))}else{if(!ws[y])return t?n:{};a=function(e,t,n){var r,i,o,a,s,c=e.constructor;switch(t){case xa:return Jt(e);case ma:case ha:return new c(+e);case Aa:return a=e,s=n?Jt(a.buffer):a.buffer,new a.constructor(s,a.byteOffset,a.byteLength);case ka:case Ta:case Sa:case Da:case Na:case Oa:case Ia:case Ha:case Pa:return Qt(e,n);case va:return new c;case ba:case wa:return new c(e);case Ea:return(o=new(i=e).constructor(i.source,ss.exec(i))).lastIndex=i.lastIndex,o;case Ca:return new c;case _a:return r=e,me?_(me.call(r)):{}}}(n,y,s)}}o||(o=new we);var C=o.get(n);if(C)return C;o.set(n,a),Pi(n)?n.forEach(function(e){a.add(Pe(e,r,i,e,n,o))}):Ni(n)&&n.forEach(function(e,t){a.set(t,Pe(e,r,i,t,n,o))});var w=$?na:(l?c?On:Nn:c?co:so)(n);return Ps(w||n,function(e,t){w&&(e=n[t=e]),Te(a,t,Pe(e,r,i,t,n,o))}),a}function Re(e,t,n){var r=n.length;if(null==e)return!r;for(e=_(e);r--;){var i=n[r],o=t[i],a=e[i];if(a===na&&!(i in e)||!o(a))return!1}return!0}function Le(e,t,n){if("function"!=typeof e)throw new T(ra);return or(function(){e.apply(na,n)},t)}function Fe(e,t,n,r){var i=-1,o=js,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Us(t,rc(n))),r?(o=Bs,a=!1):200<=t.length&&(o=oc,a=!1,t=new Ce(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var m=l;m--;)if(t[m]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}fe.templateSettings={escape:qa,evaluate:za,interpolate:Ya,variable:"",imports:{_:fe}},(fe.prototype=ge.prototype).constructor=fe,(ve.prototype=pe(ge.prototype)).constructor=ve,(be.prototype=pe(ge.prototype)).constructor=be,$e.prototype.clear=function(){this.__data__=re?re(null):{},this.size=0},$e.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$e.prototype.get=function(e){var t=this.__data__;if(re){var n=t[e];return n===ia?na:n}return M.call(t,e)?t[e]:na},$e.prototype.has=function(e){var t=this.__data__;return re?t[e]!==na:M.call(t,e)},$e.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=re&&t===na?ia:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=Se(t,e);return!(n<0||(n==t.length-1?t.pop():D.call(t,n,1),--this.size,0))},ye.prototype.get=function(e){var t=this.__data__,n=Se(t,e);return n<0?na:t[n][1]},ye.prototype.has=function(e){return-1<Se(this.__data__,e)},ye.prototype.set=function(e,t){var n=this.__data__,r=Se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ee.prototype.clear=function(){this.size=0,this.__data__={hash:new $e,map:new(Q||ye),string:new $e}},Ee.prototype.delete=function(e){var t=Ln(this,e).delete(e);return this.size-=t?1:0,t},Ee.prototype.get=function(e){return Ln(this,e).get(e)},Ee.prototype.has=function(e){return Ln(this,e).has(e)},Ee.prototype.set=function(e,t){var n=Ln(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,ia),this},Ce.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ye,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ee(r)}return n.set(e,t),this.size=n.size,this};var je=cn(Ge),Be=cn(Ke,!0);function Ue(e,r){var i=!0;return je(e,function(e,t,n){return i=!!r(e,t,n)}),i}function Ve(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(s===na?a==a&&!Li(a):n(a,s)))var s=a,c=o}return c}function qe(e,r){var i=[];return je(e,function(e,t,n){r(e,t,n)&&i.push(e)}),i}function ze(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Yn),i||(i=[]);++o<a;){var s=e[o];0<t&&n(s)?1<t?ze(s,t-1,n,r,i):Vs(i,s):r||(i[i.length]=s)}return i}var Ye=ln(),We=ln(!0);function Ge(e,t){return e&&Ye(e,t,so)}function Ke(e,t){return e&&We(e,t,so)}function Xe(t,e){return Fs(e,function(e){return Ai(t[e])})}function Ze(e,t){for(var n=0,r=(t=Wt(t,e)).length;null!=e&&n<r;)e=e[hr(t[n++])];return n&&n==r?e:na}function Je(e,t,n){var r=t(e);return yi(e)?r:Vs(r,n(e))}function Qe(e){return null==e?e===na?"[object Undefined]":"[object Null]":I&&I in _(e)?function(e){var t=M.call(e,I),n=e[I];try{e[I]=na;var r=!0}catch(e){}var i=f.call(e);return r&&(t?e[I]=n:delete e[I]),i}(e):(t=e,f.call(t));var t}function et(e,t){return t<e}function tt(e,t){return null!=e&&M.call(e,t)}function nt(e,t){return null!=e&&t in _(e)}function rt(e,t,n){for(var r=n?Bs:js,i=e[0].length,o=e.length,a=o,s=k(o),c=1/0,l=[];a--;){var u=e[a];a&&t&&(u=Us(u,rc(t))),c=W(u.length,c),s[a]=!n&&(t||120<=i&&120<=u.length)?new Ce(a&&u):na}u=e[0];var d=-1,m=s[0];e:for(;++d<i&&l.length<c;){var h=u[d],f=t?t(h):h;if(h=n||0!==h?h:0,!(m?oc(m,f):r(l,f,n))){for(a=o;--a;){var p=s[a];if(!(p?oc(p,f):r(e[a],f,n)))continue e}m&&m.push(f),l.push(h)}}return l}function it(e,t,n){var r=null==(e=nr(e,t=Wt(t,e)))?e:e[hr(xr(t))];return null==r?na:Is(r,e,n)}function ot(e){return Di(e)&&Qe(e)==ua}function at(e,t,n,r,i){return e===t||(null==e||null==t||!Di(e)&&!Di(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=yi(e),s=yi(t),c=a?da:Vn(e),l=s?da:Vn(t),u=(c=c==ua?$a:c)==$a,d=(l=l==ua?$a:l)==$a,m=c==l;if(m&&_i(e)){if(!_i(t))return!1;u=!(a=!0)}if(m&&!u)return o||(o=new we),a||Fi(e)?Sn(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case Aa:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xa:return!(e.byteLength!=t.byteLength||!o(new C(e),new C(t)));case ma:case ha:case ba:return gi(+e,+t);case fa:return e.name==t.name&&e.message==t.message;case Ea:case wa:return e==t+"";case va:var s=mc;case Ca:var c=1&r;if(s||(s=pc),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Sn(s(e),s(t),r,i,o,a);return a.delete(e),u;case _a:if(me)return me.call(e)==me.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var h=u&&M.call(e,"__wrapped__"),f=d&&M.call(t,"__wrapped__");if(h||f){var p=h?e.value():e,g=f?t.value():t;return o||(o=new we),i(p,g,n,r,o)}}return!!m&&(o||(o=new we),function(e,t,n,r,i,o){var a=1&n,s=Nn(e),c=s.length,l=Nn(t).length;if(c!=l&&!a)return!1;for(var u=c;u--;){var d=s[u];if(!(a?d in t:M.call(t,d)))return!1}var m=o.get(e);if(m&&o.get(t))return m==t;var h=!0;o.set(e,t),o.set(t,e);for(var f=a;++u<c;){d=s[u];var p=e[d],g=t[d];if(r)var v=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(!(v===na?p===g||i(p,g,n,r,o):v)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var b=e.constructor,$=t.constructor;b!=$&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof $&&$ instanceof $)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o))}(e,t,n,r,at,i))}function st(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=_(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],l=e[c],u=s[1];if(a&&s[2]){if(l===na&&!(c in e))return!1}else{var d=new we;if(r)var m=r(l,u,c,e,t,d);if(!(m===na?at(u,l,3,r,d):m))return!1}}return!0}function ct(e){return!(!Si(e)||(t=e,h&&h in t))&&(Ai(e)?$:us).test(fr(e));var t}function lt(e){return"function"==typeof e?e:null==e?Io:"object"==typeof e?yi(e)?pt(e[0],e[1]):ft(e):Vo(e)}function ut(e){if(!Jn(e))return z(e);var t=[];for(var n in _(e))M.call(e,n)&&"constructor"!=n&&t.push(n);return t}function dt(e){if(!Si(e))return function(e){var t=[];if(null!=e)for(var n in _(e))t.push(n);return t}(e);var t=Jn(e),n=[];for(var r in e)("constructor"!=r||!t&&M.call(e,r))&&n.push(r);return n}function mt(e,t){return e<t}function ht(e,r){var i=-1,o=Ci(e)?k(e.length):[];return je(e,function(e,t,n){o[++i]=r(e,t,n)}),o}function ft(t){var n=Fn(t);return 1==n.length&&n[0][2]?er(n[0][0],n[0][1]):function(e){return e===t||st(e,t,n)}}function pt(n,r){return Kn(n)&&Qn(r)?er(hr(n),r):function(e){var t=no(e,n);return t===na&&t===r?ro(e,n):at(r,t,3)}}function gt(r,i,o,a,s){r!==i&&Ye(i,function(e,t){if(s||(s=new we),Si(e))!function(e,t,n,r,i,o,a){var s=rr(e,n),c=rr(t,n),l=a.get(c);if(l)return ke(e,n,l);var u=o?o(s,c,n+"",e,t,a):na,d=u===na;if(d){var m=yi(c),h=!m&&_i(c),f=!m&&!h&&Fi(c);u=c,m||h||f?u=yi(s)?s:wi(s)?rn(s):h?Zt(c,!(d=!1)):f?Qt(c,!(d=!1)):[]:Ii(c)||$i(c)?$i(u=s)?u=Wi(s):Si(s)&&!Ai(s)||(u=zn(c)):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c)),ke(e,n,u)}(r,i,t,o,gt,a,s);else{var n=a?a(rr(r,t),e,t+"",r,i,s):na;n===na&&(n=e),ke(r,t,n)}},co)}function vt(e,t){var n=e.length;if(n)return Wn(t+=t<0?n:0,n)?e[t]:na}function bt(e,r,n){var i=-1;return r=Us(r.length?r:[Io],rc(Rn())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(ht(e,function(t,e,n){return{criteria:Us(r,function(e){return e(t)}),index:++i,value:t}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var c=en(i[r],o[r]);if(c){if(s<=r)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function $t(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Ze(e,a);n(s,a)&&At(o,Wt(a,e),s)}return o}function yt(e,t,n,r){var i=r?Xs:Ks,o=-1,a=t.length,s=e;for(e===t&&(t=rn(t)),n&&(s=Us(e,rc(n)));++o<a;)for(var c=0,l=t[o],u=n?n(l):l;-1<(c=i(s,u,c,r));)s!==e&&D.call(s,c,1),D.call(e,c,1);return e}function Et(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Wn(i)?D.call(e,i,1):Ft(e,i)}}return e}function Ct(e,t){return e+j(X()*(t-e+1))}function wt(e,t){var n="";if(!e||t<1||aa<t)return n;for(;t%2&&(n+=e),(t=j(t/2))&&(e+=e),t;);return n}function _t(e,t){return ar(tr(e,t,Io),e+"")}function Mt(e){return Me(vo(e))}function xt(e,t){var n=vo(e);return lr(n,He(t,0,n.length))}function At(e,t,n,r){if(!Si(e))return e;for(var i=-1,o=(t=Wt(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=hr(t[i]),l=n;if(i!=a){var u=s[c];(l=r?r(u,c,s):na)===na&&(l=Si(u)?u:Wn(t[i+1])?[]:{})}Te(s,c,l),s=s[c]}return e}var kt=ie?function(e,t){return ie.set(e,t),e}:Io,Tt=H?function(e,t){return H(e,"toString",{configurable:!0,enumerable:!1,value:Do(t),writable:!0})}:Io;function St(e){return lr(vo(e))}function Dt(e,t,n){var r=-1,i=e.length;t<0&&(t=i<-t?0:i+t),(n=i<n?i:n)<0&&(n+=i),i=n<t?0:n-t>>>0,t>>>=0;for(var o=k(i);++r<i;)o[r]=e[r+t];return o}function Nt(e,r){var i;return je(e,function(e,t,n){return!(i=r(e,t,n))}),!!i}function Ot(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Li(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return It(e,t,Io,n)}function It(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!=t,s=null===t,c=Li(t),l=t===na;i<o;){var u=j((i+o)/2),d=n(e[u]),m=d!==na,h=null===d,f=d==d,p=Li(d);if(a)var g=r||f;else g=l?f&&(r||m):s?f&&m&&(r||!h):c?f&&m&&!h&&(r||!p):!h&&!p&&(r?d<=t:d<t);g?i=u+1:o=u}return W(o,4294967294)}function Ht(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!gi(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Pt(e){return"number"==typeof e?e:Li(e)?sa:+e}function Rt(e){if("string"==typeof e)return e;if(yi(e))return Us(e,Rt)+"";if(Li(e))return he?he.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Lt(e,t,n){var r=-1,i=js,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=Bs;else if(200<=o){var l=t?null:_n(e);if(l)return pc(l);a=!1,i=oc,c=new Ce}else c=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var m=c.length;m--;)if(c[m]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ft(e,t){return null==(e=nr(e,t=Wt(t,e)))||delete e[hr(xr(t))]}function jt(e,t,n,r){return At(e,t,n(Ze(e,t)),r)}function Bt(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Dt(e,r?0:o,r?o+1:i):Dt(e,r?o+1:0,r?i:o)}function Ut(e,t){var n=e;return n instanceof be&&(n=n.value()),qs(t,function(e,t){return t.func.apply(t.thisArg,Vs([e],t.args))},n)}function Vt(e,t,n){var r=e.length;if(r<2)return r?Lt(e[0]):[];for(var i=-1,o=k(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=Fe(o[i]||a,e[s],t,n));return Lt(ze(o,1),t,n)}function qt(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:na;n(a,e[r],s)}return a}function zt(e){return wi(e)?e:[]}function Yt(e){return"function"==typeof e?e:Io}function Wt(e,t){return yi(e)?e:Kn(e,t)?[e]:mr(Gi(e))}var Gt=_t;function Kt(e,t,n){var r=e.length;return n=n===na?r:n,!t&&r<=n?e:Dt(e,t,n)}var Xt=P||function(e){return xs.clearTimeout(e)};function Zt(e,t){if(t)return e.slice();var n=e.length,r=w?w(n):new e.constructor(n);return e.copy(r),r}function Jt(e){var t=new e.constructor(e.byteLength);return new C(t).set(new C(e)),t}function Qt(e,t){var n=t?Jt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function en(e,t){if(e!==t){var n=e!==na,r=null===e,i=e==e,o=Li(e),a=t!==na,s=null===t,c=t==t,l=Li(t);if(!s&&!l&&!o&&t<e||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}function tn(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,c=t.length,l=Y(o-a,0),u=k(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<a;)(d||i<o)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function nn(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,c=-1,l=t.length,u=Y(o-s,0),d=k(u+l),m=!r;++i<u;)d[i]=e[i];for(var h=i;++c<l;)d[h+c]=t[c];for(;++a<s;)(m||i<o)&&(d[h+n[a]]=e[i++]);return d}function rn(e,t){var n=-1,r=e.length;for(t||(t=k(r));++n<r;)t[n]=e[n];return t}function on(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):na;c===na&&(c=e[s]),i?Oe(n,s,c):Te(n,s,c)}return n}function an(i,o){return function(e,t){var n=yi(e)?Hs:De,r=o?o():{};return n(e,i,Rn(t,2),r)}}function sn(s){return _t(function(e,t){var n=-1,r=t.length,i=1<r?t[r-1]:na,o=2<r?t[2]:na;for(i=3<s.length&&"function"==typeof i?(r--,i):na,o&&Gn(t[0],t[1],o)&&(i=r<3?na:i,r=1),e=_(e);++n<r;){var a=t[n];a&&s(e,a,n,i)}return e})}function cn(o,a){return function(e,t){if(null==e)return e;if(!Ci(e))return o(e,t);for(var n=e.length,r=a?n:-1,i=_(e);(a?r--:++r<n)&&!1!==t(i[r],r,i););return e}}function ln(c){return function(e,t,n){for(var r=-1,i=_(e),o=n(e),a=o.length;a--;){var s=o[c?a:++r];if(!1===t(i[s],s,i))break}return e}}function un(i){return function(e){var t=dc(e=Gi(e))?vc(e):na,n=t?t[0]:e.charAt(0),r=t?Kt(t,1).join(""):e.slice(1);return n[i]()+r}}function dn(t){return function(e){return qs(ko(yo(e).replace(gs,"")),t,"")}}function mn(r){return function(){var e=arguments;switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3]);case 5:return new r(e[0],e[1],e[2],e[3],e[4]);case 6:return new r(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new r(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=pe(r.prototype),n=r.apply(t,e);return Si(n)?n:t}}function hn(a){return function(e,t,n){var r=_(e);if(!Ci(e)){var i=Rn(t,3);e=so(e),t=function(e){return i(r[e],e,r)}}var o=a(e,t,n);return-1<o?r[i?e[o]:o]:na}}function fn(c){return Dn(function(i){var o=i.length,e=o,t=ve.prototype.thru;for(c&&i.reverse();e--;){var n=i[e];if("function"!=typeof n)throw new T(ra);if(t&&!a&&"wrapper"==Hn(n))var a=new ve([],!0)}for(e=a?e:o;++e<o;){var r=Hn(n=i[e]),s="wrapper"==r?In(n):na;a=s&&Xn(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[Hn(s[0])].apply(a,s[3]):1==n.length&&Xn(n)?a[r]():a.thru(n)}return function(){var e=arguments,t=e[0];if(a&&1==e.length&&yi(t))return a.plant(t).value();for(var n=0,r=o?i[n].apply(this,e):t;++n<o;)r=i[n].call(this,r);return r}})}function pn(l,u,d,m,h,f,p,g,v,b){var $=128&u,y=1&u,E=2&u,C=24&u,w=512&u,_=E?na:mn(l);return function e(){for(var t=arguments.length,n=k(t),r=t;r--;)n[r]=arguments[r];if(C)var i=Pn(e),o=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(n,i);if(m&&(n=tn(n,m,h,C)),f&&(n=nn(n,f,p,C)),t-=o,C&&t<b){var a=fc(n,i);return Cn(l,u,pn,e.placeholder,d,n,a,g,v,b-t)}var s=y?d:this,c=E?s[l]:l;return t=n.length,g?n=function(e,t){for(var n=e.length,r=W(t.length,n),i=rn(e);r--;){var o=t[r];e[r]=Wn(o,n)?i[o]:na}return e}(n,g):w&&1<t&&n.reverse(),$&&v<t&&(n.length=v),this&&this!==xs&&this instanceof e&&(c=_||mn(c)),c.apply(s,n)}}function gn(a,s){return function(e,t){return n=e,r=a,i=s(t),o={},Ge(n,function(e,t,n){r(o,i(e),t,n)}),o;var n,r,i,o}}function vn(r,i){return function(e,t){var n;if(e===na&&t===na)return i;if(e!==na&&(n=e),t!==na){if(n===na)return t;t="string"==typeof e||"string"==typeof t?(e=Rt(e),Rt(t)):(e=Pt(e),Pt(t)),n=r(e,t)}return n}}function bn(r){return Dn(function(e){return e=Us(e,rc(Rn())),_t(function(t){var n=this;return r(e,function(e){return Is(e,n,t)})})})}function $n(e,t){var n=(t=t===na?" ":Rt(t)).length;if(n<2)return n?wt(t,e):t;var r=wt(t,F(e/gc(t)));return dc(t)?Kt(vc(r),0,e).join(""):r.slice(0,e)}function yn(r){return function(e,t,n){return n&&"number"!=typeof n&&Gn(e,t,n)&&(t=n=na),e=Vi(e),t===na?(t=e,e=0):t=Vi(t),function(e,t,n,r){for(var i=-1,o=Y(F((t-e)/(n||1)),0),a=k(o);o--;)a[r?o:++i]=e,e+=n;return a}(e,t,n=n===na?e<t?1:-1:Vi(n),r)}}function En(n){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=Yi(e),t=Yi(t)),n(e,t)}}function Cn(e,t,n,r,i,o,a,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?o:na,u?a:na,u?na:o,u?na:a,s,c,l],m=n.apply(na,d);return Xn(e)&&ir(m,d),m.placeholder=r,sr(m,e,t)}function wn(e){var r=o[e];return function(e,t){if(e=Yi(e),(t=null==t?0:W(qi(t),292))&&V(e)){var n=(Gi(e)+"e").split("e");return+((n=(Gi(r(n[0]+"e"+(+n[1]+t)))+"e").split("e"))[0]+"e"+(+n[1]-t))}return r(e)}}var _n=te&&1/pc(new te([,-0]))[1]==1/0?function(e){return new te(e)}:Fo;function Mn(a){return function(e){var t,n,r,i,o=Vn(e);return o==va?mc(e):o==Ca?(t=e,n=-1,r=Array(t.size),t.forEach(function(e){r[++n]=[e,e]}),r):Us(a(i=e),function(e){return[e,i[e]]})}}function xn(e,t,n,r,i,o,a,s){var c=2&t;if(!c&&"function"!=typeof e)throw new T(ra);var l=r?r.length:0;if(l||(t&=-97,r=i=na),a=a===na?a:Y(qi(a),0),s=s===na?s:qi(s),l-=i?i.length:0,64&t){var u=r,d=i;r=i=na}var m,h,f,p,g,v,b,$,y,E,C,w,_,M=c?na:In(e),x=[e,t,n,r,i,u,d,o,a,s];if(M&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(o||a){1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?tn(c,s,t[4]):s,e[4]=c?fc(e[3],oa):t[4]}(s=t[5])&&(c=e[5],e[5]=c?nn(c,s,t[6]):s,e[6]=c?fc(e[5],oa):t[6]),(s=t[7])&&(e[7]=s),128&r&&(e[8]=null==e[8]?t[8]:W(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(x,M),e=x[0],t=x[1],n=x[2],r=x[3],i=x[4],!(s=x[9]=x[9]===na?c?0:e.length:Y(x[9]-l,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||16==t?(b=t,$=s,y=mn(v=e),function e(){for(var t=arguments.length,n=k(t),r=t,i=Pn(e);r--;)n[r]=arguments[r];var o=t<3&&n[0]!==i&&n[t-1]!==i?[]:fc(n,i);return(t-=o.length)<$?Cn(v,b,pn,e.placeholder,na,n,o,na,na,$-t):Is(this&&this!==xs&&this instanceof e?y:v,this,n)}):32!=t&&33!=t||i.length?pn.apply(na,x):(h=n,f=r,p=1&t,g=mn(m=e),function e(){for(var t=-1,n=arguments.length,r=-1,i=f.length,o=k(i+n),a=this&&this!==xs&&this instanceof e?g:m;++r<i;)o[r]=f[r];for(;n--;)o[r++]=arguments[++t];return Is(a,p?h:this,o)});else var A=(C=n,w=1&t,_=mn(E=e),function e(){return(this&&this!==xs&&this instanceof e?_:E).apply(w?C:this,arguments)});return sr((M?kt:ir)(A,x),e,t)}function An(e,t,n,r){return e===na||gi(e,d[n])&&!M.call(r,n)?t:e}function kn(e,t,n,r,i,o){return Si(e)&&Si(t)&&(o.set(t,e),gt(e,t,na,kn,o),o.delete(t)),e}function Tn(e){return Ii(e)?na:e}function Sn(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&s<c))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,m=2&n?new Ce:na;for(o.set(e,t),o.set(t,e);++u<s;){var h=e[u],f=t[u];if(r)var p=a?r(f,h,u,t,e,o):r(h,f,u,e,t,o);if(p!==na){if(p)continue;d=!1;break}if(m){if(!Ys(t,function(e,t){if(!oc(m,t)&&(h===e||i(h,e,n,r,o)))return m.push(t)})){d=!1;break}}else if(h!==f&&!i(h,f,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Dn(e){return ar(tr(e,na,Er),e+"")}function Nn(e){return Je(e,so,Bn)}function On(e){return Je(e,co,Un)}var In=ie?function(e){return ie.get(e)}:Fo;function Hn(e){for(var t=e.name+"",n=oe[t],r=M.call(oe,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Pn(e){return(M.call(fe,"placeholder")?fe:e).placeholder}function Rn(){var e=fe.iteratee||Ho;return e=e===Ho?lt:e,arguments.length?e(arguments[0],arguments[1]):e}function Ln(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Fn(e){for(var t=so(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Qn(i)]}return t}function jn(e,t){var n,r,i=(r=t,null==(n=e)?na:n[r]);return ct(i)?i:na}var Bn=B?function(t){return null==t?[]:(t=_(t),Fs(B(t),function(e){return S.call(t,e)}))}:Yo,Un=B?function(e){for(var t=[];e;)Vs(t,Bn(e)),e=x(e);return t}:Yo,Vn=Qe;function qn(e,t,n){for(var r=-1,i=(t=Wt(t,e)).length,o=!1;++r<i;){var a=hr(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ti(i)&&Wn(a,i)&&(yi(e)||$i(e))}function zn(e){return"function"!=typeof e.constructor||Jn(e)?{}:pe(x(e))}function Yn(e){return yi(e)||$i(e)||!!(N&&e&&e[N])}function Wn(e,t){var n=typeof e;return!!(t=null==t?aa:t)&&("number"==n||"symbol"!=n&&ms.test(e))&&-1<e&&e%1==0&&e<t}function Gn(e,t,n){if(!Si(n))return!1;var r=typeof t;return!!("number"==r?Ci(n)&&Wn(t,n.length):"string"==r&&t in n)&&gi(n[t],e)}function Kn(e,t){if(yi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Li(e))||Ga.test(e)||!Wa.test(e)||null!=t&&e in _(t)}function Xn(e){var t=Hn(e),n=fe[t];if("function"!=typeof n||!(t in be.prototype))return!1;if(e===n)return!0;var r=In(n);return!!r&&e===r[0]}(J&&Vn(new J(new ArrayBuffer(1)))!=Aa||Q&&Vn(new Q)!=va||ee&&Vn(ee.resolve())!=ya||te&&Vn(new te)!=Ca||ne&&Vn(new ne)!=Ma)&&(Vn=function(e){var t=Qe(e),n=t==$a?e.constructor:na,r=n?fr(n):"";if(r)switch(r){case ae:return Aa;case se:return va;case ce:return ya;case le:return Ca;case ue:return Ma}return t});var Zn=c?Ai:Wo;function Jn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||d)}function Qn(e){return e==e&&!Si(e)}function er(t,n){return function(e){return null!=e&&e[t]===n&&(n!==na||t in _(e))}}function tr(o,a,s){return a=Y(a===na?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=Y(e.length-a,0),r=k(n);++t<n;)r[t]=e[a+t];t=-1;for(var i=k(a+1);++t<a;)i[t]=e[t];return i[a]=s(r),Is(o,this,i)}}function nr(e,t){return t.length<2?e:Ze(e,Dt(t,0,-1))}function rr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ir=cr(kt),or=L||function(e,t){return xs.setTimeout(e,t)},ar=cr(Tt);function sr(e,t,n){var r,i,o,a=t+"";return ar(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(1<n?"& ":"")+t[r],t=t.join(2<n?", ":" "),e.replace(ts,"{\n/* [wrapped with "+t+"] */\n")}(a,(o=a.match(ns),r=o?o[1].split(rs):[],i=n,Ps(la,function(e){var t="_."+e[0];i&e[1]&&!js(r,t)&&r.push(t)}),r.sort())))}function cr(n){var r=0,i=0;return function(){var e=G(),t=16-(e-i);if(i=e,0<t){if(800<=++r)return arguments[0]}else r=0;return n.apply(na,arguments)}}function lr(e,t){var n=-1,r=e.length,i=r-1;for(t=t===na?r:t;++n<t;){var o=Ct(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var ur,dr,mr=(dr=(ur=ui(function(e){var i=[];return 46===e.charCodeAt(0)&&i.push(""),e.replace(Ka,function(e,t,n,r){i.push(n?r.replace(os,"$1"):t||e)}),i},function(e){return 500===dr.size&&dr.clear(),e})).cache,ur);function hr(e){if("string"==typeof e||Li(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fr(e){if(null!=e){try{return l.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function pr(e){if(e instanceof be)return e.clone();var t=new ve(e.__wrapped__,e.__chain__);return t.__actions__=rn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var gr=_t(function(e,t){return wi(e)?Fe(e,ze(t,1,wi,!0)):[]}),vr=_t(function(e,t){var n=xr(t);return wi(n)&&(n=na),wi(e)?Fe(e,ze(t,1,wi,!0),Rn(n,2)):[]}),br=_t(function(e,t){var n=xr(t);return wi(n)&&(n=na),wi(e)?Fe(e,ze(t,1,wi,!0),na,n):[]});function $r(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qi(n);return i<0&&(i=Y(r+i,0)),Gs(e,Rn(t,3),i)}function yr(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==na&&(i=qi(n),i=n<0?Y(r+i,0):W(i,r-1)),Gs(e,Rn(t,3),i,!0)}function Er(e){return null!=e&&e.length?ze(e,1):[]}function Cr(e){return e&&e.length?e[0]:na}var wr=_t(function(e){var t=Us(e,zt);return t.length&&t[0]===e[0]?rt(t):[]}),_r=_t(function(e){var t=xr(e),n=Us(e,zt);return t===xr(n)?t=na:n.pop(),n.length&&n[0]===e[0]?rt(n,Rn(t,2)):[]}),Mr=_t(function(e){var t=xr(e),n=Us(e,zt);return(t="function"==typeof t?t:na)&&n.pop(),n.length&&n[0]===e[0]?rt(n,na,t):[]});function xr(e){var t=null==e?0:e.length;return t?e[t-1]:na}var Ar=_t(kr);function kr(e,t){return e&&e.length&&t&&t.length?yt(e,t):e}var Tr=Dn(function(e,t){var n=null==e?0:e.length,r=Ie(e,t);return Et(e,Us(t,function(e){return Wn(e,n)?+e:e}).sort(en)),r});function Sr(e){return null==e?e:Z.call(e)}var Dr=_t(function(e){return Lt(ze(e,1,wi,!0))}),Nr=_t(function(e){var t=xr(e);return wi(t)&&(t=na),Lt(ze(e,1,wi,!0),Rn(t,2))}),Or=_t(function(e){var t=xr(e);return t="function"==typeof t?t:na,Lt(ze(e,1,wi,!0),na,t)});function Ir(t){if(!t||!t.length)return[];var n=0;return t=Fs(t,function(e){if(wi(e))return n=Y(e.length,n),!0}),nc(n,function(e){return Us(t,Qs(e))})}function Hr(e,t){if(!e||!e.length)return[];var n=Ir(e);return null==t?n:Us(n,function(e){return Is(t,na,e)})}var Pr=_t(function(e,t){return wi(e)?Fe(e,t):[]}),Rr=_t(function(e){return Vt(Fs(e,wi))}),Lr=_t(function(e){var t=xr(e);return wi(t)&&(t=na),Vt(Fs(e,wi),Rn(t,2))}),Fr=_t(function(e){var t=xr(e);return t="function"==typeof t?t:na,Vt(Fs(e,wi),na,t)}),jr=_t(Ir);var Br=_t(function(e){var t=e.length,n=1<t?e[t-1]:na;return n="function"==typeof n?(e.pop(),n):na,Hr(e,n)});function Ur(e){var t=fe(e);return t.__chain__=!0,t}function Vr(e,t){return t(e)}var qr=Dn(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(e){return Ie(e,t)};return!(1<n||this.__actions__.length)&&r instanceof be&&Wn(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:Vr,args:[i],thisArg:na}),new ve(r,this.__chain__).thru(function(e){return n&&!e.length&&e.push(na),e})):this.thru(i)});var zr=an(function(e,t,n){M.call(e,n)?++e[n]:Oe(e,n,1)});var Yr=hn($r),Wr=hn(yr);function Gr(e,t){return(yi(e)?Ps:je)(e,Rn(t,3))}function Kr(e,t){return(yi(e)?Rs:Be)(e,Rn(t,3))}var Xr=an(function(e,t,n){M.call(e,n)?e[n].push(t):Oe(e,n,[t])});var Zr=_t(function(e,t,n){var r=-1,i="function"==typeof t,o=Ci(e)?k(e.length):[];return je(e,function(e){o[++r]=i?Is(t,e,n):it(e,t,n)}),o}),Jr=an(function(e,t,n){Oe(e,n,t)});function Qr(e,t){return(yi(e)?Us:ht)(e,Rn(t,3))}var ei=an(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var ti=_t(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&Gn(e,t[0],t[1])?t=[]:2<n&&Gn(t[0],t[1],t[2])&&(t=[t[0]]),bt(e,ze(t,1),[])}),ni=R||function(){return xs.Date.now()};function ri(e,t,n){return t=n?na:t,t=e&&null==t?e.length:t,xn(e,128,na,na,na,na,t)}function ii(e,t){var n;if("function"!=typeof t)throw new T(ra);return e=qi(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=na),n}}var oi=_t(function(e,t,n){var r=1;if(n.length){var i=fc(n,Pn(oi));r|=32}return xn(e,r,t,n,i)}),ai=_t(function(e,t,n){var r=3;if(n.length){var i=fc(n,Pn(ai));r|=32}return xn(t,r,e,n,i)});function si(r,i,e){var o,a,s,c,l,u,d=0,m=!1,h=!1,t=!0;if("function"!=typeof r)throw new T(ra);function f(e){var t=o,n=a;return o=a=na,d=e,c=r.apply(n,t)}function p(e){var t=e-u;return u===na||i<=t||t<0||h&&s<=e-d}function g(){var e,t,n=ni();if(p(n))return v(n);l=or(g,(t=i-((e=n)-u),h?W(t,s-(e-d)):t))}function v(e){return l=na,t&&o?f(e):(o=a=na,c)}function n(){var e,t=ni(),n=p(t);if(o=arguments,a=this,u=t,n){if(l===na)return d=e=u,l=or(g,i),m?f(e):c;if(h)return Xt(l),l=or(g,i),f(u)}return l===na&&(l=or(g,i)),c}return i=Yi(i)||0,Si(e)&&(m=!!e.leading,s=(h="maxWait"in e)?Y(Yi(e.maxWait)||0,i):s,t="trailing"in e?!!e.trailing:t),n.cancel=function(){l!==na&&Xt(l),d=0,o=u=a=l=na},n.flush=function(){return l===na?c:v(ni())},n}var ci=_t(function(e,t){return Le(e,1,t)}),li=_t(function(e,t,n){return Le(e,Yi(t)||0,n)});function ui(i,o){if("function"!=typeof i||null!=o&&"function"!=typeof o)throw new T(ra);var a=function(){var e=arguments,t=o?o.apply(this,e):e[0],n=a.cache;if(n.has(t))return n.get(t);var r=i.apply(this,e);return a.cache=n.set(t,r)||n,r};return a.cache=new(ui.Cache||Ee),a}function di(t){if("function"!=typeof t)throw new T(ra);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)}}ui.Cache=Ee;var mi=Gt(function(r,i){var o=(i=1==i.length&&yi(i[0])?Us(i[0],rc(Rn())):Us(ze(i,1),rc(Rn()))).length;return _t(function(e){for(var t=-1,n=W(e.length,o);++t<n;)e[t]=i[t].call(this,e[t]);return Is(r,this,e)})}),hi=_t(function(e,t){var n=fc(t,Pn(hi));return xn(e,32,na,t,n)}),fi=_t(function(e,t){var n=fc(t,Pn(fi));return xn(e,64,na,t,n)}),pi=Dn(function(e,t){return xn(e,256,na,na,na,t)});function gi(e,t){return e===t||e!=e&&t!=t}var vi=En(et),bi=En(function(e,t){return t<=e}),$i=ot(function(){return arguments}())?ot:function(e){return Di(e)&&M.call(e,"callee")&&!S.call(e,"callee")},yi=k.isArray,Ei=ks?rc(ks):function(e){return Di(e)&&Qe(e)==xa};function Ci(e){return null!=e&&Ti(e.length)&&!Ai(e)}function wi(e){return Di(e)&&Ci(e)}var _i=U||Wo,Mi=Ts?rc(Ts):function(e){return Di(e)&&Qe(e)==ha};function xi(e){if(!Di(e))return!1;var t=Qe(e);return t==fa||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ii(e)}function Ai(e){if(!Si(e))return!1;var t=Qe(e);return t==pa||t==ga||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ki(e){return"number"==typeof e&&e==qi(e)}function Ti(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=aa}function Si(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Di(e){return null!=e&&"object"==typeof e}var Ni=Ss?rc(Ss):function(e){return Di(e)&&Vn(e)==va};function Oi(e){return"number"==typeof e||Di(e)&&Qe(e)==ba}function Ii(e){if(!Di(e)||Qe(e)!=$a)return!1;var t=x(e);if(null===t)return!0;var n=M.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==p}var Hi=Ds?rc(Ds):function(e){return Di(e)&&Qe(e)==Ea};var Pi=Ns?rc(Ns):function(e){return Di(e)&&Vn(e)==Ca};function Ri(e){return"string"==typeof e||!yi(e)&&Di(e)&&Qe(e)==wa}function Li(e){return"symbol"==typeof e||Di(e)&&Qe(e)==_a}var Fi=Os?rc(Os):function(e){return Di(e)&&Ti(e.length)&&!!Cs[Qe(e)]};var ji=En(mt),Bi=En(function(e,t){return e<=t});function Ui(e){if(!e)return[];if(Ci(e))return Ri(e)?vc(e):rn(e);if(O&&e[O])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[O]());var t=Vn(e);return(t==va?mc:t==Ca?pc:vo)(e)}function Vi(e){return e?(e=Yi(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0}function qi(e){var t=Vi(e),n=t%1;return t==t?n?t-n:t:0}function zi(e){return e?He(qi(e),0,ca):0}function Yi(e){if("number"==typeof e)return e;if(Li(e))return sa;if(Si(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Si(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ja,"");var n=ls.test(e);return n||ds.test(e)?Ms(e.slice(2),n?2:8):cs.test(e)?sa:+e}function Wi(e){return on(e,co(e))}function Gi(e){return null==e?"":Rt(e)}var Ki=sn(function(e,t){if(Jn(t)||Ci(t))on(t,so(t),e);else for(var n in t)M.call(t,n)&&Te(e,n,t[n])}),Xi=sn(function(e,t){on(t,co(t),e)}),Zi=sn(function(e,t,n,r){on(t,co(t),e,r)}),Ji=sn(function(e,t,n,r){on(t,so(t),e,r)}),Qi=Dn(Ie);var eo=_t(function(e,t){e=_(e);var n=-1,r=t.length,i=2<r?t[2]:na;for(i&&Gn(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=co(o),s=-1,c=a.length;++s<c;){var l=a[s],u=e[l];(u===na||gi(u,d[l])&&!M.call(e,l))&&(e[l]=o[l])}return e}),to=_t(function(e){return e.push(na,kn),Is(uo,na,e)});function no(e,t,n){var r=null==e?na:Ze(e,t);return r===na?n:r}function ro(e,t){return null!=e&&qn(e,t,nt)}var io=gn(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=f.call(t)),e[t]=n},Do(Io)),oo=gn(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=f.call(t)),M.call(e,t)?e[t].push(n):e[t]=[n]},Rn),ao=_t(it);function so(e){return Ci(e)?_e(e):ut(e)}function co(e){return Ci(e)?_e(e,!0):dt(e)}var lo=sn(function(e,t,n){gt(e,t,n)}),uo=sn(function(e,t,n,r){gt(e,t,n,r)}),mo=Dn(function(t,e){var n={};if(null==t)return n;var r=!1;e=Us(e,function(e){return e=Wt(e,t),r||(r=1<e.length),e}),on(t,On(t),n),r&&(n=Pe(n,7,Tn));for(var i=e.length;i--;)Ft(n,e[i]);return n});var ho=Dn(function(e,t){return null==e?{}:$t(n=e,t,function(e,t){return ro(n,t)});var n});function fo(e,n){if(null==e)return{};var t=Us(On(e),function(e){return[e]});return n=Rn(n),$t(e,t,function(e,t){return n(e,t[0])})}var po=Mn(so),go=Mn(co);function vo(e){return null==e?[]:ic(e,so(e))}var bo=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?$o(t):t)});function $o(e){return Ao(Gi(e).toLowerCase())}function yo(e){return(e=Gi(e))&&e.replace(hs,cc).replace(vs,"")}var Eo=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Co=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),wo=un("toLowerCase");var _o=dn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Mo=dn(function(e,t,n){return e+(n?" ":"")+Ao(t)});var xo=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ao=un("toUpperCase");function ko(e,t,n){return e=Gi(e),(t=n?na:t)===na?(r=e,$s.test(r)?e.match(bs)||[]:e.match(is)||[]):e.match(t)||[];var r}var To=_t(function(e,t){try{return Is(e,na,t)}catch(e){return xi(e)?e:new i(e)}}),So=Dn(function(t,e){return Ps(e,function(e){e=hr(e),Oe(t,e,oi(t[e],t))}),t});function Do(e){return function(){return e}}var No=fn(),Oo=fn(!0);function Io(e){return e}function Ho(e){return lt("function"==typeof e?e:Pe(e,1))}var Po=_t(function(t,n){return function(e){return it(e,t,n)}}),Ro=_t(function(t,n){return function(e){return it(t,e,n)}});function Lo(r,t,e){var n=so(t),i=Xe(t,n);null!=e||Si(t)&&(i.length||!n.length)||(e=t,t=r,r=this,i=Xe(t,so(t)));var o=!(Si(e)&&"chain"in e&&!e.chain),a=Ai(r);return Ps(i,function(e){var n=t[e];r[e]=n,a&&(r.prototype[e]=function(){var e=this.__chain__;if(o||e){var t=r(this.__wrapped__);return(t.__actions__=rn(this.__actions__)).push({func:n,args:arguments,thisArg:r}),t.__chain__=e,t}return n.apply(r,Vs([this.value()],arguments))})}),r}function Fo(){}var jo=bn(Us),Bo=bn(Ls),Uo=bn(Ys);function Vo(e){return Kn(e)?Qs(hr(e)):(t=e,function(e){return Ze(e,t)});var t}var qo=yn(),zo=yn(!0);function Yo(){return[]}function Wo(){return!1}var Go=vn(function(e,t){return e+t},0),Ko=wn("ceil"),Xo=vn(function(e,t){return e/t},1),Zo=wn("floor");var Jo,Qo=vn(function(e,t){return e*t},1),ea=wn("round"),ta=vn(function(e,t){return e-t},0);return fe.after=function(e,t){if("function"!=typeof t)throw new T(ra);return e=qi(e),function(){if(--e<1)return t.apply(this,arguments)}},fe.ary=ri,fe.assign=Ki,fe.assignIn=Xi,fe.assignInWith=Zi,fe.assignWith=Ji,fe.at=Qi,fe.before=ii,fe.bind=oi,fe.bindAll=So,fe.bindKey=ai,fe.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return yi(e)?e:[e]},fe.chain=Ur,fe.chunk=function(e,t,n){t=(n?Gn(e,t,n):t===na)?1:Y(qi(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,a=k(F(r/t));i<r;)a[o++]=Dt(e,i,i+=t);return a},fe.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},fe.concat=function(){var e=arguments.length;if(!e)return[];for(var t=k(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Vs(yi(n)?rn(n):[n],ze(t,1))},fe.cond=function(r){var i=null==r?0:r.length,t=Rn();return r=i?Us(r,function(e){if("function"!=typeof e[1])throw new T(ra);return[t(e[0]),e[1]]}):[],_t(function(e){for(var t=-1;++t<i;){var n=r[t];if(Is(n[0],this,e))return Is(n[1],this,e)}})},fe.conforms=function(e){return t=Pe(e,1),n=so(t),function(e){return Re(e,t,n)};var t,n},fe.constant=Do,fe.countBy=zr,fe.create=function(e,t){var n=pe(e);return null==t?n:Ne(n,t)},fe.curry=function e(t,n,r){var i=xn(t,8,na,na,na,na,na,n=r?na:n);return i.placeholder=e.placeholder,i},fe.curryRight=function e(t,n,r){var i=xn(t,16,na,na,na,na,na,n=r?na:n);return i.placeholder=e.placeholder,i},fe.debounce=si,fe.defaults=eo,fe.defaultsDeep=to,fe.defer=ci,fe.delay=li,fe.difference=gr,fe.differenceBy=vr,fe.differenceWith=br,fe.drop=function(e,t,n){var r=null==e?0:e.length;return r?Dt(e,(t=n||t===na?1:qi(t))<0?0:t,r):[]},fe.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Dt(e,0,(t=r-(t=n||t===na?1:qi(t)))<0?0:t):[]},fe.dropRightWhile=function(e,t){return e&&e.length?Bt(e,Rn(t,3),!0,!0):[]},fe.dropWhile=function(e,t){return e&&e.length?Bt(e,Rn(t,3),!0):[]},fe.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Gn(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=qi(n))<0&&(n=i<-n?0:i+n),(r=r===na||i<r?i:qi(r))<0&&(r+=i),r=r<n?0:zi(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},fe.filter=function(e,t){return(yi(e)?Fs:qe)(e,Rn(t,3))},fe.flatMap=function(e,t){return ze(Qr(e,t),1)},fe.flatMapDeep=function(e,t){return ze(Qr(e,t),1/0)},fe.flatMapDepth=function(e,t,n){return n=n===na?1:qi(n),ze(Qr(e,t),n)},fe.flatten=Er,fe.flattenDeep=function(e){return null!=e&&e.length?ze(e,1/0):[]},fe.flattenDepth=function(e,t){return null!=e&&e.length?ze(e,t=t===na?1:qi(t)):[]},fe.flip=function(e){return xn(e,512)},fe.flow=No,fe.flowRight=Oo,fe.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},fe.functions=function(e){return null==e?[]:Xe(e,so(e))},fe.functionsIn=function(e){return null==e?[]:Xe(e,co(e))},fe.groupBy=Xr,fe.initial=function(e){return null!=e&&e.length?Dt(e,0,-1):[]},fe.intersection=wr,fe.intersectionBy=_r,fe.intersectionWith=Mr,fe.invert=io,fe.invertBy=oo,fe.invokeMap=Zr,fe.iteratee=Ho,fe.keyBy=Jr,fe.keys=so,fe.keysIn=co,fe.map=Qr,fe.mapKeys=function(e,r){var i={};return r=Rn(r,3),Ge(e,function(e,t,n){Oe(i,r(e,t,n),e)}),i},fe.mapValues=function(e,r){var i={};return r=Rn(r,3),Ge(e,function(e,t,n){Oe(i,t,r(e,t,n))}),i},fe.matches=function(e){return ft(Pe(e,1))},fe.matchesProperty=function(e,t){return pt(e,Pe(t,1))},fe.memoize=ui,fe.merge=lo,fe.mergeWith=uo,fe.method=Po,fe.methodOf=Ro,fe.mixin=Lo,fe.negate=di,fe.nthArg=function(t){return t=qi(t),_t(function(e){return vt(e,t)})},fe.omit=mo,fe.omitBy=function(e,t){return fo(e,di(Rn(t)))},fe.once=function(e){return ii(2,e)},fe.orderBy=function(e,t,n,r){return null==e?[]:(yi(t)||(t=null==t?[]:[t]),yi(n=r?na:n)||(n=null==n?[]:[n]),bt(e,t,n))},fe.over=jo,fe.overArgs=mi,fe.overEvery=Bo,fe.overSome=Uo,fe.partial=hi,fe.partialRight=fi,fe.partition=ei,fe.pick=ho,fe.pickBy=fo,fe.property=Vo,fe.propertyOf=function(t){return function(e){return null==t?na:Ze(t,e)}},fe.pull=Ar,fe.pullAll=kr,fe.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?yt(e,t,Rn(n,2)):e},fe.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?yt(e,t,na,n):e},fe.pullAt=Tr,fe.range=qo,fe.rangeRight=zo,fe.rearg=pi,fe.reject=function(e,t){return(yi(e)?Fs:qe)(e,di(Rn(t,3)))},fe.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Rn(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Et(e,i),n},fe.rest=function(e,t){if("function"!=typeof e)throw new T(ra);return _t(e,t=t===na?t:qi(t))},fe.reverse=Sr,fe.sampleSize=function(e,t,n){return t=(n?Gn(e,t,n):t===na)?1:qi(t),(yi(e)?xe:xt)(e,t)},fe.set=function(e,t,n){return null==e?e:At(e,t,n)},fe.setWith=function(e,t,n,r){return r="function"==typeof r?r:na,null==e?e:At(e,t,n,r)},fe.shuffle=function(e){return(yi(e)?Ae:St)(e)},fe.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n=n&&"number"!=typeof n&&Gn(e,t,n)?(t=0,r):(t=null==t?0:qi(t),n===na?r:qi(n)),Dt(e,t,n)):[]},fe.sortBy=ti,fe.sortedUniq=function(e){return e&&e.length?Ht(e):[]},fe.sortedUniqBy=function(e,t){return e&&e.length?Ht(e,Rn(t,2)):[]},fe.split=function(e,t,n){return n&&"number"!=typeof n&&Gn(e,t,n)&&(t=n=na),(n=n===na?ca:n>>>0)?(e=Gi(e))&&("string"==typeof t||null!=t&&!Hi(t))&&!(t=Rt(t))&&dc(e)?Kt(vc(e),0,n):e.split(t,n):[]},fe.spread=function(r,i){if("function"!=typeof r)throw new T(ra);return i=null==i?0:Y(qi(i),0),_t(function(e){var t=e[i],n=Kt(e,0,i);return t&&Vs(n,t),Is(r,this,n)})},fe.tail=function(e){var t=null==e?0:e.length;return t?Dt(e,1,t):[]},fe.take=function(e,t,n){return e&&e.length?Dt(e,0,(t=n||t===na?1:qi(t))<0?0:t):[]},fe.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Dt(e,(t=r-(t=n||t===na?1:qi(t)))<0?0:t,r):[]},fe.takeRightWhile=function(e,t){return e&&e.length?Bt(e,Rn(t,3),!1,!0):[]},fe.takeWhile=function(e,t){return e&&e.length?Bt(e,Rn(t,3)):[]},fe.tap=function(e,t){return t(e),e},fe.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new T(ra);return Si(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),si(e,t,{leading:r,maxWait:t,trailing:i})},fe.thru=Vr,fe.toArray=Ui,fe.toPairs=po,fe.toPairsIn=go,fe.toPath=function(e){return yi(e)?Us(e,hr):Li(e)?[e]:rn(mr(Gi(e)))},fe.toPlainObject=Wi,fe.transform=function(e,r,i){var t=yi(e),n=t||_i(e)||Fi(e);if(r=Rn(r,4),null==i){var o=e&&e.constructor;i=n?t?new o:[]:Si(e)&&Ai(o)?pe(x(e)):{}}return(n?Ps:Ge)(e,function(e,t,n){return r(i,e,t,n)}),i},fe.unary=function(e){return ri(e,1)},fe.union=Dr,fe.unionBy=Nr,fe.unionWith=Or,fe.uniq=function(e){return e&&e.length?Lt(e):[]},fe.uniqBy=function(e,t){return e&&e.length?Lt(e,Rn(t,2)):[]},fe.uniqWith=function(e,t){return t="function"==typeof t?t:na,e&&e.length?Lt(e,na,t):[]},fe.unset=function(e,t){return null==e||Ft(e,t)},fe.unzip=Ir,fe.unzipWith=Hr,fe.update=function(e,t,n){return null==e?e:jt(e,t,Yt(n))},fe.updateWith=function(e,t,n,r){return r="function"==typeof r?r:na,null==e?e:jt(e,t,Yt(n),r)},fe.values=vo,fe.valuesIn=function(e){return null==e?[]:ic(e,co(e))},fe.without=Pr,fe.words=ko,fe.wrap=function(e,t){return hi(Yt(t),e)},fe.xor=Rr,fe.xorBy=Lr,fe.xorWith=Fr,fe.zip=jr,fe.zipObject=function(e,t){return qt(e||[],t||[],Te)},fe.zipObjectDeep=function(e,t){return qt(e||[],t||[],At)},fe.zipWith=Br,fe.entries=po,fe.entriesIn=go,fe.extend=Xi,fe.extendWith=Zi,Lo(fe,fe),fe.add=Go,fe.attempt=To,fe.camelCase=bo,fe.capitalize=$o,fe.ceil=Ko,fe.clamp=function(e,t,n){return n===na&&(n=t,t=na),n!==na&&(n=(n=Yi(n))==n?n:0),t!==na&&(t=(t=Yi(t))==t?t:0),He(Yi(e),t,n)},fe.clone=function(e){return Pe(e,4)},fe.cloneDeep=function(e){return Pe(e,5)},fe.cloneDeepWith=function(e,t){return Pe(e,5,t="function"==typeof t?t:na)},fe.cloneWith=function(e,t){return Pe(e,4,t="function"==typeof t?t:na)},fe.conformsTo=function(e,t){return null==t||Re(e,t,so(t))},fe.deburr=yo,fe.defaultTo=function(e,t){return null==e||e!=e?t:e},fe.divide=Xo,fe.endsWith=function(e,t,n){e=Gi(e),t=Rt(t);var r=e.length,i=n=n===na?r:He(qi(n),0,r);return 0<=(n-=t.length)&&e.slice(n,i)==t},fe.eq=gi,fe.escape=function(e){return(e=Gi(e))&&Va.test(e)?e.replace(Ba,lc):e},fe.escapeRegExp=function(e){return(e=Gi(e))&&Za.test(e)?e.replace(Xa,"\\$&"):e},fe.every=function(e,t,n){var r=yi(e)?Ls:Ue;return n&&Gn(e,t,n)&&(t=na),r(e,Rn(t,3))},fe.find=Yr,fe.findIndex=$r,fe.findKey=function(e,t){return Ws(e,Rn(t,3),Ge)},fe.findLast=Wr,fe.findLastIndex=yr,fe.findLastKey=function(e,t){return Ws(e,Rn(t,3),Ke)},fe.floor=Zo,fe.forEach=Gr,fe.forEachRight=Kr,fe.forIn=function(e,t){return null==e?e:Ye(e,Rn(t,3),co)},fe.forInRight=function(e,t){return null==e?e:We(e,Rn(t,3),co)},fe.forOwn=function(e,t){return e&&Ge(e,Rn(t,3))},fe.forOwnRight=function(e,t){return e&&Ke(e,Rn(t,3))},fe.get=no,fe.gt=vi,fe.gte=bi,fe.has=function(e,t){return null!=e&&qn(e,t,tt)},fe.hasIn=ro,fe.head=Cr,fe.identity=Io,fe.includes=function(e,t,n,r){e=Ci(e)?e:vo(e),n=n&&!r?qi(n):0;var i=e.length;return n<0&&(n=Y(i+n,0)),Ri(e)?n<=i&&-1<e.indexOf(t,n):!!i&&-1<Ks(e,t,n)},fe.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qi(n);return i<0&&(i=Y(r+i,0)),Ks(e,t,i)},fe.inRange=function(e,t,n){return t=Vi(t),n===na?(n=t,t=0):n=Vi(n),e=Yi(e),(r=e)>=W(i=t,o=n)&&r<Y(i,o);var r,i,o},fe.invoke=ao,fe.isArguments=$i,fe.isArray=yi,fe.isArrayBuffer=Ei,fe.isArrayLike=Ci,fe.isArrayLikeObject=wi,fe.isBoolean=function(e){return!0===e||!1===e||Di(e)&&Qe(e)==ma},fe.isBuffer=_i,fe.isDate=Mi,fe.isElement=function(e){return Di(e)&&1===e.nodeType&&!Ii(e)},fe.isEmpty=function(e){if(null==e)return!0;if(Ci(e)&&(yi(e)||"string"==typeof e||"function"==typeof e.splice||_i(e)||Fi(e)||$i(e)))return!e.length;var t=Vn(e);if(t==va||t==Ca)return!e.size;if(Jn(e))return!ut(e).length;for(var n in e)if(M.call(e,n))return!1;return!0},fe.isEqual=function(e,t){return at(e,t)},fe.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:na)?n(e,t):na;return r===na?at(e,t,na,n):!!r},fe.isError=xi,fe.isFinite=function(e){return"number"==typeof e&&V(e)},fe.isFunction=Ai,fe.isInteger=ki,fe.isLength=Ti,fe.isMap=Ni,fe.isMatch=function(e,t){return e===t||st(e,t,Fn(t))},fe.isMatchWith=function(e,t,n){return n="function"==typeof n?n:na,st(e,t,Fn(t),n)},fe.isNaN=function(e){return Oi(e)&&e!=+e},fe.isNative=function(e){if(Zn(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ct(e)},fe.isNil=function(e){return null==e},fe.isNull=function(e){return null===e},fe.isNumber=Oi,fe.isObject=Si,fe.isObjectLike=Di,fe.isPlainObject=Ii,fe.isRegExp=Hi,fe.isSafeInteger=function(e){return ki(e)&&-aa<=e&&e<=aa},fe.isSet=Pi,fe.isString=Ri,fe.isSymbol=Li,fe.isTypedArray=Fi,fe.isUndefined=function(e){return e===na},fe.isWeakMap=function(e){return Di(e)&&Vn(e)==Ma},fe.isWeakSet=function(e){return Di(e)&&"[object WeakSet]"==Qe(e)},fe.join=function(e,t){return null==e?"":q.call(e,t)},fe.kebabCase=Eo,fe.last=xr,fe.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==na&&(i=(i=qi(n))<0?Y(r+i,0):W(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Gs(e,Zs,i,!0)},fe.lowerCase=Co,fe.lowerFirst=wo,fe.lt=ji,fe.lte=Bi,fe.max=function(e){return e&&e.length?Ve(e,Io,et):na},fe.maxBy=function(e,t){return e&&e.length?Ve(e,Rn(t,2),et):na},fe.mean=function(e){return Js(e,Io)},fe.meanBy=function(e,t){return Js(e,Rn(t,2))},fe.min=function(e){return e&&e.length?Ve(e,Io,mt):na},fe.minBy=function(e,t){return e&&e.length?Ve(e,Rn(t,2),mt):na},fe.stubArray=Yo,fe.stubFalse=Wo,fe.stubObject=function(){return{}},fe.stubString=function(){return""},fe.stubTrue=function(){return!0},fe.multiply=Qo,fe.nth=function(e,t){return e&&e.length?vt(e,qi(t)):na},fe.noConflict=function(){return xs._===this&&(xs._=b),this},fe.noop=Fo,fe.now=ni,fe.pad=function(e,t,n){e=Gi(e);var r=(t=qi(t))?gc(e):0;if(!t||t<=r)return e;var i=(t-r)/2;return $n(j(i),n)+e+$n(F(i),n)},fe.padEnd=function(e,t,n){e=Gi(e);var r=(t=qi(t))?gc(e):0;return t&&r<t?e+$n(t-r,n):e},fe.padStart=function(e,t,n){e=Gi(e);var r=(t=qi(t))?gc(e):0;return t&&r<t?$n(t-r,n)+e:e},fe.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),K(Gi(e).replace(Qa,""),t||0)},fe.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Gn(e,t,n)&&(t=n=na),n===na&&("boolean"==typeof t?(n=t,t=na):"boolean"==typeof e&&(n=e,e=na)),e===na&&t===na?(e=0,t=1):(e=Vi(e),t===na?(t=e,e=0):t=Vi(t)),t<e){var r=e;e=t,t=r}if(n||e%1||t%1){var i=X();return W(e+i*(t-e+_s("1e-"+((i+"").length-1))),t)}return Ct(e,t)},fe.reduce=function(e,t,n){var r=yi(e)?qs:ec,i=arguments.length<3;return r(e,Rn(t,4),n,i,je)},fe.reduceRight=function(e,t,n){var r=yi(e)?zs:ec,i=arguments.length<3;return r(e,Rn(t,4),n,i,Be)},fe.repeat=function(e,t,n){return t=(n?Gn(e,t,n):t===na)?1:qi(t),wt(Gi(e),t)},fe.replace=function(){var e=arguments,t=Gi(e[0]);return e.length<3?t:t.replace(e[1],e[2])},fe.result=function(e,t,n){var r=-1,i=(t=Wt(t,e)).length;for(i||(i=1,e=na);++r<i;){var o=null==e?na:e[hr(t[r])];o===na&&(r=i,o=n),e=Ai(o)?o.call(e):o}return e},fe.round=ea,fe.runInContext=e,fe.sample=function(e){return(yi(e)?Me:Mt)(e)},fe.size=function(e){if(null==e)return 0;if(Ci(e))return Ri(e)?gc(e):e.length;var t=Vn(e);return t==va||t==Ca?e.size:ut(e).length},fe.snakeCase=_o,fe.some=function(e,t,n){var r=yi(e)?Ys:Nt;return n&&Gn(e,t,n)&&(t=na),r(e,Rn(t,3))},fe.sortedIndex=function(e,t){return Ot(e,t)},fe.sortedIndexBy=function(e,t,n){return It(e,t,Rn(n,2))},fe.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ot(e,t);if(r<n&&gi(e[r],t))return r}return-1},fe.sortedLastIndex=function(e,t){return Ot(e,t,!0)},fe.sortedLastIndexBy=function(e,t,n){return It(e,t,Rn(n,2),!0)},fe.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Ot(e,t,!0)-1;if(gi(e[n],t))return n}return-1},fe.startCase=Mo,fe.startsWith=function(e,t,n){return e=Gi(e),n=null==n?0:He(qi(n),0,e.length),t=Rt(t),e.slice(n,n+t.length)==t},fe.subtract=ta,fe.sum=function(e){return e&&e.length?tc(e,Io):0},fe.sumBy=function(e,t){return e&&e.length?tc(e,Rn(t,2)):0},fe.template=function(a,e,t){var n=fe.templateSettings;t&&Gn(a,e,t)&&(e=na),a=Gi(a),e=Zi({},e,n,An);var s,c,r=Zi({},e.imports,n.imports,An),i=so(r),o=ic(r,i),l=0,u=e.interpolate||fs,d="__p += '",m=v((e.escape||fs).source+"|"+u.source+"|"+(u===Ya?as:fs).source+"|"+(e.evaluate||fs).source+"|$","g"),h="//# sourceURL="+(M.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Es+"]")+"\n";a.replace(m,function(e,t,n,r,i,o){return n||(n=r),d+=a.slice(l,o).replace(ps,uc),t&&(s=!0,d+="' +\n__e("+t+") +\n'"),i&&(c=!0,d+="';\n"+i+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=o+e.length,e}),d+="';\n";var f=M.call(e,"variable")&&e.variable;f||(d="with (obj) {\n"+d+"\n}\n"),d=(c?d.replace(Ra,""):d).replace(La,"$1").replace(Fa,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var p=To(function(){return g(i,h+"return "+d).apply(na,o)});if(p.source=d,xi(p))throw p;return p},fe.times=function(e,t){if((e=qi(e))<1||aa<e)return[];var n=ca,r=W(e,ca);t=Rn(t),e-=ca;for(var i=nc(r,t);++n<e;)t(n);return i},fe.toFinite=Vi,fe.toInteger=qi,fe.toLength=zi,fe.toLower=function(e){return Gi(e).toLowerCase()},fe.toNumber=Yi,fe.toSafeInteger=function(e){return e?He(qi(e),-aa,aa):0===e?e:0},fe.toString=Gi,fe.toUpper=function(e){return Gi(e).toUpperCase()},fe.trim=function(e,t,n){if((e=Gi(e))&&(n||t===na))return e.replace(Ja,"");if(!e||!(t=Rt(t)))return e;var r=vc(e),i=vc(t);return Kt(r,ac(r,i),sc(r,i)+1).join("")},fe.trimEnd=function(e,t,n){if((e=Gi(e))&&(n||t===na))return e.replace(es,"");if(!e||!(t=Rt(t)))return e;var r=vc(e);return Kt(r,0,sc(r,vc(t))+1).join("")},fe.trimStart=function(e,t,n){if((e=Gi(e))&&(n||t===na))return e.replace(Qa,"");if(!e||!(t=Rt(t)))return e;var r=vc(e);return Kt(r,ac(r,vc(t))).join("")},fe.truncate=function(e,t){var n=30,r="...";if(Si(t)){var i="separator"in t?t.separator:i;n="length"in t?qi(t.length):n,r="omission"in t?Rt(t.omission):r}var o=(e=Gi(e)).length;if(dc(e)){var a=vc(e);o=a.length}if(o<=n)return e;var s=n-gc(r);if(s<1)return r;var c=a?Kt(a,0,s).join(""):e.slice(0,s);if(i===na)return c+r;if(a&&(s+=c.length-s),Hi(i)){if(e.slice(s).search(i)){var l,u=c;for(i.global||(i=v(i.source,Gi(ss.exec(i))+"g")),i.lastIndex=0;l=i.exec(u);)var d=l.index;c=c.slice(0,d===na?s:d)}}else if(e.indexOf(Rt(i),s)!=s){var m=c.lastIndexOf(i);-1<m&&(c=c.slice(0,m))}return c+r},fe.unescape=function(e){return(e=Gi(e))&&Ua.test(e)?e.replace(ja,bc):e},fe.uniqueId=function(e){var t=++m;return Gi(e)+t},fe.upperCase=xo,fe.upperFirst=Ao,fe.each=Gr,fe.eachRight=Kr,fe.first=Cr,Lo(fe,(Jo={},Ge(fe,function(e,t){M.call(fe.prototype,t)||(Jo[t]=e)}),Jo),{chain:!1}),fe.VERSION="4.17.15",Ps(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){fe[e].placeholder=fe}),Ps(["drop","take"],function(n,r){be.prototype[n]=function(e){e=e===na?1:Y(qi(e),0);var t=this.__filtered__&&!r?new be(this):this.clone();return t.__filtered__?t.__takeCount__=W(e,t.__takeCount__):t.__views__.push({size:W(e,ca),type:n+(t.__dir__<0?"Right":"")}),t},be.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),Ps(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;be.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Rn(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ps(["head","last"],function(e,t){var n="take"+(t?"Right":"");be.prototype[e]=function(){return this[n](1).value()[0]}}),Ps(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");be.prototype[e]=function(){return this.__filtered__?new be(this):this[n](1)}}),be.prototype.compact=function(){return this.filter(Io)},be.prototype.find=function(e){return this.filter(e).head()},be.prototype.findLast=function(e){return this.reverse().find(e)},be.prototype.invokeMap=_t(function(t,n){return"function"==typeof t?new be(this):this.map(function(e){return it(e,t,n)})}),be.prototype.reject=function(e){return this.filter(di(Rn(e)))},be.prototype.slice=function(e,t){e=qi(e);var n=this;return n.__filtered__&&(0<e||t<0)?new be(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==na&&(n=(t=qi(t))<0?n.dropRight(-t):n.take(t-e)),n)},be.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},be.prototype.toArray=function(){return this.take(ca)},Ge(be.prototype,function(d,e){var m=/^(?:filter|find|map|reject)|While$/.test(e),h=/^(?:head|last)$/.test(e),f=fe[h?"take"+("last"==e?"Right":""):e],p=h||/^find/.test(e);f&&(fe.prototype[e]=function(){var e=this.__wrapped__,n=h?[1]:arguments,t=e instanceof be,r=n[0],i=t||yi(e),o=function(e){var t=f.apply(fe,Vs([e],n));return h&&a?t[0]:t};i&&m&&"function"==typeof r&&1!=r.length&&(t=i=!1);var a=this.__chain__,s=!!this.__actions__.length,c=p&&!a,l=t&&!s;if(p||!i)return c&&l?d.apply(this,n):(u=this.thru(o),c?h?u.value()[0]:u.value():u);e=l?e:new be(this);var u=d.apply(e,n);return u.__actions__.push({func:Vr,args:[o],thisArg:na}),new ve(u,a)})}),Ps(["pop","push","shift","sort","splice","unshift"],function(e){var n=a[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);fe.prototype[e]=function(){var t=arguments;if(!i||this.__chain__)return this[r](function(e){return n.apply(yi(e)?e:[],t)});var e=this.value();return n.apply(yi(e)?e:[],t)}}),Ge(be.prototype,function(e,t){var n=fe[t];if(n){var r=n.name+"";M.call(oe,r)||(oe[r]=[]),oe[r].push({name:t,func:n})}}),oe[pn(na,2).name]=[{name:"wrapper",func:na}],be.prototype.clone=function(){var e=new be(this.__wrapped__);return e.__actions__=rn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=rn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=rn(this.__views__),e},be.prototype.reverse=function(){if(this.__filtered__){var e=new be(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},be.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=yi(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=W(t,e+a);break;case"takeRight":e=Y(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,d=u.length,m=0,h=W(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return Ut(e,this.__actions__);var f=[];e:for(;c--&&m<h;){for(var p=-1,g=e[l+=t];++p<d;){var v=u[p],b=v.iteratee,$=v.type,y=b(g);if(2==$)g=y;else if(!y){if(1==$)continue e;break e}}f[m++]=g}return f},fe.prototype.at=qr,fe.prototype.chain=function(){return Ur(this)},fe.prototype.commit=function(){return new ve(this.value(),this.__chain__)},fe.prototype.next=function(){this.__values__===na&&(this.__values__=Ui(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?na:this.__values__[this.__index__++]}},fe.prototype.plant=function(e){for(var t,n=this;n instanceof ge;){var r=pr(n);r.__index__=0,r.__values__=na,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},fe.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof be){var t=e;return this.__actions__.length&&(t=new be(this)),(t=t.reverse()).__actions__.push({func:Vr,args:[Sr],thisArg:na}),new ve(t,this.__chain__)}return this.thru(Sr)},fe.prototype.toJSON=fe.prototype.valueOf=fe.prototype.value=function(){return Ut(this.__wrapped__,this.__actions__)},fe.prototype.first=fe.prototype.head,O&&(fe.prototype[O]=function(){return this}),fe}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(xs._=$c,define(function(){return $c})):I?((I.exports=$c)._=$c,O._=$c):xs._=$c}.call(this),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,i;function m(){return e.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function c(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){for(var n in t)f(t,n)&&(e[n]=t[n]);return f(t,"toString")&&(e.toString=t.toString),f(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t,n,r){return At(e,t,n,r,!0).utc()}function v(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function b(e){if(null==e._isValid){var t=v(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function $(e){var t=g(NaN);return null!=e?p(v(t),e):v(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var o=m.momentProperties=[];function y(e,t){var n,r,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=v(t)),l(t._locale)||(e._locale=t._locale),0<o.length)for(n=0;n<o.length;n++)l(i=t[r=o[n]])||(e[r]=i);return e}var t=!1;function E(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,m.updateOffset(this),t=!1)}function C(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function a(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&_(e[r])!==_(t[r]))&&a++;return a+o}function M(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,o){var a=!0;return p(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,i),a){for(var e,t=[],n=0;n<arguments.length;n++){if(e="","object"==typeof arguments[n]){for(var r in e+="\n["+n+"] ",arguments[0])e+=r+": "+arguments[0][r]+", ";e=e.slice(0,-2)}else e=arguments[n];t.push(e)}M(i+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var r,x={};function A(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),x[e]||(M(t),x[e]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=p({},e);for(n in t)f(t,n)&&(c(e[n])&&c(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)f(e,n)&&!f(t,n)&&c(e[n])&&(r[n]=p({},r[n]));return r}function S(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null,r=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)f(e,t)&&n.push(t);return n};var D={};function N(e,t){var n=e.toLowerCase();D[n]=D[n+"s"]=D[t]=e}function O(e){return"string"==typeof e?D[e]||D[e.toLowerCase()]:void 0}function I(e){var t,n,r={};for(n in e)f(e,n)&&(t=O(n))&&(r[t]=e[n]);return r}var H={};function P(e,t){H[e]=t}function R(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},B={};function U(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(B[e]=i),t&&(B[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),j[t]=j[t]||function(r){var e,i,t,o=r.match(L);for(e=0,i=o.length;e<i;e++)B[o[e]]?o[e]=B[o[e]]:o[e]=(t=o[e]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(e){var t,n="";for(t=0;t<i;t++)n+=k(o[t])?o[t].call(e,r):o[t];return n}}(t),j[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;0<=n&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var z=/\d/,Y=/\d\d/,W=/\d{3}/,G=/\d{4}/,K=/[+-]?\d{6}/,X=/\d\d?/,Z=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,re=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,se={};function ce(e,n,r){se[e]=k(n)?n:function(e,t){return e&&r?r:n}}function le(e,t){return f(se,e)?se[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function me(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),u(n)&&(r=function(e,t){t[n]=_(e)}),t=0;t<e.length;t++)de[e[t]]=r}function he(e,i){me(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var fe=0,pe=1,ge=2,ve=3,be=4,$e=5,ye=6,Ee=7,Ce=8;function we(e){return _e(e)?366:365}function _e(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),N("year","y"),P("year",1),ce("Y",re),ce("YY",X,Y),ce("YYYY",ee,G),ce("YYYYY",te,K),ce("YYYYYY",te,K),me(["YYYYY","YYYYYY"],fe),me("YYYY",function(e,t){t[fe]=2===e.length?m.parseTwoDigitYear(e):_(e)}),me("YY",function(e,t){t[fe]=m.parseTwoDigitYear(e)}),me("Y",function(e,t){t[fe]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return _(e)+(68<_(e)?1900:2e3)};var Me,xe=Ae("FullYear",!0);function Ae(t,n){return function(e){return null!=e?(Te(this,t,e),m.updateOffset(this,n),this):ke(this,t)}}function ke(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Te(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&_e(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Se(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Se(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?_e(e)?29:28:31-r%7%2}Me=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),P("month",8),ce("M",X),ce("MM",X,Y),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),me(["M","MM"],function(e,t){t[pe]=_(e)-1}),me(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[pe]=i:v(n).invalidMonth=e});var De=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ne="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ie(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=_(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function He(e){return null!=e?(Ie(this,e),m.updateOffset(this,!0),this):ke(this,"Month")}var Pe=ae;var Re=ae;function Le(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=g([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=ue(r[t]),i[t]=ue(i[t]);for(t=0;t<24;t++)o[t]=ue(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Fe(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function je(e,t,n){var r=7+t-n;return-((7+Fe(e,0,r).getUTCDay()-t)%7)+r-1}function Be(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+je(e,r,i);return a=s<=0?we(o=e-1)+s:s>we(e)?(o=e+1,s-we(e)):(o=e,s),{year:o,dayOfYear:a}}function Ue(e,t,n){var r,i,o=je(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ve(i=e.year()-1,t,n):a>Ve(e.year(),t,n)?(r=a-Ve(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ve(e,t,n){var r=je(e,t,n),i=je(e+1,t,n);return(we(e)-r+i)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),P("week",5),P("isoWeek",5),ce("w",X),ce("ww",X,Y),ce("W",X),ce("WW",X,Y),he(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=_(e)});function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),P("day",11),P("weekday",11),P("isoWeekday",11),ce("d",X),ce("e",X),ce("E",X),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),he(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e}),he(["d","e","E"],function(e,t,n,r){t[r]=_(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var We="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ge=ae;var Ke=ae;var Xe=ae;function Ze(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=g([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),c.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(e),s.sort(e),c.sort(e),l.sort(e),t=0;t<7;t++)s[t]=ue(s[t]),c[t]=ue(c[t]),l[t]=ue(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Je),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Je.apply(this)+R(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Je.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),N("hour","h"),P("hour",13),ce("a",et),ce("A",et),ce("H",X),ce("h",X),ce("k",X),ce("HH",X,Y),ce("hh",X,Y),ce("kk",X,Y),ce("hmm",Z),ce("hmmss",J),ce("Hmm",Z),ce("Hmmss",J),me(["H","HH"],ve),me(["k","kk"],function(e,t,n){var r=_(e);t[ve]=24===r?0:r}),me(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),me(["h","hh"],function(e,t,n){t[ve]=_(e),v(n).bigHour=!0}),me("hmm",function(e,t,n){var r=e.length-2;t[ve]=_(e.substr(0,r)),t[be]=_(e.substr(r)),v(n).bigHour=!0}),me("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=_(e.substr(0,r)),t[be]=_(e.substr(r,2)),t[$e]=_(e.substr(i)),v(n).bigHour=!0}),me("Hmm",function(e,t,n){var r=e.length-2;t[ve]=_(e.substr(0,r)),t[be]=_(e.substr(r))}),me("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=_(e.substr(0,r)),t[be]=_(e.substr(r,2)),t[$e]=_(e.substr(i))});var tt,nt=Ae("Hours",!0),rt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ne,monthsShort:Oe,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:We,weekdaysShort:Ye,meridiemParse:/[ap]\.?m?\.?/i},it={},ot={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),ct(t)}catch(e){}return it[e]}function ct(e,t){var n;return e&&((n=l(t)?ut(e):lt(e,t))?tt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,r=rt;if(t.abbr=e,null!=it[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])r=it[t.parentLocale]._config;else{if(null==(n=st(t.parentLocale)))return ot[t.parentLocale]||(ot[t.parentLocale]=[]),ot[t.parentLocale].push({name:e,config:t}),null;r=n._config}return it[e]=new S(T(r,t)),ot[e]&&ot[e].forEach(function(e){lt(e.name,e.config)}),ct(e),it[e]}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!s(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;0<t;){if(r=st(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&a(i,n,!0)>=t-1)break;t--}o++}return tt}(e)}function dt(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[pe]<0||11<n[pe]?pe:n[ge]<1||n[ge]>Se(n[fe],n[pe])?ge:n[ve]<0||24<n[ve]||24===n[ve]&&(0!==n[be]||0!==n[$e]||0!==n[ye])?ve:n[be]<0||59<n[be]?be:n[$e]<0||59<n[$e]?$e:n[ye]<0||999<n[ye]?ye:-1,v(e)._overflowDayOfYear&&(t<fe||ge<t)&&(t=ge),v(e)._overflowWeeks&&-1===t&&(t=Ee),v(e)._overflowWeekday&&-1===t&&(t=Ce),v(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function ht(e){var t,n,r,i,o,a=[];if(!e._d){var s,c;for(s=e,c=new Date(m.now()),r=s._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[ge]&&null==e._a[pe]&&function(e){var t,n,r,i,o,a,s,c;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=mt(t.GG,e._a[fe],Ue(kt(),1,4).year),r=mt(t.W,1),((i=mt(t.E,1))<1||7<i)&&(c=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var l=Ue(kt(),o,a);n=mt(t.gg,e._a[fe],l.year),r=mt(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(c=!0):null!=t.e?(i=t.e+o,(t.e<0||6<t.e)&&(c=!0)):i=o}r<1||r>Ve(n,o,a)?v(e)._overflowWeeks=!0:null!=c?v(e)._overflowWeekday=!0:(s=Be(n,r,i,o,a),e._a[fe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=mt(e._a[fe],r[fe]),(e._dayOfYear>we(o)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=Fe(o,0,e._dayOfYear),e._a[pe]=n.getUTCMonth(),e._a[ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[be]&&0===e._a[$e]&&0===e._a[ye]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Fe:function(e,t,n,r,i,o,a){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$t=/^\/?Date\((\-?\d+)/i;function yt(e){var t,n,r,i,o,a,s=e._i,c=ft.exec(s)||pt.exec(s);if(c){for(v(e).iso=!0,t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(c[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return void(e._isValid=!1);if(c[3]){for(t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(c[3])){o=(c[2]||" ")+bt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(c[4]){if(!gt.exec(c[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Mt(e)}else e._isValid=!1}var Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Ct(e,t,n,r,i,o){var a=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(e),Oe.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}var wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,r,i=Et.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var o=Ct(i[4],i[3],i[2],i[5],i[6],i[7]);if(t=i[1],n=o,r=e,t&&Ye.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(v(r).weekdayMismatch=!0,!(r._isValid=!1)))return;e._a=o,e._tzm=function(e,t,n){if(e)return wt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(i[8],i[9],i[10]),e._d=Fe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Mt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,o,a,s,c,l=""+e._i,u=l.length,d=0;for(r=q(e._f,e._locale).match(L)||[],t=0;t<r.length;t++)i=r[t],(n=(l.match(le(i,e))||[])[0])&&(0<(o=l.substr(0,l.indexOf(n))).length&&v(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),d+=n.length),B[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),a=i,c=e,null!=(s=n)&&f(de,a)&&de[a](s,c._a,c,a)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=u-d,0<l.length&&v(e).unusedInput.push(l),e._a[ve]<=12&&!0===v(e).bigHour&&0<e._a[ve]&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var r;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0)),t)}(e._locale,e._a[ve],e._meridiem),ht(e),dt(e)}else _t(e);else yt(e)}function xt(e){var t,n,r,i,o=e._i,a=e._f;return e._locale=e._locale||ut(e._l),null===o||void 0===a&&""===o?$({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),C(o)?new E(dt(o)):(d(o)?e._d=o:s(a)?function(e){var t,n,r,i,o;if(0===e._f.length)return v(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Mt(t),b(t)&&(o+=v(t).charsLeftOver,o+=10*v(t).unusedTokens.length,v(t).score=o,(null==r||o<r)&&(r=o,n=t));p(e,n||t)}(e):a?Mt(e):l(n=(t=e)._i)?t._d=new Date(m.now()):d(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(r=t,null===(i=$t.exec(r._i))?(yt(r),!1===r._isValid&&(delete r._isValid,_t(r),!1===r._isValid&&(delete r._isValid,m.createFromInputFallback(r)))):r._d=new Date(+i[1])):s(n)?(t._a=h(n.slice(0),function(e){return parseInt(e,10)}),ht(t)):c(n)?function(e){if(!e._d){var t=I(e._i);e._a=h([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ht(e)}}(t):u(n)?t._d=new Date(n):m.createFromInputFallback(t),b(e)||(e._d=null),e))}function At(e,t,n,r,i){var o,a={};return!0!==n&&!1!==n||(r=n,n=void 0),(c(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,(o=new E(dt(xt(a))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function kt(e,t,n,r){return At(e,t,n,r,!1)}m.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};var Tt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$()}),St=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=kt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:$()});function Dt(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return kt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var t=I(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Me.call(Nt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Nt.length;++r)if(e[Nt[r]]){if(n)return!1;parseFloat(e[Nt[r]])!==_(e[Nt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ut(),this._bubble()}function It(e){return e instanceof Ot}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,n){U(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+R(~~(e/60),2)+n+R(~~e%60,2)})}Pt("Z",":"),Pt("ZZ",""),ce("Z",oe),ce("ZZ",oe),me(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(oe,e)});var Rt=/([\+\-]|\d\d)/gi;function Lt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Rt)||["-",0,0],i=60*r[1]+_(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Ft(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(C(e)||d(e)?e.valueOf():kt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),m.updateOffset(n,!1),n):kt(e).local()}function jt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Bt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}m.updateOffset=function(){};var Ut=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,r,i,o=e,a=null;return It(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Ut.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:_(a[ge])*n,h:_(a[ve])*n,m:_(a[be])*n,s:_(a[$e])*n,ms:_(Ht(1e3*a[ye]))*n}):(a=Vt.exec(e))?(n="-"===a[1]?-1:1,o={y:zt(a[2],n),M:zt(a[3],n),w:zt(a[4],n),d:zt(a[5],n),h:zt(a[6],n),m:zt(a[7],n),s:zt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Ft(t,e),e.isBefore(t)?n=Yt(e,t):((n=Yt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(kt(o.from),kt(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Ot(o),It(e)&&f(e,"_locale")&&(r._locale=e._locale),r}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Yt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Wt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(A(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Gt(this,qt(e="string"==typeof e?+e:e,t),r),this}}function Gt(e,t,n,r){var i=t._milliseconds,o=Ht(t._days),a=Ht(t._months);e.isValid()&&(r=null==r||r,a&&Ie(e,ke(e,"Month")+a*n),o&&Te(e,"Date",ke(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&m.updateOffset(e,o||a))}qt.fn=Ot.prototype,qt.invalid=function(){return qt(NaN)};var Kt=Wt(1,"add"),Xt=Wt(-1,"subtract");function Zt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function en(){return this._locale}var tn=126227808e5;function nn(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-tn:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-tn:Date.UTC(e,t,n)}function an(e,t){U(0,[e,e.length],0,t)}function sn(e,t,n,r,i){var o;return null==e?Ue(this,r,i).year:((o=Ve(e,r,i))<t&&(t=o),function(e,t,n,r,i){var o=Be(e,t,n,r,i),a=Fe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),P("weekYear",1),P("isoWeekYear",1),ce("G",re),ce("g",re),ce("GG",X,Y),ce("gg",X,Y),ce("GGGG",ee,G),ce("gggg",ee,G),ce("GGGGG",te,K),ce("ggggg",te,K),he(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=_(e)}),he(["gg","GG"],function(e,t,n,r){t[r]=m.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),N("quarter","Q"),P("quarter",7),ce("Q",z),me("Q",function(e,t){t[pe]=3*(_(e)-1)}),U("D",["DD",2],"Do","date"),N("date","D"),P("date",9),ce("D",X),ce("DD",X,Y),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),me(["D","DD"],ge),me("Do",function(e,t){t[ge]=_(e.match(X)[0])});var cn=Ae("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),P("dayOfYear",4),ce("DDD",Q),ce("DDDD",W),me(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),U("m",["mm",2],0,"minute"),N("minute","m"),P("minute",14),ce("m",X),ce("mm",X,Y),me(["m","mm"],be);var ln=Ae("Minutes",!1);U("s",["ss",2],0,"second"),N("second","s"),P("second",15),ce("s",X),ce("ss",X,Y),me(["s","ss"],$e);var un,dn=Ae("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),P("millisecond",16),ce("S",Q,z),ce("SS",Q,Y),ce("SSS",Q,W),un="SSSS";un.length<=9;un+="S")ce(un,ne);function mn(e,t){t[ye]=_(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")me(un,mn);var hn=Ae("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var fn=E.prototype;function pn(e){return e}fn.add=Kt,fn.calendar=function(e,t){var n=e||kt(),r=Ft(n,this).startOf("day"),i=m.calendarFormat(this,r)||"sameElse",o=t&&(k(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,kt(n)))},fn.clone=function(){return new E(this)},fn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Ft(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=O(t)){case"year":o=Zt(this,r)/12;break;case"month":o=Zt(this,r);break;case"quarter":o=Zt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:w(o)},fn.endOf=function(e){var t;if(void 0===(e=O(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?on:rn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},fn.format=function(e){e||(e=this.isUtc()?m.defaultFormatUtc:m.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||kt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(kt(),e)},fn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||kt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(kt(),e)},fn.get=function(e){return k(this[e=O(e)])?this[e]():this},fn.invalidAt=function(){return v(this).overflow},fn.isAfter=function(e,t){var n=C(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=O(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},fn.isBefore=function(e,t){var n=C(e)?e:kt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=O(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},fn.isBetween=function(e,t,n,r){var i=C(e)?e:kt(e),o=C(t)?t:kt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},fn.isSame=function(e,t){var n,r=C(e)?e:kt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=O(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},fn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},fn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},fn.isValid=function(){return b(this)},fn.lang=Qt,fn.locale=Jt,fn.localeData=en,fn.max=St,fn.min=Tt,fn.parsingFlags=function(){return p({},v(this))},fn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:H[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=I(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(k(this[e=O(e)]))return this[e](t);return this},fn.startOf=function(e){var t;if(void 0===(e=O(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?on:rn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},fn.subtract=Xt,fn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},fn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},fn.toDate=function(){return new Date(this.valueOf())},fn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=xe,fn.isLeapYear=function(){return _e(this.year())},fn.weekYear=function(e){return sn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return sn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=He,fn.daysInMonth=function(){return Se(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ue(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Ve(this.year(),1,4)},fn.date=cn,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,r=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?r:r-7)},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=nt,fn.minute=fn.minutes=ln,fn.second=fn.seconds=dn,fn.millisecond=fn.milliseconds=hn,fn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:jt(this);if("string"==typeof e){if(null===(e=Lt(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Gt(this,qt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?kt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Bt,fn.isUTC=Bt,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=n("dates accessor is deprecated. Use date instead.",cn),fn.months=n("months accessor is deprecated. Use month instead",He),fn.years=n("years accessor is deprecated. Use year instead",xe),fn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=xt(e))._a){var t=e._isUTC?g(e._a):kt(e._a);this._isDSTShifted=this.isValid()&&0<a(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var gn=S.prototype;function vn(e,t,n,r){var i=ut(),o=g().set(r,t);return i[n](o,e)}function bn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=vn(e,r,n,"month");return i}function $n(e,t,n,r){t=("boolean"==typeof e?u(t)&&(n=t,t=void 0):(t=e,e=!1,u(n=t)&&(n=t,t=void 0)),t||"");var i,o=ut(),a=e?o._week.dow:0;if(null!=n)return vn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=vn(t,(i+a)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=pn,gn.postformat=pn,gn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return k(i)?i(e,t,n,r):i.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)k(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[De.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=g([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,a))?i:null:-1!==(i=Me.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,a))?i:-1!==(i=Me.call(this._longMonthsParse,a))?i:null:-1!==(i=Me.call(this._longMonthsParse,a))?i:-1!==(i=Me.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=g([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},gn.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Pe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Ue(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?qe(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=g([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,a))?i:-1!==(i=Me.call(this._shortWeekdaysParse,a))?i:-1!==(i=Me.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,a))?i:-1!==(i=Me.call(this._weekdaysParse,a))?i:-1!==(i=Me.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,a))?i:-1!==(i=Me.call(this._weekdaysParse,a))?i:-1!==(i=Me.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=g([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),m.lang=n("moment.lang is deprecated. Use moment.locale instead.",ct),m.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ut);var yn=Math.abs;function En(e,t,n,r){var i=qt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var xn=Mn("ms"),An=Mn("s"),kn=Mn("m"),Tn=Mn("h"),Sn=Mn("d"),Dn=Mn("w"),Nn=Mn("M"),On=Mn("Q"),In=Mn("y");function Hn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pn=Hn("milliseconds"),Rn=Hn("seconds"),Ln=Hn("minutes"),Fn=Hn("hours"),jn=Hn("days"),Bn=Hn("months"),Un=Hn("years");var Vn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11};var zn=Math.abs;function Yn(e){return(0<e)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);t=w((e=w(n/60))/60),n%=60,e%=60;var o=w(i/12),a=i%=12,s=r,c=t,l=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var m=d<0?"-":"",h=Yn(this._months)!==Yn(d)?"-":"",f=Yn(this._days)!==Yn(d)?"-":"",p=Yn(this._milliseconds)!==Yn(d)?"-":"";return m+"P"+(o?h+o+"Y":"")+(a?h+a+"M":"")+(s?f+s+"D":"")+(c||l||u?"T":"")+(c?p+c+"H":"")+(l?p+l+"M":"")+(u?p+u+"S":"")}var Gn=Ot.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},Gn.add=function(e,t){return En(this,e,t,1)},Gn.subtract=function(e,t){return En(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=O(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=xn,Gn.asSeconds=An,Gn.asMinutes=kn,Gn.asHours=Tn,Gn.asDays=Sn,Gn.asWeeks=Dn,Gn.asMonths=Nn,Gn.asQuarters=On,Gn.asYears=In,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,c=this._data;return 0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0||(o+=864e5*Cn(_n(s)+a),s=a=0),c.milliseconds=o%1e3,e=w(o/1e3),c.seconds=e%60,t=w(e/60),c.minutes=t%60,n=w(t/60),c.hours=n%24,s+=i=w(wn(a+=w(n/24))),a-=Cn(_n(i)),r=w(s/12),s%=12,c.days=a,c.months=s,c.years=r,this},Gn.clone=function(){return qt(this)},Gn.get=function(e){return e=O(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=Pn,Gn.seconds=Rn,Gn.minutes=Ln,Gn.hours=Fn,Gn.days=jn,Gn.weeks=function(){return w(this.days()/7)},Gn.months=Bn,Gn.years=Un,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,r,i,o,a,s,c,l,u,d,m=this.localeData(),h=(n=!e,r=m,i=qt(t=this).abs(),o=Vn(i.as("s")),a=Vn(i.as("m")),s=Vn(i.as("h")),c=Vn(i.as("d")),l=Vn(i.as("M")),u=Vn(i.as("y")),(d=o<=qn.ss&&["s",o]||o<qn.s&&["ss",o]||a<=1&&["m"]||a<qn.m&&["mm",a]||s<=1&&["h"]||s<qn.h&&["hh",s]||c<=1&&["d"]||c<qn.d&&["dd",c]||l<=1&&["M"]||l<qn.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=n,d[3]=0<+t,d[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,d));return e&&(h=m.pastFuture(+this,h)),m.postformat(h)},Gn.toISOString=Wn,Gn.toString=Wn,Gn.toJSON=Wn,Gn.locale=Jt,Gn.localeData=en,Gn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Gn.lang=Qt,U("X",0,0,"unix"),U("x",0,0,"valueOf"),ce("x",re),ce("X",/[+-]?\d+(\.\d{1,3})?/),me("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),me("x",function(e,t,n){n._d=new Date(_(e))}),m.version="2.24.0",e=kt,m.fn=fn,m.min=function(){return Dt("isBefore",[].slice.call(arguments,0))},m.max=function(){return Dt("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=g,m.unix=function(e){return kt(1e3*e)},m.months=function(e,t){return bn(e,t,"months")},m.isDate=d,m.locale=ct,m.invalid=$,m.duration=qt,m.isMoment=C,m.weekdays=function(e,t,n){return $n(e,t,n,"weekdays")},m.parseZone=function(){return kt.apply(null,arguments).parseZone()},m.localeData=ut,m.isDuration=It,m.monthsShort=function(e,t){return bn(e,t,"monthsShort")},m.weekdaysMin=function(e,t,n){return $n(e,t,n,"weekdaysMin")},m.defineLocale=lt,m.updateLocale=function(e,t){if(null!=t){var n,r,i=rt;null!=(r=st(e))&&(i=r._config),(n=new S(t=T(i,t))).parentLocale=it[e],it[e]=n,ct(e)}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e]},m.locales=function(){return r(it)},m.weekdaysShort=function(e,t,n){return $n(e,t,n,"weekdaysShort")},m.normalizeUnits=O,m.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},m.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},m.prototype=fn,m.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},m});