Built motion from commit (unavailable).|2.5.24
[motion2.git] / snippet / 3.0.0 / scripts / vendor.js
diff --git a/snippet/3.0.0/scripts/vendor.js b/snippet/3.0.0/scripts/vendor.js
deleted file mode 100644 (file)
index 3bf8a66..0000000
+++ /dev/null
@@ -1 +0,0 @@
-!function(de){"use strict";var l={objectMaxDepth:5,urlErrorParamsEnabled:!0};function e(e){if(!_e(e))return l;O(e.objectMaxDepth)&&(l.objectMaxDepth=u(e.objectMaxDepth)?e.objectMaxDepth:NaN),O(e.urlErrorParamsEnabled)&&Ae(e.urlErrorParamsEnabled)&&(l.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function u(e){return _(e)&&0<e}function T(a,s){s=s||Error;var c="https://errors.angularjs.org/1.8.2/",e=c.replace(".","\\.")+"[\\s\\S]*",u=new RegExp(e,"g");return function(){var e,t,n=arguments[0],r=arguments[1],i="["+(a?a+":":"")+n+"] ",o=Re(arguments,2).map(function(e){return Ge(e,l.objectMaxDepth)});if(i+=r.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<o.length?o[t].replace(u,""):e}),i+="\n"+c+(a?a+"/":"")+n,l.urlErrorParamsEnabled)for(t=0,e="?";t<o.length;t++,e="&")i+=e+"p"+t+"="+encodeURIComponent(o[t]);return new s(i)}}var fe,he,t,v,o=/^\/(.+)\/([a-z]*)$/,d="validity",me=Object.prototype.hasOwnProperty,pe=function(e){return Ce(e)?e.toLowerCase():e},f=function(e){return Ce(e)?e.toUpperCase():e},a=[].slice,r=[].splice,n=[].push,ge=Object.prototype.toString,h=Object.getPrototypeOf,m=T("ng"),y=de.angular||(de.angular={}),i=0;function R(e){if(null==e||M(e))return!1;if(xe(e)||Ce(e)||he&&e instanceof he)return!0;var t="length"in Object(e)&&e.length;return _(t)&&(0<=t&&t-1 in e||"function"==typeof e.item)}function ve(e,t,n){var r,i;if(e)if(ke(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(xe(e)||R(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(w(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)me.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 A(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(_e(a)||ke(a))for(var s=Object.keys(a),c=0,u=s.length;c<u;c++){var l=s[c],d=a[l];n&&_e(d)?C(d)?e[l]=new Date(d.valueOf()):x(d)?e[l]=new RegExp(d):d.nodeName?e[l]=d.cloneNode(!0):H(d)?e[l]=d.clone():"__proto__"!==l&&(_e(e[l])||(e[l]=xe(d)?[]:{}),g(e[l],[d],!0)):e[l]=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 $(e){return parseInt(e,10)}fe=de.document.documentMode;var S=Number.isNaN||function(e){return e!=e};function ye(e,t){return be(Object.create(e),t)}function $e(){}function Ee(e){return e}function N(e){return function(){return e}}function E(e){return ke(e.toString)&&e.toString!==ge}function we(e){return void 0===e}function O(e){return void 0!==e}function _e(e){return null!==e&&"object"==typeof e}function w(e){return null!==e&&"object"==typeof e&&!h(e)}function Ce(e){return"string"==typeof e}function _(e){return"number"==typeof e}function C(e){return"[object Date]"===ge.call(e)}function xe(e){return Array.isArray(e)||e instanceof Array}function Me(e){switch(ge.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function ke(e){return"function"==typeof e}function x(e){return"[object RegExp]"===ge.call(e)}function M(e){return e&&e.window===e}function Te(e){return e&&e.$evalAsync&&e.$watch}function Ae(e){return"boolean"==typeof e}function k(e){return e&&ke(e.then)}$e.$inject=[],Ee.$inject=[];var D=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Se=function(e){return Ce(e)?e.trim():e},I=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function H(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function Ne(e){return pe(e.nodeName||e[0]&&e[0].nodeName)}function P(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function Oe(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=u(t)?t:NaN,n){if((i=n)&&_(i.length)&&D.test(ge.call(i))||(r=n,"[object ArrayBuffer]"===ge.call(r)))throw m("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===n)throw m("cpi","Can't copy! Source and destination are identical.");return xe(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(xe(e))for(var o=0,a=e.length;o<a;o++)t.push(c(e[o],n));else if(w(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)me.call(e,r)&&(t[r]=c(e[r],n));return p(t,i),t}function c(e,t){if(!_e(e))return e;var n=o.indexOf(e);if(-1!==n)return a[n];if(M(e)||Te(e))throw m("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(ke(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=xe(e)?[]:Object.create(h(e)),r=!0),o.push(e),a.push(i),r?s(e,i,t):i}}function De(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(!xe(e)){if(C(e))return!!C(t)&&De(e.getTime(),t.getTime());if(x(e))return!!x(t)&&e.toString()===t.toString();if(Te(e)||Te(t)||M(e)||M(t)||xe(t)||C(t)||x(t))return!1;for(r in i=Fe(),e)if("$"!==r.charAt(0)&&!ke(e[r])){if(!Ie(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&O(t[r])&&!ke(t[r]))return!1;return!0}if(!xe(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 j=function(){if(!O(j.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");j.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")}}else j.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return j.rules},F=function(){if(O(F.name_))return F.name_;var e,t,n,r,i=J.length;for(t=0;t<i;++t)if(n=J[t],e=de.document.querySelector("["+n.replace(":","\\:")+"jq]")){r=e.getAttribute(n+"jq");break}return F.name_=r};function U(e,t,n){return e.concat(a.call(t,n))}function Re(e,t){return a.call(e,t||0)}function He(e,t){var n=2<arguments.length?Re(arguments,2):[];return!ke(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,U(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function V(e,t){var n=t;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?n=void 0:M(t)?n="$WINDOW":t&&de.document===t?n="$DOCUMENT":Te(t)&&(n="$SCOPE"),n}function q(e,t){if(!we(e))return _(t)||(t=t?2:null),JSON.stringify(e,V,t)}function B(e){return Ce(e)?JSON.parse(e):e}var z=/:/g;function W(e,t){e=e.replace(z,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return S(n)?t:n}function Y(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 Y(e,n*(W(t,r)-r))}function Pe(e){e=he(e).clone().empty();var t=he("<div></div>").append(e).html();try{return e[0].nodeType===qe?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 Z(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)),O(n=K(n))&&(r=!O(r)||K(r),me.call(i,n)?xe(i[n])?i[n].push(r):i[n]=[i[n],r]:i[n]=r))}),i}function X(e){return Q(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Q(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 J=["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(J,function(e){var t=e+"app";!i&&r.hasAttribute&&r.hasAttribute(t)&&(o=(i=r).getAttribute(t))}),ve(J,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=J.length;for(r=0;r<i;++r)if(n=J[r]+t,Ce(n=e.getAttribute(n)))return n;return null}(i,"strict-di"),e(i,o?[o]:[],t)}}function ne(n,r,i){_e(i)||(i={});i=be({strictDi:!1},i);var t=function(){if((n=he(n)).injector()){var e=n[0]===de.document?"document":Pe(n);throw m("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=nn(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,""),y.resumeBootstrap=function(e){return ve(e,function(e){r.push(e)}),t()},ke(y.resumeDeferredBootstrap)&&y.resumeDeferredBootstrap()}function re(){de.name="NG_ENABLE_DEBUG_INFO!"+de.name,de.location.reload()}function ie(e){var t=y.element(e).injector();if(!t)throw m("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 se(){vt.legacyXHTMLReplacement=!0}function je(e,t,n){if(!e)throw m("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function ce(e,t,n){return n&&xe(e)&&(e=e[e.length-1]),je(ke(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function ue(e,t){if("hasOwnProperty"===e)throw m("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 Fe(){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)||xe(e)||C(e)?q(e):e.toString()}return e}var Ve=1,qe=3,Be=8,ze=9,We=11;function Ye(e,t){if(xe(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(_e(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function Ge(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):we(e)?"undefined":"string"!=typeof e?(n=e,i=[],u(r=t)&&(n=y.copy(n,null,r)),JSON.stringify(n,function(e,t){if(_e(t=V(e,t))){if(0<=i.indexOf(t))return"...";i.push(t)}return t})):e;var n,r,i}var Ke={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};vt.expando="ng339";var Ze=vt.cache={},Xe=1;vt._data=function(e){return this.cache[e[this.expando]]||{}};var Qe=/-([a-z])/g,Je=/^-ms-/,et={mouseleave:"mouseout",mouseenter:"mouseover"},tt=T("jqLite");function nt(e,t){return t.toUpperCase()}function rt(e){return e.replace(Qe,nt)}var it=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ot=/<|&#?\w+;/,at=/<([\w:-]+)/,st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ct={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead,ct.th=ct.td;var ut={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var lt in ct){var dt=ct[lt],ft=dt.slice().reverse();ut[lt]=[ft.length,"<"+ft.join("><")+">","</"+dt.join("></")+">"]}function ht(e){return!ot.test(e)}function mt(e){var t=e.nodeType;return t===Ve||!t||t===ze}function pt(e,t){var n,r,i,o,a,s=t.createDocumentFragment(),c=[];if(ht(e))c.push(t.createTextNode(e));else{if(n=s.appendChild(t.createElement("div")),r=(at.exec(e)||["",""])[1].toLowerCase(),o=vt.legacyXHTMLReplacement?e.replace(st,"<$1></$2>"):e,fe<10)for(i=ut[r]||ut._default,n.innerHTML=i[1]+o+i[2],a=i[0];a--;)n=n.firstChild;else{for(a=(i=ct[r]||[]).length;-1<--a;)n.appendChild(de.document.createElement(i[a])),n=n.firstChild;n.innerHTML=o}c=U(c,n.childNodes),(n=s.firstChild).textContent=""}return s.textContent="",s.innerHTML="",ve(c,function(e){s.appendChild(e)}),s}ut.optgroup=ut.option;var gt=de.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function vt(e){if(e instanceof vt)return e;var t,n,r,i;if(Ce(e)&&(e=Se(e),t=!0),!(this instanceof vt)){if(t&&"<"!==e.charAt(0))throw tt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new vt(e)}t?At(this,(n=e,r=r||de.document,(i=it.exec(n))?[r.createElement(i[1])]:(i=pt(n,r))?i.childNodes:[])):ke(e)?It(e):At(this,e)}function bt(e){return e.cloneNode(!0)}function yt(e,t){!t&&mt(e)&&he.cleanData([e]),e.querySelectorAll&&he.cleanData(e.querySelectorAll("*"))}function $t(e){var t;for(t in e)return!1;return!0}function Et(e){var t=e.ng339,n=t&&Ze[t],r=n&&n.events,i=n&&n.data;i&&!$t(i)||r&&!$t(r)||(delete Ze[t],e.ng339=void 0)}function wt(n,e,r,t){if(O(t))throw tt("offargs","jqLite#off() does not support the `selector` argument");var i=Ct(n),o=i&&i.events,a=i&&i.handle;if(a){if(e){var s=function(e){var t=o[e];O(r)&&Oe(t||[],r),O(r)&&t&&0<t.length||(n.removeEventListener(e,a),delete o[e])};ve(e.split(" "),function(e){s(e),et[e]&&s(et[e])})}else for(e in o)"$destroy"!==e&&n.removeEventListener(e,a),delete o[e];Et(n)}}function _t(e,t){var n=e.ng339,r=n&&Ze[n];r&&(t?delete r.data[t]:r.data={},Et(e))}function Ct(e,t){var n=e.ng339,r=n&&Ze[n];return t&&!r&&(e.ng339=n=++Xe,r=Ze[n]={events:{},data:{},handle:void 0}),r}function xt(e,t,n){if(mt(e)){var r,i=O(n),o=!i&&t&&!_e(t),a=!t,s=Ct(e,!o),c=s&&s.data;if(i)c[rt(t)]=n;else{if(a)return c;if(o)return c&&c[rt(t)];for(r in t)c[rt(r)]=t[r]}}}function Mt(e,t){return!!e.getAttribute&&-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")}function kt(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 Tt(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 At(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 St(e,t){return Nt(e,"$"+(t||"ngController")+"Controller")}function Nt(e,t,n){e.nodeType===ze&&(e=e.documentElement);for(var r=xe(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(O(n=he.data(e,r[i])))return n;e=e.parentNode||e.nodeType===We&&e.host}}function Ot(e){for(yt(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Dt(e,t){t||yt(e);var n=e.parentNode;n&&n.removeChild(e)}function It(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 Rt=vt.prototype={ready:It,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},Ht={};ve("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Ht[pe(e)]=e});var Pt={};ve("input,select,option,textarea,button,form,details".split(","),function(e){Pt[e]=!0});var Lt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function jt(e,t){var n=Ht[t.toLowerCase()];return n&&Pt[Ne(e)]&&n}function Ft(e,t,n){n.call(e,t)}function Ut(e,t,n){var r=t.relatedTarget;r&&(r===e||gt.call(e,r))||n.call(e,t)}function Vt(){this.$get=function(){return be(vt,{hasClass:function(e,t){return e.attr&&(e=e[0]),Mt(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Tt(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),kt(e,t)}})}}function qt(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:xt,removeData:_t,hasData:function(e){for(var t in Ze[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)_t(e[t]),wt(e[t])}},function(e,t){vt[t]=e}),ve({data:xt,inheritedData:Nt,scope:function(e){return he.data(e,"$scope")||Nt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return he.data(e,"$isolateScope")||he.data(e,"$isolateScopeNoTemplate")},controller:St,injector:function(e){return Nt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Mt,css:function(e,t,n){if(t=rt(t.replace(Je,"ms-")),!O(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==qe&&2!==i&&i!==Be&&e.getAttribute){var o=pe(t),a=Ht[o];if(!O(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(!O(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(we(t)){var n=e.nodeType;return n===Ve||n===qe?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(we(t)){if(e.multiple&&"select"===Ne(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(we(t))return e.innerHTML;yt(e,!0),e.innerHTML=t},empty:Ot},function(u,e){vt.prototype[e]=function(e,t){var n,r,i=this.length;if(u!==Ot&&we(2===u.length&&u!==Mt&&u!==St?e:t)){if(_e(e)){for(n=0;n<i;n++)if(u===xt)u(this[n],e);else for(r in e)u(this[n],r,e[r]);return this}for(var o=u.$dv,a=we(o)?Math.min(i,1):i,s=0;s<a;s++){var c=u(this[s],e,t);o=o?o+c:c}return o}for(n=0;n<i;n++)u(this[n],e,t);return this}}),ve({removeData:_t,on:function(i,e,o,t){if(O(t))throw tt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(mt(i)){var s,c,n,r=Ct(i,!0),a=r.events,u=r.handle;u||(u=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(we(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||Ft;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 l=0<=e.indexOf(" ")?e.split(" "):[e],d=l.length,f=function(e,t,n){var r=a[e];r||((r=a[e]=[]).specialHandlerWrapper=t,"$destroy"===e||n||i.addEventListener(e,u)),r.push(o)};d--;)e=l[d],et[e]?(f(et[e],Ut),f(e,void 0,!0)):f(e)}},off:wt,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;yt(t),ve(new vt(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===Ve&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===Ve||n===We)for(var r=0,i=(t=new vt(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(t,e){if(t.nodeType===Ve){var n=t.firstChild;ve(new vt(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:Dt,detach:function(e){Dt(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new vt(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Tt,removeClass:kt,toggleClass:function(n,e,r){e&&ve(e.split(" "),function(e){var t=r;we(t)&&(t=!Mt(n,e)),(t?Tt:kt)(n,e)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==We?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:bt,triggerHandler:function(t,e,n){var r,i,o,a=e.type||e,s=Ct(t),c=s&&s.events,u=c&&c[a];u&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:$e,type:a,target:t},e.type&&(r=be(r,e)),i=Ye(u),o=n?[r].concat(n):[r],ve(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,o)}))}},function(a,e){vt.prototype[e]=function(e,t,n){for(var r,i=0,o=this.length;i<o;i++)we(r)?O(r=a(this[i],e,t,n))&&(r=he(r)):At(r,a(this[i],e,t,n));return O(r)?r:this}}),vt.prototype.bind=vt.prototype.on,vt.prototype.unbind=vt.prototype.off;var Bt=Object.create(null);function zt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}zt.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)?Bt: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 Wt=zt,Yt=[function(){this.$get=[function(){return Wt}]}],Gt=/^([^(]+?)=>/,Kt=/^[^(]*\(\s*([^)]*)\)/m,Zt=/,/,Xt=/^\s*(_?)(\S+?)\1\s*$/,Qt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Jt=T("$injector");function en(e){return Function.prototype.toString.call(e)}function tn(e){var t=en(e).replace(Qt,"");return t.match(Gt)||t.match(Kt)}function nn(e,u){u=!0===u;var i={},a="Provider",s=[],o=new Wt,l={$provide:{provider:f(h),factory:f(m),service:f(function(e,t){return m(e,["$injector",function(e){return e.instantiate(t)}])}),value:f(function(e,t){return m(e,N(t),!1)}),constant:f(function(e,t){ue(e,"constant"),l[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=l.$injector=g(l,function(e,t){throw y.isString(t)&&s.push(t),Jt("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;l["$injector"+a]={$get:N(t)},d.modules=c.modules=Fe();var r=p(e);return(d=t.get("$injector")).strictDi=u,ve(r,function(e){e&&d.invoke(e)}),d.loadNewModules=function(e){ve(p(e),function(e){e&&d.invoke(e)})},d;function f(n){return function(e,t){if(!_e(e))return n(e,t);ve(e,A(n))}}function h(e,t){if(ue(e,"service"),(ke(t)||xe(t))&&(t=c.instantiate(t)),!t.$get)throw Jt("pget","Provider '{0}' must define $get factory method.",e);return l[e+a]=t}function m(e,t,n){return h(e,{$get:!1!==n?(r=e,i=t,function(){var e=d.invoke(i,this);if(we(e))throw Jt("undef","Provider '{0}' must return a value from $get factory method.",r);return e}):t});var r,i}function p(e){je(we(e)||xe(e),"modulesToLoad","not an array");var n,r=[];return ve(e,function(t){if(!o.get(t)){o.set(t,!0);try{Ce(t)?(n=v(t),d.modules[t]=n,r=r.concat(p(n.requires)).concat(n._runBlocks),e(n._invokeQueue),e(n._configBlocks)):ke(t)?r.push(c.invoke(t)):xe(t)?r.push(c.invoke(t)):ce(t,"module")}catch(e){throw xe(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Jt("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 Jt("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=nn.$$annotate(e,u,n),o=0,a=i.length;o<a;o++){var s=i[o];if("string"!=typeof s)throw Jt("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 xe(e)&&(e=e[e.length-1]),function(e){if(fe||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return Ae(t)||(t=e.$$ngIsClass=/^class\b/.test(en(e))),t}(e)?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,n){var r=xe(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:nn.$$annotate,has:function(e){return l.hasOwnProperty(e+a)||n.hasOwnProperty(e)}}}}function rn(){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(ke(e))e=e();else if(H(e)){var t=e[0];e="fixed"!==r.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else _(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=Ce(e)?e:_(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"===Ne(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}]}nn.$$annotate=function(e,t,n){var r,i,o;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw Ce(n)&&n||(n=e.name||((o=tn(e))?"function("+(o[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),Jt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);ve(tn(e)[1].split(Zt),function(e){e.replace(Xt,function(e,t,n){r.push(n)})})}e.$inject=r}}else xe(e)?(ce(e[i=e.length-1],"fn"),r=e.slice(0,i)):ce(e,"fn",!0);return r};var on=T("$animate"),an=1,sn="ng-animate";function cn(e,t){return e||t?e?t?(xe(e)&&(e=e.join(" ")),xe(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function un(e){return _e(e)?e:{}}var ln=function(){this.$get=$e},dn=function(){var p=new Wt,g=[];this.$get=["$$AnimateRunner","$rootScope",function(d,f){return{enabled:$e,on:$e,off:$e,pin:$e,push:function(e,t,n,r){var i,o,a,s,c,u;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),u=h(s,a,!1),(c||u)&&(p.set(i,s),g.push(i),1===g.length&&f.$$postDigest(m)));var l=new d;return l.complete(),l}};function h(t,e,n){var r=!1;return e&&ve(e=Ce(e)?e.split(" "):xe(e)?e:[],function(e){e&&(r=!0,t[e]=n)}),r}function m(){ve(g,function(e){var t=p.get(e);if(t){var n=function(e){Ce(e)&&(e=e.split(" "));var t=Fe();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&&Tt(e,r),i&&kt(e,i)}),p.delete(e)}}),g.length=0}}]},fn=["$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 on("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=ke(e)?e:null),n},this.classNameFilter=function(e){if(1===arguments.length&&((t=e instanceof RegExp?e:null)&&new RegExp("[(\\s|\\/)]"+sn+"[(\\s|\\/)]").test(t.toString())))throw t=null,on("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',sn);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===an)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",un(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",un(r))},leave:function(e,t){return o.push(e,"leave",un(t),function(){e.remove()})},addClass:function(e,t,n){return(n=un(n)).addClass=cn(n.addclass,t),o.push(e,"addClass",n)},removeClass:function(e,t,n){return(n=un(n)).removeClass=cn(n.removeClass,t),o.push(e,"removeClass",n)},setClass:function(e,t,n,r){return(r=un(r)).addClass=cn(r.addClass,t),r.removeClass=cn(r.removeClass,n),o.push(e,"setClass",r)},animate:function(e,t,n,r,i){return(i=un(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=cn(i.tempClasses,r),o.push(e,"animate",i)}}}]}],hn=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)}}}]},mn=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:$e,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}]},pn=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 gn(s,e,t,c,n){var u=this,l=s.location,d=s.history,i=s.setTimeout,r=s.clearTimeout,o={},a=n(t);u.isMock=!1,u.$$completeOutstandingRequest=a.completeTask,u.$$incOutstandingRequestCount=a.incTaskCount,u.notifyWhenNoOutstandingRequests=a.notifyWhenNoPendingTasks;var f,h,m=l.href,p=e.find("base"),g=null,v=c.history?function(){try{return d.state}catch(e){}}:$e;w(),u.url=function(e,t,n){if(we(n)&&(n=null),l!==s.location&&(l=s.location),d!==s.history&&(d=s.history),e){var r=h===n;if(e=vi(e).href,m===e&&(!c.history||r))return u;var i=m&&mr(m)===mr(e);return m=e,h=n,!c.history||i&&r?(i||(g=e),t?l.replace(e):i?l.hash=-1===(a=(o=e).indexOf("#"))?"":o.substr(a):l.href=e,l.href!==e&&(g=e)):(d[t?"replaceState":"pushState"](n,"",e),w()),g&&(g=e),u}return(g||l.href).replace(/#$/,"");var o,a},u.state=function(){return f};var b=[],y=!1;function $(){g=null,_()}var E=null;function w(){Ie(f=we(f=v())?null:f,E)&&(f=E),h=E=f}function _(){var e=h;w(),m===u.url()&&e===f||(m=u.url(),h=f,ve(b,function(e){e(u.url(),f)}))}u.onUrlChange=function(e){return y||(c.history&&he(s).on("popstate",$),he(s).on("hashchange",$),y=!0),b.push(e),e},u.$$applicationDestroyed=function(){he(s).off("hashchange popstate",$)},u.$$checkUrlChange=_,u.baseHref=function(){var e=p.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},u.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},u.defer.cancel=function(e){if(o.hasOwnProperty(e)){var t=o[e];return delete o[e],r(e),a.completeTask($e,t),!0}return!1}}function vn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new gn(e,r,t,n,i)}]}function bn(){this.$get=function(){var d={};function e(e,t){if(e in d)throw T("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var n=0,r=be({},t,{id:e}),i=Fe(),o=t&&t.capacity||Number.MAX_VALUE,a=Fe(),s=null,c=null;return d[e]={put:function(e,t){if(!we(t)){if(o<Number.MAX_VALUE)u(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;u(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),l(t.n,t.p),delete a[e]}e in i&&(delete i[e],n--)},removeAll:function(){i=Fe(),n=0,a=Fe(),s=c=null},destroy:function(){a=r=i=null,delete d[e]},info:function(){return be({},r,{size:n})}};function u(e){e!==s&&(c?c===e&&(c=e.n):c=e,l(e.n,e.p),l(e,s),(s=e).n=null)}function l(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 yn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var $n=T("$compile");var En=new function(){};function wn(n,t){var m={},p="Directive",B=/^\s*directive:\s*([\w-]+)\s+(.*)$/,le=/(([\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=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,$=/^(on[a-z]+|formaction)$/,s=Fe();function r(e,r,i){var o=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,a=Fe();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 $n("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(_e(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),_e(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw $n("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(c,t){return je(c,"name"),ue(c,"directive"),Ce(c)?(!function(e){var t=e.charAt(0);if(!t||t!==pe(t))throw $n("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw $n("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(c),je(t,"directiveFactory"),m.hasOwnProperty(c)||(m[c]=[],n.factory(c+p,["$injector","$exceptionHandler",function(o,a){var s=[];return ve(m[c],function(e,t){try{var n=o.invoke(e);ke(n)?n={compile:N(n)}:!n.compile&&n.link&&(n.compile=N(n.link)),n.priority=n.priority||0,n.index=t,n.name=n.name||c,n.require=(!xe(i=(r=n).require||r.controller&&r.name)&&_e(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&&(!Ce(e)||!/[EACM]/.test(e)))throw $n("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}])),m[c].push(t)):ve(c,A(e)),this},this.component=function e(t,i){if(!Ce(t))return ve(t,A(He(this,e))),this;var o=i.controller||function(){};function n(r){function e(n){return ke(n)||xe(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&&Ce(t))return t;if(Ce(e)){var n=Sn.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,ke(o)&&(o[t]=e))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationTrustedUrlList=function(e){return O(e)?(t.aHrefSanitizationTrustedUrlList(e),this):t.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return O(e)?(t.imgSrcSanitizationTrustedUrlList(e),this):t.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var w=!0,_=!(this.debugInfoEnabled=function(e){return O(e)?(w=e,this):w});this.strictComponentBindingsEnabled=function(e){return O(e)?(_=e,this):_};var C=10;this.onChangesTtl=function(e){return arguments.length?(C=e,this):C};var x=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(x=e,this):x};var M=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(M=e,this):M};var k=Fe();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in k&&k[r]!==n)throw $n("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,k[r],n);return k[r]=n,this},function(){function e(t,e){ve(e,function(e){k[e.toLowerCase()]=t})}e(Jr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(Jr.CSS,["*|style"]),e(Jr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(Jr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(Jr.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,A,z,e,S,W,N,f,i){var o,c=/^\w/,u=de.document.createElement("div"),O=x,D=M,t=C;function a(){try{if(!--t)throw o=void 0,$n("infchng","{0} $onChanges() iterations reached. Aborting!\n",C);N.$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 l(e,t){if(!e)return e;if(!Ce(e))throw $n("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+=f.getTrustedMediaUrl(Se(o[c])),n+=" "+Se(o[c+1])}var u=Se(o[2*s]).split(/\s/);return n+=f.getTrustedMediaUrl(Se(u[0])),2===u.length&&(n+=" "+Se(u[1])),n}function Y(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 T(e,t){try{e.addClass(t)}catch(e){}}Y.prototype={$normalize:Mn,$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=kn(e,t);n&&n.length&&i.addClass(this.$$element,n);var r=kn(t,e);r&&r.length&&i.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=jt(this.$$element[0],e),o=Lt[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"===Ne(this.$$element)&&"srcset"===e&&(this[e]=t=l(t,"$set('srcset', value)")),!1!==n&&(null===t||we(t)?this.$$element.removeAttr(r):c.test(r)?i&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){u.innerHTML="<span "+t+">";var r=u.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=Fe()),i=r[e]||(r[e]=[]);return i.push(t),N.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||we(n[e])||t(n[e])}),function(){Oe(i,t)}}};var n=A.startSymbol(),r=A.endSymbol(),G="{{"===n&&"}}"===r?Ee:function(e){return e.replace(/\{\{/g,n).replace(/}}/g,r)},I=/^ng(Attr|Prop|On)([A-Z].*)$/,R=/^(.+)Start$/;return K.$$addBindingInfo=w?function(e,t){var n=e.data("$binding")||[];xe(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:$e,K.$$addBindingClass=w?function(e){T(e,"ng-binding")}:$e,K.$$addScopeInfo=w?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:$e,K.$$addScopeClass=w?function(e,t){T(e,t?"ng-isolate-scope":"ng-scope")}:$e,K.$$createComment=function(e,t){var n="";return w&&(n=" "+(e||"")+": ",t&&(n+=t+" ")),de.document.createComment(n)},K;function K(l,e,t,n,d){l instanceof he||(l=he(l));var f=H(l,e,l,t,n,d);K.$$addScopeClass(l);var h=null;return function(e,t,n){if(!l)throw $n("multilink","This element has already been linked.");je(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"!==Ne(i)&&ge.call(i).match(/SVG/)?"svg":"html"),o="html"!==h?he(oe(h,he("<div></div>").append(l).html())):t?Rt.clone.call(l):l,s)for(var u in s)o.data("$"+u+"Controller",s[u].instance);return K.$$addScopeInfo(o,e),t&&t(o,e),f&&f(e,o,o,a),t||(l=f=null),o}}function H(e,m,t,n,r,i){for(var o,a,s,c,u,l,p,g=[],d=xe(e)||e instanceof he,f=0;f<e.length;f++)o=new Y,11===fe&&v(e,f,d),(s=(a=Z(e[f],[],o,0===f?n:void 0,r)).length?L(a,e[f],o,m,t,null,[],[],i):null)&&s.scope&&K.$$addScopeClass(o.$$element),u=s&&s.terminal||!(c=e[f].childNodes)||!c.length?null:H(c,s?(s.transcludeOnThisElement||!s.templateOnThisElement)&&s.transclude:m),(s||u)&&(g.push(f,s,u),l=!0,p=p||s),i=null;return l?function(e,t,n,r){var i,o,a,s,c,u,l,d,f;if(p){var h=t.length;for(f=new Array(h),c=0;c<g.length;c+=3)l=g[c],f[l]=t[l]}else f=t;for(c=0,u=g.length;c<u;)a=f[g[c++]],i=g[c++],o=g[c++],i?(i.scope?(s=e.$new(),K.$$addScopeInfo(he(a),s)):s=e,d=i.transcludeOnThisElement?P(e,i.transclude,r):!i.templateOnThisElement&&r?r:!r&&m?P(e,m):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===qe)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===qe;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function P(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=Fe();for(var n in a.$$slots)a.$$slots[n]?t[n]=P(o,a.$$slots[n],s):t[n]=null;return e}function Z(e,t,n,r,i){var o,a,s,c,u,l,d,f,h=e.nodeType,m=n.$attr;switch(h){case Ve:j(t,Mn(a=Ne(e)),"E",r,i);for(var p,g,v,b,y,$=e.attributes,E=0,w=$&&$.length;E<w;E++){var _,C=!1,x=!1,M=!1,k=!1,T=!1;g=(p=$[E]).name,b=p.value,(y=(v=Mn(g.toLowerCase())).match(I))?(M="Attr"===y[1],k="Prop"===y[1],T="On"===y[1],g=g.replace(Cn,"").toLowerCase().substr(4+y[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(_=v.match(R))&&F(_[1])&&(x=(C=g).substr(0,g.length-5)+"end",g=g.substr(0,g.length-6)),k||T?(n[v]=b,m[v]=p.name,k?V(e,t,v,g):(d=v,f=g,t.push(Yo(S,N,z,d,f,!1)))):(m[v=Mn(g.toLowerCase())]=g,!M&&n.hasOwnProperty(v)||(n[v]=b,jt(e,v)&&(n[v]=!0)),q(e,t,b,v,M),j(t,v,"A",r,i,C,x))}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!D)break;if(_e(s=e.className)&&(s=s.animVal),Ce(s)&&""!==s)for(;o=le.exec(s);)j(t,v=Mn(o[2]),"C",r,i)&&(n[v]=Se(o[3])),s=s.substr(o.index+o[0].length);break;case qe:c=t,u=e.nodeValue,(l=A(u,!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,l.expressions),e.$watch(l,function(e){t[0].nodeValue=e})}}});break;case Be:if(!O)break;!function(e,t,n,r,i){try{var o=B.exec(e.nodeValue);if(o){var a=Mn(o[1]);j(t,a,"M",r,i)&&(n[a]=Se(o[2]))}}catch(e){}}(e,t,n,r,i)}return t.sort(U),t}function X(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw $n("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===Ve&&(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 Q(o,a,s){return function(e,t,n,r,i){return t=X(t[0],a,s),o(e,t,n,r,i)}}function J(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,$,E,t,n,r,w,_,i){i=i||{};for(var o,a,s,c,u,l=-Number.MAX_VALUE,C=i.newScopeDirective,x=i.controllerDirectives,M=i.newIsolateScopeDirective,k=i.templateDirective,d=i.nonTlbTranscludeDirective,f=!1,h=!1,T=i.hasElementTranscludeDirective,m=E.$$element=he($),p=r,g=t,v=!1,b=!1,y=0,A=e.length;y<A;y++){var S=(o=e[y]).$$start,N=o.$$end;if(S&&(m=X($,S,N)),s=void 0,l>o.priority)break;if((u=o.scope)&&(o.templateUrl||(_e(u)?(ie("new/isolated scope",M||C,o,m),M=o):ie("new/isolated scope",M,o,m)),C=C||o),a=o.name,!v&&(o.replace&&(o.templateUrl||o.template)||o.transclude&&!o.$$tlb)){for(var O,D=y+1;O=e[D++];)if(O.transclude&&!O.$$tlb||O.replace&&(O.templateUrl||O.template)){b=!0;break}v=!0}if(!o.templateUrl&&o.controller&&(x=x||Fe(),ie("'"+a+"' controller",x[a],o,m),x[a]=o),u=o.transclude)if(f=!0,o.$$tlb||(ie("transclusion",d,o,m),d=o),"element"===u)T=!0,l=o.priority,s=m,m=E.$$element=he(K.$$createComment(a,E[a])),$=m[0],ae(n,Re(s),$),g=J(b,s,t,l,p&&p.name,{nonTlbTranscludeDirective:d});else{var I=Fe();if(_e(u)){s=de.document.createDocumentFragment();var R=Fe(),H=Fe();for(var P in ve(u,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,R[e]=t,I[t]=null,H[t]=n}),ve(m.contents(),function(e){var t=R[Mn(Ne(e))];t?(H[t]=!0,I[t]=I[t]||de.document.createDocumentFragment(),I[t].appendChild(e)):s.appendChild(e)}),ve(H,function(e,t){if(!e)throw $n("reqslot","Required transclusion slot `{0}` was not filled.",t)}),I)if(I[P]){var L=he(I[P].childNodes);I[P]=J(b,L,t)}s=he(s.childNodes)}else s=he(bt($)).contents();m.empty(),(g=J(b,s,t,void 0,void 0,{needsNewScope:o.$$isolateScope||o.$$newScope})).$$slots=I}if(o.template)if(h=!0,ie("template",k,o,m),u=ke((k=o).template)?o.template(m,E):o.template,u=G(u),o.replace){if(p=o,s=ht(u)?[]:Tn(oe(o.templateNamespace,Se(u))),$=s[0],1!==s.length||$.nodeType!==Ve)throw $n("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a,"");ae(n,m,$);var j={$attr:{}},F=Z($,[],j),U=e.splice(y+1,e.length-(y+1));(M||C)&&te(F,M,C),e=e.concat(F).concat(U),ne(E,j),A=e.length}else m.html(u);if(o.templateUrl)h=!0,ie("template",k,o,m),(k=o).replace&&(p=o),B=re(e.splice(y,e.length-y),m,E,n,f&&g,w,_,{controllerDirectives:x,newScopeDirective:C!==o&&C,newIsolateScopeDirective:M,templateDirective:k,nonTlbTranscludeDirective:d}),A=e.length;else if(o.compile)try{c=o.compile(m,E,g);var V=o.$$originalDirective||o;ke(c)?q(null,He(V,c),S,N):c&&q(He(V,c.pre),He(V,c.post),S,N)}catch(e){z(e,Pe(m))}o.terminal&&(B.terminal=!0,l=Math.max(l,o.priority))}return B.scope=C&&!0===C.scope,B.transcludeOnThisElement=f,B.templateOnThisElement=h,B.transclude=g,i.hasElementTranscludeDirective=T,B;function q(e,t,n,r){e&&(n&&(e=Q(e,n,r)),e.require=o.require,e.directiveName=a,(M===o||o.$$isolateScope)&&(e=se(e,{isolateScope:!0})),w.push(e)),t&&(n&&(t=Q(t,n,r)),t.require=o.require,t.directiveName=a,(M===o||o.$$isolateScope)&&(t=se(t,{isolateScope:!0})),_.push(t))}function B(e,t,n,r,a){var i,o,s,c,u,l,d,f,h,m;for(var p in $===n?f=(h=E).$$element:h=new Y(f=he(n),E),u=t,M?c=t.$new(!0):C&&(u=t.$parent),a&&((d=function(e,t,n,r){var i;Te(e)||(r=n,n=t,t=e,e=void 0);T&&(i=l);n||(n=T?f.parent():f);{if(!r)return a(e,t,i,n,y);var o=a.$$slots[r];if(o)return o(e,t,i,n,y);if(we(o))throw $n("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Pe(f))}}).$$boundTransclude=a,d.isSlotFilled=function(e){return!!a.$$slots[e]}),x&&(l=function(e,t,n,r,i,o,a){var s=Fe();for(var c in r){var u=r[c],l={$scope:u===a||u.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},d=u.controller;"@"===d&&(d=t[u.name]);var f=W(d,l,!0,u.controllerAs);s[u.name]=f,e.data("$"+u.name+"Controller",f.instance)}return s}(f,h,d,x,c,t,M)),M&&(K.$$addScopeInfo(f,c,!0,!(k&&(k===M||k===M.$$originalDirective))),K.$$addScopeClass(f,!0),c.$$isolateBindings=M.$$isolateBindings,(m=ue(t,h,c,c.$$isolateBindings,M)).removeWatches&&c.$on("$destroy",m.removeWatches)),l){var g=x[p],v=l[p],b=g.$$bindings.bindToController;v.instance=v(),f.data("$"+g.name+"Controller",v.instance),v.bindingInfo=ue(u,h,v.instance,b,g)}for(ve(x,function(e,t){var n=e.require;e.bindToController&&!xe(n)&&_e(n)&&be(l[t].instance,ee(t,n,f,l))}),ve(l,function(e){var t=e.instance;if(ke(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){z(e)}if(ke(t.$onInit))try{t.$onInit()}catch(e){z(e)}ke(t.$doCheck)&&(u.$watch(function(){t.$doCheck()}),t.$doCheck()),ke(t.$onDestroy)&&u.$on("$destroy",function(){t.$onDestroy()})}),i=0,o=w.length;i<o;i++)ce(s=w[i],s.isolateScope?c:t,f,h,s.require&&ee(s.directiveName,s.require,f,l),d);var y=t;for(M&&(M.template||null===M.templateUrl)&&(y=c),e&&e(y,n.childNodes,void 0,a),i=_.length-1;0<=i;i--)ce(s=_[i],s.isolateScope?c:t,f,h,s.require&&ee(s.directiveName,s.require,f,l),d);ve(l,function(e){var t=e.instance;ke(t.$postLink)&&t.$postLink()})}}function ee(n,e,r,i){var o;if(Ce(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 u="$"+a+"Controller";o="^^"===s&&r[0]&&r[0].nodeType===ze?null:s?r.inheritedData(u):r.data(u)}if(!o&&!c)throw $n("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,n)}else if(xe(e)){o=[];for(var l=0,d=e.length;l<d;l++)o[l]=ee(n,e[l],r,i)}else _e(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]=ye(e[r],{$$isolateScope:t,$$newScope:n})}function j(e,t,n,r,i,o,a){if(t===i)return null;var s=null;if(m.hasOwnProperty(t))for(var c,u=h.get(t+p),l=0,d=u.length;l<d;l++)if(c=u[l],(we(r)||r>c.priority)&&-1!==c.restrict.indexOf(n)){if(o&&(c=ye(c,{$$start:o,$$end:a})),!c.$$bindings){var f=c.$$bindings=E(c,c.name);_e(f.isolateScope)&&(c.$$isolateBindings=f.isolateScope)}e.push(c),s=c}return s}function F(e){if(m.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(f,h,m,p,g,v,b,y){var $,E,w=[],_=h[0],C=f.shift(),x=ye(C,{templateUrl:null,transclude:null,replace:null,$$originalDirective:C}),M=ke(C.templateUrl)?C.templateUrl(h,m):C.templateUrl,k=C.templateNamespace;return h.empty(),e(M).then(function(e){var n,t,r,i;if(e=G(e),C.replace){if(r=ht(e)?[]:Tn(oe(k,Se(e))),n=r[0],1!==r.length||n.nodeType!==Ve)throw $n("tplrt","Template for directive '{0}' must have exactly one root element. {1}",C.name,M);t={$attr:{}},ae(p,h,n);var o=Z(n,[],t);_e(C.scope)&&te(o,!0),f=o.concat(f),ne(m,t)}else n=_,h.html(e);for(f.unshift(x),$=L(f,n,m,g,h,C,v,b,y),ve(p,function(e,t){e===n&&(p[t]=h[0])}),E=H(h[0].childNodes,g);w.length;){var a=w.shift(),s=w.shift(),c=w.shift(),u=w.shift(),l=h[0];if(!a.$$destroyed){if(s!==_){var d=s.className;y.hasElementTranscludeDirective&&C.replace||(l=bt(n)),ae(c,he(s),l),T(he(l),d)}i=$.transcludeOnThisElement?P(a,$.transclude,u):u,$(E,a,l,p,i)}}w=null}).catch(function(e){Me(e)&&z(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(w?w.push(t,n,r,o):($.transcludeOnThisElement&&(o=P(t,$.transclude,i)),$(E,t,n,r,o)))}}function U(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 $n("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,Pe(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 l(f.valueOf(e),"ng-prop-srcset")}function V(e,t,n,o){if($.test(o))throw $n("nodomevents","Property bindings for HTML DOM event properties are disallowed");var r,i,a=Ne(e),s=(r=a,i=o.toLowerCase(),k[r+"|"+i]||k["*|"+i]),c=Ee;"srcset"!==o||"img"!==a&&"source"!==a?s&&(c=f.getTrusted.bind(f,s)):c=d,t.push({priority:100,compile:function(e,t){var r=S(t[n]),i=S(t[n],function(e){return f.valueOf(e)});return{pre:function(t,n){function e(){var e=r(t);n[0][o]=c(e)}e(),t.$watch(i,e)}}}})}function q(e,t,o,a,n){var r,i,s=Ne(e),c=(r=s,"srcdoc"===(i=a)?f.HTML:"src"===i||"ngSrc"===i?-1===["img","video","audio","source","track"].indexOf(r)?f.RESOURCE_URL:f.MEDIA_URL:"xlinkHref"===i?"image"===r?f.MEDIA_URL:"a"===r?f.URL:f.RESOURCE_URL:"form"===r&&"action"===i||"base"===r&&"href"===i||"link"===r&&"href"===i?f.RESOURCE_URL:"a"!==r||"href"!==i&&"ngHref"!==i?void 0:f.URL),u=!n,l=g[a]||n,d=A(o,u,c,l);if(d){if("multiple"===a&&"select"===s)throw $n("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Pe(e));if($.test(a))throw $n("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=Fe()),i=n[a];i!==o&&(d=i&&A(i,!0,c,l),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,u=c+a-1,l=e.length;c<l;c++,u++)u<l?e[c]=e[u]: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,Pe(n))}}function y(e,t){if(_)throw $n("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function ue(f,h,m,e,p){var r,g=[],v={};function b(e,t,n){ke(m.$onChanges)&&!De(t,n)&&(o||(f.$$postDigest(a),o=[]),r||(r={},o.push(i)),r[e]&&(n=r[e].previousValue),r[e]=new _n(n,t))}function i(){m.$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||me.call(h,s)||(y(s,p.name),m[n]=h[s]=void 0),a=h.$observe(s,function(e){if(Ce(e)||Ae(e)){var t=m[n];b(n,e,t),m[n]=e}}),h.$$observers[s].$$scope=f,Ce(t=h[s])?m[n]=A(t)(f):Ae(t)&&(m[n]=t),v[n]=new _n(En,m[n]),g.push(a);break;case"=":if(!me.call(h,s)){if(c)break;y(s,p.name),h[s]=void 0}if(c&&!h[s])break;r=S(h[s]),o=r.literal?Ie:De,i=r.assign||function(){throw t=m[n]=r(f),$n("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",h[s],s,p.name)},t=m[n]=r(f);var u=function(e){return o(e,m[n])||(o(e,t)?i(f,e=m[n]):m[n]=e),t=e};u.$stateful=!0,a=e.collection?f.$watchCollection(h[s],u):f.$watch(S(h[s],u),null,r.literal),g.push(a);break;case"<":if(!me.call(h,s)){if(c)break;y(s,p.name),h[s]=void 0}if(c&&!h[s])break;var l=(r=S(h[s])).literal,d=m[n]=r(f);v[n]=new _n(En,m[n]),a=f[e.collection?"$watchCollection":"$watch"](r,function(e,t){if(t===e){if(t===d||l&&Ie(t,d))return;t=d}b(n,e,t),m[n]=e}),g.push(a);break;case"&":if(c||me.call(h,s)||y(s,p.name),(r=h.hasOwnProperty(s)?S(h[s]):$e)===$e&&c)break;m[n]=function(e){return r(f,e)}}}),{initialChanges:v,removeWatches:g.length&&function(){for(var e=0,t=g.length;e<t;++e)g[e]()}}}}]}function _n(e,t){this.previousValue=e,this.currentValue=t}wn.$inject=["$provide","$$sanitizeUriProvider"],_n.prototype.isFirstChange=function(){return this.previousValue===En};var Cn=/^((?:x|data)[:\-_])/i,xn=/[:\-_]+(.)/g;function Mn(e){return e.replace(Cn,"").replace(xn,function(e,t,n){return n?t.toUpperCase():t})}function kn(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 Tn(e){var t=(e=he(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Be||n.nodeType===qe&&""===n.nodeValue.trim())&&r.call(e,t,1)}return e}var An=T("$controller"),Sn=/^(\S+)(\s+as\s+([\w$]+))?$/;function Nn(){var d={};this.has=function(e){return d.hasOwnProperty(e)},this.register=function(e,t){ue(e,"controller"),_e(e)?be(d,e):d[e]=t},this.$get=["$injector",function(u){return function(t,n,e,r){var i,o,a,s;if(e=!0===e,r&&Ce(r)&&(s=r),Ce(t)){if(!(o=t.match(Sn)))throw An("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&&ke(e)?He(o,e):e}(n.$scope,a,!0)))throw An("ctrlreg","The controller with the name '{0}' is not registered.",a);ce(t,a,!0)}if(e){var c=(xe(t)?t[t.length-1]:t).prototype;return i=Object.create(c||null),s&&l(n,s,i,a||t.name),be(function(){var e=u.invoke(t,i,n,a);return e!==i&&(_e(e)||ke(e))&&(i=e,s&&l(n,s,i,a||t.name)),i},{instance:i,identifier:s})}return i=u.instantiate(t,n,a),s&&l(n,s,i,a||t.name),i};function l(e,t,n,r){if(!e||!_e(e.$scope))throw T("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}}]}function On(){this.$get=["$window",function(e){return he(e.document)}]}function Dn(){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 In(){this.$get=["$log",function(n){return function(e,t){n.error.apply(n,arguments)}}]}var Rn=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}}]},Hn="application/json",Pn={"Content-Type":Hn+";charset=utf-8"},Ln=/^\[|^\{(?!\{)/,jn={"[":/]$/,"{":/}$/},Fn=/^\)]\}',?\n/,Un=T("$http");function Vn(e){return _e(e)?C(e)?e.toISOString():q(e):e}function qn(){this.$get=function(){return function(e){if(!e)return"";var n=[];return s(e,function(e,t){null===e||we(e)||ke(e)||(xe(e)?ve(e,function(e){n.push(Q(t)+"="+Q(Vn(e)))}):n.push(Q(t)+"="+Q(Vn(e))))}),n.join("&")}}}function Bn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function n(e,r,i){xe(e)?ve(e,function(e,t){n(e,r+"["+(_e(e)?t:"")+"]")}):_e(e)&&!C(e)?s(e,function(e,t){n(e,r+(i?"":"[")+t+(i?"":"]"))}):(ke(e)&&(e=e()),t.push(Q(r)+"="+(null==e?"":Q(Vn(e)))))}(e,"",!0),t.join("&")}}}function zn(t,e){if(Ce(t)){var n=t.replace(Fn,"").trim();if(n){var r=e("Content-Type"),i=r&&0===r.indexOf(Hn);if(i||(a=(o=n).match(Ln))&&jn[a[0]].test(o))try{t=B(n)}catch(e){if(!i)return t;throw Un("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var o,a;return t}function Wn(e){var t,n=Fe();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return Ce(e)?ve(e.split("\n"),function(e){t=e.indexOf(":"),r(pe(Se(e.substr(0,t))),Se(e.substr(t+1)))}):_e(e)&&ve(e,function(e,t){r(pe(t),Se(e))}),n}function Yn(n){var r;return function(e){if(r||(r=Wn(n)),e){var t=r[pe(e)];return void 0===t&&(t=null),t}return r}}function Gn(t,n,r,e){return ke(e)?e(t,n,r):(ve(e,function(e){t=e(t,n,r)}),t)}function Kn(e){return 200<=e&&e<300}function Zn(){var C=this.defaults={transformResponse:[zn],transformRequest:[function(e){return _e(e)&&(r=e,"[object File]"!==ge.call(r))&&(n=e,"[object Blob]"!==ge.call(n))&&(t=e,"[object FormData]"!==ge.call(t))?q(e):e;var t,n,r}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ye(Pn),put:Ye(Pn),patch:Ye(Pn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},x=!1;this.useApplyAsync=function(e){return O(e)?(x=!!e,this):x};var t=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(s,g,v,e,b,y,c,$){var E=e("$http");C.paramSerializer=Ce(C.paramSerializer)?c.get(C.paramSerializer):C.paramSerializer;var u=[];ve(t,function(e){u.unshift(Ce(e)?c.get(e):c.invoke(e))});var n,w=(n=[pi].concat(r.map(vi)),function(e){var t=vi(e);return n.some(bi.bind(null,t))});function _(e){if(!_e(e))throw T("$http")("badreq","Http request configuration must be an object.  Received: {0}",e);if(!Ce($.valueOf(e.url)))throw T("$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:C.transformRequest,transformResponse:C.transformResponse,paramSerializer:C.paramSerializer,jsonpCallbackParam:C.jsonpCallbackParam},e);n.headers=function(e){var t,n,r,i=C.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),u={},ve(a,function(e,t){ke(e)?null!=(c=e(s))&&(u[t]=c):u[t]=e}),u;var a,s,c,u}(e),n.method=f(n.method),n.paramSerializer=Ce(n.paramSerializer)?c.get(n.paramSerializer):n.paramSerializer,s.$$incOutstandingRequestCount("$http");var t=[],r=[],i=y.resolve(n);return ve(u,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=Gn(e.data,Yn(n),void 0,e.transformRequest);we(t)&&ve(n,function(e,t){"content-type"===pe(t)&&delete n[t]});we(e.withCredentials)&&!we(C.withCredentials)&&(e.withCredentials=C.withCredentials);return function(o,e){var a,t,s=y.defer(),n=s.promise,r=o.headers,i="jsonp"===pe(o.method),c=o.url;i?c=$.getTrustedResourceUrl(c):Ce(c)||(c=$.valueOf(c));u=c,l=o.paramSerializer(o.params),0<l.length&&(u+=(-1===u.indexOf("?")?"?":"&")+l),c=u,i&&(c=function(n,r){var e=n.split("?");if(2<e.length)throw Un("badjsonp",'Illegal use more than one "?", in url, "{1}"',n);return ve(Z(e[1]),function(e,t){if("JSON_CALLBACK"===e)throw Un("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',n);if(t===r)throw Un("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',r,n)}),n+=(-1===n.indexOf("?")?"?":"&")+r+"=JSON_CALLBACK"}(c,o.jsonpCallbackParam));var u,l;_.pendingRequests.push(o),n.then(p,p),!o.cache&&!C.cache||!1===o.cache||"GET"!==o.method&&"JSONP"!==o.method||(a=_e(o.cache)?o.cache:_e(C.cache)?C.cache:E);a&&(O(t=a.get(c))?k(t)?t.then(m,m):xe(t)?h(t[1],t[0],Ye(t[2]),t[3],t[4]):h(t,200,{},"OK","complete"):a.put(c,n));if(we(t)){var d=w(o.url)?v()[o.xsrfCookieName||C.xsrfCookieName]:void 0;d&&(r[o.xsrfHeaderName||C.xsrfHeaderName]=d),g(o.method,c,e,function(e,t,n,r,i){a&&(Kn(e)?a.put(c,[e,t,Wn(n),r,i]):a.remove(c));function o(){h(t,e,n,r,i)}x?b.$applyAsync(o):(o(),b.$$phase||b.$apply())},r,o.timeout,o.withCredentials,o.responseType,f(o.eventHandlers),f(o.uploadEventHandlers))}return n;function f(e){if(e){var t={};return ve(e,function(n,e){t[e]=function(e){function t(){n(e)}x?b.$applyAsync(t):b.$$phase?t():b.$apply(t)}}),t}}function h(e,t,n,r,i){(Kn(t=-1<=t?t:0)?s.resolve:s.reject)({data:e,status:t,headers:Yn(n),config:o,statusText:r,xhrStatus:i})}function m(e){h(e.data,e.status,Ye(e.headers()),e.statusText,e.xhrStatus)}function p(){var e=_.pendingRequests.indexOf(o);-1!==e&&_.pendingRequests.splice(e,1)}}(e,t).then(a,a)}),r)).finally(function(){s.$$completeOutstandingRequest($e,"$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=Gn(e.data,e.headers,e.status,n.transformResponse),Kn(e.status)?t:y.reject(t)}}return _.pendingRequests=[],function(e){ve(arguments,function(n){_[n]=function(e,t){return _(be({},t||{},{method:n,url:e}))}})}("get","delete","head","jsonp"),function(e){ve(arguments,function(r){_[r]=function(e,t,n){return _(be({},n||{},{method:r,url:e,data:t}))}})}("post","put","patch"),_.defaults=C,_}]}function Xn(){this.$get=function(){return function(){return new de.XMLHttpRequest}}}function Qn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return b=r,y=(v=e).defer,$=t,E=n[0],function(e,r,t,i,n,o,a,s,c,u){if(r=r||v.url(),"jsonp"===pe(e))var l=$.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||$.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,l,function(e,t){var n=200===e&&$.getResponse(l);g(i,e,n,"",t,"complete"),$.removeCallback(l)});else{var f=b(e,r),h=!1;if(f.open(e,r,!0),ve(n,function(e,t){O(e)&&f.setRequestHeader(t,e)}),f.onload=function(){var e=f.statusText||"",t="response"in f?f.response:f.responseText,n=1223===f.status?204:f.status;0===n&&(n=t?200:"file"===vi(r).protocol?404:0),g(i,n,t,f.getAllResponseHeaders(),e,"complete")},f.onerror=function(){g(i,-1,null,null,"","error")},f.ontimeout=function(){g(i,-1,null,null,"","timeout")},f.onabort=function(){g(i,-1,null,null,"",h?"timeout":"abort")},ve(c,function(e,t){f.addEventListener(t,e)}),ve(u,function(e,t){f.upload.addEventListener(t,e)}),a&&(f.withCredentials=!0),s)try{f.responseType=s}catch(e){if("json"!==s)throw e}f.send(we(t)?null:t)}if(0<o)var m=y(function(){p("timeout")},o);else k(o)&&o.then(function(){p(O(o.$$timeoutId)?"timeout":"abort")});function p(e){h="timeout"===e,d&&d(),f&&f.abort()}function g(e,t,n,r,i,o){O(m)&&y.cancel(m),d=f=null,e(t,n,r,i,o)}};var v,b,y,$,E}]}var Jn=y.$interpolateMinErr=T("$interpolate");function er(){var M="{{",k="}}";this.startSymbol=function(e){return e?(M=e,this):M},this.endSymbol=function(e){return e?(k=e,this):k},this.$get=["$parse","$exceptionHandler","$sce",function(y,$,E){var w=M.length,_=k.length,t=new RegExp(M.replace(/./g,e),"g"),n=new RegExp(k.replace(/./g,e),"g");function e(e){return"\\\\\\"+e}function C(e){return e.replace(t,M).replace(n,k)}function x(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(M)){if(e)return;var t=C(i);a&&(t=E.getTrusted(r,t));var n=N(t);return n.exp=i,n.expressions=[],n.$$watchDelegate=x,n}o=!!o;for(var s,c,u,l,d,f=0,h=[],m=i.length,p=[],g=[];f<m;){if(-1===(s=i.indexOf(M,f))||-1===(c=i.indexOf(k,s+w))){f!==m&&p.push(C(i.substring(f)));break}f!==s&&p.push(C(i.substring(f,s))),l=i.substring(s+w,c),h.push(l),f=c+_,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&&!O(e)?e:Ue(e)}catch(e){$(Jn.interr(i,e))}};if(u=h.map(function(e){return y(e,v)}),!e||h.length){var b=function(e){for(var t=0,n=h.length;t<n;t++){if(o&&we(e[t]))return;p[g[t]]=e[t]}return a?E.getTrusted(r,d?p[0]:p.join("")):(r&&1<p.length&&Jn.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]=u[t](e);return b(r)}catch(e){$(Jn.interr(i,e))}},{exp:i,expressions:h,$$watchDelegate:function(r,i){var o;return r.$watchGroup(u,function(e,t){var n=b(e);i.call(this,n,e!==t?o:n,r),o=n})}})}}return r.startSymbol=function(){return M},r.endSymbol=function(){return k},r}]}Jn.throwNoconcat=function(e){throw Jn("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)},Jn.interr=function(e,t){return Jn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var tr=T("$interval");function nr(){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 tr("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 Gr(n.promise),n.reject("canceled"),r(t),!0},t}]}function rr(){this.$get=["$browser","$q","$$q","$rootScope",function(h,m,p,g){return function(d,f){return function(e,t,n,r){var i=4<arguments.length,o=i?Re(arguments,4):[],a=0,s=O(r)&&!r,c=(s?p:m).defer(),u=c.promise;function l(){i?e.apply(null,o):e(a)}return n=O(n)?n:0,u.$$intervalId=d(function(){s?h.defer(l):g.$evalAsync(l),c.notify(a++),0<n&&n<=a&&(c.resolve(a),f(u.$$intervalId)),s||g.$apply()},t,c,s),u}}}]}var ir=function(){this.$get=function(){var o=y.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]}}}},or=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ar={http:80,https:443,ftp:21},sr=T("$location");function cr(e,t,n){var r,i=(r=[],ve(t,function(e,t){xe(e)?ve(e,function(e){r.push(Q(t,!0)+(!0===e?"":"="+Q(e,!0)))}):r.push(Q(t,!0)+(!0===e?"":"="+Q(e,!0)))}),r.length?r.join("&"):""),o=n?"#"+X(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=X(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(i?"?"+i:"")+o}function ur(e,t){var n=vi(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=$(n.port)||ar[n.protocol]||null}var lr=/^\s*[\\/]{2,}/;function dr(e,t,n){if(lr.test(e))throw sr("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=vi(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=Z(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function fr(e,t){return e.slice(0,t.length)===t}function hr(e,t){if(fr(t,e))return t.substr(e.length)}function mr(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function pr(o,a,s){this.$$html5=!0,s=s||"",ur(o,this),this.$$parse=function(e){var t=hr(a,e);if(!Ce(t))throw sr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,a);dr(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):(O(n=hr(o,e))?(r=n,i=s&&O(n=hr(s,n))?a+(hr("/",n)||n):o+r):O(n=hr(a,e))?i=a+n:a===e+"/"&&(i=a),i&&this.$$parse(i),!!i);var n,r,i}}function gr(r,i,o){ur(r,this),this.$$parse=function(e){var t,n=hr(r,e)||hr(i,e);we(n)||"#"!==n.charAt(0)?this.$$html5?t=n:(t="",we(n)&&(r=e,this.replace())):we(t=hr(o,n))&&(t=n),dr(t,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;fr(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 mr(r)===mr(e)&&(this.$$parse(e),!0)}}function vr(i,o,a){this.$$html5=!0,gr.apply(this,arguments),this.$$parseLinkUrl=function(e,t){return t&&"#"===t[0]?(this.hash(t.slice(1)),!0):(i===mr(e)?n=e:(r=hr(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 br={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=cr(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:yr("$$absUrl"),url:function(e){if(we(e))return this.$$url;var t=or.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:yr("$$protocol"),host:yr("$$host"),port:yr("$$port"),path:$r("$$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(Ce(n)||_(n))n=n.toString(),this.$$search=Z(n);else{if(!_e(n))throw sr("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:we(e)||null===e?delete this.$$search[n]:this.$$search[n]=e}return this.$$compose(),this},hash:$r("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};function yr(e){return function(){return this[e]}}function $r(t,n){return function(e){return we(e)?this[t]:(this[t]=n(e),this.$$compose(),this)}}function Er(){var v="!",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return O(e)?(v=e,this):v},this.html5Mode=function(e){return Ae(e)?(b.enabled=e,this):_e(e)?(Ae(e.enabled)&&(b.enabled=e.enabled),Ae(e.requireBase)&&(b.requireBase=e.requireBase),(Ae(e.rewriteLinks)||Ce(e.rewriteLinks))&&(b.rewriteLinks=e.rewriteLinks),this):b},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(s,c,u,o,e){var l,t,n,r,i=c.baseHref(),a=c.url();if(b.enabled){if(!i&&b.requireBase)throw sr("nobase","$location in HTML5 mode requires a <base> tag to be present!");n=(r=a).substring(0,r.indexOf("/",r.indexOf("//")+2))+(i||"/"),t=u.history?pr:vr}else n=mr(a),t=gr;var d,f=(d=n).substr(0,mr(d).lastIndexOf("/")+1);(l=new t(n,f,"#"+v)).$$parseLinkUrl(a,a),l.$$state=c.state();var h=/^\s*(javascript|mailto):/i;function m(e,t,n){var r=l.url(),i=l.$$state;try{c.url(e,t,n),l.$$state=c.state()}catch(e){throw l.url(r),l.$$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"!==Ne(n[0]);)if(n[0]===o[0]||!(n=n.parent())[0])return;if(!Ce(t)||!we(n.attr(t))){var r=n.prop("href"),i=n.attr("href")||n.attr("xlink:href");_e(r)&&"[object SVGAnimatedString]"===r.toString()&&(r=vi(r.animVal).href),h.test(r)||!r||n.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(r,i)&&(e.preventDefault(),l.absUrl()!==c.url()&&s.$apply())}}}),l.absUrl()!==a&&c.url(l.absUrl(),!0);var p=!0;return c.onUrlChange(function(r,i){fr(r,f)?(s.$evalAsync(function(){var e,t=l.absUrl(),n=l.$$state;l.$$parse(r),l.$$state=i,e=s.$broadcast("$locationChangeStart",r,t,i,n).defaultPrevented,l.absUrl()===r&&(e?(l.$$parse(t),m(t,!1,l.$$state=n)):(p=!1,g(t,n)))}),s.$$phase||s.$digest()):e.location.href=r}),s.$watch(function(){if(p||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var n=c.url(),e=l.absUrl(),r=c.state(),i=l.$$replace,o=!((t=n)===(a=e)||vi(t).href===vi(a).href)||l.$$html5&&u.history&&r!==l.$$state;(p||o)&&(p=!1,s.$evalAsync(function(){var e=l.absUrl(),t=s.$broadcast("$locationChangeStart",e,n,l.$$state,r).defaultPrevented;l.absUrl()===e&&(t?(l.$$parse(n),l.$$state=r):(o&&m(e,i,r===l.$$state?null:l.$$state),g(n,r)))}))}var t,a;l.$$replace=!1}),l;function g(e,t){s.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}}]}function wr(){var r=!0,o=this;this.debugEnabled=function(e){return O(e)?(r=e,this):r},this.$get=["$window",function(n){var e,i=fe||/\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||$e;return function(){var n=[];return ve(arguments,function(e){var t;n.push((Me(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([vr,gr,pr],function(t){t.prototype=Object.create(br),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==pr||!this.$$html5)throw sr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=we(e)?null:e,this.$$urlUpdatedByLocation=!0,this}});var _r=T("$parse"),Cr={}.constructor.prototype.valueOf;function xr(e){return e+""}var Mr=Fe();ve("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Mr[e]=!0});var kr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Tr=function(e){this.options=e};Tr.prototype={constructor:Tr,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=Mr[t],o=Mr[n],a=Mr[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=O(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw _r("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+=kr[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 Ar=function(e,t){this.lexer=e,this.options=t};function Sr(e,t){return void 0!==e?e:t}function Nr(e,t){return void 0===e?t:void 0===t?e:e+t}Ar.Program="Program",Ar.ExpressionStatement="ExpressionStatement",Ar.AssignmentExpression="AssignmentExpression",Ar.ConditionalExpression="ConditionalExpression",Ar.LogicalExpression="LogicalExpression",Ar.BinaryExpression="BinaryExpression",Ar.UnaryExpression="UnaryExpression",Ar.CallExpression="CallExpression",Ar.MemberExpression="MemberExpression",Ar.Identifier="Identifier",Ar.Literal="Literal",Ar.ArrayExpression="ArrayExpression",Ar.Property="Property",Ar.ObjectExpression="ObjectExpression",Ar.ThisExpression="ThisExpression",Ar.LocalsExpression="LocalsExpression",Ar.NGValueParameter="NGValueParameter",Ar.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:Ar.Program,body:e}},expressionStatement:function(){return{type:Ar.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(!Hr(e))throw _r("lval","Trying to assign a value to a non l-value");e={type:Ar.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:Ar.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ar.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ar.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ar.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ar.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ar.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ar.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ar.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:Ar.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:Ar.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ar.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ar.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Ar.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:Ar.Identifier,name:e.text}},constant:function(){return{type:Ar.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:Ar.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ar.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:Ar.ObjectExpression,properties:t}},throwError:function(e,t){throw _r("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 _r("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 _r("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:Ar.ThisExpression},$locals:{type:Ar.LocalsExpression}}};var Or=1,Dr=2;function Ir(e,t,n){var r,i,o,a,s,c=e.isPure=function(e,t){switch(e.type){case Ar.MemberExpression:if(e.computed)return!1;break;case Ar.UnaryExpression:return Or;case Ar.BinaryExpression:return"+"!==e.operator&&Or;case Ar.CallExpression:return!1}return void 0===t?Dr:t}(e,n);switch(e.type){case Ar.Program:r=!0,ve(e.body,function(e){Ir(e.expression,t,c),r=r&&e.expression.constant}),e.constant=r;break;case Ar.Literal:e.constant=!0,e.toWatch=[];break;case Ar.UnaryExpression:Ir(e.argument,t,c),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ar.BinaryExpression:Ir(e.left,t,c),Ir(e.right,t,c),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ar.LogicalExpression:Ir(e.left,t,c),Ir(e.right,t,c),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ar.ConditionalExpression:Ir(e.test,t,c),Ir(e.alternate,t,c),Ir(e.consequent,t,c),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ar.Identifier:e.constant=!1,e.toWatch=[e];break;case Ar.MemberExpression:Ir(e.object,t,c),e.computed&&Ir(e.property,t,c),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Ar.CallExpression:o=!!e.filter&&(a=t,s=e.callee.name,!a(s).$stateful),r=o,i=[],ve(e.arguments,function(e){Ir(e,t,c),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=o?i:[e];break;case Ar.AssignmentExpression:Ir(e.left,t,c),Ir(e.right,t,c),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ar.ArrayExpression:r=!0,i=[],ve(e.elements,function(e){Ir(e,t,c),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case Ar.ObjectExpression:r=!0,i=[],ve(e.properties,function(e){Ir(e.value,t,c),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(Ir(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case Ar.ThisExpression:case Ar.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Rr(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 Hr(e){return e.type===Ar.Identifier||e.type===Ar.MemberExpression}function Pr(e){if(1===e.body.length&&Hr(e.body[0].expression))return{type:Ar.AssignmentExpression,left:e.body[0].expression,right:{type:Ar.NGValueParameter},operator:"="}}function Lr(e){this.$filter=e}function jr(e){this.$filter=e}function Fr(e,t,n){this.ast=new Ar(e,n),this.astCompiler=n.csp?new jr(t):new Lr(t)}function Ur(e){return ke(e.valueOf)?e.valueOf():Cr.call(e)}function Vr(){var s,c,u=Fe(),l={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){l[e]=t},this.setIdentifierFns=function(e,t){return s=e,c=t,this},this.$get=["$filter",function(i){var o={csp:j().noUnsafeEval,literals:L(l),isIdentifierStart:ke(s)&&s,isIdentifierContinue:ke(c)&&c};return e.$$getAst=function(e){return new Fr(new Tr(o),i,o).getAst(e).ast},e;function e(e,t){var n,r;switch(typeof e){case"string":if(e=e.trim(),!(n=u[r=e]))n=new Fr(new Tr(o),i,o).parse(e),u[r]=m(n);return a(n,t);case"function":return a(e,t);default:return a($e,t)}}function f(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Ur(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=f;return s=s[0],e.$watch(function(e){var t=s(e);return f(t,i,s.isPure)||(a=o(e,void 0,void 0,[t]),i=t&&Ur(t)),a},t,n,r)}for(var c=[],u=[],l=0,d=s.length;l<d;l++)c[l]=f,u[l]=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=!f(i,c[n],s[n].isPure)))&&(u[n]=i,c[n]=i&&Ur(i))}return t&&(a=o(e,void 0,void 0,u)),a},t,n,r)}function n(e,t,n,r,i){var o,a,s=r.literal?h:O,c=r.$$intercepted||r,u=r.$$interceptor||Ee,l=r.inputs&&!c.inputs;return f.literal=r.literal,f.constant=r.constant,f.inputs=r.inputs,m(f),o=e.$watch(f,t,n,i);function d(){s(a)&&o()}function f(e,t,n,r){return a=l&&r?r[0]:c(e,t,n,r),s(a)&&e.$$postDigest(d),u(a)}}function h(e){var t=!0;return ve(e,function(e){O(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 m(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===Dr?function(e){return t(e)}:t}))),m(e)}}]}function qr(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(t,e){return zr(function(e){t.$evalAsync(e)},e,n)}],this.errorOnUnhandledRejections=function(e){return O(e)?(n=e,this):n}}function Br(){var n=!0;this.$get=["$browser","$exceptionHandler",function(t,e){return zr(function(e){t.defer(e)},e,n)}],this.errorOnUnhandledRejections=function(e){return O(e)?(n=e,this):n}}function zr(a,s,c){var n=T("$q",TypeError),u=0,r=[];function i(){return new e}function e(){var t=this.promise=new o;this.resolve=function(e){f(t,e)},this.reject=function(e){h(t,e)},this.notify=function(e){p(t,e)}}function o(){this.$$state={status:0}}function l(){for(;!u&&r.length;){var e=r.shift();if(!Wr(e)){Yr(e);var t="Possibly unhandled rejection: "+Ge(e.value);Me(e.value)?s(e.value,t):s(t)}}}function d(e){!c||e.pending||2!==e.status||Wr(e)||(0===u&&0===r.length&&a(l),r.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++u,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){Yr(e),n=r[i][0],t=r[i][e.status];try{ke(t)?f(n,t(e.value)):1===e.status?f(n,e.value):h(n,e.value)}catch(e){h(n,e),e&&!0===e.$$passToExceptionHandler&&s(e)}}}finally{--u,c&&0===u&&a(l)}}(e)}))}function f(e,t){e.$$state.status||(t===e?m(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{(_e(e)||ke(e))&&(r=e.then),ke(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,m(n,e))}function s(e){p(n,e)}}(e,t))}function h(e,t){e.$$state.status||m(e,t)}function m(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,ke(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{ke(n)&&(r=n())}catch(e){return g(e)}return k(r)?r.then(function(){return t(e)},g):t(e)}function b(e,t,n,r){var i=new o;return f(i,e),i.then(t,n,r)}be(o.prototype,{then:function(e,t,n){if(we(e)&&we(t)&&we(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,y,t)},function(e){return v(e,g,t)},e)}});var y=b;function t(e){if(!ke(e))throw n("norslvr","Expected resolverFn, got '{0}'",e);var t=new o;return e(function(e){f(t,e)},function(e){h(t,e)}),t}return t.prototype=o.prototype,t.defer=i,t.reject=g,t.when=b,t.resolve=y,t.all=function(e){var n=new o,r=0,i=xe(e)?[]:{};return ve(e,function(e,t){r++,b(e).then(function(e){i[t]=e,--r||f(n,i)},function(e){h(n,e)})}),0===r&&f(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 Wr(e){return!!e.pur}function Yr(e){e.pur=!0}function Gr(e){e.$$state&&Yr(e.$$state)}function Kr(){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 C=10,x=T("$rootScope"),M=null,k=null;this.digestTtl=function(e){return arguments.length&&(C=e),C},this.$get=["$exceptionHandler","$parse","$browser",function(h,m,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=m(e),o=ke(t)?t:$e;if(i.$$watchDelegate)return i.$$watchDelegate(this,o,n,i,e);var a=this,s=a.$$watchers,c={fn:o,last:w,get:i,exp:r||e,eq:!!n};return M=null,s||((s=a.$$watchers=[]).$$digestWatchIndex=-1),s.unshift(c),s.$$digestWatchIndex++,u(this,1),function(){var e=Oe(s,c);0<=e&&(u(a,-1),e<s.$$digestWatchIndex&&s.$$digestWatchIndex--),M=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 u(){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(u))});a.push(n)}),function(){for(;a.length;)a.shift()()}},$watchCollection:function(e,n){h.$$pure=m(e).literal,h.$stateful=!h.$$pure;var a,s,r,i=this,o=1<n.length,c=0,t=m(e,h),u=[],l={},d=!0,f=0;function h(e){var t,n,r,i;if(!we(a=e)){if(_e(a))if(R(a)){s!==u&&(f=(s=u).length=0,c++),t=a.length,f!==t&&(c++,s.length=f=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!==l&&(s=l={},f=0,c++),t=0,a)me.call(a,n)&&(t++,r=a[n],i=s[n],n in s?i!=i&&r!=r||i===r||(c++,s[n]=r):(f++,s[n]=r,c++));if(t<f)for(n in c++,s)me.call(a,n)||(f--,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(_e(a))if(R(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)me.call(a,t)&&(r[t]=a[t]);else r=a})},$digest:function(){var e,t,n,r,i,o,a,s,c,u=C,l=v.length?g:this,d=[];$("$digest"),p.$$checkUrlChange(),this===g&&null!==k&&(p.defer.cancel(k),_()),M=null;do{i=!1,a=l;for(var f=0;f<v.length;f++){try{(0,(c=v[f]).fn)(c.scope,c.locals)}catch(e){h(e)}M=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===M){i=!1;break e}}else i=!0,(M=e).last=e.eq?L(t,null):t,(0,e.fn)(t,n===w?t:n,a),u<5&&(d[s=4-u]||(d[s]=[]),d[s].push({msg:ke(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!==l&&a.$$nextSibling))for(;a!==l&&!(o=a.$$nextSibling);)a=a.$parent}while(a=o);if((i||v.length)&&!u--)throw E(),x("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",C,d)}while(i||v.length);for(E();y<b.length;)try{b[y++]()}catch(e){h(e)}b.length=y=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(),u(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=$e,this.$on=this.$watch=this.$watchGroup=function(){return $e},this.$$listeners={},this.$$nextSibling=null,function e(t){9===fe&&(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 m(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:m(e),locals:t})},$$postDigest:function(e){b.push(e)},$apply:function(e){try{$("$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=m(e),null===k&&(k=p.defer(function(){g.$apply(_)},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},u=U([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,u)}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,u=U([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,u)}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=[],y=0;return g;function $(e){if(g.$$phase)throw x("inprog","{0} already in progress",g.$$phase);g.$$phase=e}function E(){g.$$phase=null}function u(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 w(){}function _(){for(;n.length;)try{n.shift()()}catch(e){h(e)}k=null}}]}function Xr(){var i=/^\s*(https?|s?ftp|mailto|tel|file):/,o=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return O(e)?(i=e,this):i},this.imgSrcSanitizationTrustedUrlList=function(e){return O(e)?(o=e,this):o},this.$get=function(){return function(e,t){var n=t?o:i,r=vi(e&&e.trim()).href;return""===r||r.match(n)?e:"unsafe:"+r}}}Lr.prototype={compile:function(e){var i=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ir(e,i.$filter);var t,n="";if(this.stage="assign",t=Pr(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=Rr(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,xr,Sr,Nr);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,u,l,d=this;if(r=r||$e,!o&&O(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 Ar.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 Ar.Literal:u=this.escape(n.value),this.assign(t,u),r(t||u);break;case Ar.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(e){s=e}),u=n.operator+"("+this.ifDefined(s,0)+")",this.assign(t,u),r(u);break;case Ar.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}),u="+"===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,u),r(u);break;case Ar.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 Ar.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 Ar.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 Ar.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),"{}")),u=d.computedMember(a,s),d.assign(t,u),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),"{}")),u=d.nonComputedMember(a,n.property.name),d.assign(t,u),e&&(e.computed=!1,e.name=n.property.name))},function(){d.assign(t,"undefined")}),r(t)},!!i);break;case Ar.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)}),u=s+"("+c.join(",")+")",d.assign(t,u),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)})}),u=a.name?d.member(a.context,a.name,a.computed)+"("+c.join(",")+")":s+"("+c.join(",")+")",d.assign(t,u)},function(){d.assign(t,"undefined")}),r(t)}));break;case Ar.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),u=d.member(a.context,a.name,a.computed)+n.operator+s,d.assign(t,u),r(t||u)})},1);break;case Ar.ArrayExpression:c=[],ve(n.elements,function(e){d.recurse(e,n.constant?void 0:d.nextId(),void 0,function(e){c.push(e)})}),u="["+c.join(",")+"]",this.assign(t,u),r(t||u);break;case Ar.ObjectExpression:l=!(c=[]),ve(n.properties,function(e){e.computed&&(l=!0)}),l?(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===Ar.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===Ar.Identifier?t.key.name:""+t.key.value)+":"+e)})}),u="{"+c.join(",")+"}",this.assign(t,u)),r(t||u);break;case Ar.ThisExpression:this.assign(t,"s"),r(t||"s");break;case Ar.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case Ar.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(Ce(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(_(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw _r("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]}},jr.prototype={compile:function(e){var t,r,i=this;Ir(e,i.$filter),(t=Pr(e))&&(r=this.recurse(t));var o,n=Rr(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?$e: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,u,l,n=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ar.Literal:return this.value(e.value,c);case Ar.UnaryExpression:return u=this.recurse(e.argument),this["unary"+e.operator](u,c);case Ar.BinaryExpression:case Ar.LogicalExpression:return a=this.recurse(e.left),u=this.recurse(e.right),this["binary"+e.operator](a,u,c);case Ar.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),c);case Ar.Identifier:return n.identifier(e.name,c,t);case Ar.MemberExpression:return a=this.recurse(e.object,!1,!!t),e.computed||(u=e.property.name),e.computed&&(u=this.recurse(e.property)),e.computed?this.computedMember(a,u,c,t):this.nonComputedMember(a,u,c,t);case Ar.CallExpression:return l=[],ve(e.arguments,function(e){l.push(n.recurse(e))}),e.filter&&(u=this.$filter(e.callee.name)),e.filter||(u=this.recurse(e.callee,!0)),e.filter?function(e,t,n,r){for(var i=[],o=0;o<l.length;++o)i.push(l[o](e,t,n,r));var a=u.apply(void 0,i,r);return c?{context:void 0,name:void 0,value:a}:a}:function(e,t,n,r){var i,o=u(e,t,n,r);if(null!=o.value){for(var a=[],s=0;s<l.length;++s)a.push(l[s](e,t,n,r));i=o.value.apply(o.context,a)}return c?{value:i}:i};case Ar.AssignmentExpression:return a=this.recurse(e.left,!0,1),u=this.recurse(e.right),function(e,t,n,r){var i=a(e,t,n,r),o=u(e,t,n,r);return i.context[i.name]=o,c?{value:o}:o};case Ar.ArrayExpression:return l=[],ve(e.elements,function(e){l.push(n.recurse(e))}),function(e,t,n,r){for(var i=[],o=0;o<l.length;++o)i.push(l[o](e,t,n,r));return c?{value:i}:i};case Ar.ObjectExpression:return l=[],ve(e.properties,function(e){e.computed?l.push({key:n.recurse(e.key),computed:!0,value:n.recurse(e.value)}):l.push({key:e.key.type===Ar.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<l.length;++o)l[o].computed?i[l[o].key(e,t,n,r)]=l[o].value(e,t,n,r):i[l[o].key]=l[o].value(e,t,n,r);return c?{value:i}:i};case Ar.ThisExpression:return function(e){return c?{value:e}:e};case Ar.LocalsExpression:return function(e,t){return c?{value:t}:t};case Ar.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=O(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=O(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=Nr(o(e,t,n,r),a(e,t,n,r));return s?{value:i}:i}},"binary-":function(s,c,u){return function(e,t,n,r){var i=s(e,t,n,r),o=c(e,t,n,r),a=(O(i)?i:0)-(O(o)?o:0);return u?{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,u,l){return function(e,t,n,r){var i,o,a=s(e,t,n,r);return null!=a&&(i=xr(i=c(e,t,n,r)),l&&1!==l&&a&&!a[i]&&(a[i]={}),o=a[i]),u?{context:a,name:i,value:o}:o}},nonComputedMember:function(a,s,c,u){return function(e,t,n,r){var i=a(e,t,n,r);u&&1!==u&&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)}}},Fr.prototype={constructor:Fr,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===Ar.Literal||t.body[0].expression.type===Ar.ArrayExpression||t.body[0].expression.type===Ar.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 Qr=T("$sce"),Jr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ei=/_([a-z])/g;function ti(e){return e.replace(ei,nt)}function ni(e){var t=[];return O(e)&&ve(e,function(e){t.push(function(e){if("self"===e)return e;if(Ce(e)){if(-1<e.indexOf("***"))throw Qr("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=I(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(x(e))return new RegExp("^"+e.source+"$");throw Qr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))}),t}function ri(){this.SCE_CONTEXTS=Jr;var s=["self"],c=[];this.trustedResourceUrlList=function(e){return arguments.length&&(s=ni(e)),s},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(c=ni(e)),c},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(e,r){var i=function(e){throw Qr("unsafe","Attempting to use an unsafe value in a safe context.")};function o(e,t){return"self"===e?bi(t,pi)||bi(t,de.document.baseURI?de.document.baseURI:(hi||((hi=de.document.createElement("a")).href=".",hi=hi.cloneNode(!1)),hi.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[Jr.HTML]=t(n),a[Jr.CSS]=t(n),a[Jr.MEDIA_URL]=t(n),a[Jr.URL]=t(a[Jr.MEDIA_URL]),a[Jr.JS]=t(n),a[Jr.RESOURCE_URL]=t(a[Jr.URL]),{trustAs:function(e,t){var n=a.hasOwnProperty(e)?a[e]:null;if(!n)throw Qr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||we(t)||""===t)return t;if("string"!=typeof t)throw Qr("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||we(t)||""===t)return t;var n=a.hasOwnProperty(e)?a[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(ke(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===Jr.MEDIA_URL||e===Jr.URL)return r(t.toString(),e===Jr.MEDIA_URL);if(e===Jr.RESOURCE_URL){if(function(e){var t,n,r=vi(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 Qr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===Jr.HTML)return i(t);throw Qr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof n?e.$$unwrapTrustedValue():e}}}]}function ii(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(r,e){if(t&&fe<8)throw Qr("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(Jr);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(Jr,function(t,e){var n=pe(e);i[ti("parse_as_"+n)]=function(e){return o(t,e)},i[ti("get_trusted_"+n)]=function(e){return a(t,e)},i[ti("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function oi(){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=$((/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,u=!1;return s&&(c=!!("transition"in s||"webkitTransition"in s),u=!!("animation"in s||"webkitAnimation"in s)),{history:!(!r||i<4||o),hasEvent:function(e){if("input"===e&&fe)return!1;if(we(n[e])){var t=a.createElement("div");n[e]="on"+e in t}return n[e]},csp:j(),transitions:c,animations:u,android:i}}]}function ai(){this.$get=N(function(e){return new si(e)})}function si(s){var c={},r=[],u=this.ALL_TASKS_TYPE="$$all$$",l=this.DEFAULT_TASK_TYPE="$$default$$";function d(){var e=r.pop();return e&&e.cb}function f(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||l;try{e()}finally{c[a=(a=t)||l]&&(c[a]--,c[u]--);var n=c[t],r=c[u];if(!r||!n)for(var i,o=r?f:d;i=o(t);)try{i()}catch(e){s.error(e)}}var a},this.incTaskCount=function(e){c[e=e||l]=(c[e]||0)+1,c[u]=(c[u]||0)+1},this.notifyWhenNoPendingTasks=function(e,t){c[t=t||u]?r.push({type:t,cb:e}):e()}}var ci=T("$templateRequest");function ui(){var u;this.httpOptions=function(e){return e?(u=e,this):u},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(r,i,o,a,s){function c(t,n){c.totalPendingRequests++,Ce(t)&&!we(i.get(t))||(t=s.getTrustedResourceUrl(t));var e=o.defaults&&o.defaults.transformResponse;return xe(e)?e=e.filter(function(e){return e!==zn}):e===zn&&(e=null),o.get(t,be({cache:i,transformResponse:e},u)).finally(function(){c.totalPendingRequests--}).then(function(e){return i.put(t,e.data)},function(e){n||(e=ci("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 li(){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=y.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 di=T("$timeout");function fi(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(c,u,l,d,f){var h={};function e(e,t,n){ke(e)||(n=t,t=e,e=$e);var r,i=Re(arguments,3),o=O(n)&&!n,a=(o?d:l).defer(),s=a.promise;return r=u.defer(function(){try{a.resolve(e.apply(null,i))}catch(e){a.reject(e),f(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 di("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 Gr(n.promise),n.reject("canceled"),delete h[t],u.defer.cancel(t)},e}]}var hi,mi=de.document.createElement("a"),pi=vi(de.location.href);mi.href="http://[::1]";var gi="[::1]"===mi.hostname;function vi(e){if(!Ce(e))return e;var t=e;fe&&(mi.setAttribute("href",t),t=mi.href),mi.setAttribute("href",t);var n=mi.hostname;return!gi&&-1<n.indexOf(":")&&(n="["+n+"]"),{href:mi.href,protocol:mi.protocol?mi.protocol.replace(/:$/,""):"",host:mi.host,search:mi.search?mi.search.replace(/^\?/,""):"",hash:mi.hash?mi.hash.replace(/^#/,""):"",hostname:n,port:mi.port,pathname:"/"===mi.pathname.charAt(0)?mi.pathname:"/"+mi.pathname}}function bi(e,t){return e=vi(e),t=vi(t),e.protocol===t.protocol&&e.host===t.host}function yi(){this.$get=N(de)}function $i(e){var a=e[0]||{},s={},c="";function u(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=u(t.substring(0,r)),we(s[i])&&(s[i]=u(t.substring(r+1))));return s}}function Ei(){this.$get=$i}function wi(r){var i="Filter";function o(e,t){if(_e(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",Ai),o("date",Ui),o("filter",_i),o("json",Vi),o("limitTo",zi),o("lowercase",qi),o("number",Si),o("orderBy",Yi),o("uppercase",Bi)}function _i(){return function(e,t,n,r){if(!R(e)){if(null==e)return e;throw T("filter")("notarray","Expected array but received: {0}",e)}var i,o;switch(r=r||"$",xi(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=_e(t)&&r in t;!0===n?n=Ie:ke(n)||(n=function(e,t){return!we(e)&&(null===e||null===t?e===t:!(_e(t)||_e(e)&&!E(e))&&(e=pe(""+e),t=pe(""+t),-1!==e.indexOf(t)))});return function(e){return o&&!_e(e)?Ci(e,t[r],n,r,!1):Ci(e,t,n,r,i)}}(t,n,r,o);break;default:return e}return Array.prototype.filter.call(e,i)}}function Ci(e,t,n,r,i,o){var a=xi(e),s=xi(t);if("string"===s&&"!"===t.charAt(0))return!Ci(e,t.substring(1),n,r,i);if(xe(e))return e.some(function(e){return Ci(e,t,n,r,i)});switch(a){case"object":var c;if(i){for(c in e)if(c.charAt&&"$"!==c.charAt(0)&&Ci(e[c],t,n,r,!0))return!0;return!o&&Ci(e,t,n,r,!1)}if("object"!==s)return n(e,t);for(c in t){var u=t[c];if(!ke(u)&&!we(u)){var l=c===r;if(!Ci(l?e:e[c],u,n,r,l,l))return!1}}return!0;case"function":return!1;default:return n(e,t)}}function xi(e){return null===e?"null":typeof e}$i.$inject=["$document"],wi.$inject=["$provide"];var Mi=22,ki=".",Ti="0";function Ai(e){var i=e.NUMBER_FORMATS;return function(e,t,n){we(t)&&(t=i.CURRENCY_SYM),we(n)&&(n=i.PATTERNS[1].maxFrac);var r=t?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:Ni(e,i.PATTERNS[1],i.GROUP_SEP,i.DECIMAL_SEP,n).replace(r,t)}}function Si(e){var n=e.NUMBER_FORMATS;return function(e,t){return null==e?e:Ni(e,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,t)}}function Ni(e,t,n,r,i){if(!Ce(e)&&!_(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,c=Math.abs(e)+"",u="";if(a)u="∞";else{(function(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=we(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 u=1;u<a;u++)i[u]=0}if(5<=s)if(a-1<0){for(var l=0;a<l;l--)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(ki))&&(e=e.replace(ki,"")),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)===Ti;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Ti;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return Mi<n&&(t=t.splice(0,Mi-1),a=n-1,n=1),{d:t,e:a,i:n}}(c),i,t.minFrac,t.maxFrac);var l=o.d,d=o.i,f=o.e,h=[];for(s=l.reduce(function(e,t){return e&&!t},!0);d<0;)l.unshift(0),d++;0<d?h=l.splice(d,l.length):(h=l,l=[0]);var m=[];for(l.length>=t.lgSize&&m.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)m.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&m.unshift(l.join("")),u=m.join(n),h.length&&(u+=r+h.join("")),f&&(u+="e+"+f)}return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function Oi(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=Ti+e;return n&&(e=e.substr(e.length-t)),i+e}function Di(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),Oi(t,r,o,a)}}function Ii(r,i,o){return function(e,t){var n=e["get"+r]();return t[f((o?"STANDALONE":"")+(i?"SHORT":"")+r)][n]}}function Ri(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Hi(i){return function(e){var t,n=Ri(e.getFullYear()),r=+(t=e,new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay())))-+n;return Oi(1+Math.round(r/6048e5),i)}}function Pi(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}Ai.$inject=["$locale"];var Li={yyyy:Di("FullYear",4,0,!(Si.$inject=["$locale"]),!0),yy:Di("FullYear",2,0,!0,!0),y:Di("FullYear",1,0,!1,!0),MMMM:Ii("Month"),MMM:Ii("Month",!0),MM:Di("Month",2,1),M:Di("Month",1,1),LLLL:Ii("Month",!1,!0),dd:Di("Date",2),d:Di("Date",1),HH:Di("Hours",2),H:Di("Hours",1),hh:Di("Hours",2,-12),h:Di("Hours",1,-12),mm:Di("Minutes",2),m:Di("Minutes",1),ss:Di("Seconds",2),s:Di("Seconds",1),sss:Di("Milliseconds",3),EEEE:Ii("Day"),EEE:Ii("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+=Oi(Math[0<r?"floor":"ceil"](r/60),2)+Oi(Math.abs(r%60),2)},ww:Hi(2),w:Hi(1),G:Pi,GG:Pi,GGG:Pi,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},ji=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Fi=/^-?\d+$/;function Ui(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,Ce(t)&&(t=Fi.test(t)?$(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=$(t[9]+t[10]),i=$(t[9]+t[11])),o.call(n,$(t[1]),$(t[2])-1,$(t[3]));var s=$(t[4]||0)-r,c=$(t[5]||0)-i,u=$(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(n,s,c,u,l),n}return e}(t)),_(t)&&(t=new Date(t)),!C(t)||!isFinite(t.getTime()))return t;for(;e;)e=(i=ji.exec(e))?(a=U(a,i,1)).pop():(a.push(e),null);var s=t.getTimezoneOffset();return n&&(s=W(n,s),t=G(t,n,!0)),ve(a,function(e){r=Li[e],o+=r?r(t,c.DATETIME_FORMATS,s):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o}}function Vi(){return function(e,t){return we(t)&&(t=2),q(e,t)}}Ui.$inject=["$locale"];var qi=N(pe),Bi=N(f);function zi(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):$(t),S(t)?e:(_(e)&&(e=e.toString()),R(e)?(n=(n=!n||isNaN(n)?0:$(n))<0?Math.max(0,e.length+n):n,0<=t?Wi(e,n,n+t):0===n?Wi(e,t,e.length):Wi(e,Math.max(0,n+t),n)):e)}}function Wi(e,t,n){return Ce(e)?e.slice(t,n):a.call(e,t,n)}function Yi(c){return function(e,t,n,r){if(null==e)return e;if(!R(e))throw T("orderBy")("notarray","Expected array but received: {0}",e);xe(t)||(t=[t]),0===t.length&&(t=["+"]);var o=t.map(function(e){var t=1,n=Ee;if(ke(e))n=e;else if(Ce(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=ke(r)?r:l,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(ke(e.valueOf)&&u(e=e.valueOf()))return e;if(E(e)&&u(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)||l(e.tieBreaker,t.tieBreaker))*a}),e=i.map(function(e){return e.value})};function u(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function l(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&&(_e(o)&&(o=e.index),_e(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 Gi(e){return ke(e)&&(e={link:e}),e.restrict=e.restrict||"AC",N(e)}Yi.$inject=["$parse"];var Ki=N({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(Ht,function(e,r){if("multiple"!==e){var i=Mn("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(Lt,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=Mn("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),fe&&r&&t.prop(r,n[i])):"href"===a&&n.$set(i,null)})}}}]});var Xi={$addControl:$e,$getControls:N([]),$$renameControl:function(e,t){e.$name=t},$removeControl:$e,$setValidity:$e,$setDirty:$e,$setPristine:$e,$setSubmitted:$e,$$setSubmitted:$e},Qi="ng-pending",Ji="ng-submitted";function eo(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=Xi,this.$$element=e,this.$$animate=r,io(this)}eo.$inject=["$element","$attrs","$scope","$animate","$interpolate"],eo.prototype={$rollbackViewValue:function(){ve(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){ve(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){ue(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),Oe(this.$$controls,n),n.$$parentForm=Xi},$setDirty:function(){this.$$animate.removeClass(this.$$element,ta),this.$$animate.addClass(this.$$element,na),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,ta,na+" "+Ji),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!==Xi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,Ji),this.$submitted=!0,ve(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},oo({clazz:eo,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&&(Oe(r,n),0===r.length&&delete e[t])}});var to=function(n){return["$timeout","$parse",function(c,t){return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:eo,compile:function(e,t){e.addClass(ta).addClass(Jo);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?u(i.$name):$e;s&&(a(t,i),n.$observe(s,function(e){i.$name!==e&&(a(t,void 0),i.$$parentForm.$$renameControl(i,e),(a=u(i.$name))(t,i))})),e.on("$destroy",function(){i.$$parentForm.$removeControl(i),a(t,void 0),be(i,Xi)})}}}};function u(e){return""===e?t('this[""]').assign:t(e).assign||$e}}]},no=to(),ro=to(!0);function io(e){e.$$classCache={},e.$$classCache[ea]=!(e.$$classCache[Jo]=e.$$element.hasClass(Jo))}function oo(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,Jo+t,!0===n),a(e,ea+t,!1===n)}t.prototype.$setValidity=function(e,t,n){var r;we(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);ao(e[t])&&(e[t]=void 0)}(this,"$pending",e,n),Ae(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,Qi,!0),this.$valid=this.$invalid=void 0,s(this,"",null)):(a(this,Qi,!1),this.$valid=ao(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 ao(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var so=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,co=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,uo=/^(?=.{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])?)*$/,lo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,fo=/^(\d{4,})-(\d{2})-(\d{2})$/,ho=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,mo=/^(\d{4,})-W(\d\d)$/,po=/^(\d{4,})-(\d\d)$/,go=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,vo="keydown wheel mousedown",bo=Fe();ve("date,datetime-local,month,time,week".split(","),function(e){bo[e]=!0});var yo={text:function(e,t,n,r,i,o){Eo(e,t,n,r,i,o),$o(r)},date:_o("date",fo,wo(fo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":_o("datetimelocal",ho,wo(ho,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:_o("time",go,wo(go,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:_o("week",mo,function(e,t){if(C(e))return e;if(Ce(e)){mo.lastIndex=0;var n=mo.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,c=0,u=Ri(r),l=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,u.getDate()+l,o,a,s,c)}}return NaN},"yyyy-Www"),month:_o("month",po,wo(po,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,a,s){var c;if(Co(e,t,n,r,"number"),xo(r),Eo(e,t,n,r,i,o),O(n.min)||n.ngMin){var u=n.min||s(n.ngMin)(e);c=Mo(u),r.$validators.min=function(e,t){return r.$isEmpty(t)||we(c)||c<=t},n.$observe("min",function(e){e!==u&&(c=Mo(e),u=e,r.$validate())})}if(O(n.max)||n.ngMax){var l=n.max||s(n.ngMax)(e),d=Mo(l);r.$validators.max=function(e,t){return r.$isEmpty(t)||we(d)||t<=d},n.$observe("max",function(e){e!==l&&(d=Mo(e),l=e,r.$validate())})}if(O(n.step)||n.ngStep){var f=n.step||s(n.ngStep)(e),h=Mo(f);r.$validators.step=function(e,t){return r.$isEmpty(t)||we(h)||Ao(t,c||0,h)},n.$observe("step",function(e){e!==f&&(h=Mo(e),f=e,r.$validate())})}},url:function(e,t,n,r,i,o){Eo(e,t,n,r,i,o),$o(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||co.test(n)}},email:function(e,t,n,r,i,o){Eo(e,t,n,r,i,o),$o(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||uo.test(n)}},radio:function(e,n,r,i){var o=!r.ngTrim||"false"!==Se(r.ngTrim);we(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){Co(e,r,i,n,"range"),xo(n),Eo(e,r,i,n,t,o);var a=n.$$hasNativeValidators&&"range"===r[0].type,s=a?0:void 0,c=a?100:void 0,u=a?1:void 0,l=r[0].validity,d=O(i.min),f=O(i.max),h=O(i.step),m=n.$render;n.$render=a&&O(l.rangeUnderflow)&&O(l.rangeOverflow)?function(){m(),n.$setViewValue(r.val())}:m,d&&(s=Mo(i.min),n.$validators.min=a?function(){return!0}:function(e,t){return n.$isEmpty(t)||we(s)||s<=t},p("min",function(e){if(s=Mo(e),S(n.$modelValue))return;if(a){var t=r.val();t<s&&(t=s,r.val(t)),n.$setViewValue(t)}else n.$validate()}));f&&(c=Mo(i.max),n.$validators.max=a?function(){return!0}:function(e,t){return n.$isEmpty(t)||we(c)||t<=c},p("max",function(e){if(c=Mo(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&&(u=Mo(i.step),n.$validators.step=a?function(){return!l.stepMismatch}:function(e,t){return n.$isEmpty(t)||we(u)||Ao(t,s||0,u)},p("step",function(e){if(u=Mo(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=So(s,e,"ngTrueValue",n.ngTrueValue,!0),u=So(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:u})},hidden:$e,button:$e,submit:$e,reset:$e,file:$e};function $o(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function Eo(e,r,i,o,t,a){var s,c=pe(r[0].type);if(!t.android){var u=!1;r.on("compositionstart",function(){u=!0}),r.on("compositionupdate",function(e){(we(e.data)||""===e.data)&&(u=!1)}),r.on("compositionend",function(){u=!1,l()})}var l=function(e){if(s&&(a.defer.cancel(s),s=null),!u){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",l);else{var n=function(e,t,n){s||(s=a.defer(function(){s=null,t&&t.value===n||l(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",l),bo[c]&&o.$$hasNativeValidators&&c===i.type&&r.on(vo,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||l(e)})}}),o.$render=function(){var e=o.$isEmpty(o.$viewValue)?"":o.$viewValue;r.val()!==e&&r.val(e)}}function wo(o,a){return function(e,t){var n,r;if(C(e))return e;if(Ce(e)){if('"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substring(1,e.length-1)),so.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 _o(b,y,$,E){return function(e,t,n,i,r,o,a,s){Co(e,t,n,i,b),Eo(0,t,n,i,r,o);var c,u,l="time"===b||"datetimelocal"===b;if(i.$parsers.push(function(e){return i.$isEmpty(e)?null:y.test(e)?v(e,c):void(i.$$parserName=b)}),i.$formatters.push(function(e){if(e&&!C(e))throw sa("datefmt","Expected `{0}` to be a date",e);if(p(e)){c=e;var t=i.$options.getOption("timezone");return t&&(c=G(c,u=t,!0)),function(e,t){var n=E;l&&Ce(i.$options.getOption("timeSecondsFormat"))&&(n=E.replace("ss.sss",i.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var r=a("date")(e,n,t);l&&i.$options.getOption("timeStripZeroSeconds")&&(r=r.replace(/(?::00)?(?:\.000)?$/,""));return r}(e,t)}return u=c=null,""}),O(n.min)||n.ngMin){var d=n.min||s(n.ngMin)(e),f=g(d);i.$validators.min=function(e){return!p(e)||we(f)||$(e)>=f},n.$observe("min",function(e){e!==d&&(f=g(e),d=e,i.$validate())})}if(O(n.max)||n.ngMax){var h=n.max||s(n.ngMax)(e),m=g(h);i.$validators.max=function(e){return!p(e)||we(m)||$(e)<=m},n.$observe("max",function(e){e!==h&&(m=g(e),h=e,i.$validate())})}function p(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function g(e){return O(e)&&!C(e)?v(e)||void 0:e}function v(e,t){var n=i.$options.getOption("timezone");u&&u!==n&&(t=Y(t,W(u)));var r=$(e,t);return!isNaN(r)&&n&&(r=G(r,n)),r}}}function Co(e,n,t,r,i){var o=n[0];(r.$$hasNativeValidators=_e(o.validity))&&r.$parsers.push(function(e){var t=n.prop(d)||{};if(!t.badInput&&!t.typeMismatch)return e;r.$$parserName=i})}function xo(t){t.$parsers.push(function(e){return t.$isEmpty(e)?null:lo.test(e)?parseFloat(e):void(t.$$parserName="number")}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!_(e))throw sa("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function Mo(e){return O(e)&&!_(e)&&(e=parseFloat(e)),S(e)?void 0:e}function ko(e){return(0|e)===e}function To(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 Ao(e,t,n){var r=Number(e),i=!ko(r),o=!ko(t),a=!ko(n);if(i||o||a){var s=i?To(r):0,c=o?To(t):0,u=a?To(n):0,l=Math.max(s,c,u),d=Math.pow(10,l);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 So(e,t,n,r,i){var o;if(O(r)){if(!(o=e(r)).constant)throw sa("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var No=["$browser","$sniffer","$filter","$parse",function(i,o,a,s){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,t,n,r){r[0]&&(yo[pe(n.type)]||yo.text)(e,t,n,r[0],o,i,a,s)}}}}],Oo=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)}}}}},Do=/^(true|false|\d+)$/,Io=function(){function r(e,t,n){var r=O(n)?n:9===fe?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,t){return Do.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)})}}}},Ro=["$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)})}}}}],Ho=["$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=we(e)?"":e})}}}}],Po=["$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)||"")})}}}}],Lo=N({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}});function jo(i,f){var o;return i="ngClass"+i,["$parse",function(n){return{restrict:"AC",link:function(e,t,c){var u,r=t.data("$classCounts"),l=!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=Fe(),t.data("$classCounts",r)),"ngClass"!==i&&(o||(o=n("$index",function(e){return 1&e})),e.$watch(o,function(e){e===f?(n=d(m(n=u),1),c.$addClass(n)):(t=d(m(t=u),-1),c.$removeClass(t));var t;var n;l=e})),e.$watch(n(c[i],a),function(e){l===f&&(t=e,n=m(u),r=m(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;u=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 m(e){return e&&e.split(" ")}function a(t){if(!t)return t;var e=t;return xe(t)?e=t.map(a).join(" "):_e(t)?e=Object.keys(t).filter(function(e){return t[e]}).join(" "):Ce(t)||(e=t+""),e}}var Fo=jo("",!0),Uo=jo("Odd",0),Vo=jo("Even",1),qo=Gi({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Bo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],zo={},Wo={blur:!0,focus:!0};function Yo(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=Mn("ng-"+r);zo[i]=["$parse","$rootScope","$exceptionHandler",function(e,t,n){return Yo(e,t,n,i,r,Wo[r])}]});var Go=["$animate","$compile",function(c,u){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++]=u.$$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))})}}}],Ko=["$templateRequest","$anchorScroll","$animate",function(g,v,b){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:y.noop,compile:function(e,t){var n=t.ngInclude||t.src,m=t.onload||"",p=t.autoscroll;return function(a,s,e,c,u){var l,t,d,f=0,h=function(){t&&(t.remove(),t=null),l&&(l.$destroy(),l=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||!O(p)||p&&!a.$eval(p)||v()},o=++f;r?(g(r,!0).then(function(e){if(!a.$$destroyed&&o===f){var t=a.$new();c.template=e;var n=u(t,function(e){h(),b.enter(e,null,s).done(i)});d=n,(l=t).$emit("$includeContentLoaded",r),a.$eval(m)}},function(){a.$$destroyed||o===f&&(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(pt(r.template,de.document).childNodes)(e,function(e){t.append(e)},{futureParentElement:t});t.html(r.template),i(t.contents())(e)}}}],Xo=Gi({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Qo=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(!we(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(xe(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},Jo="ng-valid",ea="ng-invalid",ta="ng-pristine",na="ng-dirty",ra="ng-untouched",ia="ng-touched",oa="ng-empty",aa="ng-not-empty",sa=T("ngModel");function ca(e,t,n,r,i,o,a,s,c){var u;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=Xi,this.$options=ua,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,io(this),(u=this).$$scope.$watch(function(e){var t=u.$$ngModelGet(e);return t===u.$modelValue||u.$modelValue!=u.$modelValue&&t!=t||u.$$setModelValue(t),t})}ca.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],ca.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 ke(t)&&(t=n(e)),t},this.$$ngModelSet=function(e,t){ke(this.$$parsedNgModel(e))?r(e,{$$$p:t}):this.$$parsedNgModelAssign(e,t)}}else if(!this.$$parsedNgModel.assign)throw sa("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Pe(this.$$element))},$render:$e,$isEmpty:function(e){return we(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,aa),this.$$animate.addClass(this.$$element,oa)):(this.$$animate.removeClass(this.$$element,oa),this.$$animate.addClass(this.$$element,aa))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,na),this.$$animate.addClass(this.$$element,ta)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,ta),this.$$animate.addClass(this.$$element,na),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,ra,ia)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,ia,ra)},$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(!we(c.$$parserValid))return c.$$parserValid||(ve(c.$validators,function(e,t){u(t,null)}),ve(c.$asyncValidators,function(e,t){u(t,null)})),u(e,c.$$parserValid),c.$$parserValid;u(e,null)}return!0})()?(o=!0,ve(c.$validators,function(e,t){var n=Boolean(e(r,i));o=o&&n,u(t,n)}),o||(ve(c.$asyncValidators,function(e,t){u(t,null)}),0)?(a=[],s=!0,ve(c.$asyncValidators,function(e,t){var n=e(r,i);if(!k(n))throw sa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",n);u(t,void 0),a.push(n.then(function(){u(t,!0)},function(){u(t,s=!1)}))}),a.length?c.$$q.all(a).then(function(){e(s)},$e):e(!0)):e(!1)):e(!1);function u(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=!we(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var e=0;e<this.$parsers.length;e++)if(we(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");_(t[e])?t=t[e]:_(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:_(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,$e))},$$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)}},oo({clazz:ca,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var ua,la=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ca,priority:1,compile:function(e){return e.addClass(ta).addClass(ra).addClass(Jo),{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))})}}}}}],da=/(\s+|^)default(\s+|$)/;function fa(e){this.$$options=e}fa.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(da,function(){return n.updateOnDefault=!0," "})))},this),r&&(delete n["*"],ma(n,this.$$options)),ma(n,ua.$$options),new fa(n)}},ua=new fa({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ha=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:ua,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function ma(n,e){ve(e,function(e,t){O(n[t])||(n[t]=e)})}var pa=Gi({terminal:!0,priority:1e3}),ga=T("ngOptions"),va=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ba=["$compile","$document","$parse",function(g,v,C){var b=de.document.createElement("option"),y=de.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=$e},post:function(e,a,t,n){for(var s=n[0],c=n[1],u=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 l,d=!!s.emptyOption;he(b.cloneNode(!1)).val("?");var f=function(e,t,f){var d=e.match(va);if(!d)throw ga("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Pe(t));var n=d[5]||d[7],r=d[6],i=/ as /.test(d[0])&&d[1],h=d[9],o=C(d[2]?d[1]:n),m=i&&C(i)||o,a=h&&C(h),p=h?function(e,t){return a(f,t)}:function(e){return qt(e)},g=function(e,t){return p(e,E(e,t))},v=C(d[2]||d[1]),b=C(d[3]||""),y=C(d[4]||""),$=C(d[8]),s={},E=r?function(e,t){return s[r]=t,s[n]=e,s}:function(e){return s[n]=e,s};function w(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function _(e){var t;if(!r&&R(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:C($,function(e){for(var t=[],n=_(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 u=v(f,s);t.push(u)}if(d[4]){var l=y(f,s);t.push(l)}}return t}),getOptions:function(){for(var e=[],t={},n=$(f)||[],r=_(n),i=r.length,o=0;o<i;o++){var a=n===r?o:r[o],s=n[a],c=E(s,a),u=m(f,c),l=p(u,c),d=new w(l,u,v(f,c),b(f,c),y(f,c));e.push(d),t[l]=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 m(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=l.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}s.generateUnknownOptionValue=function(e){return"?"},u?(s.writeValue=function(e){if(l){var t=e&&e.map(p)||[];l.items.forEach(function(e){e.element.selected&&!P(t,e)&&(e.element.selected=!1)})}},s.readValue=function(){var e=a.val()||[],n=[];return ve(e,function(e){var t=l.selectValueMap[e];t&&!t.disabled&&n.push(l.getViewValueFromOption(t))}),n},f.trackBy&&e.$watchCollection(function(){if(xe(c.$viewValue))return c.$viewValue.map(function(e){return f.getTrackByValue(e)})},function(){c.$render()})):(s.writeValue=function(e){if(l){var t=a[0].options[a[0].selectedIndex],n=l.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=l.selectValueMap[a.val()];return e&&!e.disabled?(s.unselectEmptyOption(),s.removeUnknownOption(),l.getViewValueFromOption(e)):null},f.trackBy&&e.$watch(function(){return f.getTrackByValue(c.$viewValue)},function(){c.$render()})),d&&(g(s.emptyOption)(e),a.prepend(s.emptyOption),s.emptyOption[0].nodeType===Be?(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(f.getWatchables,function(){var e=l&&s.readValue();if(l)for(var t=l.items.length-1;0<=t;t--){var n=l.items[t];O(n.group)?Dt(n.element.parentNode):Dt(n.element)}l=f.getOptions();var r={};if(l.items.forEach(function(e){var t;O(e.group)?((t=r[e.group])||(t=y.cloneNode(!1),h.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),m(e,t)):m(e,h)}),a[0].appendChild(h),c.$render(),!c.$isEmpty(e)){var i=s.readValue(),o=f.trackBy||u;(o?Ie(e,i):e===i)||(c.$setViewValue(i),c.$render())}})}}}}],ya=["$locale","$interpolate","$log",function(m,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),u=a.offset||0,l=i.$eval(c)||{},d={},t=p.startSymbol(),n=p.endSymbol(),r=t+e+"-"+u+n,f=y.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]);l[r]=o.attr(a.$attr[t])}}),ve(l,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 l||(t=m.pluralCat(t-u)),!(t===s||n&&S(s))){f();var r=d[t];we(r)?(null!=e&&g.debug("ngPluralize: no rule defined for '"+t+"' in "+c),f=$e,h()):f=i.$watch(r,h),s=t}})}}}],$a=T("ngRef"),Ea=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,i){var o=Mn(Ne(e)),a=t(i.ngRef),s=a.assign||function(){throw $a("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 $a("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)})}}}}],wa=["$parse","$animate","$compile",function(s,A,c){var S="$$NG_REMOVED",N=T("ngRepeat"),O=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))},D=function(e,t,n){return qt(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 w=t.ngRepeat,_=c.$$createComment("end ngRepeat",w),n=w.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 N("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",w);var r=n[1],i=n[2],C=n[3],o=n[4];if(!(n=r.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw N("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",r);var x,M=n[3]||n[1],k=n[2];if(C&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(C)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(C)))throw N("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",C);if(o){var T={$id:qt},a=s(o);x=function(e,t,n,r){return k&&(T[k]=t),T[M]=n,T.$index=r,a(e,T)}}return function(b,y,e,t,$){var E=Fe();b.$watchCollection(i,function(e){var r,t,n,i,o,a,s,c,u,l,d,f,h,m=y[0],p=Fe();if(C&&(b[C]=e),R(e))u=e,c=x||D;else for(var g in c=x||I,u=[],e)me.call(e,g)&&"$"!==g.charAt(0)&&u.push(g);for(i=u.length,d=new Array(i),r=0;r<i;r++)if(o=e===u?r:u[r],a=e[o],s=c(b,o,a,r),E[s])l=E[s],delete E[s],p[s]=l,d[r]=l;else{if(p[s])throw ve(d,function(e){e&&e.scope&&(E[e.id]=e)}),N("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",w,s,a);d[r]={id:s,scope:void 0,clone:void 0},p[s]=!0}for(var v in T&&(T[M]=void 0),E){if(f=le((l=E[v]).clone),A.leave(f),f[0].parentNode)for(r=0,t=f.length;r<t;r++)f[r][S]=!0;l.scope.$destroy()}for(r=0;r<i;r++)if(o=e===u?r:u[r],a=e[o],(l=d[r]).scope){for(n=m;(n=n.nextSibling)&&n[S];);l.clone[0]!==n&&A.move(le(l.clone),null,m),m=(h=l).clone[h.clone.length-1],O(l.scope,r,M,a,k,o,i)}else $(function(e,t){l.scope=t;var n=_.cloneNode(!1);e[e.length++]=n,A.enter(e,null,m),m=n,l.clone=e,p[l.id]=l,O(l.scope,r,M,a,k,o,i)});E=p})}}}}],_a="ng-hide",Ca="ng-hide-animate",xa=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(e,t,n){e.$watch(n.ngShow,function(e){r[e?"removeClass":"addClass"](t,_a,{tempClasses:Ca})})}}}],Ma=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(e,t,n){e.$watch(n.ngHide,function(e){r[e?"addClass":"removeClass"](t,_a,{tempClasses:Ca})})}}}],ka=Gi(function(e,n,t){e.$watchCollection(t.ngStyle,function(e,t){t&&e!==t&&ve(t,function(e,t){n.css(t,"")}),e&&n.css(e)})}),Ta=["$animate","$compile",function(l,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=[],u=function(t,n){return function(e){!1!==e&&t.splice(n,1)}};e.$watch(r,function(e){for(var t,n;s.length;)l.cancel(s.pop());for(t=0,n=c.length;t<n;++t){var r=le(a[t].clone);c[t].$destroy(),(s[t]=l.leave(r)).done(u(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),l.enter(e,n.parent(),n)})})})}}}],Aa=Gi({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})})}}),Sa=Gi({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})}}),Na=T("ngTransclude"),Oa=["$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 Na("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Pe(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!==qe||r.nodeValue.trim())return!0}}(e)?n.append(e):(a(),t.$destroy())},null,o),o&&!i.isSlotFilled(o)&&a()}}}}],Da=["$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)}}}}],Ia={$setViewValue:$e,$render:$e};function Ra(e,t){e.prop("selected",t),e.attr("selected",t)}var Ha=["$element","$scope",function(i,t){var s=this,r=new Wt;s.selectValueMap={},s.ngModelCtrl=Ia,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),Ra(s.unknownOption,!0),i.val(t)},s.updateUnknownOption=function(e){var t=s.generateUnknownOptionValue(e);s.unknownOption.val(t),Ra(s.unknownOption,!0),i.val(t)},s.generateUnknownOptionValue=function(e){return"? "+qt(e)+" ?"},s.removeUnknownOption=function(){s.unknownOption.parent()&&s.unknownOption.remove()},s.selectEmptyOption=function(){s.emptyOption&&(i.val(""),Ra(s.emptyOption,!0))},s.unselectEmptyOption=function(){s.hasEmptyOption&&Ra(s.emptyOption,!1)},t.$on("$destroy",function(){s.renderUnknownOption=$e}),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&&Ra(he(t),!1),s.hasOption(e)){s.removeUnknownOption();var n=qt(e);i.val(n in s.selectValueMap?n:e);var r=i[0].options[i[0].selectedIndex];Ra(he(r),!0)}else s.selectUnknownOrEmptyOption(e)},s.addOption=function(e,t){if(t[0].nodeType!==Be){ue(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 u(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");O(a)&&(s.removeOption(o),delete s.selectValueMap[a],t=!0),a=qt(e),o=e,s.selectValueMap[a]=e,s.addOption(e,r),r.attr("value",a),t&&n&&u()}):t?i.$observe("value",function(e){var t;s.readValue();var n=r.prop("selected");O(o)&&(s.removeOption(o),t=!0),o=e,s.addOption(e,r),t&&n&&u()}):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&&u()}):s.addOption(i.value,r);i.$observe("disabled",function(e){("true"===e||e&&r.prop("selected"))&&(s.multiple?u(!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)&&u(!0)})}}],Pa=function(){return{restrict:"E",require:["select","?ngModel"],controller:Ha,priority:1,link:{pre:function(e,t,n,r){var i=r[0],o=r[1];if(!o)return void(i.registerOption=$e);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&&(P(r,e.value)||P(r,i.selectValueMap[e.value])),n=e.selected;t!==n&&Ra(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)}}}}},La=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(e,t){var a,s;return O(t.ngValue)||(O(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)}}}}],ja=["$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())})}}}}],Fa=["$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=qa(i,a,n);t.$observe("pattern",function(e){var t=o;o=qa(e,a,n),(t&&t.toString())!==(o&&o.toString())&&r.$validate()}),r.$validators.pattern=function(e,t){return r.$isEmpty(t)||we(o)||o.test(t)}}}}}}],Ua=["$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=Ba(i);n.$observe("maxlength",function(e){i!==e&&(o=Ba(e),i=e,r.$validate())}),r.$validators.maxlength=function(e,t){return o<0||r.$isEmpty(t)||t.length<=o}}}}}],Va=["$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=Ba(i)||-1;n.$observe("minlength",function(e){i!==e&&(o=Ba(e)||-1,i=e,r.$validate())}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=o}}}}}];function qa(e,t,n){if(e){if(Ce(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw T("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,Pe(n));return e}}function Ba(e){var t=$(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=F();(t=we(e)?de.jQuery:e?de[e]:void 0)&&t.fn.on?be((he=t).fn,{scope:Rt.scope,isolateScope:Rt.isolateScope,controller:Rt.controller,injector:Rt.injector,inheritedData:Rt.inheritedData}):he=vt,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)},y.element=he,ae=!0}}(),be(y,{errorHandlingConfig:e,bootstrap:ne,copy:L,extend:be,merge:b,equals:Ie,element:he,forEach:ve,injector:nn,noop:$e,bind:He,toJson:q,fromJson:B,identity:Ee,isUndefined:we,isDefined:O,isString:Ce,isFunction:ke,isObject:_e,isNumber:_,isElement:H,isArray:xe,version:Ke,isDate:C,callbacks:{$$counter:0},getTestability:ie,reloadWithDebugInfo:re,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:se,$$minErr:T,$$csp:j,$$encodeUriSegment:X,$$encodeUriQuery:Q,$$lowercase:pe,$$stringify:Ue,$$uppercase:f}),(v=function(e){var d=T("$injector"),f=T("ng");function t(e,t,n){return e[t]||(e[t]=n())}var n=t(e,"angular",Object);return n.$$minErr=n.$$minErr||T,t(n,"module",function(){var e={};return function(s,c,u){var l={};return function(e,t){if("hasOwnProperty"===e)throw f("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(O(e)){if(!_e(e))throw f("aobj","Argument '{0}' must be an object","value");return l=e,this}return l},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 u&&n(u),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&&ke(t)&&(t.$$moduleName=s),i.push([n,r,arguments]),a}}})}})}(de))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Xr}),e.provider("$compile",wn).directive({a:Ki,input:No,textarea:No,form:no,script:Da,select:Pa,option:La,ngBind:Ro,ngBindHtml:Po,ngBindTemplate:Ho,ngClass:Fo,ngClassEven:Vo,ngClassOdd:Uo,ngCloak:qo,ngController:Bo,ngForm:ro,ngHide:Ma,ngIf:Go,ngInclude:Ko,ngInit:Xo,ngNonBindable:pa,ngPluralize:ya,ngRef:Ea,ngRepeat:wa,ngShow:xa,ngStyle:ka,ngSwitch:Ta,ngSwitchWhen:Aa,ngSwitchDefault:Sa,ngOptions:ba,ngTransclude:Oa,ngModel:la,ngList:Qo,ngChange:Lo,pattern:Fa,ngPattern:Fa,required:ja,ngRequired:ja,minlength:Va,ngMinlength:Va,maxlength:Ua,ngMaxlength:Ua,ngValue:Io,ngModelOptions:ha}).directive({ngInclude:Zo,input:Oo}).directive(Zi).directive(zo),e.provider({$anchorScroll:rn,$animate:fn,$animateCss:pn,$$animateJs:ln,$$animateQueue:dn,$$AnimateRunner:mn,$$animateAsyncRun:hn,$browser:vn,$cacheFactory:bn,$controller:Nn,$document:On,$$isDocumentHidden:Dn,$exceptionHandler:In,$filter:wi,$$forceReflow:Rn,$interpolate:er,$interval:nr,$$intervalFactory:rr,$http:Zn,$httpParamSerializer:qn,$httpParamSerializerJQLike:Bn,$httpBackend:Qn,$xhrFactory:Xn,$jsonpCallbacks:ir,$location:Er,$log:wr,$parse:Vr,$rootScope:Zr,$q:qr,$$q:Br,$sce:ii,$sceDelegate:ri,$sniffer:oi,$$taskTrackerFactory:ai,$templateCache:yn,$templateRequest:ui,$$testability:li,$timeout:fi,$window:yi,$$rAF:Kr,$$jqLite:Vt,$$Map:Yt,$$cookieReader:Ei})}]).info({angularVersion:"1.8.2"}),y.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(window.angular.element("<style>").text('@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;}')),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("angular")):"function"==typeof define&&define.amd?define(["exports","angular"],t):t((e=e||self)["@uirouter/angularjs"]={},e.angular)}(this,function(p,e){"use strict";kr.$inject=["state"];var t=angular,_=e&&e.module?e:t,r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function u(n){return function e(){if(arguments.length>=n.length)return n.apply(this,arguments);var t=Array.prototype.slice.call(arguments);return e.bind.apply(e,r([this],t))}}function n(){var n=arguments,r=n.length-1;return function(){for(var e=r,t=n[r].apply(this,arguments);e--;)t=n[e].call(this,t);return t}}function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.apply(null,[].slice.call(arguments).reverse())}var y=function(t){return function(e){return e&&e[t]}},v=u(function(e,t,n){return n&&n[e]===t}),C=function(e){return c.apply(null,e.split(".").map(y))},d=function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,e)}};function i(n,r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.apply(null,e)&&r.apply(null,e)}}function s(n,r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.apply(null,e)||r.apply(null,e)}}var l=function(n){return function(e){return e.reduce(function(e,t){return e&&!!n(t)},!0)}},f=function(n){return function(e){return e.reduce(function(e,t){return e||!!n(t)},!1)}},h=function(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}},o=function(t){return function(e){return t===e}},m=function(e){return function(){return e}};function a(t,n){return function(e){return e[t].apply(e,n)}}function g(n){return function(e){for(var t=0;t<n.length;t++)if(n[t][0](e))return n[t][1](e)}}var b=Object.prototype.toString,$=function(t){return function(e){return typeof e===t}},E=$("undefined"),x=d(E),w=function(e){return null===e},M=s(w,E),k=$("function"),T=$("number"),A=$("string"),S=function(e){return null!==e&&"object"==typeof e},N=Array.isArray,O=function(e){return"[object Date]"===b.call(e)},D=function(e){return"[object RegExp]"===b.call(e)};function I(e){if(N(e)&&e.length){var t=e.slice(0,-1),n=e.slice(-1);return!(t.filter(d(A)).length||n.filter(d(k)).length)}return k(e)}var R=i(S,c(y("then"),k)),H=function(r,e){return e.reduce(function(e,t){return e[t]=(n=r+"."+t+"()",function(){throw new Error("No implementation for "+n+". The framework specific code did not implement this method.")}),e;var n},{})},P={$q:void 0,$injector:void 0},L=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},j="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0,F=j.angular||{},U=F.fromJson||JSON.parse.bind(JSON),V=F.toJson||JSON.stringify.bind(JSON),q=F.forEach||function(t,n,e){if(N(t))return t.forEach(n,e);Object.keys(t).forEach(function(e){return n(t[e],e)})},B=Object.assign||Se,z=F.equals||Ne;function W(e){return e}function Y(){}function G(t,r,n,e,i){void 0===i&&(i=!1);var o=function(e){return t()[e].bind(n())};return(e=e||Object.keys(t())).reduce(function(e,t){var n;return e[t]=i?(n=t,function(){return r[n]=o(n),r[n].apply(null,arguments)}):o(t),e},r)}var K=function(e,t){return B(Object.create(e),t)},Z=u(X);function X(e,t){return-1!==e.indexOf(t)}var Q=u(J);function J(e,t){var n=e.indexOf(t);return 0<=n&&e.splice(n,1),e}var ee=u(te);function te(e,t){return e.push(t),t}var ne=function(t){return t.slice().forEach(function(e){"function"==typeof e&&e(),Q(t,e)})};function re(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=B.apply(void 0,L([{}],t.reverse()));return B(r,ae(e||{},Object.keys(r)))}var ie=function(e,t){return B(e,t)};function oe(e,t){var n=[];for(var r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}function ae(e,t){var n={};for(var r in e)-1!==t.indexOf(r)&&(n[r]=e[r]);return n}function se(n,e){return Object.keys(n).filter(d(Z(e))).reduce(function(e,t){return e[t]=n[t],e},{})}function ce(e,t){return fe(e,y(t))}function ue(e,n){var t=N(e),r=t?[]:{},i=t?function(e){return r.push(e)}:function(e,t){return r[t]=e};return q(e,function(e,t){n(e,t)&&i(e,t)}),r}function le(e,n){var r;return q(e,function(e,t){r||n(e,t)&&(r=e)}),r}var de=fe;function fe(e,n,r){return r=r||(N(e)?[]:{}),q(e,function(e,t){return r[t]=n(e,t)}),r}var he=function(t){return Object.keys(t).map(function(e){return t[e]})},me=function(e,t){return e&&t},pe=function(e,t){return e||t},ge=function(e,t){return e.concat(t)},ve=function(e,t){return N(t)?e.concat(t.reduce(ve,[])):be(e,t)};function be(e,t){return e.push(t),e}var ye=function(e,t){return Z(e,t)?e:be(e,t)},$e=function(e){return e.reduce(ge,[])},Ee=function(e){return e.reduce(ve,[])},we=Ce,_e=Ce;function Ce(n,r){return void 0===r&&(r="assert failure"),function(e){var t=n(e);if(!t)throw new Error(k(r)?r(e):r);return t}}var xe=function(t){return Object.keys(t).map(function(e){return[e,t[e]]})};function Me(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return[];for(var n=e.reduce(function(e,t){return Math.min(t.length,e)},9007199254740991),r=[],i=function(t){switch(e.length){case 1:r.push([e[0][t]]);break;case 2:r.push([e[0][t],e[1][t]]);break;case 3:r.push([e[0][t],e[1][t],e[2][t]]);break;case 4:r.push([e[0][t],e[1][t],e[2][t],e[3][t]]);break;default:r.push(e.map(function(e){return e[t]}))}},o=0;o<n;o++)i(o);return r}function ke(e,t){var n,r;if(N(t)&&(n=t[0],r=t[1]),!A(n))throw new Error("invalid parameters to applyPairs");return e[n]=r,e}function Te(e){return e.length&&e[e.length-1]||void 0}function Ae(e,t){return t&&Object.keys(t).forEach(function(e){return delete t[e]}),t||(t={}),B(t,e)}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var r=Object.keys(n),i=0;i<r.length;i++)e[r[i]]=n[r[i]]}return e}function Ne(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n=typeof e;if(n!==typeof t||"object"!==n)return!1;var r,i,o=[e,t];if(l(N)(o))return i=t,(r=e).length===i.length&&Me(r,i).reduce(function(e,t){return e&&Ne(t[0],t[1])},!0);if(l(O)(o))return e.getTime()===t.getTime();if(l(D)(o))return e.toString()===t.toString();if(l(k)(o))return!0;if([k,N,O,D].map(f).reduce(function(e,t){return e||!!t(o)},!1))return!1;var a={};for(var s in e){if(!Ne(e[s],t[s]))return!1;a[s]=!0}for(var s in t)if(!a[s])return!1;return!0}var Oe,De=function(e){return e.catch(function(e){return 0})&&e},Ie=function(e){return De(P.$q.reject(e))},Re=function(){function t(e){this.text=e,this.glob=e.split(".");var t=this.text.split(".").map(function(e){return"**"===e?"(?:|(?:\\.[^.]*)*)":"*"===e?"\\.[^.]*":"\\."+e}).join("");this.regexp=new RegExp("^"+t+"$")}return t.is=function(e){return!!/[!,*]+/.exec(e)},t.fromString=function(e){return t.is(e)?new t(e):null},t.prototype.matches=function(e){return this.regexp.test("."+e)},t}(),He=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=null),this._items=e,this._limit=t,this._evictListeners=[],this.onEvict=ee(this._evictListeners)}return e.prototype.enqueue=function(e){var t=this._items;return t.push(e),this._limit&&t.length>this._limit&&this.evict(),e},e.prototype.evict=function(){var t=this._items.shift();return this._evictListeners.forEach(function(e){return e(t)}),t},e.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},e.prototype.clear=function(){var e=this._items;return this._items=[],e},e.prototype.size=function(){return this._items.length},e.prototype.remove=function(e){var t=this._items.indexOf(e);return-1<t&&this._items.splice(t,1)[0]},e.prototype.peekTail=function(){return this._items[this._items.length-1]},e.prototype.peekHead=function(){if(this.size())return this._items[0]},e}();(Oe=p.RejectType||(p.RejectType={}))[Oe.SUPERSEDED=2]="SUPERSEDED",Oe[Oe.ABORTED=3]="ABORTED",Oe[Oe.INVALID=4]="INVALID",Oe[Oe.IGNORED=5]="IGNORED",Oe[Oe.ERROR=6]="ERROR";var Pe=0,Le=function(){function r(e,t,n){this.$id=Pe++,this.type=e,this.message=t,this.detail=n}return r.isRejectionPromise=function(e){return e&&"function"==typeof e.then&&h(r)(e._transitionRejection)},r.superseded=function(e,t){var n=new r(p.RejectType.SUPERSEDED,"The transition has been superseded by a different transition",e);return t&&t.redirected&&(n.redirected=!0),n},r.redirected=function(e){return r.superseded(e,{redirected:!0})},r.invalid=function(e){return new r(p.RejectType.INVALID,"This transition is invalid",e)},r.ignored=function(e){return new r(p.RejectType.IGNORED,"The transition was ignored",e)},r.aborted=function(e){return new r(p.RejectType.ABORTED,"The transition has been aborted",e)},r.errored=function(e){return new r(p.RejectType.ERROR,"The transition errored",e)},r.normalize=function(e){return h(r)(e)?e:r.errored(e)},r.prototype.toString=function(){var e,t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():We(e);return"Transition Rejection($id: "+this.$id+" type: "+this.type+", message: "+this.message+", detail: "+t+")"},r.prototype.toPromise=function(){return B(Ie(this),{_transitionRejection:this})},r}();function je(e,t){return t.length<=e?t:t.substr(0,e-3)+"..."}function Fe(e,t){for(;t.length<e;)t+=" ";return t}function Ue(e){return e.replace(/^([A-Z])/,function(e){return e.toLowerCase()}).replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function Ve(e){var t=qe(e),n=t.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:t,i=e.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function qe(e){var t=N(e)?e.slice(-1)[0]:e;return t&&t.toString()||"undefined"}var Be=Le.isRejectionPromise,ze=g([[E,m("undefined")],[w,m("null")],[R,m("[Promise]")],[Be,function(e){return e._transitionRejection.toString()}],[function(e){return S(e)&&!N(e)&&e.constructor!==Object&&k(e.toString)},function(e){return e.toString()}],[I,Ve],[m(!0),W]]);function We(e){var t=[];function n(e){if(S(e)){if(-1!==t.indexOf(e))return"[circular ref]";t.push(e)}return ze(e)}return E(e)?n(e):JSON.stringify(e,function(e,t){return n(t)}).replace(/\\"/g,'"')}var Ye=function(n){return function(e){if(!e)return["",""];var t=e.indexOf(n);return-1===t?[e,""]:[e.substr(0,t),e.substr(t+1)]}},Ge=new RegExp("^(?:[a-z]+:)?//[^/]+/"),Ke=function(e){return e.replace(/\/[^/]*$/,"")},Ze=Ye("#"),Xe=Ye("?"),Qe=Ye("="),Je=function(e){return e?e.replace(/^#/,""):""};function et(e){var t=new RegExp("("+e+")","g");return function(e){return e.split(t).filter(W)}}function tt(e,t){return A(Te(e))&&A(t)?e.slice(0,-1).concat(Te(e)+t):be(e,t)}var nt={log:Y,error:Y,table:Y};var rt,it,ot,at,st="undefined"!=typeof document&&document.documentMode&&9===document.documentMode?window&&window.console?(ot=window.console,{log:(at=function(e){return Function.prototype.bind.call(e,ot)})(ot.log),error:at(ot.log),table:at(ot.log)}):nt:console.table&&console.error?console:(rt=console,{log:it=rt.log.bind(rt),error:rt.error?rt.error.bind(rt):it,table:rt.table?rt.table.bind(rt):it});function ct(e){if(!e)return"ui-view (defunct)";var t=e.creationContext?e.creationContext.name||"(root)":"(none)";return"[ui-view#"+e.id+" "+e.$type+":"+e.fqn+" ("+e.name+"@"+t+")]"}var ut;function lt(e){return T(e)?p.Category[e]:p.Category[p.Category[e]]}(ut=p.Category||(p.Category={}))[ut.RESOLVE=0]="RESOLVE",ut[ut.TRANSITION=1]="TRANSITION",ut[ut.HOOK=2]="HOOK",ut[ut.UIVIEW=3]="UIVIEW",ut[ut.VIEWCONFIG=4]="VIEWCONFIG";var dt=C("$id"),ft=C("router.$id"),ht=function(e){return"Transition #"+dt(e)+"-"+ft(e)},mt=function(){function e(){this._enabled={},this.approximateDigests=0}return e.prototype._set=function(t,e){var n=this;e.length||(e=Object.keys(p.Category).map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)}).map(function(e){return p.Category[e]})),e.map(lt).forEach(function(e){return n._enabled[e]=t})},e.prototype.enable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._set(!0,e)},e.prototype.disable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._set(!1,e)},e.prototype.enabled=function(e){return!!this._enabled[lt(e)]},e.prototype.traceTransitionStart=function(e){this.enabled(p.Category.TRANSITION)&&st.log(ht(e)+": Started  -> "+We(e))},e.prototype.traceTransitionIgnored=function(e){this.enabled(p.Category.TRANSITION)&&st.log(ht(e)+": Ignored  <> "+We(e))},e.prototype.traceHookInvocation=function(e,t,n){if(this.enabled(p.Category.HOOK)){var r=C("traceData.hookType")(n)||"internal",i=C("traceData.context.state.name")(n)||C("traceData.context")(n)||"unknown",o=Ve(e.registeredHook.callback);st.log(ht(t)+":   Hook -> "+r+" context: "+i+", "+je(200,o))}},e.prototype.traceHookResult=function(e,t,n){this.enabled(p.Category.HOOK)&&st.log(ht(t)+":   <- Hook returned: "+je(200,We(e)))},e.prototype.traceResolvePath=function(e,t,n){this.enabled(p.Category.RESOLVE)&&st.log(ht(n)+":         Resolving "+e+" ("+t+")")},e.prototype.traceResolvableResolved=function(e,t){this.enabled(p.Category.RESOLVE)&&st.log(ht(t)+":               <- Resolved  "+e+" to: "+je(200,We(e.data)))},e.prototype.traceError=function(e,t){this.enabled(p.Category.TRANSITION)&&st.log(ht(t)+": <- Rejected "+We(t)+", reason: "+e)},e.prototype.traceSuccess=function(e,t){this.enabled(p.Category.TRANSITION)&&st.log(ht(t)+": <- Success  "+We(t)+", final state: "+e.name)},e.prototype.traceUIViewEvent=function(e,t,n){void 0===n&&(n=""),this.enabled(p.Category.UIVIEW)&&st.log("ui-view: "+Fe(30,e)+" "+ct(t)+n)},e.prototype.traceUIViewConfigUpdated=function(e,t){this.enabled(p.Category.UIVIEW)&&this.traceUIViewEvent("Updating",e," with ViewConfig from context='"+t+"'")},e.prototype.traceUIViewFill=function(e,t){this.enabled(p.Category.UIVIEW)&&this.traceUIViewEvent("Fill",e," with: "+je(200,t))},e.prototype.traceViewSync=function(e){if(this.enabled(p.Category.VIEWCONFIG)){var a="uiview component fqn",t=e.map(function(e){var t,n=e.uiView,r=e.viewConfig,i=n&&n.fqn,o=r&&r.viewDecl.$context.name+": ("+r.viewDecl.$name+")";return(t={})[a]=i,t["view config state (view name)"]=o,t}).sort(function(e,t){return(e[a]||"").localeCompare(t[a]||"")});st.table(t)}},e.prototype.traceViewServiceEvent=function(e,t){var n,r,i;this.enabled(p.Category.VIEWCONFIG)&&st.log("VIEWCONFIG: "+e+" "+(r=(n=t).viewDecl,i=r.$context.name||"(root)","[View#"+n.$id+" from '"+i+"' state]: target ui-view: '"+r.$uiViewName+"@"+r.$uiViewContextAnchor+"'"))},e.prototype.traceViewServiceUIViewEvent=function(e,t){this.enabled(p.Category.VIEWCONFIG)&&st.log("VIEWCONFIG: "+e+" "+ct(t))},e}(),pt=new mt,gt=function(){function e(e){this.pattern=/.*/,this.inherit=!0,B(this,e)}return e.prototype.is=function(e,t){return!0},e.prototype.encode=function(e,t){return e},e.prototype.decode=function(e,t){return e},e.prototype.equals=function(e,t){return e==t},e.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},e.prototype.toString=function(){return"{ParamType:"+this.name+"}"},e.prototype.$normalize=function(e){return this.is(e)?e:this.decode(e)},e.prototype.$asArray=function(e,t){if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new vt(this,e)},e}();function vt(r,i){var o=this;function a(e){return N(e)?e:x(e)?[e]:[]}function s(n,r){return function(e){if(N(e)&&0===e.length)return e;var t=fe(a(e),n);return!0===r?0===ue(t,function(e){return!e}).length:function(e){switch(e.length){case 0:return;case 1:return"auto"===i?e[0]:e;default:return e}}(t)}}function c(o){return function(e,t){var n=a(e),r=a(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!o(n[i],r[i]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(function(e){var t=r[e].bind(r),n="equals"===e?c:s;o[e]=n(t)}),B(this,{dynamic:r.dynamic,name:r.name,pattern:r.pattern,inherit:r.inherit,raw:r.raw,is:s(r.is.bind(r),!0),$arrayMode:i})}var bt,yt=Object.prototype.hasOwnProperty,$t=function(e){return 0===["value","type","squash","array","dynamic"].filter(yt.bind(e||{})).length};function Et(e,t,n){var r=!1===n.reloadOnSearch&&t===p.DefType.SEARCH||void 0,i=le([n.dynamic,r],x),o=x(i)?{dynamic:i}:{},a=function(e){function t(){return e.value}e=$t(e)?{value:e}:e,t.__cacheable=!0;var n=I(e.value)?e.value:t;return B(e,{$$fn:n})}(n&&n.params&&n.params[e]);return B(o,a)}(bt=p.DefType||(p.DefType={}))[bt.PATH=0]="PATH",bt[bt.SEARCH=1]="SEARCH",bt[bt.CONFIG=2]="CONFIG";var wt,_t=function(){function r(e,t,n,r,i){var o=Et(e,n,i);t=function(e,t,n,r,i){if(e.type&&t&&"string"!==t.name)throw new Error("Param '"+r+"' has two type configurations.");if(e.type&&t&&"string"===t.name&&i.type(e.type))return i.type(e.type);if(t)return t;if(e.type)return e.type instanceof gt?e.type:i.type(e.type);var o=n===p.DefType.CONFIG?"any":n===p.DefType.PATH?"path":n===p.DefType.SEARCH?"query":"string";return i.type(o)}(o,t,n,e,r.paramTypes);var a,s,c=(a={array:n===p.DefType.SEARCH&&"auto"},s=e.match(/\[\]$/)?{array:!0}:{},B(a,s,o).array);t=c?t.$asArray(c,n===p.DefType.SEARCH):t;var u=void 0!==o.value||n===p.DefType.SEARCH,l=x(o.dynamic)?!!o.dynamic:!!t.dynamic,d=x(o.raw)?!!o.raw:!!t.raw,f=function(e,t,n){var r=e.squash;if(!t||!1===r)return!1;if(!x(r)||null==r)return n;if(!0===r||A(r))return r;throw new Error("Invalid squash policy: '"+r+"'. Valid policies: false, true, or arbitrary string")}(o,u,r.defaultSquashPolicy()),h=function(e,t,n,r){var i=[{from:"",to:n||t?void 0:""},{from:null,to:n||t?void 0:""}],o=N(e.replace)?e.replace:[];A(r)&&o.push({from:r,to:void 0});var a=fe(o,y("from"));return ue(i,function(e){return-1===a.indexOf(e.from)}).concat(o)}(o,c,u,f),m=x(o.inherit)?!!o.inherit:!!t.inherit;B(this,{id:e,type:t,location:n,isOptional:u,dynamic:l,raw:d,squash:f,replace:h,inherit:m,array:c,config:o})}return r.values=function(e,t){void 0===t&&(t={});for(var n={},r=0,i=e;r<i.length;r++){var o=i[r];n[o.id]=o.value(t[o.id])}return n},r.changed=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e.filter(function(e){return!e.type.equals(t[e.id],n[e.id])})},r.equals=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),0===r.changed(e,t,n).length},r.validates=function(e,t){return void 0===t&&(t={}),e.map(function(e){return e.validates(t[e.id])}).reduce(me,!0)},r.prototype.isDefaultValue=function(e){return this.isOptional&&this.type.equals(this.value(),e)},r.prototype.value=function(e){var i=this;return e=function(e){for(var t=0,n=i.replace;t<n.length;t++){var r=n[t];if(r.from===e)return r.to}return e}(e),E(e)?function(){if(i._defaultValueCache)return i._defaultValueCache.defaultValue;if(!P.$injector)throw new Error("Injectable functions cannot be called at configuration time");var e=P.$injector.invoke(i.config.$$fn);if(null!=e&&!i.type.is(e))throw new Error("Default value ("+e+") for parameter '"+i.id+"' is not an instance of ParamType ("+i.type.name+")");return i.config.$$fn.__cacheable&&(i._defaultValueCache={defaultValue:e}),e}():this.type.$normalize(e)},r.prototype.isSearch=function(){return this.location===p.DefType.SEARCH},r.prototype.validates=function(e){if((E(e)||null===e)&&this.isOptional)return!0;var t=this.type.$normalize(e);if(!this.type.is(t))return!1;var n=this.type.encode(t);return!(A(n)&&!this.type.pattern.exec(n))},r.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},r}(),Ct=function(){function e(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=ae(e.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=K(fe(this.defaultTypes,function(e,t){return new gt(B({name:t},e))}),{})}return e.prototype.dispose=function(){this.types={}},e.prototype.type=function(e,t,n){if(!x(t))return this.types[e];if(this.types.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return this.types[e]=new gt(B({name:e},t)),n&&(this.typeQueue.push({name:e,def:n}),this.enqueue||this._flushTypeQueue()),this},e.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;){var e=this.typeQueue.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");B(this.types[e.name],P.$injector.invoke(e.def))}},e}();wt=function(e){var t=function(e){return null!=e?e.toString():e},n={encode:t,decode:t,is:h(String),pattern:/.*/,equals:function(e,t){return e==t}};return B({},n,e)},B(Ct.prototype,{string:wt({}),path:wt({pattern:/[^/]*/}),query:wt({}),hash:wt({inherit:!1}),int:wt({decode:function(e){return parseInt(e,10)},is:function(e){return!M(e)&&this.decode(e.toString())===e},pattern:/-?\d+/}),bool:wt({encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:h(Boolean),pattern:/0|1/}),date:wt({encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):void 0},decode:function(e){if(this.is(e))return e;var t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):void 0},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(n,r){return["getFullYear","getMonth","getDate"].reduce(function(e,t){return e&&n[t]()===r[t]()},!0)},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:wt({encode:V,decode:U,is:h(Object),equals:z,pattern:/[^/]*/}),any:wt({encode:W,decode:W,is:function(){return!0},equals:z})});var xt=function(){function e(e){void 0===e&&(e={}),B(this,e)}return e.prototype.$inherit=function(e,t,n){var r,i=oe(t,n),o={},a=[];for(var s in i)if(i[s]&&i[s].params&&(r=Object.keys(i[s].params)).length)for(var c in r)0<=a.indexOf(r[c])||(a.push(r[c]),o[r[c]]=this[r[c]]);return B({},o,e)},e}(),Mt=function(){function r(e){if(e instanceof r){var t=e;this.state=t.state,this.paramSchema=t.paramSchema.slice(),this.paramValues=B({},t.paramValues),this.resolvables=t.resolvables.slice(),this.views=t.views&&t.views.slice()}else{var n=e;this.state=n,this.paramSchema=n.parameters({inherit:!1}),this.paramValues={},this.resolvables=n.resolvables.map(function(e){return e.clone()})}}return r.prototype.clone=function(){return new r(this)},r.prototype.applyRawParams=function(r){return this.paramValues=this.paramSchema.reduce(function(e,t){return ke(e,[(n=t).id,n.value(r[n.id])]);var n},{}),this},r.prototype.parameter=function(e){return le(this.paramSchema,v("id",e))},r.prototype.equals=function(e,t){var n=this.diff(e,t);return n&&0===n.length},r.prototype.diff=function(e,t){if(this.state!==e.state)return!1;var n=t?t(this):this.paramSchema;return _t.changed(n,this.paramValues,e.paramValues)},r.clone=function(e){return e.clone()},r}(),kt=function(){function r(e,t,n,r){this._stateRegistry=e,this._identifier=t,this._identifier=t,this._params=B({},n||{}),this._options=B({},r||{}),this._definition=e.matcher.find(t,this._options.relative)}return r.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},r.prototype.identifier=function(){return this._identifier},r.prototype.params=function(){return this._params},r.prototype.$state=function(){return this._definition},r.prototype.state=function(){return this._definition&&this._definition.self},r.prototype.options=function(){return this._options},r.prototype.exists=function(){return!(!this._definition||!this._definition.self)},r.prototype.valid=function(){return!this.error()},r.prototype.error=function(){var e=this.options().relative;if(this._definition||!e)return this._definition?this._definition.self?void 0:"State '"+this.name()+"' has an invalid definition":"No such state '"+this.name()+"'";var t=e.name?e.name:e;return"Could not resolve '"+this.name()+"' from state '"+t+"'"},r.prototype.toString=function(){return"'"+this.name()+"'"+We(this.params())},r.prototype.withState=function(e){return new r(this._stateRegistry,e,this._params,this._options)},r.prototype.withParams=function(e,t){void 0===t&&(t=!1);var n=t?e:B({},this._params,e);return new r(this._stateRegistry,this._identifier,n,this._options)},r.prototype.withOptions=function(e,t){void 0===t&&(t=!1);var n=t?e:B({},this._options,e);return new r(this._stateRegistry,this._identifier,this._params,n)},r.isDef=function(e){return e&&e.state&&(A(e.state)||S(e.state)&&A(e.state.name))},r}(),Tt=function(){function f(){}return f.makeTargetState=function(e,t){var n=Te(t).state;return new kt(e,n,t.map(y("paramValues")).reduce(ie,{}),{})},f.buildPath=function(e){var t=e.params();return e.$state().path.map(function(e){return new Mt(e).applyRawParams(t)})},f.buildToPath=function(e,t){var n=f.buildPath(t);return t.options().inherit?f.inheritParams(e,n,Object.keys(t.params())):n},f.applyViewConfigs=function(i,o,t){o.filter(function(e){return Z(t,e.state)}).forEach(function(t){var e=he(t.state.views||{}),n=f.subPath(o,function(e){return e===t}),r=e.map(function(e){return i.createViewConfig(n,e)});t.views=r.reduce(ge,[])})},f.inheritParams=function(c,e,u){void 0===u&&(u=[]);var l=c.map(function(e){return e.paramSchema}).reduce(ge,[]).filter(function(e){return!e.inherit}).map(y("id"));return e.map(function(e){var t=B({},e&&e.paramValues),n=ae(t,u);t=se(t,u);var r,i,o,a=se((r=c,i=e.state,o=le(r,v("state",i)),B({},o&&o.paramValues)||{}),l),s=B(t,a,n);return new Mt(e.state).applyRawParams(s)})},f.treeChanges=function(e,r,t){for(var n,i,o,a,s,c,u=Math.min(e.length,r.length),l=0;l<u&&e[l].state!==t&&(n=e[l],i=r[l],n.equals(i,f.nonDynamicParams));)l++;a=(o=e).slice(0,l),s=o.slice(l);var d=a.map(function(e,t){var n=e.clone();return n.paramValues=r[t].paramValues,n});return c=r.slice(l),{from:o,to:d.concat(c),retained:a,retainedWithToParams:d,exiting:s,entering:c}},f.matching=function(e,t,i){var o=!1;return Me(e,t).reduce(function(e,t){var n=t[0],r=t[1];return(o=o||!n.equals(r,i))?e:e.concat(n)},[])},f.equals=function(e,t,n){return e.length===t.length&&f.matching(e,t,n).length===e.length},f.subPath=function(e,t){var n=le(e,t),r=e.indexOf(n);return-1===r?void 0:e.slice(0,r+1)},f.nonDynamicParams=function(e){return e.state.parameters({inherit:!1}).filter(function(e){return!e.dynamic})},f.paramValues=function(e){return e.reduce(function(e,t){return B(e,t.paramValues)},{})},f}(),At={when:{LAZY:"LAZY",EAGER:"EAGER"},async:{WAIT:"WAIT",NOWAIT:"NOWAIT"}},St={when:"LAZY",async:"WAIT"},Nt=function(){function a(e,t,n,r,i){if(this.resolved=!1,this.promise=void 0,e instanceof a)B(this,e);else if(k(t)){if(M(e))throw new Error("new Resolvable(): token argument is required");if(!k(t))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=e,this.policy=r,this.resolveFn=t,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?P.$q.when(this.data):void 0}else if(S(e)&&e.token&&(e.hasOwnProperty("resolveFn")||e.hasOwnProperty("data"))){var o=e;return new a(o.token,o.resolveFn,o.deps,o.policy,o.data)}}return a.prototype.getPolicy=function(e){var t=this.policy||{},n=e&&e.resolvePolicy||{};return{when:t.when||n.when||St.when,async:t.async||n.async||St.async}},a.prototype.resolve=function(t,n){var r=this,e=P.$q,i=t.findNode(this),o=i&&i.state,a=this.getPolicy(o).async,s=k(a)?a:W;return this.promise=e.when().then(function(){return e.all(t.getDependencies(r).map(function(e){return e.get(t,n)}))}).then(function(e){return r.resolveFn.apply(null,e)}).then(s).then(function(e){return r.data=e,r.resolved=!0,r.resolveFn=null,pt.traceResolvableResolved(r,n),r.data})},a.prototype.get=function(e,t){return this.promise||this.resolve(e,t)},a.prototype.toString=function(){return"Resolvable(token: "+We(this.token)+", requires: ["+this.deps.map(We)+"])"},a.prototype.clone=function(){return new a(this)},a.fromData=function(e,t){return new a(e,function(){return t},null,null,t)},a}(),Ot=At.when,Dt=[Ot.EAGER,Ot.LAZY],It=[Ot.EAGER],Rt="Native Injector",Ht=function(){function e(e){this._path=e}return e.prototype.getTokens=function(){return this._path.reduce(function(e,t){return e.concat(t.resolvables.map(function(e){return e.token}))},[]).reduce(ye,[])},e.prototype.getResolvable=function(t){return Te(this._path.map(function(e){return e.resolvables}).reduce(ge,[]).filter(function(e){return e.token===t}))},e.prototype.getPolicy=function(e){var t=this.findNode(e);return e.getPolicy(t.state)},e.prototype.subContext=function(t){return new e(Tt.subPath(this._path,function(e){return e.state===t}))},e.prototype.addResolvables=function(e,t){var n=le(this._path,v("state",t)),r=e.map(function(e){return e.token});n.resolvables=n.resolvables.filter(function(e){return-1===r.indexOf(e.token)}).concat(e)},e.prototype.resolvePath=function(e,s){var c=this;void 0===e&&(e="LAZY");var u=(Z(Dt,e)?e:"LAZY")===At.when.EAGER?It:Dt;pt.traceResolvePath(this._path,e,s);var l=function(t,n){return function(e){return Z(t,c.getPolicy(e)[n])}},t=this._path.reduce(function(e,t){var n=t.resolvables.filter(l(u,"when")),r=n.filter(l(["NOWAIT"],"async")),i=n.filter(d(l(["NOWAIT"],"async"))),o=c.subContext(t.state),a=function(t){return t.get(o,s).then(function(e){return{token:t.token,value:e}})};return r.forEach(a),e.concat(i.map(a))},[]);return P.$q.all(t)},e.prototype.injector=function(){return this._injector||(this._injector=new Pt(this))},e.prototype.findNode=function(t){return le(this._path,function(e){return Z(e.resolvables,t)})},e.prototype.getDependencies=function(t){var r=this,n=this.findNode(t),i=(Tt.subPath(this._path,function(e){return e===n})||this._path).reduce(function(e,t){return e.concat(t.resolvables)},[]).filter(function(e){return e!==t});return t.deps.map(function(t){var e=i.filter(function(e){return e.token===t});if(e.length)return Te(e);var n=r.injector().getNative(t);if(E(n))throw new Error("Could not find Dependency Injection token: "+We(t));return new Nt(t,function(){return n},[],n)})},e}(),Pt=function(){function e(e){this.context=e,this.native=this.get(Rt)||P.$injector}return e.prototype.get=function(e){var t=this.context.getResolvable(e);if(t){if("NOWAIT"===this.context.getPolicy(t).async)return t.get(this.context);if(!t.resolved)throw new Error("Resolvable async .get() not complete:"+We(t.token));return t.data}return this.getNative(e)},e.prototype.getAsync=function(e){var t=this.context.getResolvable(e);return t?t.get(this.context):P.$q.when(this.native.get(e))},e.prototype.getNative=function(e){return this.native&&this.native.get(e)},e}();function Lt(e){return e.name}function jt(e){return e.self.$$state=function(){return e},e.self}function Ft(e){return e.parent&&e.parent.data&&(e.data=e.self.data=K(e.parent.data,e.data)),e.data}var Ut=function(a,s){return function(e){var t=e.self;if(t&&t.url&&t.name&&t.name.match(/\.\*\*$/)){var n={};Ae(t,n),n.url+="{remainder:any}",t=n}var r=e.parent,i=function(e){if(!A(e))return!1;var t="^"===e.charAt(0);return{val:t?e.substring(1):e,root:t}}(t.url),o=i?a.compile(i.val,{state:t}):t.url;if(!o)return null;if(!a.isMatcher(o))throw new Error("Invalid url '"+o+"' in state '"+e+"'");return i&&i.root?o:(r&&r.navigable||s()).url.append(o)}};function Vt(e){return e.parent?e.parent.path.concat(e):[e]}function qt(e){var t=e.parent?B({},e.parent.includes):{};return t[e.name]=!0,t}function Bt(e){var t,n,r=function(e){return e.provide||e.token},i=g([[y("resolveFn"),function(e){return new Nt(r(e),e.resolveFn,e.deps,e.policy)}],[y("useFactory"),function(e){return new Nt(r(e),e.useFactory,e.deps||e.dependencies,e.policy)}],[y("useClass"),function(e){return new Nt(r(e),function(){return new e.useClass},[],e.policy)}],[y("useValue"),function(e){return new Nt(r(e),function(){return e.useValue},[],e.policy,e.useValue)}],[y("useExisting"),function(e){return new Nt(r(e),W,[e.useExisting],e.policy)}]]),o=g([[c(y("val"),A),function(e){return new Nt(e.token,W,[e.val],e.policy)}],[c(y("val"),N),function(e){return new Nt(e.token,Te(e.val),e.val.slice(0,-1),e.policy)}],[c(y("val"),k),function(e){return new Nt(e.token,e.val,(t=e.val,n=P.$injector,t.$inject||n&&n.annotate(t,n.strictDi)||"deferred"),e.policy);var t,n}]]),a=g([[h(Nt),function(e){return e}],[function(e){return!(!e.token||!e.resolveFn)},i],[function(e){return!(!e.provide&&!e.token||!(e.useValue||e.useFactory||e.useExisting||e.useClass))},i],[function(e){return!!(e&&e.val&&(A(e.val)||N(e.val)||k(e.val)))},o],[m(!0),function(e){throw new Error("Invalid resolve value: "+We(e))}]]),s=e.resolve;return(N(s)?s:(t=s,n=e.resolvePolicy||{},Object.keys(t||{}).map(function(e){return{token:e,val:t[e],deps:void 0,policy:n[e]}}))).map(a)}var zt,Wt,Yt=function(){function e(t,e){this.matcher=t;var r,n,i=this,o=function(){return t.find("")},a=function(e){return""===e.name};this.builders={name:[Lt],self:[jt],parent:[function(e){return a(e)?null:t.find(i.parentName(e))||o()}],data:[Ft],url:[Ut(e,o)],navigable:[(n=a,function(e){return!n(e)&&e.url?e:e.parent?e.parent.navigable:null})],params:[(r=e.paramFactory,function(n){var e=n.url&&n.url.parameters({inherit:!1})||[],t=he(de(se(n.params||{},e.map(y("id"))),function(e,t){return r.fromConfig(t,null,n.self)}));return e.concat(t).map(function(e){return[e.id,e]}).reduce(ke,{})})],views:[],path:[Vt],includes:[qt],resolvables:[Bt]}}return e.prototype.builder=function(e,t){var n=this.builders,r=n[e]||[];return A(e)&&!x(t)?1<r.length?r:r[0]:A(e)&&k(t)?(n[e]=r,n[e].push(t),function(){return n[e].splice(n[e].indexOf(t,1))&&null}):void 0},e.prototype.build=function(e){var t=this.matcher,n=this.builders,r=this.parentName(e);if(r&&!t.find(r,void 0,!1))return null;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i].reduce(function(t,n){return function(e){return n(e,t)}},Y);e[i]=o(e)}return e},e.prototype.parentName=function(e){var t=e.name||"",n=t.split(".");if("**"===n.pop()&&n.pop(),n.length){if(e.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+t+")");return n.join(".")}return e.parent?A(e.parent)?e.parent:e.parent.name:""},e.prototype.name=function(e){var t=e.name;if(-1!==t.indexOf(".")||!e.parent)return t;var n=A(e.parent)?e.parent:e.parent.name;return n?n+"."+t:t},e}(),Gt=function(){function n(e){return n.create(e||{})}return n.create=function(e){e=n.isStateClass(e)?new e:e;var t=K(K(e,n.prototype));return e.$$state=function(){return t},t.self=e,t.__stateObjectCache={nameGlob:Re.fromString(t.name)},t},n.prototype.is=function(e){return this===e||this.self===e||this.fqn()===e},n.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var e=this.parent.fqn();return e?e+"."+this.name:this.name},n.prototype.root=function(){return this.parent&&this.parent.root()||this},n.prototype.parameters=function(t){return((t=re(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(he(this.params)).filter(function(e){return!t.matchingKeys||t.matchingKeys.hasOwnProperty(e.id)})},n.prototype.parameter=function(e,t){return void 0===t&&(t={}),this.url&&this.url.parameter(e,t)||le(he(this.params),v("id",e))||t.inherit&&this.parent&&this.parent.parameter(e)},n.prototype.toString=function(){return this.fqn()},n.isStateClass=function(e){return k(e)&&!0===e.__uiRouterState},n.isStateDeclaration=function(e){return k(e.$$state)},n.isState=function(e){return S(e.__stateObjectCache)},n}(),Kt=function(){function e(e){this._states=e}return e.prototype.isRelative=function(e){return 0===(e=e||"").indexOf(".")||0===e.indexOf("^")},e.prototype.find=function(e,t,n){if(void 0===n&&(n=!0),e||""===e){var r=A(e),i=r?e:e.name;this.isRelative(i)&&(i=this.resolvePath(i,t));var o=this._states[i];if(o&&(r||!(r||o!==e&&o.self!==e)))return o;if(r&&n){var a=he(this._states).filter(function(e){return e.__stateObjectCache.nameGlob&&e.__stateObjectCache.nameGlob.matches(i)});return 1<a.length&&st.error("stateMatcher.find: Found multiple matches for "+i+" using glob: ",a.map(function(e){return e.name})),a[0]}}},e.prototype.resolvePath=function(e,t){if(!t)throw new Error("No reference point given for path '"+e+"'");for(var n=this.find(t),r=e.split("."),i=r.length,o=0,a=n;o<i;o++)if(""!==r[o]||0!==o){if("^"!==r[o])break;if(!a.parent)throw new Error("Path '"+e+"' not valid for state '"+n.name+"'");a=a.parent}else a=n;var s=r.slice(o).join(".");return a.name+(a.name&&s?".":"")+s},e}(),Zt=function(){function e(e,t,n,r){this.router=e,this.states=t,this.builder=n,this.listeners=r,this.queue=[]}return e.prototype.dispose=function(){this.queue=[]},e.prototype.register=function(e){var t=this.queue,n=Gt.create(e),r=n.name;if(!A(r))throw new Error("State must have a valid name");if(this.states.hasOwnProperty(r)||Z(t.map(y("name")),r))throw new Error("State '"+r+"' is already defined");return t.push(n),this.flush(),n},e.prototype.flush=function(){for(var t=this,e=this.queue,n=this.states,r=this.builder,i=[],o=[],a={},s=function(e){return t.states.hasOwnProperty(e)&&t.states[e]},c=function(){i.length&&t.listeners.forEach(function(e){return e("registered",i.map(function(e){return e.self}))})};0<e.length;){var u=e.shift(),l=u.name,d=r.build(u),f=o.indexOf(u);if(d){var h=s(l);if(h&&h.name===l)throw new Error("State '"+l+"' is already defined");var m=s(l+".**");m&&this.router.stateRegistry.deregister(m),n[l]=u,this.attachRoute(u),0<=f&&o.splice(f,1),i.push(u)}else{var p=a[l];if(a[l]=e.length,0<=f&&p===e.length)return e.push(u),c(),n;f<0&&o.push(u),e.push(u)}}return c(),n},e.prototype.attachRoute=function(e){if(!e.abstract&&e.url){var t=this.router.urlService.rules;t.rule(t.urlRuleFactory.create(e))}},e}(),Xt=function(){function e(e){this.router=e,this.states={},this.listeners=[],this.matcher=new Kt(this.states),this.builder=new Yt(this.matcher,e.urlMatcherFactory),this.stateQueue=new Zt(e,this.states,this.builder,this.listeners),this._registerRoot()}return e.prototype._registerRoot=function(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null},e.prototype.dispose=function(){var t=this;this.stateQueue.dispose(),this.listeners=[],this.get().forEach(function(e){return t.get(e)&&t.deregister(e)})},e.prototype.onStatesChanged=function(e){return this.listeners.push(e),function(){Q(this.listeners)(e)}.bind(this)},e.prototype.root=function(){return this._root},e.prototype.register=function(e){return this.stateQueue.register(e)},e.prototype._deregisterTree=function(e){var n=this,r=this.get().map(function(e){return e.$$state()}),i=function(t){var e=r.filter(function(e){return-1!==t.indexOf(e.parent)});return 0===e.length?e:e.concat(i(e))},t=i([e]),o=[e].concat(t).reverse();return o.forEach(function(e){var t=n.router.urlService.rules;t.rules().filter(v("state",e)).forEach(function(e){return t.removeRule(e)}),delete n.states[e.name]}),o},e.prototype.deregister=function(e){var t=this.get(e);if(!t)throw new Error("Can't deregister state; not found: "+e);var n=this._deregisterTree(t.$$state());return this.listeners.forEach(function(e){return e("deregistered",n.map(function(e){return e.self}))}),n},e.prototype.get=function(e,t){var n=this;if(0===arguments.length)return Object.keys(this.states).map(function(e){return n.states[e].self});var r=this.matcher.find(e,t);return r&&r.self||null},e.prototype.decorator=function(e,t){return this.builder.builder(e,t)},e}();(zt=p.TransitionHookPhase||(p.TransitionHookPhase={}))[zt.CREATE=0]="CREATE",zt[zt.BEFORE=1]="BEFORE",zt[zt.RUN=2]="RUN",zt[zt.SUCCESS=3]="SUCCESS",zt[zt.ERROR=4]="ERROR",(Wt=p.TransitionHookScope||(p.TransitionHookScope={}))[Wt.TRANSITION=0]="TRANSITION",Wt[Wt.STATE=1]="STATE";var Qt={current:Y,transition:null,traceData:{},bind:null},Jt=function(){function o(e,t,n,r){var i=this;this.transition=e,this.stateContext=t,this.registeredHook=n,this.options=r,this.isSuperseded=function(){return i.type.hookPhase===p.TransitionHookPhase.RUN&&!i.options.transition.isActive()},this.options=re(r,Qt),this.type=n.eventType}return o.chain=function(e,t){return e.reduce(function(e,t){return e.then(function(){return t.invokeHook()})},t||P.$q.when())},o.invokeHooks=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].invokeHook();if(R(r)){var i=e.slice(n+1);return o.chain(i,r).then(t)}}return t()},o.runAllHooks=function(e){e.forEach(function(e){return e.invokeHook()})},o.prototype.logError=function(e){this.transition.router.stateService.defaultErrorHandler()(e)},o.prototype.invokeHook=function(){var t=this,n=this.registeredHook;if(!n._deregistered){var e=this.getNotCurrentRejection();if(e)return e;var r=this.options;pt.traceHookInvocation(this,this.transition,r);var i=function(e){return n.eventType.getErrorHandler(t)(e)},o=function(e){return n.eventType.getResultHandler(t)(e)};try{var a=n.callback.call(r.bind,t.transition,t.stateContext);return!this.type.synchronous&&R(a)?a.catch(function(e){return Le.normalize(e).toPromise()}).then(o,i):o(a)}catch(e){return i(Le.normalize(e))}finally{n.invokeLimit&&++n.invokeCount>=n.invokeLimit&&n.deregister()}}},o.prototype.handleHookResult=function(e){var t=this,n=this.getNotCurrentRejection();return n||(R(e)?e.then(function(e){return t.handleHookResult(e)}):(pt.traceHookResult(e,this.transition,this.options),!1===e?Le.aborted("Hook aborted transition").toPromise():h(kt)(e)?Le.redirected(e).toPromise():void 0))},o.prototype.getNotCurrentRejection=function(){var e=this.transition.router;return e._disposed?Le.aborted("UIRouter instance #"+e.$id+" has been stopped (disposed)").toPromise():this.transition._aborted?Le.aborted().toPromise():this.isSuperseded()?Le.superseded(this.options.current()).toPromise():void 0},o.prototype.toString=function(){var e=this.options,t=this.registeredHook;return(C("traceData.hookType")(e)||"internal")+" context: "+(C("traceData.context.state.name")(e)||C("traceData.context")(e)||"unknown")+", "+je(200,qe(t.callback))},o.HANDLE_RESULT=function(t){return function(e){return t.handleHookResult(e)}},o.LOG_REJECTED_RESULT=function(t){return function(e){R(e)&&e.catch(function(e){return t.logError(Le.normalize(e))})}},o.LOG_ERROR=function(t){return function(e){return t.logError(e)}},o.REJECT_ERROR=function(e){return function(e){return Ie(e)}},o.THROW_ERROR=function(e){return function(e){throw e}},o}();function en(e,t,n){var i=A(t)?[t]:t;return!!(k(i)?i:function(e){for(var t=i,n=0;n<t.length;n++){var r=new Re(t[n]);if(r&&r.matches(e.name)||!r&&t[n]===e.name)return!0}return!1})(e,n)}var tn=function(){function e(e,t,n,r,i,o){void 0===o&&(o={}),this.tranSvc=e,this.eventType=t,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=o.priority||0,this.bind=o.bind||null,this.invokeLimit=o.invokeLimit}return e.prototype._matchingNodes=function(e,t,n){if(!0===t)return e;var r=e.filter(function(e){return en(e.state,t,n)});return r.length?r:null},e.prototype._getDefaultMatchCriteria=function(){return de(this.tranSvc._pluginapi._getPathTypes(),function(){return!0})},e.prototype._getMatchingNodes=function(o,a){var s=this,c=B(this._getDefaultMatchCriteria(),this.matchCriteria);return he(this.tranSvc._pluginapi._getPathTypes()).reduce(function(e,t){var n=t.scope===p.TransitionHookScope.STATE,r=o[t.name]||[],i=n?r:[Te(r)];return e[t.name]=s._matchingNodes(i,c[t.name],a),e},{})},e.prototype.matches=function(e,t){var n=this._getMatchingNodes(e,t);return he(n).every(W)?n:null},e.prototype.deregister=function(){this.removeHookFromRegistry(this),this._deregistered=!0},e}();function nn(e,i,o){var a=(e._registeredHooks=e._registeredHooks||{})[o.name]=[],s=Q(a);function t(e,t,n){void 0===n&&(n={});var r=new tn(i,o,t,e,s,n);return a.push(r),r.deregister.bind(r)}return e[o.name]=t}var rn=function(){function e(e){this.transition=e}return e.prototype.buildHooksForPhase=function(e){var t=this;return this.transition.router.transitionService._pluginapi._getEvents(e).map(function(e){return t.buildHooks(e)}).reduce(ge,[]).filter(W)},e.prototype.buildHooks=function(o){var a=this.transition,e=a.treeChanges(),t=this.getMatchingHooks(o,e,a);if(!t)return[];var s={transition:a,current:a.options().current};return t.map(function(i){return i.matches(e,a)[o.criteriaMatchPath.name].map(function(e){var t=B({bind:i.bind,traceData:{hookType:o.name,context:e}},s),n=o.criteriaMatchPath.scope===p.TransitionHookScope.STATE?e.state.self:null,r=new Jt(a,n,i,t);return{hook:i,node:e,transitionHook:r}})}).reduce(ge,[]).sort(function(i){void 0===i&&(i=!1);return function(e,t){var n=i?-1:1,r=(e.node.state.path.length-t.node.state.path.length)*n;return 0!==r?r:t.hook.priority-e.hook.priority}}(o.reverseSort)).map(function(e){return e.transitionHook})},e.prototype.getMatchingHooks=function(t,n,r){var e=t.hookPhase===p.TransitionHookPhase.CREATE,i=this.transition.router.transitionService;return(e?[i]:[this.transition,i]).map(function(e){return e.getHooks(t.name)}).filter(we(N,"broken event named: "+t.name)).reduce(ge,[]).filter(function(e){return e.matches(n,r)})},e}();var on=y("self"),an=function(){function t(e,t,n){var r=this;if(this._deferred=P.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new rn(this),this.isActive=function(){return r.router.globals.transition===r},this.router=n,!(this._targetState=t).valid())throw new Error(t.error());this._options=B({current:m(this)},t.options()),this.$id=n.transitionService._transitionCount++;var i=Tt.buildToPath(e,t);this._treeChanges=Tt.treeChanges(e,i,this._options.reloadState),this.createTransitionHookRegFns();var o=this._hookBuilder.buildHooksForPhase(p.TransitionHookPhase.CREATE);Jt.invokeHooks(o,function(){return null}),this.applyViewConfigs(n)}return t.prototype.onBefore=function(e,t,n){},t.prototype.onStart=function(e,t,n){},t.prototype.onExit=function(e,t,n){},t.prototype.onRetain=function(e,t,n){},t.prototype.onEnter=function(e,t,n){},t.prototype.onFinish=function(e,t,n){},t.prototype.onSuccess=function(e,t,n){},t.prototype.onError=function(e,t,n){},t.prototype.createTransitionHookRegFns=function(){var t=this;this.router.transitionService._pluginapi._getEvents().filter(function(e){return e.hookPhase!==p.TransitionHookPhase.CREATE}).forEach(function(e){return nn(t,t.router.transitionService,e)})},t.prototype.getHooks=function(e){return this._registeredHooks[e]},t.prototype.applyViewConfigs=function(e){var t=this._treeChanges.entering.map(function(e){return e.state});Tt.applyViewConfigs(e.transitionService.$view,this._treeChanges.to,t)},t.prototype.$from=function(){return Te(this._treeChanges.from).state},t.prototype.$to=function(){return Te(this._treeChanges.to).state},t.prototype.from=function(){return this.$from().self},t.prototype.to=function(){return this.$to().self},t.prototype.targetState=function(){return this._targetState},t.prototype.is=function(e){return e instanceof t?this.is({to:e.$to().name,from:e.$from().name}):!(e.to&&!en(this.$to(),e.to,this)||e.from&&!en(this.$from(),e.from,this))},t.prototype.params=function(e){return void 0===e&&(e="to"),Object.freeze(this._treeChanges[e].map(y("paramValues")).reduce(ie,{}))},t.prototype.paramsChanged=function(){var e=this.params("from"),n=this.params("to"),t=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map(function(e){return e.paramSchema}).reduce(ve,[]).reduce(ye,[]);return _t.changed(t,e,n).reduce(function(e,t){return e[t.id]=n[t.id],e},{})},t.prototype.injector=function(t,e){void 0===e&&(e="to");var n=this._treeChanges[e];return t&&(n=Tt.subPath(n,function(e){return e.state===t||e.state.name===t})),new Ht(n).injector()},t.prototype.getResolveTokens=function(e){return void 0===e&&(e="to"),new Ht(this._treeChanges[e]).getTokens()},t.prototype.addResolvable=function(e,t){void 0===t&&(t=""),e=h(Nt)(e)?e:new Nt(e);var n="string"==typeof t?t:t.name,r=this._treeChanges.to,i=le(r,function(e){return e.state.name===n});new Ht(r).addResolvables([e],i.state)},t.prototype.redirectedFrom=function(){return this._options.redirectedFrom||null},t.prototype.originalTransition=function(){var e=this.redirectedFrom();return e&&e.originalTransition()||this},t.prototype.options=function(){return this._options},t.prototype.entering=function(){return fe(this._treeChanges.entering,y("state")).map(on)},t.prototype.exiting=function(){return fe(this._treeChanges.exiting,y("state")).map(on).reverse()},t.prototype.retained=function(){return fe(this._treeChanges.retained,y("state")).map(on)},t.prototype.views=function(e,t){void 0===e&&(e="entering");var n=this._treeChanges[e];return(n=t?n.filter(v("state",t)):n).map(y("views")).filter(W).reduce(ge,[])},t.prototype.treeChanges=function(e){return e?this._treeChanges[e]:this._treeChanges},t.prototype.redirect=function(e){for(var t=1,n=this;null!=(n=n.redirectedFrom());)if(20<++t)throw new Error("Too many consecutive Transition redirects (20+)");var r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==e.options().location&&(r.location="replace");var i=B({},this.options(),e.options(),r);e=e.withOptions(i,!0);var o,a=this.router.transitionService.create(this._treeChanges.from,e),s=this._treeChanges.entering,c=a._treeChanges.entering;return Tt.matching(c,s,Tt.nonDynamicParams).filter(d((o=e.options().reloadState,function(e){return o&&e.state.includes[o.name]}))).forEach(function(e,t){e.resolvables=s[t].resolvables}),a},t.prototype._changedParams=function(){var e=this._treeChanges;if(!this._options.reload&&(!e.exiting.length&&!e.entering.length&&e.to.length===e.from.length&&!Me(e.to,e.from).map(function(e){return e[0].state!==e[1].state}).reduce(pe,!1))){var t=e.to.map(function(e){return e.paramSchema}),n=[e.to,e.from].map(function(e){return e.map(function(e){return e.paramValues})});return Me(t,n[0],n[1]).map(function(e){var t=e[0],n=e[1],r=e[2];return _t.changed(t,n,r)}).reduce(ge,[])}},t.prototype.dynamic=function(){var e=this._changedParams();return!!e&&e.map(function(e){return e.dynamic}).reduce(pe,!1)},t.prototype.ignored=function(){return!!this._ignoredReason()},t.prototype._ignoredReason=function(){var e=this.router.globals.transition,r=this._options.reloadState,t=function(e,t){if(e.length!==t.length)return!1;var n=Tt.matching(e,t);return e.length===n.filter(function(e){return!r||!e.state.includes[r.name]}).length},n=this.treeChanges(),i=e&&e.treeChanges();return i&&t(i.to,n.to)&&t(i.exiting,n.exiting)?"SameAsPending":0===n.exiting.length&&0===n.entering.length&&t(n.from,n.to)?"SameAsCurrent":void 0},t.prototype.run=function(){var t=this,n=Jt.runAllHooks,r=function(e){return t._hookBuilder.buildHooksForPhase(e)},e=r(p.TransitionHookPhase.BEFORE);return Jt.invokeHooks(e,function(){var e=t.router.globals;return e.lastStartedTransitionId=t.$id,e.transition=t,e.transitionHistory.enqueue(t),pt.traceTransitionStart(t),P.$q.when(void 0)}).then(function(){var e=r(p.TransitionHookPhase.RUN);return Jt.invokeHooks(e,function(){return P.$q.when(void 0)})}).then(function(){pt.traceSuccess(t.$to(),t),t.success=!0,t._deferred.resolve(t.to()),n(r(p.TransitionHookPhase.SUCCESS))},function(e){pt.traceError(e,t),t.success=!1,t._deferred.reject(e),t._error=e,n(r(p.TransitionHookPhase.ERROR))}),this.promise},t.prototype.valid=function(){return!this.error()||void 0!==this.success},t.prototype.abort=function(){E(this.success)&&(this._aborted=!0)},t.prototype.error=function(){var e=this.$to();if(e.self.abstract)return Le.invalid("Cannot transition to abstract state '"+e.name+"'");var t=e.parameters(),n=this.params(),r=t.filter(function(e){return!e.validates(n[e.id])});if(r.length){var i=r.map(function(e){return"["+e.id+":"+We(n[e.id])+"]"}).join(", "),o="The following parameter values are not valid for state '"+e.name+"': "+i;return Le.invalid(o)}return!1===this.success?this._error:void 0},t.prototype.toString=function(){var e=this.from(),t=this.to(),n=function(e){return null!==e["#"]&&void 0!==e["#"]?e:se(e,["#"])};return"Transition#"+this.$id+"( '"+(S(e)?e.name:e)+"'"+We(n(this._treeChanges.from.map(y("paramValues")).reduce(ie,{})))+" -> "+(this.valid()?"":"(X) ")+"'"+(S(t)?t.name:t)+"'"+We(n(this.params()))+" )"},t.diToken=t}();function sn(e,t){var n=["",""],r=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return r;switch(t.squash){case!1:n=["(",")"+(t.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=["("+t.squash+"|",")?"]}return r+n[0]+t.type.pattern.source+n[1]}var cn=et("/"),un={state:{params:{}},strict:!0,caseInsensitive:!0,decodeParams:!0},ln=function(){function g(o,a,e,t){var s=this;this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=t=re(t,un),this.pattern=o;for(var n,r,i,c=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,u=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,l=[],d=0,f=function(e){if(!g.nameValidator.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+o+"'");if(le(s._params,v("id",e)))throw new Error("Duplicate parameter name '"+e+"' in pattern '"+o+"'")},h=function(e,t){var n,r=e[2]||e[3],i=t?e[4]:e[4]||("*"===e[1]?"[\\s\\S]*":null);return{id:r,regexp:i,segment:o.substring(d,e.index),type:i?a.type(i)||(n=i,K(a.type(t?"query":"path"),{pattern:new RegExp(n,s.config.caseInsensitive?"i":void 0)})):null}};(n=c.exec(o))&&!(0<=(r=h(n,!1)).segment.indexOf("?"));)f(r.id),this._params.push(e.fromPath(r.id,r.type,t.state)),this._segments.push(r.segment),l.push([r.segment,Te(this._params)]),d=c.lastIndex;var m=(i=o.substring(d)).indexOf("?");if(0<=m){var p=i.substring(m);if(i=i.substring(0,m),0<p.length)for(d=0;n=u.exec(p);)f((r=h(n,!0)).id),this._params.push(e.fromSearch(r.id,r.type,t.state)),d=c.lastIndex}this._segments.push(i),this._compiled=l.map(function(e){return sn.apply(null,e)}).concat(sn(i))}return g.encodeDashes=function(e){return encodeURIComponent(e).replace(/-/g,function(e){return"%5C%"+e.charCodeAt(0).toString(16).toUpperCase()})},g.pathSegmentsAndParams=function(e){return Me(e._segments,e._params.filter(function(e){return e.location===p.DefType.PATH}).concat(void 0)).reduce(ge,[]).filter(function(e){return""!==e&&x(e)})},g.queryParams=function(e){return e._params.filter(function(e){return e.location===p.DefType.SEARCH})},g.compare=function(e,t){var n=function(e){return e._cache.weights=e._cache.weights||(t=e,t._cache.segments=t._cache.segments||t._cache.path.map(g.pathSegmentsAndParams).reduce(ge,[]).reduce(tt,[]).map(function(e){return A(e)?cn(e):e}).reduce(ge,[])).map(function(e){return"/"===e?1:A(e)?2:e instanceof _t?3:void 0});var t},r=n(e),i=n(t);!function(e,t,n){for(var r=Math.max(e.length,t.length);e.length<r;)e.push(n);for(;t.length<r;)t.push(n)}(r,i,0);var o,a,s=Me(r,i);for(a=0;a<s.length;a++)if(0!==(o=s[a][0]-s[a][1]))return o;return 0},g.prototype.append=function(e){return this._children.push(e),e._cache={path:this._cache.path.concat(e),parent:this,pattern:null},e},g.prototype.isRoot=function(){return this._cache.path[0]===this},g.prototype.toString=function(){return this.pattern},g.prototype._getDecodedParamValue=function(e,t){return x(e)&&(this.config.decodeParams&&!t.type.raw&&(e=N(e)?e.map(function(e){return decodeURIComponent(e)}):decodeURIComponent(e)),e=t.type.decode(e)),t.value(e)},g.prototype.exec=function(e,r,t,n){var i=this;void 0===r&&(r={});var o,a,s,c=(o=this._cache,a="pattern",s=function(){return new RegExp(["^",$e(i._cache.path.map(y("_compiled"))).join(""),!1===i.config.strict?"/?":"","$"].join(""),i.config.caseInsensitive?"i":void 0)},o[a]=o[a]||s()).exec(e);if(!c)return null;var u,l=this.parameters(),d=l.filter(function(e){return!e.isSearch()}),f=l.filter(function(e){return e.isSearch()}),h=this._cache.path.map(function(e){return e._segments.length-1}).reduce(function(e,t){return e+t}),m={};if(h!==c.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");for(var p=0;p<h;p++){for(var g=d[p],v=c[p+1],b=0;b<g.replace.length;b++)g.replace[b].from===v&&(v=g.replace[b].to);v&&!0===g.array&&(void 0,v=fe(fe((u=function(e){return e.split("").reverse().join("")})(v).split(/-(?!\\)/),u),function(e){return e.replace(/\\-/g,"-")}).reverse()),m[g.id]=this._getDecodedParamValue(v,g)}return f.forEach(function(e){for(var t=r[e.id],n=0;n<e.replace.length;n++)e.replace[n].from===t&&(t=e.replace[n].to);m[e.id]=i._getDecodedParamValue(t,e)}),t&&(m["#"]=t),m},g.prototype.parameters=function(e){return void 0===e&&(e={}),!1===e.inherit?this._params:$e(this._cache.path.map(function(e){return e._params}))},g.prototype.parameter=function(r,e){var i=this;void 0===e&&(e={});var t=this._cache.parent;return function(){for(var e=0,t=i._params;e<t.length;e++){var n=t[e];if(n.id===r)return n}}()||!1!==e.inherit&&t&&t.parameter(r,e)||null},g.prototype.validates=function(r){return r=r||{},this.parameters().filter(function(e){return r.hasOwnProperty(e.id)}).map(function(e){return n=r[(t=e).id],!t||t.validates(n);var t,n}).reduce(me,!0)},g.prototype.format=function(a){void 0===a&&(a={});var e=this._cache.path,t=e.map(g.pathSegmentsAndParams).reduce(ge,[]).map(function(e){return A(e)?e:r(e)}),n=e.map(g.queryParams).reduce(ge,[]).map(r);if(t.concat(n).filter(function(e){return!1===e.isValid}).length)return null;function r(e){var t=e.value(a[e.id]),n=e.validates(t),r=e.isDefaultValue(t),i=!!r&&e.squash,o=e.type.encode(t);return{param:e,value:t,isValid:n,isDefaultValue:r,squash:i,encoded:o}}var i=t.reduce(function(e,t){if(A(t))return e+t;var n=t.squash,r=t.encoded,i=t.param;return!0===n?e.match(/\/$/)?e.slice(0,-1):e:A(n)?e+n:!1!==n?e:null==r?e:N(r)?e+fe(r,g.encodeDashes).join("-"):i.raw?e+r:e+encodeURIComponent(r)},""),o=n.map(function(e){var t=e.param,n=e.squash,r=e.encoded,i=e.isDefaultValue;if(!(null==r||i&&!1!==n)&&(N(r)||(r=[r]),0!==r.length))return t.raw||(r=fe(r,encodeURIComponent)),r.map(function(e){return t.id+"="+e})}).filter(W).reduce(ge,[]).join("&");return i+(o?"?"+o:"")+(a["#"]?"#"+a["#"]:"")},g.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,g}(),dn=function(){return(dn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},fn=function(){function e(e){this.router=e}return e.prototype.fromConfig=function(e,t,n){return new _t(e,t,p.DefType.CONFIG,this.router.urlService.config,n)},e.prototype.fromPath=function(e,t,n){return new _t(e,t,p.DefType.PATH,this.router.urlService.config,n)},e.prototype.fromSearch=function(e,t,n){return new _t(e,t,p.DefType.SEARCH,this.router.urlService.config,n)},e}(),hn=function(){function e(e){var r=this;this.router=e,this.paramFactory=new fn(this.router),this.UrlMatcher=ln,this.Param=_t,this.caseInsensitive=function(e){return r.router.urlService.config.caseInsensitive(e)},this.defaultSquashPolicy=function(e){return r.router.urlService.config.defaultSquashPolicy(e)},this.strictMode=function(e){return r.router.urlService.config.strictMode(e)},this.type=function(e,t,n){return r.router.urlService.config.type(e,t,n)||r}}return e.prototype.compile=function(e,t){var n=this.router.urlService.config,r=t&&!t.state&&t.params;t=r?dn({state:{params:r}},t):t;var i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive,decodeParams:n._decodeParams};return new ln(e,n.paramTypes,this.paramFactory,B(i,t))},e.prototype.isMatcher=function(n){if(!S(n))return!1;var r=!0;return q(ln.prototype,function(e,t){k(e)&&(r=r&&x(n[t])&&k(n[t]))}),r},e.prototype.$get=function(){var e=this.router.urlService.config;return e.paramTypes.enqueue=!1,e.paramTypes._flushTypeQueue(),this},e}(),mn=function(){function e(e){this.router=e}return e.prototype.compile=function(e){return this.router.urlMatcherFactory.compile(e)},e.prototype.create=function(e,t){var n=this,r=Gt.isState,i=Gt.isStateDeclaration,o=g([[A,function(e){return o(n.compile(e))}],[h(ln),function(e){return n.fromUrlMatcher(e,t)}],[s(r,i),function(e){return n.fromState(e,n.router)}],[h(RegExp),function(e){return n.fromRegExp(e,t)}],[k,function(e){return new pn(e,t)}]]),a=o(e);if(!a)throw new Error("invalid 'what' in when()");return a},e.prototype.fromUrlMatcher=function(n,t){var e=t;A(t)&&(t=this.router.urlMatcherFactory.compile(t)),h(ln)(t)&&(e=function(e){return t.format(e)});var r={urlMatcher:n,matchPriority:function(t){var e=n.parameters().filter(function(e){return e.isOptional});return e.length?e.filter(function(e){return t[e.id]}).length/e.length:1e-6},type:"URLMATCHER"};return B(new pn(function(e){var t=n.exec(e.path,e.search,e.hash);return n.validates(t)&&t},e),r)},e.prototype.fromState=function(e,r){var i=Gt.isStateDeclaration(e)?e.$$state():e,t={state:i,type:"STATE"};return B(this.fromUrlMatcher(i.url,function(e){var t=r.stateService,n=r.globals;t.href(i,e)!==t.href(n.current,n.params)&&t.transitionTo(i,e,{inherit:!0,source:"url"})}),t)},e.prototype.fromRegExp=function(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");var n=A(e)?function(n){return e.replace(/\$(\$|\d{1,2})/,function(e,t){return n["$"===t?0:Number(t)]})}:e,r={regexp:t,type:"REGEXP"};return B(new pn(function(e){return t.exec(e.path)},n),r)},e.isUrlRule=function(t){return t&&["type","match","handler"].every(function(e){return x(t[e])})},e}(),pn=function(e,t){var n=this;this.match=e,this.type="RAW",this.matchPriority=function(e){return 0-n.$id},this.handler=t||W};var gn,vn=function(){function e(e){var r=this;this.router=e,this.sync=function(e){return r.router.urlService.sync(e)},this.listen=function(e){return r.router.urlService.listen(e)},this.deferIntercept=function(e){return r.router.urlService.deferIntercept(e)},this.match=function(e){return r.router.urlService.match(e)},this.initial=function(e){return r.router.urlService.rules.initial(e)},this.otherwise=function(e){return r.router.urlService.rules.otherwise(e)},this.removeRule=function(e){return r.router.urlService.rules.removeRule(e)},this.rule=function(e){return r.router.urlService.rules.rule(e)},this.rules=function(){return r.router.urlService.rules.rules()},this.sort=function(e){return r.router.urlService.rules.sort(e)},this.when=function(e,t,n){return r.router.urlService.rules.when(e,t,n)},this.urlRuleFactory=new mn(e)}return e.prototype.update=function(e){var t=this.router.locationService;e?this.location=t.url():t.url()!==this.location&&t.url(this.location,!0)},e.prototype.push=function(e,t,n){var r=n&&!!n.replace;this.router.urlService.url(e.format(t||{}),r)},e.prototype.href=function(e,t,n){var r=e.format(t);if(null==r)return null;n=n||{absolute:!1};var i,o,a,s,c=this.router.urlService.config,u=c.html5Mode();if(u||null===r||(r="#"+c.hashPrefix()+r),i=r,o=u,a=n.absolute,r="/"===(s=c.baseHref())?i:o?Ke(s)+i:a?s.slice(1)+i:i,!n.absolute||!r)return r;var l=!u&&r?"/":"",d=c.port(),f=80===d||443===d?"":":"+d;return[c.protocol(),"://",c.host(),f,l,r].join("")},Object.defineProperty(e.prototype,"interceptDeferred",{get:function(){return this.router.urlService.interceptDeferred},enumerable:!1,configurable:!0}),e}(),bn=function(){function c(e){var n=this;this.router=e,this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:function(t){return le(n._uiViews,function(e){return n.router.$id+"."+e.id===t})},_registeredUIViews:function(){return n._uiViews},_activeViewConfigs:function(){return n._viewConfigs},_onSync:function(e){return n._listeners.push(e),function(){return Q(n._listeners,e)}}}}return c.normalizeUIViewTarget=function(e,t){void 0===t&&(t="");var n=t.split("@"),r=n[0]||"$default",i=A(n[1])?n[1]:"^",o=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);o&&(i=o[1],r=o[2]),"!"===r.charAt(0)&&(r=r.substr(1),i="");/^(\^(?:\.\^)*)$/.exec(i)?i=i.split(".").reduce(function(e,t){return e.parent},e).name:"."===i&&(i=e.name);return{uiViewName:r,uiViewContextAnchor:i}},c.prototype._rootViewContext=function(e){return this._rootContext=e||this._rootContext},c.prototype._viewConfigFactory=function(e,t){this._viewConfigFactories[e]=t},c.prototype.createViewConfig=function(e,t){var n=this._viewConfigFactories[t.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+t.$type);var r=n(e,t);return N(r)?r:[r]},c.prototype.deactivateViewConfig=function(e){pt.traceViewServiceEvent("<- Removing",e),Q(this._viewConfigs,e)},c.prototype.activateViewConfig=function(e){pt.traceViewServiceEvent("-> Registering",e),this._viewConfigs.push(e)},c.prototype.sync=function(){var n=this,r=this._uiViews.map(function(e){return[e.fqn,e]}).reduce(ke,{});function i(e){for(var t=e.viewDecl.$context,n=0;++n&&t.parent;)t=t.parent;return n}var o=u(function(e,t,n,r){return t*(e(n)-e(r))}),e=this._uiViews.sort(o(function(e){var t=function(e){return e&&e.parent?t(e.parent)+1:1};return 1e4*e.fqn.split(".").length+t(e.creationContext)},1)).map(function(e){var t=n._viewConfigs.filter(c.matches(r,e));return 1<t.length&&t.sort(o(i,-1)),{uiView:e,viewConfig:t[0]}}),t=e.map(function(e){return e.viewConfig}),a=this._viewConfigs.filter(function(e){return!Z(t,e)}).map(function(e){return{uiView:void 0,viewConfig:e}});e.forEach(function(e){-1!==n._uiViews.indexOf(e.uiView)&&e.uiView.configUpdated(e.viewConfig)});var s=e.concat(a);this._listeners.forEach(function(e){return e(s)}),pt.traceViewSync(s)},c.prototype.registerUIView=function(t){pt.traceViewServiceUIViewEvent("-> Registering",t);var e=this._uiViews;return e.filter(function(e){return e.fqn===t.fqn&&e.$type===t.$type}).length&&pt.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),function(){-1!==e.indexOf(t)?(pt.traceViewServiceUIViewEvent("<- Deregistering",t),Q(e)(t)):pt.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t)}},c.prototype.available=function(){return this._uiViews.map(y("fqn"))},c.prototype.active=function(){return this._uiViews.filter(y("$config")).map(y("name"))},c.matches=function(s,c){return function(e){if(c.$type!==e.viewDecl.$type)return!1;var t=e.viewDecl,n=t.$uiViewName.split("."),r=c.fqn.split(".");if(!z(n,r.slice(0-n.length)))return!1;var i=1-n.length||void 0,o=r.slice(0,i).join("."),a=s[o].creationContext;return t.$uiViewContextAnchor===(a&&a.name)}},c}(),yn=function(){function e(){this.params=new xt,this.lastStartedTransitionId=-1,this.transitionHistory=new He([],1),this.successfulTransitions=new He([],1)}return e.prototype.dispose=function(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null},e}();function $n(e){if(!(k(e)||A(e)||h(kt)(e)||kt.isDef(e)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return k(e)?e:m(e)}gn=function(e,t){var n,r,i,o,a,s,c,u,l=(n=e,(t.priority||0)-(n.priority||0));return 0!==l?l:(r=t,0!==(l=((i={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1})[e.type]||0)-(i[r.type]||0))?l:(a=t,0!==(l=(o=e).urlMatcher&&a.urlMatcher?ln.compare(o.urlMatcher,a.urlMatcher):0)?l:(c=t,(u={STATE:!0,URLMATCHER:!0})[(s=e).type]&&u[c.type]?0:(s.$id||0)-(c.$id||0))))};var En=function(){function e(e){this.router=e,this._sortFn=gn,this._rules=[],this._id=0,this.urlRuleFactory=new mn(e)}return e.prototype.dispose=function(e){this._rules=[],delete this._otherwiseFn},e.prototype.initial=function(e){var t=$n(e);this.rule(this.urlRuleFactory.create(function(e,t){return 0===t.globals.transitionHistory.size()&&!!/^\/?$/.exec(e.path)},t))},e.prototype.otherwise=function(e){var t=$n(e);this._otherwiseFn=this.urlRuleFactory.create(m(!0),t),this._sorted=!1},e.prototype.removeRule=function(e){Q(this._rules,e)},e.prototype.rule=function(e){var t=this;if(!mn.isUrlRule(e))throw new Error("invalid rule");return e.$id=this._id++,e.priority=e.priority||0,this._rules.push(e),this._sorted=!1,function(){return t.removeRule(e)}},e.prototype.rules=function(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])},e.prototype.sort=function(e){for(var t=this.stableSort(this._rules,this._sortFn=e||this._sortFn),n=0,r=0;r<t.length;r++)t[r]._group=n,r<t.length-1&&0!==this._sortFn(t[r],t[r+1])&&n++;this._rules=t,this._sorted=!0},e.prototype.ensureSorted=function(){this._sorted||this.sort()},e.prototype.stableSort=function(e,r){var t=e.map(function(e,t){return{elem:e,idx:t}});return t.sort(function(e,t){var n=r(e.elem,t.elem);return 0===n?e.idx-t.idx:n}),t.map(function(e){return e.elem})},e.prototype.when=function(e,t,n){var r=this.urlRuleFactory.create(e,t);return x(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r},e}(),wn=function(){function e(e){var t=this;this.router=e,this.paramTypes=new Ct,this._decodeParams=!0,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this.dispose=function(){return t.paramTypes.dispose()},this.baseHref=function(){return t.router.locationConfig.baseHref()},this.hashPrefix=function(e){return t.router.locationConfig.hashPrefix(e)},this.host=function(){return t.router.locationConfig.host()},this.html5Mode=function(){return t.router.locationConfig.html5Mode()},this.port=function(){return t.router.locationConfig.port()},this.protocol=function(){return t.router.locationConfig.protocol()}}return e.prototype.caseInsensitive=function(e){return this._isCaseInsensitive=x(e)?e:this._isCaseInsensitive},e.prototype.defaultSquashPolicy=function(e){if(x(e)&&!0!==e&&!1!==e&&!A(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return this._defaultSquashPolicy=x(e)?e:this._defaultSquashPolicy},e.prototype.strictMode=function(e){return this._isStrictMode=x(e)?e:this._isStrictMode},e.prototype.type=function(e,t,n){var r=this.paramTypes.type(e,t,n);return x(t)?this:r},e}(),_n=function(){function e(e){var r=this;this.router=e,this.interceptDeferred=!1,this.rules=new En(this.router),this.config=new wn(this.router),this.url=function(e,t,n){return r.router.locationService.url(e,t,n)},this.path=function(){return r.router.locationService.path()},this.search=function(){return r.router.locationService.search()},this.hash=function(){return r.router.locationService.hash()},this.onChange=function(e){return r.router.locationService.onChange(e)}}return e.prototype.dispose=function(){this.listen(!1),this.rules.dispose()},e.prototype.parts=function(){return{path:this.path(),search:this.search(),hash:this.hash()}},e.prototype.sync=function(e){if(!e||!e.defaultPrevented){var t=this.router,n=t.urlService,r=t.stateService,i={path:n.path(),search:n.search(),hash:n.hash()},o=this.match(i);g([[A,function(e){return n.url(e,!0)}],[kt.isDef,function(e){return r.go(e.state,e.params,e.options)}],[h(kt),function(e){return r.go(e.state(),e.params(),e.options())}]])(o&&o.rule.handler(o.match,i,this.router))}},e.prototype.listen=function(e){var t=this;if(!1!==e)return this._stopListeningFn=this._stopListeningFn||this.router.urlService.onChange(function(e){return t.sync(e)});this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn},e.prototype.deferIntercept=function(e){void 0===e&&(e=!0),this.interceptDeferred=e},e.prototype.match=function(e){var t=this;e=B({path:"",search:{},hash:""},e);for(var n,r,i,o=this.rules.rules(),a=0;a<o.length&&(!n||n.rule._group===o[a]._group);a++){var s=(r=o[a],void 0,(i=r.match(e,t.router))&&{match:i,rule:r,weight:r.matchPriority(i)});n=!n||s&&s.weight>n.weight?s:n}return n},e}(),Cn=0,xn=H("LocationServices",["url","path","search","hash","onChange"]),Mn=H("LocationConfig",["port","protocol","host","baseHref","html5Mode","hashPrefix"]),kn=function(){function e(e,t){void 0===e&&(e=xn),void 0===t&&(t=Mn),this.locationService=e,this.locationConfig=t,this.$id=Cn++,this._disposed=!1,this._disposables=[],this.trace=pt,this.viewService=new bn(this),this.globals=new yn,this.transitionService=new Kn(this),this.urlMatcherFactory=new hn(this),this.urlRouter=new vn(this),this.urlService=new _n(this),this.stateRegistry=new Xt(this),this.stateService=new Zn(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlService),this.disposable(e),this.disposable(t)}return e.prototype.disposable=function(e){this._disposables.push(e)},e.prototype.dispose=function(e){var t=this;e&&k(e.dispose)?e.dispose(this):(this._disposed=!0,this._disposables.slice().forEach(function(e){try{"function"==typeof e.dispose&&e.dispose(t),Q(t._disposables,e)}catch(e){}}))},e.prototype.plugin=function(e,t){void 0===t&&(t={});var n=new e(this,t);if(!n.name)throw new Error("Required property `name` missing on plugin: "+n);return this._disposables.push(n),this._plugins[n.name]=n},e.prototype.getPlugin=function(e){return e?this._plugins[e]:he(this._plugins)},e}();function Tn(t){t.addResolvable(Nt.fromData(kn,t.router),""),t.addResolvable(Nt.fromData(an,t),""),t.addResolvable(Nt.fromData("$transition$",t),""),t.addResolvable(Nt.fromData("$stateParams",t.params()),""),t.entering().forEach(function(e){t.addResolvable(Nt.fromData("$state$",e),e)})}var An=Z(["$transition$",an]),Sn=function(e){var t=he(e.treeChanges()).reduce(ge,[]).reduce(ye,[]),n=function(e){return An(e.token)?Nt.fromData(e.token,null):e};t.forEach(function(e){e.resolvables=e.resolvables.map(n)})},Nn=function(t){var e=t.to().redirectTo;if(e){var n=t.router.stateService;return k(e)?P.$q.when(e(t)).then(r):r(e)}function r(e){if(e)return e instanceof kt?e:A(e)?n.target(e,t.params(),t.options()):e.state||e.params?n.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}};function On(n){return function(e,t){return(0,t.$$state()[n])(e,t)}}var Dn=On("onExit"),In=On("onRetain"),Rn=On("onEnter"),Hn=function(e){return new Ht(e.treeChanges().to).resolvePath("EAGER",e).then(Y)},Pn=function(e,t){return new Ht(e.treeChanges().to).subContext(t.$$state()).resolvePath("LAZY",e).then(Y)},Ln=function(e){return new Ht(e.treeChanges().to).resolvePath("LAZY",e).then(Y)},jn=function(e){var t=P.$q,n=e.views("entering");if(n.length)return t.all(n.map(function(e){return t.when(e.load())})).then(Y)},Fn=function(e){var t=e.views("entering"),n=e.views("exiting");if(t.length||n.length){var r=e.router.viewService;n.forEach(function(e){return r.deactivateViewConfig(e)}),t.forEach(function(e){return r.activateViewConfig(e)}),r.sync()}},Un=function(e){var t=e.router.globals,n=function(){t.transition===e&&(t.transition=null)};e.onSuccess({},function(){t.successfulTransitions.enqueue(e),t.$current=e.$to(),t.current=t.$current.self,Ae(e.params(),t.params)},{priority:1e4}),e.promise.then(n,n)},Vn=function(e){var t=e.options(),n=e.router.stateService,r=e.router.urlRouter;if("url"!==t.source&&t.location&&n.$current.navigable){var i={replace:"replace"===t.location};r.push(n.$current.navigable.url,n.params,i)}r.update(!0)},qn=function(a){var s=a.router;var e=a.entering().filter(function(e){return!!e.$$state().lazyLoad}).map(function(e){return Bn(a,e)});return P.$q.all(e).then(function(){if("url"!==a.originalTransition().options().source){var e=a.targetState();return s.stateService.target(e.identifier(),e.params(),e.options())}var t=s.urlService,n=t.match(t.parts()),r=n&&n.rule;if(r&&"STATE"===r.type){var i=r.state,o=n.match;return s.stateService.target(i,o,a.options())}s.urlService.sync()})};function Bn(t,n){var r=n.$$state().lazyLoad,e=r._promise;if(!e){e=r._promise=P.$q.when(r(t,n)).then(function(e){e&&Array.isArray(e.states)&&e.states.forEach(function(e){return t.router.stateRegistry.register(e)});return e}).then(function(e){return delete n.lazyLoad,delete n.$$state().lazyLoad,delete r._promise,e},function(e){return delete r._promise,P.$q.reject(e)})}return e}var zn=function(e,t,n,r,i,o,a,s){void 0===i&&(i=!1),void 0===o&&(o=Jt.HANDLE_RESULT),void 0===a&&(a=Jt.REJECT_ERROR),void 0===s&&(s=!1),this.name=e,this.hookPhase=t,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=o,this.getErrorHandler=a,this.synchronous=s};function Wn(e){var t=e._ignoredReason();if(t){pt.traceTransitionIgnored(e);var n=e.router.globals.transition;return"SameAsCurrent"===t&&n&&n.abort(),Le.ignored().toPromise()}}function Yn(e){if(!e.valid())throw new Error(e.error().toString())}var Gn={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:function(){return null},source:"unknown"},Kn=function(){function e(e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=e,this.$view=e.viewService,this._deregisterHookFns={},this._pluginapi=G(m(this),{},m(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),e.globals.successfulTransitions.onEvict(Sn)}return e.prototype.onCreate=function(e,t,n){},e.prototype.onBefore=function(e,t,n){},e.prototype.onStart=function(e,t,n){},e.prototype.onExit=function(e,t,n){},e.prototype.onRetain=function(e,t,n){},e.prototype.onEnter=function(e,t,n){},e.prototype.onFinish=function(e,t,n){},e.prototype.onSuccess=function(e,t,n){},e.prototype.onError=function(e,t,n){},e.prototype.dispose=function(e){he(this._registeredHooks).forEach(function(t){return t.forEach(function(e){e._deregistered=!0,Q(t,e)})})},e.prototype.create=function(e,t){return new an(e,t,this._router)},e.prototype._defineCoreEvents=function(){var e=p.TransitionHookPhase,t=Jt,n=this._criteriaPaths;this._defineEvent("onCreate",e.CREATE,0,n.to,!1,t.LOG_REJECTED_RESULT,t.THROW_ERROR,!0),this._defineEvent("onBefore",e.BEFORE,0,n.to),this._defineEvent("onStart",e.RUN,0,n.to),this._defineEvent("onExit",e.RUN,100,n.exiting,!0),this._defineEvent("onRetain",e.RUN,200,n.retained),this._defineEvent("onEnter",e.RUN,300,n.entering),this._defineEvent("onFinish",e.RUN,400,n.to),this._defineEvent("onSuccess",e.SUCCESS,0,n.to,!1,t.LOG_REJECTED_RESULT,t.LOG_ERROR,!0),this._defineEvent("onError",e.ERROR,0,n.to,!1,t.LOG_REJECTED_RESULT,t.LOG_ERROR,!0)},e.prototype._defineCorePaths=function(){var e=p.TransitionHookScope.STATE,t=p.TransitionHookScope.TRANSITION;this._definePathType("to",t),this._definePathType("from",t),this._definePathType("exiting",e),this._definePathType("retained",e),this._definePathType("entering",e)},e.prototype._defineEvent=function(e,t,n,r,i,o,a,s){void 0===i&&(i=!1),void 0===o&&(o=Jt.HANDLE_RESULT),void 0===a&&(a=Jt.REJECT_ERROR),void 0===s&&(s=!1);var c=new zn(e,t,n,r,i,o,a,s);this._eventTypes.push(c),nn(this,this,c)},e.prototype._getEvents=function(t){return(x(t)?this._eventTypes.filter(function(e){return e.hookPhase===t}):this._eventTypes.slice()).sort(function(e,t){var n=e.hookPhase-t.hookPhase;return 0===n?e.hookOrder-t.hookOrder:n})},e.prototype._definePathType=function(e,t){this._criteriaPaths[e]={name:e,scope:t}},e.prototype._getPathTypes=function(){return this._criteriaPaths},e.prototype.getHooks=function(e){return this._registeredHooks[e]},e.prototype._registerCoreTransitionHooks=function(){var e=this._deregisterHookFns;e.addCoreResolves=this.onCreate({},Tn),e.ignored=this.onBefore({},Wn,{priority:-9999}),e.invalid=this.onBefore({},Yn,{priority:-1e4}),e.redirectTo=this.onStart({to:function(e){return!!e.redirectTo}},Nn),e.onExit=this.onExit({exiting:function(e){return!!e.onExit}},Dn),e.onRetain=this.onRetain({retained:function(e){return!!e.onRetain}},In),e.onEnter=this.onEnter({entering:function(e){return!!e.onEnter}},Rn),e.eagerResolve=this.onStart({},Hn,{priority:1e3}),e.lazyResolve=this.onEnter({entering:m(!0)},Pn,{priority:1e3}),e.resolveAll=this.onFinish({},Ln,{priority:1e3}),e.loadViews=this.onFinish({},jn),e.activateViews=this.onSuccess({},Fn),e.updateGlobals=this.onCreate({},Un),e.updateUrl=this.onSuccess({},Vn,{priority:9999}),e.lazyLoad=this.onBefore({entering:function(e){return!!e.lazyLoad}},qn)},e}(),Zn=function(){function n(e){this.router=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(e){e instanceof Error&&e.stack?(console.error(e),console.error(e.stack)):e instanceof Le?(console.error(e.toString()),e.detail&&e.detail.stack&&console.error(e.detail.stack)):console.error(e)};var t=Object.keys(n.prototype).filter(d(Z(["current","$current","params","transition"])));G(m(n.prototype),this,m(this),t)}return Object.defineProperty(n.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){this.defaultErrorHandler(Y),this.invalidCallbacks=[]},n.prototype._handleInvalidTargetState=function(e,n){var r=this,i=Tt.makeTargetState(this.router.stateRegistry,e),t=this.router.globals,o=function(){return t.transitionHistory.peekTail()},a=o(),s=new He(this.invalidCallbacks.slice()),c=new Ht(e).injector(),u=function(e){if(e instanceof kt){var t=e;return(t=r.target(t.identifier(),t.params(),t.options())).valid()?o()!==a?Le.superseded().toPromise():r.transitionTo(t.identifier(),t.params(),t.options()):Le.invalid(t.error()).toPromise()}};return function t(){var e=s.dequeue();return void 0===e?Le.invalid(n.error()).toPromise():P.$q.when(e(n,i,c)).then(u).then(function(e){return e||t()})}()},n.prototype.onInvalid=function(e){return this.invalidCallbacks.push(e),function(){Q(this.invalidCallbacks)(e)}.bind(this)},n.prototype.reload=function(e){return this.transitionTo(this.current,this.params,{reload:!x(e)||e,inherit:!1,notify:!1})},n.prototype.go=function(e,t,n){var r=re(n,{relative:this.$current,inherit:!0},Gn);return this.transitionTo(e,t,r)},n.prototype.target=function(e,t,n){if(void 0===n&&(n={}),S(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");var r=this.router.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error("No such reload state '"+(A(n.reload)?n.reload:n.reload.name)+"'");return new kt(this.router.stateRegistry,e,t,n)},n.prototype.getCurrentPath=function(){var e=this,t=this.router.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:[new Mt(e.router.stateRegistry.root())]},n.prototype.transitionTo=function(e,t,n){var o=this;void 0===t&&(t={}),void 0===n&&(n={});var a=this.router,s=a.globals;n=re(n,Gn);var r=function(){return s.transition};n=B(n,{current:r});var i=this.target(e,t,n),c=this.getCurrentPath();if(!i.exists())return this._handleInvalidTargetState(c,i);if(!i.valid())return Ie(i.error());if(!1===n.supercede&&r())return Le.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();var u=function(i){return function(e){if(e instanceof Le){var t=a.globals.lastStartedTransitionId<=i.$id;if(e.type===p.RejectType.IGNORED)return t&&a.urlRouter.update(),P.$q.when(s.current);var n=e.detail;if(e.type===p.RejectType.SUPERSEDED&&e.redirected&&n instanceof kt){var r=i.redirect(n);return r.run().catch(u(r))}if(e.type===p.RejectType.ABORTED)return t&&a.urlRouter.update(),P.$q.reject(e)}return o.defaultErrorHandler()(e),P.$q.reject(e)}},l=this.router.transitionService.create(c,i),d=l.run().catch(u(l));return De(d),B(d,{transition:l})},n.prototype.is=function(e,t,n){n=re(n,{relative:this.$current});var r=this.router.stateRegistry.matcher.find(e,n.relative);if(x(r)){if(this.$current!==r)return!1;if(!t)return!0;var i=r.parameters({inherit:!0,matchingKeys:t});return _t.equals(i,_t.values(i,t),this.params)}},n.prototype.includes=function(e,t,n){n=re(n,{relative:this.$current});var r=A(e)&&Re.fromString(e);if(r){if(!r.matches(this.$current.name))return!1;e=this.$current.name}var i=this.router.stateRegistry.matcher.find(e,n.relative),o=this.$current.includes;if(x(i)){if(!x(o[i.name]))return!1;if(!t)return!0;var a=i.parameters({inherit:!0,matchingKeys:t});return _t.equals(a,_t.values(a,t),this.params)}},n.prototype.href=function(e,t,n){n=re(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),t=t||{};var r=this.router.stateRegistry.matcher.find(e,n.relative);if(!x(r))return null;n.inherit&&(t=this.params.$inherit(t,this.$current,r));var i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.router.urlRouter.href(i.url,t,{absolute:n.absolute}):null},n.prototype.defaultErrorHandler=function(e){return this._defaultErrorHandler=e||this._defaultErrorHandler},n.prototype.get=function(e,t){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(e,t||this.$current)},n.prototype.lazyLoad=function(e,t){var n=this.get(e);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+e);var r=this.getCurrentPath(),i=Tt.makeTargetState(this.router.stateRegistry,r);return Bn(t=t||this.router.transitionService.create(r,i),n)},n}(),Xn={when:function(n){return new Promise(function(e,t){return e(n)})},reject:function(n){return new Promise(function(e,t){t(n)})},defer:function(){var n={};return n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n},all:function(e){if(N(e))return Promise.all(e);if(S(e)){var t=Object.keys(e).map(function(t){return e[t].then(function(e){return{key:t,val:e}})});return Xn.all(t).then(function(e){return e.reduce(function(e,t){return e[t.key]=t.val,e},{})})}}},Qn={},Jn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,er=/([^\s,]+)/g,tr={get:function(e){return Qn[e]},has:function(e){return null!=tr.get(e)},invoke:function(e,t,n){var r=B({},Qn,n||{}),i=tr.annotate(e),o=we(function(e){return r.hasOwnProperty(e)},function(e){return"DI can't find injectable: '"+e+"'"}),a=i.filter(o).map(function(e){return r[e]});return k(e)?e.apply(t,a):e.slice(-1)[0].apply(t,a)},annotate:function(e){if(!I(e))throw new Error("Not an injectable function: "+e);if(e&&e.$inject)return e.$inject;if(N(e))return e.slice(0,-1);var t=e.toString().replace(Jn,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(er)||[]}},nr=function(e,t){var n=t[0],r=t[1];return e.hasOwnProperty(n)?N(e[n])?e[n].push(r):e[n]=[e[n],r]:e[n]=r,e},rr=function(e){return e.split("&").filter(W).map(Qe).reduce(nr,{})};function ir(e){var t=function(e){return e||""},n=Ze(e).map(t),r=n[0],i=n[1],o=Xe(r).map(t);return{path:o[0],search:o[1],hash:i,url:e}}var or=function(e){var t=e.path(),n=e.search(),r=e.hash(),i=Object.keys(n).map(function(t){var e=n[t];return(N(e)?e:[e]).map(function(e){return t+"="+e})}).reduce(ge,[]).join("&");return t+(i?"?"+i:"")+(r?"#"+r:"")};function ar(r,i,o,a){return function(e){var t=e.locationService=new o(e),n=e.locationConfig=new a(e,i);return{name:r,service:t,configuration:n,dispose:function(e){e.dispose(t),e.dispose(n)}}}}var sr,cr,ur,lr=function(){function e(e,t){var n=this;this.fireAfterUpdate=t,this._listeners=[],this._listener=function(t){return n._listeners.forEach(function(e){return e(t)})},this.hash=function(){return ir(n._get()).hash},this.path=function(){return ir(n._get()).path},this.search=function(){return rr(ir(n._get()).search)},this._location=j.location,this._history=j.history}return e.prototype.url=function(t,e){return void 0===e&&(e=!0),x(t)&&t!==this._get()&&(this._set(null,null,t,e),this.fireAfterUpdate&&this._listeners.forEach(function(e){return e({url:t})})),or(this)},e.prototype.onChange=function(e){var t=this;return this._listeners.push(e),function(){return Q(t._listeners,e)}},e.prototype.dispose=function(e){ne(this._listeners)},e}(),dr=(sr=function(e,t){return(sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}sr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),fr=function(n){function e(e){var t=n.call(this,e,!1)||this;return j.addEventListener("hashchange",t._listener,!1),t}return dr(e,n),e.prototype._get=function(){return Je(this._location.hash)},e.prototype._set=function(e,t,n,r){this._location.hash=n},e.prototype.dispose=function(e){n.prototype.dispose.call(this,e),j.removeEventListener("hashchange",this._listener)},e}(lr),hr=(cr=function(e,t){return(cr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}cr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),mr=function(t){function e(e){return t.call(this,e,!0)||this}return hr(e,t),e.prototype._get=function(){return this._url},e.prototype._set=function(e,t,n,r){this._url=n},e}(lr),pr=(ur=function(e,t){return(ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ur(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),gr=function(n){function e(e){var t=n.call(this,e,!0)||this;return t._config=e.urlService.config,j.addEventListener("popstate",t._listener,!1),t}return pr(e,n),e.prototype._getBasePrefix=function(){return Ke(this._config.baseHref())},e.prototype._get=function(){var e=this._location,t=e.pathname,n=e.hash,r=e.search;r=Xe(r)[1],n=Ze(n)[1];var i=this._getBasePrefix(),o=t===this._config.baseHref(),a=t.substr(0,i.length)===i;return(t=o?"/":a?t.substring(i.length):t)+(r?"?"+r:"")+(n?"#"+n:"")},e.prototype._set=function(e,t,n,r){var i=this._getBasePrefix(),o=n&&"/"!==n[0]?"/":"",a=""===n||"/"===n?this._config.baseHref():i+o+n;r?this._history.replaceState(e,t,a):this._history.pushState(e,t,a)},e.prototype.dispose=function(e){n.prototype.dispose.call(this,e),j.removeEventListener("popstate",this._listener)},e}(lr),vr=function(){var t=this;this.dispose=Y,this._baseHref="",this._port=80,this._protocol="http",this._host="localhost",this._hashPrefix="",this.port=function(){return t._port},this.protocol=function(){return t._protocol},this.host=function(){return t._host},this.baseHref=function(){return t._baseHref},this.html5Mode=function(){return!1},this.hashPrefix=function(e){return x(e)?t._hashPrefix=e:t._hashPrefix}},br=function(){function e(e,t){void 0===t&&(t=!1),this._isHtml5=t,this._baseHref=void 0,this._hashPrefix=""}return e.prototype.port=function(){return location.port?Number(location.port):"https"===this.protocol()?443:80},e.prototype.protocol=function(){return location.protocol.replace(/:/g,"")},e.prototype.host=function(){return location.hostname},e.prototype.html5Mode=function(){return this._isHtml5},e.prototype.hashPrefix=function(e){return x(e)?this._hashPrefix=e:this._hashPrefix},e.prototype.baseHref=function(e){return x(e)&&(this._baseHref=e),E(this._baseHref)&&(this._baseHref=this.getBaseHref()),this._baseHref},e.prototype.getBaseHref=function(){var e=document.getElementsByTagName("base")[0];return e&&e.href?e.href.replace(/^([^/:]*:)?\/\/[^/]*/,""):this._isHtml5?"/":location.pathname||"/"},e.prototype.dispose=function(){},e}();function yr(e){return P.$injector=tr,{name:"vanilla.services",$q:P.$q=Xn,$injector:tr,dispose:function(){return null}}}var $r=ar("vanilla.hashBangLocation",!1,fr,br),Er=ar("vanilla.pushStateLocation",!0,gr,br),wr=ar("vanilla.memoryLocation",!1,mr,vr),_r=function(){function e(){}return e.prototype.dispose=function(e){},e}(),Cr=Object.freeze({__proto__:null,root:j,fromJson:U,toJson:V,forEach:q,extend:B,equals:z,identity:W,noop:Y,createProxyFunctions:G,inherit:K,inArray:Z,_inArray:X,removeFrom:Q,_removeFrom:J,pushTo:ee,_pushTo:te,deregAll:ne,defaults:re,mergeR:ie,ancestors:oe,pick:ae,omit:se,pluck:ce,filter:ue,find:le,mapObj:de,map:fe,values:he,allTrueR:me,anyTrueR:pe,unnestR:ge,flattenR:ve,pushR:be,uniqR:ye,unnest:$e,flatten:Ee,assertPredicate:we,assertMap:_e,assertFn:Ce,pairs:xe,arrayTuples:Me,applyPairs:ke,tail:Te,copy:Ae,_extend:Se,silenceUncaughtInPromise:De,silentRejection:Ie,makeStub:H,services:P,Glob:Re,curry:u,compose:n,pipe:c,prop:y,propEq:v,parse:C,not:d,and:i,or:s,all:l,any:f,is:h,eq:o,val:m,invoke:a,pattern:g,isUndefined:E,isDefined:x,isNull:w,isNullOrUndefined:M,isFunction:k,isNumber:T,isString:A,isObject:S,isArray:N,isDate:O,isRegExp:D,isInjectable:I,isPromise:R,Queue:He,maxLength:je,padString:Fe,kebobString:Ue,functionToString:Ve,fnToString:qe,stringify:We,beforeAfterSubstr:Ye,hostRegex:Ge,stripLastPathElement:Ke,splitHash:Ze,splitQuery:Xe,splitEqual:Qe,trimHashVal:Je,splitOnDelim:et,joinNeighborsR:tt,get Category(){return p.Category},Trace:mt,trace:pt,get DefType(){return p.DefType},Param:_t,ParamTypes:Ct,StateParams:xt,ParamType:gt,PathNode:Mt,PathUtils:Tt,resolvePolicies:At,defaultResolvePolicy:St,Resolvable:Nt,NATIVE_INJECTOR_TOKEN:Rt,ResolveContext:Ht,resolvablesBuilder:Bt,StateBuilder:Yt,StateObject:Gt,StateMatcher:Kt,StateQueueManager:Zt,StateRegistry:Xt,StateService:Zn,TargetState:kt,get TransitionHookPhase(){return p.TransitionHookPhase},get TransitionHookScope(){return p.TransitionHookScope},HookBuilder:rn,matchState:en,RegisteredHook:tn,makeEvent:nn,get RejectType(){return p.RejectType},Rejection:Le,Transition:an,TransitionHook:Jt,TransitionEventType:zn,defaultTransOpts:Gn,TransitionService:Kn,UrlRules:En,UrlConfig:wn,UrlMatcher:ln,ParamFactory:fn,UrlMatcherFactory:hn,UrlRouter:vn,UrlRuleFactory:mn,BaseUrlRule:pn,UrlService:_n,ViewService:bn,UIRouterGlobals:yn,UIRouter:kn,$q:Xn,$injector:tr,BaseLocationServices:lr,HashLocationService:fr,MemoryLocationService:mr,PushStateLocationService:gr,MemoryLocationConfig:vr,BrowserLocationConfig:br,keyValsToObjectR:nr,getParams:rr,parseUrl:ir,buildUrl:or,locationPluginFactory:ar,servicesPlugin:yr,hashLocationPlugin:$r,pushStateLocationPlugin:Er,memoryLocationPlugin:wr,UIRouterPluginBase:_r});function xr(){var n=null;return function(e,t){return n=n||P.$injector.get("$templateFactory"),[new Ar(e,t,n)]}}var Mr=function(e,n){return e.reduce(function(e,t){return e||x(n[t])},!1)};function kr(r){if(!r.parent)return{};var i=["component","bindings","componentProvider"],o=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),e=i.concat(o);if(x(r.views)&&Mr(e,r))throw new Error("State '"+r.name+"' has a 'views' object. It cannot also have \"view properties\" at the state level.  Move the following properties into a view (in the 'views' object):  "+e.filter(function(e){return x(r[e])}).join(", "));var a={},t=r.views||{$default:ae(r,e)};return q(t,function(e,t){if(t=t||"$default",A(e)&&(e={component:e}),e=B({},e),Mr(i,e)&&Mr(o,e))throw new Error("Cannot combine: "+i.join("|")+" with: "+o.join("|")+" in stateview: '"+t+"@"+r.name+"'");e.resolveAs=e.resolveAs||"$resolve",e.$type="ng1",e.$context=r,e.$name=t;var n=bn.normalizeUIViewTarget(e.$context,e.$name);e.$uiViewName=n.uiViewName,e.$uiViewContextAnchor=n.uiViewContextAnchor,a[t]=e}),a}var Tr=0,Ar=function(){function e(e,t,n){var r=this;this.path=e,this.viewDecl=t,this.factory=n,this.$id=Tr++,this.loaded=!1,this.getTemplate=function(e,t){return r.component?r.factory.makeComponentTemplate(e,t,r.component,r.viewDecl.bindings):r.template}}return e.prototype.load=function(){var t=this,e=P.$q,n=new Ht(this.path),r=this.path.reduce(function(e,t){return B(e,t.paramValues)},{}),i={template:e.when(this.factory.fromConfig(this.viewDecl,r,n)),controller:e.when(this.getController(n))};return e.all(i).then(function(e){return pt.traceViewServiceEvent("Loaded",t),t.controller=e.controller,B(t,e.template),t})},e.prototype.getController=function(e){var t=this.viewDecl.controllerProvider;if(!I(t))return this.viewDecl.controller;var n=P.$injector.annotate(t),r=N(t)?Te(t):t;return new Nt("",r,n).get(e)},e}(),Sr=function(){function e(){var r=this;this._useHttp=_.version.minor<3,this.$get=["$http","$templateCache","$injector",function(e,t,n){return r.$templateRequest=n.has&&n.has("$templateRequest")&&n.get("$templateRequest"),r.$http=e,r.$templateCache=t,r}]}return e.prototype.useHttpService=function(e){this._useHttp=e},e.prototype.fromConfig=function(e,t,n){var r=function(e){return P.$q.when(e).then(function(e){return{template:e}})},i=function(e){return P.$q.when(e).then(function(e){return{component:e}})};return x(e.template)?r(this.fromString(e.template,t)):x(e.templateUrl)?r(this.fromUrl(e.templateUrl,t)):x(e.templateProvider)?r(this.fromProvider(e.templateProvider,t,n)):x(e.component)?i(e.component):x(e.componentProvider)?i(this.fromComponentProvider(e.componentProvider,t,n)):r("<ui-view></ui-view>")},e.prototype.fromString=function(e,t){return k(e)?e(t):e},e.prototype.fromUrl=function(e,t){return k(e)&&(e=e(t)),null==e?null:this._useHttp?this.$http.get(e,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(e){return e.data}):this.$templateRequest(e)},e.prototype.fromProvider=function(e,t,n){var r=P.$injector.annotate(e),i=N(e)?Te(e):e;return new Nt("",i,r).get(n)},e.prototype.fromComponentProvider=function(e,t,n){var r=P.$injector.annotate(e),i=N(e)?Te(e):e;return new Nt("",i,r).get(n)},e.prototype.makeComponentTemplate=function(c,u,e,l){l=l||{};var d=3<=_.version.minor?"::":"",f=function(e){var t=Ue(e);return/^(x|data)-/.exec(t)?"x-"+t:t},t=function(e){var t=P.$injector.get(e+"Directive");if(!t||!t.length)throw new Error("Unable to find component named '"+e+"'");return t.map(Nr).reduce(ge,[])}(e).map(function(e){var t=e.name,n=e.type,r=f(t);if(c.attr(r)&&!l[t])return r+"='"+c.attr(r)+"'";var i=l[t]||t;if("@"===n)return r+"='{{"+d+"$resolve."+i+"}}'";if("&"!==n)return r+"='"+d+"$resolve."+i+"'";var o=u.getResolvable(i),a=o&&o.data,s=a&&P.$injector.annotate(a)||[];return r+"='$resolve."+i+(N(a)?"["+(a.length-1)+"]":"")+"("+s.join(",")+")'"}).join(" "),n=f(e);return"<"+n+" "+t+"></"+n+">"},e}();var Nr=function(e){return S(e.bindToController)?Or(e.bindToController):Or(e.scope)},Or=function(t){return Object.keys(t||{}).map(function(e){return[e,/^([=<@&])[?]?(.*)/.exec(t[e])]}).filter(function(e){return x(e)&&N(e[1])}).map(function(e){return{name:e[1][2]||e[0],type:e[1][1]}})},Dr=function(){function n(e,t){this.stateRegistry=e,this.stateService=t,G(m(n.prototype),this,m(this))}return n.prototype.decorator=function(e,t){return this.stateRegistry.decorator(e,t)||this},n.prototype.state=function(e,t){return S(e)?t=e:t.name=e,this.stateRegistry.register(t),this},n.prototype.onInvalid=function(e){return this.stateService.onInvalid(e)},n}(),Ir=function(t){return function(e){var i=e[t],o="onExit"===t?"from":"to";return i?function(e,t){var n=new Ht(e.treeChanges(o)).subContext(t.$$state()),r=B(Xr(n),{$state$:t,$transition$:e});return P.$injector.invoke(i,this,r)}:void 0}},Rr=function(){function e(e){this._urlListeners=[],this.$locationProvider=e;var t=m(e);G(t,this,t,["hashPrefix"])}return e.monkeyPatchPathParameterType=function(e){var t=e.urlMatcherFactory.type("path");t.encode=function(e){return null!=e?e.toString().replace(/(~|\/)/g,function(e){return{"~":"~~","/":"~2F"}[e]}):e},t.decode=function(e){return null!=e?e.toString().replace(/(~~|~2F)/g,function(e){return{"~~":"~","~2F":"/"}[e]}):e}},e.prototype.dispose=function(){},e.prototype.onChange=function(e){var t=this;return this._urlListeners.push(e),function(){return Q(t._urlListeners)(e)}},e.prototype.html5Mode=function(){var e=this.$locationProvider.html5Mode();return(e=S(e)?e.enabled:e)&&this.$sniffer.history},e.prototype.baseHref=function(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)},e.prototype.url=function(e,t,n){return void 0===t&&(t=!1),x(e)&&this.$location.url(e),t&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},e.prototype._runtimeServices=function(e,t,n,r,i){var o=this;this.$location=t,this.$sniffer=n,this.$browser=r,this.$window=i,e.$on("$locationChangeSuccess",function(t){return o._urlListeners.forEach(function(e){return e(t)})});var a=m(t);G(a,this,a,["replace","path","search","hash"]),G(a,this,a,["port","protocol","host"])},e}(),Hr=function(){function n(e){this.router=e}return n.injectableHandler=function(t,n){return function(e){return P.$injector.invoke(n,null,{$match:e,$stateParams:t.globals.params})}},n.prototype.$get=function(){var e=this.router.urlService;return this.router.urlRouter.update(!0),e.interceptDeferred||e.listen(),this.router.urlRouter},n.prototype.rule=function(e){var t=this;if(!k(e))throw new Error("'rule' must be a function");var n=new pn(function(){return e(P.$injector,t.router.locationService)},W);return this.router.urlService.rules.rule(n),this},n.prototype.otherwise=function(e){var t=this,n=this.router.urlService.rules;if(A(e))n.otherwise(e);else{if(!k(e))throw new Error("'rule' must be a string or function");n.otherwise(function(){return e(P.$injector,t.router.locationService)})}return this},n.prototype.when=function(e,t){return(N(t)||k(t))&&(t=n.injectableHandler(this.router,t)),this.router.urlService.rules.when(e,t),this},n.prototype.deferIntercept=function(e){this.router.urlService.deferIntercept(e)},n}();_.module("ui.router.angular1",[]);var Pr=_.module("ui.router.init",["ng"]),Lr=_.module("ui.router.util",["ui.router.init"]),jr=_.module("ui.router.router",["ui.router.util"]),Fr=_.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),Ur=_.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),Vr=(_.module("ui.router.compat",["ui.router"]),null);function qr(e){(Vr=this.router=new kn).stateProvider=new Dr(Vr.stateRegistry,Vr.stateService),Vr.stateRegistry.decorator("views",kr),Vr.stateRegistry.decorator("onExit",Ir("onExit")),Vr.stateRegistry.decorator("onRetain",Ir("onRetain")),Vr.stateRegistry.decorator("onEnter",Ir("onEnter")),Vr.viewService._pluginapi._viewConfigFactory("ng1",xr()),Vr.urlService.config._decodeParams=!1;var s=Vr.locationService=Vr.locationConfig=new Rr(e);function t(e,t,n,r,i,o,a){return s._runtimeServices(i,e,r,t,n),delete Vr.router,delete Vr.$get,Vr}return Rr.monkeyPatchPathParameterType(Vr),((Vr.router=Vr).$get=t).$inject=["$location","$browser","$window","$sniffer","$rootScope","$http","$templateCache"],Vr}qr.$inject=["$locationProvider"];var Br=function(n){return["$uiRouterProvider",function(e){var t=e.router[n];return t.$get=function(){return t},t}]};function zr(t,e,n){if(P.$injector=t,P.$q=e,!Object.prototype.hasOwnProperty.call(t,"strictDi"))try{t.invoke(["checkStrictDi",function(e){}])}catch(e){t.strictDi=!!/strict mode/.exec(e&&e.toString())}n.stateRegistry.get().map(function(e){return e.$$state().resolvables}).reduce(ge,[]).filter(function(e){return"deferred"===e.deps}).forEach(function(e){return e.deps=t.annotate(e.resolveFn,t.strictDi)})}zr.$inject=["$injector","$q","$uiRouter"];function Wr(e){e.$watch(function(){pt.approximateDigests++})}Wr.$inject=["$rootScope"],Pr.provider("$uiRouter",qr),jr.provider("$urlRouter",["$uiRouterProvider",function(e){return e.urlRouterProvider=new Hr(e)}]),Lr.provider("$urlService",Br("urlService")),Lr.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return Vr.urlMatcherFactory}]),Lr.provider("$templateFactory",function(){return new Sr}),Fr.provider("$stateRegistry",Br("stateRegistry")),Fr.provider("$uiRouterGlobals",Br("globals")),Fr.provider("$transitions",Br("transitionService")),Fr.provider("$state",["$uiRouterProvider",function(){return B(Vr.stateProvider,{$get:function(){return Vr.stateService}})}]),Fr.factory("$stateParams",["$uiRouter",function(e){return e.globals.params}]),Ur.factory("$view",function(){return Vr.viewService}),Ur.service("$trace",function(){return pt}),Ur.run(Wr),Lr.run(["$urlMatcherFactory",function(e){}]),Fr.run(["$state",function(e){}]),jr.run(["$urlRouter",function(e){}]),Pr.run(zr);var Yr,Gr,Kr,Zr,Xr=function(n){return n.getTokens().filter(A).map(function(e){var t=n.getResolvable(e);return[e,"NOWAIT"===n.getPolicy(t).async?t.promise:t.data]}).reduce(ke,{})};function Qr(e){var t=e.match(/^\s*({[^}]*})\s*$/);t&&(e="("+t[1]+")");var n=e.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function Jr(e){var t=e.parent().inheritedData("$uiView"),n=C("$cfg.path")(t);return n?Te(n).state.name:void 0}function ei(e,t,n){var r,i=n.uiState||e.current.name,o=B((r=e,{relative:Jr(t)||r.$current,inherit:!0,source:"sref"}),n.uiStateOpts||{}),a=e.href(i,n.uiStateParams,o);return{uiState:i,uiStateParams:n.uiStateParams,uiStateOpts:o,href:a}}function ti(e){var t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.prop("href")),n="FORM"===e[0].nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.prop("tagName").toUpperCase(),clickable:!n}}function ni(o,a,s,c,u){return function(e){var t=e.which||e.button,n=u();if(!(1<t||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||o.attr("target"))){var r=s(function(){o.attr("disabled")||a.go(n.uiState,n.uiStateParams,n.uiStateOpts)});e.preventDefault();var i=c.isAnchor&&!n.href?1:0;e.preventDefault=function(){i--<=0&&s.cancel(r)}}}}function ri(i,e,o,t){var a;t&&(a=t.events),N(a)||(a=["click"]);for(var n=i.on?"on":"bind",r=0,s=a;r<s.length;r++){var c=s[r];i[n](c,o)}e.$on("$destroy",function(){for(var e=i.off?"off":"unbind",t=0,n=a;t<n.length;t++){var r=n[t];i[e](r,o)}})}function ii(r){var e=function(e,t,n){return r.is(e,t,n)};return e.$stateful=!0,e}function oi(r){var e=function(e,t,n){return r.includes(e,t,n)};return e.$stateful=!0,e}function ai(p,g,v,e,b){var y=C("viewDecl.controllerAs"),$=C("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(e){var m=e.html();return e.empty(),function(t,n){var e=n.data("$uiView");if(!e)return n.html(m),void p(n.contents())(t);var r=e.$cfg||{viewDecl:{},getTemplate:Y},i=r.path&&new Ht(r.path);n.html(r.getTemplate(n,i)||m),pt.traceUIViewFill(e.$uiView,n.html());var o=p(n.contents()),a=r.controller,s=y(r),c=$(r),u=i&&Xr(i);if(t[c]=u,a){var l=g(a,B({},u,{$scope:t,$element:n}));s&&(t[s]=l,t[s][c]=u),n.data("$ngControllerController",l),n.children().data("$ngControllerController",l),ui(b,v,l,t,r)}if(A(r.component))var d=Ue(r.component),f=new RegExp("^(x-|data-)?"+d+"$","i"),h=t.$watch(function(){var e=[].slice.call(n[0].children).filter(function(e){return e&&e.tagName&&f.exec(e.tagName)});return e&&_.element(e).data("$"+r.component+"Controller")},function(e){e&&(ui(b,v,e,t,r),h())});o(t)}}}}Yr=["$uiRouter","$timeout",function(f,h){var m=f.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(e,t,n,r){var i=ti(t),o=r[1]||r[0],a=null,s={},c=function(){return ei(m,t,s)},u=Qr(n.uiSref);function l(){var e=c();a&&a(),o&&(a=o.$$addStateInfo(e.uiState,e.uiStateParams)),null!=e.href&&n.$set(i.attr,e.href)}if(s.uiState=u.state,s.uiStateOpts=n.uiSrefOpts?e.$eval(n.uiSrefOpts):{},u.paramExpr&&(e.$watch(u.paramExpr,function(e){s.uiStateParams=B({},e),l()},!0),s.uiStateParams=B({},e.$eval(u.paramExpr))),l(),e.$on("$destroy",f.stateRegistry.onStatesChanged(l)),e.$on("$destroy",f.transitionService.onSuccess({},l)),i.clickable){var d=ni(t,m,h,i,c);ri(t,e,d,s.uiStateOpts)}}}}],Gr=["$uiRouter","$timeout",function(h,m){var p=h.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,e,r,t){var i,o=ti(e),a=t[1]||t[0],s=null,c={},u=function(){return ei(p,e,c)},l=["uiState","uiStateParams","uiStateOpts"],d=l.reduce(function(e,t){return e[t]=Y,e},{});function f(){var e=u();s&&s(),a&&(s=a.$$addStateInfo(e.uiState,e.uiStateParams)),null!=e.href&&r.$set(o.attr,e.href)}l.forEach(function(t){c[t]=r[t]?n.$eval(r[t]):null,r.$observe(t,function(e){d[t](),d[t]=n.$watch(e,function(e){c[t]=e,f()},!0)})}),f(),n.$on("$destroy",h.stateRegistry.onStatesChanged(f)),n.$on("$destroy",h.transitionService.onSuccess({},f)),o.clickable&&(i=ni(e,p,m,o,u),ri(e,n,i,c.uiStateOpts))}}}],Kr=["$state","$stateParams","$interpolate","$uiRouter",function(m,e,p,g){return{restrict:"A",controller:["$scope","$element","$attrs",function(s,c,e){var u,r,t,n,i,l=[];u=p(e.uiSrefActiveEq||"",!1)(s);try{r=s.$eval(e.uiSrefActive)}catch(e){}function o(e){e.promise.then(h,Y)}function a(){d(r)}function d(e){S(e)&&(l=[],q(e,function(e,t){var n=function(e,t){var n=Qr(e);f(n.state,s.$eval(n.paramExpr),t)};A(e)?n(e,t):N(e)&&q(e,function(e){n(e,t)})}))}function f(e,t,n){var r={state:m.get(e,Jr(c))||{name:e},params:t,activeClass:n};return l.push(r),function(){Q(l)(r)}}function h(){var t=function(e){return e.split(/\s/).filter(W)},e=function(e){return e.map(function(e){return e.activeClass}).map(t).reduce(ge,[])},n=e(l).concat(t(u)).reduce(ye,[]),r=e(l.filter(function(e){return m.includes(e.state.name,e.params)})),i=!!l.filter(function(e){return m.is(e.state.name,e.params)}).length?t(u):[],o=r.concat(i).reduce(ye,[]),a=n.filter(function(e){return!Z(o,e)});s.$evalAsync(function(){o.forEach(function(e){return c.addClass(e)}),a.forEach(function(e){return c.removeClass(e)})})}d(r=r||p(e.uiSrefActive||"",!1)(s)),this.$$addStateInfo=function(e,t){if(!(S(r)&&0<l.length)){var n=f(e,t,r);return h(),n}},s.$on("$destroy",(t=g.stateRegistry.onStatesChanged(a),n=g.transitionService.onStart({},o),i=s.$on("$stateChangeSuccess",h),function(){t(),n(),i()})),g.globals.transition&&o(g.globals.transition),h()}]}}],_.module("ui.router.state").directive("uiSref",Yr).directive("uiSrefActive",Kr).directive("uiSrefActiveEq",Kr).directive("uiState",Gr),ii.$inject=["$state"],oi.$inject=["$state"],_.module("ui.router.state").filter("isState",ii).filter("includedByState",oi),Zr=["$view","$animate","$uiViewScroll","$interpolate","$q",function(i,o,b,y,$){var E={$cfg:{viewDecl:{$context:i._pluginapi._rootViewContext()}},$uiView:{}},w={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(e,t,v){return function(a,s,e){var c,u,l,d,f=e.onload||"",h=e.autoscroll,m={enter:function(e,t,n){2<_.version.minor?o.enter(e,null,t).then(n):o.enter(e,null,t,n)},leave:function(e,t){2<_.version.minor?o.leave(e).then(t):o.leave(e,t)}},n=s.inheritedData("$uiView")||E,p=y(e.uiView||e.name||"")(a)||"$default",g={$type:"ng1",id:w.count++,name:p,fqn:n.$uiView.fqn?n.$uiView.fqn+"."+p:p,config:null,configUpdated:function(e){if(e&&!(e instanceof Ar))return;if(t=d,n=e,t===n)return;var t,n;pt.traceUIViewConfigUpdated(g,e&&e.viewDecl&&e.viewDecl.$context),r(d=e)},get creationContext(){var e=C("$cfg.viewDecl.$context")(n),t=C("$uiView.creationContext")(n);return e||t}};pt.traceUIViewEvent("Linking",g),s.data("$uiView",{$uiView:g}),r();var t=i.registerUIView(g);function r(e){var t=a.$new(),n=$.defer(),r=$.defer(),i={$cfg:e,$uiView:g},o={$animEnter:n.promise,$animLeave:r.promise,$$animLeave:r};t.$emit("$viewContentLoading",p),u=v(t,function(e){e.data("$uiViewAnim",o),e.data("$uiView",i),m.enter(e,s,function(){n.resolve(),l&&l.$emit("$viewContentAnimationEnded"),(x(h)&&!h||a.$eval(h))&&b(e)}),function(){if(c&&(pt.traceUIViewEvent("Removing (previous) el",c.data("$uiView")),c.remove(),c=null),l&&(pt.traceUIViewEvent("Destroying scope",g),l.$destroy(),l=null),u){var e=u.data("$uiViewAnim");pt.traceUIViewEvent("Animate out",e),m.leave(u,function(){e.$$animLeave.resolve(),c=null}),c=u,u=null}}()}),(l=t).$emit("$viewContentLoaded",e||d),l.$eval(f)}a.$on("$destroy",function(){pt.traceUIViewEvent("Destroying/Unregistering",g),t()})}}};return w}],ai.$inject=["$compile","$controller","$transitions","$view","$q"];var si="function"==typeof _.module("ui.router").component,ci=0;function ui(r,e,u,t,n){!k(u.$onInit)||(n.viewDecl.component||n.viewDecl.componentProvider)&&si||u.$onInit();var l=Te(n.path).state.self,i={bind:u};if(k(u.uiOnParamsChanged)){var d=new Ht(n.path).getResolvable("$transition$").data;t.$on("$destroy",e.onSuccess({},function(e){if(e!==d&&-1===e.exiting().indexOf(l)){var n=e.params("to"),r=e.params("from"),t=function(e){return e.paramSchema},i=e.treeChanges("to").map(t).reduce(ge,[]),o=e.treeChanges("from").map(t).reduce(ge,[]),a=i.filter(function(e){var t=o.indexOf(e);return-1===t||!o[t].type.equals(n[e.id],r[e.id])});if(a.length){var s=a.map(function(e){return e.id}),c=ue(n,function(e,t){return-1!==s.indexOf(t)});u.uiOnParamsChanged(c,e)}}},i))}if(k(u.uiCanExit)){var o=ci++,a="_uiCanExitIds",s=function(e){return!!e&&(e[a]&&!0===e[a][o]||s(e.redirectedFrom()))},c={exiting:l.name};t.$on("$destroy",e.onBefore(c,function(e){var t,n=e[a]=e[a]||{};return s(e)||(t=r.when(u.uiCanExit(e))).then(function(e){return n[o]=!1!==e}),t},i))}}_.module("ui.router.state").directive("uiView",Zr),_.module("ui.router.state").directive("uiView",ai),_.module("ui.router.state").provider("$uiViewScroll",function(){var n=!1;this.useAnchorScroll=function(){n=!0},this.$get=["$anchorScroll","$timeout",function(e,t){return n?e:function(e){return t(function(){e[0].scrollIntoView()},0,!1)}}]});p.$injector=tr,p.$q=Xn,p.BaseLocationServices=lr,p.BaseUrlRule=pn,p.BrowserLocationConfig=br,p.Glob=Re,p.HashLocationService=fr,p.HookBuilder=rn,p.MemoryLocationConfig=vr,p.MemoryLocationService=mr,p.NATIVE_INJECTOR_TOKEN=Rt,p.Ng1ViewConfig=Ar,p.Param=_t,p.ParamFactory=fn,p.ParamType=gt,p.ParamTypes=Ct,p.PathNode=Mt,p.PathUtils=Tt,p.PushStateLocationService=gr,p.Queue=He,p.RegisteredHook=tn,p.Rejection=Le,p.Resolvable=Nt,p.ResolveContext=Ht,p.StateBuilder=Yt,p.StateMatcher=Kt,p.StateObject=Gt,p.StateParams=xt,p.StateProvider=Dr,p.StateQueueManager=Zt,p.StateRegistry=Xt,p.StateService=Zn,p.TargetState=kt,p.Trace=mt,p.Transition=an,p.TransitionEventType=zn,p.TransitionHook=Jt,p.TransitionService=Kn,p.UIRouter=kn,p.UIRouterGlobals=yn,p.UIRouterPluginBase=_r,p.UrlConfig=wn,p.UrlMatcher=ln,p.UrlMatcherFactory=hn,p.UrlRouter=vn,p.UrlRouterProvider=Hr,p.UrlRuleFactory=mn,p.UrlRules=En,p.UrlService=_n,p.ViewService=bn,p._extend=Se,p._inArray=X,p._pushTo=te,p._removeFrom=J,p.all=l,p.allTrueR=me,p.ancestors=oe,p.and=i,p.any=f,p.anyTrueR=pe,p.applyPairs=ke,p.arrayTuples=Me,p.assertFn=Ce,p.assertMap=_e,p.assertPredicate=we,p.beforeAfterSubstr=Ye,p.buildUrl=or,p.compose=n,p.copy=Ae,p.core=Cr,p.createProxyFunctions=G,p.curry=u,p.default="ui.router",p.defaultResolvePolicy=St,p.defaultTransOpts=Gn,p.defaults=re,p.deregAll=ne,p.eq=o,p.equals=z,p.extend=B,p.filter=ue,p.find=le,p.flatten=Ee,p.flattenR=ve,p.fnToString=qe,p.forEach=q,p.fromJson=U,p.functionToString=Ve,p.getLocals=Xr,p.getNg1ViewConfigFactory=xr,p.getParams=rr,p.hashLocationPlugin=$r,p.hostRegex=Ge,p.identity=W,p.inArray=Z,p.inherit=K,p.invoke=a,p.is=h,p.isArray=N,p.isDate=O,p.isDefined=x,p.isFunction=k,p.isInjectable=I,p.isNull=w,p.isNullOrUndefined=M,p.isNumber=T,p.isObject=S,p.isPromise=R,p.isRegExp=D,p.isString=A,p.isUndefined=E,p.joinNeighborsR=tt,p.kebobString=Ue,p.keyValsToObjectR=nr,p.locationPluginFactory=ar,p.makeEvent=nn,p.makeStub=H,p.map=fe,p.mapObj=de,p.matchState=en,p.maxLength=je,p.memoryLocationPlugin=wr,p.mergeR=ie,p.ng1ViewsBuilder=kr,p.noop=Y,p.not=d,p.omit=se,p.or=s,p.padString=Fe,p.pairs=xe,p.parse=C,p.parseUrl=ir,p.pattern=g,p.pick=ae,p.pipe=c,p.pluck=ce,p.prop=y,p.propEq=v,p.pushR=be,p.pushStateLocationPlugin=Er,p.pushTo=ee,p.removeFrom=Q,p.resolvablesBuilder=Bt,p.resolvePolicies=At,p.root=j,p.services=P,p.servicesPlugin=yr,p.silenceUncaughtInPromise=De,p.silentRejection=Ie,p.splitEqual=Qe,p.splitHash=Ze,p.splitOnDelim=et,p.splitQuery=Xe,p.stringify=We,p.stripLastPathElement=Ke,p.tail=Te,p.toJson=V,p.trace=pt,p.trimHashVal=Je,p.uniqR=ye,p.unnest=$e,p.unnestR=ge,p.val=m,p.values=he,p.watchDigests=Wr,Object.defineProperty(p,"__esModule",{value:!0})}),function(){var na,ra="Expected a function",ia="__lodash_hash_undefined__",oa="__lodash_placeholder__",aa=9007199254740991,sa=NaN,ca=4294967295,ua=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],la="[object Arguments]",da="[object Array]",fa="[object Boolean]",ha="[object Date]",ma="[object Error]",pa="[object Function]",ga="[object GeneratorFunction]",va="[object Map]",ba="[object Number]",ya="[object Object]",$a="[object Promise]",Ea="[object RegExp]",wa="[object Set]",_a="[object String]",Ca="[object Symbol]",xa="[object WeakMap]",Ma="[object ArrayBuffer]",ka="[object DataView]",Ta="[object Float32Array]",Aa="[object Float64Array]",Sa="[object Int8Array]",Na="[object Int16Array]",Oa="[object Int32Array]",Da="[object Uint8Array]",Ia="[object Uint8ClampedArray]",Ra="[object Uint16Array]",Ha="[object Uint32Array]",Pa=/\b__p \+= '';/g,La=/\b(__p \+=) '' \+/g,ja=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fa=/&(?:amp|lt|gt|quot|#39);/g,Ua=/[&<>"']/g,Va=RegExp(Fa.source),qa=RegExp(Ua.source),Ba=/<%-([\s\S]+?)%>/g,za=/<%([\s\S]+?)%>/g,Wa=/<%=([\s\S]+?)%>/g,Ya=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ga=/^\w*$/,Ka=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Za=/[\\^$.*+?()[\]{}|]/g,Xa=RegExp(Za.source),Qa=/^\s+/,n=/\s/,Ja=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,es=/\{\n\/\* \[wrapped with (.+)\] \*/,ts=/,? & /,ns=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rs=/[()=,{}\[\]\/\s]/,is=/\\(\\)?/g,os=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,as=/\w*$/,ss=/^[-+]0x[0-9a-f]+$/i,cs=/^0b[01]+$/i,us=/^\[object .+?Constructor\]$/,ls=/^0o[0-7]+$/i,ds=/^(?:0|[1-9]\d*)$/,fs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hs=/($^)/,ms=/['\n\r\u2028\u2029\\]/g,e="\\ud800-\\udfff",t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",r="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",s="\\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",c="["+e+"]",u="["+s+"]",l="["+t+"]",d="\\d+",f="["+r+"]",h="["+i+"]",m="[^"+e+s+d+r+i+o+"]",p="\\ud83c[\\udffb-\\udfff]",g="[^"+e+"]",v="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+o+"]",$="(?:"+h+"|"+m+")",E="(?:"+y+"|"+m+")",w="(?:['’](?:d|ll|m|re|s|t|ve))?",_="(?:['’](?:D|LL|M|RE|S|T|VE))?",C="(?:"+l+"|"+p+")"+"?",x="["+a+"]?",M=x+C+("(?:\\u200d(?:"+[g,v,b].join("|")+")"+x+C+")*"),k="(?:"+[f,v,b].join("|")+")"+M,T="(?:"+[g+l+"?",l,v,b,c].join("|")+")",ps=RegExp("['’]","g"),gs=RegExp(l,"g"),A=RegExp(p+"(?="+p+")|"+T+M,"g"),vs=RegExp([y+"?"+h+"+"+w+"(?="+[u,y,"$"].join("|")+")",E+"+"+_+"(?="+[u,y+$,"$"].join("|")+")",y+"?"+$+"+"+w,y+"+"+_,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",d,k].join("|"),"g"),S=RegExp("[\\u200d"+e+t+a+"]"),bs=/[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"],$s=-1,Es={};Es[Ta]=Es[Aa]=Es[Sa]=Es[Na]=Es[Oa]=Es[Da]=Es[Ia]=Es[Ra]=Es[Ha]=!0,Es[la]=Es[da]=Es[Ma]=Es[fa]=Es[ka]=Es[ha]=Es[ma]=Es[pa]=Es[va]=Es[ba]=Es[ya]=Es[Ea]=Es[wa]=Es[_a]=Es[xa]=!1;var ws={};ws[la]=ws[da]=ws[Ma]=ws[ka]=ws[fa]=ws[ha]=ws[Ta]=ws[Aa]=ws[Sa]=ws[Na]=ws[Oa]=ws[va]=ws[ba]=ws[ya]=ws[Ea]=ws[wa]=ws[_a]=ws[Ca]=ws[Da]=ws[Ia]=ws[Ra]=ws[Ha]=!0,ws[ma]=ws[pa]=ws[xa]=!1;var N={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Cs=parseInt,O="object"==typeof global&&global&&global.Object===Object&&global,D="object"==typeof self&&self&&self.Object===Object&&self,xs=O||D||Function("return this")(),I="object"==typeof exports&&exports&&!exports.nodeType&&exports,R=I&&"object"==typeof module&&module&&!module.nodeType&&module,Ms=R&&R.exports===I,H=Ms&&O.process,P=function(){try{var e=R&&R.require&&R.require("util").types;return e||H&&H.binding&&H.binding("util")}catch(e){}}(),ks=P&&P.isArrayBuffer,Ts=P&&P.isDate,As=P&&P.isMap,Ss=P&&P.isRegExp,Ns=P&&P.isSet,Os=P&&P.isTypedArray;function Ds(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 Is(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 Rs(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Hs(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ps(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 Ls(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<Gs(e,t,0)}function Fs(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 Bs(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 zs(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 L=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 Ys(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 Gs(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):Ys(e,Zs,n)}function Ks(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 Xs(e,t){var n=null==e?0:e.length;return n?ec(e,t)/n:sa}function Qs(t){return function(e){return null==e?na:e[t]}}function j(t){return function(e){return null==t?na:t[e]}}function Js(e,r,i,o,t){return t(e,function(e,t,n){i=o?(o=!1,e):r(i,e,t,n)}),i}function ec(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 tc(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function nc(e){return e?e.slice(0,bc(e)+1).replace(Qa,""):e}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<Gs(t,e[n],0););return n}function sc(e,t){for(var n=e.length;n--&&-1<Gs(t,e[n],0););return n}var cc=j({"À":"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"}),uc=j({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function lc(e){return"\\"+N[e]}function dc(e){return S.test(e)}function fc(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 mc(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=A.lastIndex=0;for(;A.test(e);)++t;return t}(e):L(e)}function vc(e){return dc(e)?e.match(A)||[]:e.split("")}function bc(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}var yc=j({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var $c=function e(t){var n,T=(t=null==t?xs:$c.defaults(xs.Object(),t,$c.pick(xs,ys))).Array,r=t.Date,g=t.Error,v=t.Function,i=t.Math,C=t.Object,b=t.RegExp,l=t.String,A=t.TypeError,o=T.prototype,a=v.prototype,d=C.prototype,s=t["__core-js_shared__"],c=a.toString,x=d.hasOwnProperty,u=0,f=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",h=d.toString,m=c.call(C),p=xs._,y=b("^"+c.call(x).replace(Za,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=Ms?t.Buffer:na,E=t.Symbol,w=t.Uint8Array,_=$?$.allocUnsafe:na,M=hc(C.getPrototypeOf,C),k=C.create,S=d.propertyIsEnumerable,N=o.splice,O=E?E.isConcatSpreadable:na,D=E?E.iterator:na,I=E?E.toStringTag:na,R=function(){try{var e=Fn(C,"defineProperty");return e({},"",{}),e}catch(e){}}(),H=t.clearTimeout!==xs.clearTimeout&&t.clearTimeout,P=r&&r.now!==xs.Date.now&&r.now,L=t.setTimeout!==xs.setTimeout&&t.setTimeout,j=i.ceil,F=i.floor,U=C.getOwnPropertySymbols,V=$?$.isBuffer:na,q=t.isFinite,B=o.join,z=hc(C.keys,C),W=i.max,Y=i.min,G=r.now,K=t.parseInt,Z=i.random,X=o.reverse,Q=Fn(t,"DataView"),J=Fn(t,"Map"),ee=Fn(t,"Promise"),te=Fn(t,"Set"),ne=Fn(t,"WeakMap"),re=Fn(C,"create"),ie=ne&&new ne,oe={},ae=mr(Q),se=mr(J),ce=mr(ee),ue=mr(te),le=mr(ne),de=E?E.prototype:na,fe=de?de.valueOf:na,he=de?de.toString:na;function me(e){if(Ni(e)&&!$i(e)&&!(e instanceof be)){if(e instanceof ve)return e;if(x.call(e,"__wrapped__"))return pr(e)}return new ve(e)}var pe=function(){function n(){}return function(e){if(!Si(e))return{};if(k)return k(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 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 $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 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 we(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ee;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new $e(e);this.size=t.size}function Ce(e,t){var n=$i(e),r=!n&&yi(e),i=!n&&!r&&Ci(e),o=!n&&!r&&!i&&ji(e),a=n||r||i||o,s=a?tc(e.length,l):[],c=s.length;for(var u in e)!t&&!x.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Yn(u,c))||s.push(u);return s}function xe(e){var t=e.length;return t?e[wt(0,t-1)]:na}function Me(e,t){return ur(rn(e),Re(t,0,e.length))}function ke(e){return ur(rn(e))}function Te(e,t,n){(n===na||gi(e[t],n))&&(n!==na||t in e)||De(e,t,n)}function Ae(e,t,n){var r=e[t];x.call(e,t)&&gi(r,n)&&(n!==na||t in e)||De(e,t,n)}function Se(e,t){for(var n=e.length;n--;)if(gi(e[n][0],t))return n;return-1}function Ne(e,r,i,o){return Fe(e,function(e,t,n){r(o,e,i(e),n)}),o}function Oe(e,t){return e&&on(t,so(t),e)}function De(e,t,n){"__proto__"==t&&R?R(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=T(r),o=null==e;++n<r;)i[n]=o?na:no(e,t[n]);return i}function Re(e,t,n){return e==e&&(n!==na&&(e=e<=n?e:n),t!==na&&(e=t<=e?e:t)),e}function He(n,r,i,e,t,o){var a,s=1&r,c=2&r,u=4&r;if(i&&(a=t?i(n,e,t,o):i(n)),a!==na)return a;if(!Si(n))return n;var l,d,f,h,m,p,g,v,b,y=$i(n);if(y){if(v=(g=n).length,b=new g.constructor(v),v&&"string"==typeof g[0]&&x.call(g,"index")&&(b.index=g.index,b.input=g.input),a=b,!s)return rn(n,a)}else{var $=qn(n),E=$==pa||$==ga;if(Ci(n))return Xt(n,s);if($==ya||$==la||E&&!t){if(a=c||E?{}:zn(n),!s)return c?(p=f=n,h=(m=a)&&on(p,co(p),m),on(f,Vn(f),h)):(d=Oe(a,l=n),on(l,Un(l),d))}else{if(!ws[$])return t?n:{};a=function(e,t,n){var r,i,o,a,s,c=e.constructor;switch(t){case Ma:return Qt(e);case fa:case ha:return new c(+e);case ka:return a=e,s=n?Qt(a.buffer):a.buffer,new a.constructor(s,a.byteOffset,a.byteLength);case Ta:case Aa:case Sa:case Na:case Oa:case Da:case Ia:case Ra:case Ha:return Jt(e,n);case va:return new c;case ba:case _a:return new c(e);case Ea:return(o=new(i=e).constructor(i.source,as.exec(i))).lastIndex=i.lastIndex,o;case wa:return new c;case Ca:return r=e,fe?C(fe.call(r)):{}}}(n,$,s)}}o||(o=new _e);var w=o.get(n);if(w)return w;o.set(n,a),Hi(n)?n.forEach(function(e){a.add(He(e,r,i,e,n,o))}):Oi(n)&&n.forEach(function(e,t){a.set(t,He(e,r,i,t,n,o))});var _=y?na:(u?c?Dn:On:c?co:so)(n);return Rs(_||n,function(e,t){_&&(e=n[t=e]),Ae(a,t,He(e,r,i,t,n,o))}),a}function Pe(e,t,n){var r=n.length;if(null==e)return!r;for(e=C(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 A(ra);return or(function(){e.apply(na,n)},t)}function je(e,t,n,r){var i=-1,o=js,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Us(t,rc(n))),r?(o=Fs,a=!1):200<=t.length&&(o=oc,a=!1,t=new we(t));e:for(;++i<s;){var l=e[i],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else o(t,d,r)||c.push(l)}return c}me.templateSettings={escape:Ba,evaluate:za,interpolate:Wa,variable:"",imports:{_:me}},(me.prototype=ge.prototype).constructor=me,(ve.prototype=pe(ge.prototype)).constructor=ve,(be.prototype=pe(ge.prototype)).constructor=be,ye.prototype.clear=function(){this.__data__=re?re(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(re){var n=t[e];return n===ia?na:n}return x.call(t,e)?t[e]:na},ye.prototype.has=function(e){var t=this.__data__;return re?t[e]!==na:x.call(t,e)},ye.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},$e.prototype.clear=function(){this.__data__=[],this.size=0},$e.prototype.delete=function(e){var t=this.__data__,n=Se(t,e);return!(n<0||(n==t.length-1?t.pop():N.call(t,n,1),--this.size,0))},$e.prototype.get=function(e){var t=this.__data__,n=Se(t,e);return n<0?na:t[n][1]},$e.prototype.has=function(e){return-1<Se(this.__data__,e)},$e.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 ye,map:new(J||$e),string:new ye}},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},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,ia),this},we.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new $e,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $e){var r=n.__data__;if(!J||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 Fe=cn(Ge),Ue=cn(Ke,!0);function Ve(e,r){var i=!0;return Fe(e,function(e,t,n){return i=!!r(e,t,n)}),i}function qe(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 Be(e,r){var i=[];return Fe(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=Wn),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 We=un(),Ye=un(!0);function Ge(e,t){return e&&We(e,t,so)}function Ke(e,t){return e&&Ye(e,t,so)}function Ze(t,e){return Ls(e,function(e){return ki(t[e])})}function Xe(e,t){for(var n=0,r=(t=Yt(t,e)).length;null!=e&&n<r;)e=e[hr(t[n++])];return n&&n==r?e:na}function Qe(e,t,n){var r=t(e);return $i(e)?r:Vs(r,n(e))}function Je(e){return null==e?e===na?"[object Undefined]":"[object Null]":I&&I in C(e)?function(e){var t=x.call(e,I),n=e[I];try{e[I]=na;var r=!0}catch(e){}var i=h.call(e);return r&&(t?e[I]=n:delete e[I]),i}(e):(t=e,h.call(t));var t}function et(e,t){return t<e}function tt(e,t){return null!=e&&x.call(e,t)}function nt(e,t){return null!=e&&t in C(e)}function rt(e,t,n){for(var r=n?Fs:js,i=e[0].length,o=e.length,a=o,s=T(o),c=1/0,u=[];a--;){var l=e[a];a&&t&&(l=Us(l,rc(t))),c=Y(l.length,c),s[a]=!n&&(t||120<=i&&120<=l.length)?new we(a&&l):na}l=e[0];var d=-1,f=s[0];e:for(;++d<i&&u.length<c;){var h=l[d],m=t?t(h):h;if(h=n||0!==h?h:0,!(f?oc(f,m):r(u,m,n))){for(a=o;--a;){var p=s[a];if(!(p?oc(p,m):r(e[a],m,n)))continue e}f&&f.push(m),u.push(h)}}return u}function it(e,t,n){var r=null==(e=nr(e,t=Yt(t,e)))?e:e[hr(Mr(t))];return null==r?na:Ds(r,e,n)}function ot(e){return Ni(e)&&Je(e)==la}function at(e,t,n,r,i){return e===t||(null==e||null==t||!Ni(e)&&!Ni(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=$i(e),s=$i(t),c=a?da:qn(e),u=s?da:qn(t),l=(c=c==la?ya:c)==ya,d=(u=u==la?ya:u)==ya,f=c==u;if(f&&Ci(e)){if(!Ci(t))return!1;l=!(a=!0)}if(f&&!l)return o||(o=new _e),a||ji(e)?Sn(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case ka:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ma:return!(e.byteLength!=t.byteLength||!o(new w(e),new w(t)));case fa:case ha:case ba:return gi(+e,+t);case ma:return e.name==t.name&&e.message==t.message;case Ea:case _a:return e==t+"";case va:var s=fc;case wa:var c=1&r;if(s||(s=pc),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var l=Sn(s(e),s(t),r,i,o,a);return a.delete(e),l;case Ca:if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var h=l&&x.call(e,"__wrapped__"),m=d&&x.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,g=m?t.value():t;return o||(o=new _e),i(p,g,n,r,o)}}return!!f&&(o||(o=new _e),function(e,t,n,r,i,o){var a=1&n,s=On(e),c=s.length,u=On(t).length;if(c!=u&&!a)return!1;for(var l=c;l--;){var d=s[l];if(!(a?d in t:x.call(t,d)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var m=!0;o.set(e,t),o.set(t,e);for(var p=a;++l<c;){d=s[l];var g=e[d],v=t[d];if(r)var b=a?r(v,g,d,t,e,o):r(g,v,d,e,t,o);if(!(b===na?g===v||i(g,v,n,r,o):b)){m=!1;break}p||(p="constructor"==d)}if(m&&!p){var y=e.constructor,$=t.constructor;y!=$&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof $&&$ instanceof $)&&(m=!1)}return o.delete(e),o.delete(t),m}(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=C(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],u=e[c],l=s[1];if(a&&s[2]){if(u===na&&!(c in e))return!1}else{var d=new _e;if(r)var f=r(u,l,c,e,t,d);if(!(f===na?at(l,u,3,r,d):f))return!1}}return!0}function ct(e){return!(!Si(e)||(t=e,f&&f in t))&&(ki(e)?y:us).test(mr(e));var t}function ut(e){return"function"==typeof e?e:null==e?Io:"object"==typeof e?$i(e)?pt(e[0],e[1]):mt(e):qo(e)}function lt(e){if(!Qn(e))return z(e);var t=[];for(var n in C(e))x.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 C(e))t.push(n);return t}(e);var t=Qn(e),n=[];for(var r in e)("constructor"!=r||!t&&x.call(e,r))&&n.push(r);return n}function ft(e,t){return e<t}function ht(e,r){var i=-1,o=wi(e)?T(e.length):[];return Fe(e,function(e,t,n){o[++i]=r(e,t,n)}),o}function mt(t){var n=jn(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)&&Jn(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&&We(i,function(e,t){if(s||(s=new _e),Si(e))!function(e,t,n,r,i,o,a){var s=rr(e,n),c=rr(t,n),u=a.get(c);if(u)return Te(e,n,u);var l=o?o(s,c,n+"",e,t,a):na,d=l===na;if(d){var f=$i(c),h=!f&&Ci(c),m=!f&&!h&&ji(c);l=c,f||h||m?l=$i(s)?s:_i(s)?rn(s):h?Xt(c,!(d=!1)):m?Jt(c,!(d=!1)):[]:Ii(c)||yi(c)?yi(l=s)?l=Yi(s):Si(s)&&!ki(s)||(l=zn(c)):d=!1}d&&(a.set(c,l),i(l,c,r,o,a),a.delete(c)),Te(e,n,l)}(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),Te(r,t,n)}},co)}function vt(e,t){var n=e.length;if(n)return Yn(t+=t<0?n:0,n)?e[t]:na}function bt(e,r,n){r=r.length?Us(r,function(t){return $i(t)?function(e){return Xe(e,1===t.length?t[0]:t)}:t}):[Io];var i=-1;return r=Us(r,rc(Pn())),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 u=n[r];return c*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)})}function yt(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Xe(e,a);n(s,a)&&kt(o,Yt(a,e),s)}return o}function $t(e,t,n,r){var i=r?Ks:Gs,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,u=t[o],l=n?n(u):u;-1<(c=i(s,l,c,r));)s!==e&&N.call(s,c,1),N.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;Yn(i)?N.call(e,i,1):jt(e,i)}}return e}function wt(e,t){return e+F(Z()*(t-e+1))}function _t(e,t){var n="";if(!e||t<1||aa<t)return n;for(;t%2&&(n+=e),(t=F(t/2))&&(e+=e),t;);return n}function Ct(e,t){return ar(tr(e,t,Io),e+"")}function xt(e){return xe(vo(e))}function Mt(e,t){var n=vo(e);return ur(n,Re(t,0,n.length))}function kt(e,t,n,r){if(!Si(e))return e;for(var i=-1,o=(t=Yt(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=hr(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var l=s[c];(u=r?r(l,c,s):na)===na&&(u=Si(l)?l:Yn(t[i+1])?[]:{})}Ae(s,c,u),s=s[c]}return e}var Tt=ie?function(e,t){return ie.set(e,t),e}:Io,At=R?function(e,t){return R(e,"toString",{configurable:!0,enumerable:!1,value:No(t),writable:!0})}:Io;function St(e){return ur(vo(e))}function Nt(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=T(i);++r<i;)o[r]=e[r+t];return o}function Ot(e,r){var i;return Fe(e,function(e,t,n){return!(i=r(e,t,n))}),!!i}function Dt(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){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,c=Li(t),u=t===na;i<o;){var l=F((i+o)/2),d=n(e[l]),f=d!==na,h=null===d,m=d==d,p=Li(d);if(a)var g=r||m;else g=u?m&&(r||f):s?m&&f&&(r||!h):c?m&&f&&!h&&(r||!p):!h&&!p&&(r?d<=t:d<t);g?i=l+1:o=l}return Y(o,4294967294)}function Rt(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 Ht(e){return"number"==typeof e?e:Li(e)?sa:+e}function Pt(e){if("string"==typeof e)return e;if($i(e))return Us(e,Pt)+"";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=Fs;else if(200<=o){var u=t?null:Cn(e);if(u)return pc(u);a=!1,i=oc,c=new we}else c=t?[]:s;e:for(;++r<o;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(l)}else i(c,d,n)||(c!==s&&c.push(d),s.push(l))}return s}function jt(e,t){return null==(e=nr(e,t=Yt(t,e)))||delete e[hr(Mr(t))]}function Ft(e,t,n,r){return kt(e,t,n(Xe(e,t)),r)}function Ut(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Nt(e,r?0:o,r?o+1:i):Nt(e,r?o+1:0,r?i:o)}function Vt(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 qt(e,t,n){var r=e.length;if(r<2)return r?Lt(e[0]):[];for(var i=-1,o=T(r);++i<r;)for(var a=e[i],s=-1;++s<r;)s!=i&&(o[i]=je(o[i]||a,e[s],t,n));return Lt(ze(o,1),t,n)}function Bt(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 _i(e)?e:[]}function Wt(e){return"function"==typeof e?e:Io}function Yt(e,t){return $i(e)?e:Kn(e,t)?[e]:fr(Gi(e))}var Gt=Ct;function Kt(e,t,n){var r=e.length;return n=n===na?r:n,!t&&r<=n?e:Nt(e,t,n)}var Zt=H||function(e){return xs.clearTimeout(e)};function Xt(e,t){if(t)return e.slice();var n=e.length,r=_?_(n):new e.constructor(n);return e.copy(r),r}function Qt(e){var t=new e.constructor(e.byteLength);return new w(t).set(new w(e)),t}function Jt(e,t){var n=t?Qt(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,u=Li(t);if(!s&&!u&&!o&&t<e||o&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e<t||u&&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,u=W(o-a,0),l=T(c+u),d=!r;++s<c;)l[s]=t[s];for(;++i<a;)(d||i<o)&&(l[n[i]]=e[i]);for(;u--;)l[s++]=e[i++];return l}function nn(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,c=-1,u=t.length,l=W(o-s,0),d=T(l+u),f=!r;++i<l;)d[i]=e[i];for(var h=i;++c<u;)d[h+c]=t[c];for(;++a<s;)(f||i<o)&&(d[h+n[a]]=e[i++]);return d}function rn(e,t){var n=-1,r=e.length;for(t||(t=T(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?De(n,s,c):Ae(n,s,c)}return n}function an(i,o){return function(e,t){var n=$i(e)?Is:Ne,r=o?o():{};return n(e,i,Pn(t,2),r)}}function sn(s){return Ct(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=C(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(!wi(e))return o(e,t);for(var n=e.length,r=a?n:-1,i=C(e);(a?r--:++r<n)&&!1!==t(i[r],r,i););return e}}function un(c){return function(e,t,n){for(var r=-1,i=C(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 ln(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(To($o(e).replace(ps,"")),t,"")}}function fn(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=C(e);if(!wi(e)){var i=Pn(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 mn(c){return Nn(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 A(ra);if(t&&!a&&"wrapper"==Rn(n))var a=new ve([],!0)}for(e=a?e:o;++e<o;){var r=Rn(n=i[e]),s="wrapper"==r?In(n):na;a=s&&Zn(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[Rn(s[0])].apply(a,s[3]):1==n.length&&Zn(n)?a[r]():a.thru(n)}return function(){var e=arguments,t=e[0];if(a&&1==e.length&&$i(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(u,l,d,f,h,m,p,g,v,b){var y=128&l,$=1&l,E=2&l,w=24&l,_=512&l,C=E?na:fn(u);return function e(){for(var t=arguments.length,n=T(t),r=t;r--;)n[r]=arguments[r];if(w)var i=Hn(e),o=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(n,i);if(f&&(n=tn(n,f,h,w)),m&&(n=nn(n,m,p,w)),t-=o,w&&t<b){var a=mc(n,i);return wn(u,l,pn,e.placeholder,d,n,a,g,v,b-t)}var s=$?d:this,c=E?s[u]:u;return t=n.length,g?n=function(e,t){for(var n=e.length,r=Y(t.length,n),i=rn(e);r--;){var o=t[r];e[r]=Yn(o,n)?i[o]:na}return e}(n,g):_&&1<t&&n.reverse(),y&&v<t&&(n.length=v),this&&this!==xs&&this instanceof e&&(c=C||fn(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=Pt(e),Pt(t)):(e=Ht(e),Ht(t)),n=r(e,t)}return n}}function bn(r){return Nn(function(e){return e=Us(e,rc(Pn())),Ct(function(t){var n=this;return r(e,function(e){return Ds(e,n,t)})})})}function yn(e,t){var n=(t=t===na?" ":Pt(t)).length;if(n<2)return n?_t(t,e):t;var r=_t(t,j(e/gc(t)));return dc(t)?Kt(vc(r),0,e).join(""):r.slice(0,e)}function $n(r){return function(e,t,n){return n&&"number"!=typeof n&&Gn(e,t,n)&&(t=n=na),e=qi(e),t===na?(t=e,e=0):t=qi(t),function(e,t,n,r){for(var i=-1,o=W(j((t-e)/(n||1)),0),a=T(o);o--;)a[r?o:++i]=e,e+=n;return a}(e,t,n=n===na?e<t?1:-1:qi(n),r)}}function En(n){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=Wi(e),t=Wi(t)),n(e,t)}}function wn(e,t,n,r,i,o,a,s,c,u){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var d=[e,t,i,l?o:na,l?a:na,l?na:o,l?na:a,s,c,u],f=n.apply(na,d);return Zn(e)&&ir(f,d),f.placeholder=r,sr(f,e,t)}function _n(e){var r=i[e];return function(e,t){if(e=Wi(e),(t=null==t?0:Y(Bi(t),292))&&q(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 Cn=te&&1/pc(new te([,-0]))[1]==1/0?function(e){return new te(e)}:jo;function xn(a){return function(e){var t,n,r,i,o=qn(e);return o==va?fc(e):o==wa?(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 Mn(e,t,n,r,i,o,a,s){var c=2&t;if(!c&&"function"!=typeof e)throw new A(ra);var u=r?r.length:0;if(u||(t&=-97,r=i=na),a=a===na?a:W(Bi(a),0),s=s===na?s:Bi(s),u-=i?i.length:0,64&t){var l=r,d=i;r=i=na}var f,h,m,p,g,v,b,y,$,E,w,_,C,x=c?na:In(e),M=[e,t,n,r,i,l,d,o,a,s];if(x&&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?mc(e[3],oa):t[4]}(s=t[5])&&(c=e[5],e[5]=c?nn(c,s,t[6]):s,e[6]=c?mc(e[5],oa):t[6]),(s=t[7])&&(e[7]=s),128&r&&(e[8]=null==e[8]?t[8]:Y(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(M,x),e=M[0],t=M[1],n=M[2],r=M[3],i=M[4],!(s=M[9]=M[9]===na?c?0:e.length:W(M[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||16==t?(b=t,y=s,$=fn(v=e),function e(){for(var t=arguments.length,n=T(t),r=t,i=Hn(e);r--;)n[r]=arguments[r];var o=t<3&&n[0]!==i&&n[t-1]!==i?[]:mc(n,i);return(t-=o.length)<y?wn(v,b,pn,e.placeholder,na,n,o,na,na,y-t):Ds(this&&this!==xs&&this instanceof e?$:v,this,n)}):32!=t&&33!=t||i.length?pn.apply(na,M):(h=n,m=r,p=1&t,g=fn(f=e),function e(){for(var t=-1,n=arguments.length,r=-1,i=m.length,o=T(i+n),a=this&&this!==xs&&this instanceof e?g:f;++r<i;)o[r]=m[r];for(;n--;)o[r++]=arguments[++t];return Ds(a,p?h:this,o)});else var k=(w=n,_=1&t,C=fn(E=e),function e(){return(this&&this!==xs&&this instanceof e?C:E).apply(_?w:this,arguments)});return sr((x?Tt:ir)(k,M),e,t)}function kn(e,t,n,r){return e===na||gi(e,d[n])&&!x.call(r,n)?t:e}function Tn(e,t,n,r,i,o){return Si(e)&&Si(t)&&(o.set(t,e),gt(e,t,na,Tn,o),o.delete(t)),e}function An(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 u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var d=-1,f=!0,h=2&n?new we:na;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],p=t[d];if(r)var g=a?r(p,m,d,t,e,o):r(m,p,d,e,t,o);if(g!==na){if(g)continue;f=!1;break}if(h){if(!zs(t,function(e,t){if(!oc(h,t)&&(m===e||i(m,e,n,r,o)))return h.push(t)})){f=!1;break}}else if(m!==p&&!i(m,p,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Nn(e){return ar(tr(e,na,Er),e+"")}function On(e){return Qe(e,so,Un)}function Dn(e){return Qe(e,co,Vn)}var In=ie?function(e){return ie.get(e)}:jo;function Rn(e){for(var t=e.name+"",n=oe[t],r=x.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 Hn(e){return(x.call(me,"placeholder")?me:e).placeholder}function Pn(){var e=me.iteratee||Ro;return e=e===Ro?ut: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 jn(e){for(var t=so(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Jn(i)]}return t}function Fn(e,t){var n,r,i=(r=t,null==(n=e)?na:n[r]);return ct(i)?i:na}var Un=U?function(t){return null==t?[]:(t=C(t),Ls(U(t),function(e){return S.call(t,e)}))}:Wo,Vn=U?function(e){for(var t=[];e;)Vs(t,Un(e)),e=M(e);return t}:Wo,qn=Je;function Bn(e,t,n){for(var r=-1,i=(t=Yt(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)&&Ai(i)&&Yn(a,i)&&($i(e)||yi(e))}function zn(e){return"function"!=typeof e.constructor||Qn(e)?{}:pe(M(e))}function Wn(e){return $i(e)||yi(e)||!!(O&&e&&e[O])}function Yn(e,t){var n=typeof e;return!!(t=null==t?aa:t)&&("number"==n||"symbol"!=n&&ds.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?wi(n)&&Yn(t,n.length):"string"==r&&t in n)&&gi(n[t],e)}function Kn(e,t){if($i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Li(e))||Ga.test(e)||!Ya.test(e)||null!=t&&e in C(t)}function Zn(e){var t=Rn(e),n=me[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]}(Q&&qn(new Q(new ArrayBuffer(1)))!=ka||J&&qn(new J)!=va||ee&&qn(ee.resolve())!=$a||te&&qn(new te)!=wa||ne&&qn(new ne)!=xa)&&(qn=function(e){var t=Je(e),n=t==ya?e.constructor:na,r=n?mr(n):"";if(r)switch(r){case ae:return ka;case se:return va;case ce:return $a;case ue:return wa;case le:return xa}return t});var Xn=s?ki:Yo;function Qn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||d)}function Jn(e){return e==e&&!Si(e)}function er(t,n){return function(e){return null!=e&&e[t]===n&&(n!==na||t in C(e))}}function tr(o,a,s){return a=W(a===na?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=W(e.length-a,0),r=T(n);++t<n;)r[t]=e[a+t];t=-1;for(var i=T(a+1);++t<a;)i[t]=e[t];return i[a]=s(r),Ds(o,this,i)}}function nr(e,t){return t.length<2?e:Xe(e,Nt(t,0,-1))}function rr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ir=cr(Tt),or=L||function(e,t){return xs.setTimeout(e,t)},ar=cr(At);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(Ja,"{\n/* [wrapped with "+t+"] */\n")}(a,(o=a.match(es),r=o?o[1].split(ts):[],i=n,Rs(ua,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 ur(e,t){var n=-1,r=e.length,i=r-1;for(t=t===na?r:t;++n<t;){var o=wt(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var lr,dr,fr=(dr=(lr=li(function(e){var i=[];return 46===e.charCodeAt(0)&&i.push(""),e.replace(Ka,function(e,t,n,r){i.push(n?r.replace(is,"$1"):t||e)}),i},function(e){return 500===dr.size&&dr.clear(),e})).cache,lr);function hr(e){if("string"==typeof e||Li(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function mr(e){if(null!=e){try{return c.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=Ct(function(e,t){return _i(e)?je(e,ze(t,1,_i,!0)):[]}),vr=Ct(function(e,t){var n=Mr(t);return _i(n)&&(n=na),_i(e)?je(e,ze(t,1,_i,!0),Pn(n,2)):[]}),br=Ct(function(e,t){var n=Mr(t);return _i(n)&&(n=na),_i(e)?je(e,ze(t,1,_i,!0),na,n):[]});function yr(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Bi(n);return i<0&&(i=W(r+i,0)),Ys(e,Pn(t,3),i)}function $r(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==na&&(i=Bi(n),i=n<0?W(r+i,0):Y(i,r-1)),Ys(e,Pn(t,3),i,!0)}function Er(e){return null!=e&&e.length?ze(e,1):[]}function wr(e){return e&&e.length?e[0]:na}var _r=Ct(function(e){var t=Us(e,zt);return t.length&&t[0]===e[0]?rt(t):[]}),Cr=Ct(function(e){var t=Mr(e),n=Us(e,zt);return t===Mr(n)?t=na:n.pop(),n.length&&n[0]===e[0]?rt(n,Pn(t,2)):[]}),xr=Ct(function(e){var t=Mr(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 Mr(e){var t=null==e?0:e.length;return t?e[t-1]:na}var kr=Ct(Tr);function Tr(e,t){return e&&e.length&&t&&t.length?$t(e,t):e}var Ar=Nn(function(e,t){var n=null==e?0:e.length,r=Ie(e,t);return Et(e,Us(t,function(e){return Yn(e,n)?+e:e}).sort(en)),r});function Sr(e){return null==e?e:X.call(e)}var Nr=Ct(function(e){return Lt(ze(e,1,_i,!0))}),Or=Ct(function(e){var t=Mr(e);return _i(t)&&(t=na),Lt(ze(e,1,_i,!0),Pn(t,2))}),Dr=Ct(function(e){var t=Mr(e);return t="function"==typeof t?t:na,Lt(ze(e,1,_i,!0),na,t)});function Ir(t){if(!t||!t.length)return[];var n=0;return t=Ls(t,function(e){if(_i(e))return n=W(e.length,n),!0}),tc(n,function(e){return Us(t,Qs(e))})}function Rr(e,t){if(!e||!e.length)return[];var n=Ir(e);return null==t?n:Us(n,function(e){return Ds(t,na,e)})}var Hr=Ct(function(e,t){return _i(e)?je(e,t):[]}),Pr=Ct(function(e){return qt(Ls(e,_i))}),Lr=Ct(function(e){var t=Mr(e);return _i(t)&&(t=na),qt(Ls(e,_i),Pn(t,2))}),jr=Ct(function(e){var t=Mr(e);return t="function"==typeof t?t:na,qt(Ls(e,_i),na,t)}),Fr=Ct(Ir);var Ur=Ct(function(e){var t=e.length,n=1<t?e[t-1]:na;return n="function"==typeof n?(e.pop(),n):na,Rr(e,n)});function Vr(e){var t=me(e);return t.__chain__=!0,t}function qr(e,t){return t(e)}var Br=Nn(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&&Yn(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:qr,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){x.call(e,n)?++e[n]:De(e,n,1)});var Wr=hn(yr),Yr=hn($r);function Gr(e,t){return($i(e)?Rs:Fe)(e,Pn(t,3))}function Kr(e,t){return($i(e)?Hs:Ue)(e,Pn(t,3))}var Zr=an(function(e,t,n){x.call(e,n)?e[n].push(t):De(e,n,[t])});var Xr=Ct(function(e,t,n){var r=-1,i="function"==typeof t,o=wi(e)?T(e.length):[];return Fe(e,function(e){o[++r]=i?Ds(t,e,n):it(e,t,n)}),o}),Qr=an(function(e,t,n){De(e,n,t)});function Jr(e,t){return($i(e)?Us:ht)(e,Pn(t,3))}var ei=an(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var ti=Ct(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=P||function(){return xs.Date.now()};function ri(e,t,n){return t=n?na:t,t=e&&null==t?e.length:t,Mn(e,128,na,na,na,na,t)}function ii(e,t){var n;if("function"!=typeof t)throw new A(ra);return e=Bi(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=na),n}}var oi=Ct(function(e,t,n){var r=1;if(n.length){var i=mc(n,Hn(oi));r|=32}return Mn(e,r,t,n,i)}),ai=Ct(function(e,t,n){var r=3;if(n.length){var i=mc(n,Hn(ai));r|=32}return Mn(t,r,e,n,i)});function si(r,i,e){var o,a,s,c,u,l,d=0,f=!1,h=!1,t=!0;if("function"!=typeof r)throw new A(ra);function m(e){var t=o,n=a;return o=a=na,d=e,c=r.apply(n,t)}function p(e){var t=e-l;return l===na||i<=t||t<0||h&&s<=e-d}function g(){var e,t,n=ni();if(p(n))return v(n);u=or(g,(t=i-((e=n)-l),h?Y(t,s-(e-d)):t))}function v(e){return u=na,t&&o?m(e):(o=a=na,c)}function n(){var e,t=ni(),n=p(t);if(o=arguments,a=this,l=t,n){if(u===na)return d=e=l,u=or(g,i),f?m(e):c;if(h)return Zt(u),u=or(g,i),m(l)}return u===na&&(u=or(g,i)),c}return i=Wi(i)||0,Si(e)&&(f=!!e.leading,s=(h="maxWait"in e)?W(Wi(e.maxWait)||0,i):s,t="trailing"in e?!!e.trailing:t),n.cancel=function(){u!==na&&Zt(u),d=0,o=l=a=u=na},n.flush=function(){return u===na?c:v(ni())},n}var ci=Ct(function(e,t){return Le(e,1,t)}),ui=Ct(function(e,t,n){return Le(e,Wi(t)||0,n)});function li(i,o){if("function"!=typeof i||null!=o&&"function"!=typeof o)throw new A(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(li.Cache||Ee),a}function di(t){if("function"!=typeof t)throw new A(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)}}li.Cache=Ee;var fi=Gt(function(r,i){var o=(i=1==i.length&&$i(i[0])?Us(i[0],rc(Pn())):Us(ze(i,1),rc(Pn()))).length;return Ct(function(e){for(var t=-1,n=Y(e.length,o);++t<n;)e[t]=i[t].call(this,e[t]);return Ds(r,this,e)})}),hi=Ct(function(e,t){var n=mc(t,Hn(hi));return Mn(e,32,na,t,n)}),mi=Ct(function(e,t){var n=mc(t,Hn(mi));return Mn(e,64,na,t,n)}),pi=Nn(function(e,t){return Mn(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}),yi=ot(function(){return arguments}())?ot:function(e){return Ni(e)&&x.call(e,"callee")&&!S.call(e,"callee")},$i=T.isArray,Ei=ks?rc(ks):function(e){return Ni(e)&&Je(e)==Ma};function wi(e){return null!=e&&Ai(e.length)&&!ki(e)}function _i(e){return Ni(e)&&wi(e)}var Ci=V||Yo,xi=Ts?rc(Ts):function(e){return Ni(e)&&Je(e)==ha};function Mi(e){if(!Ni(e))return!1;var t=Je(e);return t==ma||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ii(e)}function ki(e){if(!Si(e))return!1;var t=Je(e);return t==pa||t==ga||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ti(e){return"number"==typeof e&&e==Bi(e)}function Ai(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 Ni(e){return null!=e&&"object"==typeof e}var Oi=As?rc(As):function(e){return Ni(e)&&qn(e)==va};function Di(e){return"number"==typeof e||Ni(e)&&Je(e)==ba}function Ii(e){if(!Ni(e)||Je(e)!=ya)return!1;var t=M(e);if(null===t)return!0;var n=x.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==m}var Ri=Ss?rc(Ss):function(e){return Ni(e)&&Je(e)==Ea};var Hi=Ns?rc(Ns):function(e){return Ni(e)&&qn(e)==wa};function Pi(e){return"string"==typeof e||!$i(e)&&Ni(e)&&Je(e)==_a}function Li(e){return"symbol"==typeof e||Ni(e)&&Je(e)==Ca}var ji=Os?rc(Os):function(e){return Ni(e)&&Ai(e.length)&&!!Es[Je(e)]};var Fi=En(ft),Ui=En(function(e,t){return e<=t});function Vi(e){if(!e)return[];if(wi(e))return Pi(e)?vc(e):rn(e);if(D&&e[D])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[D]());var t=qn(e);return(t==va?fc:t==wa?pc:vo)(e)}function qi(e){return e?(e=Wi(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0}function Bi(e){var t=qi(e),n=t%1;return t==t?n?t-n:t:0}function zi(e){return e?Re(Bi(e),0,ca):0}function Wi(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=nc(e);var n=cs.test(e);return n||ls.test(e)?Cs(e.slice(2),n?2:8):ss.test(e)?sa:+e}function Yi(e){return on(e,co(e))}function Gi(e){return null==e?"":Pt(e)}var Ki=sn(function(e,t){if(Qn(t)||wi(t))on(t,so(t),e);else for(var n in t)x.call(t,n)&&Ae(e,n,t[n])}),Zi=sn(function(e,t){on(t,co(t),e)}),Xi=sn(function(e,t,n,r){on(t,co(t),e,r)}),Qi=sn(function(e,t,n,r){on(t,so(t),e,r)}),Ji=Nn(Ie);var eo=Ct(function(e,t){e=C(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 u=a[s],l=e[u];(l===na||gi(l,d[u])&&!x.call(e,u))&&(e[u]=o[u])}return e}),to=Ct(function(e){return e.push(na,Tn),Ds(lo,na,e)});function no(e,t,n){var r=null==e?na:Xe(e,t);return r===na?n:r}function ro(e,t){return null!=e&&Bn(e,t,nt)}var io=gn(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=h.call(t)),e[t]=n},No(Io)),oo=gn(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=h.call(t)),x.call(e,t)?e[t].push(n):e[t]=[n]},Pn),ao=Ct(it);function so(e){return wi(e)?Ce(e):lt(e)}function co(e){return wi(e)?Ce(e,!0):dt(e)}var uo=sn(function(e,t,n){gt(e,t,n)}),lo=sn(function(e,t,n,r){gt(e,t,n,r)}),fo=Nn(function(t,e){var n={};if(null==t)return n;var r=!1;e=Us(e,function(e){return e=Yt(e,t),r||(r=1<e.length),e}),on(t,Dn(t),n),r&&(n=He(n,7,An));for(var i=e.length;i--;)jt(n,e[i]);return n});var ho=Nn(function(e,t){return null==e?{}:yt(n=e,t,function(e,t){return ro(n,t)});var n});function mo(e,n){if(null==e)return{};var t=Us(Dn(e),function(e){return[e]});return n=Pn(n),yt(e,t,function(e,t){return n(e,t[0])})}var po=xn(so),go=xn(co);function vo(e){return null==e?[]:ic(e,so(e))}var bo=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?yo(t):t)});function yo(e){return ko(Gi(e).toLowerCase())}function $o(e){return(e=Gi(e))&&e.replace(fs,cc).replace(gs,"")}var Eo=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),wo=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),_o=ln("toLowerCase");var Co=dn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xo=dn(function(e,t,n){return e+(n?" ":"")+ko(t)});var Mo=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ko=ln("toUpperCase");function To(e,t,n){return e=Gi(e),(t=n?na:t)===na?(r=e,bs.test(r)?e.match(vs)||[]:e.match(ns)||[]):e.match(t)||[];var r}var Ao=Ct(function(e,t){try{return Ds(e,na,t)}catch(e){return Mi(e)?e:new g(e)}}),So=Nn(function(t,e){return Rs(e,function(e){e=hr(e),De(t,e,oi(t[e],t))}),t});function No(e){return function(){return e}}var Oo=mn(),Do=mn(!0);function Io(e){return e}function Ro(e){return ut("function"==typeof e?e:He(e,1))}var Ho=Ct(function(t,n){return function(e){return it(e,t,n)}}),Po=Ct(function(t,n){return function(e){return it(t,e,n)}});function Lo(r,t,e){var n=so(t),i=Ze(t,n);null!=e||Si(t)&&(i.length||!n.length)||(e=t,t=r,r=this,i=Ze(t,so(t)));var o=!(Si(e)&&"chain"in e&&!e.chain),a=ki(r);return Rs(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 jo(){}var Fo=bn(Us),Uo=bn(Ps),Vo=bn(zs);function qo(e){return Kn(e)?Qs(hr(e)):(t=e,function(e){return Xe(e,t)});var t}var Bo=$n(),zo=$n(!0);function Wo(){return[]}function Yo(){return!1}var Go=vn(function(e,t){return e+t},0),Ko=_n("ceil"),Zo=vn(function(e,t){return e/t},1),Xo=_n("floor");var Qo,Jo=vn(function(e,t){return e*t},1),ea=_n("round"),ta=vn(function(e,t){return e-t},0);return me.after=function(e,t){if("function"!=typeof t)throw new A(ra);return e=Bi(e),function(){if(--e<1)return t.apply(this,arguments)}},me.ary=ri,me.assign=Ki,me.assignIn=Zi,me.assignInWith=Xi,me.assignWith=Qi,me.at=Ji,me.before=ii,me.bind=oi,me.bindAll=So,me.bindKey=ai,me.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $i(e)?e:[e]},me.chain=Vr,me.chunk=function(e,t,n){t=(n?Gn(e,t,n):t===na)?1:W(Bi(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,a=T(j(r/t));i<r;)a[o++]=Nt(e,i,i+=t);return a},me.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},me.concat=function(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Vs($i(n)?rn(n):[n],ze(t,1))},me.cond=function(r){var i=null==r?0:r.length,t=Pn();return r=i?Us(r,function(e){if("function"!=typeof e[1])throw new A(ra);return[t(e[0]),e[1]]}):[],Ct(function(e){for(var t=-1;++t<i;){var n=r[t];if(Ds(n[0],this,e))return Ds(n[1],this,e)}})},me.conforms=function(e){return t=He(e,1),n=so(t),function(e){return Pe(e,t,n)};var t,n},me.constant=No,me.countBy=zr,me.create=function(e,t){var n=pe(e);return null==t?n:Oe(n,t)},me.curry=function e(t,n,r){var i=Mn(t,8,na,na,na,na,na,n=r?na:n);return i.placeholder=e.placeholder,i},me.curryRight=function e(t,n,r){var i=Mn(t,16,na,na,na,na,na,n=r?na:n);return i.placeholder=e.placeholder,i},me.debounce=si,me.defaults=eo,me.defaultsDeep=to,me.defer=ci,me.delay=ui,me.difference=gr,me.differenceBy=vr,me.differenceWith=br,me.drop=function(e,t,n){var r=null==e?0:e.length;return r?Nt(e,(t=n||t===na?1:Bi(t))<0?0:t,r):[]},me.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Nt(e,0,(t=r-(t=n||t===na?1:Bi(t)))<0?0:t):[]},me.dropRightWhile=function(e,t){return e&&e.length?Ut(e,Pn(t,3),!0,!0):[]},me.dropWhile=function(e,t){return e&&e.length?Ut(e,Pn(t,3),!0):[]},me.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=Bi(n))<0&&(n=i<-n?0:i+n),(r=r===na||i<r?i:Bi(r))<0&&(r+=i),r=r<n?0:zi(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},me.filter=function(e,t){return($i(e)?Ls:Be)(e,Pn(t,3))},me.flatMap=function(e,t){return ze(Jr(e,t),1)},me.flatMapDeep=function(e,t){return ze(Jr(e,t),1/0)},me.flatMapDepth=function(e,t,n){return n=n===na?1:Bi(n),ze(Jr(e,t),n)},me.flatten=Er,me.flattenDeep=function(e){return null!=e&&e.length?ze(e,1/0):[]},me.flattenDepth=function(e,t){return null!=e&&e.length?ze(e,t=t===na?1:Bi(t)):[]},me.flip=function(e){return Mn(e,512)},me.flow=Oo,me.flowRight=Do,me.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},me.functions=function(e){return null==e?[]:Ze(e,so(e))},me.functionsIn=function(e){return null==e?[]:Ze(e,co(e))},me.groupBy=Zr,me.initial=function(e){return null!=e&&e.length?Nt(e,0,-1):[]},me.intersection=_r,me.intersectionBy=Cr,me.intersectionWith=xr,me.invert=io,me.invertBy=oo,me.invokeMap=Xr,me.iteratee=Ro,me.keyBy=Qr,me.keys=so,me.keysIn=co,me.map=Jr,me.mapKeys=function(e,r){var i={};return r=Pn(r,3),Ge(e,function(e,t,n){De(i,r(e,t,n),e)}),i},me.mapValues=function(e,r){var i={};return r=Pn(r,3),Ge(e,function(e,t,n){De(i,t,r(e,t,n))}),i},me.matches=function(e){return mt(He(e,1))},me.matchesProperty=function(e,t){return pt(e,He(t,1))},me.memoize=li,me.merge=uo,me.mergeWith=lo,me.method=Ho,me.methodOf=Po,me.mixin=Lo,me.negate=di,me.nthArg=function(t){return t=Bi(t),Ct(function(e){return vt(e,t)})},me.omit=fo,me.omitBy=function(e,t){return mo(e,di(Pn(t)))},me.once=function(e){return ii(2,e)},me.orderBy=function(e,t,n,r){return null==e?[]:($i(t)||(t=null==t?[]:[t]),$i(n=r?na:n)||(n=null==n?[]:[n]),bt(e,t,n))},me.over=Fo,me.overArgs=fi,me.overEvery=Uo,me.overSome=Vo,me.partial=hi,me.partialRight=mi,me.partition=ei,me.pick=ho,me.pickBy=mo,me.property=qo,me.propertyOf=function(t){return function(e){return null==t?na:Xe(t,e)}},me.pull=kr,me.pullAll=Tr,me.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$t(e,t,Pn(n,2)):e},me.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$t(e,t,na,n):e},me.pullAt=Ar,me.range=Bo,me.rangeRight=zo,me.rearg=pi,me.reject=function(e,t){return($i(e)?Ls:Be)(e,di(Pn(t,3)))},me.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Pn(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Et(e,i),n},me.rest=function(e,t){if("function"!=typeof e)throw new A(ra);return Ct(e,t=t===na?t:Bi(t))},me.reverse=Sr,me.sampleSize=function(e,t,n){return t=(n?Gn(e,t,n):t===na)?1:Bi(t),($i(e)?Me:Mt)(e,t)},me.set=function(e,t,n){return null==e?e:kt(e,t,n)},me.setWith=function(e,t,n,r){return r="function"==typeof r?r:na,null==e?e:kt(e,t,n,r)},me.shuffle=function(e){return($i(e)?ke:St)(e)},me.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:Bi(t),n===na?r:Bi(n)),Nt(e,t,n)):[]},me.sortBy=ti,me.sortedUniq=function(e){return e&&e.length?Rt(e):[]},me.sortedUniqBy=function(e,t){return e&&e.length?Rt(e,Pn(t,2)):[]},me.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&&!Ri(t))&&!(t=Pt(t))&&dc(e)?Kt(vc(e),0,n):e.split(t,n):[]},me.spread=function(r,i){if("function"!=typeof r)throw new A(ra);return i=null==i?0:W(Bi(i),0),Ct(function(e){var t=e[i],n=Kt(e,0,i);return t&&Vs(n,t),Ds(r,this,n)})},me.tail=function(e){var t=null==e?0:e.length;return t?Nt(e,1,t):[]},me.take=function(e,t,n){return e&&e.length?Nt(e,0,(t=n||t===na?1:Bi(t))<0?0:t):[]},me.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Nt(e,(t=r-(t=n||t===na?1:Bi(t)))<0?0:t,r):[]},me.takeRightWhile=function(e,t){return e&&e.length?Ut(e,Pn(t,3),!1,!0):[]},me.takeWhile=function(e,t){return e&&e.length?Ut(e,Pn(t,3)):[]},me.tap=function(e,t){return t(e),e},me.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new A(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})},me.thru=qr,me.toArray=Vi,me.toPairs=po,me.toPairsIn=go,me.toPath=function(e){return $i(e)?Us(e,hr):Li(e)?[e]:rn(fr(Gi(e)))},me.toPlainObject=Yi,me.transform=function(e,r,i){var t=$i(e),n=t||Ci(e)||ji(e);if(r=Pn(r,4),null==i){var o=e&&e.constructor;i=n?t?new o:[]:Si(e)&&ki(o)?pe(M(e)):{}}return(n?Rs:Ge)(e,function(e,t,n){return r(i,e,t,n)}),i},me.unary=function(e){return ri(e,1)},me.union=Nr,me.unionBy=Or,me.unionWith=Dr,me.uniq=function(e){return e&&e.length?Lt(e):[]},me.uniqBy=function(e,t){return e&&e.length?Lt(e,Pn(t,2)):[]},me.uniqWith=function(e,t){return t="function"==typeof t?t:na,e&&e.length?Lt(e,na,t):[]},me.unset=function(e,t){return null==e||jt(e,t)},me.unzip=Ir,me.unzipWith=Rr,me.update=function(e,t,n){return null==e?e:Ft(e,t,Wt(n))},me.updateWith=function(e,t,n,r){return r="function"==typeof r?r:na,null==e?e:Ft(e,t,Wt(n),r)},me.values=vo,me.valuesIn=function(e){return null==e?[]:ic(e,co(e))},me.without=Hr,me.words=To,me.wrap=function(e,t){return hi(Wt(t),e)},me.xor=Pr,me.xorBy=Lr,me.xorWith=jr,me.zip=Fr,me.zipObject=function(e,t){return Bt(e||[],t||[],Ae)},me.zipObjectDeep=function(e,t){return Bt(e||[],t||[],kt)},me.zipWith=Ur,me.entries=po,me.entriesIn=go,me.extend=Zi,me.extendWith=Xi,Lo(me,me),me.add=Go,me.attempt=Ao,me.camelCase=bo,me.capitalize=yo,me.ceil=Ko,me.clamp=function(e,t,n){return n===na&&(n=t,t=na),n!==na&&(n=(n=Wi(n))==n?n:0),t!==na&&(t=(t=Wi(t))==t?t:0),Re(Wi(e),t,n)},me.clone=function(e){return He(e,4)},me.cloneDeep=function(e){return He(e,5)},me.cloneDeepWith=function(e,t){return He(e,5,t="function"==typeof t?t:na)},me.cloneWith=function(e,t){return He(e,4,t="function"==typeof t?t:na)},me.conformsTo=function(e,t){return null==t||Pe(e,t,so(t))},me.deburr=$o,me.defaultTo=function(e,t){return null==e||e!=e?t:e},me.divide=Zo,me.endsWith=function(e,t,n){e=Gi(e),t=Pt(t);var r=e.length,i=n=n===na?r:Re(Bi(n),0,r);return 0<=(n-=t.length)&&e.slice(n,i)==t},me.eq=gi,me.escape=function(e){return(e=Gi(e))&&qa.test(e)?e.replace(Ua,uc):e},me.escapeRegExp=function(e){return(e=Gi(e))&&Xa.test(e)?e.replace(Za,"\\$&"):e},me.every=function(e,t,n){var r=$i(e)?Ps:Ve;return n&&Gn(e,t,n)&&(t=na),r(e,Pn(t,3))},me.find=Wr,me.findIndex=yr,me.findKey=function(e,t){return Ws(e,Pn(t,3),Ge)},me.findLast=Yr,me.findLastIndex=$r,me.findLastKey=function(e,t){return Ws(e,Pn(t,3),Ke)},me.floor=Xo,me.forEach=Gr,me.forEachRight=Kr,me.forIn=function(e,t){return null==e?e:We(e,Pn(t,3),co)},me.forInRight=function(e,t){return null==e?e:Ye(e,Pn(t,3),co)},me.forOwn=function(e,t){return e&&Ge(e,Pn(t,3))},me.forOwnRight=function(e,t){return e&&Ke(e,Pn(t,3))},me.get=no,me.gt=vi,me.gte=bi,me.has=function(e,t){return null!=e&&Bn(e,t,tt)},me.hasIn=ro,me.head=wr,me.identity=Io,me.includes=function(e,t,n,r){e=wi(e)?e:vo(e),n=n&&!r?Bi(n):0;var i=e.length;return n<0&&(n=W(i+n,0)),Pi(e)?n<=i&&-1<e.indexOf(t,n):!!i&&-1<Gs(e,t,n)},me.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Bi(n);return i<0&&(i=W(r+i,0)),Gs(e,t,i)},me.inRange=function(e,t,n){return t=qi(t),n===na?(n=t,t=0):n=qi(n),e=Wi(e),(r=e)>=Y(i=t,o=n)&&r<W(i,o);var r,i,o},me.invoke=ao,me.isArguments=yi,me.isArray=$i,me.isArrayBuffer=Ei,me.isArrayLike=wi,me.isArrayLikeObject=_i,me.isBoolean=function(e){return!0===e||!1===e||Ni(e)&&Je(e)==fa},me.isBuffer=Ci,me.isDate=xi,me.isElement=function(e){return Ni(e)&&1===e.nodeType&&!Ii(e)},me.isEmpty=function(e){if(null==e)return!0;if(wi(e)&&($i(e)||"string"==typeof e||"function"==typeof e.splice||Ci(e)||ji(e)||yi(e)))return!e.length;var t=qn(e);if(t==va||t==wa)return!e.size;if(Qn(e))return!lt(e).length;for(var n in e)if(x.call(e,n))return!1;return!0},me.isEqual=function(e,t){return at(e,t)},me.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},me.isError=Mi,me.isFinite=function(e){return"number"==typeof e&&q(e)},me.isFunction=ki,me.isInteger=Ti,me.isLength=Ai,me.isMap=Oi,me.isMatch=function(e,t){return e===t||st(e,t,jn(t))},me.isMatchWith=function(e,t,n){return n="function"==typeof n?n:na,st(e,t,jn(t),n)},me.isNaN=function(e){return Di(e)&&e!=+e},me.isNative=function(e){if(Xn(e))throw new g("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ct(e)},me.isNil=function(e){return null==e},me.isNull=function(e){return null===e},me.isNumber=Di,me.isObject=Si,me.isObjectLike=Ni,me.isPlainObject=Ii,me.isRegExp=Ri,me.isSafeInteger=function(e){return Ti(e)&&-aa<=e&&e<=aa},me.isSet=Hi,me.isString=Pi,me.isSymbol=Li,me.isTypedArray=ji,me.isUndefined=function(e){return e===na},me.isWeakMap=function(e){return Ni(e)&&qn(e)==xa},me.isWeakSet=function(e){return Ni(e)&&"[object WeakSet]"==Je(e)},me.join=function(e,t){return null==e?"":B.call(e,t)},me.kebabCase=Eo,me.last=Mr,me.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==na&&(i=(i=Bi(n))<0?W(r+i,0):Y(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):Ys(e,Zs,i,!0)},me.lowerCase=wo,me.lowerFirst=_o,me.lt=Fi,me.lte=Ui,me.max=function(e){return e&&e.length?qe(e,Io,et):na},me.maxBy=function(e,t){return e&&e.length?qe(e,Pn(t,2),et):na},me.mean=function(e){return Xs(e,Io)},me.meanBy=function(e,t){return Xs(e,Pn(t,2))},me.min=function(e){return e&&e.length?qe(e,Io,ft):na},me.minBy=function(e,t){return e&&e.length?qe(e,Pn(t,2),ft):na},me.stubArray=Wo,me.stubFalse=Yo,me.stubObject=function(){return{}},me.stubString=function(){return""},me.stubTrue=function(){return!0},me.multiply=Jo,me.nth=function(e,t){return e&&e.length?vt(e,Bi(t)):na},me.noConflict=function(){return xs._===this&&(xs._=p),this},me.noop=jo,me.now=ni,me.pad=function(e,t,n){e=Gi(e);var r=(t=Bi(t))?gc(e):0;if(!t||t<=r)return e;var i=(t-r)/2;return yn(F(i),n)+e+yn(j(i),n)},me.padEnd=function(e,t,n){e=Gi(e);var r=(t=Bi(t))?gc(e):0;return t&&r<t?e+yn(t-r,n):e},me.padStart=function(e,t,n){e=Gi(e);var r=(t=Bi(t))?gc(e):0;return t&&r<t?yn(t-r,n)+e:e},me.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),K(Gi(e).replace(Qa,""),t||0)},me.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=qi(e),t===na?(t=e,e=0):t=qi(t)),t<e){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Z();return Y(e+i*(t-e+_s("1e-"+((i+"").length-1))),t)}return wt(e,t)},me.reduce=function(e,t,n){var r=$i(e)?qs:Js,i=arguments.length<3;return r(e,Pn(t,4),n,i,Fe)},me.reduceRight=function(e,t,n){var r=$i(e)?Bs:Js,i=arguments.length<3;return r(e,Pn(t,4),n,i,Ue)},me.repeat=function(e,t,n){return t=(n?Gn(e,t,n):t===na)?1:Bi(t),_t(Gi(e),t)},me.replace=function(){var e=arguments,t=Gi(e[0]);return e.length<3?t:t.replace(e[1],e[2])},me.result=function(e,t,n){var r=-1,i=(t=Yt(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=ki(o)?o.call(e):o}return e},me.round=ea,me.runInContext=e,me.sample=function(e){return($i(e)?xe:xt)(e)},me.size=function(e){if(null==e)return 0;if(wi(e))return Pi(e)?gc(e):e.length;var t=qn(e);return t==va||t==wa?e.size:lt(e).length},me.snakeCase=Co,me.some=function(e,t,n){var r=$i(e)?zs:Ot;return n&&Gn(e,t,n)&&(t=na),r(e,Pn(t,3))},me.sortedIndex=function(e,t){return Dt(e,t)},me.sortedIndexBy=function(e,t,n){return It(e,t,Pn(n,2))},me.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Dt(e,t);if(r<n&&gi(e[r],t))return r}return-1},me.sortedLastIndex=function(e,t){return Dt(e,t,!0)},me.sortedLastIndexBy=function(e,t,n){return It(e,t,Pn(n,2),!0)},me.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Dt(e,t,!0)-1;if(gi(e[n],t))return n}return-1},me.startCase=xo,me.startsWith=function(e,t,n){return e=Gi(e),n=null==n?0:Re(Bi(n),0,e.length),t=Pt(t),e.slice(n,n+t.length)==t},me.subtract=ta,me.sum=function(e){return e&&e.length?ec(e,Io):0},me.sumBy=function(e,t){return e&&e.length?ec(e,Pn(t,2)):0},me.template=function(a,e,t){var n=me.templateSettings;t&&Gn(a,e,t)&&(e=na),a=Gi(a),e=Xi({},e,n,kn);var s,c,r=Xi({},e.imports,n.imports,kn),i=so(r),o=ic(r,i),u=0,l=e.interpolate||hs,d="__p += '",f=b((e.escape||hs).source+"|"+l.source+"|"+(l===Wa?os:hs).source+"|"+(e.evaluate||hs).source+"|$","g"),h="//# sourceURL="+(x.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$s+"]")+"\n";a.replace(f,function(e,t,n,r,i,o){return n||(n=r),d+=a.slice(u,o).replace(ms,lc),t&&(s=!0,d+="' +\n__e("+t+") +\n'"),i&&(c=!0,d+="';\n"+i+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=o+e.length,e}),d+="';\n";var m=x.call(e,"variable")&&e.variable;if(m){if(rs.test(m))throw new g("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(c?d.replace(Pa,""):d).replace(La,"$1").replace(ja,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"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=Ao(function(){return v(i,h+"return "+d).apply(na,o)});if(p.source=d,Mi(p))throw p;return p},me.times=function(e,t){if((e=Bi(e))<1||aa<e)return[];var n=ca,r=Y(e,ca);t=Pn(t),e-=ca;for(var i=tc(r,t);++n<e;)t(n);return i},me.toFinite=qi,me.toInteger=Bi,me.toLength=zi,me.toLower=function(e){return Gi(e).toLowerCase()},me.toNumber=Wi,me.toSafeInteger=function(e){return e?Re(Bi(e),-aa,aa):0===e?e:0},me.toString=Gi,me.toUpper=function(e){return Gi(e).toUpperCase()},me.trim=function(e,t,n){if((e=Gi(e))&&(n||t===na))return nc(e);if(!e||!(t=Pt(t)))return e;var r=vc(e),i=vc(t);return Kt(r,ac(r,i),sc(r,i)+1).join("")},me.trimEnd=function(e,t,n){if((e=Gi(e))&&(n||t===na))return e.slice(0,bc(e)+1);if(!e||!(t=Pt(t)))return e;var r=vc(e);return Kt(r,0,sc(r,vc(t))+1).join("")},me.trimStart=function(e,t,n){if((e=Gi(e))&&(n||t===na))return e.replace(Qa,"");if(!e||!(t=Pt(t)))return e;var r=vc(e);return Kt(r,ac(r,vc(t))).join("")},me.truncate=function(e,t){var n=30,r="...";if(Si(t)){var i="separator"in t?t.separator:i;n="length"in t?Bi(t.length):n,r="omission"in t?Pt(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),Ri(i)){if(e.slice(s).search(i)){var u,l=c;for(i.global||(i=b(i.source,Gi(as.exec(i))+"g")),i.lastIndex=0;u=i.exec(l);)var d=u.index;c=c.slice(0,d===na?s:d)}}else if(e.indexOf(Pt(i),s)!=s){var f=c.lastIndexOf(i);-1<f&&(c=c.slice(0,f))}return c+r},me.unescape=function(e){return(e=Gi(e))&&Va.test(e)?e.replace(Fa,yc):e},me.uniqueId=function(e){var t=++u;return Gi(e)+t},me.upperCase=Mo,me.upperFirst=ko,me.each=Gr,me.eachRight=Kr,me.first=wr,Lo(me,(Qo={},Ge(me,function(e,t){x.call(me.prototype,t)||(Qo[t]=e)}),Qo),{chain:!1}),me.VERSION="4.17.21",Rs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){me[e].placeholder=me}),Rs(["drop","take"],function(n,r){be.prototype[n]=function(e){e=e===na?1:W(Bi(e),0);var t=this.__filtered__&&!r?new be(this):this.clone();return t.__filtered__?t.__takeCount__=Y(e,t.__takeCount__):t.__views__.push({size:Y(e,ca),type:n+(t.__dir__<0?"Right":"")}),t},be.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),Rs(["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:Pn(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Rs(["head","last"],function(e,t){var n="take"+(t?"Right":"");be.prototype[e]=function(){return this[n](1).value()[0]}}),Rs(["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=Ct(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(Pn(e)))},be.prototype.slice=function(e,t){e=Bi(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=Bi(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 f=/^(?:filter|find|map|reject)|While$/.test(e),h=/^(?:head|last)$/.test(e),m=me[h?"take"+("last"==e?"Right":""):e],p=h||/^find/.test(e);m&&(me.prototype[e]=function(){var e=this.__wrapped__,n=h?[1]:arguments,t=e instanceof be,r=n[0],i=t||$i(e),o=function(e){var t=m.apply(me,Vs([e],n));return h&&a?t[0]:t};i&&f&&"function"==typeof r&&1!=r.length&&(t=i=!1);var a=this.__chain__,s=!!this.__actions__.length,c=p&&!a,u=t&&!s;if(p||!i)return c&&u?d.apply(this,n):(l=this.thru(o),c?h?l.value()[0]:l.value():l);e=u?e:new be(this);var l=d.apply(e,n);return l.__actions__.push({func:qr,args:[o],thisArg:na}),new ve(l,a)})}),Rs(["pop","push","shift","sort","splice","unshift"],function(e){var n=o[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);me.prototype[e]=function(){var t=arguments;if(!i||this.__chain__)return this[r](function(e){return n.apply($i(e)?e:[],t)});var e=this.value();return n.apply($i(e)?e:[],t)}}),Ge(be.prototype,function(e,t){var n=me[t];if(n){var r=n.name+"";x.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=$i(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=Y(t,e+a);break;case"takeRight":e=W(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,d=l.length,f=0,h=Y(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return Vt(e,this.__actions__);var m=[];e:for(;c--&&f<h;){for(var p=-1,g=e[u+=t];++p<d;){var v=l[p],b=v.iteratee,y=v.type,$=b(g);if(2==y)g=$;else if(!$){if(1==y)continue e;break e}}m[f++]=g}return m},me.prototype.at=Br,me.prototype.chain=function(){return Vr(this)},me.prototype.commit=function(){return new ve(this.value(),this.__chain__)},me.prototype.next=function(){this.__values__===na&&(this.__values__=Vi(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?na:this.__values__[this.__index__++]}},me.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},me.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:qr,args:[Sr],thisArg:na}),new ve(t,this.__chain__)}return this.thru(Sr)},me.prototype.toJSON=me.prototype.valueOf=me.prototype.value=function(){return Vt(this.__wrapped__,this.__actions__)},me.prototype.first=me.prototype.head,D&&(me.prototype[D]=function(){return this}),me}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(xs._=$c,define(function(){return $c})):R?((R.exports=$c)._=$c,I._=$c):xs._=$c}.call(this),function(e,t){var k=t.isDefined,T=t.isUndefined,A=t.isNumber,S=t.isObject,N=t.isArray,O=t.isString,D=t.extend,I=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setDefaultToCookie=function(e){return this.defaultToCookie=!!e,this},this.setStorageCookie=function(e,t,n){return this.cookie.expiry=e,this.cookie.path=t,this.cookie.secure=n,this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(c,o,u,a,n){var s,l=this,d=l.prefix,f=l.cookie,i=l.notify,h=l.storageType;u?u[0]&&(u=u[0]):u=document,"."!==d.substr(-1)&&(d=d?d+".":"");var m=function(e){return d+e},r=function(e){return e.replace(new RegExp("^"+d,"g"),"")},p=function(e){return 0===e.indexOf(d)},t=function(){try{var e=h in o&&null!==o[h],t=m("__"+Math.round(1e7*Math.random()));return e&&((s=o[h]).setItem(t,""),s.removeItem(t)),e}catch(e){return l.defaultToCookie&&(h="cookie"),c.$broadcast("LocalStorageModule.notification.error",e.message),!1}},g=t(),v=function(t,n,e){var r=x();try{if(M(e),n=T(n)?null:I(n),!g&&l.defaultToCookie||"cookie"===l.storageType)return g||c.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),i.setItem&&c.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),E(t,n);try{s&&s.setItem(m(t),n),i.setItem&&c.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:l.storageType})}catch(e){return c.$broadcast("LocalStorageModule.notification.error",e.message),E(t,n)}return!0}finally{M(r)}},b=function(e,t){var n=x();try{if(M(t),!g&&l.defaultToCookie||"cookie"===l.storageType)return g||c.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),w(e);var r=s?s.getItem(m(e)):null;if(!r||"null"===r)return null;try{return JSON.parse(r)}catch(e){return r}}finally{M(n)}},y=function(){var e=x();try{var t,n,r=0;for(1<=arguments.length&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(r=1,M(arguments[arguments.length-1])),t=0;t<arguments.length-r;t++)if(n=arguments[t],!g&&l.defaultToCookie||"cookie"===l.storageType)g||c.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),i.removeItem&&c.$broadcast("LocalStorageModule.notification.removeitem",{key:n,storageType:"cookie"}),_(n);else try{s.removeItem(m(n)),i.removeItem&&c.$broadcast("LocalStorageModule.notification.removeitem",{key:n,storageType:l.storageType})}catch(e){c.$broadcast("LocalStorageModule.notification.error",e.message),_(n)}}finally{M(e)}},$=function(){try{return o.navigator.cookieEnabled||"cookie"in u&&(0<u.cookie.length||-1<(u.cookie="test").indexOf.call(u.cookie,"test"))}catch(e){return c.$broadcast("LocalStorageModule.notification.error",e.message),!1}}(),E=function(e,t,n,r){if(T(t))return!1;if((N(t)||S(t))&&(t=I(t)),!$)return c.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var i="",o=new Date,a="";if(null===t?(o.setTime(o.getTime()+-864e5),i="; expires="+o.toGMTString(),t=""):A(n)&&0!==n?(o.setTime(o.getTime()+24*n*60*60*1e3),i="; expires="+o.toGMTString()):0!==f.expiry&&(o.setTime(o.getTime()+24*f.expiry*60*60*1e3),i="; expires="+o.toGMTString()),e){var s="; path="+f.path;f.domain&&(a="; domain="+f.domain),"boolean"==typeof r?!0===r&&(a+="; secure"):!0===f.secure&&(a+="; secure"),u.cookie=m(e)+"="+encodeURIComponent(t)+i+s+a}}catch(e){return c.$broadcast("LocalStorageModule.notification.error",e.message),!1}return!0},w=function(e){if(!$)return c.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var t=u.cookie&&u.cookie.split(";")||[],n=0;n<t.length;n++){for(var r=t[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(m(e)+"=")){var i=decodeURIComponent(r.substring(d.length+e.length+1,r.length));try{var o=JSON.parse(i);return"number"==typeof o?i:o}catch(e){return i}}}return null},_=function(e){E(e,null)},C=function(){for(var e=null,t=d.length,n=u.cookie.split(";"),r=0;r<n.length;r++){for(e=n[r];" "===e.charAt(0);)e=e.substring(1,e.length);var i=e.substring(t,e.indexOf("="));_(i)}},x=function(){return h},M=function(e){return e&&h!==e&&(h=e,g=t()),g};function e(e){if(e||(e=o.event),i.setItem&&O(e.key)&&p(e.key)){var t=r(e.key);n(function(){c.$broadcast("LocalStorageModule.notification.changed",{key:t,newvalue:e.newValue,storageType:l.storageType})})}}g&&(o.addEventListener?(o.addEventListener("storage",e,!1),c.$on("$destroy",function(){o.removeEventListener("storage",e)})):o.attachEvent&&(o.attachEvent("onstorage",e),c.$on("$destroy",function(){o.detachEvent("onstorage",e)})));return{isSupported:g,getStorageType:x,setStorageType:M,setPrefix:function(e){d=e},set:v,add:v,get:b,keys:function(e){var t=x();try{if(M(e),!g)return c.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),[];var n=d.length,r=[];for(var i in s)if(i.substr(0,n)===d)try{r.push(i.substr(n))}catch(e){return c.$broadcast("LocalStorageModule.notification.error",e.Description),[]}return r}finally{M(t)}},remove:y,clearAll:function(e,t){var n=x();try{M(t);var r=d?new RegExp("^"+d):new RegExp,i=e?new RegExp(e):new RegExp;if(!g&&l.defaultToCookie||"cookie"===l.storageType)return g||c.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),C();if(!g&&!l.defaultToCookie)return!1;var o=d.length;for(var a in s)if(r.test(a)&&i.test(a.substr(o)))try{y(a.substr(o))}catch(e){return c.$broadcast("LocalStorageModule.notification.error",e.message),C()}return!0}finally{M(n)}},bind:function(e,t,n,r,i){var o=b(r=r||t,i);return null===o&&k(n)?o=n:S(o)&&S(n)&&(o=D(o,n)),a(t).assign(e,o),e.$watch(t,function(e){v(r,e,i)},S(e[t]))},deriveKey:m,underiveKey:r,length:function(e){var t=x();try{M(e);for(var n=0,r=o[h],i=0;i<r.length;i++)0===r.key(i).indexOf(d)&&n++;return n}finally{M(t)}},defaultToCookie:this.defaultToCookie,cookie:{isSupported:$,set:E,add:E,get:w,remove:_,clearAll:C}}}]})}(window,window.angular),function(e,s){"use strict";var V=s.$$minErr("$resource"),c=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;function q(e,t){if(null==(n=t)||""===n||"hasOwnProperty"===n||!c.test("."+n))throw V("badmember",'Dotted member path "@{0}" is invalid.',t);for(var n,r=t.split("."),i=0,o=r.length;i<o&&s.isDefined(e);i++){var a=r[i];e=null!==e?e[a]:void 0}return e}function B(e,n){for(var t in n=n||{},s.forEach(n,function(e,t){delete n[t]}),e)!e.hasOwnProperty(t)||"$"===t.charAt(0)&&"$"===t.charAt(1)||(n[t]=e[t]);return n}s.module("ngResource",["ng"]).info({angularVersion:"1.8.2"}).provider("$resource",function(){var f=/^https?:\/\/\[[^\]]*][^/]*/,a=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(D,r,I,R){var H=s.noop,P=s.forEach,L=s.extend,j=s.copy,F=s.isArray,u=s.isDefined,U=s.isFunction,i=s.isNumber,l=s.$$encodeUriQuery,d=s.$$encodeUriSegment;function o(e,t){this.template=e,this.defaults=L({},a.defaults,t),this.urlParams={}}return o.prototype={setUrlParams:function(n,r,e){var i,o,a=this,s=e||a.template,t="",c=a.urlParams=Object.create(null);P(s.split(/\W/),function(e){if("hasOwnProperty"===e)throw V("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(s)&&(c[e]={isQueryParamValue:new RegExp("\\?.*=:"+e+"(?:\\W|$)").test(s)})}),s=(s=s.replace(/\\:/g,":")).replace(f,function(e){return t=e,""}),r=r||{},P(a.urlParams,function(e,t){i=r.hasOwnProperty(t)?r[t]:a.defaults[t],s=u(i)&&null!==i?(o=e.isQueryParamValue?l(i,!0):d(i),s.replace(new RegExp(":"+t+"(\\W|$)","g"),function(e,t){return o+t})):s.replace(new RegExp("(/?):"+t+"(\\W|$)","g"),function(e,t,n){return"/"===n.charAt(0)?n:t+n})}),a.defaults.stripTrailingSlashes&&(s=s.replace(/\/+$/,"")||"/"),s=s.replace(/\/\.(?=\w+($|\?))/,"."),n.url=t+s.replace(/\/(\\|%5C)\./,"/."),P(r,function(e,t){a.urlParams[t]||(n.params=n.params||{},n.params[t]=e)})}},function(e,A,t,n){var S=new o(e,n);function N(e){return e.resource}function O(e){B(e||{},this)}return t=L({},a.defaults.actions,t),O.prototype.toJSON=function(){var e=L({},this);return delete e.$promise,delete e.$resolved,delete e.$cancelRequest,e},P(t,function(C,x){var M=!0===C.hasBody||!1!==C.hasBody&&/^(POST|PUT|PATCH)$/i.test(C.method),k=C.timeout,T=u(C.cancellable)?C.cancellable:S.defaults.cancellable;k&&!i(k)&&(r.debug("ngResource:\n  Only numeric values are allowed as `timeout`.\n  Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete C.timeout,k=null),O[x]=function(e,t,n,r){var i,o,a,s={};switch(arguments.length){case 4:a=r,o=n;case 3:case 2:if(!U(t)){s=e,i=t,o=n;break}if(U(e)){o=e,a=t;break}o=t,a=n;case 1:U(e)?o=e:M?i=e:s=e;break;case 0:break;default:throw V("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var c,u,l,d,f,h,m=this instanceof O,p=m?i:C.isArray?[]:new O(i),g={},v=C.interceptor&&C.interceptor.request||void 0,b=C.interceptor&&C.interceptor.requestError||void 0,y=C.interceptor&&C.interceptor.response||N,$=C.interceptor&&C.interceptor.responseError||I.reject,E=o?function(e){o(e,l.headers,l.status,l.statusText)}:void 0,w=a||void 0;P(C,function(e,t){switch(t){default:g[t]=j(e);break;case"params":case"isArray":case"interceptor":case"cancellable":}}),!m&&T&&(c=I.defer(),g.timeout=c.promise,k&&(u=R(c.resolve,k))),M&&(g.data=i),S.setUrlParams(g,L({},(d=i,f=C.params||{},h={},f=L({},A,f),P(f,function(e,t){U(e)&&(e=e(d)),h[t]=e&&e.charAt&&"@"===e.charAt(0)?q(d,e.substr(1)):e}),h),s),C.url);var _=I.resolve(g).then(v).catch(b).then(D);return(_=(_=_.then(function(e){var t=e.data;if(t){if(F(t)!==!!C.isArray)throw V("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",x,C.isArray?"array":"object",F(t)?"array":"object",g.method,g.url);if(C.isArray)p.length=0,P(t,function(e){"object"==typeof e?p.push(new O(e)):p.push(e)});else{var n=p.$promise;B(t,p),p.$promise=n}}return e.resource=p,y(l=e)},function(e){return e.resource=p,$(l=e)})).finally(function(){p.$resolved=!0,!m&&T&&(p.$cancelRequest=H,R.cancel(u),c=u=g.timeout=null)})).then(E,w),m?_:(p.$promise=_,p.$resolved=!1,T&&(p.$cancelRequest=function(e){_.catch(H),null!==c&&c.resolve(e)}),p)},O.prototype["$"+x]=function(e,t,n){U(e)&&(n=t,t=e,e={});var r=O[x].call(this,e,this,t,n);return r.$promise||r}}),O}}]})}(window,window.angular),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 h(){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 m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(m(e,t))return!1;return!0}function l(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function g(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function v(e,t,n,r){return Tt(e,t,n,r,!0).utc()}function b(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function y(e){if(null==e._isValid){var t=b(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!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=v(NaN);return null!=e?g(b(t),e):b(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var o=h.momentProperties=[],t=!1;function E(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=b(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}function w(e){E(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,h.updateOffset(this),t=!1)}function _(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function C(e){!1===h.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,o){var a=!0;return g(function(){if(null!=h.deprecationHandler&&h.deprecationHandler(null,i),a){var e,t,n,r=[];for(t=0;t<arguments.length;t++){if(e="","object"==typeof arguments[t]){for(n in e+="\n["+t+"] ",arguments[0])m(arguments[0],n)&&(e+=n+": "+arguments[0][n]+", ");e=e.slice(0,-2)}else e=arguments[t];r.push(e)}C(i+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var r,a={};function x(e,t){null!=h.deprecationHandler&&h.deprecationHandler(e,t),a[e]||(C(t),a[e]=!0)}function M(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function k(e,t){var n,r=g({},e);for(n in t)m(t,n)&&(c(e[n])&&c(t[n])?(r[n]={},g(r[n],e[n]),g(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)m(e,n)&&!m(t,n)&&c(e[n])&&(r[n]=g({},r[n]));return r}function T(e){null!=e&&this.set(e)}h.suppressDeprecationWarnings=!1,h.deprecationHandler=null,r=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};function A(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 S=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},D={};function I(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(D[e]=i),t&&(D[t[0]]=function(){return A(i.apply(this,arguments),t[1],t[2])}),n&&(D[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=H(t,e.localeData()),O[t]=O[t]||function(r){var e,i,t,o=r.match(S);for(e=0,i=o.length;e<i;e++)D[o[e]]?o[e]=D[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+=M(o[t])?o[t].call(e,r):o[t];return n}}(t),O[t](e)):e.localeData().invalidDate()}function H(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;0<=n&&N.test(e);)e=e.replace(N,r),N.lastIndex=0,n-=1;return e}var P={};function L(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function j(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)m(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}var U={};function V(e,t){U[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function z(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=B(t)),n}function W(t,n){return function(e){return null!=e?(G(this,t,e),h.updateOffset(this,n),this):Y(this,t)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function G(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=z(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,Z=/\d/,X=/\d\d/,Q=/\d{3}/,J=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,ne=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,oe=/\d{1,4}/,ae=/[+-]?\d{1,6}/,se=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[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;function fe(e,n,r){K[e]=M(n)?n:function(e,t){return e&&r?r:n}}function he(e,t){return m(K,e)?K[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var pe={};function ge(e,n){var t,r=n;for("string"==typeof e&&(e=[e]),d(n)&&(r=function(e,t){t[n]=z(e)}),t=0;t<e.length;t++)pe[e[t]]=r}function ve(e,i){ge(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var be,ye=0,$e=1,Ee=2,we=3,_e=4,Ce=5,xe=6,Me=7,ke=8;function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}be=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},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),V("month",8),fe("M",te),fe("MM",te,X),fe("MMM",function(e,t){return t.monthsShortRegex(e)}),fe("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[$e]=z(e)-1}),ge(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[$e]=i:b(n).invalidMonth=e});var Ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe=de,De=de;function Ie(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=z(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Te(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Re(e){return null!=e?(Ie(this,e),h.updateOffset(this,!0),this):Y(this,"Month")}function He(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=v([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]=me(r[t]),i[t]=me(i[t]);for(t=0;t<24;t++)o[t]=me(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 Pe(e){return q(e)?366:365}I("Y",0,0,function(){var e=this.year();return e<=9999?A(e,4):"+"+e}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),L("year","y"),V("year",1),fe("Y",ce),fe("YY",te,X),fe("YYYY",oe,J),fe("YYYYY",ae,ee),fe("YYYYYY",ae,ee),ge(["YYYYY","YYYYYY"],ye),ge("YYYY",function(e,t){t[ye]=2===e.length?h.parseTwoDigitYear(e):z(e)}),ge("YY",function(e,t){t[ye]=h.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[ye]=parseInt(e,10)}),h.parseTwoDigitYear=function(e){return z(e)+(68<z(e)?1900:2e3)};var Le=W("FullYear",!0);function je(e){var t,n;return e<100&&0<=e?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){var r=7+t-n;return-((7+je(e,0,r).getUTCDay()-t)%7)+r-1}function Ue(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Fe(e,r,i);return a=s<=0?Pe(o=e-1)+s:s>Pe(e)?(o=e+1,s-Pe(e)):(o=e,s),{year:o,dayOfYear:a}}function Ve(e,t,n){var r,i,o=Fe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+qe(i=e.year()-1,t,n):a>qe(e.year(),t,n)?(r=a-qe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function qe(e,t,n){var r=Fe(e,t,n),i=Fe(e+1,t,n);return(Pe(e)-r+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),V("week",5),V("isoWeek",5),fe("w",te),fe("ww",te,X),fe("W",te),fe("WW",te,X),ve(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=z(e)});function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),fe("d",te),fe("e",te),fe("E",te),fe("dd",function(e,t){return t.weekdaysMinRegex(e)}),fe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),fe("dddd",function(e,t){return t.weekdaysRegex(e)}),ve(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:b(n).invalidWeekday=e}),ve(["d","e","E"],function(e,t,n,r){t[r]=z(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),We="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ge=de,Ke=de,Ze=de;function Xe(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=v([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),i=me(this.weekdaysShort(n,"")),o=me(this.weekdays(n,"")),a.push(r),s.push(i),c.push(o),u.push(r),u.push(i),u.push(o);a.sort(e),s.sort(e),c.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.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 Qe(){return this.hours()%12||12}function Je(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Qe),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+Qe.apply(this)+A(this.minutes(),2)}),I("hmmss",0,0,function(){return""+Qe.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),Je("a",!0),Je("A",!1),L("hour","h"),V("hour",13),fe("a",et),fe("A",et),fe("H",te),fe("h",te),fe("k",te),fe("HH",te,X),fe("hh",te,X),fe("kk",te,X),fe("hmm",ne),fe("hmmss",re),fe("Hmm",ne),fe("Hmmss",re),ge(["H","HH"],we),ge(["k","kk"],function(e,t,n){var r=z(e);t[we]=24===r?0:r}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[we]=z(e),b(n).bigHour=!0}),ge("hmm",function(e,t,n){var r=e.length-2;t[we]=z(e.substr(0,r)),t[_e]=z(e.substr(r)),b(n).bigHour=!0}),ge("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=z(e.substr(0,r)),t[_e]=z(e.substr(r,2)),t[Ce]=z(e.substr(i)),b(n).bigHour=!0}),ge("Hmm",function(e,t,n){var r=e.length-2;t[we]=z(e.substr(0,r)),t[_e]=z(e.substr(r))}),ge("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[we]=z(e.substr(0,r)),t[_e]=z(e.substr(r,2)),t[Ce]=z(e.substr(i))});var tt=W("Hours",!0);var nt,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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ae,monthsShort:Se,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:Ye,weekdaysShort:We,meridiemParse:/[ap]\.?m?\.?/i},it={},ot={};function at(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function st(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var e=null;if(void 0===it[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=nt._abbr,require("./locale/"+t),ut(e)}catch(e){it[t]=null}return it[t]}function ut(e,t){var n;return e&&((n=l(t)?dt(e):lt(e,t))?nt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function lt(e,t){if(null===t)return delete it[e],null;var n,r=rt;if(t.abbr=e,null!=it[e])x("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=ct(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 T(k(r,t)),ot[e]&&ot[e].forEach(function(e){lt(e.name,e.config)}),ut(e),it[e]}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!s(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=st(e[o]).split("-")).length,n=(n=st(e[o+1]))?n.split("-"):null;0<t;){if(r=ct(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&at(i,n)>=t-1)break;t--}o++}return nt}(e)}function ft(e){var t,n=e._a;return n&&-2===b(e).overflow&&(t=n[$e]<0||11<n[$e]?$e:n[Ee]<1||n[Ee]>Te(n[ye],n[$e])?Ee:n[we]<0||24<n[we]||24===n[we]&&(0!==n[_e]||0!==n[Ce]||0!==n[xe])?we:n[_e]<0||59<n[_e]?_e:n[Ce]<0||59<n[Ce]?Ce:n[xe]<0||999<n[xe]?xe:-1,b(e)._overflowDayOfYear&&(t<ye||Ee<t)&&(t=Ee),b(e)._overflowWeeks&&-1===t&&(t=Me),b(e)._overflowWeekday&&-1===t&&(t=ke),b(e).overflow=t),e}var ht=/^\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)?)?$/,mt=/^\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=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vt=[["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/]],bt=/^\/?Date\((-?\d+)/i,yt=/^(?:(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}))$/,$t={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,n,r,i,o,a,s=e._i,c=ht.exec(s)||mt.exec(s);if(c){for(b(e).iso=!0,t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(c[1])){i=gt[t][0],r=!1!==gt[t][2];break}if(null==i)return void(e._isValid=!1);if(c[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(c[3])){o=(c[2]||" ")+vt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(c[4]){if(!pt.exec(c[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Mt(e)}else e._isValid=!1}function wt(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),Se.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function _t(e){var t,n,r,i,o=yt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(o){if(t=wt(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],r=t,i=e,n&&We.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()&&(b(i).weekdayMismatch=!0,!(i._isValid=!1)))return;e._a=t,e._tzm=function(e,t,n){if(e)return $t[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(o[8],o[9],o[10]),e._d=je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),b(e).rfc2822=!0}else e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function xt(e){var t,n,r,i,o,a=[];if(!e._d){var s,c;for(s=e,c=new Date(h.now()),r=s._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[Ee]&&null==e._a[$e]&&function(e){var t,n,r,i,o,a,s,c,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Ct(t.GG,e._a[ye],Ve(At(),1,4).year),r=Ct(t.W,1),((i=Ct(t.E,1))<1||7<i)&&(c=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Ve(At(),o,a),n=Ct(t.gg,e._a[ye],u.year),r=Ct(t.w,u.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>qe(n,o,a)?b(e)._overflowWeeks=!0:null!=c?b(e)._overflowWeekday=!0:(s=Ue(n,r,i,o,a),e._a[ye]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=Ct(e._a[ye],r[ye]),(e._dayOfYear>Pe(o)||0===e._dayOfYear)&&(b(e)._overflowDayOfYear=!0),n=je(o,0,e._dayOfYear),e._a[$e]=n.getUTCMonth(),e._a[Ee]=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[we]&&0===e._a[_e]&&0===e._a[Ce]&&0===e._a[xe]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?je: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[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(b(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==h.ISO_8601)if(e._f!==h.RFC_2822){e._a=[],b(e).empty=!0;var t,n,r,i,o,a,s,c,u,l=""+e._i,d=l.length,f=0;for(r=H(e._f,e._locale).match(S)||[],t=0;t<r.length;t++)i=r[t],(n=(l.match(he(i,e))||[])[0])&&(0<(o=l.substr(0,l.indexOf(n))).length&&b(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),f+=n.length),D[i]?(n?b(e).empty=!1:b(e).unusedTokens.push(i),s=i,u=e,null!=(c=n)&&m(pe,s)&&pe[s](c,u._a,u,s)):e._strict&&!n&&b(e).unusedTokens.push(i);b(e).charsLeftOver=d-f,0<l.length&&b(e).unusedInput.push(l),e._a[we]<=12&&!0===b(e).bigHour&&0<e._a[we]&&(b(e).bigHour=void 0),b(e).parsedDateParts=e._a.slice(0),b(e).meridiem=e._meridiem,e._a[we]=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[we],e._meridiem),null!==(a=b(e).era)&&(e._a[ye]=e._locale.erasConvertYear(a,e._a[ye])),xt(e),ft(e)}else _t(e);else Et(e)}function kt(e){var t,n,r,i,o=e._i,a=e._f;return e._locale=e._locale||dt(e._l),null===o||void 0===a&&""===o?$({nullInput:!0}):("string"==typeof o&&(e._i=o=e._locale.preparse(o)),_(o)?new w(ft(o)):(f(o)?e._d=o:s(a)?function(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return b(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)o=0,a=!1,t=E({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Mt(t),y(t)&&(a=!0),o+=b(t).charsLeftOver,o+=10*b(t).unusedTokens.length,b(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));g(e,n||t)}(e):a?Mt(e):l(n=(t=e)._i)?t._d=new Date(h.now()):f(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(r=t,null===(i=bt.exec(r._i))?(Et(r),!1===r._isValid&&(delete r._isValid,_t(r),!1===r._isValid&&(delete r._isValid,r._strict?r._isValid=!1:h.createFromInputFallback(r)))):r._d=new Date(+i[1])):s(n)?(t._a=p(n.slice(0),function(e){return parseInt(e,10)}),xt(t)):c(n)?function(e){if(!e._d){var t=F(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),xt(e)}}(t):d(n)?t._d=new Date(n):h.createFromInputFallback(t),y(e)||(e._d=null),e))}function Tt(e,t,n,r,i){var o,a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(c(e)&&u(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 w(ft(kt(a))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function At(e,t,n,r){return Tt(e,t,n,r,!1)}h.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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),h.ISO_8601=function(){},h.RFC_2822=function(){};var St=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$()}),Nt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:$()});function Ot(e,t){var n,r;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Dt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var t=F(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,u=t.second||0,l=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(m(e,t)&&(-1===be.call(Dt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Dt.length;++n)if(e[Dt[n]]){if(r)return!1;parseFloat(e[Dt[n]])!==z(e[Dt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+l+1e3*u+6e4*c+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function Rt(e){return e instanceof It}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,n){I(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+A(~~(e/60),2)+n+A(~~e%60,2)})}Pt("Z",":"),Pt("ZZ",""),fe("Z",le),fe("ZZ",le),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=jt(le,e)});var Lt=/([\+\-]|\d\d)/gi;function jt(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(Lt)||["-",0,0])[1]+z(n[2]))?0:"+"===n[0]?r:-r}function Ft(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(_(e)||f(e)?e.valueOf():At(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),h.updateOffset(n,!1),n):At(e).local()}function Ut(e){return-Math.round(e._d.getTimezoneOffset())}function Vt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}h.updateOffset=function(){};var qt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,r,i,o=e,a=null;return Rt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=qt.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:z(a[Ee])*n,h:z(a[we])*n,m:z(a[_e])*n,s:z(a[Ce])*n,ms:z(Ht(1e3*a[xe]))*n}):(a=Bt.exec(e))?(n="-"===a[1]?-1:1,o={y:Wt(a[2],n),M:Wt(a[3],n),w:Wt(a[4],n),d:Wt(a[5],n),h:Wt(a[6],n),m:Wt(a[7],n),s:Wt(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}(At(o.from),At(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new It(o),Rt(e)&&m(e,"_locale")&&(r._locale=e._locale),Rt(e)&&m(e,"_isValid")&&(r._isValid=e._isValid),r}function Wt(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 Gt(r,i){return function(e,t){var n;return null===t||isNaN(+t)||(x(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),Kt(this,zt(e,t),r),this}}function Kt(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,Y(e,"Month")+a*n),o&&G(e,"Date",Y(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&h.updateOffset(e,o||a))}zt.fn=It.prototype,zt.invalid=function(){return zt(NaN)};var Zt=Gt(1,"add"),Xt=Gt(-1,"subtract");function Qt(e){return"string"==typeof e||e instanceof String}function Jt(e){return _(e)||f(e)||Qt(e)||d(e)||function(t){var e=s(t),n=!1;e&&(n=0===t.filter(function(e){return!d(e)&&Qt(t)}).length);return e&&n}(e)||function(e){var t,n,r=c(e)&&!u(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],i=i||m(e,n);return r&&i}(e)||null==e}function en(e,t){if(e.date()<t.date())return-en(t,e);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 tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}h.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",h.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=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 rn(){return this._locale}var on=126227808e5;function an(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-on:new Date(e,t,n).valueOf()}function cn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-on:Date.UTC(e,t,n)}function un(e,t){return t.erasAbbrRegex(e)}function ln(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),i.push(me(a[e].narrow)),o.push(me(a[e].name)),o.push(me(a[e].abbr)),o.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function dn(e,t){I(0,[e,e.length],0,t)}function fn(e,t,n,r,i){var o;return null==e?Ve(this,r,i).year:((o=qe(e,r,i))<t&&(t=o),function(e,t,n,r,i){var o=Ue(e,t,n,r,i),a=je(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))}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),fe("N",un),fe("NN",un),fe("NNN",un),fe("NNNN",function(e,t){return t.erasNameRegex(e)}),fe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?b(n).era=i:b(n).invalidEra=e}),fe("y",se),fe("yy",se),fe("yyy",se),fe("yyyy",se),fe("yo",function(e,t){return t._eraYearOrdinalRegex||se}),ge(["y","yy","yyy","yyyy"],ye),ge(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ye]=n._locale.eraYearOrdinalParse(e,i):t[ye]=parseInt(e,10)}),I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),fe("G",ce),fe("g",ce),fe("GG",te,X),fe("gg",te,X),fe("GGGG",oe,J),fe("gggg",oe,J),fe("GGGGG",ae,ee),fe("ggggg",ae,ee),ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=z(e)}),ve(["gg","GG"],function(e,t,n,r){t[r]=h.parseTwoDigitYear(e)}),I("Q",0,"Qo","quarter"),L("quarter","Q"),V("quarter",7),fe("Q",Z),ge("Q",function(e,t){t[$e]=3*(z(e)-1)}),I("D",["DD",2],"Do","date"),L("date","D"),V("date",9),fe("D",te),fe("DD",te,X),fe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],Ee),ge("Do",function(e,t){t[Ee]=z(e.match(te)[0])});var hn=W("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),V("dayOfYear",4),fe("DDD",ie),fe("DDDD",Q),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=z(e)}),I("m",["mm",2],0,"minute"),L("minute","m"),V("minute",14),fe("m",te),fe("mm",te,X),ge(["m","mm"],_e);var mn=W("Minutes",!1);I("s",["ss",2],0,"second"),L("second","s"),V("second",15),fe("s",te),fe("ss",te,X),ge(["s","ss"],Ce);var pn,gn,vn=W("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),V("millisecond",16),fe("S",ie,Z),fe("SS",ie,X),fe("SSS",ie,Q),pn="SSSS";pn.length<=9;pn+="S")fe(pn,se);function bn(e,t){t[xe]=z(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ge(pn,bn);gn=W("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var yn=w.prototype;function $n(e){return e}yn.add=Zt,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=c(e)&&!u(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)r=r||m(e,i[t]);return n&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||At(),r=Ft(n,this).startOf("day"),i=h.calendarFormat(this,r)||"sameElse",o=t&&(M(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,At(n)))},yn.clone=function(){return new w(this)},yn.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=j(t)){case"year":o=en(this,r)/12;break;case"month":o=en(this,r);break;case"quarter":o=en(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:B(o)},yn.endOf=function(e){var t,n;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:sn,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-an(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-an(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-an(t,1e3)-1}return this._d.setTime(t),h.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?h.defaultFormatUtc:h.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||At(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(At(),e)},yn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||At(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(At(),e)},yn.get=function(e){return M(this[e=j(e)])?this[e]():this},yn.invalidAt=function(){return b(this).overflow},yn.isAfter=function(e,t){var n=_(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=_(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,r){var i=_(e)?e:At(e),o=_(t)?t:At(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))},yn.isSame=function(e,t){var n,r=_(e)?e:At(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return y(this)},yn.lang=nn,yn.locale=tn,yn.localeData=rn,yn.max=Nt,yn.min=St,yn.parsingFlags=function(){return g({},b(this))},yn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)m(e,t)&&n.push({unit:t,priority:U[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=F(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(M(this[e=j(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?cn:sn,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-=an(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=an(t,6e4);break;case"second":t=this._d.valueOf(),t-=an(t,1e3)}return this._d.setTime(t),h.updateOffset(this,!0),this},yn.subtract=Xt,yn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},yn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.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()?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},yn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},yn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},yn.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-h(i[e].since).year())*n+i[e].offset;return this.year()},yn.year=Le,yn.isLeapYear=function(){return q(this.year())},yn.weekYear=function(e){return fn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return fn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=Re,yn.daysInMonth=function(){return Te(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return qe(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return qe(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return qe(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return qe(this.isoWeekYear(),1,4)},yn.date=hn,yn.day=yn.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},yn.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")},yn.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)},yn.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")},yn.hour=yn.hours=tt,yn.minute=yn.minutes=mn,yn.second=yn.seconds=vn,yn.millisecond=yn.milliseconds=gn,yn.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:Ut(this);if("string"==typeof e){if(null===(e=jt(le,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ut(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,zt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,h.updateOffset(this,!0),this._changeInProgress=null)),this},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ut(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=jt(ue,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Vt,yn.isUTC=Vt,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=n("dates accessor is deprecated. Use date instead.",hn),yn.months=n("months accessor is deprecated. Use month instead",Re),yn.years=n("years accessor is deprecated. Use year instead",Le),yn.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()}),yn.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,t={};return E(t,this),(t=kt(t))._a?(e=t._isUTC?v(t._a):At(t._a),this._isDSTShifted=this.isValid()&&0<function(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&&z(e[r])!==z(t[r]))&&a++;return a+o}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});var En=T.prototype;function wn(e,t,n,r){var i=dt(),o=v().set(r,t);return i[n](o,e)}function _n(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return wn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=wn(e,r,n,"month");return i}function Cn(e,t,n,r){t=("boolean"==typeof e?d(t)&&(n=t,t=void 0):(t=e,e=!1,d(n=t)&&(n=t,t=void 0)),t||"");var i,o=dt(),a=e?o._week.dow:0,s=[];if(null!=n)return wn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=wn(t,(i+a)%7,r,"day");return s}En.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return M(r)?r.call(t,n):r},En.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(S).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},En.invalidDate=function(){return this._invalidDate},En.ordinal=function(e){return this._ordinal.replace("%d",e)},En.preparse=$n,En.postformat=$n,En.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return M(i)?i(e,t,n,r):i.replace(/%d/i,e)},En.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)},En.set=function(e){var t,n;for(n in e)m(e,n)&&(M(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)},En.eras=function(e,t){var n,r,i,o=this._eras||dt("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=h(o[n].since).startOf("day"),o[n].since=i.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=h(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o},En.erasParse=function(e,t,n){var r,i,o,a,s,c=this.eras();for(e=e.toUpperCase(),r=0,i=c.length;r<i;++r)if(o=c[r].name.toUpperCase(),a=c[r].abbr.toUpperCase(),s=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return c[r];break;case"NNNN":if(o===e)return c[r];break;case"NNNNN":if(s===e)return c[r]}else if(0<=[o,a,s].indexOf(e))return c[r]},En.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?h(e.since).year():h(e.since).year()+(t-e.offset)*n},En.erasAbbrRegex=function(e){return m(this,"_erasAbbrRegex")||ln.call(this),e?this._erasAbbrRegex:this._erasRegex},En.erasNameRegex=function(e){return m(this,"_erasNameRegex")||ln.call(this),e?this._erasNameRegex:this._erasRegex},En.erasNarrowRegex=function(e){return m(this,"_erasNarrowRegex")||ln.call(this),e?this._erasNarrowRegex:this._erasRegex},En.months=function(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone},En.monthsShort=function(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},En.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=v([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,a))?i:null:-1!==(i=be.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=be.call(this._shortMonthsParse,a))?i:-1!==(i=be.call(this._longMonthsParse,a))?i:null:-1!==(i=be.call(this._longMonthsParse,a))?i:-1!==(i=be.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=v([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}},En.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},En.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},En.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},En.firstDayOfYear=function(){return this._week.doy},En.firstDayOfWeek=function(){return this._week.dow},En.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?Be(n,this._week.dow):e?n[e.day()]:n},En.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},En.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},En.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=v([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=be.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=be.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=be.call(this._weekdaysParse,a))?i:-1!==(i=be.call(this._shortWeekdaysParse,a))?i:-1!==(i=be.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=be.call(this._shortWeekdaysParse,a))?i:-1!==(i=be.call(this._weekdaysParse,a))?i:-1!==(i=be.call(this._minWeekdaysParse,a))?i:null:-1!==(i=be.call(this._minWeekdaysParse,a))?i:-1!==(i=be.call(this._weekdaysParse,a))?i:-1!==(i=be.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=v([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}},En.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},En.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},En.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},En.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},En.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ut("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===z(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),h.lang=n("moment.lang is deprecated. Use moment.locale instead.",ut),h.langData=n("moment.langData is deprecated. Use moment.localeData instead.",dt);var xn=Math.abs;function Mn(e,t,n,r){var i=zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function Tn(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var Nn=Sn("ms"),On=Sn("s"),Dn=Sn("m"),In=Sn("h"),Rn=Sn("d"),Hn=Sn("w"),Pn=Sn("M"),Ln=Sn("Q"),jn=Sn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=Fn("milliseconds"),Vn=Fn("seconds"),qn=Fn("minutes"),Bn=Fn("hours"),zn=Fn("days"),Wn=Fn("months"),Yn=Fn("years");var Gn=Math.round,Kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var Zn=Math.abs;function Xn(e){return(0<e)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,c=Zn(this._milliseconds)/1e3,u=Zn(this._days),l=Zn(this._months),d=this.asSeconds();return d?(t=B((e=B(c/60))/60),c%=60,e%=60,n=B(l/12),l%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=Xn(this._months)!==Xn(d)?"-":"",a=Xn(this._days)!==Xn(d)?"-":"",s=Xn(this._milliseconds)!==Xn(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(u?a+u+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var Jn=It.prototype;return Jn.isValid=function(){return this._isValid},Jn.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},Jn.add=function(e,t){return Mn(this,e,t,1)},Jn.subtract=function(e,t){return Mn(this,e,t,-1)},Jn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Tn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(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)}},Jn.asMilliseconds=Nn,Jn.asSeconds=On,Jn.asMinutes=Dn,Jn.asHours=In,Jn.asDays=Rn,Jn.asWeeks=Hn,Jn.asMonths=Pn,Jn.asQuarters=Ln,Jn.asYears=jn,Jn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*z(this._months/12):NaN},Jn._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*kn(An(s)+a),s=a=0),c.milliseconds=o%1e3,e=B(o/1e3),c.seconds=e%60,t=B(e/60),c.minutes=t%60,n=B(t/60),c.hours=n%24,s+=i=B(Tn(a+=B(n/24))),a-=kn(An(i)),r=B(s/12),s%=12,c.days=a,c.months=s,c.years=r,this},Jn.clone=function(){return zt(this)},Jn.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},Jn.milliseconds=Un,Jn.seconds=Vn,Jn.minutes=qn,Jn.hours=Bn,Jn.days=zn,Jn.weeks=function(){return B(this.days()/7)},Jn.months=Wn,Jn.years=Yn,Jn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i,o,a,s,c,u,l,d,f,h,m,p,g,v=!1,b=Kn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(v=e),"object"==typeof t&&(b=Object.assign({},Kn,t),null!=t.s&&null==t.ss&&(b.ss=t.s-1)),n=this.localeData(),o=!v,a=b,s=n,c=zt(i=this).abs(),u=Gn(c.as("s")),l=Gn(c.as("m")),d=Gn(c.as("h")),f=Gn(c.as("d")),h=Gn(c.as("M")),m=Gn(c.as("w")),p=Gn(c.as("y")),g=u<=a.ss&&["s",u]||u<a.s&&["ss",u]||l<=1&&["m"]||l<a.m&&["mm",l]||d<=1&&["h"]||d<a.h&&["hh",d]||f<=1&&["d"]||f<a.d&&["dd",f],null!=a.w&&(g=g||m<=1&&["w"]||m<a.w&&["ww",m]),(g=g||h<=1&&["M"]||h<a.M&&["MM",h]||p<=1&&["y"]||["yy",p])[2]=o,g[3]=0<+i,g[4]=s,r=function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,g),v&&(r=n.pastFuture(+this,r)),n.postformat(r)},Jn.toISOString=Qn,Jn.toString=Qn,Jn.toJSON=Qn,Jn.locale=tn,Jn.localeData=rn,Jn.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Jn.lang=nn,I("X",0,0,"unix"),I("x",0,0,"valueOf"),fe("x",ce),fe("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,n){n._d=new Date(z(e))}),h.version="2.29.1",e=At,h.fn=yn,h.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},h.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},h.now=function(){return Date.now?Date.now():+new Date},h.utc=v,h.unix=function(e){return At(1e3*e)},h.months=function(e,t){return _n(e,t,"months")},h.isDate=f,h.locale=ut,h.invalid=$,h.duration=zt,h.isMoment=_,h.weekdays=function(e,t,n){return Cn(e,t,n,"weekdays")},h.parseZone=function(){return At.apply(null,arguments).parseZone()},h.localeData=dt,h.isDuration=Rt,h.monthsShort=function(e,t){return _n(e,t,"monthsShort")},h.weekdaysMin=function(e,t,n){return Cn(e,t,n,"weekdaysMin")},h.defineLocale=lt,h.updateLocale=function(e,t){if(null!=t){var n,r,i=rt;null!=it[e]&&null!=it[e].parentLocale?it[e].set(k(it[e]._config,t)):(null!=(r=ct(e))&&(i=r._config),t=k(i,t),null==r&&(t.abbr=e),(n=new T(t)).parentLocale=it[e],it[e]=n),ut(e)}else null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===ut()&&ut(e)):null!=it[e]&&delete it[e]);return it[e]},h.locales=function(){return r(it)},h.weekdaysShort=function(e,t,n){return Cn(e,t,n,"weekdaysShort")},h.normalizeUnits=j,h.relativeTimeRounding=function(e){return void 0===e?Gn:"function"==typeof e&&(Gn=e,!0)},h.relativeTimeThreshold=function(e,t){return void 0!==Kn[e]&&(void 0===t?Kn[e]:(Kn[e]=t,"s"===e&&(Kn.ss=t-1),!0))},h.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"},h.prototype=yn,h.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"},h}),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(_,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,p=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},c=t.push,i=t.indexOf,n={},o=n.toString,g=n.hasOwnProperty,a=g.toString,u=a.call(Object),v={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=_.document,l={type:!0,src:!0,nonce:!0,noModule:!0};function $(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in l)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function E(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)};function d(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!b(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}x.fn=x.prototype={jquery:"3.6.0",constructor:x,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(n){return this.pushStack(x.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:t.sort,splice:t.splice},x.extend=x.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||b(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,a[t]=x.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},x.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=g.call(t,"constructor")&&t.constructor)&&a.call(n)===u)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){$(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(d(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?x.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(d(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return p(a)},guid:1,support:v}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=t[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var f=function(n){var e,h,$,o,i,m,d,p,E,c,u,w,_,a,C,g,s,l,v,x="sizzle"+1*new Date,f=n.document,M=0,r=0,b=ce(),y=ce(),k=ce(),T=ce(),A=function(e,t){return e===t&&(u=!0),0},S={}.hasOwnProperty,t=[],N=t.pop,O=t.push,D=t.push,I=t.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",L="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+P+"*("+L+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+P+"*\\]",F=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",U=new RegExp(P+"+","g"),V=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),q=new RegExp("^"+P+"*,"+P+"*"),B=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),z=new RegExp(P+"|>"),W=new RegExp(F),Y=new RegExp("^"+L+"$"),G={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){w()},ae=$e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{D.apply(t=I.call(f.childNodes),f.childNodes),t[f.childNodes.length].nodeType}catch(e){D={apply:t.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,c,u,l,d=e&&e.ownerDocument,f=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return n;if(!r&&(w(e),e=e||_,C)){if(11!==f&&(c=J.exec(t)))if(i=c[1]){if(9===f){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(c[2])return D.apply(n,e.getElementsByTagName(t)),n;if((i=c[3])&&h.getElementsByClassName&&e.getElementsByClassName)return D.apply(n,e.getElementsByClassName(i)),n}if(h.qsa&&!T[t+" "]&&(!g||!g.test(t))&&(1!==f||"object"!==e.nodeName.toLowerCase())){if(l=t,d=e,1===f&&(z.test(t)||B.test(t))){for((d=ee.test(t)&&ve(e.parentNode)||e)===e&&h.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=x)),o=(u=m(t)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+ye(u[o]);l=u.join(",")}try{return D.apply(n,d.querySelectorAll(l)),n}catch(e){T(t,!0)}finally{s===x&&e.removeAttribute("id")}}}return p(t.replace(V,"$1"),e,n,r)}function ce(){var r=[];return function e(t,n){return r.push(t+" ")>$.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function ue(e){return e[x]=!0,e}function le(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)$.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function me(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function pe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ge(a){return ue(function(o){return o=+o,ue(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},w=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:f;return r!=_&&9===r.nodeType&&r.documentElement&&(a=(_=r).documentElement,C=!i(_),f!=_&&(n=_.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),h.scope=le(function(e){return a.appendChild(e).appendChild(_.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=le(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=Q.test(_.getElementsByClassName),h.getById=le(function(e){return a.appendChild(e).id=x,!_.getElementsByName||!_.getElementsByName(x).length}),h.getById?($.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},$.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):($.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},$.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),$.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},$.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&C)return t.getElementsByClassName(e)},s=[],g=[],(h.qsa=Q.test(_.querySelectorAll))&&(le(function(e){var t;a.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=_.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=Q.test(l=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&le(function(e){h.disconnectedMatch=l.call(e,"*"),l.call(e,"[s!='']:x"),s.push("!=",F)}),g=g.length&&new RegExp(g.join("|")),s=s.length&&new RegExp(s.join("|")),t=Q.test(a.compareDocumentPosition),v=t||Q.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==f&&v(f,e)?-1:t==_||t.ownerDocument==f&&v(f,t)?1:c?R(c,e)-R(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==_?-1:t==_?1:i?-1:o?1:c?R(c,e)-R(c,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==f?-1:s[r]==f?1:0}),_},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(w(e),h.matchesSelector&&C&&!T[t+" "]&&(!s||!s.test(t))&&(!g||!g.test(t)))try{var n=l.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){T(t,!0)}return 0<se(t,_,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=_&&w(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=_&&w(e);var n=$.attrHandle[t.toLowerCase()],r=n&&S.call($.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:h.attributes||!C?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(u=!h.detectDuplicates,c=!h.sortStable&&e.slice(0),e.sort(A),u){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return c=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},($=se.selectors={cacheLength:50,createPseudo:ue,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&b(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(U," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(m,e,t,p,g){var v="nth"!==m.slice(0,3),b="last"!==m.slice(-4),y="of-type"===e;return 1===p&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,c,u=v!==b?"nextSibling":"previousSibling",l=e.parentNode,d=y&&e.nodeName.toLowerCase(),f=!n&&!y,h=!1;if(l){if(v){for(;u;){for(a=e;a=a[u];)if(y?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;c=u="only"===m&&!c&&"nextSibling"}return!0}if(c=[b?l.firstChild:l.lastChild],b&&f){for(h=(s=(r=(i=(o=(a=l)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[m]||[])[0]===M&&r[1])&&r[2],a=s&&l.childNodes[s];a=++s&&a&&a[u]||(h=s=0)||c.pop();)if(1===a.nodeType&&++h&&a===e){i[m]=[M,s,h];break}}else if(f&&(h=s=(r=(i=(o=(a=e)[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[m]||[])[0]===M&&r[1]),!1===h)for(;(a=++s&&a&&a[u]||(h=s=0)||c.pop())&&((y?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++h||(f&&((i=(o=a[x]||(a[x]={}))[a.uniqueID]||(o[a.uniqueID]={}))[m]=[M,h]),a!==e)););return(h-=g)===p||h%p==0&&0<=h/p}}},PSEUDO:function(e,o){var t,a=$.pseudos[e]||$.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[x]?a(o):1<a.length?(t=[e,e,"",o],$.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=R(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ue(function(e){var r=[],i=[],s=d(e.replace(V,"$1"));return s[x]?ue(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:ue(function(t){return function(e){return 0<se(t,e).length}}),contains:ue(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:ue(function(n){return Y.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!$.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ge(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=$.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})$.pseudos[e]=he(e);for(e in{submit:!0,reset:!0})$.pseudos[e]=me(e);function be(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function $e(s,e,t){var c=e.dir,u=e.next,l=u||c,d=t&&"parentNode"===l,f=r++;return e.first?function(e,t,n){for(;e=e[c];)if(1===e.nodeType||d)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[M,f];if(n){for(;e=e[c];)if((1===e.nodeType||d)&&s(e,t,n))return!0}else for(;e=e[c];)if(1===e.nodeType||d)if(i=(o=e[x]||(e[x]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[c]||e;else{if((r=i[l])&&r[0]===M&&r[1]===f)return a[2]=r[2];if((i[l]=a)[2]=s(e,t,n))return!0}return!1}}function Ee(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function we(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,u=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function _e(h,m,p,g,v,e){return g&&!g[x]&&(g=_e(g)),v&&!v[x]&&(v=_e(v,e)),ue(function(e,t,n,r){var i,o,a,s=[],c=[],u=t.length,l=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(m||"*",n.nodeType?[n]:n,[]),d=!h||!e&&m?l:we(l,s,h,n,r),f=p?v||(e?h:u||g)?[]:t:d;if(p&&p(d,f,n,r),g)for(i=we(f,c),g(i,[],n,r),o=i.length;o--;)(a=i[o])&&(f[c[o]]=!(d[c[o]]=a));if(e){if(v||h){if(v){for(i=[],o=f.length;o--;)(a=f[o])&&i.push(d[o]=a);v(null,f=[],i,r)}for(o=f.length;o--;)(a=f[o])&&-1<(i=v?R(e,a):s[o])&&(e[i]=!(t[i]=a))}}else f=we(f===t?f.splice(u,f.length):f),v?v(null,t,f,r):D.apply(t,f)})}function Ce(e){for(var i,t,n,r=e.length,o=$.relative[e[0].type],a=o||$.relative[" "],s=o?1:0,c=$e(function(e){return e===i},a,!0),u=$e(function(e){return-1<R(i,e)},a,!0),l=[function(e,t,n){var r=!o&&(n||t!==E)||((i=t).nodeType?c(e,t,n):u(e,t,n));return i=null,r}];s<r;s++)if(t=$.relative[e[s].type])l=[$e(Ee(l),t)];else{if((t=$.filter[e[s].type].apply(null,e[s].matches))[x]){for(n=++s;n<r&&!$.relative[e[n].type];n++);return _e(1<s&&Ee(l),1<s&&ye(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(V,"$1"),t,s<n&&Ce(e.slice(s,n)),n<r&&Ce(e=e.slice(n)),n<r&&ye(e))}l.push(t)}return Ee(l)}return be.prototype=$.filters=$.pseudos,$.setFilters=new be,m=se.tokenize=function(e,t){var n,r,i,o,a,s,c,u=y[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],c=$.preFilter;a;){for(o in n&&!(r=q.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=B.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(V," ")}),a=a.slice(n.length)),$.filter)!(r=G[o].exec(a))||c[o]&&!(r=c[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):y(e,s).slice(0)},d=se.compile=function(e,t){var n,g,v,b,y,r,i=[],o=[],a=k[e+" "];if(!a){for(t||(t=m(e)),n=t.length;n--;)(a=Ce(t[n]))[x]?i.push(a):o.push(a);(a=k(e,(g=o,b=0<(v=i).length,y=0<g.length,r=function(e,t,n,r,i){var o,a,s,c=0,u="0",l=e&&[],d=[],f=E,h=e||y&&$.find.TAG("*",i),m=M+=null==f?1:Math.random()||.1,p=h.length;for(i&&(E=t==_||t||i);u!==p&&null!=(o=h[u]);u++){if(y&&o){for(a=0,t||o.ownerDocument==_||(w(o),n=!C);s=g[a++];)if(s(o,t||_,n)){r.push(o);break}i&&(M=m)}b&&((o=!s&&o)&&c--,e&&l.push(o))}if(c+=u,b&&u!==c){for(a=0;s=v[a++];)s(l,d,t,n);if(e){if(0<c)for(;u--;)l[u]||d[u]||(d[u]=N.call(r));d=we(d)}D.apply(r,d),i&&!e&&0<d.length&&1<c+v.length&&se.uniqueSort(r)}return i&&(M=m,E=f),l},b?ue(r):r))).selector=e}return a},p=se.select=function(e,t,n,r){var i,o,a,s,c,u="function"==typeof e&&e,l=!r&&m(e=u.selector||e);if(n=n||[],1===l.length){if(2<(o=l[0]=l[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&$.relative[o[1].type]){if(!(t=($.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=G.needsContext.test(e)?0:o.length;i--&&(a=o[i],!$.relative[s=a.type]);)if((c=$.find[s])&&(r=c(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&ye(o)))return D.apply(n,r),n;break}}return(u||d(e,l))(r,t,!C,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},h.sortStable=x.split("").sort(A).join("")===x,h.detectDuplicates=!!u,w(),h.sortDetached=le(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||de(H,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(_);x.find=f,x.expr=f.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=f.uniqueSort,x.text=f.getText,x.isXMLDoc=f.isXML,x.contains=f.contains,x.escapeSelector=f.escape;var h=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},m=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},w=x.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var k=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return b(n)?x.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?x.grep(e,function(e){return e===n!==r}):"string"!=typeof n?x.grep(e,function(e){return-1<i.call(n,e)!==r}):x.filter(n,e,r)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++)if(x.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,i[t],n);return 1<r?x.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&w.test(e)?x(e):e||[],!1).length}});var A,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),k.test(r[1])&&x.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=x.fn,A=x(C);var N=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&x(e);if(!w.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&x.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(x(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return m((e.parentNode||{}).firstChild,e)},children:function(e){return m(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(r,i){x.fn[r]=function(e,t){var n=x.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=x.filter(t,n)),1<this.length&&(O[r]||x.uniqueSort(n),N.test(r)&&n.reverse()),this.pushStack(n)}});var I=/[^\x20\t\r\n\f]+/g;function R(e){return e}function H(e){throw e}function P(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},x.each(e.match(I)||[],function(e,t){n[t]=!0}),n):x.extend({},r);var i,t,o,a,s=[],c=[],u=-1,l=function(){for(a=a||r.once,o=i=!0;c.length;u=-1)for(t=c.shift();++u<s.length;)!1===s[u].apply(t[0],t[1])&&r.stopOnFalse&&(u=s.length,t=!1);r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},d={add:function(){return s&&(t&&!i&&(u=s.length-1,c.push(t)),function n(e){x.each(e,function(e,t){b(t)?r.unique&&d.has(t)||s.push(t):t&&t.length&&"string"!==E(t)&&n(t)})}(arguments),t&&!i&&l()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;-1<(n=x.inArray(t,s,n));)s.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<x.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=c=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=c=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),i||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},x.extend({Deferred:function(e){var o=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return x.Deferred(function(r){x.each(o,function(e,t){var n=b(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&b(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var c=0;function u(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<c)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,b(t)?s?t.call(e,u(c,o,R,s),u(c,o,H,s)):(c++,t.call(e,u(c,o,R,s),u(c,o,H,s),u(c,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,t.stackTrace),c<=i+1&&(a!==H&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(x.Deferred.getStackHook&&(t.stackTrace=x.Deferred.getStackHook()),_.setTimeout(t))}}return x.Deferred(function(e){o[0][3].add(u(0,e,b(r)?r:R,e.notifyWith)),o[1][3].add(u(0,e,b(t)?t:R)),o[2][3].add(u(0,e,b(n)?n:H))}).promise()},promise:function(e){return null!=e?x.extend(e,a):a}},s={};return x.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=x.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(P(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||b(i[t]&&i[t].then)))return o.then();for(;t--;)P(i[t],a(t),o.reject);return o.promise()}});var L=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){_.console&&_.console.warn&&e&&L.test(e.name)&&_.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){_.setTimeout(function(){throw e})};var j=x.Deferred();function F(){C.removeEventListener("DOMContentLoaded",F),_.removeEventListener("load",F),x.ready()}x.fn.ready=function(e){return j.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||j.resolveWith(C,[x])}}),x.ready.then=j.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?_.setTimeout(x.ready):(C.addEventListener("DOMContentLoaded",F),_.addEventListener("load",F));var U=function(e,t,n,r,i,o,a){var s=0,c=e.length,u=null==n;if("object"===E(n))for(s in i=!0,n)U(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,b(r)||(a=!0),u&&(t=a?(t.call(e,r),null):(u=t,function(e,t,n){return u.call(x(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):c?t(e[0],n):o},V=/^-ms-/,q=/-([a-z])/g;function B(e,t){return t.toUpperCase()}function z(e){return e.replace(V,"ms-").replace(q,B)}var W=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=x.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},W(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[z(t)]=n;else for(r in t)i[z(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in r?[t]:t.match(I)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var G=new Y,K=new Y,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g;function Q(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(X,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:Z.test(i)?JSON.parse(i):i)}catch(e){}K.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return K.hasData(e)||G.hasData(e)},data:function(e,t,n){return K.access(e,t,n)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),x.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){K.set(this,n)}):U(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=K.get(o,n))?t:void 0!==(t=Q(o,n))?t:void 0;this.each(function(){K.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=K.get(o),1===o.nodeType&&!G.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=z(r.slice(5)),Q(o,r,i[r]));G.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=G.get(e,t),n&&(!r||Array.isArray(n)?r=G.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){x.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return G.get(e,n)||G.access(e,n,{empty:x.Callbacks("once memory").add(function(){G.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?x.queue(this[0],t):void 0===n?this:this.each(function(){var e=x.queue(this,t,n);x._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&x.dequeue(this,t)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=G.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var J=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+J+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ne=C.documentElement,re=function(e){return x.contains(e.ownerDocument,e)},ie={composed:!0};ne.getRootNode&&(re=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ie)===e.ownerDocument});var oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===x.css(e,"display")};function ae(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},c=s(),u=n&&n[3]||(x.cssNumber[t]?"":"px"),l=e.nodeType&&(x.cssNumber[t]||"px"!==u&&+c)&&ee.exec(x.css(e,t));if(l&&l[3]!==u){for(c/=2,u=u||l[3],l=+c||1;a--;)x.style(e,t,l+u),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),l/=o;l*=2,x.style(e,t,l+u),n=n||[]}return n&&(l=+l||+c||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}var se={};function ce(e,t){for(var n,r,i,o,a,s,c,u=[],l=0,d=e.length;l<d;l++)(r=e[l]).style&&(n=r.style.display,t?("none"===n&&(u[l]=G.get(r,"display")||null,u[l]||(r.style.display="")),""===r.style.display&&oe(r)&&(u[l]=(c=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(c=se[s])||(o=a.body.appendChild(a.createElement(s)),c=x.css(o,"display"),o.parentNode.removeChild(o),"none"===c&&(c="block"),se[s]=c)))):"none"!==n&&(u[l]="none",G.set(r,"display",n)));for(l=0;l<d;l++)null!=u[l]&&(e[l].style.display=u[l]);return e}x.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){oe(this)?x(this).show():x(this).hide()})}});var ue,le,de=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ue=C.createDocumentFragment().appendChild(C.createElement("div")),(le=C.createElement("input")).setAttribute("type","radio"),le.setAttribute("checked","checked"),le.setAttribute("name","t"),ue.appendChild(le),v.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",v.option=!!ue.lastChild;var me={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 pe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?x.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;n<r;n++)G.set(e[n],"globalEval",!t||G.get(t[n],"globalEval"))}me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td,v.option||(me.optgroup=me.option=[1,"<select multiple='multiple'>","</select>"]);var ve=/<|&#?\w+;/;function be(e,t,n,r,i){for(var o,a,s,c,u,l,d=t.createDocumentFragment(),f=[],h=0,m=e.length;h<m;h++)if((o=e[h])||0===o)if("object"===E(o))x.merge(f,o.nodeType?[o]:o);else if(ve.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(fe.exec(o)||["",""])[1].toLowerCase(),c=me[s]||me._default,a.innerHTML=c[1]+x.htmlPrefilter(o)+c[2],l=c[0];l--;)a=a.lastChild;x.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(r&&-1<x.inArray(o,r))i&&i.push(o);else if(u=re(o),a=pe(d.appendChild(o),"script"),u&&ge(a),n)for(l=0;o=a[l++];)he.test(o.type||"")&&n.push(o);return d}var ye=/^([^.]*)(?:\.(.+)|)/;function $e(){return!0}function Ee(){return!1}function we(e,t){return e===function(){try{return C.activeElement}catch(e){}}()==("focus"===t)}function _e(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)_e(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return x().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),e.each(function(){x.event.add(this,t,i,r,n)})}function Ce(e,i,o){o?(G.set(e,i,!1),x.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=G.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(x.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),G.set(this,i,r),t=o(this,i),this[i](),r!==(n=G.get(this,i))||t?G.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(G.set(this,i,{value:x.event.trigger(x.extend(r[0],x.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,i)&&x.event.add(e,i,$e)}x.event={global:{},add:function(t,e,n,r,i){var o,a,s,c,u,l,d,f,h,m,p,g=G.get(t);if(W(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&x.find.matchesSelector(ne,i),n.guid||(n.guid=x.guid++),(c=g.events)||(c=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(I)||[""]).length;u--;)h=p=(s=ye.exec(e[u])||[])[1],m=(s[2]||"").split(".").sort(),h&&(d=x.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=x.event.special[h]||{},l=x.extend({type:h,origType:p,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:m.join(".")},o),(f=c[h])||((f=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,r,m,a)||t.addEventListener&&t.addEventListener(h,a)),d.add&&(d.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),x.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,u,l,d,f,h,m,p,g=G.hasData(e)&&G.get(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(I)||[""]).length;u--;)if(h=p=(s=ye.exec(t[u])||[])[1],m=(s[2]||"").split(".").sort(),h){for(d=x.event.special[h]||{},f=c[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)l=f[o],!i&&p!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(o,1),l.selector&&f.delegateCount--,d.remove&&d.remove.call(e,l));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,m,g.handle)||x.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)x.event.remove(e,h+t[u],n,r,!0);x.isEmptyObject(c)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),c=x.event.fix(e),u=(G.get(this,"events")||Object.create(null))[c.type]||[],l=x.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,c)){for(a=x.event.handlers.call(this,c,u),t=0;(i=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,o,a,s=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&1<=e.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<x(i,this).index(u):x.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,c<t.length&&s.push({elem:u,handlers:t.slice(c)}),s},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return de.test(t.type)&&t.click&&M(t,"input")&&Ce(t,"click",$e),!1},trigger:function(e){var t=this||e;return de.test(t.type)&&t.click&&M(t,"input")&&Ce(t,"click"),!0},_default:function(e){var t=e.target;return de.test(t.type)&&t.click&&M(t,"input")&&G.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?$e:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=$e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=$e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=$e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(e,t){x.event.special[e]={setup:function(){return Ce(this,e,we),!1},trigger:function(){return Ce(this,e),!0},_default:function(){return!0},delegateType:t}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){x.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||x.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),x.fn.extend({on:function(e,t,n,r){return _e(this,e,t,n,r)},one:function(e,t,n,r){return _e(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){x.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var xe=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Te(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Se(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(G.hasData(e)&&(s=G.get(e).events))for(i in G.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)x.event.add(t,i,s[i][n]);K.hasData(e)&&(o=K.access(e),a=x.extend({},o),K.set(t,a))}}function Oe(n,r,i,o){r=p(r);var e,t,a,s,c,u,l=0,d=n.length,f=d-1,h=r[0],m=b(h);if(m||1<d&&"string"==typeof h&&!v.checkClone&&Me.test(h))return n.each(function(e){var t=n.eq(e);m&&(r[0]=h.call(this,e,t.html())),Oe(t,r,i,o)});if(d&&(t=(e=be(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=x.map(pe(e,"script"),Ae)).length;l<d;l++)c=e,l!==f&&(c=x.clone(c,!0,!0),s&&x.merge(a,pe(c,"script"))),i.call(n[l],c,l);if(s)for(u=a[a.length-1].ownerDocument,x.map(a,Se),l=0;l<s;l++)c=a[l],he.test(c.type||"")&&!G.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):$(c.textContent.replace(ke,""),c,u))}return n}function De(e,t,n){for(var r,i=t?x.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||x.cleanData(pe(r)),r.parentNode&&(n&&re(r)&&ge(pe(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,c,u,l=e.cloneNode(!0),d=re(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(a=pe(l),r=0,i=(o=pe(e)).length;r<i;r++)s=o[r],c=a[r],void 0,"input"===(u=c.nodeName.toLowerCase())&&de.test(s.type)?c.checked=s.checked:"input"!==u&&"textarea"!==u||(c.defaultValue=s.defaultValue);if(t)if(n)for(o=o||pe(e),a=a||pe(l),r=0,i=o.length;r<i;r++)Ne(o[r],a[r]);else Ne(e,l);return 0<(a=pe(l,"script")).length&&ge(a,!d&&pe(e,"script")),l},cleanData:function(e){for(var t,n,r,i=x.event.special,o=0;void 0!==(n=e[o]);o++)if(W(n)){if(t=n[G.expando]){if(t.events)for(r in t.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[G.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),x.fn.extend({detach:function(e){return De(this,e,!0)},remove:function(e){return De(this,e)},text:function(e){return U(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Oe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Te(this,e).appendChild(e)})},prepend:function(){return Oe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Te(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Oe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Oe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return U(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!xe.test(e)&&!me[(fe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Oe(this,arguments,function(e){var t=this.parentNode;x.inArray(this,n)<0&&(x.cleanData(pe(this)),t&&t.replaceChild(e,this))},n)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){x.fn[e]=function(e){for(var t,n=[],r=x(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),x(r[o])[a](t),c.apply(n,t.get());return this.pushStack(n)}});var Ie=new RegExp("^("+J+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=_),t.getComputedStyle(e)},He=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Pe=new RegExp(te.join("|"),"i");function Le(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||re(e)||(a=x.style(e,t)),!v.pixelBoxStyles()&&Ie.test(a)&&Pe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(c).appendChild(u);var e=_.getComputedStyle(u);n="1%"!==e.top,s=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),r=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ne.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,c=C.createElement("div"),u=C.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ne.appendChild(e).appendChild(t).appendChild(n),r=_.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,ne.removeChild(e)),a}}))}();var Fe=["Webkit","Moz","ms"],Ue=C.createElement("div").style,Ve={};function qe(e){var t=x.cssProps[e]||Ve[e];return t||(e in Ue?e:Ve[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Fe.length;n--;)if((e=Fe[n]+t)in Ue)return e}(e)||e)}var Be=/^(none|table(?!-c[ea]).+)/,ze=/^--/,We={position:"absolute",visibility:"hidden",display:"block"},Ye={letterSpacing:"0",fontWeight:"400"};function Ge(e,t,n){var r=ee.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=x.css(e,n+te[a],!0,i)),r?("content"===n&&(c-=x.css(e,"padding"+te[a],!0,i)),"margin"!==n&&(c-=x.css(e,"border"+te[a]+"Width",!0,i))):(c+=x.css(e,"padding"+te[a],!0,i),"padding"!==n?c+=x.css(e,"border"+te[a]+"Width",!0,i):s+=x.css(e,"border"+te[a]+"Width",!0,i));return!r&&0<=o&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))||0),c}function Ze(e,t,n){var r=Re(e),i=(!v.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),o=i,a=Le(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ie.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===x.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Xe(e,t,n,r,i){return new Xe.prototype.init(e,t,n,r,i)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Le(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=z(t),c=ze.test(t),u=e.style;if(c||(t=qe(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=ee.exec(n))&&i[1]&&(n=ae(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(x.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=z(t);return ze.test(t)||(t=qe(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Le(e,t,r)),"normal"===i&&t in Ye&&(i=Ye[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),x.each(["height","width"],function(e,c){x.cssHooks[c]={get:function(e,t,n){if(t)return!Be.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,c,n):He(e,We,function(){return Ze(e,c,n)})},set:function(e,t,n){var r,i=Re(e),o=!v.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===x.css(e,"boxSizing",!1,i),s=n?Ke(e,c,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+c[0].toUpperCase()+c.slice(1)]-parseFloat(i[c])-Ke(e,c,"border",!1,i)-.5)),s&&(r=ee.exec(t))&&"px"!==(r[3]||"px")&&(e.style[c]=t,t=x.css(e,c)),Ge(0,t,s)}}}),x.cssHooks.marginLeft=je(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Le(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(i,o){x.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+te[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(x.cssHooks[i+o].set=Ge)}),x.fn.extend({css:function(e,t){return U(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=x.css(e,t[a],!1,r);return o}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,1<arguments.length)}}),((x.Tween=Xe).prototype={constructor:Xe,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=Xe.propHooks[this.prop];return e&&e.get?e.get(this):Xe.propHooks._default.get(this)},run:function(e){var t,n=Xe.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xe.propHooks._default.set(this),this}}).init.prototype=Xe.prototype,(Xe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Xe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=Xe.prototype.init,x.fx.step={};var Qe,Je,et,tt,nt=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function it(){Je&&(!1===C.hidden&&_.requestAnimationFrame?_.requestAnimationFrame(it):_.setTimeout(it,x.fx.interval),x.fx.tick())}function ot(){return _.setTimeout(function(){Qe=void 0}),Qe=Date.now()}function at(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=te[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function st(e,t,n){for(var r,i=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ct(o,e,t){var n,a,r=0,i=ct.prefilters.length,s=x.Deferred().always(function(){delete c.elem}),c=function(){if(a)return!1;for(var e=Qe||ot(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),r=0,i=u.tweens.length;r<i;r++)u.tweens[r].run(n);return s.notifyWith(o,[u,n,t]),n<1&&i?t:(i||s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},t),originalProperties:e,originalOptions:t,startTime:Qe||ot(),duration:t.duration,tweens:[],createTween:function(e,t){var n=x.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),l=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=z(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=x.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(l,u.opts.specialEasing);r<i;r++)if(n=ct.prefilters[r].call(u,o,l,u.opts))return b(n.stop)&&(x._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return x.map(l,st,u),b(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(c,{elem:o,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(ct,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=b(e)?(t=e,["*"]):e.match(I)).length;r<i;r++)n=e[r],ct.tweeners[n]=ct.tweeners[n]||[],ct.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,c,u,l,d="width"in t||"height"in t,f=this,h={},m=e.style,p=e.nodeType&&oe(e),g=G.get(e,"fxshow");for(r in n.queue||(null==(a=x._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,x.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],nt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;p=!0}h[r]=g&&g[r]||x.style(e,r)}if((c=!x.isEmptyObject(t))||!x.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(u=g&&g.display)&&(u=G.get(e,"display")),"none"===(l=x.css(e,"display"))&&(u?l=u:(ce([e],!0),u=e.style.display||u,l=x.css(e,"display"),ce([e]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===x.css(e,"float")&&(c||(f.done(function(){m.display=u}),null==u&&(l=m.display,u="none"===l?"":l)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",f.always(function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]})),c=!1,h)c||(g?"hidden"in g&&(p=g.hidden):g=G.access(e,"fxshow",{display:u}),o&&(g.hidden=!p),p&&ce([e],!0),f.done(function(){for(r in p||ce([e]),G.remove(e,"fxshow"),h)x.style(e,r,h[r])})),c=st(p?g[r]:0,r,f),r in g||(g[r]=c.start,p&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=x.isEmptyObject(t),o=x.speed(e,n,r),a=function(){var e=ct(this,x.extend({},t),o);(i||G.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=x.timers,r=G.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&rt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||x.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=G.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=x.timers,o=n?n.length:0;for(t.finish=!0,x.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),x.each(["toggle","show","hide"],function(e,r){var i=x.fn[r];x.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(at(r,!0),e,t,n)}}),x.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){x.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(Qe=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),Qe=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){Je||(Je=!0,it())},x.fx.stop=function(){Je=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(r,e){return r=x.fx&&x.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=_.setTimeout(e,r);t.stop=function(){_.clearTimeout(n)}})},et=C.createElement("input"),tt=C.createElement("select").appendChild(C.createElement("option")),et.type="checkbox",v.checkOn=""!==et.value,v.optSelected=tt.selected,(et=C.createElement("input")).value="t",et.type="radio",v.radioValue="t"===et.value;var ut,lt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return U(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(I);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var a=lt[t]||x.find.attr;lt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=lt[o],lt[o]=r,r=null!=a(e,t,n)?o:null,lt[o]=i),r}});var dt=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function ht(e){return(e.match(I)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function pt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(I)||[]}x.fn.extend({prop:function(e,t){return U(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,i=x.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,c=0;if(b(t))return this.each(function(e){x(this).addClass(t.call(this,e,mt(this)))});if((e=pt(t)).length)for(;n=this[c++];)if(i=mt(n),r=1===n.nodeType&&" "+ht(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,c=0;if(b(t))return this.each(function(e){x(this).removeClass(t.call(this,e,mt(this)))});if(!arguments.length)return this.attr("class","");if((e=pt(t)).length)for(;n=this[c++];)if(i=mt(n),r=1===n.nodeType&&" "+ht(i)+" "){for(a=0;o=e[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):b(i)?this.each(function(e){x(this).toggleClass(i.call(this,e,mt(this),t),t)}):this.each(function(){var e,t,n,r;if(a)for(t=0,n=x(this),r=pt(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!==o||((e=mt(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":G.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+ht(mt(n))+" ").indexOf(t))return!0;return!1}});var gt=/\r/g;x.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=b(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,x(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=x.map(t,function(e){return null==e?"":e+""})),(r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=x.valHooks[t.type]||x.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(gt,""):null==e?"":e:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:ht(x.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=x.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<x.inArray(x.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},v.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in _;var vt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,n,r){var i,o,a,s,c,u,l,d,f=[n||C],h=g.call(e,"type")?e.type:e,m=g.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!vt.test(h+x.event.triggered)&&(-1<h.indexOf(".")&&(h=(m=h.split(".")).shift(),m.sort()),c=h.indexOf(":")<0&&"on"+h,(e=e[x.expando]?e:new x.Event(h,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),l=x.event.special[h]||{},r||!l.trigger||!1!==l.trigger.apply(n,t))){if(!r&&!l.noBubble&&!y(n)){for(s=l.delegateType||h,vt.test(s+h)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||C)&&f.push(a.defaultView||a.parentWindow||_)}for(i=0;(o=f[i++])&&!e.isPropagationStopped();)d=o,e.type=1<i?s:l.bindType||h,(u=(G.get(o,"events")||Object.create(null))[e.type]&&G.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&W(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=h,r||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(f.pop(),t)||!W(n)||c&&b(n[h])&&!y(n)&&((a=n[c])&&(n[c]=null),x.event.triggered=h,e.isPropagationStopped()&&d.addEventListener(h,bt),n[h](),e.isPropagationStopped()&&d.removeEventListener(h,bt),x.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){x.event.simulate(r,e.target,x.event.fix(e))};x.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,r);t||e.addEventListener(n,i,!0),G.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,r)-1;t?G.access(e,r,t):(e.removeEventListener(n,i,!0),G.remove(e,r))}}});var yt=_.location,$t={guid:Date.now()},Et=/\?/;x.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new _.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var wt=/\[\]$/,_t=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,xt=/^(?:input|select|textarea|keygen)/i;function Mt(n,e,r,i){var t;if(Array.isArray(e))x.each(e,function(e,t){r||wt.test(n)?i(n,t):Mt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==E(e))i(n,e);else for(t in e)Mt(n+"["+t+"]",e[t],r,i)}x.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){i(this.name,this.value)});else for(n in e)Mt(n,e[n],t,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&xt.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!de.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(_t,"\r\n")}}):{name:t.name,value:n.replace(_t,"\r\n")}}).get()}});var kt=/%20/g,Tt=/#.*$/,At=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,Ot=/^\/\//,Dt={},It={},Rt="*/".concat("*"),Ht=C.createElement("a");function Pt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(I)||[];if(b(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Lt(t,i,o,a){var s={},c=t===It;function u(e){var r;return s[e]=!0,x.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||c||s[n]?c?!(r=n):void 0:(i.dataTypes.unshift(n),u(n),!1)}),r}return u(i.dataTypes[0])||!s["*"]&&u("*")}function jt(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Ht.href=yt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?jt(jt(e,x.ajaxSettings),t):jt(x.ajaxSettings,e)},ajaxPrefilter:Pt(Dt),ajaxTransport:Pt(It),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var l,d,f,n,h,r,m,p,i,o,g=x.ajaxSetup({},t),v=g.context||g,b=g.context&&(v.nodeType||v.jquery)?x(v):x.event,y=x.Deferred(),$=x.Callbacks("once memory"),E=g.statusCode||{},a={},s={},c="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(m){if(!n)for(n={};t=St.exec(f);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return m?f:null},setRequestHeader:function(e,t){return null==m&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==m&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(m)w.always(e[w.status]);else for(t in e)E[t]=[E[t],e[t]];return this},abort:function(e){var t=e||c;return l&&l.abort(t),u(0,t),this}};if(y.promise(w),g.url=((e||g.url||yt.href)+"").replace(Ot,yt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(I)||[""],null==g.crossDomain){r=C.createElement("a");try{r.href=g.url,r.href=r.href,g.crossDomain=Ht.protocol+"//"+Ht.host!=r.protocol+"//"+r.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=x.param(g.data,g.traditional)),Lt(Dt,g,t,w),m)return w;for(i in(p=x.event&&g.global)&&0==x.active++&&x.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Nt.test(g.type),d=g.url.replace(Tt,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(kt,"+")):(o=g.url.slice(d.length),g.data&&(g.processData||"string"==typeof g.data)&&(d+=(Et.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(d=d.replace(At,"$1"),o=(Et.test(d)?"&":"?")+"_="+$t.guid+++o),g.url=d+o),g.ifModified&&(x.lastModified[d]&&w.setRequestHeader("If-Modified-Since",x.lastModified[d]),x.etag[d]&&w.setRequestHeader("If-None-Match",x.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&w.setRequestHeader("Content-Type",g.contentType),w.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Rt+"; q=0.01":""):g.accepts["*"]),g.headers)w.setRequestHeader(i,g.headers[i]);if(g.beforeSend&&(!1===g.beforeSend.call(v,w,g)||m))return w.abort();if(c="abort",$.add(g.complete),w.done(g.success),w.fail(g.error),l=Lt(It,g,t,w)){if(w.readyState=1,p&&b.trigger("ajaxSend",[w,g]),m)return w;g.async&&0<g.timeout&&(h=_.setTimeout(function(){w.abort("timeout")},g.timeout));try{m=!1,l.send(a,u)}catch(e){if(m)throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,r){var i,o,a,s,c,u=t;m||(m=!0,h&&_.clearTimeout(h),l=void 0,f=r||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(g,w,n)),!i&&-1<x.inArray("script",g.dataTypes)&&x.inArray("json",g.dataTypes)<0&&(g.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=l.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=u[c+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(g,s,w,i),i?(g.ifModified&&((c=w.getResponseHeader("Last-Modified"))&&(x.lastModified[d]=c),(c=w.getResponseHeader("etag"))&&(x.etag[d]=c)),204===e||"HEAD"===g.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,i=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),w.status=e,w.statusText=(t||u)+"",i?y.resolveWith(v,[o,u,w]):y.rejectWith(v,[w,u,a]),w.statusCode(E),E=void 0,p&&b.trigger(i?"ajaxSuccess":"ajaxError",[w,g,i?o:a]),$.fireWith(v,[w,u]),p&&(b.trigger("ajaxComplete",[w,g]),--x.active||x.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,i){x[i]=function(e,t,n,r){return b(t)&&(r=r||n,n=t,t=void 0),x.ajax(x.extend({url:e,type:i,dataType:r,data:t,success:n},x.isPlainObject(e)&&e))}}),x.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(e){x(this).wrapInner(n.call(this,e))}):this.each(function(){var e=x(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=b(t);return this.each(function(e){x(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new _.XMLHttpRequest}catch(e){}};var Ft={0:200,1223:204},Ut=x.ajaxSettings.xhr();v.cors=!!Ut&&"withCredentials"in Ut,v.ajax=Ut=!!Ut,x.ajaxTransport(function(i){var o,a;if(v.cors||Ut&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Ft[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&_.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=x("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,qt=[],Bt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||x.expando+"_"+$t.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Bt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Bt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||x.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=_[r],_[r]=function(){o=arguments},n.always(function(){void 0===i?x(_).removeProp(r):_[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,qt.push(r)),o&&b(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Vt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=k.exec(e))?[t.createElement(i[1])]:(i=be([e],t,o),o&&o.length&&x(o).remove(),x.merge([],i.childNodes)));var r,i,o},x.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,u=x.css(e,"position"),l=x(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),o=x.css(e,"top"),c=x.css(e,"left"),i=("absolute"===u||"fixed"===u)&&-1<(o+c).indexOf("auto")?(a=(r=l.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(c)||0),b(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):l.css(d)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),i.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-x.css(r,"marginTop",!0),left:t.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ne})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;x.fn[t]=function(e){return U(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),x.each(["top","left"],function(e,n){x.cssHooks[n]=je(v.pixelPosition,function(e,t){if(t)return t=Le(e,n),Ie.test(t)?x(e).position()[n]+"px":t})}),x.each({Height:"height",Width:"width"},function(a,s){x.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){x.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return U(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?x.css(e,t,i):x.style(e,t,n,i)},s,n?e:void 0,n)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){x.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var zt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||x.guid++,i},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=M,x.isFunction=b,x.isWindow=y,x.camelCase=z,x.type=E,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(zt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var Wt=_.jQuery,Yt=_.$;return x.noConflict=function(e){return _.$===x&&(_.$=Yt),e&&_.jQuery===x&&(_.jQuery=Wt),x},void 0===e&&(_.jQuery=_.$=x),x}),function(t,a,e){"use strict";if(t&&a){var o=t.navigator.msPointerEnabled;r.prototype={on:function(e,t){e=e.toLowerCase(),this.events.hasOwnProperty(e)||(this.events[e]=[]),this.events[e].push(t)},off:function(e,t){var n,r,i;void 0!==e?(e=e.toLowerCase(),void 0!==t?this.events.hasOwnProperty(e)&&(n=this.events[e],r=t,-1<(i=n.indexOf(r))&&n.splice(i,1)):delete this.events[e]):this.events={}},fire:function(e,t){t=Array.prototype.slice.call(arguments),e=e.toLowerCase();var n=!1;return this.events.hasOwnProperty(e)&&f(this.events[e],function(e){n=!1===e.apply(this,t.slice(1))||n},this),"catchall"!=e&&(t.unshift("catchAll"),n=!1===this.fire.apply(this,t)||n),!n},webkitReadDataTransfer:function(e){var t=this,r=e.dataTransfer.items.length,n=[];function i(e,t){e.relativePath=t.substring(1),n.push(e),a()}function o(e){throw a(),e}function a(){0==--r&&t.addFiles(n,e)}f(e.dataTransfer.items,function(e){var t=e.webkitGetAsEntry();t?t.isFile?i(e.getAsFile(),t.fullPath):function n(t){t.readEntries(function(e){e.length?(r+=e.length,f(e,function(e){if(e.isFile){var t=e.fullPath;e.file(function(e){i(e,t)},o)}else e.isDirectory&&n(e.createReader())}),n(t)):a()},o)}(t.createReader()):a()})},generateUniqueIdentifier:function(e){var t=this.opts.generateUniqueIdentifier;if("function"==typeof t)return t(e);var n=e.relativePath||e.webkitRelativePath||e.fileName||e.name;return e.size+"-"+n.replace(/[^0-9a-zA-Z_-]/gim,"")},uploadNextChunk:function(e){var t=!1;if(this.opts.prioritizeFirstAndLastChunk&&(f(this.files,function(e){return!e.paused&&e.chunks.length&&"pending"===e.chunks[0].status()?(e.chunks[0].send(),!(t=!0)):!e.paused&&1<e.chunks.length&&"pending"===e.chunks[e.chunks.length-1].status()?(e.chunks[e.chunks.length-1].send(),!(t=!0)):void 0}),t))return t;if(f(this.files,function(e){if(e.paused||f(e.chunks,function(e){if("pending"===e.status())return e.send(),!(t=!0)}),t)return!1}),t)return!0;var n=!1;return f(this.files,function(e){if(!e.isComplete())return!(n=!0)}),n||e||l(function(){this.fire("complete")},this),!1},assignBrowse:function(e,r,i,o){e instanceof Element&&(e=[e]),f(e,function(e){var n;"INPUT"===e.tagName&&"file"===e.type?n=e:((n=a.createElement("input")).setAttribute("type","file"),d(n.style,{visibility:"hidden",position:"absolute",width:"1px",height:"1px"}),e.appendChild(n),e.addEventListener("click",function(){n.click()},!1)),this.opts.singleFile||i||n.setAttribute("multiple","multiple"),r&&n.setAttribute("webkitdirectory","webkitdirectory"),f(o,function(e,t){n.setAttribute(t,e)});var t=this;n.addEventListener("change",function(e){e.target.value&&(t.addFiles(e.target.files,e),e.target.value="")},!1)},this)},assignDrop:function(e){void 0===e.length&&(e=[e]),f(e,function(e){e.addEventListener("dragover",this.preventEvent,!1),e.addEventListener("dragenter",this.preventEvent,!1),e.addEventListener("drop",this.onDrop,!1)},this)},unAssignDrop:function(e){void 0===e.length&&(e=[e]),f(e,function(e){e.removeEventListener("dragover",this.preventEvent),e.removeEventListener("dragenter",this.preventEvent),e.removeEventListener("drop",this.onDrop)},this)},isUploading:function(){var t=!1;return f(this.files,function(e){if(e.isUploading())return!(t=!0)}),t},_shouldUploadNext:function(){var t=0,n=!0,r=this.opts.simultaneousUploads;return f(this.files,function(e){f(e.chunks,function(e){if("uploading"===e.status()&&r<=++t)return n=!1})}),n&&t},upload:function(){var e=this._shouldUploadNext();if(!1!==e){this.fire("uploadStart");for(var t=!1,n=1;n<=this.opts.simultaneousUploads-e;n++)t=this.uploadNextChunk(!0)||t;t||l(function(){this.fire("complete")},this)}},resume:function(){f(this.files,function(e){e.isComplete()||e.resume()})},pause:function(){f(this.files,function(e){e.pause()})},cancel:function(){for(var e=this.files.length-1;0<=e;e--)this.files[e].cancel()},progress:function(){var t=0,n=0;return f(this.files,function(e){t+=e.progress()*e.size,n+=e.size}),0<n?t/n:0},addFile:function(e,t){this.addFiles([e],t)},addFiles:function(e,r){var i=[];f(e,function(e){if((!o||o&&0<e.size)&&(e.size%4096!=0||"."!==e.name&&"."!==e.fileName)){var t=this.generateUniqueIdentifier(e);if(this.opts.allowDuplicateUploads||!this.getFromUniqueIdentifier(t)){var n=new s(this,e,t);this.fire("fileAdded",n,r)&&i.push(n)}}},this),this.fire("filesAdded",i,r)&&(f(i,function(e){this.opts.singleFile&&0<this.files.length&&this.removeFile(this.files[0]),this.files.push(e)},this),this.fire("filesSubmitted",i,r))},removeFile:function(e){for(var t=this.files.length-1;0<=t;t--)this.files[t]===e&&(this.files.splice(t,1),e.abort(),this.fire("fileRemoved",e))},getFromUniqueIdentifier:function(t){var n=!1;return f(this.files,function(e){e.uniqueIdentifier===t&&(n=e)}),n},getSize:function(){var t=0;return f(this.files,function(e){t+=e.size}),t},sizeUploaded:function(){var t=0;return f(this.files,function(e){t+=e.sizeUploaded()}),t},timeRemaining:function(){var t=0,n=0;return f(this.files,function(e){e.paused||e.error||(t+=e.size-e.sizeUploaded(),n+=e.averageSpeed)}),t&&!n?Number.POSITIVE_INFINITY:t||n?Math.floor(t/n):0}},s.prototype={measureSpeed:function(){var e=Date.now()-this._lastProgressCallback;if(e){var t=this.flowObj.opts.speedSmoothingFactor,n=this.sizeUploaded();this.currentSpeed=Math.max((n-this._prevUploadedSize)/e*1e3,0),this.averageSpeed=t*this.currentSpeed+(1-t)*this.averageSpeed,this._prevUploadedSize=n}},chunkEvent:function(e,t,n){switch(t){case"progress":if(Date.now()-this._lastProgressCallback<this.flowObj.opts.progressCallbacksInterval)break;this.measureSpeed(),this.flowObj.fire("fileProgress",this,e),this.flowObj.fire("progress"),this._lastProgressCallback=Date.now();break;case"error":this.error=!0,this.abort(!0),this.flowObj.fire("fileError",this,n,e),this.flowObj.fire("error",n,this,e);break;case"success":if(this.error)return;this.measureSpeed(),this.flowObj.fire("fileProgress",this,e),this.flowObj.fire("progress"),this._lastProgressCallback=Date.now(),this.isComplete()&&(this.currentSpeed=0,this.averageSpeed=0,this.flowObj.fire("fileSuccess",this,n,e));break;case"retry":this.flowObj.fire("fileRetry",this,e)}},pause:function(){this.paused=!0,this.abort()},resume:function(){this.paused=!1,this.flowObj.upload()},abort:function(e){this.currentSpeed=0,this.averageSpeed=0;var t=this.chunks;e&&(this.chunks=[]),f(t,function(e){"uploading"===e.status()&&(e.abort(),this.flowObj.uploadNextChunk())},this)},cancel:function(){this.flowObj.removeFile(this)},retry:function(){this.bootstrap(),this.flowObj.upload()},bootstrap:function(){"function"==typeof this.flowObj.opts.initFileFn&&this.flowObj.opts.initFileFn(this),this.abort(!0),this.error=!1,this._prevProgress=0;var e=this.flowObj.opts.forceChunkSize?Math.ceil:Math.floor;this.chunkSize=u(this.flowObj.opts.chunkSize,this);for(var t=Math.max(e(this.size/this.chunkSize),1),n=0;n<t;n++)this.chunks.push(new c(this.flowObj,this,n))},progress:function(){if(this.error)return 1;if(1===this.chunks.length)return this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),this._prevProgress;var t=0;f(this.chunks,function(e){t+=e.progress()*(e.endByte-e.startByte)});var e=t/this.size;return this._prevProgress=Math.max(this._prevProgress,.9999<e?1:e),this._prevProgress},isUploading:function(){var t=!1;return f(this.chunks,function(e){if("uploading"===e.status())return!(t=!0)}),t},isComplete:function(){var n=!1;return f(this.chunks,function(e){var t=e.status();if("pending"===t||"uploading"===t||"reading"===t||1===e.preprocessState||1===e.readState)return!(n=!0)}),!n},sizeUploaded:function(){var t=0;return f(this.chunks,function(e){t+=e.sizeUploaded()}),t},timeRemaining:function(){if(this.paused||this.error)return 0;var e=this.size-this.sizeUploaded();return e&&!this.averageSpeed?Number.POSITIVE_INFINITY:e||this.averageSpeed?Math.floor(e/this.averageSpeed):0},getType:function(){return this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.name.substr(2+(~-this.name.lastIndexOf(".")>>>0)).toLowerCase()}},c.prototype={getParams:function(){return{flowChunkNumber:this.offset+1,flowChunkSize:this.chunkSize,flowCurrentChunkSize:this.endByte-this.startByte,flowTotalSize:this.fileObj.size,flowIdentifier:this.fileObj.uniqueIdentifier,flowFilename:this.fileObj.name,flowRelativePath:this.fileObj.relativePath,flowTotalChunks:this.fileObj.chunks.length}},getTarget:function(e,t){return 0==t.length?e:(e.indexOf("?")<0?e+="?":e+="&",e+t.join("&"))},test:function(){this.xhr=new XMLHttpRequest,this.xhr.addEventListener("load",this.testHandler,!1),this.xhr.addEventListener("error",this.testHandler,!1);var e=u(this.flowObj.opts.testMethod,this.fileObj,this),t=this.prepareXhrRequest(e,!0);this.xhr.send(t)},preprocessFinished:function(){this.endByte=this.computeEndByte(),this.preprocessState=2,this.send()},readFinished:function(e){this.readState=2,this.bytes=e,this.send()},send:function(){var e=this.flowObj.opts.preprocess,t=this.flowObj.opts.readFileFn;if("function"==typeof e)switch(this.preprocessState){case 0:return this.preprocessState=1,void e(this);case 1:return}switch(this.readState){case 0:return this.readState=1,void t(this.fileObj,this.startByte,this.endByte,this.fileObj.file.type,this);case 1:return}if(!this.flowObj.opts.testChunks||this.tested){this.loaded=0,this.total=0,this.pendingRetry=!1,this.xhr=new XMLHttpRequest,this.xhr.upload.addEventListener("progress",this.progressHandler,!1),this.xhr.addEventListener("load",this.doneHandler,!1),this.xhr.addEventListener("error",this.doneHandler,!1);var n=u(this.flowObj.opts.uploadMethod,this.fileObj,this),r=this.prepareXhrRequest(n,!1,this.flowObj.opts.method,this.bytes),i=this.flowObj.opts.changeRawDataBeforeSend;"function"==typeof i&&(r=i(this,r)),this.xhr.send(r)}else this.test()},abort:function(){var e=this.xhr;this.xhr=null,e&&e.abort()},status:function(e){return 1===this.readState?"reading":this.pendingRetry||1===this.preprocessState?"uploading":this.xhr?this.xhr.readyState<4?"uploading":-1<this.flowObj.opts.successStatuses.indexOf(this.xhr.status)?"success":-1<this.flowObj.opts.permanentErrors.indexOf(this.xhr.status)||!e&&this.retries>=this.flowObj.opts.maxChunkRetries?"error":(this.abort(),"pending"):"pending"},message:function(){return this.xhr?this.xhr.responseText:""},progress:function(){if(this.pendingRetry)return 0;var e=this.status();return"success"===e||"error"===e?1:"pending"===e?0:0<this.total?this.loaded/this.total:0},sizeUploaded:function(){var e=this.endByte-this.startByte;return"success"!==this.status()&&(e=this.progress()*e),e},prepareXhrRequest:function(e,t,n,r){var i=u(this.flowObj.opts.query,this.fileObj,this,t);i=d(i||{},this.getParams());var o=u(this.flowObj.opts.target,this.fileObj,this,t),a=null;if("GET"===e||"octet"===n){var s=[];f(i,function(e,t){s.push([encodeURIComponent(t),encodeURIComponent(e)].join("="))}),o=this.getTarget(o,s),a=r||null}else a=new FormData,f(i,function(e,t){a.append(t,e)}),void 0!==r&&a.append(this.flowObj.opts.fileParameterName,r,this.filename||this.fileObj.file.name);return this.xhr.open(e,o,!0),this.xhr.withCredentials=this.flowObj.opts.withCredentials,f(u(this.flowObj.opts.headers,this.fileObj,this,t),function(e,t){this.xhr.setRequestHeader(t,e)},this),a}},r.evalOpts=u,r.extend=d,r.each=f,r.FlowFile=s,r.FlowChunk=c,r.version="2.14.1","object"==typeof module&&module&&"object"==typeof module.exports?module.exports=r:(t.Flow=r,"function"==typeof define&&define.amd&&define("flow",[],function(){return r}))}else console.warn("Flowjs needs window and document objects to work");function r(e){if(this.support=!("undefined"==typeof File||"undefined"==typeof Blob||"undefined"==typeof FileList||!Blob.prototype.slice&&!Blob.prototype.webkitSlice&&!Blob.prototype.mozSlice),this.support){this.supportDirectory=/Chrome/.test(t.navigator.userAgent)||/Firefox/.test(t.navigator.userAgent)||/Edge/.test(t.navigator.userAgent),this.files=[],this.defaults={chunkSize:1048576,forceChunkSize:!1,simultaneousUploads:3,singleFile:!1,fileParameterName:"file",progressCallbacksInterval:500,speedSmoothingFactor:.1,query:{},headers:{},withCredentials:!1,preprocess:null,changeRawDataBeforeSend:null,method:"multipart",testMethod:"GET",uploadMethod:"POST",prioritizeFirstAndLastChunk:!1,allowDuplicateUploads:!1,target:"/",testChunks:!0,generateUniqueIdentifier:null,maxChunkRetries:0,chunkRetryInterval:null,permanentErrors:[404,413,415,500,501],successStatuses:[200,201,202],onDropStopPropagation:!1,initFileFn:null,readFileFn:i},this.opts={},this.events={};var n=this;this.onDrop=function(e){n.opts.onDropStopPropagation&&e.stopPropagation(),e.preventDefault();var t=e.dataTransfer;t.items&&t.items[0]&&t.items[0].webkitGetAsEntry?n.webkitReadDataTransfer(e):n.addFiles(t.files,e)},this.preventEvent=function(e){e.preventDefault()},this.opts=r.extend({},this.defaults,e||{})}}function s(e,t,n){this.flowObj=e,this.bytes=null,this.file=t,this.name=t.fileName||t.name,this.size=t.size,this.relativePath=t.relativePath||t.webkitRelativePath||this.name,this.uniqueIdentifier=void 0===n?e.generateUniqueIdentifier(t):n,this.chunkSize=0,this.chunks=[],this.paused=!1,this.error=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}function i(e,t,n,r,i){var o="slice";e.file.slice?o="slice":e.file.mozSlice?o="mozSlice":e.file.webkitSlice&&(o="webkitSlice"),i.readFinished(e.file[o](t,n,r))}function c(e,t,n){this.flowObj=e,this.fileObj=t,this.offset=n,this.tested=!1,this.retries=0,this.pendingRetry=!1,this.preprocessState=0,this.readState=0,this.loaded=0,this.total=0,this.chunkSize=this.fileObj.chunkSize,this.startByte=this.offset*this.chunkSize,this.filename=null,this.computeEndByte=function(){var e=Math.min(this.fileObj.size,(this.offset+1)*this.chunkSize);return this.fileObj.size-e<this.chunkSize&&!this.flowObj.opts.forceChunkSize&&(e=this.fileObj.size),e},this.endByte=this.computeEndByte(),this.xhr=null;var r=this;this.event=function(e,t){(t=Array.prototype.slice.call(arguments)).unshift(r),r.fileObj.chunkEvent.apply(r.fileObj,t)},this.progressHandler=function(e){e.lengthComputable&&(r.loaded=e.loaded,r.total=e.total),r.event("progress",e)},this.testHandler=function(e){var t=r.status(!0);"error"===t?(r.event(t,r.message()),r.flowObj.uploadNextChunk()):"success"===t?(r.tested=!0,r.event(t,r.message()),r.flowObj.uploadNextChunk()):r.fileObj.paused||(r.tested=!0,r.send())},this.doneHandler=function(e){var t=r.status();if("success"===t||"error"===t)delete this.data,r.event(t,r.message()),r.flowObj.uploadNextChunk();else if(!r.fileObj.paused){r.event("retry",r.message()),r.pendingRetry=!0,r.abort(),r.retries++;var n=r.flowObj.opts.chunkRetryInterval;null!==n?setTimeout(function(){r.send()},n):r.send()}}}function u(e,t){return"function"==typeof e&&(t=Array.prototype.slice.call(arguments),e=e.apply(null,t.slice(1))),e}function l(e,t){setTimeout(e.bind(t),0)}function d(n,e){return f(arguments,function(e){e!==n&&f(e,function(e,t){n[t]=e})}),n}function f(e,t,n){var r;if(e)if(void 0!==e.length){for(r=0;r<e.length;r++)if(!1===t.call(n,e[r],r))return}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r))return}}("undefined"!=typeof window&&window,"undefined"!=typeof document&&document),angular.module("flow.provider",[]).provider("flowFactory",function(){"use strict";this.defaults={},this.factory=function(e){return new Flow(e)},this.events=[],this.on=function(e,t){this.events.push([e,t])},this.$get=function(){var n=this.factory,r=this.defaults,i=this.events;return{create:function(e){var t=n(angular.extend({},r,e));return angular.forEach(i,function(e){t.on(e[0],e[1])}),t}}}}),angular.module("flow.init",["flow.provider"]).controller("flowCtrl",["$scope","$attrs","$parse","flowFactory",function(r,e,t,n){var i=angular.extend({},r.$eval(e.flowInit)),o=r.$eval(e.flowObject)||n.create(i),a=function(e){var t=Array.prototype.slice.call(arguments);t.shift();var n=r.$broadcast.apply(r,["flow::"+e,o].concat(t));if({progress:1,filesSubmitted:1,fileSuccess:1,fileError:1,complete:1}[e]&&r.$applyAsync(),n.defaultPrevented)return!1};o.on("catchAll",a),r.$on("$destroy",function(){o.off("catchAll",a)}),r.$flow=o,e.hasOwnProperty("flowName")&&(t(e.flowName).assign(r,o),r.$on("$destroy",function(){t(e.flowName).assign(r)}))}]).directive("flowInit",[function(){return{scope:!0,controller:"flowCtrl"}}]),angular.module("flow.btn",["flow.init"]).directive("flowBtn",[function(){return{restrict:"EA",scope:!1,require:"^flowInit",link:function(e,t,n){var r=n.hasOwnProperty("flowDirectory"),i=n.hasOwnProperty("flowSingleFile"),o=n.hasOwnProperty("flowAttrs")&&e.$eval(n.flowAttrs);e.$flow.assignBrowse(t,r,i,o)}}}]),angular.module("flow.dragEvents",["flow.init"]).directive("flowPreventDrop",function(){return{scope:!1,link:function(e,t,n){t.bind("drop dragover",function(e){e.preventDefault()})}}}).directive("flowDragEnter",["$timeout",function(c){return{scope:!1,link:function(i,e,o){var a,s=!1;e.bind("dragover",function(e){var t,n,r;(n=!1,r=(t=e).dataTransfer||t.originalEvent.dataTransfer,angular.forEach(r&&r.types,function(e){"Files"===e&&(n=!0)}),n)&&(s||(i.$apply(o.flowDragEnter),s=!0),c.cancel(a),e.preventDefault())}),e.bind("dragleave drop",function(e){c.cancel(a),a=c(function(){i.$eval(o.flowDragLeave),a=null,s=!1},100)})}}}]),angular.module("flow.drop",["flow.init"]).directive("flowDrop",function(){return{scope:!1,require:"^flowInit",link:function(t,n,e){function r(){t.$flow.assignDrop(n)}e.flowDropEnabled?t.$watch(e.flowDropEnabled,function(e){e?r():t.$flow.unAssignDrop(n)}):r()}}}),function(s){"use strict";var n=s.module("flow.events",["flow.init"]);s.forEach({fileSuccess:["$file","$message"],fileProgress:["$file"],fileAdded:["$file","$event"],filesAdded:["$files","$event"],filesSubmitted:["$files","$event"],fileRetry:["$file"],fileRemoved:["$file"],fileError:["$file","$message"],uploadStart:[],complete:[],progress:[],error:["$message","$file"]},function(o,e){var t,a="flow"+((t=e).charAt(0).toUpperCase()+t.slice(1));"flowUploadStart"==a&&(a="flowUploadStarted"),n.directive(a,[function(){return{require:"^flowInit",controller:["$scope","$attrs",function(t,i){t.$on("flow::"+e,function(){var n=Array.prototype.slice.call(arguments),e=n.shift();if(t.$flow===n.shift()){var r={};s.forEach(o,function(e,t){r[e]=n[t]}),!1===t.$eval(i[a],r)&&e.preventDefault()}})}]}}])})}(angular),angular.module("flow.img",["flow.init"]).directive("flowImg",[function(){return{scope:!1,require:"^flowInit",link:function(n,e,r){var t=r.flowImg;n.$watch(t,function(e){if(e){var t=new FileReader;t.readAsDataURL(e.file),t.onload=function(e){n.$apply(function(){r.$set("src",e.target.result)})}}})}}}]),angular.module("flow.transfers",["flow.init"]).directive("flowTransfers",[function(){return{scope:!0,require:"^flowInit",link:function(e){e.transfers=e.$flow.files}}}]),angular.module("flow",["flow.provider","flow.init","flow.events","flow.btn","flow.drop","flow.transfers","flow.img","flow.dragEvents"]),function(C,x){"use strict";var M,k,T,A,S,N,O,D,I,R,H=x.$$minErr("$sanitize");x.module("ngSanitize",[]).provider("$sanitize",function(){var t=!1,r=!1;this.$get=["$$sanitizeUri",function(n){return t=!0,r&&k(f,l),function(e){var t=[];return I(e,R(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(e){return S(e)?(r=e,this):r},this.addValidElements=function(e){return t||(A(e)&&(e={htmlElements:e}),y(l,e.svgElements),y(s,e.htmlVoidElements),y(f,e.htmlVoidElements),y(f,e.htmlElements)),this},this.addValidAttrs=function(e){return t||k(g,b(e,!0)),this},M=x.bind,k=x.extend,T=x.forEach,A=x.isArray,S=x.isDefined,N=x.$$lowercase,O=x.noop,I=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=$(e);if(!n)return"";var r=5;do{if(0===r)throw H("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=$(e)}while(e!==n.innerHTML);for(var i=n.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),E(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),o=_("nextSibling",i))))for(;null==o&&(i=_("parentNode",i))!==n;)o=_("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)},R=function(e,o){var t=!1,a=M(e,e.push);return{start:function(i,e){i=N(i),!t&&d[i]&&(t=i),t||!0!==f[i]||(a("<"),a(i),T(e,function(e,t){var n=N(t),r="img"===i&&"src"===n||"background"===n;!0!==g[n]||!0===h[n]&&!o(e,r)||(a(" "),a(t),a('="'),a(w(e)),a('"'))}),a(">"))},end:function(e){e=N(e),t||!0!==f[e]||!0===s[e]||(a("</"),a(e),a(">")),e==t&&(t=!1)},chars:function(e){t||a(w(e))}}},D=C.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i=/([^#-~ |!])/g,s=v("area,br,col,hr,img,wbr"),e=v("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),o=v("rp,rt"),a=k({},o,e),c=k({},e,v("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),u=k({},o,v("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),l=v("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),d=v("script,style"),f=k({},s,c,u,a),h=v("background,cite,href,longdesc,src,xlink:href,xml:base"),m=v("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),p=v("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),g=k({},h,p,m);function v(e,t){return b(e.split(","),t)}function b(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?N(e[n]):e[n]]=!0;return r}function y(e,t){t&&t.length&&k(e,b(t))}var $=function(n,t){if(function(){try{return!!i("")}catch(e){return!1}}())return i;if(!t||!t.implementation)throw H("noinert","Can't create an inert html document");var e=t.implementation.createHTMLDocument("inert"),r=(e.documentElement||e.getDocumentElement()).querySelector("body");return function(e){return r.innerHTML=e,t.documentMode&&function e(t){for(;t;){if(t.nodeType===C.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&e(s),t=_("nextSibling",t)}}(r),r};function i(e){e="<remove></remove>"+e;try{var t=(new n.DOMParser).parseFromString(e,"text/html").body;return t.firstChild.remove(),t}catch(e){return}}}(C,C.document);function E(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function w(e){return e.replace(/&/g,"&amp;").replace(n,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(i,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _(e,t){var n=t[e];if(n&&D.call(t,n))throw H("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}}).info({angularVersion:"1.8.2"}),x.module("ngSanitize").filter("linky",["$sanitize",function(d){var f=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,h=/^mailto:/i,m=x.$$minErr("linky"),p=x.isDefined,g=x.isFunction,v=x.isObject,b=x.isString;return function(e,i,t){if(null==e||""===e)return e;if(!b(e))throw m("notstring","Expected string but received: {0}",e);for(var n,r,o,a=g(t)?t:v(t)?function(){return t}:function(){return{}},s=e,c=[];n=s.match(f);)r=n[0],n[2]||n[4]||(r=(n[3]?"http://":"mailto:")+r),o=n.index,u(s.substr(0,o)),l(r,n[0].replace(h,"")),s=s.substring(o+n[0].length);return u(s),d(c.join(""));function u(e){var t,n;e&&c.push((t=e,R(n=[],O).chars(t),n.join("")))}function l(e,t){var n,r=a(e);for(n in c.push("<a "),r)c.push(n+'="'+r[n]+'" ');!p(i)||"target"in r||c.push('target="',i,'" '),c.push('href="',e.replace(/"/g,"&quot;"),'">'),u(t),c.push("</a>")}}}])}(window,window.angular),function(){"use strict";angular.module("ngEmbed",["ngSanitize"]).filter("embed",["$sce",function(c){var u=[{text:":)",class:"smiley",code:"e60a"},{text:":D",class:"happy",code:"e608"},{text:":d",class:"happy",code:"e608"},{text:":(",class:"sad",code:"e60e"},{text:":/",class:"wondering",code:"e620"},{text:":P",class:"tongue",code:"e60c"},{text:":p",class:"tongue",code:"e60c"},{text:"3:)",class:"evil",code:"e618"},{text:"(^)",class:"thumbsup2",code:"e607"},{text:";)",class:"wink",code:"e610"},{text:":o",class:"shocked",code:"e61a"},{text:"-_-",class:"neutral",code:"e61e"},{text:"(y)",class:"thumbs-up",code:"e606"},{text:":*",class:"heart",code:"e604"},{text:"&lt;3",class:"heart",code:"e604"},{text:"<3",class:"heart",code:"e604"},{text:"&lt;/3",class:"heart-broken",code:"e605"},{text:"</3",class:"heart-broken",code:"e605"},{text:"^_^",class:"grin",code:"e612"},{text:"8-)",class:"cool",code:"e614"},{text:"8|",class:"cool",code:"e614"},{text:":S",class:"confused",code:"e61c"},{text:":s",class:"confused",code:"e61c"}],l=["bowtie","smile","laughing","blush","smiley","relaxed","smirk","heart_eyes","kissing_heart","kissing_closed_eyes","flushed","relieved","satisfied","grin","wink","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","grinning","kissing","winky_face","kissing_smiling_eyes","stuck_out_tongue","sleeping","worried","frowning","anguished","open_mouth","grimacing","confused","hushed","expressionless","unamused","sweat_smile","sweat","wow","disappointed_relieved","weary","pensive","disappointed","confounded","fearful","cold_sweat","persevere","cry","sob","joy","astonished","scream","neckbeard","tired_face","angry","rage","triumph","sleepy","yum","mask","sunglasses","dizzy_face","imp","smiling_imp","neutral_face","no_mouth","innocent","alien","yellow_heart","blue_heart","purple_heart","heart","green_heart","broken_heart","heartbeat","heartpulse","two_hearts","revolving_hearts","cupid","sparkling_heart","sparkles","star","star2","dizzy","boom","collision","anger","exclamation","question","grey_exclamation","grey_question","zzz","dash","sweat_drops","notes","musical_note","fire","hankey","poop","shit","\\+1","thumbsup","-1","thumbsdown","ok_hand","punch","facepunch","fist","v","wave","hand","raised_hand","open_hands","point_up","point_down","point_left","point_right","raised_hands","pray","point_up_2","clap","muscle","metal","fu","walking","runner","running","couple","family","two_men_holding_hands","two_women_holding_hands","dancer","dancers","ok_woman","no_good","information_desk_person","raising_hand","bride_with_veil","person_with_pouting_face","person_frowning","bow","couplekiss","couple_with_heart","massage","haircut","nail_care","boy","girl","woman","man","baby","older_woman","older_man","person_with_blond_hair","man_with_gua_pi_mao","man_with_turban","construction_worker","cop","angel","princess","smiley_cat","smile_cat","heart_eyes_cat","kissing_cat","smirk_cat","scream_cat","crying_cat_face","joy_cat","pouting_cat","japanese_ogre","japanese_goblin","see_no_evil","hear_no_evil","speak_no_evil","guardsman","skull","feet","lips","kiss","droplet","ear","eyes","nose","tongue","love_letter","bust_in_silhouette","busts_in_silhouette","speech_balloon","thought_balloon","feelsgood","finnadie","goberserk","godmode","hurtrealbad","rage1","rage2","rage3","rage4","suspect","trollface","sunny","umbrella","cloud","snowflake","snowman","zap","cyclone","foggy","ocean","cat","dog","mouse","hamster","rabbit","wolf","frog","tiger","koala","bear","pig","pig_nose","cow","boar","monkey_face","monkey","horse","racehorse","camel","sheep","elephant","panda_face","snake","bird","baby_chick","hatched_chick","hatching_chick","chicken","penguin","turtle","bug","honeybee","ant","beetle","snail","octopus","tropical_fish","fish","whale","whale2","dolphin","cow2","ram","rat","water_buffalo","tiger2","rabbit2","dragon","goat","rooster","dog2","pig2","mouse2","ox","dragon_face","blowfish","crocodile","dromedary_camel","leopard","cat2","poodle","paw_prints","bouquet","cherry_blossom","tulip","four_leaf_clover","rose","sunflower","hibiscus","maple_leaf","leaves","fallen_leaf","herb","mushroom","cactus","palm_tree","evergreen_tree","deciduous_tree","chestnut","seedling","blossom","ear_of_rice","shell","globe_with_meridians","sun_with_face","full_moon_with_face","new_moon_with_face","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","last_quarter_moon_with_face","first_quarter_moon_with_face","moon","earth_africa","earth_americas","earth_asia","volcano","milky_way","partly_sunny","octocat","squirrel","bamboo","gift_heart","dolls","school_satchel","mortar_board","flags","fireworks","sparkler","wind_chime","rice_scene","jack_o_lantern","ghost","santa","christmas_tree","gift","bell","no_bell","tanabata_tree","tada","confetti_ball","balloon","crystal_ball","cd","dvd","floppy_disk","camera","video_camera","movie_camera","computer","tv","iphone","phone","telephone","telephone_receiver","pager","fax","minidisc","vhs","sound","speaker","mute","loudspeaker","mega","hourglass","hourglass_flowing_sand","alarm_clock","watch","radio","satellite","loop","mag","mag_right","unlock","lock","lock_with_ink_pen","closed_lock_with_key","key","bulb","flashlight","high_brightness","low_brightness","electric_plug","battery","calling","email","mailbox","postbox","bath","bathtub","shower","toilet","wrench","nut_and_bolt","hammer","seat","moneybag","yen","dollar","pound","euro","credit_card","money_with_wings","e-mail","inbox_tray","outbox_tray","envelope","incoming_envelope","postal_horn","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","door","smoking","bomb","gun","hocho","pill","syringe","page_facing_up","page_with_curl","bookmark_tabs","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","scroll","clipboard","calendar","date","card_index","file_folder","open_file_folder","scissors","pushpin","paperclip","black_nib","pencil2","straight_ruler","triangular_ruler","closed_book","green_book","blue_book","orange_book","notebook","notebook_with_decorative_cover","ledger","books","bookmark","name_badge","microscope","telescope","newspaper","football","basketball","soccer","baseball","tennis","8ball","rugby_football","bowling","golf","mountain_bicyclist","bicyclist","horse_racing","snowboarder","swimmer","surfer","ski","spades","hearts","clubs","diamonds","gem","ring","trophy","musical_score","musical_keyboard","violin","space_invader","video_game","black_joker","flower_playing_cards","game_die","dart","mahjong","clapper","memo","pencil","book","art","microphone","headphones","trumpet","saxophone","guitar","shoe","sandal","high_heel","lipstick","boot","shirt","tshirt","necktie","womans_clothes","dress","running_shirt_with_sash","jeans","kimono","bikini","ribbon","tophat","crown","womans_hat","mans_shoe","closed_umbrella","briefcase","handbag","pouch","purse","eyeglasses","fishing_pole_and_fish","coffee","tea","sake","baby_bottle","beer","beers","cocktail","tropical_drink","wine_glass","fork_and_knife","pizza","hamburger","fries","poultry_leg","meat_on_bone","spaghetti","curry","fried_shrimp","bento","sushi","fish_cake","rice_ball","rice_cracker","rice","ramen","stew","oden","dango","egg","bread","doughnut","custard","icecream","ice_cream","shaved_ice","birthday","cake","cookie","chocolate_bar","candy","lollipop","honey_pot","apple","green_apple","tangerine","lemon","cherries","grapes","watermelon","strawberry","peach","melon","banana","pear","pineapple","sweet_potato","eggplant","tomato","corn","house","house_with_garden","school","office","post_office","hospital","bank","convenience_store","love_hotel","hotel","wedding","church","department_store","european_post_office","city_sunrise","city_sunset","japanese_castle","european_castle","tent","factory","tokyo_tower","japan","mount_fuji","sunrise_over_mountains","sunrise","stars","themoreyouknow","tmyk","statue_of_liberty","bridge_at_night","carousel_horse","rainbow","ferris_wheel","fountain","roller_coaster","ship","speedboat","boat","sailboat","rowboat","anchor","rocket","airplane","helicopter","steam_locomotive","tram","mountain_railway","bike","aerial_tramway","suspension_railway","mountain_cableway","tractor","blue_car","oncoming_automobile","car","red_car","taxi","oncoming_taxi","articulated_lorry","bus","oncoming_bus","rotating_light","police_car","oncoming_police_car","fire_engine","ambulance","minibus","truck","train","station","train2","bullettrain_front","bullettrain_side","light_rail","monorail","railway_car","trolleybus","ticket","fuelpump","vertical_traffic_light","traffic_light","warning","construction","beginner","atm","slot_machine","busstop","barber","hotsprings","checkered_flag","crossed_flags","izakaya_lantern","moyai","circus_tent","performing_arts","round_pushpin","triangular_flag_on_post","jp","kr","cn","us","fr","es","it","ru","gb","uk","de","one","two","three","four","five","six","seven","eight","nine","keycap_ten","1234","zero","hash","symbols","arrow_backward","arrow_down","arrow_forward","arrow_left","capital_abcd","abcd","abc","arrow_lower_left","arrow_lower_right","arrow_right","arrow_up","arrow_upper_left","arrow_upper_right","arrow_double_down","arrow_double_up","arrow_down_small","arrow_heading_down","arrow_heading_up","leftwards_arrow_with_hook","arrow_right_hook","left_right_arrow","arrow_up_down","arrow_up_small","arrows_clockwise","arrows_counterclockwise","rewind","fast_forward","information_source","ok","twisted_rightwards_arrows","repeat","repeat_one","new","top","up","cool","free","ng","cinema","koko","signal_strength","u5272","u5408","u55b6","u6307","u6708","u6709","u6e80","u7121","u7533","u7a7a","u7981","sa","restroom","mens","womens","baby_symbol","no_smoking","parking","wheelchair","metro","baggage_claim","accept","wc","potable_water","put_litter_in_its_place","secret","congratulations","m","passport_control","left_luggage","customs","ideograph_advantage","cl","sos","id","no_entry_sign","underage","no_mobile_phones","do_not_litter","non-potable_water","no_bicycles","no_pedestrians","children_crossing","no_entry","eight_spoked_asterisk","eight_pointed_black_star","heart_decoration","vs","vibration_mode","mobile_phone_off","chart","currency_exchange","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","six_pointed_star","negative_squared_cross_mark","a","b","ab","o2","diamond_shape_with_a_dot_inside","recycle","end","on","soon","clock1","clock130","clock10","clock1030","clock11","clock1130","clock12","clock1230","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","heavy_dollar_sign","copyright","registered","tm","x","heavy_exclamation_mark","bangbang","interrobang","o","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","white_flower","100","heavy_check_mark","ballot_box_with_check","radio_button","link","curly_loop","wavy_dash","part_alternation_mark","trident","black_square","white_square","white_check_mark","black_square_button","white_square_button","black_circle","white_circle","red_circle","large_blue_circle","large_blue_diamond","large_orange_diamond","small_blue_diamond","small_orange_diamond","small_red_triangle","small_red_triangle_down","shipit"];return function(e,t){var n={fontSmiley:!0,emoji:!0,link:!0,linkTarget:"_self"};if(function n(r){return angular.forEach(arguments,function(e){e!==r&&angular.forEach(e,function(e,t){r[t]&&r[t].constructor&&r[t].constructor===Object?n(r[t],e):r[t]=e})}),r}(n,t),null!=e){if("object"==typeof e)return e;var r,i,o,a,s={"&":"&amp;",">":"&gt;","<":"&lt;"};return angular.isNumber(e)||(e=e.toString()),e=e.replace(/[&<>]/g,function(e){return s[e]}),n.fontSmiley&&(r=e.split(" "),angular.forEach(u,function(e){for(var t=0;t<r.length;t++)r[t]===e.text&&(r[t]='<i class="ne-emoticon" title="'+e.text+'">&#x'+e.code+"</i>")}),e=r.join(" ")),n.emoji&&(i=e,o=new RegExp(":("+l.join("|")+"):","g"),e=i.replace(o,function(e,t){return"<i class='emoticon emoticon-"+t+"' title=':"+t+":'></i>"})),n.link&&(a=/^[a-z]+\:\/\//i,e=e.replace(/\b(?:(https?|ftp|file):\/\/|www\.)[-A-Z0-9+()&@$#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]/gi,function(e){var t=e;return a.test(e)||(t="http://"+e),"cordova"==n.linkTarget?'<a href="#" onclick="window.open(\''+t+"', '_system', 'location=yes')\" >"+e+"</a>":'<a href="'+t+'" target="'+n.linkTarget+'">'+e+"</a>"})),c.trustAsHtml(e)}}}]).directive("ngEmbed",["$filter","$sce","$http","$timeout","$templateCache",function(w,_,C,x,e){return e.put("",'<div ng-bind-html="neText"></div> <div class="ne-video" ng-if="video.host" class="fade"> <div class="ne-video-preview" ng-hide="nePlayVideo || !options.video.details"> <div class="ne-video-thumb" ng-click="nePlayVideo=!nePlayVideo"> <img ng-src="{{video.thumbnail}}" alt=""/> <i class="fa fa-play-circle-o"></i> </div> <div class="ne-video-detail"> <div class="ne-video-title"> <a ng-href="{{video.url}}">{{video.title}}</a> </div> <div class="ne-video-desc"> {{video.description}} </div> <div class="ne-video-stats"> <span><i class="fa fa-eye"></i> {{video.views}}</span> <span><i class="fa fa-heart"></i> {{video.likes}}</span> </div> </div> </div> <div class="ne-video-player" ng-if="nePlayVideo || !(options.video.details)"> <iframe ng-src="{{video.embedSrc}}" frameBorder="0" width="{{video.width}}" height="{{video.height}}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> </div> <div class="ne-video" ng-if="video.basic"> <div class="ne-video-player"> <div class="player"> <video ng-src="{{video.basic}}" controls></video> </div> </div> </div> <div ng-init="neImageLong=false" ng-class="{false:\'ne-image\', true:\'ne-image ne-image-long\'}[neImageLong]" ng-if="image.url"> <div class="ne-image-wrapper"> <img ng-src="{{image.url}}" ng-click="neImageLong=!neImageLong" alt=""/> </div> </div> <div class="ne-pdf" ng-if="pdf.url"> <div class="ne-pdf-preview" ng-hide="neShowPdf"> <div class="ne-pdf-icon"> <i class="fa fa-file-pdf-o"></i> </div> <div class="ne-pdf-detail" > <div class="ne-pdf-title"> <a href="">{{pdf.url}}</a> </div> <div class="ne-pdf-view"> <button><i class="fa fa-download"></i> <a ng-href="{{pdf.url}}" target="_blank">Download</a></button> <button ng-click="neShowPdf=!neShowPdf"><i class="fa fa-eye"></i> View PDF</button> </div> </div> </div> <div class="ne-pdf-viewer" ng-if="neShowPdf" ng-show="neShowPdf"> <iframe ng-src="{{pdf.url}}" frameBorder="0"></iframe> </div> </div> <div class="ne-audio" ng-if="audio.url"> <audio ng-src="{{audio.url}}" controls></audio> </div> <div ng-if="tweets" ng-repeat="tweet in tweets"> <div ng-bind-html="tweet"></div> </div> <div ng-if="videoServices" class="ne-video" ng-repeat="v in videoServices"> <div class="ne-video-player"> <div class="player"> <div ng-bind-html="v"></div> </div> </div> </div> <div ng-if="audioServices" class="ne-audio" ng-repeat="a in audioServices"> <div ng-bind-html="a"></div> </div> <div ng-if="codeServices" class="ne-embed" ng-repeat="c in codeServices"> <div ng-bind-html="c"></div> </div> <div ng-if="gist" class="ne-gist" ng-repeat="g in gist"> <ne-gist id="{{g}}"></ne-gist> </div>'),{restrict:"AE",scope:!0,templateUrl:function(e,t){return t.embedTemplateUrl||""},link:function(s,e,t){var n=s.$eval(t.embedData),r=s.$eval(t.embedOptions);s.video={},s.image={},s.pdf={},s.audio={},s.videoServices=[],s.audioServices=[],s.codeServices=[];var i={fontSmiley:!0,emoji:!0,link:!0,linkTarget:"_self",pdf:{embed:!0},image:{embed:!(s.gist=[])},audio:{embed:!0},code:{highlight:!0,lineNumbers:!1},basicVideo:!1,gdevAuth:null,video:{embed:!1,width:null,height:null,ytTheme:"dark",details:!1,thumbnailQuality:"medium"},tweetEmbed:!0,tweetOptions:{maxWidth:550,hideMedia:!1,hideThread:!1,align:"none",lang:"en"},twitchtvEmbed:!0,dailymotionEmbed:!0,tedEmbed:!0,dotsubEmbed:!0,liveleakEmbed:!0,soundCloudEmbed:!0,soundCloudOptions:{height:160,themeColor:"f50000",autoPlay:!1,hideRelated:!1,showComments:!0,showUser:!0,showReposts:!1,visual:!1,download:!1},spotifyEmbed:!0,codepenEmbed:!0,codepenHeight:300,jsfiddleEmbed:!0,jsfiddleHeight:300,jsbinEmbed:!0,jsbinHeight:300,plunkerEmbed:!0,githubgistEmbed:!0,ideoneEmbed:!0,ideoneHeight:300};!function n(r){return angular.forEach(arguments,function(e){e!==r&&angular.forEach(e,function(e,t){r[t]&&r[t].constructor&&r[t].constructor===Object?n(r[t],e):r[t]=e})}),r}(i,r),String.prototype.trunc=function(e,t){var n=this.length>e,r=n?this.substr(0,e-1):this;return r=t&&n?r.substr(0,r.lastIndexOf(" ")):r,n?r+"...":r},Array.prototype.getUnique=function(){for(var e={},t=[],n=0,r=this.length;n<r;++n)e.hasOwnProperty(this[n])||(t.push(this[n]),e[this[n]]=1);return t};var c={calcDimensions:function(e){var t={width:null,height:null};return t.width=e.video.width,t.height=e.video.height,e.video.height&&e.video.width||(e.video.height?t.width=e.video.height/390*640:e.video.width?t.height=t.width/640*390:(t.width=640,t.height=390)),t},embed:function(e,r){if(e.match(/https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[?=&+%\w-]*/gi)){var i=this.calcDimensions(r);return s.video.id=RegExp.$1,r.video.details?C.get("https://www.googleapis.com/youtube/v3/videos?id="+RegExp.$1+"&key="+r.gdevAuth+"&part=snippet,statistics").success(function(e){var t=void 0===r.video.autoPlay||!0===r.video.autoPlay?"?autoplay=1":"?autoplay=0",n=e.items[0];s.video.host="youtube",s.video.title=n.snippet.title,s.video.thumbnail=n.snippet.thumbnails.medium.url,s.video.description=n.snippet.description.trunc(250,!0).replace(/\n/g," ").replace(/&#10;/g," "),s.video.rawDescription=n.snippet.description,s.video.views=n.statistics.viewCount,s.video.likes=n.statistics.likeCount,s.video.uploader=n.snippet.channelTitle,s.video.uploaderPage="https://www.youtube.com/channel/"+n.snippet.channelId,s.video.uploadDate=n.snippet.publishedAt,s.video.url=_.trustAsResourceUrl("https://www.youtube.com/watch?v="+n.id),s.video.embedSrc=_.trustAsResourceUrl("https://www.youtube.com/embed/"+s.video.id+t),s.video.width=i.width,s.video.height=i.height}):(s.video.width=i.width,s.video.height=i.height,s.video.host="youtube",s.video.embedSrc=_.trustAsResourceUrl("https://www.youtube.com/embed/"+RegExp.$1+"?autoplay=0")),e}if(e.match(/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)*/gi)){var n=this.calcDimensions(r);s.video.id=RegExp.$3,r.video.details?C.get("https://vimeo.com/api/v2/video/"+RegExp.$3+".json").success(function(e){var t=void 0===r.video.autoPlay||!0===r.video.autoPlay?"&autoplay=1":"&autoplay=0";s.video.host="vimeo",s.video.title=e[0].title,s.video.rawDescription=e[0].description.replace(/\n/g,"<br/>").replace(/&#10;/g,"<br/>"),s.video.description=e[0].description.replace(/((<|&lt;)br\s*\/*(>|&gt;)\r\n)/g," ").trunc(250,!0),s.video.thumbnail=e[0].thumbnail_medium,s.video.views=e[0].stats_number_of_plays,s.video.likes=e[0].stats_number_of_likes,s.video.uploader=e[0].user_name,s.video.uploaderPage=e[0].user_url,s.video.uploadDate=e[0].uploadDate,s.video.url=e[0].url,s.video.embedSrc=_.trustAsResourceUrl("//player.vimeo.com/video/"+e[0].id+"?title=0&byline=0&portrait=0"+t),s.video.width=n.width,s.video.height=n.height}):(s.video.width=n.width,s.video.height=n.height,s.video.host="vimeo",s.video.embedSrc=_.trustAsResourceUrl("//player.vimeo.com/video/"+RegExp.$3+"?title=0&byline=0&portrait=0&autoplay=0"))}return e},embedBasic:function(e){return e.match(/((?:https?):\/\/\S*\.(?:ogv|webm|mp4))/gi)&&(s.video.basic=_.trustAsResourceUrl(RegExp.$1)),e},twitchtvEmbed:function(e,t){var n=/www.twitch.tv\/[a-zA_Z0-9_]+/gi,r=e.match(n)?e.match(n).getUnique():null,i=c.calcDimensions(t);if(r)for(var o=0;o<r.length;){var a=_.trustAsHtml('<object bgcolor="#000000" data="//www-cdn.jtvnw.net/swflibs/TwitchPlayer.swf" height="'+i.height+'" id="clip_embed_player_flash" type="application/x-shockwave-flash" width="'+i.width+'"><param name="movie" value="http://www-cdn.jtvnw.net/swflibs/TwitchPlayer.swf" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="channel='+r[o].split("/")[1]+'&auto_play=false" /></object>');s.videoServices.push(a),o++}return e},dailymotionEmbed:function(e,t){var n=/dailymotion.com\/video\/[a-zA-Z0-9-_]+/gi,r=e.match(n)?e.match(n).getUnique():null,i=c.calcDimensions(t);if(r)for(var o=0;o<r.length;){var a=_.trustAsHtml('<iframe src="http://www.dailymotion.com/embed/video/'+r[o].split("/")[2]+'" height="'+i.height+'" width="'+i.width+'"></iframe>');s.videoServices.push(a),o++}return e},tedEmbed:function(e,t){var n=/ted.com\/talks\/[a-zA-Z0-9_]+/gi,r=e.match(n)?e.match(n).getUnique():null,i=c.calcDimensions(t);if(r)for(var o=0;o<r.length;){var a=_.trustAsHtml('<iframe src="https://embed.ted.com/talks/'+r[o].split("/")[2]+'.html" height="'+i.height+'" width="'+i.width+'"></iframe>');s.videoServices.push(a),o++}return e},dotsubEmbed:function(e,t){var n=/dotsub.com\/view\/[a-zA-Z0-9-]+/gi,r=e.match(n)?e.match(n).getUnique():null,i=c.calcDimensions(t);if(r)for(var o=0;o<r.length;){var a=_.trustAsHtml('<iframe src="https://dotsub.com/media/'+r[o].split("/")[2]+'/embed/" width="'+i.width+'" height="'+i.height+'"></iframe>');s.videoServices.push(a),o++}return e},liveleakEmbed:function(e,t){var n=/liveleak.com\/view\?i=[a-zA-Z0-9_]+/gi,r=e.match(n)?e.match(n).getUnique():null,i=c.calcDimensions(t);if(r)for(var o=0;o<r.length;){var a=_.trustAsHtml('<iframe src="http://www.liveleak.com/e/'+r[o].split("=")[1]+'" height="'+i.height+'" width="'+i.width+'"></iframe></div>');s.videoServices.push(a),o++}return e}},o=function(e){return e.match(/((?:https?):\/\/\S*\.(?:wav|mp3|ogg))/gi)&&(s.audio.url=_.trustAsResourceUrl(RegExp.$1)),e},a=function(e,t){var n=/soundcloud.com\/[a-zA-Z0-9-_]+\/[a-zA-Z0-9-_]+/gi,r=e.match(n)?e.match(n).getUnique():null;if(r)for(var i=0;i<r.length;){var o=_.trustAsHtml('<iframe height="160" scrolling="no" src="https://w.soundcloud.com/player/?url=https://'+r[i]+"&auto_play="+t.soundCloudOptions.autoPlay+"&hide_related="+t.soundCloudOptions.hideRelated+"&show_comments="+t.soundCloudOptions.showComments+"&show_user="+t.soundCloudOptions.showUser+"&show_reposts="+t.soundCloudOptions.showReposts+"&visual="+t.soundCloudOptions.visual+"&download="+t.soundCloudOptions.download+"&color="+t.soundCloudOptions.themeColor+"&theme_color="+t.soundCloudOptions.themeColor+'"></iframe>');s.videoServices.push(o),i++}return e},u=function(e){var t=/spotify.com\/track\/[a-zA-Z0-9_]+/gi,n=e.match(t)?e.match(t).getUnique():null;if(n)for(var r=0;r<n.length;){var i=_.trustAsHtml('<iframe src="https://embed.spotify.com/?uri=spotify:track:'+n[r].split("/")[2]+'" height="80"></iframe>');s.audioServices.push(i),r++}return e},l=function(e){return e.match(/((?:https?):\/\/\S*\.(?:gif|jpg|jpeg|tiff|png|svg|webp))/gi)&&(s.image.url=RegExp.$1),e},d=function(e){return e=e.replace(/(`+)(\s|[a-z]+)\s*([\s\S]*?[^`])\s*\1(?!`)/gm,function(e,t,n,r){var i=r;i=(i=(i=i.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,"")).replace(/:\/\//g,"~P");var o=[];return n&&o.push(n),'<pre><code class="ne-code hljs '+n+'">'+hljs.highlightAuto(i,o).value+"</code></pre>"})},f=function(e){return e.match(/((?:https?):\/\/\S*\.(?:pdf|PDF))/gi)&&(s.pdf.url=_.trustAsResourceUrl(RegExp.$1)),e},h=function(e,t){if(!window.twttr)throw new ReferenceError("twttr is not defined. Load http://platform.twitter.com/widgets.js");var n=/https:\/\/twitter\.com\/\w+\/\w+\/\d+/gi,r=e.match(n)?e.match(n).getUnique():null;if(s.tweets=[],r)for(var i=0;i<r.length;){var o="https://api.twitter.com/1/statuses/oembed.json?omit_script=true&callback=JSON_CALLBACK&url="+r[i]+"&maxwidth="+t.tweetOptions.maxWidth+"&hide_media="+t.tweetOptions.hideMedia+"&hide_thread="+t.tweetOptions.hideThread+"&align="+t.tweetOptions.align+"&lang="+t.tweetOptions.lang;C.jsonp(o).success(function(e){s.tweets.push(e.html),s.tweets.length==r.length&&x(function(){twttr.widgets.load()},10)}),i++}return e},m=function(e,t){var n=/http:\/\/codepen.io\/([A-Za-z0-9_]+)\/pen\/([A-Za-z0-9_]+)/gi,r=e.match(n)?e.match(n).getUnique():null;if(r)for(var i=0;i<r.length;){var o=_.trustAsHtml('<iframe scrolling="no" height="'+t.codepenHeight+'" src="'+r[i].replace(/\/pen\//,"/embed/")+"/?height="+t.codepenHeight+'" frameborder="no" allowtransparency="true" allowfullscreen="true"></iframe>');s.codeServices.push(o),i++}return e},p=function(e,t){var n=/jsfiddle.net\/[a-zA-Z0-9_]+\/[a-zA-Z0-9_]+/gi,r=e.match(n)?e.match(n).getUnique():null;if(r)for(var i=0;i<r.length;){var o=_.trustAsHtml('<iframe height="'+t.jsfiddleHeight+'" src="http://'+r[i]+'/embedded"></iframe>');s.codeServices.push(o),i++}return e},g=function(e,t){var n=/jsbin.com\/[a-zA-Z0-9_]+\/[0-9_]+/gi,r=e.match(n)?e.match(n).getUnique():null;if(r)for(var i=0;i<r.length;){var o=_.trustAsHtml('<iframe height="'+t.jsbinHeight+'" class="jsbin-embed foo" src="http://'+r[i]+'/embed?html,js,output">Simple Animation Tests</iframe>');s.codeServices.push(o),i++}return e},v=function(e,t){var n=/plnkr.co\/edit\/[a-zA-Z0-9\?=]+/gi,r=e.match(n)?e.match(n).getUnique():null;if(r)for(var i=0;i<r.length;){var o=-1===r[i].indexOf("?")?r[i].split("/")[2]:r[i].split("/")[2].split("?")[0],a=_.trustAsHtml('<iframe class="ne-plunker" src="http://embed.plnkr.co/'+o+'" height="'+t.jsbinHeight+'"></iframe>');s.codeServices.push(a),i++}return e},b=function(e){var t=/gist.github.com\/[a-zA-Z0-9_-]+\/([a-zA-Z0-9]+)/g,n=e.match(t)?e.match(t).getUnique():null;if(n)for(var r=0;r<n.length;)s.gist.push(n[r].split("/")[2]),r++;return e},y=function(e,t){var n=/ideone.com\/[a-zA-Z0-9]{6}/gi,r=e.match(n)?e.match(n).getUnique():null;if(r)for(var i=0;i<r.length;){var o=_.trustAsHtml('<iframe src="http://ideone.com/embed/'+r[i].split("/")[1]+'" height="'+t.ideoneHeight+'"></iframe>');s.codeServices.push(o),i++}return e};if(i.code.highlight){if(!window.hljs)throw new ReferenceError("hlsj (Highlight JS is not defined.");n=d(n),x(function(){i.code.lineNumbers&&angular.element(".ne-code").each(function(){var e=1,t=$(this).text().split("\n").length,n=$("<ul/>").addClass("pre-numbering");for(angular.element(this).addClass("has-numbering").parent().append(n);e<=t;e++)n.append(angular.element("<li/>").text(e))})},0)}var E=w("embed")(n,i).$$unwrapTrustedValue();if(i.video.embed){if(!i.gdevAuth)throw"Youtube authentication key is required to get data from youtube.";E=c.embed(E,i)}E=i.basicVideo?c.embedBasic(E):E,E=i.audio.embed?o(E):E,E=i.image.embed?l(E):E,E=i.pdf.embed?f(E):E,E=i.tweetEmbed?h(E,i):E,E=i.twitchtvEmbed?c.twitchtvEmbed(E,i):E,E=i.dailymotionEmbed?c.dailymotionEmbed(E,i):E,E=i.tedEmbed?c.tedEmbed(E,i):E,E=i.dotsubEmbed?c.dotsubEmbed(E,i):E,E=i.liveleakEmbed?c.liveleakEmbed(E,i):E,E=i.soundCloudEmbed?a(E,i):E,E=i.spotifyEmbed?u(E):E,E=i.codepenEmbed?m(E,i):E,E=i.jsfiddleEmbed?p(E,i):E,E=i.jsbinEmbed?g(E,i):E,E=i.plunkerEmbed?v(E,i):E,E=i.githubgistEmbed?b(E,i):E,E=i.ideoneEmbed?y(E,i):E,s.neText=_.trustAsHtml(E)}}}]).directive("neGist",function(){return{restrict:"EA",replace:!0,template:"<div></div>",link:function(e,t,n){var r=n.id,i=document.createElement("iframe");i.setAttribute("width","100%"),i.setAttribute("frameborder","0"),i.id="gist-"+r,t[0].appendChild(i);var o='<html><head><base target="_parent"><style>table{font-size:12px;}</style></head><body onload="parent.document.getElementById(\''+i.id+'\').style.height=document.body.scrollHeight + \'px\'" style="margin:10px 0;"><script type="text/javascript">!function(){"use strict";window.retargetLinks=function(){ var gists=document.getElementsByClassName("gist");for(var i=0,links;i<gists.length;i++){links=gists[i].getElementsByTagName("a");for(var j=0;j<links.length;j++){ links[j].setAttribute("target","_blank");}}}}();<\/script><script type="text/javascript" src="https://gist.github.com/'+r+'.js" onload="retargetLinks()"><\/script></body></html>',a=i.document;i.contentDocument?a=i.contentDocument:i.contentWindow&&(a=i.contentWindow.document),a.open(),a.writeln(o),a.close()}}})}(),function(f,e){"use strict";var re,ie,oe,ae,Z=1,se="-add",ce="-remove",ue="ng-",C="ng-animate",X="$$ngAnimateChildren";ie=void 0===f.ontransitionend&&void 0!==f.onwebkittransitionend?("-webkit-",re="WebkitTransition","webkitTransitionEnd transitionend"):(re="transition","transitionend"),ae=void 0===f.onanimationend&&void 0!==f.onwebkitanimationend?("-webkit-",oe="WebkitAnimation","webkitAnimationEnd animationend"):(oe="animation","animationend");var i="Duration",le="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 x(e,t){return e||t?e?t?(Se(e)&&(e=e.join(" ")),Se(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function fe(e,n,r){var i="";return e=Se(e)?e:e&&Ne(e)&&e.length?e.split(/\s+/):[],Ae(e,function(e,t){e&&0<e.length&&(i+=0<t?" ":"",i+=r?n+e:e+n)}),i}function Q(e){if(e instanceof De)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===Z)return e;break;default:return De(m(e))}if(e.nodeType===Z)return De(e)}function m(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Z)return n}}function M(c){return function(e,t){var n,r,i,o,a,s;t.addClass&&(n=c,r=e,i=t.addClass,Ae(r,function(e){n.addClass(e,i)}),t.addClass=null),t.removeClass&&(o=c,a=e,s=t.removeClass,Ae(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 me(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 J(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),Ae(e,function(e,t){n[t]=1}),t=r(t),Ae(t,function(e,t){n[t]=1===n[t]?null:-1});var o={addClass:"",removeClass:""};function r(e){Ne(e)&&(e=e.split(" "));var t={};return Ae(e,function(e){e.length&&(t[e]=!0)}),t}return Ae(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 De?e[0]:e}function be(e,t){var n=t?"paused":"",r=oe+o;return ye(e,[r,n]),[r,n]}function ye(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 $e=function(e,t){var n=t?"-"+t+"s":"";return ye(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(X,e)}Ne(r)&&0===r.length?t.data(X,!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"},we={transitionDuration:t,transitionDelay:r,animationDuration:de,animationDelay:n};function _e(e,t){return[t?n:r,e+"s"]}function Ce(e,t,n){var a=Object.create(null),s=e.getComputedStyle(t)||{};return Ae(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*/),Ae(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 xe(e){return 0===e||null!=e}function Me(e,t){var n=re,r=e+"s";return t?n+=i:r+=" linear all",[n,r]}function ke(t,n,e){Ae(e,function(e){t[e]=te(t[e])?t[e]:n.style.getPropertyValue(e)})}var Te,p,Ae,Se,te,g,E,ne,Ne,Oe,De,Ie,u=["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(Y,G,K,Z,X,n,Q,t,J){var ee=M(G);var r=[];function te(e){r.push(e),t.waitUntilQuiet(function(){X.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=X.get(n);o||"infinite"===(o=Ce(Y,e,i)).animationIterationCount&&(o.animationIterationCount=1);var a=r||0<o.transitionDuration||0<o.animationDuration;return X.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(u,e){var l=e||{};l.$$prepared||(l=he(Te(l)));var d={},f=ve(u);if(!f||!f.parentNode||!J.enabled())return B();var t,n,h,o,a,r,i,m,p,g,v,b,y=[],s=(u.attr("class"),n={},(t=l)&&(t.to||t.from)&&(n.to=t.to,n.from=t.from),n),$=[];if(0===l.duration||!Q.animations&&!Q.transitions)return B();var E=l.event&&Se(l.event)?l.event.join(" "):l.event,c=E&&l.structural,w="",_="";c?w=fe(E,ue,!0):E&&(w=E),l.addClass&&(_+=fe(l.addClass,se)),l.removeClass&&(_.length&&(_+=" "),_+=fe(l.removeClass,ce)),l.applyClassesEarly&&_.length&&ee(u,l);var C=[w,_].join(" ").trim(),x=s.to&&0<Object.keys(s.to).length;if(!(0<(l.keyframeStyle||"").length)&&!x&&!C)return B();var M,k,T=X.cacheKey(f,E,l.addClass,l.removeClass);if(X.containsCachedAnimationWithoutDuration(T))return C=null,B();if(0<l.stagger){var A=parseFloat(l.stagger);M={transitionDelay:A,animationDelay:A,transitionDuration:0,animationDuration:0}}else M=function(e,t,n,r){var i,o="stagger-"+n;if(0<X.count(n)&&!(i=X.get(o))){var a=fe(t,"-stagger");G.addClass(e,a),(i=Ce(Y,e,r)).animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),G.removeClass(e,a),X.put(o,i,!0)}return i||{}}(f,C,T,we);if(l.$$skipPreparationClasses||G.addClass(u,C),l.transitionStyle){var S=[re,l.transitionStyle];ye(f,S),y.push(S)}if(0<=l.duration){k=0<f.style[re].length;var N=Me(l.duration,k);ye(f,N),y.push(N)}if(l.keyframeStyle){var O=[oe,l.keyframeStyle];ye(f,O),y.push(O)}var D=M?0<=l.staggerIndex?l.staggerIndex:X.count(T):0,I=0===D;I&&!l.skipBlocking&&$e(f,9999);var R=ne(f,0,T,!c),H=R.maxDelay;m=Math.max(H,0),g=R.maxDuration;var P={};if(P.hasTransitions=0<R.transitionDuration,P.hasAnimations=0<R.animationDuration,P.hasTransitionAll=P.hasTransitions&&"all"===R.transitionProperty,P.applyTransitionDuration=x&&(P.hasTransitions&&!P.hasTransitionAll||P.hasAnimations&&!P.hasTransitions),P.applyAnimationDuration=l.duration&&P.hasAnimations,P.applyTransitionDelay=xe(l.delay)&&(P.applyTransitionDuration||P.hasTransitions),P.applyAnimationDelay=xe(l.delay)&&P.hasAnimations,P.recalculateTimingStyles=0<_.length,(P.applyTransitionDuration||P.applyAnimationDuration)&&(g=l.duration?parseFloat(l.duration):g,P.applyTransitionDuration&&(P.hasTransitions=!0,R.transitionDuration=g,k=0<f.style[re+"Property"].length,y.push(Me(g,k))),P.applyAnimationDuration&&(P.hasAnimations=!0,R.animationDuration=g,y.push([de,g+"s"]))),0===g&&!P.recalculateTimingStyles)return B();var L,j=fe(C,"-active");null!=l.delay&&("boolean"!=typeof l.delay&&(L=parseFloat(l.delay),m=Math.max(L,0)),P.applyTransitionDelay&&y.push(_e(L)),P.applyAnimationDelay&&y.push(_e(L,!0)));return null==l.duration&&0<R.transitionDuration&&(P.recalculateTimingStyles=P.recalculateTimingStyles||I),p=1e3*m,v=1e3*g,l.skipBlocking||(P.blockTransition=0<R.transitionDuration,P.blockKeyframeAnimation=0<R.animationDuration&&0<M.animationDelay&&0===M.animationDuration),l.from&&(l.cleanupStyles&&ke(d,f,Object.keys(l.from)),pe(u,l)),P.blockTransition||P.blockKeyframeAnimation?q(g):l.skipBlocking||$e(f,!1),{$$willAnimate:!0,end:F,start:function(){if(!h)return r=new K(i={end:F,cancel:U,resume:null,pause:null}),te(W),r}};function F(){V()}function U(){V(!0)}function V(e){if(!(h||a&&o)){o=!(h=!0),C&&!l.$$skipPreparationClasses&&G.removeClass(u,C),j&&G.removeClass(u,j),be(f,!1),$e(f,!1),Ae(y,function(e){f.style[e[0]]=""}),ee(u,l),me(u,l),Object.keys(d).length&&Ae(d,function(e,t){e?f.style.setProperty(t,e):f.style.removeProperty(t)}),l.onDone&&l.onDone(),$&&$.length&&u.off($.join(" "),z);var t=u.data(Ee);t&&(Z.cancel(t[0].timer),u.removeData(Ee)),r&&r.complete(!e)}}function q(e){P.blockTransition&&$e(f,e),P.blockKeyframeAnimation&&be(f,!!e)}function B(){return r=new K({end:F,cancel:U}),te(Ie),V(),{$$willAnimate:!1,start:function(){return r},end:F}}function z(e){e.stopPropagation();var t=e.originalEvent||e;if(t.target===f){var n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-b,0)>=p&&g<=r&&(a=!0,V())}}function W(){if(!h)if(f.parentNode){var e=function(e){if(a)o&&e&&(o=!1,V());else if(o=!e,R.animationDuration){var t=be(f,o);o?y.push(t):(r=t,i=(n=y).indexOf(r),0<=r&&n.splice(i,1))}var n,r,i},t=0<D&&(R.transitionDuration&&0===M.transitionDuration||R.animationDuration&&0===M.animationDuration)&&Math.max(M.animationDelay,M.transitionDelay);t?Z(n,Math.floor(t*D*1e3),!1):n(),i.resume=function(){e(!0)},i.pause=function(){e(!1)}}else V();function n(){if(!h){if(q(!1),Ae(y,function(e){var t=e[0],n=e[1];f.style[t]=n}),ee(u,l),G.addClass(u,j),P.recalculateTimingStyles){if(f.getAttribute("class")+" "+C,T=X.cacheKey(f,E,l.addClass,l.removeClass),R=ne(f,0,T,!1),H=R.maxDelay,m=Math.max(H,0),0===(g=R.maxDuration))return void V();P.hasTransitions=0<R.transitionDuration,P.hasAnimations=0<R.animationDuration}if(P.applyAnimationDelay&&(H="boolean"!=typeof l.delay&&xe(l.delay)?parseFloat(l.delay):H,m=Math.max(H,0),R.animationDelay=H,L=_e(H,!0),y.push(L),f.style[L[0]]=L[1]),p=1e3*m,v=1e3*g,l.easing){var e,t=l.easing;P.hasTransitions&&(e=re+le,y.push([e,t]),f.style[e]=t),P.hasAnimations&&(e=oe+le,y.push([e,t]),f.style[e]=t)}R.transitionDuration&&$.push(ie),R.animationDuration&&$.push(ae),b=Date.now();var n=p+1.5*v,r=b+n,i=u.data(Ee)||[],o=!0;if(i.length){var a=i[0];(o=r>a.expectedEndTime)?Z.cancel(a.timer):i.push(V)}if(o){var s=Z(c,n,!1);i[0]={timer:s,expectedEndTime:r},i.push(V),u.data(Ee,i)}$.length&&u.on($.join(" "),z),l.to&&(l.cleanupStyles&&ke(d,f,Object.keys(l.to)),ge(u,l))}}function c(){var e=u.data(Ee);if(e){for(var t=1;t<e.length;t++)e[t]();u.removeData(Ee)}}}}}]}],l=["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver");var y="ng-animate-shim",$="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(h,e,m,t,n,r,i){if(!n.animations&&!n.transitions)return Ie;var o,p=i[0].body,a=ve(t),g=De((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(Ae(r,function(e){var t=function(e,t,i){var o=De(ve(t).cloneNode(!0)),a=v(l(o));t.addClass(y),i.addClass(y),o.addClass("ng-anchor"),g.append(o);var r,n,s=(n=h(o,{addClass:$,delay:!0,from:u(t)})).$$willAnimate?n:null;if(!s&&!(r=d()))return f();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,f(),e.complete()}),t;f(),e.complete()}),e=new m({end:n,cancel:n});function n(){t&&t.end()}}};function u(e){var n={},r=ve(e).getBoundingClientRect();return Ae(["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 l(e){return e.attr("class")||""}function d(){var e=v(l(i)),t=b(e,a),n=b(a,e),r=h(o,{to:u(i),addClass:"ng-anchor-in "+t,removeClass:$+" "+n,delay:!0});return r.$$willAnimate?r:null}function f(){o.remove(),t.removeClass(y),i.removeClass(y)}}(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()),Ae(a,function(e){t.push(e.start())});var n=new m({end:e,cancel:e});return m.all(t,function(e){n.complete(e)}),n;function e(){Ae(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 Ne(e)&&(e=e.split(" ")),Ne(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($){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(v,b,e){var y=M(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,u,l=r.addClass,d=r.removeClass,f=function(e){e=Se(e)?e:e.split(" ");for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=$.$$registeredAnimations[i];o&&!n[i]&&(t.push(v.get(o)),n[i]=!0)}return t}(n);f.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,f,c)),a=g(e,t,r,f,s));if(o||a)return{$$willAnimate:!0,end:function(){return u?u.end():(m(),(u=new b).complete(!0)),u},start:function(){if(u)return u;var t;u=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)}),u.setHost({end:function(){r()},cancel:function(){r(!0)}}),b.chain(e,n),u;function n(e){m(),u.complete(e)}function r(e){i||((t||Ie)(e),n(e))}}};function h(){r.domOperation(),y(e,r)}function m(){i=!0,h(),me(e,r)}function p(a,s,c,e,t){var n=[];return Ae(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,l,d,i];break;case"addClass":o=[t,l,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&&Ae(s,function(e){n.push(e())}),n.length?b.all(n,e):e(),function(t){Ae(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(){Ae(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)}}]}],Re="data-ng-animate",He="$ngAnimatePin",b=["$animateProvider",function(d){var r=" ",i=this.rules={skip:[],cancel:[],join:[]};function Y(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 Ae(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!(Oe(n)&&Oe(r)||Oe(i)&&Oe(o))&&(a(n,o)||a(r,i))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(T,A,S,N,e,O,D,t,n,r,I){var R=new e,H=new e,P=null;function i(e){H.delete(e.target)}var o=A.$watch(function(){return 0===t.totalPendingRequests},function(e){e&&(o(),A.$$postDigest(function(){A.$$postDigest(function(){null===P&&(P=!0)})}))}),L=Object.create(null),a=d.customFilter(),s=d.classNameFilter(),c=function(){return!0},j=a||c,F=s?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return s.test(n)}:c,U=M(n);function V(e,t){return J(e,t,{})}var q=f.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))};function u(e,t,n){var r=m(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function B(e,t){"close"!==e||t.parentNode||l.off(t)}var l={on:function(e,t,n){var r=m(t);L[e]=L[e]||[],L[e].push({node:r,callback:n}),De(t).on("$destroy",function(){R.get(r)||l.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||Ne(e)){var r=L[e];r&&(L[e]=1===arguments.length?null:u(r,t,n))}else for(var i in t=e,L)L[i]=u(L[i],t)},pin:function(e,t){h(g(e),"element","not an element"),h(g(t),"parentElement","not an element"),e.data(He,t)},push:function(e,t,n,r){return(n=n||{}).domOperation=r,function(i,o,e){var a=Te(e),u=Q(i),l=ve(u),d=l&&l.parentNode;a=he(a);var s=new D,t=(n=!1,function(e){n?e():A.$$postDigest(function(){n=!0,e()})});var n;Se(a.addClass)&&(a.addClass=a.addClass.join(" "));a.addClass&&!Ne(a.addClass)&&(a.addClass=null);Se(a.removeClass)&&(a.removeClass=a.removeClass.join(" "));a.removeClass&&!Ne(a.removeClass)&&(a.removeClass=null);a.from&&!ne(a.from)&&(a.from=null);a.to&&!ne(a.to)&&(a.to=null);if(!(P&&l&&j(l,o,e)&&F(l,a)))return k(),s;var c=0<=["enter","move","leave"].indexOf(o),r=I(),f=r||H.get(l),h=!f&&R.get(l)||{},m=!!h.state;f||m&&1===h.state||(f=!function(e,t,n){var r,i=N[0].body,o=ve(S),a=e===i||"HTML"===e.nodeName,s=e===o,c=!1,u=H.get(e),l=De.data(e,He);l&&(t=ve(l));for(;t&&(s||(s=t===o),t.nodeType===Z);){var d=R.get(t)||{};if(!c){var f=H.get(t);if(!0===f&&!1!==u){u=!0;break}!1===f&&(u=!1),c=d.structural}if(Oe(r)||!0===r){var h=De.data(t,X);te(h)&&(r=h)}if(c&&!1===r)break;if(a||(a=t===i),a&&s)break;t=s||!(l=De.data(t,He))?t.parentNode:ve(l)}return(!c||r)&&!0!==u&&s&&a}(l,d));if(f)return r&&M(s,o,"start",Y(a)),k(),r&&M(s,o,"close",Y(a)),s;c&&(p=l.querySelectorAll("["+Re+"]"),Ae(p,function(e){var t=parseInt(e.getAttribute(Re),10),n=R.get(e);if(n)switch(t){case 2:n.runner.end();case 1:R.delete(e)}}));var p;var g={structural:c,element:u,event:o,addClass:a.addClass,removeClass:a.removeClass,close:k,options:a,runner:s};if(m){var v=G("skip",g,h);if(v)return 2===h.state?(k(),s):(J(u,h,g),h.runner);var b=G("cancel",g,h);if(b)if(2===h.state)h.runner.end();else{if(!h.structural)return J(u,h,g),h.runner;h.close()}else{var y=G("join",g,h);if(y){if(2!==h.state)return $=u,w=a,_="",(E=c?o:null)&&(_=fe(E,ue,!0)),w.addClass&&(_=ee(_,fe(w.addClass,se))),w.removeClass&&(_=ee(_,fe(w.removeClass,ce))),_.length&&(w.preparationClasses=_,$.addClass(_)),o=g.event=h.event,a=J(u,h,g),h.runner;V(u,g)}}}else V(u,g);var $,E,w,_;var C=g.structural;C||(C="animate"===g.event&&0<Object.keys(g.options.to||{}).length||K(g));if(!C)return k(),z(l),s;var x=(h.counter||0)+1;return g.counter=x,W(l,1,g),A.$$postDigest(function(){u=Q(i);var e=R.get(l),t=!e;e=e||{};var n=0<(u.parent()||[]).length&&("animate"===e.event||e.structural||K(e));if(t||e.counter!==x||!n)return t&&(U(u,a),me(u,a)),(t||c&&e.event!==o)&&(a.domOperation(),s.end()),void(n||z(l));o=!e.structural&&K(e,!0)?"setClass":e.event,W(l,2);var r=O(u,o,e.options);s.setHost(r),M(s,o,"start",Y(a)),r.done(function(e){k(!e);var t=R.get(l);t&&t.counter===x&&z(l),M(s,o,"close",Y(a))})}),s;function M(e,a,s,c){t(function(){var t,n,r,i,e,o=(t=d,n=l,i=[],(e=L[r=a])&&Ae(e,function(e){q.call(e.node,n)?i.push(e.callback):"leave"===r&&q.call(e.node,t)&&i.push(e.callback)}),i);o.length?T(function(){Ae(o,function(e){e(u,s,c)}),B(s,l)}):B(s,l)}),e.progress(a,s,c)}function k(e){var t,n;t=u,(n=a).preparationClasses&&(t.removeClass(n.preparationClasses),n.preparationClasses=null),n.activeClasses&&(t.removeClass(n.activeClasses),n.activeClasses=null),U(u,a),me(u,a),a.domOperation(),s.complete(!e)}}(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!P;else if(g(e)){var r=ve(e);1===n?t=!H.get(r):(H.has(r)||De(e).on("$destroy",i),H.set(r,!t))}else t=P=!!e;return t}};return l;function z(e){e.removeAttribute(Re),R.delete(e)}function W(e,t,n){(n=n||{}).state=t,e.setAttribute(Re,t);var r=R.get(e),i=r?p(r,n):n;R.set(e,i)}}]}],y=["$animateProvider",function(e){var y="ng-animate-ref",$=this.drivers=[],E="$$animationRunner",w="$$animatePrepareClasses";function _(e){return e.data(E)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(d,u,f,h,m,p,g){var v=[],b=M(d);return function(t,n,l){l=he(l);var e=0<=["enter","move","leave"].indexOf(n),r=new h({end:function(){c()},cancel:function(){c(!0)}});if(!$.length)return c(),r;var i,o=x(t.attr("class"),x(l.addClass,l.removeClass)),a=l.tempClasses;return a&&(o+=" "+a,l.tempClasses=null),e&&t.data(w,"ng-"+n+"-prepare"),i=r,t.data(E,i),v.push({element:t,classes:o,event:n,structural:e,options:l,beforeStart:function(){a=(a?a+" ":"")+C,d.addClass(t,a);var e=t.data(w);e&&(d.removeClass(t,e),e=null)},close:c}),t.on("$destroy",s),1<v.length||u.$$postDigest(function(){var t=[];Ae(v,function(e){_(e.element)?t.push(e):e.close()}),v.length=0;var e=function(l){var d=[],f={};Ae(l,function(e,n){var t,r,i,o=e.element,a=ve(o),s=e.event,c=0<=["enter","move"].indexOf(s),u=e.structural?(r=(t=a).hasAttribute(y)?[t]:t.querySelectorAll("[ng-animate-ref]"),i=[],Ae(r,function(e){var t=e.getAttribute(y);t&&t.length&&i.push(e)}),i):[];if(u.length){var l=c?"to":"from";Ae(u,function(e){var t=e.getAttribute(y);f[t]=f[t]||{},f[t][l]={animationID:n,element:De(e)}})}else d.push(e)});var h={},m={};return Ae(f,function(e,t){var n=e.from,r=e.to;if(n&&r){var i=l[n.animationID],o=l[r.animationID],a=n.animationID.toString();if(!m[a]){var s=m[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))}m[a].anchors.push({out:n.element,in:r.element})}else{var c=n?n.animationID:r.animationID,u=c.toString();h[u]||(h[u]=!0,d.push(l[c]))}}),d}(t),n=[];Ae(e,function(i){var e=i.from?i.from.element:i.element,t=l.addClass;t=(t?t+" ":"")+C;var o=g.cacheKey(e[0],i.event,t,l.removeClass);n.push({element:e,domNode:ve(e),fn:function(){var e,t=i.close;if(g.containsCachedAnimationWithoutDuration(o))t();else{if(i.beforeStart(),_(i.anchors?i.from.element||i.to.element:i.element)){var n=function(e){for(var t=$.length-1;0<=t;t--){var n=$[t],r=f.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=_(e);t&&t.setHost(n)}}(i,r)}else t()}}})});for(var r=function(e){var t,i={children:[]},o=new m;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 u=c.data(w);u&&d.addClass(c,u)}else c.removeData(w)}p(r)}),r;function s(){var e=_(t);!e||"leave"===n&&l.$$domOperationFired||e.end()}function c(e){t.off("$destroy",s),t.removeData(E),b(t,l),me(t,l),l.domOperation(),a&&d.removeClass(t,a),r.complete(!e)}}}]}];e.module("ngAnimate",[],function(){Ie=e.noop,Te=e.copy,p=e.extend,De=e.element,Ae=e.forEach,Se=e.isArray,Ne=e.isString,ne=e.isObject,Oe=e.isUndefined,te=e.isDefined,E=e.isFunction,g=e.isElement}).info({angularVersion:"1.8.2"}).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",y).provider("$animateCss",u).provider("$$animateCssDriver",l).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.8.2"}).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]||u(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"],u=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(l){function d(e,t,n,r){return l.config(t)&&!n.attr(e)&&(r||!u(n,o))&&("hidden"!==n.attr("type")||"INPUT"!==n[0].nodeName)}function f(e,t){return!t.attr("role")&&t.attr("type")===e&&!u(t,o)}return{restrict:"A",require:"ngModel",priority:200,compile:function(e,t){if(!t.hasOwnProperty(h)){var n,r,i,u=(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(u){case"radio":case"checkbox":f(u,n)&&n.attr("role",u),d("aria-checked","ariaChecked",n,!1)&&e.$watch(o,"radio"===u?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(f(u,n)&&n.attr("role","slider"),l.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){u(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")||u(t,o)||t.attr("tabindex",0)}}])}(window,window.angular),function(e,t){"use strict";var w,m,c,u;function n(h){return["$animate",function(f){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(e,r,t,i,n){var o,a,s,c,u,l;if(!h){o=r[0],s=t.ngMessage||t.when;var d=function(e){a=e?m(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,l={test:function(e){return function(e,t){if(e)return m(e)?0<=e.indexOf(t):e.hasOwnProperty(t)}(a,e)},attach:function(){u||n(function(e,t){f.enter(e,null,r);var n=(u=e).$$attachId=i.getAttachId();u.on("$destroy",function(){u&&u.$$attachId===n&&(i.deregister(o,h),l.detach()),t.$destroy()})})},detach:function(){if(u){var e=u;u=null,f.leave(e)}}},h),e.$on("$destroy",function(){i.deregister(o,h)})}}}]}t.module("ngMessages",[],function(){w=t.forEach,m=t.isArray,c=t.isString,u=t.element}).info({angularVersion:"1.8.2"}).directive("ngMessages",["$animate",function(b){var y="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(f,h,m){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=$(h,m.ngMessagesMultiple)||$(h,m.multiple),n=[],r={},i=0,o=p.head,a=!1,s=0;null!=o;){s++;var c=o.message,u=!1;a||w(e,function(e,t){if(E(e)&&!u&&(i++,c.test(t))){if(r[t])return;r[t]=!0,u=!0,c.attach()}}),u?a=!t:n.push(c),o=o.next}w(n,function(e){e.detach()});var l=n.length!==s,d=p.default&&!l&&0<i;d?p.default.attach():p.default&&p.default.detach(),l||d?b.setClass(f,"ng-active",y):b.setClass(f,y,"ng-active")},h.$watchCollection(m.ngMessages||m.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}(f[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}(f[0],e,n),delete o[n]}p.reRender()}}]};function $(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=u(n);e.after(r),e.remove()}}]).directive("ngMessage",n()).directive("ngMessageExp",n()).directive("ngMessageDefault",n(!0))}(window,window.angular),function(j,ge,ve){"use strict";ge.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"],ge.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){ge.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}e.$inject=["$parse"],ge.module("material.core").directive("mdAutofocus",e)}(),ge.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)"}}}),ge.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 ge.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&&!ge.isArray(e)&&(e=Array.prototype.slice.call(e)),s=!!s;var u=e||[];return{items:function(){return[].concat(u)},count:function(){return u.length},inRange:l,contains:t,indexOf:d,itemAt:function(e){return l(e)?u[e]:null},findBy:function(t,n){return u.filter(function(e){return e[t]===n})},add:function(e,t){if(!e)return-1;ge.isNumber(t)||(t=u.length);return u.splice(t,0,e),d(e)},remove:function(e){t(e)&&u.splice(d(e),1)},first:f,last:h,next:ge.bind(null,n,!1),previous:ge.bind(null,n,!0),hasPrevious:function(e){return!!e&&l(d(e)-1)},hasNext:function(e){return!!e&&l(d(e)+1)}};function l(e){return u.length&&-1<e&&e<u.length}function d(e){return u.indexOf(e)}function t(e){return e&&-1<d(e)}function f(){return u.length?u[0]:null}function h(){return u.length?u[u.length-1]:null}function n(e,t,n,r){n=n||c;for(var i=d(t);;){if(!l(i))return null;var o=i+(e?-1:1),a=null;if(l(o)?a=u[o]:s&&(o=d(a=e?h():f())),null===a||o===r)return null;if(n(a))return a;ge.isUndefined(r)&&(r=o),i=o}}}ge.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=l(e,t+"-"+r);if(e[i])return e[i]}}return e[l(e,t)]},e.getQuery=function(e){return s[e]},e.watchResponsiveAttributes=function(e,r,i){var o=[];return e.forEach(function(e){var t=l(r,e);for(var n in ge.isDefined(r[t])&&o.push(r.$observe(t,ge.bind(void 0,i,null))),a.MEDIA)t=l(r,e+"-"+n),ge.isDefined(r[t])&&o.push(r.$observe(t,ge.bind(void 0,i,n)))}),function(){o.forEach(function(e){e()})}},e;function e(e){var t,n=o[e];ge.isUndefined(n)&&(n=o[e]=(t=e,a.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)));var r=c[n];return ge.isUndefined(r)&&(r=function(e){var t=s[e];t||(t=s[e]=i.matchMedia(e));return t.addListener(u),c[t.media]=!!t.matches}(n)),r}function u(e){t.$evalAsync(function(){c[e.media]=!!e.matches})}function l(e,t){return n[t]||(n[t]=e.$normalize(t))}}e.$inject=["$mdConstant","$rootScope","$window"],ge.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=ge.isArray(n)?n:[n]).forEach(function(t){r.forEach(function(e){n.push(e+"-"+t)})}),n}function n(e){return i(e=ge.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function o(e){if((e=e[0]||e).nodeType)return e}}ge.module("material.core").config(["$provide",function(e){e.decorator("$mdUtil",["$delegate",function(e){return e.prefixer=t,e}])}])}(),function(){t.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var v,b,y,$=0;if(j.navigator){var e=j.navigator.userAgent||j.navigator.vendor||j.opera;v=e.match(/ipad|iphone|ipod/i),b=e.match(/android/i),y=e.match(/(firefox|minefield)/i)}function t(c,s,n,a,e,t,o,r,u,d){var i=t.startSymbol(),l=t.endSymbol(),f="{{"===i&&"}}"===l;document.contains||(document.contains=function(e){return document.body.contains(e)});var h=function(e,t,n){var r=!1;if(e&&e.length){var i=u.getComputedStyle(e[0]);r=ge.isDefined(i[t])&&(!n||i[t]==n)}return r};function m(e){return e?-1<String(e).indexOf("px")||-1<String(e).indexOf("%")?e:e+"px":"0"}var p={dom:{},isIos:v,isAndroid:b,now:j.performance&&j.performance.now?ge.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]}},isRtl:function(e){switch(ge.isDefined(e)&&e.hasOwnProperty("dir")&&e.dir){case"ltr":return!1;case"rtl":return!0}return"rtl"===c[0].dir||"rtl"===c[0].body.dir},bidi:function(e,t,n,r){var i=!this.isRtl();if(0==arguments.length)return i?"ltr":"rtl";var o=ge.element(e);i&&ge.isDefined(n)?o.css(t,m(n)):!i&&ge.isDefined(r)&&o.css(t,m(r))},bidiProperty:function(e,t,n,r){var i=!this.isRtl(),o=ge.element(e);i&&ge.isDefined(t)?(o.css(t,m(r)),o.css(n,"")):!i&&ge.isDefined(n)&&(o.css(n,m(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){var t,n=[];for(e=e||[],t=0;t<e.length;++t)n.push(e.item(t));return n},getViewportTop:function(){return p.disableScrollAround._count&&p.disableScrollAround._viewPortTop?p.disableScrollAround._viewPortTop:u.scrollY||u.pageYOffset||0},findFocusTarget:function(e,t){var n,r=this.prefixer("md-autofocus",!0);return(n=i(e,t||r))||(n=i(e,r)),n;function i(e,t){var n,r=e[0].querySelectorAll(t);return r&&r.length&&r.length&&ge.forEach(r,function(e){(e=ge.element(e)).hasClass("md-autofocus")&&(n=e)}),n}},disableScrollAround:function(e,t,n){if(n=n||{},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,r=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&&ge.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,t){var n,r=ge.element(e||s);t.disableScrollMask?n=r:(n=ge.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>'),r.append(n));function i(e){e.preventDefault()}return n.on("wheel touchmove",i),function(){n.off("wheel touchmove",i),!t.disableScrollMask&&n[0].parentNode&&n[0].parentNode.removeChild(n[0])}}(t,n);return p.disableScrollAround._restoreScroll=function(){--p.disableScrollAround._count<=0&&(delete p.disableScrollAround._viewPortTop,r(),i(),delete p.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===ve){var e=ge.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:ge.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:ge.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=ve,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""+$++},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}},getSiblings:function(t,e){var n=e.toUpperCase();return t instanceof ge.element&&(t=t[0]),Array.prototype.filter.call(t.parentNode.children,function(e){return t!==e&&e.tagName.toUpperCase()===n}).map(function(e){return ge.element(e)})},getClosest:function(e,t,n){if(ge.isString(t)){var r=t.toUpperCase();t=function(e){return e.nodeName.toUpperCase()===r}}if(e instanceof ge.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?ge.bind(t,t.contains):ge.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])),ge.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||{},ge.forEach(r.$$isolateBindings,function(e,t){if(e.optional&&ge.isUndefined(r[t])){var n=ge.isDefined(i[e.attrName]);r[t]=ge.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 f?e:e&&ge.isString(e)?e.replace(/\{\{/g,i).replace(/}}/g,l):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=ge.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?ge.element(t).controller("form"):null;return!!n&&n.$submitted},animateScrollTo:function(i,o,a){var s=i.scrollTop,c=o-s,u=s<o,l=p.now();d(function e(){var t=(n=a||1e3,r=p.now()-l,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;(u?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,getTouchAction: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(ge.isDefined(e.style[i]))return i}},getEventPath:function(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return-1===t.indexOf(j)&&-1===t.indexOf(document)&&t.push(document),-1===t.indexOf(j)&&t.push(j),t},sanitize:function(e){return e?e.replace(/[\\^$*+?.()|{}[]/g,"\\$&"):e},isDisabled:function(e){return e.hasAttribute("disabled")},isVisible:function(e){return p.hasGeometry(e)&&"visible"===getComputedStyle(e).visibility},isTabbable:function(e){var t=p.getFrameElement(p.getWindow(e));if(t){if(-1===p.getTabIndexValue(t))return!1;if(!p.isVisible(t))return!1}var n=e.nodeName.toLowerCase(),r=p.getTabIndexValue(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==n&&"object"!==n&&(!(v&&!p.isPotentiallyTabbableIOS(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==r:"video"===n?-1!==r&&(null!==r||(y||e.hasAttribute("controls"))):0<=e.tabIndex))},isFocusable:function(e){return p.isPotentiallyFocusable(e)&&!p.isDisabled(e)&&p.isVisible(e)},isPotentiallyFocusable:function(e){return!p.isHiddenInput(e)&&(p.isNativeFormElement(e)||p.isAnchorWithHref(e)||e.hasAttribute("contenteditable")||p.hasValidTabIndex(e))},isPotentiallyTabbableIOS:function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t},getTabIndexValue:function(e){if(!p.hasValidTabIndex(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t},hasValidTabIndex:function(e){if(!e.hasAttribute("tabindex")||e.tabIndex===ve)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))},hasGeometry:function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)},getFrameElement:function(e){try{return e.frameElement}catch(e){return null}},getWindow:function(e){return e.ownerDocument&&e.ownerDocument.defaultView||j},isNativeFormElement:function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t},isHiddenInput:function(e){return p.isInputElement(e)&&"hidden"==e.type},isAnchorWithHref:function(e){return p.isAnchorElement(e)&&e.hasAttribute("href")},isInputElement:function(e){return"input"==e.nodeName.toLowerCase()},isAnchorElement:function(e){return"a"==e.nodeName.toLowerCase()},getFirstTabbableElement:function(e){if(p.isFocusable(e)&&p.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var r=t[n].nodeType===c[0].ELEMENT_NODE?p.getFirstTabbableElement(t[n]):null;if(r)return r}return null},getLastTabbableElement:function(e){if(p.isFocusable(e)&&p.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;0<=n;n--){var r=t[n].nodeType===c[0].ELEMENT_NODE?p.getLastTabbableElement(t[n]):null;if(r)return r}return null}};return p.dom.animator=e(p),p;function g(e){return e[0]||e}}ge.module("material.core").factory("$mdUtil",t),ge.element.prototype.focus=ge.element.prototype.focus||function(){return this.length&&this[0].focus(),this},ge.element.prototype.blur=ge.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),ge.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(n,i,a,s){return function(e){return r=e,t=n,c=i,u=a,o=s,l={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(u.CSS.TRANSITIONEND,i),t())}o.on(u.CSS.TRANSITIONEND,i)})},calculateTransformValues:function(e,t){var n,r,i=t.element,o=t.bounds;if(i||o){var a=i?l.clientRect(i)||(n=e?e.parent():null,(r=n?n.parent():null)?l.clientRect(r):null):l.copyRect(o),s=l.copyRect(e[0].getBoundingClientRect()),c=l.centerPointFor(s),u=l.centerPointFor(a);return{centerX:u.x-c.x,centerY:u.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=ge.bind(null,r.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )");return n(l.calculateTransformValues(e,t))},calculateSlideToOrigin:function(e,t){var n=ge.bind(null,r.supplant,"translate3d( {centerX}px, {centerY}px, 0 )");return n(l.calculateTransformValues(e,t))},toCss:function(e){var r={};return ge.forEach(e,function(e,t){if(!ge.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,u.CSS.TRANSITION,e);break;case"transform":n(t,u.CSS.TRANSFORM,e);break;case"transformOrigin":n(t,u.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":r["font-size"]=e}}),r;function n(e,t,n){ge.forEach(t.split(" "),function(e){r[e]=n})}},toTransformCss:function(t,e,n){var r={};return ge.forEach(u.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||{},ge.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=ge.element(e)[0].getBoundingClientRect();return(t=n)&&0<t.width&&0<t.height?l.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,u,o,l}}]),4<=ge.version.minor?ge.module("material.core.animate",[]):function(){var x=ge.forEach,M=ge.isDefined(document.documentElement.style.WebkitAppearance),k=M?"-webkit-":"",T=(M?"webkitTransitionEnd ":"")+"transitionend",A=(M?"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:ge.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&&(x(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)}x(t,function(e){e.done(o)})},e}];function S(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}ge.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(m,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 x(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 w(e,t){t.to&&(e.css(t.to),t.to=null)}function _(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function C(e,t){var n=_(e),r=S(k+"transition-delay");n.style[r]=t?"-9999s":""}return function(r,c){var u=[],l=_(r),e=l&&s.enabled(),t=!1,n=!1;e&&(c.transitionStyle&&u.push([k+"transition",c.transitionStyle]),c.keyframeStyle&&u.push([k+"animation",c.keyframeStyle]),c.delay&&u.push([k+"transition-delay",c.delay+"s"]),c.duration&&u.push([k+"transition-duration",c.duration+"s"]),t=c.keyframeStyle||c.to&&(0<c.duration||c.transitionStyle),n=!!c.addClass||!!c.removeClass,C(r,!0));var d=e&&(t||n);E(r,c);var f,h,i=!1;return{close:m.close,start:function(){var e,n=new a;return e=function(){if(C(r,!1),!d)return s();x(u,function(e){var t=e[0],n=e[1];l.style[S(t)]=n}),v(r,c);var e=function(e){var t=_(e),n=m.getComputedStyle(t),r=b(n[u("transitionDuration")]),i=b(n[u("animationDuration")]),o=b(n[u("transitionDelay")]),a=b(n[u("animationDelay")]);i*=parseInt(n[u("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 u(e){return M?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}}(r);if(0===e.duration)return s();var t=[];c.easing&&(e.transitionDuration&&t.push([k+"transition-timing-function",c.easing]),e.animationDuration&&t.push([k+"animation-timing-function",c.easing])),c.delay&&e.animationDelay&&t.push([k+"animation-delay",c.delay+"s"]),c.duration&&e.animationDuration&&t.push([k+"animation-duration",c.duration+"s"]),x(t,function(e){var t=e[0],n=e[1];l.style[S(t)]=n,u.push(e)});var i=1e3*e.delay,o=e.duration,n=1e3*o,a=Date.now();f=[],e.transitionDuration&&f.push(T),e.animationDuration&&f.push(A),f=f.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(f,h),w(r,c),g(s,i+1.5*n,!1)},y&&y(),$.push(e),y=o(function(){y=null;for(var e=p(),t=0;t<$.length;t++)$[t](e);$.length=0}),n;function s(){var e,t;if(!i)return i=!0,f&&h&&r.off(f,h),v(r,c),E(e=r,t=c),w(e,t),x(u,function(e){l.style[S(e[0])]=""}),n.complete(!0),n}}}}}])}(),function(){function o(r,i,c,o){var a=this.showWarnings;return{expect:s,expectAsync:u,expectWithText:function(e,t){var n=l(e)||"";-1<n.indexOf(o.startSymbol())?u(e,t,function(){return l(e)}):s(e,t,n)},expectWithoutText:function(e,t){var n=l(e);-1<n.indexOf(o.startSymbol())||n||s(e,t,n)},getText:l,hasAriaLabel:d,parentHasAriaLabel:function e(t,n){n=n||1;var r=ge.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=ge.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=ge.isString(n)?n.trim():"").length?e.attr(t,n):a&&i.warn('ARIA: Attribute "',t,'", required for accessibility, is missing on node:',r))}function u(e,t,n){r(function(){s(e,t,n())})}function l(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=ge.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"],ge.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(){function o(e,t,n,r,i){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=r,this.$controller=i}this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,r,i){return new o(e,t,n,r,i)}],o.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},o.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}})},o.prototype._compileTemplate=function(r){var i=this,e=r.templateUrl,t=r.template||"",n=ge.extend({},r.resolve),o=ge.extend({},r.locals),a=r.transformTemplate||ge.identity;return ge.forEach(n,function(e,t){ge.isString(e)?n[t]=i.$injector.get(e):n[t]=i.$injector.invoke(e)}),ge.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||ge.element("<div>").html(t.trim()).contents();return i._compileElement(e,n,r)})},o.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=ge.extend({},r,{$element:i}),n=a._createController(o,t,r);ge.isFunction(n.$onDestroy)&&e.$on("$destroy",function(){ge.isFunction(n.$onDestroy)&&n.$onDestroy()}),i.data("$ngControllerController",n),i.children().data("$ngControllerController",n),c.controller=n}return s(e)}};return c},o.prototype._createController=function(e,t,n){var r=this.$controller(e.controller,t);return e.bindToController&&ge.extend(r,n),e.controllerAs&&(t.$scope[e.controllerAs]=r),ge.isFunction(r.$onInit)&&r.$onInit(),r},o.prototype._fetchContentElement=function(e){var t,n=e.contentElement;return t=ge.isString(n)?r(n=document.querySelector(n)):(n=n[0]||n,document.contains(n)?r(n):function(){n.parentNode&&n.parentNode.removeChild(n)}),{element:ge.element(n),restore:t};function r(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}}}ge.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){i.$inject=["$$MdGestureHandler","$$rAF","$timeout","$mdUtil"];var o,a,c={},u=6,l=!(n.$inject=["$mdGesture","$$MdGestureHandler","$mdUtil"]),s=!1,d=null,f=!1;function e(){}function i(r,e,n,t){var i=t.getTouchAction(),o=void 0!==j.jQuery&&ge.element===j.jQuery,a={handler:function(e,t){var n=new r(e);return ge.extend(n,t),c[e]=n,a},register:function(e,t,n){var r=c[t.replace(/^\$md./,"")];if(r)return r.registerElement(e,n);throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(c).join(", "))},isAndroid:t.isAndroid,isIos:t.isIos,isHijackingClicks:(t.isIos||t.isAndroid)&&!o&&!l};function s(n){return function(e,t){t.distance<this.state.options.maxDistance&&this.dispatchEvent(e,n,t)}}return a.isHijackingClicks&&(a.handler("click",{options:{maxDistance:u},onEnd:s("click")}),a.handler("focus",{options:{maxDistance:u},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&b(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),a.handler("mouseup",{options:{maxDistance:u},onEnd:s("mouseup")}),a.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),a.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(ge.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:e[0].style[i]=null},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=h(e),g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:e.throttle(function(e){this.state.isRunning&&(g(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(g(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 t(e){this.name=e,this.state={}}function n(e,i,n){if(!s){!f&&e.isHijackingClicks&&(document.addEventListener("click",function(e){var t;t=n.isIos?ge.isDefined(e.webkitForce)&&0===e.webkitForce:0===e.clientX&&0===e.clientY;t||e.$material||e.isIonicTap||p(e)?(d=null,"label"===e.target.tagName.toLowerCase()&&(d={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),d=null)},!0),document.addEventListener("mouseup",t,!0),document.addEventListener("mousedown",t,!0),document.addEventListener("focus",t,!0),f=!0);ge.element(document).on("mousedown touchstart pointerdown",function(e){if(o)return;var t=+Date.now();if(a&&!m(e,a)&&t-a.endTime<1500)return;o=h(e),r("start",e)}).on("mousemove touchmove pointermove",function(e){if(!o||!m(e,o))return;g(e,o),r("move",e)}).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",function(e){if(!o||!m(e,o))return;g(e,o),o.endTime=+Date.now(),"pointercancel"!==e.type&&r("end",e);a=o,o=null}).on("$$mdGestureReset",function(){a=o=null})}function t(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||p(e)||"mousedown"===e.type&&(b(e.target)||b(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function r(e,t){var n;for(var r in c)(n=c[r])instanceof i&&("start"===e&&n.cancel(),n[e](t,o))}}function h(e){var t=v(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 m(e,t){return e&&t&&e.type.charAt(0)===t.type}function p(e){return d&&d.x===e.x&&d.y===e.y}function g(e,t){var n=v(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 v(e){return(e=e.originalEvent||e).touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function b(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))}ge.module("material.core.gestures",[]).provider("$mdGesture",e).factory("$$MdGestureHandler",function(){var e=void 0!==j.jQuery&&ge.element===j.jQuery;return t.prototype={options:{},dispatchEvent:e?function(e,t,n){n=n||o;var r=new ge.element.Event(t);r.$material=!0,r.pointer=n,r.srcEvent=e,ge.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}),ge.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:ge.noop,onCleanup:ge.noop,onStart:ge.noop,onMove:ge.noop,onEnd:ge.noop,onCancel:ge.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:ge.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.state.isRunning=!1,this.onEnd(e,t))},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||{})}}},t}).run(n),e.prototype={disableAll:function(){s=!0},skipClickHijack:function(){return l=!0},setMaxClickDistance:function(e){u=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout","$mdUtil",function(e,t,n,r){return new i(e,t,n,r)}]}}(),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=ge.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"],ge.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=ge.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-t}}(),ge.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={},u={presets:{}},r={setDefaults:function(e){return u.optionsFactory=e.options,u.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 u.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(ge.extend({},t,e))},destroy:function(e){return n.destroy(e)}};return a=u.methods||[],t=c(u.optionsFactory,{}),ge.forEach(o,function(e,t){s[t]=e}),ge.forEach(u.presets,function(t,n){var r=c(t.optionsFactory,{}),e=(t.methods||[]).concat(a);function i(e){this._options=ge.extend({},r,e)}if(ge.extend(r,{$type:n}),ge.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&&!ge.isObject(e)&&!ge.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,f,t,h,m,r,n,p,g,c,u){return function(){var l,i=[],o=[],a=[];return l={show:function(e){var t=new s((e=e||{})||{}),n=e.multiple?f.resolve():f.all(i);e.multiple||(n=n.then(function(){var e=o.concat(a.map(l.cancel));return f.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&&u(e),e}),t.deferred.promise},hide:e(function(n,r){return(r=r||{}).closeAll?f.all(a.slice().reverse().map(e)):r.closeTo!==ve?f.all(a.slice(r.closeTo).map(e)):e(a[a.length-1]);function e(e){if(!e)return f.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 f.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(ge.noop)}),destroy:function(e){var t=e?null:a.shift(),n=ge.element(e).length&&ge.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}):f.when(!1)},$injector_:c};function e(t){return function(){var e=arguments;return a.length?t.apply(l,e):i.length?i[0].finally(function(){return t.apply(l,e)}):f.when("No interim elements currently showing up.")}}function s(a){var o,s,e,c=f.when(!0);return(e=(e=a)||{}).template&&(e.template=n.processTemplate(e.template)),a=ge.extend({preserveScope:!1,cancelAutoHide:ge.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)||f.when()}},e),o={options:a,deferred:f.defer(),show:function(){return f(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))||f(function(e){e({locals:{},link:function(){return r.element}})})).then(function(e){s=function(e,t){ge.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=ge.isFunction(o)?o(r.scope,n,r):ge.isString(o)?ge.element(d[0].querySelector(o)):ge.element(o))||{}).length?o:(m[0]&&m[0].querySelector&&(i=m[0].querySelector(":not(svg) > body")),i||(i=m[0]),"#comment"===i.nodeName&&(i=d[0].body),ge.element(i))),t.themable&&g(a),a}(e,a),a.cleanupElement=e.cleanup,c=function(r,i,e){var t=i.onShowing||ge.noop,o=i.onComplete||ge.noop;try{t(i.scope,r,i,e)}catch(e){return f.reject(e)}return f(function(n,t){try{f.when(i.onShow(i.scope,r,i)).then(function(){var e,t;o(i.scope,r,i),t=ge.noop,a.hideDelay&&(e=h(l.hide,a.hideDelay),t=function(){h.cancel(e)}),a.cancelAutoHide=function(){t(),a.cancelAutoHide=ve},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=ge.extend(a||{},n||{})).cancelAutoHide&&a.cancelAutoHide(),a.element.triggerHandler("$mdInterimElementRemove"),!0===a.$destroy?u(a.element,a).then(function(){t&&i(e)||r(e)}):(f.when(c).finally(function(){u(a.element,a).then(function(){t?i(e):r(e)},i)}),o.deferred.promise)):f.when(!1);function r(e){o.deferred.resolve(e)}function i(e){o.deferred.reject(e)}}};function u(r,i){var o=i.onRemoving||ge.noop;return f(function(e,t){try{var n=f.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 u,s,l,c=/(-gt)?-(sm|md|lg|print)/g,d=/\s+/g,f=["grow","initial","auto","none","noshrink","nogrow"],h=["row","column"],m=["","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 y(r){return["$mdUtil","$interpolate","$log",function(e,t,n){return u=e,s=t,l=n,{restrict:"A",compile:function(e,t){var n;return g.enabled&&(E(r,C(r,t,""),w(0,r,t)),i(0,e),n=i),n||ge.noop}}}];function i(e,t){t.addClass(r)}}function $(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(u.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 E(e,t,n){var r,i,o,a=t;if(!_(t)){switch(e.replace(c,"")){case"layout":x(t,h)||(t=h[0]);break;case"flex":x(t,f)||isNaN(t)&&(t="");break;case"flex-offset":case"flex-order":t&&!isNaN(+t)||(t="0");break;case"layout-align":var s=(o={main:"start",cross:"stretch"},0!==(r=(r=t)||"").indexOf("-")&&0!==r.indexOf(" ")||(r="none"+r),(i=r.toLowerCase().trim().replace(d,"-").split("-")).length&&"space"===i[0]&&(i=[i[0]+"-"+i[1],i[2]]),0<i.length&&(o.main=i[0]||o.main),1<i.length&&(o.cross=i[1]||o.cross),m.indexOf(o.main)<0&&(o.main="start"),p.indexOf(o.cross)<0&&(o.cross="stretch"),o);t=u.supplant("{main}-{cross}",s);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":t=""}t!==a&&(n||ge.noop)(t)}return t?t.trim():""}function w(e,t,n){return function(e){_(e)||(n[n.$normalize(t)]=e)}}function _(e){return-1<(e||"").indexOf(s.startSymbol())}function C(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})}ge.forEach(["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],function(n){ge.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 u=e,s=t,l=n,{restrict:"A",compile:function(e,t){var n;return g.enabled&&($(c,0,e,l),E(c,C(c,t,""),w(0,c,t)),n=r),n||ge.noop}}}];function r(e,t,n){var r,i,o,a=(r=t,i=c,function(e){var t=E(i,e||"");ge.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(C(c,n,"")),e.$on("$destroy",function(){s()})}}(t))}),ge.forEach(o,function(e){var t=n?e+"-"+n:e;r.directive(a(t),y(t))})}),r.provider("$$mdLayout",function(){return{$get:ge.noop,validateAttributeValue:E,validateAttributeUsage:$,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)}):ge.noop}}}])).directive("layoutWrap",y("layout-wrap")).directive("layoutNowrap",y("layout-nowrap")).directive("layoutNoWrap",y("layout-no-wrap")).directive("layoutFill",y("layout-fill")).config(v)}(ge.module("material.core.layout",["ng"]))}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],ge.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}}(),ge.module("material.core.meta",[]).provider("$$mdMeta",function(){var r=ge.element(document.head),i={};function o(e){if(i[e])return!0;var t=document.getElementsByName(e)[0];return!!t&&(i[e]=ge.element(t),!0)}var e={setMeta:function(e,t){if(o(e),i[e])i[e].attr("content",t);else{var n=ge.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 ge.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)}):ge.noop;var n},when:function(e){if(s(e)){var t=r.defer(),n=i.get(e);return n?t.resolve(n):(a[e]===ve&&(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"],ge.module("material.core").factory("$mdComponentRegistry",e)}(),function(){function e(i){return{attach:function(e,t,n){var r;return n=ge.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"],ge.module("material.core").factory("$mdButtonInkRipple",e)}(),function(){function e(r){return{attach:function(e,t,n){return r.attach(e,t,ge.extend({center:!0,dimBackground:!1,fitRipple:!0},n))}}}e.$inject=["$mdInkRipple"],ge.module("material.core").factory("$mdCheckboxInkRipple",e)}(),function(){function e(r){return{attach:function(e,t,n){return r.attach(e,t,ge.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}e.$inject=["$mdInkRipple"],ge.module("material.core").factory("$mdListInkRipple",e)}(),function(){o.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],ge.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")?ge.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:ge.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=ge.bind(this,this.createRipple),(t.controller("mdInkRipple")||{}).setColor=ge.bind(this,this.color),this.bindEvents()}function t(e,t){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(ge.bind(e,t),!1))}function n(){return{controller:ge.noop}}o.prototype.color=function(e){var t,n,r=this;return ge.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",ge.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",ge.bind(this,this.handleMouseup)),this.$element.on("mouseleave",ge.bind(this,this.handleMouseup)),this.$element.on("touchmove",ge.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=ge.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&&ge.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=ge.element('<div class="md-ripple"></div>'),c=this.$element.prop("clientWidth"),u=this.$element.prop("clientHeight"),l=2*Math.max(Math.abs(c-e),e),d=2*Math.max(Math.abs(u-t),t),f=(n=this.options.fitRipple,r=l,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:f+"px",height:f+"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,ge.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},n))}}}e.$inject=["$mdInkRipple"],ge.module("material.core").factory("$mdTabInkRipple",e)}(),ge.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 400 500 600 A100 A200 A400",contrastStrongLightColors:"700 800 900 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 300 400 A100 A200 A400",contrastStrongLightColors:"500 600 700 800 900 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 300 A100 A200 A400",contrastStrongLightColors:"400 500 600 700 800 900 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 300 A100",contrastStrongLightColors:"400 500 600 700 800 900 A200 A400 A700"},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 300 A100 A200",contrastStrongLightColors:"400 500 600 700 800 900 A400 A700"},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 500 600 A100 A200",contrastStrongLightColors:"700 800 900 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",contrastStrongLightColors:"800 900 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",contrastStrongLightColors:"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",contrastStrongLightColors:"600 700 800 900"},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",contrastStrongLightColors:"700 800 900"},"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",contrastStrongLightColors:"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",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",contrastStrongLightColors:"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:"dark",contrastStrongLightColors:"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 300 A100 A200",contrastStrongLightColors:"400 500 600 700 800 900 A400 A700"},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:"700 800 900 A200 A400 A700",contrastStrongLightColors:"600"},"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 400 A100 A200 A400",contrastStrongLightColors:"500 600 700 800 900 A700"}}),function(y){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"],y.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",n).directive("mdThemable",r).directive("mdThemesDisabled",function(){return C.disableTheming=!0,{restrict:"A",priority:"900"}}).provider("$mdTheming",t).config(e).run(i);var m,c={},s={name:"dark"},u={name:"light"},l="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",p="",d=T("rgba(0,0,0,0.87)"),f=T("rgba(255,255,255,0.87)"),h=T("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"}},$={icon:.54,secondary:.54,disabled:.38,hint:.38,divider:.12},E={icon:.87,secondary:.7,disabled:.5,hint:.5,divider:.12},w={icon:1,secondary:.7,disabled:.5,hint:.5,divider:.12};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 _=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],C={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null};function t(e,c){a.$inject=["$rootScope","$mdUtil","$q","$log"];var n,d={},f=!(m={}),h="default";y.extend(m,e);var t=function(e){var t,n,r,i=(e=y.isObject(e)?e:{}).theme||"default",o=e.hue||"800",a=m[e.palette]||m[d[i].colors[e.palette||"primary"].name],s=y.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||{},m[e]=r(e,t),n},extendPalette:function(e,t){return r(e,y.extend({},m[e]||{},t))},theme:o,configuration:function(){return y.extend({},C,{defaultTheme:h,alwaysWatchTheme:f,registeredStyles:[].concat(C.registeredStyles)})},disableTheming:function(e){C.disableTheming=y.isUndefined(e)||!!e},registerStyles:function(e){C.registeredStyles.push(e)},setNonce:function(e){C.nonce=e},generateThemesOnDemand:function(e){C.generateOnDemand=e},setDefaultTheme:function(e){h=e},alwaysWatchTheme:function(e){f=e},enableBrowserColor:t,$get:a,_LIGHT_DEFAULT_HUES:v,_DARK_DEFAULT_HUES:b,_PALETTES:m,_THEMES:d,_parseRules:x,_rgba:A};function r(e,t){var n=_.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&&y.forEach(n.colors,function(e,t){r.colors[t]={name:e.name,hues:y.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?u:s,a.foregroundShadow=a.isDark?l:p;var t=a.isDark?b:v,o=a.isDark?v:b;return y.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:y.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===_.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",_.join(", ")))}),a}})}function a(n,c,r,u){var i=function(e,t){t===ve&&(t=e,e=ve),e===ve&&(e=n),i.inherit(t,t)};return Object.defineProperty(i,"THEMES",{get:function(){return y.extend({},d)}}),Object.defineProperty(i,"PALETTES",{get:function(){return y.extend({},m)}}),Object.defineProperty(i,"ALWAYS_WATCH",{get:function(){return f}}),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=f||r.$shouldWatch||c.parseAttributeBoolean(n.attr("md-theme-watch"));if(i||r.isAsyncTheme){var o=function(){a&&(a(),a=ve)},a=r.registerChanges(function(e){s(e),i||o()});t?t.$on("$destroy",o):n.on("$destroy",o)}}function s(e){if(e){l(e)||u.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=l,i.defaultTheme=function(){return h},i.generateTheme=function(e){k(d[e],e,C.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 l(e){return e===ve||""===e||i.THEMES[e]!==ve}}}function n(h,m,p,g,v,b){return{priority:101,link:{pre:function(t,e,n){var r=[],i=m.startSymbol(),o=m.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),u=function(){var e=m(n.mdTheme)(t);return p(e)(t)||e},l={isAsyncTheme:y.isFunction(u())||y.isFunction(u().then),registerChanges:function(t,e){return e&&(t=y.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+"'"),l.$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",l);var d=function(e){if("string"==typeof e)return l.$setTheme(e);v.when(y.isFunction(e)?e():e).then(function(e){l.$setTheme(e)})};d(u());var f=t.$watch(u,function(e){e&&(d(e),l.$shouldWatch||f())})}}}}function r(e){return e}function x(l,e,t){!function(e,t){if(!m[(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(m).join(", ")))}(l,e),t=t.replace(/THEME_NAME/g,l.name);var n=new RegExp("\\.md-"+l.name+"-theme","g"),r=new RegExp("(['\"])?{{\\s*([a-zA-Z]+)-?(color|default)?-?(contrast)?-?((?:\\d\\.?\\d*)|(?:[a-zA-Z]+))?\\s*}}([\"'])?","g"),i=l.colors.background.hues.default,s=m[l.colors.background.name][i].contrastType;t=t.replace(/'?"?{{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(contrast)?-?((?:\d\.?\d*)|(?:[a-zA-Z]+))?\s*}}'?"?/g,function(e,t,n,r,i){var o=t;if("foreground"===t){if("shadow"===n)return l.foregroundShadow;if(l.foregroundPalette[n])return A(T(l.foregroundPalette[n]));if(l.foregroundPalette[1])return A(T(l.foregroundPalette[1]));if(t="background",r="contrast",!i&&n)switch(n){case"2":i="secondary";break;case"3":i="disabled";break;case"4":i="divider"}n="default"}0!==n.indexOf("hue")&&"default"!==n||(n=l.colors[t].hues[n]);var a=m[l.colors[t].name][n]||"";if("background"===t&&r&&"foreground"!==o&&a.contrastType===s)switch(i){case"secondary":case"icon":if(l.foregroundPalette[2])return A(T(l.foregroundPalette[2]));break;case"disabled":case"hint":if(l.foregroundPalette[3])return A(T(l.foregroundPalette[3]));break;case"divider":if(l.foregroundPalette[4])return A(T(l.foregroundPalette[4]));break;default:if(l.foregroundPalette[1])return A(T(l.foregroundPalette[1]))}return r&&i&&(i=a.opacity[i]||i),A(a[r?"contrast":"value"],i)});var o=[];return y.forEach(["default","hue-1","hue-2","hue-3"],function(u){var e=t.replace(r,function(e,t,n,r,i,o){var a=l.colors[n],s=m[a.name],c=a.hues[u];return i&&o&&(o=s[c].opacity[o]||o),A(s[c]["color"===r?"value":"contrast"],o)});"default"!==u&&(e=e.replace(n,".md-"+l.name+"-theme.md-"+u)),"default"===l.name&&(e=e.replace(/((?:\s|>|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|]|"|'|=)*)/g,function(e,t,n){return e+", "+t+n})),o.push(e)}),o}var M={};function i(e,t){var n=document.head,r=n?n.firstElementChild:null,i=!C.disableTheming&&e.has("$MD_THEME_CSS")?e.get("$MD_THEME_CSS"):"";if(i+=C.registeredStyles.join(""),r&&0!==i.length){y.forEach(m,function(o){var a=o.contrastDefaultColor,s=o.contrastLightColors||[],c=o.contrastStrongLightColors||[],u=o.contrastDarkColors||[];"string"==typeof s&&(s=s.split(" ")),"string"==typeof c&&(c=c.split(" ")),"string"==typeof u&&(u=u.split(" ")),delete o.contrastDefaultColor,delete o.contrastLightColors,delete o.contrastStrongLightColors,delete o.contrastDarkColors,y.forEach(o,function(e,t){if(!y.isObject(e)){var n=T(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",o.name).replace("%3",t));var r,i=(r=t,("light"===a?-1===u.indexOf(r):-1!==s.indexOf(r)||-1!==c.indexOf(r))?-1===c.indexOf(r)?"light":"strongLight":"dark");o[t]={hex:o[t],value:n,contrastType:i,contrast:function(e){switch(e){default:case"strongLight":return h;case"light":return f;case"dark":return d}}(i),opacity:function(e){switch(e){default:case"strongLight":return w;case"light":return E;case"dark":return $}}(i)}}})});var o=function(e){for(var t=[],n="",r=0,i=0,o=0;o<e.length;o++){var a=e.charAt(o);if("'"===a||'"'===a){var s=e.substring(o,e.indexOf(a,o+1));n+=s,o+=s.length}else n+=a,"}"===a?++i===r&&(r=i=0,t.push(n),n=""):"{"===a&&r++}return""!==n&&t.push(n),t}(i).map(function(e){return e.trim()});g.forEach(function(e){M[e]=""}),o.forEach(function(e){for(var t,n=0;t=g[n];n++)if(-1<e.indexOf(".md-"+t))return M[t]+=e;for(n=0;t=g[n];n++)if(-1<e.indexOf(t))return M[t]+=e;return M[a]+=e}),C.generateOnDemand||y.forEach(t.THEMES,function(e){c[e.name]||"default"!==t.defaultTheme()&&"default"===e.name||k(e,e.name,C.nonce)})}}function k(i,e,o){var a=document.head,s=a?a.firstElementChild:null;c[e]||(g.forEach(function(e){for(var t=x(i,e,M[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 T(e){if(y.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):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 A(e,t){return e?(4===e.length&&(e=y.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),ge.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"],ge.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var le=48,de=5,fe=8,he=2,me="standard",pe="virtual";function e(h,m,p,t,n,e,r,i,g,s,o,a){var c,u,l,d=this,f=h.itemsExpr.split(/ in /i),v=f[1],b=null,y={},$=!1,E=[],w=!1,_=0,C=null,x=null,M=p.debounce(function(){d.hidden||N()}),k=pe;d.documentElement=ge.element(document.documentElement),c="hidden",u=function(e,t){var n;b&&(n=ge.element(b.scrollContainer));!e&&t?(N(),re(!0,A.Count|A.Selected),b&&(p.disableScrollAround(b.scrollContainer),r=b.wrap,(i=ge.element(r)).on("wheel touchmove",R),C=function(){i.off("wheel touchmove",R)},p.isIos&&(d.documentElement.on("touchend",P),n&&n.on("touchstart touchmove touchend",H)),d.index=z(),p.nextTick(function(){D(),ie()}))):e&&!t&&(p.isIos&&(d.documentElement.off("touchend",P),n&&n.off("touchstart touchmove touchend",H)),p.enableScrolling(),C&&(C(),C=null));var r,i},l=!0,Object.defineProperty(d,c,{get:function(){return l},set:function(e){var t=l;u(l=e,t)}}),d.scope=h,d.parent=h.$parent,d.itemName=f[0],d.matches=[],d.loading=!1,d.hidden=!0,d.index=-1,d.activeOption=null,d.id=p.nextUid(),d.isDisabled=null,d.isRequired=null,d.isReadonly=null,d.hasNotFound=!1,d.selectedMessage=h.selectedMessage||"selected",d.noMatchMessage=h.noMatchMessage||"There are no matches available.",d.singleMatchMessage=h.singleMatchMessage||"There is 1 match available.",d.multipleMatchStartMessage=h.multipleMatchStartMessage||"There are ",d.multipleMatchEndMessage=h.multipleMatchEndMessage||" matches available.",d.defaultEscapeOptions="clear",d.keydown=function(e){switch(e.keyCode){case t.KEY_CODE.DOWN_ARROW:if(d.loading||X())return;e.stopPropagation(),e.preventDefault(),d.index=d.index+1>d.matches.length-1?0:Math.min(d.index+1,d.matches.length-1),p.nextTick(D),ie();break;case t.KEY_CODE.UP_ARROW:if(d.loading||X())return;e.stopPropagation(),e.preventDefault(),d.index=d.index-1<0?d.matches.length-1:Math.max(0,d.index-1),p.nextTick(D),ie();break;case t.KEY_CODE.TAB:if(L(),d.hidden||d.loading||d.index<0||d.matches.length<1)return;ee(d.index);break;case t.KEY_CODE.ENTER:if(d.hidden||d.loading||d.index<0||d.matches.length<1)return;if(X())return;e.stopImmediatePropagation(),e.preventDefault(),ee(d.index);break;case t.KEY_CODE.ESCAPE:if(e.preventDefault(),!(K("blur")||!d.hidden||d.loading||K("clear")&&h.searchText))return;e.stopPropagation(),te(),h.searchText&&K("clear")&&ne(),d.hidden=!0,K("blur")&&U(!0)}},d.blur=function(e){w=!1,$?ge.isObject(e)&&e.stopImmediatePropagation():(d.hidden=Y(),ue("ngBlur",{$event:e}))},d.focus=function(e){w=!0,G()&&J()&&se();d.hidden=Y(),ue("ngFocus",{$event:e})},d.clear=function(e){e&&e.stopPropagation();te(),ne()},d.select=ee,d.listEnter=function(){$=!0},d.listLeave=L,d.focusInput=O,d.getCurrentDisplayValue=Q,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=ae,d.loadingIsVisible=function(){return d.loading&&!X()},d.positionDropdown=N;var T,A={Count:1,Selected:2};return p.initOptionalProperties(h,g,{searchText:"",selectedItem:null,clearButton:!1,disableVirtualRepeat:!1}),n(m),T=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",T?p.debounce(F,T):F),h.$watch("selectedItem",j),ge.element(e).on("resize",M),h.$on("$destroy",I),void p.nextTick(function(){var e;e=function(){var e,t;for(e=m;e.length&&(t=e.attr("md-autocomplete-snap"),!ge.isDefined(t));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===t.toLowerCase()?e[0]:m.find("md-autocomplete-wrap")[0]};var n=m.find("md-autocomplete-wrap")[0];return{snap:n,wrap:n}}(),(b={main:m[0],scrollContainer:m[0].querySelector(".md-virtual-repeat-container, .md-standard-list-container"),scroller:m[0].querySelector(".md-virtual-repeat-scroller, .md-standard-list-scroller"),ul:m.find("ul")[0],input:m.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]=ge.element(e[n]));return t}(b),k=b.scrollContainer.classList.contains("md-standard-list-container")?me:pe,x=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)),m.on("touchstart",O),h.autofocus&&m.on("focus",O),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&&x&&x.$setValidity("md-require-match",!!h.selectedItem||!h.searchText)}function N(){if(!b)return p.nextTick(N,!1,h);var e,t=(h.dropdownItems||de)*le,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,u=function(){var e=0,t=m.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}(),l=h.dropdownPosition,d=i.bottom-r.bottom-fe+p.getViewportTop(),f=r.top-fe;l||(l=t<d?"bottom":t<f?"top":d<f?"top":"bottom"),g.mdFloatingLabel&&(s+=he,c-=2*he),e={left:s+"px",minWidth:c+"px",maxWidth:Math.max(n.right-i.left,i.right-n.left)-fe+"px"},"top"===l?(e.top="auto",e.bottom=a+"px",e.maxHeight=Math.min(t,f)+"px"):(d=i.bottom-n.bottom-fe+p.getViewportTop(),e.top=o-u+"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 O(){b.input.focus()}function D(){var e=b.scroller.querySelector(".selected");d.activeOption=e?e.id:null}function I(){if(d.hidden||p.enableScrolling(),ge.element(e).off("resize",M),b){ge.forEach(["ul","scroller","scrollContainer","input"],function(e){b.$[e].remove()})}}function R(e){e.preventDefault()}function H(e){e.stopPropagation()}function P(e){U(d.hidden=!0)}function L(){w||d.hidden||b.input.focus(),$=!1,d.hidden=Y()}function j(r,i){S(),r?q(r).then(function(e){var t,n;h.searchText=e,t=r,n=i,E.forEach(function(e){e(t,n)})}):i&&h.searchText&&q(i).then(function(e){ge.isString(h.searchText)&&e.toString().toLowerCase()===h.searchText.toLowerCase()&&(h.searchText="")}),r!==i&&ge.isFunction(h.itemChange)&&h.itemChange(B(h.selectedItem))}function F(t,n){d.index=z(),t!==n&&(S(),q(h.selectedItem).then(function(e){t!==e&&(h.selectedItem=null,t!==n&&ge.isFunction(h.textChange)&&h.textChange(),J()?se():(W(!(d.matches=[])),re(!0,A.Count)))}))}function U(e){e&&(w=$=!1),b.input.blur()}function V(){return ge.isNumber(h.minLength)?h.minLength:1}function q(e){return s.when((t=e,(t&&h.itemText?h.itemText(B(t)):null)||e)).then(function(e){return e&&!ge.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 B(e){if(!e)return ve;var t={};return d.itemName&&(t[d.itemName]=e),t}function z(){return h.autoselect?0:-1}function W(e){d.loading!==e&&(d.loading=e),d.hidden=Y()}function Y(){return!function(){{if(d.isReadonly)return!1;if(!G())return!1}return J()&&Z()||ae()}()}function G(){return!(d.loading&&!Z())&&(!X()&&!!w)}function K(e){return ge.isString(h.escapeOptions)?-1!==h.escapeOptions.toLowerCase().indexOf(e):-1!==d.defaultEscapeOptions.indexOf(e)}function Z(){return!!d.matches.length}function X(){return!!d.scope.selectedItem}function Q(){return q(d.matches[d.index])}function J(){return(h.searchText||"").length>=V()}function ee(e){p.nextTick(function(){q(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],W(!1)})},!1)}function te(){d.index=-1,p.nextTick(D),d.matches=[]}function ne(){W(!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 re(e,t){var n=e?"polite":"assertive",r=[];t&A.Selected&&-1!==d.index&&r.push(Q()),t&A.Count&&r.push(s.resolve(function(){switch(d.matches.length){case 0:return d.noMatchMessage;case 1:return d.singleMatchMessage;default:return d.multipleMatchStartMessage+d.matches.length+d.multipleMatchEndMessage}}())),s.all(r).then(function(e){a.announce(e.join(" "),n)})}function ie(){var e,t,n,r,i,o,a,s,c,u;b.li[0]&&(k===me?(o=b.li[Math.max(0,d.index)],a=b.scrollContainer.offsetHeight,s=o&&o.offsetTop||0,c=s+o.clientHeight,u=b.scrollContainer.scrollTop,s<u?oe(s):u+a<c&&oe(c-a)):(e=b.li[0].offsetHeight,t=e*Math.max(0,d.index),n=t+e,r=b.scroller.clientHeight,i=b.scroller.scrollTop,t<i?oe(t):i+r<n&&oe(n-r)))}function oe(e){k===me?b.scrollContainer.scrollTop=e:b.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function ae(){var e=(d.scope.searchText||"").length;return d.hasNotFound&&!Z()&&(!d.loading||0!==_)&&e>=V()&&(w||$)&&!X()}function se(){var e=h.searchText||"",t=e.toLowerCase();!h.noCache&&y[t]?ce(y[t]):function(t){var e=h.$parent.$eval(v),n=t.toLowerCase(),r=ge.isArray(e),i=!!e.then;function o(e){y[n]=e,(t||"")===(h.searchText||"")&&ce(e)}r?o(e):i&&(a=e,a&&(a=s.when(a),_++,W(!0),p.nextTick(function(){a.then(o).finally(function(){0==--_&&W(!1)})},!0,h)));var a}(e),d.hidden=Y()}function ce(e){var n,t,r;d.matches=e,d.hidden=Y(),d.loading&&W(!1),h.selectOnMatch&&(n=h.searchText,t=d.matches,r=t[0],1===t.length&&q(r).then(function(e){var t=n===e;h.matchInsensitive&&!t&&(t=n.toLowerCase()===e.toLowerCase()),t&&ee(0)})),N(),re(!0,A.Count)}function ue(e,t){g[e]&&h.$parent.$eval(g[e],t||{})}}}(),function(){function e(u){var l="virtual",t=["standard",l];function d(e){return e?(e=e.toLowerCase(),-1<t.indexOf(e)?e:l):l}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",noMatchMessage:"@?mdNoMatchMessage",singleMatchMessage:"@?mdSingleMatchMessage",multipleMatchStartMessage:"@?mdMultipleMatchStartMessage",multipleMatchEndMessage:"@?mdMultipleMatchEndMessage",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"),ge.isDefined(n.mdClearButton)||e.floatingLabel||(e.clearButton=!0),e.mdMode=d(n.mdMode),t.on("click touchstart touchend",function(e){e.stopPropagation()})}},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()" class="md-autocomplete-suggestion"                         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="text"                '+(null!=s?'tabindex="'+s+'"':"")+'                id="{{inputId || \'fl-input-\' + $mdAutocompleteCtrl.id}}"                name="{{inputName || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                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-mousedown="$mdAutocompleteCtrl.focusInput()"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur($event)"                ng-focus="$mdAutocompleteCtrl.focus($event)"                aria-label="{{floatingLabel}}"                ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}"                ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}"                aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}"                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"                ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}"                ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">              <div md-autocomplete-parent-scope md-autocomplete-replace>'+a+"</div>            </md-input-container>":'            <input type="text"              '+(null!=s?'tabindex="'+s+'"':"")+'              id="{{inputId || \'input-\' + $mdAutocompleteCtrl.id}}"              name="{{inputName || \'input-\' + $mdAutocompleteCtrl.id }}"              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-mousedown="$mdAutocompleteCtrl.focusInput()"              ng-keydown="$mdAutocompleteCtrl.keydown($event)"              ng-blur="$mdAutocompleteCtrl.blur($event)"              ng-focus="$mdAutocompleteCtrl.focus($event)"              placeholder="{{placeholder}}"              aria-label="{{placeholder}}"              ng-attr-aria-autocomplete="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'list\'}}"              ng-attr-role="{{$mdAutocompleteCtrl.isDisabled ? undefined : \'combobox\'}}"              aria-haspopup="{{!$mdAutocompleteCtrl.isDisabled}}"              aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"              ng-attr-aria-owns="{{$mdAutocompleteCtrl.hidden || $mdAutocompleteCtrl.isDisabled ? undefined : \'ul-\' + $mdAutocompleteCtrl.id}}"              ng-attr-aria-activedescendant="{{!$mdAutocompleteCtrl.hidden && $mdAutocompleteCtrl.activeOption ? $mdAutocompleteCtrl.activeOption : undefined}}">')+'          <button type="button" aria-label="Clear Input" tabindex="0" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+u.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() }"                ng-mouseenter="$mdAutocompleteCtrl.listEnter()"                ng-mouseleave="$mdAutocompleteCtrl.listLeave()"                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() }"              ng-mouseenter="$mdAutocompleteCtrl.listEnter()"              ng-mouseleave="$mdAutocompleteCtrl.listLeave()"              role="presentation">'}(e.mdMenuContainerClass,e.mdMode)+'            <ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}"                ng-mouseup="$mdAutocompleteCtrl.focusInput()"                role="listbox">              <li class="md-autocomplete-suggestion" '+(c(e.mdMode)?"ng-repeat":"md-virtual-repeat")+' ="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-attr-id="{{\'md-option-\' + $mdAutocompleteCtrl.id + \'-\' + $index}}"                  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)!==l}}}}e.$inject=["$$mdSvgRegistry"],ge.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,l){return{restrict:"AE",compile:function(e,t,u){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){l.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}),u(a,function(e){t.after(e)})}},terminal:!0,transclude:"element"}}e.$inject=["$compile","$mdUtil"],ge.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e)}(),function(){function e(e,t,n,r){this.$scope=e,this.$element=t,this.$attrs=n,this.$mdUtil=r,this.regex=null}e.$inject=["$scope","$element","$attrs","$mdUtil"],ge.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=ge.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.$mdUtil.sanitize(e);return 0<=t.indexOf("^")&&(n="^"),0<=t.indexOf("$")&&(r="$"),new RegExp(n+i+r,t.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"],ge.module("material.components.autocomplete").directive("mdHighlightText",e)}(),ge.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(s,c,t,n,u,l,d,f){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=u.getComputedStyle(f[0].body)).position){var e=c.debounce(function(){o=u.getComputedStyle(f[0].body),a()},60,null,!1);a(),ge.element(u).on("resize",e),r.$on("$destroy",function(){ge.element(u).off("resize",e)})}var t=i.parent();if(t.length){"BODY"===t[0].nodeName&&i.css("position","fixed");var n=u.getComputedStyle(t[0]);"static"===n.position&&l.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 f=.5,h=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:t});function t(r,a,s,i,c,o,u,l){var d;return{themable:!0,onShow:function(e,t,n){if((t=s.extractElementByName(t,"md-bottom-sheet")).attr("tabindex","-1"),t.hasClass("ng-cloak")){l.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(-h,t/2)),r.css(a.CSS.TRANSFORM,"translate3d(0,"+(h+t)+"px,0)")}function o(e){if(0<e.pointer.distanceY&&(20<e.pointer.distanceY||Math.abs(e.pointer.velocityY)>f)){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||((d=s.createBackdrop(e,"md-bottom-sheet-backdrop md-opaque"))[0].tabIndex=-1,n.clickOutsideToClose&&d.on("click",function(){s.nextTick(c.cancel,!0)}),i.inherit(d,n.parent),r.enter(d,n.parent,null));i.inherit(t,n.parent),n.disableParentScroll&&(n.restoreScroll=s.disableScrollAround(t,n.parent));return r.enter(t,n.parent,d).then(function(){var e=s.findFocusTarget(t)||ge.element(t[0].querySelector("button")||t[0].querySelector("a")||t[0].querySelector(s.prefixer("ng-click",!0)))||d;n.escapeToClose&&(n.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&s.nextTick(c.cancel,!0)},o.on("keyup",n.rootElementKeyupCallback),e&&e.focus())})},onRemove:function(e,t,n){n.disableBackdrop||r.leave(d);return r.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"],ge.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)&&ge.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 ge.isDefined(e.href)||ge.isDefined(e.ngHref)||ge.isDefined(e.ngLink)||ge.isDefined(e.uiSref)}}t.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],ge.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"],ge.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(b,y,$,E,w,_){return b=b[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:$.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),e.addClass("md-auto-horizontal-margin"),{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],u=t[1]||w.fakeNgModel(),l=t[2],d=0<i.find("a").length;if(d){var f="label-"+w.nextUid();n.$set("aria-labelledby",f);var h=i.children()[1];ge.element(h).remove(),h.removeAttribute("ng-transclude"),h.className="md-checkbox-link-label",h.setAttribute("id",f),i.after(h);var m=i.next();m.on("click",g)}if(c){var p=c.isErrorGetter||function(){return u.$invalid&&(u.$touched||l&&l.$submitted)};c.input=i,e.$watch(p,c.setInvalid)}function g(t){i[0].hasAttribute("disabled")||e.skipToggle||"A"===t.target.tagName||e.$apply(function(){var e=n.ngChecked&&n.ngClick?n.checked:!u.$viewValue;u.$setViewValue(e,t&&t.type),u.$render()})}function v(e){(r=!1!==e)&&i.attr("aria-checked","mixed"),i.toggleClass("md-indeterminate",r),u.$render()}E(i),i.children().on("focus",function(){i.focus()}),w.parseAttributeBoolean(n.mdIndeterminate)&&(v(),e.$watch(n.mdIndeterminate,v)),n.ngChecked&&e.$watch(e.$eval.bind(e,n.ngChecked),function(e){u.$setViewValue(e),u.$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])}),d||y.expectWithText(i,"aria-label"),b.link.pre(e,{on:ge.noop,0:{}},n,[u]),i.on("click",g).on("keypress",function(e){var t,n,r=e.which||e.keyCode;switch(e.preventDefault(),r){case $.KEY_CODE.SPACE:i.addClass("md-focused"),g(e);break;case $.KEY_CODE.ENTER:(n=w.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")}),u.$render=function(){var e=!!u.$viewValue&&!r;i.toggleClass("md-checked",e),r||(e?i.attr("aria-checked","true"):i.attr("aria-checked","false"))}}}}}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],ge.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),ge.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=ve,this.enableChipEdit=!1}e.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],ge.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 ge.element(e[0])},e.prototype.getContentElement=function(){var e=ge.element(this.getChipContent().children()[0]);return e&&0!==e.length||(e=ge.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=ge.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"],ge.module("material.components.chips").directive("mdChip",e)}(),function(){function e(i){return{restrict:"A",require:"^mdChips",scope:!1,link:function(e,t,n,r){t.on("click",function(){e.$apply(function(){r.removeChip(e.$$replacedScope.$index)})}),i(function(){t.attr({tabindex:"-1","aria-hidden":"true"}),t.find("button").attr("tabindex","-1")})}}}e.$inject=["$timeout"],ge.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"],ge.module("material.components.chips").directive("mdChipTransclude",e)}(),function(){e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil","$mdLiveAnnouncer","$exceptionHandler"];var u=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.inputClass="",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=u,this.deRegister=[],this.addedMessage="added",this.removedMessage="removed",this.init()}ge.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)||u}))},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 ge.isObject(e)},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!ge.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});ge.isDefined(e)&&(t=e)}if(ge.isObject(t)&&this.items.some(function(e){return ge.equals(t,e)}))return;if(!(null==t||this.items.indexOf(t)+1)){var n=this.items.push(t)-1;this.updateNgModel();var r=ge.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 ge.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 ge.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(),ge.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=ge.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.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(ge.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(ge.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",ge.bind(this,this.onInputFocus)).on("blur",ge.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"],ge.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{{ $mdChipsCtrl.inputClass ? \' \' + $mdChipsCtrl.inputClass: \'\'}}"            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(f,h,m,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,u=s||v.default,l=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),f(t);var i=r[0];if(s&&(i.enableChipEdit=!1),i.chipContentsTemplate=u,i.chipRemoveTemplate=c,i.chipInputTemplate=l,i.mdCloseIcon=g.mdCancel,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.mdOnAdd&&i.useOnAddExpression(),n.mdOnRemove&&i.useOnRemoveExpression(),n.mdOnSelect&&i.useOnSelectExpression(),l!==v.input&&e.$watch("$mdChipsCtrl.readonly",function(e){e||h.nextTick(function(){if(0===l.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=m(d.clone())(e.$parent);p(function(){t.find("md-chips-wrap").prepend(o)})}}},scope:{readonly:"=?readonly",removable:"=?mdRemovable",placeholder:"@?",secondaryPlaceholder:"@?",maxChips:"@?mdMaxChips",transformChip:"&mdTransformChip",onAdd:"&?mdOnAdd",onRemove:"&?mdOnRemove",addedMessage:"@?mdAddedMessage",removedMessage:"@?mdRemovedMessage",onSelect:"&?mdOnSelect",inputClass:"@?mdInputClass",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"],ge.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").controller("mdChips").$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),this.inputClass&&(t.inputClass=this.inputClass)},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=ge.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"],ge.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-max-chips="{{$mdContactChipsCtrl.maxChips}}"          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-attr-md-input-class="{{$mdContactChipsCtrl.inputClass}}"              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",maxChips:"=?mdMaxChips",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay",separatorKeys:"=?mdSeparatorKeys",removedMessage:"@?mdRemovedMessage",inputClass:"@?mdInputClass",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*}$/,u=null;function e(o,a,r){return u=u||Object.keys(o.PALETTES),{applyThemeColors:function(e,t){try{t&&e.css((i={},o=(n=t).hasOwnProperty("color"),ge.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 ge.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=ge.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!==u.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===u.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(l,o,d,f){return{restrict:"A",require:["^?mdTheme"],compile:function(e,i){var u=function(){var e=i.mdColors,t=-1<e.indexOf("::"),n=!!t||a.test(i.mdColors);i.mdColors=e.replace("::","");var r=ge.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=f(t.mdColors)(e);return i&&Object.keys(r).forEach(function(e){var t=r[e];l.hasTheme(t)||(r[e]=(n||i.$mdTheme)+"-"+t)}),s(r),r},s=function(e){if(!ge.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=ge.noop;i&&(c=i.registerChanges(function(e){l.applyThemeColors(n,a(e))})),e.$on("$destroy",function(){c()});try{u?e.$watch(a,ge.bind(this,l.applyThemeColors,n),!0):l.applyThemeColors(n,a())}catch(e){d.error(e.message)}}}}}ge.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],ge.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"],ge.module("material.components.content",["material.core"]).directive("mdContent",e)}(),ge.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]),function(){function e(o){return{template:function(e,t){return'<div ng-switch="calendarCtrl.currentView" '+(t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",monthFilter:"=mdMonthFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:n,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0];r[1].configureNgModel(i,o)}}}n.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale","$filter","$document"],e.$inject=["inputDirective"],ge.module("material.components.datepicker").directive("mdCalendar",e);var h=0,t={day:"month",month:"year"};function n(e,t,n,r,i,o,a,s,c,u,l){o(e),this.$element=e,this.$scope=t,this.$attrs=s,this.dateUtil=n,this.$mdUtil=r,this.keyCode=i.KEY_CODE,this.$$rAF=a,this.$mdDateLocale=c,this.ngDateFilter=u("date"),this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=ve,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=h++,this.displayDate=null,this.mode=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,this.standaloneMode=!1,s.tabindex||e.attr("tabindex","-1");var d,f=ge.bind(this,this.handleKeyEvent);(d=e.parent().hasClass("md-datepicker-calendar")?ge.element(l[0].body):(this.standaloneMode=!0,e)).on("keydown",f),t.$on("$destroy",function(){d.off("keydown",f)}),1===ge.version.major&&ge.version.minor<=4&&this.$onInit()}n.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),this.minDate&&this.minDate>this.$mdDateLocale.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=this.$mdDateLocale.firstRenderableDate,this.maxDate&&this.maxDate<this.$mdDateLocale.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=this.$mdDateLocale.lastRenderableDate},n.prototype.configureNgModel=function(e,t){var n=this;n.ngModelCtrl=e,this.$attrs.$set("type","date"),t[0].link.pre(this.$scope,{on:ge.noop,val:ge.noop,0:{}},this.$attrs,[e]),e.$render=function(){var e,t=this.$viewValue;n.dateUtil.isValidDate(t)||(e=n.dateUtil.removeLocalTzAndReparseDate(new Date(t)),n.dateUtil.isValidDate(e)&&(t=e)),n.$scope.$broadcast("md-calendar-parent-changed",t),n.selectedDate||(n.selectedDate=t),n.displayDate||(n.displayDate=n.selectedDate||n.today)},n.$mdUtil.nextTick(function(){n.isInitialized=!0})},n.prototype.setNgModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone"),n=this.dateUtil.createDateAtMidnight(e);return this.focusDate(n),this.$scope.$emit("md-calendar-change",n),null==t||n.getTimezoneOffset()<0?this.ngModelCtrl.$setViewValue(this.ngDateFilter(n,"yyyy-MM-dd"),"default"):this.ngModelCtrl.$setViewValue(this.ngDateFilter(n,"yyyy-MM-dd",t),"default"),this.ngModelCtrl.$render(),n},n.prototype.setCurrentView=function(e,t){var n=this;n.$mdUtil.nextTick(function(){n.currentView=e,t&&(n.displayDate=ge.isDate(t)?t:new Date(t))})},n.prototype.focusDate=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()}},n.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},n.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}},n.prototype.handleKeyEvent=function(t){var n=this;this.$scope.$apply(function(){if(t.which===n.keyCode.ESCAPE||t.which===n.keyCode.TAB&&!n.standaloneMode)return n.$scope.$emit("md-calendar-close"),void(t.which===n.keyCode.TAB&&t.preventDefault());if(t.which!==n.keyCode.TAB||!n.standaloneMode){var e=n.getActionFromKeyEvent(t);e&&(t.preventDefault(),t.stopPropagation(),n.$scope.$broadcast("md-calendar-parent-action",e))}})},n.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()})},n.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("-")},n.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"],ge.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(new Date(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",ge.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.focusDate(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){ge.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"],ge.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=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)&&(!ge.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,u=0,l=document.createElement("td"),d=document.createElement("span"),f=this.calendarCtrl;if(d.textContent=this.dateLocale.monthHeaderFormatter(t),l.appendChild(d),l.classList.add("md-calendar-month-label"),f.maxDate&&n>f.maxDate?l.classList.add("md-calendar-month-label-disabled"):f.mode||(l.addEventListener("click",this.monthCtrl.headerClickHandler),l.setAttribute("data-timestamp",n.getTime()),l.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),l.classList.add("md-calendar-label-clickable"),l.appendChild(this.arrowIcon.cloneNode(!0))),r<=2){l.setAttribute("colspan","7");var h=this.buildDateRow();if(h.appendChild(l),o.insertBefore(h,s),c)return o}else u=3,l.setAttribute("colspan","3"),s.appendChild(l);for(var m=u;m<r;m++)s.appendChild(this.buildDateCell());for(var p=r,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 y=this.buildDateRow(),$=0;$<7;$++)y.appendChild(this.buildDateCell());o.appendChild(y)}return o},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}(),function(){e.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],ge.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.focusDate(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",ge.bind(n,n.handleKeyEvent))},e.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(new Date(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"],ge.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){ge.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=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)||ge.isFunction(n.monthFilter)&&!n.monthFilter(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=String(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}}(),ge.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)}]),ge.module("material.components.datepicker").factory("$$mdDateUtil",["$mdDateLocale",function(r){return{getFirstDateOfMonth:n,getNumberOfDaysInMonth:i,getDateInNextMonth:o,getDateInPreviousMonth:a,isInNextMonth:function(e,t){return s(o(e),t)},isInPreviousMonth:function(e,t){var n=a(e);return s(t,n)},getDateMidpoint:function(e,t){return d((e.getTime()+t.getTime())/2)},isSameMonthAndYear:s,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:c,getLastDateOfMonth:function(e){return new Date(e.getFullYear(),e.getMonth(),i(e))},isSameDay:function(e,t){return e.getDate()==t.getDate()&&s(e,t)},getMonthDistance:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},isValidDate:u,setDateTimeToMidnight:l,createDateAtMidnight:d,isDateWithinRange:function(e,t,n){var r=d(e),i=u(t)?d(t):null,o=u(n)?d(n):null;return(!i||i<=r)&&(!o||r<=o)},incrementYears:function(e,t){return c(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)},removeLocalTzAndReparseDate:function(e){var t,n;return t=new Date(e.getTime()+6e4*e.getTimezoneOffset()),n=r.formatDate(t),r.parseDate(n)}};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 o(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function a(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function s(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function c(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 u(e){return e&&e.getTime&&!isNaN(e.getTime())}function l(e){u(e)&&e.setHours(0,0,0,0)}function d(e){var t;return l(t=ge.isDate(e)?e:ge.isNumber(e)?new Date(e):new Date),t}}]),function(){function e(u,d,f,h){return{template:function(e,t){var n=t.mdHideIcons,r=t.inputAriaDescribedby,i=t.inputAriaLabelledby,o=t.ariaLabel||t.mdPlaceholder,a=t.ngModelOptions,s="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="'+u.mdCalendar+'"></md-icon></md-button>',c="";return"all"!==n&&"triangle"!==n&&(c='<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(l)),s+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(o?'aria-label="'+o+'" ':"")+(r?'aria-describedby="'+r+'" ':"")+(i?'aria-labelledby="'+i+'" ':"")+'class="md-datepicker-input" aria-haspopup="dialog" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+c+'</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" md-month-filter="ctrl.monthFilter" '+(a?'ng-model-options="'+a+'" ':"")+'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",monthFilter:"=mdMonthFilter",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 u=t[0].querySelector(".md-errors-spacer");u&&t.after(ge.element("<div>").append(u)),a.setHasPlaceholder(n.mdPlaceholder),a.input=t,a.element.addClass(m).toggleClass(p,"calendar"!==n.mdHideIcons&&"all"!==n.mdHideIcons),a.label?c||n.$observe("required",function(e){a.label.toggleClass("md-required",!!e)}):f.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 l=e.$watch(function(){return s.$submitted},function(e){e&&(o.updateErrorState(),l())})}}}t.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter","$timeout"],e.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],ge.module("material.components.datepicker").directive("mdDatepicker",e);var a="md-datepicker-invalid",d="md-datepicker-open",m="_md-datepicker-floating-label",p="_md-datepicker-has-calendar-icon",l="_md-datepicker-has-triangle-icon",h=/ipad|iphone|ipod|android/i;function t(e,t,n,r,i,o,a,s,c,u,l,d){this.$window=r,this.dateUtil=c,this.$mdConstant=i,this.$mdUtil=a,this.$$rAF=u,this.$mdDateLocale=s,this.$timeout=d,this.documentElement=ge.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=t[0].querySelector("input"),this.ngInputElement=ge.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=ge.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=ve,this.setDisabled(t[0].disabled||ge.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=ge.bind(this,this.handleBodyClick),this.windowEventName=h.test(navigator.userAgent||navigator.vendor||j.opera)?"orientationchange":"resize",this.windowEventHandler=a.debounce(ge.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=ge.bind(this,this.handleWindowBlur),this.ngDateFilter=l("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(ge.element(this.calendarPane));var f=this;e.$on("$destroy",function(){f.detachCalendarPane()}),n.mdIsOpen&&e.$watch("ctrl.isOpen",function(e){e?f.openCalendarPane({target:f.inputElement}):f.closeCalendarPane()}),1===ge.version.major&&ge.version.minor<=4&&this.$onInit()}t.prototype.$onInit=function(){this.locale=this.dateLocale?ge.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:ge.noop,val:ge.noop,0:{}},this.$attrs,[e]);var r=this;r.ngModelCtrl.$formatters.push(function(e){var t=ge.isDefined(e)?e:null;if(!(e instanceof Date)&&(t=Date.parse(e),!isNaN(t)&&ge.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(ge.bind(this,this.updateErrorState));var i=r.$mdUtil.getModelOption(e,"updateOn");i&&this.ngInputElement.on(i,ge.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",ge.bind(n,n.resizeInputElement));var e=ge.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",ge.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)}),ge.element(t.$window).on("blur",t.windowBlurHandler),n.$on("$destroy",function(){ge.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;if(t=e?new Date(e.valueOf()):ge.copy(this.ngModelCtrl.$modelValue),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)}ge.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(t)),ge.isFunction(this.monthFilter)&&this.ngModelCtrl.$setValidity("filtered",this.monthFilter(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),ge.element(this.inputContainer).toggleClass(a,this.ngModelCtrl.$invalid&&(this.ngModelCtrl.$touched||this.ngModelCtrl.$submitted))},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)&&(!ge.isFunction(this.dateFilter)||this.dateFilter(e))&&(!ge.isFunction(this.monthFilter)||this.monthFilter(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),ge.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,u=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"}),u<o+360){if(0<u-360)o=u-360;else{o=s;var l=this.$window.innerWidth/360;e.style.transform="scale("+l+")"}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),ge.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.inputFocusedOnWindowBlur&&this.resetInputFocused();else{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 ge.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},t.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focusDate(e.date)},!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.resetInputFocused=function(){this.inputFocusedOnWindowBlur=!1},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");null==t||null==e||e.getTimezoneOffset()<0?this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd"),"default"):this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t),"default")},t.prototype.onExternalChange=function(e){var t=this,n=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.dateUtil.isValidDate(e)&&null!=n&&0<=e.getTimezoneOffset()?this.date=this.dateUtil.removeLocalTzAndReparseDate(e):this.date=e,null==n||null==e||e.getTimezoneOffset()<0?this.inputElement.value=this.locale.formatDate(e):this.inputElement.value=this.locale.formatDate(e,n),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.$mdUtil.nextTick(function(){t.updateErrorState()},!1,t.$scope)}}(),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(),ge.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","ariaLabel","ok","theme","css"],options:t}).addPreset("confirm",{methods:["title","htmlContent","textContent","ariaLabel","ok","cancel","theme","css"],options:t}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","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&&!ge.isDefined(this.result);e.keyCode!==i.KEY_CODE.ENTER||t||r.hide(this.result)}}}function r(f,s,h,m,c,u,p,l,d,a,t,g,v){return{hasBackdrop:!0,isolateScope:!0,onCompiling:function(e){e.defaultTheme=t.defaultTheme(),function(t){var e;t.targetEvent&&t.targetEvent.target&&(e=ge.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){ge.element(u[0].body).addClass("md-dialog-is-showing");var r=t.find("md-dialog");if(r.hasClass("ng-cloak")){d.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",t[0])}return function(e){function t(e,t){var n=ge.element(e||{});if(n&&n.length){var r=ge.isFunction(n[0].getBoundingClientRect);return ge.extend(t||{},{element:r?n:ve,bounds:r?n[0].getBoundingClientRect():ge.extend({},{top:0,left:0,height:0,width:0},n[0]),focus:ge.bind(n,n.focus)})}}function n(e,t){return ge.isString(e)&&(e=u[0].querySelector(e)),ge.element(e||t)}e.origin=ge.extend({element:null,bounds:null,focus:ge.noop},e.origin||{}),e.parent=n(e.parent,l),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(n,t){var e="alert"===t.$type?"alertdialog":"dialog",r=n.find("md-dialog-content"),i=n.attr("id"),o="dialogContent_"+(i||h.nextUid());n.attr({role:e,tabIndex:"-1"}),0===r.length&&(r=n,i&&(o=i)),r.attr("id",o),n.attr("aria-describedby",o),t.ariaLabel?s.expect(n,"aria-label",t.ariaLabel):s.expectAsync(n,"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,$=y.cloneNode(!1);var a=function(e){if(e.target&&e.target.nextSibling&&"MD-DIALOG"===e.target.nextSibling.nodeName){var t=h.getLastTabbableElement(n[0]);ge.isElement(t)&&t.focus()}else n.focus()};y.addEventListener("focus",a),$.addEventListener("focus",a),E=function(){y.removeEventListener("focus",a),$.removeEventListener("focus",a),y&&y.parentNode&&y.parentNode.removeChild(y),$&&$.parentNode&&$.parentNode.removeChild($)},n[0].parentNode.insertBefore(y,n[0]),n.after($)}(r,n),i=e,o=t,a=n,a.disableParentScroll&&(a.restoreScroll=h.disableScrollAround(o,a.parent)),a.hasBackdrop&&(a.backdrop=h.createBackdrop(i,"md-dialog-backdrop md-opaque"),c.enter(a.backdrop,a.parent)),a.hideBackdrop=function(e){a.backdrop&&(e?a.backdrop.remove():c.leave(a.backdrop)),a.disableParentScroll&&(a.restoreScroll&&a.restoreScroll(),delete a.restoreScroll),a.hideBackdrop=null},function(e,t){var n=ge.element(p),r=h.debounce(function(){b(e,t)},60),i=[],o=function(){var e="alert"===t.$type?f.hide:f.cancel;h.nextTick(e,!0)};if(t.escapeToClose){var a=t.parent,s=function(e){e.keyCode===m.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,u=e,l=function(e){c=e.target},d=function(e){c===u[0]&&e.target===u[0]&&(e.stopPropagation(),e.preventDefault(),o())};u.on("mousedown",l),u.on("mouseup",d),i.push(function(){u.off("mousedown",l),u.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,n=[];e.parentNode;){if(e===document.body)return n;for(var r=e.parentNode.children,i=0;i<r.length;i++)e===r[i]||(t=r[i],-1!==["SCRIPT","STYLE"].indexOf(t.nodeName))||r[i].hasAttribute("aria-live")||n.push(r[i]);e=e.parentNode}return n}(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),function(){if(n.focusOnOpen){var e=h.findFocusTarget(t)||t[0].querySelector(".dialog-close, md-dialog-actions button:last-child")||r;e.focus()}}()});var i,o,a},onShowing:function(e,t,n,r){if(r){var i=r.htmlContent||n.htmlContent||"",o=r.textContent||n.textContent||"";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),E&&(E(),E=null);return n.$destroy?i():(r=n,r.reverseAnimate().then(function(){r.contentElement&&r.clearAnimate()})).then(i);var r;function i(){ge.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=g.startSymbol(),i=g.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)}}}}e.$inject=["$$rAF","$mdTheming","$mdDialog"],t.$inject=["$$interimElementProvider"],ge.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"],ge.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){function e(o){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(e,t){var n,r=e.children(),i=o.prefixer().hasAttribute(r,"ng-repeat");n=e.find("md-button"),ge.forEach(n,function(e){e.setAttribute("tabindex",-1)}),i?r.addClass("md-fab-action-item"):r.wrap('<div class="md-fab-action-item">')}}}e.$inject=["$mdUtil"],ge.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}(),function(){function e(t,o,a,s,c,u){var l,d=this,e=0;function n(e){var t,n,r,i,o;"click"==e.type&&((o=(t=e).target?(n=t.target,s.getClosest(n,"button")||s.getClosest(n,"md-button")):null)&&!o.disabled&&(r=t.target,s.getClosest(r,"md-fab-trigger")&&d.toggle()),i=t.target,s.getClosest(i,"md-fab-actions")&&d.close()),"focusout"!=e.type||l||(l=u(function(){d.close()},100,!1)),"focusin"==e.type&&l&&(u.cancel(l),l=null)}function f(){d.currentActionIndex=-1}function h(){0<o[0].scrollHeight?a.addClass(o,"_md-animations-ready").then(function(){o.removeClass("md-animations-waiting")}):e<10&&(u(h,100),e+=1)}function m(){o.off("keydown",g),ge.element(document).off("click touchend",p)}function p(e){if(e.target){var t=s.getClosest(e.target,"md-fab-trigger"),n=s.getClosest(e.target,"md-fab-actions");t||n||d.close()}}function g(e){switch(e.which){case c.KEY_CODE.ESCAPE:return d.close(),e.preventDefault(),!1;case c.KEY_CODE.LEFT_ARROW:return o=e,"left"===d.direction?b(o):v(o),!1;case c.KEY_CODE.UP_ARROW:return i=e,"down"===d.direction?v(i):b(i),!1;case c.KEY_CODE.RIGHT_ARROW:return r=e,"left"===d.direction?v(r):b(r),!1;case c.KEY_CODE.DOWN_ARROW:return n=e,"up"===d.direction?v(n):b(n),!1;case c.KEY_CODE.TAB:return(t=e).shiftKey?v(t):b(t),!1}var t,n,r,i,o}function v(e){r(e,-1)}function b(e){r(e,1)}function r(e,t){var n=y()[0].querySelectorAll(".md-fab-action-item"),r=d.currentActionIndex;d.currentActionIndex=d.currentActionIndex+t,d.currentActionIndex=Math.min(n.length-1,d.currentActionIndex),d.currentActionIndex=Math.max(0,d.currentActionIndex),(e.which!==c.KEY_CODE.TAB||r!==d.currentActionIndex)&&(ge.element(n[d.currentActionIndex]).children()[0].focus(),e.preventDefault(),e.stopImmediatePropagation())}function y(){return o.find("md-fab-actions")}d.open=function(){t.$evalAsync("ctrl.isOpen = true")},d.close=function(){t.$evalAsync("ctrl.isOpen = false"),o.find("md-fab-trigger")[0].focus()},d.toggle=function(){t.$evalAsync("ctrl.isOpen = !ctrl.isOpen")},d.$onInit=function(){var e,r,i;d.direction=d.direction||"down",d.isOpen=d.isOpen||!1,f(),o.addClass("md-animations-waiting"),e=["click","focusin","focusout"],ge.forEach(e,function(e){o.on(e,n)}),t.$on("$destroy",function(){ge.forEach(e,function(e){o.off(e,n)}),m()}),t.$watch("ctrl.direction",function(e,t){a.removeClass(o,"md-"+t),a.addClass(o,"md-"+e),f()}),t.$watch("ctrl.isOpen",function(e){f(),r&&i||(r=o.find("md-fab-trigger"),i=y()),e?(o.on("keydown",g),s.nextTick(function(){ge.element(document).on("click touchend",p)})):m();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)}),h()},1===ge.version.major&&ge.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],ge.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"),u=t.querySelector("md-fab-trigger"),n=t.querySelector("._md-css-variables"),i=parseInt(j.getComputedStyle(n).zIndex);ge.forEach(r,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=c.isOpen?1:0,n.zIndex=r.length-t+i}),u.style.zIndex=i+r.length+1,c.isOpen||ge.forEach(r,function(e,t){var n,r,i=e.style,o=(u.clientHeight-e.clientHeight)/2,a=(u.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);ge.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)}}}ge.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:"ctrl",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"),u=e.find("md-fab-actions").children();if(a&&o){var l=j.getComputedStyle(a).getPropertyValue("background-color"),d=r.offsetWidth,f=(r.offsetHeight,d/a.offsetWidth*2);o.style.backgroundColor=l,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("+f+")",o.style.transitionDelay="0ms",c&&(c.style.transitionDelay=".3s"),ge.forEach(u,function(e,t){e.style.transitionDelay=25*(u.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"),ge.forEach(u,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()}}}ge.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:"ctrl",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(f,h,b,y,$){return{restrict:"E",controller:t,scope:{mdOnLayout:"&"},link:function(o,a,m,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=ge.element(e).controller("mdGridTile");return{row:parseInt(y.getResponsiveAttribute(t.$attrs,"md-rowspan"),10)||1,col:parseInt(y.getResponsiveAttribute(t.$attrs,"md-colspan"),10)||1}})),colCount:function(){var e=parseInt(y.getResponsiveAttribute(m,"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:l(),rowHeight:function(){var e=y.getResponsiveAttribute(m,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(l()){case"fixed":return d(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}(),gutter:d(y.getResponsiveAttribute(m,"md-gutter")||1)};var t;if(!e&&ge.equals(i,s))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=v({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),u=p({share:c,gutterShare:a,gutter:n});o.height="",o.paddingBottom=v({unit:u,span:t,gutter:n})}return o}(i.colCount,n,i.gutter,i.rowMode,i.rowHeight)},tiles:e.map(function(e,t){return{element:ge.element(r[t]),style:function(e,t,n,r,i,o,a){var s=1/n*100,c=(n-1)/n,u=p({share:s,gutterShare:c,gutter:i}),l=$.isRtl(m)?{right:g({unit:u,offset:e.col,gutter:i}),width:v({unit:u,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{left:g({unit:u,offset:e.col,gutter:i}),width:v({unit:u,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(o){case"fixed":l.top=g({unit:a,offset:e.row,gutter:i}),l.height=v({unit:a,span:t.row,gutter:i});break;case"ratio":var d=s/a,f=p({share:d,gutterShare:c,gutter:i});l.paddingTop=v({unit:f,span:t.row,gutter:i}),l.marginTop=g({unit:f,offset:e.row,gutter:i});break;case"fit":var h=(r-1)/r;f=p({share:d=1/r*100,gutterShare:h,gutter:i}),l.top=g({unit:f,offset:e.row,gutter:i}),l.height=v({unit:f,span:t.row,gutter:i})}return l}(e.position,e.spans,i.colCount,n,i.gutter,i.rowMode,i.rowHeight)}})}}).reflow().performance();o.mdOnLayout({$event:{performance:n}}),s=i};var s,n=ge.bind(t,t.invalidateLayout),r=function(){for(var e in h.MEDIA)y(e),y.getQuery(h.MEDIA[e]).addListener(n);return y.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],m,i)}();function i(e){null==e?t.invalidateLayout():y(e)&&t.invalidateLayout()}o.$on("$destroy",function(){for(var e in t.layoutDelegate=ge.noop,r(),h.MEDIA)y.getQuery(h.MEDIA[e]).removeListener(n)});var c=f.startSymbol(),u=f.endSymbol();function e(e){return c+e+u}var p=f(e("share")+"% - ("+e("gutter")+" * "+e("gutterShare")+")"),g=f("calc(("+e("unit")+" + "+e("gutter")+") * "+e("offset")+")"),v=f("calc(("+e("unit")+") * "+e("span")+" + ("+e("span")+" - 1) * "+e("gutter")+")");function l(){var e=y.getResponsiveAttribute(m,"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 d(e){return/\D$/.test(e)?e:e+"px"}}}}function t(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=ge.noop}function n(c){var u=t;return e.animateWith=function(e){u=ge.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=l(n+1))?o=r+1:(n=r=0,c());return u(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++,u(o=0,i,-1)}function u(e,t,n){for(var r=e;r<e+t;r++)s[r]=Math.max(s[r]+n,0)}function l(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||u)(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,ge.bind(r,r.invalidateLayout));r.invalidateTiles(),e.$on("$destroy",function(){t[0].$$mdDestroyed=!0,i(),r.invalidateLayout()}),ge.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","$mdUtil"],r.$inject=["$mdMedia"],ge.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_(ge.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),ge.module("material.components.icon",["material.core"]),ge.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",function(s,c,u,e){return{restrict:"E",link:function(e,t,n){c(t);var r=n.mdFontIcon,i=s.fontSet(n.mdFontSet);n.mdSvgIcon||n.mdSvgSrc||(n.mdFontIcon&&t.addClass("md-font "+n.mdFontIcon),t.addClass(i)),n.$observe("mdFontIcon",a),n.$observe("mdFontSet",a),n.role||(u.expect(t,"role","img"),n.role="img"),t[0].hasAttribute("aria-label")&&""===n.ariaLabel&&t.attr("aria-hidden",!0),"img"!==n.role||n.ariaHidden||u.hasAriaLabel(t)||(t[0].hasAttribute("alt")&&""===n.alt?t.attr("aria-hidden",!0):n.alt?u.expect(t,"aria-label",n.alt):u.parentHasAriaLabel(t,2)?u.expect(t,"aria-hidden","true"):n.mdFontIcon||n.mdSvgIcon||t.text()?u.expect(t,"aria-label",n.mdFontIcon||n.mdSvgIcon||t.text()):u.expect(t,"aria-hidden","true"));var o=n.$normalize(n.$attr.mdSvgIcon||n.$attr.mdSvgSrc||"");function a(){if(!n.mdSvgIcon&&!n.mdSvgSrc){n.mdFontIcon&&(t.removeClass(r),t.addClass(n.mdFontIcon),r=n.mdFontIcon);var e=s.fontSet(n.mdFontSet);i!==e&&(t.removeClass(i),t.addClass(e),i=e)}}o&&n.$observe(o,function(e){t.empty(),e&&s(e).then(function(e){t.empty(),t.append(e)})})}}}]),function(){a.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],ge.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,l,t){var r={},u={},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;ge.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(ge.isUndefined(t)||!t||!t.length)return a.defaultFontSet;var n=t;return ge.forEach(a.fontSets,function(e){e.alias===t&&(n=e.fontSet||n)}),n},e;function e(e){return e=e||"",ge.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]?m:p)(e).then(h(e)))}function i(e){var n,r,i,o,a=e.clone(),s=l.nextUid(),c=["clip-path","color-profile","cursor","fill","filter","href","marker-start","marker-mid","marker-end","mask","stroke","style","vector-effect"],u=a.innerHTML===ve;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),ge.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+=", ");ge.forEach(a.querySelectorAll(r),function(e){f(t,e,u,s)}),ge.forEach(a.querySelectorAll("style"),function(e){f(t,e,u,s)}),ge.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 f(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=l.getOuterHTML(t)).replace("url(#"+e.id+")","url(#"+e.id+o+")"),t.textContent=ge.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,ge.isDefined(t.element)&&ge.isDefined(t.config)?e:new v(e,a[n])),i(r[n])}}function m(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(ge.element(i)[0])):(r=e,s(function(t,n){o(r,!0).then(function(e){u[r]||(u[r]=ge.element("<div>").append(e)[0].querySelector("svg")),t(u[r])},function(e){var t=ge.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?ge.element('<svg xmlns="http://www.w3.org/2000/svg">').html(e.innerHTML)[0]:ge.element('<svg xmlns="http://www.w3.org/2000/svg">').append(l.getInnerHTML(e))[0],n&&e.setAttribute("viewBox",n)}e&&"svg"!==e.tagName.toLowerCase()&&(e=ge.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"],l.$inject=["$mdUtil"],o.$inject=["$document","$timeout"],d.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],f.$inject=["$$AnimateRunner","$animateCss","$mdUtil"],h.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var e=ge.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,u.some(function(e){return i[e]})))&&t.toggleClass("md-auto-hide",!1);var i},require:"^^?mdInputContainer"}}).directive("ngMessage",l).directive("ngMessageExp",l).directive("mdSelectOnFocus",o).animation(".md-input-invalid",d).animation(".md-input-messages-animation",f).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;t.addClass("md-auto-horizontal-margin"),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,l,y,$){return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:function(d,f,h,e){var m=e[0],p=!!e[1],g=e[1]||v.fakeNgModel(),t=e[2],n=ge.isDefined(h.readonly),r=v.parseAttributeBoolean(h.mdNoAsterisk),i=f[0].tagName.toLowerCase();if(!m)return;{if("hidden"===h.type)return void f.attr("aria-hidden","true");if(m.input){if(m.input[0].contains(f[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}}m.input=f,m.label&&h.$observe("required",function(e){m.label&&m.label.toggleClass("md-required",e&&!r)});var o=ge.element('<div class="md-errors-spacer">');f.after(o);var a=ge.isString(h.placeholder)?h.placeholder.trim():"";m.label||a.length||l.expect(f,"aria-label");f.addClass("md-input"),f.attr("id")||f.attr("id","input_"+v.nextUid());"input"===i&&"number"===h.type&&h.min&&h.max&&!h.step?f.attr("step","any"):"textarea"===i&&function(){var t=!h.hasOwnProperty("mdNoAutogrow");if(function(){if(!h.hasOwnProperty("mdNoResize")){var e=ge.element('<div class="md-resize-handle"></div>'),t=!1,n=0,r=m.element,i=$.register(e,"drag",{horizontal:!1});f.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(f.css("height"))||f.prop("offsetHeight")}function a(e){t&&(e.preventDefault(),u(),r.addClass("md-input-resized"))}function s(e){t&&f.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=f[0];y(function(){v.nextTick(r)},10,!1),f.on("input",r),p&&g.$formatters.push(i);o||f.attr("rows",1);function r(){f.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=f[0].style.padding||"";s=f.css("padding",0).prop("offsetHeight"),f[0].style.padding=r}if(o&&s&&(n=Math.max(n,s*o)),a&&s){var i=s*a;i<n?(f.attr("md-no-autogrow",""),n=i):f.removeAttr("md-no-autogrow")}s&&f.attr("rows",Math.round(n/s)),f.css("height",n+"px").removeClass("md-no-flex")}function i(e){return v.nextTick(r),e}function u(){if(t&&(t=!1,ge.element(b).off("resize",r),n&&n(),f.attr("md-no-autogrow","").off("input",r),p)){var e=g.$formatters.indexOf(i);-1<e&&g.$formatters.splice(e,1)}}if(ge.element(b).on("resize",r),d.$on("$destroy",u),h.hasOwnProperty("mdDetectHidden")){var e=(l=!1,function(){var e=0===c.offsetHeight;!1===e&&!0===l&&r(),l=e});d.$watch(function(){return v.nextTick(e,!1),!0})}var l}();p||u();var s=m.isErrorGetter||function(){return g.$invalid&&(g.$touched||t&&t.$submitted)};d.$watch(s,m.setInvalid),h.ngValue&&h.$observe("value",u);g.$parsers.push(c),g.$formatters.push(c),f.on("input",u),n||f.on("focus",function(e){v.nextTick(function(){m.setFocused(!0)})}).on("blur",function(e){v.nextTick(function(){m.setFocused(!1),u()})});function c(e){return m.setHasValue(!g.$isEmpty(e)),e}function u(){m.setHasValue(0<f.val().length||(f[0].validity||{}).badInput)}d.$on("$destroy",function(){m.setFocused(!1),m.setHasValue(!1),m.input=null})}}}function r(h,m){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],u=!ge.isDefined(t.ngTrim)||m.parseAttributeBoolean(t.ngTrim),l="password"===t.type;function d(e){return(e=u&&!l&&ge.isString(e)?e.trim():e)!==ve&&null!==e||(e=""),String(e).length}function f(){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(!ge.isNumber(i)||i<0)return!0;f();var n=r.val()||t;return n!==ve&&null!==n||(n=""),n=u&&!l&&ge.isString(n)?n.trim():n,String(n).length<=i},s.$isEmpty=function(e){return 0===d(e)},m.nextTick(function(){a=ge.element(c.element[0].querySelector(".md-errors-spacer")),o=ge.element('<div class="md-char-counter">'),a.append(o),t.$observe("ngTrim",function(e){u=!ge.isDefined(e)||m.parseAttributeBoolean(e)}),e.$watch(t.mdMaxlength,function(e){ge.isNumber(e)&&0<e?(o.parent().length||h.enter(o,a),f()):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=ge.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",f).service("mdInputMessageAnimation",h);var a,s,c,u=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];function l(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 y(e,t,n),{addClass:function(e,t,n){m(e,n)}}}function f(e,t,n){return y(e,t,n),{enter:function(e,t){m(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?m(e,n):n()}}}function h(e,t,n,r){return y(e,t,n),{enter:function(e,t){g(e).start().done(t)},leave:function(e,t){v(e).start().done(t)}}}function m(e,t){var n,r=[],i=b(e),o=i.children();0!=i.length&&0!=o.length?(ge.forEach(o,function(e){n=g(ge.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?(ge.forEach(o,function(e){n=v(ge.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")?ge.element(c.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):ge.element(e[0].querySelector(".md-input-messages-animation"))}function y(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(d,f,h,m){var p=["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)c("button");else if(!o.hasClass("md-no-proxy")){for(var s=0;s<p.length;++s)if(null!==(i=o[0].querySelector(p[s]))){e=!0;break}e?c("div"):o.addClass("md-no-proxy")}function c(e){if("div"===e)(r=ge.element('<div class="md-no-style md-list-item-inner">')).append(o.contents()),o.addClass("md-proxy-focus");else{r=ge.element('<div class="md-button md-no-style">   <div class="md-list-item-inner"></div></div>');var t=ge.element('<md-button class="md-no-style"></md-button>');if(u(o[0],t[0]),!t.attr("aria-label")){t.attr("aria-label",d.getText(o));var n=r[0].querySelector(".md-list-item-inner");n&&n.setAttribute("aria-hidden","true")}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=h.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(h.prefixer(e))),ge.forEach(r,function(e){t.hasAttribute(e)&&(n.setAttribute(e,t.getAttribute(e)),t.removeAttribute(e))})}function l(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=ge.element('<div class="md-secondary-container">'),ge.forEach(n,function(e){!function(e,t){if(e&&("MD-BUTTON"!==(r=e.nodeName.toUpperCase())&&"BUTTON"!==r)&&e.hasAttribute("ng-click")){d.expect(e,"aria-label");var n=ge.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||l(e)&&(a.ngClick||(i=e,-1===p.indexOf(i.nodeName.toLowerCase())))||ge.element(e).removeClass("md-secondary"),o.addClass("md-with-secondary"),t.append(e)}(e,t)}),r.append(t),function(){for(var e,t=["md-switch","md-checkbox"],n=0;n<t.length;++n)if((e=o.find(t[n])[0])&&!e.hasAttribute("aria-label")){var r=o.find("p")[0];if(r||(r=o.find("span")[0]),!r)return;e.setAttribute("aria-label","Toggle "+r.textContent)}}(),e&&"MD-MENU"===i.nodeName&&function(){var e=ge.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);l(r[0])||r.attr("ng-click","$mdMenu.open($event)");r.attr("aria-label")||r.attr("aria-label","Open List Menu")}(),function(e,o,t,n){o.addClass("_md");var r=[],i=o[0].firstElementChild,a=o.hasClass("_md-button-wrap")?i.firstElementChild:i,s=a&&l(a),c=o.hasClass("md-no-proxy");i&&i.children&&!s&&!c&&ge.forEach(p,function(e){ge.forEach(i.querySelectorAll(e+":not(.md-secondary)"),function(e){r.push(e)})}),(1===r.length||s)&&(o.addClass("md-clickable"),s||n.attachRipple(e,ge.element(o[0].querySelector(".md-no-style")))),r.length&&ge.forEach(r,function(t){t=ge.element(t),e.mouseActive=!1,t.on("mousedown",function(){e.mouseActive=!0,m(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&o.addClass("md-focused"),t.on("blur",function e(){o.removeClass("md-focused"),t.off("blur",e)})})});var u=function(e){if("INPUT"!==e.target.nodeName&&"TEXTAREA"!==e.target.nodeName&&!e.target.isContentEditable){var t=e.which||e.keyCode;t===f.KEY_CODE.SPACE&&a&&(a.click(),e.preventDefault(),e.stopPropagation())}};s||r.length||a&&a.addEventListener("keypress",u);o.off("click"),o.off("keypress"),o.off("keydown"),1===r.length&&a&&o.children().eq(0).on("click",function(t){if(!function(e){var t=["md-slider"],n=h.getEventPath(e);if(!n||0===n.length)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var r=n.indexOf(o.children()[0]),i=0;i<r;i++)if(-1!==t.indexOf(n[i].tagName.toLowerCase()))return!0;return!1}(t)){var e=h.getClosest(t.target,"BUTTON");!e&&a.contains(t.target)&&ge.forEach(r,function(e){t.target===e||e.contains(t.target)||("MD-MENU"===e.nodeName&&(e=e.children[0]),ge.element(e).triggerHandler("click"))})}});e.$on("$destroy",function(){a&&a.removeEventListener("keypress",u)})}}}}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"],ge.module("material.components.list",["material.core"]).controller("MdListController",n).directive("mdList",e).directive("mdListItem",t)}(),ge.module("material.components.menu",["material.core","material.components.backdrop"]),function(){function e(i,t,o,a,s,r,e,n,c){var u,l,d=s.prefixer(),f=this;this.nestLevel=parseInt(t.mdNestLevel,10)||0,this.init=function(e,t){t=t||{},u=e,(l=o[0].querySelector(d.buildSelector(["ng-click","ng-mouseenter"]))).setAttribute("aria-expanded","false"),this.isInMenuBar=t.isInMenuBar,this.mdMenuBarCtrl=t.mdMenuBarCtrl,this.nestedMenus=s.nodesToArray(u[0].querySelectorAll(".md-nested-menu")),u.on("$mdInterimElementRemove",function(){f.isOpen=!1,s.nextTick(function(){f.onIsOpenChanged(f.isOpen)})}),s.nextTick(function(){f.onIsOpenChanged(f.isOpen)});var n="menu_container_"+s.nextUid();u.attr("id",n),ge.element(l).attr({"aria-owns":n,"aria-haspopup":"true"}),a.$on("$destroy",ge.bind(this,function(){this.disableHoverListener(),i.destroy()})),u.on("$destroy",function(){i.destroy()})};var h,m,p=[];this.enableHoverListener=function(){p.push(e.$on("$mdMenuOpen",function(e,t){u[0].contains(t[0])&&(f.currentlyOpenMenu=t.controller("mdMenu"),f.isAlreadyOpening=!1,f.currentlyOpenMenu.registerContainerProxy(f.triggerContainerProxy.bind(f)))})),p.push(e.$on("$mdMenuClose",function(e,t){u[0].contains(t[0])&&(f.currentlyOpenMenu=ve)})),(m=ge.element(s.nodesToArray(u[0].children[0].children))).on("mouseenter",f.handleMenuItemHover),m.on("mouseleave",f.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;p.length;)p.shift()();m&&m.off("mouseenter",f.handleMenuItemHover),m&&m.off("mouseleave",f.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!f.isAlreadyOpening){var t=e.target.querySelector("md-menu")||s.getClosest(e.target,"MD-MENU");h=r(function(){if(t&&(t=ge.element(t).controller("mdMenu")),f.currentlyOpenMenu&&f.currentlyOpenMenu!=t){var e=f.nestLevel+1;f.currentlyOpenMenu.close(!0,{closeTo:e}),f.isAlreadyOpening=!!t,t&&t.open()}else t&&!t.isOpen&&t.open&&(f.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=ve)},this.open=function(e){e&&e.stopPropagation(),e&&e.preventDefault(),f.isOpen||(f.enableHoverListener(),f.isOpen=!0,s.nextTick(function(){f.onIsOpenChanged(f.isOpen)}),(l=l||(e?e.target:o[0])).setAttribute("aria-expanded","true"),a.$emit("$mdMenuOpen",o),i.show({scope:a,mdMenuCtrl:f,nestLevel:f.nestLevel,element:u,target:l,preserveElement:!0,parent:"body"}).finally(function(){l.setAttribute("aria-expanded","false"),f.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(u.attr("aria-hidden","false"),o[0].classList.add("md-open"),ge.forEach(f.nestedMenus,function(e){e.classList.remove("md-open")})):(u.attr("aria-hidden","true"),o[0].classList.remove("md-open")),a.$mdMenuIsOpen=f.isOpen},this.focusMenuContainer=function(){var e=u[0].querySelector(d.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=u[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 f.isOpen?i.destroy():n.when(!1)},this.close=function(e,t){if(f.isOpen){f.isOpen=!1,s.nextTick(function(){f.onIsOpenChanged(f.isOpen)});var n=ge.extend({},t,{skipFocus:e});if(a.$emit("$mdMenuClose",o,n),i.hide(null,t),!e){var r=f.restoreFocusTo||o.find("button")[0];r instanceof ge.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}}e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],ge.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&&ge.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=r[1],s=ge.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),c=t.children()[1];t.addClass("_md"),c.hasAttribute("role")||c.setAttribute("role","menu"),s.append(c),t.on("$destroy",function(){s.remove()}),t.append(s),s[0].style.display="none",i.init(s,{isInMenuBar:o,mdMenuBarCtrl:a})}}e.$inject=["$mdUtil"],ge.module("material.components.menu").directive("mdMenu",e)}(),function(){function e(e){t.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var M=8;return e("$mdMenu").setDefaults({methods:["target"],options:t});function t(w,u,l,_,C,d,f,h,m,p){var x=w.prefixer(),g=w.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");ge.extend(s,{alreadyOpen:!1,isRemoved:!1,target:ge.element(s.target),parent:ge.element(s.parent),menuContentEl:ge.element(n[0].querySelector("md-menu-content"))})})(),s.menuContentEl[0]?u.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=f.throttle(function(){if(!s.isRemoved){var e=b(r,i);r.css(g.toCss(e))}}),C.addEventListener("resize",o),C.addEventListener("orientationchange",o),function(){C.removeEventListener("resize",o),C.removeEventListener("orientationchange",o)}),s.hideBackdrop=(e=a,t=s,t.nestLevel?ge.noop:(t.disableParentScroll&&!w.getClosest(t.target,"MD-DIALOG")?t.restoreScroll=w.disableScrollAround(t.element,t.parent):t.disableParentScroll=!1,t.hasBackdrop&&(t.backdrop=w.createBackdrop(e,"md-menu-backdrop md-click-catcher"),m.enter(t.backdrop,_[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 ge.noop;s.menuContentEl.on("keydown",i),s.menuContentEl[0].addEventListener("click",o,!0);var e=s.menuContentEl[0].querySelector(x.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&&!r.firstElementChild.getAttribute("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 l.KEY_CODE.ESCAPE:s.nestLevel?s.mdMenuCtrl.close():s.mdMenuCtrl.close(!1,{closeAll:!0}),t=!0;break;case l.KEY_CODE.TAB:s.mdMenuCtrl.close(!1,{closeAll:!0}),t=!1;break;case l.KEY_CODE.UP_ARROW:v(e,s.menuContentEl,s,-1)||s.nestLevel||s.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case l.KEY_CODE.DOWN_ARROW:v(e,s.menuContentEl,s,1)||s.nestLevel||s.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case l.KEY_CODE.LEFT_ARROW:s.nestLevel?s.mdMenuCtrl.close():s.mdMenuCtrl.triggerContainerProxy(e),t=!0;break;case l.KEY_CODE.RIGHT_ARROW:var n=w.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=w.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(x.hasAttribute(e,n))return!0;return!1}}}(),s.cleanupBackdrop=s.backdrop?(s.backdrop.on("click",c),function(){s.backdrop.off("click",c)}):ge.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=w.getClosest(e.target,"MD-MENU-ITEM"),a=w.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(),_[0].activeElement==e}function b(e,t){var n,r=e[0],i=e[0].firstElementChild,o=i.getBoundingClientRect(),a=_[0].body.getBoundingClientRect(),s=C.getComputedStyle(i),c=t.target[0].querySelector(x.buildSelector("md-menu-origin"))||t.target[0],u=c.getBoundingClientRect(),l={left:a.left+M,top:Math.max(a.top,0)+M,bottom:Math.max(a.bottom,Math.max(a.top,0)+a.height)-M,right:a.right-M},d={top:0,left:0,right:0,bottom:0},f={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"!=C.getComputedStyle(i.children[e]).display)return i.children[e]}())&&(d=(n=(n=n.firstElementChild||n).querySelector(x.buildSelector("md-menu-align-target"))||n).getBoundingClientRect(),f={top:parseFloat(r.style.top||0),left:parseFloat(r.style.left||0)});var m={},p="top ";switch(h.top){case"target":m.top=f.top+u.top-d.top;break;case"cascade":m.top=u.top-parseFloat(s.paddingTop)-c.style.top;break;case"bottom":m.top=u.top+u.height;break;default:throw new Error('Invalid target mode "'+h.top+'" specified for md-menu on Y axis.')}var g=w.isRtl(e);switch(h.left){case"target":m.left=f.left+u.left-d.left,p+=g?"right":"left";break;case"target-left":m.left=u.left,p+="left";break;case"target-right":m.left=u.right-o.width+(o.right-d.right),p+="right";break;case"cascade":var v=g?u.left-o.width<l.left:u.right+o.width<l.right;m.left=v?u.right-c.style.left:u.left-c.style.left-o.width,p+=v?"left":"right";break;case"right":g?(m.left=u.right-u.width,p+="left"):(m.left=u.right-o.width,p+="right");break;case"left":g?(m.left=u.right-o.width,p+="right"):(m.left=u.left,p+="left");break;default:throw new Error('Invalid target mode "'+h.left+'" specified for md-menu on X axis.')}var b,y=t.mdMenuCtrl.offsets();m.top+=y.top,m.left+=y.left,(b=m).top=Math.max(Math.min(b.top,l.bottom-r.offsetHeight),l.top),b.left=Math.max(Math.min(b.left,l.right-r.offsetWidth),l.left);var $=Math.round(100*Math.min(u.width/r.offsetWidth,1))/100,E=Math.round(100*Math.min(u.height/r.offsetHeight,1))/100;return{top:Math.round(m.top),left:Math.round(m.left),transform:t.alreadyOpen?ve:w.supplant("scale({0},{1})",[$,E]),transformOrigin:p}}}function i(e){return e instanceof ge.element&&(e=e[0]),e}}e.$inject=["$$interimElementProvider"],ge.module("material.components.menu").provider("$mdMenu",e)}(),ge.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"]),function(){e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],ge.module("material.components.menuBar").controller("MenuBarController",e);var u=["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;ge.forEach(u,function(e){c[e]=ge.bind(c,c[e])})}e.prototype.init=function(){var a=this.$element,s=this.$mdUtil,e=this.$scope,c=this,t=[];a.on("keydown",this.handleKeyDown),this.parentToolbar=s.getClosest(a,"MD-TOOLBAR"),t.push(this.$rootScope.$on("$mdMenuOpen",function(e,t){-1!=c.getMenus().indexOf(t[0])&&(a[0].classList.add("md-open"),t[0].classList.add("md-open"),c.currentlyOpenMenu=t.controller("mdMenu"),c.currentlyOpenMenu.registerContainerProxy(c.handleKeyDown),c.enableOpenOnHover())})),t.push(this.$rootScope.$on("$mdMenuClose",function(e,t,n){var r=c.getMenus();-1!=r.indexOf(t[0])&&(a[0].classList.remove("md-open"),t[0].classList.remove("md-open"));var i=ge.element(t[0]).controller("mdMenu");if(i.isInMenuBar&&i.mdMenuBarCtrl===c){for(var o=t[0];o&&-1==r.indexOf(o);)o=s.getClosest(o,"MD-MENU",!0);o&&(n.skipFocus||o.querySelector("button:not([disabled])").focus(),c.currentlyOpenMenu=ve),c.disableOpenOnHover(),c.setKeyboardMode(!0)}})),e.$on("$destroy",function(){for(c.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(){ge.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),ge.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"),ge.element(this.parentToolbar).off("click",this.handleParentClick)),ge.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var t=ge.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=ve,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=ge.element(n).controller("mdMenu"),this.scheduleOpenMenu(r)),t=!0;break;case i.RIGHT_ARROW:n=this.focusMenu(1),a&&(r=ge.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&&ge.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)&&ge.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"),ge.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"));ge.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"],ge.module("material.components.menuBar").directive("mdMenuBar",e)}(),ge.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"],ge.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];ge.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=ge.bind(this,this.handleClick);var o=this.iconEl,a=ge.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(l,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))u("role","menuitem",r[0].querySelector("md-button, button, a"));else{var a=r[0].textContent,s=ge.element('<md-button type="button"></md-button>'),c='<md-icon md-svg-src="'+d.mdChecked+'"></md-icon>';s.html(a),s.attr("tabindex","0"),ge.isDefined(e.mdPreventMenuClose)&&s.attr("md-prevent-menu-close",e.mdPreventMenuClose),r.html(""),r.append(ge.element(c)),r.append(s),r.addClass("md-indent").removeClass(o),u("role","checkbox"===i?"menuitemcheckbox":"menuitemradio",s),t="ng-disabled",n=l.prefixer(t),ge.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 u(e,t,n){(n=n||r)instanceof ge.element&&(n=n[0]),n.hasAttribute(e)||n.setAttribute(e,t)}}}}e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],ge.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(o,a,s,c){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){function i(){r.width!==s.innerWidth&&(r.updateSelectedTabInkBar(),r.width=s.innerWidth,e.$digest())}r.width=s.innerWidth,ge.element(s).on("resize",c.debounce(i,300)),e.$on("$destroy",function(){ge.element(s).off("resize",i)}),a(t),r.navBarAriaLabel||o.expectAsync(t,"aria-label",ge.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(l,e,d,f){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!==ve&&null!==i)n='ng-click="ctrl.mdNavClick()"';else if(o!==ve&&null!==o)n='ng-href="{{ctrl.mdNavHref}}"';else{if(a===ve||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,u;e(function(){if(s=o[0],c=o[1],u=ge.element(r[0].querySelector("._md-nav-button")),s.name||(s.name=ge.element(r[0].querySelector("._md-nav-button-text")).text().trim()),u.on("keydown",function(e){c.onKeydown(e)}),u.on("focus",function(){s._focused=!0}),u.on("click",function(){c.mdSelectedNavItem=s.name,n.$apply()}),s.disabled=d.parseAttributeBoolean(i.disabled,!1),"MutationObserver"in f){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||l.expectWithText(u,"aria-label")}),n.$on("destroy",function(){u.off("keydown"),u.off("focus"),u.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.isFocused=!1}e.$inject=["$mdAria","$mdTheming","$window","$mdUtil"],t.$inject=["$element","$scope","$timeout","$mdConstant"],n.$inject=["$mdAria","$$rAF","$mdUtil","$window"],r.$inject=["$element"],ge.module("material.components.navBar",["material.core"]).controller("MdNavBarController",t).directive("mdNavBar",e).controller("MdNavItemController",r).directive("mdNavItem",n),t.prototype._initTabs=function(){this._inkbar=ge.element(this._navBarEl.querySelector("md-nav-ink-bar"));var n=this;this._$timeout(function(){n._updateTabs(n.mdSelectedNavItem,null)}),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=this._getTabByName(e),s=this._getTabByName(t);s&&s.setSelected(!1),a&&(a.setSelected(!0),o=r.indexOf(a)),this._$timeout(function(){n._updateInkBarStyles(a,o),a&&s&&!i&&n._moveFocus(s,a)})}},t.prototype._updateInkBarStyles=function(e,t){if(this._inkbar.css({display:t<0?"none":""}),e){var n=e.getButtonEl(),r=n.offsetLeft,i=n.offsetWidth,o=this._navBarEl.getBoundingClientRect().width,a=i/o,s=r/o*100;this._inkbar.css({transform:"translateX("+s+"%) scaleX("+a+")"})}},t.prototype.updateSelectedTabInkBar=function(){this._updateInkBarStyles(this._getSelectedTab())},t.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return ge.element(e).controller("mdNavItem")});return e.indexOf(ve)?e:[]},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,r=this._getTabs();for(null==t&&(t=0),n=t;n<r.length;n++)if(e(r[n]))return r[n];return null},t.prototype._findTabReverse=function(e,t){var n=this._getTabs();t!==ve&&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.isFocused&&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.isFocused}},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.isFocused=e)&&this.getButtonEl().focus()},r.prototype.hasFocus=function(){return this.isFocused},r.prototype._isEnabled=function(){return!this._$element.attr("disabled")}}(),function(){c.$inject=["presets","$rootElement","$rootScope","$injector","$window"],ge.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 c(i,e,t,n,r)}]}});var o=80,a="_md-panel-hidden",n=ge.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 ge.copy(i)}function r(){i={}}function s(e){return ge.isString(e)&&(e=[e]),e}function c(e,t,n,r,i){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:ge.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=m.xPosition,this.yPosition=m.yPosition,this.interceptorTypes=u.interceptorTypes,this.closeReasons=u.closeReasons,this.absPosition=m.absPosition}function u(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=ve,this.panelEl=ve,this.innerWrapper=ve,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap=ve,this._bottomFocusTrap=ve,this._backdropRef=ve,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function m(e){this._$window=e.get("$window"),this._isRTL=e.get("$mdUtil").isRtl(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl=ve,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition=ve}function l(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function d(e){var t=ge.isString(e)?document.querySelector(e):e;return ge.element(t)}function f(e,t){if(null!==t&&!ge.isUndefined(t)){for(var n,r=Object.keys(e),i=[],o=0;n=r[o];o++){var a=e[n];if(i.push(a),a===t)return}throw new Error("Panel position only accepts the following values:\n"+i.join(" | "))}}function h(e){return ge.isNumber(e)?e+"px":e}c.prototype.create=function(e,t){if("string"==typeof e?e=this._getPresetByName(e):"object"!=typeof e||!ge.isUndefined(t)&&t||(t=e,e={}),e=e||{},t=t||{},ge.isDefined(t.id)&&this._trackedPanels[t.id]){var n=this._trackedPanels[t.id];return ge.extend(n.config,t),n}this._config=ge.extend({id:t.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,t,e);var r=new u(this._config,this._$injector);return this._trackedPanels[this._config.id]=r,this._config.groupName&&(this._config.groupName=s(this._config.groupName),ge.forEach(this._config.groupName,function(e){r.addToGroup(e)})),this._config.scope.$on("$destroy",ge.bind(r,r.detach)),r},c.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},c.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]},c.prototype.newPanelPosition=function(){return new m(this._$injector)},c.prototype.newPanelAnimation=function(){return new l(this._$injector)},c.prototype.newPanelGroup=function(e,t){return this._groups[e]||(t=t||{},this._groups[e]={panels:[],openPanels:[],maxOpen:0<t.maxOpen?t.maxOpen:1/0}),this._groups[e]},c.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},c.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return 0<t.maxOpen&&t.openPanels.length>t.maxOpen}return!1},c.prototype._closeFirstOpenedPanel=function(e){var t=this._groups[e];t&&t.openPanels.length&&t.openPanels[0].close()},c.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper"><div class="md-panel-inner-wrapper _md-panel-offscreen"><div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div></div>"},c.prototype._wrapContentElement=function(e){var t=ge.element('<div class="md-panel-outer-wrapper"><div class="md-panel-inner-wrapper _md-panel-offscreen"></div></div>');return e.addClass("md-panel _md-panel-offscreen"),t.children().eq(0).append(e),t},u.interceptorTypes={CLOSE:"onClose"},u.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&&(i.config.groupName=s(i.config.groupName),ge.forEach(i.config.groupName,function(e){i._$mdPanel._openCountExceedsMaxOpen(e)&&i._$mdPanel._closeFirstOpenedPanel(e)}))}).then(n).catch(t)})},u.prototype.close=function(o){var a=this;return this._$q(function(r,i){a._callInterceptors(u.interceptorTypes.CLOSE).then(function(){var e=a._done(r,a),t=a._simpleBind(a.detach,a),n=a.config.onCloseSuccess||ge.noop;n=ge.bind(a,n,a,o),a.hide().then(t).then(e).then(n).catch(i)},i)})},u.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||ge.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)})},u.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var r=this,i=r.config.onDomRemoved||ge.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)})},u.prototype.destroy=function(){var t=this;this.config.groupName&&(this.config.groupName=s(this.config.groupName),ge.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=ve},u.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||ge.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&&(i.config.groupName=s(i.config.groupName),ge.forEach(i.config.groupName,function(e){(e=i._$mdPanel._groups[e])&&e.openPanels.push(i)}))}).then(n).catch(t)})},u.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||ge.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&&(i.config.groupName=s(i.config.groupName),ge.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&&d(e).focus()}).catch(t)]).then(n,t)})},u.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=ge.element(r.panelContainer[0].querySelector(".md-panel"));return r.innerWrapper=ge.element(r.panelContainer[0].querySelector(".md-panel-inner-wrapper")),r._compilerCleanup=e.cleanup,d(r.config.attachTo).append(r.panelContainer),r})},u.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,d(n.config.attachTo)),n._configureTrapFocus(),n._addStyles().then(function(){e(n)},t)},t)})},u.prototype._addStyles=function(){var n=this;return this._$q(function(e){n.panelContainer.css("z-index",n.config.zIndex),n.innerWrapper.css("z-index",n.config.zIndex+1);var t=function(){n._setTheming(),n.panelEl.removeClass("_md-panel-offscreen"),n.innerWrapper.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()})},u.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},u.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()},u.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.innerWrapper),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.innerWrapper.removeClass("_md-panel-offscreen"),this.panelContainer.addClass(a)),this.innerWrapper.css(m.absPosition.TOP,t.getTop()),this.innerWrapper.css(m.absPosition.BOTTOM,t.getBottom()),this.innerWrapper.css(m.absPosition.LEFT,t.getLeft()),this.innerWrapper.css(m.absPosition.RIGHT,t.getRight()))},u.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})}},u.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()}},u.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},u.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(e){e()}),this._removeListeners=[]},u.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=d(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(u.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)})}},u.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var t,n=this.config.propagateContainerEvents?ge.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(u.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",e),n.on("mouseup",i),this._removeListeners.push(function(){n.off("mousedown",e),n.off("mouseup",i)})}},u.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=ge.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)})}},u.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)}},u.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},u.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()})})},u.prototype._animateClose=function(){var n=this,r=this.config.animation;return r?this._$q(function(e){var t=function(){n.panelContainer.removeClass("md-panel-is-showing"),n.panelEl.css("transform",""),e(n)};r.animateClose(n.panelEl).then(t,function(){n._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),t()})}):(this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this))},u.prototype.registerInterceptor=function(e,t){var n=null;if(ge.isString(e)?ge.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},u.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},u.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},u.prototype._callInterceptors=function(e){var r=this,i=r._$q;return(r._interceptors&&r._interceptors[e]||[]).reduceRight(function(e,t){var n=t&&ge.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))},u.prototype._simpleBind=function(t,n){return function(e){return t.apply(n,e)}},u.prototype._done=function(e,t){return function(){e(t)}},u.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)},u.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)},u.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},m.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},m.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},m.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},m.viewportMargin=8,m.prototype.absolute=function(){return this._absolute=!0,this},m.prototype._setPosition=function(e,t){if(e===m.absPosition.RIGHT||e===m.absPosition.LEFT)this._left=this._right="";else{if(e!==m.absPosition.BOTTOM&&e!==m.absPosition.TOP){var n=Object.keys(m.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+n+".")}this._top=this._bottom=""}return this["_"+e]=ge.isString(t)?t:"0",this},m.prototype.top=function(e){return this._setPosition(m.absPosition.TOP,e)},m.prototype.bottom=function(e){return this._setPosition(m.absPosition.BOTTOM,e)},m.prototype.start=function(e){var t=this._isRTL?m.absPosition.RIGHT:m.absPosition.LEFT;return this._setPosition(t,e)},m.prototype.end=function(e){var t=this._isRTL?m.absPosition.LEFT:m.absPosition.RIGHT;return this._setPosition(t,e)},m.prototype.left=function(e){return this._setPosition(m.absPosition.LEFT,e)},m.prototype.right=function(e){return this._setPosition(m.absPosition.RIGHT,e)},m.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},m.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},m.prototype.center=function(){return this.centerHorizontally().centerVertically()},m.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=d(e),this},m.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return f(m.xPosition,e),f(m.yPosition,t),this._positions.push({x:e,y:t}),this},m.prototype.withOffsetX=function(e){return this._translateX.push(h(e)),this},m.prototype.withOffsetY=function(e){return this._translateY.push(h(e)),this},m.prototype.getTop=function(){return this._top},m.prototype.getBottom=function(){return this._bottom},m.prototype.getLeft=function(){return this._left},m.prototype.getRight=function(){return this._right},m.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},m.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},m.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},m.prototype.getActualPosition=function(){return this._actualPosition},m.prototype._reduceTranslateValues=function(n,e){return e.map(function(e){var t=ge.isFunction(e)?h(e(this)):e;return n+"("+t+")"},this).join(" ")},m.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)}},m.prototype._constrainToViewport=function(e){var t=m.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,u=this._$window.innerWidth;s<t?this._left=t+"px":u<c&&(this._left=s-(c-u+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==r)},m.prototype._reverseXPosition=function(e){if(e===m.xPosition.CENTER)return e;return-1<e.indexOf("start")?e.replace("start","end"):e.replace("end","start")},m.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},m.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 m.xPosition.OFFSET_START:this._left=a-r+"px";break;case m.xPosition.ALIGN_END:this._left=s-r+"px";break;case m.xPosition.CENTER:var u=a+.5*c-.5*r;this._left=u+"px";break;case m.xPosition.ALIGN_START:this._left=a+"px";break;case m.xPosition.OFFSET_END:this._left=s+"px"}var l=o.top,d=o.bottom,f=o.height;switch(t.y){case m.yPosition.ABOVE:this._top=l-i+"px";break;case m.yPosition.ALIGN_BOTTOMS:this._top=d-i+"px";break;case m.yPosition.CENTER:var h=l+.5*f-.5*i;this._top=h+"px";break;case m.yPosition.ALIGN_TOPS:this._top=l+"px";break;case m.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&&(ge.isNumber(e)?this._openDuration=this._closeDuration=t(e):ge.isObject(e)&&(this._openDuration=t(e.open),this._closeDuration=t(e.close))),this._rawDuration=e,this;function t(e){if(ge.isNumber(e))return e/1e3}},l.prototype._getPanelAnimationTarget=function(e){return ge.isDefined(e.top)||ge.isDefined(e.left)?{element:ve,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(d(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",transitionOutClass:"_md-panel-animate-leave"};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(r+" "+s);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-enter"};break;default:n=ge.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",transitionOutClass:"_md-panel-animate-enter _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",transitionOutClass:"_md-panel-animate-scale-out _md-panel-animate-enter _md-panel-animate-leave"};var s=t.calculateZoomToOrigin(e,this._closeTo)||"";o=t.toTransformCss(r+" "+s);break;case l.animation.FADE:n={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave",transitionOutClass:"_md-panel-animate-fade-out _md-panel-animate-enter _md-panel-animate-leave"};break;default:n=ge.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 ge.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),ge.module("material.components.progressCircular",["material.core"]),function(){function e($,E,s,w,h,e){var _=$.requestAnimationFrame||$.webkitRequestAnimationFrame||ge.noop,m=$.cancelAnimationFrame||$.webkitCancelAnimationFrame||$.webkitCancelRequestAnimationFrame||ge.noop,p="determinate",C="indeterminate",x="_md-progress-circular-disabled",M="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"}),ge.isUndefined(t.mdMode)){var n=t.hasOwnProperty("value")?p:C;t.$set("mdMode",n)}else t.$set("mdMode",t.mdMode.trim());return r}};function r(g,c,u){var v,e,t=c[0],a=ge.element(t.querySelector("svg")),b=ge.element(t.querySelector("path")),n=E.startIndeterminate,r=E.endIndeterminate,i=0,y=0;function l(n,e,t,r,i,o){var a=++y,s=w.now(),c=e-n,u=S(g.mdDiameter),l=N(u),d=t||E.easeFn,f=r||E.duration,h=-90*(i||0),m=o||100;function p(e){b.attr("stroke-dashoffset",T(u,l,e,m)),b.attr("transform","rotate("+h+" "+u/2+" "+u/2+")")}e===n?p(e):v=_(function e(){var t=$.Math.max(0,$.Math.min(w.now()-s,f));p(d(t,n,c,f)),a===y&&t<f&&(v=_(e))})}function o(){l(n,r,E.easeFnIndeterminate,E.durationIndeterminate,i,75),i=++i%4}function d(){e||(e=h(o,E.durationIndeterminate,0,!1),o(),c.addClass(M).removeAttr("aria-valuenow"))}function f(){e&&(h.cancel(e),e=null,c.removeClass(M))}s(c),c.toggleClass(x,u.hasOwnProperty("disabled")),g.mdMode===C&&d(),g.$on("$destroy",function(){f(),v&&m(v)}),g.$watchGroup(["value","mdMode",function(){var e=t.disabled;return!0===e||!1===e?e:ge.isDefined(c.attr("disabled"))}],function(e,t){var n=e[1],r=e[2],i=0,o=0;if(r!==t[2]&&c.toggleClass(x,!!r),r)f();else if(n!==p&&n!==C&&(n=C,u.$set("mdMode",n)),n===C)t[1]===p&&(o=N(i=S(g.mdDiameter)),b.attr("d",k(i,o,!0)),b.attr("stroke-dasharray",O(i,o,75))),d();else{var a=A(e[0]),s=A(t[0]);f(),t[1]===C&&(o=N(i=S(g.mdDiameter)),b.attr("d",k(i,o,!1)),b.attr("stroke-dasharray",O(i,o,100))),c.attr("aria-valuenow",a),l(s,a)}}),g.$watch("mdDiameter",function(e){var t=S(e),n=N(t),r=A(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==C?(b.attr("d",k(t,n,!0)),b.attr("stroke-dasharray",O(t,n,75)),b.attr("stroke-dashoffset",T(t,n,1,75))):(b.attr("d",k(t,n,!1)),b.attr("stroke-dasharray",O(t,n,100)),b.attr("stroke-dashoffset",T(t,n,0,100)),l(r,r))})}function k(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 T(e,t,n,r){return i(e,t)*((r-n)/100)}function A(e){return $.Math.max(0,$.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 N(e){return E.strokeWidth/100*e}function O(e,t,n){return i(e,t)*(n/100)}function i(e,t){return(e-t)*$.Math.PI}}e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],ge.module("material.components.progressCircular").directive("mdProgressCircular",e)}(),ge.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=ge.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,f,e){var h="determinate",m="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=f.dom.animator.toCss,a=ge.element(n[0].querySelector(".md-bar1")),s=ge.element(n[0].querySelector(".md-bar2")),c=ge.element(n[0].querySelector(".md-container"));function u(){var e=(r.mdMode||"").trim();if(e)switch(e){case h:case m:case p:case g:break;default:e=m}return e}function l(e,t){if(!i&&u()){var n=f.supplant("translateX({0}%) scale({1},1)",[(t-100)/2,t/100]),r=o({transform:n});ge.element(e).css(r)}}n.attr("md-mode",u()).toggleClass(v,i),function(){if(ge.isUndefined(r.mdMode)){var e=ge.isDefined(r.value),t=e?h:m;n.attr("md-mode",t),r.mdMode=t}}(),r.$observe("value",function(e){var t=b(e);n.attr("aria-valuenow",t),u()!=g&&l(s,t)}),r.$observe("mdBufferValue",function(e){l(a,b(e))}),r.$observe("disabled",function(e){i=!0===e||!1===e?!!e:ge.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 m:c.addClass(t="md-mode-"+e);break;default:c.addClass(t="md-mode-"+m)}})}function b(e){return Math.max(0,Math.min(e||0,100))}}e.$inject=["$mdTheming","$mdUtil","$log"],ge.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e)}(),function(){e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],t.$inject=["$mdAria","$mdUtil","$mdTheming"],ge.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",t);var o=Object.freeze({PREVIOUS:-1,CURRENT:0,NEXT:1});function e(s,c,u,l){return e.prototype={init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=ge.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},selectCurrent:function(){return t(this.$element,o.CURRENT)},selectNext:function(){return t(this.$element,o.NEXT)},selectPrevious:function(){return t(this.$element,o.PREVIOUS)},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(e,r,t,n){r.addClass("_md"),u(r);var i=n[0],o=n[1]||s.fakeNgModel();function a(){r.hasClass("md-focused")||r.addClass("md-focused")}i.init(o),e.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.SPACE:e.preventDefault(),i.selectCurrent();break;case c.KEY_CODE.ENTER:var n=ge.element(s.getClosest(r[0],"form"));0<n.length&&n.triggerHandler("submit")}}).on("mousedown",function(){e.mouseActive=!0,l(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&i.$element.addClass("md-focused")}).on("blur",function(){i.$element.removeClass("md-focused")}),s.nextTick(function(){var e=d(i.$element);e.count()&&!i.$element[0].hasAttribute("aria-activedescendant")&&i.setActiveDescendant(e.first().id)})}}};function e(e){this._radioButtonRenderFns=[],this.$element=e}function d(e){return s.iterator(e[0].querySelectorAll("md-radio-button"),!0)}function t(e,t){var n,r=d(e);if(r.count()){var i=e[0].querySelector("md-radio-button.md-checked");i?t!==o.PREVIOUS&&t!==o.NEXT||(n=r[t===o.PREVIOUS?"previous":"next"](i,function(e){return!ge.element(e).attr("disabled")})):n=r.first(),n&&ge.element(n).triggerHandler("click")}}}function t(u,l,d){var f="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_"+l.nextUid(),role:"radio","aria-checked":"false"}),u.expectWithText(e,"aria-label"),n.addClass("md-auto-horizontal-margin"),r.ngValue?l.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&&(n[0]&&n[0].parentNode&&"md-radio-group"!==n[0].parentNode.nodeName.toLowerCase()&&n.parent().toggleClass(f,e),e&&i.setActiveDescendant(n.attr("id")),o=e,n.attr("aria-checked",e).toggleClass(f,e))}}}}}(),function(){e.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce"],t.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],r.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],i.$inject=["$$interimElementProvider"],a.$inject=["$element"];var L=8,n=0,l=ge.element('<div class="md-container"><div class="md-icon"></div></div>');function e(P,L,j,F,U,V,q){return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:function(e,t){var n=L.parseAttributeBoolean(t.multiple);e.addClass("md-auto-horizontal-margin");var r=ge.element("<md-select-value><span></span></md-select-value>");r.append('<span class="md-select-icon" aria-hidden="true"></span>'),r.addClass("md-select-value"),r[0].hasAttribute("id")||r.attr("id","select_value_label_"+L.nextUid());var i=e.find("md-content");i.length||(e.append(ge.element("<md-content>").append(e.contents())),i=e.find("md-content"));i.attr("role","listbox"),i.attr("tabindex","-1"),n?i.attr("aria-multiselectable","true"):i.attr("aria-multiselectable","false");t.mdOnOpen&&(e.find("md-content").prepend(ge.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 o=ge.element('<select class="md-visually-hidden"></select>');o.attr({name:t.name,"aria-hidden":"true",tabindex:"-1"});var a=e.find("md-option");ge.forEach(a,function(e){var t=ge.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")),o.append(t)}),o.append('<option ng-value="'+t.ngModel+'" selected></option>'),e.parent().append(o)}var s=n?"multiple":"",c=t.ngModelOptions?L.supplant('ng-model-options="{0}"',[t.ngModelOptions]):"",u='<div class="md-select-menu-container" aria-hidden="true" role="presentation">  <md-select-menu role="presentation" {0} {1}>{2}</md-select-menu></div>';u=L.supplant(u,[s,c,e.html()]),e.empty().append(r),e.append(u),t.tabindex||t.$set("tabindex",0);return function(o,a,s,e){var t,n,i,r,c,u,l=!0,d=e[0],f=e[1],h=e[2],m=e[3],p=a.find("md-select-value"),g=ge.isDefined(s.readonly),v=L.parseAttributeBoolean(s.mdNoAsterisk),b=ge.isDefined(s.ariaLabelledby),y=a.find("md-content"),$=a.attr("placeholder");if(v&&a.addClass("md-no-asterisk"),d){var E=d.isErrorGetter||function(){return h.$invalid&&(h.$touched||m&&m.$submitted)};if(d.input&&a.find("md-select-header").find("input")[0]!==d.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea>, or <select> element!");if(d.input=a,d.label)d.label.attr("aria-hidden","true"),y.attr("aria-label",d.label.text()),d.setHasPlaceholder(!!$);else{U.expect(a,"aria-label",$);var w=a.attr("aria-label");w||(w=$),y.attr("aria-label",w)}var _=o.$watch(E,d.setInvalid)}u=ge.element(a[0].querySelector(".md-select-menu-container")),r=o,s.mdContainerClass&&u.addClass(s.mdContainerClass),(c=u.find("md-select-menu").controller("mdSelectMenu")).init(h,s),a.on("$destroy",function(){u.remove()}),i=u,F(a);var C=h.$render;h.$render=function(){C(),T(),I()};var x=s.$observe("placeholder",h.$render),M=s.$observe("required",function(e){d&&d.label&&d.label.toggleClass("md-required",e&&!v),a.removeAttr("aria-required"),e?y.attr("aria-required","true"):y.removeAttr("aria-required")});if(f.setSelectValueText=function(e){var t=e===ve||""===e,n=!1;if(f.setIsPlaceholder(!e),s.mdSelectedText&&s.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(s.mdSelectedText||s.mdSelectedHtml)e=V(s.mdSelectedText||s.mdSelectedHtml)(o),n=!0;else if(t){var r=s.placeholder||(d&&d.label?d.label.text():"");e=r||"",n=!0}var i=p.children().eq(0);s.mdSelectedHtml?i.html(q.getTrustedHtml(e)):n?i.text(e):i.html(e),t?(p.attr("aria-hidden","true"),b||a.removeAttr("aria-labelledby")):(p.removeAttr("aria-hidden"),b||a.attr("aria-labelledby",a[0].id+" "+p[0].id))},f.setIsPlaceholder=function(e){e?(p.addClass("md-select-placeholder"),d&&d.label&&!a.attr("placeholder")&&d.label.addClass("md-placeholder")):(p.removeClass("md-select-placeholder"),d&&d.label&&!a.attr("placeholder")&&d.label.removeClass("md-placeholder"))},!g){a.on("focus",function(){d&&d.setFocused(!0)}),a.on("blur",function(e){l&&(l=!1,r._mdSelectIsOpen&&e.stopImmediatePropagation());d&&d.setFocused(!1),I()})}f.triggerClose=function(){V(s.mdOnClose)(o)},o.$$postDigest(function(){!function(){var e=a.attr("aria-label")||a.attr("placeholder");!e&&d&&d.label&&(e=d.label.text());U.expect(a,"aria-label",e)}(),T()});var k=o.$watch(function(){return c.getSelectedLabels()},T);function T(){c=c||i.find("md-select-menu").controller("mdSelectMenu"),f.setSelectValueText(c.getSelectedLabels())}var A=s.$observe("mdMultiple",function(e){n&&n();var t=V(e);n=o.$watch(function(){return t(o)},function(e,t){var n=i.find("md-select-menu");if(e!==ve||t!==ve){if(e){var r={multiple:"multiple"};a.attr(r),n.attr(r)}else a.removeAttr("multiple"),n.removeAttr("multiple");a.find("md-content").attr("aria-multiselectable",e?"true":"false"),i&&(c.setMultiple(Boolean(e)),C=h.$render,h.$render=function(){C(),T(),I()},h.$render())}})}),S=s.$observe("disabled",function(e){ge.isString(e)&&(e=!0),t!==ve&&t===e||((t=e)?a.attr({"aria-disabled":"true"}).removeAttr("tabindex").removeAttr("aria-expanded").removeAttr("aria-haspopup").off("click",H).off("keydown",R):a.attr({tabindex:s.tabindex,"aria-haspopup":"listbox"}).removeAttr("aria-disabled").on("click",H).on("keydown",R))});s.hasOwnProperty("disabled")||s.hasOwnProperty("ngDisabled")||(a.attr({"aria-disabled":"false"}),a.on("click",H),a.on("keydown",R));var N={role:"button","aria-haspopup":"listbox"};a[0].hasAttribute("id")||(N.id="select_"+L.nextUid());var O="select_container_"+L.nextUid();i.attr("id",O);var D="select_listbox_"+L.nextUid();function I(){L.nextTick(function(){d&&d.setHasValue(0<c.getSelectedLabels().length||(a[0].validity||{}).badInput)})}function R(e){if(j.isNavigationKey(e))e.preventDefault(),H();else if(B(e,j)){e.preventDefault();var t=c.optNodeForKeyboardSearch(e);if(!t||t.hasAttribute("disabled"))return;var n=ge.element(t).controller("mdOption");c.isMultiple||ge.forEach(Object.keys(c.selected),function(e){c.deselect(e)}),c.select(n.hashKey,n.value),c.refreshViewValue()}}function H(){r._mdSelectIsOpen=!0,a.attr("aria-expanded","true"),P.show({scope:r,preserveScope:!0,skipCompile:!0,element:i,target:a[0],selectCtrl:f,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!s.mdOnOpen&&(o.$eval(s.mdOnOpen)||!0)}).finally(function(){r._mdSelectIsOpen=!1,a.removeAttr("aria-expanded"),a.removeAttr("aria-activedescendant"),h.$setTouched()})}i.find("md-content").attr("id",D),a.find("md-select-menu").length||(N["aria-owns"]=D),a.attr(N),o.$on("$destroy",function(){M&&M(),S&&S(),n&&n(),A&&A(),k&&k(),x&&x(),_&&_(),a.off("focus"),a.off("blur"),P.destroy().finally(function(){d&&(d.setFocused(!1),d.setHasValue(!1),d.input=null),h.$setTouched()})})}},controller:function(){}}}function t(m,p,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=p.getClosest(e.target,"md-option"),n=t&&ge.element(t).data("$mdOptionController");if(t&&n)if(t.hasAttribute("disabled"))e.stopImmediatePropagation();else{var r=a.hashGetter(n.value),i=ge.isDefined(a.selected[r]);o.$apply(function(){a.isMultiple?i?a.deselect(r):a.select(r,n.value):i||(ge.forEach(Object.keys(a.selected),function(e){a.deselect(e)}),a.select(r,n.value)),a.refreshViewValue()})}else e.target&&e.target.parentNode&&"MD-SELECT-HEADER"===e.target.parentNode.tagName&&e.stopImmediatePropagation()}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,i,a){var s,r,c,u,l=this,d="";function f(){var n=l.ngModel.$modelValue||l.ngModel.$viewValue||[];if(ge.isArray(n)){var e=Object.keys(l.selected),t=n.map(l.hashGetter);e.filter(function(e){return-1===t.indexOf(e)}).forEach(l.deselect),t.forEach(function(e,t){l.select(e,n[t])})}}function h(){var e=l.ngModel.$viewValue||l.ngModel.$modelValue;Object.keys(l.selected).forEach(l.deselect),l.select(l.hashGetter(e),e)}l.isMultiple=ge.isDefined(i.multiple),l.selected={},l.options={},o.$watchCollection(function(){return l.options},function(){l.ngModel.$render(),function(){var e,t;if(!a.find("md-optgroup").length)return;for(t=a.find("md-option"),e=0;e<t.length;e++)t[e].setAttribute("aria-setsize",t.length),t[e].setAttribute("aria-posinset",e+1)}()}),l.setMultiple=function(e){var t=l.ngModel;if(s=s||t.$isEmpty,l.isMultiple=e,l.isMultiple){var n=!1,r=function(e){n?f():p.nextTick(function(){f(),n=!0})};t.$validators["md-multiple"]=i,t.$render=r,o.$watchCollection(l.modelBinding,function(e){i(e)&&r()}),t.$isEmpty=function(e){return!e||0===e.length}}else delete t.$validators["md-multiple"],t.$render=h;function i(e,t){return ge.isArray(e||t||[])}},l.optNodeForKeyboardSearch=function(e){var t,n;for(r&&clearTimeout(r),r=setTimeout(function(){d="",c=u=r=ve},300),d+=e.key,t=new RegExp("^"+p.sanitize(d),"i"),c||(c=a.find("md-option"),u=new Array(c.length),ge.forEach(c,function(e,t){u[t]=e.textContent.trim()})),n=0;n<u.length;++n)if(t.test(u[n]))return c[n]},l.init=function(e,t){function r(e){return ge.isObject(e)&&!ge.isArray(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++n)):e+""}l.ngModel=e,l.modelBinding=t.ngModel,l.ngModel.$isEmpty=function(e){var t=l.options[l.hashGetter(e)]?l.options[l.hashGetter(e)].value:null;return!ge.isDefined(t)||null===t||""===t||t!=t},i.ngModelOptions?l.hashGetter=function(e){var t=m(i.ngModelOptions)(o),n=t&&t.trackBy;return n?m(n)(o,{$value:e}):ge.isObject(e)?r(e):e}:l.hashGetter=r,l.setMultiple(l.isMultiple),t.hasOwnProperty("mdSelectOnlyOption")&&p.nextTick(function(){var e=Object.keys(l.options);if(1===e.length){var t=l.options[e[0]];l.deselect(Object.keys(l.selected)[0]),l.select(l.hashGetter(t.value),t.value),l.refreshViewValue(),l.ngModel.$setPristine()}},!1)},l.setActiveDescendant=function(e){ge.isDefined(e)?a.find("md-content").attr("aria-activedescendant",e):a.find("md-content").removeAttr("aria-activedescendant")},l.getSelectedLabels=function(e){var t,n=(e=e||{}).mode||"html",r=p.nodesToArray(a[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}),p.uniq(r.map(t)).join(", ")):""},l.select=function(e,t){var n=l.options[e];n&&n.setSelected(!0,l.isMultiple),l.selected[e]=t},l.deselect=function(e){var t=l.options[e];t&&t.setSelected(!1,l.isMultiple),delete l.selected[e]},l.addOption=function(e,t){if(ge.isDefined(l.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+t.value+'" found.');l.options[e]=t,ge.isDefined(l.selected[e])&&(l.select(e,t.value),ge.isDefined(l.ngModel.$$rawModelValue)&&l.hashGetter(l.ngModel.$$rawModelValue)===e&&l.ngModel.$validate(),l.refreshViewValue())},l.removeOption=function(e){delete l.options[e]},l.refreshViewValue=function(){var e,t=[];for(var n in l.selected)(e=l.options[n])?t.push(e.value):t.push(l.selected[n]);var r=l.isMultiple?t:t[0];(function(e,t){{if(l.isMultiple){if(ge.isArray(e)){if(e.length!==t.length)return!1;var n=e.map(function(e){return l.hashGetter(e)});return t.every(function(e){var t=l.hashGetter(e);return n.some(function(e){return e===t})})}return!1}return l.hashGetter(e)===l.hashGetter(t)}})(l.ngModel.$modelValue,r)||(l.ngModel.$setViewValue(r),l.ngModel.$render())}}}function r(r,i,u){return{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:a,compile:function(e,t){e.append(ge.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,n,e,t){var a=t[0],s=t[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)})}u(n),s.isMultiple&&(n.addClass("md-checkbox-enabled"),n.prepend(l.clone())),ge.isDefined(e.ngValue)?o.$watch(e.ngValue,function(e,t){c(e,t),n.removeAttr("aria-checked")}):ge.isDefined(e.value)?c(e.value):o.$watch(function(){return n.text().trim()},c),e.$observe("disabled",function(e){e?n.attr("tabindex","-1"):n.attr("tabindex","0")}),o.$$postDigest(function(){e.$observe("selected",function(e){ge.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,n),function(){var e={role:"option"};s.isMultiple&&(e["aria-selected"]="false");n[0].hasAttribute("id")||(e.id="select_option_"+i.nextUid());n.attr(e)}(),o.$on("$destroy",function(){s.removeOption(a.hashKey,a)})}}function a(n){this.setSelected=function(e,t){e?n.attr({selected:"true","aria-selected":"true"}):e||(n.removeAttr("selected"),t?n.attr("aria-selected","false"):n.removeAttr("aria-selected"))}}function i(e){return t.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],e("$mdSelect").setDefaults({methods:["target"],options:t});function t(l,d,I,R,o,f,h,m,H){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(){f(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]));ge.extend(t,{isRemoved:!1,target:ge.element(t.target),parent:ge.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"),m.enter(r.backdrop,H[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.find("md-content").attr("id")),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 n=c.selectEl,o=n.controller("mdSelectMenu")||{};return s.addClass("md-clickable"),c.backdrop&&c.backdrop.on("click",e),n.on("keydown",t),n.on("click",i),function(){c.backdrop&&c.backdrop.off("click",e),n.off("keydown",t),n.off("click",i),s.removeClass("md-clickable"),c.isRemoved=!0}}function e(e){e.preventDefault(),e.stopPropagation(),c.restoreFocus=!1,I.nextTick(l.hide,!0)}function t(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case g.UP_ARROW:return void r("prev");case g.DOWN_ARROW:return void r("next");case g.SPACE:case g.ENTER:c.focusedNode&&(n.triggerHandler({type:"click",target:c.focusedNode}),e.preventDefault()),i(e);break;case g.TAB:case g.ESCAPE:e.stopPropagation(),e.preventDefault(),c.restoreFocus=!0,I.nextTick(l.hide,!0);break;default:if(B(e,d)){var t=o.optNodeForKeyboardSearch(e);t&&!t.hasAttribute("disabled")&&u(c.focusedNode,t,o)}}}function r(e){for(var t,n=I.nodesToArray(c.optionNodes),r=n.indexOf(c.focusedNode),i=n[r];-1===r?r=0:"next"===e&&r<n.length-1?r++:"prev"===e&&0<r&&r--,(t=n[r]).hasAttribute("disabled")&&(t=null),!t&&r<n.length-1&&0<r;);u(i,t,o)}function i(i){i&&"click"===i.type&&i.currentTarget!==n[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}()||c.focusedNode&&c.focusedNode.hasAttribute&&!c.focusedNode.hasAttribute("disabled")&&(i.preventDefault(),i.stopPropagation(),o.isMultiple||(c.restoreFocus=!0,I.nextTick(function(){l.hide(o.ngModel.$viewValue),c.focusedNode.classList.remove("md-focused")},!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=ge.element(R)).on("resize",t),n.on("orientationchange",t),function(){n.off("resize",t),n.off("orientationchange",t)}),c.contentEl[0].focus(),e},c.hideBackdrop);var n,e;var t,r;function i(){return o(function(n){if(c.isRemoved)return o.reject(!1);var r=v(a,s,c);r.container.element.css(p.toCss(r.container.styles)),r.dropDown.element.css(p.toCss(r.dropDown.styles)),f(function(){var e,t;s.addClass("md-active"),r.dropDown.element.css(p.toCss({transform:""})),(e=c.focusedNode)&&!e.hasAttribute("disabled")&&(t=c.selectEl.controller("mdSelectMenu"),u(null,e,t)),n()})})}function u(e,t,n){var r=c.contentEl[0];if(t){if(e&&e.classList.remove("md-focused"),t.classList.add("md-focused"),n&&n.setActiveDescendant&&n.setActiveDescendant(t.id),r.scrollHeight>r.clientHeight){var i=r.clientHeight+r.scrollTop,o=t.offsetTop+t.offsetHeight;i<o?r.scrollTop=o-r.clientHeight:t.offsetTop<r.scrollTop&&(r.scrollTop=t.offsetTop)}c.focusedNode=t,n&&n.refreshViewValue&&n.refreshViewValue()}}},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":""}),function(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setSelectValueText(n?n.getSelectedLabels():""),t.triggerClose()}}(n),n.$destroy||(n.restoreFocus?n.target.focus():I.nextTick(function(){n.target.triggerHandler("blur")},!0))}},hasBackdrop:!0,disableParentScroll:!0};function v(e,t,n){var r,i,o=t[0],a=n.target[0].children[0],s=H[0].body,c=n.selectEl[0],u=n.contentEl[0],l=s.getBoundingClientRect(),d=a.getBoundingClientRect(),f={left:l.left+L,top:L,bottom:l.height-L,right:l.width-L-(I.floatingScrollbars()?16:0)},h=d.top-f.top,m=(d.left,d.left,d.width,f.bottom-(d.top+d.height)),p=l.width-2*L,g=c.querySelector("md-option[selected]"),v=c.getElementsByTagName("md-option"),b=c.getElementsByTagName("md-optgroup"),y=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,u);r=(i=n.loadingAsync)&&ge.isFunction(i.then)?u.firstElementChild||u:g||(b.length?b[0]:v.length?v[0]:u.firstElementChild||u),u.offsetWidth>p?u.style["max-width"]=p+"px":u.style.maxWidth=null,y&&c.classList.add("md-overflow");var $=r;"MD-OPTGROUP"===($.tagName||"").toUpperCase()&&(r=$=v[0]||u.firstElementChild||u),n.focusedNode=$,o.style.display="block";var E,w,_,C,x,M,k=c.getBoundingClientRect(),T=(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 A=R.getComputedStyle(r);T.paddingLeft=parseInt(A.paddingLeft,10)||0,T.paddingRight=parseInt(A.paddingRight,10)||0}if(y){var S=u.offsetHeight/2;u.scrollTop=T.top+T.height/2-S,h<S?u.scrollTop=Math.min(T.top,u.scrollTop+S-h):m<S&&(u.scrollTop=Math.max(T.top+T.height-k.height,u.scrollTop-S+m))}w=d.left+T.left-T.paddingLeft,_=Math.floor(d.top+d.height/2-T.height/2-T.top+u.scrollTop)+2,C=T.left+d.width/2+"px "+(T.top+T.height/2-u.scrollTop)+"px 0px",x=Math.min(d.width+T.paddingLeft+T.paddingRight,p),M=j.getComputedStyle(a)["font-size"];var N=o.getBoundingClientRect(),O=Math.round(100*Math.min(d.width/k.width,1))/100,D=Math.round(100*Math.min(d.height/k.height,1))/100;return{container:{element:ge.element(o),styles:{left:Math.floor(P(f.left,w,f.right-x)),top:Math.floor(P(f.top,_,f.bottom-N.height)),"min-width":x,"font-size":M}},dropDown:{element:ge.element(c),styles:{transformOrigin:C,transform:n.alreadyOpen?"":I.supplant("scale({0},{1})",[O,D])}}}}}function P(e,t,n){return Math.max(e,Math.min(t,n))}}function B(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)}ge.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",e).directive("mdSelectMenu",t).directive("mdOption",r).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=ge.element("<label>"),t.prepend(e));e.addClass("md-container-ignore"),e.attr("aria-hidden","true"),n.label&&e.text(n.label);t.attr("aria-label",e.text())}();t.attr("role","group")}}}).directive("mdSelectHeader",function(){return{restrict:"E"}}).provider("$mdSelect",i)}(),function(){function e(c,u){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===u){a.nextTick(function(){r.$broadcast("$md-resize")});var t={cachedTransitionStyles:n};a.dom.animator.waitTransitionEnd(i,t).then(function(){r.$broadcast("$md-resize")})}})})}}}]}ge.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function e(r,c,u,i){var l="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(l,[e||""])),ve)},waitFor:f};return function(e,t){if(ge.isUndefined(e))return d;var n,r,i,o,a=!0===t,s=d.find(e,a);return!s&&a?d.waitFor(e):!s&&ge.isUndefined(t)?(n=d,r=e,i=function(){return!1},o=function(){return u.when(c.supplant(l,[r||""]))},ge.extend({isLockedOpen:i,isOpen:i,toggle:o,open:o,close:o,onClose:ge.noop,then:function(e){return f(r).then(e||ge.noop)}},n)):s};function f(e){return r.when(e).catch(i.error)}}function t(r,b,i,y,$,E,e,w,_,C,x,M,k){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,u,l,d,f=null,h=null,m=C.when(!0),n=w(e.mdIsLockedOpen),p=ge.element(M);function g(e){return e.keyCode===i.KEY_CODE.ESCAPE?v(e):C.when(!0)}function v(e){return e.preventDefault(),t.close()}e.mdDisableScrollTarget&&((f=x[0].querySelector(e.mdDisableScrollTarget))?f=ge.element(f):_.warn(b.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:e.mdDisableScrollTarget}))),f||(f=a.parent()),e.hasOwnProperty("mdDisableBackdrop")||(c=b.createBackdrop(o,"md-sidenav-backdrop md-opaque ng-enter")),e.hasOwnProperty("mdDisableCloseEvents")&&(u=!0),a.addClass("_md"),y(a),c&&y.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,{$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)||a,r=a.parent();u||(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=x[0].activeElement,l=$.getLastInteractionType());return i=e,i&&!s?(s=f.css("overflow"),f.css("overflow","hidden")):ge.isDefined(s)&&(f.css("overflow",s),s=ve),m=C.all([e&&c?E.enter(c,r):c?E.leave(c):C.when(!0),E[e?"removeClass":"addClass"](a,"md-closed")]).then(function(){o.isOpen&&(k(function(){p.triggerHandler("resize")}),n&&n.focus()),t&&t()});var i}),t.$toggleOpen=function(e){return o.isOpen===e?C.when(!0):(o.isOpen&&t.onCloseCb&&t.onCloseCb(),C(function(t){o.isOpen=e,b.nextTick(function(){m.then(function(e){!o.isOpen&&h&&"keyboard"===l&&(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"],ge.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",t).controller("$mdSidenavController",n)}(),function(){e.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],ge.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!==ve&&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=ge.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 J=10,ee=4;function e(B,z,i,W,Y,G,K,Z,X,Q){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=ge.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,n,e){G(o);var r=e[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},a=e[1],s=(ge.element(W.getClosest(o,"_md-slider-container",!0)),n.ngDisabled?ge.bind(null,Z(n.ngDisabled),i.$parent):function(){return o[0].hasAttribute("disabled")}),t=ge.element(o[0].querySelector(".md-thumb")),c=ge.element(o[0].querySelector(".md-thumb-text")),u=t.parent(),l=ge.element(o[0].querySelector(".md-track-container")),d=ge.element(o[0].querySelector(".md-track-fill")),f=ge.element(o[0].querySelector(".md-track-ticks")),h=ge.element(o[0].getElementsByClassName("md-slider-wrapper")),m=(ge.element(o[0].getElementsByClassName("md-slider-content")),W.throttle(N,5e3)),p=ge.isDefined(n.mdVertical),g=ge.isDefined(n.mdDiscrete),v=ge.isDefined(n.mdInvert);ge.isDefined(n.min)?n.$observe("min",M):M(0),ge.isDefined(n.max)?n.$observe("max",k):k(100),ge.isDefined(n.step)?n.$observe("step",T):T(1),ge.isDefined(n.round)?n.$observe("round",A):A(3);ge.noop;function b(){N(),R()}n.ngDisabled&&i.$parent.$watch(n.ngDisabled,function(){o.attr("aria-disabled",!!s())}),K.register(h,"drag",{horizontal:!p}),i.mouseActive=!1,h.on("keydown",function(e){if(s())return;var t,n=Y.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*J;break;case n.PAGE_UP:e.preventDefault(),t=E*J;break;case n.HOME:e.preventDefault(),e.stopPropagation(),D(y);break;case n.END:e.preventDefault(),e.stopPropagation(),D($)}t&&(t=v?-t:t,(e.metaKey||e.ctrlKey||e.altKey)&&(t*=ee),e.preventDefault(),e.stopPropagation(),D(r.$viewValue+t))}).on("mousedown",function(){(function(){if(!g||s())return;if(ge.isUndefined(E))return;if(E<=0){var e="Slider step value must be greater than zero when in discrete mode";throw X.error(e),new Error(e)}var t=Math.floor(($-y)/E);_||(_=ge.element("<canvas>").css("position","absolute"),f.append(_),C=_[0].getContext("2d"));var n,r=O();!r||r.height||r.width||(N(),r=S);_[0].width=r.width,_[0].height=r.height;for(var i=0;i<=t;i++){var o=z.getComputedStyle(f[0]);C.fillStyle=o.color||"black",n=Math.floor((p?r.height:r.width)*(i/t)),C.fillRect(p?0:n-1,p?n-1:0,p?r.width:2,p?2:r.height)}})(),i.mouseActive=!0,h.removeClass("md-focused"),Q(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(_&&C){var e=O();C.clearRect(0,0,e.width,e.height)}}()}).on("$md.pressdown",function(e){if(s())return;o.addClass("md-active"),o[0].focus(),N();var t=H(P(V(U(p?e.srcEvent.clientY:e.srcEvent.clientX))));i.$apply(function(){I(t),L(q(t))})}).on("$md.pressup",function(e){if(s())return;o.removeClass("md-dragging");var t=H(P(V(U(p?e.srcEvent.clientY:e.srcEvent.clientX))));i.$apply(function(){I(t),R()})}).on("$md.dragstart",function(e){if(s())return;j=!0,e.stopPropagation(),o.addClass("md-dragging"),F(e)}).on("$md.drag",function(e){if(!j)return;e.stopPropagation(),F(e)}).on("$md.dragend",function(e){if(!j)return;e.stopPropagation(),j=!1}),setTimeout(b,0);var y,$,E,w,_,C,x=B.throttle(b);function M(e){y=parseFloat(e),r.$viewValue=H(r.$modelValue,y,$),h.attr("aria-valuemin",e),b()}function k(e){$=parseFloat(e),r.$viewValue=H(r.$modelValue,y,$),h.attr("aria-valuemax",e),b()}function T(e){E=parseFloat(e)}function A(e){w=H(parseInt(e),0,6)}ge.element(z).on("resize",x),i.$on("$destroy",function(){ge.element(z).off("resize",x)}),r.$render=R,r.$viewChangeListeners.push(R),r.$formatters.push(H),r.$formatters.push(P);var S={};function N(){S=l[0].getBoundingClientRect()}function O(){return m(),S}function D(e){i.$evalAsync(function(){I(e)})}function I(e){r.$setViewValue(H(P(e)))}function R(){isNaN(r.$viewValue)&&(r.$viewValue=r.$modelValue),r.$viewValue=H(r.$viewValue);var e=q(r.$viewValue);i.modelValue=r.$viewValue,h.attr("aria-valuenow",r.$viewValue),L(e),c.text(r.$viewValue)}function H(e,t,n){if(ge.isNumber(e))return t=ge.isNumber(t)?t:y,n=ge.isNumber(n)?n:$,Math.max(t,Math.min(n,e))}function P(e){if(ge.isNumber(e)){var t=Math.round((e-y)/E)*E+y;return t=Math.round(t*Math.pow(10,w))/Math.pow(10,w),a&&a.fitInputWidthToTextLength&&W.debounce(function(){a.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?u.css("bottom",n):W.bidiProperty(u,"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)}N();var j=!1;function F(e){var t,n,r;g?(n=p?e.srcEvent.clientY:e.srcEvent.clientX,r=H(P(V(U(n)))),L(U(n)),c.text(r)):(t=p?e.srcEvent.clientY:e.srcEvent.clientX,i.$evalAsync(function(){I(V(U(t)))}))}function U(e){var t=(e-(p?S.top:S.left))/(p?S.height:S.width);return!p&&W.isRtl(n)&&(t=1-t),Math.max(0,Math.min(1,p?1-t:t))}function V(e){return y+(v?1-e:e)*($-y)}function q(e){var t=(e-y)/($-y);return v?1-t:t}}}}(),function(){function e(u,l,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=l.throttle(t);return function(e){var t,n,r=200;function i(){+d.now()-n>r?(t=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),l.throttle(i))}e.on("scroll touchmove",function(){t||(t=!0,l.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":ve;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===ve?e.translateY&&(e.translateY=null,e.clone.css(u.CSS.TRANSFORM,"")):(e.translateY=t,d.bidi(e.clone,u.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"],ge.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e)}(),function(){function e(s,c,u,l,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){u(r),r.addClass("_md"),l.prefixer().removeAttribute(r,"ng-repeat");var o=r[0].outerHTML;function a(e){return ge.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);l.nextTick(function(){a(t).append(e)}),s(n,r,t)})}}}e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],ge.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}})})})}}}}ge.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,f,h,m,p,g){var n=e[0];return{restrict:"E",priority:f.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 l=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=ge.element(r[0].querySelector(".md-thumb-container")),c=ge.element(r[0].querySelector(".md-container")),u=ge.element(r[0].querySelector(".md-label"));m(function(){r.removeClass("md-dragging")}),l(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(u):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(f.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(f.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"],ge.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e)}(),ge.module("material.components.tabs",["material.core","material.components.icon"]),ge.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}}),ge.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=ge.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=ge.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||ge.noop,e.deselect=e.deselect||ge.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 ge.element(o)}return ge.element()}}),ge.module("material.components.tabs").directive("mdTabItem",function(){return{require:"^?mdTabs",link:function(e,t,n,r){r&&r.attachRipple(e,t)}}}),ge.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"],ge.module("material.components.tabs").directive("mdTabScroll",e)}(),function(){function e(u,l,n,r,i,d,c,o,a,s,t,f,h){var m=this,p=!1,g=[],v=!1,b=!1;function y(t,e){var n=o.$normalize("md-"+t);function r(e){m[t]="false"!==e}e&&H(t,e,ve),o.hasOwnProperty(n)&&r(o[n]),o.$observe(n,r)}function $(){v=!0,ge.element(n).off("resize",S)}function E(){var e=D();ge.element(e.wrapper).toggleClass("md-stretch-tabs",function(){switch(m.stretchTabs){case"always":return!0;case"never":return!1;default:return!m.shouldPaginate&&n.matchMedia("(max-width: 600px)").matches}}()),z()}function w(){m.shouldCenterTabs=I()}function _(t,e){if(t!==e){var n=D();ge.forEach(n.tabs,function(e){e.style.maxWidth=t+"px"}),ge.forEach(n.dummies,function(e){e.style.maxWidth=t+"px"}),d.nextTick(m.updateInkBarStyles)}}function C(e,t){e!==t&&(m.maxTabWidth=j(),m.shouldCenterTabs=I(),d.nextTick(function(){m.maxTabWidth=j(),V(m.selectedIndex)}))}function x(e){l[e?"removeClass":"addClass"]("md-no-tab-content")}function M(e){var t=(m.shouldCenterTabs||Y()?"":"-")+e+"px";t=t.replace("--",""),ge.element(D().paging).css(r.CSS.TRANSFORM,"translate("+t+", 0)"),u.$broadcast("$mdTabsPaginationChanged")}function k(e,t){e!==t&&D().tabs[e]&&(V(),U())}function T(e,t){e!==t&&(m.selectedIndex=R(e),m.lastSelectedIndex=t,m.updateInkBarStyles(),B(),V(e),u.$broadcast("$mdTabsChanged"),m.tabs[t]&&m.tabs[t].scope.deselect(),m.tabs[e]&&m.tabs[e].scope.select())}function A(e,t){p||(m.focusIndex=m.selectedIndex=e),t&&m.noSelectClick||d.nextTick(function(){m.tabs[e].element.triggerHandler("click")},!1)}function S(){m.lastSelectedIndex=m.selectedIndex,m.offsetLeft=W(m.offsetLeft),d.nextTick(function(){m.updateInkBarStyles(),P()})}function N(e){ge.element(D().inkBar).toggleClass("ng-hide",e)}function O(e){l.toggleClass("md-dynamic-height",e)}function D(){var e={},t=l[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 m.centerTabs&&!m.shouldPaginate}function R(e){if(-1===e)return-1;var t,n,r=Math.max(m.tabs.length-e,e);for(t=0;t<=r;t++){if((n=m.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=m.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function H(e,n,r){Object.defineProperty(m,e,{get:function(){return r},set:function(e){var t=r;r=e,n&&n(e,t)}})}function P(){m.maxTabWidth=j(),m.shouldPaginate=function(){var e;if(m.noPagination||!b)return!1;var t=l.prop("clientWidth");return ge.forEach(D().tabs,function(e){t-=e.offsetWidth}),e=t<0,d.msie&&(D().paging.style.width=e?"999999px":ve),e}()}function L(e){var t=0;return ge.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function j(){var e=D().canvas.clientWidth;return Math.max(0,Math.min(e-1,264))}function F(e,t){var n,r=t?"focusIndex":"selectedIndex",i=m[r];for(n=i+e;m.tabs[n]&&m.tabs[n].scope.disabled;n+=e);n=(i+e+m.tabs.length)%m.tabs.length,m.tabs[n]&&(m[r]=n)}function U(){m.styleTabItemFocus="keyboard"===t.getLastInteractionType();var e=D().tabs[m.focusIndex];e&&e.focus()}function V(e){var t=D();if(ge.isNumber(e)||(e=m.focusIndex),t.tabs[e]&&!m.shouldCenterTabs){var n=t.tabs[e],r=n.offsetLeft,i=n.offsetWidth+r;if(0!==e)if(Y()){var o=L(Array.prototype.slice.call(t.tabs,0,e)),a=L(Array.prototype.slice.call(t.tabs,0,e+1));m.offsetLeft=Math.min(m.offsetLeft,W(o)),m.offsetLeft=Math.max(m.offsetLeft,W(a-t.canvas.clientWidth))}else m.offsetLeft=Math.max(m.offsetLeft,W(i-t.canvas.clientWidth+32)),m.offsetLeft=Math.min(m.offsetLeft,W(r));else m.offsetLeft=0}}function q(){m.selectedIndex=R(m.selectedIndex),m.focusIndex=R(m.focusIndex)}function B(){if(!m.dynamicHeight)return l.css("height","");if(!m.tabs.length)return g.push(B);var e=D(),t=e.contents[m.selectedIndex],n=t?t.offsetHeight:0,r=e.wrapper.offsetHeight,i=n+r,o=l.prop("clientHeight");if(o!==i){"bottom"===l.attr("md-align-tabs")&&(o-=r,i-=r,l.attr("md-border-bottom")!==ve&&++o),p=!0;var a={height:o+"px"},s={height:i+"px"};l.css(a),c(l,{from:a,to:s,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){l.css({transition:"none",height:""}),d.nextTick(function(){l.css("transition","")}),p=!1})}}function z(e,t){if(!m.noInkBar){var n=D();if(n.tabs[m.selectedIndex])if(m.tabs.length)if(l.prop("offsetParent")){var r=m.selectedIndex,i=n.paging.offsetWidth,o=n.tabs[r],a=o.offsetLeft,s=i-a-o.offsetWidth;if(m.shouldCenterTabs){var c=L(n.tabs);c<i&&e!==i&&t!==c&&f(z,0,!0,i,c)}!function(){var e=D(),t=m.selectedIndex,n=m.lastSelectedIndex,r=ge.element(e.inkBar);if(!ge.isNumber(n))return;r.toggleClass("md-left",t<n).toggleClass("md-right",n<t)}(),ge.element(n.inkBar).css({left:a+"px",right:s+"px"})}else(function e(){e.watcher||(e.watcher=u.$watch(function(){d.nextTick(function(){e.watcher&&l.prop("offsetParent")&&(e.watcher(),e.watcher=null,S())},!1)}))})();else g.push(m.updateInkBarStyles);else ge.element(n.inkBar).css({left:"auto",right:"auto"})}}function W(e){var t=D();if(!t.tabs.length||!m.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],r=n.offsetLeft+n.offsetWidth;return e=Y()?(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 Y(){return d.isRtl(o)}m.$onInit=function(){(function(t,e){var n=o.$normalize("md-"+t);e&&H(t,e);o.$observe(n,function(e){m[t]=e})})("stretchTabs",E),H("focusIndex",k,m.selectedIndex||0),H("offsetLeft",M,0),H("hasContent",x,!1),H("maxTabWidth",_,j()),H("shouldPaginate",C,!1),y("noInkBar",N),y("dynamicHeight",O),y("noPagination"),y("swipeContent"),y("autoselect"),y("noSelectClick"),y("centerTabs",w),y("enableDisconnect"),m.scope=u,m.parent=u.$parent,m.tabs=[],m.lastSelectedIndex=null,m.hasFocus=!1,m.styleTabItemFocus=!1,m.shouldCenterTabs=I(),m.tabContentPrefix="tab-content-",m.navigationHint="Use the left and right arrow keys to navigate between tabs",m.selectedIndex=m.selectedIndex||0,e=o.$mdTabsTemplate,t=ge.element(l[0].querySelector("md-tab-data")),t.html(e),a(t.contents())(m.parent),delete o.$mdTabsTemplate,u.$watch("$mdTabsCtrl.selectedIndex",T),ge.element(n).on("resize",S),u.$on("$destroy",$),s(l),d.nextTick(function(){B(),V(),z(),m.tabs[m.selectedIndex]&&m.tabs[m.selectedIndex].scope.select(),b=!0,P()});var e,t},m.updatePagination=d.debounce(P,100),m.redirectFocus=U,m.attachRipple=function(e,t){var n=D(),r={colorElement:ge.element(n.inkBar)};i.attach(e,t,r)},m.insertTab=function(e,t){var n=b,r={getIndex:function(){return m.tabs.indexOf(i)},isActive:function(){return this.getIndex()===m.selectedIndex},isLeft:function(){return this.getIndex()<m.selectedIndex},isRight:function(){return this.getIndex()>m.selectedIndex},shouldRender:function(){return m.dynamicHeight||this.isActive()},hasFocus:function(){return m.styleTabItemFocus&&m.hasFocus&&this.getIndex()===m.focusIndex},id:d.nextUid(),hasContent:!(!e.template||!e.template.trim())},i=ge.extend(r,e);ge.isDefined(t)?m.tabs.splice(t,0,i):m.tabs.push(i);return g.forEach(function(e){d.nextTick(e)}),g=[],function(){var e,t=!1;for(e=0;e<m.tabs.length;e++)if(m.tabs[e].hasContent){t=!0;break}m.hasContent=t}(),d.nextTick(function(){P(),function(e){if(e.hasContent){var t=l[0].querySelectorAll('[md-tab-id="'+e.id+'"]');ge.element(t).attr("aria-controls",m.tabContentPrefix+e.id)}}(i),n&&m.autoselect&&d.nextTick(function(){d.nextTick(function(){A(m.tabs.indexOf(i))})})}),i},m.removeTab=function(e){if(v)return;var t=m.selectedIndex,n=m.tabs.splice(e.getIndex(),1)[0];q(),m.selectedIndex===t&&(n.scope.deselect(),m.tabs[m.selectedIndex]&&m.tabs[m.selectedIndex].scope.select());d.nextTick(function(){P(),m.offsetLeft=W(m.offsetLeft)})},m.select=A,m.scroll=function(e){if(!m.shouldPaginate)return;e.preventDefault(),e.deltaY?m.offsetLeft=W(m.offsetLeft+e.deltaY):e.deltaX&&(m.offsetLeft=W(m.offsetLeft+e.deltaX))},m.nextPage=function(){if(!m.canPageForward())return;var e=h.increasePageOffset(D(),m.offsetLeft);m.offsetLeft=W(e)},m.previousPage=function(){if(!m.canPageBack())return;var e=h.decreasePageOffset(D(),m.offsetLeft);m.offsetLeft=W(e)},m.keydown=function(e){switch(e.keyCode){case r.KEY_CODE.LEFT_ARROW:e.preventDefault(),F(-1,!0);break;case r.KEY_CODE.RIGHT_ARROW:e.preventDefault(),F(1,!0);break;case r.KEY_CODE.SPACE:case r.KEY_CODE.ENTER:e.preventDefault(),p||A(m.focusIndex);break;case r.KEY_CODE.TAB:m.focusIndex!==m.selectedIndex&&(m.focusIndex=m.selectedIndex)}},m.canPageForward=function(){var e=D(),t=e.tabs[e.tabs.length-1];if(Y())return m.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth;return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+m.offsetLeft},m.canPageBack=function(){return 0<m.offsetLeft},m.refreshIndex=q,m.incrementIndex=F,m.getTabElementIndex=function(e){var t=l[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])},m.updateInkBarStyles=d.debounce(z,100),m.updateTabOrder=d.debounce(function(){var e=m.tabs[m.selectedIndex],t=m.tabs[m.focusIndex];m.tabs=m.tabs.sort(function(e,t){return e.index-t.index}),m.selectedIndex=m.tabs.indexOf(e),m.focusIndex=m.tabs.indexOf(t)},100),m.getFocusedTabId=function(){var e=m.tabs[m.focusIndex];return e&&e.id?"tab-item-"+e.id:null},1===ge.version.major&&ge.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","$timeout","MdTabsPaginationService"],ge.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"],ge.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(c,u){return{require:"^?mdTabs",link:function(e,t,n,r){if(r){var i,o,a=function(){r.updatePagination(),r.updateInkBarStyles()};if("MutationObserver"in u){(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"],ge.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"],ge.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"],t.$inject=["$animate","$mdToast","$mdUtil","$mdMedia","$document","$q"];var m,p="ok";return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:t}).addPreset("simple",{argOption:"textContent",methods:["textContent","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",function(e){m=e});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(p)}}}function t(c,u,l,d,f,r){var h="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:function(e,r,i){m=i.textContent;var o=!d("gt-sm");r=l.extractElementByName(r,"md-toast",!0),i.element=r,i.onSwipe=function(e){var t=e.type.replace("$md.",""),n=t.replace("swipe","");"down"===n&&-1!==i.position.indexOf("top")&&!o||"up"===n&&(-1!==i.position.indexOf("bottom")||o)||("left"!==n&&"right"!==n||!o)&&(r.addClass("md-"+t),l.nextTick(u.cancel))},i.openClass=(t=i.position,d("gt-xs")?"md-toast-open-"+(-1<t.indexOf("top")?"top":"bottom"):"md-toast-open-bottom"),r.addClass(i.toastClass),i.parent.addClass(i.openClass),l.hasComputedStyle(i.parent,"position","static")&&i.parent.css("position","relative");var t;n=e.toast&&e.toast.actionKey?e.toast.actionKey:ve,f.on("keydown",function(e){"Escape"===e.key&&u.hide(!1),n&&e.key===n&&e.ctrlKey&&u.hide(p)}),r.on(h,i.onSwipe);var n;var a=!1,s=i.position.split(" ").map(function(e){if(e){var t="md-"+e;return"md-top"!==t&&"md-bottom"!==t||(a=!0),t}return"md-bottom"});a||s.push("md-bottom");r.addClass(o?"md-bottom":s.join(" ")),i.parent&&i.parent.addClass("md-toast-animating");return c.enter(r,i.parent).then(function(){i.parent&&i.parent.removeClass("md-toast-animating")})},onRemove:function(e,t,n){e.toast&&e.toast.actionKey&&f.off("keydown");t.off(h,n.onSwipe),n.parent&&n.parent.addClass("md-toast-animating");n.openClass&&n.parent.removeClass(n.openClass);return(!0===n.$destroy?r.when(t.remove()):c.leave(t)).then(function(){n.parent&&n.parent.removeClass("md-toast-animating"),l.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=ge.element('<div class="md-toast-content">');i.append(ge.element(n.children[r].childNodes)),n.children[r].appendChild(i[0])}return n.innerHTML}return e||""}}}}e.$inject=["$mdToast"],t.$inject=["$$interimElementProvider"],ge.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",t)}(),function(){function e(p,g,v,e,b,y){var $=ge.bind(null,v.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(f,h,m){h.addClass("_md"),e(h),v.nextTick(function(){h.addClass("_md-toolbar-transitions")},!1),ge.isDefined(m.mdScrollShrink)&&function(){var n,r,i=ge.noop,o=0,a=0,s=m.mdShrinkSpeedFactor||.5,c=p.throttle(t),u=v.debounce(e,5e3);f.$on("$mdContentLoaded",l),m.$observe("mdScrollShrink",function(e){var t=v.getSiblings(h,"md-content");!r&&t.length&&l(null,t[0]),!1===(e=f.$eval(e))?i():i=d()}),m.ngShow&&f.$watch(m.ngShow,e);m.ngHide&&f.$watch(m.ngHide,e);function l(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;u(),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"),y(e),function(){r.off("scroll",c),r.attr("scroll-shrink","false"),e()}):ge.noop}function e(){var e=-(n=h.prop("offsetHeight"))*s+"px";r.css({"margin-top":e,"margin-bottom":e}),t()}f.$on("$destroy",i)}()}}}e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate","$timeout"],ge.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e)}(),function(){function e(b,y,$,E,w,_,C,x){var M="focus touchstart mouseenter",k="blur touchcancel mouseleave",T={top:{x:C.xPosition.CENTER,y:C.yPosition.ABOVE},right:{x:C.xPosition.OFFSET_END,y:C.yPosition.CENTER},bottom:{x:C.xPosition.CENTER,y:C.yPosition.BELOW},left:{x:C.xPosition.OFFSET_START,y:C.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,u,l="md-tooltip-"+_.nextUid(),d=_.getParentWithPointerEvents(r),f=$.throttle(p),h=!1,m=null;function t(){s.mdZIndex=s.mdZIndex||100,s.mdDelay=s.mdDelay||0,T[s.mdDirection]||(s.mdDirection="bottom")}function n(e){var t=e||w(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",l))}function p(){t(),a&&a.panelEl&&a.panelEl.removeClass(i),i="md-origin-"+s.mdDirection,e=T[s.mdDirection],o=C.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,u=b(function(){s.mdVisible=g.value,g.queued=!1,u=null,s.visibleWatcher||v(s.mdVisible)},s.mdDelay)):_.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=ge.element(document.body),t=C.newPanelAnimation().openFrom(d).closeTo(d).withAnimation({open:"md-show",close:"md-hide"}),n={id:l,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=C.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 y){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(){m=document.activeElement===d[0]}function r(e){"focus"===e.type&&m?m=!1:s.mdVisible||(d.on(k,i),g(!0),"touchstart"===e.type&&d.one("touchend",function(){_.nextTick(function(){E.one("touchend",i)},!1)}))}function i(){((s.hasOwnProperty("mdAutohide")?s.mdAutohide:c.hasOwnProperty("mdAutohide"))||h||E[0].activeElement!==d[0])&&(u&&(b.cancel(u),g.queued=!1,u=null),d.off(k,i),d.triggerHandler("blur"),g(!1)),h=!1}function o(){h=!0}function a(){x.deregister("scroll",t,!0),x.deregister("blur",n),x.deregister("resize",f),d.off(M,r).off(k,i).off("mousedown",o),i(),e&&e.disconnect()}m=!1,x.register("scroll",t,!0),x.register("blur",n),x.register("resize",f),s.$on("$destroy",a),d.on("mousedown",o),d.on(M,r)}(),function(){if(r[0]&&"MutationObserver"in y){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(w.startSymbol())&&s.$watch(function(){return r.text().trim()},n);function t(){s.$destroy()}}()}}}e.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],ge.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",e).service("$$mdTooltipRegistry",function(){var o={},a=ge.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"],ge.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"],ge.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.ltr=!n.isRtl(this.$attrs),this.$attrs.mdTopIndex?(this.bindTopIndex=r(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),ge.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,ge.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 u=ge.bind(this,this.updateSize);e(ge.bind(this,function(){u();var e=n.debounce(u,10,null,!1),t=ge.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",u)}))}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_=ge.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",ge.bind(this,this.cleanupBlocks_))}function r(e){if(!ge.isFunction(e.getItemAtIndex)||!ge.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,ge.element(this.scroller).on("scroll wheel touchmove touchend",ge.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(){this.ltr||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var e=this.isHorizontal()?this.ltr?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(this.scrollSize<this.size)&&(e>this.scrollSize-this.size&&(e=this.scrollSize-this.size),e!==this.scrollOffset)){var t=this.repeater.getItemSize();if(t){var n=Math.max(0,Math.floor(e/t)-3),r=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||this.ltr?n*t:-n*t)+"px)";if(this.scrollOffset=e,this.offsetter.style.webkitTransform=r,this.offsetter.style.transform=r,this.bindTopIndex){var i=Math.floor(e/t);i!==this.topIndex&&i<this.repeater.getItemCount()&&(this.topIndex=i,this.bindTopIndex.assign(this.$scope,i),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=ge.bind(this,this.repeatListExpression_),this.container.register(this)},i.prototype.cleanupBlocks_=function(){ge.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_!==ge.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,ge.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,ge.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=ge.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 u=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[u]&&this.blocks[u].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var l=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(l)}.bind(this))}this.isVirtualRepeatUpdating_=!1},i.prototype.getBlock_=function(n){return this.pooledBlocks.length?this.pooledBlocks.pop():(this.transclude(ge.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"],ge.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",e)}(),ge.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 .md-autocomplete-suggestion,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion{color:"{{foreground-1}}"}.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-standard-list-container.md-THEME_NAME-theme .md-autocomplete-suggestion:hover,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme .md-autocomplete-suggestion: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]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused{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{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused{background-color:"{{accent-A700}}"}.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]):hover,.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.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused{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-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]):hover,.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.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused{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]):hover,.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.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused{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{color:"{{foreground-2}}"}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:"{{background-default}}"}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[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-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::-webkit-input-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::-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::placeholder{color:"{{foreground-3}}"}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}}";opacity:1}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-container button.md-chip-remove md-icon,md-chips.md-THEME_NAME-theme .md-chip-remove-container buttonmd-chip-remove md-icon{color:"{{foreground-2}}";fill:"{{foreground-2}}"}.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::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}";opacity:1}.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-dialog-actions{border-top-color:"{{foreground-4}}"}md-divider.md-THEME_NAME-theme{border-color:"{{foreground-4}}"}md-fab-speed-dial.md-THEME_NAME-theme md-fab-trigger .md-fab.md-button[disabled]{background-color:"{{foreground-4}}"}md-fab-speed-dial.md-THEME_NAME-theme md-fab-actions .md-fab-action-item .md-button.md-fab.md-raised.md-mini.md-focused,md-fab-speed-dial.md-THEME_NAME-theme md-fab-actions .md-fab-action-item .md-button.md-fab.md-raised.md-mini:hover{background-color:"{{background-500}}"}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:"{{background-default-contrast}}";border-color:"{{background-default-contrast-divider}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input::-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input::placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{background-default-contrast-secondary}}";opacity:1}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{background-default-contrast}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{background-default-contrast-secondary}}"}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:"{{background-default-contrast-secondary}}"}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:"{{background-default-contrast}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-ms-input-placeholder{color:"{{background-default-contrast-secondary}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::placeholder{color:"{{background-default-contrast-secondary}}"}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:"{{background-default-contrast-secondary}}";opacity:1}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{background-default-contrast-secondary}}"}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:"{{background-default-contrast-disabled}}";background-image:linear-gradient(90deg,"{{background-default-contrast-disabled}}" 0,"{{background-default-contrast-disabled}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{background-default-contrast-disabled}}" 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]{color:"{{foreground-3}}"}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-group.md-THEME_NAME-theme[disabled] .md-container .md-off{border-color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,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{color:"{{primary-color}}"}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-value{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon{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]):hover{background-color:"{{background-500-0.10}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]).md-focused,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus{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].md-focused,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.md-focused,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.54 }}";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{background-color:"{{foreground-4}}"}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-next-button md-icon,md-tabs.md-THEME_NAME-theme md-prev-button md-icon{color:"{{foreground-2}}"}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:"{{accent-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-500}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper md-next-button md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper md-prev-button md-icon{color:"{{accent-500-contrast-0.7}}"}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-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{accent-500-contrast}}";background:"{{accent-500-contrast}}"}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-next-button md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper md-prev-button 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-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-contrast-0.7}}"}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-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-primary.md-no-ink-bar-color>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-contrast}}";background:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-500}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper md-next-button md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper md-prev-button md-icon{color:"{{warn-500-contrast}}"}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-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{warn-500-contrast}}";background:"{{warn-500-contrast}}"}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-next-button md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-prev-button 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-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-contrast-0.7}}"}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-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme.md-no-ink-bar-color>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-contrast}}";background:"{{primary-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-500}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-next-button md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-prev-button md-icon{color:"{{accent-500-contrast-0.7}}"}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-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-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:"{{accent-500-contrast}}";background:"{{accent-500-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-500}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-next-button md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper md-prev-button md-icon{color:"{{warn-500-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-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-500-contrast-0.7}}"}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-500-contrast-1}}"}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-500-contrast-0.1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{warn-500-contrast}}";background:"{{warn-500-contrast}}"}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-input-container[md-no-float] .md-input{color:"{{primary-default-contrast}}";border-color:"{{primary-default-contrast-divider}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::-webkit-input-placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input:-ms-input-placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::-ms-input-placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::placeholder{color:"{{primary-default-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input:-moz-placeholder{color:"{{primary-default-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float] .md-input::-moz-placeholder{color:"{{primary-default-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::-webkit-input-placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input:-ms-input-placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::-ms-input-placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::placeholder{color:"{{primary-default-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input:-moz-placeholder{color:"{{primary-default-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float].md-input-focused .md-input::-moz-placeholder{color:"{{primary-default-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused .md-input,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-500}}";color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-500-contrast}}";fill:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-500-contrast-0.26}}";fill:"{{accent-500-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input{color:"{{accent-500-contrast}}";border-color:"{{accent-500-contrast-divider}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::-webkit-input-placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input:-ms-input-placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::-ms-input-placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::placeholder{color:"{{accent-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input:-moz-placeholder{color:"{{accent-500-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float] .md-input::-moz-placeholder{color:"{{accent-500-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::-webkit-input-placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input:-ms-input-placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::-ms-input-placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::placeholder{color:"{{accent-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input:-moz-placeholder{color:"{{accent-500-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float].md-input-focused .md-input::-moz-placeholder{color:"{{accent-500-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused .md-input,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-500}}";color:"{{warn-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-icon{color:"{{warn-500-contrast}}";fill:"{{warn-500-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input{color:"{{warn-500-contrast}}";border-color:"{{warn-500-contrast-divider}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::-webkit-input-placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input:-ms-input-placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::-ms-input-placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::placeholder{color:"{{warn-500-contrast-hint}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input:-moz-placeholder{color:"{{warn-500-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float] .md-input::-moz-placeholder{color:"{{warn-500-contrast-hint}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::-webkit-input-placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input:-ms-input-placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::-ms-input-placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::placeholder{color:"{{warn-500-contrast-secondary}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input:-moz-placeholder{color:"{{warn-500-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float].md-input-focused .md-input::-moz-placeholder{color:"{{warn-500-contrast-secondary}}";opacity:1}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused .md-input,md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn md-input-container[md-no-float]:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-500-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.2.2"}},function(u,e){angular.module("ngCsv.config",[]).value("ngCsv.config",{debug:!0}).config(["$compileProvider",function(e){angular.isDefined(e.urlSanitizationWhitelist)?e.urlSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|data):/):e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|data):/)}]),angular.module("ngCsv.directives",["ngCsv.services"]),angular.module("ngCsv.services",[]),angular.module("ngCsv",["ngCsv.config","ngCsv.services","ngCsv.directives","ngSanitize"]),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ngCsv"),angular.module("ngCsv.services").service("CSV",["$q",function(n){var t={"\\t":"\t","\\b":"\b","\\v":"\v","\\f":"\f","\\r":"\r"};this.stringifyField=function(e,t){return"locale"===t.decimalSep&&this.isFloat(e)?e.toLocaleString():"."!==t.decimalSep&&this.isFloat(e)?e.toString().replace(".",t.decimalSep):"string"==typeof e?(e=e.replace(/"/g,'""'),(t.quoteStrings||-1<e.indexOf(",")||-1<e.indexOf("\n")||-1<e.indexOf("\r"))&&(e=t.txtDelim+e+t.txtDelim),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},this.isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},this.stringify=function(e,s){var c=n.defer(),u=this,l="",d="",t=n.when(e).then(function(e){var t,n;angular.isDefined(s.header)&&s.header&&(t=[],angular.forEach(s.header,function(e,t){this.push(u.stringifyField(e,s))},t),n=t.join(s.fieldSep?s.fieldSep:","),d+=n+"\r\n");var a=[];if(angular.isArray(e)?a=e:angular.isFunction(e)&&(a=e()),angular.isDefined(s.label)&&s.label&&"boolean"==typeof s.label){var r,i;r=[];var o=s.columnOrder?s.columnOrder:a[0];angular.forEach(o,function(e,t){var n=s.columnOrder?e:t;this.push(u.stringifyField(n,s))},r),i=r.join(s.fieldSep?s.fieldSep:","),d+=i+"\r\n"}angular.forEach(a,function(e,t){var n,r,i=angular.copy(a[t]);r=[];var o=s.columnOrder?s.columnOrder:i;angular.forEach(o,function(e,t){var n=s.columnOrder?i[e]:e;this.push(u.stringifyField(n,s))},r),n=r.join(s.fieldSep?s.fieldSep:","),d+=t<a.length?n+"\r\n":n}),s.addByteOrderMarker&&(l+="\ufeff"),l+=d,c.resolve(l)});return"function"==typeof t.catch&&t.catch(function(e){c.reject(e)}),c.promise},this.isSpecialChar=function(e){return void 0!==t[e]},this.getSpecialChar=function(e){return t[e]}}]),angular.module("ngCsv.directives").directive("ngCsv",["$parse","$q","CSV","$document","$timeout",function(e,a,s,o,c){return{restrict:"AC",scope:{data:"&ngCsv",filename:"@filename",header:"&csvHeader",columnOrder:"&csvColumnOrder",txtDelim:"@textDelimiter",decimalSep:"@decimalSeparator",quoteStrings:"@quoteStrings",fieldSep:"@fieldSeparator",lazyLoad:"@lazyLoad",addByteOrderMarker:"@addBom",ngClick:"&",charset:"@charset",label:"&csvLabel"},controller:["$scope","$element","$attrs","$transclude",function(r,i,o,e){r.csv="",angular.isDefined(r.lazyLoad)&&"true"==r.lazyLoad||angular.isArray(r.data)&&r.$watch("data",function(e){r.buildCSV()},!0),r.getFilename=function(){return r.filename||"download.csv"},r.buildCSV=function(){var e,t=a.defer(),n=null;return i.addClass(o.ngCsvLoadingClass||"ng-csv-loading"),n=r.data(),angular.isFunction(n)&&(n=n()),s.stringify(n,(e={txtDelim:r.txtDelim?r.txtDelim:'"',decimalSep:r.decimalSep?r.decimalSep:".",quoteStrings:r.quoteStrings,addByteOrderMarker:r.addByteOrderMarker},angular.isDefined(o.csvHeader)&&(e.header=r.$eval(r.header)),angular.isDefined(o.csvColumnOrder)&&(e.columnOrder=r.$eval(r.columnOrder)),angular.isDefined(o.csvLabel)&&(e.label=r.$eval(r.label)),e.fieldSep=r.fieldSep?r.fieldSep:",",e.fieldSep=s.isSpecialChar(e.fieldSep)?s.getSpecialChar(e.fieldSep):e.fieldSep,e)).then(function(e){r.csv=e,i.removeClass(o.ngCsvLoadingClass||"ng-csv-loading"),t.resolve(e)}),r.$apply(),t.promise}}],link:function(i,e,t){e.bind("click",function(e){i.buildCSV().then(function(e){!function(){var e=i.charset||"utf-8",t=new Blob([i.csv],{type:"text/csv;charset="+e+";"});if(u.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(t,i.getFilename());else{var n=angular.element('<div data-tap-disabled="true"><a></a></div>'),r=angular.element(n.children()[0]);r.attr("href",u.URL.createObjectURL(t)),r.attr("download",i.getFilename()),o.find("body").append(n),c(function(){r[0].click(),r.remove()},null)}}()}),i.$apply()})}}}])}(window,document),angular.module("ngRateIt",["ng"]).directive("ngRateIt",["$q",function(r){"use strict";return{scope:{ngModel:"=",min:"=?min",max:"=?max",step:"=?step",readOnly:"&?readOnly",pristine:"=?pristine",resetable:"&?resetable",starWidth:"=?starWidth",starHeight:"=?starHeight",canelWidth:"=?canelWidth",cancelHeight:"=?cancelHeight",rated:"&?rated",reset:"&?reset",beforeRated:"&?beforeRated",beforeReset:"&?beforeReset"},templateUrl:"ngRateIt/ng-rate-it.html",require:"ngModel",replace:!0,link:function(e,t,n){n.readOnly||(e.readOnly=function(){return!1}),n.resetable||(e.resetable=function(){return!0}),n.beforeRated||(e.beforeRated=function(){var e=r.defer();return e.resolve(),e.promise}),n.rated||(e.rated=function(){}),n.beforeReset||(e.beforeReset=function(){var e=r.defer();return e.resolve(),e.promise}),n.reset||(e.reset=function(){})},controller:"ngRateItController"}}]).controller("ngRateItController",["$scope","$timeout",function(n,r){"use strict";n.isTouch=!!window.hasOwnProperty("ontouchstart")||0<window.navigator.msMaxTouchPoints,n.orgValue=angular.copy(n.ngModel),n.min=n.min||0,n.max=n.max||5,n.step=n.step||.5,n.pristine=n.orgValue===n.ngModel,n.starWidth=n.starWidth||16,n.starPartWidth=n.starWidth*n.step,n.starHeight=n.starHeight||16,n.canelWidth=n.canelWidth||n.starWidth,n.cancelHeight=n.cancelHeight||n.starHeight;var t=n.max-n.min,i=t/n.step,e=n.$watch("ngModel",function(){n.pristine=n.orgValue===n.ngModel}),o=function(e){return(e+1)/i*t};n.getStartParts=function(){return new Array(i)},n.getStarOffset=function(e){var t=1/n.step;return-n.starWidth/t*(e%t)},n.isSelected=function(e){return o(e)<=n.ngModel-n.min},n.removeRating=function(){n.resetable()&&!n.readOnly()&&n.beforeReset({rating:n.ngModel}).then(function(){n.ngModel=n.min,n.reset({rating:n.ngModel})})},n.setValue=function(e){if(!n.readOnly()){var t=angular.copy(n.min+o(e));n.beforeRated({rating:t}).then(function(){n.ngModel=t,r(function(){n.rated({rating:n.ngModel})})})}},n.$on("$destroy",function(){e()})}]).run(["$templateCache",function(e){"use strict";e.put("ngRateIt/ng-rate-it.html",'<div class="ngrateit" ng-class="{\'ngrateit-readonly\': readOnly()}"><a ng-if="!readOnly() && resetable()"ng-click="removeRating()"class="ngrateit-reset ngrateit-star"ng-style="{\'width\': canelWidth+\'px\', \'height\':cancelHeight+\'px\'}"></a><div ng-if="!hide" id="origin" class="ngrateit-rating" ng-class="{\'ngrateit-hashover\':!isTouch}"><span class="ngrateit-star ngrateit-bg-star"ng-repeat="i in getStartParts() track by $index" ng-class="{\'ngrateit-selected\': isSelected($index) }"ng-click="setValue($index)"'+"ng-style=\"{'width': starPartWidth+'px', 'height':starHeight+'px', 'background-position': getStarOffset($index)+'px 0'}\"></span></div></div>")}]);
\ No newline at end of file