text: if(function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";var n=[],i=t.document,r=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,l=n.indexOf,u={},c=u.toString,h=u.hasOwnProperty,d=h.toString,f=d.call(Object),p={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},m=function(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function y(t,e,n){var r,o=(e=e||i).createElement("script");if(o.text=t,n)for(r in v)n[r]&&(o[r]=n[r]);e.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[c.call(t)]||"object":typeof t}var x=function(t,e){return new x.fn.init(t,e)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function _(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!g(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:"3.3.1",constructor:x,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},x.extend=x.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(i=t[e])&&(u&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,o=n&&Array.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},a[e]=x.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},x.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==c.call(t)||(e=r(t))&&("function"!=typeof(n=h.call(e,"constructor")&&e.constructor)||d.call(n)!==f))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){y(t)},each:function(t,e){var n,i=0;if(_(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(w,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(_(Object(t))?x.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(_(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return a.apply([],s)},guid:1,support:p}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){u["[object "+e+"]"]=e.toLowerCase()});var k=function(t){var e,n,i,r,o,a,s,l,u,c,h,d,f,p,g,m,v,y,b,x="sizzle"+1*new Date,w=t.document,_=0,k=0,S=at(),C=at(),M=at(),T=function(t,e){return t===e&&(h=!0),0},D={}.hasOwnProperty,A=[],O=A.pop,E=A.push,I=A.push,P=A.slice,L=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",N="\\["+j+"*("+F+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+j+"*\\]",W=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",B=new RegExp(j+"+","g"),H=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),z=new RegExp("^"+j+"*,"+j+"*"),Y=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),U=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),q=new RegExp(W),$=new RegExp("^"+F+"$"),V={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,K=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),tt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){d()},rt=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{I.apply(A=P.call(w.childNodes),w.childNodes)}catch(t){I={apply:A.length?function(t,e){E.apply(t,P.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,i,r){var o,s,u,c,h,p,v,y=e&&e.ownerDocument,_=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return i;if(!r&&((e?e.ownerDocument||e:w)!==f&&d(e),e=e||f,g)){if(11!==_&&(h=Z.exec(t)))if(o=h[1]){if(9===_){if(!(u=e.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(y&&(u=y.getElementById(o))&&b(e,u)&&u.id===o)return i.push(u),i}else{if(h[2])return I.apply(i,e.getElementsByTagName(t)),i;if((o=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return I.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!M[t+" "]&&(!m||!m.test(t))){if(1!==_)y=e,v=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(et,nt):e.setAttribute("id",c=x),s=(p=a(t)).length;s--;)p[s]="#"+c+" "+vt(p[s]);v=p.join(","),y=J.test(t)&&gt(e.parentNode)||e}if(v)try{return I.apply(i,y.querySelectorAll(v)),i}catch(t){}finally{c===x&&e.removeAttribute("id")}}}return l(t.replace(H,"$1"),e,i,r)}function at(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function st(t){return t[x]=!0,t}function lt(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ct(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ft(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&rt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pt(t){return st(function(e){return e=+e,st(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=ot.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:w;return a!==f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,g=!o(f),w!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",it,!1):r.attachEvent&&r.attachEvent("onunload",it)),n.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=lt(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(f.getElementsByClassName),n.getById=lt(function(t){return p.appendChild(t).id=x,!f.getElementsByName||!f.getElementsByName(x).length}),n.getById?(i.filter.ID=function(t){var e=t.replace(K,tt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(K,tt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=Q.test(f.querySelectorAll))&&(lt(function(t){p.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&lt(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",W)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=Q.test(p.compareDocumentPosition),b=e||Q.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return h=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===f||t.ownerDocument===w&&b(w,t)?-1:e===f||e.ownerDocument===w&&b(w,e)?1:c?L(c,t)-L(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t===f?-1:e===f?1:r?-1:o?1:c?L(c,t)-L(c,e):0;if(r===o)return ct(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ct(a[i],s[i]):a[i]===w?-1:s[i]===w?1:0},f):f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&d(t),e=e.replace(U,"='$1']"),n.matchesSelector&&g&&!M[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return ot(e,f,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==f&&d(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==f&&d(t);var r=i.attrHandle[e.toLowerCase()],o=r&&D.call(i.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,i=[],r=0,o=0;if(h=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(T),h){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},r=ot.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(i=ot.selectors={cacheLength:50,createPseudo:st,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(K,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(K,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&q.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(K,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=ot.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,d,f,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(u=(c=(h=(d=m)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===_&&u[1])&&u[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(b=f=0)||p.pop();)if(1===d.nodeType&&++b&&d===e){c[t]=[_,f,b];break}}else if(y&&(b=f=(u=(c=(h=(d=e)[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===_&&u[1]),!1===b)for(;(d=++f&&d&&d[g]||(b=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(h=d[x]||(d[x]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[_,b]),d!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[x]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var i,o=r(t,e),a=o.length;a--;)t[i=L(t,o[a])]=!(n[i]=o[a])}):function(t){return r(t,0,n)}):r}},pseudos:{not:st(function(t){var e=[],n=[],i=s(t.replace(H,"$1"));return i[x]?st(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace(K,tt),function(e){return(e.textContent||e.innerText||r(e)).indexOf(t)>-1}}),lang:st(function(t){return $.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(K,tt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,n){return[n<0?n+e:n]}),even:pt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:pt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:pt(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:pt(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ht(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=dt(e);function mt(){}function vt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function yt(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=k++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var u,c,h,d=[_,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(c=(h=e[x]||(e[x]={}))[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[o])&&u[0]===_&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=t(e,n,l))return!0}return!1}}function bt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function wt(t,e,n,i,r,o){return i&&!i[x]&&(i=wt(i)),r&&!r[x]&&(r=wt(r,o)),st(function(o,a,s,l){var u,c,h,d=[],f=[],p=a.length,g=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)ot(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?g:xt(g,d,t,s,l),v=n?r||(o?t:p||i)?[]:a:m;if(n&&n(m,v,s,l),i)for(u=xt(v,f),i(u,[],s,l),c=u.length;c--;)(h=u[c])&&(v[f[c]]=!(m[f[c]]=h));if(o){if(r||t){if(r){for(u=[],c=v.length;c--;)(h=v[c])&&u.push(m[c]=h);r(null,v=[],u,l)}for(c=v.length;c--;)(h=v[c])&&(u=r?L(o,h):d[c])>-1&&(o[u]=!(a[u]=h))}}else v=xt(v===a?v.splice(p,v.length):v),r?r(null,a,v,l):I.apply(a,v)})}function _t(t){for(var e,n,r,o=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,c=yt(function(t){return t===e},s,!0),h=yt(function(t){return L(e,t)>-1},s,!0),d=[function(t,n,i){var r=!a&&(i||n!==u)||((e=n).nodeType?c(t,n,i):h(t,n,i));return e=null,r}];l<o;l++)if(n=i.relative[t[l].type])d=[yt(bt(d),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[x]){for(r=++l;r<o&&!i.relative[t[r].type];r++);return wt(l>1&&bt(d),l>1&&vt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),n,l<r&&_t(t.slice(l,r)),r<o&&_t(t=t.slice(r)),r<o&&vt(t))}d.push(n)}return bt(d)}function kt(t,e){var n=e.length>0,r=t.length>0,o=function(o,a,s,l,c){var h,p,m,v=0,y="0",b=o&&[],x=[],w=u,k=o||r&&i.find.TAG("*",c),S=_+=null==w?1:Math.random()||.1,C=k.length;for(c&&(u=a===f||a||c);y!==C&&null!=(h=k[y]);y++){if(r&&h){for(p=0,a||h.ownerDocument===f||(d(h),s=!g);m=t[p++];)if(m(h,a||f,s)){l.push(h);break}c&&(_=S)}n&&((h=!m&&h)&&v--,o&&b.push(h))}if(v+=y,n&&y!==v){for(p=0;m=e[p++];)m(b,x,a,s);if(o){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=O.call(l));x=xt(x)}I.apply(l,x),c&&!o&&x.length>0&&v+e.length>1&&ot.uniqueSort(l)}return c&&(_=S,u=w),b};return n?st(o):o}return mt.prototype=i.filters=i.pseudos,i.setFilters=new mt,a=ot.tokenize=function(t,e){var n,r,o,a,s,l,u,c=C[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){for(a in n&&!(r=z.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=Y.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(H," ")}),s=s.slice(n.length)),i.filter)!(r=V[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?ot.error(t):C(t,l).slice(0)},s=ot.compile=function(t,e){var n,i=[],r=[],o=M[t+" "];if(!o){for(e||(e=a(t)),n=e.length;n--;)(o=_t(e[n]))[x]?i.push(o):r.push(o);(o=M(t,kt(r,i))).selector=t}return o},l=ot.select=function(t,e,n,r){var o,l,u,c,h,d="function"==typeof t&&t,f=!r&&a(t=d.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&g&&i.relative[l[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(K,tt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=V.needsContext.test(t)?0:l.length;o--&&!i.relative[c=(u=l[o]).type];)if((h=i.find[c])&&(r=h(u.matches[0].replace(K,tt),J.test(l[0].type)&&gt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&vt(l)))return I.apply(n,r),n;break}}return(d||s(t,f))(r,e,!g,n,!e||J.test(t)&&gt(e.parentNode)||e),n},n.sortStable=x.split("").sort(T).join("")===x,n.detectDuplicates=!!h,d(),n.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ut(R,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),ot}(t);x.find=k,x.expr=k.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=k.uniqueSort,x.text=k.getText,x.isXMLDoc=k.isXML,x.contains=k.contains,x.escapeSelector=k.escape;var S=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&x(t).is(n))break;i.push(t)}return i},C=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},M=x.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,e,n){return g(e)?x.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?x.grep(t,function(t){return t===e!==n}):"string"!=typeof e?x.grep(t,function(t){return l.call(e,t)>-1!==n}):x.filter(e,t,n)}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e<i;e++)if(x.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)x.find(t,r[e],n);return i>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&M.test(t)?x(t):t||[],!1).length}});var O,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||O,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:E.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(x.merge(this,x.parseHTML(r[1],(e=e instanceof x?e[0]:e)&&e.nodeType?e.ownerDocument||e:i,!0)),D.test(r[1])&&x.isPlainObject(e))for(r in e)g(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=i.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,O=x(i);var I=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&x(t);if(!M.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?l.call(x(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return S(t,"parentNode")},parentsUntil:function(t,e,n){return S(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return S(t,"nextSibling")},prevAll:function(t){return S(t,"previousSibling")},nextUntil:function(t,e,n){return S(t,"nextSibling",n)},prevUntil:function(t,e,n){return S(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return T(t,"iframe")?t.contentDocument:(T(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},function(t,e){x.fn[t]=function(n,i){var r=x.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(P[t]||x.uniqueSort(r),I.test(t)&&r.reverse()),this.pushStack(r)}});var R=/[^\x20\t\r\n\f]+/g;function j(t){return t}function F(t){throw t}function N(t,e,n,i){var r;try{t&&g(r=t.promise)?r.call(t).done(e).fail(n):t&&g(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(R)||[],function(t,n){e[n]=!0}),e}(t):x.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){x.each(n,function(n,i){g(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==b(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return x.each(arguments,function(t,e){for(var n;(n=x.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},x.extend({Deferred:function(e){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return x.Deferred(function(e){x.each(n,function(n,i){var r=g(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&g(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,i,r){var o=0;function a(e,n,i,r){return function(){var s=this,l=arguments,u=function(){var t,u;if(!(e<o)){if((t=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");g(u=t&&("object"==typeof t||"function"==typeof t)&&t.then)?r?u.call(t,a(o,n,j,r),a(o,n,F,r)):u.call(t,a(++o,n,j,r),a(o,n,F,r),a(o,n,j,n.notifyWith)):(i!==j&&(s=void 0,l=[t]),(r||n.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(t){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(t,c.stackTrace),e+1>=o&&(i!==F&&(s=void 0,l=[t]),n.rejectWith(s,l))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),t.setTimeout(c))}}return x.Deferred(function(t){n[0][3].add(a(0,t,g(r)?r:j,t.notifyWith)),n[1][3].add(a(0,t,g(e)?e:j)),n[2][3].add(a(0,t,g(i)?i:F))}).promise()},promise:function(t){return null!=t?x.extend(t,r):r}},o={};return x.each(n,function(t,e){var a=e[2],s=e[5];r[e[1]]=a.add,s&&a.add(function(){i=s},n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=o.call(arguments),a=x.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?o.call(arguments):n,--e||a.resolveWith(i,r)}};if(e<=1&&(N(t,a.done(s(n)).resolve,a.reject,!e),"pending"===a.state()||g(r[n]&&r[n].then)))return a.then();for(;n--;)N(r[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&W.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},x.readyException=function(e){t.setTimeout(function(){throw e})};var B=x.Deferred();function H(){i.removeEventListener("DOMContentLoaded",H),t.removeEventListener("load",H),x.ready()}x.fn.ready=function(t){return B.then(t).catch(function(t){x.readyException(t)}),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||B.resolveWith(i,[x]))}}),x.ready.then=B.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?t.setTimeout(x.ready):(i.addEventListener("DOMContentLoaded",H),t.addEventListener("load",H));var z=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===b(n))for(s in r=!0,n)z(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,g(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(x(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},Y=/^-ms-/,U=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function $(t){return t.replace(Y,"ms-").replace(U,q)}var V=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function G(){this.expando=x.expando+G.uid++}G.uid=1,G.prototype={cache:function(t){var e=t[this.expando];return e||(e={},V(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[$(e)]=n;else for(i in e)r[$(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][$(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map($):(e=$(e))in i?[e]:e.match(R)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||x.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var X=new G,Q=new G,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function K(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Z.test(t)?JSON.parse(t):t)}(n)}catch(t){}Q.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return Q.hasData(t)||X.hasData(t)},data:function(t,e,n){return Q.access(t,e,n)},removeData:function(t,e){Q.remove(t,e)},_data:function(t,e,n){return X.access(t,e,n)},_removeData:function(t,e){X.remove(t,e)}}),x.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=Q.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=$(i.slice(5)),K(o,i,r[i]));X.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Q.set(this,t)}):z(this,function(e){var n;if(o&&void 0===e){if(void 0!==(n=Q.get(o,t)))return n;if(void 0!==(n=K(o,t)))return n}else this.each(function(){Q.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Q.remove(this,t)})}}),x.extend({queue:function(t,e,n){var i;if(t)return i=X.get(t,e=(e||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=X.access(t,e,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){var n=x.queue(t,e=e||"fx"),i=n.length,r=n.shift(),o=x._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){x.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return X.get(t,n)||X.access(t,n,{empty:x.Callbacks("once memory").add(function(){X.remove(t,[e+"queue",n])})})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each(function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)})},dequeue:function(t){return this.each(function(){x.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=x.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=X.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&x.contains(t.ownerDocument,t)&&"none"===x.css(t,"display")},rt=function(t,e,n,i){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in r=n.apply(t,i||[]),e)t.style[o]=a[o];return r};function ot(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return x.css(t,e,"")},l=s(),u=n&&n[3]||(x.cssNumber[e]?"":"px"),c=(x.cssNumber[e]||"px"!==u&&+l)&&et.exec(x.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)x.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;x.style(t,e,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var at={};function st(t){var e,n=t.ownerDocument,i=t.nodeName,r=at[i];return r||(e=n.body.appendChild(n.createElement(i)),r=x.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),at[i]=r,r)}function lt(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=X.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&it(i)&&(r[o]=st(i))):"none"!==n&&(r[o]="none",X.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}x.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){it(this)?x(this).show():x(this).hide()})}});var ut=/^(?:checkbox|radio)$/i,ct=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ht=/^$|^module$|\/(?:java|ecma)script/i,dt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ft(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?x.merge([t],n):n}function pt(t,e){for(var n=0,i=t.length;n<i;n++)X.set(t[n],"globalEval",!e||X.get(e[n],"globalEval"))}dt.optgroup=dt.option,dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td;var gt=/<|&#?\w+;/;function mt(t,e,n,i,r){for(var o,a,s,l,u,c,h=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===b(o))x.merge(d,o.nodeType?[o]:o);else if(gt.test(o)){for(a=a||h.appendChild(e.createElement("div")),s=(ct.exec(o)||["",""])[1].toLowerCase(),a.innerHTML=(l=dt[s]||dt._default)[1]+x.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;x.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",f=0;o=d[f++];)if(i&&x.inArray(o,i)>-1)r&&r.push(o);else if(u=x.contains(o.ownerDocument,o),a=ft(h.appendChild(o),"script"),u&&pt(a),n)for(c=0;o=a[c++];)ht.test(o.type||"")&&n.push(o);return h}!function(){var t=i.createDocumentFragment().appendChild(i.createElement("div")),e=i.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),p.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var vt=i.documentElement,yt=/^key/,bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function _t(){return!1}function kt(){try{return i.activeElement}catch(t){}}function St(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)St(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=_t;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return x().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),t.each(function(){x.event.add(this,e,r,i,n)})}x.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,h,d,f,p,g,m=X.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(vt,r),n.guid||(n.guid=x.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(R)||[""]).length;u--;)f=g=(s=xt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(h=x.event.special[f]||{},h=x.event.special[f=(r?h.delegateType:h.bindType)||f]||{},c=x.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),x.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,h,d,f,p,g,m=X.hasData(t)&&X.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(R)||[""]).length;u--;)if(f=g=(s=xt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(h=x.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,m.handle)||x.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)x.event.remove(t,f+e[u],n,i,!0);x.isEmptyObject(l)&&X.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=x.event.fix(t),l=new Array(arguments.length),u=(X.get(this,"events")||{})[s.type]||[],c=x.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=x.event.handlers.call(this,s,u),e=0;(r=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(i=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?x(r,this).index(u)>-1:x.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:g(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==kt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===kt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&T(this,"input"))return this.click(),!1},_default:function(t){return T(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt:_t,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:_t,isPropagationStopped:_t,isImmediatePropagationStopped:_t,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&yt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&bt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},x.event.addProp),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||x.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),x.fn.extend({on:function(t,e,n,i){return St(this,t,e,n,i)},one:function(t,e,n,i){return St(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,x(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=_t),this.each(function(){x.event.remove(this,t,n,e)})}});var Ct=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Mt=/<script|<style|<link/i,Tt=/checked\s*(?:[^=]|=\s*.checked.)/i,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function At(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Ot(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Et(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function It(t,e){var n,i,r,o,a,s,l,u;if(1===e.nodeType){if(X.hasData(t)&&(o=X.access(t),a=X.set(e,o),u=o.events))for(r in delete a.handle,a.events={},u)for(n=0,i=u[r].length;n<i;n++)x.event.add(e,r,u[r][n]);Q.hasData(t)&&(s=Q.access(t),l=x.extend({},s),Q.set(e,l))}}function Pt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&ut.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Lt(t,e,n,i){e=a.apply([],e);var r,o,s,l,u,c,h=0,d=t.length,f=d-1,m=e[0],v=g(m);if(v||d>1&&"string"==typeof m&&!p.checkClone&&Tt.test(m))return t.each(function(r){var o=t.eq(r);v&&(e[0]=m.call(this,r,o.html())),Lt(o,e,n,i)});if(d&&(o=(r=mt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(l=(s=x.map(ft(r,"script"),Ot)).length;h<d;h++)u=r,h!==f&&(u=x.clone(u,!0,!0),l&&x.merge(s,ft(u,"script"))),n.call(t[h],u,h);if(l)for(c=s[s.length-1].ownerDocument,x.map(s,Et),h=0;h<l;h++)ht.test((u=s[h]).type||"")&&!X.access(u,"globalEval")&&x.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?x._evalUrl&&x._evalUrl(u.src):y(u.textContent.replace(Dt,""),c,u))}return t}function Rt(t,e,n){for(var i,r=e?x.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||x.cleanData(ft(i)),i.parentNode&&(n&&x.contains(i.ownerDocument,i)&&pt(ft(i,"script")),i.parentNode.removeChild(i));return t}x.extend({htmlPrefilter:function(t){return t.replace(Ct,"<$1></$2>")},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=x.contains(t.ownerDocument,t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(a=ft(s),i=0,r=(o=ft(t)).length;i<r;i++)Pt(o[i],a[i]);if(e)if(n)for(o=o||ft(t),a=a||ft(s),i=0,r=o.length;i<r;i++)It(o[i],a[i]);else It(t,s);return(a=ft(s,"script")).length>0&&pt(a,!l&&ft(t,"script")),s},cleanData:function(t){for(var e,n,i,r=x.event.special,o=0;void 0!==(n=t[o]);o++)if(V(n)){if(e=n[X.expando]){if(e.events)for(i in e.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,e.handle);n[X.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return z(this,function(t){return void 0===t?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Lt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||At(this,t).appendChild(t)})},prepend:function(){return Lt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=At(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return z(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Mt.test(t)&&!dt[(ct.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Lt(this,arguments,function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(ft(this)),n&&n.replaceChild(e,this))},t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){x.fn[t]=function(t){for(var n,i=[],r=x(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(r[a])[e](n),s.apply(i,n.get());return this.pushStack(i)}});var jt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Ft=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Nt=new RegExp(nt.join("|"),"i");function Wt(t,e,n){var i,r,o,a,s=t.style;return(n=n||Ft(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||x.contains(t.ownerDocument,t)||(a=x.style(t,e)),!p.pixelBoxStyles()&&jt.test(a)&&Nt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Bt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",vt.appendChild(u).appendChild(c);var e=t.getComputedStyle(c);r="1%"!==e.top,l=12===n(e.marginLeft),c.style.right="60%",s=36===n(e.right),o=36===n(e.width),c.style.position="absolute",a=36===c.offsetWidth||"absolute",vt.removeChild(u),c=null}}function n(t){return Math.round(parseFloat(t))}var r,o,a,s,l,u=i.createElement("div"),c=i.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===c.style.backgroundClip,x.extend(p,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a}}))}();var Ht=/^(none|table(?!-c[ea]).+)/,zt=/^--/,Yt={position:"absolute",visibility:"hidden",display:"block"},Ut={letterSpacing:"0",fontWeight:"400"},qt=["Webkit","Moz","ms"],$t=i.createElement("div").style;function Vt(t){var e=x.cssProps[t];return e||(e=x.cssProps[t]=function(t){if(t in $t)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=qt.length;n--;)if((t=qt[n]+e)in $t)return t}(t)||t),e}function Gt(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Xt(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=x.css(t,n+nt[a],!0,r)),i?("content"===n&&(l-=x.css(t,"padding"+nt[a],!0,r)),"margin"!==n&&(l-=x.css(t,"border"+nt[a]+"Width",!0,r))):(l+=x.css(t,"padding"+nt[a],!0,r),"padding"!==n?l+=x.css(t,"border"+nt[a]+"Width",!0,r):s+=x.css(t,"border"+nt[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))),l}function Qt(t,e,n){var i=Ft(t),r=Wt(t,e,i),o="border-box"===x.css(t,"boxSizing",!1,i),a=o;if(jt.test(r)){if(!n)return r;r="auto"}return a=a&&(p.boxSizingReliable()||r===t.style[e]),("auto"===r||!parseFloat(r)&&"inline"===x.css(t,"display",!1,i))&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(r=parseFloat(r)||0)+Xt(t,e,n||(o?"border":"content"),a,i,r)+"px"}function Zt(t,e,n,i,r){return new Zt.prototype.init(t,e,n,i,r)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Wt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,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:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=$(e),l=zt.test(e),u=t.style;if(l||(e=Vt(s)),a=x.cssHooks[e]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];"string"==(o=typeof n)&&(r=et.exec(n))&&r[1]&&(n=ot(t,e,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(x.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=$(e);return zt.test(e)||(e=Vt(s)),(a=x.cssHooks[e]||x.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Wt(t,e,i)),"normal"===r&&e in Ut&&(r=Ut[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],function(t,e){x.cssHooks[e]={get:function(t,n,i){if(n)return!Ht.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,i):rt(t,Yt,function(){return Qt(t,e,i)})},set:function(t,n,i){var r,o=Ft(t),a="border-box"===x.css(t,"boxSizing",!1,o),s=i&&Xt(t,e,i,a,o);return a&&p.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Xt(t,e,"border",!1,o)-.5)),s&&(r=et.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),Gt(0,n,s)}}}),x.cssHooks.marginLeft=Bt(p.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Wt(t,"marginLeft"))||t.getBoundingClientRect().left-rt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(t,e){x.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+nt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(x.cssHooks[t+e].set=Gt)}),x.fn.extend({css:function(t,e){return z(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Ft(t),r=e.length;a<r;a++)o[e[a]]=x.css(t,e[a],!1,i);return o}return void 0!==n?x.style(t,e,n):x.css(t,e)},t,e,arguments.length>1)}}),x.Tween=Zt,(Zt.prototype={constructor:Zt,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,n=Zt.propHooks[this.prop];return this.pos=e=this.options.duration?x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Zt.propHooks._default.set(this),this}}).init.prototype=Zt.prototype,(Zt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[x.cssProps[t.prop]]&&!x.cssHooks[t.prop]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=Zt.prototype.init,x.fx.step={};var Jt,Kt,te=/^(?:toggle|show|hide)$/,ee=/queueHooks$/;function ne(){Kt&&(!1===i.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ne):t.setTimeout(ne,x.fx.interval),x.fx.tick())}function ie(){return t.setTimeout(function(){Jt=void 0}),Jt=Date.now()}function re(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=nt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function oe(t,e,n){for(var i,r=(ae.tweeners[e]||[]).concat(ae.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function ae(t,e,n){var i,r,o=0,a=ae.prefilters.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Jt||ie(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:Jt||ie(),duration:n.duration,tweens:[],createTween:function(e,n){var i=x.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=$(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=x.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=ae.prefilters[o].call(u,t,c,u.opts))return g(i.stop)&&(x._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return x.map(c,oe,u),g(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(ae,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ot(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){g(t)?(e=t,t=["*"]):t=t.match(R);for(var n,i=0,r=t.length;i<r;i++)(ae.tweeners[n=t[i]]=ae.tweeners[n]||[]).unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,u,c,h="width"in e||"height"in e,d=this,f={},p=t.style,g=t.nodeType&&it(t),m=X.get(t,"fxshow");for(i in n.queue||(null==(a=x._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,x.queue(t,"fx").length||a.empty.fire()})})),e)if(te.test(r=e[i])){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||x.style(t,i)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(f))for(i in h&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=X.get(t,"display")),"none"===(c=x.css(t,"display"))&&(u?c=u:(lt([t],!0),u=t.style.display||u,c=x.css(t,"display"),lt([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===x.css(t,"float")&&(l||(d.done(function(){p.display=u}),null==u&&(u="none"===(c=p.display)?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=X.access(t,"fxshow",{display:u}),o&&(m.hidden=!g),g&&lt([t],!0),d.done(function(){for(i in g||lt([t]),X.remove(t,"fxshow"),f)x.style(t,i,f[i])})),l=oe(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ae.prefilters.unshift(t):ae.prefilters.push(t)}}),x.speed=function(t,e,n){var i=t&&"object"==typeof t?x.extend({},t):{complete:n||!n&&e||g(t)&&t,duration:t,easing:n&&e||e&&!g(e)&&e};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration=i.duration in x.fx.speeds?x.fx.speeds[i.duration]:x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(t,e,n,i){return this.filter(it).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=x.isEmptyObject(t),o=x.speed(e,n,i),a=function(){var e=ae(this,x.extend({},t),o);(r||X.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=x.timers,a=X.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ee.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||x.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=X.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=x.timers,a=i?i.length:0;for(n.finish=!0,x.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),x.each(["toggle","show","hide"],function(t,e){var n=x.fn[e];x.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(re(e,!0),t,i,r)}}),x.each({slideDown:re("show"),slideUp:re("hide"),slideToggle:re("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){x.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(Jt=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),Jt=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){Kt||(Kt=!0,ne())},x.fx.stop=function(){Kt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,n){return e=x.fx&&x.fx.speeds[e]||e,this.queue(n=n||"fx",function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var t=i.createElement("input"),e=i.createElement("select").appendChild(i.createElement("option"));t.type="checkbox",p.checkOn=""!==t.value,p.optSelected=e.selected,(t=i.createElement("input")).value="t",t.type="radio",p.radioValue="t"===t.value}();var se,le=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return z(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){x.removeAttr(this,t)})}}),x.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(r=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?se:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=x.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(R);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),se={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(t,e){var n=le[e]||x.find.attr;le[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=le[a],le[a]=r,r=null!=n(t,e,i)?a:null,le[a]=o),r}});var ue=/^(?:input|select|textarea|button)$/i,ce=/^(?:a|area)$/i;function he(t){return(t.match(R)||[]).join(" ")}function de(t){return t.getAttribute&&t.getAttribute("class")||""}function fe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(R)||[]}x.fn.extend({prop:function(t,e){return z(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[x.propFix[t]||t]})}}),x.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(r=x.propHooks[e=x.propFix[e]||e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(x.propHooks.selected={get:function(t){return null},set:function(t){}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(g(t))return this.each(function(e){x(this).addClass(t.call(this,e,de(this)))});if((e=fe(t)).length)for(;n=this[l++];)if(r=de(n),i=1===n.nodeType&&" "+he(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=he(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(g(t))return this.each(function(e){x(this).removeClass(t.call(this,e,de(this)))});if(!arguments.length)return this.attr("class","");if((e=fe(t)).length)for(;n=this[l++];)if(r=de(n),i=1===n.nodeType&&" "+he(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=he(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):g(t)?this.each(function(n){x(this).toggleClass(t.call(this,n,de(this),e),e)}):this.each(function(){var e,r,o,a;if(i)for(r=0,o=x(this),a=fe(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=de(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":X.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+he(de(n))+" ").indexOf(e)>-1)return!0;return!1}});var pe=/\r/g;x.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=g(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,x(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,function(t){return null==t?"":t+""})),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(pe,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:he(x.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(e=x(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=x.makeArray(e),a=r.length;a--;)((i=r[a]).selected=x.inArray(x.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},p.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),p.focusin="onfocusin"in t;var ge=/^(?:focusinfocus|focusoutblur)$/,me=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,n,r,o){var a,s,l,u,c,d,f,p,v=[r||i],y=h.call(e,"type")?e.type:e,b=h.call(e,"namespace")?e.namespace.split("."):[];if(s=p=l=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!ge.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(e=e[x.expando]?e:new x.Event(y,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:x.makeArray(n,[e]),f=x.event.special[y]||{},o||!f.trigger||!1!==f.trigger.apply(r,n))){if(!o&&!f.noBubble&&!m(r)){for(ge.test((u=f.delegateType||y)+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),l=s;l===(r.ownerDocument||i)&&v.push(l.defaultView||l.parentWindow||t)}for(a=0;(s=v[a++])&&!e.isPropagationStopped();)p=s,e.type=a>1?u:f.bindType||y,(d=(X.get(s,"events")||{})[e.type]&&X.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&V(s)&&(e.result=d.apply(s,n),!1===e.result&&e.preventDefault());return e.type=y,o||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),n)||!V(r)||c&&g(r[y])&&!m(r)&&((l=r[c])&&(r[c]=null),x.event.triggered=y,e.isPropagationStopped()&&p.addEventListener(y,me),r[y](),e.isPropagationStopped()&&p.removeEventListener(y,me),x.event.triggered=void 0,l&&(r[c]=l)),e.result}},simulate:function(t,e,n){var i=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each(function(){x.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),p.focusin||x.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=X.access(i,e);r||i.addEventListener(t,n,!0),X.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=X.access(i,e)-1;r?X.access(i,e,r):(i.removeEventListener(t,n,!0),X.remove(i,e))}}});var ve=t.location,ye=Date.now(),be=/\?/;x.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),n};var xe=/\[\]$/,we=/\r?\n/g,_e=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function Se(t,e,n,i){var r;if(Array.isArray(e))x.each(e,function(e,r){n||xe.test(t)?i(t,r):Se(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==b(e))i(t,e);else for(r in e)Se(t+"["+r+"]",e[r],n,i)}x.param=function(t,e){var n,i=[],r=function(t,e){var n=g(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,function(){r(this.name,this.value)});else for(n in t)Se(n,t[n],e,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&ke.test(this.nodeName)&&!_e.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(t){return{name:e.name,value:t.replace(we,"\r\n")}}):{name:e.name,value:n.replace(we,"\r\n")}}).get()}});var Ce=/%20/g,Me=/#.*$/,Te=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ae=/^(?:GET|HEAD)$/,Oe=/^\/\//,Ee={},Ie={},Pe="*/".concat("*"),Le=i.createElement("a");function Re(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(R)||[];if(g(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function je(t,e,n,i){var r={},o=t===Ie;function a(s){var l;return r[s]=!0,x.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Fe(t,e){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&x.extend(!0,t,i),t}Le.href=ve.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ve.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ve.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Fe(Fe(t,x.ajaxSettings),e):Fe(x.ajaxSettings,t)},ajaxPrefilter:Re(Ee),ajaxTransport:Re(Ie),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0);var r,o,a,s,l,u,c,h,d,f,p=x.ajaxSetup({},n=n||{}),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?x(g):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=p.statusCode||{},w={},_={},k="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=De.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return r&&r.abort(e),C(0,e),this}};if(v.promise(S),p.url=((e||p.url||ve.href)+"").replace(Oe,ve.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(R)||[""],null==p.crossDomain){u=i.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Le.protocol+"//"+Le.host!=u.protocol+"//"+u.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),je(Ee,p,n,S),c)return S;for(d in(h=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ae.test(p.type),o=p.url.replace(Me,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ce,"+")):(f=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(be.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Te,"$1"),f=(be.test(o)?"&":"?")+"_="+ye+++f),p.url=o+f),p.ifModified&&(x.lastModified[o]&&S.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&S.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Pe+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,S,p)||c))return S.abort();if(k="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),r=je(Ie,p,n,S)){if(S.readyState=1,h&&m.trigger("ajaxSend",[S,p]),c)return S;p.async&&p.timeout>0&&(l=t.setTimeout(function(){S.abort("timeout")},p.timeout));try{c=!1,r.send(w,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(e,n,i,s){var u,d,f,w,_,k=n;c||(c=!0,l&&t.clearTimeout(l),r=void 0,a=s||"",S.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(w=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,S,i)),w=function(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,S,u),u?(p.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=_),(_=S.getResponseHeader("etag"))&&(x.etag[o]=_)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=w.state,d=w.data,u=!(f=w.error))):(f=k,!e&&k||(k="error",e<0&&(e=0))),S.status=e,S.statusText=(n||k)+"",u?v.resolveWith(g,[d,k,S]):v.rejectWith(g,[S,k,f]),S.statusCode(b),b=void 0,h&&m.trigger(u?"ajaxSuccess":"ajaxError",[S,p,u?d:f]),y.fireWith(g,[S,k]),h&&(m.trigger("ajaxComplete",[S,p]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],function(t,e){x[e]=function(t,n,i,r){return g(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:r,data:n,success:i},x.isPlainObject(t)&&t))}}),x._evalUrl=function(t){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return g(t)?this.each(function(e){x(this).wrapInner(t.call(this,e))}):this.each(function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=g(t);return this.each(function(n){x(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ne={0:200,1223:204},We=x.ajaxSettings.xhr();p.cors=!!We&&"withCredentials"in We,p.ajax=We=!!We,x.ajaxTransport(function(e){var n,i;if(p.cors||We&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ne[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),x.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),x.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,o){e=x("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),i.head.appendChild(e[0])},abort:function(){n&&n()}}});var Be=[],He=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Be.pop()||x.expando+"_"+ye++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,a,s=!1!==e.jsonp&&(He.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(He,"$1"+r):!1!==e.jsonp&&(e.url+=(be.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||x.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},i.always(function(){void 0===o?x(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Be.push(r)),a&&g(o)&&o(a[0]),a=o=void 0}),"script"}),p.createHTMLDocument=function(){var t=i.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),x.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(p.createHTMLDocument?((r=(e=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,e.head.appendChild(r)):e=i),o=D.exec(t),a=!n&&[],o?[e.createElement(o[1])]:(o=mt([t],e,a),a&&a.length&&x(a).remove(),x.merge([],o.childNodes)));var r,o,a},x.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=he(t.slice(s)),t=t.slice(0,s)),g(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&x.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?x("<div>").append(x.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){x.fn[e]=function(t){return this.on(e,t)}}),x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u=x.css(t,"position"),c=x(t),h={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=x.css(t,"top"),l=x.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),g(e)&&(e=e.call(t,n,x.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):c.css(h)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?{top:(e=i.getBoundingClientRect()).top+(n=i.ownerDocument.defaultView).pageYOffset,left:e.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),r.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-x.css(i,"marginTop",!0),left:e.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||vt})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;x.fn[t]=function(i){return z(this,function(t,i,r){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),x.each(["top","left"],function(t,e){x.cssHooks[e]=Bt(p.pixelPosition,function(t,n){if(n)return n=Wt(t,e),jt.test(n)?x(t).position()[e]+"px":n})}),x.each({Height:"height",Width:"width"},function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){x.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return z(this,function(e,n,r){var o;return m(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?x.css(e,n,s):x.style(e,n,r,s)},e,a?r:void 0,a)}})}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),x.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),x.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),g(t))return i=o.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||x.guid++,r},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=T,x.isFunction=g,x.isWindow=m,x.camelCase=$,x.type=b,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var ze=t.jQuery,Ye=t.$;return x.noConflict=function(e){return t.$===x&&(t.$=Ye),e&&t.jQuery===x&&(t.jQuery=ze),x},e||(t.jQuery=t.$=x),x}),void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"function"==typeof define&&define.amd?define(["jquery"],window,t):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(t,e){"use strict";function n(n){var i=e.console;o[n]||(o[n]=!0,t.migrateWarnings.push(n),i&&i.warn&&!t.migrateMute&&(i.warn("JQMIGRATE: "+n),t.migrateTrace&&i.trace&&i.trace()))}function i(t,e,i,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return n(r),i},set:function(t){n(r),i=t}})}function r(t,e,i,r){t[e]=function(){return n(r),i.apply(this,arguments)}}t.migrateVersion="3.0.1",e.console&&e.console.log&&(t&&!/^[12]\./.test(t.fn.jquery)||e.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),t.migrateWarnings&&e.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),e.console.log("JQMIGRATE: Migrate is installed"+(t.migrateMute?"":" with logging active")+", version "+t.migrateVersion));var o={};t.migrateWarnings=[],void 0===t.migrateTrace&&(t.migrateTrace=!0),t.migrateReset=function(){o={},t.migrateWarnings.length=0},"BackCompat"===e.document.compatMode&&n("jQuery is not compatible with Quirks Mode");var a,s=t.fn.init,l=t.isNumeric,u=t.find,c=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(a in t.fn.init=function(t){var e=Array.prototype.slice.call(arguments);return"string"==typeof t&&"#"===t&&(n("jQuery( '#' ) is not a valid selector"),e[0]=[]),s.apply(this,e)},t.fn.init.prototype=t.fn,t.find=function(t){var i=Array.prototype.slice.call(arguments);if("string"==typeof t&&c.test(t))try{e.document.querySelector(t)}catch(r){t=t.replace(h,function(t,e,n,i){return"["+e+n+'"'+i+'"]'});try{e.document.querySelector(t),n("Attribute selector with '#' must be quoted: "+i[0]),i[0]=t}catch(t){n("Attribute selector with '#' was not fixed: "+i[0])}}return u.apply(this,i)},u)Object.prototype.hasOwnProperty.call(u,a)&&(t.find[a]=u[a]);t.fn.size=function(){return n("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},t.parseJSON=function(){return n("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},t.isNumeric=function(e){var i=l(e),r=function(e){var n=e&&e.toString();return!t.isArray(e)&&n-parseFloat(n)+1>=0}(e);return i!==r&&n("jQuery.isNumeric() should not be called on constructed objects"),r},r(t,"holdReady",t.holdReady,"jQuery.holdReady is deprecated"),r(t,"unique",t.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),i(t.expr,"filters",t.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),i(t.expr,":",t.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");var d=t.ajax;t.ajax=function(){var t=d.apply(this,arguments);return t.promise&&(r(t,"success",t.done,"jQXHR.success is deprecated and removed"),r(t,"error",t.fail,"jQXHR.error is deprecated and removed"),r(t,"complete",t.always,"jQXHR.complete is deprecated and removed")),t};var f=t.fn.removeAttr,p=t.fn.toggleClass,g=/\S+/g;t.fn.removeAttr=function(e){var i=this;return t.each(e.match(g),function(e,r){t.expr.match.bool.test(r)&&(n("jQuery.fn.removeAttr no longer sets boolean properties: "+r),i.prop(r,!1))}),f.apply(this,arguments)},t.fn.toggleClass=function(e){return void 0!==e&&"boolean"!=typeof e?p.apply(this,arguments):(n("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&t.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":t.data(this,"__className__")||"")}))};var m=!1;t.swap&&t.each(["height","width","reliableMarginRight"],function(e,n){var i=t.cssHooks[n]&&t.cssHooks[n].get;i&&(t.cssHooks[n].get=function(){var t;return m=!0,t=i.apply(this,arguments),m=!1,t})}),t.swap=function(t,e,i,r){var o,a,s={};for(a in m||n("jQuery.swap() is undocumented and deprecated"),e)s[a]=t.style[a],t.style[a]=e[a];for(a in o=i.apply(t,r||[]),e)t.style[a]=s[a];return o};var v=t.data;t.data=function(e,i,r){var o;if(i&&"object"==typeof i&&2===arguments.length){o=t.hasData(e)&&v.call(this,e);var a={};for(var s in i)s!==t.camelCase(s)?(n("jQuery.data() always sets/gets camelCased names: "+s),o[s]=i[s]):a[s]=i[s];return v.call(this,e,a),i}return i&&"string"==typeof i&&i!==t.camelCase(i)&&(o=t.hasData(e)&&v.call(this,e))&&i in o?(n("jQuery.data() always sets/gets camelCased names: "+i),arguments.length>2&&(o[i]=r),o[i]):v.apply(this,arguments)};var y=t.Tween.prototype.run,b=function(t){return t};t.Tween.prototype.run=function(){t.easing[this.easing].length>1&&(n("'jQuery.easing."+this.easing.toString()+"' should use only one argument"),t.easing[this.easing]=b),y.apply(this,arguments)},t.fx.interval=t.fx.interval||13,e.requestAnimationFrame&&i(t.fx,"interval",t.fx.interval,"jQuery.fx.interval is deprecated");var x=t.fn.load,w=t.event.add,_=t.event.fix;t.event.props=[],t.event.fixHooks={},i(t.event.props,"concat",t.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),t.event.fix=function(e){var i,r=e.type,o=this.fixHooks[r],a=t.event.props;if(a.length)for(n("jQuery.event.props are deprecated and removed: "+a.join());a.length;)t.event.addProp(a.pop());if(o&&!o._migrated_&&(o._migrated_=!0,n("jQuery.event.fixHooks are deprecated and removed: "+r),(a=o.props)&&a.length))for(;a.length;)t.event.addProp(a.pop());return i=_.call(this,e),o&&o.filter?o.filter(i,e):i},t.event.add=function(t,i){return t===e&&"load"===i&&"complete"===e.document.readyState&&n("jQuery(window).on('load'...) called after load event occurred"),w.apply(this,arguments)},t.each(["load","unload","error"],function(e,i){t.fn[i]=function(){var t=Array.prototype.slice.call(arguments,0);return"load"===i&&"string"==typeof t[0]?x.apply(this,t):(n("jQuery.fn."+i+"() is deprecated"),t.splice(0,0,i),arguments.length?this.on.apply(this,t):(this.triggerHandler.apply(this,t),this))}}),t.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,i){t.fn[i]=function(t,e){return n("jQuery.fn."+i+"() event shorthand is deprecated"),arguments.length>0?this.on(i,null,t,e):this.trigger(i)}}),t(function(){t(e.document).triggerHandler("ready")}),t.event.special.ready={setup:function(){this===e.document&&n("'ready' event is deprecated")}},t.fn.extend({bind:function(t,e,i){return n("jQuery.fn.bind() is deprecated"),this.on(t,null,e,i)},unbind:function(t,e){return n("jQuery.fn.unbind() is deprecated"),this.off(t,null,e)},delegate:function(t,e,i,r){return n("jQuery.fn.delegate() is deprecated"),this.on(e,t,i,r)},undelegate:function(t,e,i){return n("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return n("jQuery.fn.hover() is deprecated"),this.on("mouseenter",t).on("mouseleave",e||t)}});var k=t.fn.offset;t.fn.offset=function(){var i=this[0],r={top:0,left:0};return i&&i.nodeType?t.contains((i.ownerDocument||e.document).documentElement,i)?k.apply(this,arguments):(n("jQuery.fn.offset() requires an element connected to a document"),r):(n("jQuery.fn.offset() requires a valid DOM element"),r)};var S=t.param;t.param=function(e,i){var r=t.ajaxSettings&&t.ajaxSettings.traditional;return void 0===i&&r&&(n("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),i=r),S.call(this,e,i)};var C=t.fn.andSelf||t.fn.addBack;t.fn.andSelf=function(){return n("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),C.apply(this,arguments)};var M=t.Deferred,T=[["resolve","done",t.Callbacks("once memory"),t.Callbacks("once memory"),"resolved"],["reject","fail",t.Callbacks("once memory"),t.Callbacks("once memory"),"rejected"],["notify","progress",t.Callbacks("memory"),t.Callbacks("memory")]];return t.Deferred=function(e){var i=M(),r=i.promise();return i.pipe=r.pipe=function(){var e=arguments;return n("deferred.pipe() is deprecated"),t.Deferred(function(n){t.each(T,function(o,a){var s=t.isFunction(e[o])&&e[o];i[a[1]](function(){var e=s&&s.apply(this,arguments);e&&t.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},e&&e.call(i,i),i},t.Deferred.exceptionHook=M.exceptionHook,t}),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,i=window.Cookies=t();i.noConflict=function(){return window.Cookies=n,i}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}return function e(n){function i(e,r,o){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(o=t({path:"/"},i.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(r),/^[\{\[]/.test(a)&&(r=a)}catch(t){}r=n.write?n.write(r,e):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var u in o)o[u]&&(l+="; "+u,!0!==o[u]&&(l+="="+o[u]));return document.cookie=e+"="+r+l}e||(a={});for(var c=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,d=0;d<c.length;d++){var f=c[d].split("="),p=f.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var g=f[0].replace(h,decodeURIComponent);if(p=n.read?n.read(p,g):n(p,g)||p.replace(h,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(t){}if(e===g){a=p;break}e||(a[g]=p)}catch(t){}}return a}}return i.set=i,i.get=function(t){return i.call(i,t)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(e,n){i(e,"",t(n,{expires:-1}))},i.withConverter=e,i}(function(){})}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;return t(this).one("bsTransitionEnd",function(){n=!0}),setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){var i=t(this),r=i.attr("data-target");r||(r=(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var o=t("#"===r?[]:r);function a(){o.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),o.length||(o=i.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof e&&r[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.button");r||i.data("bs.button",r=new e(this,"object"==typeof n&&n)),"toggle"==n?r.toggle():n&&r.setState(n)})}e.VERSION="3.3.7",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var i=t(e.target).closest(".btn");n.call(i,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),a="string"==typeof n?n:o.slide;r||i.data("bs.carousel",r=new e(this,o)),"number"==typeof n?r.to(n):a?r[a]():o.interval&&r.pause().cycle()})}e.VERSION="3.3.7",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);return("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap?e:this.$items.eq((n+("prev"==t?-1:1))%this.$items.length)},e.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(n,r),a=this.interval,s="next"==n?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([n,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(e){var i,r=t(this),o=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),n.call(o,a),s&&o.data("bs.carousel").to(s),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function i(n){return this.each(function(){var i=t(this),r=i.data("bs.collapse"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);!r&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),r||i.data("bs.collapse",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.7",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(n=r.data("bs.collapse"))&&n.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),n||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[a](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]()),this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,i){var r=t(i);this.addAriaAndCollapsedClass(n(r),r)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var r=t(this);r.attr("data-target")||e.preventDefault();var o=n(r),a=o.data("bs.collapse")?"toggle":r.data();i.call(o,a)})}(jQuery),function(t){"use strict";var e=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function r(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function o(i){i&&3===i.which||(t(e).remove(),t(n).each(function(){var e=t(this),n=r(e),o={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}i.VERSION="3.3.7",i.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var i=r(n),a=i.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",o);var s={relatedTarget:this};if(i.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var o=r(i),a=o.hasClass("open");if(!a&&27!=e.which||a&&27==e.which)return 27==e.which&&o.find(n).trigger("focus"),i.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(e.target);38==e.which&&l>0&&l--,40==e.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new i(this)),"string"==typeof e&&r[e].call(n)})},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,i.prototype.toggle).on("keydown.bs.dropdown.data-api",n,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,i){return this.each(function(){var r=t(this),o=r.data("bs.modal"),a=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);o||r.data("bs.modal",o=new e(this,a)),"string"==typeof n?o[n](i):a.show&&o.show(i)})}e.VERSION="3.3.7",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var i=this,r=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:n});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),r=i.attr("href"),o=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&e.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(o,a,this)})}(jQuery),function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseleave":"focusout";this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(u){var f=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+d>p.bottom?"top":"top"==s&&c.top-d<p.top?"bottom":"right"==s&&c.right+h>p.width?"left":"left"==s&&c.left-h<p.left?"right":s,o.removeClass(f).addClass(s)}var g=this.getCalculatedOffset(s,c,h,d);this.applyPlacement(g,s);var m=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(e.TRANSITION_DURATION):m()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=o&&(e.top=e.top+o-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var h=/top|bottom/.test(n),d=h?2*c.left-r+l:2*c.top-o+u,f=h?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(d,i[0][f],h)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){var i=this,r=t(this.$tip),o=t.Event("hide.bs."+this.type);function a(){"in"!=i.hoverState&&r.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),n&&n()}if(this.$element.trigger(o),!o.isDefaultPrevented())return r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:o?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,l,a)},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var u=e.left-o,c=e.left+o+n;u<a.left?r.left=a.left-u:c>a.right&&(r.left=a.left+a.width-c)}return r},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),o="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||i.data("bs.tooltip",r=new e(this,o)),"string"==typeof n&&r[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.7",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||i.data("bs.popover",r=new e(this,o)),"string"==typeof n&&r[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy");r||i.data("bs.scrollspy",r=new e(this,"object"==typeof n&&n)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=t(this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]').parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new e(this)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.7",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},e.prototype.activate=function(n,i,r){var o=i.find("> .active"),a=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?n.addClass("in"):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(t){"use strict";var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.affix");r||i.data("bs.affix",r=new e(this,"object"==typeof n&&n)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.7",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=t-i)&&"bottom";var s=null==this.affixed;return null!=n&&r<=n?"top":null!=i&&(s?r:o.top)+(s?a:e)>=t-i&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,n,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-n-o})}};var i=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(e,i)})})}(jQuery),(function(){function t(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function e(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var a=t[r];e(i,a,n(a),t)}return i}function n(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function i(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function r(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}function o(t,e){return!(null==t||!t.length)&&-1<p(t,e,0)}function a(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function s(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function l(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function u(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function c(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function h(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function d(t,e,n){var i;return n(t,function(t,n,r){if(e(t,n,r))return i=n,!1}),i}function f(t,e,n,i){var r=t.length;for(n+=i?1:-1;i?n--:++n<r;)if(e(t[n],n,t))return n;return-1}function p(t,e,n){if(e==e)t:{--n;for(var i=t.length;++n<i;)if(t[n]===e){t=n;break t}t=-1}else t=f(t,m,n);return t}function g(t,e,n,i){--n;for(var r=t.length;++n<r;)if(i(t[n],e))return n;return-1}function m(t){return t!=t}function v(t,e){var n=null==t?0:t.length;return n?w(t,e)/n:F}function y(t){return function(e){return null==e?R:e[t]}}function b(t){return function(e){return null==t?R:t[e]}}function x(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function w(t,e){for(var n,i=-1,r=t.length;++i<r;){var o=e(t[i]);o!==R&&(n=n===R?o:n+o)}return n}function _(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function k(t){return function(e){return t(e)}}function S(t,e){return s(e,function(e){return t[e]})}function C(t,e){return t.has(e)}function M(t,e){for(var n=-1,i=t.length;++n<i&&-1<p(e,t[n],0););return n}function T(t,e){for(var n=t.length;n--&&-1<p(e,t[n],0););return n}function D(t){return"\\"+At[t]}function A(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function O(t,e){return function(n){return t(e(n))}}function E(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n];a!==e&&"__lodash_placeholder__"!==a||(t[n]="__lodash_placeholder__",o[r++]=n)}return o}function I(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function P(t){if(St.test(t)){for(var e=_t.lastIndex=0;_t.test(t);)++e;t=e}else t=$t(t);return t}function L(t){return St.test(t)?t.match(_t)||[]:t.split("")}var R,j=1/0,F=NaN,N=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],W=/\b__p\+='';/g,B=/\b(__p\+=)''\+/g,H=/(__e\(.*?\)|\b__t\))\+'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,U=RegExp(z.source),q=RegExp(Y.source),$=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,K=RegExp(J.source),tt=/^\s+|\s+$/g,et=/^\s+/,nt=/\s+$/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rt=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,at=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,st=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,ct=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,dt=/^\[object .+?Constructor\]$/,ft=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,vt=/['\n\r\u2028\u2029\\]/g,yt="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",bt="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+yt,xt=RegExp("['\u2019]","g"),wt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),_t=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])"+yt,"g"),kt=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",bt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ct=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mt="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Tt={};Tt["[object Float32Array]"]=Tt["[object Float64Array]"]=Tt["[object Int8Array]"]=Tt["[object Int16Array]"]=Tt["[object Int32Array]"]=Tt["[object Uint8Array]"]=Tt["[object Uint8ClampedArray]"]=Tt["[object Uint16Array]"]=Tt["[object Uint32Array]"]=!0,Tt["[object Arguments]"]=Tt["[object Array]"]=Tt["[object ArrayBuffer]"]=Tt["[object Boolean]"]=Tt["[object DataView]"]=Tt["[object Date]"]=Tt["[object Error]"]=Tt["[object Function]"]=Tt["[object Map]"]=Tt["[object Number]"]=Tt["[object Object]"]=Tt["[object RegExp]"]=Tt["[object Set]"]=Tt["[object String]"]=Tt["[object WeakMap]"]=!1;var Dt={};Dt["[object Arguments]"]=Dt["[object Array]"]=Dt["[object ArrayBuffer]"]=Dt["[object DataView]"]=Dt["[object Boolean]"]=Dt["[object Date]"]=Dt["[object Float32Array]"]=Dt["[object Float64Array]"]=Dt["[object Int8Array]"]=Dt["[object Int16Array]"]=Dt["[object Int32Array]"]=Dt["[object Map]"]=Dt["[object Number]"]=Dt["[object Object]"]=Dt["[object RegExp]"]=Dt["[object Set]"]=Dt["[object String]"]=Dt["[object Symbol]"]=Dt["[object Uint8Array]"]=Dt["[object Uint8ClampedArray]"]=Dt["[object Uint16Array]"]=Dt["[object Uint32Array]"]=!0,Dt["[object Error]"]=Dt["[object Function]"]=Dt["[object WeakMap]"]=!1;var At={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ot=parseFloat,Et=parseInt,It="object"==typeof global&&global&&global.Object===Object&&global,Pt="object"==typeof self&&self&&self.Object===Object&&self,Lt=It||Pt||Function("return this")(),Rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,jt=Rt&&"object"==typeof module&&module&&!module.nodeType&&module,Ft=jt&&jt.exports===Rt,Nt=Ft&&It.process,Wt=function(){try{return jt&&jt.f&&jt.f("util").types||Nt&&Nt.binding&&Nt.binding("util")}catch(t){}}(),Bt=Wt&&Wt.isArrayBuffer,Ht=Wt&&Wt.isDate,zt=Wt&&Wt.isMap,Yt=Wt&&Wt.isRegExp,Ut=Wt&&Wt.isSet,qt=Wt&&Wt.isTypedArray,$t=y("length"),Vt=b({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Gt=b({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),Xt=b({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Qt=function b(yt){function bt(t){if(zi(t)&&!Oa(t)&&!(t instanceof It)){if(t instanceof At)return t;if(Or.call(t,"__wrapped__"))return pi(t)}return new At(t)}function _t(){}function At(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=R}function It(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Pt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Nt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new jt;++e<n;)this.add(t[e])}function Wt(t){this.size=(this.__data__=new Rt(t)).size}function $t(t,e){var n,i=Oa(t),r=!i&&Aa(t),o=!i&&!r&&Ia(t),a=!i&&!r&&!o&&Fa(t),s=(r=(i=i||r||o||a)?_(t.length,Sr):[]).length;for(n in t)!e&&!Or.call(t,n)||i&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||ei(n,s))||r.push(n);return r}function Zt(t){var e=t.length;return e?t[He(0,e-1)]:R}function Jt(t,e,n){(n===R||Li(t[e],n))&&(n!==R||e in t)||ie(t,e,n)}function Kt(t,e,n){var i=t[e];Or.call(t,e)&&Li(i,n)&&(n!==R||e in t)||ie(t,e,n)}function te(t,e){for(var n=t.length;n--;)if(Li(t[n][0],e))return n;return-1}function ee(t,e,n,i){return Ao(t,function(t,r,o){e(i,t,n(t),o)}),i}function ne(t,e){return t&&mn(e,nr(e),t)}function ie(t,e,n){"__proto__"==e&&Gr?Gr(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function re(t,e){for(var n=-1,i=e.length,r=vr(i),o=null==t;++n<i;)r[n]=o?R:tr(t,e[n]);return r}function oe(t,e,n){return t==t&&(n!==R&&(t=t<=n?t:n),e!==R&&(t=t>=e?t:e)),t}function ae(t,e,i,r,o,a){var s,l=1&e,u=2&e,c=4&e;if(i&&(s=o?i(t,r,o,a):i(t)),s!==R)return s;if(!Hi(t))return t;if(r=Oa(t)){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Or.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return gn(t,s)}else{var h=Bo(t),d="[object Function]"==h||"[object GeneratorFunction]"==h;if(Ia(t))return un(t,l);if("[object Object]"==h||"[object Arguments]"==h||d&&!o){if(s=u||d?{}:Kn(t),!l)return u?function(t,e){return mn(t,Wo(t),e)}(t,function(t,e){return t&&mn(e,ir(e),t)}(s,t)):function(t,e){return mn(t,No(t),e)}(t,ne(s,t))}else{if(!Dt[h])return o?t:{};s=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return cn(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return e=n?cn(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return hn(t,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return(e=new t.constructor(t.source,ut.exec(t))).lastIndex=t.lastIndex,e;case"[object Set]":return new i;case"[object Symbol]":return Mo?_r(Mo.call(t)):{}}}(t,h,l)}}if(a||(a=new Wt),o=a.get(t))return o;if(a.set(t,s),ja(t))return t.forEach(function(n){s.add(ae(n,e,i,n,t,a))}),s;if(La(t))return t.forEach(function(n,r){s.set(r,ae(n,e,i,r,t,a))}),s;u=c?u?qn:Un:u?ir:nr;var f=r?R:u(t);return n(f||t,function(n,r){f&&(n=t[r=n]),Kt(s,r,ae(n,e,i,r,t,a))}),s}function se(t,e,n){var i=n.length;if(null==t)return!i;for(t=_r(t);i--;){var r=n[i],o=t[r];if(o===R&&!(r in t)||!(0,e[r])(o))return!1}return!0}function le(t,e,n){if("function"!=typeof t)throw new Cr("Expected a function");return Yo(function(){t.apply(R,n)},e)}function ue(t,e,n,i){var r=-1,l=o,u=!0,c=t.length,h=[],d=e.length;if(!c)return h;n&&(e=s(e,k(n))),i?(l=a,u=!1):200<=e.length&&(l=C,u=!1,e=new Nt(e));t:for(;++r<c;){var f=t[r],p=null==n?f:n(f);if(f=i||0!==f?f:0,u&&p==p){for(var g=d;g--;)if(e[g]===p)continue t;h.push(f)}else l(e,p,i)||h.push(f)}return h}function ce(t,e){var n=!0;return Ao(t,function(t,i,r){return n=!!e(t,i,r)}),n}function he(t,e,n){for(var i=-1,r=t.length;++i<r;){var o=t[i],a=e(o);if(null!=a&&(s===R?a==a&&!$i(a):n(a,s)))var s=a,l=o}return l}function de(t,e){var n=[];return Ao(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n}function fe(t,e,n,i,r){var o=-1,a=t.length;for(n||(n=ti),r||(r=[]);++o<a;){var s=t[o];0<e&&n(s)?1<e?fe(s,e-1,n,i,r):l(r,s):i||(r[r.length]=s)}return r}function pe(t,e){return t&&Eo(t,e,nr)}function ge(t,e){return t&&Io(t,e,nr)}function me(t,e){return r(e,function(e){return Ni(t[e])})}function ve(t,e){for(var n=0,i=(e=sn(e,t)).length;null!=t&&n<i;)t=t[hi(e[n++])];return n&&n==i?t:R}function ye(t,e,n){return e=e(t),Oa(t)?e:l(e,n(t))}function be(t){if(null==t)t=t===R?"[object Undefined]":"[object Null]";else if(Vr&&Vr in _r(t)){var e=Or.call(t,Vr),n=t[Vr];try{t[Vr]=R;var i=!0}catch(t){}var r=Pr.call(t);i&&(e?t[Vr]=n:delete t[Vr]),t=r}else t=Pr.call(t);return t}function xe(t,e){return t>e}function we(t,e){return null!=t&&Or.call(t,e)}function _e(t,e){return null!=t&&e in _r(t)}function ke(t,e,n){for(var i=n?a:o,r=t[0].length,l=t.length,u=l,c=vr(l),h=1/0,d=[];u--;){var f=t[u];u&&e&&(f=s(f,k(e))),h=ao(f.length,h),c[u]=!n&&(e||120<=r&&120<=f.length)?new Nt(u&&f):R}f=t[0];var p=-1,g=c[0];t:for(;++p<r&&d.length<h;){var m=f[p],v=e?e(m):m;if(m=n||0!==m?m:0,g?!C(g,v):!i(d,v,n)){for(u=l;--u;){var y=c[u];if(y?!C(y,v):!i(t[u],v,n))continue t}g&&g.push(v),d.push(m)}}return d}function Se(e,n,i){return null==(n=null==(e=2>(n=sn(n,e)).length?e:ve(e,qe(n,0,-1)))?e:e[hi(bi(n))])?R:t(n,e,i)}function Ce(t){return zi(t)&&"[object Arguments]"==be(t)}function Me(t,e,n,i,r){if(t===e)e=!0;else if(null==t||null==e||!zi(t)&&!zi(e))e=t!=t&&e!=e;else t:{var o=Oa(t),a=Oa(e),s=o?"[object Array]":Bo(t),l=a?"[object Array]":Bo(e),u="[object Object]"==(s="[object Arguments]"==s?"[object Object]":s);if(a="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),(l=s==l)&&Ia(t)){if(!Ia(e)){e=!1;break t}o=!0,u=!1}if(l&&!u)r||(r=new Wt),e=o||Fa(t)?zn(t,e,n,i,Me,r):function(t,e,n,i,r,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!o(new Wr(t),new Wr(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return Li(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=A;case"[object Set]":if(s||(s=I),t.size!=e.size&&!(1&i))break;return(n=a.get(t))?n==e:(i|=2,a.set(t,e),e=zn(s(t),s(e),i,r,o,a),a.delete(t),e);case"[object Symbol]":if(Mo)return Mo.call(t)==Mo.call(e)}return!1}(t,e,s,n,i,Me,r);else{if(!(1&n)&&(o=u&&Or.call(t,"__wrapped__"),s=a&&Or.call(e,"__wrapped__"),o||s)){t=o?t.value():t,e=s?e.value():e,r||(r=new Wt),e=Me(t,e,n,i,r);break t}if(l)e:if(r||(r=new Wt),o=1&n,s=Un(t),a=s.length,l=Un(e).length,a==l||o){for(u=a;u--;){var c=s[u];if(!(o?c in e:Or.call(e,c))){e=!1;break e}}if((l=r.get(t))&&r.get(e))e=l==e;else{l=!0,r.set(t,e),r.set(e,t);for(var h=o;++u<a;){var d=t[c=s[u]],f=e[c];if(i)var p=o?i(f,d,c,e,t,r):i(d,f,c,t,e,r);if(p===R?d!==f&&!Me(d,f,n,i,r):!p){l=!1;break}h||(h="constructor"==c)}l&&!h&&(n=t.constructor)!=(i=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof n&&n instanceof n&&"function"==typeof i&&i instanceof i)&&(l=!1),r.delete(t),r.delete(e),e=l}}else e=!1;else e=!1}}return e}function Te(t,e,n,i){var r=n.length,o=r,a=!i;if(null==t)return!o;for(t=_r(t);r--;){var s=n[r];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<o;){var l=(s=n[r])[0],u=t[l],c=s[1];if(a&&s[2]){if(u===R&&!(l in t))return!1}else{if(s=new Wt,i)var h=i(u,c,l,t,e,s);if(h===R?!Me(c,u,3,i,s):!h)return!1}}return!0}function De(t){return!(!Hi(t)||Ir&&Ir in t)&&(Ni(t)?jr:dt).test(di(t))}function Ae(t){return"function"==typeof t?t:null==t?cr:"object"==typeof t?Oa(t)?Le(t[0],t[1]):Pe(t):pr(t)}function Oe(t){if(!oi(t))return ro(t);var e,n=[];for(e in _r(t))Or.call(t,e)&&"constructor"!=e&&n.push(e);return n}function Ee(t,e){return t<e}function Ie(t,e){var n=-1,i=Ri(t)?vr(t.length):[];return Ao(t,function(t,r,o){i[++n]=e(t,r,o)}),i}function Pe(t){var e=Qn(t);return 1==e.length&&e[0][2]?ai(e[0][0],e[0][1]):function(n){return n===t||Te(n,t,e)}}function Le(t,e){return ii(t)&&e==e&&!Hi(e)?ai(hi(t),e):function(n){var i=tr(n,t);return i===R&&i===e?er(n,t):Me(e,i,3)}}function Re(t,e,n,i,r){t!==e&&Eo(e,function(o,a){if(Hi(o)){r||(r=new Wt);var s=r,l="__proto__"==a?R:t[a],u="__proto__"==a?R:e[a];if(p=s.get(u))Jt(t,a,p);else{var c=(p=i?i(l,u,a+"",t,e,s):R)===R;if(c){var h=Oa(u),d=!h&&Ia(u),f=!h&&!d&&Fa(u),p=u;h||d||f?Oa(l)?p=l:ji(l)?p=gn(l):d?(c=!1,p=un(u,!0)):f?(c=!1,p=hn(u,!0)):p=[]:Ui(u)||Aa(u)?(p=l,Aa(l)?p=Ji(l):(!Hi(l)||n&&Ni(l))&&(p=Kn(u))):c=!1}c&&(s.set(u,p),Re(p,u,n,i,s),s.delete(u)),Jt(t,a,p)}}else(s=i?i("__proto__"==a?R:t[a],o,a+"",t,e,r):R)===R&&(s=o),Jt(t,a,s)},ir)}function je(t,e){var n=t.length;if(n)return ei(e+=0>e?n:0,n)?t[e]:R}function Fe(t,e,n){var i=-1;return e=s(e.length?e:[cr],k(Gn())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].c;return t}(t=Ie(t,function(t){return{a:s(e,function(e){return e(t)}),b:++i,c:t}}),function(t,e){var i;t:{i=-1;for(var r=t.a,o=e.a,a=r.length,s=n.length;++i<a;){var l=dn(r[i],o[i]);if(l){i=i>=s?l:l*("desc"==n[i]?-1:1);break t}}i=t.b-e.b}return i})}function Ne(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var a=e[i],s=ve(t,a);n(s,a)&&Ue(o,sn(a,t),s)}return o}function We(t,e,n,i){var r=i?g:p,o=-1,a=e.length,l=t;for(t===e&&(e=gn(e)),n&&(l=s(t,k(n)));++o<a;){var u=0,c=e[o];for(c=n?n(c):c;-1<(u=r(l,c,u,i));)l!==t&&Ur.call(l,u,1),Ur.call(t,u,1)}return t}function Be(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;ei(r)?Ur.call(t,r,1):Ke(t,r)}}}function He(t,e){return t+Kr(uo()*(e-t+1))}function ze(t,e){var n="";if(!t||1>e||9007199254740991<e)return n;do{e%2&&(n+=t),(e=Kr(e/2))&&(t+=t)}while(e);return n}function Ye(t,e){return Uo(si(t,e,cr),t+"")}function Ue(t,e,n,i){if(!Hi(t))return t;for(var r=-1,o=(e=sn(e,t)).length,a=o-1,s=t;null!=s&&++r<o;){var l=hi(e[r]),u=n;if(r!=a){var c=s[l];(u=i?i(c,l,s):R)===R&&(u=Hi(c)?c:ei(e[r+1])?[]:{})}Kt(s,l,u),s=s[l]}return t}function qe(t,e,n){var i=-1,r=t.length;for(0>e&&(e=-e>r?0:r+e),0>(n=n>r?r:n)&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0,n=vr(r);++i<r;)n[i]=t[i+e];return n}function $e(t,e){var n;return Ao(t,function(t,i,r){return!(n=e(t,i,r))}),!!n}function Ve(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&2147483647>=r){for(;i<r;){var o=i+r>>>1,a=t[o];null!==a&&!$i(a)&&(n?a<=e:a<e)?i=o+1:r=o}return r}return Ge(t,e,cr,n)}function Ge(t,e,n,i){e=n(e);for(var r=0,o=null==t?0:t.length,a=e!=e,s=null===e,l=$i(e),u=e===R;r<o;){var c=Kr((r+o)/2),h=n(t[c]),d=h!==R,f=null===h,p=h==h,g=$i(h);(a?i||p:u?p&&(i||d):s?p&&d&&(i||!f):l?p&&d&&!f&&(i||!g):!f&&!g&&(i?h<=e:h<e))?r=c+1:o=c}return ao(o,4294967294)}function Xe(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n],s=e?e(a):a;if(!n||!Li(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function Qe(t){return"number"==typeof t?t:$i(t)?F:+t}function Ze(t){if("string"==typeof t)return t;if(Oa(t))return s(t,Ze)+"";if($i(t))return To?To.call(t):"";var e=t+"";return"0"==e&&1/t==-j?"-0":e}function Je(t,e,n){var i=-1,r=o,s=t.length,l=!0,u=[],c=u;if(n)l=!1,r=a;else if(200<=s){if(r=e?null:jo(t))return I(r);l=!1,r=C,c=new Nt}else c=e?[]:u;t:for(;++i<s;){var h=t[i],d=e?e(h):h;if(h=n||0!==h?h:0,l&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue t;e&&c.push(d),u.push(h)}else r(c,d,n)||(c!==u&&c.push(d),u.push(h))}return u}function Ke(t,e){return null==(t=2>(e=sn(e,t)).length?t:ve(t,qe(e,0,-1)))||delete t[hi(bi(e))]}function tn(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?qe(t,i?0:o,i?o+1:r):qe(t,i?o+1:0,i?r:o)}function en(t,e){var n=t;return n instanceof It&&(n=n.value()),u(e,function(t,e){return e.func.apply(e.thisArg,l([t],e.args))},n)}function nn(t,e,n){var i=t.length;if(2>i)return i?Je(t[0]):[];for(var r=-1,o=vr(i);++r<i;)for(var a=t[r],s=-1;++s<i;)s!=r&&(o[r]=ue(o[r]||a,t[s],e,n));return Je(fe(o,1),e,n)}function rn(t,e,n){for(var i=-1,r=t.length,o=e.length,a={};++i<r;)n(a,t[i],i<o?e[i]:R);return a}function on(t){return ji(t)?t:[]}function an(t){return"function"==typeof t?t:cr}function sn(t,e){return Oa(t)?t:ii(t,e)?[t]:qo(Ki(t))}function ln(t,e,n){var i=t.length;return n=n===R?i:n,!e&&n>=i?t:qe(t,e,n)}function un(t,e){if(e)return t.slice();var n=t.length;return n=Br?Br(n):new t.constructor(n),t.copy(n),n}function cn(t){var e=new t.constructor(t.byteLength);return new Wr(e).set(new Wr(t)),e}function hn(t,e){return new t.constructor(e?cn(t.buffer):t.buffer,t.byteOffset,t.length)}function dn(t,e){if(t!==e){var n=t!==R,i=null===t,r=t==t,o=$i(t),a=e!==R,s=null===e,l=e==e,u=$i(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&t<e||u&&n&&r&&!i&&!o||s&&n&&r||!a&&r||!l)return-1}return 0}function fn(t,e,n,i){var r=-1,o=t.length,a=n.length,s=-1,l=e.length,u=oo(o-a,0),c=vr(l+u);for(i=!i;++s<l;)c[s]=e[s];for(;++r<a;)(i||r<o)&&(c[n[r]]=t[r]);for(;u--;)c[s++]=t[r++];return c}function pn(t,e,n,i){var r=-1,o=t.length,a=-1,s=n.length,l=-1,u=e.length,c=oo(o-s,0),h=vr(c+u);for(i=!i;++r<c;)h[r]=t[r];for(c=r;++l<u;)h[c+l]=e[l];for(;++a<s;)(i||r<o)&&(h[c+n[a]]=t[r++]);return h}function gn(t,e){var n=-1,i=t.length;for(e||(e=vr(i));++n<i;)e[n]=t[n];return e}function mn(t,e,n,i){var r=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=i?i(n[s],t[s],s,n,t):R;l===R&&(l=t[s]),r?ie(n,s,l):Kt(n,s,l)}return n}function vn(t,n){return function(i,r){var o=Oa(i)?e:ee,a=n?n():{};return o(i,t,Gn(r,2),a)}}function yn(t){return Ye(function(e,n){var i=-1,r=n.length,o=1<r?n[r-1]:R,a=2<r?n[2]:R;for(o=3<t.length&&"function"==typeof o?(r--,o):R,a&&ni(n[0],n[1],a)&&(o=3>r?R:o,r=1),e=_r(e);++i<r;)(a=n[i])&&t(e,a,i,o);return e})}function bn(t,e){return function(n,i){if(null==n)return n;if(!Ri(n))return t(n,i);for(var r=n.length,o=e?r:-1,a=_r(n);(e?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function xn(t){return function(e,n,i){for(var r=-1,o=_r(e),a=(i=i(e)).length;a--;){var s=i[t?a:++r];if(!1===n(o[s],s,o))break}return e}}function wn(t){return function(e){e=Ki(e);var n=St.test(e)?L(e):R,i=n?n[0]:e.charAt(0);return e=n?ln(n,1).join(""):e.slice(1),i[t]()+e}}function _n(t){return function(e){return u(lr(sr(e).replace(xt,"")),t,"")}}function kn(t){return function(){switch((e=arguments).length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var e,n=Do(t.prototype);return Hi(e=t.apply(n,e))?e:n}}function Sn(e,n,i){var r=kn(e);return function o(){for(var a=arguments.length,s=vr(a),l=a,u=Vn(o);l--;)s[l]=arguments[l];return(a-=(l=3>a&&s[0]!==u&&s[a-1]!==u?[]:E(s,u)).length)<i?Rn(e,n,Tn,o.placeholder,R,s,l,R,R,i-a):t(this&&this!==Lt&&this instanceof o?r:e,this,s)}}function Cn(t){return function(e,n,i){var r=_r(e);if(!Ri(e)){var o=Gn(n,3);e=nr(e),n=function(t){return o(r[t],t,r)}}return-1<(n=t(e,n,i))?r[o?e[n]:n]:R}}function Mn(t){return Yn(function(e){var n=e.length,i=n,r=At.prototype.thru;for(t&&e.reverse();i--;){if("function"!=typeof(a=e[i]))throw new Cr("Expected a function");if(r&&!o&&"wrapper"==$n(a))var o=new At([],!0)}for(i=o?i:n;++i<n;){var a,s="wrapper"==(r=$n(a=e[i]))?Fo(a):R;o=s&&ri(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?o[$n(s[0])].apply(o,s[3]):1==a.length&&ri(a)?o[r]():o.thru(a)}return function(){var t=(r=arguments)[0];if(o&&1==r.length&&Oa(t))return o.plant(t).value();for(var i=0,r=n?e[i].apply(this,r):t;++i<n;)r=e[i].call(this,r);return r}})}function Tn(t,e,n,i,r,o,a,s,l,u){var c=128&e,h=1&e,d=2&e,f=24&e,p=512&e,g=d?R:kn(t);return function m(){for(var v=arguments.length,y=vr(v),b=v;b--;)y[b]=arguments[b];if(f){var x,w=Vn(m);for(b=y.length,x=0;b--;)y[b]===w&&++x}if(i&&(y=fn(y,i,r,f)),o&&(y=pn(y,o,a,f)),v-=x,f&&v<u)return w=E(y,w),Rn(t,e,Tn,m.placeholder,n,y,w,s,l,u-v);if(w=h?n:this,b=d?w[t]:t,v=y.length,s)for(var _=ao(s.length,x=y.length),k=gn(y);_--;){var S=s[_];y[_]=ei(S,x)?k[S]:R}else p&&1<v&&y.reverse();return c&&l<v&&(y.length=l),this&&this!==Lt&&this instanceof m&&(b=g||kn(b)),b.apply(w,y)}}function Dn(t,e){return function(n,i){return function(t,e,n){var i={};return pe(t,function(t,r,o){e(i,n(t),r,o)}),i}(n,t,e(i))}}function An(t,e){return function(n,i){var r;if(n===R&&i===R)return e;if(n!==R&&(r=n),i!==R){if(r===R)return i;"string"==typeof n||"string"==typeof i?(n=Ze(n),i=Ze(i)):(n=Qe(n),i=Qe(i)),r=t(n,i)}return r}}function On(e){return Yn(function(n){return n=s(n,k(Gn())),Ye(function(i){var r=this;return e(n,function(e){return t(e,r,i)})})})}function En(t,e){var n=(e=e===R?" ":Ze(e)).length;return 2>n?n?ze(e,t):e:(n=ze(e,Jr(t/P(e))),St.test(e)?ln(L(n),0,t).join(""):n.slice(0,t))}function In(e,n,i,r){var o=1&n,a=kn(e);return function n(){for(var s=-1,l=arguments.length,u=-1,c=r.length,h=vr(c+l),d=this&&this!==Lt&&this instanceof n?a:e;++u<c;)h[u]=r[u];for(;l--;)h[u++]=arguments[++s];return t(d,o?i:this,h)}}function Pn(t){return function(e,n,i){i&&"number"!=typeof i&&ni(e,n,i)&&(n=i=R),e=Gi(e),n===R?(n=e,e=0):n=Gi(n),i=i===R?e<n?1:-1:Gi(i);var r=-1;n=oo(Jr((n-e)/(i||1)),0);for(var o=vr(n);n--;)o[t?n:++r]=e,e+=i;return o}}function Ln(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Zi(e),n=Zi(n)),t(e,n)}}function Rn(t,e,n,i,r,o,a,s,l,u){var c=8&e,h=c?a:R;a=c?R:a;var d=c?o:R;return o=c?R:o,4&(e=(e|(c?32:64))&~(c?64:32))||(e&=-4),n=n.apply(R,r=[t,e,r,d,h,o,a,s,l,u]),ri(t)&&zo(n,r),n.placeholder=i,li(n,t,e)}function jn(t){var e=wr[t];return function(t,n){if(t=Zi(t),n=null==n?0:ao(Xi(n),292)){var i=(Ki(t)+"e").split("e");return+((i=(Ki(i=e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}function Fn(t){return function(e){var n=Bo(e);return"[object Map]"==n?A(e):"[object Set]"==n?function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}(e):function(t,e){return s(e,function(e){return[e,t[e]]})}(e,t(e))}}function Nn(t,e,n,i,r,o,a,s){var l=2&e;if(!l&&"function"!=typeof t)throw new Cr("Expected a function");var u=i?i.length:0;if(u||(e&=-97,i=r=R),a=a===R?a:oo(Xi(a),0),s=s===R?s:Xi(s),u-=r?r.length:0,64&e){var c=i,h=r;i=r=R}var d=l?R:Fo(t);return o=[t,e,n,i,r,c,h,o,a,s],d&&(e=(n=o[1])|(t=d[1]),i=128==t&&8==n||128==t&&256==n&&o[7].length<=d[8]||384==t&&d[7].length<=d[8]&&8==n,131>e||i)&&(1&t&&(o[2]=d[2],e|=1&n?0:4),(n=d[3])&&(o[3]=(i=o[3])?fn(i,n,d[4]):n,o[4]=i?E(o[3],"__lodash_placeholder__"):d[4]),(n=d[5])&&(o[5]=(i=o[5])?pn(i,n,d[6]):n,o[6]=i?E(o[5],"__lodash_placeholder__"):d[6]),(n=d[7])&&(o[7]=n),128&t&&(o[8]=null==o[8]?d[8]:ao(o[8],d[8])),null==o[9]&&(o[9]=d[9]),o[0]=d[0],o[1]=e),t=o[0],e=o[1],n=o[2],i=o[3],r=o[4],!(s=o[9]=o[9]===R?l?0:t.length:oo(o[9]-u,0))&&24&e&&(e&=-25),li((d?Po:zo)(e&&1!=e?8==e||16==e?Sn(t,e,s):32!=e&&33!=e||r.length?Tn.apply(R,o):In(t,e,n,i):function(t,e,n){var i=1&e,r=kn(t);return function e(){return(this&&this!==Lt&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,n),o),t,e)}function Wn(t,e,n,i){return t===R||Li(t,Tr[n])&&!Or.call(i,n)?e:t}function Bn(t,e,n,i,r,o){return Hi(t)&&Hi(e)&&(o.set(e,t),Re(t,e,R,Bn,o),o.delete(e)),t}function Hn(t){return Ui(t)?R:t}function zn(t,e,n,i,r,o){var a=1&n,s=t.length;if(s!=(l=e.length)&&!(a&&l>s))return!1;if((l=o.get(t))&&o.get(e))return l==e;var l=-1,u=!0,c=2&n?new Nt:R;for(o.set(t,e),o.set(e,t);++l<s;){var d=t[l],f=e[l];if(i)var p=a?i(f,d,l,e,t,o):i(d,f,l,t,e,o);if(p!==R){if(p)continue;u=!1;break}if(c){if(!h(e,function(t,e){if(!C(c,e)&&(d===t||r(d,t,n,i,o)))return c.push(e)})){u=!1;break}}else if(d!==f&&!r(d,f,n,i,o)){u=!1;break}}return o.delete(t),o.delete(e),u}function Yn(t){return Uo(si(t,R,vi),t+"")}function Un(t){return ye(t,nr,No)}function qn(t){return ye(t,ir,Wo)}function $n(t){for(var e=t.name+"",n=bo[e],i=Or.call(bo,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function Vn(t){return(Or.call(bt,"placeholder")?bt:t).placeholder}function Gn(){var t=(t=bt.iteratee||hr)===hr?Ae:t;return arguments.length?t(arguments[0],arguments[1]):t}function Xn(t,e){var n=t.__data__,i=typeof e;return("string"==i||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function Qn(t){for(var e=nr(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,r==r&&!Hi(r)]}return e}function Zn(t,e){var n=null==t?R:t[e];return De(n)?n:R}function Jn(t,e,n){for(var i=-1,r=(e=sn(e,t)).length,o=!1;++i<r;){var a=hi(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Bi(r)&&ei(a,r)&&(Oa(t)||Aa(t))}function Kn(t){return"function"!=typeof t.constructor||oi(t)?{}:Do(Hr(t))}function ti(t){return Oa(t)||Aa(t)||!!(qr&&t&&t[qr])}function ei(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&pt.test(t))&&-1<t&&0==t%1&&t<e}function ni(t,e,n){if(!Hi(n))return!1;var i=typeof e;return!!("number"==i?Ri(n)&&ei(e,n.length):"string"==i&&e in n)&&Li(n[e],t)}function ii(t,e){if(Oa(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!$i(t))||Q.test(t)||!X.test(t)||null!=e&&t in _r(e)}function ri(t){var e=$n(t),n=bt[e];return"function"==typeof n&&e in It.prototype&&(t===n||!!(e=Fo(n))&&t===e[0])}function oi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tr)}function ai(t,e){return function(n){return null!=n&&n[t]===e&&(e!==R||t in _r(n))}}function si(e,n,i){return n=oo(n===R?e.length-1:n,0),function(){for(var r=arguments,o=-1,a=oo(r.length-n,0),s=vr(a);++o<a;)s[o]=r[n+o];for(o=-1,a=vr(n+1);++o<n;)a[o]=r[o];return a[n]=i(s),t(e,this,a)}}function li(t,e,n){var i=e+"";e=Uo;var r,o=fi;return(o=(n=o(r=(r=i.match(rt))?r[1].split(ot):[],n)).length)&&(n[r=o-1]=(1<o?"& ":"")+n[r],n=n.join(2<o?", ":" "),i=i.replace(it,"{\n/* [wrapped with "+n+"] */\n")),e(t,i)}function ui(t){var e=0,n=0;return function(){var i=so(),r=16-(i-n);if(n=i,0<r){if(800<=++e)return arguments[0]}else e=0;return t.apply(R,arguments)}}function ci(t,e){var n=-1,i=(r=t.length)-1;for(e=e===R?r:e;++n<e;){var r,o=t[r=He(n,i)];t[r]=t[n],t[n]=o}return t.length=e,t}function hi(t){if("string"==typeof t||$i(t))return t;var e=t+"";return"0"==e&&1/t==-j?"-0":e}function di(t){if(null!=t){try{return Ar.call(t)}catch(t){}return t+""}return""}function fi(t,e){return n(N,function(n){var i="_."+n[0];e&n[1]&&!o(t,i)&&t.push(i)}),t.sort()}function pi(t){if(t instanceof It)return t.clone();var e=new At(t.__wrapped__,t.__chain__);return e.__actions__=gn(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function gi(t,e,n){var i=null==t?0:t.length;return i?(0>(n=null==n?0:Xi(n))&&(n=oo(i+n,0)),f(t,Gn(e,3),n)):-1}function mi(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return n!==R&&(r=Xi(n),r=0>n?oo(i+r,0):ao(r,i-1)),f(t,Gn(e,3),r,!0)}function vi(t){return null!=t&&t.length?fe(t,1):[]}function yi(t){return t&&t.length?t[0]:R}function bi(t){var e=null==t?0:t.length;return e?t[e-1]:R}function xi(t,e){return t&&t.length&&e&&e.length?We(t,e):t}function wi(t){return null==t?t:co.call(t)}function _i(t){if(!t||!t.length)return[];var e=0;return t=r(t,function(t){if(ji(t))return e=oo(t.length,e),!0}),_(e,function(e){return s(t,y(e))})}function ki(e,n){if(!e||!e.length)return[];var i=_i(e);return null==n?i:s(i,function(e){return t(n,R,e)})}function Si(t){return(t=bt(t)).__chain__=!0,t}function Ci(t,e){return e(t)}function Mi(t,e){return(Oa(t)?n:Ao)(t,Gn(e,3))}function Ti(t,e){return(Oa(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:Oo)(t,Gn(e,3))}function Di(t,e){return(Oa(t)?s:Ie)(t,Gn(e,3))}function Ai(t,e,n){return e=n?R:e,Nn(t,128,R,R,R,R,e=t&&null==e?t.length:e)}function Oi(t,e){var n;if("function"!=typeof e)throw new Cr("Expected a function");return t=Xi(t),function(){return 0<--t&&(n=e.apply(this,arguments)),1>=t&&(e=R),n}}function Ei(t,e,n){function i(e){var n=l,i=u;return l=u=R,p=e,h=t.apply(i,n)}function r(t){var n=t-f;return t-=p,f===R||n>=e||0>n||m&&t>=c}function o(){var t=ya();if(r(t))return a(t);var n,i=Yo;n=t-p,t=e-(t-f),n=m?ao(t,c-n):t,d=i(o,n)}function a(t){return d=R,v&&l?i(t):(l=u=R,h)}function s(){var t=ya(),n=r(t);if(l=arguments,u=this,f=t,n){if(d===R)return p=t=f,d=Yo(o,e),g?i(t):h;if(m)return d=Yo(o,e),i(f)}return d===R&&(d=Yo(o,e)),h}var l,u,c,h,d,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof t)throw new Cr("Expected a function");return e=Zi(e)||0,Hi(n)&&(g=!!n.leading,c=(m="maxWait"in n)?oo(Zi(n.maxWait)||0,e):c,v="trailing"in n?!!n.trailing:v),s.cancel=function(){d!==R&&Ro(d),p=0,l=f=u=d=R},s.flush=function(){return d===R?h:a(ya())},s}function Ii(t,e){function n(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;return o.has(r)?o.get(r):(i=t.apply(this,i),n.cache=o.set(r,i)||o,i)}if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Cr("Expected a function");return n.cache=new(Ii.Cache||jt),n}function Pi(t){if("function"!=typeof t)throw new Cr("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Li(t,e){return t===e||t!=t&&e!=e}function Ri(t){return null!=t&&Bi(t.length)&&!Ni(t)}function ji(t){return zi(t)&&Ri(t)}function Fi(t){if(!zi(t))return!1;var e=be(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ui(t)}function Ni(t){return!!Hi(t)&&("[object Function]"==(t=be(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function Wi(t){return"number"==typeof t&&t==Xi(t)}function Bi(t){return"number"==typeof t&&-1<t&&0==t%1&&9007199254740991>=t}function Hi(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function zi(t){return null!=t&&"object"==typeof t}function Yi(t){return"number"==typeof t||zi(t)&&"[object Number]"==be(t)}function Ui(t){return!(!zi(t)||"[object Object]"!=be(t))&&(null===(t=Hr(t))||"function"==typeof(t=Or.call(t,"constructor")&&t.constructor)&&t instanceof t&&Ar.call(t)==Lr)}function qi(t){return"string"==typeof t||!Oa(t)&&zi(t)&&"[object String]"==be(t)}function $i(t){return"symbol"==typeof t||zi(t)&&"[object Symbol]"==be(t)}function Vi(t){if(!t)return[];if(Ri(t))return qi(t)?L(t):gn(t);if($r&&t[$r]){t=t[$r]();for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}return("[object Map]"==(e=Bo(t))?A:"[object Set]"==e?I:or)(t)}function Gi(t){return t?(t=Zi(t))===j||t===-j?1.7976931348623157e308*(0>t?-1:1):t==t?t:0:0===t?t:0}function Xi(t){var e=(t=Gi(t))%1;return t==t?e?t-e:t:0}function Qi(t){return t?oe(Xi(t),0,4294967295):0}function Zi(t){if("number"==typeof t)return t;if($i(t))return F;if(Hi(t)&&(t=Hi(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace(tt,"");var e=ht.test(t);return e||ft.test(t)?Et(t.slice(2),e?2:8):ct.test(t)?F:+t}function Ji(t){return mn(t,ir(t))}function Ki(t){return null==t?"":Ze(t)}function tr(t,e,n){return(t=null==t?R:ve(t,e))===R?n:t}function er(t,e){return null!=t&&Jn(t,e,_e)}function nr(t){return Ri(t)?$t(t):Oe(t)}function ir(t){if(Ri(t))t=$t(t,!0);else if(Hi(t)){var e,n=oi(t),i=[];for(e in t)("constructor"!=e||!n&&Or.call(t,e))&&i.push(e);t=i}else{if(e=[],null!=t)for(n in _r(t))e.push(n);t=e}return t}function rr(t,e){if(null==t)return{};var n=s(qn(t),function(t){return[t]});return e=Gn(e),Ne(t,n,function(t,n){return e(t,n[0])})}function or(t){return null==t?[]:S(t,nr(t))}function ar(t){return us(Ki(t).toLowerCase())}function sr(t){return(t=Ki(t))&&t.replace(gt,Vt).replace(wt,"")}function lr(t,e,n){return t=Ki(t),(e=n?R:e)===R?Ct.test(t)?t.match(kt)||[]:t.match(at)||[]:t.match(e)||[]}function ur(t){return function(){return t}}function cr(t){return t}function hr(t){return Ae("function"==typeof t?t:ae(t,1))}function dr(t,e,i){var r=nr(e),o=me(e,r);null!=i||Hi(e)&&(o.length||!r.length)||(i=e,e=t,t=this,o=me(e,nr(e)));var a=!(Hi(i)&&"chain"in i&&!i.chain),s=Ni(t);return n(o,function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=gn(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,l([this.value()],arguments))})}),t}function fr(){}function pr(t){return ii(t)?y(hi(t)):function(t){return function(e){return ve(e,t)}}(t)}function gr(){return[]}function mr(){return!1}var vr=(yt=null==yt?Lt:Qt.defaults(Lt.Object(),yt,Qt.pick(Lt,Mt))).Array,yr=yt.Date,br=yt.Error,xr=yt.Function,wr=yt.Math,_r=yt.Object,kr=yt.RegExp,Sr=yt.String,Cr=yt.TypeError,Mr=vr.prototype,Tr=_r.prototype,Dr=yt["__core-js_shared__"],Ar=xr.prototype.toString,Or=Tr.hasOwnProperty,Er=0,Ir=function(){var t=/[^.]+$/.exec(Dr&&Dr.keys&&Dr.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Pr=Tr.toString,Lr=Ar.call(_r),Rr=Lt._,jr=kr("^"+Ar.call(Or).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fr=Ft?yt.Buffer:R,Nr=yt.Symbol,Wr=yt.Uint8Array,Br=Fr?Fr.g:R,Hr=O(_r.getPrototypeOf,_r),zr=_r.create,Yr=Tr.propertyIsEnumerable,Ur=Mr.splice,qr=Nr?Nr.isConcatSpreadable:R,$r=Nr?Nr.iterator:R,Vr=Nr?Nr.toStringTag:R,Gr=function(){try{var t=Zn(_r,"defineProperty");return t({},"",{}),t}catch(t){}}(),Xr=yt.clearTimeout!==Lt.clearTimeout&&yt.clearTimeout,Qr=yr&&yr.now!==Lt.Date.now&&yr.now,Zr=yt.setTimeout!==Lt.setTimeout&&yt.setTimeout,Jr=wr.ceil,Kr=wr.floor,to=_r.getOwnPropertySymbols,eo=Fr?Fr.isBuffer:R,no=yt.isFinite,io=Mr.join,ro=O(_r.keys,_r),oo=wr.max,ao=wr.min,so=yr.now,lo=yt.parseInt,uo=wr.random,co=Mr.reverse,ho=Zn(yt,"DataView"),fo=Zn(yt,"Map"),po=Zn(yt,"Promise"),go=Zn(yt,"Set"),mo=Zn(yt,"WeakMap"),vo=Zn(_r,"create"),yo=mo&&new mo,bo={},xo=di(ho),wo=di(fo),_o=di(po),ko=di(go),So=di(mo),Co=Nr?Nr.prototype:R,Mo=Co?Co.valueOf:R,To=Co?Co.toString:R,Do=function(){function t(){}return function(e){return Hi(e)?zr?zr(e):(t.prototype=e,e=new t,t.prototype=R,e):{}}}();bt.templateSettings={escape:$,evaluate:V,interpolate:G,variable:"",imports:{_:bt}},(bt.prototype=_t.prototype).constructor=bt,(At.prototype=Do(_t.prototype)).constructor=At,(It.prototype=Do(_t.prototype)).constructor=It,Pt.prototype.clear=function(){this.__data__=vo?vo(null):{},this.size=0},Pt.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},Pt.prototype.get=function(t){var e=this.__data__;return vo?"__lodash_hash_undefined__"===(t=e[t])?R:t:Or.call(e,t)?e[t]:R},Pt.prototype.has=function(t){var e=this.__data__;return vo?e[t]!==R:Or.call(e,t)},Pt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=vo&&e===R?"__lodash_hash_undefined__":e,this},Rt.prototype.clear=function(){this.__data__=[],this.size=0},Rt.prototype.delete=function(t){var e=this.__data__;return!(0>(t=te(e,t))||(t==e.length-1?e.pop():Ur.call(e,t,1),--this.size,0))},Rt.prototype.get=function(t){var e=this.__data__;return 0>(t=te(e,t))?R:e[t][1]},Rt.prototype.has=function(t){return-1<te(this.__data__,t)},Rt.prototype.set=function(t,e){var n=this.__data__,i=te(n,t);return 0>i?(++this.size,n.push([t,e])):n[i][1]=e,this},jt.prototype.clear=function(){this.size=0,this.__data__={hash:new Pt,map:new(fo||Rt),string:new Pt}},jt.prototype.delete=function(t){return t=Xn(this,t).delete(t),this.size-=t?1:0,t},jt.prototype.get=function(t){return Xn(this,t).get(t)},jt.prototype.has=function(t){return Xn(this,t).has(t)},jt.prototype.set=function(t,e){var n=Xn(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Nt.prototype.add=Nt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nt.prototype.has=function(t){return this.__data__.has(t)},Wt.prototype.clear=function(){this.__data__=new Rt,this.size=0},Wt.prototype.delete=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t},Wt.prototype.get=function(t){return this.__data__.get(t)},Wt.prototype.has=function(t){return this.__data__.has(t)},Wt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Rt){var i=n.__data__;if(!fo||199>i.length)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new jt(i)}return n.set(t,e),this.size=n.size,this};var Ao=bn(pe),Oo=bn(ge,!0),Eo=xn(),Io=xn(!0),Po=yo?function(t,e){return yo.set(t,e),t}:cr,Lo=Gr?function(t,e){return Gr(t,"toString",{configurable:!0,enumerable:!1,value:ur(e),writable:!0})}:cr,Ro=Xr||function(t){return Lt.clearTimeout(t)},jo=go&&1/I(new go([,-0]))[1]==j?function(t){return new go(t)}:fr,Fo=yo?function(t){return yo.get(t)}:fr,No=to?function(t){return null==t?[]:(t=_r(t),r(to(t),function(e){return Yr.call(t,e)}))}:gr,Wo=to?function(t){for(var e=[];t;)l(e,No(t)),t=Hr(t);return e}:gr,Bo=be;(ho&&"[object DataView]"!=Bo(new ho(new ArrayBuffer(1)))||fo&&"[object Map]"!=Bo(new fo)||po&&"[object Promise]"!=Bo(po.resolve())||go&&"[object Set]"!=Bo(new go)||mo&&"[object WeakMap]"!=Bo(new mo))&&(Bo=function(t){var e=be(t);if(t=(t="[object Object]"==e?t.constructor:R)?di(t):"")switch(t){case xo:return"[object DataView]";case wo:return"[object Map]";case _o:return"[object Promise]";case ko:return"[object Set]";case So:return"[object WeakMap]"}return e});var Ho=Dr?Ni:mr,zo=ui(Po),Yo=Zr||function(t,e){return Lt.setTimeout(t,e)},Uo=ui(Lo),qo=function(t){var e=(t=Ii(t,function(t){return 500===e.size&&e.clear(),t})).cache;return t}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Z,function(t,n,i,r){e.push(i?r.replace(st,"$1"):n||t)}),e}),$o=Ye(function(t,e){return ji(t)?ue(t,fe(e,1,ji,!0)):[]}),Vo=Ye(function(t,e){var n=bi(e);return ji(n)&&(n=R),ji(t)?ue(t,fe(e,1,ji,!0),Gn(n,2)):[]}),Go=Ye(function(t,e){var n=bi(e);return ji(n)&&(n=R),ji(t)?ue(t,fe(e,1,ji,!0),R,n):[]}),Xo=Ye(function(t){var e=s(t,on);return e.length&&e[0]===t[0]?ke(e):[]}),Qo=Ye(function(t){var e=bi(t),n=s(t,on);return e===bi(n)?e=R:n.pop(),n.length&&n[0]===t[0]?ke(n,Gn(e,2)):[]}),Zo=Ye(function(t){var e=bi(t),n=s(t,on);return(e="function"==typeof e?e:R)&&n.pop(),n.length&&n[0]===t[0]?ke(n,R,e):[]}),Jo=Ye(xi),Ko=Yn(function(t,e){var n=null==t?0:t.length,i=re(t,e);return Be(t,s(e,function(t){return ei(t,n)?+t:t}).sort(dn)),i}),ta=Ye(function(t){return Je(fe(t,1,ji,!0))}),ea=Ye(function(t){var e=bi(t);return ji(e)&&(e=R),Je(fe(t,1,ji,!0),Gn(e,2))}),na=Ye(function(t){var e="function"==typeof(e=bi(t))?e:R;return Je(fe(t,1,ji,!0),R,e)}),ia=Ye(function(t,e){return ji(t)?ue(t,e):[]}),ra=Ye(function(t){return nn(r(t,ji))}),oa=Ye(function(t){var e=bi(t);return ji(e)&&(e=R),nn(r(t,ji),Gn(e,2))}),aa=Ye(function(t){var e="function"==typeof(e=bi(t))?e:R;return nn(r(t,ji),R,e)}),sa=Ye(_i),la=Ye(function(t){var e;return ki(t,e="function"==typeof(e=1<(e=t.length)?t[e-1]:R)?(t.pop(),e):R)}),ua=Yn(function(t){function e(e){return re(e,t)}var n=t.length,i=n?t[0]:0,r=this.__wrapped__;return!(1<n||this.__actions__.length)&&r instanceof It&&ei(i)?((r=r.slice(i,+i+(n?1:0))).__actions__.push({func:Ci,args:[e],thisArg:R}),new At(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(R),t})):this.thru(e)}),ca=vn(function(t,e,n){Or.call(t,n)?++t[n]:ie(t,n,1)}),ha=Cn(gi),da=Cn(mi),fa=vn(function(t,e,n){Or.call(t,n)?t[n].push(e):ie(t,n,[e])}),pa=Ye(function(e,n,i){var r=-1,o="function"==typeof n,a=Ri(e)?vr(e.length):[];return Ao(e,function(e){a[++r]=o?t(n,e,i):Se(e,n,i)}),a}),ga=vn(function(t,e,n){ie(t,n,e)}),ma=vn(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),va=Ye(function(t,e){if(null==t)return[];var n=e.length;return 1<n&&ni(t,e[0],e[1])?e=[]:2<n&&ni(e[0],e[1],e[2])&&(e=[e[0]]),Fe(t,fe(e,1),[])}),ya=Qr||function(){return Lt.Date.now()},ba=Ye(function(t,e,n){var i=1;if(n.length){var r=E(n,Vn(ba));i|=32}return Nn(t,i,e,n,r)}),xa=Ye(function(t,e,n){var i=3;if(n.length){var r=E(n,Vn(xa));i|=32}return Nn(e,i,t,n,r)}),wa=Ye(function(t,e){return le(t,1,e)}),_a=Ye(function(t,e,n){return le(t,Zi(e)||0,n)});Ii.Cache=jt;var ka=Ye(function(e,n){var i=(n=1==n.length&&Oa(n[0])?s(n[0],k(Gn())):s(fe(n,1),k(Gn()))).length;return Ye(function(r){for(var o=-1,a=ao(r.length,i);++o<a;)r[o]=n[o].call(this,r[o]);return t(e,this,r)})}),Sa=Ye(function(t,e){return Nn(t,32,R,e,E(e,Vn(Sa)))}),Ca=Ye(function(t,e){return Nn(t,64,R,e,E(e,Vn(Ca)))}),Ma=Yn(function(t,e){return Nn(t,256,R,R,R,e)}),Ta=Ln(xe),Da=Ln(function(t,e){return t>=e}),Aa=Ce(function(){return arguments}())?Ce:function(t){return zi(t)&&Or.call(t,"callee")&&!Yr.call(t,"callee")},Oa=vr.isArray,Ea=Bt?k(Bt):function(t){return zi(t)&&"[object ArrayBuffer]"==be(t)},Ia=eo||mr,Pa=Ht?k(Ht):function(t){return zi(t)&&"[object Date]"==be(t)},La=zt?k(zt):function(t){return zi(t)&&"[object Map]"==Bo(t)},Ra=Yt?k(Yt):function(t){return zi(t)&&"[object RegExp]"==be(t)},ja=Ut?k(Ut):function(t){return zi(t)&&"[object Set]"==Bo(t)},Fa=qt?k(qt):function(t){return zi(t)&&Bi(t.length)&&!!Tt[be(t)]},Na=Ln(Ee),Wa=Ln(function(t,e){return t<=e}),Ba=yn(function(t,e){if(oi(e)||Ri(e))mn(e,nr(e),t);else for(var n in e)Or.call(e,n)&&Kt(t,n,e[n])}),Ha=yn(function(t,e){mn(e,ir(e),t)}),za=yn(function(t,e,n,i){mn(e,ir(e),t,i)}),Ya=yn(function(t,e,n,i){mn(e,nr(e),t,i)}),Ua=Yn(re),qa=Ye(function(t,e){t=_r(t);var n=-1,i=e.length;for((r=2<i?e[2]:R)&&ni(e[0],e[1],r)&&(i=1);++n<i;)for(var r,o=ir(r=e[n]),a=-1,s=o.length;++a<s;){var l=o[a],u=t[l];(u===R||Li(u,Tr[l])&&!Or.call(t,l))&&(t[l]=r[l])}return t}),$a=Ye(function(e){return e.push(R,Bn),t(Za,R,e)}),Va=Dn(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pr.call(e)),t[e]=n},ur(cr)),Ga=Dn(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pr.call(e)),Or.call(t,e)?t[e].push(n):t[e]=[n]},Gn),Xa=Ye(Se),Qa=yn(function(t,e,n){Re(t,e,n)}),Za=yn(function(t,e,n,i){Re(t,e,n,i)}),Ja=Yn(function(t,e){var n={};if(null==t)return n;var i=!1;e=s(e,function(e){return e=sn(e,t),i||(i=1<e.length),e}),mn(t,qn(t),n),i&&(n=ae(n,7,Hn));for(var r=e.length;r--;)Ke(n,e[r]);return n}),Ka=Yn(function(t,e){return null==t?{}:function(t,e){return Ne(t,e,function(e,n){return er(t,n)})}(t,e)}),ts=Fn(nr),es=Fn(ir),ns=_n(function(t,e,n){return e=e.toLowerCase(),t+(n?ar(e):e)}),is=_n(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),rs=_n(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),os=wn("toLowerCase"),as=_n(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),ss=_n(function(t,e,n){return t+(n?" ":"")+us(e)}),ls=_n(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),us=wn("toUpperCase"),cs=Ye(function(e,n){try{return t(e,R,n)}catch(t){return Fi(t)?t:new br(t)}}),hs=Yn(function(t,e){return n(e,function(e){e=hi(e),ie(t,e,ba(t[e],t))}),t}),ds=Mn(),fs=Mn(!0),ps=Ye(function(t,e){return function(n){return Se(n,t,e)}}),gs=Ye(function(t,e){return function(n){return Se(t,n,e)}}),ms=On(s),vs=On(i),ys=On(h),bs=Pn(),xs=Pn(!0),ws=An(function(t,e){return t+e},0),_s=jn("ceil"),ks=An(function(t,e){return t/e},1),Ss=jn("floor"),Cs=An(function(t,e){return t*e},1),Ms=jn("round"),Ts=An(function(t,e){return t-e},0);return bt.after=function(t,e){if("function"!=typeof e)throw new Cr("Expected a function");return t=Xi(t),function(){if(1>--t)return e.apply(this,arguments)}},bt.ary=Ai,bt.assign=Ba,bt.assignIn=Ha,bt.assignInWith=za,bt.assignWith=Ya,bt.at=Ua,bt.before=Oi,bt.bind=ba,bt.bindAll=hs,bt.bindKey=xa,bt.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Oa(t)?t:[t]},bt.chain=Si,bt.chunk=function(t,e,n){if(e=(n?ni(t,e,n):e===R)?1:oo(Xi(e),0),!(n=null==t?0:t.length)||1>e)return[];for(var i=0,r=0,o=vr(Jr(n/e));i<n;)o[r++]=qe(t,i,i+=e);return o},bt.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},bt.concat=function(){var t=arguments.length;if(!t)return[];for(var e=vr(t-1),n=arguments[0];t--;)e[t-1]=arguments[t];return l(Oa(n)?gn(n):[n],fe(e,1))},bt.cond=function(e){var n=null==e?0:e.length,i=Gn();return e=n?s(e,function(t){if("function"!=typeof t[1])throw new Cr("Expected a function");return[i(t[0]),t[1]]}):[],Ye(function(i){for(var r=-1;++r<n;){var o=e[r];if(t(o[0],this,i))return t(o[1],this,i)}})},bt.conforms=function(t){return function(t){var e=nr(t);return function(n){return se(n,t,e)}}(ae(t,1))},bt.constant=ur,bt.countBy=ca,bt.create=function(t,e){var n=Do(t);return null==e?n:ne(n,e)},bt.curry=function t(e,n,i){return(e=Nn(e,8,R,R,R,R,R,n=i?R:n)).placeholder=t.placeholder,e},bt.curryRight=function t(e,n,i){return(e=Nn(e,16,R,R,R,R,R,n=i?R:n)).placeholder=t.placeholder,e},bt.debounce=Ei,bt.defaults=qa,bt.defaultsDeep=$a,bt.defer=wa,bt.delay=_a,bt.difference=$o,bt.differenceBy=Vo,bt.differenceWith=Go,bt.drop=function(t,e,n){var i=null==t?0:t.length;return i?qe(t,0>(e=n||e===R?1:Xi(e))?0:e,i):[]},bt.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?qe(t,0,0>(e=i-(e=n||e===R?1:Xi(e)))?0:e):[]},bt.dropRightWhile=function(t,e){return t&&t.length?tn(t,Gn(e,3),!0,!0):[]},bt.dropWhile=function(t,e){return t&&t.length?tn(t,Gn(e,3),!0):[]},bt.fill=function(t,e,n,i){var r=null==t?0:t.length;if(!r)return[];for(n&&"number"!=typeof n&&ni(t,e,n)&&(n=0,i=r),r=t.length,0>(n=Xi(n))&&(n=-n>r?0:r+n),0>(i=i===R||i>r?r:Xi(i))&&(i+=r),i=n>i?0:Qi(i);n<i;)t[n++]=e;return t},bt.filter=function(t,e){return(Oa(t)?r:de)(t,Gn(e,3))},bt.flatMap=function(t,e){return fe(Di(t,e),1)},bt.flatMapDeep=function(t,e){return fe(Di(t,e),j)},bt.flatMapDepth=function(t,e,n){return n=n===R?1:Xi(n),fe(Di(t,e),n)},bt.flatten=vi,bt.flattenDeep=function(t){return null!=t&&t.length?fe(t,j):[]},bt.flattenDepth=function(t,e){return null!=t&&t.length?fe(t,e=e===R?1:Xi(e)):[]},bt.flip=function(t){return Nn(t,512)},bt.flow=ds,bt.flowRight=fs,bt.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},bt.functions=function(t){return null==t?[]:me(t,nr(t))},bt.functionsIn=function(t){return null==t?[]:me(t,ir(t))},bt.groupBy=fa,bt.initial=function(t){return null!=t&&t.length?qe(t,0,-1):[]},bt.intersection=Xo,bt.intersectionBy=Qo,bt.intersectionWith=Zo,bt.invert=Va,bt.invertBy=Ga,bt.invokeMap=pa,bt.iteratee=hr,bt.keyBy=ga,bt.keys=nr,bt.keysIn=ir,bt.map=Di,bt.mapKeys=function(t,e){var n={};return e=Gn(e,3),pe(t,function(t,i,r){ie(n,e(t,i,r),t)}),n},bt.mapValues=function(t,e){var n={};return e=Gn(e,3),pe(t,function(t,i,r){ie(n,i,e(t,i,r))}),n},bt.matches=function(t){return Pe(ae(t,1))},bt.matchesProperty=function(t,e){return Le(t,ae(e,1))},bt.memoize=Ii,bt.merge=Qa,bt.mergeWith=Za,bt.method=ps,bt.methodOf=gs,bt.mixin=dr,bt.negate=Pi,bt.nthArg=function(t){return t=Xi(t),Ye(function(e){return je(e,t)})},bt.omit=Ja,bt.omitBy=function(t,e){return rr(t,Pi(Gn(e)))},bt.once=function(t){return Oi(2,t)},bt.orderBy=function(t,e,n,i){return null==t?[]:(Oa(e)||(e=null==e?[]:[e]),Oa(n=i?R:n)||(n=null==n?[]:[n]),Fe(t,e,n))},bt.over=ms,bt.overArgs=ka,bt.overEvery=vs,bt.overSome=ys,bt.partial=Sa,bt.partialRight=Ca,bt.partition=ma,bt.pick=Ka,bt.pickBy=rr,bt.property=pr,bt.propertyOf=function(t){return function(e){return null==t?R:ve(t,e)}},bt.pull=Jo,bt.pullAll=xi,bt.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?We(t,e,Gn(n,2)):t},bt.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?We(t,e,R,n):t},bt.pullAt=Ko,bt.range=bs,bt.rangeRight=xs,bt.rearg=Ma,bt.reject=function(t,e){return(Oa(t)?r:de)(t,Pi(Gn(e,3)))},bt.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=Gn(e,3);++i<o;){var a=t[i];e(a,i,t)&&(n.push(a),r.push(i))}return Be(t,r),n},bt.rest=function(t,e){if("function"!=typeof t)throw new Cr("Expected a function");return Ye(t,e=e===R?e:Xi(e))},bt.reverse=wi,bt.sampleSize=function(t,e,n){return e=(n?ni(t,e,n):e===R)?1:Xi(e),(Oa(t)?function(t,e){return ci(gn(t),oe(e,0,t.length))}:function(t,e){var n=or(t);return ci(n,oe(e,0,n.length))})(t,e)},bt.set=function(t,e,n){return null==t?t:Ue(t,e,n)},bt.setWith=function(t,e,n,i){return i="function"==typeof i?i:R,null==t?t:Ue(t,e,n,i)},bt.shuffle=function(t){return(Oa(t)?function(t){return ci(gn(t))}:function(t){return ci(or(t))})(t)},bt.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ni(t,e,n)?(e=0,n=i):(e=null==e?0:Xi(e),n=n===R?i:Xi(n)),qe(t,e,n)):[]},bt.sortBy=va,bt.sortedUniq=function(t){return t&&t.length?Xe(t):[]},bt.sortedUniqBy=function(t,e){return t&&t.length?Xe(t,Gn(e,2)):[]},bt.split=function(t,e,n){return n&&"number"!=typeof n&&ni(t,e,n)&&(e=n=R),(n=n===R?4294967295:n>>>0)?(t=Ki(t))&&("string"==typeof e||null!=e&&!Ra(e))&&!(e=Ze(e))&&St.test(t)?ln(L(t),0,n):t.split(e,n):[]},bt.spread=function(e,n){if("function"!=typeof e)throw new Cr("Expected a function");return n=null==n?0:oo(Xi(n),0),Ye(function(i){var r=i[n];return i=ln(i,0,n),r&&l(i,r),t(e,this,i)})},bt.tail=function(t){var e=null==t?0:t.length;return e?qe(t,1,e):[]},bt.take=function(t,e,n){return t&&t.length?qe(t,0,0>(e=n||e===R?1:Xi(e))?0:e):[]},bt.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?qe(t,0>(e=i-(e=n||e===R?1:Xi(e)))?0:e,i):[]},bt.takeRightWhile=function(t,e){return t&&t.length?tn(t,Gn(e,3),!1,!0):[]},bt.takeWhile=function(t,e){return t&&t.length?tn(t,Gn(e,3)):[]},bt.tap=function(t,e){return e(t),t},bt.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new Cr("Expected a function");return Hi(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ei(t,e,{leading:i,maxWait:e,trailing:r})},bt.thru=Ci,bt.toArray=Vi,bt.toPairs=ts,bt.toPairsIn=es,bt.toPath=function(t){return Oa(t)?s(t,hi):$i(t)?[t]:gn(qo(Ki(t)))},bt.toPlainObject=Ji,bt.transform=function(t,e,i){var r=Oa(t),o=r||Ia(t)||Fa(t);if(e=Gn(e,4),null==i){var a=t&&t.constructor;i=o?r?new a:[]:Hi(t)&&Ni(a)?Do(Hr(t)):{}}return(o?n:pe)(t,function(t,n,r){return e(i,t,n,r)}),i},bt.unary=function(t){return Ai(t,1)},bt.union=ta,bt.unionBy=ea,bt.unionWith=na,bt.uniq=function(t){return t&&t.length?Je(t):[]},bt.uniqBy=function(t,e){return t&&t.length?Je(t,Gn(e,2)):[]},bt.uniqWith=function(t,e){return e="function"==typeof e?e:R,t&&t.length?Je(t,R,e):[]},bt.unset=function(t,e){return null==t||Ke(t,e)},bt.unzip=_i,bt.unzipWith=ki,bt.update=function(t,e,n){return null==t?t:Ue(t,e,an(n)(ve(t,e)),void 0)},bt.updateWith=function(t,e,n,i){return i="function"==typeof i?i:R,null!=t&&(t=Ue(t,e,an(n)(ve(t,e)),i)),t},bt.values=or,bt.valuesIn=function(t){return null==t?[]:S(t,ir(t))},bt.without=ia,bt.words=lr,bt.wrap=function(t,e){return Sa(an(e),t)},bt.xor=ra,bt.xorBy=oa,bt.xorWith=aa,bt.zip=sa,bt.zipObject=function(t,e){return rn(t||[],e||[],Kt)},bt.zipObjectDeep=function(t,e){return rn(t||[],e||[],Ue)},bt.zipWith=la,bt.entries=ts,bt.entriesIn=es,bt.extend=Ha,bt.extendWith=za,dr(bt,bt),bt.add=ws,bt.attempt=cs,bt.camelCase=ns,bt.capitalize=ar,bt.ceil=_s,bt.clamp=function(t,e,n){return n===R&&(n=e,e=R),n!==R&&(n=(n=Zi(n))==n?n:0),e!==R&&(e=(e=Zi(e))==e?e:0),oe(Zi(t),e,n)},bt.clone=function(t){return ae(t,4)},bt.cloneDeep=function(t){return ae(t,5)},bt.cloneDeepWith=function(t,e){return ae(t,5,e="function"==typeof e?e:R)},bt.cloneWith=function(t,e){return ae(t,4,e="function"==typeof e?e:R)},bt.conformsTo=function(t,e){return null==e||se(t,e,nr(e))},bt.deburr=sr,bt.defaultTo=function(t,e){return null==t||t!=t?e:t},bt.divide=ks,bt.endsWith=function(t,e,n){t=Ki(t),e=Ze(e);var i=t.length;return i=n=n===R?i:oe(Xi(n),0,i),0<=(n-=e.length)&&t.slice(n,i)==e},bt.eq=Li,bt.escape=function(t){return(t=Ki(t))&&q.test(t)?t.replace(Y,Gt):t},bt.escapeRegExp=function(t){return(t=Ki(t))&&K.test(t)?t.replace(J,"\\$&"):t},bt.every=function(t,e,n){var r=Oa(t)?i:ce;return n&&ni(t,e,n)&&(e=R),r(t,Gn(e,3))},bt.find=ha,bt.findIndex=gi,bt.findKey=function(t,e){return d(t,Gn(e,3),pe)},bt.findLast=da,bt.findLastIndex=mi,bt.findLastKey=function(t,e){return d(t,Gn(e,3),ge)},bt.floor=Ss,bt.forEach=Mi,bt.forEachRight=Ti,bt.forIn=function(t,e){return null==t?t:Eo(t,Gn(e,3),ir)},bt.forInRight=function(t,e){return null==t?t:Io(t,Gn(e,3),ir)},bt.forOwn=function(t,e){return t&&pe(t,Gn(e,3))},bt.forOwnRight=function(t,e){return t&&ge(t,Gn(e,3))},bt.get=tr,bt.gt=Ta,bt.gte=Da,bt.has=function(t,e){return null!=t&&Jn(t,e,we)},bt.hasIn=er,bt.head=yi,bt.identity=cr,bt.includes=function(t,e,n,i){return t=Ri(t)?t:or(t),n=n&&!i?Xi(n):0,i=t.length,0>n&&(n=oo(i+n,0)),qi(t)?n<=i&&-1<t.indexOf(e,n):!!i&&-1<p(t,e,n)},bt.indexOf=function(t,e,n){var i=null==t?0:t.length;return i?(0>(n=null==n?0:Xi(n))&&(n=oo(i+n,0)),p(t,e,n)):-1},bt.inRange=function(t,e,n){return e=Gi(e),n===R?(n=e,e=0):n=Gi(n),(t=Zi(t))>=ao(e,n)&&t<oo(e,n)},bt.invoke=Xa,bt.isArguments=Aa,bt.isArray=Oa,bt.isArrayBuffer=Ea,bt.isArrayLike=Ri,bt.isArrayLikeObject=ji,bt.isBoolean=function(t){return!0===t||!1===t||zi(t)&&"[object Boolean]"==be(t)},bt.isBuffer=Ia,bt.isDate=Pa,bt.isElement=function(t){return zi(t)&&1===t.nodeType&&!Ui(t)},bt.isEmpty=function(t){if(null==t)return!0;if(Ri(t)&&(Oa(t)||"string"==typeof t||"function"==typeof t.splice||Ia(t)||Fa(t)||Aa(t)))return!t.length;var e=Bo(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(oi(t))return!Oe(t).length;for(var n in t)if(Or.call(t,n))return!1;return!0},bt.isEqual=function(t,e){return Me(t,e)},bt.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:R)?n(t,e):R;return i===R?Me(t,e,R,n):!!i},bt.isError=Fi,bt.isFinite=function(t){return"number"==typeof t&&no(t)},bt.isFunction=Ni,bt.isInteger=Wi,bt.isLength=Bi,bt.isMap=La,bt.isMatch=function(t,e){return t===e||Te(t,e,Qn(e))},bt.isMatchWith=function(t,e,n){return n="function"==typeof n?n:R,Te(t,e,Qn(e),n)},bt.isNaN=function(t){return Yi(t)&&t!=+t},bt.isNative=function(t){if(Ho(t))throw new br("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return De(t)},bt.isNil=function(t){return null==t},bt.isNull=function(t){return null===t},bt.isNumber=Yi,bt.isObject=Hi,bt.isObjectLike=zi,bt.isPlainObject=Ui,bt.isRegExp=Ra,bt.isSafeInteger=function(t){return Wi(t)&&-9007199254740991<=t&&9007199254740991>=t},bt.isSet=ja,bt.isString=qi,bt.isSymbol=$i,bt.isTypedArray=Fa,bt.isUndefined=function(t){return t===R},bt.isWeakMap=function(t){return zi(t)&&"[object WeakMap]"==Bo(t)},bt.isWeakSet=function(t){return zi(t)&&"[object WeakSet]"==be(t)},bt.join=function(t,e){return null==t?"":io.call(t,e)},bt.kebabCase=is,bt.last=bi,bt.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;if(n!==R&&(r=0>(r=Xi(n))?oo(i+r,0):ao(r,i-1)),e==e){for(n=r+1;n--&&t[n]!==e;);t=n}else t=f(t,m,r,!0);return t},bt.lowerCase=rs,bt.lowerFirst=os,bt.lt=Na,bt.lte=Wa,bt.max=function(t){return t&&t.length?he(t,cr,xe):R},bt.maxBy=function(t,e){return t&&t.length?he(t,Gn(e,2),xe):R},bt.mean=function(t){return v(t,cr)},bt.meanBy=function(t,e){return v(t,Gn(e,2))},bt.min=function(t){return t&&t.length?he(t,cr,Ee):R},bt.minBy=function(t,e){return t&&t.length?he(t,Gn(e,2),Ee):R},bt.stubArray=gr,bt.stubFalse=mr,bt.stubObject=function(){return{}},bt.stubString=function(){return""},bt.stubTrue=function(){return!0},bt.multiply=Cs,bt.nth=function(t,e){return t&&t.length?je(t,Xi(e)):R},bt.noConflict=function(){return Lt._===this&&(Lt._=Rr),this},bt.noop=fr,bt.now=ya,bt.pad=function(t,e,n){t=Ki(t);var i=(e=Xi(e))?P(t):0;return!e||i>=e?t:En(Kr(e=(e-i)/2),n)+t+En(Jr(e),n)},bt.padEnd=function(t,e,n){t=Ki(t);var i=(e=Xi(e))?P(t):0;return e&&i<e?t+En(e-i,n):t},bt.padStart=function(t,e,n){t=Ki(t);var i=(e=Xi(e))?P(t):0;return e&&i<e?En(e-i,n)+t:t},bt.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),lo(Ki(t).replace(et,""),e||0)},bt.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ni(t,e,n)&&(e=n=R),n===R&&("boolean"==typeof e?(n=e,e=R):"boolean"==typeof t&&(n=t,t=R)),t===R&&e===R?(t=0,e=1):(t=Gi(t),e===R?(e=t,t=0):e=Gi(e)),t>e){var i=t;t=e,e=i}return n||t%1||e%1?(n=uo(),ao(t+n*(e-t+Ot("1e-"+((n+"").length-1))),e)):He(t,e)},bt.reduce=function(t,e,n){var i=Oa(t)?u:x,r=3>arguments.length;return i(t,Gn(e,4),n,r,Ao)},bt.reduceRight=function(t,e,n){var i=Oa(t)?c:x,r=3>arguments.length;return i(t,Gn(e,4),n,r,Oo)},bt.repeat=function(t,e,n){return e=(n?ni(t,e,n):e===R)?1:Xi(e),ze(Ki(t),e)},bt.replace=function(){var t=arguments,e=Ki(t[0]);return 3>t.length?e:e.replace(t[1],t[2])},bt.result=function(t,e,n){var i=-1,r=(e=sn(e,t)).length;for(r||(r=1,t=R);++i<r;){var o=null==t?R:t[hi(e[i])];o===R&&(i=r,o=n),t=Ni(o)?o.call(t):o}return t},bt.round=Ms,bt.runInContext=b,bt.sample=function(t){return(Oa(t)?Zt:function(t){return Zt(or(t))})(t)},bt.size=function(t){if(null==t)return 0;if(Ri(t))return qi(t)?P(t):t.length;var e=Bo(t);return"[object Map]"==e||"[object Set]"==e?t.size:Oe(t).length},bt.snakeCase=as,bt.some=function(t,e,n){var i=Oa(t)?h:$e;return n&&ni(t,e,n)&&(e=R),i(t,Gn(e,3))},bt.sortedIndex=function(t,e){return Ve(t,e)},bt.sortedIndexBy=function(t,e,n){return Ge(t,e,Gn(n,2))},bt.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=Ve(t,e);if(i<n&&Li(t[i],e))return i}return-1},bt.sortedLastIndex=function(t,e){return Ve(t,e,!0)},bt.sortedLastIndexBy=function(t,e,n){return Ge(t,e,Gn(n,2),!0)},bt.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Ve(t,e,!0)-1;if(Li(t[n],e))return n}return-1},bt.startCase=ss,bt.startsWith=function(t,e,n){return t=Ki(t),n=null==n?0:oe(Xi(n),0,t.length),e=Ze(e),t.slice(n,n+e.length)==e},bt.subtract=Ts,bt.sum=function(t){return t&&t.length?w(t,cr):0},bt.sumBy=function(t,e){return t&&t.length?w(t,Gn(e,2)):0},bt.template=function(t,e,n){var i=bt.templateSettings;n&&ni(t,e,n)&&(e=R),t=Ki(t),e=za({},e,i,Wn);var r,o,a=nr(n=za({},e.imports,i.imports,Wn)),s=S(n,a),l=0;n=e.interpolate||mt;var u="__p+='";n=kr((e.escape||mt).source+"|"+n.source+"|"+(n===G?lt:mt).source+"|"+(e.evaluate||mt).source+"|$","g");var c="sourceURL"in e?"//# sourceURL="+e.sourceURL+"\n":"";if(t.replace(n,function(e,n,i,a,s,c){return i||(i=a),u+=t.slice(l,c).replace(vt,D),n&&(r=!0,u+="'+__e("+n+")+'"),s&&(o=!0,u+="';"+s+";\n__p+='"),i&&(u+="'+((__t=("+i+"))==null?'':__t)+'"),l=c+e.length,e}),u+="';",(e=e.variable)||(u="with(obj){"+u+"}"),u=(o?u.replace(W,""):u).replace(B,"$1").replace(H,"$1;"),u="function("+(e||"obj")+"){"+(e?"":"obj||(obj={});")+"var __t,__p=''"+(r?",__e=_.escape":"")+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+u+"return __p}",(e=cs(function(){return xr(a,c+"return "+u).apply(R,s)})).source=u,Fi(e))throw e;return e},bt.times=function(t,e){if(1>(t=Xi(t))||9007199254740991<t)return[];var n=4294967295,i=ao(t,4294967295);for(t-=4294967295,i=_(i,e=Gn(e));++n<t;)e(n);return i},bt.toFinite=Gi,bt.toInteger=Xi,bt.toLength=Qi,bt.toLower=function(t){return Ki(t).toLowerCase()},bt.toNumber=Zi,bt.toSafeInteger=function(t){return t?oe(Xi(t),-9007199254740991,9007199254740991):0===t?t:0},bt.toString=Ki,bt.toUpper=function(t){return Ki(t).toUpperCase()},bt.trim=function(t,e,n){return(t=Ki(t))&&(n||e===R)?t.replace(tt,""):t&&(e=Ze(e))?ln(t=L(t),e=M(t,n=L(e)),n=T(t,n)+1).join(""):t},bt.trimEnd=function(t,e,n){return(t=Ki(t))&&(n||e===R)?t.replace(nt,""):t&&(e=Ze(e))?ln(t=L(t),0,e=T(t,L(e))+1).join(""):t},bt.trimStart=function(t,e,n){return(t=Ki(t))&&(n||e===R)?t.replace(et,""):t&&(e=Ze(e))?ln(t=L(t),e=M(t,L(e))).join(""):t},bt.truncate=function(t,e){var n=30,i="...";if(Hi(e)){var r="separator"in e?e.separator:r;n="length"in e?Xi(e.length):n,i="omission"in e?Ze(e.omission):i}var o=(t=Ki(t)).length;if(St.test(t)){var a=L(t);o=a.length}if(n>=o)return t;if(1>(o=n-P(i)))return i;if(n=a?ln(a,0,o).join(""):t.slice(0,o),r===R)return n+i;if(a&&(o+=n.length-o),Ra(r)){if(t.slice(o).search(r)){var s=n;for(r.global||(r=kr(r.source,Ki(ut.exec(r))+"g")),r.lastIndex=0;a=r.exec(s);)var l=a.index;n=n.slice(0,l===R?o:l)}}else t.indexOf(Ze(r),o)!=o&&-1<(r=n.lastIndexOf(r))&&(n=n.slice(0,r));return n+i},bt.unescape=function(t){return(t=Ki(t))&&U.test(t)?t.replace(z,Xt):t},bt.uniqueId=function(t){var e=++Er;return Ki(t)+e},bt.upperCase=ls,bt.upperFirst=us,bt.each=Mi,bt.eachRight=Ti,bt.first=yi,dr(bt,function(){var t={};return pe(bt,function(e,n){Or.call(bt.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),bt.VERSION="4.17.10",n("bind bindKey curry curryRight partial partialRight".split(" "),function(t){bt[t].placeholder=bt}),n(["drop","take"],function(t,e){It.prototype[t]=function(n){n=n===R?1:oo(Xi(n),0);var i=this.__filtered__&&!e?new It(this):this.clone();return i.__filtered__?i.__takeCount__=ao(n,i.__takeCount__):i.__views__.push({size:ao(n,4294967295),type:t+(0>i.__dir__?"Right":"")}),i},It.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),n(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;It.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Gn(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),n(["head","last"],function(t,e){var n="take"+(e?"Right":"");It.prototype[t]=function(){return this[n](1).value()[0]}}),n(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");It.prototype[t]=function(){return this.__filtered__?new It(this):this[n](1)}}),It.prototype.compact=function(){return this.filter(cr)},It.prototype.find=function(t){return this.filter(t).head()},It.prototype.findLast=function(t){return this.reverse().find(t)},It.prototype.invokeMap=Ye(function(t,e){return"function"==typeof t?new It(this):this.map(function(n){return Se(n,t,e)})}),It.prototype.reject=function(t){return this.filter(Pi(Gn(t)))},It.prototype.slice=function(t,e){t=Xi(t);var n=this;return n.__filtered__&&(0<t||0>e)?new It(n):(0>t?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==R&&(n=0>(e=Xi(e))?n.dropRight(-e):n.take(e-t)),n)},It.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},It.prototype.toArray=function(){return this.take(4294967295)},pe(It.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=bt[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);r&&(bt.prototype[e]=function(){function e(t){return t=r.apply(bt,l([t],s)),i&&h?t[0]:t}var a=this.__wrapped__,s=i?[1]:arguments,u=s[0],c=(d=a instanceof It)||Oa(a);c&&n&&"function"==typeof u&&1!=u.length&&(d=c=!1);var h=this.__chain__,d=(u=o&&!h,d&&!this.__actions__.length);return!o&&c?(a=d?a:new It(this),(a=t.apply(a,s)).__actions__.push({func:Ci,args:[e],thisArg:R}),new At(a,h)):u&&d?t.apply(this,s):(a=this.thru(e),u?i?a.value()[0]:a.value():a)})}),n("pop push shift sort splice unshift".split(" "),function(t){var e=Mr[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);bt.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Oa(r)?r:[],t)}return this[n](function(n){return e.apply(Oa(n)?n:[],t)})}}),pe(It.prototype,function(t,e){var n=bt[e];if(n){var i=n.name+"";(bo[i]||(bo[i]=[])).push({name:e,func:n})}}),bo[Tn(R,2).name]=[{name:"wrapper",func:R}],It.prototype.clone=function(){var t=new It(this.__wrapped__);return t.__actions__=gn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gn(this.__views__),t},It.prototype.reverse=function(){if(this.__filtered__){var t=new It(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},It.prototype.value=function(){var t,e=this.__wrapped__.value(),n=this.__dir__,i=Oa(e),r=0>n,o=i?e.length:0;t=o;for(var a=this.__views__,s=0,l=-1,u=a.length;++l<u;){var c=a[l],h=c.size;switch(c.type){case"drop":s+=h;break;case"dropRight":t-=h;break;case"take":t=ao(t,s+h);break;case"takeRight":s=oo(s,t-h)}}if(t=(s=(t={start:s,end:t}).end)-(a=t.start),a=r?s:a-1,l=(s=this.__iteratees__).length,u=0,c=ao(t,this.__takeCount__),!i||!r&&o==t&&c==t)return en(e,this.__actions__);i=[];t:for(;t--&&u<c;){for(r=-1,o=e[a+=n];++r<l;){h=(d=s[r]).type;var d=(0,d.iteratee)(o);if(2==h)o=d;else if(!d){if(1==h)continue t;break t}}i[u++]=o}return i},bt.prototype.at=ua,bt.prototype.chain=function(){return Si(this)},bt.prototype.commit=function(){return new At(this.value(),this.__chain__)},bt.prototype.next=function(){this.__values__===R&&(this.__values__=Vi(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?R:this.__values__[this.__index__++]}},bt.prototype.plant=function(t){for(var e,n=this;n instanceof _t;){var i=pi(n);i.__index__=0,i.__values__=R,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},bt.prototype.reverse=function(){var t=this.__wrapped__;return t instanceof It?(this.__actions__.length&&(t=new It(this)),(t=t.reverse()).__actions__.push({func:Ci,args:[wi],thisArg:R}),new At(t,this.__chain__)):this.thru(wi)},bt.prototype.toJSON=bt.prototype.valueOf=bt.prototype.value=function(){return en(this.__wrapped__,this.__actions__)},bt.prototype.first=bt.prototype.head,$r&&(bt.prototype[$r]=function(){return this}),bt}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Lt._=Qt,define(function(){return Qt})):jt?((jt.exports=Qt)._=Qt,Rt._=Qt):Lt._=Qt}).call(this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,e;function n(){return t.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e,n,i){return Ce(t,e,n,i,!0).utc()}function d(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function f(t){if(null==t._isValid){var n=d(t),i=e.call(n.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(t._strict&&(r=r&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function p(t){var e=h(NaN);return null!=t?c(d(e),t):d(e).userInvalidated=!0,e}e=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var g=n.momentProperties=[];function m(t,e){var n,i,r;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=d(e)),o(e._locale)||(t._locale=e._locale),0<g.length)for(n=0;n<g.length;n++)o(r=e[i=g[n]])||(t[i]=r);return t}var v=!1;function y(t){m(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function b(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function x(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=x(e)),n}function _(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&w(t[i])!==w(e[i]))&&a++;return a+o}function k(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var i=!0;return c(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}k(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)},e)}var C,M={};function T(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),M[t]||(k(e),M[t]=!0)}function D(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function A(t,e){var n,i=c({},t);for(n in e)u(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},c(i[n],t[n]),c(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)u(t,n)&&!u(e,n)&&r(t[n])&&(i[n]=c({},i[n]));return i}function O(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var E={};function I(t,e){var n=t.toLowerCase();E[n]=E[n+"s"]=E[e]=t}function P(t){return"string"==typeof t?E[t]||E[t.toLowerCase()]:void 0}function L(t){var e,n,i={};for(n in t)u(t,n)&&(e=P(n))&&(i[e]=t[n]);return i}var R={};function j(t,e){R[t]=e}function F(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var N=/(\[[^\[]*\])|(\\)?([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,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},H={};function z(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(H[t]=r),e&&(H[e[0]]=function(){return F(r.apply(this,arguments),e[1],e[2])}),n&&(H[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function Y(t,e){return t.isValid()?(e=U(e,t.localeData()),B[e]=B[e]||function(t){var e,n,i,r=t.match(N);for(e=0,n=r.length;e<n;e++)r[e]=H[r[e]]?H[r[e]]:(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(e,t):r[i];return o}}(e),B[e](t)):t.localeData().invalidDate()}function U(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(W.lastIndex=0;0<=n&&W.test(t);)t=t.replace(W,i),W.lastIndex=0,n-=1;return t}var q=/\d/,$=/\d\d/,V=/\d{3}/,G=/\d{4}/,X=/[+-]?\d{6}/,Q=/\d\d?/,Z=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,K=/\d{1,3}/,tt=/\d{1,4}/,et=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,ot=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,st={};function lt(t,e,n){st[t]=D(e)?e:function(t,i){return t&&n?n:e}}function ut(t,e){return u(st,t)?st[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={};function dt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),a(e)&&(i=function(t,n){n[e]=w(t)}),n=0;n<t.length;n++)ht[t[n]]=i}function ft(t,e){dt(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}var pt=0,gt=1,mt=2,vt=3,yt=4,bt=5,xt=6,wt=7,_t=8;function kt(t){return St(t)?366:365}function St(t){return t%4==0&&t%100!=0||t%400==0}z("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),I("year","y"),j("year",1),lt("Y",it),lt("YY",Q,$),lt("YYYY",tt,G),lt("YYYYY",et,X),lt("YYYYYY",et,X),dt(["YYYYY","YYYYYY"],pt),dt("YYYY",function(t,e){e[pt]=2===t.length?n.parseTwoDigitYear(t):w(t)}),dt("YY",function(t,e){e[pt]=n.parseTwoDigitYear(t)}),dt("Y",function(t,e){e[pt]=parseInt(t,10)}),n.parseTwoDigitYear=function(t){return w(t)+(68<w(t)?1900:2e3)};var Ct,Mt=Tt("FullYear",!0);function Tt(t,e){return function(i){return null!=i?(At(this,t,i),n.updateOffset(this,e),this):Dt(this,t)}}function Dt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function At(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&St(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Ot(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Ot(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?St(t)?29:28:31-n%7%2}Ct=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),z("MMMM",0,0,function(t){return this.localeData().months(this,t)}),I("month","M"),j("month",8),lt("M",Q),lt("MM",Q,$),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),dt(["M","MM"],function(t,e){e[gt]=w(t)-1}),dt(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[gt]=r:d(n).invalidMonth=t});var Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,It="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Lt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if(!a(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Ot(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Rt(t){return null!=t?(Lt(this,t),n.updateOffset(this,!0),this):Dt(this,"Month")}var jt=at,Ft=at;function Nt(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],o=[];for(e=0;e<12;e++)n=h([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)i[e]=ct(i[e]),r[e]=ct(r[e]);for(e=0;e<24;e++)o[e]=ct(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Wt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&0<=t&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Bt(t,e,n){var i=7+e-n;return-(7+Wt(t,0,i).getUTCDay()-e)%7+i-1}function Ht(t,e,n,i,r){var o,a,s=1+7*(e-1)+(7+n-i)%7+Bt(t,i,r);return s<=0?a=kt(o=t-1)+s:s>kt(t)?(o=t+1,a=s-kt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function zt(t,e,n){var i,r,o=Bt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?i=a+Yt(r=t.year()-1,e,n):a>Yt(t.year(),e,n)?(i=a-Yt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Yt(t,e,n){var i=Bt(t,e,n),r=Bt(t+1,e,n);return(kt(t)-i+r)/7}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),j("week",5),j("isoWeek",5),lt("w",Q),lt("ww",Q,$),lt("W",Q),lt("WW",Q,$),ft(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=w(t)}),z("d",0,"do","day"),z("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),z("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),z("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),lt("d",Q),lt("e",Q),lt("E",Q),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ft(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:d(n).invalidWeekday=t}),ft(["d","e","E"],function(t,e,n,i){e[i]=w(t)});var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$t="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vt=at,Gt=at,Xt=at;function Qt(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(a.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=ct(s[e]),l[e]=ct(l[e]),u[e]=ct(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Jt(t,e){z(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Kt(t,e){return e._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Zt),z("k",["kk",2],0,function(){return this.hours()||24}),z("hmm",0,0,function(){return""+Zt.apply(this)+F(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Zt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+F(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),I("hour","h"),j("hour",13),lt("a",Kt),lt("A",Kt),lt("H",Q),lt("h",Q),lt("k",Q),lt("HH",Q,$),lt("hh",Q,$),lt("kk",Q,$),lt("hmm",Z),lt("hmmss",J),lt("Hmm",Z),lt("Hmmss",J),dt(["H","HH"],vt),dt(["k","kk"],function(t,e,n){var i=w(t);e[vt]=24===i?0:i}),dt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),dt(["h","hh"],function(t,e,n){e[vt]=w(t),d(n).bigHour=!0}),dt("hmm",function(t,e,n){var i=t.length-2;e[vt]=w(t.substr(0,i)),e[yt]=w(t.substr(i)),d(n).bigHour=!0}),dt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=w(t.substr(0,i)),e[yt]=w(t.substr(i,2)),e[bt]=w(t.substr(r)),d(n).bigHour=!0}),dt("Hmm",function(t,e,n){var i=t.length-2;e[vt]=w(t.substr(0,i)),e[yt]=w(t.substr(i))}),dt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=w(t.substr(0,i)),e[yt]=w(t.substr(i,2)),e[bt]=w(t.substr(r))});var te,ee=Tt("Hours",!0),ne={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:It,monthsShort:Pt,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:$t,weekdaysShort:qt,meridiemParse:/[ap]\.?m?\.?/i},ie={},re={};function oe(t){return t?t.toLowerCase().replace("_","-"):t}function ae(t){var e=null;if(!ie[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=te._abbr,require("./locale/"+t),se(e)}catch(t){}return ie[t]}function se(t,e){var n;return t&&((n=o(e)?ue(t):le(t,e))?te=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),te._abbr}function le(t,e){if(null!==e){var n,i=ne;if(e.abbr=t,null!=ie[t])T("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."),i=ie[t]._config;else if(null!=e.parentLocale)if(null!=ie[e.parentLocale])i=ie[e.parentLocale]._config;else{if(null==(n=ae(e.parentLocale)))return re[e.parentLocale]||(re[e.parentLocale]=[]),re[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ie[t]=new O(A(i,e)),re[t]&&re[t].forEach(function(t){le(t.name,t.config)}),se(t),ie[t]}return delete ie[t],null}function ue(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return te;if(!i(t)){if(e=ae(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=oe(t[o]).split("-")).length,n=(n=oe(t[o+1]))?n.split("-"):null;0<e;){if(i=ae(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&_(r,n,!0)>=e-1)break;e--}o++}return te}(t)}function ce(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[mt]<1||n[mt]>Ot(n[pt],n[gt])?mt:n[vt]<0||24<n[vt]||24===n[vt]&&(0!==n[yt]||0!==n[bt]||0!==n[xt])?vt:n[yt]<0||59<n[yt]?yt:n[bt]<0||59<n[bt]?bt:n[xt]<0||999<n[xt]?xt:-1,d(t)._overflowDayOfYear&&(e<pt||mt<e)&&(e=mt),d(t)._overflowWeeks&&-1===e&&(e=wt),d(t)._overflowWeekday&&-1===e&&(e=_t),d(t).overflow=e),t}function he(t,e,n){return null!=t?t:null!=e?e:n}function de(t){var e,i,r,o,a,s=[];if(!t._d){var l,u;for(l=t,u=new Date(n.now()),r=l._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],t._w&&null==t._a[mt]&&null==t._a[gt]&&function(t){var e,n,i,r,o,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=he(e.GG,t._a[pt],zt(Me(),1,4).year),i=he(e.W,1),((r=he(e.E,1))<1||7<r)&&(l=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var u=zt(Me(),o,a);n=he(e.gg,t._a[pt],u.year),i=he(e.w,u.week),null!=e.d?((r=e.d)<0||6<r)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||6<e.e)&&(l=!0)):r=o}i<1||i>Yt(n,o,a)?d(t)._overflowWeeks=!0:null!=l?d(t)._overflowWeekday=!0:(s=Ht(n,i,r,o,a),t._a[pt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=he(t._a[pt],r[pt]),(t._dayOfYear>kt(a)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),i=Wt(a,0,t._dayOfYear),t._a[gt]=i.getUTCMonth(),t._a[mt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&0===t._a[xt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?Wt:function(t,e,n,i,r,o,a){var s=new Date(t,e,n,i,r,o,a);return t<100&&0<=t&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(d(t).weekdayMismatch=!0)}}var fe=/^\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)?)?$/,pe=/^\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)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,me=[["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}/]],ve=[["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/]],ye=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,i,r,o,a,s=t._i,l=fe.exec(s)||pe.exec(s);if(l){for(d(t).iso=!0,e=0,n=me.length;e<n;e++)if(me[e][1].exec(l[1])){r=me[e][0],i=!1!==me[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[3])){o=(l[2]||" ")+ve[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!ge.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(o||"")+(a||""),ke(t)}else t._isValid=!1}var xe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,we={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _e(t){var e,n,i,r=xe.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(r){var o=function(t,e,n,i,r,o){var a=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Pt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&a.push(parseInt(o,10)),a}(r[4],r[3],r[2],r[5],r[6],r[7]);if(n=o,i=t,(e=r[1])&&qt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(d(i).weekdayMismatch=!0,!(i._isValid=!1)))return;t._a=o,t._tzm=function(t,e,n){if(t)return we[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(r[8],r[9],r[10]),t._d=Wt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),d(t).rfc2822=!0}else t._isValid=!1}function ke(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],d(t).empty=!0;var e,i,r,o,a,s,l,c,h=""+t._i,f=h.length,p=0;for(r=U(t._f,t._locale).match(N)||[],e=0;e<r.length;e++)(i=(h.match(ut(o=r[e],t))||[])[0])&&(0<(a=h.substr(0,h.indexOf(i))).length&&d(t).unusedInput.push(a),h=h.slice(h.indexOf(i)+i.length),p+=i.length),H[o]?(i?d(t).empty=!1:d(t).unusedTokens.push(o),s=o,c=t,null!=(l=i)&&u(ht,s)&&ht[s](l,c._a,c,s)):t._strict&&!i&&d(t).unusedTokens.push(o);d(t).charsLeftOver=f-p,0<h.length&&d(t).unusedInput.push(h),t._a[vt]<=12&&!0===d(t).bigHour&&0<t._a[vt]&&(d(t).bigHour=void 0),d(t).parsedDateParts=t._a.slice(0),d(t).meridiem=t._meridiem,t._a[vt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0)),e)}(t._locale,t._a[vt],t._meridiem),de(t),ce(t)}else _e(t);else be(t)}function Se(t){var e,u,h,g,v=t._i,x=t._f;return t._locale=t._locale||ue(t._l),null===v||void 0===x&&""===v?p({nullInput:!0}):("string"==typeof v&&(t._i=v=t._locale.preparse(v)),b(v)?new y(ce(v)):(s(v)?t._d=v:i(x)?function(t){var e,n,i,r,o;if(0===t._f.length)return d(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)o=0,e=m({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],ke(e),f(e)&&(o+=d(e).charsLeftOver,o+=10*d(e).unusedTokens.length,d(e).score=o,(null==i||o<i)&&(i=o,n=e));c(t,n||e)}(t):x?ke(t):o(u=(e=t)._i)?e._d=new Date(n.now()):s(u)?e._d=new Date(u.valueOf()):"string"==typeof u?null===(g=ye.exec((h=e)._i))?(be(h),!1===h._isValid&&(delete h._isValid,_e(h),!1===h._isValid&&(delete h._isValid,n.createFromInputFallback(h)))):h._d=new Date(+g[1]):i(u)?(e._a=l(u.slice(0),function(t){return parseInt(t,10)}),de(e)):r(u)?function(t){if(!t._d){var e=L(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),de(t)}}(e):a(u)?e._d=new Date(u):n.createFromInputFallback(e),f(t)||(t._d=null),t))}function Ce(t,e,n,o,a){var s,l={};return!0!==n&&!1!==n||(o=n,n=void 0),(r(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||i(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=t,l._f=e,l._strict=o,(s=new y(ce(Se(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Me(t,e,n,i){return Ce(t,e,n,i,!1)}n.createFromInputFallback=S("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Te=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()}),De=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:p()});function Ae(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Me();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Oe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ee(t){var e=L(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ct.call(Oe,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Oe.length;++i)if(t[Oe[i]]){if(n)return!1;parseFloat(t[Oe[i]])!==w(t[Oe[i]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ue(),this._bubble()}function Ie(t){return t instanceof Ee}function Pe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Le(t,e){z(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+F(~~(t/60),2)+e+F(~~t%60,2)})}Le("Z",":"),Le("ZZ",""),lt("Z",ot),lt("ZZ",ot),dt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=je(ot,t)});var Re=/([\+\-]|\d\d)/gi;function je(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Re)||["-",0,0],r=60*i[1]+w(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Fe(t,e){var i,r;return e._isUTC?(i=e.clone(),r=(b(t)||s(t)?t.valueOf():Me(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):Me(t).local()}function Ne(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function We(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Be=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,He=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ze(t,e){var n,i,r,o=t,s=null;return Ie(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(o={},e?o[e]=t:o.milliseconds=t):(s=Be.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:w(s[mt])*n,h:w(s[vt])*n,m:w(s[yt])*n,s:w(s[bt])*n,ms:w(Pe(1e3*s[xt]))*n}):(s=He.exec(t))?o={y:Ye(s[2],n="-"===s[1]?-1:1),M:Ye(s[3],n),w:Ye(s[4],n),d:Ye(s[5],n),h:Ye(s[6],n),m:Ye(s[7],n),s:Ye(s[8],n)}:null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(t,e){var n;return t.isValid()&&e.isValid()?(e=Fe(e,t),t.isBefore(e)?n=Ue(t,e):((n=Ue(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Me(o.from),Me(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new Ee(o),Ie(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function Ye(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ue(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function qe(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),$e(this,ze(n="string"==typeof n?+n:n,i),t),this}}function $e(t,e,i,r){var o=e._milliseconds,a=Pe(e._days),s=Pe(e._months);t.isValid()&&(r=null==r||r,s&&Lt(t,Dt(t,"Month")+s*i),a&&At(t,"Date",Dt(t,"Date")+a*i),o&&t._d.setTime(t._d.valueOf()+o*i),r&&n.updateOffset(t,a||s))}ze.fn=Ee.prototype,ze.invalid=function(){return ze(NaN)};var Ve=qe(1,"add"),Ge=qe(-1,"subtract");function Xe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Qe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ue(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ze=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Je(){return this._locale}function Ke(t,e){z(0,[t,t.length],0,e)}function tn(t,e,n,i,r){var o;return null==t?zt(this,i,r).year:((o=Yt(t,i,r))<e&&(e=o),(function(t,e,n,i,r){var o=Ht(t,e,n,i,r),a=Wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}).call(this,t,e,n,i,r))}z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ke("gggg","weekYear"),Ke("ggggg","weekYear"),Ke("GGGG","isoWeekYear"),Ke("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",Q,$),lt("gg",Q,$),lt("GGGG",tt,G),lt("gggg",tt,G),lt("GGGGG",et,X),lt("ggggg",et,X),ft(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=w(t)}),ft(["gg","GG"],function(t,e,i,r){e[r]=n.parseTwoDigitYear(t)}),z("Q",0,"Qo","quarter"),I("quarter","Q"),j("quarter",7),lt("Q",q),dt("Q",function(t,e){e[gt]=3*(w(t)-1)}),z("D",["DD",2],"Do","date"),I("date","D"),j("date",9),lt("D",Q),lt("DD",Q,$),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),dt(["D","DD"],mt),dt("Do",function(t,e){e[mt]=w(t.match(Q)[0])});var en=Tt("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),j("dayOfYear",4),lt("DDD",K),lt("DDDD",V),dt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=w(t)}),z("m",["mm",2],0,"minute"),I("minute","m"),j("minute",14),lt("m",Q),lt("mm",Q,$),dt(["m","mm"],yt);var nn=Tt("Minutes",!1);z("s",["ss",2],0,"second"),I("second","s"),j("second",15),lt("s",Q),lt("ss",Q,$),dt(["s","ss"],bt);var rn,on=Tt("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),j("millisecond",16),lt("S",K,q),lt("SS",K,$),lt("SSS",K,V),rn="SSSS";rn.length<=9;rn+="S")lt(rn,nt);function an(t,e){e[xt]=w(1e3*("0."+t))}for(rn="S";rn.length<=9;rn+="S")dt(rn,an);var sn=Tt("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var ln=y.prototype;function un(t){return t}ln.add=Ve,ln.calendar=function(t,e){var i=t||Me(),r=Fe(i,this).startOf("day"),o=n.calendarFormat(this,r)||"sameElse",a=e&&(D(e[o])?e[o].call(this,i):e[o]);return this.format(a||this.localeData().calendar(o,this,Me(i)))},ln.clone=function(){return new y(this)},ln.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Fe(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=Xe(this,i)/12;break;case"month":o=Xe(this,i);break;case"quarter":o=Xe(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:x(o)},ln.endOf=function(t){return void 0===(t=P(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},ln.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=Y(this,t);return this.localeData().postformat(e)},ln.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Me(t).isValid())?ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ln.fromNow=function(t){return this.from(Me(),t)},ln.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Me(t).isValid())?ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ln.toNow=function(t){return this.to(Me(),t)},ln.get=function(t){return D(this[t=P(t)])?this[t]():this},ln.invalidAt=function(){return d(this).overflow},ln.isAfter=function(t,e){var n=b(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(o(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},ln.isBefore=function(t,e){var n=b(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(o(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},ln.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},ln.isSame=function(t,e){var n,i=b(t)?t:Me(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},ln.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ln.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ln.isValid=function(){return f(this)},ln.lang=Ze,ln.locale=Qe,ln.localeData=Je,ln.max=De,ln.min=Te,ln.parsingFlags=function(){return c({},d(this))},ln.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:R[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=L(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(D(this[t=P(t)]))return this[t](e);return this},ln.startOf=function(t){switch(t=P(t)){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"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},ln.subtract=Ge,ln.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ln.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},ln.toDate=function(){return new Date(this.valueOf())},ln.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?Y(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=Mt,ln.isLeapYear=function(){return St(this.year())},ln.weekYear=function(t){return tn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(t){return tn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ln.month=Rt,ln.daysInMonth=function(){return Ot(this.year(),this.month())},ln.week=ln.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ln.isoWeek=ln.isoWeeks=function(t){var e=zt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ln.weeksInYear=function(){var t=this.localeData()._week;return Yt(this.year(),t.dow,t.doy)},ln.isoWeeksInYear=function(){return Yt(this.year(),1,4)},ln.date=en,ln.day=ln.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},ln.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ln.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=(n=t,i=this.localeData(),"string"==typeof n?i.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?e:e-7)}return this.day()||7;var n,i},ln.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ln.hour=ln.hours=ee,ln.minute=ln.minutes=nn,ln.second=ln.seconds=on,ln.millisecond=ln.milliseconds=sn,ln.utcOffset=function(t,e,i){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=je(ot,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(r=Ne(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?$e(this,ze(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ne(this)},ln.utc=function(t){return this.utcOffset(0,t)},ln.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ne(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=je(rt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Me(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=We,ln.isUTC=We,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=S("dates accessor is deprecated. Use date instead.",en),ln.months=S("months accessor is deprecated. Use month instead",Rt),ln.years=S("years accessor is deprecated. Use year instead",Mt),ln.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ln.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(m(t,this),(t=Se(t))._a){var e=t._isUTC?h(t._a):Me(t._a);this._isDSTShifted=this.isValid()&&0<_(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var cn=O.prototype;function hn(t,e,n,i){var r=ue(),o=h().set(i,e);return r[n](o,t)}function dn(t,e,n){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return hn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=hn(t,i,n,"month");return r}function fn(t,e,n,i){"boolean"==typeof t?a(e)&&(n=e,e=void 0):(e=t,t=!1,a(n=e)&&(n=e,e=void 0)),e=e||"";var r,o=ue(),s=t?o._week.dow:0;if(null!=n)return hn(e,(n+s)%7,i,"day");var l=[];for(r=0;r<7;r++)l[r]=hn(e,(r+s)%7,i,"day");return l}cn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return D(i)?i.call(e,n):i},cn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},cn.invalidDate=function(){return this._invalidDate},cn.ordinal=function(t){return this._ordinal.replace("%d",t)},cn.preparse=un,cn.postformat=un,cn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return D(r)?r(t,e,n,i):r.replace(/%d/i,t)},cn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return D(n)?n(e):n.replace(/%s/i,e)},cn.set=function(t){var e,n;for(n in t)D(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},cn.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},cn.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},cn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return(function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Ct.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ct.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ct.call(this._shortMonthsParse,a))?r:-1!==(r=Ct.call(this._longMonthsParse,a))?r:null:-1!==(r=Ct.call(this._longMonthsParse,a))?r:-1!==(r=Ct.call(this._shortMonthsParse,a))?r:null}).call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},cn.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Nt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},cn.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Nt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},cn.week=function(t){return zt(t,this._week.dow,this._week.doy).week},cn.firstDayOfYear=function(){return this._week.doy},cn.firstDayOfWeek=function(){return this._week.dow},cn.weekdays=function(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},cn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},cn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},cn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return(function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Ct.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ct.call(this._weekdaysParse,a))?r:-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:-1!==(r=Ct.call(this._weekdaysParse,a))?r:-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:-1!==(r=Ct.call(this._weekdaysParse,a))?r:-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:null}).call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},cn.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},cn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Gt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},cn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},cn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},cn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},se("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=S("moment.lang is deprecated. Use moment.locale instead.",se),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ue);var pn=Math.abs;function gn(t,e,n,i){var r=ze(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function mn(t){return t<0?Math.floor(t):Math.ceil(t)}function vn(t){return 4800*t/146097}function yn(t){return 146097*t/4800}function bn(t){return function(){return this.as(t)}}var xn=bn("ms"),wn=bn("s"),_n=bn("m"),kn=bn("h"),Sn=bn("d"),Cn=bn("w"),Mn=bn("M"),Tn=bn("y");function Dn(t){return function(){return this.isValid()?this._data[t]:NaN}}var An=Dn("milliseconds"),On=Dn("seconds"),En=Dn("minutes"),In=Dn("hours"),Pn=Dn("days"),Ln=Dn("months"),Rn=Dn("years"),jn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11},Nn=Math.abs;function Wn(t){return(0<t)-(t<0)||+t}function Bn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Nn(this._milliseconds)/1e3,i=Nn(this._days),r=Nn(this._months);e=x((t=x(n/60))/60),n%=60,t%=60;var o=x(r/12),a=r%=12,s=i,l=e,u=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Wn(this._months)!==Wn(h)?"-":"",p=Wn(this._days)!==Wn(h)?"-":"",g=Wn(this._milliseconds)!==Wn(h)?"-":"";return d+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Hn=Ee.prototype;return Hn.isValid=function(){return this._isValid},Hn.abs=function(){var t=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),t.milliseconds=pn(t.milliseconds),t.seconds=pn(t.seconds),t.minutes=pn(t.minutes),t.hours=pn(t.hours),t.months=pn(t.months),t.years=pn(t.years),this},Hn.add=function(t,e){return gn(this,t,e,1)},Hn.subtract=function(t,e){return gn(this,t,e,-1)},Hn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=P(t))||"year"===t)return n=this._months+vn(e=this._days+i/864e5),"month"===t?n:n/12;switch(e=this._days+Math.round(yn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Hn.asMilliseconds=xn,Hn.asSeconds=wn,Hn.asMinutes=_n,Hn.asHours=kn,Hn.asDays=Sn,Hn.asWeeks=Cn,Hn.asMonths=Mn,Hn.asYears=Tn,Hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},Hn._bubble=function(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return 0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0||(o+=864e5*mn(yn(s)+a),s=a=0),l.milliseconds=o%1e3,t=x(o/1e3),l.seconds=t%60,e=x(t/60),l.minutes=e%60,n=x(e/60),l.hours=n%24,s+=r=x(vn(a+=x(n/24))),a-=mn(yn(r)),i=x(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},Hn.clone=function(){return ze(this)},Hn.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},Hn.milliseconds=An,Hn.seconds=On,Hn.minutes=En,Hn.hours=In,Hn.days=Pn,Hn.weeks=function(){return x(this.days()/7)},Hn.months=Ln,Hn.years=Rn,Hn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,i,r,o,a,s,l,u,c,h=this.localeData(),d=(e=!t,n=h,i=ze(this).abs(),r=jn(i.as("s")),o=jn(i.as("m")),a=jn(i.as("h")),s=jn(i.as("d")),l=jn(i.as("M")),u=jn(i.as("y")),(c=r<=Fn.ss&&["s",r]||r<Fn.s&&["ss",r]||o<=1&&["m"]||o<Fn.m&&["mm",o]||a<=1&&["h"]||a<Fn.h&&["hh",a]||s<=1&&["d"]||s<Fn.d&&["dd",s]||l<=1&&["M"]||l<Fn.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=e,c[3]=0<+this,c[4]=n,(function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}).apply(null,c));return t&&(d=h.pastFuture(+this,d)),h.postformat(d)},Hn.toISOString=Bn,Hn.toString=Bn,Hn.toJSON=Bn,Hn.locale=Qe,Hn.localeData=Je,Hn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bn),Hn.lang=Ze,z("X",0,0,"unix"),z("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),dt("x",function(t,e,n){n._d=new Date(w(t))}),n.version="2.22.2",t=Me,n.fn=ln,n.min=function(){return Ae("isBefore",[].slice.call(arguments,0))},n.max=function(){return Ae("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(t){return Me(1e3*t)},n.months=function(t,e){return dn(t,e,"months")},n.isDate=s,n.locale=se,n.invalid=p,n.duration=ze,n.isMoment=b,n.weekdays=function(t,e,n){return fn(t,e,n,"weekdays")},n.parseZone=function(){return Me.apply(null,arguments).parseZone()},n.localeData=ue,n.isDuration=Ie,n.monthsShort=function(t,e){return dn(t,e,"monthsShort")},n.weekdaysMin=function(t,e,n){return fn(t,e,n,"weekdaysMin")},n.defineLocale=le,n.updateLocale=function(t,e){if(null!=e){var n,i,r=ne;null!=(i=ae(t))&&(r=i._config),(n=new O(e=A(r,e))).parentLocale=ie[t],ie[t]=n,se(t)}else null!=ie[t]&&(null!=ie[t].parentLocale?ie[t]=ie[t].parentLocale:null!=ie[t]&&delete ie[t]);return ie[t]},n.locales=function(){return C(ie)},n.weekdaysShort=function(t,e,n){return fn(t,e,n,"weekdaysShort")},n.normalizeUnits=P,n.relativeTimeRounding=function(t){return void 0===t?jn:"function"==typeof t&&(jn=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Fn[t]&&(void 0===e?Fn[t]:(Fn[t]=e,"s"===t&&(Fn.ss=e-1),!0))},n.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=ln,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},n}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.signalR=e()}(this,function(){"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t};function o(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function s(t){return this instanceof s?(this.v=t,this):new s(t)}var l=Object.freeze({__extends:function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},__assign:r,__rest:function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&(n[i[r]]=t[i[r]])}return n},__decorate:function(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},__param:function(t,e){return function(n,i){e(n,i,t)}},__metadata:function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},__awaiter:function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(a,s)}l((i=i.apply(t,e||[])).next())})},__generator:function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=i[2&o[0]?"return":o[0]?"throw":"next"])&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[0,r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},__exportStar:function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},__values:o,__read:a,__spread:function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t},__await:s,__asyncGenerator:function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise(function(n,i){o.push([t,e,n,i])>1||l(t,e)})})}function l(t,e){try{(n=r[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):h(o[0][2],n)}catch(t){h(o[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function h(t,e){t(e),o.shift(),o.length&&l(o[0][0],o[0][1])}},__asyncDelegator:function(t){var e,n;return e={},i("next"),i("throw",function(t){throw t}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){t[i]&&(e[i]=function(e){return(n=!n)?{value:s(t[i](e)),done:"return"===i}:r?r(e):e})}},__asyncValues:function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):o(t)},__makeTemplateObject:function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},__importStar:function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},__importDefault:function(t){return t&&t.__esModule?t:{default:t}}}),u=(n(function(e,n){e.exports=function(){function e(t){return"function"==typeof t}var n=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,r=void 0,o=void 0,a=function(t,e){f[i]=t,f[i+1]=e,2===(i+=2)&&(o?o(p):b())},s="undefined"!=typeof window?window:void 0,l=s||{},u=l.MutationObserver||l.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(p,1)}}var f=new Array(1e3);function p(){for(var t=0;t<i;t+=2)(0,f[t])(f[t+1]),f[t]=void 0,f[t+1]=void 0;i=0}var g,m,v,y,b=void 0;function x(t,e){var n=this,i=new this.constructor(k);void 0===i[_]&&B(i);var r=n._state;if(r){var o=arguments[r-1];a(function(){return N(r,i,o,n._result)})}else L(n,i,t,e);return i}function w(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(k);return O(e,t),e}c?b=function(){return process.nextTick(p)}:u?(m=0,v=new u(p),y=document.createTextNode(""),v.observe(y,{characterData:!0}),b=function(){y.data=m=++m%2}):h?((g=new MessageChannel).port1.onmessage=p,b=function(){return g.port2.postMessage(0)}):b=void 0===s?function(){try{var t=function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}();return void 0!==(r=t.runOnLoop||t.runOnContext)?function(){r(p)}:d()}catch(t){return d()}}():d();var _=Math.random().toString(36).substring(16);function k(){}var S=void 0,C=1,M=2,T=new j;function D(t){try{return t.then}catch(t){return T.error=t,T}}function A(t,n,i){n.constructor===t.constructor&&i===x&&n.constructor.resolve===w?function(t,e){e._state===C?I(t,e._result):e._state===M?P(t,e._result):L(e,void 0,function(e){return O(t,e)},function(e){return P(t,e)})}(t,n):i===T?(P(t,T.error),T.error=null):void 0===i?I(t,n):e(i)?function(t,e,n){a(function(t){var i=!1,r=function(n,r,o,a){try{n.call(r,function(n){i||(i=!0,e!==n?O(t,n):I(t,n))},function(e){i||(i=!0,P(t,e))})}catch(t){return t}}(n,e);!i&&r&&(i=!0,P(t,r))},t)}(t,n,i):I(t,n)}function O(t,e){var n,i;t===e?P(t,new TypeError("You cannot resolve a promise with itself")):(i=typeof(n=e),null===n||"object"!==i&&"function"!==i?I(t,e):A(t,e,D(e)))}function E(t){t._onerror&&t._onerror(t._result),R(t)}function I(t,e){t._state===S&&(t._result=e,t._state=C,0!==t._subscribers.length&&a(R,t))}function P(t,e){t._state===S&&(t._state=M,t._result=e,a(E,t))}function L(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+C]=n,r[o+M]=i,0===o&&t._state&&a(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i=void 0,r=void 0,o=t._result,a=0;a<e.length;a+=3)r=e[a+n],(i=e[a])?N(n,i,r,o):r(o);t._subscribers.length=0}}function j(){this.error=null}var F=new j;function N(t,n,i,r){var o=e(i),a=void 0,s=void 0,l=void 0,u=void 0;if(o){if((a=function(t,e){try{return t(e)}catch(t){return F.error=t,F}}(i,r))===F?(u=!0,s=a.error,a.error=null):l=!0,n===a)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else a=r,l=!0;n._state!==S||(o&&l?O(n,a):u?P(n,s):t===C?I(n,a):t===M&&P(n,a))}var W=0;function B(t){t[_]=W++,t._state=void 0,t._result=void 0,t._subscribers=[]}var H=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(k),this.promise[_]||B(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&I(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===S&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===w){var r=D(t);if(r===x&&t._state!==S)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(n===z){var o=new n(k);A(o,t,r),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===S&&(this._remaining--,t===M?P(i,n):this._result[e]=n),0===this._remaining&&I(i,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;L(t,void 0,function(t){return n._settledAt(C,e,t)},function(t){return n._settledAt(M,e,t)})},t}(),z=function(){function t(e){this[_]=W++,this._result=this._state=void 0,this._subscribers=[],k!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e(function(e){O(t,e)},function(e){P(t,e)})}catch(e){P(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){throw n})})},t}();return z.prototype.then=x,z.all=function(t){return new H(this,t).promise},z.race=function(t){var e=this;return n(t)?new e(function(n,i){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(n,i)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})},z.resolve=w,z.reject=function(t){var e=new this(k);return P(e,t),e},z._setScheduler=function(t){o=t},z._setAsap=function(t){a=t},z._asap=a,z.polyfill=function(){var e=void 0;if(void 0!==t)e=t;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;if(n){var i=null;try{i=Object.prototype.toString.call(n.resolve())}catch(t){}if("[object Promise]"===i&&!n.cast)return}e.Promise=z},z.Promise=z,z.polyfill(),z}()}),n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,n){var i=this,r=this.constructor.prototype;return(i=t.call(this,e)||this).statusCode=n,i.__proto__=r,i}return l.__extends(e,t),e}(Error);e.HttpError=n;var i=function(t){function e(e){void 0===e&&(e="A timeout occurred.");var n,i=this.constructor.prototype;return(n=t.call(this,e)||this).__proto__=i,n}return l.__extends(e,t),e}(Error);e.TimeoutError=i}));e(u);var c=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"}(e.LogLevel||(e.LogLevel={}))});e(c);var h=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e,n){this.statusCode=t,this.statusText=e,this.content=n};e.HttpResponse=n;var i=function(){function t(){}return t.prototype.get=function(t,e){return this.send(l.__assign({},e,{method:"GET",url:t}))},t.prototype.post=function(t,e){return this.send(l.__assign({},e,{method:"POST",url:t}))},t.prototype.delete=function(t,e){return this.send(l.__assign({},e,{method:"DELETE",url:t}))},t}();e.HttpClient=i;var r=function(t){function e(e){var n=t.call(this)||this;return n.logger=e,n}return l.__extends(e,t),e.prototype.send=function(t){var e=this;return new Promise(function(i,r){var o=new XMLHttpRequest;o.open(t.method,t.url,!0),o.withCredentials=!0,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.headers&&Object.keys(t.headers).forEach(function(e){return o.setRequestHeader(e,t.headers[e])}),t.responseType&&(o.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=function(){o.abort()}),t.timeout&&(o.timeout=t.timeout),o.onload=function(){t.abortSignal&&(t.abortSignal.onabort=null),o.status>=200&&o.status<300?i(new n(o.status,o.statusText,o.response||o.responseText)):r(new u.HttpError(o.statusText,o.status))},o.onerror=function(){e.logger.log(c.LogLevel.Warning,"Error from HTTP request. "+o.status+": "+o.statusText),r(new u.HttpError(o.statusText,o.status))},o.ontimeout=function(){e.logger.log(c.LogLevel.Warning,"Timeout from HTTP request."),r(new u.TimeoutError)},o.send(t.content||"")})},e}(i);e.DefaultHttpClient=r});e(h);var d=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.write=function(e){return""+e+t.RecordSeparator},t.parse=function(e){if(e[e.length-1]!==t.RecordSeparator)throw new Error("Message is incomplete.");var n=e.split(t.RecordSeparator);return n.pop(),n},t.RecordSeparatorCode=30,t.RecordSeparator=String.fromCharCode(t.RecordSeparatorCode),t}();e.TextMessageFormat=n});e(d);var f=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.writeHandshakeRequest=function(t){return d.TextMessageFormat.write(JSON.stringify(t))},t.prototype.parseHandshakeResponse=function(t){var e,n;if(t instanceof ArrayBuffer){var i=new Uint8Array(t);if(-1===(o=i.indexOf(d.TextMessageFormat.RecordSeparatorCode)))throw new Error("Message is incomplete.");var r=o+1;e=String.fromCharCode.apply(null,i.slice(0,r)),n=i.byteLength>r?i.slice(r).buffer:null}else{var o,a=t;if(-1===(o=a.indexOf(d.TextMessageFormat.RecordSeparator)))throw new Error("Message is incomplete.");e=a.substring(0,r=o+1),n=a.length>r?a.substring(r):null}var s=d.TextMessageFormat.parse(e);return[n,JSON.parse(s[0])]},t}();e.HandshakeProtocol=n});e(f);var p=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(e.MessageType||(e.MessageType={}))});e(p);var g=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.log=function(t,e){},t.instance=new t,t}();e.NullLogger=n});e(g);var m=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.isRequired=function(t,e){if(null===t||void 0===t)throw new Error("The '"+e+"' argument is required.")},t.isIn=function(t,e,n){if(!(t in e))throw new Error("Unknown "+n+" value: "+t+".")},t}();function i(t,e){var n=null;return t instanceof ArrayBuffer?(n="Binary data of length "+t.byteLength,e&&(n+=". Content: '"+r(t)+"'")):"string"==typeof t&&(n="String data of length "+t.length,e&&(n+=". Content: '"+t+"'.")),n}function r(t){var e="";return new Uint8Array(t).forEach(function(t){e+="0x"+(t<16?"0":"")+t.toString(16)+" "}),e.substr(0,e.length-1)}e.Arg=n,e.getDataDetail=i,e.formatArrayBuffer=r,e.sendMessage=function(t,e,n,r,o,a,s){return l.__awaiter(this,void 0,void 0,function(){var u,h,d,f;return l.__generator(this,function(l){switch(l.label){case 0:return[4,o()];case 1:return(h=l.sent())&&((f={}).Authorization="Bearer "+h,u=f),t.log(c.LogLevel.Trace,"("+e+" transport) sending data. "+i(a,s)+"."),[4,n.post(r,{content:a,headers:u})];case 2:return d=l.sent(),t.log(c.LogLevel.Trace,"("+e+" transport) request complete. Response status: "+d.statusCode+"."),[2]}})})},e.createLogger=function(t){return void 0===t?new s(c.LogLevel.Information):null===t?g.NullLogger.instance:t.log?t:new s(t)};var o=function(){function t(t){this.observers=[],this.cancelCallback=t}return t.prototype.next=function(t){for(var e=0,n=this.observers;e<n.length;e++)n[e].next(t)},t.prototype.error=function(t){for(var e=0,n=this.observers;e<n.length;e++){var i=n[e];i.error&&i.error(t)}},t.prototype.complete=function(){for(var t=0,e=this.observers;t<e.length;t++){var n=e[t];n.complete&&n.complete()}},t.prototype.subscribe=function(t){return this.observers.push(t),new a(this,t)},t}();e.Subject=o;var a=function(){function t(t,e){this.subject=t,this.observer=e}return t.prototype.dispose=function(){var t=this.subject.observers.indexOf(this.observer);t>-1&&this.subject.observers.splice(t,1),0===this.subject.observers.length&&this.subject.cancelCallback().catch(function(t){})},t}();e.SubjectSubscription=a;var s=function(){function t(t){this.minimumLogLevel=t}return t.prototype.log=function(t,e){if(t>=this.minimumLogLevel)switch(t){case c.LogLevel.Critical:case c.LogLevel.Error:console.error(c.LogLevel[t]+": "+e);break;case c.LogLevel.Warning:console.warn(c.LogLevel[t]+": "+e);break;case c.LogLevel.Information:console.info(c.LogLevel[t]+": "+e);break;default:console.log(c.LogLevel[t]+": "+e)}},t}();e.ConsoleLogger=s});e(m);var v=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=3e4,i=function(){function t(t,e,i){var r=this;m.Arg.isRequired(t,"connection"),m.Arg.isRequired(e,"logger"),m.Arg.isRequired(i,"protocol"),this.serverTimeoutInMilliseconds=n,this.logger=e,this.protocol=i,this.connection=t,this.handshakeProtocol=new f.HandshakeProtocol,this.connection.onreceive=function(t){return r.processIncomingData(t)},this.connection.onclose=function(t){return r.connectionClosed(t)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.id=0}return t.create=function(e,n,i){return new t(e,n,i)},t.prototype.start=function(){return l.__awaiter(this,void 0,void 0,function(){var t;return l.__generator(this,function(e){switch(e.label){case 0:return t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(c.LogLevel.Debug,"Starting HubConnection."),this.receivedHandshakeResponse=!1,[4,this.connection.start(this.protocol.transferFormat)];case 1:return e.sent(),this.logger.log(c.LogLevel.Debug,"Sending handshake request."),[4,this.connection.send(this.handshakeProtocol.writeHandshakeRequest(t))];case 2:return e.sent(),this.logger.log(c.LogLevel.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.configureTimeout(),[2]}})})},t.prototype.stop=function(){return this.logger.log(c.LogLevel.Debug,"Stopping HubConnection."),this.cleanupTimeout(),this.connection.stop()},t.prototype.stream=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this.createStreamInvocation(t,n),o=new m.Subject(function(){var t=e.createCancelInvocation(r.invocationId),n=e.protocol.writeMessage(t);return delete e.callbacks[r.invocationId],e.connection.send(n)});this.callbacks[r.invocationId]=function(t,e){e?o.error(e):t.type===p.MessageType.Completion?t.error?o.error(new Error(t.error)):o.complete():o.next(t.item)};var a=this.protocol.writeMessage(r);return this.connection.send(a).catch(function(t){o.error(t),delete e.callbacks[r.invocationId]}),o},t.prototype.send=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=this.createInvocation(t,e,!0),r=this.protocol.writeMessage(i);return this.connection.send(r)},t.prototype.invoke=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this.createInvocation(t,n,!1);return new Promise(function(t,n){e.callbacks[r.invocationId]=function(e,i){if(i)n(i);else if(e.type===p.MessageType.Completion){var r=e;r.error?n(new Error(r.error)):t(r.result)}else n(new Error("Unexpected message type: "+e.type))};var i=e.protocol.writeMessage(r);e.connection.send(i).catch(function(t){n(t),delete e.callbacks[r.invocationId]})})},t.prototype.on=function(t,e){t&&e&&(t=t.toLowerCase(),this.methods[t]||(this.methods[t]=[]),-1===this.methods[t].indexOf(e)&&this.methods[t].push(e))},t.prototype.off=function(t,e){if(t){t=t.toLowerCase();var n=this.methods[t];if(n)if(e){var i=n.indexOf(e);-1!==i&&(n.splice(i,1),0===n.length&&delete this.methods[t])}else delete this.methods[t]}},t.prototype.onclose=function(t){t&&this.closedCallbacks.push(t)},t.prototype.processIncomingData=function(t){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(t=this.processHandshakeResponse(t),this.receivedHandshakeResponse=!0),t)for(var e=0,n=this.protocol.parseMessages(t,this.logger);e<n.length;e++){var i=n[e];switch(i.type){case p.MessageType.Invocation:this.invokeClientMethod(i);break;case p.MessageType.StreamItem:case p.MessageType.Completion:var r=this.callbacks[i.invocationId];null!=r&&(i.type===p.MessageType.Completion&&delete this.callbacks[i.invocationId],r(i));break;case p.MessageType.Ping:break;case p.MessageType.Close:this.logger.log(c.LogLevel.Information,"Close message received from server."),this.connection.stop(i.error?new Error("Server returned an error on close: "+i.error):null);break;default:this.logger.log(c.LogLevel.Warning,"Invalid message type: "+i.type)}}this.configureTimeout()},t.prototype.processHandshakeResponse=function(t){var e,n,i;try{n=(i=this.handshakeProtocol.parseHandshakeResponse(t))[0],e=i[1]}catch(t){var r;this.logger.log(c.LogLevel.Error,r="Error parsing handshake response: "+t);var o=new Error(r);throw this.connection.stop(o),o}return e.error?(this.logger.log(c.LogLevel.Error,r="Server returned handshake error: "+e.error),this.connection.stop(new Error(r))):this.logger.log(c.LogLevel.Debug,"Server handshake complete."),n},t.prototype.configureTimeout=function(){var t=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return t.serverTimeout()},this.serverTimeoutInMilliseconds))},t.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},t.prototype.invokeClientMethod=function(t){var e=this,n=this.methods[t.target.toLowerCase()];if(n){if(n.forEach(function(n){return n.apply(e,t.arguments)}),t.invocationId){var i="Server requested a response, which is not supported in this version of the client.";this.logger.log(c.LogLevel.Error,i),this.connection.stop(new Error(i))}}else this.logger.log(c.LogLevel.Warning,"No client method with the name '"+t.target+"' found.")},t.prototype.connectionClosed=function(t){var e=this,n=this.callbacks;this.callbacks={},Object.keys(n).forEach(function(e){(0,n[e])(void 0,t||new Error("Invocation canceled due to connection being closed."))}),this.cleanupTimeout(),this.closedCallbacks.forEach(function(n){return n.apply(e,[t])})},t.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},t.prototype.createInvocation=function(t,e,n){if(n)return{arguments:e,target:t,type:p.MessageType.Invocation};var i=this.id;return this.id++,{arguments:e,invocationId:i.toString(),target:t,type:p.MessageType.Invocation}},t.prototype.createStreamInvocation=function(t,e){var n=this.id;return this.id++,{arguments:e,invocationId:n.toString(),target:t,type:p.MessageType.StreamInvocation}},t.prototype.createCancelInvocation=function(t){return{invocationId:t,type:p.MessageType.CancelInvocation}},t}();e.HubConnection=i});e(v);var y=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(e.HttpTransportType||(e.HttpTransportType={})),function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(e.TransferFormat||(e.TransferFormat={}))});e(y);var b=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.isAborted=!1}return t.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(t.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),t}();e.AbortController=n});e(b);var x=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=5e3,i=function(){function t(t,e,i,r,o){this.httpClient=t,this.accessTokenFactory=e||function(){return null},this.logger=i,this.pollAbort=new b.AbortController,this.logMessageContent=r,this.shutdownTimeout=o||n}return Object.defineProperty(t.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),t.prototype.connect=function(t,e){return l.__awaiter(this,void 0,void 0,function(){var n,i,r,o,a;return l.__generator(this,function(s){switch(s.label){case 0:if(m.Arg.isRequired(t,"url"),m.Arg.isRequired(e,"transferFormat"),m.Arg.isIn(e,y.TransferFormat,"transferFormat"),this.url=t,this.logger.log(c.LogLevel.Trace,"(LongPolling transport) Connecting"),e===y.TransferFormat.Binary&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:9e4},e===y.TransferFormat.Binary&&(n.responseType="arraybuffer"),[4,this.accessTokenFactory()];case 1:return i=s.sent(),this.updateHeaderToken(n,i),o=t+"&_="+Date.now(),this.logger.log(c.LogLevel.Trace,"(LongPolling transport) polling: "+o),[4,this.httpClient.get(o,n)];case 2:return 200!==(a=s.sent()).statusCode?(this.logger.log(c.LogLevel.Error,"(LongPolling transport) Unexpected response code: "+a.statusCode),r=new u.HttpError(a.statusText,a.statusCode),this.running=!1):this.running=!0,this.poll(this.url,n,r),[2,Promise.resolve()]}})})},t.prototype.updateHeaderToken=function(t,e){e?t.headers.Authorization="Bearer "+e:t.headers.Authorization&&delete t.headers.Authorization},t.prototype.poll=function(t,e,n){return l.__awaiter(this,void 0,void 0,function(){var i,r,o,a;return l.__generator(this,function(s){switch(s.label){case 0:s.trys.push([0,,8,9]),s.label=1;case 1:return this.running?[4,this.accessTokenFactory()]:[3,7];case 2:i=s.sent(),this.updateHeaderToken(e,i),s.label=3;case 3:return s.trys.push([3,5,,6]),r=t+"&_="+Date.now(),this.logger.log(c.LogLevel.Trace,"(LongPolling transport) polling: "+r),[4,this.httpClient.get(r,e)];case 4:return 204===(o=s.sent()).statusCode?(this.logger.log(c.LogLevel.Information,"(LongPolling transport) Poll terminated by server"),this.running=!1):200!==o.statusCode?(this.logger.log(c.LogLevel.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode),n=new u.HttpError(o.statusText,o.statusCode),this.running=!1):o.content?(this.logger.log(c.LogLevel.Trace,"(LongPolling transport) data received. "+m.getDataDetail(o.content,this.logMessageContent)),this.onreceive&&this.onreceive(o.content)):this.logger.log(c.LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return a=s.sent(),this.running?a instanceof u.TimeoutError?this.logger.log(c.LogLevel.Trace,"(LongPolling transport) Poll timed out, reissuing."):(n=a,this.running=!1):this.logger.log(c.LogLevel.Trace,"(LongPolling transport) Poll errored after shutdown: "+a.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.stopped=!0,this.shutdownTimer&&clearTimeout(this.shutdownTimer),this.onclose&&(this.logger.log(c.LogLevel.Trace,"(LongPolling transport) Firing onclose event. Error: "+(n||"<undefined>")),this.onclose(n)),this.logger.log(c.LogLevel.Trace,"(LongPolling transport) Transport finished."),[7];case 9:return[2]}})})},t.prototype.send=function(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return this.running?[2,m.sendMessage(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},t.prototype.stop=function(){return l.__awaiter(this,void 0,void 0,function(){var t,e,n=this;return l.__generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,,3,4]),this.running=!1,this.logger.log(c.LogLevel.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),t={headers:{}},[4,this.accessTokenFactory()];case 1:return e=i.sent(),this.updateHeaderToken(t,e),[4,this.httpClient.delete(this.url,t)];case 2:return i.sent(),this.logger.log(c.LogLevel.Trace,"(LongPolling transport) DELETE request accepted."),[3,4];case 3:return this.stopped||(this.shutdownTimer=setTimeout(function(){n.logger.log(c.LogLevel.Warning,"(LongPolling transport) server did not terminate after DELETE request, canceling poll."),n.pollAbort.abort()},this.shutdownTimeout)),[7];case 4:return[2]}})})},t}();e.LongPollingTransport=i});e(x);var w=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,n,i){this.httpClient=t,this.accessTokenFactory=e||function(){return null},this.logger=n,this.logMessageContent=i}return t.prototype.connect=function(t,e){return l.__awaiter(this,void 0,void 0,function(){var n,i=this;return l.__generator(this,function(r){switch(r.label){case 0:if(m.Arg.isRequired(t,"url"),m.Arg.isRequired(e,"transferFormat"),m.Arg.isIn(e,y.TransferFormat,"transferFormat"),"undefined"==typeof EventSource)throw new Error("'EventSource' is not supported in your environment.");return this.logger.log(c.LogLevel.Trace,"(SSE transport) Connecting"),[4,this.accessTokenFactory()];case 1:return(n=r.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),this.url=t,[2,new Promise(function(n,r){var o=!1;e!==y.TransferFormat.Text&&r(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));var a=new EventSource(t,{withCredentials:!0});try{a.onmessage=function(t){if(i.onreceive)try{i.logger.log(c.LogLevel.Trace,"(SSE transport) data received. "+m.getDataDetail(t.data,i.logMessageContent)+"."),i.onreceive(t.data)}catch(t){return void(i.onclose&&i.onclose(t))}},a.onerror=function(t){var e=new Error(t.message||"Error occurred");o?i.close(e):r(e)},a.onopen=function(){i.logger.log(c.LogLevel.Information,"SSE connected to "+i.url),i.eventSource=a,o=!0,n()}}catch(t){return Promise.reject(t)}})]}})})},t.prototype.send=function(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return this.eventSource?[2,m.sendMessage(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,t,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},t.prototype.stop=function(){return this.close(),Promise.resolve()},t.prototype.close=function(t){this.eventSource&&(this.eventSource.close(),this.eventSource=null,this.onclose&&this.onclose(t))},t}();e.ServerSentEventsTransport=n});e(w);var _=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,n){this.logger=e,this.accessTokenFactory=t||function(){return null},this.logMessageContent=n}return t.prototype.connect=function(t,e){return l.__awaiter(this,void 0,void 0,function(){var n,i=this;return l.__generator(this,function(r){switch(r.label){case 0:if(m.Arg.isRequired(t,"url"),m.Arg.isRequired(e,"transferFormat"),m.Arg.isIn(e,y.TransferFormat,"transferFormat"),"undefined"==typeof WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return this.logger.log(c.LogLevel.Trace,"(WebSockets transport) Connecting"),[4,this.accessTokenFactory()];case 1:return(n=r.sent())&&(t+=(t.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),[2,new Promise(function(n,r){t=t.replace(/^http/,"ws");var o=new WebSocket(t);e===y.TransferFormat.Binary&&(o.binaryType="arraybuffer"),o.onopen=function(e){i.logger.log(c.LogLevel.Information,"WebSocket connected to "+t),i.webSocket=o,n()},o.onerror=function(t){r(t.error)},o.onmessage=function(t){i.logger.log(c.LogLevel.Trace,"(WebSockets transport) data received. "+m.getDataDetail(t.data,i.logMessageContent)+"."),i.onreceive&&i.onreceive(t.data)},o.onclose=function(t){i.logger.log(c.LogLevel.Trace,"(WebSockets transport) socket closed."),i.onclose&&(!1===t.wasClean||1e3!==t.code?i.onclose(new Error("Websocket closed with status code: "+t.code+" ("+t.reason+")")):i.onclose())}})]}})})},t.prototype.send=function(t){return this.webSocket&&this.webSocket.readyState===WebSocket.OPEN?(this.logger.log(c.LogLevel.Trace,"(WebSockets transport) sending data. "+m.getDataDetail(t,this.logMessageContent)+"."),this.webSocket.send(t),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},t.prototype.stop=function(){return this.webSocket&&(this.webSocket.close(),this.webSocket=null),Promise.resolve()},t}();e.WebSocketTransport=n});e(_);var k=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){void 0===e&&(e={}),this.features={},m.Arg.isRequired(t,"url"),this.logger=m.createLogger(e.logger),this.baseUrl=this.resolveUrl(t),(e=e||{}).accessTokenFactory=e.accessTokenFactory||function(){return null},e.logMessageContent=e.logMessageContent||!1,this.httpClient=e.httpClient||new h.DefaultHttpClient(this.logger),this.connectionState=2,this.options=e}return t.prototype.start=function(t){return m.Arg.isIn(t=t||y.TransferFormat.Binary,y.TransferFormat,"transferFormat"),this.logger.log(c.LogLevel.Debug,"Starting connection with transfer format '"+y.TransferFormat[t]+"'."),2!==this.connectionState?Promise.reject(new Error("Cannot start a connection that is not in the 'Disconnected' state.")):(this.connectionState=0,this.startPromise=this.startInternal(t),this.startPromise)},t.prototype.send=function(t){if(1!==this.connectionState)throw new Error("Cannot send data if the connection is not in the 'Connected' State.");return this.transport.send(t)},t.prototype.stop=function(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){switch(e.label){case 0:this.connectionState=2,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.startPromise];case 2:case 3:return e.sent(),[3,4];case 4:return this.transport?(this.stopError=t,[4,this.transport.stop()]):[3,6];case 5:e.sent(),this.transport=null,e.label=6;case 6:return[2]}})})},t.prototype.startInternal=function(t){return l.__awaiter(this,void 0,void 0,function(){var e,n,i,r,o,a,s,u=this;return l.__generator(this,function(h){switch(h.label){case 0:e=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,h.label=1;case 1:return h.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==y.HttpTransportType.WebSockets?[3,3]:(this.transport=this.constructTransport(y.HttpTransportType.WebSockets),[4,this.transport.connect(e,t)]):[3,5];case 2:return h.sent(),[3,4];case 3:throw Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,i=0,r=function(){var t;return l.__generator(this,function(r){switch(r.label){case 0:return[4,o.getNegotiationResponse(e)];case 1:return n=r.sent(),2===o.connectionState?[2,{value:void 0}]:(n.url&&(e=n.url),n.accessToken&&(t=n.accessToken,o.accessTokenFactory=function(){return t}),i++,[2])}})},o=this,h.label=6;case 6:return[5,r()];case 7:if("object"==typeof(a=h.sent()))return[2,a.value];h.label=8;case 8:if(n.url&&i<100)return[3,6];h.label=9;case 9:if(100===i&&n.url)throw Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(e,this.options.transport,n,t)];case 10:h.sent(),h.label=11;case 11:return this.transport instanceof x.LongPollingTransport&&(this.features.inherentKeepAlive=!0),this.transport.onreceive=this.onreceive,this.transport.onclose=function(t){return u.stopConnection(t)},this.changeState(0,1),[3,13];case 12:throw s=h.sent(),this.logger.log(c.LogLevel.Error,"Failed to start the connection: "+s),this.connectionState=2,this.transport=null,s;case 13:return[2]}})})},t.prototype.getNegotiationResponse=function(t){return l.__awaiter(this,void 0,void 0,function(){var e,n,i,r,o,a;return l.__generator(this,function(s){switch(s.label){case 0:return[4,this.accessTokenFactory()];case 1:(e=s.sent())&&((a={}).Authorization="Bearer "+e,n=a),i=this.resolveNegotiateUrl(t),this.logger.log(c.LogLevel.Debug,"Sending negotiation request: "+i),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.httpClient.post(i,{content:"",headers:n})];case 3:if(200!==(r=s.sent()).statusCode)throw Error("Unexpected status code returned from negotiate "+r.statusCode);return[2,JSON.parse(r.content)];case 4:throw o=s.sent(),this.logger.log(c.LogLevel.Error,"Failed to complete negotiation with the server: "+o),o;case 5:return[2]}})})},t.prototype.createConnectUrl=function(t,e){return t+(-1===t.indexOf("?")?"?":"&")+"id="+e},t.prototype.createTransport=function(t,e,n,i){return l.__awaiter(this,void 0,void 0,function(){var r,o,a,s,u,h;return l.__generator(this,function(l){switch(l.label){case 0:return r=this.createConnectUrl(t,n.connectionId),this.isITransport(e)?(this.logger.log(c.LogLevel.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=e,[4,this.transport.connect(r,i)]):[3,2];case 1:return l.sent(),this.changeState(0,1),[2];case 2:o=0,a=n.availableTransports,l.label=3;case 3:return o<a.length?(s=a[o],this.connectionState=0,"number"!=typeof(u=this.resolveTransport(s,e,i))?[3,8]:(this.transport=this.constructTransport(u),null!==n.connectionId?[3,5]:[4,this.getNegotiationResponse(t)])):[3,9];case 4:n=l.sent(),r=this.createConnectUrl(t,n.connectionId),l.label=5;case 5:return l.trys.push([5,7,,8]),[4,this.transport.connect(r,i)];case 6:return l.sent(),this.changeState(0,1),[2];case 7:return h=l.sent(),this.logger.log(c.LogLevel.Error,"Failed to start the transport '"+y.HttpTransportType[u]+"': "+h),this.connectionState=2,n.connectionId=null,[3,8];case 8:return o++,[3,3];case 9:throw new Error("Unable to initialize any of the available transports.")}})})},t.prototype.constructTransport=function(t){switch(t){case y.HttpTransportType.WebSockets:return new _.WebSocketTransport(this.accessTokenFactory,this.logger,this.options.logMessageContent);case y.HttpTransportType.ServerSentEvents:return new w.ServerSentEventsTransport(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent);case y.HttpTransportType.LongPolling:return new x.LongPollingTransport(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent);default:throw new Error("Unknown transport: "+t+".")}},t.prototype.resolveTransport=function(t,e,n){var i=y.HttpTransportType[t.transport];if(null===i||void 0===i)this.logger.log(c.LogLevel.Debug,"Skipping transport '"+t.transport+"' because it is not supported by this client.");else{var r=t.transferFormats.map(function(t){return y.TransferFormat[t]});if(function(t,e){return!t||0!=(i&t)}(e))if(r.indexOf(n)>=0){if(!(i===y.HttpTransportType.WebSockets&&"undefined"==typeof WebSocket||i===y.HttpTransportType.ServerSentEvents&&"undefined"==typeof EventSource))return this.logger.log(c.LogLevel.Debug,"Selecting transport '"+y.HttpTransportType[i]+"'"),i;this.logger.log(c.LogLevel.Debug,"Skipping transport '"+y.HttpTransportType[i]+"' because it is not supported in your environment.'")}else this.logger.log(c.LogLevel.Debug,"Skipping transport '"+y.HttpTransportType[i]+"' because it does not support the requested transfer format '"+y.TransferFormat[n]+"'.");else this.logger.log(c.LogLevel.Debug,"Skipping transport '"+y.HttpTransportType[i]+"' because it was disabled by the client.")}return null},t.prototype.isITransport=function(t){return t&&"object"==typeof t&&"connect"in t},t.prototype.changeState=function(t,e){return this.connectionState===t&&(this.connectionState=e,!0)},t.prototype.stopConnection=function(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return this.transport=null,(t=this.stopError||t)?this.logger.log(c.LogLevel.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(c.LogLevel.Information,"Connection disconnected."),this.connectionState=2,this.onclose&&this.onclose(t),[2]})})},t.prototype.resolveUrl=function(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if("undefined"==typeof window||!window||!window.document)throw new Error("Cannot resolve '"+t+"'.");var e=window.document.createElement("a");return e.href=t,this.logger.log(c.LogLevel.Information,"Normalizing '"+t+"' to '"+e.href+"'."),e.href},t.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf("?"),n=t.substring(0,-1===e?t.length:e);return"/"!==n[n.length-1]&&(n+="/"),(n+="negotiate")+(-1===e?"":t.substring(e))},t}();e.HttpConnection=n});e(k);var S=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="json",i=function(){function t(){this.name=n,this.version=1,this.transferFormat=y.TransferFormat.Text}return t.prototype.parseMessages=function(t,e){if("string"!=typeof t)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!t)return[];null===e&&(e=g.NullLogger.instance);for(var n=[],i=0,r=d.TextMessageFormat.parse(t);i<r.length;i++){var o=JSON.parse(r[i]);if("number"!=typeof o.type)throw new Error("Invalid payload.");switch(o.type){case p.MessageType.Invocation:this.isInvocationMessage(o);break;case p.MessageType.StreamItem:this.isStreamItemMessage(o);break;case p.MessageType.Completion:this.isCompletionMessage(o);break;case p.MessageType.Ping:case p.MessageType.Close:break;default:e.log(c.LogLevel.Information,"Unknown message type '"+o.type+"' ignored.");continue}n.push(o)}return n},t.prototype.writeMessage=function(t){return d.TextMessageFormat.write(JSON.stringify(t))},t.prototype.isInvocationMessage=function(t){this.assertNotEmptyString(t.target,"Invalid payload for Invocation message."),void 0!==t.invocationId&&this.assertNotEmptyString(t.invocationId,"Invalid payload for Invocation message.")},t.prototype.isStreamItemMessage=function(t){if(this.assertNotEmptyString(t.invocationId,"Invalid payload for StreamItem message."),void 0===t.item)throw new Error("Invalid payload for StreamItem message.")},t.prototype.isCompletionMessage=function(t){if(t.result&&t.error)throw new Error("Invalid payload for Completion message.");!t.result&&t.error&&this.assertNotEmptyString(t.error,"Invalid payload for Completion message."),this.assertNotEmptyString(t.invocationId,"Invalid payload for Completion message.")},t.prototype.assertNotEmptyString=function(t,e){if("string"!=typeof t||""===t)throw new Error(e)},t}();e.JsonHubProtocol=i});e(S);var C=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.configureLogging=function(t){return m.Arg.isRequired(t,"logging"),this.logger=void 0!==t.log?t:new m.ConsoleLogger(t),this},t.prototype.withUrl=function(t,e){return m.Arg.isRequired(t,"url"),this.url=t,this.httpConnectionOptions="object"==typeof e?e:{transport:e},this},t.prototype.withHubProtocol=function(t){return m.Arg.isRequired(t,"protocol"),this.protocol=t,this},t.prototype.build=function(){var t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var e=new k.HttpConnection(this.url,t);return v.HubConnection.create(e,this.logger||g.NullLogger.instance,this.protocol||new S.JsonHubProtocol)},t}();e.HubConnectionBuilder=n});e(C);var M=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION="0.0.0-DEV_BUILD",e.HttpError=u.HttpError,e.TimeoutError=u.TimeoutError,e.DefaultHttpClient=h.DefaultHttpClient,e.HttpClient=h.HttpClient,e.HttpResponse=h.HttpResponse,e.HubConnection=v.HubConnection,e.HubConnectionBuilder=C.HubConnectionBuilder,e.MessageType=p.MessageType,e.LogLevel=c.LogLevel,e.HttpTransportType=y.HttpTransportType,e.TransferFormat=y.TransferFormat,e.NullLogger=g.NullLogger,e.JsonHubProtocol=S.JsonHubProtocol});return e(M),e(n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:Array.prototype.slice,writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),l.__exportStar(M,e)}))}),function(t){t(["jquery"],function(t){return function(){var e,n,i,r=0,o={clear:function(n,i){var r=c();e||a(r),s(n,r,i)||function(n){for(var i=e.children(),r=i.length-1;r>=0;r--)s(t(i[r]),n)}(r)},remove:function(n){var i=c();e||a(i),n&&0===t(":focus",n).length?h(n):e.children().length&&e.remove()},error:function(t,e,n){return u({type:"error",iconClass:c().iconClasses.error,message:t,optionsOverride:n,title:e})},getContainer:a,info:function(t,e,n){return u({type:"info",iconClass:c().iconClasses.info,message:t,optionsOverride:n,title:e})},options:{},subscribe:function(t){n=t},success:function(t,e,n){return u({type:"success",iconClass:c().iconClasses.success,message:t,optionsOverride:n,title:e})},version:"2.1.4",warning:function(t,e,n){return u({type:"warning",iconClass:c().iconClasses.warning,message:t,optionsOverride:n,title:e})}};return o;function a(n,i){return n||(n=c()),(e=t("#"+n.containerId)).length?e:(i&&(e=function(n){return(e=t("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(t(n.target)),e}(n)),e)}function s(e,n,i){return!(!e||!(i&&i.force&&i.force||0===t(":focus",e).length)||(e[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(e)}}),0))}function l(t){n&&n(t)}function u(n){var o=c(),s=n.iconClass||o.iconClass;if(void 0!==n.optionsOverride&&(o=t.extend(o,n.optionsOverride),s=n.optionsOverride.iconClass||s),!function(t,e){if(t.preventDuplicates){if(e.message===i)return!0;i=e.message}return!1}(o,n)){r++,e=a(o,!0);var u=null,d=t("<div/>"),f=t("<div/>"),p=t("<div/>"),g=t("<div/>"),m=t(o.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:r,state:"visible",startTime:new Date,options:o,map:n};return n.iconClass&&d.addClass(o.toastClass).addClass(s),function(){if(n.title){var t=n.title;o.escapeHtml&&(t=b(n.title)),f.append(t).addClass(o.titleClass),d.append(f)}}(),function(){if(n.message){var t=n.message;o.escapeHtml&&(t=b(n.message)),p.append(t).addClass(o.messageClass),d.append(p)}}(),o.closeButton&&(m.addClass(o.closeClass).attr("role","button"),d.prepend(m)),o.progressBar&&(g.addClass(o.progressClass),d.prepend(g)),o.rtl&&d.addClass("rtl"),o.newestOnTop?e.prepend(d):e.append(d),function(){var t="";switch(n.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}d.attr("aria-live",t)}(),d.hide(),d[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(u=setTimeout(x,o.timeOut),v.maxHideTime=parseFloat(o.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,o.progressBar&&(v.intervalId=setInterval(function(){var t=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;g.width(t+"%")},10))),o.closeOnHover&&d.hover(function(){clearTimeout(u),v.hideEta=0,d.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})},function(){(o.timeOut>0||o.extendedTimeOut>0)&&(u=setTimeout(x,o.extendedTimeOut),v.maxHideTime=parseFloat(o.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}),!o.onclick&&o.tapToDismiss&&d.click(x),o.closeButton&&m&&m.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(t),x(!0)}),o.onclick&&d.click(function(t){o.onclick(t),x()}),l(y),o.debug&&console&&console.log(y),d}function b(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function x(e){var n=e&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,i=e&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,r=e&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!t(":focus",d).length||e)return clearTimeout(v.intervalId),d[n]({duration:i,easing:r,complete:function(){h(d),clearTimeout(u),o.onHidden&&"hidden"!==y.state&&o.onHidden(),y.state="hidden",y.endTime=new Date,l(y)}})}}function c(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},o.options)}function h(t){e||(e=a()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),i=void 0))}}()})}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.swal=e():t.swal=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="swal-button";e.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:i,CONFIRM_BUTTON:i+"--confirm",CANCEL_BUTTON:i+"--cancel",DANGER_BUTTON:i+"--danger",BUTTON_LOADING:i+"--loading",BUTTON_LOADER:i+"__loader"},e.default=e.CLASS_NAMES},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNode=function(t){return document.querySelector("."+t)},e.stringToNode=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},e.insertAfter=function(t,e){e.parentNode.insertBefore(t,e.nextSibling)},e.removeNode=function(t){t.parentElement.removeChild(t)},e.throwErr=function(t){throw"SweetAlert: "+(t=t.replace(/ +(?= )/g,"")).trim()},e.isPlainObject=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype},e.ordinalSuffixOf=function(t){var e=t%10,n=t%100;return 1===e&&11!==n?t+"st":2===e&&12!==n?t+"nd":3===e&&13!==n?t+"rd":t+"th"}},function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n(25));var r=n(26);e.overlayMarkup=r.default,i(n(27)),i(n(28)),i(n(29));var o=n(0),a=o.default.MODAL_TITLE,s=o.default.MODAL_TEXT,l=o.default.FOOTER;e.iconMarkup='\n  <div class="'+o.default.ICON+'"></div>',e.titleMarkup='\n  <div class="'+a+'"></div>\n',e.textMarkup='\n  <div class="'+s+'"></div>',e.footerMarkup='\n  <div class="'+l+'"></div>\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1);e.CONFIRM_KEY="confirm",e.CANCEL_KEY="cancel";var r={visible:!0,text:null,value:null,className:"",closeModal:!0},o=Object.assign({},r,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},r,{text:"OK",value:!0});e.defaultButtonList={cancel:o,confirm:a};var s=function(t){switch(t){case e.CONFIRM_KEY:return a;case e.CANCEL_KEY:return o;default:var n=t.charAt(0).toUpperCase()+t.slice(1);return Object.assign({},r,{text:n,value:t})}},l=function(t,e){var n=s(t);return!0===e?Object.assign({},n,{visible:!0}):"string"==typeof e?Object.assign({},n,{visible:!0,text:e}):i.isPlainObject(e)?Object.assign({visible:!0},n,e):Object.assign({},n,{visible:!1})},u=function(t){var n={};switch(t.length){case 1:n[e.CANCEL_KEY]=Object.assign({},o,{visible:!1});break;case 2:n[e.CANCEL_KEY]=l(e.CANCEL_KEY,t[0]),n[e.CONFIRM_KEY]=l(e.CONFIRM_KEY,t[1]);break;default:i.throwErr("Invalid number of 'buttons' in array ("+t.length+").\n      If you want more than 2 buttons, you need to use an object!")}return n};e.getButtonListOpts=function(t){var n=e.defaultButtonList;return"string"==typeof t?n[e.CONFIRM_KEY]=l(e.CONFIRM_KEY,t):Array.isArray(t)?n=u(t):i.isPlainObject(t)?n=function(t){for(var e={},n=0,i=Object.keys(t);n<i.length;n++){var r=i[n],a=l(r,t[r]);e[r]=a}return e.cancel||(e.cancel=o),e}(t):!0===t?n=u([!0,!0]):!1===t?n=u([!1,!1]):void 0===t&&(n=e.defaultButtonList),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(2),o=n(0),a=o.default.MODAL,s=o.default.OVERLAY,l=n(30),u=n(31),c=n(32),h=n(33);e.injectElIntoModal=function(t){var e=i.getNode(a),n=i.stringToNode(t);return e.appendChild(n),n},e.initModalContent=function(t){(function(t,e){!function(t){t.className=a,t.textContent=""}(t);var n=e.className;n&&t.classList.add(n)})(i.getNode(a),t),l.default(t.icon),u.initTitle(t.title),u.initText(t.text),h.default(t.content),c.default(t.buttons,t.dangerMode)},e.default=function(){var t=i.getNode(s),e=i.stringToNode(r.modalMarkup);t.appendChild(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),r={isOpen:!1,promise:null,actions:{},timer:null},o=Object.assign({},r);e.resetState=function(){o=Object.assign({},r)},e.setActionValue=function(t){if("string"==typeof t)return a(i.CONFIRM_KEY,t);for(var e in t)a(e,t[e])};var a=function(t,e){o.actions[t]||(o.actions[t]={}),Object.assign(o.actions[t],{value:e})};e.setActionOptionsFor=function(t,e){var n=(void 0===e?{}:e).closeModal;Object.assign(o.actions[t],{closeModal:void 0===n||n})},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(3),o=n(0),a=o.default.OVERLAY,s=o.default.SHOW_MODAL,l=o.default.BUTTON,u=o.default.BUTTON_LOADING,c=n(5);e.openModal=function(){i.getNode(a).classList.add(s),c.default.isOpen=!0},e.onAction=function(t){void 0===t&&(t=r.CANCEL_KEY);var e=c.default.actions[t],n=e.value;!1===e.closeModal?i.getNode(l+"--"+t).classList.add(u):(i.getNode(a).classList.remove(s),c.default.isOpen=!1),c.default.promise.resolve(n)},e.getState=function(){var t=Object.assign({},c.default);return delete t.promise,delete t.timer,t},e.stopLoading=function(){for(var t=document.querySelectorAll("."+l),e=0;e<t.length;e++)t[e].classList.remove(u)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(e){t.exports=e.sweetAlert=n(9)}).call(e,n(7))},function(t,e,n){(function(e){t.exports=e.swal=n(10)}).call(e,n(7))},function(t,e,n){"undefined"!=typeof window&&n(11),n(16);var i=n(23).default;t.exports=i},function(t,e,n){var i=n(12);"string"==typeof i&&(i=[[t.i,i,""]]),n(14)(i,{insertAt:"top",transform:void 0}),i.locals&&(t.exports=i.locals)},function(t,e,n){(t.exports=n(13)(void 0)).push([t.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button[not:disabled]:hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel[not:disabled]:hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger[not:disabled]:hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */";return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function i(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=d[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(c(i.parts[o],e))}else{var a=[];for(o=0;o<i.parts.length;o++)a.push(c(i.parts[o],e));d[i.id]={id:i.id,refs:1,parts:a}}}}function r(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function o(t,e){var n=p(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=v[v.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),v.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=v.indexOf(t);e>=0&&v.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),o(t,e),e}function l(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),o(t,e),e}function u(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function c(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var u=m++;n=g||(g=s(e)),i=h.bind(null,n,u,!1),r=h.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(e),i=(function(t,e,n){var i=n.css,r=n.sourceMap;(e.convertToAbsoluteUrls||void 0===e.convertToAbsoluteUrls&&r)&&(i=y(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([i],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}).bind(null,n,e),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),i=(function(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}).bind(null,n),r=function(){a(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function h(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}var d={},f=function(t){var e;return function(){return void 0===e&&(e=(function(){return window&&document&&document.all&&!window.atob}).apply(this,arguments)),e}}(),p=function(t){var e={};return function(t){return void 0===e[t]&&(e[t]=(function(t){return document.querySelector(t)}).call(this,t)),e[t]}}(),g=null,m=0,v=[],y=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=f()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return i(n,e),function(t){for(var o=[],a=0;a<n.length;a++)(s=d[n[a].id]).refs--,o.push(s);for(t&&i(r(t,e),e),a=0;a<o.length;a++){var s;if(0===(s=o[a]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete d[s.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(t,e,n){var i=n(17);"undefined"==typeof window||window.Promise||(window.Promise=i),n(21),String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0;if(0===i)return!1;for(var r=0|e,o=Math.max(r>=0?r:i-Math.abs(r),0);o<i;){if(function(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}(n[o],t))return!0;o++}return!1}}),"undefined"!=typeof window&&[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})},function(t,e,n){(function(e){!function(n){function i(){}function r(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(t,this)}function o(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,r._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var i;try{i=n(t._value)}catch(t){return void s(e.promise,t)}a(e.promise,i)}else(1===t._state?a:s)(e.promise,t._value)})):t._deferreds.push(e)}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof r)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void u(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&r._immediateFn(function(){t._handled||r._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function u(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}var c=setTimeout;r.prototype.catch=function(t){return this.then(null,t)},r.prototype.then=function(t,e){var n=new this.constructor(i);return o(this,new function(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}(t,e,n)),n},r.all=function(t){var e=Array.prototype.slice.call(t);return new r(function(t,n){function i(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){i(o,t)},n)}e[o]=a,0==--r&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var r=e.length,o=0;o<e.length;o++)i(o,e[o])})},r.resolve=function(t){return t&&"object"==typeof t&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(t){return new r(function(e,n){n(t)})},r.race=function(t){return new r(function(e,n){for(var i=0,r=t.length;i<r;i++)t[i].then(e,n)})},r._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){c(t,0)},r._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},r._setImmediateFn=function(t){r._immediateFn=t},r._setUnhandledRejectionFn=function(t){r._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=r:n.Promise||(n.Promise=r)}(this)}).call(e,n(18).setImmediate)},function(t,e,n){function i(t,e){this._id=t,this._clearFn=e}var r=Function.prototype.apply;e.setTimeout=function(){return new i(r.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new i(r.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(19),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){"use strict";function i(t){delete s[t]}function r(t){if(l)setTimeout(r,0,t);else{var e=s[t];if(e){l=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var o,a=1,s={},l=!1,u=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?o=function(t){e.nextTick(function(){r(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&r(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),o=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){r(t.data)},o=function(e){t.port2.postMessage(e)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;o=function(e){var n=u.createElement("script");n.onreadystatechange=function(){r(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():o=function(t){setTimeout(r,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];return s[a]={callback:t,args:e},o(a),a++},c.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(7),n(20))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(){p&&d&&(p=!1,d.length?f=d.concat(f):g=-1,f.length&&a())}function a(){if(!p){var t=r(o);p=!0;for(var e=f.length;e;){for(d=f,f=[];++g<e;)d&&d[g].run();g=-1,e=f.length}d=null,p=!1,function(t){if(c===clearTimeout)return clearTimeout(t);if((c===i||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}(t)}}function s(t,e){this.fun=t,this.array=e}function l(){}var u,c,h=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{c="function"==typeof clearTimeout?clearTimeout:i}catch(t){c=i}}();var d,f=[],p=!1,g=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new s(t,e)),1!==f.length||p||r(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.prependListener=l,h.prependOnceListener=l,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){"use strict";n(22).polyfill()},function(t,e,n){"use strict";function i(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(void 0!==r&&null!==r)for(var o=Object.keys(Object(r)),a=0,s=o.length;a<s;a++){var l=o[a],u=Object.getOwnPropertyDescriptor(r,l);void 0!==u&&u.enumerable&&(n[l]=r[l])}}return n}t.exports={assign:i,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:i})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(24),r=n(6),o=n(5),a=n(36),s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("undefined"!=typeof window){var n=a.getOpts.apply(void 0,t);return new Promise(function(t,e){o.default.promise={resolve:t,reject:e},i.default(n),setTimeout(function(){r.openModal()})})}};s.close=r.onAction,s.getState=r.getState,s.setActionValue=o.setActionValue,s.stopLoading=r.stopLoading,s.setDefaults=a.setDefaults,e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0).default.MODAL,o=n(4),a=n(34),s=n(35),l=n(1);e.init=function(t){i.getNode(r)||(document.body||l.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),a.default(),o.default()),o.initModalContent(t),s.default(t)},e.default=e.init},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.modalMarkup='\n  <div class="'+i.default.MODAL+'" role="dialog" aria-modal="true"></div>',e.default=e.modalMarkup},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.default='<div \n    class="'+i.default.OVERLAY+'"\n    tabIndex="-1">\n  </div>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0).default.ICON;e.errorIconMarkup=function(){var t=i+"--error",e=t+"__line";return'\n    <div class="'+t+'__x-mark">\n      <span class="'+e+" "+e+'--left"></span>\n      <span class="'+e+" "+e+'--right"></span>\n    </div>\n  '},e.warningIconMarkup=function(){var t=i+"--warning";return'\n    <span class="'+t+'__body">\n      <span class="'+t+'__dot"></span>\n    </span>\n  '},e.successIconMarkup=function(){var t=i+"--success";return'\n    <span class="'+t+"__line "+t+'__line--long"></span>\n    <span class="'+t+"__line "+t+'__line--tip"></span>\n\n    <div class="'+t+'__ring"></div>\n    <div class="'+t+'__hide-corners"></div>\n  '}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.contentMarkup='\n  <div class="'+i.default.CONTENT+'">\n\n  </div>\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.buttonMarkup='\n  <div class="'+i.default.BUTTON_CONTAINER+'">\n\n    <button\n      class="'+i.default.BUTTON+'"\n    ></button>\n\n    <div class="'+i.default.BUTTON_LOADER+'">\n      <div></div>\n      <div></div>\n      <div></div>\n    </div>\n\n  </div>\n'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(2),o=n(0),a=o.default.ICON,s=o.default.ICON_CUSTOM,l=["error","warning","success","info"],u={error:r.errorIconMarkup(),warning:r.warningIconMarkup(),success:r.successIconMarkup()};e.default=function(t){if(t){var e=i.injectElIntoModal(r.iconMarkup);l.includes(t)?function(t,e){e.classList.add(a+"--"+t);var n=u[t];n&&(e.innerHTML=n)}(t,e):function(t,e){e.classList.add(s);var n=document.createElement("img");n.src=t,e.appendChild(n)}(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(4),o=function(t){navigator.userAgent.includes("AppleWebKit")&&(t.style.display="none",t.style.display="")};e.initTitle=function(t){if(t){var e=r.injectElIntoModal(i.titleMarkup);e.textContent=t,o(e)}},e.initText=function(t){if(t){var e=document.createDocumentFragment();t.split("\n").forEach(function(t,n,i){e.appendChild(document.createTextNode(t)),n<i.length-1&&e.appendChild(document.createElement("br"))});var n=r.injectElIntoModal(i.textMarkup);n.appendChild(e),o(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(4),o=n(0),a=o.default.BUTTON,s=o.default.DANGER_BUTTON,l=n(3),u=n(2),c=n(6),h=n(5),d=function(t,e,n){var r=e.text,o=e.value,d=e.className,f=e.closeModal,p=i.stringToNode(u.buttonMarkup),g=p.querySelector("."+a);g.classList.add(a+"--"+t),d&&(Array.isArray(d)?d:d.split(" ")).filter(function(t){return t.length>0}).forEach(function(t){g.classList.add(t)}),n&&t===l.CONFIRM_KEY&&g.classList.add(s),g.textContent=r;var m={};return m[t]=o,h.setActionValue(m),h.setActionOptionsFor(t,{closeModal:f}),g.addEventListener("click",function(){return c.onAction(t)}),p};e.default=function(t,e){var n=r.injectElIntoModal(u.footerMarkup);for(var i in t){var o=t[i],a=d(i,o,e);o.visible&&n.appendChild(a)}0===n.children.length&&n.remove()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),r=n(4),o=n(2),a=n(5),s=n(6),l=n(0).default.CONTENT,u=function(t){t.addEventListener("input",function(t){a.setActionValue(t.target.value)}),t.addEventListener("keyup",function(t){if("Enter"===t.key)return s.onAction(i.CONFIRM_KEY)}),setTimeout(function(){t.focus(),a.setActionValue("")},0)};e.default=function(t){if(t){var e=r.injectElIntoModal(o.contentMarkup),n=t.element;"string"==typeof n?function(t,e,n){var i=document.createElement(e),r=l+"__"+e;for(var o in i.classList.add(r),n)i[o]=n[o];"input"===e&&u(i),t.appendChild(i)}(e,n,t.attributes):e.appendChild(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(2);e.default=function(){var t=i.stringToNode(r.overlayMarkup);document.body.appendChild(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),r=n(6),o=n(1),a=n(3),s=n(0),l=s.default.MODAL,u=s.default.BUTTON,c=s.default.OVERLAY,h=function(t){if(i.default.isOpen)switch(t.key){case"Escape":return r.onAction(a.CANCEL_KEY)}},d=function(t){if(i.default.isOpen)switch(t.key){case"Tab":return function(t){t.preventDefault(),p()}(t)}},f=function(t){if(i.default.isOpen)return"Tab"===t.key&&t.shiftKey?function(t){t.preventDefault(),g()}(t):void 0},p=function(){var t=o.getNode(u);t&&(t.tabIndex=0,t.focus())},g=function(){var t=o.getNode(l).querySelectorAll("."+u),e=t[t.length-1];e&&e.focus()},m=function(t){if(o.getNode(c)===t.target)return r.onAction(a.CANCEL_KEY)};e.default=function(t){var e;t.closeOnEsc?document.addEventListener("keyup",h):document.removeEventListener("keyup",h),t.dangerMode?p():g(),(e=o.getNode(l).querySelectorAll("."+u)).length&&(e[e.length-1].addEventListener("keydown",d),e[0].addEventListener("keydown",f)),function(t){var e=o.getNode(c);e.removeEventListener("click",m),t&&e.addEventListener("click",m)}(t.closeOnClickOutside),function(t){i.default.timer&&clearTimeout(i.default.timer),t&&(i.default.timer=window.setTimeout(function(){return r.onAction(a.CANCEL_KEY)},t))}(t.timer)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(3),o=n(37),a=n(38),s={title:null,text:null,icon:null,buttons:r.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},l=Object.assign({},s);e.setDefaults=function(t){l=Object.assign({},s,t)};var u=function(t){var e=t&&t.button,n=t&&t.buttons;return void 0!==e&&void 0!==n&&i.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==e?{confirm:e}:n},c=function(t){return i.ordinalSuffixOf(t+1)},h=function(t,e){i.throwErr(c(e)+" argument ('"+t+"') is invalid")},d=function(t,e){var n=t+1,r=e[n];i.isPlainObject(r)||void 0===r||i.throwErr("Expected "+c(n)+" argument ('"+r+"') to be a plain object")},f=function(t,e,n,r){var o=e instanceof Element;if("string"==typeof e){if(0===n)return{text:e};if(1===n)return{text:e,title:r[0]};if(2===n)return d(n,r),{icon:e};h(e,n)}else{if(o&&0===n)return d(n,r),{content:e};if(i.isPlainObject(e))return function(t,e){var n=t+1,r=e[n];void 0!==r&&i.throwErr("Unexpected "+c(n)+" argument ("+r+")")}(n,r),e;h(e,n)}};e.getOpts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={};t.forEach(function(e,i){var r=f(0,e,i,t);Object.assign(n,r)});var i=u(n);n.buttons=r.getButtonListOpts(i),delete n.button,n.content=o.getContentOpts(n.content);var c=Object.assign({},s,l,n);return Object.keys(c).forEach(function(t){a.DEPRECATED_OPTS[t]&&a.logDeprecation(t)}),c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r={element:"input",attributes:{placeholder:""}};e.getContentOpts=function(t){return i.isPlainObject(t)?Object.assign({},t):t instanceof Element?{element:t}:"input"===t?r:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.logDeprecation=function(t){var n=e.DEPRECATED_OPTS[t],i=n.replacement,r=n.subOption,o=n.link,a='SweetAlert warning: "'+t+'" option has been '+(n.onlyRename?"renamed":"deprecated")+".";i&&(a+=" Please use"+(r?' "'+r+'" in ':" ")+'"'+i+'" instead.');var s="https://sweetalert.js.org";a+=o?" More details: "+s+o:" More details: "+s+"/guides/#upgrading-from-1x",console.warn(a)},e.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])}),function(){"use strict";function t(t){t.fn._fadeIn=t.fn.fadeIn;var e=t.noop||function(){},n=/MSIE/.test(navigator.userAgent),i=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),r=(document,t.isFunction(document.createElement("div").style.setExpression));t.blockUI=function(t){s(window,t)},t.unblockUI=function(t){l(window,t)},t.growlUI=function(e,n,i,r){var o=t('<div class="growlUI"></div>');e&&o.append("<h1>"+e+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===i&&(i=3e3);var a=function(e){t.blockUI({message:o,fadeIn:void 0!==(e=e||{}).fadeIn?e.fadeIn:700,fadeOut:void 0!==e.fadeOut?e.fadeOut:1e3,timeout:void 0!==e.timeout?e.timeout:i,centerY:!1,showOverlay:!1,onUnblock:r,css:t.blockUI.defaults.growlCSS})};a(),o.css("opacity"),o.mouseover(function(){a({fadeIn:0,timeout:3e4});var e=t(".blockMsg");e.stop(),e.fadeTo(300,1)}).mouseout(function(){t(".blockMsg").fadeOut(1e3)})},t.fn.block=function(e){if(this[0]===window)return t.blockUI(e),this;var n=t.extend({},t.blockUI.defaults,e||{});return this.each(function(){var e=t(this);n.ignoreIfBlocked&&e.data("blockUI.isBlocked")||e.unblock({fadeOut:0})}),this.each(function(){"static"==t.css(this,"position")&&(this.style.position="relative",t(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,e)})},t.fn.unblock=function(e){return this[0]===window?(t.unblockUI(e),this):this.each(function(){l(this,e)})},t.blockUI.version=2.7,t.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function s(s,u){var h,p,g=s==window,m=u&&void 0!==u.message?u.message:void 0;if(!(u=t.extend({},t.blockUI.defaults,u||{})).ignoreIfBlocked||!t(s).data("blockUI.isBlocked")){if(u.overlayCSS=t.extend({},t.blockUI.defaults.overlayCSS,u.overlayCSS||{}),h=t.extend({},t.blockUI.defaults.css,u.css||{}),u.onOverlayClick&&(u.overlayCSS.cursor="pointer"),p=t.extend({},t.blockUI.defaults.themedCSS,u.themedCSS||{}),m=void 0===m?u.message:m,g&&o&&l(window,{fadeOut:0}),m&&"string"!=typeof m&&(m.parentNode||m.jquery)){var v=m.jquery?m[0]:m,y={};t(s).data("blockUI.history",y),y.el=v,y.parent=v.parentNode,y.display=v.style.display,y.position=v.style.position,y.parent&&y.parent.removeChild(v)}t(s).data("blockUI.onUnblock",u.onUnblock);var b,x,w,_,k=u.baseZ;b=t(n||u.forceIframe?'<iframe class="blockUI" style="z-index:'+k+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+u.iframeSrc+'"></iframe>':'<div class="blockUI" style="display:none"></div>'),x=t(u.theme?'<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+k+++';display:none"></div>':'<div class="blockUI blockOverlay" style="z-index:'+k+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),u.theme&&g?(_='<div class="blockUI '+u.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(k+10)+';display:none;position:fixed">',u.title&&(_+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(u.title||"&nbsp;")+"</div>"),_+='<div class="ui-widget-content ui-dialog-content"></div>',_+="</div>"):u.theme?(_='<div class="blockUI '+u.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(k+10)+';display:none;position:absolute">',u.title&&(_+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(u.title||"&nbsp;")+"</div>"),_+='<div class="ui-widget-content ui-dialog-content"></div>',_+="</div>"):_=g?'<div class="blockUI '+u.blockMsgClass+' blockPage" style="z-index:'+(k+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+u.blockMsgClass+' blockElement" style="z-index:'+(k+10)+';display:none;position:absolute"></div>',w=t(_),m&&(u.theme?(w.css(p),w.addClass("ui-widget-content")):w.css(h)),u.theme||x.css(u.overlayCSS),x.css("position",g?"fixed":"absolute"),(n||u.forceIframe)&&b.css("opacity",0);var S=[b,x,w],C=t(g?"body":s);t.each(S,function(){this.appendTo(C)}),u.theme&&u.draggable&&t.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var M=r&&(!t.support.boxModel||t("object,embed",g?null:s).length>0);if(i||M){if(g&&u.allowBodyStretch&&t.support.boxModel&&t("html,body").css("height","100%"),(i||!t.support.boxModel)&&!g)var T=f(s,"borderTopWidth"),D=f(s,"borderLeftWidth"),A=T?"(0 - "+T+")":0,O=D?"(0 - "+D+")":0;t.each(S,function(t,e){var n=e[0].style;if(n.position="absolute",t<2)n.setExpression("height",g?"Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+u.quirksmodeOffsetHack+') + "px"':'this.parentNode.offsetHeight + "px"'),n.setExpression("width",g?'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"':'this.parentNode.offsetWidth + "px"'),O&&n.setExpression("left",O),A&&n.setExpression("top",A);else if(u.centerY)g&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!u.centerY&&g){var i=u.css&&u.css.top?parseInt(u.css.top,10):0;n.setExpression("top","((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+i+') + "px"')}})}if(m&&(u.theme?w.find(".ui-widget-content").append(m):w.append(m),(m.jquery||m.nodeType)&&t(m).show()),(n||u.forceIframe)&&u.showOverlay&&b.show(),u.fadeIn){var E=u.onBlock?u.onBlock:e,I=m?E:e;u.showOverlay&&x._fadeIn(u.fadeIn,u.showOverlay&&!m?E:e),m&&w._fadeIn(u.fadeIn,I)}else u.showOverlay&&x.show(),m&&w.show(),u.onBlock&&u.onBlock.bind(w)();if(c(1,s,u),g?(a=t(u.focusableElements,o=w[0]),u.focusInput&&setTimeout(d,20)):function(t,e,n){var i=t.parentNode,r=t.style,o=(i.offsetWidth-t.offsetWidth)/2-f(i,"borderLeftWidth"),a=(i.offsetHeight-t.offsetHeight)/2-f(i,"borderTopWidth");e&&(r.left=o>0?o+"px":"0"),n&&(r.top=a>0?a+"px":"0")}(w[0],u.centerX,u.centerY),u.timeout){var P=setTimeout(function(){g?t.unblockUI(u):t(s).unblock(u)},u.timeout);t(s).data("blockUI.timeout",P)}}}function l(e,n){var i,r,s=e==window,l=t(e),h=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),n=t.extend({},t.blockUI.defaults,n||{}),c(0,e,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),r=s?t("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(r.length>1&&(r[1].style.cursor=n.cursorReset),r.length>2&&(r[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(i=r.length,r.stop().fadeOut(n.fadeOut,function(){0==--i&&u(r,h,n,e)})):u(r,h,n,e)}function u(e,n,i,r){var o=t(r);if(!o.data("blockUI.isBlocked")){e.each(function(t,e){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof i.onUnblock&&i.onUnblock(r,i);var a=t(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function c(e,n,i){var r=n==window,a=t(n);if((e||(!r||o)&&(r||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",e),r&&i.bindEvents&&(!e||i.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";e?t(document).bind(s,i,h):t(document).unbind(s,h)}}function h(e){if("keydown"===e.type&&e.keyCode&&9==e.keyCode&&o&&e.data.constrainTabKey){var n=e.shiftKey&&e.target===a[0];if(!e.shiftKey&&e.target===a[a.length-1]||n)return setTimeout(function(){d(n)},10),!1}var i=e.data,r=t(e.target);return r.hasClass("blockOverlay")&&i.onOverlayClick&&i.onOverlayClick(e),r.parents("div."+i.blockMsgClass).length>0||0===r.parents().children().filter("div.blockUI").length}function d(t){if(a){var e=a[!0===t?a.length-1:0];e&&e.focus()}}function f(e,n){return parseInt(t.css(e,n),10)||0}}"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(),function(t,e){"object"==typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function t(t,e){var n,i=document.createElement(t||"div");for(n in e)i[n]=e[n];return i}function e(t){for(var e=1,n=arguments.length;n>e;e++)t.appendChild(arguments[e]);return t}function n(t,e,n,i){var r=["opacity",e,~~(100*t),n,i].join("-"),o=.01+n/i*100,a=Math.max(1-(1-t)/e*(100-o),t),s=l.substring(0,l.indexOf("Animation")).toLowerCase();return h[r]||(u.insertRule("@"+(s&&"-"+s+"-"||"")+"keyframes "+r+"{0%{opacity:"+a+"}"+o+"%{opacity:"+t+"}"+(o+.01)+"%{opacity:1}"+(o+e)%100+"%{opacity:"+t+"}100%{opacity:"+a+"}}",u.cssRules.length),h[r]=1),r}function i(t,e){var n,i,r=t.style;if(void 0!==r[e=e.charAt(0).toUpperCase()+e.slice(1)])return e;for(i=0;i<c.length;i++)if(void 0!==r[n=c[i]+e])return n}function r(t,e){for(var n in e)t.style[i(t,n)||n]=e[n];return t}function o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)void 0===t[i]&&(t[i]=n[i])}return t}function a(t,e){return"string"==typeof t?t:t[e%t.length]}function s(t){this.opts=o(t||{},s.defaults,d)}var l,u,c=["webkit","Moz","ms","O"],h={},d={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",opacity:.25,rotate:0,direction:1,speed:1,trail:100,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:!1,hwaccel:!1,position:"absolute"};if(s.defaults={},o(s.prototype,{spin:function(e){this.stop();var n=this,i=n.opts,o=n.el=t(null,{className:i.className});if(r(o,{position:i.position,width:0,zIndex:i.zIndex,left:i.left,top:i.top}),e&&e.insertBefore(o,e.firstChild||null),o.setAttribute("role","progressbar"),n.lines(o,n.opts),!l){var a,s=0,u=(i.lines-1)*(1-i.direction)/2,c=i.fps,h=c/i.speed,d=(1-i.opacity)/(h*i.trail/100),f=h/i.lines;!function t(){s++;for(var e=0;e<i.lines;e++)a=Math.max(1-(s+(i.lines-e)*f)%h*d,i.opacity),n.opacity(o,e*i.direction+u,a,i);n.timeout=n.el&&setTimeout(t,~~(1e3/c))}()}return n},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(i,o){function s(e,n){return r(t(),{position:"absolute",width:o.scale*(o.length+o.width)+"px",height:o.scale*o.width+"px",background:e,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*c+o.rotate)+"deg) translate("+o.scale*o.radius+"px,0)",borderRadius:(o.corners*o.scale*o.width>>1)+"px"})}for(var u,c=0,h=(o.lines-1)*(1-o.direction)/2;c<o.lines;c++)u=r(t(),{position:"absolute",top:1+~(o.scale*o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:l&&n(o.opacity,o.trail,h+c*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&e(u,r(s("#000","0 0 4px #000"),{top:"2px"})),e(i,e(u,s(a(o.color,c),"0 0 1px rgba(0,0,0,.1)")));return i},opacity:function(t,e,n){e<t.childNodes.length&&(t.childNodes[e].style.opacity=n)}}),"undefined"!=typeof document){u=function(){var n=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}();var f=r(t("group"),{behavior:"url(#default#VML)"});!i(f,"transform")&&f.adj?function(){function n(e,n){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}u.addRule(".spin-vml","behavior:url(#default#VML)"),s.prototype.lines=function(t,i){function o(){return r(n("group",{coordsize:c+" "+c,coordorigin:-u+" "+-u}),{width:c,height:c})}function s(t,s,l){e(d,e(r(o(),{rotation:360/i.lines*t+"deg",left:~~s}),e(r(n("roundrect",{arcsize:i.corners}),{width:u,height:i.scale*i.width,left:i.scale*i.radius,top:-i.scale*i.width>>1,filter:l}),n("fill",{color:a(i.color,t),opacity:i.opacity}),n("stroke",{opacity:0}))))}var l,u=i.scale*(i.length+i.width),c=2*i.scale*u,h=-(i.width+i.length)*i.scale*2+"px",d=r(o(),{position:"absolute",top:h,left:h});if(i.shadow)for(l=1;l<=i.lines;l++)s(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=i.lines;l++)s(l);return e(t,d)},s.prototype.opacity=function(t,e,n,i){var r=t.firstChild;i=i.shadow&&i.lines||0,r&&e+i<r.childNodes.length&&(r=(r=(r=r.childNodes[e+i])&&r.firstChild)&&r.firstChild)&&(r.opacity=n)}}():l=i(f,"animation")}return s}),function(t){if("object"==typeof exports)t(require("jquery"),require("spin.js"));else if("function"==typeof define&&define.amd)define(["jquery","spin"],t);else{if(!window.Spinner)throw new Error("Spin.js not present");t(window.jQuery,window.Spinner)}}(function(t,e){t.fn.spin=function(n,i){return this.each(function(){var r=t(this),o=r.data();o.spinner&&(o.spinner.stop(),delete o.spinner),!1!==n&&(n=t.extend({color:i||r.css("color")},t.fn.spin.presets[n]||n),o.spinner=new e(n).spin(this))})},t.fn.spin.presets={tiny:{lines:8,length:2,width:2,radius:3},small:{lines:8,length:4,width:3,radius:5},large:{lines:10,length:8,width:4,radius:8}}}),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Push=t()}(function(){return function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){return r(e[a][1][t]||t)},c,c.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default={errors:{incompatible:"PushError: Push.js is incompatible with browser.",invalid_plugin:"PushError: plugin class missing from plugin manifest (invalid plugin). Please check the documentation.",invalid_title:"PushError: title of notification must be a string",permission_denied:"PushError: permission request declined",sw_notification_error:"PushError: could not show a ServiceWorker notification due to the following reason: ",sw_registration_error:"PushError: could not register the ServiceWorker due to the following reason: ",unknown_interface:"PushError: unable to create notification: unknown interface"}}},{}],2:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._win=e,this.DEFAULT="default",this.GRANTED="granted",this.DENIED="denied",this._permissions=[this.GRANTED,this.DEFAULT,this.DENIED]}return i(t,[{key:"request",value:function(t,e){var n=this,i=this.get(),r=function(i){i===n.GRANTED||0===i?t&&t():e&&e()};i!==this.DEFAULT?r(i):this._win.Notification&&this._win.Notification.requestPermission?this._win.Notification.requestPermission().then(r).catch(function(){e&&e()}):this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._win.webkitNotifications.requestPermission(r):t&&t()}},{key:"has",value:function(){return this.get()===this.GRANTED}},{key:"get",value:function(){return this._win.Notification&&this._win.Notification.permission?this._win.Notification.permission:this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._permissions[this._win.webkitNotifications.checkPermission()]:navigator.mozNotification?this.GRANTED:this._win.external&&this._win.external.msIsSiteMode?this._win.external.msIsSiteMode()?this.GRANTED:this.DEFAULT:this.GRANTED}}]),t}();n.default=r},{}],3:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=i(t("./Messages")),a=i(t("./Permission")),s=i(t("./Util")),l=i(t("./agents/DesktopAgent")),u=i(t("./agents/MobileChromeAgent")),c=i(t("./agents/MobileFirefoxAgent")),h=i(t("./agents/MSAgent")),d=i(t("./agents/WebKitAgent")),f=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._currentId=0,this._notifications={},this._win=e,this.Permission=new a.default(e),this._agents={desktop:new l.default(e),chrome:new u.default(e),firefox:new c.default(e),ms:new h.default(e),webkit:new d.default(e)},this._configuration={serviceWorker:"/serviceWorker.min.js",fallback:function(t){}}}return r(t,[{key:"_closeNotification",value:function(t){var e=!0,n=this._notifications[t];if(void 0!==n){if(e=this._removeNotification(t),this._agents.desktop.isSupported())this._agents.desktop.close(n);else if(this._agents.webkit.isSupported())this._agents.webkit.close(n);else{if(!this._agents.ms.isSupported())throw e=!1,new Error(o.default.errors.unknown_interface);this._agents.ms.close()}return e}return!1}},{key:"_addNotification",value:function(t){var e=this._currentId;return this._notifications[e]=t,this._currentId++,e}},{key:"_removeNotification",value:function(t){var e=!1;return this._notifications.hasOwnProperty(t)&&(delete this._notifications[t],e=!0),e}},{key:"_prepareNotification",value:function(t,e){var n,i=this;return n={get:function(){return i._notifications[t]},close:function(){i._closeNotification(t)}},e.timeout&&setTimeout(function(){n.close()},e.timeout),n}},{key:"_serviceWorkerCallback",value:function(t,e,n){var i=this,r=this._addNotification(t[t.length-1]);navigator.serviceWorker.addEventListener("message",function(t){var e=JSON.parse(t.data);"close"===e.action&&Number.isInteger(e.id)&&i._removeNotification(e.id)}),n(this._prepareNotification(r,e))}},{key:"_createCallback",value:function(t,e,n){var i,r=this,o=null;if(e=e||{},i=function(t){r._removeNotification(t),s.default.isFunction(e.onClose)&&e.onClose.call(r,o)},this._agents.desktop.isSupported())try{o=this._agents.desktop.create(t,e)}catch(i){var a=this._currentId,l=this.config().serviceWorker;this._agents.chrome.isSupported()&&this._agents.chrome.create(a,t,e,l,function(t){return r._serviceWorkerCallback(t,e,n)})}else this._agents.webkit.isSupported()?o=this._agents.webkit.create(t,e):this._agents.firefox.isSupported()?this._agents.firefox.create(t,e):this._agents.ms.isSupported()?o=this._agents.ms.create(t,e):(e.title=t,this.config().fallback(e));if(null!==o){var u=this._addNotification(o),c=this._prepareNotification(u,e);s.default.isFunction(e.onShow)&&o.addEventListener("show",e.onShow),s.default.isFunction(e.onError)&&o.addEventListener("error",e.onError),s.default.isFunction(e.onClick)&&o.addEventListener("click",e.onClick),o.addEventListener("close",function(){i(u)}),o.addEventListener("cancel",function(){i(u)}),n(c)}n(null)}},{key:"create",value:function(t,e){var n,i=this;if(!s.default.isString(t))throw new Error(o.default.errors.invalid_title);return n=this.Permission.has()?function(n,r){try{i._createCallback(t,e,n)}catch(t){r(t)}}:function(n,r){i.Permission.request(function(){try{i._createCallback(t,e,n)}catch(t){r(t)}},function(){r(o.default.errors.permission_denied)})},new Promise(n)}},{key:"count",value:function(){var t=void 0,e=0;for(t in this._notifications)this._notifications.hasOwnProperty(t)&&e++;return e}},{key:"close",value:function(t){var e=void 0;for(e in this._notifications)if(this._notifications.hasOwnProperty(e)&&this._notifications[e].tag===t)return this._closeNotification(e)}},{key:"clear",value:function(){var t=void 0,e=!0;for(t in this._notifications)this._notifications.hasOwnProperty(t)&&(e=e&&this._closeNotification(t));return e}},{key:"supported",value:function(){var t=!1;for(var e in this._agents)this._agents.hasOwnProperty(e)&&(t=t||this._agents[e].isSupported());return t}},{key:"config",value:function(t){return(void 0!==t||null!==t&&s.default.isObject(t))&&s.default.objectMerge(this._configuration,t),this._configuration}},{key:"extend",value:function(t){var e,n={}.hasOwnProperty;if(!n.call(t,"plugin"))throw new Error(o.default.errors.invalid_plugin);for(var i in n.call(t,"config")&&s.default.isObject(t.config)&&null!==t.config&&this.config(t.config),e=new(0,t.plugin)(this.config()))n.call(e,i)&&s.default.isFunction(e[i])&&(this[i]=e[i])}}]),t}();n.default=f},{"./Messages":1,"./Permission":2,"./Util":4,"./agents/DesktopAgent":6,"./agents/MSAgent":7,"./agents/MobileChromeAgent":8,"./agents/MobileFirefoxAgent":9,"./agents/WebKitAgent":10}],4:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"isUndefined",value:function(t){return void 0===t}},{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return t&&"[object Function]"==={}.toString.call(t)}},{key:"isObject",value:function(t){return"object"==(void 0===t?"undefined":i(t))}},{key:"objectMerge",value:function(t,e){for(var n in e)t.hasOwnProperty(n)&&this.isObject(t[n])&&this.isObject(e[n])?this.objectMerge(t[n],e[n]):t[n]=e[n]}}]),t}();n.default=o},{}],5:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._win=e}},{}],6:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=i(t("./AbstractAgent")),a=i(t("../Util")),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"isSupported",value:function(){return void 0!==this._win.Notification}},{key:"create",value:function(t,e){return new this._win.Notification(t,{icon:a.default.isString(e.icon)||a.default.isUndefined(e.icon)?e.icon:e.icon.x32,body:e.body,tag:e.tag,requireInteraction:e.requireInteraction})}},{key:"close",value:function(t){t.close()}}]),e}();n.default=s},{"../Util":4,"./AbstractAgent":5}],7:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=i(t("./AbstractAgent")),a=i(t("../Util")),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"isSupported",value:function(){return void 0!==this._win.external&&void 0!==this._win.external.msIsSiteMode}},{key:"create",value:function(t,e){return this._win.external.msSiteModeClearIconOverlay(),this._win.external.msSiteModeSetIconOverlay(a.default.isString(e.icon)||a.default.isUndefined(e.icon)?e.icon:e.icon.x16,t),this._win.external.msSiteModeActivate(),null}},{key:"close",value:function(){this._win.external.msSiteModeClearIconOverlay()}}]),e}();n.default=s},{"../Util":4,"./AbstractAgent":5}],8:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=i(t("./AbstractAgent")),a=i(t("../Util")),s=i(t("../Messages")),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,o.default),r(e,[{key:"isSupported",value:function(){return void 0!==this._win.navigator&&void 0!==this._win.navigator.serviceWorker}},{key:"getFunctionBody",value:function(t){return t.toString().match(/function[^{]+{([\s\S]*)}$/)[1]}},{key:"create",value:function(t,e,n,i,r){var o=this;this._win.navigator.serviceWorker.register(i),this._win.navigator.serviceWorker.ready.then(function(i){var l={id:t,link:n.link,origin:document.location.href,onClick:a.default.isFunction(n.onClick)?o.getFunctionBody(n.onClick):"",onClose:a.default.isFunction(n.onClose)?o.getFunctionBody(n.onClose):""};void 0!==n.data&&null!==n.data&&(l=Object.assign(l,n.data)),i.showNotification(e,{icon:n.icon,body:n.body,vibrate:n.vibrate,tag:n.tag,data:l,requireInteraction:n.requireInteraction,silent:n.silent}).then(function(){i.getNotifications().then(function(t){i.active.postMessage(""),r(t)})}).catch(function(t){throw new Error(s.default.errors.sw_notification_error+t.message)})}).catch(function(t){throw new Error(s.default.errors.sw_registration_error+t.message)})}},{key:"close",value:function(){}}]),e}();n.default=l},{"../Messages":1,"../Util":4,"./AbstractAgent":5}],9:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(t("./AbstractAgent")),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.default),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.navigator.mozNotification}},{key:"create",value:function(t,e){var n=this._win.navigator.mozNotification.createNotification(t,e.body,e.icon);return n.show(),n}}]),e}();n.default=o},{"./AbstractAgent":5}],10:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(t("./AbstractAgent")),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.default),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.webkitNotifications}},{key:"create",value:function(t,e){var n=this._win.webkitNotifications.createNotification(e.icon,t,e.body);return n.show(),n}},{key:"close",value:function(t){t.cancel()}}]),e}();n.default=o},{"./AbstractAgent":5}],11:[function(t,e,n){"use strict";var i=function(t){return t&&t.__esModule?t:{default:t}}(t("./classes/Push"));e.exports=new i.default("undefined"!=typeof window?window:void 0)},{"./classes/Push":3}]},{},[11])(11)}),function(e){e.fn.extend({slimScroll:function(n){var i=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},n);return this.each(function(){function r(t){if(u){var n=0;(t=t||window.event).wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3),e(t.target||t.srcTarget||t.srcElement).closest("."+i.wrapperClass).is(y.parent())&&o(n,!0),t.preventDefault&&!v&&t.preventDefault(),v||(t.returnValue=!1)}}function o(t,e,n){v=!1;var r=y.outerHeight()-x.outerHeight();e&&(e=parseInt(x.css("top"))+t*parseInt(i.wheelStep)/100*x.outerHeight(),e=Math.min(Math.max(e,0),r),e=0<t?Math.ceil(e):Math.floor(e),x.css({top:e+"px"})),e=(g=parseInt(x.css("top"))/(y.outerHeight()-x.outerHeight()))*(y[0].scrollHeight-y.outerHeight()),n&&(t=(e=t)/y[0].scrollHeight*y.outerHeight(),t=Math.min(Math.max(t,0),r),x.css({top:t+"px"})),y.scrollTop(e),y.trigger("slimscrolling",~~e),s(),l()}function a(){p=Math.max(y.outerHeight()/y[0].scrollHeight*y.outerHeight(),30),x.css({height:p+"px"});var t=p==y.outerHeight()?"none":"block";x.css({display:t})}function s(){a(),clearTimeout(d),g==~~g?(v=i.allowPageScroll,m!=g&&y.trigger("slimscroll",0==~~g?"top":"bottom")):v=!1,m=g,p>=y.outerHeight()?v=!0:(x.stop(!0,!0).fadeIn("fast"),i.railVisible&&w.stop(!0,!0).fadeIn("fast"))}function l(){i.alwaysVisible||(d=setTimeout(function(){i.disableFadeOut&&u||c||h||(x.fadeOut("slow"),w.fadeOut("slow"))},1e3))}var u,c,h,d,f,p,g,m,v=!1,y=e(this);if(y.parent().hasClass(i.wrapperClass)){var b=y.scrollTop(),x=y.siblings("."+i.barClass),w=y.siblings("."+i.railClass);if(a(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){y.parent().css("height","auto"),y.css("height","auto");var _=y.parent().parent().height();y.parent().css("height",_),y.css("height",_)}else"height"in n&&(_=n.height,y.parent().css("height",_),y.css("height",_));if("scrollTo"in n)b=parseInt(i.scrollTo);else if("scrollBy"in n)b+=parseInt(i.scrollBy);else if("destroy"in n)return x.remove(),w.remove(),void y.unwrap();o(b,!1,!0)}}else e.isPlainObject(n)&&"destroy"in n||(i.height="auto"==i.height?y.parent().height():i.height,b=e("<div></div>").addClass(i.wrapperClass).css({position:"relative",overflow:"hidden",width:i.width,height:i.height}),y.css({overflow:"hidden",width:i.width,height:i.height}),w=e("<div></div>").addClass(i.railClass).css({width:i.size,height:"100%",position:"absolute",top:0,display:i.alwaysVisible&&i.railVisible?"block":"none","border-radius":i.railBorderRadius,background:i.railColor,opacity:i.railOpacity,zIndex:90}),x=e("<div></div>").addClass(i.barClass).css({background:i.color,width:i.size,position:"absolute",top:0,opacity:i.opacity,display:i.alwaysVisible?"block":"none","border-radius":i.borderRadius,BorderRadius:i.borderRadius,MozBorderRadius:i.borderRadius,WebkitBorderRadius:i.borderRadius,zIndex:99}),w.css(_="right"==i.position?{right:i.distance}:{left:i.distance}),x.css(_),y.wrap(b),y.parent().append(x),y.parent().append(w),i.railDraggable&&x.bind("mousedown",function(n){var i=e(document);return h=!0,t=parseFloat(x.css("top")),pageY=n.pageY,i.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,x.css("top",currTop),o(0,x.position().top,!1)}),i.bind("mouseup.slimscroll",function(t){h=!1,l(),i.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),w.hover(function(){s()},function(){l()}),x.hover(function(){c=!0},function(){c=!1}),y.hover(function(){u=!0,s(),l()},function(){u=!1,l()}),y.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(f=t.originalEvent.touches[0].pageY)}),y.bind("touchmove",function(t){v||t.originalEvent.preventDefault(),t.originalEvent.touches.length&&(o((f-t.originalEvent.touches[0].pageY)/i.touchScrollStep,!0),f=t.originalEvent.touches[0].pageY)}),a(),"bottom"===i.start?(x.css({top:y.outerHeight()-x.outerHeight()}),o(0,!0)):"top"!==i.start&&(o(e(i.start).position().top,null,!0),i.alwaysVisible||x.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",r,!1),this.addEventListener("mousewheel",r,!1)):document.attachEvent("onmousewheel",r))}),this}}),e.fn.extend({slimscroll:e.fn.slimScroll})}(jQuery),function(t,e){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.Waves=e.call(t),t.Waves}):"object"==typeof exports?module.exports=e.call(t):t.Waves=e.call(t)}("object"==typeof global?global:this,function(){"use strict";function t(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function e(e){var n=l.call(e);return"[object String]"===n?s(e):t(e)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(n)&&e.hasOwnProperty("length")?e:function(e){return t(e)&&e.nodeType>0}(e)?[e]:[]}function n(t){var e,n,i={top:0,left:0},r=t&&t.ownerDocument;return e=r.documentElement,void 0!==t.getBoundingClientRect&&(i=t.getBoundingClientRect()),{top:i.top+(n=null!==r&&r===r.window?r:9===r.nodeType&&r.defaultView).pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}}function i(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}function r(t,e,n){if(n){n.classList.remove("waves-rippling");var r=n.getAttribute("data-x"),o=n.getAttribute("data-y"),a=n.getAttribute("data-scale"),s=n.getAttribute("data-translate"),l=350-(Date.now()-Number(n.getAttribute("data-hold")));l<0&&(l=0),"mousemove"===t.type&&(l=150);var u="mousemove"===t.type?2500:c.duration;setTimeout(function(){n.setAttribute("style",i({top:o+"px",left:r+"px",opacity:"0","-webkit-transition-duration":u+"ms","-moz-transition-duration":u+"ms","-o-transition-duration":u+"ms","transition-duration":u+"ms","-webkit-transform":a+" "+s,"-moz-transform":a+" "+s,"-ms-transform":a+" "+s,"-o-transform":a+" "+s,transform:a+" "+s})),setTimeout(function(){try{e.removeChild(n)}catch(t){return!1}},u)},l)}}function o(t){var e=function(t){if(!1===d.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;n.parentElement;){if(!(n instanceof SVGElement)&&n.classList.contains("waves-effect")){e=n;break}n=n.parentElement}return e}(t);if(null!==e){if(e.disabled||e.getAttribute("disabled")||e.classList.contains("disabled"))return;if(d.registerEvent(t),"touchstart"===t.type&&c.delay){var n=!1,i=setTimeout(function(){i=null,c.show(t,e)},c.delay),r=function(r){i&&(clearTimeout(i),i=null,c.show(t,e)),n||(n=!0,c.hide(r,e)),a()},o=function(t){i&&(clearTimeout(i),i=null),r(t),a()};e.addEventListener("touchmove",o,!1),e.addEventListener("touchend",r,!1),e.addEventListener("touchcancel",r,!1);var a=function(){e.removeEventListener("touchmove",o),e.removeEventListener("touchend",r),e.removeEventListener("touchcancel",r)}}else c.show(t,e),u&&(e.addEventListener("touchend",c.hide,!1),e.addEventListener("touchcancel",c.hide,!1)),e.addEventListener("mouseup",c.hide,!1),e.addEventListener("mouseleave",c.hide,!1)}}var a=a||{},s=document.querySelectorAll.bind(document),l=Object.prototype.toString,u="ontouchstart"in window,c={duration:750,delay:200,show:function(t,e,r){if(2===t.button)return!1;e=e||this;var o=document.createElement("div");o.className="waves-ripple waves-rippling",e.appendChild(o);var a=n(e),s=0,l=0;"touches"in t&&t.touches.length?(s=t.touches[0].pageY-a.top,l=t.touches[0].pageX-a.left):(s=t.pageY-a.top,l=t.pageX-a.left),l=l>=0?l:0,s=s>=0?s:0;var u="scale("+e.clientWidth/100*3+")",h="translate(0,0)";r&&(h="translate("+r.x+"px, "+r.y+"px)"),o.setAttribute("data-hold",Date.now()),o.setAttribute("data-x",l),o.setAttribute("data-y",s),o.setAttribute("data-scale",u),o.setAttribute("data-translate",h);var d={top:s+"px",left:l+"px"};o.classList.add("waves-notransition"),o.setAttribute("style",i(d)),o.classList.remove("waves-notransition"),d["-webkit-transform"]=u+" "+h,d["-moz-transform"]=u+" "+h,d["-ms-transform"]=u+" "+h,d["-o-transform"]=u+" "+h,d.transform=u+" "+h,d.opacity="1";var f="mousemove"===t.type?2500:c.duration;d["-webkit-transition-duration"]=f+"ms",d["-moz-transition-duration"]=f+"ms",d["-o-transition-duration"]=f+"ms",d["transition-duration"]=f+"ms",o.setAttribute("style",i(d))},hide:function(t,e){for(var n=(e=e||this).getElementsByClassName("waves-rippling"),i=0,o=n.length;i<o;i++)r(t,e,n[i]);u&&(e.removeEventListener("touchend",c.hide),e.removeEventListener("touchcancel",c.hide)),e.removeEventListener("mouseup",c.hide),e.removeEventListener("mouseleave",c.hide)}},h={input:function(t){var e=t.parentNode;if("i"!==e.tagName.toLowerCase()||!e.classList.contains("waves-effect")){var n=document.createElement("i");n.className=t.className+" waves-input-wrapper",t.className="waves-button-input",e.replaceChild(n,t),n.appendChild(t);var i=window.getComputedStyle(t,null);n.setAttribute("style","color:"+i.color+";background:"+i.backgroundColor),t.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(t){var e=t.parentNode;if("i"!==e.tagName.toLowerCase()||!e.classList.contains("waves-effect")){var n=document.createElement("i");e.replaceChild(n,t),n.appendChild(t)}}},d={touches:0,allowEvent:function(t){var e=!0;return/^(mousedown|mousemove)$/.test(t.type)&&d.touches&&(e=!1),e},registerEvent:function(t){var e=t.type;"touchstart"===e?d.touches+=1:/^(touchend|touchcancel)$/.test(e)&&setTimeout(function(){d.touches&&(d.touches-=1)},500)}};return a.init=function(t){var e=document.body;"duration"in(t=t||{})&&(c.duration=t.duration),"delay"in t&&(c.delay=t.delay),u&&(e.addEventListener("touchstart",o,!1),e.addEventListener("touchcancel",d.registerEvent,!1),e.addEventListener("touchend",d.registerEvent,!1)),e.addEventListener("mousedown",o,!1)},a.attach=function(t,n){t=e(t),"[object Array]"===l.call(n)&&(n=n.join(" ")),n=n?" "+n:"";for(var i,r,o=0,a=t.length;o<a;o++)r=(i=t[o]).tagName.toLowerCase(),-1!==["input","img"].indexOf(r)&&(h[r](i),i=i.parentElement),-1===i.className.indexOf("waves-effect")&&(i.className+=" waves-effect"+n)},a.ripple=function(t,i){var r=(t=e(t)).length;if((i=i||{}).wait=i.wait||0,i.position=i.position||null,r)for(var o,a,s,l={},u=0,h={type:"mousedown",button:1};u<r;u++)o=t[u],a=i.position||{x:o.clientWidth/2,y:o.clientHeight/2},s=n(o),l.x=s.left+a.x,l.y=s.top+a.y,h.pageX=l.x,h.pageY=l.y,c.show(h,o),i.wait>=0&&null!==i.wait&&setTimeout(function(t,e){return function(){c.hide(t,e)}}({type:"mouseup",button:1},o),i.wait)},a.calm=function(t){for(var n={type:"mouseup",button:1},i=0,r=(t=e(t)).length;i<r;i++)c.hide(n,t[i])},a.displayEffect=function(t){a.init(t)},a}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(t){var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,this.dataOptions(),i),this.init()};e.DEFAULTS={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function(t,e){return t.toFixed(e.decimals)},onUpdate:null,onComplete:null},e.prototype.init=function(){this.value=this.options.from,this.loops=Math.ceil(this.options.speed/this.options.refreshInterval),this.loopCount=0,this.increment=(this.options.to-this.options.from)/this.loops},e.prototype.dataOptions=function(){var t={from:this.$element.data("from"),to:this.$element.data("to"),speed:this.$element.data("speed"),refreshInterval:this.$element.data("refresh-interval"),decimals:this.$element.data("decimals")},e=Object.keys(t);for(var n in e){var i=e[n];void 0===t[i]&&delete t[i]}return t},e.prototype.update=function(){this.value+=this.increment,this.loopCount++,this.render(),"function"==typeof this.options.onUpdate&&this.options.onUpdate.call(this.$element,this.value),this.loopCount>=this.loops&&(clearInterval(this.interval),this.value=this.options.to,"function"==typeof this.options.onComplete&&this.options.onComplete.call(this.$element,this.value))},e.prototype.render=function(){var t=this.options.formatter.call(this.$element,this.value,this.options);this.$element.text(t)},e.prototype.restart=function(){this.stop(),this.init(),this.start()},e.prototype.start=function(){this.stop(),this.render(),this.interval=setInterval(this.update.bind(this),this.options.refreshInterval)},e.prototype.stop=function(){this.interval&&clearInterval(this.interval)},e.prototype.toggle=function(){this.interval?this.stop():this.start()},t.fn.countTo=function(n){return this.each(function(){var i=t(this),r=i.data("countTo"),o="object"==typeof n?n:{},a="string"==typeof n?n:"start";(!r||"object"==typeof n)&&(r&&r.stop(),i.data("countTo",r=new e(this,o))),r[a].call(r)})}}),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Raphael=e():t.Raphael=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var i,r;i=[n(1),n(3),n(4)],void 0===(r=(function(t){return t}).apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(2)],void 0===(r=(function(t){function e(n){if(e.is(n,"function"))return m?n():t.on("raphael.DOMload",n);if(e.is(n,Y))return e._engine.create[C](e,n.splice(0,3+e.is(n[0],H))).add(n);var i=Array.prototype.slice.call(arguments,0);if(e.is(i[i.length-1],"function")){var r=i.pop();return m?r.call(e._engine.create[C](e,i)):t.on("raphael.DOMload",function(){r.call(e._engine.create[C](e,i))})}return e._engine.create[C](e,arguments)}function n(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[w](i)&&(e[i]=n(t[i]));return e}function i(t,e,n){return function i(){var r=Array.prototype.slice.call(arguments,0),o=r.join("\u2400"),a=i.cache=i.cache||{},s=i.count=i.count||[];return a[w](o)?(function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}(s,o),n?n(a[o]):a[o]):(s.length>=1e3&&delete a[s.shift()],s.push(o),a[o]=t[C](e,r),n?n(a[o]):a[o])}}function r(){return this.hex}function o(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4==i?o[3]={x:+t[0],y:+t[1]}:r-2==i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(6*o[1].x-o[0].x+o[2].x)/6,(6*o[1].y-o[0].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}function a(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n}function s(t,e,n,i,r,o,s,l,u){null==u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var g=c*h[p]+c,m=a(g,t,n,r,s),v=a(g,e,i,o,l);f+=d[p]*R.sqrt(m*m+v*v)}return c*f}function l(t,e,n,i,r,o,a,s){if(!(j(t,n)<F(r,a)||F(t,n)>j(r,a)||j(e,i)<F(o,s)||F(e,i)>j(o,s))){var l=(t-n)*(o-s)-(e-i)*(r-a);if(l){var u=((t*i-e*n)*(r-a)-(t-n)*(r*s-o*a))/l,c=((t*i-e*n)*(o-s)-(e-i)*(r*s-o*a))/l,h=+u.toFixed(2),d=+c.toFixed(2);if(!(h<+F(t,n).toFixed(2)||h>+j(t,n).toFixed(2)||h<+F(r,a).toFixed(2)||h>+j(r,a).toFixed(2)||d<+F(e,i).toFixed(2)||d>+j(e,i).toFixed(2)||d<+F(o,s).toFixed(2)||d>+j(o,s).toFixed(2)))return{x:u,y:c}}}}function u(t,n,i){var r=e.bezierBBox(t),o=e.bezierBBox(n);if(!e.isBBoxIntersect(r,o))return i?0:[];for(var a=s.apply(0,t),u=s.apply(0,n),c=j(~~(a/5),1),h=j(~~(u/5),1),d=[],f=[],p={},g=i?0:[],m=0;m<c+1;m++){var v=e.findDotsAtSegment.apply(e,t.concat(m/c));d.push({x:v.x,y:v.y,t:m/c})}for(m=0;m<h+1;m++)v=e.findDotsAtSegment.apply(e,n.concat(m/h)),f.push({x:v.x,y:v.y,t:m/h});for(m=0;m<c;m++)for(var y=0;y<h;y++){var b=d[m],x=d[m+1],w=f[y],_=f[y+1],k=N(x.x-b.x)<.001?"y":"x",S=N(_.x-w.x)<.001?"y":"x",C=l(b.x,b.y,x.x,x.y,w.x,w.y,_.x,_.y);if(C){if(p[C.x.toFixed(4)]==C.y.toFixed(4))continue;p[C.x.toFixed(4)]=C.y.toFixed(4);var M=b.t+N((C[k]-b[k])/(x[k]-b[k]))*(x.t-b.t),T=w.t+N((C[S]-w[S])/(_[S]-w[S]))*(_.t-w.t);M>=0&&M<=1.001&&T>=0&&T<=1.001&&(i?g++:g.push({x:C.x,y:C.y,t1:F(M,1),t2:F(T,1)}))}}return g}function c(t,n,i){t=e._path2curve(t),n=e._path2curve(n);for(var r,o,a,s,l,c,h,d,f,p,g=i?0:[],m=0,v=t.length;m<v;m++){var y=t[m];if("M"==y[0])r=l=y[1],o=c=y[2];else{"C"==y[0]?(r=(f=[r,o].concat(y.slice(1)))[6],o=f[7]):(f=[r,o,r,o,l,c,l,c],r=l,o=c);for(var b=0,x=n.length;b<x;b++){var w=n[b];if("M"==w[0])a=h=w[1],s=d=w[2];else{"C"==w[0]?(a=(p=[a,s].concat(w.slice(1)))[6],s=p[7]):(p=[a,s,a,s,h,d,h,d],a=h,s=d);var _=u(f,p,i);if(i)g+=_;else{for(var k=0,S=_.length;k<S;k++)_[k].segment1=m,_[k].segment2=b,_[k].bez1=f,_[k].bez2=p;g=g.concat(_)}}}}}return g}function h(t,e,n,i,r,o){null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+i,this.e=+r,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function d(){return this.x+A+this.y+A+this.width+" \xd7 "+this.height}function f(t,e){var n=[],i={};if(this.ms=e,this.times=1,t){for(var r in t)t[w](r)&&(i[X(r)]=t[r],n.push(X(r)));n.sort(st)}this.anim=i,this.top=n[n.length-1],this.percents=n}function p(n,i,r,o,a,s){r=X(r);var l,u,c,d,f,p,g=n.ms,m={},v={},b={};if(o)for(_=0,k=ee.length;_<k;_++){var x=ee[_];if(x.el.id==i.id&&x.anim==n){x.percent!=r?(ee.splice(_,1),c=1):u=x,i.attr(x.totalOrigin);break}}else o=+v;for(var _=0,k=n.percents.length;_<k;_++){if(n.percents[_]==r||n.percents[_]>o*n.top){g=g/n.top*((r=n.percents[_])-(f=n.percents[_-1]||0)),d=n.percents[_+1],l=n.anim[r];break}o&&i.attr(n.anim[n.percents[_]])}if(l){if(u)u.initstatus=o,u.start=new Date-u.ms*o;else{for(var S in l)if(l[w](S)&&(K[w](S)||i.paper.customAttributes[w](S)))switch(m[S]=i.attr(S),null==m[S]&&(m[S]=J[S]),v[S]=l[S],K[S]){case H:b[S]=(v[S]-m[S])/g;break;case"colour":m[S]=e.getRGB(m[S]);var C=e.getRGB(v[S]);b[S]={r:(C.r-m[S].r)/g,g:(C.g-m[S].g)/g,b:(C.b-m[S].b)/g};break;case"path":var T=Et(m[S],v[S]),D=T[1];for(m[S]=T[0],b[S]=[],_=0,k=m[S].length;_<k;_++){b[S][_]=[0];for(var A=1,I=m[S][_].length;A<I;A++)b[S][_][A]=(D[_][A]-m[S][_][A])/g}break;case"transform":var P=i._,L=jt(P[S],v[S]);if(L)for(m[S]=L.from,v[S]=L.to,b[S]=[],b[S].real=!0,_=0,k=m[S].length;_<k;_++)for(b[S][_]=[m[S][_][0]],A=1,I=m[S][_].length;A<I;A++)b[S][_][A]=(v[S][_][A]-m[S][_][A])/g;else{var R=i.matrix||new h,j={_:{transform:P.transform},getBBox:function(){return i.getBBox(1)}};m[S]=[R.a,R.b,R.c,R.d,R.e,R.f],Lt(j,v[S]),v[S]=j._.transform,b[S]=[(j.matrix.a-R.a)/g,(j.matrix.b-R.b)/g,(j.matrix.c-R.c)/g,(j.matrix.d-R.d)/g,(j.matrix.e-R.e)/g,(j.matrix.f-R.f)/g]}break;case"csv":var F=O(l[S])[E](y),W=O(m[S])[E](y);if("clip-rect"==S)for(m[S]=W,b[S]=[],_=W.length;_--;)b[S][_]=(F[_]-m[S][_])/g;v[S]=F;break;default:for(F=[][M](l[S]),W=[][M](m[S]),b[S]=[],_=i.paper.customAttributes[S].length;_--;)b[S][_]=((F[_]||0)-(W[_]||0))/g}var B=l.easing,z=e.easing_formulas[B];if(!z)if((z=O(B).match(V))&&5==z.length){var Y=z;z=function(t){return function(t,e,n,i,r,o){function a(t){return((u*t+l)*t+s)*t}var s=3*e,l=3*(+Y[3]-e)-s,u=1-s-l,c=3*n,h=3*(+Y[4]-n)-c,d=1-c-h;return function(t,e){var n=function(t,e){var n,i,r,o,c,h;for(r=t,h=0;h<8;h++){if(o=a(r)-t,N(o)<e)return r;if(N(c=(3*u*r+2*l)*r+s)<1e-6)break;r-=o/c}if(i=1,(r=t)<(n=0))return n;if(r>i)return i;for(;n<i;){if(o=a(r),N(o-t)<e)return r;t>o?n=r:i=r,r=(i-n)/2+n}return r}(t,1/(200*o));return((d*n+h)*n+c)*n}(t)}(t,+Y[1],+Y[2],0,0,g)}}else z=lt;if(x={anim:n,percent:r,timestamp:p=l.start||n.start||+new Date,start:p+(n.del||0),status:0,initstatus:o||0,stop:!1,ms:g,easing:z,from:m,diff:b,to:v,el:i,callback:l.callback,prev:f,next:d,repeat:s||n.times,origin:i.attr(),totalOrigin:a},ee.push(x),o&&!u&&!c&&(x.stop=!0,x.start=new Date-g*o,1==ee.length))return ie();c&&(x.start=new Date-x.ms*o),1==ee.length&&ne(ie)}t("raphael.anim.start."+i.id,i,n)}}function g(t){for(var e=0;e<ee.length;e++)ee[e].el.paper==t&&ee.splice(e--,1)}e.version="2.2.0",e.eve=t;var m,v,y=/[, ]+/,b={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},x=/\{(\d+)\}/g,w="hasOwnProperty",_={doc:document,win:window},k={was:Object.prototype[w].call(_.win,"Raphael"),is:_.win.Raphael},S=function(){this.ca=this.customAttributes={}},C="apply",M="concat",T="ontouchstart"in _.win||_.win.DocumentTouch&&_.doc instanceof DocumentTouch,D="",A=" ",O=String,E="split",I="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[E](A),P={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},L=O.prototype.toLowerCase,R=Math,j=R.max,F=R.min,N=R.abs,W=R.pow,B=R.PI,H="number",z="string",Y="array",U=Object.prototype.toString,q=(e._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),$={NaN:1,Infinity:1,"-Infinity":1},V=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,G=R.round,X=parseFloat,Q=parseInt,Z=O.prototype.toUpperCase,J=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},K=e._availableAnimAttrs={blur:H,"clip-rect":"csv",cx:H,cy:H,fill:"colour","fill-opacity":H,"font-size":H,height:H,opacity:H,path:"path",r:H,rx:H,ry:H,stroke:"colour","stroke-opacity":H,"stroke-width":H,transform:"transform",width:H,x:H,y:H},tt=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,et={hs:1,rg:1},nt=/,?([achlmqrstvxz]),?/gi,it=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,rt=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,ot=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,at=(e._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),st=function(t,e){return X(t)-X(e)},lt=function(t){return t},ut=e._rectPath=function(t,e,n,i,r){return r?[["M",t+r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]]:[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]]},ct=function(t,e,n,i){return null==i&&(i=n),[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]]},ht=e._getPath={path:function(t){return t.attr("path")},circle:function(t){var e=t.attrs;return ct(e.cx,e.cy,e.r)},ellipse:function(t){var e=t.attrs;return ct(e.cx,e.cy,e.rx,e.ry)},rect:function(t){var e=t.attrs;return ut(e.x,e.y,e.width,e.height,e.r)},image:function(t){var e=t.attrs;return ut(e.x,e.y,e.width,e.height)},text:function(t){var e=t._getBBox();return ut(e.x,e.y,e.width,e.height)},set:function(t){var e=t._getBBox();return ut(e.x,e.y,e.width,e.height)}},dt=e.mapPath=function(t,e){if(!e)return t;var n,i,r,o,a,s,l;for(r=0,a=(t=Et(t)).length;r<a;r++)for(o=1,s=(l=t[r]).length;o<s;o+=2)n=e.x(l[o],l[o+1]),i=e.y(l[o],l[o+1]),l[o]=n,l[o+1]=i;return t};if(e._g=_,"VML"==(e.type=_.win.SVGAngle||_.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML")){var ft,pt=_.doc.createElement("div");if(pt.innerHTML='<v:shape adj="1"/>',(ft=pt.firstChild).style.behavior="url(#default#VML)",!ft||"object"!=typeof ft.adj)return e.type=D;pt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=S,e.fn=v=S.prototype=e.prototype,e._id=0,e.is=function(t,e){return"finite"==(e=L.call(e))?!$[w](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||U.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,n,i,r,o,a){if(null==o){var s=t-i,l=n-r;return s||l?(180+180*R.atan2(-l,-s)/B+360)%360:0}return e.angle(t,n,o,a)-e.angle(i,r,o,a)},e.rad=function(t){return t%360*B/180},e.deg=function(t){return Math.round(180*t/B%360*1e3)/1e3},e.snapTo=function(t,n,i){if(i=e.is(i,"finite")?i:10,e.is(t,Y)){for(var r=t.length;r--;)if(N(t[r]-n)<=i)return t[r]}else{var o=n%(t=+t);if(o<i)return n-o;if(o>t-i)return n-o+t}return n},e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*R.random()|0;return("x"==t?e:3&e|8).toString(16)}),e.setWindow=function(n){t("raphael.setWindow",e,_.win,n),_.win=n,_.doc=_.win.document,e._engine.initWin&&e._engine.initWin(_.win)};var gt=function(t){if(e.vml){var n,r=/^\s+|\s+$/g;try{var o=new ActiveXObject("htmlfile");o.write("<body>"),o.close(),n=o.body}catch(t){n=createPopup().document.body}var a=n.createTextRange();gt=i(function(t){try{n.style.color=O(t).replace(r,D);var e=a.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}})}else{var s=_.doc.createElement("i");s.title="Rapha\xebl Colour Picker",s.style.display="none",_.doc.body.appendChild(s),gt=i(function(t){return s.style.color=t,_.doc.defaultView.getComputedStyle(s,D).getPropertyValue("color")})}return gt(t)},mt=function(){return"hsb("+[this.h,this.s,this.b]+")"},vt=function(){return"hsl("+[this.h,this.s,this.l]+")"},yt=function(){return this.hex},bt=function(t,n,i){if(null==n&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,n=t.g,t=t.r),null==n&&e.is(t,z)){var r=e.getRGB(t);t=r.r,n=r.g,i=r.b}return(t>1||n>1||i>1)&&(t/=255,n/=255,i/=255),[t,n,i]},xt=function(t,n,i,r){var o={r:t*=255,g:n*=255,b:i*=255,hex:e.rgb(t,n,i),toString:yt};return e.is(r,"finite")&&(o.opacity=r),o};e.color=function(t){var n;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):(t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1),t.toString=yt,t},e.hsb2rgb=function(t,e,n,i){var r,o,a,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,i=t.o,t=t.h),s=(l=n*e)*(1-N((t=(t*=360)%360/60)%2-1)),r=o=a=n-l,xt(r+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],i)},e.hsl2rgb=function(t,e,n,i){var r,o,a,s,l;return this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t=(t*=360)%360/60,s=(l=2*e*(n<.5?n:1-n))*(1-N(t%2-1)),r=o=a=n-l/2,xt(r+=[l,s,0,0,s,l][t=~~t],o+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],i)},e.rgb2hsb=function(t,e,n){var i,r;return n=bt(t,e,n),{h:((0==(r=(i=j(t=n[0],e=n[1],n=n[2]))-F(t,e,n))?null:i==t?(e-n)/r:i==e?(n-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/i,b:i,toString:mt}},e.rgb2hsl=function(t,e,n){var i,r,o,a;return n=bt(t,e,n),i=((r=j(t=n[0],e=n[1],n=n[2]))+(o=F(t,e,n)))/2,{h:((0==(a=r-o)?null:r==t?(e-n)/a:r==e?(n-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:i<.5?a/(2*i):a/(2-2*i),l:i,toString:vt}},e._path2string=function(){return this.join(",").replace(nt,"$1")},e._preload=function(t,e){var n=_.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,_.doc.body.removeChild(this)},n.onerror=function(){_.doc.body.removeChild(this)},_.doc.body.appendChild(n),n.src=t},e.getRGB=i(function(t){if(!t||(t=O(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:r};!et[w](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()&&(t=gt(t));var n,i,o,a,s,l,u=t.match(q);return u?(u[2]&&(o=Q(u[2].substring(5),16),i=Q(u[2].substring(3,5),16),n=Q(u[2].substring(1,3),16)),u[3]&&(o=Q((s=u[3].charAt(3))+s,16),i=Q((s=u[3].charAt(2))+s,16),n=Q((s=u[3].charAt(1))+s,16)),u[4]&&(l=u[4][E](tt),n=X(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),i=X(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),o=X(l[2]),"%"==l[2].slice(-1)&&(o*=2.55),"rgba"==u[1].toLowerCase().slice(0,4)&&(a=X(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),u[5]?(l=u[5][E](tt),n=X(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),i=X(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),o=X(l[2]),"%"==l[2].slice(-1)&&(o*=2.55),("deg"==l[0].slice(-3)||"\xb0"==l[0].slice(-1))&&(n/=360),"hsba"==u[1].toLowerCase().slice(0,4)&&(a=X(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsb2rgb(n,i,o,a)):u[6]?(l=u[6][E](tt),n=X(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),i=X(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),o=X(l[2]),"%"==l[2].slice(-1)&&(o*=2.55),("deg"==l[0].slice(-3)||"\xb0"==l[0].slice(-1))&&(n/=360),"hsla"==u[1].toLowerCase().slice(0,4)&&(a=X(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsl2rgb(n,i,o,a)):((u={r:n,g:i,b:o,toString:r}).hex="#"+(16777216|o|i<<8|n<<16).toString(16).slice(1),e.is(a,"finite")&&(u.opacity=a),u)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r}},e),e.hsb=i(function(t,n,i){return e.hsb2rgb(t,n,i).hex}),e.hsl=i(function(t,n,i){return e.hsl2rgb(t,n,i).hex}),e.rgb=i(function(t,e,n){function i(t){return t+.5|0}return"#"+(16777216|i(n)|i(e)<<8|i(t)<<16).toString(16).slice(1)}),(e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),n.hex}).reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var n=wt(t);if(n.arr)return kt(n.arr);var i={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return e.is(t,Y)&&e.is(t[0],Y)&&(r=kt(t)),r.length||O(t).replace(it,function(t,e,n){var o=[],a=e.toLowerCase();if(n.replace(ot,function(t,e){e&&o.push(+e)}),"m"==a&&o.length>2&&(r.push([e][M](o.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)r.push([e][M](o));else for(;o.length>=i[a]&&(r.push([e][M](o.splice(0,i[a]))),i[a]););}),r.toString=e._path2string,n.arr=kt(r),r},e.parseTransformString=i(function(t){if(!t)return null;var n=[];return e.is(t,Y)&&e.is(t[0],Y)&&(n=kt(t)),n.length||O(t).replace(rt,function(t,e,i){var r=[];L.call(e),i.replace(ot,function(t,e){e&&r.push(+e)}),n.push([e][M](r))}),n.toString=e._path2string,n});var wt=function(t){var e=wt.ps=wt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[w](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};e.findDotsAtSegment=function(t,e,n,i,r,o,a,s,l){var u=1-l,c=W(u,3),h=W(u,2),d=l*l,f=d*l,p=c*t+3*h*l*n+3*u*l*l*r+f*a,g=c*e+3*h*l*i+3*u*l*l*o+f*s,m=t+2*l*(n-t)+d*(r-2*n+t),v=e+2*l*(i-e)+d*(o-2*i+e),y=n+2*l*(r-n)+d*(a-2*r+n),b=i+2*l*(o-i)+d*(s-2*o+i),x=u*t+l*n,w=u*e+l*i,_=u*r+l*a,k=u*o+l*s,S=90-180*R.atan2(m-y,v-b)/B;return(m>y||v<b)&&(S+=180),{x:p,y:g,m:{x:m,y:v},n:{x:y,y:b},start:{x:x,y:w},end:{x:_,y:k},alpha:S}},e.bezierBBox=function(t,n,i,r,o,a,s,l){e.is(t,"array")||(t=[t,n,i,r,o,a,s,l]);var u=Ot.apply(null,t);return{x:u.min.x,y:u.min.y,x2:u.max.x,y2:u.max.y,width:u.max.x-u.min.x,height:u.max.y-u.min.y}},e.isPointInsideBBox=function(t,e,n){return e>=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},e.isBBoxIntersect=function(t,n){var i=e.isPointInsideBBox;return i(n,t.x,t.y)||i(n,t.x2,t.y)||i(n,t.x,t.y2)||i(n,t.x2,t.y2)||i(t,n.x,n.y)||i(t,n.x2,n.y)||i(t,n.x,n.y2)||i(t,n.x2,n.y2)||(t.x<n.x2&&t.x>n.x||n.x<t.x2&&n.x>t.x)&&(t.y<n.y2&&t.y>n.y||n.y<t.y2&&n.y>t.y)},e.pathIntersection=function(t,e){return c(t,e)},e.pathIntersectionNumber=function(t,e){return c(t,e,1)},e.isPointInsidePath=function(t,n,i){var r=e.pathBBox(t);return e.isPointInsideBBox(r,n,i)&&c(t,[["M",n,i],["H",r.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Rapha\xebl: you are calling to method \u201c"+e+"\u201d of removed object",e)}};var _t=e.pathBBox=function(t){var e=wt(t);if(e.bbox)return n(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,r=0,o=0,a=[],s=[],l=0,u=(t=Et(t)).length;l<u;l++)if("M"==(i=t[l])[0])o=i[2],a.push(r=i[1]),s.push(o);else{var c=Ot(r,o,i[1],i[2],i[3],i[4],i[5],i[6]);a=a[M](c.min.x,c.max.x),s=s[M](c.min.y,c.max.y),r=i[5],o=i[6]}var h=F[C](0,a),d=F[C](0,s),f=j[C](0,a),p=j[C](0,s),g=f-h,m=p-d,v={x:h,y:d,x2:f,y2:p,width:g,height:m,cx:h+g/2,cy:d+m/2};return e.bbox=n(v),v},kt=function(t){var i=n(t);return i.toString=e._path2string,i},St=e._pathToRelative=function(t){var n=wt(t);if(n.rel)return kt(n.rel);e.is(t,Y)&&e.is(t&&t[0],Y)||(t=e.parsePathString(t));var i=[],r=0,o=0,a=0,s=0,l=0;"M"==t[0][0]&&(a=r=t[0][1],s=o=t[0][2],l++,i.push(["M",r,o]));for(var u=l,c=t.length;u<c;u++){var h=i[u]=[],d=t[u];if(d[0]!=L.call(d[0]))switch(h[0]=L.call(d[0]),h[0]){case"a":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+(d[6]-r).toFixed(3),h[7]=+(d[7]-o).toFixed(3);break;case"v":h[1]=+(d[1]-o).toFixed(3);break;case"m":a=d[1],s=d[2];default:for(var f=1,p=d.length;f<p;f++)h[f]=+(d[f]-(f%2?r:o)).toFixed(3)}else{h=i[u]=[],"m"==d[0]&&(a=d[1]+r,s=d[2]+o);for(var g=0,m=d.length;g<m;g++)i[u][g]=d[g]}var v=i[u].length;switch(i[u][0]){case"z":r=a,o=s;break;case"h":r+=+i[u][v-1];break;case"v":o+=+i[u][v-1];break;default:r+=+i[u][v-2],o+=+i[u][v-1]}}return i.toString=e._path2string,n.rel=kt(i),i},Ct=e._pathToAbsolute=function(t){var n=wt(t);if(n.abs)return kt(n.abs);if(e.is(t,Y)&&e.is(t&&t[0],Y)||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var i=[],r=0,a=0,s=0,l=0,u=0;"M"==t[0][0]&&(s=r=+t[0][1],l=a=+t[0][2],u++,i[0]=["M",r,a]);for(var c,h,d=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),f=u,p=t.length;f<p;f++){if(i.push(c=[]),(h=t[f])[0]!=Z.call(h[0]))switch(c[0]=Z.call(h[0]),c[0]){case"A":c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5],c[6]=+(h[6]+r),c[7]=+(h[7]+a);break;case"V":c[1]=+h[1]+a;break;case"H":c[1]=+h[1]+r;break;case"R":for(var g=[r,a][M](h.slice(1)),m=2,v=g.length;m<v;m++)g[m]=+g[m]+r,g[++m]=+g[m]+a;i.pop(),i=i[M](o(g,d));break;case"M":s=+h[1]+r,l=+h[2]+a;default:for(m=1,v=h.length;m<v;m++)c[m]=+h[m]+(m%2?r:a)}else if("R"==h[0])g=[r,a][M](h.slice(1)),i.pop(),i=i[M](o(g,d)),c=["R"][M](h.slice(-2));else for(var y=0,b=h.length;y<b;y++)c[y]=h[y];switch(c[0]){case"Z":r=s,a=l;break;case"H":r=c[1];break;case"V":a=c[1];break;case"M":s=c[c.length-2],l=c[c.length-1];default:r=c[c.length-2],a=c[c.length-1]}}return i.toString=e._path2string,n.abs=kt(i),i},Mt=function(t,e,n,i){return[t,e,n,i,n,i]},Tt=function(t,e,n,i,r,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*i,a*r+s*n,a*o+s*i,r,o]},Dt=function(t,e,n,r,o,a,s,l,u,c){var h,d=120*B/180,f=B/180*(+o||0),p=[],g=i(function(t,e,n){return{x:t*R.cos(n)-e*R.sin(n),y:t*R.sin(n)+e*R.cos(n)}});if(c)S=c[0],C=c[1],_=c[2],k=c[3];else{t=(h=g(t,e,-f)).x,e=h.y,l=(h=g(l,u,-f)).x,u=h.y,R.cos(B/180*o),R.sin(B/180*o);var m=(t-l)/2,v=(e-u)/2,y=m*m/(n*n)+v*v/(r*r);y>1&&(n*=y=R.sqrt(y),r*=y);var b=n*n,x=r*r,w=(a==s?-1:1)*R.sqrt(N((b*x-b*v*v-x*m*m)/(b*v*v+x*m*m))),_=w*n*v/r+(t+l)/2,k=w*-r*m/n+(e+u)/2,S=R.asin(((e-k)/r).toFixed(9)),C=R.asin(((u-k)/r).toFixed(9));S=t<_?B-S:S,C=l<_?B-C:C,S<0&&(S=2*B+S),C<0&&(C=2*B+C),s&&S>C&&(S-=2*B),!s&&C>S&&(C-=2*B)}var T=C-S;if(N(T)>d){var D=C,A=l,O=u;l=_+n*R.cos(C=S+d*(s&&C>S?1:-1)),u=k+r*R.sin(C),p=Dt(l,u,n,r,o,0,s,A,O,[C,D,_,k])}T=C-S;var I=R.cos(S),P=R.sin(S),L=R.cos(C),j=R.sin(C),F=R.tan(T/4),W=4/3*n*F,H=4/3*r*F,z=[t,e],Y=[t+W*P,e-H*I],U=[l+W*j,u-H*L],q=[l,u];if(Y[0]=2*z[0]-Y[0],Y[1]=2*z[1]-Y[1],c)return[Y,U,q][M](p);for(var $=[],V=0,G=(p=[Y,U,q][M](p).join()[E](",")).length;V<G;V++)$[V]=V%2?g(p[V-1],p[V],f).y:g(p[V],p[V+1],f).x;return $},At=function(t,e,n,i,r,o,a,s,l){var u=1-l;return{x:W(u,3)*t+3*W(u,2)*l*n+3*u*l*l*r+W(l,3)*a,y:W(u,3)*e+3*W(u,2)*l*i+3*u*l*l*o+W(l,3)*s}},Ot=i(function(t,e,n,i,r,o,a,s){var l,u=r-2*n+t-(a-2*r+n),c=2*(n-t)-2*(r-n),h=t-n,d=(-c+R.sqrt(c*c-4*u*h))/2/u,f=(-c-R.sqrt(c*c-4*u*h))/2/u,p=[e,s],g=[t,a];return N(d)>"1e12"&&(d=.5),N(f)>"1e12"&&(f=.5),d>0&&d<1&&(l=At(t,e,n,i,r,o,a,s,d),g.push(l.x),p.push(l.y)),f>0&&f<1&&(l=At(t,e,n,i,r,o,a,s,f),g.push(l.x),p.push(l.y)),d=(-(c=2*(i-e)-2*(o-i))+R.sqrt(c*c-4*(u=o-2*i+e-(s-2*o+i))*(h=e-i)))/2/u,f=(-c-R.sqrt(c*c-4*u*h))/2/u,N(d)>"1e12"&&(d=.5),N(f)>"1e12"&&(f=.5),d>0&&d<1&&(l=At(t,e,n,i,r,o,a,s,d),g.push(l.x),p.push(l.y)),f>0&&f<1&&(l=At(t,e,n,i,r,o,a,s,f),g.push(l.x),p.push(l.y)),{min:{x:F[C](0,g),y:F[C](0,p)},max:{x:j[C](0,g),y:j[C](0,p)}}}),Et=e._path2curve=i(function(t,e){var n=!e&&wt(t);if(!e&&n.curve)return kt(n.curve);for(var i=Ct(t),r=e&&Ct(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][M](Dt[C](0,[e.x,e.y][M](t.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r][M](t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][M](Tt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][M](Tt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][M](Mt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][M](Mt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][M](Mt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][M](Mt(e.x,e.y,e.X,e.Y))}return t},l=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)c[e]="A",r&&(h[e]="A"),t.splice(e++,0,["C"][M](n.splice(0,6)));t.splice(e,1),g=j(i.length,r&&r.length||0)}},u=function(t,e,n,o,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",o.x,o.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],g=j(i.length,r&&r.length||0))},c=[],h=[],d="",f="",p=0,g=j(i.length,r&&r.length||0);p<g;p++){i[p]&&(d=i[p][0]),"C"!=d&&(c[p]=d,p&&(f=c[p-1])),i[p]=s(i[p],o,f),"A"!=c[p]&&"C"==d&&(c[p]="C"),l(i,p),r&&(r[p]&&(d=r[p][0]),"C"!=d&&(h[p]=d,p&&(f=h[p-1])),r[p]=s(r[p],a,f),"A"!=h[p]&&"C"==d&&(h[p]="C"),l(r,p)),u(i,r,o,a,p),u(r,i,a,o,p);var m=i[p],v=r&&r[p],y=m.length,b=r&&v.length;o.x=m[y-2],o.y=m[y-1],o.bx=X(m[y-4])||o.x,o.by=X(m[y-3])||o.y,a.bx=r&&(X(v[b-4])||a.x),a.by=r&&(X(v[b-3])||a.y),a.x=r&&v[b-2],a.y=r&&v[b-1]}return r||(n.curve=kt(i)),r?[i,r]:i},null,kt),It=(e._parseDots=i(function(t){for(var n=[],i=0,r=t.length;i<r;i++){var o={},a=t[i].match(/^([^:]*):?([\d\.]*)/);if(o.color=e.getRGB(a[1]),o.color.error)return null;o.opacity=o.color.opacity,o.color=o.color.hex,a[2]&&(o.offset=a[2]+"%"),n.push(o)}for(i=1,r=n.length-1;i<r;i++)if(!n[i].offset){for(var s=X(n[i-1].offset||0),l=0,u=i+1;u<r;u++)if(n[u].offset){l=n[u].offset;break}l||(l=100,u=r);for(var c=((l=X(l))-s)/(u-i+1);i<u;i++)n[i].offset=(s+=c)+"%"}return n}),e._tear=function(t,e){t==e.top&&(e.top=t.prev),t==e.bottom&&(e.bottom=t.next),t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next)}),Pt=(e._tofront=function(t,e){e.top!==t&&(It(t,e),t.next=null,t.prev=e.top,e.top.next=t,e.top=t)},e._toback=function(t,e){e.bottom!==t&&(It(t,e),t.next=e.bottom,t.prev=null,e.bottom.prev=t,e.bottom=t)},e._insertafter=function(t,e,n){It(t,n),e==n.top&&(n.top=t),e.next&&(e.next.prev=t),t.next=e.next,t.prev=e,e.next=t},e._insertbefore=function(t,e,n){It(t,n),e==n.bottom&&(n.bottom=t),e.prev&&(e.prev.next=t),t.prev=e.prev,e.prev=t,t.next=e},e.toMatrix=function(t,e){var n=_t(t),i={_:{transform:D},getBBox:function(){return n}};return Lt(i,e),i.matrix}),Lt=(e.transformPath=function(t,e){return dt(t,Pt(t,e))},e._extractTransform=function(t,n){if(null==n)return t._.transform;n=O(n).replace(/\.{3}|\u2026/g,t._.transform||D);var i,r,o=e.parseTransformString(n),a=0,s=1,l=1,u=t._,c=new h;if(u.transform=o||[],o)for(var d=0,f=o.length;d<f;d++){var p,g,m,v,y,b=o[d],x=b.length,w=O(b[0]).toLowerCase(),_=b[0]!=w,k=_?c.invert():0;"t"==w&&3==x?_?(p=k.x(0,0),g=k.y(0,0),m=k.x(b[1],b[2]),v=k.y(b[1],b[2]),c.translate(m-p,v-g)):c.translate(b[1],b[2]):"r"==w?2==x?(y=y||t.getBBox(1),c.rotate(b[1],y.x+y.width/2,y.y+y.height/2),a+=b[1]):4==x&&(_?(m=k.x(b[2],b[3]),v=k.y(b[2],b[3]),c.rotate(b[1],m,v)):c.rotate(b[1],b[2],b[3]),a+=b[1]):"s"==w?2==x||3==x?(y=y||t.getBBox(1),c.scale(b[1],b[x-1],y.x+y.width/2,y.y+y.height/2),s*=b[1],l*=b[x-1]):5==x&&(_?(m=k.x(b[3],b[4]),v=k.y(b[3],b[4]),c.scale(b[1],b[2],m,v)):c.scale(b[1],b[2],b[3],b[4]),s*=b[1],l*=b[2]):"m"==w&&7==x&&c.add(b[1],b[2],b[3],b[4],b[5],b[6]),u.dirtyT=1,t.matrix=c}t.matrix=c,u.sx=s,u.sy=l,u.deg=a,u.dx=i=c.e,u.dy=r=c.f,1==s&&1==l&&!a&&u.bbox?(u.bbox.x+=+i,u.bbox.y+=+r):u.dirtyT=1}),Rt=function(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}},jt=e._equaliseTransform=function(t,n){n=O(n).replace(/\.{3}|\u2026/g,t),t=e.parseTransformString(t)||[],n=e.parseTransformString(n)||[];for(var i,r,o,a,s=j(t.length,n.length),l=[],u=[],c=0;c<s;c++){if(o=t[c]||Rt(n[c]),a=n[c]||Rt(o),o[0]!=a[0]||"r"==o[0].toLowerCase()&&(o[2]!=a[2]||o[3]!=a[3])||"s"==o[0].toLowerCase()&&(o[3]!=a[3]||o[4]!=a[4]))return;for(l[c]=[],u[c]=[],i=0,r=j(o.length,a.length);i<r;i++)i in o&&(l[c][i]=o[i]),i in a&&(u[c][i]=a[i])}return{from:l,to:u}};e._getContainer=function(t,n,i,r){var o;if(null!=(o=null!=r||e.is(t,"object")?t:_.doc.getElementById(t)))return o.tagName?null==n?{container:o,width:o.style.pixelWidth||o.offsetWidth,height:o.style.pixelHeight||o.offsetHeight}:{container:o,width:n,height:i}:{container:1,x:t,y:n,width:i,height:r}},e.pathToRelative=St,e._engine={},e.path2curve=Et,e.matrix=function(t,e,n,i,r,o){return new h(t,e,n,i,r,o)},function(t){function n(t){return t[0]*t[0]+t[1]*t[1]}function i(t){var e=R.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}t.add=function(t,e,n,i,r,o){var a,s,l,u,c=[[],[],[]],d=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],f=[[t,n,r],[e,i,o],[0,0,1]];for(t&&t instanceof h&&(f=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),a=0;a<3;a++)for(s=0;s<3;s++){for(u=0,l=0;l<3;l++)u+=d[a][l]*f[l][s];c[a][s]=u}this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2]},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new h(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new h(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){this.add(1,0,0,1,t,e)},t.scale=function(t,e,n,i){null==e&&(e=t),(n||i)&&this.add(1,0,0,1,n,i),this.add(t,0,0,e,0,0),(n||i)&&this.add(1,0,0,1,-n,-i)},t.rotate=function(t,n,i){t=e.rad(t),n=n||0,i=i||0;var r=+R.cos(t).toFixed(9),o=+R.sin(t).toFixed(9);this.add(r,o,-o,r,n,i),this.add(1,0,0,1,-n,-i)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[O.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];t.scalex=R.sqrt(n(r[0])),i(r[0]),t.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*t.shear,r[1][1]-r[0][1]*t.shear],t.scaley=R.sqrt(n(r[1])),i(r[1]),t.shear/=t.scaley;var o=-r[0][1],a=r[1][1];return a<0?(t.rotate=e.deg(R.acos(a)),o<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(R.asin(o)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){var e=t||this[E]();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[e.dx,e.dy]:D)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:D)+(e.rotate?"r"+[e.rotate,0,0]:D)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(h.prototype);for(var Ft=function(){this.returnValue=!1},Nt=function(){return this.originalEvent.preventDefault()},Wt=function(){this.cancelBubble=!0},Bt=function(){return this.originalEvent.stopPropagation()},Ht=function(t){return{x:t.clientX+(_.doc.documentElement.scrollLeft||_.doc.body.scrollLeft),y:t.clientY+(_.doc.documentElement.scrollTop||_.doc.body.scrollTop)}},zt=_.doc.addEventListener?function(t,e,n,i){var r=function(t){var e=Ht(t);return n.call(i,t,e.x,e.y)};if(t.addEventListener(e,r,!1),T&&P[e]){var o=function(e){for(var r=Ht(e),o=e,a=0,s=e.targetTouches&&e.targetTouches.length;a<s;a++)if(e.targetTouches[a].target==t){(e=e.targetTouches[a]).originalEvent=o,e.preventDefault=Nt,e.stopPropagation=Bt;break}return n.call(i,e,r.x,r.y)};t.addEventListener(P[e],o,!1)}return function(){return t.removeEventListener(e,r,!1),T&&P[e]&&t.removeEventListener(P[e],o,!1),!0}}:_.doc.attachEvent?function(t,e,n,i){var r=function(t){var e=(t=t||_.win.event).clientX+(_.doc.documentElement.scrollLeft||_.doc.body.scrollLeft),r=t.clientY+(_.doc.documentElement.scrollTop||_.doc.body.scrollTop);return t.preventDefault=t.preventDefault||Ft,t.stopPropagation=t.stopPropagation||Wt,n.call(i,t,e,r)};return t.attachEvent("on"+e,r),function(){return t.detachEvent("on"+e,r),!0}}:void 0,Yt=[],Ut=function(e){for(var n,i=e.clientX,r=e.clientY,o=_.doc.documentElement.scrollTop||_.doc.body.scrollTop,a=_.doc.documentElement.scrollLeft||_.doc.body.scrollLeft,s=Yt.length;s--;){if(n=Yt[s],T&&e.touches){for(var l,u=e.touches.length;u--;)if((l=e.touches[u]).identifier==n.el._drag.id){i=l.clientX,r=l.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var c,h=n.el.node,d=h.nextSibling,f=h.parentNode,p=h.style.display;_.win.opera&&f.removeChild(h),h.style.display="none",c=n.el.paper.getElementByPoint(i,r),h.style.display=p,_.win.opera&&(d?f.insertBefore(h,d):f.appendChild(h)),c&&t("raphael.drag.over."+n.el.id,n.el,c),i+=a,r+=o,t("raphael.drag.move."+n.el.id,n.move_scope||n.el,i-n.el._drag.x,r-n.el._drag.y,i,r,e)}},qt=function(n){e.unmousemove(Ut).unmouseup(qt);for(var i,r=Yt.length;r--;)(i=Yt[r]).el._drag={},t("raphael.drag.end."+i.el.id,i.end_scope||i.start_scope||i.move_scope||i.el,n);Yt=[]},$t=e.el={},Vt=I.length;Vt--;)!function(t){e[t]=$t[t]=function(n,i){return e.is(n,"function")&&(this.events=this.events||[],this.events.push({name:t,f:n,unbind:zt(this.shape||this.node||_.doc,t,n,i||this)})),this},e["un"+t]=$t["un"+t]=function(n){for(var i=this.events||[],r=i.length;r--;)i[r].name!=t||!e.is(n,"undefined")&&i[r].f!=n||(i[r].unbind(),i.splice(r,1),!i.length&&delete this.events);return this}}(I[Vt]);$t.data=function(n,i){var r=at[this.id]=at[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(e.is(n,"object")){for(var o in n)n[w](o)&&this.data(o,n[o]);return this}return t("raphael.data.get."+this.id,this,r[n],n),r[n]}return r[n]=i,t("raphael.data.set."+this.id,this,i,n),this},$t.removeData=function(t){return null==t?at[this.id]={}:at[this.id]&&delete at[this.id][t],this},$t.getData=function(){return n(at[this.id]||{})},$t.hover=function(t,e,n,i){return this.mouseover(t,n).mouseout(e,i||n)},$t.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var Gt=[];$t.drag=function(n,i,r,o,a,s){function l(l){(l.originalEvent||l).preventDefault();var u=l.clientX,c=l.clientY,h=_.doc.documentElement.scrollTop||_.doc.body.scrollTop,d=_.doc.documentElement.scrollLeft||_.doc.body.scrollLeft;if(this._drag.id=l.identifier,T&&l.touches)for(var f,p=l.touches.length;p--;)if(this._drag.id=(f=l.touches[p]).identifier,f.identifier==this._drag.id){u=f.clientX,c=f.clientY;break}this._drag.x=u+d,this._drag.y=c+h,!Yt.length&&e.mousemove(Ut).mouseup(qt),Yt.push({el:this,move_scope:o,start_scope:a,end_scope:s}),i&&t.on("raphael.drag.start."+this.id,i),n&&t.on("raphael.drag.move."+this.id,n),r&&t.on("raphael.drag.end."+this.id,r),t("raphael.drag.start."+this.id,a||o||this,l.clientX+d,l.clientY+h,l)}return this._drag={},Gt.push({el:this,start:l}),this.mousedown(l),this},$t.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},$t.undrag=function(){for(var n=Gt.length;n--;)Gt[n].el==this&&(this.unmousedown(Gt[n].start),Gt.splice(n,1),t.unbind("raphael.drag.*."+this.id));!Gt.length&&e.unmousemove(Ut).unmouseup(qt),Yt=[]},v.circle=function(t,n,i){var r=e._engine.circle(this,t||0,n||0,i||0);return this.__set__&&this.__set__.push(r),r},v.rect=function(t,n,i,r,o){var a=e._engine.rect(this,t||0,n||0,i||0,r||0,o||0);return this.__set__&&this.__set__.push(a),a},v.ellipse=function(t,n,i,r){var o=e._engine.ellipse(this,t||0,n||0,i||0,r||0);return this.__set__&&this.__set__.push(o),o},v.path=function(t){t&&!e.is(t,z)&&!e.is(t[0],Y)&&(t+=D);var n=e._engine.path(e.format[C](e,arguments),this);return this.__set__&&this.__set__.push(n),n},v.image=function(t,n,i,r,o){var a=e._engine.image(this,t||"about:blank",n||0,i||0,r||0,o||0);return this.__set__&&this.__set__.push(a),a},v.text=function(t,n,i){var r=e._engine.text(this,t||0,n||0,O(i));return this.__set__&&this.__set__.push(r),r},v.set=function(t){!e.is(t,"array")&&(t=Array.prototype.splice.call(arguments,0,arguments.length));var n=new oe(t);return this.__set__&&this.__set__.push(n),n.paper=this,n.type="set",n},v.setStart=function(t){this.__set__=t||this.set()},v.setFinish=function(t){var e=this.__set__;return delete this.__set__,e},v.getSize=function(){var t=this.canvas.parentNode;return{width:t.offsetWidth,height:t.offsetHeight}},v.setSize=function(t,n){return e._engine.setSize.call(this,t,n)},v.setViewBox=function(t,n,i,r,o){return e._engine.setViewBox.call(this,t,n,i,r,o)},v.top=v.bottom=null,v.raphael=e,v.getElementByPoint=function(t,e){var n=this,i=n.canvas,r=_.doc.elementFromPoint(t,e);if(_.win.opera&&"svg"==r.tagName){var o=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,i=n.body,r=n.documentElement;return{y:e.top+(_.win.pageYOffset||r.scrollTop||i.scrollTop)-(r.clientTop||i.clientTop||0),x:e.left+(_.win.pageXOffset||r.scrollLeft||i.scrollLeft)-(r.clientLeft||i.clientLeft||0)}}(i),a=i.createSVGRect();a.x=t-o.x,a.y=e-o.y,a.width=a.height=1;var s=i.getIntersectionList(a,null);s.length&&(r=s[s.length-1])}if(!r)return null;for(;r.parentNode&&r!=i.parentNode&&!r.raphael;)r=r.parentNode;return r==n.canvas.parentNode&&(r=i),r&&r.raphael?n.getById(r.raphaelid):null},v.getElementsByBBox=function(t){var n=this.set();return this.forEach(function(i){e.isBBoxIntersect(i.getBBox(),t)&&n.push(i)}),n},v.getById=function(t){for(var e=this.bottom;e;){if(e.id==t)return e;e=e.next}return null},v.forEach=function(t,e){for(var n=this.bottom;n;){if(!1===t.call(e,n))return this;n=n.next}return this},v.getElementsByPoint=function(t,e){var n=this.set();return this.forEach(function(i){i.isPointInside(t,e)&&n.push(i)}),n},$t.isPointInside=function(t,n){var i=this.realPath=ht[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(i=e.transformPath(i,this.attr("transform"))),e.isPointInsidePath(i,t,n)},$t.getBBox=function(t){if(this.removed)return{};var e=this._;return t?(!e.dirty&&e.bboxwt||(this.realPath=ht[this.type](this),e.bboxwt=_t(this.realPath),e.bboxwt.toString=d,e.dirty=0),e.bboxwt):((e.dirty||e.dirtyT||!e.bbox)&&(!e.dirty&&this.realPath||(e.bboxwt=0,this.realPath=ht[this.type](this)),e.bbox=_t(dt(this.realPath,this.matrix)),e.bbox.toString=d,e.dirty=e.dirtyT=0),e.bbox)},$t.clone=function(){if(this.removed)return null;var t=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(t),t},$t.glow=function(t){if("text"==this.type)return null;var e={width:((t=t||{}).width||10)+(+this.attr("stroke-width")||1),fill:t.fill||!1,opacity:null==t.opacity?.5:t.opacity,offsetx:t.offsetx||0,offsety:t.offsety||0,color:t.color||"#000"},n=e.width/2,i=this.paper,r=i.set(),o=this.realPath||ht[this.type](this);o=this.matrix?dt(o,this.matrix):o;for(var a=1;a<n+1;a++)r.push(i.path(o).attr({stroke:e.color,fill:e.fill?e.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(e.width/n*a).toFixed(3),opacity:+(e.opacity/n).toFixed(3)}));return r.insertBefore(this).translate(e.offsetx,e.offsety)};var Xt=function(t,n,i,r,o,a,l,u,c){return null==c?s(t,n,i,r,o,a,l,u):e.findDotsAtSegment(t,n,i,r,o,a,l,u,function(t,e,n,i,r,o,a,l,u){if(!(u<0||s(t,e,n,i,r,o,a,l)<u)){var c,h=.5,d=1-h;for(c=s(t,e,n,i,r,o,a,l,d);N(c-u)>.01;)h/=2,c=s(t,e,n,i,r,o,a,l,d+=(c<u?1:-1)*h);return d}}(t,n,i,r,o,a,l,u,c))},Qt=function(t,n){return function(i,r,o){for(var a,s,l,u,c,h="",d={},f=0,p=0,g=(i=Et(i)).length;p<g;p++){if("M"==(l=i[p])[0])a=+l[1],s=+l[2];else{if(f+(u=Xt(a,s,l[1],l[2],l[3],l[4],l[5],l[6]))>r){if(n&&!d.start){if(h+=["C"+(c=Xt(a,s,l[1],l[2],l[3],l[4],l[5],l[6],r-f)).start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],o)return h;d.start=h,h=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),f+=u,a=+l[5],s=+l[6];continue}if(!t&&!n)return{x:(c=Xt(a,s,l[1],l[2],l[3],l[4],l[5],l[6],r-f)).x,y:c.y,alpha:c.alpha}}f+=u,a=+l[5],s=+l[6]}h+=l.shift()+l}return d.end=h,(c=t?f:n?d:e.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},Zt=Qt(1),Jt=Qt(),Kt=Qt(0,1);e.getTotalLength=Zt,e.getPointAtLength=Jt,e.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return Kt(t,e).end;var i=Kt(t,n,1);return e?Kt(i,e).end:i},$t.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():Zt(t)},$t.getPointAtLength=function(t){var e=this.getPath();if(e)return Jt(e,t)},$t.getPath=function(){var t,n=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(t=n(this)),t},$t.getSubpath=function(t,n){var i=this.getPath();if(i)return e.getSubpath(i,t,n)};var te=e.easing_formulas={linear:function(t){return t},"<":function(t){return W(t,1.7)},">":function(t){return W(t,.48)},"<>":function(t){var e=.48-t/1.04,n=R.sqrt(.1734+e*e),i=n-e,r=-n-e,o=W(N(i),1/3)*(i<0?-1:1)+W(N(r),1/3)*(r<0?-1:1)+.5;return 3*(1-o)*o*o+o*o*o},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:W(2,-10*t)*R.sin(2*B*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375}};te.easeIn=te["ease-in"]=te["<"],te.easeOut=te["ease-out"]=te[">"],te.easeInOut=te["ease-in-out"]=te["<>"],te["back-in"]=te.backIn,te["back-out"]=te.backOut;var ee=[],ne=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ie=function(){for(var n=+new Date,i=0;i<ee.length;i++){var r=ee[i];if(!r.el.removed&&!r.paused){var o,a,s=n-r.start,l=r.ms,u=r.easing,c=r.from,h=r.diff,d=r.to,f=r.el,g={},m={};if(r.initstatus?(s=(r.initstatus*r.anim.top-r.prev)/(r.percent-r.prev)*l,r.status=r.initstatus,delete r.initstatus,r.stop&&ee.splice(i--,1)):r.status=(r.prev+s/l*(r.percent-r.prev))/r.anim.top,!(s<0))if(s<l){var v=u(s/l);for(var y in c)if(c[w](y)){switch(K[y]){case H:o=+c[y]+v*l*h[y];break;case"colour":o="rgb("+[re(G(c[y].r+v*l*h[y].r)),re(G(c[y].g+v*l*h[y].g)),re(G(c[y].b+v*l*h[y].b))].join(",")+")";break;case"path":o=[];for(var b=0,x=c[y].length;b<x;b++){o[b]=[c[y][b][0]];for(var _=1,k=c[y][b].length;_<k;_++)o[b][_]=+c[y][b][_]+v*l*h[y][b][_];o[b]=o[b].join(A)}o=o.join(A);break;case"transform":if(h[y].real)for(o=[],b=0,x=c[y].length;b<x;b++)for(o[b]=[c[y][b][0]],_=1,k=c[y][b].length;_<k;_++)o[b][_]=c[y][b][_]+v*l*h[y][b][_];else{var S=function(t){return+c[y][t]+v*l*h[y][t]};o=[["m",S(0),S(1),S(2),S(3),S(4),S(5)]]}break;case"csv":if("clip-rect"==y)for(o=[],b=4;b--;)o[b]=+c[y][b]+v*l*h[y][b];break;default:var C=[][M](c[y]);for(o=[],b=f.paper.customAttributes[y].length;b--;)o[b]=+C[b]+v*l*h[y][b]}g[y]=o}f.attr(g),function(e,n,i){setTimeout(function(){t("raphael.anim.frame."+e,n,i)})}(f.id,f,r.anim)}else{if(function(n,i,r){setTimeout(function(){t("raphael.anim.frame."+i.id,i,r),t("raphael.anim.finish."+i.id,i,r),e.is(n,"function")&&n.call(i)})}(r.callback,f,r.anim),f.attr(d),ee.splice(i--,1),r.repeat>1&&!r.next){for(a in d)d[w](a)&&(m[a]=r.totalOrigin[a]);r.el.attr(m),p(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&p(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}ee.length&&ne(ie)},re=function(t){return t>255?255:t<0?0:t};$t.animateWith=function(t,n,i,r,o,a){var s=this;if(s.removed)return a&&a.call(s),s;var l=i instanceof f?i:e.animation(i,r,o,a);p(l,s,l.percents[0],null,s.attr());for(var u=0,c=ee.length;u<c;u++)if(ee[u].anim==n&&ee[u].el==t){ee[c-1].start=ee[u].start;break}return s},$t.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},f.prototype.delay=function(t){var e=new f(this.anim,this.ms);return e.times=this.times,e.del=+t||0,e},f.prototype.repeat=function(t){var e=new f(this.anim,this.ms);return e.del=this.del,e.times=R.floor(j(t,0))||1,e},e.animation=function(t,n,i,r){if(t instanceof f)return t;!e.is(i,"function")&&i||(r=r||i||null,i=null),t=Object(t),n=+n||0;var o,a,s={};for(a in t)t[w](a)&&X(a)!=a&&X(a)+"%"!=a&&(o=!0,s[a]=t[a]);if(o)return i&&(s.easing=i),r&&(s.callback=r),new f({100:s},n);if(r){var l=0;for(var u in t){var c=Q(u);t[w](u)&&c>l&&(l=c)}!t[l+="%"].callback&&(t[l].callback=r)}return new f(t,n)},$t.animate=function(t,n,i,r){var o=this;if(o.removed)return r&&r.call(o),o;var a=t instanceof f?t:e.animation(t,n,i,r);return p(a,o,a.percents[0],null,o.attr()),o},$t.setTime=function(t,e){return t&&null!=e&&this.status(t,F(e,t.ms)/t.ms),this},$t.status=function(t,e){var n,i,r=[],o=0;if(null!=e)return p(t,this,-1,F(e,1)),this;for(n=ee.length;o<n;o++)if((i=ee[o]).el.id==this.id&&(!t||i.anim==t)){if(t)return i.status;r.push({anim:i.anim,status:i.status})}return t?0:r},$t.pause=function(e){for(var n=0;n<ee.length;n++)ee[n].el.id!=this.id||e&&ee[n].anim!=e||!1!==t("raphael.anim.pause."+this.id,this,ee[n].anim)&&(ee[n].paused=!0);return this},$t.resume=function(e){for(var n=0;n<ee.length;n++)if(ee[n].el.id==this.id&&(!e||ee[n].anim==e)){var i=ee[n];!1!==t("raphael.anim.resume."+this.id,this,i.anim)&&(delete i.paused,this.status(i.anim,i.status))}return this},$t.stop=function(e){for(var n=0;n<ee.length;n++)ee[n].el.id!=this.id||e&&ee[n].anim!=e||!1!==t("raphael.anim.stop."+this.id,this,ee[n].anim)&&ee.splice(n--,1);return this},t.on("raphael.remove",g),t.on("raphael.clear",g),$t.toString=function(){return"Rapha\xebl\u2019s object"};var oe=function(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)!t[e]||t[e].constructor!=$t.constructor&&t[e].constructor!=oe||(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},ae=oe.prototype;for(var se in ae.push=function(){for(var t,e,n=0,i=arguments.length;n<i;n++)!(t=arguments[n])||t.constructor!=$t.constructor&&t.constructor!=oe||(this[e=this.items.length]=this.items[e]=t,this.length++);return this},ae.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},ae.forEach=function(t,e){for(var n=0,i=this.items.length;n<i;n++)if(!1===t.call(e,this.items[n],n))return this;return this},$t)$t[w](se)&&(ae[se]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t][C](n,e)})}}(se));return ae.attr=function(t,n){if(t&&e.is(t,Y)&&e.is(t[0],"object"))for(var i=0,r=t.length;i<r;i++)this.items[i].attr(t[i]);else for(var o=0,a=this.items.length;o<a;o++)this.items[o].attr(t,n);return this},ae.clear=function(){for(;this.length;)this.pop()},ae.splice=function(t,e,n){t=t<0?j(this.length+t,0):t,e=j(0,F(this.length-t,e));var i,r=[],o=[],a=[];for(i=2;i<arguments.length;i++)a.push(arguments[i]);for(i=0;i<e;i++)o.push(this[t+i]);for(;i<this.length-t;i++)r.push(this[t+i]);var s=a.length;for(i=0;i<s+r.length;i++)this.items[t+i]=this[t+i]=i<s?a[i]:r[i-s];for(i=this.items.length=this.length-=e-s;this[i];)delete this[i++];return new oe(o)},ae.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0},ae.animate=function(t,n,i,r){(e.is(i,"function")||!i)&&(r=i||null);var o,a,s=this.items.length,l=s,u=this;if(!s)return this;r&&(a=function(){!--s&&r.call(u)}),i=e.is(i,z)?i:a;var c=e.animation(t,n,i,a);for(o=this.items[--l].animate(c);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(o,c,c),this.items[l]&&!this.items[l].removed||s--;return this},ae.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},ae.getBBox=function(){for(var t=[],e=[],n=[],i=[],r=this.items.length;r--;)if(!this.items[r].removed){var o=this.items[r].getBBox();t.push(o.x),e.push(o.y),n.push(o.x+o.width),i.push(o.y+o.height)}return{x:t=F[C](0,t),y:e=F[C](0,e),x2:n=j[C](0,n),y2:i=j[C](0,i),width:n-t,height:i-e}},ae.clone=function(t){t=this.paper.set();for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},ae.toString=function(){return"Rapha\xebl\u2018s set"},ae.glow=function(t){var e=this.paper.set();return this.forEach(function(n,i){var r=n.glow(t);null!=r&&r.forEach(function(t,n){e.push(t)})}),e},ae.isPointInside=function(t,e){var n=!1;return this.forEach(function(i){if(i.isPointInside(t,e))return n=!0,!1}),n},e.registerFont=function(t){if(!t.face)return t;this.fonts=this.fonts||{};var e={w:t.w,face:{},glyphs:{}},n=t.face["font-family"];for(var i in t.face)t.face[w](i)&&(e.face[i]=t.face[i]);if(this.fonts[n]?this.fonts[n].push(e):this.fonts[n]=[e],!t.svg)for(var r in e.face["units-per-em"]=Q(t.face["units-per-em"],10),t.glyphs)if(t.glyphs[w](r)){var o=t.glyphs[r];if(e.glyphs[r]={w:o.w,k:{},d:o.d&&"M"+o.d.replace(/[mlcxtrv]/g,function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"})+"z"},o.k)for(var a in o.k)o[w](a)&&(e.glyphs[r].k[a]=o.k[a])}return t},v.getFont=function(t,n,i,r){if(r=r||"normal",i=i||"normal",n=+n||{normal:400,bold:700,lighter:300,bolder:800}[n]||400,e.fonts){var o,a=e.fonts[t];if(!a){var s=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,D)+"(\\s|$)","i");for(var l in e.fonts)if(e.fonts[w](l)&&s.test(l)){a=e.fonts[l];break}}if(a)for(var u=0,c=a.length;u<c&&((o=a[u]).face["font-weight"]!=n||o.face["font-style"]!=i&&o.face["font-style"]||o.face["font-stretch"]!=r);u++);return o}},v.print=function(t,n,i,r,o,a,s,l){a=a||"middle",s=j(F(s||0,1),-1),l=j(F(l||1,3),1);var u,c=O(i)[E](D),h=0,d=0,f=D;if(e.is(r,"string")&&(r=this.getFont(r)),r){u=(o||16)/r.face["units-per-em"];for(var p=r.face.bbox[E](y),g=+p[0],m=p[3]-p[1],v=0,b=+p[1]+("baseline"==a?m+ +r.face.descent:m/2),x=0,w=c.length;x<w;x++){if("\n"==c[x])h=0,k=0,d=0,v+=m*l;else{var _=d&&r.glyphs[c[x-1]]||{},k=r.glyphs[c[x]];h+=d?(_.w||r.w)+(_.k&&_.k[c[x]]||0)+r.w*s:0,d=1}k&&k.d&&(f+=e.transformPath(k.d,["t",h*u,v*u,"s",u,u,g,b,"t",(t-g)/u,(n-b)/u]))}}return this.path(f).attr({fill:"#000",stroke:"none"})},v.add=function(t){if(e.is(t,"array"))for(var n,i=this.set(),r=0,o=t.length;r<o;r++)b[w]((n=t[r]||{}).type)&&i.push(this[n.type]().attr(n));return i},e.format=function(t,n){var i=e.is(n,Y)?[0][M](n):arguments;return t&&e.is(t,z)&&i.length-1&&(t=t.replace(x,function(t,e){return null==i[++e]?D:i[e]})),t||D},e.fullfill=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(t,n,i){var r=i;return n.replace(e,function(t,e,n,i,o){e=e||i,r&&(e in r&&(r=r[e]),"function"==typeof r&&o&&(r=r()))}),r=(null==r||r==i?t:r)+""};return function(e,i){return String(e).replace(t,function(t,e){return n(t,e,i)})}}(),e.ninja=function(){if(k.was)_.win.Raphael=k.is;else{window.Raphael=void 0;try{delete window.Raphael}catch(t){}}return e},e.st=ae,t.on("raphael.DOMload",function(){m=!0}),function(t,n,i){null==t.readyState&&t.addEventListener&&(t.addEventListener(n,i=function(){t.removeEventListener(n,i,!1),t.readyState="complete"},!1),t.readyState="loading"),function n(){/in/.test(t.readyState)?setTimeout(n,9):e.eve("raphael.DOMload")}()}(document,"DOMContentLoaded"),e}).apply(e,i))||(t.exports=r)},function(t,e,n){var i,r,o,a,s,l,u,c,h,d,f,p,g,m;a="0.5.0",s="hasOwnProperty",l=/[\.\/]/,u=/\s*,\s*/,c=function(t,e){return t-e},h={n:{}},d=function(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]},f=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},p=Object.prototype.toString,g=String,m=Array.isArray||function(t){return t instanceof Array||"[object Array]"==p.call(t)},eve=function(t,e){var n,i=o,a=Array.prototype.slice.call(arguments,2),s=eve.listeners(t),l=0,u=[],h={},p=[],g=r;p.firstDefined=d,p.lastDefined=f,r=t,o=0;for(var m=0,v=s.length;m<v;m++)"zIndex"in s[m]&&(u.push(s[m].zIndex),s[m].zIndex<0&&(h[s[m].zIndex]=s[m]));for(u.sort(c);u[l]<0;)if(n=h[u[l++]],p.push(n.apply(e,a)),o)return o=i,p;for(m=0;m<v;m++)if("zIndex"in(n=s[m]))if(n.zIndex==u[l]){if(p.push(n.apply(e,a)),o)break;do{if((n=h[u[++l]])&&p.push(n.apply(e,a)),o)break}while(n)}else h[n.zIndex]=n;else if(p.push(n.apply(e,a)),o)break;return o=i,r=g,p},eve._events=h,eve.listeners=function(t){var e,n,i,r,o,a,s,u,c=m(t)?t:t.split(l),d=h,f=[d],p=[];for(r=0,o=c.length;r<o;r++){for(u=[],a=0,s=f.length;a<s;a++)for(n=[(d=f[a].n)[c[r]],d["*"]],i=2;i--;)(e=n[i])&&(u.push(e),p=p.concat(e.f||[]));f=u}return p},eve.separator=function(t){t?(t="["+(t=g(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",l=new RegExp(t)):l=/[\.\/]/},eve.on=function(t,e){if("function"!=typeof e)return function(){};for(var n=m(t)?m(t[0])?t:[t]:g(t).split(u),i=0,r=n.length;i<r;i++)!function(t){for(var n,i=m(t)?t:g(t).split(l),r=h,o=0,a=i.length;o<a;o++)r=(r=r.n).hasOwnProperty(i[o])&&r[i[o]]||(r[i[o]]={n:{}});for(r.f=r.f||[],o=0,a=r.f.length;o<a;o++)if(r.f[o]==e){n=!0;break}!n&&r.f.push(e)}(n[i]);return function(t){+t==+t&&(e.zIndex=+t)}},eve.f=function(t){var e=[].slice.call(arguments,1);return function(){eve.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},eve.stop=function(){o=1},eve.nt=function(t){var e=m(r)?r.join("."):r;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},eve.nts=function(){return m(r)?r:r.split(l)},eve.off=eve.unbind=function(t,e){if(t){var n=m(t)?m(t[0])?t:[t]:g(t).split(u);if(n.length>1)for(var i=0,r=n.length;i<r;i++)eve.off(n[i],e);else{n=m(t)?t:g(t).split(l);var o,a,c,d,f,p=[h];for(i=0,r=n.length;i<r;i++)for(d=0;d<p.length;d+=c.length-2){if(c=[d,1],o=p[d].n,"*"!=n[i])o[n[i]]&&c.push(o[n[i]]);else for(a in o)o[s](a)&&c.push(o[a]);p.splice.apply(p,c)}for(i=0,r=p.length;i<r;i++)for(o=p[i];o.n;){if(e){if(o.f){for(d=0,f=o.f.length;d<f;d++)if(o.f[d]==e){o.f.splice(d,1);break}!o.f.length&&delete o.f}for(a in o.n)if(o.n[s](a)&&o.n[a].f){var v=o.n[a].f;for(d=0,f=v.length;d<f;d++)if(v[d]==e){v.splice(d,1);break}!v.length&&delete o.n[a].f}}else for(a in delete o.f,o.n)o.n[s](a)&&o.n[a].f&&delete o.n[a].f;o=o.n}}}else eve._events=h={n:{}}},eve.once=function(t,e){var n=function(){return eve.off(t,n),e.apply(this,arguments)};return eve.on(t,n)},eve.version=a,eve.toString=function(){return"You are running Eve "+a},void 0!==t&&t.exports?t.exports=eve:void 0===(i=(function(){return eve}).apply(e,[]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(1)],void 0===(r=(function(t){if(!t||t.svg){var e="hasOwnProperty",n=String,i=parseFloat,r=parseInt,o=Math,a=o.max,s=o.abs,l=o.pow,u=/[, ]+/,c=t.eve,h="",d=" ",f="http://www.w3.org/1999/xlink",p={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},g={};t.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version};var m=function(i,r){if(r)for(var o in"string"==typeof i&&(i=m(i)),r)r[e](o)&&("xlink:"==o.substring(0,6)?i.setAttributeNS(f,o.substring(6),n(r[o])):i.setAttribute(o,n(r[o])));else(i=t._g.doc.createElementNS("http://www.w3.org/2000/svg",i)).style&&(i.style.webkitTapHighlightColor="rgba(0,0,0,0)");return i},v=function(e,r){var u="linear",c=e.id+r,d=.5,f=.5,p=e.node,g=e.paper,v=p.style,b=t._g.doc.getElementById(c);if(!b){if(r=(r=n(r).replace(t._radial_gradient,function(t,e,n){if(u="radial",e&&n){d=i(e);var r=2*((f=i(n))>.5)-1;l(d-.5,2)+l(f-.5,2)>.25&&(f=o.sqrt(.25-l(d-.5,2))*r+.5)&&.5!=f&&(f=f.toFixed(5)-1e-5*r)}return h})).split(/\s*\-\s*/),"linear"==u){var x=r.shift();if(x=-i(x),isNaN(x))return null;var w=[0,0,o.cos(t.rad(x)),o.sin(t.rad(x))],_=1/(a(s(w[2]),s(w[3]))||1);w[2]*=_,w[3]*=_,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var k=t._parseDots(r);if(!k)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(g.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){b=m(u+"Gradient",{id:c}),e.gradient=b,m(b,"radial"==u?{fx:d,fy:f}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:e.matrix.invert()}),g.defs.appendChild(b);for(var S=0,C=k.length;S<C;S++)b.appendChild(m("stop",{offset:k[S].offset?k[S].offset:S?"100%":"0%","stop-color":k[S].color||"#fff","stop-opacity":isFinite(k[S].opacity)?k[S].opacity:1}))}}return m(p,{fill:y(c),opacity:1,"fill-opacity":1}),v.fill=h,v.opacity=1,v.fillOpacity=1,1},y=function(t){if(function(){var t=document.documentMode;return t&&(9===t||10===t)}())return"url('#"+t+"')";var e=document.location;return"url('"+e.protocol+"//"+e.host+e.pathname+e.search+"#"+t+"')"},b=function(t){var e=t.getBBox(1);m(t.pattern,{patternTransform:t.matrix.invert()+" translate("+e.x+","+e.y+")"})},x=function(i,r,o){if("path"==i.type){for(var a,s,l,u,c,d=n(r).toLowerCase().split("-"),f=i.paper,v=o?"end":"start",y=i.node,b=i.attrs,x=b["stroke-width"],w=d.length,_="classic",k=3,S=3,C=5;w--;)switch(d[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":_=d[w];break;case"wide":S=5;break;case"narrow":S=2;break;case"long":k=5;break;case"short":k=2}if("open"==_?(k+=2,S+=2,C+=2,l=1,u=o?4:1,c={fill:"none",stroke:b.stroke}):(u=l=k/2,c={fill:b.stroke,stroke:"none"}),i._.arrows?o?(i._.arrows.endPath&&g[i._.arrows.endPath]--,i._.arrows.endMarker&&g[i._.arrows.endMarker]--):(i._.arrows.startPath&&g[i._.arrows.startPath]--,i._.arrows.startMarker&&g[i._.arrows.startMarker]--):i._.arrows={},"none"!=_){var M="raphael-marker-"+_,T="raphael-marker-"+v+_+k+S+"-obj"+i.id;t._g.doc.getElementById(M)?g[M]++:(f.defs.appendChild(m(m("path"),{"stroke-linecap":"round",d:p[_],id:M})),g[M]=1);var D,A=t._g.doc.getElementById(T);A?(g[T]++,D=A.getElementsByTagName("use")[0]):(A=m(m("marker"),{id:T,markerHeight:S,markerWidth:k,orient:"auto",refX:u,refY:S/2}),D=m(m("use"),{"xlink:href":"#"+M,transform:(o?"rotate(180 "+k/2+" "+S/2+") ":h)+"scale("+k/C+","+S/C+")","stroke-width":(1/((k/C+S/C)/2)).toFixed(4)}),A.appendChild(D),f.defs.appendChild(A),g[T]=1),m(D,c);var O=l*("diamond"!=_&&"oval"!=_);o?(a=i._.arrows.startdx*x||0,s=t.getTotalLength(b.path)-O*x):(a=O*x,s=t.getTotalLength(b.path)-(i._.arrows.enddx*x||0)),(c={})["marker-"+v]="url(#"+T+")",(s||a)&&(c.d=t.getSubpath(b.path,a,s)),m(y,c),i._.arrows[v+"Path"]=M,i._.arrows[v+"Marker"]=T,i._.arrows[v+"dx"]=O,i._.arrows[v+"Type"]=_,i._.arrows[v+"String"]=r}else o?(a=i._.arrows.startdx*x||0,s=t.getTotalLength(b.path)-a):(a=0,s=t.getTotalLength(b.path)-(i._.arrows.enddx*x||0)),i._.arrows[v+"Path"]&&m(y,{d:t.getSubpath(b.path,a,s)}),delete i._.arrows[v+"Path"],delete i._.arrows[v+"Marker"],delete i._.arrows[v+"dx"],delete i._.arrows[v+"Type"],delete i._.arrows[v+"String"];for(c in g)if(g[e](c)&&!g[c]){var E=t._g.doc.getElementById(c);E&&E.parentNode.removeChild(E)}}},w={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},_=function(t,e,i){if(e=w[n(e).toLowerCase()]){for(var r=t.attrs["stroke-width"]||"1",o={round:r,square:r,butt:0}[t.attrs["stroke-linecap"]||i["stroke-linecap"]]||0,a=[],s=e.length;s--;)a[s]=e[s]*r+(s%2?1:-1)*o;m(t.node,{"stroke-dasharray":a.join(",")})}else m(t.node,{"stroke-dasharray":"none"})},k=function(i,o){var l=i.node,c=i.attrs,d=l.style.visibility;for(var p in l.style.visibility="hidden",o)if(o[e](p)){if(!t._availableAttrs[e](p))continue;var g=o[p];switch(c[p]=g,p){case"blur":i.blur(g);break;case"title":var y=l.getElementsByTagName("title");if(y.length&&(y=y[0]))y.firstChild.nodeValue=g;else{y=m("title");var w=t._g.doc.createTextNode(g);y.appendChild(w),l.appendChild(y)}break;case"href":case"target":var k=l.parentNode;if("a"!=k.tagName.toLowerCase()){var C=m("a");k.insertBefore(C,l),C.appendChild(l),k=C}"target"==p?k.setAttributeNS(f,"show","blank"==g?"new":g):k.setAttributeNS(f,p,g);break;case"cursor":l.style.cursor=g;break;case"transform":i.transform(g);break;case"arrow-start":x(i,g);break;case"arrow-end":x(i,g,1);break;case"clip-rect":var M=n(g).split(u);if(4==M.length){i.clip&&i.clip.parentNode.parentNode.removeChild(i.clip.parentNode);var T=m("clipPath"),D=m("rect");T.id=t.createUUID(),m(D,{x:M[0],y:M[1],width:M[2],height:M[3]}),T.appendChild(D),i.paper.defs.appendChild(T),m(l,{"clip-path":"url(#"+T.id+")"}),i.clip=D}if(!g){var A=l.getAttribute("clip-path");if(A){var O=t._g.doc.getElementById(A.replace(/(^url\(#|\)$)/g,h));O&&O.parentNode.removeChild(O),m(l,{"clip-path":h}),delete i.clip}}break;case"path":"path"==i.type&&(m(l,{d:g?c.path=t._pathToAbsolute(g):"M0,0"}),i._.dirty=1,i._.arrows&&("startString"in i._.arrows&&x(i,i._.arrows.startString),"endString"in i._.arrows&&x(i,i._.arrows.endString,1)));break;case"width":if(l.setAttribute(p,g),i._.dirty=1,!c.fx)break;p="x",g=c.x;case"x":c.fx&&(g=-c.x-(c.width||0));case"rx":if("rx"==p&&"rect"==i.type)break;case"cx":l.setAttribute(p,g),i.pattern&&b(i),i._.dirty=1;break;case"height":if(l.setAttribute(p,g),i._.dirty=1,!c.fy)break;p="y",g=c.y;case"y":c.fy&&(g=-c.y-(c.height||0));case"ry":if("ry"==p&&"rect"==i.type)break;case"cy":l.setAttribute(p,g),i.pattern&&b(i),i._.dirty=1;break;case"r":"rect"==i.type?m(l,{rx:g,ry:g}):l.setAttribute(p,g),i._.dirty=1;break;case"src":"image"==i.type&&l.setAttributeNS(f,"href",g);break;case"stroke-width":1==i._.sx&&1==i._.sy||(g/=a(s(i._.sx),s(i._.sy))||1),l.setAttribute(p,g),c["stroke-dasharray"]&&_(i,c["stroke-dasharray"],o),i._.arrows&&("startString"in i._.arrows&&x(i,i._.arrows.startString),"endString"in i._.arrows&&x(i,i._.arrows.endString,1));break;case"stroke-dasharray":_(i,g,o);break;case"fill":var E=n(g).match(t._ISURL);if(E){T=m("pattern");var I=m("image");T.id=t.createUUID(),m(T,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),m(I,{x:0,y:0,"xlink:href":E[1]}),T.appendChild(I),function(e){t._preload(E[1],function(){var t=this.offsetWidth,n=this.offsetHeight;m(e,{width:t,height:n}),m(I,{width:t,height:n})})}(T),i.paper.defs.appendChild(T),m(l,{fill:"url(#"+T.id+")"}),i.pattern=T,i.pattern&&b(i);break}var P=t.getRGB(g);if(P.error){if(("circle"==i.type||"ellipse"==i.type||"r"!=n(g).charAt())&&v(i,g)){if("opacity"in c||"fill-opacity"in c){var L=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,h));if(L){var R=L.getElementsByTagName("stop");m(R[R.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})}}c.gradient=g,c.fill="none";break}}else delete o.gradient,delete c.gradient,!t.is(c.opacity,"undefined")&&t.is(o.opacity,"undefined")&&m(l,{opacity:c.opacity}),!t.is(c["fill-opacity"],"undefined")&&t.is(o["fill-opacity"],"undefined")&&m(l,{"fill-opacity":c["fill-opacity"]});P[e]("opacity")&&m(l,{"fill-opacity":P.opacity>1?P.opacity/100:P.opacity});case"stroke":P=t.getRGB(g),l.setAttribute(p,P.hex),"stroke"==p&&P[e]("opacity")&&m(l,{"stroke-opacity":P.opacity>1?P.opacity/100:P.opacity}),"stroke"==p&&i._.arrows&&("startString"in i._.arrows&&x(i,i._.arrows.startString),"endString"in i._.arrows&&x(i,i._.arrows.endString,1));break;case"gradient":("circle"==i.type||"ellipse"==i.type||"r"!=n(g).charAt())&&v(i,g);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&m(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(c.gradient){(L=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,h)))&&(R=L.getElementsByTagName("stop"),m(R[R.length-1],{"stop-opacity":g}));break}default:"font-size"==p&&(g=r(g,10)+"px");var j=p.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});l.style[j]=g,i._.dirty=1,l.setAttribute(p,g)}}S(i,o),l.style.visibility=d},S=function(i,o){if("text"==i.type&&(o[e]("text")||o[e]("font")||o[e]("font-size")||o[e]("x")||o[e]("y"))){var a=i.attrs,s=i.node,l=s.firstChild?r(t._g.doc.defaultView.getComputedStyle(s.firstChild,h).getPropertyValue("font-size"),10):10;if(o[e]("text")){for(a.text=o.text;s.firstChild;)s.removeChild(s.firstChild);for(var u,c=n(o.text).split("\n"),d=[],f=0,p=c.length;f<p;f++)u=m("tspan"),f&&m(u,{dy:1.2*l,x:a.x}),u.appendChild(t._g.doc.createTextNode(c[f])),s.appendChild(u),d[f]=u}else for(f=0,p=(d=s.getElementsByTagName("tspan")).length;f<p;f++)f?m(d[f],{dy:1.2*l,x:a.x}):m(d[0],{dy:0});m(s,{x:a.x,y:a.y}),i._.dirty=1;var g=i._getBBox(),v=a.y-(g.y+g.height/2);v&&t.is(v,"finite")&&m(d[0],{dy:v})}},C=function(t){return t.parentNode&&"a"===t.parentNode.tagName.toLowerCase()?t.parentNode:t},M=function(e,n){this[0]=this.node=e,e.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),e.raphaelid=this.id,this.matrix=t.matrix(),this.realPath=null,this.paper=n,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},T=t.el;M.prototype=T,T.constructor=M,t._engine.path=function(t,e){var n=m("path");e.canvas&&e.canvas.appendChild(n);var i=new M(n,e);return i.type="path",k(i,{fill:"none",stroke:"#000",path:t}),i},T.rotate=function(t,e,r){if(this.removed)return this;if((t=n(t).split(u)).length-1&&(e=i(t[1]),r=i(t[2])),t=i(t[0]),null==r&&(e=r),null==e||null==r){var o=this.getBBox(1);e=o.x+o.width/2,r=o.y+o.height/2}return this.transform(this._.transform.concat([["r",t,e,r]])),this},T.scale=function(t,e,r,o){if(this.removed)return this;if((t=n(t).split(u)).length-1&&(e=i(t[1]),r=i(t[2]),o=i(t[3])),t=i(t[0]),null==e&&(e=t),null==o&&(r=o),null==r||null==o)var a=this.getBBox(1);return this.transform(this._.transform.concat([["s",t,e,r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o]])),this},T.translate=function(t,e){return this.removed?this:((t=n(t).split(u)).length-1&&(e=i(t[1])),t=i(t[0])||0,this.transform(this._.transform.concat([["t",t,e=+e||0]])),this)},T.transform=function(n){var i=this._;if(null==n)return i.transform;if(t._extractTransform(this,n),this.clip&&m(this.clip,{transform:this.matrix.invert()}),this.pattern&&b(this),this.node&&m(this.node,{transform:this.matrix}),1!=i.sx||1!=i.sy){var r=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return this},T.hide=function(){return this.removed||(this.node.style.display="none"),this},T.show=function(){return this.removed||(this.node.style.display=""),this},T.remove=function(){var e=C(this.node);if(!this.removed&&e.parentNode){var n=this.paper;for(var i in n.__set__&&n.__set__.exclude(this),c.unbind("raphael.*.*."+this.id),this.gradient&&n.defs.removeChild(this.gradient),t._tear(this,n),e.parentNode.removeChild(e),this.removeData(),this)this[i]="function"==typeof this[i]?t._removedFactory(i):null;this.removed=!0}},T._getBBox=function(){if("none"==this.node.style.display){this.show();var t=!0}var e,n=!1;this.paper.canvas.parentElement?e=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(e=this.paper.canvas.parentNode.style),e&&"none"==e.display&&(n=!0,e.display="");var i={};try{i=this.node.getBBox()}catch(t){i={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{i=i||{},n&&(e.display="none")}return t&&this.hide(),i},T.attr=function(n,i){if(this.removed)return this;if(null==n){var r={};for(var o in this.attrs)this.attrs[e](o)&&(r[o]=this.attrs[o]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==i&&t.is(n,"string")){if("fill"==n&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==n)return this._.transform;for(var a=n.split(u),s={},l=0,h=a.length;l<h;l++)s[n=a[l]]=n in this.attrs?this.attrs[n]:t.is(this.paper.customAttributes[n],"function")?this.paper.customAttributes[n].def:t._availableAttrs[n];return h-1?s:s[a[0]]}if(null==i&&t.is(n,"array")){for(s={},l=0,h=n.length;l<h;l++)s[n[l]]=this.attr(n[l]);return s}if(null!=i){var d={};d[n]=i}else null!=n&&t.is(n,"object")&&(d=n);for(var f in d)c("raphael.attr."+f+"."+this.id,this,d[f]);for(f in this.paper.customAttributes)if(this.paper.customAttributes[e](f)&&d[e](f)&&t.is(this.paper.customAttributes[f],"function")){var p=this.paper.customAttributes[f].apply(this,[].concat(d[f]));for(var g in this.attrs[f]=d[f],p)p[e](g)&&(d[g]=p[g])}return k(this,d),this},T.toFront=function(){if(this.removed)return this;var e=C(this.node);e.parentNode.appendChild(e);var n=this.paper;return n.top!=this&&t._tofront(this,n),this},T.toBack=function(){if(this.removed)return this;var e=C(this.node),n=e.parentNode;return n.insertBefore(e,n.firstChild),t._toback(this,this.paper),this},T.insertAfter=function(e){if(this.removed||!e)return this;var n=C(this.node),i=C(e.node||e[e.length-1].node);return i.nextSibling?i.parentNode.insertBefore(n,i.nextSibling):i.parentNode.appendChild(n),t._insertafter(this,e,this.paper),this},T.insertBefore=function(e){if(this.removed||!e)return this;var n=C(this.node),i=C(e.node||e[0].node);return i.parentNode.insertBefore(n,i),t._insertbefore(this,e,this.paper),this},T.blur=function(e){var n=this;if(0!=+e){var i=m("filter"),r=m("feGaussianBlur");n.attrs.blur=e,i.id=t.createUUID(),m(r,{stdDeviation:+e||1.5}),i.appendChild(r),n.paper.defs.appendChild(i),n._blur=i,m(n.node,{filter:"url(#"+i.id+")"})}else n._blur&&(n._blur.parentNode.removeChild(n._blur),delete n._blur,delete n.attrs.blur),n.node.removeAttribute("filter");return n},t._engine.circle=function(t,e,n,i){var r=m("circle");t.canvas&&t.canvas.appendChild(r);var o=new M(r,t);return o.attrs={cx:e,cy:n,r:i,fill:"none",stroke:"#000"},o.type="circle",m(r,o.attrs),o},t._engine.rect=function(t,e,n,i,r,o){var a=m("rect");t.canvas&&t.canvas.appendChild(a);var s=new M(a,t);return s.attrs={x:e,y:n,width:i,height:r,rx:o||0,ry:o||0,fill:"none",stroke:"#000"},s.type="rect",m(a,s.attrs),s},t._engine.ellipse=function(t,e,n,i,r){var o=m("ellipse");t.canvas&&t.canvas.appendChild(o);var a=new M(o,t);return a.attrs={cx:e,cy:n,rx:i,ry:r,fill:"none",stroke:"#000"},a.type="ellipse",m(o,a.attrs),a},t._engine.image=function(t,e,n,i,r,o){var a=m("image");m(a,{x:n,y:i,width:r,height:o,preserveAspectRatio:"none"}),a.setAttributeNS(f,"href",e),t.canvas&&t.canvas.appendChild(a);var s=new M(a,t);return s.attrs={x:n,y:i,width:r,height:o,src:e},s.type="image",s},t._engine.text=function(e,n,i,r){var o=m("text");e.canvas&&e.canvas.appendChild(o);var a=new M(o,e);return a.attrs={x:n,y:i,"text-anchor":"middle",text:r,"font-family":t._availableAttrs["font-family"],"font-size":t._availableAttrs["font-size"],stroke:"none",fill:"#000"},a.type="text",k(a,a.attrs),a},t._engine.setSize=function(t,e){return this.width=t||this.width,this.height=e||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e&&e.container,i=e.x,r=e.y,o=e.width,a=e.height;if(!n)throw new Error("SVG container not found.");var s,l=m("svg"),u="overflow:hidden;";return i=i||0,r=r||0,o=o||512,m(l,{height:a=a||342,version:1.1,width:o,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==n?(l.style.cssText=u+"position:absolute;left:"+i+"px;top:"+r+"px",t._g.doc.body.appendChild(l),s=1):(l.style.cssText=u+"position:relative",n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l)),(n=new t._Paper).width=o,n.height=a,n.canvas=l,n.clear(),n._left=n._top=0,s&&(n.renderfix=function(){}),n.renderfix(),n},t._engine.setViewBox=function(t,e,n,i,r){c("raphael.setViewBox",this,this._viewBox,[t,e,n,i,r]);var o,s=this.getSize(),l=a(n/s.width,i/s.height),u=this.top,h=r?"xMidYMid meet":"xMinYMin";for(null==t?(this._vbSize&&(l=1),delete this._vbSize,o="0 0 "+this.width+d+this.height):(this._vbSize=l,o=t+d+e+d+n+d+i),m(this.canvas,{viewBox:o,preserveAspectRatio:h});l&&u;)u.attr({"stroke-width":"stroke-width"in u.attrs?u.attrs["stroke-width"]:1}),u._.dirty=1,u._.dirtyT=1,u=u.prev;return this._viewBox=[t,e,n,i,!!r],this},t.prototype.renderfix=function(){var t,e=this.canvas,n=e.style;try{t=e.getScreenCTM()||e.createSVGMatrix()}catch(n){t=e.createSVGMatrix()}var i=-t.e%1,r=-t.f%1;(i||r)&&(i&&(this._left=(this._left+i)%1,n.left=this._left+"px"),r&&(this._top=(this._top+r)%1,n.top=this._top+"px"))},t.prototype.clear=function(){t.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=m("desc")).appendChild(t._g.doc.createTextNode("Created with Rapha\xebl "+t.version)),e.appendChild(this.desc),e.appendChild(this.defs=m("defs"))},t.prototype.remove=function(){for(var e in c("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null};var D=t.st;for(var A in T)T[e](A)&&!D[e](A)&&(D[A]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(A))}}).apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(1)],void 0===(r=(function(t){if(!t||t.vml){var e="hasOwnProperty",n=String,i=parseFloat,r=Math,o=r.round,a=r.max,s=r.min,l=r.abs,u="fill",c=/[, ]+/,h=t.eve,d=" ",f="",p={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},g=/([clmz]),?([^clmz]*)/gi,m=/ progid:\S+Blur\([^\)]+\)/g,v=/-?[^,\s-]+/g,y="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",b=21600,x={path:1,rect:1,image:1},w={circle:1,ellipse:1},_=function(e){var i=/[ahqstv]/gi,r=t._pathToAbsolute;if(n(e).match(i)&&(r=t._path2curve),i=/[clmz]/g,r==t._pathToAbsolute&&!n(e).match(i)){var a=n(e).replace(g,function(t,e,n){var i=[],r="m"==e.toLowerCase(),a=p[e];return n.replace(v,function(t){r&&2==i.length&&(a+=i+p["m"==e?"l":"L"],i=[]),i.push(o(t*b))}),a+i});return a}var s,l,u=r(e);a=[];for(var c=0,h=u.length;c<h;c++){s=u[c],"z"==(l=u[c][0].toLowerCase())&&(l="x");for(var m=1,y=s.length;m<y;m++)l+=o(s[m]*b)+(m!=y-1?",":f);a.push(l)}return a.join(d)},k=function(e,n,i){var r=t.matrix();return r.rotate(-e,.5,.5),{dx:r.x(n,i),dy:r.y(n,i)}},S=function(t,e,n,i,r,o){var a=t._,s=t.matrix,c=a.fillpos,h=t.node,f=h.style,p=1,g="",m=b/e,v=b/n;if(f.visibility="hidden",e&&n){if(h.coordsize=l(m)+d+l(v),f.rotation=o*(e*n<0?-1:1),o){var y=k(o,i,r);i=y.dx,r=y.dy}if(e<0&&(g+="x"),n<0&&(g+=" y")&&(p=-1),f.flip=g,h.coordorigin=i*-m+d+r*-v,c||a.fillsize){var x=h.getElementsByTagName(u);h.removeChild(x=x&&x[0]),c&&(y=k(o,s.x(c[0],c[1]),s.y(c[0],c[1])),x.position=y.dx*p+d+y.dy*p),a.fillsize&&(x.size=a.fillsize[0]*l(e)+d+a.fillsize[1]*l(n)),h.appendChild(x)}f.visibility="visible"}};t.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version};var C,M=function(t,e,i){for(var r=n(e).toLowerCase().split("-"),o=i?"end":"start",a=r.length,s="classic",l="medium",u="medium";a--;)switch(r[a]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=r[a];break;case"wide":case"narrow":u=r[a];break;case"long":case"short":l=r[a]}var c=t.node.getElementsByTagName("stroke")[0];c[o+"arrow"]=s,c[o+"arrowlength"]=l,c[o+"arrowwidth"]=u},T=function(r,l){r.attrs=r.attrs||{};var h=r.node,p=r.attrs,g=h.style,m=x[r.type]&&(l.x!=p.x||l.y!=p.y||l.width!=p.width||l.height!=p.height||l.cx!=p.cx||l.cy!=p.cy||l.rx!=p.rx||l.ry!=p.ry||l.r!=p.r),v=w[r.type]&&(p.cx!=l.cx||p.cy!=l.cy||p.r!=l.r||p.rx!=l.rx||p.ry!=l.ry),y=r;for(var k in l)l[e](k)&&(p[k]=l[k]);if(m&&(p.path=t._getPath[r.type](r),r._.dirty=1),l.href&&(h.href=l.href),l.title&&(h.title=l.title),l.target&&(h.target=l.target),l.cursor&&(g.cursor=l.cursor),"blur"in l&&r.blur(l.blur),(l.path&&"path"==r.type||m)&&(h.path=_(~n(p.path).toLowerCase().indexOf("r")?t._pathToAbsolute(p.path):p.path),r._.dirty=1,"image"==r.type&&(r._.fillpos=[p.x,p.y],r._.fillsize=[p.width,p.height],S(r,1,1,0,0,0))),"transform"in l&&r.transform(l.transform),v){var T=+p.cx,A=+p.cy,O=+p.rx||+p.r||0,E=+p.ry||+p.r||0;h.path=t.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",o((T-O)*b),o((A-E)*b),o((T+O)*b),o((A+E)*b),o(T*b)),r._.dirty=1}if("clip-rect"in l){var I=n(l["clip-rect"]).split(c);if(4==I.length){I[2]=+I[2]+ +I[0],I[3]=+I[3]+ +I[1];var P=h.clipRect||t._g.doc.createElement("div"),L=P.style;L.clip=t.format("rect({1}px {2}px {3}px {0}px)",I),h.clipRect||(L.position="absolute",L.top=0,L.left=0,L.width=r.paper.width+"px",L.height=r.paper.height+"px",h.parentNode.insertBefore(P,h),P.appendChild(h),h.clipRect=P)}l["clip-rect"]||h.clipRect&&(h.clipRect.style.clip="auto")}if(r.textpath){var R=r.textpath.style;l.font&&(R.font=l.font),l["font-family"]&&(R.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,f)+'"'),l["font-size"]&&(R.fontSize=l["font-size"]),l["font-weight"]&&(R.fontWeight=l["font-weight"]),l["font-style"]&&(R.fontStyle=l["font-style"])}if("arrow-start"in l&&M(y,l["arrow-start"]),"arrow-end"in l&&M(y,l["arrow-end"],1),null!=l.opacity||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var j=h.getElementsByTagName(u);if(!(j=j&&j[0])&&(j=C(u)),"image"==r.type&&l.src&&(j.src=l.src),l.fill&&(j.on=!0),null!=j.on&&"none"!=l.fill&&null!==l.fill||(j.on=!1),j.on&&l.fill){var F=n(l.fill).match(t._ISURL);if(F){j.parentNode==h&&h.removeChild(j),j.rotate=!0,j.src=F[1],j.type="tile";var N=r.getBBox(1);j.position=N.x+d+N.y,r._.fillpos=[N.x,N.y],t._preload(F[1],function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]})}else j.color=t.getRGB(l.fill).hex,j.src=f,j.type="solid",t.getRGB(l.fill).error&&(y.type in{circle:1,ellipse:1}||"r"!=n(l.fill).charAt())&&D(y,l.fill,j)&&(p.fill="none",p.gradient=l.fill,j.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var W=((+p["fill-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+t.getRGB(l.fill).o+1||2)-1);W=s(a(W,0),1),j.opacity=W,j.src&&(j.color="none")}h.appendChild(j);var B=h.getElementsByTagName("stroke")&&h.getElementsByTagName("stroke")[0],H=!1;!B&&(H=B=C("stroke")),(l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(B.on=!0),("none"==l.stroke||null===l.stroke||null==B.on||0==l.stroke||0==l["stroke-width"])&&(B.on=!1);var z=t.getRGB(l.stroke);B.on&&l.stroke&&(B.color=z.hex),W=((+p["stroke-opacity"]+1||2)-1)*((+p.opacity+1||2)-1)*((+z.o+1||2)-1);var Y=.75*(i(l["stroke-width"])||1);if(W=s(a(W,0),1),null==l["stroke-width"]&&(Y=p["stroke-width"]),l["stroke-width"]&&(B.weight=Y),Y&&Y<1&&(W*=Y)&&(B.weight=1),B.opacity=W,l["stroke-linejoin"]&&(B.joinstyle=l["stroke-linejoin"]||"miter"),B.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(B.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var U={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};B.dashstyle=U[e](l["stroke-dasharray"])?U[l["stroke-dasharray"]]:f}H&&h.appendChild(B)}if("text"==y.type){y.paper.canvas.style.display=f;var q=y.paper.span,$=p.font&&p.font.match(/\d+(?:\.\d*)?(?=px)/);g=q.style,p.font&&(g.font=p.font),p["font-family"]&&(g.fontFamily=p["font-family"]),p["font-weight"]&&(g.fontWeight=p["font-weight"]),p["font-style"]&&(g.fontStyle=p["font-style"]),$=i(p["font-size"]||$&&$[0])||10,g.fontSize=100*$+"px",y.textpath.string&&(q.innerHTML=n(y.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var V=q.getBoundingClientRect();y.W=p.w=(V.right-V.left)/100,y.H=p.h=(V.bottom-V.top)/100,y.X=p.x,y.Y=p.y+y.H/2,("x"in l||"y"in l)&&(y.path.v=t.format("m{0},{1}l{2},{1}",o(p.x*b),o(p.y*b),o(p.x*b)+1));for(var G=["x","y","text","font","font-family","font-weight","font-style","font-size"],X=0,Q=G.length;X<Q;X++)if(G[X]in l){y._.dirty=1;break}switch(p["text-anchor"]){case"start":y.textpath.style["v-text-align"]="left",y.bbx=y.W/2;break;case"end":y.textpath.style["v-text-align"]="right",y.bbx=-y.W/2;break;default:y.textpath.style["v-text-align"]="center",y.bbx=0}y.textpath.style["v-text-kern"]=!0}},D=function(e,o,a){e.attrs=e.attrs||{};var s=Math.pow,l="linear",u=".5 .5";if(e.attrs.gradient=o,o=(o=n(o).replace(t._radial_gradient,function(t,e,n){return l="radial",e&&n&&(e=i(e),n=i(n),s(e-.5,2)+s(n-.5,2)>.25&&(n=r.sqrt(.25-s(e-.5,2))*(2*(n>.5)-1)+.5),u=e+d+n),f})).split(/\s*\-\s*/),"linear"==l){var c=o.shift();if(c=-i(c),isNaN(c))return null}var h=t._parseDots(o);if(!h)return null;if(e=e.shape||e.node,h.length){e.removeChild(a),a.on=!0,a.method="none",a.color=h[0].color,a.color2=h[h.length-1].color;for(var p=[],g=0,m=h.length;g<m;g++)h[g].offset&&p.push(h[g].offset+d+h[g].color);a.colors=p.length?p.join():"0% "+a.color,"radial"==l?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=u,a.angle=0):(a.type="gradient",a.angle=(270-c)%360),e.appendChild(a)}return 1},A=function(e,n){this[0]=this.node=e,e.raphael=!0,this.id=t._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=n,this.matrix=t.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!n.bottom&&(n.bottom=this),this.prev=n.top,n.top&&(n.top.next=this),n.top=this,this.next=null},O=t.el;A.prototype=O,O.constructor=A,O.transform=function(e){if(null==e)return this._.transform;var i,r=this.paper._viewBoxShift,o=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:f;r&&(i=e=n(e).replace(/\.{3}|\u2026/g,this._.transform||f)),t._extractTransform(this,o+e);var a,s=this.matrix.clone(),l=this.skew,u=this.node,c=~n(this.attrs.fill).indexOf("-"),h=!n(this.attrs.fill).indexOf("url(");if(s.translate(1,1),h||c||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",a=s.split(),c&&a.noRotation||!a.isSimple){u.style.filter=s.toFilter();var p=this.getBBox(),g=this.getBBox(1),m=p.x-g.x,v=p.y-g.y;u.coordorigin=m*-b+d+v*-b,S(this,1,1,m,v,0)}else u.style.filter=f,S(this,a.scalex,a.scaley,a.dx,a.dy,a.rotate);else u.style.filter=f,l.matrix=n(s),l.offset=s.offset();return null!==i&&(this._.transform=i,t._extractTransform(this,i)),this},O.rotate=function(t,e,r){if(this.removed)return this;if(null!=t){if((t=n(t).split(c)).length-1&&(e=i(t[1]),r=i(t[2])),t=i(t[0]),null==r&&(e=r),null==e||null==r){var o=this.getBBox(1);e=o.x+o.width/2,r=o.y+o.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",t,e,r]])),this}},O.translate=function(t,e){return this.removed?this:((t=n(t).split(c)).length-1&&(e=i(t[1])),t=i(t[0])||0,e=+e||0,this._.bbox&&(this._.bbox.x+=t,this._.bbox.y+=e),this.transform(this._.transform.concat([["t",t,e]])),this)},O.scale=function(t,e,r,o){if(this.removed)return this;if((t=n(t).split(c)).length-1&&(e=i(t[1]),r=i(t[2]),o=i(t[3]),isNaN(r)&&(r=null),isNaN(o)&&(o=null)),t=i(t[0]),null==e&&(e=t),null==o&&(r=o),null==r||null==o)var a=this.getBBox(1);return this.transform(this._.transform.concat([["s",t,e,r=null==r?a.x+a.width/2:r,o=null==o?a.y+a.height/2:o]])),this._.dirtyT=1,this},O.hide=function(){return!this.removed&&(this.node.style.display="none"),this},O.show=function(){return!this.removed&&(this.node.style.display=f),this},O.auxGetBBox=t.el.getBBox,O.getBBox=function(){var t=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var e={},n=1/this.paper._viewBoxShift.scale;return e.x=t.x-this.paper._viewBoxShift.dx,e.x*=n,e.y=t.y-this.paper._viewBoxShift.dy,e.y*=n,e.width=t.width*n,e.height=t.height*n,e.x2=e.x+e.width,e.y2=e.y+e.height,e}return t},O._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},O.remove=function(){if(!this.removed&&this.node.parentNode){for(var e in this.paper.__set__&&this.paper.__set__.exclude(this),t.eve.unbind("raphael.*.*."+this.id),t._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;this.removed=!0}},O.attr=function(n,i){if(this.removed)return this;if(null==n){var r={};for(var o in this.attrs)this.attrs[e](o)&&(r[o]=this.attrs[o]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==i&&t.is(n,"string")){if(n==u&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var a=n.split(c),s={},l=0,d=a.length;l<d;l++)s[n=a[l]]=n in this.attrs?this.attrs[n]:t.is(this.paper.customAttributes[n],"function")?this.paper.customAttributes[n].def:t._availableAttrs[n];return d-1?s:s[a[0]]}if(this.attrs&&null==i&&t.is(n,"array")){for(s={},l=0,d=n.length;l<d;l++)s[n[l]]=this.attr(n[l]);return s}var f;for(var p in null!=i&&((f={})[n]=i),null==i&&t.is(n,"object")&&(f=n),f)h("raphael.attr."+p+"."+this.id,this,f[p]);if(f){for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&f[e](p)&&t.is(this.paper.customAttributes[p],"function")){var g=this.paper.customAttributes[p].apply(this,[].concat(f[p]));for(var m in this.attrs[p]=f[p],g)g[e](m)&&(f[m]=g[m])}f.text&&"text"==this.type&&(this.textpath.string=f.text),T(this,f)}return this},O.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&t._tofront(this,this.paper),this},O.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),t._toback(this,this.paper)),this)},O.insertAfter=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),t._insertafter(this,e,this.paper),this)},O.insertBefore=function(e){return this.removed?this:(e.constructor==t.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),t._insertbefore(this,e,this.paper),this)},O.blur=function(e){var n=this.node.runtimeStyle,i=n.filter;return i=i.replace(m,f),0!=+e?(this.attrs.blur=e,n.filter=i+d+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+e||1.5)+")",n.margin=t.format("-{0}px 0 0 -{0}px",o(+e||1.5))):(n.filter=i,n.margin=0,delete this.attrs.blur),this},t._engine.path=function(t,e){var n=C("shape");n.style.cssText=y,n.coordsize=b+d+b,n.coordorigin=e.coordorigin;var i=new A(n,e),r={fill:"none",stroke:"#000"};t&&(r.path=t),i.type="path",i.path=[],i.Path=f,T(i,r),e.canvas&&e.canvas.appendChild(n);var o=C("skew");return o.on=!0,n.appendChild(o),i.skew=o,i.transform(f),i},t._engine.rect=function(e,n,i,r,o,a){var s=t._rectPath(n,i,r,o,a),l=e.path(s),u=l.attrs;return l.X=u.x=n,l.Y=u.y=i,l.W=u.width=r,l.H=u.height=o,u.r=a,u.path=s,l.type="rect",l},t._engine.ellipse=function(t,e,n,i,r){var o=t.path();return o.X=e-i,o.Y=n-r,o.W=2*i,o.H=2*r,o.type="ellipse",T(o,{cx:e,cy:n,rx:i,ry:r}),o},t._engine.circle=function(t,e,n,i){var r=t.path();return r.X=e-i,r.Y=n-i,r.W=r.H=2*i,r.type="circle",T(r,{cx:e,cy:n,r:i}),r},t._engine.image=function(e,n,i,r,o,a){var s=t._rectPath(i,r,o,a),l=e.path(s).attr({stroke:"none"}),c=l.attrs,h=l.node,d=h.getElementsByTagName(u)[0];return c.src=n,l.X=c.x=i,l.Y=c.y=r,l.W=c.width=o,l.H=c.height=a,c.path=s,l.type="image",d.parentNode==h&&h.removeChild(d),d.rotate=!0,d.src=n,d.type="tile",l._.fillpos=[i,r],l._.fillsize=[o,a],h.appendChild(d),S(l,1,1,0,0,0),l},t._engine.text=function(e,i,r,a){var s=C("shape"),l=C("path"),u=C("textpath");i=i||0,r=r||0,a=a||"",l.v=t.format("m{0},{1}l{2},{1}",o(i*b),o(r*b),o(i*b)+1),l.textpathok=!0,u.string=n(a),u.on=!0,s.style.cssText=y,s.coordsize=b+d+b,s.coordorigin="0 0";var c=new A(s,e),h={fill:"#000",stroke:"none",font:t._availableAttrs.font,text:a};c.shape=s,c.path=l,c.textpath=u,c.type="text",c.attrs.text=n(a),c.attrs.x=i,c.attrs.y=r,c.attrs.w=1,c.attrs.h=1,T(c,h),s.appendChild(u),s.appendChild(l),e.canvas.appendChild(s);var p=C("skew");return p.on=!0,s.appendChild(p),c.skew=p,c.transform(f),c},t._engine.setSize=function(e,n){var i=this.canvas.style;return this.width=e,this.height=n,e==+e&&(e+="px"),n==+n&&(n+="px"),i.width=e,i.height=n,i.clip="rect(0 "+e+" "+n+" 0)",this._viewBox&&t._engine.setViewBox.apply(this,this._viewBox),this},t._engine.setViewBox=function(e,n,i,r,o){t.eve("raphael.setViewBox",this,this._viewBox,[e,n,i,r,o]);var a,s,l=this.getSize(),u=l.width,c=l.height;return o&&(s=u/i,i*(a=c/r)<u&&(e-=(u-i*a)/2/a),r*s<c&&(n-=(c-r*s)/2/s)),this._viewBox=[e,n,i,r,!!o],this._viewBoxShift={dx:-e,dy:-n,scale:l},this.forEach(function(t){t.transform("...")}),this},t._engine.initWin=function(t){var e=t.document;e.styleSheets.length<31?e.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):e.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!e.namespaces.rvml&&e.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),C=function(t){return e.createElement("<rvml:"+t+' class="rvml">')}}catch(t){C=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e.container,i=e.height,r=e.width,o=e.x,a=e.y;if(!n)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),u=l.style;return o=o||0,a=a||0,r=r||512,i=i||342,s.width=r,s.height=i,r==+r&&(r+="px"),i==+i&&(i+="px"),s.coordsize=216e5+d+216e5,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),u.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,i),1==n?(t._g.doc.body.appendChild(l),u.left=o+"px",u.top=a+"px",u.position="absolute"):n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=f,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){for(var e in t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var E=t.st;for(var I in O)O[e](I)&&!E[e](I)&&(E[I]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(I))}}).apply(e,i))||(t.exports=r)}])}),(function(){var t,e,n,i,r=[].slice,o=function(t,e){return function(){return t.apply(e,arguments)}},a={}.hasOwnProperty,s=function(t,e){function n(){this.constructor=t}for(var i in e)a.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},l=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};e=window.Morris={},t=jQuery,e.EventEmitter=function(){function t(){}return t.prototype.on=function(t,e){return null==this.handlers&&(this.handlers={}),null==this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this},t.prototype.fire=function(){var t,e,n,i,o,a;if(e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],null!=this.handlers&&null!=this.handlers[e]){for(a=[],n=0,i=(o=this.handlers[e]).length;i>n;n++)a.push(o[n].apply(null,t));return a}},t}(),e.commas=function(t){var e,n,i,r;return null!=t?(i=0>t?"-":"",e=Math.abs(t),i+=(n=Math.floor(e).toFixed(0)).replace(/(?=(?:\d{3})+$)(?!^)/g,","),(r=e.toString()).length>n.length&&(i+=r.slice(n.length)),i):"-"},e.pad2=function(t){return(10>t?"0":"")+t},e.Grid=function(n){function i(e){this.resizeHandler=o(this.resizeHandler,this);var n=this;if(this.el=t("string"==typeof e.element?document.getElementById(e.element):e.element),null==this.el||0===this.el.length)throw new Error("Graph container element not found");"static"===this.el.css("position")&&this.el.css("position","relative"),this.options=t.extend({},this.gridDefaults,this.defaults||{},e),"string"==typeof this.options.units&&(this.options.postUnits=e.units),this.raphael=new Raphael(this.el[0]),this.elementWidth=null,this.elementHeight=null,this.dirty=!1,this.selectFrom=null,this.init&&this.init(),this.setData(this.options.data),this.el.bind("mousemove",function(t){var e,i,r,o;return i=n.el.offset(),o=t.pageX-i.left,n.selectFrom?(e=n.data[n.hitTest(Math.min(o,n.selectFrom))]._x,r=n.data[n.hitTest(Math.max(o,n.selectFrom))]._x,n.selectionRect.attr({x:e,width:r-e})):n.fire("hovermove",o,t.pageY-i.top)}),this.el.bind("mouseleave",function(){return n.selectFrom&&(n.selectionRect.hide(),n.selectFrom=null),n.fire("hoverout")}),this.el.bind("touchstart touchmove touchend",function(t){var e,i;return i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],e=n.el.offset(),n.fire("hovermove",i.pageX-e.left,i.pageY-e.top)}),this.el.bind("click",function(t){var e;return e=n.el.offset(),n.fire("gridclick",t.pageX-e.left,t.pageY-e.top)}),this.options.rangeSelect&&(this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:!1}).toBack().hide(),this.el.bind("mousedown",function(t){var e;return e=n.el.offset(),n.startRange(t.pageX-e.left)}),this.el.bind("mouseup",function(t){var e;return e=n.el.offset(),n.endRange(t.pageX-e.left),n.fire("hovermove",t.pageX-e.left,t.pageY-e.top)})),this.options.resize&&t(window).bind("resize",function(){return null!=n.timeoutId&&window.clearTimeout(n.timeoutId),n.timeoutId=window.setTimeout(n.resizeHandler,100)}),this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),this.postInit&&this.postInit()}return s(i,e.EventEmitter),i.prototype.gridDefaults={dateFormat:null,axes:!0,grid:!0,gridLineColor:"#aaa",gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:!1,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:!0,postUnits:"",preUnits:"",ymax:"auto",ymin:"auto 0",goals:[],goalStrokeWidth:1,goalLineColors:["#666633","#999966","#cc6666","#663333"],events:[],eventStrokeWidth:1,eventLineColors:["#005a04","#ccffbb","#3a5f0b","#005502"],rangeSelect:null,rangeSelectColor:"#eef",resize:!1},i.prototype.setData=function(t,n){var i,r,o,a,s,l,u,c,h,d,f,p,g;return null==n&&(n=!0),this.options.data=t,null==t||0===t.length?(this.data=[],this.raphael.clear(),void(null!=this.hover&&this.hover.hide())):(d=this.cumulative?0:null,f=this.cumulative?0:null,this.options.goals.length>0&&(a=Math.min.apply(Math,this.options.goals),o=Math.max.apply(Math,this.options.goals),f=null!=f?Math.min(f,a):a,d=null!=d?Math.max(d,o):o),this.data=(function(){var n,o,a;for(a=[],r=n=0,o=t.length;o>n;r=++n)(s={src:l=t[r]}).label=l[this.options.xkey],this.options.parseTime?(s.x=e.parseDate(s.label),this.options.dateFormat?s.label=this.options.dateFormat(s.x):"number"==typeof s.label&&(s.label=new Date(s.label).toString())):(s.x=r,this.options.xLabelFormat&&(s.label=this.options.xLabelFormat(s))),c=0,s.y=(function(){var t,e,n,r;for(r=[],i=t=0,e=(n=this.options.ykeys).length;e>t;i=++t)"string"==typeof(p=l[n[i]])&&(p=parseFloat(p)),null!=p&&"number"!=typeof p&&(p=null),null!=p&&(this.cumulative?c+=p:null!=d?(d=Math.max(p,d),f=Math.min(p,f)):d=f=p),this.cumulative&&null!=c&&(d=Math.max(c,d),f=Math.min(c,f)),r.push(p);return r}).call(this),a.push(s);return a}).call(this),this.options.parseTime&&(this.data=this.data.sort(function(t,e){return(t.x>e.x)-(e.x>t.x)})),this.xmin=this.data[0].x,this.xmax=this.data[this.data.length-1].x,this.events=[],this.options.events.length>0&&(this.events=this.options.parseTime?(function(){var t,n,i,r;for(r=[],t=0,n=(i=this.options.events).length;n>t;t++)r.push(e.parseDate(i[t]));return r}).call(this):this.options.events,this.xmax=Math.max(this.xmax,Math.max.apply(Math,this.events)),this.xmin=Math.min(this.xmin,Math.min.apply(Math,this.events))),this.xmin===this.xmax&&(this.xmin-=1,this.xmax+=1),this.ymin=this.yboundary("min",f),this.ymax=this.yboundary("max",d),this.ymin===this.ymax&&(f&&(this.ymin-=1),this.ymax+=1),(!0===(g=this.options.axes)||"both"===g||"y"===g||!0===this.options.grid)&&(this.options.ymax===this.gridDefaults.ymax&&this.options.ymin===this.gridDefaults.ymin?(this.grid=this.autoGridLines(this.ymin,this.ymax,this.options.numLines),this.ymin=Math.min(this.ymin,this.grid[0]),this.ymax=Math.max(this.ymax,this.grid[this.grid.length-1])):(u=(this.ymax-this.ymin)/(this.options.numLines-1),this.grid=(function(){var t,e,n;for(n=[],h=t=this.ymin,e=this.ymax;u>0?e>=t:t>=e;h=t+=u)n.push(h);return n}).call(this))),this.dirty=!0,n?this.redraw():void 0)},i.prototype.yboundary=function(t,e){var n,i;return"string"==typeof(n=this.options["y"+t])?"auto"===n.slice(0,4)?n.length>5?(i=parseInt(n.slice(5),10),null==e?i:Math[t](e,i)):null!=e?e:0:parseInt(n,10):n},i.prototype.autoGridLines=function(t,e,n){var i,r,o,a,s,l,u,c;return c=Math.floor(Math.log(e-t)/Math.log(10)),l=Math.pow(10,c),r=Math.floor(t/l)*l,i=Math.ceil(e/l)*l,s=(i-r)/(n-1),1===l&&s>1&&Math.ceil(s)!==s&&(s=Math.ceil(s),i=r+s*(n-1)),0>r&&i>0&&(r=Math.floor(t/s)*s,i=Math.ceil(e/s)*s),1>s?(a=Math.floor(Math.log(s)/Math.log(10)),o=function(){var t,e;for(e=[],u=t=r;s>0?i>=t:t>=i;u=t+=s)e.push(parseFloat(u.toFixed(1-a)));return e}()):o=function(){var t,e;for(e=[],u=t=r;s>0?i>=t:t>=i;u=t+=s)e.push(u);return e}(),o},i.prototype._calc=function(){var t,e,n,i,r,o,a;return i=this.el.width(),e=this.el.height(),(this.elementWidth!==i||this.elementHeight!==e||this.dirty)&&(this.elementWidth=i,this.elementHeight=e,this.dirty=!1,this.left=this.options.padding,this.right=this.elementWidth-this.options.padding,this.top=this.options.padding,this.bottom=this.elementHeight-this.options.padding,(!0===(o=this.options.axes)||"both"===o||"y"===o)&&(r=(function(){var t,e,n,i;for(i=[],t=0,e=(n=this.grid).length;e>t;t++)i.push(this.measureText(this.yAxisFormat(n[t])).width);return i}).call(this),this.left+=Math.max.apply(Math,r)),(!0===(a=this.options.axes)||"both"===a||"x"===a)&&(t=(function(){var t,e,i;for(i=[],n=t=0,e=this.data.length;e>=0?e>t:t>e;n=e>=0?++t:--t)i.push(this.measureText(this.data[n].text,-this.options.xLabelAngle).height);return i}).call(this),this.bottom-=Math.max.apply(Math,t)),this.width=Math.max(1,this.right-this.left),this.height=Math.max(1,this.bottom-this.top),this.dx=this.width/(this.xmax-this.xmin),this.dy=this.height/(this.ymax-this.ymin),this.calc)?this.calc():void 0},i.prototype.transY=function(t){return this.bottom-(t-this.ymin)*this.dy},i.prototype.transX=function(t){return 1===this.data.length?(this.left+this.right)/2:this.left+(t-this.xmin)*this.dx},i.prototype.redraw=function(){return this.raphael.clear(),this._calc(),this.drawGrid(),this.drawGoals(),this.drawEvents(),this.draw?this.draw():void 0},i.prototype.measureText=function(t,e){var n,i;return null==e&&(e=0),n=(i=this.raphael.text(100,100,t).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).rotate(e)).getBBox(),i.remove(),n},i.prototype.yAxisFormat=function(t){return this.yLabelFormat(t)},i.prototype.yLabelFormat=function(t){return"function"==typeof this.options.yLabelFormat?this.options.yLabelFormat(t):""+this.options.preUnits+e.commas(t)+this.options.postUnits},i.prototype.drawGrid=function(){var t,e,n,i,r,o,a,s;if(!1!==this.options.grid||!0===(r=this.options.axes)||"both"===r||"y"===r){for(s=[],n=0,i=(o=this.grid).length;i>n;n++)e=this.transY(t=o[n]),(!0===(a=this.options.axes)||"both"===a||"y"===a)&&this.drawYAxisLabel(this.left-this.options.padding/2,e,this.yAxisFormat(t)),s.push(this.options.grid?this.drawGridLine("M"+this.left+","+e+"H"+(this.left+this.width)):void 0);return s}},i.prototype.drawGoals=function(){var t,e,n,i,r;for(r=[],t=e=0,n=(i=this.options.goals).length;n>e;t=++e)r.push(this.drawGoal(i[t],this.options.goalLineColors[t%this.options.goalLineColors.length]));return r},i.prototype.drawEvents=function(){var t,e,n,i,r;for(r=[],t=e=0,n=(i=this.events).length;n>e;t=++e)r.push(this.drawEvent(i[t],this.options.eventLineColors[t%this.options.eventLineColors.length]));return r},i.prototype.drawGoal=function(t,e){return this.raphael.path("M"+this.left+","+this.transY(t)+"H"+this.right).attr("stroke",e).attr("stroke-width",this.options.goalStrokeWidth)},i.prototype.drawEvent=function(t,e){return this.raphael.path("M"+this.transX(t)+","+this.bottom+"V"+this.top).attr("stroke",e).attr("stroke-width",this.options.eventStrokeWidth)},i.prototype.drawYAxisLabel=function(t,e,n){return this.raphael.text(t,e,n).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor).attr("text-anchor","end")},i.prototype.drawGridLine=function(t){return this.raphael.path(t).attr("stroke",this.options.gridLineColor).attr("stroke-width",this.options.gridStrokeWidth)},i.prototype.startRange=function(t){return this.hover.hide(),this.selectFrom=t,this.selectionRect.attr({x:t,width:0}).show()},i.prototype.endRange=function(t){var e,n;return this.selectFrom?(n=Math.min(this.selectFrom,t),e=Math.max(this.selectFrom,t),this.options.rangeSelect.call(this.el,{start:this.data[this.hitTest(n)].x,end:this.data[this.hitTest(e)].x}),this.selectFrom=null):void 0},i.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},i}(),e.parseDate=function(t){var e,n,i,r,o,a,s,l,u,c,h;return"number"==typeof t?t:(n=t.match(/^(\d+) Q(\d)$/),r=t.match(/^(\d+)-(\d+)$/),o=t.match(/^(\d+)-(\d+)-(\d+)$/),s=t.match(/^(\d+) W(\d+)$/),l=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+)(Z|([+-])(\d\d):?(\d\d))?$/),u=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+):(\d+(\.\d+)?)(Z|([+-])(\d\d):?(\d\d))?$/),n?new Date(parseInt(n[1],10),3*parseInt(n[2],10)-1,1).getTime():r?new Date(parseInt(r[1],10),parseInt(r[2],10)-1,1).getTime():o?new Date(parseInt(o[1],10),parseInt(o[2],10)-1,parseInt(o[3],10)).getTime():s?(4!==(c=new Date(parseInt(s[1],10),0,1)).getDay()&&c.setMonth(0,1+(4-c.getDay()+7)%7),c.getTime()+6048e5*parseInt(s[2],10)):l?l[6]?(a=0,"Z"!==l[6]&&(a=60*parseInt(l[8],10)+parseInt(l[9],10),"+"===l[7]&&(a=0-a)),Date.UTC(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10)+a)):new Date(parseInt(l[1],10),parseInt(l[2],10)-1,parseInt(l[3],10),parseInt(l[4],10),parseInt(l[5],10)).getTime():u?(h=parseFloat(u[6]),e=Math.floor(h),i=Math.round(1e3*(h-e)),u[8]?(a=0,"Z"!==u[8]&&(a=60*parseInt(u[10],10)+parseInt(u[11],10),"+"===u[9]&&(a=0-a)),Date.UTC(parseInt(u[1],10),parseInt(u[2],10)-1,parseInt(u[3],10),parseInt(u[4],10),parseInt(u[5],10)+a,e,i)):new Date(parseInt(u[1],10),parseInt(u[2],10)-1,parseInt(u[3],10),parseInt(u[4],10),parseInt(u[5],10),e,i).getTime()):new Date(parseInt(t,10),0,1).getTime())},e.Hover=function(){function n(n){null==n&&(n={}),this.options=t.extend({},e.Hover.defaults,n),this.el=t("<div class='"+this.options.class+"'></div>"),this.el.hide(),this.options.parent.append(this.el)}return n.defaults={class:"morris-hover morris-default-style"},n.prototype.update=function(t,e,n){return t?(this.html(t),this.show(),this.moveTo(e,n)):this.hide()},n.prototype.html=function(t){return this.el.html(t)},n.prototype.moveTo=function(t,e){var n,i,r,o,a,s;return a=this.options.parent.innerWidth(),o=this.options.parent.innerHeight(),i=this.el.outerWidth(),n=this.el.outerHeight(),r=Math.min(Math.max(0,t-i/2),a-i),null!=e?0>(s=e-n-10)&&(s=e+10)+n>o&&(s=o/2-n/2):s=o/2-n/2,this.el.css({left:r+"px",top:parseInt(s)+"px"})},n.prototype.show=function(){return this.el.show()},n.prototype.hide=function(){return this.el.hide()},n}(),e.Line=function(t){function n(t){return this.hilight=o(this.hilight,this),this.onHoverOut=o(this.onHoverOut,this),this.onHoverMove=o(this.onHoverMove,this),this.onGridClick=o(this.onGridClick,this),this instanceof e.Line?void n.__super__.constructor.call(this,t):new e.Line(t)}return s(n,e.Grid),n.prototype.init=function(){return"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},n.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:!0,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:!1},n.prototype.calc=function(){return this.calcPoints(),this.generatePaths()},n.prototype.calcPoints=function(){var t,e,n,i,r,o;for(o=[],n=0,i=(r=this.data).length;i>n;n++)(t=r[n])._x=this.transX(t.x),t._y=(function(){var n,i,r,o;for(o=[],n=0,i=(r=t.y).length;i>n;n++)o.push(null!=(e=r[n])?this.transY(e):e);return o}).call(this),o.push(t._ymax=Math.min.apply(Math,[this.bottom].concat(function(){var n,i,r,o;for(o=[],n=0,i=(r=t._y).length;i>n;n++)null!=(e=r[n])&&o.push(e);return o}())));return o},n.prototype.hitTest=function(t){var e,n,i,r;if(0===this.data.length)return null;for(e=n=0,i=(r=this.data.slice(1)).length;i>n&&!(t<(r[e]._x+this.data[e]._x)/2);e=++n);return e},n.prototype.onGridClick=function(t,e){var n;return n=this.hitTest(t),this.fire("click",n,this.data[n].src,t,e)},n.prototype.onHoverMove=function(t){var e;return e=this.hitTest(t),this.displayHoverForRow(e)},n.prototype.onHoverOut=function(){return!1!==this.options.hideHover?this.displayHoverForRow(null):void 0},n.prototype.displayHoverForRow=function(t){var e;return null!=t?((e=this.hover).update.apply(e,this.hoverContentForRow(t)),this.hilight(t)):(this.hover.hide(),this.hilight())},n.prototype.hoverContentForRow=function(t){var e,n,i,r,o,a,s;for(e="<div class='morris-hover-row-label'>"+(i=this.data[t]).label+"</div>",n=o=0,a=(s=i.y).length;a>o;n=++o)r=s[n],e+="<div class='morris-hover-point' style='color: "+this.colorFor(i,n,"label")+"'>\n  "+this.options.labels[n]+":\n  "+this.yLabelFormat(r)+"\n</div>";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,i.src)),[e,i._x,i._ymax]},n.prototype.generatePaths=function(){var t,n,i,r;return this.paths=(function(){var o,a,s;for(s=[],n=o=0,a=this.options.ykeys.length;a>=0?a>o:o>a;n=a>=0?++o:--o)r="boolean"==typeof this.options.smooth?this.options.smooth:l.call(this.options.smooth,this.options.ykeys[n])>=0,t=(function(){var t,e,r,o;for(o=[],t=0,e=(r=this.data).length;e>t;t++)void 0!==(i=r[t])._y[n]&&o.push({x:i._x,y:i._y[n]});return o}).call(this),s.push(t.length>1?e.Line.createPath(t,r,this.bottom):null);return s}).call(this)},n.prototype.draw=function(){var t;return(!0===(t=this.options.axes)||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries(),!1===this.options.hideHover?this.displayHoverForRow(this.data.length-1):void 0},n.prototype.drawXAxis=function(){var t,n,i,r,o,a,s,l,u,c,h=this;for(s=this.bottom+this.options.padding/2,o=null,r=null,t=function(t,e){var n,i,a,l,u;return u=(n=h.drawXAxisLabel(h.transX(e),s,t)).getBBox(),n.transform("r"+-h.options.xLabelAngle),i=n.getBBox(),n.transform("t0,"+i.height/2+"..."),0!==h.options.xLabelAngle&&(l=-.5*u.width*Math.cos(h.options.xLabelAngle*Math.PI/180),n.transform("t"+l+",0...")),i=n.getBBox(),(null==o||o>=i.x+i.width||null!=r&&r>=i.x)&&i.x>=0&&i.x+i.width<h.el.width()?(0!==h.options.xLabelAngle&&(a=1.25*h.options.gridTextSize/Math.sin(h.options.xLabelAngle*Math.PI/180),r=i.x-a),o=i.x-h.options.xLabelMargin):n.remove()},(i=this.options.parseTime?1===this.data.length&&"auto"===this.options.xLabels?[[this.data[0].label,this.data[0].x]]:e.labelSeries(this.xmin,this.xmax,this.width,this.options.xLabels,this.options.xLabelFormat):(function(){var t,e,n,i;for(i=[],t=0,e=(n=this.data).length;e>t;t++)i.push([(a=n[t]).label,a.x]);return i}).call(this)).reverse(),c=[],l=0,u=i.length;u>l;l++)c.push(t((n=i[l])[0],n[1]));return c},n.prototype.drawSeries=function(){var t,e,n,i,r,o;for(this.seriesPoints=[],t=e=i=this.options.ykeys.length-1;0>=i?0>=e:e>=0;t=0>=i?++e:--e)this._drawLineFor(t);for(o=[],t=n=r=this.options.ykeys.length-1;0>=r?0>=n:n>=0;t=0>=r?++n:--n)o.push(this._drawPointFor(t));return o},n.prototype._drawPointFor=function(t){var e,n,i,r,o,a;for(this.seriesPoints[t]=[],a=[],i=0,r=(o=this.data).length;r>i;i++)e=null,null!=(n=o[i])._y[t]&&(e=this.drawLinePoint(n._x,n._y[t],this.colorFor(n,t,"point"),t)),a.push(this.seriesPoints[t].push(e));return a},n.prototype._drawLineFor=function(t){var e;return null!==(e=this.paths[t])?this.drawLinePath(e,this.colorFor(null,t,"line"),t):void 0},n.createPath=function(t,n,i){var r,o,a,s,l,u,c,h,d;for(u="",n&&(a=e.Line.gradients(t)),c={y:null},s=h=0,d=t.length;d>h;s=++h)null!=(r=t[s]).y&&(null!=c.y?n?(o=a[s],u+="C"+(c.x+(l=(r.x-c.x)/4))+","+Math.min(i,c.y+l*a[s-1])+","+(r.x-l)+","+Math.min(i,r.y-l*o)+","+r.x+","+r.y):u+="L"+r.x+","+r.y:n&&null==a[s]||(u+="M"+r.x+","+r.y)),c=r;return u},n.gradients=function(t){var e,n,i,r,o,a,s,l;for(n=function(t,e){return(t.y-e.y)/(t.x-e.x)},l=[],i=a=0,s=t.length;s>a;i=++a)null!=(e=t[i]).y?(r=t[i+1]||{y:null},l.push(null!=(o=t[i-1]||{y:null}).y&&null!=r.y?n(o,r):null!=o.y?n(o,e):null!=r.y?n(e,r):null)):l.push(null);return l},n.prototype.hilight=function(t){var e,n,i,r,o;if(null!==this.prevHilight&&this.prevHilight!==t)for(e=n=0,r=this.seriesPoints.length-1;r>=0?r>=n:n>=r;e=r>=0?++n:--n)this.seriesPoints[e][this.prevHilight]&&this.seriesPoints[e][this.prevHilight].animate(this.pointShrinkSeries(e));if(null!==t&&this.prevHilight!==t)for(e=i=0,o=this.seriesPoints.length-1;o>=0?o>=i:i>=o;e=o>=0?++i:--i)this.seriesPoints[e][t]&&this.seriesPoints[e][t].animate(this.pointGrowSeries(e));return this.prevHilight=t},n.prototype.colorFor=function(t,e,n){return"function"==typeof this.options.lineColors?this.options.lineColors.call(this,t,e,n):"point"===n&&this.options.pointFillColors[e%this.options.pointFillColors.length]||this.options.lineColors[e%this.options.lineColors.length]},n.prototype.drawXAxisLabel=function(t,e,n){return this.raphael.text(t,e,n).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},n.prototype.drawLinePath=function(t,e,n){return this.raphael.path(t).attr("stroke",e).attr("stroke-width",this.lineWidthForSeries(n))},n.prototype.drawLinePoint=function(t,e,n,i){return this.raphael.circle(t,e,this.pointSizeForSeries(i)).attr("fill",n).attr("stroke-width",this.pointStrokeWidthForSeries(i)).attr("stroke",this.pointStrokeColorForSeries(i))},n.prototype.pointStrokeWidthForSeries=function(t){return this.options.pointStrokeWidths[t%this.options.pointStrokeWidths.length]},n.prototype.pointStrokeColorForSeries=function(t){return this.options.pointStrokeColors[t%this.options.pointStrokeColors.length]},n.prototype.lineWidthForSeries=function(t){return this.options.lineWidth instanceof Array?this.options.lineWidth[t%this.options.lineWidth.length]:this.options.lineWidth},n.prototype.pointSizeForSeries=function(t){return this.options.pointSize instanceof Array?this.options.pointSize[t%this.options.pointSize.length]:this.options.pointSize},n.prototype.pointGrowSeries=function(t){return Raphael.animation({r:this.pointSizeForSeries(t)+3},25,"linear")},n.prototype.pointShrinkSeries=function(t){return Raphael.animation({r:this.pointSizeForSeries(t)},25,"linear")},n}(),e.labelSeries=function(n,i,r,o,a){var s,l,u,c,h,d,f,p,g,m;if(u=200*(i-n)/r,l=new Date(n),void 0===(d=e.LABEL_SPECS[o]))for(p=0,g=(m=e.AUTO_LABEL_ORDER).length;g>p;p++)if(u>=(h=e.LABEL_SPECS[m[p]]).span){d=h;break}for(void 0===d&&(d=e.LABEL_SPECS.second),a&&(d=t.extend({},d,{fmt:a})),s=d.start(l),c=[];(f=s.getTime())<=i;)f>=n&&c.push([d.fmt(s),f]),d.incr(s);return c},i=function(t){return{span:1e3*t,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes())},fmt:function(t){return e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())+":"+e.pad2(t.getSeconds())},incr:function(e){return e.setUTCSeconds(e.getUTCSeconds()+t)}}},e.LABEL_SPECS={decade:{span:1728e8,start:function(t){return new Date(t.getFullYear()-t.getFullYear()%10,0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+10)}},year:{span:1728e7,start:function(t){return new Date(t.getFullYear(),0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+1)}},month:{span:24192e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)},incr:function(t){return t.setMonth(t.getMonth()+1)}},week:{span:6048e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+7)}},day:{span:864e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+e.pad2(t.getMonth()+1)+"-"+e.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+1)}},hour:(n=function(t){return{span:60*t*1e3,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours())},fmt:function(t){return e.pad2(t.getHours())+":"+e.pad2(t.getMinutes())},incr:function(e){return e.setUTCMinutes(e.getUTCMinutes()+t)}}})(60),"30min":n(30),"15min":n(15),"10min":n(10),"5min":n(5),minute:n(1),"30sec":i(30),"15sec":i(15),"10sec":i(10),"5sec":i(5),second:i(1)},e.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"],e.Area=function(n){function i(n){var o;return this instanceof e.Area?(o=t.extend({},r,n),this.cumulative=!o.behaveLikeLine,"auto"===o.fillOpacity&&(o.fillOpacity=o.behaveLikeLine?.8:1),void i.__super__.constructor.call(this,o)):new e.Area(n)}var r;return s(i,e.Line),r={fillOpacity:"auto",behaveLikeLine:!1},i.prototype.calcPoints=function(){var t,e,n,i,r,o,a;for(a=[],i=0,r=(o=this.data).length;r>i;i++)(t=o[i])._x=this.transX(t.x),e=0,t._y=(function(){var i,r,o,a;for(a=[],i=0,r=(o=t.y).length;r>i;i++)n=o[i],a.push(this.transY(this.options.behaveLikeLine?n:e+=n||0));return a}).call(this),a.push(t._ymax=Math.max.apply(Math,t._y));return a},i.prototype.drawSeries=function(){var t,e,n,i,r,o,a,s;for(this.seriesPoints=[],s=[],n=0,i=(e=this.options.behaveLikeLine?(function(){o=[];for(var t=0,e=this.options.ykeys.length-1;e>=0?e>=t:t>=e;e>=0?t++:t--)o.push(t);return o}).apply(this):(function(){a=[];for(var t=r=this.options.ykeys.length-1;0>=r?0>=t:t>=0;0>=r?t++:t--)a.push(t);return a}).apply(this)).length;i>n;n++)this._drawFillFor(t=e[n]),this._drawLineFor(t),s.push(this._drawPointFor(t));return s},i.prototype._drawFillFor=function(t){var e;return null!==(e=this.paths[t])?(e+="L"+this.transX(this.xmax)+","+this.bottom+"L"+this.transX(this.xmin)+","+this.bottom+"Z",this.drawFilledPath(e,this.fillForSeries(t))):void 0},i.prototype.fillForSeries=function(t){var e;return e=Raphael.rgb2hsl(this.colorFor(this.data[t],t,"line")),Raphael.hsl(e.h,this.options.behaveLikeLine?.9*e.s:.75*e.s,Math.min(.98,this.options.behaveLikeLine?1.2*e.l:1.25*e.l))},i.prototype.drawFilledPath=function(t,e){return this.raphael.path(t).attr("fill",e).attr("fill-opacity",this.options.fillOpacity).attr("stroke","none")},i}(),e.Bar=function(n){function i(n){return this.onHoverOut=o(this.onHoverOut,this),this.onHoverMove=o(this.onHoverMove,this),this.onGridClick=o(this.onGridClick,this),this instanceof e.Bar?void i.__super__.constructor.call(this,t.extend({},n,{parseTime:!1})):new e.Bar(n)}return s(i,e.Grid),i.prototype.init=function(){return this.cumulative=this.options.stacked,"always"!==this.options.hideHover?(this.hover=new e.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},i.prototype.defaults={barSizeRatio:.75,barGap:3,barColors:["#0b62a4","#7a92a3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],barOpacity:1,barRadius:[0,0,0,0],xLabelMargin:50},i.prototype.calc=function(){var t;return this.calcBars(),!1===this.options.hideHover?(t=this.hover).update.apply(t,this.hoverContentForRow(this.data.length-1)):void 0},i.prototype.calcBars=function(){var t,e,n,i,r,o,a;for(a=[],t=i=0,r=(o=this.data).length;r>i;t=++i)(e=o[t])._x=this.left+this.width*(t+.5)/this.data.length,a.push(e._y=(function(){var t,i,r,o;for(o=[],t=0,i=(r=e.y).length;i>t;t++)o.push(null!=(n=r[t])?this.transY(n):null);return o}).call(this));return a},i.prototype.draw=function(){var t;return(!0===(t=this.options.axes)||"both"===t||"x"===t)&&this.drawXAxis(),this.drawSeries()},i.prototype.drawXAxis=function(){var t,e,n,i,r,o,a,s,l,u,c,h,d;for(u=this.bottom+(this.options.xAxisLabelTopPadding||this.options.padding/2),a=null,o=null,d=[],t=c=0,h=this.data.length;h>=0?h>c:c>h;t=h>=0?++c:--c)l=(e=this.drawXAxisLabel((s=this.data[this.data.length-1-t])._x,u,s.label)).getBBox(),e.transform("r"+-this.options.xLabelAngle),n=e.getBBox(),e.transform("t0,"+n.height/2+"..."),0!==this.options.xLabelAngle&&(r=-.5*l.width*Math.cos(this.options.xLabelAngle*Math.PI/180),e.transform("t"+r+",0...")),(null==a||a>=n.x+n.width||null!=o&&o>=n.x)&&n.x>=0&&n.x+n.width<this.el.width()?(0!==this.options.xLabelAngle&&(i=1.25*this.options.gridTextSize/Math.sin(this.options.xLabelAngle*Math.PI/180),o=n.x-i),d.push(a=n.x-this.options.xLabelMargin)):d.push(e.remove());return d},i.prototype.drawSeries=function(){var t,e,n,i,r,o,a,s,l,u,c,h,d,f;return t=((n=this.width/this.options.data.length)*this.options.barSizeRatio-this.options.barGap*((s=this.options.stacked?1:this.options.ykeys.length)-1))/s,this.options.barSize&&(t=Math.min(t,this.options.barSize)),a=(n-t*s-this.options.barGap*(s-1))/2,f=this.ymin<=0&&this.ymax>=0?this.transY(0):null,this.bars=(function(){var s,p,g,m;for(m=[],i=s=0,p=(g=this.data).length;p>s;i=++s)l=g[i],r=0,m.push((function(){var s,p,g,m;for(m=[],u=s=0,p=(g=l._y).length;p>s;u=++s)null!==(d=g[u])?(f?(h=Math.min(d,f),e=Math.max(d,f)):(h=d,e=this.bottom),o=this.left+i*n+a,this.options.stacked||(o+=u*(t+this.options.barGap)),c=e-h,this.options.verticalGridCondition&&this.options.verticalGridCondition(l.x)&&this.drawBar(this.left+i*n,this.top,n,Math.abs(this.top-this.bottom),this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius),this.options.stacked&&(h-=r),this.drawBar(o,h,t,c,this.colorFor(l,u,"bar"),this.options.barOpacity,this.options.barRadius),m.push(r+=c)):m.push(null);return m}).call(this));return m}).call(this)},i.prototype.colorFor=function(t,e,n){return"function"==typeof this.options.barColors?this.options.barColors.call(this,{x:t.x,y:t.y[e],label:t.label},{index:e,key:this.options.ykeys[e],label:this.options.labels[e]},n):this.options.barColors[e%this.options.barColors.length]},i.prototype.hitTest=function(t){return 0===this.data.length?null:(t=Math.max(Math.min(t,this.right),this.left),Math.min(this.data.length-1,Math.floor((t-this.left)/(this.width/this.data.length))))},i.prototype.onGridClick=function(t,e){var n;return n=this.hitTest(t),this.fire("click",n,this.data[n].src,t,e)},i.prototype.onHoverMove=function(t){var e,n;return e=this.hitTest(t),(n=this.hover).update.apply(n,this.hoverContentForRow(e))},i.prototype.onHoverOut=function(){return!1!==this.options.hideHover?this.hover.hide():void 0},i.prototype.hoverContentForRow=function(t){var e,n,i,r,o,a,s;for(e="<div class='morris-hover-row-label'>"+(i=this.data[t]).label+"</div>",n=o=0,a=(s=i.y).length;a>o;n=++o)r=s[n],e+="<div class='morris-hover-point' style='color: "+this.colorFor(i,n,"label")+"'>\n  "+this.options.labels[n]+":\n  "+this.yLabelFormat(r)+"\n</div>";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,i.src)),[e,this.left+(t+.5)*this.width/this.data.length]},i.prototype.drawXAxisLabel=function(t,e,n){return this.raphael.text(t,e,n).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},i.prototype.drawBar=function(t,e,n,i,r,o,a){var s;return(0===(s=Math.max.apply(Math,a))||s>i?this.raphael.rect(t,e,n,i):this.raphael.path(this.roundedRect(t,e,n,i,a))).attr("fill",r).attr("fill-opacity",o).attr("stroke","none")},i.prototype.roundedRect=function(t,e,n,i,r){return null==r&&(r=[0,0,0,0]),["M",t,r[0]+e,"Q",t,e,t+r[0],e,"L",t+n-r[1],e,"Q",t+n,e,t+n,e+r[1],"L",t+n,e+i-r[2],"Q",t+n,e+i,t+n-r[2],e+i,"L",t+r[3],e+i,"Q",t,e+i,t,e+i-r[3],"Z"]},i}(),e.Donut=function(n){function i(n){this.resizeHandler=o(this.resizeHandler,this),this.select=o(this.select,this),this.click=o(this.click,this);var i=this;if(!(this instanceof e.Donut))return new e.Donut(n);if(this.options=t.extend({},this.defaults,n),this.el=t("string"==typeof n.element?document.getElementById(n.element):n.element),null===this.el||0===this.el.length)throw new Error("Graph placeholder not found.");void 0!==n.data&&0!==n.data.length&&(this.raphael=new Raphael(this.el[0]),this.options.resize&&t(window).bind("resize",function(){return null!=i.timeoutId&&window.clearTimeout(i.timeoutId),i.timeoutId=window.setTimeout(i.resizeHandler,100)}),this.setData(n.data))}return s(i,e.EventEmitter),i.prototype.defaults={colors:["#0B62A4","#3980B5","#679DC6","#95BBD7","#B0CCE1","#095791","#095085","#083E67","#052C48","#042135"],backgroundColor:"#FFFFFF",labelColor:"#000000",formatter:e.commas,resize:!1},i.prototype.redraw=function(){var t,n,i,r,o,a,s,l,u,c,h,d,f,p,g,m,v,y,b,x,w,_;for(this.raphael.clear(),n=this.el.width()/2,i=this.el.height()/2,d=(Math.min(n,i)-10)/3,h=0,f=0,m=(b=this.values).length;m>f;f++)h+=b[f];for(l=5/(2*d),t=1.9999*Math.PI-l*this.data.length,a=0,o=0,this.segments=[],r=p=0,v=(x=this.values).length;v>p;r=++p)(c=new e.DonutSegment(n,i,2*d,d,a,u=a+l+t*(x[r]/h),this.data[r].color||this.options.colors[o%this.options.colors.length],this.options.backgroundColor,o,this.raphael)).render(),this.segments.push(c),c.on("hover",this.select),c.on("click",this.click),a=u,o+=1;for(this.text1=this.drawEmptyDonutLabel(n,i-10,this.options.labelColor,15,800),this.text2=this.drawEmptyDonutLabel(n,i+10,this.options.labelColor,14),s=Math.max.apply(Math,this.values),o=0,_=[],g=0,y=(w=this.values).length;y>g;g++){if(w[g]===s){this.select(o);break}_.push(o+=1)}return _},i.prototype.setData=function(t){return this.data=t,this.values=(function(){var t,e,n,i;for(i=[],t=0,e=(n=this.data).length;e>t;t++)i.push(parseFloat(n[t].value));return i}).call(this),this.redraw()},i.prototype.click=function(t){return this.fire("click",t,this.data[t])},i.prototype.select=function(t){var e,n,i,r;for(n=0,i=(r=this.segments).length;i>n;n++)r[n].deselect();return this.segments[t].select(),this.setLabels((e=this.data[t]).label,this.options.formatter(e.value,e))},i.prototype.setLabels=function(t,e){var n,i,r,o,a,s,l,u;return o=1.8*(n=2*(Math.min(this.el.width()/2,this.el.height()/2)-10)/3),r=n/2,i=n/3,this.text1.attr({text:t,transform:""}),a=this.text1.getBBox(),s=Math.min(o/a.width,r/a.height),this.text1.attr({transform:"S"+s+","+s+","+(a.x+a.width/2)+","+(a.y+a.height)}),this.text2.attr({text:e,transform:""}),l=this.text2.getBBox(),u=Math.min(o/l.width,i/l.height),this.text2.attr({transform:"S"+u+","+u+","+(l.x+l.width/2)+","+l.y})},i.prototype.drawEmptyDonutLabel=function(t,e,n,i,r){var o;return o=this.raphael.text(t,e,"").attr("font-size",i).attr("fill",n),null!=r&&o.attr("font-weight",r),o},i.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},i}(),e.DonutSegment=function(t){function e(t,e,n,i,r,a,s,l,u,c){this.cx=t,this.cy=e,this.inner=n,this.outer=i,this.color=s,this.backgroundColor=l,this.index=u,this.raphael=c,this.deselect=o(this.deselect,this),this.select=o(this.select,this),this.sin_p0=Math.sin(r),this.cos_p0=Math.cos(r),this.sin_p1=Math.sin(a),this.cos_p1=Math.cos(a),this.is_long=a-r>Math.PI?1:0,this.path=this.calcSegment(this.inner+3,this.inner+this.outer-5),this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer),this.hilight=this.calcArc(this.inner)}return s(e,t),e.prototype.calcArcPoints=function(t){return[this.cx+t*this.sin_p0,this.cy+t*this.cos_p0,this.cx+t*this.sin_p1,this.cy+t*this.cos_p1]},e.prototype.calcSegment=function(t,e){var n,i,r,o,a,s;return n=(a=this.calcArcPoints(t))[0],r=a[1],i=a[2],o=a[3],s=this.calcArcPoints(e),"M"+n+","+r+"A"+t+","+t+",0,"+this.is_long+",0,"+i+","+o+"L"+s[2]+","+s[3]+"A"+e+","+e+",0,"+this.is_long+",1,"+s[0]+","+s[1]+"Z"},e.prototype.calcArc=function(t){var e;return"M"+(e=this.calcArcPoints(t))[0]+","+e[1]+"A"+t+","+t+",0,"+this.is_long+",0,"+e[2]+","+e[3]},e.prototype.render=function(){var t=this;return this.arc=this.drawDonutArc(this.hilight,this.color),this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,function(){return t.fire("hover",t.index)},function(){return t.fire("click",t.index)})},e.prototype.drawDonutArc=function(t,e){return this.raphael.path(t).attr({stroke:e,"stroke-width":2,opacity:0})},e.prototype.drawDonutSegment=function(t,e,n,i,r){return this.raphael.path(t).attr({fill:e,stroke:n,"stroke-width":3}).hover(i).click(r)},e.prototype.select=function(){return this.selected?void 0:(this.seg.animate({path:this.selectedPath},150,"<>"),this.arc.animate({opacity:1},150,"<>"),this.selected=!0)},e.prototype.deselect=function(){return this.selected?(this.seg.animate({path:this.path},150,"<>"),this.arc.animate({opacity:0},150,"<>"),this.selected=!1):void 0},e}(e.EventEmitter)}).call(this),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){return r(e[a][1][t]||t)},c,c.exports,t,e,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){var i=t(5);function r(t){if(t){var e=[0,0,0],n=1,r=t.match(/^#([a-fA-F0-9]{3})$/i);if(r){r=r[1];for(var o=0;o<e.length;o++)e[o]=parseInt(r[o]+r[o],16)}else if(r=t.match(/^#([a-fA-F0-9]{6})$/i))for(r=r[1],o=0;o<e.length;o++)e[o]=parseInt(r.slice(2*o,2*o+2),16);else if(r=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(r[o+1]);n=parseFloat(r[4])}else if(r=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(r[o+1]));n=parseFloat(r[4])}else if(r=t.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(e=i[r[1]]))return}for(o=0;o<e.length;o++)e[o]=c(e[o],0,255);return n=n||0==n?c(n,0,1):1,e[3]=n,e}}function o(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[c(parseInt(e[1]),0,360),c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function a(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[c(parseInt(e[1]),0,360),c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function c(t,e,n){return Math.min(Math.max(e,t),n)}function h(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}e.exports={getRgba:r,getHsla:o,getRgb:function(t){var e=r(t);return e&&e.slice(0,3)},getHsl:function(t){var e=o(t);return e&&e.slice(0,3)},getHwb:a,getAlpha:function(t){var e=r(t);return e?e[3]:(e=o(t))?e[3]:(e=a(t))?e[3]:void 0},hexString:function(t){return"#"+h(t[0])+h(t[1])+h(t[2])},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?s(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){return e<1||t[3]&&t[3]<1?l(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:l,hslString:function(t,e){return e<1||t[3]&&t[3]<1?u(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return d[t.slice(0,3)]}};var d={};for(var f in i)d[i[f]]=f},{5:5}],2:[function(t,e,n){var i=t(4),r=t(1),o=function(t){return t instanceof o?t:this instanceof o?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=r.getRgba(t))?this.setValues("rgb",e):(e=r.getHsla(t))?this.setValues("hsl",e):(e=r.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new o(t);var e};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,r=void 0===e?.5:e,o=2*r-1,a=n.alpha()-i.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new o,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&("[object Array]"===(e={}.toString.call(t=i[a]))?r[a]=t.slice(0):"[object Number]"===e?r[a]=t:console.error("unexpected color value:",t));return n}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},o.prototype.setValues=function(t,e){var n,r,o=this.values,a=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===t)l=e;else if(e.length)o[t]=e.slice(0,t.length),l=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)o[t][n]=e[t.charAt(n)];l=e.a}else if(void 0!==e[a[t][0]]){var u=a[t];for(n=0;n<t.length;n++)o[t][n]=e[u[n]];l=e.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===l?o.alpha:l)),"alpha"===t)return!1;for(n=0;n<t.length;n++)r=Math.max(0,Math.min(s[t][n],o[t][n])),o[t][n]=Math.round(r);for(var c in a)c!==t&&(o[c]=i[t][c](o[t]));return!0},o.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:n===i[e]?this:(i[e]=n,this.setValues(t,i),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},{1:1,4:4}],3:[function(t,e,n){function i(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return s==a?e=0:i==s?e=(r-o)/l:r==s?e=2+(o-i)/l:o==s&&(e=4+(i-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s==a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]}function o(t){var e,n,i=t[0],r=t[1],o=t[2],a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return n=0==s?0:l/s*1e3/10,s==a?e=0:i==s?e=(r-o)/l:r==s?e=2+(o-i)/l:o==s&&(e=4+(i-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,s/255*1e3/10]}function a(t){var e=t[0],n=t[1],r=t[2];return[i(t)[0],1/255*Math.min(e,Math.min(n,r))*100,100*(r=1-1/255*Math.max(e,Math.max(n,r)))]}function s(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-r)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-r-e)/(1-e)||0),100*e]}function l(t){return C[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function c(t){var e=u(t),n=e[0],i=e[1],r=e[2];return i/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function h(t){var e,n,i,r,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[o=255*l,o,o];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var u=0;u<3;u++)(i=a+1/3*-(u-1))<0&&i++,i>1&&i--,r[u]=255*(o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e);return r}function d(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,o=e-Math.floor(e),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}}function f(t){var e,n,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),i=6*a-(e=Math.floor(6*a)),0!=(1&e)&&(i=1-i),o=s+i*((n=1-l)-s),e){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function p(t){var e=t[1]/100,n=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-i)+i)),255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]}function m(t){var e,n,i,r=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,e=(e=3.2406*r+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]}function v(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function y(t){var e,n,i,r,o=t[0],a=t[1],s=t[2];return o<=8?r=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),r=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(a/500+r-16/116)/7.787:95.047*Math.pow(a/500+r,3),n,i=i/108.883<=.008859?i=108.883*(r-s/200-16/116)/7.787:108.883*Math.pow(r-s/200,3)]}function x(t){var e,n=t[0],i=t[1],r=t[2];return(e=360*Math.atan2(r,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+r*r),e]}function w(t){return m(y(t))}function _(t){var e,n=t[1];return e=t[2]/360*2*Math.PI,[t[0],n*Math.cos(e),n*Math.sin(e)]}function k(t){return S[t]}e.exports={rgb2hsl:i,rgb2hsv:o,rgb2hwb:a,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return x(c(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[1]/100,n=t[2]/100;return 0===n?[0,0,0]:[t[0],2*(e*=(n*=2)<=1?n:2-n)/(n+e)*100,(n+e)/2*100]},hsl2hwb:function(t){return a(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:d,hsv2hsl:function(t){var e,n,i=t[1]/100,r=t[2]/100;return e=i*r,[t[0],100*(e=(e/=(n=(2-i)*r)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return a(d(t))},hsv2cmyk:function(t){return s(d(t))},hsv2keyword:function(t){return l(d(t))},hwb2rgb:f,hwb2hsl:function(t){return i(f(t))},hwb2hsv:function(t){return o(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return i(p(t))},cmyk2hsv:function(t){return o(p(t))},cmyk2hwb:function(t){return a(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:k,keyword2hsl:function(t){return i(k(t))},keyword2hsv:function(t){return o(k(t))},keyword2hwb:function(t){return a(k(t))},keyword2cmyk:function(t){return s(k(t))},keyword2lab:function(t){return c(k(t))},keyword2xyz:function(t){return u(k(t))},xyz2rgb:m,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:w,lab2lch:x,lch2lab:_,lch2xyz:function(t){return y(_(t))},lch2rgb:function(t){return w(_(t))}};var S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},C={};for(var M in S)C[JSON.stringify(S[M])]=M},{}],4:[function(t,e,n){var i=t(3),r=function(){return new u};for(var o in i){r[o+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(o);var a=/(\w+)2(\w+)/.exec(o),s=a[1],l=a[2];(r[s]=r[s]||{})[l]=r[o]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var r=0;r<n.length;r++)n[r]=Math.round(n[r]);return n}}(o)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var n=this.space;e=r[n][t](this.convs[n]),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){u.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=r},{3:3}],5:[function(t,e,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(t,e,n){var i;i=function(){"use strict";var n,i;function r(){return n.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,i){return Te(t,e,n,i,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=p(t),n=i.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=f(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var v=r.momentProperties=[];function y(t,e){var n,i,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=p(e)),s(e._locale)||(t._locale=e._locale),v.length>0)for(n=0;n<v.length;n++)s(r=e[i=v[n]])||(t[i]=r);return t}var b=!1;function x(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function w(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=_(e)),n}function S(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&k(t[i])!==k(e[i]))&&a++;return a+o}function C(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function M(t,e){var n=!0;return d(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(var s in i+="\n["+a+"] ",arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}C(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var T,D={};function A(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),D[t]||(C(e),D[t]=!0)}function O(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var n,i=d({},t);for(n in e)h(e,n)&&(a(t[n])&&a(e[n])?(i[n]={},d(i[n],t[n]),d(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)h(t,n)&&!h(e,n)&&a(t[n])&&(i[n]=d({},i[n]));return i}function I(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)h(t,e)&&n.push(e);return n};var P={};function L(t,e){var n=t.toLowerCase();P[n]=P[n+"s"]=P[e]=t}function R(t){return"string"==typeof t?P[t]||P[t.toLowerCase()]:void 0}function j(t){var e,n,i={};for(n in t)h(t,n)&&(e=R(n))&&(i[e]=t[n]);return i}var F={};function N(t,e){F[t]=e}function W(t,e,n){var i=""+Math.abs(t);return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var B=/(\[[^\[]*\])|(\\)?([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,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},Y={};function U(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(Y[t]=r),e&&(Y[e[0]]=function(){return W(r.apply(this,arguments),e[1],e[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function q(t,e){return t.isValid()?(e=$(e,t.localeData()),z[e]=z[e]||function(t){var e,n,i,r=t.match(B);for(e=0,n=r.length;e<n;e++)r[e]=Y[r[e]]?Y[r[e]]:(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(e,t):r[i];return o}}(e),z[e](t)):t.localeData().invalidDate()}function $(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;n>=0&&H.test(t);)t=t.replace(H,i),H.lastIndex=0,n-=1;return t}var V=/\d/,G=/\d\d/,X=/\d{3}/,Q=/\d{4}/,Z=/[+-]?\d{6}/,J=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,it=/[+-]?\d{1,6}/,rt=/\d+/,ot=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ut={};function ct(t,e,n){ut[t]=O(e)?e:function(t,i){return t&&n?n:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function pt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),l(e)&&(i=function(t,n){n[e]=k(t)}),n=0;n<t.length;n++)ft[t[n]]=i}function gt(t,e){pt(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}var mt=0,vt=1,yt=2,bt=3,xt=4,wt=5,_t=6,kt=7,St=8;function Ct(t){return Mt(t)?366:365}function Mt(t){return t%4==0&&t%100!=0||t%400==0}U("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),L("year","y"),N("year",1),ct("Y",ot),ct("YY",J,G),ct("YYYY",nt,Q),ct("YYYYY",it,Z),ct("YYYYYY",it,Z),pt(["YYYYY","YYYYYY"],mt),pt("YYYY",function(t,e){e[mt]=2===t.length?r.parseTwoDigitYear(t):k(t)}),pt("YY",function(t,e){e[mt]=r.parseTwoDigitYear(t)}),pt("Y",function(t,e){e[mt]=parseInt(t,10)}),r.parseTwoDigitYear=function(t){return k(t)+(k(t)>68?1900:2e3)};var Tt,Dt=At("FullYear",!0);function At(t,e){return function(n){return null!=n?(Et(this,t,n),r.updateOffset(this,e),this):Ot(this,t)}}function Ot(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Et(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),It(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function It(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?Mt(t)?29:28:31-n%7%2}Tt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),U("MMMM",0,0,function(t){return this.localeData().months(this,t)}),L("month","M"),N("month",8),ct("M",J),ct("MM",J,G),ct("MMM",function(t,e){return e.monthsShortRegex(t)}),ct("MMMM",function(t,e){return e.monthsRegex(t)}),pt(["M","MM"],function(t,e){e[vt]=k(t)-1}),pt(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[vt]=r:p(n).invalidMonth=t});var Pt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Lt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Rt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function jt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),It(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(jt(this,t),r.updateOffset(this,!0),this):Ot(this,"Month")}var Nt=lt,Wt=lt;function Bt(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],o=[];for(e=0;e<12;e++)n=f([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)i[e]=dt(i[e]),r[e]=dt(r[e]);for(e=0;e<24;e++)o[e]=dt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ht(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function zt(t,e,n){var i=7+e-n;return-(7+Ht(t,0,i).getUTCDay()-e)%7+i-1}function Yt(t,e,n,i,r){var o,a,s=1+7*(e-1)+(7+n-i)%7+zt(t,i,r);return s<=0?a=Ct(o=t-1)+s:s>Ct(t)?(o=t+1,a=s-Ct(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Ut(t,e,n){var i,r,o=zt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?i=a+qt(r=t.year()-1,e,n):a>qt(t.year(),e,n)?(i=a-qt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function qt(t,e,n){var i=zt(t,e,n),r=zt(t+1,e,n);return(Ct(t)-i+r)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),N("week",5),N("isoWeek",5),ct("w",J),ct("ww",J,G),ct("W",J),ct("WW",J,G),gt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)}),U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),ct("d",J),ct("e",J),ct("E",J),ct("dd",function(t,e){return e.weekdaysMinRegex(t)}),ct("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ct("dddd",function(t,e){return e.weekdaysRegex(t)}),gt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:p(n).invalidWeekday=t}),gt(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var $t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xt=lt,Qt=lt,Zt=lt;function Jt(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(a.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=dt(s[e]),l[e]=dt(l[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Kt(){return this.hours()%12||12}function te(t,e){U(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ee(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Kt),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+Kt.apply(this)+W(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Kt.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),te("a",!0),te("A",!1),L("hour","h"),N("hour",13),ct("a",ee),ct("A",ee),ct("H",J),ct("h",J),ct("k",J),ct("HH",J,G),ct("hh",J,G),ct("kk",J,G),ct("hmm",K),ct("hmmss",tt),ct("Hmm",K),ct("Hmmss",tt),pt(["H","HH"],bt),pt(["k","kk"],function(t,e,n){var i=k(t);e[bt]=24===i?0:i}),pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),pt(["h","hh"],function(t,e,n){e[bt]=k(t),p(n).bigHour=!0}),pt("hmm",function(t,e,n){var i=t.length-2;e[bt]=k(t.substr(0,i)),e[xt]=k(t.substr(i)),p(n).bigHour=!0}),pt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[bt]=k(t.substr(0,i)),e[xt]=k(t.substr(i,2)),e[wt]=k(t.substr(r)),p(n).bigHour=!0}),pt("Hmm",function(t,e,n){var i=t.length-2;e[bt]=k(t.substr(0,i)),e[xt]=k(t.substr(i))}),pt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[bt]=k(t.substr(0,i)),e[xt]=k(t.substr(i,2)),e[wt]=k(t.substr(r))});var ne,ie=At("Hours",!0),re={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Lt,monthsShort:Rt,week:{dow:0,doy:6},weekdays:$t,weekdaysMin:Gt,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},oe={},ae={};function se(t){return t?t.toLowerCase().replace("_","-"):t}function le(n){var i=null;if(!oe[n]&&void 0!==e&&e&&e.exports)try{i=ne._abbr,t("./locale/"+n),ue(i)}catch(t){}return oe[n]}function ue(t,e){var n;return t&&(n=s(e)?he(t):ce(t,e))&&(ne=n),ne._abbr}function ce(t,e){if(null!==e){var n=re;if(e.abbr=t,null!=oe[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=oe[t]._config;else if(null!=e.parentLocale){if(null==oe[e.parentLocale])return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;n=oe[e.parentLocale]._config}return oe[t]=new I(E(n,e)),ae[t]&&ae[t].forEach(function(t){ce(t.name,t.config)}),ue(t),oe[t]}return delete oe[t],null}function he(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ne;if(!o(t)){if(e=le(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=se(t[o]).split("-")).length,n=(n=se(t[o+1]))?n.split("-"):null;e>0;){if(i=le(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&S(r,n,!0)>=e-1)break;e--}o++}return null}(t)}function de(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[vt]<0||n[vt]>11?vt:n[yt]<1||n[yt]>It(n[mt],n[vt])?yt:n[bt]<0||n[bt]>24||24===n[bt]&&(0!==n[xt]||0!==n[wt]||0!==n[_t])?bt:n[xt]<0||n[xt]>59?xt:n[wt]<0||n[wt]>59?wt:n[_t]<0||n[_t]>999?_t:-1,p(t)._overflowDayOfYear&&(e<mt||e>yt)&&(e=yt),p(t)._overflowWeeks&&-1===e&&(e=kt),p(t)._overflowWeekday&&-1===e&&(e=St),p(t).overflow=e),t}function fe(t,e,n){return null!=t?t:null!=e?e:n}function pe(t){var e,n,i,o,a,s=[];if(!t._d){var l,u;for(l=t,u=new Date(r.now()),i=l._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],t._w&&null==t._a[yt]&&null==t._a[vt]&&function(t){var e,n,i,r,o,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=fe(e.GG,t._a[mt],Ut(De(),1,4).year),i=fe(e.W,1),((r=fe(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var u=Ut(De(),o,a);n=fe(e.gg,t._a[mt],u.year),i=fe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}i<1||i>qt(n,o,a)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(s=Yt(n,i,r,o,a),t._a[mt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=fe(t._a[mt],i[mt]),(t._dayOfYear>Ct(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Ht(a,0,t._dayOfYear),t._a[vt]=n.getUTCMonth(),t._a[yt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[bt]&&0===t._a[xt]&&0===t._a[wt]&&0===t._a[_t]&&(t._nextDay=!0,t._a[bt]=0),t._d=(t._useUTC?Ht:function(t,e,n,i,r,o,a){var s=new Date(t,e,n,i,r,o,a);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[bt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}var ge=/^\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)?)?$/,me=/^\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)?)?$/,ve=/Z|[+-]\d\d(?::?\d\d)?/,ye=[["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}/]],be=[["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/]],xe=/^\/?Date\((\-?\d+)/i;function we(t){var e,n,i,r,o,a,s=t._i,l=ge.exec(s)||me.exec(s);if(l){for(p(t).iso=!0,e=0,n=ye.length;e<n;e++)if(ye[e][1].exec(l[1])){r=ye[e][0],i=!1!==ye[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=be.length;e<n;e++)if(be[e][1].exec(l[3])){o=(l[2]||" ")+be[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!ve.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(o||"")+(a||""),Ce(t)}else t._isValid=!1}var _e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ke={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Se(t){var e,n,i,r=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(r){var o=function(t,e,n,i,r,o){var a=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Rt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&a.push(parseInt(o,10)),a}(r[4],r[3],r[2],r[5],r[6],r[7]);if(n=o,i=t,(e=r[1])&&Vt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(p(i).weekdayMismatch=!0,i._isValid=!1,1))return;t._a=o,t._tzm=function(t,e,n){if(t)return ke[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(r[8],r[9],r[10]),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function Ce(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],p(t).empty=!0;var e,n,i,o,a,s,l,u,c=""+t._i,d=c.length,f=0;for(i=$(t._f,t._locale).match(B)||[],e=0;e<i.length;e++)(n=(c.match(ht(o=i[e],t))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&p(t).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),f+=n.length),Y[o]?(n?p(t).empty=!1:p(t).unusedTokens.push(o),s=o,u=t,null!=(l=n)&&h(ft,s)&&ft[s](l,u._a,u,s)):t._strict&&!n&&p(t).unusedTokens.push(o);p(t).charsLeftOver=d-f,c.length>0&&p(t).unusedInput.push(c),t._a[bt]<=12&&!0===p(t).bigHour&&t._a[bt]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[bt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[bt],t._meridiem),pe(t),de(t)}else Se(t);else we(t)}function Me(t){var e,n,i,h,f=t._i,v=t._f;return t._locale=t._locale||he(t._l),null===f||void 0===v&&""===f?m({nullInput:!0}):("string"==typeof f&&(t._i=f=t._locale.preparse(f)),w(f)?new x(de(f)):(u(f)?t._d=f:o(v)?function(t){var e,n,i,r,o;if(0===t._f.length)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ce(e),g(e)&&(o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,(null==i||o<i)&&(i=o,n=e));d(t,n||e)}(t):v?Ce(t):s(n=(e=t)._i)?e._d=new Date(r.now()):u(n)?e._d=new Date(n.valueOf()):"string"==typeof n?null===(h=xe.exec((i=e)._i))?(we(i),!1===i._isValid&&(delete i._isValid,Se(i),!1===i._isValid&&(delete i._isValid,r.createFromInputFallback(i)))):i._d=new Date(+h[1]):o(n)?(e._a=c(n.slice(0),function(t){return parseInt(t,10)}),pe(e)):a(n)?function(t){if(!t._d){var e=j(t._i);t._a=c([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),pe(t)}}(e):l(n)?e._d=new Date(n):r.createFromInputFallback(e),g(t)||(t._d=null),t))}function Te(t,e,n,i,r){var s,l={};return!0!==n&&!1!==n||(i=n,n=void 0),(a(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=n,l._i=t,l._f=e,l._strict=i,(s=new x(de(Me(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function De(t,e,n,i){return Te(t,e,n,i,!1)}r.createFromInputFallback=M("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(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ae=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Oe=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()});function Ee(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return De();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pe(t){var e=j(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Tt.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ie.length;++i)if(t[Ie[i]]){if(n)return!1;parseFloat(t[Ie[i]])!==k(t[Ie[i]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=he(),this._bubble()}function Le(t){return t instanceof Pe}function Re(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function je(t,e){U(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+W(~~(t/60),2)+e+W(~~t%60,2)})}je("Z",":"),je("ZZ",""),ct("Z",st),ct("ZZ",st),pt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ne(st,t)});var Fe=/([\+\-]|\d\d)/gi;function Ne(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Fe)||["-",0,0],r=60*i[1]+k(i[2]);return 0===r?0:"+"===i[0]?r:-r}function We(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(w(t)||u(t)?t.valueOf():De(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):De(t).local()}function Be(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function He(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ye=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ue(t,e){var n,i,r,o=t,a=null;return Le(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(o={},e?o[e]=t:o.milliseconds=t):(a=ze.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:k(a[yt])*n,h:k(a[bt])*n,m:k(a[xt])*n,s:k(a[wt])*n,ms:k(Re(1e3*a[_t]))*n}):(a=Ye.exec(t))?o={y:qe(a[2],n="-"===a[1]?-1:1),M:qe(a[3],n),w:qe(a[4],n),d:qe(a[5],n),h:qe(a[6],n),m:qe(a[7],n),s:qe(a[8],n)}:null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(t,e){var n;return t.isValid()&&e.isValid()?(e=We(e,t),t.isBefore(e)?n=$e(t,e):((n=$e(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(De(o.from),De(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new Pe(o),Le(t)&&h(t,"_locale")&&(i._locale=t._locale),i}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function $e(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ve(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Ge(this,Ue(n="string"==typeof n?+n:n,i),t),this}}function Ge(t,e,n,i){var o=e._milliseconds,a=Re(e._days),s=Re(e._months);t.isValid()&&(i=null==i||i,s&&jt(t,Ot(t,"Month")+s*n),a&&Et(t,"Date",Ot(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),i&&r.updateOffset(t,a||s))}Ue.fn=Pe.prototype,Ue.invalid=function(){return Ue(NaN)};var Xe=Ve(1,"add"),Qe=Ve(-1,"subtract");function Ze(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function Je(t){var e;return void 0===t?this._locale._abbr:(null!=(e=he(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ke=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function tn(){return this._locale}function en(t,e){U(0,[t,t.length],0,e)}function nn(t,e,n,i,r){var o;return null==t?Ut(this,i,r).year:(e>(o=qt(t,i,r))&&(e=o),(function(t,e,n,i,r){var o=Yt(t,e,n,i,r),a=Ht(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}).call(this,t,e,n,i,r))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),ct("G",ot),ct("g",ot),ct("GG",J,G),ct("gg",J,G),ct("GGGG",nt,Q),ct("gggg",nt,Q),ct("GGGGG",it,Z),ct("ggggg",it,Z),gt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),gt(["gg","GG"],function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),L("quarter","Q"),N("quarter",7),ct("Q",V),pt("Q",function(t,e){e[vt]=3*(k(t)-1)}),U("D",["DD",2],"Do","date"),L("date","D"),N("date",9),ct("D",J),ct("DD",J,G),ct("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],yt),pt("Do",function(t,e){e[yt]=k(t.match(J)[0])});var rn=At("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),N("dayOfYear",4),ct("DDD",et),ct("DDDD",X),pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),U("m",["mm",2],0,"minute"),L("minute","m"),N("minute",14),ct("m",J),ct("mm",J,G),pt(["m","mm"],xt);var on=At("Minutes",!1);U("s",["ss",2],0,"second"),L("second","s"),N("second",15),ct("s",J),ct("ss",J,G),pt(["s","ss"],wt);var an,sn=At("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),N("millisecond",16),ct("S",et,V),ct("SS",et,G),ct("SSS",et,X),an="SSSS";an.length<=9;an+="S")ct(an,rt);function ln(t,e){e[_t]=k(1e3*("0."+t))}for(an="S";an.length<=9;an+="S")pt(an,ln);var un=At("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var cn=x.prototype;function hn(t){return t}cn.add=Xe,cn.calendar=function(t,e){var n=t||De(),i=We(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=e&&(O(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,De(n)))},cn.clone=function(){return new x(this)},cn.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=We(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=R(e)){case"year":o=Ze(this,i)/12;break;case"month":o=Ze(this,i);break;case"quarter":o=Ze(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:_(o)},cn.endOf=function(t){return void 0===(t=R(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},cn.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=q(this,t);return this.localeData().postformat(e)},cn.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||De(t).isValid())?Ue({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.fromNow=function(t){return this.from(De(),t)},cn.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||De(t).isValid())?Ue({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.toNow=function(t){return this.to(De(),t)},cn.get=function(t){return O(this[t=R(t)])?this[t]():this},cn.invalidAt=function(){return p(this).overflow},cn.isAfter=function(t,e){var n=w(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(s(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},cn.isBefore=function(t,e){var n=w(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(s(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},cn.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},cn.isSame=function(t,e){var n,i=w(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},cn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},cn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},cn.isValid=function(){return g(this)},cn.lang=Ke,cn.locale=Je,cn.localeData=tn,cn.max=Oe,cn.min=Ae,cn.parsingFlags=function(){return d({},p(this))},cn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:F[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=j(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(O(this[t=R(t)]))return this[t](e);return this},cn.startOf=function(t){switch(t=R(t)){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"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},cn.subtract=Qe,cn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},cn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},cn.toDate=function(){return new Date(this.valueOf())},cn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",q(n,"Z")):q(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=Dt,cn.isLeapYear=function(){return Mt(this.year())},cn.weekYear=function(t){return nn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(t){return nn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},cn.month=Ft,cn.daysInMonth=function(){return It(this.year(),this.month())},cn.week=cn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},cn.isoWeek=cn.isoWeeks=function(t){var e=Ut(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},cn.weeksInYear=function(){var t=this.localeData()._week;return qt(this.year(),t.dow,t.doy)},cn.isoWeeksInYear=function(){return qt(this.year(),1,4)},cn.date=rn,cn.day=cn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},cn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},cn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=(n=t,i=this.localeData(),"string"==typeof n?i.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?e:e-7)}return this.day()||7;var n,i},cn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},cn.hour=cn.hours=ie,cn.minute=cn.minutes=on,cn.second=cn.seconds=sn,cn.millisecond=cn.milliseconds=un,cn.utcOffset=function(t,e,n){var i,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ne(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Be(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!e||this._changeInProgress?Ge(this,Ue(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Be(this)},cn.utc=function(t){return this.utcOffset(0,t)},cn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Be(this),"m")),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ne(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=He,cn.isUTC=He,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=M("dates accessor is deprecated. Use date instead.",rn),cn.months=M("months accessor is deprecated. Use month instead",Ft),cn.years=M("years accessor is deprecated. Use year instead",Dt),cn.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),cn.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Me(t))._a){var e=t._isUTC?f(t._a):De(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=I.prototype;function fn(t,e,n,i){var r=he(),o=f().set(i,e);return r[n](o,t)}function pn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return fn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fn(t,i,n,"month");return r}function gn(t,e,n,i){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var r,o=he(),a=t?o._week.dow:0;if(null!=n)return fn(e,(n+a)%7,i,"day");var s=[];for(r=0;r<7;r++)s[r]=fn(e,(r+a)%7,i,"day");return s}dn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return O(i)?i.call(e,n):i},dn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(t){return this._ordinal.replace("%d",t)},dn.preparse=hn,dn.postformat=hn,dn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return O(r)?r(t,e,n,i):r.replace(/%d/i,t)},dn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return O(n)?n(e):n.replace(/%s/i,e)},dn.set=function(t){var e,n;for(n in t)O(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Pt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},dn.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Pt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return(function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Tt.call(this._shortMonthsParse,a))?r:null:-1!==(r=Tt.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Tt.call(this._shortMonthsParse,a))?r:-1!==(r=Tt.call(this._longMonthsParse,a))?r:null:-1!==(r=Tt.call(this._longMonthsParse,a))?r:-1!==(r=Tt.call(this._shortMonthsParse,a))?r:null}).call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},dn.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=Wt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(t){return Ut(t,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(t,e){return t?o(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},dn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},dn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return(function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Tt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Tt.call(this._weekdaysParse,a))?r:-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:-1!==(r=Tt.call(this._weekdaysParse,a))?r:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:-1!==(r=Tt.call(this._weekdaysParse,a))?r:-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:null}).call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},dn.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},dn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ue("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=M("moment.lang is deprecated. Use moment.locale instead.",ue),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",he);var mn=Math.abs;function vn(t,e,n,i){var r=Ue(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function yn(t){return t<0?Math.floor(t):Math.ceil(t)}function bn(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function wn(t){return function(){return this.as(t)}}var _n=wn("ms"),kn=wn("s"),Sn=wn("m"),Cn=wn("h"),Mn=wn("d"),Tn=wn("w"),Dn=wn("M"),An=wn("y");function On(t){return function(){return this.isValid()?this._data[t]:NaN}}var En=On("milliseconds"),In=On("seconds"),Pn=On("minutes"),Ln=On("hours"),Rn=On("days"),jn=On("months"),Fn=On("years"),Nn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,M:11},Bn=Math.abs;function Hn(t){return(t>0)-(t<0)||+t}function zn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Bn(this._milliseconds)/1e3,i=Bn(this._days),r=Bn(this._months);e=_((t=_(n/60))/60),n%=60,t%=60;var o=_(r/12),a=r%=12,s=i,l=e,u=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Hn(this._months)!==Hn(h)?"-":"",p=Hn(this._days)!==Hn(h)?"-":"",g=Hn(this._milliseconds)!==Hn(h)?"-":"";return d+"P"+(o?f+o+"Y":"")+(a?f+a+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Yn=Pe.prototype;return Yn.isValid=function(){return this._isValid},Yn.abs=function(){var t=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),t.milliseconds=mn(t.milliseconds),t.seconds=mn(t.seconds),t.minutes=mn(t.minutes),t.hours=mn(t.hours),t.months=mn(t.months),t.years=mn(t.years),this},Yn.add=function(t,e){return vn(this,t,e,1)},Yn.subtract=function(t,e){return vn(this,t,e,-1)},Yn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=R(t))||"year"===t)return n=this._months+bn(e=this._days+i/864e5),"month"===t?n:n/12;switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Yn.asMilliseconds=_n,Yn.asSeconds=kn,Yn.asMinutes=Sn,Yn.asHours=Cn,Yn.asDays=Mn,Yn.asWeeks=Tn,Yn.asMonths=Dn,Yn.asYears=An,Yn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Yn._bubble=function(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*yn(xn(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=_(o/1e3),l.seconds=t%60,e=_(t/60),l.minutes=e%60,n=_(e/60),l.hours=n%24,s+=r=_(bn(a+=_(n/24))),a-=yn(xn(r)),i=_(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},Yn.clone=function(){return Ue(this)},Yn.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},Yn.milliseconds=En,Yn.seconds=In,Yn.minutes=Pn,Yn.hours=Ln,Yn.days=Rn,Yn.weeks=function(){return _(this.days()/7)},Yn.months=jn,Yn.years=Fn,Yn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,i,r,o,a,s,l,u,c,h=this.localeData(),d=(e=!t,n=h,i=Ue(this).abs(),r=Nn(i.as("s")),o=Nn(i.as("m")),a=Nn(i.as("h")),s=Nn(i.as("d")),l=Nn(i.as("M")),u=Nn(i.as("y")),(c=r<=Wn.ss&&["s",r]||r<Wn.s&&["ss",r]||o<=1&&["m"]||o<Wn.m&&["mm",o]||a<=1&&["h"]||a<Wn.h&&["hh",a]||s<=1&&["d"]||s<Wn.d&&["dd",s]||l<=1&&["M"]||l<Wn.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=e,c[3]=+this>0,c[4]=n,(function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}).apply(null,c));return t&&(d=h.pastFuture(+this,d)),h.postformat(d)},Yn.toISOString=zn,Yn.toString=zn,Yn.toJSON=zn,Yn.locale=Je,Yn.localeData=tn,Yn.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),Yn.lang=Ke,U("X",0,0,"unix"),U("x",0,0,"valueOf"),ct("x",ot),ct("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),pt("x",function(t,e,n){n._d=new Date(k(t))}),r.version="2.20.1",n=De,r.fn=cn,r.min=function(){return Ee("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ee("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(t){return De(1e3*t)},r.months=function(t,e){return pn(t,e,"months")},r.isDate=u,r.locale=ue,r.invalid=m,r.duration=Ue,r.isMoment=w,r.weekdays=function(t,e,n){return gn(t,e,n,"weekdays")},r.parseZone=function(){return De.apply(null,arguments).parseZone()},r.localeData=he,r.isDuration=Le,r.monthsShort=function(t,e){return pn(t,e,"monthsShort")},r.weekdaysMin=function(t,e,n){return gn(t,e,n,"weekdaysMin")},r.defineLocale=ce,r.updateLocale=function(t,e){if(null!=e){var n,i,r=re;null!=(i=le(t))&&(r=i._config),(n=new I(e=E(r,e))).parentLocale=oe[t],oe[t]=n,ue(t)}else null!=oe[t]&&(null!=oe[t].parentLocale?oe[t]=oe[t].parentLocale:null!=oe[t]&&delete oe[t]);return oe[t]},r.locales=function(){return T(oe)},r.weekdaysShort=function(t,e,n){return gn(t,e,n,"weekdaysShort")},r.normalizeUnits=R,r.relativeTimeRounding=function(t){return void 0===t?Nn:"function"==typeof t&&(Nn=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==Wn[t]&&(void 0===e?Wn[t]:(Wn[t]=e,"s"===t&&(Wn.ss=e-1),!0))},r.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=cn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},r},"object"==typeof n&&void 0!==e?e.exports=i():this.moment=i()},{}],7:[function(t,e,n){var i=t(29)();i.helpers=t(45),t(27)(i),i.defaults=t(25),i.Element=t(26),i.elements=t(40),i.Interaction=t(28),i.layouts=t(30),i.platform=t(48),i.plugins=t(31),i.Ticks=t(34),t(22)(i),t(23)(i),t(24)(i),t(33)(i),t(32)(i),t(35)(i),t(55)(i),t(53)(i),t(54)(i),t(56)(i),t(57)(i),t(58)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(21)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var r=t(49);for(var o in r)r.hasOwnProperty(o)&&i.plugins.register(r[o]);i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.Legend=r.legend._element,i.Title=r.title._element,i.pluginService=i.plugins,i.PluginBase=i.Element.extend({}),i.canvasHelpers=i.helpers.canvas,i.layoutService=i.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,40:40,45:45,48:48,49:49,53:53,54:54,55:55,56:56,57:57,58:58,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t){t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),r=t(40),o=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return t.length>0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(t){t.controllers.bar=t.DatasetController.extend({dataElementType:r.Rectangle,initialize:function(){var e;t.DatasetController.prototype.initialize.apply(this,arguments),(e=this.getMeta()).stack=this.getDataset().stack,e.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,r=i.chart,a=i.getMeta(),s=i.getDataset(),l=t.custom||{},u=r.options.elements.rectangle;t._xScale=i.getScaleForId(a.xAxisID),t._yScale=i.getScaleForId(a.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={datasetLabel:s.label,label:r.data.labels[e],borderSkipped:l.borderSkipped?l.borderSkipped:u.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:o.valueAtIndexOrDefault(s.backgroundColor,e,u.backgroundColor),borderColor:l.borderColor?l.borderColor:o.valueAtIndexOrDefault(s.borderColor,e,u.borderColor),borderWidth:l.borderWidth?l.borderWidth:o.valueAtIndexOrDefault(s.borderWidth,e,u.borderWidth)},i.updateElementGeometry(t,e,n),t.pivot()},updateElementGeometry:function(t,e,n){var i=this,r=t._model,o=i.getValueScale(),a=o.getBasePixel(),s=o.isHorizontal(),l=i._ruler||i.getRuler(),u=i.calculateBarValuePixels(i.index,e),c=i.calculateBarIndexPixels(i.index,e,l);r.horizontal=s,r.base=n?a:u.base,r.x=s?n?a:u.head:c.center,r.y=s?c.center:n?a:u.head,r.height=s?c.size:void 0,r.width=s?void 0:c.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(t){var e,n,i=this.chart,r=this.getIndexScale().options.stacked,o=void 0===t?i.data.datasets.length:t+1,a=[];for(e=0;e<o;++e)(n=i.getDatasetMeta(e)).bar&&i.isDatasetVisible(e)&&(!1===r||!0===r&&-1===a.indexOf(n.stack)||void 0===r&&(void 0===n.stack||-1===a.indexOf(n.stack)))&&a.push(n.stack);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),i=void 0!==e?n.indexOf(e):-1;return-1===i?n.length-1:i},getRuler:function(){var t,e,n=this.getIndexScale(),i=this.getStackCount(),r=this.index,a=n.isHorizontal(),s=a?n.left:n.top,l=s+(a?n.width:n.height),u=[];for(t=0,e=this.getMeta().data.length;t<e;++t)u.push(n.getPixelForValue(null,t,r));return{min:o.isNullOrUndef(n.options.barThickness)?function(t,e){var n,i,r,o,a=t.isHorizontal()?t.width:t.height,s=t.getTicks();for(r=1,o=e.length;r<o;++r)a=Math.min(a,e[r]-e[r-1]);for(r=0,o=s.length;r<o;++r)i=t.getPixelForTick(r),a=r>0?Math.min(a,i-n):a,n=i;return a}(n,u):-1,pixels:u,start:s,end:l,stackCount:i,scale:n}},calculateBarValuePixels:function(t,e){var n,i,r,o,a,s,l=this.chart,u=this.getMeta(),c=this.getValueScale(),h=l.data.datasets,d=c.getRightValue(h[t].data[e]),f=c.options.stacked,p=u.stack,g=0;if(f||void 0===f&&void 0!==p)for(n=0;n<t;++n)(i=l.getDatasetMeta(n)).bar&&i.stack===p&&i.controller.getValueScaleId()===c.id&&l.isDatasetVisible(n)&&(r=c.getRightValue(h[n].data[e]),(d<0&&r<0||d>=0&&r>0)&&(g+=r));return o=c.getPixelForValue(g),{size:s=((a=c.getPixelForValue(g+d))-o)/2,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(t,e,n){var i,r,a,s,l,u,c,h,d,f,p,g,m,v,y,b=n.scale.options,x="flex"===b.barThickness?(f=b,g=(p=(d=n).pixels)[h=e],m=h>0?p[h-1]:null,v=h<p.length-1?p[h+1]:null,y=f.categoryPercentage,null===m&&(m=g-(null===v?d.end-g:v-g)),null===v&&(v=g+g-m),{chunk:(v-m)/2*y/d.stackCount,ratio:f.barPercentage,start:g-(g-m)/2*y}):(l=(r=b).barThickness,u=(i=n).stackCount,c=i.pixels[e],o.isNullOrUndef(l)?(a=i.min*r.categoryPercentage,s=r.barPercentage):(a=l*u,s=1),{chunk:a/u,ratio:s,start:c-a/2}),w=this.getStackIndex(t,this.getMeta().stack),_=x.start+x.chunk*w+x.chunk/2,k=Math.min(o.valueOrDefault(b.maxBarThickness,1/0),x.chunk*x.ratio);return{base:_-k/2,head:_+k/2,center:_,size:k}},draw:function(){var t=this.chart,e=this.getValueScale(),n=this.getMeta().data,i=this.getDataset(),r=n.length,a=0;for(o.canvas.clipArea(t.ctx,t.chartArea);a<r;++a)isNaN(e.getRightValue(i.data[a]))||n[a].draw();o.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},r=t._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:o.valueAtIndexOrDefault(e.hoverBackgroundColor,n,o.getHoverColor(r.backgroundColor)),r.borderColor=i.hoverBorderColor?i.hoverBorderColor:o.valueAtIndexOrDefault(e.hoverBorderColor,n,o.getHoverColor(r.borderColor)),r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:o.valueAtIndexOrDefault(e.hoverBorderWidth,n,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},r=t._model,a=this.chart.options.elements.rectangle;r.backgroundColor=i.backgroundColor?i.backgroundColor:o.valueAtIndexOrDefault(e.backgroundColor,n,a.backgroundColor),r.borderColor=i.borderColor?i.borderColor:o.valueAtIndexOrDefault(e.borderColor,n,a.borderColor),r.borderWidth=i.borderWidth?i.borderWidth:o.valueAtIndexOrDefault(e.borderWidth,n,a.borderWidth)}}),t.controllers.horizontalBar=t.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,n){"use strict";var i=t(25),r=t(40),o=t(45);i._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": ("+t.xLabel+", "+t.yLabel+", "+e.datasets[t.datasetIndex].data[t.index].r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:r.Point,update:function(t){var e=this,n=e.getMeta().data;o.each(n,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,r=i.getMeta(),o=t.custom||{},a=i.getScaleForId(r.xAxisID),s=i.getScaleForId(r.yAxisID),l=i._resolveElementOptions(t,e),u=i.getDataset().data[e],c=i.index,h=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof u?u:NaN,e,c),d=n?s.getBasePixel():s.getPixelForValue(u,e,c);t._xScale=a,t._yScale=s,t._options=l,t._datasetIndex=c,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:n?0:l.radius,skip:o.skip||isNaN(h)||isNaN(d),x:h,y:d},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options;e.backgroundColor=o.valueOrDefault(n.hoverBackgroundColor,o.getHoverColor(n.backgroundColor)),e.borderColor=o.valueOrDefault(n.hoverBorderColor,o.getHoverColor(n.borderColor)),e.borderWidth=o.valueOrDefault(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},removeHoverStyle:function(t){var e=t._model,n=t._options;e.backgroundColor=n.backgroundColor,e.borderColor=n.borderColor,e.borderWidth=n.borderWidth,e.radius=n.radius},_resolveElementOptions:function(t,e){var n,i,r,a=this.chart,s=a.data.datasets[this.index],l=t.custom||{},u=a.options.elements.point,c=o.options.resolve,h=s.data[e],d={},f={chart:a,dataIndex:e,dataset:s,datasetIndex:this.index},p=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"];for(n=0,i=p.length;n<i;++n)d[r=p[n]]=c([l[r],s[r],u[r]],f,e);return d.radius=c([l.radius,h?h.r:void 0,s.radius,u.radius],f,e),d}})}},{25:25,40:40,45:45}],17:[function(t,e,n){"use strict";var i=t(25),r=t(40),o=t(45);i._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'"></span>'),r[o]&&e.push(r[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),a=e.datasets[0],s=r.data[i],l=s&&s.custom||{},u=o.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(a.backgroundColor,i,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(a.borderColor,i,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(a.borderWidth,i,c.borderWidth),hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,o=e.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o]&&(r.data[o].hidden=!r.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],i=": "+e.datasets[t.datasetIndex].data[t.index];return o.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}}),i._set("pie",o.clone(i.doughnut)),i._set("pie",{cutoutPercentage:0}),e.exports=function(t){t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:r.Arc,linkScales:o.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e=this,n=e.chart,i=n.chartArea,r=n.options,a=r.elements.arc,s=i.right-i.left-a.borderWidth,l=i.bottom-i.top-a.borderWidth,u=Math.min(s,l),c={x:0,y:0},h=e.getMeta(),d=r.cutoutPercentage,f=r.circumference;if(f<2*Math.PI){var p=r.rotation%(2*Math.PI),g=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+f,m=Math.cos(p),v=Math.sin(p),y=Math.cos(g),b=Math.sin(g),x=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,w=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,_=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,S=d/100,C=_?-1:Math.min(m*(m<0?1:S),y*(y<0?1:S)),M=k?-1:Math.min(v*(v<0?1:S),b*(b<0?1:S)),T=x?1:Math.max(m*(m>0?1:S),y*(y>0?1:S)),D=w?1:Math.max(v*(v>0?1:S),b*(b>0?1:S));u=Math.min(s/(.5*(T-C)),l/(.5*(D-M))),c={x:-.5*(T+C),y:-.5*(D+M)}}n.borderWidth=e.getMaxBorderWidth(h.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,h.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),o.each(h.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,r=i.chart,a=r.chartArea,s=r.options,l=s.animation,u=(a.left+a.right)/2,c=(a.top+a.bottom)/2,h=s.rotation,d=s.rotation,f=i.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI));o.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+r.offsetX,y:c+r.offsetY,startAngle:h,endAngle:d,circumference:p,outerRadius:n&&l.animateScale?0:i.outerRadius,innerRadius:n&&l.animateScale?0:i.innerRadius,label:(0,o.valueAtIndexOrDefault)(f.label,e,r.data.labels[e])}});var g=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(g.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return o.each(n.data,function(n,r){t=e.data[r],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,r=this.index,o=t.length,a=0;a<o;a++)e=t[a]._model?t[a]._model.borderWidth:0,i=(n=t[a]._chart?t[a]._chart.config.data.datasets[r].hoverBorderWidth:0)>(i=e>i?e:i)?n:i;return i}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),r=t(40),o=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return o.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,update:function(t){var n,i,r,a=this,s=a.getMeta(),l=s.dataset,u=s.data||[],c=a.chart.options,h=c.elements.line,d=a.getScaleForId(s.yAxisID),f=a.getDataset(),p=e(f,c);for(p&&(r=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=d,l._datasetIndex=a.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:r.tension?r.tension:o.valueOrDefault(f.lineTension,h.tension),backgroundColor:r.backgroundColor?r.backgroundColor:f.backgroundColor||h.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:f.borderWidth||h.borderWidth,borderColor:r.borderColor?r.borderColor:f.borderColor||h.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:f.borderCapStyle||h.borderCapStyle,borderDash:r.borderDash?r.borderDash:f.borderDash||h.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:f.borderDashOffset||h.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:f.borderJoinStyle||h.borderJoinStyle,fill:r.fill?r.fill:void 0!==f.fill?f.fill:h.fill,steppedLine:r.steppedLine?r.steppedLine:o.valueOrDefault(f.steppedLine,h.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:o.valueOrDefault(f.cubicInterpolationMode,h.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n<i;++n)a.updateElement(u[n],n,t);for(p&&0!==l._model.tension&&a.updateBezierControlPoints(),n=0,i=u.length;n<i;++n)u[n].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,i=this.getDataset(),r=t.custom||{};return r.backgroundColor?n=r.backgroundColor:i.pointBackgroundColor?n=o.valueAtIndexOrDefault(i.pointBackgroundColor,e,n):i.backgroundColor&&(n=i.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,i=this.getDataset(),r=t.custom||{};return r.borderColor?n=r.borderColor:i.pointBorderColor?n=o.valueAtIndexOrDefault(i.pointBorderColor,e,n):i.borderColor&&(n=i.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,i=this.getDataset(),r=t.custom||{};return isNaN(r.borderWidth)?!isNaN(i.pointBorderWidth)||o.isArray(i.pointBorderWidth)?n=o.valueAtIndexOrDefault(i.pointBorderWidth,e,n):isNaN(i.borderWidth)||(n=i.borderWidth):n=r.borderWidth,n},updateElement:function(t,e,n){var i,r,a=this,s=a.getMeta(),l=t.custom||{},u=a.getDataset(),c=a.index,h=u.data[e],d=a.getScaleForId(s.yAxisID),f=a.getScaleForId(s.xAxisID),p=a.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),i=f.getPixelForValue("object"==typeof h?h:NaN,e,c),r=n?d.getBasePixel():a.calculatePointY(h,e,c),t._xScale=f,t._yScale=d,t._datasetIndex=c,t._index=e,t._model={x:i,y:r,skip:l.skip||isNaN(i)||isNaN(r),radius:l.radius||o.valueAtIndexOrDefault(u.pointRadius,e,p.radius),pointStyle:l.pointStyle||o.valueAtIndexOrDefault(u.pointStyle,e,p.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||o.valueAtIndexOrDefault(u.pointHitRadius,e,p.hitRadius)}},calculatePointY:function(t,e,n){var i,r,o,a=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),u=0,c=0;if(l.options.stacked){for(i=0;i<n;i++)if(r=a.data.datasets[i],"line"===(o=a.getDatasetMeta(i)).type&&o.yAxisID===l.id&&a.isDatasetVisible(i)){var h=Number(l.getRightValue(r.data[e]));h<0?c+=h||0:u+=h||0}var d=Number(l.getRightValue(t));return l.getPixelForValue(d<0?c+d:u+d)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,r=this.getMeta(),a=this.chart.chartArea,s=r.data||[];function l(t,e,n){return Math.max(Math.min(t,n),e)}if(r.dataset._model.spanGaps&&(s=s.filter(function(t){return!t._model.skip})),"monotone"===r.dataset._model.cubicInterpolationMode)o.splineCurveMonotone(s);else for(t=0,e=s.length;t<e;++t)n=s[t]._model,i=o.splineCurve(o.previousItem(s,t)._model,n,o.nextItem(s,t)._model,r.dataset._model.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(this.chart.options.elements.line.capBezierPoints)for(t=0,e=s.length;t<e;++t)(n=s[t]._model).controlPointPreviousX=l(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=l(n.controlPointPreviousY,a.top,a.bottom),n.controlPointNextX=l(n.controlPointNextX,a.left,a.right),n.controlPointNextY=l(n.controlPointNextY,a.top,a.bottom)},draw:function(){var t=this.chart,n=this.getMeta(),i=n.data||[],r=t.chartArea,a=i.length,s=0;for(o.canvas.clipArea(t.ctx,r),e(this.getDataset(),t.options)&&n.dataset.draw(),o.canvas.unclipArea(t.ctx);s<a;++s)i[s].draw(r)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},r=t._model;r.radius=i.hoverRadius||o.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),r.backgroundColor=i.hoverBackgroundColor||o.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,o.getHoverColor(r.backgroundColor)),r.borderColor=i.hoverBorderColor||o.valueAtIndexOrDefault(e.pointHoverBorderColor,n,o.getHoverColor(r.borderColor)),r.borderWidth=i.hoverBorderWidth||o.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,r.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],i=t._index,r=t.custom||{},a=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),a.radius=r.radius||o.valueAtIndexOrDefault(n.pointRadius,i,e.chart.options.elements.point.radius),a.backgroundColor=e.getPointBackgroundColor(t,i),a.borderColor=e.getPointBorderColor(t,i),a.borderWidth=e.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,n){"use strict";var i=t(25),r=t(40),o=t(45);i._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,r=n.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'"></span>'),r[o]&&e.push(r[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var r=t.getDatasetMeta(0),a=e.datasets[0],s=r.data[i].custom||{},l=o.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(a.backgroundColor,i,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(a.borderColor,i,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(a.borderWidth,i,u.borderWidth),hidden:isNaN(a.data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,r,o=e.index,a=this.chart;for(n=0,i=(a.data.datasets||[]).length;n<i;++n)(r=a.getDatasetMeta(n)).data[o].hidden=!r.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(t){t.controllers.polarArea=t.DatasetController.extend({dataElementType:r.Arc,linkScales:o.noop,update:function(t){var e=this,n=e.chart,i=n.chartArea,r=e.getMeta(),a=n.options,s=a.elements.arc,l=Math.min(i.right-i.left,i.bottom-i.top);n.outerRadius=Math.max((l-s.borderWidth/2)/2,0),n.innerRadius=Math.max(a.cutoutPercentage?n.outerRadius/100*a.cutoutPercentage:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),e.outerRadius=n.outerRadius-n.radiusLength*e.index,e.innerRadius=e.outerRadius-n.radiusLength,r.count=e.countVisibleElements(),o.each(r.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){for(var i=this,r=i.chart,a=i.getDataset(),s=r.options,l=s.animation,u=r.scale,c=r.data.labels,h=i.calculateCircumference(a.data[e]),d=u.xCenter,f=u.yCenter,p=0,g=i.getMeta(),m=0;m<e;++m)isNaN(a.data[m])||g.data[m].hidden||++p;var v=s.startAngle,y=t.hidden?0:u.getDistanceFromCenterForValue(a.data[e]),b=v+h*p,x=b+(t.hidden?0:h),w=l.animateScale?0:u.getDistanceFromCenterForValue(a.data[e]);o.extend(t,{_datasetIndex:i.index,_index:e,_scale:u,_model:{x:d,y:f,innerRadius:0,outerRadius:n?w:y,startAngle:n&&l.animateRotate?v:b,endAngle:n&&l.animateRotate?v:x,label:o.valueAtIndexOrDefault(c,e,c[e])}}),i.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return o.each(e.data,function(e,i){isNaN(t.data[i])||e.hidden||n++}),n},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),r=t(40),o=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:r.Line,dataElementType:r.Point,linkScales:o.noop,update:function(t){var e=this,n=e.getMeta(),i=n.data,r=n.dataset.custom||{},a=e.getDataset(),s=e.chart.options.elements.line,l=e.chart.scale;void 0!==a.tension&&void 0===a.lineTension&&(a.lineTension=a.tension),o.extend(n.dataset,{_datasetIndex:e.index,_scale:l,_children:i,_loop:!0,_model:{tension:r.tension?r.tension:o.valueOrDefault(a.lineTension,s.tension),backgroundColor:r.backgroundColor?r.backgroundColor:a.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:a.borderWidth||s.borderWidth,borderColor:r.borderColor?r.borderColor:a.borderColor||s.borderColor,fill:r.fill?r.fill:void 0!==a.fill?a.fill:s.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:a.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash?r.borderDash:a.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:a.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:a.borderJoinStyle||s.borderJoinStyle}}),n.dataset.pivot(),o.each(i,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,r=t.custom||{},a=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,a.data[e]);void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),void 0!==a.hitRadius&&void 0===a.pointHitRadius&&(a.pointHitRadius=a.hitRadius),o.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:r.tension?r.tension:o.valueOrDefault(a.lineTension,i.chart.options.elements.line.tension),radius:r.radius?r.radius:o.valueAtIndexOrDefault(a.pointRadius,e,l.radius),backgroundColor:r.backgroundColor?r.backgroundColor:o.valueAtIndexOrDefault(a.pointBackgroundColor,e,l.backgroundColor),borderColor:r.borderColor?r.borderColor:o.valueAtIndexOrDefault(a.pointBorderColor,e,l.borderColor),borderWidth:r.borderWidth?r.borderWidth:o.valueAtIndexOrDefault(a.pointBorderWidth,e,l.borderWidth),pointStyle:r.pointStyle?r.pointStyle:o.valueAtIndexOrDefault(a.pointStyle,e,l.pointStyle),hitRadius:r.hitRadius?r.hitRadius:o.valueAtIndexOrDefault(a.pointHitRadius,e,l.hitRadius)}}),t._model.skip=r.skip?r.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();o.each(e.data,function(n,i){var r=n._model,a=o.splineCurve(o.previousItem(e.data,i,!0)._model,r,o.nextItem(e.data,i,!0)._model,r.tension);r.controlPointPreviousX=Math.max(Math.min(a.previous.x,t.right),t.left),r.controlPointPreviousY=Math.max(Math.min(a.previous.y,t.bottom),t.top),r.controlPointNextX=Math.max(Math.min(a.next.x,t.right),t.left),r.controlPointNextY=Math.max(Math.min(a.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model;r.radius=n.hoverRadius?n.hoverRadius:o.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),r.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:o.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,o.getHoverColor(r.backgroundColor)),r.borderColor=n.hoverBorderColor?n.hoverBorderColor:o.valueAtIndexOrDefault(e.pointHoverBorderColor,i,o.getHoverColor(r.borderColor)),r.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:o.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,r.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,r=t._model,a=this.chart.options.elements.point;r.radius=n.radius?n.radius:o.valueAtIndexOrDefault(e.pointRadius,i,a.radius),r.backgroundColor=n.backgroundColor?n.backgroundColor:o.valueAtIndexOrDefault(e.pointBackgroundColor,i,a.backgroundColor),r.borderColor=n.borderColor?n.borderColor:o.valueAtIndexOrDefault(e.pointBorderColor,i,a.borderColor),r.borderWidth=n.borderWidth?n.borderWidth:o.valueAtIndexOrDefault(e.pointBorderWidth,i,a.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:o.noop,onComplete:o.noop}}),e.exports=function(t){t.Animation=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var r,o,a=this.animations;for(e.chart=t,i||(t.animating=!0),r=0,o=a.length;r<o;++r)if(a[r].chart===t)return void(a[r]=e);a.push(e),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=o.findIndex(this.animations,function(e){return e.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=o.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;t.dropFrames>1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,r=0;r<i.length;)n=(e=i[r]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),o.callback(e.render,[n,e],n),o.callback(e.onAnimationProgress,[e],n),e.currentStep>=e.numSteps?(o.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(r,1)):++r}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var i=t(25),r=t(45),o=t(28),a=t(30),s=t(48),l=t(31);e.exports=function(t){function e(t){return"top"===t||"bottom"===t}t.types={},t.instances={},t.controllers={},r.extend(t.prototype,{construct:function(e,n){var o,a,l=this;(a=(o=(o=n)||{}).data=o.data||{}).datasets=a.datasets||[],a.labels=a.labels||[],o.options=r.configMerge(i.global,i[o.type],o.options||{});var u=s.acquireContext(e,n=o),c=u&&u.canvas,h=c&&c.height,d=c&&c.width;l.id=r.uid(),l.ctx=u,l.canvas=c,l.config=n,l.width=d,l.height=h,l.aspectRatio=h?d/h:null,l.options=n.options,l._bufferedRender=!1,l.chart=l,l.controller=l,t.instances[l.id]=l,Object.defineProperty(l,"data",{get:function(){return l.config.data},set:function(t){l.config.data=t}}),u&&c?(l.initialize(),l.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),r.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return r.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,o=n.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(r.getMaximumWidth(i))),s=Math.max(0,Math.floor(o?a/o:r.getMaximumHeight(i)));if((e.width!==a||e.height!==s)&&(i.width=e.width=a,i.height=e.height=s,i.style.width=a+"px",i.style.height=s+"px",r.retinaScale(e,n.devicePixelRatio),!t)){var u={width:a,height:s};l.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;r.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),r.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var n=this,i=n.options,o=n.scales||{},a=[],s=Object.keys(o).reduce(function(t,e){return t[e]=!1,t},{});i.scales&&(a=a.concat((i.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(i.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),i.scale&&a.push({options:i.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),r.each(a,function(i){var a=i.options,l=a.id,u=r.valueOrDefault(a.type,i.dtype);e(a.position)!==e(i.dposition)&&(a.position=i.dposition),s[l]=!0;var c=null;if(l in o&&o[l].type===u)(c=o[l]).options=a,c.ctx=n.ctx,c.chart=n;else{var h=t.scaleService.getScaleConstructor(u);if(!h)return;c=new h({id:l,type:u,options:a,ctx:n.ctx,chart:n}),o[c.id]=c}c.mergeTicksOptions(),i.isDefault&&(n.scale=c)}),r.each(s,function(t,e){t||delete o[e]}),n.scales=o,t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return r.each(e.data.datasets,function(r,o){var a=e.getDatasetMeta(o),s=r.type||e.config.type;if(a.type&&a.type!==s&&(e.destroyDatasetMeta(o),a=e.getDatasetMeta(o)),a.type=s,n.push(a.type),a.controller)a.controller.updateIndex(o),a.controller.linkScales();else{var l=t.controllers[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(e,o),i.push(a.controller)}},e),i},resetElements:function(){var t=this;r.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var n,i,o=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),i=(n=o).options,r.each(n.scales,function(t){a.removeBox(n,t)}),i=r.configMerge(t.defaults.global,t.defaults[n.config.type],i),n.options=n.config.options=i,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=i.tooltips,n.tooltip.initialize(),l._invalidate(o),!1!==l.notify(o,"beforeUpdate")){o.tooltip._data=o.data;var s=o.buildOrUpdateControllers();r.each(o.data.datasets,function(t,e){o.getDatasetMeta(e).controller.buildOrUpdateElements()},o),o.updateLayout(),o.options.animation&&o.options.animation.duration&&r.each(s,function(t){t.reset()}),o.updateDatasets(),o.tooltip.initialize(),o.lastActive=[],l.notify(o,"afterUpdate"),o._bufferedRender?o._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:o.render(e)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(a.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),n={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[n])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var n=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var i=e.duration,o=e.lazy;if(!1!==l.notify(n,"beforeRender")){var a=n.options.animation,s=function(t){l.notify(n,"afterRender"),r.callback(a&&a.onComplete,[t],n)};if(a&&(void 0!==i&&0!==i||void 0===i&&0!==a.duration)){var u=new t.Animation({numSteps:(i||a.duration)/16.66,easing:e.easing||a.easing,render:function(t,e){var n=e.currentStep,i=n/e.numSteps;t.draw((0,r.easing.effects[e.easing])(i),i,n)},onAnimationProgress:a.onProgress,onAnimationComplete:s});t.animationService.addAnimation(n,u,i,o)}else n.draw(),s(new t.Animation({numSteps:0,chart:n}));return n}},draw:function(t){var e=this;e.clear(),r.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(r.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){var e=this;if(!1!==l.notify(e,"beforeDatasetsDraw",[t])){for(var n=(e.data.datasets||[]).length-1;n>=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),i={meta:n,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[i])&&(n.controller.draw(e),l.notify(this,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),l.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return o.modes.single(this,t)},getElementsAtEvent:function(t){return o.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return o.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=o.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return o.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],i=n._meta&&n._meta[e];i&&(i.controller.destroy(),delete n._meta[e])},destroy:function(){var e,n,i=this,o=i.canvas;for(i.stop(),e=0,n=i.data.datasets.length;e<n;++e)i.destroyDatasetMeta(e);o&&(i.unbindEvents(),r.canvas.clear(i),s.releaseContext(i.ctx),i.canvas=null,i.ctx=null),l.notify(i,"destroy"),delete t.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};r.each(t.options.events,function(i){s.addEventListener(t,i,n),e[i]=n}),t.options.responsive&&(s.addEventListener(t,"resize",n=function(){t.resize()}),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,r.each(e,function(e,n){s.removeEventListener(t,n,e)}))},updateHoverStyle:function(t,e,n){var i,r,o,a=n?"setHoverStyle":"removeHoverStyle";for(r=0,o=t.length;r<o;++r)(i=t[r])&&this.getDatasetMeta(i._datasetIndex).controller[a](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==l.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),l.notify(e,"afterEvent",[t]);var r=e._bufferedRequest;return r?e.render(r):i&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},o=i.hover;return n.lastActive=n.lastActive||[],n.active="mouseout"===t.type?[]:n.getElementsAtEventForMode(t,o.mode,o),r.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,o.mode,!1),n.active.length&&o.mode&&n.updateHoverStyle(n.active,o.mode,!0),e=!r.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),t.Controller=t}},{25:25,28:28,30:30,31:31,45:45,48:48}],24:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){var e=["push","pop","shift","splice","unshift"];function n(t,n){var i=t._chartjs;if(i){var r=i.listeners,o=r.indexOf(n);-1!==o&&r.splice(o,1),r.length>0||(e.forEach(function(e){delete t[e]}),delete t._chartjs)}}t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],r=n.data;for(t=0,e=i.length;t<e;++t)r[t]=r[t]||this.createMetaData(t);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t,r,o=this,a=o.getDataset(),s=a.data||(a.data=[]);o._data!==s&&(o._data&&n(o._data,o),r=o,(t=s)._chartjs?t._chartjs.listeners.push(r):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),e.forEach(function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),o=r.apply(this,e);return i.each(t._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),o}})})),o._data=s),o.resyncElements()},update:i.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,r=0;r<i;++r)n[r].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t,e){var n=this.chart.data.datasets[t._datasetIndex],r=t._index,o=t.custom||{},a=i.valueAtIndexOrDefault,s=t._model;s.backgroundColor=o.backgroundColor?o.backgroundColor:a(n.backgroundColor,r,e.backgroundColor),s.borderColor=o.borderColor?o.borderColor:a(n.borderColor,r,e.borderColor),s.borderWidth=o.borderWidth?o.borderWidth:a(n.borderWidth,r,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},o=i.valueAtIndexOrDefault,a=i.getHoverColor,s=t._model;s.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:o(e.hoverBackgroundColor,n,a(s.backgroundColor)),s.borderColor=r.hoverBorderColor?r.hoverBorderColor:o(e.hoverBorderColor,n,a(s.borderColor)),s.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:o(e.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,i=e.length;i<n?t.data.splice(i,n-i):i>n&&this.insertElements(n,i-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=i.inherits}},{45:45}],25:[function(t,e,n){"use strict";var i=t(45);e.exports={_set:function(t,e){return i.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,n){"use strict";var i=t(2),r=t(45),o=function(t){r.extend(this,t),this.initialize.apply(this,arguments)};r.extend(o.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=r.clone(t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,r=e._start,o=e._view;return n&&1!==t?(o||(o=e._view={}),r||(r=e._start={}),function(t,e,n,r){var o,a,s,l,u,c,h,d,f,p=Object.keys(n);for(o=0,a=p.length;o<a;++o)if(c=n[s=p[o]],e.hasOwnProperty(s)||(e[s]=c),(l=e[s])!==c&&"_"!==s[0]){if(t.hasOwnProperty(s)||(t[s]=l),(h=typeof c)==typeof(u=t[s]))if("string"===h){if((d=i(u)).valid&&(f=i(c)).valid){e[s]=f.mix(d,r).rgbString();continue}}else if("number"===h&&isFinite(u)&&isFinite(c)){e[s]=u+(c-u)*r;continue}e[s]=c}}(r,o,n,t),e):(e._view=n,e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return r.isNumber(this._model.x)&&r.isNumber(this._model.y)}}),o.extend=r.inherits,e.exports=o},{2:2,45:45}],27:[function(t,e,n){"use strict";var i=t(2),r=t(25),o=t(45);e.exports=function(t){function e(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function n(t){return null!=t&&"none"!==t}function a(t,i,r){var o=document.defaultView,a=t.parentNode,s=o.getComputedStyle(t)[i],l=o.getComputedStyle(a)[i],u=n(s),c=n(l),h=Number.POSITIVE_INFINITY;return u||c?Math.min(u?e(s,t,r):h,c?e(l,a,r):h):"none"}o.configMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,n,i,r){var a=n[e]||{},s=i[e];"scales"===e?n[e]=o.scaleMerge(a,s):"scale"===e?n[e]=o.merge(a,[t.scaleService.getScaleDefaults(s.type),s]):o._merger(e,n,i,r)}})},o.scaleMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,n,i,r){if("xAxes"===e||"yAxes"===e){var a,s,l,u=i[e].length;for(n[e]||(n[e]=[]),a=0;a<u;++a)s=o.valueOrDefault((l=i[e][a]).type,"xAxes"===e?"category":"linear"),a>=n[e].length&&n[e].push({}),o.merge(n[e][a],!n[e][a].type||l.type&&l.type!==n[e][a].type?[t.scaleService.getScaleDefaults(s),l]:l)}else o._merger(e,n,i,r)}})},o.where=function(t,e){if(o.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return o.each(t,function(t){e(t)&&n.push(t)}),n},o.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,r=t.length;i<r;++i)if(e.call(n,t[i],i,t))return i;return-1},o.findNextWhere=function(t,e,n){o.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<t.length;i++){var r=t[i];if(e(r))return r}},o.findPreviousWhere=function(t,e,n){o.isNullOrUndef(n)&&(n=t.length);for(var i=n-1;i>=0;i--){var r=t[i];if(e(r))return r}},o.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},o.almostEquals=function(t,e,n){return Math.abs(t-e)<n},o.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&n+e>t},o.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},o.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},o.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},o.toRadians=function(t){return t*(Math.PI/180)},o.toDegrees=function(t){return t*(180/Math.PI)},o.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:r}},o.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},o.aliasPixel=function(t){return t%2==0?0:.5},o.splineCurve=function(t,e,n,i){var r=t.skip?e:t,o=e,a=n.skip?e:n,s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l),h=i*(u=isNaN(u)?0:u),d=i*(c=isNaN(c)?0:c);return{previous:{x:o.x-h*(a.x-r.x),y:o.y-h*(a.y-r.y)},next:{x:o.x+d*(a.x-r.x),y:o.y+d*(a.y-r.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(t){var e,n,i,r,a,s,l,u,c,h=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),d=h.length;for(e=0;e<d;++e)if(!(i=h[e]).model.skip){if(n=e>0?h[e-1]:null,(r=e<d-1?h[e+1]:null)&&!r.model.skip){var f=r.model.x-i.model.x;i.deltaK=0!==f?(r.model.y-i.model.y)/f:0}i.mK=!n||n.model.skip?i.deltaK:!r||r.model.skip?n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?0:(n.deltaK+i.deltaK)/2}for(e=0;e<d-1;++e)r=h[e+1],(i=h[e]).model.skip||r.model.skip||(o.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(a=i.mK/i.deltaK,s=r.mK/i.deltaK,(u=Math.pow(a,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(u),i.mK=a*l*i.deltaK,r.mK=s*l*i.deltaK)));for(e=0;e<d;++e)(i=h[e]).model.skip||(n=e>0?h[e-1]:null,r=e<d-1?h[e+1]:null,n&&!n.model.skip&&(i.model.controlPointPreviousX=i.model.x-(c=(i.model.x-n.model.x)/3),i.model.controlPointPreviousY=i.model.y-c*i.mK),r&&!r.model.skip&&(i.model.controlPointNextX=i.model.x+(c=(r.model.x-i.model.x)/3),i.model.controlPointNextY=i.model.y+c*i.mK))},o.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},o.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},o.niceNum=function(t,e){var n=Math.floor(o.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},o.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},o.getRelativePosition=function(t,e){var n,i,r=t.originalEvent||t,a=t.currentTarget||t.srcElement,s=a.getBoundingClientRect(),l=r.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=r.clientX,i=r.clientY);var u=parseFloat(o.getStyle(a,"padding-left")),c=parseFloat(o.getStyle(a,"padding-top")),h=parseFloat(o.getStyle(a,"padding-right")),d=parseFloat(o.getStyle(a,"padding-bottom")),f=s.bottom-s.top-c-d;return{x:n=Math.round((n-s.left-u)/(s.right-s.left-u-h)*a.width/e.currentDevicePixelRatio),y:i=Math.round((i-s.top-c)/f*a.height/e.currentDevicePixelRatio)}},o.getConstraintWidth=function(t){return a(t,"max-width","clientWidth")},o.getConstraintHeight=function(t){return a(t,"max-height","clientHeight")},o.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(o.getStyle(e,"padding-left"),10),i=parseInt(o.getStyle(e,"padding-right"),10),r=e.clientWidth-n-i,a=o.getConstraintWidth(t);return isNaN(a)?r:Math.min(r,a)},o.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(o.getStyle(e,"padding-top"),10),i=parseInt(o.getStyle(e,"padding-bottom"),10),r=e.clientHeight-n-i,a=o.getConstraintHeight(t);return isNaN(a)?r:Math.min(r,a)},o.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},o.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,r=t.height,o=t.width;i.height=r*n,i.width=o*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=o+"px")}},o.fontString=function(t,e,n){return e+" "+t+"px "+n},o.longestText=function(t,e,n,i){var r=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},a=i.garbageCollect=[],i.font=e),t.font=e;var s=0;o.each(n,function(e){null!=e&&!0!==o.isArray(e)?s=o.measureText(t,r,a,s,e):o.isArray(e)&&o.each(e,function(e){null==e||o.isArray(e)||(s=o.measureText(t,r,a,s,e))})});var l=a.length/2;if(l>n.length){for(var u=0;u<l;u++)delete r[a[u]];a.splice(0,l)}return s},o.measureText=function(t,e,n,i,r){var o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i},o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t)&&t.length>e&&(e=t.length)}),e},o.color=i?function(t){return t instanceof CanvasGradient&&(t=r.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},o.getHoverColor=function(t){return t instanceof CanvasPattern?t:o.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";var i=t(45);function r(t,e){return t.native?{x:t.x,y:t.y}:i.getRelativePosition(t,e)}function o(t,e){var n,i,r,o,a;for(i=0,o=t.data.datasets.length;i<o;++i)if(t.isDatasetVisible(i))for(r=0,a=(n=t.getDatasetMeta(i)).data.length;r<a;++r){var s=n.data[r];s._view.skip||e(s)}}function a(t,e){var n=[];return o(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function s(t,e,n,i){var r=Number.POSITIVE_INFINITY,a=[];return o(t,function(t){if(!n||t.inRange(e.x,e.y)){var o=t.getCenterPoint(),s=i(e,o);s<r?(a=[t],r=s):s===r&&a.push(t)}}),a}function l(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){var r=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function u(t,e,n){var i=r(e,t);n.axis=n.axis||"x";var o=l(n.axis),u=n.intersect?a(t,i):s(t,i,!1,o),c=[];return u.length?(t.data.datasets.forEach(function(e,n){if(t.isDatasetVisible(n)){var i=t.getDatasetMeta(n).data[u[0]._index];i&&!i._view.skip&&c.push(i)}}),c):[]}e.exports={modes:{single:function(t,e){var n=r(e,t),i=[];return o(t,function(t){if(t.inRange(n.x,n.y))return i.push(t),i}),i.slice(0,1)},label:u,index:u,dataset:function(t,e,n){var i=r(e,t);n.axis=n.axis||"xy";var o=l(n.axis),u=n.intersect?a(t,i):s(t,i,!1,o);return u.length>0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return u(t,e,{intersect:!1})},point:function(t,e){return a(t,r(e,t))},nearest:function(t,e,n){var i=r(e,t);n.axis=n.axis||"xy";var o=l(n.axis),a=s(t,i,n.intersect,o);return a.length>1&&a.sort(function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n}),a.slice(0,1)},x:function(t,e,n){var i=r(e,t),a=[],s=!1;return o(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(t,e,n){var i=r(e,t),a=[],s=!1;return o(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var i=t(45);function r(t,e){return i.where(t,function(t){return t.position===e})}function o(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,r=e?t:n;return i.weight===r.weight?i._tmpIndex_-r._tmpIndex_:i.weight-r.weight}),t.forEach(function(t){delete t._tmpIndex_})}e.exports={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,r=["fullWidth","position","weight"],o=r.length,a=0;a<o;++a)n.hasOwnProperty(i=r[a])&&(e[i]=n[i])},update:function(t,e,n){if(t){var a=i.options.toPadding((t.options.layout||{}).padding),s=a.left,l=a.right,u=a.top,c=a.bottom,h=r(t.boxes,"left"),d=r(t.boxes,"right"),f=r(t.boxes,"top"),p=r(t.boxes,"bottom"),g=r(t.boxes,"chartArea");o(h,!0),o(d,!1),o(f,!0),o(p,!1);var m=e-s-l,v=n-u-c,y=(e-m/2)/(h.length+d.length),b=(n-v/2)/(f.length+p.length),x=m,w=v,_=[];i.each(h.concat(d,f,p),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?m:x,b),w-=e.height):(e=t.update(y,w),x-=e.width),_.push({horizontal:n,minSize:e,box:t})});var k=0,S=0,C=0,M=0;i.each(f.concat(p),function(t){if(t.getPadding){var e=t.getPadding();k=Math.max(k,e.left),S=Math.max(S,e.right)}}),i.each(h.concat(d),function(t){if(t.getPadding){var e=t.getPadding();C=Math.max(C,e.top),M=Math.max(M,e.bottom)}});var T=s,D=l,A=u,O=c;i.each(h.concat(d),F),i.each(h,function(t){T+=t.width}),i.each(d,function(t){D+=t.width}),i.each(f.concat(p),F),i.each(f,function(t){A+=t.height}),i.each(p,function(t){O+=t.height}),i.each(h.concat(d),function(t){var e=i.findNextWhere(_,function(e){return e.box===t});e&&t.update(e.minSize.width,w,{left:0,right:0,top:A,bottom:O})}),T=s,D=l,A=u,O=c,i.each(h,function(t){T+=t.width}),i.each(d,function(t){D+=t.width}),i.each(f,function(t){A+=t.height}),i.each(p,function(t){O+=t.height});var E=Math.max(k-T,0);T+=E,D+=Math.max(S-D,0);var I=Math.max(C-A,0);A+=I,O+=Math.max(M-O,0);var P=n-A-O,L=e-T-D;L===x&&P===w||(i.each(h,function(t){t.height=P}),i.each(d,function(t){t.height=P}),i.each(f,function(t){t.fullWidth||(t.width=L)}),i.each(p,function(t){t.fullWidth||(t.width=L)}),w=P,x=L);var R=s+E,j=u+I;i.each(h.concat(f),N),R+=x,j+=w,i.each(d,N),i.each(p,N),t.chartArea={left:T,top:A,right:T+x,bottom:A+w},i.each(g,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(x,w)})}function F(t){var e=i.findNextWhere(_,function(e){return e.box===t});if(e)if(t.isHorizontal()){var n={left:Math.max(T,k),right:Math.max(D,S),top:0,bottom:0};t.update(t.fullWidth?m:x,v/2,n)}else t.update(e.minSize.width,w)}function N(t){t.isHorizontal()?(t.left=t.fullWidth?s:T,t.right=t.fullWidth?e-l:T+x,t.top=j,t.bottom=j+t.height,j=t.bottom):(t.left=R,t.right=R+t.width,t.top=A,t.bottom=A+w,R=t.right)}}}},{45:45}],31:[function(t,e,n){"use strict";var i=t(25),r=t(45);i._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,r,o,a,s,l=this.descriptors(t),u=l.length;for(i=0;i<u;++i)if("function"==typeof(s=(o=(r=l[i]).plugin)[e])&&((a=[t].concat(n||[])).push(r.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],o=[],a=t&&t.config||{},s=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(t){if(-1===n.indexOf(t)){var e=t.id,a=s[e];!1!==a&&(!0===a&&(a=r.clone(i.global.plugins[e])),n.push(t),o.push({plugin:t,options:a||{}}))}}),e.descriptors=o,e.id=this._cacheId,o},_invalidate:function(t){delete t.$plugins}}},{25:25,45:45}],32:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45),a=t(34);function s(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(t[e].label);return i}function l(t,e,n){var i=t.getPixelForTick(e);return n&&(i-=0===e?(t.getPixelForTick(1)-i)/2:(i-t.getPixelForTick(e-1))/2),i}i._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:a.formatters.values,minor:{},major:{}}}),e.exports=function(t){function e(t,e,n){return o.isArray(e)?o.longestText(t,n,e):t.measureText(e).width}function n(t){var e=o.valueOrDefault,n=i.global,r=e(t.fontSize,n.defaultFontSize),a=e(t.fontStyle,n.defaultFontStyle),s=e(t.fontFamily,n.defaultFontFamily);return{size:r,style:a,family:s,font:o.fontString(r,a,s)}}function a(t){return o.options.toLineHeight(o.valueOrDefault(t.lineHeight,1.2),o.valueOrDefault(t.fontSize,i.global.defaultFontSize))}t.Scale=r.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;for(var e in!1===t.minor&&(t.minor={display:!1}),!1===t.major&&(t.major={display:!1}),t)"major"!==e&&"minor"!==e&&(void 0===t.minor[e]&&(t.minor[e]=t[e]),void 0===t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){o.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,r,a,s,l,u,c=this;for(c.beforeUpdate(),c.maxWidth=t,c.maxHeight=e,c.margins=o.extend({left:0,right:0,top:0,bottom:0},n),c.longestTextCache=c.longestTextCache||{},c.beforeSetDimensions(),c.setDimensions(),c.afterSetDimensions(),c.beforeDataLimits(),c.determineDataLimits(),c.afterDataLimits(),c.beforeBuildTicks(),l=c.buildTicks()||[],c.afterBuildTicks(),c.beforeTickToLabelConversion(),a=c.convertTicksToLabels(l)||c.ticks,c.afterTickToLabelConversion(),c.ticks=a,i=0,r=a.length;i<r;++i)s=a[i],(u=l[i])?u.label=s:l.push(u={label:s,major:!1});return c._ticks=l,c.beforeCalculateTickRotation(),c.calculateTickRotation(),c.afterCalculateTickRotation(),c.beforeFit(),c.fit(),c.afterFit(),c.afterUpdate(),c.minSize},afterUpdate:function(){o.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){o.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){o.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){o.callback(this.options.beforeDataLimits,[this])},determineDataLimits:o.noop,afterDataLimits:function(){o.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){o.callback(this.options.beforeBuildTicks,[this])},buildTicks:o.noop,afterBuildTicks:function(){o.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){o.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){o.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){o.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,i=t.options.ticks,r=s(t._ticks),a=n(i);e.font=a.font;var l=i.minRotation||0;if(r.length&&t.options.display&&t.isHorizontal())for(var u,c=o.longestText(e,a.font,r,t.longestTextCache),h=c,d=t.getPixelForTick(1)-t.getPixelForTick(0)-6;h>d&&l<i.maxRotation;){var f=o.toRadians(l);if(u=Math.cos(f),Math.sin(f)*c>t.maxHeight){l--;break}l++,h=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){o.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){o.callback(this.options.beforeFit,[this])},fit:function(){var t=this,i=t.minSize={width:0,height:0},r=s(t._ticks),l=t.options,u=l.ticks,c=l.scaleLabel,h=l.gridLines,d=l.display,f=t.isHorizontal(),p=n(u),g=l.gridLines.tickMarkLength;if(i.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:d&&h.drawTicks?g:0,i.height=f?d&&h.drawTicks?g:0:t.maxHeight,c.display&&d){var m=a(c)+o.options.toPadding(c.padding).height;f?i.height+=m:i.width+=m}if(u.display&&d){var v=o.longestText(t.ctx,p.font,r,t.longestTextCache),y=o.numberOfLabelLines(r),b=.5*p.size,x=t.options.ticks.padding;if(f){t.longestLabelWidth=v;var w=o.toRadians(t.labelRotation),_=Math.cos(w),k=Math.sin(w)*v+p.size*y+b*(y-1)+b;i.height=Math.min(t.maxHeight,i.height+k+x),t.ctx.font=p.font;var S=e(t.ctx,r[0],p.font),C=e(t.ctx,r[r.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===l.position?_*S+3:_*b+3,t.paddingRight="bottom"===l.position?_*b+3:_*C+3):(t.paddingLeft=S/2+3,t.paddingRight=C/2+3)}else u.mirror?v=0:v+=x+b,i.width=Math.min(t.maxWidth,i.width+v),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=i.width,t.height=i.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){o.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(o.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:o.noop,getPixelForValue:o.noop,getValueForPixel:o.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),r=i*t+e.paddingLeft;return n&&(r+=i/2),e.left+Math.round(r)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*((e.height-(e.paddingTop+e.paddingBottom))/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;return e.isHorizontal()?e.left+Math.round((e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft)+(e.isFullWidth()?e.margins.left:0):e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,i,r,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,u=t.length,c=o.toRadians(a.labelRotation),h=Math.cos(c),d=a.longestLabelWidth*h,f=[];for(l.maxTicksLimit&&(r=l.maxTicksLimit),s&&(e=!1,(d+l.autoSkipPadding)*u>a.width-(a.paddingLeft+a.paddingRight)&&(e=1+Math.floor((d+l.autoSkipPadding)*u/(a.width-(a.paddingLeft+a.paddingRight)))),r&&u>r&&(e=Math.max(e,Math.floor(u/r)))),n=0;n<u;n++)i=t[n],(e>1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1&&delete i.label,f.push(i);return f},draw:function(t){var e=this,r=e.options;if(r.display){var s=e.ctx,u=i.global,c=r.ticks.minor,h=r.ticks.major||c,d=r.gridLines,f=r.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),m=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=o.valueOrDefault(c.fontColor,u.defaultFontColor),y=n(c),b=o.valueOrDefault(h.fontColor,u.defaultFontColor),x=n(h),w=d.drawTicks?d.tickMarkLength:0,_=o.valueOrDefault(f.fontColor,u.defaultFontColor),k=n(f),S=o.options.toPadding(f.padding),C=o.toRadians(e.labelRotation),M=[],T=e.options.gridLines.lineWidth,D="right"===r.position?e.right:e.right-T-w,A="right"===r.position?e.right+w:e.right,O="bottom"===r.position?e.top+T:e.bottom-w-T,E="bottom"===r.position?e.top+T+w:e.bottom+T;if(o.each(m,function(n,i){if(!o.isNullOrUndef(n.label)){var a,s,h,f,v,y,b,x,_,k,S,I,P,L,R=n.label;i===e.zeroLineIndex&&r.offset===d.offsetGridLines?(a=d.zeroLineWidth,s=d.zeroLineColor,h=d.zeroLineBorderDash,f=d.zeroLineBorderDashOffset):(a=o.valueAtIndexOrDefault(d.lineWidth,i),s=o.valueAtIndexOrDefault(d.color,i),h=o.valueOrDefault(d.borderDash,u.borderDash),f=o.valueOrDefault(d.borderDashOffset,u.borderDashOffset));var j="middle",F="middle",N=c.padding;if(g){var W=w+N;"bottom"===r.position?(F=p?"middle":"top",j=p?"right":"center",L=e.top+W):(F=p?"middle":"bottom",j=p?"left":"center",L=e.bottom-W);var B=l(e,i,d.offsetGridLines&&m.length>1);B<e.left&&(s="rgba(0,0,0,0)"),B+=o.aliasPixel(a),P=e.getPixelForTick(i)+c.labelOffset,v=b=_=S=B,y=O,x=E,k=t.top,I=t.bottom+T}else{var H,z="left"===r.position;c.mirror?(j=z?"left":"right",H=N):(j=z?"right":"left",H=w+N),P=z?e.right-H:e.left+H;var Y=l(e,i,d.offsetGridLines&&m.length>1);Y<e.top&&(s="rgba(0,0,0,0)"),Y+=o.aliasPixel(a),L=e.getPixelForTick(i)+c.labelOffset,v=D,b=A,_=t.left,S=t.right+T,y=x=k=I=Y}M.push({tx1:v,ty1:y,tx2:b,ty2:x,x1:_,y1:k,x2:S,y2:I,labelX:P,labelY:L,glWidth:a,glColor:s,glBorderDash:h,glBorderDashOffset:f,rotation:-1*C,label:R,major:n.major,textBaseline:F,textAlign:j})}}),o.each(M,function(t){if(d.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),d.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),d.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=t.major?x.font:y.font,s.fillStyle=t.major?b:v,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var n=t.label;if(o.isArray(n))for(var i=n.length,r=1.5*y.size,a=e.isHorizontal()?0:-r*(i-1)/2,l=0;l<i;++l)s.fillText(""+n[l],0,a),a+=r;else s.fillText(n,0,0);s.restore()}}),f.display){var I,P,L=0,R=a(f)/2;if(g)I=e.left+(e.right-e.left)/2,P="bottom"===r.position?e.bottom-R-S.bottom:e.top+R+S.top;else{var j="left"===r.position;I=j?e.left+R+S.top:e.right-R-S.top,P=e.top+(e.bottom-e.top)/2,L=j?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(I,P),s.rotate(L),s.textAlign="center",s.textBaseline="middle",s.fillStyle=_,s.font=k.font,s.fillText(f.labelString,0,0),s.restore()}if(d.drawBorder){s.lineWidth=o.valueAtIndexOrDefault(d.lineWidth,0),s.strokeStyle=o.valueAtIndexOrDefault(d.color,0);var F=e.left,N=e.right+T,W=e.top,B=e.bottom+T,H=o.aliasPixel(s.lineWidth);g?(W=B="top"===r.position?e.bottom:e.top,W+=H,B+=H):(F=N="left"===r.position?e.right:e.left,F+=H,N+=H),s.beginPath(),s.moveTo(F,W),s.lineTo(N,B),s.stroke()}}}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,n){"use strict";var i=t(25),r=t(45),o=t(30);e.exports=function(t){t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=r.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?r.merge({},[i.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=r.extend(this.defaults[t],e))},addScalesToLayout:function(t){r.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,o.addBox(t,e)})}}}},{25:25,30:30,45:45}],34:[function(t,e,n){"use strict";var i=t(45);e.exports={formatters:{values:function(t){return i.isArray(t)?t:""+t},linear:function(t,e,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var o=i.log10(Math.abs(r)),a="";if(0!==t){var s=-1*Math.floor(o);s=Math.max(Math.min(s,20),0),a=t.toFixed(s)}else a="0";return a},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:o.noop,title:function(t,e){var n="",i=e.labels,r=i?i.length:0;if(t.length>0){var o=t[0];o.xLabel?n=o.xLabel:r>0&&o.index<r&&(n=i[o.index])}return n},afterTitle:o.noop,beforeBody:o.noop,beforeLabel:o.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),n+t.yLabel},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:o.noop,afterBody:o.noop,beforeFooter:o.noop,footer:o.noop,afterFooter:o.noop}}}),e.exports=function(t){function e(t,e){var n=o.color(t);return n.alpha(e*n.alpha()).rgbaString()}function n(t,e){return e&&(o.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function a(t){var e=i.global,n=o.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:n(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:n(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:n(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:n(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:n(t.titleFontStyle,e.defaultFontStyle),titleFontSize:n(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:n(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:n(t.footerFontStyle,e.defaultFontStyle),footerFontSize:n(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}t.Tooltip=r.extend({initialize:function(){this._model=a(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),r=t.afterTitle.apply(this,arguments),o=[];return n(o=n(o=n(o,e),i),r)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return o.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,r=i._options.callbacks,a=[];return o.each(t,function(t){var o={before:[],lines:[],after:[]};n(o.before,r.beforeLabel.call(i,t,e)),n(o.lines,r.label.call(i,t,e)),n(o.after,r.afterLabel.call(i,t,e)),a.push(o)}),a},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return o.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),r=t.afterFooter.apply(this,arguments),o=[];return n(o=n(o=n(o,e),i),r)},update:function(e){var n,i,r,s,l,u,c,h,d,f,p,g,m,v,y,b,x,w,_=this,k=_._options,S=_._model,C=_._model=a(k),M=_._active,T=_._data,D={xAlign:S.xAlign,yAlign:S.yAlign},A={x:S.x,y:S.y},O={width:S.width,height:S.height},E={x:S.caretX,y:S.caretY};if(M.length){C.opacity=1;var I=[],P=[];E=t.Tooltip.positioners[k.position].call(_,M,_._eventPosition);var L=[];for(n=0,i=M.length;n<i;++n)L.push((y=void 0,b=void 0,y=(v=M[n])._xScale,b=v._yScale||v._scale,x=v._index,w=v._datasetIndex,{xLabel:y?y.getLabelForIndex(x,w):"",yLabel:b?b.getLabelForIndex(x,w):"",index:x,datasetIndex:w,x:v._model.x,y:v._model.y}));k.filter&&(L=L.filter(function(t){return k.filter(t,T)})),k.itemSort&&(L=L.sort(function(t,e){return k.itemSort(t,e,T)})),o.each(L,function(t){I.push(k.callbacks.labelColor.call(_,t,_._chart)),P.push(k.callbacks.labelTextColor.call(_,t,_._chart))}),C.title=_.getTitle(L,T),C.beforeBody=_.getBeforeBody(L,T),C.body=_.getBody(L,T),C.afterBody=_.getAfterBody(L,T),C.footer=_.getFooter(L,T),C.x=Math.round(E.x),C.y=Math.round(E.y),C.caretPadding=k.caretPadding,C.labelColors=I,C.labelTextColors=P,C.dataPoints=L,D=function(t,e){var n,i,r,o,a,s=t._model,l=t._chart,u=t._chart.chartArea,c="center",h="center";s.y<e.height?h="top":s.y>l.height-e.height&&(h="bottom");var d=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===h?(n=function(t){return t<=d},i=function(t){return t>d}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),r=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},a=function(t){return t<=f?"top":"bottom"},n(s.x)?(c="left",r(s.x)&&(c="center",h=a(s.y))):i(s.x)&&(c="right",o(s.x)&&(c="center",h=a(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:h}}(this,O=function(t,e){var n=t._chart.ctx,i=2*e.yPadding,r=0,a=e.body,s=a.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);s+=e.beforeBody.length+e.afterBody.length;var l=e.title.length,u=e.footer.length,c=e.titleFontSize,h=e.bodyFontSize,d=e.footerFontSize;i+=l*c,i+=l?(l-1)*e.titleSpacing:0,i+=l?e.titleMarginBottom:0,i+=s*h,i+=s?(s-1)*e.bodySpacing:0,i+=u?e.footerMarginTop:0,i+=u*d,i+=u?(u-1)*e.footerSpacing:0;var f=0,p=function(t){r=Math.max(r,n.measureText(t).width+f)};return n.font=o.fontString(c,e._titleFontStyle,e._titleFontFamily),o.each(e.title,p),n.font=o.fontString(h,e._bodyFontStyle,e._bodyFontFamily),o.each(e.beforeBody.concat(e.afterBody),p),f=e.displayColors?h+2:0,o.each(a,function(t){o.each(t.before,p),o.each(t.lines,p),o.each(t.after,p)}),f=0,n.font=o.fontString(d,e._footerFontStyle,e._footerFontFamily),o.each(e.footer,p),{width:r+=2*e.xPadding,height:i}}(this,C)),s=O,u=_._chart,c=(r=C).x,h=r.y,p=(l=D).yAlign,g=r.caretSize+(d=r.caretPadding),m=r.cornerRadius+d,"right"===(f=l.xAlign)?c-=s.width:"center"===f&&((c-=s.width/2)+s.width>u.width&&(c=u.width-s.width),c<0&&(c=0)),"top"===p?h+=g:h-="bottom"===p?s.height+g:s.height/2,"center"===p?"left"===f?c+=g:"right"===f&&(c-=g):"left"===f?c-=m:"right"===f&&(c+=m),A={x:c,y:h}}else C.opacity=0;return C.xAlign=D.xAlign,C.yAlign=D.yAlign,C.x=A.x,C.y=A.y,C.width=O.width,C.height=O.height,C.caretX=E.x,C.caretY=E.y,_._model=C,e&&k.custom&&k.custom.call(_,C),_},drawCaret:function(t,e){var n=this._chart.ctx,i=this.getCaretPosition(t,e,this._view);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var i,r,o,a,s,l,u=n.caretSize,c=n.cornerRadius,h=n.xAlign,d=n.yAlign,f=t.x,p=t.y,g=e.width,m=e.height;if("center"===d)s=p+m/2,"left"===h?(r=(i=f)-u,o=i,a=s+u,l=s-u):(r=(i=f+g)+u,o=i,a=s-u,l=s+u);else if("left"===h?(i=(r=f+c+u)-u,o=r+u):"right"===h?(i=(r=f+g-c-u)-u,o=r+u):(i=(r=n.caretX)-u,o=r+u),"top"===d)s=(a=p)-u,l=a;else{s=(a=p+m)+u,l=a;var v=o;o=i,i=v}return{x1:i,x2:r,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(t,n,i,r){var a=n.title;if(a.length){i.textAlign=n._titleAlign,i.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(i.fillStyle=e(n.titleFontColor,r),i.font=o.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=a.length;s<l;++s)i.fillText(a[s],t.x,t.y),t.y+=u+c,s+1===a.length&&(t.y+=n.titleMarginBottom-c)}},drawBody:function(t,n,i,r){var a=n.bodyFontSize,s=n.bodySpacing,l=n.body;i.textAlign=n._bodyAlign,i.textBaseline="top",i.font=o.fontString(a,n._bodyFontStyle,n._bodyFontFamily);var u=0,c=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+s};i.fillStyle=e(n.bodyFontColor,r),o.each(n.beforeBody,c);var h=n.displayColors;u=h?a+2:0,o.each(l,function(s,l){var u=e(n.labelTextColors[l],r);i.fillStyle=u,o.each(s.before,c),o.each(s.lines,function(o){h&&(i.fillStyle=e(n.legendColorBackground,r),i.fillRect(t.x,t.y,a,a),i.lineWidth=1,i.strokeStyle=e(n.labelColors[l].borderColor,r),i.strokeRect(t.x,t.y,a,a),i.fillStyle=e(n.labelColors[l].backgroundColor,r),i.fillRect(t.x+1,t.y+1,a-2,a-2),i.fillStyle=u),c(o)}),o.each(s.after,c)}),u=0,o.each(n.afterBody,c),t.y-=s},drawFooter:function(t,n,i,r){var a=n.footer;a.length&&(t.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=e(n.footerFontColor,r),i.font=o.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),o.each(a,function(e){i.fillText(e,t.x,t.y),t.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,n,i,r,o){i.fillStyle=e(n.backgroundColor,o),i.strokeStyle=e(n.borderColor,o),i.lineWidth=n.borderWidth;var a=n.xAlign,s=n.yAlign,l=t.x,u=t.y,c=r.width,h=r.height,d=n.cornerRadius;i.beginPath(),i.moveTo(l+d,u),"top"===s&&this.drawCaret(t,r),i.lineTo(l+c-d,u),i.quadraticCurveTo(l+c,u,l+c,u+d),"center"===s&&"right"===a&&this.drawCaret(t,r),i.lineTo(l+c,u+h-d),i.quadraticCurveTo(l+c,u+h,l+c-d,u+h),"bottom"===s&&this.drawCaret(t,r),i.lineTo(l+d,u+h),i.quadraticCurveTo(l,u+h,l,u+h-d),"center"===s&&"left"===a&&this.drawCaret(t,r),i.lineTo(l,u+d),i.quadraticCurveTo(l,u,l+d,u),i.closePath(),i.fill(),n.borderWidth>0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity;this._options.enabled&&(e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length)&&(this.drawBackground(i,e,t,n,r),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,r),this.drawBody(i,e,t,r),this.drawFooter(i,e,t,r))}},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],n._active="mouseout"===t.type?[]:n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!o.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,r=0,o=0;for(e=0,n=t.length;e<n;++e){var a=t[e];if(a&&a.hasValue()){var s=a.tooltipPosition();i+=s.x,r+=s.y,++o}}return{x:Math.round(i/o),y:Math.round(r/o)}},nearest:function(t,e){var n,i,r,a=e.x,s=e.y,l=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){var u=t[n];if(u&&u.hasValue()){var c=u.getCenterPoint(),h=o.distanceBetweenPoints(e,c);h<l&&(l=h,r=u)}}if(r){var d=r.tooltipPosition();a=d.x,s=d.y}return{x:a,y:s}}}}},{25:25,26:26,45:45}],36:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45);i._set("global",{elements:{arc:{backgroundColor:i.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=r.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var i=o.getAngleFromPoint(n,{x:t,y:e}),r=i.angle,a=i.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;r<s;)r+=2*Math.PI;return r>=s&&r<=l&&a>=n.innerRadius&&a<=n.outerRadius}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45),a=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=r.extend({draw:function(){var t,e,n,i,r=this._view,s=this._chart.ctx,l=r.spanGaps,u=this._children.slice(),c=a.elements.line,h=-1;for(this._loop&&u.length&&u.push(u[0]),s.save(),s.lineCap=r.borderCapStyle||c.borderCapStyle,s.setLineDash&&s.setLineDash(r.borderDash||c.borderDash),s.lineDashOffset=r.borderDashOffset||c.borderDashOffset,s.lineJoin=r.borderJoinStyle||c.borderJoinStyle,s.lineWidth=r.borderWidth||c.borderWidth,s.strokeStyle=r.borderColor||a.defaultColor,s.beginPath(),h=-1,t=0;t<u.length;++t)e=u[t],n=o.previousItem(u,t),i=e._view,0===t?i.skip||(s.moveTo(i.x,i.y),h=t):(n=-1===h?n:u[h],i.skip||(h!==t-1&&!l||-1===h?s.moveTo(i.x,i.y):o.canvas.lineTo(s,n._view,e._view),h=t));s.stroke(),s.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45),a=i.global.defaultColor;function s(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}i._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:a,borderColor:a,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=r.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:s,inXRange:s,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._model,r=this._chart.ctx,s=e.pointStyle,l=e.radius,u=e.x,c=e.y,h=o.color,d=0;e.skip||(r.strokeStyle=e.borderColor||a,r.lineWidth=o.valueOrDefault(e.borderWidth,i.global.elements.point.borderWidth),r.fillStyle=e.backgroundColor||a,void 0!==t&&(n.x<t.left||1.01*t.right<n.x||n.y<t.top||1.01*t.bottom<n.y)&&(n.x<t.left?d=(u-n.x)/(t.left-n.x):1.01*t.right<n.x?d=(n.x-u)/(n.x-t.right):n.y<t.top?d=(c-n.y)/(t.top-n.y):1.01*t.bottom<n.y&&(d=(n.y-c)/(n.y-t.bottom)),d=Math.round(100*d)/100,r.strokeStyle=h(r.strokeStyle).alpha(d).rgbString(),r.fillStyle=h(r.fillStyle).alpha(d).rgbString()),o.canvas.drawPoint(r,s,l,u,c))}})},{25:25,26:26,45:45}],39:[function(t,e,n){"use strict";var i=t(25),r=t(26);function o(t){return void 0!==t._view.width}function a(t){var e,n,i,r,a=t._view;if(o(t)){var s=a.width/2;e=a.x-s,n=a.x+s,i=Math.min(a.y,a.base),r=Math.max(a.y,a.base)}else{var l=a.height/2;e=Math.min(a.x,a.base),n=Math.max(a.x,a.base),i=a.y-l,r=a.y+l}return{left:e,top:i,right:n,bottom:r}}i._set("global",{elements:{rectangle:{backgroundColor:i.global.defaultColor,borderColor:i.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=r.extend({draw:function(){var t,e,n,i,r,o,a,s=this._chart.ctx,l=this._view,u=l.borderWidth;if(l.horizontal?(n=l.y-l.height/2,i=l.y+l.height/2,r=(e=l.x)>(t=l.base)?1:-1,o=1,a=l.borderSkipped||"left"):(t=l.x-l.width/2,e=l.x+l.width/2,r=1,o=(i=l.base)>(n=l.y)?1:-1,a=l.borderSkipped||"bottom"),u){var c=Math.min(Math.abs(t-e),Math.abs(n-i)),h=(u=u>c?c:u)/2,d=t+("left"!==a?h*r:0),f=e+("right"!==a?-h*r:0),p=n+("top"!==a?h*o:0),g=i+("bottom"!==a?-h*o:0);d!==f&&(n=p,i=g),p!==g&&(t=d,e=f)}s.beginPath(),s.fillStyle=l.backgroundColor,s.strokeStyle=l.borderColor,s.lineWidth=u;var m=[[t,i],[t,n],[e,n],[e,i]],v=["bottom","left","top","right"].indexOf(a,0);function y(t){return m[(v+t)%4]}-1===v&&(v=0);var b=y(0);s.moveTo(b[0],b[1]);for(var x=1;x<4;x++)b=y(x),s.lineTo(b[0],b[1]);s.fill(),u&&s.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=a(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){if(!this._view)return!1;var n=a(this);return o(this)?t>=n.left&&t<=n.right:e>=n.top&&e<=n.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return o(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var i=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,r,o){if(o){var a=Math.min(o,i/2),s=Math.min(o,r/2);t.moveTo(e+a,n),t.lineTo(e+i-a,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+r-s),t.quadraticCurveTo(e+i,n+r,e+i-a,n+r),t.lineTo(e+a,n+r),t.quadraticCurveTo(e,n+r,e,n+r-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+a,n)}else t.rect(e,n,i,r)},drawPoint:function(t,e,n,i,r){var o,a,s,l,u,c;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,r,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(a=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-a/2,r+u/3),t.lineTo(i+a/2,r+u/3),t.lineTo(i,r-2*u/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,r-c,2*c,2*c),t.strokeRect(i-c,r-c,2*c,2*c);break;case"rectRounded":var h=n/Math.SQRT2,d=i-h,f=r-h,p=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,d,f,p,p,n/2),t.closePath(),t.fill();break;case"rectRot":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,r),t.lineTo(i,r+c),t.lineTo(i+c,r),t.lineTo(i,r-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,r+n),t.lineTo(i,r-n),t.moveTo(i-n,r),t.lineTo(i+n,r),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,r-l),t.lineTo(i+s,r+l),t.moveTo(i-s,r+l),t.lineTo(i+s,r-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,r),t.lineTo(i+n,r),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,r),t.lineTo(i+n,r),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,r-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},i.clear=n.clear,i.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i,r={noop:function(){},uid:(i=0,function(){return i++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return r.valueOrDefault(r.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var o,a,s;if(r.isArray(t))if(a=t.length,i)for(o=a-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<a;o++)e.call(n,t[o],o);else if(r.isObject(t))for(a=(s=Object.keys(t)).length,o=0;o<a;o++)e.call(n,t[s[o]],s[o])},arrayEquals:function(t,e){var n,i,o,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=e[n],(o=t[n])instanceof Array&&a instanceof Array){if(!r.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},clone:function(t){if(r.isArray(t))return t.map(r.clone);if(r.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,o=0;o<i;++o)e[n[o]]=r.clone(t[n[o]]);return e}return t},_merger:function(t,e,n,i){var o=e[t],a=n[t];r.isObject(o)&&r.isObject(a)?r.merge(o,a,i):e[t]=r.clone(a)},_mergerIf:function(t,e,n){var i=e[t],o=n[t];r.isObject(i)&&r.isObject(o)?r.mergeIf(i,o):e.hasOwnProperty(t)||(e[t]=r.clone(o))},merge:function(t,e,n){var i,o,a,s,l,u=r.isArray(e)?e:[e],c=u.length;if(!r.isObject(t))return t;for(i=(n=n||{}).merger||r._merger,o=0;o<c;++o)if(r.isObject(e=u[o]))for(l=0,s=(a=Object.keys(e)).length;l<s;++l)i(a[l],t,e,n);return t},mergeIf:function(t,e){return r.merge(t,e,{merger:r._mergerIf})},extend:function(t){for(var e=function(e,n){t[n]=e},n=1,i=arguments.length;n<i;++n)r.each(arguments[n],e);return t},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=r.inherits,t&&r.extend(n.prototype,t),n.__super__=e.prototype,n}};e.exports=r,r.callCallback=r.callback,r.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},r.getValueOrDefault=r.valueOrDefault,r.getValueAtIndexOrDefault=r.valueAtIndexOrDefault},{}],43:[function(t,e,n){"use strict";var i=t(42),r={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-r.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*r.easeInBounce(2*t):.5*r.easeOutBounce(2*t-1)+.5}};e.exports={effects:r},i.easingEffects=r},{42:42}],44:[function(t,e,n){"use strict";var i=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,r,o;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,o=+t.left||0):e=n=r=o=+t||0,{top:e,right:n,bottom:r,left:o,height:e+r,width:o+n}},resolve:function(t,e,n){var r,o,a;for(r=0,o=t.length;r<o;++r)if(void 0!==(a=t[r])&&(void 0!==e&&"function"==typeof a&&(a=a(e)),void 0!==n&&i.isArray(a)&&(a=a[n]),void 0!==a))return a}}},{42:42}],45:[function(t,e,n){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,n){e.exports={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}}},{}],47:[function(t,e,n){"use strict";var i=t(45),r="$chartjs",o="chartjs-",a=o+"render-monitor",s=o+"render-animation",l=["animationstart","webkitAnimationStart"],u={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function c(t,e){var n=i.getStyle(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var h=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function d(t,e,n){t.addEventListener(e,n,h)}function f(t,e,n){t.removeEventListener(e,n,h)}function p(t,e,n,i,r){return{type:t,chart:e,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function g(t,e,n){var u,c,h,f,g,m,v,y,b=t[r]||(t[r]={}),x=b.resizer=function(t){var e=document.createElement("div"),n=o+"size-monitor",i="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=i,e.className=n,e.innerHTML='<div class="'+n+'-expand" style="'+i+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+i+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var r=e.childNodes[0],a=e.childNodes[1];e._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){e._reset(),t()};return d(r,"scroll",s.bind(r,"expand")),d(a,"scroll",s.bind(a,"shrink")),e}((u=function(){if(b.resizer)return e(p("resize",n))},h=!1,f=[],function(){f=Array.prototype.slice.call(arguments),c=c||this,h||(h=!0,i.requestAnimFrame.call(window,function(){h=!1,u.apply(c,f)}))}));m=function(){if(b.resizer){var e=t.parentNode;e&&e!==x.parentNode&&e.insertBefore(x,e.firstChild),x._reset()}},v=(g=t)[r]||(g[r]={}),y=v.renderProxy=function(t){t.animationName===s&&m()},i.each(l,function(t){d(g,t,y)}),v.reflow=!!g.offsetParent,g.classList.add(a)}function m(t){var e,n,o,s=t[r]||{},u=s.resizer;delete s.resizer,n=(e=t)[r]||{},(o=n.renderProxy)&&(i.each(l,function(t){f(e,t,o)}),delete n.renderProxy),e.classList.remove(a),u&&u.parentNode&&u.parentNode.removeChild(u)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,n,i="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+s+"{"+i+"}@keyframes "+s+"{"+i+"}."+a+"{-webkit-animation:"+s+" 0.001s;animation:"+s+" 0.001s;}",n=(t=this)._style||document.createElement("style"),t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[r]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var a=c(t,"width");void 0!==a&&(t.width=a)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=c(t,"height");void 0!==a&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[r]){var n=e[r].initial;["height","width"].forEach(function(t){var r=n[t];i.isNullOrUndef(r)?e.removeAttribute(t):e.setAttribute(t,r)}),i.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[r]}},addEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var a=n[r]||(n[r]={});d(o,e,(a.proxies||(a.proxies={}))[t.id+"_"+e]=function(e){var r,o,a;n((o=t,p(u[(r=e).type]||r.type,o,(a=i.getRelativePosition(r,o)).x,a.y,r)))})}else g(o,n,t)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var o=((n[r]||{}).proxies||{})[t.id+"_"+e];o&&f(i,e,o)}else m(i)}},i.addEvent=d,i.removeEvent=f},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),r=t(46),o=t(47);e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o._enabled?o:r)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";e.exports={},e.exports.filler=t(50),e.exports.legend=t(51),e.exports.title=t(52)},{50:50,51:51,52:52}],50:[function(t,e,n){"use strict";var i=t(25),r=t(40),o=t(45);i._set("global",{plugins:{filler:{propagate:!0}}});var a={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),r=i&&n.isDatasetVisible(e)&&i.dataset._children||[],o=r.length||0;return o?function(t,e){return e<o&&r[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,i=e?e.y:null;return function(t){return{x:null===n?t.x:n,y:null===i?t.y:i}}}};function s(t,e,n){var i,r=t._model||{},o=r.fill;if(void 0===o&&(o=!!r.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(i=parseFloat(o,10),isFinite(i)&&Math.floor(i)===i)return"-"!==o[0]&&"+"!==o[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function l(t){var e,n=t.el._model||{},i=t.el._scale||{},r=t.fill,o=null;if(isFinite(r))return null;if("start"===r?o=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?o=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:i.getBasePosition?o=i.getBasePosition():i.getBasePixel&&(o=i.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if("number"==typeof o&&isFinite(o))return{x:(e=i.isHorizontal())?o:null,y:e?null:o}}return null}function u(t,e,n){var i,r=t[e].fill,o=[e];if(!n)return r;for(;!1!==r&&-1===o.indexOf(r);){if(!isFinite(r))return r;if(!(i=t[r]))return!1;if(i.visible)return r;o.push(r),r=i.fill}return!1}function c(t){return t&&!t.skip}function h(t,e,n,i,r){var a;if(i&&r){for(t.moveTo(e[0].x,e[0].y),a=1;a<i;++a)o.canvas.lineTo(t,e[a-1],e[a]);for(t.lineTo(n[r-1].x,n[r-1].y),a=r-1;a>0;--a)o.canvas.lineTo(t,n[a],n[a-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(t,e){var n,i,o,c,h,d,f,p=(t.data.datasets||[]).length,g=e.propagate,m=[];for(i=0;i<p;++i)c=null,(o=(n=t.getDatasetMeta(i)).dataset)&&o._model&&o instanceof r.Line&&(c={visible:t.isDatasetVisible(i),fill:s(o,i,p),chart:t,el:o}),n.$filler=c,m.push(c);for(i=0;i<p;++i)(c=m[i])&&(c.fill=u(m,i,g),c.boundary=l(c),c.mapper=(f=void 0,f="dataset",!1===(d=(h=c).fill)?null:(isFinite(d)||(f="boundary"),a[f](h))))},beforeDatasetDraw:function(t,e){var n=e.meta.$filler;if(n){var r=t.ctx,a=n.el,s=a._view,l=a._children||[],u=n.mapper,d=s.backgroundColor||i.global.defaultColor;u&&d&&l.length&&(o.canvas.clipArea(r,t.chartArea),function(t,e,n,i,r,o){var a,s,l,u,d,f,p,g=e.length,m=i.spanGaps,v=[],y=[],b=0,x=0;for(t.beginPath(),a=0,s=g+!!o;a<s;++a)d=n(u=e[l=a%g]._view,l,i),f=c(u),p=c(d),f&&p?(b=v.push(u),x=y.push(d)):b&&x&&(m?(f&&v.push(u),p&&y.push(d)):(h(t,v,y,b,x),b=x=0,v=[],y=[]));h(t,v,y,b,x),t.closePath(),t.fillStyle=r,t.fill()}(r,l,u,s,d,a._loop),o.canvas.unclipArea(r))}}}},{25:25,40:40,45:45}],51:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45),a=t(30),s=o.noop;function l(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}i._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return o.isArray(e.datasets)?e.datasets.map(function(e,n){return{text:e.label,fillStyle:o.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var u=r.extend({initialize:function(t){o.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=o.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,e=t.options,n=e.labels,r=e.display,a=t.ctx,s=i.global,u=o.valueOrDefault,c=u(n.fontSize,s.defaultFontSize),h=u(n.fontStyle,s.defaultFontStyle),d=u(n.fontFamily,s.defaultFontFamily),f=o.fontString(c,h,d),p=t.legendHitBoxes=[],g=t.minSize,m=t.isHorizontal();if(m?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(a.font=f,m){var v=t.lineWidths=[0],y=t.legendItems.length?c+n.padding:0;a.textAlign="left",a.textBaseline="top",o.each(t.legendItems,function(e,i){var r=l(n,c)+c/2+a.measureText(e.text).width;v[v.length-1]+r+n.padding>=t.width&&(y+=c+n.padding,v[v.length]=t.left),p[i]={left:0,top:0,width:r,height:c},v[v.length-1]+=r+n.padding}),g.height+=y}else{var b=n.padding,x=t.columnWidths=[],w=n.padding,_=0,k=0,S=c+b;o.each(t.legendItems,function(t,e){var i=l(n,c)+c/2+a.measureText(t.text).width;k+S>g.height&&(w+=_+n.padding,x.push(_),_=0,k=0),_=Math.max(_,i),k+=S,p[e]={left:0,top:0,width:i,height:c}}),w+=_,x.push(_),g.width+=w}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,r=i.global,a=r.elements.line,s=t.width,u=t.lineWidths;if(e.display){var c,h=t.ctx,d=o.valueOrDefault,f=d(n.fontColor,r.defaultFontColor),p=d(n.fontSize,r.defaultFontSize),g=d(n.fontStyle,r.defaultFontStyle),m=d(n.fontFamily,r.defaultFontFamily),v=o.fontString(p,g,m);h.textAlign="left",h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=v;var y=l(n,p),b=t.legendHitBoxes,x=t.isHorizontal();c=x?{x:t.left+(s-u[0])/2,y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+n.padding,line:0};var w=p+n.padding;o.each(t.legendItems,function(i,l){var f,g,m,v,_,k=h.measureText(i.text).width,S=y+p/2+k,C=c.x,M=c.y;x?C+S>=s&&(M=c.y+=w,c.line++,C=c.x=t.left+(s-u[c.line])/2):M+w>t.bottom&&(C=c.x=C+t.columnWidths[c.line]+n.padding,M=c.y=t.top+n.padding,c.line++),function(t,n,i){if(!(isNaN(y)||y<=0)){h.save(),h.fillStyle=d(i.fillStyle,r.defaultColor),h.lineCap=d(i.lineCap,a.borderCapStyle),h.lineDashOffset=d(i.lineDashOffset,a.borderDashOffset),h.lineJoin=d(i.lineJoin,a.borderJoinStyle),h.lineWidth=d(i.lineWidth,a.borderWidth),h.strokeStyle=d(i.strokeStyle,r.defaultColor);var s=0===d(i.lineWidth,a.borderWidth);if(h.setLineDash&&h.setLineDash(d(i.lineDash,a.borderDash)),e.labels&&e.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2;o.canvas.drawPoint(h,i.pointStyle,l,t+u,n+u)}else s||h.strokeRect(t,n,y,p),h.fillRect(t,n,y,p);h.restore()}}(C,M,i),b[l].left=C,b[l].top=M,g=k,v=y+(m=p/2)+C,h.fillText((f=i).text,v,_=M+m),f.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(v,_),h.lineTo(v+g,_),h.stroke()),x?c.x+=S+n.padding:c.y+=w})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,r=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var o=t.x,a=t.y;if(o>=e.left&&o<=e.right&&a>=e.top&&a<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var u=s[l];if(o>=u.left&&o<=u.left+u.width&&a>=u.top&&a<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),r=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),r=!0;break}}}return r}});function c(t,e){var n=new u({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.legend=n}e.exports={id:"legend",_element:u,beforeInit:function(t){var e=t.options.legend;e&&c(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(o.mergeIf(e,i.global.legend),n?(a.configure(t,n,e),n.options=e):c(t,e)):n&&(a.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}},{25:25,26:26,30:30,45:45}],52:[function(t,e,n){"use strict";var i=t(25),r=t(26),o=t(45),a=t(30),s=o.noop;i._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var l=r.extend({initialize:function(t){o.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:s,afterBuildLabels:s,beforeFit:s,fit:function(){var t=this.options,e=t.display,n=(0,o.valueOrDefault)(t.fontSize,i.global.defaultFontSize),r=this.minSize,a=o.isArray(t.text)?t.text.length:1,s=o.options.toLineHeight(t.lineHeight,n),l=e?a*s+2*t.padding:0;this.isHorizontal()?(r.width=this.maxWidth,r.height=l):(r.width=l,r.height=this.maxHeight),this.width=r.width,this.height=r.height},afterFit:s,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=o.valueOrDefault,n=this.options,r=i.global;if(n.display){var a,s,l,u=e(n.fontSize,r.defaultFontSize),c=e(n.fontStyle,r.defaultFontStyle),h=e(n.fontFamily,r.defaultFontFamily),d=o.fontString(u,c,h),f=o.options.toLineHeight(n.lineHeight,u),p=f/2+n.padding,g=0,m=this.top,v=this.left,y=this.bottom,b=this.right;t.fillStyle=e(n.fontColor,r.defaultFontColor),t.font=d,this.isHorizontal()?(s=v+(b-v)/2,l=m+p,a=b-v):(s="left"===n.position?v+p:b-p,l=m+(y-m)/2,a=y-m,g=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(s,l),t.rotate(g),t.textAlign="center",t.textBaseline="middle";var x=n.text;if(o.isArray(x))for(var w=0,_=0;_<x.length;++_)t.fillText(x[_],0,w,a),w+=f;else t.fillText(x,0,0,a);t.restore()}}});function u(t,e){var n=new l({ctx:t.ctx,options:e,chart:t});a.configure(t,n,e),a.addBox(t,n),t.titleBlock=n}e.exports={id:"title",_element:l,beforeInit:function(t){var e=t.options.title;e&&u(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(o.mergeIf(e,i.global.title),n?(a.configure(t,n,e),n.options=e):u(t,e)):n&&(a.removeBox(t,n),delete t.titleBlock)}}},{25:25,26:26,30:30,45:45}],53:[function(t,e,n){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.isHorizontal();return n.yLabels&&!i?this.getRightValue(n.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n,i=this,r=i.options.offset,o=Math.max(i.maxIndex+1-i.minIndex-(r?0:1),1);if(null!=t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){t=n||t;var a=i.getLabels().indexOf(t);e=-1!==a?a:e}if(i.isHorizontal()){var s=i.width/o,l=s*(e-i.minIndex);return r&&(l+=s/2),i.left+Math.round(l)}var u=i.height/o,c=u*(e-i.minIndex);return r&&(c+=u/2),i.top+Math.round(c)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),r=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=r/2),(t<=0?0:Math.round(t/r))+this.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],54:[function(t,e,n){"use strict";var i=t(25),r=t(45),o=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:o.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){var t=this,e=t.options,n=t.chart,i=n.data.datasets,o=t.isHorizontal();function a(e){return o?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null;var s=e.stacked;if(void 0===s&&r.each(i,function(t,e){if(!s){var i=n.getDatasetMeta(e);n.isDatasetVisible(e)&&a(i)&&void 0!==i.stack&&(s=!0)}}),e.stacked||s){var l={};r.each(i,function(i,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===e.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===l[u]&&(l[u]={positiveValues:[],negativeValues:[]});var c=l[u].positiveValues,h=l[u].negativeValues;n.isDatasetVisible(o)&&a(s)&&r.each(i.data,function(n,i){var r=+t.getRightValue(n);isNaN(r)||s.data[i].hidden||(c[i]=c[i]||0,h[i]=h[i]||0,e.relativePoints?c[i]=100:r<0?h[i]+=r:c[i]+=r)})}),r.each(l,function(e){var n=e.positiveValues.concat(e.negativeValues),i=r.min(n),o=r.max(n);t.min=null===t.min?i:Math.min(t.min,i),t.max=null===t.max?o:Math.max(t.max,o)})}else r.each(i,function(e,i){var o=n.getDatasetMeta(i);n.isDatasetVisible(i)&&a(o)&&r.each(e.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||o.data[n].hidden||(null===t.min?t.min=i:i<t.min&&(t.min=i),null===t.max?t.max=i:i>t.max&&(t.max=i))})});t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;if(this.isHorizontal())t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=r.valueOrDefault(e.fontSize,i.global.defaultFontSize);t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,n=+this.getRightValue(t),i=this.end-e;return this.isHorizontal()?this.left+this.width/i*(n-e):this.bottom-this.height/i*(n-e)},getValueForPixel:function(t){var e=this.isHorizontal();return this.start+(e?t-this.left:this.bottom-t)/(e?this.width:this.height)*(this.end-this.start)},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],55:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=i.sign(t.min),r=i.sign(t.max);n<0&&r<0?t.max=0:n>0&&r>0&&(t.min=0)}var o=void 0!==e.min||void 0!==e.suggestedMin,a=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(t.min=null===t.min?e.suggestedMin:Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(t.max=null===t.max?e.suggestedMax:Math.max(t.max,e.suggestedMax)),o!==a&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:i.valueOrDefault(e.fixedStepSize,e.stepSize)},o=t.ticks=function(t,e){var n,r=[];if(t.stepSize&&t.stepSize>0)n=t.stepSize;else{var o=i.niceNum(e.max-e.min,!1);n=i.niceNum(o/(t.maxTicks-1),!0)}var a=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(a=t.min,s=t.max);var l=(s-a)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l);var u=1;n<1&&(u=Math.pow(10,n.toString().length-2),a=Math.round(a*u)/u,s=Math.round(s*u)/u),r.push(void 0!==t.min?t.min:a);for(var c=1;c<l;++c)r.push(Math.round((a+c*n)*u)/u);return r.push(void 0!==t.max?t.max:s),r}(r,t);t.handleDirectionalChanges(),t.max=i.max(o),t.min=i.min(o),e.reverse?(o.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(this)}})}},{45:45}],56:[function(t,e,n){"use strict";var i=t(45),r=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){var t=this,e=t.options,n=t.chart,r=n.data.datasets,o=t.isHorizontal();function a(e){return o?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null,t.minNotZero=null;var s=e.stacked;if(void 0===s&&i.each(r,function(t,e){if(!s){var i=n.getDatasetMeta(e);n.isDatasetVisible(e)&&a(i)&&void 0!==i.stack&&(s=!0)}}),e.stacked||s){var l={};i.each(r,function(r,o){var s=n.getDatasetMeta(o),u=[s.type,void 0===e.stacked&&void 0===s.stack?o:"",s.stack].join(".");n.isDatasetVisible(o)&&a(s)&&(void 0===l[u]&&(l[u]=[]),i.each(r.data,function(e,n){var i=l[u],r=+t.getRightValue(e);isNaN(r)||s.data[n].hidden||r<0||(i[n]=i[n]||0,i[n]+=r)}))}),i.each(l,function(e){if(e.length>0){var n=i.min(e),r=i.max(e);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?r:Math.max(t.max,r)}})}else i.each(r,function(e,r){var o=n.getDatasetMeta(r);n.isDatasetVisible(r)&&a(o)&&i.each(e.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||o.data[n].hidden||i<0||(null===t.min?t.min=i:i<t.min&&(t.min=i),null===t.max?t.max=i:i>t.max&&(t.max=i),0!==i&&(null===t.minNotZero||i<t.minNotZero)&&(t.minNotZero=i))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks,n=i.valueOrDefault;t.min=n(e.min,t.min),t.max=n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(i.log10(t.min))-1),t.max=Math.pow(10,Math.floor(i.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(i.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(i.log10(t.min))+1):10),null===t.minNotZero&&(t.minNotZero=t.min>0?t.min:t.max<1?Math.pow(10,Math.floor(i.log10(t.max))):1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),r=t.ticks=function(t,e){var n,r,o=[],a=i.valueOrDefault,s=a(t.min,Math.pow(10,Math.floor(i.log10(e.min)))),l=Math.floor(i.log10(e.max)),u=Math.ceil(e.max/Math.pow(10,l));0===s?(n=Math.floor(i.log10(e.minNotZero)),r=Math.floor(e.minNotZero/Math.pow(10,n)),o.push(s),s=r*Math.pow(10,n)):(n=Math.floor(i.log10(s)),r=Math.floor(s/Math.pow(10,n)));for(var c=n<0?Math.pow(10,Math.abs(n)):1;o.push(s),10==++r&&(r=1,c=++n>=0?1:c),s=Math.round(r*Math.pow(10,n)*c)/c,n<l||n===l&&r<u;);var h=a(t.max,s);return o.push(h),o}({min:e.min,max:e.max},t);t.max=i.max(r),t.min=i.min(r),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(i.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(e){var n,r,o,a,s,l=this,u=l.options.ticks.reverse,c=i.log10,h=l._getFirstTickValue(l.minNotZero),d=0;return e=+l.getRightValue(e),u?(o=l.end,a=l.start,s=-1):(o=l.start,a=l.end,s=1),l.isHorizontal()?(n=l.width,r=u?l.right:l.left):(n=l.height,s*=-1,r=u?l.top:l.bottom),e!==o&&(0===o&&(n-=d=i.getValueOrDefault(l.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=h),0!==e&&(d+=n/(c(a)-c(o))*(c(e)-c(o))),r+=s*d),r},getValueForPixel:function(e){var n,r,o,a,s=this,l=s.options.ticks.reverse,u=i.log10,c=s._getFirstTickValue(s.minNotZero);if(l?(r=s.end,o=s.start):(r=s.start,o=s.end),s.isHorizontal()?(n=s.width,a=l?s.right-e:e-s.left):(n=s.height,a=l?e-s.top:s.bottom-e),a!==r){if(0===r){var h=i.getValueOrDefault(s.options.ticks.fontSize,t.defaults.global.defaultFontSize);a-=h,n-=h,r=c}a*=u(o)-u(r),a/=n,a=Math.pow(10,u(r)+a)}return a}});t.scaleService.registerScaleType("logarithmic",n,e)}},{34:34,45:45}],57:[function(t,e,n){"use strict";var i=t(25),r=t(45),o=t(34);e.exports=function(t){var e=i.global,n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:o.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function a(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function s(t){var n=t.options.pointLabels,i=r.valueOrDefault(n.fontSize,e.defaultFontSize),o=r.valueOrDefault(n.fontStyle,e.defaultFontStyle),a=r.valueOrDefault(n.fontFamily,e.defaultFontFamily);return{size:i,style:o,family:a,font:r.fontString(i,o,a)}}function l(t,e,n,i,r){return t===i||t===r?{start:e-n/2,end:e+n/2}:t<i||t>r?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function u(t,e,n,i){if(r.isArray(e))for(var o=n.y,a=1.5*i,s=0;s<e.length;++s)t.fillText(e[s],n.x,o),o+=a;else t.fillText(e,n.x,n.y)}function c(t){return r.isNumber(t)?t:0}var h=t.LinearScaleBase.extend({setDimensions:function(){var t=this,n=t.options,i=n.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var o=r.min([t.height,t.width]),a=r.valueOrDefault(i.fontSize,e.defaultFontSize);t.drawingArea=n.display?o/2-(a/2+i.backdropPaddingY):o/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;r.each(e.data.datasets,function(o,a){if(e.isDatasetVisible(a)){var s=e.getDatasetMeta(a);r.each(o.data,function(e,r){var o=+t.getRightValue(e);isNaN(o)||s.data[r].hidden||(n=Math.min(o,n),i=Math.max(o,i))})}}),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=r.valueOrDefault(t.fontSize,e.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?function(t){var e,n,i,o=s(t),u=Math.min(t.height/2,t.width/2),c={r:t.width,l:0,t:t.height,b:0},h={};t.ctx.font=o.font,t._pointLabelSizes=[];var d,f,p,g=a(t);for(e=0;e<g;e++){i=t.getPointPosition(e,u),d=t.ctx,f=o.size,n=r.isArray(p=t.pointLabels[e]||"")?{w:r.longestText(d,d.font,p),h:p.length*f+1.5*(p.length-1)*f}:{w:d.measureText(p).width,h:f},t._pointLabelSizes[e]=n;var m=t.getIndexAngle(e),v=r.toDegrees(m)%360,y=l(v,i.x,n.w,0,180),b=l(v,i.y,n.h,90,270);y.start<c.l&&(c.l=y.start,h.l=m),y.end>c.r&&(c.r=y.end,h.r=m),b.start<c.t&&(c.t=b.start,h.t=m),b.end>c.b&&(c.b=b.end,h.b=m)}t.setReductions(u,c,h)}(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),r=Math.max(e.r-this.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),a=-Math.max(e.b-this.height,0)/Math.cos(n.b);i=c(i),r=c(r),o=c(o),a=c(a),this.drawingArea=Math.min(Math.round(t-(i+r)/2),Math.round(t-(o+a)/2)),this.setCenterPoint(i,r,o,a)},setCenterPoint:function(t,e,n,i){var r=this,o=n+r.drawingArea,a=r.height-i-r.drawingArea;r.xCenter=Math.round((t+r.drawingArea+(r.width-e-r.drawingArea))/2+r.left),r.yCenter=Math.round((o+a)/2+r.top)},getIndexAngle:function(t){return t*(2*Math.PI/a(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(n)*e)+this.xCenter,y:Math.round(Math.sin(n)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,n=t.options,i=n.gridLines,o=n.ticks,l=r.valueOrDefault;if(n.display){var c=t.ctx,h=this.getIndexAngle(0),d=l(o.fontSize,e.defaultFontSize),f=l(o.fontStyle,e.defaultFontStyle),p=l(o.fontFamily,e.defaultFontFamily),g=r.fontString(d,f,p);r.each(t.ticks,function(n,s){if(s>0||o.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]);if(i.display&&0!==s&&function(t,e,n,i){var o=t.ctx;if(o.strokeStyle=r.valueAtIndexOrDefault(e.color,i-1),o.lineWidth=r.valueAtIndexOrDefault(e.lineWidth,i-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,n,0,2*Math.PI),o.closePath(),o.stroke();else{var s=a(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,n);o.moveTo(l.x,l.y);for(var u=1;u<s;u++)l=t.getPointPosition(u,n),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}(t,i,u,s),o.display){var f=l(o.fontColor,e.defaultFontColor);if(c.font=g,c.save(),c.translate(t.xCenter,t.yCenter),c.rotate(h),o.showLabelBackdrop){var p=c.measureText(n).width;c.fillStyle=o.backdropColor,c.fillRect(-p/2-o.backdropPaddingX,-u-d/2-o.backdropPaddingY,p+2*o.backdropPaddingX,d+2*o.backdropPaddingY)}c.textAlign="center",c.textBaseline="middle",c.fillStyle=f,c.fillText(n,0,-u),c.restore()}}}),(n.angleLines.display||n.pointLabels.display)&&function(t){var n=t.ctx,i=t.options,o=i.angleLines,l=i.pointLabels;n.lineWidth=o.lineWidth,n.strokeStyle=o.color;var c,h,d,f,p=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),g=s(t);n.textBaseline="top";for(var m=a(t)-1;m>=0;m--){if(o.display){var v=t.getPointPosition(m,p);n.beginPath(),n.moveTo(t.xCenter,t.yCenter),n.lineTo(v.x,v.y),n.stroke(),n.closePath()}if(l.display){var y=t.getPointPosition(m,p+5),b=r.valueAtIndexOrDefault(l.fontColor,m,e.defaultFontColor);n.font=g.font,n.fillStyle=b;var x=t.getIndexAngle(m),w=r.toDegrees(x);n.textAlign=0===(f=w)||180===f?"center":f<180?"left":"right",h=t._pointLabelSizes[m],d=y,90===(c=w)||270===c?d.y-=h.h/2:(c>270||c<90)&&(d.y-=h.h),u(n,t.pointLabels[m]||"",y,g.size)}}}(t)}}});t.scaleService.registerScaleType("radialLinear",h,n)}},{25:25,34:34,45:45}],58:[function(t,e,n){"use strict";var i=t(6);i="function"==typeof i?i:window.moment;var r=t(25),o=t(45),a=Number.MIN_SAFE_INTEGER||-9007199254740991,s=Number.MAX_SAFE_INTEGER||9007199254740991,l={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},u=Object.keys(l);function c(t,e){return t-e}function h(t){var e,n,i,r={},o=[];for(e=0,n=t.length;e<n;++e)r[i=t[e]]||(r[i]=!0,o.push(i));return o}function d(t,e,n,i){var r=function(t,e,n){for(var i,r,o,a=0,s=t.length-1;a>=0&&a<=s;){if(r=t[(i=a+s>>1)-1]||null,o=t[i],!r)return{lo:null,hi:o};if(o[e]<n)a=i+1;else{if(!(r[e]>n))return{lo:r,hi:o};s=i-1}}return{lo:o,hi:null}}(t,e,n),o=r.lo?r.hi?r.lo:t[t.length-2]:t[0],a=r.lo?r.hi?r.hi:t[t.length-1]:t[1],s=a[e]-o[e];return o[i]+(a[i]-o[i])*(s?(n-o[e])/s:0)}function f(t,e){var n=e.parser,r=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof r?i(t,r):(t instanceof i||(t=i(t)),t.isValid()?t:"function"==typeof r?r(t):t)}function p(t,e){if(o.isNullOrUndef(t))return null;var n=e.options.time,i=f(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function g(t){for(var e=u.indexOf(t)+1,n=u.length;e<n;++e)if(l[u[e]].common)return u[e]}function m(t,e,n,r){var a,c=r.time,h=c.unit||function(t,e,n,i){var r,o,a,c=u.length;for(r=u.indexOf(t);r<c-1;++r)if(a=(o=l[u[r]]).steps?o.steps[o.steps.length-1]:s,o.common&&Math.ceil((n-e)/(a*o.size))<=i)return u[r];return u[c-1]}(c.minUnit,t,e,n),d=g(h),f=o.valueOrDefault(c.stepSize,c.unitStepSize),p="week"===h&&c.isoWeekday,m=r.ticks.major.enabled,v=l[h],y=i(t),b=i(e),x=[];for(f||(f=function(t,e,n,i){var r,o,a,s=e-t,u=l[n],c=u.size,h=u.steps;if(!h)return Math.ceil(s/(i*c));for(r=0,o=h.length;r<o&&(a=h[r],!(Math.ceil(s/(c*a))<=i));++r);return a}(t,e,h,n)),p&&(y=y.isoWeekday(p),b=b.isoWeekday(p)),y=y.startOf(p?"day":h),(b=b.startOf(p?"day":h))<e&&b.add(1,h),a=i(y),m&&d&&!p&&!c.round&&(a.startOf(d),a.add(~~((y-a)/(v.size*f))*f,h));a<b;a.add(f,h))x.push(+a);return x.push(+a),x}e.exports=function(t){var e=t.Scale.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),t.Scale.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),t.Scale.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),t.Scale.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var t,e,n,r,l,u,d=this,f=d.chart,g=d.options.time,m=g.unit||"day",v=s,y=a,b=[],x=[],w=[];for(t=0,n=f.data.labels.length;t<n;++t)w.push(p(f.data.labels[t],d));for(t=0,n=(f.data.datasets||[]).length;t<n;++t)if(f.isDatasetVisible(t))if(o.isObject((l=f.data.datasets[t].data)[0]))for(x[t]=[],e=0,r=l.length;e<r;++e)u=p(l[e],d),b.push(u),x[t][e]=u;else b.push.apply(b,w),x[t]=w.slice(0);else x[t]=[];w.length&&(w=h(w).sort(c),v=Math.min(v,w[0]),y=Math.max(y,w[w.length-1])),b.length&&(b=h(b).sort(c),v=Math.min(v,b[0]),y=Math.max(y,b[b.length-1])),v=p(g.min,d)||v,y=p(g.max,d)||y,v=v===s?+i().startOf(m):v,y=y===a?+i().endOf(m)+1:y,d.min=Math.min(v,y),d.max=Math.max(v+1,y),d._horizontal=d.isHorizontal(),d._table=[],d._timestamps={data:b,datasets:x,labels:w}},buildTicks:function(){var t,e,n,r,o,a,s,c,h,v,y,b=this,x=b.min,w=b.max,_=b.options,k=_.time,S=[],C=[];switch(_.ticks.source){case"data":S=b._timestamps.data;break;case"labels":S=b._timestamps.labels;break;case"auto":default:S=m(x,w,b.getLabelCapacity(x),_)}for("ticks"===_.bounds&&S.length&&(x=S[0],w=S[S.length-1]),x=p(k.min,b)||x,w=p(k.max,b)||w,t=0,e=S.length;t<e;++t)(n=S[t])>=x&&n<=w&&C.push(n);return b.min=x,b.max=w,b._unit=k.unit||function(t,e,n,r){var o,a,s=i.duration(i(b.max).diff(i(n)));for(o=u.length-1;o>=u.indexOf(e);o--)if(l[a=u[o]].common&&s.as(a)>=t.length)return a;return u[e?u.indexOf(e):0]}(C,k.minUnit,b.min),b._majorUnit=g(b._unit),b._table=function(t,e,n,i){if("linear"===_.distribution||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var r,o,a,s,l,u=[],c=[e];for(r=0,o=t.length;r<o;++r)(s=t[r])>e&&s<n&&c.push(s);for(c.push(n),r=0,o=c.length;r<o;++r)l=c[r+1],s=c[r],void 0!==(a=c[r-1])&&void 0!==l&&Math.round((l+a)/2)===s||u.push({time:s,pos:r/(o-1)});return u}(b._timestamps.data,x,w),b._offsets=(r=b._table,o=C,a=x,v=0,y=0,(s=_).offset&&o.length&&(s.time.min||(h=o[0],v=(d(r,"time",c=o.length>1?o[1]:w,"pos")-d(r,"time",h,"pos"))/2),s.time.max||(c=o[o.length-1],h=o.length>1?o[o.length-2]:a,y=(d(r,"time",c,"pos")-d(r,"time",h,"pos"))/2)),{left:v,right:y}),b._labelFormat=function(t,e){var n,i,r,o=t.length;for(n=0;n<o;n++){if(0!==(i=f(t[n],e)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===i.second()&&0===i.minute()&&0===i.hour()||(r=!0)}return r?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(b._timestamps.data,k),function(t,e){var n,r,o,a,s=[];for(n=0,r=t.length;n<r;++n)o=t[n],a=!!e&&o===+i(o).startOf(e),s.push({value:o,major:a});return s}(C,b._majorUnit)},getLabelForIndex:function(t,e){var n=this.chart.data,i=this.options.time,r=n.labels&&t<n.labels.length?n.labels[t]:"",a=n.datasets[e].data[t];return o.isObject(a)&&(r=this.getRightValue(a)),i.tooltipFormat?f(r,i).format(i.tooltipFormat):"string"==typeof r?r:f(r,i).format(this._labelFormat)},tickFormatFunction:function(t,e,n,i){var r=this.options,a=t.valueOf(),s=r.time.displayFormats,l=s[this._unit],u=this._majorUnit,c=s[u],h=t.clone().startOf(u).valueOf(),d=r.ticks.major,f=d.enabled&&u&&c&&a===h,p=t.format(i||(f?c:l)),g=f?d:r.ticks.minor,m=o.valueOrDefault(g.callback,g.userCallback);return m?m(p,e,n):p},convertTicksToLabels:function(t){var e,n,r=[];for(e=0,n=t.length;e<n;++e)r.push(this.tickFormatFunction(i(t[e].value),e,t));return r},getPixelForOffset:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,r=d(e._table,"time",t,"pos");return i+n*(e._offsets.left+r)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,n){var i=null;if(void 0!==e&&void 0!==n&&(i=this._timestamps.datasets[n][e]),null===i&&(i=p(t,this)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,r=d(e._table,"pos",(n?(t-(e._horizontal?e.left:e.top))/n:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,"time");return i(r)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=o.toRadians(e.maxRotation),a=Math.cos(i),s=Math.sin(i);return n*a+o.valueOrDefault(e.fontSize,r.global.defaultFontSize)*s},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,n=this.tickFormatFunction(i(t),0,[],e),r=this.getLabelWidth(n),o=this.isHorizontal()?this.width:this.height,a=Math.floor(o/r);return a>0?a:1}});t.scaleService.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{25:25,45:45,6:6}]},{},[7])(7)}),function(t){t.color={},t.color.make=function(e,n,i,r){var o={};return o.r=e||0,o.g=n||0,o.b=i||0,o.a=null!=r?r:1,o.add=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]+=e;return o.normalize()},o.scale=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]*=e;return o.normalize()},o.toString=function(){return o.a>=1?"rgb("+[o.r,o.g,o.b].join(",")+")":"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"},o.normalize=function(){function t(t,e,n){return e<t?t:e>n?n:e}return o.r=t(0,parseInt(o.r),255),o.g=t(0,parseInt(o.g),255),o.b=t(0,parseInt(o.b),255),o.a=t(0,o.a,1),o},o.clone=function(){return t.color.make(o.r,o.b,o.g,o.a)},o.normalize()},t.color.extract=function(e,n){var i;do{if(""!=(i=e.css(n).toLowerCase())&&"transparent"!=i)break;e=e.parent()}while(!t.nodeName(e.get(0),"body"));return"rgba(0, 0, 0, 0)"==i&&(i="transparent"),t.color.parse(i)},t.color.parse=function(n){var i,r=t.color.make;if(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return r(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10));if(i=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return r(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10),parseFloat(i[4]));if(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return r(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]));if(i=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return r(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]),parseFloat(i[4]));if(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return r(parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16));if(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return r(parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16));var o=t.trim(n).toLowerCase();return"transparent"==o?r(255,255,255,0):r((i=e[o]||[0,0,0])[0],i[1],i[2])};var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(t){t.plot=function(e,n,i){return new function(e,n,i,r){var o,a,s,l=[],u={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,timezone:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,twelveHourClock:!1},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},c=null,h=null,d=null,f=null,p=null,g=[],m=[],v={left:0,right:0,top:0,bottom:0},y=0,b=0,x=0,w=0,_={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},k=this;function S(t,e){e=[k].concat(e);for(var n=0;n<t.length;++n)t[n].apply(this,e)}function C(e){l=function(e){for(var n=[],i=0;i<e.length;++i){var r=t.extend(!0,{},u.series);null!=e[i].data?(r.data=e[i].data,delete e[i].data,t.extend(!0,r,e[i]),e[i].data=r.data):r.data=e[i],n.push(r)}return n}(e),function(){var e,n=l.length,i=-1;for(e=0;e<l.length;++e){var r=l[e].color;null!=r&&(n--,"number"==typeof r&&r>i&&(i=r))}n<=i&&(n=i+1);var o,a=[],s=u.colors,c=s.length,h=0;for(e=0;e<n;e++)o=t.color.parse(s[e%c]||"#666"),e%c==0&&e&&(h=h>=0?h<.5?-h-.2:0:-h),a[e]=o.scale("rgb",1+h);var d,f=0;for(e=0;e<l.length;++e){if(null==(d=l[e]).color?(d.color=a[f].toString(),++f):"number"==typeof d.color&&(d.color=a[d.color].toString()),null==d.lines.show){var p,v=!0;for(p in d)if(d[p]&&d[p].show){v=!1;break}v&&(d.lines.show=!0)}null==d.lines.zero&&(d.lines.zero=!!d.lines.fill),d.xaxis=A(g,M(d,"x")),d.yaxis=A(m,M(d,"y"))}}(),function(){var e,n,i,r,o,a,s,u,c,h,d,f,p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,m=Number.MAX_VALUE;function v(t,e,n){e<t.datamin&&e!=-m&&(t.datamin=e),n>t.datamax&&n!=m&&(t.datamax=n)}for(t.each(T(),function(t,e){e.datamin=p,e.datamax=g,e.used=!1}),e=0;e<l.length;++e)(o=l[e]).datapoints={points:[]},S(_.processRawData,[o,o.data,o.datapoints]);for(e=0;e<l.length;++e)if(d=(o=l[e]).data,(f=o.datapoints.format)||((f=[]).push({x:!0,number:!0,required:!0}),f.push({y:!0,number:!0,required:!0}),(o.bars.show||o.lines.show&&o.lines.fill)&&(f.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:!!(o.bars.show&&o.bars.zero||o.lines.show&&o.lines.zero)}),o.bars.horizontal&&(delete f[f.length-1].y,f[f.length-1].x=!0)),o.datapoints.format=f),null==o.datapoints.pointsize){o.datapoints.pointsize=f.length,s=o.datapoints.pointsize,a=o.datapoints.points;var y=o.lines.show&&o.lines.steps;for(o.xaxis.used=o.yaxis.used=!0,n=i=0;n<d.length;++n,i+=s){var b=null==(h=d[n]);if(!b)for(r=0;r<s;++r)u=h[r],(c=f[r])&&(c.number&&null!=u&&(u=+u,isNaN(u)?u=null:u==1/0?u=m:u==-1/0&&(u=-m)),null==u&&(c.required&&(b=!0),null!=c.defaultValue&&(u=c.defaultValue))),a[i+r]=u;if(b)for(r=0;r<s;++r)null!=(u=a[i+r])&&((c=f[r]).x&&v(o.xaxis,u,u),c.y&&v(o.yaxis,u,u)),a[i+r]=null;else if(y&&i>0&&null!=a[i-s]&&a[i-s]!=a[i]&&a[i-s+1]!=a[i+1]){for(r=0;r<s;++r)a[i+s+r]=a[i+r];a[i+1]=a[i-s+1],i+=s}}}for(e=0;e<l.length;++e)S(_.processDatapoints,[o=l[e],o.datapoints]);for(e=0;e<l.length;++e){a=(o=l[e]).datapoints.points,s=o.datapoints.pointsize,f=o.datapoints.format;var x=p,w=p,k=g,C=g;for(n=0;n<a.length;n+=s)if(null!=a[n])for(r=0;r<s;++r)u=a[n+r],(c=f[r])&&!1!==c.autoscale&&u!=m&&u!=-m&&(c.x&&(u<x&&(x=u),u>k&&(k=u)),c.y&&(u<w&&(w=u),u>C&&(C=u)));if(o.bars.show){var M;switch(o.bars.align){case"left":M=0;break;case"right":M=-o.bars.barWidth;break;case"center":M=-o.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+o.bars.align)}o.bars.horizontal?(w+=M,C+=M+o.bars.barWidth):(x+=M,k+=M+o.bars.barWidth)}v(o.xaxis,x,k),v(o.yaxis,w,C)}t.each(T(),function(t,e){e.datamin==p&&(e.datamin=null),e.datamax==g&&(e.datamax=null)})}()}function M(t,e){var n=t[e+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function T(){return t.grep(g.concat(m),function(t){return t})}function D(t){var e,n,i={};for(e=0;e<g.length;++e)(n=g[e])&&n.used&&(i["x"+n.n]=n.c2p(t.left));for(e=0;e<m.length;++e)(n=m[e])&&n.used&&(i["y"+n.n]=n.c2p(t.top));return void 0!==i.x1&&(i.x=i.x1),void 0!==i.y1&&(i.y=i.y1),i}function A(e,n){return e[n-1]||(e[n-1]={n:n,direction:e==g?"x":"y",options:t.extend(!0,{},e==g?u.xaxis:u.yaxis)}),e[n-1]}function O(t){return(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}function E(n){var i=document.createElement("canvas");if(i.className=n,t(i).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(e),!i.getContext){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");i=window.G_vmlCanvasManager.initElement(i)}var r=i.getContext("2d"),o=O(r);return i.width=y*o,i.height=b*o,i.style.width=y+"px",i.style.height=b+"px",r.save(),r.scale(o,o),i}function I(){if(y=e.width(),b=e.height(),y<=0||b<=0)throw new Error("Invalid dimensions for plot, width = "+y+", height = "+b)}function P(t){var e=t.getContext("2d"),n=O(e);t.style.width!=y&&(t.width=y*n,t.style.width=y+"px"),t.style.height!=b&&(t.height=b*n,t.style.height=b+"px"),e.restore(),e.save(),e.scale(n,n)}function L(e){var n,i=e.labelWidth,r=e.labelHeight,o=e.options.position,a=e.options.tickLength,s=u.grid.axisMargin,l=u.grid.labelMargin,c="x"==e.direction?g:m,h=t.grep(c,function(t){return t&&t.options.position==o&&t.reserveSpace});if(t.inArray(e,h)==h.length-1&&(s=0),null==a){var d=t.grep(c,function(t){return t&&t.reserveSpace});a=(n=0==t.inArray(e,d))?"full":5}isNaN(+a)||(l+=+a),"x"==e.direction?(r+=l,"bottom"==o?(v.bottom+=r+s,e.box={top:b-v.bottom,height:r}):(e.box={top:v.top+s,height:r},v.top+=r+s)):(i+=l,"left"==o?(e.box={left:v.left+s,width:i},v.left+=i+s):(v.right+=i+s,e.box={left:y-v.right,width:i})),e.position=o,e.tickLength=a,e.box.padding=l,e.innermost=n}function R(){var n,i=T(),r=u.grid.show;for(var o in v){var a=u.grid.margin||0;v[o]="number"==typeof a?a:a[o]||0}for(var o in S(_.processOffset,[v]),v)v[o]+="object"==typeof u.grid.borderWidth?r?u.grid.borderWidth[o]:0:r?u.grid.borderWidth:0;if(t.each(i,function(t,e){e.show=e.options.show,null==e.show&&(e.show=e.used),e.reserveSpace=e.show||e.options.reserveSpace,function(t){var e=t.options,n=+(null!=e.min?e.min:t.datamin),i=+(null!=e.max?e.max:t.datamax),r=i-n;if(0==r){var o=0==i?1:.01;null==e.min&&(n-=o),null!=e.max&&null==e.min||(i+=o)}else{var a=e.autoscaleMargin;null!=a&&(null==e.min&&(n-=r*a)<0&&null!=t.datamin&&t.datamin>=0&&(n=0),null==e.max&&(i+=r*a)>0&&null!=t.datamax&&t.datamax<=0&&(i=0))}t.min=n,t.max=i}(e)}),r){var s={style:e.css("font-style"),size:Math.round(.8*(+e.css("font-size").replace("px","")||13)),variant:e.css("font-variant"),weight:e.css("font-weight"),family:e.css("font-family")},c=t.grep(i,function(t){return t.reserveSpace});for(t.each(c,function(e,n){!function(e){var n,i=e.options;if(n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==e.direction?y:b),e.delta=(e.max-e.min)/n,"time"==i.mode&&!e.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(e.tickGenerator||(e.tickGenerator=function(t){var e=i.tickDecimals,n=-Math.floor(Math.log(t.delta)/Math.LN10);null!=e&&n>e&&(n=e);var r,o,a,s,l=Math.pow(10,-n),u=t.delta/l,c=[],h=0,d=Number.NaN;u<1.5?r=1:u<3?(r=2,u>2.25&&(null==e||n+1<=e)&&(r=2.5,++n)):r=u<7.5?5:10,r*=l,null!=i.minTickSize&&r<i.minTickSize&&(r=i.minTickSize),t.tickDecimals=Math.max(0,null!=e?e:n),t.tickSize=i.tickSize||r,o=(s=t.tickSize)*Math.floor(t.min/s);do{a=d,c.push(d=o+h*t.tickSize),++h}while(d<t.max&&d!=a);return c},e.tickFormatter=function(t,e){var n=e.tickDecimals?Math.pow(10,e.tickDecimals):1,i=""+Math.round(t*n)/n;if(null!=e.tickDecimals){var r=i.indexOf("."),o=-1==r?0:i.length-r-1;if(o<e.tickDecimals)return(o?i:i+".")+(""+n).substr(1,e.tickDecimals-o)}return i}),t.isFunction(i.tickFormatter)&&(e.tickFormatter=function(t,e){return""+i.tickFormatter(t,e)}),null!=i.alignTicksWithAxis){var r=("x"==e.direction?g:m)[i.alignTicksWithAxis-1];if(r&&r.used&&r!=e){var o=e.tickGenerator(e);if(o.length>0&&(null==i.min&&(e.min=Math.min(e.min,o[0])),null==i.max&&o.length>1&&(e.max=Math.max(e.max,o[o.length-1]))),e.tickGenerator=function(t){var e,n=[];for(e=0;e<r.ticks.length;++e)n.push(t.min+(r.ticks[e].v-r.min)/(r.max-r.min)*(t.max-t.min));return n},!e.mode&&null==i.tickDecimals){var a=Math.max(0,1-Math.floor(Math.log(e.delta)/Math.LN10)),s=e.tickGenerator(e);s.length>1&&/\..*0$/.test((s[1]-s[0]).toFixed(a))||(e.tickDecimals=a)}}}}(n),function(e){var n,i,r=e.options.ticks,o=[];for(null==r||"number"==typeof r&&r>0?o=e.tickGenerator(e):r&&(o=t.isFunction(r)?r(e):r),e.ticks=[],n=0;n<o.length;++n){var a=null,s=o[n];"object"==typeof s?(i=+s[0],s.length>1&&(a=s[1])):i=+s,null==a&&(a=e.tickFormatter(i,e)),isNaN(i)||e.ticks.push({v:i,label:a})}}(n),function(t,e){t.options.autoscaleMargin&&e.length>0&&(null==t.options.min&&(t.min=Math.min(t.min,e[0].v)),null==t.options.max&&e.length>1&&(t.max=Math.max(t.max,e[e.length-1].v)))}(n,n.ticks),n.font=t.extend({},s,n.options.font),function(t){var e=t.options,n=t.ticks||[],i=e.labelWidth||0,r=e.labelHeight||0,o=t.font;f.save(),f.font=o.style+" "+o.variant+" "+o.weight+" "+o.size+"px '"+o.family+"'";for(var a=0;a<n.length;++a){var s=n[a];if(s.lines=[],s.width=s.height=0,s.label){for(var l=(s.label+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n"),u=0;u<l.length;++u){var c={text:l[u]},h=f.measureText(c.text);c.width=h.width,c.height=null!=h.height?h.height:o.size,c.height+=Math.round(.15*o.size),s.width=Math.max(c.width,s.width),s.height+=c.height,s.lines.push(c)}null==e.labelWidth&&(i=Math.max(i,s.width)),null==e.labelHeight&&(r=Math.max(r,s.height))}}f.restore(),t.labelWidth=Math.ceil(i),t.labelHeight=Math.ceil(r)}(n)}),n=c.length-1;n>=0;--n)L(c[n]);!function(){var e,n=u.grid.minBorderMargin,i={x:0,y:0};if(null==n)for(n=0,e=0;e<l.length;++e)n=Math.max(n,2*(l[e].points.radius+l[e].points.lineWidth/2));i.x=i.y=Math.ceil(n),t.each(T(),function(t,e){var n=e.direction;e.reserveSpace&&(i[n]=Math.ceil(Math.max(i[n],("x"==n?e.labelWidth:e.labelHeight)/2)))}),v.left=Math.max(i.x,v.left),v.right=Math.max(i.x,v.right),v.top=Math.max(i.y,v.top),v.bottom=Math.max(i.y,v.bottom)}(),t.each(c,function(t,e){!function(t){"x"==t.direction?(t.box.left=v.left-t.labelWidth/2,t.box.width=y-v.left-v.right+t.labelWidth):(t.box.top=v.top-t.labelHeight/2,t.box.height=b-v.bottom-v.top+t.labelHeight)}(e)})}x=y-v.left-v.right,w=b-v.bottom-v.top,t.each(i,function(t,e){!function(t){function e(t){return t}var n,i,r=t.options.transform||e,o=t.options.inverseTransform;"x"==t.direction?(n=t.scale=x/Math.abs(r(t.max)-r(t.min)),i=Math.min(r(t.max),r(t.min))):(n=-(n=t.scale=w/Math.abs(r(t.max)-r(t.min))),i=Math.max(r(t.max),r(t.min))),t.p2c=r==e?function(t){return(t-i)*n}:function(t){return(r(t)-i)*n},t.c2p=o?function(t){return o(i+t/n)}:function(t){return i+t/n}}(e)}),function(){if(e.find(".legend").remove(),u.legend.show){for(var n,i,r=[],o=[],a=!1,s=u.legend.labelFormatter,c=0;c<l.length;++c)(n=l[c]).label&&(i=s?s(n.label,n):n.label)&&o.push({label:i,color:n.color});if(u.legend.sorted)if(t.isFunction(u.legend.sorted))o.sort(u.legend.sorted);else if("reverse"==u.legend.sorted)o.reverse();else{var h="descending"!=u.legend.sorted;o.sort(function(t,e){return t.label==e.label?0:t.label<e.label!=h?1:-1})}for(c=0;c<o.length;++c){var d=o[c];c%u.legend.noColumns==0&&(a&&r.push("</tr>"),r.push("<tr>"),a=!0),r.push('<td class="legendColorBox"><div style="border:1px solid '+u.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+d.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+d.label+"</td>")}if(a&&r.push("</tr>"),0!=r.length){var f='<table style="font-size:smaller;color:'+u.grid.color+'">'+r.join("")+"</table>";if(null!=u.legend.container)t(u.legend.container).html(f);else{var p="",g=u.legend.position,m=u.legend.margin;null==m[0]&&(m=[m,m]),"n"==g.charAt(0)?p+="top:"+(m[1]+v.top)+"px;":"s"==g.charAt(0)&&(p+="bottom:"+(m[1]+v.bottom)+"px;"),"e"==g.charAt(1)?p+="right:"+(m[0]+v.right)+"px;":"w"==g.charAt(1)&&(p+="left:"+(m[0]+v.left)+"px;");var y=t('<div class="legend">'+f.replace('style="','style="position:absolute;'+p+";")+"</div>").appendTo(e);if(0!=u.legend.backgroundOpacity){var b=u.legend.backgroundColor;null==b&&((b=(b=u.grid.backgroundColor)&&"string"==typeof b?t.color.parse(b):t.color.extract(y,"background-color")).a=1,b=b.toString());var x=y.children();t('<div style="position:absolute;width:'+x.width()+"px;height:"+x.height()+"px;"+p+"background-color:"+b+';"> </div>').prependTo(y).css("opacity",u.legend.backgroundOpacity)}}}}}()}function j(){f.clearRect(0,0,y,b),S(_.drawBackground,[f]);var t=u.grid;t.show&&t.backgroundColor&&(f.save(),f.translate(v.left,v.top),f.fillStyle=nt(u.grid.backgroundColor,w,0,"rgba(255, 255, 255, 0)"),f.fillRect(0,0,x,w),f.restore()),t.show&&!t.aboveData&&(N(),W());for(var e=0;e<l.length;++e)S(_.drawSeries,[f,l[e]]),B(l[e]);S(_.draw,[f]),t.show&&t.aboveData&&(N(),W())}function F(t,e){for(var n,i,r,o,a=T(),s=0;s<a.length;++s)if((n=a[s]).direction==e&&(t[o=e+n.n+"axis"]||1!=n.n||(o=e+"axis"),t[o])){i=t[o].from,r=t[o].to;break}if(t[o]||(n="x"==e?g[0]:m[0],i=t[e+"1"],r=t[e+"2"]),null!=i&&null!=r&&i>r){var l=i;i=r,r=l}return{from:i,to:r,axis:n}}function N(){var e,n,i,r;f.save(),f.translate(v.left,v.top);var o=u.grid.markings;if(o)for(t.isFunction(o)&&((n=k.getAxes()).xmin=n.xaxis.min,n.xmax=n.xaxis.max,n.ymin=n.yaxis.min,n.ymax=n.yaxis.max,o=o(n)),e=0;e<o.length;++e){var a=o[e],s=F(a,"x"),l=F(a,"y");null==s.from&&(s.from=s.axis.min),null==s.to&&(s.to=s.axis.max),null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),s.to<s.axis.min||s.from>s.axis.max||l.to<l.axis.min||l.from>l.axis.max||(s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max),s.from==s.to&&l.from==l.to||(s.from=s.axis.p2c(s.from),s.to=s.axis.p2c(s.to),l.from=l.axis.p2c(l.from),l.to=l.axis.p2c(l.to),s.from==s.to||l.from==l.to?(f.beginPath(),f.strokeStyle=a.color||u.grid.markingsColor,f.lineWidth=a.lineWidth||u.grid.markingsLineWidth,f.moveTo(s.from,l.from),f.lineTo(s.to,l.to),f.stroke()):(f.fillStyle=a.color||u.grid.markingsColor,f.fillRect(s.from,l.to,s.to-s.from,l.from-l.to))))}n=T(),i=u.grid.borderWidth;for(var c=0;c<n.length;++c){var h,d,p,g,m=n[c],y=m.box,b=m.tickLength;if(m.show&&0!=m.ticks.length){for(f.strokeStyle=m.options.tickColor||t.color.parse(m.options.color).scale("a",.22).toString(),f.lineWidth=1,"x"==m.direction?(h=0,d="full"==b?"top"==m.position?0:w:y.top-v.top+("top"==m.position?y.height:0)):(d=0,h="full"==b?"left"==m.position?0:x:y.left-v.left+("left"==m.position?y.width:0)),m.innermost||(f.beginPath(),p=g=0,"x"==m.direction?p=x:g=w,1==f.lineWidth&&(h=Math.floor(h)+.5,d=Math.floor(d)+.5),f.moveTo(h,d),f.lineTo(h+p,d+g),f.stroke()),f.beginPath(),e=0;e<m.ticks.length;++e){var _=m.ticks[e].v;p=g=0,isNaN(_)||_<m.min||_>m.max||"full"==b&&("object"==typeof i&&i[m.position]>0||i>0)&&(_==m.min||_==m.max)||("x"==m.direction?(h=m.p2c(_),g="full"==b?-w:b,"top"==m.position&&(g=-g)):(d=m.p2c(_),p="full"==b?-x:b,"left"==m.position&&(p=-p)),1==f.lineWidth&&("x"==m.direction?h=Math.floor(h)+.5:d=Math.floor(d)+.5),f.moveTo(h,d),f.lineTo(h+p,d+g))}f.stroke()}}i&&(r=u.grid.borderColor,"object"==typeof i||"object"==typeof r?("object"!=typeof i&&(i={top:i,right:i,bottom:i,left:i}),"object"!=typeof r&&(r={top:r,right:r,bottom:r,left:r}),i.top>0&&(f.strokeStyle=r.top,f.lineWidth=i.top,f.beginPath(),f.moveTo(0-i.left,0-i.top/2),f.lineTo(x,0-i.top/2),f.stroke()),i.right>0&&(f.strokeStyle=r.right,f.lineWidth=i.right,f.beginPath(),f.moveTo(x+i.right/2,0-i.top),f.lineTo(x+i.right/2,w),f.stroke()),i.bottom>0&&(f.strokeStyle=r.bottom,f.lineWidth=i.bottom,f.beginPath(),f.moveTo(x+i.right,w+i.bottom/2),f.lineTo(0,w+i.bottom/2),f.stroke()),i.left>0&&(f.strokeStyle=r.left,f.lineWidth=i.left,f.beginPath(),f.moveTo(0-i.left/2,w+i.bottom),f.lineTo(0-i.left/2,0),f.stroke())):(f.lineWidth=i,f.strokeStyle=u.grid.borderColor,f.strokeRect(-i/2,-i/2,x+i,w+i))),f.restore()}function W(){f.save(),t.each(T(),function(t,e){if(e.show&&0!=e.ticks.length){var n=e.box,i=e.font;f.fillStyle=e.options.color,f.font=i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family,f.textAlign="start",f.textBaseline="middle";for(var r=0;r<e.ticks.length;++r){var o=e.ticks[r];if(!(!o.label||o.v<e.min||o.v>e.max))for(var a,s,l,u=0,c=0;c<o.lines.length;++c)l=o.lines[c],"x"==e.direction?(a=v.left+e.p2c(o.v)-l.width/2,s="bottom"==e.position?n.top+n.padding:n.top+n.height-n.padding-o.height):(s=v.top+e.p2c(o.v)-o.height/2,a="left"==e.position?n.left+n.width-n.padding-l.width:n.left+n.padding),s+=l.height/2+u,u+=l.height,window.opera&&window.opera.version().split(".")[0]<12&&(a=Math.floor(a),s=Math.ceil(s-2)),f.fillText(l.text,a,s)}}}),f.restore()}function B(t){t.lines.show&&function(t){function e(t,e,n,i,r){var o=t.points,a=t.pointsize,s=null,l=null;f.beginPath();for(var u=a;u<o.length;u+=a){var c=o[u-a],h=o[u-a+1],d=o[u],p=o[u+1];if(null!=c&&null!=d){if(h<=p&&h<r.min){if(p<r.min)continue;c=(r.min-h)/(p-h)*(d-c)+c,h=r.min}else if(p<=h&&p<r.min){if(h<r.min)continue;d=(r.min-h)/(p-h)*(d-c)+c,p=r.min}if(h>=p&&h>r.max){if(p>r.max)continue;c=(r.max-h)/(p-h)*(d-c)+c,h=r.max}else if(p>=h&&p>r.max){if(h>r.max)continue;d=(r.max-h)/(p-h)*(d-c)+c,p=r.max}if(c<=d&&c<i.min){if(d<i.min)continue;h=(i.min-c)/(d-c)*(p-h)+h,c=i.min}else if(d<=c&&d<i.min){if(c<i.min)continue;p=(i.min-c)/(d-c)*(p-h)+h,d=i.min}if(c>=d&&c>i.max){if(d>i.max)continue;h=(i.max-c)/(d-c)*(p-h)+h,c=i.max}else if(d>=c&&d>i.max){if(c>i.max)continue;p=(i.max-c)/(d-c)*(p-h)+h,d=i.max}c==s&&h==l||f.moveTo(i.p2c(c)+e,r.p2c(h)+n),s=d,l=p,f.lineTo(i.p2c(d)+e,r.p2c(p)+n)}}f.stroke()}f.save(),f.translate(v.left,v.top),f.lineJoin="round";var n=t.lines.lineWidth,i=t.shadowSize;if(n>0&&i>0){f.lineWidth=i,f.strokeStyle="rgba(0,0,0,0.1)";var r=Math.PI/18;e(t.datapoints,Math.sin(r)*(n/2+i/2),Math.cos(r)*(n/2+i/2),t.xaxis,t.yaxis),f.lineWidth=i/2,e(t.datapoints,Math.sin(r)*(n/2+i/4),Math.cos(r)*(n/2+i/4),t.xaxis,t.yaxis)}f.lineWidth=n,f.strokeStyle=t.color;var o=z(t.lines,t.color,0,w);o&&(f.fillStyle=o,function(t,e,n){for(var i=t.points,r=t.pointsize,o=Math.min(Math.max(0,n.min),n.max),a=0,s=!1,l=1,u=0,c=0;!(r>0&&a>i.length+r);){var h=i[(a+=r)-r],d=i[a-r+l],p=i[a],g=i[a+l];if(s){if(r>0&&null!=h&&null==p){c=a,r=-r,l=2;continue}if(r<0&&a==u+r){f.fill(),s=!1,l=1,a=u=c+(r=-r);continue}}if(null!=h&&null!=p){if(h<=p&&h<e.min){if(p<e.min)continue;d=(e.min-h)/(p-h)*(g-d)+d,h=e.min}else if(p<=h&&p<e.min){if(h<e.min)continue;g=(e.min-h)/(p-h)*(g-d)+d,p=e.min}if(h>=p&&h>e.max){if(p>e.max)continue;d=(e.max-h)/(p-h)*(g-d)+d,h=e.max}else if(p>=h&&p>e.max){if(h>e.max)continue;g=(e.max-h)/(p-h)*(g-d)+d,p=e.max}if(s||(f.beginPath(),f.moveTo(e.p2c(h),n.p2c(o)),s=!0),d>=n.max&&g>=n.max)f.lineTo(e.p2c(h),n.p2c(n.max)),f.lineTo(e.p2c(p),n.p2c(n.max));else if(d<=n.min&&g<=n.min)f.lineTo(e.p2c(h),n.p2c(n.min)),f.lineTo(e.p2c(p),n.p2c(n.min));else{var m=h,v=p;d<=g&&d<n.min&&g>=n.min?(h=(n.min-d)/(g-d)*(p-h)+h,d=n.min):g<=d&&g<n.min&&d>=n.min&&(p=(n.min-d)/(g-d)*(p-h)+h,g=n.min),d>=g&&d>n.max&&g<=n.max?(h=(n.max-d)/(g-d)*(p-h)+h,d=n.max):g>=d&&g>n.max&&d<=n.max&&(p=(n.max-d)/(g-d)*(p-h)+h,g=n.max),h!=m&&f.lineTo(e.p2c(m),n.p2c(d)),f.lineTo(e.p2c(h),n.p2c(d)),f.lineTo(e.p2c(p),n.p2c(g)),p!=v&&(f.lineTo(e.p2c(p),n.p2c(g)),f.lineTo(e.p2c(v),n.p2c(g)))}}}}(t.datapoints,t.xaxis,t.yaxis)),n>0&&e(t.datapoints,0,0,t.xaxis,t.yaxis),f.restore()}(t),t.bars.show&&function(t){var e;switch(f.save(),f.translate(v.left,v.top),f.lineWidth=t.bars.lineWidth,f.strokeStyle=t.color,t.bars.align){case"left":e=0;break;case"right":e=-t.bars.barWidth;break;case"center":e=-t.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+t.bars.align)}(function(e,n,i,r,o,a,s){for(var l=e.points,u=e.pointsize,c=0;c<l.length;c+=u)null!=l[c]&&H(l[c],l[c+1],l[c+2],n,i,0,o,a,s,f,t.bars.horizontal,t.bars.lineWidth)})(t.datapoints,e,e+t.bars.barWidth,0,t.bars.fill?function(e,n){return z(t.bars,t.color,e,n)}:null,t.xaxis,t.yaxis),f.restore()}(t),t.points.show&&function(t){function e(t,e,n,i,r,o,a,s){for(var l=t.points,u=t.pointsize,c=0;c<l.length;c+=u){var h=l[c],d=l[c+1];null==h||h<o.min||h>o.max||d<a.min||d>a.max||(f.beginPath(),h=o.p2c(h),d=a.p2c(d)+i,"circle"==s?f.arc(h,d,e,0,r?Math.PI:2*Math.PI,!1):s(f,h,d,e,r),f.closePath(),n&&(f.fillStyle=n,f.fill()),f.stroke())}}f.save(),f.translate(v.left,v.top);var n=t.points.lineWidth,i=t.shadowSize,r=t.points.radius,o=t.points.symbol;if(0==n&&(n=1e-4),n>0&&i>0){var a=i/2;f.lineWidth=a,f.strokeStyle="rgba(0,0,0,0.1)",e(t.datapoints,r,null,a+a/2,!0,t.xaxis,t.yaxis,o),f.strokeStyle="rgba(0,0,0,0.2)",e(t.datapoints,r,null,a/2,!0,t.xaxis,t.yaxis,o)}f.lineWidth=n,f.strokeStyle=t.color,e(t.datapoints,r,z(t.points,t.color),0,!1,t.xaxis,t.yaxis,o),f.restore()}(t)}function H(t,e,n,i,r,o,a,s,l,u,c,h){var d,f,p,g,m,v,y,b,x;c?(b=v=y=!0,m=!1,g=e+i,p=e+r,(f=t)<(d=n)&&(x=f,f=d,d=x,m=!0,v=!1)):(m=v=y=!0,b=!1,d=t+i,f=t+r,(g=e)<(p=n)&&(x=g,g=p,p=x,b=!0,y=!1)),f<s.min||d>s.max||g<l.min||p>l.max||(d<s.min&&(d=s.min,m=!1),f>s.max&&(f=s.max,v=!1),p<l.min&&(p=l.min,b=!1),g>l.max&&(g=l.max,y=!1),d=s.p2c(d),p=l.p2c(p),f=s.p2c(f),g=l.p2c(g),a&&(u.beginPath(),u.moveTo(d,p),u.lineTo(d,g),u.lineTo(f,g),u.lineTo(f,p),u.fillStyle=a(p,g),u.fill()),h>0&&(m||v||y||b)&&(u.beginPath(),u.moveTo(d,p+o),m?u.lineTo(d,g+o):u.moveTo(d,g+o),y?u.lineTo(f,g+o):u.moveTo(f,g+o),v?u.lineTo(f,p+o):u.moveTo(f,p+o),b?u.lineTo(d,p+o):u.moveTo(d,p+o),u.stroke()))}function z(e,n,i,r){var o=e.fill;if(!o)return null;if(e.fillColor)return nt(e.fillColor,i,r,n);var a=t.color.parse(n);return a.a="number"==typeof o?o:.4,a.normalize(),a.toString()}k.setData=C,k.setupGrid=R,k.draw=j,k.getPlaceholder=function(){return e},k.getCanvas=function(){return c},k.getPlotOffset=function(){return v},k.width=function(){return x},k.height=function(){return w},k.offset=function(){var t=d.offset();return t.left+=v.left,t.top+=v.top,t},k.getData=function(){return l},k.getAxes=function(){var e={};return t.each(g.concat(m),function(t,n){n&&(e[n.direction+(1!=n.n?n.n:"")+"axis"]=n)}),e},k.getXAxes=function(){return g},k.getYAxes=function(){return m},k.c2p=D,k.p2c=function(t){var e,n,i,r={};for(e=0;e<g.length;++e)if((n=g[e])&&n.used&&(null==t[i="x"+n.n]&&1==n.n&&(i="x"),null!=t[i])){r.left=n.p2c(t[i]);break}for(e=0;e<m.length;++e)if((n=m[e])&&n.used&&(null==t[i="y"+n.n]&&1==n.n&&(i="y"),null!=t[i])){r.top=n.p2c(t[i]);break}return r},k.getOptions=function(){return u},k.highlight=Z,k.unhighlight=J,k.triggerRedrawOverlay=X,k.pointOffset=function(t){return{left:parseInt(g[M(t,"x")-1].p2c(+t.x)+v.left,10),top:parseInt(m[M(t,"y")-1].p2c(+t.y)+v.top,10)}},k.shutdown=function(){U&&clearTimeout(U),d.unbind("mousemove",q),d.unbind("mouseleave",$),d.unbind("click",V),S(_.shutdown,[d])},k.resize=function(){I(),P(c),P(h)},k.hooks=_,function(){for(var e=0;e<r.length;++e){var n=r[e];n.init(k),n.options&&t.extend(!0,u,n.options)}}(),function(e){var n;for(t.extend(!0,u,i),null==u.xaxis.color&&(u.xaxis.color=u.grid.color),null==u.yaxis.color&&(u.yaxis.color=u.grid.color),null==u.xaxis.tickColor&&(u.xaxis.tickColor=u.grid.tickColor),null==u.yaxis.tickColor&&(u.yaxis.tickColor=u.grid.tickColor),null==u.grid.borderColor&&(u.grid.borderColor=u.grid.color),null==u.grid.tickColor&&(u.grid.tickColor=t.color.parse(u.grid.color).scale("a",.22).toString()),n=0;n<Math.max(1,u.xaxes.length);++n)u.xaxes[n]=t.extend(!0,{},u.xaxis,u.xaxes[n]);for(n=0;n<Math.max(1,u.yaxes.length);++n)u.yaxes[n]=t.extend(!0,{},u.yaxis,u.yaxes[n]);for(u.xaxis.noTicks&&null==u.xaxis.ticks&&(u.xaxis.ticks=u.xaxis.noTicks),u.yaxis.noTicks&&null==u.yaxis.ticks&&(u.yaxis.ticks=u.yaxis.noTicks),u.x2axis&&(u.xaxes[1]=t.extend(!0,{},u.xaxis,u.x2axis),u.xaxes[1].position="top"),u.y2axis&&(u.yaxes[1]=t.extend(!0,{},u.yaxis,u.y2axis),u.yaxes[1].position="right"),u.grid.coloredAreas&&(u.grid.markings=u.grid.coloredAreas),u.grid.coloredAreasColor&&(u.grid.markingsColor=u.grid.coloredAreasColor),u.lines&&t.extend(!0,u.series.lines,u.lines),u.points&&t.extend(!0,u.series.points,u.points),u.bars&&t.extend(!0,u.series.bars,u.bars),null!=u.shadowSize&&(u.series.shadowSize=u.shadowSize),null!=u.highlightColor&&(u.series.highlightColor=u.highlightColor),n=0;n<u.xaxes.length;++n)A(g,n+1).options=u.xaxes[n];for(n=0;n<u.yaxes.length;++n)A(m,n+1).options=u.yaxes[n];for(var r in _)u.hooks[r]&&u.hooks[r].length&&(_[r]=_[r].concat(u.hooks[r]));S(_.processOptions,[u])}(),a=e.children("canvas.flot-base"),s=e.children("canvas.flot-overlay"),0==a.length||0==s?(e.html(""),e.css({padding:0}),"static"==e.css("position")&&e.css("position","relative"),I(),c=E("flot-base"),h=E("flot-overlay"),o=!1):(c=a.get(0),h=s.get(0),o=!0),f=c.getContext("2d"),p=h.getContext("2d"),d=t(h),o&&(e.data("plot").shutdown(),k.resize(),p.clearRect(0,0,y,b),d.unbind(),e.children().not([c,h]).remove()),e.data("plot",k),C(n),R(),j(),u.grid.hoverable&&(d.mousemove(q),d.bind("mouseleave",$)),u.grid.clickable&&d.click(V),S(_.bindEvents,[d]);var Y=[],U=null;function q(t){u.grid.hoverable&&G("plothover",t,function(t){return 0!=t.hoverable})}function $(t){u.grid.hoverable&&G("plothover",t,function(t){return!1})}function V(t){G("plotclick",t,function(t){return 0!=t.clickable})}function G(t,n,i){var r=d.offset(),o=n.pageX-r.left-v.left,a=n.pageY-r.top-v.top,s=D({left:o,top:a});s.pageX=n.pageX,s.pageY=n.pageY;var c=function(t,e,n){var i,r,o,a=u.grid.mouseActiveRadius,s=a*a+1,c=null;for(i=l.length-1;i>=0;--i)if(n(l[i])){var h=l[i],d=h.xaxis,f=h.yaxis,p=h.datapoints.points,g=d.c2p(t),m=f.c2p(e),v=a/d.scale,y=a/f.scale;if(o=h.datapoints.pointsize,d.options.inverseTransform&&(v=Number.MAX_VALUE),f.options.inverseTransform&&(y=Number.MAX_VALUE),h.lines.show||h.points.show)for(r=0;r<p.length;r+=o){var b=p[r+1];if(null!=(C=p[r])&&!(C-g>v||C-g<-v||b-m>y||b-m<-y)){var x=Math.abs(d.p2c(C)-t),w=Math.abs(f.p2c(b)-e),_=x*x+w*w;_<s&&(s=_,c=[i,r/o])}}if(h.bars.show&&!c){var k="left"==h.bars.align?0:-h.bars.barWidth/2,S=k+h.bars.barWidth;for(r=0;r<p.length;r+=o){b=p[r+1];var C,M=p[r+2];null!=(C=p[r])&&(l[i].bars.horizontal?g<=Math.max(M,C)&&g>=Math.min(M,C)&&m>=b+k&&m<=b+S:g>=C+k&&g<=C+S&&m>=Math.min(M,b)&&m<=Math.max(M,b))&&(c=[i,r/o])}}}return c?{datapoint:l[i=c[0]].datapoints.points.slice((r=c[1])*(o=l[i].datapoints.pointsize),(r+1)*o),dataIndex:r,series:l[i],seriesIndex:i}:null}(o,a,i);if(c&&(c.pageX=parseInt(c.series.xaxis.p2c(c.datapoint[0])+r.left+v.left,10),c.pageY=parseInt(c.series.yaxis.p2c(c.datapoint[1])+r.top+v.top,10)),u.grid.autoHighlight){for(var h=0;h<Y.length;++h){var f=Y[h];f.auto!=t||c&&f.series==c.series&&f.point[0]==c.datapoint[0]&&f.point[1]==c.datapoint[1]||J(f.series,f.point)}c&&Z(c.series,c.datapoint,t)}e.trigger(t,[s,c])}function X(){var t=u.interaction.redrawOverlayInterval;-1!=t?U||(U=setTimeout(Q,t)):Q()}function Q(){var t,e;for(U=null,p.save(),p.clearRect(0,0,y,b),p.translate(v.left,v.top),t=0;t<Y.length;++t)(e=Y[t]).series.bars.show?et(e.series,e.point):tt(e.series,e.point);p.restore(),S(_.drawOverlay,[p])}function Z(t,e,n){if("number"==typeof t&&(t=l[t]),"number"==typeof e){var i=t.datapoints.pointsize;e=t.datapoints.points.slice(i*e,i*(e+1))}var r=K(t,e);-1==r?(Y.push({series:t,point:e,auto:n}),X()):n||(Y[r].auto=!1)}function J(t,e){null==t&&null==e&&(Y=[],X()),"number"==typeof t&&(t=l[t]),"number"==typeof e&&(e=t.data[e]);var n=K(t,e);-1!=n&&(Y.splice(n,1),X())}function K(t,e){for(var n=0;n<Y.length;++n){var i=Y[n];if(i.series==t&&i.point[0]==e[0]&&i.point[1]==e[1])return n}return-1}function tt(e,n){var i=n[0],r=n[1],o=e.xaxis,a=e.yaxis,s="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString();if(!(i<o.min||i>o.max||r<a.min||r>a.max)){var l=e.points.radius+e.points.lineWidth/2;p.lineWidth=l,p.strokeStyle=s;var u=1.5*l;i=o.p2c(i),r=a.p2c(r),p.beginPath(),"circle"==e.points.symbol?p.arc(i,r,u,0,2*Math.PI,!1):e.points.symbol(p,i,r,u,!1),p.closePath(),p.stroke()}}function et(e,n){var i="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString(),r=i,o="left"==e.bars.align?0:-e.bars.barWidth/2;p.lineWidth=e.bars.lineWidth,p.strokeStyle=i,H(n[0],n[1],n[2]||0,o,o+e.bars.barWidth,0,function(){return r},e.xaxis,e.yaxis,p,e.bars.horizontal,e.bars.lineWidth)}function nt(e,n,i,r){if("string"==typeof e)return e;for(var o=f.createLinearGradient(0,i,0,n),a=0,s=e.colors.length;a<s;++a){var l=e.colors[a];if("string"!=typeof l){var u=t.color.parse(r);null!=l.brightness&&(u=u.scale("rgb",l.brightness)),null!=l.opacity&&(u.a*=l.opacity),l=u.toString()}o.addColorStop(a/(s-1),l)}return o}}(t(e),n,i,t.plot.plugins)},t.plot.version="0.8-alpha",t.plot.plugins=[],t.fn.plot=function(e,n){return this.each(function(){t.plot(this,e,n)})}}(jQuery),function(t,e,n){var i,r=t([]),o=t.resize=t.extend(t.resize,{}),a="setTimeout",s="resize",l=s+"-special-event",u="delay",c="throttleWindow";o[u]=250,o[c]=!0,t.event.special[s]={setup:function(){if(!o[c]&&this[a])return!1;var n=t(this);r=r.add(n),t.data(this,l,{w:n.width(),h:n.height()}),1===r.length&&function n(){i=e[a](function(){r.each(function(){var e=t(this),n=e.width(),i=e.height(),r=t.data(this,l);n===r.w&&i===r.h||e.trigger(s,[r.w=n,r.h=i])}),n()},o[u])}()},teardown:function(){if(!o[c]&&this[a])return!1;var e=t(this);r=r.not(e),e.removeData(l),r.length||clearTimeout(i)},add:function(e){if(!o[c]&&this[a])return!1;var i;function r(e,r,o){var a=t(this),s=t.data(this,l);s.w=r!==n?r:a.width(),s.h=o!==n?o:a.height(),i.apply(this,arguments)}if(t.isFunction(e))return i=e,r;i=e.handler,e.handler=r}}}(jQuery,this),jQuery.plot.plugins.push({init:function(t){function e(){var e=t.getPlaceholder();0!=e.width()&&0!=e.height()&&(t.resize(),t.setupGrid(),t.draw())}t.hooks.bindEvents.push(function(t,n){t.getPlaceholder().resize(e)}),t.hooks.shutdown.push(function(t,n){t.getPlaceholder().unbind("resize",e)})},options:{},name:"resize",version:"1.0"}),function(t){var e={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(t,e){return"<div style='font-size:x-small;text-align:center;padding:2px;color:"+e.color+";'>"+t+"<br/>"+Math.round(e.percent)+"%</div>"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};t.plot.plugins.push({init:function(n){var i=null,r=null,o=null,a=null,s=null,l=!1,u=null,c=[];function h(t){if(e.series.pie.innerRadius>0){t.save();var n=e.series.pie.innerRadius>1?e.series.pie.innerRadius:o*e.series.pie.innerRadius;t.globalCompositeOperation="destination-out",t.beginPath(),t.fillStyle=e.series.pie.stroke.color,t.arc(0,0,n,0,2*Math.PI,!1),t.fill(),t.closePath(),t.restore(),t.save(),t.beginPath(),t.strokeStyle=e.series.pie.stroke.color,t.arc(0,0,n,0,2*Math.PI,!1),t.stroke(),t.closePath(),t.restore()}}function d(t,e){for(var n=!1,i=-1,r=t.length,o=r-1;++i<r;o=i)(t[i][1]<=e[1]&&e[1]<t[o][1]||t[o][1]<=e[1]&&e[1]<t[i][1])&&e[0]<(t[o][0]-t[i][0])*(e[1]-t[i][1])/(t[o][1]-t[i][1])+t[i][0]&&(n=!n);return n}function f(t){g("plothover",t)}function p(t){g("plotclick",t)}function g(t,i){var l=n.offset(),h=function(t,e){for(var i,r,l=n.getData(),c=n.getOptions(),h=c.series.pie.radius>1?c.series.pie.radius:o*c.series.pie.radius,f=0;f<l.length;++f){var p=l[f];if(p.pie.show){if(u.save(),u.beginPath(),u.moveTo(0,0),u.arc(0,0,h,p.startAngle,p.startAngle+p.angle/2,!1),u.arc(0,0,h,p.startAngle+p.angle/2,p.startAngle+p.angle,!1),u.closePath(),i=t-a,r=e-s,u.isPointInPath){if(u.isPointInPath(t-a,e-s))return u.restore(),{datapoint:[p.percent,p.data],dataIndex:0,series:p,seriesIndex:f}}else if(d([[0,0],[h*Math.cos(p.startAngle),h*Math.sin(p.startAngle)],[h*Math.cos(p.startAngle+p.angle/4),h*Math.sin(p.startAngle+p.angle/4)],[h*Math.cos(p.startAngle+p.angle/2),h*Math.sin(p.startAngle+p.angle/2)],[h*Math.cos(p.startAngle+p.angle/1.5),h*Math.sin(p.startAngle+p.angle/1.5)],[h*Math.cos(p.startAngle+p.angle),h*Math.sin(p.startAngle+p.angle)]],[i,r]))return u.restore(),{datapoint:[p.percent,p.data],dataIndex:0,series:p,seriesIndex:f};u.restore()}}return null}(parseInt(i.pageX-l.left),parseInt(i.pageY-l.top));if(e.grid.autoHighlight)for(var f=0;f<c.length;++f){var p=c[f];p.auto!=t||h&&p.series==h.series||m(p.series)}h&&function(t,e){var i=v(t);-1==i?(c.push({series:t,auto:e}),n.triggerRedrawOverlay()):e||(c[i].auto=!1)}(h.series,t),r.trigger(t,[{pageX:i.pageX,pageY:i.pageY},h])}function m(t){null==t&&(c=[],n.triggerRedrawOverlay());var e=v(t);-1!=e&&(c.splice(e,1),n.triggerRedrawOverlay())}function v(t){for(var e=0;e<c.length;++e)if(c[e].series==t)return e;return-1}n.hooks.processOptions.push(function(t,e){e.series.pie.show&&(e.grid.show=!1,"auto"==e.series.pie.label.show&&(e.series.pie.label.show=!e.legend.show),"auto"==e.series.pie.radius&&(e.series.pie.radius=e.series.pie.label.show?.75:1),e.series.pie.tilt>1?e.series.pie.tilt=1:e.series.pie.tilt<0&&(e.series.pie.tilt=0))}),n.hooks.bindEvents.push(function(t,e){var n=t.getOptions();n.series.pie.show&&(n.grid.hoverable&&e.unbind("mousemove").mousemove(f),n.grid.clickable&&e.unbind("click").click(p))}),n.hooks.processDatapoints.push(function(n,o,a,s){n.getOptions().series.pie.show&&function(n,o,a){l||(l=!0,i=n.getCanvas(),r=t(i).parent(),e=n.getOptions(),n.setData(function(n){for(var i=0,r=0,o=0,a=e.series.pie.combine.color,s=[],l=0;l<n.length;++l)t.isArray(u=n[l].data)?u[1]=t.isNumeric(u[1])?+u[1]:0:u=t.isNumeric(u)?[1,+u]:[1,0],n[l].data=[u];for(l=0;l<n.length;++l)i+=n[l].data[0][1];for(l=0;l<n.length;++l)(u=n[l].data[0][1])/i<=e.series.pie.combine.threshold&&(r+=u,o++,a||(a=n[l].color));for(l=0;l<n.length;++l){var u=n[l].data[0][1];(o<2||u/i>e.series.pie.combine.threshold)&&s.push({data:[[1,u]],color:n[l].color,label:n[l].label,angle:u*Math.PI*2/i,percent:u/(i/100)})}return o>1&&s.push({data:[[1,r]],color:a,label:e.series.pie.combine.label,angle:r*Math.PI*2/i,percent:r/(i/100)}),s}(n.getData())))}(n)}),n.hooks.drawOverlay.push(function(t,e){t.getOptions().series.pie.show&&function(t,e){var n,i=t.getOptions(),r=i.series.pie.radius>1?i.series.pie.radius:o*i.series.pie.radius;e.save(),e.translate(a,s),e.scale(1,i.series.pie.tilt);for(var l=0;l<c.length;++l)(n=c[l].series).angle<=0||isNaN(n.angle)||(e.fillStyle="rgba(255, 255, 255, "+i.series.pie.highlight.opacity+")",e.beginPath(),Math.abs(n.angle-2*Math.PI)>1e-9&&e.moveTo(0,0),e.arc(0,0,r,n.startAngle,n.startAngle+n.angle/2,!1),e.arc(0,0,r,n.startAngle+n.angle/2,n.startAngle+n.angle,!1),e.closePath(),e.fill());h(e),e.restore()}(t,e)}),n.hooks.draw.push(function(n,i){n.getOptions().series.pie.show&&function(n,i){if(r){var c=n.getPlaceholder().width(),d=n.getPlaceholder().height(),f=r.children().filter(".legend").children().width()||0;u=i,l=!1,o=Math.min(c,d/e.series.pie.tilt)/2,s=d/2+e.series.pie.offset.top,a=c/2,"auto"==e.series.pie.offset.left?e.legend.position.match("w")?a+=f/2:a-=f/2:a+=e.series.pie.offset.left,a<o?a=o:a>c-o&&(a=c-o);var p=n.getData(),g=0;do{g>0&&(o*=.95),g+=1,m(),e.series.pie.tilt<=.8&&v()}while(!y()&&g<10);g>=10&&(m(),r.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),n.setSeries&&n.insertLegend&&(n.setSeries(p),n.insertLegend())}function m(){u.clearRect(0,0,c,d),r.children().filter(".pieLabel, .pieLabelBackground").remove()}function v(){var t=e.series.pie.shadow.left,n=e.series.pie.shadow.top,i=e.series.pie.shadow.alpha,r=e.series.pie.radius>1?e.series.pie.radius:o*e.series.pie.radius;if(!(r>=c/2-t||r*e.series.pie.tilt>=d/2-n||r<=10)){u.save(),u.translate(t,n),u.globalAlpha=i,u.fillStyle="#000",u.translate(a,s),u.scale(1,e.series.pie.tilt);for(var l=1;l<=10;l++)u.beginPath(),u.arc(0,0,r,0,2*Math.PI,!1),u.fill(),r-=l;u.restore()}}function y(){var n=Math.PI*e.series.pie.startAngle,i=e.series.pie.radius>1?e.series.pie.radius:o*e.series.pie.radius;u.save(),u.translate(a,s),u.scale(1,e.series.pie.tilt),u.save();for(var l=n,f=0;f<p.length;++f)p[f].startAngle=l,g(p[f].angle,p[f].color,!0);if(u.restore(),e.series.pie.stroke.width>0){for(u.save(),u.lineWidth=e.series.pie.stroke.width,l=n,f=0;f<p.length;++f)g(p[f].angle,e.series.pie.stroke.color,!1);u.restore()}return h(u),u.restore(),!e.series.pie.label.show||function(){for(var i=n,l=e.series.pie.label.radius>1?e.series.pie.label.radius:o*e.series.pie.label.radius,u=0;u<p.length;++u){if(p[u].percent>=100*e.series.pie.label.threshold&&!h(p[u],i,u))return!1;i+=p[u].angle}return!0;function h(n,i,o){if(0==n.data[0][1])return!0;var u,h=e.legend.labelFormatter,f=e.series.pie.label.formatter;u=h?h(n.label,n):n.label,f&&(u=f(u,n));var p=(i+n.angle+i)/2,g=a+Math.round(Math.cos(p)*l),m=s+Math.round(Math.sin(p)*l)*e.series.pie.tilt;r.append("<span class='pieLabel' id='pieLabel"+o+"' style='position:absolute;top:"+m+"px;left:"+g+"px;'>"+u+"</span>");var v=r.children("#pieLabel"+o),y=m-v.height()/2,b=g-v.width()/2;if(v.css("top",y),v.css("left",b),0-y>0||0-b>0||d-(y+v.height())<0||c-(b+v.width())<0)return!1;if(0!=e.series.pie.label.background.opacity){var x=e.series.pie.label.background.color;null==x&&(x=n.color);var w="top:"+y+"px;left:"+b+"px;";t("<div class='pieLabelBackground' style='position:absolute;width:"+v.width()+"px;height:"+v.height()+"px;"+w+"background-color:"+x+";'></div>").css("opacity",e.series.pie.label.background.opacity).insertBefore(v)}return!0}}();function g(t,e,n){t<=0||isNaN(t)||(n?u.fillStyle=e:(u.strokeStyle=e,u.lineJoin="round"),u.beginPath(),Math.abs(t-2*Math.PI)>1e-9&&u.moveTo(0,0),u.arc(0,0,i,l,l+t/2,!1),u.arc(0,0,i,l+t/2,l+t,!1),u.closePath(),l+=t,n?u.fill():u.stroke())}}}(n,i)})},options:e,name:"pie",version:"1.1"})}(jQuery),function(t){function e(t,e,n,i){var r="categories"==e.xaxis.options.mode,o="categories"==e.yaxis.options.mode;if(r||o){var a=i.format;if(!a){var s=e;(a=[]).push({x:!0,number:!0,required:!0}),a.push({y:!0,number:!0,required:!0}),(s.bars.show||s.lines.show&&s.lines.fill)&&(a.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:!!(s.bars.show&&s.bars.zero||s.lines.show&&s.lines.zero)}),s.bars.horizontal&&(delete a[a.length-1].y,a[a.length-1].x=!0)),i.format=a}for(var l=0;l<a.length;++l)a[l].x&&r&&(a[l].number=!1),a[l].y&&o&&(a[l].number=!1)}}function n(t){var e=[];for(var n in t.categories){var i=t.categories[n];i>=t.min&&i<=t.max&&e.push([i,n])}return e.sort(function(t,e){return t[0]-e[0]}),e}function i(e,i,r){if("categories"==e[i].options.mode){if(!e[i].categories){var o={},a=e[i].options.categories||{};if(t.isArray(a))for(var s=0;s<a.length;++s)o[a[s]]=s;else for(var l in a)o[l]=a[l];e[i].categories=o}e[i].options.ticks||(e[i].options.ticks=n),function(t,e,n){for(var i=t.points,r=t.pointsize,o=t.format,a=e.charAt(0),s=function(t){var e=-1;for(var n in t)t[n]>e&&(e=t[n]);return e+1}(n),l=0;l<i.length;l+=r)if(null!=i[l])for(var u=0;u<r;++u){var c=i[l+u];null!=c&&o[u][a]&&(c in n||(n[c]=s,++s),i[l+u]=n[c])}}(r,i,e[i].categories)}}function r(t,e,n){i(e,"xaxis",n),i(e,"yaxis",n)}t.plot.plugins.push({init:function(t){t.hooks.processRawData.push(e),t.hooks.processDatapoints.push(r)},options:{xaxis:{categories:null},yaxis:{categories:null}},name:"categories",version:"1.0"})}(jQuery),function(t){function e(t,e){return e*Math.floor(t/e)}function n(t,e,n,i){if("function"==typeof t.strftime)return t.strftime(e);var r,o=function(t,e){return t=""+t,e=""+(null==e?"0":e),1==t.length?e+t:t},a=[],s=!1,l=t.getHours(),u=l<12;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==i&&(i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),r=l>12?l-12:0==l?12:l;for(var c=0;c<e.length;++c){var h=e.charAt(c);if(s){switch(h){case"a":h=""+i[t.getDay()];break;case"b":h=""+n[t.getMonth()];break;case"d":h=o(t.getDate());break;case"e":h=o(t.getDate()," ");break;case"H":h=o(l);break;case"I":h=o(r);break;case"l":h=o(r," ");break;case"m":h=o(t.getMonth()+1);break;case"M":h=o(t.getMinutes());break;case"q":h=""+(Math.floor(t.getMonth()/3)+1);break;case"S":h=o(t.getSeconds());break;case"y":h=o(t.getFullYear()%100);break;case"Y":h=""+t.getFullYear();break;case"p":h=u?"am":"pm";break;case"P":h=u?"AM":"PM";break;case"w":h=""+t.getDay()}a.push(h),s=!1}else"%"==h?s=!0:a.push(h)}return a.join("")}function i(t){function e(t,e,n,i){t[e]=function(){return n[i].apply(n,arguments)}}var n={date:t};void 0!=t.strftime&&e(n,"strftime",t,"strftime"),e(n,"getTime",t,"getTime"),e(n,"setTime",t,"setTime");for(var i=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],r=0;r<i.length;r++)e(n,"get"+i[r],t,"getUTC"+i[r]),e(n,"set"+i[r],t,"setUTC"+i[r]);return n}function r(t,e){if("browser"==e.timezone)return new Date(t);if(e.timezone&&"utc"!=e.timezone){if("undefined"!=typeof timezoneJS&&void 0!==timezoneJS.Date){var n=new timezoneJS.Date;return n.setTimezone(e.timezone),n.setTime(t),n}return i(new Date(t))}return i(new Date(t))}var o={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},a=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],s=a.concat([[3,"month"],[6,"month"],[1,"year"]]),l=a.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);t.plot.plugins.push({init:function(i){i.hooks.processDatapoints.push(function(i,a,u){t.each(i.getAxes(),function(t,i){var a=i.options;"time"==a.mode&&(i.tickGenerator=function(t){var n=[],i=r(t.min,a),u=0,c=a.tickSize&&"quarter"===a.tickSize[1]||a.minTickSize&&"quarter"===a.minTickSize[1]?l:s;null!=a.minTickSize&&(u="number"==typeof a.tickSize?a.tickSize:a.minTickSize[0]*o[a.minTickSize[1]]);for(var h=0;h<c.length-1&&!(t.delta<(c[h][0]*o[c[h][1]]+c[h+1][0]*o[c[h+1][1]])/2&&c[h][0]*o[c[h][1]]>=u);++h);var d=c[h][0],f=c[h][1];if("year"==f){if(null!=a.minTickSize&&"year"==a.minTickSize[1])d=Math.floor(a.minTickSize[0]);else{var p=Math.pow(10,Math.floor(Math.log(t.delta/o.year)/Math.LN10)),g=t.delta/o.year/p;d=g<1.5?1:g<3?2:g<7.5?5:10,d*=p}d<1&&(d=1)}t.tickSize=a.tickSize||[d,f];var m=t.tickSize[0],v=m*o[f=t.tickSize[1]];"second"==f?i.setSeconds(e(i.getSeconds(),m)):"minute"==f?i.setMinutes(e(i.getMinutes(),m)):"hour"==f?i.setHours(e(i.getHours(),m)):"month"==f?i.setMonth(e(i.getMonth(),m)):"quarter"==f?i.setMonth(3*e(i.getMonth()/3,m)):"year"==f&&i.setFullYear(e(i.getFullYear(),m)),i.setMilliseconds(0),v>=o.minute?i.setSeconds(0):v>=o.hour?i.setMinutes(0):v>=o.day?i.setHours(0):v>=4*o.day?i.setDate(1):v>=2*o.month?i.setMonth(e(i.getMonth(),3)):v>=2*o.quarter?i.setMonth(e(i.getMonth(),6)):v>=o.year&&i.setMonth(0);var y,b=0,x=Number.NaN;do{if(y=x,x=i.getTime(),n.push(x),"month"==f||"quarter"==f)if(m<1){i.setDate(1);var w=i.getTime();i.setMonth(i.getMonth()+("quarter"==f?3:1));var _=i.getTime();i.setTime(x+b*o.hour+(_-w)*m),b=i.getHours(),i.setHours(0)}else i.setMonth(i.getMonth()+m*("quarter"==f?3:1));else"year"==f?i.setFullYear(i.getFullYear()+m):i.setTime(x+v)}while(x<t.max&&x!=y);return n},i.tickFormatter=function(t,e){var i=r(t,e.options);if(null!=a.timeformat)return n(i,a.timeformat,a.monthNames,a.dayNames);var s=e.options.tickSize&&"quarter"==e.options.tickSize[1]||e.options.minTickSize&&"quarter"==e.options.minTickSize[1],l=e.tickSize[0]*o[e.tickSize[1]],u=e.max-e.min,c=a.twelveHourClock?" %p":"",h=a.twelveHourClock?"%I":"%H";return n(i,l<o.minute?h+":%M:%S"+c:l<o.day?u<2*o.day?h+":%M"+c:"%b %d "+h+":%M"+c:l<o.month?"%b %d":s&&l<o.quarter||!s&&l<o.year?u<o.year?"%b":"%b %Y":s&&l<o.year?u<o.year?"Q%q":"Q%q %Y":"%Y",a.monthNames,a.dayNames)})})})},options:{},name:"time",version:"1.0"}),t.plot.formatDate=n}(jQuery),function(t,e,n){var i;i=function(n){"use strict";var i,r,o,a,s,l,u,c,h,d,f,p,g,m,v,y,b,x,w,_,k,S,C,M,T,D,A,O,E,I,P={},L=0;i=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:void 0,normalRangeMax:void 0,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:void 0,chartRangeMax:void 0,chartRangeMinX:void 0,chartRangeMaxX:void 0,tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:void 0,nullColor:void 0,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:void 0,chartRangeMin:void 0,chartRangeClip:!1,colorMap:void 0,tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:void 0,thresholdValue:0,chartRangeMax:void 0,chartRangeMin:void 0,chartRangeClip:!1,tooltipFormat:new o("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:void 0,tooltipFormat:new o("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:void 0,targetColor:"#4a2",chartRangeMax:void 0,chartRangeMin:void 0,tooltipFormat:new o("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},T='.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;box-sizing: content-box;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}',n.SPFormatClass=o=(r=function(){var t,e;return t=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(t.prototype=n.extend(new arguments[0],arguments[arguments.length-1]),t._super=arguments[0].prototype):t.prototype=arguments[arguments.length-1],arguments.length>2&&((e=Array.prototype.slice.call(arguments,1,-1)).unshift(t.prototype),n.extend.apply(n,e))):t.prototype=arguments[0],t.prototype.cls=t,t})({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,n){var i,r,o,a,s,l=this,u=t;return this.format.replace(this.fre,function(){return o=arguments[3],(i=l.precre.exec(r=arguments[1]))?(s=i[2],r=i[1]):s=!1,void 0===(a=u[r])?"":o&&e&&e[o]?e[o].get?e[o].get(a)||a:e[o][a]||a:(h(a)&&(a=n.get("numberFormatter")?n.get("numberFormatter")(a):g(a,s,n.get("numberDigitGroupCount"),n.get("numberDigitGroupSep"),n.get("numberDecimalMark"))),a)})}}),n.spformat=function(t,e){return new o(t,e)},a=function(t,e,n){return t<e?e:t>n?n:t},s=function(t,n){var i;return 2===n?(i=e.floor(t.length/2),t.length%2?t[i]:(t[i-1]+t[i])/2):t.length%2?(i=(t.length*n+n)/4)%1?(t[e.floor(i)]+t[e.floor(i)-1])/2:t[i-1]:(i=(t.length*n+2)/4)%1?(t[e.floor(i)]+t[e.floor(i)-1])/2:t[i-1]},l=function(t){var e;switch(t){case"undefined":t=void 0;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:t==(e=parseFloat(t))&&(t=e)}return t},u=function(t){var e,n=[];for(e=t.length;e--;)n[e]=l(t[e]);return n},c=function(t,e){var n,i,r=[];for(n=0,i=t.length;n<i;n++)t[n]!==e&&r.push(t[n]);return r},h=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},g=function(t,e,i,r,o){var a,s;for(t=(!1===e?parseFloat(t).toString():t.toFixed(e)).split(""),(a=(a=n.inArray(".",t))<0?t.length:a)<t.length&&(t[a]=o),s=a-i;s>0;s-=i)t.splice(s,0,r);return t.join("")},d=function(t,e,n){var i;for(i=e.length;i--;)if((!n||null!==e[i])&&e[i]!==t)return!1;return!0},p=function(t){return n.isArray(t)?t:[t]},f=function(e){var n,i;if(t.createStyleSheet)try{return void(t.createStyleSheet().cssText=e)}catch(t){i=!0}(n=t.createElement("style")).type="text/css",t.getElementsByTagName("head")[0].appendChild(n),i?t.styleSheets[t.styleSheets.length-1].cssText=e:n["string"==typeof t.body.style.WebkitAppearance?"innerText":"innerHTML"]=e},n.fn.simpledraw=function(e,i,r,o){var a,s;if(r&&(a=this.data("_jqs_vcanvas")))return a;if(!1===n.fn.sparkline.canvas)return!1;if(void 0===n.fn.sparkline.canvas){var l=t.createElement("canvas");if(l.getContext&&l.getContext("2d"))n.fn.sparkline.canvas=function(t,e,n,i){return new O(t,e,n,i)};else{if(!t.namespaces||t.namespaces.v)return n.fn.sparkline.canvas=!1,!1;t.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),n.fn.sparkline.canvas=function(t,e,n,i){return new E(t,e,n)}}}return void 0===e&&(e=n(this).innerWidth()),void 0===i&&(i=n(this).innerHeight()),a=n.fn.sparkline.canvas(e,i,this,o),(s=n(this).data("_jqs_mhandler"))&&s.registerCanvas(a),a},n.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},n.RangeMapClass=m=r({init:function(t){var e,n,i=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&((n=e.split(":"))[0]=0===n[0].length?-1/0:parseFloat(n[0]),n[1]=0===n[1].length?1/0:parseFloat(n[1]),n[2]=t[e],i.push(n));this.map=t,this.rangelist=i||!1},get:function(t){var e,n,i,r=this.rangelist;if(void 0!==(i=this.map[t]))return i;if(r)for(e=r.length;e--;)if((n=r[e])[0]<=t&&n[1]>=t)return n[2]}}),n.range_map=function(t){return new m(t)},v=r({init:function(t,e){var i=n(t);this.$el=i,this.options=e,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!e.get("disableTooltips"),this.highlightEnabled=!e.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var e=n(t.canvas);this.canvas=t,this.$canvas=e,e.mouseenter(n.proxy(this.mouseenter,this)),e.mouseleave(n.proxy(this.mouseleave,this)),e.click(n.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=void 0)},mouseclick:function(t){var e=n.Event("sparklineClick");e.originalEvent=t,e.sparklines=this.splist,this.$el.trigger(e)},mouseenter:function(e){n(t.body).unbind("mousemove.jqs"),n(t.body).bind("mousemove.jqs",n.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new y(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){n(t.body).unbind("mousemove.jqs");var e,i=this.splist,r=i.length,o=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),e=0;e<r;e++)i[e].clearRegionHighlight()&&(o=!0);o&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var t,e,i,r,o=this.splist,a=o.length,s=!1,l=this.$canvas.offset(),u=this.currentPageX-l.left,c=this.currentPageY-l.top;if(this.over){for(e=0;e<a;e++)(i=o[e].setRegionHighlight(this.currentEl,u,c))&&(s=!0);if(s){if((r=n.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(r),this.tooltip){for(t="",e=0;e<a;e++)t+=o[e].getCurrentRegionTooltip();this.tooltip.setContent(t)}this.disableHighlight||this.canvas.render()}null===i&&this.mouseleave()}}}),y=r({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var i,r=e.get("tooltipClassname","jqstooltip"),o=this.sizeStyle;this.container=e.get("tooltipContainer")||t.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),n("#jqssizetip").remove(),n("#jqstooltip").remove(),this.sizetip=n("<div/>",{id:"jqssizetip",style:o,class:r}),this.tooltip=n("<div/>",{id:"jqstooltip",class:r}).appendTo(this.container),i=this.tooltip.offset(),this.offsetLeft=i.left,this.offsetTop=i.top,this.hidden=!0,n(window).unbind("resize.jqs scroll.jqs"),n(window).bind("resize.jqs scroll.jqs",n.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=n(window).scrollTop(),this.scrollLeft=n(window).scrollLeft(),this.scrollRight=this.scrollLeft+n(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){if(!t)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(t,e){if(void 0===t){if(void 0===this.mousex)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(t+=this.tooltipOffsetX,(e-=this.height+this.tooltipOffsetY)<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=void 0,n(window).unbind("resize.jqs scroll.jqs")}}),n(function(){f(T)}),I=[],n.fn.sparkline=function(e,i){return this.each(function(){var r,o,a=new n.fn.sparkline.options(this,i),s=n(this);if(r=function(){var i,r,o,l,u,c,h;"html"===e||void 0===e?(void 0!==(h=this.getAttribute(a.get("tagValuesAttribute")))&&null!==h||(h=s.html()),i=h.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):i=e,r="auto"===a.get("width")?i.length*a.get("defaultPixelsPerValue"):a.get("width"),"auto"===a.get("height")?a.get("composite")&&n.data(this,"_jqs_vcanvas")||((l=t.createElement("span")).innerHTML="a",s.html(l),o=n(l).innerHeight()||n(l).height(),n(l).remove(),l=null):o=a.get("height"),a.get("disableInteraction")?u=!1:(u=n.data(this,"_jqs_mhandler"))?a.get("composite")||u.reset():(u=new v(this,a),n.data(this,"_jqs_mhandler",u)),!a.get("composite")||n.data(this,"_jqs_vcanvas")?((c=new(n.fn.sparkline[a.get("type")])(this,i,a,r,o)).render(),u&&u.registerSparkline(c)):n.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),n.data(this,"_jqs_errnotify",!0))},n(this).html()&&!a.get("disableHiddenCheck")&&n(this).is(":hidden")||!n(this).parents("body").length){if(!a.get("composite")&&n.data(this,"_jqs_pending"))for(o=I.length;o;o--)I[o-1][0]==this&&I.splice(o-1,1);I.push([this,r]),n.data(this,"_jqs_pending",!0)}else r.call(this)})},n.fn.sparkline.defaults=i(),n.sparkline_display_visible=function(){var t,e,i,r=[];for(e=0,i=I.length;e<i;e++)n(t=I[e][0]).is(":visible")&&!n(t).parents().is(":hidden")?(I[e][1].call(t),n.data(I[e][0],"_jqs_pending",!1),r.push(e)):n(t).closest("html").length||n.data(t,"_jqs_pending")||(n.data(I[e][0],"_jqs_pending",!1),r.push(e));for(e=r.length;e;e--)I.splice(r[e-1],1)},n.fn.sparkline.options=r({init:function(t,e){var i,r,o;this.userOptions=e=e||{},this.tag=t,this.tagValCache={},r=(i=n.fn.sparkline.defaults).common,this.tagOptionsPrefix=e.enableTagOptions&&(e.tagOptionsPrefix||r.tagOptionsPrefix),o=this.getTagSetting("type"),this.mergedOptions=n.extend({},r,o===P?i[e.type||r.type]:i[o],e)},getTagSetting:function(t){var e,n,i,r,o=this.tagOptionsPrefix;if(!1===o||void 0===o)return P;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if(void 0===(e=this.tag.getAttribute(o+t))||null===e)e=P;else if("["===e.substr(0,1))for(n=(e=e.substr(1,e.length-2).split(",")).length;n--;)e[n]=l(e[n].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(i=e.substr(1,e.length-2).split(","),e={},n=i.length;n--;)e[(r=i[n].split(":",2))[0].replace(/(^\s*)|(\s*$)/g,"")]=l(r[1].replace(/(^\s*)|(\s*$)/g,""));else e=l(e);this.tagValCache.key=e}return e},get:function(t,e){var n,i=this.getTagSetting(t);return i!==P?i:void 0===(n=this.mergedOptions[t])?e:n}}),n.fn.sparkline._base=r({disabled:!1,init:function(t,e,i,r,o){this.el=t,this.$el=n(t),this.values=e,this.options=i,this.width=r,this.height=o,this.currentRegion=void 0},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,n){var i,r=this.currentRegion,o=!this.options.get("disableHighlight");return e>this.canvasWidth||n>this.canvasHeight||e<0||n<0?null:r!==(i=this.getRegion(t,e,n))&&(void 0!==r&&o&&this.removeHighlight(),this.currentRegion=i,void 0!==i&&o&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return void 0!==this.currentRegion&&(this.removeHighlight(),this.currentRegion=void 0,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var t,e,i,r,a,s,l,u,c,h,d,f,p,g=this.options,m="",v=[];if(void 0===this.currentRegion)return"";if(t=this.getCurrentRegionFields(),h=g.get("tooltipFormatter"))return h(this,g,t);if(g.get("tooltipChartTitle")&&(m+='<div class="jqs jqstitle">'+g.get("tooltipChartTitle")+"</div>\n"),!(e=this.options.get("tooltipFormat")))return"";if(n.isArray(e)||(e=[e]),n.isArray(t)||(t=[t]),l=this.options.get("tooltipFormatFieldlist"),u=this.options.get("tooltipFormatFieldlistKey"),l&&u){for(c=[],s=t.length;s--;)-1!=(p=n.inArray(t[s][u],l))&&(c[p]=t[s]);t=c}for(i=e.length,f=t.length,s=0;s<i;s++)for("string"==typeof(d=e[s])&&(d=new o(d)),r=d.fclass||"jqsfield",p=0;p<f;p++)t[p].isNull&&g.get("tooltipSkipNull")||(n.extend(t[p],{prefix:g.get("tooltipPrefix"),suffix:g.get("tooltipSuffix")}),a=d.render(t[p],g.get("tooltipValueLookups"),g),v.push('<div class="'+r+'">'+a+"</div>"));return v.length?m+v.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,n){var i,r,o,s,l=n.get("highlightColor"),u=n.get("highlightLighten");if(l)return l;if(u&&(i=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(o=[],r=4===t.length?16:1,s=0;s<3;s++)o[s]=a(e.round(parseInt(i[s+1],16)*r*u),0,255);return"rgb("+o.join(",")+")"}return t}}),b={changeHighlight:function(t){var e,i=this.currentRegion,r=this.target,o=this.regionShapes[i];o&&(e=this.renderRegion(i,t),n.isArray(e)||n.isArray(o)?(r.replaceWithShapes(o,e),this.regionShapes[i]=n.map(e,function(t){return t.id})):(r.replaceWithShape(o,e),this.regionShapes[i]=e.id))},render:function(){var t,e,i,r,o=this.values,a=this.target,s=this.regionShapes;if(this.cls._super.render.call(this)){for(i=o.length;i--;)if(t=this.renderRegion(i))if(n.isArray(t)){for(e=[],r=t.length;r--;)t[r].append(),e.push(t[r].id);s[i]=e}else t.append(),s[i]=t.id;else s[i]=null;a.render()}}},n.fn.sparkline.line=x=r(n.fn.sparkline._base,{type:"line",init:function(t,e,n,i,r){x._super.init.call(this,t,e,n,i,r),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,n){var i,r=this.regionMap;for(i=r.length;i--;)if(null!==r[i]&&e>=r[i][0]&&e<=r[i][1])return r[i][2]},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,n=this.target,i=this.vertices[this.currentRegion],r=this.options,o=r.get("spotRadius"),a=r.get("highlightSpotColor"),s=r.get("highlightLineColor");i&&(o&&a&&(t=n.drawCircle(i[0],i[1],o,void 0,a),this.highlightSpotId=t.id,n.insertAfterShape(this.lastShapeId,t)),s&&(e=n.drawLine(i[0],this.canvasTop,i[0],this.canvasTop+this.canvasHeight,s),this.highlightLineId=e.id,n.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var t,n,i,r,o,a=this.values,s=a.length,l=this.xvalues,u=this.yvalues,c=this.yminmax;for(t=0;t<s;t++)n=a[t],i="string"==typeof a[t],r="object"==typeof a[t]&&a[t]instanceof Array,o=i&&a[t].split(":"),i&&2===o.length?(l.push(Number(o[0])),u.push(Number(o[1])),c.push(Number(o[1]))):r?(l.push(n[0]),u.push(n[1]),c.push(n[1])):(l.push(t),null===a[t]||"null"===a[t]?u.push(null):(u.push(Number(n)),c.push(Number(n))));this.options.get("xvalues")&&(l=this.options.get("xvalues")),this.maxy=this.maxyorg=e.max.apply(e,c),this.miny=this.minyorg=e.min.apply(e,c),this.maxx=e.max.apply(e,l),this.minx=e.min.apply(e,l),this.xvalues=l,this.yvalues=u,this.yminmax=c},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),n=t.get("normalRangeMax");void 0!==e&&(e<this.miny&&(this.miny=e),n>this.maxy&&(this.maxy=n)),void 0!==t.get("chartRangeMin")&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),void 0!==t.get("chartRangeMax")&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),void 0!==t.get("chartRangeMinX")&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),void 0!==t.get("chartRangeMaxX")&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,n,i,r,o){var a=this.options.get("normalRangeMin"),s=this.options.get("normalRangeMax"),l=n+e.round(i-i*((s-this.miny)/o)),u=e.round(i*(s-a)/o);this.target.drawRect(t,l,r,u,void 0,this.options.get("normalRangeColor")).append()},render:function(){var t,i,r,o,a,s,l,u,c,h,d,f,p,g,v,y,b,w,_,k,S,C,M,T,D=this.options,A=this.target,O=this.canvasWidth,E=this.canvasHeight,I=this.vertices,P=D.get("spotRadius"),L=this.regionMap;if(x._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),C=this.xvalues,M=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(o=a=0,t=this.maxx-this.minx==0?1:this.maxx-this.minx,i=this.maxy-this.miny==0?1:this.maxy-this.miny,r=this.yvalues.length-1,P&&(O<4*P||E<4*P)&&(P=0),P&&(((k=D.get("highlightSpotColor")&&!D.get("disableInteraction"))||D.get("minSpotColor")||D.get("spotColor")&&M[r]===this.miny)&&(E-=e.ceil(P)),(k||D.get("maxSpotColor")||D.get("spotColor")&&M[r]===this.maxy)&&(E-=e.ceil(P),o+=e.ceil(P)),(k||(D.get("minSpotColor")||D.get("maxSpotColor"))&&(M[0]===this.miny||M[0]===this.maxy))&&(a+=e.ceil(P),O-=e.ceil(P)),(k||D.get("spotColor")||D.get("minSpotColor")||D.get("maxSpotColor")&&(M[r]===this.miny||M[r]===this.maxy))&&(O-=e.ceil(P))),E--,void 0===D.get("normalRangeMin")||D.get("drawNormalOnTop")||this.drawNormalRange(a,o,E,O,i),u=[l=[]],p=g=null,v=M.length,T=0;T<v;T++)d=C[T+1],h=M[T],g=(f=a+e.round(O/t*((c=C[T])-this.minx)))+((T<v-1?a+e.round(O/t*(d-this.minx)):O)-f)/2,L[T]=[p||0,g,T],p=g,null===h?T&&(null!==M[T-1]&&u.push(l=[]),I.push(null)):(h<this.miny&&(h=this.miny),h>this.maxy&&(h=this.maxy),l.length||l.push([f,o+E]),s=[f,o+e.round(E-E*((h-this.miny)/i))],l.push(s),I.push(s));for(y=[],b=[],w=u.length,T=0;T<w;T++)(l=u[T]).length&&(D.get("fillColor")&&(l.push([l[l.length-1][0],o+E]),b.push(l.slice(0)),l.pop()),l.length>2&&(l[0]=[l[0][0],l[1][1]]),y.push(l));for(w=b.length,T=0;T<w;T++)A.drawShape(b[T],D.get("fillColor"),D.get("fillColor")).append();for(void 0!==D.get("normalRangeMin")&&D.get("drawNormalOnTop")&&this.drawNormalRange(a,o,E,O,i),w=y.length,T=0;T<w;T++)A.drawShape(y[T],D.get("lineColor"),void 0,D.get("lineWidth")).append();if(P&&D.get("valueSpots"))for(void 0===(_=D.get("valueSpots")).get&&(_=new m(_)),T=0;T<v;T++)(S=_.get(M[T]))&&A.drawCircle(a+e.round(O/t*(C[T]-this.minx)),o+e.round(E-E*((M[T]-this.miny)/i)),P,void 0,S).append();P&&D.get("spotColor")&&null!==M[r]&&A.drawCircle(a+e.round(O/t*(C[C.length-1]-this.minx)),o+e.round(E-E*((M[r]-this.miny)/i)),P,void 0,D.get("spotColor")).append(),this.maxy!==this.minyorg&&(P&&D.get("minSpotColor")&&(c=C[n.inArray(this.minyorg,M)],A.drawCircle(a+e.round(O/t*(c-this.minx)),o+e.round(E-E*((this.minyorg-this.miny)/i)),P,void 0,D.get("minSpotColor")).append()),P&&D.get("maxSpotColor")&&(c=C[n.inArray(this.maxyorg,M)],A.drawCircle(a+e.round(O/t*(c-this.minx)),o+e.round(E-E*((this.maxyorg-this.miny)/i)),P,void 0,D.get("maxSpotColor")).append())),this.lastShapeId=A.getLastShapeId(),this.canvasTop=o,A.render()}}}),n.fn.sparkline.bar=w=r(n.fn.sparkline._base,b,{type:"bar",init:function(t,i,r,o,s){var h,d,f,p,g,v,y,b,x,_,k,S,C,M,T,D,A,O,E,I,P,L=parseInt(r.get("barWidth"),10),R=parseInt(r.get("barSpacing"),10),j=r.get("chartRangeMin"),F=r.get("chartRangeMax"),N=r.get("chartRangeClip"),W=1/0,B=-1/0;for(w._super.init.call(this,t,i,r,o,s),v=0,y=i.length;v<y;v++)((h="string"==typeof(I=i[v])&&I.indexOf(":")>-1)||n.isArray(I))&&(T=!0,h&&(I=i[v]=u(I.split(":"))),I=c(I,null),d=e.min.apply(e,I),f=e.max.apply(e,I),d<W&&(W=d),f>B&&(B=f));this.stacked=T,this.regionShapes={},this.barWidth=L,this.barSpacing=R,this.totalBarWidth=L+R,this.width=o=i.length*L+(i.length-1)*R,this.initTarget(),N&&(C=void 0===j?-1/0:j,M=void 0===F?1/0:F),g=[],p=T?[]:g;var H=[],z=[];for(v=0,y=i.length;v<y;v++)if(T)for(D=i[v],i[v]=E=[],H[v]=0,p[v]=z[v]=0,A=0,O=D.length;A<O;A++)null!==(I=E[A]=N?a(D[A],C,M):D[A])&&(I>0&&(H[v]+=I),W<0&&B>0?I<0?z[v]+=e.abs(I):p[v]+=I:p[v]+=e.abs(I-(I<0?B:W)),g.push(I));else I=N?a(i[v],C,M):i[v],null!==(I=i[v]=l(I))&&g.push(I);this.max=S=e.max.apply(e,g),this.min=k=e.min.apply(e,g),this.stackMax=B=T?e.max.apply(e,H):S,this.stackMin=W=T?e.min.apply(e,g):k,void 0!==r.get("chartRangeMin")&&(r.get("chartRangeClip")||r.get("chartRangeMin")<k)&&(k=r.get("chartRangeMin")),void 0!==r.get("chartRangeMax")&&(r.get("chartRangeClip")||r.get("chartRangeMax")>S)&&(S=r.get("chartRangeMax")),this.zeroAxis=x=r.get("zeroAxis",!0),this.xaxisOffset=_=k<=0&&S>=0&&x?0:0==x?k:k>0?k:S,b=T?e.max.apply(e,p)+e.max.apply(e,z):S-k,this.canvasHeightEf=x&&k<0?this.canvasHeight-2:this.canvasHeight-1,k<_?(P=((T&&S>=0?B:S)-_)/b*this.canvasHeight)!==e.ceil(P)&&(this.canvasHeightEf-=2,P=e.ceil(P)):P=this.canvasHeight,this.yoffset=P,n.isArray(r.get("colorMap"))?(this.colorMapByIndex=r.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=r.get("colorMap"),this.colorMapByValue&&void 0===this.colorMapByValue.get&&(this.colorMapByValue=new m(this.colorMapByValue))),this.range=b},getRegion:function(t,n,i){var r=e.floor(n/this.totalBarWidth);return r<0||r>=this.values.length?void 0:r},getCurrentRegionFields:function(){var t,e,n=this.currentRegion,i=p(this.values[n]),r=[];for(e=i.length;e--;)r.push({isNull:null===(t=i[e]),value:t,color:this.calcColor(e,t,n),offset:n});return r},calcColor:function(t,e,i){var r,o,a=this.colorMapByIndex,s=this.colorMapByValue,l=this.options;return r=l.get(this.stacked?"stackedBarColor":e<0?"negBarColor":"barColor"),0===e&&void 0!==l.get("zeroColor")&&(r=l.get("zeroColor")),s&&(o=s.get(e))?r=o:a&&a.length>i&&(r=a[i]),n.isArray(r)?r[t%r.length]:r},renderRegion:function(t,i){var r,o,a,s,l,u,c,h,f,p,g=this.values[t],m=this.options,v=this.xaxisOffset,y=[],b=this.range,x=this.stacked,w=this.target,_=t*this.totalBarWidth,k=this.canvasHeightEf,S=this.yoffset;if(c=(g=n.isArray(g)?g:[g]).length,h=g[0],s=d(null,g),p=d(v,g,!0),s)return m.get("nullColor")?(a=i?m.get("nullColor"):this.calcHighlightColor(m.get("nullColor"),m),w.drawRect(_,r=S>0?S-1:S,this.barWidth-1,0,a,a)):void 0;for(l=S,u=0;u<c;u++){if(h=g[u],x&&h===v){if(!p||f)continue;f=!0}o=b>0?e.floor(k*(e.abs(h-v)/b))+1:1,h<v||h===v&&0===S?(r=l,l+=o):(r=S-o,S-=o),a=this.calcColor(u,h,t),i&&(a=this.calcHighlightColor(a,m)),y.push(w.drawRect(_,r,this.barWidth-1,o-1,a,a))}return 1===y.length?y[0]:y}}),n.fn.sparkline.tristate=_=r(n.fn.sparkline._base,b,{type:"tristate",init:function(t,e,i,r,o){var a=parseInt(i.get("barWidth"),10),s=parseInt(i.get("barSpacing"),10);_._super.init.call(this,t,e,i,r,o),this.regionShapes={},this.barWidth=a,this.barSpacing=s,this.totalBarWidth=a+s,this.values=n.map(e,Number),this.width=r=e.length*a+(e.length-1)*s,n.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&void 0===this.colorMapByValue.get&&(this.colorMapByValue=new m(this.colorMapByValue))),this.initTarget()},getRegion:function(t,n,i){return e.floor(n/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:void 0===this.values[t],value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var n,i=this.values,r=this.options,o=this.colorMapByIndex,a=this.colorMapByValue;return a&&(n=a.get(t))?n:o&&o.length>e?o[e]:r.get(i[e]<0?"negBarColor":i[e]>0?"posBarColor":"zeroBarColor")},renderRegion:function(t,n){var i,r,o,a,s,l=this.values,u=this.options,c=this.target;if(r=e.round(c.pixelHeight/2),o=t*this.totalBarWidth,l[t]<0?(a=r,i=r-1):l[t]>0?(a=0,i=r-1):(a=r-1,i=2),null!==(s=this.calcColor(l[t],t)))return n&&(s=this.calcHighlightColor(s,u)),c.drawRect(o,a,this.barWidth-1,i-1,s,s)}}),n.fn.sparkline.discrete=k=r(n.fn.sparkline._base,b,{type:"discrete",init:function(t,i,r,o,a){k._super.init.call(this,t,i,r,o,a),this.regionShapes={},this.values=i=n.map(i,Number),this.min=e.min.apply(e,i),this.max=e.max.apply(e,i),this.range=this.max-this.min,this.width=o="auto"===r.get("width")?2*i.length:this.width,this.interval=e.floor(o/i.length),this.itemWidth=o/i.length,void 0!==r.get("chartRangeMin")&&(r.get("chartRangeClip")||r.get("chartRangeMin")<this.min)&&(this.min=r.get("chartRangeMin")),void 0!==r.get("chartRangeMax")&&(r.get("chartRangeClip")||r.get("chartRangeMax")>this.max)&&(this.max=r.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===r.get("lineHeight")?e.round(.3*this.canvasHeight):r.get("lineHeight"))},getRegion:function(t,n,i){return e.floor(n/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:void 0===this.values[t],value:this.values[t],offset:t}},renderRegion:function(t,n){var i,r,o,s,l=this.options,u=this.min,c=this.range,h=this.interval,d=this.target,f=this.lineHeight,p=this.canvasHeight-f;return r=a(this.values[t],u,this.max),s=t*h,i=e.round(p-p*((r-u)/c)),o=l.get("thresholdColor")&&r<l.get("thresholdValue")?l.get("thresholdColor"):l.get("lineColor"),n&&(o=this.calcHighlightColor(o,l)),d.drawLine(s,i,s,i+f,o)}}),n.fn.sparkline.bullet=S=r(n.fn.sparkline._base,{type:"bullet",init:function(t,n,i,r,o){var a,s,l;S._super.init.call(this,t,n,i,r,o),this.values=n=u(n),(l=n.slice())[0]=null===l[0]?l[2]:l[0],l[1]=null===n[1]?l[2]:l[1],a=e.min.apply(e,n),s=e.max.apply(e,n),a=void 0===i.get("base")?a<0?a:0:i.get("base"),this.min=a,this.max=s,this.range=s-a,this.shapes={},this.valueShapes={},this.regiondata={},this.width=r="auto"===i.get("width")?"4.0em":r,this.target=this.$el.simpledraw(r,o,i.get("composite")),n.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,n){var i=this.target.getShapeAt(t,e,n);return void 0!==i&&void 0!==this.shapes[i]?this.shapes[i]:void 0},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,n=this.currentRegion,i=this.valueShapes[n];switch(delete this.shapes[i],n.substr(0,1)){case"r":e=this.renderRange(n.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[n]=e.id,this.shapes[e.id]=n,this.target.replaceWithShape(i,e)},renderRange:function(t,n){var i=e.round(this.canvasWidth*((this.values[t]-this.min)/this.range)),r=this.options.get("rangeColors")[t-2];return n&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(0,0,i-1,this.canvasHeight-1,r,r)},renderPerformance:function(t){var n=e.round(this.canvasWidth*((this.values[1]-this.min)/this.range)),i=this.options.get("performanceColor");return t&&(i=this.calcHighlightColor(i,this.options)),this.target.drawRect(0,e.round(.3*this.canvasHeight),n-1,e.round(.4*this.canvasHeight)-1,i,i)},renderTarget:function(t){var n=e.round(this.canvasWidth*((this.values[0]-this.min)/this.range)-this.options.get("targetWidth")/2),i=e.round(.1*this.canvasHeight),r=this.canvasHeight-2*i,o=this.options.get("targetColor");return t&&(o=this.calcHighlightColor(o,this.options)),this.target.drawRect(n,i,this.options.get("targetWidth")-1,r-1,o,o)},render:function(){var t,e,n=this.values.length,i=this.target;if(S._super.render.call(this)){for(t=2;t<n;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),i.render()}}}),n.fn.sparkline.pie=C=r(n.fn.sparkline._base,{type:"pie",init:function(t,i,r,o,a){var s,l=0;if(C._super.init.call(this,t,i,r,o,a),this.shapes={},this.valueShapes={},this.values=i=n.map(i,Number),"auto"===r.get("width")&&(this.width=this.height),i.length>0)for(s=i.length;s--;)l+=i[s];this.total=l,this.initTarget(),this.radius=e.floor(e.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,n){var i=this.target.getShapeAt(t,e,n);return void 0!==i&&void 0!==this.shapes[i]?this.shapes[i]:void 0},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:void 0===this.values[t],value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,n=this.renderSlice(e,t),i=this.valueShapes[e];delete this.shapes[i],this.target.replaceWithShape(i,n),this.valueShapes[e]=n.id,this.shapes[n.id]=e},renderSlice:function(t,n){var i,r,o,a,s,l=this.target,u=this.options,c=this.radius,h=u.get("borderWidth"),d=u.get("offset"),f=2*e.PI,p=this.values,g=this.total,m=d?2*e.PI*(d/360):0;for(a=p.length,o=0;o<a;o++){if(i=m,r=m,g>0&&(r=m+f*(p[o]/g)),t===o)return s=u.get("sliceColors")[o%u.get("sliceColors").length],n&&(s=this.calcHighlightColor(s,u)),l.drawPieSlice(c,c,c-h,i,r,void 0,s);m=r}},render:function(){var t,n,i=this.target,r=this.values,o=this.options,a=this.radius,s=o.get("borderWidth"),l=o.get("donutWidth");if(C._super.render.call(this)){for(s&&i.drawCircle(a,a,e.floor(a-s/2),o.get("borderColor"),void 0,s).append(),n=r.length;n--;)r[n]&&(t=this.renderSlice(n).append(),this.valueShapes[n]=t.id,this.shapes[t.id]=n);l&&i.drawCircle(a,a,a-l,o.get("donutColor"),o.get("donutColor"),0).append(),i.render()}}}),n.fn.sparkline.box=M=r(n.fn.sparkline._base,{type:"box",init:function(t,e,i,r,o){M._super.init.call(this,t,e,i,r,o),this.values=n.map(e,Number),this.width="auto"===i.get("width")?"4.0em":r,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return void 0!==this.loutlier&&t.push({field:"lo",value:this.loutlier}),void 0!==this.routlier&&t.push({field:"ro",value:this.routlier}),void 0!==this.lwhisker&&t.push({field:"lw",value:this.lwhisker}),void 0!==this.rwhisker&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,n,i,r,o,a,l,u,c,h,d,f=this.target,p=this.values,g=p.length,m=this.options,v=this.canvasWidth,y=this.canvasHeight,b=void 0===m.get("chartRangeMin")?e.min.apply(e,p):m.get("chartRangeMin"),x=void 0===m.get("chartRangeMax")?e.max.apply(e,p):m.get("chartRangeMax"),w=0;if(M._super.render.call(this)){if(m.get("raw"))m.get("showOutliers")&&p.length>5?(n=p[0],t=p[1],r=p[2],o=p[3],a=p[4],l=p[5],u=p[6]):(t=p[0],r=p[1],o=p[2],a=p[3],l=p[4]);else if(p.sort(function(t,e){return t-e}),r=s(p,1),o=s(p,2),i=(a=s(p,3))-r,m.get("showOutliers")){for(t=l=void 0,c=0;c<g;c++)void 0===t&&p[c]>r-i*m.get("outlierIQR")&&(t=p[c]),p[c]<a+i*m.get("outlierIQR")&&(l=p[c]);n=p[0],u=p[g-1]}else t=p[0],l=p[g-1];this.quartiles=[r,o,a],this.lwhisker=t,this.rwhisker=l,this.loutlier=n,this.routlier=u,d=v/(x-b+1),m.get("showOutliers")&&(w=e.ceil(m.get("spotRadius")),d=(v-=2*e.ceil(m.get("spotRadius")))/(x-b+1),n<t&&f.drawCircle((n-b)*d+w,y/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append(),u>l&&f.drawCircle((u-b)*d+w,y/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append()),f.drawRect(e.round((r-b)*d+w),e.round(.1*y),e.round((a-r)*d),e.round(.8*y),m.get("boxLineColor"),m.get("boxFillColor")).append(),f.drawLine(e.round((t-b)*d+w),e.round(y/2),e.round((r-b)*d+w),e.round(y/2),m.get("lineColor")).append(),f.drawLine(e.round((t-b)*d+w),e.round(y/4),e.round((t-b)*d+w),e.round(y-y/4),m.get("whiskerColor")).append(),f.drawLine(e.round((l-b)*d+w),e.round(y/2),e.round((a-b)*d+w),e.round(y/2),m.get("lineColor")).append(),f.drawLine(e.round((l-b)*d+w),e.round(y/4),e.round((l-b)*d+w),e.round(y-y/4),m.get("whiskerColor")).append(),f.drawLine(e.round((o-b)*d+w),e.round(.1*y),e.round((o-b)*d+w),e.round(.9*y),m.get("medianColor")).append(),m.get("target")&&(h=e.ceil(m.get("spotRadius")),f.drawLine(e.round((m.get("target")-b)*d+w),e.round(y/2-h),e.round((m.get("target")-b)*d+w),e.round(y/2+h),m.get("targetColor")).append(),f.drawLine(e.round((m.get("target")-b)*d+w-h),e.round(y/2),e.round((m.get("target")-b)*d+w+h),e.round(y/2),m.get("targetColor")).append()),f.render()}}}),D=r({init:function(t,e,n,i){this.target=t,this.id=e,this.type=n,this.args=i},append:function(){return this.target.appendShape(this),this}}),A=r({_pxregex:/(\d+)(px)?\s*$/i,init:function(t,e,i){t&&(this.width=t,this.height=e,this.target=i,this.lastShapeId=null,i[0]&&(i=i[0]),n.data(i,"_jqs_vcanvas",this))},drawLine:function(t,e,n,i,r,o){return this.drawShape([[t,e],[n,i]],r,o)},drawShape:function(t,e,n,i){return this._genShape("Shape",[t,e,n,i])},drawCircle:function(t,e,n,i,r,o){return this._genShape("Circle",[t,e,n,i,r,o])},drawPieSlice:function(t,e,n,i,r,o,a){return this._genShape("PieSlice",[t,e,n,i,r,o,a])},drawRect:function(t,e,n,i,r,o){return this._genShape("Rect",[t,e,n,i,r,o])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(t,e){n(e).html(t)},_calculatePixelDims:function(t,e,i){var r;r=this._pxregex.exec(e),this.pixelHeight=r?r[1]:n(i).height(),r=this._pxregex.exec(t),this.pixelWidth=r?r[1]:n(i).width()},_genShape:function(t,e){var n=L++;return e.unshift(n),new D(this,n,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,n){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),O=r(A,{init:function(e,i,r,o){O._super.init.call(this,e,i,r),this.canvas=t.createElement("canvas"),r[0]&&(r=r[0]),n.data(r,"_jqs_vcanvas",this),n(this.canvas).css({display:"inline-block",width:e,height:i,verticalAlign:"top"}),this._insert(this.canvas,r),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=o,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=void 0,n(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,n){var i=this.canvas.getContext("2d");return void 0!==t&&(i.strokeStyle=t),i.lineWidth=void 0===n?1:n,void 0!==e&&(i.fillStyle=e),i},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=void 0},_drawShape:function(t,e,n,i,r){var o,a,s=this._getContext(n,i,r);for(s.beginPath(),s.moveTo(e[0][0]+.5,e[0][1]+.5),o=1,a=e.length;o<a;o++)s.lineTo(e[o][0]+.5,e[o][1]+.5);void 0!==n&&s.stroke(),void 0!==i&&s.fill(),void 0!==this.targetX&&void 0!==this.targetY&&s.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,n,i,r,o,a,s){var l=this._getContext(o,a,s);l.beginPath(),l.arc(n,i,r,0,2*e.PI,!1),void 0!==this.targetX&&void 0!==this.targetY&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),void 0!==o&&l.stroke(),void 0!==a&&l.fill()},_drawPieSlice:function(t,e,n,i,r,o,a,s){var l=this._getContext(a,s);l.beginPath(),l.moveTo(e,n),l.arc(e,n,i,r,o,!1),l.lineTo(e,n),l.closePath(),void 0!==a&&l.stroke(),s&&l.fill(),void 0!==this.targetX&&void 0!==this.targetY&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,n,i,r,o,a){return this._drawShape(t,[[e,n],[e+i,n],[e+i,n+r],[e,n+r],[e,n]],o,a)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var n,i=this.shapeseq;for(this.shapes[e.id]=e,n=i.length;n--;)i[n]==t&&(i[n]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){var n,i,r,o=this.shapeseq,a={};for(i=t.length;i--;)a[t[i]]=!0;for(i=o.length;i--;)a[n=o[i]]&&(o.splice(i,1),delete this.shapes[n],r=i);for(i=e.length;i--;)o.splice(r,0,e[i].id),this.shapes[e[i].id]=e[i]},insertAfterShape:function(t,e){var n,i=this.shapeseq;for(n=i.length;n--;)if(i[n]===t)return i.splice(n+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){var e,n=this.shapeseq;for(e=n.length;e--;)if(n[e]===t){n.splice(e,1);break}delete this.shapes[t]},getShapeAt:function(t,e,n){return this.targetX=e,this.targetY=n,this.render(),this.currentTargetShapeId},render:function(){var t,e,n=this.shapeseq,i=this.shapes,r=n.length;for(this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),e=0;e<r;e++)this["_draw"+(t=i[n[e]]).type].apply(this,t.args);this.interact||(this.shapes={},this.shapeseq=[])}}),E=r(A,{init:function(e,i,r){E._super.init.call(this,e,i,r),r[0]&&(r=r[0]),n.data(r,"_jqs_vcanvas",this),this.canvas=t.createElement("span"),n(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:i,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,r),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.canvas.insertAdjacentHTML("beforeEnd",'<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>'),this.group=n(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,n,i,r){var o,a,s,l,u=[];for(l=0,s=e.length;l<s;l++)u[l]=e[l][0]+","+e[l][1];return o=u.splice(0,1),r=void 0===r?1:r,a=u[0]===u[u.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+(void 0===n?' stroked="false" ':' strokeWeight="'+r+'px" strokeColor="'+n+'" ')+(void 0===i?' filled="false"':' fillColor="'+i+'" filled="true" ')+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+o+" l "+u.join(", ")+" "+a+'e"> </v:shape>'},_drawCircle:function(t,e,n,i,r,o,a){return'<v:oval  id="jqsshape'+t+'" '+(void 0===r?' stroked="false" ':' strokeWeight="'+a+'px" strokeColor="'+r+'" ')+(void 0===o?' filled="false"':' fillColor="'+o+'" filled="true" ')+' style="position:absolute;top:'+(n-=i)+"px; left:"+(e-=i)+"px; width:"+2*i+"px; height:"+2*i+'px"></v:oval>'},_drawPieSlice:function(t,n,i,r,o,a,s,l){var u,c,h,d;if(o===a)return"";if(a-o==2*e.PI&&(o=0,a=2*e.PI),u=n+e.round(e.cos(o)*r),c=i+e.round(e.sin(o)*r),h=n+e.round(e.cos(a)*r),d=i+e.round(e.sin(a)*r),u===h&&c===d){if(a-o<e.PI)return"";u=h=n+r,c=d=i}return u===h&&c===d&&a-o<e.PI?"":'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+(void 0===s?' stroked="false" ':' strokeWeight="1px" strokeColor="'+s+'" ')+(void 0===l?' filled="false"':' fillColor="'+l+'" filled="true" ')+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+n+","+i+" wa "+[n-r,i-r,n+r,i+r,u,c,h,d].join(", ")+' x e"> </v:shape>'},_drawRect:function(t,e,n,i,r,o,a){return this._drawShape(t,[[e,n],[e,n+r],[e+i,n+r],[e+i,n],[e,n]],o,a)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i=n("#jqsshape"+t),r=this["_draw"+e.type].apply(this,e.args);i[0].outerHTML=r},replaceWithShapes:function(t,e){var i,r=n("#jqsshape"+t[0]),o="",a=e.length;for(i=0;i<a;i++)o+=this["_draw"+e[i].type].apply(this,e[i].args);for(r[0].outerHTML=o,i=1;i<t.length;i++)n("#jqsshape"+t[i]).remove()},insertAfterShape:function(t,e){var i=n("#jqsshape"+t),r=this["_draw"+e.type].apply(this,e.args);i[0].insertAdjacentHTML("afterEnd",r)},removeShapeId:function(t){var e=n("#jqsshape"+t);this.group.removeChild(e[0])},getShapeAt:function(t,e,n){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})},"function"==typeof define&&define.amd?define(["jquery"],i):jQuery&&!jQuery.fn.sparkline&&i(jQuery)}(document,Math);var abp=abp||{};function setSkinListHeightAndScroll(){var t=$(window).height()-($(".navbar").innerHeight()+$(".right-sidebar .nav-tabs").outerHeight()),e=$(".demo-choose-skin");e.slimScroll({destroy:!0}).height("auto"),e.parent().find(".slimScrollBar, .slimScrollRail").remove(),e.slimscroll({height:t+"px",color:"rgba(0,0,0,0.5)",size:"4px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}function setSettingListHeightAndScroll(){var t=$(window).height()-($(".navbar").innerHeight()+$(".right-sidebar .nav-tabs").outerHeight()),e=$(".right-sidebar .demo-settings");e.slimScroll({destroy:!0}).height("auto"),e.parent().find(".slimScrollBar, .slimScrollRail").remove(),e.slimscroll({height:t+"px",color:"rgba(0,0,0,0.5)",size:"4px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}function activateNotificationAndTasksScroll(){$(".navbar-right .dropdown-menu .body .menu").slimscroll({height:"254px",color:"rgba(0,0,0,0.5)",size:"4px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}!function(t){abp.appPath=abp.appPath||"/",abp.pageLoadTime=new Date,abp.toAbsAppPath=function(t){return 0==t.indexOf("/")&&(t=t.substring(1)),abp.appPath+t},abp.multiTenancy=abp.multiTenancy||{},abp.multiTenancy.isEnabled=!1,abp.multiTenancy.sides={TENANT:1,HOST:2},abp.multiTenancy.tenantIdCookieName="Abp.TenantId",abp.multiTenancy.setTenantIdCookie=function(t){t?abp.utils.setCookieValue(abp.multiTenancy.tenantIdCookieName,t.toString(),new Date((new Date).getTime()+15768e7),abp.appPath,abp.domain):abp.utils.deleteCookie(abp.multiTenancy.tenantIdCookieName,abp.appPath)},abp.multiTenancy.getTenantIdCookie=function(){var t=abp.utils.getCookieValue(abp.multiTenancy.tenantIdCookieName);return t?parseInt(t):null},abp.session=abp.session||{multiTenancySide:abp.multiTenancy.sides.HOST},abp.localization=abp.localization||{},abp.localization.languages=[],abp.localization.currentLanguage={},abp.localization.sources=[],abp.localization.values={},abp.localization.localize=function(t,e){var n=abp.localization.values[e=e||abp.localization.defaultSourceName];if(!n)return abp.log.warn("Could not find localization source: "+e),t;var i=n[t];if(void 0==i)return t;var r=Array.prototype.slice.call(arguments,0);return r.splice(1,1),r[0]=i,abp.utils.formatString.apply(this,r)},abp.localization.getSource=function(t){return function(e){var n=Array.prototype.slice.call(arguments,0);return n.splice(1,0,t),abp.localization.localize.apply(this,n)}},abp.localization.isCurrentCulture=function(t){return abp.localization.currentCulture&&abp.localization.currentCulture.name&&0==abp.localization.currentCulture.name.indexOf(t)},abp.localization.defaultSourceName=void 0,abp.localization.abpWeb=abp.localization.getSource("AbpWeb"),abp.auth=abp.auth||{},abp.auth.allPermissions=abp.auth.allPermissions||{},abp.auth.grantedPermissions=abp.auth.grantedPermissions||{},abp.auth.hasPermission=function(t){return abp.auth.isGranted.apply(this,arguments)},abp.auth.hasAnyOfPermissions=function(){return abp.auth.isAnyGranted.apply(this,arguments)},abp.auth.hasAllOfPermissions=function(){return abp.auth.areAllGranted.apply(this,arguments)},abp.auth.isGranted=function(t){return void 0!=abp.auth.allPermissions[t]&&void 0!=abp.auth.grantedPermissions[t]},abp.auth.isAnyGranted=function(){if(!arguments||arguments.length<=0)return!0;for(var t=0;t<arguments.length;t++)if(abp.auth.isGranted(arguments[t]))return!0;return!1},abp.auth.areAllGranted=function(){if(!arguments||arguments.length<=0)return!0;for(var t=0;t<arguments.length;t++)if(!abp.auth.isGranted(arguments[t]))return!1;return!0},abp.auth.tokenCookieName="Abp.AuthToken",abp.auth.setToken=function(t,e){abp.utils.setCookieValue(abp.auth.tokenCookieName,t,e,abp.appPath,abp.domain)},abp.auth.getToken=function(){return abp.utils.getCookieValue(abp.auth.tokenCookieName)},abp.auth.clearToken=function(){abp.auth.setToken()},abp.features=abp.features||{},abp.features.allFeatures=abp.features.allFeatures||{},abp.features.get=function(t){return abp.features.allFeatures[t]},abp.features.getValue=function(t){var e=abp.features.get(t);if(void 0!=e)return e.value},abp.features.isEnabled=function(t){var e=abp.features.getValue(t);return"true"==e||"True"==e},abp.setting=abp.setting||{},abp.setting.values=abp.setting.values||{},abp.setting.get=function(t){return abp.setting.values[t]},abp.setting.getBoolean=function(t){var e=abp.setting.get(t);return"true"==e||"True"==e},abp.setting.getInt=function(t){return parseInt(abp.setting.values[t])},abp.notifications=abp.notifications||{},abp.notifications.severity={INFO:0,SUCCESS:1,WARN:2,ERROR:3,FATAL:4},abp.notifications.userNotificationState={UNREAD:0,READ:1},abp.notifications.getUserNotificationStateAsString=function(t){switch(t){case abp.notifications.userNotificationState.READ:return"READ";case abp.notifications.userNotificationState.UNREAD:return"UNREAD";default:return abp.log.warn("Unknown user notification state value: "+t),"?"}},abp.notifications.getUiNotifyFuncBySeverity=function(t){switch(t){case abp.notifications.severity.SUCCESS:return abp.notify.success;case abp.notifications.severity.WARN:return abp.notify.warn;case abp.notifications.severity.ERROR:case abp.notifications.severity.FATAL:return abp.notify.error;case abp.notifications.severity.INFO:default:return abp.notify.info}},abp.notifications.messageFormatters={},abp.notifications.messageFormatters["Abp.Notifications.MessageNotificationData"]=function(t){return t.notification.data.message||t.notification.data.properties.Message},abp.notifications.messageFormatters["Abp.Notifications.LocalizableMessageNotificationData"]=function(e){var n=e.notification.data.message||e.notification.data.properties.Message,i=abp.localization.localize(n.name,n.sourceName);if(e.notification.data.properties)if(t)t.each(e.notification.data.properties,function(t,e){i=i.replace("{"+t+"}",e)});else for(var r=Object.keys(e.notification.data.properties),o=0;o<r.length;o++)i=i.replace("{"+r[o]+"}",e.notification.data.properties[r[o]]);return i},abp.notifications.getFormattedMessageFromUserNotification=function(t){var e=abp.notifications.messageFormatters[t.notification.data.type];return e?abp.utils.isFunction(e)?e(t):(abp.log.warn("Message formatter should be a function! It is invalid for data type: "+t.notification.data.type),"?"):(abp.log.warn("No message formatter defined for given data type: "+t.notification.data.type),"?")},abp.notifications.showUiNotifyForUserNotification=function(t,e){var n=abp.notifications.getFormattedMessageFromUserNotification(t);abp.notifications.getUiNotifyFuncBySeverity(t.notification.severity)(n,void 0,e)},abp.log=abp.log||{},abp.log.levels={DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5},abp.log.level=abp.log.levels.DEBUG,abp.log.log=function(t,e){window.console&&window.console.log&&(void 0!=e&&e<abp.log.level||console.log(t))},abp.log.debug=function(t){abp.log.log("DEBUG: ",abp.log.levels.DEBUG),abp.log.log(t,abp.log.levels.DEBUG)},abp.log.info=function(t){abp.log.log("INFO: ",abp.log.levels.INFO),abp.log.log(t,abp.log.levels.INFO)},abp.log.warn=function(t){abp.log.log("WARN: ",abp.log.levels.WARN),abp.log.log(t,abp.log.levels.WARN)},abp.log.error=function(t){abp.log.log("ERROR: ",abp.log.levels.ERROR),abp.log.log(t,abp.log.levels.ERROR)},abp.log.fatal=function(t){abp.log.log("FATAL: ",abp.log.levels.FATAL),abp.log.log(t,abp.log.levels.FATAL)},abp.notify=abp.notify||{},abp.notify.success=function(t,e,n){abp.log.warn("abp.notify.success is not implemented!")},abp.notify.info=function(t,e,n){abp.log.warn("abp.notify.info is not implemented!")},abp.notify.warn=function(t,e,n){abp.log.warn("abp.notify.warn is not implemented!")},abp.notify.error=function(t,e,n){abp.log.warn("abp.notify.error is not implemented!")},abp.message=abp.message||{};var e,n,i=function(e,n){return alert((n||"")+" "+e),t?t.Deferred(function(t){t.resolve()}):(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null)};abp.message.info=function(t,e){return abp.log.warn("abp.message.info is not implemented!"),i(t,e)},abp.message.success=function(t,e){return abp.log.warn("abp.message.success is not implemented!"),i(t,e)},abp.message.warn=function(t,e){return abp.log.warn("abp.message.warn is not implemented!"),i(t,e)},abp.message.error=function(t,e){return abp.log.warn("abp.message.error is not implemented!"),i(t,e)},abp.message.confirm=function(e,n,i){abp.log.warn("abp.message.confirm is not implemented!"),n&&"string"!=typeof n&&(i=n);var r=confirm(e);return i&&i(r),t?t.Deferred(function(t){t.resolve()}):(abp.log.warn("abp.message can not return promise since jQuery is not defined!"),null)},abp.ui=abp.ui||{},abp.ui.block=function(t){abp.log.warn("abp.ui.block is not implemented!")},abp.ui.unblock=function(t){abp.log.warn("abp.ui.unblock is not implemented!")},abp.ui.setBusy=function(t,e){abp.log.warn("abp.ui.setBusy is not implemented!")},abp.ui.clearBusy=function(t){abp.log.warn("abp.ui.clearBusy is not implemented!")},abp.event=(e={},{on:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},off:function(t,n){var i=e[t];if(i){for(var r=-1,o=0;o<i.length;o++)if(i[o]===n){r=o;break}r<0||e[t].splice(r,1)}},trigger:function(t){var n=e[t];if(n&&n.length)for(var i=Array.prototype.slice.call(arguments,1),r=0;r<n.length;r++)n[r].apply(this,i)}}),abp.utils=abp.utils||{},abp.utils.createNamespace=function(t,e){for(var n=e.split("."),i=0;i<n.length;i++)void 0===t[n[i]]&&(t[n[i]]={}),t=t[n[i]];return t},abp.utils.replaceAll=function(t,e,n){var i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return t.replace(new RegExp(i,"g"),n)},abp.utils.formatString=function(){if(arguments.length<1)return null;for(var t=arguments[0],e=1;e<arguments.length;e++)t=abp.utils.replaceAll(t,"{"+(e-1)+"}",arguments[e]);return t},abp.utils.toPascalCase=function(t){return t&&t.length?1===t.length?t.charAt(0).toUpperCase():t.charAt(0).toUpperCase()+t.substr(1):t},abp.utils.toCamelCase=function(t){return t&&t.length?1===t.length?t.charAt(0).toLowerCase():t.charAt(0).toLowerCase()+t.substr(1):t},abp.utils.truncateString=function(t,e){return!t||!t.length||t.length<=e?t:t.substr(0,e)},abp.utils.truncateStringWithPostfix=function(t,e,n){return n=n||"...",!t||!t.length||t.length<=e?t:e<=n.length?n.substr(0,e):t.substr(0,e-n.length)+n},abp.utils.isFunction=function(e){return t?t.isFunction(e):!!(e&&e.constructor&&e.call&&e.apply)},abp.utils.buildQueryString=function(t,e){void 0===e&&(e=!0);var n="";function i(){n.length?n+="&":e&&(n+="?")}for(var r=0;r<t.length;++r){var o=t[r];if(void 0!==o.value)if(null===o.value&&(o.value=""),i(),o.value.toJSON&&"function"==typeof o.value.toJSON)n=n+o.name+"="+encodeURIComponent(o.value.toJSON());else if(Array.isArray(o.value)&&o.value.length)for(var a=0;a<o.value.length;a++)a>0&&i(),n=n+o.name+"["+a+"]="+encodeURIComponent(o.value[a]);else n=n+o.name+"="+encodeURIComponent(o.value)}return n},abp.utils.setCookieValue=function(t,e,n,i,r){var o=encodeURIComponent(t)+"=";e&&(o+=encodeURIComponent(e)),n&&(o=o+"; expires="+n.toUTCString()),i&&(o=o+"; path="+i),r&&(o=o+"; domain="+r),document.cookie=o},abp.utils.getCookieValue=function(t){for(var e=document.cookie.split("; "),n=0;n<e.length;n++)if(e[n]){var i=e[n].split("=");if(2==i.length&&decodeURIComponent(i[0])===t)return decodeURIComponent(i[1]||"")}return null},abp.utils.deleteCookie=function(t,e){var n=encodeURIComponent(t)+"=";n=n+"; expires="+new Date((new Date).getTime()-864e5).toUTCString(),e&&(n=n+"; path="+e),document.cookie=n},abp.utils.getDomain=function(t){var e=/(https?:){0,1}\/\/((?:[\w\d-]+\.)+[\w\d]{2,})/i.exec(t);return e&&e[2]?e[2]:""},abp.timing=abp.timing||{},abp.timing.utcClockProvider={now:function(){return new Date},normalize:function(t){return t?new Date(function(t){return Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())}(t)):t},supportsMultipleTimezone:!0},abp.timing.localClockProvider=(n=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},{now:function(){return n(new Date)},normalize:function(t){return t?n(t):t},supportsMultipleTimezone:!1}),abp.timing.unspecifiedClockProvider={now:function(){return new Date},normalize:function(t){return t},supportsMultipleTimezone:!1},abp.timing.convertToUserTimezone=function(t){var e=t.getTime()+6e4*t.getTimezoneOffset(),n=parseInt(e)+parseInt(abp.timing.timeZoneInfo.windows.currentUtcOffsetInMilliseconds);return new Date(n)},abp.clock=abp.clock||{},abp.clock.now=function(){return abp.clock.provider?abp.clock.provider.now():new Date},abp.clock.normalize=function(t){return abp.clock.provider?abp.clock.provider.normalize(t):t},abp.clock.provider=abp.timing.unspecifiedClockProvider,abp.security=abp.security||{},abp.security.antiForgery=abp.security.antiForgery||{},abp.security.antiForgery.tokenCookieName="XSRF-TOKEN",abp.security.antiForgery.tokenHeaderName="X-XSRF-TOKEN",abp.security.antiForgery.getToken=function(){return abp.utils.getCookieValue(abp.security.antiForgery.tokenCookieName)},abp.security.antiForgery.shouldSendToken=function(t){return void 0===t.crossDomain||null===t.crossDomain?abp.utils.getDomain(location.href)===abp.utils.getDomain(t.url):!t.crossDomain}}(jQuery),abp=abp||{},function(t){t&&(abp.ajax=function(e){var n=t.extend(!0,{},abp.ajax.defaultOpts,e=e||{}),i=n.beforeSend;return n.beforeSend=function(t){i&&i(t),t.setRequestHeader("Pragma","no-cache"),t.setRequestHeader("Cache-Control","no-cache"),t.setRequestHeader("Expires","Sat, 01 Jan 2000 00:00:00 GMT")},n.success=void 0,n.error=void 0,t.Deferred(function(i){t.ajax(n).done(function(t,n,r){t.__abp?abp.ajax.handleResponse(t,e,i,r):(i.resolve(t),e.success&&e.success(t))}).fail(function(t){t.responseJSON&&t.responseJSON.__abp?abp.ajax.handleResponse(t.responseJSON,e,i,t):abp.ajax.handleNonAbpErrorResponse(t,e,i)})})},t.extend(abp.ajax,{defaultOpts:{dataType:"json",type:"POST",contentType:"application/json",headers:{"X-Requested-With":"XMLHttpRequest"}},defaultError:{message:"An error has occurred!",details:"Error detail not sent by server."},defaultError401:{message:"You are not authenticated!",details:"You should be authenticated (sign in) in order to perform this operation."},defaultError403:{message:"You are not authorized!",details:"You are not allowed to perform this operation."},defaultError404:{message:"Resource not found!",details:"The resource requested could not found on the server."},logError:function(t){abp.log.error(t)},showError:function(t){return t.details?abp.message.error(t.details,t.message):abp.message.error(t.message||abp.ajax.defaultError.message)},handleTargetUrl:function(t){location.href=t||abp.appPath},handleNonAbpErrorResponse:function(t,e,n){if(!1!==e.abpHandleError)switch(t.status){case 401:abp.ajax.handleUnAuthorizedRequest(abp.ajax.showError(abp.ajax.defaultError401),abp.appPath);break;case 403:abp.ajax.showError(abp.ajax.defaultError403);break;case 404:abp.ajax.showError(abp.ajax.defaultError404);break;default:abp.ajax.showError(abp.ajax.defaultError)}n.reject.apply(this,arguments),e.error&&e.error.apply(this,arguments)},handleUnAuthorizedRequest:function(t,e){t?t.done(function(){abp.ajax.handleTargetUrl(e)}):abp.ajax.handleTargetUrl(e)},handleResponse:function(t,e,n,i){if(t)if(!0===t.success)n&&n.resolve(t.result,t,i),e.success&&e.success(t.result,t,i),t.targetUrl&&abp.ajax.handleTargetUrl(t.targetUrl);else if(!1===t.success){var r=null;t.error?!1!==e.abpHandleError&&(r=abp.ajax.showError(t.error)):t.error=abp.ajax.defaultError,abp.ajax.logError(t.error),n&&n.reject(t.error,i),e.error&&e.error(t.error,i),401===i.status&&!1!==e.abpHandleError&&abp.ajax.handleUnAuthorizedRequest(r,t.targetUrl)}else n&&n.resolve(t,null,i),e.success&&e.success(t,null,i);else n&&n.resolve(i),e.success&&e.success(i)},blockUI:function(t){t.blockUI&&(!0===t.blockUI?abp.ui.setBusy():abp.ui.setBusy(t.blockUI))},unblockUI:function(t){t.blockUI&&(!0===t.blockUI?abp.ui.clearBusy():abp.ui.clearBusy(t.blockUI))},ajaxSendHandler:function(t,e,n){var i=abp.security.antiForgery.getToken();i&&abp.security.antiForgery.shouldSendToken(n)&&(n.headers&&void 0!==n.headers[abp.security.antiForgery.tokenHeaderName]||e.setRequestHeader(abp.security.antiForgery.tokenHeaderName,i))}}),t(document).ajaxSend(function(t,e,n){return abp.ajax.ajaxSendHandler(t,e,n)}),t.fn.ajaxForm&&(t.fn.abpAjaxForm=function(e){var n=t.extend({},t.fn.abpAjaxForm.defaults,e=e||{});return n.beforeSubmit=function(){abp.ajax.blockUI(n),e.beforeSubmit&&e.beforeSubmit.apply(this,arguments)},n.success=function(t){abp.ajax.handleResponse(t,e)},n.complete=function(){abp.ajax.unblockUI(n),e.complete&&e.complete.apply(this,arguments)},this.ajaxForm(n)},t.fn.abpAjaxForm.defaults={method:"POST"}),abp.event.on("abp.dynamicScriptsInitialized",function(){abp.ajax.defaultError.message=abp.localization.abpWeb("DefaultError"),abp.ajax.defaultError.details=abp.localization.abpWeb("DefaultErrorDetail"),abp.ajax.defaultError401.message=abp.localization.abpWeb("DefaultError401"),abp.ajax.defaultError401.details=abp.localization.abpWeb("DefaultErrorDetail401"),abp.ajax.defaultError403.message=abp.localization.abpWeb("DefaultError403"),abp.ajax.defaultError403.details=abp.localization.abpWeb("DefaultErrorDetail403"),abp.ajax.defaultError404.message=abp.localization.abpWeb("DefaultError404"),abp.ajax.defaultError404.details=abp.localization.abpWeb("DefaultErrorDetail404")}))}(jQuery),abp=abp||{},function(){if(toastr){toastr.options.positionClass="toast-bottom-right";var t=function(t,e,n,i){toastr[t](e,n,i)};abp.notify.success=function(e,n,i){t("success",e,n,i)},abp.notify.info=function(e,n,i){t("info",e,n,i)},abp.notify.warn=function(e,n,i){t("warning",e,n,i)},abp.notify.error=function(e,n,i){t("error",e,n,i)}}}(),abp=abp||{},$.blockUI&&($.extend($.blockUI.defaults,{message:" ",css:{},overlayCSS:{backgroundColor:"#AAA",opacity:.3,cursor:"wait"}}),abp.ui.block=function(t){t?$(t).block():$.blockUI()},abp.ui.unblock=function(t){t?$(t).unblock():$.unblockUI()}),abp=abp||{},$.fn.spin&&(abp.libs=abp.libs||{},abp.libs.spinjs={spinner_config:{lines:11,length:0,width:10,radius:20,corners:1,trail:60,speed:1.2},spinner_config_inner_busy_indicator:{lines:11,length:0,width:4,radius:7,corners:1,trail:60,speed:1.2}},abp.ui.setBusy=function(t,e){((e=e||{}).always||e.finally)&&(e={promise:e});var n=$.extend({},e);if(t){var i=$(t),r=i.find(".abp-busy-indicator");r.length?r.spin(abp.libs.spinjs.spinner_config_inner_busy_indicator):(0!=n.blockUI&&abp.ui.block(t),i.spin(abp.libs.spinjs.spinner_config))}else 0!=n.blockUI&&abp.ui.block(),$("body").spin(abp.libs.spinjs.spinner_config);n.promise&&(n.promise.always?n.promise.always(function(){abp.ui.clearBusy(t)}):n.promise.finally&&n.promise.finally(function(){abp.ui.clearBusy(t)}))},abp.ui.clearBusy=function(t){if(t){var e=$(t),n=e.find(".abp-busy-indicator");n.length?n.spin(!1):(abp.ui.unblock(t),e.spin(!1))}else abp.ui.unblock(),$("body").spin(!1)}),abp=abp||{},function(t){if(sweetAlert&&t){abp.libs=abp.libs||{},abp.libs.sweetAlert={config:{default:{},info:{icon:"info"},success:{icon:"success"},warn:{icon:"warning"},error:{icon:"error"},confirm:{icon:"warning",title:"Are you sure?",buttons:["Cancel","Yes"]}}};var e=function(e,n,i){i||(i=n,n=void 0);var r=t.extend({},abp.libs.sweetAlert.config.default,abp.libs.sweetAlert.config[e],{title:i,text:n});return t.Deferred(function(t){sweetAlert(r).then(function(){t.resolve()})})};abp.message.info=function(t,n){return e("info",t,n)},abp.message.success=function(t,n){return e("success",t,n)},abp.message.warn=function(t,n){return e("warn",t,n)},abp.message.error=function(t,n){return e("error",t,n)},abp.message.confirm=function(e,n,i){var r={text:e};t.isFunction(n)?i=n:n&&(r.title=n);var o=t.extend({},abp.libs.sweetAlert.config.default,abp.libs.sweetAlert.config.confirm,r);return t.Deferred(function(t){sweetAlert(o).then(function(e){i&&i(e),t.resolve(e)})})},abp.event.on("abp.dynamicScriptsInitialized",function(){abp.libs.sweetAlert.config.confirm.title=abp.localization.abpWeb("AreYouSure"),abp.libs.sweetAlert.config.confirm.buttons=[abp.localization.abpWeb("Cancel"),abp.localization.abpWeb("Yes")]})}}(jQuery),abp=abp||{},moment&&moment.tz&&(abp.timing=abp.timing||{},abp.timing.convertToUserTimezone=function(t){return moment(t).clone().tz(abp.timing.timeZoneInfo.iana.timeZoneId)}),function(){if("undefined"==typeof jQuery)throw new Error("jQuery plugins need to be before this file");$.AdminBSB={},$.AdminBSB.options={colors:{red:"#F44336",pink:"#E91E63",purple:"#9C27B0",deepPurple:"#673AB7",indigo:"#3F51B5",blue:"#2196F3",lightBlue:"#03A9F4",cyan:"#00BCD4",teal:"#009688",green:"#4CAF50",lightGreen:"#8BC34A",lime:"#CDDC39",yellow:"#ffe821",amber:"#FFC107",orange:"#FF9800",deepOrange:"#FF5722",brown:"#795548",grey:"#9E9E9E",blueGrey:"#607D8B",black:"#000000",white:"#ffffff"},leftSideBar:{scrollColor:"rgba(0,0,0,0.5)",scrollWidth:"4px",scrollAlwaysVisible:!1,scrollBorderRadius:"0",scrollRailBorderRadius:"0",scrollActiveItemWhenPageLoad:!0,breakpointWidth:1170},dropdownMenu:{effectIn:"fadeIn",effectOut:"fadeOut"}},$.AdminBSB.leftSideBar={activate:function(){var t=this,e=$("body"),n=$(".overlay");$(window).click(function(i){var r=$(i.target);"i"===i.target.nodeName.toLowerCase()&&(r=$(i.target).parent()),!r.hasClass("bars")&&t.isOpen()&&0===r.parents("#leftsidebar").length&&(r.hasClass("js-right-sidebar")||n.fadeOut(),e.removeClass("overlay-open"))}),$.each($(".menu-toggle.toggled"),function(t,e){$(e).next().slideToggle(0)}),$.each($(".menu .list li.active"),function(t,e){var n=$(e).find("a:eq(0)");n.addClass("toggled"),n.next().show()}),$(".menu-toggle").on("click",function(t){var e=$(this),n=e.next();if($(e.parents("ul")[0]).hasClass("list")){var i=$(t.target).hasClass("menu-toggle")?t.target:$(t.target).parents(".menu-toggle");$.each($(".menu-toggle.toggled").not(i).next(),function(t,e){$(e).is(":visible")&&($(e).prev().toggleClass("toggled"),$(e).slideUp())})}e.toggleClass("toggled"),n.slideToggle(320)}),t.setMenuHeight(),t.checkStatuForResize(!0),$(window).resize(function(){t.setMenuHeight(),t.checkStatuForResize(!1)}),Waves.attach(".menu .list a",["waves-block"]),Waves.init()},setMenuHeight:function(t){if(void 0!==$.fn.slimScroll){var e=$.AdminBSB.options.leftSideBar,n=$(window).height()-($(".legal").outerHeight()+$(".user-info").outerHeight()+$(".navbar").innerHeight()),i=$(".list");if(i.slimscroll({height:n+"px",color:e.scrollColor,size:e.scrollWidth,alwaysVisible:e.scrollAlwaysVisible,borderRadius:e.scrollBorderRadius,railBorderRadius:e.scrollRailBorderRadius}),$.AdminBSB.options.leftSideBar.scrollActiveItemWhenPageLoad){var r=$(".menu .list li.active");if(r.length){var o=r[0].offsetTop;o>150&&i.slimscroll({scrollTo:o+"px"})}}}},checkStatuForResize:function(t){var e=$("body"),n=$(".navbar .navbar-header .bars"),i=e.width();t&&e.find(".content, .sidebar").addClass("no-animate").delay(1e3).queue(function(){$(this).removeClass("no-animate").dequeue()}),i<$.AdminBSB.options.leftSideBar.breakpointWidth?(e.addClass("ls-closed"),n.fadeIn()):(e.removeClass("ls-closed"),n.fadeOut())},isOpen:function(){return $("body").hasClass("overlay-open")}},$.AdminBSB.rightSideBar={activate:function(){var t=this,e=$("#rightsidebar"),n=$(".overlay");$(window).click(function(i){var r=$(i.target);"i"===i.target.nodeName.toLowerCase()&&(r=$(i.target).parent()),!r.hasClass("js-right-sidebar")&&t.isOpen()&&0===r.parents("#rightsidebar").length&&(r.hasClass("bars")||n.fadeOut(),e.removeClass("open"))}),$(".js-right-sidebar").on("click",function(){e.toggleClass("open"),t.isOpen()?n.fadeIn():n.fadeOut()})},isOpen:function(){return $(".right-sidebar").hasClass("open")}},$.AdminBSB.search={activate:function(){var t=this,e=$(".search-bar");$(".js-search").on("click",function(){t.showSearchBar()}),e.find(".close-search").on("click",function(){t.hideSearchBar()}),e.find('input[type="text"]').on("keyup",function(e){27==e.keyCode&&t.hideSearchBar()})},showSearchBar:function(){var t=$(".search-bar");t.addClass("open"),t.find('input[type="text"]').focus(),console.log(t)},hideSearchBar:function(){var t=$(".search-bar");t.removeClass("open"),t.find('input[type="text"]').val("")}},$.AdminBSB.navbar={activate:function(){var t=$("body"),e=$(".overlay");$(".bars").on("click",function(){t.toggleClass("overlay-open"),t.hasClass("overlay-open")?e.fadeIn():e.fadeOut()}),$('.nav [data-close="true"]').on("click",function(){var t=$(".navbar-toggle").is(":visible"),e=$(".navbar-collapse");t&&e.slideUp(function(){e.removeClass("in").removeAttr("style")})})}},$.AdminBSB.input={activate:function(t){(t=t||$("body")).find(".form-control").focus(function(){$(this).parent().addClass("focused")}),t.find(".form-control").focusout(function(){var t=$(this);t.parents(".form-group").hasClass("form-float")?""==t.val()&&t.parents(".form-line").removeClass("focused"):t.parents(".form-line").removeClass("focused")}),t.on("click",".form-float .form-line .form-label",function(){$(this).parent().find("input").focus()}),t.find(".form-control").each(function(){""!==$(this).val()&&$(this).parents(".form-line").addClass("focused")})}},$.AdminBSB.select={activate:function(){$.fn.selectpicker&&$("select:not(.ms)").selectpicker()}},$.AdminBSB.dropdownMenu={activate:function(){var t=this;$(".dropdown, .dropup, .btn-group").on({"show.bs.dropdown":function(){var e=t.dropdownEffect(this);t.dropdownEffectStart(e,e.effectIn)},"shown.bs.dropdown":function(){var e=t.dropdownEffect(this);e.effectIn&&e.effectOut&&t.dropdownEffectEnd(e,function(){})},"hide.bs.dropdown":function(e){var n=t.dropdownEffect(this);n.effectOut&&(e.preventDefault(),t.dropdownEffectStart(n,n.effectOut),t.dropdownEffectEnd(n,function(){n.dropdown.removeClass("open")}))}}),Waves.attach(".dropdown-menu li a",["waves-block"]),Waves.init()},dropdownEffect:function(t){var e=$.AdminBSB.options.dropdownMenu.effectIn,n=$.AdminBSB.options.dropdownMenu.effectOut,i=$(t),r=$(".dropdown-menu",t);if(i.length>0){var o=i.data("effect-in"),a=i.data("effect-out");void 0!==o&&(e=o),void 0!==a&&(n=a)}return{target:t,dropdown:i,dropdownMenu:r,effectIn:e,effectOut:n}},dropdownEffectStart:function(t,e){e&&(t.dropdown.addClass("dropdown-animating"),t.dropdownMenu.addClass("animated dropdown-animated"),t.dropdownMenu.addClass(e))},dropdownEffectEnd:function(t,e){t.dropdown.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){t.dropdown.removeClass("dropdown-animating"),t.dropdownMenu.removeClass("animated dropdown-animated"),t.dropdownMenu.removeClass(t.effectIn),t.dropdownMenu.removeClass(t.effectOut),"function"==typeof e&&e()})}};var t="Microsoft Edge",e="Internet Explorer 10",n="Internet Explorer 11";$.AdminBSB.browser={activate:function(){""!==this.getClassName()&&$("html").addClass(this.getClassName())},getBrowser:function(){var i=navigator.userAgent.toLowerCase();return/edge/i.test(i)?t:/rv:11/i.test(i)?n:/msie 10/i.test(i)?e:/opr/i.test(i)?"Opera":/chrome/i.test(i)?"Google Chrome":/firefox/i.test(i)?"Mozilla Firefox":navigator.userAgent.match(/Version\/[\d\.]+.*Safari/)?"Safari":void 0},getClassName:function(){var i=this.getBrowser();return i===t?"edge":i===n?"ie11":i===e?"ie10":"Opera"===i?"opera":"Google Chrome"===i?"chrome":"Mozilla Firefox"===i?"firefox":"Safari"===i?"safari":""}},$.AdminBSB.activateAll=function(){$.AdminBSB.browser.activate(),$.AdminBSB.leftSideBar.activate(),$.AdminBSB.rightSideBar.activate(),$.AdminBSB.navbar.activate(),$.AdminBSB.input.activate(),$.AdminBSB.select.activate(),$.AdminBSB.search.activate()}}(),$.AdminBSB.activateDemo=function(){activateNotificationAndTasksScroll(),setSkinListHeightAndScroll(),setSettingListHeightAndScroll(),$(window).resize(function(){setSkinListHeightAndScroll(),setSettingListHeightAndScroll()})},function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.extend(t.fn,{validate:function(e){if(this.length){var n=t.data(this[0],"validator");return n||(this.attr("novalidate","novalidate"),n=new t.validator(e,this[0]),t.data(this[0],"validator",n),n.settings.onsubmit&&(this.on("click.validate",":submit",function(e){n.settings.submitHandler&&(n.submitButton=e.target),t(this).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==t(this).attr("formnovalidate")&&(n.cancelSubmit=!0)}),this.on("submit.validate",function(e){function i(){var i,r;return!n.settings.submitHandler||(n.submitButton&&(i=t("<input type='hidden'/>").attr("name",n.submitButton.name).val(t(n.submitButton).val()).appendTo(n.currentForm)),r=n.settings.submitHandler.call(n,n.currentForm,e),n.submitButton&&i.remove(),void 0!==r&&r)}return n.settings.debug&&e.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,i()):n.form()?n.pendingRequest?(n.formSubmitted=!0,!1):i():(n.focusInvalid(),!1)})),n)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,n,i;return t(this[0]).is("form")?e=this.validate().form():(i=[],e=!0,n=t(this[0].form).validate(),this.each(function(){(e=n.element(this)&&e)||(i=i.concat(n.errorList))}),n.errorList=i),e},rules:function(e,n){var i,r,o,a,s,l,u=this[0];if(null!=u&&null!=u.form){if(e)switch(r=(i=t.data(u.form,"validator").settings).rules,o=t.validator.staticRules(u),e){case"add":t.extend(o,t.validator.normalizeRule(n)),delete o.messages,r[u.name]=o,n.messages&&(i.messages[u.name]=t.extend(i.messages[u.name],n.messages));break;case"remove":return n?(l={},t.each(n.split(/\s/),function(e,n){l[n]=o[n],delete o[n],"required"===n&&t(u).removeAttr("aria-required")}),l):(delete r[u.name],o)}return(a=t.validator.normalizeRules(t.extend({},t.validator.classRules(u),t.validator.attributeRules(u),t.validator.dataRules(u),t.validator.staticRules(u)),u)).required&&(s=a.required,delete a.required,a=t.extend({required:s},a),t(u).attr("aria-required","true")),a.remote&&(s=a.remote,delete a.remote,a=t.extend(a,{remote:s})),a}}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){var n=t(e).val();return null!==n&&!!t.trim(""+n)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,n){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=n,this.init()},t.validator.format=function(e,n){return 1===arguments.length?function(){var n=t.makeArray(arguments);return n.unshift(e),t.validator.format.apply(this,n)}:void 0===n?e:(arguments.length>2&&n.constructor!==Array&&(n=t.makeArray(arguments).slice(1)),n.constructor!==Array&&(n=[n]),t.each(n,function(t,n){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return n})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(e,n){9===n.which&&""===this.elementValue(e)||-1!==t.inArray(n.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,n,i){"radio"===e.type?this.findByName(e.name).addClass(n).removeClass(i):t(e).addClass(n).removeClass(i)},unhighlight:function(e,n,i){"radio"===e.type?this.findByName(e.name).removeClass(n).addClass(i):t(e).removeClass(n).addClass(i)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e,n=this.groups={};function i(e){!this.form&&this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0]);var n=t.data(this.form,"validator"),i="on"+e.type.replace(/^validate/,""),r=n.settings;r[i]&&!t(this).is(r.ignore)&&r[i].call(n,this,e)}t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){n[i]=e})}),t.each(e=this.settings.rules,function(n,i){e[n]=t.validator.normalizeRule(i)}),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable]",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),t(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var n,i,r=this.clean(e),o=this.validationTargetFor(r),a=this,s=!0;return void 0===o?delete this.invalid[r.name]:(this.prepareElement(o),this.currentElements=t(o),(i=this.groups[o.name])&&t.each(this.groups,function(t,e){e===i&&t!==o.name&&(r=a.validationTargetFor(a.clean(a.findByName(t))))&&r.name in a.invalid&&(a.currentElements.push(r),s=a.check(r)&&s)}),n=!1!==this.check(o),s=s&&n,this.invalid[o.name]=!n,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(e).attr("aria-invalid",!n)),s},showErrors:function(e){if(e){var n=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,function(t,e){return{message:t,element:n.findByName(e)[0]}}),this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,n=0;for(e in t)t[e]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,n={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var i=this.name||t(this).attr("name");return!i&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0]),!(i in n||!e.objectLength(t(this).rules())||(n[i]=!0,0))})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var n,i,r=t(e),o=e.type;return"radio"===o||"checkbox"===o?this.findByName(e.name).filter(":checked").val():"number"===o&&void 0!==e.validity?e.validity.badInput?"NaN":r.val():(n=e.hasAttribute("contenteditable")?r.text():r.val(),"file"===o?"C:\\fakepath\\"===n.substr(0,12)?n.substr(12):(i=n.lastIndexOf("/"))>=0?n.substr(i+1):(i=n.lastIndexOf("\\"))>=0?n.substr(i+1):n:"string"==typeof n?n.replace(/\r/g,""):n)},check:function(e){e=this.validationTargetFor(this.clean(e));var n,i,r,o=t(e).rules(),a=t.map(o,function(t,e){return e}).length,s=!1,l=this.elementValue(e);if("function"==typeof o.normalizer){if("string"!=typeof(l=o.normalizer.call(e,l)))throw new TypeError("The normalizer should return a string value.");delete o.normalizer}for(i in o){r={method:i,parameters:o[i]};try{if("dependency-mismatch"===(n=t.validator.methods[i].call(this,l,e,r.parameters))&&1===a){s=!0;continue}if(s=!1,"pending"===n)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!n)return this.formatAndAdd(e,r),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+r.method+"' method.",t),t instanceof TypeError&&(t.message+=".  Exception occurred when checking element "+e.id+", check the '"+r.method+"' method."),t}}if(!s)return this.objectLength(o)&&this.successList.push(e),!0},customDataMessage:function(e,n){return t(e).data("msg"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var n=this.settings.messages[t];return n&&(n.constructor===String?n:n[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,n){"string"==typeof n&&(n={method:n});var i=this.findDefined(this.customMessage(e.name,n.method),this.customDataMessage(e,n.method),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[n.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof i?i=i.call(this,n.parameters,e):r.test(i)&&(i=t.validator.format(i.replace(r,"{$1}"),n.parameters)),i},formatAndAdd:function(t,e){var n=this.defaultMessage(t,e);this.errorList.push({message:n,element:t,method:e.method}),this.errorMap[t.name]=n,this.submitted[t.name]=n},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,n;for(t=0;this.errorList[t];t++)n=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,n){var i,r,o,a,s=this.errorsFor(e),l=this.idOrName(e),u=t(e).attr("aria-describedby");s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(n)):(i=s=t("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(n||""),this.settings.wrapper&&(i=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,t(e)):i.insertAfter(e),s.is("label")?s.attr("for",l):0===s.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(o=s.attr("id"),u?u.match(new RegExp("\\b"+this.escapeCssMeta(o)+"\\b"))||(u+=" "+o):u=o,t(e).attr("aria-describedby",u),(r=this.groups[e.name])&&t.each((a=this).groups,function(e,n){n===r&&t("[name='"+a.escapeCssMeta(e)+"']",a.currentForm).attr("aria-describedby",s.attr("id"))}))),!n&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){var n=this.escapeCssMeta(this.idOrName(e)),i=t(e).attr("aria-describedby"),r="label[for='"+n+"'], label[for='"+n+"'] *";return i&&(r=r+", #"+this.escapeCssMeta(i).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,n){switch(n.nodeName.toLowerCase()){case"select":return t("option:selected",n).length;case"input":if(this.checkable(n))return this.findByName(n.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(e,n){return!!t(e,n.form).length},function:function(t,e){return t(e)}},optional:function(e){var n=this.elementValue(e);return!t.validator.methods.required.call(this,n,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,n){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),n&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!n&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,n){return n="string"==typeof n&&n||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:n})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,n){e.constructor===String?this.classRuleSettings[e]=n:t.extend(this.classRuleSettings,e)},classRules:function(e){var n={},i=t(e).attr("class");return i&&t.each(i.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(n,t.validator.classRuleSettings[this])}),n},normalizeAttributeRule:function(t,e,n,i){/min|max|step/.test(n)&&(null===e||/number|range|text/.test(e))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?t[n]=i:e===n&&"range"!==e&&(t[n]=!0)},attributeRules:function(e){var n,i,r={},o=t(e),a=e.getAttribute("type");for(n in t.validator.methods)"required"===n?(""===(i=e.getAttribute(n))&&(i=!0),i=!!i):i=o.attr(n),this.normalizeAttributeRule(r,a,n,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(e){var n,i,r={},o=t(e),a=e.getAttribute("type");for(n in t.validator.methods)i=o.data("rule"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()),this.normalizeAttributeRule(r,a,n,i);return r},staticRules:function(e){var n={},i=t.data(e.form,"validator");return i.settings.rules&&(n=t.validator.normalizeRule(i.settings.rules[e.name])||{}),n},normalizeRules:function(e,n){return t.each(e,function(i,r){if(!1!==r){if(r.param||r.depends){var o=!0;switch(typeof r.depends){case"string":o=!!t(r.depends,n.form).length;break;case"function":o=r.depends.call(n,n)}o?e[i]=void 0===r.param||r.param:(t.data(n.form,"validator").resetElements(t(n)),delete e[i])}}else delete e[i]}),t.each(e,function(i,r){e[i]=t.isFunction(r)&&"normalizer"!==i?r(n):r}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var n;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(n=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(n[0]),Number(n[1])]))}),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var n={};t.each(e.split(/\s/),function(){n[this]=!0}),e=n}return e},addMethod:function(e,n,i){t.validator.methods[e]=n,t.validator.messages[e]=void 0!==i?i:t.validator.messages[e],n.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,n,i){if(!this.depend(i,n))return"dependency-mismatch";if("select"===n.nodeName.toLowerCase()){var r=t(n).val();return r&&r.length>0}return this.checkable(n)?this.getLength(e,n)>0:e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[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])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(e,n,i){var r=t.isArray(e)?e.length:this.getLength(e,n);return this.optional(n)||r>=i},maxlength:function(e,n,i){var r=t.isArray(e)?e.length:this.getLength(e,n);return this.optional(n)||r<=i},rangelength:function(e,n,i){var r=t.isArray(e)?e.length:this.getLength(e,n);return this.optional(n)||r>=i[0]&&r<=i[1]},min:function(t,e,n){return this.optional(e)||t>=n},max:function(t,e,n){return this.optional(e)||t<=n},range:function(t,e,n){return this.optional(e)||t>=n[0]&&t<=n[1]},step:function(e,n,i){var r,o=t(n).attr("type"),a="Step attribute on input type "+o+" is not supported.",s=new RegExp("\\b"+o+"\\b"),l=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},u=function(t){return Math.round(t*Math.pow(10,r))},c=!0;if(o&&!s.test(["text","number","range"].join()))throw new Error(a);return r=l(i),(l(e)>r||u(e)%u(i)!=0)&&(c=!1),this.optional(n)||c},equalTo:function(e,n,i){var r=t(i);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){t(n).valid()}),e===r.val()},remote:function(e,n,i,r){if(this.optional(n))return"dependency-mismatch";var o,a,s,l=this.previousValue(n,r="string"==typeof r&&r||"remote");return this.settings.messages[n.name]||(this.settings.messages[n.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[n.name][r],this.settings.messages[n.name][r]=l.message,s=t.param(t.extend({data:e},(i="string"==typeof i&&{url:i}||i).data)),l.old===s?l.valid:(l.old=s,o=this,this.startRequest(n),(a={})[n.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:"validate"+n.name,dataType:"json",data:a,context:o.currentForm,success:function(t){var i,a,s,u=!0===t||"true"===t;o.settings.messages[n.name][r]=l.originalMessage,u?(s=o.formSubmitted,o.resetInternals(),o.toHide=o.errorsFor(n),o.formSubmitted=s,o.successList.push(n),o.invalid[n.name]=!1,o.showErrors()):(i={},a=t||o.defaultMessage(n,{method:r,parameters:e}),i[n.name]=l.message=a,o.invalid[n.name]=!0,o.showErrors(i)),l.valid=u,o.stopRequest(n,u)}},i)),"pending")}}});var e,n={};t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,i){var r=t.port;"abort"===t.mode&&(n[r]&&n[r].abort(),n[r]=i)}):(e=t.ajax,t.ajax=function(i){var r=("port"in i?i:t.ajaxSettings).port;return"abort"===("mode"in i?i:t.ajaxSettings).mode?(n[r]&&n[r].abort(),n[r]=e.apply(this,arguments),n[r]):e.apply(this,arguments)})});