!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function br(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in ee)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function it(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[pr.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=it(n);return!u(n)&&!tt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function uu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function ut(n){return n}function fi(n){throw n;}function fu(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function ce(n,t){return t.toUpperCase()}function y(n){return n.replace(se,"ms-").replace(he,ce)}function pt(){this.expando=i.expando+pt.uid++}function ou(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:le.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function hu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&wt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function et(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&kt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=di[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),di[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function gi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function vu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===it(e))i.merge(y,e.nodeType?[e]:e);else if(au.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(cu.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=ft(e),o=s(c.appendChild(e),"script"),w&&gi(o),r)for(v=0;e=o[v++];)lu.test(e.type||"")&&r.push(e);return c}function ot(){return!0}function st(){return!1}function we(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function nr(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)nr(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=st;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=b.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ot)}function pu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function no(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function to(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wu(n,t){var u,c,f,s,h,l,a,e;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),e=s.events))for(f in delete h.handle,h.events={},e)for(u=0,c=e[f].length;u<c;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ht(n,t,f,o){t=yr.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||1<y&&"string"==typeof p&&!e.checkClone&&de.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ht(r,t,f,o)});if(y&&(w=(a=vu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=w),w||o)){for(v=(l=i.map(s(a,"script"),no)).length;c<y;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=l[l.length-1].ownerDocument,i.map(l,to),c=0;c<v;c++)h=l[c],lu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")}):br(h.textContent.replace(ge,""),h,b))}return n}function bu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&ft(u)&&gi(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,f,u=n.style;return(r=r||ci(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||ft(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&tr.test(f)&&io.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function ku(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function ir(n){var t=i.cssProps[n]||nf[n];return t||(n in gu?n:nf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=du.length;t--;)if((n=du[t]+i)in gu)return n}(n)||n)}function uf(n,t,i){var r=wt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function rr(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+w[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+w[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),"padding"!==r?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function ff(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(tr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+rr(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function ur(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ur):n.setTimeout(ur,i.fx.interval),i.fx.tick())}function hf(){return n.setTimeout(function(){ct=void 0}),ct=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=w[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function cf(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=ct||hf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:ct||hf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,cf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){return(n.match(l)||[]).join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function fr(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function hr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):hr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==it(t))u(n,t);else for(f in t)hr(n+"["+f+"]",t[f],r,u)}function df(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function gf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===cr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ar(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var d=[],f=n.document,ue=Object.getPrototypeOf,b=d.slice,yr=d.concat,yi=d.push,ii=d.indexOf,ri={},pr=ri.toString,ui=ri.hasOwnProperty,wr=ui.toString,fe=wr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},tt=function(n){return null!=n&&n===n.window},ee={type:!0,src:!0,nonce:!0,noModule:!0},kr="3.4.1",i=function(n,t){return new i.fn.init(n,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,k,wi,nu,tu,iu,ru,l,eu,ei,yt,kt,ki,di,gt,si,au,ct,li,lt,ef,of,sf,lf,at,af,vf,yf,er,or,ne,vt,te,vr,vi,ie,re;i.fn=i.prototype={jquery:kr,constructor:i,length:0,toArray:function(){return b.call(this)},get:function(n){return null==n?b.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:d.sort,splice:d.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(kr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==pr.call(n))&&(!(t=ue(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&wr.call(i)===fe)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},globalEval:function(n,t){br(n,{nonce:t&&t.nonce})},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},trim:function(n){return null==n?"":(n+"").replace(oe,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return yr.apply([],f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=d[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ri["[object "+t+"]"]=t.toLowerCase()});k=function(n){function u(n,t,r,u){var s,p,l,v,w,d,g,y=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==a&&(w=ar.exec(n)))if(s=w[1]){if(9===a){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(y&&(l=y.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(w[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=w[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(g=n,y=t,1===a&&er.test(n)){for((v=t.getAttribute("id"))?v=v.replace(yi,pi):t.setAttribute("id",v=f),p=(d=ft(n)).length;p--;)d[p]="#"+v+" "+pt(d[p]);g=d.join(",");y=ti.test(n)&&ri(t.parentNode)||t}try{return k.apply(r,y.querySelectorAll(g)),r}catch(t){lt(n,!0)}finally{v===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function ki(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function di(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=gi++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(l=(a=t[f]||(t[f]={}))[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if((l[e]=y)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,e,o){return r&&!r[f]&&(r=fi(r)),e&&!e[f]&&(e=fi(e,o)),l(function(f,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=f||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!f&&t?d:bt(d,w,n,s,h),c=i?e||(f?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(f){if(e||n){if(e){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);e(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=e?nt(f,v):w[l])&&(f[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),e?e(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[wt(ui(e),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(e),1<i&&pt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&pt(n))}e.push(u)}return ui(e)}var rt,e,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,gi=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},nr={}.hasOwnProperty,g=[],tr=g.pop,ir=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",rr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ur=new RegExp("^"+r+"*,"+r+"*"),fr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!=r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},yi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},wi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){ir.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in e=u.support={},oi=u.isXML=function(n){var i=n.namespaceURI,t=(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement&&(s=(i=l).documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",wi,!1):u.attachEvent&&u.attachEvent("onunload",wi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0}),i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&nr.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(yi,pi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(dt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&or.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(rr," ")+" ").indexOf(i):"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((e?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):1<r.length?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return sr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:ki(!1),disabled:ki(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:t<i?t:i;0<=--r;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return di.prototype=t.filters=t.pseudos,t.setFilters=new di,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(f=ur.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=fr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},kt=u.compile=function(n,r){var s,c,a,o,y,p,w=[],d=[],e=li[n+" "];if(!e){for(r||(r=ft(n)),s=r.length;s--;)(e=ei(r[s]))[f]?w.push(e):d.push(e);(e=li(n,(c=d,o=0<(a=w).length,y=0<c.length,p=function(n,r,f,e,s){var l,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r===i||r||s);p!==ft&&null!=(l=rt[p]);p++){if(y&&l){for(nt=0,r||l.ownerDocument===i||(b(l),f=!h);d=c[nt++];)if(d(l,r||i,f)){e.push(l);break}s&&(v=ut)}o&&((l=!d&&l)&&g--,n&&tt.push(l))}if(g+=p,o&&p!==g){for(nt=0;d=a[nt++];)d(tt,w,r,f);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=tr.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+a.length&&u.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?l(p):p))).selector=n}return e},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(dt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=k;i.expr=k.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=k.uniqueSort;i.text=k.getText;i.isXMLDoc=k.isXML;i.contains=k.contains;i.escapeSelector=k.escape;var rt=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},dr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},gr=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&gr.test(n)?i(n):n||[],!1).length}});tu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||nu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:tu.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;nu=i(f);iu=/^(?:parents|prev(?:Until|All))/;ru={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!gr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return uu(n,"nextSibling")},prev:function(n){return uu(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return dr((n.parentNode||{}).firstChild,n)},children:function(n){return dr(n.firstChild)},contents:function(n){return"undefined"!=typeof n.contentDocument?n.contentDocument:(c(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(ru[n]||i.uniqueSort(f),iu.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==it(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,fi,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=b.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?b.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(fu(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)fu(f[t],s(t),r.reject);return r.promise()}});eu=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&eu.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===it(r))for(h in e=!0,r)p(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},se=/^-ms-/,he=/-([a-z])/g;yt=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};pt.uid=1;pt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},yt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new pt,o=new pt,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),ou(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=ou(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var su=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=new RegExp("^(?:([+-])=|)("+su+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],bt=f.documentElement,ft=function(n){return i.contains(n.ownerDocument,n)},ve={composed:!0};bt.getRootNode&&(ft=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ve)===n.ownerDocument});kt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&ft(n)&&"none"===i.css(n,"display")};ki=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];for(u in f=i.apply(n,r||[]),t)n.style[u]=e[u];return f};di={};i.fn.extend({show:function(){return et(this,!0)},hide:function(){return et(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var dt=/^(?:checkbox|radio)$/i,cu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,lu=/^$|^module$|\/(?:java|ecma)script/i,h={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.optgroup=h.option;h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;au=/<|&#?\w+;/;gt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");gt.appendChild(si);e.checkClone=gt.cloneNode(!0).cloneNode(!0).lastChild.checked;gt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!gt.cloneNode(!0).lastChild.defaultValue;var ye=/^key/,pe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,v,k,y,w,h,s,c,o,b,d,a=r.get(n);if(a)for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(bt,e),u.guid||(u.guid=i.guid++),(y=a.events)||(y=a.events={}),(v=a.handle)||(v=a.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=yu.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=y[o])||((c=y[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,v)||n.addEventListener&&n.addEventListener(o,v)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=yu.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,t=i.event.fix(n),s=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var t=this||n;return dt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ot),!1},trigger:function(n){var t=this||n;return dt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return dt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ot:st,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:st,isPropagationStopped:st,isImmediatePropagationStopped:st,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ot;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ot;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ot;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.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:function(n){var t=n.button;return null==n.which&&ye.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&pe.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,we),!1},trigger:function(){return hi(this,n),!0},delegateType:t}});i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return nr(this,n,t,i,r)},one:function(n,t,i,r){return nr(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=st),this.each(function(){i.event.remove(this,n,r,t)})}});var be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ke=/<script|<style|<link/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,ge=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(be,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=ft(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&dt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)wu(o[u],f[u]);else wu(n,h);return 0<(f=s(h,"script")).length&&gi(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(yt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return bu(this,n,!0)},remove:function(n){return bu(this,n)},text:function(n){return p(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return ht(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pu(this,n).appendChild(n)})},prepend:function(){return ht(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ht(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ht(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!ke.test(n)&&!h[(cu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ht(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),yi.apply(f,u.get());return this.pushStack(f)}});var tr=new RegExp("^("+su+")(?!px)[a-z%]+$","i"),ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},io=new RegExp(w.join("|"),"i");!function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";bt.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s="1%"!==i.top;a=12===u(i.marginLeft);t.style.right="60%";l=36===u(i.right);h=36===u(i.width);t.style.position="absolute";c=12===u(t.offsetWidth/3);bt.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))}();var du=["Webkit","Moz","ms"],gu=f.createElement("div").style,nf={};var ro=/^(none|table(?!-c[ea]).+)/,tf=/^--/,uo={position:"absolute",visibility:"hidden",display:"block"},rf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},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(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=tf.test(t),s=n.style;if(l||(t=ir(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=wt.exec(r))&&f[1]&&(r=hu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return tf.test(t)||(t=ir(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in rf&&(f=rf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!ro.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ff(n,t,u):ki(n,uo,function(){return ff(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?rr(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-rr(n,t,"border",!1,f)-.5)),o&&(s=wt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),uf(0,r,o)}}});i.cssHooks.marginLeft=ku(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-ki(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=uf)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[ir(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=a.prototype.init;i.fx.step={};of=/^(?:toggle|show|hide)$/;sf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return hu(i.elem,n,wt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],of.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(et([n],!0),o=n.style.display||o,l=i.css(n,"display"),et([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&et([n],!0),v.done(function(){for(f in a||et([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=cf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&sf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(ct=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();ct=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,ur())};i.fx.stop=function(){li=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};lt=f.createElement("input");ef=f.createElement("select").appendChild(f.createElement("option"));lt.type="checkbox";e.checkOn=""!==lt.value;e.optSelected=ef.selected;(lt=f.createElement("input")).value="t";lt.type="radio";e.radioValue="t"===lt.value;at=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?lf:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});lf={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=at[t]||i.find.attr;at[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=at[u],at[u]=f,f=null!=r(n,t,i)?u:null,at[u]=e),f}});af=/^(?:input|select|textarea|button)$/i;vf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,1<arguments.length)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):af.test(n.nodeName)||vf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if((o=fr(n)).length)while(t=this[c++])if(f=nt(t),r=1===t.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=g(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if((o=fr(n)).length)while(r=this[c++])if(f=nt(r),t=1===r.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)while(-1<t.indexOf(" "+e+" "))t=t.replace(" "+e+" "," ");f!==(h=g(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=fr(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=nt(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+g(nt(t))+" ").indexOf(i))return!0;return!1}});yf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(yf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;er=/^(?:focusinfocus|focusoutblur)$/;or=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!er.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,er.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&yt(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!yt(o)||v&&u(o[h])&&!tt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,or),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,or),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ti=n.location,pf=Date.now(),sr=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var fo=/\[\]$/,wf=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)hr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!dt.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(wf,"\r\n")}}):{name:t.name,value:r.replace(wf,"\r\n")}}).get()}});var so=/%20/g,ho=/#.*$/,co=/([?&])_=[^&]*/,lo=/^(.*?):[ \t]*([^\r\n]*)$/gm,ao=/^(?:GET|HEAD)$/,vo=/^\/\//,bf={},cr={},kf="*/".concat("*"),lr=f.createElement("a");return lr.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kf,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ar(ar(n,i.ajaxSettings),t):ar(i.ajaxSettings,n)},ajaxPrefilter:df(bf),ajaxTransport:df(cr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=lo.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||ti.href)+"").replace(vo,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=lr.protocol+"//"+lr.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),gf(bf,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!ao.test(u.type),o=u.url.replace(ho,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(so,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(sr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(co,"$1"),p=(sr.test(o)?"&":"?")+"_="+pf+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+kf+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=gf(cr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n,t){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},ne={0:200,1223:204},vt=i.ajaxSettings.xhr(),e.cors=!!vt&&"withCredentials"in vt,e.ajax=vt=!!vt,i.ajaxTransport(function(t){var i,r;if(e.cors||vt&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(ne[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(u){if(i)throw u;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),vr=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=vr.pop()||i.expando+"_"+pf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(sr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,vr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((te=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===te.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=vu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||bt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=ku(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),tr.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.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(n,t){i.fn[t]=function(n,i){return 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=b.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(b.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),ie=n.jQuery,re=n.$,i.noConflict=function(t){return n.$===i&&(n.$=re),t&&n.jQuery===i&&(n.jQuery=ie),i},t||(n.jQuery=n.$=i),i});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mdc=t():n.mdc=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=56)}([function(n,t){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var i=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,n);this.adapter_=t}return i(n,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),i(n,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),n}();t.a=u},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var f=i(0),r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=function(){function n(t){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;u(this,n);this.root_=t;for(var r=arguments.length,e=Array(r>2?r-2:0),i=2;i<r;i++)e[i-2]=arguments[i];this.initialize.apply(this,e);this.foundation_=void 0===f?this.getDefaultFoundation():f;this.foundation_.init();this.initialSyncWithDOM()}return r(n,null,[{key:"attachTo",value:function(t){return new n(t,new f.a)}}]),r(n,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class");}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(n,t){this.root_.addEventListener(n,t)}},{key:"unlisten",value:function(n,t){this.root_.removeEventListener(n,t)}},{key:"emit",value:function(n,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(n,{detail:t,bubbles:r}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(n,r,!1,t));this.root_.dispatchEvent(i)}}]),n}();t.a=e},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCRipple",function(){return l});i.d(t,"RippleCapableSurface",function(){return u});var h=i(1),e=(i(24),i(59)),r=i(6);i.d(t,"MDCRippleFoundation",function(){return e.a});i.d(t,"util",function(){return r});var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function(n){function t(){var r,i;f(this,t);for(var u=arguments.length,e=Array(u),n=0;n<u;n++)e[n]=arguments[n];return i=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(e))),i.disabled=!1,i.unbounded_,i}return s(t,n),c(t,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new e.a(t.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(n){this.unbounded_=Boolean(n);this.setUnbounded_()}}],[{key:"attachTo",value:function(n){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=f.isUnbounded,r=void 0===i?void 0:i,u=new t(n);return void 0!==r&&(u.unbounded=r),u}},{key:"createAdapter",value:function(n){var t=r.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return r.supportsCssVariables(window)},isUnbounded:function(){return n.unbounded},isSurfaceActive:function(){return n.root_[t](":active")},isSurfaceDisabled:function(){return n.disabled},addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},containsEventTarget:function(t){return n.root_.contains(t)},registerInteractionHandler:function(t,i){return n.root_.addEventListener(t,i,r.applyPassive())},deregisterInteractionHandler:function(t,i){return n.root_.removeEventListener(t,i,r.applyPassive())},registerDocumentInteractionHandler:function(n,t){return document.documentElement.addEventListener(n,t,r.applyPassive())},deregisterDocumentInteractionHandler:function(n,t){return document.documentElement.removeEventListener(n,t,r.applyPassive())},registerResizeHandler:function(n){return window.addEventListener("resize",n)},deregisterResizeHandler:function(n){return window.removeEventListener("resize",n)},updateCssVariable:function(t,i){return n.root_.style.setProperty(t,i)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),t}(h.a),u=function n(){f(this,n)};u.prototype.root_;u.prototype.unbounded;u.prototype.disabled},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),u=i(1);i.d(t,"MDCFoundation",function(){return r.a});i.d(t,"MDCComponent",function(){return u.a})},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCSelectionControlState",function(){return f});i.d(t,"MDCSelectionControl",function(){return e});var u=(i(2),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}()),f=void 0,e=function(){function n(){r(this,n)}return u(n,[{key:"ripple",get:function(){}}]),n}()},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"addScrollAreaClass",value:function(){}},{key:"eventTargetMatchesSelector",value:function(){}},{key:"setScrollAreaStyleProperty",value:function(){}},{key:"setScrollContentStyleProperty",value:function(){}},{key:"getScrollContentStyleValue",value:function(){}},{key:"setScrollAreaScrollLeft",value:function(){}},{key:"getScrollAreaScrollLeft",value:function(){}},{key:"getScrollContentOffsetWidth",value:function(){}},{key:"getScrollAreaOffsetWidth",value:function(){}},{key:"computeScrollAreaClientRect",value:function(){}},{key:"computeScrollContentClientRect",value:function(){}},{key:"computeHorizontalScrollbarHeight",value:function(){}}])}()},function(n,t,i){"use strict";function f(n){var r=n.document,t=r.createElement("div"),i,u;return t.className="mdc-ripple-surface--test-edge-var-bug",r.body.appendChild(t),i=n.getComputedStyle(t),u=null!==i&&"solid"===i.borderTopStyle,t.remove(),u}function e(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=r,u,e;return"boolean"==typeof r&&!i?t:n.CSS&&"function"==typeof n.CSS.supports?(u=n.CSS.supports("--css-vars","yes"),e=n.CSS.supports("(--css-vars: yes)")&&n.CSS.supports("color","#00000000"),t=!(!u&&!e||f(n)),i||(r=t),t):void 0}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n;if(void 0===u||i){n=!1;try{t.document.addEventListener("test",null,{get passive(){n=!0}})}catch(t){}u=n}return!!u&&{passive:!0}}function s(n){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(t){return t in n}).pop()}function h(n,t,i){var o=t.x,s=t.y,f=o+i.left,e=s+i.top,r=void 0,u=void 0;return"touchstart"===n.type?(r=n.changedTouches[0].pageX-f,u=n.changedTouches[0].pageY-e):(r=n.pageX-f,u=n.pageY-e),{x:r,y:u}}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"supportsCssVariables",function(){return e});i.d(t,"applyPassive",function(){return o});i.d(t,"getMatchesProperty",function(){return s});i.d(t,"getNormalizedEventCoords",function(){return h});var r=void 0,u=void 0},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"setStyle",value:function(){}},{key:"getTopAppBarHeight",value:function(){}},{key:"registerNavigationIconInteractionHandler",value:function(){}},{key:"deregisterNavigationIconInteractionHandler",value:function(){}},{key:"notifyNavigationIconClicked",value:function(){}},{key:"registerScrollHandler",value:function(){}},{key:"deregisterScrollHandler",value:function(){}},{key:"registerResizeHandler",value:function(){}},{key:"deregisterResizeHandler",value:function(){}},{key:"getViewportScrollY",value:function(){}},{key:"getTotalActionItems",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"c",function(){return f});i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed"},u={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},f={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"}},function(n,t,i){"use strict";function e(n){return void 0!==n.document&&"function"==typeof n.document.createElement}function o(n){return n in r||n in f}function s(n,t,i){return t[n].styleProperty in i.style?t[n].noPrefix:t[n].webkitPrefix}function u(n,t){if(!e(n)||!o(t))return t;var i=t in r?r:f,u=n.document.createElement("div");return i===r?s(t,i,u):i[t].noPrefix in u.style?i[t].noPrefix:i[t].webkitPrefix}function h(n,t){return u(n,t)}function c(n,t){return u(n,t)}i.d(t,"c",function(){return l});i.d(t,"a",function(){return h});i.d(t,"b",function(){return c});var r={animationstart:{noPrefix:"animationstart",webkitPrefix:"webkitAnimationStart",styleProperty:"animation"},animationend:{noPrefix:"animationend",webkitPrefix:"webkitAnimationEnd",styleProperty:"animation"},animationiteration:{noPrefix:"animationiteration",webkitPrefix:"webkitAnimationIteration",styleProperty:"animation"},transitionend:{noPrefix:"transitionend",webkitPrefix:"webkitTransitionEnd",styleProperty:"transition"}},f={animation:{noPrefix:"animation",webkitPrefix:"-webkit-animation"},transform:{noPrefix:"transform",webkitPrefix:"-webkit-transform"},transition:{noPrefix:"transition",webkitPrefix:"-webkit-transition"}},l=["transform","WebkitTransform","MozTransform","OTransform","MSTransform"]},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"setAttr",value:function(){}},{key:"activateIndicator",value:function(){}},{key:"deactivateIndicator",value:function(){}},{key:"notifyInteracted",value:function(){}},{key:"getOffsetLeft",value:function(){}},{key:"getOffsetWidth",value:function(){}},{key:"getContentOffsetLeft",value:function(){}},{key:"getContentOffsetWidth",value:function(){}},{key:"focus",value:function(){}}])}()},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u=(i(5),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}()),f=function(){function n(t){r(this,n);this.adapter_=t}return u(n,[{key:"getScrollPositionRTL",value:function(){}},{key:"scrollToRTL",value:function(){}},{key:"incrementScrollRTL",value:function(){}},{key:"getAnimatingScrollPosition",value:function(){}}]),n}();t.a=f},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r=i(8),s=(i(7),i(0)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.navClickHandler_=function(){return i.adapter_.notifyNavigationIconClicked()},i.scrollHandler_=function(){},i}return o(t,n),u(t,null,[{key:"strings",get:function(){return r.c}},{key:"cssClasses",get:function(){return r.a}},{key:"numbers",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{hasClass:function(){},addClass:function(){},removeClass:function(){},setStyle:function(){},getTopAppBarHeight:function(){},registerNavigationIconInteractionHandler:function(){},deregisterNavigationIconInteractionHandler:function(){},notifyNavigationIconClicked:function(){},registerScrollHandler:function(){},deregisterScrollHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}}}]),u(t,[{key:"init",value:function(){this.adapter_.registerNavigationIconInteractionHandler("click",this.navClickHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterNavigationIconInteractionHandler("click",this.navClickHandler_)}},{key:"initScrollHandler",value:function(){this.adapter_.registerScrollHandler(this.scrollHandler_)}},{key:"destroyScrollHandler",value:function(){this.adapter_.deregisterScrollHandler(this.scrollHandler_)}}]),t}(s.a);t.a=c},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"elementHasClass",value:function(){}},{key:"computeBoundingRect",value:function(){}},{key:"saveFocus",value:function(){}},{key:"restoreFocus",value:function(){}},{key:"focusActiveNavigationItem",value:function(){}},{key:"notifyClose",value:function(){}},{key:"notifyOpen",value:function(){}},{key:"trapFocus",value:function(){}},{key:"releaseFocus",value:function(){}}])}()},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCList",function(){return l});var s=i(1),u=i(15),r=(i(32),i(33));i.d(t,"MDCListFoundation",function(){return u.a});var h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function(n){function t(){var r,n;f(this,t);for(var u=arguments.length,o=Array(u),i=0;i<u;i++)o[i]=arguments[i];return n=e(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(o))),n.handleKeydown_,n.handleClick_,n.focusInEventListener_,n.focusOutEventListener_,n}return o(t,n),c(t,[{key:"destroy",value:function(){this.root_.removeEventListener("keydown",this.handleKeydown_);this.root_.removeEventListener("click",this.handleClick_);this.root_.removeEventListener("focusin",this.focusInEventListener_);this.root_.removeEventListener("focusout",this.focusOutEventListener_)}},{key:"initialSyncWithDOM",value:function(){this.handleClick_=this.foundation_.handleClick.bind(this.foundation_);this.handleKeydown_=this.handleKeydownEvent_.bind(this);this.focusInEventListener_=this.handleFocusInEvent_.bind(this);this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this);this.root_.addEventListener("keydown",this.handleKeydown_);this.root_.addEventListener("focusin",this.focusInEventListener_);this.root_.addEventListener("focusout",this.focusOutEventListener_);this.layout();this.initializeListType()}},{key:"layout",value:function(){var n=this.root_.getAttribute(r.b.ARIA_ORIENTATION);this.vertical=n!==r.b.ARIA_ORIENTATION_HORIZONTAL;[].slice.call(this.root_.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach(function(n){n.setAttribute("tabindex",-1)});[].slice.call(this.root_.querySelectorAll(r.b.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(n){return n.setAttribute("tabindex",-1)})}},{key:"getListItemIndex_",value:function(n){for(var t=n.target,i=-1;!t.classList.contains(r.a.LIST_ITEM_CLASS)&&!t.classList.contains(r.a.ROOT);)t=t.parentElement;return t.classList.contains(r.a.LIST_ITEM_CLASS)&&(i=this.listElements_.indexOf(t)),i}},{key:"handleFocusInEvent_",value:function(n){var t=this.getListItemIndex_(n);this.foundation_.handleFocusIn(n,t)}},{key:"handleFocusOutEvent_",value:function(n){var t=this.getListItemIndex_(n);this.foundation_.handleFocusOut(n,t)}},{key:"handleKeydownEvent_",value:function(n){var t=this.getListItemIndex_(n);t>=0&&this.foundation_.handleKeydown(n,n.target.classList.contains(r.a.LIST_ITEM_CLASS),t)}},{key:"initializeListType",value:function(){var n=this.root_.querySelector("."+r.a.LIST_ITEM_ACTIVATED_CLASS+", ."+r.a.LIST_ITEM_SELECTED_CLASS);n&&(n.classList.contains(r.a.LIST_ITEM_ACTIVATED_CLASS)&&this.foundation_.setUseActivatedClass(!0),this.singleSelection=!0,this.selectedIndex=this.listElements_.indexOf(n))}},{key:"getDefaultFoundation",value:function(){var n=this;return new u.a(h({getListItemCount:function(){return n.listElements_.length},getFocusedElementIndex:function(){return n.listElements_.indexOf(document.activeElement)},setAttributeForElementIndex:function(t,i,r){var u=n.listElements_[t];u&&u.setAttribute(i,r)},removeAttributeForElementIndex:function(t,i){var r=n.listElements_[t];r&&r.removeAttribute(i)},addClassForElementIndex:function(t,i){var r=n.listElements_[t];r&&r.classList.add(i)},removeClassForElementIndex:function(t,i){var r=n.listElements_[t];r&&r.classList.remove(i)},focusItemAtIndex:function(t){var i=n.listElements_[t];i&&i.focus()},setTabIndexForListItemChildren:function(t,i){var u=n.listElements_[t];[].slice.call(u.querySelectorAll(r.b.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(n){return n.setAttribute("tabindex",i)})},followHref:function(t){var i=n.listElements_[t];i&&i.href&&i.click()}}))}},{key:"vertical",set:function(n){this.foundation_.setVerticalOrientation(n)}},{key:"listElements_",get:function(){return[].slice.call(this.root_.querySelectorAll(r.b.ENABLED_ITEMS_SELECTOR))}},{key:"wrapFocus",set:function(n){this.foundation_.setWrapFocus(n)}},{key:"singleSelection",set:function(n){n?this.root_.addEventListener("click",this.handleClick_):this.root_.removeEventListener("click",this.handleClick_);this.foundation_.setSingleSelection(n)}},{key:"selectedIndex",set:function(n){this.foundation_.setSelectedIndex(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(s.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(32),i(33)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=["input","button","textarea","select"],l=function(n){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n;return f(this,t),n=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,i))),n.wrapFocus_=!1,n.isVertical_=!0,n.isSingleSelectionList_=!1,n.selectedIndex_=-1,n.useActivatedClass_=!1,n}return o(t,n),u(t,null,[{key:"strings",get:function(){return r.b}},{key:"cssClasses",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{getListItemCount:function(){},getFocusedElementIndex:function(){},setAttributeForElementIndex:function(){},removeAttributeForElementIndex:function(){},addClassForElementIndex:function(){},removeClassForElementIndex:function(){},focusItemAtIndex:function(){},setTabIndexForListItemChildren:function(){},followHref:function(){}}}}]),u(t,[{key:"setWrapFocus",value:function(n){this.wrapFocus_=n}},{key:"setVerticalOrientation",value:function(n){this.isVertical_=n}},{key:"setSingleSelection",value:function(n){this.isSingleSelectionList_=n}},{key:"setUseActivatedClass",value:function(n){this.useActivatedClass_=n}},{key:"setSelectedIndex",value:function(n){if(n!==this.selectedIndex_){var t=this.useActivatedClass_?r.a.LIST_ITEM_ACTIVATED_CLASS:r.a.LIST_ITEM_SELECTED_CLASS;this.selectedIndex_>=0&&(this.adapter_.removeAttributeForElementIndex(this.selectedIndex_,r.b.ARIA_SELECTED),this.adapter_.removeClassForElementIndex(this.selectedIndex_,t),this.adapter_.setAttributeForElementIndex(this.selectedIndex_,"tabindex",-1));n>=0&&this.adapter_.getListItemCount()>n&&(this.selectedIndex_=n,this.adapter_.setAttributeForElementIndex(this.selectedIndex_,r.b.ARIA_SELECTED,!0),this.adapter_.addClassForElementIndex(this.selectedIndex_,t),this.adapter_.setAttributeForElementIndex(this.selectedIndex_,"tabindex",0),0!==this.selectedIndex_&&this.adapter_.setAttributeForElementIndex(0,"tabindex",-1))}}},{key:"handleFocusIn",value:function(n,t){t>=0&&this.adapter_.setTabIndexForListItemChildren(t,0)}},{key:"handleFocusOut",value:function(n,t){t>=0&&this.adapter_.setTabIndexForListItemChildren(t,-1)}},{key:"handleKeydown",value:function(n,t,i){var u="ArrowLeft"===n.key||37===n.keyCode,f="ArrowUp"===n.key||38===n.keyCode,e="ArrowRight"===n.key||39===n.keyCode,o="ArrowDown"===n.key||40===n.keyCode,s="Home"===n.key||36===n.keyCode,h="End"===n.key||35===n.keyCode,c="Enter"===n.key||13===n.keyCode,l="Space"===n.key||32===n.keyCode,r=this.adapter_.getFocusedElementIndex();-1===r&&(r=i)<0||(this.isVertical_&&o||!this.isVertical_&&e?(this.preventDefaultEvent_(n),this.focusNextElement(r)):this.isVertical_&&f||!this.isVertical_&&u?(this.preventDefaultEvent_(n),this.focusPrevElement(r)):s?(this.preventDefaultEvent_(n),this.focusFirstElement()):h?(this.preventDefaultEvent_(n),this.focusLastElement()):this.isSingleSelectionList_&&(c||l)&&(this.preventDefaultEvent_(n),t&&(this.setSelectedIndex(r),this.adapter_.followHref(r))))}},{key:"handleClick",value:function(){var n=this.adapter_.getFocusedElementIndex();-1!==n&&this.setSelectedIndex(n)}},{key:"preventDefaultEvent_",value:function(n){var t=(""+n.target.tagName).toLowerCase();-1===c.indexOf(t)&&n.preventDefault()}},{key:"focusNextElement",value:function(n){var i=this.adapter_.getListItemCount(),t=n+1;if(t>=i){if(!this.wrapFocus_)return;t=0}this.adapter_.focusItemAtIndex(t)}},{key:"focusPrevElement",value:function(n){var t=n-1;if(t<0){if(!this.wrapFocus_)return;t=this.adapter_.getListItemCount()-1}this.adapter_.focusItemAtIndex(t)}},{key:"focusFirstElement",value:function(){this.adapter_.getListItemCount()>0&&this.adapter_.focusItemAtIndex(0)}},{key:"focusLastElement",value:function(){var n=this.adapter_.getListItemCount()-1;n>=0&&this.adapter_.focusItemAtIndex(n)}}]),t}(s.a);t.a=l},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,r,f,e;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCFloatingLabel",function(){return e});u=i(1);r=(i(35),i(79));i.d(t,"MDCFloatingLabelFoundation",function(){return r.a});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,n),f(t,[{key:"shake",value:function(n){this.foundation_.shake(n)}},{key:"float",value:function(n){this.foundation_.float(n)}},{key:"getWidth",value:function(){return this.foundation_.getWidth()}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},getWidth:function(){return n.root_.offsetWidth},registerInteractionHandler:function(t,i){return n.root_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.root_.removeEventListener(t,i)}})}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(u.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,r;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCLineRipple",function(){return c});u=i(1);r=(i(36),i(99));i.d(t,"MDCLineRippleFoundation",function(){return r.a});var s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),h(t,[{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"setRippleCenter",value:function(n){this.foundation_.setRippleCenter(n)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a(s({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},setStyle:function(t,i){return n.root_.style[t]=i},registerEventHandler:function(t,i){return n.root_.addEventListener(t,i)},deregisterEventHandler:function(t,i){return n.root_.removeEventListener(t,i)}}))}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(u.a)},function(n,t,i){"use strict";function u(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.d(t,"b",function(){return a});i.d(t,"a",function(){return l});var h=i(0),r=(i(38),i(39)),c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=void 0,a=function(n){function t(n){e(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c(t.defaultAdapter,n)));return i.isOpen_=!1,i.openAnimationEndTimerId_=0,i.closeAnimationEndTimerId_=0,i.animationRequestId_=0,i.dimensions_,i.anchorCorner_=r.a.TOP_START,i.anchorMargin_={top:0,right:0,bottom:0,left:0},i.measures_=null,i.quickOpen_=!1,i.hoistedElement_=!1,i.isFixedPosition_=!1,i.position_={x:0,y:0},i}return s(t,n),f(t,null,[{key:"cssClasses",get:function(){return r.c}},{key:"strings",get:function(){return r.e}},{key:"numbers",get:function(){return r.d}},{key:"Corner",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},notifyClose:function(){},notifyOpen:function(){},isElementInContainer:function(){return!1},isRtl:function(){return!1},setTransformOrigin:function(){},isFocused:function(){return!1},saveFocus:function(){},restoreFocus:function(){},isFirstElementFocused:function(){},isLastElementFocused:function(){},focusFirstElement:function(){},focusLastElement:function(){},getInnerDimensions:function(){return{}},getAnchorDimensions:function(){return{}},getWindowDimensions:function(){return{}},getBodyDimensions:function(){return{}},getWindowScroll:function(){return{}},setPosition:function(){},setMaxHeight:function(){}}}}]),f(t,[{key:"init",value:function(){var n=t.cssClasses,i=n.ROOT,r=n.OPEN;if(!this.adapter_.hasClass(i))throw new Error(i+" class required in root element.");this.adapter_.hasClass(r)&&(this.isOpen_=!0)}},{key:"destroy",value:function(){clearTimeout(this.openAnimationEndTimerId_);clearTimeout(this.closeAnimationEndTimerId_);cancelAnimationFrame(this.animationRequestId_)}},{key:"setAnchorCorner",value:function(n){this.anchorCorner_=n}},{key:"setAnchorMargin",value:function(n){this.anchorMargin_.top="number"==typeof n.top?n.top:0;this.anchorMargin_.right="number"==typeof n.right?n.right:0;this.anchorMargin_.bottom="number"==typeof n.bottom?n.bottom:0;this.anchorMargin_.left="number"==typeof n.left?n.left:0}},{key:"setIsHoisted",value:function(n){this.hoistedElement_=n}},{key:"setFixedPosition",value:function(n){this.isFixedPosition_=n}},{key:"setAbsolutePosition",value:function(n,t){this.position_.x=this.typeCheckisFinite_(n)?n:0;this.position_.y=this.typeCheckisFinite_(t)?t:0}},{key:"setQuickOpen",value:function(n){this.quickOpen_=n}},{key:"handleBodyClick",value:function(n){var t=n.target;this.adapter_.isElementInContainer(t)||this.close()}},{key:"handleKeydown",value:function(n){var t=n.keyCode,i=n.key,r=n.shiftKey,u="Escape"===i||27===t,f="Tab"===i||9===t;u?this.close():f&&(this.adapter_.isLastElementFocused()&&!r?(this.adapter_.focusFirstElement(),n.preventDefault()):this.adapter_.isFirstElementFocused()&&r&&(this.adapter_.focusLastElement(),n.preventDefault()))}},{key:"getAutoLayoutMeasurements_",value:function(){var n=this.adapter_.getAnchorDimensions(),t=this.adapter_.getWindowDimensions(),i=this.adapter_.getBodyDimensions(),r=this.adapter_.getWindowScroll();return n||(n={x:this.position_.x,y:this.position_.y,top:this.position_.y,bottom:this.position_.y,left:this.position_.x,right:this.position_.x,height:0,width:0}),{viewport:t,bodyDimensions:i,windowScroll:r,viewportDistance:{top:n.top,right:t.width-n.right,left:n.left,bottom:t.height-n.bottom},anchorHeight:n.height,anchorWidth:n.width,surfaceHeight:this.dimensions_.height,surfaceWidth:this.dimensions_.width}}},{key:"getOriginCorner_",value:function(){var u=r.a.TOP_LEFT,t=this.measures_,n=t.viewportDistance,s=t.anchorHeight,h=t.anchorWidth,c=t.surfaceHeight,l=t.surfaceWidth,a=Boolean(this.anchorCorner_&r.b.BOTTOM),p=a?n.top+s+this.anchorMargin_.bottom:n.top+this.anchorMargin_.top,w=a?n.bottom-this.anchorMargin_.bottom:n.bottom+s-this.anchorMargin_.top,b=c-p,v=c-w;v>0&&b<v&&(u|=r.b.BOTTOM);var f=this.adapter_.isRtl(),k=Boolean(this.anchorCorner_&r.b.FLIP_RTL),e=Boolean(this.anchorCorner_&r.b.RIGHT),i=e&&!f||!e&&k&&f,d=i?n.left+h+this.anchorMargin_.right:n.left+this.anchorMargin_.left,g=i?n.right-this.anchorMargin_.right:n.right+h-this.anchorMargin_.left,o=l-d,y=l-g;return(o<0&&i&&f||e&&!i&&o<0||y>0&&o<y)&&(u|=r.b.RIGHT),u}},{key:"getHorizontalOriginOffset_",value:function(n){var i=this.measures_.anchorWidth,f=Boolean(n&r.b.RIGHT),u=Boolean(this.anchorCorner_&r.b.RIGHT),t;return f?(t=u?i-this.anchorMargin_.left:this.anchorMargin_.right,this.hoistedElement_||this.isFixedPosition_?t-(this.measures_.viewport.width-this.measures_.bodyDimensions.width):t):u?i-this.anchorMargin_.right:this.anchorMargin_.left}},{key:"getVerticalOriginOffset_",value:function(n){var t=this.measures_.anchorHeight,u=Boolean(n&r.b.BOTTOM),i=Boolean(this.anchorCorner_&r.b.BOTTOM);return u?i?t-this.anchorMargin_.top:-this.anchorMargin_.bottom:i?t+this.anchorMargin_.bottom:this.anchorMargin_.top}},{key:"getMenuSurfaceMaxHeight_",value:function(n){var i=0,u=this.measures_.viewportDistance,e=Boolean(n&r.b.BOTTOM),f=t.numbers.MARGIN_TO_EDGE;return e?(i=u.top+this.anchorMargin_.top-f,this.anchorCorner_&r.b.BOTTOM||(i+=this.measures_.anchorHeight)):(i=u.bottom-this.anchorMargin_.bottom+this.measures_.anchorHeight-f,this.anchorCorner_&r.b.BOTTOM&&(i-=this.measures_.anchorHeight)),i}},{key:"autoPosition_",value:function(){var f,i;this.measures_=this.getAutoLayoutMeasurements_();var t=this.getOriginCorner_(),o=this.getMenuSurfaceMaxHeight_(t),s=t&r.b.BOTTOM?"bottom":"top",e=t&r.b.RIGHT?"right":"left",c=this.getHorizontalOriginOffset_(t),l=this.getVerticalOriginOffset_(t),n=(f={},u(f,e,c||"0"),u(f,s,l||"0"),f),h=this.measures_;h.anchorWidth/h.surfaceWidth>r.d.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(e="center");(this.hoistedElement_||this.isFixedPosition_)&&(n=this.adjustPositionForHoistedElement_(n));for(i in n)n.hasOwnProperty(i)&&"0"!==n[i]&&(n[i]=parseInt(n[i],10)+"px");this.adapter_.setTransformOrigin(e+" "+s);this.adapter_.setPosition(n);this.adapter_.setMaxHeight(o?o+"px":"");this.measures_=null}},{key:"adjustPositionForHoistedElement_",value:function(n){var i=this.measures_,f=i.bodyDimensions,r=i.windowScroll,e=i.viewport,u=i.viewportDistance,t;for(t in n)n.hasOwnProperty(t)&&(u.hasOwnProperty(t)&&(n[t]=parseInt(n[t],10)+u[t]),this.isFixedPosition_||"top"!==t?this.isFixedPosition_||"bottom"!==t||(n[t]=f.height-(e.height+r.y)+parseInt(n[t],10)):n[t]=parseInt(n[t],10)+r.y);return n}},{key:"open",value:function(){var n=this;this.adapter_.saveFocus();this.quickOpen_||this.adapter_.addClass(t.cssClasses.ANIMATING_OPEN);this.animationRequestId_=requestAnimationFrame(function(){n.adapter_.addClass(t.cssClasses.OPEN);n.dimensions_=n.adapter_.getInnerDimensions();n.autoPosition_();n.quickOpen_?n.adapter_.notifyOpen():n.openAnimationEndTimerId_=setTimeout(function(){n.openAnimationEndTimerId_=0;n.adapter_.removeClass(t.cssClasses.ANIMATING_OPEN);n.adapter_.notifyOpen()},r.d.TRANSITION_OPEN_DURATION)});this.isOpen_=!0}},{key:"close",value:function(){var n=this;this.quickOpen_||this.adapter_.addClass(t.cssClasses.ANIMATING_CLOSED);requestAnimationFrame(function(){n.adapter_.removeClass(t.cssClasses.OPEN);n.quickOpen_?n.adapter_.notifyClose():n.closeAnimationEndTimerId_=setTimeout(function(){n.closeAnimationEndTimerId_=0;n.adapter_.removeClass(t.cssClasses.ANIMATING_CLOSED);n.adapter_.notifyClose()},r.d.TRANSITION_CLOSE_DURATION)});this.isOpen_=!1;this.maybeRestoreFocus_()}},{key:"maybeRestoreFocus_",value:function(){(this.adapter_.isFocused()||this.adapter_.isElementInContainer(document.activeElement))&&this.adapter_.restoreFocus()}},{key:"isOpen",value:function(){return this.isOpen_}},{key:"typeCheckisFinite_",value:function(n){return"number"==typeof n&&isFinite(n)}}]),t}(h.a)},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,e;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCNotchedOutline",function(){return e});var c=i(1),r=(i(41),i(105)),u=i(42);i.d(t,"MDCNotchedOutlineFoundation",function(){return r.a});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,n),f(t,[{key:"notch",value:function(n,t){this.foundation_.notch(n,t)}},{key:"closeNotch",value:function(){this.foundation_.closeNotch()}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({getWidth:function(){return n.root_.offsetWidth},getHeight:function(){return n.root_.offsetHeight},addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},setOutlinePathAttr:function(t){n.root_.querySelector(u.b.PATH_SELECTOR).setAttribute("d",t)},getIdleOutlineStyleValue:function(t){var i=n.root_.parentNode.querySelector(u.b.IDLE_OUTLINE_SELECTOR);return window.getComputedStyle(i).getPropertyValue(t)}})}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(c.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCTab",function(){return v});var s=i(1),u=i(2),h=i(47),r=(i(10),i(124));i.d(t,"MDCTabFoundation",function(){return r.a});var c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},v=function(n){function t(){var r,n;f(this,t);for(var u=arguments.length,o=Array(u),i=0;i<u;i++)o[i]=arguments[i];return n=e(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(o))),n.ripple_,n.tabIndicator_,n.content_,n.handleClick_,n}return o(t,n),l(t,[{key:"initialize",value:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n,t){return new u.MDCRipple(n,t)},f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return new h.MDCTabIndicator(n)},n=this.root_.querySelector(r.a.strings.RIPPLE_SELECTOR),e=c(u.MDCRipple.createAdapter(this),{addClass:function(t){return n.classList.add(t)},removeClass:function(t){return n.classList.remove(t)},updateCssVariable:function(t,i){return n.style.setProperty(t,i)}}),o=new u.MDCRippleFoundation(e),t;this.ripple_=i(this.root_,o);t=this.root_.querySelector(r.a.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator_=f(t);this.content_=this.root_.querySelector(r.a.strings.CONTENT_SELECTOR)}},{key:"initialSyncWithDOM",value:function(){this.handleClick_=this.foundation_.handleClick.bind(this.foundation_);this.listen("click",this.handleClick_)}},{key:"destroy",value:function(){this.unlisten("click",this.handleClick_);this.ripple_.destroy();a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({setAttr:function(t,i){return n.root_.setAttribute(t,i)},addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},activateIndicator:function(t){return n.tabIndicator_.activate(t)},deactivateIndicator:function(){return n.tabIndicator_.deactivate()},notifyInteracted:function(){return n.emit(r.a.strings.INTERACTED_EVENT,{tab:n},!0)},getOffsetLeft:function(){return n.root_.offsetLeft},getOffsetWidth:function(){return n.root_.offsetWidth},getContentOffsetLeft:function(){return n.content_.offsetLeft},getContentOffsetWidth:function(){return n.content_.offsetWidth},focus:function(){return n.root_.focus()}})}},{key:"activate",value:function(n){this.foundation_.activate(n)}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"computeIndicatorClientRect",value:function(){return this.tabIndicator_.computeContentClientRect()}},{key:"computeDimensions",value:function(){return this.foundation_.computeDimensions()}},{key:"focus",value:function(){this.root_.focus()}},{key:"active",get:function(){return this.foundation_.isActive()}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(s.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(48),i(121)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)))}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){},setContentStyleProperty:function(){}}}}]),u(t,[{key:"computeContentClientRect",value:function(){return this.adapter_.computeContentClientRect()}},{key:"activate",value:function(){}},{key:"deactivate",value:function(){}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(54),i(135)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)))}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setAttr:function(){},removeAttr:function(){},setContent:function(){}}}}]),u(t,[{key:"setContent",value:function(n){this.adapter_.setContent(n)}},{key:"setPersistent",value:function(n){n?this.adapter_.addClass(r.a.HELPER_TEXT_PERSISTENT):this.adapter_.removeClass(r.a.HELPER_TEXT_PERSISTENT)}},{key:"setValidation",value:function(n){n?this.adapter_.addClass(r.a.HELPER_TEXT_VALIDATION_MSG):this.adapter_.removeClass(r.a.HELPER_TEXT_VALIDATION_MSG)}},{key:"showToScreenReader",value:function(){this.adapter_.removeAttr(r.b.ARIA_HIDDEN)}},{key:"setValidity",value:function(n){var i=this.adapter_.hasClass(r.a.HELPER_TEXT_PERSISTENT),u=this.adapter_.hasClass(r.a.HELPER_TEXT_VALIDATION_MSG),t=u&&!n;t?this.adapter_.setAttr(r.b.ROLE,"alert"):this.adapter_.removeAttr(r.b.ROLE);i||t||this.hide_()}},{key:"hide_",value:function(){this.adapter_.setAttr(r.b.ARIA_HIDDEN,"true")}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(55),i(136)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.savedTabIndex_=null,i.interactionHandler_=function(n){return i.handleInteraction(n)},i}return o(t,n),u(t,null,[{key:"strings",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{getAttr:function(){},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}}}]),u(t,[{key:"init",value:function(){var n=this;this.savedTabIndex_=this.adapter_.getAttr("tabindex");["click","keydown"].forEach(function(t){n.adapter_.registerInteractionHandler(t,n.interactionHandler_)})}},{key:"destroy",value:function(){var n=this;["click","keydown"].forEach(function(t){n.adapter_.deregisterInteractionHandler(t,n.interactionHandler_)})}},{key:"setDisabled",value:function(n){this.savedTabIndex_&&(n?(this.adapter_.setAttr("tabindex","-1"),this.adapter_.removeAttr("role")):(this.adapter_.setAttr("tabindex",this.savedTabIndex_),this.adapter_.setAttr("role",r.a.ICON_ROLE)))}},{key:"setAriaLabel",value:function(n){this.adapter_.setAttr("aria-label",n)}},{key:"setContent",value:function(n){this.adapter_.setContent(n)}},{key:"handleInteraction",value:function(n){"click"!==n.type&&"Enter"!==n.key&&13!==n.keyCode||this.adapter_.notifyIconAction()}}]),t}(s.a);t.a=c},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"browserSupportsCssVars",value:function(){}},{key:"isUnbounded",value:function(){}},{key:"isSurfaceActive",value:function(){}},{key:"isSurfaceDisabled",value:function(){}},{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"containsEventTarget",value:function(){}},{key:"registerInteractionHandler",value:function(){}},{key:"deregisterInteractionHandler",value:function(){}},{key:"registerDocumentInteractionHandler",value:function(){}},{key:"deregisterDocumentInteractionHandler",value:function(){}},{key:"registerResizeHandler",value:function(){}},{key:"deregisterResizeHandler",value:function(){}},{key:"updateCssVariable",value:function(){}},{key:"computeBoundingRect",value:function(){}},{key:"getWindowPageOffset",value:function(){}}])}()},function(n,t,i){"use strict";function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.d(t,"a",function(){return y});var l=i(1),f=i(2),e=(i(26),i(27)),r=i(28);i.d(t,"b",function(){return e.a});var o=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},u=["click","keydown"],y=function(n){function t(){var r,n;s(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=h(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.id,n.leadingIcon_,n.trailingIcon_,n.ripple_,n.handleInteraction_,n.handleTransitionEnd_,n.handleTrailingIconInteraction_,n}return c(t,n),a(t,[{key:"initialize",value:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n,t){return new f.MDCRipple(n,t)},n,u;this.id=this.root_.id;this.leadingIcon_=this.root_.querySelector(r.b.LEADING_ICON_SELECTOR);this.trailingIcon_=this.root_.querySelector(r.b.TRAILING_ICON_SELECTOR);n=this.root_.querySelector(r.b.CHECKMARK_SELECTOR);n&&!this.leadingIcon_?(u=o(f.MDCRipple.createAdapter(this),{computeBoundingRect:function(){return{height:t.root_.getBoundingClientRect().height,width:t.root_.getBoundingClientRect().width+n.getBoundingClientRect().height}}}),this.ripple_=i(this.root_,new f.MDCRippleFoundation(u))):this.ripple_=i(this.root_)}},{key:"initialSyncWithDOM",value:function(){var n=this;this.handleInteraction_=function(t){return n.foundation_.handleInteraction(t)};this.handleTransitionEnd_=function(t){return n.foundation_.handleTransitionEnd(t)};this.handleTrailingIconInteraction_=function(t){return n.foundation_.handleTrailingIconInteraction(t)};u.forEach(function(t){n.root_.addEventListener(t,n.handleInteraction_)});this.root_.addEventListener("transitionend",this.handleTransitionEnd_);this.trailingIcon_&&u.forEach(function(t){n.trailingIcon_.addEventListener(t,n.handleTrailingIconInteraction_)})}},{key:"destroy",value:function(){var n=this;this.ripple_.destroy();u.forEach(function(t){n.root_.removeEventListener(t,n.handleInteraction_)});this.root_.removeEventListener("transitionend",this.handleTransitionEnd_);this.trailingIcon_&&u.forEach(function(t){n.trailingIcon_.removeEventListener(t,n.handleTrailingIconInteraction_)});v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"beginExit",value:function(){this.foundation_.beginExit()}},{key:"getDefaultFoundation",value:function(){var n=this;return new e.a(o({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},addClassToLeadingIcon:function(t){n.leadingIcon_&&n.leadingIcon_.classList.add(t)},removeClassFromLeadingIcon:function(t){n.leadingIcon_&&n.leadingIcon_.classList.remove(t)},eventTargetHasClass:function(n,t){return n.classList.contains(t)},notifyInteraction:function(){return n.emit(r.b.INTERACTION_EVENT,{chipId:n.id},!0)},notifyTrailingIconInteraction:function(){return n.emit(r.b.TRAILING_ICON_INTERACTION_EVENT,{chipId:n.id},!0)},notifyRemoval:function(){return n.emit(r.b.REMOVAL_EVENT,{chipId:n.id,root:n.root_},!0)},getComputedStyleValue:function(t){return window.getComputedStyle(n.root_).getPropertyValue(t)},setStyleProperty:function(t,i){return n.root_.style.setProperty(t,i)}}))}},{key:"selected",get:function(){return this.foundation_.isSelected()},set:function(n){this.foundation_.setSelected(n)}},{key:"shouldRemoveOnTrailingIconClick",get:function(){return this.foundation_.getShouldRemoveOnTrailingIconClick()},set:function(n){this.foundation_.setShouldRemoveOnTrailingIconClick(n)}},{key:"ripple",get:function(){return this.ripple_}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(l.a)},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"addClassToLeadingIcon",value:function(){}},{key:"removeClassFromLeadingIcon",value:function(){}},{key:"eventTargetHasClass",value:function(){}},{key:"notifyInteraction",value:function(){}},{key:"notifyTrailingIconInteraction",value:function(){}},{key:"notifyRemoval",value:function(){}},{key:"getComputedStyleValue",value:function(){}},{key:"setStyleProperty",value:function(){}}])}()},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.d(t,"a",function(){return c});var s=i(0),r=(i(26),i(28)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.shouldRemoveOnTrailingIconClick_=!0,i}return o(t,n),u(t,null,[{key:"strings",get:function(){return r.b}},{key:"cssClasses",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},addClassToLeadingIcon:function(){},removeClassFromLeadingIcon:function(){},eventTargetHasClass:function(){},notifyInteraction:function(){},notifyTrailingIconInteraction:function(){},notifyRemoval:function(){},getComputedStyleValue:function(){},setStyleProperty:function(){}}}}]),u(t,[{key:"isSelected",value:function(){return this.adapter_.hasClass(r.a.SELECTED)}},{key:"setSelected",value:function(n){n?this.adapter_.addClass(r.a.SELECTED):this.adapter_.removeClass(r.a.SELECTED)}},{key:"getShouldRemoveOnTrailingIconClick",value:function(){return this.shouldRemoveOnTrailingIconClick_}},{key:"setShouldRemoveOnTrailingIconClick",value:function(n){this.shouldRemoveOnTrailingIconClick_=n}},{key:"beginExit",value:function(){this.adapter_.addClass(r.a.CHIP_EXIT)}},{key:"handleInteraction",value:function(n){"click"!==n.type&&"Enter"!==n.key&&13!==n.keyCode||this.adapter_.notifyInteraction()}},{key:"handleTransitionEnd",value:function(n){var t=this,i;this.adapter_.eventTargetHasClass(n.target,r.a.CHIP_EXIT)?"width"===n.propertyName?this.adapter_.notifyRemoval():"opacity"===n.propertyName&&(i=this.adapter_.getComputedStyleValue("width"),requestAnimationFrame(function(){t.adapter_.setStyleProperty("width",i);t.adapter_.setStyleProperty("padding","0");t.adapter_.setStyleProperty("margin","0");requestAnimationFrame(function(){t.adapter_.setStyleProperty("width","0")})})):"opacity"===n.propertyName&&(this.adapter_.eventTargetHasClass(n.target,r.a.LEADING_ICON)&&this.adapter_.hasClass(r.a.SELECTED)?this.adapter_.addClassToLeadingIcon(r.a.HIDDEN_LEADING_ICON):this.adapter_.eventTargetHasClass(n.target,r.a.CHECKMARK)&&!this.adapter_.hasClass(r.a.SELECTED)&&this.adapter_.removeClassFromLeadingIcon(r.a.HIDDEN_LEADING_ICON))}},{key:"handleTrailingIconInteraction",value:function(n){n.stopPropagation();"click"!==n.type&&"Enter"!==n.key&&13!==n.keyCode||(this.adapter_.notifyTrailingIconInteraction(),this.shouldRemoveOnTrailingIconClick_&&this.beginExit())}}]),t}(s.a)},function(n,t,i){"use strict";i.d(t,"b",function(){return r});i.d(t,"a",function(){return u});var r={ENTRY_ANIMATION_NAME:"mdc-chip-entry",INTERACTION_EVENT:"MDCChip:interaction",TRAILING_ICON_INTERACTION_EVENT:"MDCChip:trailingIconInteraction",REMOVAL_EVENT:"MDCChip:removal",CHECKMARK_SELECTOR:".mdc-chip__checkmark",LEADING_ICON_SELECTOR:".mdc-chip__icon--leading",TRAILING_ICON_SELECTOR:".mdc-chip__icon--trailing"},u={CHECKMARK:"mdc-chip__checkmark",CHIP_EXIT:"mdc-chip--exit",HIDDEN_LEADING_ICON:"mdc-chip__icon--leading-hidden",LEADING_ICON:"mdc-chip__icon--leading",TRAILING_ICON:"mdc-chip__icon--trailing",SELECTED:"mdc-chip--selected"}},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"hasClass",value:function(){}},{key:"removeChip",value:function(){}},{key:"setSelected",value:function(){}}])}()},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o=(i(13),i(0)),r=i(31),s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),h=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),s(t,[{key:"open",value:function(){this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter_.addClass(r.a.OPEN),this.adapter_.addClass(r.a.ANIMATE),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r.a.OPENING),this.adapter_.saveFocus())}},{key:"close",value:function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter_.addClass(r.a.CLOSING)}},{key:"opened",value:function(){}},{key:"closed",value:function(){}},{key:"isOpen",value:function(){return this.adapter_.hasClass(r.a.OPEN)}},{key:"isOpening",value:function(){return this.adapter_.hasClass(r.a.OPENING)}},{key:"isClosing",value:function(){return this.adapter_.hasClass(r.a.CLOSING)}},{key:"handleKeydown",value:function(n){var t=n.keyCode;("Escape"===n.key||27===t)&&this.close()}},{key:"handleTransitionEnd",value:function(n){var t=r.a.OPENING,i=r.a.CLOSING,u=r.a.OPEN,f=r.a.ANIMATE,e=r.a.ROOT;n.target instanceof Element&&this.adapter_.elementHasClass(n.target,e)&&(this.isClosing()?(this.adapter_.removeClass(u),this.adapter_.restoreFocus(),this.closed(),this.adapter_.notifyClose()):(this.adapter_.focusActiveNavigationItem(),this.opened(),this.adapter_.notifyOpen()),this.adapter_.removeClass(f),this.adapter_.removeClass(t),this.adapter_.removeClass(i))}}],[{key:"strings",get:function(){return r.b}},{key:"cssClasses",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},elementHasClass:function(){},computeBoundingRect:function(){},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}}}]),t}(o.a);t.a=h},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ROOT:"mdc-drawer",DISMISSIBLE:"mdc-drawer--dismissible",MODAL:"mdc-drawer--modal",OPEN:"mdc-drawer--open",ANIMATE:"mdc-drawer--animate",OPENING:"mdc-drawer--opening",CLOSING:"mdc-drawer--closing"},u={APP_CONTENT_SELECTOR:".mdc-drawer-app-content",SCRIM_SELECTOR:".mdc-drawer-scrim",CLOSE_EVENT:"MDCDrawer:closed",OPEN_EVENT:"MDCDrawer:opened"}},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"getListItemCount",value:function(){}},{key:"getFocusedElementIndex",value:function(){}},{key:"setAttributeForElementIndex",value:function(){}},{key:"removeAttributeForElementIndex",value:function(){}},{key:"addClassForElementIndex",value:function(){}},{key:"removeClassForElementIndex",value:function(){}},{key:"focusItemAtIndex",value:function(){}},{key:"setTabIndexForListItemChildren",value:function(){}},{key:"followHref",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"b",function(){return u});i.d(t,"a",function(){return r});var r={ROOT:"mdc-list",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated"},u={ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_SELECTED:"aria-selected",FOCUSABLE_CHILD_ELEMENTS:"."+r.LIST_ITEM_CLASS+" button:not(:disabled), ."+r.LIST_ITEM_CLASS+" a",ENABLED_ITEMS_SELECTOR:".mdc-list-item:not(.mdc-list-item--disabled)"}},function(n,t,i){function e(n,t){function ut(n){if(!i.active){d();i.active=!0;i.paused=!1;i.nodeFocusedBeforeActivation=e.activeElement;var t=n&&n.onActivate?n.onActivate:l.onActivate;return t&&t(),g(),a}}function b(n){if(i.active){nt();i.active=!1;i.paused=!1;var t=n&&void 0!==n.onDeactivate?n.onDeactivate:l.onDeactivate;return t&&t(),(n&&void 0!==n.returnFocus?n.returnFocus:l.returnFocusOnDeactivate)&&u(function(){v(i.nodeFocusedBeforeActivation)}),a}}function ft(){!i.paused&&i.active&&(i.paused=!0,nt())}function et(){i.paused&&i.active&&(i.paused=!1,g())}function g(){if(i.active)return r&&r.pause(),r=a,d(),u(function(){v(y())}),e.addEventListener("focusin",tt,!0),e.addEventListener("mousedown",w,!0),e.addEventListener("touchstart",w,!0),e.addEventListener("click",rt,!0),e.addEventListener("keydown",it,!0),a}function nt(){if(i.active&&r===a)return e.removeEventListener("focusin",tt,!0),e.removeEventListener("mousedown",w,!0),e.removeEventListener("touchstart",w,!0),e.removeEventListener("click",rt,!0),e.removeEventListener("keydown",it,!0),r=null,a}function k(n){var t=l[n],i=t;if(!t)return null;if("string"==typeof t&&!(i=e.querySelector(t)))throw new Error("`"+n+"` refers to no known node");if("function"==typeof t&&!(i=t()))throw new Error("`"+n+"` did not return a node");return i}function y(){var n;if(!(n=null!==k("initialFocus")?k("initialFocus"):p.contains(e.activeElement)?e.activeElement:i.firstTabbableNode||k("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return n}function w(n){p.contains(n.target)||(l.clickOutsideDeactivates?b({returnFocus:!f.isFocusable(n.target)}):n.preventDefault())}function tt(n){p.contains(n.target)||n.target instanceof Document||(n.stopImmediatePropagation(),v(i.mostRecentlyFocusedNode||y()))}function it(n){return!1!==l.escapeDeactivates&&s(n)?(n.preventDefault(),void b()):h(n)?void ot(n):void 0}function ot(n){return d(),n.shiftKey&&n.target===i.firstTabbableNode?(n.preventDefault(),void v(i.lastTabbableNode)):n.shiftKey||n.target!==i.lastTabbableNode?void 0:(n.preventDefault(),void v(i.firstTabbableNode))}function rt(n){l.clickOutsideDeactivates||p.contains(n.target)||(n.preventDefault(),n.stopImmediatePropagation())}function d(){var n=f(p);i.firstTabbableNode=n[0]||y();i.lastTabbableNode=n[n.length-1]||y()}function v(n){if(n!==e.activeElement){if(!n||!n.focus)return void v(y());n.focus();i.mostRecentlyFocusedNode=n;o(n)&&n.select()}}var e=document,p="string"==typeof n?e.querySelector(n):n,l=c({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),i={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},a={activate:ut,deactivate:b,pause:ft,unpause:et};return a}function o(n){return n.tagName&&"input"===n.tagName.toLowerCase()&&"function"==typeof n.select}function s(n){return"Escape"===n.key||"Esc"===n.key||27===n.keyCode}function h(n){return"Tab"===n.key||9===n.keyCode}function u(n){return setTimeout(n,0)}var f=i(77),c=i(78),r=null;n.exports=e},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"getWidth",value:function(){}},{key:"registerInteractionHandler",value:function(){}},{key:"deregisterInteractionHandler",value:function(){}}])}()},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"setStyle",value:function(){}},{key:"registerEventHandler",value:function(){}},{key:"deregisterEventHandler",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ROOT:"mdc-menu",MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group"},u={SELECTED_EVENT:"MDCMenu:selected",ARIA_SELECTED_ATTR:"aria-selected",LIST_SELECTOR:".mdc-list",CHECKBOX_SELECTOR:'input[type="checkbox"]'}},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"hasAnchor",value:function(){}},{key:"notifyClose",value:function(){}},{key:"notifyOpen",value:function(){}},{key:"isElementInContainer",value:function(){}},{key:"isRtl",value:function(){}},{key:"setTransformOrigin",value:function(){}},{key:"isFocused",value:function(){}},{key:"saveFocus",value:function(){}},{key:"restoreFocus",value:function(){}},{key:"isFirstElementFocused",value:function(){}},{key:"isLastElementFocused",value:function(){}},{key:"focusFirstElement",value:function(){}},{key:"focusLastElement",value:function(){}},{key:"getInnerDimensions",value:function(){}},{key:"getAnchorDimensions",value:function(){}},{key:"getWindowDimensions",value:function(){}},{key:"getBodyDimensions",value:function(){}},{key:"getWindowScroll",value:function(){}},{key:"setPosition",value:function(){}},{key:"setMaxHeight",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"c",function(){return u});i.d(t,"e",function(){return f});i.d(t,"d",function(){return e});i.d(t,"b",function(){return r});i.d(t,"a",function(){return o});var u={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},f={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:'button:not(:disabled), [href]:not([aria-disabled="true"]), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'},e={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67},r={BOTTOM:1,CENTER:2,RIGHT:4,FLIP_RTL:8},o={TOP_LEFT:0,TOP_RIGHT:r.RIGHT,BOTTOM_LEFT:r.BOTTOM,BOTTOM_RIGHT:r.BOTTOM|r.RIGHT,TOP_START:r.FLIP_RTL,TOP_END:r.FLIP_RTL|r.RIGHT,BOTTOM_START:r.BOTTOM|r.FLIP_RTL,BOTTOM_END:r.BOTTOM|r.RIGHT|r.FLIP_RTL}},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCMenuSurface",function(){return v});var h=i(1),f=i(104),u=i(18),r=(i(38),i(39));i.d(t,"MDCMenuSurfaceFoundation",function(){return u.b});i.d(t,"AnchorMargin",function(){return u.a});i.d(t,"Corner",function(){return r.a});i.d(t,"CornerBit",function(){return r.b});i.d(t,"util",function(){return f});var c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},v=function(n){function t(){var r,n;e(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.previousFocus_,n.anchorElement,n.firstFocusableElement_,n.lastFocusableElement_,n.handleKeydown_,n.handleBodyClick_,n.registerBodyClickListener_,n.deregisterBodyClickListener_,n}return s(t,n),l(t,[{key:"initialSyncWithDOM",value:function(){var n=this;this.root_.parentElement&&this.root_.parentElement.classList.contains(r.c.ANCHOR)&&(this.anchorElement=this.root_.parentElement);this.root_.classList.contains(r.c.FIXED)&&this.setFixedPosition(!0);this.handleKeydown_=function(t){return n.foundation_.handleKeydown(t)};this.handleBodyClick_=function(t){return n.foundation_.handleBodyClick(t)};this.registerBodyClickListener_=function(){return document.body.addEventListener("click",n.handleBodyClick_)};this.deregisterBodyClickListener_=function(){return document.body.removeEventListener("click",n.handleBodyClick_)};this.root_.addEventListener("keydown",this.handleKeydown_);this.root_.addEventListener(r.e.OPENED_EVENT,this.registerBodyClickListener_);this.root_.addEventListener(r.e.CLOSED_EVENT,this.deregisterBodyClickListener_)}},{key:"destroy",value:function(){this.root_.removeEventListener("keydown",this.handleKeydown_);this.root_.removeEventListener(r.e.OPENED_EVENT,this.registerBodyClickListener_);this.root_.removeEventListener(r.e.CLOSED_EVENT,this.deregisterBodyClickListener_);a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"hoistMenuToBody",value:function(){document.body.appendChild(this.root_.parentElement.removeChild(this.root_));this.setIsHoisted(!0)}},{key:"setIsHoisted",value:function(n){this.foundation_.setIsHoisted(n)}},{key:"setMenuSurfaceAnchorElement",value:function(n){this.anchorElement=n}},{key:"setFixedPosition",value:function(n){n?this.root_.classList.add(r.c.FIXED):this.root_.classList.remove(r.c.FIXED);this.foundation_.setFixedPosition(n)}},{key:"setAbsolutePosition",value:function(n,t){this.foundation_.setAbsolutePosition(n,t);this.setIsHoisted(!0)}},{key:"setAnchorCorner",value:function(n){this.foundation_.setAnchorCorner(n)}},{key:"setAnchorMargin",value:function(n){this.foundation_.setAnchorMargin(n)}},{key:"getDefaultFoundation",value:function(){var n=this;return new u.b(c({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},hasAnchor:function(){return!!n.anchorElement},notifyClose:function(){return n.emit(u.b.strings.CLOSED_EVENT,{})},notifyOpen:function(){return n.emit(u.b.strings.OPENED_EVENT,{})},isElementInContainer:function(t){return n.root_===t||n.root_.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(n.root_).getPropertyValue("direction")},setTransformOrigin:function(t){n.root_.style[f.getTransformPropertyName(window)+"-origin"]=t}},this.getFocusAdapterMethods_(),this.getDimensionAdapterMethods_()))}},{key:"getFocusAdapterMethods_",value:function(){var n=this;return{isFocused:function(){return document.activeElement===n.root_},saveFocus:function(){n.previousFocus_=document.activeElement},restoreFocus:function(){n.root_.contains(document.activeElement)&&n.previousFocus_&&n.previousFocus_.focus&&n.previousFocus_.focus()},isFirstElementFocused:function(){return n.firstFocusableElement_&&n.firstFocusableElement_===document.activeElement},isLastElementFocused:function(){return n.lastFocusableElement_&&n.lastFocusableElement_===document.activeElement},focusFirstElement:function(){return n.firstFocusableElement_&&n.firstFocusableElement_.focus&&n.firstFocusableElement_.focus()},focusLastElement:function(){return n.lastFocusableElement_&&n.lastFocusableElement_.focus&&n.lastFocusableElement_.focus()}}}},{key:"getDimensionAdapterMethods_",value:function(){var n=this;return{getInnerDimensions:function(){return{width:n.root_.offsetWidth,height:n.root_.offsetHeight}},getAnchorDimensions:function(){return n.anchorElement&&n.anchorElement.getBoundingClientRect()},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){n.root_.style.left="left"in t?t.left:null;n.root_.style.right="right"in t?t.right:null;n.root_.style.top="top"in t?t.top:null;n.root_.style.bottom="bottom"in t?t.bottom:null},setMaxHeight:function(t){n.root_.style.maxHeight=t}}}},{key:"open",get:function(){return this.foundation_.isOpen()},set:function(n){if(n){var t=this.root_.querySelectorAll(r.e.FOCUSABLE_ELEMENTS);this.firstFocusableElement_=t.length>0?t[0]:null;this.lastFocusableElement_=t.length>0?t[t.length-1]:null;this.foundation_.open()}else this.foundation_.close()}},{key:"quickOpen",set:function(n){this.foundation_.setQuickOpen(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(h.a)},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"getWidth",value:function(){}},{key:"getHeight",value:function(){}},{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"setOutlinePathAttr",value:function(){}},{key:"getIdleOutlineStyleValue",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});i.d(t,"b",function(){return r});var r={PATH_SELECTOR:".mdc-notched-outline__path",IDLE_OUTLINE_SELECTOR:".mdc-notched-outline__idle"},u={OUTLINE_NOTCHED:"mdc-notched-outline--notched"}},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"activateBottomLine",value:function(){}},{key:"deactivateBottomLine",value:function(){}},{key:"getValue",value:function(){}},{key:"isRtl",value:function(){}},{key:"hasLabel",value:function(){}},{key:"floatLabel",value:function(){}},{key:"getLabelWidth",value:function(){}},{key:"hasOutline",value:function(){}},{key:"notchOutline",value:function(){}},{key:"closeOutline",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"b",function(){return f});var r={BOX:"mdc-select--box",DISABLED:"mdc-select--disabled",ROOT:"mdc-select",OUTLINED:"mdc-select--outlined"},u={CHANGE_EVENT:"MDCSelect:change",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",LABEL_SELECTOR:".mdc-floating-label",NATIVE_CONTROL_SELECTOR:".mdc-select__native-control",OUTLINE_SELECTOR:".mdc-notched-outline"},f={LABEL_SCALE:.75}},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"b",function(){return f});var r={ACTIVE:"mdc-slider--active",DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",FOCUS:"mdc-slider--focus",IN_TRANSIT:"mdc-slider--in-transit",IS_DISCRETE:"mdc-slider--discrete",HAS_TRACK_MARKER:"mdc-slider--display-markers"},u={TRACK_SELECTOR:".mdc-slider__track",TRACK_MARKER_CONTAINER_SELECTOR:".mdc-slider__track-marker-container",LAST_TRACK_MARKER_SELECTOR:".mdc-slider__track-marker:last-child",THUMB_CONTAINER_SELECTOR:".mdc-slider__thumb-container",PIN_VALUE_MARKER_SELECTOR:".mdc-slider__pin-value-marker",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_DISABLED:"aria-disabled",STEP_DATA_ATTR:"data-step",CHANGE_EVENT:"MDCSlider:change",INPUT_EVENT:"MDCSlider:input"},f={PAGE_FACTOR:4}},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"hasClass",value:function(){}},{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"getAttribute",value:function(){}},{key:"setAttribute",value:function(){}},{key:"removeAttribute",value:function(){}},{key:"computeBoundingRect",value:function(){}},{key:"getTabIndex",value:function(){}},{key:"registerInteractionHandler",value:function(){}},{key:"deregisterInteractionHandler",value:function(){}},{key:"registerThumbContainerInteractionHandler",value:function(){}},{key:"deregisterThumbContainerInteractionHandler",value:function(){}},{key:"registerBodyInteractionHandler",value:function(){}},{key:"deregisterBodyInteractionHandler",value:function(){}},{key:"registerResizeHandler",value:function(){}},{key:"deregisterResizeHandler",value:function(){}},{key:"notifyInput",value:function(){}},{key:"notifyChange",value:function(){}},{key:"setThumbContainerStyleProperty",value:function(){}},{key:"setTrackStyleProperty",value:function(){}},{key:"setMarkerValue",value:function(){}},{key:"appendTrackMarkers",value:function(){}},{key:"removeTrackMarkers",value:function(){}},{key:"setLastTrackMarkersStyleProperty",value:function(){}},{key:"isRTL",value:function(){}}])}()},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCTabIndicator",function(){return a});var c=i(1),r=(i(48),i(21)),u=i(122),f=i(123);i.d(t,"MDCTabIndicatorFoundation",function(){return r.a});i.d(t,"MDCSlidingTabIndicatorFoundation",function(){return u.a});i.d(t,"MDCFadingTabIndicatorFoundation",function(){return f.a});var l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n){function t(){var r,i;o(this,t);for(var u=arguments.length,f=Array(u),n=0;n<u;n++)f[n]=arguments[n];return i=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),i.content_,i}return h(t,n),e(t,null,[{key:"attachTo",value:function(n){return new t(n)}}]),e(t,[{key:"initialize",value:function(){this.content_=this.root_.querySelector(r.a.strings.CONTENT_SELECTOR)}},{key:"computeContentClientRect",value:function(){return this.foundation_.computeContentClientRect()}},{key:"getDefaultFoundation",value:function(){var n=this,t=l({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},computeContentClientRect:function(){return n.content_.getBoundingClientRect()},setContentStyleProperty:function(t,i){return n.content_.style.setProperty(t,i)}});return this.root_.classList.contains(r.a.cssClasses.FADE)?new f.a(t):new u.a(t)}},{key:"activate",value:function(n){this.foundation_.activate(n)}},{key:"deactivate",value:function(){this.foundation_.deactivate()}}]),t}(c.a)},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"computeContentClientRect",value:function(){}},{key:"setContentStyleProperty",value:function(){}}])}()},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCTabScroller",function(){return l});var h=i(1),r=(i(5),i(127)),u=i(131);i.d(t,"MDCTabScrollerFoundation",function(){return r.a});i.d(t,"util",function(){return u});var c=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function(n){function t(){var r,n;e(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.content_,n.area_,n.handleInteraction_,n.handleTransitionEnd_,n}return s(t,n),f(t,null,[{key:"attachTo",value:function(n){return new t(n)}}]),f(t,[{key:"initialize",value:function(){this.area_=this.root_.querySelector(r.a.strings.AREA_SELECTOR);this.content_=this.root_.querySelector(r.a.strings.CONTENT_SELECTOR)}},{key:"initialSyncWithDOM",value:function(){var n=this;this.handleInteraction_=function(){return n.foundation_.handleInteraction()};this.handleTransitionEnd_=function(t){return n.foundation_.handleTransitionEnd(t)};this.area_.addEventListener("wheel",this.handleInteraction_);this.area_.addEventListener("touchstart",this.handleInteraction_);this.area_.addEventListener("pointerdown",this.handleInteraction_);this.area_.addEventListener("mousedown",this.handleInteraction_);this.area_.addEventListener("keydown",this.handleInteraction_);this.content_.addEventListener("transitionend",this.handleTransitionEnd_)}},{key:"destroy",value:function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.area_.removeEventListener("wheel",this.handleInteraction_);this.area_.removeEventListener("touchstart",this.handleInteraction_);this.area_.removeEventListener("pointerdown",this.handleInteraction_);this.area_.removeEventListener("mousedown",this.handleInteraction_);this.area_.removeEventListener("keydown",this.handleInteraction_);this.content_.removeEventListener("transitionend",this.handleTransitionEnd_)}},{key:"getDefaultFoundation",value:function(){var n=this,t={eventTargetMatchesSelector:function(n,t){return n[u.getMatchesProperty(HTMLElement.prototype)](t)},addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},addScrollAreaClass:function(t){return n.area_.classList.add(t)},setScrollAreaStyleProperty:function(t,i){return n.area_.style.setProperty(t,i)},setScrollContentStyleProperty:function(t,i){return n.content_.style.setProperty(t,i)},getScrollContentStyleValue:function(t){return window.getComputedStyle(n.content_).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return n.area_.scrollLeft=t},getScrollAreaScrollLeft:function(){return n.area_.scrollLeft},getScrollContentOffsetWidth:function(){return n.content_.offsetWidth},getScrollAreaOffsetWidth:function(){return n.area_.offsetWidth},computeScrollAreaClientRect:function(){return n.area_.getBoundingClientRect()},computeScrollContentClientRect:function(){return n.content_.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return u.computeHorizontalScrollbarHeight(document)}};return new r.a(t)}},{key:"getScrollPosition",value:function(){return this.foundation_.getScrollPosition()}},{key:"getScrollContentWidth",value:function(){return this.content_.offsetWidth}},{key:"incrementScroll",value:function(n){this.foundation_.incrementScroll(n)}},{key:"scrollTo",value:function(n){this.foundation_.scrollTo(n)}}]),t}(h.a)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ANIMATING:"mdc-tab-scroller--animating",SCROLL_TEST:"mdc-tab-scroller__test",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll"},u={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"}},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u=(i(10),i(20),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}());!function(){function n(){r(this,n)}u(n,[{key:"scrollTo",value:function(){}},{key:"incrementScroll",value:function(){}},{key:"getScrollPosition",value:function(){}},{key:"getScrollContentWidth",value:function(){}},{key:"getOffsetWidth",value:function(){}},{key:"isRTL",value:function(){}},{key:"setActiveTab",value:function(){}},{key:"activateTabAtIndex",value:function(){}},{key:"deactivateTabAtIndex",value:function(){}},{key:"focusTabAtIndex",value:function(){}},{key:"getTabIndicatorClientRectAtIndex",value:function(){}},{key:"getTabDimensionsAtIndex",value:function(){}},{key:"getTabListLength",value:function(){}},{key:"getPreviousActiveTabIndex",value:function(){}},{key:"getFocusedTabIndex",value:function(){}},{key:"getIndexOfTab",value:function(){}},{key:"notifyTabActivated",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"c",function(){return u});i.d(t,"e",function(){return r});i.d(t,"d",function(){return f});i.d(t,"b",function(){return e});i.d(t,"a",function(){return o});var r={ARIA_CONTROLS:"aria-controls",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",ICON_SELECTOR:".mdc-text-field__icon",OUTLINE_SELECTOR:".mdc-notched-outline",LINE_RIPPLE_SELECTOR:".mdc-line-ripple"},u={ROOT:"mdc-text-field",DISABLED:"mdc-text-field--disabled",DENSE:"mdc-text-field--dense",FOCUSED:"mdc-text-field--focused",INVALID:"mdc-text-field--invalid",TEXTAREA:"mdc-text-field--textarea",OUTLINED:"mdc-text-field--outlined"},f={LABEL_SCALE:.75,DENSE_LABEL_SCALE:.923},e=["pattern","min","max","required","step","minlength","maxlength"],o=["color","date","datetime-local","month","range","time","week"]},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u=(i(22),i(23),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}());!function(){function n(){r(this,n)}u(n,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"registerTextFieldInteractionHandler",value:function(){}},{key:"deregisterTextFieldInteractionHandler",value:function(){}},{key:"registerInputInteractionHandler",value:function(){}},{key:"deregisterInputInteractionHandler",value:function(){}},{key:"registerValidationAttributeChangeHandler",value:function(){}},{key:"deregisterValidationAttributeChangeHandler",value:function(){}},{key:"getNativeInput",value:function(){}},{key:"isFocused",value:function(){}},{key:"isRtl",value:function(){}},{key:"activateLineRipple",value:function(){}},{key:"deactivateLineRipple",value:function(){}},{key:"setLineRippleTransformOrigin",value:function(){}},{key:"shakeLabel",value:function(){}},{key:"floatLabel",value:function(){}},{key:"hasLabel",value:function(){}},{key:"getLabelWidth",value:function(){}},{key:"hasOutline",value:function(){}},{key:"notchOutline",value:function(){}},{key:"closeOutline",value:function(){}}])}()},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"setAttr",value:function(){}},{key:"removeAttr",value:function(){}},{key:"setContent",value:function(){}}])}()},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"getAttr",value:function(){}},{key:"setAttr",value:function(){}},{key:"removeAttr",value:function(){}},{key:"setContent",value:function(){}},{key:"registerInteractionHandler",value:function(){}},{key:"deregisterInteractionHandler",value:function(){}},{key:"notifyIconAction",value:function(){}}])}()},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(57),st=i(3),f=i(58),u=i(64),e=i(68),o=i(74),s=i(16),h=i(81),c=i(85),l=i(88),a=i(92),v=i(96),y=i(17),p=i(14),w=i(101),b=i(40),k=i(19),d=i(106),g=i(2),nt=i(110),ht=i(4),tt=i(112),it=i(114),rt=i(117),ct=i(20),ut=i(126),lt=i(47),at=i(49),ft=i(134),et=i(140),ot=i(143);i.d(t,"autoInit",function(){return r.a});i.d(t,"base",function(){return st});i.d(t,"checkbox",function(){return f});i.d(t,"chips",function(){return u});i.d(t,"dialog",function(){return e});i.d(t,"drawer",function(){return o});i.d(t,"floatingLabel",function(){return s});i.d(t,"formField",function(){return h});i.d(t,"gridList",function(){return c});i.d(t,"iconButton",function(){return l});i.d(t,"iconToggle",function(){return a});i.d(t,"lineRipple",function(){return y});i.d(t,"linearProgress",function(){return v});i.d(t,"list",function(){return p});i.d(t,"menu",function(){return w});i.d(t,"menuSurface",function(){return b});i.d(t,"notchedOutline",function(){return k});i.d(t,"radio",function(){return d});i.d(t,"ripple",function(){return g});i.d(t,"select",function(){return nt});i.d(t,"selectionControl",function(){return ht});i.d(t,"slider",function(){return tt});i.d(t,"switchControl",function(){return rt});i.d(t,"snackbar",function(){return it});i.d(t,"tab",function(){return ct});i.d(t,"tabBar",function(){return ut});i.d(t,"tabIndicator",function(){return lt});i.d(t,"tabScroller",function(){return at});i.d(t,"textField",function(){return ft});i.d(t,"toolbar",function(){return et});i.d(t,"topAppBar",function(){return ot});r.a.register("MDCCheckbox",f.MDCCheckbox);r.a.register("MDCChip",u.MDCChip);r.a.register("MDCChipSet",u.MDCChipSet);r.a.register("MDCDialog",e.MDCDialog);r.a.register("MDCDrawer",o.MDCDrawer);r.a.register("MDCFloatingLabel",s.MDCFloatingLabel);r.a.register("MDCFormField",h.MDCFormField);r.a.register("MDCRipple",g.MDCRipple);r.a.register("MDCGridList",c.MDCGridList);r.a.register("MDCIconButtonToggle",l.MDCIconButtonToggle);r.a.register("MDCIconToggle",a.MDCIconToggle);r.a.register("MDCLineRipple",y.MDCLineRipple);r.a.register("MDCLinearProgress",v.MDCLinearProgress);r.a.register("MDCList",p.MDCList);r.a.register("MDCNotchedOutline",k.MDCNotchedOutline);r.a.register("MDCRadio",d.MDCRadio);r.a.register("MDCSnackbar",it.MDCSnackbar);r.a.register("MDCTabBar",ut.MDCTabBar);r.a.register("MDCTextField",ft.MDCTextField);r.a.register("MDCMenu",w.MDCMenu);r.a.register("MDCMenuSurface",b.MDCMenuSurface);r.a.register("MDCSelect",nt.MDCSelect);r.a.register("MDCSlider",tt.MDCSlider);r.a.register("MDCSwitch",rt.MDCSwitch);r.a.register("MDCToolbar",et.MDCToolbar);r.a.register("MDCTopAppBar",ot.MDCTopAppBar)},function(n,t){"use strict";function f(n,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=void 0;"function"==typeof CustomEvent?i=new CustomEvent(n,{detail:t,bubbles:r}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(n,r,!1,t));document.dispatchEvent(i)}function r(){for(var t,r,e,n,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,o=[],l=h.querySelectorAll("[data-mdc-auto-init]"),s=0;n=l[s];s++){if(t=n.dataset.mdcAutoInit,!t)throw new Error("(mdc-auto-init) Constructor name must be given.");if(r=i[t],"function"!=typeof r)throw new Error("(mdc-auto-init) Could not find constructor in registry for "+t);n[t]?c("(mdc-auto-init) Component already initialized for "+n+". Skipping..."):(e=r.attachTo(n),Object.defineProperty(n,t,{value:e,writable:!1,enumerable:!1,configurable:!0}),o.push(e))}return f("MDCAutoInit:End",{}),o}t.a=r;var i=Object.create(null),u=console.warn.bind(console);r.register=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if("function"!=typeof t)throw new Error("(mdc-auto-init) Invalid Ctor value "+t+". Expected function");i[n]&&r("(mdc-auto-init) Overriding registration for "+n+" with "+t+". Was: "+i[n]);i[n]=t};r.deregister=function(n){delete i[n]};r.deregisterAll=function(){Object.keys(i).forEach(this.deregister,this)}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCCheckbox",function(){return y});var f=i(9),c=i(1),r=(i(4),i(61)),u=i(2),l=i(6);i.d(t,"MDCCheckboxFoundation",function(){return r.a});var a=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},v=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),y=function(n){function t(){var r,n;o(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.ripple_=n.initRipple_(),n.handleChange_,n.handleAnimationEnd_,n}return h(t,n),e(t,[{key:"nativeCb_",get:function(){var n=r.a.strings.NATIVE_CONTROL_SELECTOR;return this.root_.querySelector(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),e(t,[{key:"initialSyncWithDOM",value:function(){var n=this;this.handleChange_=function(){return n.foundation_.handleChange()};this.handleAnimationEnd_=function(){return n.foundation_.handleAnimationEnd()};this.nativeCb_.addEventListener("change",this.handleChange_);this.listen(Object(f.a)(window,"animationend"),this.handleAnimationEnd_)}},{key:"initRipple_",value:function(){var n=this,t=Object(l.getMatchesProperty)(HTMLElement.prototype),i=a(u.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return n.nativeCb_[t](":active")},registerInteractionHandler:function(t,i){return n.nativeCb_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.nativeCb_.removeEventListener(t,i)}}),r=new u.MDCRippleFoundation(i);return new u.MDCRipple(this.root_,r)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},setNativeControlAttr:function(t,i){return n.nativeCb_.setAttribute(t,i)},removeNativeControlAttr:function(t){return n.nativeCb_.removeAttribute(t)},getNativeControl:function(){return n.nativeCb_},forceLayout:function(){return n.root_.offsetWidth},isAttachedToDOM:function(){return Boolean(n.root_.parentNode)}})}},{key:"destroy",value:function(){this.ripple_.destroy();this.nativeCb_.removeEventListener("change",this.handleChange_);this.unlisten(Object(f.a)(window,"animationend"),this.handleAnimationEnd_);v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"ripple",get:function(){return this.ripple_}},{key:"checked",get:function(){return this.foundation_.isChecked()},set:function(n){this.foundation_.setChecked(n)}},{key:"indeterminate",get:function(){return this.foundation_.isIndeterminate()},set:function(n){this.foundation_.setIndeterminate(n)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(n){this.foundation_.setDisabled(n)}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(n){this.foundation_.setValue(n)}}]),t}(c.a)},function(n,t,i){"use strict";function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var a=i(0),r=(i(24),i(60)),v=i(6),f=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=["touchstart","pointerdown","mousedown","keydown"],s=["touchend","pointerup","mouseup"],u=[],y=function(n){function t(n){h(this,t);var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f(t.defaultAdapter,n)));return i.layoutFrame_=0,i.frame_={width:0,height:0},i.activationState_=i.defaultActivationState_(),i.initialSize_=0,i.maxRadius_=0,i.activateHandler_=function(n){return i.activate_(n)},i.deactivateHandler_=function(n){return i.deactivate_(n)},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i.unboundedCoords_={left:0,top:0},i.fgScale_=0,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.activationAnimationHasEnded_=!1,i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0;i.runDeactivationUXLogicIfReady_()},i.previousActivationEvent_=null,i}return l(t,n),e(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.c}},{key:"numbers",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{browserSupportsCssVars:function(){},isUnbounded:function(){},isSurfaceActive:function(){},isSurfaceDisabled:function(){},addClass:function(){},removeClass:function(){},containsEventTarget:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerDocumentInteractionHandler:function(){},deregisterDocumentInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},updateCssVariable:function(){},computeBoundingRect:function(){},getWindowPageOffset:function(){}}}}]),e(t,[{key:"supportsPressRipple_",value:function(){return this.adapter_.browserSupportsCssVars()}},{key:"defaultActivationState_",value:function(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}},{key:"init",value:function(){var n=this,i=this.supportsPressRipple_();if(this.registerRootHandlers_(i),i){var r=t.cssClasses,u=r.ROOT,f=r.UNBOUNDED;requestAnimationFrame(function(){n.adapter_.addClass(u);n.adapter_.isUnbounded()&&(n.adapter_.addClass(f),n.layoutInternal_())})}}},{key:"destroy",value:function(){var n=this,i;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,i=t.cssClasses.FG_ACTIVATION,this.adapter_.removeClass(i));var r=t.cssClasses,u=r.ROOT,f=r.UNBOUNDED;requestAnimationFrame(function(){n.adapter_.removeClass(u);n.adapter_.removeClass(f);n.removeCssVars_()})}this.deregisterRootHandlers_();this.deregisterDeactivationHandlers_()}},{key:"registerRootHandlers_",value:function(n){var t=this;n&&(o.forEach(function(n){t.adapter_.registerInteractionHandler(n,t.activateHandler_)}),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_));this.adapter_.registerInteractionHandler("focus",this.focusHandler_);this.adapter_.registerInteractionHandler("blur",this.blurHandler_)}},{key:"registerDeactivationHandlers_",value:function(n){var t=this;"keydown"===n.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):s.forEach(function(n){t.adapter_.registerDocumentInteractionHandler(n,t.deactivateHandler_)})}},{key:"deregisterRootHandlers_",value:function(){var n=this;o.forEach(function(t){n.adapter_.deregisterInteractionHandler(t,n.activateHandler_)});this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_);this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_);this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"deregisterDeactivationHandlers_",value:function(){var n=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_);s.forEach(function(t){n.adapter_.deregisterDocumentInteractionHandler(t,n.deactivateHandler_)})}},{key:"removeCssVars_",value:function(){var i=this,n=t.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&i.adapter_.updateCssVariable(n[t],null)})}},{key:"activate_",value:function(n){var i=this,t,r;if(!this.adapter_.isSurfaceDisabled()&&(t=this.activationState_,!t.isActivated&&(r=this.previousActivationEvent_,!(r&&n&&r.type!==n.type)))){if(t.isActivated=!0,t.isProgrammatic=null===n,t.activationEvent=n,t.wasActivatedByPointer=!t.isProgrammatic&&("mousedown"===n.type||"touchstart"===n.type||"pointerdown"===n.type),n&&u.length>0&&u.some(function(n){return i.adapter_.containsEventTarget(n)}))return void this.resetActivationState_();n&&(u.push(n.target),this.registerDeactivationHandlers_(n));t.wasElementMadeActive=this.checkElementMadeActive_(n);t.wasElementMadeActive&&this.animateActivation_();requestAnimationFrame(function(){u=[];t.wasElementMadeActive||" "!==n.key&&32!==n.keyCode||(t.wasElementMadeActive=i.checkElementMadeActive_(n),t.wasElementMadeActive&&i.animateActivation_());t.wasElementMadeActive||(i.activationState_=i.defaultActivationState_())})}}},{key:"checkElementMadeActive_",value:function(n){return!n||"keydown"!==n.type||this.adapter_.isSurfaceActive()}},{key:"activate",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activate_(n)}},{key:"animateActivation_",value:function(){var s=this,r=t.strings,h=r.VAR_FG_TRANSLATE_START,c=r.VAR_FG_TRANSLATE_END,u=t.cssClasses,l=u.FG_DEACTIVATION,a=u.FG_ACTIVATION,v=t.numbers.DEACTIVATION_TIMEOUT_MS,n,i;if(this.layoutInternal_(),n="",i="",!this.adapter_.isUnbounded()){var f=this.getFgTranslationCoordinates_(),e=f.startPoint,o=f.endPoint;n=e.x+"px, "+e.y+"px";i=o.x+"px, "+o.y+"px"}this.adapter_.updateCssVariable(h,n);this.adapter_.updateCssVariable(c,i);clearTimeout(this.activationTimer_);clearTimeout(this.fgDeactivationRemovalTimer_);this.rmBoundedActivationClasses_();this.adapter_.removeClass(l);this.adapter_.computeBoundingRect();this.adapter_.addClass(a);this.activationTimer_=setTimeout(function(){return s.activationTimerCallback_()},v)}},{key:"getFgTranslationCoordinates_",value:function(){var t=this.activationState_,i=t.activationEvent,r=t.wasActivatedByPointer,n=void 0;return n=r?Object(v.getNormalizedEventCoords)(i,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2},n={x:n.x-this.initialSize_/2,y:n.y-this.initialSize_/2},{startPoint:n,endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}},{key:"runDeactivationUXLogicIfReady_",value:function(){var u=this,n=t.cssClasses.FG_DEACTIVATION,i=this.activationState_,f=i.hasDeactivationUXRun,e=i.isActivated;(f||!e)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout(function(){u.adapter_.removeClass(n)},r.b.FG_DEACTIVATION_MS))}},{key:"rmBoundedActivationClasses_",value:function(){var n=t.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(n);this.activationAnimationHasEnded_=!1;this.adapter_.computeBoundingRect()}},{key:"resetActivationState_",value:function(){var n=this;this.previousActivationEvent_=this.activationState_.activationEvent;this.activationState_=this.defaultActivationState_();setTimeout(function(){return n.previousActivationEvent_=null},t.numbers.TAP_DELAY_MS)}},{key:"deactivate_",value:function(n){var t=this,i=this.activationState_,r;i.isActivated&&(r=f({},i),i.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(null,r)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0;t.animateDeactivation_(n,r);t.resetActivationState_()})))}},{key:"deactivate",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.deactivate_(n)}},{key:"animateDeactivation_",value:function(n,t){var i=t.wasActivatedByPointer,r=t.wasElementMadeActive;(i||r)&&this.runDeactivationUXLogicIfReady_()}},{key:"layout",value:function(){var n=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_);this.layoutFrame_=requestAnimationFrame(function(){n.layoutInternal_();n.layoutFrame_=0})}},{key:"layoutInternal_",value:function(){var i=this,n;this.frame_=this.adapter_.computeBoundingRect();n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?n:function(){return Math.sqrt(Math.pow(i.frame_.width,2)+Math.pow(i.frame_.height,2))+t.numbers.PADDING}();this.initialSize_=n*t.numbers.INITIAL_ORIGIN_SCALE;this.fgScale_=this.maxRadius_/this.initialSize_;this.updateLayoutCssVars_()}},{key:"updateLayoutCssVars_",value:function(){var n=t.strings,i=n.VAR_FG_SIZE,r=n.VAR_LEFT,u=n.VAR_TOP,f=n.VAR_FG_SCALE;this.adapter_.updateCssVariable(i,this.initialSize_+"px");this.adapter_.updateCssVariable(f,this.fgScale_);this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(r,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(u,this.unboundedCoords_.top+"px"))}},{key:"setUnbounded",value:function(n){var i=t.cssClasses.UNBOUNDED;n?this.adapter_.addClass(i):this.adapter_.removeClass(i)}},{key:"handleFocus",value:function(){var n=this;requestAnimationFrame(function(){return n.adapter_.addClass(t.cssClasses.BG_FOCUSED)})}},{key:"handleBlur",value:function(){var n=this;requestAnimationFrame(function(){return n.adapter_.removeClass(t.cssClasses.BG_FOCUSED)})}}]),t}(a.a);t.a=y},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"b",function(){return f});var r={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},u={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},f={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function u(n){return!!n&&"function"==typeof n.set}var c=i(0),r=(i(4),i(62),i(63)),l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),e=["checked","indeterminate"],a=function(n){function t(n){o(this,t);var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l(t.defaultAdapter,n)));return i.currentCheckState_=r.c.TRANSITION_STATE_INIT,i.currentAnimationClass_="",i.animEndLatchTimer_=0,i.enableAnimationEndHandler_=!1,i}return h(t,n),f(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.c}},{key:"numbers",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlAttr:function(){},removeNativeControlAttr:function(){},getNativeControl:function(){},forceLayout:function(){},isAttachedToDOM:function(){}}}}]),f(t,[{key:"init",value:function(){this.currentCheckState_=this.determineCheckState_(this.getNativeControl_());this.updateAriaChecked_();this.adapter_.addClass(r.a.UPGRADED);this.installPropertyChangeHooks_()}},{key:"destroy",value:function(){this.uninstallPropertyChangeHooks_()}},{key:"isChecked",value:function(){return this.getNativeControl_().checked}},{key:"setChecked",value:function(n){this.getNativeControl_().checked=n}},{key:"isIndeterminate",value:function(){return this.getNativeControl_().indeterminate}},{key:"setIndeterminate",value:function(n){this.getNativeControl_().indeterminate=n}},{key:"isDisabled",value:function(){return this.getNativeControl_().disabled}},{key:"setDisabled",value:function(n){this.getNativeControl_().disabled=n;n?this.adapter_.addClass(r.a.DISABLED):this.adapter_.removeClass(r.a.DISABLED)}},{key:"getValue",value:function(){return this.getNativeControl_().value}},{key:"setValue",value:function(n){this.getNativeControl_().value=n}},{key:"handleAnimationEnd",value:function(){var n=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout(function(){n.adapter_.removeClass(n.currentAnimationClass_);n.enableAnimationEndHandler_=!1},r.b.ANIM_END_LATCH_MS))}},{key:"handleChange",value:function(){this.transitionCheckState_()}},{key:"installPropertyChangeHooks_",value:function(){var t=this,n=this.getNativeControl_(),i=Object.getPrototypeOf(n);e.forEach(function(r){var f=Object.getOwnPropertyDescriptor(i,r),e;u(f)&&(e={get:f.get,set:function(i){f.set.call(n,i);t.transitionCheckState_()},configurable:f.configurable,enumerable:f.enumerable},Object.defineProperty(n,r,e))})}},{key:"uninstallPropertyChangeHooks_",value:function(){var n=this.getNativeControl_(),t=Object.getPrototypeOf(n);e.forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);u(r)&&Object.defineProperty(n,i,r)})}},{key:"transitionCheckState_",value:function(){var i=this.adapter_.getNativeControl(),t,n;i&&(t=this.currentCheckState_,n=this.determineCheckState_(i),t!==n&&(this.updateAriaChecked_(),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter_.forceLayout(),this.adapter_.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(t,n),this.currentCheckState_=n,this.adapter_.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter_.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)))}},{key:"determineCheckState_",value:function(n){var t=r.c.TRANSITION_STATE_INDETERMINATE,i=r.c.TRANSITION_STATE_CHECKED,u=r.c.TRANSITION_STATE_UNCHECKED;return n.indeterminate?t:n.checked?i:u}},{key:"getTransitionAnimationClass_",value:function(n,i){var o=r.c.TRANSITION_STATE_INIT,f=r.c.TRANSITION_STATE_CHECKED,e=r.c.TRANSITION_STATE_UNCHECKED,u=t.cssClasses,s=u.ANIM_UNCHECKED_CHECKED,h=u.ANIM_UNCHECKED_INDETERMINATE,c=u.ANIM_CHECKED_UNCHECKED,l=u.ANIM_CHECKED_INDETERMINATE,a=u.ANIM_INDETERMINATE_CHECKED,v=u.ANIM_INDETERMINATE_UNCHECKED;switch(n){case o:if(i===e)return"";case e:return i===f?s:h;case f:return i===e?c:l;default:return i===f?a:v}}},{key:"updateAriaChecked_",value:function(){this.isIndeterminate()?this.adapter_.setNativeControlAttr(r.c.ARIA_CHECKED_ATTR,r.c.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter_.removeNativeControlAttr(r.c.ARIA_CHECKED_ATTR)}},{key:"getNativeControl_",value:function(){return this.adapter_.getNativeControl()||{checked:!1,indeterminate:!1,disabled:!1,value:null}}}]),t}(c.a);t.a=a},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u=(i(4),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}());!function(){function n(){r(this,n)}u(n,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"setNativeControlAttr",value:function(){}},{key:"removeNativeControlAttr",value:function(){}},{key:"getNativeControl",value:function(){}},{key:"forceLayout",value:function(){}},{key:"isAttachedToDOM",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"b",function(){return f});var r={UPGRADED:"mdc-checkbox--upgraded",CHECKED:"mdc-checkbox--checked",INDETERMINATE:"mdc-checkbox--indeterminate",DISABLED:"mdc-checkbox--disabled",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked"},u={NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_UNCHECKED:"unchecked",TRANSITION_STATE_INDETERMINATE:"indeterminate",ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed"},f={ANIM_END_LATCH_MS:250}},function(n,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(25),u=i(65);i.d(t,"MDCChipFoundation",function(){return r.b});i.d(t,"MDCChip",function(){return r.a});i.d(t,"MDCChipSetFoundation",function(){return u.b});i.d(t,"MDCChipSet",function(){return u.a})},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.d(t,"a",function(){return v});var h=i(1),u=(i(29),i(66)),r=i(25);i.d(t,"b",function(){return u.a});var c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},l=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},f=0,v=function(n){function t(){var r,n;e(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.chips,n.chipFactory_,n.handleChipInteraction_,n.handleChipRemoval_,n}return s(t,n),l(t,[{key:"initialize",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return new r.a(n)};this.chipFactory_=n;this.chips=this.instantiateChips_(this.chipFactory_)}},{key:"initialSyncWithDOM",value:function(){var n=this;this.chips.forEach(function(t){t.selected&&n.foundation_.select(t.id)});this.handleChipInteraction_=function(t){return n.foundation_.handleChipInteraction(t)};this.handleChipRemoval_=function(t){return n.foundation_.handleChipRemoval(t)};this.root_.addEventListener(r.b.strings.INTERACTION_EVENT,this.handleChipInteraction_);this.root_.addEventListener(r.b.strings.REMOVAL_EVENT,this.handleChipRemoval_)}},{key:"destroy",value:function(){this.chips.forEach(function(n){n.destroy()});this.root_.removeEventListener(r.b.strings.INTERACTION_EVENT,this.handleChipInteraction_);this.root_.removeEventListener(r.b.strings.REMOVAL_EVENT,this.handleChipRemoval_);a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"addChip",value:function(n){n.id=n.id||"mdc-chip-"+ ++f;this.chips.push(this.chipFactory_(n))}},{key:"getDefaultFoundation",value:function(){var n=this;return new u.a(c({hasClass:function(t){return n.root_.classList.contains(t)},removeChip:function(t){var i=n.findChipIndex_(t);i>=0&&(n.chips[i].destroy(),n.chips.splice(i,1))},setSelected:function(t,i){var r=n.findChipIndex_(t);r>=0&&(n.chips[r].selected=i)}}))}},{key:"instantiateChips_",value:function(n){return[].slice.call(this.root_.querySelectorAll(u.a.strings.CHIP_SELECTOR)).map(function(t){return t.id=t.id||"mdc-chip-"+ ++f,n(t)})}},{key:"findChipIndex_",value:function(n){for(var t=0;t<this.chips.length;t++)if(this.chips[t].id===n)return t;return-1}},{key:"selectedChipIds",get:function(){return this.foundation_.getSelectedChipIds()}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(h.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(29),i(27),i(67)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.selectedChipIds_=[],i}return o(t,n),u(t,null,[{key:"strings",get:function(){return r.b}},{key:"cssClasses",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{hasClass:function(){},removeChip:function(){},setSelected:function(){}}}}]),u(t,[{key:"getSelectedChipIds",value:function(){return this.selectedChipIds_}},{key:"toggleSelect",value:function(n){this.selectedChipIds_.indexOf(n)>=0?this.deselect(n):this.select(n)}},{key:"select",value:function(n){this.selectedChipIds_.indexOf(n)>=0||(this.adapter_.hasClass(r.a.CHOICE)&&this.selectedChipIds_.length>0&&(this.adapter_.setSelected(this.selectedChipIds_[0],!1),this.selectedChipIds_.length=0),this.adapter_.setSelected(n,!0),this.selectedChipIds_.push(n))}},{key:"deselect",value:function(n){var t=this.selectedChipIds_.indexOf(n);t>=0&&(this.selectedChipIds_.splice(t,1),this.adapter_.setSelected(n,!1))}},{key:"handleChipInteraction",value:function(n){var t=n.detail.chipId;(this.adapter_.hasClass(r.a.CHOICE)||this.adapter_.hasClass(r.a.FILTER))&&this.toggleSelect(t)}},{key:"handleChipRemoval",value:function(n){var t=n.detail.chipId;this.deselect(t);this.adapter_.removeChip(t)}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";i.d(t,"b",function(){return r});i.d(t,"a",function(){return u});var r={CHIP_SELECTOR:".mdc-chip"},u={CHOICE:"mdc-chip-set--choice",FILTER:"mdc-chip-set--filter"}},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCDialog",function(){return a});var s=i(3),h=i(2),r=i(69),u=i(71);i.d(t,"MDCDialogFoundation",function(){return r.a});i.d(t,"util",function(){return u});var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},a=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),c(t,[{key:"initialize",value:function(){this.focusTrap_=u.createFocusTrapInstance(this.dialogSurface_,this.acceptButton_);this.footerBtnRipples_=[];for(var n,i=this.root_.querySelectorAll(".mdc-dialog__footer__button"),t=0;n=i[t];t++)this.footerBtnRipples_.push(new h.MDCRipple(n))}},{key:"destroy",value:function(){this.footerBtnRipples_.forEach(function(n){return n.destroy()});l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"show",value:function(){this.foundation_.open()}},{key:"close",value:function(){this.foundation_.close()}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},addBodyClass:function(n){return document.body.classList.add(n)},removeBodyClass:function(n){return document.body.classList.remove(n)},eventTargetHasClass:function(n,t){return n.classList.contains(t)},registerInteractionHandler:function(t,i){return n.root_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.root_.removeEventListener(t,i)},registerSurfaceInteractionHandler:function(t,i){return n.dialogSurface_.addEventListener(t,i)},deregisterSurfaceInteractionHandler:function(t,i){return n.dialogSurface_.removeEventListener(t,i)},registerDocumentKeydownHandler:function(n){return document.addEventListener("keydown",n)},deregisterDocumentKeydownHandler:function(n){return document.removeEventListener("keydown",n)},notifyAccept:function(){return n.emit(r.a.strings.ACCEPT_EVENT)},notifyCancel:function(){return n.emit(r.a.strings.CANCEL_EVENT)},trapFocusOnSurface:function(){return n.focusTrap_.activate()},untrapFocusOnSurface:function(){return n.focusTrap_.deactivate()},isDialog:function(t){return t===n.dialogSurface_}})}},{key:"open",get:function(){return this.foundation_.isOpen()}},{key:"acceptButton_",get:function(){return this.root_.querySelector(r.a.strings.ACCEPT_SELECTOR)}},{key:"dialogSurface_",get:function(){return this.root_.querySelector(r.a.strings.DIALOG_SURFACE_SELECTOR)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(s.MDCComponent)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(3),r=i(70),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.isOpen_=!1,i.componentClickHandler_=function(n){i.adapter_.eventTargetHasClass(n.target,r.a.BACKDROP)&&i.cancel(!0)},i.dialogClickHandler_=function(n){return i.handleDialogClick_(n)},i.documentKeydownHandler_=function(n){(n.key&&"Escape"===n.key||27===n.keyCode)&&i.cancel(!0)},i.timerId_=0,i.animationTimerEnd_=function(n){return i.handleAnimationTimerEnd_(n)},i}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.c}},{key:"numbers",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},addBodyClass:function(){},removeBodyClass:function(){},eventTargetHasClass:function(){return!1},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerSurfaceInteractionHandler:function(){},deregisterSurfaceInteractionHandler:function(){},registerDocumentKeydownHandler:function(){},deregisterDocumentKeydownHandler:function(){},notifyAccept:function(){},notifyCancel:function(){},trapFocusOnSurface:function(){},untrapFocusOnSurface:function(){},isDialog:function(){return!1}}}}]),u(t,[{key:"destroy",value:function(){this.isOpen_&&this.close();this.adapter_.removeClass(t.cssClasses.ANIMATING);clearTimeout(this.timerId_)}},{key:"open",value:function(){this.isOpen_=!0;this.disableScroll_();this.adapter_.registerDocumentKeydownHandler(this.documentKeydownHandler_);this.adapter_.registerSurfaceInteractionHandler("click",this.dialogClickHandler_);this.adapter_.registerInteractionHandler("click",this.componentClickHandler_);clearTimeout(this.timerId_);this.timerId_=setTimeout(this.animationTimerEnd_,t.numbers.DIALOG_ANIMATION_TIME_MS);this.adapter_.addClass(t.cssClasses.ANIMATING);this.adapter_.addClass(t.cssClasses.OPEN)}},{key:"close",value:function(){this.isOpen_=!1;this.enableScroll_();this.adapter_.deregisterSurfaceInteractionHandler("click",this.dialogClickHandler_);this.adapter_.deregisterDocumentKeydownHandler(this.documentKeydownHandler_);this.adapter_.deregisterInteractionHandler("click",this.componentClickHandler_);this.adapter_.untrapFocusOnSurface();clearTimeout(this.timerId_);this.timerId_=setTimeout(this.animationTimerEnd_,t.numbers.DIALOG_ANIMATION_TIME_MS);this.adapter_.addClass(t.cssClasses.ANIMATING);this.adapter_.removeClass(t.cssClasses.OPEN)}},{key:"isOpen",value:function(){return this.isOpen_}},{key:"accept",value:function(n){n&&this.adapter_.notifyAccept();this.close()}},{key:"cancel",value:function(n){n&&this.adapter_.notifyCancel();this.close()}},{key:"handleDialogClick_",value:function(n){var t=n.target;this.adapter_.eventTargetHasClass(t,r.a.ACCEPT_BTN)?this.accept(!0):this.adapter_.eventTargetHasClass(t,r.a.CANCEL_BTN)&&this.cancel(!0)}},{key:"handleAnimationTimerEnd_",value:function(){this.adapter_.removeClass(t.cssClasses.ANIMATING);this.isOpen_&&this.adapter_.trapFocusOnSurface()}},{key:"disableScroll_",value:function(){this.adapter_.addBodyClass(r.a.SCROLL_LOCK)}},{key:"enableScroll_",value:function(){this.adapter_.removeBodyClass(r.a.SCROLL_LOCK)}}]),t}(s.MDCFoundation);t.a=c},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"b",function(){return f});var r={ROOT:"mdc-dialog",OPEN:"mdc-dialog--open",ANIMATING:"mdc-dialog--animating",BACKDROP:"mdc-dialog__backdrop",SCROLL_LOCK:"mdc-dialog-scroll-lock",ACCEPT_BTN:"mdc-dialog__footer__button--accept",CANCEL_BTN:"mdc-dialog__footer__button--cancel"},u={OPEN_DIALOG_SELECTOR:".mdc-dialog--open",DIALOG_SURFACE_SELECTOR:".mdc-dialog__surface",ACCEPT_SELECTOR:".mdc-dialog__footer__button--accept",ACCEPT_EVENT:"MDCDialog:accept",CANCEL_EVENT:"MDCDialog:cancel"},f={DIALOG_ANIMATION_TIME_MS:120}},function(n,t,i){"use strict";function r(n,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.a)(n,{initialFocus:t,clickOutsideDeactivates:!0})}Object.defineProperty(t,"__esModule",{value:!0});t.createFocusTrapInstance=r;var u=i(72),f=i.n(u)},function(n,t,i){function f(n,t){function ut(n){if(!s){var t={onActivate:n&&void 0!==n.onActivate?n.onActivate:f.onActivate};return s=!0,h=!1,rt=document.activeElement,t.onActivate&&t.onActivate(),k(),c}}function p(n){if(s){var t={returnFocus:n&&void 0!==n.returnFocus?n.returnFocus:f.returnFocusOnDeactivate,onDeactivate:n&&void 0!==n.onDeactivate?n.onDeactivate:f.onDeactivate};return d(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){r(rt)},0),s=!1,h=!1,this}}function ft(){!h&&s&&(h=!0,d())}function et(){h&&s&&(h=!1,k())}function k(){if(s)return u&&u.pause(),u=c,it(),r(ot()),document.addEventListener("focus",nt,!0),document.addEventListener("click",g,!0),document.addEventListener("mousedown",a,!0),document.addEventListener("touchstart",a,!0),document.addEventListener("keydown",tt,!0),c}function d(){if(s&&u===c)return document.removeEventListener("focus",nt,!0),document.removeEventListener("click",g,!0),document.removeEventListener("mousedown",a,!0),document.removeEventListener("touchstart",a,!0),document.removeEventListener("keydown",tt,!0),u=null,c}function w(n){var t=f[n],i=t;if(!t)return null;if("string"==typeof t&&!(i=document.querySelector(t)))throw new Error("`"+n+"` refers to no known node");if("function"==typeof t&&!(i=t()))throw new Error("`"+n+"` did not return a node");return i}function ot(){var n;if(!(n=null!==w("initialFocus")?w("initialFocus"):l.contains(document.activeElement)?document.activeElement:i[0]||w("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return n}function a(n){f.clickOutsideDeactivates&&!l.contains(n.target)&&p({returnFocus:!1})}function g(n){f.clickOutsideDeactivates||l.contains(n.target)||(n.preventDefault(),n.stopImmediatePropagation())}function nt(n){l.contains(n.target)||(n.preventDefault(),n.stopImmediatePropagation(),"function"==typeof n.target.blur&&n.target.blur(),b&&ht(b))}function tt(n){"Tab"!==n.key&&9!==n.keyCode||st(n);!1!==f.escapeDeactivates&&e(n)&&p()}function st(n){if(it(),n.target.hasAttribute("tabindex")&&Number(n.target.getAttribute("tabindex"))<0)return b=n;n.preventDefault();var t=i.indexOf(n.target);return n.shiftKey?r(n.target===v||-1===i.indexOf(n.target)?y:i[t-1]):n.target===y?r(v):void r(i[t+1])}function it(){i=o(l);v=i[0];y=i[i.length-1]}function ht(n){if(n.shiftKey)return r(y);r(v)}var i=[],v=null,y=null,rt=null,s=!1,h=!1,b=null,l="string"==typeof n?document.querySelector(n):n,f=t||{},c;return f.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,f.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates,c={activate:ut,deactivate:p,pause:ft,unpause:et}}function e(n){return"Escape"===n.key||"Esc"===n.key||27===n.keyCode}function r(n){n&&n.focus&&n!==document.activeElement&&(n.focus(),"input"===n.tagName.toLowerCase()&&n.select())}var o=i(73),u=null;n.exports=f},function(n){function t(n){function i(r,u){var f,o,e;if(r===n.documentElement)return!1;for(f=0,o=t.length;f<o;f++)if(t[f][0]===r)return t[f][1];return u=u||n.defaultView.getComputedStyle(r),e=!1,"none"===u.display?e=!0:r.parentNode&&(e=i(r.parentNode)),t.push([r,e]),e}var t=[];return function(t){if(t===n.documentElement)return!1;var r=n.defaultView.getComputedStyle(t);return!!i(t,r)||"hidden"===r.visibility}}n.exports=function(n,i){var a,r,e,f,v,o;i=i||{};var s=n.ownerDocument||n,h=[],c=[],y=t(s),l=["input","select","a[href]","textarea","button","[tabindex]"],u=n.querySelectorAll(l.join(","));for(i.includeContainer&&(a=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l.some(function(t){return a.call(n,t)})&&(u=Array.prototype.slice.apply(u),u.unshift(n))),f=0,v=u.length;f<v;f++)r=u[f],(e=parseInt(r.getAttribute("tabindex"),10)||r.tabIndex)<0||"INPUT"===r.tagName&&"hidden"===r.type||r.disabled||y(r,s)||(0===e?h.push(r):c.push({index:f,tabIndex:e,node:r}));return o=c.sort(function(n,t){return n.tabIndex===t.tabIndex?n.index-t.index:n.tabIndex-t.tabIndex}).map(function(n){return n.node}),Array.prototype.push.apply(o,h),o}},function(n,t,i){"use strict";function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCDrawer",function(){return b});var l=i(3),r=i(30),u=i(75),a=(i(13),i(14)),f=i(15),e=i(31),o=i(76),v=i(34),y=i.n(v);i.d(t,"MDCDismissibleDrawerFoundation",function(){return r.a});i.d(t,"MDCModalDrawerFoundation",function(){return u.a});i.d(t,"util",function(){return o});var p=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},w=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),b=function(n){function t(){var r,n;s(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=h(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.previousFocus_,n.handleKeydown_,n.handleTransitionEnd_,n.focusTrapFactory_,n.focusTrap_,n.scrim_,n.handleScrimClick_,n}return c(t,n),w(t,[{key:"initialize",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.a,t=this.root_.querySelector("."+f.a.cssClasses.ROOT);a.MDCList.attachTo(t).wrapFocus=!0;this.focusTrapFactory_=n}},{key:"initialSyncWithDOM",value:function(){var n=this,i=r.a.cssClasses.MODAL,t;this.root_.classList.contains(i)&&(t=r.a.strings.SCRIM_SELECTOR,this.scrim_=this.root_.parentElement.querySelector(t),this.handleScrimClick_=function(){return n.foundation_.handleScrimClick()},this.scrim_.addEventListener("click",this.handleScrimClick_),this.focusTrap_=o.createFocusTrapInstance(this.root_,this.focusTrapFactory_));this.handleKeydown_=function(t){return n.foundation_.handleKeydown(t)};this.handleTransitionEnd_=function(t){return n.foundation_.handleTransitionEnd(t)};this.root_.addEventListener("keydown",this.handleKeydown_);this.root_.addEventListener("transitionend",this.handleTransitionEnd_)}},{key:"destroy",value:function(){this.root_.removeEventListener("keydown",this.handleKeydown_);this.root_.removeEventListener("transitionend",this.handleTransitionEnd_);var n=r.a.cssClasses.MODAL;this.root_.classList.contains(n)&&(this.scrim_.removeEventListener("click",this.handleScrimClick_),this.open=!1)}},{key:"getDefaultFoundation",value:function(){var n=this,t=p({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},elementHasClass:function(n,t){return n.classList.contains(t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},saveFocus:function(){n.previousFocus_=document.activeElement},restoreFocus:function(){var t=n.previousFocus_&&n.previousFocus_.focus;n.root_.contains(document.activeElement)&&t&&n.previousFocus_.focus()},focusActiveNavigationItem:function(){var t=n.root_.querySelector("."+f.a.cssClasses.LIST_ITEM_ACTIVATED_CLASS);t&&t.focus()},notifyClose:function(){return n.emit(e.b.CLOSE_EVENT,{},!0)},notifyOpen:function(){return n.emit(e.b.OPEN_EVENT,{},!0)},trapFocus:function(){return n.focusTrap_.activate()},releaseFocus:function(){return n.focusTrap_.deactivate()}}),i=r.a.cssClasses,o=i.DISMISSIBLE,s=i.MODAL;if(this.root_.classList.contains(o))return new r.a(t);if(this.root_.classList.contains(s))return new u.a(t);throw new Error("MDCDrawer: Failed to instantiate component. Supported variants are "+o+" and "+s+".");}},{key:"open",get:function(){return this.foundation_.isOpen()},set:function(n){n?this.foundation_.open():this.foundation_.close()}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(l.MDCComponent)},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e=(i(13),i(30)),o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n){function t(){return r(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),o(t,[{key:"opened",value:function(){this.adapter_.trapFocus()}},{key:"closed",value:function(){this.adapter_.releaseFocus()}},{key:"handleScrimClick",value:function(){this.close()}}]),t}(e.a);t.a=s},function(n,t,i){"use strict";function r(n){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.a)(n,{clickOutsideDeactivates:!0,initialFocus:!1,escapeDeactivates:!1,returnFocusOnDeactivate:!1})}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"createFocusTrapInstance",function(){return r});var u=i(34),f=i.n(u)},function(n){function i(n,i){var s,h,c;i=i||{};var y=n.ownerDocument||n,l=[],a=[],p=new t(y),e=n.querySelectorAll(r);for(i.includeContainer&&u.call(n,r)&&(e=Array.prototype.slice.apply(e),e.unshift(n)),s=0;s<e.length;s++)h=e[s],f(h,p)&&(c=o(h),0===c?l.push(h):a.push({documentOrder:s,tabIndex:c,node:h}));return a.sort(v).map(function(n){return n.node}).concat(l)}function f(n,t){return!(!e(n,t)||k(n)||o(n)<0)}function l(n,t){if(!n)throw new Error("No node provided");return!1!==u.call(n,r)&&f(n,t)}function e(n,i){return i=i||new t(n.ownerDocument||n),!(n.disabled||w(n)||i.isUntouchable(n))}function a(n,t){if(!n)throw new Error("No node provided");return!1!==u.call(n,c)&&e(n,t)}function o(n){var t=parseInt(n.getAttribute("tabindex"),10);return isNaN(t)?p(n)?0:n.tabIndex:t}function v(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex}function y(n,t){for(var i=0,r=n.length;i<r;i++)if(t(n[i]))return n[i]}function p(n){return"true"===n.contentEditable}function s(n){return"INPUT"===n.tagName}function w(n){return s(n)&&"hidden"===n.type}function b(n){return s(n)&&"radio"===n.type}function k(n){return b(n)&&!g(n)}function d(n){for(var t=0;t<n.length;t++)if(n[t].checked)return n[t]}function g(n){if(!n.name)return!0;var i=n.ownerDocument.querySelectorAll('input[type="radio"][name="'+n.name+'"]'),t=d(i);return!t||t===n}function t(n){this.doc=n;this.cache=[]}var h=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=h.join(","),u=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c;i.isTabbable=l;i.isFocusable=a;c=h.concat("iframe").join(",");t.prototype.hasDisplayNone=function(n,t){var r,i;return n===this.doc.documentElement?!1:(r=y(this.cache,function(t){return t===n}),r)?r[1]:(t=t||this.doc.defaultView.getComputedStyle(n),i=!1,"none"===t.display?i=!0:n.parentNode&&(i=this.hasDisplayNone(n.parentNode)),this.cache.push([n,i]),i)};t.prototype.isUntouchable=function(n){if(n===this.doc.documentElement)return!1;var t=this.doc.defaultView.getComputedStyle(n);return!!this.hasDisplayNone(n,t)||"hidden"===t.visibility};n.exports=i},function(n){function t(){for(var t,r,u={},n=0;n<arguments.length;n++){t=arguments[n];for(r in t)i.call(t,r)&&(u[r]=t[r])}return u}n.exports=t;var i=Object.prototype.hasOwnProperty},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o=i(0),s=(i(35),i(80)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){u(this,t);var i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.shakeAnimationEndHandler_=function(){return i.handleShakeAnimationEnd_()},i}return e(t,n),r(t,null,[{key:"cssClasses",get:function(){return s.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}}}]),r(t,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)}},{key:"getWidth",value:function(){return this.adapter_.getWidth()}},{key:"shake",value:function(n){var i=t.cssClasses.LABEL_SHAKE;n?this.adapter_.addClass(i):this.adapter_.removeClass(i)}},{key:"float",value:function(n){var i=t.cssClasses,r=i.LABEL_FLOAT_ABOVE,u=i.LABEL_SHAKE;n?this.adapter_.addClass(r):(this.adapter_.removeClass(r),this.adapter_.removeClass(u))}},{key:"handleShakeAnimationEnd_",value:function(){var n=t.cssClasses.LABEL_SHAKE;this.adapter_.removeClass(n)}}]),t}(o.a);t.a=c},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_SHAKE:"mdc-floating-label--shake"}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,r,u,e;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCFormField",function(){return e});f=i(1);r=i(82);i(4);i.d(t,"MDCFormFieldFoundation",function(){return r.a});u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n){function t(){var r,i;o(this,t);for(var u=arguments.length,f=Array(u),n=0;n<u;n++)f[n]=arguments[n];return i=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),i.input_,i}return h(t,n),u(t,[{key:"input",set:function(n){this.input_=n},get:function(){return this.input_}}],[{key:"attachTo",value:function(n){return new t(n)}}]),u(t,[{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({registerInteractionHandler:function(t,i){return n.label_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.label_.removeEventListener(t,i)},activateInputRipple:function(){n.input_&&n.input_.ripple&&n.input_.ripple.activate()},deactivateInputRipple:function(){n.input_&&n.input_.ripple&&n.input_.ripple.deactivate()}})}},{key:"label_",get:function(){var n=r.a.strings.LABEL_SELECTOR;return this.root_.querySelector(n)}}]),t}(f.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(83),i(84)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.clickHandler_=function(){return i.handleClick_()},i}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},activateInputRipple:function(){},deactivateInputRipple:function(){}}}}]),u(t,[{key:"init",value:function(){this.adapter_.registerInteractionHandler("click",this.clickHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("click",this.clickHandler_)}},{key:"handleClick_",value:function(){var n=this;this.adapter_.activateInputRipple();requestAnimationFrame(function(){return n.adapter_.deactivateInputRipple()})}}]),t}(s.a);t.a=c},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"registerInteractionHandler",value:function(){}},{key:"deregisterInteractionHandler",value:function(){}},{key:"activateInputRipple",value:function(){}},{key:"deactivateInputRipple",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ROOT:"mdc-form-field"},u={LABEL_SELECTOR:".mdc-form-field > label"}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,r,f,e;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCGridList",function(){return e});u=i(3);r=i(86);i.d(t,"MDCGridListFoundation",function(){return r.a});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,n),f(t,[{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({getOffsetWidth:function(){return n.root_.offsetWidth},getNumberOfTiles:function(){return n.root_.querySelectorAll(r.a.strings.TILE_SELECTOR).length},getOffsetWidthForTileAtIndex:function(t){return n.root_.querySelectorAll(r.a.strings.TILE_SELECTOR)[t].offsetWidth},setStyleForTilesElement:function(t,i){n.root_.querySelector(r.a.strings.TILES_SELECTOR).style[t]=i},registerResizeHandler:function(n){return window.addEventListener("resize",n)},deregisterResizeHandler:function(n){return window.removeEventListener("resize",n)}})}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(u.MDCComponent)},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o=i(3),s=i(87),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){u(this,t);var i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.resizeHandler_=function(){return i.alignCenter()},i.resizeFrame_=0,i}return e(t,n),r(t,null,[{key:"strings",get:function(){return s.a}},{key:"defaultAdapter",get:function(){return{getOffsetWidth:function(){return 0},getNumberOfTiles:function(){return 0},getOffsetWidthForTileAtIndex:function(){return 0},setStyleForTilesElement:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){}}}}]),r(t,[{key:"init",value:function(){this.alignCenter();this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"alignCenter",value:function(){var n=this;0!==this.resizeFrame_&&cancelAnimationFrame(this.resizeFrame_);this.resizeFrame_=requestAnimationFrame(function(){n.alignCenter_();n.resizeFrame_=0})}},{key:"alignCenter_",value:function(){if(0!=this.adapter_.getNumberOfTiles()){var t=this.adapter_.getOffsetWidth(),n=this.adapter_.getOffsetWidthForTileAtIndex(0),i=n*Math.floor(t/n);this.adapter_.setStyleForTilesElement("width",i+"px")}}}]),t}(o.MDCFoundation);t.a=c},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r={TILES_SELECTOR:".mdc-grid-list__tiles",TILE_SELECTOR:".mdc-grid-tile"}},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCIconButtonToggle",function(){return l});var s=i(1),r=i(89),h=i(2);i.d(t,"MDCIconButtonToggleFoundation",function(){return r.a});var c=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function(n){function t(){var r,n;f(this,t);for(var u=arguments.length,o=Array(u),i=0;i<u;i++)o[i]=arguments[i];return n=e(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(o))),n.ripple_=n.initRipple_(),n.handleClick_,n}return o(t,n),u(t,null,[{key:"attachTo",value:function(n){return new t(n)}}]),u(t,[{key:"initRipple_",value:function(){var n=new h.MDCRipple(this.root_);return n.unbounded=!0,n}},{key:"destroy",value:function(){this.root_.removeEventListener("click",this.handleClick_);this.ripple_.destroy();c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},setAttr:function(t,i){return n.root_.setAttribute(t,i)},notifyChange:function(t){return n.emit(r.a.strings.CHANGE_EVENT,t)}})}},{key:"initialSyncWithDOM",value:function(){this.handleClick_=this.foundation_.handleClick.bind(this.foundation_);this.root_.addEventListener("click",this.handleClick_)}},{key:"ripple",get:function(){return this.ripple_}},{key:"on",get:function(){return this.foundation_.isOn()},set:function(n){this.foundation_.toggle(n)}}]),t}(s.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(90),i(91)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.disabled_=!1,i}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setAttr:function(){},notifyChange:function(){}}}}]),u(t,[{key:"init",value:function(){this.adapter_.setAttr(r.b.ARIA_PRESSED,""+this.isOn())}},{key:"handleClick",value:function(){this.toggle();this.adapter_.notifyChange({isOn:this.isOn()})}},{key:"isOn",value:function(){return this.adapter_.hasClass(r.a.ICON_BUTTON_ON)}},{key:"toggle",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.isOn();n?this.adapter_.addClass(r.a.ICON_BUTTON_ON):this.adapter_.removeClass(r.a.ICON_BUTTON_ON);this.adapter_.setAttr(r.b.ARIA_PRESSED,""+n)}}]),t}(s.a);t.a=c},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"hasClass",value:function(){}},{key:"setAttr",value:function(){}},{key:"notifyChange",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ROOT:"mdc-icon-button",ICON_BUTTON_ON:"mdc-icon-button--on"},u={ARIA_PRESSED:"aria-pressed",ARIA_LABEL:"aria-label",CHANGE_EVENT:"MDCIconButtonToggle:change"}},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCIconToggle",function(){return a});var h=i(1),r=i(93),u=i(2);i.d(t,"MDCIconToggleFoundation",function(){return r.a});var c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},l=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n){function t(){var r,i;e(this,t);for(var u=arguments.length,f=Array(u),n=0;n<u;n++)f[n]=arguments[n];return i=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),i.ripple_=i.initRipple_(),i}return s(t,n),f(t,null,[{key:"attachTo",value:function(n){return new t(n)}}]),f(t,[{key:"initRipple_",value:function(){var n=this,t=c(u.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return n.foundation_.isKeyboardActivated()}}),i=new u.MDCRippleFoundation(t);return new u.MDCRipple(this.root_,i)}},{key:"destroy",value:function(){this.ripple_.destroy();l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.iconEl_.classList.add(t)},removeClass:function(t){return n.iconEl_.classList.remove(t)},registerInteractionHandler:function(t,i){return n.root_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.root_.removeEventListener(t,i)},setText:function(t){return n.iconEl_.textContent=t},getTabIndex:function(){return n.root_.tabIndex},setTabIndex:function(t){return n.root_.tabIndex=t},getAttr:function(t,i){return n.root_.getAttribute(t,i)},setAttr:function(t,i){return n.root_.setAttribute(t,i)},rmAttr:function(t){return n.root_.removeAttribute(t)},notifyChange:function(t){return n.emit(r.a.strings.CHANGE_EVENT,t)}})}},{key:"initialSyncWithDOM",value:function(){this.on="true"===this.root_.getAttribute(r.a.strings.ARIA_PRESSED);this.disabled="true"===this.root_.getAttribute(r.a.strings.ARIA_DISABLED)}},{key:"refreshToggleData",value:function(){this.foundation_.refreshToggleData()}},{key:"iconEl_",get:function(){var n=this.root_.dataset.iconInnerSelector;return n?this.root_.querySelector(n):this.root_}},{key:"ripple",get:function(){return this.ripple_}},{key:"on",get:function(){return this.foundation_.isOn()},set:function(n){this.foundation_.toggle(n)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(n){this.foundation_.setDisabled(n)}}]),t}(h.a)},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}function f(n){return"Space"===n.key||32===n.keyCode}var c=i(0),e=(i(94),i(95)),l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n){function t(n){u(this,t);var i=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l(t.defaultAdapter,n)));return i.on_=!1,i.disabled_=!1,i.savedTabIndex_=-1,i.toggleOnData_=null,i.toggleOffData_=null,i.clickHandler_=function(){return i.toggleFromEvt_()},i.isHandlingKeydown_=!1,i.keydownHandler_=function(n){if(f(n))return i.isHandlingKeydown_=!0,n.preventDefault()},i.keyupHandler_=function(n){f(n)&&(i.isHandlingKeydown_=!1,i.toggleFromEvt_())},i}return h(t,n),o(t,null,[{key:"cssClasses",get:function(){return e.a}},{key:"strings",get:function(){return e.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},setText:function(){},getTabIndex:function(){return 0},setTabIndex:function(){},getAttr:function(){return""},setAttr:function(){},rmAttr:function(){},notifyChange:function(){}}}}]),o(t,[{key:"init",value:function(){this.refreshToggleData();this.savedTabIndex_=this.adapter_.getTabIndex();this.adapter_.registerInteractionHandler("click",this.clickHandler_);this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_);this.adapter_.registerInteractionHandler("keyup",this.keyupHandler_)}},{key:"refreshToggleData",value:function(){var n=t.strings,i=n.DATA_TOGGLE_ON,r=n.DATA_TOGGLE_OFF;this.toggleOnData_=this.parseJsonDataAttr_(i);this.toggleOffData_=this.parseJsonDataAttr_(r)}},{key:"destroy",value:function(){this.adapter_.deregisterInteractionHandler("click",this.clickHandler_);this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_);this.adapter_.deregisterInteractionHandler("keyup",this.keyupHandler_)}},{key:"toggleFromEvt_",value:function(){this.toggle();var n=this.on_;this.adapter_.notifyChange({isOn:n})}},{key:"isOn",value:function(){return this.on_}},{key:"toggle",value:function(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.on_,f,n;this.on_=h;var r=t.strings,c=r.ARIA_LABEL,u=r.ARIA_PRESSED;this.on_?this.adapter_.setAttr(u,"true"):this.adapter_.setAttr(u,"false");f=this.on_?this.toggleOffData_:this.toggleOnData_;n=f.cssClass;n&&this.adapter_.removeClass(n);var i=this.on_?this.toggleOnData_:this.toggleOffData_,e=i.content,o=i.label,s=i.cssClass;s&&this.adapter_.addClass(s);e&&this.adapter_.setText(e);o&&this.adapter_.setAttr(c,o)}},{key:"parseJsonDataAttr_",value:function(n){var t=this.adapter_.getAttr(n);return t?JSON.parse(t):{}}},{key:"isDisabled",value:function(){return this.disabled_}},{key:"setDisabled",value:function(n){this.disabled_=n;var i=t.cssClasses.DISABLED,r=t.strings.ARIA_DISABLED;this.disabled_?(this.savedTabIndex_=this.adapter_.getTabIndex(),this.adapter_.setTabIndex(-1),this.adapter_.setAttr(r,"true"),this.adapter_.addClass(i)):(this.adapter_.setTabIndex(this.savedTabIndex_),this.adapter_.rmAttr(r),this.adapter_.removeClass(i))}},{key:"isKeyboardActivated",value:function(){return this.isHandlingKeydown_}}]),t}(c.a),r=function n(){u(this,n)};r.prototype.label;r.prototype.content;r.prototype.cssClass;t.a=a},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"registerInteractionHandler",value:function(){}},{key:"deregisterInteractionHandler",value:function(){}},{key:"setText",value:function(){}},{key:"getTabIndex",value:function(){}},{key:"setTabIndex",value:function(){}},{key:"getAttr",value:function(){}},{key:"setAttr",value:function(){}},{key:"rmAttr",value:function(){}},{key:"notifyChange",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ROOT:"mdc-icon-toggle",DISABLED:"mdc-icon-toggle--disabled"},u={DATA_TOGGLE_ON:"data-toggle-on",DATA_TOGGLE_OFF:"data-toggle-off",ARIA_PRESSED:"aria-pressed",ARIA_DISABLED:"aria-disabled",ARIA_LABEL:"aria-label",CHANGE_EVENT:"MDCIconToggle:change"}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,r,f,e;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCLinearProgress",function(){return e});u=i(3);r=i(97);i.d(t,"MDCLinearProgressFoundation",function(){return r.a});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,n),f(t,[{key:"open",value:function(){this.foundation_.open()}},{key:"close",value:function(){this.foundation_.close()}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.root_.classList.add(t)},getPrimaryBar:function(){return n.root_.querySelector(r.a.strings.PRIMARY_BAR_SELECTOR)},getBuffer:function(){return n.root_.querySelector(r.a.strings.BUFFER_SELECTOR)},hasClass:function(t){return n.root_.classList.contains(t)},removeClass:function(t){return n.root_.classList.remove(t)},setStyle:function(n,t,i){return n.style[t]=i}})}},{key:"determinate",set:function(n){this.foundation_.setDeterminate(n)}},{key:"progress",set:function(n){this.foundation_.setProgress(n)}},{key:"buffer",set:function(n){this.foundation_.setBuffer(n)}},{key:"reverse",set:function(n){this.foundation_.setReverse(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(u.MDCComponent)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(3),h=i(9),r=i(98),c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function(n){function t(n){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,c(t.defaultAdapter,n)))}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},getPrimaryBar:function(){},getBuffer:function(){},hasClass:function(){return!1},removeClass:function(){},setStyle:function(){}}}}]),u(t,[{key:"init",value:function(){this.determinate_=!this.adapter_.hasClass(r.a.INDETERMINATE_CLASS);this.reverse_=this.adapter_.hasClass(r.a.REVERSED_CLASS);this.progress_=0}},{key:"setDeterminate",value:function(n){this.determinate_=n;this.determinate_?(this.adapter_.removeClass(r.a.INDETERMINATE_CLASS),this.setScale_(this.adapter_.getPrimaryBar(),this.progress_)):(this.adapter_.addClass(r.a.INDETERMINATE_CLASS),this.setScale_(this.adapter_.getPrimaryBar(),1),this.setScale_(this.adapter_.getBuffer(),1))}},{key:"setProgress",value:function(n){this.progress_=n;this.determinate_&&this.setScale_(this.adapter_.getPrimaryBar(),n)}},{key:"setBuffer",value:function(n){this.determinate_&&this.setScale_(this.adapter_.getBuffer(),n)}},{key:"setReverse",value:function(n){this.reverse_=n;this.reverse_?this.adapter_.addClass(r.a.REVERSED_CLASS):this.adapter_.removeClass(r.a.REVERSED_CLASS)}},{key:"open",value:function(){this.adapter_.removeClass(r.a.CLOSED_CLASS)}},{key:"close",value:function(){this.adapter_.addClass(r.a.CLOSED_CLASS)}},{key:"setScale_",value:function(n,t){var i=this,r="scaleX("+t+")";h.c.forEach(function(t){i.adapter_.setStyle(n,t,r)})}}]),t}(s.MDCFoundation);t.a=l},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={CLOSED_CLASS:"mdc-linear-progress--closed",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed"},u={PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar",BUFFER_SELECTOR:".mdc-linear-progress__buffer"}},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(36),i(100)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n;return f(this,t),n=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,i))),n.transitionEndHandler_=function(t){return n.handleTransitionEnd(t)},n}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}}}]),u(t,[{key:"init",value:function(){this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_)}},{key:"activate",value:function(){this.adapter_.removeClass(r.a.LINE_RIPPLE_DEACTIVATING);this.adapter_.addClass(r.a.LINE_RIPPLE_ACTIVE)}},{key:"setRippleCenter",value:function(n){this.adapter_.setStyle("transform-origin",n+"px center")}},{key:"deactivate",value:function(){this.adapter_.addClass(r.a.LINE_RIPPLE_DEACTIVATING)}},{key:"handleTransitionEnd",value:function(n){var t=this.adapter_.hasClass(r.a.LINE_RIPPLE_DEACTIVATING);"opacity"===n.propertyName&&t&&(this.adapter_.removeClass(r.a.LINE_RIPPLE_ACTIVE),this.adapter_.removeClass(r.a.LINE_RIPPLE_DEACTIVATING))}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCMenu",function(){return y});var c=i(1),f=i(102),r=i(37),e=i(40),u=i(18),l=i(14);i.d(t,"MDCMenuFoundation",function(){return f.a});i.d(t,"AnchorMargin",function(){return u.a});i.d(t,"Corner",function(){return e.Corner});var a=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},y=function(n){function t(){var r,n;o(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.menuSurface_,n.list_,n.handleKeydown_,n.handleClick_,n.afterOpenedCallback_,n}return h(t,n),a(t,[{key:"initialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return new e.MDCMenuSurface(n)},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return new l.MDCList(n)},n;this.menuSurface_=t(this.root_);n=this.root_.querySelector(r.b.LIST_SELECTOR);n&&(this.list_=i(n),this.list_.wrapFocus=!0)}},{key:"initialSyncWithDOM",value:function(){var n=this;this.afterOpenedCallback_=function(){return n.handleAfterOpened_()};this.handleKeydown_=function(t){return n.foundation_.handleKeydown(t)};this.handleClick_=function(t){return n.foundation_.handleClick(t)};this.menuSurface_.listen(u.b.strings.OPENED_EVENT,this.afterOpenedCallback_);this.listen("keydown",this.handleKeydown_);this.listen("click",this.handleClick_)}},{key:"destroy",value:function(){this.list_&&this.list_.destroy();this.menuSurface_.destroy();this.menuSurface_.unlisten(u.b.strings.OPENED_EVENT,this.afterOpenedCallback_);this.unlisten("keydown",this.handleKeydown_);this.unlisten("click",this.handleClick_);v(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"setAnchorCorner",value:function(n){this.menuSurface_.setAnchorCorner(n)}},{key:"setAnchorMargin",value:function(n){this.menuSurface_.setAnchorMargin(n)}},{key:"getOptionByIndex",value:function(n){return n<this.items.length?this.items[n]:null}},{key:"setFixedPosition",value:function(n){this.menuSurface_.setFixedPosition(n)}},{key:"hoistMenuToBody",value:function(){this.menuSurface_.hoistMenuToBody()}},{key:"setIsHoisted",value:function(n){this.menuSurface_.setIsHoisted(n)}},{key:"setAbsolutePosition",value:function(n,t){this.menuSurface_.setAbsolutePosition(n,t)}},{key:"setAnchorElement",value:function(n){this.menuSurface_.anchorElement=n}},{key:"handleAfterOpened_",value:function(){var n=this.items;n.length>0&&n[0].focus()}},{key:"getDefaultFoundation",value:function(){var n=this;return new f.a({addClassToElementAtIndex:function(t,i){n.items[t].classList.add(i)},removeClassFromElementAtIndex:function(t,i){n.items[t].classList.remove(i)},addAttributeToElementAtIndex:function(t,i,r){n.items[t].setAttribute(i,r)},removeAttributeFromElementAtIndex:function(t,i){n.items[t].removeAttribute(i)},elementContainsClass:function(n,t){return n.classList.contains(t)},closeSurface:function(){return n.open=!1},getElementIndex:function(t){return n.items.indexOf(t)},getParentElement:function(n){return n.parentElement},getSelectedElementIndex:function(t){return n.items.indexOf(t.querySelector("."+r.a.MENU_SELECTED_LIST_ITEM))},notifySelected:function(t){return n.emit(r.b.SELECTED_EVENT,{index:t.index,item:n.items[t.index]})},getCheckboxAtIndex:function(t){return n.items[t].querySelector(r.b.CHECKBOX_SELECTOR)},toggleCheckbox:function(n){n.checked=!n.checked;var t=document.createEvent("Event");t.initEvent("change",!1,!0);n.dispatchEvent(t)}})}},{key:"open",get:function(){return this.menuSurface_.open},set:function(n){this.menuSurface_.open=n}},{key:"items",get:function(){return this.list_.listElements_}},{key:"quickOpen",set:function(n){this.menuSurface_.quickOpen=n}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(c.a)},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}i.d(t,"a",function(){return v});var h=i(0),r=(i(103),i(37)),c=i(18),u=i(15),l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=["input","button","textarea","select"],v=function(n){function t(n){e(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l(t.defaultAdapter,n)));return i.closeAnimationEndTimerId_=0,i}return s(t,n),f(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){},closeSurface:function(){},getElementIndex:function(){},getParentElement:function(){},getSelectedElementIndex:function(){},notifySelected:function(){},getCheckboxAtIndex:function(){},toggleCheckbox:function(){}}}}]),f(t,[{key:"destroy",value:function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_);this.adapter_.closeSurface()}},{key:"handleKeydown",value:function(n){var t=n.key,i=n.keyCode,r="Space"===t||32===i,u="Enter"===t||13===i,f="Tab"===t||9===i;r||u?this.handleAction_(n):f&&this.adapter_.closeSurface()}},{key:"handleClick",value:function(n){this.handleAction_(n)}},{key:"handleAction_",value:function(n){var t=this.getListItem_(n.target);t&&(this.handleSelection_(t),this.preventDefaultEvent_(n))}},{key:"handleSelection_",value:function(n){var r=this,t=this.adapter_.getElementIndex(n),i;t<0||(this.adapter_.notifySelected({index:t}),this.adapter_.closeSurface(),i=this.adapter_.getCheckboxAtIndex(t),i&&this.adapter_.toggleCheckbox(i),this.closeAnimationEndTimerId_=setTimeout(function(){var i=r.getSelectionGroup_(n);null!==i&&r.handleSelectionGroup_(i,t)},c.b.numbers.TRANSITION_CLOSE_DURATION))}},{key:"handleSelectionGroup_",value:function(n,t){var i=this.adapter_.getSelectedElementIndex(n);i>=0&&(this.adapter_.removeAttributeFromElementAtIndex(i,r.b.ARIA_SELECTED_ATTR),this.adapter_.removeClassFromElementAtIndex(i,r.a.MENU_SELECTED_LIST_ITEM));this.adapter_.addClassToElementAtIndex(t,r.a.MENU_SELECTED_LIST_ITEM);this.adapter_.addAttributeToElementAtIndex(t,r.b.ARIA_SELECTED_ATTR,"true")}},{key:"getSelectionGroup_",value:function(n){for(var t=this.adapter_.getParentElement(n),i=this.adapter_.elementContainsClass(t,r.a.MENU_SELECTION_GROUP);!i&&!this.adapter_.elementContainsClass(t,u.a.cssClasses.ROOT);)t=this.adapter_.getParentElement(n),i=this.adapter_.elementContainsClass(t,r.a.MENU_SELECTION_GROUP);return i?t:null}},{key:"getListItem_",value:function(n){for(var t=this.adapter_.elementContainsClass(n,u.a.cssClasses.LIST_ITEM_CLASS);!t;){if(!(n=this.adapter_.getParentElement(n)))return null;t=this.adapter_.elementContainsClass(n,u.a.cssClasses.LIST_ITEM_CLASS)}return n}},{key:"preventDefaultEvent_",value:function(n){var t=n.target,i=(""+t.tagName).toLowerCase();-1===a.indexOf(i)&&n.preventDefault()}}]),t}(h.a)},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClassToElementAtIndex",value:function(){}},{key:"removeClassFromElementAtIndex",value:function(){}},{key:"addAttributeToElementAtIndex",value:function(){}},{key:"removeAttributeFromElementAtIndex",value:function(){}},{key:"elementContainsClass",value:function(){}},{key:"closeSurface",value:function(){}},{key:"getElementIndex",value:function(){}},{key:"getParentElement",value:function(){}},{key:"getSelectedElementIndex",value:function(){}},{key:"notifySelected",value:function(){}},{key:"getCheckboxAtIndex",value:function(){}},{key:"toggleCheckbox",value:function(){}}])}()},function(n,t,i){"use strict";function u(n){var u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t,i;return(void 0===r||u)&&(t=n.document.createElement("div"),i="transform"in t.style?"transform":"webkitTransform",r=i),r}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"getTransformPropertyName",function(){return u});var r=void 0},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(41),i(42)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)))}return o(t,n),u(t,null,[{key:"strings",get:function(){return r.b}},{key:"cssClasses",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{getWidth:function(){},getHeight:function(){},addClass:function(){},removeClass:function(){},setOutlinePathAttr:function(){},getIdleOutlineStyleValue:function(){}}}}]),u(t,[{key:"notch",value:function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.cssClasses.OUTLINE_NOTCHED;this.adapter_.addClass(r);this.updateSvgPath_(n,i)}},{key:"closeNotch",value:function(){var n=t.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(n)}},{key:"updateSvgPath_",value:function(n,t){var c=this.adapter_.getIdleOutlineStyleValue("border-radius")||this.adapter_.getIdleOutlineStyleValue("border-top-left-radius"),i=parseFloat(c),f=this.adapter_.getWidth(),o=this.adapter_.getHeight(),r=i+1.2,u=Math.abs(12-r),e=n+8,s="a"+i+","+i+" 0 0 1 "+i+","+i+"v"+(o-2*r)+"a"+i+","+i+" 0 0 1 "+-i+","+i+"h"+(2*r-f)+"a"+i+","+i+" 0 0 1 "+-i+","+-i+"v"+(2*r-o)+"a"+i+","+i+" 0 0 1 "+i+","+-i,h=void 0;h=t?"M"+(f-r-u)+",1h"+u+s+"h"+(f-2*r-e-u):"M"+(r+u+e)+",1h"+(f-2*r-e-u)+s+"h"+u;this.adapter_.setOutlinePathAttr(h)}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCRadio",function(){return a});var h=i(1),r=(i(4),i(107)),u=i(2);i.d(t,"MDCRadioFoundation",function(){return r.a});var c=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},l=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),a=function(n){function t(){var r,i;e(this,t);for(var u=arguments.length,f=Array(u),n=0;n<u;n++)f[n]=arguments[n];return i=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),i.ripple_=i.initRipple_(),i}return s(t,n),f(t,[{key:"checked",get:function(){return this.foundation_.isChecked()},set:function(n){this.foundation_.setChecked(n)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(n){this.foundation_.setDisabled(n)}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(n){this.foundation_.setValue(n)}},{key:"ripple",get:function(){return this.ripple_}}],[{key:"attachTo",value:function(n){return new t(n)}}]),f(t,[{key:"initRipple_",value:function(){var n=this,t=c(u.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return!1},registerInteractionHandler:function(t,i){return n.nativeControl_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.nativeControl_.removeEventListener(t,i)}}),i=new u.MDCRippleFoundation(t);return new u.MDCRipple(this.root_,i)}},{key:"destroy",value:function(){this.ripple_.destroy();l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},getNativeControl:function(){return n.root_.querySelector(r.a.strings.NATIVE_CONTROL_SELECTOR)}})}},{key:"nativeControl_",get:function(){var n=r.a.strings.NATIVE_CONTROL_SELECTOR;return this.root_.querySelector(n)}}]),t}(h.a)},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o=i(0),r=(i(4),i(108),i(109)),s=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),h=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),s(t,[{key:"isChecked",value:function(){return this.getNativeControl_().checked}},{key:"setChecked",value:function(n){this.getNativeControl_().checked=n}},{key:"isDisabled",value:function(){return this.getNativeControl_().disabled}},{key:"setDisabled",value:function(n){var i=t.cssClasses.DISABLED;this.getNativeControl_().disabled=n;n?this.adapter_.addClass(i):this.adapter_.removeClass(i)}},{key:"getValue",value:function(){return this.getNativeControl_().value}},{key:"setValue",value:function(n){this.getNativeControl_().value=n}},{key:"getNativeControl_",value:function(){return this.adapter_.getNativeControl()||{checked:!1,disabled:!1,value:null}}}],[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},getNativeControl:function(){}}}}]),t}(o.a);t.a=h},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var u=(i(4),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}());!function(){function n(){r(this,n)}u(n,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"getNativeControl",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"b",function(){return r});i.d(t,"a",function(){return u});var r={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},u={ROOT:"mdc-radio",DISABLED:"mdc-radio--disabled"}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCSelect",function(){return w});var c=i(3),l=i(16),a=i(17),u=i(2),v=i(19),f=i(111),r=(i(43),i(44));i.d(t,"MDCSelectFoundation",function(){return f.a});var e=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),p=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},w=function(n){function t(){var r,n;o(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.nativeControl_,n.ripple,n.lineRipple_,n.label_,n.outline_,n.handleChange_,n.handleFocus_,n.handleBlur_,n}return h(t,n),y(t,[{key:"layout",value:function(){var n=this.nativeControl_.value.length>0;this.foundation_.notchOutline(n)}},{key:"initialize",value:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return new l.MDCFloatingLabel(n)},f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return new a.MDCLineRipple(n)},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(n){return new v.MDCNotchedOutline(n)},n,t,i;this.nativeControl_=this.root_.querySelector(r.c.NATIVE_CONTROL_SELECTOR);n=this.root_.querySelector(r.c.LABEL_SELECTOR);n&&(this.label_=u(n));t=this.root_.querySelector(r.c.LINE_RIPPLE_SELECTOR);t&&(this.lineRipple_=f(t));i=this.root_.querySelector(r.c.OUTLINE_SELECTOR);i&&(this.outline_=e(i));this.root_.classList.contains(r.a.BOX)&&(this.ripple=this.initRipple_())}},{key:"initRipple_",value:function(){var n=this,t=e(u.MDCRipple.createAdapter(this),{registerInteractionHandler:function(t,i){return n.nativeControl_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.nativeControl_.removeEventListener(t,i)}}),i=new u.MDCRippleFoundation(t);return new u.MDCRipple(this.root_,i)}},{key:"initialSyncWithDOM",value:function(){var n=this;this.handleChange_=function(){return n.foundation_.handleChange()};this.handleFocus_=function(){return n.foundation_.handleFocus()};this.handleBlur_=function(){return n.foundation_.handleBlur()};this.nativeControl_.addEventListener("change",this.handleChange_);this.nativeControl_.addEventListener("focus",this.handleFocus_);this.nativeControl_.addEventListener("blur",this.handleBlur_);this.foundation_.handleChange();this.nativeControl_.disabled&&(this.disabled=!0)}},{key:"destroy",value:function(){this.nativeControl_.removeEventListener("change",this.handleChange_);this.nativeControl_.removeEventListener("focus",this.handleFocus_);this.nativeControl_.removeEventListener("blur",this.handleBlur_);this.ripple&&this.ripple.destroy();this.outline_&&this.outline_.destroy();p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new f.a(e({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},getValue:function(){return n.nativeControl_.value},isRtl:function(){return"rtl"===window.getComputedStyle(n.root_).getPropertyValue("direction")},activateBottomLine:function(){n.lineRipple_&&n.lineRipple_.activate()},deactivateBottomLine:function(){n.lineRipple_&&n.lineRipple_.deactivate()}},this.getOutlineAdapterMethods_(),this.getLabelAdapterMethods_()))}},{key:"getOutlineAdapterMethods_",value:function(){var n=this;return{hasOutline:function(){return!!n.outline_},notchOutline:function(t,i){n.outline_&&n.outline_.notch(t,i)},closeOutline:function(){n.outline_&&n.outline_.closeNotch()}}}},{key:"getLabelAdapterMethods_",value:function(){var n=this;return{hasLabel:function(){return!!n.label_},floatLabel:function(t){n.label_&&n.label_.float(t)},getLabelWidth:function(){if(n.label_)return n.label_.getWidth()}}}},{key:"value",get:function(){return this.nativeControl_.value},set:function(n){this.nativeControl_.value=n;this.foundation_.handleChange()}},{key:"selectedIndex",get:function(){return this.nativeControl_.selectedIndex},set:function(n){this.nativeControl_.selectedIndex=n;this.foundation_.handleChange()}},{key:"disabled",get:function(){return this.nativeControl_.disabled},set:function(n){this.nativeControl_.disabled=n;this.foundation_.updateDisabledStyle(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(c.MDCComponent)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(3),r=(i(43),i(44)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)))}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"numbers",get:function(){return r.b}},{key:"strings",get:function(){return r.c}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getValue:function(){},isRtl:function(){return!1},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}}}]),u(t,[{key:"updateDisabledStyle",value:function(n){var i=t.cssClasses.DISABLED;n?this.adapter_.addClass(i):this.adapter_.removeClass(i)}},{key:"handleChange",value:function(){var n=this.adapter_.getValue().length>0;this.adapter_.floatLabel(n);this.notchOutline(n)}},{key:"handleFocus",value:function(){this.adapter_.floatLabel(!0);this.notchOutline(!0);this.adapter_.activateBottomLine()}},{key:"handleBlur",value:function(){this.handleChange();this.adapter_.deactivateBottomLine()}},{key:"notchOutline",value:function(n){if(this.adapter_.hasOutline()&&this.adapter_.hasLabel())if(n){var t=r.b.LABEL_SCALE,i=this.adapter_.getLabelWidth()*t,u=this.adapter_.isRtl();this.adapter_.notchOutline(i,u)}else this.adapter_.closeOutline()}}]),t}(s.MDCFoundation);t.a=c},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,e;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCSlider",function(){return e});var c=i(1),r=i(45),f=(i(46),i(113));i.d(t,"MDCSliderFoundation",function(){return f.a});u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n){function t(){var r,n;o(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.thumbContainer_,n.track_,n.pinValueMarker_,n.trackMarkerContainer_,n}return h(t,n),u(t,null,[{key:"attachTo",value:function(n){return new t(n)}}]),u(t,[{key:"initialize",value:function(){this.thumbContainer_=this.root_.querySelector(r.c.THUMB_CONTAINER_SELECTOR);this.track_=this.root_.querySelector(r.c.TRACK_SELECTOR);this.pinValueMarker_=this.root_.querySelector(r.c.PIN_VALUE_MARKER_SELECTOR);this.trackMarkerContainer_=this.root_.querySelector(r.c.TRACK_MARKER_CONTAINER_SELECTOR)}},{key:"getDefaultFoundation",value:function(){var n=this;return new f.a({hasClass:function(t){return n.root_.classList.contains(t)},addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},getAttribute:function(t){return n.root_.getAttribute(t)},setAttribute:function(t,i){return n.root_.setAttribute(t,i)},removeAttribute:function(t){return n.root_.removeAttribute(t)},computeBoundingRect:function(){return n.root_.getBoundingClientRect()},getTabIndex:function(){return n.root_.tabIndex},registerInteractionHandler:function(t,i){n.root_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){n.root_.removeEventListener(t,i)},registerThumbContainerInteractionHandler:function(t,i){n.thumbContainer_.addEventListener(t,i)},deregisterThumbContainerInteractionHandler:function(t,i){n.thumbContainer_.removeEventListener(t,i)},registerBodyInteractionHandler:function(n,t){document.body.addEventListener(n,t)},deregisterBodyInteractionHandler:function(n,t){document.body.removeEventListener(n,t)},registerResizeHandler:function(n){window.addEventListener("resize",n)},deregisterResizeHandler:function(n){window.removeEventListener("resize",n)},notifyInput:function(){n.emit(r.c.INPUT_EVENT,n)},notifyChange:function(){n.emit(r.c.CHANGE_EVENT,n)},setThumbContainerStyleProperty:function(t,i){n.thumbContainer_.style.setProperty(t,i)},setTrackStyleProperty:function(t,i){n.track_.style.setProperty(t,i)},setMarkerValue:function(t){n.pinValueMarker_.innerText=t},appendTrackMarkers:function(t){for(var u,i=document.createDocumentFragment(),r=0;r<t;r++)u=document.createElement("div"),u.classList.add("mdc-slider__track-marker"),i.appendChild(u);n.trackMarkerContainer_.appendChild(i)},removeTrackMarkers:function(){for(;n.trackMarkerContainer_.firstChild;)n.trackMarkerContainer_.removeChild(n.trackMarkerContainer_.firstChild)},setLastTrackMarkersStyleProperty:function(t,i){n.root_.querySelector(r.c.LAST_TRACK_MARKER_SELECTOR).style.setProperty(t,i)},isRTL:function(){return"rtl"===getComputedStyle(n.root_).direction}})}},{key:"initialSyncWithDOM",value:function(){var n=parseFloat(this.root_.getAttribute(r.c.ARIA_VALUENOW));this.min=parseFloat(this.root_.getAttribute(r.c.ARIA_VALUEMIN))||this.min;this.max=parseFloat(this.root_.getAttribute(r.c.ARIA_VALUEMAX))||this.max;this.step=parseFloat(this.root_.getAttribute(r.c.STEP_DATA_ATTR))||this.step;this.value=n||this.value;this.disabled=this.root_.hasAttribute(r.c.ARIA_DISABLED)&&"false"!==this.root_.getAttribute(r.c.ARIA_DISABLED);this.foundation_.setupTrackMarker()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"stepUp",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.step||1;this.value+=n}},{key:"stepDown",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.step||1;this.value-=n}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(n){this.foundation_.setValue(n)}},{key:"min",get:function(){return this.foundation_.getMin()},set:function(n){this.foundation_.setMin(n)}},{key:"max",get:function(){return this.foundation_.getMax()},set:function(n){this.foundation_.setMax(n)}},{key:"step",get:function(){return this.foundation_.getStep()},set:function(n){this.foundation_.setStep(n)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(n){this.foundation_.setDisabled(n)}}]),t}(c.a)},function(n,t,i){"use strict";function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function a(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u=i(45),e=(i(46),i(9)),v=i(0),y=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),r={ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"},s={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"pointermove"},f=["mousedown","pointerdown","touchstart"],h=["mouseup","pointerup","touchend"],p=function(n){function t(n){c(this,t);var i=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,y(t.defaultAdapter,n)));return i.rect_=null,i.savedTabIndex_=NaN,i.active_=!1,i.inTransit_=!1,i.isDiscrete_=!1,i.hasTrackMarker_=!1,i.handlingThumbTargetEvt_=!1,i.min_=0,i.max_=100,i.step_=0,i.value_=0,i.disabled_=!1,i.preventFocusState_=!1,i.updateUIFrame_=0,i.thumbContainerPointerHandler_=function(){i.handlingThumbTargetEvt_=!0},i.interactionStartHandler_=function(n){return i.handleDown_(n)},i.keydownHandler_=function(n){return i.handleKeydown_(n)},i.focusHandler_=function(){return i.handleFocus_()},i.blurHandler_=function(){return i.handleBlur_()},i.resizeHandler_=function(){return i.layout()},i}return a(t,n),o(t,null,[{key:"cssClasses",get:function(){return u.a}},{key:"strings",get:function(){return u.c}},{key:"numbers",get:function(){return u.b}},{key:"defaultAdapter",get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},getAttribute:function(){return null},setAttribute:function(){},removeAttribute:function(){},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabIndex:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},registerThumbContainerInteractionHandler:function(){},deregisterThumbContainerInteractionHandler:function(){},registerBodyInteractionHandler:function(){},deregisterBodyInteractionHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},notifyInput:function(){},notifyChange:function(){},setThumbContainerStyleProperty:function(){},setTrackStyleProperty:function(){},setMarkerValue:function(){},appendTrackMarkers:function(){},removeTrackMarkers:function(){},setLastTrackMarkersStyleProperty:function(){},isRTL:function(){return!1}}}}]),o(t,[{key:"init",value:function(){var n=this;this.isDiscrete_=this.adapter_.hasClass(u.a.IS_DISCRETE);this.hasTrackMarker_=this.adapter_.hasClass(u.a.HAS_TRACK_MARKER);f.forEach(function(t){return n.adapter_.registerInteractionHandler(t,n.interactionStartHandler_)});this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_);this.adapter_.registerInteractionHandler("focus",this.focusHandler_);this.adapter_.registerInteractionHandler("blur",this.blurHandler_);f.forEach(function(t){n.adapter_.registerThumbContainerInteractionHandler(t,n.thumbContainerPointerHandler_)});this.adapter_.registerResizeHandler(this.resizeHandler_);this.layout();this.isDiscrete_&&0==this.getStep()&&(this.step_=1)}},{key:"destroy",value:function(){var n=this;f.forEach(function(t){n.adapter_.deregisterInteractionHandler(t,n.interactionStartHandler_)});this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_);this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_);this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_);f.forEach(function(t){n.adapter_.deregisterThumbContainerInteractionHandler(t,n.thumbContainerPointerHandler_)});this.adapter_.deregisterResizeHandler(this.resizeHandler_)}},{key:"setupTrackMarker",value:function(){var u,f;if(this.isDiscrete_&&this.hasTrackMarker_&&0!=this.getStep()){var o=this.getMin(),i=this.getMax(),t=this.getStep(),n=(i-o)/t,r=Math.ceil(n)!==n;(r&&(n=Math.ceil(n)),this.adapter_.removeTrackMarkers(),this.adapter_.appendTrackMarkers(n),r)&&(u=(i-n*t)/t+1,f=Object(e.b)(window,"flex"),this.adapter_.setLastTrackMarkersStyleProperty(f,String(u)))}}},{key:"layout",value:function(){this.rect_=this.adapter_.computeBoundingRect();this.updateUIForCurrentValue_()}},{key:"getValue",value:function(){return this.value_}},{key:"setValue",value:function(n){this.setValue_(n,!1)}},{key:"getMax",value:function(){return this.max_}},{key:"setMax",value:function(n){if(n<this.min_)throw new Error("Cannot set max to be less than the slider's minimum value");this.max_=n;this.setValue_(this.value_,!1,!0);this.adapter_.setAttribute(u.c.ARIA_VALUEMAX,String(this.max_));this.setupTrackMarker()}},{key:"getMin",value:function(){return this.min_}},{key:"setMin",value:function(n){if(n>this.max_)throw new Error("Cannot set min to be greater than the slider's maximum value");this.min_=n;this.setValue_(this.value_,!1,!0);this.adapter_.setAttribute(u.c.ARIA_VALUEMIN,String(this.min_));this.setupTrackMarker()}},{key:"getStep",value:function(){return this.step_}},{key:"setStep",value:function(n){if(n<0)throw new Error("Step cannot be set to a negative number");this.isDiscrete_&&("number"!=typeof n||n<1)&&(n=1);this.step_=n;this.setValue_(this.value_,!1,!0);this.setupTrackMarker()}},{key:"isDisabled",value:function(){return this.disabled_}},{key:"setDisabled",value:function(n){this.disabled_=n;this.toggleClass_(u.a.DISABLED,this.disabled_);this.disabled_?(this.savedTabIndex_=this.adapter_.getTabIndex(),this.adapter_.setAttribute(u.c.ARIA_DISABLED,"true"),this.adapter_.removeAttribute("tabindex")):(this.adapter_.removeAttribute(u.c.ARIA_DISABLED),isNaN(this.savedTabIndex_)||this.adapter_.setAttribute("tabindex",String(this.savedTabIndex_)))}},{key:"handleDown_",value:function(n){var t=this,i,r;this.disabled_||(this.preventFocusState_=!0,this.setInTransit_(!this.handlingThumbTargetEvt_),this.handlingThumbTargetEvt_=!1,this.setActive_(!0),i=function(n){t.handleMove_(n)},r=function r(){t.handleUp_();t.adapter_.deregisterBodyInteractionHandler(s[n.type],i);h.forEach(function(n){return t.adapter_.deregisterBodyInteractionHandler(n,r)})},this.adapter_.registerBodyInteractionHandler(s[n.type],i),h.forEach(function(n){return t.adapter_.registerBodyInteractionHandler(n,r)}),this.setValueFromEvt_(n))}},{key:"handleMove_",value:function(n){n.preventDefault();this.setValueFromEvt_(n)}},{key:"handleUp_",value:function(){this.setActive_(!1);this.adapter_.notifyChange()}},{key:"getPageX_",value:function(n){return n.targetTouches&&n.targetTouches.length>0?n.targetTouches[0].pageX:n.pageX}},{key:"setValueFromEvt_",value:function(n){var t=this.getPageX_(n),i=this.computeValueFromPageX_(t);this.setValue_(i,!0)}},{key:"computeValueFromPageX_",value:function(n){var r=this.max_,i=this.min_,u=n-this.rect_.left,t=u/this.rect_.width;return this.adapter_.isRTL()&&(t=1-t),i+t*(r-i)}},{key:"handleKeydown_",value:function(n){var i=this.getKeyId_(n),t=this.getValueForKeyId_(i);isNaN(t)||(n.preventDefault(),this.adapter_.addClass(u.a.FOCUS),this.setValue_(t,!0),this.adapter_.notifyChange())}},{key:"getKeyId_",value:function(n){return n.key===r.ARROW_LEFT||37===n.keyCode?r.ARROW_LEFT:n.key===r.ARROW_RIGHT||39===n.keyCode?r.ARROW_RIGHT:n.key===r.ARROW_UP||38===n.keyCode?r.ARROW_UP:n.key===r.ARROW_DOWN||40===n.keyCode?r.ARROW_DOWN:n.key===r.HOME||36===n.keyCode?r.HOME:n.key===r.END||35===n.keyCode?r.END:n.key===r.PAGE_UP||33===n.keyCode?r.PAGE_UP:n.key===r.PAGE_DOWN||34===n.keyCode?r.PAGE_DOWN:""}},{key:"getValueForKeyId_",value:function(n){var i=this.max_,f=this.min_,e=this.step_,t=e||(i-f)/100;switch(this.adapter_.isRTL()&&(n===r.ARROW_LEFT||n===r.ARROW_RIGHT)&&(t=-t),n){case r.ARROW_LEFT:case r.ARROW_DOWN:return this.value_-t;case r.ARROW_RIGHT:case r.ARROW_UP:return this.value_+t;case r.HOME:return this.min_;case r.END:return this.max_;case r.PAGE_UP:return this.value_+t*u.b.PAGE_FACTOR;case r.PAGE_DOWN:return this.value_-t*u.b.PAGE_FACTOR;default:return NaN}}},{key:"handleFocus_",value:function(){this.preventFocusState_||this.adapter_.addClass(u.a.FOCUS)}},{key:"handleBlur_",value:function(){this.preventFocusState_=!1;this.adapter_.removeClass(u.a.FOCUS)}},{key:"setValue_",value:function(n,t){var f=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n!==this.value_||f){var i=this.min_,r=this.max_,e=n===i||n===r;this.step_&&!e&&(n=this.quantize_(n));n<i?n=i:n>r&&(n=r);this.value_=n;this.adapter_.setAttribute(u.c.ARIA_VALUENOW,String(this.value_));this.updateUIForCurrentValue_();t&&(this.adapter_.notifyInput(),this.isDiscrete_&&this.adapter_.setMarkerValue(n))}}},{key:"quantize_",value:function(n){return Math.round(n/this.step_)*this.step_}},{key:"updateUIForCurrentValue_",value:function(){var n=this,u=this.max_,f=this.min_,h=this.value_,o=(h-f)/(u-f),t=o*this.rect_.width,i,r,s;this.adapter_.isRTL()&&(t=this.rect_.width-t);i=Object(e.b)(window,"transform");r=Object(e.a)(window,"transitionend");this.inTransit_&&(s=function u(){n.setInTransit_(!1);n.adapter_.deregisterThumbContainerInteractionHandler(r,u)},this.adapter_.registerThumbContainerInteractionHandler(r,s));this.updateUIFrame_=requestAnimationFrame(function(){n.adapter_.setThumbContainerStyleProperty(i,"translateX("+t+"px) translateX(-50%)");n.adapter_.setTrackStyleProperty(i,"scaleX("+o+")")})}},{key:"setActive_",value:function(n){this.active_=n;this.toggleClass_(u.a.ACTIVE,this.active_)}},{key:"setInTransit_",value:function(n){this.inTransit_=n;this.toggleClass_(u.a.IN_TRANSIT,this.inTransit_)}},{key:"toggleClass_",value:function(n,t){t?this.adapter_.addClass(n):this.adapter_.removeClass(n)}}]),t}(v.a);t.a=p},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var f,e;Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCSnackbar",function(){return e});var c=i(3),r=i(115),u=i(9);i.d(t,"MDCSnackbarFoundation",function(){return r.a});f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();e=function(n){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,n),f(t,[{key:"show",value:function(n){this.foundation_.show(n)}},{key:"getDefaultFoundation",value:function(){var n=this,i=r.a.strings,f=i.TEXT_SELECTOR,e=i.ACTION_BUTTON_SELECTOR,o=function(){return n.root_.querySelector(f)},t=function(){return n.root_.querySelector(e)};return new r.a({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},setAriaHidden:function(){return n.root_.setAttribute("aria-hidden","true")},unsetAriaHidden:function(){return n.root_.removeAttribute("aria-hidden")},setActionAriaHidden:function(){return t().setAttribute("aria-hidden","true")},unsetActionAriaHidden:function(){return t().removeAttribute("aria-hidden")},setActionText:function(n){t().textContent=n},setMessageText:function(n){o().textContent=n},setFocus:function(){return t().focus()},isFocused:function(){return document.activeElement===t()},visibilityIsHidden:function(){return document.hidden},registerCapturedBlurHandler:function(n){return t().addEventListener("blur",n,!0)},deregisterCapturedBlurHandler:function(n){return t().removeEventListener("blur",n,!0)},registerVisibilityChangeHandler:function(n){return document.addEventListener("visibilitychange",n)},deregisterVisibilityChangeHandler:function(n){return document.removeEventListener("visibilitychange",n)},registerCapturedInteractionHandler:function(n,t){return document.body.addEventListener(n,t,!0)},deregisterCapturedInteractionHandler:function(n,t){return document.body.removeEventListener(n,t,!0)},registerActionClickHandler:function(n){return t().addEventListener("click",n)},deregisterActionClickHandler:function(n){return t().removeEventListener("click",n)},registerTransitionEndHandler:function(t){return n.root_.addEventListener(Object(u.a)(window,"transitionend"),t)},deregisterTransitionEndHandler:function(t){return n.root_.removeEventListener(Object(u.a)(window,"transitionend"),t)},notifyShow:function(){return n.emit(r.a.strings.SHOW_EVENT)},notifyHide:function(){return n.emit(r.a.strings.HIDE_EVENT)}})}},{key:"dismissesOnAction",get:function(){return this.foundation_.dismissesOnAction()},set:function(n){this.foundation_.setDismissOnAction(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(c.MDCComponent)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(3),r=i(116),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.active_=!1,i.actionWasClicked_=!1,i.dismissOnAction_=!0,i.firstFocus_=!0,i.pointerDownRecognized_=!1,i.snackbarHasFocus_=!1,i.snackbarData_=null,i.queue_=[],i.actionClickHandler_=function(){i.actionWasClicked_=!0;i.invokeAction_()},i.visibilitychangeHandler_=function(){clearTimeout(i.timeoutId_);i.snackbarHasFocus_=!0;i.adapter_.visibilityIsHidden()||setTimeout(i.cleanup_.bind(i),i.snackbarData_.timeout||r.b.MESSAGE_TIMEOUT)},i.interactionHandler_=function(n){("focus"!==n.type||i.adapter_.isFocused())&&("touchstart"!==n.type&&"mousedown"!==n.type||(i.pointerDownRecognized_=!0),i.handlePossibleTabKeyboardFocus_(n),"focus"===n.type&&(i.pointerDownRecognized_=!1))},i.blurHandler_=function(){clearTimeout(i.timeoutId_);i.snackbarHasFocus_=!1;i.timeoutId_=setTimeout(i.cleanup_.bind(i),i.snackbarData_.timeout||r.b.MESSAGE_TIMEOUT)},i}return o(t,n),u(t,[{key:"active",get:function(){return this.active_}}],[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.c}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},setAriaHidden:function(){},unsetAriaHidden:function(){},setActionAriaHidden:function(){},unsetActionAriaHidden:function(){},setActionText:function(){},setMessageText:function(){},setFocus:function(){},isFocused:function(){return!1},visibilityIsHidden:function(){return!1},registerCapturedBlurHandler:function(){},deregisterCapturedBlurHandler:function(){},registerVisibilityChangeHandler:function(){},deregisterVisibilityChangeHandler:function(){},registerCapturedInteractionHandler:function(){},deregisterCapturedInteractionHandler:function(){},registerActionClickHandler:function(){},deregisterActionClickHandler:function(){},registerTransitionEndHandler:function(){},deregisterTransitionEndHandler:function(){},notifyShow:function(){},notifyHide:function(){}}}}]),u(t,[{key:"init",value:function(){this.adapter_.registerActionClickHandler(this.actionClickHandler_);this.adapter_.setAriaHidden();this.adapter_.setActionAriaHidden()}},{key:"destroy",value:function(){var n=this;this.adapter_.deregisterActionClickHandler(this.actionClickHandler_);this.adapter_.deregisterCapturedBlurHandler(this.blurHandler_);this.adapter_.deregisterVisibilityChangeHandler(this.visibilitychangeHandler_);["touchstart","mousedown","focus"].forEach(function(t){n.adapter_.deregisterCapturedInteractionHandler(t,n.interactionHandler_)})}},{key:"dismissesOnAction",value:function(){return this.dismissOnAction_}},{key:"setDismissOnAction",value:function(n){this.dismissOnAction_=!!n}},{key:"show",value:function(n){var t=this;if(!n)throw new Error("Please provide a data object with at least a message to display.");if(!n.message)throw new Error("Please provide a message to be displayed.");if(n.actionHandler&&!n.actionText)throw new Error("Please provide action text with the handler.");if(this.active)return void this.queue_.push(n);clearTimeout(this.timeoutId_);this.snackbarData_=n;this.firstFocus_=!0;this.adapter_.registerVisibilityChangeHandler(this.visibilitychangeHandler_);this.adapter_.registerCapturedBlurHandler(this.blurHandler_);["touchstart","mousedown","focus"].forEach(function(n){t.adapter_.registerCapturedInteractionHandler(n,t.interactionHandler_)});var i=r.a.ACTIVE,u=r.a.MULTILINE,f=r.a.ACTION_ON_BOTTOM;this.adapter_.setMessageText(this.snackbarData_.message);this.snackbarData_.multiline&&(this.adapter_.addClass(u),this.snackbarData_.actionOnBottom&&this.adapter_.addClass(f));this.snackbarData_.actionHandler?(this.adapter_.setActionText(this.snackbarData_.actionText),this.actionHandler_=this.snackbarData_.actionHandler,this.setActionHidden_(!1)):(this.setActionHidden_(!0),this.actionHandler_=null,this.adapter_.setActionText(null));this.active_=!0;this.adapter_.addClass(i);this.adapter_.unsetAriaHidden();this.adapter_.notifyShow();this.timeoutId_=setTimeout(this.cleanup_.bind(this),this.snackbarData_.timeout||r.b.MESSAGE_TIMEOUT)}},{key:"handlePossibleTabKeyboardFocus_",value:function(){this.firstFocus_&&!this.pointerDownRecognized_&&this.setFocusOnAction_();this.firstFocus_=!1}},{key:"setFocusOnAction_",value:function(){this.adapter_.setFocus();this.snackbarHasFocus_=!0;this.firstFocus_=!1}},{key:"invokeAction_",value:function(){try{if(!this.actionHandler_)return;this.actionHandler_()}finally{this.dismissOnAction_&&this.cleanup_()}}},{key:"cleanup_",value:function(){var n=this,i;if(!this.snackbarHasFocus_||this.actionWasClicked_){var t=r.a.ACTIVE,u=r.a.MULTILINE,f=r.a.ACTION_ON_BOTTOM;this.adapter_.removeClass(t);i=function t(){clearTimeout(n.timeoutId_);n.adapter_.deregisterTransitionEndHandler(t);n.adapter_.removeClass(u);n.adapter_.removeClass(f);n.setActionHidden_(!0);n.adapter_.setAriaHidden();n.active_=!1;n.snackbarHasFocus_=!1;n.adapter_.notifyHide();n.showNext_()};this.adapter_.registerTransitionEndHandler(i)}}},{key:"showNext_",value:function(){this.queue_.length&&this.show(this.queue_.shift())}},{key:"setActionHidden_",value:function(n){n?this.adapter_.setActionAriaHidden():this.adapter_.unsetActionAriaHidden()}}]),t}(s.MDCFoundation);t.a=c},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"b",function(){return f});var r={ROOT:"mdc-snackbar",TEXT:"mdc-snackbar__text",ACTION_WRAPPER:"mdc-snackbar__action-wrapper",ACTION_BUTTON:"mdc-snackbar__action-button",ACTIVE:"mdc-snackbar--active",MULTILINE:"mdc-snackbar--multiline",ACTION_ON_BOTTOM:"mdc-snackbar--action-on-bottom"},u={TEXT_SELECTOR:".mdc-snackbar__text",ACTION_WRAPPER_SELECTOR:".mdc-snackbar__action-wrapper",ACTION_BUTTON_SELECTOR:".mdc-snackbar__action-button",SHOW_EVENT:"MDCSnackbar:show",HIDE_EVENT:"MDCSnackbar:hide"},f={MESSAGE_TIMEOUT:2750}},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCSwitch",function(){return v});var h=i(1),r=(i(4),i(118)),u=i(2),c=i(6);i.d(t,"MDCSwitchFoundation",function(){return r.a});var l=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},a=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},f=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function(n){function t(){var r,n;e(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=o(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.ripple_=n.initRipple_(),n.changeHandler_,n}return s(t,n),f(t,null,[{key:"attachTo",value:function(n){return new t(n)}}]),f(t,[{key:"destroy",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.ripple_.destroy();this.nativeControl_.removeEventListener("change",this.changeHandler_)}},{key:"initialSyncWithDOM",value:function(){this.changeHandler_=this.foundation_.handleChange.bind(this.foundation_);this.nativeControl_.addEventListener("change",this.changeHandler_);this.checked=this.checked}},{key:"initRipple_",value:function(){var t=this,i=r.a.strings.RIPPLE_SURFACE_SELECTOR,n=this.root_.querySelector(i),f=Object(c.getMatchesProperty)(HTMLElement.prototype),e=l(u.MDCRipple.createAdapter(this),{isUnbounded:function(){return!0},isSurfaceActive:function(){return t.nativeControl_[f](":active")},addClass:function(t){return n.classList.add(t)},removeClass:function(t){return n.classList.remove(t)},registerInteractionHandler:function(n,i){return t.nativeControl_.addEventListener(n,i)},deregisterInteractionHandler:function(n,i){return t.nativeControl_.removeEventListener(n,i)},updateCssVariable:function(t,i){return n.style.setProperty(t,i)},computeBoundingRect:function(){return n.getBoundingClientRect()}}),o=new u.MDCRippleFoundation(e);return new u.MDCRipple(this.root_,o)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},setNativeControlChecked:function(t){return n.nativeControl_.checked=t},setNativeControlDisabled:function(t){return n.nativeControl_.disabled=t}})}},{key:"nativeControl_",get:function(){var n=r.a.strings.NATIVE_CONTROL_SELECTOR;return this.root_.querySelector(n)}},{key:"ripple",get:function(){return this.ripple_}},{key:"checked",get:function(){return this.nativeControl_.checked},set:function(n){this.foundation_.setChecked(n)}},{key:"disabled",get:function(){return this.nativeControl_.disabled},set:function(n){this.foundation_.setDisabled(n)}}]),t}(h.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(119),i(120)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)))}return o(t,n),u(t,null,[{key:"strings",get:function(){return r.b}},{key:"cssClasses",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){}}}}]),u(t,[{key:"setChecked",value:function(n){this.adapter_.setNativeControlChecked(n);this.updateCheckedStyling_(n)}},{key:"setDisabled",value:function(n){this.adapter_.setNativeControlDisabled(n);n?this.adapter_.addClass(r.a.DISABLED):this.adapter_.removeClass(r.a.DISABLED)}},{key:"handleChange",value:function(n){this.updateCheckedStyling_(n.target.checked)}},{key:"updateCheckedStyling_",value:function(n){n?this.adapter_.addClass(r.a.CHECKED):this.adapter_.removeClass(r.a.CHECKED)}}]),t}(s.a);t.a=c},function(){"use strict";function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var t=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();!function(){function i(){n(this,i)}t(i,[{key:"addClass",value:function(){}},{key:"removeClass",value:function(){}},{key:"setNativeControlChecked",value:function(){}},{key:"setNativeControlDisabled",value:function(){}}])}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},u={NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"}},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},u={CONTENT_SELECTOR:".mdc-tab-indicator__content"}},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r=i(21),o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),o(t,[{key:"activate",value:function(n){if(!n)return void this.adapter_.addClass(r.a.cssClasses.ACTIVE);var t=this.computeContentClientRect(),i=n.width/t.width,u=n.left-t.left;this.adapter_.addClass(r.a.cssClasses.NO_TRANSITION);this.adapter_.setContentStyleProperty("transform","translateX("+u+"px) scaleX("+i+")");this.computeContentClientRect();this.adapter_.removeClass(r.a.cssClasses.NO_TRANSITION);this.adapter_.addClass(r.a.cssClasses.ACTIVE);this.adapter_.setContentStyleProperty("transform","")}},{key:"deactivate",value:function(){this.adapter_.removeClass(r.a.cssClasses.ACTIVE)}}]),t}(r.a);t.a=s},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r=i(21),o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),s=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),o(t,[{key:"activate",value:function(){this.adapter_.addClass(r.a.cssClasses.ACTIVE)}},{key:"deactivate",value:function(){this.adapter_.removeClass(r.a.cssClasses.ACTIVE)}}]),t}(r.a);t.a=s},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(10),i(125)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.handleClick_=function(){return i.handleClick()},i}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){},getOffsetWidth:function(){},getContentOffsetLeft:function(){},getContentOffsetWidth:function(){},focus:function(){}}}}]),u(t,[{key:"handleClick",value:function(){this.adapter_.notifyInteracted()}},{key:"isActive",value:function(){return this.adapter_.hasClass(r.a.ACTIVE)}},{key:"activate",value:function(n){this.adapter_.addClass(r.a.ACTIVE);this.adapter_.setAttr(r.b.ARIA_SELECTED,"true");this.adapter_.setAttr(r.b.TABINDEX,"0");this.adapter_.activateIndicator(n);this.adapter_.focus()}},{key:"deactivate",value:function(){this.isActive()&&(this.adapter_.removeClass(r.a.ACTIVE),this.adapter_.setAttr(r.b.ARIA_SELECTED,"false"),this.adapter_.setAttr(r.b.TABINDEX,"-1"),this.adapter_.deactivateIndicator())}},{key:"computeDimensions",value:function(){var i=this.adapter_.getOffsetWidth(),n=this.adapter_.getOffsetLeft(),r=this.adapter_.getContentOffsetWidth(),t=this.adapter_.getContentOffsetLeft();return{rootLeft:n,rootRight:n+i,contentLeft:n+t,contentRight:n+t+r}}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"b",function(){return u});var r={ACTIVE:"mdc-tab--active"},u={ARIA_SELECTED:"aria-selected",RIPPLE_SELECTOR:".mdc-tab__ripple",CONTENT_SELECTOR:".mdc-tab__content",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator",TABINDEX:"tabIndex",INTERACTED_EVENT:"MDCTab:interacted"}},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCTabBar",function(){return a});var s=i(1),u=i(20),h=i(49),r=(i(51),i(132));i.d(t,"MDCTabBarFoundation",function(){return r.a});var c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),l=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},a=function(n){function t(){var r,n;f(this,t);for(var u=arguments.length,o=Array(u),i=0;i<u;i++)o[i]=arguments[i];return n=e(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(o))),n.tabList_,n.tabFactory_,n.tabScroller_,n.tabScrollerFactory_,n.handleTabInteraction_,n.handleKeyDown_,n}return o(t,n),c(t,[{key:"initialize",value:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return new u.MDCTab(n)},f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return new h.MDCTabScroller(n)},n;this.tabFactory_=i;this.tabScrollerFactory_=f;this.tabList_=this.getTabElements_().map(function(n){return t.tabFactory_(n)});n=this.root_.querySelector(r.a.strings.TAB_SCROLLER_SELECTOR);n&&(this.tabScroller_=this.tabScrollerFactory_(n))}},{key:"initialSyncWithDOM",value:function(){var t=this,n;for(this.handleTabInteraction_=function(n){return t.foundation_.handleTabInteraction(n)},this.handleKeyDown_=function(n){return t.foundation_.handleKeyDown(n)},this.root_.addEventListener(u.MDCTabFoundation.strings.INTERACTED_EVENT,this.handleTabInteraction_),this.root_.addEventListener("keydown",this.handleKeyDown_),n=0;n<this.tabList_.length;n++)if(this.tabList_[n].active){this.scrollIntoView(n);break}}},{key:"destroy",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.root_.removeEventListener(u.MDCTabFoundation.strings.INTERACTED_EVENT,this.handleTabInteraction_);this.root_.removeEventListener("keydown",this.handleKeyDown_);this.tabList_.forEach(function(n){return n.destroy()});this.tabScroller_.destroy()}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({scrollTo:function(t){return n.tabScroller_.scrollTo(t)},incrementScroll:function(t){return n.tabScroller_.incrementScroll(t)},getScrollPosition:function(){return n.tabScroller_.getScrollPosition()},getScrollContentWidth:function(){return n.tabScroller_.getScrollContentWidth()},getOffsetWidth:function(){return n.root_.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(n.root_).getPropertyValue("direction")},setActiveTab:function(t){return n.foundation_.activateTab(t)},activateTabAtIndex:function(t,i){return n.tabList_[t].activate(i)},deactivateTabAtIndex:function(t){return n.tabList_[t].deactivate()},focusTabAtIndex:function(t){return n.tabList_[t].focus()},getTabIndicatorClientRectAtIndex:function(t){return n.tabList_[t].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(t){return n.tabList_[t].computeDimensions()},getPreviousActiveTabIndex:function(){for(var t=0;t<n.tabList_.length;t++)if(n.tabList_[t].active)return t;return-1},getFocusedTabIndex:function(){var t=n.getTabElements_(),i=document.activeElement;return t.indexOf(i)},getIndexOfTab:function(t){return n.tabList_.indexOf(t)},getTabListLength:function(){return n.tabList_.length},notifyTabActivated:function(t){return n.emit(r.a.strings.TAB_ACTIVATED_EVENT,{index:t},!0)}})}},{key:"activateTab",value:function(n){this.foundation_.activateTab(n)}},{key:"scrollIntoView",value:function(n){this.foundation_.scrollIntoView(n)}},{key:"getTabElements_",value:function(){return[].slice.call(this.root_.querySelectorAll(r.a.strings.TAB_SELECTOR))}},{key:"useAutomaticActivation",set:function(n){this.foundation_.setUseAutomaticActivation(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(s.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=i(50),h=(i(5),i(11),i(128)),c=i(129),l=i(130),a=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),v=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a(t.defaultAdapter,n)));return i.isAnimating_=!1,i.rtlScrollerInstance_,i}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{eventTargetMatchesSelector:function(){},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){},getScrollContentOffsetWidth:function(){},getScrollAreaOffsetWidth:function(){},computeScrollAreaClientRect:function(){},computeScrollContentClientRect:function(){},computeHorizontalScrollbarHeight:function(){}}}}]),u(t,[{key:"init",value:function(){var n=this.adapter_.computeHorizontalScrollbarHeight();this.adapter_.setScrollAreaStyleProperty("margin-bottom",-n+"px");this.adapter_.addScrollAreaClass(t.cssClasses.SCROLL_AREA_SCROLL)}},{key:"getScrollPosition",value:function(){if(this.isRTL_())return this.computeCurrentScrollPositionRTL_();var n=this.calculateCurrentTranslateX_();return this.adapter_.getScrollAreaScrollLeft()-n}},{key:"handleInteraction",value:function(){this.isAnimating_&&this.stopScrollAnimation_()}},{key:"handleTransitionEnd",value:function(n){this.isAnimating_&&this.adapter_.eventTargetMatchesSelector(n.target,t.strings.CONTENT_SELECTOR)&&(this.isAnimating_=!1,this.adapter_.removeClass(t.cssClasses.ANIMATING))}},{key:"incrementScroll",value:function(n){if(0!==n)return this.isRTL_()?this.incrementScrollRTL_(n):void this.incrementScroll_(n)}},{key:"scrollTo",value:function(n){if(this.isRTL_())return this.scrollToRTL_(n);this.scrollTo_(n)}},{key:"getRTLScroller",value:function(){return this.rtlScrollerInstance_||(this.rtlScrollerInstance_=this.rtlScrollerFactory_()),this.rtlScrollerInstance_}},{key:"calculateCurrentTranslateX_",value:function(){var n=this.adapter_.getScrollContentStyleValue("transform"),t,i;return"none"===n?0:(t=/\((.+)\)/.exec(n)[1],i=t.split(","),parseFloat(i[4]))}},{key:"clampScrollValue_",value:function(n){var t=this.calculateScrollEdges_();return Math.min(Math.max(t.left,n),t.right)}},{key:"computeCurrentScrollPositionRTL_",value:function(){var n=this.calculateCurrentTranslateX_();return this.getRTLScroller().getScrollPositionRTL(n)}},{key:"calculateScrollEdges_",value:function(){return{left:0,right:this.adapter_.getScrollContentOffsetWidth()-this.adapter_.getScrollAreaOffsetWidth()}}},{key:"scrollTo_",value:function(n){var i=this.getScrollPosition(),t=this.clampScrollValue_(n),r=t-i;this.animate_({finalScrollPosition:t,scrollDelta:r})}},{key:"scrollToRTL_",value:function(n){var t=this.getRTLScroller().scrollToRTL(n);this.animate_(t)}},{key:"incrementScroll_",value:function(n){var t=this.getScrollPosition(),r=n+t,i=this.clampScrollValue_(r),u=i-t;this.animate_({finalScrollPosition:i,scrollDelta:u})}},{key:"incrementScrollRTL_",value:function(n){var t=this.getRTLScroller().incrementScrollRTL(n);this.animate_(t)}},{key:"animate_",value:function(n){var i=this;0!==n.scrollDelta&&(this.stopScrollAnimation_(),this.adapter_.setScrollAreaScrollLeft(n.finalScrollPosition),this.adapter_.setScrollContentStyleProperty("transform","translateX("+n.scrollDelta+"px)"),this.adapter_.computeScrollAreaClientRect(),requestAnimationFrame(function(){i.adapter_.addClass(t.cssClasses.ANIMATING);i.adapter_.setScrollContentStyleProperty("transform","none")}),this.isAnimating_=!0)}},{key:"stopScrollAnimation_",value:function(){this.isAnimating_=!1;var n=this.getAnimatingScrollPosition_();this.adapter_.removeClass(t.cssClasses.ANIMATING);this.adapter_.setScrollContentStyleProperty("transform","translateX(0px)");this.adapter_.setScrollAreaScrollLeft(n)}},{key:"getAnimatingScrollPosition_",value:function(){var n=this.calculateCurrentTranslateX_(),t=this.adapter_.getScrollAreaScrollLeft();return this.isRTL_()?this.getRTLScroller().getAnimatingScrollPosition(t,n):t-n}},{key:"rtlScrollerFactory_",value:function(){var n=this.adapter_.getScrollAreaScrollLeft(),t;if(this.adapter_.setScrollAreaScrollLeft(n-1),t=this.adapter_.getScrollAreaScrollLeft(),t<0)return this.adapter_.setScrollAreaScrollLeft(n),new c.a(this.adapter_);var i=this.adapter_.computeScrollAreaClientRect(),r=this.adapter_.computeScrollContentClientRect(),u=Math.round(r.right-i.right);return this.adapter_.setScrollAreaScrollLeft(n),u===t?new l.a(this.adapter_):new h.a(this.adapter_)}},{key:"isRTL_",value:function(){return"rtl"===this.adapter_.getScrollContentStyleValue("direction")}}]),t}(s.a);t.a=v},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e=i(11),o=(i(5),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}()),s=function(n){function t(){return r(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),o(t,[{key:"getScrollPositionRTL",value:function(){var n=this.adapter_.getScrollAreaScrollLeft(),t=this.calculateScrollEdges_(),i=t.right;return Math.round(i-n)}},{key:"scrollToRTL",value:function(n){var i=this.calculateScrollEdges_(),r=this.adapter_.getScrollAreaScrollLeft(),t=this.clampScrollValue_(i.right-n);return{finalScrollPosition:t,scrollDelta:t-r}}},{key:"incrementScrollRTL",value:function(n){var t=this.adapter_.getScrollAreaScrollLeft(),i=this.clampScrollValue_(t-n);return{finalScrollPosition:i,scrollDelta:i-t}}},{key:"getAnimatingScrollPosition",value:function(n){return n}},{key:"calculateScrollEdges_",value:function(){return{left:0,right:this.adapter_.getScrollContentOffsetWidth()-this.adapter_.getScrollAreaOffsetWidth()}}},{key:"clampScrollValue_",value:function(n){var t=this.calculateScrollEdges_();return Math.min(Math.max(t.left,n),t.right)}}]),t}(e.a);t.a=s},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e=i(11),o=(i(5),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}()),s=function(n){function t(){return r(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),o(t,[{key:"getScrollPositionRTL",value:function(n){var t=this.adapter_.getScrollAreaScrollLeft();return Math.round(n-t)}},{key:"scrollToRTL",value:function(n){var i=this.adapter_.getScrollAreaScrollLeft(),t=this.clampScrollValue_(-n);return{finalScrollPosition:t,scrollDelta:t-i}}},{key:"incrementScrollRTL",value:function(n){var t=this.adapter_.getScrollAreaScrollLeft(),i=this.clampScrollValue_(t-n);return{finalScrollPosition:i,scrollDelta:i-t}}},{key:"getAnimatingScrollPosition",value:function(n,t){return n-t}},{key:"calculateScrollEdges_",value:function(){var n=this.adapter_.getScrollContentOffsetWidth();return{left:this.adapter_.getScrollAreaOffsetWidth()-n,right:0}}},{key:"clampScrollValue_",value:function(n){var t=this.calculateScrollEdges_();return Math.max(Math.min(t.right,n),t.left)}}]),t}(e.a);t.a=s},function(n,t,i){"use strict";function r(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function u(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function f(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var e=i(11),o=(i(5),function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}()),s=function(n){function t(){return r(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),o(t,[{key:"getScrollPositionRTL",value:function(n){var t=this.adapter_.getScrollAreaScrollLeft();return Math.round(t-n)}},{key:"scrollToRTL",value:function(n){var i=this.adapter_.getScrollAreaScrollLeft(),t=this.clampScrollValue_(n);return{finalScrollPosition:t,scrollDelta:i-t}}},{key:"incrementScrollRTL",value:function(n){var t=this.adapter_.getScrollAreaScrollLeft(),i=this.clampScrollValue_(t+n);return{finalScrollPosition:i,scrollDelta:t-i}}},{key:"getAnimatingScrollPosition",value:function(n,t){return n+t}},{key:"calculateScrollEdges_",value:function(){return{left:this.adapter_.getScrollContentOffsetWidth()-this.adapter_.getScrollAreaOffsetWidth(),right:0}}},{key:"clampScrollValue_",value:function(n){var t=this.calculateScrollEdges_();return Math.min(Math.max(t.right,n),t.left)}}]),t}(e.a);t.a=s},function(n,t,i){"use strict";function u(n){var u=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t,i;return u&&void 0!==r?r:(t=n.createElement("div"),t.classList.add(e.a.SCROLL_TEST),n.body.appendChild(t),i=t.offsetHeight-t.clientHeight,n.body.removeChild(t),u&&(r=i),i)}function f(n){return["msMatchesSelector","matches"].filter(function(t){return t in n}).pop()}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"computeHorizontalScrollbarHeight",function(){return u});i.d(t,"getMatchesProperty",function(){return f});var e=i(50),r=void 0},function(n,t,i){"use strict";function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function h(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function c(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var l=i(0),r=i(133),a=(i(51),i(10),Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n}),e=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=new Set,u,o;f.add(r.b.ARROW_LEFT_KEY);f.add(r.b.ARROW_RIGHT_KEY);f.add(r.b.END_KEY);f.add(r.b.HOME_KEY);f.add(r.b.ENTER_KEY);f.add(r.b.SPACE_KEY);u=new Map;u.set(r.a.ARROW_LEFT_KEYCODE,r.b.ARROW_LEFT_KEY);u.set(r.a.ARROW_RIGHT_KEYCODE,r.b.ARROW_RIGHT_KEY);u.set(r.a.END_KEYCODE,r.b.END_KEY);u.set(r.a.HOME_KEYCODE,r.b.HOME_KEY);u.set(r.a.ENTER_KEYCODE,r.b.ENTER_KEY);u.set(r.a.SPACE_KEYCODE,r.b.SPACE_KEY);o=function(n){function t(n){s(this,t);var i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a(t.defaultAdapter,n)));return i.useAutomaticActivation_=!1,i}return c(t,n),e(t,null,[{key:"strings",get:function(){return r.b}},{key:"numbers",get:function(){return r.a}},{key:"defaultAdapter",get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){},getScrollContentWidth:function(){},getOffsetWidth:function(){},isRTL:function(){},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){},getTabDimensionsAtIndex:function(){},getPreviousActiveTabIndex:function(){},getFocusedTabIndex:function(){},getIndexOfTab:function(){},getTabListLength:function(){},notifyTabActivated:function(){}}}}]),e(t,[{key:"setUseAutomaticActivation",value:function(n){this.useAutomaticActivation_=n}},{key:"activateTab",value:function(n){var t=this.adapter_.getPreviousActiveTabIndex();this.indexIsInRange_(n)&&n!==t&&(this.adapter_.deactivateTabAtIndex(t),this.adapter_.activateTabAtIndex(n,this.adapter_.getTabIndicatorClientRectAtIndex(t)),this.scrollIntoView(n),this.adapter_.notifyTabActivated(n))}},{key:"handleKeyDown",value:function(n){var t=this.getKeyFromEvent_(n),i,r,u;if(void 0!==t)if(this.isActivationKey_(t)||n.preventDefault(),this.useAutomaticActivation_){if(this.isActivationKey_(t))return;i=this.determineTargetFromKey_(this.adapter_.getPreviousActiveTabIndex(),t);this.adapter_.setActiveTab(i);this.scrollIntoView(i)}else r=this.adapter_.getFocusedTabIndex(),this.isActivationKey_(t)?this.adapter_.setActiveTab(r):(u=this.determineTargetFromKey_(r,t),this.adapter_.focusTabAtIndex(u),this.scrollIntoView(u))}},{key:"handleTabInteraction",value:function(n){this.adapter_.setActiveTab(this.adapter_.getIndexOfTab(n.detail.tab))}},{key:"scrollIntoView",value:function(n){if(this.indexIsInRange_(n))return 0===n?this.adapter_.scrollTo(0):n===this.adapter_.getTabListLength()-1?this.adapter_.scrollTo(this.adapter_.getScrollContentWidth()):this.isRTL_()?this.scrollIntoViewRTL_(n):void this.scrollIntoView_(n)}},{key:"determineTargetFromKey_",value:function(n,t){var u=this.isRTL_(),f=this.adapter_.getTabListLength()-1,e=t===r.b.END_KEY,o=t===r.b.ARROW_LEFT_KEY&&!u||t===r.b.ARROW_RIGHT_KEY&&u,s=t===r.b.ARROW_RIGHT_KEY&&!u||t===r.b.ARROW_LEFT_KEY&&u,i=n;return e?i=f:o?i-=1:s?i+=1:i=0,i<0?i=f:i>f&&(i=0),i}},{key:"calculateScrollIncrement_",value:function(n,t,i,u){var f=this.adapter_.getTabDimensionsAtIndex(t),e=f.contentLeft-i-u,o=f.contentRight-i,s=o-r.a.EXTRA_SCROLL_AMOUNT,h=e+r.a.EXTRA_SCROLL_AMOUNT;return t<n?Math.min(s,0):Math.max(h,0)}},{key:"calculateScrollIncrementRTL_",value:function(n,t,i,u,f){var e=this.adapter_.getTabDimensionsAtIndex(t),o=f-e.contentLeft-i,s=f-e.contentRight-i-u,h=s+r.a.EXTRA_SCROLL_AMOUNT,c=o-r.a.EXTRA_SCROLL_AMOUNT;return t>n?Math.max(h,0):Math.min(c,0)}},{key:"findAdjacentTabIndexClosestToEdge_",value:function(n,t,i,r){var u=t.rootLeft-i,f=t.rootRight-i-r,e=u+f,o=u<0||e<0,s=f>0||e>0;return o?n-1:s?n+1:-1}},{key:"findAdjacentTabIndexClosestToEdgeRTL_",value:function(n,t,i,r,u){var f=u-t.rootLeft-r-i,e=u-t.rootRight-i,o=f+e,s=f>0||o>0,h=e<0||o<0;return s?n+1:h?n-1:-1}},{key:"getKeyFromEvent_",value:function(n){return f.has(n.key)?n.key:u.get(n.keyCode)}},{key:"isActivationKey_",value:function(n){return n===r.b.SPACE_KEY||n===r.b.ENTER_KEY}},{key:"indexIsInRange_",value:function(n){return n>=0&&n<this.adapter_.getTabListLength()}},{key:"isRTL_",value:function(){return this.adapter_.isRTL()}},{key:"scrollIntoView_",value:function(n){var t=this.adapter_.getScrollPosition(),i=this.adapter_.getOffsetWidth(),f=this.adapter_.getTabDimensionsAtIndex(n),r=this.findAdjacentTabIndexClosestToEdge_(n,f,t,i),u;this.indexIsInRange_(r)&&(u=this.calculateScrollIncrement_(n,r,t,i),this.adapter_.incrementScroll(u))}},{key:"scrollIntoViewRTL_",value:function(n){var t=this.adapter_.getScrollPosition(),i=this.adapter_.getOffsetWidth(),e=this.adapter_.getTabDimensionsAtIndex(n),r=this.adapter_.getScrollContentWidth(),u=this.findAdjacentTabIndexClosestToEdgeRTL_(n,e,t,i,r),f;this.indexIsInRange_(u)&&(f=this.calculateScrollIncrementRTL_(n,u,t,i,r),this.adapter_.incrementScroll(f))}}]),t}(l.a);t.a=o},function(n,t,i){"use strict";i.d(t,"a",function(){return u});i.d(t,"b",function(){return r});var r={TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab",ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",HOME_KEY:"Home",ENTER_KEY:"Enter",SPACE_KEY:"Space"},u={EXTRA_SCROLL_AMOUNT:20,ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,HOME_KEYCODE:36,ENTER_KEYCODE:13,SPACE_KEYCODE:32}},function(n,t,i){"use strict";function h(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function l(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCTextField",function(){return d});var a=i(1),u=i(2),v=i(6),r=i(52),o=(i(53),i(137)),y=i(17),f=i(138),e=i(139),p=i(16),w=i(19);i.d(t,"MDCTextFieldFoundation",function(){return o.a});i.d(t,"MDCTextFieldHelperText",function(){return f.a});i.d(t,"MDCTextFieldHelperTextFoundation",function(){return f.b});i.d(t,"MDCTextFieldIcon",function(){return e.a});i.d(t,"MDCTextFieldIconFoundation",function(){return e.b});var s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},b=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),k=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},d=function(n){function t(){var r,n;h(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=c(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.input_,n.ripple,n.lineRipple_,n.helperText_,n.icon_,n.label_,n.outline_,n}return l(t,n),b(t,[{key:"initialize",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n,t){return new u.MDCRipple(n,t)},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return new y.MDCLineRipple(n)},b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(n){return new f.a(n)},k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(n){return new e.a(n)},n=this,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(n){return new p.MDCFloatingLabel(n)},g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(n){return new w.MDCNotchedOutline(n)},t,i,o,h,c;if(this.input_=this.root_.querySelector(r.e.INPUT_SELECTOR),t=this.root_.querySelector(r.e.LABEL_SELECTOR),t&&(this.label_=d(t)),i=this.root_.querySelector(r.e.LINE_RIPPLE_SELECTOR),i&&(this.lineRipple_=a(i)),o=this.root_.querySelector(r.e.OUTLINE_SELECTOR),(o&&(this.outline_=g(o)),this.input_.hasAttribute(r.e.ARIA_CONTROLS))&&(h=document.getElementById(this.input_.getAttribute(r.e.ARIA_CONTROLS)),h&&(this.helperText_=b(h))),c=this.root_.querySelector(r.e.ICON_SELECTOR),c&&(this.icon_=k(c)),this.ripple=null,!this.root_.classList.contains(r.c.TEXTAREA)&&!this.root_.classList.contains(r.c.OUTLINED)){var nt=Object(v.getMatchesProperty)(HTMLElement.prototype),tt=s(u.MDCRipple.createAdapter(this),{isSurfaceActive:function(){return n.input_[nt](":active")},registerInteractionHandler:function(t,i){return n.input_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.input_.removeEventListener(t,i)}}),it=new u.MDCRippleFoundation(tt);this.ripple=l(this.root_,it)}}},{key:"destroy",value:function(){this.ripple&&this.ripple.destroy();this.lineRipple_&&this.lineRipple_.destroy();this.helperText_&&this.helperText_.destroy();this.icon_&&this.icon_.destroy();this.label_&&this.label_.destroy();this.outline_&&this.outline_.destroy();k(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"initialSyncWithDom",value:function(){this.disabled=this.input_.disabled}},{key:"layout",value:function(){var n=this.foundation_.shouldFloat;this.foundation_.notchOutline(n)}},{key:"getDefaultFoundation",value:function(){var n=this;return new o.a(s({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},registerTextFieldInteractionHandler:function(t,i){return n.root_.addEventListener(t,i)},deregisterTextFieldInteractionHandler:function(t,i){return n.root_.removeEventListener(t,i)},registerValidationAttributeChangeHandler:function(t){var u=function(n){return n.map(function(n){return n.attributeName})},i=new MutationObserver(function(n){return t(u(n))}),f=n.root_.querySelector(r.e.INPUT_SELECTOR);return i.observe(f,{attributes:!0}),i},deregisterValidationAttributeChangeHandler:function(n){return n.disconnect()},isFocused:function(){return document.activeElement===n.root_.querySelector(r.e.INPUT_SELECTOR)},isRtl:function(){return"rtl"===window.getComputedStyle(n.root_).getPropertyValue("direction")}},this.getInputAdapterMethods_(),this.getLabelAdapterMethods_(),this.getLineRippleAdapterMethods_(),this.getOutlineAdapterMethods_()),this.getFoundationMap_())}},{key:"getLabelAdapterMethods_",value:function(){var n=this;return{shakeLabel:function(t){return n.label_.shake(t)},floatLabel:function(t){return n.label_.float(t)},hasLabel:function(){return!!n.label_},getLabelWidth:function(){return n.label_.getWidth()}}}},{key:"getLineRippleAdapterMethods_",value:function(){var n=this;return{activateLineRipple:function(){n.lineRipple_&&n.lineRipple_.activate()},deactivateLineRipple:function(){n.lineRipple_&&n.lineRipple_.deactivate()},setLineRippleTransformOrigin:function(t){n.lineRipple_&&n.lineRipple_.setRippleCenter(t)}}}},{key:"getOutlineAdapterMethods_",value:function(){var n=this;return{notchOutline:function(t,i){return n.outline_.notch(t,i)},closeOutline:function(){return n.outline_.closeNotch()},hasOutline:function(){return!!n.outline_}}}},{key:"getInputAdapterMethods_",value:function(){var n=this;return{registerInputInteractionHandler:function(t,i){return n.input_.addEventListener(t,i)},deregisterInputInteractionHandler:function(t,i){return n.input_.removeEventListener(t,i)},getNativeInput:function(){return n.input_}}}},{key:"getFoundationMap_",value:function(){return{helperText:this.helperText_?this.helperText_.foundation:void 0,icon:this.icon_?this.icon_.foundation:void 0}}},{key:"value",get:function(){return this.foundation_.getValue()},set:function(n){this.foundation_.setValue(n)}},{key:"disabled",get:function(){return this.foundation_.isDisabled()},set:function(n){this.foundation_.setDisabled(n)}},{key:"valid",get:function(){return this.foundation_.isValid()},set:function(n){this.foundation_.setValid(n)}},{key:"required",get:function(){return this.input_.required},set:function(n){this.input_.required=n}},{key:"pattern",get:function(){return this.input_.pattern},set:function(n){this.input_.pattern=n}},{key:"minLength",get:function(){return this.input_.minLength},set:function(n){this.input_.minLength=n}},{key:"maxLength",get:function(){return this.input_.maxLength},set:function(n){n<0?this.input_.removeAttribute("maxLength"):this.input_.maxLength=n}},{key:"min",get:function(){return this.input_.min},set:function(n){this.input_.min=n}},{key:"max",get:function(){return this.input_.max},set:function(n){this.input_.max=n}},{key:"step",get:function(){return this.input_.step},set:function(n){this.input_.step=n}},{key:"helperTextContent",set:function(n){this.foundation_.setHelperTextContent(n)}},{key:"iconAriaLabel",set:function(n){this.foundation_.setIconAriaLabel(n)}},{key:"iconContent",set:function(n){this.foundation_.setIconContent(n)}},{key:"useNativeValidation",set:function(n){this.foundation_.setUseNativeValidation(n)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(a.a)},function(n,t,i){"use strict";i.d(t,"b",function(){return r});i.d(t,"a",function(){return u});var r={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},u={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg"}},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"}},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=(i(22),i(23),i(53),i(52)),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i;return f(this,t),i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n))),i.helperText_=r.helperText,i.icon_=r.icon,i.isFocused_=!1,i.receivedUserInput_=!1,i.useCustomValidityChecking_=!1,i.isValid_=!0,i.useNativeValidation_=!0,i.inputFocusHandler_=function(){return i.activateFocus()},i.inputBlurHandler_=function(){return i.deactivateFocus()},i.inputInputHandler_=function(){return i.autoCompleteFocus()},i.setPointerXOffset_=function(n){return i.setTransformOrigin(n)},i.textFieldInteractionHandler_=function(){return i.handleTextFieldInteraction()},i.validationAttributeChangeHandler_=function(n){return i.handleValidationAttributeChange(n)},i.validationObserver_,i}return o(t,n),u(t,[{key:"shouldShake",get:function(){return!this.isValid()&&!this.isFocused_&&!!this.getValue()}},{key:"shouldAlwaysFloat_",get:function(){var n=this.getNativeInput_().type;return r.a.indexOf(n)>=0}},{key:"shouldFloat",get:function(){return this.shouldAlwaysFloat_||this.isFocused_||!!this.getValue()||this.isBadInput_()}}],[{key:"cssClasses",get:function(){return r.c}},{key:"strings",get:function(){return r.e}},{key:"numbers",get:function(){return r.d}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){},isFocused:function(){},isRtl:function(){},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},hasLabel:function(){},getLabelWidth:function(){},hasOutline:function(){},notchOutline:function(){},closeOutline:function(){}}}}]),u(t,[{key:"init",value:function(){var n=this;this.adapter_.isFocused()?this.inputFocusHandler_():this.adapter_.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter_.floatLabel(!0));this.adapter_.registerInputInteractionHandler("focus",this.inputFocusHandler_);this.adapter_.registerInputInteractionHandler("blur",this.inputBlurHandler_);this.adapter_.registerInputInteractionHandler("input",this.inputInputHandler_);["mousedown","touchstart"].forEach(function(t){n.adapter_.registerInputInteractionHandler(t,n.setPointerXOffset_)});["click","keydown"].forEach(function(t){n.adapter_.registerTextFieldInteractionHandler(t,n.textFieldInteractionHandler_)});this.validationObserver_=this.adapter_.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_)}},{key:"destroy",value:function(){var n=this;this.adapter_.deregisterInputInteractionHandler("focus",this.inputFocusHandler_);this.adapter_.deregisterInputInteractionHandler("blur",this.inputBlurHandler_);this.adapter_.deregisterInputInteractionHandler("input",this.inputInputHandler_);["mousedown","touchstart"].forEach(function(t){n.adapter_.deregisterInputInteractionHandler(t,n.setPointerXOffset_)});["click","keydown"].forEach(function(t){n.adapter_.deregisterTextFieldInteractionHandler(t,n.textFieldInteractionHandler_)});this.adapter_.deregisterValidationAttributeChangeHandler(this.validationObserver_)}},{key:"handleTextFieldInteraction",value:function(){this.adapter_.getNativeInput().disabled||(this.receivedUserInput_=!0)}},{key:"handleValidationAttributeChange",value:function(n){var t=this;n.some(function(n){if(r.b.indexOf(n)>-1)return t.styleValidity_(!0),!0})}},{key:"notchOutline",value:function(n){if(this.adapter_.hasOutline())if(n){var t=this.adapter_.hasClass(r.c.DENSE),i=t?r.d.DENSE_LABEL_SCALE:r.d.LABEL_SCALE,u=this.adapter_.getLabelWidth()*i,f=this.adapter_.isRtl();this.adapter_.notchOutline(u,f)}else this.adapter_.closeOutline()}},{key:"activateFocus",value:function(){this.isFocused_=!0;this.styleFocused_(this.isFocused_);this.adapter_.activateLineRipple();this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake));this.helperText_&&this.helperText_.showToScreenReader()}},{key:"setTransformOrigin",value:function(n){var t=n.target.getBoundingClientRect(),i={x:n.clientX,y:n.clientY},r=i.x-t.left;this.adapter_.setLineRippleTransformOrigin(r)}},{key:"autoCompleteFocus",value:function(){this.receivedUserInput_||this.activateFocus()}},{key:"deactivateFocus",value:function(){this.isFocused_=!1;this.adapter_.deactivateLineRipple();var n=this.isValid();this.styleValidity_(n);this.styleFocused_(this.isFocused_);this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake));this.shouldFloat||(this.receivedUserInput_=!1)}},{key:"getValue",value:function(){return this.getNativeInput_().value}},{key:"setValue",value:function(n){this.getNativeInput_().value=n;var t=this.isValid();this.styleValidity_(t);this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake))}},{key:"isValid",value:function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_}},{key:"setValid",value:function(n){this.isValid_=n;this.styleValidity_(n);var t=!n&&!this.isFocused_;this.adapter_.hasLabel()&&this.adapter_.shakeLabel(t)}},{key:"setUseNativeValidation",value:function(n){this.useNativeValidation_=n}},{key:"isDisabled",value:function(){return this.getNativeInput_().disabled}},{key:"setDisabled",value:function(n){this.getNativeInput_().disabled=n;this.styleDisabled_(n)}},{key:"setHelperTextContent",value:function(n){this.helperText_&&this.helperText_.setContent(n)}},{key:"setIconAriaLabel",value:function(n){this.icon_&&this.icon_.setAriaLabel(n)}},{key:"setIconContent",value:function(n){this.icon_&&this.icon_.setContent(n)}},{key:"isBadInput_",value:function(){return this.getNativeInput_().validity.badInput}},{key:"isNativeInputValid_",value:function(){return this.getNativeInput_().validity.valid}},{key:"styleValidity_",value:function(n){var i=t.cssClasses.INVALID;n?this.adapter_.removeClass(i):this.adapter_.addClass(i);this.helperText_&&this.helperText_.setValidity(n)}},{key:"styleFocused_",value:function(n){var i=t.cssClasses.FOCUSED;n?this.adapter_.addClass(i):this.adapter_.removeClass(i)}},{key:"styleDisabled_",value:function(n){var i=t.cssClasses,r=i.DISABLED,u=i.INVALID;n?(this.adapter_.addClass(r),this.adapter_.removeClass(u)):this.adapter_.removeClass(r);this.icon_&&this.icon_.setDisabled(n)}},{key:"getNativeInput_",value:function(){return this.adapter_.getNativeInput()||{value:"",disabled:!1,validity:{badInput:!1,valid:!0}}}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,r;i.d(t,"a",function(){return c});u=i(1);r=(i(54),i(22));i.d(t,"b",function(){return r.a});var s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),h(t,[{key:"getDefaultFoundation",value:function(){var n=this;return new r.a(s({addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},hasClass:function(t){return n.root_.classList.contains(t)},setAttr:function(t,i){return n.root_.setAttribute(t,i)},removeAttr:function(t){return n.root_.removeAttribute(t)},setContent:function(t){n.root_.textContent=t}}))}},{key:"foundation",get:function(){return this.foundation_}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(u.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var u,r;i.d(t,"a",function(){return c});u=i(1);r=(i(55),i(23));i.d(t,"b",function(){return r.a});var s=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(){return f(this,t),e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,n),h(t,[{key:"getDefaultFoundation",value:function(){var n=this;return new r.a(s({getAttr:function(t){return n.root_.getAttribute(t)},setAttr:function(t,i){return n.root_.setAttribute(t,i)},removeAttr:function(t){return n.root_.removeAttribute(t)},setContent:function(t){n.root_.textContent=t},registerInteractionHandler:function(t,i){return n.root_.addEventListener(t,i)},deregisterInteractionHandler:function(t,i){return n.root_.removeEventListener(t,i)},notifyIconAction:function(){return n.emit(r.a.strings.ICON_EVENT,{},!0)}}))}},{key:"foundation",get:function(){return this.foundation_}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(u.a)},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function f(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function e(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCToolbar",function(){return l});var o=i(3),s=i(2),r=i(141);i.d(t,"MDCToolbarFoundation",function(){return r.a});var h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},l=function(n){function t(){return u(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return e(t,n),h(t,[{key:"initialize",value:function(){this.ripples_=[].map.call(this.root_.querySelectorAll(r.a.strings.ICON_SELECTOR),function(n){var t=s.MDCRipple.attachTo(n);return t.unbounded=!0,t})}},{key:"destroy",value:function(){this.ripples_.forEach(function(n){n.destroy()});c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getDefaultFoundation",value:function(){var n=this;return new r.a({hasClass:function(t){return n.root_.classList.contains(t)},addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},registerScrollHandler:function(n){return window.addEventListener("scroll",n)},deregisterScrollHandler:function(n){return window.removeEventListener("scroll",n)},registerResizeHandler:function(n){return window.addEventListener("resize",n)},deregisterResizeHandler:function(n){return window.removeEventListener("resize",n)},getViewportWidth:function(){return window.innerWidth},getViewportScrollY:function(){return window.pageYOffset},getOffsetHeight:function(){return n.root_.offsetHeight},getFirstRowElementOffsetHeight:function(){return n.firstRowElement_.offsetHeight},notifyChange:function(t){return n.emit(r.a.strings.CHANGE_EVENT,t)},setStyle:function(t,i){return n.root_.style.setProperty(t,i)},setStyleForTitleElement:function(t,i){return n.titleElement_.style.setProperty(t,i)},setStyleForFlexibleRowElement:function(t,i){return n.firstRowElement_.style.setProperty(t,i)},setStyleForFixedAdjustElement:function(t,i){n.fixedAdjustElement&&n.fixedAdjustElement.style.setProperty(t,i)}})}},{key:"firstRowElement_",get:function(){return this.root_.querySelector(r.a.strings.FIRST_ROW_SELECTOR)}},{key:"titleElement_",get:function(){return this.root_.querySelector(r.a.strings.TITLE_SELECTOR)}},{key:"fixedAdjustElement",set:function(n){this.fixedAdjustElement_=n;this.foundation_.updateAdjustElementStyles()},get:function(){return this.fixedAdjustElement_}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(o.MDCComponent)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=i(0),r=i(142),h=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},u=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,h(t.defaultAdapter,n)));return i.resizeHandler_=function(){return i.checkRowHeight_()},i.scrollHandler_=function(){return i.updateToolbarStyles_()},i.checkRowHeightFrame_=0,i.scrollFrame_=0,i.executedLastChange_=!1,i.calculations_={toolbarRowHeight:0,toolbarRatio:0,flexibleExpansionRatio:0,maxTranslateYRatio:0,scrollThresholdRatio:0,toolbarHeight:0,flexibleExpansionHeight:0,maxTranslateYDistance:0,scrollThreshold:0},i.fixed_=!1,i.fixedLastrow_=!1,i.hasFlexibleRow_=!1,i.useFlexDefaultBehavior_=!1,i}return o(t,n),u(t,null,[{key:"cssClasses",get:function(){return r.a}},{key:"strings",get:function(){return r.c}},{key:"numbers",get:function(){return r.b}},{key:"defaultAdapter",get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},registerScrollHandler:function(){},deregisterScrollHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getViewportWidth:function(){return 0},getViewportScrollY:function(){return 0},getOffsetHeight:function(){return 0},getFirstRowElementOffsetHeight:function(){return 0},notifyChange:function(){},setStyle:function(){},setStyleForTitleElement:function(){},setStyleForFlexibleRowElement:function(){},setStyleForFixedAdjustElement:function(){}}}}]),u(t,[{key:"init",value:function(){this.fixed_=this.adapter_.hasClass(t.cssClasses.FIXED);this.fixedLastrow_=this.adapter_.hasClass(t.cssClasses.FIXED_LASTROW)&this.fixed_;this.hasFlexibleRow_=this.adapter_.hasClass(t.cssClasses.TOOLBAR_ROW_FLEXIBLE);this.hasFlexibleRow_&&(this.useFlexDefaultBehavior_=this.adapter_.hasClass(t.cssClasses.FLEXIBLE_DEFAULT_BEHAVIOR));this.initKeyRatio_();this.setKeyHeights_();this.adapter_.registerResizeHandler(this.resizeHandler_);this.adapter_.registerScrollHandler(this.scrollHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterResizeHandler(this.resizeHandler_);this.adapter_.deregisterScrollHandler(this.scrollHandler_)}},{key:"updateAdjustElementStyles",value:function(){this.fixed_&&this.adapter_.setStyleForFixedAdjustElement("margin-top",this.calculations_.toolbarHeight+"px")}},{key:"getFlexibleExpansionRatio_",value:function(n){return Math.max(0,1-n/(this.calculations_.flexibleExpansionHeight+.0001))}},{key:"checkRowHeight_",value:function(){var n=this;cancelAnimationFrame(this.checkRowHeightFrame_);this.checkRowHeightFrame_=requestAnimationFrame(function(){return n.setKeyHeights_()})}},{key:"setKeyHeights_",value:function(){var n=this.getRowHeight_();n!==this.calculations_.toolbarRowHeight&&(this.calculations_.toolbarRowHeight=n,this.calculations_.toolbarHeight=this.calculations_.toolbarRatio*this.calculations_.toolbarRowHeight,this.calculations_.flexibleExpansionHeight=this.calculations_.flexibleExpansionRatio*this.calculations_.toolbarRowHeight,this.calculations_.maxTranslateYDistance=this.calculations_.maxTranslateYRatio*this.calculations_.toolbarRowHeight,this.calculations_.scrollThreshold=this.calculations_.scrollThresholdRatio*this.calculations_.toolbarRowHeight,this.updateAdjustElementStyles(),this.updateToolbarStyles_())}},{key:"updateToolbarStyles_",value:function(){var n=this;cancelAnimationFrame(this.scrollFrame_);this.scrollFrame_=requestAnimationFrame(function(){var i=n.adapter_.getViewportScrollY(),r=n.scrolledOutOfThreshold_(i),t;r&&n.executedLastChange_||(t=n.getFlexibleExpansionRatio_(i),n.updateToolbarFlexibleState_(t),n.fixedLastrow_&&n.updateToolbarFixedState_(i),n.hasFlexibleRow_&&n.updateFlexibleRowElementStyles_(t),n.executedLastChange_=r,n.adapter_.notifyChange({flexibleExpansionRatio:t}))})}},{key:"scrolledOutOfThreshold_",value:function(n){return n>this.calculations_.scrollThreshold}},{key:"initKeyRatio_",value:function(){var t=this.getRowHeight_(),n=this.adapter_.getFirstRowElementOffsetHeight()/t;this.calculations_.toolbarRatio=this.adapter_.getOffsetHeight()/t;this.calculations_.flexibleExpansionRatio=n-1;this.calculations_.maxTranslateYRatio=this.fixedLastrow_?this.calculations_.toolbarRatio-n:0;this.calculations_.scrollThresholdRatio=(this.fixedLastrow_?this.calculations_.toolbarRatio:n)-1}},{key:"getRowHeight_",value:function(){var n=t.numbers.TOOLBAR_MOBILE_BREAKPOINT;return this.adapter_.getViewportWidth()<n?t.numbers.TOOLBAR_ROW_MOBILE_HEIGHT:t.numbers.TOOLBAR_ROW_HEIGHT}},{key:"updateToolbarFlexibleState_",value:function(n){this.adapter_.removeClass(t.cssClasses.FLEXIBLE_MAX);this.adapter_.removeClass(t.cssClasses.FLEXIBLE_MIN);1===n?this.adapter_.addClass(t.cssClasses.FLEXIBLE_MAX):0===n&&this.adapter_.addClass(t.cssClasses.FLEXIBLE_MIN)}},{key:"updateToolbarFixedState_",value:function(n){var i=Math.max(0,Math.min(n-this.calculations_.flexibleExpansionHeight,this.calculations_.maxTranslateYDistance));this.adapter_.setStyle("transform","translateY("+-i+"px)");i===this.calculations_.maxTranslateYDistance?this.adapter_.addClass(t.cssClasses.FIXED_AT_LAST_ROW):this.adapter_.removeClass(t.cssClasses.FIXED_AT_LAST_ROW)}},{key:"updateFlexibleRowElementStyles_",value:function(n){if(this.fixed_){var t=this.calculations_.flexibleExpansionHeight*n;this.adapter_.setStyleForFlexibleRowElement("height",t+this.calculations_.toolbarRowHeight+"px")}this.useFlexDefaultBehavior_&&this.updateElementStylesDefaultBehavior_(n)}},{key:"updateElementStylesDefaultBehavior_",value:function(n){var r=t.numbers.MAX_TITLE_SIZE,i=t.numbers.MIN_TITLE_SIZE,u=(r-i)*n+i;this.adapter_.setStyleForTitleElement("font-size",u+"rem")}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";i.d(t,"a",function(){return r});i.d(t,"c",function(){return u});i.d(t,"b",function(){return f});var r={FIXED:"mdc-toolbar--fixed",FIXED_LASTROW:"mdc-toolbar--fixed-lastrow-only",FIXED_AT_LAST_ROW:"mdc-toolbar--fixed-at-last-row",TOOLBAR_ROW_FLEXIBLE:"mdc-toolbar--flexible",FLEXIBLE_DEFAULT_BEHAVIOR:"mdc-toolbar--flexible-default-behavior",FLEXIBLE_MAX:"mdc-toolbar--flexible-space-maximized",FLEXIBLE_MIN:"mdc-toolbar--flexible-space-minimized"},u={TITLE_SELECTOR:".mdc-toolbar__title",ICON_SELECTOR:".mdc-toolbar__icon",FIRST_ROW_SELECTOR:".mdc-toolbar__row:first-child",CHANGE_EVENT:"MDCToolbar:change"},f={MAX_TITLE_SIZE:2.125,MIN_TITLE_SIZE:1.25,TOOLBAR_ROW_HEIGHT:64,TOOLBAR_ROW_MOBILE_HEIGHT:56,TOOLBAR_MOBILE_BREAKPOINT:600}},function(n,t,i){"use strict";function o(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function s(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function h(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});i.d(t,"MDCTopAppBar",function(){return w});var c=(i(7),i(1)),l=i(2),r=i(8),a=i(12),u=i(144),f=i(145),e=i(146);i.d(t,"MDCTopAppBarBaseFoundation",function(){return a.a});i.d(t,"MDCTopAppBarFoundation",function(){return e.a});i.d(t,"MDCFixedTopAppBarFoundation",function(){return u.a});i.d(t,"MDCShortTopAppBarFoundation",function(){return f.a});var v=Object.assign||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n},y=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),p=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},w=function(n){function t(){var r,n;o(this,t);for(var u=arguments.length,f=Array(u),i=0;i<u;i++)f[i]=arguments[i];return n=s(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(f))),n.navIcon_,n.iconRipples_,n.scrollTarget_,n}return h(t,n),y(t,[{key:"initialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return l.MDCRipple.attachTo(n)},n;this.navIcon_=this.root_.querySelector(r.c.NAVIGATION_ICON_SELECTOR);n=[].slice.call(this.root_.querySelectorAll(r.c.ACTION_ITEM_SELECTOR));this.navIcon_&&n.push(this.navIcon_);this.iconRipples_=n.map(function(n){var i=t(n);return i.unbounded=!0,i})}},{key:"destroy",value:function(){this.iconRipples_.forEach(function(n){return n.destroy()});p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"setScrollTarget",value:function(n){this.foundation_.destroyScrollHandler();this.scrollTarget_=n;this.foundation_.initScrollHandler()}},{key:"getDefaultFoundation",value:function(){var n=this,t=v({hasClass:function(t){return n.root_.classList.contains(t)},addClass:function(t){return n.root_.classList.add(t)},removeClass:function(t){return n.root_.classList.remove(t)},setStyle:function(t,i){return n.root_.style.setProperty(t,i)},getTopAppBarHeight:function(){return n.root_.clientHeight},registerNavigationIconInteractionHandler:function(t,i){n.navIcon_&&n.navIcon_.addEventListener(t,i)},deregisterNavigationIconInteractionHandler:function(t,i){n.navIcon_&&n.navIcon_.removeEventListener(t,i)},notifyNavigationIconClicked:function(){n.emit(r.c.NAVIGATION_EVENT,{})},registerScrollHandler:function(t){return n.scrollTarget_.addEventListener("scroll",t)},deregisterScrollHandler:function(t){return n.scrollTarget_.removeEventListener("scroll",t)},registerResizeHandler:function(n){return window.addEventListener("resize",n)},deregisterResizeHandler:function(n){return window.removeEventListener("resize",n)},getViewportScrollY:function(){return n.scrollTarget_[n.scrollTarget_===window?"pageYOffset":"scrollTop"]},getTotalActionItems:function(){return n.root_.querySelectorAll(r.c.ACTION_ITEM_SELECTOR).length}});return this.scrollTarget_=window,this.root_.classList.contains(r.a.SHORT_CLASS)?new f.a(t):this.root_.classList.contains(r.a.FIXED_CLASS)?new u.a(t):new e.a(t)}}],[{key:"attachTo",value:function(n){return new t(n)}}]),t}(c.a)},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var r=i(8),s=(i(7),i(12)),h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return i.wasScrolled_=!1,i.scrollHandler_=function(){return i.fixedScrollHandler_()},i}return o(t,n),h(t,[{key:"init",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this);this.adapter_.registerScrollHandler(this.scrollHandler_)}},{key:"destroy",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.adapter_.deregisterScrollHandler(this.scrollHandler_)}},{key:"fixedScrollHandler_",value:function(){this.adapter_.getViewportScrollY()<=0?this.wasScrolled_&&(this.adapter_.removeClass(r.a.FIXED_SCROLLED_CLASS),this.wasScrolled_=!1):this.wasScrolled_||(this.adapter_.addClass(r.a.FIXED_SCROLLED_CLASS),this.wasScrolled_=!0)}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function e(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function o(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var s=(i(7),i(12)),r=i(8),h=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),u=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},c=function(n){function t(n){f(this,t);var i=e(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return i.isCollapsed=!1,i.scrollHandler_=function(){return i.shortAppBarScrollHandler_()},i}return o(t,n),h(t,[{key:"init",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this);var n=this.adapter_.hasClass(r.a.SHORT_COLLAPSED_CLASS);this.adapter_.getTotalActionItems()>0&&this.adapter_.addClass(r.a.SHORT_HAS_ACTION_ITEM_CLASS);n||(this.adapter_.registerScrollHandler(this.scrollHandler_),this.shortAppBarScrollHandler_())}},{key:"destroy",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.adapter_.deregisterScrollHandler(this.scrollHandler_)}},{key:"shortAppBarScrollHandler_",value:function(){this.adapter_.getViewportScrollY()<=0?this.isCollapsed&&(this.adapter_.removeClass(r.a.SHORT_COLLAPSED_CLASS),this.isCollapsed=!1):this.isCollapsed||(this.adapter_.addClass(r.a.SHORT_COLLAPSED_CLASS),this.isCollapsed=!0)}}]),t}(s.a);t.a=c},function(n,t,i){"use strict";function e(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function o(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?n:t}function s(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var h=(i(7),i(12)),u=i(8),c=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),f=function n(t,i,r){var u,f,e;return(null===t&&(t=Function.prototype),u=Object.getOwnPropertyDescriptor(t,i),void 0===u)?(f=Object.getPrototypeOf(t),null===f?void 0:n(f,i,r)):"value"in u?u.value:(e=u.get,void 0!==e?e.call(r):void 0)},r=0,l=function(n){function t(n){e(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return i.lastScrollPosition_=i.adapter_.getViewportScrollY(),i.topAppBarHeight_=i.adapter_.getTopAppBarHeight(),i.wasDocked_=!0,i.isDockedShowing_=!0,i.currentAppBarOffsetTop_=0,i.isCurrentlyBeingResized_=!1,i.resizeThrottleId_=r,i.resizeDebounceId_=r,i.scrollHandler_=function(){return i.topAppBarScrollHandler_()},i.resizeHandler_=function(){return i.topAppBarResizeHandler_()},i}return s(t,n),c(t,[{key:"init",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this);this.adapter_.registerScrollHandler(this.scrollHandler_);this.adapter_.registerResizeHandler(this.resizeHandler_)}},{key:"destroy",value:function(){f(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.adapter_.deregisterScrollHandler(this.scrollHandler_);this.adapter_.deregisterResizeHandler(this.resizeHandler_);this.adapter_.setStyle("top","")}},{key:"checkForUpdate_",value:function(){var i=-this.topAppBarHeight_,r=this.currentAppBarOffsetTop_<0,n=this.currentAppBarOffsetTop_>i,t=r&&n;if(t)this.wasDocked_=!1;else{if(!this.wasDocked_)return this.wasDocked_=!0,!0;if(this.isDockedShowing_!==n)return this.isDockedShowing_=n,!0}return t}},{key:"moveTopAppBar_",value:function(){if(this.checkForUpdate_()){var n=this.currentAppBarOffsetTop_;Math.abs(n)>=this.topAppBarHeight_&&(n=-u.b.MAX_TOP_APP_BAR_HEIGHT);this.adapter_.setStyle("top",n+"px")}}},{key:"topAppBarScrollHandler_",value:function(){var n=Math.max(this.adapter_.getViewportScrollY(),0),t=n-this.lastScrollPosition_;this.lastScrollPosition_=n;this.isCurrentlyBeingResized_||(this.currentAppBarOffsetTop_-=t,this.currentAppBarOffsetTop_>0?this.currentAppBarOffsetTop_=0:Math.abs(this.currentAppBarOffsetTop_)>this.topAppBarHeight_&&(this.currentAppBarOffsetTop_=-this.topAppBarHeight_),this.moveTopAppBar_())}},{key:"topAppBarResizeHandler_",value:function(){var n=this;this.resizeThrottleId_||(this.resizeThrottleId_=setTimeout(function(){n.resizeThrottleId_=r;n.throttledResizeHandler_()},u.b.DEBOUNCE_THROTTLE_RESIZE_TIME_MS));this.isCurrentlyBeingResized_=!0;this.resizeDebounceId_&&clearTimeout(this.resizeDebounceId_);this.resizeDebounceId_=setTimeout(function(){n.topAppBarScrollHandler_();n.isCurrentlyBeingResized_=!1;n.resizeDebounceId_=r},u.b.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)}},{key:"throttledResizeHandler_",value:function(){var n=this.adapter_.getTopAppBarHeight();this.topAppBarHeight_!==n&&(this.wasDocked_=!1,this.currentAppBarOffsetTop_-=this.topAppBarHeight_-n,this.topAppBarHeight_=n);this.topAppBarScrollHandler_()}}]),t}(h.a);t.a=l}])})