-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbundle.js
More file actions
38 lines (38 loc) · 471 KB
/
bundle.js
File metadata and controls
38 lines (38 loc) · 471 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist",n(n.s=1)}([function(t,e,n){var i;
/*!
* jQuery JavaScript Library v3.4.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-05-01T21:04Z
*/!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],s=n.document,a=Object.getPrototypeOf,c=o.slice,l=o.concat,u=o.push,h=o.indexOf,p={},f=p.toString,d=p.hasOwnProperty,g=d.toString,v=g.call(Object),m={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},_=function(t){return null!=t&&t===t.window},b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,o=(n=n||s).createElement("script");if(o.text=t,e)for(i in b)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?p[f.call(t)]||"object":typeof t}var k=function(t,e){return new k.fn.init(t,e)},S=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function C(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!y(t)&&!_(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}k.fn=k.prototype={jquery:"3.4.1",constructor:k,length:0,toArray:function(){return c.call(this)},get:function(t){return null==t?c.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(c.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:u,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===c&&(s=this,a--);a<c;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(l&&i&&(k.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||k.isPlainObject(n)?n:{},r=!1,s[e]=k.extend(l,o,i)):void 0!==i&&(s[e]=i));return s},k.extend({expando:"jQuery"+("3.4.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]"!==f.call(t))&&(!(e=a(t))||"function"==typeof(n=d.call(e,"constructor")&&e.constructor)&&g.call(n)===v)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){x(t,{nonce:e&&e.nonce})},each:function(t,e){var n,i=0;if(C(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(S,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?k.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:h.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,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(C(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 l.apply([],s)},guid:1,support:m}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){p["[object "+e+"]"]=e.toLowerCase()}));var T=
/*!
* Sizzle CSS Selector Engine v2.3.4
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2019-04-08
*/
function(t){var e,n,i,r,o,s,a,c,l,u,h,p,f,d,g,v,m,y,_,b="sizzle"+1*new Date,x=t.document,w=0,k=0,S=ct(),C=ct(),T=ct(),A=ct(),N=function(t,e){return t===e&&(h=!0),0},M={}.hasOwnProperty,D=[],E=D.pop,O=D.push,j=D.push,R=D.slice,I=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",H="\\["+$+"*("+L+")(?:"+$+"*([*^$|!~]?=)"+$+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+$+"*\\]",W=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",q=new RegExp($+"+","g"),F=new RegExp("^"+$+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$+"+$","g"),B=new RegExp("^"+$+"*,"+$+"*"),z=new RegExp("^"+$+"*([>+~]|"+$+")"+$+"*"),Y=new RegExp($+"|>"),U=new RegExp(W),X=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+$+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$+"*((?:-\\d)?\\d*)"+$+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\([\\da-f]{1,6}"+$+"?|("+$+")|.)","ig"),nt=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)},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){p()},st=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(D=R.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(t){j={apply:D.length?function(t,e){O.apply(t,R.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(t,e,i,r){var o,a,l,u,h,d,m,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return i;if(!r&&((e?e.ownerDocument||e:x)!==f&&p(e),e=e||f,g)){if(11!==w&&(h=K.exec(t)))if(o=h[1]){if(9===w){if(!(l=e.getElementById(o)))return i;if(l.id===o)return i.push(l),i}else if(y&&(l=y.getElementById(o))&&_(e,l)&&l.id===o)return i.push(l),i}else{if(h[2])return j.apply(i,e.getElementsByTagName(t)),i;if((o=h[3])&&n.getElementsByClassName&&e.getElementsByClassName)return j.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(m=t,y=e,1===w&&Y.test(t)){for((u=e.getAttribute("id"))?u=u.replace(it,rt):e.setAttribute("id",u=b),a=(d=s(t)).length;a--;)d[a]="#"+u+" "+_t(d[a]);m=d.join(","),y=tt.test(t)&&mt(e.parentNode)||e}try{return j.apply(i,y.querySelectorAll(m)),i}catch(e){A(t,!0)}finally{u===b&&e.removeAttribute("id")}}}return c(t.replace(F,"$1"),e,i,r)}function ct(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function lt(t){return t[b]=!0,t}function ut(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function pt(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 ft(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 gt(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&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return lt((function(e){return e=+e,lt((function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},o=at.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!G.test(e||n&&n.nodeName||"HTML")},p=at.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:x;return s!==f&&9===s.nodeType&&s.documentElement?(d=(f=s).documentElement,g=!o(f),x!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),n.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ut((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=ut((function(t){return d.appendChild(t).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);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(et,nt);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)},m=[],v=[],(n.qsa=Z.test(f.querySelectorAll))&&(ut((function(t){d.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+$+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+$+"*(?:value|"+P+")"),t.querySelectorAll("[id~="+b+"-]").length||v.push("~="),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]")})),ut((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&&v.push("name"+$+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=Z.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut((function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),m.push("!=",W)})),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=Z.test(d.compareDocumentPosition),_=e||Z.test(d.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},N=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===x&&_(x,t)?-1:e===f||e.ownerDocument===x&&_(x,e)?1:u?I(u,t)-I(u,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,s=[t],a=[e];if(!r||!o)return t===f?-1:e===f?1:r?-1:o?1:u?I(u,t)-I(u,e):0;if(r===o)return pt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?pt(s[i],a[i]):s[i]===x?-1:a[i]===x?1:0},f):f},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&p(t),n.matchesSelector&&g&&!A[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){A(e,!0)}return at(e,f,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!==f&&p(t),_(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==f&&p(t);var r=i.attrHandle[e.toLowerCase()],o=r&&M.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},at.escape=function(t){return(t+"").replace(it,rt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],r=0,o=0;if(h=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(N),h){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return u=null,t},r=at.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=at.selectors={cacheLength:50,createPseudo:lt,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(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===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]||at.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]&&at.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&&U.test(n)&&(e=s(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(et,nt).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("(^|"+$+")"+t+"("+$+"|$)"))&&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=at.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(q," ")+" ").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),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,c){var l,u,h,p,f,d,g=o!==s?"nextSibling":"previousSibling",v=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!c&&!a,_=!1;if(v){if(o){for(;g;){for(p=e;p=p[g];)if(a?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?v.firstChild:v.lastChild],s&&y){for(_=(f=(l=(u=(h=(p=v)[b]||(p[b]={}))[p.uniqueID]||(h[p.uniqueID]={}))[t]||[])[0]===w&&l[1])&&l[2],p=f&&v.childNodes[f];p=++f&&p&&p[g]||(_=f=0)||d.pop();)if(1===p.nodeType&&++_&&p===e){u[t]=[w,f,_];break}}else if(y&&(_=f=(l=(u=(h=(p=e)[b]||(p[b]={}))[p.uniqueID]||(h[p.uniqueID]={}))[t]||[])[0]===w&&l[1]),!1===_)for(;(p=++f&&p&&p[g]||(_=f=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++_||(y&&((u=(h=p[b]||(p[b]={}))[p.uniqueID]||(h[p.uniqueID]={}))[t]=[w,_]),p!==e)););return(_-=r)===i||_%i==0&&_/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return r[b]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?lt((function(t,n){for(var i,o=r(t,e),s=o.length;s--;)t[i=I(t,o[s])]=!(n[i]=o[s])})):function(t){return r(t,0,n)}):r}},pseudos:{not:lt((function(t){var e=[],n=[],i=a(t.replace(F,"$1"));return i[b]?lt((function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:lt((function(t){return function(e){return at(t,e).length>0}})),contains:lt((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:lt((function(t){return X.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,nt).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===d},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!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 J.test(t.nodeName)},input:function(t){return Q.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:vt((function(){return[0]})),last:vt((function(t,e){return[e-1]})),eq:vt((function(t,e,n){return[n<0?n+e:n]})),even:vt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:vt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:vt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:vt((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]=ft(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=dt(e);function yt(){}function _t(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function bt(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=k++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,c){var l,u,h,p=[w,a];if(c){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,c))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(u=(h=e[b]||(e[b]={}))[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((l=u[o])&&l[0]===w&&l[1]===a)return p[2]=l[2];if(u[o]=p,p[2]=t(e,n,c))return!0}return!1}}function xt(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 wt(t,e,n,i,r){for(var o,s=[],a=0,c=t.length,l=null!=e;a<c;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),l&&e.push(a)));return s}function kt(t,e,n,i,r,o){return i&&!i[b]&&(i=kt(i)),r&&!r[b]&&(r=kt(r,o)),lt((function(o,s,a,c){var l,u,h,p=[],f=[],d=s.length,g=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)at(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),v=!t||!o&&e?g:wt(g,p,t,a,c),m=n?r||(o?t:d||i)?[]:s:v;if(n&&n(v,m,a,c),i)for(l=wt(m,f),i(l,[],a,c),u=l.length;u--;)(h=l[u])&&(m[f[u]]=!(v[f[u]]=h));if(o){if(r||t){if(r){for(l=[],u=m.length;u--;)(h=m[u])&&l.push(v[u]=h);r(null,m=[],l,c)}for(u=m.length;u--;)(h=m[u])&&(l=r?I(o,h):p[u])>-1&&(o[l]=!(s[l]=h))}}else m=wt(m===s?m.splice(d,m.length):m),r?r(null,s,m,c):j.apply(s,m)}))}function St(t){for(var e,n,r,o=t.length,s=i.relative[t[0].type],a=s||i.relative[" "],c=s?1:0,u=bt((function(t){return t===e}),a,!0),h=bt((function(t){return I(e,t)>-1}),a,!0),p=[function(t,n,i){var r=!s&&(i||n!==l)||((e=n).nodeType?u(t,n,i):h(t,n,i));return e=null,r}];c<o;c++)if(n=i.relative[t[c].type])p=[bt(xt(p),n)];else{if((n=i.filter[t[c].type].apply(null,t[c].matches))[b]){for(r=++c;r<o&&!i.relative[t[r].type];r++);return kt(c>1&&xt(p),c>1&&_t(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(F,"$1"),n,c<r&&St(t.slice(c,r)),r<o&&St(t=t.slice(r)),r<o&&_t(t))}p.push(n)}return xt(p)}return yt.prototype=i.filters=i.pseudos,i.setFilters=new yt,s=at.tokenize=function(t,e){var n,r,o,s,a,c,l,u=C[t+" "];if(u)return e?0:u.slice(0);for(a=t,c=[],l=i.preFilter;a;){for(s in n&&!(r=B.exec(a))||(r&&(a=a.slice(r[0].length)||a),c.push(o=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(F," ")}),a=a.slice(n.length)),i.filter)!(r=V[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?at.error(t):C(t,c).slice(0)},a=at.compile=function(t,e){var n,r=[],o=[],a=T[t+" "];if(!a){for(e||(e=s(t)),n=e.length;n--;)(a=St(e[n]))[b]?r.push(a):o.push(a);(a=T(t,function(t,e){var n=e.length>0,r=t.length>0,o=function(o,s,a,c,u){var h,d,v,m=0,y="0",_=o&&[],b=[],x=l,k=o||r&&i.find.TAG("*",u),S=w+=null==x?1:Math.random()||.1,C=k.length;for(u&&(l=s===f||s||u);y!==C&&null!=(h=k[y]);y++){if(r&&h){for(d=0,s||h.ownerDocument===f||(p(h),a=!g);v=t[d++];)if(v(h,s||f,a)){c.push(h);break}u&&(w=S)}n&&((h=!v&&h)&&m--,o&&_.push(h))}if(m+=y,n&&y!==m){for(d=0;v=e[d++];)v(_,b,s,a);if(o){if(m>0)for(;y--;)_[y]||b[y]||(b[y]=E.call(c));b=wt(b)}j.apply(c,b),u&&!o&&b.length>0&&m+e.length>1&&at.uniqueSort(c)}return u&&(w=S,l=x),_};return n?lt(o):o}(o,r))).selector=t}return a},c=at.select=function(t,e,n,r){var o,c,l,u,h,p="function"==typeof t&&t,f=!r&&s(t=p.selector||t);if(n=n||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===e.nodeType&&g&&i.relative[c[1].type]){if(!(e=(i.find.ID(l.matches[0].replace(et,nt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(o=V.needsContext.test(t)?0:c.length;o--&&(l=c[o],!i.relative[u=l.type]);)if((h=i.find[u])&&(r=h(l.matches[0].replace(et,nt),tt.test(c[0].type)&&mt(e.parentNode)||e))){if(c.splice(o,1),!(t=r.length&&_t(c)))return j.apply(n,r),n;break}}return(p||a(t,f))(r,e,!g,n,!e||tt.test(t)&&mt(e.parentNode)||e),n},n.sortStable=b.split("").sort(N).join("")===b,n.detectDuplicates=!!h,p(),n.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ut((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ht("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ut((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ht("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||ht(P,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),at}(n);k.find=T,k.expr=T.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=T.uniqueSort,k.text=T.getText,k.isXMLDoc=T.isXML,k.contains=T.contains,k.escapeSelector=T.escape;var A=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&k(t).is(n))break;i.push(t)}return i},N=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},M=k.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,n){return y(e)?k.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?k.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?k.grep(t,(function(t){return h.call(e,t)>-1!==n})):k.filter(e,t,n)}k.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?k.find.matchesSelector(i,t)?[i]:[]:k.find.matches(t,k.grep(e,(function(t){return 1===t.nodeType})))},k.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(k(t).filter((function(){for(e=0;e<i;e++)if(k.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)k.find(t,r[e],n);return i>1?k.uniqueSort(n):n},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&M.test(t)?k(t):t||[],!1).length}});var j,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||j,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:R.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:s,!0)),E.test(i[1])&&k.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=s.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,j=k(s);var I=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(k.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&k(t);if(!M.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?h.call(k(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,n){return A(t,"parentNode",n)},next:function(t){return $(t,"nextSibling")},prev:function(t){return $(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,n){return A(t,"nextSibling",n)},prevUntil:function(t,e,n){return A(t,"previousSibling",n)},siblings:function(t){return N((t.parentNode||{}).firstChild,t)},children:function(t){return N(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(D(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},(function(t,e){k.fn[t]=function(n,i){var r=k.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=k.filter(i,r)),this.length>1&&(P[t]||k.uniqueSort(r),I.test(t)&&r.reverse()),this.pushStack(r)}}));var L=/[^\x20\t\r\n\f]+/g;function H(t){return t}function W(t){throw t}function q(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return k.each(t.match(L)||[],(function(t,n){e[n]=!0})),e}(t):k.extend({},t);var e,n,i,r,o=[],s=[],a=-1,c=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){k.each(n,(function(n,i){y(i)?t.unique&&l.has(i)||o.push(i):i&&i.length&&"string"!==w(i)&&e(i)}))}(arguments),n&&!e&&c()),this},remove:function(){return k.each(arguments,(function(t,e){for(var n;(n=k.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.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 k.Deferred((function(n){k.each(e,(function(e,i){var r=y(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function s(t,e,i,r){return function(){var a=this,c=arguments,l=function(){var n,l;if(!(t<o)){if((n=i.apply(a,c))===e.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(l)?r?l.call(n,s(o,e,H,r),s(o,e,W,r)):(o++,l.call(n,s(o,e,H,r),s(o,e,W,r),s(o,e,H,e.notifyWith))):(i!==H&&(a=void 0,c=[n]),(r||e.resolveWith)(a,c))}},u=r?l:function(){try{l()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.stackTrace),t+1>=o&&(i!==W&&(a=void 0,c=[n]),e.rejectWith(a,c))}};t?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred((function(n){e[0][3].add(s(0,n,y(r)?r:H,n.notifyWith)),e[1][3].add(s(0,n,y(t)?t:H)),e[2][3].add(s(0,n,y(i)?i:W))})).promise()},promise:function(t){return null!=t?k.extend(t,r):r}},o={};return k.each(e,(function(t,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add((function(){i=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=c.call(arguments),o=k.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?c.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(q(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||y(r[n]&&r[n].then)))return o.then();for(;n--;)q(r[n],s(n),o.reject);return o.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&F.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){n.setTimeout((function(){throw t}))};var B=k.Deferred();function z(){s.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z),k.ready()}k.fn.ready=function(t){return B.then(t).catch((function(t){k.readyException(t)})),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||B.resolveWith(s,[k]))}}),k.ready.then=B.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(k.ready):(s.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z));var Y=function(t,e,n,i,r,o,s){var a=0,c=t.length,l=null==n;if("object"===w(n))for(a in r=!0,n)Y(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,y(i)||(s=!0),l&&(s?(e.call(t,i),e=null):(l=e,e=function(t,e,n){return l.call(k(t),n)})),e))for(;a<c;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:l?e.call(t):c?e(t[0],n):o},U=/^-ms-/,X=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function G(t){return t.replace(U,"ms-").replace(X,V)}var Q=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function J(){this.expando=k.expando+J.uid++}J.uid=1,J.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Q(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[G(e)]=n;else for(i in e)r[G(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][G(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(G):(e=G(e))in i?[e]:e.match(L)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||k.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&&!k.isEmptyObject(e)}};var Z=new J,K=new J,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function nt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(n)}catch(t){}K.set(t,e,n)}else n=void 0;return n}k.extend({hasData:function(t){return K.hasData(t)||Z.hasData(t)},data:function(t,e,n){return K.access(t,e,n)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,n){return Z.access(t,e,n)},_removeData:function(t,e){Z.remove(t,e)}}),k.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=K.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=G(i.slice(5)),nt(o,i,r[i]));Z.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){K.set(this,t)})):Y(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=K.get(o,t))?n:void 0!==(n=nt(o,t))?n:void 0;this.each((function(){K.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),k.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Z.get(t,e),n&&(!i||Array.isArray(n)?i=Z.access(t,e,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),i=n.length,r=n.shift(),o=k._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){k.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Z.get(t,n)||Z.access(t,n,{empty:k.Callbacks("once memory").add((function(){Z.remove(t,[e+"queue",n])}))})}}),k.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?k.queue(this[0],t):void 0===e?this:this.each((function(){var n=k.queue(this,t,e);k._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&k.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){k.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=k.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Z.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],st=s.documentElement,at=function(t){return k.contains(t.ownerDocument,t)},ct={composed:!0};st.getRootNode&&(at=function(t){return k.contains(t.ownerDocument,t)||t.getRootNode(ct)===t.ownerDocument});var lt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===k.css(t,"display")},ut=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in r=n.apply(t,i||[]),e)t.style[o]=s[o];return r};function ht(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return k.css(t,e,"")},c=a(),l=n&&n[3]||(k.cssNumber[e]?"":"px"),u=t.nodeType&&(k.cssNumber[e]||"px"!==l&&+c)&&rt.exec(k.css(t,e));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;s--;)k.style(t,e,u+l),(1-o)*(1-(o=a()/c||.5))<=0&&(s=0),u/=o;u*=2,k.style(t,e,u+l),n=n||[]}return n&&(u=+u||+c||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}var pt={};function ft(t){var e,n=t.ownerDocument,i=t.nodeName,r=pt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=k.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),pt[i]=r,r)}function dt(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=Z.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&<(i)&&(r[o]=ft(i))):"none"!==n&&(r[o]="none",Z.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}k.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){lt(this)?k(this).show():k(this).hide()}))}});var gt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i,yt={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 _t(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?k.merge([t],n):n}function bt(t,e){for(var n=0,i=t.length;n<i;n++)Z.set(t[n],"globalEval",!e||Z.get(e[n],"globalEval"))}yt.optgroup=yt.option,yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td;var xt,wt,kt=/<|&#?\w+;/;function St(t,e,n,i,r){for(var o,s,a,c,l,u,h=e.createDocumentFragment(),p=[],f=0,d=t.length;f<d;f++)if((o=t[f])||0===o)if("object"===w(o))k.merge(p,o.nodeType?[o]:o);else if(kt.test(o)){for(s=s||h.appendChild(e.createElement("div")),a=(vt.exec(o)||["",""])[1].toLowerCase(),c=yt[a]||yt._default,s.innerHTML=c[1]+k.htmlPrefilter(o)+c[2],u=c[0];u--;)s=s.lastChild;k.merge(p,s.childNodes),(s=h.firstChild).textContent=""}else p.push(e.createTextNode(o));for(h.textContent="",f=0;o=p[f++];)if(i&&k.inArray(o,i)>-1)r&&r.push(o);else if(l=at(o),s=_t(h.appendChild(o),"script"),l&&bt(s),n)for(u=0;o=s[u++];)mt.test(o.type||"")&&n.push(o);return h}xt=s.createDocumentFragment().appendChild(s.createElement("div")),(wt=s.createElement("input")).setAttribute("type","radio"),wt.setAttribute("checked","checked"),wt.setAttribute("name","t"),xt.appendChild(wt),m.checkClone=xt.cloneNode(!0).cloneNode(!0).lastChild.checked,xt.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!xt.cloneNode(!0).lastChild.defaultValue;var Ct=/^key/,Tt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,At=/^([^.]*)(?:\.(.+)|)/;function Nt(){return!0}function Mt(){return!1}function Dt(t,e){return t===function(){try{return s.activeElement}catch(t){}}()==("focus"===e)}function Et(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Et(t,a,n,i,e[a],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=Mt;else if(!r)return t;return 1===o&&(s=r,(r=function(t){return k().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),t.each((function(){k.event.add(this,e,r,i,n)}))}function Ot(t,e,n){n?(Z.set(t,e,!1),k.event.add(t,e,{namespace:!1,handler:function(t){var i,r,o=Z.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(k.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=c.call(arguments),Z.set(this,e,o),i=n(this,e),this[e](),o!==(r=Z.get(this,e))||i?Z.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else o.length&&(Z.set(this,e,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Z.get(t,e)&&k.event.add(t,e,Nt)}k.event={global:{},add:function(t,e,n,i,r){var o,s,a,c,l,u,h,p,f,d,g,v=Z.get(t);if(v)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&k.find.matchesSelector(st,r),n.guid||(n.guid=k.guid++),(c=v.events)||(c=v.events={}),(s=v.handle)||(s=v.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(L)||[""]).length;l--;)f=g=(a=At.exec(e[l])||[])[1],d=(a[2]||"").split(".").sort(),f&&(h=k.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=k.event.special[f]||{},u=k.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:d.join(".")},o),(p=c[f])||((p=c[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,d,s)||t.addEventListener&&t.addEventListener(f,s)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),k.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,s,a,c,l,u,h,p,f,d,g,v=Z.hasData(t)&&Z.get(t);if(v&&(c=v.events)){for(l=(e=(e||"").match(L)||[""]).length;l--;)if(f=g=(a=At.exec(e[l])||[])[1],d=(a[2]||"").split(".").sort(),f){for(h=k.event.special[f]||{},p=c[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)u=p[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,h.remove&&h.remove.call(t,u));s&&!p.length&&(h.teardown&&!1!==h.teardown.call(t,d,v.handle)||k.removeEvent(t,f,v.handle),delete c[f])}else for(f in c)k.event.remove(t,f+e[l],n,i,!0);k.isEmptyObject(c)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=k.event.fix(t),c=new Array(arguments.length),l=(Z.get(this,"events")||{})[a.type]||[],u=k.event.special[a.type]||{};for(c[0]=a,e=1;e<arguments.length;e++)c[e]=arguments[e];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(s=k.event.handlers.call(this,a,l),e=0;(r=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,c))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,r,o,s,a=[],c=e.delegateCount,l=t.target;if(c&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],s={},n=0;n<c;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?k(r,this).index(l)>-1:k.find(r,this,null,[l]).length),s[r]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return l=this,c<e.length&&a.push({elem:l,handlers:e.slice(c)}),a},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(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[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return gt.test(e.type)&&e.click&&D(e,"input")&&Ot(e,"click",Nt),!1},trigger:function(t){var e=this||t;return gt.test(e.type)&&e.click&&D(e,"input")&&Ot(e,"click"),!0},_default:function(t){var e=t.target;return gt.test(e.type)&&e.click&&D(e,"input")&&Z.get(e,"click")||D(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Nt:Mt,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&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Mt,isPropagationStopped:Mt,isImmediatePropagationStopped:Mt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Nt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Nt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Nt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Ct.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Tt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(t,e){k.event.special[t]={setup:function(){return Ot(this,t,Dt),!1},trigger:function(){return Ot(this,t),!0},delegateType:e}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){k.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||k.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),k.fn.extend({on:function(t,e,n,i){return Et(this,t,e,n,i)},one:function(t,e,n,i){return Et(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,k(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=Mt),this.each((function(){k.event.remove(this,t,n,e)}))}});var jt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Rt=/<script|<style|<link/i,It=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function $t(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function Lt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Wt(t,e){var n,i,r,o,s,a,c,l;if(1===e.nodeType){if(Z.hasData(t)&&(o=Z.access(t),s=Z.set(e,o),l=o.events))for(r in delete s.handle,s.events={},l)for(n=0,i=l[r].length;n<i;n++)k.event.add(e,r,l[r][n]);K.hasData(t)&&(a=K.access(t),c=k.extend({},a),K.set(e,c))}}function qt(t,e){var n=e.nodeName.toLowerCase();"input"===n&>.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ft(t,e,n,i){e=l.apply([],e);var r,o,s,a,c,u,h=0,p=t.length,f=p-1,d=e[0],g=y(d);if(g||p>1&&"string"==typeof d&&!m.checkClone&&It.test(d))return t.each((function(r){var o=t.eq(r);g&&(e[0]=d.call(this,r,o.html())),Ft(o,e,n,i)}));if(p&&(o=(r=St(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=k.map(_t(r,"script"),Lt)).length;h<p;h++)c=r,h!==f&&(c=k.clone(c,!0,!0),a&&k.merge(s,_t(c,"script"))),n.call(t[h],c,h);if(a)for(u=s[s.length-1].ownerDocument,k.map(s,Ht),h=0;h<a;h++)c=s[h],mt.test(c.type||"")&&!Z.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")}):x(c.textContent.replace(Pt,""),c,u))}return t}function Bt(t,e,n){for(var i,r=e?k.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||k.cleanData(_t(i)),i.parentNode&&(n&&at(i)&&bt(_t(i,"script")),i.parentNode.removeChild(i));return t}k.extend({htmlPrefilter:function(t){return t.replace(jt,"<$1></$2>")},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),c=at(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(s=_t(a),i=0,r=(o=_t(t)).length;i<r;i++)qt(o[i],s[i]);if(e)if(n)for(o=o||_t(t),s=s||_t(a),i=0,r=o.length;i<r;i++)Wt(o[i],s[i]);else Wt(t,a);return(s=_t(a,"script")).length>0&&bt(s,!c&&_t(t,"script")),a},cleanData:function(t){for(var e,n,i,r=k.event.special,o=0;void 0!==(n=t[o]);o++)if(Q(n)){if(e=n[Z.expando]){if(e.events)for(i in e.events)r[i]?k.event.remove(n,i):k.removeEvent(n,i,e.handle);n[Z.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return Y(this,(function(t){return void 0===t?k.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 Ft(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||$t(this,t).appendChild(t)}))},prepend:function(){return Ft(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=$t(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ft(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&&(k.cleanData(_t(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return k.clone(this,t,e)}))},html:function(t){return Y(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&&!Rt.test(t)&&!yt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(k.cleanData(_t(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,(function(e){var n=this.parentNode;k.inArray(this,t)<0&&(k.cleanData(_t(this)),n&&n.replaceChild(e,this))}),t)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){k.fn[t]=function(t){for(var n,i=[],r=k(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),k(r[s])[e](n),u.apply(i,n.get());return this.pushStack(i)}}));var zt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Yt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Ut=new RegExp(ot.join("|"),"i");function Xt(t,e,n){var i,r,o,s,a=t.style;return(n=n||Yt(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||at(t)||(s=k.style(t,e)),!m.pixelBoxStyles()&&zt.test(s)&&Ut.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Vt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",st.appendChild(l).appendChild(u);var t=n.getComputedStyle(u);i="1%"!==t.top,c=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),st.removeChild(l),u=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,a,c,l=s.createElement("div"),u=s.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),o}}))}();var Gt=["Webkit","Moz","ms"],Qt=s.createElement("div").style,Jt={};function Zt(t){var e=k.cssProps[t]||Jt[t];return e||(t in Qt?t:Jt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Gt.length;n--;)if((t=Gt[n]+e)in Qt)return t}(t)||t)}var Kt=/^(none|table(?!-c[ea]).+)/,te=/^--/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"};function ie(t,e,n){var i=rt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function re(t,e,n,i,r,o){var s="width"===e?1:0,a=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=k.css(t,n+ot[s],!0,r)),i?("content"===n&&(c-=k.css(t,"padding"+ot[s],!0,r)),"margin"!==n&&(c-=k.css(t,"border"+ot[s]+"Width",!0,r))):(c+=k.css(t,"padding"+ot[s],!0,r),"padding"!==n?c+=k.css(t,"border"+ot[s]+"Width",!0,r):a+=k.css(t,"border"+ot[s]+"Width",!0,r));return!i&&o>=0&&(c+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-c-a-.5))||0),c}function oe(t,e,n){var i=Yt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===k.css(t,"boxSizing",!1,i),o=r,s=Xt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(zt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&r||"auto"===s||!parseFloat(s)&&"inline"===k.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===k.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+re(t,e,n||(r?"border":"content"),o,i,s)+"px"}function se(t,e,n,i,r){return new se.prototype.init(t,e,n,i,r)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Xt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=G(e),c=te.test(e),l=t.style;if(c||(e=Zt(a)),s=k.cssHooks[e]||k.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e];"string"===(o=typeof n)&&(r=rt.exec(n))&&r[1]&&(n=ht(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=r&&r[3]||(k.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(c?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,i){var r,o,s,a=G(e);return te.test(e)||(e=Zt(a)),(s=k.cssHooks[e]||k.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Xt(t,e,i)),"normal"===r&&e in ne&&(r=ne[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),k.each(["height","width"],(function(t,e){k.cssHooks[e]={get:function(t,n,i){if(n)return!Kt.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?oe(t,e,i):ut(t,ee,(function(){return oe(t,e,i)}))},set:function(t,n,i){var r,o=Yt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===k.css(t,"boxSizing",!1,o),c=i?re(t,e,i,a,o):0;return a&&s&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-re(t,e,"border",!1,o)-.5)),c&&(r=rt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=k.css(t,e)),ie(0,n,c)}}})),k.cssHooks.marginLeft=Vt(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Xt(t,"marginLeft"))||t.getBoundingClientRect().left-ut(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(t,e){k.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ot[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(k.cssHooks[t+e].set=ie)})),k.fn.extend({css:function(t,e){return Y(this,(function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Yt(t),r=e.length;s<r;s++)o[e[s]]=k.css(t,e[s],!1,i);return o}return void 0!==n?k.style(t,e,n):k.css(t,e)}),t,e,arguments.length>1)}}),k.Tween=se,se.prototype={constructor:se,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return t&&t.get?t.get(this):se.propHooks._default.get(this)},run:function(t){var e,n=se.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=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):se.propHooks._default.set(this),this}},se.prototype.init.prototype=se.prototype,se.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=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[Zt(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},se.propHooks.scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=se.prototype.init,k.fx.step={};var ae,ce,le=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function he(){ce&&(!1===s.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(he):n.setTimeout(he,k.fx.interval),k.fx.tick())}function pe(){return n.setTimeout((function(){ae=void 0})),ae=Date.now()}function fe(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ot[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function de(t,e,n){for(var i,r=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function ge(t,e,n){var i,r,o=0,s=ge.prefilters.length,a=k.Deferred().always((function(){delete c.elem})),c=function(){if(r)return!1;for(var e=ae||pe(),n=Math.max(0,l.startTime+l.duration-e),i=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(i);return a.notifyWith(t,[l,i,n]),i<1&&s?n:(s||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:e,originalOptions:n,startTime:ae||pe(),duration:n.duration,tweens:[],createTween:function(e,n){var i=k.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){var n=0,i=e?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),u=l.props;for(!function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=G(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=k.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,l.opts.specialEasing);o<s;o++)if(i=ge.prefilters[o].call(l,t,u,l.opts))return y(i.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return k.map(u,de,l),y(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),k.fx.timer(k.extend(c,{elem:t,anim:l,queue:l.opts.queue})),l}k.Animation=k.extend(ge,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ht(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(L);for(var n,i=0,r=t.length;i<r;i++)n=t[i],ge.tweeners[n]=ge.tweeners[n]||[],ge.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,c,l,u,h="width"in e||"height"in e,p=this,f={},d=t.style,g=t.nodeType&<(t),v=Z.get(t,"fxshow");for(i in n.queue||(null==(s=k._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always((function(){p.always((function(){s.unqueued--,k.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],le.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!v||void 0===v[i])continue;g=!0}f[i]=v&&v[i]||k.style(t,i)}if((c=!k.isEmptyObject(e))||!k.isEmptyObject(f))for(i in h&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(l=v&&v.display)&&(l=Z.get(t,"display")),"none"===(u=k.css(t,"display"))&&(l?u=l:(dt([t],!0),l=t.style.display||l,u=k.css(t,"display"),dt([t]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===k.css(t,"float")&&(c||(p.done((function(){d.display=l})),null==l&&(u=d.display,l="none"===u?"":u)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",p.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}))),c=!1,f)c||(v?"hidden"in v&&(g=v.hidden):v=Z.access(t,"fxshow",{display:l}),o&&(v.hidden=!g),g&&dt([t],!0),p.done((function(){for(i in g||dt([t]),Z.remove(t,"fxshow"),f)k.style(t,i,f[i])}))),c=de(g?v[i]:0,i,p),i in v||(v[i]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(t,e){e?ge.prefilters.unshift(t):ge.prefilters.push(t)}}),k.speed=function(t,e,n){var i=t&&"object"==typeof t?k.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(t,e,n,i){return this.filter(lt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=k.isEmptyObject(t),o=k.speed(e,n,i),s=function(){var e=ge(this,k.extend({},t),o);(r||Z.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},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=k.timers,s=Z.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ue.test(r)&&i(s[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||k.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=Z.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=k.timers,s=i?i.length:0;for(n.finish=!0,k.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<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(t,e){var n=k.fn[e];k.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(fe(e,!0),t,i,r)}})),k.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){k.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),k.timers=[],k.fx.tick=function(){var t,e=0,n=k.timers;for(ae=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||k.fx.stop(),ae=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ce||(ce=!0,he())},k.fx.stop=function(){ce=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(t,e){return t=k.fx&&k.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=s.createElement("input"),e=s.createElement("select").appendChild(s.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=s.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var ve,me=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return Y(this,k.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){k.removeAttr(this,t)}))}}),k.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,n):(1===o&&k.isXMLDoc(t)||(r=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?ve:void 0)),void 0!==n?null===n?void k.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=k.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&D(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(L);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),ve={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=me[e]||k.find.attr;me[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=me[s],me[s]=r,r=null!=n(t,e,i)?s:null,me[s]=o),r}}));var ye=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function be(t){return(t.match(L)||[]).join(" ")}function xe(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(L)||[]}k.fn.extend({prop:function(t,e){return Y(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[k.propFix[t]||t]}))}}),k.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,r=k.propHooks[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=k.find.attr(t,"tabindex");return e?parseInt(e,10):ye.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,c=0;if(y(t))return this.each((function(e){k(this).addClass(t.call(this,e,xe(this)))}));if((e=we(t)).length)for(;n=this[c++];)if(r=xe(n),i=1===n.nodeType&&" "+be(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=be(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,c=0;if(y(t))return this.each((function(e){k(this).removeClass(t.call(this,e,xe(this)))}));if(!arguments.length)return this.attr("class","");if((e=we(t)).length)for(;n=this[c++];)if(r=xe(n),i=1===n.nodeType&&" "+be(r)+" "){for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=be(i))&&n.setAttribute("class",a)}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):y(t)?this.each((function(n){k(this).toggleClass(t.call(this,n,xe(this),e),e)})):this.each((function(){var e,r,o,s;if(i)for(r=0,o=k(this),s=we(t);e=s[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=xe(this))&&Z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Z.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+be(xe(n))+" ").indexOf(e)>-1)return!0;return!1}});var ke=/\r/g;k.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,k(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,(function(t){return null==t?"":t+""}))),(e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(ke,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:be(k.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],c=s?o+1:r.length;for(i=o<0?c:s?o:0;i<c;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(e=k(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=k.makeArray(e),s=r.length;s--;)((i=r[s]).selected=k.inArray(k.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},m.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),m.focusin="onfocusin"in n;var Se=/^(?:focusinfocus|focusoutblur)$/,Ce=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,i,r){var o,a,c,l,u,h,p,f,g=[i||s],v=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(a=f=c=i=i||s,3!==i.nodeType&&8!==i.nodeType&&!Se.test(v+k.event.triggered)&&(v.indexOf(".")>-1&&(m=v.split("."),v=m.shift(),m.sort()),u=v.indexOf(":")<0&&"on"+v,(t=t[k.expando]?t:new k.Event(v,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:k.makeArray(e,[t]),p=k.event.special[v]||{},r||!p.trigger||!1!==p.trigger.apply(i,e))){if(!r&&!p.noBubble&&!_(i)){for(l=p.delegateType||v,Se.test(l+v)||(a=a.parentNode);a;a=a.parentNode)g.push(a),c=a;c===(i.ownerDocument||s)&&g.push(c.defaultView||c.parentWindow||n)}for(o=0;(a=g[o++])&&!t.isPropagationStopped();)f=a,t.type=o>1?l:p.bindType||v,(h=(Z.get(a,"events")||{})[t.type]&&Z.get(a,"handle"))&&h.apply(a,e),(h=u&&a[u])&&h.apply&&Q(a)&&(t.result=h.apply(a,e),!1===t.result&&t.preventDefault());return t.type=v,r||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),e)||!Q(i)||u&&y(i[v])&&!_(i)&&((c=i[u])&&(i[u]=null),k.event.triggered=v,t.isPropagationStopped()&&f.addEventListener(v,Ce),i[v](),t.isPropagationStopped()&&f.removeEventListener(v,Ce),k.event.triggered=void 0,c&&(i[u]=c)),t.result}},simulate:function(t,e,n){var i=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(i,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each((function(){k.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}}),m.focusin||k.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){k.event.simulate(e,t.target,k.event.fix(t))};k.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Z.access(i,e);r||i.addEventListener(t,n,!0),Z.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Z.access(i,e)-1;r?Z.access(i,e,r):(i.removeEventListener(t,n,!0),Z.remove(i,e))}}}));var Te=n.location,Ae=Date.now(),Ne=/\?/;k.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+t),e};var Me=/\[\]$/,De=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function je(t,e,n,i){var r;if(Array.isArray(e))k.each(e,(function(e,r){n||Me.test(t)?i(t,r):je(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==w(e))i(t,e);else for(r in e)je(t+"["+r+"]",e[r],n,i)}k.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,(function(){r(this.name,this.value)}));else for(n in t)je(n,t[n],e,r);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Oe.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!gt.test(t))})).map((function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(t){return{name:e.name,value:t.replace(De,"\r\n")}})):{name:e.name,value:n.replace(De,"\r\n")}})).get()}});var Re=/%20/g,Ie=/#.*$/,Pe=/([?&])_=[^&]*/,$e=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,He=/^\/\//,We={},qe={},Fe="*/".concat("*"),Be=s.createElement("a");function ze(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(L)||[];if(y(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ye(t,e,n,i){var r={},o=t===qe;function s(a){var c;return r[a]=!0,k.each(t[a]||[],(function(t,a){var l=a(e,n,i);return"string"!=typeof l||o||r[l]?o?!(c=l):void 0:(e.dataTypes.unshift(l),s(l),!1)})),c}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Ue(t,e){var n,i,r=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&k.extend(!0,t,i),t}Be.href=Te.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,k.ajaxSettings),e):Ue(k.ajaxSettings,t)},ajaxPrefilter:ze(We),ajaxTransport:ze(qe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,c,l,u,h,p,f,d=k.ajaxSetup({},e),g=d.context||d,v=d.context&&(g.nodeType||g.jquery)?k(g):k.event,m=k.Deferred(),y=k.Callbacks("once memory"),_=d.statusCode||{},b={},x={},w="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=$e.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)S.always(t[S.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||w;return i&&i.abort(e),C(0,e),this}};if(m.promise(S),d.url=((t||d.url||Te.href)+"").replace(He,Te.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(L)||[""],null==d.crossDomain){l=s.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Be.protocol+"//"+Be.host!=l.protocol+"//"+l.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=k.param(d.data,d.traditional)),Ye(We,d,e,S),u)return S;for(p in(h=k.event&&d.global)&&0==k.active++&&k.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Le.test(d.type),r=d.url.replace(Ie,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Re,"+")):(f=d.url.slice(r.length),d.data&&(d.processData||"string"==typeof d.data)&&(r+=(Ne.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(Pe,"$1"),f=(Ne.test(r)?"&":"?")+"_="+Ae+++f),d.url=r+f),d.ifModified&&(k.lastModified[r]&&S.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&S.setRequestHeader("If-None-Match",k.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Fe+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(p,d.headers[p]);if(d.beforeSend&&(!1===d.beforeSend.call(g,S,d)||u))return S.abort();if(w="abort",y.add(d.complete),S.done(d.success),S.fail(d.error),i=Ye(qe,d,e,S)){if(S.readyState=1,h&&v.trigger("ajaxSend",[S,d]),u)return S;d.async&&d.timeout>0&&(c=n.setTimeout((function(){S.abort("timeout")}),d.timeout));try{u=!1,i.send(b,C)}catch(t){if(u)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,s,a){var l,p,f,b,x,w=e;u||(u=!0,c&&n.clearTimeout(c),i=void 0,o=a||"",S.readyState=t>0?4:0,l=t>=200&&t<300||304===t,s&&(b=function(t,e,n){for(var i,r,o,s,a=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){c.unshift(r);break}if(c[0]in n)o=c[0];else{for(r in n){if(!c[0]||t.converters[r+" "+c[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==c[0]&&c.unshift(o),n[o]}(d,S,s)),b=function(t,e,n,i){var r,o,s,a,c,l={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!c&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(s=l[c+" "+o]||l["* "+o]))for(r in l)if((a=r.split(" "))[1]===o&&(s=l[c+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[r]:!0!==l[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:e}}(d,b,S,l),l?(d.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=x),(x=S.getResponseHeader("etag"))&&(k.etag[r]=x)),204===t||"HEAD"===d.type?w="nocontent":304===t?w="notmodified":(w=b.state,p=b.data,l=!(f=b.error))):(f=w,!t&&w||(w="error",t<0&&(t=0))),S.status=t,S.statusText=(e||w)+"",l?m.resolveWith(g,[p,w,S]):m.rejectWith(g,[S,w,f]),S.statusCode(_),_=void 0,h&&v.trigger(l?"ajaxSuccess":"ajaxError",[S,d,l?p:f]),y.fireWith(g,[S,w]),h&&(v.trigger("ajaxComplete",[S,d]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],(function(t,e){k[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),k.ajax(k.extend({url:t,type:e,dataType:r,data:n,success:i},k.isPlainObject(t)&&t))}})),k._evalUrl=function(t,e){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e)}})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=k(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 y(t)?this.each((function(e){k(this).wrapInner(t.call(this,e))})):this.each((function(){var e=k(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){k(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Xe={0:200,1223:204},Ve=k.ajaxSettings.xhr();m.cors=!!Ve&&"withCredentials"in Ve,m.ajax=Ve=!!Ve,k.ajaxTransport((function(t){var e,i;if(m.cors||Ve&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Xe[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),k.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),k.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 k.globalEval(t),t}}}),k.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),k.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=k("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),s.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Ge,Qe=[],Je=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qe.pop()||k.expando+"_"+Ae++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,s,a=!1!==t.jsonp&&(Je.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Je,"$1"+r):!1!==t.jsonp&&(t.url+=(Ne.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||k.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?k(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Qe.push(r)),s&&y(o)&&o(s[0]),s=o=void 0})),"script"})),m.createHTMLDocument=((Ge=s.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ge.childNodes.length),k.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,e.head.appendChild(i)):e=s),o=!n&&[],(r=E.exec(t))?[e.createElement(r[1])]:(r=St([t],e,o),o&&o.length&&k(o).remove(),k.merge([],r.childNodes)));var i,r,o},k.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=be(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&k.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?k("<div>").append(k.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){k.fn[e]=function(t){return this.on(e,t)}})),k.expr.pseudos.animated=function(t){return k.grep(k.timers,(function(e){return t===e.elem})).length},k.offset={setOffset:function(t,e,n){var i,r,o,s,a,c,l=k.css(t,"position"),u=k(t),h={};"static"===l&&(t.style.position="relative"),a=u.offset(),o=k.css(t,"top"),c=k.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(c)||0),y(e)&&(e=e.call(t,n,k.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+r),"using"in e?e.using.call(t,h):u.css(h)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){k.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.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"===k.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"===k.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=k(t).offset()).top+=k.css(t,"borderTopWidth",!0),r.left+=k.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-k.css(i,"marginTop",!0),left:e.left-r.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||st}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;k.fn[t]=function(i){return Y(this,(function(t,i,r){var o;if(_(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)}})),k.each(["top","left"],(function(t,e){k.cssHooks[e]=Vt(m.pixelPosition,(function(t,n){if(n)return n=Xt(t,e),zt.test(n)?k(t).position()[e]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(t,e){k.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){k.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return Y(this,(function(e,n,r){var o;return _(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?k.css(e,n,a):k.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),k.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){k.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),k.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),k.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)}}),k.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=c.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(c.call(arguments)))}).guid=t.guid=t.guid||k.guid++,r},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=D,k.isFunction=y,k.isWindow=_,k.camelCase=G,k.type=w,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},void 0===(i=function(){return k}.apply(e,[]))||(t.exports=i);var Ze=n.jQuery,Ke=n.$;return k.noConflict=function(t){return n.$===k&&(n.$=Ke),t&&n.jQuery===k&&(n.jQuery=Ze),k},r||(n.jQuery=n.$=k),k}))},function(t,e,n){n(2),n(3),n(4),n(5),n(6),n(7),n(8),n(9),n(12),n(13),n(14),n(15),n(16),n(17),n(18),n(19),n(20),n(21),n(23)},function(t,e){
/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t,e,n){function i(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 r(e,r,o,s){if(Object.defineProperty)try{return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){return i(s),o},set:function(t){i(s),o=t}}),n}catch(t){}t._definePropertyBroken=!0,e[r]=o}var o={};t.migrateWarnings=[],!t.migrateMute&&e.console&&e.console.log&&e.console.log("JQMIGRATE: Logging is active"),t.migrateTrace===n&&(t.migrateTrace=!0),t.migrateReset=function(){o={},t.migrateWarnings.length=0},"BackCompat"===document.compatMode&&i("jQuery is not compatible with Quirks Mode");var s=t("<input/>",{size:1}).attr("size")&&t.attrFn,a=t.attr,c=t.attrHooks.value&&t.attrHooks.value.get||function(){return null},l=t.attrHooks.value&&t.attrHooks.value.set||function(){return n},u=/^(?:input|button)$/i,h=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;r(t,"attrFn",s||{},"jQuery.attrFn is deprecated"),t.attr=function(e,r,o,c){var l=r.toLowerCase(),d=e&&e.nodeType;return c&&(4>a.length&&i("jQuery.fn.attr( props, pass ) is deprecated"),e&&!h.test(d)&&(s?r in s:t.isFunction(t.fn[r])))?t(e)[r](o):("type"===r&&o!==n&&u.test(e.nodeName)&&e.parentNode&&i("Can't change the 'type' of an input or button in IE 6/7/8"),!t.attrHooks[l]&&p.test(l)&&(t.attrHooks[l]={get:function(e,i){var r,o=t.prop(e,i);return!0===o||"boolean"!=typeof o&&(r=e.getAttributeNode(i))&&!1!==r.nodeValue?i.toLowerCase():n},set:function(e,n,i){var r;return!1===n?t.removeAttr(e,i):((r=t.propFix[i]||i)in e&&(e[r]=!0),e.setAttribute(i,i.toLowerCase())),i}},f.test(l)&&i("jQuery.fn.attr('"+l+"') may use property instead of attribute")),a.call(t,e,r,o))},t.attrHooks.value={get:function(t,e){var n=(t.nodeName||"").toLowerCase();return"button"===n?c.apply(this,arguments):("input"!==n&&"option"!==n&&i("jQuery.fn.attr('value') no longer gets properties"),e in t?t.value:null)},set:function(t,e){var r=(t.nodeName||"").toLowerCase();return"button"===r?l.apply(this,arguments):("input"!==r&&"option"!==r&&i("jQuery.fn.attr('value', val) no longer sets properties"),t.value=e,n)}};var d,g,v=t.fn.init,m=t.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;t.fn.init=function(e,n,r){var o;return e&&"string"==typeof e&&!t.isPlainObject(n)&&(o=y.exec(t.trim(e)))&&o[0]&&("<"!==e.charAt(0)&&i("$(html) HTML strings must start with '<' character"),o[3]&&i("$(html) HTML text after last tag is ignored"),"#"===o[0].charAt(0)&&(i("HTML string cannot start with a '#' character"),t.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),t.parseHTML)?v.call(this,t.parseHTML(o[2],n,!0),n,r):v.apply(this,arguments)},t.fn.init.prototype=t.fn,t.parseJSON=function(t){return t||null===t?m.apply(this,arguments):(i("jQuery.parseJSON requires a valid JSON string"),null)},t.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0>t.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},t.browser||(g={},(d=t.uaMatch(navigator.userAgent)).browser&&(g[d.browser]=!0,g.version=d.version),g.chrome?g.webkit=!0:g.webkit&&(g.safari=!0),t.browser=g),r(t,"browser",t.browser,"jQuery.browser is deprecated"),t.sub=function(){function e(t,n){return new e.fn.init(t,n)}t.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(i,r){return r&&r instanceof t&&!(r instanceof e)&&(r=e(r)),t.fn.init.call(this,i,r,n)},e.fn.init.prototype=e.fn;var n=e(document);return i("jQuery.sub() is deprecated"),e},t.ajaxSetup({converters:{"text json":t.parseJSON}});var _=t.fn.data;t.fn.data=function(e){var r,o,s=this[0];return!s||"events"!==e||1!==arguments.length||(r=t.data(s,e),o=t._data(s,e),r!==n&&r!==o||o===n)?_.apply(this,arguments):(i("Use of jQuery.fn.data('events') is deprecated"),o)};var b=/\/(java|ecma)script/i,x=t.fn.andSelf||t.fn.addBack;t.fn.andSelf=function(){return i("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),x.apply(this,arguments)},t.clean||(t.clean=function(e,r,o,s){r=(r=!(r=r||document).nodeType&&r[0]||r).ownerDocument||r,i("jQuery.clean() is deprecated");var a,c,l,u,h=[];if(t.merge(h,t.buildFragment(e,r).childNodes),o)for(l=function(t){return!t.type||b.test(t.type)?s?s.push(t.parentNode?t.parentNode.removeChild(t):t):o.appendChild(t):n},a=0;null!=(c=h[a]);a++)t.nodeName(c,"script")&&l(c)||(o.appendChild(c),c.getElementsByTagName!==n&&(u=t.grep(t.merge([],c.getElementsByTagName("script")),l),h.splice.apply(h,[a+1,0].concat(u)),a+=u.length));return h});var w=t.event.add,k=t.event.remove,S=t.event.trigger,C=t.fn.toggle,T=t.fn.live,A=t.fn.die,N="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",M=RegExp("\\b(?:"+N+")\\b"),D=/(?:^|\s)hover(\.\S+|)\b/,E=function(e){return"string"!=typeof e||t.event.special.hover?e:(D.test(e)&&i("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(D,"mouseenter$1 mouseleave$1"))};t.event.props&&"attrChange"!==t.event.props[0]&&t.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),t.event.dispatch&&r(t.event,"handle",t.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),t.event.add=function(t,e,n,r,o){t!==document&&M.test(e)&&i("AJAX events should be attached to document: "+e),w.call(this,t,E(e||""),n,r,o)},t.event.remove=function(t,e,n,i,r){k.call(this,t,E(e)||"",n,i,r)},t.fn.error=function(){var t=Array.prototype.slice.call(arguments,0);return i("jQuery.fn.error() is deprecated"),t.splice(0,0,"error"),arguments.length?this.bind.apply(this,t):(this.triggerHandler.apply(this,t),this)},t.fn.toggle=function(e,n){if(!t.isFunction(e)||!t.isFunction(n))return C.apply(this,arguments);i("jQuery.fn.toggle(handler, handler...) is deprecated");var r=arguments,o=e.guid||t.guid++,s=0,a=function(n){var i=(t._data(this,"lastToggle"+e.guid)||0)%s;return t._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),r[i].apply(this,arguments)||!1};for(a.guid=o;r.length>s;)r[s++].guid=o;return this.click(a)},t.fn.live=function(e,n,r){return i("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(t(this.context).on(e,this.selector,n,r),this)},t.fn.die=function(e,n){return i("jQuery.fn.die() is deprecated"),A?A.apply(this,arguments):(t(this.context).off(e,this.selector||"**",n),this)},t.event.trigger=function(t,e,n,r){return n||M.test(t)||i("Global events are undocumented and deprecated"),S.call(this,t,e,n||document,r)},t.each(N.split("|"),(function(e,n){t.event.special[n]={setup:function(){var e=this;return e!==document&&(t.event.add(document,n+"."+t.guid,(function(){t.event.trigger(n,null,e,!0)})),t._data(this,n,t.guid++)),!1},teardown:function(){return this!==document&&t.event.remove(document,n+"."+t._data(this,n)),!1}}}))}(jQuery,window)},function(t,e){
/*!
* Bootstrap v3.3.2 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",(function(){n=!0}));return 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){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})}))}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.2",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){s.detach().trigger("closed.bs.alert").remove()}var r=t(this),o=r.attr("data-target");o||(o=(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t(o);e&&e.preventDefault(),s.length||(s=r.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};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";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,o)),"toggle"==e?r.toggle():e&&r.setState(e)}))}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.2",n.DEFAULTS={loadingText:"loading..."},n.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)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))}),this),0)},n.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")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(n){var i=t(n.target);i.hasClass("btn")||(i=i.closest(".btn")),e.call(i,"toggle"),n.preventDefault()})).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";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),s="string"==typeof e?e:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof e?r.to(e):s?r[s]():o.interval&&r.pause().cycle()}))}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=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))};n.VERSION="3.3.2",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.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()}},n.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},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0: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))},n.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},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(e,r),s=this.interval,a="next"==e?"left":"right",c=this;if(o.hasClass("active"))return this.sliding=!1;var l=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:l,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,s&&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 p=t.Event("slid.bs.carousel",{relatedTarget:l,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,r.addClass(a),o.addClass(a),r.one("bsTransitionEnd",(function(){o.removeClass([e,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),c.sliding=!1,setTimeout((function(){c.$element.trigger(p)}),0)})).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),s&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),o=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var s=t.extend({},o.data(),r.data()),a=r.attr("data-slide-to");a&&(s.interval=!1),e.call(o,s),a&&o.data("bs.carousel").to(a),n.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 n=t(this);e.call(n,n.data())}))}))}(jQuery),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each((function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&o.toggle&&"show"==e&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof e&&r[e]()}))}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t(this.options.trigger).filter('[href="#'+e.id+'"], [data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.2",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var c=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][c])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,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")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)}),this)).end()},i.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=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var o=e(r),s=o.data("bs.collapse")?"toggle":t.extend({},r.data(),{trigger:this});n.call(o,s)}))}(jQuery),function(t){"use strict";function e(e){e&&3===e.which||(t(i).remove(),t(r).each((function(){var i=t(this),r=n(i),o={relatedTarget:this};r.hasClass("open")&&(r.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger("hidden.bs.dropdown",o)))})))}function n(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()}var i=".dropdown-backdrop",r='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.2",o.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var o=n(r),s=o.hasClass("open");if(e(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(o.trigger(i=t.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},o.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=n(i),s=o.hasClass("open");if(!s&&27!=e.which||s&&27==e.which)return 27==e.which&&o.find(r).trigger("focus"),i.trigger("click");var a=" li:not(.divider):visible a",c=o.find('[role="menu"]'+a+', [role="listbox"]'+a);if(c.length){var l=c.index(e.target);38==e.which&&l>0&&l--,40==e.which&&l<c.length-1&&l++,~l||(l=0),c.eq(l).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof e&&i[e].call(n)}))},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',o.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,i){return this.each((function(){var r=t(this),o=r.data("bs.modal"),s=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);o||r.data("bs.modal",o=new n(this,s)),"string"==typeof e?o[e](i):s.show&&o.show(i)}))}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};n.VERSION="3.3.2",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});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.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.options.backdrop&&i.adjustBackdrop(),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$element.find(".modal-dialog").one("bsTransitionEnd",(function(){i.$element.trigger("focus").trigger(o)})).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)})))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},n.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")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.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")}))},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){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('<div class="modal-backdrop '+r+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy((function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))}),this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},n.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop(),this.adjustDialog()},n.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)},n.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:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},n.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=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(n){var i=t(this),r=i.attr("href"),o=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&n.preventDefault(),o.one("show.bs.modal",(function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",(function(){i.is(":visible")&&i.trigger("focus")}))})),e.call(o,s,this)}))}(jQuery),function(t){"use strict";var e=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};e.VERSION="3.3.2",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){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var r=this.options.trigger.split(" "),o=r.length;o--;){var s=r[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",c="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(c+"."+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);return n&&n.$tip&&n.$tip.is(":visible")?void(n.hoverState="in"):(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)):n.show())},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)):n.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(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(a);l&&(a=a.replace(c,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var u=this.getPosition(),h=o[0].offsetWidth,p=o[0].offsetHeight;if(l){var f=a,d=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(d);a="bottom"==a&&u.bottom+p>g.bottom?"top":"top"==a&&u.top-p<g.top?"bottom":"right"==a&&u.right+h>g.width?"left":"left"==a&&u.left-h<g.left?"right":a,o.removeClass(f).addClass(a)}var v=this.getCalculatedOffset(a,u,h,p);this.applyPlacement(v,a);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,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top=e.top+s,e.left=e.left+a,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 c=i[0].offsetWidth,l=i[0].offsetHeight;"top"==n&&l!=o&&(e.top=e.top+o-l);var u=this.getViewportAdjustedDelta(n,e,c,l);u.left?e.left+=u.left:e.top+=u.top;var h=/top|bottom/.test(n),p=h?2*u.left-r+c:2*u.top-o+l,f=h?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(p,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){function i(){"in"!=r.hoverState&&o.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),n&&n()}var r=this,o=this.tip(),s=t.Event("hide.bs."+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(o.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(e.TRANSITION_DURATION):i(),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=i?{top:0,left:0}:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,a,o)},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,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,c=e.top+o-s.scroll+i;a<s.top?r.top=s.top-a:c>s.top+s.height&&(r.top=s.top+s.height-c)}else{var l=e.left-o,u=e.left+o+n;l<s.left?r.left=s.left-l:u>s.width&&(r.left=s.left+s.width-u)}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(){return this.$tip=this.$tip||t(this.options.template)},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))),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)}))};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"!=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.2",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),e.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")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};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"!=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){var r=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(n).is("body")?window: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",r),this.refresh(),this.process()}function n(n){return this.each((function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()}))}e.VERSION="3.3.2",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="offset",n=0;t.isWindow(this.$scrollElement[0])||(e="position",n=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map((function(){var i=t(this),r=i.data("target")||i.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[e]().top+n,r]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){i.offsets.push(this[0]),i.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,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return s!=(t=o[o.length-1])&&this.activate(t);if(s&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)s!=o[t]&&e>=r[t]&&(!r[t+1]||e<=r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.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";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()}))}var n=function(e){this.element=t(e)};n.VERSION="3.3.2",n.TRANSITION_DURATION=150,n.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]}),s=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(i);this.activate(e.closest("li"),n),this.activate(a,a.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},n.prototype.activate=function(e,i,r){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var s=i.find("> .active"),a=r&&t.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),s.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.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";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof e&&r[e]()}))}var n=function(e,i){this.options=t.extend({},n.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(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.2",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(t-i>=r+s)&&"bottom";var a=null==this.affixed,c=a?r:o.top;return null!=n&&n>=r?"top":null!=i&&c+(a?s:e)>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,s=t("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 a=this.getState(s,e,r,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var c="affix"+(a?"-"+a:""),l=t.Event(c+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(c).trigger(c.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-e-o})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)}))}))}(jQuery)},function(t,e){$("#industryList").on("change",(function(){"GROCERY"==$(this).val()?$("#autoLoadProducts").parent().show():$("#autoLoadProducts").parent().hide()}))},function(t,e){Number.prototype.format=function(t){var e=Number(this),n=e;try{if("USD"==t)var i=new qblite.MoneyFormatter(new qblite.Locale(USD));else i=new qblite.MoneyFormatter(new qblite.Locale(INR))}catch(t){console.log("Failed to create new monetary formatter: "+t)}try{n=i.format(e)}catch(t){console.log("Failed to format monetary amount: "+t)}return n}},function(t,e){INR={decimal_value:".",thousands_seperator:",",groupNumber:"3;2",currency_code:"INR ",currency_symbol:"",decimal_notation:".",money_thousands_seperator:",",money_groupNumber:"3;2",positiveNotation:"",negativeNotation:"-",fractionDigits:2,money_fractionDigits:2,p_cs_precedes:1,n_cs_precedes:1,p_sep_by_space:1,n_sep_by_space:1,p_sign_posn:1,n_sign_posn:1,int_p_cs_precedes:1,int_n_cs_precedes:1,int_p_sep_by_space:1,int_n_sep_by_space:1,int_p_sign_posn:1,int_n_sign_posn:1},USD={decimal_value:".",thousands_seperator:",",groupNumber:"3",currency_code:"USD ",currency_symbol:"$",decimal_notation:".",money_thousands_seperator:",",money_groupNumber:"3",positiveNotation:"",negativeNotation:"-",fractionDigits:2,money_fractionDigits:2,p_cs_precedes:1,n_cs_precedes:1,p_sep_by_space:0,n_sep_by_space:0,p_sign_posn:1,n_sign_posn:1,int_p_cs_precedes:1,int_n_cs_precedes:1,int_p_sep_by_space:0,int_n_sep_by_space:0,int_p_sign_posn:1,int_n_sign_posn:1},qblite={},qblite._trim=function(t){for(var e=" \n\r\t\f \u2028\u2029 ",n=0;n<t.length;n++)if(-1===e.indexOf(t.charAt(n))){t=t.substring(n);break}for(n=t.length-1;n>=0;n--)if(-1===e.indexOf(t.charAt(n))){t=t.substring(0,n+1);break}return-1===e.indexOf(t.charAt(0))?t:""},qblite._isNumber=function(t){return"number"==typeof t||"string"==typeof t&&/^-?(\d+|\d*\.\d+)$/.test(t+"")},qblite._isInteger=function(t){return("number"==typeof t||"string"==typeof t)&&/^-?\d+$/.test(t+"")},qblite._isFloat=function(t){return("number"==typeof t||"string"==typeof t)&&/^-?\.\d+?$/.test(t+"")},qblite._hasOption=function(t,e){return"string"==typeof t&&"string"==typeof e&&-1!=e.indexOf(t)},qblite._stringReplaceAll=function(t,e,n){var i;if(1==e.length&&1==n.length){i="";for(var r=0;r<t.length;r++)t.charAt(r)==e.charAt(0)?i+=n.charAt(0):i+=t.charAt(r);return i}for(var o=(i=t).indexOf(e);-1!=o;)o=(i=i.replace(e,n)).indexOf(e);return i},qblite._stringStartsWith=function(t,e){if(t.length<e.length)return!1;for(var n=!0,i=0;i<e.length;i++)t.charAt(i)!=e.charAt(i)&&(n=!0);if(n)for(i=0;i<e.length;i++)if(t.charAt(i).toLowerCase()!=e.charAt(i).toLowerCase())return!1;return!0},qblite._getPrecision=function(t){if("string"!=typeof t)return-1;var e=t.match(/\.(\d)/);return e?parseInt(e[1],10):-1},qblite._splitNumber=function(t){"number"==typeof t&&(t+="");var e={};"-"==t.charAt(0)&&(t=t.substring(1));var n=t.split(".");return n[1]||(n[1]=""),e.integer=n[0],e.fraction=n[1],e},qblite._formatIntegerPart=function(t,e,n){if(""==n||"-1"==e)return t;for(var i,r=e.split(";"),o="",s=t.length;s>0;){if(r.length>0&&(i=parseInt(r.shift(),10)),isNaN(i))throw"Error: Invalid groupNumber";if(-1==i){o=t.substring(0,s)+o;break}if((s-=i)<1){o=t.substring(0,s+i)+o;break}o=n+t.substring(s,s+i)+o}return o},qblite._formatFractionPart=function(t,e){for(var n=0;t.length<e;n++)t+="0";return t},qblite._zeroPad=function(t,e){for(var n=t+"";n.length<e;)n="0"+n;return n},qblite._spacePad=function(t,e){for(var n=t+"";n.length<e;)n=" "+n;return n},qblite.Locale=function(t){if(this._className="qblite.Locale",this._parseList=function(t,e){var n=[];if(null==t)throw"Names not defined";if("object"==typeof t)n=t;else{if("string"!=typeof t)throw"Names must be an array or a string";n=t.split(";",e);for(var i=0;i<n.length;i++){if('"'!=n[i][0]||'"'!=n[i][n[i].length-1])throw"Missing double quotes";n[i]=n[i].slice(1,-1)}}if(n.length!=e)throw"Expected "+e+" items, got "+n.length;return n},this._validateFormatString=function(t,e){if("string"==typeof t&&t.length>0)return t;if("string"==typeof e&&void 0===t)return e;throw"Empty or no string"},this.decimal_value=t.decimal_value,this.thousands_seperator=t.thousands_seperator,this.groupNumber=t.groupNumber,this.currency_code=t.currency_code,this.currency_symbol=t.currency_symbol,this.money_fractionDigits=t.money_fractionDigits,null===t.decimal_notation||""==t.decimal_notation){if(this.money_fractionDigits>0)throw"Error: Undefined decimal_notation property";t.decimal_notation=""}this.decimal_notation=t.decimal_notation,this.money_thousands_seperator=t.money_thousands_seperator,this.money_groupNumber=t.money_groupNumber,this.positiveNotation=t.positiveNotation,this.negativeNotation=t.negativeNotation,this.p_cs_precedes=t.p_cs_precedes,this.n_cs_precedes=t.n_cs_precedes,this.p_sep_by_space=t.p_sep_by_space,this.n_sep_by_space=t.n_sep_by_space,this.p_sign_posn=t.p_sign_posn,this.n_sign_posn=t.n_sign_posn,this.fractionDigits=t.fractionDigits,this.int_p_cs_precedes=t.int_p_cs_precedes,this.int_n_cs_precedes=t.int_n_cs_precedes,this.int_p_sep_by_space=t.int_p_sep_by_space,this.int_n_sep_by_space=t.int_n_sep_by_space,this.int_p_sign_posn=t.int_p_sign_posn,this.int_n_sign_posn=t.int_n_sign_posn,this.getDecimalPoint=function(){return this.decimal_value},this.getCurrencySymbol=function(){return this.currency_symbol},this.getIntCurrencySymbol=function(){return this.currency_code.substring(0,3)},this.currencySymbolPrecedes=function(){return 1==this.p_cs_precedes},this.intCurrencySymbolPrecedes=function(){return 1==this.int_p_cs_precedes},this.getMonetaryDecimalPoint=function(){return this.decimal_notation},this.getFractionalDigits=function(){return this.money_fractionDigits},this.getIntFractionalDigits=function(){return this.fractionDigits}},qblite.MoneyFormatter=function(t,e,n){if("object"!=typeof t||"qblite.Locale"!=t._className)throw"Constructor error: You must provide a valid qblite.Locale instance";if(this.lc=t,this.currencyFractionDigits={AFN:0,ALL:0,AMD:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,COP:0,CRC:0,DJF:0,GNF:0,GYD:0,HUF:0,IDR:0,IQD:0,IRR:0,ISK:0,JOD:3,JPY:0,KMF:0,KRW:0,KWD:3,LAK:0,LBP:0,LYD:3,MGA:0,MMK:0,MNT:0,MRO:0,MUR:0,OMR:3,PKR:0,PYG:0,RSD:0,RWF:0,SLL:0,SOS:0,STD:0,SYP:0,TND:3,TWD:0,TZS:0,UGX:0,UZS:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,YER:0,ZMK:0},"string"==typeof e){this.currencyCode=e.toUpperCase();var i=this.currencyFractionDigits[this.currencyCode];"number"!=typeof i&&(i=2),this.lc.money_fractionDigits=i,this.lc.fractionDigits=i}else this.currencyCode=this.lc.currency_code.substring(0,3).toUpperCase();this.intSep=this.lc.currency_code.charAt(3),this.currencyCode==this.lc.currency_code.substring(0,3)?(this.internationalFormatting=!1,this.curSym=this.lc.currency_symbol):"string"==typeof n?(this.curSym=n,this.internationalFormatting=!1):this.internationalFormatting=!0,this.getCurrencySymbol=function(){return this.curSym},this.currencySymbolPrecedes=function(t){return"string"==typeof t&&"i"==t?1==this.lc.int_p_cs_precedes:this.internationalFormatting?1==this.lc.int_p_cs_precedes:1==this.lc.p_cs_precedes},this.getDecimalPoint=function(){return this.lc.decimal_notation},this.getFractionalDigits=function(t){return"string"==typeof t&&"i"==t?this.lc.fractionDigits:this.internationalFormatting?this.lc.fractionDigits:this.lc.money_fractionDigits},this.format=function(t,e){var n;if("string"==typeof t){if(t=qblite._trim(t),"number"!=typeof(n=parseFloat(t))||isNaN(n))throw"Error: Amount string not a number"}else{if("number"!=typeof t)throw"Error: Amount not a number";n=t}var i=qblite._getPrecision(e);-1==i&&(i=this.internationalFormatting||qblite._hasOption("i",e)?this.lc.fractionDigits:this.lc.money_fractionDigits),n=Math.round(n*Math.pow(10,i))/Math.pow(10,i);var r,o,s,a=qblite._splitNumber(String(n));if(r=0===n?"0":qblite._hasOption("^",e)?a.integer:qblite._formatIntegerPart(a.integer,this.lc.money_groupNumber,this.lc.money_thousands_seperator),s=(o=-1==i?this.internationalFormatting||qblite._hasOption("i",e)?qblite._formatFractionPart(a.fraction,this.lc.fractionDigits):qblite._formatFractionPart(a.fraction,this.lc.money_fractionDigits):qblite._formatFractionPart(a.fraction,i)).length>0?r+this.lc.decimal_notation+o:r,qblite._hasOption("~",e))return s;var c=!!qblite._hasOption("!",e),l=n<0?"-":"+";return this.internationalFormatting||qblite._hasOption("i",e)?c?this._formatAsInternationalCurrencyWithNoSym(l,s):this._formatAsInternationalCurrency(l,s):c?this._formatAsLocalCurrencyWithNoSym(l,s):this._formatAsLocalCurrency(l,s)},this._formatAsLocalCurrency=function(t,e){if("+"==t){if(0===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return"("+e+this.curSym+")";if(0===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return"("+this.curSym+e+")";if(0===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return"("+e+" "+this.curSym+")";if(0===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return"("+this.curSym+" "+e+")";if(1===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return this.lc.positiveNotation+e+this.curSym;if(1===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+this.curSym+e;if(1===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return this.lc.positiveNotation+e+" "+this.curSym;if(1===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+this.curSym+" "+e;if(1===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+e+this.curSym;if(1===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+this.curSym+e;if(2===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.curSym+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.curSym+e+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+" "+this.curSym+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.curSym+" "+e+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.curSym+" "+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.curSym+e+" "+this.lc.positiveNotation;if(3===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.lc.positiveNotation+this.curSym;if(3===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+this.curSym+e;if(3===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+" "+this.lc.positiveNotation+this.curSym;if(3===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+this.curSym+" "+e;if(3===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.lc.positiveNotation+" "+this.curSym;if(3===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+this.curSym+e;if(4===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.curSym+this.lc.positiveNotation;if(4===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.curSym+this.lc.positiveNotation+e;if(4===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+" "+this.curSym+this.lc.positiveNotation;if(4===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.curSym+this.lc.positiveNotation+" "+e;if(4===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.curSym+" "+this.lc.positiveNotation;if(4===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.curSym+" "+this.lc.positiveNotation+e}else if("-"==t){if(0===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return"("+e+this.curSym+")";if(0===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return"("+this.curSym+e+")";if(0===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return"("+e+" "+this.curSym+")";if(0===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return"("+this.curSym+" "+e+")";if(1===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return this.lc.negativeNotation+e+this.curSym;if(1===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+this.curSym+e;if(1===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return this.lc.negativeNotation+e+" "+this.curSym;if(1===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+this.curSym+" "+e;if(1===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+e+this.curSym;if(1===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+this.curSym+e;if(2===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.curSym+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.curSym+e+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.curSym+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.curSym+" "+e+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.curSym+" "+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.curSym+e+" "+this.lc.negativeNotation;if(3===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.lc.negativeNotation+this.curSym;if(3===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+this.curSym+e;if(3===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.lc.negativeNotation+this.curSym;if(3===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+this.curSym+" "+e;if(3===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.lc.negativeNotation+" "+this.curSym;if(3===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+this.curSym+e;if(4===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.curSym+this.lc.negativeNotation;if(4===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.curSym+this.lc.negativeNotation+e;if(4===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.curSym+this.lc.negativeNotation;if(4===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.curSym+this.lc.negativeNotation+" "+e;if(4===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.curSym+" "+this.lc.negativeNotation;if(4===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.curSym+" "+this.lc.negativeNotation+e}throw"Error: Invalid POSIX LC MONETARY definition"},this._formatAsInternationalCurrency=function(t,e){if("+"==t){if(0===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return"("+e+this.currencyCode+")";if(0===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return"("+this.currencyCode+e+")";if(0===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return"("+e+this.intSep+this.currencyCode+")";if(0===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return"("+this.currencyCode+this.intSep+e+")";if(1===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e+this.currencyCode;if(1===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.currencyCode+e;if(1===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e+this.intSep+this.currencyCode;if(1===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.currencyCode+this.intSep+e;if(1===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+e+this.currencyCode;if(1===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+this.currencyCode+e;if(2===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.currencyCode+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.currencyCode+e+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.currencyCode+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.currencyCode+this.intSep+e+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.currencyCode+this.intSep+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.currencyCode+e+this.intSep+this.lc.positiveNotation;if(3===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation+this.currencyCode;if(3===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.currencyCode+e;if(3===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.lc.positiveNotation+this.currencyCode;if(3===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.currencyCode+this.intSep+e;if(3===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation+this.intSep+this.currencyCode;if(3===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+this.currencyCode+e;if(4===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.currencyCode+this.lc.positiveNotation;if(4===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.currencyCode+this.lc.positiveNotation+e;if(4===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.currencyCode+this.lc.positiveNotation;if(4===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.currencyCode+this.lc.positiveNotation+this.intSep+e;if(4===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.currencyCode+this.intSep+this.lc.positiveNotation;if(4===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.currencyCode+this.intSep+this.lc.positiveNotation+e}else if("-"==t){if(0===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return"("+e+this.currencyCode+")";if(0===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return"("+this.currencyCode+e+")";if(0===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return"("+e+this.intSep+this.currencyCode+")";if(0===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return"("+this.currencyCode+this.intSep+e+")";if(1===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e+this.currencyCode;if(1===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.currencyCode+e;if(1===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e+this.intSep+this.currencyCode;if(1===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.currencyCode+this.intSep+e;if(1===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+e+this.currencyCode;if(1===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+this.currencyCode+e;if(2===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.currencyCode+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.currencyCode+e+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.currencyCode+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.currencyCode+this.intSep+e+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.currencyCode+this.intSep+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.currencyCode+e+this.intSep+this.lc.negativeNotation;if(3===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation+this.currencyCode;if(3===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.currencyCode+e;if(3===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.lc.negativeNotation+this.currencyCode;if(3===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.currencyCode+this.intSep+e;if(3===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation+this.intSep+this.currencyCode;if(3===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+this.currencyCode+e;if(4===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.currencyCode+this.lc.negativeNotation;if(4===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.currencyCode+this.lc.negativeNotation+e;if(4===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.currencyCode+this.lc.negativeNotation;if(4===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.currencyCode+this.lc.negativeNotation+this.intSep+e;if(4===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.currencyCode+this.intSep+this.lc.negativeNotation;if(4===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.currencyCode+this.intSep+this.lc.negativeNotation+e}throw"Error: Invalid POSIX LC MONETARY definition"},this._formatAsLocalCurrencyWithNoSym=function(t,e){if("+"==t){if(0===this.lc.p_sign_posn)return"("+e+")";if(1===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return this.lc.positiveNotation+e;if(1===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+e;if(1===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return this.lc.positiveNotation+e;if(1===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+e;if(1===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+e;if(1===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+e;if(2===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return e+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+" "+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return e+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.lc.positiveNotation;if(2===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return e+" "+this.lc.positiveNotation;if(3===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.lc.positiveNotation;if(3===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+e;if(3===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+" "+this.lc.positiveNotation;if(3===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+e;if(3===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.lc.positiveNotation;if(3===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+e;if(4===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+this.lc.positiveNotation;if(4===this.lc.p_sign_posn&&0===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+e;if(4===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+" "+this.lc.positiveNotation;if(4===this.lc.p_sign_posn&&1===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+" "+e;if(4===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&0===this.lc.p_cs_precedes)return e+" "+this.lc.positiveNotation;if(4===this.lc.p_sign_posn&&2===this.lc.p_sep_by_space&&1===this.lc.p_cs_precedes)return this.lc.positiveNotation+e}else if("-"==t){if(0===this.lc.n_sign_posn)return"("+e+")";if(1===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return this.lc.negativeNotation+e;if(1===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+e;if(1===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return this.lc.negativeNotation+e;if(1===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+e;if(1===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+e;if(1===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+e;if(2===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return e+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return e+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.lc.negativeNotation;if(2===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return e+" "+this.lc.negativeNotation;if(3===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.lc.negativeNotation;if(3===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+e;if(3===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.lc.negativeNotation;if(3===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+e;if(3===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.lc.negativeNotation;if(3===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+e;if(4===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+this.lc.negativeNotation;if(4===this.lc.n_sign_posn&&0===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+e;if(4===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.lc.negativeNotation;if(4===this.lc.n_sign_posn&&1===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+" "+e;if(4===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&0===this.lc.n_cs_precedes)return e+" "+this.lc.negativeNotation;if(4===this.lc.n_sign_posn&&2===this.lc.n_sep_by_space&&1===this.lc.n_cs_precedes)return this.lc.negativeNotation+e}throw"Error: Invalid POSIX LC MONETARY definition"},this._formatAsInternationalCurrencyWithNoSym=function(t,e){if("+"==t){if(0===this.lc.int_p_sign_posn)return"("+e+")";if(1===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e;if(1===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e;if(1===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e;if(1===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+e;if(1===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+e;if(1===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+e;if(2===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.lc.positiveNotation;if(2===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return e+this.intSep+this.lc.positiveNotation;if(3===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation;if(3===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e;if(3===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.lc.positiveNotation;if(3===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+e;if(3===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation;if(3===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+e;if(4===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.lc.positiveNotation;if(4===this.lc.int_p_sign_posn&&0===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e;if(4===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.lc.positiveNotation;if(4===this.lc.int_p_sign_posn&&1===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+this.intSep+e;if(4===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&0===this.lc.int_p_cs_precedes)return e+this.intSep+this.lc.positiveNotation;if(4===this.lc.int_p_sign_posn&&2===this.lc.int_p_sep_by_space&&1===this.lc.int_p_cs_precedes)return this.lc.positiveNotation+e}else if("-"==t){if(0===this.lc.int_n_sign_posn)return"("+e+")";if(1===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e;if(1===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e;if(1===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e;if(1===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+e;if(1===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+e;if(1===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+e;if(2===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.lc.negativeNotation;if(2===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return e+this.intSep+this.lc.negativeNotation;if(3===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation;if(3===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e;if(3===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.lc.negativeNotation;if(3===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+e;if(3===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation;if(3===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+e;if(4===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.lc.negativeNotation;if(4===this.lc.int_n_sign_posn&&0===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e;if(4===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.lc.negativeNotation;if(4===this.lc.int_n_sign_posn&&1===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+this.intSep+e;if(4===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&0===this.lc.int_n_cs_precedes)return e+this.intSep+this.lc.negativeNotation;if(4===this.lc.int_n_sign_posn&&2===this.lc.int_n_sep_by_space&&1===this.lc.int_n_cs_precedes)return this.lc.negativeNotation+e}throw"Error: Invalid POSIX LC_MONETARY definition"}},qblite.MonetaryParser=function(t){if("object"!=typeof t||"qblite.Locale"!=t._className)throw"Constructor error: You must provide a valid qblite.Locale instance";this.lc=t,this.parse=function(t){if("string"!=typeof t)throw"Parse error: Argument must be a string";var e,n,i=this._detectCurrencySymbolType(t);if("local"==i)e="local",n=t.replace(this.lc.getCurrencySymbol(),"");else if("int"==i)e="int",n=t.replace(this.lc.getIntCurrencySymbol(),"");else{if("none"!=i)throw"Parse error: Internal assert failure";e="local",n=t}if(n=(n=(n=qblite._stringReplaceAll(n,this.lc.money_thousands_seperator,"")).replace(this.lc.decimal_notation,".")).replace(/\s*/g,""),n=this._removeLocalNonNegativeSign(n,e),n=this._normaliseNegativeSign(n,e),qblite._isNumber(n))return parseFloat(n,10);throw"Parse error: Invalid currency amount string"},this._detectCurrencySymbolType=function(t){return this.lc.getCurrencySymbol().length>this.lc.getIntCurrencySymbol().length?-1!=t.indexOf(this.lc.getCurrencySymbol())?"local":-1!=t.indexOf(this.lc.getIntCurrencySymbol())?"int":"none":-1!=t.indexOf(this.lc.getIntCurrencySymbol())?"int":-1!=t.indexOf(this.lc.getCurrencySymbol())?"local":"none"},this._removeLocalNonNegativeSign=function(t,e){return t=t.replace(this.lc.positiveNotation,""),("local"==e&&0===this.lc.p_sign_posn||"int"==e&&0===this.lc.int_p_sign_posn)&&/\(\d+\.?\d*\)/.test(t)&&(t=(t=t.replace("(","")).replace(")","")),t},this._normaliseNegativeSign=function(t,e){return t=t.replace(this.lc.negativeNotation,"-"),("local"==e&&0===this.lc.n_sign_posn||"int"==e&&0===this.lc.int_n_sign_posn)&&/^\(\d+\.?\d*\)$/.test(t)?"-"+(t=(t=t.replace("(","")).replace(")","")):("local"==e&&2==this.lc.n_sign_posn||"int"==e&&2==this.lc.int_n_sign_posn)&&/^\d+\.?\d*-$/.test(t)?"-"+(t=t.replace("-","")):("local"==e&&0===this.lc.n_cs_precedes&&3==this.lc.n_sign_posn||"local"==e&&0===this.lc.n_cs_precedes&&4==this.lc.n_sign_posn||"int"==e&&0===this.lc.int_n_cs_precedes&&3==this.lc.int_n_sign_posn||"int"==e&&0===this.lc.int_n_cs_precedes&&4==this.lc.int_n_sign_posn)&&/^\d+\.?\d*-$/.test(t)?"-"+(t=t.replace("-","")):t}}},function(t,e,n){t.exports=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,s=Math.max(1-(1-t)/e*(100-o),t),a=c.substring(0,c.indexOf("Animation")).toLowerCase(),l=a&&"-"+a+"-"||"";return u[r]||(h.insertRule("@"+l+"keyframes "+r+"{0%{opacity:"+s+"}"+o+"%{opacity:"+t+"}"+(o+.01)+"%{opacity:1}"+(o+e)%100+"%{opacity:"+t+"}100%{opacity:"+s+"}}",h.cssRules.length),u[r]=1),r}function i(t,e){var n,i,r=t.style;for(e=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<l.length;i++)if(void 0!==r[n=l[i]+e])return n;return void 0!==r[e]?e:void 0}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 s(t,e){return"string"==typeof t?t:t[e%t.length]}function a(t){this.opts=o(t||{},a.defaults,p)}var c,l=["webkit","Moz","ms","O"],u={},h=function(){var n=t("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),p={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};a.defaults={},o(a.prototype,{spin:function(e){this.stop();var n=this,i=n.opts,o=n.el=r(t(0,{className:i.className}),{position:i.position,width:0,zIndex:i.zIndex});if(i.radius,i.length,i.width,r(o,{left:i.left,top:i.top}),e&&e.insertBefore(o,e.firstChild||null),o.setAttribute("role","progressbar"),n.lines(o,n.opts),!c){var s,a=0,l=(i.lines-1)*(1-i.direction)/2,u=i.fps,h=u/i.speed,p=(1-i.opacity)/(h*i.trail/100),f=h/i.lines;!function t(){a++;for(var e=0;e<i.lines;e++)s=Math.max(1-(a+(i.lines-e)*f)%h*p,i.opacity),n.opacity(o,e*i.direction+l,s,i);n.timeout=n.el&&setTimeout(t,~~(1e3/u))}()}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 a(e,n){return r(t(),{position:"absolute",width:o.length+o.width+"px",height:o.width+"px",background:e,boxShadow:n,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*u+o.rotate)+"deg) translate("+o.radius+"px,0)",borderRadius:(o.corners*o.width>>1)+"px"})}for(var l,u=0,h=(o.lines-1)*(1-o.direction)/2;u<o.lines;u++)l=r(t(),{position:"absolute",top:1+~(o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:c&&n(o.opacity,o.trail,h+u*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&e(l,r(a("#000","0 0 4px #000"),{top:"2px"})),e(i,e(l,a(s(o.color,u),"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)}});var f=r(t("group"),{behavior:"url(#default#VML)"});return!i(f,"transform")&&f.adj?function(){function n(e,n){return t("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',n)}h.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(t,i){function o(){return r(n("group",{coordsize:u+" "+u,coordorigin:-l+" "+-l}),{width:u,height:u})}function a(t,a,c){e(p,e(r(o(),{rotation:360/i.lines*t+"deg",left:~~a}),e(r(n("roundrect",{arcsize:i.corners}),{width:l,height:i.width,left:i.radius,top:-i.width>>1,filter:c}),n("fill",{color:s(i.color,t),opacity:i.opacity}),n("stroke",{opacity:0}))))}var c,l=i.length+i.width,u=2*l,h=2*-(i.width+i.length)+"px",p=r(o(),{position:"absolute",top:h,left:h});if(i.shadow)for(c=1;c<=i.lines;c++)a(c,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(c=1;c<=i.lines;c++)a(c);return e(t,p)},a.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)}}():c=i(f,"animation"),a}()},function(t,e){var n,i,r,o,s;n=jQuery||$,r={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeDelay:10,placeholder:!0},o=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent","whiteSpace"],(s=n('<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>').data("autosize",!0)[0]).style.lineHeight="99px","99px"===n(s).css("lineHeight")&&o.push("lineHeight"),s.style.lineHeight="",n.fn.autosize=function(t){return this.length?(t=n.extend({},r,t||{}),s.parentNode!==document.body&&n(document.body).append(s),this.each((function(){function e(){var t,e=window.getComputedStyle?window.getComputedStyle(p,null):null;e?(t=parseFloat(e.width),("border-box"===e.boxSizing||"border-box"===e.webkitBoxSizing||"border-box"===e.mozBoxSizing)&&n.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],(function(n,i){t-=parseFloat(e[i])}))):t=f.width(),s.style.width=Math.max(t,0)+"px"}function r(){var r={};if(i=p,s.className=t.className,s.id=t.id,l=parseFloat(f.css("maxHeight")),n.each(o,(function(t,e){r[e]=f.css(e)})),n(s).css(r).attr("wrap",f.attr("wrap")),e(),window.chrome){var a=p.style.width;p.style.width="0px",p.offsetWidth,p.style.width=a}}function a(){var n,o;i!==p?r():e(),s.value=!p.value&&t.placeholder?f.attr("placeholder")||"":p.value,s.value+=t.append||"",s.style.overflowY=p.style.overflowY,o=parseFloat(p.style.height)||0,s.scrollTop=0,s.scrollTop=9e4,n=s.scrollTop,l&&n>l?(p.style.overflowY="scroll",n=l):(p.style.overflowY="hidden",u>n&&(n=u)),n+=d,Math.abs(o-n)>.01&&(p.style.height=n+"px",s.className=s.className,g&&t.callback.call(p,p),f.trigger("autosize.resized"))}function c(){clearTimeout(h),h=setTimeout((function(){var t=f.width();t!==m&&(m=t,a())}),parseInt(t.resizeDelay,10))}var l,u,h,p=this,f=n(p),d=0,g=n.isFunction(t.callback),v={height:p.style.height,overflow:p.style.overflow,overflowY:p.style.overflowY,wordWrap:p.style.wordWrap,resize:p.style.resize},m=f.width(),y=f.css("resize");f.data("autosize")||(f.data("autosize",!0),("border-box"===f.css("box-sizing")||"border-box"===f.css("-moz-box-sizing")||"border-box"===f.css("-webkit-box-sizing"))&&(d=f.outerHeight()-f.height()),u=Math.max(parseFloat(f.css("minHeight"))-d||0,f.height()),f.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word"}),"vertical"===y?f.css("resize","none"):"both"===y&&f.css("resize","horizontal"),"onpropertychange"in p?"oninput"in p?f.on("input.autosize keyup.autosize",a):f.on("propertychange.autosize",(function(){"value"===event.propertyName&&a()})):f.on("input.autosize",a),!1!==t.resizeDelay&&n(window).on("resize.autosize",c),f.on("autosize.resize",a),f.on("autosize.resizeIncludeStyle",(function(){i=null,a()})),f.on("autosize.destroy",(function(){i=null,clearTimeout(h),n(window).off("resize",c),f.off("autosize").off(".autosize").css(v).removeData("autosize")})),a())}))):this}},function(t,e,n){(function(t,i){var r;//! moment.js
//! version : 2.9.0
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(o){function s(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function a(t,e){return gt.call(t,e)}function c(t){!1===ut.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function l(t,e){var n=!0;return v((function(){return n&&(c(t),n=!1),e.apply(this,arguments)}),e)}function u(t,e){oe[t]||(c(e),oe[t]=!0)}function h(t,e){return function(n){return _(t.call(this,n),e)}}function p(t,e){return function(n){return this.localeData().ordinal(t.call(this,n),e)}}function f(){}function d(t,e){!1!==e&&R(t),m(this,t),this._d=new Date(+t._d),!1===ae&&(ae=!0,ut.updateOffset(this),ae=!1)}function g(t){var e=A(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||0,s=e.day||0,a=e.hour||0,c=e.minute||0,l=e.second||0,u=e.millisecond||0;this._milliseconds=+u+1e3*l+6e4*c+36e5*a,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ut.localeData(),this._bubble()}function v(t,e){for(var n in e)a(e,n)&&(t[n]=e[n]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function m(t,e){var n,i,r;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=e._pf),void 0!==e._locale&&(t._locale=e._locale),St.length>0)for(n in St)void 0!==(r=e[i=St[n]])&&(t[i]=r);return t}function y(t){return 0>t?Math.ceil(t):Math.floor(t)}function _(t,e,n){for(var i=""+Math.abs(t),r=t>=0;i.length<e;)i="0"+i;return(r?n?"+":"":"-")+i}function b(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 x(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(u(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),r=n,n=i,i=r),n="string"==typeof n?+n:n,w(this,ut.duration(n,i),t),this}}function w(t,e,n,i){var r=e._milliseconds,o=e._days,s=e._months;i=null==i||i,r&&t._d.setTime(+t._d+r*n),o&&ot(t,"Date",rt(t,"Date")+o*n),s&&it(t,rt(t,"Month")+s*n),i&&ut.updateOffset(t,o||s)}function k(t){return"[object Array]"===Object.prototype.toString.call(t)}function S(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function C(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;r>i;i++)(n&&t[i]!==e[i]||!n&&M(t[i])!==M(e[i]))&&s++;return s+o}function T(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=Zt[t]||Kt[e]||e}return t}function A(t){var e,n,i={};for(n in t)a(t,n)&&((e=T(n))&&(i[e]=t[n]));return i}function N(t){var e,n;if(0===t.indexOf("week"))e=7,n="day";else{if(0!==t.indexOf("month"))return;e=12,n="month"}ut[t]=function(i,r){var s,a,c=ut._locale[t],l=[];if("number"==typeof i&&(r=i,i=o),a=function(t){var e=ut().utc().set(n,t);return c.call(ut._locale,e,i||"")},null!=r)return a(r);for(s=0;e>s;s++)l.push(a(s));return l}}function M(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function D(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function E(t,e,n){return tt(ut([t,11,31+e-n]),e,n).week}function O(t){return j(t)?366:365}function j(t){return t%4==0&&t%100!=0||t%400==0}function R(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[mt]<0||t._a[mt]>11?mt:t._a[yt]<1||t._a[yt]>D(t._a[vt],t._a[mt])?yt:t._a[_t]<0||t._a[_t]>24||24===t._a[_t]&&(0!==t._a[bt]||0!==t._a[xt]||0!==t._a[wt])?_t:t._a[bt]<0||t._a[bt]>59?bt:t._a[xt]<0||t._a[xt]>59?xt:t._a[wt]<0||t._a[wt]>999?wt:-1,t._pf._overflowDayOfYear&&(vt>e||e>yt)&&(e=yt),t._pf.overflow=e)}function I(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&t._pf.bigHour===o)),t._isValid}function P(t){return t?t.toLowerCase().replace("_","-"):t}function $(t){var e=null;if(!kt[t]&&Ct)try{e=ut.locale(),function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}(),ut.locale(e)}catch(t){}return kt[t]}function L(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(ut.isMoment(t)||S(t)?+t:+ut(t))-+n,n._d.setTime(+n._d+i),ut.updateOffset(n,!1),n):ut(t).local()}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function W(t,e){return t.isValid()?(e=q(e,t.localeData()),te[e]||(te[e]=function(t){var e,n,i=t.match(Mt);for(e=0,n=i.length;n>e;e++)i[e]=re[i[e]]?re[i[e]]:H(i[e]);return function(r){var o="";for(e=0;n>e;e++)o+=i[e]instanceof Function?i[e].call(r,t):i[e];return o}}(e)),te[e](t)):t.localeData().invalidDate()}function q(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(Dt.lastIndex=0;i>=0&&Dt.test(t);)t=t.replace(Dt,n),Dt.lastIndex=0,i-=1;return t}function F(t,e){var n=e._strict;switch(t){case"Q":return qt;case"DDDD":return Bt;case"YYYY":case"GGGG":case"gggg":return n?zt:jt;case"Y":case"G":case"g":return Ut;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?Yt:Rt;case"S":if(n)return qt;case"SS":if(n)return Ft;case"SSS":if(n)return Bt;case"DDD":return Ot;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Pt;case"a":case"A":return e._locale._meridiemParse;case"x":return Ht;case"X":return Wt;case"Z":case"ZZ":return $t;case"T":return Lt;case"SSSS":return It;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?Ft:Et;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Et;case"Do":return n?e._locale._ordinalParse:e._locale._ordinalParseLenient;default:return new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(function(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))}(t.replace("\\",""))))}}function B(t){var e=(t=t||"").match($t)||[],n=((e[e.length-1]||[])+"").match(Qt)||["-",0,0],i=60*n[1]+M(n[2]);return"+"===n[0]?i:-i}function z(t,e,n){var i,r=n._a;switch(t){case"Q":null!=e&&(r[mt]=3*(M(e)-1));break;case"M":case"MM":null!=e&&(r[mt]=M(e)-1);break;case"MMM":case"MMMM":null!=(i=n._locale.monthsParse(e,t,n._strict))?r[mt]=i:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(r[yt]=M(e));break;case"Do":null!=e&&(r[yt]=M(parseInt(e.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=M(e));break;case"YY":r[vt]=ut.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":r[vt]=M(e);break;case"a":case"A":n._meridiem=e;break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":r[_t]=M(e);break;case"m":case"mm":r[bt]=M(e);break;case"s":case"ss":r[xt]=M(e);break;case"S":case"SS":case"SSS":case"SSSS":r[wt]=M(1e3*("0."+e));break;case"x":n._d=new Date(M(e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=B(e);break;case"dd":case"ddd":case"dddd":null!=(i=n._locale.weekdaysParse(e))?(n._w=n._w||{},n._w.d=i):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=M(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=ut.parseTwoDigitYear(e)}}function Y(t){var e,n,i,r,o,a,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,n=s(e.GG,t._a[vt],tt(ut(),1,4).year),i=s(e.W,1),r=s(e.E,1)):(o=t._locale._week.dow,a=t._locale._week.doy,n=s(e.gg,t._a[vt],tt(ut(),o,a).year),i=s(e.w,1),null!=e.d?o>(r=e.d)&&++i:r=null!=e.e?e.e+o:o),c=function(t,e,n,i,r){var o,s=Z(t,0,1).getUTCDay();return{year:(o=7*(e-1)+((n=null!=n?n:r)-r)+(r-(s=0===s?7:s)+(s>i?7:0)-(r>s?7:0))+1)>0?t:t-1,dayOfYear:o>0?o:O(t-1)+o}}(n,i,r,a,o),t._a[vt]=c.year,t._dayOfYear=c.dayOfYear}function U(t){var e,n,i,r,o=[];if(!t._d){for(i=function(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[yt]&&null==t._a[mt]&&Y(t),t._dayOfYear&&(r=s(t._a[vt],i[vt]),t._dayOfYear>O(r)&&(t._pf._overflowDayOfYear=!0),n=Z(r,0,t._dayOfYear),t._a[mt]=n.getUTCMonth(),t._a[yt]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;7>e;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[_t]&&0===t._a[bt]&&0===t._a[xt]&&0===t._a[wt]&&(t._nextDay=!0,t._a[_t]=0),t._d=(t._useUTC?Z:J).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[_t]=24)}}function X(t){if(t._f!==ut.ISO_8601){t._a=[],t._pf.empty=!0;var e,n,i,r,s,a=""+t._i,c=a.length,l=0;for(i=q(t._f,t._locale).match(Mt)||[],e=0;e<i.length;e++)r=i[e],(n=(a.match(F(r,t))||[])[0])&&((s=a.substr(0,a.indexOf(n))).length>0&&t._pf.unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),l+=n.length),re[r]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(r),z(r,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(r);t._pf.charsLeftOver=c-l,a.length>0&&t._pf.unusedInput.push(a),!0===t._pf.bigHour&&t._a[_t]<=12&&(t._pf.bigHour=o),t._a[_t]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&12>e&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[_t],t._meridiem),U(t),R(t)}else G(t)}function V(t){var e,n,i,r,o;if(0===t._f.length)return t._pf.invalidFormat=!0,void(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._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},e._f=t._f[r],X(e),I(e)&&(o+=e._pf.charsLeftOver,o+=10*e._pf.unusedTokens.length,e._pf.score=o,(null==i||i>o)&&(i=o,n=e));v(t,n||e)}function G(t){var e,n,i=t._i,r=Xt.exec(i);if(r){for(t._pf.iso=!0,e=0,n=Vt.length;n>e;e++)if(Vt[e][1].exec(i)){t._f=Vt[e][0]+(r[6]||" ");break}for(e=0,n=Gt.length;n>e;e++)if(Gt[e][1].exec(i)){t._f+=Gt[e][0];break}i.match($t)&&(t._f+="Z"),X(t)}else t._isValid=!1}function Q(t){var e,n=t._i;n===o?t._d=new Date:S(n)?t._d=new Date(+n):null!==(e=Tt.exec(n))?t._d=new Date(+e[1]):"string"==typeof n?function(t){G(t),!1===t._isValid&&(delete t._isValid,ut.createFromInputFallback(t))}(t):k(n)?(t._a=function(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}(n.slice(0),(function(t){return parseInt(t,10)})),U(t)):"object"==typeof n?function(t){var e;t._d||(e=A(t._i),t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],U(t))}(t):"number"==typeof n?t._d=new Date(n):ut.createFromInputFallback(t)}function J(t,e,n,i,r,o,s){var a=new Date(t,e,n,i,r,o,s);return 1970>t&&a.setFullYear(t),a}function Z(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function K(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}function tt(t,e,n){var i,r=n-e,o=n-t.day();return o>r&&(o-=7),r-7>o&&(o+=7),i=ut(t).add(o,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function et(t){var e,n=t._i,i=t._f;return t._locale=t._locale||ut.localeData(t._l),null===n||i===o&&""===n?ut.invalid({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),ut.isMoment(n)?new d(n,!0):(i?k(i)?V(t):X(t):Q(t),(e=new d(t))._nextDay&&(e.add(1,"d"),e._nextDay=o),e))}function nt(t,e){var n,i;if(1===e.length&&k(e[0])&&(e=e[0]),!e.length)return ut();for(n=e[0],i=1;i<e.length;++i)e[i][t](n)&&(n=e[i]);return n}function it(t,e){var n;return"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))?t:(n=Math.min(t.date(),D(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function rt(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function ot(t,e,n){return"Month"===e?it(t,n):t._d["set"+(t._isUTC?"UTC":"")+e](n)}function st(t,e){return function(n){return null!=n?(ot(this,t,n),ut.updateOffset(this,e),this):rt(this,t)}}function at(t){return 400*t/146097}function ct(t){return 146097*t/400}function lt(t){ut.duration.fn[t]=function(){return this._data[t]}}for(var ut,ht,pt,ft=void 0===t||"undefined"!=typeof window&&window!==t.window?this:t,dt=Math.round,gt=Object.prototype.hasOwnProperty,vt=0,mt=1,yt=2,_t=3,bt=4,xt=5,wt=6,kt={},St=[],Ct=i&&i.exports,Tt=/^\/?Date\((\-?\d+)/i,At=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Nt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Mt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Dt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Et=/\d\d?/,Ot=/\d{1,3}/,jt=/\d{1,4}/,Rt=/[+\-]?\d{1,6}/,It=/\d+/,Pt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,$t=/Z|[\+\-]\d\d:?\d\d/gi,Lt=/T/i,Ht=/[\+\-]?\d+/,Wt=/[\+\-]?\d+(\.\d{1,3})?/,qt=/\d/,Ft=/\d\d/,Bt=/\d{3}/,zt=/\d{4}/,Yt=/[+-]?\d{6}/,Ut=/[+-]?\d+/,Xt=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Gt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Qt=/([\+\-]|\d\d)/gi,Jt=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),Zt={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Kt={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},te={},ee={s:45,m:45,h:22,d:26,M:11},ne="DDD w W M D d".split(" "),ie="M D H h m s w W".split(" "),re={M:function(){return this.month()+1},MMM:function(t){return this.localeData().monthsShort(this,t)},MMMM:function(t){return this.localeData().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.localeData().weekdaysMin(this,t)},ddd:function(t){return this.localeData().weekdaysShort(this,t)},dddd:function(t){return this.localeData().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return _(this.year()%100,2)},YYYY:function(){return _(this.year(),4)},YYYYY:function(){return _(this.year(),5)},YYYYYY:function(){var t=this.year();return(t>=0?"+":"-")+_(Math.abs(t),6)},gg:function(){return _(this.weekYear()%100,2)},gggg:function(){return _(this.weekYear(),4)},ggggg:function(){return _(this.weekYear(),5)},GG:function(){return _(this.isoWeekYear()%100,2)},GGGG:function(){return _(this.isoWeekYear(),4)},GGGGG:function(){return _(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return M(this.milliseconds()/100)},SS:function(){return _(M(this.milliseconds()/10),2)},SSS:function(){return _(this.milliseconds(),3)},SSSS:function(){return _(this.milliseconds(),3)},Z:function(){var t=this.utcOffset(),e="+";return 0>t&&(t=-t,e="-"),e+_(M(t/60),2)+":"+_(M(t)%60,2)},ZZ:function(){var t=this.utcOffset(),e="+";return 0>t&&(t=-t,e="-"),e+_(M(t/60),2)+_(M(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},oe={},se=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],ae=!1;ne.length;)pt=ne.pop(),re[pt+"o"]=p(re[pt],pt);for(;ie.length;)pt=ie.pop(),re[pt+pt]=h(re[pt],2);for(re.DDDD=h(re.DDD,3),v(f.prototype,{set:function(t){var e,n;for(n in t)"function"==typeof(e=t[n])?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t,e,n){var i,r,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(r=ut.utc([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}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=ut([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e,n){var i=this._calendar[t];return"function"==typeof i?i.apply(e,[n]):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few 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"},relativeTime:function(t,e,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,i):r.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(t){return t},postformat:function(t){return t},week:function(t){return tt(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),(ut=function(t,e,n,i){var r;return"boolean"==typeof n&&(i=n,n=o),(r={})._isAMomentObject=!0,r._i=t,r._f=e,r._l=n,r._strict=i,r._isUTC=!1,r._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},et(r)}).suppressDeprecationWarnings=!1,ut.createFromInputFallback=l("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),ut.min=function(){var t=[].slice.call(arguments,0);return nt("isBefore",t)},ut.max=function(){var t=[].slice.call(arguments,0);return nt("isAfter",t)},ut.utc=function(t,e,n,i){var r;return"boolean"==typeof n&&(i=n,n=o),(r={})._isAMomentObject=!0,r._useUTC=!0,r._isUTC=!0,r._l=n,r._i=t,r._f=e,r._strict=i,r._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},et(r).utc()},ut.unix=function(t){return ut(1e3*t)},ut.duration=function(t,e){var n,i,r,o,s=t,c=null;return ut.isDuration(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(c=At.exec(t))?(n="-"===c[1]?-1:1,s={y:0,d:M(c[yt])*n,h:M(c[_t])*n,m:M(c[bt])*n,s:M(c[xt])*n,ms:M(c[wt])*n}):(c=Nt.exec(t))?(n="-"===c[1]?-1:1,s={y:(r=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n})(c[2]),M:r(c[3]),d:r(c[4]),h:r(c[5]),m:r(c[6]),s:r(c[7]),w:r(c[8])}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(o=function(t,e){var n;return e=L(e,t),t.isBefore(e)?n=b(t,e):((n=b(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n}(ut(s.from),ut(s.to)),(s={}).ms=o.milliseconds,s.M=o.months),i=new g(s),ut.isDuration(t)&&a(t,"_locale")&&(i._locale=t._locale),i},ut.version="2.9.0",ut.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ut.ISO_8601=function(){},ut.momentProperties=St,ut.updateOffset=function(){},ut.relativeTimeThreshold=function(t,e){return ee[t]!==o&&(e===o?ee[t]:(ee[t]=e,!0))},ut.lang=l("moment.lang is deprecated. Use moment.locale instead.",(function(t,e){return ut.locale(t,e)})),ut.locale=function(t,e){var n;return t&&((n=void 0!==e?ut.defineLocale(t,e):ut.localeData(t))&&(ut.duration._locale=ut._locale=n)),ut._locale._abbr},ut.defineLocale=function(t,e){return null!==e?(e.abbr=t,kt[t]||(kt[t]=new f),kt[t].set(e),ut.locale(t),kt[t]):(delete kt[t],null)},ut.langData=l("moment.langData is deprecated. Use moment.localeData instead.",(function(t){return ut.localeData(t)})),ut.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ut._locale;if(!k(t)){if(e=$(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=P(t[o]).split("-")).length,n=(n=P(t[o+1]))?n.split("-"):null;e>0;){if(i=$(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&C(r,n,!0)>=e-1)break;e--}o++}return null}(t)},ut.isMoment=function(t){return t instanceof d||null!=t&&a(t,"_isAMomentObject")},ut.isDuration=function(t){return t instanceof g},pt=se.length-1;pt>=0;--pt)N(se[pt]);for(pt in ut.normalizeUnits=function(t){return T(t)},ut.invalid=function(t){var e=ut.utc(NaN);return null!=t?v(e._pf,t):e._pf.userInvalidated=!0,e},ut.parseZone=function(){return ut.apply(null,arguments).parseZone()},ut.parseTwoDigitYear=function(t){return M(t)+(M(t)>68?1900:2e3)},ut.isDate=S,v(ut.fn=d.prototype,{clone:function(){return ut(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=ut(this).utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():W(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):W(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return I(this)},isDSTShifted:function(){return!!this._a&&(this.isValid()&&C(this._a,(this._isUTC?ut.utc(this._a):ut(this._a)).toArray())>0)},parsingFlags:function(){return v({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.utcOffset(0,t)},local:function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(t){var e=W(this,t||ut.defaultFormat);return this.localeData().postformat(e)},add:x(1,"add"),subtract:x(-1,"subtract"),diff:function(t,e,n){var i,r,o=L(t,this),s=6e4*(o.utcOffset()-this.utcOffset());return"year"===(e=T(e))||"month"===e||"quarter"===e?(r=function(t,e){var n,i=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(i,"months");return 0>e-r?n=(e-r)/(r-t.clone().add(i-1,"months")):n=(e-r)/(t.clone().add(i+1,"months")-r),-(i+n)}(this,o),"quarter"===e?r/=3:"year"===e&&(r/=12)):(i=this-o,r="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-s)/864e5:"week"===e?(i-s)/6048e5:i),n?r:y(r)},from:function(t,e){return ut.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(ut(),t)},calendar:function(t){var e=t||ut(),n=L(e,this).startOf("day"),i=this.diff(n,"days",!0),r=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(this.localeData().calendar(r,this,ut(e)))},isLeapYear:function(){return j(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){if("string"==typeof t)if(isNaN(t)){if("number"!=typeof(t=e.weekdaysParse(t)))return null}else t=parseInt(t,10);return t}(t,this.localeData()),this.add(t-e,"d")):e},month:st("Month",!0),startOf:function(t){switch(t=T(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":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},endOf:function(t){return(t=T(t))===o||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(t,e){return"millisecond"===(e=T(void 0!==e?e:"millisecond"))?+this>+(t=ut.isMoment(t)?t:ut(t)):(ut.isMoment(t)?+t:+ut(t))<+this.clone().startOf(e)},isBefore:function(t,e){var n;return"millisecond"===(e=T(void 0!==e?e:"millisecond"))?+(t=ut.isMoment(t)?t:ut(t))>+this:(n=ut.isMoment(t)?+t:+ut(t),+this.clone().endOf(e)<n)},isBetween:function(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)},isSame:function(t,e){var n;return"millisecond"===(e=T(e||"millisecond"))?+this==+(t=ut.isMoment(t)?t:ut(t)):(n=+ut(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))},min:l("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",(function(t){return this>(t=ut.apply(null,arguments))?this:t})),max:l("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",(function(t){return(t=ut.apply(null,arguments))>this?this:t})),zone:l("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),utcOffset:function(t,e){var n,i=this._offset||0;return null!=t?("string"==typeof t&&(t=B(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(n=this._dateUtcOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?w(this,ut.duration(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ut.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(B(this._i)),this},hasAlignedHourOffset:function(t){return t=t?ut(t).utcOffset():0,(this.utcOffset()-t)%60==0},daysInMonth:function(){return D(this.year(),this.month())},dayOfYear:function(t){var e=dt((ut(this).startOf("day")-ut(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=tt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=tt(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=tt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return E(this.year(),t.dow,t.doy)},get:function(t){return this[t=T(t)]()},set:function(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else"function"==typeof this[t=T(t)]&&this[t](e);return this},locale:function(t){var e;return t===o?this._locale._abbr:(null!=(e=ut.localeData(t))&&(this._locale=e),this)},lang:l("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return t===o?this.localeData():this.locale(t)})),localeData:function(){return this._locale},_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),ut.fn.millisecond=ut.fn.milliseconds=st("Milliseconds",!1),ut.fn.second=ut.fn.seconds=st("Seconds",!1),ut.fn.minute=ut.fn.minutes=st("Minutes",!1),ut.fn.hour=ut.fn.hours=st("Hours",!0),ut.fn.date=st("Date",!0),ut.fn.dates=l("dates accessor is deprecated. Use date instead.",st("Date",!0)),ut.fn.year=st("FullYear",!0),ut.fn.years=l("years accessor is deprecated. Use year instead.",st("FullYear",!0)),ut.fn.days=ut.fn.day,ut.fn.months=ut.fn.month,ut.fn.weeks=ut.fn.week,ut.fn.isoWeeks=ut.fn.isoWeek,ut.fn.quarters=ut.fn.quarter,ut.fn.toJSON=ut.fn.toISOString,ut.fn.isUTC=ut.fn.isUtc,v(ut.duration.fn=g.prototype,{_bubble:function(){var t,e,n,i=this._milliseconds,r=this._days,o=this._months,s=this._data,a=0;s.milliseconds=i%1e3,t=y(i/1e3),s.seconds=t%60,e=y(t/60),s.minutes=e%60,n=y(e/60),s.hours=n%24,r+=y(n/24),a=y(at(r)),r-=y(ct(a)),o+=y(r/30),r%=30,a+=y(o/12),o%=12,s.days=r,s.months=o,s.years=a},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return y(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12)},humanize:function(t){var e=function(t,e,n){var i=ut.duration(t).abs(),r=dt(i.as("s")),o=dt(i.as("m")),s=dt(i.as("h")),a=dt(i.as("d")),c=dt(i.as("M")),l=dt(i.as("y")),u=r<ee.s&&["s",r]||1===o&&["m"]||o<ee.m&&["mm",o]||1===s&&["h"]||s<ee.h&&["hh",s]||1===a&&["d"]||a<ee.d&&["dd",a]||1===c&&["M"]||c<ee.M&&["MM",c]||1===l&&["y"]||["yy",l];return u[2]=e,u[3]=+t>0,u[4]=n,K.apply({},u)}(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var n=ut.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=ut.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return this[(t=T(t)).toLowerCase()+"s"]()},as:function(t){var e,n;if("month"===(t=T(t))||"year"===t)return e=this._days+this._milliseconds/864e5,n=this._months+12*at(e),"month"===t?n:n/12;switch(e=this._days+Math.round(ct(this._months/12)),t){case"week":return e/7+this._milliseconds/6048e5;case"day":return e+this._milliseconds/864e5;case"hour":return 24*e+this._milliseconds/36e5;case"minute":return 24*e*60+this._milliseconds/6e4;case"second":return 24*e*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*e*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+t)}},lang:ut.fn.lang,locale:ut.fn.locale,toIsoString:l("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",(function(){return this.toISOString()})),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),r=Math.abs(this.minutes()),o=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||r||o?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(o?o+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),ut.duration.fn.toString=ut.duration.fn.toISOString,Jt)a(Jt,pt)&<(pt.toLowerCase());ut.duration.fn.asMilliseconds=function(){return this.as("ms")},ut.duration.fn.asSeconds=function(){return this.as("s")},ut.duration.fn.asMinutes=function(){return this.as("m")},ut.duration.fn.asHours=function(){return this.as("h")},ut.duration.fn.asDays=function(){return this.as("d")},ut.duration.fn.asWeeks=function(){return this.as("weeks")},ut.duration.fn.asMonths=function(){return this.as("M")},ut.duration.fn.asYears=function(){return this.as("y")},ut.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===M(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),Ct?i.exports=ut:(void 0!==(r=function(t,e,n){return n.config&&n.config()&&!0===n.config().noGlobal&&(ft.moment=ht),ut}.call(e,n,e,i))&&(i.exports=r),function(t){"undefined"==typeof ender&&(ht=ft.moment,ft.moment=t?l("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",ut):ut)}(!0))}).call(this)}).call(this,n(10),n(11)(t))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){!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(e.length&&!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){var e=Object.prototype.hasOwnProperty;function n(e,n){var i=n.children("."+e)[0];if(null==i&&((i=document.createElement("canvas")).className=e,t(i).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(n),!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)}this.element=i;var r=this.context=i.getContext("2d"),o=window.devicePixelRatio||1,s=r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1;this.pixelRatio=o/s,this.resize(n.width(),n.height()),this.textContainer=null,this.text={},this._textCache={}}function i(e,i,r,o){var s=[],a={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,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},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,l=null,u=null,h=null,p=null,f=[],d=[],g={left:0,right:0,top:0,bottom:0},v=0,m=0,y={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},_=this;function b(t,e){e=[_].concat(e);for(var n=0;n<t.length;++n)t[n].apply(this,e)}function x(e){s=function(e){for(var n=[],i=0;i<e.length;++i){var r=t.extend(!0,{},a.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=s.length,i=-1;for(e=0;e<s.length;++e){var r=s[e].color;null!=r&&(n--,"number"==typeof r&&r>i&&(i=r))}n<=i&&(n=i+1);var o,c=[],l=a.colors,u=l.length,h=0;for(e=0;e<n;e++)o=t.color.parse(l[e%u]||"#666"),e%u==0&&e&&(h=h>=0?h<.5?-h-.2:0:-h),c[e]=o.scale("rgb",1+h);var p,g=0;for(e=0;e<s.length;++e){if(null==(p=s[e]).color?(p.color=c[g].toString(),++g):"number"==typeof p.color&&(p.color=c[p.color].toString()),null==p.lines.show){var v,m=!0;for(v in p)if(p[v]&&p[v].show){m=!1;break}m&&(p.lines.show=!0)}null==p.lines.zero&&(p.lines.zero=!!p.lines.fill),p.xaxis=C(f,w(p,"x")),p.yaxis=C(d,w(p,"y"))}}(),function(){var e,n,i,r,o,a,c,l,u,h,p,f,d=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,v=Number.MAX_VALUE;function m(t,e,n){e<t.datamin&&e!=-v&&(t.datamin=e),n>t.datamax&&n!=v&&(t.datamax=n)}for(t.each(k(),(function(t,e){e.datamin=d,e.datamax=g,e.used=!1})),e=0;e<s.length;++e)(o=s[e]).datapoints={points:[]},b(y.processRawData,[o,o.data,o.datapoints]);for(e=0;e<s.length;++e){if(o=s[e],p=o.data,!(f=o.datapoints.format)){if((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){var _=!!(o.bars.show&&o.bars.zero||o.lines.show&&o.lines.zero);f.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:_}),o.bars.horizontal&&(delete f[f.length-1].y,f[f.length-1].x=!0)}o.datapoints.format=f}if(null==o.datapoints.pointsize){o.datapoints.pointsize=f.length,c=o.datapoints.pointsize,a=o.datapoints.points;var x=o.lines.show&&o.lines.steps;for(o.xaxis.used=o.yaxis.used=!0,n=i=0;n<p.length;++n,i+=c){var w=null==(h=p[n]);if(!w)for(r=0;r<c;++r)l=h[r],(u=f[r])&&(u.number&&null!=l&&(l=+l,isNaN(l)?l=null:l==1/0?l=v:l==-1/0&&(l=-v)),null==l&&(u.required&&(w=!0),null!=u.defaultValue&&(l=u.defaultValue))),a[i+r]=l;if(w)for(r=0;r<c;++r)null!=(l=a[i+r])&&!1!==(u=f[r]).autoscale&&(u.x&&m(o.xaxis,l,l),u.y&&m(o.yaxis,l,l)),a[i+r]=null;else if(x&&i>0&&null!=a[i-c]&&a[i-c]!=a[i]&&a[i-c+1]!=a[i+1]){for(r=0;r<c;++r)a[i+c+r]=a[i+r];a[i+1]=a[i-c+1],i+=c}}}}for(e=0;e<s.length;++e)o=s[e],b(y.processDatapoints,[o,o.datapoints]);for(e=0;e<s.length;++e){o=s[e],a=o.datapoints.points,c=o.datapoints.pointsize,f=o.datapoints.format;var S=d,C=d,T=g,A=g;for(n=0;n<a.length;n+=c)if(null!=a[n])for(r=0;r<c;++r)l=a[n+r],(u=f[r])&&!1!==u.autoscale&&l!=v&&l!=-v&&(u.x&&(l<S&&(S=l),l>T&&(T=l)),u.y&&(l<C&&(C=l),l>A&&(A=l)));if(o.bars.show){var N;switch(o.bars.align){case"left":N=0;break;case"right":N=-o.bars.barWidth;break;default:N=-o.bars.barWidth/2}o.bars.horizontal?(C+=N,A+=N+o.bars.barWidth):(S+=N,T+=N+o.bars.barWidth)}m(o.xaxis,S,T),m(o.yaxis,C,A)}t.each(k(),(function(t,e){e.datamin==d&&(e.datamin=null),e.datamax==g&&(e.datamax=null)}))}()}function w(t,e){var n=t[e+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function k(){return t.grep(f.concat(d),(function(t){return t}))}function S(t){var e,n,i={};for(e=0;e<f.length;++e)(n=f[e])&&n.used&&(i["x"+n.n]=n.c2p(t.left));for(e=0;e<d.length;++e)(n=d[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 C(e,n){return e[n-1]||(e[n-1]={n:n,direction:e==f?"x":"y",options:t.extend(!0,{},e==f?a.xaxis:a.yaxis)}),e[n-1]}function T(){P&&clearTimeout(P),u.unbind("mousemove",$),u.unbind("mouseleave",L),u.unbind("click",H),b(y.shutdown,[u])}function A(e){var n=e.labelWidth,i=e.labelHeight,r=e.options.position,o="x"===e.direction,s=e.options.tickLength,l=a.grid.axisMargin,u=a.grid.labelMargin,h=!0,p=!0,v=!0,m=!1;t.each(o?f:d,(function(t,n){n&&(n.show||n.reserveSpace)&&(n===e?m=!0:n.options.position===r&&(m?p=!1:h=!1),m||(v=!1))})),p&&(l=0),null==s&&(s=v?"full":5),isNaN(+s)||(u+=+s),o?(i+=u,"bottom"==r?(g.bottom+=i+l,e.box={top:c.height-g.bottom,height:i}):(e.box={top:g.top+l,height:i},g.top+=i+l)):(n+=u,"left"==r?(e.box={left:g.left+l,width:n},g.left+=n+l):(g.right+=n+l,e.box={left:c.width-g.right,width:n})),e.position=r,e.tickLength=s,e.box.padding=u,e.innermost=h}function N(){var n,i=k(),r=a.grid.show;for(var o in g){var l=a.grid.margin||0;g[o]="number"==typeof l?l:l[o]||0}for(var o in b(y.processOffset,[g]),g)"object"==typeof a.grid.borderWidth?g[o]+=r?a.grid.borderWidth[o]:0:g[o]+=r?a.grid.borderWidth:0;if(t.each(i,(function(t,e){var n=e.options;e.show=null==n.show?e.used:n.show,e.reserveSpace=null==n.reserveSpace?e.show:n.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 s=e.autoscaleMargin;null!=s&&(null==e.min&&(n-=r*s)<0&&null!=t.datamin&&t.datamin>=0&&(n=0),null==e.max&&(i+=r*s)>0&&null!=t.datamax&&t.datamax<=0&&(i=0))}t.min=n,t.max=i}(e)})),r){var u=t.grep(i,(function(t){return t.show||t.reserveSpace}));for(t.each(u,(function(e,n){!function(e){var n,i=e.options;n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==e.direction?c.width:c.height);var r=(e.max-e.min)/n,o=-Math.floor(Math.log(r)/Math.LN10),s=i.tickDecimals;null!=s&&o>s&&(o=s);var a,l=Math.pow(10,-o),u=r/l;u<1.5?a=1:u<3?(a=2,u>2.25&&(null==s||o+1<=s)&&(a=2.5,++o)):a=u<7.5?5:10;a*=l,null!=i.minTickSize&&a<i.minTickSize&&(a=i.minTickSize);if(e.delta=r,e.tickDecimals=Math.max(0,null!=s?s:o),e.tickSize=i.tickSize||a,"time"==i.mode&&!e.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");e.tickGenerator||(e.tickGenerator=function(t){var e,n,i,r=[],o=(n=t.min,(i=t.tickSize)*Math.floor(n/i)),s=0,a=Number.NaN;do{e=a,a=o+s*t.tickSize,r.push(a),++s}while(a<t.max&&a!=e);return r},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)});if(null!=i.alignTicksWithAxis){var h=("x"==e.direction?f:d)[i.alignTicksWithAxis-1];if(h&&h.used&&h!=e){var p=e.tickGenerator(e);if(p.length>0&&(null==i.min&&(e.min=Math.min(e.min,p[0])),null==i.max&&p.length>1&&(e.max=Math.max(e.max,p[p.length-1]))),e.tickGenerator=function(t){var e,n,i=[];for(n=0;n<h.ticks.length;++n)e=(h.ticks[n].v-h.min)/(h.max-h.min),e=t.min+e*(t.max-t.min),i.push(e);return i},!e.mode&&null==i.tickDecimals){var g=Math.max(0,1-Math.floor(Math.log(e.delta)/Math.LN10)),v=e.tickGenerator(e);v.length>1&&/\..*0$/.test((v[1]-v[0]).toFixed(g))||(e.tickDecimals=g)}}}}(n),function(e){var n,i,r=e.options.ticks,o=[];null==r||"number"==typeof r&&r>0?o=e.tickGenerator(e):r&&(o=t.isFunction(r)?r(e):r);for(e.ticks=[],n=0;n<o.length;++n){var s=null,a=o[n];"object"==typeof a?(i=+a[0],a.length>1&&(s=a[1])):i=+a,null==s&&(s=e.tickFormatter(i,e)),isNaN(i)||e.ticks.push({v:i,label:s})}}(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),function(t){for(var e=t.options,n=t.ticks||[],i=e.labelWidth||0,r=e.labelHeight||0,o=i||("x"==t.direction?Math.floor(c.width/(n.length||1)):null),s=t.direction+"Axis "+t.direction+t.n+"Axis",a="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+s,l=e.font||"flot-tick-label tickLabel",u=0;u<n.length;++u){var h=n[u];if(h.label){var p=c.getTextInfo(a,h.label,l,null,o);i=Math.max(i,p.width),r=Math.max(r,p.height)}}t.labelWidth=e.labelWidth||i,t.labelHeight=e.labelHeight||r}(n)})),n=u.length-1;n>=0;--n)A(u[n]);!function(){var e,n=a.grid.minBorderMargin;if(null==n)for(n=0,e=0;e<s.length;++e)n=Math.max(n,2*(s[e].points.radius+s[e].points.lineWidth/2));var i={left:n,right:n,top:n,bottom:n};t.each(k(),(function(t,e){e.reserveSpace&&e.ticks&&e.ticks.length&&("x"===e.direction?(i.left=Math.max(i.left,e.labelWidth/2),i.right=Math.max(i.right,e.labelWidth/2)):(i.bottom=Math.max(i.bottom,e.labelHeight/2),i.top=Math.max(i.top,e.labelHeight/2)))})),g.left=Math.ceil(Math.max(i.left,g.left)),g.right=Math.ceil(Math.max(i.right,g.right)),g.top=Math.ceil(Math.max(i.top,g.top)),g.bottom=Math.ceil(Math.max(i.bottom,g.bottom))}(),t.each(u,(function(t,e){!function(t){"x"==t.direction?(t.box.left=g.left-t.labelWidth/2,t.box.width=c.width-g.left-g.right+t.labelWidth):(t.box.top=g.top-t.labelHeight/2,t.box.height=c.height-g.bottom-g.top+t.labelHeight)}(e)}))}v=c.width-g.left-g.right,m=c.height-g.bottom-g.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=v/Math.abs(r(t.max)-r(t.min)),i=Math.min(r(t.max),r(t.min))):(n=-(n=t.scale=m/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)})),r&&t.each(k(),(function(t,e){var n,i,r,o,s,a=e.box,l=e.direction+"Axis "+e.direction+e.n+"Axis",u="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+l,h=e.options.font||"flot-tick-label tickLabel";if(c.removeText(u),e.show&&0!=e.ticks.length)for(var p=0;p<e.ticks.length;++p)!(n=e.ticks[p]).label||n.v<e.min||n.v>e.max||("x"==e.direction?(o="center",i=g.left+e.p2c(n.v),"bottom"==e.position?r=a.top+a.padding:(r=a.top+a.height-a.padding,s="bottom")):(s="middle",r=g.top+e.p2c(n.v),"left"==e.position?(i=a.left+a.width-a.padding,o="right"):i=a.left+a.padding),c.addText(u,i,r,n.label,h,null,null,o,s))})),function(){null!=a.legend.container?t(a.legend.container).html(""):e.find(".legend").remove();if(!a.legend.show)return;for(var n,i,r=[],o=[],c=!1,l=a.legend.labelFormatter,u=0;u<s.length;++u)(n=s[u]).label&&(i=l?l(n.label,n):n.label)&&o.push({label:i,color:n.color});if(a.legend.sorted)if(t.isFunction(a.legend.sorted))o.sort(a.legend.sorted);else if("reverse"==a.legend.sorted)o.reverse();else{var h="descending"!=a.legend.sorted;o.sort((function(t,e){return t.label==e.label?0:t.label<e.label!=h?1:-1}))}for(u=0;u<o.length;++u){var p=o[u];u%a.legend.noColumns==0&&(c&&r.push("</tr>"),r.push("<tr>"),c=!0),r.push('<td class="legendColorBox"><div style="border:1px solid '+a.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+p.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+p.label+"</td>")}c&&r.push("</tr>");if(0==r.length)return;var f='<table style="font-size:smaller;color:'+a.grid.color+'">'+r.join("")+"</table>";if(null!=a.legend.container)t(a.legend.container).html(f);else{var d="",v=a.legend.position,m=a.legend.margin;null==m[0]&&(m=[m,m]),"n"==v.charAt(0)?d+="top:"+(m[1]+g.top)+"px;":"s"==v.charAt(0)&&(d+="bottom:"+(m[1]+g.bottom)+"px;"),"e"==v.charAt(1)?d+="right:"+(m[0]+g.right)+"px;":"w"==v.charAt(1)&&(d+="left:"+(m[0]+g.left)+"px;");var y=t('<div class="legend">'+f.replace('style="','style="position:absolute;'+d+";")+"</div>").appendTo(e);if(0!=a.legend.backgroundOpacity){var _=a.legend.backgroundColor;null==_&&((_=(_=a.grid.backgroundColor)&&"string"==typeof _?t.color.parse(_):t.color.extract(y,"background-color")).a=1,_=_.toString());var b=y.children();t('<div style="position:absolute;width:'+b.width()+"px;height:"+b.height()+"px;"+d+"background-color:"+_+';"> </div>').prependTo(y).css("opacity",a.legend.backgroundOpacity)}}}()}function M(){c.clear(),b(y.drawBackground,[h]);var t=a.grid;t.show&&t.backgroundColor&&(h.save(),h.translate(g.left,g.top),h.fillStyle=V(a.grid.backgroundColor,m,0,"rgba(255, 255, 255, 0)"),h.fillRect(0,0,v,m),h.restore()),t.show&&!t.aboveData&&E();for(var e=0;e<s.length;++e)b(y.drawSeries,[h,s[e]]),O(s[e]);b(y.draw,[h]),t.show&&t.aboveData&&E(),c.render(),q()}function D(t,e){for(var n,i,r,o,s=k(),a=0;a<s.length;++a)if((n=s[a]).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?f[0]:d[0],i=t[e+"1"],r=t[e+"2"]),null!=i&&null!=r&&i>r){var c=i;i=r,r=c}return{from:i,to:r,axis:n}}function E(){var e,n,i,r;h.save(),h.translate(g.left,g.top);var o=a.grid.markings;if(o)for(t.isFunction(o)&&((n=_.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 s=o[e],c=D(s,"x"),l=D(s,"y");if(null==c.from&&(c.from=c.axis.min),null==c.to&&(c.to=c.axis.max),null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),!(c.to<c.axis.min||c.from>c.axis.max||l.to<l.axis.min||l.from>l.axis.max)){c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max),l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max);var u=c.from===c.to,p=l.from===l.to;if(!u||!p)if(c.from=Math.floor(c.axis.p2c(c.from)),c.to=Math.floor(c.axis.p2c(c.to)),l.from=Math.floor(l.axis.p2c(l.from)),l.to=Math.floor(l.axis.p2c(l.to)),u||p){var f=s.lineWidth||a.grid.markingsLineWidth,d=f%2?.5:0;h.beginPath(),h.strokeStyle=s.color||a.grid.markingsColor,h.lineWidth=f,u?(h.moveTo(c.to+d,l.from),h.lineTo(c.to+d,l.to)):(h.moveTo(c.from,l.to+d),h.lineTo(c.to,l.to+d)),h.stroke()}else h.fillStyle=s.color||a.grid.markingsColor,h.fillRect(c.from,l.to,c.to-c.from,l.from-l.to)}}n=k(),i=a.grid.borderWidth;for(var y=0;y<n.length;++y){var b,x,w,S,C=n[y],T=C.box,A=C.tickLength;if(C.show&&0!=C.ticks.length){for(h.lineWidth=1,"x"==C.direction?(b=0,x="full"==A?"top"==C.position?0:m:T.top-g.top+("top"==C.position?T.height:0)):(x=0,b="full"==A?"left"==C.position?0:v:T.left-g.left+("left"==C.position?T.width:0)),C.innermost||(h.strokeStyle=C.options.color,h.beginPath(),w=S=0,"x"==C.direction?w=v+1:S=m+1,1==h.lineWidth&&("x"==C.direction?x=Math.floor(x)+.5:b=Math.floor(b)+.5),h.moveTo(b,x),h.lineTo(b+w,x+S),h.stroke()),h.strokeStyle=C.options.tickColor,h.beginPath(),e=0;e<C.ticks.length;++e){var N=C.ticks[e].v;w=S=0,isNaN(N)||N<C.min||N>C.max||"full"==A&&("object"==typeof i&&i[C.position]>0||i>0)&&(N==C.min||N==C.max)||("x"==C.direction?(b=C.p2c(N),S="full"==A?-m:A,"top"==C.position&&(S=-S)):(x=C.p2c(N),w="full"==A?-v:A,"left"==C.position&&(w=-w)),1==h.lineWidth&&("x"==C.direction?b=Math.floor(b)+.5:x=Math.floor(x)+.5),h.moveTo(b,x),h.lineTo(b+w,x+S))}h.stroke()}}i&&(r=a.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&&(h.strokeStyle=r.top,h.lineWidth=i.top,h.beginPath(),h.moveTo(0-i.left,0-i.top/2),h.lineTo(v,0-i.top/2),h.stroke()),i.right>0&&(h.strokeStyle=r.right,h.lineWidth=i.right,h.beginPath(),h.moveTo(v+i.right/2,0-i.top),h.lineTo(v+i.right/2,m),h.stroke()),i.bottom>0&&(h.strokeStyle=r.bottom,h.lineWidth=i.bottom,h.beginPath(),h.moveTo(v+i.right,m+i.bottom/2),h.lineTo(0,m+i.bottom/2),h.stroke()),i.left>0&&(h.strokeStyle=r.left,h.lineWidth=i.left,h.beginPath(),h.moveTo(0-i.left/2,m+i.bottom),h.lineTo(0-i.left/2,0),h.stroke())):(h.lineWidth=i,h.strokeStyle=a.grid.borderColor,h.strokeRect(-i/2,-i/2,v+i,m+i))),h.restore()}function O(t){t.lines.show&&function(t){function e(t,e,n,i,r){var o=t.points,s=t.pointsize,a=null,c=null;h.beginPath();for(var l=s;l<o.length;l+=s){var u=o[l-s],p=o[l-s+1],f=o[l],d=o[l+1];if(null!=u&&null!=f){if(p<=d&&p<r.min){if(d<r.min)continue;u=(r.min-p)/(d-p)*(f-u)+u,p=r.min}else if(d<=p&&d<r.min){if(p<r.min)continue;f=(r.min-p)/(d-p)*(f-u)+u,d=r.min}if(p>=d&&p>r.max){if(d>r.max)continue;u=(r.max-p)/(d-p)*(f-u)+u,p=r.max}else if(d>=p&&d>r.max){if(p>r.max)continue;f=(r.max-p)/(d-p)*(f-u)+u,d=r.max}if(u<=f&&u<i.min){if(f<i.min)continue;p=(i.min-u)/(f-u)*(d-p)+p,u=i.min}else if(f<=u&&f<i.min){if(u<i.min)continue;d=(i.min-u)/(f-u)*(d-p)+p,f=i.min}if(u>=f&&u>i.max){if(f>i.max)continue;p=(i.max-u)/(f-u)*(d-p)+p,u=i.max}else if(f>=u&&f>i.max){if(u>i.max)continue;d=(i.max-u)/(f-u)*(d-p)+p,f=i.max}u==a&&p==c||h.moveTo(i.p2c(u)+e,r.p2c(p)+n),a=f,c=d,h.lineTo(i.p2c(f)+e,r.p2c(d)+n)}}h.stroke()}h.save(),h.translate(g.left,g.top),h.lineJoin="round";var n=t.lines.lineWidth,i=t.shadowSize;if(n>0&&i>0){h.lineWidth=i,h.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),h.lineWidth=i/2,e(t.datapoints,Math.sin(r)*(n/2+i/4),Math.cos(r)*(n/2+i/4),t.xaxis,t.yaxis)}h.lineWidth=n,h.strokeStyle=t.color;var o=R(t.lines,t.color,0,m);o&&(h.fillStyle=o,function(t,e,n){for(var i=t.points,r=t.pointsize,o=Math.min(Math.max(0,n.min),n.max),s=0,a=!1,c=1,l=0,u=0;!(r>0&&s>i.length+r);){var p=i[(s+=r)-r],f=i[s-r+c],d=i[s],g=i[s+c];if(a){if(r>0&&null!=p&&null==d){u=s,r=-r,c=2;continue}if(r<0&&s==l+r){h.fill(),a=!1,c=1,s=l=u+(r=-r);continue}}if(null!=p&&null!=d){if(p<=d&&p<e.min){if(d<e.min)continue;f=(e.min-p)/(d-p)*(g-f)+f,p=e.min}else if(d<=p&&d<e.min){if(p<e.min)continue;g=(e.min-p)/(d-p)*(g-f)+f,d=e.min}if(p>=d&&p>e.max){if(d>e.max)continue;f=(e.max-p)/(d-p)*(g-f)+f,p=e.max}else if(d>=p&&d>e.max){if(p>e.max)continue;g=(e.max-p)/(d-p)*(g-f)+f,d=e.max}if(a||(h.beginPath(),h.moveTo(e.p2c(p),n.p2c(o)),a=!0),f>=n.max&&g>=n.max)h.lineTo(e.p2c(p),n.p2c(n.max)),h.lineTo(e.p2c(d),n.p2c(n.max));else if(f<=n.min&&g<=n.min)h.lineTo(e.p2c(p),n.p2c(n.min)),h.lineTo(e.p2c(d),n.p2c(n.min));else{var v=p,m=d;f<=g&&f<n.min&&g>=n.min?(p=(n.min-f)/(g-f)*(d-p)+p,f=n.min):g<=f&&g<n.min&&f>=n.min&&(d=(n.min-f)/(g-f)*(d-p)+p,g=n.min),f>=g&&f>n.max&&g<=n.max?(p=(n.max-f)/(g-f)*(d-p)+p,f=n.max):g>=f&&g>n.max&&f<=n.max&&(d=(n.max-f)/(g-f)*(d-p)+p,g=n.max),p!=v&&h.lineTo(e.p2c(v),n.p2c(f)),h.lineTo(e.p2c(p),n.p2c(f)),h.lineTo(e.p2c(d),n.p2c(g)),d!=m&&(h.lineTo(e.p2c(d),n.p2c(g)),h.lineTo(e.p2c(m),n.p2c(g)))}}}}(t.datapoints,t.xaxis,t.yaxis));n>0&&e(t.datapoints,0,0,t.xaxis,t.yaxis);h.restore()}(t),t.bars.show&&function(t){var e;switch(h.save(),h.translate(g.left,g.top),h.lineWidth=t.bars.lineWidth,h.strokeStyle=t.color,t.bars.align){case"left":e=0;break;case"right":e=-t.bars.barWidth;break;default:e=-t.bars.barWidth/2}var n=t.bars.fill?function(e,n){return R(t.bars,t.color,e,n)}:null;(function(e,n,i,r,o,s){for(var a=e.points,c=e.pointsize,l=0;l<a.length;l+=c)null!=a[l]&&j(a[l],a[l+1],a[l+2],n,i,r,o,s,h,t.bars.horizontal,t.bars.lineWidth)})(t.datapoints,e,e+t.bars.barWidth,n,t.xaxis,t.yaxis),h.restore()}(t),t.points.show&&function(t){function e(t,e,n,i,r,o,s,a){for(var c=t.points,l=t.pointsize,u=0;u<c.length;u+=l){var p=c[u],f=c[u+1];null==p||p<o.min||p>o.max||f<s.min||f>s.max||(h.beginPath(),p=o.p2c(p),f=s.p2c(f)+i,"circle"==a?h.arc(p,f,e,0,r?Math.PI:2*Math.PI,!1):a(h,p,f,e,r),h.closePath(),n&&(h.fillStyle=n,h.fill()),h.stroke())}}h.save(),h.translate(g.left,g.top);var n=t.points.lineWidth,i=t.shadowSize,r=t.points.radius,o=t.points.symbol;0==n&&(n=1e-4);if(n>0&&i>0){var s=i/2;h.lineWidth=s,h.strokeStyle="rgba(0,0,0,0.1)",e(t.datapoints,r,null,s+s/2,!0,t.xaxis,t.yaxis,o),h.strokeStyle="rgba(0,0,0,0.2)",e(t.datapoints,r,null,s/2,!0,t.xaxis,t.yaxis,o)}h.lineWidth=n,h.strokeStyle=t.color,e(t.datapoints,r,R(t.points,t.color),0,!1,t.xaxis,t.yaxis,o),h.restore()}(t)}function j(t,e,n,i,r,o,s,a,c,l,u){var h,p,f,d,g,v,m,y,_;l?(y=v=m=!0,g=!1,d=e+i,f=e+r,(p=t)<(h=n)&&(_=p,p=h,h=_,g=!0,v=!1)):(g=v=m=!0,y=!1,h=t+i,p=t+r,(d=e)<(f=n)&&(_=d,d=f,f=_,y=!0,m=!1)),p<s.min||h>s.max||d<a.min||f>a.max||(h<s.min&&(h=s.min,g=!1),p>s.max&&(p=s.max,v=!1),f<a.min&&(f=a.min,y=!1),d>a.max&&(d=a.max,m=!1),h=s.p2c(h),f=a.p2c(f),p=s.p2c(p),d=a.p2c(d),o&&(c.fillStyle=o(f,d),c.fillRect(h,d,p-h,f-d)),u>0&&(g||v||m||y)&&(c.beginPath(),c.moveTo(h,f),g?c.lineTo(h,d):c.moveTo(h,d),m?c.lineTo(p,d):c.moveTo(p,d),v?c.lineTo(p,f):c.moveTo(p,f),y?c.lineTo(h,f):c.moveTo(h,f),c.stroke()))}function R(e,n,i,r){var o=e.fill;if(!o)return null;if(e.fillColor)return V(e.fillColor,i,r,n);var s=t.color.parse(n);return s.a="number"==typeof o?o:.4,s.normalize(),s.toString()}_.setData=x,_.setupGrid=N,_.draw=M,_.getPlaceholder=function(){return e},_.getCanvas=function(){return c.element},_.getPlotOffset=function(){return g},_.width=function(){return v},_.height=function(){return m},_.offset=function(){var t=u.offset();return t.left+=g.left,t.top+=g.top,t},_.getData=function(){return s},_.getAxes=function(){var e={};return t.each(f.concat(d),(function(t,n){n&&(e[n.direction+(1!=n.n?n.n:"")+"axis"]=n)})),e},_.getXAxes=function(){return f},_.getYAxes=function(){return d},_.c2p=S,_.p2c=function(t){var e,n,i,r={};for(e=0;e<f.length;++e)if((n=f[e])&&n.used&&(i="x"+n.n,null==t[i]&&1==n.n&&(i="x"),null!=t[i])){r.left=n.p2c(t[i]);break}for(e=0;e<d.length;++e)if((n=d[e])&&n.used&&(i="y"+n.n,null==t[i]&&1==n.n&&(i="y"),null!=t[i])){r.top=n.p2c(t[i]);break}return r},_.getOptions=function(){return a},_.highlight=B,_.unhighlight=z,_.triggerRedrawOverlay=q,_.pointOffset=function(t){return{left:parseInt(f[w(t,"x")-1].p2c(+t.x)+g.left,10),top:parseInt(d[w(t,"y")-1].p2c(+t.y)+g.top,10)}},_.shutdown=T,_.destroy=function(){T(),e.removeData("plot").empty(),s=[],a=null,c=null,l=null,u=null,h=null,p=null,f=[],d=[],y=null,I=[],_=null},_.resize=function(){var t=e.width(),n=e.height();c.resize(t,n),l.resize(t,n)},_.hooks=y,function(){for(var e={Canvas:n},i=0;i<o.length;++i){var r=o[i];r.init(_,e),r.options&&t.extend(!0,a,r.options)}}(),function(n){t.extend(!0,a,n),n&&n.colors&&(a.colors=n.colors);null==a.xaxis.color&&(a.xaxis.color=t.color.parse(a.grid.color).scale("a",.22).toString());null==a.yaxis.color&&(a.yaxis.color=t.color.parse(a.grid.color).scale("a",.22).toString());null==a.xaxis.tickColor&&(a.xaxis.tickColor=a.grid.tickColor||a.xaxis.color);null==a.yaxis.tickColor&&(a.yaxis.tickColor=a.grid.tickColor||a.yaxis.color);null==a.grid.borderColor&&(a.grid.borderColor=a.grid.color);null==a.grid.tickColor&&(a.grid.tickColor=t.color.parse(a.grid.color).scale("a",.22).toString());var i,r,o,s=e.css("font-size"),c=s?+s.replace("px",""):13,l={style:e.css("font-style"),size:Math.round(.8*c),variant:e.css("font-variant"),weight:e.css("font-weight"),family:e.css("font-family")};for(o=a.xaxes.length||1,i=0;i<o;++i)(r=a.xaxes[i])&&!r.tickColor&&(r.tickColor=r.color),r=t.extend(!0,{},a.xaxis,r),a.xaxes[i]=r,r.font&&(r.font=t.extend({},l,r.font),r.font.color||(r.font.color=r.color),r.font.lineHeight||(r.font.lineHeight=Math.round(1.15*r.font.size)));for(o=a.yaxes.length||1,i=0;i<o;++i)(r=a.yaxes[i])&&!r.tickColor&&(r.tickColor=r.color),r=t.extend(!0,{},a.yaxis,r),a.yaxes[i]=r,r.font&&(r.font=t.extend({},l,r.font),r.font.color||(r.font.color=r.color),r.font.lineHeight||(r.font.lineHeight=Math.round(1.15*r.font.size)));a.xaxis.noTicks&&null==a.xaxis.ticks&&(a.xaxis.ticks=a.xaxis.noTicks);a.yaxis.noTicks&&null==a.yaxis.ticks&&(a.yaxis.ticks=a.yaxis.noTicks);a.x2axis&&(a.xaxes[1]=t.extend(!0,{},a.xaxis,a.x2axis),a.xaxes[1].position="top",null==a.x2axis.min&&(a.xaxes[1].min=null),null==a.x2axis.max&&(a.xaxes[1].max=null));a.y2axis&&(a.yaxes[1]=t.extend(!0,{},a.yaxis,a.y2axis),a.yaxes[1].position="right",null==a.y2axis.min&&(a.yaxes[1].min=null),null==a.y2axis.max&&(a.yaxes[1].max=null));a.grid.coloredAreas&&(a.grid.markings=a.grid.coloredAreas);a.grid.coloredAreasColor&&(a.grid.markingsColor=a.grid.coloredAreasColor);a.lines&&t.extend(!0,a.series.lines,a.lines);a.points&&t.extend(!0,a.series.points,a.points);a.bars&&t.extend(!0,a.series.bars,a.bars);null!=a.shadowSize&&(a.series.shadowSize=a.shadowSize);null!=a.highlightColor&&(a.series.highlightColor=a.highlightColor);for(i=0;i<a.xaxes.length;++i)C(f,i+1).options=a.xaxes[i];for(i=0;i<a.yaxes.length;++i)C(d,i+1).options=a.yaxes[i];for(var u in y)a.hooks[u]&&a.hooks[u].length&&(y[u]=y[u].concat(a.hooks[u]));b(y.processOptions,[a])}(r),function(){e.css("padding",0).children().filter((function(){return!t(this).hasClass("flot-overlay")&&!t(this).hasClass("flot-base")})).remove(),"static"==e.css("position")&&e.css("position","relative");c=new n("flot-base",e),l=new n("flot-overlay",e),h=c.context,p=l.context,u=t(l.element).unbind();var i=e.data("plot");i&&(i.shutdown(),l.clear());e.data("plot",_)}(),x(i),N(),M(),function(){a.grid.hoverable&&(u.mousemove($),u.bind("mouseleave",L));a.grid.clickable&&u.click(H);b(y.bindEvents,[u])}();var I=[],P=null;function $(t){a.grid.hoverable&&W("plothover",t,(function(t){return 0!=t.hoverable}))}function L(t){a.grid.hoverable&&W("plothover",t,(function(t){return!1}))}function H(t){W("plotclick",t,(function(t){return 0!=t.clickable}))}function W(t,n,i){var r=u.offset(),o=n.pageX-r.left-g.left,c=n.pageY-r.top-g.top,l=S({left:o,top:c});l.pageX=n.pageX,l.pageY=n.pageY;var h=function(t,e,n){var i,r,o,c=a.grid.mouseActiveRadius,l=c*c+1,u=null;for(i=s.length-1;i>=0;--i)if(n(s[i])){var h=s[i],p=h.xaxis,f=h.yaxis,d=h.datapoints.points,g=p.c2p(t),v=f.c2p(e),m=c/p.scale,y=c/f.scale;if(o=h.datapoints.pointsize,p.options.inverseTransform&&(m=Number.MAX_VALUE),f.options.inverseTransform&&(y=Number.MAX_VALUE),h.lines.show||h.points.show)for(r=0;r<d.length;r+=o){var _=d[r],b=d[r+1];if(null!=_&&!(_-g>m||_-g<-m||b-v>y||b-v<-y)){var x=Math.abs(p.p2c(_)-t),w=Math.abs(f.p2c(b)-e),k=x*x+w*w;k<l&&(l=k,u=[i,r/o])}}if(h.bars.show&&!u){var S,C;switch(h.bars.align){case"left":S=0;break;case"right":S=-h.bars.barWidth;break;default:S=-h.bars.barWidth/2}for(C=S+h.bars.barWidth,r=0;r<d.length;r+=o){_=d[r],b=d[r+1];var T=d[r+2];null!=_&&((s[i].bars.horizontal?g<=Math.max(T,_)&&g>=Math.min(T,_)&&v>=b+S&&v<=b+C:g>=_+S&&g<=_+C&&v>=Math.min(T,b)&&v<=Math.max(T,b))&&(u=[i,r/o]))}}}return u?(i=u[0],r=u[1],o=s[i].datapoints.pointsize,{datapoint:s[i].datapoints.points.slice(r*o,(r+1)*o),dataIndex:r,series:s[i],seriesIndex:i}):null}(o,c,i);if(h&&(h.pageX=parseInt(h.series.xaxis.p2c(h.datapoint[0])+r.left+g.left,10),h.pageY=parseInt(h.series.yaxis.p2c(h.datapoint[1])+r.top+g.top,10)),a.grid.autoHighlight){for(var p=0;p<I.length;++p){var f=I[p];f.auto!=t||h&&f.series==h.series&&f.point[0]==h.datapoint[0]&&f.point[1]==h.datapoint[1]||z(f.series,f.point)}h&&B(h.series,h.datapoint,t)}e.trigger(t,[l,h])}function q(){var t=a.interaction.redrawOverlayInterval;-1!=t?P||(P=setTimeout(F,t)):F()}function F(){var t,e;for(P=null,p.save(),l.clear(),p.translate(g.left,g.top),t=0;t<I.length;++t)(e=I[t]).series.bars.show?X(e.series,e.point):U(e.series,e.point);p.restore(),b(y.drawOverlay,[p])}function B(t,e,n){if("number"==typeof t&&(t=s[t]),"number"==typeof e){var i=t.datapoints.pointsize;e=t.datapoints.points.slice(i*e,i*(e+1))}var r=Y(t,e);-1==r?(I.push({series:t,point:e,auto:n}),q()):n||(I[r].auto=!1)}function z(t,e){if(null==t&&null==e)return I=[],void q();if("number"==typeof t&&(t=s[t]),"number"==typeof e){var n=t.datapoints.pointsize;e=t.datapoints.points.slice(n*e,n*(e+1))}var i=Y(t,e);-1!=i&&(I.splice(i,1),q())}function Y(t,e){for(var n=0;n<I.length;++n){var i=I[n];if(i.series==t&&i.point[0]==e[0]&&i.point[1]==e[1])return n}return-1}function U(e,n){var i=n[0],r=n[1],o=e.xaxis,s=e.yaxis,a="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString();if(!(i<o.min||i>o.max||r<s.min||r>s.max)){var c=e.points.radius+e.points.lineWidth/2;p.lineWidth=c,p.strokeStyle=a;var l=1.5*c;i=o.p2c(i),r=s.p2c(r),p.beginPath(),"circle"==e.points.symbol?p.arc(i,r,l,0,2*Math.PI,!1):e.points.symbol(p,i,r,l,!1),p.closePath(),p.stroke()}}function X(e,n){var i,r="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString(),o=r;switch(e.bars.align){case"left":i=0;break;case"right":i=-e.bars.barWidth;break;default:i=-e.bars.barWidth/2}p.lineWidth=e.bars.lineWidth,p.strokeStyle=r,j(n[0],n[1],n[2]||0,i,i+e.bars.barWidth,(function(){return o}),e.xaxis,e.yaxis,p,e.bars.horizontal,e.bars.lineWidth)}function V(e,n,i,r){if("string"==typeof e)return e;for(var o=h.createLinearGradient(0,i,0,n),s=0,a=e.colors.length;s<a;++s){var c=e.colors[s];if("string"!=typeof c){var l=t.color.parse(r);null!=c.brightness&&(l=l.scale("rgb",c.brightness)),null!=c.opacity&&(l.a*=c.opacity),c=l.toString()}o.addColorStop(s/(a-1),c)}return o}}t.fn.detach||(t.fn.detach=function(){return this.each((function(){this.parentNode&&this.parentNode.removeChild(this)}))}),n.prototype.resize=function(t,e){if(t<=0||e<=0)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+e);var n=this.element,i=this.context,r=this.pixelRatio;this.width!=t&&(n.width=t*r,n.style.width=t+"px",this.width=t),this.height!=e&&(n.height=e*r,n.style.height=e+"px",this.height=e),i.restore(),i.save(),i.scale(r,r)},n.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},n.prototype.render=function(){var t=this._textCache;for(var n in t)if(e.call(t,n)){var i=this.getTextLayer(n),r=t[n];for(var o in i.hide(),r)if(e.call(r,o)){var s=r[o];for(var a in s)if(e.call(s,a)){for(var c,l=s[a].positions,u=0;c=l[u];u++)c.active?c.rendered||(i.append(c.element),c.rendered=!0):(l.splice(u--,1),c.rendered&&c.element.detach());0==l.length&&delete s[a]}}i.show()}},n.prototype.getTextLayer=function(e){var n=this.text[e];return null==n&&(null==this.textContainer&&(this.textContainer=t("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),n=this.text[e]=t("<div></div>").addClass(e).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),n},n.prototype.getTextInfo=function(e,n,i,r,o){var s,a,c,l;if(n=""+n,s="object"==typeof i?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px/"+i.lineHeight+"px "+i.family:i,null==(a=this._textCache[e])&&(a=this._textCache[e]={}),null==(c=a[s])&&(c=a[s]={}),null==(l=c[n])){var u=t("<div></div>").html(n).css({position:"absolute","max-width":o,top:-9999}).appendTo(this.getTextLayer(e));"object"==typeof i?u.css({font:s,color:i.color}):"string"==typeof i&&u.addClass(i),l=c[n]={width:u.outerWidth(!0),height:u.outerHeight(!0),element:u,positions:[]},u.detach()}return l},n.prototype.addText=function(t,e,n,i,r,o,s,a,c){var l=this.getTextInfo(t,i,r,o,s),u=l.positions;"center"==a?e-=l.width/2:"right"==a&&(e-=l.width),"middle"==c?n-=l.height/2:"bottom"==c&&(n-=l.height);for(var h,p=0;h=u[p];p++)if(h.x==e&&h.y==n)return void(h.active=!0);h={active:!0,rendered:!1,element:u.length?l.element.clone():l.element,x:e,y:n},u.push(h),h.element.css({top:Math.round(n),left:Math.round(e),"text-align":a})},n.prototype.removeText=function(t,n,i,r,o,s){if(null==r){var a=this._textCache[t];if(null!=a)for(var c in a)if(e.call(a,c)){var l=a[c];for(var u in l)if(e.call(l,u))for(var h=l[u].positions,p=0;f=h[p];p++)f.active=!1}}else{var f;for(h=this.getTextInfo(t,r,o,s).positions,p=0;f=h[p];p++)f.x==n&&f.y==i&&(f.active=!1)}},t.plot=function(e,n,r){return new i(t(e),n,r,t.plot.plugins)},t.plot.version="0.8.3",t.plot.plugins=[],t.fn.plot=function(e,n){return this.each((function(){t.plot(this,e,n)}))}}(jQuery)},function(t,e){!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 e=""+(null==e?"0":e),1==(t=""+t).length?e+t:t},s=[],a=!1,c=t.getHours(),l=c<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=c>12?c-12:0==c?12:c;for(var u=0;u<e.length;++u){var h=e.charAt(u);if(a){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":case"H":h=o(c);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=l?"am":"pm";break;case"P":h=l?"AM":"PM";break;case"w":h=""+t.getDay()}s.push(h),a=!1}else"%"==h?a=!0:s.push(h)}return s.join("")}function i(t){function e(t,e,n,i){t[e]=function(){return n[i].apply(n,arguments)}}var n={date:t};null!=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},s=[[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"]],a=s.concat([[3,"month"],[6,"month"],[1,"year"]]),c=s.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);t.plot.plugins.push({init:function(i){i.hooks.processOptions.push((function(i,s){t.each(i.getAxes(),(function(t,i){var s=i.options;"time"==s.mode&&(i.tickGenerator=function(t){var n=[],i=r(t.min,s),l=0,u=s.tickSize&&"quarter"===s.tickSize[1]||s.minTickSize&&"quarter"===s.minTickSize[1]?c:a;null!=s.minTickSize&&(l="number"==typeof s.tickSize?s.tickSize:s.minTickSize[0]*o[s.minTickSize[1]]);for(var h=0;h<u.length-1&&!(t.delta<(u[h][0]*o[u[h][1]]+u[h+1][0]*o[u[h+1][1]])/2&&u[h][0]*o[u[h][1]]>=l);++h);var p=u[h][0],f=u[h][1];if("year"==f){if(null!=s.minTickSize&&"year"==s.minTickSize[1])p=Math.floor(s.minTickSize[0]);else{var d=Math.pow(10,Math.floor(Math.log(t.delta/o.year)/Math.LN10)),g=t.delta/o.year/d;p=g<1.5?1:g<3?2:g<7.5?5:10,p*=d}p<1&&(p=1)}t.tickSize=s.tickSize||[p,f];var v=t.tickSize[0];f=t.tickSize[1];var m=v*o[f];"second"==f?i.setSeconds(e(i.getSeconds(),v)):"minute"==f?i.setMinutes(e(i.getMinutes(),v)):"hour"==f?i.setHours(e(i.getHours(),v)):"month"==f?i.setMonth(e(i.getMonth(),v)):"quarter"==f?i.setMonth(3*e(i.getMonth()/3,v)):"year"==f&&i.setFullYear(e(i.getFullYear(),v)),i.setMilliseconds(0),m>=o.minute&&i.setSeconds(0),m>=o.hour&&i.setMinutes(0),m>=o.day&&i.setHours(0),m>=4*o.day&&i.setDate(1),m>=2*o.month&&i.setMonth(e(i.getMonth(),3)),m>=2*o.quarter&&i.setMonth(e(i.getMonth(),6)),m>=o.year&&i.setMonth(0);var y,_=0,b=Number.NaN;do{if(y=b,b=i.getTime(),n.push(b),"month"==f||"quarter"==f)if(v<1){i.setDate(1);var x=i.getTime();i.setMonth(i.getMonth()+("quarter"==f?3:1));var w=i.getTime();i.setTime(b+_*o.hour+(w-x)*v),_=i.getHours(),i.setHours(0)}else i.setMonth(i.getMonth()+v*("quarter"==f?3:1));else"year"==f?i.setFullYear(i.getFullYear()+v):i.setTime(b+m)}while(b<t.max&&b!=y);return n},i.tickFormatter=function(t,e){var i=r(t,e.options);if(null!=s.timeformat)return n(i,s.timeformat,s.monthNames,s.dayNames);var a=e.options.tickSize&&"quarter"==e.options.tickSize[1]||e.options.minTickSize&&"quarter"==e.options.minTickSize[1],c=e.tickSize[0]*o[e.tickSize[1]],l=e.max-e.min,u=s.twelveHourClock?" %p":"",h=s.twelveHourClock?"%I":"%H";return n(i,c<o.minute?h+":%M:%S"+u:c<o.day?l<2*o.day?h+":%M"+u:"%b %d "+h+":%M"+u:c<o.month?"%b %d":a&&c<o.quarter||!a&&c<o.year?l<o.year?"%b":"%b %Y":a&&c<o.year?l<o.year?"Q%q":"Q%q %Y":"%Y",s.monthNames,s.dayNames)})}))}))},options:{xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},name:"time",version:"1.0"}),t.plot.formatDate=n,t.plot.dateGenerator=r}(jQuery)},function(t,e){!function(t,e,n){var i,r=[],o=t.resize=t.extend(t.resize,{}),s=!1,a="setTimeout",c="resize",l=c+"-special-event",u="pendingDelay",h="activeDelay",p="throttleWindow";function f(n){!0===s&&(s=n||1);for(var a=r.length-1;a>=0;a--){var h=t(r[a]);if(h[0]==e||h.is(":visible")){var p=h.width(),d=h.height(),g=h.data(l);!g||p===g.w&&d===g.h||(h.trigger(c,[g.w=p,g.h=d]),s=n||!0)}else(g=h.data(l)).w=0,g.h=0}null!==i&&(s&&(null==n||n-s<1e3)?i=e.requestAnimationFrame(f):(i=setTimeout(f,o[u]),s=!1))}o[u]=200,o[h]=20,o[p]=!0,t.event.special[c]={setup:function(){if(!o[p]&&this[a])return!1;var e=t(this);r.push(this),e.data(l,{w:e.width(),h:e.height()}),1===r.length&&(i=n,f())},teardown:function(){if(!o[p]&&this[a])return!1;for(var e=t(this),n=r.length-1;n>=0;n--)if(r[n]==this){r.splice(n,1);break}e.removeData(l),r.length||(s?cancelAnimationFrame(i):clearTimeout(i),i=null)},add:function(e){if(!o[p]&&this[a])return!1;var i;function r(e,r,o){var s=t(this),a=s.data(l)||{};a.w=r!==n?r:s.width(),a.h=o!==n?o:s.height(),i.apply(this,arguments)}if(t.isFunction(e))return i=e,r;i=e.handler,e.handler=r}},e.requestAnimationFrame||(e.requestAnimationFrame=e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(t,n){return e.setTimeout((function(){t((new Date).getTime())}),o[h])}),e.cancelAnimationFrame||(e.cancelAnimationFrame=e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||clearTimeout)}(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,e){jQuery.plot.plugins.push({init:function(t){var e,n,i,r,o=1,s=!1;function a(t,e){for(var n=new Array,i=0;i<t.length;i++)n[0]=t[i].data[0][e],n[1]=t[i].data[t[i].data.length-1][e];return n}function c(t,e){var n=t.bars.order,i=e.bars.order;return n<i?-1:n>i?1:0}function l(t,e,n){for(var i=0,o=e;o<=n;o++)i+=t[o].bars.barWidth+2*r;return i}t.hooks.processDatapoints.push((function(t,u,h){var p,f=null;if(function(t){return null!=t.bars&&t.bars.show&&null!=t.bars.order}(u)&&(function(t){t.bars.horizontal&&(s=!0)}(u),function(t){var e=s?t.getPlaceholder().innerHeight():t.getPlaceholder().innerWidth(),n=a(t.getData(),s?1:0),i=n[1]-n[0];o=i/e}(t),function(t){e=function(t){for(var e=new Array,n=0;n<t.length;n++)null!=t[n].bars.order&&t[n].bars.show&&e.push(t[n]);return e.sort(c)}(t.getData()),n=e.length}(t),function(t){i=t.bars.lineWidth?t.bars.lineWidth:2,r=i*o}(u),n>=2)){var d=function(t){for(var n=0,i=0;i<e.length;++i)if(t==e[i]){n=i;break}return n+1}(u),g=(p=0,n%2!=0&&(p=e[Math.ceil(n/2)].bars.barWidth/2),p);f=function(t,e,n){for(var i=t.pointsize,r=t.points,o=0,a=s?1:0;a<r.length;a+=i)r[a]+=n,e.data[o][3]=r[a],o++;return r}(h,u,function(t){return t<=Math.ceil(n/2)}(d)?-1*l(e,d-1,Math.floor(n/2)-1)-g:l(e,Math.ceil(n/2),d-2)+g+2*r),h.points=f}return f}))},options:{series:{bars:{order:null}}},name:"orderBars",version:"0.2"})},function(t,e){!function(t){var e=10,n=.95;var i={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(i){var r=null,o=null,s=null,a=null,c=null,l=null,u=!1,h=null,p=[];function f(e,n,i){u||(u=!0,r=e.getCanvas(),o=t(r).parent(),s=e.getOptions(),e.setData(function(e){for(var n=0,i=0,r=0,o=s.series.pie.combine.color,a=[],c=0;c<e.length;++c){var l=e[c].data;t.isArray(l)&&1==l.length&&(l=l[0]),t.isArray(l)?!isNaN(parseFloat(l[1]))&&isFinite(l[1])?l[1]=+l[1]:l[1]=0:l=!isNaN(parseFloat(l))&&isFinite(l)?[1,+l]:[1,0],e[c].data=[l]}for(c=0;c<e.length;++c)n+=e[c].data[0][1];for(c=0;c<e.length;++c){(l=e[c].data[0][1])/n<=s.series.pie.combine.threshold&&(i+=l,r++,o||(o=e[c].color))}for(c=0;c<e.length;++c){l=e[c].data[0][1];(r<2||l/n>s.series.pie.combine.threshold)&&a.push(t.extend(e[c],{data:[[1,l]],color:e[c].color,label:e[c].label,angle:l*Math.PI*2/n,percent:l/(n/100)}))}r>1&&a.push({data:[[1,i]],color:o,label:s.series.pie.combine.label,angle:i*Math.PI*2/n,percent:i/(n/100)});return a}(e.getData())))}function d(i,r){if(o){var p=i.getPlaceholder().width(),f=i.getPlaceholder().height(),d=o.children().filter(".legend").children().width()||0;h=r,u=!1,a=Math.min(p,f/s.series.pie.tilt)/2,l=f/2+s.series.pie.offset.top,c=p/2,"auto"==s.series.pie.offset.left?(s.legend.position.match("w")?c+=d/2:c-=d/2,c<a?c=a:c>p-a&&(c=p-a)):c+=s.series.pie.offset.left;var v=i.getData(),m=0;do{m>0&&(a*=n),m+=1,y(),s.series.pie.tilt<=.8&&_()}while(!b()&&m<e);m>=e&&(y(),o.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),i.setSeries&&i.insertLegend&&(i.setSeries(v),i.insertLegend())}function y(){h.clearRect(0,0,p,f),o.children().filter(".pieLabel, .pieLabelBackground").remove()}function _(){var t=s.series.pie.shadow.left,e=s.series.pie.shadow.top,n=s.series.pie.shadow.alpha,i=s.series.pie.radius>1?s.series.pie.radius:a*s.series.pie.radius;if(!(i>=p/2-t||i*s.series.pie.tilt>=f/2-e||i<=10)){h.save(),h.translate(t,e),h.globalAlpha=n,h.fillStyle="#000",h.translate(c,l),h.scale(1,s.series.pie.tilt);for(var r=1;r<=10;r++)h.beginPath(),h.arc(0,0,i,0,2*Math.PI,!1),h.fill(),i-=r;h.restore()}}function b(){var e=Math.PI*s.series.pie.startAngle,n=s.series.pie.radius>1?s.series.pie.radius:a*s.series.pie.radius;h.save(),h.translate(c,l),h.scale(1,s.series.pie.tilt),h.save();for(var i=e,r=0;r<v.length;++r)v[r].startAngle=i,u(v[r].angle,v[r].color,!0);if(h.restore(),s.series.pie.stroke.width>0){h.save(),h.lineWidth=s.series.pie.stroke.width,i=e;for(r=0;r<v.length;++r)u(v[r].angle,s.series.pie.stroke.color,!1);h.restore()}return g(h),h.restore(),!s.series.pie.label.show||function(){for(var n=e,i=s.series.pie.label.radius>1?s.series.pie.label.radius:a*s.series.pie.label.radius,r=0;r<v.length;++r){if(v[r].percent>=100*s.series.pie.label.threshold&&!u(v[r],n,r))return!1;n+=v[r].angle}return!0;function u(e,n,r){if(0==e.data[0][1])return!0;var a,u=s.legend.labelFormatter,h=s.series.pie.label.formatter;a=u?u(e.label,e):e.label,h&&(a=h(a,e));var d=(n+e.angle+n)/2,g=c+Math.round(Math.cos(d)*i),v=l+Math.round(Math.sin(d)*i)*s.series.pie.tilt,m="<span class='pieLabel' id='pieLabel"+r+"' style='position:absolute;top:"+v+"px;left:"+g+"px;'>"+a+"</span>";o.append(m);var y=o.children("#pieLabel"+r),_=v-y.height()/2,b=g-y.width()/2;if(y.css("top",_),y.css("left",b),0-_>0||0-b>0||f-(_+y.height())<0||p-(b+y.width())<0)return!1;if(0!=s.series.pie.label.background.opacity){var x=s.series.pie.label.background.color;null==x&&(x=e.color);var w="top:"+_+"px;left:"+b+"px;";t("<div class='pieLabelBackground' style='position:absolute;width:"+y.width()+"px;height:"+y.height()+"px;"+w+"background-color:"+x+";'></div>").css("opacity",s.series.pie.label.background.opacity).insertBefore(y)}return!0}}();function u(t,e,r){t<=0||isNaN(t)||(r?h.fillStyle=e:(h.strokeStyle=e,h.lineJoin="round"),h.beginPath(),Math.abs(t-2*Math.PI)>1e-9&&h.moveTo(0,0),h.arc(0,0,n,i,i+t/2,!1),h.arc(0,0,n,i+t/2,i+t,!1),h.closePath(),i+=t,r?h.fill():h.stroke())}}}function g(t){if(s.series.pie.innerRadius>0){t.save();var e=s.series.pie.innerRadius>1?s.series.pie.innerRadius:a*s.series.pie.innerRadius;t.globalCompositeOperation="destination-out",t.beginPath(),t.fillStyle=s.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.fill(),t.closePath(),t.restore(),t.save(),t.beginPath(),t.strokeStyle=s.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.stroke(),t.closePath(),t.restore()}}function v(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 m(t){_("plothover",t)}function y(t){_("plotclick",t)}function _(t,e){var n=i.offset(),r=function(t,e){for(var n,r,o=i.getData(),s=i.getOptions(),u=s.series.pie.radius>1?s.series.pie.radius:a*s.series.pie.radius,p=0;p<o.length;++p){var f=o[p];if(f.pie.show){if(h.save(),h.beginPath(),h.moveTo(0,0),h.arc(0,0,u,f.startAngle,f.startAngle+f.angle/2,!1),h.arc(0,0,u,f.startAngle+f.angle/2,f.startAngle+f.angle,!1),h.closePath(),n=t-c,r=e-l,h.isPointInPath){if(h.isPointInPath(t-c,e-l))return h.restore(),{datapoint:[f.percent,f.data],dataIndex:0,series:f,seriesIndex:p}}else if(v([[0,0],[u*Math.cos(f.startAngle),u*Math.sin(f.startAngle)],[u*Math.cos(f.startAngle+f.angle/4),u*Math.sin(f.startAngle+f.angle/4)],[u*Math.cos(f.startAngle+f.angle/2),u*Math.sin(f.startAngle+f.angle/2)],[u*Math.cos(f.startAngle+f.angle/1.5),u*Math.sin(f.startAngle+f.angle/1.5)],[u*Math.cos(f.startAngle+f.angle),u*Math.sin(f.startAngle+f.angle)]],[n,r]))return h.restore(),{datapoint:[f.percent,f.data],dataIndex:0,series:f,seriesIndex:p};h.restore()}}return null}(parseInt(e.pageX-n.left),parseInt(e.pageY-n.top));if(s.grid.autoHighlight)for(var u=0;u<p.length;++u){var f=p[u];f.auto!=t||r&&f.series==r.series||b(f.series)}r&&function(t,e){var n=x(t);-1==n?(p.push({series:t,auto:e}),i.triggerRedrawOverlay()):e||(p[n].auto=!1)}(r.series,t);var d={pageX:e.pageX,pageY:e.pageY};o.trigger(t,[d,r])}function b(t){null==t&&(p=[],i.triggerRedrawOverlay());var e=x(t);-1!=e&&(p.splice(e,1),i.triggerRedrawOverlay())}function x(t){for(var e=0;e<p.length;++e){if(p[e].series==t)return e}return-1}i.hooks.processOptions.push((function(t,e){e.series.pie.show&&(e.grid.show=!1,"auto"==e.series.pie.label.show&&(e.legend.show?e.series.pie.label.show=!1:e.series.pie.label.show=!0),"auto"==e.series.pie.radius&&(e.series.pie.label.show?e.series.pie.radius=.75:e.series.pie.radius=1),e.series.pie.tilt>1?e.series.pie.tilt=1:e.series.pie.tilt<0&&(e.series.pie.tilt=0))})),i.hooks.bindEvents.push((function(t,e){var n=t.getOptions();n.series.pie.show&&(n.grid.hoverable&&e.unbind("mousemove").mousemove(m),n.grid.clickable&&e.unbind("click").click(y))})),i.hooks.processDatapoints.push((function(t,e,n,i){t.getOptions().series.pie.show&&f(t,e,n)})),i.hooks.drawOverlay.push((function(t,e){t.getOptions().series.pie.show&&function(t,e){var n=t.getOptions(),i=n.series.pie.radius>1?n.series.pie.radius:a*n.series.pie.radius;e.save(),e.translate(c,l),e.scale(1,n.series.pie.tilt);for(var r=0;r<p.length;++r)o(p[r].series);function o(t){t.angle<=0||isNaN(t.angle)||(e.fillStyle="rgba(255, 255, 255, "+n.series.pie.highlight.opacity+")",e.beginPath(),Math.abs(t.angle-2*Math.PI)>1e-9&&e.moveTo(0,0),e.arc(0,0,i,t.startAngle,t.startAngle+t.angle/2,!1),e.arc(0,0,i,t.startAngle+t.angle/2,t.startAngle+t.angle,!1),e.closePath(),e.fill())}g(e),e.restore()}(t,e)})),i.hooks.draw.push((function(t,e){t.getOptions().series.pie.show&&d(t,e)}))},options:i,name:"pie",version:"1.1"})}(jQuery)},function(t,e){var n;n={series:{curvedLines:{active:!1,apply:!1,monotonicFit:!1,tension:.5,nrSplinePoints:20,legacyOverride:void 0}}},jQuery.plot.plugins.push({init:function(t){function e(t,e,i){var r=i.points.length/i.pointsize;if(!function(t){if(void 0!==t.fit||void 0!==t.curvePointFactor||void 0!==t.fitPointDist)throw new Error("CurvedLines detected illegal parameters. The CurvedLines API changed with version 1.0.0 please check the options object.");return!1}(e.curvedLines)&&1==e.curvedLines.apply&&void 0===e.originSeries&&r>1.005)if(e.lines.fill){var o=n(i,e.curvedLines,1),s=n(i,e.curvedLines,2);i.pointsize=3,i.points=[];for(var a=0,c=0,l=0;l<o.length||a<s.length;)o[l]==s[a]?(i.points[c]=o[l],i.points[c+1]=o[l+1],i.points[c+2]=s[a+1],a+=2,l+=2):o[l]<s[a]?(i.points[c]=o[l],i.points[c+1]=o[l+1],i.points[c+2]=c>0?i.points[c-1]:null,l+=2):(i.points[c]=s[a],i.points[c+1]=c>1?i.points[c-2]:null,i.points[c+2]=s[a+1],a+=2),c+=3}else e.lines.lineWidth>0&&(i.points=n(i,e.curvedLines,1),i.pointsize=2)}function n(t,e,n){if(void 0!==e.legacyOverride&&0!=e.legacyOverride){var i={fit:!1,curvePointFactor:20,fitPointDist:void 0};return function(t,e,n){var i=t.points,r=t.pointsize,o=Number(e.curvePointFactor)*(i.length/r),s=new Array,a=new Array,c=-1,l=-1,u=0;if(e.fit){var h;if(void 0===e.fitPointDist){var p=i[0],f=i[i.length-r];h=(f-p)/5e4}else h=Number(e.fitPointDist);for(var d=0;d<i.length;d+=r){var g,v;l=d+n,g=i[c=d]-h,v=i[c]+h;for(var m=2;g==i[c]||v==i[c];)g=i[c]-h*m,v=i[c]+h*m,m++;s[u]=g,a[u]=i[l],s[++u]=i[c],a[u]=i[l],s[++u]=v,a[u]=i[l],u++}}else for(d=0;d<i.length;d+=r)c=d,l=d+n,s[u]=i[c],a[u]=i[l],u++;var y=s.length,_=new Array,b=new Array;for(_[0]=0,_[y-1]=0,b[0]=0,d=1;d<y-1;++d){var x=s[d+1]-s[d-1];if(0==x)return[];var w=(s[d]-s[d-1])/x,k=w*_[d-1]+2;_[d]=(w-1)/k,b[d]=(a[d+1]-a[d])/(s[d+1]-s[d])-(a[d]-a[d-1])/(s[d]-s[d-1]),b[d]=(6*b[d]/(s[d+1]-s[d-1])-w*b[d-1])/k}for(u=y-2;u>=0;--u)_[u]=_[u]*_[u+1]+b[u];var S=(s[y-1]-s[0])/(o-1),C=new Array,T=new Array,A=new Array;for(C[0]=s[0],T[0]=a[0],A.push(C[0]),A.push(T[0]),u=1;u<o;++u){C[u]=C[0]+u*S;for(var N=y-1,M=0;N-M>1;){var D=Math.round((N+M)/2);s[D]>C[u]?N=D:M=D}var E=s[N]-s[M];if(0==E)return[];var O=(s[N]-C[u])/E,j=(C[u]-s[M])/E;T[u]=O*a[M]+j*a[N]+((O*O*O-O)*_[M]+(j*j*j-j)*_[N])*(E*E)/6,A.push(C[u]),A.push(T[u])}return A}(t,jQuery.extend(i,e.legacyOverride),n)}return function(t,e,n){for(var i=t.points,r=t.pointsize,o=function(t,e,n){for(var i=t.points,r=t.pointsize,o=[],s=[],a=0;a<i.length-r;a+=r){var c=a+n,l=i[(m=a)+r]-i[m],u=i[c+r]-i[c];o.push(l),s.push(u/l)}var h=[s[0]];if(e.monotonicFit)for(a=1;a<o.length;a++){var p=s[a],f=s[a-1];if(p*f<=0)h.push(0);else{var d=o[a],g=o[a-1],v=d+g;h.push(3*v/((v+d)/f+(v+g)/p))}}else for(a=r;a<i.length-r;a+=r){var m=a;c=a+n,h.push(Number(e.tension)*(i[c+r]-i[c-r])/(i[m+r]-i[m-r]))}h.push(s[s.length-1]);var y=[],_=[];for(a=0;a<o.length;a++){var b=h[a],x=h[a+1],w=(p=s[a],1/o[a]);v=b+x-p-p,y.push(v*w*w),_.push((p-v-b)*w)}var k=[];for(a=0;a<o.length;a++)k.push(function(t,e,n,i,r){return function(o){var s=o-t,a=s*s;return e*s*a+n*a+i*s+r}}(i[a*r],y[a],_[a],h[a],i[a*r+n]));return k}(t,e,n),s=[],a=0,c=0;c<i.length-r;c+=r){var l=c,u=c+n,h=i[l],p=i[l+r],f=(p-h)/Number(e.nrSplinePoints);s.push(i[l]),s.push(i[u]);for(var d=h+=f;d<p;d+=f)s.push(d),s.push(o[a](d));a++}return s.push(i[i.length-r]),s.push(i[i.length-r+n]),s}(t,e,n)}t.hooks.processOptions.push((function(t,n){n.series.curvedLines.active&&t.hooks.processDatapoints.unshift(e)}))},options:n,name:"curvedLines",version:"1.1.1"})},function(t,e,n){var i,r,o;r=[n(0)],void 0===(o="function"==typeof(i=function(t){"use strict";var e={},n=Math.max,i=Math.min;e.c={},e.c.d=t(document),e.c.t=function(t){return t.originalEvent.touches.length-1},e.o=function(){var n=this;this.o=null,this.$=null,this.i=null,this.g=null,this.v=null,this.cv=null,this.x=0,this.y=0,this.w=0,this.h=0,this.$c=null,this.c=null,this.t=0,this.isInit=!1,this.fgColor=null,this.pColor=null,this.dH=null,this.cH=null,this.eH=null,this.rH=null,this.scale=1,this.relative=!1,this.relativeWidth=!1,this.relativeHeight=!1,this.$div=null,this.run=function(){var e=function(t,e){var i;for(i in e)n.o[i]=e[i];n._carve().init(),n._configure()._draw()};if(!this.$.data("kontroled")){if(this.$.data("kontroled",!0),this.extend(),this.o=t.extend({min:void 0!==this.$.data("min")?this.$.data("min"):0,max:void 0!==this.$.data("max")?this.$.data("max"):100,stopper:!0,readOnly:this.$.data("readonly")||"readonly"===this.$.attr("readonly"),cursor:(!0===this.$.data("cursor")?30:this.$.data("cursor"))||0,thickness:this.$.data("thickness")&&Math.max(Math.min(this.$.data("thickness"),1),.01)||.35,lineCap:this.$.data("linecap")||"butt",width:this.$.data("width")||200,height:this.$.data("height")||200,displayInput:null==this.$.data("displayinput")||this.$.data("displayinput"),displayPrevious:this.$.data("displayprevious"),fgColor:this.$.data("fgcolor")||"#87CEEB",inputColor:this.$.data("inputcolor"),font:this.$.data("font")||"Arial",fontWeight:this.$.data("font-weight")||"bold",inline:!1,step:this.$.data("step")||1,rotation:this.$.data("rotation"),draw:null,change:null,cancel:null,release:null,format:function(t){return t},parse:function(t){return parseFloat(t)}},this.o),this.o.flip="anticlockwise"===this.o.rotation||"acw"===this.o.rotation,this.o.inputColor||(this.o.inputColor=this.o.fgColor),this.$.is("fieldset")?(this.v={},this.i=this.$.find("input"),this.i.each((function(e){var i=t(this);n.i[e]=i,n.v[e]=n.o.parse(i.val()),i.bind("change blur",(function(){var t={};t[e]=i.val(),n.val(n._validate(t))}))})),this.$.find("legend").remove()):(this.i=this.$,this.v=this.o.parse(this.$.val()),""===this.v&&(this.v=this.o.min),this.$.bind("change blur",(function(){n.val(n._validate(n.o.parse(n.$.val())))}))),!this.o.displayInput&&this.$.hide(),this.$c=t(document.createElement("canvas")).attr({width:this.o.width,height:this.o.height}),this.$div=t('<div style="'+(this.o.inline?"display:inline;":"")+"width:"+this.o.width+"px;height:"+this.o.height+'px;"></div>'),this.$.wrap(this.$div).before(this.$c),this.$div=this.$.parent(),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.$c[0]),this.c=this.$c[0].getContext?this.$c[0].getContext("2d"):null,!this.c)throw{name:"CanvasNotSupportedException",message:"Canvas not supported. Please use excanvas on IE8.0.",toString:function(){return this.name+": "+this.message}};return this.scale=(window.devicePixelRatio||1)/(this.c.webkitBackingStorePixelRatio||this.c.mozBackingStorePixelRatio||this.c.msBackingStorePixelRatio||this.c.oBackingStorePixelRatio||this.c.backingStorePixelRatio||1),this.relativeWidth=this.o.width%1!=0&&this.o.width.indexOf("%"),this.relativeHeight=this.o.height%1!=0&&this.o.height.indexOf("%"),this.relative=this.relativeWidth||this.relativeHeight,this._carve(),this.v instanceof Object?(this.cv={},this.copy(this.v,this.cv)):this.cv=this.v,this.$.bind("configure",e).parent().bind("configure",e),this._listen()._configure()._xy().init(),this.isInit=!0,this.$.val(this.o.format(this.v)),this._draw(),this}},this._carve=function(){if(this.relative){var t=this.relativeWidth?this.$div.parent().width()*parseInt(this.o.width)/100:this.$div.parent().width(),e=this.relativeHeight?this.$div.parent().height()*parseInt(this.o.height)/100:this.$div.parent().height();this.w=this.h=Math.min(t,e)}else this.w=this.o.width,this.h=this.o.height;return this.$div.css({width:this.w+"px",height:this.h+"px"}),this.$c.attr({width:this.w,height:this.h}),1!==this.scale&&(this.$c[0].width=this.$c[0].width*this.scale,this.$c[0].height=this.$c[0].height*this.scale,this.$c.width(this.w),this.$c.height(this.h)),this},this._draw=function(){var t=!0;n.g=n.c,n.clear(),n.dH&&(t=n.dH()),!1!==t&&n.draw()},this._touch=function(t){var i=function(t){var e=n.xy2val(t.originalEvent.touches[n.t].pageX,t.originalEvent.touches[n.t].pageY);e!=n.cv&&(n.cH&&!1===n.cH(e)||(n.change(n._validate(e)),n._draw()))};return this.t=e.c.t(t),i(t),e.c.d.bind("touchmove.k",i).bind("touchend.k",(function(){e.c.d.unbind("touchmove.k touchend.k"),n.val(n.cv)})),this},this._mouse=function(t){var i=function(t){var e=n.xy2val(t.pageX,t.pageY);e!=n.cv&&(n.cH&&!1===n.cH(e)||(n.change(n._validate(e)),n._draw()))};return i(t),e.c.d.bind("mousemove.k",i).bind("keyup.k",(function(t){if(27===t.keyCode){if(e.c.d.unbind("mouseup.k mousemove.k keyup.k"),n.eH&&!1===n.eH())return;n.cancel()}})).bind("mouseup.k",(function(t){e.c.d.unbind("mousemove.k mouseup.k keyup.k"),n.val(n.cv)})),this},this._xy=function(){var t=this.$c.offset();return this.x=t.left,this.y=t.top,this},this._listen=function(){return this.o.readOnly?this.$.attr("readonly","readonly"):(this.$c.bind("mousedown",(function(t){t.preventDefault(),n._xy()._mouse(t)})).bind("touchstart",(function(t){t.preventDefault(),n._xy()._touch(t)})),this.listen()),this.relative&&t(window).resize((function(){n._carve().init(),n._draw()})),this},this._configure=function(){return this.o.draw&&(this.dH=this.o.draw),this.o.change&&(this.cH=this.o.change),this.o.cancel&&(this.eH=this.o.cancel),this.o.release&&(this.rH=this.o.release),this.o.displayPrevious?(this.pColor=this.h2rgba(this.o.fgColor,"0.4"),this.fgColor=this.h2rgba(this.o.fgColor,"0.6")):this.fgColor=this.o.fgColor,this},this._clear=function(){this.$c[0].width=this.$c[0].width},this._validate=function(t){var e=~~((t<0?-.5:.5)+t/this.o.step)*this.o.step;return Math.round(100*e)/100},this.listen=function(){},this.extend=function(){},this.init=function(){},this.change=function(t){},this.val=function(t){},this.xy2val=function(t,e){},this.draw=function(){},this.clear=function(){this._clear()},this.h2rgba=function(t,e){var n;return t=t.substring(1,7),"rgba("+(n=[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)])[0]+","+n[1]+","+n[2]+","+e+")"},this.copy=function(t,e){for(var n in t)e[n]=t[n]}},e.Dial=function(){e.o.call(this),this.startAngle=null,this.xy=null,this.radius=null,this.lineWidth=null,this.cursorExt=null,this.w2=null,this.PI2=2*Math.PI,this.extend=function(){this.o=t.extend({bgColor:this.$.data("bgcolor")||"#EEEEEE",angleOffset:this.$.data("angleoffset")||0,angleArc:this.$.data("anglearc")||360,inline:!0},this.o)},this.val=function(t,e){if(null==t)return this.v;t=this.o.parse(t),!1!==e&&t!=this.v&&this.rH&&!1===this.rH(t)||(this.cv=this.o.stopper?n(i(t,this.o.max),this.o.min):t,this.v=this.cv,this.$.val(this.o.format(this.v)),this._draw())},this.xy2val=function(t,e){var r,o;return r=Math.atan2(t-(this.x+this.w2),-(e-this.y-this.w2))-this.angleOffset,this.o.flip&&(r=this.angleArc-r-this.PI2),this.angleArc!=this.PI2&&r<0&&r>-.5?r=0:r<0&&(r+=this.PI2),o=r*(this.o.max-this.o.min)/this.angleArc+this.o.min,this.o.stopper&&(o=n(i(o,this.o.max),this.o.min)),o},this.listen=function(){var e,r,o,s,a=this,c=function(t){t.preventDefault();var o=t.originalEvent,s=o.detail||o.wheelDeltaX,c=o.detail||o.wheelDeltaY,l=a._validate(a.o.parse(a.$.val()))+(s>0||c>0?a.o.step:s<0||c<0?-a.o.step:0);l=n(i(l,a.o.max),a.o.min),a.val(l,!1),a.rH&&(clearTimeout(e),e=setTimeout((function(){a.rH(l),e=null}),100),r||(r=setTimeout((function(){e&&a.rH(l),r=null}),200)))},l=1,u={37:-a.o.step,38:a.o.step,39:a.o.step,40:-a.o.step};this.$.bind("keydown",(function(e){var r=e.keyCode;if(r>=96&&r<=105&&(r=e.keyCode=r-48),o=parseInt(String.fromCharCode(r)),isNaN(o)&&(13!==r&&8!==r&&9!==r&&189!==r&&(190!==r||a.$.val().match(/\./))&&e.preventDefault(),t.inArray(r,[37,38,39,40])>-1)){e.preventDefault();var c=a.o.parse(a.$.val())+u[r]*l;a.o.stopper&&(c=n(i(c,a.o.max),a.o.min)),a.change(a._validate(c)),a._draw(),s=window.setTimeout((function(){l*=2}),30)}})).bind("keyup",(function(t){isNaN(o)?s&&(window.clearTimeout(s),s=null,l=1,a.val(a.$.val())):a.$.val()>a.o.max&&a.$.val(a.o.max)||a.$.val()<a.o.min&&a.$.val(a.o.min)})),this.$c.bind("mousewheel DOMMouseScroll",c),this.$.bind("mousewheel DOMMouseScroll",c)},this.init=function(){(this.v<this.o.min||this.v>this.o.max)&&(this.v=this.o.min),this.$.val(this.v),this.w2=this.w/2,this.cursorExt=this.o.cursor/100,this.xy=this.w2*this.scale,this.lineWidth=this.xy*this.o.thickness,this.lineCap=this.o.lineCap,this.radius=this.xy-this.lineWidth/2,this.o.angleOffset&&(this.o.angleOffset=isNaN(this.o.angleOffset)?0:this.o.angleOffset),this.o.angleArc&&(this.o.angleArc=isNaN(this.o.angleArc)?this.PI2:this.o.angleArc),this.angleOffset=this.o.angleOffset*Math.PI/180,this.angleArc=this.o.angleArc*Math.PI/180,this.startAngle=1.5*Math.PI+this.angleOffset,this.endAngle=1.5*Math.PI+this.angleOffset+this.angleArc;var t=n(String(Math.abs(this.o.max)).length,String(Math.abs(this.o.min)).length,2)+2;this.o.displayInput&&this.i.css({width:(this.w/2+4>>0)+"px",height:(this.w/3>>0)+"px",position:"absolute","vertical-align":"middle","margin-top":(this.w/3>>0)+"px","margin-left":"-"+(3*this.w/4+2>>0)+"px",border:0,background:"none",font:this.o.fontWeight+" "+(this.w/t>>0)+"px "+this.o.font,"text-align":"center",color:this.o.inputColor||this.o.fgColor,padding:"0px","-webkit-appearance":"none"})||this.i.css({width:"0px",visibility:"hidden"})},this.change=function(t){this.cv=t,this.$.val(this.o.format(t))},this.angle=function(t){return(t-this.o.min)*this.angleArc/(this.o.max-this.o.min)},this.arc=function(t){var e,n;return t=this.angle(t),n=this.o.flip?(e=this.endAngle+1e-5)-t-1e-5:(e=this.startAngle-1e-5)+t+1e-5,this.o.cursor&&(e=n-this.cursorExt)&&(n+=this.cursorExt),{s:e,e:n,d:this.o.flip&&!this.o.cursor}},this.draw=function(){var t,e=this.g,n=this.arc(this.cv),i=1;e.lineWidth=this.lineWidth,e.lineCap=this.lineCap,"none"!==this.o.bgColor&&(e.beginPath(),e.strokeStyle=this.o.bgColor,e.arc(this.xy,this.xy,this.radius,this.endAngle-1e-5,this.startAngle+1e-5,!0),e.stroke()),this.o.displayPrevious&&(t=this.arc(this.v),e.beginPath(),e.strokeStyle=this.pColor,e.arc(this.xy,this.xy,this.radius,t.s,t.e,t.d),e.stroke(),i=this.cv==this.v),e.beginPath(),e.strokeStyle=i?this.o.fgColor:this.fgColor,e.arc(this.xy,this.xy,this.radius,n.s,n.e,n.d),e.stroke()},this.cancel=function(){this.val(this.v)}},t.fn.dial=t.fn.knob=function(n){return this.each((function(){var i=new e.Dial;i.o=n,i.$=t(this),i.run()})).parent()}})?i.apply(e,r):i)||(t.exports=o)},function(t,e,n){var i,r,o,s,a,c;s=document,a=Math,function(s){r=[n(0)],void 0===(o="function"==typeof(i=s)?i.apply(e,r):i)||(t.exports=o)}((function(t){"use strict";var e,n,i,r,o,l,u,h,p,f,d,g,v,m,y,_,b,x,w,k,S,C,T,A,N,M,D,E,O,j={},R=0;e=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:c,normalRangeMax:c,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:c,chartRangeMax:c,chartRangeMinX:c,chartRangeMaxX:c,tooltipFormat:new i('<span style="color: {{color}}">●</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:c,nullColor:c,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:c,chartRangeMin:c,chartRangeClip:!1,colorMap:c,tooltipFormat:new i('<span style="color: {{color}}">●</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new i('<span style="color: {{color}}">●</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:c,thresholdValue:0,chartRangeMax:c,chartRangeMin:c,chartRangeClip:!1,tooltipFormat:new i("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:c,tooltipFormat:new i("{{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 i('<span style="color: {{color}}">●</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:c,targetColor:"#4a2",chartRangeMax:c,chartRangeMin:c,tooltipFormat:new i("{{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"}}}}},n=function(){var e,n;return e=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(e.prototype=t.extend(new arguments[0],arguments[arguments.length-1]),e._super=arguments[0].prototype):e.prototype=arguments[arguments.length-1],arguments.length>2&&((n=Array.prototype.slice.call(arguments,1,-1)).unshift(e.prototype),t.extend.apply(t,n))):e.prototype=arguments[0],e.prototype.cls=e,e},t.SPFormatClass=i=n({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,s,a,l=this,u=t;return this.format.replace(this.fre,(function(){return r=arguments[1],o=arguments[3],(i=l.precre.exec(r))?(a=i[2],r=i[1]):a=!1,(s=u[r])===c?"":o&&e&&e[o]?e[o].get?e[o].get(s)||s:e[o][s]||s:(p(s)&&(s=n.get("numberFormatter")?n.get("numberFormatter")(s):v(s,a,n.get("numberDigitGroupCount"),n.get("numberDigitGroupSep"),n.get("numberDecimalMark"))),s)}))}}),t.spformat=function(t,e){return new i(t,e)},r=function(t,e,n){return t<e?e:t>n?n:t},o=function(t,e){var n;return 2===e?(n=a.floor(t.length/2),t.length%2?t[n]:(t[n-1]+t[n])/2):t.length%2?(n=(t.length*e+e)/4)%1?(t[a.floor(n)]+t[a.floor(n)-1])/2:t[n-1]:(n=(t.length*e+2)/4)%1?(t[a.floor(n)]+t[a.floor(n)-1])/2:t[n-1]},l=function(t){var e;switch(t){case"undefined":t=c;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},h=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},p=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},v=function(e,n,i,r,o){var s,a;for(e=(!1===n?parseFloat(e).toString():e.toFixed(n)).split(""),(s=(s=t.inArray(".",e))<0?e.length:s)<e.length&&(e[s]=o),a=s-i;a>0;a-=i)e.splice(a,0,r);return e.join("")},f=function(t,e,n){var i;for(i=e.length;i--;)if((!n||null!==e[i])&&e[i]!==t)return!1;return!0},g=function(e){return t.isArray(e)?e:[e]},d=function(t){var e;s.createStyleSheet?s.createStyleSheet().cssText=t:((e=s.createElement("style")).type="text/css",s.getElementsByTagName("head")[0].appendChild(e),e["string"==typeof s.body.style.WebkitAppearance?"innerText":"innerHTML"]=t)},t.fn.simpledraw=function(e,n,i,r){var o,a;if(i&&(o=this.data("_jqs_vcanvas")))return o;if(!1===t.fn.sparkline.canvas)return!1;if(t.fn.sparkline.canvas===c){var l=s.createElement("canvas");if(l.getContext&&l.getContext("2d"))t.fn.sparkline.canvas=function(t,e,n,i){return new D(t,e,n,i)};else{if(!s.namespaces||s.namespaces.v)return t.fn.sparkline.canvas=!1,!1;s.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),t.fn.sparkline.canvas=function(t,e,n,i){return new E(t,e,n)}}}return e===c&&(e=t(this).innerWidth()),n===c&&(n=t(this).innerHeight()),o=t.fn.sparkline.canvas(e,n,this,r),(a=t(this).data("_jqs_mhandler"))&&a.registerCanvas(o),o},t.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},t.RangeMapClass=m=n({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((i=this.map[t])!==c)return i;if(r)for(e=r.length;e--;)if((n=r[e])[0]<=t&&n[1]>=t)return n[2];return c}}),t.range_map=function(t){return new m(t)},y=n({init:function(e,n){var i=t(e);this.$el=i,this.options=n,this.currentPageX=0,this.currentPageY=0,this.el=e,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!n.get("disableTooltips"),this.highlightEnabled=!n.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(e){var n=t(e.canvas);this.canvas=e,this.$canvas=n,n.mouseenter(t.proxy(this.mouseenter,this)),n.mouseleave(t.proxy(this.mouseleave,this)),n.click(t.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=c)},mouseclick:function(e){var n=t.Event("sparklineClick");n.originalEvent=e,n.sparklines=this.splist,this.$el.trigger(n)},mouseenter:function(e){t(s.body).unbind("mousemove.jqs"),t(s.body).bind("mousemove.jqs",t.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 _(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){t(s.body).unbind("mousemove.jqs");var e,n=this.splist,i=n.length,r=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),e=0;e<i;e++)n[e].clearRegionHighlight()&&(r=!0);r&&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 e,n,i,r,o=this.splist,s=o.length,a=!1,c=this.$canvas.offset(),l=this.currentPageX-c.left,u=this.currentPageY-c.top;if(this.over){for(n=0;n<s;n++)(i=o[n].setRegionHighlight(this.currentEl,l,u))&&(a=!0);if(a){if((r=t.Event("sparklineRegionChange")).sparklines=this.splist,this.$el.trigger(r),this.tooltip){for(e="",n=0;n<s;n++)e+=o[n].getCurrentRegionTooltip();this.tooltip.setContent(e)}this.disableHighlight||this.canvas.render()}null===i&&this.mouseleave()}}}),_=n({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var n,i=e.get("tooltipClassname","jqstooltip"),r=this.sizeStyle;this.container=e.get("tooltipContainer")||s.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),t("#jqssizetip").remove(),t("#jqstooltip").remove(),this.sizetip=t("<div/>",{id:"jqssizetip",style:r,class:i}),this.tooltip=t("<div/>",{id:"jqstooltip",class:i}).appendTo(this.container),n=this.tooltip.offset(),this.offsetLeft=n.left,this.offsetTop=n.top,this.hidden=!0,t(window).unbind("resize.jqs scroll.jqs"),t(window).bind("resize.jqs scroll.jqs",t.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=t(window).scrollTop(),this.scrollLeft=t(window).scrollLeft(),this.scrollRight=this.scrollLeft+t(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(t===c){if(this.mousex===c)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&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<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=c,t(window).unbind("resize.jqs scroll.jqs")}}),t((function(){d('.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;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}')})),O=[],t.fn.sparkline=function(e,n){return this.each((function(){var i,r,o=new t.fn.sparkline.options(this,n),a=t(this);if(i=function(){var n,i,r,l,u,h,p;"html"===e||e===c?((p=this.getAttribute(o.get("tagValuesAttribute")))!==c&&null!==p||(p=a.html()),n=p.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):n=e,i="auto"===o.get("width")?n.length*o.get("defaultPixelsPerValue"):o.get("width"),"auto"===o.get("height")?o.get("composite")&&t.data(this,"_jqs_vcanvas")||((l=s.createElement("span")).innerHTML="a",a.html(l),r=t(l).innerHeight()||t(l).height(),t(l).remove(),l=null):r=o.get("height"),o.get("disableInteraction")?u=!1:(u=t.data(this,"_jqs_mhandler"))?o.get("composite")||u.reset():(u=new y(this,o),t.data(this,"_jqs_mhandler",u)),!o.get("composite")||t.data(this,"_jqs_vcanvas")?((h=new(t.fn.sparkline[o.get("type")])(this,n,o,i,r)).render(),u&&u.registerSparkline(h)):t.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),t.data(this,"_jqs_errnotify",!0))},t(this).html()&&!o.get("disableHiddenCheck")&&t(this).is(":hidden")||!t(this).parents("body").length){if(!o.get("composite")&&t.data(this,"_jqs_pending"))for(r=O.length;r;r--)O[r-1][0]==this&&O.splice(r-1,1);O.push([this,i]),t.data(this,"_jqs_pending",!0)}else i.call(this)}))},t.fn.sparkline.defaults=e(),t.sparkline_display_visible=function(){var e,n,i,r=[];for(n=0,i=O.length;n<i;n++)e=O[n][0],t(e).is(":visible")&&!t(e).parents().is(":hidden")?(O[n][1].call(e),t.data(O[n][0],"_jqs_pending",!1),r.push(n)):!t(e).closest("html").length&&!t.data(e,"_jqs_pending")&&(t.data(O[n][0],"_jqs_pending",!1),r.push(n));for(n=r.length;n;n--)O.splice(r[n-1],1)},t.fn.sparkline.options=n({init:function(e,n){var i,r,o,s;this.userOptions=n=n||{},this.tag=e,this.tagValCache={},o=(r=t.fn.sparkline.defaults).common,this.tagOptionsPrefix=n.enableTagOptions&&(n.tagOptionsPrefix||o.tagOptionsPrefix),i=(s=this.getTagSetting("type"))===j?r[n.type||o.type]:r[s],this.mergedOptions=t.extend({},o,i,n)},getTagSetting:function(t){var e,n,i,r,o=this.tagOptionsPrefix;if(!1===o||o===c)return j;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if((e=this.tag.getAttribute(o+t))===c||null===e)e=j;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!==j?i:(n=this.mergedOptions[t])===c?e:n}}),t.fn.sparkline._base=n({disabled:!1,init:function(e,n,i,r,o){this.el=e,this.$el=t(e),this.values=n,this.options=i,this.width=r,this.height=o,this.currentRegion=c},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))&&(r!==c&&o&&this.removeHighlight(),this.currentRegion=i,i!==c&&o&&this.renderHighlight(),!0)},clearRegionHighlight:function(){return this.currentRegion!==c&&(this.removeHighlight(),this.currentRegion=c,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var e,n,r,o,s,a,l,u,h,p,f,d,g,v,m=this.options,y="",_=[];if(this.currentRegion===c)return"";if(e=this.getCurrentRegionFields(),f=m.get("tooltipFormatter"))return f(this,m,e);if(m.get("tooltipChartTitle")&&(y+='<div class="jqs jqstitle">'+m.get("tooltipChartTitle")+"</div>\n"),!(n=this.options.get("tooltipFormat")))return"";if(t.isArray(n)||(n=[n]),t.isArray(e)||(e=[e]),l=this.options.get("tooltipFormatFieldlist"),u=this.options.get("tooltipFormatFieldlistKey"),l&&u){for(h=[],a=e.length;a--;)p=e[a][u],-1!=(v=t.inArray(p,l))&&(h[v]=e[a]);e=h}for(r=n.length,g=e.length,a=0;a<r;a++)for("string"==typeof(d=n[a])&&(d=new i(d)),o=d.fclass||"jqsfield",v=0;v<g;v++)e[v].isNull&&m.get("tooltipSkipNull")||(t.extend(e[v],{prefix:m.get("tooltipPrefix"),suffix:m.get("tooltipSuffix")}),s=d.render(e[v],m.get("tooltipValueLookups"),m),_.push('<div class="'+o+'">'+s+"</div>"));return _.length?y+_.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,e){var n,i,o,s,c=e.get("highlightColor"),l=e.get("highlightLighten");if(c)return c;if(l&&(n=/^#([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=[],i=4===t.length?16:1,s=0;s<3;s++)o[s]=r(a.round(parseInt(n[s+1],16)*i*l),0,255);return"rgb("+o.join(",")+")"}return t}}),b={changeHighlight:function(e){var n,i=this.currentRegion,r=this.target,o=this.regionShapes[i];o&&(n=this.renderRegion(i,e),t.isArray(n)||t.isArray(o)?(r.replaceWithShapes(o,n),this.regionShapes[i]=t.map(n,(function(t){return t.id}))):(r.replaceWithShape(o,n),this.regionShapes[i]=n.id))},render:function(){var e,n,i,r,o=this.values,s=this.target,a=this.regionShapes;if(this.cls._super.render.call(this)){for(i=o.length;i--;)if(e=this.renderRegion(i))if(t.isArray(e)){for(n=[],r=e.length;r--;)e[r].append(),n.push(e[r].id);a[i]=n}else e.append(),a[i]=e.id;else a[i]=null;s.render()}}},t.fn.sparkline.line=x=n(t.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];return c},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.currentRegion,i=this.target,r=this.vertices[n],o=this.options,s=o.get("spotRadius"),a=o.get("highlightSpotColor"),l=o.get("highlightLineColor");r&&(s&&a&&(t=i.drawCircle(r[0],r[1],s,c,a),this.highlightSpotId=t.id,i.insertAfterShape(this.lastShapeId,t)),l&&(e=i.drawLine(r[0],this.canvasTop,r[0],this.canvasTop+this.canvasHeight,l),this.highlightLineId=e.id,i.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,e,n,i,r,o=this.values,s=o.length,c=this.xvalues,l=this.yvalues,u=this.yminmax;for(t=0;t<s;t++)e=o[t],n="string"==typeof o[t],i="object"==typeof o[t]&&o[t]instanceof Array,r=n&&o[t].split(":"),n&&2===r.length?(c.push(Number(r[0])),l.push(Number(r[1])),u.push(Number(r[1]))):i?(c.push(e[0]),l.push(e[1]),u.push(e[1])):(c.push(t),null===o[t]||"null"===o[t]?l.push(null):(l.push(Number(e)),u.push(Number(e))));this.options.get("xvalues")&&(c=this.options.get("xvalues")),this.maxy=this.maxyorg=a.max.apply(a,u),this.miny=this.minyorg=a.min.apply(a,u),this.maxx=a.max.apply(a,c),this.minx=a.min.apply(a,c),this.xvalues=c,this.yvalues=l,this.yminmax=u},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),n=t.get("normalRangeMax");e!==c&&(e<this.miny&&(this.miny=e),n>this.maxy&&(this.maxy=n)),t.get("chartRangeMin")!==c&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),t.get("chartRangeMax")!==c&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),t.get("chartRangeMinX")!==c&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),t.get("chartRangeMaxX")!==c&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,e,n,i,r){var o=this.options.get("normalRangeMin"),s=this.options.get("normalRangeMax"),l=e+a.round(n-n*((s-this.miny)/r)),u=a.round(n*(s-o)/r);this.target.drawRect(t,l,i,u,c,this.options.get("normalRangeColor")).append()},render:function(){var e,n,i,r,o,s,l,u,h,p,f,d,g,v,y,_,b,w,k,S,C,T,A,N,M=this.options,D=this.target,E=this.canvasWidth,O=this.canvasHeight,j=this.vertices,R=M.get("spotRadius"),I=this.regionMap;if(x._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),T=this.xvalues,A=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(r=o=0,e=this.maxx-this.minx==0?1:this.maxx-this.minx,n=this.maxy-this.miny==0?1:this.maxy-this.miny,i=this.yvalues.length-1,R&&(E<4*R||O<4*R)&&(R=0),R&&(((S=M.get("highlightSpotColor")&&!M.get("disableInteraction"))||M.get("minSpotColor")||M.get("spotColor")&&A[i]===this.miny)&&(O-=a.ceil(R)),(S||M.get("maxSpotColor")||M.get("spotColor")&&A[i]===this.maxy)&&(O-=a.ceil(R),r+=a.ceil(R)),(S||(M.get("minSpotColor")||M.get("maxSpotColor"))&&(A[0]===this.miny||A[0]===this.maxy))&&(o+=a.ceil(R),E-=a.ceil(R)),(S||M.get("spotColor")||M.get("minSpotColor")||M.get("maxSpotColor")&&(A[i]===this.miny||A[i]===this.maxy))&&(E-=a.ceil(R))),O--,M.get("normalRangeMin")!==c&&!M.get("drawNormalOnTop")&&this.drawNormalRange(o,r,O,E,n),u=[l=[]],g=v=null,y=A.length,N=0;N<y;N++)h=T[N],f=T[N+1],p=A[N],v=(d=o+a.round((h-this.minx)*(E/e)))+((N<y-1?o+a.round((f-this.minx)*(E/e)):E)-d)/2,I[N]=[g||0,v,N],g=v,null===p?N&&(null!==A[N-1]&&(l=[],u.push(l)),j.push(null)):(p<this.miny&&(p=this.miny),p>this.maxy&&(p=this.maxy),l.length||l.push([d,r+O]),s=[d,r+a.round(O-O*((p-this.miny)/n))],l.push(s),j.push(s));for(_=[],b=[],w=u.length,N=0;N<w;N++)(l=u[N]).length&&(M.get("fillColor")&&(l.push([l[l.length-1][0],r+O]),b.push(l.slice(0)),l.pop()),l.length>2&&(l[0]=[l[0][0],l[1][1]]),_.push(l));for(w=b.length,N=0;N<w;N++)D.drawShape(b[N],M.get("fillColor"),M.get("fillColor")).append();for(M.get("normalRangeMin")!==c&&M.get("drawNormalOnTop")&&this.drawNormalRange(o,r,O,E,n),w=_.length,N=0;N<w;N++)D.drawShape(_[N],M.get("lineColor"),c,M.get("lineWidth")).append();if(R&&M.get("valueSpots"))for((k=M.get("valueSpots")).get===c&&(k=new m(k)),N=0;N<y;N++)(C=k.get(A[N]))&&D.drawCircle(o+a.round((T[N]-this.minx)*(E/e)),r+a.round(O-O*((A[N]-this.miny)/n)),R,c,C).append();R&&M.get("spotColor")&&null!==A[i]&&D.drawCircle(o+a.round((T[T.length-1]-this.minx)*(E/e)),r+a.round(O-O*((A[i]-this.miny)/n)),R,c,M.get("spotColor")).append(),this.maxy!==this.minyorg&&(R&&M.get("minSpotColor")&&(h=T[t.inArray(this.minyorg,A)],D.drawCircle(o+a.round((h-this.minx)*(E/e)),r+a.round(O-O*((this.minyorg-this.miny)/n)),R,c,M.get("minSpotColor")).append()),R&&M.get("maxSpotColor")&&(h=T[t.inArray(this.maxyorg,A)],D.drawCircle(o+a.round((h-this.minx)*(E/e)),r+a.round(O-O*((this.maxyorg-this.miny)/n)),R,c,M.get("maxSpotColor")).append())),this.lastShapeId=D.getLastShapeId(),this.canvasTop=r,D.render()}}}),t.fn.sparkline.bar=w=n(t.fn.sparkline._base,b,{type:"bar",init:function(e,n,i,o,s){var p,f,d,g,v,y,_,b,x,k,S,C,T,A,N,M,D,E,O,j,R,I=parseInt(i.get("barWidth"),10),P=parseInt(i.get("barSpacing"),10),$=i.get("chartRangeMin"),L=i.get("chartRangeMax"),H=i.get("chartRangeClip"),W=1/0,q=-1/0;for(w._super.init.call(this,e,n,i,o,s),y=0,_=n.length;y<_;y++)((p="string"==typeof(j=n[y])&&j.indexOf(":")>-1)||t.isArray(j))&&(N=!0,p&&(j=n[y]=u(j.split(":"))),j=h(j,null),(f=a.min.apply(a,j))<W&&(W=f),(d=a.max.apply(a,j))>q&&(q=d));this.stacked=N,this.regionShapes={},this.barWidth=I,this.barSpacing=P,this.totalBarWidth=I+P,this.width=o=n.length*I+(n.length-1)*P,this.initTarget(),H&&(T=$===c?-1/0:$,A=L===c?1/0:L),v=[],g=N?[]:v;var F=[],B=[];for(y=0,_=n.length;y<_;y++)if(N)for(M=n[y],n[y]=O=[],F[y]=0,g[y]=B[y]=0,D=0,E=M.length;D<E;D++)null!==(j=O[D]=H?r(M[D],T,A):M[D])&&(j>0&&(F[y]+=j),W<0&&q>0?j<0?B[y]+=a.abs(j):g[y]+=j:g[y]+=a.abs(j-(j<0?q:W)),v.push(j));else j=H?r(n[y],T,A):n[y],null!==(j=n[y]=l(j))&&v.push(j);this.max=C=a.max.apply(a,v),this.min=S=a.min.apply(a,v),this.stackMax=q=N?a.max.apply(a,F):C,this.stackMin=W=N?a.min.apply(a,v):S,i.get("chartRangeMin")!==c&&(i.get("chartRangeClip")||i.get("chartRangeMin")<S)&&(S=i.get("chartRangeMin")),i.get("chartRangeMax")!==c&&(i.get("chartRangeClip")||i.get("chartRangeMax")>C)&&(C=i.get("chartRangeMax")),this.zeroAxis=x=i.get("zeroAxis",!0),k=S<=0&&C>=0&&x?0:0==x?S:S>0?S:C,this.xaxisOffset=k,b=N?a.max.apply(a,g)+a.max.apply(a,B):C-S,this.canvasHeightEf=x&&S<0?this.canvasHeight-2:this.canvasHeight-1,S<k?(R=((N&&C>=0?q:C)-k)/b*this.canvasHeight)!==a.ceil(R)&&(this.canvasHeightEf-=2,R=a.ceil(R)):R=this.canvasHeight,this.yoffset=R,t.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===c&&(this.colorMapByValue=new m(this.colorMapByValue))),this.range=b},getRegion:function(t,e,n){var i=a.floor(e/this.totalBarWidth);return i<0||i>=this.values.length?c:i},getCurrentRegionFields:function(){var t,e,n=this.currentRegion,i=g(this.values[n]),r=[];for(e=i.length;e--;)t=i[e],r.push({isNull:null===t,value:t,color:this.calcColor(e,t,n),offset:n});return r},calcColor:function(e,n,i){var r,o,s=this.colorMapByIndex,a=this.colorMapByValue,l=this.options;return r=this.stacked?l.get("stackedBarColor"):n<0?l.get("negBarColor"):l.get("barColor"),0===n&&l.get("zeroColor")!==c&&(r=l.get("zeroColor")),a&&(o=a.get(n))?r=o:s&&s.length>i&&(r=s[i]),t.isArray(r)?r[e%r.length]:r},renderRegion:function(e,n){var i,r,o,s,l,u,h,p,d,g,v=this.values[e],m=this.options,y=this.xaxisOffset,_=[],b=this.range,x=this.stacked,w=this.target,k=e*this.totalBarWidth,S=this.canvasHeightEf,C=this.yoffset;if(h=(v=t.isArray(v)?v:[v]).length,p=v[0],s=f(null,v),g=f(y,v,!0),s)return m.get("nullColor")?(o=n?m.get("nullColor"):this.calcHighlightColor(m.get("nullColor"),m),i=C>0?C-1:C,w.drawRect(k,i,this.barWidth-1,0,o,o)):c;for(l=C,u=0;u<h;u++){if(p=v[u],x&&p===y){if(!g||d)continue;d=!0}r=b>0?a.floor(S*(a.abs(p-y)/b))+1:1,p<y||p===y&&0===C?(i=l,l+=r):(i=C-r,C-=r),o=this.calcColor(u,p,e),n&&(o=this.calcHighlightColor(o,m)),_.push(w.drawRect(k,i,this.barWidth-1,r-1,o,o))}return 1===_.length?_[0]:_}}),t.fn.sparkline.tristate=k=n(t.fn.sparkline._base,b,{type:"tristate",init:function(e,n,i,r,o){var s=parseInt(i.get("barWidth"),10),a=parseInt(i.get("barSpacing"),10);k._super.init.call(this,e,n,i,r,o),this.regionShapes={},this.barWidth=s,this.barSpacing=a,this.totalBarWidth=s+a,this.values=t.map(n,Number),this.width=r=n.length*s+(n.length-1)*a,t.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&this.colorMapByValue.get===c&&(this.colorMapByValue=new m(this.colorMapByValue))),this.initTarget()},getRegion:function(t,e,n){return a.floor(e/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===c,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,s=this.colorMapByValue;return s&&(n=s.get(t))?n:o&&o.length>e?o[e]:i[e]<0?r.get("negBarColor"):i[e]>0?r.get("posBarColor"):r.get("zeroBarColor")},renderRegion:function(t,e){var n,i,r,o,s,c,l=this.values,u=this.options,h=this.target;if(n=h.pixelHeight,r=a.round(n/2),o=t*this.totalBarWidth,l[t]<0?(s=r,i=r-1):l[t]>0?(s=0,i=r-1):(s=r-1,i=2),null!==(c=this.calcColor(l[t],t)))return e&&(c=this.calcHighlightColor(c,u)),h.drawRect(o,s,this.barWidth-1,i-1,c,c)}}),t.fn.sparkline.discrete=S=n(t.fn.sparkline._base,b,{type:"discrete",init:function(e,n,i,r,o){S._super.init.call(this,e,n,i,r,o),this.regionShapes={},this.values=n=t.map(n,Number),this.min=a.min.apply(a,n),this.max=a.max.apply(a,n),this.range=this.max-this.min,this.width=r="auto"===i.get("width")?2*n.length:this.width,this.interval=a.floor(r/n.length),this.itemWidth=r/n.length,i.get("chartRangeMin")!==c&&(i.get("chartRangeClip")||i.get("chartRangeMin")<this.min)&&(this.min=i.get("chartRangeMin")),i.get("chartRangeMax")!==c&&(i.get("chartRangeClip")||i.get("chartRangeMax")>this.max)&&(this.max=i.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===i.get("lineHeight")?a.round(.3*this.canvasHeight):i.get("lineHeight"))},getRegion:function(t,e,n){return a.floor(e/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===c,value:this.values[t],offset:t}},renderRegion:function(t,e){var n,i,o,s,c=this.values,l=this.options,u=this.min,h=this.max,p=this.range,f=this.interval,d=this.target,g=this.canvasHeight,v=this.lineHeight,m=g-v;return i=r(c[t],u,h),s=t*f,n=a.round(m-m*((i-u)/p)),o=l.get("thresholdColor")&&i<l.get("thresholdValue")?l.get("thresholdColor"):l.get("lineColor"),e&&(o=this.calcHighlightColor(o,l)),d.drawLine(s,n,s,n+v,o)}}),t.fn.sparkline.bullet=C=n(t.fn.sparkline._base,{type:"bullet",init:function(t,e,n,i,r){var o,s,l;C._super.init.call(this,t,e,n,i,r),this.values=e=u(e),(l=e.slice())[0]=null===l[0]?l[2]:l[0],l[1]=null===e[1]?l[2]:l[1],o=a.min.apply(a,e),s=a.max.apply(a,e),o=n.get("base")===c?o<0?o:0:n.get("base"),this.min=o,this.max=s,this.range=s-o,this.shapes={},this.valueShapes={},this.regiondata={},this.width=i="auto"===n.get("width")?"4.0em":i,this.target=this.$el.simpledraw(i,r,n.get("composite")),e.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,n){var i=this.target.getShapeAt(t,e,n);return i!==c&&this.shapes[i]!==c?this.shapes[i]:c},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,e){var n=this.values[t],i=a.round(this.canvasWidth*((n-this.min)/this.range)),r=this.options.get("rangeColors")[t-2];return e&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(0,0,i-1,this.canvasHeight-1,r,r)},renderPerformance:function(t){var e=this.values[1],n=a.round(this.canvasWidth*((e-this.min)/this.range)),i=this.options.get("performanceColor");return t&&(i=this.calcHighlightColor(i,this.options)),this.target.drawRect(0,a.round(.3*this.canvasHeight),n-1,a.round(.4*this.canvasHeight)-1,i,i)},renderTarget:function(t){var e=this.values[0],n=a.round(this.canvasWidth*((e-this.min)/this.range)-this.options.get("targetWidth")/2),i=a.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(C._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()}}}),t.fn.sparkline.pie=T=n(t.fn.sparkline._base,{type:"pie",init:function(e,n,i,r,o){var s,c=0;if(T._super.init.call(this,e,n,i,r,o),this.shapes={},this.valueShapes={},this.values=n=t.map(n,Number),"auto"===i.get("width")&&(this.width=this.height),n.length>0)for(s=n.length;s--;)c+=n[s];this.total=c,this.initTarget(),this.radius=a.floor(a.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,n){var i=this.target.getShapeAt(t,e,n);return i!==c&&this.shapes[i]!==c?this.shapes[i]:c},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:this.values[t]===c,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,e){var n,i,r,o,s,l=this.target,u=this.options,h=this.radius,p=u.get("borderWidth"),f=u.get("offset"),d=2*a.PI,g=this.values,v=this.total,m=f?2*a.PI*(f/360):0;for(o=g.length,r=0;r<o;r++){if(n=m,i=m,v>0&&(i=m+d*(g[r]/v)),t===r)return s=u.get("sliceColors")[r%u.get("sliceColors").length],e&&(s=this.calcHighlightColor(s,u)),l.drawPieSlice(h,h,h-p,n,i,c,s);m=i}},render:function(){var t,e,n=this.target,i=this.values,r=this.options,o=this.radius,s=r.get("borderWidth");if(T._super.render.call(this)){for(s&&n.drawCircle(o,o,a.floor(o-s/2),r.get("borderColor"),c,s).append(),e=i.length;e--;)i[e]&&(t=this.renderSlice(e).append(),this.valueShapes[e]=t.id,this.shapes[t.id]=e);n.render()}}}),t.fn.sparkline.box=A=n(t.fn.sparkline._base,{type:"box",init:function(e,n,i,r,o){A._super.init.call(this,e,n,i,r,o),this.values=t.map(n,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 this.loutlier!==c&&t.push({field:"lo",value:this.loutlier}),this.routlier!==c&&t.push({field:"ro",value:this.routlier}),this.lwhisker!==c&&t.push({field:"lw",value:this.lwhisker}),this.rwhisker!==c&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,e,n,i,r,s,l,u,h,p,f,d=this.target,g=this.values,v=g.length,m=this.options,y=this.canvasWidth,_=this.canvasHeight,b=m.get("chartRangeMin")===c?a.min.apply(a,g):m.get("chartRangeMin"),x=m.get("chartRangeMax")===c?a.max.apply(a,g):m.get("chartRangeMax"),w=0;if(A._super.render.call(this)){if(m.get("raw"))m.get("showOutliers")&&g.length>5?(e=g[0],t=g[1],i=g[2],r=g[3],s=g[4],l=g[5],u=g[6]):(t=g[0],i=g[1],r=g[2],s=g[3],l=g[4]);else if(g.sort((function(t,e){return t-e})),i=o(g,1),r=o(g,2),n=(s=o(g,3))-i,m.get("showOutliers")){for(t=l=c,h=0;h<v;h++)t===c&&g[h]>i-n*m.get("outlierIQR")&&(t=g[h]),g[h]<s+n*m.get("outlierIQR")&&(l=g[h]);e=g[0],u=g[v-1]}else t=g[0],l=g[v-1];this.quartiles=[i,r,s],this.lwhisker=t,this.rwhisker=l,this.loutlier=e,this.routlier=u,f=y/(x-b+1),m.get("showOutliers")&&(w=a.ceil(m.get("spotRadius")),f=(y-=2*a.ceil(m.get("spotRadius")))/(x-b+1),e<t&&d.drawCircle((e-b)*f+w,_/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append(),u>l&&d.drawCircle((u-b)*f+w,_/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append()),d.drawRect(a.round((i-b)*f+w),a.round(.1*_),a.round((s-i)*f),a.round(.8*_),m.get("boxLineColor"),m.get("boxFillColor")).append(),d.drawLine(a.round((t-b)*f+w),a.round(_/2),a.round((i-b)*f+w),a.round(_/2),m.get("lineColor")).append(),d.drawLine(a.round((t-b)*f+w),a.round(_/4),a.round((t-b)*f+w),a.round(_-_/4),m.get("whiskerColor")).append(),d.drawLine(a.round((l-b)*f+w),a.round(_/2),a.round((s-b)*f+w),a.round(_/2),m.get("lineColor")).append(),d.drawLine(a.round((l-b)*f+w),a.round(_/4),a.round((l-b)*f+w),a.round(_-_/4),m.get("whiskerColor")).append(),d.drawLine(a.round((r-b)*f+w),a.round(.1*_),a.round((r-b)*f+w),a.round(.9*_),m.get("medianColor")).append(),m.get("target")&&(p=a.ceil(m.get("spotRadius")),d.drawLine(a.round((m.get("target")-b)*f+w),a.round(_/2-p),a.round((m.get("target")-b)*f+w),a.round(_/2+p),m.get("targetColor")).append(),d.drawLine(a.round((m.get("target")-b)*f+w-p),a.round(_/2),a.round((m.get("target")-b)*f+w+p),a.round(_/2),m.get("targetColor")).append()),d.render()}}}),N=n({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}}),M=n({_pxregex:/(\d+)(px)?\s*$/i,init:function(e,n,i){e&&(this.width=e,this.height=n,this.target=i,this.lastShapeId=null,i[0]&&(i=i[0]),t.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,s){return this._genShape("PieSlice",[t,e,n,i,r,o,s])},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(e,n){t(n).html(e)},_calculatePixelDims:function(e,n,i){var r;r=this._pxregex.exec(n),this.pixelHeight=r?r[1]:t(i).height(),r=this._pxregex.exec(e),this.pixelWidth=r?r[1]:t(i).width()},_genShape:function(t,e){var n=R++;return e.unshift(n),new N(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")}}),D=n(M,{init:function(e,n,i,r){D._super.init.call(this,e,n,i),this.canvas=s.createElement("canvas"),i[0]&&(i=i[0]),t.data(i,"_jqs_vcanvas",this),t(this.canvas).css({display:"inline-block",width:e,height:n,verticalAlign:"top"}),this._insert(this.canvas,i),this._calculatePixelDims(e,n,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=r,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=c,t(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,n){var i=this.canvas.getContext("2d");return t!==c&&(i.strokeStyle=t),i.lineWidth=n===c?1:n,e!==c&&(i.fillStyle=e),i},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=c},_drawShape:function(t,e,n,i,r){var o,s,a=this._getContext(n,i,r);for(a.beginPath(),a.moveTo(e[0][0]+.5,e[0][1]+.5),o=1,s=e.length;o<s;o++)a.lineTo(e[o][0]+.5,e[o][1]+.5);n!==c&&a.stroke(),i!==c&&a.fill(),this.targetX!==c&&this.targetY!==c&&a.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,e,n,i,r,o,s){var l=this._getContext(r,o,s);l.beginPath(),l.arc(e,n,i,0,2*a.PI,!1),this.targetX!==c&&this.targetY!==c&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),r!==c&&l.stroke(),o!==c&&l.fill()},_drawPieSlice:function(t,e,n,i,r,o,s,a){var l=this._getContext(s,a);l.beginPath(),l.moveTo(e,n),l.arc(e,n,i,r,o,!1),l.lineTo(e,n),l.closePath(),s!==c&&l.stroke(),a&&l.fill(),this.targetX!==c&&this.targetY!==c&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,n,i,r,o,s){return this._drawShape(t,[[e,n],[e+i,n],[e+i,n+r],[e,n+r],[e,n]],o,s)},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,s={};for(i=t.length;i--;)s[t[i]]=!0;for(i=o.length;i--;)s[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=n(M,{init:function(e,n,i){var r;E._super.init.call(this,e,n,i),i[0]&&(i=i[0]),t.data(i,"_jqs_vcanvas",this),this.canvas=s.createElement("span"),t(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:n,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,i),this._calculatePixelDims(e,n,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,r='<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.canvas.insertAdjacentHTML("beforeEnd",r),this.group=t(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,n,i,r){var o,s,a,l,u,h,p=[];for(h=0,u=e.length;h<u;h++)p[h]=e[h][0]+","+e[h][1];return o=p.splice(0,1),r=r===c?1:r,s=n===c?' stroked="false" ':' strokeWeight="'+r+'px" strokeColor="'+n+'" ',a=i===c?' filled="false"':' fillColor="'+i+'" filled="true" ',l=p[0]===p[p.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+s+a+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+o+" l "+p.join(", ")+" "+l+'e"> </v:shape>'},_drawCircle:function(t,e,n,i,r,o,s){return'<v:oval id="jqsshape'+t+'" '+(r===c?' stroked="false" ':' strokeWeight="'+s+'px" strokeColor="'+r+'" ')+(o===c?' 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,e,n,i,r,o,s,l){var u,h,p,f,d,g,v;if(r===o)return"";if(o-r==2*a.PI&&(r=0,o=2*a.PI),h=e+a.round(a.cos(r)*i),p=n+a.round(a.sin(r)*i),f=e+a.round(a.cos(o)*i),d=n+a.round(a.sin(o)*i),h===f&&p===d){if(o-r<a.PI)return"";h=f=e+i,p=d=n}return h===f&&p===d&&o-r<a.PI?"":(u=[e-i,n-i,e+i,n+i,h,p,f,d],g=s===c?' stroked="false" ':' strokeWeight="1px" strokeColor="'+s+'" ',v=l===c?' filled="false"':' fillColor="'+l+'" filled="true" ','<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" id="jqsshape'+t+'" '+g+v+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;" path="m '+e+","+n+" wa "+u.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,n,i,r,o,s){return this._drawShape(t,[[e,n],[e,n+r],[e+i,n+r],[e+i,n],[e,n]],o,s)},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(e,n){var i=t("#jqsshape"+e),r=this["_draw"+n.type].apply(this,n.args);i[0].outerHTML=r},replaceWithShapes:function(e,n){var i,r=t("#jqsshape"+e[0]),o="",s=n.length;for(i=0;i<s;i++)o+=this["_draw"+n[i].type].apply(this,n[i].args);for(r[0].outerHTML=o,i=1;i<e.length;i++)t("#jqsshape"+e[i]).remove()},insertAfterShape:function(e,n){var i=t("#jqsshape"+e),r=this["_draw"+n.type].apply(this,n.args);i[0].insertAdjacentHTML("afterEnd",r)},removeShapeId:function(e){var n=t("#jqsshape"+e);this.group.removeChild(n[0])},getShapeAt:function(t,e,n){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})}))},function(t,e,n){var i,r;/*! nanoScrollerJS - v0.8.4 - (c) 2014 James Florentino; Licensed MIT */i=[n(0)],void 0!==(r=function(t){return function(t,e,n){"use strict";var i,r,o,s,a,c,l,u,h,p,f,d,g,v,m,y,_,b,x,w,k,S,C,T,A;b={paneClass:"nano-pane",sliderClass:"nano-slider",contentClass:"nano-content",iOSNativeScrolling:!1,preventPageScrolling:!1,disableResize:!1,alwaysVisible:!1,flashDelay:1500,sliderMinHeight:20,sliderMaxHeight:null,documentContext:null,windowContext:null},v="scroll",l="mousedown",u="mouseenter",h="mousemove",f="mousewheel",p="mouseup",g="resize",a="drag",c="enter",y="up",o="DOMMouseScroll",s="down",m="touchmove",i="Microsoft Internet Explorer"===e.navigator.appName&&/msie 7./i.test(e.navigator.appVersion)&&e.ActiveXObject,r=null,S=e.requestAnimationFrame,_=e.cancelAnimationFrame,T=n.createElement("div").style,A=function(){var t,e,n,i;for(t=n=0,i=(e=["t","webkitT","MozT","msT","OT"]).length;i>n;t=++n)if(e[t],e[t]+"ransform"in T)return e[t].substr(0,e[t].length-1);return!1}(),C=function(t){return!1!==A&&(""===A?t:A+t.charAt(0).toUpperCase()+t.substr(1))}("transform"),w=!1!==C,x=function(){var t,e,i;return(e=(t=n.createElement("div")).style).position="absolute",e.width="100px",e.height="100px",e.overflow=v,e.top="-9999px",n.body.appendChild(t),i=t.offsetWidth-t.clientWidth,n.body.removeChild(t),i},k=function(){var t,n,i;return n=e.navigator.userAgent,!!(t=/(?=.+Mac OS X)(?=.+Firefox)/.test(n))&&((i=/Firefox\/\d{2}\./.exec(n))&&(i=i[0].replace(/\D+/g,"")),t&&+i>23)},d=function(){function d(i,o){this.el=i,this.options=o,r||(r=x()),this.$el=t(this.el),this.doc=t(this.options.documentContext||n),this.win=t(this.options.windowContext||e),this.body=this.doc.find("body"),this.$content=this.$el.children("."+o.contentClass),this.$content.attr("tabindex",this.options.tabIndex||0),this.content=this.$content[0],this.previousPosition=0,this.options.iOSNativeScrolling&&null!=this.el.style.WebkitOverflowScrolling?this.nativeScrolling():this.generate(),this.createEvents(),this.addEvents(),this.reset()}return d.prototype.preventScrolling=function(t,e){if(this.isActive)if(t.type===o)(e===s&&t.originalEvent.detail>0||e===y&&t.originalEvent.detail<0)&&t.preventDefault();else if(t.type===f){if(!t.originalEvent||!t.originalEvent.wheelDelta)return;(e===s&&t.originalEvent.wheelDelta<0||e===y&&t.originalEvent.wheelDelta>0)&&t.preventDefault()}},d.prototype.nativeScrolling=function(){this.$content.css({WebkitOverflowScrolling:"touch"}),this.iOSNativeScrolling=!0,this.isActive=!0},d.prototype.updateScrollValues=function(){var t,e;t=this.content,this.maxScrollTop=t.scrollHeight-t.clientHeight,this.prevScrollTop=this.contentScrollTop||0,this.contentScrollTop=t.scrollTop,e=this.contentScrollTop>this.previousPosition?"down":this.contentScrollTop<this.previousPosition?"up":"same",this.previousPosition=this.contentScrollTop,"same"!==e&&this.$el.trigger("update",{position:this.contentScrollTop,maximum:this.maxScrollTop,direction:e}),this.iOSNativeScrolling||(this.maxSliderTop=this.paneHeight-this.sliderHeight,this.sliderTop=0===this.maxScrollTop?0:this.contentScrollTop*this.maxSliderTop/this.maxScrollTop)},d.prototype.setOnScrollStyles=function(){var t;w?(t={})[C]="translate(0, "+this.sliderTop+"px)":t={top:this.sliderTop},S?(_&&this.scrollRAF&&_(this.scrollRAF),this.scrollRAF=S(function(e){return function(){return e.scrollRAF=null,e.slider.css(t)}}(this))):this.slider.css(t)},d.prototype.createEvents=function(){this.events={down:function(t){return function(e){return t.isBeingDragged=!0,t.offsetY=e.pageY-t.slider.offset().top,t.slider.is(e.target)||(t.offsetY=0),t.pane.addClass("active"),t.doc.bind(h,t.events[a]).bind(p,t.events.up),t.body.bind(u,t.events[c]),!1}}(this),drag:function(t){return function(e){return t.sliderY=e.pageY-t.$el.offset().top-t.paneTop-(t.offsetY||.5*t.sliderHeight),t.scroll(),t.contentScrollTop>=t.maxScrollTop&&t.prevScrollTop!==t.maxScrollTop?t.$el.trigger("scrollend"):0===t.contentScrollTop&&0!==t.prevScrollTop&&t.$el.trigger("scrolltop"),!1}}(this),up:function(t){return function(){return t.isBeingDragged=!1,t.pane.removeClass("active"),t.doc.unbind(h,t.events[a]).unbind(p,t.events.up),t.body.unbind(u,t.events[c]),!1}}(this),resize:function(t){return function(){t.reset()}}(this),panedown:function(t){return function(e){return t.sliderY=(e.offsetY||e.originalEvent.layerY)-.5*t.sliderHeight,t.scroll(),t.events.down(e),!1}}(this),scroll:function(t){return function(e){t.updateScrollValues(),t.isBeingDragged||(t.iOSNativeScrolling||(t.sliderY=t.sliderTop,t.setOnScrollStyles()),null!=e&&(t.contentScrollTop>=t.maxScrollTop?(t.options.preventPageScrolling&&t.preventScrolling(e,s),t.prevScrollTop!==t.maxScrollTop&&t.$el.trigger("scrollend")):0===t.contentScrollTop&&(t.options.preventPageScrolling&&t.preventScrolling(e,y),0!==t.prevScrollTop&&t.$el.trigger("scrolltop"))))}}(this),wheel:function(t){return function(e){var n;if(null!=e)return(n=e.delta||e.wheelDelta||e.originalEvent&&e.originalEvent.wheelDelta||-e.detail||e.originalEvent&&-e.originalEvent.detail)&&(t.sliderY+=-n/3),t.scroll(),!1}}(this),enter:function(t){return function(e){var n;if(t.isBeingDragged)return 1!==(e.buttons||e.which)?(n=t.events).up.apply(n,arguments):void 0}}(this)}},d.prototype.addEvents=function(){var t;this.removeEvents(),t=this.events,this.options.disableResize||this.win.bind(g,t[g]),this.iOSNativeScrolling||(this.slider.bind(l,t[s]),this.pane.bind(l,t.panedown).bind(f+" "+o,t.wheel)),this.$content.bind(v+" "+f+" "+o+" "+m,t[v])},d.prototype.removeEvents=function(){var t;t=this.events,this.win.unbind(g,t[g]),this.iOSNativeScrolling||(this.slider.unbind(),this.pane.unbind()),this.$content.unbind(v+" "+f+" "+o+" "+m,t[v])},d.prototype.generate=function(){var t,n,i,o,s;return o=(n=this.options).paneClass,s=n.sliderClass,n.contentClass,(i=this.$el.children("."+o)).length||i.children("."+s).length||this.$el.append('<div class="'+o+'"><div class="'+s+'" /></div>'),this.pane=this.$el.children("."+o),this.slider=this.pane.find("."+s),0===r&&k()?t={right:-14,paddingRight:+e.getComputedStyle(this.content,null).getPropertyValue("padding-right").replace(/[^0-9.]+/g,"")+14}:r&&(t={right:-r},this.$el.addClass("has-scrollbar")),null!=t&&this.$content.css(t),this},d.prototype.restore=function(){this.stopped=!1,this.iOSNativeScrolling||this.pane.show(),this.addEvents()},d.prototype.reset=function(){var t,e,n,o,s,a,c,l,u,h,p;return this.iOSNativeScrolling?void(this.contentHeight=this.content.scrollHeight):(this.$el.find("."+this.options.paneClass).length||this.generate().stop(),this.stopped&&this.restore(),s=(o=(t=this.content).style).overflowY,i&&this.$content.css({height:this.$content.height()}),e=t.scrollHeight+r,(u=parseInt(this.$el.css("max-height"),10))>0&&(this.$el.height(""),this.$el.height(t.scrollHeight>u?u:t.scrollHeight)),c=(a=this.pane.outerHeight(!1))+(l=parseInt(this.pane.css("top"),10))+parseInt(this.pane.css("bottom"),10),(p=Math.round(c/e*c))<this.options.sliderMinHeight?p=this.options.sliderMinHeight:null!=this.options.sliderMaxHeight&&p>this.options.sliderMaxHeight&&(p=this.options.sliderMaxHeight),s===v&&o.overflowX!==v&&(p+=r),this.maxSliderTop=c-p,this.contentHeight=e,this.paneHeight=a,this.paneOuterHeight=c,this.sliderHeight=p,this.paneTop=l,this.slider.height(p),this.events.scroll(),this.pane.show(),this.isActive=!0,t.scrollHeight===t.clientHeight||this.pane.outerHeight(!0)>=t.scrollHeight&&s!==v?(this.pane.hide(),this.isActive=!1):this.el.clientHeight===t.scrollHeight&&s===v?this.slider.hide():this.slider.show(),this.pane.css({opacity:this.options.alwaysVisible?1:"",visibility:this.options.alwaysVisible?"visible":""}),("static"===(n=this.$content.css("position"))||"relative"===n)&&(h=parseInt(this.$content.css("right"),10))&&this.$content.css({right:"",marginRight:h}),this)},d.prototype.scroll=function(){return this.isActive?(this.sliderY=Math.max(0,this.sliderY),this.sliderY=Math.min(this.maxSliderTop,this.sliderY),this.$content.scrollTop(this.maxScrollTop*this.sliderY/this.maxSliderTop),this.iOSNativeScrolling||(this.updateScrollValues(),this.setOnScrollStyles()),this):void 0},d.prototype.scrollBottom=function(t){return this.isActive?(this.$content.scrollTop(this.contentHeight-this.$content.height()-t).trigger(f),this.stop().restore(),this):void 0},d.prototype.scrollTop=function(t){return this.isActive?(this.$content.scrollTop(+t).trigger(f),this.stop().restore(),this):void 0},d.prototype.scrollTo=function(t){return this.isActive?(this.scrollTop(this.$el.find(t).get(0).offsetTop),this):void 0},d.prototype.stop=function(){return _&&this.scrollRAF&&(_(this.scrollRAF),this.scrollRAF=null),this.stopped=!0,this.removeEvents(),this.iOSNativeScrolling||this.pane.hide(),this},d.prototype.destroy=function(){return this.stopped||this.stop(),!this.iOSNativeScrolling&&this.pane.length&&this.pane.remove(),i&&this.$content.height(""),this.$content.removeAttr("tabindex"),this.$el.hasClass("has-scrollbar")&&(this.$el.removeClass("has-scrollbar"),this.$content.css({right:""})),this},d.prototype.flash=function(){return!this.iOSNativeScrolling&&this.isActive?(this.reset(),this.pane.addClass("flashed"),setTimeout(function(t){return function(){t.pane.removeClass("flashed")}}(this),this.options.flashDelay),this):void 0},d}(),t.fn.nanoScroller=function(e){return this.each((function(){var n,i;if((i=this.nanoscroller)||(n=t.extend({},b,e),this.nanoscroller=i=new d(this,n)),e&&"object"==typeof e){if(t.extend(i.options,e),null!=e.scrollBottom)return i.scrollBottom(e.scrollBottom);if(null!=e.scrollTop)return i.scrollTop(e.scrollTop);if(e.scrollTo)return i.scrollTo(e.scrollTo);if("bottom"===e.scroll)return i.scrollBottom(0);if("top"===e.scroll)return i.scrollTop(0);if(e.scroll&&e.scroll instanceof t)return i.scrollTo(e.scroll);if(e.stop)return i.stop();if(e.destroy)return i.destroy();if(e.flash)return i.flash()}return i.reset()}))},t.fn.nanoScroller.Constructor=d}(t,window,document)}.apply(e,i))&&(t.exports=r)},function(t,e,n){var i,r;n(22),i=[n(0)],void 0===(r=function(t){return function(){var e,n,i,r=0,o={error:"error",info:"info",success:"success",warning:"warning"},s={clear:function(n){var i=h();e||a(i),c(n,i)||function(n){for(var i=e.children(),r=i.length-1;r>=0;r--)c(t(i[r]),n)}(i)},remove:function(n){var i=h();e||a(i),n&&0===t(":focus",n).length?p(n):e.children().length&&e.remove()},error:function(t,e,n){return u({type:o.error,iconClass:h().iconClasses.error,message:t,optionsOverride:n,title:e})},getContainer:a,info:function(t,e,n){return u({type:o.info,iconClass:h().iconClasses.info,message:t,optionsOverride:n,title:e})},options:{},subscribe:function(t){n=t},success:function(t,e,n){return u({type:o.success,iconClass:h().iconClasses.success,message:t,optionsOverride:n,title:e})},version:"2.1.0",warning:function(t,e,n){return u({type:o.warning,iconClass:h().iconClasses.warning,message:t,optionsOverride:n,title:e})}};return s;function a(n,i){return n||(n=h()),(e=t("#"+n.containerId)).length?e:(i&&(e=function(n){return(e=t("<div/>").attr("id",n.containerId).addClass(n.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(t(n.target)),e}(n)),e)}function c(e,n){return!(!e||0!==t(":focus",e).length||(e[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){p(e)}}),0))}function l(t){n&&n(t)}function u(n){var o=h(),s=n.iconClass||o.iconClass;if(void 0!==n.optionsOverride&&(o=t.extend(o,n.optionsOverride),s=n.optionsOverride.iconClass||s),o.preventDuplicates){if(n.message===i)return;i=n.message}r++,e=a(o,!0);var c=null,u=t("<div/>"),f=t("<div/>"),d=t("<div/>"),g=t("<div/>"),v=t(o.closeHtml),m={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:r,state:"visible",startTime:new Date,options:o,map:n};return n.iconClass&&u.addClass(o.toastClass).addClass(s),n.title&&(f.append(n.title).addClass(o.titleClass),u.append(f)),n.message&&(d.append(n.message).addClass(o.messageClass),u.append(d)),o.closeButton&&(v.addClass("toast-close-button").attr("role","button"),u.prepend(v)),o.progressBar&&(g.addClass("toast-progress"),u.prepend(g)),u.hide(),o.newestOnTop?e.prepend(u):e.append(u),u[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(c=setTimeout(_,o.timeOut),m.maxHideTime=parseFloat(o.timeOut),m.hideEta=(new Date).getTime()+m.maxHideTime,o.progressBar&&(m.intervalId=setInterval((function(){var t=(m.hideEta-(new Date).getTime())/m.maxHideTime*100;g.width(t+"%")}),10))),u.hover((function(){clearTimeout(c),m.hideEta=0,u.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}),(function(){(o.timeOut>0||o.extendedTimeOut>0)&&(c=setTimeout(_,o.extendedTimeOut),m.maxHideTime=parseFloat(o.extendedTimeOut),m.hideEta=(new Date).getTime()+m.maxHideTime)})),!o.onclick&&o.tapToDismiss&&u.click(_),o.closeButton&&v&&v.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),_(!0)})),o.onclick&&u.click((function(){o.onclick(),_()})),l(y),o.debug&&console&&console.log(y),u;function _(e){if(!t(":focus",u).length||e)return clearTimeout(m.intervalId),u[o.hideMethod]({duration:o.hideDuration,easing:o.hideEasing,complete:function(){p(u),o.onHidden&&"hidden"!==y.state&&o.onHidden(),y.state="hidden",y.endTime=new Date,l(y)}})}}function h(){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,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",target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},s.options)}function p(t){e||(e=a()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),i=void 0))}}()}.apply(e,i))||(t.exports=r)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,n){var i;i=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";var i=n(1),r=n(51);t.exports=new r(i)},function(t,e,n){var i=n(2),r=n(8),o=n(19),s=n(4)("socket.io-client");t.exports=e=c;var a=e.managers={};function c(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=i(t),c=r.source,l=r.id,u=r.path,h=a[l]&&u in a[l].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||h?(s("ignoring socket cache for %s",c),n=o(c,e)):(a[l]||(s("new io instance for %s",c),a[l]=o(c,e)),n=a[l]),r.query&&!e.query?e.query=r.query:e&&"object"==typeof e.query&&(e.query=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}(e.query)),n.socket(r.path,e)}e.protocol=r.protocol,e.connect=c,e.Manager=n(19),e.Socket=n(46)},function(t,e,n){(function(e){var i=n(3),r=n(4)("socket.io-client:url");t.exports=function(t,n){var o=t;n=n||e.location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(r("protocol-less url %s",t),t=void 0!==n?n.protocol+"//"+t:"https://"+t),r("parse %s",t),o=i(t)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var s=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port,o.href=o.protocol+"://"+s+(n&&n.port===o.port?"":":"+o.port),o}}).call(e,function(){return this}())},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,r=t.indexOf("["),o=t.indexOf("]");-1!=r&&-1!=o&&(t=t.substring(0,r)+t.substring(r,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[i[c]]=s[c]||"";return-1!=r&&-1!=o&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(i){function r(){try{return e.storage.debug}catch(t){}if(void 0!==i&&"env"in i)return i.env.DEBUG}(e=t.exports=n(6)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var i="color: "+this.color;t=[t[0],i,"color: inherit"].concat(Array.prototype.slice.call(t,1));var r=0,o=0;return t[0].replace(/%[a-z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))})),t.splice(o,0,i),t},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=r,e.useColors=function(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(r())}).call(e,n(5))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,l=[],u=!1,h=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=a(p);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}r.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];l.push(new d(t,e)),1!==l.length||u||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){(e=t.exports=o.debug=o).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),i=n.length,r=0;r<i;r++)n[r]&&("-"===(t=n[r].replace(/[\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){var n,i;for(n=0,i=e.skips.length;n<i;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;n<i;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(7),e.names=[],e.skips=[],e.formatters={};var i,r=0;function o(t){function n(){}function o(){var t=o,n=+new Date,s=n-(i||n);t.diff=s,t.prev=i,t.curr=n,i=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=e.colors[r++%e.colors.length]);for(var a=new Array(arguments.length),c=0;c<a.length;c++)a[c]=arguments[c];a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var l=0;a[0]=a[0].replace(/%([a-z%])/g,(function(n,i){if("%%"===n)return n;l++;var r=e.formatters[i];if("function"==typeof r){var o=a[l];n=r.call(t,o),a.splice(l,1),l--}return n})),a=e.formatArgs.apply(t,a),(o.log||e.log||console.log.bind(console)).apply(t,a)}n.enabled=!1,o.enabled=!0;var s=e.enabled(t)?o:n;return s.namespace=t,s}},function(t,e){var n=1e3,i=60*n,r=60*i,o=24*r,s=365.25*o;function a(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var c,l=typeof t;if("string"===l&&t.length>0)return function(t){if(!((t=String(t)).length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===l&&!1===isNaN(t))return e.long?a(c=t,o,"day")||a(c,r,"hour")||a(c,i,"minute")||a(c,n,"second")||c+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=r?Math.round(t/r)+"h":t>=i?Math.round(t/i)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){var i=n(9)("socket.io-parser"),r=n(12),o=n(15),s=n(16),a=n(18);function c(){}function l(t){var n="",o=!1;return n+=t.type,e.BINARY_EVENT!=t.type&&e.BINARY_ACK!=t.type||(n+=t.attachments,n+="-"),t.nsp&&"/"!=t.nsp&&(o=!0,n+=t.nsp),null!=t.id&&(o&&(n+=",",o=!1),n+=t.id),null!=t.data&&(o&&(n+=","),n+=r.stringify(t.data)),i("encoded %j as %s",t,n),n}function u(){this.reconstructor=null}function h(t){this.reconPack=t,this.buffers=[]}function p(t){return{type:e.ERROR,data:"parser error"}}e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=c,e.Decoder=u,c.prototype.encode=function(t,n){i("encoding packet %j",t),e.BINARY_EVENT==t.type||e.BINARY_ACK==t.type?function(t,e){s.removeBlobs(t,(function(t){var n=s.deconstructPacket(t),i=l(n.packet),r=n.buffers;r.unshift(i),e(r)}))}(t,n):n([l(t)])},o(u.prototype),u.prototype.add=function(t){var n;if("string"==typeof t)n=function(t){var n={},o=0;if(n.type=Number(t.charAt(0)),null==e.types[n.type])return p();if(e.BINARY_EVENT==n.type||e.BINARY_ACK==n.type){for(var s="";"-"!=t.charAt(++o)&&(s+=t.charAt(o),o!=t.length););if(s!=Number(s)||"-"!=t.charAt(o))throw new Error("Illegal attachments");n.attachments=Number(s)}if("/"==t.charAt(o+1))for(n.nsp="";++o&&","!=(c=t.charAt(o))&&(n.nsp+=c,o!=t.length););else n.nsp="/";var a=t.charAt(o+1);if(""!==a&&Number(a)==a){for(n.id="";++o;){var c;if(null==(c=t.charAt(o))||Number(c)!=c){--o;break}if(n.id+=t.charAt(o),o==t.length)break}n.id=Number(n.id)}return t.charAt(++o)&&(n=function(t,e){try{t.data=r.parse(e)}catch(t){return p()}return t}(n,t.substr(o))),i("decoded %s as %j",t,n),n}(t),e.BINARY_EVENT==n.type||e.BINARY_ACK==n.type?(this.reconstructor=new h(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!a(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},u.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},h.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length==this.reconPack.attachments){var e=s.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},h.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){function i(){var t;try{t=e.storage.debug}catch(t){}return t}(e=t.exports=n(10)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var i="color: "+this.color;t=[t[0],i,"color: inherit"].concat(Array.prototype.slice.call(t,1));var r=0,o=0;return t[0].replace(/%[a-z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))})),t.splice(o,0,i),t},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(i())},function(t,e,n){(e=t.exports=function(t){function n(){}function o(){var t=o,n=+new Date,s=n-(i||n);t.diff=s,t.prev=i,t.curr=n,i=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=e.colors[r++%e.colors.length]);var a=Array.prototype.slice.call(arguments);a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var c=0;a[0]=a[0].replace(/%([a-z%])/g,(function(n,i){if("%%"===n)return n;c++;var r=e.formatters[i];if("function"==typeof r){var o=a[c];n=r.call(t,o),a.splice(c,1),c--}return n})),"function"==typeof e.formatArgs&&(a=e.formatArgs.apply(t,a)),(o.log||e.log||console.log.bind(console)).apply(t,a)}n.enabled=!1,o.enabled=!0;var s=e.enabled(t)?o:n;return s.namespace=t,s}).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),i=n.length,r=0;r<i;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){var n,i;for(n=0,i=e.skips.length;n<i;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;n<i;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(11),e.names=[],e.skips=[],e.formatters={};var i,r=0},function(t,e){var n=1e3,i=60*n,r=60*i,o=24*r,s=365.25*o;function a(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){return e=e||{},"string"==typeof t?function(t){if(!((t=""+t).length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*i;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a}}}}(t):e.long?a(c=t,o,"day")||a(c,r,"hour")||a(c,i,"minute")||a(c,n,"second")||c+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=r?Math.round(t/r)+"h":t>=i?Math.round(t/i)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);var c}},function(t,e,n){var i;(function(t,r){(function(){var o=n(14),s={function:!0,object:!0},a=s[typeof e]&&e&&!e.nodeType&&e,c=s[typeof window]&&window||this,l=a&&s[typeof t]&&t&&!t.nodeType&&"object"==typeof r&&r;function u(t,e){t||(t=c.Object()),e||(e=c.Object());var n=t.Number||c.Number,i=t.String||c.String,r=t.Object||c.Object,o=t.Date||c.Date,a=t.SyntaxError||c.SyntaxError,l=t.TypeError||c.TypeError,h=t.Math||c.Math,p=t.JSON||c.JSON;"object"==typeof p&&p&&(e.stringify=p.stringify,e.parse=p.parse);var f,d,g,v=r.prototype,m=v.toString,y=new o(-0xc782b5b800cec);try{y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()}catch(t){}function _(t){if(_[t]!==g)return _[t];var r;if("bug-string-char-index"==t)r="a"!="a"[0];else if("json"==t)r=_("json-stringify")&&_("json-parse");else{var s,a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var c=e.stringify,l="function"==typeof c&&y;if(l){(s=function(){return 1}).toJSON=s;try{l="0"===c(0)&&"0"===c(new n)&&'""'==c(new i)&&c(m)===g&&c(g)===g&&c()===g&&"1"===c(s)&&"[1]"==c([s])&&"[null]"==c([g])&&"null"==c(null)&&"[null,null,null]"==c([g,m,null])&&c({a:[s,!0,!1,null,"\0\b\n\f\r\t"]})==a&&"1"===c(null,s)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new o(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new o(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new o(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new o(-1))}catch(t){l=!1}}r=l}if("json-parse"==t){var u=e.parse;if("function"==typeof u)try{if(0===u("0")&&!u(!1)){var h=5==(s=u(a)).a.length&&1===s.a[0];if(h){try{h=!u('"\t"')}catch(t){}if(h)try{h=1!==u("01")}catch(t){}if(h)try{h=1!==u("1.")}catch(t){}}}}catch(t){h=!1}r=h}}return _[t]=!!r}if(!_("json")){var b=_("bug-string-char-index");if(!y)var x=h.floor,w=[0,31,59,90,120,151,181,212,243,273,304,334],k=function(t,e){return w[e]+365*(t-1970)+x((t-1969+(e=+(e>1)))/4)-x((t-1901+e)/100)+x((t-1601+e)/400)};if((f=v.hasOwnProperty)||(f=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=m?f=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,f=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,f.call(this,t)}),d=function(t,e){var n,i,r,o=0;for(r in(n=function(){this.valueOf=0}).prototype.valueOf=0,i=new n)f.call(i,r)&&o++;return n=i=null,o?d=2==o?function(t,e){var n,i={},r="[object Function]"==m.call(t);for(n in t)r&&"prototype"==n||f.call(i,n)||!(i[n]=1)||!f.call(t,n)||e(n)}:function(t,e){var n,i,r="[object Function]"==m.call(t);for(n in t)r&&"prototype"==n||!f.call(t,n)||(i="constructor"===n)||e(n);(i||f.call(t,n="constructor"))&&e(n)}:(i=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],d=function(t,e){var n,r,o="[object Function]"==m.call(t),a=!o&&"function"!=typeof t.constructor&&s[typeof t.hasOwnProperty]&&t.hasOwnProperty||f;for(n in t)o&&"prototype"==n||!a.call(t,n)||e(n);for(r=i.length;n=i[--r];a.call(t,n)&&e(n));}),d(t,e)},!_("json-stringify")){var S={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},C=function(t,e){return("000000"+(e||0)).slice(-t)},T=function(t){for(var e='"',n=0,i=t.length,r=!b||i>10,o=r&&(b?t.split(""):t);n<i;n++){var s=t.charCodeAt(n);switch(s){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=S[s];break;default:if(s<32){e+="\\u00"+C(2,s.toString(16));break}e+=r?o[n]:t.charAt(n)}}return e+'"'},A=function(t,e,n,i,r,o,s){var a,c,u,h,p,v,y,_,b,w,S,N,M,D,E,O;try{a=e[t]}catch(t){}if("object"==typeof a&&a)if("[object Date]"!=(c=m.call(a))||f.call(a,"toJSON"))"function"==typeof a.toJSON&&("[object Number]"!=c&&"[object String]"!=c&&"[object Array]"!=c||f.call(a,"toJSON"))&&(a=a.toJSON(t));else if(a>-1/0&&a<1/0){if(k){for(p=x(a/864e5),u=x(p/365.2425)+1970-1;k(u+1,0)<=p;u++);for(h=x((p-k(u,0))/30.42);k(u,h+1)<=p;h++);p=1+p-k(u,h),y=x((v=(a%864e5+864e5)%864e5)/36e5)%24,_=x(v/6e4)%60,b=x(v/1e3)%60,w=v%1e3}else u=a.getUTCFullYear(),h=a.getUTCMonth(),p=a.getUTCDate(),y=a.getUTCHours(),_=a.getUTCMinutes(),b=a.getUTCSeconds(),w=a.getUTCMilliseconds();a=(u<=0||u>=1e4?(u<0?"-":"+")+C(6,u<0?-u:u):C(4,u))+"-"+C(2,h+1)+"-"+C(2,p)+"T"+C(2,y)+":"+C(2,_)+":"+C(2,b)+"."+C(3,w)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if("[object Boolean]"==(c=m.call(a)))return""+a;if("[object Number]"==c)return a>-1/0&&a<1/0?""+a:"null";if("[object String]"==c)return T(""+a);if("object"==typeof a){for(D=s.length;D--;)if(s[D]===a)throw l();if(s.push(a),S=[],E=o,o+=r,"[object Array]"==c){for(M=0,D=a.length;M<D;M++)N=A(M,a,n,i,r,o,s),S.push(N===g?"null":N);O=S.length?r?"[\n"+o+S.join(",\n"+o)+"\n"+E+"]":"["+S.join(",")+"]":"[]"}else d(i||a,(function(t){var e=A(t,a,n,i,r,o,s);e!==g&&S.push(T(t)+":"+(r?" ":"")+e)})),O=S.length?r?"{\n"+o+S.join(",\n"+o)+"\n"+E+"}":"{"+S.join(",")+"}":"{}";return s.pop(),O}};e.stringify=function(t,e,n){var i,r,o,a;if(s[typeof e]&&e)if("[object Function]"==(a=m.call(e)))r=e;else if("[object Array]"==a){o={};for(var c,l=0,u=e.length;l<u;c=e[l++],("[object String]"==(a=m.call(c))||"[object Number]"==a)&&(o[c]=1));}if(n)if("[object Number]"==(a=m.call(n))){if((n-=n%1)>0)for(i="",n>10&&(n=10);i.length<n;i+=" ");}else"[object String]"==a&&(i=n.length<=10?n:n.slice(0,10));return A("",((c={})[""]=t,c),r,o,i,"",[])}}if(!_("json-parse")){var N,M,D=i.fromCharCode,E={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},O=function(){throw N=M=null,a()},j=function(){for(var t,e,n,i,r,o=M,s=o.length;N<s;)switch(r=o.charCodeAt(N)){case 9:case 10:case 13:case 32:N++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=b?o.charAt(N):o[N],N++,t;case 34:for(t="@",N++;N<s;)if((r=o.charCodeAt(N))<32)O();else if(92==r)switch(r=o.charCodeAt(++N)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=E[r],N++;break;case 117:for(e=++N,n=N+4;N<n;N++)(r=o.charCodeAt(N))>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70||O();t+=D("0x"+o.slice(e,N));break;default:O()}else{if(34==r)break;for(r=o.charCodeAt(N),e=N;r>=32&&92!=r&&34!=r;)r=o.charCodeAt(++N);t+=o.slice(e,N)}if(34==o.charCodeAt(N))return N++,t;O();default:if(e=N,45==r&&(i=!0,r=o.charCodeAt(++N)),r>=48&&r<=57){for(48==r&&(r=o.charCodeAt(N+1))>=48&&r<=57&&O(),i=!1;N<s&&(r=o.charCodeAt(N))>=48&&r<=57;N++);if(46==o.charCodeAt(N)){for(n=++N;n<s&&(r=o.charCodeAt(n))>=48&&r<=57;n++);n==N&&O(),N=n}if(101==(r=o.charCodeAt(N))||69==r){for(43!=(r=o.charCodeAt(++N))&&45!=r||N++,n=N;n<s&&(r=o.charCodeAt(n))>=48&&r<=57;n++);n==N&&O(),N=n}return+o.slice(e,N)}if(i&&O(),"true"==o.slice(N,N+4))return N+=4,!0;if("false"==o.slice(N,N+5))return N+=5,!1;if("null"==o.slice(N,N+4))return N+=4,null;O()}return"$"},R=function(t){var e,n;if("$"==t&&O(),"string"==typeof t){if("@"==(b?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=j());n||(n=!0))n&&(","==t?"]"==(t=j())&&O():O()),","==t&&O(),e.push(R(t));return e}if("{"==t){for(e={};"}"!=(t=j());n||(n=!0))n&&(","==t?"}"==(t=j())&&O():O()),","!=t&&"string"==typeof t&&"@"==(b?t.charAt(0):t[0])&&":"==j()||O(),e[t.slice(1)]=R(j());return e}O()}return t},I=function(t,e,n){var i=P(t,e,n);i===g?delete t[e]:t[e]=i},P=function(t,e,n){var i,r=t[e];if("object"==typeof r&&r)if("[object Array]"==m.call(r))for(i=r.length;i--;)I(r,i,n);else d(r,(function(t){I(r,t,n)}));return n.call(t,e,r)};e.parse=function(t,e){var n,i;return N=0,M=""+t,n=R(j()),"$"!=j()&&O(),N=M=null,e&&"[object Function]"==m.call(e)?P(((i={})[""]=n,i),"",e):n}}}return e.runInContext=u,e}if(!l||l.global!==l&&l.window!==l&&l.self!==l||(c=l),a&&!o)u(c,a);else{var h=c.JSON,p=c.JSON3,f=!1,d=u(c,c.JSON3={noConflict:function(){return f||(f=!0,c.JSON=h,c.JSON3=p,h=p=null),d}});c.JSON={parse:d.parse,stringify:d.stringify}}o&&(void 0===(i=function(){return d}.call(e,n,e,t))||(t.exports=i))}).call(this)}).call(e,n(13)(t),function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},n.prototype.once=function(t,e){var n=this;function i(){n.off(t,i),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},i.fn=e,this.on(t,i),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks[t];if(!i)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r=0;r<i.length;r++)if((n=i[r])===e||n.fn===e){i.splice(r,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n)for(var i=0,r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,e);return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){(function(t){var i=n(17),r=n(18);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=function t(n){if(!n)return n;if(r(n)){var o={_placeholder:!0,num:e.length};return e.push(n),o}if(i(n)){for(var s=new Array(n.length),a=0;a<n.length;a++)s[a]=t(n[a]);return s}if("object"==typeof n&&!(n instanceof Date)){for(var c in s={},n)s[c]=t(n[c]);return s}return n}(n),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(n){if(n&&n._placeholder)return e[n.num];if(i(n)){for(var r=0;r<n.length;r++)n[r]=t(n[r]);return n}if(n&&"object"==typeof n){for(var o in n)n[o]=t(n[o]);return n}return n}(t.data),t.attachments=void 0,t},e.removeBlobs=function(e,n){var o=0,s=e;!function e(a,c,l){if(!a)return a;if(t.Blob&&a instanceof Blob||t.File&&a instanceof File){o++;var u=new FileReader;u.onload=function(){l?l[c]=this.result:s=this.result,--o||n(s)},u.readAsArrayBuffer(a)}else if(i(a))for(var h=0;h<a.length;h++)e(a[h],h,a);else if(a&&"object"==typeof a&&!r(a))for(var p in a)e(a[p],p,a)}(s),o||n(s)}}).call(e,function(){return this}())},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e){(function(e){t.exports=function(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}}).call(e,function(){return this}())},function(t,e,n){var i=n(20),r=n(46),o=n(37),s=n(8),a=n(48),c=n(49),l=n(4)("socket.io-client:manager"),u=n(44),h=n(50),p=Object.prototype.hasOwnProperty;function f(t,e){if(!(this instanceof f))return new f(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[],this.encoder=new s.Encoder,this.decoder=new s.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}t.exports=f,f.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},f.prototype.updateSocketIds=function(){for(var t in this.nsps)p.call(this.nsps,t)&&(this.nsps[t].id=this.engine.id)},o(f.prototype),f.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},f.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},f.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},f.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},f.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},f.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},f.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},f.prototype.open=f.prototype.connect=function(t,e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=i(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",(function(){r.onopen(),t&&t()})),s=a(n,"error",(function(e){if(l("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;l("connect attempt will timeout after %d",c);var u=setTimeout((function(){l("connect attempt timed out after %d",c),o.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(o),this.subs.push(s),this},f.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(t,"ping",c(this,"onping"))),this.subs.push(a(t,"pong",c(this,"onpong"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},f.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},f.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},f.prototype.ondata=function(t){this.decoder.add(t)},f.prototype.ondecoded=function(t){this.emit("packet",t)},f.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},f.prototype.socket=function(t,e){var n=this.nsps[t];if(!n){n=new r(this,t,e),this.nsps[t]=n;var i=this;n.on("connecting",o),n.on("connect",(function(){n.id=i.engine.id})),this.autoConnect&&o()}function o(){~u(i.connecting,n)||i.connecting.push(n)}return n},f.prototype.destroy=function(t){var e=u(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},f.prototype.packet=function(t){l("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,(function(n){for(var i=0;i<n.length;i++)e.engine.write(n[i],t.options);e.encoding=!1,e.processPacketQueue()})))},f.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},f.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},f.prototype.close=f.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},f.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},f.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},f.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(21)},function(t,e,n){t.exports=n(22),t.exports.parser=n(29)},function(t,e,n){(function(e){var i=n(23),r=n(37),o=n(4)("engine.io-client:socket"),s=n(44),a=n(29),c=n(3),l=n(45),u=n(38);function h(t,n){if(!(this instanceof h))return new h(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=c(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=c(n.host).host),this.secure=null!=n.secure?n.secure:e.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(e.location?location.hostname:"localhost"),this.port=n.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized?null:n.rejectUnauthorized,this.forceNode=!!n.forceNode;var i="object"==typeof e&&e;i.global===i&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=h,h.priorWebsocketSuccess=!1,r(h.prototype),h.protocol=a.protocol,h.Socket=h,h.Transport=n(28),h.transports=n(23),h.parser=n(29),h.prototype.createTransport=function(t){o('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);return e.EIO=a.protocol,e.transport=t,this.id&&(e.sid=this.id),new i[t]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:e,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders,forceNode:this.forceNode,localAddress:this.localAddress})},h.prototype.open=function(){var t;if(this.rememberUpgrade&&h.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},h.prototype.setTransport=function(t){o("setting transport %s",t.name);var e=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},h.prototype.probe=function(t){o('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,i=this;function r(){if(i.onlyBinaryUpgrades){var r=!this.supportsBinary&&i.transport.supportsBinary;n=n||r}n||(o('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(r){if(!n)if("pong"===r.type&&"probe"===r.data){if(o('probe transport "%s" pong',t),i.upgrading=!0,i.emit("upgrading",e),!e)return;h.priorWebsocketSuccess="websocket"===e.name,o('pausing current transport "%s"',i.transport.name),i.transport.pause((function(){n||"closed"!==i.readyState&&(o("changing transport and sending upgrade packet"),p(),i.setTransport(e),e.send([{type:"upgrade"}]),i.emit("upgrade",e),e=null,i.upgrading=!1,i.flush())}))}else{o('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,i.emit("upgradeError",s)}})))}function s(){n||(n=!0,p(),e.close(),e=null)}function a(n){var r=new Error("probe error: "+n);r.transport=e.name,s(),o('probe transport "%s" failed because of error: %s',t,n),i.emit("upgradeError",r)}function c(){a("transport closed")}function l(){a("socket closed")}function u(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),s())}function p(){e.removeListener("open",r),e.removeListener("error",a),e.removeListener("close",c),i.removeListener("close",l),i.removeListener("upgrading",u)}h.priorWebsocketSuccess=!1,e.once("open",r),e.once("error",a),e.once("close",c),this.once("close",l),this.once("upgrading",u),e.open()},h.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",h.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},h.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(l(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else o('packet received with socket readyState "%s"',this.readyState)},h.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},h.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout((function(){"closed"!==e.readyState&&e.onClose("ping timeout")}),t||e.pingInterval+e.pingTimeout)},h.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)}),t.pingInterval)},h.prototype.ping=function(){var t=this;this.sendPacket("ping",(function(){t.emit("ping")}))},h.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},h.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},h.prototype.write=h.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},h.prototype.sendPacket=function(t,e,n,i){if("function"==typeof e&&(i=e,e=void 0),"function"==typeof n&&(i=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var r={type:t,data:e,options:n};this.emit("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}},h.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?i():e()})):this.upgrading?i():e()}function e(){t.onClose("forced close"),o("socket closing - telling transport to close"),t.transport.close()}function n(){t.removeListener("upgrade",n),t.removeListener("upgradeError",n),e()}function i(){t.once("upgrade",n),t.once("upgradeError",n)}return this},h.prototype.onError=function(t){o("socket error %j",t),h.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},h.prototype.onClose=function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',t),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)},h.prototype.filterUpgrades=function(t){for(var e=[],n=0,i=t.length;n<i;n++)~s(this.transports,t[n])&&e.push(t[n]);return e}}).call(e,function(){return this}())},function(t,e,n){(function(t){var i=n(24),r=n(26),o=n(41),s=n(42);e.polling=function(e){var n=!1,s=!1,a=!1!==e.jsonp;if(t.location){var c="https:"===location.protocol,l=location.port;l||(l=c?443:80),n=e.hostname!==location.hostname||l!==e.port,s=e.secure!==c}if(e.xdomain=n,e.xscheme=s,"open"in new i(e)&&!e.forceJSONP)return new r(e);if(!a)throw new Error("JSONP disabled");return new o(e)},e.websocket=s}).call(e,function(){return this}())},function(t,e,n){(function(e){var i=n(25);t.exports=function(t){var n=t.xdomain,r=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||i))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!r&&o)return new XDomainRequest}catch(t){}if(!n)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(e,function(){return this}())},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){(function(e){var i=n(24),r=n(27),o=n(37),s=n(39),a=n(4)("engine.io-client:polling-xhr");function c(){}function l(t){if(r.call(this,t),this.requestTimeout=t.requestTimeout,e.location){var n="https:"===location.protocol,i=location.port;i||(i=n?443:80),this.xd=t.hostname!==e.location.hostname||i!==t.port,this.xs=t.secure!==n}else this.extraHeaders=t.extraHeaders}function u(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function h(){for(var t in u.requests)u.requests.hasOwnProperty(t)&&u.requests[t].abort()}t.exports=l,t.exports.Request=u,s(l,r),l.prototype.supportsBinary=!0,l.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new u(t)},l.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,i=this.request({method:"POST",data:t,isBinary:n}),r=this;i.on("success",e),i.on("error",(function(t){r.onError("xhr post error",t)})),this.sendXhr=i},l.prototype.doPoll=function(){a("xhr poll");var t=this.request(),e=this;t.on("data",(function(t){e.onData(t)})),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t},o(u.prototype),u.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new i(t),r=this;try{a("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in n.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.extraHeaders[o])}catch(t){}if(this.supportsBinary&&(n.responseType="arraybuffer"),"POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{n.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout((function(){r.onError(n.status)}),0))},a("xhr data %s",this.data),n.send(this.data)}catch(t){return void setTimeout((function(){r.onError(t)}),0)}e.document&&(this.index=u.requestsCount++,u.requests[this.index]=this)},u.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},u.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},u.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},u.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,t)try{this.xhr.abort()}catch(t){}e.document&&delete u.requests[this.index],this.xhr=null}},u.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(t){}if("application/octet-stream"===e)t=this.xhr.response||this.xhr.responseText;else if(this.supportsBinary)try{t=String.fromCharCode.apply(null,new Uint8Array(this.xhr.response))}catch(e){for(var n=new Uint8Array(this.xhr.response),i=[],r=0,o=n.length;r<o;r++)i.push(n[r]);t=String.fromCharCode.apply(null,i)}else t=this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},u.prototype.hasXDR=function(){return void 0!==e.XDomainRequest&&!this.xs&&this.enablesXDR},u.prototype.abort=function(){this.cleanup()},u.requestsCount=0,u.requests={},e.document&&(e.attachEvent?e.attachEvent("onunload",h):e.addEventListener&&e.addEventListener("beforeunload",h,!1))}).call(e,function(){return this}())},function(t,e,n){var i=n(28),r=n(38),o=n(29),s=n(39),a=n(40),c=n(4)("engine.io-client:polling");t.exports=u;var l=null!=new(n(24))({xdomain:!1}).responseType;function u(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),i.call(this,t)}s(u,i),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(t){var e=this;function n(){c("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var i=0;this.polling&&(c("we are currently polling - waiting to pause"),i++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--i||n()}))),this.writable||(c("we are currently writing - waiting to pause"),i++,this.once("drain",(function(){c("pre-pause writing complete"),--i||n()})))}else n()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(t){var e=this;c("polling got data %s",t),o.decodePayload(t,this.socket.binaryType,(function(t,n,i){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var t=this;function e(){c("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),e()):(c("transport not open - deferring close"),this.once("open",e))},u.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};o.encodePayload(t,this.supportsBinary,(function(t){e.doWrite(t,n)}))},u.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=a()),this.supportsBinary||t.sid||(t.b64=1),t=r.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){var i=n(29),r=n(37);function o(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=o,r(o.prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){(function(t){var i,r=n(30),o=n(31),s=n(32),a=n(33),c=n(34);t&&t.ArrayBuffer&&(i=n(35));var l="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),h=l||u;e.protocol=3;var p=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},f=r(p),d={type:"error",data:"parser error"},g=n(36);function v(t,e,n){for(var i=new Array(t.length),r=a(t.length,n),o=function(t,n,r){e(n,(function(e,n){i[t]=n,r(e,i)}))},s=0;s<t.length;s++)o(s,t[s],r)}e.encodePacket=function(n,i,r,o){"function"==typeof i&&(o=i,i=!1),"function"==typeof r&&(o=r,r=null);var s=void 0===n.data?void 0:n.data.buffer||n.data;if(t.ArrayBuffer&&s instanceof ArrayBuffer)return function(t,n,i){if(!n)return e.encodeBase64Packet(t,i);var r=t.data,o=new Uint8Array(r),s=new Uint8Array(1+r.byteLength);s[0]=p[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return i(s.buffer)}(n,i,o);if(g&&s instanceof t.Blob)return function(t,n,i){if(!n)return e.encodeBase64Packet(t,i);if(h)return function(t,n,i){if(!n)return e.encodeBase64Packet(t,i);var r=new FileReader;return r.onload=function(){t.data=r.result,e.encodePacket(t,n,!0,i)},r.readAsArrayBuffer(t.data)}(t,n,i);var r=new Uint8Array(1);r[0]=p[t.type];var o=new g([r.buffer,t.data]);return i(o)}(n,i,o);if(s&&s.base64)return function(t,n){var i="b"+e.packets[t.type]+t.data.data;return n(i)}(n,o);var a=p[n.type];return void 0!==n.data&&(a+=r?c.encode(String(n.data)):String(n.data)),o(""+a)},e.encodeBase64Packet=function(n,i){var r,o="b"+e.packets[n.type];if(g&&n.data instanceof t.Blob){var s=new FileReader;return s.onload=function(){var t=s.result.split(",")[1];i(o+t)},s.readAsDataURL(n.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(t){for(var a=new Uint8Array(n.data),c=new Array(a.length),l=0;l<a.length;l++)c[l]=a[l];r=String.fromCharCode.apply(null,c)}return o+=t.btoa(r),i(o)},e.decodePacket=function(t,n,i){if(void 0===t)return d;if("string"==typeof t){if("b"==t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(i&&!1===(t=function(t){try{t=c.decode(t)}catch(t){return!1}return t}(t)))return d;var r=t.charAt(0);return Number(r)==r&&f[r]?t.length>1?{type:f[r],data:t.substring(1)}:{type:f[r]}:d}r=new Uint8Array(t)[0];var o=s(t,1);return g&&"blob"===n&&(o=new g([o])),{type:f[r],data:o}},e.decodeBase64Packet=function(t,e){var n=f[t.charAt(0)];if(!i)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=i.decode(t.substr(1));return"blob"===e&&g&&(r=new g([r])),{type:n,data:r}},e.encodePayload=function(t,n,i){"function"==typeof n&&(i=n,n=null);var r=o(t);return n&&r?g&&!h?e.encodePayloadAsBlob(t,i):e.encodePayloadAsArrayBuffer(t,i):t.length?void v(t,(function(t,i){e.encodePacket(t,!!r&&n,!0,(function(t){i(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return i(e.join(""))})):i("0:")},e.decodePayload=function(t,n,i){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,i);var r;if("function"==typeof n&&(i=n,n=null),""==t)return i(d,0,1);for(var o,s,a="",c=0,l=t.length;c<l;c++){var u=t.charAt(c);if(":"!=u)a+=u;else{if(""==a||a!=(o=Number(a)))return i(d,0,1);if(a!=(s=t.substr(c+1,o)).length)return i(d,0,1);if(s.length){if(r=e.decodePacket(s,n,!0),d.type==r.type&&d.data==r.data)return i(d,0,1);if(!1===i(r,c+o,l))return}c+=o,a=""}}return""!=a?i(d,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){if(!t.length)return n(new ArrayBuffer(0));v(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){return n(null,t)}))}),(function(t,e){var i=e.reduce((function(t,e){var n;return t+(n="string"==typeof e?e.length:e.byteLength).toString().length+n+2}),0),r=new Uint8Array(i),o=0;return e.forEach((function(t){var e="string"==typeof t,n=t;if(e){for(var i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);n=i.buffer}r[o++]=e?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)r[o++]=parseInt(a[s]);for(r[o++]=255,i=new Uint8Array(n),s=0;s<i.length;s++)r[o++]=i[s]})),n(r.buffer)}))},e.encodePayloadAsBlob=function(t,n){v(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var i=new Uint8Array(t.length),r=0;r<t.length;r++)i[r]=t.charCodeAt(r);t=i.buffer,e[0]=0}var o=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),s=new Uint8Array(o.length+1);for(r=0;r<o.length;r++)s[r]=parseInt(o[r]);if(s[o.length]=255,g){var a=new g([e.buffer,s.buffer,t]);n(null,a)}}))}),(function(t,e){return n(new g(e))}))},e.decodePayloadAsBinary=function(t,n,i){"function"==typeof n&&(i=n,n=null);for(var r=t,o=[],a=!1;r.byteLength>0;){for(var c=new Uint8Array(r),l=0===c[0],u="",h=1;255!=c[h];h++){if(u.length>310){a=!0;break}u+=c[h]}if(a)return i(d,0,1);r=s(r,2+u.length),u=parseInt(u);var p=s(r,0,u);if(l)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(t){var f=new Uint8Array(p);for(p="",h=0;h<f.length;h++)p+=String.fromCharCode(f[h])}o.push(p),r=s(r,u)}var g=o.length;o.forEach((function(t,r){i(e.decodePacket(t,n,!0),r,g)}))}}).call(e,function(){return this}())},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var i in t)n.call(t,i)&&e.push(i);return e}},function(t,e,n){(function(e){var i=n(17);t.exports=function(t){return function t(n){if(!n)return!1;if(e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(n)||e.ArrayBuffer&&n instanceof ArrayBuffer||e.Blob&&n instanceof Blob||e.File&&n instanceof File)return!0;if(i(n)){for(var r=0;r<n.length;r++)if(t(n[r]))return!0}else if(n&&"object"==typeof n)for(var o in n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),n)if(Object.prototype.hasOwnProperty.call(n,o)&&t(n[o]))return!0;return!1}(t)}}).call(e,function(){return this}())},function(t,e){t.exports=function(t,e,n){var i=t.byteLength;if(e=e||0,n=n||i,t.slice)return t.slice(e,n);if(e<0&&(e+=i),n<0&&(n+=i),n>i&&(n=i),e>=i||e>=n||0===i)return new ArrayBuffer(0);for(var r=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)o[a]=r[s];return o.buffer}},function(t,e){function n(){}t.exports=function(t,e,i){var r=!1;return i=i||n,o.count=t,0===t?e():o;function o(t,n){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(r=!0,e(t),e=i):0!==o.count||r||e(null,n)}}},function(t,e,n){var i;(function(t,r){!function(o){var s=("object"==typeof t&&t&&t.exports,"object"==typeof r&&r);s.global!==s&&s.window;var a,c,l,u=String.fromCharCode;function h(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}function p(t,e){return u(t>>e&63|128)}function f(t){if(0==(4294967168&t))return u(t);var e="";return 0==(4294965248&t)?e=u(t>>6&31|192):0==(4294901760&t)?(e=u(t>>12&15|224),e+=p(t,6)):0==(4292870144&t)&&(e=u(t>>18&7|240),e+=p(t,12),e+=p(t,6)),e+=u(63&t|128)}function d(){if(l>=c)throw Error("Invalid byte index");var t=255&a[l];if(l++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function g(){var t,e;if(l>c)throw Error("Invalid byte index");if(l==c)return!1;if(t=255&a[l],l++,0==(128&t))return t;if(192==(224&t)){if((e=(31&t)<<6|d())>=128)return e;throw Error("Invalid continuation byte")}if(224==(240&t)){if((e=(15&t)<<12|d()<<6|d())>=2048)return e;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=(15&t)<<18|d()<<12|d()<<6|d())>=65536&&e<=1114111)return e;throw Error("Invalid WTF-8 detected")}var v={version:"1.0.0",encode:function(t){for(var e=h(t),n=e.length,i=-1,r="";++i<n;)r+=f(e[i]);return r},decode:function(t){a=h(t),c=a.length,l=0;for(var e,n=[];!1!==(e=g());)n.push(e);return function(t){for(var e,n=t.length,i=-1,r="";++i<n;)(e=t[i])>65535&&(r+=u((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=u(e);return r}(n)}};void 0===(i=function(){return v}.call(e,n,e,t))||(t.exports=i)}()}).call(e,n(13)(t),function(){return this}())},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),i=0;i<t.length;i++)n[t.charCodeAt(i)]=i;e.encode=function(e){var n,i=new Uint8Array(e),r=i.length,o="";for(n=0;n<r;n+=3)o+=t[i[n]>>2],o+=t[(3&i[n])<<4|i[n+1]>>4],o+=t[(15&i[n+1])<<2|i[n+2]>>6],o+=t[63&i[n+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,i,r,o,s,a=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u=new ArrayBuffer(a),h=new Uint8Array(u);for(e=0;e<c;e+=4)i=n[t.charCodeAt(e)],r=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],h[l++]=i<<2|r>>4,h[l++]=(15&r)<<4|o>>2,h[l++]=(3&o)<<6|63&s;return u}}()},function(t,e){(function(e){var n=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,i=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=i&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function s(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.buffer instanceof ArrayBuffer){var i=n.buffer;if(n.byteLength!==i.byteLength){var r=new Uint8Array(n.byteLength);r.set(new Uint8Array(i,n.byteOffset,n.byteLength)),i=r.buffer}t[e]=i}}}function a(t,e){e=e||{};var i=new n;s(t);for(var r=0;r<t.length;r++)i.append(t[r]);return e.type?i.getBlob(e.type):i.getBlob()}function c(t,e){return s(t),new Blob(t,e||{})}t.exports=i?r?e.Blob:c:o?a:void 0}).call(e,function(){return this}())},function(t,e,n){function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},i.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<i.length;r++)if((n=i[r])===e||n.fn===e){i.splice(r,1);break}return this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var i=0,r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,e);return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),i=0,r=n.length;i<r;i++){var o=n[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){"use strict";var n,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r=64,o={},s=0,a=0;function c(t){var e="";do{e=i[t%r]+e,t=Math.floor(t/r)}while(t>0);return e}function l(){var t=c(+new Date);return t!==n?(s=0,n=t):t+"."+c(s++)}for(;a<r;a++)o[i[a]]=a;l.encode=c,l.decode=function(t){var e=0;for(a=0;a<t.length;a++)e=e*r+o[t.charAt(a)];return e},t.exports=l},function(t,e,n){(function(e){var i=n(27),r=n(39);t.exports=l;var o,s=/\n/g,a=/\\n/g;function c(){}function l(t){i.call(this,t),this.query=this.query||{},o||(e.___eio||(e.___eio=[]),o=e.___eio),this.index=o.length;var n=this;o.push((function(t){n.onData(t)})),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",(function(){n.script&&(n.script.onerror=c)}),!1)}r(l,i),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),i.prototype.doClose.call(this)},l.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},l.prototype.doWrite=function(t,e){var n=this;if(!this.form){var i,r=document.createElement("form"),o=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=c,r.method="POST",r.setAttribute("accept-charset","utf-8"),o.name="d",r.appendChild(o),document.body.appendChild(r),this.form=r,this.area=o}function l(){u(),e()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+n.iframeId+'">';i=document.createElement(t)}catch(t){(i=document.createElement("iframe")).name=n.iframeId,i.src="javascript:0"}i.id=n.iframeId,n.form.appendChild(i),n.iframe=i}this.form.action=this.uri(),u(),t=t.replace(a,"\\\n"),this.area.value=t.replace(s,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&l()}:this.iframe.onload=l}}).call(e,function(){return this}())},function(t,e,n){(function(e){var i,r=n(28),o=n(29),s=n(38),a=n(39),c=n(40),l=n(4)("engine.io-client:websocket"),u=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{i=n(43)}catch(t){}var h=u;function p(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=u&&!t.forceNode,this.usingBrowserWebSocket||(h=i),r.call(this,t)}h||"undefined"!=typeof window||(h=i),t.exports=p,a(p,r),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e={agent:this.agent,perMessageDeflate:this.perMessageDeflate};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(e.headers=this.extraHeaders),this.localAddress&&(e.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?new h(t):new h(t,void 0,e)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},p.prototype.write=function(t){var n=this;this.writable=!1;for(var i=t.length,r=0,s=i;r<s;r++)!function(t){o.encodePacket(t,n.supportsBinary,(function(r){if(!n.usingBrowserWebSocket){var o={};t.options&&(o.compress=t.options.compress),n.perMessageDeflate&&("string"==typeof r?e.Buffer.byteLength(r):r.length)<n.perMessageDeflate.threshold&&(o.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(r):n.ws.send(r,o)}catch(t){l("websocket closed before onclose event")}--i||(n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0))}))}(t[r])},p.prototype.onClose=function(){r.prototype.onClose.call(this)},p.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},p.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||(t.b64=1),(t=s.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},p.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===p.prototype.name)}}).call(e,function(){return this}())},function(t,e){},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}},function(t,e){(function(e){var n=/^[\],:{}\s]*$/,i=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,r=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,s=/^\s+/,a=/\s+$/;t.exports=function(t){return"string"==typeof t&&t?(t=t.replace(s,"").replace(a,""),e.JSON&&JSON.parse?JSON.parse(t):n.test(t.replace(i,"@").replace(r,"]").replace(o,""))?new Function("return "+t)():void 0):null}}).call(e,function(){return this}())},function(t,e,n){var i=n(8),r=n(37),o=n(47),s=n(48),a=n(49),c=n(4)("socket.io-client:socket"),l=n(31);t.exports=p;var u={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=r.prototype.emit;function p(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}r(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",a(this,"onopen")),s(t,"packet",a(this,"onpacket")),s(t,"close",a(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},p.prototype.send=function(){var t=o(arguments);return t.unshift("message"),this.emit.apply(this,t),this},p.prototype.emit=function(t){if(u.hasOwnProperty(t))return h.apply(this,arguments),this;var e=o(arguments),n=i.EVENT;l(e)&&(n=i.BINARY_EVENT);var r={type:n,data:e,options:{}};return r.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),delete this.flags,this},p.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},p.prototype.onopen=function(){c("transport is open - connecting"),"/"!==this.nsp&&(this.query?this.packet({type:i.CONNECT,query:this.query}):this.packet({type:i.CONNECT}))},p.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},p.prototype.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case i.CONNECT:this.onconnect();break;case i.EVENT:case i.BINARY_EVENT:this.onevent(t);break;case i.ACK:case i.BINARY_ACK:this.onack(t);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",t.data)}},p.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},p.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=o(arguments);c("sending ack %j",r);var s=l(r)?i.BINARY_ACK:i.ACK;e.packet({type:s,id:t,data:r})}}},p.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)h.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},function(t,e){t.exports=function(t,e){for(var n=[],i=(e=e||0)||0;i<t.length;i++)n[i-e]=t[i];return n}},function(t,e){t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var i=n.call(arguments,2);return function(){return e.apply(t,i.concat(n.call(arguments)))}}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){"use strict";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}}();function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(52),s=n(53),a=null,c=function(){function t(e,n){r(this,t),this._baseUrl=e,this._options=n,this._channelsPool={}}return i(t,[{key:"channel",value:function(t,e){return e=e||o.cloneDeep(this._options),this._channelsPool[t]=this._channelsPool[t]||new s(a,this._baseUrl,t,e),this._channelsPool[t]}}]),t}();t.exports=function t(e){return r(this,t),a=e,function(t,e){return new c(t,e)}}},function(t,e,n){var i;(function(t,r){(function(){var o,s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",p=1,f=2,d=4,g=1,v=2,m=1,y=2,_=4,b=8,x=16,w=32,k=64,S=128,C=256,T=512,A=30,N="...",M=800,D=16,E=1,O=2,j=1/0,R=9007199254740991,I=17976931348623157e292,P=NaN,$=4294967295,L=$-1,H=$>>>1,W=[["ary",S],["bind",m],["bindKey",y],["curry",b],["curryRight",x],["flip",T],["partial",w],["partialRight",k],["rearg",C]],q="[object Arguments]",F="[object Array]",B="[object AsyncFunction]",z="[object Boolean]",Y="[object Date]",U="[object DOMException]",X="[object Error]",V="[object Function]",G="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",K="[object Object]",tt="[object Proxy]",et="[object RegExp]",nt="[object Set]",it="[object String]",rt="[object Symbol]",ot="[object Undefined]",st="[object WeakMap]",at="[object WeakSet]",ct="[object ArrayBuffer]",lt="[object DataView]",ut="[object Float32Array]",ht="[object Float64Array]",pt="[object Int8Array]",ft="[object Int16Array]",dt="[object Int32Array]",gt="[object Uint8Array]",vt="[object Uint8ClampedArray]",mt="[object Uint16Array]",yt="[object Uint32Array]",_t=/\b__p \+= '';/g,bt=/\b(__p \+=) '' \+/g,xt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,St=RegExp(wt.source),Ct=RegExp(kt.source),Tt=/<%-([\s\S]+?)%>/g,At=/<%([\s\S]+?)%>/g,Nt=/<%=([\s\S]+?)%>/g,Mt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/,Et=/^\./,Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jt=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(jt.source),It=/^\s+|\s+$/g,Pt=/^\s+/,$t=/\s+$/,Lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ht=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/\\(\\)?/g,Bt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zt=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,Ut=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,Kt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",te="\\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",ee="[\\ud800-\\udfff]",ne="["+te+"]",ie="["+Kt+"]",re="\\d+",oe="[\\u2700-\\u27bf]",se="[a-z\\xdf-\\xf6\\xf8-\\xff]",ae="[^\\ud800-\\udfff"+te+re+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ce="\\ud83c[\\udffb-\\udfff]",le="[^\\ud800-\\udfff]",ue="(?:\\ud83c[\\udde6-\\uddff]){2}",he="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",fe="(?:"+se+"|"+ae+")",de="(?:"+pe+"|"+ae+")",ge="(?:"+ie+"|"+ce+")?",ve="[\\ufe0e\\ufe0f]?"+ge+"(?:\\u200d(?:"+[le,ue,he].join("|")+")[\\ufe0e\\ufe0f]?"+ge+")*",me="(?:"+[oe,ue,he].join("|")+")"+ve,ye="(?:"+[le+ie+"?",ie,ue,he,ee].join("|")+")",_e=RegExp("['’]","g"),be=RegExp(ie,"g"),xe=RegExp(ce+"(?="+ce+")|"+ye+ve,"g"),we=RegExp([pe+"?"+se+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ne,pe,"$"].join("|")+")",de+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ne,pe+fe,"$"].join("|")+")",pe+"?"+fe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",pe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",re,me].join("|"),"g"),ke=RegExp("[\\u200d\\ud800-\\udfff"+Kt+"\\ufe0e\\ufe0f]"),Se=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ce=["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"],Te=-1,Ae={};Ae[ut]=Ae[ht]=Ae[pt]=Ae[ft]=Ae[dt]=Ae[gt]=Ae[vt]=Ae[mt]=Ae[yt]=!0,Ae[q]=Ae[F]=Ae[ct]=Ae[z]=Ae[lt]=Ae[Y]=Ae[X]=Ae[V]=Ae[Q]=Ae[J]=Ae[K]=Ae[et]=Ae[nt]=Ae[it]=Ae[st]=!1;var Ne={};Ne[q]=Ne[F]=Ne[ct]=Ne[lt]=Ne[z]=Ne[Y]=Ne[ut]=Ne[ht]=Ne[pt]=Ne[ft]=Ne[dt]=Ne[Q]=Ne[J]=Ne[K]=Ne[et]=Ne[nt]=Ne[it]=Ne[rt]=Ne[gt]=Ne[vt]=Ne[mt]=Ne[yt]=!0,Ne[X]=Ne[V]=Ne[st]=!1;var Me={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},De=parseFloat,Ee=parseInt,Oe="object"==typeof t&&t&&t.Object===Object&&t,je="object"==typeof self&&self&&self.Object===Object&&self,Re=Oe||je||Function("return this")(),Ie="object"==typeof e&&e&&!e.nodeType&&e,Pe=Ie&&"object"==typeof r&&r&&!r.nodeType&&r,$e=Pe&&Pe.exports===Ie,Le=$e&&Oe.process,He=function(){try{return Le&&Le.binding&&Le.binding("util")}catch(t){}}(),We=He&&He.isArrayBuffer,qe=He&&He.isDate,Fe=He&&He.isMap,Be=He&&He.isRegExp,ze=He&&He.isSet,Ye=He&&He.isTypedArray;function Ue(t,e){return t.set(e[0],e[1]),t}function Xe(t,e){return t.add(e),t}function Ve(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 Ge(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var s=t[r];e(i,s,n(s),t)}return i}function Qe(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Je(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ze(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 Ke(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}function tn(t,e){return!(null==t||!t.length)&&hn(t,e,0)>-1}function en(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 nn(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 rn(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function on(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 sn(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 an(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var cn=gn("length");function ln(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i}function un(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function hn(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):un(t,fn,n)}function pn(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function fn(t){return t!=t}function dn(t,e){var n=null==t?0:t.length;return n?yn(t,e)/n:P}function gn(t){return function(e){return null==e?o:e[t]}}function vn(t){return function(e){return null==t?o:t[e]}}function mn(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}function yn(t,e){for(var n,i=-1,r=t.length;++i<r;){var s=e(t[i]);s!==o&&(n=n===o?s:n+s)}return n}function _n(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function bn(t){return function(e){return t(e)}}function xn(t,e){return nn(e,(function(e){return t[e]}))}function wn(t,e){return t.has(e)}function kn(t,e){for(var n=-1,i=t.length;++n<i&&hn(e,t[n],0)>-1;);return n}function Sn(t,e){for(var n=t.length;n--&&hn(e,t[n],0)>-1;);return n}var Cn=vn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Tn=vn({"&":"&","<":"<",">":">",'"':""","'":"'"});function An(t){return"\\"+Me[t]}function Nn(t){return ke.test(t)}function Mn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function Dn(t,e){return function(n){return t(e(n))}}function En(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n];s!==e&&s!==h||(t[n]=h,o[r++]=n)}return o}function On(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function jn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function Rn(t){return Nn(t)?function(t){for(var e=xe.lastIndex=0;xe.test(t);)++e;return e}(t):cn(t)}function In(t){return Nn(t)?function(t){return t.match(xe)||[]}(t):function(t){return t.split("")}(t)}var Pn=vn({"&":"&","<":"<",">":">",""":'"',"'":"'"}),$n=function t(e){var n,i=(e=null==e?Re:$n.defaults(Re.Object(),e,$n.pick(Re,Ce))).Array,r=e.Date,Kt=e.Error,te=e.Function,ee=e.Math,ne=e.Object,ie=e.RegExp,re=e.String,oe=e.TypeError,se=i.prototype,ae=te.prototype,ce=ne.prototype,le=e["__core-js_shared__"],ue=ae.toString,he=ce.hasOwnProperty,pe=0,fe=(n=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",de=ce.toString,ge=ue.call(ne),ve=Re._,me=ie("^"+ue.call(he).replace(jt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=$e?e.Buffer:o,xe=e.Symbol,ke=e.Uint8Array,Me=ye?ye.allocUnsafe:o,Oe=Dn(ne.getPrototypeOf,ne),je=ne.create,Ie=ce.propertyIsEnumerable,Pe=se.splice,Le=xe?xe.isConcatSpreadable:o,He=xe?xe.iterator:o,cn=xe?xe.toStringTag:o,vn=function(){try{var t=Wo(ne,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ln=e.clearTimeout!==Re.clearTimeout&&e.clearTimeout,Hn=r&&r.now!==Re.Date.now&&r.now,Wn=e.setTimeout!==Re.setTimeout&&e.setTimeout,qn=ee.ceil,Fn=ee.floor,Bn=ne.getOwnPropertySymbols,zn=ye?ye.isBuffer:o,Yn=e.isFinite,Un=se.join,Xn=Dn(ne.keys,ne),Vn=ee.max,Gn=ee.min,Qn=r.now,Jn=e.parseInt,Zn=ee.random,Kn=se.reverse,ti=Wo(e,"DataView"),ei=Wo(e,"Map"),ni=Wo(e,"Promise"),ii=Wo(e,"Set"),ri=Wo(e,"WeakMap"),oi=Wo(ne,"create"),si=ri&&new ri,ai={},ci=ps(ti),li=ps(ei),ui=ps(ni),hi=ps(ii),pi=ps(ri),fi=xe?xe.prototype:o,di=fi?fi.valueOf:o,gi=fi?fi.toString:o;function vi(t){if(Ma(t)&&!ya(t)&&!(t instanceof bi)){if(t instanceof _i)return t;if(he.call(t,"__wrapped__"))return fs(t)}return new _i(t)}var mi=function(){function t(){}return function(e){if(!Na(e))return{};if(je)return je(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function yi(){}function _i(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function bi(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function xi(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 wi(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 ki(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 Si(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ki;++e<n;)this.add(t[e])}function Ci(t){var e=this.__data__=new wi(t);this.size=e.size}function Ti(t,e){var n=ya(t),i=!n&&ma(t),r=!n&&!i&&wa(t),o=!n&&!i&&!r&&$a(t),s=n||i||r||o,a=s?_n(t.length,re):[],c=a.length;for(var l in t)!e&&!he.call(t,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Xo(l,c))||a.push(l);return a}function Ai(t){var e=t.length;return e?t[Cr(0,e-1)]:o}function Ni(t,e){return ls(so(t),Li(e,0,t.length))}function Mi(t){return ls(so(t))}function Di(t,e,n,i){return t===o||da(t,ce[n])&&!he.call(i,n)?e:t}function Ei(t,e,n){(n===o||da(t[e],n))&&(n!==o||e in t)||Pi(t,e,n)}function Oi(t,e,n){var i=t[e];he.call(t,e)&&da(i,n)&&(n!==o||e in t)||Pi(t,e,n)}function ji(t,e){for(var n=t.length;n--;)if(da(t[n][0],e))return n;return-1}function Ri(t,e,n,i){return Bi(t,(function(t,r,o){e(i,t,n(t),o)})),i}function Ii(t,e){return t&&ao(e,oc(e),t)}function Pi(t,e,n){"__proto__"==e&&vn?vn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function $i(t,e){for(var n=-1,r=e.length,s=i(r),a=null==t;++n<r;)s[n]=a?o:tc(t,e[n]);return s}function Li(t,e,n){return t==t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function Hi(t,e,n,i,r,s){var a,c=e&p,l=e&f,u=e&d;if(n&&(a=r?n(t,i,r,s):n(t)),a!==o)return a;if(!Na(t))return t;var h=ya(t);if(h){if(a=function(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&he.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!c)return so(t,a)}else{var g=Bo(t),v=g==V||g==G;if(wa(t))return to(t,c);if(g==K||g==q||v&&!r){if(a=l||v?{}:Yo(t),!c)return l?function(t,e){return ao(t,Fo(t),e)}(t,function(t,e){return t&&ao(e,sc(e),t)}(a,t)):function(t,e){return ao(t,qo(t),e)}(t,Ii(a,t))}else{if(!Ne[g])return r?t:{};a=function(t,e,n,i){var r,o=t.constructor;switch(e){case ct:return eo(t);case z:case Y:return new o(+t);case lt:return function(t,e){var n=e?eo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,i);case ut:case ht:case pt:case ft:case dt:case gt:case vt:case mt:case yt:return no(t,i);case Q:return function(t,e,n){return on(e?n(Mn(t),p):Mn(t),Ue,new t.constructor)}(t,i,n);case J:case it:return new o(t);case et:return function(t){var e=new t.constructor(t.source,zt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case nt:return function(t,e,n){return on(e?n(On(t),p):On(t),Xe,new t.constructor)}(t,i,n);case rt:return r=t,di?ne(di.call(r)):{}}}(t,g,Hi,c)}}s||(s=new Ci);var m=s.get(t);if(m)return m;s.set(t,a);var y=h?o:(u?l?jo:Oo:l?sc:oc)(t);return Qe(y||t,(function(i,r){y&&(i=t[r=i]),Oi(a,r,Hi(i,e,n,r,t,s))})),a}function Wi(t,e,n){var i=n.length;if(null==t)return!i;for(t=ne(t);i--;){var r=n[i],s=e[r],a=t[r];if(a===o&&!(r in t)||!s(a))return!1}return!0}function qi(t,e,n){if("function"!=typeof t)throw new oe(c);return os((function(){t.apply(o,n)}),e)}function Fi(t,e,n,i){var r=-1,o=tn,a=!0,c=t.length,l=[],u=e.length;if(!c)return l;n&&(e=nn(e,bn(n))),i?(o=en,a=!1):e.length>=s&&(o=wn,a=!1,e=new Si(e));t:for(;++r<c;){var h=t[r],p=null==n?h:n(h);if(h=i||0!==h?h:0,a&&p==p){for(var f=u;f--;)if(e[f]===p)continue t;l.push(h)}else o(e,p,i)||l.push(h)}return l}vi.templateSettings={escape:Tt,evaluate:At,interpolate:Nt,variable:"",imports:{_:vi}},vi.prototype=yi.prototype,vi.prototype.constructor=vi,_i.prototype=mi(yi.prototype),_i.prototype.constructor=_i,bi.prototype=mi(yi.prototype),bi.prototype.constructor=bi,xi.prototype.clear=function(){this.__data__=oi?oi(null):{},this.size=0},xi.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xi.prototype.get=function(t){var e=this.__data__;if(oi){var n=e[t];return n===l?o:n}return he.call(e,t)?e[t]:o},xi.prototype.has=function(t){var e=this.__data__;return oi?e[t]!==o:he.call(e,t)},xi.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=oi&&e===o?l:e,this},wi.prototype.clear=function(){this.__data__=[],this.size=0},wi.prototype.delete=function(t){var e=this.__data__,n=ji(e,t);return!(n<0||(n==e.length-1?e.pop():Pe.call(e,n,1),--this.size,0))},wi.prototype.get=function(t){var e=this.__data__,n=ji(e,t);return n<0?o:e[n][1]},wi.prototype.has=function(t){return ji(this.__data__,t)>-1},wi.prototype.set=function(t,e){var n=this.__data__,i=ji(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},ki.prototype.clear=function(){this.size=0,this.__data__={hash:new xi,map:new(ei||wi),string:new xi}},ki.prototype.delete=function(t){var e=Lo(this,t).delete(t);return this.size-=e?1:0,e},ki.prototype.get=function(t){return Lo(this,t).get(t)},ki.prototype.has=function(t){return Lo(this,t).has(t)},ki.prototype.set=function(t,e){var n=Lo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Si.prototype.add=Si.prototype.push=function(t){return this.__data__.set(t,l),this},Si.prototype.has=function(t){return this.__data__.has(t)},Ci.prototype.clear=function(){this.__data__=new wi,this.size=0},Ci.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ci.prototype.get=function(t){return this.__data__.get(t)},Ci.prototype.has=function(t){return this.__data__.has(t)},Ci.prototype.set=function(t,e){var n=this.__data__;if(n instanceof wi){var i=n.__data__;if(!ei||i.length<s-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new ki(i)}return n.set(t,e),this.size=n.size,this};var Bi=uo(Ji),zi=uo(Zi,!0);function Yi(t,e){var n=!0;return Bi(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function Ui(t,e,n){for(var i=-1,r=t.length;++i<r;){var s=t[i],a=e(s);if(null!=a&&(c===o?a==a&&!Pa(a):n(a,c)))var c=a,l=s}return l}function Xi(t,e){var n=[];return Bi(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function Vi(t,e,n,i,r){var o=-1,s=t.length;for(n||(n=Uo),r||(r=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?Vi(a,e-1,n,i,r):rn(r,a):i||(r[r.length]=a)}return r}var Gi=ho(),Qi=ho(!0);function Ji(t,e){return t&&Gi(t,e,oc)}function Zi(t,e){return t&&Qi(t,e,oc)}function Ki(t,e){return Ke(e,(function(e){return Ca(t[e])}))}function tr(t,e){for(var n=0,i=(e=Qr(e,t)).length;null!=t&&n<i;)t=t[hs(e[n++])];return n&&n==i?t:o}function er(t,e,n){var i=e(t);return ya(t)?i:rn(i,n(t))}function nr(t){return null==t?t===o?ot:Z:(t=ne(t),cn&&cn in t?function(t){var e=he.call(t,cn),n=t[cn];try{t[cn]=o;var i=!0}catch(t){}var r=de.call(t);return i&&(e?t[cn]=n:delete t[cn]),r}(t):function(t){return de.call(t)}(t))}function ir(t,e){return t>e}function rr(t,e){return null!=t&&he.call(t,e)}function or(t,e){return null!=t&&e in ne(t)}function sr(t,e,n){for(var r=n?en:tn,s=t[0].length,a=t.length,c=a,l=i(a),u=1/0,h=[];c--;){var p=t[c];c&&e&&(p=nn(p,bn(e))),u=Gn(p.length,u),l[c]=!n&&(e||s>=120&&p.length>=120)?new Si(c&&p):o}p=t[0];var f=-1,d=l[0];t:for(;++f<s&&h.length<u;){var g=p[f],v=e?e(g):g;if(g=n||0!==g?g:0,!(d?wn(d,v):r(h,v,n))){for(c=a;--c;){var m=l[c];if(!(m?wn(m,v):r(t[c],v,n)))continue t}d&&d.push(v),h.push(g)}}return h}function ar(t,e,n){var i=null==(t=is(t,e=Qr(e,t)))?t:t[hs(Ss(e))];return null==i?o:Ve(i,t,n)}function cr(t){return Ma(t)&&nr(t)==q}function lr(t,e,n,i,r){return t===e||(null==t||null==e||!Na(t)&&!Ma(e)?t!=t&&e!=e:function(t,e,n,i,r,s){var a=ya(t),c=ya(e),l=F,u=F;a||(l=(l=Bo(t))==q?K:l),c||(u=(u=Bo(e))==q?K:u);var h=l==K,p=u==K,f=l==u;if(f&&wa(t)){if(!wa(e))return!1;a=!0,h=!1}if(f&&!h)return s||(s=new Ci),a||$a(t)?Do(t,e,n,i,r,s):function(t,e,n,i,r,o,s){switch(n){case lt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ct:return!(t.byteLength!=e.byteLength||!o(new ke(t),new ke(e)));case z:case Y:case J:return da(+t,+e);case X:return t.name==e.name&&t.message==e.message;case et:case it:return t==e+"";case Q:var a=Mn;case nt:var c=i&g;if(a||(a=On),t.size!=e.size&&!c)return!1;var l=s.get(t);if(l)return l==e;i|=v,s.set(t,e);var u=Do(a(t),a(e),i,r,o,s);return s.delete(t),u;case rt:if(di)return di.call(t)==di.call(e)}return!1}(t,e,l,n,i,r,s);if(!(n&g)){var d=h&&he.call(t,"__wrapped__"),m=p&&he.call(e,"__wrapped__");if(d||m){var y=d?t.value():t,_=m?e.value():e;return s||(s=new Ci),r(y,_,n,i,s)}}return!!f&&(s||(s=new Ci),function(t,e,n,i,r,s){var a=n&g,c=oc(t),l=c.length,u=oc(e).length;if(l!=u&&!a)return!1;for(var h=l;h--;){var p=c[h];if(!(a?p in e:he.call(e,p)))return!1}var f=s.get(t);if(f&&s.get(e))return f==e;var d=!0;s.set(t,e),s.set(e,t);for(var v=a;++h<l;){p=c[h];var m=t[p],y=e[p];if(i)var _=a?i(y,m,p,e,t,s):i(m,y,p,t,e,s);if(!(_===o?m===y||r(m,y,n,i,s):_)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var b=t.constructor,x=e.constructor;b!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(d=!1)}return s.delete(t),s.delete(e),d}(t,e,n,i,r,s))}(t,e,n,i,lr,r))}function ur(t,e,n,i){var r=n.length,s=r,a=!i;if(null==t)return!s;for(t=ne(t);r--;){var c=n[r];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++r<s;){var l=(c=n[r])[0],u=t[l],h=c[1];if(a&&c[2]){if(u===o&&!(l in t))return!1}else{var p=new Ci;if(i)var f=i(u,h,l,t,e,p);if(!(f===o?lr(h,u,g|v,i,p):f))return!1}}return!0}function hr(t){return!(!Na(t)||(e=t,fe&&fe in e))&&(Ca(t)?me:Xt).test(ps(t));var e}function pr(t){return"function"==typeof t?t:null==t?Ec:"object"==typeof t?ya(t)?yr(t[0],t[1]):mr(t):Wc(t)}function fr(t){if(!Zo(t))return Xn(t);var e=[];for(var n in ne(t))he.call(t,n)&&"constructor"!=n&&e.push(n);return e}function dr(t){if(!Na(t))return function(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}(t);var e=Zo(t),n=[];for(var i in t)("constructor"!=i||!e&&he.call(t,i))&&n.push(i);return n}function gr(t,e){return t<e}function vr(t,e){var n=-1,r=ba(t)?i(t.length):[];return Bi(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function mr(t){var e=Ho(t);return 1==e.length&&e[0][2]?ts(e[0][0],e[0][1]):function(n){return n===t||ur(n,t,e)}}function yr(t,e){return Go(t)&&Ko(e)?ts(hs(t),e):function(n){var i=tc(n,t);return i===o&&i===e?ec(n,t):lr(e,i,g|v)}}function _r(t,e,n,i,r){t!==e&&Gi(e,(function(s,a){if(Na(s))r||(r=new Ci),function(t,e,n,i,r,s,a){var c=t[n],l=e[n],u=a.get(l);if(u)Ei(t,n,u);else{var h=s?s(c,l,n+"",t,e,a):o,p=h===o;if(p){var f=ya(l),d=!f&&wa(l),g=!f&&!d&&$a(l);h=l,f||d||g?ya(c)?h=c:xa(c)?h=so(c):d?(p=!1,h=to(l,!0)):g?(p=!1,h=no(l,!0)):h=[]:Oa(l)||ma(l)?(h=c,ma(c)?h=Ya(c):(!Na(c)||i&&Ca(c))&&(h=Yo(l))):p=!1}p&&(a.set(l,h),r(h,l,i,s,a),a.delete(l)),Ei(t,n,h)}}(t,e,a,n,_r,i,r);else{var c=i?i(t[a],s,a+"",t,e,r):o;c===o&&(c=s),Ei(t,a,c)}}),sc)}function br(t,e){var n=t.length;if(n)return Xo(e+=e<0?n:0,n)?t[e]:o}function xr(t,e,n){var i=-1;return e=nn(e.length?e:[Ec],bn($o())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(vr(t,(function(t,n,r){return{criteria:nn(e,(function(e){return e(t)})),index:++i,value:t}})),(function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;++i<s;){var c=io(r[i],o[i]);if(c){if(i>=a)return c;var l=n[i];return c*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function wr(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=tr(t,s);n(a,s)&&Dr(o,Qr(s,t),a)}return o}function kr(t,e,n,i){var r=i?pn:hn,o=-1,s=e.length,a=t;for(t===e&&(e=so(e)),n&&(a=nn(t,bn(n)));++o<s;)for(var c=0,l=e[o],u=n?n(l):l;(c=r(a,u,c,i))>-1;)a!==t&&Pe.call(a,c,1),Pe.call(t,c,1);return t}function Sr(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;Xo(r)?Pe.call(t,r,1):Fr(t,r)}}return t}function Cr(t,e){return t+Fn(Zn()*(e-t+1))}function Tr(t,e){var n="";if(!t||e<1||e>R)return n;do{e%2&&(n+=t),(e=Fn(e/2))&&(t+=t)}while(e);return n}function Ar(t,e){return ss(ns(t,e,Ec),t+"")}function Nr(t){return Ai(dc(t))}function Mr(t,e){var n=dc(t);return ls(n,Li(e,0,n.length))}function Dr(t,e,n,i){if(!Na(t))return t;for(var r=-1,s=(e=Qr(e,t)).length,a=s-1,c=t;null!=c&&++r<s;){var l=hs(e[r]),u=n;if(r!=a){var h=c[l];(u=i?i(h,l,c):o)===o&&(u=Na(h)?h:Xo(e[r+1])?[]:{})}Oi(c,l,u),c=c[l]}return t}var Er=si?function(t,e){return si.set(t,e),t}:Ec,Or=vn?function(t,e){return vn(t,"toString",{configurable:!0,enumerable:!1,value:Nc(e),writable:!0})}:Ec;function jr(t){return ls(dc(t))}function Rr(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=i(o);++r<o;)s[r]=t[r+e];return s}function Ir(t,e){var n;return Bi(t,(function(t,i,r){return!(n=e(t,i,r))})),!!n}function Pr(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=H){for(;i<r;){var o=i+r>>>1,s=t[o];null!==s&&!Pa(s)&&(n?s<=e:s<e)?i=o+1:r=o}return r}return $r(t,e,Ec,n)}function $r(t,e,n,i){e=n(e);for(var r=0,s=null==t?0:t.length,a=e!=e,c=null===e,l=Pa(e),u=e===o;r<s;){var h=Fn((r+s)/2),p=n(t[h]),f=p!==o,d=null===p,g=p==p,v=Pa(p);if(a)var m=i||g;else m=u?g&&(i||f):c?g&&f&&(i||!d):l?g&&f&&!d&&(i||!v):!d&&!v&&(i?p<=e:p<e);m?r=h+1:s=h}return Gn(s,L)}function Lr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!da(a,c)){var c=a;o[r++]=0===s?0:s}}return o}function Hr(t){return"number"==typeof t?t:Pa(t)?P:+t}function Wr(t){if("string"==typeof t)return t;if(ya(t))return nn(t,Wr)+"";if(Pa(t))return gi?gi.call(t):"";var e=t+"";return"0"==e&&1/t==-j?"-0":e}function qr(t,e,n){var i=-1,r=tn,o=t.length,a=!0,c=[],l=c;if(n)a=!1,r=en;else if(o>=s){var u=e?null:Ao(t);if(u)return On(u);a=!1,r=wn,l=new Si}else l=e?[]:c;t:for(;++i<o;){var h=t[i],p=e?e(h):h;if(h=n||0!==h?h:0,a&&p==p){for(var f=l.length;f--;)if(l[f]===p)continue t;e&&l.push(p),c.push(h)}else r(l,p,n)||(l!==c&&l.push(p),c.push(h))}return c}function Fr(t,e){return null==(t=is(t,e=Qr(e,t)))||delete t[hs(Ss(e))]}function Br(t,e,n,i){return Dr(t,e,n(tr(t,e)),i)}function zr(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?Rr(t,i?0:o,i?o+1:r):Rr(t,i?o+1:0,i?r:o)}function Yr(t,e){var n=t;return n instanceof bi&&(n=n.value()),on(e,(function(t,e){return e.func.apply(e.thisArg,rn([t],e.args))}),n)}function Ur(t,e,n){var r=t.length;if(r<2)return r?qr(t[0]):[];for(var o=-1,s=i(r);++o<r;)for(var a=t[o],c=-1;++c<r;)c!=o&&(s[o]=Fi(s[o]||a,t[c],e,n));return qr(Vi(s,1),e,n)}function Xr(t,e,n){for(var i=-1,r=t.length,s=e.length,a={};++i<r;){var c=i<s?e[i]:o;n(a,t[i],c)}return a}function Vr(t){return xa(t)?t:[]}function Gr(t){return"function"==typeof t?t:Ec}function Qr(t,e){return ya(t)?t:Go(t,e)?[t]:us(Ua(t))}var Jr=Ar;function Zr(t,e,n){var i=t.length;return n=n===o?i:n,!e&&n>=i?t:Rr(t,e,n)}var Kr=Ln||function(t){return Re.clearTimeout(t)};function to(t,e){if(e)return t.slice();var n=t.length,i=Me?Me(n):new t.constructor(n);return t.copy(i),i}function eo(t){var e=new t.constructor(t.byteLength);return new ke(e).set(new ke(t)),e}function no(t,e){var n=e?eo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function io(t,e){if(t!==e){var n=t!==o,i=null===t,r=t==t,s=Pa(t),a=e!==o,c=null===e,l=e==e,u=Pa(e);if(!c&&!u&&!s&&t>e||s&&a&&l&&!c&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!s&&!u&&t<e||u&&n&&r&&!i&&!s||c&&n&&r||!a&&r||!l)return-1}return 0}function ro(t,e,n,r){for(var o=-1,s=t.length,a=n.length,c=-1,l=e.length,u=Vn(s-a,0),h=i(l+u),p=!r;++c<l;)h[c]=e[c];for(;++o<a;)(p||o<s)&&(h[n[o]]=t[o]);for(;u--;)h[c++]=t[o++];return h}function oo(t,e,n,r){for(var o=-1,s=t.length,a=-1,c=n.length,l=-1,u=e.length,h=Vn(s-c,0),p=i(h+u),f=!r;++o<h;)p[o]=t[o];for(var d=o;++l<u;)p[d+l]=e[l];for(;++a<c;)(f||o<s)&&(p[d+n[a]]=t[o++]);return p}function so(t,e){var n=-1,r=t.length;for(e||(e=i(r));++n<r;)e[n]=t[n];return e}function ao(t,e,n,i){var r=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var c=e[s],l=i?i(n[c],t[c],c,n,t):o;l===o&&(l=t[c]),r?Pi(n,c,l):Oi(n,c,l)}return n}function co(t,e){return function(n,i){var r=ya(n)?Ge:Ri,o=e?e():{};return r(n,t,$o(i,2),o)}}function lo(t){return Ar((function(e,n){var i=-1,r=n.length,s=r>1?n[r-1]:o,a=r>2?n[2]:o;for(s=t.length>3&&"function"==typeof s?(r--,s):o,a&&Vo(n[0],n[1],a)&&(s=r<3?o:s,r=1),e=ne(e);++i<r;){var c=n[i];c&&t(e,c,i,s)}return e}))}function uo(t,e){return function(n,i){if(null==n)return n;if(!ba(n))return t(n,i);for(var r=n.length,o=e?r:-1,s=ne(n);(e?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function ho(t){return function(e,n,i){for(var r=-1,o=ne(e),s=i(e),a=s.length;a--;){var c=s[t?a:++r];if(!1===n(o[c],c,o))break}return e}}function po(t){return function(e){var n=Nn(e=Ua(e))?In(e):o,i=n?n[0]:e.charAt(0),r=n?Zr(n,1).join(""):e.slice(1);return i[t]()+r}}function fo(t){return function(e){return on(Cc(mc(e).replace(_e,"")),t,"")}}function go(t){return function(){var e=arguments;switch(e.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 n=mi(t.prototype),i=t.apply(n,e);return Na(i)?i:n}}function vo(t){return function(e,n,i){var r=ne(e);if(!ba(e)){var s=$o(n,3);e=oc(e),n=function(t){return s(r[t],t,r)}}var a=t(e,n,i);return a>-1?r[s?e[a]:a]:o}}function mo(t){return Eo((function(e){var n=e.length,i=n,r=_i.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new oe(c);if(r&&!l&&"wrapper"==Io(a))var l=new _i([],!0)}for(i=l?i:n;++i<n;){var u=Io(a=e[i]),h="wrapper"==u?Ro(a):o;l=h&&Qo(h[0])&&h[1]==(S|b|w|C)&&!h[4].length&&1==h[9]?l[Io(h[0])].apply(l,h[3]):1==a.length&&Qo(a)?l[u]():l.thru(a)}return function(){var t=arguments,i=t[0];if(l&&1==t.length&&ya(i)&&i.length>=s)return l.plant(i).value();for(var r=0,o=n?e[r].apply(this,t):i;++r<n;)o=e[r].call(this,o);return o}}))}function yo(t,e,n,r,s,a,c,l,u,h){var p=e&S,f=e&m,d=e&y,g=e&(b|x),v=e&T,_=d?o:go(t);return function m(){for(var y=arguments.length,b=i(y),x=y;x--;)b[x]=arguments[x];if(g)var w=Po(m),k=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(b,w);if(r&&(b=ro(b,r,s,g)),a&&(b=oo(b,a,c,g)),y-=k,g&&y<h){var S=En(b,w);return Co(t,e,yo,m.placeholder,n,b,S,l,u,h-y)}var C=f?n:this,T=d?C[t]:t;return y=b.length,l?b=function(t,e){for(var n=t.length,i=Gn(e.length,n),r=so(t);i--;){var s=e[i];t[i]=Xo(s,n)?r[s]:o}return t}(b,l):v&&y>1&&b.reverse(),p&&u<y&&(b.length=u),this&&this!==Re&&this instanceof m&&(T=_||go(T)),T.apply(C,b)}}function _o(t,e){return function(n,i){return function(t,e,n,i){return Ji(t,(function(t,r,o){e(i,n(t),r,o)})),i}(n,t,e(i),{})}}function bo(t,e){return function(n,i){var r;if(n===o&&i===o)return e;if(n!==o&&(r=n),i!==o){if(r===o)return i;"string"==typeof n||"string"==typeof i?(n=Wr(n),i=Wr(i)):(n=Hr(n),i=Hr(i)),r=t(n,i)}return r}}function xo(t){return Eo((function(e){return e=nn(e,bn($o())),Ar((function(n){var i=this;return t(e,(function(t){return Ve(t,i,n)}))}))}))}function wo(t,e){var n=(e=e===o?" ":Wr(e)).length;if(n<2)return n?Tr(e,t):e;var i=Tr(e,qn(t/Rn(e)));return Nn(e)?Zr(In(i),0,t).join(""):i.slice(0,t)}function ko(t){return function(e,n,r){return r&&"number"!=typeof r&&Vo(e,n,r)&&(n=r=o),e=qa(e),n===o?(n=e,e=0):n=qa(n),function(t,e,n,r){for(var o=-1,s=Vn(qn((e-t)/(n||1)),0),a=i(s);s--;)a[r?s:++o]=t,t+=n;return a}(e,n,r=r===o?e<n?1:-1:qa(r),t)}}function So(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=za(e),n=za(n)),t(e,n)}}function Co(t,e,n,i,r,s,a,c,l,u){var h=e&b;e|=h?w:k,(e&=~(h?k:w))&_||(e&=~(m|y));var p=[t,e,r,h?s:o,h?a:o,h?o:s,h?o:a,c,l,u],f=n.apply(o,p);return Qo(t)&&rs(f,p),f.placeholder=i,as(f,t,e)}function To(t){var e=ee[t];return function(t,n){if(t=za(t),n=Gn(Fa(n),292)){var i=(Ua(t)+"e").split("e");return+((i=(Ua(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Ao=ii&&1/On(new ii([,-0]))[1]==j?function(t){return new ii(t)}:Pc;function No(t){return function(e){var n=Bo(e);return n==Q?Mn(e):n==nt?jn(e):function(t,e){return nn(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Mo(t,e,n,r,s,a,l,u){var p=e&y;if(!p&&"function"!=typeof t)throw new oe(c);var f=r?r.length:0;if(f||(e&=~(w|k),r=s=o),l=l===o?l:Vn(Fa(l),0),u=u===o?u:Fa(u),f-=s?s.length:0,e&k){var d=r,g=s;r=s=o}var v=p?o:Ro(t),T=[t,e,n,r,s,d,g,a,l,u];if(v&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<(m|y|S),s=i==S&&n==b||i==S&&n==C&&t[7].length<=e[8]||i==(S|C)&&e[7].length<=e[8]&&n==b;if(!o&&!s)return t;i&m&&(t[2]=e[2],r|=n&m?0:_);var a=e[3];if(a){var c=t[3];t[3]=c?ro(c,a,e[4]):a,t[4]=c?En(t[3],h):e[4]}(a=e[5])&&(c=t[5],t[5]=c?oo(c,a,e[6]):a,t[6]=c?En(t[5],h):e[6]),(a=e[7])&&(t[7]=a),i&S&&(t[8]=null==t[8]?e[8]:Gn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}(T,v),t=T[0],e=T[1],n=T[2],r=T[3],s=T[4],!(u=T[9]=null==T[9]?p?0:t.length:Vn(T[9]-f,0))&&e&(b|x)&&(e&=~(b|x)),e&&e!=m)A=e==b||e==x?function(t,e,n){var r=go(t);return function s(){for(var a=arguments.length,c=i(a),l=a,u=Po(s);l--;)c[l]=arguments[l];var h=a<3&&c[0]!==u&&c[a-1]!==u?[]:En(c,u);return(a-=h.length)<n?Co(t,e,yo,s.placeholder,o,c,h,o,o,n-a):Ve(this&&this!==Re&&this instanceof s?r:t,this,c)}}(t,e,u):e!=w&&e!=(m|w)||s.length?yo.apply(o,T):function(t,e,n,r){var o=e&m,s=go(t);return function e(){for(var a=-1,c=arguments.length,l=-1,u=r.length,h=i(u+c),p=this&&this!==Re&&this instanceof e?s:t;++l<u;)h[l]=r[l];for(;c--;)h[l++]=arguments[++a];return Ve(p,o?n:this,h)}}(t,e,n,r);else var A=function(t,e,n){var i=e&m,r=go(t);return function e(){return(this&&this!==Re&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,n);return as((v?Er:rs)(A,T),t,e)}function Do(t,e,n,i,r,s){var a=n&g,c=t.length,l=e.length;if(c!=l&&!(a&&l>c))return!1;var u=s.get(t);if(u&&s.get(e))return u==e;var h=-1,p=!0,f=n&v?new Si:o;for(s.set(t,e),s.set(e,t);++h<c;){var d=t[h],m=e[h];if(i)var y=a?i(m,d,h,e,t,s):i(d,m,h,t,e,s);if(y!==o){if(y)continue;p=!1;break}if(f){if(!an(e,(function(t,e){if(!wn(f,e)&&(d===t||r(d,t,n,i,s)))return f.push(e)}))){p=!1;break}}else if(d!==m&&!r(d,m,n,i,s)){p=!1;break}}return s.delete(t),s.delete(e),p}function Eo(t){return ss(ns(t,o,_s),t+"")}function Oo(t){return er(t,oc,qo)}function jo(t){return er(t,sc,Fo)}var Ro=si?function(t){return si.get(t)}:Pc;function Io(t){for(var e=t.name+"",n=ai[e],i=he.call(ai,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function Po(t){return(he.call(vi,"placeholder")?vi:t).placeholder}function $o(){var t=vi.iteratee||Oc;return t=t===Oc?pr:t,arguments.length?t(arguments[0],arguments[1]):t}function Lo(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Ho(t){for(var e=oc(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,Ko(r)]}return e}function Wo(t,e){var n=function(t,e){return null==t?o:t[e]}(t,e);return hr(n)?n:o}var qo=Bn?Dn(Bn,ne):Bc,Fo=Bn?function(t){for(var e=[];t;)rn(e,qo(t)),t=Oe(t);return e}:Bc,Bo=nr;function zo(t,e,n){for(var i=-1,r=(e=Qr(e,t)).length,o=!1;++i<r;){var s=hs(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Aa(r)&&Xo(s,r)&&(ya(t)||ma(t))}function Yo(t){return"function"!=typeof t.constructor||Zo(t)?{}:mi(Oe(t))}function Uo(t){return ya(t)||ma(t)||!!(Le&&t&&t[Le])}function Xo(t,e){return!!(e=null==e?R:e)&&("number"==typeof t||Gt.test(t))&&t>-1&&t%1==0&&t<e}function Vo(t,e,n){if(!Na(n))return!1;var i=typeof e;return!!("number"==i?ba(n)&&Xo(e,n.length):"string"==i&&e in n)&&da(n[e],t)}function Go(t,e){if(ya(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Pa(t))||Dt.test(t)||!Mt.test(t)||null!=e&&t in ne(e)}function Qo(t){var e=Io(t),n=vi[e];if("function"!=typeof n||!(e in bi.prototype))return!1;if(t===n)return!0;var i=Ro(n);return!!i&&t===i[0]}(ti&&Bo(new ti(new ArrayBuffer(1)))!=lt||ei&&Bo(new ei)!=Q||ni&&"[object Promise]"!=Bo(ni.resolve())||ii&&Bo(new ii)!=nt||ri&&Bo(new ri)!=st)&&(Bo=function(t){var e=nr(t),n=e==K?t.constructor:o,i=n?ps(n):"";if(i)switch(i){case ci:return lt;case li:return Q;case ui:return"[object Promise]";case hi:return nt;case pi:return st}return e});var Jo=le?Ca:zc;function Zo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ce)}function Ko(t){return t==t&&!Na(t)}function ts(t,e){return function(n){return null!=n&&n[t]===e&&(e!==o||t in ne(n))}}function es(t,e,n,i,r,s){return Na(t)&&Na(e)&&(s.set(e,t),_r(t,e,o,es,s),s.delete(e)),t}function ns(t,e,n){return e=Vn(e===o?t.length-1:e,0),function(){for(var r=arguments,o=-1,s=Vn(r.length-e,0),a=i(s);++o<s;)a[o]=r[e+o];o=-1;for(var c=i(e+1);++o<e;)c[o]=r[o];return c[e]=n(a),Ve(t,this,c)}}function is(t,e){return e.length<2?t:tr(t,Rr(e,0,-1))}var rs=cs(Er),os=Wn||function(t,e){return Re.setTimeout(t,e)},ss=cs(Or);function as(t,e,n){var i=e+"";return ss(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(Lt,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Qe(W,(function(n){var i="_."+n[0];e&n[1]&&!tn(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(Ht);return e?e[1].split(Wt):[]}(i),n)))}function cs(t){var e=0,n=0;return function(){var i=Qn(),r=D-(i-n);if(n=i,r>0){if(++e>=M)return arguments[0]}else e=0;return t.apply(o,arguments)}}function ls(t,e){var n=-1,i=t.length,r=i-1;for(e=e===o?i:e;++n<e;){var s=Cr(n,r),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var us=function(t){var e=ca(t,(function(t){return n.size===u&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return Et.test(t)&&e.push(""),t.replace(Ot,(function(t,n,i,r){e.push(i?r.replace(Ft,"$1"):n||t)})),e}));function hs(t){if("string"==typeof t||Pa(t))return t;var e=t+"";return"0"==e&&1/t==-j?"-0":e}function ps(t){if(null!=t){try{return ue.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function fs(t){if(t instanceof bi)return t.clone();var e=new _i(t.__wrapped__,t.__chain__);return e.__actions__=so(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var ds=Ar((function(t,e){return xa(t)?Fi(t,Vi(e,1,xa,!0)):[]})),gs=Ar((function(t,e){var n=Ss(e);return xa(n)&&(n=o),xa(t)?Fi(t,Vi(e,1,xa,!0),$o(n,2)):[]})),vs=Ar((function(t,e){var n=Ss(e);return xa(n)&&(n=o),xa(t)?Fi(t,Vi(e,1,xa,!0),o,n):[]}));function ms(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Fa(n);return r<0&&(r=Vn(i+r,0)),un(t,$o(e,3),r)}function ys(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return n!==o&&(r=Fa(n),r=n<0?Vn(i+r,0):Gn(r,i-1)),un(t,$o(e,3),r,!0)}function _s(t){return null!=t&&t.length?Vi(t,1):[]}function bs(t){return t&&t.length?t[0]:o}var xs=Ar((function(t){var e=nn(t,Vr);return e.length&&e[0]===t[0]?sr(e):[]})),ws=Ar((function(t){var e=Ss(t),n=nn(t,Vr);return e===Ss(n)?e=o:n.pop(),n.length&&n[0]===t[0]?sr(n,$o(e,2)):[]})),ks=Ar((function(t){var e=Ss(t),n=nn(t,Vr);return(e="function"==typeof e?e:o)&&n.pop(),n.length&&n[0]===t[0]?sr(n,o,e):[]}));function Ss(t){var e=null==t?0:t.length;return e?t[e-1]:o}var Cs=Ar(Ts);function Ts(t,e){return t&&t.length&&e&&e.length?kr(t,e):t}var As=Eo((function(t,e){var n=null==t?0:t.length,i=$i(t,e);return Sr(t,nn(e,(function(t){return Xo(t,n)?+t:t})).sort(io)),i}));function Ns(t){return null==t?t:Kn.call(t)}var Ms=Ar((function(t){return qr(Vi(t,1,xa,!0))})),Ds=Ar((function(t){var e=Ss(t);return xa(e)&&(e=o),qr(Vi(t,1,xa,!0),$o(e,2))})),Es=Ar((function(t){var e=Ss(t);return e="function"==typeof e?e:o,qr(Vi(t,1,xa,!0),o,e)}));function Os(t){if(!t||!t.length)return[];var e=0;return t=Ke(t,(function(t){if(xa(t))return e=Vn(t.length,e),!0})),_n(e,(function(e){return nn(t,gn(e))}))}function js(t,e){if(!t||!t.length)return[];var n=Os(t);return null==e?n:nn(n,(function(t){return Ve(e,o,t)}))}var Rs=Ar((function(t,e){return xa(t)?Fi(t,e):[]})),Is=Ar((function(t){return Ur(Ke(t,xa))})),Ps=Ar((function(t){var e=Ss(t);return xa(e)&&(e=o),Ur(Ke(t,xa),$o(e,2))})),$s=Ar((function(t){var e=Ss(t);return e="function"==typeof e?e:o,Ur(Ke(t,xa),o,e)})),Ls=Ar(Os),Hs=Ar((function(t){var e=t.length,n=e>1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,js(t,n)}));function Ws(t){var e=vi(t);return e.__chain__=!0,e}function qs(t,e){return e(t)}var Fs=Eo((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,r=function(e){return $i(e,t)};return!(e>1||this.__actions__.length)&&i instanceof bi&&Xo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:qs,args:[r],thisArg:o}),new _i(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(r)})),Bs=co((function(t,e,n){he.call(t,n)?++t[n]:Pi(t,n,1)})),zs=vo(ms),Ys=vo(ys);function Us(t,e){return(ya(t)?Qe:Bi)(t,$o(e,3))}function Xs(t,e){return(ya(t)?Je:zi)(t,$o(e,3))}var Vs=co((function(t,e,n){he.call(t,n)?t[n].push(e):Pi(t,n,[e])})),Gs=Ar((function(t,e,n){var r=-1,o="function"==typeof e,s=ba(t)?i(t.length):[];return Bi(t,(function(t){s[++r]=o?Ve(e,t,n):ar(t,e,n)})),s})),Qs=co((function(t,e,n){Pi(t,n,e)}));function Js(t,e){return(ya(t)?nn:vr)(t,$o(e,3))}var Zs=co((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Ks=Ar((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Vo(t,e[0],e[1])?e=[]:n>2&&Vo(e[0],e[1],e[2])&&(e=[e[0]]),xr(t,Vi(e,1),[])})),ta=Hn||function(){return Re.Date.now()};function ea(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,Mo(t,S,o,o,o,o,e)}function na(t,e){var n;if("function"!=typeof e)throw new oe(c);return t=Fa(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var ia=Ar((function(t,e,n){var i=m;if(n.length){var r=En(n,Po(ia));i|=w}return Mo(t,i,e,n,r)})),ra=Ar((function(t,e,n){var i=m|y;if(n.length){var r=En(n,Po(ra));i|=w}return Mo(e,i,t,n,r)}));function oa(t,e,n){var i,r,s,a,l,u,h=0,p=!1,f=!1,d=!0;if("function"!=typeof t)throw new oe(c);function g(e){var n=i,s=r;return i=r=o,h=e,a=t.apply(s,n)}function v(t){var n=t-u;return u===o||n>=e||n<0||f&&t-h>=s}function m(){var t=ta();if(v(t))return y(t);l=os(m,function(t){var n=e-(t-u);return f?Gn(n,s-(t-h)):n}(t))}function y(t){return l=o,d&&i?g(t):(i=r=o,a)}function _(){var t=ta(),n=v(t);if(i=arguments,r=this,u=t,n){if(l===o)return function(t){return h=t,l=os(m,e),p?g(t):a}(u);if(f)return l=os(m,e),g(u)}return l===o&&(l=os(m,e)),a}return e=za(e)||0,Na(n)&&(p=!!n.leading,s=(f="maxWait"in n)?Vn(za(n.maxWait)||0,e):s,d="trailing"in n?!!n.trailing:d),_.cancel=function(){l!==o&&Kr(l),h=0,i=u=r=l=o},_.flush=function(){return l===o?a:y(ta())},_}var sa=Ar((function(t,e){return qi(t,1,e)})),aa=Ar((function(t,e,n){return qi(t,za(e)||0,n)}));function ca(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(c);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(ca.Cache||ki),n}function la(t){if("function"!=typeof t)throw new oe(c);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)}}ca.Cache=ki;var ua=Jr((function(t,e){var n=(e=1==e.length&&ya(e[0])?nn(e[0],bn($o())):nn(Vi(e,1),bn($o()))).length;return Ar((function(i){for(var r=-1,o=Gn(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return Ve(t,this,i)}))})),ha=Ar((function(t,e){var n=En(e,Po(ha));return Mo(t,w,o,e,n)})),pa=Ar((function(t,e){var n=En(e,Po(pa));return Mo(t,k,o,e,n)})),fa=Eo((function(t,e){return Mo(t,C,o,o,o,e)}));function da(t,e){return t===e||t!=t&&e!=e}var ga=So(ir),va=So((function(t,e){return t>=e})),ma=cr(function(){return arguments}())?cr:function(t){return Ma(t)&&he.call(t,"callee")&&!Ie.call(t,"callee")},ya=i.isArray,_a=We?bn(We):function(t){return Ma(t)&&nr(t)==ct};function ba(t){return null!=t&&Aa(t.length)&&!Ca(t)}function xa(t){return Ma(t)&&ba(t)}var wa=zn||zc,ka=qe?bn(qe):function(t){return Ma(t)&&nr(t)==Y};function Sa(t){if(!Ma(t))return!1;var e=nr(t);return e==X||e==U||"string"==typeof t.message&&"string"==typeof t.name&&!Oa(t)}function Ca(t){if(!Na(t))return!1;var e=nr(t);return e==V||e==G||e==B||e==tt}function Ta(t){return"number"==typeof t&&t==Fa(t)}function Aa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=R}function Na(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ma(t){return null!=t&&"object"==typeof t}var Da=Fe?bn(Fe):function(t){return Ma(t)&&Bo(t)==Q};function Ea(t){return"number"==typeof t||Ma(t)&&nr(t)==J}function Oa(t){if(!Ma(t)||nr(t)!=K)return!1;var e=Oe(t);if(null===e)return!0;var n=he.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ue.call(n)==ge}var ja=Be?bn(Be):function(t){return Ma(t)&&nr(t)==et},Ra=ze?bn(ze):function(t){return Ma(t)&&Bo(t)==nt};function Ia(t){return"string"==typeof t||!ya(t)&&Ma(t)&&nr(t)==it}function Pa(t){return"symbol"==typeof t||Ma(t)&&nr(t)==rt}var $a=Ye?bn(Ye):function(t){return Ma(t)&&Aa(t.length)&&!!Ae[nr(t)]},La=So(gr),Ha=So((function(t,e){return t<=e}));function Wa(t){if(!t)return[];if(ba(t))return Ia(t)?In(t):so(t);if(He&&t[He])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[He]());var e=Bo(t);return(e==Q?Mn:e==nt?On:dc)(t)}function qa(t){return t?(t=za(t))===j||t===-j?(t<0?-1:1)*I:t==t?t:0:0===t?t:0}function Fa(t){var e=qa(t),n=e%1;return e==e?n?e-n:e:0}function Ba(t){return t?Li(Fa(t),0,$):0}function za(t){if("number"==typeof t)return t;if(Pa(t))return P;if(Na(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Na(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(It,"");var n=Ut.test(t);return n||Vt.test(t)?Ee(t.slice(2),n?2:8):Yt.test(t)?P:+t}function Ya(t){return ao(t,sc(t))}function Ua(t){return null==t?"":Wr(t)}var Xa=lo((function(t,e){if(Zo(e)||ba(e))ao(e,oc(e),t);else for(var n in e)he.call(e,n)&&Oi(t,n,e[n])})),Va=lo((function(t,e){ao(e,sc(e),t)})),Ga=lo((function(t,e,n,i){ao(e,sc(e),t,i)})),Qa=lo((function(t,e,n,i){ao(e,oc(e),t,i)})),Ja=Eo($i),Za=Ar((function(t){return t.push(o,Di),Ve(Ga,o,t)})),Ka=Ar((function(t){return t.push(o,es),Ve(cc,o,t)}));function tc(t,e,n){var i=null==t?o:tr(t,e);return i===o?n:i}function ec(t,e){return null!=t&&zo(t,e,or)}var nc=_o((function(t,e,n){t[e]=n}),Nc(Ec)),ic=_o((function(t,e,n){he.call(t,e)?t[e].push(n):t[e]=[n]}),$o),rc=Ar(ar);function oc(t){return ba(t)?Ti(t):fr(t)}function sc(t){return ba(t)?Ti(t,!0):dr(t)}var ac=lo((function(t,e,n){_r(t,e,n)})),cc=lo((function(t,e,n,i){_r(t,e,n,i)})),lc=Eo((function(t,e){var n={};if(null==t)return n;var i=!1;e=nn(e,(function(e){return e=Qr(e,t),i||(i=e.length>1),e})),ao(t,jo(t),n),i&&(n=Hi(n,p|f|d));for(var r=e.length;r--;)Fr(n,e[r]);return n})),uc=Eo((function(t,e){return null==t?{}:function(t,e){return wr(t=ne(t),e,(function(e,n){return ec(t,n)}))}(t,e)}));function hc(t,e){if(null==t)return{};var n=nn(jo(t),(function(t){return[t]}));return e=$o(e),wr(t,n,(function(t,n){return e(t,n[0])}))}var pc=No(oc),fc=No(sc);function dc(t){return null==t?[]:xn(t,oc(t))}var gc=fo((function(t,e,n){return e=e.toLowerCase(),t+(n?vc(e):e)}));function vc(t){return Sc(Ua(t).toLowerCase())}function mc(t){return(t=Ua(t))&&t.replace(Qt,Cn).replace(be,"")}var yc=fo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),_c=fo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),bc=po("toLowerCase"),xc=fo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),wc=fo((function(t,e,n){return t+(n?" ":"")+Sc(e)})),kc=fo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Sc=po("toUpperCase");function Cc(t,e,n){return t=Ua(t),(e=n?o:e)===o?function(t){return Se.test(t)}(t)?function(t){return t.match(we)||[]}(t):function(t){return t.match(qt)||[]}(t):t.match(e)||[]}var Tc=Ar((function(t,e){try{return Ve(t,o,e)}catch(t){return Sa(t)?t:new Kt(t)}})),Ac=Eo((function(t,e){return Qe(e,(function(e){e=hs(e),Pi(t,e,ia(t[e],t))})),t}));function Nc(t){return function(){return t}}var Mc=mo(),Dc=mo(!0);function Ec(t){return t}function Oc(t){return pr("function"==typeof t?t:Hi(t,p))}var jc=Ar((function(t,e){return function(n){return ar(n,t,e)}})),Rc=Ar((function(t,e){return function(n){return ar(t,n,e)}}));function Ic(t,e,n){var i=oc(e),r=Ki(e,i);null!=n||Na(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=Ki(e,oc(e)));var o=!(Na(n)&&"chain"in n&&!n.chain),s=Ca(t);return Qe(r,(function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),r=n.__actions__=so(this.__actions__);return r.push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,rn([this.value()],arguments))})})),t}function Pc(){}var $c=xo(nn),Lc=xo(Ze),Hc=xo(an);function Wc(t){return Go(t)?gn(hs(t)):function(t){return function(e){return tr(e,t)}}(t)}var qc=ko(),Fc=ko(!0);function Bc(){return[]}function zc(){return!1}var Yc,Uc=bo((function(t,e){return t+e}),0),Xc=To("ceil"),Vc=bo((function(t,e){return t/e}),1),Gc=To("floor"),Qc=bo((function(t,e){return t*e}),1),Jc=To("round"),Zc=bo((function(t,e){return t-e}),0);return vi.after=function(t,e){if("function"!=typeof e)throw new oe(c);return t=Fa(t),function(){if(--t<1)return e.apply(this,arguments)}},vi.ary=ea,vi.assign=Xa,vi.assignIn=Va,vi.assignInWith=Ga,vi.assignWith=Qa,vi.at=Ja,vi.before=na,vi.bind=ia,vi.bindAll=Ac,vi.bindKey=ra,vi.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ya(t)?t:[t]},vi.chain=Ws,vi.chunk=function(t,e,n){e=(n?Vo(t,e,n):e===o)?1:Vn(Fa(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var s=0,a=0,c=i(qn(r/e));s<r;)c[a++]=Rr(t,s,s+=e);return c},vi.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},vi.concat=function(){var t=arguments.length;if(!t)return[];for(var e=i(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return rn(ya(n)?so(n):[n],Vi(e,1))},vi.cond=function(t){var e=null==t?0:t.length,n=$o();return t=e?nn(t,(function(t){if("function"!=typeof t[1])throw new oe(c);return[n(t[0]),t[1]]})):[],Ar((function(n){for(var i=-1;++i<e;){var r=t[i];if(Ve(r[0],this,n))return Ve(r[1],this,n)}}))},vi.conforms=function(t){return function(t){var e=oc(t);return function(n){return Wi(n,t,e)}}(Hi(t,p))},vi.constant=Nc,vi.countBy=Bs,vi.create=function(t,e){var n=mi(t);return null==e?n:Ii(n,e)},vi.curry=function t(e,n,i){var r=Mo(e,b,o,o,o,o,o,n=i?o:n);return r.placeholder=t.placeholder,r},vi.curryRight=function t(e,n,i){var r=Mo(e,x,o,o,o,o,o,n=i?o:n);return r.placeholder=t.placeholder,r},vi.debounce=oa,vi.defaults=Za,vi.defaultsDeep=Ka,vi.defer=sa,vi.delay=aa,vi.difference=ds,vi.differenceBy=gs,vi.differenceWith=vs,vi.drop=function(t,e,n){var i=null==t?0:t.length;return i?Rr(t,(e=n||e===o?1:Fa(e))<0?0:e,i):[]},vi.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?Rr(t,0,(e=i-(e=n||e===o?1:Fa(e)))<0?0:e):[]},vi.dropRightWhile=function(t,e){return t&&t.length?zr(t,$o(e,3),!0,!0):[]},vi.dropWhile=function(t,e){return t&&t.length?zr(t,$o(e,3),!0):[]},vi.fill=function(t,e,n,i){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Vo(t,e,n)&&(n=0,i=r),function(t,e,n,i){var r=t.length;for((n=Fa(n))<0&&(n=-n>r?0:r+n),(i=i===o||i>r?r:Fa(i))<0&&(i+=r),i=n>i?0:Ba(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},vi.filter=function(t,e){return(ya(t)?Ke:Xi)(t,$o(e,3))},vi.flatMap=function(t,e){return Vi(Js(t,e),1)},vi.flatMapDeep=function(t,e){return Vi(Js(t,e),j)},vi.flatMapDepth=function(t,e,n){return n=n===o?1:Fa(n),Vi(Js(t,e),n)},vi.flatten=_s,vi.flattenDeep=function(t){return null!=t&&t.length?Vi(t,j):[]},vi.flattenDepth=function(t,e){return null!=t&&t.length?Vi(t,e=e===o?1:Fa(e)):[]},vi.flip=function(t){return Mo(t,T)},vi.flow=Mc,vi.flowRight=Dc,vi.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},vi.functions=function(t){return null==t?[]:Ki(t,oc(t))},vi.functionsIn=function(t){return null==t?[]:Ki(t,sc(t))},vi.groupBy=Vs,vi.initial=function(t){return null!=t&&t.length?Rr(t,0,-1):[]},vi.intersection=xs,vi.intersectionBy=ws,vi.intersectionWith=ks,vi.invert=nc,vi.invertBy=ic,vi.invokeMap=Gs,vi.iteratee=Oc,vi.keyBy=Qs,vi.keys=oc,vi.keysIn=sc,vi.map=Js,vi.mapKeys=function(t,e){var n={};return e=$o(e,3),Ji(t,(function(t,i,r){Pi(n,e(t,i,r),t)})),n},vi.mapValues=function(t,e){var n={};return e=$o(e,3),Ji(t,(function(t,i,r){Pi(n,i,e(t,i,r))})),n},vi.matches=function(t){return mr(Hi(t,p))},vi.matchesProperty=function(t,e){return yr(t,Hi(e,p))},vi.memoize=ca,vi.merge=ac,vi.mergeWith=cc,vi.method=jc,vi.methodOf=Rc,vi.mixin=Ic,vi.negate=la,vi.nthArg=function(t){return t=Fa(t),Ar((function(e){return br(e,t)}))},vi.omit=lc,vi.omitBy=function(t,e){return hc(t,la($o(e)))},vi.once=function(t){return na(2,t)},vi.orderBy=function(t,e,n,i){return null==t?[]:(ya(e)||(e=null==e?[]:[e]),ya(n=i?o:n)||(n=null==n?[]:[n]),xr(t,e,n))},vi.over=$c,vi.overArgs=ua,vi.overEvery=Lc,vi.overSome=Hc,vi.partial=ha,vi.partialRight=pa,vi.partition=Zs,vi.pick=uc,vi.pickBy=hc,vi.property=Wc,vi.propertyOf=function(t){return function(e){return null==t?o:tr(t,e)}},vi.pull=Cs,vi.pullAll=Ts,vi.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?kr(t,e,$o(n,2)):t},vi.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?kr(t,e,o,n):t},vi.pullAt=As,vi.range=qc,vi.rangeRight=Fc,vi.rearg=fa,vi.reject=function(t,e){return(ya(t)?Ke:Xi)(t,la($o(e,3)))},vi.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=$o(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),r.push(i))}return Sr(t,r),n},vi.rest=function(t,e){if("function"!=typeof t)throw new oe(c);return Ar(t,e=e===o?e:Fa(e))},vi.reverse=Ns,vi.sampleSize=function(t,e,n){return e=(n?Vo(t,e,n):e===o)?1:Fa(e),(ya(t)?Ni:Mr)(t,e)},vi.set=function(t,e,n){return null==t?t:Dr(t,e,n)},vi.setWith=function(t,e,n,i){return i="function"==typeof i?i:o,null==t?t:Dr(t,e,n,i)},vi.shuffle=function(t){return(ya(t)?Mi:jr)(t)},vi.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Vo(t,e,n)?(e=0,n=i):(e=null==e?0:Fa(e),n=n===o?i:Fa(n)),Rr(t,e,n)):[]},vi.sortBy=Ks,vi.sortedUniq=function(t){return t&&t.length?Lr(t):[]},vi.sortedUniqBy=function(t,e){return t&&t.length?Lr(t,$o(e,2)):[]},vi.split=function(t,e,n){return n&&"number"!=typeof n&&Vo(t,e,n)&&(e=n=o),(n=n===o?$:n>>>0)?(t=Ua(t))&&("string"==typeof e||null!=e&&!ja(e))&&!(e=Wr(e))&&Nn(t)?Zr(In(t),0,n):t.split(e,n):[]},vi.spread=function(t,e){if("function"!=typeof t)throw new oe(c);return e=e===o?0:Vn(Fa(e),0),Ar((function(n){var i=n[e],r=Zr(n,0,e);return i&&rn(r,i),Ve(t,this,r)}))},vi.tail=function(t){var e=null==t?0:t.length;return e?Rr(t,1,e):[]},vi.take=function(t,e,n){return t&&t.length?Rr(t,0,(e=n||e===o?1:Fa(e))<0?0:e):[]},vi.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Rr(t,(e=i-(e=n||e===o?1:Fa(e)))<0?0:e,i):[]},vi.takeRightWhile=function(t,e){return t&&t.length?zr(t,$o(e,3),!1,!0):[]},vi.takeWhile=function(t,e){return t&&t.length?zr(t,$o(e,3)):[]},vi.tap=function(t,e){return e(t),t},vi.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new oe(c);return Na(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),oa(t,e,{leading:i,maxWait:e,trailing:r})},vi.thru=qs,vi.toArray=Wa,vi.toPairs=pc,vi.toPairsIn=fc,vi.toPath=function(t){return ya(t)?nn(t,hs):Pa(t)?[t]:so(us(Ua(t)))},vi.toPlainObject=Ya,vi.transform=function(t,e,n){var i=ya(t),r=i||wa(t)||$a(t);if(e=$o(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Na(t)&&Ca(o)?mi(Oe(t)):{}}return(r?Qe:Ji)(t,(function(t,i,r){return e(n,t,i,r)})),n},vi.unary=function(t){return ea(t,1)},vi.union=Ms,vi.unionBy=Ds,vi.unionWith=Es,vi.uniq=function(t){return t&&t.length?qr(t):[]},vi.uniqBy=function(t,e){return t&&t.length?qr(t,$o(e,2)):[]},vi.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?qr(t,o,e):[]},vi.unset=function(t,e){return null==t||Fr(t,e)},vi.unzip=Os,vi.unzipWith=js,vi.update=function(t,e,n){return null==t?t:Br(t,e,Gr(n))},vi.updateWith=function(t,e,n,i){return i="function"==typeof i?i:o,null==t?t:Br(t,e,Gr(n),i)},vi.values=dc,vi.valuesIn=function(t){return null==t?[]:xn(t,sc(t))},vi.without=Rs,vi.words=Cc,vi.wrap=function(t,e){return ha(Gr(e),t)},vi.xor=Is,vi.xorBy=Ps,vi.xorWith=$s,vi.zip=Ls,vi.zipObject=function(t,e){return Xr(t||[],e||[],Oi)},vi.zipObjectDeep=function(t,e){return Xr(t||[],e||[],Dr)},vi.zipWith=Hs,vi.entries=pc,vi.entriesIn=fc,vi.extend=Va,vi.extendWith=Ga,Ic(vi,vi),vi.add=Uc,vi.attempt=Tc,vi.camelCase=gc,vi.capitalize=vc,vi.ceil=Xc,vi.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=za(n))==n?n:0),e!==o&&(e=(e=za(e))==e?e:0),Li(za(t),e,n)},vi.clone=function(t){return Hi(t,d)},vi.cloneDeep=function(t){return Hi(t,p|d)},vi.cloneDeepWith=function(t,e){return Hi(t,p|d,e="function"==typeof e?e:o)},vi.cloneWith=function(t,e){return Hi(t,d,e="function"==typeof e?e:o)},vi.conformsTo=function(t,e){return null==e||Wi(t,e,oc(e))},vi.deburr=mc,vi.defaultTo=function(t,e){return null==t||t!=t?e:t},vi.divide=Vc,vi.endsWith=function(t,e,n){t=Ua(t),e=Wr(e);var i=t.length,r=n=n===o?i:Li(Fa(n),0,i);return(n-=e.length)>=0&&t.slice(n,r)==e},vi.eq=da,vi.escape=function(t){return(t=Ua(t))&&Ct.test(t)?t.replace(kt,Tn):t},vi.escapeRegExp=function(t){return(t=Ua(t))&&Rt.test(t)?t.replace(jt,"\\$&"):t},vi.every=function(t,e,n){var i=ya(t)?Ze:Yi;return n&&Vo(t,e,n)&&(e=o),i(t,$o(e,3))},vi.find=zs,vi.findIndex=ms,vi.findKey=function(t,e){return ln(t,$o(e,3),Ji)},vi.findLast=Ys,vi.findLastIndex=ys,vi.findLastKey=function(t,e){return ln(t,$o(e,3),Zi)},vi.floor=Gc,vi.forEach=Us,vi.forEachRight=Xs,vi.forIn=function(t,e){return null==t?t:Gi(t,$o(e,3),sc)},vi.forInRight=function(t,e){return null==t?t:Qi(t,$o(e,3),sc)},vi.forOwn=function(t,e){return t&&Ji(t,$o(e,3))},vi.forOwnRight=function(t,e){return t&&Zi(t,$o(e,3))},vi.get=tc,vi.gt=ga,vi.gte=va,vi.has=function(t,e){return null!=t&&zo(t,e,rr)},vi.hasIn=ec,vi.head=bs,vi.identity=Ec,vi.includes=function(t,e,n,i){t=ba(t)?t:dc(t),n=n&&!i?Fa(n):0;var r=t.length;return n<0&&(n=Vn(r+n,0)),Ia(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&hn(t,e,n)>-1},vi.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Fa(n);return r<0&&(r=Vn(i+r,0)),hn(t,e,r)},vi.inRange=function(t,e,n){return e=qa(e),n===o?(n=e,e=0):n=qa(n),function(t,e,n){return t>=Gn(e,n)&&t<Vn(e,n)}(t=za(t),e,n)},vi.invoke=rc,vi.isArguments=ma,vi.isArray=ya,vi.isArrayBuffer=_a,vi.isArrayLike=ba,vi.isArrayLikeObject=xa,vi.isBoolean=function(t){return!0===t||!1===t||Ma(t)&&nr(t)==z},vi.isBuffer=wa,vi.isDate=ka,vi.isElement=function(t){return Ma(t)&&1===t.nodeType&&!Oa(t)},vi.isEmpty=function(t){if(null==t)return!0;if(ba(t)&&(ya(t)||"string"==typeof t||"function"==typeof t.splice||wa(t)||$a(t)||ma(t)))return!t.length;var e=Bo(t);if(e==Q||e==nt)return!t.size;if(Zo(t))return!fr(t).length;for(var n in t)if(he.call(t,n))return!1;return!0},vi.isEqual=function(t,e){return lr(t,e)},vi.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:o)?n(t,e):o;return i===o?lr(t,e,o,n):!!i},vi.isError=Sa,vi.isFinite=function(t){return"number"==typeof t&&Yn(t)},vi.isFunction=Ca,vi.isInteger=Ta,vi.isLength=Aa,vi.isMap=Da,vi.isMatch=function(t,e){return t===e||ur(t,e,Ho(e))},vi.isMatchWith=function(t,e,n){return n="function"==typeof n?n:o,ur(t,e,Ho(e),n)},vi.isNaN=function(t){return Ea(t)&&t!=+t},vi.isNative=function(t){if(Jo(t))throw new Kt(a);return hr(t)},vi.isNil=function(t){return null==t},vi.isNull=function(t){return null===t},vi.isNumber=Ea,vi.isObject=Na,vi.isObjectLike=Ma,vi.isPlainObject=Oa,vi.isRegExp=ja,vi.isSafeInteger=function(t){return Ta(t)&&t>=-R&&t<=R},vi.isSet=Ra,vi.isString=Ia,vi.isSymbol=Pa,vi.isTypedArray=$a,vi.isUndefined=function(t){return t===o},vi.isWeakMap=function(t){return Ma(t)&&Bo(t)==st},vi.isWeakSet=function(t){return Ma(t)&&nr(t)==at},vi.join=function(t,e){return null==t?"":Un.call(t,e)},vi.kebabCase=yc,vi.last=Ss,vi.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return n!==o&&(r=(r=Fa(n))<0?Vn(i+r,0):Gn(r,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):un(t,fn,r,!0)},vi.lowerCase=_c,vi.lowerFirst=bc,vi.lt=La,vi.lte=Ha,vi.max=function(t){return t&&t.length?Ui(t,Ec,ir):o},vi.maxBy=function(t,e){return t&&t.length?Ui(t,$o(e,2),ir):o},vi.mean=function(t){return dn(t,Ec)},vi.meanBy=function(t,e){return dn(t,$o(e,2))},vi.min=function(t){return t&&t.length?Ui(t,Ec,gr):o},vi.minBy=function(t,e){return t&&t.length?Ui(t,$o(e,2),gr):o},vi.stubArray=Bc,vi.stubFalse=zc,vi.stubObject=function(){return{}},vi.stubString=function(){return""},vi.stubTrue=function(){return!0},vi.multiply=Qc,vi.nth=function(t,e){return t&&t.length?br(t,Fa(e)):o},vi.noConflict=function(){return Re._===this&&(Re._=ve),this},vi.noop=Pc,vi.now=ta,vi.pad=function(t,e,n){t=Ua(t);var i=(e=Fa(e))?Rn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return wo(Fn(r),n)+t+wo(qn(r),n)},vi.padEnd=function(t,e,n){t=Ua(t);var i=(e=Fa(e))?Rn(t):0;return e&&i<e?t+wo(e-i,n):t},vi.padStart=function(t,e,n){t=Ua(t);var i=(e=Fa(e))?Rn(t):0;return e&&i<e?wo(e-i,n)+t:t},vi.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Jn(Ua(t).replace(Pt,""),e||0)},vi.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Vo(t,e,n)&&(e=n=o),n===o&&("boolean"==typeof e?(n=e,e=o):"boolean"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=qa(t),e===o?(e=t,t=0):e=qa(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var r=Zn();return Gn(t+r*(e-t+De("1e-"+((r+"").length-1))),e)}return Cr(t,e)},vi.reduce=function(t,e,n){var i=ya(t)?on:mn,r=arguments.length<3;return i(t,$o(e,4),n,r,Bi)},vi.reduceRight=function(t,e,n){var i=ya(t)?sn:mn,r=arguments.length<3;return i(t,$o(e,4),n,r,zi)},vi.repeat=function(t,e,n){return e=(n?Vo(t,e,n):e===o)?1:Fa(e),Tr(Ua(t),e)},vi.replace=function(){var t=arguments,e=Ua(t[0]);return t.length<3?e:e.replace(t[1],t[2])},vi.result=function(t,e,n){var i=-1,r=(e=Qr(e,t)).length;for(r||(r=1,t=o);++i<r;){var s=null==t?o:t[hs(e[i])];s===o&&(i=r,s=n),t=Ca(s)?s.call(t):s}return t},vi.round=Jc,vi.runInContext=t,vi.sample=function(t){return(ya(t)?Ai:Nr)(t)},vi.size=function(t){if(null==t)return 0;if(ba(t))return Ia(t)?Rn(t):t.length;var e=Bo(t);return e==Q||e==nt?t.size:fr(t).length},vi.snakeCase=xc,vi.some=function(t,e,n){var i=ya(t)?an:Ir;return n&&Vo(t,e,n)&&(e=o),i(t,$o(e,3))},vi.sortedIndex=function(t,e){return Pr(t,e)},vi.sortedIndexBy=function(t,e,n){return $r(t,e,$o(n,2))},vi.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=Pr(t,e);if(i<n&&da(t[i],e))return i}return-1},vi.sortedLastIndex=function(t,e){return Pr(t,e,!0)},vi.sortedLastIndexBy=function(t,e,n){return $r(t,e,$o(n,2),!0)},vi.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Pr(t,e,!0)-1;if(da(t[n],e))return n}return-1},vi.startCase=wc,vi.startsWith=function(t,e,n){return t=Ua(t),n=Li(Fa(n),0,t.length),e=Wr(e),t.slice(n,n+e.length)==e},vi.subtract=Zc,vi.sum=function(t){return t&&t.length?yn(t,Ec):0},vi.sumBy=function(t,e){return t&&t.length?yn(t,$o(e,2)):0},vi.template=function(t,e,n){var i=vi.templateSettings;n&&Vo(t,e,n)&&(e=o),t=Ua(t),e=Ga({},e,i,Di);var r,s,a=Ga({},e.imports,i.imports,Di),c=oc(a),l=xn(a,c),u=0,h=e.interpolate||Jt,p="__p += '",f=ie((e.escape||Jt).source+"|"+h.source+"|"+(h===Nt?Bt:Jt).source+"|"+(e.evaluate||Jt).source+"|$","g"),d="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Te+"]")+"\n";t.replace(f,(function(e,n,i,o,a,c){return i||(i=o),p+=t.slice(u,c).replace(Zt,An),n&&(r=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+e.length,e})),p+="';\n";var g=e.variable;g||(p="with (obj) {\n"+p+"\n}\n"),p=(s?p.replace(_t,""):p).replace(bt,"$1").replace(xt,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Tc((function(){return te(c,d+"return "+p).apply(o,l)}));if(v.source=p,Sa(v))throw v;return v},vi.times=function(t,e){if((t=Fa(t))<1||t>R)return[];var n=$,i=Gn(t,$);e=$o(e),t-=$;for(var r=_n(i,e);++n<t;)e(n);return r},vi.toFinite=qa,vi.toInteger=Fa,vi.toLength=Ba,vi.toLower=function(t){return Ua(t).toLowerCase()},vi.toNumber=za,vi.toSafeInteger=function(t){return Li(Fa(t),-R,R)},vi.toString=Ua,vi.toUpper=function(t){return Ua(t).toUpperCase()},vi.trim=function(t,e,n){if((t=Ua(t))&&(n||e===o))return t.replace(It,"");if(!t||!(e=Wr(e)))return t;var i=In(t),r=In(e);return Zr(i,kn(i,r),Sn(i,r)+1).join("")},vi.trimEnd=function(t,e,n){if((t=Ua(t))&&(n||e===o))return t.replace($t,"");if(!t||!(e=Wr(e)))return t;var i=In(t);return Zr(i,0,Sn(i,In(e))+1).join("")},vi.trimStart=function(t,e,n){if((t=Ua(t))&&(n||e===o))return t.replace(Pt,"");if(!t||!(e=Wr(e)))return t;var i=In(t);return Zr(i,kn(i,In(e))).join("")},vi.truncate=function(t,e){var n=A,i=N;if(Na(e)){var r="separator"in e?e.separator:r;n="length"in e?Fa(e.length):n,i="omission"in e?Wr(e.omission):i}var s=(t=Ua(t)).length;if(Nn(t)){var a=In(t);s=a.length}if(n>=s)return t;var c=n-Rn(i);if(c<1)return i;var l=a?Zr(a,0,c).join(""):t.slice(0,c);if(r===o)return l+i;if(a&&(c+=l.length-c),ja(r)){if(t.slice(c).search(r)){var u,h=l;for(r.global||(r=ie(r.source,Ua(zt.exec(r))+"g")),r.lastIndex=0;u=r.exec(h);)var p=u.index;l=l.slice(0,p===o?c:p)}}else if(t.indexOf(Wr(r),c)!=c){var f=l.lastIndexOf(r);f>-1&&(l=l.slice(0,f))}return l+i},vi.unescape=function(t){return(t=Ua(t))&&St.test(t)?t.replace(wt,Pn):t},vi.uniqueId=function(t){var e=++pe;return Ua(t)+e},vi.upperCase=kc,vi.upperFirst=Sc,vi.each=Us,vi.eachRight=Xs,vi.first=bs,Ic(vi,(Yc={},Ji(vi,(function(t,e){he.call(vi.prototype,e)||(Yc[e]=t)})),Yc),{chain:!1}),vi.VERSION="4.17.2",Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){vi[t].placeholder=vi})),Qe(["drop","take"],(function(t,e){bi.prototype[t]=function(n){var i=this.__filtered__;if(i&&!e)return new bi(this);n=n===o?1:Vn(Fa(n),0);var r=this.clone();return i?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,$),type:t+(r.__dir__<0?"Right":"")}),r},bi.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Qe(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=n==E||3==n;bi.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:$o(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Qe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");bi.prototype[t]=function(){return this[n](1).value()[0]}})),Qe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");bi.prototype[t]=function(){return this.__filtered__?new bi(this):this[n](1)}})),bi.prototype.compact=function(){return this.filter(Ec)},bi.prototype.find=function(t){return this.filter(t).head()},bi.prototype.findLast=function(t){return this.reverse().find(t)},bi.prototype.invokeMap=Ar((function(t,e){return"function"==typeof t?new bi(this):this.map((function(n){return ar(n,t,e)}))})),bi.prototype.reject=function(t){return this.filter(la($o(t)))},bi.prototype.slice=function(t,e){t=Fa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new bi(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=Fa(e))<0?n.dropRight(-e):n.take(e-t)),n)},bi.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},bi.prototype.toArray=function(){return this.take($)},Ji(bi.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=vi[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);r&&(vi.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,c=e instanceof bi,l=a[0],u=c||ya(e),h=function(t){var e=r.apply(vi,rn([t],a));return i&&p?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,f=!!this.__actions__.length,d=s&&!p,g=c&&!f;if(!s&&u){e=g?e:new bi(this);var v=t.apply(e,a);return v.__actions__.push({func:qs,args:[h],thisArg:o}),new _i(v,p)}return d&&g?t.apply(this,a):(v=this.thru(h),d?i?v.value()[0]:v.value():v)})})),Qe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=se[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);vi.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(ya(r)?r:[],t)}return this[n]((function(n){return e.apply(ya(n)?n:[],t)}))}})),Ji(bi.prototype,(function(t,e){var n=vi[e];if(n){var i=n.name+"";(ai[i]||(ai[i]=[])).push({name:e,func:n})}})),ai[yo(o,y).name]=[{name:"wrapper",func:o}],bi.prototype.clone=function(){var t=new bi(this.__wrapped__);return t.__actions__=so(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=so(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=so(this.__views__),t},bi.prototype.reverse=function(){if(this.__filtered__){var t=new bi(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},bi.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=ya(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=Gn(e,t+s);break;case"takeRight":t=Vn(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),a=o.start,c=o.end,l=c-a,u=i?c:a-1,h=this.__iteratees__,p=h.length,f=0,d=Gn(l,this.__takeCount__);if(!n||r<s||r==l&&d==l)return Yr(t,this.__actions__);var g=[];t:for(;l--&&f<d;){for(var v=-1,m=t[u+=e];++v<p;){var y=h[v],_=y.iteratee,b=y.type,x=_(m);if(b==O)m=x;else if(!x){if(b==E)continue t;break t}}g[f++]=m}return g},vi.prototype.at=Fs,vi.prototype.chain=function(){return Ws(this)},vi.prototype.commit=function(){return new _i(this.value(),this.__chain__)},vi.prototype.next=function(){this.__values__===o&&(this.__values__=Wa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},vi.prototype.plant=function(t){for(var e,n=this;n instanceof yi;){var i=fs(n);i.__index__=0,i.__values__=o,e?r.__wrapped__=i:e=i;var r=i;n=n.__wrapped__}return r.__wrapped__=t,e},vi.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof bi){var e=t;return this.__actions__.length&&(e=new bi(this)),(e=e.reverse()).__actions__.push({func:qs,args:[Ns],thisArg:o}),new _i(e,this.__chain__)}return this.thru(Ns)},vi.prototype.toJSON=vi.prototype.valueOf=vi.prototype.value=function(){return Yr(this.__wrapped__,this.__actions__)},vi.prototype.first=vi.prototype.head,He&&(vi.prototype[He]=function(){return this}),vi}();Re._=$n,(i=function(){return $n}.call(e,n,e,r))===o||(r.exports=i)}).call(this)}).call(e,function(){return this}(),n(13)(t))},function(t,e,n){"use strict";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=n(1).Socket,o=n(54),s=function(){function t(e,n,i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._socketIoGlobal=e,this._url=n,this._namespace="/"===i?"":i,this._options=r||{},this._io=null,this._errorReported=!1,this._authQuery=null,this._joinRoomEvent="join:ad:room",this._leaveRoomEvent="leave:ad:room"}return i(t,[{key:"_reportError",value:function(t,e){this._errorReported||(e(t,!1),this._errorReported=!0)}},{key:"withBasicAuth",value:function(t,e){return this._authQuery={basic:"Basic "+o.encode(t+":"+e)},this}},{key:"withJwt",value:function(t){return this._authQuery={token:t},this}},{key:"withApiKey",value:function(t){return this._authQuery={token:t},this}},{key:"connect",value:function(t){var e=this;return this._io?this:(this._authQuery&&(this._options.query=this._authQuery),this._io=this._socketIoGlobal(this._url+"/"+this._namespace,this._options),"function"==typeof t&&(this._io.on("connect_error",(function(n){return e._reportError(n,t)})),this._io.on("error",(function(n){return e._reportError(n,t)})),this._io.on("connect",(function(){return t(null,!0)}))),this)}},{key:"joinRoom",value:function(t,e,n){this._io.emit(this._joinRoomEvent,{room:t,body:e||{}},n)}},{key:"leaveRoom",value:function(t,e,n){this._io.emit(this._leaveRoomEvent,{room:t,body:e||{}},n)}},{key:"id",get:function(){return"/"!==this.name?this.name+"#"+this._io.id:this._io.id}},{key:"name",get:function(){return this._io.nsp}}]),t}();Object.getOwnPropertyNames(r.prototype).forEach((function(t){var e="connect"===t?"_connect":t;s.prototype[e]=function(){this._io[t].apply(this._io,arguments)}})),t.exports=s},function(t,e,n){var i;(function(t,r){!function(o){var s=("object"==typeof t&&t&&t.exports,"object"==typeof r&&r);s.global!==s&&s.window;var a=function(t){this.message=t};(a.prototype=new Error).name="InvalidCharacterError";var c=function(t){throw new a(t)},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,h={encode:function(t){t=String(t),/[^\0-\xFF]/.test(t)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var e,n,i,r,o=t.length%3,s="",a=-1,u=t.length-o;++a<u;)e=t.charCodeAt(a)<<16,n=t.charCodeAt(++a)<<8,i=t.charCodeAt(++a),s+=l.charAt((r=e+n+i)>>18&63)+l.charAt(r>>12&63)+l.charAt(r>>6&63)+l.charAt(63&r);return 2==o?(e=t.charCodeAt(a)<<8,n=t.charCodeAt(++a),s+=l.charAt((r=e+n)>>10)+l.charAt(r>>4&63)+l.charAt(r<<2&63)+"="):1==o&&(r=t.charCodeAt(a),s+=l.charAt(r>>2)+l.charAt(r<<4&63)+"=="),s},decode:function(t){var e=(t=String(t).replace(u,"")).length;e%4==0&&(e=(t=t.replace(/==?$/,"")).length),(e%4==1||/[^+a-zA-Z0-9/]/.test(t))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var n,i,r=0,o="",s=-1;++s<e;)i=l.indexOf(t.charAt(s)),n=r%4?64*n+i:i,r++%4&&(o+=String.fromCharCode(255&n>>(-2*r&6)));return o},version:"0.1.0"};void 0===(i=function(){return h}.call(e,n,e,t))||(t.exports=i)}()}).call(e,n(13)(t),function(){return this}())}])},t.exports=i()}]);