text: ;(function(a,b){typeof module=="object"&&typeof module.exports=="object"?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)})(typeof window!="undefined"?window:this,function(window,noGlobal){function isArraylike(a){var b=a.length,c=jQuery.type(a);return c==="function"||jQuery.isWindow(a)?!1:a.nodeType===1&&b?!0:c==="array"||b===0||typeof b=="number"&&b>0&&b-1 in a}function winnow(a,b,c){if(jQuery.isFunction(b))return jQuery.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return jQuery.grep(a,function(a){return a===b!==c});if(typeof b=="string"){if(risSimple.test(b))return jQuery.filter(b,a,c);b=jQuery.filter(b,a)}return jQuery.grep(a,function(a){return indexOf.call(b,a)>=0!==c})}function sibling(a,b){while((a=a[b])&&a.nodeType!==1);return a}function createOptions(a){var b=optionsCache[a]={};return jQuery.each(a.match(rnotwhite)||[],function(a,c){b[c]=!0}),b}function completed(){document.removeEventListener("DOMContentLoaded",completed,!1),window.removeEventListener("load",completed,!1),jQuery.ready()}function Data(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=jQuery.expando+Math.random()}function dataAttr(a,b,c){var d;if(c===undefined&&a.nodeType===1){d="data-"+b.replace(rmultiDash,"-$1").toLowerCase(),c=a.getAttribute(d);if(typeof c=="string"){try{c=c==="true"?!0:c==="false"?!1:c==="null"?null:+c+""===c?+c:rbrace.test(c)?jQuery.parseJSON(c):c}catch(e){}data_user.set(a,b,c)}else c=undefined}return c}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return document.activeElement}catch(a){}}function manipulationTarget(a,b){return jQuery.nodeName(a,"table")&&jQuery.nodeName(b.nodeType!==11?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function disableScript(a){return a.type=(a.getAttribute("type")!==null)+"/"+a.type,a}function restoreScript(a){var b=rscriptTypeMasked.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function setGlobalEval(a,b){var c=0,d=a.length;for(;c<d;c++)data_priv.set(a[c],"globalEval",!b||data_priv.get(b[c],"globalEval"))}function cloneCopyEvent(a,b){var c,d,e,f,g,h,i,j;if(b.nodeType!==1)return;if(data_priv.hasData(a)){f=data_priv.access(a),g=data_priv.set(b,f),j=f.events;if(j){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)jQuery.event.add(b,e,j[e][c])}}data_user.hasData(a)&&(h=data_user.access(a),i=jQuery.extend({},h),data_user.set(b,i))}function getAll(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return b===undefined||b&&jQuery.nodeName(a,b)?jQuery.merge([a],c):c}function fixInput(a,b){var c=b.nodeName.toLowerCase();if(c==="input"&&rcheckableType.test(a.type))b.checked=a.checked;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}function actualDisplay(a,b){var c,d=jQuery(b.createElement(a)).appendTo(b.body),e=window.getDefaultComputedStyle&&(c=window.getDefaultComputedStyle(d[0]))?c.display:jQuery.css(d[0],"display");return d.detach(),e}function defaultDisplay(a){var b=document,c=elemdisplay[a];if(!c){c=actualDisplay(a,b);if(c==="none"||!c)iframe=(iframe||jQuery("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=iframe[0].contentDocument,b.write(),b.close(),c=actualDisplay(a,b),iframe.detach();elemdisplay[a]=c}return c}function curCSS(a,b,c){var d,e,f,g,h=a.style;return c=c||getStyles(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(g===""&&!jQuery.contains(a.ownerDocument,a)&&(g=jQuery.style(a,b)),rnumnonpx.test(g)&&rmargin.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),g!==undefined?g+"":g}function addGetHookIf(a,b){return{get:function(){if(a()){delete this.get;return}return(this.get=b).apply(this,arguments)}}}function vendorPropName(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=cssPrefixes.length;while(e--){b=cssPrefixes[e]+c;if(b in a)return b}return d}function setPositiveNumber(a,b,c){var d=rnumsplit.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function augmentWidthOrHeight(a,b,c,d,e){var f=c===(d?"border":"content")?4:b==="width"?1:0,g=0;for(;f<4;f+=2)c==="margin"&&(g+=jQuery.css(a,c+cssExpand[f],!0,e)),d?(c==="content"&&(g-=jQuery.css(a,"padding"+cssExpand[f],!0,e)),c!=="margin"&&(g-=jQuery.css(a,"border"+cssExpand[f]+"Width",!0,e))):(g+=jQuery.css(a,"padding"+cssExpand[f],!0,e),c!=="padding"&&(g+=jQuery.css(a,"border"+cssExpand[f]+"Width",!0,e)));return g}function getWidthOrHeight(a,b,c){var d=!0,e=b==="width"?a.offsetWidth:a.offsetHeight,f=getStyles(a),g=jQuery.css(a,"boxSizing",!1,f)==="border-box";if(e<=0||e==null){e=curCSS(a,b,f);if(e<0||e==null)e=a.style[b];if(rnumnonpx.test(e))return e;d=g&&(support.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+augmentWidthOrHeight(a,b,c||(g?"border":"content"),d,f)+"px"}function showHide(a,b){var c,d,e,f=[],g=0,h=a.length;for(;g<h;g++){d=a[g];if(!d.style)continue;f[g]=data_priv.get(d,"olddisplay"),c=d.style.display,b?(!f[g]&&c==="none"&&(d.style.display=""),d.style.display===""&&isHidden(d)&&(f[g]=data_priv.access(d,"olddisplay",defaultDisplay(d.nodeName)))):(e=isHidden(d),(c!=="none"||!e)&&data_priv.set(d,"olddisplay",e?c:jQuery.css(d,"display")))}for(g=0;g<h;g++){d=a[g];if(!d.style)continue;if(!b||d.style.display==="none"||d.style.display==="")d.style.display=b?f[g]||"":"none"}return a}function Tween(a,b,c,d,e){return new Tween.prototype.init(a,b,c,d,e)}function createFxNow(){return setTimeout(function(){fxNow=undefined}),fxNow=jQuery.now()}function genFx(a,b){var c,d=0,e={height:a};b=b?1:0;for(;d<4;d+=2-b)c=cssExpand[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function createTween(a,b,c){var d,e=(tweeners[b]||[]).concat(tweeners["*"]),f=0,g=e.length;for(;f<g;f++)if(d=e[f].call(c,b,a))return d}function defaultPrefilter(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&isHidden(a),p=data_priv.get(a,"fxshow");c.queue||(h=jQuery._queueHooks(a,"fx"),h.unqueued==null&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,jQuery.queue(a,"fx").length||h.empty.fire()})})),a.nodeType===1&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=jQuery.css(a,"display"),k=j==="none"?data_priv.get(a,"olddisplay")||defaultDisplay(a.nodeName):j,k==="inline"&&jQuery.css(a,"float")==="none"&&(n.display="inline-block")),c.overflow&&(n.overflow="hidden",l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b){e=b[d];if(rfxtypes.exec(e)){delete b[d],f=f||e==="toggle";if(e===(o?"hide":"show"))if(e==="show"&&p&&p[d]!==undefined)o=!0;else continue;m[d]=p&&p[d]||jQuery.style(a,d)}else j=undefined}if(!jQuery.isEmptyObject(m)){p?"hidden"in p&&(o=p.hidden):p=data_priv.access(a,"fxshow",{}),f&&(p.hidden=!o),o?jQuery(a).show():l.done(function(){jQuery(a).hide()}),l.done(function(){var b;data_priv.remove(a,"fxshow");for(b in m)jQuery.style(a,b,m[b])});for(d in m)g=createTween(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start=d==="width"||d==="height"?1:0))}else(j==="none"?defaultDisplay(a.nodeName):j)==="inline"&&(n.display=j)}function propFilter(a,b){var c,d,e,f,g;for(c in a){d=jQuery.camelCase(c),e=b[d],f=a[c],jQuery.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=jQuery.cssHooks[d];if(g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}}function Animation(a,b,c){var d,e,f=0,g=animationPrefilters.length,h=jQuery.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;var b=fxNow||createFxNow(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;for(;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:jQuery.extend({},b),opts:jQuery.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:fxNow||createFxNow(),duration:c.duration,tweens:[],createTween:function(b,c){var d=jQuery.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;e=!0;for(;c<d;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;propFilter(k,j.opts.specialEasing);for(;f<g;f++){d=animationPrefilters[f].call(j,a,k,j.opts);if(d)return d}return jQuery.map(k,createTween,j),jQuery.isFunction(j.opts.start)&&j.opts.start.call(a,j),jQuery.fx.timer(jQuery.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function addToPrefiltersOrTransports(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(rnotwhite)||[];if(jQuery.isFunction(c))while(d=f[e++])d[0]==="+"?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function inspectPrefiltersOrTransports(a,b,c,d){function g(h){var i;return e[h]=!0,jQuery.each(a[h]||[],function(a,h){var j=h(b,c,d);if(typeof j=="string"&&!f&&!e[j])return b.dataTypes.unshift(j),g(j),!1;if(f)return!(i=j)}),i}var e={},f=a===transports;return g(b.dataTypes[0])||!e["*"]&&g("*")}function ajaxExtend(a,b){var c,d,e=jQuery.ajaxSettings.flatOptions||{};for(c in b)b[c]!==undefined&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&jQuery.extend(!0,a,d),a}function ajaxHandleResponses(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while(i[0]==="*")i.shift(),d===undefined&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function ajaxConvert(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f){a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift();if(f)if(f==="*")f=i;else if(i!=="*"&&i!==f){g=j[i+" "+f]||j["* "+f];if(!g)for(e in j){h=e.split(" ");if(h[1]===f){g=j[i+" "+h[0]]||j["* "+h[0]];if(g){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}}}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}}return{state:"success",data:b}}function buildParams(a,b,c,d){var e;if(jQuery.isArray(b))jQuery.each(b,function(b,e){c||rbracket.test(a)?d(a,e):buildParams(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&jQuery.type(b)==="object")for(e in b)buildParams(a+"["+e+"]",b[e],c,d);else d(a,b)}function getWindow(a){return jQuery.isWindow(a)?a:a.nodeType===9&&a.defaultView}var arr=[],slice=arr.slice,concat=arr.concat,push=arr.push,indexOf=arr.indexOf,class2type={},toString=class2type.toString,hasOwn=class2type.hasOwnProperty,support={},document=window.document,version="2.1.1",jQuery=function(a,b){return new jQuery.fn.init(a,b)},rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,rmsPrefix=/^-ms-/,rdashAlpha=/-([\da-z])/gi,fcamelCase=function(a,b){return b.toUpperCase()};jQuery.fn=jQuery.prototype={jquery:version,constructor:jQuery,selector:"",length:0,toArray:function(){return slice.call(this)},get:function(a){return a!=null?a<0?this[a+this.length]:this[a]:slice.call(this)},pushStack:function(a){var b=jQuery.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return jQuery.each(this,a,b)},map:function(a){return this.pushStack(jQuery.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:push,sort:arr.sort,splice:arr.splice},jQuery.extend=jQuery.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;typeof g=="boolean"&&(j=g,g=arguments[h]||{},h++),typeof g!="object"&&!jQuery.isFunction(g)&&(g={}),h===i&&(g=this,h--);for(;h<i;h++)if((a=arguments[h])!=null)for(b in a){c=g[b],d=a[b];if(g===d)continue;j&&d&&(jQuery.isPlainObject(d)||(e=jQuery.isArray(d)))?(e?(e=!1,f=c&&jQuery.isArray(c)?c:[]):f=c&&jQuery.isPlainObject(c)?c:{},g[b]=jQuery.extend(j,f,d)):d!==undefined&&(g[b]=d)}return g},jQuery.extend({expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return jQuery.type(a)==="function"},isArray:Array.isArray,isWindow:function(a){return a!=null&&a===a.window},isNumeric:function(a){return!jQuery.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return jQuery.type(a)!=="object"||a.nodeType||jQuery.isWindow(a)?!1:a.constructor&&!hasOwn.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return a==null?a+"":typeof a=="object"||typeof a=="function"?class2type[toString.call(a)]||"object":typeof a},globalEval:function(code){var script,indirect=eval;code=jQuery.trim(code),code&&(code.indexOf("use strict")===1?(script=document.createElement("script"),script.text=code,document.head.appendChild(script).parentNode.removeChild(script)):indirect(code))},camelCase:function(a){return a.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=isArraylike(a);if(c)if(g)for(;e<f;e++){d=b.apply(a[e],c);if(d===!1)break}else for(e in a){d=b.apply(a[e],c);if(d===!1)break}else if(g)for(;e<f;e++){d=b.call(a[e],e,a[e]);if(d===!1)break}else for(e in a){d=b.call(a[e],e,a[e]);if(d===!1)break}return a},trim:function(a){return a==null?"":(a+"").replace(rtrim,"")},makeArray:function(a,b){var c=b||[];return a!=null&&(isArraylike(Object(a))?jQuery.merge(c,typeof a=="string"?[a]:a):push.call(c,a)),c},inArray:function(a,b,c){return b==null?-1:indexOf.call(b,a,c)},merge:function(a,b){var c=+b.length,d=0,e=a.length;for(;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){var d,e=[],f=0,g=a.length,h=!c;for(;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e=0,f=a.length,g=isArraylike(a),h=[];if(g)for(;e<f;e++)d=b(a[e],e,c),d!=null&&h.push(d);else for(e in a)d=b(a[e],e,c),d!=null&&h.push(d);return concat.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;return typeof b=="string"&&(c=a[b],b=a,a=c),jQuery.isFunction(a)?(d=slice.call(arguments,2),e=function(){return a.apply(b||this,d.concat(slice.call(arguments)))},e.guid=a.guid=a.guid||jQuery.guid++,e):undefined},now:Date.now,support:support}),jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){class2type["[object "+b+"]"]=b.toLowerCase()});var Sizzle=function(a){function bf(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;(b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[];if(!a||typeof a!="string")return d;if((k=b.nodeType)!==1&&k!==9)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(k===9){h=b.getElementById(j);if(!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){s=r=u,w=b,x=k===9&&a;if(k===1&&b.nodeName.toLowerCase()!=="object"){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+bq(o[l]);w=ba.test(a)&&bo(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function bg(){function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}var a=[];return b}function bh(a){return a[u]=!0,a}function bi(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function bj(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function bk(a,b){var c=b&&a,d=c&&a.nodeType===1&&b.nodeType===1&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function bl(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function bm(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bn(a){return bh(function(b){return b=+b,bh(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function bo(a){return a&&typeof a.getElementsByTagName!==C&&a}function bp(){}function bq(a){var b=0,c=a.length,d="";for(;b<c;b++)d+=a[b].value;return d}function br(a,b,c){var d=b.dir,e=c&&d==="parentNode",f=x++;return b.first?function(b,c,f){while(b=b[d])if(b.nodeType===1||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if(b.nodeType===1||e)if(a(b,c,g))return!0}else while(b=b[d])if(b.nodeType===1||e){i=b[u]||(b[u]={});if((h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];i[d]=j;if(j[2]=a(b,c,g))return!0}}}function bs(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function bt(a,b,c){var d=0,e=b.length;for(;d<e;d++)bf(a,b[d],c);return c}function bu(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h<i;h++)if(f=a[h])if(!c||c(f,d,e))g.push(f),j&&b.push(h);return g}function bv(a,b,c,d,e,f){return d&&!d[u]&&(d=bv(d)),e&&!e[u]&&(e=bv(e,f)),bh(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||bt(b||"*",h.nodeType?[h]:h,[]),q=a&&(f||!b)?bu(p,m,a,h,i):p,r=c?e||(f?a:o||d)?[]:g:q;c&&c(q,r,h,i);if(d){j=bu(r,n),d(j,[],h,i),k=j.length;while(k--)if(l=j[k])r[n[k]]=!(q[n[k]]=l)}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=bu(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function bw(a){var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=br(function(a){return a===b},h,!0),l=br(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];for(;i<f;i++)if(c=d.relative[a[i].type])m=[br(bs(m),c)];else{c=d.filter[a[i].type].apply(null,a[i].matches);if(c[u]){e=++i;for(;e<f;e++)if(d.relative[a[e].type])break;return bv(i>1&&bs(m),i>1&&bq(a.slice(0,i-1).concat({value:a[i-2].type===" "?"*":""})).replace(R,"$1"),c,i<e&&bw(a.slice(i,e)),e<f&&bw(a=a.slice(e)),e<f&&bq(a))}m.push(c)}return bs(m)}function bx(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=t==null?1:Math.random()||.1,x=u.length;k&&(j=g!==n&&g);for(;q!==x&&(l=u[q])!=null;q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}p+=q;if(c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)!r[q]&&!s[q]&&(s[q]=G.call(i));s=bu(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&bf.uniqueSort(i)}return k&&(w=v,j=t),r};return c?bh(f):f}var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+ -(new Date),v=a.document,w=0,x=0,y=bg(),z=bg(),A=bg(),B=function(a,b){return a===b&&(l=!0),0},C=typeof undefined,D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){var b=0,c=this.length;for(;b<c;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|"+".*"+")\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ba=/[+~]/,bb=/'|\\/g,bc=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),bd=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,d&1023|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(be){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}c=bf.support={},f=bf.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},m=bf.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;if(e===n||e.nodeType!==9||!e.documentElement)return n;n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=bi(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=bi(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&bi(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",a.getElementsByClassName("i").length===2}),c.getById=bi(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(bc,bd);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(bc,bd);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){if(typeof b.getElementsByTagName!==C)return b.getElementsByTagName(a)}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(a==="*"){while(c=f[e++])c.nodeType===1&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if(typeof b.getElementsByClassName!==C&&p)return b.getElementsByClassName(a)},r=[],q=[];if(c.qsa=$.test(e.querySelectorAll))bi(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),bi(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")});return(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&bi(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!d&&d.nodeType===1&&!!(c.contains?c.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16)}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,d&1||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:d&4?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return bk(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?bk(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e},bf.matches=function(a,b){return bf(a,null,null,b)},bf.matchesSelector=function(a,b){(a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']");if(c.matchesSelector&&p&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&a.document.nodeType!==11)return d}catch(e){}return bf(b,n,null,[a]).length>0},bf.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},bf.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):undefined;return f!==undefined?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},bf.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},bf.uniqueSort=function(a){var b,d=[],e=0,f=0;l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B);if(l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=bf.getText=function(a){var b,c="",d=0,f=a.nodeType;if(!f)while(b=a[d++])c+=e(b);else if(f===1||f===9||f===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(f===3||f===4)return a.nodeValue;return c},d=bf.selectors={cacheLength:50,createPseudo:bh,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(bc,bd),a[3]=(a[3]||a[4]||a[5]||"").replace(bc,bd),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1].slice(0,3)==="nth"?(a[3]||bf.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(a[3]==="even"||a[3]==="odd")),a[5]=+(a[7]+a[8]||a[3]==="odd")):a[3]&&bf.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(bc,bd).toLowerCase();return a==="*"?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test(typeof a.className=="string"&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=bf.attr(d,a);return e==null?b==="!=":b?(e+="",b==="="?e===c:b==="!="?e!==c:b==="^="?c&&e.indexOf(c)===0:b==="*="?c&&e.indexOf(c)>-1:b==="$="?c&&e.slice(-c.length)===c:b==="~="?(" "+e+" ").indexOf(c)>-1:b==="|="?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f=a.slice(0,3)!=="nth",g=a.slice(-4)!=="last",h=b==="of-type";return d===1&&e===0?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:l.nodeType===1)return!1;o=p=a==="only"&&!o&&"nextSibling"}return!0}o=[g?q.firstChild:q.lastChild];if(g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(l.nodeType===1&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:l.nodeType===1)&&++m){s&&((l[u]||(l[u]={}))[a]=[w,m]);if(l===b)break}return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||bf.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?bh(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:bh(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?bh(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)if(f=g[h])a[h]=!(b[h]=f)}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:bh(function(a){return function(b){return bf(a,b).length>0}}),contains:bh(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:bh(function(a){return W.test(a||"")||bf.error("unsupported lang: "+a),a=a.replace(bc,bd).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||c.indexOf(a+"-")===0;while((b=b.parentNode)&&b.nodeType===1);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},text:function(a){var b;return a.nodeName.toLowerCase()==="input"&&a.type==="text"&&((b=a.getAttribute("type"))==null||b.toLowerCase()==="text")},first:bn(function(){return[0]}),last:bn(function(a,b){return[b-1]}),eq:bn(function(a,b,c){return[c<0?c+b:c]}),even:bn(function(a,b){var c=0;for(;c<b;c+=2)a.push(c);return a}),odd:bn(function(a,b){var c=1;for(;c<b;c+=2)a.push(c);return a}),lt:bn(function(a,b,c){var d=c<0?c+b:c;for(;--d>=0;)a.push(d);return a}),gt:bn(function(a,b,c){var d=c<0?c+b:c;for(;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=bl(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=bm(b);return bp.prototype=d.filters=d.pseudos,d.setFilters=new bp,g=bf.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){if(!c||(e=S.exec(h)))e&&(h=h.slice(e[0].length)||h),i.push(f=[]);c=!1;if(e=T.exec(h))c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length);for(g in d.filter)(e=X[g].exec(h))&&(!j[g]||(e=j[g](e)))&&(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?bf.error(a):z(a,i).slice(0)},h=bf.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=bw(b[c]),f[u]?d.push(f):e.push(f);f=A(a,bx(e,d)),f.selector=a}return f},i=bf.select=function(a,b,e,f){var i,j,k,l,m,n=typeof a=="function"&&a,o=!f&&g(a=n.selector||a);e=e||[];if(o.length===1){j=o[0]=o[0].slice(0);if(j.length>2&&(k=j[0]).type==="ID"&&c.getById&&b.nodeType===9&&p&&d.relative[j[1].type]){b=(d.find.ID(k.matches[0].replace(bc,bd),b)||[])[0];if(!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){k=j[i];if(d.relative[l=k.type])break;if(m=d.find[l])if(f=m(k.matches[0].replace(bc,bd),ba.test(j[0].type)&&bo(b.parentNode)||b)){j.splice(i,1),a=f.length&&bq(j);if(!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ba.test(a)&&bo(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=bi(function(a){return a.compareDocumentPosition(n.createElement("div"))&1}),bi(function(a){return a.innerHTML="<a href='#'></a>",a.firstChild.getAttribute("href")==="#"})||bj("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,b.toLowerCase()==="type"?1:2)}),(!c.attributes||!bi(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),a.firstChild.getAttribute("value")===""}))&&bj("value",function(a,b,c){if(!c&&a.nodeName.toLowerCase()==="input")return a.defaultValue}),bi(function(a){return a.getAttribute("disabled")==null})||bj(L,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),bf}(window);jQuery.find=Sizzle,jQuery.expr=Sizzle.selectors,jQuery.expr[":"]=jQuery.expr.pseudos,jQuery.unique=Sizzle.uniqueSort,jQuery.text=Sizzle.getText,jQuery.isXMLDoc=Sizzle.isXML,jQuery.contains=Sizzle.contains;var rneedsContext=jQuery.expr.match.needsContext,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,risSimple=/^.[^:#\[\.,]*$/;jQuery.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),b.length===1&&d.nodeType===1?jQuery.find.matchesSelector(d,a)?[d]:[]:jQuery.find.matches(a,jQuery.grep(b,function(a){return a.nodeType===1}))},jQuery.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if(typeof a!="string")return this.pushStack(jQuery(a).filter(function(){for(b=0;b<c;b++)if(jQuery.contains(e[b],this))return!0}));for(b=0;b<c;b++)jQuery.find(a,e[b],d);return d=this.pushStack(c>1?jQuery.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(winnow(this,a||[],!1))},not:function(a){return this.pushStack(winnow(this,a||[],!0))},is:function(a){return!!winnow(this,typeof a=="string"&&rneedsContext.test(a)?jQuery(a):a||[],!1).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,init=jQuery.fn.init=function(a,b){var c,d;if(!a)return this;if(typeof a=="string"){a[0]==="<"&&a[a.length-1]===">"&&a.length>=3?c=[null,a,null]:c=rquickExpr.exec(a);if(c&&(c[1]||!b)){if(c[1]){b=b instanceof jQuery?b[0]:b,jQuery.merge(this,jQuery.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:document,!0));if(rsingleTag.test(c[1])&&jQuery.isPlainObject(b))for(c in b)jQuery.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=document.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=document,this.selector=a,this}return!b||b.jquery?(b||rootjQuery).find(a):this.constructor(b).find(a)}return a.nodeType?(this.context=this[0]=a,this.length=1,this):jQuery.isFunction(a)?typeof rootjQuery.ready!="undefined"?rootjQuery.ready(a):a(jQuery):(a.selector!==undefined&&(this.selector=a.selector,this.context=a.context),jQuery.makeArray(a,this))};init.prototype=jQuery.fn,rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};jQuery.extend({dir:function(a,b,c){var d=[],e=c!==undefined;while((a=a[b])&&a.nodeType!==9)if(a.nodeType===1){if(e&&jQuery(a).is(c))break;d.push(a)}return d},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}}),jQuery.fn.extend({has:function(a){var b=jQuery(a,this),c=b.length;return this.filter(function(){var a=0;for(;a<c;a++)if(jQuery.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g=rneedsContext.test(a)||typeof a!="string"?jQuery(a,b||this.context):0;for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:c.nodeType===1&&jQuery.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?jQuery.unique(f):f)},index:function(a){return a?typeof a=="string"?indexOf.call(jQuery(a),this[0]):indexOf.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),jQuery(a,b))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),jQuery.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return jQuery.dir(a,"parentNode")},parentsUntil:function(a,b,c){return jQuery.dir(a,"parentNode",c)},next:function(a){return sibling(a,"nextSibling")},prev:function(a){return sibling(a,"previousSibling")},nextAll:function(a){return jQuery.dir(a,"nextSibling")},prevAll:function(a){return jQuery.dir(a,"previousSibling")},nextUntil:function(a,b,c){return jQuery.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return jQuery.dir(a,"previousSibling",c)},siblings:function(a){return jQuery.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return jQuery.sibling(a.firstChild)},contents:function(a){return a.contentDocument||jQuery.merge([],a.childNodes)}},function(a,b){jQuery.fn[a]=function(c,d){var e=jQuery.map(this,b,c);return a.slice(-5)!=="Until"&&(d=c),d&&typeof d=="string"&&(e=jQuery.filter(d,e)),this.length>1&&(guaranteedUnique[a]||jQuery.unique(e),rparentsprev.test(a)&&e.reverse()),this.pushStack(e)}});var rnotwhite=/\S+/g,optionsCache={};jQuery.Callbacks=function(a){a=typeof a=="string"?optionsCache[a]||createOptions(a):jQuery.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;for(;h&&g<f;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;(function g(b){jQuery.each(b,function(b,c){var d=jQuery.type(c);d==="function"?(!a.unique||!k.has(c))&&h.push(c):c&&c.length&&d!=="string"&&g(c)})})(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&jQuery.each(arguments,function(a,b){var c;while((c=jQuery.inArray(b,h,c))>-1)h.splice(c,1),d&&(c<=f&&f--,c<=g&&g--)}),this},has:function(a){return a?jQuery.inArray(a,h)>-1:!!h&&!!h.length},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=undefined,this},disabled:function(){return!h},lock:function(){return i=undefined,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return h&&(!c||i)&&(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},jQuery.extend({Deferred:function(a){var b=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return jQuery.Deferred(function(c){jQuery.each(b,function(b,f){var g=jQuery.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&jQuery.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return a!=null?jQuery.extend(a,d):d}},e={};return d.pipe=d.then,jQuery.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=slice.call(arguments),d=c.length,e=d!==1||a&&jQuery.isFunction(a.promise)?d:0,f=e===1?a:jQuery.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?slice.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b<d;b++)c[b]&&jQuery.isFunction(c[b].promise)?c[b].promise().done(g(b,j,c)).fail(f.reject).progress(g(b,i,h)):--e}return e||f.resolveWith(j,c),f.promise()}});var readyList;jQuery.fn.ready=function(a){return jQuery.ready.promise().done(a),this},jQuery.extend({isReady:!1,readyWait:1,holdReady:function(a){a?jQuery.readyWait++:jQuery.ready(!0)},ready:function(a){if(a===!0?--jQuery.readyWait:jQuery.isReady)return;jQuery.isReady=!0;if(a!==!0&&--jQuery.readyWait>0)return;readyList.resolveWith(document,[jQuery]),jQuery.fn.triggerHandler&&(jQuery(document).triggerHandler("ready"),jQuery(document).off("ready"))}}),jQuery.ready.promise=function(a){return readyList||(readyList=jQuery.Deferred(),document.readyState==="complete"?setTimeout(jQuery.ready):(document.addEventListener("DOMContentLoaded",completed,!1),window.addEventListener("load",completed,!1))),readyList.promise(a)},jQuery.ready.promise();var access=jQuery.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=c==null;if(jQuery.type(c)==="object"){e=!0;for(h in c)jQuery.access(a,b,h,c[h],!0,f,g)}else if(d!==undefined){e=!0,jQuery.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(jQuery(a),c)}));if(b)for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)))}return e?a:j?b.call(a):i?b(a[0],c):f};jQuery.acceptData=function(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType},Data.uid=1,Data.accepts=jQuery.acceptData,Data.prototype={key:function(a){if(!Data.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=Data.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,jQuery.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if(typeof b=="string")f[b]=c;else if(jQuery.isEmptyObject(f))jQuery.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return b===undefined?c:c[b]},access:function(a,b,c){var d;return b===undefined||b&&typeof b=="string"&&c===undefined?(d=this.get(a,b),d!==undefined?d:this.get(a,jQuery.camelCase(b))):(this.set(a,b,c),c!==undefined?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(b===undefined)this.cache[f]={};else{jQuery.isArray(b)?d=b.concat(b.map(jQuery.camelCase)):(e=jQuery.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(rnotwhite)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!jQuery.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var data_priv=new Data,data_user=new Data,rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/([A-Z])/g;jQuery.extend({hasData:function(a){return data_user.hasData(a)||data_priv.hasData(a)},data:function(a,b,c){return data_user.access(a,b,c)},removeData:function(a,b){data_user.remove(a,b)},_data:function(a,b,c){return data_priv.access(a,b,c)},_removeData:function(a,b){data_priv.remove(a,b)}}),jQuery.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(a===undefined){if(this.length){e=data_user.get(f);if(f.nodeType===1&&!data_priv.get(f,"hasDataAttrs")){c=g.length;while(c--)g[c]&&(d=g[c].name,d.indexOf("data-")===0&&(d=jQuery.camelCase(d.slice(5)),dataAttr(f,d,e[d])));data_priv.set(f,"hasDataAttrs",!0)}}return e}return typeof a=="object"?this.each(function(){data_user.set(this,a)}):access(this,function(b){var c,d=jQuery.camelCase(a);if(f&&b===undefined){c=data_user.get(f,a);if(c!==undefined)return c;c=data_user.get(f,d);if(c!==undefined)return c;c=dataAttr(f,d,undefined);if(c!==undefined)return c;return}this.each(function(){var c=data_user.get(this,d);data_user.set(this,d,b),a.indexOf("-")!==-1&&c!==undefined&&data_user.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){data_user.remove(this,a)})}}),jQuery.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=data_priv.get(a,b),c&&(!d||jQuery.isArray(c)?d=data_priv.access(a,b,jQuery.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=jQuery.queue(a,b),d=c.length,e=c.shift(),f=jQuery._queueHooks(a,b),g=function(){jQuery.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return data_priv.get(a,c)||data_priv.access(a,c,{empty:jQuery.Callbacks("once memory").add(function(){data_priv.remove(a,[b+"queue",c])})})}}),jQuery.fn.extend({queue:function(a,b){var c=2;return typeof a!="string"&&(b=a,a="fx",c--),arguments.length<c?jQuery.queue(this[0],a):b===undefined?this:this.each(function(){var c=jQuery.queue(this,a,b);jQuery._queueHooks(this,a),a==="fx"&&c[0]!=="inprogress"&&jQuery.dequeue(this,a)})},dequeue:function(a){return this.each(function(){jQuery.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=jQuery.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};typeof a!="string"&&(b=a,a=undefined),a=a||"fx";while(g--)c=data_priv.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,cssExpand=["Top","Right","Bottom","Left"],isHidden=function(a,b){return a=b||a,jQuery.css(a,"display")==="none"||!jQuery.contains(a.ownerDocument,a)},rcheckableType=/^(?:checkbox|radio)$/i;(function(){var a=document.createDocumentFragment(),b=a.appendChild(document.createElement("div")),c=document.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),support.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",support.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue})();var strundefined=typeof undefined;support.focusinBubbles="onfocusin"in window;var rkeyEvent=/^key/,rmouseEvent=/^(?:mouse|pointer|contextmenu)|click/,rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,rtypenamespace=/^([^.]*)(?:\.(.+)|)$/;jQuery.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=data_priv.get(a);if(!q)return;c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=jQuery.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return typeof jQuery!==strundefined&&jQuery.event.triggered!==b.type?jQuery.event.dispatch.apply(a,arguments):undefined}),b=(b||"").match(rnotwhite)||[""],j=b.length;while(j--){h=rtypenamespace.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort();if(!n)continue;l=jQuery.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=jQuery.event.special[n]||{},k=jQuery.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&jQuery.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,(!l.setup||l.setup.call(a,d,o,g)===!1)&&a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),jQuery.event.global[n]=!0}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=data_priv.hasData(a)&&data_priv.get(a);if(!q||!(i=q.events))return;b=(b||"").match(rnotwhite)||[""],j=b.length;while(j--){h=rtypenamespace.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort();if(!n){for(n in i)jQuery.event.remove(a,n+b[j],c,d,!0);continue}l=jQuery.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],(e||p===k.origType)&&(!c||c.guid===k.guid)&&(!h||h.test(k.namespace))&&(!d||d===k.selector||d==="**"&&k.selector)&&(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&((!l.teardown||l.teardown.call(a,o,q.handle)===!1)&&jQuery.removeEvent(a,n,q.handle),delete i[n])}jQuery.isEmptyObject(i)&&(delete q.handle,data_priv.remove(a,"events"))},trigger:function(a,b,c,d){var e,f,g,h,i,j,k,l=[c||document],m=hasOwn.call(a,"type")?a.type:a,n=hasOwn.call(a,"namespace")?a.namespace.split("."):[];f=g=c=c||document;if(c.nodeType===3||c.nodeType===8)return;if(rfocusMorph.test(m+jQuery.event.triggered))return;m.indexOf(".")>=0&&(n=m.split("."),m=n.shift(),n.sort()),i=m.indexOf(":")<0&&"on"+m,a=a[jQuery.expando]?a:new jQuery.Event(m,typeof a=="object"&&a),a.isTrigger=d?2:3,a.namespace=n.join("."),a.namespace_re=a.namespace?new RegExp("(^|\\.)"+n.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=undefined,a.target||(a.target=c),b=b==null?[a]:jQuery.makeArray(b,[a]),k=jQuery.event.special[m]||{};if(!d&&k.trigger&&k.trigger.apply(c,b)===!1)return;if(!d&&!k.noBubble&&!jQuery.isWindow(c)){h=k.delegateType||m,rfocusMorph.test(h+m)||(f=f.parentNode);for(;f;f=f.parentNode)l.push(f),g=f;g===(c.ownerDocument||document)&&l.push(g.defaultView||g.parentWindow||window)}e=0;while((f=l[e++])&&!a.isPropagationStopped())a.type=e>1?h:k.bindType||m,j=(data_priv.get(f,"events")||{})[a.type]&&data_priv.get(f,"handle"),j&&j.apply(f,b),j=i&&f[i],j&&j.apply&&jQuery.acceptData(f)&&(a.result=j.apply(f,b),a.result===!1&&a.preventDefault());return a.type=m,!d&&!a.isDefaultPrevented()&&(!k._default||k._default.apply(l.pop(),b)===!1)&&jQuery.acceptData(c)&&i&&jQuery.isFunction(c[m])&&!jQuery.isWindow(c)&&(g=c[i],g&&(c[i]=null),jQuery.event.triggered=m,c[m](),jQuery.event.triggered=undefined,g&&(c[i]=g)),a.result},dispatch:function(a){a=jQuery.event.fix(a);var b,c,d,e,f,g=[],h=slice.call(arguments),i=(data_priv.get(this,"events")||{})[a.type]||[],j=jQuery.event.special[a.type]||{};h[0]=a,a.delegateTarget=this;if(j.preDispatch&&j.preDispatch.call(this,a)===!1)return;g=jQuery.event.handlers.call(this,a,i),b=0;while((e=g[b++])&&!a.isPropagationStopped()){a.currentTarget=e.elem,c=0;while((f=e.handlers[c++])&&!a.isImmediatePropagationStopped())if(!a.namespace_re||a.namespace_re.test(f.namespace))a.handleObj=f,a.data=f.data,d=((jQuery.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),d!==undefined&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation())}return j.postDispatch&&j.postDispatch.call(this,a),a.result},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||a.type!=="click"))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||a.type!=="click"){d=[];for(c=0;c<h;c++)f=b[c],e=f.selector+" ",d[e]===undefined&&(d[e]=f.needsContext?jQuery(e,this).index(i)>=0:jQuery.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return a.pageX==null&&b.clientX!=null&&(c=a.target.ownerDocument||document,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),!a.which&&f!==undefined&&(a.which=f&1?1:f&2?3:f&4?2:0),a}},fix:function(a){if(a[jQuery.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=rmouseEvent.test(e)?this.mouseHooks:rkeyEvent.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new jQuery.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=document),a.target.nodeType===3&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==safeActiveElement()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===safeActiveElement()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&jQuery.nodeName(this,"input"))return this.click(),!1},_default:function(a){return jQuery.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){a.result!==undefined&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=jQuery.extend(new jQuery.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?jQuery.event.trigger(e,null,b):jQuery.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},jQuery.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},jQuery.Event=function(a,b){if(this instanceof jQuery.Event)a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.defaultPrevented===undefined&&a.returnValue===!1?returnTrue:returnFalse):this.type=a,b&&jQuery.extend(this,b),this.timeStamp=a&&a.timeStamp||jQuery.now(),this[jQuery.expando]=!0;else return new jQuery.Event(a,b)},jQuery.Event.prototype={isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=returnTrue,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=returnTrue,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){jQuery.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;if(!e||e!==d&&!jQuery.contains(d,e))a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b;return c}}}),support.focusinBubbles||jQuery.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){jQuery.event.simulate(b,a.target,jQuery.event.fix(a),!0)};jQuery.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=data_priv.access(d,b);e||d.addEventListener(a,c,!0),data_priv.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=data_priv.access(d,b)-1;e?data_priv.access(d,b,e):(d.removeEventListener(a,c,!0),data_priv.remove(d,b))}}}),jQuery.fn.extend({on:function(a,b,c,d,e){var f,g;if(typeof a=="object"){typeof b!="string"&&(c=c||b,b=undefined);for(g in a)this.on(g,b,c,a[g],e);return this}c==null&&d==null?(d=b,c=b=undefined):d==null&&(typeof b=="string"?(d=c,c=undefined):(d=c,c=b,b=undefined));if(d===!1)d=returnFalse;else if(!d)return this;return e===1&&(f=d,d=function(a){return jQuery().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=jQuery.guid++)),this.each(function(){jQuery.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,jQuery(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if(typeof a=="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===!1||typeof b=="function")c=b,b=undefined;return c===!1&&(c=returnFalse),this.each(function(){jQuery.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){jQuery.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return jQuery.event.trigger(a,b,c,!0)}});var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,rtagName=/<([\w:]+)/,rhtml=/<|&#?\w+;/,rnoInnerhtml=/<(?:script|style|link)/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rscriptType=/^$|\/(?:java|ecma)script/i,rscriptTypeMasked=/^true\/(.*)/,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,wrapMap={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,"",""]};wrapMap.optgroup=wrapMap.option,wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td,jQuery.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=jQuery.contains(a.ownerDocument,a);if(!support.noCloneChecked&&(a.nodeType===1||a.nodeType===11)&&!jQuery.isXMLDoc(a)){g=getAll(h),f=getAll(a);for(d=0,e=f.length;d<e;d++)fixInput(f[d],g[d])}if(b)if(c){f=f||getAll(a),g=g||getAll(h);for(d=0,e=f.length;d<e;d++)cloneCopyEvent(f[d],g[d])}else cloneCopyEvent(a,h);return g=getAll(h,"script"),g.length>0&&setGlobalEval(g,!i&&getAll(a,"script")),h},buildFragment:function(a,b,c,d){var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;for(;m<n;m++){e=a[m];if(e||e===0)if(jQuery.type(e)==="object")jQuery.merge(l,e.nodeType?[e]:e);else if(!rhtml.test(e))l.push(b.createTextNode(e));else{f=f||k.appendChild(b.createElement("div")),g=(rtagName.exec(e)||["",""])[1].toLowerCase(),h=wrapMap[g]||wrapMap._default,f.innerHTML=h[1]+e.replace(rxhtmlTag,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;jQuery.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}}k.textContent="",m=0;while(e=l[m++]){if(d&&jQuery.inArray(e,d)!==-1)continue;i=jQuery.contains(e.ownerDocument,e),f=getAll(k.appendChild(e),"script"),i&&setGlobalEval(f);if(c){j=0;while(e=f[j++])rscriptType.test(e.type||"")&&c.push(e)}}return k},cleanData:function(a){var b,c,d,e,f=jQuery.event.special,g=0;for(;(c=a[g])!==undefined;g++){if(jQuery.acceptData(c)){e=c[data_priv.expando];if(e&&(b=data_priv.cache[e])){if(b.events)for(d in b.events)f[d]?jQuery.event.remove(c,d):jQuery.removeEvent(c,d,b.handle);data_priv.cache[e]&&delete data_priv.cache[e]}}delete data_user.cache[c[data_user.expando]]}}}),jQuery.fn.extend({text:function(a){return access(this,function(a){return a===undefined?jQuery.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9)this.textContent=a})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=manipulationTarget(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=manipulationTarget(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){var c,d=a?jQuery.filter(a,this):this,e=0;for(;(c=d[e])!=null;e++)!b&&c.nodeType===1&&jQuery.cleanData(getAll(c)),c.parentNode&&(b&&jQuery.contains(c.ownerDocument,c)&&setGlobalEval(getAll(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++)a.nodeType===1&&(jQuery.cleanData(getAll(a,!1)),a.textContent="");return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return jQuery.clone(this,a,b)})},html:function(a){return access(this,function(a){var b=this[0]||{},c=0,d=this.length;if(a===undefined&&b.nodeType===1)return b.innerHTML;if(typeof a=="string"&&!rnoInnerhtml.test(a)&&!wrapMap[(rtagName.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(rxhtmlTag,"<$1></$2>");try{for(;c<d;c++)b=this[c]||{},b.nodeType===1&&(jQuery.cleanData(getAll(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,jQuery.cleanData(getAll(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=concat.apply([],a);var c,d,e,f,g,h,i=0,j=this.length,k=this,l=j-1,m=a[0],n=jQuery.isFunction(m);if(n||j>1&&typeof m=="string"&&!support.checkClone&&rchecked.test(m))return this.each(function(c){var d=k.eq(c);n&&(a[0]=m.call(this,c,d.html())),d.domManip(a,b)});if(j){c=jQuery.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,c.childNodes.length===1&&(c=d);if(d){e=jQuery.map(getAll(c,"script"),disableScript),f=e.length;for(;i<j;i++)g=c,i!==l&&(g=jQuery.clone(g,!0,!0),f&&jQuery.merge(e,getAll(g,"script"))),b.call(this[i],g,i);if(f){h=e[e.length-1].ownerDocument,jQuery.map(e,restoreScript);for(i=0;i<f;i++)g=e[i],rscriptType.test(g.type||"")&&!data_priv.access(g,"globalEval")&&jQuery.contains(h,g)&&(g.src?jQuery._evalUrl&&jQuery._evalUrl(g.src):jQuery.globalEval(g.textContent.replace(rcleanScript,"")))}}}return this}}),jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){jQuery.fn[a]=function(a){var c,d=[],e=jQuery(a),f=e.length-1,g=0;for(;g<=f;g++)c=g===f?this:this.clone(!0),jQuery(e[g])[b](c),push.apply(d,c.get());return this.pushStack(d)}});var iframe,elemdisplay={},rmargin=/^margin/,rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),getStyles=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};(function(){function f(){e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e.innerHTML="",c.appendChild(d);var f=window.getComputedStyle(e,null);a=f.top!=="1%",b=f.width==="4px",c.removeChild(d)}var a,b,c=document.documentElement,d=document.createElement("div"),e=document.createElement("div");if(!e.style)return;e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle=e.style.backgroundClip==="content-box",d.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",d.appendChild(e),window.getComputedStyle&&jQuery.extend(support,{pixelPosition:function(){return f(),a},boxSizingReliable:function(){return b==null&&f(),b},reliableMarginRight:function(){var a,b=e.appendChild(document.createElement("div"));return b.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",b.style.marginRight=b.style.width="0",e.style.width="1px",c.appendChild(d),a=!parseFloat(window.getComputedStyle(b,null).marginRight),c.removeChild(d),a}})})(),jQuery.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var rdisplayswap=/^(none|table(?!-c[ea]).+)/,rnumsplit=new RegExp("^("+pnum+")(.*)$","i"),rrelNum=new RegExp("^([+-])=("+pnum+")","i"),cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"},cssPrefixes=["Webkit","O","Moz","ms"];jQuery.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=curCSS(a,"opacity");return c===""?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var e,f,g,h=jQuery.camelCase(b),i=a.style;b=jQuery.cssProps[h]||(jQuery.cssProps[h]=vendorPropName(i,h)),g=jQuery.cssHooks[b]||jQuery.cssHooks[h];if(c===undefined)return g&&"get"in g&&(e=g.get(a,!1,d))!==undefined?e:i[b];f=typeof c,f==="string"&&(e=rrelNum.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(jQuery.css(a,b)),f="number");if(c==null||c!==c)return;f==="number"&&!jQuery.cssNumber[h]&&(c+="px"),!support.clearCloneStyle&&c===""&&b.indexOf("background")===0&&(i[b]="inherit");if(!g||!("set"in g)||(c=g.set(a,c,d))!==undefined)i[b]=c},css:function(a,b,c,d){var e,f,g,h=jQuery.camelCase(b);return b=jQuery.cssProps[h]||(jQuery.cssProps[h]=vendorPropName(a.style,h)),g=jQuery.cssHooks[b]||jQuery.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),e===undefined&&(e=curCSS(a,b,d)),e==="normal"&&b in cssNormalTransform&&(e=cssNormalTransform[b]),c===""||c?(f=parseFloat(e),c===!0||jQuery.isNumeric(f)?f||0:e):e}}),jQuery.each(["height","width"],function(a,b){jQuery.cssHooks[b]={get:function(a,c,d){if(c)return rdisplayswap.test(jQuery.css(a,"display"))&&a.offsetWidth===0?jQuery.swap(a,cssShow,function(){return getWidthOrHeight(a,b,d)}):getWidthOrHeight(a,b,d)},set:function(a,c,d){var e=d&&getStyles(a);return setPositiveNumber(a,c,d?augmentWidthOrHeight(a,b,d,jQuery.css(a,"boxSizing",!1,e)==="border-box",e):0)}}}),jQuery.cssHooks.marginRight=addGetHookIf(support.reliableMarginRight,function(a,b){if(b)return jQuery.swap(a,{display:"inline-block"},curCSS,[a,"marginRight"])}),jQuery.each({margin:"",padding:"",border:"Width"},function(a,b){jQuery.cssHooks[a+b]={expand:function(c){var d=0,e={},f=typeof c=="string"?c.split(" "):[c];for(;d<4;d++)e[a+cssExpand[d]+b]=f[d]||f[d-2]||f[0];return e}},rmargin.test(a)||(jQuery.cssHooks[a+b].set=setPositiveNumber)}),jQuery.fn.extend({css:function(a,b){return access(this,function(a,b,c){var d,e,f={},g=0;if(jQuery.isArray(b)){d=getStyles(a),e=b.length;for(;g<e;g++)f[b[g]]=jQuery.css(a,b[g],!1,d);return f}return c!==undefined?jQuery.style(a,b,c):jQuery.css(a,b)},a,b,arguments.length>1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(a){return typeof a=="boolean"?a?this.show():this.hide():this.each(function(){isHidden(this)?jQuery(this).show():jQuery(this).hide()})}}),jQuery.Tween=Tween,Tween.prototype={constructor:Tween,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(jQuery.cssNumber[c]?"":"px")},cur:function(){var a=Tween.propHooks[this.prop];return a&&a.get?a.get(this):Tween.propHooks._default.get(this)},run:function(a){var b,c=Tween.propHooks[this.prop];return this.options.duration?this.pos=b=jQuery.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.propHooks={_default:{get:function(a){var b;return a.elem[a.prop]==null||!!a.elem.style&&a.elem.style[a.prop]!=null?(b=jQuery.css(a.elem,a.prop,""),!b||b==="auto"?0:b):a.elem[a.prop]},set:function(a){jQuery.fx.step[a.prop]?jQuery.fx.step[a.prop](a):a.elem.style&&(a.elem.style[jQuery.cssProps[a.prop]]!=null||jQuery.cssHooks[a.prop])?jQuery.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},jQuery.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},jQuery.fx=Tween.prototype.init,jQuery.fx.step={};var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=rfxnum.exec(b),f=e&&e[3]||(jQuery.cssNumber[a]?"":"px"),g=(jQuery.cssNumber[a]||f!=="px"&&+d)&&rfxnum.exec(jQuery.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,jQuery.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&h!==1&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};jQuery.Animation=jQuery.extend(Animation,{tweener:function(a,b){jQuery.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d<e;d++)c=a[d],tweeners[c]=tweeners[c]||[],tweeners[c].unshift(b)},prefilter:function(a,b){b?animationPrefilters.unshift(a):animationPrefilters.push(a)}}),jQuery.speed=function(a,b,c){var d=a&&typeof a=="object"?jQuery.extend({},a):{complete:c||!c&&b||jQuery.isFunction(a)&&a,duration:a,easing:c&&b||b&&!jQuery.isFunction(b)&&b};d.duration=jQuery.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in jQuery.fx.speeds?jQuery.fx.speeds[d.duration]:jQuery.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";return d.old=d.complete,d.complete=function(){jQuery.isFunction(d.old)&&d.old.call(this),d.queue&&jQuery.dequeue(this,d.queue)},d},jQuery.fn.extend({fadeTo:function(a,b,c,d){return this.filter(isHidden).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=jQuery.isEmptyObject(a),f=jQuery.speed(b,c,d),g=function(){var b=Animation(this,jQuery.extend({},a),f);(e||data_priv.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return typeof a!="string"&&(c=b,b=a,a=undefined),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=a!=null&&a+"queueHooks",f=jQuery.timers,g=data_priv.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&rrun.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem===this&&(a==null||f[e].queue===a)&&(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&jQuery.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=data_priv.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=jQuery.timers,g=d?d.length:0;c.finish=!0,jQuery.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0);for(b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),jQuery.each(["toggle","show","hide"],function(a,b){var c=jQuery.fn[b];jQuery.fn[b]=function(a,d,e){return a==null||typeof a=="boolean"?c.apply(this,arguments):this.animate(genFx(b,!0),a,d,e)}}),jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){jQuery.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),jQuery.timers=[],jQuery.fx.tick=function(){var a,b=0,c=jQuery.timers;fxNow=jQuery.now();for(;b<c.length;b++)a=c[b],!a()&&c[b]===a&&c.splice(b--,1);c.length||jQuery.fx.stop(),fxNow=undefined},jQuery.fx.timer=function(a){jQuery.timers.push(a),a()?jQuery.fx.start():jQuery.timers.pop()},jQuery.fx.interval=13,jQuery.fx.start=function(){timerId||(timerId=setInterval(jQuery.fx.tick,jQuery.fx.interval))},jQuery.fx.stop=function(){clearInterval(timerId),timerId=null},jQuery.fx.speeds={slow:600,fast:200,_default:400},jQuery.fn.delay=function(a,b){return a=jQuery.fx?jQuery.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=document.createElement("input"),b=document.createElement("select"),c=b.appendChild(document.createElement("option"));a.type="checkbox",support.checkOn=a.value!=="",support.optSelected=c.selected,b.disabled=!0,support.optDisabled=!c.disabled,a=document.createElement("input"),a.value="t",a.type="radio",support.radioValue=a.value==="t"}();var nodeHook,boolHook,attrHandle=jQuery.expr.attrHandle;jQuery.fn.extend({attr:function(a,b){return access(this,jQuery.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){jQuery.removeAttr(this,a)})}}),jQuery.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(!a||f===3||f===8||f===2)return;if(typeof a.getAttribute===strundefined)return jQuery.prop(a,b,c);if(f!==1||!jQuery.isXMLDoc(a))b=b.toLowerCase(),d=jQuery.attrHooks[b]||(jQuery.expr.match.bool.test(b)?boolHook:nodeHook);if(c===undefined)return d&&"get"in d&&(e=d.get(a,b))!==null?e:(e=jQuery.find.attr(a,b),e==null?undefined:e);if(c===null)jQuery.removeAttr(a,b);else return d&&"set"in d&&(e=d.set(a,c,b))!==undefined?e:(a.setAttribute(b,c+""),c)},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(rnotwhite);if(f&&a.nodeType===1)while(c=f[e++])d=jQuery.propFix[c]||c,jQuery.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!support.radioValue&&b==="radio"&&jQuery.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),boolHook={set:function(a,b,c){return b===!1?jQuery.removeAttr(a,c):a.setAttribute(c,c),c}},jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(a,b){var c=attrHandle[b]||jQuery.find.attr;attrHandle[b]=function(a,b,d){var e,f;return d||(f=attrHandle[b],attrHandle[b]=e,e=c(a,b,d)!=null?b.toLowerCase():null,attrHandle[b]=f),e}});var rfocusable=/^(?:input|select|textarea|button)$/i;jQuery.fn.extend({prop:function(a,b){return access(this,jQuery.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[jQuery.propFix[a]||a]})}}),jQuery.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(!a||g===3||g===8||g===2)return;return f=g!==1||!jQuery.isXMLDoc(a),f&&(b=jQuery.propFix[b]||b,e=jQuery.propHooks[b]),c!==undefined?e&&"set"in e&&(d=e.set(a,c,b))!==undefined?d:a[b]=c:e&&"get"in e&&(d=e.get(a,b))!==null?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||rfocusable.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),support.optSelected||(jQuery.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this});var rclass=/[\t\r\n\f]/g;jQuery.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=typeof a=="string"&&a,i=0,j=this.length;if(jQuery.isFunction(a))return this.each(function(b){jQuery(this).addClass(a.call(this,b,this.className))});if(h){b=(a||"").match(rnotwhite)||[];for(;i<j;i++){c=this[i],d=c.nodeType===1&&(c.className?(" "+c.className+" ").replace(rclass," "):" ");if(d){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=jQuery.trim(d),c.className!==g&&(c.className=g)}}}return this},removeClass:function(a){var b,c,d,e,f,g,h=arguments.length===0||typeof a=="string"&&a,i=0,j=this.length;if(jQuery.isFunction(a))return this.each(function(b){jQuery(this).removeClass(a.call(this,b,this.className))});if(h){b=(a||"").match(rnotwhite)||[];for(;i<j;i++){c=this[i],d=c.nodeType===1&&(c.className?(" "+c.className+" ").replace(rclass," "):"");if(d){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?jQuery.trim(d):"",c.className!==g&&(c.className=g)}}}return this},toggleClass:function(a,b){var c=typeof a;return typeof b=="boolean"&&c==="string"?b?this.addClass(a):this.removeClass(a):jQuery.isFunction(a)?this.each(function(c){jQuery(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var b,d=0,e=jQuery(this),f=a.match(rnotwhite)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else if(c===strundefined||c==="boolean")this.className&&data_priv.set(this,"__className__",this.className),this.className=this.className||a===!1?"":data_priv.get(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(rclass," ").indexOf(b)>=0)return!0;return!1}});var rreturn=/\r/g;jQuery.fn.extend({val:function(a){var b,c,d,e=this[0];if(!arguments.length){if(e)return b=jQuery.valHooks[e.type]||jQuery.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&(c=b.get(e,"value"))!==undefined?c:(c=e.value,typeof c=="string"?c.replace(rreturn,""):c==null?"":c);return}return d=jQuery.isFunction(a),this.each(function(c){var e;if(this.nodeType!==1)return;d?e=a.call(this,c,jQuery(this).val()):e=a,e==null?e="":typeof e=="number"?e+="":jQuery.isArray(e)&&(e=jQuery.map(e,function(a){return a==null?"":a+""})),b=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];if(!b||!("set"in b)||b.set(this,e,"value")===undefined)this.value=e})}}),jQuery.extend({valHooks:{option:{get:function(a){var b=jQuery.find.attr(a,"value");return b!=null?b:jQuery.trim(jQuery.text(a))}},select:{get:function(a){var b,c,d=a.options,e=a.selectedIndex,f=a.type==="select-one"||e<0,g=f?null:[],h=f?e+1:d.length,i=e<0?h:f?e:0;for(;i<h;i++){c=d[i];if((c.selected||i===e)&&(support.optDisabled?!c.disabled:c.getAttribute("disabled")===null)&&(!c.parentNode.disabled||!jQuery.nodeName(c.parentNode,"optgroup"))){b=jQuery(c).val();if(f)return b;g.push(b)}}return g},set:function(a,b){var c,d,e=a.options,f=jQuery.makeArray(b),g=e.length;while(g--){d=e[g];if(d.selected=jQuery.inArray(d.value,f)>=0)c=!0}return c||(a.selectedIndex=-1),f}}}}),jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function(a,b){if(jQuery.isArray(b))return a.checked=jQuery.inArray(jQuery(a).val(),b)>=0}},support.checkOn||(jQuery.valHooks[this].get=function(a){return a.getAttribute("value")===null?"on":a.value})}),jQuery.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){jQuery.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),jQuery.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length===1?this.off(a,"**"):this.off(b,a||"**",c)}});var nonce=jQuery.now(),rquery=/\?/;jQuery.parseJSON=function(a){return JSON.parse(a+"")},jQuery.parseXML=function(a){var b,c;if(!a||typeof a!="string")return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=undefined}return(!b||b.getElementsByTagName("parsererror").length)&&jQuery.error("Invalid XML: "+a),b};var ajaxLocParts,ajaxLocation,rhash=/#.*$/,rts=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,rurl=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,prefilters={},transports={},allTypes="*/".concat("*");try{ajaxLocation=location.href}catch(e){ajaxLocation=document.createElement("a"),ajaxLocation.href="",ajaxLocation=ajaxLocation.href}ajaxLocParts=rurl.exec(ajaxLocation.toLowerCase())||[],jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?ajaxExtend(ajaxExtend(a,jQuery.ajaxSettings),b):ajaxExtend(jQuery.ajaxSettings,a)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(a,b){function w(a,b,f,h){var j,q,r,t,v,w=b;if(s===2)return;s=2,g&&clearTimeout(g),c=undefined,e=h||"",u.readyState=a>0?4:0,j=a>=200&&a<300||a===304,f&&(t=ajaxHandleResponses(k,u,f)),t=ajaxConvert(k,t,u,j);if(j)k.ifModified&&(v=u.getResponseHeader("Last-Modified"),v&&(jQuery.lastModified[d]=v),v=u.getResponseHeader("etag"),v&&(jQuery.etag[d]=v)),a===204||k.type==="HEAD"?w="nocontent":a===304?w="notmodified":(w=t.state,q=t.data,r=t.error,j=!r);else{r=w;if(a||!w)w="error",a<0&&(a=0)}u.status=a,u.statusText=(b||w)+"",j?n.resolveWith(l,[q,w,u]):n.rejectWith(l,[u,w,r]),u.statusCode(p),p=undefined,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[u,k,j?q:r]),o.fireWith(l,[u,w]),i&&(m.trigger("ajaxComplete",[u,k]),--jQuery.active||jQuery.event.trigger("ajaxStop"))}typeof a=="object"&&(b=a,a=undefined),b=b||{};var c,d,e,f,g,h,i,j,k=jQuery.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?jQuery(l):jQuery.event,n=jQuery.Deferred(),o=jQuery.Callbacks("once memory"),p=k.statusCode||{},q={},r={},s=0,t="canceled",u={readyState:0,getResponseHeader:function(a){var b;if(s===2){if(!f){f={};while(b=rheaders.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return b==null?null:b},getAllResponseHeaders:function(){return s===2?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return s||(a=r[c]=r[c]||a,q[a]=b),this},overrideMimeType:function(a){return s||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(s<2)for(b in a)p[b]=[p[b],a[b]];else u.always(a[u.status]);return this},abort:function(a){var b=a||t;return c&&c.abort(b),w(0,b),this}};n.promise(u).complete=o.add,u.success=u.done,u.error=u.fail,k.url=((a||k.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=jQuery.trim(k.dataType||"*").toLowerCase().match(rnotwhite)||[""],k.crossDomain==null&&(h=rurl.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ajaxLocParts[1]&&h[2]===ajaxLocParts[2]&&(h[3]||(h[1]==="http:"?"80":"443"))===(ajaxLocParts[3]||(ajaxLocParts[1]==="http:"?"80":"443")))),k.data&&k.processData&&typeof k.data!="string"&&(k.data=jQuery.param(k.data,k.traditional)),inspectPrefiltersOrTransports(prefilters,k,b,u);if(s===2)return u;i=k.global,i&&jQuery.active++===0&&jQuery.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!rnoContent.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(rquery.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=rts.test(d)?d.replace(rts,"$1_="+nonce++):d+(rquery.test(d)?"&":"?")+"_="+nonce++)),k.ifModified&&(jQuery.lastModified[d]&&u.setRequestHeader("If-Modified-Since",jQuery.lastModified[d]),jQuery.etag[d]&&u.setRequestHeader("If-None-Match",jQuery.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&u.setRequestHeader("Content-Type",k.contentType),u.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+(k.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)u.setRequestHeader(j,k.headers[j]);if(!k.beforeSend||k.beforeSend.call(l,u,k)!==!1&&s!==2){t="abort";for(j in{success:1,error:1,complete:1})u[j](k[j]);c=inspectPrefiltersOrTransports(transports,k,b,u);if(!c)w(-1,"No Transport");else{u.readyState=1,i&&m.trigger("ajaxSend",[u,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){u.abort("timeout")},k.timeout));try{s=1,c.send(q,w)}catch(v){if(s<2)w(-1,v);else throw v}}return u}return u.abort()},getJSON:function(a,b,c){return jQuery.get(a,b,c,"json")},getScript:function(a,b){return jQuery.get(a,undefined,b,"script")}}),jQuery.each(["get","post"],function(a,b){jQuery[b]=function(a,c,d,e){return jQuery.isFunction(c)&&(e=e||d,d=c,c=undefined),jQuery.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){jQuery.fn[b]=function(a){return this.on(b,a)}}),jQuery._evalUrl=function(a){return jQuery.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},jQuery.fn.extend({wrapAll:function(a){var b;return jQuery.isFunction(a)?this.each(function(b){jQuery(this).wrapAll(a.call(this,b))}):(this[0]&&(b=jQuery(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return jQuery.isFunction(a)?this.each(function(b){jQuery(this).wrapInner(a.call(this,b))}):this.each(function(){var b=jQuery(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=jQuery.isFunction(a);return this.each(function(c){jQuery(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){jQuery.nodeName(this,"body")||jQuery(this).replaceWith(this.childNodes)}).end()}}),jQuery.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},jQuery.expr.filters.visible=function(a){return!jQuery.expr.filters.hidden(a)};var r20=/%20/g,rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;jQuery.param=function(a,b){var c,d=[],e=function(a,b){b=jQuery.isFunction(b)?b():b==null?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===undefined&&(b=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional);if(jQuery.isArray(a)||a.jquery&&!jQuery.isPlainObject(a))jQuery.each(a,function(){e(this.name,this.value)});else for(c in a)buildParams(c,a[c],b,e);return d.join("&").replace(r20,"+")},jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=jQuery.prop(this,"elements");return a?jQuery.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(a)&&(this.checked||!rcheckableType.test(a))}).map(function(a,b){var c=jQuery(this).val();return c==null?null:jQuery.isArray(c)?jQuery.map(c,function(a){return{name:b.name,value:a.replace(rCRLF,"\r\n")}}):{name:b.name,value:c.replace(rCRLF,"\r\n")}}).get()}}),jQuery.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var xhrId=0,xhrCallbacks={},xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr();window.ActiveXObject&&jQuery(window).on("unload",function(){for(var a in xhrCallbacks)xhrCallbacks[a]()}),support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,support.ajax=xhrSupported=!!xhrSupported,jQuery.ajaxTransport(function(a){var b;if(support.cors||xhrSupported&&!a.crossDomain)return{send:function(c,d){var e,f=a.xhr(),g=++xhrId;f.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),!a.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete xhrCallbacks[g],b=f.onload=f.onerror=null,a==="abort"?f.abort():a==="error"?d(f.status,f.statusText):d(xhrSuccessStatus[f.status]||f.status,f.statusText,typeof f.responseText=="string"?{text:f.responseText}:undefined,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=xhrCallbacks[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}}),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return jQuery.globalEval(a),a}}}),jQuery.ajaxPrefilter("script",function(a){a.cache===undefined&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),jQuery.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=jQuery("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e(a.type==="error"?404:200,a.type)}),document.head.appendChild(b[0])},abort:function(){c&&c()}}}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=oldCallbacks.pop()||jQuery.expando+"_"+nonce++;return this[a]=!0,a}}),jQuery.ajaxPrefilter("json jsonp",function(a,b,c){var d,e,f,g=a.jsonp!==!1&&(rjsonp.test(a.url)?"url":typeof a.data=="string"&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(a.data)&&"data");if(g||a.dataTypes[0]==="jsonp")return d=a.jsonpCallback=jQuery.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g?a[g]=a[g].replace(rjsonp,"$1"+d):a.jsonp!==!1&&(a.url+=(rquery.test(a.url)?"&":"?")+a.jsonp+"="+d),a.converters["script json"]=function(){return f||jQuery.error(d+" was not called"),f[0]},a.dataTypes[0]="json",e=window[d],window[d]=function(){f=arguments},c.always(function(){window[d]=e,a[d]&&(a.jsonpCallback=b.jsonpCallback,oldCallbacks.push(d)),f&&jQuery.isFunction(e)&&e(f[0]),f=e=undefined}),"script"}),jQuery.parseHTML=function(a,b,c){if(!a||typeof a!="string")return null;typeof b=="boolean"&&(c=b,b=!1),b=b||document;var d=rsingleTag.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=jQuery.buildFragment([a],b,e),e&&e.length&&jQuery(e).remove(),jQuery.merge([],d.childNodes))};var _load=jQuery.fn.load;jQuery.fn.load=function(a,b,c){if(typeof a!="string"&&_load)return _load.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=jQuery.trim(a.slice(h)),a=a.slice(0,h)),jQuery.isFunction(b)?(c=b,b=undefined):b&&typeof b=="object"&&(e="POST"),g.length>0&&jQuery.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?jQuery("<div>").append(jQuery.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},jQuery.expr.filters.animated=function(a){return jQuery.grep(jQuery.timers,function(b){return a===b.elem}).length};var docElem=window.document.documentElement;jQuery.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=jQuery.css(a,"position"),l=jQuery(a),m={};k==="static"&&(a.style.position="relative"),h=l.offset(),f=jQuery.css(a,"top"),i=jQuery.css(a,"left"),j=(k==="absolute"||k==="fixed")&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),jQuery.isFunction(b)&&(b=b.call(a,c,h)),b.top!=null&&(m.top=b.top-h.top+g),b.left!=null&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},jQuery.fn.extend({offset:function(a){if(arguments.length)return a===undefined?this:this.each(function(b){jQuery.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(!f)return;return b=f.documentElement,jQuery.contains(b,d)?(typeof d.getBoundingClientRect!==strundefined&&(e=d.getBoundingClientRect()),c=getWindow(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(!this[0])return;var a,b,c=this[0],d={top:0,left:0};return jQuery.css(c,"position")==="fixed"?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),jQuery.nodeName(a[0],"html")||(d=a.offset()),d.top+=jQuery.css(a[0],"borderTopWidth",!0),d.left+=jQuery.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-jQuery.css(c,"marginTop",!0),left:b.left-d.left-jQuery.css(c,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||docElem;while(a&&!jQuery.nodeName(a,"html")&&jQuery.css(a,"position")==="static")a=a.offsetParent;return a||docElem})}}),jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;jQuery.fn[a]=function(d){return access(this,function(a,d,e){var f=getWindow(a);if(e===undefined)return f?f[b]:a[d];f?f.scrollTo(c?window.pageXOffset:e,c?e:window.pageYOffset):a[d]=e},a,d,arguments.length,null)}}),jQuery.each(["top","left"],function(a,b){jQuery.cssHooks[b]=addGetHookIf(support.pixelPosition,function(a,c){if(c)return c=curCSS(a,b),rnumnonpx.test(c)?jQuery(a).position()[b]+"px":c})}),jQuery.each({Height:"height",Width:"width"},function(a,b){jQuery.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){jQuery.fn[d]=function(d,e){var f=arguments.length&&(c||typeof d!="boolean"),g=c||(d===!0||e===!0?"margin":"border");return access(this,function(b,c,d){var e;return jQuery.isWindow(b)?b.document.documentElement["client"+a]:b.nodeType===9?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):d===undefined?jQuery.css(b,c,g):jQuery.style(b,c,d,g)},b,f?d:undefined,f,null)}})}),jQuery.fn.size=function(){return this.length},jQuery.fn.andSelf=jQuery.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return jQuery});var _jQuery=window.jQuery,_$=window.$;return jQuery.noConflict=function(a){return window.$===jQuery&&(window.$=_$),a&&window.jQuery===jQuery&&(window.jQuery=_jQuery),jQuery},typeof noGlobal===strundefined&&(window.jQuery=window.$=jQuery),jQuery})
  ;((function(){function cM(a,b){return a.set(b[0],b[1]),a}function cN(a,b){return a.add(b),a}function cO(a,b,c){var d=c?c.length:0;switch(d){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)}function cP(a,b){var c=-1,d=a.length,e=-1,f=b.length,g=Array(d+f);while(++c<d)g[c]=a[c];while(++e<f)g[c++]=b[e];return g}function cQ(a,b){var c=-1,d=a.length;while(++c<d)if(b(a[c],c,a)===!1)break;return a}function cR(a,b){var c=a.length;while(c--)if(b(a[c],c,a)===!1)break;return a}function cS(a,b){var c=-1,d=a.length;while(++c<d)if(!b(a[c],c,a))return!1;return!0}function cT(a,b){var c=-1,d=a.length,e=-1,f=[];while(++c<d){var g=a[c];b(g,c,a)&&(f[++e]=g)}return f}function cU(a,b){return!!a.length&&dc(a,b,0)>-1}function cV(a,b,c){var d=-1,e=a.length;while(++d<e)if(c(b,a[d]))return!0;return!1}function cW(a,b){var c=-1,d=a.length,e=Array(d);while(++c<d)e[c]=b(a[c],c,a);return e}function cX(a,b){var c=-1,d=b.length,e=a.length;while(++c<d)a[e+c]=b[c];return a}function cY(a,b,c,d){var e=-1,f=a.length;d&&f&&(c=a[++e]);while(++e<f)c=b(c,a[e],e,a);return c}function cZ(a,b,c,d){var e=a.length;d&&e&&(c=a[--e]);while(e--)c=b(c,a[e],e,a);return c}function c$(a,b){var c=-1,d=a.length;while(++c<d)if(b(a[c],c,a))return!0;return!1}function c_(b,c,d){var e=-1,f=b.length;while(++e<f){var g=b[e],h=c(g);if(h!=null&&(i===a?h===h:d(h,i)))var i=h,j=g}return j}function da(a,b,c,d){var e;return c(a,function(a,c,f){if(b(a,c,f))return e=d?c:a,!1}),e}function db(a,b,c){var d=a.length,e=c?d:-1;while(c?e--:++e<d)if(b(a[e],e,a))return e;return-1}function dc(a,b,c){if(b!==b)return dt(a,c);var d=c-1,e=a.length;while(++d<e)if(a[d]===b)return d;return-1}function dd(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function de(a,b){var c=a.length;a.sort(b);while(c--)a[c]=a[c].value;return a}function df(b,c){var d,e=-1,f=b.length;while(++e<f){var g=c(b[e]);g!==a&&(d=d===a?g:d+g)}return d}function dg(a,b){var c=-1,d=Array(a);while(++c<a)d[c]=b(c);return d}function dh(a,b){return cW(b,function(b){return[b,a[b]]})}function di(a){return function(b){return a(b)}}function dj(a,b){return cW(b,function(b){return a[b]})}function dk(a,b){var c=-1,d=a.length;while(++c<d&&dc(b,a[c],0)>-1);return c}function dl(a,b){var c=a.length;while(c--&&dc(b,a[c],0)>-1);return c}function dm(a){return a&&a.Object===Object?a:null}function dn(b,c){if(b!==c){var d=b===null,e=b===a,f=b===b,g=c===null,h=c===a,i=c===c;if(b>c&&!g||!f||d&&!h&&i||e&&i)return 1;if(b<c&&!d||!i||g&&!e&&f||h&&f)return-1}return 0}function dp(a,b,c){var d=-1,e=a.criteria,f=b.criteria,g=e.length,h=c.length;while(++d<g){var i=dn(e[d],f[d]);if(i){if(d>=h)return i;var j=c[d];return i*(j=="desc"?-1:1)}}return a.index-b.index}function dq(a){return cx[a]}function dr(a){return cy[a]}function ds(a){return"\\"+cB[a]}function dt(a,b,c){var d=a.length,e=b+(c?0:-1);while(c?e--:++e<d){var f=a[e];if(f!==f)return e}return-1}function du(a){var b=!1;if(a!=null&&typeof a.toString!="function")try{b=!!(a+"")}catch(c){}return b}function dv(a,b){return a=typeof a=="number"||bD.test(a)?+a:-1,b=b==null?z:b,a>-1&&a%1==0&&a<b}function dw(a){var b,c=[];while(!(b=a.next()).done)c.push(b.value);return c}function dx(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c}function dy(a,b){var c=-1,d=a.length,e=-1,f=[];while(++c<d)a[c]===b&&(a[c]=F,f[++e]=c);return f}function dz(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=a}),c}function dA(a){if(!a||!cp.test(a))return a.length;var b=co.lastIndex=0;while(co.test(a))b++;return b}function dB(a){return a.match(co)}function dC(a){return cz[a]}function dD(U){function cJ(a){if(ji(a)&&!iV(a)&&!(a instanceof dF)){if(a instanceof dm)return a;if(bO.call(a,"__wrapped__"))return gy(a)}return new dm(a)}function cK(){}function dm(b,c){this.__wrapped__=b,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=a}function dF(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=C,this.__views__=[]}function dG(){var a=new dF(this.__wrapped__);return a.__actions__=fy(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=fy(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=fy(this.__views__),a}function dH(){if(this.__filtered__){var a=new dF(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function dI(){var a=this.__wrapped__.value(),b=this.__dir__,c=iV(a),d=b<0,e=c?a.length:0,f=ge(0,e,this.__views__),g=f.start,h=f.end,i=h-g,j=d?h:g-1,k=this.__iteratees__,l=k.length,m=0,n=cj(i,this.__takeCount__);if(!c||e<s||e==i&&n==i)return fo(a,this.__actions__);var o=[];p:while(i--&&m<n){j+=b;var q=-1,r=a[j];while(++q<l){var v=k[q],w=v.iteratee,x=v.type,y=w(r);if(x==u)r=y;else if(!y){if(x==t)continue p;break p}}o[m++]=r}return o}function dJ(){}function dK(a,b){return dM(a,b)&&delete a[b]}function dL(b,c){if(cz){var d=b[c];return d===x?a:d}return bO.call(b,c)?b[c]:a}function dM(b,c){return cz?b[c]!==a:bO.call(b,c)}function dN(b,c,d){b[c]=cz&&d===a?x:d}function dO(a){var b=-1,c=a?a.length:0;this.clear();while(++b<c){var d=a[b];this.set(d[0],d[1])}}function dP(){this.__data__={hash:new dJ,map:co?new co:[],string:new dJ}}function dQ(a){var b=this.__data__;return gm(a)?dK(typeof a=="string"?b.string:b.hash,a):co?b.map["delete"](a):eb(b.map,a)}function dR(a){var b=this.__data__;return gm(a)?dL(typeof a=="string"?b.string:b.hash,a):co?b.map.get(a):ec(b.map,a)}function dS(a){var b=this.__data__;return gm(a)?dM(typeof a=="string"?b.string:b.hash,a):co?b.map.has(a):ed(b.map,a)}function dT(a,b){var c=this.__data__;return gm(a)?dN(typeof a=="string"?c.string:c.hash,a,b):co?c.map.set(a,b):ef(c.map,a,b),this}function dU(a){var b=-1,c=a?a.length:0;this.__data__=new dO;while(++b<c)this.push(a[b])}function dV(a,b){var c=a.__data__;if(gm(b)){var d=c.__data__,e=typeof b=="string"?d.string:d.hash;return e[b]===x}return c.has(b)}function dW(a){var b=this.__data__;if(gm(a)){var c=b.__data__,d=typeof a=="string"?c.string:c.hash;d[a]=x}else b.set(a,x)}function dX(a){var b=-1,c=a?a.length:0;this.clear();while(++b<c){var d=a[b];this.set(d[0],d[1])}}function dY(){this.__data__={array:[],map:null}}function dZ(a){var b=this.__data__,c=b.array;return c?eb(c,a):b.map["delete"](a)}function d$(a){var b=this.__data__,c=b.array;return c?ec(c,a):b.map.get(a)}function d_(a){var b=this.__data__,c=b.array;return c?ed(c,a):b.map.has(a)}function ea(a,b){var c=this.__data__,d=c.array;d&&(d.length<s-1?ef(d,a,b):(c.array=null,c.map=new dO(d)));var e=c.map;return e&&e.set(a,b),this}function eb(a,b){var c=ee(a,b);if(c<0)return!1;var d=a.length-1;return c==d?a.pop():cc.call(a,c,1),!0}function ec(b,c){var d=ee(b,c);return d<0?a:b[d][1]}function ed(a,b){return ee(a,b)>-1}function ee(a,b){var c=a.length;while(c--)if(iR(a[c][0],b))return c;return-1}function ef(a,b,c){var d=ee(a,b);d<0?a.push([b,c]):a[d][1]=c}function eg(b,c,d,e){return b===a||iR(b,bM[d])&&!bO.call(e,d)?c:b}function eh(b,c,d){if(d!==a&&!iR(b[c],d)||typeof c=="number"&&d===a&&!(c in b))b[c]=d}function ei(b,c,d){var e=b[c];if(!iR(e,d)||iR(e,bM[c])&&!bO.call(b,c)||d===a&&!(c in b))b[c]=d}function ej(a,b){return a&&fz(b,j_(b),a)}function ek(b,c){var d=-1,e=b==null,f=c.length,g=Array(f);while(++d<f)g[d]=e?a:jW(b,c[d]);return g}function el(b,c,d){return b===b&&(d!==a&&(b=b<=d?b:d),c!==a&&(b=b>=c?b:c)),b}function em(b,c,d,e,f,g){var h;d&&(h=f?d(b,e,f,g):d(b));if(h!==a)return h;if(!jh(b))return b;var i=iV(b);if(i){h=gg(b);if(!c)return fy(b,h)}else{var j=gd(b),k=j==L||j==M;if(!(j==P||j==G||k&&!f))return cw[j]?gi(b,j,c):f?b:{};if(du(b))return f?b:{};h=gh(k?{}:b);if(!c)return fB(b,ej(h,b))}g||(g=new dX);var l=g.get(b);return l?l:(g.set(b,h),(i?cQ:eA)(b,function(a,e){ei(h,e,em(a,c,d,e,b,g))}),i?h:fB(b,h))}function en(b){var c=j_(b),d=c.length;return function(e){if(e==null)return!d;var f=d;while(f--){var g=c[f],h=b[g],i=e[g];if(i===a&&!(g in Object(e))||!h(i))return!1}return!0}}function ep(b,c,d){if(typeof b!="function")throw new bK(w);return cb(function(){b.apply(a,d)},c)}function eq(a,b,c,d){var e=-1,f=cU,g=!0,h=a.length,i=[],j=b.length;if(!h)return i;c&&(b=cW(b,di(c))),d?(f=cV,g=!1):b.length>=s&&(f=dV,g=!1,b=new dU(b));k:while(++e<h){var l=a[e],m=c?c(l):l;if(g&&m===m){var n=j;while(n--)if(b[n]===m)continue k;i.push(l)}else f(b,m,d)||i.push(l)}return i}function et(a,b){var c=!0;return er(a,function(a,d,e){return c=!!b(a,d,e),c}),c}function eu(b,c,d,e){var f=b.length;d=jA(d),d<0&&(d=-d>f?0:f+d),e=e===a||e>f?f:jA(e),e<0&&(e+=f),e=d>e?0:jB(e);while(d<e)b[d++]=c;return b}function ev(a,b){var c=[];return er(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c}function ew(a,b,c,d){d||(d=[]);var e=-1,f=a.length;while(++e<f){var g=a[e];iX(g)&&(c||iV(g)||iU(g))?b?ew(g,b,c,d):cX(d,g):c||(d[d.length]=g)}return d}function ez(a,b){return a==null?a:ex(a,b,ka)}function eA(a,b){return a&&ex(a,b,j_)}function eB(a,b){return a&&ey(a,b,j_)}function eC(a,b){return cT(b,function(b){return je(a[b])})}function eD(b,c){c=gl(c,b)?[c+""]:fk(c);var d=0,e=c.length;while(b!=null&&d<e)b=b[c[d++]];return d&&d==e?b:a}function eE(a,b){return bO.call(a,b)||typeof a=="object"&&b in a&&bZ(a)===null}function eF(a,b){return b in Object(a)}function eG(a,b,c){return a>=cj(b,c)&&a<ci(b,c)}function eH(b,c,d){var e=d?cV:cU,f=b.length,g=f,h=Array(f),i=[];while(g--){var j=b[g];g&&c&&(j=cW(j,di(c))),h[g]=!d&&(c||j.length>=120)?new dU(g&&j):a}j=b[0];var k=-1,l=j.length,m=h[0];n:while(++k<l){var o=j[k],p=c?c(o):o;if(m?!dV(m,p):!e(i,p,d)){var g=f;while(--g){var q=h[g];if(q?!dV(q,p):!e(b[g],p,d))continue n}m&&m.push(p),i.push(o)}}return i}function eI(b,c,d){gl(c,b)||(c=fk(c),b=gs(b,c),c=gX(c));var e=b==null?b:b[c];return e==null?a:cO(e,b,d)}function eJ(a,b,c,d,e){return a===b?!0:a==null||b==null||!jh(a)&&!ji(b)?a!==a&&b!==b:eK(a,b,eJ,c,d,e)}function eK(a,b,c,d,e,f){var g=iV(a),h=iV(b),i=H,j=H;g||(i=gd(a),i==G?i=P:i!=P&&(g=jv(a))),h||(j=gd(b),j==G?j=P:j!=P&&(h=jv(b)));var k=i==P&&!du(a),l=j==P&&!du(b),m=i==j;if(m&&!g&&!k)return fW(a,b,i,c,d,e);var o=e&n;if(!o){var p=k&&bO.call(a,"__wrapped__"),q=l&&bO.call(b,"__wrapped__");if(p||q)return c(p?a.value():a,q?b.value():b,d,e,f)}return m?(f||(f=new dX),(g?fV:fX)(a,b,c,d,e,f)):!1}function eL(b,c,d,e){var f=d.length,g=f,h=!e;if(b==null)return!g;b=Object(b);while(f--){var i=d[f];if(h&&i[2]?i[1]!==b[i[0]]:!(i[0]in b))return!1}while(++f<g){i=d[f];var j=i[0],k=b[j],l=i[1];if(h&&i[2]){if(k===a&&!(j in b))return!1}else{var o=new dX,p=e?e(k,l,j,b,c,o):a;if(p===a?!eJ(l,k,e,m|n,o):!p)return!1}}return!0}function eM(a){var b=typeof a;return b=="function"?a:a==null?le:b=="object"?iV(a)?eR(a[0],a[1]):eQ(a):lr(a)}function eN(a){return ch(Object(a))}function eO(a){a=a==null?a:Object(a);var b=[];for(var c in a)b.push(c);return b}function eP(a,b){var c=-1,d=iW(a)?Array(a.length):[];return er(a,function(a,e,f){d[++c]=b(a,e,f)}),d}function eQ(b){var c=ga(b);if(c.length==1&&c[0][2]){var d=c[0][0],e=c[0][1];return function(b){return b==null?!1:b[d]===e&&(e!==a||d in Object(b))}}return function(a){return a===b||eL(a,b,c)}}function eR(b,c){return function(d){var e=jW(d,b);return e===a&&e===c?jY(d,b):eJ(c,e,a,m|n)}}function eS(b,c,d,e,f){if(b===c)return;var g=iV(c)||jv(c)?a:ka(c);cQ(g||c,function(h,i){g&&(i=h,h=c[i]);if(jh(h))f||(f=new dX),eT(b,c,i,d,eS,e,f);else{var j=e?e(b[i],h,i+"",b,c,f):a;j===a&&(j=h),eh(b,i,j)}})}function eT(b,c,d,e,f,g,h){var i=b[d],j=c[d],k=h.get(j)||h.get(i);if(k){eh(b,d,k);return}var l=g?g(i,j,d+"",b,c,h):a,m=l===a;m&&(l=j,iV(j)||jv(j)?iV(i)?l=e?fy(i):i:iX(i)?l=fy(i):l=em(j):jq(j)||iU(j)?iU(i)?l=jD(i):!jh(i)||e&&je(i)?l=em(j):l=e?em(i):i:m=!1),h.set(j,l),m&&f(l,j,e,g,h),eh(b,d,l)}function eU(a,b,c){var d=-1,e=f$();b=cW(b.length?b:Array(1),function(a){return e(a)});var f=eP(a,function(a,c,e){var f=cW(b,function(b){return b(a)});return{criteria:f,index:++d,value:a}});return de(f,function(a,b){return dp(a,b,c)})}function eV(a,b){return a=Object(a),cY(b,function(b,c){return c in a&&(b[c]=a[c]),b},{})}function eW(a,b){var c={};return ez(a,function(a,d){b(a,d)&&(c[d]=a)}),c}function eX(b){return function(c){return c==null?a:c[b]}}function eY(a){return function(b){return eD(b,a)}}function eZ(a,b){return e$(a,b)}function e$(a,b,c){var d=-1,e=b.length,f=a;c&&(f=cW(a,function(a){return c(a)}));while(++d<e){var g=0,h=b[d],i=c?c(h):h;while((g=dc(f,i,g))>-1)f!==a&&cc.call(f,g,1),cc.call(a,g,1)}return a}function e_(a,b){var c=a?b.length:0,d=c-1;while(c--){var e=b[c];if(d==c||e!=f){var f=e;if(dv(e))cc.call(a,e,1);else if(!gl(e,a)){var g=fk(e),h=gs(a,g);h!=null&&delete h[gX(g)]}else delete a[e]}}return a}function fa(a,b){return a+ce(cl()*(b-a+1))}function fb(a,b,c,d){var e=-1,f=ci(cd((b-a)/(c||1)),0),g=Array(f);while(f--)g[d?f:++e]=a,a+=c;return g}function fc(b,c,d,e){c=gl(c,b)?[c+""]:fk(c);var f=-1,g=c.length,h=g-1,i=b;while(i!=null&&++f<g){var j=c[f];if(jh(i)){var k=d;if(f!=h){var l=i[j];k=e?e(l,j,i):a,k===a&&(k=l==null?dv(c[f+1])?[]:{}:l)}ei(i,j,k)}i=i[j]}return b}function fe(a,b,c){var d=-1,e=a.length;b<0&&(b=-b>e?0:e+b),c=c>e?e:c,c<0&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;var f=Array(e);while(++d<e)f[d]=a[d+b];return f}function ff(a,b){var c;return er(a,function(a,d,e){return c=b(a,d,e),!c}),!!c}function fg(a,b,c){var d=0,e=a?a.length:d;if(typeof b=="number"&&b===b&&e<=E){while(d<e){var f=d+e>>>1,g=a[f];(c?g<=b:g<b)&&g!==null?d=f+1:e=f}return e}return fh(a,b,le,c)}function fh(b,c,d,e){c=d(c);var f=0,g=b?b.length:0,h=c!==c,i=c===null,j=c===a;while(f<g){var k=ce((f+g)/2),l=d(b[k]),m=l!==a,n=l===l;if(h)var o=n||e;else i?o=n&&m&&(e||l!=null):j?o=n&&(e||m):l==null?o=!1:o=e?l<=c:l<c;o?f=k+1:g=k}return cj(g,D)}function fi(a){return fj(a)}function fj(a,b){var c=0,d=a.length,e=a[0],f=b?b(e):e,g=f,h=0,i=[e];while(++c<d)e=a[c],f=b?b(e):e,iR(f,g)||(g=f,i[++h]=e);return i}function fk(a){return iV(a)?a:gv(a)}function fl(a,b,c){var d=-1,e=cU,f=a.length,g=!0,h=[],i=h;if(c)g=!1,e=cV;else if(f>=s){var j=b?null:fT(a);if(j)return dz(j);g=!1,e=dV,i=new dU}else i=b?[]:h;k:while(++d<f){var l=a[d],m=b?b(l):l;if(g&&m===m){var n=i.length;while(n--)if(i[n]===m)continue k;b&&i.push(m),h.push(l)}else e(i,m,c)||(i!==h&&i.push(m),h.push(l))}return h}function fm(a,b){b=gl(b,a)?[b+""]:fk(b),a=gs(a,b);var c=gX(b);return a!=null&&jX(a,c)?delete a[c]:!0}function fn(a,b,c,d){var e=a.length,f=d?e:-1;while((d?f--:++f<e)&&b(a[f],f,a));return c?fe(a,d?0:f,d?f+1:e):fe(a,d?f+1:0,d?e:f)}function fo(a,b){var c=a;return c instanceof dF&&(c=c.value()),cY(b,function(a,b){return b.func.apply(b.thisArg,cX([a],b.args))},c)}function fp(a,b,c){var d=-1,e=a.length;while(++d<e)var f=f?cX(eq(f,a[d],b,c),eq(a[d],f,b,c)):a[d];return f&&f.length?fl(f,b,c):[]}function fq(a){var b=a.constructor,c=new b(a.byteLength),d=new bW(c);return d.set(new bW(a)),c}function fr(a){var b=a.constructor;return cY(dx(a),cM,new b)}function fs(a){var b=a.constructor,c=new b(a.source,bx.exec(a));return c.lastIndex=a.lastIndex,c}function ft(a){var b=a.constructor;return cY(dz(a),cN,new b)}function fu(a){return bV?Object(cG.call(a)):{}}function fv(a,b){var c=a.buffer,d=a.constructor;return new d(b?fq(c):c,a.byteOffset,a.length)}function fw(a,b,c){var d=c.length,e=-1,f=ci(a.length-d,0),g=-1,h=b.length,i=Array(h+f);while(++g<h)i[g]=b[g];while(++e<d)i[c[e]]=a[e];while(f--)i[g++]=a[e++];return i}function fx(a,b,c){var d=-1,e=c.length,f=-1,g=ci(a.length-e,0),h=-1,i=b.length,j=Array(g+i);while(++f<g)j[f]=a[f];var k=f;while(++h<i)j[k+h]=b[h];while(++d<e)j[k+c[d]]=a[f++];return j}function fy(a,b){var c=-1,d=a.length;b||(b=Array(d));while(++c<d)b[c]=a[c];return b}function fz(a,b,c){return fA(a,b,c)}function fA(a,b,c,d){c||(c={});var e=-1,f=b.length;while(++e<f){var g=b[e],h=d?d(c[g],a[g],g,c,a):a[g];ei(c,g,h)}return c}function fB(a,b){return fz(a,gc(a),b)}function fC(a,b){return function(c,d){var e=b?b():{};d=f$(d);if(iV(c)){var f=-1,g=c.length;while(++f<g){var h=c[f];a(e,h,d(h),c)}}else er(c,function(b,c,f){a(e,b,d(b),f)});return e}}function fD(b){return iI(function(c,d){var e=-1,f=d.length,g=f>1?d[f-1]:a,h=f>2?d[2]:a;g=typeof g=="function"?(f--,g):a,h&&gk(d[0],d[1],h)&&(g=f<3?a:g,f=1),c=Object(c);while(++e<f){var i=d[e];i&&b(c,i,e,g)}return c})}function fE(a,b){return function(c,d){if(c==null)return c;if(!iW(c))return a(c,d);var e=c.length,f=b?e:-1,g=Object(c);while(b?f--:++f<e)if(d(g[f],f,g)===!1)break;return c}}function fF(a){return function(b,c,d){var e=-1,f=Object(b),g=d(b),h=g.length;while(h--){var i=g[a?h:++e];if(c(f[i],i,f)===!1)break}return b}}function fG(a,b,d){function g(){var b=this&&this!==cL&&this instanceof g?f:a;return b.apply(e?d:this,arguments)}var e=b&c,f=fJ(a);return g}function fH(b){return function(c){c=jF(c);var d=cp.test(c)?dB(c):a,e=d?d[0]:c.charAt(0),f=d?d.slice(1).join(""):c.slice(1);return e[b]()+f}}function fI(a){return function(b){return cY(kY(kx(b)),a,"")}}function fJ(a){return function(){var b=arguments;switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3]);case 5:return new a(b[0],b[1],b[2],b[3],b[4]);case 6:return new a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var c=eo(a.prototype),d=a.apply(c,b);return jh(d)?d:c}}function fK(b,c,d){function f(){var g=arguments.length,h=g,i=Array(g),j=this&&this!==cL&&this instanceof f?e:b,k=f.placeholder;while(h--)i[h]=arguments[h];var l=g<3&&i[0]!==k&&i[g-1]!==k?[]:dy(i,k);return g-=l.length,g<d?fR(b,c,fM,k,a,i,l,a,a,d-g):cO(j,this,i)}var e=fJ(b);return f}function fL(b){return iI(function(c){c=ew(c);var d=c.length,e=d,g=dm.prototype.thru;b&&c.reverse();while(e--){var i=c[e];if(typeof i!="function")throw new bK(w);if(g&&!l&&fZ(i)=="wrapper")var l=new dm([],!0)}e=l?e:d;while(++e<d){i=c[e];var m=fZ(i),n=m=="wrapper"?fY(i):a;n&&gn(n[0])&&n[1]==(j|f|h|k)&&!n[4].length&&n[9]==1?l=l[fZ(n[0])].apply(l,n[3]):l=i.length==1&&gn(i)?l[m]():l.thru(i)}return function(){var a=arguments,b=a[0];if(l&&a.length==1&&iV(b)&&b.length>=s)return l.plant(b).value();var e=0,f=d?c[e].apply(this,a):b;while(++e<d)f=c[e].call(this,f);return f}})}function fM(b,e,h,i,k,m,n,o,p,q){function y(){var a=arguments.length,c=a,d=Array(a);while(c--)d[c]=arguments[c];i&&(d=fw(d,i,k)),m&&(d=fx(d,m,n));if(u||v){var f=y.placeholder,g=dy(d,f);a-=g.length;if(a<q)return fR(b,e,fM,f,h,d,g,o,p,q-a)}var j=s?h:this,l=t?j[b]:b;return o?d=gt(d,o):w&&d.length>1&&d.reverse(),r&&p<d.length&&(d.length=p),this&&this!==cL&&this instanceof y&&(l=x||fJ(l)),l.apply(j,d)}var r=e&j,s=e&c,t=e&d,u=e&f,v=e&g,w=e&l,x=t?a:fJ(b);return y}function fN(a){return iI(function(b){return b=cW(ew(b),f$()),iI(function(c){var d=this;return a(b,function(a){return cO(a,d,c)})})})}function fO(b,c,d){c=jA(c);var e=dA(b);if(!c||e>=c)return"";var f=c-e;d=d===a?" ":d+"";var g=kJ(d,cd(f/dA(d)));return cp.test(d)?dB(g).slice(0,f).join(""):g.slice(0,f)}function fP(a,b,d,e){function h(){var b=-1,c=arguments.length,i=-1,j=e.length,k=Array(j+c),l=this&&this!==cL&&this instanceof h?g:a;while(++i<j)k[i]=e[i];while(c--)k[i++]=arguments[++b];return cO(l,f?d:this,k)}var f=b&c,g=fJ(a);return h}function fQ(b){return function(c,d,e){return e&&typeof e!="number"&&gk(c,d,e)&&(d=e=a),c=jC(c),c=c===c?c:0,d===a?(d=c,c=0):d=jC(d)||0,e=e===a?c<d?1:-1:jC(e)||0,fb(c,d,e,b)}}function fR(b,g,j,k,l,m,n,o,p,q){var r=g&f,s=o?fy(o):a,t=r?n:a,u=r?a:n,v=r?m:a,w=r?a:m;g|=r?h:i,g&=~(r?i:h),g&e||(g&=~(c|d));var x=[b,g,l,v,t,w,u,s,p,q],y=j.apply(a,x);return gn(b)&&gu(y,x),y.placeholder=k,y}function fS(a){var b=bI[a];return function(a,c){a=jC(a),c=jA(c);if(c){var d=(jF(a)+"e").split("e"),e=b(d[0]+"e"+(+d[1]+c));return d=(jF(e)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return b(a)}}function fU(b,e,j,k,l,m,n,o){var p=e&d;if(!p&&typeof b!="function")throw new bK(w);var q=k?k.length:0;q||(e&=~(h|i),k=l=a),n=n===a?n:ci(jA(n),0),o=o===a?o:jA(o),q-=l?l.length:0;if(e&i){var r=k,s=l;k=l=a}var t=p?a:fY(b),u=[b,e,j,k,l,r,s,m,n,o];t&&gq(u,t),b=u[0],e=u[1],j=u[2],k=u[3],l=u[4],o=u[9]=u[9]==null?p?0:b.length:ci(u[9]-q,0),!o&&e&(f|g)&&(e&=~(f|g));if(!e||e==c)var v=fG(b,e,j);else e==f||e==g?v=fK(b,e,o):e!=h&&e!=(c|h)||!!l.length?v=fM.apply(a,u):v=fP(b,e,j,k);var x=t?fd:gu;return x(v,u)}function fV(b,c,d,e,f,g){var h=-1,i=f&n,j=f&m,k=b.length,l=c.length;if(k!=l&&!(i&&l>k))return!1;var o=g.get(b);if(o)return o==c;var p=!0;g.set(b,c);while(++h<k){var q=b[h],r=c[h];if(e)var s=i?e(r,q,h,c,b,g):e(q,r,h,b,c,g);if(s!==a){if(s)continue;p=!1;break}if(j){if(!c$(c,function(a){return q===a||d(q,a,e,f,g)})){p=!1;break}}else if(q!==r&&!d(q,r,e,f,g)){p=!1;break}}return g["delete"](b),p}function fW(a,b,c,d,e,f){switch(c){case V:if(a.byteLength!=b.byteLength||!d(new bW(a),new bW(b)))return!1;return!0;case I:case J:return+a==+b;case K:return a.name==b.name&&a.message==b.message;case O:return a!=+a?b!=+b:a==+b;case Q:case S:return a==b+"";case N:var g=dx;case R:var h=f&n;return g||(g=dz),(h||a.size==b.size)&&d(g(a),g(b),e,f|m);case T:return!!bV&&cG.call(a)==cG.call(b)}return!1}function fX(b,c,d,e,f,g){var h=f&n,i=j_(b),j=i.length,k=j_(c),l=k.length;if(j!=l&&!h)return!1;var m=j;while(m--){var o=i[m];if(!(h?o in c:eE(c,o)))return!1}var p=g.get(b);if(p)return p==c;var q=!0;g.set(b,c);var r=h;while(++m<j){o=i[m];var s=b[o],t=c[o];if(e)var u=h?e(t,s,o,c,b,g):e(s,t,o,b,c,g);if(u===a?s!==t&&!d(s,t,e,f,g):!u){q=!1;break}r||(r=o=="constructor")}if(q&&!r){var v=b.constructor,w=c.constructor;v!=w&&"constructor"in b&&"constructor"in c&&!(typeof v=="function"&&v instanceof v&&typeof w=="function"&&w instanceof w)&&(q=!1)}return g["delete"](b),q}function fZ(a){var b=a.name+"",c=cI[b],d=bO.call(cI,b)?c.length:0;while(d--){var e=c[d],f=e.func;if(f==null||f==a)return e.name}return b}function f$(){var a=cJ.iteratee||lf;return a=a===lf?eM:a,arguments.length?a(arguments[0],arguments[1]):a}function ga(a){var b=km(a),c=b.length;while(c--)b[c][2]=gp(b[c][1]);return b}function gb(b,c){var d=b==null?a:b[c];return jm(d)?d:a}function gd(a){return bR.call(a)}function ge(a,b,c){var d=-1,e=c.length;while(++d<e){var f=c[d],g=f.size;switch(f.type){case"drop":a+=g;break;case"dropRight":b-=g;break;case"take":b=cj(b,a+g);break;case"takeRight":a=ci(a,b-g)}}return{start:a,end:b}}function gf(a,b,c){if(a==null)return!1;var d=c(a,b);return!d&&!gl(b)&&(b=fk(b),a=gs(a,b),a!=null&&(b=gX(b),d=c(a,b))),d||jg(a&&a.length)&&dv(b,a.length)&&(iV(a)||jt(a)||iU(a))}function gg(a){var b=a.length,c=a.constructor(b);return b&&typeof a[0]=="string"&&bO.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function gh(b){var c=b.constructor;return eo(je(c)?c.prototype:a)}function gi(a,b,c){var d=a.constructor;switch(b){case V:return fq(a);case I:case J:return new d(+a);case W:case X:case Y:case Z:case $:case _:case ba:case bb:case bc:return fv(a,c);case N:return fr(a);case O:case S:return new d(a);case Q:return fs(a);case R:return ft(a);case T:return fu(a)}}function gj(b){var c=b?b.length:a;return jg(c)&&(iV(b)||jt(b)||iU(b))?dg(c,String):null}function gk(a,b,c){if(!jh(c))return!1;var d=typeof b;return(d=="number"?iW(c)&&dv(b,c.length):d=="string"&&b in c)?iR(c[b],a):!1}function gl(a,b){return typeof a=="number"?!0:!iV(a)&&(bo.test(a)||!bn.test(a)||b!=null&&a in Object(b))}function gm(a){var b=typeof a;return b=="number"||b=="boolean"||b=="string"&&a!=="__proto__"||a==null}function gn(a){var b=fZ(a),c=cJ[b];if(typeof c=="function"&&b in dF.prototype){if(a===c)return!0;var d=fY(c);return!!d&&a===d[0]}return!1}function go(a){var b=a&&a.constructor,c=typeof b=="function"&&b.prototype||bM;return a===c}function gp(a){return a===a&&!jh(a)}function gq(a,b){var g=a[1],h=b[1],i=g|h,l=i<(c|d|j),m=h==j&&g==f||h==j&&g==k&&a[7].length<=b[8]||h==(j|k)&&b[7].length<=b[8]&&g==f;if(!l&&!m)return a;h&c&&(a[2]=b[2],i|=g&c?0:e);var n=b[3];if(n){var o=a[3];a[3]=o?fw(o,n,b[4]):fy(n),a[4]=o?dy(a[3],F):fy(b[4])}return n=b[5],n&&(o=a[5],a[5]=o?fx(o,n,b[6]):fy(n),a[6]=o?dy(a[5],F):fy(b[6])),n=b[7],n&&(a[7]=fy(n)),h&j&&(a[8]=a[8]==null?b[8]:cj(a[8],b[8])),a[9]==null&&(a[9]=b[9]),a[0]=b[0],a[1]=i,a}function gr(b,c,d,e,f,g){return jh(b)&&jh(c)&&(g.set(c,b),eS(b,c,a,gr,g)),b}function gs(a,b){return b.length==1?a:jW(a,fe(b,0,-1))}function gt(b,c){var d=b.length,e=cj(c.length,d),f=fy(b);while(e--){var g=c[e];b[e]=dv(g,d)?f[g]:a}return b}function gv(a){var b=[];return jF(a).replace(bp,function(a,c,d,e){b.push(d?e.replace(bv,"$1"):c||a)}),b}function gw(a){return iX(a)?a:[]}function gx(a){return typeof a=="function"?a:le}function gy(a){if(a instanceof dF)return a.clone();var b=new dm(a.__wrapped__,a.__chain__);return b.__actions__=fy(a.__actions__),b.__index__=a.__index__,b.__values__=a.__values__,b}function gz(a,b){b=ci(jA(b),0);var c=a?a.length:0;if(!c||b<1)return[];var d=0,e=-1,f=Array(cd(c/b));while(d<c)f[++e]=fe(a,d,d+=b);return f}function gA(a){var b=-1,c=a?a.length:0,d=-1,e=[];while(++b<c){var f=a[b];f&&(e[++d]=f)}return e}function gF(b,c,d){var e=b?b.length:0;return e?(c=d||c===a?1:jA(c),fe(b,c<0?0:c,e)):[]}function gG(b,c,d){var e=b?b.length:0;return e?(c=d||c===a?1:jA(c),c=e-c,fe(b,0,c<0?0:c)):[]}function gH(a,b){return a&&a.length?fn(a,f$(b,3),!0,!0):[]}function gI(a,b){return a&&a.length?fn(a,f$(b,3),!0):[]}function gJ(a,b,c,d){var e=a?a.length:0;return e?(c&&typeof c!="number"&&gk(a,b,c)&&(c=0,d=e),eu(a,b,c,d)):[]}function gK(a,b){return a&&a.length?db(a,f$(b,3)):-1}function gL(a,b){return a&&a.length?db(a,f$(b,3),!0):-1}function gM(a,b){var c=a?a.length:0;return c?ew(cW(a,f$(b,3))):[]}function gN(a){var b=a?a.length:0;return b?ew(a):[]}function gO(a){var b=a?a.length:0;return b?ew(a,!0):[]}function gP(a){var b=-1,c=a?a.length:0,d={};while(++b<c){var e=a[b];d[e[0]]=e[1]}return d}function gQ(b){return b?b[0]:a}function gR(a,b,c){var d=a?a.length:0;return d?(c=jA(c),c<0&&(c=ci(d+c,0)),dc(a,b,c)):-1}function gS(a){return gG(a,1)}function gW(a,b){return a?cg.call(a,b):""}function gX(b){var c=b?b.length:0;return c?b[c-1]:a}function gY(b,c,d){var e=b?b.length:0;if(!e)return-1;var f=e;d!==a&&(f=jA(d),f=(f<0?ci(e+f,0):cj(f,e-1))+1);if(c!==c)return dt(b,f,!0);while(f--)if(b[f]===c)return f;return-1}function g$(a,b){return a&&a.length&&b&&b.length?eZ(a,b):a}function g_(a,b,c){return a&&a.length&&b&&b.length?e$(a,b,f$(c)):a}function hb(a,b){var c=[];if(!a||!a.length)return c;var d=-1,e=[],f=a.length;b=f$(b,3);while(++d<f){var g=a[d];b(g,d,a)&&(c.push(g),e.push(d))}return e_(a,e),c}function hc(a){return a?cm.call(a):a}function hd(b,c,d){var e=b?b.length:0;return e?(d&&typeof d!="number"&&gk(b,c,d)?(c=0,d=e):(c=c==null?0:jA(c),d=d===a?e:jA(d)),fe(b,c,d)):[]}function he(a,b){return fg(a,b)}function hf(a,b,c){return fh(a,b,f$(c))}function hg(a,b){var c=a?a.length:0;if(c){var d=fg(a,b);if(d<c&&iR(a[d],b))return d}return-1}function hh(a,b){return fg(a,b,!0)}function hi(a,b,c){return fh(a,b,f$(c),!0)}function hj(a,b){var c=a?a.length:0;if(c){var d=fg(a,b,!0)-1;if(iR(a[d],b))return d}return-1}function hk(a){return a&&a.length?fi(a):[]}function hl(a,b){return a&&a.length?fj(a,f$(b)):[]}function hm(a){return gF(a,1)}function hn(b,c,d){return!b||!b.length?[]:(c=d||c===a?1:jA(c),fe(b,0,c<0?0:c))}function ho(b,c,d){var e=b?b.length:0;return e?(c=d||c===a?1:jA(c),c=e-c,fe(b,c<0?0:c,e)):[]}function hp(a,b){return a&&a.length?fn(a,f$(b,3),!1,!0):[]}function hq(a,b){return a&&a.length?fn(a,f$(b,3)):[]}function hu(a){return a&&a.length?fl(a):[]}function hv(a,b){return a&&a.length?fl(a,f$(b)):[]}function hw(b,c){return b&&b.length?fl(b,a,c):[]}function hx(a){if(!a||!a.length)return[];var b=0;return a=cT(a,function(a){if(iX(a))return b=ci(a.length,b),!0}),dg(b,function(b){return cW(a,eX(b))})}function hy(b,c){if(!b||!b.length)return[];var d=hx(b);return c==null?d:cW(d,function(b){return cO(c,a,b)})}function hE(b,c){var d=-1,e=b?b.length:0,f=c?c.length:0,g={};while(++d<e)fc(g,b[d],d<f?c[d]:a);return g}function hG(a){var b=cJ(a);return b.__chain__=!0,b}function hH(a,b){return b(a),a}function hI(a,b){return b(a)}function hK(){return hG(this)}function hL(){return new dm(this.value(),this.__chain__)}function hM(a){return this.map(a).flatten()}function hN(){this.__values__===a&&(this.__values__=jz(this.value()));var b=this.__index__>=this.__values__.length,c=b?a:this.__values__[this.__index__++];return{done:b,value:c}}function hO(){return this}function hP(b){var c,d=this;while(d instanceof cK){var e=gy(d);e.__index__=0,e.__values__=a,c?f.__wrapped__=e:c=e;var f=e;d=d.__wrapped__}return f.__wrapped__=b,c}function hQ(){var b=this.__wrapped__;if(b instanceof dF){var c=b;return this.__actions__.length&&(c=new dF(this)),c=c.reverse(),c.__actions__.push({func:hI,args:[hc],thisArg:a}),new dm(c,this.__chain__)}return this.thru(hc)}function hR(){return fo(this.__wrapped__,this.__actions__)}function hT(b,c,d){var e=iV(b)?cS:et;return d&&gk(b,c,d)&&(c=a),e(b,f$(c,3))}function hU(a,b){var c=iV(a)?cT:ev;return c(a,f$(b,3))}function hV(b,c){c=f$(c,3);if(iV(b)){var d=db(b,c);return d>-1?b[d]:a}return da(b,c,er)}function hW(b,c){c=f$(c,3);if(iV(b)){var d=db(b,c,!0);return d>-1?b[d]:a}return da(b,c,es)}function hX(a,b){return typeof b=="function"&&iV(a)?cQ(a,b):er(a,gx(b))}function hY(a,b){return typeof b=="function"&&iV(a)?cR(a,b):es(a,gx(b))}function h$(a,b,c,d){a=iW(a)?a:kq(a),c=c&&!d?jA(c):0;var e=a.length;return c<0&&(c=ci(e+c,0)),jt(a)?c<=e&&a.indexOf(b,c)>-1:!!e&&dc(a,b,c)>-1}function ib(a,b){var c=iV(a)?cW:eP;return c(a,f$(b,3))}function ic(b,c,d,e){return b==null?[]:(iV(c)||(c=c==null?[]:[c]),d=e?a:d,iV(d)||(d=d==null?[]:[d]),eU(b,c,d))}function ie(a,b,c){var d=iV(a)?cY:dd,e=arguments.length<3;return d(a,f$(b,4),c,e,er)}function ig(a,b,c){var d=iV(a)?cZ:dd,e=arguments.length<3;return d(a,f$(b,4),c,e,es)}function ih(a,b){var c=iV(a)?cT:ev;return b=f$(b,3),c(a,function(a,c,d){return!b(a,c,d)})}function ii(b){var c=iW(b)?b:kq(b),d=c.length;return d>0?c[fa(0,d-1)]:a}function ij(a,b){var c=-1,d=jz(a),e=d.length,f=e-1;b=el(jA(b),0,e);while(++c<b){var g=fa(c,f),h=d[g];d[g]=d[c],d[c]=h}return d.length=b,d}function ik(a){return ij(a,C)}function il(a){if(a==null)return 0;if(iW(a)){var b=a.length;return b&&jt(a)?dA(a):b}return j_(a).length}function im(b,c,d){var e=iV(b)?c$:ff;return d&&gk(b,c,d)&&(c=a),e(b,f$(c,3))}function iq(a,b){if(typeof b!="function")throw new bK(w);return a=jA(a),function(){if(--a<1)return b.apply(this,arguments)}}function ir(b,c,d){return c=d?a:c,c=b&&c==null?b.length:c,fU(b,j,a,a,a,a,c)}function is(b,c){var d;if(typeof c!="function")throw new bK(w);return b=jA(b),function(){return--b>0&&(d=c.apply(this,arguments)),b<=1&&(c=a),d}}function iv(b,c,d){c=d?a:c;var e=fU(b,f,a,a,a,a,a,c);return e.placeholder=iv.placeholder,e}function iw(b,c,d){c=d?a:c;var e=fU(b,g,a,a,a,a,a,c);return e.placeholder=iw.placeholder,e}function ix(b,c,d){function p(){j&&bX(j),f&&bX(f),l=0,e=f=i=j=k=a}function q(c,d){d&&bX(d),f=j=k=a,c&&(l=ip(),g=b.apply(i,e),!j&&!f&&(e=i=a))}function r(){var a=c-(ip()-h);a<=0||a>c?q(k,f):j=cb(r,a)}function s(){if(j&&k||f&&o)g=b.apply(i,e);return p(),g}function t(){q(o,j)}function u(){e=arguments,h=ip(),i=this,k=o&&(j||!m);if(n===!1)var d=m&&!j;else{!f&&!m&&(l=h);var p=n-(h-l),q=p<=0||p>n;q?(f&&(f=bX(f)),l=h,g=b.apply(i,e)):f||(f=cb(t,p))}return q&&j?j=bX(j):!j&&c!==n&&(j=cb(r,c)),d&&(q=!0,g=b.apply(i,e)),q&&!j&&!f&&(e=i=a),g}var e,f,g,h,i,j,k,l=0,m=!1,n=!1,o=!0;if(typeof b!="function")throw new bK(w);return c=jC(c)||0,jh(d)&&(m=!!d.leading,n="maxWait"in d&&ci(jC(d.maxWait)||0,c),o="trailing"in d?!!d.trailing:o),u.cancel=p,u.flush=s,u}function iA(a){return fU(a,l)}function iB(a,b){if(typeof a!="function"||b&&typeof b!="function")throw new bK(w);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g),g};return c.cache=new iB.Cache,c}function iC(a){if(typeof a!="function")throw new bK(w);return function(){return!a.apply(this,arguments)}}function iD(a){return is(2,a)}function iI(b,c){if(typeof b!="function")throw new bK(w);return c=ci(c===a?b.length-1:jA(c),0),function(){var a=arguments,d=-1,e=ci(a.length-c,0),f=Array(e);while(++d<e)f[d]=a[c+d];switch(c){case 0:return b.call(this,f);case 1:return b.call(this,a[0],f);case 2:return b.call(this,a[0],a[1],f)}var g=Array(c+1);d=-1;while(++d<c)g[d]=a[d];return g[c]=f,cO(b,this,g)}}function iJ(a){if(typeof a!="function")throw new bK(w);return function(b){return cO(a,this,b)}}function iK(a,b,c){var d=!0,e=!0;if(typeof a!="function")throw new bK(w);return jh(c)&&(d="leading"in c?!!c.leading:d,e="trailing"in c?!!c.trailing:e),ix(a,b,{leading:d,maxWait:b,trailing:e})}function iL(a){return ir(a,1)}function iM(a,b){return b=b==null?le:b,iF(b,a)}function iN(a){return em(a)}function iO(a,b){return em(a,!1,b)}function iP(a){return em(a,!0)}function iQ(a,b){return em(a,!0,b)}function iR(a,b){return a===b||a!==a&&b!==b}function iS(a,b){return a>b}function iT(a,b){return a>=b}function iU(a){return iX(a)&&bO.call(a,"callee")&&(!ca.call(a,"callee")||bR.call(a)==G)}function iW(a){return a!=null&&(typeof a!="function"||!je(a))&&jg(f_(a))}function iX(a){return ji(a)&&iW(a)}function iY(a){return a===!0||a===!1||ji(a)&&bR.call(a)==I}function iZ(a){return ji(a)&&bR.call(a)==J}function i$(a){return!!a&&a.nodeType===1&&ji(a)&&!jq(a)}function i_(a){return!ji(a)||je(a.splice)?!il(a):!j_(a).length}function ja(a,b){return eJ(a,b)}function jb(b,c,d){d=typeof d=="function"?d:a;var e=d?d(b,c):a;return e===a?eJ(b,c,d):!!e}function jc(a){return ji(a)&&typeof a.message=="string"&&bR.call(a)==K}function jd(a){return typeof a=="number"&&cf(a)}function je(a){var b=jh(a)?bR.call(a):"";return b==L||b==M}function jf(a){return typeof a=="number"&&a==jA(a)}function jg(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=z}function jh(a){var b=typeof a;return!!a&&(b=="object"||b=="function")}function ji(a){return!!a&&typeof a=="object"}function jj(a,b){return a===b||eL(a,b,ga(b))}function jk(b,c,d){return d=typeof d=="function"?d:a,eL(b,c,ga(c),d)}function jl(a){return jp(a)&&a!=+a}function jm(a){return a==null?!1:je(a)?bT.test(bN.call(a)):ji(a)&&(du(a)?bT:bB).test(a)}function jn(a){return a===null}function jo(a){return a==null}function jp(a){return typeof a=="number"||ji(a)&&bR.call(a)==O}function jq(a){if(!ji(a)||bR.call(a)!=P||du(a))return!1;var b=bM;typeof a.constructor=="function"&&(b=bZ(a));if(b===null)return!0;var c=b.constructor;return typeof c=="function"&&c instanceof c&&bN.call(c)==bQ}function jr(a){return jh(a)&&bR.call(a)==Q}function js(a){return jf(a)&&a>=-z&&a<=z}function jt(a){return typeof a=="string"||!iV(a)&&ji(a)&&bR.call(a)==S}function ju(a){return typeof a=="symbol"||ji(a)&&bR.call(a)==T}function jv(a){return ji(a)&&jg(a.length)&&!!cv[bR.call(a)]}function jw(b){return b===a}function jx(a,b){return a<b}function jy(a,b){return a<=b}function jz(a){if(!a)return[];if(iW(a))return jt(a)?dB(a):fy(a);if(b_&&a[b_])return dw(a[b_]());var b=gd(a),c=b==N?dx:b==R?dz:kq;return c(a)}function jA(a){if(!a)return a===0?a:0;a=jC(a);if(a===y||a===-y){var b=a<0?-1:1;return b*A}var c=a%1;return a===a?c?a-c:a:0}function jB(a){return a?el(jA(a),0,C):0}function jC(a){if(jh(a)){var b=je(a.valueOf)?a.valueOf():a;a=jh(b)?b+"":b}if(typeof a!="string")return a===0?a:+a;a=a.replace(bs,"");var c=bA.test(a);return c||bC.test(a)?cD(a.slice(2),c?2:8):bz.test(a)?B:+a}function jD(a){return fz(a,ka(a))}function jE(a){return el(jA(a),-z,z)}function jF(a){if(typeof a=="string")return a;if(a==null)return"";if(ju(a))return bV?cH.call(a):"";var b=a+"";return b=="0"&&1/a==-y?"-0":b}function jL(a,b){var c=eo(a);return b?ej(c,b):c}function jO(a,b){return da(a,f$(b,3),eA,!0)}function jP(a,b){return da(a,f$(b,3),eB,!0)}function jQ(a,b){return a==null?a:ex(a,gx(b),ka)}function jR(a,b){return a==null?a:ey(a,gx(b),ka)}function jS(a,b){return a&&eA(a,gx(b))}function jT(a,b){return a&&eB(a,gx(b))}function jU(a){return a==null?[]:eC(a,j_(a))}function jV(a){return a==null?[]:eC(a,ka(a))}function jW(b,c,d){var e=b==null?a:eD(b,c);return e===a?d:e}function jX(a,b){return gf(a,b,eE)}function jY(a,b){return gf(a,b,eF)}function jZ(a,b,c){return cY(j_(a),function(d,e){var f=a[e];return b&&!c?bO.call(d,f)?d[f].push(e):d[f]=[e]:d[f]=e,d},{})}function j_(a){var b=go(a);if(!b&&!iW(a))return eN(a);var c=gj(a),d=!!c,e=c||[],f=e.length;for(var g in a)eE(a,g)&&(!d||g!="length"&&!dv(g,f))&&(!b||g!="constructor")&&e.push(g);return e}function ka(a){var b=-1,c=go(a),d=eO(a),e=d.length,f=gj(a),g=!!f,h=f||[],i=h.length;while(++b<e){var j=d[b];(!g||j!="length"&&!dv(j,i))&&(j!="constructor"||!c&&!!bO.call(a,j))&&h.push(j)}return h}function kb(a,b){var c={};return b=f$(b,3),eA(a,function(a,d,e){c[b(a,d,e)]=a}),c}function kc(a,b){var c={};return b=f$(b,3),eA(a,function(a,d,e){c[d]=b(a,d,e)}),c}function kg(a,b){return b=f$(b,2),eW(a,function(a,c){return!b(a,c)})}function ki(a,b){return a==null?{}:eW(a,f$(b,2))}function kj(b,c,d){if(!gl(c,b)){c=fk(c);var e=jW(b,c);b=gs(b,c)}else e=b==null?a:b[c];return e===a&&(e=d),je(e)?e.call(b):e}function kk(a,b,c){return a==null?a:fc(a,b,c)}function kl(b,c,d,e){return e=typeof e=="function"?e:a,b==null?b:fc(b,c,d,e)}function km(a){return dh(a,j_(a))}function kn(a){return dh(a,ka(a))}function ko(b,c,d){var e=iV(b)||jv(b);c=f$(c,4);if(d==null)if(e||jh(b)){var f=b.constructor;e?d=iV(b)?new f:[]:d=eo(je(f)?f.prototype:a)}else d={};return(e?cQ:eA)(b,function(a,b,e){return c(d,a,b,e)}),d}function kp(a,b){return a==null?!0:fm(a,b)}function kq(a){return a?dj(a,j_(a)):[]}function kr(a){return a==null?dj(a,ka(a)):[]}function ks(b,c,d){return d===a&&(d=c,c=a),d!==a&&(d=jC(d),d=d===d?d:0),c!==a&&(c=jC(c),c=c===c?c:0),el(jC(b),c,d)}function kt(b,c,d){return c=jC(c)||0,d===a?(d=c,c=0):d=jC(d)||0,b=jC(b),eG(b,c,d)}function ku(b,c,d){d&&typeof d!="boolean"&&gk(b,c,d)&&(c=d=a),d===a&&(typeof c=="boolean"?(d=c,c=a):typeof b=="boolean"&&(d=b,b=a)),b===a&&c===a?(b=0,c=1):(b=jC(b)||0,c===a?(c=b,b=0):c=jC(c)||0);if(b>c){var e=b;b=c,c=e}if(d||b%1||c%1){var f=cl();return cj(b+f*(c-b+cC("1e-"+((f+"").length-1))),c)}return fa(b,c)}function kw(a){return kE(jF(a).toLowerCase())}function kx(a){return a=jF(a),a&&a.replace(bE,dq).replace(cn,"")}function ky(b,c,d){b=jF(b),c=typeof c=="string"?c:c+"";var e=b.length;return d=d===a?e:el(jA(d),0,e),d-=c.length,d>=0&&b.indexOf(c,d)==d}function kz(a){return a=jF(a),a&&bj.test(a)?a.replace(bh,dr):a}function kA(a){return a=jF(a),a&&br.test(a)?a.replace(bq,"\\$&"):a}function kF(a,b,c){a=jF(a),b=jA(b);var d=dA(a);if(!b||d>=b)return a;var e=(b-d)/2,f=ce(e),g=cd(e);return fO("",f,c)+a+fO("",g,c)}function kG(a,b,c){return a=jF(a),a+fO(a,b,c)}function kH(a,b,c){return a=jF(a),fO(a,b,c)+a}function kI(a,b,c){return c||b==null?b=0:b&&(b=+b),a=jF(a).replace(bs,""),ck(a,b||(by.test(a)?16:10))}function kJ(a,b){a=jF(a),b=jA(b);var c="";if(!a||b<1||b>z)return c;do b%2&&(c+=a),b=ce(b/2),a+=a;while(b);return c}function kK(){var a=arguments,b=jF(a[0]);return a.length<3?b:b.replace(a[1],a[2])}function kM(a,b,c){return jF(a).split(b,c)}function kO(a,b,c){return a=jF(a),c=el(jA(c),0,a.length),a.lastIndexOf(b,c)==c}function kP(b,c,d){var e=cJ.templateSettings;d&&gk(b,c,d)&&(c=a),b=jF(b),c=jI({},c,e,eg);var f=jI({},c.imports,e.imports,eg),g=j_(f),h=dj(f,g),i,j,k=0,l=c.interpolate||bF,m="__p += '",n=bJ((c.escape||bF).source+"|"+l.source+"|"+(l===bm?bw:bF).source+"|"+(c.evaluate||bF).source+"|$","g"),o="//# sourceURL="+("sourceURL"in c?c.sourceURL:"lodash.templateSources["+ ++cu+"]")+"\n";b.replace(n,function(a,c,d,e,f,g){return d||(d=e),m+=b.slice(k,g).replace(bG,ds),c&&(i=!0,m+="' +\n__e("+c+") +\n'"),f&&(j=!0,m+="';\n"+f+";\n__p += '"),d&&(m+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),k=g+a.length,a}),m+="';\n";var p=c.variable;p||(m="with (obj) {\n"+m+"\n}\n"),m=(j?m.replace(bd,""):m).replace(be,"$1").replace(bf,"$1;"),m="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(j?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var q=kZ(function(){return Function(g,o+"return "+m).apply(a,h)});q.source=m;if(jc(q))throw q;return q}function kQ(a){return jF(a).toLowerCase()}function kR(a){return jF(a).toUpperCase()}function kS(b,c,d){b=jF(b);if(!b)return b;if(d||c===a)return b.replace(bs,"");c+="";if(!c)return b;var e=dB(b),f=dB(c);return e.slice(dk(e,f),dl(e,f)+1).join("")}function kT(b,c,d){b=jF(b);if(!b)return b;if(d||c===a)return b.replace(bu,"");c+="";if(!c)return b;var e=dB(b);return e.slice(0,dl(e,dB(c))+1).join("")}function kU(b,c,d){b=jF(b);if(!b)return b;if(d||c===a)return b.replace(bt,"");c+="";if(!c)return b;var e=dB(b);return e.slice(dk(e,dB(c))).join("")}function kV(b,c){var d=o,e=p;if(jh(c)){var f="separator"in c?c.separator:f;d="length"in c?jA(c.length):d,e="omission"in c?jF(c.omission):e}b=jF(b);var g=b.length;if(cp.test(b)){var h=dB(b);g=h.length}if(d>=g)return b;var i=d-dA(e);if(i<1)return e;var j=h?h.slice(0,i).join(""):b.slice(0,i);if(f===a)return j+e;h&&(i+=j.length-i);if(jr(f)){if(b.slice(i).search(f)){var k,l=j;f.global||(f=bJ(f.source,jF(bx.exec(f))+"g")),f.lastIndex=0;while(k=f.exec(l))var m=k.index;j=j.slice(0,m===a?i:m)}}else if(b.indexOf(f,i)!=i){var n=j.lastIndexOf(f);n>-1&&(j=j.slice(0,n))}return j+e}function kW(a){return a=jF(a),a&&bi.test(a)?a.replace(bg,dC):a}function kY(b,c,d){return b=jF(b),c=d?a:c,c===a&&(c=cs.test(b)?cr:cq),b.match(c)||[]}function k_(a){var b=a?a.length:0,c=f$();return a=b?cW(a,function(a){if(typeof a[1]!="function")throw new bK(w);return[c(a[0]),a[1]]}):[],iI(function(c){var d=-1;while(++d<b){var e=a[d];if(cO(e[0],this,c))return cO(e[1],this,c)}})}function la(a){return en(em(a,!0))}function lb(a){return function(){return a}}function le(a){return a}function lf(a){return ji(a)&&!iV(a)?lg(a):eM(a)}function lg(a){return eQ(em(a,!0))}function lh(a,b){return eR(a,em(b,!0))}function lk(a,b,c){var d=j_(b),e=eC(b,d);c==null&&(!jh(b)||!e.length&&!!d.length)&&(c=b,b=a,a=this,e=eC(b,j_(b)));var f=jh(c)&&"chain"in c?c.chain:!0,g=je(a);return cQ(e,function(c){var d=b[c];a[c]=d,g&&(a.prototype[c]=function(){var b=this.__chain__;if(f||b){var c=a(this.__wrapped__),e=c.__actions__=fy(this.__actions__);return e.push({func:d,args:arguments,thisArg:a}),c.__chain__=b,c}return d.apply(a,cX([this.value()],arguments))})}),a}function ll(){return cL._===this&&(cL._=bS),this}function lm(){}function ln(a){return a=jA(a),function(){return arguments[a]}}function lr(a){return gl(a)?eX(a):eY(a)}function ls(b){return function(c){return b==null?a:eD(b,c)}}function lv(a,b){a=jA(a);if(a<1||a>z)return[];var c=C,d=cj(a,C);b=gx(b),a-=C;var e=dg(d,b);while(++c<a)b(c);return e}function lw(a){return iV(a)?cW(a,String):gv(a)}function lx(a){var b=++bP;return jF(a)+b}function ly(b,c){var d;return b!==a&&(d=b),c!==a&&(d=d===a?c:d+c),d}function lB(b){return b&&b.length?c_(b,le,iS):a}function lC(b,c){return b&&b.length?c_(b,f$(c),iS):a}function lD(a){return lI(a)/(a?a.length:0)}function lE(b){return b&&b.length?c_(b,le,jx):a}function lF(b,c){return b&&b.length?c_(b,f$(c),jx):a}function lH(b,c){var d;return b!==a&&(d=b),c!==a&&(d=d===a?c:d-c),d}function lI(b){return b&&b.length?df(b,le):a}function lJ(b,c){return b&&b.length?df(b,f$(c)):a}U=U?dE.defaults({},U,dE.pick(cL,ct)):cL;var bD=U.Date,bH=U.Error,bI=U.Math,bJ=U.RegExp,bK=U.TypeError,bL=U.Array.prototype,bM=U.Object.prototype,bN=U.Function.prototype.toString,bO=bM.hasOwnProperty,bP=0,bQ=bN.call(Object),bR=bM.toString,bS=cL._,bT=bJ("^"+bN.call(bO).replace(bq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bU=U.Reflect,bV=U.Symbol,bW=U.Uint8Array,bX=U.clearTimeout,bY=bU?bU.enumerate:a,bZ=Object.getPrototypeOf,b$=Object.getOwnPropertySymbols,b_=typeof (b_=bV&&bV.iterator)=="symbol"?b_:a,ca=bM.propertyIsEnumerable,cb=U.setTimeout,cc=bL.splice,cd=bI.ceil,ce=bI.floor,cf=U.isFinite,cg=bL.join,ch=Object.keys,ci=bI.max,cj=bI.min,ck=U.parseInt,cl=bI.random,cm=bL.reverse,co=gb(U,"Map"),cx=gb(U,"Set"),cy=gb(U,"WeakMap"),cz=gb(Object,"create"),cA=cy&&new cy,cB=co?bN.call(co):"",cE=cx?bN.call(cx):"",cF=bV?bV.prototype:a,cG=bV?cF.valueOf:a,cH=bV?cF.toString:a,cI={};cJ.templateSettings={escape:bk,evaluate:bl,interpolate:bm,variable:"",imports:{_:cJ}};var eo=function(){function b(){}return function(c){if(jh(c)){b.prototype=c;var d=new b;b.prototype=a}return d||{}}}(),er=fE(eA),es=fE(eB,!0),ex=fF(),ey=fF(!0);bY&&!ca.call({valueOf:1},"valueOf")&&(eO=function(a){return dw(bY(a))});var fd=cA?function(a,b){return cA.set(a,b),a}:le,fT=!cx||(new cx([1,2])).size!==2?lm:function(a){return new cx(a)},fY=cA?function(a){return cA.get(a)}:lm,f_=eX("length"),gc=b$||function(){return[]};if(co&&gd(new co)!=N||cx&&gd(new cx)!=R)gd=function(a){var b=bR.call(a),c=b==P?a.constructor:null,d=typeof c=="function"?bN.call(c):"";if(d){if(d==cB)return N;if(d==cE)return R}return b};var gu=function(){var a=0,b=0;return function(c,d){var e=ip(),f=r-(e-b);b=e;if(f>0){if(++a>=q)return c}else a=0;return fd(c,d)}}(),gB=iI(function(a,b){return iV(a)||(a=a==null?[]:[Object(a)]),b=ew(b),cP(a,b)}),gC=iI(function(a,b){return iX(a)?eq(a,ew(b,!1,!0)):[]}),gD=iI(function(b,c){var d=gX(c);return iX(d)&&(d=a),iX(b)?eq(b,ew(c,!1,!0),f$(d)):[]}),gE=iI(function(b,c){var d=gX(c);return iX(d)&&(d=a),iX(b)?eq(b,ew(c,!1,!0),a,d):[]}),gT=iI(function(a){var b=cW(a,gw);return b.length&&b[0]===a[0]?eH(b):[]}),gU=iI(function(b){var c=gX(b),d=cW(b,gw);return c===gX(d)?c=a:d.pop(),d.length&&d[0]===b[0]?eH(d,f$(c)):[]}),gV=iI(function(b){var c=gX(b),d=cW(b,gw);return c===gX(d)?c=a:d.pop(),d.length&&d[0]===b[0]?eH(d,a,c):[]}),gZ=iI(g$),ha=iI(function(a,b){b=cW(ew(b),String);var c=ek(a,b);return e_(a,b.sort(dn)),c}),hr=iI(function(a){return fl(ew(a,!1,!0))}),hs=iI(function(b){var c=gX(b);return iX(c)&&(c=a),fl(ew(b,!1,!0),f$(c))}),ht=iI(function(b){var c=gX(b);return iX(c)&&(c=a),fl(ew(b,!1,!0),a,c)}),hz=iI(function(a,b){return iX(a)?eq(a,b):[]}),hA=iI(function(a){return fp(cT(a,iX))}),hB=iI(function(b){var c=gX(b);return iX(c)&&(c=a),fp(cT(b,iX),f$(c))}),hC=iI(function(b){var c=gX(b);return iX(c)&&(c=a),fp(cT(b,iX),a,c)}),hD=iI(hx),hF=iI(function(b){var c=b.length,d=c>1?b[c-1]:a;return d=typeof d=="function"?(b.pop(),d):a,hy(b,d)}),hJ=iI(function(b){b=ew(b);var c=b.length,d=c?b[0]:0,e=this.__wrapped__,f=function(a){return ek(a,b)};return c>1||this.__actions__.length||!(e instanceof dF)||!dv(d)?this.thru(f):(e=e.slice(d,+d+(c?1:0)),e.__actions__.push({func:hI,args:[f],thisArg:a}),(new dm(e,this.__chain__)).thru(function(b){return c&&!b.length&&b.push(a),b}))}),hS=fC(function(a,b,c){bO.call(a,c)?++a[c]:a[c]=1}),hZ=fC(function(a,b,c){bO.call(a,c)?a[c].push(b):a[c]=[b]}),h_=iI(function(b,c,d){var e=-1,f=typeof c=="function",g=gl(c),h=iW(b)?Array(b.length):[];return er(b,function(b){var i=f?c:g&&b!=null?b[c]:a;h[++e]=i?cO(i,b,d):eI(b,c,d)}),h}),ia=fC(function(a,b,c){a[c]=b}),id=fC(function(a,b,c){a[c?0:1].push(b)},function(){return[[],[]]}),io=iI(function(a,b){if(a==null)return[];var c=b.length;return c>1&&gk(a,b[0],b[1])?b=[]:c>2&&gk(b[0],b[1],b[2])&&(b.length=1),eU(a,ew(b),[])}),ip=bD.now,it=iI(function(a,b,d){var e=c;if(d.length){var f=dy(d,it.placeholder);e|=h}return fU(a,e,b,d,f)}),iu=iI(function(a,b,e){var f=c|d;if(e.length){var g=dy(e,iu.placeholder);f|=h}return fU(b,f,a,e,g)}),iy=iI(function(a,b){return ep(a,1,b)}),iz=iI(function(a,b,c){return ep(a,jC(b)||0,c)}),iE=iI(function(a,b){b=cW(ew(b),f$());var c=b.length;return iI(function(d){var e=-1,f=cj(d.length,c);while(++e<f)d[e]=b[e].call(this,d[e]);return cO(a,this,d)})}),iF=iI(function(b,c){var d=dy(c,iF.placeholder);return fU(b,h,a,c,d)}),iG=iI(function(b,c){var d=dy(c,iG.placeholder);return fU(b,i,a,c,d)}),iH=iI(function(b,c){return fU(b,k,a,a,a,ew(c))}),iV=Array.isArray,jG=fD(function(a,b){fz(b,j_(b),a)}),jH=fD(function(a,b){fz(b,ka(b),a)}),jI=fD(function(a,b,c,d){fA(b,ka(b),a,d)}),jJ=fD(function(a,b,c,d){fA(b,j_(b),a,d)}),jK=iI(function(a,b){return ek(a,ew(b))}),jM=iI(function(b){return b.push(a,eg),cO(jI,a,b)}),jN=iI(function(b){return b.push(a,gr),cO(ke,a,b)}),j$=iI(eI),kd=fD(function(a,b,c){eS(a,b,c)}),ke=fD(function(a,b,c,d){eS(a,b,c,d)}),kf=iI(function(a,b){return a==null?{}:(b=cW(ew(b),String),eV(a,eq(ka(a),b)))}),kh=iI(function(a,b){return a==null?{}:eV(a,ew(b))}),kv=fI(function(a,b,c){return b=b.toLowerCase(),a+(c?kw(b):b)}),kB=fI(function(a,b,c){return a+(c?"-":"")+b.toLowerCase()}),kC=fI(function(a,b,c){return a+(c?" ":"")+b.toLowerCase()}),kD=fH("toLowerCase"),kE=fH("toUpperCase"),kL=fI(function(a,b,c){return a+(c?"_":"")+b.toLowerCase()}),kN=fI(function(a,b,c){return a+(c?" ":"")+kw(b)}),kX=fI(function(a,b,c){return a+(c?" ":"")+b.toUpperCase()}),kZ=iI(function(b,c){try{return cO(b,a,c)}catch(d){return jc(d)?d:new bH(d)}}),k$=iI(function(a,b){return cQ(ew(b),function(b){a[b]=it(a[b],a)}),a}),lc=fL(),ld=fL(!0),li=iI(function(a,b){return function(c){return eI(c,a,b)}}),lj=iI(function(a,b){return function(c){return eI(a,c,b)}}),lo=fN(cW),lp=fN(cS),lq=fN(c$),lt=fQ(),lu=fQ(!0),lz=fS("ceil"),lA=fS("floor"),lG=fS("round");return cJ.prototype=cK.prototype,dm.prototype=eo(cK.prototype),dm.prototype.constructor=dm,dF.prototype=eo(cK.prototype),dF.prototype.constructor=dF,dJ.prototype=cz?cz(null):bM,dO.prototype.clear=dP,dO.prototype["delete"]=dQ,dO.prototype.get=dR,dO.prototype.has=dS,dO.prototype.set=dT,dU.prototype.push=dW,dX.prototype.clear=dY,dX.prototype["delete"]=dZ,dX.prototype.get=d$,dX.prototype.has=d_,dX.prototype.set=ea,iB.Cache=dO,cJ.after=iq,cJ.ary=ir,cJ.assign=jG,cJ.assignIn=jH,cJ.assignInWith=jI,cJ.assignWith=jJ,cJ.at=jK,cJ.before=is,cJ.bind=it,cJ.bindAll=k$,cJ.bindKey=iu,cJ.chain=hG,cJ.chunk=gz,cJ.compact=gA,cJ.concat=gB,cJ.cond=k_,cJ.conforms=la,cJ.constant=lb,cJ.countBy=hS,cJ.create=jL,cJ.curry=iv,cJ.curryRight=iw,cJ.debounce=ix,cJ.defaults=jM,cJ.defaultsDeep=jN,cJ.defer=iy,cJ.delay=iz,cJ.difference=gC,cJ.differenceBy=gD,cJ.differenceWith=gE,cJ.drop=gF,cJ.dropRight=gG,cJ.dropRightWhile=gH,cJ.dropWhile=gI,cJ.fill=gJ,cJ.filter=hU,cJ.flatMap=gM,cJ.flatten=gN,cJ.flattenDeep=gO,cJ.flip=iA,cJ.flow=lc,cJ.flowRight=ld,cJ.fromPairs=gP,cJ.functions=jU,cJ.functionsIn=jV,cJ.groupBy=hZ,cJ.initial=gS,cJ.intersection=gT,cJ.intersectionBy=gU,cJ.intersectionWith=gV,cJ.invert=jZ,cJ.invokeMap=h_,cJ.iteratee=lf,cJ.keyBy=ia,cJ.keys=j_,cJ.keysIn=ka,cJ.map=ib,cJ.mapKeys=kb,cJ.mapValues=kc,cJ.matches=lg,cJ.matchesProperty=lh,cJ.memoize=iB,cJ.merge=kd,cJ.mergeWith=ke,cJ.method=li,cJ.methodOf=lj,cJ.mixin=lk,cJ.negate=iC,cJ.nthArg=ln,cJ.omit=kf,cJ.omitBy=kg,cJ.once=iD,cJ.orderBy=ic,cJ.over=lo,cJ.overArgs=iE,cJ.overEvery=lp,cJ.overSome=lq,cJ.partial=iF,cJ.partialRight=iG,cJ.partition=id,cJ.pick=kh,cJ.pickBy=ki,cJ.property=lr,cJ.propertyOf=ls,cJ.pull=gZ,cJ.pullAll=g$,cJ.pullAllBy=g_,cJ.pullAt=ha,cJ.range=lt,cJ.rangeRight=lu,cJ.rearg=iH,cJ.reject=ih,cJ.remove=hb,cJ.rest=iI,cJ.reverse=hc,cJ.sampleSize=ij,cJ.set=kk,cJ.setWith=kl,cJ.shuffle=ik,cJ.slice=hd,cJ.sortBy=io,cJ.sortedUniq=hk,cJ.sortedUniqBy=hl,cJ.split=kM,cJ.spread=iJ,cJ.tail=hm,cJ.take=hn,cJ.takeRight=ho,cJ.takeRightWhile=hp,cJ.takeWhile=hq,cJ.tap=hH,cJ.throttle=iK,cJ.thru=hI,cJ.toArray=jz,cJ.toPairs=km,cJ.toPairsIn=kn,cJ.toPath=lw,cJ.toPlainObject=jD,cJ.transform=ko,cJ.unary=iL,cJ.union=hr,cJ.unionBy=hs,cJ.unionWith=ht,cJ.uniq=hu,cJ.uniqBy=hv,cJ.uniqWith=hw,cJ.unset=kp,cJ.unzip=hx,cJ.unzipWith=hy,cJ.values=kq,cJ.valuesIn=kr,cJ.without=hz,cJ.words=kY,cJ.wrap=iM,cJ.xor=hA,cJ.xorBy=hB,cJ.xorWith=hC,cJ.zip=hD,cJ.zipObject=hE,cJ.zipWith=hF,cJ.extend=jH,cJ.extendWith=jI,lk(cJ,cJ),cJ.add=ly,cJ.attempt=kZ,cJ.camelCase=kv,cJ.capitalize=kw,cJ.ceil=lz,cJ.clamp=ks,cJ.clone=iN,cJ.cloneDeep=iP,cJ.cloneDeepWith=iQ,cJ.cloneWith=iO,cJ.deburr=kx,cJ.endsWith=ky,cJ.eq=iR,cJ.escape=kz,cJ.escapeRegExp=kA,cJ.every=hT,cJ.find=hV,cJ.findIndex=gK,cJ.findKey=jO,cJ.findLast=hW,cJ.findLastIndex=gL,cJ.findLastKey=jP,cJ.floor=lA,cJ.forEach=hX,cJ.forEachRight=hY,cJ.forIn=jQ,cJ.forInRight=jR,cJ.forOwn=jS,cJ.forOwnRight=jT,cJ.get=jW,cJ.gt=iS,cJ.gte=iT,cJ.has=jX,cJ.hasIn=jY,cJ.head=gQ,cJ.identity=le,cJ.includes=h$,cJ.indexOf=gR,cJ.inRange=kt,cJ.invoke=j$,cJ.isArguments=iU,cJ.isArray=iV,cJ.isArrayLike=iW,cJ.isArrayLikeObject=iX,cJ.isBoolean=iY,cJ.isDate=iZ,cJ.isElement=i$,cJ.isEmpty=i_,cJ.isEqual=ja,cJ.isEqualWith=jb,cJ.isError=jc,cJ.isFinite=jd,cJ.isFunction=je,cJ.isInteger=jf,cJ.isLength=jg,cJ.isMatch=jj,cJ.isMatchWith=jk,cJ.isNaN=jl,cJ.isNative=jm,cJ.isNil=jo,cJ.isNull=jn,cJ.isNumber=jp,cJ.isObject=jh,cJ.isObjectLike=ji,cJ.isPlainObject=jq,cJ.isRegExp=jr,cJ.isSafeInteger=js,cJ.isString=jt,cJ.isSymbol=ju,cJ.isTypedArray=jv,cJ.isUndefined=jw,cJ.join=gW,cJ.kebabCase=kB,cJ.last=gX,cJ.lastIndexOf=gY,cJ.lowerCase=kC,cJ.lowerFirst=kD,cJ.lt=jx,cJ.lte=jy,cJ.max=lB,cJ.maxBy=lC,cJ.mean=lD,cJ.min=lE,cJ.minBy=lF,cJ.noConflict=ll,cJ.noop=lm,cJ.now=ip,cJ.pad=kF,cJ.padEnd=kG,cJ.padStart=kH,cJ.parseInt=kI,cJ.random=ku,cJ.reduce=ie,cJ.reduceRight=ig,cJ.repeat=kJ,cJ.replace=kK,cJ.result=kj,cJ.round=lG,cJ.runInContext=dD,cJ.sample=ii,cJ.size=il,cJ.snakeCase=kL,cJ.some=im,cJ.sortedIndex=he,cJ.sortedIndexBy=hf,cJ.sortedIndexOf=hg,cJ.sortedLastIndex=hh,cJ.sortedLastIndexBy=hi,cJ.sortedLastIndexOf=hj,cJ.startCase=kN,cJ.startsWith=kO,cJ.subtract=lH,cJ.sum=lI,cJ.sumBy=lJ,cJ.template=kP,cJ.times=lv,cJ.toInteger=jA,cJ.toLength=jB,cJ.toLower=kQ,cJ.toNumber=jC,cJ.toSafeInteger=jE,cJ.toString=jF,cJ.toUpper=kR,cJ.trim=kS,cJ.trimEnd=kT,cJ.trimStart=kU,cJ.truncate=kV,cJ.unescape=kW,cJ.uniqueId=lx,cJ.upperCase=kX,cJ.upperFirst=kE,cJ.each=hX,cJ.eachRight=hY,cJ.first=gQ,lk(cJ,function(){var a={};return eA(cJ,function(b,c){bO.call(cJ.prototype,c)||(a[c]=b)}),a}(),{chain:!1}),cJ.VERSION=b,cQ(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){cJ[a].placeholder=cJ}),cQ(["drop","take"],function(b,c){dF.prototype[b]=function(d){var e=this.__filtered__;if(e&&!c)return new dF(this);d=d===a?1:ci(jA(d),0);var f=this.clone();return e?f.__takeCount__=cj(d,f.__takeCount__):f.__views__.push({size:cj(d,C),type:b+(f.__dir__<0?"Right":"")}),f},dF.prototype[b+"Right"]=function(a){return this.reverse()[b](a).reverse()}}),cQ(["filter","map","takeWhile"],function(a,b){var c=b+1,d=c==t||c==v;dF.prototype[a]=function(a){var b=this.clone();return b.__iteratees__.push({iteratee:f$(a,3),type:c}),b.__filtered__=b.__filtered__||d,b}}),cQ(["head","last"],function(a,b){var c="take"+(b?"Right":"");dF.prototype[a]=function(){return this[c](1).value()[0]}}),cQ(["initial","tail"],function(a,b){var c="drop"+(b?"":"Right");dF.prototype[a]=function(){return this.__filtered__?new dF(this):this[c](1)}}),dF.prototype.compact=function(){return this.filter(le)},dF.prototype.find=function(a){return this.filter(a).head()},dF.prototype.findLast=function(a){return this.reverse().find(a)},dF.prototype.invokeMap=iI(function(a,b){return typeof a=="function"?new dF(this):this.map(function(c){return eI(c,a,b)})}),dF.prototype.reject=function(a){return a=f$(a,3),this.filter(function(b){return!a(b)})},dF.prototype.slice=function(b,c){b=jA(b);var d=this;return d.__filtered__&&(b>0||c<0)?new dF(d):(b<0?d=d.takeRight(-b):b&&(d=d.drop(b)),c!==a&&(c=jA(c),d=c<0?d.dropRight(-c):d.take(c-b)),d)},dF.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},dF.prototype.toArray=function(){return this.take(C)},eA(dF.prototype,function(b,c){var d=/^(?:filter|find|map|reject)|While$/.test(c),e=/^(?:head|last)$/.test(c),f=cJ[e?"take"+(c=="last"?"Right":""):c],g=e||/^find/.test(c);if(!f)return;cJ.prototype[c]=function(){var c=this.__wrapped__,h=e?[1]:arguments,i=c instanceof dF,j=h[0],k=i||iV(c),l=function(a){var b=f.apply(cJ,cX([a],h));return e&&m?b[0]:b};k&&d&&typeof j=="function"&&j.length!=1&&(i=k=!1);var m=this.__chain__,n=!!this.__actions__.length,o=g&&!m,p=i&&!n;if(!g&&k){c=p?c:new dF(this);var q=b.apply(c,h);return q.__actions__.push({func:hI,args:[l],thisArg:a}),new dm(q,m)}return o&&p?b.apply(this,h):(q=this.thru(l),o?e?q.value()[0]:q.value():q)}}),cQ(["pop","push","shift","sort","splice","unshift"],function(a){var b=bL[a],c=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",d=/^(?:pop|shift)$/.test(a);cJ.prototype[a]=function(){var a=arguments;return d&&!this.__chain__?b.apply(this.value(),a):this[c](function(c){return b.apply(c,a)})}}),eA(dF.prototype,function(a,b){var c=cJ[b];if(c){var d=c.name+"",e=cI[d]||(cI[d]=[]);e.push({name:b,func:c})}}),cI[fM(a,d).name]=[{name:"wrapper",func:a}],dF.prototype.clone=dG,dF.prototype.reverse=dH,dF.prototype.value=dI,cJ.prototype.at=hJ,cJ.prototype.chain=hK,cJ.prototype.commit=hL,cJ.prototype.flatMap=hM,cJ.prototype.next=hN,cJ.prototype.plant=hP,cJ.prototype.reverse=hQ,cJ.prototype.toJSON=cJ.prototype.valueOf=cJ.prototype.value=hR,b_&&(cJ.prototype[b_]=hO),cJ}var a,b="4.0.1",c=1,d=2,e=4,f=8,g=16,h=32,i=64,j=128,k=256,l=512,m=1,n=2,o=30,p="...",q=150,r=16,s=200,t=1,u=2,v=3,w="Expected a function",x="__lodash_hash_undefined__",y=1/0,z=9007199254740991,A=1.7976931348623157e+308,B=NaN,C=4294967295,D=C-1,E=C>>>1,F="__lodash_placeholder__",G="[object Arguments]",H="[object Array]",I="[object Boolean]",J="[object Date]",K="[object Error]",L="[object Function]",M="[object GeneratorFunction]",N="[object Map]",O="[object Number]",P="[object Object]",Q="[object RegExp]",R="[object Set]",S="[object String]",T="[object Symbol]",U="[object WeakMap]",V="[object ArrayBuffer]",W="[object Float32Array]",X="[object Float64Array]",Y="[object Int8Array]",Z="[object Int16Array]",$="[object Int32Array]",_="[object Uint8Array]",ba="[object Uint8ClampedArray]",bb="[object Uint16Array]",bc="[object Uint32Array]",bd=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,bf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bg=/&(?:amp|lt|gt|quot|#39|#96);/g,bh=/[&<>"'`]/g,bi=RegExp(bg.source),bj=RegExp(bh.source),bk=/<%-([\s\S]+?)%>/g,bl=/<%([\s\S]+?)%>/g,bm=/<%=([\s\S]+?)%>/g,bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bo=/^\w*$/,bp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,bq=/[\\^$.*+?()[\]{}|]/g,br=RegExp(bq.source),bs=/^\s+|\s+$/g,bt=/^\s+/,bu=/\s+$/,bv=/\\(\\)?/g,bw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bx=/\w*$/,by=/^0x/i,bz=/^[-+]0x[0-9a-f]+$/i,bA=/^0b[01]+$/i,bB=/^\[object .+?Constructor\]$/,bC=/^0o[0-7]+$/i,bD=/^(?:0|[1-9]\d*)$/,bE=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,bF=/($^)/,bG=/['\n\r\u2028\u2029\\]/g,bH="\\ud800-\\udfff",bI="\\u0300-\\u036f\\ufe20-\\ufe23",bJ="\\u20d0-\\u20f0",bK="\\u2700-\\u27bf",bL="a-z\\xdf-\\xf6\\xf8-\\xff",bM="\\xac\\xb1\\xd7\\xf7",bN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bO="\\u2018\\u2019\\u201c\\u201d",bP=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bQ="A-Z\\xc0-\\xd6\\xd8-\\xde",bR="\\ufe0e\\ufe0f",bS=bM+bN+bO+bP,bT="["+bH+"]",bU="["+bS+"]",bV="["+bI+bJ+"]",bW="\\d+",bX="["+bK+"]",bY="["+bL+"]",bZ="[^"+bH+bS+bW+bK+bL+bQ+"]",b$="\\ud83c[\\udffb-\\udfff]",b_="(?:"+bV+"|"+b$+")",ca="[^"+bH+"]",cb="(?:\\ud83c[\\udde6-\\uddff]){2}",cc="[\\ud800-\\udbff][\\udc00-\\udfff]",cd="["+bQ+"]",ce="\\u200d",cf="(?:"+bY+"|"+bZ+")",cg="(?:"+cd+"|"+bZ+")",ch=b_+"?",ci="["+bR+"]?",cj="(?:"+ce+"(?:"+[ca,cb,cc].join("|")+")"+ci+ch+")*",ck=ci+ch+cj,cl="(?:"+[bX,cb,cc].join("|")+")"+ck,cm="(?:"+[ca+bV+"?",bV,cb,cc,bT].join("|")+")",cn=RegExp(bV,"g"),co=RegExp(b$+"(?="+b$+")|"+cm+ck,"g"),cp=RegExp("["+ce+bH+bI+bJ+bR+"]"),cq=/[a-zA-Z0-9]+/g,cr=RegExp([cd+"?"+bY+"+(?="+[bU,cd,"$"].join("|")+")",cg+"+(?="+[bU,cd+cf,"$"].join("|")+")",cd+"?"+cf+"+",cd+"+",bW,cl].join("|"),"g"),cs=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ct=["Array","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cu=-1,cv={};cv[W]=cv[X]=cv[Y]=cv[Z]=cv[$]=cv[_]=cv[ba]=cv[bb]=cv[bc]=!0,cv[G]=cv[H]=cv[V]=cv[I]=cv[J]=cv[K]=cv[L]=cv[N]=cv[O]=cv[P]=cv[Q]=cv[R]=cv[S]=cv[U]=!1;var cw={};cw[G]=cw[H]=cw[V]=cw[I]=cw[J]=cw[W]=cw[X]=cw[Y]=cw[Z]=cw[$]=cw[N]=cw[O]=cw[P]=cw[Q]=cw[R]=cw[S]=cw[T]=cw[_]=cw[ba]=cw[bb]=cw[bc]=!0,cw[K]=cw[L]=cw[U]=!1;var cx={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},cy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},cz={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},cA={"function":!0,object:!0},cB={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cC=parseFloat,cD=parseInt,cE=cA[typeof exports]&&exports&&!exports.nodeType?exports:null,cF=cA[typeof module]&&module&&!module.nodeType?module:null,cG=dm(cE&&cF&&typeof global=="object"&&global),cH=dm(cA[typeof self]&&self),cI=dm(cA[typeof window]&&window),cJ=cF&&cF.exports===cE?cE:null,cK=dm(cA[typeof this]&&this),cL=cG||cI!==(cK&&cK.window)&&cI||cH||cK||Function("return this")(),dE=dD();(cI||cH||{})._=dE,typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return dE}):cE&&cF?(cJ&&((cF.exports=dE)._=dE),cE._=dE):cL._=dE})).call(this)
  ;(function(a){"performance"in a==0&&(a.performance={}),Date.now=Date.now||function(){return(new Date).getTime()};if("now"in a.performance==0){var b=a.performance.timing&&a.performance.timing.navigationStart?performance.timing.navigationStart:Date.now();a.performance.now=function(){return Date.now()-b}}})(this);var TWEEN=TWEEN||function(){var a=[];return{REVISION:"14",getAll:function(){return a},removeAll:function(){a=[]},add:function(b){a.push(b)},remove:function(b){var c=a.indexOf(b);c!==-1&&a.splice(c,1)},update:function(b){if(a.length===0)return!1;var c=0;b=b!==undefined?b:window.performance.now();while(c<a.length)a[c].update(b)?c++:a.splice(c,1);return!0}}}();TWEEN.Tween=function(a){var b=a,c={},d={},e={},f=1e3,g=0,h=!1,i=!1,j=!1,k=0,l=null,m=TWEEN.Easing.Linear.None,n=TWEEN.Interpolation.Linear,o=[],p=null,q=!1,r=null,s=null,t=null;for(var u in a)c[u]=parseFloat(a[u],10);this.to=function(a,b){return b!==undefined&&(f=b),d=a,this},this.start=function(a){TWEEN.add(this),i=!0,q=!1,l=a!==undefined?a:window.performance.now(),l+=k;for(var f in d){if(d[f]instanceof Array){if(d[f].length===0)continue;d[f]=[b[f]].concat(d[f])}c[f]=b[f],c[f]instanceof Array==0&&(c[f]*=1),e[f]=c[f]||0}return this},this.stop=function(){return i?(TWEEN.remove(this),i=!1,t!==null&&t.call(b),this.stopChainedTweens(),this):this},this.stopChainedTweens=function(){for(var a=0,b=o.length;a<b;a++)o[a].stop()},this.delay=function(a){return k=a,this},this.repeat=function(a){return g=a,this},this.yoyo=function(a){return h=a,this},this.easing=function(a){return m=a,this},this.interpolation=function(a){return n=a,this},this.chain=function(){return o=arguments,this},this.onStart=function(a){return p=a,this},this.onUpdate=function(a){return r=a,this},this.onComplete=function(a){return s=a,this},this.onStop=function(a){return t=a,this},this.update=function(a){var i;if(a<l)return!0;q===!1&&(p!==null&&p.call(b),q=!0);var t=(a-l)/f;t=t>1?1:t;var u=m(t);for(i in d){var v=c[i]||0,w=d[i];w instanceof Array?b[i]=n(w,u):(typeof w=="string"&&(w=v+parseFloat(w,10)),typeof w=="number"&&(b[i]=v+(w-v)*u))}r!==null&&r.call(b,u);if(t==1){if(g>0){isFinite(g)&&g--;for(i in e){typeof d[i]=="string"&&(e[i]=e[i]+parseFloat(d[i],10));if(h){var x=e[i];e[i]=d[i],d[i]=x}c[i]=e[i]}return h&&(j=!j),l=a+k,!0}s!==null&&s.call(b);for(var y=0,z=o.length;y<z;y++)o[y].start(a);return!1}return!0}},TWEEN.Easing={Linear:{None:function(a){return a}},Quadratic:{In:function(a){return a*a},Out:function(a){return a*(2-a)},InOut:function(a){return(a*=2)<1?.5*a*a:-0.5*(--a*(a-2)-1)}},Cubic:{In:function(a){return a*a*a},Out:function(a){return--a*a*a+1},InOut:function(a){return(a*=2)<1?.5*a*a*a:.5*((a-=2)*a*a+2)}},Quartic:{In:function(a){return a*a*a*a},Out:function(a){return 1- --a*a*a*a},InOut:function(a){return(a*=2)<1?.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2)}},Quintic:{In:function(a){return a*a*a*a*a},Out:function(a){return--a*a*a*a*a+1},InOut:function(a){return(a*=2)<1?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)}},Sinusoidal:{In:function(a){return 1-Math.cos(a*Math.PI/2)},Out:function(a){return Math.sin(a*Math.PI/2)},InOut:function(a){return.5*(1-Math.cos(Math.PI*a))}},Exponential:{In:function(a){return a===0?0:Math.pow(1024,a-1)},Out:function(a){return a===1?1:1-Math.pow(2,-10*a)},InOut:function(a){return a===0?0:a===1?1:(a*=2)<1?.5*Math.pow(1024,a-1):.5*(-Math.pow(2,-10*(a-1))+2)}},Circular:{In:function(a){return 1-Math.sqrt(1-a*a)},Out:function(a){return Math.sqrt(1- --a*a)},InOut:function(a){return(a*=2)<1?-0.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)}},Elastic:{In:function(a){var b,c=.1,d=.4;return a===0?0:a===1?1:(!c||c<1?(c=1,b=d/4):b=d*Math.asin(1/c)/(2*Math.PI),-(c*Math.pow(2,10*(a-=1))*Math.sin((a-b)*2*Math.PI/d)))},Out:function(a){var b,c=.1,d=.4;return a===0?0:a===1?1:(!c||c<1?(c=1,b=d/4):b=d*Math.asin(1/c)/(2*Math.PI),c*Math.pow(2,-10*a)*Math.sin((a-b)*2*Math.PI/d)+1)},InOut:function(a){var b,c=.1,d=.4;return a===0?0:a===1?1:(!c||c<1?(c=1,b=d/4):b=d*Math.asin(1/c)/(2*Math.PI),(a*=2)<1?-0.5*c*Math.pow(2,10*(a-=1))*Math.sin((a-b)*2*Math.PI/d):c*Math.pow(2,-10*(a-=1))*Math.sin((a-b)*2*Math.PI/d)*.5+1)}},Back:{In:function(a){var b=1.70158;return a*a*((b+1)*a-b)},Out:function(a){var b=1.70158;return--a*a*((b+1)*a+b)+1},InOut:function(a){var b=2.5949095;return(a*=2)<1?.5*a*a*((b+1)*a-b):.5*((a-=2)*a*((b+1)*a+b)+2)}},Bounce:{In:function(a){return 1-TWEEN.Easing.Bounce.Out(1-a)},Out:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},InOut:function(a){return a<.5?TWEEN.Easing.Bounce.In(a*2)*.5:TWEEN.Easing.Bounce.Out(a*2-1)*.5+.5}}},TWEEN.Interpolation={Linear:function(a,b){var c=a.length-1,d=c*b,e=Math.floor(d),f=TWEEN.Interpolation.Utils.Linear;return b<0?f(a[0],a[1],d):b>1?f(a[c],a[c-1],c-d):f(a[e],a[e+1>c?c:e+1],d-e)},Bezier:function(a,b){var c=0,d=a.length-1,e=Math.pow,f=TWEEN.Interpolation.Utils.Bernstein,g;for(g=0;g<=d;g++)c+=e(1-b,d-g)*e(b,g)*a[g]*f(d,g);return c},CatmullRom:function(a,b){var c=a.length-1,d=c*b,e=Math.floor(d),f=TWEEN.Interpolation.Utils.CatmullRom;return a[0]===a[c]?(b<0&&(e=Math.floor(d=c*(1+b))),f(a[(e-1+c)%c],a[e],a[(e+1)%c],a[(e+2)%c],d-e)):b<0?a[0]-(f(a[0],a[0],a[1],a[1],-d)-a[0]):b>1?a[c]-(f(a[c],a[c],a[c-1],a[c-1],d-c)-a[c]):f(a[e?e-1:0],a[e],a[c<e+1?c:e+1],a[c<e+2?c:e+2],d-e)},Utils:{Linear:function(a,b,c){return(b-a)*c+a},Bernstein:function(a,b){var c=TWEEN.Interpolation.Utils.Factorial;return c(a)/c(b)/c(a-b)},Factorial:function(){var a=[1];return function(b){var c=1,d;if(a[b])return a[b];for(d=b;d>1;d--)c*=d;return a[b]=c}}(),CatmullRom:function(a,b,c,d,e){var f=(c-a)*.5,g=(d-b)*.5,h=e*e,i=e*h;return(2*b-2*c+f+g)*i+(-3*b+3*c-2*f-g)*h+f*e+b}}},function(a){typeof define=="function"&&define.amd?define([],function(){return TWEEN}):typeof exports=="object"?module.exports=TWEEN:a.TWEEN=TWEEN}(this)
  ;(function(a,b,c){function q(b,c){if(a.isArray(b)){for(var d=b.length-1;d>=0;d--){var f=b[d];if(a.type(f)!=="string"||!e.transports[f])c.log("Invalid transport: "+f+", removing it from the transports list."),b.splice(d,1)}b.length===0&&(c.log("No transports remain within the specified transport array."),b=null)}else if(!e.transports[b]&&b!=="auto")c.log("Invalid transport: "+b.toString()+"."),b=null;else if(b==="auto"&&e._.ieVersion<=8)return["longPolling"];return b}function r(a){if(a==="http:")return 80;if(a==="https:")return 443}function s(a,b){return b.match(/:\d+$/)?b:b+":"+r(a)}function t(b,c){var d=this,e=[];d.tryBuffer=function(c){return b.state===a.signalR.connectionState.connecting?(e.push(c),!0):!1},d.drain=function(){if(b.state===a.signalR.connectionState.connected)while(e.length>0)c(e.shift())},d.clear=function(){e=[]}}var d={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorDuringStartRequest:"Error during start request. Stopping the connection.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server.  Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection."};if(typeof a!="function")throw new Error(d.nojQuery);var e,f,g=b.document.readyState==="complete",h=a(b),i="__Negotiate Aborted__",j={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},k={processData:!0,timeout:null,async:!0,global:!1,cache:!1},l=function(a,c){if(c===!1)return;var d;if(typeof b.console=="undefined")return;d="["+(new Date).toTimeString()+"] SignalR: "+a,b.console.debug?b.console.debug(d):b.console.log&&b.console.log(d)},m=function(b,c,d){return c===b.state?(b.state=d,a(b).triggerHandler(j.onStateChanged,[{oldState:c,newState:d}]),!0):!1},n=function(a){return a.state===e.connectionState.disconnected},o=function(a){return a._.keepAliveData.activated&&a.transport.supportsKeepAlive(a)},p=function(c){var d,f;c._.configuredStopReconnectingTimeout||(f=function(b){var c=e._.format(e.resources.reconnectTimeout,b.disconnectTimeout);b.log(c),a(b).triggerHandler(j.onError,[e._.error(c,"TimeoutException")]),b.stop(!1,!1)},c.reconnecting(function(){var a=this;a.state===e.connectionState.reconnecting&&(d=b.setTimeout(function(){f(a)},a.disconnectTimeout))}),c.stateChanged(function(a){a.oldState===e.connectionState.reconnecting&&b.clearTimeout(d)}),c._.configuredStopReconnectingTimeout=!0)};e=function(a,b,c){return new e.fn.init(a,b,c)},e._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:function(){var a,c;return b.navigator.appName==="Microsoft Internet Explorer"&&(c=/MSIE ([0-9]+\.[0-9]+)/.exec(b.navigator.userAgent),c&&(a=b.parseFloat(c[1]))),a}(),error:function(a,b,c){var d=new Error(a);return d.source=b,typeof c!="undefined"&&(d.context=c),d},transportError:function(a,b,d,e){var f=this.error(a,d,e);return f.transport=b?b.name:c,f},format:function(){var a=arguments[0];for(var b=0;b<arguments.length-1;b++)a=a.replace("{"+b+"}",arguments[b+1]);return a},firefoxMajorVersion:function(a){var b=a.match(/Firefox\/(\d+)/);return!b||!b.length||b.length<2?0:parseInt(b[1],10)},configurePingInterval:function(c){var d=c._.config,f=function(b){a(c).triggerHandler(j.onError,[b])};d&&!c._.pingIntervalId&&d.pingInterval&&(c._.pingIntervalId=b.setInterval(function(){e.transports._logic.pingServer(c).fail(f)},d.pingInterval))}},e.events=j,e.resources=d,e.ajaxDefaults=k,e.changeState=m,e.isDisconnecting=n,e.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4},e.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'></script>.")}},h.load(function(){g=!0}),e.fn=e.prototype={init:function(b,c,d){var e=a(this);this.url=b,this.qs=c,this.lastError=null,this._={keepAliveData:{},connectingMessageBuffer:new t(this,function(a){e.triggerHandler(j.onReceived,[a])}),lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null,totalTransportConnectTimeout:0},typeof d=="boolean"&&(this.logging=d)},_parseResponse:function(a){var b=this;return a?typeof a=="string"?b.json.parse(a):a:a},_originalJson:b.JSON,json:b.JSON,isCrossDomain:function(c,d){var e;return c=a.trim(c),d=d||b.location,c.indexOf("http")!==0?!1:(e=b.document.createElement("a"),e.href=c,e.protocol+s(e.protocol,e.host)!==d.protocol+s(d.protocol,d.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:e.connectionState.disconnected,clientProtocol:"1.5",reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(c,f){var k=this,l={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},n,r=k._deferral||a.Deferred(),s=b.document.createElement("a");k.lastError=null,k._deferral=r;if(!k.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");a.type(c)==="function"?f=c:a.type(c)==="object"&&(a.extend(l,c),a.type(l.callback)==="function"&&(f=l.callback)),l.transport=q(l.transport,k);if(!l.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");k._.config=l;if(!g&&l.waitForPageLoad===!0)return k._.deferredStartHandler=function(){k.start(c,f)},h.bind("load",k._.deferredStartHandler),r.promise();if(k.state===e.connectionState.connecting)return r.promise();if(m(k,e.connectionState.disconnected,e.connectionState.connecting)===!1)return r.resolve(k),r.promise();p(k),s.href=k.url,!s.protocol||s.protocol===":"?(k.protocol=b.document.location.protocol,k.host=s.host||b.document.location.host):(k.protocol=s.protocol,k.host=s.host),k.baseUrl=k.protocol+"//"+k.host,k.wsProtocol=k.protocol==="https:"?"wss://":"ws://",l.transport==="auto"&&l.jsonp===!0&&(l.transport="longPolling"),k.url.indexOf("//")===0&&(k.url=b.location.protocol+k.url,k.log("Protocol relative URL detected, normalizing it to '"+k.url+"'.")),this.isCrossDomain(k.url)&&(k.log("Auto detected cross domain url."),l.transport==="auto"&&(l.transport=["webSockets","serverSentEvents","longPolling"]),typeof l.withCredentials=="undefined"&&(l.withCredentials=!0),l.jsonp||(l.jsonp=!a.support.cors,l.jsonp&&k.log("Using jsonp because this browser doesn't support CORS.")),k.contentType=e._.defaultContentType),k.withCredentials=l.withCredentials,k.ajaxDataType=l.jsonp?"jsonp":"text",a(k).bind(j.onStart,function(b,c){a.type(f)==="function"&&f.call(k),r.resolve(k)}),k._.initHandler=e.transports._logic.initHandler(k),n=function(c,f){var g=e._.error(d.noTransportOnInit);f=f||0;if(f>=c.length){f===0?k.log("No transports supported by the server were selected."):f===1?k.log("No fallback transports were selected."):k.log("Fallback transports exhausted."),a(k).triggerHandler(j.onError,[g]),r.reject(g),k.stop();return}if(k.state===e.connectionState.disconnected)return;var i=c[f],l=e.transports[i],p=function(){n(c,f+1)};k.transport=l;try{k._.initHandler.start(l,function(){var c=e._.firefoxMajorVersion(b.navigator.userAgent)>=11,d=!!k.withCredentials&&c;k.log("The start request succeeded. Transitioning to the connected state."),o(k)&&e.transports._logic.monitorKeepAlive(k),e.transports._logic.startHeartbeat(k),e._.configurePingInterval(k),m(k,e.connectionState.connecting,e.connectionState.connected)||k.log("WARNING! The connection was not in the connecting state."),k._.connectingMessageBuffer.drain(),a(k).triggerHandler(j.onStart),h.bind("unload",function(){k.log("Window unloading, stopping the connection."),k.stop(d)}),c&&h.bind("beforeunload",function(){b.setTimeout(function(){k.stop(d)},0)})},p)}catch(q){k.log(l.name+" transport threw '"+q.message+"' when attempting to start."),p()}};var t=k.url+"/negotiate",u=function(b,c){var f=e._.error(d.errorOnNegotiate,b,c._.negotiateRequest);a(c).triggerHandler(j.onError,f),r.reject(f),c.stop()};return a(k).triggerHandler(j.onStarting),t=e.transports._logic.prepareQueryString(k,t),k.log("Negotiating with '"+t+"'."),k._.negotiateRequest=e.transports._logic.ajax(k,{url:t,error:function(a,b){b!==i?u(a,k):r.reject(e._.error(d.stoppedWhileNegotiating,null,k._.negotiateRequest))},success:function(b){var c,f,g,h=[],i=[];try{c=k._parseResponse(b)}catch(m){u(e._.error(d.errorParsingNegotiateResponse,m),k);return}f=k._.keepAliveData,k.appRelativeUrl=c.Url,k.id=c.ConnectionId,k.token=c.ConnectionToken,k.webSocketServerUrl=c.WebSocketServerUrl,k._.pollTimeout=c.ConnectionTimeout*1e3+1e4,k.disconnectTimeout=c.DisconnectTimeout*1e3,k._.totalTransportConnectTimeout=k.transportConnectTimeout+c.TransportConnectTimeout*1e3,c.KeepAliveTimeout?(f.activated=!0,f.timeout=c.KeepAliveTimeout*1e3,f.timeoutWarning=f.timeout*k.keepAliveWarnAt,k._.beatInterval=(f.timeout-f.timeoutWarning)/3):f.activated=!1,k.reconnectWindow=k.disconnectTimeout+(f.timeout||0);if(!c.ProtocolVersion||c.ProtocolVersion!==k.clientProtocol){g=e._.error(e._.format(d.protocolIncompatible,k.clientProtocol,c.ProtocolVersion)),a(k).triggerHandler(j.onError,[g]),r.reject(g);return}a.each(e.transports,function(a){if(a.indexOf("_")===0||a==="webSockets"&&!c.TryWebSockets)return!0;i.push(a)}),a.isArray(l.transport)?a.each(l.transport,function(b,c){a.inArray(c,i)>=0&&h.push(c)}):l.transport==="auto"?h=i:a.inArray(l.transport,i)>=0&&h.push(l.transport),n(h)}}),r.promise()},starting:function(b){var c=this;return a(c).bind(j.onStarting,function(a,d){b.call(c)}),c},send:function(a){var b=this;if(b.state===e.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(b.state===e.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return b.transport.send(b,a),b},received:function(b){var c=this;return a(c).bind(j.onReceived,function(a,d){b.call(c,d)}),c},stateChanged:function(b){var c=this;return a(c).bind(j.onStateChanged,function(a,d){b.call(c,d)}),c},error:function(b){var c=this;return a(c).bind(j.onError,function(a,d,e){c.lastError=d,b.call(c,d,e)}),c},disconnected:function(b){var c=this;return a(c).bind(j.onDisconnect,function(a,d){b.call(c)}),c},connectionSlow:function(b){var c=this;return a(c).bind(j.onConnectionSlow,function(a,d){b.call(c)}),c},reconnecting:function(b){var c=this;return a(c).bind(j.onReconnecting,function(a,d){b.call(c)}),c},reconnected:function(b){var c=this;return a(c).bind(j.onReconnect,function(a,d){b.call(c)}),c},stop:function(c,f){var k=this,l=k._deferral;k._.deferredStartHandler&&h.unbind("load",k._.deferredStartHandler),delete k._.config,delete k._.deferredStartHandler;if(!g&&(!k._.config||k._.config.waitForPageLoad===!0)){k.log("Stopping connection prior to negotiate."),l&&l.reject(e._.error(d.stoppedWhileLoading));return}if(k.state===e.connectionState.disconnected)return;return k.log("Stopping connection."),m(k,k.state,e.connectionState.disconnected),b.clearTimeout(k._.beatHandle),b.clearInterval(k._.pingIntervalId),k.transport&&(k.transport.stop(k),f!==!1&&k.transport.abort(k,c),o(k)&&e.transports._logic.stopMonitoringKeepAlive(k),k.transport=null),k._.negotiateRequest&&(k._.negotiateRequest.abort(i),delete k._.negotiateRequest),k._.initHandler&&k._.initHandler.stop(),a(k).triggerHandler(j.onDisconnect),delete k._deferral,delete k.messageId,delete k.groupsToken,delete k.id,delete k._.pingIntervalId,delete k._.lastMessageAt,delete k._.lastActiveAt,k._.connectingMessageBuffer.clear(),k},log:function(a){l(a,this.logging)}},e.fn.init.prototype=e.fn,e.noConflict=function(){return a.connection===e&&(a.connection=f),e},a.connection&&(f=a.connection),a.connection=a.signalR=e})(window.jQuery,window),function(a,b,c){function i(a){a._.keepAliveData.monitoring&&j(a),h.markActive(a)&&(a._.beatHandle=b.setTimeout(function(){i(a)},a._.beatInterval))}function j(b){var c=b._.keepAliveData,f;b.state===d.connectionState.connected&&(f=(new Date).getTime()-b._.lastMessageAt,f>=c.timeout?(b.log("Keep alive timed out.  Notifying transport that connection has been lost."),b.transport.lostConnection(b)):f>=c.timeoutWarning?c.userNotified||(b.log("Keep alive has been missed, connection may be dead/slow."),a(b).triggerHandler(e.onConnectionSlow),c.userNotified=!0):c.userNotified=!1)}function k(a,b){var c=a.url+b;return a.transport&&(c+="?transport="+a.transport.name),h.prepareQueryString(a,c)}function l(a){this.connection=a,this.startRequested=!1,this.startCompleted=!1,this.connectionStopped=!1}var d=a.signalR,e=a.signalR.events,f=a.signalR.changeState,g="__Start Aborted__",h;d.transports={},l.prototype={start:function(a,d,e){var f=this,g=f.connection,h=!1;if(f.startRequested||f.connectionStopped){g.log("WARNING! "+a.name+" transport cannot be started. Initialization ongoing or completed.");return}g.log(a.name+" transport starting."),f.transportTimeoutHandle=b.setTimeout(function(){h||(h=!0,g.log(a.name+" transport timed out when trying to connect."),f.transportFailed(a,c,e))},g._.totalTransportConnectTimeout),a.start(g,function(){h||f.initReceived(a,d)},function(b){return h||(h=!0,f.transportFailed(a,b,e)),!f.startCompleted||f.connectionStopped})},stop:function(){this.connectionStopped=!0,b.clearTimeout(this.transportTimeoutHandle),d.transports._logic.tryAbortStartRequest(this.connection)},initReceived:function(a,c){var e=this,f=e.connection;if(e.startRequested){f.log("WARNING! The client received multiple init messages.");return}if(e.connectionStopped)return;e.startRequested=!0,b.clearTimeout(e.transportTimeoutHandle),f.log(a.name+" transport connected. Initiating start request."),d.transports._logic.ajaxStart(f,function(){e.startCompleted=!0,c()})},transportFailed:function(c,f,g){var h=this.connection,i=h._deferral,j;if(this.connectionStopped)return;b.clearTimeout(this.transportTimeoutHandle),this.startRequested?this.startCompleted||(j=d._.error(d.resources.errorDuringStartRequest,f),h.log(c.name+" transport failed during the start request. Stopping the connection."),a(h).triggerHandler(e.onError,[j]),i&&i.reject(j),h.stop()):(c.stop(h),h.log(c.name+" transport failed to connect. Attempting to fall back."),g())}},h=d.transports._logic={ajax:function(b,c){return a.ajax(a.extend(!0,{},a.signalR.ajaxDefaults,{type:"GET",data:{},xhrFields:{withCredentials:b.withCredentials},contentType:b.contentType,dataType:b.ajaxDataType},c))},pingServer:function(b){var c,e,f=a.Deferred();return b.transport?(c=b.url+"/ping",c=h.addQs(c,b.qs),e=h.ajax(b,{url:c,success:function(a){var c;try{c=b._parseResponse(a)}catch(g){f.reject(d._.transportError(d.resources.pingServerFailedParse,b.transport,g,e)),b.stop();return}c.Response==="pong"?f.resolve():f.reject(d._.transportError(d._.format(d.resources.pingServerFailedInvalidResponse,a),b.transport,null,e))},error:function(a){a.status===401||a.status===403?(f.reject(d._.transportError(d._.format(d.resources.pingServerFailedStatusCode,a.status),b.transport,a,e)),b.stop()):f.reject(d._.transportError(d.resources.pingServerFailed,b.transport,a,e))}})):f.reject(d._.transportError(d.resources.noConnectionTransport,b.transport)),f.promise()},prepareQueryString:function(a,c){var d;return d=h.addQs(c,"clientProtocol="+a.clientProtocol),d=h.addQs(d,a.qs),a.token&&(d+="&connectionToken="+b.encodeURIComponent(a.token)),a.data&&(d+="&connectionData="+b.encodeURIComponent(a.data)),d},addQs:function(b,c){var d=b.indexOf("?")!==-1?"&":"?",e;if(!c)return b;if(typeof c=="object")return b+d+a.param(c);if(typeof c=="string"){e=c.charAt(0);if(e==="?"||e==="&")d="";return b+d+c}throw new Error("Query string property must be either a string or object.")},getUrl:function(a,c,d,e,f){var g=c==="webSockets"?"":a.baseUrl,i=g+a.appRelativeUrl,j="transport="+c;return!f&&a.groupsToken&&(j+="&groupsToken="+b.encodeURIComponent(a.groupsToken)),d?(e?i+="/poll":i+="/reconnect",!f&&a.messageId&&(j+="&messageId="+b.encodeURIComponent(a.messageId))):i+="/connect",i+="?"+j,i=h.prepareQueryString(a,i),f||(i+="&tid="+Math.floor(Math.random()*11)),i},maximizePersistentResponse:function(a){return{MessageId:a.C,Messages:a.M,Initialized:typeof a.S!="undefined"?!0:!1,ShouldReconnect:typeof a.T!="undefined"?!0:!1,LongPollDelay:a.L,GroupsToken:a.G}},updateGroups:function(a,b){b&&(a.groupsToken=b)},stringifySend:function(a,b){return typeof b=="string"||typeof b=="undefined"||b===null?b:a.json.stringify(b)},ajaxSend:function(b,c){var f=h.stringifySend(b,c),g=k(b,"/send"),i,j=function(b,f){a(f).triggerHandler(e.onError,[d._.transportError(d.resources.sendFailed,f.transport,b,i),c])};return i=h.ajax(b,{url:g,type:b.ajaxDataType==="jsonp"?"GET":"POST",contentType:d._.defaultContentType,data:{data:f},success:function(a){var c;if(a){try{c=b._parseResponse(a)}catch(d){j(d,b),b.stop();return}h.triggerReceived(b,c)}},error:function(a,c){if(c==="abort"||c==="parsererror")return;j(a,b)}}),i},ajaxAbort:function(a,b){if(typeof a.transport=="undefined")return;b=typeof b=="undefined"?!0:b;var c=k(a,"/abort");h.ajax(a,{url:c,async:b,timeout:1e3,type:"POST"}),a.log("Fired ajax abort async = "+b+".")},ajaxStart:function(b,c){var f=function(a){var c=b._deferral;c&&c.reject(a)},i=function(c){b.log("The start request failed. Stopping the connection."),a(b).triggerHandler(e.onError,[c]),f(c),b.stop()};b._.startRequest=h.ajax(b,{url:k(b,"/start"),success:function(a,e,f){var g;try{g=b._parseResponse(a)}catch(h){i(d._.error(d._.format(d.resources.errorParsingStartResponse,a),h,f));return}g.Response==="started"?c():i(d._.error(d._.format(d.resources.invalidStartResponse,a),null,f))},error:function(a,c,e){c!==g?i(d._.error(d.resources.errorDuringStartRequest,e,a)):(b.log("The start request aborted because connection.stop() was called."),f(d._.error(d.resources.stoppedDuringStartRequest,null,a)))}})},tryAbortStartRequest:function(a){a._.startRequest&&(a._.startRequest.abort(g),delete a._.startRequest)},tryInitialize:function(a,b){a.Initialized&&b()},triggerReceived:function(b,c){b._.connectingMessageBuffer.tryBuffer(c)||a(b).triggerHandler(e.onReceived,[c])},processMessages:function(b,c,d){var e;h.markLastMessage(b),c&&(e=h.maximizePersistentResponse(c),h.updateGroups(b,e.GroupsToken),e.MessageId&&(b.messageId=e.MessageId),e.Messages&&(a.each(e.Messages,function(a,c){h.triggerReceived(b,c)}),h.tryInitialize(e,d)))},monitorKeepAlive:function(b){var c=b._.keepAliveData;c.monitoring?b.log("Tried to monitor keep alive but it's already being monitored."):(c.monitoring=!0,h.markLastMessage(b),b._.keepAliveData.reconnectKeepAliveUpdate=function(){h.markLastMessage(b)},a(b).bind(e.onReconnect,b._.keepAliveData.reconnectKeepAliveUpdate),b.log("Now monitoring keep alive with a warning timeout of "+c.timeoutWarning+", keep alive timeout of "+c.timeout+" and disconnecting timeout of "+b.disconnectTimeout))},stopMonitoringKeepAlive:function(b){var c=b._.keepAliveData;c.monitoring&&(c.monitoring=!1,a(b).unbind(e.onReconnect,b._.keepAliveData.reconnectKeepAliveUpdate),b._.keepAliveData={},b.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(a){a._.lastActiveAt=(new Date).getTime(),i(a)},markLastMessage:function(a){a._.lastMessageAt=(new Date).getTime()},markActive:function(a){return h.verifyLastActive(a)?(a._.lastActiveAt=(new Date).getTime(),!0):!1},isConnectedOrReconnecting:function(a){return a.state===d.connectionState.connected||a.state===d.connectionState.reconnecting},ensureReconnectingState:function(b){return f(b,d.connectionState.connected,d.connectionState.reconnecting)===!0&&a(b).triggerHandler(e.onReconnecting),b.state===d.connectionState.reconnecting},clearReconnectTimeout:function(a){a&&a._.reconnectTimeout&&(b.clearTimeout(a._.reconnectTimeout),delete a._.reconnectTimeout)},verifyLastActive:function(b){if((new Date).getTime()-b._.lastActiveAt>=b.reconnectWindow){var c=d._.format(d.resources.reconnectWindowTimeout,new Date(b._.lastActiveAt),b.reconnectWindow);return b.log(c),a(b).triggerHandler(e.onError,[d._.error(c,"TimeoutException")]),b.stop(!1,!1),!1}return!0},reconnect:function(a,c){var e=d.transports[c];if(h.isConnectedOrReconnecting(a)&&!a._.reconnectTimeout){if(!h.verifyLastActive(a))return;a._.reconnectTimeout=b.setTimeout(function(){if(!h.verifyLastActive(a))return;e.stop(a),h.ensureReconnectingState(a)&&(a.log(c+" reconnecting."),e.start(a))},a.reconnectDelay)}},handleParseFailure:function(b,c,f,g,h){var i=d._.transportError(d._.format(d.resources.parseFailed,c),b.transport,f,h);g&&g(i)?b.log("Failed to parse server response while attempting to connect."):(a(b).triggerHandler(e.onError,[i]),b.stop())},initHandler:function(a){return new l(a)},foreverFrame:{count:0,connections:{}}}}(window.jQuery,window),function(a,b,c){var d=a.signalR,e=a.signalR.events,f=a.signalR.changeState,g=d.transports._logic;d.transports.webSockets={name:"webSockets",supportsKeepAlive:function(){return!0},send:function(b,c){var f=g.stringifySend(b,c);try{b.socket.send(f)}catch(h){a(b).triggerHandler(e.onError,[d._.transportError(d.resources.webSocketsInvalidState,b.transport,h,b.socket),c])}},start:function(c,h,i){var j,k=!1,l=this,m=!h,n=a(c);if(!b.WebSocket){i();return}c.socket||(c.webSocketServerUrl?j=c.webSocketServerUrl:j=c.wsProtocol+c.host,j+=g.getUrl(c,this.name,m),c.log("Connecting to websocket endpoint '"+j+"'."),c.socket=new b.WebSocket(j),c.socket.onopen=function(){k=!0,c.log("Websocket opened."),g.clearReconnectTimeout(c),f(c,d.connectionState.reconnecting,d.connectionState.connected)===!0&&n.triggerHandler(e.onReconnect)},c.socket.onclose=function(b){var f;if(this===c.socket){k&&typeof b.wasClean!="undefined"&&b.wasClean===!1?(f=d._.transportError(d.resources.webSocketClosed,c.transport,b),c.log("Unclean disconnect from websocket: "+(b.reason||"[no reason given]."))):c.log("Websocket closed.");if(!i||!i(f))f&&a(c).triggerHandler(e.onError,[f]),l.reconnect(c)}},c.socket.onmessage=function(b){var d;try{d=c._parseResponse(b.data)}catch(e){g.handleParseFailure(c,b.data,e,i,b);return}d&&(a.isEmptyObject(d)||d.M?g.processMessages(c,d,h):g.triggerReceived(c,d))})},reconnect:function(a){g.reconnect(a,this.name)},lostConnection:function(a){this.reconnect(a)},stop:function(a){g.clearReconnectTimeout(a),a.socket&&(a.log("Closing the Websocket."),a.socket.close(),a.socket=null)},abort:function(a,b){g.ajaxAbort(a,b)}}}(window.jQuery,window),function(a,b,c){var d=a.signalR,e=a.signalR.events,f=a.signalR.changeState,g=d.transports._logic,h=function(a){b.clearTimeout(a._.reconnectAttemptTimeoutHandle),delete a._.reconnectAttemptTimeoutHandle};d.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:function(){return!0},timeOut:3e3,start:function(c,i,j){var k=this,l=!1,m=a(c),n=!i,o;c.eventSource&&(c.log("The connection already has an event source. Stopping it."),c.stop());if(!b.EventSource){j&&(c.log("This browser doesn't support SSE."),j());return}o=g.getUrl(c,this.name,n);try{c.log("Attempting to connect to SSE endpoint '"+o+"'."),c.eventSource=new b.EventSource(o,{withCredentials:c.withCredentials})}catch(p){c.log("EventSource failed trying to connect with error "+p.Message+"."),j?j():(m.triggerHandler(e.onError,[d._.transportError(d.resources.eventSourceFailedToConnect,c.transport,p)]),n&&k.reconnect(c));return}n&&(c._.reconnectAttemptTimeoutHandle=b.setTimeout(function(){l===!1&&c.eventSource.readyState!==b.EventSource.OPEN&&k.reconnect(c)},k.timeOut)),c.eventSource.addEventListener("open",function(a){c.log("EventSource connected."),h(c),g.clearReconnectTimeout(c),l===!1&&(l=!0,f(c,d.connectionState.reconnecting,d.connectionState.connected)===!0&&m.triggerHandler(e.onReconnect))},!1),c.eventSource.addEventListener("message",function(a){var b;if(a.data==="initialized")return;try{b=c._parseResponse(a.data)}catch(d){g.handleParseFailure(c,a.data,d,j,a);return}g.processMessages(c,b,i)},!1),c.eventSource.addEventListener("error",function(a){var f=d._.transportError(d.resources.eventSourceError,c.transport,a);if(this!==c.eventSource)return;if(j&&j(f))return;c.log("EventSource readyState: "+c.eventSource.readyState+"."),a.eventPhase===b.EventSource.CLOSED?(c.log("EventSource reconnecting due to the server connection ending."),k.reconnect(c)):(c.log("EventSource error."),m.triggerHandler(e.onError,[f]))},!1)},reconnect:function(a){g.reconnect(a,this.name)},lostConnection:function(a){this.reconnect(a)},send:function(a,b){g.ajaxSend(a,b)},stop:function(a){h(a),g.clearReconnectTimeout(a),a&&a.eventSource&&(a.log("EventSource calling close()."),a.eventSource.close(),a.eventSource=null,delete a.eventSource)},abort:function(a,b){g.ajaxAbort(a,b)}}}(window.jQuery,window),function(a,b,c){var d=a.signalR,e=a.signalR.events,f=a.signalR.changeState,g=d.transports._logic,h=function(){var a=b.document.createElement("iframe");return a.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),a},i=function(){var a=null,c=1e3,e=0;return{prevent:function(){d._.ieVersion<=8&&(e===0&&(a=b.setInterval(function(){var a=h();b.document.body.appendChild(a),b.document.body.removeChild(a),a=null},c)),e++)},cancel:function(){e===1&&b.clearInterval(a),e>0&&e--}}}();d.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:function(){return!0},iframeClearThreshold:50,start:function(a,c,d){var e=this,f=g.foreverFrame.count+=1,j,k=h(),l=function(){a.log("Forever frame iframe finished loading and is no longer receiving messages."),(!d||!d())&&e.reconnect(a)};if(b.EventSource){d&&(a.log("Forever Frame is not supported by SignalR on browsers with SSE support."),d());return}k.setAttribute("data-signalr-connection-id",a.id),i.prevent(),j=g.getUrl(a,this.name),j+="&frameId="+f,b.document.documentElement.appendChild(k),a.log("Binding to iframe's load event."),k.addEventListener?k.addEventListener("load",l,!1):k.attachEvent&&k.attachEvent("onload",l),k.src=j,g.foreverFrame.connections[f]=a,a.frame=k,a.frameId=f,c&&(a.onSuccess=function(){a.log("Iframe transport started."),c()})},reconnect:function(a){var c=this;g.isConnectedOrReconnecting(a)&&g.verifyLastActive(a)&&b.setTimeout(function(){if(!g.verifyLastActive(a))return;if(a.frame&&g.ensureReconnectingState(a)){var b=a.frame,d=g.getUrl(a,c.name,!0)+"&frameId="+a.frameId;a.log("Updating iframe src to '"+d+"'."),b.src=d}},a.reconnectDelay)},lostConnection:function(a){this.reconnect(a)},send:function(a,b){g.ajaxSend(a,b)},receive:function(b,c){var e,f,h;b.json!==b._originalJson&&(c=b._originalJson.stringify(c)),h=b._parseResponse(c),g.processMessages(b,h,b.onSuccess);if(b.state===a.signalR.connectionState.connected){b.frameMessageCount=(b.frameMessageCount||0)+1;if(b.frameMessageCount>d.transports.foreverFrame.iframeClearThreshold){b.frameMessageCount=0,e=b.frame.contentWindow||b.frame.contentDocument;if(e&&e.document&&e.document.body){f=e.document.body;while(f.firstChild)f.removeChild(f.firstChild)}}}},stop:function(a){var c=null;i.cancel();if(a.frame){if(a.frame.stop)a.frame.stop();else try{c=a.frame.contentWindow||a.frame.contentDocument,c.document&&c.document.execCommand&&c.document.execCommand("Stop")}catch(d){a.log("Error occured when stopping foreverFrame transport. Message = "+d.message+".")}a.frame.parentNode===b.document.body&&b.document.body.removeChild(a.frame),delete g.foreverFrame.connections[a.frameId],a.frame=null,a.frameId=null,delete a.frame,delete a.frameId,delete a.onSuccess,delete a.frameMessageCount,a.log("Stopping forever frame.")}},abort:function(a,b){g.ajaxAbort(a,b)},getConnection:function(a){return g.foreverFrame.connections[a]},started:function(b){f(b,d.connectionState.reconnecting,d.connectionState.connected)===!0&&a(b).triggerHandler(e.onReconnect)}}}(window.jQuery,window),function(a,b,c){var d=a.signalR,e=a.signalR.events,f=a.signalR.changeState,g=a.signalR.isDisconnecting,h=d.transports._logic;d.transports.longPolling={name:"longPolling",supportsKeepAlive:function(){return!1},reconnectDelay:3e3,start:function(c,i,j){var k=this,l=function(){l=a.noop,c.log("LongPolling connected."),i()},m=function(a){return j(a)?(c.log("LongPolling failed to connect."),!0):!1},n=c._,o=0,p=function(c){b.clearTimeout(n.reconnectTimeoutId),n.reconnectTimeoutId=null,f(c,d.connectionState.reconnecting,d.connectionState.connected)===!0&&(c.log("Raising the reconnect event"),a(c).triggerHandler(e.onReconnect))},q=36e5;c.pollXhr&&(c.log("Polling xhr requests already exists, aborting."),c.stop()),c.messageId=null,n.reconnectTimeoutId=null,n.pollTimeoutId=b.setTimeout(function(){(function f(i,j){var r=i.messageId,s=r===null,t=!s,u=!j,v=h.getUrl(i,k.name,t,u,!0),w={};i.messageId&&(w.messageId=i.messageId),i.groupsToken&&(w.groupsToken=i.groupsToken);if(g(i)===!0)return;c.log("Opening long polling request to '"+v+"'."),i.pollXhr=h.ajax(c,{xhrFields:{onprogress:function(){h.markLastMessage(c)}},url:v,type:"POST",contentType:d._.defaultContentType,data:w,timeout:c._.pollTimeout,success:function(d){var e,j=0,k,q;c.log("Long poll complete."),o=0;try{e=c._parseResponse(d)}catch(r){h.handleParseFailure(i,d,r,m,i.pollXhr);return}n.reconnectTimeoutId!==null&&p(i),e&&(k=h.maximizePersistentResponse(e)),h.processMessages(i,e,l),k&&a.type(k.LongPollDelay)==="number"&&(j=k.LongPollDelay);if(g(i)===!0)return;q=k&&k.ShouldReconnect;if(q&&!h.ensureReconnectingState(i))return;j>0?n.pollTimeoutId=b.setTimeout(function(){f(i,q)},j):f(i,q)},error:function(g,j){var l=d._.transportError(d.resources.longPollFailed,c.transport,g,i.pollXhr);b.clearTimeout(n.reconnectTimeoutId),n.reconnectTimeoutId=null;if(j==="abort"){c.log("Aborted xhr request.");return}if(!m(l)){o++,c.state!==d.connectionState.reconnecting&&(c.log("An error occurred using longPolling. Status = "+j+".  Response = "+g.responseText+"."),a(i).triggerHandler(e.onError,[l]));if((c.state===d.connectionState.connected||c.state===d.connectionState.reconnecting)&&!h.verifyLastActive(c))return;if(!h.ensureReconnectingState(i))return;n.pollTimeoutId=b.setTimeout(function(){f(i,!0)},k.reconnectDelay)}}}),t&&j===!0&&(n.reconnectTimeoutId=b.setTimeout(function(){p(i)},Math.min(1e3*(Math.pow(2,o)-1),q)))})(c)},250)},lostConnection:function(a){a.pollXhr&&a.pollXhr.abort("lostConnection")},send:function(a,b){h.ajaxSend(a,b)},stop:function(a){b.clearTimeout(a._.pollTimeoutId),b.clearTimeout(a._.reconnectTimeoutId),delete a._.pollTimeoutId,delete a._.reconnectTimeoutId,a.pollXhr&&(a.pollXhr.abort(),a.pollXhr=null,delete a.pollXhr)},abort:function(a,b){h.ajaxAbort(a,b)}}}(window.jQuery,window),function(a,b,c){function f(a){return a+d}function g(a,b,c){var d,e=a.length,f=[];for(d=0;d<e;d+=1)a.hasOwnProperty(d)&&(f[d]=b.call(c,a[d],d,a));return f}function h(b){return a.isFunction(b)?null:a.type(b)==="undefined"?null:b}function i(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1}function j(a,b){var c=a._.invocationCallbacks,d;i(c)&&a.log("Clearing hub invocation callbacks with error: "+b+"."),a._.invocationCallbackId=0,delete a._.invocationCallbacks,a._.invocationCallbacks={};for(var e in c)d=c[e],d.method.call(d.scope,{E:b})}function k(a,b){return new k.fn.init(a,b)}function l(b,c){var d={qs:null,logging:!1,useDefaultPath:!0};a.extend(d,c);if(!b||d.useDefaultPath)b=(b||"")+"/signalr";return new l.fn.init(b,d)}var d=".hubProxy",e=a.signalR;k.fn=k.prototype={init:function(a,b){this.state={},this.connection=a,this.hubName=b,this._={callbackMap:{}}},constructor:k,hasSubscriptions:function(){return i(this._.callbackMap)},on:function(b,c){var d=this,e=d._.callbackMap;return b=b.toLowerCase(),e[b]||(e[b]={}),e[b][c]=function(a,b){c.apply(d,b)},a(d).bind(f(b),e[b][c]),d},off:function(b,c){var d=this,e=d._.callbackMap,g;return b=b.toLowerCase(),g=e[b],g&&(g[c]?(a(d).unbind(f(b),g[c]),delete g[c],i(g)||delete e[b]):c||(a(d).unbind(f(b)),delete e[b])),d},invoke:function(b){var c=this,d=c.connection,f=a.makeArray(arguments).slice(1),i=g(f,h),j={H:c.hubName,M:b,A:i,I:d._.invocationCallbackId},k=a.Deferred(),l=function(f){var g=c._maximizeHubResponse(f),h,i;a.extend(c.state,g.State),g.Progress?k.notifyWith?k.notifyWith(c,[g.Progress.Data]):d._.progressjQueryVersionLogged||(d.log("A hub method invocation progress update was received but the version of jQuery in use ("+a.prototype.jquery+") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."),d._.progressjQueryVersionLogged=!0):g.Error?(g.StackTrace&&d.log(g.Error+"\n"+g.StackTrace+"."),h=g.IsHubException?"HubException":"Exception",i=e._.error(g.Error,h),i.data=g.ErrorData,d.log(c.hubName+"."+b+" failed to execute. Error: "+i.message),k.rejectWith(c,[i])):(d.log("Invoked "+c.hubName+"."+b),k.resolveWith(c,[g.Result]))};return d._.invocationCallbacks[d._.invocationCallbackId.toString()]={scope:c,method:l},d._.invocationCallbackId+=1,a.isEmptyObject(c.state)||(j.S=c.state),d.log("Invoking "+c.hubName+"."+b),d.send(j),k.promise()},_maximizeHubResponse:function(a){return{State:a.S,Result:a.R,Progress:a.P?{Id:a.P.I,Data:a.P.D}:null,Id:a.I,IsHubException:a.H,Error:a.E,StackTrace:a.T,ErrorData:a.D}}},k.fn.init.prototype=k.fn,l.fn=l.prototype=a.connection(),l.fn.init=function(b,c){var d={qs:null,logging:!1,useDefaultPath:!0},e=this;a.extend(d,c),a.signalR.fn.init.call(e,b,d.qs,d.logging),e.proxies={},e._.invocationCallbackId=0,e._.invocationCallbacks={},e.received(function(b){var c,d,g,h,i,j;if(!b)return;typeof b.P!="undefined"?(g=b.P.I.toString(),h=e._.invocationCallbacks[g],h&&h.method.call(h.scope,b)):typeof b.I!="undefined"?(g=b.I.toString(),h=e._.invocationCallbacks[g],h&&(e._.invocationCallbacks[g]=null,delete e._.invocationCallbacks[g],h.method.call(h.scope,b))):(c=this._maximizeClientHubInvocation(b),e.log("Triggering client hub event '"+c.Method+"' on hub '"+c.Hub+"'."),i=c.Hub.toLowerCase(),j=c.Method.toLowerCase(),d=this.proxies[i],a.extend(d.state,c.State),a(d).triggerHandler(f(j),[c.Args]))}),e.error(function(a,b){var c,d;if(!b)return;c=b.I,d=e._.invocationCallbacks[c],d&&(e._.invocationCallbacks[c]=null,delete e._.invocationCallbacks[c],d.method.call(d.scope,{E:a}))}),e.reconnecting(function(){e.transport&&e.transport.name==="webSockets"&&j(e,"Connection started reconnecting before invocation result was received.")}),e.disconnected(function(){j(e,"Connection was disconnected before invocation result was received.")})},l.fn._maximizeClientHubInvocation=function(a){return{Hub:a.H,Method:a.M,Args:a.A,State:a.S}},l.fn._registerSubscribedHubs=function(){var b=this;b._subscribedToHubs||(b._subscribedToHubs=!0,b.starting(function(){var c=[];a.each(b.proxies,function(a){this.hasSubscriptions()&&(c.push({name:a}),b.log("Client subscribed to hub '"+a+"'."))}),c.length===0&&b.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to."),b.data=b.json.stringify(c)}))},l.fn.createHubProxy=function(a){a=a.toLowerCase();var b=this.proxies[a];return b||(b=k(this,a),this.proxies[a]=b),this._registerSubscribedHubs(),b},l.fn.init.prototype=l.fn,a.hubConnection=l}(window.jQuery,window),function(a,b){a.signalR.version="2.2.0"}(window.jQuery)
  ;function bindSocialLoginLink(a){var b=$(a).attr("provider");return loginSocial(b),!1}function loginSocial(a){var b=640,c=450,d=screen.width/2-b/2,e=screen.height/2-c/2,f=window.open("/Account/SocialAuthLogin?provider="+a,"socialauthlogin","height="+c+",width="+b+", scrollbars=no, top = "+e+", left="+d,!0)}function getRequestParam(a){if(a=(new RegExp("[?&]"+encodeURIComponent(a)+"=([^&]*)")).exec(location.search))return decodeURIComponent(a[1])}$(document).on("click",".social-login li a",function(){bindSocialLoginLink(this)}),$(function(){if(getRequestParam("app_request_type")=="user_to_user"){var a=new Date;$.ajax({type:"GET",url:"/Common/IsLogin?"+a.getTime(),success:function(a){a.success!=1&&LoginPopup.ShowFacebookRecommendedLogin(function(){$.modal.close(),sendRequestViaMultiFriendSelector()})}})}})
  ;if("undefined"==typeof jQuery){var jQuery;jQuery="function"==typeof require?$=require("jquery"):$}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=e*.3*1.5),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return 1>b?-0.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}),jQuery.extend(jQuery.easing,{easeInOutMaterial:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:d/4*((b-=2)*b*b+2)+c}}),jQuery.Velocity?console.log("Velocity is already loaded. You may be needlessly importing Velocity again; note that Materialize includes Velocity."):(!function(a){function b(a){var b=a.length,d=c.type(a);return"function"===d||c.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===d||0===b||"number"==typeof b&&b>0&&b-1 in a}if(!a.jQuery){var c=function(a,b){return new c.fn.init(a,b)};c.isWindow=function(a){return null!=a&&a==a.window},c.type=function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?e[g.call(a)]||"object":typeof a},c.isArray=Array.isArray||function(a){return"array"===c.type(a)},c.isPlainObject=function(a){var b;if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!f.call(a,"constructor")&&!f.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}for(b in a);return void 0===b||f.call(a,b)},c.each=function(a,c,d){var e,f=0,g=a.length,h=b(a);if(d){if(h)for(;g>f&&(e=c.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=c.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=c.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=c.call(a[f],f,a[f]),e===!1)break;return a},c.data=function(a,b,e){if(void 0===e){var f=a[c.expando],g=f&&d[f];if(void 0===b)return g;if(g&&b in g)return g[b]}else if(void 0!==b){var f=a[c.expando]||(a[c.expando]=++c.uuid);return d[f]=d[f]||{},d[f][b]=e,e}},c.removeData=function(a,b){var e=a[c.expando],f=e&&d[e];f&&c.each(b,function(a,b){delete f[b]})},c.extend=function(){var a,b,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[i]||{},i++),"object"!=typeof h&&"function"!==c.type(h)&&(h={}),i===j&&(h=this,i--);j>i;i++)if(null!=(f=arguments[i]))for(e in f)a=h[e],d=f[e],h!==d&&(k&&d&&(c.isPlainObject(d)||(b=c.isArray(d)))?(b?(b=!1,g=a&&c.isArray(a)?a:[]):g=a&&c.isPlainObject(a)?a:{},h[e]=c.extend(k,g,d)):void 0!==d&&(h[e]=d));return h},c.queue=function(a,d,e){function f(a,c){var d=c||[];return null!=a&&(b(Object(a))?!function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];return a.length=e,a}(d,"string"==typeof a?[a]:a):[].push.call(d,a)),d}if(a){d=(d||"fx")+"queue";var g=c.data(a,d);return e?(!g||c.isArray(e)?g=c.data(a,d,f(e)):g.push(e),g):g||[]}},c.dequeue=function(a,b){c.each(a.nodeType?[a]:a,function(a,d){b=b||"fx";var e=c.queue(d,b),f=e.shift();"inprogress"===f&&(f=e.shift()),f&&("fx"===b&&e.unshift("inprogress"),f.call(d,function(){c.dequeue(d,b)}))})},c.fn=c.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw new Error("Not a DOM node.")},offset:function(){var b=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:b.top+(a.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:b.left+(a.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function a(){for(var a=this.offsetParent||document;a&&"html"===!a.nodeType.toLowerCase&&"static"===a.style.position;)a=a.offsetParent;return a||document}var b=this[0],a=a.apply(b),d=this.offset(),e=/^(?:body|html)$/i.test(a.nodeName)?{top:0,left:0}:c(a).offset();return d.top-=parseFloat(b.style.marginTop)||0,d.left-=parseFloat(b.style.marginLeft)||0,a.style&&(e.top+=parseFloat(a.style.borderTopWidth)||0,e.left+=parseFloat(a.style.borderLeftWidth)||0),{top:d.top-e.top,left:d.left-e.left}}};var d={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var e={},f=e.hasOwnProperty,g=e.toString,h="Boolean Number String Function Array Date RegExp Object Error".split(" "),i=0;i<h.length;i++)e["[object "+h[i]+"]"]=h[i].toLowerCase();c.fn.init.prototype=c.fn,a.Velocity={Utilities:c}}}(window),function(a){"object"==typeof module&&"object"==typeof module.exports?module.exports=a():"function"==typeof define&&define.amd?define(a):a()}(function(){return function(a,b,c,d){function e(a){for(var b=-1,c=a?a.length:0,d=[];++b<c;){var e=a[b];e&&d.push(e)}return d}function f(a){return p.isWrapped(a)?a=[].slice.call(a):p.isNode(a)&&(a=[a]),a}function g(a){var b=m.data(a,"velocity");return null===b?d:b}function h(a){return function(b){return Math.round(b*a)*(1/a)}}function i(a,c,d,e){function f(a,b){return 1-3*b+3*a}function g(a,b){return 3*b-6*a}function h(a){return 3*a}function i(a,b,c){return((f(b,c)*a+g(b,c))*a+h(b))*a}function j(a,b,c){return 3*f(b,c)*a*a+2*g(b,c)*a+h(b)}function k(b,c){for(var e=0;p>e;++e){var f=j(c,a,d);if(0===f)return c;var g=i(c,a,d)-b;c-=g/f}return c}function l(){for(var b=0;t>b;++b)x[b]=i(b*u,a,d)}function m(b,c,e){var f,g,h=0;do g=c+(e-c)/2,f=i(g,a,d)-b,f>0?e=g:c=g;while(Math.abs(f)>r&&++h<s);return g}function n(b){for(var c=0,e=1,f=t-1;e!=f&&x[e]<=b;++e)c+=u;--e;var g=(b-x[e])/(x[e+1]-x[e]),h=c+g*u,i=j(h,a,d);return i>=q?k(b,h):0==i?h:m(b,c,c+u)}function o(){y=!0,(a!=c||d!=e)&&l()}var p=4,q=.001,r=1e-7,s=10,t=11,u=1/(t-1),v="Float32Array"in b;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;a=Math.min(a,1),d=Math.min(d,1),a=Math.max(a,0),d=Math.max(d,0);var x=v?new Float32Array(t):new Array(t),y=!1,z=function(b){return y||o(),a===c&&d===e?b:0===b?0:1===b?1:i(n(b),c,e)};z.getControlPoints=function(){return[{x:a,y:c},{x:d,y:e}]};var A="generateBezier("+[a,c,d,e]+")";return z.toString=function(){return A},z}function j(a,b){var c=a;return p.isString(a)?t.Easings[a]||(c=!1):c=p.isArray(a)&&1===a.length?h.apply(null,a):p.isArray(a)&&2===a.length?u.apply(null,a.concat([b])):p.isArray(a)&&4===a.length?i.apply(null,a):!1,c===!1&&(c=t.Easings[t.defaults.easing]?t.defaults.easing:s),c}function k(a){if(a){var b=(new Date).getTime(),c=t.State.calls.length;c>1e4&&(t.State.calls=e(t.State.calls));for(var f=0;c>f;f++)if(t.State.calls[f]){var h=t.State.calls[f],i=h[0],j=h[2],n=h[3],o=!!n,q=null;n||(n=t.State.calls[f][3]=b-16);for(var r=Math.min((b-n)/j.duration,1),s=0,u=i.length;u>s;s++){var w=i[s],y=w.element;if(g(y)){var z=!1;if(j.display!==d&&null!==j.display&&"none"!==j.display){if("flex"===j.display){var A=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];m.each(A,function(a,b){v.setPropertyValue(y,"display",b)})}v.setPropertyValue(y,"display",j.display)}j.visibility!==d&&"hidden"!==j.visibility&&v.setPropertyValue(y,"visibility",j.visibility);for(var B in w)if("element"!==B){var C,D=w[B],E=p.isString(D.easing)?t.Easings[D.easing]:D.easing;if(1===r)C=D.endValue;else{var F=D.endValue-D.startValue;if(C=D.startValue+F*E(r,j,F),!o&&C===D.currentValue)continue}if(D.currentValue=C,"tween"===B)q=C;else{if(v.Hooks.registered[B]){var G=v.Hooks.getRoot(B),H=g(y).rootPropertyValueCache[G];H&&(D.rootPropertyValue=H)}var I=v.setPropertyValue(y,B,D.currentValue+(0===parseFloat(C)?"":D.unitType),D.rootPropertyValue,D.scrollData);v.Hooks.registered[B]&&(g(y).rootPropertyValueCache[G]=v.Normalizations.registered[G]?v.Normalizations.registered[G]("extract",null,I[1]):I[1]),"transform"===I[0]&&(z=!0)}}j.mobileHA&&g(y).transformCache.translate3d===d&&(g(y).transformCache.translate3d="(0px, 0px, 0px)",z=!0),z&&v.flushTransformCache(y)}}j.display!==d&&"none"!==j.display&&(t.State.calls[f][2].display=!1),j.visibility!==d&&"hidden"!==j.visibility&&(t.State.calls[f][2].visibility=!1),j.progress&&j.progress.call(h[1],h[1],r,Math.max(0,n+j.duration-b),n,q),1===r&&l(f)}}t.State.isTicking&&x(k)}function l(a,b){if(!t.State.calls[a])return!1;for(var c=t.State.calls[a][0],e=t.State.calls[a][1],f=t.State.calls[a][2],h=t.State.calls[a][4],i=!1,j=0,k=c.length;k>j;j++){var l=c[j].element;if(b||f.loop||("none"===f.display&&v.setPropertyValue(l,"display",f.display),"hidden"===f.visibility&&v.setPropertyValue(l,"visibility",f.visibility)),f.loop!==!0&&(m.queue(l)[1]===d||!/\.velocityQueueEntryFlag/i.test(m.queue(l)[1]))&&g(l)){g(l).isAnimating=!1,g(l).rootPropertyValueCache={};var n=!1;m.each(v.Lists.transforms3D,function(a,b){var c=/^scale/.test(b)?1:0,e=g(l).transformCache[b];g(l).transformCache[b]!==d&&(new RegExp("^\\("+c+"[^.]")).test(e)&&(n=!0,delete g(l).transformCache[b])}),f.mobileHA&&(n=!0,delete g(l).transformCache.translate3d),n&&v.flushTransformCache(l),v.Values.removeClass(l,"velocity-animating")}if(!b&&f.complete&&!f.loop&&j===k-1)try{f.complete.call(e,e)}catch(o){setTimeout(function(){throw o},1)}h&&f.loop!==!0&&h(e),g(l)&&f.loop===!0&&!b&&(m.each(g(l).tweensContainer,function(a,b){/^rotate/.test(a)&&360===parseFloat(b.endValue)&&(b.endValue=0,b.startValue=360),/^backgroundPosition/.test(a)&&100===parseFloat(b.endValue)&&"%"===b.unitType&&(b.endValue=0,b.startValue=100)}),t(l,"reverse",{loop:!0,delay:f.delay})),f.queue!==!1&&m.dequeue(l,f.queue)}t.State.calls[a]=!1;for(var p=0,q=t.State.calls.length;q>p;p++)if(t.State.calls[p]!==!1){i=!0;break}i===!1&&(t.State.isTicking=!1,delete t.State.calls,t.State.calls=[])}var m,n=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement("div");if(b.innerHTML="<!--[if IE "+a+"]><span></span><![endif]-->",b.getElementsByTagName("span").length)return b=null,a}return d}(),o=function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}(),p={isString:function(a){return"string"==typeof a},isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},isFunction:function(a){return"[object Function]"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isNodeList:function(a){return"object"==typeof a&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(a))&&a.length!==d&&(0===a.length||"object"==typeof a[0]&&a[0].nodeType>0)},isWrapped:function(a){return a&&(a.jquery||b.Zepto&&b.Zepto.zepto.isZ(a))},isSVG:function(a){return b.SVGElement&&a instanceof b.SVGElement},isEmptyObject:function(a){for(var b in a)return!1;return!0}},q=!1;if(a.fn&&a.fn.jquery?(m=a,q=!0):m=b.Velocity.Utilities,8>=n&&!q)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=n)return void (jQuery.fn.velocity=jQuery.fn.animate);var r=400,s="swing",t={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:b.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:c.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:b.Promise,defaults:{queue:"",duration:r,easing:s,begin:d,complete:d,progress:d,display:d,visibility:d,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(a){m.data(a,"velocity",{isSVG:p.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};b.pageYOffset!==d?(t.State.scrollAnchor=b,t.State.scrollPropertyLeft="pageXOffset",t.State.scrollPropertyTop="pageYOffset"):(t.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,t.State.scrollPropertyLeft="scrollLeft",t.State.scrollPropertyTop="scrollTop");var u=function(){function a(a){return-a.tension*a.x-a.friction*a.v}function b(b,c,d){var e={x:b.x+d.dx*c,v:b.v+d.dv*c,tension:b.tension,friction:b.friction};return{dx:e.v,dv:a(e)}}function c(c,d){var e={dx:c.v,dv:a(c)},f=b(c,.5*d,e),g=b(c,.5*d,f),h=b(c,d,g),i=1/6*(e.dx+2*(f.dx+g.dx)+h.dx),j=1/6*(e.dv+2*(f.dv+g.dv)+h.dv);return c.x=c.x+i*d,c.v=c.v+j*d,c}return function d(a,b,e){var f,g,h,i={x:-1,v:0,tension:null,friction:null},j=[0],k=0,l=1e-4,m=.016;for(a=parseFloat(a)||500,b=parseFloat(b)||20,e=e||null,i.tension=a,i.friction=b,f=null!==e,f?(k=d(a,b),g=k/e*m):g=m;h=c(h||i,g),j.push(1+h.x),k+=16,Math.abs(h.x)>l&&Math.abs(h.v)>l;);return f?function(a){return j[a*(j.length-1)|0]}:k}}();t.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}},m.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(a,b){t.Easings[b[0]]=i.apply(null,b[1])});var v=t.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var a=0;a<v.Lists.colors.length;a++){var b="color"===v.Lists.colors[a]?"0 0 0 1":"255 255 255 1";v.Hooks.templates[v.Lists.colors[a]]=["Red Green Blue Alpha",b]}var c,d,e;if(n)for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");var f=d[1].match(v.RegEx.valueSplit);"Color"===e[0]&&(e.push(e.shift()),f.push(f.shift()),v.Hooks.templates[c]=[e.join(" "),f.join(" ")])}for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");for(var a in e){var g=c+e[a],h=a;v.Hooks.registered[g]=[c,h]}}},getRoot:function(a){var b=v.Hooks.registered[a];return b?b[0]:a},cleanRootPropertyValue:function(a,b){return v.RegEx.valueUnwrap.test(b)&&(b=b.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(b)&&(b=v.Hooks.templates[a][1]),b},extractValue:function(a,b){var c=v.Hooks.registered[a];if(c){var d=c[0],e=c[1];return b=v.Hooks.cleanRootPropertyValue(d,b),b.toString().match(v.RegEx.valueSplit)[e]}return b},injectValue:function(a,b,c){var d=v.Hooks.registered[a];if(d){var e,f,g=d[0],h=d[1];return c=v.Hooks.cleanRootPropertyValue(g,c),e=c.toString().match(v.RegEx.valueSplit),e[h]=b,f=e.join(" ")}return c}},Normalizations:{registered:{clip:function(a,b,c){switch(a){case"name":return"clip";case"extract":var d;return v.RegEx.wrappedValueAlreadyExtracted.test(c)?d=c:(d=c.toString().match(v.RegEx.valueUnwrap),d=d?d[1].replace(/,(\s+)?/g," "):c),d;case"inject":return"rect("+c+")"}},blur:function(a,b,c){switch(a){case"name":return t.State.isFirefox?"filter":"-webkit-filter";case"extract":var d=parseFloat(c);if(!d&&0!==d){var e=c.toString().match(/blur\(([0-9]+[A-z]+)\)/i);d=e?e[1]:0}return d;case"inject":return parseFloat(c)?"blur("+c+")":"none"}},opacity:function(a,b,c){if(8>=n)switch(a){case"name":return"filter";case"extract":var d=c.toString().match(/alpha\(opacity=(.*)\)/i);return c=d?d[1]/100:1;case"inject":return b.style.zoom=1,parseFloat(c)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(c),10)+")"}else switch(a){case"name":return"opacity";case"extract":return c;case"inject":return c}}},register:function(){9>=n||t.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var a=0;a<v.Lists.transformsBase.length;a++)!function(){var b=v.Lists.transformsBase[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return"transform";case"extract":return g(c)===d||g(c).transformCache[b]===d?/^scale/i.test(b)?1:0:g(c).transformCache[b].replace(/[()]/g,"");case"inject":var f=!1;switch(b.substr(0,b.length-1)){case"translate":f=!/(%|px|em|rem|vw|vh|\d)$/i.test(e);break;case"scal":case"scale":t.State.isAndroid&&g(c).transformCache[b]===d&&1>e&&(e=1),f=!/(\d)$/i.test(e);break;case"skew":f=!/(deg|\d)$/i.test(e);break;case"rotate":f=!/(deg|\d)$/i.test(e)}return f||(g(c).transformCache[b]="("+e+")"),g(c).transformCache[b]}}}();for(var a=0;a<v.Lists.colors.length;a++)!function(){var b=v.Lists.colors[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return b;case"extract":var f;if(v.RegEx.wrappedValueAlreadyExtracted.test(e))f=e;else{var g,h={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(e)?g=h[e]!==d?h[e]:h.black:v.RegEx.isHex.test(e)?g="rgb("+v.Values.hexToRgb(e).join(" ")+")":/^rgba?\(/i.test(e)||(g=h.black),f=(g||e).toString().match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=n||3!==f.split(" ").length||(f+=" 1"),f;case"inject":return 8>=n?4===e.split(" ").length&&(e=e.split(/\s+/).slice(0,3).join(" ")):3===e.split(" ").length&&(e+=" 1"),(8>=n?"rgb":"rgba")+"("+e.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()})},SVGAttribute:function(a){var b="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(n||t.State.isAndroid&&!t.State.isChrome)&&(b+="|transform"),(new RegExp("^("+b+")$","i")).test(a)},prefixCheck:function(a){if(t.State.prefixMatches[a])return[t.State.prefixMatches[a],!0];for(var b=["","Webkit","Moz","ms","O"],c=0,d=b.length;d>c;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\w/,function(a){return a.toUpperCase()}),p.isString(t.State.prefixElement.style[e]))return t.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var b,c=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return a=a.replace(c,function(a,b,c,d){return b+b+c+c+d+d}),b=d.exec(a),b?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:[0,0,0]},isCSSNullValue:function(a){return 0==a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?"":"px"},getDisplayType:function(a){var b=a&&a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?"inline":/^(li)$/i.test(b)?"list-item":/^(tr)$/i.test(b)?"table-row":/^(table)$/i.test(b)?"table":/^(tbody)$/i.test(b)?"table-row-group":"block"},addClass:function(a,b){a.classList?a.classList.add(b):a.className+=(a.className.length?" ":"")+b},removeClass:function(a,b){a.classList?a.classList.remove(b):a.className=a.className.toString().replace(new RegExp("(^|\\s)"+b.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(a,c,e,f){function h(a,c){function e(){j&&v.setPropertyValue(a,"display","none")}var i=0;if(8>=n)i=m.css(a,c);else{var j=!1;if(/^(width|height)$/.test(c)&&0===v.getPropertyValue(a,"display")&&(j=!0,v.setPropertyValue(a,"display",v.Values.getDisplayType(a))),!f){if("height"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var k=a.offsetHeight-(parseFloat(v.getPropertyValue(a,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(a,"paddingBottom"))||0);return e(),k}if("width"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var l=a.offsetWidth-(parseFloat(v.getPropertyValue(a,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(a,"paddingRight"))||0);return e(),l}}var o;o=g(a)===d?b.getComputedStyle(a,null):g(a).computedStyle?g(a).computedStyle:g(a).computedStyle=b.getComputedStyle(a,null),"borderColor"===c&&(c="borderTopColor"),i=9===n&&"filter"===c?o.getPropertyValue(c):o[c],(""===i||null===i)&&(i=a.style[c]),e()}if("auto"===i&&/^(top|right|bottom|left)$/i.test(c)){var p=h(a,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(c))&&(i=m(a).position()[c]+"px")}return i}var i;if(v.Hooks.registered[c]){var j=c,k=v.Hooks.getRoot(j);e===d&&(e=v.getPropertyValue(a,v.Names.prefixCheck(k)[0])),v.Normalizations.registered[k]&&(e=v.Normalizations.registered[k]("extract",a,e)),i=v.Hooks.extractValue(j,e)}else if(v.Normalizations.registered[c]){var l,o;l=v.Normalizations.registered[c]("name",a),"transform"!==l&&(o=h(a,v.Names.prefixCheck(l)[0]),v.Values.isCSSNullValue(o)&&v.Hooks.templates[c]&&(o=v.Hooks.templates[c][1])),i=v.Normalizations.registered[c]("extract",a,o)}if(!/^[\d-]/.test(i))if(g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c))if(/^(height|width)$/i.test(c))try{i=a.getBBox()[c]}catch(p){i=0}else i=a.getAttribute(c);else i=h(a,v.Names.prefixCheck(c)[0]);return v.Values.isCSSNullValue(i)&&(i=0),t.debug>=2&&console.log("Get "+c+": "+i),i},setPropertyValue:function(a,c,d,e,f){var h=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(v.Normalizations.registered[c]&&"transform"===v.Normalizations.registered[c]("name",a))v.Normalizations.registered[c]("inject",a,d),h="transform",d=g(a).transformCache[c];else{if(v.Hooks.registered[c]){var i=c,j=v.Hooks.getRoot(c);e=e||v.getPropertyValue(a,j),d=v.Hooks.injectValue(i,d,e),c=j}if(v.Normalizations.registered[c]&&(d=v.Normalizations.registered[c]("inject",a,d),c=v.Normalizations.registered[c]("name",a)),h=v.Names.prefixCheck(c)[0],8>=n)try{a.style[h]=d}catch(k){t.debug&&console.log("Browser does not support ["+d+"] for ["+h+"]")}else g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c)?a.setAttribute(c,d):a.style[h]=d;t.debug>=2&&console.log("Set "+c+" ("+h+"): "+d)}return[h,d]},flushTransformCache:function(a){function b(b){return parseFloat(v.getPropertyValue(a,b))}var c="";if((n||t.State.isAndroid&&!t.State.isChrome)&&g(a).isSVG){var d={translate:[b("translateX"),b("translateY")],skewX:[b("skewX")],skewY:[b("skewY")],scale:1!==b("scale")?[b("scale"),b("scale")]:[b("scaleX"),b("scaleY")],rotate:[b("rotateZ"),0,0]};m.each(g(a).transformCache,function(a){/^translate/i.test(a)?a="translate":/^scale/i.test(a)?a="scale":/^rotate/i.test(a)&&(a="rotate"),d[a]&&(c+=a+"("+d[a].join(" ")+") ",delete d[a])})}else{var e,f;m.each(g(a).transformCache,function(b){return e=g(a).transformCache[b],"transformPerspective"===b?(f=e,!0):(9===n&&"rotateZ"===b&&(b="rotate"),void (c+=b+e+" "))}),f&&(c="perspective"+f+" "+c)}v.setPropertyValue(a,"transform",c)}};v.Hooks.register(),v.Normalizations.register(),t.hook=function(a,b,c){var e=d;return a=f(a),m.each(a,function(a,f){if(g(f)===d&&t.init(f),c===d)e===d&&(e=t.CSS.getPropertyValue(f,b));else{var h=t.CSS.setPropertyValue(f,b,c);"transform"===h[0]&&t.CSS.flushTransformCache(f),e=h}}),e};var w=function(){function a(){return h?B.promise||null:i}function e(){function a(a){function l(a,b){var c=d,e=d,g=d;return p.isArray(a)?(c=a[0],!p.isArray(a[1])&&/^[\d-]/.test(a[1])||p.isFunction(a[1])||v.RegEx.isHex.test(a[1])?g=a[1]:(p.isString(a[1])&&!v.RegEx.isHex.test(a[1])||p.isArray(a[1]))&&(e=b?a[1]:j(a[1],h.duration),a[2]!==d&&(g=a[2]))):c=a,b||(e=e||h.easing),p.isFunction(c)&&(c=c.call(f,y,x)),p.isFunction(g)&&(g=g.call(f,y,x)),[c||0,e,g]}function n(a,b){var c,d;return d=(b||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=v.Values.getUnitType(a)),[d,c]}function r(){var a={myParent:f.parentNode||c.body,position:v.getPropertyValue(f,"position"),fontSize:v.getPropertyValue(f,"fontSize")},d=a.position===I.lastPosition&&a.myParent===I.lastParent,e=a.fontSize===I.lastFontSize;I.lastParent=a.myParent,I.lastPosition=a.position,I.lastFontSize=a.fontSize;var h=100,i={};if(e&&d)i.emToPx=I.lastEmToPx,i.percentToPxWidth=I.lastPercentToPxWidth,i.percentToPxHeight=I.lastPercentToPxHeight;else{var j=g(f).isSVG?c.createElementNS("http://www.w3.org/2000/svg","rect"):c.createElement("div");t.init(j),a.myParent.appendChild(j),m.each(["overflow","overflowX","overflowY"],function(a,b){t.CSS.setPropertyValue(j,b,"hidden")}),t.CSS.setPropertyValue(j,"position",a.position),t.CSS.setPropertyValue(j,"fontSize",a.fontSize),t.CSS.setPropertyValue(j,"boxSizing","content-box"),m.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(a,b){t.CSS.setPropertyValue(j,b,h+"%")}),t.CSS.setPropertyValue(j,"paddingLeft",h+"em"),i.percentToPxWidth=I.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(j,"width",null,!0))||1)/h,i.percentToPxHeight=I.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(j,"height",null,!0))||1)/h,i.emToPx=I.lastEmToPx=(parseFloat(v.getPropertyValue(j,"paddingLeft"))||1)/h,a.myParent.removeChild(j)}return null===I.remToPx&&(I.remToPx=parseFloat(v.getPropertyValue(c.body,"fontSize"))||16),null===I.vwToPx&&(I.vwToPx=parseFloat(b.innerWidth)/100,I.vhToPx=parseFloat(b.innerHeight)/100),i.remToPx=I.remToPx,i.vwToPx=I.vwToPx,i.vhToPx=I.vhToPx,t.debug>=1&&console.log("Unit ratios: "+JSON.stringify(i),f),i}if(h.begin&&0===y)try{h.begin.call(o,o)}catch(u){setTimeout(function(){throw u},1)}if("scroll"===C){var w,z,A,D=/^x$/i.test(h.axis)?"Left":"Top",E=parseFloat(h.offset)||0;h.container?p.isWrapped(h.container)||p.isNode(h.container)?(h.container=h.container[0]||h.container,w=h.container["scroll"+D],A=w+m(f).position()[D.toLowerCase()]+E):h.container=null:(w=t.State.scrollAnchor[t.State["scrollProperty"+D]],z=t.State.scrollAnchor[t.State["scrollProperty"+("Left"===D?"Top":"Left")]],A=m(f).offset()[D.toLowerCase()]+E),i={scroll:{rootPropertyValue:!1,startValue:w,currentValue:w,endValue:A,unitType:"",easing:h.easing,scrollData:{container:h.container,direction:D,alternateValue:z}},element:f},t.debug&&console.log("tweensContainer (scroll): ",i.scroll,f)}else if("reverse"===C){if(!g(f).tweensContainer)return void m.dequeue(f,h.queue);"none"===g(f).opts.display&&(g(f).opts.display="auto"),"hidden"===g(f).opts.visibility&&(g(f).opts.visibility="visible"),g(f).opts.loop=!1,g(f).opts.begin=null,g(f).opts.complete=null,s.easing||delete h.easing,s.duration||delete h.duration,h=m.extend({},g(f).opts,h);var F=m.extend(!0,{},g(f).tweensContainer);for(var G in F)if("element"!==G){var H=F[G].startValue;F[G].startValue=F[G].currentValue=F[G].endValue,F[G].endValue=H,p.isEmptyObject(s)||(F[G].easing=h.easing),t.debug&&console.log("reverse tweensContainer ("+G+"): "+JSON.stringify(F[G]),f)}i=F}else if("start"===C){var F;g(f).tweensContainer&&g(f).isAnimating===!0&&(F=g(f).tweensContainer),m.each(q,function(a,b){if(RegExp("^"+v.Lists.colors.join("$|^")+"$").test(a)){var c=l(b,!0),e=c[0],f=c[1],g=c[2];if(v.RegEx.isHex.test(e)){for(var h=["Red","Green","Blue"],i=v.Values.hexToRgb(e),j=g?v.Values.hexToRgb(g):d,k=0;k<h.length;k++){var m=[i[k]];f&&m.push(f),j!==d&&m.push(j[k]),q[a+h[k]]=m}delete q[a]}}});for(var K in q){var L=l(q[K]),M=L[0],N=L[1],O=L[2];K=v.Names.camelCase(K);var P=v.Hooks.getRoot(K),Q=!1;if(g(f).isSVG||"tween"===P||v.Names.prefixCheck(P)[1]!==!1||v.Normalizations.registered[P]!==d){(h.display!==d&&null!==h.display&&"none"!==h.display||h.visibility!==d&&"hidden"!==h.visibility)&&/opacity|filter/.test(K)&&!O&&0!==M&&(O=0),h._cacheValues&&F&&F[K]?(O===d&&(O=F[K].endValue+F[K].unitType),Q=g(f).rootPropertyValueCache[P]):v.Hooks.registered[K]?O===d?(Q=v.getPropertyValue(f,P),O=v.getPropertyValue(f,K,Q)):Q=v.Hooks.templates[P][1]:O===d&&(O=v.getPropertyValue(f,K));var R,S,T,U=!1;if(R=n(K,O),O=R[0],T=R[1],R=n(K,M),M=R[0].replace(/^([+-\/*])=/,function(a,b){return U=b,""}),S=R[1],O=parseFloat(O)||0,M=parseFloat(M)||0,"%"===S&&(/^(fontSize|lineHeight)$/.test(K)?(M/=100,S="em"):/^scale/.test(K)?(M/=100,S=""):/(Red|Green|Blue)$/i.test(K)&&(M=M/100*255,S="")),/[\/*]/.test(U))S=T;else if(T!==S&&0!==O)if(0===M)S=T;else{e=e||r();var V=/margin|padding|left|right|width|text|word|letter/i.test(K)||/X$/.test(K)||"x"===K?"x":"y";switch(T){case"%":O*="x"===V?e.percentToPxWidth:e.percentToPxHeight;break;case"px":break;default:O*=e[T+"ToPx"]}switch(S){case"%":O*=1/("x"===V?e.percentToPxWidth:e.percentToPxHeight);break;case"px":break;default:O*=1/e[S+"ToPx"]}}switch(U){case"+":M=O+M;break;case"-":M=O-M;break;case"*":M=O*M;break;case"/":M=O/M}i[K]={rootPropertyValue:Q,startValue:O,currentValue:O,endValue:M,unitType:S,easing:N},t.debug&&console.log("tweensContainer ("+K+"): "+JSON.stringify(i[K]),f)}else t.debug&&console.log("Skipping ["+P+"] due to a lack of browser support.")}i.element=f}i.element&&(v.Values.addClass(f,"velocity-animating"),J.push(i),""===h.queue&&(g(f).tweensContainer=i,g(f).opts=h),g(f).isAnimating=!0,y===x-1?(t.State.calls.push([J,o,h,null,B.resolver]),t.State.isTicking===!1&&(t.State.isTicking=!0,k())):y++)}var e,f=this,h=m.extend({},t.defaults,s),i={};switch(g(f)===d&&t.init(f),parseFloat(h.delay)&&h.queue!==!1&&m.queue(f,h.queue,function(a){t.velocityQueueEntryFlag=!0,g(f).delayTimer={setTimeout:setTimeout(a,parseFloat(h.delay)),next:a}}),h.duration.toString().toLowerCase()){case"fast":h.duration=200;break;case"normal":h.duration=r;break;case"slow":h.duration=600;break;default:h.duration=parseFloat(h.duration)||1}t.mock!==!1&&(t.mock===!0?h.duration=h.delay=1:(h.duration*=parseFloat(t.mock)||1,h.delay*=parseFloat(t.mock)||1)),h.easing=j(h.easing,h.duration),h.begin&&!p.isFunction(h.begin)&&(h.begin=null),h.progress&&!p.isFunction(h.progress)&&(h.progress=null),h.complete&&!p.isFunction(h.complete)&&(h.complete=null),h.display!==d&&null!==h.display&&(h.display=h.display.toString().toLowerCase(),"auto"===h.display&&(h.display=t.CSS.Values.getDisplayType(f))),h.visibility!==d&&null!==h.visibility&&(h.visibility=h.visibility.toString().toLowerCase()),h.mobileHA=h.mobileHA&&t.State.isMobile&&!t.State.isGingerbread,h.queue===!1?h.delay?setTimeout(a,h.delay):a():m.queue(f,h.queue,function(b,c){return c===!0?(B.promise&&B.resolver(o),!0):(t.velocityQueueEntryFlag=!0,void a(b))}),""!==h.queue&&"fx"!==h.queue||"inprogress"===m.queue(f)[0]||m.dequeue(f)}var h,i,n,o,q,s,u=arguments[0]&&(arguments[0].p||m.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||p.isString(arguments[0].properties));if(p.isWrapped(this)?(h=!1,n=0,o=this,i=this):(h=!0,n=1,o=u?arguments[0].elements||arguments[0].e:arguments[0]),o=f(o)){u?(q=arguments[0].properties||arguments[0].p,s=arguments[0].options||arguments[0].o):(q=arguments[n],s=arguments[n+1]);var x=o.length,y=0;if(!/^(stop|finish)$/i.test(q)&&!m.isPlainObject(s)){var z=n+1;s={};for(var A=z;A<arguments.length;A++)p.isArray(arguments[A])||!/^(fast|normal|slow)$/i.test(arguments[A])&&!/^\d/.test(arguments[A])?p.isString(arguments[A])||p.isArray(arguments[A])?s.easing=arguments[A]:p.isFunction(arguments[A])&&(s.complete=arguments[A]):s.duration=arguments[A]}var B={promise:null,resolver:null,rejecter:null};h&&t.Promise&&(B.promise=new t.Promise(function(a,b){B.resolver=a,B.rejecter=b}));var C;switch(q){case"scroll":C="scroll";break;case"reverse":C="reverse";break;case"finish":case"stop":m.each(o,function(a,b){g(b)&&g(b).delayTimer&&(clearTimeout(g(b).delayTimer.setTimeout),g(b).delayTimer.next&&g(b).delayTimer.next(),delete g(b).delayTimer)});var D=[];return m.each(t.State.calls,function(a,b){b&&m.each(b[1],function(c,e){var f=s===d?"":s;return f===!0||b[2].queue===f||s===d&&b[2].queue===!1?void m.each(o,function(c,d){d===e&&((s===!0||p.isString(s))&&(m.each(m.queue(d,p.isString(s)?s:""),function(a,b){p.isFunction(b)&&b(null,!0)}),m.queue(d,p.isString(s)?s:"",[])),"stop"===q?(g(d)&&g(d).tweensContainer&&f!==!1&&m.each(g(d).tweensContainer,function(a,b){b.endValue=b.currentValue}),D.push(a)):"finish"===q&&(b[2].duration=1))}):!0})}),"stop"===q&&(m.each(D,function(a,b){l(b,!0)}),B.promise&&B.resolver(o)),a();default:if(!m.isPlainObject(q)||p.isEmptyObject(q)){if(p.isString(q)&&t.Redirects[q]){var E=m.extend({},s),F=E.duration,G=E.delay||0;return E.backwards===!0&&(o=m.extend(!0,[],o).reverse()),m.each(o,function(a,b){parseFloat(E.stagger)?E.delay=G+parseFloat(E.stagger)*a:p.isFunction(E.stagger)&&(E.delay=G+E.stagger.call(b,a,x)),E.drag&&(E.duration=parseFloat(F)||(/^(callout|transition)/.test(q)?1e3:r),E.duration=Math.max(E.duration*(E.backwards?1-a/x:(a+1)/x),.75*E.duration,200)),t.Redirects[q].call(b,b,E||{},a,x,o,B.promise?B:d)}),a()}var H="Velocity: First argument ("+q+") was not a property map, a known action, or a registered redirect. Aborting.";return B.promise?B.rejecter(new Error(H)):console.log(H),a()}C="start"}var I={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},J=[];m.each(o,function(a,b){p.isNode(b)&&e.call(b)});var K,E=m.extend({},t.defaults,s);if(E.loop=parseInt(E.loop),K=2*E.loop-1,E.loop)for(var L=0;K>L;L++){var M={delay:E.delay,progress:E.progress};L===K-1&&(M.display=E.display,M.visibility=E.visibility,M.complete=E.complete),w(o,"reverse",M)}return a()}};t=m.extend(w,t),t.animate=w;var x=b.requestAnimationFrame||o;return t.State.isMobile||c.hidden===d||c.addEventListener("visibilitychange",function(){c.hidden?(x=function(a){return setTimeout(function(){a(!0)},16)},k()):x=b.requestAnimationFrame||o}),a.Velocity=t,a!==b&&(a.fn.velocity=w,a.fn.velocity.defaults=t.defaults),m.each(["Down","Up"],function(a,b){t.Redirects["slide"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j=i.begin,k=i.complete,l={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},n={};i.display===d&&(i.display="Down"===b?"inline"===t.CSS.Values.getDisplayType(a)?"inline-block":"block":"none"),i.begin=function(){j&&j.call(g,g);for(var c in l){n[c]=a.style[c];var d=t.CSS.getPropertyValue(a,c);l[c]="Down"===b?[d,0]:[0,d]}n.overflow=a.style.overflow,a.style.overflow="hidden"},i.complete=function(){for(var b in n)a.style[b]=n[b];k&&k.call(g,g),h&&h.resolver(g)},t(a,l,i)}}),m.each(["In","Out"],function(a,b){t.Redirects["fade"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j={opacity:"In"===b?1:0},k=i.complete;i.complete=e!==f-1?i.begin=null:function(){k&&k.call(g,g),h&&h.resolver(g)},i.display===d&&(i.display="In"===b?"auto":"none"),t(this,j,i)}}),t}(window.jQuery||window.Zepto||window,window,document)})),!function(a,b,c,d){function e(a,b,c){return setTimeout(k(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a}function i(a,b){return h(a,b,!0)}function j(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&h(d,c)}function k(a,b){return function(){return a.apply(b,arguments)}}function l(a,b){return typeof a==bk?a.apply(b?b[0]||d:d,b):a}function m(a,b){return a===d?b:a}function n(a,b,c){g(r(b),function(b){a.addEventListener(b,c,!1)})}function o(a,b,c){g(r(b),function(b){a.removeEventListener(b,c,!1)})}function p(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function q(a,b){return a.indexOf(b)>-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function t(a){return Array.prototype.slice.call(a,0)}function u(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];s(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<bi.length;){if(c=bi[g],e=c?c+f:b,e in a)return e;g++}return d}function w(){return bo++}function x(a){var b=a.ownerDocument;return b.defaultView||b.parentWindow}function y(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){l(a.options.enable,[a])&&c.handler(b)},this.init()}function z(a){var b,c=a.options.inputClass;return new(b=c?c:br?N:bs?Q:bq?S:M)(a,A)}function A(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&by&&0===d-e,g=b&(bA|bB)&&0===d-e;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,B(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function B(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=E(b)),e>1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=bn(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===by||f.eventType===bA)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=bB&&(i>bx||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=bm(l.x)>bm(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:bl(a.pointers[c].clientX),clientY:bl(a.pointers[c].clientY)},c++;return{timeStamp:bn(),pointers:b,center:F(b),deltaX:a.deltaX,deltaY:a.deltaY}}function F(a){var b=a.length;if(1===b)return{x:bl(a[0].clientX),y:bl(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:bl(c/b),y:bl(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?bC:bm(a)>=bm(b)?a>0?bD:bE:b>0?bF:bG}function I(a,b,c){c||(c=bK);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=bK);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],bL)-J(a[1],a[0],bL)}function L(a,b){return I(b[0],b[1],bL)/I(a[0],a[1],bL)}function M(){this.evEl=bN,this.evWin=bO,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=bR,this.evWin=bS,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=bU,this.evWin=bV,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(bA|bB)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=bX,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(by|bz)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===by)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(bA|bB)&&delete d[g[e].identifier],e++;return h.length?[u(f.concat(h),"identifier",!0),h]:void 0}function S(){y.apply(this,arguments);var a=k(this.handler,this);this.touch=new Q(this.manager,a),this.mouse=new M(this.manager,a)}function T(a,b){this.manager=a,this.set(b)}function U(a){if(q(a,cb))return cb;var b=q(a,cc),c=q(a,cd);return b&&c?cc+" "+cd:b||c?b?cc:cd:q(a,ca)?ca:b_}function V(a){this.id=w(),this.manager=null,this.options=i(a||{},this.defaults),this.options.enable=m(this.options.enable,!0),this.state=ce,this.simultaneous={},this.requireFail=[]}function W(a){return a&cj?"cancel":a&ch?"end":a&cg?"move":a&cf?"start":""}function X(a){return a==bG?"down":a==bF?"up":a==bD?"left":a==bE?"right":""}function Y(a,b){var c=b.manager;return c?c.get(a):a}function Z(){V.apply(this,arguments)}function $(){Z.apply(this,arguments),this.pX=null,this.pY=null}function _(){Z.apply(this,arguments)}function ba(){V.apply(this,arguments),this._timer=null,this._input=null}function bb(){Z.apply(this,arguments)}function bc(){Z.apply(this,arguments)}function bd(){V.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function be(a,b){return b=b||{},b.recognizers=m(b.recognizers,be.defaults.preset),new bf(a,b)}function bf(a,b){b=b||{},this.options=i(b,be.defaults),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.element=a,this.input=z(this),this.touchAction=new T(this,this.options.touchAction),bg(this,!0),g(b.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function bg(a,b){var c=a.element;g(a.options.cssProps,function(a,d){c.style[v(c.style,d)]=b?a:""})}function bh(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}"use strict";var bi=["","webkit","moz","MS","ms","o"],bj=b.createElement("div"),bk="function",bl=Math.round,bm=Math.abs,bn=Date.now,bo=1,bp=/mobile|tablet|ip(ad|hone|od)|android/i,bq="ontouchstart"in a,br=v(a,"PointerEvent")!==d,bs=bq&&bp.test(navigator.userAgent),bt="touch",bu="pen",bv="mouse",bw="kinect",bx=25,by=1,bz=2,bA=4,bB=8,bC=1,bD=2,bE=4,bF=8,bG=16,bH=bD|bE,bI=bF|bG,bJ=bH|bI,bK=["x","y"],bL=["clientX","clientY"];y.prototype={handler:function(){},init:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&o(this.element,this.evEl,this.domHandler),this.evTarget&&o(this.target,this.evTarget,this.domHandler),this.evWin&&o(x(this.element),this.evWin,this.domHandler)}};var bM={mousedown:by,mousemove:bz,mouseup:bA},bN="mousedown",bO="mousemove mouseup";j(M,y,{handler:function(a){var b=bM[a.type];b&by&&0===a.button&&(this.pressed=!0),b&bz&&1!==a.which&&(b=bA),this.pressed&&this.allow&&(b&bA&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:bv,srcEvent:a}))}});var bP={pointerdown:by,pointermove:bz,pointerup:bA,pointercancel:bB,pointerout:bB},bQ={2:bt,3:bu,4:bv,5:bw},bR="pointerdown",bS="pointermove pointerup pointercancel";a.MSPointerEvent&&(bR="MSPointerDown",bS="MSPointerMove MSPointerUp MSPointerCancel"),j(N,y,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=bP[d],f=bQ[a.pointerType]||a.pointerType,g=f==bt,h=s(b,a.pointerId,"pointerId");e&by&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(bA|bB)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var bT={touchstart:by,touchmove:bz,touchend:bA,touchcancel:bB},bU="touchstart",bV="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=bT[a.type];if(b===by&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(bA|bB)&&0===c[0].length-c[1].length&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:bt,srcEvent:a})}}});var bW={touchstart:by,touchmove:bz,touchend:bA,touchcancel:bB},bX="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=bW[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:bt,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==bt,e=c.pointerType==bv;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(bA|bB)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bY=v(bj.style,"touchAction"),bZ=bY!==d,b$="compute",b_="auto",ca="manipulation",cb="none",cc="pan-x",cd="pan-y";T.prototype={set:function(a){a==b$&&(a=this.compute()),bZ&&(this.manager.element.style[bY]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!bZ){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,cb),f=q(d,cd),g=q(d,cc);return e||f&&c&bH||g&&c&bI?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ce=1,cf=2,cg=4,ch=8,ci=ch,cj=16,ck=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;ch>d&&b(!0),b(),d>=ch&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void (this.state=ck)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(ck|ce)))return!1;a++}return!0},recognize:function(a){var b=h({},a);return l(this.options.enable,[this,b])?(this.state&(ci|cj|ck)&&(this.state=ce),this.state=this.process(b),void (this.state&(cf|cg|ch|cj)&&this.tryEmit(b))):(this.reset(),void (this.state=ck))},process:function(){},getTouchAction:function(){},reset:function(){}},j(Z,V,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(cf|cg),e=this.attrTest(a);return d&&(c&bB||!e)?b|cj:d||e?c&bA?b|ch:b&cf?b|cg:cf:ck}}),j($,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:bJ},getTouchAction:function(){var a=this.options.direction,b=[];return a&bH&&b.push(cd),a&bI&&b.push(cc),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&bH?(e=0===f?bC:0>f?bD:bE,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?bC:0>g?bF:bG,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&cf||!(this.state&cf)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[cb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&cf)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ba,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[b_]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(bA|bB)&&!f)this.reset();else if(a.eventType&by)this.reset(),this._timer=e(function(){this.state=ci,this.tryEmit()},b.time,this);else if(a.eventType&bA)return ci;return ck},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ci&&(a&&a.eventType&bA?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=bn(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[cb]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&cf)}}),j(bc,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:bH|bI,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(bH|bI)?b=a.velocity:c&bH?b=a.velocityX:c&bI&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&bm(b)>this.options.velocity&&a.eventType&bA},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(bd,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ca]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&by&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=bA)return this.failTimeout();var g=this.pTime?a.timeStamp-this.pTime<b.interval:!0,h=!this.pCenter||I(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=ci,this.tryEmit()},b.interval,this),cf):ci}return ck},failTimeout:function(){return this._timer=e(function(){this.state=ck},this.options.interval,this),ck},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ci&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),be.VERSION="2.0.4",be.defaults={domEvents:!1,touchAction:b$,enable:!0,inputTarget:null,inputClass:null,preset:[[bb,{enable:!1}],[_,{enable:!1},["rotate"]],[bc,{direction:bH}],[$,{direction:bH},["swipe"]],[bd],[bd,{event:"doubletap",taps:2},["tap"]],[ba]],cssProps:{userSelect:"default",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var cl=1,cm=2;bf.prototype={set:function(a){return h(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?cm:cl},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&ci)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===cm||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(cf|cg|ch)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof V)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;var b=this.recognizers;return a=this.get(a),b.splice(s(b,a),1),this.touchAction.update(),this},on:function(a,b){var c=this.handlers;return g(r(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this},off:function(a,b){var c=this.handlers;return g(r(a),function(a){b?c[a].splice(s(c[a],b),1):delete c[a]}),this},emit:function(a,b){this.options.domEvents&&bh(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&bg(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},h(be,{INPUT_START:by,INPUT_MOVE:bz,INPUT_END:bA,INPUT_CANCEL:bB,STATE_POSSIBLE:ce,STATE_BEGAN:cf,STATE_CHANGED:cg,STATE_ENDED:ch,STATE_RECOGNIZED:ci,STATE_CANCELLED:cj,STATE_FAILED:ck,DIRECTION_NONE:bC,DIRECTION_LEFT:bD,DIRECTION_RIGHT:bE,DIRECTION_UP:bF,DIRECTION_DOWN:bG,DIRECTION_HORIZONTAL:bH,DIRECTION_VERTICAL:bI,DIRECTION_ALL:bJ,Manager:bf,Input:y,TouchAction:T,TouchInput:Q,MouseInput:M,PointerEventInput:N,TouchMouseInput:S,SingleTouchInput:O,Recognizer:V,AttrRecognizer:Z,Tap:bd,Pan:$,Swipe:bc,Pinch:_,Rotate:bb,Press:ba,on:n,off:o,each:g,merge:i,extend:h,inherit:j,bindFn:k,prefixed:v}),typeof define==bk&&define.amd?define(function(){return be}):"undefined"!=typeof module&&module.exports?module.exports=be:a[c]=be}(window,document,"Hammer"),function(a){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],a):"object"==typeof exports?a(require("jquery"),require("hammerjs")):a(jQuery,Hammer)}(function(a,b){function c(c,d){var e=a(c);e.data("hammer")||e.data("hammer",new b(e[0],d))}a.fn.hammer=function(a){return this.each(function(){c(this,a)})},b.Manager.prototype.emit=function(b){return function(c,d){b.call(this,c,d),a(this.element).trigger({type:c,gesture:d})}}(b.Manager.prototype.emit)}),function(a){a.Package?Materialize={}:a.Materialize={}}(window),Materialize.guid=function(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return a()+a()+"-"+a()+"-"+a()+"-"+a()+"-"+a()+a()+a()}}(),Materialize.elementOrParentIsFixed=function(a){var b=$(a),c=b.add(b.parents()),d=!1;return c.each(function(){return"fixed"===$(this).css("position")?(d=!0,!1):void 0}),d};var Vel;Vel=$?$.Velocity:jQuery?jQuery.Velocity:Velocity,function(a){a.fn.collapsible=function(b){var c={accordion:void 0,onOpen:void 0,onClose:void 0};return b=a.extend(c,b),this.each(function(){function c(b){j=i.find("> li > .collapsible-header"),b.hasClass("active")?b.parent().addClass("active"):b.parent().removeClass("active"),b.parent().hasClass("active")?b.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){a(this).css("height","")}}):b.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){a(this).css("height","")}}),j.not(b).removeClass("active").parent().removeClass("active"),j.not(b).parent().children(".collapsible-body").stop(!0,!1).each(function(){a(this).is(":visible")&&a(this).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){a(this).css("height",""),f(a(this).siblings(".collapsible-header"))}})})}function d(b){b.hasClass("active")?b.parent().addClass("active"):b.parent().removeClass("active"),b.parent().hasClass("active")?b.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){a(this).css("height","")}}):b.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){a(this).css("height","")}})}function e(a){b.accordion||"accordion"===k||void 0===k?c(a):d(a),f(a)}function f(a){a.hasClass("active")?"function"==typeof b.onOpen&&b.onOpen.call(this,a.parent()):"function"==typeof b.onClose&&b.onClose.call(this,a.parent())}function g(a){var b=h(a);return b.length>0}function h(a){return a.closest("li > .collapsible-header")}var i=a(this),j=a(this).find("> li > .collapsible-header"),k=i.data("collapsible");i.off("click.collapse","> li > .collapsible-header"),j.off("click.collapse"),i.on("click.collapse","> li > .collapsible-header",function(b){var c=a(b.target);g(c)&&(c=h(c)),c.toggleClass("active"),e(c)}),b.accordion||"accordion"===k||void 0===k?e(j.filter(".active").first()):j.filter(".active").each(function(){e(a(this))})})},a(document).ready(function(){a(".collapsible").collapsible()})}(jQuery),function(a){a.fn.scrollTo=function(b){return a(this).scrollTop(a(this).scrollTop()-a(this).offset().top+a(b).offset().top),this},a.fn.dropdown=function(b){var c={inDuration:300,outDuration:225,constrain_width:!0,hover:!1,gutter:0,belowOrigin:!1,alignment:"left",stopPropagation:!1};return"open"===b?(this.each(function(){a(this).trigger("open")}),!1):"close"===b?(this.each(function(){a(this).trigger("close")}),!1):void this.each(function(){function d(){void 0!==g.data("induration")&&(h.inDuration=g.data("induration")),void 0!==g.data("outduration")&&(h.outDuration=g.data("outduration")),void 0!==g.data("constrainwidth")&&(h.constrain_width=g.data("constrainwidth")),void 0!==g.data("hover")&&(h.hover=g.data("hover")),void 0!==g.data("gutter")&&(h.gutter=g.data("gutter")),void 0!==g.data("beloworigin")&&(h.belowOrigin=g.data("beloworigin")),void 0!==g.data("alignment")&&(h.alignment=g.data("alignment")),void 0!==g.data("stoppropagation")&&(h.stopPropagation=g.data("stoppropagation"))}function e(b){"focus"===b&&(i=!0),d(),j.addClass("active"),g.addClass("active"),h.constrain_width===!0?j.css("width",g.outerWidth()):j.css("white-space","nowrap");var c=window.innerHeight,e=g.innerHeight(),f=g.offset().left,k=g.offset().top-a(window).scrollTop(),l=h.alignment,m=0,n=0,o=0;h.belowOrigin===!0&&(o=e);var p=0,q=0,r=g.parent();if(r.is("body")||(r[0].scrollHeight>r[0].clientHeight&&(p=r[0].scrollTop),r[0].scrollWidth>r[0].clientWidth&&(q=r[0].scrollLeft)),f+j.innerWidth()>a(window).width()?l="right":f-j.innerWidth()+g.innerWidth()<0&&(l="left"),k+j.innerHeight()>c)if(k+e-j.innerHeight()<0){var s=c-k-o;j.css("max-height",s)}else o||(o+=e),o-=j.innerHeight();if("left"===l)m=h.gutter,n=g.position().left+m;else if("right"===l){var t=g.position().left+g.outerWidth()-j.outerWidth();m=-h.gutter,n=t+m}j.css({position:"absolute",top:g.position().top+o+p,left:n+q}),j.stop(!0,!0).css("opacity",0).slideDown({queue:!1,duration:h.inDuration,easing:"easeOutCubic",complete:function(){a(this).css("height","")}}).animate({opacity:1},{queue:!1,duration:h.inDuration,easing:"easeOutSine"})}function f(){i=!1,j.fadeOut(h.outDuration),j.removeClass("active"),g.removeClass("active"),setTimeout(function(){j.css("max-height","")},h.outDuration)}var g=a(this),h=a.extend({},c,b),i=!1,j=a("#"+g.attr("data-activates"));if(d(),g.after(j),h.hover){var k=!1;g.unbind("click."+g.attr("id")),g.on("mouseenter",function(a){k===!1&&(e(),k=!0)}),g.on("mouseleave",function(b){var c=b.toElement||b.relatedTarget;a(c).closest(".dropdown-content").is(j)||(j.stop(!0,!0),f(),k=!1)}),j.on("mouseleave",function(b){var c=b.toElement||b.relatedTarget;a(c).closest(".dropdown-button").is(g)||(j.stop(!0,!0),f(),k=!1)})}else g.unbind("click."+g.attr("id")),g.bind("click."+g.attr("id"),function(b){i||(g[0]!=b.currentTarget||g.hasClass("active")||0!==a(b.target).closest(".dropdown-content").length?g.hasClass("active")&&(f(),a(document).unbind("click."+j.attr("id")+" touchstart."+j.attr("id"))):(b.preventDefault(),h.stopPropagation&&b.stopPropagation(),e("click")),j.hasClass("active")&&a(document).bind("click."+j.attr("id")+" touchstart."+j.attr("id"),function(b){j.is(b.target)||g.is(b.target)||g.find(b.target).length||(f(),a(document).unbind("click."+j.attr("id")+" touchstart."+j.attr("id")))}))});g.on("open",function(a,b){e(b)}),g.on("close",f)})},a(document).ready(function(){a(".dropdown-button").dropdown()})}(jQuery),function(a){var b=0,c=0,d=function(){return c++,"materialize-lean-overlay-"+c};a.fn.extend({openModal:function(c){var e=a("body"),f=e.innerWidth();e.css("overflow","hidden"),e.width(f);var g={opacity:.5,in_duration:350,out_duration:250,ready:void 0,complete:void 0,dismissible:!0,starting_top:"4%",ending_top:"10%"},h=a(this);if(!h.hasClass("open")){var i=d(),j=a('<div class="lean-overlay"></div>');lStack=++b,j.attr("id",i).css("z-index",1e3+2*lStack),h.data("overlay-id",i).css("z-index",1e3+2*lStack+1),h.addClass("open"),a("body").append(j),c=a.extend(g,c),c.dismissible&&(j.click(function(){h.closeModal(c)}),a(document).on("keyup.leanModal"+i,function(a){27===a.keyCode&&h.closeModal(c)})),h.find(".modal-close").on("click.close",function(a){h.closeModal(c)}),j.css({display:"block",opacity:0}),h.css({display:"block",opacity:0}),j.velocity({opacity:c.opacity},{duration:c.in_duration,queue:!1,ease:"easeOutCubic"}),h.data("associated-overlay",j[0]),h.hasClass("bottom-sheet")?h.velocity({bottom:"0",opacity:1},{duration:c.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof c.ready&&c.ready()}}):(a.Velocity.hook(h,"scaleX",.7),h.css({top:c.starting_top}),h.velocity({top:c.ending_top,opacity:1,scaleX:"1"},{duration:c.in_duration,queue:!1,ease:"easeOutCubic",complete:function(){"function"==typeof c.ready&&c.ready()}}))}}}),a.fn.extend({closeModal:function(c){var d={out_duration:250,complete:void 0},e=a(this),f=e.data("overlay-id"),g=a("#"+f);e.removeClass("open"),c=a.extend(d,c),a("body").css({overflow:"",width:""}),e.find(".modal-close").off("click.close"),a(document).off("keyup.leanModal"+f),g.velocity({opacity:0},{duration:c.out_duration,queue:!1,ease:"easeOutQuart"}),e.hasClass("bottom-sheet")?e.velocity({bottom:"-100%",opacity:0},{duration:c.out_duration,queue:!1,ease:"easeOutCubic",complete:function(){g.css({display:"none"}),"function"==typeof c.complete&&c.complete(),g.remove(),b--}}):e.velocity({top:c.starting_top,opacity:0,scaleX:.7},{duration:c.out_duration,complete:function(){a(this).css("display","none"),"function"==typeof c.complete&&c.complete(),g.remove(),b--}})}}),a.fn.extend({leanModal:function(b){return this.each(function(){var c={starting_top:"4%"},d=a.extend(c,b);a(this).click(function(b){d.starting_top=(a(this).offset().top-a(window).scrollTop())/1.15;var c=a(this).attr("href")||"#"+a(this).data("target");a(c).openModal(d),b.preventDefault()})})}})}(jQuery),function(a){a.fn.materialbox=function(){return this.each(function(){function b(){f=!1;var b=i.parent(".material-placeholder"),d=(window.innerWidth,window.innerHeight,i.data("width")),g=i.data("height");i.velocity("stop",!0),a("#materialbox-overlay").velocity("stop",!0),a(".materialbox-caption").velocity("stop",!0),a("#materialbox-overlay").velocity({opacity:0},{duration:h,queue:!1,easing:"easeOutQuad",complete:function(){e=!1,a(this).remove()}}),i.velocity({width:d,height:g,left:0,top:0},{duration:h,queue:!1,easing:"easeOutQuad"}),a(".materialbox-caption").velocity({opacity:0},{duration:h,queue:!1,easing:"easeOutQuad",complete:function(){b.css({height:"",width:"",position:"",top:"",left:""}),i.css({height:"",top:"",left:"",width:"","max-width":"",position:"","z-index":""}),i.removeClass("active"),f=!0,a(this).remove(),c&&c.css("overflow","")}})}if(!a(this).hasClass("initialized")){a(this).addClass("initialized");var c,d,e=!1,f=!0,g=275,h=200,i=a(this),j=a("<div></div>").addClass("material-placeholder");i.wrap(j),i.on("click",function(){var h=i.parent(".material-placeholder"),j=window.innerWidth,k=window.innerHeight,l=i.width(),m=i.height();if(f===!1)return b(),!1;if(e&&f===!0)return b(),!1;f=!1,i.addClass("active"),e=!0,h.css({width:h[0].getBoundingClientRect().width,height:h[0].getBoundingClientRect().height,position:"relative",top:0,left:0}),c=void 0,d=h[0].parentNode;for(;null!==d&&!a(d).is(document);){var n=a(d);"visible"!==n.css("overflow")&&(n.css("overflow","visible"),c=void 0===c?n:c.add(n)),d=d.parentNode}i.css({position:"absolute","z-index":1e3}).data("width",l).data("height",m);var o=a('<div id="materialbox-overlay"></div>').css({opacity:0}).click(function(){f===!0&&b()});if(i.before(o),o.velocity({opacity:1},{duration:g,queue:!1,easing:"easeOutQuad"}),""!==i.data("caption")){var p=a('<div class="materialbox-caption"></div>');p.text(i.data("caption")),a("body").append(p),p.css({display:"inline"}),p.velocity({opacity:1},{duration:g,queue:!1,easing:"easeOutQuad"})}var q=0,r=l/j,s=m/k,t=0,u=0;r>s?(q=m/l,t=.9*j,u=.9*j*q):(q=l/m,t=.9*k*q,u=.9*k),i.hasClass("responsive-img")?i.velocity({"max-width":t,width:l},{duration:0,queue:!1,complete:function(){i.css({left:0,top:0}).velocity({height:u,width:t,left:a(document).scrollLeft()+j/2-i.parent(".material-placeholder").offset().left-t/2,top:a(document).scrollTop()+k/2-i.parent(".material-placeholder").offset().top-u/2},{duration:g,queue:!1,easing:"easeOutQuad",complete:function(){f=!0}})}}):i.css("left",0).css("top",0).velocity({height:u,width:t,left:a(document).scrollLeft()+j/2-i.parent(".material-placeholder").offset().left-t/2,top:a(document).scrollTop()+k/2-i.parent(".material-placeholder").offset().top-u/2},{duration:g,queue:!1,easing:"easeOutQuad",complete:function(){f=!0}})}),a(window).scroll(function(){e&&b()}),a(document).keyup(function(a){27===a.keyCode&&f===!0&&e&&b()})}})},a(document).ready(function(){a(".materialboxed").materialbox()})}(jQuery),function(a){a.fn.parallax=function(){var b=a(window).width();return this.each(function(c){function d(c){var d;d=601>b?e.height()>0?e.height():e.children("img").height():e.height()>0?e.height():500;var f=e.children("img").first(),g=f.height(),h=g-d,i=e.offset().top+d,j=e.offset().top,k=a(window).scrollTop(),l=window.innerHeight,m=k+l,n=(m-j)/(d+l),o=Math.round(h*n);c&&f.css("display","block"),i>k&&k+l>j&&f.css("transform","translate3D(-50%,"+o+"px, 0)")}var e=a(this);e.addClass("parallax"),e.children("img").one("load",function(){d(!0)}).each(function(){this.complete&&a(this).load()}),a(window).scroll(function(){b=a(window).width(),d(!1)}),a(window).resize(function(){b=a(window).width(),d(!1)})})}}(jQuery),function(a){var b={init:function(b){var c={onShow:null};return b=a.extend(c,b),this.each(function(){var c=a(this);a(window).width(),c.width("100%");var d,e,f=c.find("li.tab a"),g=c.width(),h=Math.max(g,c[0].scrollWidth)/f.length,i=0;d=a(f.filter('[href="'+location.hash+'"]')),0===d.length&&(d=a(this).find("li.tab a.active").first()),0===d.length&&(d=a(this).find("li.tab a").first()),d.addClass("active"),i=f.index(d),0>i&&(i=0),void 0!==d[0]&&(e=a(d[0].hash)),c.append('<div class="indicator"></div>');var j=c.find(".indicator");c.is(":visible")&&(j.css({right:g-(i+1)*h}),j.css({left:i*h})),a(window).resize(function(){g=c.width(),h=Math.max(g,c[0].scrollWidth)/f.length,0>i&&(i=0),0!==h&&0!==g&&(j.css({right:g-(i+1)*h}),j.css({left:i*h}))}),f.not(d).each(function(){a(this.hash).hide()}),c.on("click","a",function(k){if(a(this).parent().hasClass("disabled"))return void k.preventDefault();if(!a(this).attr("target")){g=c.width(),h=Math.max(g,c[0].scrollWidth)/f.length,d.removeClass("active"),void 0!==e&&e.hide(),d=a(this),e=a(this.hash),f=c.find("li.tab a"),d.addClass("active");var l=i;i=f.index(a(this)),0>i&&(i=0),void 0!==e&&(e.show(),"function"==typeof b.onShow&&b.onShow.call(this,e)),i-l>=0?(j.velocity({right:g-(i+1)*h},{duration:300,queue:!1,easing:"easeOutQuad"}),j.velocity({left:i*h},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})):(j.velocity({left:i*h},{duration:300,queue:!1,easing:"easeOutQuad"}),j.velocity({right:g-(i+1)*h},{duration:300,queue:!1,easing:"easeOutQuad",delay:90})),k.preventDefault()}})})},select_tab:function(a){this.find('a[href="#'+a+'"]').trigger("click")}};a.fn.tabs=function(c){return b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.tooltip"):b.init.apply(this,arguments)},a(document).ready(function(){a("ul.tabs").tabs()})}(jQuery),function(a){a.fn.tooltip=function(c){var d=5,e={delay:350,tooltip:"",position:"bottom",html:!1};return"remove"===c?(this.each(function(){a("#"+a(this).attr("data-tooltip-id")).remove(),a(this).off("mouseenter.tooltip mouseleave.tooltip")}),!1):(c=a.extend(e,c),this.each(function(){var e=Materialize.guid(),f=a(this);f.attr("data-tooltip-id",e);var g,h,i,j,k,l,m=function(){g=f.attr("data-html")?"true"===f.attr("data-html"):c.html,h=f.attr("data-delay"),h=void 0===h||""===h?c.delay:h,i=f.attr("data-position"),i=void 0===i||""===i?c.position:i,j=f.attr("data-tooltip"),j=void 0===j||""===j?c.tooltip:j};m();var n=function(){var b=a('<div class="material-tooltip"></div>');return j=g?a("<span></span>").html(j):a("<span></span>").text(j),b.append(j).appendTo(a("body")).attr("id",e),l=a('<div class="backdrop"></div>'),l.appendTo(b),b};k=n(),f.off("mouseenter.tooltip mouseleave.tooltip");var o,p=!1;f.on({"mouseenter.tooltip":function(a){var c=function(){m(),p=!0,k.velocity("stop"),l.velocity("stop"),k.css({display:"block",left:"0px",top:"0px"});var a,c,e,g=f.outerWidth(),h=f.outerHeight(),j=k.outerHeight(),n=k.outerWidth(),o="0px",q="0px",r=8,s=8;"top"===i?(a=f.offset().top-j-d,c=f.offset().left+g/2-n/2,e=b(c,a,n,j),o="-10px",l.css({bottom:0,left:0,borderRadius:"14px 14px 0 0",transformOrigin:"50% 100%",marginTop:j,marginLeft:n/2-l.width()/2})):"left"===i?(a=f.offset().top+h/2-j/2,c=f.offset().left-n-d,e=b(c,a,n,j),q="-10px",l.css({top:"-7px",right:0,width:"14px",height:"14px",borderRadius:"14px 0 0 14px",transformOrigin:"95% 50%",marginTop:j/2,marginLeft:n})):"right"===i?(a=f.offset().top+h/2-j/2,c=f.offset().left+g+d,e=b(c,a,n,j),q="+10px",l.css({top:"-7px",left:0,width:"14px",height:"14px",borderRadius:"0 14px 14px 0",transformOrigin:"5% 50%",marginTop:j/2,marginLeft:"0px"})):(a=f.offset().top+f.outerHeight()+d,c=f.offset().left+g/2-n/2,e=b(c,a,n,j),o="+10px",l.css({top:0,left:0,marginLeft:n/2-l.width()/2})),k.css({top:e.y,left:e.x}),r=Math.SQRT2*n/parseInt(l.css("width")),s=Math.SQRT2*j/parseInt(l.css("height")),k.velocity({marginTop:o,marginLeft:q},{duration:350,queue:!1}).velocity({opacity:1},{duration:300,delay:50,queue:!1}),l.css({display:"block"}).velocity({opacity:1},{duration:55,delay:0,queue:!1}).velocity({scaleX:r,scaleY:s},{duration:300,delay:0,queue:!1,easing:"easeInOutQuad"})};o=setTimeout(c,h)},"mouseleave.tooltip":function(){p=!1,clearTimeout(o),setTimeout(function(){p!==!0&&(k.velocity({opacity:0,marginTop:0,marginLeft:0},{duration:225,queue:!1}),l.velocity({opacity:0,scaleX:1,scaleY:1},{duration:225,queue:!1,complete:function(){l.css("display","none"),k.css("display","none"),p=!1}}))},225)}})}))};var b=function(b,c,d,e){var f=b,g=c;return 0>f?f=4:f+d>window.innerWidth&&(f-=f+d-window.innerWidth),0>g?g=4:g+e>window.innerHeight+a(window).scrollTop&&(g-=g+e-window.innerHeight),{x:f,y:g}};a(document).ready(function(){a(".tooltipped").tooltip()})}(jQuery),function(a){function b(a){return null!==a&&a===a.window}function c(a){return b(a)?a:9===a.nodeType&&a.defaultView}function d(a){var b,d,e={top:0,left:0},f=a&&a.ownerDocument;return b=f.documentElement,"undefined"!=typeof a.getBoundingClientRect&&(e=a.getBoundingClientRect()),d=c(f),{top:e.top+d.pageYOffset-b.clientTop,left:e.left+d.pageXOffset-b.clientLeft}}function e(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b+=c+":"+a[c]+";");return b}function f(a){if(k.allowEvent(a)===!1)return null;for(var b=null,c=a.target||a.srcElement;null!==c.parentElement;){if(!(c instanceof SVGElement||-1===c.className.indexOf("waves-effect"))){b=c;break}if(c.classList.contains("waves-effect")){b=c;break}c=c.parentElement}return b}function g(b){var c=f(b);null!==c&&(j.show(b,c),"ontouchstart"in a&&(c.addEventListener("touchend",j.hide,!1),c.addEventListener("touchcancel",j.hide,!1)),c.addEventListener("mouseup",j.hide,!1),c.addEventListener("mouseleave",j.hide,!1))}"use strict";var h=h||{},i=document.querySelectorAll.bind(document),j={duration:750,show:function(a,b){if(2===a.button)return!1;var c=b||this,f=document.createElement("div");f.className="waves-ripple",c.appendChild(f);var g=d(c),h=a.pageY-g.top,i=a.pageX-g.left,k="scale("+c.clientWidth/100*10+")";"touches"in a&&(h=a.touches[0].pageY-g.top,i=a.touches[0].pageX-g.left),f.setAttribute("data-hold",Date.now()),f.setAttribute("data-scale",k),f.setAttribute("data-x",i),f.setAttribute("data-y",h);var l={top:h+"px",left:i+"px"};f.className=f.className+" waves-notransition",f.setAttribute("style",e(l)),f.className=f.className.replace("waves-notransition",""),l["-webkit-transform"]=k,l["-moz-transform"]=k,l["-ms-transform"]=k,l["-o-transform"]=k,l.transform=k,l.opacity="1",l["-webkit-transition-duration"]=j.duration+"ms",l["-moz-transition-duration"]=j.duration+"ms",l["-o-transition-duration"]=j.duration+"ms",l["transition-duration"]=j.duration+"ms",l["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",l["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",l["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",l["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",f.setAttribute("style",e(l))},hide:function(a){k.touchup(a);var b=this,c=(1.4*b.clientWidth,null),d=b.getElementsByClassName("waves-ripple");if(!(d.length>0))return!1;c=d[d.length-1];var f=c.getAttribute("data-x"),g=c.getAttribute("data-y"),h=c.getAttribute("data-scale"),i=Date.now()-Number(c.getAttribute("data-hold")),l=350-i;0>l&&(l=0),setTimeout(function(){var a={top:g+"px",left:f+"px",opacity:"0","-webkit-transition-duration":j.duration+"ms","-moz-transition-duration":j.duration+"ms","-o-transition-duration":j.duration+"ms","transition-duration":j.duration+"ms","-webkit-transform":h,"-moz-transform":h,"-ms-transform":h,"-o-transform":h,transform:h};c.setAttribute("style",e(a)),setTimeout(function(){try{b.removeChild(c)}catch(a){return!1}},j.duration)},l)},wrapInput:function(a){for(var b=0;b<a.length;b++){var c=a[b];if("input"===c.tagName.toLowerCase()){var d=c.parentNode;if("i"===d.tagName.toLowerCase()&&-1!==d.className.indexOf("waves-effect"))continue;var e=document.createElement("i");e.className=c.className+" waves-input-wrapper";var f=c.getAttribute("style");f||(f=""),e.setAttribute("style",f),c.className="waves-button-input",c.removeAttribute("style"),d.replaceChild(e,c),e.appendChild(c)}}}},k={touches:0,allowEvent:function(a){var b=!0;return"touchstart"===a.type?k.touches+=1:"touchend"===a.type||"touchcancel"===a.type?setTimeout(function(){k.touches>0&&(k.touches-=1)},500):"mousedown"===a.type&&k.touches>0&&(b=!1),b},touchup:function(a){k.allowEvent(a)}};h.displayEffect=function(b){b=b||{},"duration"in b&&(j.duration=b.duration),j.wrapInput(i(".waves-effect")),"ontouchstart"in a&&document.body.addEventListener("touchstart",g,!1),document.body.addEventListener("mousedown",g,!1)},h.attach=function(b){"input"===b.tagName.toLowerCase()&&(j.wrapInput([b]),b=b.parentElement),"ontouchstart"in a&&b.addEventListener("touchstart",g,!1),b.addEventListener("mousedown",g,!1)},a.Waves=h,document.addEventListener("DOMContentLoaded",function(){h.displayEffect()},!1)}(window),Materialize.toast=function(a,b,c,d){function e(a){var b=document.createElement("div");if(b.classList.add("toast"),c)for(var e=c.split(" "),f=0,g=e.length;g>f;f++)b.classList.add(e[f]);("object"==typeof HTMLElement?a instanceof HTMLElement:a&&"object"==typeof a&&null!==a&&1===a.nodeType&&"string"==typeof a.nodeName)?b.appendChild(a):a instanceof jQuery?b.appendChild(a[0]):b.innerHTML=a;var h=new Hammer(b,{prevent_default:!1});return h.on("pan",function(a){var c=a.deltaX,d=80;b.classList.contains("panning")||b.classList.add("panning");var e=1-Math.abs(c/d);0>e&&(e=0),Vel(b,{left:c,opacity:e},{duration:50,queue:!1,easing:"easeOutQuad"})}),h.on("panend",function(a){var c=a.deltaX,e=80;Math.abs(c)>e?Vel(b,{marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof d&&d(),b.parentNode.removeChild(b)}}):(b.classList.remove("panning"),Vel(b,{left:0,opacity:1},{duration:300,easing:"easeOutExpo",queue:!1}))}),b}c=c||"";var f=document.getElementById("toast-container");null===f&&(f=document.createElement("div"),f.id="toast-container",document.body.appendChild(f));var g=e(a);a&&f.appendChild(g),g.style.top="35px",g.style.opacity=0,Vel(g,{top:"0px",opacity:1},{duration:300,easing:"easeOutCubic",queue:!1});var h=b,i=setInterval(function(){null===g.parentNode&&window.clearInterval(i),g.classList.contains("panning")||(h-=20),0>=h&&(Vel(g,{opacity:0,marginTop:"-40px"},{duration:375,easing:"easeOutExpo",queue:!1,complete:function(){"function"==typeof d&&d(),this[0].parentNode.removeChild(this[0])}}),window.clearInterval(i))},20)},function(a){var b={init:function(b){var c={menuWidth:300,edge:"left",closeOnClick:!1};b=a.extend(c,b),a(this).each(function(){var c=a(this),d=a("#"+c.attr("data-activates"));300!=b.menuWidth&&d.css("width",b.menuWidth);var e=a('<div class="drag-target"></div>').attr("data-sidenav",c.attr("data-activates"));a("body").append(e),"left"==b.edge?(d.css("transform","translateX(-100%)"),e.css({left:0})):(d.addClass("right-aligned").css("transform","translateX(100%)"),e.css({right:0})),d.hasClass("fixed")&&window.innerWidth>992&&d.css("transform","translateX(0)"),d.hasClass("fixed")&&a(window).resize(function(){window.innerWidth>992?0!==a("#sidenav-overlay").length&&h?f(!0):d.css("transform","translateX(0%)"):h===!1&&("left"===b.edge?d.css("transform","translateX(-100%)"):d.css("transform","translateX(100%)"))}),b.closeOnClick===!0&&d.on("click.itemclick","a:not(.collapsible-header)",function(){f()});var f=function(c){g=!1,h=!1,a("body").css({overflow:"",width:""}),a("#sidenav-overlay").velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}}),"left"===b.edge?(e.css({width:"",right:"",left:"0"}),d.velocity({translateX:"-100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){c===!0&&(d.removeAttr("style"),d.css("width",b.menuWidth))}})):(e.css({width:"",right:"0",left:""}),d.velocity({translateX:"100%"},{duration:200,queue:!1,easing:"easeOutCubic",complete:function(){c===!0&&(d.removeAttr("style"),d.css("width",b.menuWidth))}}))},g=!1,h=!1;e.on("click",function(){h&&f()}),e.hammer({prevent_default:!1}).bind("pan",function(c){if("touch"==c.gesture.pointerType){var e=(c.gesture.direction,c.gesture.center.x),g=(c.gesture.center.y,c.gesture.velocityX,a("body")),i=a('<div id="sidenav-overlay"></div>'),j=g.innerWidth();if(g.css("overflow","hidden"),g.width(j),0===i.length&&(i.css("opacity",0).click(function(){f()}),a("body").append(i)),"left"===b.edge&&(e>b.menuWidth?e=b.menuWidth:0>e&&(e=0)),"left"===b.edge)e<b.menuWidth/2?h=!1:e>=b.menuWidth/2&&(h=!0),d.css("transform","translateX("+(e-b.menuWidth)+"px)");else{e<window.innerWidth-b.menuWidth/2?h=!0:e>=window.innerWidth-b.menuWidth/2&&(h=!1);var k=e-b.menuWidth/2;0>k&&(k=0),d.css("transform","translateX("+k+"px)")}var l;"left"===b.edge?(l=e/b.menuWidth,i.velocity({opacity:l},{duration:10,queue:!1,easing:"easeOutQuad"})):(l=Math.abs((e-window.innerWidth)/b.menuWidth),i.velocity({opacity:l},{duration:10,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(c){if("touch"==c.gesture.pointerType){var f=a('<div id="sidenav-overlay"></div>'),i=c.gesture.velocityX,j=c.gesture.center.x,k=j-b.menuWidth,l=j-b.menuWidth/2;k>0&&(k=0),0>l&&(l=0),g=!1,"left"===b.edge?h&&.3>=i||-0.5>i?(0!==k&&d.velocity({translateX:[0,k]},{duration:300,queue:!1,easing:"easeOutQuad"}),f.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),e.css({width:"50%",right:0,left:""}),h=!0):(!h||i>.3)&&(a("body").css({overflow:"",width:""}),d.velocity({translateX:[-1*b.menuWidth-10,k]},{duration:200,queue:!1,easing:"easeOutQuad"}),f.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}}),e.css({width:"10px",right:"",left:0})):h&&i>=-0.3||i>.5?(0!==l&&d.velocity({translateX:[0,l]},{duration:300,queue:!1,easing:"easeOutQuad"}),f.velocity({opacity:1},{duration:50,queue:!1,easing:"easeOutQuad"}),e.css({width:"50%",right:"",left:0}),h=!0):(!h||-0.3>i)&&(a("body").css({overflow:"",width:""}),d.velocity({translateX:[b.menuWidth+10,l]},{duration:200,queue:!1,easing:"easeOutQuad"}),f.velocity({opacity:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}}),e.css({width:"10px",right:0,left:""}))}}),c.click(function(){if(h===!0)h=!1,g=!1,f();else{var c=a("body"),i=a('<div id="sidenav-overlay"></div>'),j=c.innerWidth();c.css("overflow","hidden"),c.width(j),a("body").append(e),"left"===b.edge?(e.css({width:"50%",right:0,left:""}),d.velocity({translateX:[0,-1*b.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})):(e.css({width:"50%",right:"",left:0}),d.velocity({translateX:[0,b.menuWidth]},{duration:300,queue:!1,easing:"easeOutQuad"})),i.css("opacity",0).click(function(){h=!1,g=!1,f(),i.velocity({opacity:0},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){a(this).remove()}})}),a("body").append(i),i.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){h=!0,g=!1}})}return!1})})},destroy:function(){var b=a("#sidenav-overlay"),c=a('.drag-target[data-sidenav="'+a(this).attr("data-activates")+'"]');b.trigger("click"),c.remove(),a(this).off("click"),b.remove()},show:function(){this.trigger("click")},hide:function(){a("#sidenav-overlay").trigger("click")}};a.fn.sideNav=function(c){return b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.sideNav"):b.init.apply(this,arguments)}}(jQuery),function(a){function b(b,c,d,e){var f=a();return a.each(g,function(a,g){if(g.height()>0){var h=g.offset().top,i=g.offset().left,j=i+g.width(),k=h+g.height(),l=!(i>c||e>j||h>d||b>k);l&&f.push(g)}}),f}function c(){++j;var c=f.scrollTop(),d=f.scrollLeft(),e=d+f.width(),g=c+f.height(),i=b(c+k.top+200,e+k.right,g+k.bottom,d+k.left);a.each(i,function(a,b){var c=b.data("scrollSpy:ticks");"number"!=typeof c&&b.triggerHandler("scrollSpy:enter"),b.data("scrollSpy:ticks",j)}),a.each(h,function(a,b){var c=b.data("scrollSpy:ticks");"number"==typeof c&&c!==j&&(b.triggerHandler("scrollSpy:exit"),b.data("scrollSpy:ticks",null))}),h=i}function d(){f.trigger("scrollSpy:winSize")}function e(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:l(),g=null,f=a.apply(d,e),d=e=null};return function(){var j=l();h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k?(clearTimeout(g),g=null,h=j,f=a.apply(d,e),d=e=null):g||c.trailing===!1||(g=setTimeout(i,k)),f}}var f=a(window),g=[],h=[],i=!1,j=0,k={top:0,right:0,bottom:0,left:0},l=Date.now||function(){return(new Date).getTime()};a.scrollSpy=function(b,d){var h={throttle:100,scrollOffset:200};d=a.extend(h,d);var j=[];b=a(b),b.each(function(b,c){g.push(a(c)),a(c).data("scrollSpy:id",b),a('a[href="#'+a(c).attr("id")+'"]').click(function(b){b.preventDefault();var c=a(this.hash).offset().top+1;a("html, body").animate({scrollTop:c-d.scrollOffset},{duration:400,queue:!1,easing:"easeOutCubic"})})}),k.top=d.offsetTop||0,k.right=d.offsetRight||0,k.bottom=d.offsetBottom||0,k.left=d.offsetLeft||0;var l=e(c,d.throttle||100),m=function(){a(document).ready(l)};return i||(f.on("scroll",m),f.on("resize",m),i=!0),setTimeout(m,0),b.on("scrollSpy:enter",function(){j=a.grep(j,function(a){return 0!=a.height()});var b=a(this);j[0]?(a('a[href="#'+j[0].attr("id")+'"]').removeClass("active"),b.data("scrollSpy:id")<j[0].data("scrollSpy:id")?j.unshift(a(this)):j.push(a(this))):j.push(a(this)),a('a[href="#'+j[0].attr("id")+'"]').addClass("active")}),b.on("scrollSpy:exit",function(){if(j=a.grep(j,function(a){return 0!=a.height()}),j[0]){a('a[href="#'+j[0].attr("id")+'"]').removeClass("active");var b=a(this);j=a.grep(j,function(a){return a.attr("id")!=b.attr("id")}),j[0]&&a('a[href="#'+j[0].attr("id")+'"]').addClass("active")}}),b},a.winSizeSpy=function(b){return a.winSizeSpy=function(){return f},b=b||{throttle:100},f.on("resize",e(d,b.throttle||100))},a.fn.scrollSpy=function(b){return a.scrollSpy(a(this),b)}}(jQuery),function(a){a(document).ready(function(){function b(b){var c=b.css("font-family"),d=b.css("font-size"),f=b.css("line-height");d&&e.css("font-size",d),c&&e.css("font-family",c),f&&e.css("line-height",f),"off"===b.attr("wrap")&&e.css("overflow-wrap","normal").css("white-space","pre"),e.text(b.val()+"\n");var g=e.html().replace(/\n/g,"<br>");e.html(g),b.is(":visible")?e.css("width",b.width()):e.css("width",a(window).width()/2),b.css("height",e.height())}Materialize.updateTextFields=function(){var b="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";a(b).each(function(b,c){a(c).val().length>0||c.autofocus||void 0!==a(this).attr("placeholder")||a(c)[0].validity.badInput===!0?a(this).siblings("label").addClass("active"):a(this).siblings("label").removeClass("active")})};var c="input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea";a(document).on("change",c,function(){(0!==a(this).val().length||void 0!==a(this).attr("placeholder"))&&a(this).siblings("label").addClass("active"),validate_field(a(this))}),a(document).ready(function(){Materialize.updateTextFields()}),a(document).on("reset",function(b){var d=a(b.target);d.is("form")&&(d.find(c).removeClass("valid").removeClass("invalid"),d.find(c).each(function(){""===a(this).attr("value")&&a(this).siblings("label").removeClass("active")}),d.find("select.initialized").each(function(){var a=d.find("option[selected]").text();d.siblings("input.select-dropdown").val(a)}))}),a(document).on("focus",c,function(){a(this).siblings("label, .prefix").addClass("active")}),a(document).on("blur",c,function(){var b=a(this),c=".prefix";0===b.val().length&&b[0].validity.badInput!==!0&&void 0===b.attr("placeholder")&&(c+=", label"),b.siblings(c).removeClass("active"),validate_field(b)}),window.validate_field=function(a){var b=void 0!==a.attr("length"),c=parseInt(a.attr("length")),d=a.val().length;0===a.val().length&&a[0].validity.badInput===!1?a.hasClass("validate")&&(a.removeClass("valid"),a.removeClass("invalid")):a.hasClass("validate")&&(a.is(":valid")&&b&&c>=d||a.is(":valid")&&!b?(a.removeClass("invalid"),a.addClass("valid")):(a.removeClass("valid"),a.addClass("invalid")))};var d="input[type=radio], input[type=checkbox]";a(document).on("keyup.radio",d,function(b){if(9===b.which){a(this).addClass("tabbed");var c=a(this);return void c.one("blur",function(b){a(this).removeClass("tabbed")})}});var e=a(".hiddendiv").first();e.length||(e=a('<div class="hiddendiv common"></div>'),a("body").append(e));var f=".materialize-textarea";a(f).each(function(){var c=a(this);c.val().length&&b(c)}),a("body").on("keyup keydown autoresize",f,function(){b(a(this))}),a(document).on("change",'.file-field input[type="file"]',function(){for(var b=a(this).closest(".file-field"),c=b.find("input.file-path"),d=a(this)[0].files,e=[],f=0;f<d.length;f++)e.push(d[f].name);c.val(e.join(", ")),c.trigger("change")});var g,h="input[type=range]",i=!1;a(h).each(function(){var b=a('<span class="thumb"><span class="value"></span></span>');a(this).after(b)});var j=".range-field";a(document).on("change",h,function(b){var c=a(this).siblings(".thumb");c.find(".value").html(a(this).val())}),a(document).on("input mousedown touchstart",h,function(b){var c=a(this).siblings(".thumb"),d=a(this).outerWidth();c.length<=0&&(c=a('<span class="thumb"><span class="value"></span></span>'),a(this).after(c)),c.find(".value").html(a(this).val()),i=!0,a(this).addClass("active"),c.hasClass("active")||c.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),"input"!==b.type&&(g=void 0===b.pageX||null===b.pageX?b.originalEvent.touches[0].pageX-a(this).offset().left:b.pageX-a(this).offset().left,0>g?g=0:g>d&&(g=d),c.addClass("active").css("left",g)),c.find(".value").html(a(this).val())}),a(document).on("mouseup touchend",j,function(){i=!1,a(this).removeClass("active")}),a(document).on("mousemove touchmove",j,function(b){var c,d=a(this).children(".thumb");if(i){d.hasClass("active")||d.velocity({height:"30px",width:"30px",top:"-20px",marginLeft:"-15px"},{duration:300,easing:"easeOutExpo"}),c=void 0===b.pageX||null===b.pageX?b.originalEvent.touches[0].pageX-a(this).offset().left:b.pageX-a(this).offset().left;var e=a(this).outerWidth();0>c?c=0:c>e&&(c=e),d.addClass("active").css("left",c),d.find(".value").html(d.siblings(h).val())}}),a(document).on("mouseout touchleave",j,function(){if(!i){var b=a(this).children(".thumb");b.hasClass("active")&&b.velocity({height:"0",width:"0",top:"10px",marginLeft:"-6px"},{duration:100}),b.removeClass("active")}}),a.fn.autocomplete=function(b){var c={data:{}};return b=a.extend(c,b),this.each(function(){var c=a(this),d=b.data,e=c.closest(".input-field");if(!a.isEmptyObject(d)){var f=a('<ul class="autocomplete-content dropdown-content"></ul>');e.length?e.append(f):c.after(f);var g=function(a,b){var c=b.find("img"),d=b.text().toLowerCase().indexOf(""+a.toLowerCase()),e=d+a.length-1,f=b.text().slice(0,d),g=b.text().slice(d,e+1),h=b.text().slice(e+1);b.html("<span>"+f+"<span class='highlight'>"+g+"</span>"+h+"</span>"),c.length&&b.prepend(c)};c.on("keyup",function(b){if(13===b.which)return void f.find("li").first().click();var e=c.val().toLowerCase();if(f.empty(),""!==e)for(var h in d)if(d.hasOwnProperty(h)&&-1!==h.toLowerCase().indexOf(e)&&h.toLowerCase()!==e){var i=a("<li></li>");d[h]?i.append('<img src="'+d[h]+'" class="right circle"><span>'+h+"</span>"):i.append("<span>"+h+"</span>"),f.append(i),g(e,i)}}),f.on("click","li",function(){c.val(a(this).text().trim()),f.empty()})}})}}),a.fn.material_select=function(b){function c(a,b,c){var e=a.indexOf(b),f=-1===e;return f?a.push(b):a.splice(e,1),c.siblings("ul.dropdown-content").find("li").eq(b).toggleClass("active"),c.find("option").eq(b).prop("selected",f),d(a,c),f}function d(a,b){for(var c="",d=0,e=a.length;e>d;d++){var f=b.find("option").eq(a[d]).text();c+=0===d?f:", "+f}""===c&&(c=b.find("option:disabled").eq(0).text()),b.siblings("input.select-dropdown").val(c)}a(this).each(function(){var d=a(this);if(!d.hasClass("browser-default")){var e=d.attr("multiple")?!0:!1,f=d.data("select-id");if(f&&(d.parent().find("span.caret").remove(),d.parent().find("input").remove(),d.unwrap(),a("ul#select-options-"+f).remove()),"destroy"===b)return void d.data("select-id",null).removeClass("initialized");var g=Materialize.guid();d.data("select-id",g);var h=a('<div class="select-wrapper"></div>');h.addClass(d.attr("class"));var i=a('<ul id="select-options-'+g+'" class="dropdown-content select-dropdown '+(e?"multiple-select-dropdown":"")+'"></ul>'),j=d.children("option, optgroup"),k=[],l=!1,m=d.find("option:selected").html()||d.find("option:first").html()||"",n=function(b,c,d){var e=c.is(":disabled")?"disabled ":"",f="optgroup-option"===d?"optgroup-option ":"",g=c.data("icon"),h=c.attr("class");if(g){var j="";return h&&(j=' class="'+h+'"'),"multiple"===d?i.append(a('<li class="'+e+'"><img src="'+g+'"'+j+'><span><input type="checkbox"'+e+"/><label></label>"+c.html()+"</span></li>")):i.append(a('<li class="'+e+f+'"><img src="'+g+'"'+j+"><span>"+c.html()+"</span></li>")),!0}"multiple"===d?i.append(a('<li class="'+e+'"><span><input type="checkbox"'+e+"/><label></label>"+c.html()+"</span></li>")):i.append(a('<li class="'+e+f+'"><span>'+c.html()+"</span></li>"))};j.length&&j.each(function(){if(a(this).is("option"))e?n(d,a(this),"multiple"):n(d,a(this));else if(a(this).is("optgroup")){var b=a(this).children("option");i.append(a('<li class="optgroup"><span>'+a(this).attr("label")+"</span></li>")),b.each(function(){n(d,a(this),"optgroup-option")})}}),i.find("li:not(.optgroup)").each(function(f){a(this).click(function(g){if(!a(this).hasClass("disabled")&&!a(this).hasClass("optgroup")){var h=!0;e?(a('input[type="checkbox"]',this).prop("checked",function(a,b){return!b}),h=c(k,a(this).index(),d),q.trigger("focus")):(i.find("li").removeClass("active"),a(this).toggleClass("active"),q.val(a(this).text())),r(i,a(this)),d.find("option").eq(f).prop("selected",h),d.trigger("change"),"undefined"!=typeof b&&b()}g.stopPropagation()})}),d.wrap(h);var o=a('<span class="caret">&#9660;</span>');d.is(":disabled")&&o.addClass("disabled");var p=m.replace(/"/g,"&quot;"),q=a('<input type="text" class="select-dropdown" readonly="true" '+(d.is(":disabled")?"disabled":"")+' data-activates="select-options-'+g+'" value="'+p+'"/>');d.before(q),q.before(o),q.after(i),d.is(":disabled")||q.dropdown({hover:!1,closeOnClick:!1}),d.attr("tabindex")&&a(q[0]).attr("tabindex",d.attr("tabindex")),d.addClass("initialized"),q.on({focus:function(){if(a("ul.select-dropdown").not(i[0]).is(":visible")&&a("input.select-dropdown").trigger("close"),!i.is(":visible")){a(this).trigger("open",["focus"]);var b=a(this).val(),c=i.find("li").filter(function(){return a(this).text().toLowerCase()===b.toLowerCase()})[0];r(i,c)}},click:function(a){a.stopPropagation()}}),q.on("blur",function(){e||a(this).trigger("close"),i.find("li.selected").removeClass("selected")}),i.hover(function(){l=!0},function(){l=!1}),a(window).on({click:function(){e&&(l||q.trigger("close"))}}),e&&d.find("option:selected:not(:disabled)").each(function(){var b=a(this).index();c(k,b,d),i.find("li").eq(b).find(":checkbox").prop("checked",!0)});var r=function(b,c){if(c){b.find("li.selected").removeClass("selected");var d=a(c);d.addClass("selected"),i.scrollTo(d)}},s=[],t=function(b){if(9==b.which)return void q.trigger("close");if(40==b.which&&!i.is(":visible"))return void q.trigger("open");if(13!=b.which||i.is(":visible")){b.preventDefault();var c=String.fromCharCode(b.which).toLowerCase(),d=[9,13,27,38,40];if(c&&-1===d.indexOf(b.which)){s.push(c);var f=s.join(""),g=i.find("li").filter(function(){return 0===a(this).text().toLowerCase().indexOf(f)})[0];g&&r(i,g)}if(13==b.which){var h=i.find("li.selected:not(.disabled)")[0];h&&(a(h).trigger("click"),e||q.trigger("close"))}40==b.which&&(g=i.find("li.selected").length?i.find("li.selected").next("li:not(.disabled)")[0]:i.find("li:not(.disabled)")[0],r(i,g)),27==b.which&&q.trigger("close"),38==b.which&&(g=i.find("li.selected").prev("li:not(.disabled)")[0],g&&r(i,g)),setTimeout(function(){s=[]},1e3)}};q.on("keydown",t)}})}}(jQuery),function(a){var b={init:function(b){var c={indicators:!0,height:400,transition:500,interval:6e3};return b=a.extend(c,b),this.each(function(){function c(a,b){a.hasClass("center-align")?a.velocity({opacity:0,translateY:-100},{duration:b,queue:!1}):a.hasClass("right-align")?a.velocity({opacity:0,translateX:100},{duration:b,queue:!1}):a.hasClass("left-align")&&a.velocity({opacity:0,translateX:-100},{duration:b,queue:!1})}function d(a){a>=j.length?a=0:0>a&&(a=j.length-1),k=i.find(".active").index(),k!=a&&(e=j.eq(k),$caption=e.find(".caption"),e.removeClass("active"),e.velocity({opacity:0},{duration:b.transition,queue:!1,easing:"easeOutQuad",complete:function(){j.not(".active").velocity({opacity:0,translateX:0,translateY:0},{duration:0,queue:!1})}}),c($caption,b.transition),b.indicators&&f.eq(k).removeClass("active"),j.eq(a).velocity({opacity:1},{duration:b.transition,queue:!1,easing:"easeOutQuad"}),j.eq(a).find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:b.transition,delay:b.transition,queue:!1,easing:"easeOutQuad"}),j.eq(a).addClass("active"),b.indicators&&f.eq(a).addClass("active"))}var e,f,g,h=a(this),i=h.find("ul.slides").first(),j=i.find("> li"),k=i.find(".active").index();-1!=k&&(e=j.eq(k)),h.hasClass("fullscreen")||(b.indicators?h.height(b.height+40):h.height(b.height),i.height(b.height)),j.find(".caption").each(function(){c(a(this),0)}),j.find("img").each(function(){var b="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";a(this).attr("src")!==b&&(a(this).css("background-image","url("+a(this).attr("src")+")"),a(this).attr("src",b))}),b.indicators&&(f=a('<ul class="indicators"></ul>'),j.each(function(c){var e=a('<li class="indicator-item"></li>');e.click(function(){var c=i.parent(),e=c.find(a(this)).index();d(e),clearInterval(g),g=setInterval(function(){k=i.find(".active").index(),j.length==k+1?k=0:k+=1,d(k)},b.transition+b.interval)}),f.append(e)}),h.append(f),f=h.find("ul.indicators").find("li.indicator-item")),e?e.show():(j.first().addClass("active").velocity({opacity:1},{duration:b.transition,queue:!1,easing:"easeOutQuad"}),k=0,e=j.eq(k),b.indicators&&f.eq(k).addClass("active")),e.find("img").each(function(){e.find(".caption").velocity({opacity:1,translateX:0,translateY:0},{duration:b.transition,queue:!1,easing:"easeOutQuad"})}),g=setInterval(function(){k=i.find(".active").index(),d(k+1)},b.transition+b.interval);var l=!1,m=!1,n=!1;h.hammer({prevent_default:!1}).bind("pan",function(a){if("touch"===a.gesture.pointerType){clearInterval(g);var b=a.gesture.direction,c=a.gesture.deltaX,d=a.gesture.velocityX;$curr_slide=i.find(".active"),$curr_slide.velocity({translateX:c},{duration:50,queue:!1,easing:"easeOutQuad"}),4===b&&(c>h.innerWidth()/2||-0.65>d)?n=!0:2===b&&(c<-1*h.innerWidth()/2||d>.65)&&(m=!0);var e;m&&(e=$curr_slide.next(),0===e.length&&(e=j.first()),e.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"})),n&&(e=$curr_slide.prev(),0===e.length&&(e=j.last()),e.velocity({opacity:1},{duration:300,queue:!1,easing:"easeOutQuad"}))}}).bind("panend",function(a){"touch"===a.gesture.pointerType&&($curr_slide=i.find(".active"),l=!1,curr_index=i.find(".active").index(),!n&&!m||j.length<=1?$curr_slide.velocity({translateX:0},{duration:300,queue:!1,easing:"easeOutQuad"}):m?(d(curr_index+1),$curr_slide.velocity({translateX:-1*h.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})):n&&(d(curr_index-1),$curr_slide.velocity({translateX:h.innerWidth()},{duration:300,queue:!1,easing:"easeOutQuad",complete:function(){$curr_slide.velocity({opacity:0,translateX:0},{duration:0,queue:!1})}})),m=!1,n=!1,clearInterval(g),g=setInterval(function(){k=i.find(".active").index(),j.length==k+1?k=0:k+=1,d(k)},b.transition+b.interval))}),h.on("sliderPause",function(){clearInterval(g)}),h.on("sliderStart",function(){clearInterval(g),g=setInterval(function(){k=i.find(".active").index(),j.length==k+1?k=0:k+=1,d(k)},b.transition+b.interval)}),h.on("sliderNext",function(){k=i.find(".active").index(),d(k+1)}),h.on("sliderPrev",function(){k=i.find(".active").index(),d(k-1)})})},pause:function(){a(this).trigger("sliderPause")},start:function(){a(this).trigger("sliderStart")},next:function(){a(this).trigger("sliderNext")},prev:function(){a(this).trigger("sliderPrev")}};a.fn.slider=function(c){return b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.tooltip"):b.init.apply(this,arguments)}}(jQuery),function(a){a(document).ready(function(){a(document).on("click.card",".card",function(b){a(this).find("> .card-reveal").length&&(a(b.target).is(a(".card-reveal .card-title"))||a(b.target).is(a(".card-reveal .card-title i"))?a(this).find(".card-reveal").velocity({translateY:0},{duration:225,queue:!1,easing:"easeInOutQuad",complete:function(){a(this).css({display:"none"})}}):(a(b.target).is(a(".card .activator"))||a(b.target).is(a(".card .activator i")))&&(a(b.target).closest(".card").css("overflow","hidden"),a(this).find(".card-reveal").css({display:"block"}).velocity("stop",!1).velocity({translateY:"-100%"},{duration:300,queue:!1,easing:"easeInOutQuad"})))})})}(jQuery),function(a){var b=!1,c={data:[],placeholder:"",secondaryPlaceholder:""};a(document).ready(function(){a(document).on("click",".chip .close",function(b){var c=a(this).closest(".chips");c.data("initialized")||a(this).closest(".chip").remove()})}),a.fn.material_chip=function(d){var e=this;return this.$el=a(this),this.$document=a(document),this.SELS={CHIPS:".chips",CHIP:".chip",INPUT:"input",DELETE:".material-icons",SELECTED_CHIP:".selected"},"data"===d?this.$el.data("chips"):"options"===d?this.$el.data("options"):(this.$el.data("options",a.extend({},c,d)),this.init=function(){var b=0;e.$el.each(function(){var c=a(this);if(!c.data("initialized")){var d=c.data("options");(!d.data||!d.data instanceof Array)&&(d.data=[]),c.data("chips",d.data),c.data("index",b),c.data("initialized",!0),c.hasClass(e.SELS.CHIPS)||c.addClass("chips"),e.chips(c),b++}})},this.handleEvents=function(){var b=e.SELS;e.$document.on("click",b.CHIPS,function(c){a(c.target).find(b.INPUT).focus()}),e.$document.on("click",b.CHIP,function(c){a(b.CHIP).removeClass("selected"),a(this).toggleClass("selected")}),e.$document.on("keydown",function(c){if(!a(c.target).is("input, textarea")){var d,f=e.$document.find(b.CHIP+b.SELECTED_CHIP),g=f.closest(b.CHIPS),h=f.siblings(b.CHIP).length;if(f.length)if(8===c.which||46===c.which){c.preventDefault();var i=g.data("index");d=f.index(),e.deleteChip(i,d,g);var j=null;h>d+1?j=d:(d===h||d+1===h)&&(j=h-1),0>j&&(j=null),null!==j&&e.selectChip(i,j,g),h||g.find("input").focus()}else if(37===c.which){if(d=f.index()-1,0>d)return;a(b.CHIP).removeClass("selected"),e.selectChip(g.data("index"),d,g)}else if(39===c.which){if(d=f.index()+1,a(b.CHIP).removeClass("selected"),d>h)return void g.find("input").focus();e.selectChip(g.data("index"),d,g)}}}),e.$document.on("focusin",b.CHIPS+" "+b.INPUT,function(c){a(c.target).closest(b.CHIPS).addClass("focus"),a(b.CHIP).removeClass("selected")}),e.$document.on("focusout",b.CHIPS+" "+b.INPUT,function(c){a(c.target).closest(b.CHIPS).removeClass("focus")}),e.$document.on("keydown",b.CHIPS+" "+b.INPUT,function(c){var d=a(c.target),f=d.closest(b.CHIPS),g=f.data("index"),h=f.children(b.CHIP).length;return 13===c.which?(c.preventDefault(),e.addChip(g,{tag:d.val()},f),void d.val("")):8!==c.keyCode&&37!==c.keyCode||""!==d.val()||!h?void 0:(e.selectChip(g,h-1,f),void d.blur())}),e.$document.on("click",b.CHIPS+" "+b.DELETE,function(c){var d=a(c.target),f=d.closest(b.CHIPS),g=d.closest(b.CHIP);c.stopPropagation(),e.deleteChip(f.data("index"),g.index(),f),f.find("input").focus()})},this.chips=function(a){var b="";a.data("options"),a.data("chips").forEach(function(a){b+=e.renderChip(a)}),b+='<input class="input" placeholder="">',a.html(b),e.setPlaceholder(a)},this.renderChip=function(a){if(a.tag){var b='<div class="chip">'+a.tag;return a.image&&(b+=' <img src="'+a.image+'"> '),b+='<i class="material-icons close">close</i>',b+="</div>"}},this.setPlaceholder=function(a){var b=a.data("options");a.data("chips").length&&b.placeholder?a.find("input").prop("placeholder",b.placeholder):!a.data("chips").length&&b.secondaryPlaceholder&&a.find("input").prop("placeholder",b.secondaryPlaceholder)},this.isValid=function(a,b){for(var c=a.data("chips"),d=!1,e=0;e<c.length;e++)if(c[e].tag===b.tag)return void (d=!0);return""!==b.tag&&!d},this.addChip=function(b,c,d){if(e.isValid(d,c)){var f=(d.data("options"),e.renderChip(c));d.data("chips").push(c),a(f).insertBefore(d.find("input")),d.trigger("chip.add",c),e.setPlaceholder(d)}},this.deleteChip=function(a,b,c){var d=c.data("chips")[b];c.find(".chip").eq(b).remove(),c.data("chips").splice(b,1),c.trigger("chip.delete",d),e.setPlaceholder(c)},this.selectChip=function(a,b,c){var d=c.find(".chip").eq(b);d&&!1===d.hasClass("selected")&&(d.addClass("selected"),c.trigger("chip.select",c.data("chips")[b]))},this.getChipsElement=function(a,b){return b.eq(a)},this.init(),void (b||(this.handleEvents(),b=!0)))}}(jQuery),function(a){a.fn.pushpin=function(b){var c={top:0,bottom:1/0,offset:0};return"remove"===b?(this.each(function(){(id=a(this).data("pushpin-id"))&&(a(window).off("scroll."+id),a(this).removeData("pushpin-id").removeClass("pin-top pinned pin-bottom").removeAttr("style"))}),!1):(b=a.extend(c,b),$index=0,this.each(function(){function c(a){a.removeClass("pin-top"),a.removeClass("pinned"),a.removeClass("pin-bottom")}function d(d,e){d.each(function(){b.top<=e&&b.bottom>=e&&!a(this).hasClass("pinned")&&(c(a(this)),a(this).css("top",b.offset),a(this).addClass("pinned")),e<b.top&&!a(this).hasClass("pin-top")&&(c(a(this)),a(this).css("top",0),a(this).addClass("pin-top")),e>b.bottom&&!a(this).hasClass("pin-bottom")&&(c(a(this)),a(this).addClass("pin-bottom"),a(this).css("top",b.bottom-g))})}var e=Materialize.guid(),f=a(this),g=a(this).offset().top;a(this).data("pushpin-id",e),d(f,a(window).scrollTop()),a(window).on("scroll."+e,function(){var c=a(window).scrollTop()+b.offset;d(f,c)})}))}}(jQuery),function(a){a(document).ready(function(){a.fn.reverse=[].reverse,a(document).on("mouseenter.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",function(c){var d=a(this);b(d)}),a(document).on("mouseleave.fixedActionBtn",".fixed-action-btn:not(.click-to-toggle)",function(b){var d=a(this);c(d)}),a(document).on("click.fixedActionBtn",".fixed-action-btn.click-to-toggle > a",function(d){var e=a(this),f=e.parent();f.hasClass("active")?c(f):b(f)})}),a.fn.extend({openFAB:function(){b(a(this))},closeFAB:function(){c(a(this))}});var b=function(b){if($this=b,$this.hasClass("active")===!1){var c,d,e=$this.hasClass("horizontal");e===!0?d=40:c=40,$this.addClass("active"),$this.find("ul .btn-floating").velocity({scaleY:".4",scaleX:".4",translateY:c+"px",translateX:d+"px"},{duration:0});var f=0;$this.find("ul .btn-floating").reverse().each(function(){a(this).velocity({opacity:"1",scaleX:"1",scaleY:"1",translateY:"0",translateX:"0"},{duration:80,delay:f}),f+=40})}},c=function(a){$this=a;var b,c,d=$this.hasClass("horizontal");d===!0?c=40:b=40,$this.removeClass("active"),$this.find("ul .btn-floating").velocity("stop",!0),$this.find("ul .btn-floating").velocity({opacity:"0",scaleX:".4",scaleY:".4",translateY:b+"px",translateX:c+"px"},{duration:80})}}(jQuery),function(a){Materialize.fadeInImage=function(b){var c;if("string"==typeof b)c=a(b);else{if("object"!=typeof b)return;c=b}c.css({opacity:0}),a(c).velocity({opacity:1},{duration:650,queue:!1,easing:"easeOutSine"}),a(c).velocity({opacity:1},{duration:1300,queue:!1,easing:"swing",step:function(b,c){c.start=100;var d=b/100,e=150-(100-b)/1.75;100>e&&(e=100),b>=0&&a(this).css({"-webkit-filter":"grayscale("+d+")brightness("+e+"%)",filter:"grayscale("+d+")brightness("+e+"%)"})}})},Materialize.showStaggeredList=function(b){var c;if("string"==typeof b)c=a(b);else{if("object"!=typeof b)return;c=b}var d=0;c.find("li").velocity({translateX:"-100px"},{duration:0}),c.find("li").each(function(){a(this).velocity({opacity:"1",translateX:"0"},{duration:800,delay:d,easing:[60,10]}),d+=120})},a(document).ready(function(){var b=!1,c=!1;a(".dismissable").each(function(){a(this).hammer({prevent_default:!1}).bind("pan",function(d){if("touch"===d.gesture.pointerType){var e=a(this),f=d.gesture.direction,g=d.gesture.deltaX,h=d.gesture.velocityX;e.velocity({translateX:g},{duration:50,queue:!1,easing:"easeOutQuad"}),4===f&&(g>e.innerWidth()/2||-0.75>h)&&(b=!0),2===f&&(g<-1*e.innerWidth()/2||h>.75)&&(c=!0)}}).bind("panend",function(d){if(Math.abs(d.gesture.deltaX)<a(this).innerWidth()/2&&(c=!1,b=!1),"touch"===d.gesture.pointerType){var e=a(this);if(b||c){var f;f=b?e.innerWidth():-1*e.innerWidth(),e.velocity({translateX:f},{duration:100,queue:!1,easing:"easeOutQuad",complete:function(){e.css("border","none"),e.velocity({height:0,padding:0},{duration:200,queue:!1,easing:"easeOutQuad",complete:function(){e.remove()}})}})}else e.velocity({translateX:0},{duration:100,queue:!1,easing:"easeOutQuad"});b=!1,c=!1}})})})}(jQuery),function(a){Materialize.scrollFire=function(a){var b=!1;window.addEventListener("scroll",function(){b=!0}),setInterval(function(){if(b){b=!1;for(var c=window.pageYOffset+window.innerHeight,d=0;d<a.length;d++){var e=a[d],f=e.selector,g=e.offset,h=e.callback,i=document.querySelector(f);if(null!==i){var j=i.getBoundingClientRect().top+window.pageYOffset;if(c>j+g&&e.done!==!0){if("function"==typeof h)h.call(this,i);else if("string"==typeof h){var k=new Function(h);k(i)}e.done=!0}}}}},100)}}(jQuery),function(a){"function"==typeof define&&define.amd?define("picker",["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):this.Picker=a(jQuery)}(function(a){function b(f,g,i,l){function m(){return b._.node("div",b._.node("div",b._.node("div",b._.node("div",y.component.nodes(t.open),v.box),v.wrap),v.frame),v.holder)}function n(){w.data(g,y).addClass(v.input).attr("tabindex",-1).val(w.data("value")?y.get("select",u.format):f.value),u.editable||w.on("focus."+t.id+" click."+t.id,function(a){a.preventDefault(),y.$root.eq(0).focus()}).on("keydown."+t.id,q),e(f,{haspopup:!0,expanded:!1,readonly:!1,owns:f.id+"_root"})}function o(){y.$root.on({keydown:q,focusin:function(a){y.$root.removeClass(v.focused),a.stopPropagation()},"mousedown click":function(b){var c=b.target;c!=y.$root.children()[0]&&(b.stopPropagation(),"mousedown"!=b.type||a(c).is("input, select, textarea, button, option")||(b.preventDefault(),y.$root.eq(0).focus()))}}).on({focus:function(){w.addClass(v.target)},blur:function(){w.removeClass(v.target)}}).on("focus.toOpen",r).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var b=a(this),c=b.data(),d=b.hasClass(v.navDisabled)||b.hasClass(v.disabled),e=h();e=e&&(e.type||e.href),(d||e&&!a.contains(y.$root[0],e))&&y.$root.eq(0).focus(),!d&&c.nav?y.set("highlight",y.component.item.highlight,{nav:c.nav}):!d&&"pick"in c?y.set("select",c.pick):c.clear?y.clear().close(!0):c.close&&y.close(!0)}),e(y.$root[0],"hidden",!0)}function p(){var b;u.hiddenName===!0?(b=f.name,f.name=""):(b=["string"==typeof u.hiddenPrefix?u.hiddenPrefix:"","string"==typeof u.hiddenSuffix?u.hiddenSuffix:"_submit"],b=b[0]+f.name+b[1]),y._hidden=a('<input type=hidden name="'+b+'"'+(w.data("value")||f.value?' value="'+y.get("select",u.formatSubmit)+'"':"")+">")[0],w.on("change."+t.id,function(){y._hidden.value=f.value?y.get("select",u.formatSubmit):""}),u.container?a(u.container).append(y._hidden):w.after(y._hidden)}function q(a){var b=a.keyCode,c=/^(8|46)$/.test(b);return 27==b?(y.close(),!1):void ((32==b||c||!t.open&&y.component.key[b])&&(a.preventDefault(),a.stopPropagation(),c?y.clear().close():y.open()))}function r(a){a.stopPropagation(),"focus"==a.type&&y.$root.addClass(v.focused),y.open()}if(!f)return b;var s=!1,t={id:f.id||"P"+Math.abs(~~(Math.random()*new Date))},u=i?a.extend(!0,{},i.defaults,l):l||{},v=a.extend({},b.klasses(),u.klass),w=a(f),x=function(){return this.start()},y=x.prototype={constructor:x,$node:w,start:function(){return t&&t.start?y:(t.methods={},t.start=!0,t.open=!1,t.type=f.type,f.autofocus=f==h(),f.readOnly=!u.editable,f.id=f.id||t.id,"text"!=f.type&&(f.type="text"),y.component=new i(y,u),y.$root=a(b._.node("div",m(),v.picker,'id="'+f.id+'_root" tabindex="0"')),o(),u.formatSubmit&&p(),n(),u.container?a(u.container).append(y.$root):w.after(y.$root),y.on({start:y.component.onStart,render:y.component.onRender,stop:y.component.onStop,open:y.component.onOpen,close:y.component.onClose,set:y.component.onSet}).on({start:u.onStart,render:u.onRender,stop:u.onStop,open:u.onOpen,close:u.onClose,set:u.onSet}),s=c(y.$root.children()[0]),f.autofocus&&y.open(),y.trigger("start").trigger("render"))},render:function(a){return a?y.$root.html(m()):y.$root.find("."+v.box).html(y.component.nodes(t.open)),y.trigger("render")},stop:function(){return t.start?(y.close(),y._hidden&&y._hidden.parentNode.removeChild(y._hidden),y.$root.remove(),w.removeClass(v.input).removeData(g),setTimeout(function(){w.off("."+t.id)},0),f.type=t.type,f.readOnly=!1,y.trigger("stop"),t.methods={},t.start=!1,y):y},open:function(c){return t.open?y:(w.addClass(v.active),e(f,"expanded",!0),setTimeout(function(){y.$root.addClass(v.opened),e(y.$root[0],"hidden",!1)},0),c!==!1&&(t.open=!0,s&&k.css("overflow","hidden").css("padding-right","+="+d()),y.$root.eq(0).focus(),j.on("click."+t.id+" focusin."+t.id,function(a){var b=a.target;b!=f&&b!=document&&3!=a.which&&y.close(b===y.$root.children()[0])}).on("keydown."+t.id,function(c){var d=c.keyCode,e=y.component.key[d],f=c.target;27==d?y.close(!0):f!=y.$root[0]||!e&&13!=d?a.contains(y.$root[0],f)&&13==d&&(c.preventDefault(),f.click()):(c.preventDefault(),e?b._.trigger(y.component.key.go,y,[b._.trigger(e)]):y.$root.find("."+v.highlighted).hasClass(v.disabled)||y.set("select",y.component.item.highlight).close())})),y.trigger("open"))},close:function(a){return a&&(y.$root.off("focus.toOpen").eq(0).focus(),setTimeout(function(){y.$root.on("focus.toOpen",r)},0)),w.removeClass(v.active),e(f,"expanded",!1),setTimeout(function(){y.$root.removeClass(v.opened+" "+v.focused),e(y.$root[0],"hidden",!0)},0),t.open?(t.open=!1,s&&k.css("overflow","").css("padding-right","-="+d()),j.off("."+t.id),y.trigger("close")):y},clear:function(a){return y.set("clear",null,a)},set:function(b,c,d){var e,f,g=a.isPlainObject(b),h=g?b:{};if(d=g&&a.isPlainObject(c)?c:d||{},b){g||(h[b]=c);for(e in h)f=h[e],e in y.component.item&&(void 0===f&&(f=null),y.component.set(e,f,d)),("select"==e||"clear"==e)&&w.val("clear"==e?"":y.get(e,u.format)).trigger("change");y.render()}return d.muted?y:y.trigger("set",h)},get:function(a,c){if(a=a||"value",null!=t[a])return t[a];if("valueSubmit"==a){if(y._hidden)return y._hidden.value;a="value"}if("value"==a)return f.value;if(a in y.component.item){if("string"==typeof c){var d=y.component.get(a);return d?b._.trigger(y.component.formats.toString,y.component,[c,d]):""}return y.component.get(a)}},on:function(b,c,d){var e,f,g=a.isPlainObject(b),h=g?b:{};if(b){g||(h[b]=c);for(e in h)f=h[e],d&&(e="_"+e),t.methods[e]=t.methods[e]||[],t.methods[e].push(f)}return y},off:function(){var a,b,c=arguments;for(a=0,namesCount=c.length;a<namesCount;a+=1)b=c[a],b in t.methods&&delete t.methods[b];return y},trigger:function(a,c){var d=function(a){var d=t.methods[a];d&&d.map(function(a){b._.trigger(a,y,[c])})};return d("_"+a),d(a),y}};return new x}function c(a){var b,c="position";return a.currentStyle?b=a.currentStyle[c]:window.getComputedStyle&&(b=getComputedStyle(a)[c]),"fixed"==b}function d(){if(k.height()<=i.height())return 0;var b=a('<div style="visibility:hidden;width:100px" />').appendTo("body"),c=b[0].offsetWidth;b.css("overflow","scroll");var d=a('<div style="width:100%" />').appendTo(b),e=d[0].offsetWidth;return b.remove(),c-e}function e(b,c,d){if(a.isPlainObject(c))for(var e in c)f(b,e,c[e]);else f(b,c,d)}function f(a,b,c){a.setAttribute(("role"==b?"":"aria-")+b,c)}function g(b,c){a.isPlainObject(b)||(b={attribute:c}),c="";for(var d in b){var e=("role"==d?"":"aria-")+d,f=b[d];c+=null==f?"":e+'="'+b[d]+'"'}return c}function h(){try{return document.activeElement}catch(a){}}var i=a(window),j=a(document),k=a(document.documentElement);return b.klasses=function(a){return a=a||"picker",{picker:a,opened:a+"--opened",focused:a+"--focused",input:a+"__input",active:a+"__input--active",target:a+"__input--target",holder:a+"__holder",frame:a+"__frame",wrap:a+"__wrap",box:a+"__box"}},b._={group:function(a){for(var c,d="",e=b._.trigger(a.min,a);e<=b._.trigger(a.max,a,[e]);e+=a.i)c=b._.trigger(a.item,a,[e]),d+=b._.node(a.node,c[0],c[1],c[2]);return d},node:function(b,c,d,e){return c?(c=a.isArray(c)?c.join(""):c,d=d?' class="'+d+'"':"",e=e?" "+e:"","<"+b+d+e+">"+c+"</"+b+">"):""},lead:function(a){return(10>a?"0":"")+a},trigger:function(a,b,c){return"function"==typeof a?a.apply(b,c||[]):a},digits:function(a){return/\d/.test(a[1])?2:1},isDate:function(a){return{}.toString.call(a).indexOf("Date")>-1&&this.isInteger(a.getDate())},isInteger:function(a){return{}.toString.call(a).indexOf("Number")>-1&&a%1===0},ariaAttr:g},b.extend=function(c,d){a.fn[c]=function(e,f){var g=this.data(c);return"picker"==e?g:g&&"string"==typeof e?b._.trigger(g[e],g,[f]):this.each(function(){var f=a(this);f.data(c)||new b(this,c,d,e)})},a.fn[c].defaults=d.defaults},b}),function(a){"function"==typeof define&&define.amd?define(["picker","jquery"],a):"object"==typeof exports?module.exports=a(require("./picker.js"),require("jquery")):a(Picker,jQuery)}(function(a,b){function c(a,b){var c=this,d=a.$node[0],e=d.value,f=a.$node.data("value"),g=f||e,h=f?b.formatSubmit:b.format,i=function(){return d.currentStyle?"rtl"==d.currentStyle.direction:"rtl"==getComputedStyle(a.$root[0]).direction};c.settings=b,c.$node=a.$node,c.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},c.item={},c.item.clear=null,c.item.disable=(b.disable||[]).slice(0),c.item.enable=-function(a){return a[0]===!0?a.shift():-1}(c.item.disable),c.set("min",b.min).set("max",b.max).set("now"),g?c.set("select",g,{format:h}):c.set("select",null).set("highlight",c.item.now),c.key={40:7,38:-7,39:function(){return i()?-1:1},37:function(){return i()?1:-1},go:function(a){var b=c.item.highlight,d=new Date(b.year,b.month,b.date+a);c.set("highlight",d,{interval:a}),this.render()}},a.on("render",function(){a.$root.find("."+b.klass.selectMonth).on("change",function(){var c=this.value;c&&(a.set("highlight",[a.get("view").year,c,a.get("highlight").date]),a.$root.find("."+b.klass.selectMonth).trigger("focus"))}),a.$root.find("."+b.klass.selectYear).on("change",function(){var c=this.value;c&&(a.set("highlight",[c,a.get("view").month,a.get("highlight").date]),a.$root.find("."+b.klass.selectYear).trigger("focus"))})},1).on("open",function(){var d="";c.disabled(c.get("now"))&&(d=":not(."+b.klass.buttonToday+")"),a.$root.find("button"+d+", select").attr("disabled",!1)},1).on("close",function(){a.$root.find("button, select").attr("disabled",!0)},1)}var d=7,e=6,f=a._;c.prototype.set=function(a,b,c){var d=this,e=d.item;return null===b?("clear"==a&&(a="select"),e[a]=b,d):(e["enable"==a?"disable":"flip"==a?"enable":a]=d.queue[a].split(" ").map(function(e){return b=d[e](a,b,c)}).pop(),"select"==a?d.set("highlight",e.select,c):"highlight"==a?d.set("view",e.highlight,c):a.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&d.disabled(e.select)&&d.set("select",e.select,c),e.highlight&&d.disabled(e.highlight)&&d.set("highlight",e.highlight,c)),d)},c.prototype.get=function(a){return this.item[a]},c.prototype.create=function(a,c,d){var e,g=this;return c=void 0===c?a:c,c==-(1/0)||c==1/0?e=c:b.isPlainObject(c)&&f.isInteger(c.pick)?c=c.obj:b.isArray(c)?(c=new Date(c[0],c[1],c[2]),c=f.isDate(c)?c:g.create().obj):c=f.isInteger(c)||f.isDate(c)?g.normalize(new Date(c),d):g.now(a,c,d),{year:e||c.getFullYear(),month:e||c.getMonth(),date:e||c.getDate(),day:e||c.getDay(),obj:e||c,pick:e||c.getTime()}},c.prototype.createRange=function(a,c){var d=this,e=function(a){return a===!0||b.isArray(a)||f.isDate(a)?d.create(a):a};return f.isInteger(a)||(a=e(a)),f.isInteger(c)||(c=e(c)),f.isInteger(a)&&b.isPlainObject(c)?a=[c.year,c.month,c.date+a]:f.isInteger(c)&&b.isPlainObject(a)&&(c=[a.year,a.month,a.date+c]),{from:e(a),to:e(c)}},c.prototype.withinRange=function(a,b){return a=this.createRange(a.from,a.to),b.pick>=a.from.pick&&b.pick<=a.to.pick},c.prototype.overlapRanges=function(a,b){var c=this;return a=c.createRange(a.from,a.to),b=c.createRange(b.from,b.to),c.withinRange(a,b.from)||c.withinRange(a,b.to)||c.withinRange(b,a.from)||c.withinRange(b,a.to)},c.prototype.now=function(a,b,c){return b=new Date,c&&c.rel&&b.setDate(b.getDate()+c.rel),this.normalize(b,c)},c.prototype.navigate=function(a,c,d){var e,f,g,h,i=b.isArray(c),j=b.isPlainObject(c),k=this.item.view;if(i||j){for(j?(f=c.year,g=c.month,h=c.date):(f=+c[0],g=+c[1],h=+c[2]),d&&d.nav&&k&&k.month!==g&&(f=k.year,g=k.month),e=new Date(f,g+(d&&d.nav?d.nav:0),1),f=e.getFullYear(),g=e.getMonth();(new Date(f,g,h)).getMonth()!==g;)h-=1;c=[f,g,h]}return c},c.prototype.normalize=function(a){return a.setHours(0,0,0,0),a},c.prototype.measure=function(a,b){var c=this;return b?"string"==typeof b?b=c.parse(a,b):f.isInteger(b)&&(b=c.now(a,b,{rel:b})):b="min"==a?-Infinity:1/0,b},c.prototype.viewset=function(a,b){return this.create([b.year,b.month,1])},c.prototype.validate=function(a,c,d){var e,g,h,i,j=this,k=c,l=d&&d.interval?d.interval:1,m=-1===j.item.enable,n=j.item.min,o=j.item.max,p=m&&j.item.disable.filter(function(a){if(b.isArray(a)){var d=j.create(a).pick;d<c.pick?e=!0:d>c.pick&&(g=!0)}return f.isInteger(a)}).length;if((!d||!d.nav)&&(!m&&j.disabled(c)||m&&j.disabled(c)&&(p||e||g)||!m&&(c.pick<=n.pick||c.pick>=o.pick)))for(m&&!p&&(!g&&l>0||!e&&0>l)&&(l*=-1);j.disabled(c)&&(Math.abs(l)>1&&(c.month<k.month||c.month>k.month)&&(c=k,l=l>0?1:-1),c.pick<=n.pick?(h=!0,l=1,c=j.create([n.year,n.month,n.date+(c.pick===n.pick?0:-1)])):c.pick>=o.pick&&(i=!0,l=-1,c=j.create([o.year,o.month,o.date+(c.pick===o.pick?0:1)])),!h||!i);)c=j.create([c.year,c.month,c.date+l]);return c},c.prototype.disabled=function(a){var c=this,d=c.item.disable.filter(function(d){return f.isInteger(d)?a.day===(c.settings.firstDay?d:d-1)%7:b.isArray(d)||f.isDate(d)?a.pick===c.create(d).pick:b.isPlainObject(d)?c.withinRange(d,a):void 0});return d=d.length&&!d.filter(function(a){return b.isArray(a)&&"inverted"==a[3]||b.isPlainObject(a)&&a.inverted}).length,-1===c.item.enable?!d:d||a.pick<c.item.min.pick||a.pick>c.item.max.pick},c.prototype.parse=function(a,b,c){var d=this,e={};return b&&"string"==typeof b?(c&&c.format||(c=c||{},c.format=d.settings.format),d.formats.toArray(c.format).map(function(a){var c=d.formats[a],g=c?f.trigger(c,d,[b,e]):a.replace(/^!/,"").length;c&&(e[a]=b.substr(0,g)),b=b.substr(g)}),[e.yyyy||e.yy,+(e.mm||e.m)-1,e.dd||e.d]):b},c.prototype.formats=function(){function a(a,b,c){var d=a.match(/\w+/)[0];return c.mm||c.m||(c.m=b.indexOf(d)+1),d.length}function b(a){return a.match(/\w+/)[0].length}return{d:function(a,b){return a?f.digits(a):b.date},dd:function(a,b){return a?2:f.lead(b.date)},ddd:function(a,c){return a?b(a):this.settings.weekdaysShort[c.day]},dddd:function(a,c){return a?b(a):this.settings.weekdaysFull[c.day]},m:function(a,b){return a?f.digits(a):b.month+1},mm:function(a,b){return a?2:f.lead(b.month+1)},mmm:function(b,c){var d=this.settings.monthsShort;return b?a(b,d,c):d[c.month]},mmmm:function(b,c){var d=this.settings.monthsFull;return b?a(b,d,c):d[c.month]},yy:function(a,b){return a?2:(""+b.year).slice(2)},yyyy:function(a,b){return a?4:b.year},toArray:function(a){return a.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(a,b){var c=this;return c.formats.toArray(a).map(function(a){return f.trigger(c.formats[a],c,[0,b])||a.replace(/^!/,"")}).join("")}}}(),c.prototype.isDateExact=function(a,c){var d=this;return f.isInteger(a)&&f.isInteger(c)||"boolean"==typeof a&&"boolean"==typeof c?a===c:(f.isDate(a)||b.isArray(a))&&(f.isDate(c)||b.isArray(c))?d.create(a).pick===d.create(c).pick:b.isPlainObject(a)&&b.isPlainObject(c)?d.isDateExact(a.from,c.from)&&d.isDateExact(a.to,c.to):!1},c.prototype.isDateOverlap=function(a,c){var d=this,e=d.settings.firstDay?1:0;return f.isInteger(a)&&(f.isDate(c)||b.isArray(c))?(a=a%7+e,a===d.create(c).day+1):f.isInteger(c)&&(f.isDate(a)||b.isArray(a))?(c=c%7+e,c===d.create(a).day+1):b.isPlainObject(a)&&b.isPlainObject(c)?d.overlapRanges(a,c):!1},c.prototype.flipEnable=function(a){var b=this.item;b.enable=a||(-1==b.enable?1:-1)},c.prototype.deactivate=function(a,c){var d=this,e=d.item.disable.slice(0);return"flip"==c?d.flipEnable():c===!1?(d.flipEnable(1),e=[]):c===!0?(d.flipEnable(-1),e=[]):c.map(function(a){for(var c,g=0;g<e.length;g+=1)if(d.isDateExact(a,e[g])){c=!0;break}c||(f.isInteger(a)||f.isDate(a)||b.isArray(a)||b.isPlainObject(a)&&a.from&&a.to)&&e.push(a)}),e},c.prototype.activate=function(a,c){var d=this,e=d.item.disable,g=e.length;return"flip"==c?d.flipEnable():c===!0?(d.flipEnable(1),e=[]):c===!1?(d.flipEnable(-1),e=[]):c.map(function(a){var c,h,i,j;for(i=0;g>i;i+=1){if(h=e[i],d.isDateExact(h,a)){c=e[i]=null,j=!0;break}if(d.isDateOverlap(h,a)){b.isPlainObject(a)?(a.inverted=!0,c=a):b.isArray(a)?(c=a,c[3]||c.push("inverted")):f.isDate(a)&&(c=[a.getFullYear(),a.getMonth(),a.getDate(),"inverted"]);break}}if(c)for(i=0;g>i;i+=1)if(d.isDateExact(e[i],a)){e[i]=null;break}if(j)for(i=0;g>i;i+=1)if(d.isDateOverlap(e[i],a)){e[i]=null;break}c&&e.push(c)}),e.filter(function(a){return null!=a})},c.prototype.nodes=function(a){var b=this,c=b.settings,g=b.item,h=g.now,i=g.select,j=g.highlight,k=g.view,l=g.disable,m=g.min,n=g.max,o=function(a,b){return c.firstDay&&(a.push(a.shift()),b.push(b.shift())),f.node("thead",f.node("tr",f.group({min:0,max:d-1,i:1,node:"th",item:function(d){return[a[d],c.klass.weekdays,'scope=col title="'+b[d]+'"']}})))}((c.showWeekdaysFull?c.weekdaysFull:c.weekdaysLetter).slice(0),c.weekdaysFull.slice(0)),p=function(a){return f.node("div"," ",c.klass["nav"+(a?"Next":"Prev")]+(a&&k.year>=n.year&&k.month>=n.month||!a&&k.year<=m.year&&k.month<=m.month?" "+c.klass.navDisabled:""),"data-nav="+(a||-1)+" "+f.ariaAttr({role:"button",controls:b.$node[0].id+"_table"})+' title="'+(a?c.labelMonthNext:c.labelMonthPrev)+'"')},q=function(d){var e=c.showMonthsShort?c.monthsShort:c.monthsFull;return"short_months"==d&&(e=c.monthsShort),c.selectMonths&&void 0==d?f.node("select",f.group({min:0,max:11,i:1,node:"option",item:function(a){return[e[a],0,"value="+a+(k.month==a?" selected":"")+(k.year==m.year&&a<m.month||k.year==n.year&&a>n.month?" disabled":"")]}}),c.klass.selectMonth+" browser-default",(a?"":"disabled")+" "+f.ariaAttr({controls:b.$node[0].id+"_table"})+' title="'+c.labelMonthSelect+'"'):"short_months"==d?null!=i?f.node("div",e[i.month]):f.node("div",e[k.month]):f.node("div",e[k.month],c.klass.month)},r=function(d){var e=k.year,g=c.selectYears===!0?5:~~(c.selectYears/2);if(g){var h=m.year,i=n.year,j=e-g,l=e+g;if(h>j&&(l+=h-j,j=h),l>i){var o=j-h,p=l-i;j-=o>p?p:o,l=i}if(c.selectYears&&void 0==d)return f.node("select",f.group({min:j,max:l,i:1,node:"option",item:function(a){return[a,0,"value="+a+(e==a?" selected":"")]}}),c.klass.selectYear+" browser-default",(a?"":"disabled")+" "+f.ariaAttr({controls:b.$node[0].id+"_table"})+' title="'+c.labelYearSelect+'"')}return"raw"==d?f.node("div",e):f.node("div",e,c.klass.year)};return createDayLabel=function(){return null!=i?f.node("div",i.date):f.node("div",h.date)},createWeekdayLabel=function(){var a;a=null!=i?i.day:h.day;var b=c.weekdaysFull[a];return b},f.node("div",f.node("div",createWeekdayLabel(),"picker__weekday-display")+f.node("div",q("short_months"),c.klass.month_display)+f.node("div",createDayLabel(),c.klass.day_display)+f.node("div",r("raw"),c.klass.year_display),c.klass.date_display)+f.node("div",f.node("div",(c.selectYears?q()+r():q()+r())+p()+p(1),c.klass.header)+f.node("table",o+f.node("tbody",f.group({min:0,max:e-1,i:1,node:"tr",item:function(a){var e=c.firstDay&&0===b.create([k.year,k.month,1]).day?-7:0;return[f.group({min:d*a-k.day+e+1,max:function(){return this.min+d-1},i:1,node:"td",item:function(a){a=b.create([k.year,k.month,a+(c.firstDay?1:0)]);var d=i&&i.pick==a.pick,e=j&&j.pick==a.pick,g=l&&b.disabled(a)||a.pick<m.pick||a.pick>n.pick,o=f.trigger(b.formats.toString,b,[c.format,a]);return[f.node("div",a.date,function(b){return b.push(k.month==a.month?c.klass.infocus:c.klass.outfocus),h.pick==a.pick&&b.push(c.klass.now),d&&b.push(c.klass.selected),e&&b.push(c.klass.highlighted),g&&b.push(c.klass.disabled),b.join(" ")}([c.klass.day]),"data-pick="+a.pick+" "+f.ariaAttr({role:"gridcell",label:o,selected:d&&b.$node.val()===o?!0:null,activedescendant:e?!0:null,disabled:g?!0:null})),"",f.ariaAttr({role:"presentation"})]}})]}})),c.klass.table,'id="'+b.$node[0].id+'_table" '+f.ariaAttr({role:"grid",controls:b.$node[0].id,readonly:!0})),c.klass.calendar_container)+f.node("div",f.node("button",c.today,"btn-flat picker__today","type=button data-pick="+h.pick+(a&&!b.disabled(h)?"":" disabled")+" "+f.ariaAttr({controls:b.$node[0].id}))+f.node("button",c.clear,"btn-flat picker__clear","type=button data-clear=1"+(a?"":" disabled")+" "+f.ariaAttr({controls:b.$node[0].id}))+f.node("button",c.close,"btn-flat picker__close","type=button data-close=true "+(a?"":" disabled")+" "+f.ariaAttr({controls:b.$node[0].id})),c.klass.footer)},c.defaults=function(a){return{labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysLetter:["S","M","T","W","T","F","S"],today:"Today",clear:"Clear",close:"Close",format:"d mmmm, yyyy",klass:{table:a+"table",header:a+"header",date_display:a+"date-display",day_display:a+"day-display",month_display:a+"month-display",year_display:a+"year-display",calendar_container:a+"calendar-container",navPrev:a+"nav--prev",navNext:a+"nav--next",navDisabled:a+"nav--disabled",month:a+"month",year:a+"year",selectMonth:a+"select--month",selectYear:a+"select--year",weekdays:a+"weekday",day:a+"day",disabled:a+"day--disabled",selected:a+"day--selected",highlighted:a+"day--highlighted",now:a+"day--today",infocus:a+"day--infocus",outfocus:a+"day--outfocus",footer:a+"footer",buttonClear:a+"button--clear",buttonToday:a+"button--today",buttonClose:a+"button--close"}}}(a.klasses().picker+"__"),a.extend("pickadate",c)}),function(a){function b(){var b=+a(this).attr("length"),c=+a(this).val().length,d=b>=c;a(this).parent().find('span[class="character-counter"]').html(c+"/"+b),e(d,a(this))}function c(b){var c=b.parent().find('span[class="character-counter"]');c.length||(c=a("<span/>").addClass("character-counter").css("float","right").css("font-size","12px").css("height",1),b.parent().append(c))}function d(){a(this).parent().find('span[class="character-counter"]').html("")}function e(a,b){var c=b.hasClass("invalid");a&&c?b.removeClass("invalid"):a||c||(b.removeClass("valid"),b.addClass("invalid"))}a.fn.characterCounter=function(){return this.each(function(){var e=a(this),f=e.parent().find('span[class="character-counter"]');if(!f.length){var g=void 0!==e.attr("length");g&&(e.on("input",b),e.on("focus",b),e.on("blur",d),c(e))}})},a(document).ready(function(){a("input, textarea").characterCounter()})}(jQuery),function(a){var b={init:function(b){var c={time_constant:200,dist:-100,shift:0,padding:0,full_width:!1,indicators:!1,no_wrap:!1};return b=a.extend(c,b),this.each(function(){function c(){"undefined"!=typeof window.ontouchstart&&(H[0].addEventListener("touchstart",l),H[0].addEventListener("touchmove",m),H[0].addEventListener("touchend",n)),H[0].addEventListener("mousedown",l),H[0].addEventListener("mousemove",m),H[0].addEventListener("mouseup",n),H[0].addEventListener("mouseleave",n),H[0].addEventListener("click",j)}function d(a){return a.targetTouches&&a.targetTouches.length>=1?a.targetTouches[0].clientX:a.clientX}function e(a){return a.targetTouches&&a.targetTouches.length>=1?a.targetTouches[0].clientY:a.clientY}function f(a){return a>=t?a%t:0>a?f(t+a%t):a}function g(a){var c,d,e,g,h,i,j;if(p="number"==typeof a?a:p,q=Math.floor((p+s/2)/s),e=p-q*s,g=0>e?1:-1,h=-g*e*2/s,d=t>>1,b.full_width?j="translateX(0)":(j="translateX("+(H[0].clientWidth-item_width)/2+"px) ",j+="translateY("+(H[0].clientHeight-item_width)/2+"px)"),I){var k=q%t,l=G.find(".indicator-item.active");l.index()!==k&&(l.removeClass("active"),G.find(".indicator-item").eq(k).addClass("active"))}for((!b.no_wrap||q>=0&&t>q)&&(i=o[f(q)],i.style[A]=j+" translateX("+ -e/2+"px) translateX("+g*b.shift*h*c+"px) translateZ("+b.dist*h+"px)",i.style.zIndex=0,b.full_width?tweenedOpacity=1:tweenedOpacity=1-.2*h,i.style.opacity=tweenedOpacity,i.style.display="block"),c=1;d>=c;++c)b.full_width?(zTranslation=b.dist,tweenedOpacity=c===d&&0>e?1-h:1):(zTranslation=b.dist*(2*c+h*g),tweenedOpacity=1-.2*(2*c+h*g)),(!b.no_wrap||t>q+c)&&(i=o[f(q+c)],i.style[A]=j+" translateX("+(b.shift+(s*c-e)/2)+"px) translateZ("+zTranslation+"px)",i.style.zIndex=-c,i.style.opacity=tweenedOpacity,i.style.display="block"),b.full_width?(zTranslation=b.dist,tweenedOpacity=c===d&&e>0?1-h:1):(zTranslation=b.dist*(2*c-h*g),tweenedOpacity=1-.2*(2*c-h*g)),(!b.no_wrap||q-c>=0)&&(i=o[f(q-c)],i.style[A]=j+" translateX("+(-b.shift+(-s*c-e)/2)+"px) translateZ("+zTranslation+"px)",i.style.zIndex=-c,i.style.opacity=tweenedOpacity,i.style.display="block");(!b.no_wrap||q>=0&&t>q)&&(i=o[f(q)],i.style[A]=j+" translateX("+ -e/2+"px) translateX("+g*b.shift*h+"px) translateZ("+b.dist*h+"px)",i.style.zIndex=0,b.full_width?tweenedOpacity=1:tweenedOpacity=1-.2*h,i.style.opacity=tweenedOpacity,i.style.display="block")}function h(){var a,b,c,d;a=Date.now(),b=a-C,C=a,c=p-B,B=p,d=1e3*c/(1+b),z=.8*d+.2*z}function i(){var a,c;w&&(a=Date.now()-C,c=w*Math.exp(-a/b.time_constant),c>2||-2>c?(g(x-c),requestAnimationFrame(i)):g(x))}function j(c){if(E)return c.preventDefault(),c.stopPropagation(),!1;if(!b.full_width){var d=a(c.target).closest(".carousel-item").index(),e=q%t-d;0!==e&&(c.preventDefault(),c.stopPropagation()),k(d)}}function k(a){var c=q%t-a;b.no_wrap||(0>c?Math.abs(c+t)<Math.abs(c)&&(c+=t):c>0&&Math.abs(c-t)<c&&(c-=t)),0>c?H.trigger("carouselNext",[Math.abs(c)]):c>0&&H.trigger("carouselPrev",[c])}function l(a){r=!0,E=!1,F=!1,u=d(a),v=e(a),z=w=0,B=p,C=Date.now(),clearInterval(D),D=setInterval(h,100)}function m(a){var b,c,f;if(r)if(b=d(a),y=e(a),c=u-b,f=Math.abs(v-y),30>f&&!F)(c>2||-2>c)&&(E=!0,u=b,g(p+c));else{if(E)return a.preventDefault(),a.stopPropagation(),!1;F=!0}return E?(a.preventDefault(),a.stopPropagation(),!1):void 0}function n(a){return r?(r=!1,clearInterval(D),x=p,(z>10||-10>z)&&(w=.9*z,x=p+w),x=Math.round(x/s)*s,b.no_wrap&&(x>=s*(t-1)?x=s*(t-1):0>x&&(x=0)),w=x-p,C=Date.now(),requestAnimationFrame(i),E&&(a.preventDefault(),a.stopPropagation()),!1):void 0}var o,p,q,r,s,t,u,v,w,x,z,A,B,C,D,E,F,G=a('<ul class="indicators"></ul>'),H=a(this),I=H.attr("data-indicators")||b.indicators;if(H.hasClass("initialized"))return a(this).trigger("carouselNext",[1e-6]),!0;if(b.full_width){b.dist=0;var J=H.find(".carousel-item img").first();J.length?imageHeight=J.load(function(){H.css("height",a(this).height())}):(imageHeight=H.find(".carousel-item").first().height(),H.css("height",imageHeight)),I&&H.find(".carousel-fixed-item").addClass("with-indicators")}H.addClass("initialized"),r=!1,p=x=0,o=[],item_width=H.find(".carousel-item").first().innerWidth(),s=2*item_width+b.padding,H.find(".carousel-item").each(function(b){if(o.push(a(this)[0]),I){var c=a('<li class="indicator-item"></li>');0===b&&c.addClass("active"),c.click(function(){var b=a(this).index();k(b)}),G.append(c)}}),I&&H.append(G),t=o.length,A="transform",["webkit","Moz","O","ms"].every(function(a){var b=a+"Transform";return"undefined"!=typeof document.body.style[b]?(A=b,!1):!0}),window.onresize=g,c(),g(p),a(this).on("carouselNext",function(a,b){void 0===b&&(b=1),x=p+s*b,p!==x&&(w=x-p,C=Date.now(),requestAnimationFrame(i))}),a(this).on("carouselPrev",function(a,b){void 0===b&&(b=1),x=p-s*b,p!==x&&(w=x-p,C=Date.now(),requestAnimationFrame(i))}),a(this).on("carouselSet",function(a,b){void 0===b&&(b=0),k(b)})})},next:function(b){a(this).trigger("carouselNext",[b])},prev:function(b){a(this).trigger("carouselPrev",[b])},set:function(b){a(this).trigger("carouselSet",[b])}};a.fn.carousel=function(c){return b[c]?b[c].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.carousel"):b.init.apply(this,arguments)}}(jQuery)
  ;(function(a){function b(a,b){return b=b||Error,function(){var c=2,d=arguments,e=d[0],f="["+(a?a+":":"")+e+"] ",g=d[1],h,i;f+=g.replace(/\{\d+\}/g,function(a){var b=+a.slice(1,-1),e=b+c;return e<d.length?bt(d[e]):a}),f+="\nhttp://errors.angularjs.org/1.5.7/"+(a?a+"/":"")+e;for(i=c,h="?";i<d.length;i++,h="&")f+=h+"p"+(i-c)+"="+encodeURIComponent(bt(d[i]));return new b(f)}}function c(a){if(a==null||A(a))return!1;if(e$(a)||v(a)||eP&&a instanceof eP)return!0;var b="length"in Object(a)&&a.length;return w(b)&&(b>=0&&(b-1 in a||a instanceof Array)||typeof a.item=="function")}function d(a,b,e){var f,g;if(a)if(y(a))for(f in a)f!="prototype"&&f!="length"&&f!="name"&&(!a.hasOwnProperty||a.hasOwnProperty(f))&&b.call(e,a[f],f,a);else if(e$(a)||c(a)){var h=typeof a!="object";for(f=0,g=a.length;f<g;f++)(h||f in a)&&b.call(e,a[f],f,a)}else if(a.forEach&&a.forEach!==d)a.forEach(b,e,a);else if(u(a))for(f in a)b.call(e,a[f],f,a);else if(typeof a.hasOwnProperty=="function")for(f in a)a.hasOwnProperty(f)&&b.call(e,a[f],f,a);else for(f in a)eJ.call(a,f)&&b.call(e,a[f],f,a);return a}function e(a,b,c){var d=Object.keys(a).sort();for(var e=0;e<d.length;e++)b.call(c,a[d[e]],d[e]);return d}function f(a){return function(b,c){a(c,b)}}function g(){return++eZ}function h(a,b){b?a.$$hashKey=b:delete a.$$hashKey}function i(a,b,c){var d=a.$$hashKey;for(var e=0,f=b.length;e<f;++e){var g=b[e];if(!t(g)&&!y(g))continue;var j=Object.keys(g);for(var k=0,l=j.length;k<l;k++){var m=j[k],n=g[m];c&&t(n)?x(n)?a[m]=new Date(n.valueOf()):z(n)?a[m]=new RegExp(n):n.nodeName?a[m]=n.cloneNode(!0):J(n)?a[m]=n.clone():(t(a[m])||(a[m]=e$(n)?[]:{}),i(a[m],[n],!0)):a[m]=n}}return h(a,d),a}function j(a){return i(a,eR.call(arguments,1),!1)}function k(a){return i(a,eR.call(arguments,1),!0)}function l(a){return parseInt(a,10)}function m(a,b){return j(Object.create(a),b)}function n(){}function o(a){return a}function p(a){return function(){return a}}function q(a){return y(a.toString)&&a.toString!==eU}function r(a){return typeof a=="undefined"}function s(a){return typeof a!="undefined"}function t(a){return a!==null&&typeof a=="object"}function u(a){return a!==null&&typeof a=="object"&&!eV(a)}function v(a){return typeof a=="string"}function w(a){return typeof a=="number"}function x(a){return eU.call(a)==="[object Date]"}function y(a){return typeof a=="function"}function z(a){return eU.call(a)==="[object RegExp]"}function A(a){return a&&a.window===a}function B(a){return a&&a.$evalAsync&&a.$watch}function C(a){return eU.call(a)==="[object File]"}function D(a){return eU.call(a)==="[object FormData]"}function E(a){return eU.call(a)==="[object Blob]"}function F(a){return typeof a=="boolean"}function G(a){return a&&y(a.then)}function H(a){return a&&w(a.length)&&e_.test(eU.call(a))}function I(a){return eU.call(a)==="[object ArrayBuffer]"}function J(a){return!!a&&!!(a.nodeName||a.prop&&a.attr&&a.find)}function K(a){var b={},c=a.split(","),d;for(d=0;d<c.length;d++)b[c[d]]=!0;return b}function L(a){return eK(a.nodeName||a[0]&&a[0].nodeName)}function M(a,b){return Array.prototype.indexOf.call(a,b)!=-1}function N(a,b){var c=a.indexOf(b);return c>=0&&a.splice(c,1),c}function O(a,b){function c(a,b){var c=b.$$hashKey,d;if(e$(a))for(var f=0,g=a.length;f<g;f++)b.push(e(a[f]));else if(u(a))for(d in a)b[d]=e(a[d]);else if(a&&typeof a.hasOwnProperty=="function")for(d in a)a.hasOwnProperty(d)&&(b[d]=e(a[d]));else for(d in a)eJ.call(a,d)&&(b[d]=e(a[d]));return h(b,c),b}function e(a){if(!t(a))return a;var b=g.indexOf(a);if(b!==-1)return i[b];if(A(a)||B(a))throw eW("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var d=!1,e=f(a);return e===undefined&&(e=e$(a)?[]:Object.create(eV(a)),d=!0),g.push(a),i.push(e),d?c(a,e):e}function f(a){switch(eU.call(a)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new a.constructor(e(a.buffer));case"[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);return(new Uint8Array(b)).set(new Uint8Array(a)),b}return a.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new a.constructor(a.valueOf());case"[object RegExp]":var c=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]);return c.lastIndex=a.lastIndex,c;case"[object Blob]":return new a.constructor([a],{type:a.type})}if(y(a.cloneNode))return a.cloneNode(!0)}var g=[],i=[];if(b){if(H(b)||I(b))throw eW("cpta","Can't copy! TypedArray destination cannot be mutated.");if(a===b)throw eW("cpi","Can't copy! Source and destination are identical.");return e$(b)?b.length=0:d(b,function(a,c){c!=="$$hashKey"&&delete b[c]}),g.push(a),i.push(b),c(a,b)}return e(a)}function P(a,b){if(a===b)return!0;if(a===null||b===null)return!1;if(a!==a&&b!==b)return!0;var c=typeof a,d=typeof b,e,f,g;if(c==d&&c=="object"){if(!e$(a)){if(x(a))return x(b)?P(a.getTime(),b.getTime()):!1;if(z(a))return z(b)?a.toString()==b.toString():!1;if(B(a)||B(b)||A(a)||A(b)||e$(b)||x(b)||z(b))return!1;g=bp();for(f in a){if(f.charAt(0)==="$"||y(a[f]))continue;if(!P(a[f],b[f]))return!1;g[f]=!0}for(f in b)if(!(f in g)&&f.charAt(0)!=="$"&&s(b[f])&&!y(b[f]))return!1;return!0}if(!e$(b))return!1;if((e=a.length)==b.length){for(f=0;f<e;f++)if(!P(a[f],b[f]))return!1;return!0}}return!1}function Q(a,b,c){return a.concat(eR.call(b,c))}function R(a,b){return eR.call(a,b||0)}function S(a,b){var c=arguments.length>2?R(arguments,2):[];return!y(b)||b instanceof RegExp?b:c.length?function(){return arguments.length?b.apply(a,Q(c,arguments,0)):b.apply(a,c)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function T(b,c){var d=c;return typeof b=="string"&&b.charAt(0)==="$"&&b.charAt(1)==="$"?d=undefined:A(c)?d="$WINDOW":c&&a.document===c?d="$DOCUMENT":B(c)&&(d="$SCOPE"),d}function U(a,b){return r(a)?undefined:(w(b)||(b=b?2:null),JSON.stringify(a,T,b))}function V(a){return v(a)?JSON.parse(a):a}function W(a,b){a=a.replace(fe,"");var c=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return isNaN(c)?b:c}function X(a,b){return a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+b),a}function Y(a,b,c){c=c?-1:1;var d=a.getTimezoneOffset(),e=W(b,d);return X(a,c*(e-d))}function Z(a){a=eP(a).clone();try{a.empty()}catch(b){}var c=eP("<div>").append(a).html();try{return a[0].nodeType===fk?eK(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+eK(b)})}catch(b){return eK(c)}}function $(a){try{return decodeURIComponent(a)}catch(b){}}function _(a){var b={};return d((a||"").split("&"),function(a){var c,d,e;a&&(d=a=a.replace(/\+/g,"%20"),c=a.indexOf("="),c!==-1&&(d=a.substring(0,c),e=a.substring(c+1)),d=$(d),s(d)&&(e=s(e)?$(e):!0,eJ.call(b,d)?e$(b[d])?b[d].push(e):b[d]=[b[d],e]:b[d]=e))}),b}function ba(a){var b=[];return d(a,function(a,c){e$(a)?d(a,function(a){b.push(bc(c,!0)+(a===!0?"":"="+bc(a,!0)))}):b.push(bc(c,!0)+(a===!0?"":"="+bc(a,!0)))}),b.length?b.join("&"):""}function bb(a){return bc(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function bc(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function bd(a,b){var c,d,e=ff.length;for(d=0;d<e;++d){c=ff[d]+b;if(v(c=a.getAttribute(c)))return c}return null}function be(a,b){var c,e,f={};d(ff,function(b){var d=b+"app";!c&&a.hasAttribute&&a.hasAttribute(d)&&(c=a,e=a.getAttribute(d))}),d(ff,function(b){var d=b+"app",f;!c&&(f=a.querySelector("["+d.replace(":","\\:")+"]"))&&(c=f,e=f.getAttribute(d))}),c&&(f.strictDi=bd(c,"strict-di")!==null,b(c,e?[e]:[],f))}function bf(b,c,e){t(e)||(e={});var f={strictDi:!1};e=j(f,e);var g=function(){b=eP(b);if(b.injector()){var d=b[0]===a.document?"document":Z(b);throw eW("btstrpd","App already bootstrapped with this element '{0}'",d.replace(/</,"&lt;").replace(/>/,"&gt;"))}c=c||[],c.unshift(["$provide",function(a){a.value("$rootElement",b)}]),e.debugInfoEnabled&&c.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]),c.unshift("ng");var f=ce(c,e.strictDi);return f.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d),c(b)(a)})}]),f},h=/^NG_ENABLE_DEBUG_INFO!/,i=/^NG_DEFER_BOOTSTRAP!/;a&&h.test(a.name)&&(e.debugInfoEnabled=!0,a.name=a.name.replace(h,""));if(a&&!i.test(a.name))return g();a.name=a.name.replace(i,""),eX.resumeBootstrap=function(a){return d(a,function(a){c.push(a)}),g()},y(eX.resumeDeferredBootstrap)&&eX.resumeDeferredBootstrap()}function bg(){a.name="NG_ENABLE_DEBUG_INFO!"+a.name,a.location.reload()}function bh(a){var b=eX.element(a).injector();if(!b)throw eW("test","no injector found for element argument to getTestability");return b.get("$$testability")}function bi(a,b){return b=b||"_",a.replace(fg,function(a,c){return(c?b:"")+a.toLowerCase()})}function bj(){var b;if(fh)return;var c=fd();eQ=r(c)?a.jQuery:c?a[c]:undefined,eQ&&eQ.fn.on?(eP=eQ,j(eQ.fn,{scope:fD.scope,isolateScope:fD.isolateScope,controller:fD.controller,injector:fD.injector,inheritedData:fD.inheritedData}),b=eQ.cleanData,eQ.cleanData=function(a){var c;for(var d=0,e;(e=a[d])!=null;d++)c=eQ._data(e,"events"),c&&c.$destroy&&eQ(e).triggerHandler("$destroy");b(a)}):eP=bE,eX.element=eP,fh=!0}function bk(a,b,c){if(!a)throw eW("areq","Argument '{0}' is {1}",b||"?",c||"required");return a}function bl(a,b,c){return c&&e$(a)&&(a=a[a.length-1]),bk(y(a),b,"not a function, got "+(a&&typeof a=="object"?a.constructor.name||"Object":typeof a)),a}function bm(a,b){if(a==="hasOwnProperty")throw eW("badname","hasOwnProperty is not a valid {0} name",b)}function bn(a,b,c){if(!b)return a;var d=b.split("."),e,f=a,g=d.length;for(var h=0;h<g;h++)e=d[h],a&&(a=(f=a)[e]);return!c&&y(a)?S(f,a):a}function bo(a){var b=a[0],c=a[a.length-1],d;for(var e=1;b!==c&&(b=b.nextSibling);e++)if(d||a[e]!==b)d||(d=eP(eR.call(a,0,e))),d.push(b);return d||a}function bp(){return Object.create(null)}function bq(a){function c(a,b,c){return a[b]||(a[b]=c())}var d=b("$injector"),e=b("ng"),f=c(a,"angular",Object);return f.$$minErr=f.$$minErr||b,c(f,"module",function(){var a={};return function b(b,f,g){var h=function(a,b){if(a==="hasOwnProperty")throw e("badname","hasOwnProperty is not a valid {0} name",b)};return h(b,"module"),f&&a.hasOwnProperty(b)&&(a[b]=null),c(a,b,function(){function a(a,b,c,d){return d||(d=e),function(){return d[c||"push"]([a,b,arguments]),k}}function c(a,c){return function(d,f){return f&&y(f)&&(f.$$moduleName=b),e.push([a,c,arguments]),k}}if(!f)throw d("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",b);var e=[],h=[],i=[],j=a("$injector","invoke","push",h),k={_invokeQueue:e,_configBlocks:h,_runBlocks:i,requires:f,name:b,provider:c("$provide","provider"),factory:c("$provide","factory"),service:c("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:c("$provide","decorator"),animation:c("$animateProvider","register"),filter:c("$filterProvider","register"),controller:c("$controllerProvider","register"),directive:c("$compileProvider","directive"),component:c("$compileProvider","component"),config:j,run:function(a){return i.push(a),this}};return g&&j(g),k})}})}function br(a,b){if(e$(a)){b=b||[];for(var c=0,d=a.length;c<d;c++)b[c]=a[c]}else if(t(a)){b=b||{};for(var e in a)if(e.charAt(0)!=="$"||e.charAt(1)!=="$")b[e]=a[e]}return b||a}function bs(a){var b=[];return JSON.stringify(a,function(a,c){c=T(a,c);if(t(c)){if(b.indexOf(c)>=0)return"...";b.push(c)}return c})}function bt(a){return typeof a=="function"?a.toString().replace(/ \{[\s\S]*$/,""):r(a)?"undefined":typeof a!="string"?bs(a):a}function bu(c){j(c,{bootstrap:bf,copy:O,extend:j,merge:k,equals:P,element:eP,forEach:d,injector:ce,noop:n,bind:S,toJson:U,fromJson:V,identity:o,isUndefined:r,isDefined:s,isString:v,isFunction:y,isObject:t,isNumber:w,isElement:J,isArray:e$,version:fo,isDate:x,lowercase:eK,uppercase:eL,callbacks:{counter:0},getTestability:bh,$$minErr:b,$$csp:fc,reloadWithDebugInfo:bg}),eY=bq(a),eY("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:dC}),a.provider("$compile",cp).directive({a:gK,input:hb,textarea:hb,form:gP,script:hY,select:h_,style:ib,option:ia,ngBind:he,ngBindHtml:hg,ngBindTemplate:hf,ngClass:hi,ngClassEven:hk,ngClassOdd:hj,ngCloak:hl,ngController:hm,ngForm:gQ,ngHide:hR,ngIf:hp,ngInclude:hq,ngInit:hs,ngNonBindable:hI,ngPluralize:hM,ngRepeat:hN,ngShow:hQ,ngStyle:hS,ngSwitch:hT,ngSwitchWhen:hU,ngSwitchDefault:hV,ngOptions:hL,ngTransclude:hX,ngModel:hF,ngList:ht,ngChange:hh,pattern:id,ngPattern:id,required:ic,ngRequired:ic,minlength:ig,ngMinlength:ig,maxlength:ie,ngMaxlength:ie,ngValue:hd,ngModelOptions:hH}).directive({ngInclude:hr}).directive(gL).directive(hn),a.provider({$anchorScroll:cf,$animate:fT,$animateCss:fW,$$animateJs:fR,$$animateQueue:fS,$$AnimateRunner:fV,$$animateAsyncRun:fU,$browser:cl,$cacheFactory:cm,$controller:cx,$document:cy,$exceptionHandler:cz,$filter:dQ,$$forceReflow:ga,$interpolate:cN,$interval:cO,$http:cJ,$httpParamSerializer:cB,$httpParamSerializerJQLike:cC,$httpBackend:cL,$xhrFactory:cK,$location:db,$log:dc,$parse:dw,$rootScope:dB,$q:dx,$$q:dy,$sce:dG,$sceDelegate:dF,$sniffer:dH,$templateCache:cn,$templateRequest:dI,$$testability:dJ,$timeout:dK,$window:dN,$$rAF:dA,$$jqLite:bZ,$$HashMap:fH,$$cookieReader:dP})}])}function bv(){return++fq}function bw(a){return a.replace(ft,function(a,b,c,d){return d?c.toUpperCase():c}).replace(fu,"Moz$1")}function bx(a){return!fy.test(a)}function by(a){var b=a.nodeType;return b===fi||!b||b===fm}function bz(a){for(var b in fp[a.ng339])return!0;return!1}function bA(a){for(var b=0,c=a.length;b<c;b++)bI(a[b])}function bB(a,b){var c,e,f,g=b.createDocumentFragment(),h=[],i;if(bx(a))h.push(b.createTextNode(a));else{c=c||g.appendChild(b.createElement("div")),e=(fz.exec(a)||["",""])[1].toLowerCase(),f=fB[e]||fB._default,c.innerHTML=f[1]+a.replace(fA,"<$1></$2>")+f[2],i=f[0];while(i--)c=c.lastChild;h=Q(h,c.childNodes),c=g.firstChild,c.textContent=""}return g.textContent="",g.innerHTML="",d(h,function(a){g.appendChild(a)}),g}function bC(b,c){c=c||a.document;var d;return(d=fx.exec(b))?[c.createElement(d[1])]:(d=bB(b,c))?d.childNodes:[]}function bD(a,b){var c=a.parentNode;c&&c.replaceChild(b,a),b.appendChild(a)}function bE(a){if(a instanceof bE)return a;var b;v(a)&&(a=fa(a),b=!0);if(!(this instanceof bE)){if(b&&a.charAt(0)!="<")throw fw("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new bE(a)}b?bO(this,bC(a)):bO(this,a)}function bF(a){return a.cloneNode(!0)}function bG(a,b){b||bI(a);if(a.querySelectorAll){var c=a.querySelectorAll("*");for(var d=0,e=c.length;d<e;d++)bI(c[d])}}function bH(a,b,c,e){if(s(e))throw fw("offargs","jqLite#off() does not support the `selector` argument");var f=bJ(a),g=f&&f.events,h=f&&f.handle;if(!h)return;if(!b)for(b in g)b!=="$destroy"&&fs(a,b,h),delete g[b];else{var i=function(b){var d=g[b];s(c)&&N(d||[],c),s(c)&&d&&d.length>0||(fs(a,b,h),delete g[b])};d(b.split(" "),function(a){i(a),fv[a]&&i(fv[a])})}}function bI(a,b){var c=a.ng339,d=c&&fp[c];if(d){if(b){delete d.data[b];return}d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),bH(a)),delete fp[c],a.ng339=undefined}}function bJ(a,b){var c=a.ng339,d=c&&fp[c];return b&&!d&&(a.ng339=c=bv(),d=fp[c]={events:{},data:{},handle:undefined}),d}function bK(a,b,c){if(by(a)){var d=s(c),e=!d&&b&&!t(b),f=!b,g=bJ(a,!e),h=g&&g.data;if(d)h[b]=c;else{if(f)return h;if(e)return h&&h[b];j(h,b)}}}function bL(a,b){return a.getAttribute?(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" ")>-1:!1}function bM(a,b){b&&a.setAttribute&&d(b.split(" "),function(b){a.setAttribute("class",fa((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+fa(b)+" "," ")))})}function bN(a,b){if(b&&a.setAttribute){var c=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");d(b.split(" "),function(a){a=fa(a),c.indexOf(" "+a+" ")===-1&&(c+=a+" ")}),a.setAttribute("class",fa(c))}}function bO(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var c=b.length;if(typeof c=="number"&&b.window!==b){if(c)for(var d=0;d<c;d++)a[a.length++]=b[d]}else a[a.length++]=b}}function bP(a,b){return bQ(a,"$"+(b||"ngController")+"Controller")}function bQ(a,b,c){a.nodeType==fm&&(a=a.documentElement);var d=e$(b)?b:[b];while(a){for(var e=0,f=d.length;e<f;e++)if(s(c=eP.data(a,d[e])))return c;a=a.parentNode||a.nodeType===fn&&a.host}}function bR(a){bG(a,!0);while(a.firstChild)a.removeChild(a.firstChild)}function bS(a,b){b||bG(a);var c=a.parentNode;c&&c.removeChild(a)}function bT(b,c){c=c||a,c.document.readyState==="complete"?c.setTimeout(b):eP(c).on("load",b)}function bU(a,b){var c=fE[b.toLowerCase()];return c&&fF[L(a)]&&c}function bV(a){return fG[a]}function bW(a,b){var c=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var e=b[d||c.type],f=e?e.length:0;if(!f)return;if(r(c.immediatePropagationStopped)){var g=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0,c.stopPropagation&&c.stopPropagation(),g&&g.call(c)}}c.isImmediatePropagationStopped=function(){return c.immediatePropagationStopped===!0};var h=e.specialHandlerWrapper||bX;f>1&&(e=br(e));for(var i=0;i<f;i++)c.isImmediatePropagationStopped()||h(a,c,e[i])};return c.elem=a,c}function bX(a,b,c){c.call(a,b)}function bY(a,b,c){var d=b.relatedTarget;(!d||d!==a&&!fC.call(a,d))&&c.call(a,b)}function bZ(){this.$get=function(){return j(bE,{hasClass:function(a,b){return a.attr&&(a=a[0]),bL(a,b)},addClass:function(a,b){return a.attr&&(a=a[0]),bN(a,b)},removeClass:function(a,b){return a.attr&&(a=a[0]),bM(a,b)}})}}function b$(a,b){var c=a&&a.$$hashKey;if(c)return typeof c=="function"&&(c=a.$$hashKey()),c;var d=typeof a;return d=="function"||d=="object"&&a!==null?c=a.$$hashKey=d+":"+(b||g)():c=d+":"+a,c}function b_(a,b){if(b){var c=0;this.nextUid=function(){return++c}}d(a,this.put,this)}function ca(a){return Function.prototype.toString.call(a)+" "}function cb(a){var b=ca(a).replace(fM,""),c=b.match(fI)||b.match(fJ);return c}function cc(a){var b=cb(a);return b?"function("+(b[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function cd(a,b,c){var e,f,g;if(typeof a=="function"){if(!(e=a.$inject)){e=[];if(a.length){if(b){if(!v(c)||!c)c=a.name||cc(a);throw fN("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",c)}f=cb(a),d(f[1].split(fK),function(a){a.replace(fL,function(a,b,c){e.push(c)})})}a.$inject=e}}else e$(a)?(g=a.length-1,bl(a[g],"fn"),e=a.slice(0,g)):bl(a,"fn",!0);return e}function ce(a,b){function c(a){return function(b,c){if(t(b))d(b,f(a));else return a(b,c)}}function e(a,b){bm(a,"service");if(y(b)||e$(b))b=x.instantiate(b);if(!b.$get)throw fN("pget","Provider '{0}' must define $get factory method.",a);return w[a+q]=b}function g(a,b){return function c(){var c=B.invoke(b,this);if(r(c))throw fN("undef","Provider '{0}' must return a value from $get factory method.",a);return c}}function h(a,b,c){return e(a,{$get:c!==!1?g(a,b):b})}function i(a,b){return h(a,["$injector",function(a){return a.instantiate(b)}])}function j(a,b){return h(a,p(b),!1)}function k(a,b){bm(a,"constant"),w[a]=b,z[a]=b}function l(a,b){var c=x.get(a+q),d=c.$get;c.$get=function(){var a=B.invoke(d,c);return B.invoke(b,null,{$delegate:a})}}function m(a){bk(r(a)||e$(a),"modulesToLoad","not an array");var b=[],c;return d(a,function(a){function d(a){var b,c;for(b=0,c=a.length;b<c;b++){var d=a[b],e=x.get(d[0]);e[d[1]].apply(e,d[2])}}if(u.get(a))return;u.put(a,!0);try{v(a)?(c=eY(a),b=b.concat(m(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):y(a)?b.push(x.invoke(a)):e$(a)?b.push(x.invoke(a)):bl(a,"module")}catch(e){throw e$(a)&&(a=a[a.length-1]),e.message&&e.stack&&e.stack.indexOf(e.message)==-1&&(e=e.message+"\n"+e.stack),fN("modulerr","Failed to instantiate module {0} due to:\n{1}",a,e.stack||e.message||e)}}),b}function n(a,c){function d(b,d){if(a.hasOwnProperty(b)){if(a[b]===o)throw fN("cdep","Circular dependency found: {0}",b+" <- "+s.join(" <- "));return a[b]}try{return s.unshift(b),a[b]=o,a[b]=c(b,d)}catch(e){throw a[b]===o&&delete a[b],e}finally{s.shift()}}function e(a,c,e){var f=[],g=ce.$$annotate(a,b,e);for(var h=0,i=g.length;h<i;h++){var j=g[h];if(typeof j!="string")throw fN("itkn","Incorrect injection token! Expected service name as string, got {0}",j);f.push(c&&c.hasOwnProperty(j)?c[j]:d(j,e))}return f}function f(a){return eO<=11?!1:typeof a=="function"&&/^(?:class\s|constructor\()/.test(ca(a))}function g(a,b,c,d){typeof c=="string"&&(d=c,c=null);var g=e(a,c,d);return e$(a)&&(a=a[a.length-1]),f(a)?(g.unshift(null),new(Function.prototype.bind.apply(a,g))):a.apply(b,g)}function h(a,b,c){var d=e$(a)?a[a.length-1]:a,f=e(a,b,c);return f.unshift(null),new(Function.prototype.bind.apply(d,f))}return{invoke:g,instantiate:h,get:d,annotate:ce.$$annotate,has:function(b){return w.hasOwnProperty(b+q)||a.hasOwnProperty(b)}}}b=b===!0;var o={},q="Provider",s=[],u=new b_([],!0),w={$provide:{provider:c(e),factory:c(h),service:c(i),value:c(j),constant:c(k),decorator:l}},x=w.$injector=n(w,function(a,b){throw eX.isString(b)&&s.push(b),fN("unpr","Unknown provider: {0}",s.join(" <- "))}),z={},A=n(z,function(a,b){var c=x.get(a+q,b);return B.invoke(c.$get,c,undefined,a)}),B=A;w["$injector"+q]={$get:p(A)};var C=m(a);return B=A.get("$injector"),B.strictDi=b,d(C,function(a){a&&B.invoke(a)}),B}function cf(){var a=!0;this.disableAutoScrolling=function(){a=!1},this.$get=["$window","$location","$rootScope",function(b,c,d){function e(a){var b=null;return Array.prototype.some.call(a,function(a){if(L(a)==="a")return b=a,!0}),b}function f(){var a=h.yOffset;if(y(a))a=a();else if(J(a)){var c=a[0],d=b.getComputedStyle(c);d.position!=="fixed"?a=0:a=c.getBoundingClientRect().bottom}else w(a)||(a=0);return a}function g(a){if(a){a.scrollIntoView();var c=f();if(c){var d=a.getBoundingClientRect().top;b.scrollBy(0,d-c)}}else b.scrollTo(0,0)}function h(a){a=v(a)?a:c.hash();var b;a?(b=i.getElementById(a))?g(b):(b=e(i.getElementsByName(a)))?g(b):a==="top"&&g(null):g(null)}var i=b.document;return a&&d.$watch(function(){return c.hash()},function(a,b){if(a===b&&a==="")return;bT(function(){d.$evalAsync(h)})}),h}]}function cg(a,b){return!a&&!b?"":a?b?(e$(a)&&(a=a.join(" ")),e$(b)&&(b=b.join(" ")),a+" "+b):a:b}function ch(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.nodeType===fP)return c}}function ci(a){v(a)&&(a=a.split(" "));var b=bp();return d(a,function(a){a.length&&(b[a]=!0)}),b}function cj(a){return t(a)?a:{}}function ck(a,b,c,e){function f(a){try{a.apply(null,R(arguments,1))}finally{s--;if(s===0)while(t.length)try{t.pop()()}catch(b){c.error(b)}}}function g(a){var b=a.indexOf("#");return b===-1?"":a.substr(b)}function h(){y=null,i(),j()}function i(){u=z(),u=r(u)?null:u,P(u,C)&&(u=C),C=u}function j(){if(w===k.url()&&v===u)return;w=k.url(),v=u,d(A,function(a){a(k.url(),u)})}var k=this,l=a.location,m=a.history,o=a.setTimeout,p=a.clearTimeout,q={};k.isMock=!1;var s=0,t=[];k.$$completeOutstandingRequest=f,k.$$incOutstandingRequestCount=function(){s++},k.notifyWhenNoOutstandingRequests=function(a){s===0?a():t.push(a)};var u,v,w=l.href,x=b.find("base"),y=null,z=e.history?function(){try{return m.state}catch(a){}}:n;i(),v=u,k.url=function(b,c,d){r(d)&&(d=null),l!==a.location&&(l=a.location),m!==a.history&&(m=a.history);if(b){var f=v===d;if(w===b&&(!e.history||f))return k;var h=w&&cU(w)===cU(b);return w=b,v=d,e.history&&(!h||!f)?(m[c?"replaceState":"pushState"](d,"",b),i(),v=u):(h||(y=b),c?l.replace(b):h?l.hash=g(b):l.href=b,l.href!==b&&(y=b)),y&&(y=b),k}return y||l.href.replace(/%27/g,"'")},k.state=function(){return u};var A=[],B=!1,C=null;k.onUrlChange=function(b){return B||(e.history&&eP(a).on("popstate",h),eP(a).on("hashchange",h),B=!0),A.push(b),b},k.$$applicationDestroyed=function(){eP(a).off("hashchange popstate",h)},k.$$checkUrlChange=j,k.baseHref=function(){var a=x.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""},k.defer=function(a,b){var c;return s++,c=o(function(){delete q[c],f(a)},b||0),q[c]=!0,c},k.defer.cancel=function(a){return q[a]?(delete q[a],p(a),f(n),!0):!1}}function cl(){this.$get=["$window","$log","$sniffer","$document",function(a,b,c,d){return new ck(a,d,b,c)}]}function cm(){this.$get=function(){function a(a,d){function e(a){a!=m&&(n?n==a&&(n=a.n):n=a,f(a.n,a.p),f(a,m),m=a,m.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in c)throw b("$cacheFactory")("iid","CacheId '{0}' is already taken!",a);var g=0,h=j({},d,{id:a}),i=bp(),k=d&&d.capacity||Number.MAX_VALUE,l=bp(),m=null,n=null;return c[a]={put:function(a,b){if(r(b))return;if(k<Number.MAX_VALUE){var c=l[a]||(l[a]={key:a});e(c)}return a in i||g++,i[a]=b,g>k&&this.remove(n.key),b},get:function(a){if(k<Number.MAX_VALUE){var b=l[a];if(!b)return;e(b)}return i[a]},remove:function(a){if(k<Number.MAX_VALUE){var b=l[a];if(!b)return;b==m&&(m=b.p),b==n&&(n=b.n),f(b.n,b.p),delete l[a]}if(a in i)delete i[a],g--;else return},removeAll:function(){i=bp(),g=0,l=bp(),m=n=null},destroy:function(){i=null,h=null,l=null,delete c[a]},info:function(){return j({},h,{size:g})}}}var c={};return a.info=function(){var a={};return d(c,function(b,c){a[c]=b.info()}),a},a.get=function(a){return c[a]},a}}function cn(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function co(){}function cp(b,c){function e(a,b,c){var e=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,f=bp();return d(a,function(a,d){if(a in A){f[d]=A[a];return}var g=a.match(e);if(!g)throw fX("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",b,d,a,c?"controller bindings definition":"isolate scope definition");f[d]={mode:g[1][0],collection:g[2]==="*",optional:g[3]==="?",attrName:g[4]||d},g[4]&&(A[a]=f[d])}),f}function g(a,b){var c={isolateScope:null,bindToController:null};t(a.scope)&&(a.bindToController===!0?(c.bindToController=e(a.scope,b,!0),c.isolateScope={}):c.isolateScope=e(a.scope,b,!1)),t(a.bindToController)&&(c.bindToController=e(a.bindToController,b,!0));if(t(c.bindToController)){var d=a.controller,f=a.controllerAs;if(!d)throw fX("noctrl","Cannot bind to controller without directive '{0}'s controller.",b);if(!cw(d,f))throw fX("noident","Cannot bind to controller without identifier for directive '{0}'.",b)}return c}function h(a){var b=a.charAt(0);if(!b||b!==eK(b))throw fX("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",a);if(a!==a.trim())throw fX("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",a)}function i(a){var b=a.require||a.controller&&a.name;return!e$(b)&&t(b)&&d(b,function(a,c){var d=a.match(x),e=a.substring(d[0].length);e||(b[c]=d[0]+c)}),b}var k={},l="Directive",q=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,u=/(([\w\-]+)(?:\:([^;]+))?;?)/,w=K("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,z=/^(on[a-z]+|formaction)$/,A=bp();this.directive=function E(a,c){return bm(a,"directive"),v(a)?(h(a),bk(c,"directiveFactory"),k.hasOwnProperty(a)||(k[a]=[],b.factory(a+l,["$injector","$exceptionHandler",function(b,c){var e=[];return d(k[a],function(d,f){try{var g=b.invoke(d);y(g)?g={compile:p(g)}:!g.compile&&g.link&&(g.compile=p(g.link)),g.priority=g.priority||0,g.index=f,g.name=g.name||a,g.require=i(g),g.restrict=g.restrict||"EA",g.$$moduleName=d.$$moduleName,e.push(g)}catch(h){c(h)}}),e}])),k[a].push(c)):d(a,f(E)),this},this.component=function(a,b){function c(a){function c(b){return y(b)||e$(b)?function(c,d){return a.invoke(b,this,{$element:c,$attrs:d})}:b}var f=!b.template&&!b.templateUrl?"":b.template,g={controller:e,controllerAs:cw(b.controller)||b.controllerAs||"$ctrl",template:c(f),templateUrl:c(b.templateUrl),transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require};return d(b,function(a,b){b.charAt(0)==="$"&&(g[b]=a)}),g}var e=b.controller||function(){};return d(b,function(a,b){b.charAt(0)==="$"&&(c[b]=a,y(e)&&(e[b]=a))}),c.$inject=["$injector"],this.directive(a,c)},this.aHrefSanitizationWhitelist=function(a){return s(a)?(c.aHrefSanitizationWhitelist(a),this):c.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(a){return s(a)?(c.imgSrcSanitizationWhitelist(a),this):c.imgSrcSanitizationWhitelist()};var C=!0;this.debugInfoEnabled=function(a){return s(a)?(C=a,this):C};var D=10;this.onChangesTtl=function(a){return arguments.length?(D=a,this):D},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(b,c,e,f,h,i,p,A,E,G){function H(){try{if(!--bu)throw bv=undefined,fX("infchng","{0} $onChanges() iterations reached. Aborting!\n",D);p.$apply(function(){var a=[];for(var b=0,c=bv.length;b<c;++b)try{bv[b]()}catch(d){a.push(d)}bv=undefined;if(a.length)throw a})}finally{bu++}}function I(a,b){if(b){var c=Object.keys(b),d,e,f;for(d=0,e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a}function J(a,b,c){bt.innerHTML="<span "+b+">";var d=bt.firstChild.attributes,e=d[0];d.removeNamedItem(e.name),e.value=c,a.attributes.setNamedItem(e)}function K(a,b){try{a.addClass(b)}catch(c){}}function M(b,c,d,e,f){b instanceof eP||(b=eP(b));var g=/\S+/;for(var h=0,i=b.length;h<i;h++){var j=b[h];j.nodeType===fk&&j.nodeValue.match(g)&&bD(j,b[h]=a.document.createElement("span"))}var k=Q(b,c,b,d,e,f);M.$$addScopeClass(b);var l=null;return function(a,c,d){bk(a,"scope"),f&&f.needsNewScope&&(a=a.$parent.$new()),d=d||{};var e=d.parentBoundTranscludeFn,g=d.transcludeControllers,h=d.futureParentElement;e&&e.$$boundTransclude&&(e=e.$$boundTransclude),l||(l=O(h));var i;l!=="html"?i=eP(bj(l,eP("<div>").append(b).html())):c?i=fD.clone.call(b):i=b;if(g)for(var j in g)i.data("$"+j+"Controller",g[j].instance);return M.$$addScopeInfo(i,a),c&&c(i,a),k&&k(a,i,i,e),i}}function O(a){var b=a&&a[0];return b?L(b)!=="foreignobject"&&eU.call(b).match(/SVG/)?"svg":"html":"html"}function Q(a,b,c,d,e,f){function g(a,c,d,e){var f,g,i,j,k,l,m,n,p;if(o){var q=c.length;p=new Array(q);for(k=0;k<h.length;k+=3)m=h[k],p[m]=c[m]}else p=c;for(k=0,l=h.length;k<l;)i=p[h[k++]],f=h[k++],g=h[k++],f?(f.scope?(j=a.$new(),M.$$addScopeInfo(eP(i),j)):j=a,f.transcludeOnThisElement?n=T(a,f.transclude,e):!f.templateOnThisElement&&e?n=e:!e&&b?n=T(a,b):n=null,f(g,j,i,d,n)):g&&g(a,i.childNodes,undefined,e)}var h=[],i,j,k,l,m,n,o;for(var p=0;p<a.length;p++){i=new I,j=U(a[p],[],i,p===0?d:undefined,e),k=j.length?Y(j,a[p],i,b,c,null,[],[],f):null,k&&k.scope&&M.$$addScopeClass(i.$$element),m=k&&k.terminal||!(l=a[p].childNodes)||!l.length?null:Q(l,k?(k.transcludeOnThisElement||!k.templateOnThisElement)&&k.transclude:b);if(k||m)h.push(p,k,m),n=!0,o=o||k;f=null}return n?g:null}function T(a,b,c){function d(d,e,f,g,h){return d||(d=a.$new(!1,h),d.$$transcluded=!0),b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})}var e=d.$$slots=bp();for(var f in b.$$slots)b.$$slots[f]?e[f]=T(a,b.$$slots[f],c):e[f]=null;return d}function U(a,b,c,d,e){var f=a.nodeType,g=c.$attr,h,i;switch(f){case fi:bb(b,cr(L(a)),"E",d,e);for(var j,k,l,m,n,o,p=a.attributes,r=0,s=p&&p.length;r<s;r++){var w=!1,x=!1;j=p[r],k=j.name,n=fa(j.value),m=cr(k);if(o=bA.test(m))k=k.replace(fZ,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()});var y=m.match(bB);y&&bc(y[1])&&(w=k,x=k.substr(0,k.length-5)+"end",k=k.substr(0,k.length-6)),l=cr(k.toLowerCase()),g[l]=k;if(o||!c.hasOwnProperty(l))c[l]=n,bU(a,l)&&(c[l]=!0);bm(a,b,n,l,o),bb(b,l,"A",d,e,w,x)}i=a.className,t(i)&&(i=i.animVal);if(v(i)&&i!=="")while(h=u.exec(i))l=cr(h[2]),bb(b,l,"C",d,e)&&(c[l]=fa(h[3])),i=i.substr(h.index+h[0].length);break;case fk:if(eO===11)while(a.parentNode&&a.nextSibling&&a.nextSibling.nodeType===fk)a.nodeValue=a.nodeValue+a.nextSibling.nodeValue,a.parentNode.removeChild(a.nextSibling);bh(b,a.nodeValue);break;case fl:try{h=q.exec(a.nodeValue),h&&(l=cr(h[1]),bb(b,l,"M",d,e)&&(c[l]=fa(h[2])))}catch(z){}}return b.sort(bf),b}function V(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw fX("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",b,c);a.nodeType==fi&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--),d.push(a),a=a.nextSibling}while(e>0)}else d.push(a);return eP(d)}function W(a,b,c){return function d(d,e,f,g,h){return e=V(e[0],b,c),a(d,e,f,g,h)}}function X(a,b,c,d,e,f){var g;return a?M(b,c,d,e,f):function(){return g||(g=M(b,c,d,e,f),b=c=f=null),g.apply(this,arguments)}}function Y(a,b,c,f,g,h,i,k,l){function m(a,b,c,d){if(a){c&&(a=W(a,c,d)),a.require=C.require,a.directiveName=D;if(s===C||C.$$isolateScope)a=bo(a,{isolateScope:!0});i.push(a)}if(b){c&&(b=W(b,c,d)),b.require=C.require,b.directiveName=D;if(s===C||C.$$isolateScope)b=bo(b,{isolateScope:!0});k.push(b)}}function n(a,f,g,h,l){function m(a,b,c,d){var e;B(a)||(d=c,c=b,b=a,a=undefined),z&&(e=A),c||(c=z?D.parent():D);if(!d)return l(a,b,e,c,N);var f=l.$$slots[d];if(f)return f(a,b,e,c,N);if(r(f))throw fX("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',d,Z(D))}var n,o,v,w,x,A,C,D,E,F;b===g?(E=c,D=c.$$element):(D=eP(g),E=new I(D,c)),x=f,s?w=f.$new(!0):p&&(x=f.$parent),l&&(C=m,C.$$boundTransclude=l,C.isSlotFilled=function(a){return!!l.$$slots[a]}),q&&(A=_(D,E,C,q,w,f,s)),s&&(M.$$addScopeInfo(D,w,!0,!u||u!==s&&u!==s.$$originalDirective),M.$$addScopeClass(D,!0),w.$$isolateBindings=s.$$isolateBindings,F=br(f,E,w,w.$$isolateBindings,s),F.removeWatches&&w.$on("$destroy",F.removeWatches));for(var G in A){var H=q[G],J=A[G],K=H.$$bindings.bindToController;J.identifier&&K?J.bindingInfo=br(x,E,J.instance,K,H):J.bindingInfo={};var L=J();L!==J.instance&&(J.instance=L,D.data("$"+H.name+"Controller",L),J.bindingInfo.removeWatches&&J.bindingInfo.removeWatches(),J.bindingInfo=br(x,E,J.instance,K,H))}d(q,function(a,b){var c=a.require;a.bindToController&&!e$(c)&&t(c)&&j(A[b].instance,$(b,c,D,A))}),d(A,function(a){var b=a.instance;if(y(b.$onChanges))try{b.$onChanges(a.bindingInfo.initialChanges)}catch(c){e(c)}if(y(b.$onInit))try{b.$onInit()}catch(c){e(c)}y(b.$onDestroy)&&x.$on("$destroy",function(){b.$onDestroy()})});for(n=0,o=i.length;n<o;n++)v=i[n],bq(v,v.isolateScope?w:f,D,E,v.require&&$(v.directiveName,v.require,D,A),C);var N=f;s&&(s.template||s.templateUrl===null)&&(N=w),a&&a(N,g.childNodes,undefined,l);for(n=k.length-1;n>=0;n--)v=k[n],bq(v,v.isolateScope?w:f,D,E,v.require&&$(v.directiveName,v.require,D,A),C);d(A,function(a){var b=a.instance;y(b.$postLink)&&b.$postLink()})}l=l||{};var o=-Number.MAX_VALUE,p=l.newScopeDirective,q=l.controllerDirectives,s=l.newIsolateScopeDirective,u=l.templateDirective,v=l.nonTlbTranscludeDirective,w=!1,x=!1,z=l.hasElementTranscludeDirective,A=c.$$element=eP(b),C,D,E,F=h,G=f,H,J=!1,K=!1,N;for(var O=0,P=a.length;O<P;O++){C=a[O];var Q=C.$$start,T=C.$$end;Q&&(A=V(b,Q,T)),E=undefined;if(o>C.priority)break;if(N=C.scope)C.templateUrl||(t(N)?(bg("new/isolated scope",s||p,C,A),s=C):bg("new/isolated scope",s,C,A)),p=p||C;D=C.name;if(!J&&(C.replace&&(C.templateUrl||C.template)||C.transclude&&!C.$$tlb)){var Y;for(var bb=O+1;Y=a[bb++];)if(Y.transclude&&!Y.$$tlb||Y.replace&&(Y.templateUrl||Y.template)){K=!0;break}J=!0}!C.templateUrl&&C.controller&&(N=C.controller,q=q||bp(),bg("'"+D+"' controller",q[D],C,A),q[D]=C);if(N=C.transclude){w=!0,C.$$tlb||(bg("transclusion",v,C,A),v=C);if(N=="element")z=!0,o=C.priority,E=A,A=c.$$element=eP(M.$$createComment(D,c[D])),b=A[0],bn(g,R(E),b),E[0].$$parentNode=E[0].parentNode,G=X(K,E,f,o,F&&F.name,{nonTlbTranscludeDirective:v});else{var bc=bp();E=eP(bF(b)).contents();if(t(N)){E=[];var bf=bp(),bh=bp();d(N,function(a,b){var c=a.charAt(0)==="?";a=c?a.substring(1):a,bf[a]=b,bc[b]=null,bh[b]=c}),d(A.contents(),function(a){var b=bf[cr(L(a))];b?(bh[b]=!0,bc[b]=bc[b]||[],bc[b].push(a)):E.push(a)}),d(bh,function(a,b){if(!a)throw fX("reqslot","Required transclusion slot `{0}` was not filled.",b)});for(var bi in bc)bc[bi]&&(bc[bi]=X(K,bc[bi],f))}A.empty(),G=X(K,E,f,undefined,undefined,{needsNewScope:C.$$isolateScope||C.$$newScope}),G.$$slots=bc}}if(C.template){x=!0,bg("template",u,C,A),u=C,N=y(C.template)?C.template(A,c):C.template,N=bz(N);if(C.replace){F=C,bx(N)?E=[]:E=cv(bj(C.templateNamespace,fa(N))),b=E[0];if(E.length!=1||b.nodeType!==fi)throw fX("tplrt","Template for directive '{0}' must have exactly one root element. {1}",D,"");bn(g,A,b);var bk={$attr:{}},bl=U(b,[],bk),bm=a.splice(O+1,a.length-(O+1));(s||p)&&ba(bl,s,p),a=a.concat(bl).concat(bm),bd(c,bk),P=a.length}else A.html(N)}if(C.templateUrl)x=!0,bg("template",u,C,A),u=C,C.replace&&(F=C),n=be(a.splice(O,a.length-O),A,c,g,w&&G,i,k,{controllerDirectives:q,newScopeDirective:p!==C&&p,newIsolateScopeDirective:s,templateDirective:u,nonTlbTranscludeDirective:v}),P=a.length;else if(C.compile)try{H=C.compile(A,c,G);var bs=C.$$originalDirective||C;y(H)?m(null,S(bs,H),Q,T):H&&m(S(bs,H.pre),S(bs,H.post),Q,T)}catch(bt){e(bt,Z(A))}C.terminal&&(n.terminal=!0,o=Math.max(o,C.priority))}return n.scope=p&&p.scope===!0,n.transcludeOnThisElement=w,n.templateOnThisElement=x,n.transclude=G,l.hasElementTranscludeDirective=z,n}function $(a,b,c,e){var f;if(v(b)){var g=b.match(x),h=b.substring(g[0].length),i=g[1]||g[3],j=g[2]==="?";i==="^^"?c=c.parent():(f=e&&e[h],f=f&&f.instance);if(!f){var k="$"+h+"Controller";f=i?c.inheritedData(k):c.data(k)}if(!f&&!j)throw fX("ctreq","Controller '{0}', required by directive '{1}', can't be found!",h,a)}else if(e$(b)){f=[];for(var l=0,m=b.length;l<m;l++)f[l]=$(a,b[l],c,e)}else t(b)&&(f={},d(b,function(b,d){f[d]=$(a,b,c,e)}));return f||null}function _(a,b,c,d,e,f,g){var h=bp();for(var j in d){var k=d[j],l={$scope:k===g||k.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},m=k.controller;m=="@"&&(m=b[k.name]);var n=i(m,l,!0,k.controllerAs);h[k.name]=n,a.data("$"+k.name+"Controller",n.instance)}return h}function ba(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=m(a[d],{$$isolateScope:b,$$newScope:c})}function bb(a,c,d,f,h,i,j){if(c===h)return null;var n=null;if(k.hasOwnProperty(c))for(var o,p=b.get(c+l),q=0,s=p.length;q<s;q++)try{o=p[q];if((r(f)||f>o.priority)&&o.restrict.indexOf(d)!=-1){i&&(o=m(o,{$$start:i,$$end:j}));if(!o.$$bindings){var u=o.$$bindings=g(o,o.name);t(u.isolateScope)&&(o.$$isolateBindings=u.isolateScope)}a.push(o),n=o}}catch(v){e(v)}return n}function bc(a){if(k.hasOwnProperty(a))for(var c,d=b.get(a+l),e=0,f=d.length;e<f;e++){c=d[e];if(c.multiElement)return!0}return!1}function bd(a,b){var c=b.$attr,e=a.$attr,f=a.$$element;d(a,function(d,e){e.charAt(0)!="$"&&(b[e]&&b[e]!==d&&(d+=(e==="style"?";":" ")+b[e]),a.$set(e,d,!0,c[e]))}),d(b,function(b,d){!a.hasOwnProperty(d)&&d.charAt(0)!=="$"&&(a[d]=b,d!=="class"&&d!=="style"&&(e[d]=c[d]))})}function be(a,b,c,e,g,h,i,j){var k=[],l,n,o=b[0],p=a.shift(),q=m(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p}),r=y(p.templateUrl)?p.templateUrl(b,c):p.templateUrl,s=p.templateNamespace;return b.empty(),f(r).then(function(f){var m,u,v,w;f=bz(f);if(p.replace){bx(f)?v=[]:v=cv(bj(s,fa(f))),m=v[0];if(v.length!=1||m.nodeType!==fi)throw fX("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,r);u={$attr:{}},bn(e,b,m);var x=U(m,[],u);t(p.scope)&&ba(x,!0),a=x.concat(a),bd(c,u)}else m=o,b.html(f);a.unshift(q),l=Y(a,m,c,g,b,p,h,i,j),d(e,function(a,c){a==m&&(e[c]=b[0])}),n=Q(b[0].childNodes,g);while(k.length){var y=k.shift(),z=k.shift(),A=k.shift(),B=k.shift(),C=b[0];if(y.$$destroyed)continue;if(z!==o){var D=z.className;if(!j.hasElementTranscludeDirective||!p.replace)C=bF(m);bn(A,eP(z),C),K(eP(C),D)}l.transcludeOnThisElement?w=T(y,l.transclude,B):w=B,l(n,y,C,e,w)}k=null}),function(a,b,c,d,e){var f=e;if(b.$$destroyed)return;k?k.push(b,c,d,f):(l.transcludeOnThisElement&&(f=T(b,l.transclude,e)),l(n,b,c,d,f))}}function bf(a,b){var c=b.priority-a.priority;return c!==0?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function bg(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw fX("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,Z(d))}function bh(a,b){var d=c(b,!0);d&&a.push({priority:0,compile:function(a){var b=a.parent(),c=!!b.length;return c&&M.$$addBindingClass(b),function e(a,b){var e=b.parent();c||M.$$addBindingClass(e),M.$$addBindingInfo(e,d.expressions),a.$watch(d,function(a){b[0].nodeValue=a})}}})}function bj(b,c){b=eK(b||"html");switch(b){case"svg":case"math":var d=a.document.createElement("div");return d.innerHTML="<"+b+">"+c+"</"+b+">",d.childNodes[0].childNodes;default:return c}}function bl(a,b){if(b=="srcdoc")return A.HTML;var c=L(a);if(b=="xlinkHref"||c=="form"&&b=="action"||c!="img"&&(b=="src"||b=="ngSrc"))return A.RESOURCE_URL}function bm(a,b,d,e,f){var g=bl(a,e);f=w[e]||f;var h=c(d,!0,g,f);if(!h)return;if(e==="multiple"&&L(a)==="select")throw fX("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Z(a));b.push({priority:100,compile:function(){return{pre:function a(a,b,i){var j=i.$$observers||(i.$$observers=bp());if(z.test(e))throw fX("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var k=i[e];k!==d&&(h=k&&c(k,!0,g,f),d=k);if(!h)return;i[e]=h(a),(j[e]||(j[e]=[])).$$inter=!0,(i.$$observers&&i.$$observers[e].$$scope||a).$watch(h,function(a,b){e==="class"&&a!=b?i.$updateClass(a,b):i.$set(e,a)})}}}})}function bn(b,c,d){var e=c[0],f=c.length,g=e.parentNode,h,i;if(b)for(h=0,i=b.length;h<i;h++)if(b[h]==e){b[h++]=d;for(var j=h,k=j+f-1,l=b.length;j<l;j++,k++)k<l?b[j]=b[k]:delete b[j];b.length-=f-1,b.context===e&&(b.context=d);break}g&&g.replaceChild(d,e);var m=a.document.createDocumentFragment();for(h=0;h<f;h++)m.appendChild(c[h]);eP.hasData(e)&&(eP.data(d,eP.data(e)),eP(e).off("$destroy")),eP.cleanData(m.querySelectorAll("*"));for(h=1;h<f;h++)delete c[h];c[0]=d,c.length=1}function bo(a,b){return j(function(){return a.apply(null,arguments)},a,b)}function bq(a,b,c,d,f,g){try{a(b,c,d,f,g)}catch(h){e(h,Z(c))}}function br(a,b,e,f,g){function i(b,c,d){y(e.$onChanges)&&c!==d&&(bv||(a.$$postDigest(H),bv=[]),m||(m={},bv.push(j)),m[b]&&(d=m[b].previousValue),m[b]=new cq(d,c))}function j(){e.$onChanges(m),m=undefined}var k=[],l={},m;return d(f,function o(d,f){var j=d.attrName,o=d.optional,m=d.mode,p,q,r,s,t;switch(m){case"@":!o&&!eJ.call(b,j)&&(e[f]=b[j]=void 0),b.$observe(j,function(a){if(v(a)||F(a)){var b=e[f];i(f,a,b),e[f]=a}}),b.$$observers[j].$$scope=a,p=b[j],v(p)?e[f]=c(p)(a):F(p)&&(e[f]=p),l[f]=new cq(fY,e[f]);break;case"=":if(!eJ.call(b,j)){if(o)break;b[j]=void 0}if(o&&!b[j])break;q=h(b[j]),q.literal?s=P:s=function(a,b){return a===b||a!==a&&b!==b},r=q.assign||function(){throw p=e[f]=q(a),fX("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",b[j],j,g.name)},p=e[f]=q(a);var u=function(b){return s(b,e[f])||(s(b,p)?r(a,b=e[f]):e[f]=b),p=b};u.$stateful=!0,d.collection?t=a.$watchCollection(b[j],u):t=a.$watch(h(b[j],u),null,q.literal),k.push(t);break;case"<":if(!eJ.call(b,j)){if(o)break;b[j]=void 0}if(o&&!b[j])break;q=h(b[j]);var w=e[f]=q(a);l[f]=new cq(fY,e[f]),t=a.$watch(q,function(a,b){if(b===a){if(b===w)return;b=w}i(f,a,b),e[f]=a},q.literal),k.push(t);break;case"&":q=b.hasOwnProperty(j)?h(b[j]):n;if(q===n&&o)break;e[f]=function(b){return q(a,b)}}}),{initialChanges:l,removeWatches:k.length&&function(){for(var a=0,b=k.length;a<b;++a)k[a]()}}}var bs=/^\w/,bt=a.document.createElement("div"),bu=D,bv;I.prototype={$normalize:cr,$addClass:function(a){a&&a.length>0&&E.addClass(this.$$element,a)},$removeClass:function(a){a&&a.length>0&&E.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=cu(a,b);c&&c.length&&E.addClass(this.$$element,c);var d=cu(b,a);d&&d.length&&E.removeClass(this.$$element,d)},$set:function(a,b,c,f){var g=this.$$element[0],h=bU(g,a),i=bV(a),j=a,k;h?(this.$$element.prop(a,b),f=h):i&&(this[i]=b,j=i),this[a]=b,f?this.$attr[a]=f:(f=this.$attr[a],f||(this.$attr[a]=f=bi(a,"-"))),k=L(this.$$element);if(k==="a"&&(a==="href"||a==="xlinkHref")||k==="img"&&a==="src")this[a]=b=G(b,a==="src");else if(k==="img"&&a==="srcset"&&s(b)){var l="",m=fa(b),n=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,o=/\s/.test(m)?n:/(,)/,p=m.split(o),q=Math.floor(p.length/2);for(var t=0;t<q;t++){var u=t*2;l+=G(fa(p[u]),!0),l+=" "+fa(p[u+1])}var v=fa(p[t*2]).split(/\s/);l+=G(fa(v[0]),!0),v.length===2&&(l+=" "+fa(v[1])),this[a]=b=l}c!==!1&&(b===null||r(b)?this.$$element.removeAttr(f):bs.test(f)?this.$$element.attr(f,b):J(this.$$element[0],f,b));var w=this.$$observers;w&&d(w[j],function(a){try{a(b)}catch(c){e(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=bp()),e=d[a]||(d[a]=[]);return e.push(b),p.$evalAsync(function(){!e.$$inter&&c.hasOwnProperty(a)&&!r(c[a])&&b(c[a])}),function(){N(e,b)}}};var bw=c.startSymbol(),by=c.endSymbol(),bz=bw=="{{"&&by=="}}"?o:function(a){return a.replace(/\{\{/g,bw).replace(/}}/g,by)},bA=/^ngAttr[A-Z]/,bB=/^(.+)Start$/;return M.$$addBindingInfo=C?function(a,b){var c=a.data("$binding")||[];e$(b)?c=c.concat(b):c.push(b),a.data("$binding",c)}:n,M.$$addBindingClass=C?function(a){K(a,"ng-binding")}:n,M.$$addScopeInfo=C?function(a,b,c,d){var e=c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope";a.data(e,b)}:n,M.$$addScopeClass=C?function(a,b){K(a,b?"ng-isolate-scope":"ng-scope")}:n,M.$$createComment=function(b,c){var d="";return C&&(d=" "+(b||"")+": ",c&&(d+=c+" ")),a.document.createComment(d)},M}]}function cq(a,b){this.previousValue=a,this.currentValue=b}function cr(a){return bw(a.replace(fZ,""))}function cs(a,b,c,d){}function ct(a,b,c,d,e){}function cu(a,b){var c="",d=a.split(/\s+/),e=b.split(/\s+/);f:for(var g=0;g<d.length;g++){var h=d[g];for(var i=0;i<e.length;i++)if(h==e[i])continue f;c+=(c.length>0?" ":"")+h}return c}function cv(a){a=eP(a);var b=a.length;if(b<=1)return a;while(b--){var c=a[b];c.nodeType===fl&&eS.call(a,b,1)}return a}function cw(a,b){if(b&&v(b))return b;if(v(a)){var c=f_.exec(a);if(c)return c[3]}}function cx(){var a={},c=!1;this.has=function(b){return a.hasOwnProperty(b)},this.register=function(b,c){bm(b,"controller"),t(b)?j(a,b):a[b]=c},this.allowGlobals=function(){c=!0},this.$get=["$injector","$window",function(d,e){function f(a,c,d,e){if(!a||!t(a.$scope))throw b("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",e,c);a.$scope[c]=d}return function g(b,g,h,i){var k,l,m,n;h=h===!0,i&&v(i)&&(n=i);if(v(b)){l=b.match(f_);if(!l)throw f$("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",b);m=l[1],n=n||l[3],b=a.hasOwnProperty(m)?a[m]:bn(g.$scope,m,!0)||(c?bn(e,m,!0):undefined),bl(b,m,!0)}if(h){var o=(e$(b)?b[b.length-1]:b).prototype;k=Object.create(o||null),n&&f(g,n,k,m||b.name);var p;return p=j(function(){var a=d.invoke(b,k,g,m);return a!==k&&(t(a)||y(a))&&(k=a,n&&f(g,n,k,m||b.name)),k},{instance:k,identifier:n})}return k=d.instantiate(b,g,m),n&&f(g,n,k,m||b.name),k}}]}function cy(){this.$get=["$window",function(a){return eP(a.document)}]}function cz(){this.$get=["$log",function(a){return function(b,c){a.error.apply(a,arguments)}}]}function cA(a){return t(a)?x(a)?a.toISOString():U(a):a}function cB(){this.$get=function(){return function a(a){if(!a)return"";var b=[];return e(a,function(a,c){if(a===null||r(a))return;e$(a)?d(a,function(a){b.push(bc(c)+"="+bc(cA(a)))}):b.push(bc(c)+"="+bc(cA(a)))}),b.join("&")}}}function cC(){this.$get=function(){return function a(a){function b(a,f,g){if(a===null||r(a))return;e$(a)?d(a,function(a,c){b(a,f+"["+(t(a)?c:"")+"]")}):t(a)&&!x(a)?e(a,function(a,c){b(a,f+(g?"":"[")+c+(g?"":"]"))}):c.push(bc(f)+"="+bc(cA(a)))}if(!a)return"";var c=[];return b(a,"",!0),c.join("&")}}}function cD(a,b){if(v(a)){var c=a.replace(gf,"").trim();if(c){var d=b("Content-Type");if(d&&d.indexOf(gb)===0||cE(c))a=V(c)}}return a}function cE(a){var b=a.match(gd);return b&&ge[b[0]].test(a)}function cF(a){function b(a,b){a&&(c[a]=c[a]?c[a]+", "+b:b)}var c=bp(),e;return v(a)?d(a.split("\n"),function(a){e=a.indexOf(":"),b(eK(fa(a.substr(0,e))),fa(a.substr(e+1)))}):t(a)&&d(a,function(a,c){b(eK(c),fa(a))}),c}function cG(a){var b;return function(c){b||(b=cF(a));if(c){var d=b[eK(c)];return d===void 0&&(d=null),d}return b}}function cH(a,b,c,e){return y(e)?e(a,b,c):(d(e,function(d){a=d(a,b,c)}),a)}function cI(a){return 200<=a&&a<300}function cJ(){var a=this.defaults={transformResponse:[cD],transformRequest:[function(a){return t(a)&&!C(a)&&!E(a)&&!D(a)?U(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:br(gc),put:br(gc),patch:br(gc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},c=!1;this.useApplyAsync=function(a){return s(a)?(c=!!a,this):c};var e=!0;this.useLegacyPromiseExtensions=function(a){return s(a)?(e=!!a,this):e};var f=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(g,h,i,k,l,m){function n(c){function f(a){var b=j({},a);return b.data=cH(a.data,a.headers,a.status,i.transformResponse),cI(a.status)?b:l.reject(b)}function g(a,b){var c,e={};return d(a,function(a,d){y(a)?(c=a(b),c!=null&&(e[d]=c)):e[d]=a}),e}function h(b){var c=a.headers,d=j({},b.headers),e,f,h;c=j({},c.common,c[eK(b.method)]);i:for(e in c){f=eK(e);for(h in d)if(eK(h)===f)continue i;d[e]=c[e]}return g(d,br(b))}if(!t(c))throw b("$http")("badreq","Http request configuration must be an object.  Received: {0}",c);if(!v(c.url))throw b("$http")("badreq","Http request configuration url must be a string.  Received: {0}",c.url);var i=j({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer},c);i.headers=h(c),i.method=eL(i.method),i.paramSerializer=v(i.paramSerializer)?m.get(i.paramSerializer):i.paramSerializer;var k=function(b){var c=b.headers,e=cH(b.data,cG(c),undefined,b.transformRequest);return r(e)&&d(c,function(a,b){eK(b)==="content-type"&&delete c[b]}),r(b.withCredentials)&&!r(a.withCredentials)&&(b.withCredentials=a.withCredentials),q(b,e).then(f,f)},n=[k,undefined],o=l.when(i);d(x,function(a){(a.request||a.requestError)&&n.unshift(a.request,a.requestError),(a.response||a.responseError)&&n.push(a.response,a.responseError)});while(n.length){var p=n.shift(),s=n.shift();o=o.then(p,s)}return e?(o.success=function(a){return bl(a,"fn"),o.then(function(b){a(b.data,b.status,b.headers,i)}),o},o.error=function(a){return bl(a,"fn"),o.then(null,function(b){a(b.data,b.status,b.headers,i)}),o}):(o.success=gh("success"),o.error=gh("error")),o}function o(a){d(arguments,function(a){n[a]=function(b,c){return n(j({},c||{},{method:a,url:b}))}})}function p(a){d(arguments,function(a){n[a]=function(b,c,d){return n(j({},d||{},{method:a,url:b,data:c}))}})}function q(b,e){function f(a){if(a){var b={};return d(a,function(a,d){b[d]=function(b){function d(){a(b)}c?k.$applyAsync(d):k.$$phase?d():k.$apply(d)}}),b}}function i(a,b,d,e){function f(){j(b,a,d,e)}v&&(cI(a)?v.put(z,[a,b,cF(d),e]):v.remove(z)),c?k.$applyAsync(f):(f(),k.$$phase||k.$apply())}function j(a,c,d,e){c=c>=-1?c:0,(cI(c)?p.resolve:p.reject)({data:a,status:c,headers:cG(d),config:b,statusText:e})}function m(a){j(a.data,a.status,br(a.headers()),a.statusText)}function o(){var a=n.pendingRequests.indexOf(b);a!==-1&&n.pendingRequests.splice(a,1)}var p=l.defer(),q=p.promise,v,x,y=b.headers,z=u(b.url,b.paramSerializer(b.params));n.pendingRequests.push(b),q.then(o,o),(b.cache||a.cache)&&b.cache!==!1&&(b.method==="GET"||b.method==="JSONP")&&(v=t(b.cache)?b.cache:t(a.cache)?a.cache:w),v&&(x=v.get(z),s(x)?G(x)?x.then(m,m):e$(x)?j(x[1],x[0],br(x[2]),x[3]):j(x,200,{},"OK"):v.put(z,q));if(r(x)){var A=dM(b.url)?h()[b.xsrfCookieName||a.xsrfCookieName]:undefined;A&&(y[b.xsrfHeaderName||a.xsrfHeaderName]=A),g(b.method,z,e,i,y,b.timeout,b.withCredentials,b.responseType,f(b.eventHandlers),f(b.uploadEventHandlers))}return q}function u(a,b){return b.length>0&&(a+=(a.indexOf("?")==-1?"?":"&")+b),a}var w=i("$http");a.paramSerializer=v(a.paramSerializer)?m.get(a.paramSerializer):a.paramSerializer;var x=[];return d(f,function(a){x.unshift(v(a)?m.get(a):m.invoke(a))}),n.pendingRequests=[],o("get","delete","head","jsonp"),p("post","put","patch"),n.defaults=a,n}]}function cK(){this.$get=function(){return function(){return new a.XMLHttpRequest}}}function cL(){this.$get=["$browser","$window","$document","$xhrFactory",function(a,b,c,d){return cM(a,d,a.defer,b.angular.callbacks,c[0])}]}function cM(a,b,c,e,f){function g(a,b,c){var d=f.createElement("script"),g=null;return d.type="text/javascript",d.src=a,d.async=!0,g=function(a){fs(d,"load",g),fs(d,"error",g),f.body.removeChild(d),d=null;var h=-1,i="unknown";a&&(a.type==="load"&&!e[b].called&&(a={type:"error"}),i=a.type,h=a.type==="error"?404:200),c&&c(h,i)},fr(d,"load",g),fr(d,"error",g),f.body.appendChild(d),g}return function(f,h,i,j,k,l,m,o,p,q){function t(){w&&w(),x&&x.abort()}function u(b,d,e,f,g){s(A)&&c.cancel(A),w=x=null,b(d,e,f,g),a.$$completeOutstandingRequest(n)}a.$$incOutstandingRequestCount(),h=h||a.url();if(eK(f)=="jsonp"){var v="_"+(e.counter++).toString(36);e[v]=function(a){e[v].data=a,e[v].called=!0};var w=g(h.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(a,b){u(j,a,e[v].data,"",b),e[v]=n})}else{var x=b(f,h);x.open(f,h,!0),d(k,function(a,b){s(a)&&x.setRequestHeader(b,a)}),x.onload=function(){var a=x.statusText||"",b="response"in x?x.response:x.responseText,c=x.status===1223?204:x.status;c===0&&(c=b?200:dL(h).protocol=="file"?404:0),u(j,c,b,x.getAllResponseHeaders(),a)};var y=function(){u(j,-1,null,null,"")};x.onerror=y,x.onabort=y,d(p,function(a,b){x.addEventListener(b,a)}),d(q,function(a,b){x.upload.addEventListener(b,a)}),m&&(x.withCredentials=!0);if(o)try{x.responseType=o}catch(z){if(o!=="json")throw z}x.send(r(i)?null:i)}if(l>0)var A=c(t,l);else G(l)&&l.then(t)}}function cN(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a},this.endSymbol=function(a){return a?(b=a,this):b},this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(n,a).replace(o,b)}function h(a){if(a==null)return"";switch(typeof a){case"string":break;case"number":a=""+a;break;default:a=U(a)}return a}function i(a,b,c,d){var e;return e=a.$watch(function(a){return e(),d(a)},b,c)}function k(f,k,n,o){function q(a){try{return a=G(a),o&&!s(a)?a:h(a)}catch(b){d(gi.interr(f,b))}}if(!f.length||f.indexOf(a)===-1){var t;if(!k){var u=g(f);t=p(u),t.exp=f,t.expressions=[],t.$$watchDelegate=i}return t}o=!!o;var v,w,x=0,z=[],A=[],B=f.length,C,D=[],E=[];while(x<B)if((v=f.indexOf(a,x))!=-1&&(w=f.indexOf(b,v+l))!=-1)x!==v&&D.push(g(f.substring(x,v))),C=f.substring(v+l,w),z.push(C),A.push(c(C,q)),x=w+m,E.push(D.length),D.push("");else{x!==B&&D.push(g(f.substring(x)));break}n&&D.length>1&&gi.throwNoconcat(f);if(!k||z.length){var F=function(a){for(var b=0,c=z.length;b<c;b++){if(o&&r(a[b]))return;D[E[b]]=a[b]}return D.join("")},G=function(a){return n?e.getTrusted(n,a):e.valueOf(a)};return j(function(a){var b=0,c=z.length,e=new Array(c);try{for(;b<c;b++)e[b]=A[b](a);return F(e)}catch(g){d(gi.interr(f,g))}},{exp:f,expressions:z,$$watchDelegate:function(a,b){var c;return a.$watchGroup(A,function d(d,e){var f=F(d);y(b)&&b.call(this,f,d!==e?c:f,a),c=f})}})}}var l=a.length,m=b.length,n=new RegExp(a.replace(/./g,f),"g"),o=new RegExp(b.replace(/./g,f),"g");return k.startSymbol=function(){return a},k.endSymbol=function(){return b},k}]}function cO(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(a,b,c,d,e){function f(f,h,i,j){function k(){l?f.apply(null,m):f(p)}var l=arguments.length>4,m=l?R(arguments,4):[],n=b.setInterval,o=b.clearInterval,p=0,q=s(j)&&!j,r=(q?d:c).defer(),t=r.promise;return i=s(i)?i:0,t.$$intervalId=n(function(){q?e.defer(k):a.$evalAsync(k),r.notify(p++),i>0&&p>=i&&(r.resolve(p),o(t.$$intervalId),delete g[t.$$intervalId]),q||a.$apply()},h),g[t.$$intervalId]=r,t}var g={};return f.cancel=function(a){return a&&a.$$intervalId in g?(g[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete g[a.$$intervalId],!0):!1},f}]}function cP(a){var b=a.split("/"),c=b.length;while(c--)b[c]=bb(b[c]);return b.join("/")}function cQ(a,b){var c=dL(a);b.$$protocol=c.protocol,b.$$host=c.hostname,b.$$port=l(c.port)||gk[c.protocol]||null}function cR(a,b){var c=a.charAt(0)!=="/";c&&(a="/"+a);var d=dL(a);b.$$path=decodeURIComponent(c&&d.pathname.charAt(0)==="/"?d.pathname.substring(1):d.pathname),b.$$search=_(d.search),b.$$hash=decodeURIComponent(d.hash),b.$$path&&b.$$path.charAt(0)!="/"&&(b.$$path="/"+b.$$path)}function cS(a,b){return a.lastIndexOf(b,0)===0}function cT(a,b){if(cS(b,a))return b.substr(a.length)}function cU(a){var b=a.indexOf("#");return b==-1?a:a.substr(0,b)}function cV(a){return a.replace(/(#.+)|#$/,"$1")}function cW(a){return a.substr(0,cU(a).lastIndexOf("/")+1)}function cX(a){return a.substring(0,a.indexOf("/",a.indexOf("//")+2))}function cY(a,b,c){this.$$html5=!0,c=c||"",cQ(a,this),this.$$parse=function(a){var c=cT(b,a);if(!v(c))throw gl("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',a,b);cR(c,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var a=ba(this.$$search),c=this.$$hash?"#"+bb(this.$$hash):"";this.$$url=cP(this.$$path)+(a?"?"+a:"")+c,this.$$absUrl=b+this.$$url.substr(1)},this.$$parseLinkUrl=function(d,e){if(e&&e[0]==="#")return this.hash(e.slice(1)),!0;var f,g,h;return s(f=cT(a,d))?(g=f,s(f=cT(c,f))?h=b+(cT("/",f)||f):h=a+g):s(f=cT(b,d))?h=b+f:b==d+"/"&&(h=b),h&&this.$$parse(h),!!h}}function cZ(a,b,c){cQ(a,this),this.$$parse=function(d){function e(a,b,c){var d=/^\/[A-Z]:(\/.*)/,e;return cS(b,c)&&(b=b.replace(c,"")),d.exec(b)?a:(e=d.exec(a),e?e[1]:a)}var f=cT(a,d)||cT(b,d),g;!r(f)&&f.charAt(0)==="#"?(g=cT(c,f),r(g)&&(g=f)):this.$$html5?g=f:(g="",r(f)&&(a=d,this.replace())),cR(g,this),this.$$path=e(this.$$path,g,a),this.$$compose()},this.$$compose=function(){var b=ba(this.$$search),d=this.$$hash?"#"+bb(this.$$hash):"";this.$$url=cP(this.$$path)+(b?"?"+b:"")+d,this.$$absUrl=a+(this.$$url?c+this.$$url:"")},this.$$parseLinkUrl=function(b,c){return cU(a)==cU(b)?(this.$$parse(b),!0):!1}}function c$(a,b,c){this.$$html5=!0,cZ.apply(this,arguments),this.$$parseLinkUrl=function(d,e){if(e&&e[0]==="#")return this.hash(e.slice(1)),!0;var f,g;return a==cU(d)?f=d:(g=cT(b,d))?f=a+c+g:b===d+"/"&&(f=b),f&&this.$$parse(f),!!f},this.$$compose=function(){var b=ba(this.$$search),d=this.$$hash?"#"+bb(this.$$hash):"";this.$$url=cP(this.$$path)+(b?"?"+b:"")+d,this.$$absUrl=a+c+this.$$url}}function c_(a){return function(){return this[a]}}function da(a,b){return function(c){return r(c)?this[a]:(this[a]=b(c),this.$$compose(),this)}}function db(){var a="",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return s(b)?(a=b,this):a},this.html5Mode=function(a){return F(a)?(b.enabled=a,this):t(a)?(F(a.enabled)&&(b.enabled=a.enabled),F(a.requireBase)&&(b.requireBase=a.requireBase),F(a.rewriteLinks)&&(b.rewriteLinks=a.rewriteLinks),this):b},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(c,d,e,f,g){function h(a,b,c){var e=j.url(),f=j.$$state;try{d.url(a,b,c),j.$$state=d.state()}catch(g){throw j.url(e),j.$$state=f,g}}function i(a,b){c.$broadcast("$locationChangeSuccess",j.absUrl(),a,j.$$state,b)}var j,k,l=d.baseHref(),m=d.url(),n;if(b.enabled){if(!l&&b.requireBase)throw gl("nobase","$location in HTML5 mode requires a <base> tag to be present!");n=cX(m)+(l||"/"),k=e.history?cY:c$}else n=cU(m),k=cZ;var o=cW(n);j=new k(n,o,"#"+a),j.$$parseLinkUrl(m,m),j.$$state=d.state();var p=/^\s*(javascript|mailto):/i;f.on("click",function(a){if(!b.rewriteLinks||a.ctrlKey||a.metaKey||a.shiftKey||a.which==2||a.button==2)return;var e=eP(a.target);while(L(e[0])!=="a")if(e[0]===f[0]||!(e=e.parent())[0])return;var h=e.prop("href"),i=e.attr("href")||e.attr("xlink:href");t(h)&&h.toString()==="[object SVGAnimatedString]"&&(h=dL(h.animVal).href);if(p.test(h))return;h&&!e.attr("target")&&!a.isDefaultPrevented()&&j.$$parseLinkUrl(h,i)&&(a.preventDefault(),j.absUrl()!=d.url()&&(c.$apply(),g.angular["ff-684208-preventDefault"]=!0))}),cV(j.absUrl())!=cV(m)&&d.url(j.absUrl(),!0);var q=!0;return d.onUrlChange(function(a,b){if(r(cT(o,a))){g.location.href=a;return}c.$evalAsync(function(){var d=j.absUrl(),e=j.$$state,f;a=cV(a),j.$$parse(a),j.$$state=b,f=c.$broadcast("$locationChangeStart",a,d,b,e).defaultPrevented;if(j.absUrl()!==a)return;f?(j.$$parse(d),j.$$state=e,h(d,!1,e)):(q=!1,i(d,e))}),c.$$phase||c.$digest()}),c.$watch(function(){var a=cV(d.url()),b=cV(j.absUrl()),f=d.state(),g=j.$$replace,k=a!==b||j.$$html5&&e.history&&f!==j.$$state;if(q||k)q=!1,c.$evalAsync(function(){var b=j.absUrl(),d=c.$broadcast("$locationChangeStart",b,a,j.$$state,f).defaultPrevented;if(j.absUrl()!==b)return;d?(j.$$parse(a),j.$$state=f):(k&&h(b,g,f===j.$$state?null:j.$$state),i(a,f))});j.$$replace=!1}),j}]}function dc(){var a=!0,b=this;this.debugEnabled=function(b){return s(b)?(a=b,this):a},this.$get=["$window",function(c){function e(a){return a instanceof Error&&(a.stack?a=a.message&&a.stack.indexOf(a.message)===-1?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line)),a}function f(a){var b=c.console||{},f=b[a]||b.log||n,g=!1;try{g=!!f.apply}catch(h){}return g?function(){var a=[];return d(arguments,function(b){a.push(e(b))}),f.apply(b,a)}:function(a,b){f(a,b==null?"":b)}}return{log:f("log"),info:f("info"),warn:f("warn"),error:f("error"),debug:function(){var c=f("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function dd(a,b){if(a==="__defineGetter__"||a==="__defineSetter__"||a==="__lookupGetter__"||a==="__lookupSetter__"||a==="__proto__")throw gn("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",b);return a}function de(a){return a+""}function df(a,b){if(a){if(a.constructor===a)throw gn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a.window===a)throw gn("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",b);if(a.children&&(a.nodeName||a.prop&&a.attr&&a.find))throw gn("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",b);if(a===Object)throw gn("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",b)}return a}function dg(a,b){if(a){if(a.constructor===a)throw gn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",b);if(a===go||a===gp||a===gq)throw gn("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",b)}}function dh(a,b){if(a)if(a===0..constructor||a===(!1).constructor||a==="".constructor||a==={}.constructor||a===[].constructor||a===Function.constructor)throw gn("isecaf","Assigning to a constructor is disallowed! Expression: {0}",b)}function di(a,b){return typeof a!="undefined"?a:b}function dj(a,b){return typeof a=="undefined"?b:typeof b=="undefined"?a:a+b}function dk(a,b){var c=a(b);return!c.$stateful}function dl(a,b){var c,e;switch(a.type){case gu.Program:c=!0,d(a.body,function(a){dl(a.expression,b),c=c&&a.expression.constant}),a.constant=c;break;case gu.Literal:a.constant=!0,a.toWatch=[];break;case gu.UnaryExpression:dl(a.argument,b),a.constant=a.argument.constant,a.toWatch=a.argument.toWatch;break;case gu.BinaryExpression:dl(a.left,b),dl(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case gu.LogicalExpression:dl(a.left,b),dl(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=a.constant?[]:[a];break;case gu.ConditionalExpression:dl(a.test,b),dl(a.alternate,b),dl(a.consequent,b),a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant,a.toWatch=a.constant?[]:[a];break;case gu.Identifier:a.constant=!1,a.toWatch=[a];break;case gu.MemberExpression:dl(a.object,b),a.computed&&dl(a.property,b),a.constant=a.object.constant&&(!a.computed||a.property.constant),a.toWatch=[a];break;case gu.CallExpression:c=a.filter?dk(b,a.callee.name):!1,e=[],d(a.arguments,function(a){dl(a,b),c=c&&a.constant,a.constant||e.push.apply(e,a.toWatch)}),a.constant=c,a.toWatch=a.filter&&dk(b,a.callee.name)?e:[a];break;case gu.AssignmentExpression:dl(a.left,b),dl(a.right,b),a.constant=a.left.constant&&a.right.constant,a.toWatch=[a];break;case gu.ArrayExpression:c=!0,e=[],d(a.elements,function(a){dl(a,b),c=c&&a.constant,a.constant||e.push.apply(e,a.toWatch)}),a.constant=c,a.toWatch=e;break;case gu.ObjectExpression:c=!0,e=[],d(a.properties,function(a){dl(a.value,b),c=c&&a.value.constant&&!a.computed,a.value.constant||e.push.apply(e,a.value.toWatch)}),a.constant=c,a.toWatch=e;break;case gu.ThisExpression:a.constant=!1,a.toWatch=[];break;case gu.LocalsExpression:a.constant=!1,a.toWatch=[]}}function dm(a){if(a.length!=1)return;var b=a[0].expression,c=b.toWatch;return c.length!==1?c:c[0]!==b?c:undefined}function dn(a){return a.type===gu.Identifier||a.type===gu.MemberExpression}function dp(a){if(a.body.length===1&&dn(a.body[0].expression))return{type:gu.AssignmentExpression,left:a.body[0].expression,right:{type:gu.NGValueParameter},operator:"="}}function dq(a){return a.body.length===0||a.body.length===1&&(a.body[0].expression.type===gu.Literal||a.body[0].expression.type===gu.ArrayExpression||a.body[0].expression.type===gu.ObjectExpression)}function dr(a){return a.constant}function ds(a,b){this.astBuilder=a,this.$filter=b}function dt(a,b){this.astBuilder=a,this.$filter=b}function du(a){return a=="constructor"}function dv(a){return y(a.valueOf)?a.valueOf():gw.call(a)}function dw(){var a=bp(),b=bp(),c={"true":!0,"false":!1,"null":null,"undefined":undefined},e,f;this.addLiteral=function(a,b){c[a]=b},this.setIdentifierFns=function(a,b){return e=a,f=b,this},this.$get=["$filter",function(g){function h(c,d,e){var f,h,j;e=e||u;switch(typeof c){case"string":c=c.trim(),j=c;var q=e?b:a;f=q[j];if(!f){c.charAt(0)===":"&&c.charAt(1)===":"&&(h=!0,c=c.substring(2));var s=e?t:r,v=new gt(s),w=new gv(v,g,s);f=w.parse(c),f.constant?f.$$watchDelegate=o:h?f.$$watchDelegate=f.literal?m:l:f.inputs&&(f.$$watchDelegate=k),e&&(f=i(f)),q[j]=f}return p(f,d);case"function":return p(c,d);default:return p(n,d)}}function i(a){function b(b,c,d,e){var f=u;u=!0;try{return a(b,c,d,e)}finally{u=f}}if(!a)return a;b.$$watchDelegate=a.$$watchDelegate,b.assign=i(a.assign),b.constant=a.constant,b.literal=a.literal;for(var c=0;a.inputs&&c<a.inputs.length;++c)a.inputs[c]=i(a.inputs[c]);return b.inputs=a.inputs,b}function j(a,b){if(a==null||b==null)return a===b;if(typeof a=="object"){a=dv(a);if(typeof a=="object")return!1}return a===b||a!==a&&b!==b}function k(a,b,c,d,e){var f=d.inputs,g;if(f.length===1){var h=j;return f=f[0],a.$watch(function(a){var b=f(a);return j(b,h)||(g=d(a,undefined,undefined,[b]),h=b&&dv(b)),g},b,c,e)}var i=[],k=[];for(var l=0,m=f.length;l<m;l++)i[l]=j,k[l]=null;return a.$watch(function(a){var b=!1;for(var c=0,e=f.length;c<e;c++){var h=f[c](a);if(b||(b=!j(h,i[c])))k[c]=h,i[c]=h&&dv(h)}return b&&(g=d(a,undefined,undefined,k)),g},b,c,e)}function l(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a,y(b)&&b.apply(this,arguments),s(a)&&d.$$postDigest(function(){s(f)&&e()})},c)}function m(a,b,c,e){function f(a){var b=!0;return d(a,function(a){s(a)||(b=!1)}),b}var g,h;return g=a.$watch(function(a){return e(a)},function(a,c,d){h=a,y(b)&&b.call(this,a,c,d),f(a)&&d.$$postDigest(function(){f(h)&&g()})},c)}function o(a,b,c,d){var e;return e=a.$watch(function(a){return e(),d(a)},b,c)}function p(a,b){if(!b)return a;var c=a.$$watchDelegate,d=!1,e=c!==m&&c!==l,f=e?function g(c,e,f,g){var h=d&&g?g[0]:a(c,e,f,g);return b(h,c,e)}:function h(c,d,e,f){var g=a(c,d,e,f),h=b(g,c,d);return s(g)?h:g};return a.$$watchDelegate&&a.$$watchDelegate!==k?f.$$watchDelegate=a.$$watchDelegate:b.$stateful||(f.$$watchDelegate=k,d=!a.inputs,f.inputs=a.inputs?a.inputs:[a]),f}var q=fc().noUnsafeEval,r={csp:q,expensiveChecks:!1,literals:O(c),isIdentifierStart:y(e)&&e,isIdentifierContinue:y(f)&&f},t={csp:q,expensiveChecks:!0,literals:O(c),isIdentifierStart:y(e)&&e,isIdentifierContinue:y(f)&&f},u=!1;return h.$$runningExpensiveChecks=function(){return u},h}]}function dx(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return dz(function(b){a.$evalAsync(b)},b)}]}function dy(){this.$get=["$browser","$exceptionHandler",function(a,b){return dz(function(b){a.defer(b)},b)}]}function dz(a,c){function e(){this.$$state={status:0}}function f(a,b){return function(c){b.call(a,c)}}function g(a){var b,d,e;e=a.pending,a.processScheduled=!1,a.pending=undefined;for(var f=0,g=e.length;f<g;++f){d=e[f][0],b=e[f][a.status];try{y(b)?d.resolve(b(a.value)):a.status===1?d.resolve(a.value):d.reject(a.value)}catch(h){d.reject(h),c(h)}}}function h(b){if(b.processScheduled||!b.pending)return;b.processScheduled=!0,a(function(){g(b)})}function i(){this.promise=new e}function k(a){var b=new i,c=0,e=e$(a)?[]:{};return d(a,function(a,d){c++,q(a).then(function(a){if(e.hasOwnProperty(d))return;e[d]=a,--c||b.resolve(e)},function(a){if(e.hasOwnProperty(d))return;b.reject(a)})}),c===0&&b.resolve(e),b.promise}var l=b("$q",TypeError),m=function(){var a=new i;return a.resolve=f(a,a.resolve),a.reject=f(a,a.reject),a.notify=f(a,a.notify),a};j(e.prototype,{then:function(a,b,c){if(r(a)&&r(b)&&r(c))return this;var d=new i;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([d,a,b,c]),this.$$state.status>0&&h(this.$$state),d.promise},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return p(b,!0,a)},function(b){return p(b,!1,a)},b)}}),j(i.prototype,{resolve:function(a){if(this.promise.$$state.status)return;a===this.promise?this.$$reject(l("qcycle","Expected promise to be resolved with value other than itself '{0}'",a)):this.$$resolve(a)},$$resolve:function(a){function b(a){if(i)return;i=!0,g.$$resolve(a)}function d(a){if(i)return;i=!0,g.$$reject(a)}var e,g=this,i=!1;try{if(t(a)||y(a))e=a&&a.then;y(e)?(this.promise.$$state.status=-1,e.call(a,b,d,f(this,this.notify))):(this.promise.$$state.value=a,this.promise.$$state.status=1,h(this.promise.$$state))}catch(j){d(j),c(j)}},reject:function(a){if(this.promise.$$state.status)return;this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a,this.promise.$$state.status=2,h(this.promise.$$state)},notify:function(b){var d=this.promise.$$state.pending;this.promise.$$state.status<=0&&d&&d.length&&a(function(){var a,e;for(var f=0,g=d.length;f<g;f++){e=d[f][0],a=d[f][3];try{e.notify(y(a)?a(b):b)}catch(h){c(h)}}})}});var n=function(a){var b=new i;return b.reject(a),b.promise},o=function(a,b){var c=new i;return b?c.resolve(a):c.reject(a),c.promise},p=function(a,b,c){var d=null;try{y(c)&&(d=c())}catch(e){return o(e,!1)}return G(d)?d.then(function(){return o(a,b)},function(a){return o(a,!1)}):o(a,b)},q=function(a,b,c,d){var e=new i;return e.resolve(a),e.promise.then(b,c,d)},s=q,u=function(a){function b(a){d.resolve(a)}function c(a){d.reject(a)}if(!y(a))throw l("norslvr","Expected resolverFn, got '{0}'",a);var d=new i;return a(b,c),d.promise};return u.prototype=e.prototype,u.defer=m,u.reject=n,u.when=q,u.resolve=s,u.all=k,u}function dA(){this.$get=["$window","$timeout",function(a,b){var c=a.requestAnimationFrame||a.webkitRequestAnimationFrame,d=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!c,f=e?function(a){var b=c(a);return function(){d(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};return f.supported=e,f}]}function dB(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=g(),this.$$ChildScope=null}return b.prototype=a,b}var e=10,f=b("$rootScope"),h=null,i=null;this.digestTtl=function(a){return arguments.length&&(e=a),e},this.$get=["$exceptionHandler","$parse","$browser",function(b,j,k){function l(a){a.currentScope.$$destroyed=!0}function m(a){eO===9&&(a.$$childHead&&m(a.$$childHead),a.$$nextSibling&&m(a.$$nextSibling)),a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function o(){this.$id=g(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(a){if(z.$$phase)throw f("inprog","{0} already in progress",z.$$phase);z.$$phase=a}function q(){z.$$phase=null}function s(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function u(a,b,c){do a.$$listenerCount[c]-=b,a.$$listenerCount[c]===0&&delete a.$$listenerCount[c];while(a=a.$parent)}function v(){}function w(){while(C.length)try{C.shift()()}catch(a){b(a)}i=null}function x(){i===null&&(i=k.defer(function(){z.$apply(w)}))}o.prototype={constructor:o,$new:function(b,c){var d;return c=c||this,b?(d=new o,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope),d.$parent=c,d.$$prevSibling=c.$$childTail,c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d,(b||c!=this)&&d.$on("$destroy",l),d},$watch:function(a,b,c,d){var e=j(a);if(e.$$watchDelegate)return e.$$watchDelegate(this,b,c,e,a);var f=this,g=f.$$watchers,i={fn:b,last:v,get:e,exp:d||a,eq:!!c};return h=null,y(b)||(i.fn=n),g||(g=f.$$watchers=[]),g.unshift(i),s(this,1),function(){N(g,i)>=0&&s(f,-1),h=null}},$watchGroup:function(a,b){function c(){i=!1,j?(j=!1,b(f,f,h)):b(f,e,h)}var e=new Array(a.length),f=new Array(a.length),g=[],h=this,i=!1,j=!0;if(!a.length){var k=!0;return h.$evalAsync(function(){k&&b(f,f,h)}),function(){k=!1}}return a.length===1?this.$watch(a[0],function(a,c,d){f[0]=a,e[0]=c,b(f,a===c?f:e,d)}):(d(a,function(a,b){var d=h.$watch(a,function(a,d){f[b]=a,e[b]=d,i||(i=!0,h.$evalAsync(c))});g.push(d)}),function(){while(g.length)g.shift()()})},$watchCollection:function(a,b){function d(a){g=a;var b,d,e,f,i;if(r(g))return;if(!t(g))h!==g&&(h=g,l++);else if(c(g)){h!==n&&(h=n,q=h.length=0,l++),b=g.length,q!==b&&(l++,h.length=q=b);for(var j=0;j<b;j++)i=h[j],f=g[j],e=i!==i&&f!==f,!e&&i!==f&&(l++,h[j]=f)}else{h!==o&&(h=o={},q=0,l++),b=0;for(d in g)eJ.call(g,d)&&(b++,f=g[d],i=h[d],d in h?(e=i!==i&&f!==f,!e&&i!==f&&(l++,h[d]=f)):(q++,h[d]=f,l++));if(q>b){l++;for(d in h)eJ.call(g,d)||(q--,delete h[d])}}return l}function e(){p?(p=!1,b(g,g,f)):b(g,i,f);if(k)if(!t(g))i=g;else if(c(g)){i=new Array(g.length);for(var a=0;a<g.length;a++)i[a]=g[a]}else{i={};for(var d in g)eJ.call(g,d)&&(i[d]=g[d])}}d.$stateful=!0;var f=this,g,h,i,k=b.length>1,l=0,m=j(a,d),n=[],o={},p=!0,q=0;return this.$watch(m,e)},$digest:function(){var a,c,d,g,j,l,m,n,o=e,r,s,t=this,u=[],x,C;p("$digest"),k.$$checkUrlChange(),this===z&&i!==null&&(k.defer.cancel(i),w()),h=null;do{n=!1,s=t;for(var E=0;E<A.length;E++){try{C=A[E],C.scope.$eval(C.expression,C.locals)}catch(F){b(F)}h=null}A.length=0;G:do{if(l=s.$$watchers){m=l.length;while(m--)try{a=l[m];if(a){j=a.get;if((c=j(s))!==(d=a.last)&&!(a.eq?P(c,d):typeof c=="number"&&typeof d=="number"&&isNaN(c)&&isNaN(d)))n=!0,h=a,a.last=a.eq?O(c,null):c,g=a.fn,g(c,d===v?c:d,s),o<5&&(x=4-o,u[x]||(u[x]=[]),u[x].push({msg:y(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:c,oldVal:d}));else if(a===h){n=!1;break G}}}catch(F){b(F)}}if(!(r=s.$$watchersCount&&s.$$childHead||s!==t&&s.$$nextSibling))while(s!==t&&!(r=s.$$nextSibling))s=s.$parent}while(s=r);if((n||A.length)&&!(o--))throw q(),f("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,u)}while(n||A.length);q();while(D<B.length)try{B[D++]()}catch(F){b(F)}B.length=D=0},$destroy:function(){if(this.$$destroyed)return;var a=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===z&&k.$$applicationDestroyed(),s(this,-this.$$watchersCount);for(var b in this.$$listenerCount)u(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead=this.$$nextSibling),a&&a.$$childTail==this&&(a.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=n,this.$on=this.$watch=this.$watchGroup=function(){return n},this.$$listeners={},this.$$nextSibling=null,m(this)},$eval:function(a,b){return j(a)(this,b)},$evalAsync:function(a,b){!z.$$phase&&!A.length&&k.defer(function(){A.length&&z.$digest()}),A.push({scope:this,expression:j(a),locals:b})},$$postDigest:function(a){B.push(a)},$apply:function(a){try{p("$apply");try{return this.$eval(a)}finally{q()}}catch(c){b(c)}finally{try{z.$digest()}catch(c){throw b(c),c}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&C.push(b),a=j(a),x()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]),c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);d!==-1&&(c[d]=null,u(e,1,a))}},$emit:function(a,c){var d=[],e,f=this,g=!1,h={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},i=Q([h],arguments,1),j,k;do{e=f.$$listeners[a]||d,h.currentScope=f;for(j=0,k=e.length;j<k;j++){if(!e[j]){e.splice(j,1),j--,k--;continue}try{e[j].apply(null,i)}catch(l){b(l)}}if(g)return h.currentScope=null,h;f=f.$parent}while(f);return h.currentScope=null,h},$broadcast:function(a,c){var d=this,e=d,f=d,g={name:a,targetScope:d,preventDefault:function(){g.defaultPrevented=!0},defaultPrevented:!1};if(!d.$$listenerCount[a])return g;var h=Q([g],arguments,1),i,j,k;while(e=f){g.currentScope=e,i=e.$$listeners[a]||[];for(j=0,k=i.length;j<k;j++){if(!i[j]){i.splice(j,1),j--,k--;continue}try{i[j].apply(null,h)}catch(l){b(l)}}if(!(f=e.$$listenerCount[a]&&e.$$childHead||e!==d&&e.$$nextSibling))while(e!==d&&!(f=e.$$nextSibling))e=e.$parent}return g.currentScope=null,g}};var z=new o,A=z.$$asyncQueue=[],B=z.$$postDigestQueue=[],C=z.$$applyAsyncQueue=[],D=0;return z}]}function dC(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return s(b)?(a=b,this):a},this.imgSrcSanitizationWhitelist=function(a){return s(a)?(b=a,this):b},this.$get=function(){return function c(c,d){var e=d?b:a,f;return f=dL(c).href,f!==""&&!f.match(e)?"unsafe:"+f:c}}}function dD(a){if(a==="self")return a;if(v(a)){if(a.indexOf("***")>-1)throw gx("iwcard","Illegal sequence *** in string matcher.  String: {0}",a);return a=fb(a).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+a+"$")}if(z(a))return new RegExp("^"+a.source+"$");throw gx("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function dE(a){var b=[];return s(a)&&d(a,function(a){b.push(dD(a))}),b}function dF(){this.SCE_CONTEXTS=gy;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){return arguments.length&&(a=dE(b)),a},this.resourceUrlBlacklist=function(a){return arguments.length&&(b=dE(a)),b},this.$get=["$injector",function(c){function d(a,b){return a==="self"?dM(b):!!a.exec(b.href)}function e(c){var e=dL(c.toString()),f,g,h=!1;for(f=0,g=a.length;f<g;f++)if(d(a[f],e)){h=!0;break}if(h)for(f=0,g=b.length;f<g;f++)if(d(b[f],e)){h=!1;break}return h}function f(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};return a&&(b.prototype=new a),b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},b}function g(a,b){var c=l.hasOwnProperty(a)?l[a]:null;if(!c)throw gx("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",a,b);if(b===null||r(b)||b==="")return b;if(typeof b!="string")throw gx("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",a);return new c(b)}function h(a){return a instanceof k?a.$$unwrapTrustedValue():a}function i(a,b){if(b===null||r(b)||b==="")return b;var c=l.hasOwnProperty(a)?l[a]:null;if(c&&b instanceof c)return b.$$unwrapTrustedValue();if(a===gy.RESOURCE_URL){if(e(b))return b;throw gx("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",b.toString())}if(a===gy.HTML)return j(b);throw gx("unsafe","Attempting to use an unsafe value in a safe context.")}var j=function(a){throw gx("unsafe","Attempting to use an unsafe value in a safe context.")};c.has("$sanitize")&&(j=c.get("$sanitize"));var k=f(),l={};return l[gy.HTML]=f(k),l[gy.CSS]=f(k),l[gy.URL]=f(k),l[gy.JS]=f(k),l[gy.RESOURCE_URL]=f(l[gy.URL]),{trustAs:g,getTrusted:i,valueOf:h}}]}function dG(){var a=!0;this.enabled=function(b){return arguments.length&&(a=!!b),a},this.$get=["$parse","$sceDelegate",function(b,c){if(a&&eO<8)throw gx("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var e=br(gy);e.isEnabled=function(){return a},e.trustAs=c.trustAs,e.getTrusted=c.getTrusted,e.valueOf=c.valueOf,a||(e.trustAs=e.getTrusted=function(a,b){return b},e.valueOf=o),e.parseAs=function(a,c){var d=b(c);return d.literal&&d.constant?d:b(c,function(b){return e.getTrusted(a,b)})};var f=e.parseAs,g=e.getTrusted,h=e.trustAs;return d(gy,function(a,b){var c=eK(b);e[bw("parse_as_"+c)]=function(b){return f(a,b)},e[bw("get_trusted_"+c)]=function(b){return g(a,b)},e[bw("trust_as_"+c)]=function(b){return h(a,b)}}),e}]}function dH(){this.$get=["$window","$document",function(a,b){var c={},d=a.chrome&&a.chrome.app&&a.chrome.app.runtime,e=!d&&a.history&&a.history.pushState,f=l((/android (\d+)/.exec(eK((a.navigator||{}).userAgent))||[])[1]),g=/Boxee/i.test((a.navigator||{}).userAgent),h=b[0]||{},i,j=/^(Moz|webkit|ms)(?=[A-Z])/,k=h.body&&h.body.style,m=!1,n=!1,o;if(k){for(var p in k)if(o=j.exec(p)){i=o[0],i=i[0].toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in k&&"webkit"),m="transition"in k||i+"Transition"in k,n="animation"in k||i+"Animation"in k,f&&(!m||!n)&&(m=v(k.webkitTransition),n=v(k.webkitAnimation))}return{history:!(!e||f<4)&&!g,hasEvent:function(a){if(a==="input"&&eO<=11)return!1;if(r(c[a])){var b=h.createElement("div");c[a]="on"+a in b}return c[a]},csp:fc(),vendorPrefix:i,transitions:m,animations:n,android:f}}]}function dI(){var a;this.httpOptions=function(b){return b?(a=b,this):a},this.$get=["$templateCache","$http","$q","$sce",function(b,c,d,e){function f(g,h){function i(a){if(!h)throw gz("tpload","Failed to load template: {0} (HTTP status: {1} {2})",g,a.status,a.statusText);return d.reject(a)}f.totalPendingRequests++;if(!v(g)||r(b.get(g)))g=e.getTrustedResourceUrl(g);var k=c.defaults&&c.defaults.transformResponse;return e$(k)?k=k.filter(function(a){return a!==cD}):k===cD&&(k=null),c.get(g,j({cache:b,transformResponse:k},a))["finally"](function(){f.totalPendingRequests--}).then(function(a){return b.put(g,a.data),a.data},i)}return f.totalPendingRequests=0,f}]}function dJ(){this.$get=["$rootScope","$browser","$location",function(a,b,c){var e={};return e.findBindings=function(a,b,c){var e=a.getElementsByClassName("ng-binding"),f=[];return d(e,function(a){var e=eX.element(a).data("$binding");e&&d(e,function(d){if(c){var e=new RegExp("(^|\\s)"+fb(b)+"(\\s|\\||$)");e.test(d)&&f.push(a)}else d.indexOf(b)!=-1&&f.push(a)})}),f},e.findModels=function(a,b,c){var d=["ng-","data-ng-","ng\\:"];for(var e=0;e<d.length;++e){var f=c?"=":"*=",g="["+d[e]+"model"+f+'"'+b+'"]',h=a.querySelectorAll(g);if(h.length)return h}},e.getLocation=function(){return c.url()},e.setLocation=function(b){b!==c.url()&&(c.url(b),a.$digest())},e.whenStable=function(a){b.notifyWhenNoOutstandingRequests(a)},e}]}function dK(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,c,d,e){function f(f,h,i){y(f)||(i=h,h=f,f=n);var j=R(arguments,3),k=s(i)&&!i,l=(k?d:c).defer(),m=l.promise,o;return o=b.defer(function(){try{l.resolve(f.apply(null,j))}catch(b){l.reject(b),e(b)}finally{delete g[m.$$timeoutId]}k||a.$apply()},h),m.$$timeoutId=o,g[o]=l,m}var g={};return f.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1},f}]}function dL(a){var b=a;return eO&&(gA.setAttribute("href",b),b=gA.href),gA.setAttribute("href",b),{href:gA.href,protocol:gA.protocol?gA.protocol.replace(/:$/,""):"",host:gA.host,search:gA.search?gA.search.replace(/^\?/,""):"",hash:gA.hash?gA.hash.replace(/^#/,""):"",hostname:gA.hostname,port:gA.port,pathname:gA.pathname.charAt(0)==="/"?gA.pathname:"/"+gA.pathname}}function dM(a){var b=v(a)?dL(a):a;return b.protocol===gB.protocol&&b.host===gB.host}function dN(){this.$get=p(a)}function dO(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var c=a[0]||{},d={},e="";return function(){var a,f,g,h,i,j=c.cookie||"";if(j!==e){e=j,a=e.split("; "),d={};for(g=0;g<a.length;g++)f=a[g],h=f.indexOf("="),h>0&&(i=b(f.substring(0,h)),r(d[i])&&(d[i]=b(f.substring(h+1))))}return d}}function dP(){this.$get=dO}function dQ(a){function b(e,f){if(t(e)){var g={};return d(e,function(a,c){g[c]=b(c,a)}),g}return a.factory(e+c,f)}var c="Filter";this.register=b,this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}],b("currency",dV),b("date",ei),b("filter",dR),b("json",ej),b("limitTo",ek),b("lowercase",gI),b("number",dW),b("orderBy",em),b("uppercase",gJ)}function dR(){return function(a,d,e){if(!c(a)){if(a==null)return a;throw b("filter")("notarray","Expected array but received: {0}",a)}var f=dU(d),g,h;switch(f){case"function":g=d;break;case"boolean":case"null":case"number":case"string":h=!0;case"object":g=dS(d,e,h);break;default:return a}return Array.prototype.filter.call(a,g)}}function dS(a,b,c){var d=t(a)&&"$"in a,e;return b===!0?b=P:y(b)||(b=function(a,b){return r(a)?!1:a===null||b===null?a===b:t(b)||t(a)&&!q(a)?!1:(a=eK(""+a),b=eK(""+b),a.indexOf(b)!==-1)}),e=function(e){return d&&!t(e)?dT(e,a.$,b,!1):dT(e,a,b,c)},e}function dT(a,b,c,d,e){var f=dU(a),g=dU(b);if(g==="string"&&b.charAt(0)==="!")return!dT(a,b.substring(1),c,d);if(e$(a))return a.some(function(a){return dT(a,b,c,d)});switch(f){case"object":var h;if(d){for(h in a)if(h.charAt(0)!=="$"&&dT(a[h],b,c,!0))return!0;return e?!1:dT(a,b,c,!1)}if(g==="object"){for(h in b){var i=b[h];if(y(i)||r(i))continue;var j=h==="$",k=j?a:a[h];if(!dT(k,i,c,j,j))return!1}return!0}return c(a,b);case"function":return!1;default:return c(a,b)}}function dU(a){return a===null?"null":typeof a}function dV(a){var b=a.NUMBER_FORMATS;return function(a,c,d){return r(c)&&(c=b.CURRENCY_SYM),r(d)&&(d=b.PATTERNS[1].maxFrac),a==null?a:dZ(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,d).replace(/\u00A4/g,c)}}function dW(a){var b=a.NUMBER_FORMATS;return function(a,c){return a==null?a:dZ(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function dX(a){var b=0,c,d,e,f,g;(d=a.indexOf(gD))>-1&&(a=a.replace(gD,"")),(e=a.search(/e/i))>0?(d<0&&(d=e),d+=+a.slice(e+1),a=a.substring(0,e)):d<0&&(d=a.length);for(e=0;a.charAt(e)==gE;e++);if(e==(g=a.length))c=[0],d=1;else{g--;while(a.charAt(g)==gE)g--;d-=e,c=[];for(f=0;e<=g;e++,f++)c[f]=+a.charAt(e)}return d>gC&&(c=c.splice(0,gC-1),b=d-1,d=1),{d:c,e:b,i:d}}function dY(a,b,c,d){var e=a.d,f=e.length-a.i;b=r(b)?Math.min(Math.max(c,f),d):+b;var g=b+a.i,h=e[g];if(g>0){e.splice(Math.max(a.i,g));for(var i=g;i<e.length;i++)e[i]=0}else{f=Math.max(0,f),a.i=1,e.length=Math.max(1,g=b+1),e[0]=0;for(var j=1;j<g;j++)e[j]=0}if(h>=5)if(g-1<0){for(var k=0;k>g;k--)e.unshift(0),a.i++;e.unshift(1),a.i++}else e[g-1]++;for(;f<Math.max(0,b);f++)e.push(0);var l=e.reduceRight(function(a,b,c,d){return b+=a,d[c]=b%10,Math.floor(b/10)},0);l&&(e.unshift(l),a.i++)}function dZ(a,b,c,d,e){if(!v(a)&&!w(a)||isNaN(a))return"";var f=!isFinite(a),g=!1,h=Math.abs(a)+"",i="",j;if(f)i="∞";else{j=dX(h),dY(j,e,b.minFrac,b.maxFrac);var k=j.d,l=j.i,m=j.e,n=[];g=k.reduce(function(a,b){return a&&!b},!0);while(l<0)k.unshift(0),l++;l>0?n=k.splice(l,k.length):(n=k,k=[0]);var o=[];k.length>=b.lgSize&&o.unshift(k.splice(-b.lgSize,k.length).join(""));while(k.length>b.gSize)o.unshift(k.splice(-b.gSize,k.length).join(""));k.length&&o.unshift(k.join("")),i=o.join(c),n.length&&(i+=d+n.join("")),m&&(i+="e+"+m)}return a<0&&!g?b.negPre+i+b.negSuf:b.posPre+i+b.posSuf}function d$(a,b,c,d){var e="";if(a<0||d&&a<=0)d?a=-a+1:(a=-a,e="-");a=""+a;while(a.length<b)a=gE+a;return c&&(a=a.substr(a.length-b)),e+a}function d_(a,b,c,d,e){return c=c||0,function(f){var g=f["get"+a]();if(c>0||g>-c)g+=c;return g===0&&c==-12&&(g=12),d$(g,b,d,e)}}function ea(a,b,c){return function(d,e){var f=d["get"+a](),g=(c?"STANDALONE":"")+(b?"SHORT":""),h=eL(g+a);return e[h][f]}}function eb(a,b,c){var d=-1*c,e=d>=0?"+":"";return e+=d$(Math[d>0?"floor":"ceil"](d/60),2)+d$(Math.abs(d%60),2),e}function ec(a){var b=(new Date(a,0,1)).getDay();return new Date(a,0,(b<=4?5:12)-b)}function ed(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))}function ee(a){return function(b){var c=ec(b.getFullYear()),d=ed(b),e=+d- +c,f=1+Math.round(e/6048e5);return d$(f,a)}}function ef(a,b){return a.getHours()<12?b.AMPMS[0]:b.AMPMS[1]}function eg(a,b){return a.getFullYear()<=0?b.ERAS[0]:b.ERAS[1]}function eh(a,b){return a.getFullYear()<=0?b.ERANAMES[0]:b.ERANAMES[1]}function ei(a){function b(a){var b;if(b=a.match(c)){var d=new Date(0),e=0,f=0,g=b[8]?d.setUTCFullYear:d.setFullYear,h=b[8]?d.setUTCHours:d.setHours;b[9]&&(e=l(b[9]+b[10]),f=l(b[9]+b[11])),g.call(d,l(b[1]),l(b[2])-1,l(b[3]));var i=l(b[4]||0)-e,j=l(b[5]||0)-f,k=l(b[6]||0),m=Math.round(parseFloat("0."+(b[7]||0))*1e3);return h.call(d,i,j,k,m),d}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,e,f){var g="",h=[],i,j;e=e||"mediumDate",e=a.DATETIME_FORMATS[e]||e,v(c)&&(c=gH.test(c)?l(c):b(c)),w(c)&&(c=new Date(c));if(!x(c)||!isFinite(c.getTime()))return c;while(e)j=gG.exec(e),j?(h=Q(h,j,1),e=h.pop()):(h.push(e),e=null);var k=c.getTimezoneOffset();return f&&(k=W(f,k),c=Y(c,f,!0)),d(h,function(b){i=gF[b],g+=i?i(c,a.DATETIME_FORMATS,k):b==="''"?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),g}}function ej(){return function(a,b){return r(b)&&(b=2),U(a,b)}}function ek(){return function(a,b,d){return Math.abs(Number(b))===Infinity?b=Number(b):b=l(b),isNaN(b)?a:(w(a)&&(a=a.toString()),c(a)?(d=!d||isNaN(d)?0:l(d),d=d<0?Math.max(0,a.length+d):d,b>=0?el(a,d,d+b):d===0?el(a,b,a.length):el(a,Math.max(0,d+b),d)):a)}}function el(a,b,c){return v(a)?a.slice(b,c):eR.call(a,b,c)}function em(a){function d(b){return b.map(function(b){var c=1,d=o;if(y(b))d=b;else if(v(b)){if(b.charAt(0)=="+"||b.charAt(0)=="-")c=b.charAt(0)=="-"?-1:1,b=b.substring(1);if(b!==""){d=a(b);if(d.constant){var e=d();d=function(a){return a[e]}}}}return{get:d,descending:c}})}function e(a){switch(typeof a){case"number":case"boolean":case"string":return!0;default:return!1}}function f(a){if(y(a.valueOf)){a=a.valueOf();if(e(a))return a}if(q(a)){a=a.toString();if(e(a))return a}return a}function g(a,b){var c=typeof a;return a===null?(c="string",a="null"):c==="object"&&(a=f(a)),{value:a,type:c,index:b}}function h(a,b){var c=0,d=a.type,e=b.type;if(d===e){var f=a.value,g=b.value;d==="string"?(f=f.toLowerCase(),g=g.toLowerCase()):d==="object"&&(t(f)&&(f=a.index),t(g)&&(g=b.index)),f!==g&&(c=f<g?-1:1)}else c=d<e?-1:1;return c}return function(a,e,f,i){function j(a,b){return{value:a,tieBreaker:{value:b,type:"number",index:b},predicateValues:l.map(function(c){return g(c.get(a),b)})}}function k(a,b){for(var c=0,d=l.length;c<d;c++){var e=n(a.predicateValues[c],b.predicateValues[c]);if(e)return e*l[c].descending*m}return n(a.tieBreaker,b.tieBreaker)*m}if(a==null)return a;if(!c(a))throw b("orderBy")("notarray","Expected array but received: {0}",a);e$(e)||(e=[e]),e.length===0&&(e=["+"]);var l=d(e),m=f?-1:1,n=y(i)?i:h,o=Array.prototype.map.call(a,j);return o.sort(k),a=o.map(function(a){return a.value}),a}}function en(a){return y(a)&&(a={link:a}),a.restrict=a.restrict||"AC",p(a)}function eo(a,b){a.$name=b}function ep(a,b,c,e,f){var g=this,h=[];g.$error={},g.$$success={},g.$pending=undefined,g.$name=f(b.name||b.ngForm||"")(c),g.$dirty=!1,g.$pristine=!0,g.$valid=!0,g.$invalid=!1,g.$submitted=!1,g.$$parentForm=gM,g.$rollbackViewValue=function(){d(h,function(a){a.$rollbackViewValue()})},g.$commitViewValue=function(){d(h,function(a){a.$commitViewValue()})},g.$addControl=function(a){bm(a.$name,"input"),h.push(a),a.$name&&(g[a.$name]=a),a.$$parentForm=g},g.$$renameControl=function(a,b){var c=a.$name;g[c]===a&&delete g[c],g[b]=a,a.$name=b},g.$removeControl=function(a){a.$name&&g[a.$name]===a&&delete g[a.$name],d(g.$pending,function(b,c){g.$setValidity(c,null,a)}),d(g.$error,function(b,c){g.$setValidity(c,null,a)}),d(g.$$success,function(b,c){g.$setValidity(c,null,a)}),N(h,a),a.$$parentForm=gM},eE({ctrl:this,$element:a,set:function(a,b,c){var d=a[b];if(!d)a[b]=[c];else{var e=d.indexOf(c);e===-1&&d.push(c)}},unset:function(a,b,c){var d=a[b];if(!d)return;N(d,c),d.length===0&&delete a[b]},$animate:e}),g.$setDirty=function(){e.removeClass(a,hw),e.addClass(a,hx),g.$dirty=!0,g.$pristine=!1,g.$$parentForm.$setDirty()},g.$setPristine=function(){e.setClass(a,hw,hx+" "+gN),g.$dirty=!1,g.$pristine=!0,g.$submitted=!1,d(h,function(a){a.$setPristine()})},g.$setUntouched=function(){d(h,function(a){a.$setUntouched()})},g.$setSubmitted=function(){e.addClass(a,gN),g.$submitted=!0,g.$$parentForm.$setSubmitted()}}function eq(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function er(a,b,c,d,e,f){es(a,b,c,d,e,f),eq(d)}function es(a,b,c,d,e,f){var g=eK(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",function(){h=!0}),b.on("compositionend",function(){h=!1,j()})}var i,j=function(a){i&&(f.defer.cancel(i),i=null);if(h)return;var e=b.val(),j=a&&a.type;g!=="password"&&(!c.ngTrim||c.ngTrim!=="false")&&(e=fa(e)),(d.$viewValue!==e||e===""&&d.$$hasNativeValidators)&&d.$setViewValue(e,j)};if(e.hasEvent("input"))b.on("input",j);else{var k=function(a,b,c){i||(i=f.defer(function(){i=null,(!b||b.value!==c)&&j(a)}))};b.on("keydown",function(a){var b=a.keyCode;if(b===91||15<b&&b<19||37<=b&&b<=40)return;k(a,this,this.value)}),e.hasEvent("paste")&&b.on("paste cut",k)}b.on("change",j),g_[g]&&d.$$hasNativeValidators&&g===c.type&&b.on(g$,function(a){if(!i){var b=this[eI],c=b.badInput,d=b.typeMismatch;i=f.defer(function(){i=null,(b.badInput!==c||b.typeMismatch!==d)&&j(a)})}}),d.$render=function(){var a=d.$isEmpty(d.$viewValue)?"":d.$viewValue;b.val()!==a&&b.val(a)}}function et(a,b){if(x(a))return a;if(v(a)){gX.lastIndex=0;var c=gX.exec(a);if(c){var d=+c[1],e=+c[2],f=0,g=0,h=0,i=0,j=ec(d),k=(e-1)*7;return b&&(f=b.getHours(),g=b.getMinutes(),h=b.getSeconds(),i=b.getMilliseconds()),new Date(d,0,j.getDate()+k,f,g,h,i)}}return NaN}function eu(a,b){return function(c,e){var f,g;if(x(c))return c;if(v(c)){c.charAt(0)=='"'&&c.charAt(c.length-1)=='"'&&(c=c.substring(1,c.length-1));if(gR.test(c))return new Date(c);a.lastIndex=0,f=a.exec(c);if(f)return f.shift(),e?g={yyyy:e.getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),sss:e.getMilliseconds()/1e3}:g={yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},d(f,function(a,c){c<b.length&&(g[b[c]]=+a)}),new Date(g.yyyy,g.MM-1,g.dd,g.HH,g.mm,g.ss||0,g.sss*1e3||0)}return NaN}}function ev(a,b,c,d){return function e(e,f,g,h,i,j,k){function l(a){return a&&(!a.getTime||a.getTime()===a.getTime())}function m(a){return s(a)&&!x(a)?c(a)||undefined:a}ew(e,f,g,h),es(e,f,g,h,i,j);var n=h&&h.$options&&h.$options.timezone,o;h.$$parserName=a,h.$parsers.push(function(a){if(h.$isEmpty(a))return null;if(b.test(a)){var d=c(a,o);return n&&(d=Y(d,n)),d}return undefined}),h.$formatters.push(function(a){if(a&&!x(a))throw hD("datefmt","Expected `{0}` to be a date",a);return l(a)?(o=a,o&&n&&(o=Y(o,n,!0)),k("date")(a,d,n)):(o=null,"")});if(s(g.min)||g.ngMin){var p;h.$validators.min=function(a){return!l(a)||r(p)||c(a)>=p},g.$observe("min",function(a){p=m(a),h.$validate()})}if(s(g.max)||g.ngMax){var q;h.$validators.max=function(a){return!l(a)||r(q)||c(a)<=q},g.$observe("max",function(a){q=m(a),h.$validate()})}}}function ew(a,b,c,d){var e=b[0],f=d.$$hasNativeValidators=t(e.validity);f&&d.$parsers.push(function(a){var c=b.prop(eI)||{};return c.badInput||c.typeMismatch?undefined:a})}function ex(a,b,c,d,e,f){ew(a,b,c,d),es(a,b,c,d,e,f),d.$$parserName="number",d.$parsers.push(function(a){return d.$isEmpty(a)?null:gU.test(a)?parseFloat(a):undefined}),d.$formatters.push(function(a){if(!d.$isEmpty(a)){if(!w(a))throw hD("numfmt","Expected `{0}` to be a number",a);a=a.toString()}return a});if(s(c.min)||c.ngMin){var g;d.$validators.min=function(a){return d.$isEmpty(a)||r(g)||a>=g},c.$observe("min",function(a){s(a)&&!w(a)&&(a=parseFloat(a,10)),g=w(a)&&!isNaN(a)?a:undefined,d.$validate()})}if(s(c.max)||c.ngMax){var h;d.$validators.max=function(a){return d.$isEmpty(a)||r(h)||a<=h},c.$observe("max",function(a){s(a)&&!w(a)&&(a=parseFloat(a,10)),h=w(a)&&!isNaN(a)?a:undefined,d.$validate()})}}function ey(a,b,c,d,e,f){es(a,b,c,d,e,f),eq(d),d.$$parserName="url",d.$validators.url=function(a,b){var c=a||b;return d.$isEmpty(c)||gS.test(c)}}function ez(a,b,c,d,e,f){es(a,b,c,d,e,f),eq(d),d.$$parserName="email",d.$validators.email=function(a,b){var c=a||b;return d.$isEmpty(c)||gT.test(c)}}function eA(a,b,c,d){r(c.name)&&b.attr("name",g());var e=function(a){b[0].checked&&d.$setViewValue(c.value,a&&a.type)};b.on("click",e),d.$render=function(){var a=c.value;b[0].checked=a==d.$viewValue},c.$observe("value",d.$render)}function eB(a,b,c,d,e){var f;if(s(d)){f=a(d);if(!f.constant)throw hD("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",c,d);return f(b)}return e}function eC(a,b,c,d,e,f,g,h){var i=eB(h,a,"ngTrueValue",c.ngTrueValue,!0),j=eB(h,a,"ngFalseValue",c.ngFalseValue,!1),k=function(a){d.$setViewValue(b[0].checked,a&&a.type)};b.on("click",k),d.$render=function(){b[0].checked=d.$viewValue},d.$isEmpty=function(a){return a===!1},d.$formatters.push(function(a){return P(a,i)}),d.$parsers.push(function(a){return a?i:j})}function eD(a,b){return a="ngClass"+a,["$animate",function(c){function e(a,b){var c=[];d:for(var e=0;e<a.length;e++){var f=a[e];for(var g=0;g<b.length;g++)if(f==b[g])continue d;c.push(f)}return c}function f(a){var b=[];return e$(a)?(d(a,function(a){b=b.concat(f(a))}),b):v(a)?a.split(" "):t(a)?(d(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(g,h,i){function j(a){var b=l(a,1);i.$addClass(b)}function k(a){var b=l(a,-1);i.$removeClass(b)}function l(a,b){var c=h.data("$classCounts")||bp(),e=[];return d(a,function(a){if(b>0||c[a])c[a]=(c[a]||0)+b,c[a]===+(b>0)&&e.push(a)}),h.data("$classCounts",c),e.join(" ")}function m(a,b){var d=e(b,a),f=e(a,b);d=l(d,1),f=l(f,-1),d&&d.length&&c.addClass(h,d),f&&f.length&&c.removeClass(h,f)}function n(a){if(b===!0||(g.$index&1)===b){var c=f(a||[]);if(!o)j(c);else if(!P(a,o)){var d=f(o);m(d,c)}}e$(a)?o=a.map(function(a){return br(a)}):o=br(a)}var o;g.$watch(i[a],n,!0),i.$observe("class",function(b){n(g.$eval(i[a]))}),a!=="ngClass"&&g.$watch("$index",function(c,d){var e=c&1;if(e!==(d&1)){var h=f(g.$eval(i[a]));e===b?j(h):k(h)}})}}}]}function eE(a){function b(a,b,h){r(b)?c("$pending",a,h):d("$pending",a,h),F(b)?b?(k(g.$error,a,h),j(g.$$success,a,h)):(j(g.$error,a,h),k(g.$$success,a,h)):(k(g.$error,a,h),k(g.$$success,a,h)),g.$pending?(e(hA,!0),g.$valid=g.$invalid=undefined,f("",null)):(e(hA,!1),g.$valid=eF(g.$error),g.$invalid=!g.$valid,f("",g.$valid));var i;g.$pending&&g.$pending[a]?i=undefined:g.$error[a]?i=!1:g.$$success[a]?i=!0:i=null,f(a,i),g.$$parentForm.$setValidity(a,i,g)}function c(a,b,c){g[a]||(g[a]={}),j(g[a],b,c)}function d(a,b,c){g[a]&&k(g[a],b,c),eF(g[a])&&(g[a]=undefined)}function e(a,b){b&&!i[a]?(l.addClass(h,a),i[a]=!0):!b&&i[a]&&(l.removeClass(h,a),i[a]=!1)}function f(a,b){a=a?"-"+bi(a,"-"):"",e(hu+a,b===!0),e(hv+a,b===!1)}var g=a.ctrl,h=a.$element,i={},j=a.set,k=a.unset,l=a.$animate;i[hv]=!(i[hu]=h.hasClass(hu)),g.$setValidity=b}function eF(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function eG(a){a[0].hasAttribute("selected")&&(a[0].selected=!0)}"use strict";var eH=/^\/(.+)\/([a-z]*)$/,eI="validity",eJ=Object.prototype.hasOwnProperty,eK=function(a){return v(a)?a.toLowerCase():a},eL=function(a){return v(a)?a.toUpperCase():a},eM=function(a){return v(a)?a.replace(/[A-Z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)|32)}):a},eN=function(a){return v(a)?a.replace(/[a-z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)&-33)}):a};"i"!=="I".toLowerCase()&&(eK=eM,eL=eN);var eO,eP,eQ,eR=[].slice,eS=[].splice,eT=[].push,eU=Object.prototype.toString,eV=Object.getPrototypeOf,eW=b("ng"),eX=a.angular||(a.angular={}),eY,eZ=0;eO=a.document.documentMode,n.$inject=[],o.$inject=[];var e$=Array.isArray,e_=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,fa=function(a){return v(a)?a.trim():a},fb=function(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},fc=function(){function b(){try{return new Function(""),!1}catch(a){return!0}}if(!s(fc.rules)){var c=a.document.querySelector("[ng-csp]")||a.document.querySelector("[data-ng-csp]");if(c){var d=c.getAttribute("ng-csp")||c.getAttribute("data-ng-csp");fc.rules={noUnsafeEval:!d||d.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!d||d.indexOf("no-inline-style")!==-1}}else fc.rules={noUnsafeEval:b(),noInlineStyle:!1}}return fc.rules},fd=function(){if(s(fd.name_))return fd.name_;var b,c,d=ff.length,e,f;for(c=0;c<d;++c){e=ff[c];if(b=a.document.querySelector("["+e.replace(":","\\:")+"jq]")){f=b.getAttribute(e+"jq");break}}return fd.name_=f},fe=/:/g,ff=["ng-","data-ng-","ng:","x-ng-"],fg=/[A-Z]/g,fh=!1,fi=1,fj=2,fk=3,fl=8,fm=9,fn=11,fo={full:"1.5.7",major:1,minor:5,dot:7,codeName:"hexagonal-circumvolution"};bE.expando="ng339";var fp=bE.cache={},fq=1,fr=function(a,b,c){a.addEventListener(b,c,!1)},fs=function(a,b,c){a.removeEventListener(b,c,!1)};bE._data=function(a){return this.cache[a[this.expando]]||{}};var ft=/([\:\-\_]+(.))/g,fu=/^moz([A-Z])/,fv={mouseleave:"mouseout",mouseenter:"mouseover"},fw=b("jqLite"),fx=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,fy=/<|&#?\w+;/,fz=/<([\w:-]+)/,fA=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,fB={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,"",""]};fB.optgroup=fB.option,fB.tbody=fB.tfoot=fB.colgroup=fB.caption=fB.thead,fB.th=fB.td;var fC=a.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},fD=bE.prototype={ready:function(b){function c(){if(d)return;d=!0,b()}var d=!1;a.document.readyState==="complete"?a.setTimeout(c):(this.on("DOMContentLoaded",c),bE(a).on("load",c))},toString:function(){var a=[];return d(this,function(b){a.push(""+b)}),"["+a.join(", ")+"]"},eq:function(a){return a>=0?eP(this[a]):eP(this[this.length+a])},length:0,push:eT,sort:[].sort,splice:[].splice},fE={};d("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(a){fE[eK(a)]=a});var fF={};d("input,select,option,textarea,button,form,details".split(","),function(a){fF[a]=!0});var fG={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};d({data:bK,removeData:bI,hasData:bz,cleanData:bA},function(a,b){bE[b]=a}),d({data:bK,inheritedData:bQ,scope:function(a){return eP.data(a,"$scope")||bQ(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return eP.data(a,"$isolateScope")||eP.data(a,"$isolateScopeNoTemplate")},controller:bP,injector:function(a){return bQ(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:bL,css:function(a,b,c){b=bw(b);if(s(c))a.style[b]=c;else return a.style[b]},attr:function(a,b,c){var d=a.nodeType;if(d===fk||d===fj||d===fl)return;var e=eK(b);if(fE[e])if(s(c))c?(a[b]=!0,a.setAttribute(b,e)):(a[b]=!1,a.removeAttribute(e));else return a[b]||(a.attributes.getNamedItem(b)||n).specified?e:undefined;else if(s(c))a.setAttribute(b,c);else if(a.getAttribute){var f=a.getAttribute(b,2);return f===null?undefined:f}},prop:function(a,b,c){if(s(c))a[b]=c;else return a[b]},text:function(){function a(a,b){if(r(b)){var c=a.nodeType;return c===fi||c===fk?a.textContent:""}a.textContent=b}return a.$dv="",a}(),val:function(a,b){if(r(b)){if(a.multiple&&L(a)==="select"){var c=[];return d(a.options,function(a){a.selected&&c.push(a.value||a.text)}),c.length===0?null:c}return a.value}a.value=b},html:function(a,b){if(r(b))return a.innerHTML;bG(a,!0),a.innerHTML=b},empty:bR},function(a,b){bE.prototype[b]=function(b,c){var d,e,f=this.length;if(a!==bR&&r(a.length==2&&a!==bL&&a!==bP?b:c)){if(t(b)){for(d=0;d<f;d++)if(a===bK)a(this[d],b);else for(e in b)a(this[d],e,b[e]);return this}var g=a.$dv,h=r(g)?Math.min(f,1):f;for(var i=0;i<h;i++){var j=a(this[i],b,c);g=g?g+j:j}return g}for(d=0;d<f;d++)a(this[d],b,c);return this}}),d({removeData:bI,on:function(a,b,c,d){if(s(d))throw fw("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(!by(a))return;var e=bJ(a,!0),f=e.events,g=e.handle;g||(g=e.handle=bW(a,f));var h=b.indexOf(" ")>=0?b.split(" "):[b],i=h.length,j=function(b,d,e){var h=f[b];h||(h=f[b]=[],h.specialHandlerWrapper=d,b!=="$destroy"&&!e&&fr(a,b,g)),h.push(c)};while(i--)b=h[i],fv[b]?(j(fv[b],bY),j(b,undefined,!0)):j(b)},off:bH,one:function(a,b,c){a=eP(a),a.on(b,function d(){a.off(b,c),a.off(b,d)}),a.on(b,c)},replaceWith:function(a,b){var c,e=a.parentNode;bG(a),d(new bE(b),function(b){c?e.insertBefore(b,c.nextSibling):e.replaceChild(b,a),c=b})},children:function(a){var b=[];return d(a.childNodes,function(a){a.nodeType===fi&&b.push(a)}),b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var c=a.nodeType;if(c!==fi&&c!==fn)return;b=new bE(b);for(var d=0,e=b.length;d<e;d++){var f=b[d];a.appendChild(f)}},prepend:function(a,b){if(a.nodeType===fi){var c=a.firstChild;d(new bE(b),function(b){a.insertBefore(b,c)})}},wrap:function(a,b){bD(a,eP(b).eq(0).clone()[0])},remove:bS,detach:function(a){bS(a,!0)},after:function(a,b){var c=a,d=a.parentNode;b=new bE(b);for(var e=0,f=b.length;e<f;e++){var g=b[e];d.insertBefore(g,c.nextSibling),c=g}},addClass:bN,removeClass:bM,toggleClass:function(a,b,c){b&&d(b.split(" "),function(b){var d=c;r(d)&&(d=!bL(a,b)),(d?bN:bM)(a,b)})},parent:function(a){var b=a.parentNode;return b&&b.nodeType!==fn?b:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:bF,triggerHandler:function(a,b,c){var e,f,g,h=b.type||b,i=bJ(a),k=i&&i.events,l=k&&k[h];l&&(e={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:n,type:h,target:a},b.type&&(e=j(e,b)),f=br(l),g=c?[e].concat(c):[e],d(f,function(b){e.isImmediatePropagationStopped()||b.apply(a,g)}))}},function(a,b){bE.prototype[b]=function(b,c,d){var e;for(var f=0,g=this.length;f<g;f++)r(e)?(e=a(this[f],b,c,d),s(e)&&(e=eP(e))):bO(e,a(this[f],b,c,d));return s(e)?e:this},bE.prototype.bind=bE.prototype.on,bE.prototype.unbind=bE.prototype.off}),b_.prototype={put:function(a,b){this[b$(a,this.nextUid)]=b},get:function(a){return this[b$(a,this.nextUid)]},remove:function(a){var b=this[a=b$(a,this.nextUid)];return delete this[a],b}};var fH=[function(){this.$get=[function(){return b_}]}],fI=/^([^\(]+?)=>/,fJ=/^[^\(]*\(\s*([^\)]*)\)/m,fK=/,/,fL=/^\s*(_?)(\S+?)\1\s*$/,fM=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,fN=b("$injector");ce.$$annotate=cd;var fO=b("$animate"),fP=1,fQ="ng-animate",fR=function(){this.$get=n},fS=function(){var a=new b_,b=[];this.$get=["$$AnimateRunner","$rootScope",function(c,e){function f(a,b,c){var e=!1;return b&&(b=v(b)?b.split(" "):e$(b)?b:[],d(b,function(b){b&&(e=!0,a[b]=c)})),e}function g(){d(b,function(b){var c=a.get(b);if(c){var e=ci(b.attr("class")),f="",g="";d(c,function(a,b){var c=!!e[b];a!==c&&(a?f+=(f.length?" ":"")+b:g+=(g.length?" ":"")+b)}),d(b,function(a){f&&bN(a,f),g&&bM(a,g)}),a.remove(b)}}),b.length=0}function h(c,d,h){var i=a.get(c)||{},j=f(i,d,!0),k=f(i,h,!1);if(j||k)a.put(c,i),b.push(c),b.length===1&&e.$$postDigest(g)}return{enabled:n,on:n,off:n,pin:n,push:function(a,b,d,e){e&&e(),d=d||{},d.from&&a.css(d.from),d.to&&a.css(d.to),(d.addClass||d.removeClass)&&h(a,d.addClass,d.removeClass);var f=new c;return f.complete(),f}}}]},fT=["$provide",function(a){var b=this;this.$$registeredAnimations=Object.create(null),this.register=function(c,d){if(c&&c.charAt(0)!==".")throw fO("notcsel","Expecting class selector starting with '.' got '{0}'.",c);var e=c+"-animation";b.$$registeredAnimations[c.substr(1)]=e,a.factory(e,d)},this.classNameFilter=function(a){if(arguments.length===1){this.$$classNameFilter=a instanceof RegExp?a:null;if(this.$$classNameFilter){var b=new RegExp("(\\s+|\\/)"+fQ+"(\\s+|\\/)");if(b.test(this.$$classNameFilter.toString()))throw fO("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',fQ)}}return this.$$classNameFilter},this.$get=["$$animateQueue",function(a){function b(a,b,c){if(c){var d=ch(c);d&&!d.parentNode&&!d.previousElementSibling&&(c=null)}c?c.after(a):b.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(c,d,e,f){return d=d&&eP(d),e=e&&eP(e),d=d||e.parent(),b(c,d,e),a.push(c,"enter",cj(f))},move:function(c,d,e,f){return d=d&&eP(d),e=e&&eP(e),d=d||e.parent(),b(c,d,e),a.push(c,"move",cj(f))},leave:function(b,c){return a.push(b,"leave",cj(c),function(){b.remove()})},addClass:function(b,c,d){return d=cj(d),d.addClass=cg(d.addclass,c),a.push(b,"addClass",d)},removeClass:function(b,c,d){return d=cj(d),d.removeClass=cg(d.removeClass,c),a.push(b,"removeClass",d)},setClass:function(b,c,d,e){return e=cj(e),e.addClass=cg(e.addClass,c),e.removeClass=cg(e.removeClass,d),a.push(b,"setClass",e)},animate:function(b,c,d,e,f){return f=cj(f),f.from=f.from?j(f.from,c):c,f.to=f.to?j(f.to,d):d,e=e||"ng-inline-animate",f.tempClasses=cg(f.tempClasses,e),a.push(b,"animate",f)}}}]}],fU=function(){this.$get=["$$rAF",function(a){function b(b){c.push(b);if(c.length>1)return;a(function(){for(var a=0;a<c.length;a++)c[a]();c=[]})}var c=[];return function(){var a=!1;return b(function(){a=!0}),function(c){a?c():b(c)}}}]},fV=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(a,b,c,e,f){function g(a){this.setHost(a);var b=c(),d=function(a){f(a,0,!1)};this._doneCallbacks=[],this._tick=function(a){var c=e[0];c&&c.hidden?d(a):b(a)},this._state=0}var h=0,i=1,j=2;return g.chain=function(a,b){function c(){if(d===a.length){b(!0);return}a[d](function(a){if(a===!1){b(!1);return}d++,c()})}var d=0;c()},g.all=function(a,b){function c(c){f=f&&c,++e===a.length&&b(f)}var e=0,f=!0;d(a,function(a){a.done(c)})},g.prototype={setHost:function(a){this.host=a||{}},done:function(a){this._state===j?a():this._doneCallbacks.push(a)},progress:n,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){b===!1?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(a){var b=this;b._state===h&&(b._state=i,b._tick(function(){b._resolve(a)}))},_resolve:function(a){this._state!==j&&(d(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=j)}},g}]},fW=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,c){return function(b,d){function e(){return a(function(){f(),h||i.complete(),h=!0}),i}function f(){g.addClass&&(b.addClass(g.addClass),g.addClass=null),g.removeClass&&(b.removeClass(g.removeClass),g.removeClass=null),g.to&&(b.css(g.to),g.to=null)}var g=d||{};g.$$prepared||(g=O(g)),g.cleanupStyles&&(g.from=g.to=null),g.from&&(b.css(g.from),g.from=null);var h,i=new c;return{start:e,end:e}}}]},fX=b("$compile"),fY=new co;cp.$inject=["$provide","$$sanitizeUriProvider"],cq.prototype.isFirstChange=function(){return this.previousValue===fY};var fZ=/^((?:x|data)[\:\-_])/i,f$=b("$controller"),f_=/^(\S+)(\s+as\s+([\w$]+))?$/,ga=function(){this.$get=["$document",function(a){return function(b){return b?!b.nodeType&&b instanceof eP&&(b=b[0]):b=a[0].body,b.offsetWidth+1}}]},gb="application/json",gc={"Content-Type":gb+";charset=utf-8"},gd=/^\[|^\{(?!\{)/,ge={"[":/]$/,"{":/}$/},gf=/^\)\]\}',?\n/,gg=b("$http"),gh=function(a){return function(){throw gg("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",a)}},gi=eX.$interpolateMinErr=b("$interpolate");gi.throwNoconcat=function(a){throw gi("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",a)},gi.interr=function(a,b){return gi("interr","Can't interpolate: {0}\n{1}",a,b.toString())};var gj=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,gk={http:80,https:443,ftp:21},gl=b("$location"),gm={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:c_("$$absUrl"),url:function(a){if(r(a))return this.$$url;var b=gj.exec(a);return(b[1]||a==="")&&this.path(decodeURIComponent(b[1])),(b[2]||b[1]||a==="")&&this.search(b[3]||""),this.hash(b[5]||""),this},protocol:c_("$$protocol"),host:c_("$$host"),port:c_("$$port"),path:da("$$path",function(a){return a=a!==null?a.toString():"",a.charAt(0)=="/"?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(v(a)||w(a))a=a.toString(),this.$$search=_(a);else if(t(a))a=O(a,{}),d(a,function(b,c){b==null&&delete a[c]}),this.$$search=a;else throw gl("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");break;default:r(b)||b===null?delete this.$$search[a]:this.$$search[a]=b}return this.$$compose(),this},hash:da("$$hash",function(a){return a!==null?a.toString():""}),replace:function(){return this.$$replace=!0,this}};d([c$,cZ,cY],function(a){a.prototype=Object.create(gm),a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==cY||!this.$$html5)throw gl("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=r(b)?null:b,this}});var gn=b("$parse"),go=Function.prototype.call,gp=Function.prototype.apply,gq=Function.prototype.bind,gr=bp();d("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){gr[a]=!0});var gs={n:"\n",f:"\f",r:"\r",t:"\t",v:"","'":"'",'"':'"'},gt=function(a){this.options=a};gt.prototype={constructor:gt,lex:function(a){this.text=a,this.index=0,this.tokens=[];while(this.index<this.text.length){var b=this.text.charAt(this.index);if(b==='"'||b==="'")this.readString(b);else if(this.isNumber(b)||b==="."&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(b,"(){}[].,;:?"))this.tokens.push({index:this.index,text:b}),this.index++;else if(this.isWhitespace(b))this.index++;else{var c=b+this.peek(),d=c+this.peek(2),e=gr[b],f=gr[c],g=gr[d];if(e||f||g){var h=g?d:f?c:b;this.tokens.push({index:this.index,text:h,operator:!0}),this.index+=h.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(a,b){return b.indexOf(a)!==-1},peek:function(a){var b=a||1;return this.index+b<this.text.length?this.text.charAt(this.index+b):!1},isNumber:function(a){return"0"<=a&&a<="9"&&typeof a=="string"},isWhitespace:function(a){return a===" "||a==="\r"||a==="\t"||a==="\n"||a===""||a===" "},isIdentifierStart:function(a){return this.options.isIdentifierStart?this.options.isIdentifierStart(a,this.codePointAt(a)):this.isValidIdentifierStart(a)},isValidIdentifierStart:function(a){return"a"<=a&&a<="z"||"A"<=a&&a<="Z"||"_"===a||a==="$"},isIdentifierContinue:function(a){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(a,this.codePointAt(a)):this.isValidIdentifierContinue(a)},isValidIdentifierContinue:function(a,b){return this.isValidIdentifierStart(a,b)||this.isNumber(a)},codePointAt:function(a){return a.length===1?a.charCodeAt(0):(a.charCodeAt(0)<<10)+a.charCodeAt(1)-56613888},peekMultichar:function(){var a=this.text.charAt(this.index),b=this.peek();if(!b)return a;var c=a.charCodeAt(0),d=b.charCodeAt(0);return c>=55296&&c<=56319&&d>=56320&&d<=57343?a+b:a},isExpOperator:function(a){return a==="-"||a==="+"||this.isNumber(a)},throwError:function(a,b,c){c=c||this.index;var d=s(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,c)+"]":" "+c;throw gn("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",a,d,this.text)},readNumber:function(){var a="",b=this.index;while(this.index<this.text.length){var c=eK(this.text.charAt(this.index));if(c=="."||this.isNumber(c))a+=c;else{var d=this.peek();if(c=="e"&&this.isExpOperator(d))a+=c;else if(this.isExpOperator(c)&&d&&this.isNumber(d)&&a.charAt(a.length-1)=="e")a+=c;else if(this.isExpOperator(c)&&(!d||!this.isNumber(d))&&a.charAt(a.length-1)=="e")this.throwError("Invalid exponent");else break}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){var a=this.index;this.index+=this.peekMultichar().length;while(this.index<this.text.length){var b=this.peekMultichar();if(!this.isIdentifierContinue(b))break;this.index+=b.length}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;var c="",d=a,e=!1;while(this.index<this.text.length){var f=this.text.charAt(this.index);d+=f;if(e){if(f==="u"){var g=this.text.substring(this.index+1,this.index+5);g.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+g+"]"),this.index+=4,c+=String.fromCharCode(parseInt(g,16))}else{var h=gs[f];c+=h||f}e=!1}else if(f==="\\")e=!0;else{if(f===a){this.index++,this.tokens.push({index:b,text:d,constant:!0,value:c});return}c+=f}this.index++}this.throwError("Unterminated quote",b)}};var gu=function(a,b){this.lexer=a,this.options=b};gu.Program="Program",gu.ExpressionStatement="ExpressionStatement",gu.AssignmentExpression="AssignmentExpression",gu.ConditionalExpression="ConditionalExpression",gu.LogicalExpression="LogicalExpression",gu.BinaryExpression="BinaryExpression",gu.UnaryExpression="UnaryExpression",gu.CallExpression="CallExpression",gu.MemberExpression="MemberExpression",gu.Identifier="Identifier",gu.Literal="Literal",gu.ArrayExpression="ArrayExpression",gu.Property="Property",gu.ObjectExpression="ObjectExpression",gu.ThisExpression="ThisExpression",gu.LocalsExpression="LocalsExpression",gu.NGValueParameter="NGValueParameter",gu.prototype={ast:function(a){this.text=a,this.tokens=this.lexer.lex(a);var b=this.program();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),b},program:function(){var a=[];for(;;){this.tokens.length>0&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement());if(!this.expect(";"))return{type:gu.Program,body:a}}},expressionStatement:function(){return{type:gu.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){var a=this.expression(),b;while(b=this.expect("|"))a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();return this.expect("=")&&(a={type:gu.AssignmentExpression,left:a,right:this.assignment(),operator:"="}),a},ternary:function(){var a=this.logicalOR(),b,c;if(this.expect("?")){b=this.expression();if(this.consume(":"))return c=this.expression(),{type:gu.ConditionalExpression,test:a,alternate:b,consequent:c}}return a},logicalOR:function(){var a=this.logicalAND();while(this.expect("||"))a={type:gu.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){var a=this.equality();while(this.expect("&&"))a={type:gu.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){var a=this.relational(),b;while(b=this.expect("==","!=","===","!=="))a={type:gu.BinaryExpression,operator:b.text,left:a,right:this.relational()};return a},relational:function(){var a=this.additive(),b;while(b=this.expect("<",">","<=",">="))a={type:gu.BinaryExpression,operator:b.text,left:a,right:this.additive()};return a},additive:function(){var a=this.multiplicative(),b;while(b=this.expect("+","-"))a={type:gu.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){var a=this.unary(),b;while(b=this.expect("*","/","%"))a={type:gu.BinaryExpression,operator:b.text,left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:gu.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?a=O(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?a={type:gu.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());var b;while(b=this.expect("(","[","."))b.text==="("?(a={type:gu.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):b.text==="["?(a={type:gu.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):b.text==="."?a={type:gu.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){var b=[a],c={type:gu.CallExpression,callee:this.identifier(),arguments:b,filter:!0};while(this.expect(":"))b.push(this.expression());return c},parseArguments:function(){var a=[];if(this.peekToken().text!==")")do a.push(this.filterChain());while(this.expect(","));return a},identifier:function(){var a=this.consume();return a.identifier||this.throwError("is not a valid identifier",a),{type:gu.Identifier,name:a.text}},constant:function(){return{type:gu.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:gu.ArrayExpression,elements:a}},object:function(){var a=[],b;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;b={type:gu.Property,kind:"init"},this.peek().constant?(b.key=this.constant(),b.computed=!1,this.consume(":"),b.value=this.expression()):this.peek().identifier?(b.key=this.identifier(),b.computed=!1,this.peek(":")?(this.consume(":"),b.value=this.expression()):b.value=b.key):this.peek("[")?(this.consume("["),b.key=this.expression(),this.consume("]"),b.computed=!0,this.consume(":"),b.value=this.expression()):this.throwError("invalid key",this.peek()),a.push(b)}while(this.expect(","));return this.consume("}"),{type:gu.ObjectExpression,properties:a}},throwError:function(a,b){throw gn("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",b.text,a,b.index+1,this.text,this.text.substring(b.index))},consume:function(a){if(this.tokens.length===0)throw gn("ueoe","Unexpected end of expression: {0}",this.text);var b=this.expect(a);return b||this.throwError("is unexpected, expecting ["+a+"]",this.peek()),b},peekToken:function(){if(this.tokens.length===0)throw gn("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(a,b,c,d){return this.peekAhead(0,a,b,c,d)},peekAhead:function(a,b,c,d,e){if(this.tokens.length>a){var f=this.tokens[a],g=f.text;if(g===b||g===c||g===d||g===e||!b&&!c&&!d&&!e)return f}return!1},expect:function(a,b,c,d){var e=this.peek(a,b,c,d);return e?(this.tokens.shift(),e):!1},selfReferential:{"this":{type:gu.ThisExpression},$locals:{type:gu.LocalsExpression}}},ds.prototype={compile:function(a,b){var c=this,e=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:b,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},dl(e,c.$filter);var f="",g;this.stage="assign";if(g=dp(e)){this.state.computing="assign";var h=this.nextId();this.recurse(g,h),this.return_(h),f="fn.assign="+this.generateFunction("assign","s,v,l")}var i=dm(e.body);c.stage="inputs",d(i,function(a,b){var d="fn"+b;c.state[d]={vars:[],body:[],own:{}},c.state.computing=d;var e=c.nextId();c.recurse(a,e),c.return_(e),c.state.inputs.push(d),a.watchId=b}),this.state.computing="fn",this.stage="main",this.recurse(e);var j='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+f+this.watchFns()+"return fn;",k=(new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",j))(this.$filter,dd,df,dg,de,dh,di,dj,a);return this.state=this.stage=undefined,k.literal=dq(e),k.constant=dr(e),k},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,c=this;return d(b,function(b){a.push("var "+b+"="+c.generateFunction(b,"s"))}),b.length&&a.push("fn.inputs=["+b.join(",")+"];"),a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;return d(this.state.filters,function(c,d){a.push(c+"=$filter("+b.escape(d)+")")}),a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,c,e,f,g){var h,i,j=this,k,l,m;e=e||n;if(!g&&s(a.watchId)){b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,c,e,f,!0));return}switch(a.type){case gu.Program:d(a.body,function(b,c){j.recurse(b.expression,undefined,undefined,function(a){i=a}),c!==a.body.length-1?j.current().body.push(i,";"):j.return_(i)});break;case gu.Literal:l=this.escape(a.value),this.assign(b,l),e(l);break;case gu.UnaryExpression:this.recurse(a.argument,undefined,undefined,function(a){i=a}),l=a.operator+"("+this.ifDefined(i,0)+")",this.assign(b,l),e(l);break;case gu.BinaryExpression:this.recurse(a.left,undefined,undefined,function(a){h=a}),this.recurse(a.right,undefined,undefined,function(a){i=a}),a.operator==="+"?l=this.plus(h,i):a.operator==="-"?l=this.ifDefined(h,0)+a.operator+this.ifDefined(i,0):l="("+h+")"+a.operator+"("+i+")",this.assign(b,l),e(l);break;case gu.LogicalExpression:b=b||this.nextId(),j.recurse(a.left,b),j.if_(a.operator==="&&"?b:j.not(b),j.lazyRecurse(a.right,b)),e(b);break;case gu.ConditionalExpression:b=b||this.nextId(),j.recurse(a.test,b),j.if_(b,j.lazyRecurse(a.alternate,b),j.lazyRecurse(a.consequent,b)),e(b);break;case gu.Identifier:b=b||this.nextId(),c&&(c.context=j.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),c.computed=!1,c.name=a.name),dd(a.name),j.if_(j.stage==="inputs"||j.not(j.getHasOwnProperty("l",a.name)),function(){j.if_(j.stage==="inputs"||"s",function(){f&&f!==1&&j.if_(j.not(j.nonComputedMember("s",a.name)),j.lazyAssign(j.nonComputedMember("s",a.name),"{}")),j.assign(b,j.nonComputedMember("s",a.name))})},b&&j.lazyAssign(b,j.nonComputedMember("l",a.name))),(j.state.expensiveChecks||du(a.name))&&j.addEnsureSafeObject(b),e(b);break;case gu.MemberExpression:h=c&&(c.context=this.nextId())||this.nextId(),b=b||this.nextId(),j.recurse(a.object,h,undefined,function(){j.if_(j.notNull(h),function(){f&&f!==1&&j.addEnsureSafeAssignContext(h);if(a.computed)i=j.nextId(),j.recurse(a.property,i),j.getStringValue(i),j.addEnsureSafeMemberName(i),f&&f!==1&&j.if_(j.not(j.computedMember(h,i)),j.lazyAssign(j.computedMember(h,i),"{}")),l=j.ensureSafeObject(j.computedMember(h,i)),j.assign(b,l),c&&(c.computed=!0,c.name=i);else{dd(a.property.name),f&&f!==1&&j.if_(j.not(j.nonComputedMember(h,a.property.name)),j.lazyAssign(j.nonComputedMember(h,a.property.name),"{}")),l=j.nonComputedMember(h,a.property.name);if(j.state.expensiveChecks||du(a.property.name))l=j.ensureSafeObject(l);j.assign(b,l),c&&(c.computed=!1,c.name=a.property.name)}},function(){j.assign(b,"undefined")}),e(b)},!!f);break;case gu.CallExpression:b=b||this.nextId(),a.filter?(i=j.filter(a.callee.name),k=[],d(a.arguments,function(a){var b=j.nextId();j.recurse(a,b),k.push(b)}),l=i+"("+k.join(",")+")",j.assign(b,l),e(b)):(i=j.nextId(),h={},k=[],j.recurse(a.callee,i,h,function(){j.if_(j.notNull(i),function(){j.addEnsureSafeFunction(i),d(a.arguments,function(a){j.recurse(a,j.nextId(),undefined,function(a){k.push(j.ensureSafeObject(a))})}),h.name?(j.state.expensiveChecks||j.addEnsureSafeObject(h.context),l=j.member(h.context,h.name,h.computed)+"("+k.join(",")+")"):l=i+"("+k.join(",")+")",l=j.ensureSafeObject(l),j.assign(b,l)},function(){j.assign(b,"undefined")}),e(b)}));break;case gu.AssignmentExpression:i=this.nextId(),h={};if(!dn(a.left))throw gn("lval","Trying to assign a value to a non l-value");this.recurse(a.left,undefined,h,function(){j.if_(j.notNull(h.context),function(){j.recurse(a.right,i),j.addEnsureSafeObject(j.member(h.context,h.name,h.computed)),j.addEnsureSafeAssignContext(h.context),l=j.member(h.context,h.name,h.computed)+a.operator+i,j.assign(b,l),e(b||l)})},1);break;case gu.ArrayExpression:k=[],d(a.elements,function(a){j.recurse(a,j.nextId(),undefined,function(a){k.push(a)})}),l="["+k.join(",")+"]",this.assign(b,l),e(l);break;case gu.ObjectExpression:k=[],m=!1,d(a.properties,function(a){a.computed&&(m=!0)}),m?(b=b||this.nextId(),this.assign(b,"{}"),d(a.properties,function(a){a.computed?(h=j.nextId(),j.recurse(a.key,h)):h=a.key.type===gu.Identifier?a.key.name:""+a.key.value,i=j.nextId(),j.recurse(a.value,i),j.assign(j.member(b,h,a.computed),i)})):(d(a.properties,function(b){j.recurse(b.value,a.constant?undefined:j.nextId(),undefined,function(a){k.push(j.escape(b.key.type===gu.Identifier?b.key.name:""+b.key.value)+":"+a)})}),l="{"+k.join(",")+"}",this.assign(b,l)),e(b||l);break;case gu.ThisExpression:this.assign(b,"s"),e("s");break;case gu.LocalsExpression:this.assign(b,"l"),e("l");break;case gu.NGValueParameter:this.assign(b,"v"),e("v")}},getHasOwnProperty:function(a,b){var c=a+"."+b,d=this.current().own;return d.hasOwnProperty(c)||(d[c]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")")),d[c]},assign:function(a,b){if(!a)return;return this.current().body.push(a,"=",b,";"),a},filter:function(a){return this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0)),this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,c){if(a===!0)b();else{var d=this.current().body;d.push("if(",a,"){"),b(),d.push("}"),c&&(d.push("else{"),c(),d.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){var c=/[$_a-zA-Z][$_a-zA-Z0-9]*/,d=/[^$_a-zA-Z0-9]/g;return c.test(b)?a+"."+b:a+'["'+b.replace(d,this.stringEscapeFn)+'"]'},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,c){return c?this.computedMember(a,b):this.nonComputedMember(a,b)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),";")},addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),";")},addEnsureSafeAssignContext:function(a){this.current().body.push(this.ensureSafeAssignContext(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},ensureSafeAssignContext:function(a){return"ensureSafeAssignContext("+a+",text)"},lazyRecurse:function(a,b,c,d,e,f){var g=this;return function(){g.recurse(a,b,c,d,e,f)}},lazyAssign:function(a,b){var c=this;return function(){c.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(v(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(a))return a.toString();if(a===!0)return"true";if(a===!1)return"false";if(a===null)return"null";if(typeof a=="undefined")return"undefined";throw gn("esc","IMPOSSIBLE")},nextId:function(a,b){var c="v"+this.state.nextId++;return a||this.current().vars.push(c+(b?"="+b:"")),c},current:function(){return this.state[this.state.computing]}},dt.prototype={compile:function(a,b){var c=this,e=this.astBuilder.ast(a);this.expression=a,this.expensiveChecks=b,dl(e,c.$filter);var f,g;if(f=dp(e))g=this.recurse(f);var h=dm(e.body),i;h&&(i=[],d(h,function(a,b){var d=c.recurse(a);a.input=d,i.push(d),a.watchId=b}));var j=[];d(e.body,function(a){j.push(c.recurse(a.expression))});var k=e.body.length===0?n:e.body.length===1?j[0]:function(a,b){var c;return d(j,function(d){c=d(a,b)}),c};return g&&(k.assign=function(a,b,c){return g(a,c,b)}),i&&(k.inputs=i),k.literal=dq(e),k.constant=dr(e),k},recurse:function(a,b,c){var e,f,g=this,h,i;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case gu.Literal:return this.value(a.value,b);case gu.UnaryExpression:return f=this.recurse(a.argument),this["unary"+a.operator](f,b);case gu.BinaryExpression:return e=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](e,f,b);case gu.LogicalExpression:return e=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](e,f,b);case gu.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case gu.Identifier:return dd(a.name,g.expression),g.identifier(a.name,g.expensiveChecks||du(a.name),b,c,g.expression);case gu.MemberExpression:return e=this.recurse(a.object,!1,!!c),a.computed||(dd(a.property.name,g.expression),f=a.property.name),a.computed&&(f=this.recurse(a.property)),a.computed?this.computedMember(e,f,b,c,g.expression):this.nonComputedMember(e,f,g.expensiveChecks,b,c,g.expression);case gu.CallExpression:return h=[],d(a.arguments,function(a){h.push(g.recurse(a))}),a.filter&&(f=this.$filter(a.callee.name)),a.filter||(f=this.recurse(a.callee,!0)),a.filter?function(a,c,d,e){var g=[];for(var i=0;i<h.length;++i)g.push(h[i](a,c,d,e));var j=f.apply(undefined,g,e);return b?{context:undefined,name:undefined,value:j}:j}:function(a,c,d,e){var i=f(a,c,d,e),j;if(i.value!=null){df(i.context,g.expression),dg(i.value,g.expression);var k=[];for(var l=0;l<h.length;++l)k.push(df(h[l](a,c,d,e),g.expression));j=df(i.value.apply(i.context,k),g.expression)}return b?{value:j}:j};case gu.AssignmentExpression:return e=this.recurse(a.left,!0,1),f=this.recurse(a.right),function(a,c,d,h){var i=e(a,c,d,h),j=f(a,c,d,h);return df(i.value,g.expression),dh(i.context),i.context[i.name]=j,b?{value:j}:j};case gu.ArrayExpression:return h=[],d(a.elements,function(a){h.push(g.recurse(a))}),function(a,c,d,e){var f=[];for(var g=0;g<h.length;++g)f.push(h[g](a,c,d,e));return b?{value:f}:f};case gu.ObjectExpression:return h=[],d(a.properties,function(a){a.computed?h.push({key:g.recurse(a.key),computed:!0,value:g.recurse(a.value)}):h.push({key:a.key.type===gu.Identifier?a.key.name:""+a.key.value,computed:!1,value:g.recurse(a.value)})}),function(a,c,d,e){var f={};for(var g=0;g<h.length;++g)h[g].computed?f[h[g].key(a,c,d,e)]=h[g].value(a,c,d,e):f[h[g].key]=h[g].value(a,c,d,e);return b?{value:f}:f};case gu.ThisExpression:return function(a){return b?{value:a}:a};case gu.LocalsExpression:return function(a,c){return b?{value:c}:c};case gu.NGValueParameter:return function(a,c,d){return b?{value:d}:d}}},"unary+":function(a,b){return function(c,d,e,f){var g=a(c,d,e,f);return s(g)?g=+g:g=0,b?{value:g}:g}},"unary-":function(a,b){return function(c,d,e,f){var g=a(c,d,e,f);return s(g)?g=-g:g=0,b?{value:g}:g}},"unary!":function(a,b){return function(c,d,e,f){var g=!a(c,d,e,f);return b?{value:g}:g}},"binary+":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g),i=b(d,e,f,g),j=dj(h,i);return c?{value:j}:j}},"binary-":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g),i=b(d,e,f,g),j=(s(h)?h:0)-(s(i)?i:0);return c?{value:j}:j}},"binary*":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)*b(d,e,f,g);return c?{value:h}:h}},"binary/":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)/b(d,e,f,g);return c?{value:h}:h}},"binary%":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)%b(d,e,f,g);return c?{value:h}:h}},"binary===":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)===b(d,e,f,g);return c?{value:h}:h}},"binary!==":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)!==b(d,e,f,g);return c?{value:h}:h}},"binary==":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)==b(d,e,f,g);return c?{value:h}:h}},"binary!=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)!=b(d,e,f,g);return c?{value:h}:h}},"binary<":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)<b(d,e,f,g);return c?{value:h}:h}},"binary>":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)>b(d,e,f,g);return c?{value:h}:h}},"binary<=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)<=b(d,e,f,g);return c?{value:h}:h}},"binary>=":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)>=b(d,e,f,g);return c?{value:h}:h}},"binary&&":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)&&b(d,e,f,g);return c?{value:h}:h}},"binary||":function(a,b,c){return function(d,e,f,g){var h=a(d,e,f,g)||b(d,e,f,g);return c?{value:h}:h}},"ternary?:":function(a,b,c,d){return function(e,f,g,h){var i=a(e,f,g,h)?b(e,f,g,h):c(e,f,g,h);return d?{value:i}:i}},value:function(a,b){return function(){return b?{context:undefined,name:undefined,value:a}:a}},identifier:function(a,b,c,d,e){return function(f,g,h,i){var j=g&&a in g?g:f;d&&d!==1&&j&&!j[a]&&(j[a]={});var k=j?j[a]:undefined;return b&&df(k,e),c?{context:j,name:a,value:k}:k}},computedMember:function(a,b,c,d,e){return function(f,g,h,i){var j=a(f,g,h,i),k,l;return j!=null&&(k=b(f,g,h,i),k=de(k),dd(k,e),d&&d!==1&&(dh(j),j&&!j[k]&&(j[k]={})),l=j[k],df(l,e)),c?{context:j,name:k,value:l}:l}},nonComputedMember:function(a,b,c,d,e,f){return function(g,h,i,j){var k=a(g,h,i,j);e&&e!==1&&(dh(k),k&&!k[b]&&(k[b]={}));var l=k!=null?k[b]:undefined;return(c||du(b))&&df(l,f),d?{context:k,name:b,value:l}:l}},inputs:function(a,b){return function(c,d,e,f){return f?f[b]:a(c,d,e)}}};var gv=function(a,b,c){this.lexer=a,this.$filter=b,this.options=c,this.ast=new gu(a,c),this.astCompiler=c.csp?new dt(this.ast,b):new ds(this.ast,b)};gv.prototype={constructor:gv,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};var gw=Object.prototype.valueOf,gx=b("$sce"),gy={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},gz=b("$compile"),gA=a.document.createElement("a"),gB=dL(a.location.href);dO.$inject=["$document"],dQ.$inject=["$provide"];var gC=22,gD=".",gE="0";dV.$inject=["$locale"],dW.$inject=["$locale"];var gF={yyyy:d_("FullYear",4,0,!1,!0),yy:d_("FullYear",2,0,!0,!0),y:d_("FullYear",1,0,!1,!0),MMMM:ea("Month"),MMM:ea("Month",!0),MM:d_("Month",2,1),M:d_("Month",1,1),LLLL:ea("Month",!1,!0),dd:d_("Date",2),d:d_("Date",1),HH:d_("Hours",2),H:d_("Hours",1),hh:d_("Hours",2,-12),h:d_("Hours",1,-12),mm:d_("Minutes",2),m:d_("Minutes",1),ss:d_("Seconds",2),s:d_("Seconds",1),sss:d_("Milliseconds",3),EEEE:ea("Day"),EEE:ea("Day",!0),a:ef,Z:eb,ww:ee(2),w:ee(1),G:eg,GG:eg,GGG:eg,GGGG:eh},gG=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,gH=/^\-?\d+$/;ei.$inject=["$locale"];var gI=p(eK),gJ=p(eL);em.$inject=["$parse"];var gK=p({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if(b[0].nodeName.toLowerCase()!=="a")return;var c=eU.call(b.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";b.on("click",function(a){b.attr(c)||a.preventDefault()})}}}),gL={};d(fE,function(a,b){function c(a,c,e){a.$watch(e[d],function(a){e.$set(b,!!a)})}if(a=="multiple")return;var d=cr("ng-"+b),e=c;a==="checked"&&(e=function(a,b,e){e.ngModel!==e[d]&&c(a,b,e)}),gL[d]=function(){return{restrict:"A",priority:100,link:e}}}),d(fG,function(a,b){gL[b]=function(){return{priority:100,link:function(a,c,d){if(b==="ngPattern"&&d.ngPattern.charAt(0)=="/"){var e=d.ngPattern.match(eH);if(e){d.$set("ngPattern",new RegExp(e[1],e[2]));return}}a.$watch(d[b],function(a){d.$set(b,a)})}}}}),d(["src","srcset","href"],function(a){var b=cr("ng-"+a);gL[b]=function(){return{priority:99,link:function(c,d,e){var f=a,g=a;a==="href"&&eU.call(d.prop("href"))==="[object SVGAnimatedString]"&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null),e.$observe(b,function(b){if(!b){a==="href"&&e.$set(g,null);return}e.$set(g,b),eO&&f&&d.prop(f,e[g])})}}}});var gM={$addControl:n,$$renameControl:eo,$removeControl:n,$setValidity:n,$setDirty:n,$setPristine:n,$setSubmitted:n},gN="ng-submitted";ep.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var gO=function(a){return["$timeout","$parse",function(b,c){function d(a){return a===""?c('this[""]').assign:c(a).assign||n}var e={name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:ep,compile:function f(c,e){c.addClass(hw).addClass(hu);var f=e.name?"name":a&&e.ngForm?"ngForm":!1;return{pre:function g(a,c,e,g){var h=g[0];if(!("action"in e)){var i=function(b){a.$apply(function(){h.$commitViewValue(),h.$setSubmitted()}),b.preventDefault()};fr(c[0],"submit",i),c.on("$destroy",function(){b(function(){fs(c[0],"submit",i)},0,!1)})}var k=g[1]||h.$$parentForm;k.$addControl(h);var l=f?d(h.$name):n;f&&(l(a,h),e.$observe(f,function(b){if(h.$name===b)return;l(a,undefined),h.$$parentForm.$$renameControl(h,b),l=d(h.$name),l(a,h)})),c.on("$destroy",function(){h.$$parentForm.$removeControl(h),l(a,undefined),j(h,gM)})}}}};return e}]},gP=gO(),gQ=gO(!0),gR=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,gS=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,gT=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,gU=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,gV=/^(\d{4,})-(\d{2})-(\d{2})$/,gW=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,gX=/^(\d{4,})-W(\d\d)$/,gY=/^(\d{4,})-(\d\d)$/,gZ=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,g$="keydown wheel mousedown",g_=bp();d("date,datetime-local,month,time,week".split(","),function(a){g_[a]=!0});var ha={text:er,date:ev("date",gV,eu(gV,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ev("datetimelocal",gW,eu(gW,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ev("time",gZ,eu(gZ,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ev("week",gX,et,"yyyy-Www"),month:ev("month",gY,eu(gY,["yyyy","MM"]),"yyyy-MM"),number:ex,url:ey,email:ez,radio:eA,checkbox:eC,hidden:n,button:n,submit:n,reset:n,file:n},hb=["$browser","$sniffer","$filter","$parse",function(a,b,c,d){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,h){h[0]&&(ha[eK(g.type)]||ha.text)(e,f,g,h[0],b,a,c,d)}}}}],hc=/^(true|false|\d+)$/,hd=function(){return{restrict:"A",priority:100,compile:function(a,b){return hc.test(b.ngValue)?function c(a,b,c){c.$set("value",a.$eval(c.ngValue))}:function(a,b,c){a.$watch(c.ngValue,function(a){c.$set("value",a)})}}}},he=["$compile",function(a){return{restrict:"AC",compile:function b(b){return a.$$addBindingClass(b),function c(b,c,d){a.$$addBindingInfo(c,d.ngBind),c=c[0],b.$watch(d.ngBind,function(a){c.textContent=r(a)?"":a})}}}}],hf=["$interpolate","$compile",function(a,b){return{compile:function c(c){return b.$$addBindingClass(c),function d(c,d,e){var f=a(d.attr(e.$attr.ngBindTemplate));b.$$addBindingInfo(d,f.expressions),d=d[0],e.$observe("ngBindTemplate",function(a){d.textContent=r(a)?"":a})}}}}],hg=["$sce","$parse","$compile",function(a,b,c){return{restrict:"A",compile:function d(d,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(b){return a.valueOf(b)});return c.$$addBindingClass(d),function(b,d,e){c.$$addBindingInfo(d,e.ngBindHtml),b.$watch(g,function(){var c=f(b);d.html(a.getTrustedHtml(c)||"")})}}}}],hh=p({restrict:"A",require:"ngModel",link:function(a,b,c,d){d.$viewChangeListeners.push(function(){a.$eval(c.ngChange)})}}),hi=eD("",!0),hj=eD("Odd",0),hk=eD("Even",1),hl=en({compile:function(a,b){b.$set("ngCloak",undefined),a.removeClass("ng-cloak")}}),hm=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],hn={},ho={blur:!0,focus:!0};d("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=cr("ng-"+a);hn[b]=["$parse","$rootScope",function(c,d){return{restrict:"A",compile:function(e,f){var g=c(f[b],null,!0);return function(b,c){c.on(a,function(c){var e=function(){g(b,{$event:c})};ho[a]&&d.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var hp=["$animate","$compile",function(a,b){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,g){var h,i,j;c.$watch(e.ngIf,function(c){c?i||g(function(c,f){i=f,c[c.length++]=b.$$createComment("end ngIf",e.ngIf),h={clone:c},a.enter(c,d.parent(),d)}):(j&&(j.remove(),j=null),i&&(i.$destroy(),i=null),h&&(j=bo(h.clone),a.leave(j).then(function(){j=null}),h=null))})}}}],hq=["$templateRequest","$anchorScroll","$animate",function(a,b,c){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:eX.noop,compile:function(d,e){var f=e.ngInclude||e.src,g=e.onload||"",h=e.autoscroll;return function(d,e,i,j,k){var l=0,m,n,o,p=function(){n&&(n.remove(),n=null),m&&(m.$destroy(),m=null),o&&(c.leave(o).then(function(){n=null}),n=o,o=null)};d.$watch(f,function(f){var i=function(){s(h)&&(!h||d.$eval(h))&&b()},n=++l;f?(a(f,!0).then(function(a){if(d.$$destroyed)return;if(n!==l)return;var b=d.$new();j.template=a;var h=k(b,function(a){p(),c.enter(a,null,e).then(i)});m=b,o=h,m.$emit("$includeContentLoaded",f),d.$eval(g)},function(){if(d.$$destroyed)return;n===l&&(p(),d.$emit("$includeContentError",f))}),d.$emit("$includeContentRequested",f)):(p(),j.template=null)})}}}}],hr=["$compile",function(b){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){if(eU.call(d[0]).match(/SVG/)){d.empty(),b(bB(f.template,a.document).childNodes)(c,function(a){d.append(a)},{futureParentElement:d});return}d.html(f.template),b(d.contents())(c)}}}],hs=en({priority:450,compile:function(){return{pre:function(a,b,c){a.$eval(c.ngInit)}}}}),ht=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,c,e){var f=b.attr(c.$attr.ngList)||", ",g=c.ngTrim!=="false",h=g?fa(f):f,i=function(a){if(r(a))return;var b=[];return a&&d(a.split(h),function(a){a&&b.push(g?fa(a):a)}),b};e.$parsers.push(i),e.$formatters.push(function(a){return e$(a)?a.join(f):undefined}),e.$isEmpty=function(a){return!a||!a.length}}}},hu="ng-valid",hv="ng-invalid",hw="ng-pristine",hx="ng-dirty",hy="ng-untouched",hz="ng-touched",hA="ng-pending",hB="ng-empty",hC="ng-not-empty",hD=b("ngModel"),hE=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,b,c,e,f,g,h,i,j,k){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=undefined,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=undefined,this.$name=k(c.name||"",!1)(a),this.$$parentForm=gM;var l=f(c.ngModel),m=l.assign,o=l,p=m,q=null,t,u=this;this.$$setOptions=function(a){u.$options=a;if(a&&a.getterSetter){var b=f(c.ngModel+"()"),d=f(c.ngModel+"($$$p)");o=function(a){var c=l(a);return y(c)&&(c=b(a)),c},p=function(a,b){y(l(a))?d(a,{$$$p:b}):m(a,b)}}else if(!l.assign)throw hD("nonassign","Expression '{0}' is non-assignable. Element: {1}",c.ngModel,Z(e))},this.$render=n,this.$isEmpty=function(a){return r(a)||a===""||a===null||a!==a},this.$$updateEmptyClasses=function(a){u.$isEmpty(a)?(g.removeClass(e,hC),g.addClass(e,hB)):(g.removeClass(e,hB),g.addClass(e,hC))};var v=0;eE({ctrl:this,$element:e,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]},$animate:g}),this.$setPristine=function(){u.$dirty=!1,u.$pristine=!0,g.removeClass(e,hx),g.addClass(e,hw)},this.$setDirty=function(){u.$dirty=!0,u.$pristine=!1,g.removeClass(e,hw),g.addClass(e,hx),u.$$parentForm.$setDirty()},this.$setUntouched=function(){u.$touched=!1,u.$untouched=!0,g.setClass(e,hy,hz)},this.$setTouched=function(){u.$touched=!0,u.$untouched=!1,g.setClass(e,hz,hy)},this.$rollbackViewValue=function(){h.cancel(q),u.$viewValue=u.$$lastCommittedViewValue,u.$render()},this.$validate=function(){if(w(u.$modelValue)&&isNaN(u.$modelValue))return;var a=u.$$lastCommittedViewValue,b=u.$$rawModelValue,c=u.$valid,d=u.$modelValue,e=u.$options&&u.$options.allowInvalid;u.$$runValidators(b,a,function(a){!e&&c!==a&&(u.$modelValue=a?b:undefined,u.$modelValue!==d&&u.$$writeModelToScope())})},this.$$runValidators=function(a,b,c){function e(){var a=u.$$parserName||"parse";if(r(t))h(a,null);else return t||(d(u.$validators,function(a,b){h(b,null)}),d(u.$asyncValidators,function(a,b){h(b,null)})),h(a,t),t;return!0}function f(){var c=!0;return d(u.$validators,function(d,e){var f=d(a,b);c=c&&f,h(e,f)}),c?!0:(d(u.$asyncValidators,function(a,b){h(b,null)}),!1)}function g(){var c=[],e=!0;d(u.$asyncValidators,function(d,f){var g=d(a,b);if(!G(g))throw hD("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",g);h(f,undefined),c.push(g.then(function(){h(f,!0)},function(){e=!1,h(f,!1)}))}),c.length?j.all(c).then(function(){i(e)},n):i(!0)}function h(a,b){k===v&&u.$setValidity(a,b)}function i(a){k===v&&c(a)}v++;var k=v;if(!e()){i(!1);return}if(!f()){i(!1);return}g()},this.$commitViewValue=function(){var a=u.$viewValue;h.cancel(q);if(u.$$lastCommittedViewValue!==a||a===""&&!!u.$$hasNativeValidators)u.$$updateEmptyClasses(a),u.$$lastCommittedViewValue=a,u.$pristine&&this.$setDirty(),this.$$parseAndValidate();else return},this.$$parseAndValidate=function(){function b(){u.$modelValue!==f&&u.$$writeModelToScope()}var c=u.$$lastCommittedViewValue,d=c;t=r(d)?undefined:!0;if(t)for(var e=0;e<u.$parsers.length;e++){d=u.$parsers[e](d);if(r(d)){t=!1;break}}w(u.$modelValue)&&isNaN(u.$modelValue)&&(u.$modelValue=o(a));var f=u.$modelValue,g=u.$options&&u.$options.allowInvalid;u.$$rawModelValue=d,g&&(u.$modelValue=d,b()),u.$$runValidators(d,u.$$lastCommittedViewValue,function(a){g||(u.$modelValue=a?d:undefined,b())})},this.$$writeModelToScope=function(){p(a,u.$modelValue),d(u.$viewChangeListeners,function(a){try{a()}catch(c){b(c)}})},this.$setViewValue=function(a,b){u.$viewValue=a,(!u.$options||u.$options.updateOnDefault)&&u.$$debounceViewValueCommit(b)},this.$$debounceViewValueCommit=function(b){var c=0,d=u.$options,e;d&&s(d.debounce)&&(e=d.debounce,w(e)?c=e:w(e[b])?c=e[b]:w(e["default"])&&(c=e["default"])),h.cancel(q),c?q=h(function(){u.$commitViewValue()},c):i.$$phase?u.$commitViewValue():a.$apply(function(){u.$commitViewValue()})},a.$watch(function(){var b=o(a);if(b!==u.$modelValue&&(u.$modelValue===u.$modelValue||b===b)){u.$modelValue=u.$$rawModelValue=b,t=undefined;var c=u.$formatters,d=c.length,e=b;while(d--)e=c[d](e);u.$viewValue!==e&&(u.$$updateEmptyClasses(e),u.$viewValue=u.$$lastCommittedViewValue=e,u.$render(),u.$$runValidators(b,e,n))}return b})}],hF=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:hE,priority:1,compile:function b(b){return b.addClass(hw).addClass(hy).addClass(hu),{pre:function c(a,b,c,d){var e=d[0],f=d[1]||e.$$parentForm;e.$$setOptions(d[2]&&d[2].$options),f.$addControl(e),c.$observe("name",function(a){e.$name!==a&&e.$$parentForm.$$renameControl(e,a)}),a.$on("$destroy",function(){e.$$parentForm.$removeControl(e)})},post:function(b,c,d,e){var f=e[0];f.$options&&f.$options.updateOn&&c.on(f.$options.updateOn,function(a){f.$$debounceViewValueCommit(a&&a.type)}),c.on("blur",function(){if(f.$touched)return;a.$$phase?b.$evalAsync(f.$setTouched):b.$apply(f.$setTouched)})}}}}}],hG=/(\s+|^)default(\s+|$)/,hH=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,b){var c=this;this.$options=O(a.$eval(b.ngModelOptions)),s(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=fa(this.$options.updateOn.replace(hG,function(){return c.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},hI=en({terminal:!0,priority:1e3}),hJ=b("ngOptions"),hK=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,hL=["$compile","$document","$parse",function(b,e,f){function g(a,b,d){function e(a,b,c,d,e){this.selectValue=a,this.viewValue=b,this.label=c,this.group=d,this.disabled=e}function g(a){var b;if(!j&&c(a))b=a;else{b=[];for(var d in a)a.hasOwnProperty(d)&&d.charAt(0)!=="$"&&b.push(d)}return b}var h=a.match(hK);if(!h)throw hJ("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",a,Z(b));var i=h[5]||h[7],j=h[6],k=/ as /.test(h[0])&&h[1],l=h[9],m=f(h[2]?h[1]:i),n=k&&f(k),o=n||m,p=l&&f(l),q=l?function(a,b){return p(d,b)}:function(a){return b$(a)},r=function(a,b){return q(a,x(a,b))},s=f(h[2]||h[1]),t=f(h[3]||""),u=f(h[4]||""),v=f(h[8]),w={},x=j?function(a,b){return w[j]=b,w[i]=a,w}:function(a){return w[i]=a,w};return{trackBy:l,getTrackByValue:r,getWatchables:f(v,function(a){var b=[];a=a||[];var c=g(a),e=c.length;for(var f=0;f<e;f++){var i=a===c?f:c[f],j=a[i],k=x(j,i),l=q(j,k);b.push(l);if(h[2]||h[1]){var m=s(d,k);b.push(m)}if(h[4]){var n=u(d,k);b.push(n)}}return b}),getOptions:function(){var a=[],b={},c=v(d)||[],f=g(c),h=f.length;for(var i=0;i<h;i++){var j=c===f?i:f[i],k=c[j],m=x(k,j),n=o(d,m),p=q(n,m),w=s(d,m),y=t(d,m),z=u(d,m),A=new e(p,n,w,y,z);a.push(A),b[p]=A}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[r(a)]},getViewValueFromOption:function(a){return l?eX.copy(a.viewValue):a.viewValue}}}}}function h(a,c,f,h){function k(a,b){var c=i.cloneNode(!1);b.appendChild(c),l(a,c)}function l(a,b){a.element=b,b.disabled=a.disabled,a.label!==b.label&&(b.label=a.label,b.textContent=a.label),a.value!==b.value&&(b.value=a.selectValue)}function m(){var a=x&&n.readValue();if(x)for(var b=x.items.length-1;b>=0;b--){var d=x.items[b];d.group?bS(d.element.parentNode):bS(d.element)}x=y.getOptions();var e={};v&&c.prepend(q),x.items.forEach(function(a){var b;s(a.group)?(b=e[a.group],b||(b=j.cloneNode(!1),z.appendChild(b),b.label=a.group,e[a.group]=b),k(a,b)):k(a,z)}),c[0].appendChild(z),o.$render();if(!o.$isEmpty(a)){var f=n.readValue(),g=y.trackBy||p;if(g?!P(a,f):a!==f)o.$setViewValue(f),o.$render()}}var n=h[0],o=h[1],p=f.multiple,q;for(var r=0,t=c.children(),u=t.length;r<u;r++)if(t[r].value===""){q=t.eq(r);break}var v=!!q,w=eP(i.cloneNode(!1));w.val("?");var x,y=g(f.ngOptions,c,a),z=e[0].createDocumentFragment(),A=function(){v||c.prepend(q),c.val(""),q.prop("selected",!0),q.attr("selected",!0)},B=function(){v||q.remove()},C=function(){c.prepend(w),c.val("?"),w.prop("selected",!0),w.attr("selected",!0)},D=function(){w.remove()};p?(o.$isEmpty=function(a){return!a||a.length===0},n.writeValue=function(a){x.items.forEach(function(a){a.element.selected=!1}),a&&a.forEach(function(a){var b=x.getOptionFromViewValue(a);b&&(b.element.selected=!0)})},n.readValue=function(){var a=c.val()||[],b=[];return d(a,function(a){var c=x.selectValueMap[a];c&&!c.disabled&&b.push(x.getViewValueFromOption(c))}),b},y.trackBy&&a.$watchCollection(function(){if(e$(o.$viewValue))return o.$viewValue.map(function(a){return y.getTrackByValue(a)})},function(){o.$render()})):(n.writeValue=function(a){var b=x.getOptionFromViewValue(a);b?(c[0].value!==b.selectValue&&(D(),B(),c[0].value=b.selectValue,b.element.selected=!0),b.element.setAttribute("selected","selected")):a===null||v?(D(),A()):(B(),C())},n.readValue=function(){var a=x.selectValueMap[c.val()];return a&&!a.disabled?(B(),D(),x.getViewValueFromOption(a)):null},y.trackBy&&a.$watch(function(){return y.getTrackByValue(o.$viewValue)},function(){o.$render()})),v?(q.remove(),b(q)(a),q.removeClass("ng-scope")):q=eP(i.cloneNode(!1)),c.empty(),m(),a.$watchCollection(y.getWatchables,m)}var i=a.document.createElement("option"),j=a.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=n},post:h}}}],hM=["$locale","$interpolate","$log",function(a,b,c){var e=/{}/g,f=/^when(Minus)?(.+)$/;return{link:function(g,h,i){function j(a){h.text(a||"")}var k=i.count,l=i.$attr.when&&h.attr(i.$attr.when),m=i.offset||0,o=g.$eval(l)||{},p={},q=b.startSymbol(),s=b.endSymbol(),t=q+k+"-"+m+s,u=eX.noop,v;d(i,function(a,b){var c=f.exec(b);if(c){var d=(c[1]?"-":"")+eK(c[2]);o[d]=h.attr(i.$attr[b])}}),d(o,function(a,c){p[c]=b(a.replace(e,t))}),g.$watch(k,function(b){var d=parseFloat(b),e=isNaN(d);!e&&!(d in o)&&(d=a.pluralCat(d-m));if(d!==v&&!(e&&w(v)&&isNaN(v))){u();var f=p[d];r(f)?(b!=null&&c.debug("ngPluralize: no rule defined for '"+d+"' in "+l),u=n,j()):u=g.$watch(f,j),v=d}})}}}],hN=["$parse","$animate","$compile",function(a,e,f){var g="$$NG_REMOVED",h=b("ngRepeat"),i=function(a,b,c,d,e,f,g){a[c]=d,e&&(a[e]=f),a.$index=b,a.$first=b===0,a.$last=b===g-1,a.$middle=!a.$first&&!a.$last,a.$odd=!(a.$even=(b&1)===0)},j=function(a){return a.clone[0]},k=function(a){return a.clone[a.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function l(b,l){var m=l.ngRepeat,n=f.$$createComment("end ngRepeat",m),o=m.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!o)throw h("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",m);var p=o[1],q=o[2],r=o[3],s=o[4];o=p.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!o)throw h("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);var t=o[3]||o[1],u=o[2];if(r&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(r)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(r)))throw h("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",r);var v,w,x,y,z={$id:b$};return s?v=a(s):(x=function(a,b){return b$(b)},y=function(a){return a}),function(a,b,f,l,o){v&&(w=function(b,c,d){return u&&(z[u]=b),z[t]=c,z.$index=d,v(a,z)});var p=bp();a.$watchCollection(q,function s(f){var l,q,s=b[0],v,z=bp(),A,B,C,D,E,F,G,H,I;r&&(a[r]=f);if(c(f))F=f,E=w||x;else{E=w||y,F=[];for(var J in f)eJ.call(f,J)&&J.charAt(0)!=="$"&&F.push(J)}A=F.length,H=new Array(A);for(l=0;l<A;l++){B=f===F?l:F[l],C=f[B],D=E(B,C,l);if(p[D])G=p[D],delete p[D],z[D]=G,H[l]=G;else{if(z[D])throw d(H,function(a){a&&a.scope&&(p[a.id]=a)}),h("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",m,D,C);H[l]={id:D,scope:undefined,clone:undefined},z[D]=!0}}for(var K in p){G=p[K],I=bo(G.clone),e.leave(I);if(I[0].parentNode)for(l=0,q=I.length;l<q;l++)I[l][g]=!0;G.scope.$destroy()}for(l=0;l<A;l++){B=f===F?l:F[l],C=f[B],G=H[l];if(G.scope){v=s;do v=v.nextSibling;while(v&&v[g]);j(G)!=v&&e.move(bo(G.clone),null,s),s=k(G),i(G.scope,l,t,C,u,B,A)}else o(function(a,b){G.scope=b;var c=n.cloneNode(!1);a[a.length++]=c,e.enter(a,null,s),s=c,G.clone=a,z[G.id]=G,i(G.scope,l,t,C,u,B,A)})}p=z})}}}}],hO="ng-hide",hP="ng-hide-animate",hQ=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngShow,function(b){a[b?"removeClass":"addClass"](c,hO,{tempClasses:hP})})}}}],hR=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,c,d){b.$watch(d.ngHide,function(b){a[b?"addClass":"removeClass"](c,hO,{tempClasses:hP})})}}}],hS=en(function(a,b,c){a.$watch(c.ngStyle,function(a,c){c&&a!==c&&d(c,function(a,c){b.css(c,"")}),a&&b.css(a)},!0)}),hT=["$animate","$compile",function(a,b){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,e,f,g){var h=f.ngSwitch||f.on,i=[],j=[],k=[],l=[],m=function(a,b){return function(){a.splice(b,1)}};c.$watch(h,function n(c){var e,f;for(e=0,f=k.length;e<f;++e)a.cancel(k[e]);k.length=0;for(e=0,f=l.length;e<f;++e){var h=bo(j[e].clone);l[e].$destroy();var n=k[e]=a.leave(h);n.then(m(k,e))}j.length=0,l.length=0,(i=g.cases["!"+c]||g.cases["?"])&&d(i,function(c){c.transclude(function(d,e){l.push(e);var f=c.element;d[d.length++]=b.$$createComment("end ngSwitchWhen");var g={clone:d};j.push(g),a.enter(d,f.parent(),f)})})})}}}],hU=en({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){d.cases["!"+c.ngSwitchWhen]=d.cases["!"+c.ngSwitchWhen]||[],d.cases["!"+c.ngSwitchWhen].push({transclude:e,element:b})}}),hV=en({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,c,d,e){d.cases["?"]=d.cases["?"]||[],d.cases["?"].push({transclude:e,element:b})}}),hW=b("ngTransclude"),hX=en({restrict:"EAC",link:function(a,b,c,d,e){function f(a){a.length&&(b.empty(),b.append(a))}c.ngTransclude===c.$attr.ngTransclude&&(c.ngTransclude="");if(!e)throw hW("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Z(b));var g=c.ngTransclude||c.ngTranscludeSlot;e(f,null,g)}}),hY=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,c){if(c.type=="text/ng-template"){var d=c.id,e=b[0].text;a.put(d,e)}}}}],hZ={$setViewValue:n,$render:n},h$=["$element","$scope",function(b,c){var d=this,e=new b_;d.ngModelCtrl=hZ,d.unknownOption=eP(a.document.createElement("option")),d.renderUnknownOption=function(a){var c="? "+b$(a)+" ?";d.unknownOption.val(c),b.prepend(d.unknownOption),b.val(c)},c.$on("$destroy",function(){d.renderUnknownOption=n}),d.removeUnknownOption=function(){d.unknownOption.parent()&&d.unknownOption.remove()},d.readValue=function(){return d.removeUnknownOption(),b.val()},d.writeValue=function(a){d.hasOption(a)?(d.removeUnknownOption(),b.val(a),a===""&&d.emptyOption.prop("selected",!0)):a==null&&d.emptyOption?(d.removeUnknownOption(),b.val("")):d.renderUnknownOption(a)},d.addOption=function(a,b){if(b[0].nodeType===fl)return;bm(a,'"option value"'),a===""&&(d.emptyOption=b);var c=e.get(a)||0;e.put(a,c+1),d.ngModelCtrl.$render(),eG(b)},d.removeOption=function(a){var b=e.get(a);b&&(b===1?(e.remove(a),a===""&&(d.emptyOption=undefined)):e.put(a,b-1))},d.hasOption=function(a){return!!e.get(a)},d.registerOption=function(a,b,c,e,f){if(e){var g;c.$observe("value",function(a){s(g)&&d.removeOption(g),g=a,d.addOption(a,b)})}else f?a.$watch(f,function(a,e){c.$set("value",a),e!==a&&d.removeOption(e),d.addOption(a,b)}):d.addOption(c.value,b);b.on("$destroy",function(){d.removeOption(c.value),d.ngModelCtrl.$render()})}}],h_=function(){function a(a,b,c,e){var f=e[1];if(!f)return;var g=e[0];g.ngModelCtrl=f,b.on("change",function(){a.$apply(function(){f.$setViewValue(g.readValue())})});if(c.multiple){g.readValue=function(){var a=[];return d(b.find("option"),function(b){b.selected&&a.push(b.value)}),a},g.writeValue=function(a){var c=new b_(a);d(b.find("option"),function(a){a.selected=s(c.get(a.value))})};var h,i=NaN;a.$watch(function(){i===f.$viewValue&&!P(h,f.$viewValue)&&(h=br(f.$viewValue),f.$render()),i=f.$viewValue}),f.$isEmpty=function(a){return!a||a.length===0}}}function b(a,b,c,d){var e=d[1];if(!e)return;var f=d[0];e.$render=function(){f.writeValue(e.$viewValue)}}return{restrict:"E",require:["select","?ngModel"],controller:h$,priority:1,link:{pre:a,post:b}}},ia=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,c){if(s(c.value))var d=a(c.value,!0);else{var e=a(b.text(),!0);e||c.$set("value",b.text())}return function(a,b,c){var f="$selectController",g=b.parent(),h=g.data(f)||g.parent().data(f);h&&h.registerOption(a,b,c,d,e)}}}}],ib=p({restrict:"E",terminal:!1}),ic=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(!d)return;c.required=!0,d.$validators.required=function(a,b){return!c.required||!d.$isEmpty(b)},c.$observe("required",function(){d.$validate()})}}},id=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(!e)return;var f,g=d.ngPattern||d.pattern;d.$observe("pattern",function(a){v(a)&&a.length>0&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw b("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",g,a,Z(c));f=a||undefined,e.$validate()}),e.$validators.pattern=function(a,b){return e.$isEmpty(b)||r(f)||f.test(b)}}}},ie=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(!d)return;var e=-1;c.$observe("maxlength",function(a){var b=l(a);e=isNaN(b)?-1:b,d.$validate()}),d.$validators.maxlength=function(a,b){return e<0||d.$isEmpty(b)||b.length<=e}}}},ig=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,c,d){if(!d)return;var e=0;c.$observe("minlength",function(a){e=l(a)||0,d.$validate()}),d.$validators.minlength=function(a,b){return d.$isEmpty(b)||b.length>=e}}}};if(a.angular.bootstrap){a.console&&console.log("WARNING: Tried to load angular more than once.");return}bj(),bu(eX),eX.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return b==-1?0:a.length-b-1}function c(a,c){var d=c;undefined===d&&(d=Math.min(b(a),3));var e=Math.pow(10,d),f=(a*e|0)%e;return{v:d,f:f}}var d={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,b){var e=a|0,f=c(a,b);return e==1&&f.v==0?d.ONE:d.OTHER}})}]),eP(a.document).ready(function(){be(a.document,bf)})})(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>')
  ;(function(a,b,c){function N(a,b,c){if(!a)throw ngMinErr("areq","Argument '{0}' is {1}",b||"?",c||"required");return a}function O(a,b){return!a&&!b?"":a?b?(h(a)&&(a=a.join(" ")),h(b)&&(b=b.join(" ")),a+" "+b):a:b}function P(a){var b={};return a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from),b}function Q(a,b,c){var d="";return a=h(a)?a:a&&i(a)&&a.length?a.split(/\s+/):[],g(a,function(a,e){a&&a.length>0&&(d+=e>0?" ":"",d+=c?b+a:a+b)}),d}function R(a,b){var c=a.indexOf(b);b>=0&&a.splice(c,1)}function S(a){if(a instanceof f)switch(a.length){case 0:return[];case 1:if(a[0].nodeType===o)return a;break;default:return f(T(a))}if(a.nodeType===o)return f(a)}function T(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(c.nodeType==o)return c}}function U(a,b,c){g(b,function(b){a.addClass(b,c)})}function V(a,b,c){g(b,function(b){a.removeClass(b,c)})}function W(a){return function(b,c){c.addClass&&(U(a,b,c.addClass),c.addClass=null),c.removeClass&&(V(a,b,c.removeClass),c.removeClass=null)}}function X(a){a=a||{};if(!a.$$prepared){var b=a.domOperation||d;a.domOperation=function(){a.$$domOperationFired=!0,b(),b=d},a.$$prepared=!0}return a}function Y(a,b){Z(a,b),$(a,b)}function Z(a,b){b.from&&(a.css(b.from),b.from=null)}function $(a,b){b.to&&(a.css(b.to),b.to=null)}function _(a,b,c){var f=(b.addClass||"")+" "+(c.addClass||""),g=(b.removeClass||"")+" "+(c.removeClass||""),h=ba(a.attr("class"),f,g);c.preparationClasses&&(b.preparationClasses=bh(c.preparationClasses,b.preparationClasses),delete c.preparationClasses);var i=b.domOperation!==d?b.domOperation:null;return e(b,c),i&&(b.domOperation=i),h.addClass?b.addClass=h.addClass:b.addClass=null,h.removeClass?b.removeClass=h.removeClass:b.removeClass=null,b}function ba(a,b,c){function j(a){i(a)&&(a=a.split(" "));var b={};return g(a,function(a){a.length&&(b[a]=!0)}),b}var d=1,e=-1,f={};a=j(a),b=j(b),g(b,function(a,b){f[b]=d}),c=j(c),g(c,function(a,b){f[b]=f[b]===d?null:e});var h={addClass:"",removeClass:""};return g(f,function(b,c){var f,g;b===d?(f="addClass",g=!a[c]):b===e&&(f="removeClass",g=a[c]),g&&(h[f].length&&(h[f]+=" "),h[f]+=c)}),h}function bb(a){return a instanceof b.element?a[0]:a}function bc(a,b,c){var d="";b&&(d=Q(b,s,!0)),c.addClass&&(d=bh(d,Q(c.addClass,q))),c.removeClass&&(d=bh(d,Q(c.removeClass,r))),d.length&&(c.preparationClasses=d,a.addClass(d))}function bd(a,b){b.preparationClasses&&(a.removeClass(b.preparationClasses),b.preparationClasses=null),b.activeClasses&&(a.removeClass(b.activeClasses),b.activeClasses=null)}function be(a,b){var c=b?"-"+b+"s":"";return bg(a,[K,c]),[K,c]}function bf(a,b){var c=b?"paused":"",d=z+G;return bg(a,[d,c]),[d,c]}function bg(a,b){var c=b[0],d=b[1];a.style[c]=d}function bh(a,b){return a?b?a+" "+b:a:b}function br(a){return[J,a+"s"]}function bs(a,b){var c=b?I:K;return[c,a+"s"]}function bt(a,b,c){var d=Object.create(null),e=a.getComputedStyle(b)||{};return g(c,function(a,b){var c=e[a];if(c){var f=c.charAt(0);if(f==="-"||f==="+"||f>=0)c=bu(c);c===0&&(c=null),d[b]=c}}),d}function bu(a){var b=0,c=a.split(/\s*,\s*/);return g(c,function(a){a.charAt(a.length-1)=="s"&&(a=a.substring(0,a.length-1)),a=parseFloat(a)||0,b=b?Math.max(a,b):a}),b}function bv(a){return a===0||a!=null}function bw(a,b){var c=x,d=a+"s";return b?c+=B:d+=" linear all",[c,d]}function bx(){var a=Object.create(null);return{flush:function(){a=Object.create(null)},count:function(b){var c=a[b];return c?c.total:0},get:function(b){var c=a[b];return c&&c.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}function by(a,b,c){g(c,function(c){a[c]=l(a[c])?a[c]:b.style.getPropertyValue(c)})}"use strict";var d=b.noop,e=b.extend,f=b.element,g=b.forEach,h=b.isArray,i=b.isString,j=b.isObject,k=b.isUndefined,l=b.isDefined,m=b.isFunction,n=b.isElement,o=1,p=8,q="-add",r="-remove",s="ng-",t="-active",u="ng-animate",v="$$ngAnimateChildren",w="",x,y,z,A;k(a.ontransitionend)&&l(a.onwebkittransitionend)?(w="-webkit-",x="WebkitTransition",y="webkitTransitionEnd transitionend"):(x="transition",y="transitionend"),k(a.onanimationend)&&l(a.onwebkitanimationend)?(w="-webkit-",z="WebkitAnimation",A="webkitAnimationEnd animationend"):(z="animation",A="animationend");var B="Duration",C="Property",D="Delay",E="TimingFunction",F="IterationCount",G="PlayState",H=9999,I=z+D,J=z+B,K=x+D,L=x+B,M=function(a){return a&&a.then?!0:!1},bi=["$$rAF",function(a){function d(a){b=b.concat(a),e()}function e(){if(!b.length)return;var d=b.shift();for(var f=0;f<d.length;f++)d[f]();c||a(function(){c||e()})}var b,c;return b=d.queue=[],d.waitUntilQuiet=function(b){c&&c(),c=a(function(){c=null,b(),e()})},d}],bj=[function(){return function(a,c,d){var e=d.ngAnimateChildren;b.isString(e)&&e.length===0?c.data(v,!0):d.$observe("ngAnimateChildren",function(a){a=a==="on"||a==="true",c.data(v,a)})}}],bk="$$animateCss",bl=1e3,bm=10,bn=3,bo=1.5,bp={transitionDuration:L,transitionDelay:K,transitionProperty:x+C,animationDuration:J,animationDelay:I,animationIterationCount:z+F},bq={transitionDuration:L,transitionDelay:K,animationDuration:J,animationDelay:I},bz=["$animateProvider",function(a){var b=bx(),c=bx();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$animate",function(a,e,f,i,j,k,l,m){function p(a,b){var c="$$ngAnimateParentKey",d=a.parentNode,e=d[c]||(d[c]=++o);return e+"-"+a.getAttribute("class")+"-"+b}function u(c,d,e,f){var g=b.get(e);return g||(g=bt(a,c,f),g.animationIterationCount==="infinite"&&(g.animationIterationCount=1)),b.put(e,g),g}function v(d,f,g,h){var i;if(b.count(g)>0){i=c.get(g);if(!i){var j=Q(f,"-stagger");e.addClass(d,j),i=bt(a,d,h),i.animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),e.removeClass(d,j),c.put(g,i)}}return i||{}}function D(a){B.push(a),l.waitUntilQuiet(function(){b.flush(),c.flush();var a=j();for(var d=0;d<B.length;d++)B[d](a);B.length=0})}function F(a,b,c){var d=u(a,b,c,bp),e=d.animationDelay,f=d.transitionDelay;return d.maxDelay=e&&f?Math.max(e,f):e||f,d.maxDuration=Math.max(d.animationDuration*d.animationIterationCount,d.transitionDuration),d}var n=W(e),o=0,w,B=[];return function G(a,c){function bE(){bG()}function bF(){bG(!0)}function bG(b){if(B||I&&G)return;B=!0,G=!1,c.$$skipPreparationClasses||e.removeClass(a,W),e.removeClass(a,ba),bf(l,!1),be(l,!1),g(o,function(a){l.style[a[0]]=""}),n(a,c),Y(a,c),Object.keys(j).length&&g(j,function(a,b){a?l.style.setProperty(b,a):l.style.removeProperty(b)}),c.onDone&&c.onDone(),J&&J.complete(!b)}function bH(a){bC.blockTransition&&be(l,a),bC.blockKeyframeAnimation&&bf(l,!!a)}function bI(){return J=new f({end:bE,cancel:bF}),D(d),bG(),{$$willAnimate:!1,start:function(){return J},end:bE}}function bJ(){function k(){if(B)return;bH(!1),g(o,function(a){var b=a[0],c=a[1];l.style[b]=c}),n(a,c),e.addClass(a,ba);if(bC.recalculateTimingStyles){_=l.className+" "+W,bh=p(l,_),bA=F(l,_,bh),bB=bA.maxDelay,L=Math.max(bB,0),N=bA.maxDuration;if(N===0){bG();return}bC.hasTransitions=bA.transitionDuration>0,bC.hasAnimations=bA.animationDuration>0}bC.applyAnimationDelay&&(bB=typeof c.delay!="boolean"&&bv(c.delay)?parseFloat(c.delay):bB,L=Math.max(bB,0),bA.animationDelay=bB,bD=bs(bB,!0),o.push(bD),l.style[bD[0]]=bD[1]),M=L*bl,O=N*bl;if(c.easing){var f,h=c.easing;bC.hasTransitions&&(f=x+E,o.push([f,h]),l.style[f]=h),bC.hasAnimations&&(f=z+E,o.push([f,h]),l.style[f]=h)}bA.transitionDuration&&d.push(y),bA.animationDuration&&d.push(A),b=Date.now();var k=M+bo*O,r=b+k,s=a.data(bk)||[],t=!0;if(s.length){var u=s[0];t=r>u.expectedEndTime,t?i.cancel(u.timer):s.push(bG)}if(t){var v=i(m,k,!1);s[0]={timer:v,expectedEndTime:r},s.push(bG),a.data(bk,s)}a.on(d.join(" "),q),c.to&&(c.cleanupStyles&&by(j,l,Object.keys(c.to)),$(a,c))}function m(){var b=a.data(bk);if(b){for(var c=1;c<b.length;c++)b[c]();a.removeData(bk)}}function q(a){a.stopPropagation();var c=a.originalEvent||a,d=c.$manualTimeStamp||c.timeStamp||Date.now(),e=parseFloat(c.elapsedTime.toFixed(bn));Math.max(d-b,0)>=M&&e>=N&&(I=!0,bG())}if(B)return;if(!l.parentNode){bG();return}var b,d=[],f=function(a){if(!I){G=!a;if(bA.animationDuration){var b=bf(l,G);G?o.push(b):R(o,b)}}else G&&a&&(G=!1,bG())},h=bx>0&&(bA.transitionDuration&&bi.transitionDuration===0||bA.animationDuration&&bi.animationDuration===0)&&Math.max(bi.animationDelay,bi.transitionDelay);h?i(k,Math.floor(h*bx*bl),!1):k(),K.resume=function(){f(!0)},K.pause=function(){f(!1)}}var j={},l=bb(a);if(!l||!l.parentNode||!m.enabled())return bI();c=X(c);var o=[],u=a.attr("class"),w=P(c),B,G,I,J,K,L,M,N,O;if(c.duration===0||!k.animations&&!k.transitions)return bI();var S=c.event&&h(c.event)?c.event.join(" "):c.event,T=S&&c.structural,U="",V="";T?U=Q(S,s,!0):S&&(U=S),c.addClass&&(V+=Q(c.addClass,q)),c.removeClass&&(V.length&&(V+=" "),V+=Q(c.removeClass,r)),c.applyClassesEarly&&V.length&&n(a,c);var W=[U,V].join(" ").trim(),_=u+" "+W,ba=Q(W,t),bc=w.to&&Object.keys(w.to).length>0,bd=(c.keyframeStyle||"").length>0;if(!bd&&!bc&&!W)return bI();var bh,bi;if(c.stagger>0){var bj=parseFloat(c.stagger);bi={transitionDelay:bj,animationDelay:bj,transitionDuration:0,animationDuration:0}}else bh=p(l,_),bi=v(l,W,bh,bq);c.$$skipPreparationClasses||e.addClass(a,W);var bm;if(c.transitionStyle){var bp=[x,c.transitionStyle];bg(l,bp),o.push(bp)}if(c.duration>=0){bm=l.style[x].length>0;var bt=bw(c.duration,bm);bg(l,bt),o.push(bt)}if(c.keyframeStyle){var bu=[z,c.keyframeStyle];bg(l,bu),o.push(bu)}var bx=bi?c.staggerIndex>=0?c.staggerIndex:b.count(bh):0,bz=bx===0;bz&&!c.skipBlocking&&be(l,H);var bA=F(l,_,bh),bB=bA.maxDelay;L=Math.max(bB,0),N=bA.maxDuration;var bC={};bC.hasTransitions=bA.transitionDuration>0,bC.hasAnimations=bA.animationDuration>0,bC.hasTransitionAll=bC.hasTransitions&&bA.transitionProperty=="all",bC.applyTransitionDuration=bc&&(bC.hasTransitions&&!bC.hasTransitionAll||bC.hasAnimations&&!bC.hasTransitions),bC.applyAnimationDuration=c.duration&&bC.hasAnimations,bC.applyTransitionDelay=bv(c.delay)&&(bC.applyTransitionDuration||bC.hasTransitions),bC.applyAnimationDelay=bv(c.delay)&&bC.hasAnimations,bC.recalculateTimingStyles=V.length>0;if(bC.applyTransitionDuration||bC.applyAnimationDuration)N=c.duration?parseFloat(c.duration):N,bC.applyTransitionDuration&&(bC.hasTransitions=!0,bA.transitionDuration=N,bm=l.style[x+C].length>0,o.push(bw(N,bm))),bC.applyAnimationDuration&&(bC.hasAnimations=!0,bA.animationDuration=N,o.push(br(N)));if(N===0&&!bC.recalculateTimingStyles)return bI();if(c.delay!=null){var bD=parseFloat(c.delay);bC.applyTransitionDelay&&o.push(bs(bD)),bC.applyAnimationDelay&&o.push(bs(bD,!0))}return c.duration==null&&bA.transitionDuration>0&&(bC.recalculateTimingStyles=bC.recalculateTimingStyles||bz),M=L*bl,O=N*bl,c.skipBlocking||(bC.blockTransition=bA.transitionDuration>0,bC.blockKeyframeAnimation=bA.animationDuration>0&&bi.animationDelay>0&&bi.animationDuration===0),c.from&&(c.cleanupStyles&&by(j,l,Object.keys(c.from)),Z(a,c)),bC.blockTransition||bC.blockKeyframeAnimation?bH(N):c.skipBlocking||be(l,!1),{$$willAnimate:!0,end:bE,start:function(){if(B)return;return K={end:bE,cancel:bF,resume:null,pause:null},J=new f(K),D(bJ),J}}}}]}],bA=["$$animationProvider",function(a){function j(a){return a.parentNode&&a.parentNode.nodeType===11}a.drivers.push("$$animateCssDriver");var b="ng-animate-shim",c="ng-anchor",e="ng-anchor-out",h="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,k,l,m,n,o,p){function u(a){return a.replace(/\bng-\S+\b/g,"")}function v(a,b){return i(a)&&(a=a.split(" ")),i(b)&&(b=b.split(" ")),a.filter(function(a){return b.indexOf(a)===-1}).join(" ")}function w(d,i,j){function r(a){var b={},c=bb(a).getBoundingClientRect();return g(["width","height","top","left"],function(a){var d=c[a];switch(a){case"top":d+=q.scrollTop;break;case"left":d+=q.scrollLeft}b[a]=Math.floor(d)+"px"}),b}function t(){var b=a(k,{addClass:e,delay:!0,from:r(i)});return b.$$willAnimate?b:null}function w(a){return a.attr("class")||""}function x(){var b=u(w(j)),c=v(b,m),d=v(m,b),f=a(k,{to:r(j),addClass:h+" "+c,removeClass:e+" "+d,delay:!0});return f.$$willAnimate?f:null}function y(){k.remove(),i.removeClass(b),j.removeClass(b)}var k=f(bb(i).cloneNode(!0)),m=u(w(k));i.addClass(b),j.addClass(b),k.addClass(c),s.append(k);var n,o=t();if(!o){n=x();if(!n)return y()}var p=o||n;return{start:function(){function c(){b&&b.end()}var a,b=p.start();return b.done(function(){b=null;if(!n){n=x();if(n)return b=n.start(),b.done(function(){b=null,y(),a.complete()}),b}y(),a.complete()}),a=new l({end:c,cancel:c}),a}}}function x(a,b,c,e){var f=y(a,d),h=y(b,d),i=[];g(e,function(a){var b=a.out,d=a["in"],e=w(c,b,d);e&&i.push(e)});if(!f&&!h&&i.length===0)return;return{start:function(){function c(){g(a,function(a){a.end()})}var a=[];f&&a.push(f.start()),h&&a.push(h.start()),g(i,function(b){a.push(b.start())});var b=new l({end:c,cancel:c});return l.all(a,function(a){b.complete(a)}),b}}}function y(b){var c=b.element,d=b.options||{};b.structural&&(d.event=b.event,d.structural=!0,d.applyClassesEarly=!0,b.event==="leave"&&(d.onDone=d.domOperation)),d.preparationClasses&&(d.event=bh(d.event,d.preparationClasses));var e=a(c,d);return e.$$willAnimate?e:null}if(!n.animations&&!n.transitions)return d;var q=p[0].body,r=bb(m),s=f(j(r)||q.contains(r)?r:q),t=W(o);return function(a){return a.from&&a.to?x(a.from,a.to,a.classes,a.anchors):y(a)}}]}],bB=["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(b,c,e){function i(c){c=h(c)?c:c.split(" ");var d=[],e={};for(var f=0;f<c.length;f++){var g=c[f],i=a.$$registeredAnimations[g];i&&!e[g]&&(d.push(b.get(i)),e[g]=!0)}return d}var f=W(e);return function(a,b,e,h){function s(){h.domOperation(),f(a,h)}function t(a,b,e,f,g){var h;switch(e){case"animate":h=[b,f.from,f.to,g];break;case"setClass":h=[b,k,l,g];break;case"addClass":h=[b,k,g];break;case"removeClass":h=[b,l,g];break;default:h=[b,g]}h.push(f);var i=a.apply(a,h);if(i){m(i.start)&&(i=i.start());if(i instanceof c)i.done(g);else if(m(i))return i}return d}function u(a,b,e,f,h){var i=[];return g(f,function(f){var g=f[h];if(!g)return;i.push(function(){var f,h,i=!1,j=function(a){i||(i=!0,(h||d)(a),f.complete(!a))};return f=new c({end:function(){j()},cancel:function(){j(!0)}}),h=t(g,a,b,e,function(a){var b=a===!1;j(b)}),f})}),i}function v(a,b,d,e,f){var h=u(a,b,d,e,f);if(h.length===0){var i,j;f==="beforeSetClass"?(i=u(a,"removeClass",d,e,"beforeRemoveClass"),j=u(a,"addClass",d,e,"beforeAddClass")):f==="setClass"&&(i=u(a,"removeClass",d,e,"removeClass"),j=u(a,"addClass",d,e,"addClass")),i&&(h=h.concat(i)),j&&(h=h.concat(j))}if(h.length===0)return;return function(a){var b=[];return h.length&&g(h,function(a){b.push(a())}),b.length?c.all(b,a):a(),function(a){g(b,function(b){a?b.cancel():b.end()})}}}arguments.length===3&&j(e)&&(h=e,e=null),h=X(h),e||(e=a.attr("class")||"",h.addClass&&(e+=" "+h.addClass),h.removeClass&&(e+=" "+h.removeClass));var k=h.addClass,l=h.removeClass,n=i(e),o,p;if(n.length){var q,r;b=="leave"?(r="leave",q="afterLeave"):(r="before"+b.charAt(0).toUpperCase()+b.substr(1),q=b),b!=="enter"&&b!=="move"&&(o=v(a,b,h,n,r)),p=v(a,b,h,n,q)}if(!o&&!p)return;return{start:function(){function i(b){f=!0,s(),Y(a,h),g.complete(b)}function j(a){f||((b||d)(a),i(a))}var b,e=[];o&&e.push(function(a){b=o(a)}),e.length?e.push(function(a){s(),a(!0)}):s(),p&&e.push(function(a){b=p(a)});var f=!1,g=new c({end:function(){j()},cancel:function(){j(!0)}});return c.chain(e,i),g}}}}]}],bC=["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(a,b){function c(b){var c=b.element,d=b.event,e=b.options,f=b.classes;return a(c,d,f,e)}return function d(a){if(a.from&&a.to){var d=c(a.from),e=c(a.to);if(!d&&!e)return;return{start:function(){function f(){return function(){g(a,function(a){a.end()})}}function h(a){c.complete(a)}var a=[];d&&a.push(d.start()),e&&a.push(e.start()),b.all(a,h);var c=new b({end:f(),cancel:f()});return c}}}return c(a)}}]}],bD="data-ng-animate",bE="$ngAnimatePin",bF=["$animateProvider",function(a){function m(a,b,c,e){return d[a].some(function(a){return a(b,c,e)})}function p(a,b){a=a||{};var c=(a.addClass||"").length>0,d=(a.removeClass||"").length>0;return b?c&&d:c||d}var b=1,c=2,d=this.rules={skip:[],cancel:[],join:[]};d.join.push(function(a,b,c){return!b.structural&&p(b.options)}),d.skip.push(function(a,b,c){return!b.structural&&!p(b.options)}),d.skip.push(function(a,b,c){return c.event=="leave"&&b.structural}),d.skip.push(function(a,b,d){return d.structural&&d.state===c&&!b.structural}),d.cancel.push(function(a,b,c){return c.structural&&b.structural}),d.cancel.push(function(a,b,d){return d.state===c&&b.structural}),d.cancel.push(function(a,b,c){var d=b.options,e=c.options;return d.addClass&&d.addClass===e.removeClass||d.removeClass&&d.removeClass===e.addClass}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(d,q,r,s,t,u,w,x,y,z){function D(){var a=!1;return function(b){a?b():q.$$postDigest(function(){a=!0,b()})}}function J(a,b){return _(a,b,{})}function K(a,b,c){var d=bb(b),e=bb(a),f=[],h=F[c];return h&&g(h,function(a){a.node.contains(d)?f.push(a.callback):c==="leave"&&a.node.contains(e)&&f.push(a.callback)}),f}function L(a,e,f){function N(b,c,e,f){o(function(){var b=K(l,a,c);b.length&&d(function(){g(b,function(b){b(a,e,f)})})}),b.progress(c,e,f)}function P(b){bd(a,f),I(a,f),Y(a,f),f.domOperation(),n.complete(!b)}var k,l;a=S(a),a&&(k=bb(a),l=a.parent()),f=X(f);var n=new w,o=D();h(f.addClass)&&(f.addClass=f.addClass.join(" ")),f.addClass&&!i(f.addClass)&&(f.addClass=null),h(f.removeClass)&&(f.removeClass=f.removeClass.join(" ")),f.removeClass&&!i(f.removeClass)&&(f.removeClass=null),f.from&&!j(f.from)&&(f.from=null),f.to&&!j(f.to)&&(f.to=null);if(!k)return P(),n;var r=[k.className,f.addClass,f.removeClass].join(" ");if(!H(r))return P(),n;var s=["enter","move","leave"].indexOf(e)>=0,t=!C||B.get(k),v=!t&&A.get(k)||{},x=!!v.state;!t&&(!x||v.state!=b)&&(t=!Q(a,l,e));if(t)return P(),n;s&&M(a);var y={structural:s,element:a,event:e,close:P,options:f,runner:n};if(x){var z=m("skip",a,y,v);if(z)return v.state===c?(P(),n):(_(a,v.options,f),v.runner);var E=m("cancel",a,y,v);if(E)if(v.state===c)v.runner.end();else if(v.structural)v.close();else return _(a,v.options,y.options),v.runner;else{var F=m("join",a,y,v);if(F)if(v.state===c)J(a,f);else return bc(a,s?e:null,f),e=y.event=v.event,f=_(a,v.options,y.options),v.runner}}else J(a,f);var G=y.structural;G||(G=y.event==="animate"&&Object.keys(y.options.to||{}).length>0||p(y.options));if(!G)return P(),O(a),n;var L=(v.counter||0)+1;return y.counter=L,R(a,b,y),q.$$postDigest(function(){var b=A.get(k),d=!b;b=b||{};var g=a.parent()||[],h=g.length>0&&(b.event==="animate"||b.structural||p(b.options));if(d||b.counter!==L||!h){d&&(I(a,f),Y(a,f));if(d||s&&b.event!==e)f.domOperation(),n.end();h||O(a);return}e=!b.structural&&p(b.options,!0)?"setClass":b.event,R(a,c);var i=u(a,e,b.options);i.done(function(b){P(!b);var c=A.get(k);c&&c.counter===L&&O(bb(a)),N(n,e,"close",{})}),n.setHost(i),N(n,e,"start",{})}),n}function M(a){var d=bb(a),e=d.querySelectorAll("["+bD+"]");g(e,function(a){var d=parseInt(a.getAttribute(bD)),e=A.get(a);switch(d){case c:e.runner.end();case b:e&&A.remove(a)}})}function O(a){var b=bb(a);b.removeAttribute(bD),A.remove(b)}function P(a,b){return bb(a)===bb(b)}function Q(a,b,c){var d=f(s[0].body),e=P(a,d)||a[0].nodeName==="HTML",g=P(a,r),h=!1,i,j=a.data(bE);j&&(b=j);while(b&&b.length){g||(g=P(b,r));var m=b[0];if(m.nodeType!==o)break;var n=A.get(m)||{};h||(h=n.structural||B.get(m));if(k(i)||i===!0){var p=b.data(v);l(p)&&(i=p)}if(h&&i===!1)break;g||(g=P(b,r),g||(j=b.data(bE),j&&(b=j))),e||(e=P(b,d)),b=b.parent()}var q=!h||i;return q&&g&&e}function R(a,b,c){c=c||{},c.state=b;var d=bb(a);d.setAttribute(bD,b);var f=A.get(d),g=f?e(f,c):c;A.put(d,g)}var A=new t,B=new t,C=null,E=q.$watch(function(){return x.totalPendingRequests===0},function(a){if(!a)return;E(),q.$$postDigest(function(){q.$$postDigest(function(){C===null&&(C=!0)})})}),F={},G=a.classNameFilter(),H=G?function(a){return G.test(a)}:function(){return!0},I=W(y);return{on:function(a,b,c){var d=T(b);F[a]=F[a]||[],F[a].push({node:d,callback:c})},off:function(a,b,c){function e(a,b,c){var d=T(b);return a.filter(function(a){var b=a.node===d&&(!c||a.callback===c);return!b})}var d=F[a];if(!d)return;F[a]=arguments.length===1?null:e(d,b,c)},pin:function(a,b){N(n(a),"element","not an element"),N(n(b),"parentElement","not an element"),a.data(bE,b)},push:function(a,b,c,d){return c=c||{},c.domOperation=d,L(a,b,c)},enabled:function(a,b){var c=arguments.length;if(c===0)b=!!C;else{var d=n(a);if(!d)b=C=!!a;else{var e=bb(a),f=B.get(e);c===1?b=!f:(b=!!b,b?f&&B.remove(e):B.put(e,!0))}}return b}}}]}],bG=["$$rAF",function(a){function c(c){b.push(c);if(b.length>1)return;a(function(){for(var a=0;a<b.length;a++)b[a]();b=[]})}var b=[];return function(){var a=!1;return c(function(){a=!0}),function(b){a?b():c(b)}}}],bH=["$q","$sniffer","$$animateAsyncRun",function(a,b,c){function i(a){this.setHost(a),this._doneCallbacks=[],this._runInAnimationFrame=c(),this._state=0}var e=0,f=1,h=2;return i.chain=function(a,b){function d(){if(c===a.length){b(!0);return}a[c](function(a){if(a===!1){b(!1);return}c++,d()})}var c=0;d()},i.all=function(a,b){function e(e){d=d&&e,++c===a.length&&b(d)}var c=0,d=!0;g(a,function(a){a.done(e)})},i.prototype={setHost:function(a){this.host=a||{}},done:function(a){this._state===h?a():this._doneCallbacks.push(a)},progress:d,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){b===!1?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(a){var b=this;b._state===e&&(b._state=f,b._runInAnimationFrame(function(){b._resolve(a)}))},_resolve:function(a){this._state!==h&&(g(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=h)}},i}],bI=["$animateProvider",function(a){function e(a,b){a.data(d,b)}function h(a){a.removeData(d)}function i(a){return a.data(d)}var b="ng-animate-ref",c=this.drivers=[],d="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,d,j,k,l,m){function p(a){function f(a){if(a.processed)return a;a.processed=!0;var c=a.domNode,e=c.parentNode;d.put(c,a);var g;while(e){g=d.get(e);if(g){g.processed||(g=f(g));break}e=e.parentNode}return(g||b).children.push(a),a}function g(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);var e=c.length,f=0,g=[];for(d=0;d<c.length;d++){var h=c[d];e<=0&&(e=f,f=0,b.push(g),g=[]),g.push(h.fn),h.children.forEach(function(a){f++,c.push(a)}),e--}return g.length&&b.push(g),b}var b={children:[]},c,d=new l;for(c=0;c<a.length;c++){var e=a[c];d.put(e.domNode,a[c]={domNode:e.domNode,fn:e.fn,children:[]})}for(c=0;c<a.length;c++)f(a[c]);return g(b)}var n=[],o=W(a);return function(l,q,r){function x(a){var c="["+b+"]",d=a.hasAttribute(b)?[a]:a.querySelectorAll(c),e=[];return g(d,function(a){var c=a.getAttribute(b);c&&c.length&&e.push(a)}),e}function y(a){var c=[],d={};g(a,function(a,e){var h=a.element,i=bb(h),j=a.event,k=["enter","move"].indexOf(j)>=0,l=a.structural?x(i):[];if(l.length){var m=k?"to":"from";g(l,function(a){var c=a.getAttribute(b);d[c]=d[c]||{},d[c][m]={animationID:e,element:f(a)}})}else c.push(a)});var e={},h={};return g(d,function(b,d){var f=b.from,g=b.to;if(!f||!g){var i=f?f.animationID:g.animationID,j=i.toString();e[j]||(e[j]=!0,c.push(a[i]));return}var k=a[f.animationID],l=a[g.animationID],m=f.animationID.toString();if(!h[m]){var n=h[m]={structural:!0,beforeStart:function(){k.beforeStart(),l.beforeStart()},close:function(){k.close(),l.close()},classes:z(k.classes,l.classes),from:k,to:l,anchors:[]};n.classes.length?c.push(n):(c.push(k),c.push(l))}h[m].anchors.push({out:f.element,"in":g.element})}),c}function z(a,b){a=a.split(" "),b=b.split(" ");var c=[];for(var d=0;d<a.length;d++){var e=a[d];if(e.substring(0,3)==="ng-")continue;for(var f=0;f<b.length;f++)if(e===b[f]){c.push(e);break}}return c.join(" ")}function A(a){for(var b=c.length-1;b>=0;b--){var d=c[b];if(!j.has(d))continue;var e=j.get(d),f=e(a);if(f)return f}}function B(){l.addClass(u),w&&a.addClass(l,w)}function C(a,b){function c(a){i(a).setHost(b)}a.from&&a.to?(c(a.from.element),c(a.to.element)):c(a.element)}function D(){var a=i(l);a&&(q!=="leave"||!r.$$domOperationFired)&&a.end()}function E(b){l.off("$destroy",D),h(l),o(l,r),Y(l,r),r.domOperation(),w&&a.removeClass(l,w),l.removeClass(u),t.complete(!b)}r=X(r);var s=["enter","move","leave"].indexOf(q)>=0,t=new k({end:function(){E()},cancel:function(){E(!0)}});if(!c.length)return E(),t;e(l,t);var v=O(l.attr("class"),O(r.addClass,r.removeClass)),w=r.tempClasses;return w&&(v+=" "+w,r.tempClasses=null),n.push({element:l,classes:v,event:q,structural:s,options:r,beforeStart:B,close:E}),l.on("$destroy",D),n.length>1?t:(d.$$postDigest(function(){var a=[];g(n,function(b){i(b.element)?a.push(b):b.close()}),n.length=0;var b=y(a),c=[];g(b,function(a){c.push({domNode:bb(a.from?a.from.element:a.element),fn:function b(){a.beforeStart();var b,c=a.close,d=a.anchors?a.from.element||a.to.element:a.element;if(i(d)){var e=A(a);e&&(b=e.start)}if(!b)c();else{var f=b();f.done(function(a){c(!a)}),C(a,f)}}})}),m(p(c))}),t)}}]}];b.module("ngAnimate",[]).directive("ngAnimateChildren",bj).factory("$$rAFScheduler",bi).factory("$$AnimateRunner",bH).factory("$$animateAsyncRun",bG).provider("$$animateQueue",bF).provider("$$animation",bI).provider("$animateCss",bz).provider("$$animateCssDriver",bA).provider("$$animateJs",bB).provider("$$animateJsDriver",bC)})(window,window.angular)
  ;(function(a,b,c){function g(){function c(b,c,d,e){return function(g,h,i){var j=i.$normalize(c);a[j]&&!f(h,d)&&!i[j]&&g.$watch(i[b],function(a){a=e?!a:!!a,h.attr(c,a)})}}var a={ariaHidden:!0,ariaChecked:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaMultiline:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(c){a=b.extend(a,c)},this.$get=function(){return{config:function(b){return a[b]},$$watchExpr:c}}}"use strict";var d=b.module("ngAria",["ng"]).provider("$aria",g),e=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],f=function(a,b){if(b.indexOf(a[0].nodeName)!==-1)return!0};d.directive("ngShow",["$aria",function(a){return a.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(a){return a.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngModel",["$aria",function(a){function b(b,c,d){return a.config(c)&&!d.attr(b)}function c(a,b){return!b.attr("role")&&b.attr("type")===a&&b[0].nodeName!=="INPUT"}function d(a,b){var c=a.type,d=a.role;return(c||d)==="checkbox"||d==="menuitemcheckbox"?"checkbox":(c||d)==="radio"||d==="menuitemradio"?"radio":c==="range"||d==="progressbar"||d==="slider"?"range":(c||d)==="textbox"||b[0].nodeName==="TEXTAREA"?"multiline":""}return{restrict:"A",require:"?ngModel",priority:200,compile:function(g,h){var i=d(h,g);return{pre:function(a,b,c,d){i==="checkbox"&&c.type!=="checkbox"&&(d.$isEmpty=function(a){return a===!1})},post:function(d,g,h,j){function l(){return j.$modelValue}function m(){return k?(k=!1,function(a){var b=h.value==j.$viewValue;g.attr("aria-checked",b),g.attr("tabindex",0-!b)}):function(a){g.attr("aria-checked",h.value==j.$viewValue)}}function n(){g.attr("aria-checked",!j.$isEmpty(j.$viewValue))}var k=b("tabindex","tabindex",g)&&!f(g,e);switch(i){case"radio":case"checkbox":c(i,g)&&g.attr("role",i),b("aria-checked","ariaChecked",g)&&d.$watch(l,i==="radio"?m():n),k&&g.attr("tabindex",0);break;case"range":c(i,g)&&g.attr("role","slider");if(a.config("ariaValue")){var o=!g.attr("aria-valuemin")&&(h.hasOwnProperty("min")||h.hasOwnProperty("ngMin")),p=!g.attr("aria-valuemax")&&(h.hasOwnProperty("max")||h.hasOwnProperty("ngMax")),q=!g.attr("aria-valuenow");o&&h.$observe("min",function(a){g.attr("aria-valuemin",a)}),p&&h.$observe("max",function(a){g.attr("aria-valuemax",a)}),q&&d.$watch(l,function(a){g.attr("aria-valuenow",a)})}k&&g.attr("tabindex",0);break;case"multiline":b("aria-multiline","ariaMultiline",g)&&g.attr("aria-multiline",!0)}j.$validators.required&&b("aria-required","ariaRequired",g)&&d.$watch(function(){return j.$error.required},function(a){g.attr("aria-required",!!a)}),b("aria-invalid","ariaInvalid",g)&&d.$watch(function(){return j.$invalid},function(a){g.attr("aria-invalid",!!a)})}}}}}]).directive("ngDisabled",["$aria",function(a){return a.$$watchExpr("ngDisabled","aria-disabled",[])}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(a,b,c,d){b.attr("aria-live")||b.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(a,b){return{restrict:"A",compile:function(c,d){var g=b(d.ngClick,null,!0);return function(b,c,d){f(c,e)||(a.config("bindRoleForClick")&&!c.attr("role")&&c.attr("role","button"),a.config("tabindex")&&!c.attr("tabindex")&&c.attr("tabindex",0),a.config("bindKeypress")&&!d.ngKeypress&&c.on("keypress",function(a){function d(){g(b,{$event:a})}var c=a.which||a.keyCode;(c===32||c===13)&&b.$apply(d)}))}}}}]).directive("ngDblclick",["$aria",function(a){return function(b,c,d){a.config("tabindex")&&!c.attr("tabindex")&&!f(c,e)&&c.attr("tabindex",0)}}])})(window,window.angular)
  ;(function(a,b,c){function h(a){function b(a,b){if(a)return d(a)?a.indexOf(b)>=0:a.hasOwnProperty(b)}return["$animate",function(a){return{restrict:"AE",transclude:"element",terminal:!0,require:"^^ngMessages",link:function(c,e,f,g,h){var i=e[0],j,k=f.ngMessage||f.when,l=f.ngMessageExp||f.whenExp,m=function(a){j=a?d(a)?a:a.split(/[\s,]+/):null,g.reRender()};l?(m(c.$eval(l)),c.$watchCollection(l,m)):m(k);var n,o;g.register(i,o={test:function(a){return b(j,a)},attach:function(){n||h(c,function(b){a.enter(b,null,e),n=b;var c=n.$$attachId=g.getAttachId();n.on("$destroy",function(){n&&n.$$attachId===c&&(g.deregister(i),o.detach())})})},detach:function(){if(n){var b=n;n=null,a.leave(b)}}})}}}]}"use strict";var d=b.isArray,e=b.forEach,f=b.isString,g=b.element;b.module("ngMessages",[]).directive("ngMessages",["$animate",function(a){function d(a,b){return f(b)&&b.length===0||g(a.$eval(b))}function g(a){return f(a)?a.length:!!a}var b="ng-active",c="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(f,h,i){function p(a,b){var c=b,d=[];while(c&&c!==a){var e=c.$$ngMessageNode;if(e&&e.length)return m[e];c.childNodes.length&&d.indexOf(c)==-1?(d.push(c),c=c.childNodes[c.childNodes.length-1]):c=c.previousSibling||c.parentNode}}function q(a,b,c){var d=m[c];if(!j.head)j.head=d;else{var e=p(a,b);e?(d.next=e.next,e.next=d):(d.next=j.head,j.head=d)}}function r(a,b,c){var d=m[c],e=p(a,b);e?e.next=d.next:j.head=d.next}var j=this,k=0,l=0;this.getAttachId=function(){return l++};var m=this.messages={},n,o;this.render=function(k){k=k||{},n=!1,o=k;var l=d(h,i.ngMessagesMultiple)||d(h,i.multiple),m=[],p={},q=j.head,r=!1,s=0;while(q!=null){s++;var t=q.message,u=!1;r||e(k,function(a,b){if(!u&&g(a)&&t.test(b)){if(p[b])return;p[b]=!0,u=!0,t.attach()}}),u?r=!l:m.push(t),q=q.next}e(m,function(a){a.detach()}),m.length!==s?a.setClass(f,b,c):a.setClass(f,c,b)},h.$watchCollection(i.ngMessages||i["for"],j.render),this.reRender=function(){n||(n=!0,h.$evalAsync(function(){n&&o&&j.render(o)}))},this.register=function(a,b){var c=k.toString();m[c]={message:b},q(f[0],a,c),a.$$ngMessageNode=c,k++,j.reRender()},this.deregister=function(a){var b=a.$$ngMessageNode;delete a.$$ngMessageNode,r(f[0],a,b),delete m[b],j.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(a,b,c){return{restrict:"AE",require:"^^ngMessages",link:function(d,e,f){var h=f.ngMessagesInclude||f.src;a(h).then(function(a){c(a)(d,function(a){e.after(a);var c=g(b[0].createComment(" ngMessagesInclude: "+h+" "));e.after(c),e.remove()})})}}}]).directive("ngMessage",h("AE")).directive("ngMessageExp",h("A"))})(window,window.angular)
  ;(function(a,b,c){function d(a,c,d){function g(a,d,f){var g,h;f=f||{},h=f.expires,g=b.isDefined(f.path)?f.path:e,b.isUndefined(d)&&(h="Thu, 01 Jan 1970 00:00:00 GMT",d=""),b.isString(h)&&(h=new Date(h));var i=encodeURIComponent(a)+"="+encodeURIComponent(d);i+=g?";path="+g:"",i+=f.domain?";domain="+f.domain:"",i+=h?";expires="+h.toUTCString():"",i+=f.secure?";secure":"";var j=i.length+1;return j>4096&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+j+" > 4096 bytes)!"),i}var e=d.baseHref(),f=a[0];return function(a,b,c){f.cookie=g(a,b,c)}}"use strict",b.module("ngCookies",["ng"]).provider("$cookies",[function(){function d(c){return c?b.extend({},a,c):a}var a=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(a,e){return{get:function(b){return a()[b]},getObject:function(a){var c=this.get(a);return c?b.fromJson(c):c},getAll:function(){return a()},put:function(a,b,c){e(a,b,d(c))},putObject:function(a,c,d){this.put(a,b.toJson(c),d)},remove:function(a,b){e(a,c,d(b))}}}]}]),b.module("ngCookies").factory("$cookieStore",["$cookies",function(a){return{get:function(b){return a.getObject(b)},put:function(b,c){a.putObject(b,c)},remove:function(b){a.remove(b)}}}]),d.$inject=["$document","$log","$browser"],b.module("ngCookies").provider("$$cookieWriter",function(){this.$get=d})})(window,window.angular)
  ;(function(a,b,c){function f(){function a(a,c){return b.extend(Object.create(a),c)}function d(a,b){var c=b.caseInsensitiveMatch,d={originalPath:a,regexp:a},e=d.keys=[];return a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,b,c,d){var f=d==="?"?d:null,g=d==="*"?d:null;return e.push({name:c,optional:!!f}),b=b||"",""+(f?"":b)+"(?:"+(f?b:"")+(g&&"(.+?)"||"([^/]+)")+(f||"")+")"+(f||"")}).replace(/([\/$\*])/g,"\\$1"),d.regexp=new RegExp("^"+a+"$",c?"i":""),d}var c={};this.when=function(a,e){var f=b.copy(e);b.isUndefined(f.reloadOnSearch)&&(f.reloadOnSearch=!0),b.isUndefined(f.caseInsensitiveMatch)&&(f.caseInsensitiveMatch=this.caseInsensitiveMatch),c[a]=b.extend(f,a&&d(a,f));if(a){var g=a[a.length-1]=="/"?a.substr(0,a.length-1):a+"/";c[g]=b.extend({redirectTo:a},d(g,f))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(a){return typeof a=="string"&&(a={redirectTo:a}),this.when(null,a),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(d,f,g,h,i,j,k){function p(a,b){var c=b.keys,d={};if(!b.regexp)return null;var e=b.regexp.exec(a);if(!e)return null;for(var f=1,g=e.length;f<g;++f){var h=c[f-1],i=e[f];h&&i&&(d[h.name]=i)}return d}function q(a){var c=o.current;m=s(),n=m&&c&&m.$$route===c.$$route&&b.equals(m.pathParams,c.pathParams)&&!m.reloadOnSearch&&!l,!n&&(c||m)&&d.$broadcast("$routeChangeStart",m,c).defaultPrevented&&a&&a.preventDefault()}function r(){var a=o.current,c=m;if(n)a.params=c.params,b.copy(a.params,g),d.$broadcast("$routeUpdate",a);else if(c||a)l=!1,o.current=c,c&&c.redirectTo&&(b.isString(c.redirectTo)?f.path(t(c.redirectTo,c.params)).search(c.params).replace():f.url(c.redirectTo(c.pathParams,f.path(),f.search())).replace()),h.when(c).then(function(){if(c){var a=b.extend({},c.resolve),d,e;return b.forEach(a,function(c,d){a[d]=b.isString(c)?i.get(c):i.invoke(c,null,null,d)}),b.isDefined(d=c.template)?b.isFunction(d)&&(d=d(c.params)):b.isDefined(e=c.templateUrl)&&(b.isFunction(e)&&(e=e(c.params)),b.isDefined(e)&&(c.loadedTemplateUrl=k.valueOf(e),d=j(e))),b.isDefined(d)&&(a.$template=d),h.all(a)}}).then(function(e){c==o.current&&(c&&(c.locals=e,b.copy(c.params,g)),d.$broadcast("$routeChangeSuccess",c,a))},function(b){c==o.current&&d.$broadcast("$routeChangeError",c,a,b)})}function s(){var d,e;return b.forEach(c,function(c,g){!e&&(d=p(f.path(),c))&&(e=a(c,{params:b.extend({},f.search(),d),pathParams:d}),e.$$route=c)}),e||c[null]&&a(c[null],{params:{},pathParams:{}})}function t(a,c){var d=[];return b.forEach((a||"").split(":"),function(a,b){if(b===0)d.push(a);else{var e=a.match(/(\w+)(?:[?*])?(.*)/),f=e[1];d.push(c[f]),d.push(e[2]||""),delete c[f]}}),d.join("")}var l=!1,m,n,o={routes:c,reload:function(){l=!0,d.$evalAsync(function(){q(),r()})},updateParams:function(a){if(this.current&&this.current.$$route)a=b.extend({},this.current.params,a),f.path(t(this.current.$$route.originalPath,a)),f.search(a);else throw e("norout","Tried updating route when with no current route")}};return d.$on("$locationChangeStart",q),d.$on("$locationChangeSuccess",r),o}]}function g(){this.$get=function(){return{}}}function h(a,c,d){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(e,f,g,h,i){function o(){l&&(d.cancel(l),l=null),j&&(j.$destroy(),j=null),k&&(l=d.leave(k),l.then(function(){l=null}),k=null)}function p(){var g=a.current&&a.current.locals,h=g&&g.$template;if(b.isDefined(h)){var l=e.$new(),p=a.current,q=i(l,function(a){d.enter(a,null,k||f).then(function(){b.isDefined(m)&&(!m||e.$eval(m))&&c()}),o()});k=q,j=p.scope=l,j.$emit("$viewContentLoaded"),j.$eval(n)}else o()}var j,k,l,m=g.autoscroll,n=g.onload||"";e.$on("$routeChangeSuccess",p),p()}}}function i(a,b,c){return{restrict:"ECA",priority:-400,link:function(d,e){var f=c.current,g=f.locals;e.html(g.$template);var h=a(e.contents());if(f.controller){g.$scope=d;var i=b(f.controller,g);f.controllerAs&&(d[f.controllerAs]=i),e.data("$ngControllerController",i),e.children().data("$ngControllerController",i)}h(d)}}}"use strict";var d=b.module("ngRoute",["ng"]).provider("$route",f),e=b.$$minErr("ngRoute");d.provider("$routeParams",g),d.directive("ngView",h),d.directive("ngView",i),h.$inject=["$route","$anchorScroll","$animate"],i.$inject=["$compile","$controller","$route"]})(window,window.angular)
  ;(function(a,b,c){function e(){this.$get=["$$sanitizeUri",function(a){return function(b){var c=[];return E(b,I(c,function(b,c){return!/^unsafe/.test(a(b,c))})),c.join("")}}]}function f(a){var c=[],d=I(c,b.noop);return d.chars(a),c.join("")}function D(a,c){var d={},e=a.split(","),f;for(f=0;f<e.length;f++)d[c?b.lowercase(e[f]):e[f]]=!0;return d}function E(a,c){function w(a,d,e,f){d=b.lowercase(d);if(u[d])while(p.last()&&v[p.last()])y("",p.last());t[d]&&p.last()==d&&y("",d),f=q[d]||!!f,f||p.push(d);var g={};e.replace(i,function(a,b,c,d,e){var f=c||d||e||"";g[b]=G(f)}),c.start&&c.start(d,g,f)}function y(a,d){var e=0,f;d=b.lowercase(d);if(d)for(e=p.length-1;e>=0;e--)if(p[e]==d)break;if(e>=0){for(f=p.length-1;f>=e;f--)c.end&&c.end(p[f]);p.length=e}}typeof a!="string"&&(a===null||typeof a=="undefined"?a="":a=""+a);var e,f,o,p=[],r=a,s;p.last=function(){return p[p.length-1]};while(a){s="",f=!0,!p.last()||!x[p.last()]?(a.indexOf("<!--")===0?(e=a.indexOf("--",4),e>=0&&a.lastIndexOf("-->",e)===e&&(c.comment&&c.comment(a.substring(4,e)),a=a.substring(e+3),f=!1)):m.test(a)?(o=a.match(m),o&&(a=a.replace(o[0],""),f=!1)):k.test(a)?(o=a.match(h),o&&(a=a.substring(o[0].length),o[0].replace(h,y),f=!1)):j.test(a)&&(o=a.match(g),o?(o[4]&&(a=a.substring(o[0].length),o[0].replace(g,w)),f=!1):(s+="<",a=a.substring(1))),f&&(e=a.indexOf("<"),s+=e<0?a:a.substring(0,e),a=e<0?"":a.substring(e),c.chars&&c.chars(G(s)))):(a=a.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+p.last()+"[^>]*>","i"),function(a,b){return b=b.replace(l,"$1").replace(n,"$1"),c.chars&&c.chars(G(b)),""}),y("",p.last()));if(a==r)throw d("badparse","The sanitizer was unable to parse the following block of html: {0}",a);r=a}y()}function G(a){return a?(F.innerHTML=a.replace(/</g,"&lt;"),F.textContent):""}function H(a){return a.replace(/&/g,"&amp;").replace(o,function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1);return"&#"+((b-55296)*1024+(c-56320)+65536)+";"}).replace(p,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function I(a,c){var d=!1,e=b.bind(a,a.push);return{start:function(a,f,g){a=b.lowercase(a),!d&&x[a]&&(d=a),!d&&y[a]===!0&&(e("<"),e(a),b.forEach(f,function(d,f){var g=b.lowercase(f),h=a==="img"&&g==="src"||g==="background";C[g]===!0&&(z[g]!==!0||c(d,h))&&(e(" "),e(f),e('="'),e(H(d)),e('"'))}),e(g?"/>":">"))},end:function(a){a=b.lowercase(a),!d&&y[a]===!0&&(e("</"),e(a),e(">")),a==d&&(d=!1)},chars:function(a){d||e(H(a))}}}"use strict";var d=b.$$minErr("$sanitize"),g=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,i=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,j=/^</,k=/^<\//,l=/<!--(.*?)-->/g,m=/<!DOCTYPE([^>]*?)>/i,n=/<!\[CDATA\[(.*?)]]>/g,o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~| |!])/g,q=D("area,br,col,hr,img,wbr"),r=D("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),s=D("rp,rt"),t=b.extend({},s,r),u=b.extend({},r,D("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),v=b.extend({},s,D("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),w=D("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),x=D("script,style"),y=b.extend({},q,u,v,t,w),z=D("background,cite,href,longdesc,src,usemap,xlink:href"),A=D("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),B=D("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),C=b.extend({},z,B,A),F=document.createElement("pre");b.module("ngSanitize",[]).provider("$sanitize",e),b.module("ngSanitize").filter("linky",["$sanitize",function(a){var c=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,d=/^mailto:/i;return function(e,g){function m(a){if(!a)return;j.push(f(a))}function n(a,c){j.push("<a "),b.isDefined(g)&&j.push('target="',g,'" '),j.push('href="',a.replace(/"/g,"&quot;"),'">'),m(c),j.push("</a>")}if(!e)return e;var h,i=e,j=[],k,l;while(h=i.match(c))k=h[0],!h[2]&&!h[4]&&(k=(h[3]?"http://":"mailto:")+k),l=h.index,m(i.substr(0,l)),n(k,h[0].replace(d,"")),i=i.substring(l+h[0].length);return m(i),a(j.join(""))}}])})(window,window.angular)
  ;(function(a,b){typeof exports=="object"?module.exports=b(require("angular")):typeof define=="function"&&define.amd?define(["angular"],b):b(a.angular)})(this,function(angular){return angular.module("ngMap",[]),function(){"use strict";var a,b=function(b,c,d,e,f,g,h,i,j){a=g;var k=this,l=f.startSymbol(),m=f.endSymbol();k.mapOptions,k.mapEvents,k.eventListeners,k.addObject=function(a,b){if(k.map){k.map[a]=k.map[a]||{};var c=Object.keys(k.map[a]).length;k.map[a][b.id||c]=b,k.map instanceof google.maps.Map&&(a!="infoWindows"&&b.setMap&&b.setMap&&b.setMap(k.map),b.centered&&b.position&&k.map.setCenter(b.position),a=="markers"&&k.objectChanged("markers"),a=="customMarkers"&&k.objectChanged("customMarkers"))}},k.deleteObject=function(a,b){if(b.map){var c=b.map[a];for(var d in c)c[d]===b&&(void 0,google.maps.event.clearInstanceListeners(b),delete c[d]);b.map&&b.setMap&&b.setMap(null),a=="markers"&&k.objectChanged("markers"),a=="customMarkers"&&k.objectChanged("customMarkers")}},k.observeAttrSetObj=function(b,c,d){if(c.noWatcher)return!1;var e=a.getAttrsToObserve(b);for(var f=0;f<e.length;f++){var g=e[f];c.$observe(g,h.observeAndSet(g,d))}},k.zoomToIncludeMarkers=function(){if(k.map.markers!=null&&Object.keys(k.map.markers).length>0||k.map.customMarkers!=null&&Object.keys(k.map.customMarkers).length>0){var a=new google.maps.LatLngBounds;for(var b in k.map.markers)a.extend(k.map.markers[b].getPosition());for(var c in k.map.customMarkers)a.extend(k.map.customMarkers[c].getPosition());k.mapOptions.maximumZoom&&(k.enableMaximumZoomCheck=!0),k.map.fitBounds(a)}},k.objectChanged=function(a){k.map&&(a=="markers"||a=="customMarkers")&&k.map.zoomToIncludeMarkers=="auto"&&k.zoomToIncludeMarkers()},k.initializeMap=function(){var f=k.mapOptions,g=k.mapEvents,o=k.map;k.map=i.getMapInstance(c[0]),h.setStyle(c[0]);if(o){var p=a.filter(d),q=a.getOptions(p),r=a.getControlOptions(p);f=angular.extend(q,r),void 0;for(var s in o){var t=o[s];if(typeof t=="object")for(var u in t)k.addObject(s,t[u])}k.map.showInfoWindow=k.showInfoWindow,k.map.hideInfoWindow=k.hideInfoWindow}f.zoom=f.zoom||15;var v=f.center,w=new RegExp(j(l)+".*"+j(m));if(!f.center||typeof v=="string"&&v.match(w))f.center=new google.maps.LatLng(0,0);else if(typeof v=="string"&&v.match(/^[0-9.-]*,[0-9.-]*$/)){var x=parseFloat(v.split(",")[0]),y=parseFloat(v.split(",")[1]);f.center=new google.maps.LatLng(x,y)}else if(!(v instanceof google.maps.LatLng)){var z=f.center;delete f.center,h.getGeoLocation(z,f.geoLocationOptions).then(function(a){k.map.setCenter(a);var c=f.geoCallback;c&&e(c)(b)},function(){f.geoFallbackCenter&&k.map.setCenter(f.geoFallbackCenter)})}k.map.setOptions(f);for(var A in g){var B=g[A],C=google.maps.event.addListener(k.map,A,B);k.eventListeners[A]=C}k.observeAttrSetObj(n,d,k.map),k.singleInfoWindow=f.singleInfoWindow,google.maps.event.trigger(k.map,"resize"),google.maps.event.addListenerOnce(k.map,"idle",function(){h.addMap(k),f.zoomToIncludeMarkers&&k.zoomToIncludeMarkers(),b.map=k.map,b.$emit("mapInitialized",k.map),d.mapInitialized&&e(d.mapInitialized)(b,{map:k.map})}),f.zoomToIncludeMarkers&&f.maximumZoom&&google.maps.event.addListener(k.map,"zoom_changed",function(){k.enableMaximumZoomCheck==1&&(k.enableMaximumZoomCheck=!1,google.maps.event.addListenerOnce(k.map,"bounds_changed",function(){k.map.setZoom(Math.min(f.maximumZoom,k.map.getZoom()))}))})},b.google=google;var n=a.orgAttributes(c),o=a.filter(d),p=a.getOptions(o,{scope:b}),q=a.getControlOptions(o),r=angular.extend(p,q),s=a.getEvents(b,o);void 0,Object.keys(s).length&&void 0,k.mapOptions=r,k.mapEvents=s,k.eventListeners={};if(p.lazyInit){if(!d.id||d.id.indexOf(l,0)!==0||d.id.indexOf(m,d.id.length-m.length)===-1)var u=d.id;else var t=d.id.slice(2,-2),u=e(t)(b);k.map={id:u},h.addMap(k)}else k.initializeMap();p.triggerResize&&google.maps.event.trigger(k.map,"resize"),c.bind("$destroy",function(){i.returnMapInstance(k.map),h.deleteMap(k)})};b.$inject=["$scope","$element","$attrs","$parse","$interpolate","Attr2MapOptions","NgMap","NgMapPool","escapeRegexpFilter"],angular.module("ngMap").controller("__MapController",b)}(),function(){"use strict";var a,b=function(b,d,e,f){f=f[0]||f[1];var g=a.orgAttributes(d),h=a.filter(e),i=a.getOptions(h,{scope:b}),j=a.getEvents(b,h);void 0;var k=c(i,j);f.addObject("bicyclingLayers",k),f.observeAttrSetObj(g,e,k),d.bind("$destroy",function(){f.deleteObject("bicyclingLayers",k)})},c=function(a,b){var c=new google.maps.BicyclingLayer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c},d=function(c){return a=c,{restrict:"E",require:["?^map","?^ngMap"],link:b}};d.$inject=["Attr2MapOptions"],angular.module("ngMap").directive("bicyclingLayer",d)}(),function(){"use strict";var a,b,c=function(b,c,d,e,f){e=e[0]||e[1];var g=a.filter(d),h=a.getOptions(g,{scope:b}),i=a.getEvents(b,g),j=c[0].parentElement.removeChild(c[0]),k=f();angular.element(j).append(k);for(var l in i)google.maps.event.addDomListener(j,l,i[l]);e.addObject("customControls",j);var m=h.position;e.map.controls[google.maps.ControlPosition[m]].push(j),c.bind("$destroy",function(){e.deleteObject("customControls",j)})},d=function(d,e){return a=d,b=e,{restrict:"E",require:["?^map","?^ngMap"],link:c,transclude:!0}};d.$inject=["Attr2MapOptions","NgMap"],angular.module("ngMap").directive("customControl",d)}(),function(){"use strict";var a,b,c,d,e=function(a){a=a||{},this.el=document.createElement("div"),this.el.style.display="inline-block",this.el.style.visibility="hidden",this.visible=!0;for(var b in a)this[b]=a[b]},f=function(){e.prototype=new google.maps.OverlayView,e.prototype.setContent=function(a,b){this.el.innerHTML=a,this.el.style.position="absolute",b&&c(angular.element(this.el).contents())(b)},e.prototype.getDraggable=function(){return this.draggable},e.prototype.setDraggable=function(a){this.draggable=a},e.prototype.getPosition=function(){return this.position},e.prototype.setPosition=function(a){a&&(this.position=a);var c=this;if(this.getProjection()&&typeof this.position.lng=="function"){void 0;var d=function(){if(!c.getProjection())return;var a=c.getProjection().fromLatLngToDivPixel(c.position),b=Math.round(a.x-c.el.offsetWidth/2),d=Math.round(a.y-c.el.offsetHeight-10);c.el.style.left=b+"px",c.el.style.top=d+"px",c.el.style.visibility="visible"};c.el.offsetWidth&&c.el.offsetHeight?d():b(d,300)}},e.prototype.setZIndex=function(a){a&&(this.zIndex=a),this.el.style.zIndex=this.zIndex},e.prototype.getVisible=function(){return this.visible},e.prototype.setVisible=function(a){this.el.style.display=a?"inline-block":"none",this.visible=a},e.prototype.addClass=function(a){var b=this.el.className.trim().split(" ");b.indexOf(a)==-1&&b.push(a),this.el.className=b.join(" ")},e.prototype.removeClass=function(a){var b=this.el.className.split(" "),c=b.indexOf(a);c>-1&&b.splice(c,1),this.el.className=b.join(" ")},e.prototype.onAdd=function(){this.getPanes().overlayMouseTarget.appendChild(this.el)},e.prototype.draw=function(){this.setPosition(),this.setZIndex(this.zIndex),this.setVisible(this.visible)},e.prototype.onRemove=function(){this.el.parentNode.removeChild(this.el)}},g=function(c,f){return function(g,h,i,j){j=j[0]||j[1];var k=a.orgAttributes(h),l=a.filter(i),m=a.getOptions(l,{scope:g}),n=a.getEvents(g,l);h[0].style.display="none",void 0;var o=new e(m);b(function(){g.$watch("["+f.join(",")+"]",function(){o.setContent(c,g)},!0),o.setContent(h[0].innerHTML,g);var a=h[0].firstElementChild.className;o.addClass("custom-marker"),o.addClass(a),void 0,m.position instanceof google.maps.LatLng||d.getGeoLocation(m.position).then(function(a){o.setPosition(a)})}),void 0;for(var p in n)google.maps.event.addDomListener(o.el,p,n[p]);j.addObject("customMarkers",o),j.observeAttrSetObj(k,i,o),h.bind("$destroy",function(){j.deleteObject("customMarkers",o)})}},h=function(e,h,i,j,k,l){a=j,b=e,c=h,d=k;var m=i.startSymbol(),n=i.endSymbol(),o=new RegExp(l(m)+"([^"+n.substring(0,1)+"]+)"+l(n),"g");return{restrict:"E",require:["?^map","?^ngMap"],compile:function(a){f(),a[0].style.display="none";var b=a.html(),c=b.match(o),d=[];return(c||[]).forEach(function(a){var b=a.replace(m,"").replace(n,"");a.indexOf("::")==-1&&a.indexOf("this.")==-1&&d.indexOf(b)==-1&&d.push(a.replace(m,"").replace(n,""))}),g(b,d)}}};h.$inject=["$timeout","$compile","$interpolate","Attr2MapOptions","NgMap","escapeRegexpFilter"],angular.module("ngMap").directive("customMarker",h)}(),function(){"use strict";var a,b,c,d=function(a,b){a.panel&&(a.panel=document.getElementById(a.panel)||document.querySelector(a.panel));var c=new google.maps.DirectionsRenderer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c},e=function(a,d){var e=new google.maps.DirectionsService,f=d;f.travelMode=f.travelMode||"DRIVING";var g=["origin","destination","travelMode","transitOptions","unitSystem","durationInTraffic","waypoints","optimizeWaypoints","provideRouteAlternatives","avoidHighways","avoidTolls","region"];for(var h in f)g.indexOf(h)===-1&&delete f[h];f.waypoints&&(f.waypoints=="[]"||f.waypoints==="")&&delete f.waypoints;var i=function(c){e.route(c,function(c,d){d==google.maps.DirectionsStatus.OK&&b(function(){a.setDirections(c)})})};f.origin&&f.destination&&(f.origin=="current-location"?c.getCurrentPosition().then(function(a){f.origin=new google.maps.LatLng(a.coords.latitude,a.coords.longitude),i(f)}):f.destination=="current-location"?c.getCurrentPosition().then(function(a){f.destination=new google.maps.LatLng(a.coords.latitude,a.coords.longitude),i(f)}):i(f))},f=function(f,g,h,i){var j=f;a=i,b=g,c=h;var k=function(c,f,g,h){h=h[0]||h[1];var i=j.orgAttributes(f),k=j.filter(g),l=j.getOptions(k,{scope:c}),m=j.getEvents(c,k),n=j.getAttrsToObserve(i),o=d(l,m);h.addObject("directionsRenderers",o),n.forEach(function(a){(function(a){g.$observe(a,function(c){if(a=="panel")b(function(){var a=document.getElementById(c)||document.querySelector(c);void 0,a&&o.setPanel(a)});else if(l[a]!==c){var d=j.toOptionValue(c,{key:a});void 0,l[a]=d,e(o,l)}})})(a)}),a.getMap().then(function(){e(o,l)}),f.bind("$destroy",function(){h.deleteObject("directionsRenderers",o)})};return{restrict:"E",require:["?^map","?^ngMap"],link:k}};f.$inject=["Attr2MapOptions","$timeout","NavigatorGeolocation","NgMap"],angular.module("ngMap").directive("directions",f)}(),function(){"use strict",angular.module("ngMap").directive("drawingManager",["Attr2MapOptions",function(a){var b=a;return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,c,d,e){e=e[0]||e[1];var f=b.filter(d),g=b.getOptions(f,{scope:a}),h=b.getControlOptions(f),i=b.getEvents(a,f),j=new google.maps.drawing.DrawingManager({drawingMode:g.drawingmode,drawingControl:g.drawingcontrol,drawingControlOptions:h.drawingControlOptions,circleOptions:g.circleoptions,markerOptions:g.markeroptions,polygonOptions:g.polygonoptions,polylineOptions:g.polylineoptions,rectangleOptions:g.rectangleoptions});d.$observe("drawingControlOptions",function(a){j.drawingControlOptions=b.getControlOptions({drawingControlOptions:a}).drawingControlOptions,j.setDrawingMode(null),j.setMap(e.map)});for(var k in i)google.maps.event.addListener(j,k,i[k]);e.addObject("mapDrawingManager",j),c.bind("$destroy",function(){e.deleteObject("mapDrawingManager",j)})}}}])}(),function(){"use strict",angular.module("ngMap").directive("dynamicMapsEngineLayer",["Attr2MapOptions",function(a){var b=a,c=function(a,b){var c=new google.maps.visualization.DynamicMapsEngineLayer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c};return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=b.filter(e),h=b.getOptions(g,{scope:a}),i=b.getEvents(a,g,i),j=c(h,i);f.addObject("mapsEngineLayers",j)}}}])}(),function(){"use strict",angular.module("ngMap").directive("fusionTablesLayer",["Attr2MapOptions",function(a){var b=a,c=function(a,b){var c=new google.maps.FusionTablesLayer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c};return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=b.filter(e),h=b.getOptions(g,{scope:a}),i=b.getEvents(a,g,i);void 0;var j=c(h,i);f.addObject("fusionTablesLayers",j),d.bind("$destroy",function(){f.deleteObject("fusionTablesLayers",j)})}}}])}(),function(){"use strict",angular.module("ngMap").directive("heatmapLayer",["Attr2MapOptions","$window",function(a,b){var c=a;return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=c.filter(e),h=c.getOptions(g,{scope:a});h.data=b[e.data]||a[e.data];if(h.data instanceof Array)h.data=new google.maps.MVCArray(h.data);else throw"invalid heatmap data";var i=new google.maps.visualization.HeatmapLayer(h),j=c.getEvents(a,g);void 0,f.addObject("heatmapLayers",i)}}}])}(),function(){"use strict";var a=function(a,b,c,d,e,f,g){var h=a,i=function(a,f,g){var h;a.position&&!(a.position instanceof google.maps.LatLng)&&delete a.position,h=new google.maps.InfoWindow(a);for(var i in f)i&&google.maps.event.addListener(h,i,f[i]);var j=c(function(a){angular.isString(g)?d(g).then(function(b){a(angular.element(b).wrap("<div>").parent())},function(a){throw"info-window template request failed: "+a}):a(g)}).then(function(a){var b=a.html().trim();if(angular.element(b).length!=1)throw"info-window working as a template must have a container";h.__template=b.replace(/\s?ng-non-bindable[='"]+/,"")});return h.__open=function(a,c,d){j.then(function(){e(function(){d&&(c.anchor=d);var e=b(h.__template)(c);h.setContent(e[0]),c.$apply(),d&&d.getPosition?h.open(a,d):d&&d instanceof google.maps.LatLng?(h.open(a),h.setPosition(d)):h.open(a);var f=h.content.parentElement.parentElement.parentElement;f.className="ng-map-info-window"})})},h},j=function(a,b,c,d){d=d[0]||d[1],b.css("display","none");var e=h.orgAttributes(b),j=h.filter(c),k=h.getOptions(j,{scope:a}),l=h.getEvents(a,j),m=i(k,l,k.template||b),n;k.position&&!(k.position instanceof google.maps.LatLng)&&(n=k.position),n&&g.getGeoLocation(n).then(function(b){m.setPosition(b),m.__open(d.map,a,b);var e=c.geoCallback;e&&f(e)(a)}),d.addObject("infoWindows",m),d.observeAttrSetObj(e,c,m),d.showInfoWindow=d.map.showInfoWindow=d.showInfoWindow||function(b,c,e){var f=typeof b=="string"?b:c,g=typeof b=="string"?c:e;if(typeof g=="string")if(typeof d.map.markers!="undefined"&&typeof d.map.markers[g]!="undefined")g=d.map.markers[g];else if(typeof d.map.customMarkers!="undefined"&&typeof d.map.customMarkers[g]!="undefined")g=d.map.customMarkers[g];else throw new Error("Cant open info window for id "+g+". Marker or CustomMarker is not defined");var h=d.map.infoWindows[f],i=g?g:this.getPosition?this:null;h.__open(d.map,a,i),d.singleInfoWindow&&(d.lastInfoWindow&&a.hideInfoWindow(d.lastInfoWindow),d.lastInfoWindow=f)},d.hideInfoWindow=d.map.hideInfoWindow=d.hideInfoWindow||function(a,b){var c=typeof a=="string"?a:b,e=d.map.infoWindows[c];e.close()},a.showInfoWindow=d.map.showInfoWindow,a.hideInfoWindow=d.map.hideInfoWindow;var o=m.mapId?{id:m.mapId}:0;g.getMap(o).then(function(b){m.visible&&m.__open(b,a);if(m.visibleOnMarker){var c=m.visibleOnMarker;m.__open(b,a,b.markers[c])}})};return{restrict:"E",require:["?^map","?^ngMap"],link:j}};a.$inject=["Attr2MapOptions","$compile","$q","$templateRequest","$timeout","$parse","NgMap"],angular.module("ngMap").directive("infoWindow",a)}(),function(){"use strict",angular.module("ngMap").directive("kmlLayer",["Attr2MapOptions",function(a){var b=a,c=function(a,b){var c=new google.maps.KmlLayer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c};return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=b.orgAttributes(d),h=b.filter(e),i=b.getOptions(h,{scope:a}),j=b.getEvents(a,h);void 0;var k=c(i,j);f.addObject("kmlLayers",k),f.observeAttrSetObj(g,e,k),d.bind("$destroy",function(){f.deleteObject("kmlLayers",k)})}}}])}(),function(){"use strict",angular.module("ngMap").directive("mapData",["Attr2MapOptions","NgMap",function(a,b){var c=a;return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=c.filter(e),h=c.getOptions(g,{scope:a}),i=c.getEvents(a,g,i);void 0,b.getMap(f.map.id).then(function(b){for(var c in h){var d=h[c];typeof a[d]=="function"?b.data[c](a[d]):b.data[c](d)}for(var e in i)b.data.addListener(e,i[e])})}}}])}(),function(){"use strict";var a,b,c,d=[],e=[],f=function(c,f,g){var h=g.mapLazyLoadParams||g.mapLazyLoad;if(window.google===undefined||window.google.maps===undefined){e.push({scope:c,element:f,savedHtml:d[e.length]}),window.lazyLoadCallback=function(){void 0,a(function(){e.forEach(function(a){a.element.html(a.savedHtml),b(a.element.contents())(a.scope)})},100)};var i=document.createElement("script");void 0,i.src=h+(h.indexOf("?")>-1?"&":"?")+"callback=lazyLoadCallback",document.querySelector('script[src="'+i.src+'"]')||document.body.appendChild(i)}else f.html(d),b(f.contents())(c)},g=function(a,b){return!b.mapLazyLoad&&void 0,d.push(a.html()),c=b.mapLazyLoad,window.google!==undefined&&window.google.maps!==undefined?!1:(a.html(""),{pre:f})},h=function(c,d){return b=c,a=d,{compile:g}};h.$inject=["$compile","$timeout"],angular.module("ngMap").directive("mapLazyLoad",h)}(),function(){"use strict",angular.module("ngMap").directive("mapType",["$parse","NgMap",function(a,b){return{restrict:"E",require:["?^map","?^ngMap"],link:function(c,d,e,f){f=f[0]||f[1];var g=e.name,h;if(!g)throw"invalid map-type name";h=a(e.object)(c);if(!h)throw"invalid map-type object";b.getMap().then(function(a){a.mapTypes.set(g,h)}),f.addObject("mapTypes",h)}}}])}(),function(){"use strict";var a=function(){return{restrict:"AE",controller:"__MapController",controllerAs:"ngmap"}};angular.module("ngMap").directive("map",[a]),angular.module("ngMap").directive("ngMap",[a])}(),function(){"use strict",angular.module("ngMap").directive("mapsEngineLayer",["Attr2MapOptions",function(a){var b=a,c=function(a,b){var c=new google.maps.visualization.MapsEngineLayer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c};return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=b.filter(e),h=b.getOptions(g,{scope:a}),i=b.getEvents(a,g,i);void 0;var j=c(h,i);f.addObject("mapsEngineLayers",j)}}}])}(),function(){"use strict";var a,b,c,d=function(a,b){var d;if(c.defaultOptions.marker)for(var e in c.defaultOptions.marker)typeof a[e]=="undefined"&&(void 0,a[e]=c.defaultOptions.marker[e]);a.position instanceof google.maps.LatLng||(a.position=new google.maps.LatLng(0,0)),d=new google.maps.Marker(a),Object.keys(b).length>0&&void 0;for(var f in b)f&&google.maps.event.addListener(d,f,b[f]);return d},e=function(e,f,g,h){h=h[0]||h[1];var i=a.orgAttributes(f),j=a.filter(g),k=a.getOptions(j,e,{scope:e}),l=a.getEvents(e,j);void 0;var m;k.position instanceof google.maps.LatLng||(m=k.position);var n=d(k,l);h.addObject("markers",n),m&&c.getGeoLocation(m).then(function(a){n.setPosition(a),k.centered&&n.map.setCenter(a);var c=g.geoCallback;c&&b(c)(e)}),h.observeAttrSetObj(i,g,n),f.bind("$destroy",function(){h.deleteObject("markers",n)})},f=function(d,f,g){return a=d,b=f,c=g,{restrict:"E",require:["^?map","?^ngMap"],link:e}};f.$inject=["Attr2MapOptions","$parse","NgMap"],angular.module("ngMap").directive("marker",f)}(),function(){"use strict",angular.module("ngMap").directive("overlayMapType",["NgMap",function(a){return{restrict:"E",require:["?^map","?^ngMap"],link:function(b,c,d,e){e=e[0]||e[1];var f=d.initMethod||"insertAt",g=b[d.object];a.getMap().then(function(a){if(f=="insertAt"){var b=parseInt(d.index,10);a.overlayMapTypes.insertAt(b,g)}else f=="push"&&a.overlayMapTypes.push(g)}),e.addObject("overlayMapTypes",g)}}}])}(),function(){"use strict";var a=function(a,b){var c=a,d=function(a,d,e,f){if(e.placesAutoComplete==="false")return!1;var g=c.filter(e),h=c.getOptions(g,{scope:a}),i=c.getEvents(a,g),j=new google.maps.places.Autocomplete(d[0],h);for(var k in i)google.maps.event.addListener(j,k,i[k]);var l=function(){b(function(){f&&f.$setViewValue(d.val())},100)};google.maps.event.addListener(j,"place_changed",l),d[0].addEventListener("change",l),e.$observe("types",function(a){if(a){var b=c.toOptionValue(a,{key:"types"});j.setTypes(b)}}),e.$observe("componentRestrictions",function(b){b&&j.setComponentRestrictions(a.$eval(b))})};return{restrict:"A",require:"?ngModel",link:d}};a.$inject=["Attr2MapOptions","$timeout"],angular.module("ngMap").directive("placesAutoComplete",a)}(),function(){"use strict";var a=function(a,b){var c,d=a.name;delete a.name,void 0;switch(d){case"circle":a.center instanceof google.maps.LatLng||(a.center=new google.maps.LatLng(0,0)),c=new google.maps.Circle(a);break;case"polygon":c=new google.maps.Polygon(a);break;case"polyline":c=new google.maps.Polyline(a);break;case"rectangle":c=new google.maps.Rectangle(a);break;case"groundOverlay":case"image":var e=a.url,f={opacity:a.opacity,clickable:a.clickable,id:a.id};c=new google.maps.GroundOverlay(e,a.bounds,f)}for(var g in b)b[g]&&google.maps.event.addListener(c,g,b[g]);return c},b=function(b,c,d){var e=b,f=function(b,f,g,h){h=h[0]||h[1];var i=e.orgAttributes(f),j=e.filter(g),k=e.getOptions(j,{scope:b}),l=e.getEvents(b,j),m,n;n=k.name,k.center instanceof google.maps.LatLng||(m=k.center);var o=a(k,l);h.addObject("shapes",o),m&&n=="circle"&&d.getGeoLocation(m).then(function(a){o.setCenter(a),o.centered&&o.map.setCenter(a);var d=g.geoCallback;d&&c(d)(b)}),h.observeAttrSetObj(i,g,o),f.bind("$destroy",function(){h.deleteObject("shapes",o)})};return{restrict:"E",require:["?^map","?^ngMap"],link:f}};b.$inject=["Attr2MapOptions","$parse","NgMap"],angular.module("ngMap").directive("shape",b)}(),function(){"use strict";var a=function(a,b){var c=a,d=function(a,b,c){var d,e;b.container&&(e=document.getElementById(b.container),e=e||document.querySelector(b.container)),e?d=new google.maps.StreetViewPanorama(e,b):(d=a.getStreetView(),d.setOptions(b));for(var f in c)f&&google.maps.event.addListener(d,f,c[f]);return d},e=function(a,e,f){var g=c.filter(f),h=c.getOptions(g,{scope:a}),i=c.getControlOptions(g),j=angular.extend(h,i),k=c.getEvents(a,g);void 0,b.getMap().then(function(a){var b=d(a,j,k);a.setStreetView(b),!b.getPosition()&&b.setPosition(a.getCenter()),google.maps.event.addListener(b,"position_changed",function(){b.getPosition()!==a.getCenter()&&a.setCenter(b.getPosition())});var c=google.maps.event.addListener(a,"center_changed",function(){b.setPosition(a.getCenter()),google.maps.event.removeListener(c)})})};return{restrict:"E",require:["?^map","?^ngMap"],link:e}};a.$inject=["Attr2MapOptions","NgMap"],angular.module("ngMap").directive("streetViewPanorama",a)}(),function(){"use strict",angular.module("ngMap").directive("trafficLayer",["Attr2MapOptions",function(a){var b=a,c=function(a,b){var c=new google.maps.TrafficLayer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c};return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=b.orgAttributes(d),h=b.filter(e),i=b.getOptions(h,{scope:a}),j=b.getEvents(a,h);void 0;var k=c(i,j);f.addObject("trafficLayers",k),f.observeAttrSetObj(g,e,k),d.bind("$destroy",function(){f.deleteObject("trafficLayers",k)})}}}])}(),function(){"use strict",angular.module("ngMap").directive("transitLayer",["Attr2MapOptions",function(a){var b=a,c=function(a,b){var c=new google.maps.TransitLayer(a);for(var d in b)google.maps.event.addListener(c,d,b[d]);return c};return{restrict:"E",require:["?^map","?^ngMap"],link:function(a,d,e,f){f=f[0]||f[1];var g=b.orgAttributes(d),h=b.filter(e),i=b.getOptions(h,{scope:a}),j=b.getEvents(a,h);void 0;var k=c(i,j);f.addObject("transitLayers",k),f.observeAttrSetObj(g,e,k),d.bind("$destroy",function(){f.deleteObject("transitLayers",k)})}}}])}(),function(){"use strict";var a=/([\:\-\_]+(.))/g,b=/^moz([A-Z])/,c=function(){return function(c){return c.replace(a,function(a,b,c,d){return d?c.toUpperCase():c}).replace(b,"Moz$1")}};angular.module("ngMap").filter("camelCase",c)}(),function(){"use strict";var a=function(){return function(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}};angular.module("ngMap").filter("escapeRegexp",a)}(),function(){"use strict";var a=function(){return function(a){try{return JSON.parse(a),a}catch(b){return a.replace(/([\$\w]+)\s*:/g,function(a,b){return'"'+b+'":'}).replace(/'([^']+)'/g,function(a,b){return'"'+b+'"'}).replace(/''/g,'""')}}};angular.module("ngMap").filter("jsonize",a)}(),function(){"use strict";var isoDateRE=/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*)?)([zZ]|([+\-])(\d\d):?(\d\d))?$/,Attr2MapOptions=function($parse,$timeout,$log,$interpolate,NavigatorGeolocation,GeoCoder,camelCaseFilter,jsonizeFilter,escapeRegExp){var exprStartSymbol=$interpolate.startSymbol(),exprEndSymbol=$interpolate.endSymbol(),orgAttributes=function(a){a.length>0&&(a=a[0]);var b={};for(var c=0;c<a.attributes.length;c++){var d=a.attributes[c];b[d.name]=d.value}return b},getJSON=function(a){var b=/^[\+\-]?[0-9\.]+,[ ]*\ ?[\+\-]?[0-9\.]+$/;return a.match(b)&&(a="["+a+"]"),JSON.parse(jsonizeFilter(a))},getLatLng=function(a){var b=a;if(a[0].constructor==Array)if(a[0][0].constructor==Array&&a[0][0].length==2||a[0][0].constructor==Object){var c,d=[];for(var e=0;e<a.length;e++)c=a[e].map(function(a){return new google.maps.LatLng(a[0],a[1])}),d.push(c);b=d}else b=a.map(function(a){return new google.maps.LatLng(a[0],a[1])});else!isNaN(parseFloat(a[0]))&&isFinite(a[0])&&(b=new google.maps.LatLng(b[0],b[1]));return b},toOptionValue=function(input,options){var output;try{output=getNumber(input)}catch(err){try{var output=getJSON(input);if(output instanceof Array)output[0].constructor==Object?output=output:output[0]instanceof Array?output[0][0].constructor==Object?output=output:output=getLatLng(output):output=getLatLng(output);else if(output===Object(output)){var newOptions=options;newOptions.doNotConverStringToNumber=!0,output=getOptions(output,newOptions)}}catch(err2){if(input.match(/^[A-Z][a-zA-Z0-9]+\(.*\)$/))try{var exp="new google.maps."+input;output=eval(exp)}catch(e){output=input}else if(input.match(/^([A-Z][a-zA-Z0-9]+)\.([A-Z]+)$/))try{var matches=input.match(/^([A-Z][a-zA-Z0-9]+)\.([A-Z]+)$/);output=google.maps[matches[1]][matches[2]]}catch(e){output=input}else if(input.match(/^[A-Z]+$/))try{var capitalizedKey=options.key.charAt(0).toUpperCase()+options.key.slice(1);options.key.match(/temperatureUnit|windSpeedUnit|labelColor/)?(capitalizedKey=capitalizedKey.replace(/s$/,""),output=google.maps.weather[capitalizedKey][input]):output=google.maps[capitalizedKey][input]}catch(e){output=input}else if(input.match(isoDateRE))try{output=new Date(input)}catch(e){output=input}else if(input.match(new RegExp("^"+escapeRegExp(exprStartSymbol)))&&options.scope)try{var expr=input.replace(new RegExp(escapeRegExp(exprStartSymbol)),"").replace(new RegExp(escapeRegExp(exprEndSymbol),"g"),"");output=options.scope.$eval(expr)}catch(err){output=input}else output=input}}(options.key=="center"||options.key=="position")&&output instanceof Array&&(output=new google.maps.LatLng(output[0],output[1])),options.key=="bounds"&&output instanceof Array&&(output=new google.maps.LatLngBounds(output[0],output[1]));if(options.key=="icons"&&output instanceof Array)for(var i=0;i<output.length;i++){var el=output[i];el.icon.path.match(/^[A-Z_]+$/)&&(el.icon.path=google.maps.SymbolPath[el.icon.path])}if(options.key=="icon"&&output instanceof Object){(""+output.path).match(/^[A-Z_]+$/)&&(output.path=google.maps.SymbolPath[output.path]);for(var key in output){var arr=output[key];if(key=="anchor"||key=="origin"||key=="labelOrigin")output[key]=new google.maps.Point(arr[0],arr[1]);else if(key=="size"||key=="scaledSize")output[key]=new google.maps.Size(arr[0],arr[1])}}return output},getAttrsToObserve=function(a){var b=[],c=new RegExp(escapeRegExp(exprStartSymbol)+".*"+escapeRegExp(exprEndSymbol),"g");if(!a.noWatcher)for(var d in a){var e=a[d];e&&e.match(c)&&b.push(camelCaseFilter(d))}return b},filter=function(a){var b={};for(var c in a)c.match(/^\$/)||c.match(/^ng[A-Z]/)?void 0:b[c]=a[c];return b},getOptions=function(a,b){b=b||{};var c={};for(var d in a)if(a[d]||a[d]===0){if(d.match(/^on[A-Z]/))continue;if(d.match(/ControlOptions$/))continue;typeof a[d]!="string"?c[d]=a[d]:b.doNotConverStringToNumber&&a[d].match(/^[0-9]+$/)?c[d]=a[d]:c[d]=toOptionValue(a[d],{key:d,scope:b.scope})}return c},getEvents=function(a,b){var c={},d=function(a){return"_"+a.toLowerCase()},e=function(b){var c=b.match(/([^\(]+)\(([^\)]*)\)/),d=c[1],e=c[2].replace(/event[ ,]*/,""),f=$parse("["+e+"]");return function(b){function e(a,b){return a[b]}var c=f(a),g=d.split(".").reduce(e,a);g&&g.apply(this,[b].concat(c)),$timeout(function(){a.$apply()})}};for(var f in b)if(b[f]){if(!f.match(/^on[A-Z]/))continue;var g=f.replace(/^on/,"");g=g.charAt(0).toLowerCase()+g.slice(1),g=g.replace(/([A-Z])/g,d);var h=b[f];c[g]=new e(h)}return c},getControlOptions=function(a){var b={};if(typeof a!="object")return!1;for(var c in a)if(a[c]){if(!c.match(/(.*)ControlOptions$/))continue;var d=a[c],e=d.replace(/'/g,'"');e=e.replace(/([^"]+)|("[^"]+")/g,function(a,b,c){return b?b.replace(/([a-zA-Z0-9]+?):/g,'"$1":'):c});try{var f=JSON.parse(e);for(var g in f)if(f[g]){var h=f[g];typeof h=="string"?h=h.toUpperCase():g==="mapTypeIds"&&(h=h.map(function(a){return a.match(/^[A-Z]+$/)?google.maps.MapTypeId[a.toUpperCase()]:a}));if(g==="style"){var i=c.charAt(0).toUpperCase()+c.slice(1),j=i.replace(/Options$/,"")+"Style";f[g]=google.maps[j][h]}else g==="position"?f[g]=google.maps.ControlPosition[h]:f[g]=h}b[c]=f}catch(k){void 0}}return b};return{filter:filter,getOptions:getOptions,getEvents:getEvents,getControlOptions:getControlOptions,toOptionValue:toOptionValue,getAttrsToObserve:getAttrsToObserve,orgAttributes:orgAttributes}};Attr2MapOptions.$inject=["$parse","$timeout","$log","$interpolate","NavigatorGeolocation","GeoCoder","camelCaseFilter","jsonizeFilter","escapeRegexpFilter"],angular.module("ngMap").service("Attr2MapOptions",Attr2MapOptions)}(),function(){"use strict";var a,b=function(b){var c=a.defer(),d=new google.maps.Geocoder;return d.geocode(b,function(a,b){b==google.maps.GeocoderStatus.OK?c.resolve(a):c.reject(b)}),c.promise},c=function(c){return a=c,{geocode:b}};c.$inject=["$q"],angular.module("ngMap").service("GeoCoder",c)}(),function(){"use strict";var a,b,c=function(c,d){return a=c,b=d,{load:function(c){var d=a.defer();if(window.google===undefined||window.google.maps===undefined){window.lazyLoadCallback=function(){b(function(){d.resolve(window.google)},100)};var e=document.createElement("script");e.src=c+(c.indexOf("?")>-1?"&":"?")+"callback=lazyLoadCallback",document.querySelector('script[src="'+e.src+'"]')||document.body.appendChild(e)}else d.resolve(window.google);return d.promise}}};c.$inject=["$q","$timeout"],angular.module("ngMap").service("GoogleMapsApi",c)}(),function(){"use strict";var a,b=function(b){var c=a.defer();return navigator.geolocation?(b===undefined?b={timeout:5e3}:b.timeout===undefined&&(b.timeout=5e3),navigator.geolocation.getCurrentPosition(function(a){c.resolve(a)},function(a){void 0,c.reject(a)},b)):c.reject("Browser Geolocation service failed."),c.promise},c=function(c){return a=c,{getCurrentPosition:b}};c.$inject=["$q"],angular.module("ngMap").service("NavigatorGeolocation",c)}(),function(){"use strict";var a=[],b,c,d,e=function(d){var e=c.createElement("div");e.style.width="100%",e.style.height="100%",d.appendChild(e);var f=new b.google.maps.Map(e,{});return a.push(f),f},f=function(b,c){var d;for(var e=0;e<a.length;e++){var f=a[e];if(f.id==c&&!f.inUse){var g=f.getDiv();b.appendChild(g),d=f;break}}return d},g=function(b){var c;for(var d=0;d<a.length;d++){var e=a[d];if(e.id)continue;if(!e.inUse){var f=e.getDiv();b.appendChild(f),c=e;break}}return c},h=function(a){var b=f(a,a.id)||g(a);return b?d(function(){google.maps.event.trigger(b,"idle")},100):b=e(a),b.inUse=!0,b},i=function(a){a.inUse=!1},j=function(){for(var b=0;b<a.length;b++)a[b]=null;a=[]},k=function(b){for(var c=0;c<a.length;c++)a[c]!==null&&a[c].id==b&&(a[c]=null,a.splice(c,1))},l=function(e,f,g){return c=e[0],b=f,d=g,{mapInstances:a,resetMapInstances:j,getMapInstance:h,returnMapInstance:i,deleteMapInstance:k}};l.$inject=["$document","$window","$timeout"],angular.module("ngMap").factory("NgMapPool",l)}(),function(){"use strict";var a,b,c,d,e,f,g,h,i={},j=function(c,d){var e;return c.currentStyle?e=c.currentStyle[d]:a.getComputedStyle&&(e=b.defaultView.getComputedStyle(c,null).getPropertyValue(d)),e},k=function(a){var b=i[a||0];if(b.map instanceof google.maps.Map)void 0;else return b.initializeMap(),b.map},l=function(b,d){function g(c){var d=Object.keys(i),h=i[d[0]];b&&i[b]?e.resolve(i[b].map):!b&&h&&h.map?e.resolve(h.map):c>f?e.reject("could not find map"):a.setTimeout(function(){g(c+100)},100)}d=d||{},b=typeof b=="object"?b.id:b;var e=c.defer(),f=d.timeout||1e4;return g(0),e.promise},m=function(a){if(a.map){var b=Object.keys(i).length;i[a.map.id||b]=a}},n=function(a){var b=Object.keys(i).length-1,c=a.map.id||b;if(a.map){for(var d in a.eventListeners){void 0;var e=a.eventListeners[d];google.maps.event.removeListener(e)}a.map.controls&&a.map.controls.forEach(function(a){a.clear()})}a.map.heatmapLayers&&Object.keys(a.map.heatmapLayers).forEach(function(b){a.deleteObject("heatmapLayers",a.map.heatmapLayers[b])}),h.deleteMapInstance(c),delete i[c]},o=function(a,b){var e=c.defer();return!a||a.match(/^current/i)?d.getCurrentPosition(b).then(function(a){var b=a.coords.latitude,c=a.coords.longitude,d=new google.maps.LatLng(b,c);e.resolve(d)},function(a){e.reject(a)}):f.geocode({address:a}).then(function(a){e.resolve(a[0].geometry.location)},function(a){e.reject(a)}),e.promise},p=function(a,b){return void 0,function(c){if(c){var d=g("set-"+a),f=e.toOptionValue(c,{key:a});b[d]&&(void 0,a.match(/center|position/)&&typeof f=="string"?o(f).then(function(a){b[d](a)}):b[d](f))}}},q=function(a){var b=a.getAttribute("default-style");b=="true"?(a.style.display="block",a.style.height="300px"):(j(a,"display")!="block"&&(a.style.display="block"),j(a,"height").match(/^(0|auto)/)&&(a.style.height="300px"))};angular.module("ngMap").provider("NgMap",function(){var i={};this.setDefaultOptions=function(a){i=a};var j=function(j,r,s,t,u,v,w,x){return a=j,b=r[0],c=s,d=t,e=u,f=v,g=w,h=x,{defaultOptions:i,addMap:m,deleteMap:n,getMap:l,initMap:k,setStyle:q,getGeoLocation:o,observeAndSet:p}};j.$inject=["$window","$document","$q","NavigatorGeolocation","Attr2MapOptions","GeoCoder","camelCaseFilter","NgMapPool"],this.$get=j})}(),function(){"use strict";var a,b=function(b,c){c=c||b.getCenter();var d=a.defer(),e=new google.maps.StreetViewService;return e.getPanoramaByLocation(c||b.getCenter,100,function(a,b){b===google.maps.StreetViewStatus.OK?d.resolve(a.location.pano):d.resolve(!1)}),d.promise},c=function(a,b){var c=new google.maps.StreetViewPanorama(a.getDiv(),{enableCloseButton:!0});c.setPano(b)},d=function(d){return a=d,{getPanorama:b,setPanorama:c}};d.$inject=["$q"],angular.module("ngMap").service("StreetView",d)}(),"ngMap"})
  ;(function(a,b,c){"use strict",function(){"use strict",b.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.layout","material.core.theming.palette","material.core.theming","material.core.animate","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.fabTrigger","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.select","material.components.showHide","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.virtualRepeat","material.components.whiteframe"])}(),function(){function a(a,b){if(b.has("$swipe")){var c="You are using the ngTouch module. \nAngular Material already has mobile click, tap, and swipe support... \nngTouch is not supported with Angular Material!";a.warn(c)}}function c(a,b){a.decorator("$$rAF",["$delegate",d]),b.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function d(a){return a.throttle=function(b){var c,d,e,f;return function(){c=arguments,f=this,e=b,d||(d=!0,a(function(){e.apply(f,Array.prototype.slice.call(c)),d=!1}))}},a}"use strict",b.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.gestures","material.core.theming"]).config(c).run(a),a.$inject=["$log","$injector"],c.$inject=["$provide","$mdThemingProvider"]}(),function(){function a(){return{restrict:"A",link:c}}function c(a,b,c){var d=c.mdAutoFocus||c.mdAutofocus||c.mdSidenavFocus;a.$watch(d,function(a){b.toggleClass("_md-autofocus",a)})}"use strict",b.module("material.core").directive("mdAutofocus",a).directive("mdAutoFocus",a).directive("mdSidenavFocus",a)}(),function(){function a(a){function c(a){return b?"webkit"+a.charAt(0).toUpperCase()+a.substring(1):a}var b=/webkit/i.test(a.vendorPrefix);return{KEY_CODE:{COMMA:188,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(b?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(b?" webkitAnimationEnd":""),TRANSFORM:c("transform"),TRANSFORM_ORIGIN:c("transformOrigin"),TRANSITION:c("transition"),TRANSITION_DURATION:c("transitionDuration"),ANIMATION_PLAY_STATE:c("animationPlayState"),ANIMATION_DURATION:c("animationDuration"),ANIMATION_NAME:c("animationName"),ANIMATION_TIMING:c("animationTimingFunction"),ANIMATION_DIRECTION:c("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs"]}}"use strict",b.module("material.core").factory("$mdConstant",a),a.$inject=["$sniffer"]}(),function(){function a(a,c){function f(){return[].concat(e)}function g(){return e.length}function h(a){return e.length&&a>-1&&a<e.length}function i(a){return a?h(o(a)+1):!1}function j(a){return a?h(o(a)-1):!1}function k(a){return h(a)?e[a]:null}function l(a,b){return e.filter(function(c){return c[a]===b})}function m(a,c){return a?(b.isNumber(c)||(c=e.length),e.splice(c,0,a),o(a)):-1}function n(a){p(a)&&e.splice(o(a),1)}function o(a){return e.indexOf(a)}function p(a){return a&&o(a)>-1}function q(){return e.length?e[0]:null}function r(){return e.length?e[e.length-1]:null}function s(a,f,g,i){g=g||d;var j=o(f);for(;;){if(!h(j))return null;var k=j+(a?-1:1),l=null;h(k)?l=e[k]:c&&(l=a?r():q(),k=o(l));if(l===null||k===i)return null;if(g(l))return l;b.isUndefined(i)&&(i=k),j=k}}var d=function(){return!0};a&&!b.isArray(a)&&(a=Array.prototype.slice.call(a)),c=!!c;var e=a||[];return{items:f,count:g,inRange:h,contains:p,indexOf:o,itemAt:k,findBy:l,add:m,remove:n,first:q,last:r,next:b.bind(null,s,!1),previous:b.bind(null,s,!0),hasPrevious:j,hasNext:i}}"use strict",b.module("material.core").config(["$provide",function(b){b.decorator("$mdUtil",["$delegate",function(b){return b.iterator=a,b}])}])}(),function(){function a(a,c,d){function i(a){var c=e[a];b.isUndefined(c)&&(c=e[a]=j(a));var d=g[c];return b.isUndefined(d)&&(d=k(c)),d}function j(b){return a.MEDIA[b]||(b.charAt(0)!=="("?"("+b+")":b)}function k(a){var b=f[a];return b||(b=f[a]=d.matchMedia(a)),b.addListener(l),g[b.media]=!!b.matches}function l(a){c.$evalAsync(function(){g[a.media]=!!a.matches})}function m(a){return f[a]}function n(b,c){for(var d=0;d<a.MEDIA_PRIORITY.length;d++){var g=a.MEDIA_PRIORITY[d];if(!f[e[g]].matches)continue;var h=p(b,c+"-"+g);if(b[h])return b[h]}return b[p(b,c)]}function o(c,d,e){var f=[];return c.forEach(function(c){var g=p(d,c);b.isDefined(d[g])&&f.push(d.$observe(g,b.bind(void 0,e,null)));for(var h in a.MEDIA)g=p(d,c+"-"+h),b.isDefined(d[g])&&f.push(d.$observe(g,b.bind(void 0,e,h)))}),function(){f.forEach(function(a){a()})}}function p(a,b){return h[b]||(h[b]=a.$normalize(b))}var e={},f={},g={},h={};return i.getResponsiveAttribute=n,i.getQuery=m,i.watchResponsiveAttributes=o,i}"use strict",b.module("material.core").factory("$mdMedia",a),a.$inject=["$mdConstant","$rootScope","$window"]}(),function(){function e(e,f,g,h,i,j,k,l,m){function s(a){return a[0]||a}var n=j.startSymbol(),o=j.endSymbol(),p=n==="{{"&&o==="}}",q=function(a,c,d){var e=!1;if(a&&a.length){var f=m.getComputedStyle(a[0]);e=b.isDefined(f[c])&&(d?f[c]==d:!0)}return e},r={dom:{},now:a.performance?b.bind(a.performance,a.performance.now):Date.now||function(){return(new Date).getTime()},clientRect:function(a,b,c){var d=s(a);b=s(b||d.offsetParent||document.body);var e=d.getBoundingClientRect(),f=c?b.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:e.left-f.left,top:e.top-f.top,width:e.width,height:e.height}},offsetRect:function(a,b){return r.clientRect(a,b,!0)},nodesToArray:function(a){a=a||[];var b=[];for(var c=0;c<a.length;++c)b.push(a.item(c));return b},scrollTop:function(a){a=b.element(a||e[0].body);var d=a[0]==e[0].body?e[0].body:c,f=d?d.scrollTop+d.parentElement.scrollTop:0;return f||Math.abs(a[0].getBoundingClientRect().top)},findFocusTarget:function(a,c){function f(a,c){var d,e=a[0].querySelectorAll(c);return e&&e.length&&e.length&&b.forEach(e,function(a){a=b.element(a);var c=a.hasClass("_md-autofocus");c&&(d=a)}),d}var d="[md-autofocus]",e;return e=f(a,c||d),!e&&c!=d&&(e=f(a,"[md-auto-focus]"),e||(e=f(a,d))),e},disableScrollAround:function(a,c){function h(a){function g(a){}function h(a){a.preventDefault()}a=b.element(a||d)[0];var c=50,f=b.element('<div class="md-scroll-mask">  <div class="md-scroll-mask-bar"></div></div>').css("z-index",c);return a.appendChild(f[0]),f.on("wheel",h),f.on("touchmove",h),e.on("keydown",g),function(){f.off("wheel"),f.off("touchmove"),f[0].parentNode.removeChild(f[0]),e.off("keydown",g),delete r.disableScrollAround._enableScrolling}}function i(){var a=d.parentNode,b=a.style.cssText||"",c=d.style.cssText||"",e=r.scrollTop(d),f=d.clientWidth;return d.scrollHeight>d.clientHeight+1&&(j(d,{position:"fixed",width:"100%",top:-e+"px"}),j(a,{overflowY:"scroll"})),d.clientWidth<f&&j(d,{overflow:"hidden"}),function(){d.style.cssText=c,a.style.cssText=b,d.scrollTop=e,a.scrollTop=e}}function j(a,b){for(var c in b)a.style[c]=b[c]}r.disableScrollAround._count=r.disableScrollAround._count||0,++r.disableScrollAround._count;if(r.disableScrollAround._enableScrolling)return r.disableScrollAround._enableScrolling;a=b.element(a);var d=e[0].body,f=i(),g=h(c);return r.disableScrollAround._enableScrolling=function(){--r.disableScrollAround._count||(f(),g(),delete r.disableScrollAround._enableScrolling)}},enableScrolling:function(){var a=this.disableScrollAround._enableScrolling;a&&a()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===c){var a=b.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});a.children().css("height","60px"),e[0].body.appendChild(a[0]),this.floatingScrollbars.cached=a[0].offsetWidth==a[0].childNodes[0].offsetWidth,a.remove()}return this.floatingScrollbars.cached},forceFocus:function(b){var c=b[0]||b;document.addEventListener("click",function e(a){a.target===c&&a.$focus&&(c.focus(),a.stopImmediatePropagation(),a.preventDefault(),c.removeEventListener("click",e))},!0);var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!1,!0,a,{},0,0,0,0,!1,!1,!1,!1,0,null),d.$material=!0,d.$focus=!0,c.dispatchEvent(d)},createBackdrop:function(a,b){return g(r.supplant('<md-backdrop class="{0}">',[b]))(a)},supplant:function(a,b,c){return c=c||/\{([^\{\}]*)\}/g,a.replace(c,function(a,c){var d=c.split("."),e=b;try{for(var f in d)d.hasOwnProperty(f)&&(e=e[d[f]])}catch(g){e=a}return typeof e=="string"||typeof e=="number"?e:a})},fakeNgModel:function(){return{$fake:!0,$setTouched:b.noop,$setViewValue:function(a){this.$viewValue=a,this.$render(a),this.$viewChangeListeners.forEach(function(a){a()})},$isEmpty:function(a){return(""+a).length===0},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:b.noop}},debounce:function(a,b,d,e){var g;return function h(){var h=d,i=Array.prototype.slice.call(arguments);f.cancel(g),g=f(function(){g=c,a.apply(h,i)},b||10,e)}},throttle:function(a,b){var c;return function d(){var d=this,e=arguments,f=r.now();if(!c||f-c>b)a.apply(d,e),c=f}},time:function(a){var b=r.now();return a(),r.now()-b},valueOnUse:function(a,b,c){var d=null,e=Array.prototype.slice.call(arguments),f=e.length>3?e.slice(3):[];Object.defineProperty(a,b,{get:function(){return d===null&&(d=c.apply(a,f)),d}})},nextUid:function(){return""+d++},disconnectScope:function(a){if(!a)return;if(a.$root===a)return;if(a.$$destroyed)return;var b=a.$parent;a.$$disconnected=!0,b.$$childHead===a&&(b.$$childHead=a.$$nextSibling),b.$$childTail===a&&(b.$$childTail=a.$$prevSibling),a.$$prevSibling&&(a.$$prevSibling.$$nextSibling=a.$$nextSibling),a.$$nextSibling&&(a.$$nextSibling.$$prevSibling=a.$$prevSibling),a.$$nextSibling=a.$$prevSibling=null},reconnectScope:function(a){if(!a)return;if(a.$root===a)return;if(!a.$$disconnected)return;var b=a,c=b.$parent;b.$$disconnected=!1,b.$$prevSibling=c.$$childTail,c.$$childHead?(c.$$childTail.$$nextSibling=b,c.$$childTail=b):c.$$childHead=c.$$childTail=b},getClosest:function(a,c,d){a instanceof b.element&&(a=a[0]),c=c.toUpperCase(),d&&(a=a.parentNode);if(!a)return null;do if(a.nodeName===c)return a;while(a=a.parentNode);return null},elementContains:function(c,d){var e=a.Node&&a.Node.prototype&&Node.prototype.contains,f=e?b.bind(c,c.contains):b.bind(c,function(a){return c===d||!!(this.compareDocumentPosition(a)&16)});return f(d)},extractElementByName:function(a,c,d,e){function g(a){return h(a)||(d?i(a):null)}function h(a){if(a)for(var b=0,d=a.length;b<d;b++)if(a[b].nodeName.toLowerCase()===c)return a[b];return null}function i(a){var b;if(a)for(var c=0,d=a.length;c<d;c++){var e=a[c];if(!b)for(var f=0,h=e.childNodes.length;f<h;f++)b=b||g([e.childNodes[f]])}return b}var f=g(a);return!f&&!!e&&k.warn(r.supplant("Unable to find node '{0}' in element '{1}'.",[c,a[0].outerHTML])),b.element(f||a)},initOptionalProperties:function(a,c,d){d=d||{},b.forEach(a.$$isolateBindings,function(e,f){if(e.optional&&b.isUndefined(a[f])){var g=b.isDefined(c[e.attrName]);a[f]=b.isDefined(d[f])?d[f]:g}})},nextTick:function(a,b,c){function i(){var a=c&&c.$$destroyed,b=a?[]:d.queue,e=a?null:d.digest;d.queue=[],d.timeout=null,d.digest=!1,b.forEach(function(a){a()}),e&&h.$digest()}var d=r.nextTick,e=d.timeout,g=d.queue||[];return g.push(a),b==null&&(b=!0),d.digest=d.digest||b,d.queue=g,e||(d.timeout=f(i,0,!1))},processTemplate:function(a){return p?a:!a||!b.isString(a)?a:a.replace(/\{\{/g,n).replace(/}}/g,o)},getParentWithPointerEvents:function(a){var b=a.parent();while(q(b,"pointer-events","none"))b=b.parent();return b},getNearestContentElement:function(a){var b=a.parent()[0];while(b&&b!==l[0]&&b!==document.body&&b.nodeName.toUpperCase()!=="MD-CONTENT")b=b.parentNode;return b},hasComputedStyle:q};return r.dom.animator=i(r),r}"use strict";var d=0;b.module("material.core").factory("$mdUtil",e),e.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window"],b.element.prototype.focus=b.element.prototype.focus||function(){return this.length&&this[0].focus(),this},b.element.prototype.blur=b.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){function a(a,c,d,e){function f(a,d,e){var f=b.element(a)[0]||a;f&&(!f.hasAttribute(d)||f.getAttribute(d).length===0)&&!j(f,d)&&(e=b.isString(e)?e.trim():"",e.length?a.attr(d,e):c.warn('ARIA: Attribute "',d,'", required for accessibility, is missing on node:',f))}function g(b,c,d){a(function(){f(b,c,d())})}function h(a,b){var c=i(a)||"",d=c.indexOf(e.startSymbol())>-1;d?g(a,b,function(){return i(a)}):f(a,b,c)}function i(a){return(a.text()||"").trim()}function j(a,b){function f(a){var b=a.currentStyle?a.currentStyle:d.getComputedStyle(a);return b.display==="none"}var c=a.hasChildNodes(),e=!1;if(c){var g=a.childNodes;for(var h=0;h<g.length;h++){var i=g[h];i.nodeType===1&&i.hasAttribute(b)&&(f(i)||(e=!0))}}return e}return{expect:f,expectAsync:g,expectWithText:h}}"use strict",b.module("material.core").service("$mdAria",a),a.$inject=["$$rAF","$log","$window","$interpolate"]}(),function(){function a(a,c,d,e,f,g){this.compile=function(h){var i=h.templateUrl,j=h.template||"",k=h.controller,l=h.controllerAs,m=b.extend({},h.resolve||{}),n=b.extend({},h.locals||{}),o=h.transformTemplate||b.identity,p=h.bindToController;return b.forEach(m,function(a,c){b.isString(a)?m[c]=d.get(a):m[c]=d.invoke(a)}),b.extend(m,n),i?m.$template=c.get(i,{cache:g}).then(function(a){return a.data}):m.$template=a.when(j),a.all(m).then(function(a){var c,d=o(a.$template,h),g=h.element||b.element("<div>").html(d.trim()).contents(),i=e(g);return c={locals:a,element:g,link:function(d){a.$scope=d;if(k){var e=f(k,a,!0);p&&b.extend(e.instance,a);var h=e();g.data("$ngControllerController",h),g.children().data("$ngControllerController",h),l&&(d[l]=h),c.controller=h}return i(d)}}})}}"use strict",b.module("material.core").service("$mdCompiler",a),a.$inject=["$q","$http","$injector","$compile","$controller","$templateCache"]}(),function(){function a(){function a(a){function g(a){return e.optionsFactory=a.options,e.methods=(a.methods||[]).concat(c),f}function h(a,b){return d[a]=b,f}function i(b,d){d=d||{},d.methods=d.methods||[],d.options=d.options||function(){return{}};if(/^cancel|hide|show$/.test(b))throw new Error("Preset '"+b+"' in "+a+" is reserved!");if(d.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+a+" is reserved!");return e.presets[b]={methods:d.methods.concat(c),optionsFactory:d.options,argOption:d.argOption},f}function j(a,b,c){e.presets[a][b]=c}function k(c,f){function k(a){return a=a||{},a._options&&(a=a._options),i.show(b.extend({},h,a))}function l(a){return i.destroy(a)}function m(b,c){var d={};return d[a]=j,f.invoke(b||function(){return c},{},d)}var g,h,i=c(),j={hide:i.hide,cancel:i.cancel,show:k,destroy:l};return g=e.methods||[],h=m(e.optionsFactory,{}),b.forEach(d,function(a,b){j[b]=a}),b.forEach(e.presets,function(a,c){function f(a){this._options=b.extend({},d,a)}var d=m(a.optionsFactory,{}),e=(a.methods||[]).concat(g);b.extend(d,{$type:c}),b.forEach(e,function(a){f.prototype[a]=function(b){return this._options[a]=b,this}});if(a.argOption){var h="show"+c.charAt(0).toUpperCase()+c.slice(1);j[h]=function(a){var b=j[c](a);return j.show(b)}}j[c]=function(c){return arguments.length&&a.argOption&&!b.isObject(c)&&!b.isArray(c)?(new f)[a.argOption](c):new f(c)}}),j}var c=["onHide","onShow","onRemove"],d={},e={presets:{}},f={setDefaults:g,addPreset:i,addMethod:h,$get:k};return f.addPreset("build",{methods:["controller","controllerAs","resolve","template","templateUrl","themable","transformTemplate","parent"]}),k.$inject=["$$interimElement","$injector"],f}function d(a,d,e,f,g,h,i,j,k,l,m){return function n(){function q(a){a=a||{};var b=new u(a||{}),c=!a.skipHide&&p.length?o.hide():d.when(!0);return c.finally(function(){p.push(b),b.show().catch(function(a){return a})}),b.deferred.promise}function r(a,b){function g(c){return c.remove(a,!1,b||{}).catch(function(a){return a}),c.deferred.promise}if(!p.length)return d.when(a);b=b||{};if(b.closeAll){var e=d.all(p.reverse().map(g));return p=[],e}if(b.closeTo!==c)return d.all(p.splice(b.closeTo).map(g));var f=p.pop();return g(f)}function s(a,b){var c=p.shift();return c?(c.remove(a,!0,b||{}).catch(function(a){return a}),c.deferred.promise):d.when(a)}function t(a){var c=a?null:p.shift(),e=b.element(a).length?b.element(a)[0].parentNode:null;if(e){var f=p.filter(function(a){var b=a.options.element[0];return b===e});f.length>0&&(c=f[0],p.splice(p.indexOf(c),1))}return c?c.remove(n,!1,{$destroy:!0}):d.when(n)}function u(m){function r(){return d(function(a,b){function c(a){n.deferred.reject(a),b(a)}u(m).then(function(b){p=v(b,m),q=y(p,m,b.controller).then(a,c)},c)})}function s(a,c,e){function f(a){n.deferred.resolve(a)}function g(a){n.deferred.reject(a)}return p?(m=b.extend(m||{},e||{}),m.cancelAutoHide&&m.cancelAutoHide(),m.element.triggerHandler("$mdInterimElementRemove"),m.$destroy===!0?z(m.element,m).then(function(){c&&g(a)||f(a)}):(d.when(q).finally(function(){z(m.element,m).then(function(){c&&g(a)||f(a)},g)}),n.deferred.promise)):d.when(!1)}function t(a){return a=a||{},a.template&&(a.template=j.processTemplate(a.template)),b.extend({preserveScope:!1,cancelAutoHide:b.noop,scope:a.scope||f.$new(a.isolateScope),onShow:function c(a,b,c){return i.enter(b,c.parent)},onRemove:function(a,b){return b&&i.leave(b)||d.when()}},a)}function u(a){var b=a.skipCompile?null:k.compile(a);return b||d(function(b){b({locals:{},link:function(){return a.element}})})}function v(a,c){b.extend(a.locals,c);var d=a.link(c.scope);return c.element=d,c.parent=w(d,c),c.themable&&l(d),d}function w(c,d){var e=d.parent;b.isFunction(e)?e=e(d.scope,c,d):b.isString(e)?e=b.element(a[0].querySelector(e)):e=b.element(e);if(!(e||{}).length){var f;return h[0]&&h[0].querySelector&&(f=h[0].querySelector(":not(svg) > body")),f||(f=h[0]),f.nodeName=="#comment"&&(f=a[0].body),b.element(f)}return e}function x(){var a,d=b.noop;m.hideDelay&&(a=g(o.hide,m.hideDelay),d=function(){g.cancel(a)}),m.cancelAutoHide=function(){d(),m.cancelAutoHide=c}}function y(a,c,e){var f=c.onShowing||b.noop,g=c.onComplete||b.noop;return f(c.scope,a,c,e),d(function(b,f){try{d.when(c.onShow(c.scope,a,c,e)).then(function(){g(c.scope,a,c),x(),b(a)},f)}catch(h){f(h.message)}})}function z(a,c){var d=c.onRemoving||b.noop;return e(function(b,f){try{var g=e.when(c.onRemove(c.scope,a,c)||!0);d(a,g),c.$destroy==1?b(a):g.then(function(){!c.preserveScope&&c.scope&&c.scope.$destroy(),b(a)},f)}catch(h){f(h.message)}})}var n,p,q=d.when(!0);return m=t(m),n={options:m,deferred:d.defer(),show:r,remove:s}}var n=!1,o,p=[];return o={show:q,hide:r,cancel:s,destroy:t,$injector_:m}}}return a.$get=d,d.$inject=["$document","$q","$$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector"],a}"use strict",b.module("material.core").provider("$$interimElement",a)}(),function(){function i(){}function j(d,e,g){function o(a){return function(b,c){c.distance<this.state.options.maxDistance&&this.dispatchEvent(b,a,c)}}function p(a,b,d){var e=c[b.replace(/^\$md./,"")];if(!e)throw new Error("Failed to register element with handler "+b+". "+"Available handlers: "+Object.keys(c).join(", "));return e.registerElement(a,d)}function r(a,e){var f=new d(a);return b.extend(f,e),c[a]=f,l}var h=navigator.userAgent||navigator.vendor||a.opera,i=h.match(/ipad|iphone|ipod/i),j=h.match(/android/i),k=typeof a.jQuery!="undefined"&&b.element===a.jQuery,l={handler:r,register:p,isHijackingClicks:(i||j)&&!k&&!f};if(l.isHijackingClicks){var m=6;l.handler("click",{options:{maxDistance:m},onEnd:o("click")}),l.handler("focus",{options:{maxDistance:m},onEnd:function(a,b){function c(a){var b=["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"];return a.getAttribute("tabindex")!="-1"&&!a.hasAttribute("DISABLED")&&(a.hasAttribute("tabindex")||a.hasAttribute("href")||b.indexOf(a.nodeName)!=-1)}b.distance<this.state.options.maxDistance&&c(a.target)&&(this.dispatchEvent(a,"focus",b),a.target.focus())}}),l.handler("mouseup",{options:{maxDistance:m},onEnd:o("mouseup")}),l.handler("mousedown",{onStart:function(a){this.dispatchEvent(a,"mousedown")}})}return l.handler("press",{onStart:function(a,b){this.dispatchEvent(a,"$md.pressdown")},onEnd:function(a,b){this.dispatchEvent(a,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){g.cancel(this.state.timeout)},onStart:function(a,c){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:c.x,y:c.y},this.state.timeout=g(b.bind(this,function(){this.dispatchEvent(a,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(a,b){a.preventDefault();var c=this.state.pos.x-b.x,d=this.state.pos.y-b.y;Math.sqrt(c*c+d*d)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onStart:function(a){this.state.registeredParent||this.cancel()},onMove:function(a,b){var c,d;a.preventDefault(),this.state.dragPointer?this.dispatchDragMove(a):(this.state.options.horizontal?(c=Math.abs(b.distanceX)>this.state.options.minDistance,d=Math.abs(b.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(c=Math.abs(b.distanceY)>this.state.options.minDistance,d=Math.abs(b.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),c?(this.state.dragPointer=n(a),q(a,this.state.dragPointer),this.dispatchEvent(a,"$md.dragstart",this.state.dragPointer)):d&&this.cancel())},dispatchDragMove:e.throttle(function(a){this.state.isRunning&&(q(a,this.state.dragPointer),this.dispatchEvent(a,"$md.drag",this.state.dragPointer))}),onEnd:function(a,b){this.state.dragPointer&&(q(a,this.state.dragPointer),this.dispatchEvent(a,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(a,b){var c;Math.abs(b.velocityX)>this.state.options.minVelocity&&Math.abs(b.distanceX)>this.state.options.minDistance?(c=b.directionX=="left"?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(a,c)):Math.abs(b.velocityY)>this.state.options.minVelocity&&Math.abs(b.distanceY)>this.state.options.minDistance&&(c=b.directionY=="up"?"$md.swipeup":"$md.swipedown",this.dispatchEvent(a,c))}})}function k(a){this.name=a,this.state={}}function l(){function e(a,c,e){e=e||d;var f=new b.element.Event(c);f.$material=!0,f.pointer=e,f.srcEvent=a,b.extend(f,{clientX:e.x,clientY:e.y,screenX:e.x,screenY:e.y,pageX:e.x,pageY:e.y,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKey:a.shiftKey,metaKey:a.metaKey}),b.element(e.target).trigger(f)}function f(b,c,e){e=e||d;var f;c==="click"||c=="mouseup"||c=="mousedown"?(f=document.createEvent("MouseEvents"),f.initMouseEvent(c,!0,!0,a,b.detail,e.x,e.y,e.x,e.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget||null)):(f=document.createEvent("CustomEvent"),f.initCustomEvent(c,!0,!0,{})),f.$material=!0,f.pointer=e,f.srcEvent=b,e.target.dispatchEvent(f)}var c=typeof a.jQuery!="undefined"&&b.element===a.jQuery;return k.prototype={options:{},dispatchEvent:c?e:f,onStart:b.noop,onMove:b.noop,onEnd:b.noop,onCancel:b.noop,start:function(a,c){if(this.state.isRunning)return;var d=this.getNearestParent(a.target),e=d&&d.$mdGesture[this.name]||{};this.state={isRunning:!0,options:b.extend({},this.options,e),registeredParent:d},this.onStart(a,c)},move:function(a,b){if(!this.state.isRunning)return;this.onMove(a,b)},end:function(a,b){if(!this.state.isRunning)return;this.onEnd(a,b),this.state.isRunning=!1},cancel:function(a,b){this.onCancel(a,b),this.state={}},getNearestParent:function(a){var b=a;while(b){if((b.$mdGesture||{})[this.name])return b;b=b.parentNode}return null},registerElement:function(a,b){function d(){delete a[0].$mdGesture[c.name],a.off("$destroy",d)}var c=this;return a[0].$mdGesture=a[0].$mdGesture||{},a[0].$mdGesture[this.name]=b||{},a.on("$destroy",d),d}},k}function m(a,f){function i(a){var b=!a.clientX&&!a.clientY;!b&&!a.$material&&!a.isIonicTap&&!p(a)&&(a.preventDefault(),a.stopPropagation())}function j(a){var b=a.clientX===0&&a.clientY===0;!b&&!a.$material&&!a.isIonicTap&&!p(a)?(a.preventDefault(),a.stopPropagation(),g=null):(g=null,a.target.tagName.toLowerCase()=="label"&&(g={x:a.x,y:a.y}))}function r(a,b){var e;for(var g in c)e=c[g],e instanceof f&&(a==="start"&&e.cancel(),e[a](b,d))}function s(a){if(d)return;var b=+Date.now();if(e&&!o(a,e)&&b-e.endTime<1500)return;d=n(a),r("start",a)}function t(a){if(!d||!o(a,d))return;q(a,d),r("move",a)}function u(a){if(!d||!o(a,d))return;q(a,d),d.endTime=+Date.now(),r("end",a),e=d,d=null}document.contains||(document.contains=function(a){return document.body.contains(a)}),!h&&a.isHijackingClicks&&(document.addEventListener("click",j,!0),document.addEventListener("mouseup",i,!0),document.addEventListener("mousedown",i,!0),document.addEventListener("focus",i,!0),h=!0);var k="mousedown touchstart pointerdown",l="mousemove touchmove pointermove",m="mouseup mouseleave touchend touchcancel pointerup pointercancel";b.element(document).on(k,s).on(l,t).on(m,u).on("$$mdGestureReset",function(){e=d=null})}function n(a){var b=r(a),c={startTime:+Date.now(),target:a.target,type:a.type.charAt(0)};return c.startX=c.x=b.pageX,c.startY=c.y=b.pageY,c}function o(a,b){return a&&b&&a.type.charAt(0)===b.type}function p(a){return g&&g.x==a.x&&g.y==a.y}function q(a,b){var c=r(a),d=b.x=c.pageX,e=b.y=c.pageY;b.distanceX=d-b.startX,b.distanceY=e-b.startY,b.distance=Math.sqrt(b.distanceX*b.distanceX+b.distanceY*b.distanceY),b.directionX=b.distanceX>0?"right":b.distanceX<0?"left":"",b.directionY=b.distanceY>0?"down":b.distanceY<0?"up":"",b.duration=+Date.now()-b.startTime,b.velocityX=b.distanceX/b.duration,b.velocityY=b.distanceY/b.duration}function r(a){return a=a.originalEvent||a,a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0]||a}"use strict";var c={},d,e,f=!1,g=null,h=!1;b.module("material.core.gestures",[]).provider("$mdGesture",i).factory("$$MdGestureHandler",l).run(m),i.prototype={skipClickHijack:function(){return f=!0},$get:["$$MdGestureHandler","$$rAF","$timeout",function(a,b,c){return new j(a,b,c)}]},j.$inject=["$$MdGestureHandler","$$rAF","$timeout"],m.$inject=["$mdGesture","$$MdGestureHandler"]}(),function(){"use strict",function(){function l(a){function h(a){return a.replace(c,"").replace(d,function(a,b,c,d){return d?c.toUpperCase():c})}var c=/^((?:x|data)[\:\-_])/i,d=/([\:\-\_]+(.))/g,e=["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl"],f=["layout","flex","flex-order","flex-offset","layout-align"],g=["show","hide","layout-padding","layout-margin"];b.forEach(e,function(c){b.forEach(f,function(b){var d=c?b+"-"+c:b;a.directive(h(d),o(d))}),b.forEach(g,function(b){var d=c?b+"-"+c:b;a.directive(h(d),p(d))})}),a.directive("mdLayoutCss",m).directive("ngCloak",n("ng-cloak")).directive("layoutWrap",p("layout-wrap")).directive("layoutNoWrap",p("layout-no-wrap")).directive("layoutFill",p("layout-fill")).directive("layoutLtMd",r("layout-lt-md",!0)).directive("layoutLtLg",r("layout-lt-lg",!0)).directive("flexLtMd",r("flex-lt-md",!0)).directive("flexLtLg",r("flex-lt-lg",!0)).directive("layoutAlignLtMd",r("layout-align-lt-md")).directive("layoutAlignLtLg",r("layout-align-lt-lg")).directive("flexOrderLtMd",r("flex-order-lt-md")).directive("flexOrderLtLg",r("flex-order-lt-lg")).directive("offsetLtMd",r("flex-offset-lt-md")).directive("offsetLtLg",r("flex-offset-lt-lg")).directive("hideLtMd",r("hide-lt-md")).directive("hideLtLg",r("hide-lt-lg")).directive("showLtMd",r("show-lt-md")).directive("showLtLg",r("show-lt-lg"))}function m(){return{restrict:"A",priority:"900",compile:function(a,c){return k.enabled=!1,b.noop}}}function n(a){return["$timeout",function(c){return{restrict:"A",priority:-10,compile:function(d){return k.enabled?(d.addClass(a),function(b,d){c(function(){d.removeClass(a)},10,!1)}):b.noop}}}]}function o(e){function f(a,b,c){var d=q(b,e,c),f=c.$observe(c.$normalize(e),d);d(w(e,c,"")),a.$on("$destroy",function(){f()})}return["$mdUtil","$interpolate","$log",function(g,h,i){return a=g,c=h,d=i,{restrict:"A",compile:function(a,c){var g;return k.enabled&&(s(e,c,a,d),t(e,w(e,c,""),u(a,e,c)),g=f),g||b.noop}}}]}function p(e){function f(a,b){b.addClass(e)}return["$mdUtil","$interpolate","$log",function(g,h,i){return a=g,c=h,d=i,{restrict:"A",compile:function(a,c){var d;return k.enabled&&(t(e,w(e,c,""),u(a,e,c)),f(null,a),d=f),d||b.noop}}}]}function q(a,c){var d;return function e(e){var g=t(c,e||"");b.isDefined(g)&&(d&&a.removeClass(d),d=g?c+"-"+g.replace(f,"-"):c,a.addClass(d))}}function r(a){var c=a.split("-");return["$log",function(d){return d.warn(a+"has been deprecated. Please use a `"+c[0]+"-gt-<xxx>` variant."),b.noop}]}function s(b,c,d,f){var g,h,i,j=d[0].nodeName.toLowerCase();switch(b.replace(e,"")){case"flex":if(j=="md-button"||j=="fieldset")h="<"+j+" "+b+"></"+j+">",i="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",g="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",f.warn(a.supplant(g,[h,i]))}}function t(c,d,f){var i=d;if(!v(d)){switch(c.replace(e,"")){case"layout":x(d,h)||(d=h[0]);break;case"flex":x(d,g)||isNaN(d)&&(d="");break;case"flex-offset":case"flex-order":if(!d||isNaN(+d))d="0";break;case"layout-align":var j=y(d);d=a.supplant("{main}-{cross}",j);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-no-wrap":d=""}d!=i&&(f||b.noop)(d)}return d}function u(a,b,c){return function(a){v(a)||(c[c.$normalize(b)]=a)}}function v(a){return(a||"").indexOf(c.startSymbol())>-1}function w(a,b,c){var d=b.$normalize(a);return b[d]?b[d].replace(f,"-"):c||null}function x(a,b,c){a=c&&a?a.replace(f,c):a;var d=!1;return a&&b.forEach(function(b){b=c?b.replace(f,c):b,d=d||b===a}),d}function y(a){var b={main:"start",cross:"stretch"},c;a=a||"";if(a.indexOf("-")==0||a.indexOf(" ")==0)a="none"+a;return c=a.toLowerCase().trim().replace(f,"-").split("-"),c.length&&c[0]==="space"&&(c=[c[0]+"-"+c[1],c[2]]),c.length>0&&(b.main=c[0]||b.main),c.length>1&&(b.cross=c[1]||b.cross),i.indexOf(b.main)<0&&(b.main="start"),j.indexOf(b.cross)<0&&(b.cross="stretch"),b}"use strict";var a,c,d,e=/(-gt)?-(sm|md|lg)/g,f=/\s+/g,g=["grow","initial","auto","none","noshrink","nogrow"],h=["row","column"],i=["","start","center","end","stretch","space-around","space-between"],j=["","start","center","end","stretch"],k={enabled:!0,breakpoints:[]};l(b.module("material.core.layout",["ng"]))}()}(),function(){function a(a,c){function g(a){return a&&a!==""}var d,e=[],f={};return d={notFoundError:function(b){a.error("No instance found for handle",b)},getInstances:function(){return e},get:function(a){if(!g(a))return null;var b,c,d;for(b=0,c=e.length;b<c;b++){d=e[b];if(d.$$mdHandle===a)return d}return null},register:function(a,c){function d(){var b=e.indexOf(a);b!==-1&&e.splice(b,1)}function g(){var b=f[c];b&&(b.resolve(a),delete f[c])}return c?(a.$$mdHandle=c,e.push(a),g(),d):b.noop},when:function(a){if(g(a)){var b=c.defer(),e=d.get(a);return e?b.resolve(e):f[a]=b,b.promise}return c.reject("Invalid `md-component-id` value.")}}}"use strict",b.module("material.core").factory("$mdComponentRegistry",a),a.$inject=["$log","$q"]}(),function(){"use strict",function(){function a(a){function c(a){return a.hasClass("md-icon-button")?{isMenuItem:a.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:a.hasClass("md-menu-item"),dimBackground:!0}}return{attach:function d(d,e,f){return f=b.extend(c(e),f),a.attach(d,e,f)}}}"use strict",b.module("material.core").factory("$mdButtonInkRipple",a),a.$inject=["$mdInkRipple"]}()}(),function(){"use strict",function(){function a(a){function c(c,d,e){return a.attach(c,d,b.extend({center:!0,dimBackground:!1,fitRipple:!0},e))}return{attach:c}}"use strict",b.module("material.core").factory("$mdCheckboxInkRipple",a),a.$inject=["$mdInkRipple"]}()}(),function(){"use strict",function(){function a(a){function c(c,d,e){return a.attach(c,d,b.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},e))}return{attach:c}}"use strict",b.module("material.core").factory("$mdListInkRipple",a),a.$inject=["$mdInkRipple"]}()}(),function(){function c(a,c){return{controller:b.noop,link:function(b,d,e){e.hasOwnProperty("mdInkRippleCheckbox")?c.attach(b,d):a.attach(b,d)}}}function d(a){function c(c,d,f){return d.controller("mdNoInk")?b.noop:a.instantiate(e,{$scope:c,$element:d,rippleOptions:f})}return{attach:c}}function e(a,c,d,e,f,g){this.$window=e,this.$timeout=f,this.$mdUtil=g,this.$scope=a,this.$element=c,this.options=d,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,g.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(c.controller("mdInkRipple")||{}).createRipple=b.bind(this,this.createRipple),(c.controller("mdInkRipple")||{}).setColor=b.bind(this,this.color),this.bindEvents()}function f(a,c){if(a.mousedown||a.lastRipple)a.mousedown=!1,a.$mdUtil.nextTick(b.bind(a,c),!1)}function g(){return{controller:b.noop}}"use strict",b.module("material.core").factory("$mdInkRipple",d).directive("mdInkRipple",c).directive("mdNoInk",g).directive("mdNoBar",g).directive("mdNoStretch",g);var a=450;c.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],d.$inject=["$injector"],e.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil"],e.prototype.color=function(a){function d(){var a=c.options&&c.options.colorElement?c.options.colorElement:[],b=a.length?a[0]:c.$element[0];return b?c.$window.getComputedStyle(b).color:"rgb(0,0,0)"}var c=this;return b.isDefined(a)&&(c._color=c._parseColor(a)),c._color||c._parseColor(c.inkRipple())||c._parseColor(d())},e.prototype.calculateColor=function(){return this.color()},e.prototype._parseColor=function(a,b){function c(a){var b=a[0]==="#"?a.substr(1):a,c=b.length/3,d=b.substr(0,c),e=b.substr(c,c),f=b.substr(c*2);return c===1&&(d+=d,e+=e,f+=f),"rgba("+parseInt(d,16)+","+parseInt(e,16)+","+parseInt(f,16)+",0.1)"}function d(a){return a.replace(")",", 0.1)").replace("(","a(")}b=b||1;if(!a)return;if(a.indexOf("rgba")===0)return a.replace(/\d?\.?\d*\s*\)\s*$/,(.1*b).toString()+")");if(a.indexOf("rgb")===0)return d(a);if(a.indexOf("#")===0)return c(a)},e.prototype.bindEvents=function(){this.$element.on("mousedown",b.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",b.bind(this,this.handleMouseup)),this.$element.on("mouseleave",b.bind(this,this.handleMouseup)),this.$element.on("touchmove",b.bind(this,this.handleTouchmove))},e.prototype.handleMousedown=function(a){if(this.mousedown)return;a.hasOwnProperty("originalEvent")&&(a=a.originalEvent),this.mousedown=!0;if(this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(a.srcElement!==this.$element[0]){var b=this.$element[0].getBoundingClientRect(),c=a.clientX-b.left,d=a.clientY-b.top;this.createRipple(c,d)}else this.createRipple(a.offsetX,a.offsetY)},e.prototype.handleMouseup=function(){f(this,this.clearRipples)},e.prototype.handleTouchmove=function(){f(this,this.deleteRipples)},e.prototype.deleteRipples=function(){for(var a=0;a<this.ripples.length;a++)this.ripples[a].remove()},e.prototype.clearRipples=function(){for(var a=0;a<this.ripples.length;a++)this.fadeInComplete(this.ripples[a])},e.prototype.createContainer=function(){var a=b.element('<div class="md-ripple-container"></div>');return this.$element.append(a),a},e.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},e.prototype.isRippleAllowed=function(){var a=this.$element[0];do{if(!a.tagName||a.tagName==="BODY")break;if(a&&b.isFunction(a.hasAttribute)){if(a.hasAttribute("disabled"))return!1;if(this.inkRipple()==="false"||this.inkRipple()==="0")return!1}}while(a=a.parentNode);return!0},e.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},e.prototype.createRipple=function(c,d){function m(a){return a?a.replace("rgba","rgb").replace(/,[^\),]+\)/,")"):"rgb(0,0,0)"}function n(a,b,c){return a?Math.max(b,c):Math.sqrt(Math.pow(b,2)+Math.pow(c,2))}if(!this.isRippleAllowed())return;var e=this,f=b.element('<div class="md-ripple"></div>'),g=this.$element.prop("clientWidth"),h=this.$element.prop("clientHeight"),i=Math.max(Math.abs(g-c),c)*2,j=Math.max(Math.abs(h-d),d)*2,k=n(this.options.fitRipple,i,j),l=this.calculateColor();f.css({left:c+"px",top:d+"px",background:"black",width:k+"px",height:k+"px",backgroundColor:m(l),borderColor:m(l)}),this.lastRipple=f,this.clearTimeout(),this.timeout=this.$timeout(function(){e.clearTimeout(),e.mousedown||e.fadeInComplete(f)},a*.35,!1),this.options.dimBackground&&this.container.css({backgroundColor:l}),this.container.append(f),this.ripples.push(f),f.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){f.addClass("md-ripple-scaled md-ripple-active"),e.$timeout(function(){e.clearRipples()},a,!1)},!1)},e.prototype.fadeInComplete=function(a){this.lastRipple===a?!this.timeout&&!this.mousedown&&this.removeRipple(a):this.removeRipple(a)},e.prototype.removeRipple=function(b){var c=this,d=this.ripples.indexOf(b);if(d<0)return;this.ripples.splice(this.ripples.indexOf(b),1),b.removeClass("md-ripple-active"),this.ripples.length===0&&this.container.css({backgroundColor:""}),this.$timeout(function(){c.fadeOutComplete(b)},a,!1)},e.prototype.fadeOutComplete=function(a){a.remove(),this.lastRipple=null}}(),function(){"use strict",function(){function a(a){function c(c,d,e){return a.attach(c,d,b.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},e))}return{attach:c}}"use strict",b.module("material.core").factory("$mdTabInkRipple",a),a.$inject=["$mdInkRipple"]}()}(),function(){"use strict",b.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900",contrastStrongLightColors:"600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",1e3:"#000000",A100:"#ffffff",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300",contrastStrongLightColors:"400 500"}})}(),function(){function t(a){function n(a,b){return b=b||{},d[a]=u(a,b),j}function t(a,c){return u(a,b.extend({},d[a]||{},c))}function u(a,b){var c=q.filter(function(a){return!b[a]});if(c.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",c.join(", ")).replace("%2",a));return b}function v(a,c){if(e[a])return e[a];c=c||"default";var d=typeof c=="string"?e[c]:c,f=new x(a);return d&&b.forEach(d.colors,function(a,c){f.colors[c]={name:a.name,hues:b.extend({},a.hues)}}),e[a]=f,f}function x(a){function d(a){a=arguments.length===0?!0:!!a;if(a===c.isDark)return;c.isDark=a,c.foregroundPalette=c.isDark?g:f,c.foregroundShadow=c.isDark?h:i;var d=c.isDark?p:o,e=c.isDark?o:p;return b.forEach(d,function(a,b){var d=c.colors[b],f=e[b];if(d)for(var g in d.hues)d.hues[g]===f[g]&&(d.hues[g]=a[g])}),c}var c=this;c.name=a,c.colors={},c.dark=d,d(!1),m.forEach(function(a){var d=(c.isDark?p:o)[a];c[a+"Palette"]=function e(e,f){var g=c.colors[a]={name:e,hues:b.extend({},d,f)};return Object.keys(g.hues).forEach(function(a){if(!d[a])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",a).replace("%2",c.name).replace("%3",e).replace("%4",Object.keys(d).join(", ")))}),Object.keys(g.hues).map(function(a){return g.hues[a]}).forEach(function(b){if(q.indexOf(b)==-1)throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",b).replace("%2",c.name).replace("%3",a).replace("%4",e).replace("%5",q.join(", ")))}),c},c[a+"Color"]=function(){var b=Array.prototype.slice.call(arguments);return console.warn("$mdThemingProviderTheme."+a+"Color() has been deprecated. "+"Use $mdThemingProviderTheme."+a+"Palette() instead."),c[a+"Palette"].apply(c,b)}})}function y(a,d){function f(a){return a===c||a===""?!0:g.THEMES[a]!==c}function g(b,d){d===c&&(d=b,b=c),b===c&&(b=a),g.inherit(d,d)}return g.inherit=function(c,e){function m(a){if(!a)return;f(a)||d.warn("Attempted to use unregistered theme '"+a+"'. "+"Register it with $mdThemingProvider.theme().");var b=c.data("$mdThemeName");b&&c.removeClass("md-"+b+"-theme"),c.addClass("md-"+a+"-theme"),c.data("$mdThemeName",a),g&&c.data("$mdThemeController",g)}var g=e.controller("mdTheme"),h=c.attr("md-theme-watch");if((l||b.isDefined(h))&&h!="false"){var i=a.$watch(function(){return g&&g.$mdTheme||(k=="default"?"":k)},m);c.on("$destroy",i)}else{var j=g&&g.$mdTheme||(k=="default"?"":k);m(j)}},g.THEMES=b.extend({},e),g.defaultTheme=function(){return k},g.registered=f,g.generateTheme=function(a){z(a,s)},g}d={},e={};var j,k="default",l=!1;return b.extend(d,a),y.$inject=["$rootScope","$log"],j={definePalette:n,extendPalette:t,theme:v,setNonce:function(a){s=a},setDefaultTheme:function(a){k=a},alwaysWatchTheme:function(a){l=a},generateThemesOnDemand:function(a){r=a},$get:y,_LIGHT_DEFAULT_HUES:o,_DARK_DEFAULT_HUES:p,_PALETTES:d,_THEMES:e,_parseRules:w,_rgba:C}}function u(a,b,c){return{priority:100,link:{pre:function(d,e,f){var g={$setTheme:function(b){a.registered(b)||c.warn("attempted to use unregistered theme '"+b+"'"),g.$mdTheme=b}};e.data("$mdThemeController",g),g.$setTheme(b(f.mdTheme)(d)),f.$observe("mdTheme",g.$setTheme)}}}}function v(a){return a}function w(a,c,e){A(a,c),e=e.replace(/THEME_NAME/g,a.name);var f=[],g=a.colors[c],h=new RegExp(".md-"+a.name+"-theme","g"),i=new RegExp("('|\")?{{\\s*("+c+")-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),j=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue\-[0-3]|shadow)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g,k=d[g.name];return e=e.replace(j,function(b,c,e,f,g){return c==="foreground"?e=="shadow"?a.foregroundShadow:a.foregroundPalette[e]||a.foregroundPalette[1]:(e.indexOf("hue")===0&&(e=a.colors[c].hues[e]),C((d[a.colors[c].name][e]||"")[g?"contrast":"value"],f))}),b.forEach(g.hues,function(b,c){var d=e.replace(i,function(a,c,d,e,f){return C(k[b][e==="color"?"value":"contrast"],f)});c!=="default"&&(d=d.replace(h,".md-"+a.name+"-theme.md-"+c));if(a.name=="default"){var g=/((?:(?:(?: |>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)+) )?)((?:(?:\w|\.|-)+)?)\.md-default-theme((?: |>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;d=d.replace(g,function(a,b,c,d){return a+", "+b+c+d})}f.push(d)}),f}function y(c){function p(a){var c=a.contrastDefaultColor,d=a.contrastLightColors||[],e=a.contrastStrongLightColors||[],f=a.contrastDarkColors||[];typeof d=="string"&&(d=d.split(" ")),typeof e=="string"&&(e=e.split(" ")),typeof f=="string"&&(f=f.split(" ")),delete a.contrastDefaultColor,delete a.contrastLightColors,delete a.contrastStrongLightColors,delete a.contrastDarkColors,b.forEach(a,function(g,h){function m(){return c==="light"?f.indexOf(h)>-1?j:e.indexOf(h)>-1?l:k:d.indexOf(h)>-1?e.indexOf(h)>-1?l:k:j}if(b.isObject(g))return;var i=B(g);if(!i)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",g).replace("%2",a.name).replace("%3",h));a[h]={value:i,contrast:m()}})}var f=document.head,g=f?f.firstElementChild:null,h=c.has("$MD_THEME_CSS")?c.get("$MD_THEME_CSS"):"";if(!g)return;if(h.length===0)return;b.forEach(d,p);var i=h.split(/\}(?!(\}|'|"|;))/).filter(function(a){return a&&a.length}).map(function(a){return a.trim()+"}"}),o=new RegExp("md-("+m.join("|")+")","g");m.forEach(function(a){x[a]=""}),i.forEach(function(a){var b=a.match(o);for(var c=0,d;d=m[c];c++)if(a.indexOf(".md-"+d)>-1)return x[d]+=a;for(c=0;d=m[c];c++)if(a.indexOf(d)>-1)return x[d]+=a;return x[n]+=a});if(r)return;b.forEach(e,function(b){a[b.name]||z(b.name,s)})}function z(b,c){var d=e[b],f=document.head,g=f?f.firstElementChild:null;a[b]||(m.forEach(function(a){var b=w(d,a,x[a]);while(b.length){var e=b.shift();if(e){var h=document.createElement("style");h.setAttribute("md-theme-style",""),c&&h.setAttribute("nonce",c),h.appendChild(document.createTextNode(e)),f.insertBefore(h,g)}}}),d.colors.primary.name==d.colors.accent.name&&console.warn("$mdThemingProvider: Using the same palette for primary and accent. This violates the material design spec."),a[d.name]=!0)}function A(a,b){if(!d[(a.colors[b]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",a.name).replace("%2",b).replace("%3",Object.keys(d).join(", ")))}function B(a){if(b.isArray(a)&&a.length==3)return a;if(/^rgb/.test(a))return a.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(a,b){return b==3?parseFloat(a,10):parseInt(a,10)});a.charAt(0)=="#"&&(a=a.substring(1));if(!/^([a-fA-F0-9]{3}){1,2}$/g.test(a))return;var c=a.length/3,d=a.substr(0,c),e=a.substr(c,c),f=a.substr(c*2);return c===1&&(d+=d,e+=e,f+=f),[parseInt(d,16),parseInt(e,16),parseInt(f,16)]}function C(a,c){return a?(a.length==4&&(a=b.copy(a),c?a.pop():c=a.pop()),c&&(typeof c=="number"||typeof c=="string"&&c.length)?"rgba("+a.join(",")+","+c+")":"rgb("+a.join(",")+")"):"rgb('0,0,0')"}"use strict",b.module("material.core.theming",["material.core.theming.palette"]).directive("mdTheme",u).directive("mdThemable",v).provider("$mdTheming",t).run(y);var a={},d,e,f={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.26)",4:"rgba(0,0,0,0.12)"},g={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.3)",4:"rgba(255,255,255,0.12)"},h="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",i="",j=B("rgba(0,0,0,0.87)"),k=B("rgba(255,255,255,0.87)"),l=B("rgb(255,255,255)"),m=["primary","accent","warn","background"],n="primary",o={accent:{"default":"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{"default":"A100","hue-1":"300","hue-2":"800","hue-3":"900"}},p={background:{"default":"800","hue-1":"600","hue-2":"300","hue-3":"900"}};m.forEach(function(a){var b={"default":"500","hue-1":"300","hue-2":"800","hue-3":"A100"};o[a]||(o[a]=b),p[a]||(p[a]=b)});var q=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],r=!1,s=null;t.$inject=["$mdColorPalette"],u.$inject=["$mdTheming","$interpolate","$log"],v.$inject=["$mdTheming"];var x={};y.$inject=["$injector"]}(),function(){function a(a,c,d,e,f){var g;return g={translate3d:function(a,b,c,d){function e(c){return f(a,{to:c||b,addClass:d.transitionOutClass,removeClass:d.transitionInClass}).start()}return f(a,{from:b,to:c,addClass:d.transitionInClass}).start().then(function(){return e})},waitTransitionEnd:function(a,b){var f=3e3;return c(function(c,g){function i(b){if(b&&b.target!==a[0])return;b&&d.cancel(h),a.off(e.CSS.TRANSITIONEND,i),c()}b=b||{};var h=d(i,b.timeout||f);a.on(e.CSS.TRANSITIONEND,i)})},calculateZoomToOrigin:function(c,d){function o(){var a=c?c.parent():null,b=a?a.parent():null;return b?g.clientRect(b):null}var e=d.element,f=d.bounds,h="translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )",i=b.bind(null,a.supplant,h),j=i({centerX:0,centerY:0,scaleX:.5,scaleY:.5});if(e||f){var k=e?g.clientRect(e)||o():g.copyRect(f),l=g.copyRect(c[0].getBoundingClientRect()),m=g.centerPointFor(l),n=g.centerPointFor(k);j=i({centerX:n.x-m.x,centerY:n.y-m.y,scaleX:Math.round(100*Math.min(.5,k.width/l.width))/100,scaleY:Math.round(100*Math.min(.5,k.height/l.height))/100})}return j},toCss:function(a){function f(a,d,e){b.forEach(d.split(" "),function(a){c[a]=e})}var c={},d="left top right bottom width height x y min-width min-height max-width max-height";return b.forEach(a,function(a,g){if(b.isUndefined(a))return;if(d.indexOf(g)>=0)c[g]=a+"px";else switch(g){case"transition":f(g,e.CSS.TRANSITION,a);break;case"transform":f(g,e.CSS.TRANSFORM,a);break;case"transformOrigin":f(g,e.CSS.TRANSFORM_ORIGIN,a)}}),c},toTransformCss:function(a,c,d){var f={};return b.forEach(e.CSS.TRANSFORM.split(" "),function(b){f[b]=a}),c&&(d=d||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",f.transition=d),f},copyRect:function(a,c){return a?(c=c||{},b.forEach("left top right bottom width height".split(" "),function(b){c[b]=Math.round(a[b])}),c.width=c.width||c.right-c.left,c.height=c.height||c.bottom-c.top,c):null},clientRect:function(a){var c=b.element(a)[0].getBoundingClientRect(),d=function(a){return a&&a.width>0&&a.height>0};return d(c)?g.copyRect(c):null},centerPointFor:function(a){return a?{x:Math.round(a.left+a.width/2),y:Math.round(a.top+a.height/2)}:{x:0,y:0}}}}"use strict",b.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(b,c,d,e){return function(f){return a(f,b,c,d,e)}}])}(),function(){"use strict","use strict",b.version.minor>=4?b.module("material.core.animate",[]):function(){function l(a){return a.replace(/-[a-z]/g,function(a){return a.charAt(1).toUpperCase()})}var a=b.forEach,c=b.isDefined(document.documentElement.style.WebkitAppearance),d=c?"WebkitTransition":"transition",e=c?"WebkitAnimation":"animation",f=c?"-webkit-":"",g=(c?"webkitTransitionEnd ":"")+"transitionend",h=(c?"webkitAnimationEnd ":"")+"animationend",i=["$document",function(a){return function(){return a[0].body.clientWidth+1}}],j=["$$rAF",function(a){return function(){var b=!1;return a(function(){b=!0}),function(c){b?c():a(c)}}}],k=["$q","$$rAFMutex",function(c,d){function h(a){this.setHost(a),this._doneCallbacks=[],this._runInAnimationFrame=d(),this._state=0}var e=0,f=1,g=2;return h.prototype={setHost:function(a){this.host=a||{}},done:function(a){this._state===g?a():this._doneCallbacks.push(a)},progress:b.noop,getPromise:function(){if(!this.promise){var a=this;this.promise=c(function(b,c){a.done(function(a){a===!1?c():b()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(a){var b=this;b._state===e&&(b._state=f,b._runInAnimationFrame(function(){b._resolve(a)}))},_resolve:function(b){this._state!==g&&(a(this._doneCallbacks,function(a){a(b)}),this._doneCallbacks.length=0,this._state=g)}},h}];b.module("material.core.animate",[]).factory("$$forceReflow",i).factory("$$AnimateRunner",k).factory("$$rAFMutex",j).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout",function(b,d,e,i,j,k){function m(c,d){var i=[],j=w(c);d.transitionStyle&&i.push([f+"transition",d.transitionStyle]),d.keyframeStyle&&i.push([f+"animation",d.keyframeStyle]),d.delay&&i.push([f+"transition-delay",d.delay+"s"]),d.duration&&i.push([f+"transition-duration",d.duration+"s"]);var m=d.keyframeStyle||d.to&&(d.duration>0||d.transitionStyle),p=!!d.addClass||!!d.removeClass,q=m||p;x(c,!0),u(c,d);var r=!1,y,z;return{close:b.close,start:function(){function m(){if(r)return;return r=!0,y&&z&&c.off(y,z),n(c,d),t(c,d),a(i,function(a){j.style[l(a[0])]=""}),b.complete(!0),b}var b=new e;return s(function(){x(c,!1);if(!q)return m();a(i,function(a){var b=a[0],c=a[1];j.style[l(b)]=c}),n(c,d);var b=o(c);if(b.duration===0)return m();var e=[];d.easing&&(b.transitionDuration&&e.push([f+"transition-timing-function",d.easing]),b.animationDuration&&e.push([f+"animation-timing-function",d.easing])),d.delay&&b.animationDelay&&e.push([f+"animation-delay",d.delay+"s"]),d.duration&&b.animationDuration&&e.push([f+"animation-duration",d.duration+"s"]),a(e,function(a){var b=a[0],c=a[1];j.style[l(b)]=c,i.push(a)});var p=b.delay,r=p*1e3,s=b.duration,t=s*1e3,u=Date.now();y=[],b.transitionDuration&&y.push(g),b.animationDuration&&y.push(h),y=y.join(" "),z=function(a){a.stopPropagation();var b=a.originalEvent||a,c=b.timeStamp||Date.now(),d=parseFloat(b.elapsedTime.toFixed(3));Math.max(c-u,0)>=r&&d>=s&&m()},c.on(y,z),v(c,d),k(m,r+t*1.5,!1)}),b}}}function n(a,b){b.addClass&&(j.addClass(a,b.addClass),b.addClass=null),b.removeClass&&(j.removeClass(a,b.removeClass),b.removeClass=null)}function o(a){function l(a){return c?"Webkit"+a.charAt(0).toUpperCase()+a.substr(1):a}var d=w(a),e=b.getComputedStyle(d),f=p(e[l("transitionDuration")]),g=p(e[l("animationDuration")]),h=p(e[l("transitionDelay")]),i=p(e[l("animationDelay")]);g*=parseInt(e[l("animationIterationCount")],10)||1;var j=Math.max(g,f),k=Math.max(i,h);return{duration:j,delay:k,animationDuration:g,transitionDuration:f,animationDelay:i,transitionDelay:h}}function p(b){var c=0,d=(b||"").split(/\s*,\s*/);return a(d,function(a){a.charAt(a.length-1)=="s"&&(a=a.substring(0,a.length-1)),a=parseFloat(a)||0,c=c?Math.max(a,c):a}),c}function s(a){q&&q(),r.push(a),q=d(function(){q=null;var a=i();for(var b=0;b<r.length;b++)r[b](a);r.length=0})}function t(a,b){u(a,b),v(a,b)}function u(a,b){b.from&&(a.css(b.from),b.from=null)}function v(a,b){b.to&&(a.css(b.to),b.to=null)}function w(a){for(var b=0;b<a.length;b++)if(a[b].nodeType===1)return a[b]}function x(a,b){var c=w(a),d=l(f+"transition-delay");c.style[d]=b?"-9999s":""}var q,r=[];return m}])}()}(),function(){"use strict",b.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"])}(),function(){"use strict",b.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$animate","$rootElement","$window","$log","$$rAF","$document",function a(a,b,c,d,e,f,g){function i(i,j,k){var l=d.getComputedStyle(g[0].body);if(l.position=="fixed"){var m=parseInt(l.height,10)+Math.abs(parseInt(l.top,10));j.css({height:m+"px"})}b.pin&&b.pin(j,c),f(function(){var b=j.parent()[0];if(b){b.nodeName=="BODY"&&j.css({position:"fixed"});var c=d.getComputedStyle(b);c.position=="static"&&e.warn(h)}a.inherit(j,j.parent())})}var h="<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:i}}])}(),function(){function a(a){return{restrict:"E",link:function b(b,c,d){b.$on("$destroy",function(){a.destroy()})}}}function c(a){function e(a,e,f,g,h,i,j){function l(c,d,j,l){d=f.extractElementByName(d,"md-bottom-sheet"),k=f.createBackdrop(c,"md-bottom-sheet-backdrop md-opaque"),j.clickOutsideToClose&&k.on("click",function(){f.nextTick(h.cancel,!0)}),g.inherit(k,j.parent),a.enter(k,j.parent,null);var m=new n(d,j.parent);return j.bottomSheet=m,g.inherit(m.element,j.parent),j.disableParentScroll&&(j.restoreScroll=f.disableScrollAround(m.element,j.parent)),a.enter(m.element,j.parent).then(function(){var a=f.findFocusTarget(d)||b.element(d[0].querySelector("button")||d[0].querySelector("a")||d[0].querySelector("[ng-click]"));a.focus(),j.escapeToClose&&(j.rootElementKeyupCallback=function(a){a.keyCode===e.KEY_CODE.ESCAPE&&f.nextTick(h.cancel,!0)},i.on("keyup",j.rootElementKeyupCallback))})}function m(b,c,d){var e=d.bottomSheet;return a.leave(k),a.leave(e.element).then(function(){d.disableParentScroll&&(d.restoreScroll(),delete d.restoreScroll),e.cleanup()})}function n(a,b){function i(b){a.css(e.CSS.TRANSITION_DURATION,"0ms")}function k(b){var c=b.pointer.distanceY;c<5&&(c=Math.max(-d,c/2)),a.css(e.CSS.TRANSFORM,"translate3d(0,"+(d+c)+"px,0)")}function l(b){if(b.pointer.distanceY>0&&(b.pointer.distanceY>20||Math.abs(b.pointer.velocityY)>c)){var d=a.prop("offsetHeight")-b.pointer.distanceY,g=Math.min(d/b.pointer.velocityY*.75,500);a.css(e.CSS.TRANSITION_DURATION,g+"ms"),f.nextTick(h.cancel,!0)}else a.css(e.CSS.TRANSITION_DURATION,""),a.css(e.CSS.TRANSFORM,"")}var g=j.register(b,"drag",{horizontal:!1});return b.on("$md.dragstart",i).on("$md.drag",k).on("$md.dragend",l),{element:a,cleanup:function(){g(),b.off("$md.dragstart",i),b.off("$md.drag",k),b.off("$md.dragend",l)}}}var k;return{themable:!0,onShow:l,onRemove:m,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}var c=.5,d=80;return e.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture"],a("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:e})}"use strict",b.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",a).provider("$mdBottomSheet",c),a.$inject=["$mdBottomSheet"],c.$inject=["$$interimElementProvider"]}(),function(){function a(a,c,d,e){function f(a){return b.isDefined(a.href)||b.isDefined(a.ngHref)||b.isDefined(a.ngLink)||b.isDefined(a.uiSref)}function g(a,b){if(f(b))return'<a class="md-button" ng-transclude></a>';var c=typeof b.type=="undefined"?"button":b.type;return'<button class="md-button" type="'+c+'" ng-transclude></button>'}function h(g,h,i){c(h),a.attach(g,h),d.expectWithText(h,"aria-label"),f(i)&&b.isDefined(i.ngDisabled)&&g.$watch(i.ngDisabled,function(a){h.attr("tabindex",a?-1:0)}),h.on("click",function(a){i.disabled===!0&&(a.preventDefault(),a.stopImmediatePropagation())}),g.mouseActive=!1,h.on("mousedown",function(){g.mouseActive=!0,e(function(){g.mouseActive=!1},100)}).on("focus",function(){g.mouseActive===!1&&h.addClass("md-focused")}).on("blur",function(a){h.removeClass("md-focused")})}return{restrict:"EA",replace:!0,transclude:!0,template:g,link:h}}"use strict",b.module("material.components.button",["material.core"]).directive("mdButton",a),a.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$timeout"]}(),function(){function a(a){return{restrict:"E",link:function(b,c){a(c)}}}"use strict",b.module("material.components.card",["material.core"]).directive("mdCard",a),a.$inject=["$mdTheming"]}(),function(){function a(a,c,d,e,f,g){function i(i,j){return j.type="checkbox",j.tabindex=j.tabindex||"0",i.attr("role",j.type),i.on("click",function(a){this.hasAttribute("disabled")&&a.stopImmediatePropagation()}),function k(i,j,k,l){function m(a,b,c){k[a]&&i.$watch(k[a],function(a){c[a]&&j.attr(b,c[a])})}function n(a){var b=a.which||a.keyCode;if(b===d.KEY_CODE.SPACE||b===d.KEY_CODE.ENTER)a.preventDefault(),j.hasClass("md-focused")||j.addClass("md-focused"),o(a)}function o(a){if(j[0].hasAttribute("disabled"))return;i.$apply(function(){var b=k.ngChecked?k.checked:!l.$viewValue;l.$setViewValue(b,a&&a.type),l.$render()})}function p(){l.$viewValue?j.addClass(h):j.removeClass(h)}l=l||f.fakeNgModel(),e(j),k.ngChecked&&i.$watch(i.$eval.bind(i,k.ngChecked),l.$setViewValue.bind(l)),m("ngDisabled","tabindex",{"true":"-1","false":k.tabindex}),c.expectWithText(j,"aria-label"),a.link.pre(i,{on:b.noop,0:{}},k,[l]),i.mouseActive=!1,j.on("click",o).on("keypress",n).on("mousedown",function(){i.mouseActive=!0,g(function(){i.mouseActive=!1},100)}).on("focus",function(){i.mouseActive===!1&&j.addClass("md-focused")}).on("blur",function(){j.removeClass("md-focused")}),l.$render=p}}a=a[0];var h="md-checked";return{restrict:"E",transclude:!0,require:"?ngModel",priority:210,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:i}}"use strict",b.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",a),a.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$timeout"]}(),function(){"use strict",b.module("material.components.chips",["material.core","material.components.autocomplete"])}(),function(){function a(a){function b(a,b){this.$scope=a,this.$element=b}return{restrict:"E",controller:["$scope","$element",b],link:function(b,d,e){var f=d[0];a(d),b.$broadcast("$mdContentLoaded",d),c(d[0])}}}function c(a){b.element(a).on("$md.pressdown",function(b){if(b.pointer.type!=="t")return;if(b.$materialScrollFixed)return;b.$materialScrollFixed=!0,a.scrollTop===0?a.scrollTop=1:a.scrollHeight===a.scrollTop+a.offsetHeight&&(a.scrollTop-=1)})}"use strict",b.module("material.components.content",["material.core"]).directive("mdContent",a),a.$inject=["$mdTheming"]}(),function(){"use strict",function(){function d(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(c-a)+'">'+'<table role="grid" tabindex="0" class="md-calendar" aria-readonly="true">'+'<tbody role="rowgroup" md-virtual-repeat="i in ctrl.items" md-calendar-month '+'md-month-offset="$index" class="md-calendar-month" '+'md-start-index="ctrl.getSelectedMonthIndex()" '+'md-item-size="'+a+'"></tbody>'+"</table>"+"</md-virtual-repeat-container>"+"</div>",scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter"},require:["ngModel","mdCalendar"],controller:i,controllerAs:"ctrl",bindToController:!0,link:function(a,b,c,d){var e=d[0],f=d[1];f.configureNgModel(e)}}}function i(a,b,c,d,e,f,h,i,j,k,l){h(a),this.items={length:2e3};if(this.maxDate&&this.minDate){var m=i.getMonthDistance(this.minDate,this.maxDate)+1;m=Math.max(m,1),m+=1,this.items.length=m}this.$animate=d,this.$q=e,this.$mdInkRipple=k,this.$mdUtil=l,this.keyCode=f.KEY_CODE,this.dateUtil=i,this.dateLocale=j,this.$element=a,this.$scope=c,this.calendarElement=a[0].querySelector(".md-calendar"),this.calendarScroller=a[0].querySelector(".md-virtual-repeat-scroller"),this.today=this.dateUtil.createDateAtMidnight(),this.firstRenderableDate=this.dateUtil.incrementMonths(this.today,-this.items.length/2);if(this.minDate&&this.minDate>this.firstRenderableDate)this.firstRenderableDate=this.minDate;else if(this.maxDate){var n=this.items.length-2;this.firstRenderableDate=this.dateUtil.incrementMonths(this.maxDate,-(this.items.length-2))}this.id=g++,this.ngModelCtrl=null,this.selectedDate=null,this.displayDate=null,this.focusDate=null,this.isInitialized=!1,this.isMonthTransitionInProgress=!1,b.tabindex||a.attr("tabindex","-1");var o=this;this.cellClickHandler=function(){var a=this;this.hasAttribute("data-timestamp")&&c.$apply(function(){var b=Number(a.getAttribute("data-timestamp"));o.setNgModelValue(o.dateUtil.createDateAtMidnight(b))})},this.attachCalendarEventListeners()}"use strict",b.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"]).directive("mdCalendar",d);var a=265,c=45,e="md-calendar-selected-date",f="md-focus",g=0,h=null;i.$inject=["$element","$attrs","$scope","$animate","$q","$mdConstant","$mdTheming","$$mdDateUtil","$mdDateLocale","$mdInkRipple","$mdUtil"],i.prototype.configureNgModel=function(a){this.ngModelCtrl=a;var b=this;a.$render=function(){b.changeSelectedDate(b.ngModelCtrl.$viewValue)}},i.prototype.buildInitialCalendarDisplay=function(){this.buildWeekHeader(),this.hideVerticalScrollbar(),this.displayDate=this.selectedDate||this.today,this.isInitialized=!0},i.prototype.hideVerticalScrollbar=function(){var a=this.$element[0],b=a.querySelector(".md-calendar-scroll-mask"),c=this.calendarScroller,d=a.querySelector(".md-calendar-day-header").clientWidth,e=c.offsetWidth-c.clientWidth;b.style.width=d+"px",c.style.width=d+e+"px",c.style.paddingRight=e+"px"},i.prototype.attachCalendarEventListeners=function(){this.$element.on("keydown",b.bind(this,this.handleKeyEvent))},i.prototype.handleKeyEvent=function(a){var b=this;this.$scope.$apply(function(){if(a.which==b.keyCode.ESCAPE||a.which==b.keyCode.TAB){b.$scope.$emit("md-calendar-close"),a.which==b.keyCode.TAB&&a.preventDefault();return}if(a.which===b.keyCode.ENTER){b.setNgModelValue(b.displayDate),a.preventDefault();return}var c=b.getFocusDateFromKeyEvent(a);c&&(c=b.boundDateByMinAndMax(c),a.preventDefault(),a.stopPropagation(),b.changeDisplayDate(c).then(function(){b.focus(c)}))})},i.prototype.getFocusDateFromKeyEvent=function(a){var b=this.dateUtil,c=this.keyCode;switch(a.which){case c.RIGHT_ARROW:return b.incrementDays(this.displayDate,1);case c.LEFT_ARROW:return b.incrementDays(this.displayDate,-1);case c.DOWN_ARROW:return a.metaKey?b.incrementMonths(this.displayDate,1):b.incrementDays(this.displayDate,7);case c.UP_ARROW:return a.metaKey?b.incrementMonths(this.displayDate,-1):b.incrementDays(this.displayDate,-7);case c.PAGE_DOWN:return b.incrementMonths(this.displayDate,1);case c.PAGE_UP:return b.incrementMonths(this.displayDate,-1);case c.HOME:return b.getFirstDateOfMonth(this.displayDate);case c.END:return b.getLastDateOfMonth(this.displayDate);default:return null}},i.prototype.getSelectedMonthIndex=function(){return this.dateUtil.getMonthDistance(this.firstRenderableDate,this.selectedDate||this.today)},i.prototype.scrollToMonth=function(b){if(!this.dateUtil.isValidDate(b))return;var c=this.dateUtil.getMonthDistance(this.firstRenderableDate,b);this.calendarScroller.scrollTop=c*a},i.prototype.setNgModelValue=function(a){this.$scope.$emit("md-calendar-change",a),this.ngModelCtrl.$setViewValue(a),this.ngModelCtrl.$render()},i.prototype.focus=function(a){var b=a||this.selectedDate||this.today,c=this.calendarElement.querySelector(".md-focus");c&&c.classList.remove(f);var d=this.getDateId(b),e=document.getElementById(d);e?(e.classList.add(f),e.focus()):this.focusDate=b},i.prototype.boundDateByMinAndMax=function(a){var b=a;return this.minDate&&a<this.minDate&&(b=new Date(this.minDate.getTime())),this.maxDate&&a>this.maxDate&&(b=new Date(this.maxDate.getTime())),b},i.prototype.changeSelectedDate=function(a){var b=this,c=this.selectedDate;this.selectedDate=a,this.changeDisplayDate(a).then(function(){if(c){var d=document.getElementById(b.getDateId(c));d&&(d.classList.remove(e),d.setAttribute("aria-selected","false"))}if(a){var f=document.getElementById(b.getDateId(a));f&&(f.classList.add(e),f.setAttribute("aria-selected","true"))}})},i.prototype.changeDisplayDate=function(a){if(!this.isInitialized)return this.buildInitialCalendarDisplay(),this.$q.when();if(!this.dateUtil.isValidDate(a)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var b=this.animateDateChange(a);this.displayDate=a;var c=this;return b.then(function(){c.isMonthTransitionInProgress=!1}),b},i.prototype.animateDateChange=function(a){return this.scrollToMonth(a),this.$q.when()},i.prototype.buildWeekHeader=function(){var a=this.dateLocale.firstDayOfWeek,b=this.dateLocale.shortDays,c=document.createElement("tr");for(var d=0;d<7;d++){var e=document.createElement("th");e.textContent=b[(d+a)%7],c.appendChild(e)}this.$element.find("thead").append(c)},i.prototype.getDateId=function(a){return["md",this.id,a.getFullYear(),a.getMonth(),a.getDate()].join("-")}}()}(),function(){"use strict",function(){function a(){return{require:["^^mdCalendar","mdCalendarMonth"],scope:{offset:"=mdMonthOffset"},controller:f,controllerAs:"mdMonthCtrl",bindToController:!0,link:function(a,b,c,d){var e=d[0],f=d[1];f.calendarCtrl=e,f.generateContent(),a.$watch(function(){return f.offset},function(a,b){a!=b&&f.generateContent()})}}}function f(a,b,c){this.dateUtil=b,this.dateLocale=c,this.$element=a,this.calendarCtrl=null,this.offset,this.focusAfterAppend=null}"use strict",b.module("material.components.datepicker").directive("mdCalendarMonth",a);var c="md-calendar-date-today",d="md-calendar-selected-date",e="md-focus";f.$inject=["$element","$$mdDateUtil","$mdDateLocale"],f.prototype.generateContent=function(){var a=this.calendarCtrl,b=this.dateUtil.incrementMonths(a.firstRenderableDate,this.offset);this.$element.empty(),this.$element.append(this.buildCalendarForMonth(b)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(e),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},f.prototype.buildDateCell=function(a){var b=this.calendarCtrl,e=document.createElement("td");e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell");if(a){e.setAttribute("tabindex","-1"),e.setAttribute("aria-label",this.dateLocale.longDateFormatter(a)),e.id=b.getDateId(a),e.setAttribute("data-timestamp",a.getTime()),this.dateUtil.isSameDay(a,b.today)&&e.classList.add(c),this.dateUtil.isValidDate(b.selectedDate)&&this.dateUtil.isSameDay(a,b.selectedDate)&&(e.classList.add(d),e.setAttribute("aria-selected","true"));var f=this.dateLocale.dates[a.getDate()];if(this.isDateEnabled(a)){var g=document.createElement("span");e.appendChild(g),g.classList.add("md-calendar-date-selection-indicator"),g.textContent=f,e.addEventListener("click",b.cellClickHandler),b.focusDate&&this.dateUtil.isSameDay(a,b.focusDate)&&(this.focusAfterAppend=e)}else e.classList.add("md-calendar-date-disabled"),e.textContent=f}return e},f.prototype.isDateEnabled=function(a){return this.dateUtil.isDateWithinRange(a,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!b.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(a))},f.prototype.buildDateRow=function(a){var b=document.createElement("tr");return b.setAttribute("role","row"),b.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(a)),b},f.prototype.buildCalendarForMonth=function(a){var b=this.dateUtil.isValidDate(a)?a:new Date,c=this.dateUtil.getFirstDateOfMonth(b),d=this.getLocaleDay_(c),e=this.dateUtil.getNumberOfDaysInMonth(b),f=document.createDocumentFragment(),g=1,h=this.buildDateRow(g);f.appendChild(h);var i=this.offset===this.calendarCtrl.items.length-1,j=0,k=document.createElement("td");k.classList.add("md-calendar-month-label"),this.calendarCtrl.maxDate&&c>this.calendarCtrl.maxDate&&k.classList.add("md-calendar-month-label-disabled"),k.textContent=this.dateLocale.monthHeaderFormatter(b);if(d<=2){k.setAttribute("colspan","7");var l=this.buildDateRow();l.appendChild(k),f.insertBefore(l,h);if(i)return f}else j=2,k.setAttribute("colspan","2"),h.appendChild(k);for(var m=j;m<d;m++)h.appendChild(this.buildDateCell());var n=d,o=c;for(var p=1;p<=e;p++){if(n===7){if(i)return f;n=0,g++,h=this.buildDateRow(g),f.appendChild(h)}o.setDate(p);var q=this.buildDateCell(o);h.appendChild(q),n++}while(h.childNodes.length<7)h.appendChild(this.buildDateCell());while(f.childNodes.length<6){var r=this.buildDateRow();for(var m=0;m<7;m++)r.appendChild(this.buildDateCell());f.appendChild(r)}return f},f.prototype.getLocaleDay_=function(a){return(a.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}()}(),function(){"use strict",function(){"use strict",b.module("material.components.datepicker").config(["$provide",function(a){function b(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.msgCalendar="",this.msgOpenCalendar=""}b.prototype.$get=function(a){function b(a){if(!a)return"";var b=a.toLocaleTimeString(),c=a;return a.getHours()==0&&(b.indexOf("11:")!==-1||b.indexOf("23:")!==-1)&&(c=new Date(a.getFullYear(),a.getMonth(),a.getDate(),1,0,0)),c.toLocaleDateString()}function c(a){return new Date(a)}function d(a){a=a.trim();var b=/^(([a-zA-Z]{3,}|[0-9]{1,4})([ \.,]+|[\/\-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/;return b.test(a)}function e(a){return m.shortMonths[a.getMonth()]+" "+a.getFullYear()}function f(a){return"Week "+a}function g(a){return[m.days[a.getDay()],m.months[a.getMonth()],m.dates[a.getDate()],a.getFullYear()].join(" ")}var h=a.DATETIME_FORMATS.DAY.map(function(a){return a[0]}),i=Array(32);for(var j=1;j<=31;j++)i[j]=j;var k="Calendar",l="Open calendar",m={months:this.months||a.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||a.DATETIME_FORMATS.SHORTMONTH,days:this.days||a.DATETIME_FORMATS.DAY,shortDays:this.shortDays||h,dates:this.dates||i,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||b,parseDate:this.parseDate||c,isDateComplete:this.isDateComplete||d,monthHeaderFormatter:this.monthHeaderFormatter||e,weekNumberFormatter:this.weekNumberFormatter||f,longDateFormatter:this.longDateFormatter||g,msgCalendar:this.msgCalendar||k,msgOpenCalendar:this.msgOpenCalendar||l};return m},b.prototype.$get.$inject=["$locale"],a.provider("$mdDateLocale",new b)}])}()}(),function(){"use strict",function(){function c(){return{template:'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" md-svg-icon="md-calendar"></md-icon></md-button><div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input class="md-datepicker-input" aria-haspopup="true" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"><md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.dateLocale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button></div><div class="md-datepicker-calendar-pane md-whiteframe-z1"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.dateLocale.msgCalendar}}" md-min-date="ctrl.minDate" md-max-date="ctrl.maxDate"md-date-filter="ctrl.dateFilter"ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>',require:["ngModel","mdDatepicker","?^mdInputContainer"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",dateFilter:"=mdDateFilter"},controller:i,controllerAs:"ctrl",bindToController:!0,link:function(a,b,c,d){var e=d[0],f=d[1],g=d[2];if(g)throw Error("md-datepicker should not be placed inside md-input-container.");f.configureNgModel(e)}}}function i(a,c,d,e,f,g,h,i,j,k,l,m){this.$compile=e,this.$timeout=f,this.$window=g,this.dateLocale=k,this.dateUtil=l,this.$mdConstant=h,this.$mdUtil=j,this.$$rAF=m,this.documentElement=b.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=c[0].querySelector("input"),this.ngInputElement=b.element(this.inputElement),this.inputContainer=c[0].querySelector(".md-datepicker-input-container"),this.calendarPane=c[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=c[0].querySelector(".md-datepicker-button"),this.inputMask=c[0].querySelector(".md-datepicker-input-mask-opaque"),this.$element=c,this.$attrs=d,this.$scope=a,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(c[0].disabled||b.isString(d.disabled)),this.isCalendarOpen=!1,this.calendarPaneOpenedFrom=null,this.calendarPane.id="md-date-pane"+j.nextUid(),i(c),this.bodyClickHandler=b.bind(this,this.handleBodyClick),this.windowResizeHandler=j.debounce(b.bind(this,this.closeCalendarPane),100),d.tabindex||c.attr("tabindex","-1"),this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners();var n=this;a.$on("$destroy",function(){n.detachCalendarPane()})}"use strict",b.module("material.components.datepicker").directive("mdDatepicker",c);var d=3,e="md-datepicker-invalid",f=500,g=368,h=360;i.$inject=["$scope","$element","$attrs","$compile","$timeout","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF"],i.prototype.configureNgModel=function(a){this.ngModelCtrl=a;var b=this;a.$render=function(){var a=b.ngModelCtrl.$viewValue;if(!a||a instanceof Date)b.date=a,b.inputElement.value=b.dateLocale.formatDate(a),b.resizeInputElement(),b.updateErrorState();else throw Error("The ng-model for md-datepicker must be a Date instance. Currently the model is a: "+typeof a)}},i.prototype.attachChangeListeners=function(){var a=this;a.$scope.$on("md-calendar-change",function(b,c){a.ngModelCtrl.$setViewValue(c),a.date=c,a.inputElement.value=a.dateLocale.formatDate(c),a.closeCalendarPane(),a.resizeInputElement(),a.updateErrorState()}),a.ngInputElement.on("input",b.bind(a,a.resizeInputElement)),a.ngInputElement.on("input",a.$mdUtil.debounce(a.handleInputEvent,f,a))},i.prototype.attachInteractionListeners=function(){var a=this,b=this.$scope,c=this.$mdConstant.KEY_CODE;a.ngInputElement.on("keydown",function(d){d.altKey&&d.keyCode==c.DOWN_ARROW&&(a.openCalendarPane(d),b.$digest())}),b.$on("md-calendar-close",function(){a.closeCalendarPane()})},i.prototype.installPropertyInterceptors=function(){var a=this;if(this.$attrs.ngDisabled){var b=this.$scope.$parent;b&&b.$watch(this.$attrs.ngDisabled,function(b){a.setDisabled(b)})}Object.defineProperty(this,"placeholder",{get:function(){return a.inputElement.placeholder},set:function(b){a.inputElement.placeholder=b||""}})},i.prototype.setDisabled=function(a){this.isDisabled=a,this.inputElement.disabled=a,this.calendarButton.disabled=a},i.prototype.updateErrorState=function(a){var c=a||this.date;this.clearErrorState();if(this.dateUtil.isValidDate(c)){c=this.dateUtil.createDateAtMidnight(c);if(this.dateUtil.isValidDate(this.minDate)){var d=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",c>=d)}if(this.dateUtil.isValidDate(this.maxDate)){var f=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",c<=f)}b.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(c))}else this.ngModelCtrl.$setValidity("valid",c==null);this.ngModelCtrl.$valid||this.inputContainer.classList.add(e)},i.prototype.clearErrorState=function(){this.inputContainer.classList.remove(e),["mindate","maxdate","filtered","valid"].forEach(function(a){this.ngModelCtrl.$setValidity(a,!0)},this)},i.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+d},i.prototype.handleInputEvent=function(){var a=this.inputElement.value,b=a?this.dateLocale.parseDate(a):null;this.dateUtil.setDateTimeToMidnight(b);var c=a==""||this.dateUtil.isValidDate(b)&&this.dateLocale.isDateComplete(a)&&this.isDateEnabled(b);c&&(this.ngModelCtrl.$setViewValue(b),this.date=b),this.updateErrorState(b)},i.prototype.isDateEnabled=function(a){return this.dateUtil.isDateWithinRange(a,this.minDate,this.maxDate)&&(!b.isFunction(this.dateFilter)||this.dateFilter(a))},i.prototype.attachCalendarPane=function(){var a=this.calendarPane;a.style.transform="",this.$element.addClass("md-datepicker-open");var b=this.inputContainer.getBoundingClientRect(),c=document.body.getBoundingClientRect(),d=b.top-c.top,e=b.left-c.left,f=c.top<0&&document.body.scrollTop==0?-c.top:document.body.scrollTop,i=c.left<0&&document.body.scrollLeft==0?-c.left:document.body.scrollLeft,j=f+this.$window.innerHeight,k=i+this.$window.innerWidth;if(e+h>k){if(k-h>0)e=k-h;else{e=i;var l=this.$window.innerWidth/h;a.style.transform="scale("+l+")"}a.classList.add("md-datepicker-pos-adjusted")}d+g>j&&j-g>f&&(d=j-g,a.classList.add("md-datepicker-pos-adjusted")),a.style.left=e+"px",a.style.top=d+"px",document.body.appendChild(a),this.inputMask.style.left=b.width+"px",this.$$rAF(function(){a.classList.add("md-pane-open")})},i.prototype.detachCalendarPane=function(){this.$element.removeClass("md-datepicker-open"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},i.prototype.openCalendarPane=function(b){if(!this.isCalendarOpen&&!this.isDisabled){this.isCalendarOpen=!0,this.calendarPaneOpenedFrom=b.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar();var c=this;this.$mdUtil.nextTick(function(){c.documentElement.on("click touchstart",c.bodyClickHandler)},!1),a.addEventListener("resize",this.windowResizeHandler)}},i.prototype.closeCalendarPane=function(){this.isCalendarOpen&&(this.isCalendarOpen=!1,this.detachCalendarPane(),this.calendarPaneOpenedFrom.focus(),this.calendarPaneOpenedFrom=null,this.$mdUtil.enableScrolling(),this.ngModelCtrl.$setTouched(),this.documentElement.off("click touchstart",this.bodyClickHandler),a.removeEventListener("resize",this.windowResizeHandler))},i.prototype.getCalendarCtrl=function(){return b.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},i.prototype.focusCalendar=function(){var a=this;this.$mdUtil.nextTick(function(){a.getCalendarCtrl().focus()},!1)},i.prototype.setFocused=function(a){a||this.ngModelCtrl.$setTouched(),this.isFocused=a},i.prototype.handleBodyClick=function(a){if(this.isCalendarOpen){var b=this.$mdUtil.getClosest(a.target,"md-calendar");b||this.closeCalendarPane(),this.$scope.$digest()}}}()}(),function(){"use strict",function(){"use strict",b.module("material.components.datepicker").factory("$$mdDateUtil",function(){function a(a){return new Date(a.getFullYear(),a.getMonth(),1)}function c(a){return(new Date(a.getFullYear(),a.getMonth()+1,0)).getDate()}function d(a){return new Date(a.getFullYear(),a.getMonth()+1,1)}function e(a){return new Date(a.getFullYear(),a.getMonth()-1,1)}function f(a,b){return a.getFullYear()===b.getFullYear()&&a.getMonth()===b.getMonth()}function g(a,b){return a.getDate()==b.getDate()&&f(a,b)}function h(a,b){var c=d(a);return f(c,b)}function i(a,b){var c=e(a);return f(b,c)}function j(a,b){return r((a.getTime()+b.getTime())/2)}function k(b){var c=a(b);return Math.floor((c.getDay()+b.getDate()-1)/7)}function l(a,b){return new Date(a.getFullYear(),a.getMonth(),a.getDate()+b)}function m(a,b){var d=new Date(a.getFullYear(),a.getMonth()+b,1),e=c(d);return e<a.getDate()?d.setDate(e):d.setDate(a.getDate()),d}function n(a,b){return 12*(b.getFullYear()-a.getFullYear())+(b.getMonth()-a.getMonth())}function o(a){return new Date(a.getFullYear(),a.getMonth(),c(a))}function p(a){return a!=null&&a.getTime&&!isNaN(a.getTime())}function q(a){p(a)&&a.setHours(0,0,0,0)}function r(a){var c;return b.isUndefined(a)?c=new Date:c=new Date(a),q(c),c}function s(a,b,c){var d=r(a),e=p(b)?r(b):null,f=p(c)?r(c):null;return(!e||e<=d)&&(!f||f>=d)}return{getFirstDateOfMonth:a,getNumberOfDaysInMonth:c,getDateInNextMonth:d,getDateInPreviousMonth:e,isInNextMonth:h,isInPreviousMonth:i,getDateMidpoint:j,isSameMonthAndYear:f,getWeekOfMonth:k,incrementDays:l,incrementMonths:m,getLastDateOfMonth:o,isSameDay:g,getMonthDistance:n,isValidDate:p,setDateTimeToMidnight:q,createDateAtMidnight:r,isDateWithinRange:s}})}()}(),function(){function a(a,c,d){return{restrict:"E",link:function(e,f,g){c(f),a(function(){function g(){f.toggleClass("md-content-overflow",c.scrollHeight>c.clientHeight)}var a,c=f[0].querySelector("md-dialog-content");c&&(a=c.getElementsByTagName("img"),g(),b.element(a).on("load",g)),e.$on("$destroy",function(){d.destroy(f)})})}}}function d(a){function f(a,b){return{template:['<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">','  <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">','    <h2 class="md-title">{{ dialog.title }}</h2>','    <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ','        ng-bind-html="::dialog.mdHtmlContent"></div>','    <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">',"      <p>{{::dialog.mdTextContent}}</p>","    </div>","  </md-dialog-content>","  <md-dialog-actions>",'    <md-button ng-if="dialog.$type == \'confirm\'"               ng-click="dialog.abort()" class="md-primary">',"      {{ dialog.cancel }}","    </md-button>",'    <md-button ng-click="dialog.hide()" class="md-primary" md-autofocus="dialog.$type!=\'confirm\'">',"      {{ dialog.ok }}","    </md-button>","  </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:function(){this.hide=function(){a.hide(!0)},this.abort=function(){a.cancel()}},controllerAs:"dialog",bindToController:!0,theme:b.defaultTheme()}}function g(a,f,g,h,i,j,k,l,m,n){function o(a,b,c,d){if(d){d.mdHtmlContent=d.htmlContent||c.htmlContent||"",d.mdTextContent=d.textContent||c.textContent||d.content||c.content||"";if(d.mdHtmlContent&&!n.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(d.mdHtmlContent&&d.mdTextContent)throw Error("md-dialog cannot have both `htmlContent` and `textContent`")}}function p(a,c,d,e){function f(){var a=c[0].querySelectorAll(".md-actions");a.length>0&&m.warn("Using a class of md-actions is deprected, please use <md-dialog-actions>.")}function h(){function e(){var a=c[0].querySelector(".dialog-close");if(!a){var d=c[0].querySelectorAll(".md-actions button, md-dialog-actions button");a=d[d.length-1]}return b.element(a)}if(d.focusOnOpen){var a=g.findFocusTarget(c)||e();a.focus()}}return b.element(j[0].body).addClass("md-dialog-is-showing"),r(d),u(c.find("md-dialog"),d),t(a,c,d),x(c,d).then(function(){s(c,d),v(c,d),f(),h()})}function q(a,c,f){function g(){return y(c,f)}function h(){b.element(j[0].body).removeClass("md-dialog-is-showing"),c.remove(),f.$destroy||f.origin.focus()}return f.deactivateListeners(),f.unlockScreenReader(),f.hideBackdrop(f.$destroy),d&&d.parentNode&&d.parentNode.removeChild(d),e&&e.parentNode&&e.parentNode.removeChild(e),f.$destroy?h():g().then(h)}function r(a){function d(a,d){var e=b.element(a||{});if(e&&e.length){var f={top:0,left:0,height:0,width:0},g=b.isFunction(e[0].getBoundingClientRect);return b.extend(d||{},{element:g?e:c,bounds:g?e[0].getBoundingClientRect():b.extend({},f,e[0]),focus:b.bind(e,e.focus)})}}function e(a,c){if(b.isString(a)){var d=a,e=j[0].querySelectorAll(d);a=e.length?e[0]:null}return b.element(a||c)}a.origin=b.extend({element:null,bounds:null,focus:b.noop},a.origin||{}),a.parent=e(a.parent,l),a.closeTo=d(e(a.closeTo)),a.openFrom=d(e(a.openFrom)),a.targetEvent&&(a.origin=d(a.targetEvent.target,a.origin))}function s(c,d){var e=b.element(k),f=g.debounce(function(){w(c,d)},60),i=[],j=function(){var b=d.$type=="alert"?a.hide:a.cancel;g.nextTick(b,!0)};if(d.escapeToClose){var l=d.parent,m=function(a){a.keyCode===h.KEY_CODE.ESCAPE&&(a.stopPropagation(),a.preventDefault(),j())};c.on("keydown",m),l.on("keydown",m),i.push(function(){c.off("keydown",m),l.off("keydown",m)})}e.on("resize",f),i.push(function(){e.off("resize",f)});if(d.clickOutsideToClose){var l=c,n,o=function(a){n=a.target},p=function(a){n===l[0]&&a.target===l[0]&&(a.stopPropagation(),a.preventDefault(),j())};l.on("mousedown",o),l.on("mouseup",p),i.push(function(){l.off("mousedown",o),l.off("mouseup",p)})}d.deactivateListeners=function(){i.forEach(function(a){a()}),d.deactivateListeners=null}}function t(a,b,c){c.disableParentScroll&&(c.restoreScroll=g.disableScrollAround(b,c.parent)),c.hasBackdrop&&(c.backdrop=g.createBackdrop(a,"md-dialog-backdrop md-opaque"),i.enter(c.backdrop,c.parent)),c.hideBackdrop=function(a){c.backdrop&&(a?c.backdrop.remove():i.leave(c.backdrop)),c.disableParentScroll&&(c.restoreScroll(),delete c.restoreScroll),c.hideBackdrop=null}}function u(a,b){var c=b.$type==="alert"?"alertdialog":"dialog",h=a.find("md-dialog-content"),i=a.attr("id")||"dialog_"+g.nextUid();a.attr({role:c,tabIndex:"-1"}),h.length===0&&(h=a),h.attr("id",i),a.attr("aria-describedby",i),b.ariaLabel?f.expect(a,"aria-label",b.ariaLabel):f.expectAsync(a,"aria-label",function(){var a=h.text().split(/\s+/);return a.length>3&&(a=a.slice(0,3).concat("...")),a.join(" ")}),d=document.createElement("div"),d.classList.add("md-dialog-focus-trap"),d.tabIndex=0,e=d.cloneNode(!1);var j=function(){a.focus()};d.addEventListener("focus",j),e.addEventListener("focus",j),a[0].parentNode.insertBefore(d,a[0]),a.append(e)}function v(a,b){function d(a){while(a.parentNode){if(a===document.body)return;var b=a.parentNode.children;for(var e=0;e<b.length;e++)a!==b[e]&&!z(b[e],["SCRIPT","STYLE"])&&b[e].setAttribute("aria-hidden",c);d(a=a.parentNode)}}var c=!0;d(a[0]),b.unlockScreenReader=function(){c=!1,d(a[0]),b.unlockScreenReader=null}}function w(a,b){var c=k.getComputedStyle(j[0].body).position=="fixed",d=b.backdrop?k.getComputedStyle(b.backdrop[0]):null,e=d?Math.min(j[0].body.clientHeight,Math.ceil(Math.abs(parseInt(d.height,10)))):0;return a.css({top:(c?g.scrollTop(b.parent):0)+"px",height:e?e+"px":"100%"}),a}function x(a,b){b.parent.append(a),w(a,b);var c=a.find("md-dialog"),d=g.dom.animator,e=d.calculateZoomToOrigin,f={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},h=d.toTransformCss(e(c,b.openFrom||b.origin)),i=d.toTransformCss("");return b.fullscreen&&c.addClass("md-dialog-fullscreen"),d.translate3d(c,h,i,f).then(function(a){return b.reverseAnimate=function(){return delete b.reverseAnimate,b.closeTo?(f={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},h=i,i=d.toTransformCss(e(c,b.closeTo)),d.translate3d(c,h,i,f)):a(d.toTransformCss(e(c,b.origin)))},!0})}function y(a,b){return b.reverseAnimate()}function z(a,b){if(b.indexOf(a.nodeName)!==-1)return!0}return{hasBackdrop:!0,isolateScope:!0,onShow:p,onShowing:o,onRemove:q,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(a,b){function c(a){return b.autoWrap&&!/<\/md-dialog>/g.test(a)?"<md-dialog>"+(a||"")+"</md-dialog>":a||""}return'<div class="md-dialog-container">'+c(a)+"</div>"}}}var d,e;return f.$inject=["$mdDialog","$mdTheming"],g.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector"],a("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen"],options:g}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:f}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:f})}"use strict",b.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",a).provider("$mdDialog",d),a.$inject=["$$rAF","$mdTheming","$mdDialog"],d.$inject=["$$interimElementProvider"]}(),function(){function a(a){return{restrict:"E",link:a}}"use strict",b.module("material.components.divider",["material.core"]).directive("mdDivider",a),a.$inject=["$mdTheming"]}(),function(){"use strict",function(){function a(){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(a,c){var d=a.children(),e=!1;b.forEach(["","data-","x-"],function(a){e=e||(d.attr(a+"ng-repeat")?!0:!1)}),e?d.addClass("md-fab-action-item"):d.wrap('<div class="md-fab-action-item">')}}}"use strict",b.module("material.components.fabActions",["material.core"]).directive("mdFabActions",a)}()}(),function(){"use strict",function(){function a(a,c,d,e,f,g){function j(){h.direction=h.direction||"down",h.isOpen=h.isOpen||!1,n(),c.addClass("md-animations-waiting")}function k(){var d=["click","focusin","focusout"];b.forEach(d,function(a){c.on(a,m)}),a.$on("$destroy",function(){b.forEach(d,function(a){c.off(a,m)}),r()})}function m(a){a.type=="click"&&E(a),a.type=="focusout"&&!l&&(l=g(function(){h.close()},100,!1)),a.type=="focusin"&&l&&(g.cancel(l),l=null)}function n(){h.currentActionIndex=-1}function o(){a.$watch("vm.direction",function(a,b){d.removeClass(c,"md-"+b),d.addClass(c,"md-"+a),n()});var b,e;a.$watch("vm.isOpen",function(a){n();if(!b||!e)b=F(),e=G();a?q():r();var f=a?"md-is-open":"",g=a?"":"md-is-open";b.attr("aria-haspopup",!0),b.attr("aria-expanded",a),e.attr("aria-hidden",!a),d.setClass(c,f,g)})}function p(){c[0].scrollHeight>0?d.addClass(c,"md-animations-ready").then(function(){c.removeClass("md-animations-waiting")}):i<10&&(g(p,100),i+=1)}function q(){c.on("keydown",t),e.nextTick(function(){b.element(document).on("click touchend",s)})}function r(){c.off("keydown",t),b.element(document).off("click touchend",s)}function s(a){if(a.target){var b=e.getClosest(a.target,"md-fab-trigger"),c=e.getClosest(a.target,"md-fab-actions");!b&&!c&&h.close()}}function t(a){switch(a.which){case f.KEY_CODE.ESCAPE:return h.close(),a.preventDefault(),!1;case f.KEY_CODE.LEFT_ARROW:return y(a),!1;case f.KEY_CODE.UP_ARROW:return z(a),!1;case f.KEY_CODE.RIGHT_ARROW:return A(a),!1;case f.KEY_CODE.DOWN_ARROW:return B(a),!1}}function u(a){w(a,-1)}function v(a){w(a,1)}function w(a,c){var d=x();h.currentActionIndex=h.currentActionIndex+c,h.currentActionIndex=Math.min(d.length-1,h.currentActionIndex),h.currentActionIndex=Math.max(0,h.currentActionIndex);var e=b.element(d[h.currentActionIndex]).children()[0];b.element(e).attr("tabindex",0),e.focus(),a.preventDefault(),a.stopImmediatePropagation()}function x(){var a=G()[0].querySelectorAll(".md-fab-action-item");return b.forEach(a,function(a){b.element(b.element(a).children()[0]).attr("tabindex",-1)}),a}function y(a){h.direction==="left"?v(a):u(a)}function z(a){h.direction==="down"?u(a):v(a)}function A(a){h.direction==="left"?u(a):v(a)}function B(a){h.direction==="up"?u(a):v(a)}function C(a){return e.getClosest(a,"md-fab-trigger")}function D(a){return e.getClosest(a,"md-fab-actions")}function E(a){C(a.target)&&h.toggle(),D(a.target)&&h.close()}function F(){return c.find("md-fab-trigger")}function G(){return c.find("md-fab-actions")}var h=this;h.open=function(){a.$evalAsync("vm.isOpen = true")},h.close=function(){a.$evalAsync("vm.isOpen = false"),c.find("md-fab-trigger")[0].focus()},h.toggle=function(){a.$evalAsync("vm.isOpen = !vm.isOpen")},j(),k(),o();var i=0;p();var l}"use strict",b.module("material.components.fabShared",["material.core"]).controller("FabController",a),a.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"]}()}(),function(){"use strict",function(){function d(){function a(a,b){b.prepend('<div class="md-css-variables"></div>')}return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"FabController",controllerAs:"vm",link:a}}function e(d){function e(a){d(a,c,!1)}function f(c){if(c.hasClass("md-animations-waiting")&&!c.hasClass("md-animations-ready"))return;var d=c[0],e=c.controller("mdFabSpeedDial"),f=d.querySelectorAll(".md-fab-action-item"),g=d.querySelector("md-fab-trigger"),h=d.querySelector(".md-css-variables"),i=parseInt(a.getComputedStyle(h).zIndex);b.forEach(f,function(a,b){var c=a.style;c.transform=c.webkitTransform="",c.transitionDelay="",c.opacity=1,c.zIndex=f.length-b+i}),g.style.zIndex=i+f.length+1,e.isOpen||b.forEach(f,function(a,b){var c,d,f=a.style,h=(g.clientHeight-a.clientHeight)/2,i=(g.clientWidth-a.clientWidth)/2;switch(e.direction){case"up":c=a.scrollHeight*(b+1)+h,d="Y";break;case"down":c=-(a.scrollHeight*(b+1)+h),d="Y";break;case"left":c=a.scrollWidth*(b+1)+i,d="X";break;case"right":c=-(a.scrollWidth*(b+1)+i),d="X"}var j="translate"+d+"("+c+"px)";f.transform=f.webkitTransform=j})}return{addClass:function(a,b,c){a.hasClass("md-fling")?(f(a),e(c)):c()},removeClass:function(a,b,c){f(a),e(c)}}}function f(d){function e(a){d(a,c,!1)}function g(c){var d=c[0],e=c.controller("mdFabSpeedDial"),g=d.querySelectorAll(".md-fab-action-item"),h=d.querySelector(".md-css-variables"),i=parseInt(a.getComputedStyle(h).zIndex);b.forEach(g,function(a,b){var c=a.style,d=b*f;c.opacity=e.isOpen?1:0,c.transform=c.webkitTransform=e.isOpen?"scale(1)":"scale(0)",c.transitionDelay=(e.isOpen?d:g.length-d)+"ms",c.zIndex=g.length-b+i})}var f=65;return{addClass:function(a,b,c){g(a),e(c)},removeClass:function(a,b,c){g(a),e(c)}}}"use strict";var c=300;b.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabTrigger","material.components.fabActions"]).directive("mdFabSpeedDial",d).animation(".md-fling",e).animation(".md-scale",f).service("mdFabSpeedDialFlingAnimation",e).service("mdFabSpeedDialScaleAnimation",f),e.$inject=["$timeout"],f.$inject=["$timeout"]}()}(),function(){"use strict",function(){function c(){function a(a,b,c){b.addClass("md-fab-toolbar"),b.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper">  <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"FabController",controllerAs:"vm",link:a}}function d(){function c(c,d,e){if(!d)return;var f=c[0],g=c.controller("mdFabToolbar"),h=f.querySelector(".md-fab-toolbar-background"),i=f.querySelector("md-fab-trigger button"),j=f.querySelector("md-toolbar"),k=f.querySelector("md-fab-trigger button md-icon"),l=c.find("md-fab-actions").children();if(i&&h){var m=a.getComputedStyle(i).getPropertyValue("background-color"),n=f.offsetWidth,o=f.offsetHeight,p=2*(n/i.offsetWidth);h.style.backgroundColor=m,h.style.borderRadius=n+"px",g.isOpen?(j.style.pointerEvents="initial",h.style.width=i.offsetWidth+"px",h.style.height=i.offsetHeight+"px",h.style.transform="scale("+p+")",h.style.transitionDelay="0ms",k&&(k.style.transitionDelay=".3s"),b.forEach(l,function(a,b){a.style.transitionDelay=(l.length-b)*25+"ms"})):(j.style.pointerEvents="none",h.style.transform="scale(1)",h.style.top="0",c.hasClass("md-right")&&(h.style.left="0",h.style.right=null),c.hasClass("md-left")&&(h.style.right="0",h.style.left=null),h.style.transitionDelay="200ms",k&&(k.style.transitionDelay="0ms"),b.forEach(l,function(a,b){a.style.transitionDelay=200+b*25+"ms"}))}}return{addClass:function(a,b,d){c(a,b,d),d()},removeClass:function(a,b,d){c(a,b,d),d()}}}"use strict",b.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabTrigger","material.components.fabActions"]).directive("mdFabToolbar",c).animation(".md-fab-toolbar",d).service("mdFabToolbarAnimation",d)}()}(),function(){"use strict",function(){function a(){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"]}}"use strict",b.module("material.components.fabTrigger",["material.core"]).directive("mdFabTrigger",a)}()}(),function(){function a(a,d,e,f){function g(c,g,h,i){function l(){for(var a in d.MEDIA)f(a),f.getQuery(d.MEDIA[a]).addListener(j);return f.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],h,n)}function m(){i.layoutDelegate=b.noop,k();for(var a in d.MEDIA)f.getQuery(d.MEDIA[a]).removeListener(j)}function n(a){a==null?i.invalidateLayout():f(a)&&i.invalidateLayout()}function p(a){var d=y(),f={tileSpans:z(d),colCount:A(),rowMode:D(),rowHeight:C(),gutter:B()};if(!a&&b.equals(f,o))return;var h=e(f.colCount,f.tileSpans,d).map(function(a,c){return{grid:{element:g,style:x(f.colCount,c,f.gutter,f.rowMode,f.rowHeight)},tiles:a.map(function(a,e){return{element:b.element(d[e]),style:w(a.position,a.spans,f.colCount,c,f.gutter,f.rowMode,f.rowHeight)}})}}).reflow().performance();c.mdOnLayout({$event:{performance:h}}),o=f}function s(a){return q+a+r}function w(a,b,c,d,e,f,g){var h=1/c*100,i=(c-1)/c,j=t({share:h,gutterShare:i,gutter:e}),k={left:u({unit:j,offset:a.col,gutter:e}),width:v({unit:j,span:b.col,gutter:e}),paddingTop:"",marginTop:"",top:"",height:""};switch(f){case"fixed":k.top=u({unit:g,offset:a.row,gutter:e}),k.height=v({unit:g,span:b.row,gutter:e});break;case"ratio":var l=h/g,m=t({share:l,gutterShare:i,gutter:e});k.paddingTop=v({unit:m,span:b.row,gutter:e}),k.marginTop=u({unit:m,offset:a.row,gutter:e});break;case"fit":var n=(d-1)/d,l=1/d*100,m=t({share:l,gutterShare:n,gutter:e});k.top=u({unit:m,offset:a.row,gutter:e}),k.height=v({unit:m,span:b.row,gutter:e})}return k}function x(a,b,c,d,e){var f={};switch(d){case"fixed":f.height=v({unit:e,span:b,gutter:c}),f.paddingBottom="";break;case"ratio":var g=a===1?0:(a-1)/a,h=1/a*100,i=h*(1/e),j=t({share:i,gutterShare:g,gutter:c});f.height="",f.paddingBottom=v({unit:j,span:b,gutter:c});break;case"fit":}return f}function y(){return[].filter.call(g.children(),function(a){return a.tagName=="MD-GRID-TILE"&&!a.$$mdDestroyed})}function z(a){return[].map.call(a,function(a){var c=b.element(a).controller("mdGridTile");return{row:parseInt(f.getResponsiveAttribute(c.$attrs,"md-rowspan"),10)||1,col:parseInt(f.getResponsiveAttribute(c.$attrs,"md-colspan"),10)||1}})}function A(){var a=parseInt(f.getResponsiveAttribute(h,"md-cols"),10);if(isNaN(a))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return a}function B(){return E(f.getResponsiveAttribute(h,"md-gutter")||1)}function C(){var a=f.getResponsiveAttribute(h,"md-row-height");switch(D()){case"fixed":return E(a);case"ratio":var b=a.split(":");return parseFloat(b[0])/parseFloat(b[1]);case"fit":return 0}}function D(){var a=f.getResponsiveAttribute(h,"md-row-height");return a=="fit"?"fit":a.indexOf(":")!==-1?"ratio":"fixed"}function E(a){return/\D$/.test(a)?a:a+"px"}g.attr("role","list"),i.layoutDelegate=p;var j=b.bind(i,i.invalidateLayout),k=l();c.$on("$destroy",m);var o,q=a.startSymbol(),r=a.endSymbol(),t=a(s("share")+"% - ("+s("gutter")+" * "+s("gutterShare")+")"),u=a("calc(("+s("unit")+" + "+s("gutter")+") * "+s("offset")+")"),v=a("calc(("+s("unit")+") * "+s("span")+" + ("+s("span")+" - 1) * "+s("gutter")+")")}return{restrict:"E",controller:c,scope:{mdOnLayout:"&"},link:g}}function c(a){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=a.nextTick,this.layoutDelegate=b.noop}function d(a){function d(b,d){var e,g,h,i,j,k;return i=a.time(function(){g=f(b,d)}),e={layoutInfo:function(){return g},map:function(b){return j=a.time(function(){var a=e.layoutInfo();h=b(a.positioning,a.rowCount)}),e},reflow:function(b){return k=a.time(function(){var a=b||c;a(h.grid,h.tiles)}),e},performance:function(){return{tileCount:d.length,layoutTime:i,mapTime:j,reflowTime:k,totalTime:i+j+k}}}}function e(a,b){a.element.css(a.style),b.forEach(function(a){a.element.css(a.style)})}function f(a,b){function f(b,f){if(b.col>a)throw"md-grid-list: Tile at position "+f+" has a colspan "+"("+b.col+") that exceeds the column count "+"("+a+")";var j=0,k=0;while(k-j<b.col){if(c>=a){g();continue}j=e.indexOf(0,c);if(j===-1||(k=i(j+1))===-1){j=k=0,g();continue}c=k+1}return h(j,b.col,b.row),c=j+b.col,{col:j,row:d}}function g(){c=0,d++,h(0,a,-1)}function h(a,b,c){for(var d=a;d<a+b;d++)e[d]=Math.max(e[d]+c,0)}function i(a){var b;for(b=a;b<e.length;b++)if(e[b]!==0)return b;if(b===e.length)return b}function j(){var b=[];for(var c=0;c<a;c++)b.push(0);return b}var c=0,d=0,e=j();return{positioning:b.map(function(a,b){return{spans:a,position:f(a,b)}}),rowCount:d+Math.max.apply(Math,e)}}var c=e;return d.animateWith=function(a){c=b.isFunction(a)?a:e},d}function e(a){function c(c,d,e,f){d.attr("role","listitem");var g=a.watchResponsiveAttributes(["md-colspan","md-rowspan"],e,b.bind(f,f.invalidateLayout));f.invalidateTiles(),c.$on("$destroy",function(){d[0].$$mdDestroyed=!0,g(),f.invalidateLayout()}),b.isDefined(c.$parent.$index)&&c.$watch(function(){return c.$parent.$index},function(a,b){if(a===b)return;f.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(a){this.$attrs=a}],link:c}}function f(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}"use strict",b.module("material.components.gridList",["material.core"]).directive("mdGridList",a).directive("mdGridTile",e).directive("mdGridTileFooter",f).directive("mdGridTileHeader",f).factory("$mdGridLayout",d),a.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],c.$inject=["$mdUtil"],c.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){if(this.layoutInvalidated)return;this.layoutInvalidated=!0,this.$timeout_(b.bind(this,this.layout))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}},d.$inject=["$mdUtil"],e.$inject=["$mdMedia"]}(),function(){"use strict",b.module("material.components.icon",["material.core"])}(),function(){function c(a,b){function c(b,c){a(c);var d=c.find("md-icon"),e=d.length?d:c[0].getElementsByClassName("md-icon");if(e.length==1){var f=e[0].nextElementSibling,g=e[0].previousElementSibling;c.addClass(f&&f.tagName==="INPUT"?"md-icon-left":g&&g.tagName==="INPUT"?"md-icon-right":"")}else e.length==2&&c.addClass("md-icon-left md-icon-right")}function d(a,c,d,e){var f=this;f.isErrorGetter=d.mdIsError&&b(d.mdIsError),f.delegateClick=function(){f.input.focus()},f.element=c,f.setFocused=function(a){c.toggleClass("md-input-focused",!!a)},f.setHasValue=function(a){c.toggleClass("md-input-has-value",!!a)},f.setHasPlaceholder=function(a){c.toggleClass("md-input-has-placeholder",!!a)},f.setInvalid=function(a){a?e.addClass(c,"md-input-invalid"):e.removeClass(c,"md-input-invalid")},a.$watch(function(){return f.label&&f.input},function(a){a&&!f.label.attr("for")&&f.label.attr("for",f.input.attr("id"))})}return d.$inject=["$scope","$element","$attrs","$animate"],{restrict:"E",link:c,controller:d}}function d(){return{restrict:"E",require:"^?mdInputContainer",link:function(a,b,c,d){if(!d||c.mdNoFloat||b.hasClass("md-container-ignore"))return;d.label=b,a.$on("$destroy",function(){d.label=null})}}}function e(a,c,d){function e(e,f,g,h){function p(a){return i.setHasValue(!k.$isEmpty(a)),a}function q(){i.setHasValue(f.val().length>0||(f[0].validity||{}).badInput)}function r(){function m(a){return l(),a}function n(){g.style.height=g.offsetHeight+"px",f.addClass("md-no-flex");if(isNaN(h)){d.style.height="auto",d.scrollTop=0;var a=o();a&&(d.style.height=a+"px")}else{d.setAttribute("rows",1),j||(d.style.minHeight="0",j=f.prop("clientHeight"),d.style.minHeight=null);var b=Math.min(h,Math.round(d.scrollHeight/j));d.setAttribute("rows",b),d.style.height=j*b+"px"}f.removeClass("md-no-flex"),g.style.height="auto"}function o(){var a=d.scrollHeight-d.offsetHeight;return d.offsetHeight+(a>0?a:0)}function p(a){d.scrollTop=0;var b=d.scrollHeight-d.offsetHeight,c=d.offsetHeight+b;d.style.height=c+"px"}if(b.isDefined(f.attr("md-no-autogrow")))return;var d=f[0],g=i.element[0],h=NaN,j=null;d.hasAttribute("rows")&&(h=parseInt(d.getAttribute("rows")));var l=a.debounce(n,1);k?(k.$formatters.push(m),k.$viewChangeListeners.push(m)):l(),f.on("keydown input",l),isNaN(h)&&(f.attr("rows","1"),f.on("scroll",p)),b.element(c).on("resize",l),e.$on("$destroy",function(){b.element(c).off("resize",l)});if(b.isDefined(f.attr("md-detect-hidden"))){var q=function(){var a=!1;return function(){var b=d.offsetHeight===0;b===!1&&a===!0&&n(),a=b}}();e.$watch(function(){return a.nextTick(q,!1),!0})}}var i=h[0],j=!!h[1],k=h[1]||a.fakeNgModel(),l=b.isDefined(g.readonly);if(!i)return;if(i.input)throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!");i.input=f;var m=b.element('<div class="md-errors-spacer">');f.parent().append(m),i.label||d.expect(f,"aria-label",f.attr("placeholder")),f.addClass("md-input"),f.attr("id")||f.attr("id","input_"+a.nextUid()),f[0].tagName.toLowerCase()==="textarea"&&r(),j||q();var n=i.isErrorGetter||function(){return k.$invalid&&(k.$touched||o())},o=function(){var c=a.getClosest(f,"form"),d=c?b.element(c).controller("form"):null;return d?d.$submitted:!1};e.$watch(n,i.setInvalid),k.$parsers.push(p),k.$formatters.push(p),f.on("input",q),l||f.on("focus",function(a){i.setFocused(!0)}).on("blur",function(a){i.setFocused(!1),q()}),e.$on("$destroy",function(){i.setFocused(!1),i.setHasValue(!1),i.input=null})}return{restrict:"E",require:["^?mdInputContainer","?ngModel"],link:e}}function f(a,c){function d(d,e,f,g){function m(a){return k.parent?(k.text(String(e.val()||a||"").length+"/"+h),a):a}var h,i=g[0],j=g[1],k,l;c.nextTick(function(){l=b.element(j.element[0].querySelector(".md-errors-spacer")),k=b.element('<div class="md-char-counter">'),l.append(k),f.$set("ngTrim","false"),i.$formatters.push(m),i.$viewChangeListeners.push(m),e.on("input keydown keyup",function(){m()}),d.$watch(f.mdMaxlength,function(c){h=c,b.isNumber(c)&&c>0?(k.parent().length||a.enter(k,l),m()):a.leave(k)}),i.$validators["md-maxlength"]=function(a,c){return!b.isNumber(h)||h<0?!0:(a||e.val()||c||"").length<=h}})}return{restrict:"A",require:["ngModel","^mdInputContainer"],link:d}}function g(a){function c(a,c,d,e){if(!e)return;var f=e.element.find("label"),g=b.isDefined(e.element.attr("md-no-float"));if(f&&f.length||g){e.setHasPlaceholder(!0);return}var h=d.placeholder;c.removeAttr("placeholder");if(e.input&&e.input[0].nodeName!="MD-SELECT"){var i='<label ng-click="delegateClick()">'+h+"</label>";e.element.addClass("md-icon-float"),e.element.prepend(i)}}return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:c}}function i(){function a(a,c,d,e){if(!e)return;c.toggleClass("md-input-messages-animation",!0),c.toggleClass("md-auto-hide",!0),(d.mdAutoHide=="false"||b(d))&&c.toggleClass("md-auto-hide",!1)}function b(a){return h.some(function(b){return a[b]})}return{restrict:"EA",link:a,require:"^^?mdInputContainer"}}function j(a){function b(b){var c=a.getClosest(b,"md-input-container");if(!c)return;return b.toggleClass("md-input-message-animation",!0),{}}return{restrict:"EA",compile:b,priority:100}}function k(a,b){return{addClass:function(c,d,e){var f=s(c);d=="md-input-invalid"&&f.hasClass("md-auto-hide")?n(c,b,a).finally(e):e()}}}function l(a,b){return{enter:function(c,d){n(c,b,a).finally(d)},leave:function(c,d){o(c,b,a).finally(d)},addClass:function(c,d,e){d=="ng-hide"?o(c,b,a).finally(e):e()},removeClass:function(c,d,e){d=="ng-hide"?n(c,b,a).finally(e):e()}}}function m(a){return{enter:function(b,c){var d=s(b);if(d.hasClass("md-auto-hide")){c();return}return p(b,a)},leave:function(b,c){return q(b,a)}}}function n(a,c,d){var e=[],f,g=s(a);return b.forEach(g.children(),function(a){f=p(b.element(a),c),e.push(f.start())}),d.all(e)}function o(a,c,d){var e=[],f,g=s(a);return b.forEach(g.children(),function(a){f=q(b.element(a),c),e.push(f.start())}),d.all(e)}function p(a,b){var c=a[0].offsetHeight;return b(a,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-c+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function q(b,c){var d=b[0].offsetHeight,e=a.getComputedStyle(b[0]);return e.opacity==0?c(b,{}):c(b,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-d+"px"},duration:.3})}function r(a){var b=a.controller("mdInputContainer");return b.element}function s(a){var c=r(a),d="ng-messages,data-ng-messages,x-ng-messages,[ng-messages],[data-ng-messages],[x-ng-messages]";return b.element(c[0].querySelector(d))}"use strict",b.module("material.components.input",["material.core"]).directive("mdInputContainer",c).directive("label",d).directive("input",e).directive("textarea",e).directive("mdMaxlength",f).directive("placeholder",g).directive("ngMessages",i).directive("ngMessage",j).directive("ngMessageExp",j).animation(".md-input-invalid",k).animation(".md-input-messages-animation",l).animation(".md-input-message-animation",m),c.$inject=["$mdTheming","$parse"],e.$inject=["$mdUtil","$window","$mdAria"],f.$inject=["$animate","$mdUtil"],g.$inject=["$log"];var h=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"];j.$inject=["$mdUtil"],k.$inject=["$q","$animateCss"],l.$inject=["$q","$animateCss"],m.$inject=["$animateCss"]}(),function(){function a(a){return{restrict:"E",compile:function(b){return b[0].setAttribute("role","list"),a}}}function c(a,c,d,e){var f=["md-checkbox","md-switch"];return{restrict:"E",controller:"MdListController",compile:function(g,h){function n(){var a=["md-switch","md-checkbox"],b;for(var c=0,d;d=a[c];++c)if(b=g.find(d)[0])if(!b.hasAttribute("aria-label")){var e=g.find("p")[0];if(!e)return;b.setAttribute("aria-label","Toggle "+e.textContent)}}function o(a){var c;a=="div"?(c=b.element('<div class="md-no-style md-list-item-inner">'),c.append(g.contents()),g.addClass("md-proxy-focus")):(c=b.element('<md-button class="md-no-style"><div class="md-list-item-inner"></div></md-button>'),q(g[0],c[0]),c.children().eq(0).append(g.contents())),g[0].setAttribute("tabindex","-1"),g.append(c)}function p(){if(i&&!s(i)&&i.hasAttribute("ng-click")){a.expect(i,"aria-label");var c=b.element('<md-button class="md-secondary-container md-icon-button">');q(i,c[0]),i.setAttribute("tabindex","-1"),i.classList.remove("md-secondary"),c.append(i),i=c[0]}i&&(i.hasAttribute("ng-click")||h.ngClick&&r(i))&&(g.addClass("md-with-secondary"),g.append(i))}function q(a,c){var d=["ng-if","ng-click","aria-label","ng-disabled","ui-sref","href","ng-href","ng-attr-ui-sref"];b.forEach(d,function(b){a.hasAttribute(b)&&(c.setAttribute(b,a.getAttribute(b)),a.removeAttribute(b))})}function r(a){return f.indexOf(a.nodeName.toLowerCase())!=-1}function s(a){var b=a.nodeName.toUpperCase();return b=="MD-BUTTON"||b=="BUTTON"}function t(a,g,h,i){function m(a){var b=a.attributes;for(var c=0;c<b.length;c++)if(h.$normalize(b[c].name)==="ngClick")return!0;return!1}function n(){var a=g.children();a.length&&!a[0].hasAttribute("ng-click")&&b.forEach(f,function(a){b.forEach(k.querySelectorAll(a),function(a){j.push(a)})})}function o(){if(j.length==1||l)g.addClass("md-clickable"),l||i.attachRipple(a,b.element(g[0].querySelector(".md-no-style")))}var j=[],k=g[0].firstElementChild,l=k&&m(k);n(),o(),g.hasClass("md-proxy-focus")&&j.length&&b.forEach(j,function(c){c=b.element(c),a.mouseActive=!1,c.on("mousedown",function(){a.mouseActive=!0,e(function(){a.mouseActive=!1},100)}).on("focus",function(){a.mouseActive===!1&&g.addClass("md-focused"),c.on("blur",function b(){g.removeClass("md-focused"),c.off("blur",b)})})}),!l&&!j.length&&k&&k.addEventListener("keypress",function(a){if(a.target.nodeName!="INPUT"&&a.target.nodeName!="TEXTAREA"){var b=a.which||a.keyCode;b==c.KEY_CODE.SPACE&&k&&(k.click(),a.preventDefault(),a.stopPropagation())}}),g.off("click"),g.off("keypress"),j.length==1&&k&&g.children().eq(0).on("click",function(a){var c=d.getClosest(a.target,"BUTTON");!c&&k.contains(a.target)&&b.forEach(j,function(c){a.target!==c&&!c.contains(a.target)&&b.element(c).triggerHandler("click")})})}var i=g[0].querySelector(".md-secondary"),j,k;g[0].setAttribute("role","listitem");if(h.ngClick||h.ngHref||h.href||h.uiSref||h.ngAttrUiSref)o("button");else{for(var l=0,m;m=f[l];++l)if(k=g[0].querySelector(m)){j=!0;break}j?o("div"):g[0].querySelector("md-button:not(.md-secondary):not(.md-exclude)")||g.addClass("md-no-proxy")}return p(),n(),t}}}function d(a,b,c){function e(a,b){var d={};c.attach(a,b,d)}var d=this;d.attachRipple=e}"use strict",b.module("material.components.list",["material.core"]).controller("MdListController",d).directive("mdList",a).directive("mdListItem",c),a.$inject=["$mdTheming"],c.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],d.$inject=["$scope","$element","$mdListInkRipple"]}(),function(){"use strict",b.module("material.components.menu",["material.core","material.components.backdrop"])}(),function(){"use strict",b.module("material.components.menuBar",["material.core","material.components.menu"])}(),function(){function a(a,d,e){function j(a){return a.attr("aria-valuemin",0),a.attr("aria-valuemax",100),a.attr("role","progressbar"),k}function k(j,k,n){function s(){n.$observe("value",function(a){var b=l(a);k.attr("aria-valuenow",b),A()==h&&y(b)}),n.$observe("mdMode",function(a){switch(a){case h:case i:p.removeClass("ng-hide"),q&&p.removeClass(q),p.addClass(q="md-mode-"+a);break;default:q&&p.removeClass(q),p.addClass("ng-hide"),q=c}})}function t(){o.css({width:100*z()+"px",height:100*z()+"px"}),o.children().eq(0).css(r({transform:d.supplant("translate(-50%, -50%) scale( {0} )",[z()])}))}function u(){if(b.isUndefined(n.mdMode)){var a=b.isDefined(n.value),c=a?h:i,f="Auto-adding the missing md-mode='{0}' to the ProgressCircular element";e.debug(d.supplant(f,[c])),k.attr("md-mode",c),n.mdMode=c}}function y(a){if(!A())return;v=v||b.element(k[0].querySelector(".md-left > .md-half-circle")),w=w||b.element(k[0].querySelector(".md-right > .md-half-circle")),x=x||b.element(k[0].querySelector(".md-gap"));var c=m({borderBottomColor:a<=50?"transparent !important":"",transition:a<=50?"":"borderBottomColor 0.1s linear"}),e=m({transition:a<=50?"transform 0.1s linear":"",transform:d.supplant("rotate({0}deg)",[a<=50?135:(a-50)/50*180+135])}),f=m({transition:a>=50?"transform 0.1s linear":"",transform:d.supplant("rotate({0}deg)",[a>=50?45:a/50*180-135])});v.css(r(e)),w.css(r(f)),x.css(r(c))}function z(){if(!n.mdDiameter)return g;var a=/([0-9]*)%/.exec(n.mdDiameter),b=Math.max(0,a&&a[1]/100||parseFloat(n.mdDiameter));return b>1?b/f:b}function A(){var a=(n.mdMode||"").trim();if(a)switch(a){case h:case i:break;default:a=c}return a}a(k);var o=k,p=b.element(k.children()[0]),q,r=d.dom.animator.toCss;k.attr("md-mode",A()),t(),u(),s();var v,w,x}function l(a){return Math.max(0,Math.min(a||0,100))}function m(a){for(var b in a)a.hasOwnProperty(b)&&a[b]==""&&delete a[b];return a}var f=100,g=.5,h="determinate",i="indeterminate";return{restrict:"E",scope:!0,template:'<div class="md-scale-wrapper"><div class="md-spinner-wrapper"><div class="md-inner"><div class="md-gap"></div><div class="md-left"><div class="md-half-circle"></div></div><div class="md-right"><div class="md-half-circle"></div></div></div></div></div>',compile:j}}"use strict",b.module("material.components.progressCircular",["material.core"]).directive("mdProgressCircular",a),a.$inject=["$mdTheming","$mdUtil","$log"]}(),function(){function a(a,d,e){function j(a,b,c){return a.attr("aria-valuemin",0),a.attr("aria-valuemax",100),a.attr("role","progressbar"),k}function k(j,k,m){function s(){m.$observe("value",function(a){var b=l(a);k.attr("aria-valuenow",b),u()!=i&&v(q,b)}),m.$observe("mdBufferValue",function(a){v(p,l(a))}),m.$observe("mdMode",function(a){switch(a){case i:case h:case f:case g:r.removeClass("ng-hide "+n),r.addClass(n="md-mode-"+a);break;default:n&&r.removeClass(n),r.addClass("ng-hide"),n=c}})}function t(){if(b.isUndefined(m.mdMode)){var a=b.isDefined(m.value),c=a?f:g,h="Auto-adding the missing md-mode='{0}' to the ProgressLinear element";e.debug(d.supplant(h,[c])),k.attr("md-mode",c),m.mdMode=c}}function u(){var a=(m.mdMode||"").trim();if(a)switch(a){case f:case g:case h:case i:break;default:a=c}return a}function v(a,c){if(!u())return;var e=d.supplant("translateX({0}%) scale({1},1)",[(c-100)/2,c/100]),f=o({transform:e});b.element(a).css(f)}a(k);var n,o=d.dom.animator.toCss,p=b.element(k[0].querySelector(".md-bar1")),q=b.element(k[0].querySelector(".md-bar2")),r=b.element(k[0].querySelector(".md-container"));k.attr("md-mode",u()),t(),s()}function l(a){return Math.max(0,Math.min(a||0,100))}var f="determinate",g="indeterminate",h="buffer",i="query";return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:j}}"use strict",b.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",a),a.$inject=["$mdTheming","$mdUtil","$log"]}(),function(){function a(a,c,d,e){function f(f,g,h,i){function l(){g.hasClass("md-focused")||g.addClass("md-focused")}function m(d){var e=d.which||d.keyCode;if(e!=c.KEY_CODE.ENTER&&d.currentTarget!=d.target)return;switch(e){case c.KEY_CODE.LEFT_ARROW:case c.KEY_CODE.UP_ARROW:d.preventDefault(),j.selectPrevious(),l();break;case c.KEY_CODE.RIGHT_ARROW:case c.KEY_CODE.DOWN_ARROW:d.preventDefault(),j.selectNext(),l();break;case c.KEY_CODE.ENTER:var f=b.element(a.getClosest(g[0],"form"));f.length>0&&f.triggerHandler("submit")}}d(g);var j=i[0],k=i[1]||a.fakeNgModel();j.init(k),f.mouseActive=!1,g.attr({role:"radiogroup",tabIndex:g.attr("tabindex")||"0"}).on("keydown",m).on("mousedown",function(a){f.mouseActive=!0,e(function(){f.mouseActive=!1},100)}).on("focus",function(){f.mouseActive===!1&&j.$element.addClass("md-focused")}).on("blur",function(){j.$element.removeClass("md-focused")})}function g(a){this._radioButtonRenderFns=[],this.$element=a}function h(){return{init:function(a){this._ngModelCtrl=a,this._ngModelCtrl.$render=b.bind(this,this.render)},add:function(a){this._radioButtonRenderFns.push(a)},remove:function(a){var b=this._radioButtonRenderFns.indexOf(a);b!==-1&&this._radioButtonRenderFns.splice(b,1)},render:function(){this._radioButtonRenderFns.forEach(function(a){a()})},setViewValue:function(a,b){this._ngModelCtrl.$setViewValue(a,b),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return i(this.$element,1)},selectPrevious:function(){return i(this.$element,-1)},setActiveDescendant:function(a){this.$element.attr("aria-activedescendant",a)}}}function i(c,d){var e=a.iterator(c[0].querySelectorAll("md-radio-button"),!0);if(e.count()){var f=function(a){return!b.element(a).attr("disabled")},g=c[0].querySelector("md-radio-button.md-checked"),h=e[d<0?"previous":"next"](g,f)||e.first();b.element(h).triggerHandler("click")}}return g.prototype=h(),{restrict:"E",controller:["$element",g],require:["mdRadioGroup","?ngModel"],link:{pre:f}}}function c(a,b,c){function e(e,f,g,h){function j(a){if(!h)throw"RadioGroupController not found.";h.add(l),g.$observe("value",l),f.on("click",k).on("$destroy",function(){h.remove(l)})}function k(a){if(f[0].hasAttribute("disabled"))return;e.$apply(function(){h.setViewValue(g.value,a&&a.type)})}function l(){function b(a){f.parent()[0].nodeName!="MD-RADIO-GROUP"&&f.parent()[a?"addClass":"removeClass"](d)}var a=h.getViewValue()==g.value;if(a===i)return;i=a,f.attr("aria-checked",a),a?(b(!0),f.addClass(d),h.setActiveDescendant(f.attr("id"))):(b(!1),f.removeClass(d))}function m(c,d){function e(){return g.id||"radio_"+b.nextUid()}d.ariaId=e(),c.attr({id:d.ariaId,role:"radio","aria-checked":"false"}),a.expectWithText(c,"aria-label")}var i;c(f),m(f,e),j()}var d="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:e}}"use strict",b.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",a).directive("mdRadioButton",c),a.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],c.$inject=["$mdAria","$mdUtil","$mdTheming"]}(),function(){function e(a,d,e,f,g,h){function i(g,i){var j=b.element("<md-select-value><span></span></md-select-value>");j.append('<span class="md-select-icon" aria-hidden="true"></span>'),j.addClass("md-select-value"),j[0].hasAttribute("id")||j.attr("id","select_value_label_"+d.nextUid()),g.find("md-content").length||g.append(b.element("<md-content>").append(g.contents())),i.mdOnOpen&&(g.find("md-content").prepend(b.element('<div> <md-progress-circular md-mode="{{progressMode}}" ng-hide="$$loadingAsyncDone"></md-progress-circular></div>')),g.find("md-option").attr("ng-show","$$loadingAsyncDone"));if(i.name){var k=b.element('<select class="md-visually-hidden">');k.attr({name:"."+i.name,"ng-model":i.ngModel,"aria-hidden":"true",tabindex:"-1"});var l=g.find("md-option");b.forEach(l,function(a){var c=b.element("<option>"+a.innerHTML+"</option>");a.hasAttribute("ng-value")?c.attr("ng-value",a.getAttribute("ng-value")):a.hasAttribute("value")&&c.attr("value",a.getAttribute("value")),k.append(c)}),g.parent().append(k)}var m=b.isDefined(i.multiple)?"multiple":"",n='<div class="md-select-menu-container" aria-hidden="true"><md-select-menu {0}>{1}</md-select-menu></div>';return n=d.supplant(n,[m,g.html()]),g.empty().append(j),g.append(n),i.tabindex=i.tabindex||"0",function o(g,i,j,k){function A(){var a=i.attr("aria-label")||i.attr("placeholder");!a&&o&&o.label&&(a=o.label.text()),n=a,f.expect(i,"aria-label",a)}function B(){v&&(x=x||v.find("md-select-menu").controller("mdSelectMenu"),p.setLabelText(x.selectedLabels()))}function C(){if(!n)return;var a=x.selectedLabels({mode:"aria"});i.attr("aria-label",a.length?n+": "+a:n)}function G(){o&&o.setHasValue(x.selectedLabels().length>0||(i[0].validity||{}).badInput)}function H(){v=b.element(i[0].querySelector(".md-select-menu-container")),w=g;if(i.attr("md-container-class")){var a=v[0].getAttribute("class")+" "+i.attr("md-container-class");v[0].setAttribute("class",a)}x=v.find("md-select-menu").controller("mdSelectMenu"),x.init(q,j.ngModel),i.on("$destroy",function(){v.remove()})}function I(a){var c=[32,13,38,40];if(c.indexOf(a.keyCode)!=-1)a.preventDefault(),J(a);else if(a.keyCode<=90&&a.keyCode>=31){a.preventDefault();var d=x.optNodeForKeyboardSearch(a);if(!d)return;var e=b.element(d).controller("mdOption");x.isMultiple||x.deselect(Object.keys(x.selected)[0]),x.select(e.hashKey,e.value),x.refreshViewValue()}}function J(){w.isOpen=!0,i.attr("aria-expanded","true"),a.show({scope:w,preserveScope:!0,skipCompile:!0,element:v,target:i[0],selectCtrl:p,preserveElement:!0,hasBackdrop:!0,loadingAsync:j.mdOnOpen?g.$eval(j.mdOnOpen)||!0:!1}).finally(function(){w.isOpen=!1,i.focus(),i.attr("aria-expanded","false"),q.$setTouched()})}var l=!0,m,n,o=k[0],p=k[1],q=k[2],r=k[3],s=i.find("md-select-value"),t=b.isDefined(j.readonly);if(o){var u=o.isErrorGetter||function(){return q.$invalid&&q.$touched};if(o.input)throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");o.input=i,o.label||f.expect(i,"aria-label",i.attr("placeholder")),g.$watch(u,o.setInvalid)}var v,w,x;H(),e(i);if(j.name&&r){var y=i.parent()[0].querySelector('select[name=".'+j.name+'"]');d.nextTick(function(){var a=b.element(y).controller("ngModel");a&&r.$removeControl(a)})}r&&d.nextTick(function(){r.$setPristine()});var z=q.$render;q.$render=function(){z(),B(),C(),G()},j.$observe("placeholder",q.$render),p.setLabelText=function(a){p.setIsPlaceholder(!a);var b=j.placeholder||(o&&o.label?o.label.text():"");a=a||b||"";var c=s.children().eq(0);c.html(a)},p.setIsPlaceholder=function(a){a?(s.addClass("md-select-placeholder"),o&&o.label&&o.label.addClass("md-placeholder")):(s.removeClass("md-select-placeholder"),o&&o.label&&o.label.removeClass("md-placeholder"))},t||(i.on("focus",function(a){o&&o.element.hasClass("md-input-has-value")&&o.setFocused(!0)}),d.nextTick(function(){i.on("blur",function(){l&&(l=!1,q.$setUntouched());if(w.isOpen)return;o&&o.setFocused(!1),G()})})),p.triggerClose=function(){h(j.mdOnClose)(g)},g.$$postDigest(function(){A(),B(),C()}),g.$watch(x.selectedLabels,B);var D;j.$observe("ngMultiple",function(a){D&&D();var b=h(a);D=g.$watch(function(){return b(g)},function(a,b){if(a===c&&b===c)return;a?i.attr("multiple","multiple"):i.removeAttr("multiple"),i.attr("aria-multiselectable",a?"true":"false"),v&&(x.setMultiple(a),z=q.$render,q.$render=function(){z(),B(),C(),G()},q.$render())})}),j.$observe("disabled",function(a){b.isString(a)&&(a=!0);if(m!==c&&m===a)return;m=a,a?(i.attr({tabindex:-1,"aria-disabled":"true"}),i.off("click",J),i.off("keydown",I)):(i.attr({tabindex:j.tabindex,"aria-disabled":"false"}),i.on("click",J),i.on("keydown",I))}),!j.disabled&&!j.ngDisabled&&(i.attr({tabindex:j.tabindex,"aria-disabled":"false"}),i.on("click",J),i.on("keydown",I));var E={role:"listbox","aria-expanded":"false","aria-multiselectable":j.multiple!==c&&!j.ngMultiple?"true":"false"};i[0].hasAttribute("id")||(E.id="select_"+d.nextUid());var F="select_container_"+d.nextUid();v.attr("id",F),E["aria-owns"]=F,i.attr(E),g.$on("$destroy",function(){a.destroy().finally(function(){o&&(o.setFocused(!1),o.setHasValue(!1),o.input=null),q.$setTouched()})})}}return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:i,controller:function(){}}}function f(a,e,f){function g(a,c,d,g){function i(a){(a.keyCode==13||a.keyCode==32)&&j(a)}function j(c){var d=e.getClosest(c.target,"md-option"),f=d&&b.element(d).data("$mdOptionController");if(!d||!f)return;if(d.hasAttribute("disabled"))return c.stopImmediatePropagation(),!1;var g=h.hashGetter(f.value),i=b.isDefined(h.selected[g]);a.$apply(function(){h.isMultiple?i?h.deselect(g):h.select(g,f.value):i||(h.deselect(Object.keys(h.selected)[0]),h.select(g,f.value)),h.refreshViewValue()})}var h=g[0];f(c),c.on("click",j),c.on("keypress",i)}function h(f,g,h){function q(){var a=i.ngModel.$modelValue||i.ngModel.$viewValue||[];if(!b.isArray(a))return;var c=Object.keys(i.selected),d=a.map(i.hashGetter),e=c.filter(function(a){return d.indexOf(a)===-1});e.forEach(i.deselect),d.forEach(function(b,c){i.select(b,a[c])})}function r(){var a=i.ngModel.$viewValue||i.ngModel.$modelValue;Object.keys(i.selected).forEach(i.deselect),i.select(i.hashGetter(a),a)}var i=this;i.isMultiple=b.isDefined(g.multiple),i.selected={},i.options={},f.$watchCollection(function(){return i.options},function(){i.ngModel.$render()});var j,k;i.setMultiple=function(a){function d(a,c){return b.isArray(a||c||[])}var c=i.ngModel;k=k||c.$isEmpty,i.isMultiple=a,j&&j(),i.isMultiple?(c.$validators["md-multiple"]=d,c.$render=q,f.$watchCollection(i.modelBinding,function(a){d(a)&&q(a),i.ngModel.$setPristine()}),c.$isEmpty=function(a){return!a||a.length===0}):(delete c.$validators["md-multiple"],c.$render=r)};var l="",m,n,o,p=300;i.optNodeForKeyboardSearch=function(a){m&&clearTimeout(m),m=setTimeout(function(){m=c,l="",o=c,n=c},p),l+=String.fromCharCode(a.keyCode);var d=new RegExp("^"+l,"i");n||(n=h.find("md-option"),o=new Array(n.length),b.forEach(n,function(a,b){o[b]=a.textContent.trim()}));for(var e=0;e<o.length;++e)if(d.test(o[e]))return n[e]},i.init=function(c,e){i.ngModel=c,i.modelBinding=e;if(c.$options&&c.$options.trackBy){var g={},h=a(c.$options.trackBy);i.hashGetter=function(a,b){return g.$value=a,h(b||f,g)}}else i.hashGetter=function(a){return b.isObject(a)?"object_"+(a.$$mdSelectId||(a.$$mdSelectId=++d)):a};i.setMultiple(i.isMultiple)},i.selectedLabels=function(a){a=a||{};var b=a.mode||"html",c=e.nodesToArray(h[0].querySelectorAll("md-option[selected]"));if(c.length){var d;return b=="html"?d=function(a){var b=a.innerHTML,c=a.querySelector(".md-ripple-container");return c?b.replace(c.outerHTML,""):b}:b=="aria"&&(d=function(a){return a.hasAttribute("aria-label")?a.getAttribute("aria-label"):a.textContent}),c.map(d).join(", ")}return""},i.select=function(a,b){var c=i.options[a];c&&c.setSelected(!0),i.selected[a]=b},i.deselect=function(a){var b=i.options[a];b&&b.setSelected(!1),delete i.selected[a]},i.addOption=function(a,c){if(b.isDefined(i.options[a]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+c.value+'" found.');i.options[a]=c,b.isDefined(i.selected[a])&&(i.select(a,c.value),i.refreshViewValue())},i.removeOption=function(a){delete i.options[a]},i.refreshViewValue=function(){var a=[],c;for(var d in i.selected)(c=i.options[d])?a.push(c.value):a.push(i.selected[d]);var e=i.ngModel.$options&&i.ngModel.$options.trackBy,f=i.isMultiple?a:a[0],g=i.ngModel.$modelValue;if(e?!b.equals(g,f):g!=f)i.ngModel.$setViewValue(f),i.ngModel.$render()}}return h.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!0,controller:h,link:{pre:g}}}function g(a,c){function d(a,c){return a.append(b.element('<div class="md-text">').append(a.contents())),a.attr("tabindex",c.tabindex||"0"),e}function e(d,e,f,g){function j(a,b,c){if(!i.hashGetter){c||d.$$postDigest(function(){j(a,b,!0)});return}var e=i.hashGetter(b,d),f=i.hashGetter(a,d);h.hashKey=f,h.value=a,i.removeOption(e,h),i.addOption(f,h)}function k(){var a={role:"option","aria-selected":"false"};e[0].hasAttribute("id")||(a.id="select_option_"+c.nextUid()),e.attr(a)}var h=g[0],i=g[1];b.isDefined(f.ngValue)?d.$watch(f.ngValue,j):b.isDefined(f.value)?j(f.value):d.$watch(function(){return e.text()},j),f.$observe("disabled",function(a){a?e.attr("tabindex","-1"):e.attr("tabindex","0")}),d.$$postDigest(function(){f.$observe("selected",function(a){if(!b.isDefined(a))return;typeof a=="string"&&(a=!0),a?(i.isMultiple||i.deselect(Object.keys(i.selected)[0]),i.select(h.hashKey,h.value)):i.deselect(h.hashKey),i.refreshViewValue()})}),a.attach(d,e),k(),d.$on("$destroy",function(){i.removeOption(h.hashKey,h)})}function f(a){this.selected=!1,this.setSelected=function(b){b&&!this.selected?a.attr({selected:"selected","aria-selected":"true"}):!b&&this.selected&&(a.removeAttr("selected"),a.attr("aria-selected","false")),this.selected=b}}return f.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:f,compile:d}}function h(){function a(a,c){var d=a.find("label");d.length||(d=b.element("<label>"),a.prepend(d)),d.addClass("md-container-ignore"),c.label&&d.text(c.label)}return{restrict:"E",compile:a}}function i(d){function e(d,e,j,k,l,m,n,o,p){function s(a,b,c){function d(){return n(b,{addClass:"md-leave"}).start()}function e(){b.removeClass("md-active"),b.attr("aria-hidden","true"),b[0].style.display="none",u(c),!c.$destroy&&c.restoreFocus&&c.target.focus()}return c=c||{},c.cleanupInteraction(),c.cleanupResizing(),c.hideBackdrop(),c.$destroy===!0?e():d().then(e)}function t(a,f,g){function h(a,b,c){return c.parent.append(b),l(function(a,c){try{n(b,{removeClass:"md-leave",duration:0}).start().then(i).then(a)}catch(d){c(d)}})}function i(){return l(function(b){if(g.isRemoved)return l.reject(!1);var c=v(a,f,g);c.container.element.css(r.toCss(c.container.styles)),c.dropDown.element.css(r.toCss(c.dropDown.styles)),m(function(){f.addClass("md-active"),c.dropDown.element.css(r.toCss({transform:""})),t(g.focusedNode),b()})})}function s(a,b,c){return c.disableParentScroll&&!j.getClosest(c.target,"MD-DIALOG")?c.restoreScroll=j.disableScrollAround(c.element,c.parent):c.disableParentScroll=!1,c.hasBackdrop&&(c.backdrop=j.createBackdrop(a,"md-select-backdrop md-click-catcher"),o.enter(c.backdrop,p[0].body,null,{duration:0})),function(){c.backdrop&&c.backdrop.remove(),c.disableParentScroll&&c.restoreScroll(),delete c.restoreScroll}}function t(a){a&&!a.hasAttribute("disabled")&&a.focus()}function u(a,c){var d=f.find("md-select-menu");if(!c.target)throw new Error(j.supplant(q,[c.target]));b.extend(c,{isRemoved:!1,target:b.element(c.target),parent:b.element(c.parent),selectEl:d,contentEl:f.find("md-content"),optionNodes:d[0].getElementsByTagName("md-option")})}function w(){var c=function(a,b,c){return function(){if(c.isRemoved)return;var d=v(a,b,c),e=d.container,f=d.dropDown;e.element.css(r.toCss(e.styles)),f.element.css(r.toCss(f.styles))}}(a,f,g),d=b.element(k);return d.on("resize",c),d.on("orientationchange",c),function(){d.off("resize",c),d.off("orientationchange",c)}}function x(){g.loadingAsync&&!g.isRemoved&&(a.$$loadingAsyncDone=!1,a.progressMode="indeterminate",l.when(g.loadingAsync).then(function(){a.$$loadingAsyncDone=!0,a.progressMode="",delete g.loadingAsync}).then(function(){m(i)}))}function y(){function h(a){a.preventDefault(),a.stopPropagation(),g.restoreFocus=!1,j.nextTick(d.hide,!0)}function i(b){var c=e.KEY_CODE;b.preventDefault(),b.stopPropagation();switch(b.keyCode){case c.UP_ARROW:return m();case c.DOWN_ARROW:return l();case c.SPACE:case c.ENTER:var f=j.getClosest(b.target,"md-option");f&&(a.triggerHandler({type:"click",target:f}),b.preventDefault()),n(b);break;case c.TAB:case c.ESCAPE:b.stopPropagation(),b.preventDefault(),g.restoreFocus=!0,j.nextTick(d.hide,!0);break;default:if(b.keyCode>=31&&b.keyCode<=90){var h=a.controller("mdSelectMenu").optNodeForKeyboardSearch(b);g.focusedNode=h||g.focusedNode,h&&h.focus()}}}function k(a){var b=j.nodesToArray(g.optionNodes),d=b.indexOf(g.focusedNode),e;do d===-1?d=0:a==="next"&&d<b.length-1?d++:a==="prev"&&d>0&&d--,e=b[d],e.hasAttribute("disabled")&&(e=c);while(!e&&d<b.length-1&&d>0);e&&e.focus(),g.focusedNode=e}function l(){k("next")}function m(){k("prev")}function n(c){function f(){var a=!1;if(c&&c.currentTarget.children.length>0){var b=c.currentTarget.children[0],d=b.scrollHeight>b.clientHeight;if(d&&b.children.length>0){var e=c.pageX-c.currentTarget.getBoundingClientRect().left;e>b.querySelector("md-option").offsetWidth&&(a=!0)}}return a}if(c&&c.type=="click"&&c.currentTarget!=a[0])return;if(f())return;var e=j.getClosest(c.target,"md-option");e&&e.hasAttribute&&!e.hasAttribute("disabled")&&(c.preventDefault(),c.stopPropagation(),b.isMultiple||(g.restoreFocus=!0,j.nextTick(function(){d.hide(b.ngModel.$viewValue)},!0)))}if(g.isRemoved)return;var a=g.selectEl,b=a.controller("mdSelectMenu")||{};return f.addClass("md-clickable"),g.backdrop&&g.backdrop.on("click",h),a.on("keydown",i),a.on("click",n),function(){g.backdrop&&g.backdrop.off("click",h),a.off("keydown",i),a.off("click",n),f.removeClass("md-clickable"),g.isRemoved=!0}}return x(),u(a,g),g.hideBackdrop=s(a,f,g),h(a,f,g).then(function(a){return f.attr("aria-hidden","false"),g.alreadyOpen=!0,g.cleanupInteraction=y(),g.cleanupResizing=w(),a},g.hideBackdrop)}function u(a){var b=a.selectCtrl;if(b){var c=a.selectEl.controller("mdSelectMenu");b.setLabelText(c.selectedLabels()),b.triggerClose()}}function v(c,d,e){var l=d[0],m=e.target[0].children[0],n=p[0].body,o=e.selectEl[0],q=e.contentEl[0],r=n.getBoundingClientRect(),s=m.getBoundingClientRect(),t=!1,u={left:r.left+a,top:a,bottom:r.height-a,right:r.width-a-(j.floatingScrollbars()?16:0)},v={top:s.top-u.top,left:s.left-u.left,right:u.right-(s.left+s.width),bottom:u.bottom-(s.top+s.height)},w=r.width-a*2,x=o.querySelector("md-option[selected]"),y=o.getElementsByTagName("md-option"),z=o.getElementsByTagName("md-optgroup"),A=i(d,q),B,C=f(e.loadingAsync);C?B=q.firstElementChild||q:x?B=x:z.length?B=z[0]:y.length?B=y[0]:B=q.firstElementChild||q,q.offsetWidth>w?q.style["max-width"]=w+"px":q.style.maxWidth=null,t&&(q.style["min-width"]=s.width+"px"),A&&o.classList.add("md-overflow");var D=B;(D.tagName||"").toUpperCase()==="MD-OPTGROUP"&&(D=y[0]||q.firstElementChild||q,B=D),e.focusedNode=D,l.style.display="block";var E=o.getBoundingClientRect(),F=h(B);if(B){var G=k.getComputedStyle(B);F.paddingLeft=parseInt(G.paddingLeft,10)||0,F.paddingRight=parseInt(G.paddingRight,10)||0}if(A){var H=q.offsetHeight/2;q.scrollTop=F.top+F.height/2-H,v.top<H?q.scrollTop=Math.min(F.top,q.scrollTop+H-v.top):v.bottom<H&&(q.scrollTop=Math.max(F.top+F.height-E.height,q.scrollTop-H+v.bottom))}var I,J,K,L;t?(I=s.left,J=s.top+s.height,K="50% 0",J+E.height>u.bottom&&(J=s.top-E.height,K="50% 100%")):(I=s.left+F.left-F.paddingLeft+2,J=Math.floor(s.top+s.height/2-F.height/2-F.top+q.scrollTop),K=F.left+s.width/2+"px "+(F.top+F.height/2-q.scrollTop)+"px 0px",L=Math.min(s.width+F.paddingLeft+F.paddingRight,w));var M=l.getBoundingClientRect(),N=Math.round(100*Math.min(s.width/E.width,1))/100,O=Math.round(100*Math.min(s.height/E.height,1))/100;return{container:{element:b.element(l),styles:{left:Math.floor(g(u.left,I,u.right-M.width)),top:Math.floor(g(u.top,J,u.bottom-M.height)),"min-width":L}},dropDown:{element:b.element(o),styles:{transformOrigin:K,transform:e.alreadyOpen?"":j.supplant("scale({0},{1})",[N,O])}}}}var q="$mdSelect.show() expected a target element in options.target but got '{0}'!",r=j.dom.animator;return{parent:"body",themable:!0,onShow:t,onRemove:s,hasBackdrop:!0,disableParentScroll:!0}}function f(a){return a&&b.isFunction(a.then)}function g(a,b,c){return Math.max(a,Math.min(b,c))}function h(a){return a?{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}:{left:0,top:0,width:0,height:0}}function i(a,b){var c=!1;try{var d=a[0].style.display;a[0].style.display="block",c=b.scrollHeight>b.offsetHeight,a[0].style.display=d}finally{}return c}return e.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],d("$mdSelect").setDefaults({methods:["target"],options:e})}"use strict";var a=8,d=0;b.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",e).directive("mdSelectMenu",f).directive("mdOption",g).directive("mdOptgroup",h).provider("$mdSelect",i),e.$inject=["$mdSelect","$mdUtil","$mdTheming","$mdAria","$compile","$parse"],f.$inject=["$parse","$mdUtil","$mdTheming"],g.$inject=["$mdButtonInkRipple","$mdUtil"],i.$inject=["$$interimElementProvider"]}(),function(){function a(a,b){return["$mdUtil",function(c){return{restrict:"A",multiElement:!0,link:function(d,e,f){var g=d.$on("$md-resize-enable",function(){g(),d.$watch(f[a],function(a){!!a===b&&(c.nextTick(function(){d.$broadcast("$md-resize")}),c.dom.animator.waitTransitionEnd(e).then(function(){d.$broadcast("$md-resize")}))})})}}}]}"use strict",b.module("material.components.showHide",["material.core"]).directive("ngShow",a("ngShow",!0)).directive("ngHide",a("ngHide",!1))}(),function(){function a(a,c){return function(d){function h(){return a.when(d).then(function(a){return g=a,a})}var e,f="SideNav '"+d+"' is not available!",g=a.get(d);return g||a.notFoundError(d),e={isOpen:function(){return g&&g.isOpen()},isLockedOpen:function(){return g&&g.isLockedOpen()},toggle:function(){return g?g.toggle():c.reject(f)},open:function(){return g?g.open():c.reject(f)},close:function(){return g?g.close():c.reject(f)},then:function(a){var d=g?c.when(g):h();return d.then(a||b.noop)}}}}function d(){return{restrict:"A",require:"^mdSidenav",link:function(a,b,c,d){}}}function e(a,d,e,f,g,h,i,j,k,l){function m(h,m,n,o){function v(a,b){h.isLockedOpen=a,a===b?m.toggleClass("md-locked-open",!!a):g[a?"addClass":"removeClass"](m,"md-locked-open"),u.toggleClass("md-locked-open",!!a)}function w(a){var b=d.findFocusTarget(m)||d.findFocusTarget(m,"[md-sidenav-focus]")||m,c=m.parent();return c[a?"on":"off"]("keydown",z),u[a?"on":"off"]("click",A),a&&(q=l[0].activeElement),x(a),r=k.all([a?g.enter(u,c):g.leave(u),g[a?"removeClass":"addClass"](m,"md-closed")]).then(function(){h.isOpen&&b&&b.focus()})}function x(a){var d=m.parent();a&&!p?(p=d.css("overflow"),d.css("overflow","hidden")):b.isDefined(p)&&(d.css("overflow",p),p=c)}function y(a){return h.isOpen==a?k.when(!0):k(function(b){h.isOpen=a,d.nextTick(function(){r.then(function(a){h.isOpen||(q&&q.focus(),q=null),b(a)})})})}function z(a){var b=a.keyCode===e.KEY_CODE.ESCAPE;return b?A(a):k.when(!0)}function A(a){return a.preventDefault(),o.close()}var p,q=null,r=k.when(!0),s=i(n.mdIsLockedOpen),t=function(){return s(h.$parent,{$media:function(b){return j.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),a(b)},$mdMedia:a})},u=d.createBackdrop(h,"md-sidenav-backdrop md-opaque ng-enter");f.inherit(u,m),m.on("$destroy",function(){u.remove(),o.destroy()}),h.$on("$destroy",function(){u.remove()}),h.$watch(t,v),h.$watch("isOpen",w),o.$toggleOpen=y}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(a){return a.addClass("md-closed"),a.attr("tabIndex","-1"),m}}}function f(a,b,c,d,e){var f=this;f.isOpen=function(){return!!a.isOpen},f.isLockedOpen=function(){return!!a.isLockedOpen},f.open=function(){return f.$toggleOpen(!0)},f.close=function(){return f.$toggleOpen(!1)},f.toggle=function(){return f.$toggleOpen(!a.isOpen)},f.$toggleOpen=function(b){return e.when(a.isOpen=b)},f.destroy=d.register(f,c.mdComponentId)}"use strict",b.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",a).directive("mdSidenav",e).directive("mdSidenavFocus",d).controller("$mdSidenavController",f),a.$inject=["$mdComponentRegistry","$q"],e.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$animate","$compile","$parse","$log","$q","$document"],f.$inject=["$scope","$element","$attrs","$mdComponentRegistry","$q"]}(),function(){function a(a,c,d,e,f,g,h,i,j){function k(a,b){return a.attr({tabIndex:0,role:"slider"}),d.expect(a,"aria-label"),l}function l(d,k,l,m){function w(){J(),N(),H()}function B(a){y=parseFloat(a),k.attr("aria-valuemin",a),w()}function C(a){z=parseFloat(a),k.attr("aria-valuemax",a),w()}function D(a){A=parseFloat(a),H()}function E(a){k.attr("aria-disabled",!!a)}function H(){if(!b.isDefined(l.mdDiscrete))return;if(b.isUndefined(A))return;if(A<=0){var a="Slider step value must be greater than zero when in discrete mode";throw j.error(a),new Error(a)}var d=Math.floor((z-y)/A);if(!F){F=b.element("<canvas>").css("position","absolute"),t.append(F);var e=c.getComputedStyle(t[0]);G=F[0].getContext("2d"),G.fillStyle=e.backgroundColor||"black"}var f=K();F[0].width=f.width,F[0].height=f.height;var g;for(var h=0;h<=d;h++)g=Math.floor(f.width*(h/d)),G.fillRect(g-1,0,2,f.height)}function J(){I=r[0].getBoundingClientRect()}function K(){return u(),I}function L(a){if(k[0].hasAttribute("disabled"))return;var b;a.keyCode===f.KEY_CODE.LEFT_ARROW?b=-A:a.keyCode===f.KEY_CODE.RIGHT_ARROW&&(b=A);if(b){if(a.metaKey||a.ctrlKey||a.altKey)b*=4;a.preventDefault(),a.stopPropagation(),d.$evalAsync(function(){M(m.$viewValue+b)})}}function M(a){m.$setViewValue(O(P(a)))}function N(){isNaN(m.$viewValue)&&(m.$viewValue=m.$modelValue);var a=(m.$viewValue-y)/(z-y);d.modelValue=m.$viewValue,k.attr("aria-valuenow",m.$viewValue),Q(a),p.text(m.$viewValue)}function O(a){if(b.isNumber(a))return Math.max(y,Math.min(z,a))}function P(a){if(b.isNumber(a)){var c=Math.round((a-y)/A)*A+y;return Math.round(c*1e3)/1e3}}function Q(a){a=_(a);var b=a*100+"%";s.css("width",b),q.css("left",b),k.toggleClass("md-min",a===0),k.toggleClass("md-max",a===1)}function T(a){if(n())return;k.addClass("md-active"),k[0].focus(),J();var b=bb(ba(a.pointer.x)),c=O(P(b));d.$apply(function(){M(c),Q(bc(c))})}function U(a){if(n())return;k.removeClass("md-dragging md-active");var b=bb(ba(a.pointer.x)),c=O(P(b));d.$apply(function(){M(c),N()})}function V(a){if(n())return;R=!0,a.stopPropagation(),k.addClass("md-dragging"),Y(a)}function W(a){if(!R)return;a.stopPropagation(),Y(a)}function X(a){if(!R)return;a.stopPropagation(),R=!1}function Y(a){S?$(a.pointer.x):Z(a.pointer.x)}function Z(a){d.$evalAsync(function(){M(bb(ba(a)))})}function $(a){var b=bb(ba(a)),c=O(P(b));Q(ba(a)),p.text(c)}function _(a){return Math.max(0,Math.min(a||0,1))}function ba(a){return Math.max(0,Math.min(1,(a-I.left)/I.width))}function bb(a){return y+a*(z-y)}function bc(a){return(a-y)/(z-y)}g(k),m=m||{$setViewValue:function(a){this.$viewValue=a,this.$viewChangeListeners.forEach(function(a){a()})},$parsers:[],$formatters:[],$viewChangeListeners:[]};var n=b.noop;l.disabled!=null?n=function(){return!0}:l.ngDisabled&&(n=b.bind(null,i(l.ngDisabled),d.$parent));var o=b.element(k[0].querySelector(".md-thumb")),p=b.element(k[0].querySelector(".md-thumb-text")),q=o.parent(),r=b.element(k[0].querySelector(".md-track-container")),s=b.element(k[0].querySelector(".md-track-fill")),t=b.element(k[0].querySelector(".md-track-ticks")),u=e.throttle(J,5e3);b.isDefined(l.min)?l.$observe("min",B):B(0),b.isDefined(l.max)?l.$observe("max",C):C(100),b.isDefined(l.step)?l.$observe("step",D):D(1);var v=b.noop;l.ngDisabled&&(v=d.$parent.$watch(l.ngDisabled,E)),h.register(k,"drag"),k.on("keydown",L).on("$md.pressdown",T).on("$md.pressup",U).on("$md.dragstart",V).on("$md.drag",W).on("$md.dragend",X),setTimeout(w,0);var x=a.throttle(w);b.element(c).on("resize",x),d.$on("$destroy",function(){b.element(c).off("resize",x),v()}),m.$render=N,m.$viewChangeListeners.push(N),m.$formatters.push(O),m.$formatters.push(P);var y,z,A,F,G,I={};J();var R=!1,S=b.isDefined(l.mdDiscrete)}return{scope:{},require:"?ngModel",template:'<div class="md-slider-wrapper"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div>',compile:k}}"use strict",b.module("material.components.slider",["material.core"]).directive("mdSlider",a),a.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log"]}(),function(){function a(a,d,e,f){function h(a){function i(a,c){c.addClass("md-sticky-clone");var d={element:a,clone:c};return h.items.push(d),f.nextTick(function(){b.prepend(d.clone)}),g(),function(){h.items.forEach(function(b,c){b.element[0]===a[0]&&(h.items.splice(c,1),b.clone.remove())}),g()}}function k(){h.items.forEach(l),h.items=h.items.sort(function(a,b){return a.top<b.top?-1:1});var a,c=b.prop("scrollTop");for(var d=h.items.length-1;d>=0;d--)if(c>h.items[d].top){a=h.items[d];break}n(a)}function l(a){var c=a.element[0];a.top=0,a.left=0;while(c&&c!==b[0])a.top+=c.offsetTop,a.left+=c.offsetLeft,c=c.offsetParent;a.height=a.element.prop("offsetHeight"),a.clone.css("margin-left",a.left+"px"),f.floatingScrollbars()&&a.clone.css("margin-right","0")}function m(){var a=b.prop("scrollTop"),c=a>(m.prevScrollTop||0);m.prevScrollTop=a;if(a===0){n(null);return}if(c){if(h.next&&h.next.top<=a){n(h.next);return}if(h.current&&h.next&&h.next.top-a<=h.next.height){p(h.current,a+(h.next.top-h.next.height-a));return}}if(!c){if(h.current&&h.prev&&a<h.current.top){n(h.prev);return}if(h.next&&h.current&&a>=h.next.top-h.current.height){p(h.current,a+(h.next.top-a-h.current.height));return}}h.current&&p(h.current,a)}function n(a){if(h.current===a)return;h.current&&(p(h.current,null),o(h.current,null)),a&&o(a,"active"),h.current=a;var b=h.items.indexOf(a);h.next=h.items[b+1],h.prev=h.items[b-1],o(h.next,"next"),o(h.prev,"prev")}function o(a,b){if(!a||a.state===b)return;a.state&&(a.clone.attr("sticky-prev-state",a.state),a.element.attr("sticky-prev-state",a.state)),a.clone.attr("sticky-state",b),a.element.attr("sticky-state",b),a.state=b}function p(a,b){if(!a)return;b===null||b===c?a.translateY&&(a.translateY=null,a.clone.css(d.CSS.TRANSFORM,"")):(a.translateY=b,a.clone.css(d.CSS.TRANSFORM,"translate3d("+a.left+"px,"+b+"px,0)"))}var b=a.$element,g=e.throttle(k);j(b),b.on("$scrollstart",g),b.on("$scroll",m);var h;return h={prev:null,current:null,next:null,items:[],add:i,refreshElements:k}}function i(c){var d,e=b.element("<div>");a[0].body.appendChild(e[0]);var f=["sticky","-webkit-sticky"];for(var g=0;g<f.length;++g){e.css({position:f[g],top:0,"z-index":2});if(e.css("position")==f[g]){d=f[g];break}}return e.remove(),d}function j(a){function g(){+f.now()-d>b?(c=!1,a.triggerHandler("$scrollend")):(a.triggerHandler("$scroll"),e.throttle(g))}var b=200,c,d;a.on("scroll touchmove",function(){c||(c=!0,e.throttle(g),a.triggerHandler("$scrollstart")),a.triggerHandler("$scroll"),d=+f.now()})}var g=i();return function(a,b,c){var d=b.controller("mdContent");if(!d)return;if(g)b.css({position:g,top:0,"z-index":2});else{var e=d.$element.data("$$sticky");e||(e=h(d),d.$element.data("$$sticky",e));var f=e.add(b,c||b.clone());a.$on("$destroy",f)}}}"use strict",b.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",a),a.$inject=["$document","$mdConstant","$$rAF","$mdUtil"]}(),function(){function a(a,c,d,e){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader">  <div class="md-subheader-inner">    <span class="md-subheader-content"></span>  </div></div>',link:function f(f,g,h,i,j){function l(a){return b.element(a[0].querySelector(".md-subheader-content"))}d(g);var k=g[0].outerHTML;j(f,function(a){l(g).append(a)}),g.hasClass("md-no-sticky")||j(f,function(b){var d='<div class="md-subheader-wrapper">'+k+"</div>",h=c(d)(f);a(f,g,h),e.nextTick(function(){l(h).append(b)})})}}}"use strict",b.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",a),a.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil"]}(),function(){function a(a){function d(a){function d(d,e,f){var g=a(f[b]);e.on(c,function(a){d.$apply(function(){g(d,{$event:a})})})}return{restrict:"A",link:d}}var b="md"+a,c="$md."+a.toLowerCase();return d.$inject=["$parse"],d}"use strict",b.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",a("SwipeLeft")).directive("mdSwipeRight",a("SwipeRight")).directive("mdSwipeUp",a("SwipeUp")).directive("mdSwipeDown",a("SwipeDown"))}(),function(){function a(a,c,d,e,f,g){function i(a,i){var j=h.compile(a,i);return a.addClass("md-dragging"),function(a,h,i,k){function p(b){if(l&&l(a))return;b.stopPropagation(),h.addClass("md-dragging"),o={width:m.prop("offsetWidth")},h.removeClass("transition")}function q(a){if(!o)return;a.stopPropagation(),a.srcEvent&&a.srcEvent.preventDefault();var b=a.pointer.distanceX/o.width,c=k.$viewValue?1+b:b;c=Math.max(0,Math.min(1,c)),m.css(d.CSS.TRANSFORM,"translate3d("+100*c+"%,0,0)"),o.translate=c}function r(a){if(!o)return;a.stopPropagation(),h.removeClass("md-dragging"),m.css(d.CSS.TRANSFORM,"");var b=k.$viewValue?o.translate>.5:o.translate<.5;b&&s(!k.$viewValue),o=null}function s(b){a.$apply(function(){k.$setViewValue(b),k.$render()})}k=k||c.fakeNgModel();var l=null;i.disabled!=null?l=function(){return!0}:i.ngDisabled&&(l=e(i.ngDisabled));var m=b.element(h[0].querySelector(".md-thumb-container")),n=b.element(h[0].querySelector(".md-container"));f(function(){h.removeClass("md-dragging")}),j(a,h,i,k),l&&a.$watch(l,function(a){h.attr("tabindex",a?-1:0)}),g.register(n,"drag"),n.on("$md.dragstart",p).on("$md.drag",q).on("$md.dragend",r);var o}}var h=a[0];return{restrict:"E",priority:210,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:"?ngModel",compile:i}}"use strict",b.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",a),a.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture"]}(),function(){"use strict",b.module("material.components.tabs",["material.core","material.components.icon"])}(),function(){function a(a){return{restrict:"E",link:function b(b,c,d){b.$on("$destroy",function(){a.destroy()})}}}function c(a){function f(a){d=a}function g(a,c,e,f){function h(b,h,i){d=i.textContent||i.content;var k=!f("gt-sm");return h=e.extractElementByName(h,"md-toast",!0),i.onSwipe=function(a,b){var d=a.type.replace("$md.",""),f=d.replace("swipe","");if(f==="down"&&i.position.indexOf("top")!=-1&&!k||f==="up"&&(i.position.indexOf("bottom")!=-1||k))return;if(f!=="left"&&f!=="right"||!k)h.addClass("md-"+d),e.nextTick(c.cancel);else return},i.openClass=j(i.position),i.parent.addClass(i.openClass),e.hasComputedStyle(i.parent,"position","static")&&i.parent.css("position","relative"),h.on(g,i.onSwipe),h.addClass(k?"md-bottom":i.position.split(" ").map(function(a){return"md-"+a}).join(" ")),i.parent&&i.parent.addClass("md-toast-animating"),a.enter(h,i.parent).then(function(){i.parent&&i.parent.removeClass("md-toast-animating")})}function i(b,c,d){return c.off(g,d.onSwipe),d.parent&&d.parent.addClass("md-toast-animating"),d.openClass&&d.parent.removeClass(d.openClass),(d.$destroy==1?c.remove():a.leave(c)).then(function(){d.parent&&d.parent.removeClass("md-toast-animating"),e.hasComputedStyle(d.parent,"position","static")&&d.parent.css("position","")})}function j(a){return f("gt-sm")?"md-toast-open-"+(a.indexOf("top")>-1?"top":"bottom"):"md-toast-open-bottom"}var g="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:h,onRemove:i,position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(a,c){var d=c.autoWrap&&a&&!/md-toast-content/g.test(a);if(d){var e=b.element(a),f='<div class="md-toast-content">'+e.html()+"</div>";return e.empty().append(f),e[0].outerHTML}return d?'<div class="md-toast-content">'+a+"</div>":a||""}}}var c="ok",d,e=a("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent"],options:g}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","highlightAction","theme","parent"],options:["$mdToast","$mdTheming",function(a,b){var e={template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}">  <div class="md-toast-content">    <span flex role="alert" aria-relevant="all" aria-atomic="true">      {{ toast.content }}    </span>    <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">      {{ toast.action }}    </md-button>  </div></md-toast>',controller:["$scope",function(b){var e=this;b.$watch(function(){return d},function(){e.content=d}),this.resolve=function(){a.hide(c)}}],theme:b.defaultTheme(),controllerAs:"toast",bindToController:!0};return e}]}).addMethod("updateTextContent",f).addMethod("updateContent",f);return g.$inject=["$animate","$mdToast","$mdUtil","$mdMedia"],e}"use strict",b.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",a).provider("$mdToast",c),a.$inject=["$mdToast"],c.$inject=["$$interimElementProvider"]}(),function(){function a(a,c,d,e,f){var g=b.bind(null,d.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(h,i,j){function k(){function r(a){var b=i.parent().find("md-content");!k&&b.length&&s(null,b),a=h.$eval(a),a===!1?l():l=u()}function s(a,b){b&&i.parent()[0]===b.parent()[0]&&(k&&k.off("scroll",p),k=b,l=u())}function t(a){var b=a?a.target.scrollTop:n;q(),m=Math.min(e/o,Math.max(0,m+b-n)),i.css(c.CSS.TRANSFORM,g([-m*o])),k.css(c.CSS.TRANSFORM,g([(e-m)*o])),n=b,d.nextTick(function(){var a=i.hasClass("md-whiteframe-z1");a&&!m?f.removeClass(i,"md-whiteframe-z1"):!a&&m&&f.addClass(i,"md-whiteframe-z1")})}function u(){return k?(k.on("scroll",p),k.attr("scroll-shrink","true"),a(v),function(){k.off("scroll",p),k.attr("scroll-shrink","false"),a(v)}):b.noop}function v(){e=i.prop("offsetHeight");var a=-e*o+"px";k.css({"margin-top":a,"margin-bottom":a}),t()}var e,k,l=b.noop,m=0,n=0,o=j.mdShrinkSpeedFactor||.5,p=a.throttle(t),q=d.debounce(v,5e3);h.$on("$mdContentLoaded",s),j.$observe("mdScrollShrink",r),j.ngShow&&h.$watch(j.ngShow,v),j.ngHide&&h.$watch(j.ngHide,v),h.$on("$destroy",l)}e(i),b.isDefined(j.mdScrollShrink)&&k()}}}"use strict",b.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",a),a.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"]}(),function(){function a(a,c,d,e,f,g,h,i,j){function m(h,m,n){function s(){b.isDefined(n.mdDelay)||(h.delay=k)}function t(){var a="center top";switch(h.direction){case"left":a="right center";break;case"right":a="left center";break;case"top":a="center bottom";break;case"bottom":a="center top"}p.css("transform-origin",a)}function u(){h.$on("$destroy",function(){h.visible=!1,m.remove(),b.element(c).off("resize",r)}),h.$watch("visible",function(a){a?z():A()}),h.$watch("direction",B)}function v(){!o.attr("aria-label")&&!o.text().trim()&&o.attr("aria-label",m.text().trim())}function w(){m.detach(),m.attr("role","tooltip")}function x(){function j(){y(!1)}var a=!1,d=b.element(c);if(o[0]&&"MutationObserver"in c){var f=new MutationObserver(function(a){a.forEach(function(a){a.attributeName==="disabled"&&o[0].disabled&&(y(!1),h.$digest())})});f.observe(o[0],{attributes:!0})}var g=function(){i=document.activeElement===o[0]},i=!1;d.on("blur",g),d.on("resize",r),document.addEventListener("scroll",j,!0),h.$on("$destroy",function(){d.off("blur",g),d.off("resize",r),document.removeEventListener("scroll",j,!0),f&&f.disconnect()});var k=function(a){if(a.type==="focus"&&i){i=!1;return}o.on("blur mouseleave touchend touchcancel",l),y(!0)},l=function(){var b=h.hasOwnProperty("autohide")?h.autohide:n.hasOwnProperty("mdAutohide");if(b||a||e[0].activeElement!==o[0])o.off("blur mouseleave touchend touchcancel",l),o.triggerHandler("blur"),y(!1);a=!1};o.on("mousedown",function(){a=!0}),o.on("focus mouseenter touchstart",k)}function y(b){y.value=!!b,y.queued||(b?(y.queued=!0,a(function(){h.visible=y.value,y.queued=!1},h.delay)):f.nextTick(function(){h.visible=!1}))}function z(){q.append(m);if(f.hasComputedStyle(m,"display","none")){h.visible=!1,m.detach();return}B(),b.forEach([m,p],function(a){i.addClass(a,"md-show")})}function A(){var a=[];b.forEach([m,p],function(b){b.parent()&&b.hasClass("md-show")&&a.push(i.removeClass(b,"md-show"))}),j.all(a).then(function(){h.visible||m.detach()})}function B(){if(!h.visible)return;t(),C()}function C(){function e(b){var c={left:b.left,top:b.top};return c.left=Math.min(c.left,q.prop("scrollWidth")-a.width-l),c.left=Math.max(c.left,l),c.top=Math.min(c.top,q.prop("scrollHeight")-a.height-l),c.top=Math.max(c.top,l),c}function g(c){return c==="left"?{left:b.left-a.width-l,top:b.top+b.height/2-a.height/2}:c==="right"?{left:b.left+b.width+l,top:b.top+b.height/2-a.height/2}:c==="top"?{left:b.left+b.width/2-a.width/2,top:b.top-a.height-l}:{left:b.left+b.width/2-a.width/2,top:b.top+b.height+l}}var a=f.offsetRect(m,q),b=f.offsetRect(o,q),c=g(h.direction),d=m.prop("offsetParent");h.direction?c=e(c):d&&c.top>d.scrollHeight-a.height-l&&(c=e(g("top"))),m.css({left:c.left+"px",top:c.top+"px"})}g(m);var o=f.getParentWithPointerEvents(m),p=b.element(m[0].getElementsByClassName("md-content")[0]),q=b.element(document.body),r=d.throttle(function(){B()});i.pin&&i.pin(m,o),s(),w(),x(),t(),u(),v()}var k=0,l=8;return{restrict:"E",transclude:!0,priority:210,template:'<div class="md-content" ng-transclude></div>',scope:{delay:"=?mdDelay",visible:"=?mdVisible",autohide:"=?mdAutohide",direction:"@?mdDirection"},link:m}}"use strict",b.module("material.components.tooltip",["material.core"]).directive("mdTooltip",a),a.$inject=["$timeout","$window","$$rAF","$document","$mdUtil","$mdTheming","$rootElement","$animate","$q"]}(),function(){function a(){return{controller:f,template:c,compile:function a(a,b){a.addClass("md-virtual-repeat-container").addClass(b.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}function c(a){return'<div class="md-virtual-repeat-scroller"><div class="md-virtual-repeat-sizer"></div><div class="md-virtual-repeat-offsetter">'+a[0].innerHTML+"</div></div>"}function f(a,c,d,e,f,g,h,i){this.$rootScope=e,this.$scope=g,this.$element=h,this.$attrs=i,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.$attrs.mdTopIndex?(this.bindTopIndex=d(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),b.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,b.bind(this,function(a){a!==this.topIndex&&this.scrollToIndex(a)}))):this.topIndex=0,this.scroller=h[0].getElementsByClassName("md-virtual-repeat-scroller")[0],this.sizer=this.scroller.getElementsByClassName("md-virtual-repeat-sizer")[0],this.offsetter=this.scroller.getElementsByClassName("md-virtual-repeat-offsetter")[0];var j=b.bind(this,this.updateSize);a(b.bind(this,function(){j();var a=c.debounce(j,10,null,!1),d=b.element(f);this.size||a(),d.on("resize",a),g.$on("$destroy",function(){d.off("resize",a)}),g.$emit("$md-resize-enable"),g.$on("$md-resize",j)}))}function g(a){return{controller:h,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(b,c){var d=c.mdVirtualRepeat,e=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),f=e[1],g=a(e[2]),h=c.mdExtraName&&a(c.mdExtraName);return function(a,b,c,d,e){d[0].link_(d[1],e,f,g,h)}}}}function h(a,c,d,e,f,g,h){this.$scope=a,this.$element=c,this.$attrs=d,this.$browser=e,this.$document=f,this.$rootScope=g,this.$$rAF=h,this.onDemand=d.hasOwnProperty("mdOnDemand"),this.browserCheckUrlChange=e.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=a.$eval(d.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=b.noop,this.blocks={},this.pooledBlocks=[]}function i(a){if(!b.isFunction(a.getItemAtIndex)||!b.isFunction(a.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength() ");this.model=a}function j(){throw Error("Non-overridden abstract method called.")}"use strict",b.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",a).directive("mdVirtualRepeat",g);var d=1533917,e=3;f.$inject=["$$rAF","$mdUtil","$parse","$rootScope","$window","$scope","$element","$attrs"],f.prototype.register=function(a){this.repeater=a,b.element(this.scroller).on("scroll wheel touchmove touchend",b.bind(this,this.handleScroll_))},f.prototype.isHorizontal=function(){return this.horizontal},f.prototype.getSize=function(){return this.size},f.prototype.setSize_=function(a){var b=this.getDimensionName_();this.size=a,this.$element[0].style[b]=a+"px"},f.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},f.prototype.updateSize=function(){if(this.originalSize)return;this.size=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight,this.handleScroll_(),this.repeater&&this.repeater.containerUpdated()},f.prototype.getScrollSize=function(){return this.scrollSize},f.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},f.prototype.sizeScroller_=function(a){var b=this.getDimensionName_(),c=this.isHorizontal()?"height":"width";this.sizer.innerHTML="";if(a<d)this.sizer.style[b]=a+"px";else{this.sizer.style[b]="auto",this.sizer.style[c]="auto";var e=Math.floor(a/d),f=document.createElement("div");f.style[b]=d+"px",f.style[c]="1px";for(var g=0;g<e;g++)this.sizer.appendChild(f.cloneNode(!1));f.style[b]=a-e*d+"px",this.sizer.appendChild(f)}},f.prototype.autoShrink_=function(a){var b=Math.max(a,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&b!==this.size){this.oldElementSize===null&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var c=this.originalSize||this.size;!c||b<c?(this.originalSize||(this.originalSize=this.size),this.setSize_(b)):this.originalSize!==null&&(this.unsetSize_(),this.originalSize=null,this.updateSize()),this.repeater.containerUpdated()}},f.prototype.setScrollSize=function(a){var b=a+this.offsetSize;if(this.scrollSize===b)return;this.sizeScroller_(b),this.autoShrink_(b),this.scrollSize=b},f.prototype.getScrollOffset=function(){return this.scrollOffset},f.prototype.scrollTo=function(a){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=a,this.handleScroll_()},f.prototype.scrollToIndex=function(a){var b=this.repeater.getItemSize(),c=this.repeater.itemsLength;a>c&&(a=c-1),this.scrollTo(b*a)},f.prototype.resetScroll=function(){this.scrollTo(0)},f.prototype.handleScroll_=function(){var a=this.isHorizontal()?this.scroller.scrollLeft:this.scroller.scrollTop;if(a===this.scrollOffset)return;var b=this.repeater.getItemSize();if(!b)return;var c=Math.max(0,Math.floor(a/b)-e),d=this.isHorizontal()?"translateX(":"translateY(";d+=c*b+"px)",this.scrollOffset=a,this.offsetter.style.webkitTransform=d,this.offsetter.style.transform=d;if(this.bindTopIndex){var f=Math.floor(a/b);f!==this.topIndex&&f<this.repeater.itemsLength&&(this.topIndex=f,this.bindTopIndex.assign(this.$scope,f),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()},g.$inject=["$parse"],h.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF"],h.Block,h.prototype.link_=function(a,c,d,e,f){this.container=a,this.transclude=c,this.repeatName=d,this.rawRepeatListExpression=e,this.extraName=f,this.sized=!1,this.repeatListExpression=b.bind(this,this.repeatListExpression_),this.container.register(this)},h.prototype.readItemSize_=function(){if(this.itemSize)return;this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var a=this.getBlock_(0);a.element[0].parentNode||this.parentNode.appendChild(a.element[0]),this.itemSize=a.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=a,this.poolBlock_(0),this.itemSize&&this.containerUpdated()},h.prototype.repeatListExpression_=function(a){var b=this.rawRepeatListExpression(a);if(this.onDemand&&b){var c=new i(b);return c.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),c}return b},h.prototype.containerUpdated=function(){if(!this.itemSize){this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,b.bind(this,function(a){a&&a.length&&this.$$rAF(b.bind(this,this.readItemSize_))})),this.$rootScope.$$phase||this.$scope.$digest();return}this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,b.bind(this,function(a,b){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(a,b)}))),this.updateIndexes_();if(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())this.items instanceof i&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items)},h.prototype.getItemSize=function(){return this.itemSize},h.prototype.virtualRepeatUpdate_=function(a,c){this.isVirtualRepeatUpdating_=!0;var d=a&&a.length||0,e=!1;if(this.items&&d<this.items.length&&this.container.getScrollOffset()!==0){this.items=a,this.container.resetScroll();return}d!==this.itemsLength&&(e=!0,this.itemsLength=d),this.items=a,(a!==c||e)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,e&&this.container.setScrollSize(d*this.itemSize);if(this.isFirstRender){this.isFirstRender=!1;var f=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.container.scrollToIndex(f)}Object.keys(this.blocks).forEach(function(a){var b=parseInt(a,10);(b<this.newStartIndex||b>=this.newEndIndex)&&this.poolBlock_(b)},this),this.$browser.$$checkUrlChange=b.noop;var g,h,i=[],j=[];for(g=this.newStartIndex;g<this.newEndIndex&&this.blocks[g]==null;g++)h=this.getBlock_(g),this.updateBlock_(h,g),i.push(h);for(;this.blocks[g]!=null;g++)this.updateBlock_(this.blocks[g],g);var k=g-1;for(;g<this.newEndIndex;g++)h=this.getBlock_(g),this.updateBlock_(h,g),j.push(h);i.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(i),this.$element[0].nextSibling),j.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(j),this.blocks[k]&&this.blocks[k].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isVirtualRepeatUpdating_=!1},h.prototype.getBlock_=function(a){if(this.pooledBlocks.length)return this.pooledBlocks.pop();var c;return this.transclude(b.bind(this,function(b,d){c={element:b,"new":!0,scope:d},this.updateScope_(d,a),this.parentNode.appendChild(b[0])})),c},h.prototype.updateBlock_=function(a,b){this.blocks[b]=a;if(!a.new&&a.scope.$index===b&&a.scope[this.repeatName]===this.items[b])return;a.new=!1,this.updateScope_(a.scope,b),this.$rootScope.$$phase||a.scope.$digest()},h.prototype.updateScope_=function(a,b){a.$index=b,a[this.repeatName]=this.items&&this.items[b],this.extraName&&(a[this.extraName(this.$scope)]=this.items[b])},h.prototype.poolBlock_=function(a){this.pooledBlocks.push(this.blocks[a]),this.parentNode.removeChild(this.blocks[a].element[0]),delete this.blocks[a]},h.prototype.domFragmentFromBlocks_=function(a){var b=this.$document[0].createDocumentFragment();return a.forEach(function(a){b.appendChild(a.element[0])}),b},h.prototype.updateIndexes_=function(){var a=this.items?this.items.length:0,b=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(a-b,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+b+e,this.newEndIndex=Math.min(a,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-e)},i.prototype.$$includeIndexes=function(a,b){for(var c=a;c<b;c++)this.hasOwnProperty(c)||(this[c]=this.model.getItemAtIndex(c));this.length=this.model.getLength()}}(),function(){function a(a){function e(e,f,g){var h=parseInt(g.mdWhiteframe,10)||d;if(h>c||h<b)a.warn("md-whiteframe attribute value is invalid. It should be a number between "+b+" and "+c,f[0]),h=d;f.addClass("md-whiteframe-"+h+"dp")}var b=1,c=24,d=4;return{restrict:"A",link:e}}"use strict",b.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",a),a.$inject=["$log"]}(),function(){function g(a,g,h,i,j,k,l,m,n,o){function y(){h.initOptionalProperties(a,n,{searchText:null,selectedItem:null}),j(g),C(),h.nextTick(function(){E(),A(),B(),g.on("focus",B)})}function z(){function q(){var a=0,b=g.find("md-input-container");if(b.length){var c=b.find("input");a=b.prop("offsetHeight"),a-=c.prop("offsetTop"),a-=c.prop("offsetHeight"),a+=b.prop("offsetTop")}return a}function r(){var a=s.scrollContainer.getBoundingClientRect(),c={};a.right>i.right-e&&(c.left=b.right-a.width+"px"),s.$.scrollContainer.css(c)}if(!s)return h.nextTick(z,!1,a);var b=s.wrap.getBoundingClientRect(),c=s.snap.getBoundingClientRect(),i=s.root.getBoundingClientRect(),j=c.bottom-i.top,k=i.bottom-c.top,l=b.left-i.left,m=b.width,o=q(),p;n.mdFloatingLabel&&(l+=f,m-=f*2),p={left:l+"px",minWidth:m+"px",maxWidth:Math.max(b.right-i.left,i.right-b.left)-e+"px"},j>k&&i.height-b.bottom-e<d?(p.top="auto",p.bottom=k+"px",p.maxHeight=Math.min(d,b.top-i.top-e)+"px"):(p.top=j-o+"px",p.bottom="auto",p.maxHeight=Math.min(d,i.bottom+h.scrollTop()-b.bottom-e)+"px"),s.$.scrollContainer.css(p),h.nextTick(r,!1)}function A(){if(!s.$.root.length)return;j(s.$.scrollContainer),s.$.scrollContainer.detach(),s.$.root.append(s.$.scrollContainer),l.pin&&l.pin(s.$.scrollContainer,m)}function B(){a.autofocus&&s.input.focus()}function C(){var c=parseInt(a.delay,10)||0;n.$observe("disabled",function(a){p.isDisabled=!!a}),n.$observe("required",function(a){p.isRequired=!!a}),a.$watch("searchText",c?h.debounce(R,c):R),a.$watch("selectedItem",L),b.element(k).on("resize",z),a.$on("$destroy",D)}function D(){b.element(k).off("resize",z);if(s){var a="ul scroller scrollContainer input".split(" ");b.forEach(a,function(a){s.$[a].remove()})}}function E(){s={main:g[0],scrollContainer:g[0].getElementsByClassName("md-virtual-repeat-container")[0],scroller:g[0].getElementsByClassName("md-virtual-repeat-scroller")[0],ul:g.find("ul")[0],input:g.find("input")[0],wrap:g.find("md-autocomplete-wrap")[0],root:document.body},s.li=s.ul.getElementsByTagName("li"),s.snap=F(),s.$=G(s)}function F(){for(var a=g;a.length;a=a.parent())if(b.isDefined(a.attr("md-autocomplete-snap")))return a[0];return s.wrap}function G(a){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=b.element(a[d]));return c}function H(b,c){!b&&c?(z(),s&&h.nextTick(function(){h.disableScrollAround(s.ul)},!1,a)):b&&!c&&h.nextTick(function(){h.enableScrolling()},!1,a)}function I(){u=!0}function J(){w||s.input.focus(),u=!1,p.hidden=_()}function K(){s.input.focus()}function L(b,c){b&&X(b).then(function(d){a.searchText=d,O(b,c)}),b!==c&&M()}function M(){b.isFunction(a.itemChange)&&a.itemChange(Y(a.selectedItem))}function N(){b.isFunction(a.textChange)&&a.textChange()}function O(a,b){v.forEach(function(c){c(a,b)})}function P(a){v.indexOf(a)==-1&&v.push(a)}function Q(a){var b=v.indexOf(a);b!=-1&&v.splice(b,1)}function R(b,c){p.index=Z();if(b===c)return;X(a.selectedItem).then(function(d){b!==d&&(a.selectedItem=null,b!==c&&N(),bf()?bp():(p.matches=[],$(!1),bk()))})}function S(){w=!1,u||(p.hidden=_())}function T(a){a&&(u=!1,w=!1),s.input.blur()}function U(){w=!0,b.isString(a.searchText)||(a.searchText=""),p.hidden=_(),p.hidden||bp()}function V(a){switch(a.keyCode){case i.KEY_CODE.DOWN_ARROW:if(p.loading)return;a.stopPropagation(),a.preventDefault(),p.index=Math.min(p.index+1,p.matches.length-1),bm(),bk();break;case i.KEY_CODE.UP_ARROW:if(p.loading)return;a.stopPropagation(),a.preventDefault(),p.index=p.index<0?p.matches.length-1:Math.max(0,p.index-1),bm(),bk();break;case i.KEY_CODE.TAB:J();if(p.hidden||p.loading||p.index<0||p.matches.length<1)return;bh(p.index);break;case i.KEY_CODE.ENTER:if(p.hidden||p.loading||p.index<0||p.matches.length<1)return;if(bc())return;a.stopPropagation(),a.preventDefault(),bh(p.index);break;case i.KEY_CODE.ESCAPE:a.stopPropagation(),a.preventDefault(),bi(),T(!0);break;default:}}function W(){return b.isNumber(a.minLength)?a.minLength:1}function X(b){function c(b){return b&&a.itemText?a.itemText(Y(b)):null}return o.when(c(b)||b)}function Y(a){if(!a)return c;var b={};return p.itemName&&(b[p.itemName]=a),b}function Z(){return a.autoselect?0:-1}function $(a){p.loading!=a&&(p.loading=a),p.hidden=_()}function _(){return p.loading&&!bb()?!0:bc()?!0:w?!ba():!0}function ba(){return bf()&&bb()||bo()}function bb(){return p.matches.length?!0:!1}function bc(){return p.scope.selectedItem?!0:!1}function bd(){return p.loading&&!bc()}function be(){return X(p.matches[p.index])}function bf(){return(a.searchText||"").length>=W()}function bg(a,b,c){Object.defineProperty(p,a,{get:function(){return c},set:function(a){var d=c;c=a,b(a,d)}})}function bh(b){h.nextTick(function(){X(p.matches[b]).then(function(a){var b=s.$.input.controller("ngModel");b.$setViewValue(a),b.$render()}).finally(function(){a.selectedItem=p.matches[b],$(!1)})},!1)}function bi(){$(!0),p.index=0,p.matches=[],a.searchText="",bh(-1);var b=document.createEvent("CustomEvent");b.initCustomEvent("input",!0,!0,{value:a.searchText}),s.input.dispatchEvent(b),s.input.focus()}function bj(c){function f(b){t[e]=b;if((c||"")!==(a.searchText||""))return;p.matches=b,p.hidden=_(),a.selectOnMatch&&bq(),bk(),z()}var d=a.$parent.$eval(r),e=c.toLowerCase();b.isArray(d)?f(d):d&&($(!0),h.nextTick(function(){d.success&&d.success(f),d.then&&d.then(f),d.finally&&d.finally(function(){$(!1)})},!0,a))}function bk(){be().then(function(a){p.messages=[bl(),a]})}function bl(){if(x===p.matches.length)return"";x=p.matches.length;switch(p.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+p.matches.length+" matches available."}}function bm(){if(!s.li[0])return;var a=s.li[0].offsetHeight,b=a*p.index,c=b+a,d=s.scroller.clientHeight,e=s.scroller.scrollTop;b<e?bn(b):c>e+d&&bn(c-d)}function bn(a){s.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(a)}function bo(){var a=(p.scope.searchText||"").length;return p.hasNotFound&&!bb()&&!p.loading&&a>=W()&&w&&!bc()}function bp(){var b=a.searchText||"",c=b.toLowerCase();!a.noCache&&t[c]?(p.matches=t[c],bk()):bj(b),p.hidden=_()}function bq(){var b=a.searchText,c=p.matches,d=c[0];c.length===1&&X(d).then(function(a){b==a&&bh(0)})}var p=this,q=a.itemsExpr.split(/ in /i),r=q[1],s=null,t={},u=!1,v=[],w=!1,x=0;return bg("hidden",H,!0),p.scope=a,p.parent=a.$parent,p.itemName=q[0],p.matches=[],p.loading=!1,p.hidden=!0,p.index=null,p.messages=[],p.id=h.nextUid(),p.isDisabled=null,p.isRequired=null,p.hasNotFound=!1,p.keydown=V,p.blur=S,p.focus=U,p.clear=bi,p.select=bh,p.listEnter=I,p.listLeave=J,p.mouseUp=K,p.getCurrentDisplayValue=be,p.registerSelectedItemWatcher=P,p.unregisterSelectedItemWatcher=Q,p.notFoundVisible=bo,p.loadingIsVisible=bd,y()}"use strict",b.module("material.components.autocomplete").controller("MdAutocompleteCtrl",g);var a=41,d=5.5*a,e=8,f=2;g.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q"]}(),function(){function a(){var a=!1;return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",selectOnMatch:"=?mdSelectOnMatch",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",inputId:"@?mdInputId"},link:function(b,c,d,e){e.hasNotFound=a},template:function(b,c){function h(){var a=b.find("md-item-template").detach(),c=a.length?a.html():b.html();return a.length||b.empty(),"<md-autocomplete-parent-scope md-autocomplete-replace>"+c+"</md-autocomplete-parent-scope>"}function i(){var a=b.find("md-not-found").detach(),c=a.length?a.html():"";return c?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()"                         md-autocomplete-parent-scope>'+c+"</li>":""}function j(){return c.mdFloatingLabel?'            <md-input-container flex ng-if="floatingLabel">              <label>{{floatingLabel}}</label>              <input type="search"                  '+(g!=null?'tabindex="'+g+'"':"")+'                  id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}"                  name="{{inputName}}"                  autocomplete="off"                  ng-required="$mdAutocompleteCtrl.isRequired"                  ng-minlength="inputMinlength"                  ng-maxlength="inputMaxlength"                  ng-disabled="$mdAutocompleteCtrl.isDisabled"                  ng-model="$mdAutocompleteCtrl.scope.searchText"                  ng-keydown="$mdAutocompleteCtrl.keydown($event)"                  ng-blur="$mdAutocompleteCtrl.blur()"                  ng-focus="$mdAutocompleteCtrl.focus()"                  aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                  aria-label="{{floatingLabel}}"                  aria-autocomplete="list"                  aria-haspopup="true"                  aria-activedescendant=""                  aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>              <div md-autocomplete-parent-scope md-autocomplete-replace>'+f+"</div>            </md-input-container>":'            <input flex type="search"                '+(g!=null?'tabindex="'+g+'"':"")+'                id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}"                name="{{inputName}}"                ng-if="!floatingLabel"                autocomplete="off"                ng-required="$mdAutocompleteCtrl.isRequired"                ng-disabled="$mdAutocompleteCtrl.isDisabled"                ng-model="$mdAutocompleteCtrl.scope.searchText"                ng-keydown="$mdAutocompleteCtrl.keydown($event)"                ng-blur="$mdAutocompleteCtrl.blur()"                ng-focus="$mdAutocompleteCtrl.focus()"                placeholder="{{placeholder}}"                aria-owns="ul-{{$mdAutocompleteCtrl.id}}"                aria-label="{{placeholder}}"                aria-autocomplete="list"                aria-haspopup="true"                aria-activedescendant=""                aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>            <button                type="button"                tabindex="-1"                ng-if="$mdAutocompleteCtrl.scope.searchText && !$mdAutocompleteCtrl.isDisabled"                ng-click="$mdAutocompleteCtrl.clear()">              <md-icon md-svg-icon="md-close"></md-icon>              <span class="md-visually-hidden">Clear</span>            </button>                '}var d=i(),e=h(),f=b.html(),g=c.tabindex;return a=d?!0:!1,c.hasOwnProperty("tabindex")||b.attr("tabindex","-1"),'        <md-autocomplete-wrap            layout="row"            ng-class="{ \'md-whiteframe-z1\': !floatingLabel, \'md-menu-showing\': !$mdAutocompleteCtrl.hidden }"            role="listbox">          '+j()+'          <md-progress-linear              class="'+(c.mdFloatingLabel?"md-inline":"")+'"              ng-if="$mdAutocompleteCtrl.loadingIsVisible()"              md-mode="indeterminate"></md-progress-linear>          <md-virtual-repeat-container              md-auto-shrink              md-auto-shrink-min="1"              ng-mouseenter="$mdAutocompleteCtrl.listEnter()"              ng-mouseleave="$mdAutocompleteCtrl.listLeave()"              ng-mouseup="$mdAutocompleteCtrl.mouseUp()"              ng-hide="$mdAutocompleteCtrl.hidden"              class="md-autocomplete-suggestions-container md-whiteframe-z1"              ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }"              role="presentation">            <ul class="md-autocomplete-suggestions"                ng-class="::menuClass"                id="ul-{{$mdAutocompleteCtrl.id}}">              <li md-virtual-repeat="item in $mdAutocompleteCtrl.matches"                  ng-class="{ selected: $index === $mdAutocompleteCtrl.index }"                  ng-click="$mdAutocompleteCtrl.select($index)"                  md-extra-name="$mdAutocompleteCtrl.itemName">                  '+e+"                  </li>"+d+'            </ul>          </md-virtual-repeat-container>        </md-autocomplete-wrap>        <aria-status            class="md-visually-hidden"            role="status"            aria-live="assertive">          <p ng-repeat="message in $mdAutocompleteCtrl.messages track by $index" ng-if="message">{{message}}</p>        </aria-status>'}}}"use strict",b.module("material.components.autocomplete").directive("mdAutocomplete",a)}(),function(){function a(a,b){function c(a,c,d){return function(a,c,e){function i(c,d){g[d]=a[c],a.$watch(c,function(a){b.nextTick(function(){g[d]=a})})}function j(){var b=!1,c=!1;a.$watch(function(){if(c||b)return;b=!0,a.$$postDigest(function(){c||g.$digest(),b=c=!1})}),g.$watch(function(){c=!0})}var f=a.$mdAutocompleteCtrl,g=f.parent.$new(),h=f.itemName;i("$index","$index"),i("item",h),j(),d(g,function(a){c.after(a)})}}return{restrict:"AE",compile:c,terminal:!0,transclude:"element"}}"use strict",b.module("material.components.autocomplete").directive("mdAutocompleteParentScope",a),a.$inject=["$compile","$mdUtil"]}(),function(){function a(a,c,d){function e(e,f){var h=null,i=null,j=d.mdHighlightFlags||"",k=a.$watch(function(a){return{term:e(a),unsafeText:f(a)}},function(a,d){if(h===null||a.unsafeText!==d.unsafeText)h=b.element("<div>").text(a.unsafeText).html();if(i===null||a.term!==d.term)i=g(a.term,j);c.html(h.replace(i,'<span class="highlight">$&</span>'))},!0);c.on("$destroy",k)}function f(a){return a&&a.replace(/[\\\^\$\*\+\?\.\(\)\|\{}\[\]]/g,"\\$&")}function g(a,b){var c="";return b.indexOf("^")>=1&&(c+="^"),c+=a,b.indexOf("$")>=1&&(c+="$"),new RegExp(f(c),b.replace(/[\$\^]/g,""))}this.init=e}"use strict",b.module("material.components.autocomplete").controller("MdHighlightCtrl",a),a.$inject=["$scope","$element","$attrs"]}(),function(){function a(a,b){return{terminal:!0,controller:"MdHighlightCtrl",compile:function c(c,d){var e=b(d.mdHighlightText),f=a(c.html());return function(a,b,c,d){d.init(e,f)}}}}"use strict",b.module("material.components.autocomplete").directive("mdHighlightText",a),a.$inject=["$interpolate","$parse"]}(),function(){function c(c,d){function f(a,f){return a.append(d.processTemplate(e)),function(a,d,e,f){d.addClass("md-chip"),c(d),f&&b.element(d[0].querySelector(".md-chip-content")).on("blur",function(){f.selectedChip=-1})}}var e=d.processTemplate(a);return{restrict:"E",require:"^?mdChips",compile:f}}"use strict",b.module("material.components.chips").directive("mdChip",c);var a='    <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden">      {{$mdChipsCtrl.deleteHint}}    </span>';c.$inject=["$mdTheming","$mdUtil"]}(),function(){function a(a){function b(b,c,d,e){c.on("click",function(a){b.$apply(function(){e.removeChip(b.$$replacedScope.$index)})}),a(function(){c.attr({tabindex:-1,"aria-hidden":!0}),c.find("button").attr("tabindex","-1")})}return{restrict:"A",require:"^mdChips",scope:!1,link:b}}"use strict",b.module("material.components.chips").directive("mdChipRemove",a),a.$inject=["$timeout"]}(),function(){function a(a){function b(b,c,d){var e=b.$parent.$mdChipsCtrl,f=e.parent.$new(!1,e.parent);f.$$replacedScope=b,f.$chip=b.$chip,f.$index=b.$index,f.$mdChipsCtrl=e;var g=e.$scope.$eval(d.mdChipTransclude);c.html(g),a(c.contents())(f)}return{restrict:"EA",terminal:!0,link:b,scope:!1}}"use strict",b.module("material.components.chips").directive("mdChipTransclude",a),a.$inject=["$compile"]}(),function(){function a(a,b,c,d,e){this.$timeout=e,this.$mdConstant=b,this.$scope=a,this.parent=a.$parent,this.$log=c,this.$element=d,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.hasAutocomplete=!1,this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useOnAppend=!1,this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.useOnSelect=!1}"use strict",b.module("material.components.chips").controller("MdChipsCtrl",a),a.$inject=["$scope","$mdConstant","$log","$element","$timeout"],a.prototype.inputKeydown=function(a){var b=this.getChipBuffer();if(this.hasAutocomplete&&a.isDefaultPrevented&&a.isDefaultPrevented())return;if(a.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(b)return;a.preventDefault(),a.stopPropagation(),this.items.length&&this.selectAndFocusChipSafe(this.items.length-1);return}if(!this.separatorKeys||this.separatorKeys.length<1)this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER];if(this.separatorKeys.indexOf(a.keyCode)!==-1){if(this.hasAutocomplete&&this.requireMatch||!b)return;a.preventDefault(),this.appendChip(b),this.resetChipBuffer()}},a.prototype.chipKeydown=function(a){if(this.getChipBuffer())return;switch(a.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;a.preventDefault(),this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:a.preventDefault(),this.selectedChip<0&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:a.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;a.preventDefault(),this.onFocus()}},a.prototype.getPlaceholder=function(){var a=this.items.length&&(this.secondaryPlaceholder==""||this.secondaryPlaceholder);return a?this.placeholder:this.secondaryPlaceholder},a.prototype.removeAndSelectAdjacentChip=function(a){var c=this.getAdjacentChipIndex(a);this.removeChip(a),this.$timeout(b.bind(this,function(){this.selectAndFocusChipSafe(c)}))},a.prototype.resetSelectedChip=function(){this.selectedChip=-1},a.prototype.getAdjacentChipIndex=function(a){var b=this.items.length-1;return b==0?-1:a==b?a-1:a},a.prototype.appendChip=function(a){if(this.useTransformChip&&this.transformChip){var c=this.transformChip({$chip:a});b.isDefined(c)&&(a=c)}if(b.isObject(a)){var d=this.items.some(function(c){return b.equals(a,c)});if(d)return}if(a==null||this.items.indexOf(a)+1)return;var e=this.items.push(a);this.useOnAdd&&this.onAdd&&this.onAdd({$chip:a,$index:e})},a.prototype.useOnAppendExpression=function(){this.$log.warn("md-on-append is deprecated; please use md-transform-chip or md-on-add instead");if(!this.useTransformChip||!this.transformChip)this.useTransformChip=!0,this.transformChip=this.onAppend},a.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},a.prototype.useOnAddExpression=function(){this.useOnAdd=!0},a.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},a.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},a.prototype.getChipBuffer=function(){return this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer},a.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},a.prototype.removeChip=function(a){var b=this.items.splice(a,1);b&&b.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:b[0],$index:a})},a.prototype.removeChipAndFocusInput=function(a){this.removeChip(a),this.onFocus()},a.prototype.selectAndFocusChipSafe=function(a){if(!this.items.length){this.selectChip(-1),this.onFocus();return}if(a===this.items.length)return this.onFocus();a=Math.max(a,0),a=Math.min(a,this.items.length-1),this.selectChip(a),this.focusChip(a)},a.prototype.selectChip=function(a){a>=-1&&a<=this.items.length?(this.selectedChip=a,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[this.selectedChip]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},a.prototype.selectAndFocusChip=function(a){this.selectChip(a),a!=-1&&this.focusChip(a)},a.prototype.focusChip=function(a){this.$element[0].querySelector('md-chip[index="'+a+'"] .md-chip-content').focus()},a.prototype.configureNgModel=function(a){this.ngModelCtrl=a;var b=this;a.$render=function(){b.items=b.ngModelCtrl.$viewValue}},a.prototype.onFocus=function(){var a=this.$element[0].querySelector("input");a&&a.focus(),this.resetSelectedChip()},a.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.resetSelectedChip()},a.prototype.onInputBlur=function(){this.inputHasFocus=!1},a.prototype.configureUserInput=function(a){this.userInputElement=a;var c=a.controller("ngModel");c!=this.ngModelCtrl&&(this.userInputNgModelCtrl=c);var d=this.$scope,e=this,f=function(a,c){d.$evalAsync(b.bind(e,c,a))};a.attr({tabindex:0}).on("keydown",function(a){f(a,e.inputKeydown)}).on("focus",function(a){f(a,e.onInputFocus)}).on("blur",function(a){f(a,e.onInputBlur)})},a.prototype.configureAutocomplete=function(a){a&&(this.hasAutocomplete=!0,a.registerSelectedItemWatcher(b.bind(this,function(a){a&&(this.appendChip(a),this.resetChipBuffer())})),this.$element.find("input").on("focus",b.bind(this,this.onInputFocus)).on("blur",b.bind(this,this.onInputBlur)))},a.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0}}(),function(){function f(b,f,g,h,i){function k(a,c){function n(a){if(!c.ngModel)return;var b=d[0].querySelector(a);return b&&b.outerHTML}var d=c.$mdUserTemplate;c.$mdUserTemplate=null;var e=n("md-chips>*[md-chip-remove]")||j.remove,k=n("md-chips>md-chip-template")||j.default,l=n("md-chips>md-autocomplete")||n("md-chips>input")||j.input,m=d.find("md-chip");return d[0].querySelector("md-chip-template>*[md-chip-remove]")&&h.warn("invalid placement of md-chip-remove within md-chip-template."),function o(a,d,h,n){f.initOptionalProperties(a,c),b(d);var o=n[0];o.chipContentsTemplate=k,o.chipRemoveTemplate=e,o.chipInputTemplate=l,d.attr({"aria-hidden":!0,tabindex:-1}).on("focus",function(){o.onFocus()}),c.ngModel&&(o.configureNgModel(d.controller("ngModel")),h.mdTransformChip&&o.useTransformChipExpression(),h.mdOnAppend&&o.useOnAppendExpression(),h.mdOnAdd&&o.useOnAddExpression(),h.mdOnRemove&&o.useOnRemoveExpression(),h.mdOnSelect&&o.useOnSelectExpression(),l!=j.input&&a.$watch("$mdChipsCtrl.readonly",function(a){a||f.nextTick(function(){l.indexOf("<md-autocomplete")===0&&o.configureAutocomplete(d.find("md-autocomplete").controller("mdAutocomplete")),o.configureUserInput(d.find("input"))})}),f.nextTick(function(){var a=d.find("input");a&&a.toggleClass("md-input",!0)}));if(m.length>0){var p=g(m.clone())(a.$parent);i(function(){d.find("md-chips-wrap").prepend(p)})}}}function l(){return{chips:f.processTemplate(a),input:f.processTemplate(c),"default":f.processTemplate(d),remove:f.processTemplate(e)}}var j=l();return{template:function(a,b){return b.$mdUserTemplate=a.clone(),j.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:k,scope:{readonly:"=readonly",placeholder:"@",secondaryPlaceholder:"@",transformChip:"&mdTransformChip",onAppend:"&mdOnAppend",onAdd:"&mdOnAdd",onRemove:"&mdOnRemove",onSelect:"&mdOnSelect",deleteHint:"@",deleteButtonLabel:"@",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch"}}}"use strict",b.module("material.components.chips").directive("mdChips",f);var a='      <md-chips-wrap          ng-if="!$mdChipsCtrl.readonly || $mdChipsCtrl.items.length > 0"          ng-keydown="$mdChipsCtrl.chipKeydown($event)"          ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(), \'md-readonly\': !$mdChipsCtrl.ngModelCtrl }"          class="md-chips">        <md-chip ng-repeat="$chip in $mdChipsCtrl.items"            index="{{$index}}"            ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': $mdChipsCtrl.readonly}">          <div class="md-chip-content"              tabindex="-1"              aria-hidden="true"              ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)"              md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div>          <div ng-if="!$mdChipsCtrl.readonly"               class="md-chip-remove-container"               md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div>        </md-chip>        <div ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"            class="md-chip-input-container"            md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div>        </div>      </md-chips-wrap>',c='        <input            class="md-input"            tabindex="0"            placeholder="{{$mdChipsCtrl.getPlaceholder()}}"            aria-label="{{$mdChipsCtrl.getPlaceholder()}}"            ng-model="$mdChipsCtrl.chipBuffer"            ng-focus="$mdChipsCtrl.onInputFocus()"            ng-blur="$mdChipsCtrl.onInputBlur()"            ng-keydown="$mdChipsCtrl.inputKeydown($event)">',d="      <span>{{$chip}}</span>",e='      <button          class="md-chip-remove"          ng-if="!$mdChipsCtrl.readonly"          ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)"          type="button"          aria-hidden="true"          tabindex="-1">        <md-icon md-svg-icon="md-close"></md-icon>        <span class="md-visually-hidden">          {{$mdChipsCtrl.deleteButtonLabel}}        </span>      </button>';f.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout"]}(),function(){function a(){this.selectedItem=null,this.searchText=""}"use strict",b.module("material.components.chips").controller("MdContactChipsCtrl",a),a.prototype.queryContact=function(a){var c=this.contactQuery({$query:a});return this.filterSelected?c.filter(b.bind(this,this.filterSelectedContacts)):c},a.prototype.itemName=function(a){return a[this.contactName]},a.prototype.filterSelectedContacts=function(a){return this.contacts.indexOf(a)==-1}}(),function(){function c(b,c){function d(a,d){return function e(a,e,f,g){c.initOptionalProperties(a,d),b(e),e.attr("tabindex","-1")}}return{template:function(b,c){return a},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:d,scope:{contactQuery:"&mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch",highlightFlags:"@?mdHighlightFlags"}}}"use strict",b.module("material.components.chips").directive("mdContactChips",c);var a='      <md-chips class="md-contact-chips"          ng-model="$mdContactChipsCtrl.contacts"          md-require-match="$mdContactChipsCtrl.requireMatch"          md-autocomplete-snap>          <md-autocomplete              md-menu-class="md-contact-chips-suggestions"              md-selected-item="$mdContactChipsCtrl.selectedItem"              md-search-text="$mdContactChipsCtrl.searchText"              md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)"              md-item-text="$mdContactChipsCtrl.itemName(item)"              md-no-cache="true"              md-autoselect              placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ?                  $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}">            <div class="md-contact-suggestion">              <img                   ng-src="{{item[$mdContactChipsCtrl.contactImage]}}"                  alt="{{item[$mdContactChipsCtrl.contactName]}}"                  ng-if="item[$mdContactChipsCtrl.contactImage]" />              <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText"                    md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}">                {{item[$mdContactChipsCtrl.contactName]}}              </span>              <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span>            </div>          </md-autocomplete>          <md-chip-template>            <div class="md-contact-avatar">              <img                   ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}"                  alt="{{$chip[$mdContactChipsCtrl.contactName]}}"                  ng-if="$chip[$mdContactChipsCtrl.contactImage]" />            </div>            <div class="md-contact-name">              {{$chip[$mdContactChipsCtrl.contactName]}}            </div>          </md-chip-template>      </md-chips>';c.$inject=["$mdTheming","$mdUtil"]}(),function(){function a(a,b,c){function d(d,e,f){function i(){var a=e.parent();return a.attr("aria-label")||a.text()?!0:a.parent().attr("aria-label")||a.parent().text()?!0:!1}function j(){!d.svgIcon&&!d.svgSrc&&(d.fontIcon&&e.addClass("md-font "+d.fontIcon),e.addClass(a.fontSet(d.fontSet)))}b(e),j();var g=f.alt||d.fontIcon||d.svgIcon||e.text(),h=f.$normalize(f.$attr.mdSvgIcon||f.$attr.mdSvgSrc||"");f["aria-label"]||(g!=""&&!i()?(c.expect(e,"aria-label",g),c.expect(e,"role","img")):e.text()||c.expect(e,"aria-hidden","true")),h&&f.$observe(h,function(b){e.empty(),b&&a(b).then(function(a){e.empty(),e.append(a)})})}return{scope:{fontSet:"@mdFontSet",fontIcon:"@mdFontIcon",svgIcon:"@mdSvgIcon",svgSrc:"@mdSvgSrc"},restrict:"E",link:d}}"use strict",b.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria",a])}(),function(){function c(){}function d(b,c){this.url=b,this.viewBoxSize=c||a.defaultViewBoxSize}function e(a,c,d,e,f){function i(b){b=b||"";if(g[b])return d.when(g[b].clone());if(h.test(b))return n(b).then(k(b));b.indexOf(":")==-1&&(b="$default:"+b);var c=a[b]?l:m;return c(b).then(k(b))}function j(c){var d=b.isUndefined(c)||!c||!c.length;if(d)return a.defaultFontSet;var e=c;return b.forEach(a.fontSets,function(a){a.alias==c&&(e=a.fontSet||e)}),e}function k(b){return function c(c){return g[b]=p(c)?c:new q(c,a[b]),g[b].clone()}}function l(b){var c=a[b];return n(c.url).then(function(a){return new q(a,c)})}function m(b){function g(a){var c=b.slice(b.lastIndexOf(":")+1),d=a.querySelector("#"+c);return d?new q(d,f):h(b)}function h(a){var b="icon "+a+" not found";return e.warn(b),d.reject(b||a)}var c=b.substring(0,b.lastIndexOf(":"))||"$default",f=a[c];return f?n(f.url).then(g):h(b)}function n(a){return c.get(a,{cache:f}).then(function(a){return b.element("<div>").append(a.data).find("svg")[0]}).catch(o)}function o(a){var c=b.isString(a)?a:a.message||a.data||a.statusText;return e.warn(c),d.reject(c)}function p(a){return b.isDefined(a.element)&&b.isDefined(a.config)}function q(a,c){a&&a.tagName!="svg"&&(a=b.element('<svg xmlns="http://www.w3.org/2000/svg">').append(a)[0]),a.getAttribute("xmlns")||a.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=a,this.config=c,this.prepare()}function r(){var c=this.config?this.config.viewBoxSize:a.defaultViewBoxSize;b.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+c+" "+c},function(a,b){this.element.setAttribute(b,a)},this)}function s(){return this.element.cloneNode(!0)}var g={},h=/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i;return q.prototype={clone:s,prepare:r},i.fontSet=j,i}"use strict",b.module("material.components.icon").provider("$mdIcon",c);var a={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};c.prototype={icon:function(b,c,e){return b.indexOf(":")==-1&&(b="$default:"+b),a[b]=new d(c,e),this},iconSet:function(b,c,e){return a[b]=new d(c,e),this},defaultIconSet:function(b,c){var e="$default";return a[e]||(a[e]=new d(b,c)),a[e].viewBoxSize=c||a.defaultViewBoxSize,this},defaultViewBoxSize:function(b){return a.defaultViewBoxSize=b,this},fontSet:function(b,c){return a.fontSets.push({alias:b,fontSet:c||b}),this},defaultFontSet:function(b){return a.defaultFontSet=b?b:"",this},defaultIconSize:function(b){return a.defaultIconSize=b,this},preloadIcons:function(a){var b=this,c=[{id:"md-tabs-arrow",url:"md-tabs-arrow.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 "/></g></svg>'},{id:"md-close",url:"md-close.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z"/></g></svg>'},{id:"md-cancel",url:"md-cancel.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><g><path d="M12 2c-5.53 0-10 4.47-10 10s4.47 10 10 10 10-4.47 10-10-4.47-10-10-10zm5 13.59l-1.41 1.41-3.59-3.59-3.59 3.59-1.41-1.41 3.59-3.59-3.59-3.59 1.41-1.41 3.59 3.59 3.59-3.59 1.41 1.41-3.59 3.59 3.59 3.59z"/></g></svg>'},{id:"md-menu",url:"md-menu.svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 24 24"><path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /></svg>'},{id:"md-toggle-arrow",url:"md-toggle-arrow-svg",svg:'<svg version="1.1" x="0px" y="0px" viewBox="0 0 48 48"><path d="M24 16l-12 12 2.83 2.83 9.17-9.17 9.17 9.17 2.83-2.83z"/><path d="M0 0h48v48h-48z" fill="none"/></svg>'},{id:"md-calendar",url:"md-calendar.svg",svg:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>'}];c.forEach(function(c){b.icon(c.id,c.url),a.put(c.url,c.svg)})},$get:["$http","$q","$log","$templateCache",function(b,c,d,f){return this.preloadIcons(f),e(a,b,c,d,f)}]},e.$inject=["config","$http","$q","$log","$templateCache"]}(),function(){function a(a,d,e,f,g,h,i,j){var k,l=this,m;this.nestLevel=parseInt(d.mdNestLevel,10)||0,this.init=function(c,d){d=d||{},k=c,m=e[0].querySelector("[ng-click],[ng-mouseenter]"),m.setAttribute("aria-expanded","false"),this.isInMenuBar=d.isInMenuBar,this.nestedMenus=g.nodesToArray(k[0].querySelectorAll(".md-nested-menu")),k.on("$mdInterimElementRemove",function(){l.isOpen=!1});var h="menu_container_"+g.nextUid();k.attr("id",h),b.element(m).attr({"aria-owns":h,"aria-haspopup":"true"}),f.$on("$destroy",this.disableHoverListener),k.on("$destroy",function(){a.destroy()})};var n,o,p=[];this.enableHoverListener=function(){p.push(i.$on("$mdMenuOpen",function(a,b){k[0].contains(b[0])&&(l.currentlyOpenMenu=b.controller("mdMenu"),l.isAlreadyOpening=!1,l.currentlyOpenMenu.registerContainerProxy(l.triggerContainerProxy.bind(l)))})),p.push(i.$on("$mdMenuClose",function(a,b){k[0].contains(b[0])&&(l.currentlyOpenMenu=c)})),o=b.element(g.nodesToArray(k[0].children[0].children)),o.on("mouseenter",l.handleMenuItemHover),o.on("mouseleave",l.handleMenuItemMouseLeave)},this.disableHoverListener=function(){while(p.length)p.shift()();o&&o.off("mouseenter",l.handleMenuItemHover),o&&o.off("mouseleave",l.handleMenuMouseLeave)},this.handleMenuItemHover=function(a){if(l.isAlreadyOpening)return;var c=a.target.querySelector("md-menu")||g.getClosest(a.target,"MD-MENU");n=h(function(){c&&(c=b.element(c).controller("mdMenu"));if(l.currentlyOpenMenu&&l.currentlyOpenMenu!=c){var a=l.nestLevel+1;l.currentlyOpenMenu.close(!0,{closeTo:a})}else c&&!c.isOpen&&c.open&&(l.isAlreadyOpening=!0,c.open())},c?100:250);var d=a.currentTarget.querySelector("button:not([disabled])");d&&d.focus()},this.handleMenuItemMouseLeave=function(){n&&(h.cancel(n),n=c)},this.open=function(b){b&&b.stopPropagation(),b&&b.preventDefault();if(l.isOpen)return;l.enableHoverListener(),l.isOpen=!0,m=m||(b?b.target:e[0]),m.setAttribute("aria-expanded","true"),f.$emit("$mdMenuOpen",e),a.show({scope:f,mdMenuCtrl:l,nestLevel:l.nestLevel,element:k,target:m,preserveElement:!0,parent:"body"}).finally(function(){m.setAttribute("aria-expanded","false"),l.disableHoverListener()})},f.$mdOpenMenu=this.open,f.$watch(function(){return l.isOpen},function(a){a?(k.attr("aria-hidden","false"),e[0].classList.add("md-open"),b.forEach(l.nestedMenus,function(a){a.classList.remove("md-open")})):(k.attr("aria-hidden","true"),e[0].classList.remove("md-open")),f.$mdMenuIsOpen=l.isOpen}),this.focusMenuContainer=function(){var a=k[0].querySelector("[md-menu-focus-target]");a||(a=k[0].querySelector(".md-button")),a.focus()},this.registerContainerProxy=function(a){this.containerProxy=a},this.triggerContainerProxy=function(a){this.containerProxy&&this.containerProxy(a)},this.destroy=function(){return l.isOpen?a.destroy():j.when(!1)},this.close=function(c,d){if(!l.isOpen)return;l.isOpen=!1;var g=b.extend({},d,{skipFocus:c});f.$emit("$mdMenuClose",e,g),a.hide(null,d);if(!c){var h=l.restoreFocusTo||e.find("button")[0];h instanceof b.element&&(h=h[0]),h&&h.focus()}},this.positionMode=function(){var a=(d.mdPositionMode||"target").split(" ");return a.length==1&&a.push(a[0]),{left:a[0],top:a[1]}},this.offsets=function(){var a=(d.mdOffset||"0 0").split(" ").map(parseFloat);if(a.length==2)return{left:a[0],top:a[1]};if(a.length==1)return{top:a[0],left:a[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")}}"use strict",b.module("material.components.menu").controller("mdMenuCtrl",a),a.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q"]}(),function(){function a(a){function e(c){c.addClass("md-menu");var e=c.children()[0];e.hasAttribute("ng-click")||(e=e.querySelector("[ng-click],[ng-mouseenter]")||e),e&&(e.nodeName=="MD-BUTTON"||e.nodeName=="BUTTON")&&!e.hasAttribute("type")&&e.setAttribute("type","button");if(c.children().length!=2)throw Error(d+"Expected two children elements.");e&&e.setAttribute("aria-haspopup","true");var g=c[0].querySelectorAll("md-menu"),h=parseInt(c[0].getAttribute("md-nest-level"),10)||0;return g&&b.forEach(a.nodesToArray(g),function(a){a.hasAttribute("md-position-mode")||a.setAttribute("md-position-mode","cascade"),a.classList.add("md-nested-menu"),a.setAttribute("md-nest-level",h+1)}),f}function f(a,d,e,f){var g=f[0],h=f[1]!=c,i=b.element('<div class="md-open-menu-container md-whiteframe-z2"></div>'),j=d.children()[1];j.hasAttribute("role")||j.setAttribute("role","menu"),i.append(j),d.on("$destroy",function(){i.remove()}),d.append(i),i[0].style.display="none",g.init(i,{isInMenuBar:h})}var d="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:e}}"use strict",b.module("material.components.menu").directive("mdMenu",a),a.$inject=["$mdUtil"]}(),function(){function a(a){function e(a,e,g,h,i,j,k,l,m){function o(c,d,e){return e.nestLevel?b.noop:(e.disableParentScroll&&!a.getClosest(e.target,"MD-DIALOG")?e.restoreScroll=a.disableScrollAround(e.element,e.parent):e.disableParentScroll=!1,e.hasBackdrop&&(e.backdrop=a.createBackdrop(c,"md-menu-backdrop md-click-catcher"),m.enter(e.backdrop,h[0].body)),function(){e.backdrop&&e.backdrop.remove(),e.disableParentScroll&&e.restoreScroll()})}function p(a,b,c){function d(){return l(b,{addClass:"md-leave"}).start()}function e(){b.removeClass("md-active"),t(b,c),c.alreadyOpen=!1}return c.cleanupInteraction(),c.cleanupResizing(),c.hideBackdrop(),c.$destroy===!0?e():d().then(e)}function q(c,d,f){function h(){return f.parent.append(d),d[0].style.display="",j(function(a){var b=u(d,f);d.removeClass("md-leave"),l(d,{addClass:"md-active",from:n.toCss(b),to:n.toCss({transform:""})}).start().then(a)})}function m(){if(!f.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");b.extend(f,{alreadyOpen:!1,isRemoved:!1,target:b.element(f.target),parent:b.element(f.parent),menuContentEl:b.element(d[0].querySelector("md-menu-content"))})}function p(){var a=function(a,b){return k.throttle(function(){if(f.isRemoved)return;var c=u(a,b);a.css(n.toCss(c))})}(d,f);return i.addEventListener("resize",a),i.addEventListener("orientationchange",a),function(){i.removeEventListener("resize",a),i.removeEventListener("orientationchange",a)}}function q(){function h(b){var c;switch(b.keyCode){case g.KEY_CODE.ESCAPE:f.mdMenuCtrl.close(!1,{closeAll:!0}),c=!0;break;case g.KEY_CODE.UP_ARROW:!r(b,f.menuContentEl,f,-1)&&!f.nestLevel&&f.mdMenuCtrl.triggerContainerProxy(b),c=!0;break;case g.KEY_CODE.DOWN_ARROW:!r(b,f.menuContentEl,f,1)&&!f.nestLevel&&f.mdMenuCtrl.triggerContainerProxy(b),c=!0;break;case g.KEY_CODE.LEFT_ARROW:f.nestLevel?f.mdMenuCtrl.close():f.mdMenuCtrl.triggerContainerProxy(b),c=!0;break;case g.KEY_CODE.RIGHT_ARROW:var d=a.getClosest(b.target,"MD-MENU");d&&d!=f.parent[0]?b.target.click():f.mdMenuCtrl.triggerContainerProxy(b),c=!0}c&&(b.preventDefault(),b.stopImmediatePropagation())}function i(a){a.preventDefault(),a.stopPropagation(),c.$apply(function(){f.mdMenuCtrl.close(!0,{closeAll:!0})})}function j(b){function g(){c.$apply(function(){f.mdMenuCtrl.close(!0,{closeAll:!0})})}function h(a,b){if(!a)return!1;for(var c=0,d;d=b[c];++c){var e=[d,"data-"+d,"x-"+d];for(var f=0,g;g=e[f];++f)if(a.hasAttribute(g))return!0}return!1}var d=b.target;do{if(d==f.menuContentEl[0])return;if((h(d,["ng-click","ng-href","ui-sref"])||d.nodeName=="BUTTON"||d.nodeName=="MD-BUTTON")&&!h(d,["md-prevent-menu-close"])){var e=a.getClosest(d,"MD-MENU");!d.hasAttribute("disabled")&&(!e||e==f.parent[0])&&g();break}}while(d=d.parentNode)}d.addClass("md-clickable"),f.backdrop&&f.backdrop.on("click",i),f.menuContentEl.on("keydown",h),f.menuContentEl[0].addEventListener("click",j,!0);var b=f.menuContentEl[0].querySelector("[md-menu-focus-target]");if(!b){var e=f.menuContentEl[0].firstElementChild;b=e&&(e.querySelector(".md-button:not([disabled])")||e.firstElementChild)}return b&&b.focus(),function(){d.removeClass("md-clickable"),f.backdrop&&f.backdrop.off("click",i),f.menuContentEl.off("keydown",h),f.menuContentEl[0].removeEventListener("click",j,!0)}}return m(f),e.inherit(f.menuContentEl,f.target),f.cleanupResizing=p(),f.hideBackdrop=o(c,d,f),h().then(function(a){return f.alreadyOpen=!0,f.cleanupInteraction=q(),a})}function r(b,c,d,e){var f=a.getClosest(b.target,"MD-MENU-ITEM"),g=a.nodesToArray(c[0].children),h=g.indexOf(f),i;for(var j=h+e;j>=0&&j<g.length;j+=e){var k=g[j].querySelector(".md-button");i=s(k);if(i)break}return i}function s(a){if(a&&a.getAttribute("tabindex")!=-1)return a.focus(),h[0].activeElement==a}function t(a,b){b.preserveElement?f(a).style.display="none":f(a).parentNode===f(b.parent)&&f(b.parent).removeChild(f(a))}function u(b,e){function A(a){a.top=Math.max(Math.min(a.top,p.bottom-f.offsetHeight),p.top),a.left=Math.max(Math.min(a.left,p.right-f.offsetWidth),p.left)}function B(){for(var a=0;a<g.children.length;++a)if(i.getComputedStyle(g.children[a]).display!="none")return g.children[a]}var f=b[0],g=b[0].firstElementChild,j=g.getBoundingClientRect(),k=h[0].body,l=k.getBoundingClientRect(),m=i.getComputedStyle(g),n=e.target[0].querySelector("[md-menu-origin]")||e.target[0],o=n.getBoundingClientRect(),p={left:l.left+d,top:Math.max(l.top,0)+d,bottom:Math.max(l.bottom,Math.max(l.top,0)+l.height)-d,right:l.right-d},q,r={top:0,left:0,right:0,bottom:0},s={top:0,left:0,right:0,bottom:0},t=e.mdMenuCtrl.positionMode();if(t.top=="target"||t.left=="target"||t.left=="target-right")q=B(),q&&(q=q.firstElementChild||q,q=q.querySelector("[md-menu-align-target]")||q,r=q.getBoundingClientRect(),s={top:parseFloat(f.style.top||0),left:parseFloat(f.style.left||0)});var u={},v="top ";switch(t.top){case"target":u.top=s.top+o.top-r.top;break;case"cascade":u.top=o.top-parseFloat(m.paddingTop)-n.style.top;break;case"bottom":u.top=o.top+o.height;break;default:throw new Error('Invalid target mode "'+t.top+'" specified for md-menu on Y axis.')}switch(t.left){case"target":u.left=s.left+o.left-r.left,v+="left";break;case"target-right":u.left=o.right-j.width+(j.right-r.right),v+="right";break;case"cascade":var w=o.right+j.width<p.right;u.left=w?o.right-n.style.left:o.left-n.style.left-j.width,v+=w?"left":"right";break;case"left":u.left=o.left,v+="left";break;default:throw new Error('Invalid target mode "'+t.left+'" specified for md-menu on X axis.')}var x=e.mdMenuCtrl.offsets();u.top+=x.top,u.left+=x.left,A(u);var y=Math.round(100*Math.min(o.width/f.offsetWidth,1))/100,z=Math.round(100*Math.min(o.height/f.offsetHeight,1))/100;return{top:Math.round(u.top),left:Math.round(u.left),transform:e.alreadyOpen?c:a.supplant("scale({0},{1})",[y,z]),transformOrigin:v}}var n=a.dom.animator;return{parent:"body",onShow:q,onRemove:p,hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,skipHide:!0,themable:!0}}function f(a){return a instanceof b.element&&(a=a[0]),a}var d=8;return e.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate"],a("$mdMenu").setDefaults({methods:["target"],options:e})}"use strict",b.module("material.components.menu").provider("$mdMenu",a),a.$inject=["$$interimElementProvider"]}(),function(){function d(c,d,e,f,g,h,i,j){this.$element=e,this.$attrs=f,this.$mdConstant=g,this.$mdUtil=i,this.$document=h,this.$scope=c,this.$rootScope=d,this.$timeout=j;var k=this;b.forEach(a,function(a){k[a]=b.bind(k,k[a])})}"use strict",b.module("material.components.menuBar").controller("MenuBarController",d);var a=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];d.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],d.prototype.init=function(){var a=this.$element,b=this.$mdUtil,d=this.$scope,e=this,f=[];a.on("keydown",this.handleKeyDown),this.parentToolbar=b.getClosest(a,"MD-TOOLBAR"),f.push(this.$rootScope.$on("$mdMenuOpen",function(b,c){e.getMenus().indexOf(c[0])!=-1&&(a[0].classList.add("md-open"),c[0].classList.add("md-open"),e.currentlyOpenMenu=c.controller("mdMenu"),e.currentlyOpenMenu.registerContainerProxy(e.handleKeyDown),e.enableOpenOnHover())})),f.push(this.$rootScope.$on("$mdMenuClose",function(d,f,g){var h=e.getMenus();h.indexOf(f[0])!=-1&&(a[0].classList.remove("md-open"),f[0].classList.remove("md-open"));if(a[0].contains(f[0])){var i=f[0];while(i&&h.indexOf(i)==-1)i=b.getClosest(i,"MD-MENU",!0);i&&(g.skipFocus||i.querySelector("button:not([disabled])").focus(),e.currentlyOpenMenu=c,e.disableOpenOnHover(),e.setKeyboardMode(!0))}})),d.$on("$destroy",function(){while(f.length)f.shift()()}),this.setKeyboardMode(!0)},d.prototype.setKeyboardMode=function(a){a?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},d.prototype.enableOpenOnHover=function(){if(this.openOnHoverEnabled)return;this.openOnHoverEnabled=!0;var a;if(a=this.parentToolbar)a.dataset.mdRestoreStyle=a.getAttribute("style"),a.style.position="relative",a.style.zIndex=100;b.element(this.getMenus()).on("mouseenter",this.handleMenuHover)},d.prototype.handleMenuHover=function(a){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(a)},d.prototype.disableOpenOnHover=function(){if(!this.openOnHoverEnabled)return;this.openOnHoverEnabled=!1;var a;if(a=this.parentToolbar)a.style.cssText=a.dataset.mdRestoreStyle||"";b.element(this.getMenus()).off("mouseenter",this.handleMenuHover)},d.prototype.scheduleOpenHoveredMenu=function(a){var c=b.element(a.currentTarget),d=c.controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(d)},d.prototype.scheduleOpenMenu=function(a){var b=this,d=this.$timeout;a!=b.currentlyOpenMenu&&(d.cancel(b.pendingMenuOpen),b.pendingMenuOpen=d(function(){b.pendingMenuOpen=c,b.currentlyOpenMenu&&b.currentlyOpenMenu.close(!0,{closeAll:!0}),a.open()},200,!1))},d.prototype.handleKeyDown=function(a){var c=this.$mdConstant.KEY_CODE,d=this.currentlyOpenMenu,e=d&&d.isOpen;this.setKeyboardMode(!0);var f,g,h;switch(a.keyCode){case c.DOWN_ARROW:d?d.focusMenuContainer():this.openFocusedMenu(),f=!0;break;case c.UP_ARROW:d&&d.close(),f=!0;break;case c.LEFT_ARROW:g=this.focusMenu(-1),e&&(h=b.element(g).controller("mdMenu"),this.scheduleOpenMenu(h)),f=!0;break;case c.RIGHT_ARROW:g=this.focusMenu(1),e&&(h=b.element(g).controller("mdMenu"),this.scheduleOpenMenu(h)),f=!0}f&&(a&&a.preventDefault&&a.preventDefault(),a&&a.stopImmediatePropagation&&a.stopImmediatePropagation())},d.prototype.focusMenu=function(a){var b=this.getMenus(),c=this.getFocusedMenuIndex();c==-1&&(c=this.getOpenMenuIndex());var d=!1;if(c==-1)c=0;else if(a<0&&c>0||a>0&&c<b.length-a)c+=a,d=!0;if(d)return b[c].querySelector("button").focus(),b[c]},d.prototype.openFocusedMenu=function(){var a=this.getFocusedMenu();a&&b.element(a).controller("mdMenu").open()},d.prototype.getMenus=function(){var a=this.$element;return this.$mdUtil.nodesToArray(a[0].children).filter(function(a){return a.nodeName=="MD-MENU"})},d.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},d.prototype.getFocusedMenuIndex=function(){var a=this.$mdUtil,b=a.getClosest(this.$document[0].activeElement,"MD-MENU");if(!b)return-1;var c=this.getMenus().indexOf(b);return c},d.prototype.getOpenMenuIndex=function(){var a=this.getMenus();for(var b=0;b<a.length;++b)if(a[b].classList.contains("md-open"))return b;return-1}}(),function(){function a(a,c){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function d(d,e){return e.ariaRole||d[0].setAttribute("role","menubar"),b.forEach(d[0].children,function(c){if(c.nodeName=="MD-MENU"){c.hasAttribute("md-position-mode")||(c.setAttribute("md-position-mode","left bottom"),c.querySelector("button,a").setAttribute("role","menuitem"));var d=a.nodesToArray(c.querySelectorAll("md-menu-content"));b.forEach(d,function(a){a.classList.add("md-menu-bar-menu"),a.classList.add("md-dense"),a.hasAttribute("width")||a.setAttribute("width",5)})}}),function(a,b,d,e){c(a,b),e.init()}}}}"use strict",b.module("material.components.menuBar").directive("mdMenuBar",a),a.$inject=["$mdUtil","$mdTheming"]}(),function(){function a(){return{restrict:"E",compile:function(a,b){b.role||a[0].setAttribute("role","separator")}}}"use strict",b.module("material.components.menuBar").directive("mdMenuDivider",a)}(),function(){function a(a,b,c){this.$element=b,this.$attrs=c,this.$scope=a}"use strict",b.module("material.components.menuBar").controller("MenuItemController",a),a.$inject=["$scope","$element","$attrs"],a.prototype.init=function(a){var b=this.$element,c=this.$attrs;this.ngModel=a;if(c.type=="checkbox"||c.type=="radio")this.mode=c.type,this.iconEl=b[0].children[0],this.buttonEl=b[0].children[1],a&&this.initClickListeners()},a.prototype.clearNgAria=function(){var a=this.$element[0],c=["role","tabindex","aria-invalid","aria-checked"];b.forEach(c,function(b){a.removeAttribute(b)})},a.prototype.initClickListeners=function(){function k(){if(g=="radio"){var a=e.ngValue?d.$eval(e.ngValue):e.value;return c.$modelValue==a}return c.$modelValue}function l(a){a?i.off("click",j):i.on("click",j)}var a=this,c=this.ngModel,d=this.$scope,e=this.$attrs,f=this.$element,g=this.mode;this.handleClick=b.bind(this,this.handleClick);var h=this.iconEl,i=b.element(this.buttonEl),j=this.handleClick;e.$observe("disabled",l),l(e.disabled),c.$render=function(){a.clearNgAria(),k()?(h.style.display="",i.attr("aria-checked","true")):(h.style.display="none",i.attr("aria-checked","false"))},d.$$postDigest(c.$render)},a.prototype.handleClick=function(a){var b=this.mode,c=this.ngModel,d=this.$attrs,e;b=="checkbox"?e=!c.$modelValue:b=="radio"&&(e=d.ngValue?this.$scope.$eval(d.ngValue):d.value),c.$setViewValue(e),c.$render()}}(),function(){function a(){return{require:["mdMenuItem","?ngModel"],priority:210,compile:function(a,c){function f(c,d,e){e=e||a,e instanceof b.element&&(e=e[0]),e.hasAttribute(c)||e.setAttribute(c,d)}function g(b){if(a[0].hasAttribute(b)){var c=a[0].getAttribute(b);e[0].setAttribute(b,c),a[0].removeAttribute(b)}}if(c.type=="checkbox"||c.type=="radio"){var d=a[0].textContent,e=b.element('<md-button type="button"></md-button>');e.html(d),e.attr("tabindex","0"),a.html(""),a.append(b.element('<md-icon md-svg-icon="check"></md-icon>')),a.append(e),a[0].classList.add("md-indent"),f("role",c.type=="checkbox"?"menuitemcheckbox":"menuitemradio",e),b.forEach(["ng-disabled"],g)}else f("role","menuitem",a[0].querySelector("md-button,button,a"));return function(a,b,c,d){var e=d[0],f=d[1];e.init(f)}},controller:"MenuItemController"}}"use strict",b.module("material.components.menuBar").directive("mdMenuItem",a)}(),function(){function a(){function a(a,d,e,f){if(!f)return;var g=f.getTabElementIndex(d),h=c(d,"md-tab-body").remove(),i=c(d,"md-tab-label").remove(),j=f.insertTab({scope:a,parent:a.$parent,index:g,element:d,template:h.html(),label:i.html()},g);a.select=a.select||b.noop,a.deselect=a.deselect||b.noop,a.$watch("active",function(a){a&&f.select(j.getIndex())}),a.$watch("disabled",function(){f.refreshIndex()}),a.$watch(function(){return f.getTabElementIndex(d)},function(a){j.index=a,f.updateTabOrder()}),a.$on("$destroy",function(){f.removeTab(j)})}function c(a,c){var d=a[0].children;for(var e=0,f=d.length;e<f;e++){var g=d[e];if(g.tagName===c.toUpperCase())return b.element(g)}return b.element()}return{require:"^?mdTabs",terminal:!0,compile:function(d,e){var f=c(d,"md-tab-label"),g=c(d,"md-tab-body");if(f.length==0){f=b.element("<md-tab-label></md-tab-label>"),e.label?f.text(e.label):f.append(d.contents());if(g.length==0){var h=d.contents().detach();g=b.element("<md-tab-body></md-tab-body>"),g.append(h)}}return d.append(f),g.html()&&d.append(g),a},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"}}}"use strict",b.module("material.components.tabs").directive("mdTab",a)}(),function(){function a(){return{require:"^?mdTabs",link:function a(a,b,c,d){if(!d)return;d.attachRipple(a,b)}}}"use strict",b.module("material.components.tabs").directive("mdTabItem",a)}(),function(){function a(){return{terminal:!0}}"use strict",b.module("material.components.tabs").directive("mdTabLabel",a)}(),function(){function a(a){return{restrict:"A",compile:function(b,c){var d=a(c.mdTabScroll,null,!0);return function(a,b){b.on("mousewheel",function(b){a.$apply(function(){d(a,{$event:b})})})}}}}"use strict",b.module("material.components.tabs").directive("mdTabScroll",a),a.$inject=["$parse"]}(),function(){function a(a,d,e,f,g,h,i,j,k,l){function s(){m.selectedIndex=m.selectedIndex||0,t(),v(),u(),l(d),h.nextTick(function(){bj(),bf(),bk(),m.tabs[m.selectedIndex]&&m.tabs[m.selectedIndex].scope.select(),r=!0,_()})}function t(){var a=j.$mdTabsTemplate,c=b.element(o.data);c.html(a),k(c.contents())(m.parent),delete j.$mdTabsTemplate}function u(){b.element(e).on("resize",O),a.$on("$destroy",y)}function v(){a.$watch("$mdTabsCtrl.selectedIndex",G)}function w(a,b){var c=j.$normalize("md-"+a);b&&$(a,b),j.$observe(c,function(b){m[a]=b})}function x(a,b){function d(b){m[a]=b!=="false"}var c=j.$normalize("md-"+a);b&&$(a,b),j.hasOwnProperty(c)&&d(j[c]),j.$observe(c,d)}function y(){q=!0,b.element(e).off("resize",O)}function z(a){b.element(o.wrapper).toggleClass("md-stretch-tabs",W()),bk()}function A(a){m.shouldCenterTabs=X()}function B(a,c){a!==c&&(b.forEach(o.tabs,function(b){b.style.maxWidth=a+"px"}),h.nextTick(m.updateInkBarStyles))}function C(a,b){a!==b&&(m.maxTabWidth=bb(),m.shouldCenterTabs=X(),h.nextTick(function(){m.maxTabWidth=bb(),bf(m.selectedIndex)}))}function D(a){d[a?"removeClass":"addClass"]("md-no-tab-content")}function E(c){var d=m.shouldCenterTabs?"":"-"+c+"px";b.element(o.paging).css(f.CSS.TRANSFORM,"translate3d("+d+", 0, 0)"),a.$broadcast("$mdTabsPaginationChanged")}function F(a,b){if(a===b)return;if(!o.tabs[a])return;bf(),be()}function G(b,c){if(b===c)return;m.selectedIndex=Z(b),m.lastSelectedIndex=c,m.updateInkBarStyles(),bj(),bf(b),a.$broadcast("$mdTabsChanged"),m.tabs[c]&&m.tabs[c].scope.deselect(),m.tabs[b]&&m.tabs[b].scope.select()}function H(a){var b=d[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(b,a[0])}function I(){if(I.watcher)return;I.watcher=a.$watch(function(){h.nextTick(function(){if(!I.watcher)return;d.prop("offsetParent")&&(I.watcher(),I.watcher=null,O())},!1)})}function J(a){switch(a.keyCode){case f.KEY_CODE.LEFT_ARROW:a.preventDefault(),bd(-1,!0);break;case f.KEY_CODE.RIGHT_ARROW:a.preventDefault(),bd(1,!0);break;case f.KEY_CODE.SPACE:case f.KEY_CODE.ENTER:a.preventDefault(),n||(m.selectedIndex=m.focusIndex)}m.lastClick=!1}function K(a){n||(m.focusIndex=m.selectedIndex=a),m.lastClick=!0,h.nextTick(function(){m.tabs[a].element.triggerHandler("click")},!1)}function L(a){if(!m.shouldPaginate)return;a.preventDefault(),m.offsetLeft=bm(m.offsetLeft-a.wheelDelta)}function M(){var a=o.canvas.clientWidth,b=a+m.offsetLeft,c,d;for(c=0;c<o.tabs.length;c++){d=o.tabs[c];if(d.offsetLeft+d.offsetWidth>b)break}m.offsetLeft=bm(d.offsetLeft)}function N(){var a,b;for(a=0;a<o.tabs.length;a++){b=o.tabs[a];if(b.offsetLeft+b.offsetWidth>=m.offsetLeft)break}m.offsetLeft=bm(b.offsetLeft+b.offsetWidth-o.canvas.clientWidth)}function O(){m.lastSelectedIndex=m.selectedIndex,m.offsetLeft=bm(m.offsetLeft),h.nextTick(function(){m.updateInkBarStyles(),_()})}function P(a){b.element(o.inkBar).toggleClass("ng-hide",a)}function Q(a){d.toggleClass("md-dynamic-height",a)}function R(a){if(q)return;var b=m.selectedIndex,c=m.tabs.splice(a.getIndex(),1)[0];bi(),m.selectedIndex===b&&(c.scope.deselect(),m.tabs[m.selectedIndex]&&m.tabs[m.selectedIndex].scope.select()),h.nextTick(function(){_(),m.offsetLeft=bm(m.offsetLeft)})}function S(a,c){var d=r,e={getIndex:function(){return m.tabs.indexOf(f)},isActive:function(){return this.getIndex()===m.selectedIndex},isLeft:function(){return this.getIndex()<m.selectedIndex},isRight:function(){return this.getIndex()>m.selectedIndex},shouldRender:function(){return!m.noDisconnect||this.isActive()},hasFocus:function(){return!m.lastClick&&m.hasFocus&&this.getIndex()===m.focusIndex},id:h.nextUid()},f=b.extend(e,a);return b.isDefined(c)?m.tabs.splice(c,0,f):m.tabs.push(f),bg(),bh(),h.nextTick(function(){_(),d&&m.autoselect&&h.nextTick(function(){h.nextTick(function(){K(m.tabs.indexOf(f))})})}),f}function T(){var a={};return a.wrapper=d[0].getElementsByTagName("md-tabs-wrapper")[0],a.data=d[0].getElementsByTagName("md-tab-data")[0],a.canvas=a.wrapper.getElementsByTagName("md-tabs-canvas")[0],a.paging=a.canvas.getElementsByTagName("md-pagination-wrapper")[0],a.tabs=a.paging.getElementsByTagName("md-tab-item"),a.dummies=a.canvas.getElementsByTagName("md-dummy-tab"),a.inkBar=a.paging.getElementsByTagName("md-ink-bar")[0],a.contentsWrapper=d[0].getElementsByTagName("md-tabs-content-wrapper")[0],a.contents=a.contentsWrapper.getElementsByTagName("md-tab-content"),a}function U(){return m.offsetLeft>0}function V(){var a=o.tabs[o.tabs.length-1];return a&&a.offsetLeft+a.offsetWidth>o.canvas.clientWidth+m.offsetLeft}function W(){switch(m.stretchTabs){case"always":return!0;case"never":return!1;default:return!m.shouldPaginate&&e.matchMedia("(max-width: 600px)").matches}}function X(){return m.centerTabs&&!m.shouldPaginate}function Y(){if(m.noPagination||!r)return!1;var a=d.prop("clientWidth");return b.forEach(T().dummies,function(b){a-=b.offsetWidth}),a<0}function Z(a){if(a===-1)return-1;var b=Math.max(m.tabs.length-a,a),c,d;for(c=0;c<=b;c++){d=m.tabs[a+c];if(d&&d.scope.disabled!==!0)return d.getIndex();d=m.tabs[a-c];if(d&&d.scope.disabled!==!0)return d.getIndex()}return a}function $(a,b,c){Object.defineProperty(m,a,{get:function(){return c},set:function(a){var d=c;c=a,b&&b(a,d)}})}function _(){W()||ba(),m.maxTabWidth=bb(),m.shouldPaginate=Y()}function ba(){var a=1;b.forEach(T().dummies,function(b){a+=Math.ceil(b.offsetWidth)}),b.element(o.paging).css("width",a+"px")}function bb(){return d.prop("clientWidth")}function bc(){var a=m.tabs[m.selectedIndex],b=m.tabs[m.focusIndex];m.tabs=m.tabs.sort(function(a,b){return a.index-b.index}),m.selectedIndex=m.tabs.indexOf(a),m.focusIndex=m.tabs.indexOf(b)}function bd(a,b){var c,d=b?"focusIndex":"selectedIndex",e=m[d];for(c=e+a;m.tabs[c]&&m.tabs[c].scope.disabled;c+=a);m.tabs[c]&&(m[d]=c)}function be(){T().dummies[m.focusIndex].focus()}function bf(a){a==null&&(a=m.focusIndex);if(!o.tabs[a])return;if(m.shouldCenterTabs)return;var b=o.tabs[a],c=b.offsetLeft,d=b.offsetWidth+c;m.offsetLeft=Math.max(m.offsetLeft,bm(d-o.canvas.clientWidth+64)),m.offsetLeft=Math.min(m.offsetLeft,bm(c))}function bg(){p.forEach(function(a){h.nextTick(a)}),p=[]}function bh(){var a=!1;b.forEach(m.tabs,function(b){b.template&&(a=!0)}),m.hasContent=a}function bi(){m.selectedIndex=Z(m.selectedIndex),m.focusIndex=Z(m.focusIndex)}function bj(){if(!m.dynamicHeight)return d.css("height","");if(!m.tabs.length)return p.push(bj);var a=o.contents[m.selectedIndex],b=a?a.offsetHeight:0,e=o.wrapper.offsetHeight,f=b+e,g=d.prop("clientHeight");if(g===f)return;d.attr("md-align-tabs")==="bottom"&&(g-=e,f-=e,d.attr("md-border-bottom")!==c&&++g),n=!0;var j={height:g+"px"},k={height:f+"px"};d.css(j),i(d,{from:j,to:k,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){d.css({transition:"none",height:""}),h.nextTick(function(){d.css("transition","")}),n=!1})}function bk(){if(!o.tabs[m.selectedIndex]){b.element(o.inkBar).css({left:"auto",right:"auto"});return}if(!m.tabs.length)return p.push(m.updateInkBarStyles);if(!d.prop("offsetParent"))return I();var a=m.selectedIndex,c=o.paging.offsetWidth,e=o.tabs[a],f=e.offsetLeft,g=c-f-e.offsetWidth,i;m.shouldCenterTabs&&(i=Array.prototype.slice.call(o.tabs).reduce(function(a,b){return a+b.offsetWidth},0),c>i&&h.nextTick(bk,!1)),bl(),b.element(o.inkBar).css({left:f+"px",right:g+"px"})}function bl(){var a=m.selectedIndex,c=m.lastSelectedIndex,d=b.element(o.inkBar);if(!b.isNumber(c))return;d.toggleClass("md-left",a<c).toggleClass("md-right",a>c)}function bm(a){if(!o.tabs.length||!m.shouldPaginate)return 0;var b=o.tabs[o.tabs.length-1],c=b.offsetLeft+b.offsetWidth;return a=Math.max(0,a),a=Math.min(c-o.canvas.clientWidth,a),a}function bn(a,c){var d={colorElement:b.element(o.inkBar)};g.attach(a,c,d)}var m=this,n=!1,o=T(),p=[],q=!1,r=!1;w("stretchTabs",z),$("focusIndex",F,m.selectedIndex||0),$("offsetLeft",E,0),$("hasContent",D,!1),$("maxTabWidth",B,bb()),$("shouldPaginate",C,!1),x("noInkBar",P),x("dynamicHeight",Q),x("noPagination"),x("swipeContent"),x("noDisconnect"),x("autoselect"),x("centerTabs",A,!1),x("enableDisconnect"),m.scope=a,m.parent=a.$parent,m.tabs=[],m.lastSelectedIndex=null,m.hasFocus=!1,m.lastClick=!0,m.shouldCenterTabs=X(),m.updatePagination=h.debounce(_,100),m.redirectFocus=be,m.attachRipple=bn,m.insertTab=S,m.removeTab=R,m.select=K,m.scroll=L,m.nextPage=M,m.previousPage=N,m.keydown=J,m.canPageForward=V,m.canPageBack=U,m.refreshIndex=bi,m.incrementIndex=bd,m.getTabElementIndex=H,m.updateInkBarStyles=h.debounce(bk,100),m.updateTabOrder=h.debounce(bc,100),s()}"use strict",b.module("material.components.tabs").controller("MdTabsController",a),a.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming"]}(),function(){function a(){return{scope:{selectedIndex:"=?mdSelected"},template:function(a,b){return b.$mdTabsTemplate=a.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-icon="md-tabs-arrow"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-icon="md-tabs-arrow"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" aria-activedescendant="tab-item-{{$mdTabsCtrl.tabs[$mdTabsCtrl.focusIndex].id}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)"> <md-tab-item tabindex="-1" class="md-tab" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" aria-controls="tab-content-{{::tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-class="{ \'md-active\':    tab.isActive(), \'md-focused\':   tab.hasFocus(), \'md-disabled\':  tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <div class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" id="tab-item-{{::tab.id}}" role="tab" aria-controls="tab-content-{{::tab.id}}" aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </div> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0"> <md-tab-content id="tab-content-{{::tab.id}}" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ng-if="$mdTabsCtrl.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\':        tab.isActive(), \'md-left\':          tab.isLeft(), \'md-right\':         tab.isRight(), \'md-no-scroll\':     $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}"use strict",b.module("material.components.tabs").directive("mdTabs",a)}(),function(){function a(a,b){function c(c,d,e,f){function h(){c.$watch("connected",function(a){a===!1?i():j()}),c.$on("$destroy",j)}function i(){f.enableDisconnect&&b.disconnectScope(g)}function j(){f.enableDisconnect&&b.reconnectScope(g)}if(!f)return;var g=f.enableDisconnect?c.compileScope.$new():c.compileScope;return d.html(c.template),a(d.contents())(g),d.on("DOMSubtreeModified",function(){f.updatePagination(),f.updateInkBarStyles()}),b.nextTick(h)}return{restrict:"A",link:c,scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}"use strict",b.module("material.components.tabs").directive("mdTabsTemplate",a),a.$inject=["$compile","$mdUtil"]}(),function(){b.module("material.core").constant("$MD_THEME_CSS","md-autocomplete.md-THEME_NAME-theme {  background: '{{background-50}}'; }  md-autocomplete.md-THEME_NAME-theme[disabled] {    background: '{{background-100}}'; }  md-autocomplete.md-THEME_NAME-theme button md-icon path {    fill: '{{background-600}}'; }  md-autocomplete.md-THEME_NAME-theme button:after {    background: '{{background-600-0.3}}'; }.md-autocomplete-suggestions-container.md-THEME_NAME-theme {  background: '{{background-50}}'; }  .md-autocomplete-suggestions-container.md-THEME_NAME-theme li {    color: '{{background-900}}'; }    .md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight {      color: '{{background-600}}'; }    .md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover, .md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected {      background: '{{background-200}}'; }md-backdrop {  background-color: '{{background-900-0.0}}'; }  md-backdrop.md-opaque.md-THEME_NAME-theme {    background-color: '{{background-900-1.0}}'; }md-bottom-sheet.md-THEME_NAME-theme {  background-color: '{{background-50}}';  border-top-color: '{{background-300}}'; }  md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item {    color: '{{foreground-1}}'; }  md-bottom-sheet.md-THEME_NAME-theme .md-subheader {    background-color: '{{background-50}}'; }  md-bottom-sheet.md-THEME_NAME-theme .md-subheader {    color: '{{foreground-1}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]):hover,.md-button.md-THEME_NAME-theme:not([disabled]):hover {  background-color: '{{background-500-0.2}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]).md-focused {  background-color: '{{background-500-0.2}}'; }a.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover,.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover {  background-color: transparent; }a.md-button.md-THEME_NAME-theme.md-fab,.md-button.md-THEME_NAME-theme.md-fab {  background-color: '{{accent-color}}';  color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab md-icon,  .md-button.md-THEME_NAME-theme.md-fab md-icon {    color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {    background-color: '{{accent-color}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {    background-color: '{{accent-A700}}'; }a.md-button.md-THEME_NAME-theme.md-primary,.md-button.md-THEME_NAME-theme.md-primary {  color: '{{primary-color}}'; }  a.md-button.md-THEME_NAME-theme.md-primary.md-raised, a.md-button.md-THEME_NAME-theme.md-primary.md-fab,  .md-button.md-THEME_NAME-theme.md-primary.md-raised,  .md-button.md-THEME_NAME-theme.md-primary.md-fab {    color: '{{primary-contrast}}';    background-color: '{{primary-color}}'; }    a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,    .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon,    .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon {      color: '{{primary-contrast}}'; }    a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,    .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover,    .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover {      background-color: '{{primary-color}}'; }    a.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused {      background-color: '{{primary-600}}'; }  a.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon,  .md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon {    color: '{{primary-color}}'; }a.md-button.md-THEME_NAME-theme.md-fab,.md-button.md-THEME_NAME-theme.md-fab {  background-color: '{{accent-color}}';  color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon {    color: '{{accent-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover {    background-color: '{{accent-color}}'; }  a.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,  .md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused {    background-color: '{{accent-A700}}'; }a.md-button.md-THEME_NAME-theme.md-raised,.md-button.md-THEME_NAME-theme.md-raised {  color: '{{background-900}}';  background-color: '{{background-50}}'; }  a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon,  .md-button.md-THEME_NAME-theme.md-raised:not([disabled]) .md-icon {    color: '{{background-contrast}}'; }  a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover,  .md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover {    background-color: '{{background-50}}'; }  a.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused,  .md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused {    background-color: '{{background-200}}'; }a.md-button.md-THEME_NAME-theme.md-warn,.md-button.md-THEME_NAME-theme.md-warn {  color: '{{warn-color}}'; }  a.md-button.md-THEME_NAME-theme.md-warn.md-raised, a.md-button.md-THEME_NAME-theme.md-warn.md-fab,  .md-button.md-THEME_NAME-theme.md-warn.md-raised,  .md-button.md-THEME_NAME-theme.md-warn.md-fab {    color: '{{warn-contrast}}';    background-color: '{{warn-color}}'; }    a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,    .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon,    .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon {      color: '{{warn-contrast}}'; }    a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,    .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover,    .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover {      background-color: '{{warn-color}}'; }    a.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused {      background-color: '{{warn-700}}'; }  a.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon,  .md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon {    color: '{{warn-color}}'; }a.md-button.md-THEME_NAME-theme.md-accent,.md-button.md-THEME_NAME-theme.md-accent {  color: '{{accent-color}}'; }  a.md-button.md-THEME_NAME-theme.md-accent.md-raised, a.md-button.md-THEME_NAME-theme.md-accent.md-fab,  .md-button.md-THEME_NAME-theme.md-accent.md-raised,  .md-button.md-THEME_NAME-theme.md-accent.md-fab {    color: '{{accent-contrast}}';    background-color: '{{accent-color}}'; }    a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,    .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon,    .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon {      color: '{{accent-contrast}}'; }    a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,    .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover,    .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover {      background-color: '{{accent-color}}'; }    a.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused, a.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,    .md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused {      background-color: '{{accent-700}}'; }  a.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon,  .md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon {    color: '{{accent-color}}'; }a.md-button.md-THEME_NAME-theme[disabled], a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled], a.md-button.md-THEME_NAME-theme.md-accent[disabled], a.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled] {  color: '{{foreground-3}}' !important;  cursor: default; }  a.md-button.md-THEME_NAME-theme[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon, a.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,  .md-button.md-THEME_NAME-theme[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,  .md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon {    color: '{{foreground-3}}'; }a.md-button.md-THEME_NAME-theme.md-raised[disabled], a.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled] {  background-color: '{{foreground-4}}'; }a.md-button.md-THEME_NAME-theme[disabled],.md-button.md-THEME_NAME-theme[disabled] {  background-color: transparent; }md-card.md-THEME_NAME-theme {  background-color: '{{background-color}}';  border-radius: 2px; }  md-card.md-THEME_NAME-theme .md-card-image {    border-radius: 2px 2px 0 0; }  md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon {    color: '{{background-color}}';    background-color: '{{foreground-3}}'; }  md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead {    color: '{{foreground-2}}'; }  md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead {    color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme .md-ripple {  color: '{{accent-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple {  color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before {  background-color: '{{accent-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme .md-ink-ripple {  color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple {  color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme .md-icon {  border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon {  background-color: '{{accent-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after {  border-color: '{{accent-contrast-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple {  color: '{{primary-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple {  color: '{{background-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple {  color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple {  color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-icon {  border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon {  background-color: '{{primary-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before {  background-color: '{{primary-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after {  border-color: '{{primary-contrast-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple {  color: '{{warn-600}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple {  color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple {  color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-icon {  border-color: '{{foreground-2}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon {  background-color: '{{warn-color-0.87}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before {  background-color: '{{warn-color-0.26}}'; }md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after {  border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-icon {  border-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon {  background-color: '{{foreground-3}}'; }md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after {  border-color: '{{background-200}}'; }md-checkbox.md-THEME_NAME-theme[disabled] .md-label {  color: '{{foreground-3}}'; }md-chips.md-THEME_NAME-theme .md-chips {  box-shadow: 0 1px '{{background-300}}'; }  md-chips.md-THEME_NAME-theme .md-chips.md-focused {    box-shadow: 0 2px '{{primary-color}}'; }md-chips.md-THEME_NAME-theme .md-chip {  background: '{{background-300}}';  color: '{{background-800}}'; }  md-chips.md-THEME_NAME-theme .md-chip.md-focused {    background: '{{primary-color}}';    color: '{{primary-contrast}}'; }    md-chips.md-THEME_NAME-theme .md-chip.md-focused md-icon {      color: '{{primary-contrast}}'; }md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path {  fill: '{{background-500}}'; }.md-contact-suggestion span.md-contact-email {  color: '{{background-400}}'; }md-content.md-THEME_NAME-theme {  color: '{{foreground-1}}';  background-color: '{{background-color}}'; }/** Theme styles for mdCalendar. */.md-calendar.md-THEME_NAME-theme {  color: '{{foreground-1}}'; }  .md-calendar.md-THEME_NAME-theme tr:last-child td {    border-bottom-color: '{{background-200}}'; }.md-THEME_NAME-theme .md-calendar-day-header {  background: '{{background-hue-1}}';  color: '{{foreground-1}}'; }.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator {  border: 1px solid '{{primary-500}}'; }.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled {  color: '{{primary-500-0.6}}'; }.md-THEME_NAME-theme .md-calendar-date.md-focus .md-calendar-date-selection-indicator {  background: '{{background-hue-1}}'; }.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover {  background: '{{background-hue-1}}'; }.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator {  background: '{{primary-500}}';  color: '{{primary-500-contrast}}';  border-color: transparent; }.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled {  color: '{{foreground-3}}'; }/** Theme styles for mdDatepicker. */md-datepicker.md-THEME_NAME-theme {  background: '{{background-color}}'; }.md-THEME_NAME-theme .md-datepicker-input {  color: '{{background-contrast}}';  background: '{{background-color}}'; }  .md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder, .md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder, .md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder, .md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder {    color: \"{{foreground-3}}\"; }.md-THEME_NAME-theme .md-datepicker-input-container {  border-bottom-color: '{{background-300}}'; }  .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused {    border-bottom-color: '{{primary-500}}'; }  .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid {    border-bottom-color: '{{warn-A700}}'; }.md-THEME_NAME-theme .md-datepicker-calendar-pane {  border-color: '{{background-300}}'; }.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle {  border-top-color: '{{foreground-3}}'; }.md-THEME_NAME-theme .md-datepicker-triangle-button:hover .md-datepicker-expand-triangle {  border-top-color: '{{foreground-2}}'; }.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon {  fill: '{{primary-500}}'; }.md-THEME_NAME-theme .md-datepicker-calendar,.md-THEME_NAME-theme .md-datepicker-input-mask-opaque {  background: '{{background-color}}'; }md-dialog.md-THEME_NAME-theme {  border-radius: 4px;  background-color: '{{background-color}}'; }  md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions, md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions {    border-top-color: '{{foreground-4}}'; }md-divider.md-THEME_NAME-theme {  border-top-color: '{{foreground-4}}'; }.layout-row > md-divider.md-THEME_NAME-theme {  border-right-color: '{{foreground-4}}'; }md-icon.md-THEME_NAME-theme {  color: '{{foreground-2}}'; }  md-icon.md-THEME_NAME-theme.md-primary {    color: '{{primary-color}}'; }  md-icon.md-THEME_NAME-theme.md-accent {    color: '{{accent-color}}'; }  md-icon.md-THEME_NAME-theme.md-warn {    color: '{{warn-color}}'; }md-input-container.md-THEME_NAME-theme .md-input {  color: '{{foreground-1}}';  border-color: '{{foreground-4}}';  text-shadow: '{{foreground-shadow}}'; }  md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder, md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder, md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder {    color: \"{{foreground-3}}\"; }md-input-container.md-THEME_NAME-theme > md-icon {  color: '{{foreground-1}}'; }md-input-container.md-THEME_NAME-theme label,md-input-container.md-THEME_NAME-theme .md-placeholder {  text-shadow: '{{foreground-shadow}}';  color: '{{foreground-3}}'; }md-input-container.md-THEME_NAME-theme ng-messages :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [ng-messages] :not(.md-char-counter),md-input-container.md-THEME_NAME-theme ng-message :not(.md-char-counter), md-input-container.md-THEME_NAME-theme data-ng-message :not(.md-char-counter), md-input-container.md-THEME_NAME-theme x-ng-message :not(.md-char-counter),md-input-container.md-THEME_NAME-theme [ng-message] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [data-ng-message] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [x-ng-message] :not(.md-char-counter),md-input-container.md-THEME_NAME-theme [ng-message-exp] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [data-ng-message-exp] :not(.md-char-counter), md-input-container.md-THEME_NAME-theme [x-ng-message-exp] :not(.md-char-counter) {  color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label {  color: '{{foreground-2}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input {  border-color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label {  color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon {  color: '{{primary-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input {  border-color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label {  color: '{{accent-500}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input {  border-color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label {  color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input {  border-color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid.md-input-focused label {  color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme.md-input-invalid ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid data-ng-message, md-input-container.md-THEME_NAME-theme.md-input-invalid x-ng-message,md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message],md-input-container.md-THEME_NAME-theme.md-input-invalid [ng-message-exp], md-input-container.md-THEME_NAME-theme.md-input-invalid [data-ng-message-exp], md-input-container.md-THEME_NAME-theme.md-input-invalid [x-ng-message-exp],md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter {  color: '{{warn-A700}}'; }md-input-container.md-THEME_NAME-theme .md-input[disabled],md-input-container.md-THEME_NAME-theme .md-input [disabled] {  border-bottom-color: transparent;  color: '{{foreground-3}}';  background-image: linear-gradient(to right, \"{{foreground-3}}\" 0%, \"{{foreground-3}}\" 33%, transparent 0%);  background-image: -ms-linear-gradient(left, transparent 0%, \"{{foreground-3}}\" 100%); }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3, md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4 {  color: '{{foreground-1}}'; }md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p {  color: '{{foreground-2}}'; }md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style {  background-color: '{{background-100}}'; }md-list.md-THEME_NAME-theme md-list-item > .md-avatar-icon {  background-color: '{{foreground-3}}';  color: '{{background-color}}'; }md-list.md-THEME_NAME-theme md-list-item > md-icon {  color: '{{foreground-2}}'; }  md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight {    color: '{{primary-color}}'; }    md-list.md-THEME_NAME-theme md-list-item > md-icon.md-highlight.md-accent {      color: '{{accent-color}}'; }md-menu-content.md-THEME_NAME-theme {  background-color: '{{background-color}}'; }  md-menu-content.md-THEME_NAME-theme md-menu-divider {    background-color: '{{foreground-4}}'; }md-menu-bar.md-THEME_NAME-theme > button.md-button {  color: '{{foreground-2}}';  border-radius: 2px; }md-menu-bar.md-THEME_NAME-theme md-menu.md-open > button, md-menu-bar.md-THEME_NAME-theme md-menu > button:focus {  outline: none;  background: '{{background-200}}'; }md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover > button {  background-color: '{{ background-500-0.2}}'; }md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus {  background: transparent; }md-menu-content.md-THEME_NAME-theme .md-menu > .md-button:after {  color: '{{foreground-2}}'; }md-menu-content.md-THEME_NAME-theme .md-menu.md-open > .md-button {  background-color: '{{ background-500-0.2}}'; }md-toolbar.md-THEME_NAME-theme.md-menu-toolbar {  background-color: '{{background-color}}';  color: '{{foreground-1}}'; }  md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler {    background-color: '{{primary-color}}';    color: '{{primary-contrast}}'; }    md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon {      color: '{{primary-contrast}}'; }md-progress-circular.md-THEME_NAME-theme {  background-color: transparent; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-gap {    border-top-color: '{{primary-color}}';    border-bottom-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {    border-top-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-right .md-half-circle {    border-right-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme .md-inner .md-left .md-half-circle {    border-left-color: '{{primary-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-gap {    border-top-color: '{{warn-color}}';    border-bottom-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {    border-top-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-right .md-half-circle {    border-right-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-warn .md-inner .md-left .md-half-circle {    border-left-color: '{{warn-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-gap {    border-top-color: '{{accent-color}}';    border-bottom-color: '{{accent-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle, md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {    border-top-color: '{{accent-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-right .md-half-circle {    border-right-color: '{{accent-color}}'; }  md-progress-circular.md-THEME_NAME-theme.md-accent .md-inner .md-left .md-half-circle {    border-left-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme .md-container {  background-color: '{{primary-100}}'; }md-progress-linear.md-THEME_NAME-theme .md-bar {  background-color: '{{primary-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-container {  background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar {  background-color: '{{warn-color}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-container {  background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar {  background-color: '{{accent-color}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1 {  background-color: '{{warn-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before {  background: radial-gradient(\"{{warn-100}}\" 0%, \"{{warn-100}}\" 16%, transparent 42%); }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1 {  background-color: '{{accent-100}}'; }md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before {  background: radial-gradient(\"{{accent-100}}\" 0%, \"{{accent-100}}\" 16%, transparent 42%); }md-radio-button.md-THEME_NAME-theme .md-off {  border-color: '{{foreground-2}}'; }md-radio-button.md-THEME_NAME-theme .md-on {  background-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-off {  border-color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple {  color: '{{accent-color-0.87}}'; }md-radio-button.md-THEME_NAME-theme .md-container .md-ripple {  color: '{{accent-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on {  background-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off {  border-color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple {  color: '{{primary-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple {  color: '{{primary-600}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on {  background-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off {  border-color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple {  color: '{{warn-color-0.87}}'; }md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple, md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple {  color: '{{warn-600}}'; }md-radio-group.md-THEME_NAME-theme[disabled],md-radio-button.md-THEME_NAME-theme[disabled] {  color: '{{foreground-3}}'; }  md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,  md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off {    border-color: '{{foreground-3}}'; }  md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on,  md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on {    border-color: '{{foreground-3}}'; }md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple {  color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple, md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple {  color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme .md-checked.md-primary .md-ink-ripple {  color: '{{warn-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before {  background-color: '{{accent-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before {  background-color: '{{primary-color-0.26}}'; }md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before {  background-color: '{{warn-color-0.26}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-value {  border-bottom-color: transparent;  background-image: linear-gradient(to right, \"{{foreground-3}}\" 0%, \"{{foreground-3}}\" 33%, transparent 0%);  background-image: -ms-linear-gradient(left, transparent 0%, \"{{foreground-3}}\" 100%); }md-select.md-THEME_NAME-theme .md-select-value {  border-bottom-color: '{{foreground-4}}'; }  md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder {    color: '{{foreground-3}}'; }md-select.md-THEME_NAME-theme.ng-invalid.ng-dirty .md-select-value {  color: '{{warn-A700}}' !important;  border-bottom-color: '{{warn-A700}}' !important; }md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value {  border-bottom-color: '{{primary-color}}';  color: '{{ foreground-1 }}'; }  md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder {    color: '{{ foreground-1 }}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value {  border-bottom-color: '{{accent-color}}'; }md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value {  border-bottom-color: '{{warn-color}}'; }md-select.md-THEME_NAME-theme[disabled] .md-select-value {  color: '{{foreground-3}}'; }  md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder {    color: '{{foreground-3}}'; }md-select-menu.md-THEME_NAME-theme md-option[disabled] {  color: '{{foreground-3}}'; }md-select-menu.md-THEME_NAME-theme md-optgroup {  color: '{{foreground-2}}'; }  md-select-menu.md-THEME_NAME-theme md-optgroup md-option {    color: '{{foreground-1}}'; }md-select-menu.md-THEME_NAME-theme md-option[selected] {  color: '{{primary-500}}'; }  md-select-menu.md-THEME_NAME-theme md-option[selected]:focus {    color: '{{primary-600}}'; }  md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent {    color: '{{accent-500}}'; }    md-select-menu.md-THEME_NAME-theme md-option[selected].md-accent:focus {      color: '{{accent-600}}'; }md-select-menu.md-THEME_NAME-theme md-option:focus:not([disabled]):not([selected]) {  background: '{{background-200}}'; }md-sidenav.md-THEME_NAME-theme {  background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track {  background-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme .md-track-ticks {  background-color: '{{foreground-4}}'; }md-slider.md-THEME_NAME-theme .md-focus-thumb {  background-color: '{{foreground-2}}'; }md-slider.md-THEME_NAME-theme .md-focus-ring {  background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-disabled-thumb {  border-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme.md-min .md-thumb:after {  background-color: '{{background-color}}'; }md-slider.md-THEME_NAME-theme .md-track.md-track-fill {  background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb:after {  border-color: '{{accent-color}}';  background-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-sign {  background-color: '{{accent-color}}'; }  md-slider.md-THEME_NAME-theme .md-sign:after {    border-top-color: '{{accent-color}}'; }md-slider.md-THEME_NAME-theme .md-thumb-text {  color: '{{accent-contrast}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring {  background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill {  background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after {  border-color: '{{warn-color}}';  background-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-sign {  background-color: '{{warn-color}}'; }  md-slider.md-THEME_NAME-theme.md-warn .md-sign:after {    border-top-color: '{{warn-color}}'; }md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text {  color: '{{warn-contrast}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring {  background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill {  background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after {  border-color: '{{primary-color}}';  background-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-sign {  background-color: '{{primary-color}}'; }  md-slider.md-THEME_NAME-theme.md-primary .md-sign:after {    border-top-color: '{{primary-color}}'; }md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text {  color: '{{primary-contrast}}'; }md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after {  border-color: '{{foreground-3}}'; }md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after {  background-color: '{{foreground-3}}'; }.md-subheader.md-THEME_NAME-theme {  color: '{{ foreground-2-0.23 }}';  background-color: '{{background-color}}'; }  .md-subheader.md-THEME_NAME-theme.md-primary {    color: '{{primary-color}}'; }  .md-subheader.md-THEME_NAME-theme.md-accent {    color: '{{accent-color}}'; }  .md-subheader.md-THEME_NAME-theme.md-warn {    color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme .md-ink-ripple {  color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme .md-thumb {  background-color: '{{background-50}}'; }md-switch.md-THEME_NAME-theme .md-bar {  background-color: '{{background-500}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-ink-ripple {  color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-thumb {  background-color: '{{accent-color}}'; }md-switch.md-THEME_NAME-theme.md-checked .md-bar {  background-color: '{{accent-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before {  background-color: '{{accent-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-ink-ripple {  color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb {  background-color: '{{primary-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar {  background-color: '{{primary-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before {  background-color: '{{primary-color-0.26}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-ink-ripple {  color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb {  background-color: '{{warn-color}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar {  background-color: '{{warn-color-0.5}}'; }md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before {  background-color: '{{warn-color-0.26}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-thumb {  background-color: '{{background-400}}'; }md-switch.md-THEME_NAME-theme[disabled] .md-bar {  background-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme md-tabs-wrapper {  background-color: transparent;  border-color: '{{foreground-4}}'; }md-tabs.md-THEME_NAME-theme .md-paginator md-icon {  color: '{{primary-color}}'; }md-tabs.md-THEME_NAME-theme md-ink-bar {  color: '{{accent-color}}';  background: '{{accent-color}}'; }md-tabs.md-THEME_NAME-theme .md-tab {  color: '{{foreground-2}}'; }  md-tabs.md-THEME_NAME-theme .md-tab[disabled], md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon {    color: '{{foreground-3}}'; }  md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon, md-tabs.md-THEME_NAME-theme .md-tab.md-focused, md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon {    color: '{{primary-color}}'; }  md-tabs.md-THEME_NAME-theme .md-tab.md-focused {    background: '{{primary-color-0.1}}'; }  md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container {    color: '{{accent-100}}'; }md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper {  background-color: '{{accent-color}}'; }  md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) {    color: '{{accent-100}}'; }    md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {      color: '{{accent-contrast}}'; }    md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {      background: '{{accent-contrast-0.1}}'; }  md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-ink-bar {    color: '{{primary-600-1}}';    background: '{{primary-600-1}}'; }md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper {  background-color: '{{primary-color}}'; }  md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) {    color: '{{primary-100}}'; }    md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {      color: '{{primary-contrast}}'; }    md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {      background: '{{primary-contrast-0.1}}'; }md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper {  background-color: '{{warn-color}}'; }  md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) {    color: '{{warn-100}}'; }    md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {      color: '{{warn-contrast}}'; }    md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {      background: '{{warn-contrast-0.1}}'; }md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper {  background-color: '{{primary-color}}'; }  md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) {    color: '{{primary-100}}'; }    md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {      color: '{{primary-contrast}}'; }    md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {      background: '{{primary-contrast-0.1}}'; }md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper {  background-color: '{{accent-color}}'; }  md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) {    color: '{{accent-100}}'; }    md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {      color: '{{accent-contrast}}'; }    md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {      background: '{{accent-contrast-0.1}}'; }  md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-ink-bar {    color: '{{primary-600-1}}';    background: '{{primary-600-1}}'; }md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper {  background-color: '{{warn-color}}'; }  md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) {    color: '{{warn-100}}'; }    md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {      color: '{{warn-contrast}}'; }    md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {      background: '{{warn-contrast-0.1}}'; }md-toast.md-THEME_NAME-theme .md-toast-content {  background-color: #323232;  color: '{{background-50}}'; }  md-toast.md-THEME_NAME-theme .md-toast-content .md-button {    color: '{{background-50}}'; }    md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight {      color: '{{primary-A200}}'; }      md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-accent {        color: '{{accent-A200}}'; }      md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn {        color: '{{warn-A200}}'; }md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) {  background-color: '{{primary-color}}';  color: '{{primary-contrast}}'; }  md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon {    color: '{{primary-contrast}}'; }  md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent {    background-color: '{{accent-color}}';    color: '{{accent-contrast}}'; }  md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn {    background-color: '{{warn-color}}';    color: '{{warn-contrast}}'; }md-tooltip.md-THEME_NAME-theme {  color: '{{background-A100}}'; }  md-tooltip.md-THEME_NAME-theme .md-content {    background-color: '{{foreground-2}}'; }")}()})(window,window.angular),window.ngMaterial={version:{full:"1.0.4"}}
  ;angular.module("deliveryNow",["ngSanitize","ngCookies","checklist-model","ngMap","googlechart","lazy-scroll","bw.paging"]).factory("deliveryCache",["$cacheFactory",function(a){return a("delivery-cache")}]).config(["$httpProvider",function(a){a.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"}])
  ;angular.module("checklist-model",[]).directive("checklistModel",["$parse","$compile",function(a,b){function c(a,b,c){if(angular.isArray(a))for(var d=a.length;d--;)if(c(a[d],b))return!0;return!1}function d(a,b,d){return a=angular.isArray(a)?a:[],c(a,b,d)||a.push(b),a}function e(a,b,c){if(angular.isArray(a))for(var d=a.length;d--;)if(c(a[d],b)){a.splice(d,1);break}return a}function f(f,g,h){function q(a,b){var c=j(f.$parent);angular.isFunction(k)&&(b===!0?k(f.$parent,d(c,a,o)):k(f.$parent,e(c,a,o)))}function r(a,b){if(m&&m(f)===!1){q(n,f[h.ngModel]);return}f[h.ngModel]=c(a,n,o)}var i=h.checklistModel;h.$set("checklistModel",null),b(g)(f),h.$set("checklistModel",i);var j=a(i),k=j.assign,l=a(h.checklistChange),m=a(h.checklistBeforeChange),n=h.checklistValue?a(h.checklistValue)(f.$parent):h.value,o=angular.equals;if(h.hasOwnProperty("checklistComparator"))if(h.checklistComparator[0]=="."){var p=h.checklistComparator.substring(1);o=function(a,b){return a[p]===b[p]}}else o=a(h.checklistComparator)(f.$parent);f.$watch(h.ngModel,function(a,b){if(a===b)return;if(m&&m(f)===!1){f[h.ngModel]=c(j(f.$parent),n,o);return}q(n,a),l&&l(f)}),angular.isFunction(f.$parent.$watchCollection)?f.$parent.$watchCollection(i,r):f.$parent.$watch(i,r,!0)}return{restrict:"A",priority:1e3,terminal:!0,scope:!0,compile:function(a,b){if(a[0].tagName==="INPUT"&&b.type==="checkbox"||a[0].tagName==="MD-CHECKBOX"||!!b.btnCheckbox){if(!b.checklistValue&&!b.value)throw"You should provide `value` or `checklist-value`.";return b.ngModel||b.$set("ngModel","checked"),f}throw'checklist-model should be applied to `input[type="checkbox"]` or `md-checkbox`.'}}}])
  ;(function(){function a(){function a(a,b,c){a.$last&&setTimeout(function(){$(".tooltipped").tooltip({delay:50})},500)}return a}"use strict",angular.module("deliveryNow").directive("ngToolTip",a)})()
  ;(function(){function a(){return{require:"ngModel",link:function(a,b,c,d){d.$parsers.push(function(a){return a?parseInt(a,10):null}),d.$formatters.push(function(a){return a?""+a:null})}}}"use strict",angular.module("deliveryNow").directive("convertToNumber",a)})()
  ;(function(){function a(a){return{require:"?ngModel",link:function(b,c,d,e){if(!e)return;e.$formatters.unshift(function(){return a("number")(e.$modelValue)}),e.$parsers.unshift(function(b){var d=b.replace(/[\,\.]/g,""),e=a("number")(d);return c.val(e),d})}}}"use strict",angular.module("deliveryNow").directive("inputNumber",a)})()
  ;(function(){function a(){function b(a,b,c,d){d.$parsers.push(function(a){if(a==undefined)return"";var b=a.replace(/[^0-9]/g,"");return b!=a&&(d.$setViewValue(b),d.$render()),b})}var a={require:"ngModel",link:b};return a}"use strict",angular.module("deliveryNow").directive("ngNumberOnly",a)})()
  ;(function(){function a(a,b){var c=[];for(var d=0;d<a.length;d++)c.push(a[d][b]);return c.join(", ")}"use strict",angular.module("deliveryNow").filter("joinObj",a)})()
  ;(function(){function a(){return function(a,b){var c=[];for(var d=0;d<a.length;d++)c.push(a[d][b]);return c.join(", ")}}"use strict",angular.module("deliveryNow").filter("joinObject",a)})()
  ;(function(){function a(a,b,c){function e(c,d){var e=b.defer();return a({method:"POST",url:"/Merchant/GetOrdersReceived",data:{beginDate:c,endDate:d}}).success(e.resolve).error(e.reject),e.promise}function f(c,d,e,f,g,h,i,j){var k=b.defer();return a({method:"POST",url:"/Merchant/GetOrdersByFilter",data:{OrderCode:c,BeginDate:d,EndDate:e,status:f,pageIndex:g,pageSize:h,restaurantId:i,sortBy:j}}).success(k.resolve).error(k.reject),k.promise}function g(c){var d=b.defer();return a({method:"POST",url:"/Express/GetOrderByFilters",data:{filters:c}}).success(d.resolve).error(d.reject),d.promise}function h(c,d,e){var f=b.defer();return a({method:"POST",url:"/Merchant/GetOrderReceivedItems",data:{orderId:c,deliveryId:d,isReceived:e}}).success(f.resolve).error(f.reject),f.promise}function i(c,d){var e=b.defer();return a({method:"POST",url:"/Merchant/GetOrderExpressItems",data:{orderId:c,deliveryId:d}}).success(e.resolve).error(e.reject),e.promise}function j(c){var d=b.defer();return a({method:"POST",url:"/Merchant/UpdateOrderStatus",data:{model:c}}).success(d.resolve).error(d.reject),d.promise}function k(c){var d=b.defer();return a({method:"POST",url:"/Merchant/GetMenu",data:{restaurantId:c}}).success(d.resolve).error(d.reject),d.promise}function l(c){var d=b.defer();return a({method:"POST",url:"/Merchant/MerchantRequest",data:{request:c}}).success(d.resolve).error(d.reject),d.promise}function m(c,d,e){var f=b.defer();return a({method:"POST",url:"/Merchant/MerchantRequestV2",data:{request:c,strPickDate:d,strDropDate:e}}).success(f.resolve).error(f.reject),f.promise}function n(c){var d=b.defer();return a({method:"POST",url:"/Express/CreateOrderExpress",data:{request:c}}).success(d.resolve).error(d.reject),d.promise}function o(c,d,e,f,g,h){var i=b.defer();return a({method:"POST",url:"/Merchant/GetOrderExpressRequestByUser",data:{restaurantId:h,statusId:c,beginDate:d,endDate:e,pageIndex:f,pageSize:g}}).success(i.resolve).error(i.reject),i.promise}function p(d){var e="cache-suggest-search-q.{0}"+d,f=c.get(e);if(!f){var g=b.defer();return a({method:"POST",url:"/List/Keywords",data:{term:d,onlyDelivery:!1,pageSize:10}}).success(g.resolve).error(g.reject),c.put(e,g.promise),g.promise}return f}function q(c,d){var e=b.defer();return a({method:"POST",url:"/Merchant/GetUserInfoByPhone",data:{phone:c,top:d}}).success(e.resolve).error(e.reject),e.promise}function r(){var c=b.defer();return a({method:"GET",url:"/Merchant/GetListRestaurantByMerchant"}).success(c.resolve).error(c.reject),c.promise}function s(){var c=b.defer();return a({method:"GET",url:"/Merchant/GetListDeliveryUserByUserId"}).success(c.resolve).error(c.reject),c.promise}function t(c){var d=b.defer();return a({method:"POST",url:"/Merchant/UpdateCooked",data:{orderId:c}}).success(d.resolve).error(d.reject),d.promise}function u(c){var d=b.defer();return a({method:"POST",url:"/Merchant/UpdatePicked",data:{orderId:c}}).success(d.resolve).error(d.reject),d.promise}function v(c){var d=b.defer();return a({method:"POST",url:"/Express/UpdateDoneByOrderId",data:{orderId:c}}).success(d.resolve).error(d.reject),d.promise}function w(c,d,e){var f=b.defer();return a({method:"POST",url:"/Merchant/GetListRestaurantReportForMerchant",data:{BeginDate:c,EndDate:d,restaurantId:e}}).success(f.resolve).error(f.reject),f.promise}function x(c,d,e){var f=b.defer();return a({method:"POST",url:"/Merchant/GetListDishRestaurantReportForMerchant",data:{BeginDate:c,EndDate:d,restaurantId:e}}).success(f.resolve).error(f.reject),f.promise}function y(c){var d=b.defer();return a({method:"POST",url:"/Merchant/UpdateMerchantOnline",data:{restaurantId:c}}).success(d.resolve).error(d.reject),d.promise}function z(c){var d=b.defer();return a({method:"POST",url:"/Merchant/GetVatOrderDetail",data:{orderId:c}}).success(d.resolve).error(d.reject),d.promise}function A(c,d,e,f,g,h,i){var j=b.defer();return a({method:"POST",url:"/Merchant/GetInvoiceVatRestaurant",data:{OrderCode:c,BeginDate:d,EndDate:e,status:f,pageIndex:g,pageSize:h,restaurantId:i}}).success(j.resolve).error(j.reject),j.promise}function B(c,d){var e=b.defer();return a({method:"POST",url:"/Merchant/GetAirPayMerchant",data:{pageIndex:c,pageSize:d}}).success(e.resolve).error(e.reject),e.promise}function C(c){var d=b.defer();return a({method:"POST",url:"/Merchant/GetListRestaurantAirpay",data:{walletId:c}}).success(d.resolve).error(d.reject),d.promise}function D(c){var d=b.defer();return a({method:"POST",url:"/Merchant/ResendActivationEmail",data:{AirPayStoreId:c}}).success(d.resolve).error(d.reject),d.promise}function E(c,d){var e=b.defer();return a({method:"POST",url:"/Merchant/RemoveStoreMerchant",data:{StoreID:c,AirPayStoreId:d}}).success(e.resolve).error(e.reject),e.promise}var d={getOrders:e,getOrderItems:h,updateOrderStatus:j,getOrdersByFilter:f,getOrdersByFilters:g,autoComplete:p,getMenu:k,getUserInfoByPhoneNumber:q,getListRestaurant:r,GetListDeliveryUserByUserId:s,merchantRequest:l,merchantRequestV2:m,getOrderExpressRequestByUser:o,getOrderExpressItems:i,updateCooked:t,updatePicked:u,createOrderExpress:n,expressUpdateDone:v,GetListRestaurantReportForMerchant:w,GetListDishRestaurantReportForMerchant:x,updateOnlineRestaurant:y,getVatOrderDetail:z,GetInvoiceVatRestaurant:A,GetAirPayMerchant:B,GetListRestaurantAirpay:C,ResendActivationEmail:D,RemoveStoreAirpayMerchant:E};return d}"use strict",angular.module("deliveryNow").factory("merchantService",a),a.$inject=["$http","$q","deliveryCache"]})()
  ;(function(){function a(a,b,c){function e(c){var d=b.defer();return a({method:"POST",url:"/History/RateShipper",data:{OrderId:c.OrderId,CSId:c.CSId==null?0:c.CSId,CSStar:toNumber(c.CSRateStar)*2,ShipperId:c.ShipperId,ShipperStar:toNumber(c.ShipperRateStar)*2,Comment:c.Comment}}).success(d.resolve).error(d.reject),d.promise}function f(c){var d=b.defer();return a({method:"GET",url:"/History/GetRateStar?orderId="+c}).success(d.resolve).error(d.reject),d.promise}function g(c,d){var e=b.defer();return a({method:"GET",url:"/Delivery/GenerateQrCode?url="+c+"&size="+d}).success(e.resolve).error(e.reject),e.promise}function h(c){var d=b.defer();return a({method:"POST",url:"/Order/InsertShoppingCartItem",data:{data:c}}).success(d.resolve).error(d.reject),d.promise}function i(c){var d=b.defer();return a({method:"POST",url:"/Order/AutoInsertShoppingCartItem",data:JSON.stringify(c)}).success(d.resolve).error(d.reject),d.promise}function j(){var c=b.defer();return a({method:"POST",url:"/List/GetCategoryWithChild"}).success(c.resolve).error(c.reject),c.promise}function k(){var c=b.defer();return a({method:"POST",url:"/List/GetDistrictForFilter"}).success(c.resolve).error(c.reject),c.promise}function l(){var c=b.defer();return a({method:"POST",url:"/List/GetCuisinesForFilter"}).success(c.resolve).error(c.reject),c.promise}function m(c){var d=b.defer();return a({method:"POST",url:"/List/GetListDeliveryByFilter",data:{filters:c}}).success(d.resolve).error(d.reject),d.promise}function n(d){var e="cache-suggest-search-q.{0}"+d,f=c.get(e);if(!f){var g=b.defer();return a({method:"POST",url:"/List/Keywords",data:{term:d}}).success(g.resolve).error(g.reject),c.put(e,g.promise),g.promise}return f}function o(c,d,e){var f=b.defer();return a({method:"POST",url:"/Delivery/GetAllAvailableTime",data:{deliveryId:c,date:d,minutes:e}}).success(f.resolve).error(f.reject),f.promise}function p(){var c=b.defer();return a({method:"POST",url:"/Delivery/GetDiscountForPayment"}).success(c.resolve).error(c.reject),c.promise}function q(c,d,e,f,g,h,i,j,k,l,m,n){var o=b.defer();return a({method:"POST",url:"/Delivery/CheckPromoCode",data:{code:c,restaurantId:d,isFoodyDelivery:e,phoneNumber:f,deliveredDate:g,deliveredTime:h,subTotal:i,resLocationId:j,paymentMethodId:k,shippingMethod:l,orderType:m,districtId:n}}).success(o.resolve).error(o.reject),o.promise}function r(c){var d=b.defer();return a({method:"POST",url:"/History/GetHistoryDetail",data:{orderId:c}}).success(d.resolve).error(d.reject),d.promise}function s(c){var d=b.defer();return a({method:"POST",url:"/History/GetDeliveryManInfo",data:{userId:c}}).success(d.resolve).error(d.reject),d.promise}function t(c,d){var e=b.defer();return a({method:"POST",url:"/Delivery/UpdateNoteDish",data:{id:c,note:d}}).success(e.resolve).error(e.reject),e.promise}function u(c,d){var e=b.defer();return a({method:"POST",url:"/History/UpdateOrderStatusCantConnect",data:{orderId:c,versionNo:d}}).success(e.resolve).error(e.reject),e.promise}function v(c,d,e,f){var g=b.defer();return a({method:"POST",url:"/History/CancelOrder",data:{orderId:c,messagesIdCancel:d,userNote:e,versionNo:f}}).success(g.resolve).error(g.reject),g.promise}function w(c,d){var e=b.defer();return a({method:"POST",url:"/Delivery/Print",data:{orderId:c,deliveryId:d}}).success(e.resolve).error(e.reject),e.promise}function x(c){var d=b.defer();return a({method:"POST",url:"/History/GetgetDeliveryNote",data:{id:c}}).success(d.resolve).error(d.reject),d.promise}function y(c){var d=b.defer();return a({method:"POST",url:"/Account/getLoginId"}).success(d.resolve).error(d.reject),d.promise}function z(c,d){var e=b.defer();return a({method:"GET",url:"/Restaurant/RestaurantActivity",params:{pageIndex:c,pageSize:d}}).success(e.resolve).error(e.reject),e.promise}function A(){var c=b.defer();return a({method:"POST",url:"/History/GetListCommingOrders"}).success(c.resolve).error(c.reject),c.promise}function B(c,d){c-=1;var e=b.defer();return a({method:"POST",url:"/History/GetListHistory",data:{pageIndex:c,pageISize:d}}).success(e.resolve).error(e.reject),e.promise}function C(c){var d=b.defer();return a({method:"POST",url:"/History/GetListHistoryByFilter",data:JSON.stringify(c)}).success(d.resolve).error(d.reject),d.promise}function D(c,d,e){var f=b.defer();return a({method:"POST",url:"/Order/GetPaymentMethods",data:{isFoodyDelivery:c,serviceType:d,appTypes:e}}).success(f.resolve).error(f.reject),f.promise}function E(c,d,e,f){var g=b.defer();return a({method:"POST",url:"/Delivery/GetDeliveryFeeMin",data:{isFoodyDelivery:c,settingKey:d,districtId:e,deliveryDate:f}}).success(g.resolve).error(g.reject),g.promise}function F(c,d,e){var f=b.defer();return a({method:"POST",url:"/History/Repay",data:{orderId:c,paymentType:d,appType:e}}).success(f.resolve).error(f.reject),f.promise}function G(c,d){var e=b.defer();return a({method:"POST",url:"/Order/UdpateOrderReceivedStatus",data:{orderId:c,ownerUserId:d}}).success(e.resolve).error(e.reject),e.promise}function H(c,d){var e=b.defer();return a({method:"POST",url:"/Order/UpdateOrderIsLate",data:{orderId:c,userId:d}}).success(e.resolve).error(e.reject),e.promise}function I(c,d){var e=b.defer();return a({method:"POST",url:"/Order/GetOrderStatus",data:{orderId:c,userId:d}}).success(e.resolve).error(e.reject),e.promise}function J(c,d){var e=b.defer();return a({method:"POST",url:"/Order/VerifyPassword",data:{epassword:c,paymentMethod:d}}).success(e.resolve).error(e.reject),e.promise}function K(c){var d=b.defer();return a({method:"POST",url:"/History/CheckOrderCancelStatus",data:{orderId:c}}).success(d.resolve).error(d.reject),d.promise}function L(c,d,e,f){var g=b.defer();return a({method:"GET",url:"/Offer/LoadMore",params:{pageIndex:c,pageSize:d,district:e,category:f}}).success(g.resolve).error(g.reject),g.promise}function M(c,d,e,f,g,h,i){var j=b.defer();return a({method:"POST",url:"/Delivery/DeliveryInvoiceInsert",data:{orderId:c,shippingInfoId:d,restaurantId:e,companyName:f,companyAddress:g,invoiceTime:h,taxCode:i}}).success(j.resolve).error(j.reject),j.promise}function N(c,d,e){var f=b.defer();return a({method:"POST",url:"/Delivery/DeliveryInvoiceInfoInsert",data:{companyName:c,companyAddress:d,taxCode:e}}).success(f.resolve).error(f.reject),f.promise}function O(c,d,e,f){var g=b.defer();return a({method:"POST",url:"/Delivery/DeliveryInvoiceInfoUpdate",data:{deliveryInvoiceInfoId:c,companyName:d,companyAddress:e,taxCode:f}}).success(g.resolve).error(g.reject),g.promise}function P(c){var d=b.defer();return a({method:"POST",url:"/Delivery/DeliveryInvoiceInfoDelete",data:{deliveryInvoiceInfoId:c}}).success(d.resolve).error(d.reject),d.promise}function Q(c,d){var e=b.defer();return a({method:"POST",url:"/Delivery/GetListDeliveryInvoiceInfo",data:{pageIndex:c,pageSize:d}}).success(e.resolve).error(e.reject),e.promise}function R(c,d,e,f,g,h,i,j,k,l,m,n,o){var p=b.defer();return a({method:"POST",url:"/Discount/GetAvailableDiscounts",data:{totalAmount:c,appType:d,paymentType:e,promoCode:f,shippingFee:g,isFoodyDeliver:h,deliveryId:i,deliveryDate:j,subTotal:k,phoneNumber:l,IsIgnorePaymentType:m,GetTooltip:n,IsGetAllPromotions:o}}).success(p.resolve).error(p.reject),p.promise}function S(c,d){var e=b.defer();return a({method:"GET",url:"/Restaurant/TopRestaurantOrderItem",params:{category:d,pageIndex:c}}).success(e.resolve).error(e.reject),e.promise}function T(c,d,e,f){var g=b.defer();return a({method:"GET",url:"/Restaurant/LoadRestaurantBranch",params:{brand:c,pageIndex:d,provinceId:e,sort:f}}).success(g.resolve).error(g.reject),g.promise}function U(c){var d=b.defer();return a({method:"POST",url:"/Restaurant/GetRemainingQtyRestaurant",data:{restaurantId:c}}).success(d.resolve).error(d.reject),d.promise}function V(){var c=b.defer();return a({method:"POST",url:"/History/GetAddressLastedOrderByUserId"}).success(c.resolve).error(c.reject),c.promise}var d={getQRCodeGroupShareLink:g,getCategoriesWithChild:j,getDistrictForFilter:k,getCuisinesForFilter:l,getListDeliveryByFilter:m,autoComplete:n,getTimeAvailable:o,getDiscountForPayment:p,enterPromoCode:q,getHistoryDetail:r,getDeliveryManInfo:s,updateNoteDish:t,cancelOrder:v,printBill:w,getDeliveryNote:x,getLoginId:y,getRestaurantActivity:z,getListHistory:B,UpdateOrderStatusCantConnect:u,insertShoppingCartItem:h,autoInsertShoppingCartItem:i,submitRate:e,getRateStar:f,getPaymentMethods:D,getFilterListHistory:C,getDeliveryFeeMinByShippingMethod:E,getListCommingOrders:A,rePay:F,udpateOrderReceivedStatus:G,updateOrderIsLate:H,getOrderStatus:I,getOfferRestaurant:L,verifypassword:J,addDeliveryInvoice:M,addDeliveryInvoiceInfo:N,updateDeliveryInvoiceInfo:O,deleteDeliveryInvoiceInfo:P,getListDeliveryInvoiceInfo:Q,checkOrderCancelStatus:K,getAvailableDiscounts:R,getTopRestaurantOrders:S,getRestaurantBranch:T,getRemainingQtyRestaurant:U,getAddressLastedOrderByUserId:V};return d}"use strict",angular.module("deliveryNow").factory("deliveryService",a),a.$inject=["$http","$q","deliveryCache"]})()
  ;(function(){function a(a,b){function d(){var c=b.defer();return a({method:"POST",url:"/Member/GetUserPromoCode"}).success(c.resolve).error(c.reject),c.promise}function e(c){var d=b.defer();return a({method:"POST",url:"/Address/GetListProvince"}).success(d.resolve).error(d.reject),d.promise}function f(c){var d=b.defer();return a({method:"POST",url:"/Address/GetListDistrictByProvince",data:{provinceId:c}}).success(d.resolve).error(d.reject),d.promise}function g(c){var d=b.defer();return a({method:"POST",url:"/Address/UpdateAddressInfo",data:{item:c}}).success(d.resolve).error(d.reject),d.promise}function h(c){var d=b.defer();return a({method:"POST",url:"/Address/DeleteAddressInfo",data:{id:c}}).success(d.resolve).error(d.reject),d.promise}function i(){var c=b.defer();return a({method:"POST",url:"/Address/GetListAddressInfo"}).success(c.resolve).error(c.reject),c.promise}function j(c){var d=b.defer();return a({method:"POST",url:"/Address/GetListAddressForOrder",data:{cityId:c}}).success(d.resolve).error(d.reject),d.promise}function k(c){var d=b.defer();return a({method:"POST",url:"/Address/CreateAddressInfo",data:{item:c}}).success(d.resolve).error(d.reject),d.promise}var c={getListProvince:e,getDistrictByProvinceId:f,updateAddressInfo:g,deleteAddressInfo:h,getListAddressInfo:i,getListAddressForOrder:j,createAddressInfo:k,getUserPromoCode:d};return c}"use strict",angular.module("deliveryNow").factory("addressService",a),a.$inject=["$http","$q"]})()
  ;(function(){function a(a,b){function d(c,d,e,f,g){var h=b.defer();return a({method:"POST",url:"/Order/GetCoefficientShip",data:{deliverDate:c,deliveredTime:d,isFoodyDelivery:e,settingkey:f,districtId:g}}).success(h.resolve).error(h.reject),h.promise}function e(c){var d=b.defer();return a({method:"POST",url:"/Order/InsertShoppingCartItem",data:{data:c}}).success(d.resolve).error(d.reject),d.promise}function f(c,d){var e=b.defer();return a({method:"POST",url:"/Order/UpdateQty",data:{id:c,qty:d}}).success(e.resolve).error(e.reject),e.promise}function g(c){var d=b.defer();return a({method:"POST",url:"/Order/GetShareLink",data:{deliveryId:c}}).success(d.resolve).error(d.reject),d.promise}function h(c,d){var e=b.defer();return a({method:"POST",url:"/Order/CheckMemberNotComplete",data:{deliveryId:c,shareCartId:d}}).success(e.resolve).error(e.reject),e.promise}function i(c,d,e,f){var g=b.defer();return a({method:"POST",url:"/Order/LoadCartItem",data:{deliveryId:c,sharecode:d,shareCartId:e,hostId:f}}).success(g.resolve).error(g.reject),g.promise}function j(c,d,e,f){var g=b.defer();return a({method:"POST",url:"/Order/ClearCart",data:{deliveryId:c,shareCode:d,shareCartId:e,hostId:f}}).success(g.resolve).error(g.reject),g.promise}function k(c,d,e){var f=b.defer();return a({method:"POST",url:"/Order/UpdateCartIsDone",data:{deliveryId:c,userId:d,shareCartId:e}}).success(f.resolve).error(f.reject),f.promise}function l(c,d,e){var f=b.defer();return a({method:"POST",url:"/Order/GetShoppingCartMember",data:{deliveryId:c,shareCartId:d,hostId:e}}).success(f.resolve).error(f.reject),f.promise}function m(){var c=b.defer();return a({method:"POST",url:"/Order/GetUserCard"}).success(c.resolve).error(c.reject),c.promise}function n(){var c=b.defer();return a({method:"POST",url:"/Order/LinkingUserCard"}).success(c.resolve).error(c.reject),c.promise}function o(c,d){var e=b.defer();return a({method:"POST",url:"/Order/RemoveUserCard",data:{cardId:c,randomKey:d}}).success(e.resolve).error(e.reject),e.promise}function p(c){var d=b.defer();return a({method:"POST",url:"/Order/SubmitOrder",data:{order:c}}).success(d.resolve).error(d.reject),d.promise}function q(c,d,e,f){var g=b.defer();return a({method:"POST",url:"/Order/PaymentRequestMomo",data:{orderId:c,amount:d,note:e,resRedirectUrl:f}}).success(g.resolve).error(g.reject),g.promise}function r(){var c=b.defer();return a({method:"POST",url:"/Order/CheckAllowVerifySms"}).success(c.resolve).error(c.reject),c.promise}function s(c,d){var e=b.defer();return a({method:"POST",url:"/Member/UpdateUserCreditCardSetting",data:{cardId:c,cardDefault:d}}).success(e.resolve).error(e.reject),e.promise}function t(){var c=b.defer();return a({method:"POST",url:"/Order/GetAirpayUserCard"}).success(c.resolve).error(c.reject),c.promise}function u(c,d){var e=b.defer();return a({method:"POST",url:"/Order/RemoveAirpayUserCard",data:{cardId:c,randomKey:d}}).success(e.resolve).error(e.reject),e.promise}var c={addToCart:e,updateQty:f,getShareLink:g,checkMemberNotComplete:h,getShoppingCartItem:i,clearCart:j,updateCartIsDone:k,getShoppingCartMember:l,getUserCard:m,submitOrder:p,linkingUserCard:n,removeUserCard:o,getCoefficientShip:d,checkAllowVerifySms:r,paymentRequestMomo:q,updateCardSelected:s,getAirpayUserCard:t,removeAirpayUserCard:u};return c}"use strict",angular.module("deliveryNow").factory("orderService",a),a.$inject=["$http","$q"]})()
  ;var currElem=null;$(document).mousedown(function(a){currElem=a.target}),function(){function a(a,b,c,d){function f(){return e.q}function g(a,c){e.q.length<e.minLength&&(e.results=[]),e.q.length>=e.minLength&&e.search?b.autoComplete(e.q).then(function(a){e.results=a,e.qCopy=angular.copy(e.q),e.showViewRecent=!1}):e.search&&(e.results=[])}function h(){b.getListDeliveryByFilter().then(function(a){e.totalCounts=a.result.TotalCount})}function i(){return e.currentIndex}function j(){e.currentIndex<0&&(e.q=angular.copy(e.qCopy)),e.currentIndex>-1&&e.currentIndex<e.results.length&&!e.hover&&(e.q=e.results[e.currentIndex].name)}function k(a){e.hover=!1,a.which===40?(e.search=!1,e.results&&e.currentIndex+1<e.results.length?(e.currentIndex++,a.preventDefault,a.stopPropagation()):e.currentIndex=-1):a.which==38?(e.search=!1,e.currentIndex>=0?(e.currentIndex--,a.preventDefault,a.stopPropagation()):e.currentIndex=e.results.length-1):a.which==27?(e.search=!1,e.results=[],a.preventDefault,a.stopPropagation()):e.search=!0}function l(a){e.hover=!0,e.currentIndex=a}function m(){alert("d")}function n(){var a="";return b.getLoginId().then(function(b){a=b.msg}),a}function o(a){try{var b=[],f="";$.each(e.results,function(c,d){d.restaurantId==a&&(f=d.UID,b.push(d))});if(b.length>0){var g=p();$.each(g,function(a,c){if(b.length<10){var e=d("filter")(b,c,!0)[0];e||b.push(c)}});var h=new Date;h.setDate(h.getDate()+1);var i=[],j=[];b.length>5?$.each(b,function(a,b){i.length<5&&i.push(b),i.length==5&&j.length<5&&j.push(b)}):i=b,c.putObject("DeliveryNow_SearchCookie",i,{path:"/",expires:h}),c.putObject("DeliveryNow_SearchCookie_2",j,{path:"/",expires:h})}}catch(k){return!1}}function p(){var a=c.getObject("DeliveryNow_SearchCookie"),b=c.getObject("DeliveryNow_SearchCookie_2");return b!=undefined&&$.each(b,function(b,c){a.push(c)}),a=="undefined"||a==null?[]:a}function q(a){var b=c.getObject("DeliveryNow_SearchCookie"),e=c.getObject("DeliveryNow_SearchCookie_2");e!=undefined&&$.each(e,function(a,c){var e=d("filter")(b,c,!0)[0];e||b.push(c)});if(b=="undefined"||b==null)return[];var f=[],g=d("filter")(b,{UID:a},!0);return g.length>5?$.each(g,function(a,b){f.length<5&&f.push(b)}):f=g,f}function r(a){setTimeout(function(){b.getLoginId().then(function(b){e.results=q(b.msg),console.log(e.results.length),e.results.length>0&&a!=""?e.showViewRecent=!0:e.showViewRecent=!1})},100)}function s(a){$(currElem).is(".idea-searching, .idea-searching *")||(e.results=[])}var e=this;e.currentIndex=-1,e.minLength=2,e.q="",e.qCopy="",e.results=[],e.search=!0,e.hover=!1,e.showViewRecent=!1,e.closePopup=m,e.keyupFunc=k,e.hoverRow=l,e.focusToTextSearch=r,e.setCookieSearch=o,e.blurToTextSearch=s,a.$watch(f,stopTyping(g,200)),a.$watch(i,j)}"use strict",angular.module("deliveryNow").controller("CompleteController",a),a.$inject=["$scope","deliveryService","$cookies","$filter"]}()
  ;(function(){function a(a,b){function d(){return c.pageIndex}function e(a,b){b!=a&&g()}function f(){showPreloader(),b.getRestaurantActivity(c.pageIndex,c.pageSize).then(function(a){if(a.success){c.listResult=a.result,c.totalCounts=a.total;var b=Math.ceil(c.totalCounts/c.pageSize);c.paging=[];for(var d=0;d<b;d++)c.paging.push({name:d+1,value:d});$("#delivery-restaurant-activiy-after21H").openModal()}}).finally(function(){hidePreloader()})}function g(){showPreloader(),b.getRestaurantActivity(c.pageIndex,c.pageSize).then(function(a){if(a.success){c.listResult=a.result,c.totalCounts=a.total;var b=Math.ceil(c.totalCounts/c.pageSize);c.paging=[];for(var d=0;d<b;d++)c.paging.push({name:d+1,value:d})}}).finally(function(){$(window).scrollTop()>400&&$("html, body").animate({scrollTop:0},1e3),hidePreloader()})}function h(a){return c.pageIndex===a.value}var c=this;c.restaurantsActivity=[],c.listResult=[],c.paging=[],c.totalCounts=0,c.pageIndex=0,c.pageSize=20,c.filters={},c.copyFilters={},c.loadData=g,c.isActive=h,f(),a.$watch(d,e)}"use strict",angular.module("deliveryNow").controller("OpeningRestaurantController",a),a.$inject=["$scope","deliveryService"]})()
  ;function goToSignUp(){$("#login-area").hide(),$("#signup-area").show()}function backToLogin(){$("#signup-area").hide(),$("#login-area").show()}function register(){var a="",b=$("#reg-firstname").val(),c=$("#reg-lastname").val(),d=$("#reg-email").val(),e=$("#reg-password").val(),f=$("#reg-agree").is(":checked");if(!b||!c||!d||!e)a+="- Bạn vui lòng nhập đầy đủ các thông tin trên </br>";validateEmail(d)||(a+="- Email không hợp lệ</br>"),f||(a+="- Bạn phải đồng ý với quy định của DeliveryNow</br>"),$("#reg-error-msg").html(a);if(a.length>0)return!1;var g={Email:d,Password:e,ConfirmPassword:e,FirstName:b,LastName:c,TermAndCondition:f};$.ajax({type:"POST",url:"/Account/RegisterAjax",data:g,success:function(b){if(b.success)alert("Đăng ký tài khoản thành công"),window.location.reload();else{for(var c=0;c<b.errors.length;c++)a+=b.errors[c]+"</br>";$("#reg-error-msg").html(a)}}})}function validateEmail(a){var b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return b.test(a)}function validatePhone(a){var b=/^((?:(?!\n)\s*)?([(](\+?(?=.*[1-9])\d{2,4})[)]|(\+?(?=.*[1-9])\d{2,4}))[\s|\-|\.]?\d{2,3}[\s|\-|\.]?\d{3}[\s|\-|\.]?\d{3}(?:(?!\n)\s*)?)?$/;return b.test(a)}function login(){var a=$("#login-modal #email").val(),b=$("#login-modal #password").val(),c=!0;$.post("/dang-nhap",{email:a,password:b,rememberMe:c},function(a){a.success?(closeFormLogin(),updateLoginStatus()):alert(a.message)})}function closeFormLogin(){$("#login-modal").closeModal()}function showFormLogin(){$("#login-modal").length>0?($("#login-modal").openModal(),setTimeout(function(){$("#email").focus()},600)):window.location.reload()}function updateLoginStatus(){$("#login-status").load("/Common/AccountForm",function(){var a=document.getElementById("detail-page");if(a){var b=angular.element(a).scope();b.$apply(function(){b.detailCtrl.updateStatusLogin()})}})}function loadData(){var a=document.getElementById("list-page");if(a){var b=angular.element(a).scope();b.$apply(function(){b.listCtrl.loadData()})}}function showFormSearch(){$("#search-overlay").removeClass("material-search-overlay-hidden"),$("#search-overlay").addClass("material-search-overlay-visible"),$("#search-form").removeClass("material-search-form-hidden"),$("#search-form").addClass("material-search-form-visible"),$("body").css({overflow:"hidden"}),setTimeout(function(){$("#s").focus()},600),document.getElementById("search-form").addEventListener("keydown",function(a){a.keyCode===27&&(a.preventDefault(),closeFormSearch())}),document.getElementById("search-form").addEventListener("click",function(a){$("#s").is(":focus")||closeFormSearch()})}function closeFormSearch(){$("#search-form").removeClass("material-search-form-visible"),$("#search-form").addClass("material-search-form-hidden"),$("#search-overlay").removeClass("material-search-overlay-visible"),$("#search-overlay").addClass("material-search-overlay-hidden"),$("body").css({overflow:"visible"})}function hidePreloader(){$("#loading").hide()}function showPreloader(){$("#loading").show()}function setCookie(a,b,c){var d=new Date;d.setTime(d.getTime()+c*24*60*60*1e3);var e="expires="+d.toUTCString();document.cookie=a+"="+b+"; "+e}function getCookie(a){var b=a+"=",c=document.cookie.split(";");for(var d=0;d<c.length;d++){var e=c[d];while(e.charAt(0)==" ")e=e.substring(1);if(e.indexOf(b)==0)return e.substring(b.length,e.length)}return""}function removeAllCookie(){var a=document.cookie.split(";");for(var b=0;b<a.length;b++){var c=a[b].indexOf("="),d=c>-1?a[b].substr(0,c):a[b];document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}}function del_cookie(){setCookie("hidePopup","",0)}function toNumber(a){return a*=1,isNaN(a)?0:a}function formatThousands(a,b){return isNaN(a)==0?b==country.Thailand?round(a,2):round(a,0):0}function formatLocaleString(a,b){var c=b==1?Currency.Unit:"",d=country.VietNam;return routeUrl.isVietNam=="True"?d=country.VietNam:d=country.Thailand,formatThousands(a,d).toLocaleString()+c}function round(a,b){return Number(Math.round(a+"e"+b)+"e-"+b)}function getUrl(){return window.location.href}function flyToCart(a){var b=$('<span class="rst-animate-tip">1</span>');b.appendTo(document.body);var c=$(window).scrollTop(),d=a,e=d.offset(),f=d.width(),g=d.height(),h=$("#cart-qty"),i=h.offset(),j={left:e.left+f/2-b.outerWidth(!0)/2,top:e.top-c+g/2-b.outerHeight(!0)/2},k={left:i.left+h.width()/2-b.outerWidth(!0)/2,top:i.top-c},l={x:k.left-j.left,y:k.top-j.top},m=(new TWEEN.Tween({x:0,y:0,old:{x:0,y:0}})).to({x:[.6*l.x,l.x],y:[Math.min(-150,l.y-100),l.y]},700).interpolation(TWEEN.Interpolation.Bezier).easing(TWEEN.Easing.Quadratic.Out).onUpdate(function(){b.css({left:this.x+j.left+"px",top:this.y+j.top+"px"}),this.old.x=this.x,this.old.y=this.y}).onComplete(function(){b.remove()}).start();animate()}function animate(a){window.requestAnimationFrame(animate),TWEEN.update(a)}function stopTyping(a,b){var c=null;return function(){var d=this,e=arguments;clearTimeout(c),c=setTimeout(function(){a.apply(d,e)},b)}}function loginSuccessCallback(){closeFormLogin(),loadData()}function linkCardSuccessCallback(){var a=document.getElementById("detail-page"),b=document.getElementById("userBalance-page");if(a){var c=angular.element(a).scope();c.$apply(function(){c.detailCtrl.linkCardSuccessCallback()})}if(b){var d=angular.element(b).scope();d.$apply(function(){d.balanceTranCtrl.linkCardSuccessCallback()})}}function momoResultCallback(a){var b=document.getElementById("detail-page");if(b){var c=angular.element(b).scope();c.$apply(function(){c.detailCtrl.momoResultCallback(a)})}}function getNow(){var a=new Date,b=a.getFullYear(),c=a.getMonth()+1;c<10&&(c="0"+c);var d=a.getDate();d<10&&(d="0"+d);if(FormatDate.Common=="dd/mm/yy")return d+"/"+c+"/"+b;if(FormatDate.Common=="mm/dd/yy")return c+"/"+d+"/"+b}function format(a,b){try{return a.replace(new RegExp("{-?[0-9]+}","g"),function(a){var c=parseInt(a.substring(1,a.length-1)),d="";return c>=0?d=b[c]:c===-1?d="{":c===-2?d="}":d="",d})}catch(c){alert(c.message)}}function deliveryAlert(a,b){var c='<span class="capitalize bold" style="color: #cc0000;">Now</span><span class="bold"> {0}</span>',d={msg:a,confirm:!1,title:c},e=genTempalte(d);$("#alert-modal").openModal({dismissible:!1,complete:function(){$("#alert-modal").closeModal(),$("#alert-container").remove(),b&&b()}})}function deliveryConfirm(a,b){var c=window.location.host,d='<span class="capitalize bold" style="color: #cc0000;">Now</span><span class="bold"> {0}</span>';a.confirm=a.confirm==null?!0:a.confirm,option.title=d;var e=!1,f=genTempalte(a,b),g=$("#alert-modal");$("#alert-modal").openModal({complete:function(){$("#alert-container").remove()},dismissible:!1}),$(document).on("click","#confirm-modal-submit-btn-"+(id-1),function(){e||($("#alert-modal").closeModal(),b(),$("#alert-container").remove(),e=!0)})}function deliveryConfirm(a,b,c){var d=window.location.host,e='<span class="capitalize bold" style="color: #cc0000;">Now</span><span class="bold"> {0}</span>';a.confirm=a.confirm==null?!0:a.confirm,a.title=e;var f=!1,g=genTempalte(a,b),h=$("#alert-modal");$("#alert-modal").openModal({complete:function(){$("#alert-container").remove()},dismissible:!1}),$(document).on("click","#confirm-modal-submit-btn-"+(id-1),function(){f||($("#alert-modal").closeModal(),b(),$("#alert-container").remove(),f=!0)}),$(document).on("click","#confirm-modal-cancel-btn-"+(id-1),function(){f||($("#alert-modal").closeModal(),c!=undefined&&c(),$("#alert-container").remove(),f=!0)})}function genTempalte(a,b){var c={title:format(a.title,[Message.AlertTitle]),msg:a.msg,btnOK:a.btnOK||Button.OK,btnCancel:a.btnCancel||Button.Cancel,confirm:a.confirm,opt:a.opt},d='<div id="alert-container" class="container-popup-modal-finish">    <div id="alert-modal" class="modal container-dealdetail-finish">        <p class="mar0" style="border-bottom:1px solid #e1e1e1;padding:10px 15px;">'+c.title+'</p>        <div class="container-bg-finish container-confirm">            <p class="mar0 font15 alert-msg" id="alert-msg">'+c.msg;if(c.opt&&c.opt.length>0){d+="<br/><br/>";for(var e=0;e<c.opt.length;e++){var f=c.opt[e];d=d+'<input class="with-gap" name="'+f.groupName+'" type="radio" id="'+f.id+'"',e==0&&(d+=" checked "),d+=" />",d=d+'<label for="'+f.id+'">'+f.label+"</label>"}}return d+='</p>            <div class="img-driver"></div>        </div>        <div class="footer-modal modal-footer clearfix" style="background-color:#fff;position:relative;">',c.confirm?(d=d+'        <a href="javascript:void(0);" class="btn-footer-finish border-radius4 btn-cancel modal-close" id="confirm-modal-cancel-btn-'+id+'">'+c.btnCancel+"</a>"+'<a href="javascript:void(0);" class="btn-footer-finish border-radius4 btn-ok" id="confirm-modal-submit-btn-'+id+'">'+c.btnOK+"</a>",id+=1):d=d+'<a href="javascript:void(0);" class="btn-footer-finish border-radius4 btn-ok modal-close" id="confirm-modal-submit-btn-0">'+c.btnOK+"</a>",d+="</div>    </div></div>",$(d).appendTo("body"),$(d)}function sendMessenger(){FB.ui({method:"send",link:window.location.href,to:"phuocmarketing"})}function urlParam(a){var b=(new RegExp("[?&]"+a+"=([^&#]*)")).exec(window.location.href);return b==null?null:b[1]||0}function removeParam(a,b){var c=b.split("?")[0],d,e=[],f=b.indexOf("?")!==-1?b.split("?")[1]:"";if(f!==""){e=f.split("&");for(var g=e.length-1;g>=0;g-=1)d=e[g].split("=")[0],d===a&&e.splice(g,1);c=c+"?"+e.join("&")}return c}function copyPromotionCode(a,b){var c=$("<input>");$("body").append(c),c.val($(a).text()).select(),document.execCommand("copy"),c.remove();var d=$("#code-msg-"+b);d.html("Copied"),setTimeout(function(){d.html("Copy code")},2e3)}function copyToClipboardMsg(a,b){var c=b.value;if(c!=Message.Copied){var d=copyToClipboard(a),e;d?(e=Message.Copied,a.style.background="rgba(252, 197, 71, 0.3)"):e=Message.CopyError,typeof b=="string"&&(b=document.getElementById(b)),b.value=e,setTimeout(function(){b.value=c,a.style.background="#fff"},2e3)}}function copyToClipboard(a){var b="_hiddenCopyText_",c=a.tagName==="INPUT"||a.tagName==="TEXTAREA",d,e;if(c)f=a,d=a.selectionStart,e=a.selectionEnd;else{f=document.getElementById(b);if(!f){var f=document.createElement("textarea");f.style.position="absolute",f.style.left="-9999px",f.style.top="0",f.id=b,document.body.appendChild(f)}f.textContent=a.textContent}var g=document.activeElement;f.focus(),f.setSelectionRange(0,f.value.length);var h;try{h=document.execCommand("copy")}catch(i){h=!1}return g&&typeof g.focus=="function"&&g.focus(),c?a.setSelectionRange(d,e):f.textContent="",h}function remove_unicode(a){return a?(a=a.toLowerCase(),a=a.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a"),a=a.replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e"),a=a.replace(/ì|í|ị|ỉ|ĩ/g,"i"),a=a.replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o"),a=a.replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u"),a=a.replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y"),a=a.replace(/đ/g,"d"),a=a.replace(/-+-/g,"-"),a=a.replace(/^\-+|\-+$/g,""),a):""}function listView(){$(".container-list-restaurant").hasClass("active-view-column")&&$(".container-list-restaurant").removeClass("active-view-column"),$(".arrange-view a").removeClass("active"),$(".btn-view-row").addClass("active"),setCookie("view","list",365)}function gridView(){$(".container-list-restaurant").hasClass("active-view-column")||($(".container-list-restaurant").addClass("active-view-column"),$(".arrange-view a").removeClass("active"),$(".btn-view-column").addClass("active"),setCookie("view","grid",365))}function joinObj(a,b){var c=[];for(var d=0;d<a.length;d++)c.push(a[d][b]);return c.join(", ")}function PrintDiv(a){var b=document.getElementById(a).innerHTML,c=document.createElement("iframe");c.name="frame1",c.style.position="absolute",c.style.top="-1000000px",document.body.appendChild(c);var d=c.contentWindow?c.contentWindow:c.contentDocument.document?c.contentDocument.document:c.contentDocument;return d.document.open(),d.document.write("<html><head><title>DIV Contents</title>"),d.document.write("</head><body>"),d.document.write(b),d.document.write("</body></html>"),d.document.close(),setTimeout(function(){window.frames.frame1.focus(),window.frames.frame1.print(),document.body.removeChild(c)},500),!1}function capLock(a){kc=a.keyCode?a.keyCode:a.which,sk=a.shiftKey?a.shiftKey:kc==16?!0:!1,kc>=65&&kc<=90&&!sk||kc>=97&&kc<=122&&sk?$("#cap-lock").addClass("cap-lock-on"):$("#cap-lock").removeClass("cap-lock-on")}function compareTime(a,b){if(a===b)return 0;var c=a.split(":"),d=b.split(":");for(var e=0;e<c.length;e++){if(c[e]>d[e])return 1;if(c[e]<d[e])return-1}}function remove(a,b){var c=a.indexOf(b);a.splice(c,1)}function formateDateTime(a){if(a!=null){var b=("0"+a.getDate()).slice(-2),c=("0"+(a.getMonth()+1)).slice(-2),d=a.getFullYear();return d+"-"+c+"-"+b}}function parseJsonDate(a){return a!=null?new Date(parseInt(a.replace("/Date(",""))):new Date}function convertStringToDateTime(a){if(a!=null){var b=a.split(" ")[0],c=a.split(" ")[1],d=b.split("-")[0],e=b.split("-")[1],f=b.split("-")[2],g=c.split(":")[0],h=c.split(":")[1],i=c.split(":")[2],j=new Date(f,e,d,g,h,i);return j}}var id=1,country={Thailand:76,Vietnam:86};window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a,b){window.setTimeout(a,1e3/60)}}()),Object.defineProperty(Array.prototype,"group",{enumerable:!1,value:function(a){var b={};return this.forEach(function(c){var d=a(c);b[d]=b[d]||[],b[d].push(c)}),Object.keys(b).map(function(a){return{key:a,data:b[a]}})}}),$(document).click(function(a){!$(".search-page .idea-searching").hasClass("ng-hide")&&!$(a.target).hasClass("search_placeholder")&&($(a.target).is(".idea-searching, .idea-searching *")||$(".idea-searching").addClass("ng-hide"))})
  ;(function(a){window.addEventListener("keydown",function(b){b.keyCode===114&&(b.preventDefault(),a("#header-icon-search").hasClass("none")?a("#hs").focus():showFormSearch())}),window.fbAsyncInit=function(){FB.init({appId:"938149792891368",xfbml:!0,version:"v2.3"})},String.prototype.filename=function(a){var b=this.replace(/\\/g,"/");return b=b.substring(b.lastIndexOf("/")+1),a?b.replace(/[?#].+$/,""):b.split(".")[0]},a(function(){var b=setInterval(function(){document.readyState=="complete"&&(clearInterval(b),hidePreloader())},100);a(".button-collapse").sideNav(),a(".slider").slider({indicators:!1}),a("select").material_select(),a(".modal-trigger").leanModal(),a("ul.tabs").tabs(),a("#login-btn").click(login),a("#showlogin-btn").click(showFormLogin),a("#search-btn").click(showFormSearch),a("#search-btn-close").click(closeFormSearch),a(window).scroll(function(){a(this).scrollTop()>200?a("#topcontrol").stop().animate({bottom:"0px"},100):a("#topcontrol").stop().animate({bottom:"-141px"},500)}),a("#btn-back-top").click(function(){a("html, body").stop().animate({scrollTop:0},1e3,function(){a("#topcontrol").stop().animate({bottom:"-141px"},500)})}),a("#back-to-prev-version").on("click",function(a){var b=window.location.href;window.location.href=b.replace("www","v1")}),a("#reg-btn").on("click",register),a(".btn-nav-sub").on("click",function(b){a(".container-popup-menu").hasClass("block")?(a(".container-popup-menu").removeClass("block"),a(".overlay-bg").removeClass("block")):(a(".overlay-bg").addClass("block"),a(".container-popup-menu").addClass("block"))}),a(".overlay-bg").on("click",function(){a(".overlay-bg").hasClass("block")&&a(".overlay-bg").removeClass("block")}),a("#login-status").on("click",".logined-user",function(b){a(".sub-nav-user").hasClass("block")?(a(".overlay-bg").removeClass("block"),a(".sub-nav-user").removeClass("block")):(a(".sub-nav-user").addClass("block"),a(".container-popup-menu").addClass("block"),a(".overlay-bg").addClass("block"))}),a(".language-select").on("click",function(b){a(".dropdown-language").hasClass("block")?(a(".dropdown-language").removeClass("block"),a(".overlay-bg").removeClass("block")):(a(".overlay-bg").addClass("block"),a(".dropdown-language").addClass("block"))}),a(".user-left-select").on("click",function(b){a(".dropdown-user-left").hasClass("block")?(a(".dropdown-user-left").removeClass("block"),a(".overlay-bg").removeClass("block")):(a(".overlay-bg").addClass("block"),a(".dropdown-user-left").addClass("block"))}),a(document).on("click",function(b){var c=a(".btn-nav-sub"),d=a(".user-left-select"),e=a(".logined-user"),f=a(".nav-filter > li > a"),g=a(".widget-checkbox-filter input"),h=a(".language-select"),i=a(".turn-off-overlay");!c.is(b.target)&&c.has(b.target).length===0&&a(".container-popup-menu").removeClass("block"),!d.is(b.target)&&d.has(b.target).length===0&&a(".dropdown-user-left").removeClass("block"),!h.is(b.target)&&h.has(b.target).length===0&&a(".dropdown-language").removeClass("block"),!e.is(b.target)&&e.has(b.target).length===0&&a(".sub-nav-user").removeClass("block"),!i.is(b.target)&&i.has(b.target).length===0&&a(".overlay-bg").removeClass("block"),!f.is(b.target)&&!g.is(b.target)&&f.has(b.target).length===0&&(a(".container-box-filter").hide(),f.hasClass("active")&&(f.removeClass("active"),a(".overlay-bg").removeClass("block"),loadData()))}),a("form#login-form input").keydown(function(b){if(b.keyCode==13){var c=a(this).parents("form#login-form").eq(0).find(":input");if(c[c.index(this)+1]!=null)return c[c.index(this)+1].focus(),b.preventDefault(),!1;b.preventDefault(),login()}}),view="grid",view||(view="grid");switch(view){case"grid":gridView();break;case"list":listView()}a(".btn-view-column").on("click",function(){gridView()}),a(".btn-view-row").on("click",function(){listView()}),a(window).scroll(function(){a(this).scrollTop()>100?a(".fix-container-filter").css({position:"fixed",top:"0px"}):a(".fix-container-filter").css({position:"absolute",top:"100px"}),a(this).scrollTop()>40&&a(".navbar-fixed").css({position:"fixed",top:"0px"}),a(this).scrollTop()<40&&a(".navbar-fixed").css({position:"absolute",top:"35px"})})})})(jQuery)
  ;var version="1.0.0";$(document).ready(function(){var a=getCookie("version");a!=version&&console.log(a,version)})
  ;(function(a){function f(a){e&&console.log(a)}function j(a){var b=/^rgba?\(([\d]+),([\d]+),([\d]+)(,([\d\.]+))?\)$/;if(b.test(a)){var c=b.exec(a);return{r:parseInt(c[1]),g:parseInt(c[2]),b:parseInt(c[3]),a:parseInt(c[5]?c[5]:1)}}var d=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(d,function(a,b,c,d){return b+b+c+c+d+d});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:null}function k(){var a=document.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")}function l(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function m(){return l()+l()+"-"+l()+"-"+l()+"-"+l()+"-"+l()+l()+l()}function n(a){var b=a.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}\s[0-9]{1,2}:[0-9]{2}:[0-9]{2}$/);if(b!==null&&b.length>0){var c=a.split(" "),d=c[0].split("-"),e=c[1].split(":");return new Date(d[0],d[1]-1,d[2],e[0],e[1],e[2])}var f=Date.parse(a);return isNaN(f)?(f=Date.parse(a.replace(/-/g,"/").replace("T"," ")),isNaN(f)?new Date:f):f}function o(a,b,c,d,e){var f={},g={},h={},j={},k={},l={},m=null;for(var n=0;n<d.length;n++){var o=d[n],p;m===null?p=c/i[o]:p=i[m]/i[o];var q=a/i[o],r=b/i[o];e&&(q>0?q=Math.floor(q):q=Math.ceil(q),r>0?r=Math.floor(r):r=Math.ceil(r)),o!=="Days"&&(q%=p,r%=p),f[o]=q,h[o]=Math.abs(q),g[o]=r,l[o]=Math.abs(r),j[o]=Math.abs(q)/p,k[o]=Math.abs(r)/p,m=o}return{raw_time:f,raw_old_time:g,time:h,old_time:l,pct:j,old_pct:k}}function q(){typeof b.TC_Instance_List!="undefined"?p=b.TC_Instance_List:b.TC_Instance_List=p,r(b)}function r(a){var b=["webkit","moz"];for(var c=0;c<b.length&&!a.requestAnimationFrame;++c)a.requestAnimationFrame=a[b[c]+"RequestAnimationFrame"],a.cancelAnimationFrame=a[b[c]+"CancelAnimationFrame"];if(!a.requestAnimationFrame||!a.cancelAnimationFrame)a.requestAnimationFrame=function(b,c,d){typeof d=="undefined"&&(d={data:{last_frame:0}});var e=(new Date).getTime(),f=Math.max(0,16-(e-d.data.last_frame)),g=a.setTimeout(function(){b(e+f)},f);return d.data.last_frame=e+f,g},a.cancelAnimationFrame=function(a){clearTimeout(a)}}var b=window;Object.keys||(Object.keys=function(){"use strict";var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if(typeof e=="object"||typeof e=="function"&&e!==null){var f=[],g,h;for(g in e)a.call(e,g)&&f.push(g);if(b)for(h=0;h<d;h++)a.call(e,c[h])&&f.push(c[h]);return f}throw new TypeError("Object.keys called on non-object")}}());var c=!1,d=200,e=location.hash==="#debug",g=["Days","Hours","Minutes","Seconds"],h={Seconds:"Minutes",Minutes:"Hours",Hours:"Days",Days:"Years"},i={Seconds:1,Minutes:60,Hours:3600,Days:86400,Months:2678400,Years:31536e3};Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length>>>0,c=Number(arguments[1])||0;c=c<0?Math.ceil(c):Math.floor(c),c<0&&(c+=b);for(;c<b;c++)if(c in this&&this[c]===a)return c;return-1});var p={},s=function(a,b){this.element=a,this.container,this.listeners=null,this.data={paused:!1,last_frame:0,animation_frame:null,interval_fallback:null,timer:!1,total_duration:null,prev_time:null,drawn_units:[],text_elements:{Days:null,Hours:null,Minutes:null,Seconds:null},attributes:{canvas:null,context:null,item_size:null,line_width:null,radius:null,outer_radius:null},state:{fading:{Days:!1,Hours:!1,Minutes:!1,Seconds:!1}}},this.config=null,this.setOptions(b),this.initialize()};s.prototype.clearListeners=function(){this.listeners={all:[],visible:[]}},s.prototype.addTime=function(a){if(this.data.attributes.ref_date instanceof Date){var b=this.data.attributes.ref_date;b.setSeconds(b.getSeconds()+a)}else isNaN(this.data.attributes.ref_date)||(this.data.attributes.ref_date+=a*1e3)},s.prototype.initialize=function(d){this.data.drawn_units=[];for(var e=0;e<Object.keys(this.config.time).length;e++){var f=Object.keys(this.config.time)[e];this.config.time[f].show&&this.data.drawn_units.push(f)}a(this.element).children("div.time_circles").remove(),typeof d=="undefined"&&(d=!0),(d||this.listeners===null)&&this.clearListeners(),this.container=a("<div>"),this.container.addClass("time_circles"),this.container.appendTo(this.element);var g=this.element.offsetHeight,h=this.element.offsetWidth;g===0&&(g=a(this.element).height()),h===0&&(h=a(this.element).width()),g===0&&h>0?g=h/this.data.drawn_units.length:h===0&&g>0&&(h=g*this.data.drawn_units.length);var i=document.createElement("canvas");i.width=h,i.height=g,this.data.attributes.canvas=a(i),this.data.attributes.canvas.appendTo(this.container);var j=k();!j&&typeof G_vmlCanvasManager!="undefined"&&(G_vmlCanvasManager.initElement(i),c=!0,j=!0),j&&(this.data.attributes.context=i.getContext("2d")),this.data.attributes.item_size=Math.min(h/this.data.drawn_units.length,g),this.data.attributes.line_width=this.data.attributes.item_size*this.config.fg_width,this.data.attributes.radius=(this.data.attributes.item_size*.8-this.data.attributes.line_width)/2,this.data.attributes.outer_radius=this.data.attributes.radius+.5*Math.max(this.data.attributes.line_width,this.data.attributes.line_width*this.config.bg_width);var e=0;for(var l in this.data.text_elements){if(!this.config.time[l].show)continue;var m=a("<div>");m.addClass("textDiv_"+l),m.css("top",Math.round(.35*this.data.attributes.item_size)),m.css("left",Math.round(e++*this.data.attributes.item_size)),m.css("width",this.data.attributes.item_size),m.appendTo(this.container);var n=a("<h4>");n.text(this.config.time[l].text),n.css("font-size",Math.round(this.config.text_size*this.data.attributes.item_size)),n.appendTo(m);var o=a("<span>");o.css("font-size",Math.round(this.config.number_size*this.data.attributes.item_size)),o.appendTo(m),this.data.text_elements[l]=o}this.start(),this.config.start||(this.data.paused=!0);var p=this;this.data.interval_fallback=b.setInterval(function(){p.update.call(p,!0)},100)},s.prototype.update=function(a){if(typeof a=="undefined")a=!1;else if(a&&this.data.paused)return;c&&this.data.attributes.context.clearRect(0,0,this.data.attributes.canvas[0].width,this.data.attributes.canvas[0].hright);var e,f,h=this.data.prev_time,j=new Date;this.data.prev_time=j,h===null&&(h=j);if(!this.config.count_past_zero&&j>this.data.attributes.ref_date){for(var k=0;k<this.data.drawn_units.length;k++){var l=this.data.drawn_units[k];this.data.text_elements[l].text("0");var m=k*this.data.attributes.item_size+this.data.attributes.item_size/2,n=this.data.attributes.item_size/2,p=this.config.time[l].color;this.drawArc(m,n,p,0)}this.stop();return}e=(this.data.attributes.ref_date-j)/1e3,f=(this.data.attributes.ref_date-h)/1e3;var q=this.config.animation!=="smooth",r=o(e,f,this.data.total_duration,this.data.drawn_units,q),s=o(e,f,i.Years,g,q),k=0,t=0,u=null,v=this.data.drawn_units.slice();for(var k in g){var l=g[k];Math.floor(s.raw_time[l])!==Math.floor(s.raw_old_time[l])&&this.notifyListeners(l,Math.floor(s.time[l]),Math.floor(e),"all");if(v.indexOf(l)<0)continue;Math.floor(r.raw_time[l])!==Math.floor(r.raw_old_time[l])&&this.notifyListeners(l,Math.floor(r.time[l]),Math.floor(e),"visible");if(!a){this.data.text_elements[l].text(Math.floor(Math.abs(r.time[l])));var m=t*this.data.attributes.item_size+this.data.attributes.item_size/2,n=this.data.attributes.item_size/2,p=this.config.time[l].color;this.config.animation==="smooth"?(u!==null&&!c&&(Math.floor(r.time[u])>Math.floor(r.old_time[u])?(this.radialFade(m,n,p,1,l),this.data.state.fading[l]=!0):Math.floor(r.time[u])<Math.floor(r.old_time[u])&&(this.radialFade(m,n,p,0,l),this.data.state.fading[l]=!0)),this.data.state.fading[l]||this.drawArc(m,n,p,r.pct[l])):this.animateArc(m,n,p,r.pct[l],r.old_pct[l],(new Date).getTime()+d)}u=l,t++}if(this.data.paused||a)return;var w=this,x=function(){w.update.call(w)};if(this.config.animation==="smooth")this.data.animation_frame=b.requestAnimationFrame(x,w.element,w);else{var y=e%1*1e3;y<0&&(y=1e3+y),y+=50,w.data.animation_frame=b.setTimeout(function(){w.data.animation_frame=b.requestAnimationFrame(x,w.element,w)},y)}},s.prototype.animateArc=function(a,c,e,f,g,h){if(this.data.attributes.context===null)return;var i=g-f;if(Math.abs(i)>.5)f===0?this.radialFade(a,c,e,1):this.radialFade(a,c,e,0);else{var j=(d-(h-(new Date).getTime()))/d;j>1&&(j=1);var k=g*(1-j)+f*j;this.drawArc(a,c,e,k);if(j>=1)return;var l=this;b.requestAnimationFrame(function(){l.animateArc(a,c,e,f,g,h)},this.element)}},s.prototype.drawArc=function(a,b,d,e){if(this.data.attributes.context===null)return;var f=Math.max(this.data.attributes.outer_radius,this.data.attributes.item_size/2);c||this.data.attributes.context.clearRect(a-f,b-f,f*2,f*2),this.config.use_background&&(this.data.attributes.context.beginPath(),this.data.attributes.context.arc(a,b,this.data.attributes.radius,0,2*Math.PI,!1),this.data.attributes.context.lineWidth=this.data.attributes.line_width*this.config.bg_width,this.data.attributes.context.strokeStyle=this.config.circle_bg_color,this.data.attributes.context.stroke());var g,h,i,j=-0.5*Math.PI,k=2*Math.PI;g=j+this.config.start_angle/360*k;var l=2*e*Math.PI;this.config.direction==="Both"?(i=!1,g-=l/2,h=g+l):this.config.direction==="Clockwise"?(i=!1,h=g+l):(i=!0,h=g-l),this.data.attributes.context.beginPath(),this.data.attributes.context.arc(a,b,this.data.attributes.radius,g,h,i),this.data.attributes.context.lineWidth=this.data.attributes.line_width,this.data.attributes.context.strokeStyle=d,this.data.attributes.context.stroke()},s.prototype.radialFade=function(a,c,d,e,f){var g=j(d),h=this,i=.2*(e===1?-1:1),k;for(k=0;e<=1&&e>=0;k++)(function(){var d=50*k,f="rgba("+g.r+", "+g.g+", "+g.b+", "+Math.round(e*10)/10+")";b.setTimeout(function(){h.drawArc(a,c,f,1)},d)})(),e+=i;typeof f!==undefined&&b.setTimeout(function(){h.data.state.fading[f]=!1},50*k)},s.prototype.timeLeft=function(){if(this.data.paused&&typeof this.data.timer=="number")return this.data.timer;var a=new Date;return(this.data.attributes.ref_date-a)/1e3},s.prototype.start=function(){b.cancelAnimationFrame(this.data.animation_frame),b.clearTimeout(this.data.animation_frame);var c=a(this.element).data("date");typeof c=="undefined"&&(c=a(this.element).attr("data-date"));if(typeof c=="string")this.data.attributes.ref_date=n(c);else if(typeof this.data.timer=="number")this.data.paused&&(this.data.attributes.ref_date=(new Date).getTime()+this.data.timer*1e3);else{var d=a(this.element).data("timer");typeof d=="undefined"&&(d=a(this.element).attr("data-timer")),typeof d=="string"&&(d=parseFloat(d)),typeof d=="number"?(this.data.timer=d,this.data.attributes.ref_date=(new Date).getTime()+d*1e3):this.data.attributes.ref_date=this.config.ref_date}this.data.paused=!1,this.update.call(this)},s.prototype.restart=function(){this.data.timer=!1,this.start()},s.prototype.stop=function(){typeof this.data.timer=="number"&&(this.data.timer=this.timeLeft(this)),this.data.paused=!0,b.cancelAnimationFrame(this.data.animation_frame)},s.prototype.destroy=function(){this.clearListeners(),this.stop(),b.clearInterval(this.data.interval_fallback),this.data.interval_fallback=null,this.container.remove(),a(this.element).removeAttr("data-tc-id"),a(this.element).removeData("tc-id")},s.prototype.setOptions=function(c){this.config===null&&(this.default_options.ref_date=new Date,this.config=a.extend(!0,{},this.default_options)),a.extend(!0,this.config,c),this.config.use_top_frame?b=window.top:b=window,q(),this.data.total_duration=this.config.total_duration;if(typeof this.data.total_duration=="string")if(typeof i[this.data.total_duration]!="undefined")this.data.total_duration=i[this.data.total_duration];else if(this.data.total_duration==="Auto")for(var d=0;d<Object.keys(this.config.time).length;d++){var e=Object.keys(this.config.time)[d];if(this.config.time[e].show){this.data.total_duration=i[h[e]];break}}else this.data.total_duration=i.Years,console.error("Valid values for TimeCircles config.total_duration are either numeric, or (string) Years, Months, Days, Hours, Minutes, Auto")},s.prototype.addListener=function(a,b,c){if(typeof a!="function")return;typeof c=="undefined"&&(c="visible"),this.listeners[c].push({func:a,scope:b})},s.prototype.notifyListeners=function(a,b,c,d){for(var e=0;e<this.listeners[d].length;e++){var f=this.listeners[d][e];f.func.apply(f.scope,[a,b,c])}},s.prototype.default_options={ref_date:new Date,start:!0,animation:"smooth",count_past_zero:!0,circle_bg_color:"#60686F",use_background:!0,fg_width:.1,bg_width:1.2,text_size:.07,number_size:.28,total_duration:"Auto",direction:"Clockwise",use_top_frame:!1,start_angle:0,time:{Days:{show:!0,text:"Days",color:"#FC6"},Hours:{show:!0,text:"Hours",color:"#9CF"},Minutes:{show:!0,text:"Minutes",color:"#BFB"},Seconds:{show:!0,text:"Seconds",color:"#F99"}}};var t=function(a,b){this.elements=a,this.options=b,this.foreach()};t.prototype.getInstance=function(b){var c,d=a(b).data("tc-id");typeof d=="undefined"&&(d=m(),a(b).attr("data-tc-id",d));if(typeof p[d]=="undefined"){var e=this.options,f=a(b).data("options");typeof f=="string"&&(f=JSON.parse(f)),typeof f=="object"&&(e=a.extend(!0,{},this.options,f)),c=new s(b,e),p[d]=c}else c=p[d],typeof this.options!="undefined"&&c.setOptions(this.options);return c},t.prototype.addTime=function(a){this.foreach(function(b){b.addTime(a)})},t.prototype.foreach=function(a){var b=this;return this.elements.each(function(){var c=b.getInstance(this);typeof a=="function"&&a(c)}),this},t.prototype.start=function(){return this.foreach(function(a){a.start()}),this},t.prototype.stop=function(){return this.foreach(function(a){a.stop()}),this},t.prototype.restart=function(){return this.foreach(function(a){a.restart()}),this},t.prototype.rebuild=function(){return this.foreach(function(a){a.initialize(!1)}),this},t.prototype.getTime=function(){return this.getInstance(this.elements[0]).timeLeft()},t.prototype.addListener=function(a,b){typeof b=="undefined"&&(b="visible");var c=this;return this.foreach(function(d){d.addListener(a,c.elements,b)}),this},t.prototype.destroy=function(){return this.foreach(function(a){a.destroy()}),this},t.prototype.end=function(){return this.elements},start_dateCountOrder=function(b){a(b).TimeCircles({direction:"Counter-clockwise",animation:"smooth",bg_width:.8,fg_width:.03333333333333333,circle_bg_color:"#E5E5E5",time:{count_past_zero:!0,Days:{show:!1},Hours:{show:!1},Minutes:{show:!1},Seconds:{text:"Seconds",color:"#00ADEF",show:!0}}}),a(document).ready(function(){var c=a(b+" .textDiv_Seconds");c.find("h4").text("MINUTES");var d=c.find("span"),e=d.clone().prependTo(c);d.hide(),a(b).TimeCircles().addListener(function(d,f,g){g=Math.abs(g),a("[data-timer]").data("timer")||a(b).TimeCircles().stop();if(g<3600){var h=Math.floor(g/60);c.find("h4").text("MINUTES"),e.text(h)}if(g>3600){var i=Math.floor(g/3600),h=0;if(i>=1&&i<24){var j=g-i*3600;h=Math.floor(j/60),e.html(i+'<span class="small">h</span> '+h+'<span class="small">m</span>').addClass("minutes"),c.find("h4").text("")}else c.find("h4").text("Hours"),e.text(i)}if(g>86400){var k=Math.floor(g/86400);c.find("h4").text("Days"),e.text(k)}g||a(b).TimeCircles().stop()})})},a.fn.TimeCircles=function(a){return new t(this,a)}})(jQuery)
  ;(function(){function a(a,b,c){function e(){var c=b.defer();return a({method:"POST",url:"/Corporate/GetDeliveryCorporate",data:{}}).success(c.resolve).error(c.reject),c.promise}function f(c){var d=b.defer();return a({method:"POST",url:"/Corporate/GeneratePromoCode",data:c}).success(d.resolve).error(d.reject),d.promise}function g(c,d,e,f,g,h){var i=b.defer();return a({method:"POST",url:"/Corporate/GetDeliveryPromocodeCorporate",data:{PageIndex:c,PageSize:d,FromDate:e,ToDate:f,Status:g,CorporateId:h}}).success(i.resolve).error(i.reject),i.promise}function h(c,d,e){var f=b.defer();return a({method:"POST",url:"/Corporate/GetCorporateGroup",data:{PageIndex:c,PageSize:d,CorporateId:e}}).success(f.resolve).error(f.reject),f.promise}function i(c){var d=b.defer();return a({method:"POST",url:"/Corporate/CreateUpdateCorporateGroup",data:{model:c}}).success(d.resolve).error(d.reject),d.promise}function j(c){var d=b.defer();return a({method:"POST",url:"/Corporate/DeleteCorporateGroup",data:{id:c}}).success(d.resolve).error(d.reject),d.promise}function k(c,d,e){var f=b.defer();return a({method:"POST",url:"/Corporate/GetMemberCorporateGroup",data:{PageIndex:c,PageSize:d,GroupId:e}}).success(f.resolve).error(f.reject),f.promise}function l(c,d){var e=b.defer();return a({method:"POST",url:"/Corporate/ChangeStatusMemberGroup",data:{mappingID:c,status:d}}).success(e.resolve).error(e.reject),e.promise}function m(c){var d=b.defer();return a({method:"POST",url:"/Corporate/RemoveGroupFromPromocode",data:{id:c}}).success(d.resolve).error(d.reject),d.promise}function n(c){var d=b.defer();return a({method:"POST",url:"/Corporate/UpdatePromocodeGroup",data:{model:c}}).success(d.resolve).error(d.reject),d.promise}var d={getDeliveryCorporate:e,generatePromoCode:f,getDeliveryPromocodeCorporate:g,getDeliveryCorporateGroup:h,createCorporateGroup:i,deleteCorporateGroup:j,getMemberCorporateGroup:k,changeStatusMemberGroup:l,removeGroupFromPromocode:m,updatePromocodeGroup:n};return d}"use strict",angular.module("deliveryNow").factory("corporateService",a),a.$inject=["$http","$q","deliveryCache"]})()
  ;(function(){function a(){return function(a){var b=a!=null?a.substr(6):0,c=new Date(parseInt(b));return c}}"use strict",angular.module("deliveryNow").filter("ctime",a)})()
  ;var tempData=[];(function(){function a(a,b,c){function e(){return d.pageIndex}function f(a){return d.pageIndex===a.value}function g(a,b){b!=a&&k()}function h(){d.pageIndex=0,k()}function i(){showPreloader(),c.getDeliveryCorporate().then(function(a){hidePreloader();if(a.success){d.DeliveryCorporate=a.data;var b=d.DeliveryCorporate.EndDate.replace("/Date(","").replace(")/",""),c=(new Date).getTime();c>b?d.DeliveryCorporate.IsShowBoxGenerateCorporation=!1:d.DeliveryCorporate.IsShowBoxGenerateCorporation=!0,k()}else deliveryAlert("Có lỗi xảy ra. Vui lòng thử lại")})}function j(){d.generatePromo.CouponValue=$("#couponValue").val(),d.generatePromo.TimeLimit=$("#timeLimit").val(),d.generatePromo.CorporateId=d.DeliveryCorporate.Id,a.generalForm.$valid&&d.generatePromo.QtyCoupon>0&&d.generatePromo.CouponValue>0&&d.generatePromo.TimeLimit>0?(showPreloader(),c.generatePromoCode(d.generatePromo).then(function(a){hidePreloader(),a.Message==""||a.Message==null?(deliveryAlert(Message.DeN_Web_Corporate_Create_PromoteCode_Success),i(),d.qtyCoupon="",d.pageIndex=0,k()):deliveryAlert(a.Message)})):deliveryAlert(Message.MissingInfo)}function k(){var a=$("#start-day").val(),b=$("#end-day").val(),e=a!=""?A(a):"",f=b!=""?A(b):"",g=$("#status-promocode").val();if(d.Status!=g||d.FromDate!=e||d.ToDate!=f)d.pageIndex=0;d.FromDate=e,d.ToDate=f,d.Status=g,showPreloader(),c.getDeliveryPromocodeCorporate(d.pageIndex,d.pageSize,d.FromDate,d.ToDate,d.Status,d.DeliveryCorporate.Id).then(function(a){hidePreloader();if(a!=null){d.ListDeliveryCodes=a.result,d.totalCount=a.total,d.totalAmountCode=a.totalAmount;var b=Math.ceil(d.totalCount/d.pageSize);d.paging=[];for(var c=0;c<b;c++)d.paging.push({name:c+1,value:c})}else deliveryAlert(a.Message)})}function l(){d.ListDeliveryCorporateGroups.length==0&&p()}function m(){return d.pageIndexGroup}function n(a,b){b!=a&&p()}function o(a){return d.pageIndexGroup===a.value}function p(){showPreloader(),c.getDeliveryCorporateGroup(d.pageIndexGroup,d.pageSizeGroup,d.DeliveryCorporate.Id).then(function(a){hidePreloader();if(a!=null){d.ListDeliveryCorporateGroups=a.result,d.totalCountGroup=a.total;var b=Math.ceil(d.totalCountGroup/d.pageSizeGroup);d.pagingGroup=[];for(var c=0;c<b;c++)d.pagingGroup.push({name:c+1,value:c})}else deliveryAlert(a.Message)})}function q(a){$("#create-new-group").openModal({dismissible:!0}),d.groupCorporate.MemberIds=[],d.groupCorporate=a}function r(){d.groupCorporate.GroupName!=""&&d.groupCorporate.GroupName!=undefined?(d.groupCorporate.CorporateId=d.DeliveryCorporate.Id,showPreloader(),c.createCorporateGroup(d.groupCorporate).then(function(a){hidePreloader(),a!=null&&a?(p(),$("#create-new-group").closeModal()):deliveryAlert("Thao tác thất bại")})):deliveryAlert("Nhập đầy đủ thông tin")}function s(a){showPreloader(),c.deleteCorporateGroup(a).then(function(a){hidePreloader(),a!=null&&a?p():deliveryAlert("Có lỗi xảy ra. Vui lòng thử lại")})}function t(a){var b=$("<input>");$("body").append(b),b.val($(a).text()).select(),document.execCommand("copy"),b.remove(),$(a).parents(".content-table-corporation").find("a").removeClass("copied"),$(a).parents(".link-group").find("a").addClass("copied")}function u(a){$("#popup-list-member").openModal({dismissible:!0}),y(a)}function v(){return d.pageIndexGroupMember}function w(a,b){b!=a&&y(d.groupCorporate)}function x(a){return d.pageIndexGroupMember===a.value}function y(a){d.groupCorporate=a,showPreloader(),c.getMemberCorporateGroup(d.pageIndexGroupMember,d.pageSizeGroupMember,a.Id).then(function(a){hidePreloader();if(a!=null){d.ListDeliveryCorporateGroupsMemberRequest=a.resultRequest,d.ListDeliveryCorporateGroupsMemberMember=a.resultMember,d.totalCountGroupMember=a.total,d.totalMemberGroup=a.totalMemberGroup,d.totalPendingActionGroup=a.totalPendingActionGroup;var b=Math.ceil(d.totalCountGroupMember/d.pageSizeGroupMember);d.pagingGroupMember=[];for(var c=0;c<b;c++)d.pagingGroupMember.push({name:c+1,value:c})}else deliveryAlert(a.Message)})}function z(a,b){showPreloader(),c.changeStatusMemberGroup(a,b).then(function(a){hidePreloader(),a!=null&&a?(y(d.groupCorporate),p()):deliveryAlert("Có lỗi xảy ra. Vui lòng thử lại")})}function A(a){var b=a.split("-").reverse().join("/");return b}function B(a){d.GroupUsedCode.PromoCode=a.Code,d.GroupUsedCode.Id=a.Id,d.GroupUsedCode.ListGroups=[],d.GroupUsedCode.ListGroups=a.ListGroups,$(".popup-list-group_used_code").openModal({dismissible:!0})}function C(a){showPreloader(),c.removeGroupFromPromocode(a.Id).then(function(b){hidePreloader();if(b!=null&&b){k();var c=d.GroupUsedCode.ListGroups.indexOf(a);c>=0&&d.GroupUsedCode.ListGroups.splice(c,1)}else deliveryAlert("Có lỗi xảy ra. Vui lòng thử lại")})}function D(a){d.GroupUsedCode.PromoCode=a.Code,d.GroupUsedCode.Id=a.Id,d.GroupUsedCode.GroupIds=[],$(".create-new-promocode-group").openModal({dismissible:!0})}function E(){d.GroupUsedCode.GroupIds.length>0&&d.GroupUsedCode.Id>0?(showPreloader(),c.updatePromocodeGroup(d.GroupUsedCode).then(function(a){hidePreloader(),a!=null&&a?(k(),$(".create-new-promocode-group").closeModal()):deliveryAlert("Thao tác thất bại")})):deliveryAlert("Chưa chọn nhóm")}var d=this;d.ListDeliveryCodes=[],d.DeliveryCorporate={},d.generatePromo={},d.totalCount=0,d.totalAmountCode=0,d.paging=[],d.pageIndex=0,d.pageSize=10,d.Status=0,d.CorporateId=0,d.FromDate="",d.ToDate="",d.generatePromoCode=j,d.searchPromocode=k,d.changePromoStatus=h,d.isActive=f,d.totalCountGroup=0,d.pagingGroup=[],d.pageIndexGroup=0,d.pageSizeGroup=10,d.isActiveGroup=o,d.ListDeliveryCorporateGroups=[],d.groupCorporate={},d.ListMemberGroup=[],d.createGroupCorporate=q,d.saveGroupCorporate=r,d.tabGroup=l,d.deleteCorporateGroup=s,d.getListMemberGroup=u,d.copyToClipboardGroup=t,d.showGroupUsedPromocode=B,d.GroupUsedCode={},d.addPromocodeGroup=D,d.totalCountGroupMember=0,d.totalMemberGroup=0,d.totalPendingActionGroup=0,d.pagingGroupMember=[],d.pageIndexGroupMember=0,d.pageSizeGroupMember=10,d.isActiveGroupMember=x,d.changeStatusMemberGroup=z,d.savePromocodeGroup=E,d.ListDeliveryCorporateGroupsMemberRequest=[],d.ListDeliveryCorporateGroupsMemberMember=[],d.GroupId=0,d.removeGroupFromPromocode=C,i(),a.$watch(e,g),a.$watch(m,n),a.$watch(v,w)}"use strict",angular.module("deliveryNow").controller("CorporateController",a),a.$inject=["$scope","$filter","corporateService"]})()
  ;(function(a,b,c){"use strict",c.module("googlechart",[]).value("googleChartApiConfig",{version:"1",optionalSettings:{packages:["corechart"]}}).provider("googleJsapiUrl",function(){var a="https:",b="//www.google.com/jsapi";this.setProtocol=function(b){a=b},this.setUrl=function(a){b=a},this.$get=function(){return(a?a:"")+b}}).factory("googleChartApiPromise",["$rootScope","$q","googleChartApiConfig","googleJsapiUrl",function(d,e,f,g){var h=e.defer(),i=function(){var a={callback:function(){var a=f.optionalSettings.callback;d.$apply(function(){h.resolve()}),c.isFunction(a)&&a.call(this)}};a=c.extend({},f.optionalSettings,a),b.google.load("visualization",f.version,a)},j=a.getElementsByTagName("head")[0],k=a.createElement("script");return k.setAttribute("type","text/javascript"),k.src=g,k.addEventListener?k.addEventListener("load",i,!1):k.onreadystatechange=function(){if(k.readyState==="loaded"||k.readyState==="complete")k.onreadystatechange=null,i()},j.appendChild(k),h.promise}]).directive("googleChart",["$timeout","$window","$rootScope","googleChartApiPromise",function(a,b,d,e){return{restrict:"A",scope:{beforeDraw:"&",chart:"=chart",onReady:"&",onSelect:"&",select:"&"},link:function(b,f,g){function i(a,d,e){if(typeof b.chart.formatters[a]!="undefined"){if(!c.equals(b.chart.formatters[a],b.oldChartFormatters[a])){b.oldChartFormatters[a]=b.chart.formatters[a],b.formatters[a]=[];if(a==="color")for(var f=0;f<b.chart.formatters[a].length;f++){var g=new d;for(i=0;i<b.chart.formatters[a][f].formats.length;i++){var h=b.chart.formatters[a][f].formats[i];typeof h.fromBgColor!="undefined"&&typeof h.toBgColor!="undefined"?g.addGradientRange(h.from,h.to,h.color,h.fromBgColor,h.toBgColor):g.addRange(h.from,h.to,h.color,h.bgcolor)}b.formatters[a].push(g)}else for(var i=0;i<b.chart.formatters[a].length;i++)b.formatters[a].push(new d(b.chart.formatters[a][i]))}for(i=0;i<b.formatters[a].length;i++)b.chart.formatters[a][i].columnNum<e.getNumberOfColumns()&&b.formatters[a][i].format(e,b.chart.formatters[a][i].columnNum);if(a==="arrow"||a==="bar"||a==="color")b.chart.options.allowHtml=!0}}function j(){!j.triggered&&b.chart!=undefined&&(j.triggered=!0,a(function(){if(typeof b.chartWrapper=="undefined"){var c={chartType:b.chart.type,dataTable:b.chart.data,view:b.chart.view,options:b.chart.options,containerId:f[0]};b.chartWrapper=new google.visualization.ChartWrapper(c),google.visualization.events.addListener(b.chartWrapper,"ready",function(){b.chart.displayed=!0,b.$apply(function(a){a.onReady({chartWrapper:a.chartWrapper})})}),google.visualization.events.addListener(b.chartWrapper,"error",function(a){console.log("Chart not displayed due to error: "+a.message+". Full error object follows."),console.log(a)}),google.visualization.events.addListener(b.chartWrapper,"select",function(){var a=b.chartWrapper.getChart().getSelection()[0];b.$apply(function(){g.select?(console.log("Angular-Google-Chart: The 'select' attribute is deprecated and will be removed in a future release.  Please use 'onSelect'."),b.select({selectedItem:a})):b.onSelect({selectedItem:a})})})}else b.chartWrapper.setChartType(b.chart.type),b.chartWrapper.setDataTable(b.chart.data),b.chartWrapper.setView(b.chart.view),b.chartWrapper.setOptions(b.chart.options);typeof b.formatters=="undefined"&&(b.formatters={}),typeof b.chart.formatters!="undefined"&&(i("number",google.visualization.NumberFormat,b.chartWrapper.getDataTable()),i("arrow",google.visualization.ArrowFormat,b.chartWrapper.getDataTable()),i("date",google.visualization.DateFormat,b.chartWrapper.getDataTable()),i("bar",google.visualization.BarFormat,b.chartWrapper.getDataTable()),i("color",google.visualization.ColorFormat,b.chartWrapper.getDataTable()));var d=b.chart.customFormatters;if(typeof d!="undefined")for(var e in d)i(e,d[e],b.chartWrapper.getDataTable());a(function(){b.beforeDraw({chartWrapper:b.chartWrapper}),b.chartWrapper.draw(),j.triggered=!1})},0,!0))}function k(){e.then(function(){j()})}b.$watch(function(){return b.chart?{customFormatters:b.chart.customFormatters,data:b.chart.data,formatters:b.chart.formatters,options:b.chart.options,type:b.chart.type,view:b.chart.view}:b.chart},function(){k()},!0);var h=d.$on("resizeMsg",function(){a(function(){b.chartWrapper&&k()})});b.$on("$destroy",function(){h()}),b.oldChartFormatters={}}}}]).run(["$rootScope","$window",function(a,b){c.element(b).bind("resize",function(){a.$emit("resizeMsg")})}])})(document,window,window.angular)
  ;angular.module("lazy-scroll",[]).directive("lazyScroll",["$rootScope","$window",function(a,b){return{link:function(a,c,d){var e,f,g=.9,e=!0;b=angular.element(b),d.lazyNoScroll!=null&&a.$watch(d.lazyNoScroll,function(a){e=a==1?!1:!0}),d.lazyScrollTrigger!=undefined&&d.lazyScrollTrigger>0&&d.lazyScrollTrigger<100&&(g=d.lazyScrollTrigger/100),f=function(){var b=window.pageYOffset,c=window.document.body.clientHeight,f=window.innerHeight,h=b/(c-f);if(e&&h>=g)return a.$apply(d.lazyScroll)},b.on("scroll",f),a.$on("$destroy",function(){return b.off("scroll",f)})}}}])
  ;(function(a,b){typeof exports=="object"&&typeof module!="undefined"?module.exports=b():typeof define=="function"&&define.amd?define(b):a.moment=b()})(this,function(){function b(){return a.apply(null,arguments)}function c(b){a=b}function d(a){return a instanceof Array||Object.prototype.toString.call(a)==="[object Array]"}function e(a){return a!=null&&Object.prototype.toString.call(a)==="[object Object]"}function f(a){var b;for(b in a)return!1;return!0}function g(a){return a===void 0}function h(a){return typeof a=="number"||Object.prototype.toString.call(a)==="[object Number]"}function i(a){return a instanceof Date||Object.prototype.toString.call(a)==="[object Date]"}function j(a,b){var c=[],d;for(d=0;d<a.length;++d)c.push(b(a[d],d));return c}function k(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function l(a,b){for(var c in b)k(b,c)&&(a[c]=b[c]);return k(b,"toString")&&(a.toString=b.toString),k(b,"valueOf")&&(a.valueOf=b.valueOf),a}function m(a,b,c,d){return dP(a,b,c,d,!0).utc()}function n(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function o(a){return a._pf==null&&(a._pf=n()),a._pf}function r(a){if(a._isValid==null){var b=o(a),c=q.call(b.parsedDateParts,function(a){return a!=null}),d=!isNaN(a._d.getTime())&&b.overflow<0&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&c);a._strict&&(d=d&&b.charsLeftOver===0&&b.unusedTokens.length===0&&b.bigHour===undefined);if(Object.isFrozen==null||!Object.isFrozen(a))a._isValid=d;else return d}return a._isValid}function s(a){var b=m(NaN);return a!=null?l(o(b),a):o(b).userInvalidated=!0,b}function u(a,b){var c,d,e;g(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),g(b._i)||(a._i=b._i),g(b._f)||(a._f=b._f),g(b._l)||(a._l=b._l),g(b._strict)||(a._strict=b._strict),g(b._tzm)||(a._tzm=b._tzm),g(b._isUTC)||(a._isUTC=b._isUTC),g(b._offset)||(a._offset=b._offset),g(b._pf)||(a._pf=o(b)),g(b._locale)||(a._locale=b._locale);if(t.length>0)for(c=0;c<t.length;c++)d=t[c],e=b[d],g(e)||(a[d]=e);return a}function w(a){u(this,a),this._d=new Date(a._d!=null?a._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),v===!1&&(v=!0,b.updateOffset(this),v=!1)}function x(a){return a instanceof w||a!=null&&a._isAMomentObject!=null}function y(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function z(a){var b=+a,c=0;return b!==0&&isFinite(b)&&(c=y(b)),c}function A(a,b,c){var d=Math.min(a.length,b.length),e=Math.abs(a.length-b.length),f=0,g;for(g=0;g<d;g++)(c&&a[g]!==b[g]||!c&&z(a[g])!==z(b[g]))&&f++;return f+e}function B(a){b.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+a)}function C(a,c){var d=!0;return l(function(){b.deprecationHandler!=null&&b.deprecationHandler(null,a);if(d){var e=[],f;for(var g=0;g<arguments.length;g++){f="";if(typeof arguments[g]=="object"){f+="\n["+g+"] ";for(var h in arguments[0])f+=h+": "+arguments[0][h]+", ";f=f.slice(0,-2)}else f=arguments[g];e.push(f)}B(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),d=!1}return c.apply(this,arguments)},c)}function E(a,c){b.deprecationHandler!=null&&b.deprecationHandler(a,c),D[a]||(B(c),D[a]=!0)}function F(a){return a instanceof Function||Object.prototype.toString.call(a)==="[object Function]"}function G(a){var b,c;for(c in a)b=a[c],F(b)?this[c]=b:this["_"+c]=b;this._config=a,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function H(a,b){var c=l({},a),d;for(d in b)k(b,d)&&(e(a[d])&&e(b[d])?(c[d]={},l(c[d],a[d]),l(c[d],b[d])):b[d]!=null?c[d]=b[d]:delete c[d]);for(d in a)k(a,d)&&!k(b,d)&&e(a[d])&&(c[d]=l({},c[d]));return c}function I(a){a!=null&&this.set(a)}function M(a,b,c){var d=this._calendar[a]||this._calendar.sameElse;return F(d)?d.call(b,c):d}function O(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function Q(){return this._invalidDate}function T(a){return this._ordinal.replace("%d",a)}function V(a,b,c,d){var e=this._relativeTime[c];return F(e)?e(a,b,c,d):e.replace(/%d/i,a)}function W(a,b){var c=this._relativeTime[a>0?"future":"past"];return F(c)?c(b):c.replace(/%s/i,b)}function Y(a,b){var c=a.toLowerCase();X[c]=X[c+"s"]=X[b]=a}function Z(a){return typeof a=="string"?X[a]||X[a.toLowerCase()]:undefined}function $(a){var b={},c,d;for(d in a)k(a,d)&&(c=Z(d),c&&(b[c]=a[d]));return b}function ba(a,b){_[a]=b}function bb(a){var b=[];for(var c in a)b.push({unit:c,priority:_[c]});return b.sort(function(a,b){return a.priority-b.priority}),b}function bc(a,c){return function(d){return d!=null?(be(this,a,d),b.updateOffset(this,c),this):bd(this,a)}}function bd(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():NaN}function be(a,b,c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)}function bf(a){return a=Z(a),F(this[a])?this[a]():this}function bg(a,b){if(typeof a=="object"){a=$(a);var c=bb(a);for(var d=0;d<c.length;d++)this[c[d].unit](a[c[d].unit])}else{a=Z(a);if(F(this[a]))return this[a](b)}return this}function bh(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}function bm(a,b,c,d){var e=d;typeof d=="string"&&(e=function(){return this[d]()}),a&&(bl[a]=e),b&&(bl[b[0]]=function(){return bh(e.apply(this,arguments),b[1],b[2])}),c&&(bl[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function bn(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function bo(a){var b=a.match(bi),c,d;for(c=0,d=b.length;c<d;c++)bl[b[c]]?b[c]=bl[b[c]]:b[c]=bn(b[c]);return function(c){var e="",f;for(f=0;f<d;f++)e+=F(b[f])?b[f].call(c,a):b[f];return e}}function bp(a,b){return a.isValid()?(b=bq(b,a.localeData()),bk[b]=bk[b]||bo(b),bk[b](a)):a.localeData().invalidDate()}function bq(a,b){function d(a){return b.longDateFormat(a)||a}var c=5;bj.lastIndex=0;while(c>=0&&bj.test(a))a=a.replace(bj,d),bj.lastIndex=0,c-=1;return a}function bJ(a,b,c){bI[a]=F(b)?b:function(a,d){return a&&c?c:b}}function bK(a,b){return k(bI,a)?bI[a](b._strict,b._locale):new RegExp(bL(a))}function bL(a){return bM(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function bM(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function bO(a,b){var c,d=b;typeof a=="string"&&(a=[a]),h(b)&&(d=function(a,c){c[b]=z(a)});for(c=0;c<a.length;c++)bN[a[c]]=d}function bP(a,b){bO(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function bQ(a,b,c){b!=null&&k(bN,a)&&bN[a](b,c._a,c,a)}function ca(a,b){return(new Date(Date.UTC(a,b+1,0))).getUTCDate()}function cd(a,b){return a?d(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||cb).test(b)?"format":"standalone"][a.month()]:d(this._months)?this._months:this._months.standalone}function cf(a,b){return a?d(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[cb.test(b)?"format":"standalone"][a.month()]:d(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function cg(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];for(d=0;d<12;++d)f=m([2e3,d]),this._shortMonthsParse[d]=this.monthsShort(f,"").toLocaleLowerCase(),this._longMonthsParse[d]=this.months(f,"").toLocaleLowerCase()}return c?b==="MMM"?(e=b_.call(this._shortMonthsParse,g),e!==-1?e:null):(e=b_.call(this._longMonthsParse,g),e!==-1?e:null):b==="MMM"?(e=b_.call(this._shortMonthsParse,g),e!==-1?e:(e=b_.call(this._longMonthsParse,g),e!==-1?e:null)):(e=b_.call(this._longMonthsParse,g),e!==-1?e:(e=b_.call(this._shortMonthsParse,g),e!==-1?e:null))}function ch(a,b,c){var d,e,f;if(this._monthsParseExact)return cg.call(this,a,b,c);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(d=0;d<12;d++){e=m([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),!c&&!this._monthsParse[d]&&(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i"));if(c&&b==="MMMM"&&this._longMonthsParse[d].test(a))return d;if(c&&b==="MMM"&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}function ci(a,b){var c;if(!a.isValid())return a;if(typeof b=="string")if(/^\d+$/.test(b))b=z(b);else{b=a.localeData().monthsParse(b);if(!h(b))return a}return c=Math.min(a.date(),ca(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a}function cj(a){return a!=null?(ci(this,a),b.updateOffset(this,!0),this):bd(this,"Month")}function ck(){return ca(this.year(),this.month())}function cm(a){return this._monthsParseExact?(k(this,"_monthsRegex")||cp.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=cl),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function co(a){return this._monthsParseExact?(k(this,"_monthsRegex")||cp.call(this),a?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=cn),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function cp(){function a(a,b){return b.length-a.length}var b=[],c=[],d=[],e,f;for(e=0;e<12;e++)f=m([2e3,e]),b.push(this.monthsShort(f,"")),c.push(this.months(f,"")),d.push(this.months(f,"")),d.push(this.monthsShort(f,""));b.sort(a),c.sort(a),d.sort(a);for(e=0;e<12;e++)b[e]=bM(b[e]),c[e]=bM(c[e]);for(e=0;e<24;e++)d[e]=bM(d[e]);this._monthsRegex=new RegExp("^("+d.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+b.join("|")+")","i")}function cq(a){return cr(a)?366:365}function cr(a){return a%4===0&&a%100!==0||a%400===0}function ct(){return cr(this.year())}function cu(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return a<100&&a>=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function cv(a){var b=new Date(Date.UTC.apply(null,arguments));return a<100&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}function cw(a,b,c){var d=7+b-c,e=(7+cv(a,0,d).getUTCDay()-b)%7;return-e+d-1}function cx(a,b,c,d,e){var f=(7+c-d)%7,g=cw(a,d,e),h=1+7*(b-1)+f+g,i,j;return h<=0?(i=a-1,j=cq(i)+h):h>cq(a)?(i=a+1,j=h-cq(a)):(i=a,j=h),{year:i,dayOfYear:j}}function cy(a,b,c){var d=cw(a.year(),b,c),e=Math.floor((a.dayOfYear()-d-1)/7)+1,f,g;return e<1?(g=a.year()-1,f=e+cz(g,b,c)):e>cz(a.year(),b,c)?(f=e-cz(a.year(),b,c),g=a.year()+1):(g=a.year(),f=e),{week:f,year:g}}function cz(a,b,c){var d=cw(a,b,c),e=cw(a+1,b,c);return(cq(a)-d+e)/7}function cA(a){return cy(a,this._week.dow,this._week.doy).week}function cC(){return this._week.dow}function cD(){return this._week.doy}function cE(a){var b=this.localeData().week(this);return a==null?b:this.add((a-b)*7,"d")}function cF(a){var b=cy(this,1,4).week;return a==null?b:this.add((a-b)*7,"d")}function cG(a,b){return typeof a!="string"?a:isNaN(a)?(a=b.weekdaysParse(a),typeof a=="number"?a:null):parseInt(a,10)}function cH(a,b){return typeof a=="string"?b.weekdaysParse(a)%7||7:isNaN(a)?null:a}function cJ(a,b){return a?d(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]:d(this._weekdays)?this._weekdays:this._weekdays.standalone}function cL(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort}function cN(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin}function cO(a,b,c){var d,e,f,g=a.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];for(d=0;d<7;++d)f=m([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(f,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(f,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(f,"").toLocaleLowerCase()}return c?b==="dddd"?(e=b_.call(this._weekdaysParse,g),e!==-1?e:null):b==="ddd"?(e=b_.call(this._shortWeekdaysParse,g),e!==-1?e:null):(e=b_.call(this._minWeekdaysParse,g),e!==-1?e:null):b==="dddd"?(e=b_.call(this._weekdaysParse,g),e!==-1?e:(e=b_.call(this._shortWeekdaysParse,g),e!==-1?e:(e=b_.call(this._minWeekdaysParse,g),e!==-1?e:null))):b==="ddd"?(e=b_.call(this._shortWeekdaysParse,g),e!==-1?e:(e=b_.call(this._weekdaysParse,g),e!==-1?e:(e=b_.call(this._minWeekdaysParse,g),e!==-1?e:null))):(e=b_.call(this._minWeekdaysParse,g),e!==-1?e:(e=b_.call(this._weekdaysParse,g),e!==-1?e:(e=b_.call(this._shortWeekdaysParse,g),e!==-1?e:null)))}function cP(a,b,c){var d,e,f;if(this._weekdaysParseExact)return cO.call(this,a,b,c);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(d=0;d<7;d++){e=m([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i"));if(c&&b==="dddd"&&this._fullWeekdaysParse[d].test(a))return d;if(c&&b==="ddd"&&this._shortWeekdaysParse[d].test(a))return d;if(c&&b==="dd"&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}}function cQ(a){if(!this.isValid())return a!=null?this:NaN;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return a!=null?(a=cG(a,this.localeData()),this.add(a-b,"d")):b}function cR(a){if(!this.isValid())return a!=null?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return a==null?b:this.add(a-b,"d")}function cS(a){if(!this.isValid())return a!=null?this:NaN;if(a!=null){var b=cH(a,this.localeData());return this.day(this.day()%7?b:b-7)}return this.day()||7}function cU(a){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||cZ.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=cT),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function cW(a){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||cZ.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=cV),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cY(a){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||cZ.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cX),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function cZ(){function a(a,b){return b.length-a.length}var b=[],c=[],d=[],e=[],f,g,h,i,j;for(f=0;f<7;f++)g=m([2e3,1]).day(f),h=this.weekdaysMin(g,""),i=this.weekdaysShort(g,""),j=this.weekdays(g,""),b.push(h),c.push(i),d.push(j),e.push(h),e.push(i),e.push(j);b.sort(a),c.sort(a),d.sort(a),e.sort(a);for(f=0;f<7;f++)c[f]=bM(c[f]),d[f]=bM(d[f]),e[f]=bM(e[f]);this._weekdaysRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+b.join("|")+")","i")}function c$(){return this.hours()%12||12}function c_(){return this.hours()||24}function da(a,b){bm(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function db(a,b){return b._meridiemParse}function dc(a){return(a+"").toLowerCase().charAt(0)==="p"}function de(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function dk(a){return a?a.toLowerCase().replace("_","-"):a}function dl(a){var b=0,c,d,e,f;while(b<a.length){f=dk(a[b]).split("-"),c=f.length,d=dk(a[b+1]),d=d?d.split("-"):null;while(c>0){e=dm(f.slice(0,c).join("-"));if(e)return e;if(d&&d.length>=c&&A(f,d,!0)>=c-1)break;c--}b++}return null}function dm(a){var b=null;if(!dh[a]&&typeof module!="undefined"&&module&&module.exports)try{b=dj._abbr,require("./locale/"+a),dn(b)}catch(c){}return dh[a]}function dn(a,b){var c;return a&&(g(b)?c=dr(a):c=dp(a,b),c&&(dj=c)),dj._abbr}function dp(a,b){if(b!==null){var c=dg;b.abbr=a;if(dh[a]!=null)E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=dh[a]._config;else if(b.parentLocale!=null)if(dh[b.parentLocale]!=null)c=dh[b.parentLocale]._config;else return di[b.parentLocale]||(di[b.parentLocale]=[]),di[b.parentLocale].push({name:a,config:b}),null;return dh[a]=new I(H(c,b)),di[a]&&di[a].forEach(function(a){dp(a.name,a.config)}),dn(a),dh[a]}return delete dh[a],null}function dq(a,b){if(b!=null){var c,d=dg;dh[a]!=null&&(d=dh[a]._config),b=H(d,b),c=new I(b),c.parentLocale=dh[a],dh[a]=c,dn(a)}else dh[a]!=null&&(dh[a].parentLocale!=null?dh[a]=dh[a].parentLocale:dh[a]!=null&&delete dh[a]);return dh[a]}function dr(a){var b;a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr);if(!a)return dj;if(!d(a)){b=dm(a);if(b)return b;a=[a]}return dl(a)}function ds(){return K(dh)}function dt(a){var b,c=a._a;return c&&o(a).overflow===-2&&(b=c[bS]<0||c[bS]>11?bS:c[bT]<1||c[bT]>ca(c[bR],c[bS])?bT:c[bU]<0||c[bU]>24||c[bU]===24&&(c[bV]!==0||c[bW]!==0||c[bX]!==0)?bU:c[bV]<0||c[bV]>59?bV:c[bW]<0||c[bW]>59?bW:c[bX]<0||c[bX]>999?bX:-1,o(a)._overflowDayOfYear&&(b<bR||b>bT)&&(b=bT),o(a)._overflowWeeks&&b===-1&&(b=bY),o(a)._overflowWeekday&&b===-1&&(b=bZ),o(a).overflow=b),a}function dA(a){var b,c,d=a._i,e=du.exec(d)||dv.exec(d),f,g,h,i;if(e){o(a).iso=!0;for(b=0,c=dx.length;b<c;b++)if(dx[b][1].exec(e[1])){g=dx[b][0],f=dx[b][2]!==!1;break}if(g==null){a._isValid=!1;return}if(e[3]){for(b=0,c=dy.length;b<c;b++)if(dy[b][1].exec(e[3])){h=(e[2]||" ")+dy[b][0];break}if(h==null){a._isValid=!1;return}}if(!f&&h!=null){a._isValid=!1;return}if(e[4])if(dw.exec(e[4]))i="Z";else{a._isValid=!1;return}a._f=g+(h||"")+(i||""),dI(a)}else a._isValid=!1}function dC(a){var b,c,d,e,f,g,h={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},i="YXWVUTSRQPONZABCDEFGHIKLM",j,k;b=a._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),c=dB.exec(b);if(c){d=c[1]?"ddd"+(c[1].length===5?", ":" "):"",e="D MMM "+(c[2].length>10?"YYYY ":"YY "),f="HH:mm"+(c[4]?":ss":"");if(c[1]){var l=new Date(c[2]),m=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l.getDay()];if(c[1].substr(0,3)!==m){o(a).weekdayMismatch=!0,a._isValid=!1;return}}switch(c[5].length){case 2:k===0?j=" +0000":(k=i.indexOf(c[5][1].toUpperCase())-12,j=(k<0?" -":" +")+(""+k).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:j=h[c[5]];break;default:j=h[" GMT"]}c[5]=j,a._i=c.splice(1).join(""),g=" ZZ",a._f=d+e+f+g,dI(a),o(a).rfc2822=!0}else a._isValid=!1}function dD(a){var c=dz.exec(a._i);if(c!==null){a._d=new Date(+c[1]);return}dA(a);if(a._isValid===!1)delete a._isValid;else return;dC(a);if(a._isValid===!1)delete a._isValid;else return;b.createFromInputFallback(a)}function dE(a,b,c){return a!=null?a:b!=null?b:c}function dF(a){var c=new Date(b.now());return a._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}function dG(a){var b,c,d=[],e,f;if(a._d)return;e=dF(a),a._w&&a._a[bT]==null&&a._a[bS]==null&&dH(a);if(a._dayOfYear!=null){f=dE(a._a[bR],e[bR]);if(a._dayOfYear>cq(f)||a._dayOfYear===0)o(a)._overflowDayOfYear=!0;c=cv(f,0,a._dayOfYear),a._a[bS]=c.getUTCMonth(),a._a[bT]=c.getUTCDate()}for(b=0;b<3&&a._a[b]==null;++b)a._a[b]=d[b]=e[b];for(;b<7;b++)a._a[b]=d[b]=a._a[b]==null?b===2?1:0:a._a[b];a._a[bU]===24&&a._a[bV]===0&&a._a[bW]===0&&a._a[bX]===0&&(a._nextDay=!0,a._a[bU]=0),a._d=(a._useUTC?cv:cu).apply(null,d),a._tzm!=null&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[bU]=24)}function dH(a){var b,c,d,e,f,g,h,i;b=a._w;if(b.GG!=null||b.W!=null||b.E!=null){f=1,g=4,c=dE(b.GG,a._a[bR],cy(dQ(),1,4).year),d=dE(b.W,1),e=dE(b.E,1);if(e<1||e>7)i=!0}else{f=a._locale._week.dow,g=a._locale._week.doy;var j=cy(dQ(),f,g);c=dE(b.gg,a._a[bR],j.year),d=dE(b.w,j.week);if(b.d!=null){e=b.d;if(e<0||e>6)i=!0}else if(b.e!=null){e=b.e+f;if(b.e<0||b.e>6)i=!0}else e=f}d<1||d>cz(c,f,g)?o(a)._overflowWeeks=!0:i!=null?o(a)._overflowWeekday=!0:(h=cx(c,d,e,f,g),a._a[bR]=h.year,a._dayOfYear=h.dayOfYear)}function dI(a){if(a._f===b.ISO_8601){dA(a);return}if(a._f===b.RFC_2822){dC(a);return}a._a=[],o(a).empty=!0;var c=""+a._i,d,e,f,g,h,i=c.length,j=0;f=bq(a._f,a._locale).match(bi)||[];for(d=0;d<f.length;d++)g=f[d],e=(c.match(bK(g,a))||[])[0],e&&(h=c.substr(0,c.indexOf(e)),h.length>0&&o(a).unusedInput.push(h),c=c.slice(c.indexOf(e)+e.length),j+=e.length),bl[g]?(e?o(a).empty=!1:o(a).unusedTokens.push(g),bQ(g,e,a)):a._strict&&!e&&o(a).unusedTokens.push(g);o(a).charsLeftOver=i-j,c.length>0&&o(a).unusedInput.push(c),a._a[bU]<=12&&o(a).bigHour===!0&&a._a[bU]>0&&(o(a).bigHour=undefined),o(a).parsedDateParts=a._a.slice(0),o(a).meridiem=a._meridiem,a._a[bU]=dJ(a._locale,a._a[bU],a._meridiem),dG(a),dt(a)}function dJ(a,b,c){var d;return c==null?b:a.meridiemHour!=null?a.meridiemHour(b,c):a.isPM!=null?(d=a.isPM(c),d&&b<12&&(b+=12),!d&&b===12&&(b=0),b):b}function dK(a){var b,c,d,e,f;if(a._f.length===0){o(a).invalidFormat=!0,a._d=new Date(NaN);return}for(e=0;e<a._f.length;e++){f=0,b=u({},a),a._useUTC!=null&&(b._useUTC=a._useUTC),b._f=a._f[e],dI(b);if(!r(b))continue;f+=o(b).charsLeftOver,f+=o(b).unusedTokens.length*10,o(b).score=f;if(d==null||f<d)d=f,c=b}l(a,c||b)}function dL(a){if(a._d)return;var b=$(a._i);a._a=j([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)}),dG(a)}function dM(a){var b=new w(dt(dN(a)));return b._nextDay&&(b.add(1,"d"),b._nextDay=undefined),b}function dN(a){var b=a._i,c=a._f;return a._locale=a._locale||dr(a._l),b===null||c===undefined&&b===""?s({nullInput:!0}):(typeof b=="string"&&(a._i=b=a._locale.preparse(b)),x(b)?new w(dt(b)):(i(b)?a._d=b:d(c)?dK(a):c?dI(a):dO(a),r(a)||(a._d=null),a))}function dO(a){var c=a._i;g(c)?a._d=new Date(b.now()):i(c)?a._d=new Date(c.valueOf()):typeof c=="string"?dD(a):d(c)?(a._a=j(c.slice(0),function(a){return parseInt(a,10)}),dG(a)):e(c)?dL(a):h(c)?a._d=new Date(c):b.createFromInputFallback(a)}function dP(a,b,c,g,h){var i={};if(c===!0||c===!1)g=c,c=undefined;if(e(a)&&f(a)||d(a)&&a.length===0)a=undefined;return i._isAMomentObject=!0,i._useUTC=i._isUTC=h,i._l=c,i._i=a,i._f=b,i._strict=g,dM(i)}function dQ(a,b,c,d){return dP(a,b,c,d,!1)}function dT(a,b){var c,e;b.length===1&&d(b[0])&&(b=b[0]);if(!b.length)return dQ();c=b[0];for(e=1;e<b.length;++e)if(!b[e].isValid()||b[e][a](c))c=b[e];return c}function dU(){var a=[].slice.call(arguments,0);return dT("isBefore",a)}function dV(){var a=[].slice.call(arguments,0);return dT("isAfter",a)}function dY(a){for(var b in a)if(dX.indexOf(b)===-1||a[b]!=null&&!!isNaN(a[b]))return!1;var c=!1;for(var d=0;d<dX.length;++d)if(a[dX[d]]){if(c)return!1;parseFloat(a[dX[d]])!==z(a[dX[d]])&&(c=!0)}return!0}function dZ(){return this._isValid}function d$(){return eu(NaN)}function d_(a){var b=$(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._isValid=dY(b),this._milliseconds=+k+j*1e3+i*6e4+h*1e3*60*60,this._days=+g+f*7,this._months=+e+d*3+c*12,this._data={},this._locale=dr(),this._bubble()}function ea(a){return a instanceof d_}function eb(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}function ec(a,b){bm(a,0,0,function(){var a=this.utcOffset(),c="+";return a<0&&(a=-a,c="-"),c+bh(~~(a/60),2)+b+bh(~~a%60,2)})}function ee(a,b){var c=(b||"").match(a);if(c===null)return null;var d=c[c.length-1]||[],e=(d+"").match(ed)||["-",0,0],f=+(e[1]*60)+z(e[2]);return f===0?0:e[0]==="+"?f:-f}function ef(a,c){var d,e;return c._isUTC?(d=c.clone(),e=(x(a)||i(a)?a.valueOf():dQ(a).valueOf())-d.valueOf(),d._d.setTime(d._d.valueOf()+e),b.updateOffset(d,!1),d):dQ(a).local()}function eg(a){return-Math.round(a._d.getTimezoneOffset()/15)*15}function eh(a,c,d){var e=this._offset||0,f;if(!this.isValid())return a!=null?this:NaN;if(a!=null){if(typeof a=="string"){a=ee(bF,a);if(a===null)return this}else Math.abs(a)<16&&!d&&(a*=60);return!this._isUTC&&c&&(f=eg(this)),this._offset=a,this._isUTC=!0,f!=null&&this.add(f,"m"),e!==a&&(!c||this._changeInProgress?ez(this,eu(a-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,b.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?e:eg(this)}function ei(a,b){return a!=null?(typeof a!="string"&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function ej(a){return this.utcOffset(0,a)}function ek(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(eg(this),"m")),this}function el(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var a=ee(bE,this._i);a!=null?this.utcOffset(a):this.utcOffset(0,!0)}return this}function em(a){return this.isValid()?(a=a?dQ(a).utcOffset():0,(this.utcOffset()-a)%60===0):!1}function en(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function eo(){if(!g(this._isDSTShifted))return this._isDSTShifted;var a={};u(a,this),a=dN(a);if(a._a){var b=a._isUTC?m(a._a):dQ(a._a);this._isDSTShifted=this.isValid()&&A(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function ep(){return this.isValid()?!this._isUTC:!1}function eq(){return this.isValid()?this._isUTC:!1}function er(){return this.isValid()?this._isUTC&&this._offset===0:!1}function eu(a,b){var c=a,d=null,e,f,g;return ea(a)?c={ms:a._milliseconds,d:a._days,M:a._months}:h(a)?(c={},b?c[b]=a:c.milliseconds=a):(d=es.exec(a))?(e=d[1]==="-"?-1:1,c={y:0,d:z(d[bT])*e,h:z(d[bU])*e,m:z(d[bV])*e,s:z(d[bW])*e,ms:z(eb(d[bX]*1e3))*e}):(d=et.exec(a))?(e=d[1]==="-"?-1:1,c={y:ev(d[2],e),M:ev(d[3],e),w:ev(d[4],e),d:ev(d[5],e),h:ev(d[6],e),m:ev(d[7],e),s:ev(d[8],e)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(g=ex(dQ(c.from),dQ(c.to)),c={},c.ms=g.milliseconds,c.M=g.months),f=new d_(c),ea(a)&&k(a,"_locale")&&(f._locale=a._locale),f}function ev(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function ew(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+(b.year()-a.year())*12,a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b- +a.clone().add(c.months,"M"),c}function ex(a,b){var c;return!a.isValid()||!b.isValid()?{milliseconds:0,months:0}:(b=ef(b,a),a.isBefore(b)?c=ew(a,b):(c=ew(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c)}function ey(a,b){return function(c,d){var e,f;return d!==null&&!isNaN(+d)&&(E(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=c,c=d,d=f),c=typeof c=="string"?+c:c,e=eu(c,d),ez(this,e,a),this}}function ez(a,c,d,e){var f=c._milliseconds,g=eb(c._days),h=eb(c._months);if(!a.isValid())return;e=e==null?!0:e,f&&a._d.setTime(a._d.valueOf()+f*d),g&&be(a,"Date",bd(a,"Date")+g*d),h&&ci(a,bd(a,"Month")+h*d),e&&b.updateOffset(a,g||h)}function eC(a,b){var c=a.diff(b,"days",!0);return c<-6?"sameElse":c<-1?"lastWeek":c<0?"lastDay":c<1?"sameDay":c<2?"nextDay":c<7?"nextWeek":"sameElse"}function eD(a,c){var d=a||dQ(),e=ef(d,this).startOf("day"),f=b.calendarFormat(this,e)||"sameElse",g=c&&(F(c[f])?c[f].call(this,d):c[f]);return this.format(g||this.localeData().calendar(f,this,dQ(d)))}function eE(){return new w(this)}function eF(a,b){var c=x(a)?a:dQ(a);return!this.isValid()||!c.isValid()?!1:(b=Z(g(b)?"millisecond":b),b==="millisecond"?this.valueOf()>c.valueOf():c.valueOf()<this.clone().startOf(b).valueOf())}function eG(a,b){var c=x(a)?a:dQ(a);return!this.isValid()||!c.isValid()?!1:(b=Z(g(b)?"millisecond":b),b==="millisecond"?this.valueOf()<c.valueOf():this.clone().endOf(b).valueOf()<c.valueOf())}function eH(a,b,c,d){return d=d||"()",(d[0]==="("?this.isAfter(a,c):!this.isBefore(a,c))&&(d[1]===")"?this.isBefore(b,c):!this.isAfter(b,c))}function eI(a,b){var c=x(a)?a:dQ(a),d;return!this.isValid()||!c.isValid()?!1:(b=Z(b||"millisecond"),b==="millisecond"?this.valueOf()===c.valueOf():(d=c.valueOf(),this.clone().startOf(b).valueOf()<=d&&d<=this.clone().endOf(b).valueOf()))}function eJ(a,b){return this.isSame(a,b)||this.isAfter(a,b)}function eK(a,b){return this.isSame(a,b)||this.isBefore(a,b)}function eL(a,b,c){var d,e,f,g;return this.isValid()?(d=ef(a,this),d.isValid()?(e=(d.utcOffset()-this.utcOffset())*6e4,b=Z(b),b==="year"||b==="month"||b==="quarter"?(g=eM(this,d),b==="quarter"?g/=3:b==="year"&&(g/=12)):(f=this-d,g=b==="second"?f/1e3:b==="minute"?f/6e4:b==="hour"?f/36e5:b==="day"?(f-e)/864e5:b==="week"?(f-e)/6048e5:f),c?g:y(g)):NaN):NaN}function eM(a,b){var c=(b.year()-a.year())*12+(b.month()-a.month()),d=a.clone().add(c,"months"),e,f;return b-d<0?(e=a.clone().add(c-1,"months"),f=(b-d)/(d-e)):(e=a.clone().add(c+1,"months"),f=(b-d)/(e-d)),-(c+f)||0}function eN(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eO(){if(!this.isValid())return null;var a=this.clone().utc();return a.year()<0||a.year()>9999?bp(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):F(Date.prototype.toISOString)?this.toDate().toISOString():bp(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function eP(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",b="";this.isLocal()||(a=this.utcOffset()===0?"moment.utc":"moment.parseZone",b="Z");var c="["+a+'("]',d=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",e="-MM-DD[T]HH:mm:ss.SSS",f=b+'[")]';return this.format(c+d+e+f)}function eQ(a){a||(a=this.isUtc()?b.defaultFormatUtc:b.defaultFormat);var c=bp(this,a);return this.localeData().postformat(c)}function eR(a,b){return this.isValid()&&(x(a)&&a.isValid()||dQ(a).isValid())?eu({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function eS(a){return this.from(dQ(),a)}function eT(a,b){return this.isValid()&&(x(a)&&a.isValid()||dQ(a).isValid())?eu({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function eU(a){return this.to(dQ(),a)}function eV(a){var b;return a===undefined?this._locale._abbr:(b=dr(a),b!=null&&(this._locale=b),this)}function eX(){return this._locale}function eY(a){a=Z(a);switch(a){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return a==="week"&&this.weekday(0),a==="isoWeek"&&this.isoWeekday(1),a==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function eZ(a){return a=Z(a),a===undefined||a==="millisecond"?this:(a==="date"&&(a="day"),this.startOf(a).add(1,a==="isoWeek"?"week":a).subtract(1,"ms"))}function e$(){return this._d.valueOf()-(this._offset||0)*6e4}function e_(){return Math.floor(this.valueOf()/1e3)}function fa(){return new Date(this.valueOf())}function fb(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function fc(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function fd(){return this.isValid()?this.toISOString():null}function fe(){return r(this)}function ff(){return l({},o(this))}function fg(){return o(this).overflow}function fh(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function fi(a,b){bm(0,[a,a.length],0,b)}function fj(a){return fn.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function fk(a){return fn.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function fl(){return cz(this.year(),1,4)}function fm(){var a=this.localeData()._week;return cz(this.year(),a.dow,a.doy)}function fn(a,b,c,d,e){var f;return a==null?cy(this,d,e).year:(f=cz(a,d,e),b>f&&(b=f),fo.call(this,a,b,c,d,e))}function fo(a,b,c,d,e){var f=cx(a,b,c,d,e),g=cv(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}function fp(a){return a==null?Math.ceil((this.month()+1)/3):this.month((a-1)*3+this.month()%3)}function fr(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return a==null?b:this.add(a-b,"d")}function fv(a,b){b[bX]=z(("0."+a)*1e3)}function fx(){return this._isUTC?"UTC":""}function fy(){return this._isUTC?"Coordinated Universal Time":""}function fA(a){return dQ(a*1e3)}function fB(){return dQ.apply(null,arguments).parseZone()}function fC(a){return a}function fE(a,b,c,d){var e=dr(),f=m().set(d,b);return e[c](f,a)}function fF(a,b,c){h(a)&&(b=a,a=undefined),a=a||"";if(b!=null)return fE(a,b,c,"month");var d,e=[];for(d=0;d<12;d++)e[d]=fE(a,d,c,"month");return e}function fG(a,b,c,d){typeof a=="boolean"?(h(b)&&(c=b,b=undefined),b=b||""):(b=a,c=b,a=!1,h(b)&&(c=b,b=undefined),b=b||"");var e=dr(),f=a?e._week.dow:0;if(c!=null)return fE(b,(c+f)%7,d,"day");var g,i=[];for(g=0;g<7;g++)i[g]=fE(b,(g+f)%7,d,"day");return i}function fH(a,b){return fF(a,b,"months")}function fI(a,b){return fF(a,b,"monthsShort")}function fJ(a,b,c){return fG(a,b,c,"weekdays")}function fK(a,b,c){return fG(a,b,c,"weekdaysShort")}function fL(a,b,c){return fG(a,b,c,"weekdaysMin")}function fN(){var a=this._data;return this._milliseconds=fM(this._milliseconds),this._days=fM(this._days),this._months=fM(this._months),a.milliseconds=fM(a.milliseconds),a.seconds=fM(a.seconds),a.minutes=fM(a.minutes),a.hours=fM(a.hours),a.months=fM(a.months),a.years=fM(a.years),this}function fO(a,b,c,d){var e=eu(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function fP(a,b){return fO(this,a,b,1)}function fQ(a,b){return fO(this,a,b,-1)}function fR(a){return a<0?Math.floor(a):Math.ceil(a)}function fS(){var a=this._milliseconds,b=this._days,c=this._months,d=this._data,e,f,g,h,i;return a>=0&&b>=0&&c>=0||a<=0&&b<=0&&c<=0||(a+=fR(fU(c)+b)*864e5,b=0,c=0),d.milliseconds=a%1e3,e=y(a/1e3),d.seconds=e%60,f=y(e/60),d.minutes=f%60,g=y(f/60),d.hours=g%24,b+=y(g/24),i=y(fT(b)),c+=i,b-=fR(fU(i)),h=y(c/12),c%=12,d.days=b,d.months=c,d.years=h,this}function fT(a){return a*4800/146097}function fU(a){return a*146097/4800}function fV(a){if(!this.isValid())return NaN;var b,c,d=this._milliseconds;a=Z(a);if(a==="month"||a==="year")return b=this._days+d/864e5,c=this._months+fT(b),a==="month"?c:c/12;b=this._days+Math.round(fU(this._months));switch(a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return b*24+d/36e5;case"minute":return b*1440+d/6e4;case"second":return b*86400+d/1e3;case"millisecond":return Math.floor(b*864e5)+d;default:throw new Error("Unknown unit "+a)}}function fW(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+z(this._months/12)*31536e6:NaN}function fX(a){return function(){return this.as(a)}}function ge(a){return a=Z(a),this.isValid()?this[a+"s"]():NaN}function gf(a){return function(){return this.isValid()?this._data[a]:NaN}}function gn(){return y(this.days()/7)}function gq(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function gr(a,b,c){var d=eu(a).abs(),e=go(d.as("s")),f=go(d.as("m")),g=go(d.as("h")),h=go(d.as("d")),i=go(d.as("M")),j=go(d.as("y")),k=e<=gp.ss&&["s",e]||e<gp.s&&["ss",e]||f<=1&&["m"]||f<gp.m&&["mm",f]||g<=1&&["h"]||g<gp.h&&["hh",g]||h<=1&&["d"]||h<gp.d&&["dd",h]||i<=1&&["M"]||i<gp.M&&["MM",i]||j<=1&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,gq.apply(null,k)}function gs(a){return a===undefined?go:typeof a=="function"?(go=a,!0):!1}function gt(a,b){return gp[a]===undefined?!1:b===undefined?gp[a]:(gp[a]=b,a==="s"&&(gp.ss=b-1),!0)}function gu(a){if(!this.isValid())return this.localeData().invalidDate();var b=this.localeData(),c=gr(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function gw(){if(!this.isValid())return this.localeData().invalidDate();var a=gv(this._milliseconds)/1e3,b=gv(this._days),c=gv(this._months),d,e,f;d=y(a/60),e=y(d/60),a%=60,d%=60,f=y(c/12),c%=12;var g=f,h=c,i=b,j=e,k=d,l=a,m=this.asSeconds();return m?(m<0?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}"use strict";var a,p;Array.prototype.some?p=Array.prototype.some:p=function(a){var b=Object(this),c=b.length>>>0;for(var d=0;d<c;d++)if(d in b&&a.call(this,b[d],d,b))return!0;return!1};var q=p,t=b.momentProperties=[],v=!1,D={};b.suppressDeprecationWarnings=!1,b.deprecationHandler=null;var J;Object.keys?J=Object.keys:J=function(a){var b,c=[];for(b in a)k(a,b)&&c.push(b);return c};var K=J,L={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},N={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},P="Invalid date",R="%d",S=/\d{1,2}/,U={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},X={},_={},bi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,bj=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,bk={},bl={},br=/\d/,bs=/\d\d/,bt=/\d{3}/,bu=/\d{4}/,bv=/[+-]?\d{6}/,bw=/\d\d?/,bx=/\d\d\d\d?/,by=/\d\d\d\d\d\d?/,bz=/\d{1,3}/,bA=/\d{1,4}/,bB=/[+-]?\d{1,6}/,bC=/\d+/,bD=/[+-]?\d+/,bE=/Z|[+-]\d\d:?\d\d/gi,bF=/Z|[+-]\d\d(?::?\d\d)?/gi,bG=/[+-]?\d+(\.\d{1,3})?/,bH=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,bI={},bN={},bR=0,bS=1,bT=2,bU=3,bV=4,bW=5,bX=6,bY=7,bZ=8,b$;Array.prototype.indexOf?b$=Array.prototype.indexOf:b$=function(a){var b;for(b=0;b<this.length;++b)if(this[b]===a)return b;return-1};var b_=b$;bm("M",["MM",2],"Mo",function(){return this.month()+1}),bm("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),bm("MMMM",0,0,function(a){return this.localeData().months(this,a)}),Y("month","M"),ba("month",8),bJ("M",bw),bJ("MM",bw,bs),bJ("MMM",function(a,b){return b.monthsShortRegex(a)}),bJ("MMMM",function(a,b){return b.monthsRegex(a)}),bO(["M","MM"],function(a,b){b[bS]=z(a)-1}),bO(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);e!=null?b[bS]=e:o(c).invalidMonth=a});var cb=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,cc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ce="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cl=bH,cn=bH;bm("Y",0,0,function(){var a=this.year();return a<=9999?""+a:"+"+a}),bm(0,["YY",2],0,function(){return this.year()%100}),bm(0,["YYYY",4],0,"year"),bm(0,["YYYYY",5],0,"year"),bm(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),ba("year",1),bJ("Y",bD),bJ("YY",bw,bs),bJ("YYYY",bA,bu),bJ("YYYYY",bB,bv),bJ("YYYYYY",bB,bv),bO(["YYYYY","YYYYYY"],bR),bO("YYYY",function(a,c){c[bR]=a.length===2?b.parseTwoDigitYear(a):z(a)}),bO("YY",function(a,c){c[bR]=b.parseTwoDigitYear(a)}),bO("Y",function(a,b){b[bR]=parseInt(a,10)}),b.parseTwoDigitYear=function(a){return z(a)+(z(a)>68?1900:2e3)};var cs=bc("FullYear",!0);bm("w",["ww",2],"wo","week"),bm("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),ba("week",5),ba("isoWeek",5),bJ("w",bw),bJ("ww",bw,bs),bJ("W",bw),bJ("WW",bw,bs),bP(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=z(a)});var cB={dow:0,doy:6};bm("d",0,"do","day"),bm("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),bm("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),bm("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),bm("e",0,0,"weekday"),bm("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),ba("day",11),ba("weekday",11),ba("isoWeekday",11),bJ("d",bw),bJ("e",bw),bJ("E",bw),bJ("dd",function(a,b){return b.weekdaysMinRegex(a)}),bJ("ddd",function(a,b){return b.weekdaysShortRegex(a)}),bJ("dddd",function(a,b){return b.weekdaysRegex(a)}),bP(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict);e!=null?b.d=e:o(c).invalidWeekday=a}),bP(["d","e","E"],function(a,b,c,d){b[d]=z(a)});var cI="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),cK="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cM="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cT=bH,cV=bH,cX=bH;bm("H",["HH",2],0,"hour"),bm("h",["hh",2],0,c$),bm("k",["kk",2],0,c_),bm("hmm",0,0,function(){return""+c$.apply(this)+bh(this.minutes(),2)}),bm("hmmss",0,0,function(){return""+c$.apply(this)+bh(this.minutes(),2)+bh(this.seconds(),2)}),bm("Hmm",0,0,function(){return""+this.hours()+bh(this.minutes(),2)}),bm("Hmmss",0,0,function(){return""+this.hours()+bh(this.minutes(),2)+bh(this.seconds(),2)}),da("a",!0),da("A",!1),Y("hour","h"),ba("hour",13),bJ("a",db),bJ("A",db),bJ("H",bw),bJ("h",bw),bJ("k",bw),bJ("HH",bw,bs),bJ("hh",bw,bs),bJ("kk",bw,bs),bJ("hmm",bx),bJ("hmmss",by),bJ("Hmm",bx),bJ("Hmmss",by),bO(["H","HH"],bU),bO(["k","kk"],function(a,b,c){var d=z(a);b[bU]=d===24?0:d}),bO(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),bO(["h","hh"],function(a,b,c){b[bU]=z(a),o(c).bigHour=!0}),bO("hmm",function(a,b,c){var d=a.length-2;b[bU]=z(a.substr(0,d)),b[bV]=z(a.substr(d)),o(c).bigHour=!0}),bO("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[bU]=z(a.substr(0,d)),b[bV]=z(a.substr(d,2)),b[bW]=z(a.substr(e)),o(c).bigHour=!0}),bO("Hmm",function(a,b,c){var d=a.length-2;b[bU]=z(a.substr(0,d)),b[bV]=z(a.substr(d))}),bO("Hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[bU]=z(a.substr(0,d)),b[bV]=z(a.substr(d,2)),b[bW]=z(a.substr(e))});var dd=/[ap]\.?m?\.?/i,df=bc("Hours",!0),dg={calendar:L,longDateFormat:N,invalidDate:P,ordinal:R,dayOfMonthOrdinalParse:S,relativeTime:U,months:cc,monthsShort:ce,week:cB,weekdays:cI,weekdaysMin:cM,weekdaysShort:cK,meridiemParse:dd},dh={},di={},dj,du=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dv=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dw=/Z|[+-]\d\d(?::?\d\d)?/,dx=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],dy=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],dz=/^\/?Date\((\-?\d+)/i,dB=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;b.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),b.ISO_8601=function(){},b.RFC_2822=function(){};var dR=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=dQ.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:s()}),dS=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=dQ.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:s()}),dW=function(){return Date.now?Date.now():+(new Date)},dX=["year","quarter","month","week","day","hour","minute","second","millisecond"];ec("Z",":"),ec("ZZ",""),bJ("Z",bF),bJ("ZZ",bF),bO(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=ee(bF,a)});var ed=/([\+\-]|\d\d)/gi;b.updateOffset=function(){};var es=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,et=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;eu.fn=d_.prototype,eu.invalid=d$;var eA=ey(1,"add"),eB=ey(-1,"subtract");b.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",b.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var eW=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return a===undefined?this.localeData():this.locale(a)});bm(0,["gg",2],0,function(){return this.weekYear()%100}),bm(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fi("gggg","weekYear"),fi("ggggg","weekYear"),fi("GGGG","isoWeekYear"),fi("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),ba("weekYear",1),ba("isoWeekYear",1),bJ("G",bD),bJ("g",bD),bJ("GG",bw,bs),bJ("gg",bw,bs),bJ("GGGG",bA,bu),bJ("gggg",bA,bu),bJ("GGGGG",bB,bv),bJ("ggggg",bB,bv),bP(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=z(a)}),bP(["gg","GG"],function(a,c,d,e){c[e]=b.parseTwoDigitYear(a)}),bm("Q",0,"Qo","quarter"),Y("quarter","Q"),ba("quarter",7),bJ("Q",br),bO("Q",function(a,b){b[bS]=(z(a)-1)*3}),bm("D",["DD",2],"Do","date"),Y("date","D"),ba("date",9),bJ("D",bw),bJ("DD",bw,bs),bJ("Do",function(a,b){return a?b._dayOfMonthOrdinalParse||b._ordinalParse:b._dayOfMonthOrdinalParseLenient}),bO(["D","DD"],bT),bO("Do",function(a,b){b[bT]=z(a.match(bw)[0],10)});var fq=bc("Date",!0);bm("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),ba("dayOfYear",4),bJ("DDD",bz),bJ("DDDD",bt),bO(["DDD","DDDD"],function(a,b,c){c._dayOfYear=z(a)}),bm("m",["mm",2],0,"minute"),Y("minute","m"),ba("minute",14),bJ("m",bw),bJ("mm",bw,bs),bO(["m","mm"],bV);var fs=bc("Minutes",!1);bm("s",["ss",2],0,"second"),Y("second","s"),ba("second",15),bJ("s",bw),bJ("ss",bw,bs),bO(["s","ss"],bW);var ft=bc("Seconds",!1);bm("S",0,0,function(){return~~(this.millisecond()/100)}),bm(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),bm(0,["SSS",3],0,"millisecond"),bm(0,["SSSS",4],0,function(){return this.millisecond()*10}),bm(0,["SSSSS",5],0,function(){return this.millisecond()*100}),bm(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),bm(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),bm(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),bm(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Y("millisecond","ms"),ba("millisecond",16),bJ("S",bz,br),bJ("SS",bz,bs),bJ("SSS",bz,bt);var fu;for(fu="SSSS";fu.length<=9;fu+="S")bJ(fu,bC);for(fu="S";fu.length<=9;fu+="S")bO(fu,fv);var fw=bc("Milliseconds",!1);bm("z",0,0,"zoneAbbr"),bm("zz",0,0,"zoneName");var fz=w.prototype;fz.add=eA,fz.calendar=eD,fz.clone=eE,fz.diff=eL,fz.endOf=eZ,fz.format=eQ,fz.from=eR,fz.fromNow=eS,fz.to=eT,fz.toNow=eU,fz.get=bf,fz.invalidAt=fg,fz.isAfter=eF,fz.isBefore=eG,fz.isBetween=eH,fz.isSame=eI,fz.isSameOrAfter=eJ,fz.isSameOrBefore=eK,fz.isValid=fe,fz.lang=eW,fz.locale=eV,fz.localeData=eX,fz.max=dS,fz.min=dR,fz.parsingFlags=ff,fz.set=bg,fz.startOf=eY,fz.subtract=eB,fz.toArray=fb,fz.toObject=fc,fz.toDate=fa,fz.toISOString=eO,fz.inspect=eP,fz.toJSON=fd,fz.toString=eN,fz.unix=e_,fz.valueOf=e$,fz.creationData=fh,fz.year=cs,fz.isLeapYear=ct,fz.weekYear=fj,fz.isoWeekYear=fk,fz.quarter=fz.quarters=fp,fz.month=cj,fz.daysInMonth=ck,fz.week=fz.weeks=cE,fz.isoWeek=fz.isoWeeks=cF,fz.weeksInYear=fm,fz.isoWeeksInYear=fl,fz.date=fq,fz.day=fz.days=cQ,fz.weekday=cR,fz.isoWeekday=cS,fz.dayOfYear=fr,fz.hour=fz.hours=df,fz.minute=fz.minutes=fs,fz.second=fz.seconds=ft,fz.millisecond=fz.milliseconds=fw,fz.utcOffset=eh,fz.utc=ej,fz.local=ek,fz.parseZone=el,fz.hasAlignedHourOffset=em,fz.isDST=en,fz.isLocal=ep,fz.isUtcOffset=eq,fz.isUtc=er,fz.isUTC=er,fz.zoneAbbr=fx,fz.zoneName=fy,fz.dates=C("dates accessor is deprecated. Use date instead.",fq),fz.months=C("months accessor is deprecated. Use month instead",cj),fz.years=C("years accessor is deprecated. Use year instead",cs),fz.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ei),fz.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",eo);var fD=I.prototype;fD.calendar=M,fD.longDateFormat=O,fD.invalidDate=Q,fD.ordinal=T,fD.preparse=fC,fD.postformat=fC,fD.relativeTime=V,fD.pastFuture=W,fD.set=G,fD.months=cd,fD.monthsShort=cf,fD.monthsParse=ch,fD.monthsRegex=co,fD.monthsShortRegex=cm,fD.week=cA,fD.firstDayOfYear=cD,fD.firstDayOfWeek=cC,fD.weekdays=cJ,fD.weekdaysMin=cN,fD.weekdaysShort=cL,fD.weekdaysParse=cP,fD.weekdaysRegex=cU,fD.weekdaysShortRegex=cW,fD.weekdaysMinRegex=cY,fD.isPM=dc,fD.meridiem=de,dn("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=z(a%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th";return a+c}}),b.lang=C("moment.lang is deprecated. Use moment.locale instead.",dn),b.langData=C("moment.langData is deprecated. Use moment.localeData instead.",dr);var fM=Math.abs,fY=fX("ms"),fZ=fX("s"),f$=fX("m"),f_=fX("h"),ga=fX("d"),gb=fX("w"),gc=fX("M"),gd=fX("y"),gg=gf("milliseconds"),gh=gf("seconds"),gi=gf("minutes"),gj=gf("hours"),gk=gf("days"),gl=gf("months"),gm=gf("years"),go=Math.round,gp={ss:44,s:45,m:45,h:22,d:26,M:11},gv=Math.abs,gx=d_.prototype;return gx.isValid=dZ,gx.abs=fN,gx.add=fP,gx.subtract=fQ,gx.as=fV,gx.asMilliseconds=fY,gx.asSeconds=fZ,gx.asMinutes=f$,gx.asHours=f_,gx.asDays=ga,gx.asWeeks=gb,gx.asMonths=gc,gx.asYears=gd,gx.valueOf=fW,gx._bubble=fS,gx.get=ge,gx.milliseconds=gg,gx.seconds=gh,gx.minutes=gi,gx.hours=gj,gx.days=gk,gx.weeks=gn,gx.months=gl,gx.years=gm,gx.humanize=gu,gx.toISOString=gw,gx.toString=gw,gx.toJSON=gw,gx.locale=eV,gx.localeData=eX,gx.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gw),gx.lang=eW,bm("X",0,0,"unix"),bm("x",0,0,"valueOf"),bJ("x",bD),bJ("X",bG),bO("X",function(a,b,c){c._d=new Date(parseFloat(a,10)*1e3)}),bO("x",function(a,b,c){c._d=new Date(z(a))}),b.version="2.18.1",c(dQ),b.fn=fz,b.min=dU,b.max=dV,b.now=dW,b.utc=m,b.unix=fA,b.months=fH,b.isDate=i,b.locale=dn,b.invalid=s,b.duration=eu,b.isMoment=x,b.weekdays=fJ,b.parseZone=fB,b.localeData=dr,b.isDuration=ea,b.monthsShort=fI,b.weekdaysMin=fL,b.defineLocale=dp,b.updateLocale=dq,b.locales=ds,b.weekdaysShort=fK,b.normalizeUnits=Z,b.relativeTimeRounding=gs,b.relativeTimeThreshold=gt,b.calendarFormat=eC,b.prototype=fz,b})
  ;angular.module("bw.paging",[]).directive("paging",function(){function b(a,b,c){a.$watchCollection("[page,pageSize,total,disabled]",function(){m(a,c)})}function c(a,b){return'<ul data-ng-hide="Hide" data-ng-class="ulClass"> <li title="{{Item.title}}" data-ng-class="Item.liClass" data-ng-repeat="Item in List"> <a '+(b.pgHref?'data-ng-href="{{Item.pgHref}}" ':"href ")+'data-ng-class="Item.aClass" '+'data-ng-click="Item.action()" '+'data-ng-bind="Item.value">'+"</a> "+"</li>"+"</ul>"}function d(a,b){a.List=[],a.Hide=!1,a.page=parseInt(a.page)||1,a.total=parseInt(a.total)||0,a.adjacent=parseInt(a.adjacent)||2,a.pgHref=a.pgHref||"",a.dots=a.dots||"...",a.ulClass=a.ulClass||"pagination",a.activeClass=a.activeClass||"active",a.disabledClass=a.disabledClass||"disabled",a.textFirst=a.textFirst||"<<",a.textLast=a.textLast||">>",a.textNext=a.textNext||">",a.textPrev=a.textPrev||"<",a.textFirstClass=a.textFirstClass||"",a.textLastClass=a.textLastClass||"",a.textNextClass=a.textNextClass||"",a.textPrevClass=a.textPrevClass||"",a.textTitlePage=a.textTitlePage||"Page {page}",a.textTitleFirst=a.textTitleFirst||"First Page",a.textTitleLast=a.textTitleLast||"Last Page",a.textTitleNext=a.textTitleNext||"Next Page",a.textTitlePrev=a.textTitlePrev||"Previous Page",a.hideIfEmpty=e(a,b.hideIfEmpty),a.showPrevNext=e(a,b.showPrevNext),a.showFirstLast=e(a,b.showFirstLast),a.scrollTop=e(a,b.scrollTop),a.isDisabled=e(a,b.disabled)}function e(a,b){return angular.isDefined(b)?!!a.$parent.$eval(b):!1}function f(a,b){a.page>b&&(a.page=b),a.page<=0&&(a.page=1),a.adjacent<=0&&(a.adjacent=2),b<=1&&(a.Hide=a.hideIfEmpty)}function g(a,b){if(a.page==b)return;if(a.isDisabled)return;a.page=b,a.pagingAction({page:a.page,pageSize:a.pageSize,total:a.total}),a.scrollTop&&scrollTo(0,0)}function h(b,c,d){if(!b.showPrevNext&&!b.showFirstLast||c<1)return;var e,f,h;if(d==="prev"){e=b.page-1<=0;var i=b.page-1<=0?1:b.page-1;b.showFirstLast&&(f={value:b.textFirst,title:b.textTitleFirst,aClass:b.textFirstClass,page:1}),b.showPrevNext&&(h={value:b.textPrev,title:b.textTitlePrev,aClass:b.textPrevClass,page:i})}else{e=b.page+1>c;var j=b.page+1>=c?c:b.page+1;b.showPrevNext&&(f={value:b.textNext,title:b.textTitleNext,aClass:b.textNextClass,page:j}),b.showFirstLast&&(h={value:b.textLast,title:b.textTitleLast,aClass:b.textLastClass,page:c})}var k=function(c,d){return{title:c.title,aClass:c.aClass,value:c.aClass?"":c.value,liClass:d?b.disabledClass:"",pgHref:d?"":b.pgHref.replace(a,c.page),action:function(){d||g(b,c.page)}}};b.isDisabled&&(e=!0);if(f){var l=k(f,e);b.List.push(l)}if(h){var m=k(h,e);b.List.push(m)}}function i(b,c,d){var e=0;for(e=b;e<=c;e++){var f=d.pgHref.replace(a,e),h=d.page==e?d.activeClass:"";d.isDisabled&&(f="",h=d.disabledClass),d.List.push({value:e,title:d.textTitlePage.replace(a,e),liClass:h,pgHref:f,action:function(){g(d,this.value)}})}}function j(a){a.List.push({value:a.dots,liClass:a.disabledClass})}function k(a,b){i(1,2,a),b!=3&&j(a)}function l(a,b,c){c!=a-2&&j(b),i(a-1,a,b)}function m(a,b){if(!a.pageSize||a.pageSize<=0)a.pageSize=1;var c=Math.ceil(a.total/a.pageSize);d(a,b),f(a,c);var e,g,j=a.adjacent*2+2;h(a,c,"prev"),c<=j+2?(e=1,i(e,c,a)):a.page-a.adjacent<=2?(e=1,g=1+j,i(e,g,a),l(c,a,g)):a.page<c-(a.adjacent+2)?(e=a.page-a.adjacent,g=a.page+a.adjacent,k(a,e),i(e,g,a),l(c,a,g)):(e=c-j,g=c,k(a,e),i(e,g,a)),h(a,c,"next")}var a=/\{page\}/g;return{restrict:"EA",link:b,template:c,scope:{page:"=",pageSize:"=",total:"=",disabled:"@",dots:"@",ulClass:"@",activeClass:"@",disabledClass:"@",adjacent:"@",pagingAction:"&",pgHref:"@",textFirst:"@",textLast:"@",textNext:"@",textPrev:"@",textFirstClass:"@",textLastClass:"@",textNextClass:"@",textPrevClass:"@",textTitlePage:"@",textTitleFirst:"@",textTitleLast:"@",textTitleNext:"@",textTitlePrev:"@"}}})
  