profoundjs-swagger-stats 1.1.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/dashboards/prometheus/swagger-stats dashboard v3.json +1269 -0
- package/examples/authtest/authtest.js +5 -10
- package/examples/fastify/fasifytest.js +24 -5
- package/examples/hapijstest/hapijstest.js +17 -2
- package/examples/restify/restifytest.js +16 -1
- package/examples/spectest/spectest.js +7 -9
- package/examples/testapp/petstore.json +1699 -0
- package/examples/testapp/testapp.js +6 -62
- package/lib/sws-api-swagger.yaml +1 -1
- package/lib/swsAPIStats.js +6 -1
- package/lib/swsAuth.js +140 -0
- package/lib/swsElasticEmitter.js +103 -45
- package/lib/swsHapi.js +29 -34
- package/lib/swsInterface.js +40 -189
- package/lib/swsProcessor.js +1 -1
- package/lib/swsReqResStats.js +1 -1
- package/lib/swsUtil.js +7 -21
- package/lib/swssettings.js +8 -2
- package/package.json +90 -91
- package/schema/elasticsearch/api_index_template.json +1 -1
- package/schema/elasticsearch/api_index_template_7x.json +185 -0
- package/scripts/elasticsearch/elastic7/docker-compose.yml +6 -17
- package/scripts/elasticsearch/elastic8/docker-compose.yml +34 -0
- package/ux/css/app.dc22c4da.css +7 -0
- package/ux/css/chunk-vendors.a6da6d7a.css +10 -0
- package/ux/fonts/KFOkCnqEu92Fr1MmgVxIIzQ.4aa2e698.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmEU9fBBc-.40bcb2b8.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmSU5fBBc-.ea60988b.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmWUlfBBc-.0774a8b7.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmYUtfBBc-.bcb7c7e2.woff +0 -0
- package/ux/fonts/KFOmCnqEu92Fr1Mu4mxM.d3907d0c.woff +0 -0
- package/ux/fonts/fa-brands-400.1a575a41.woff +0 -0
- package/ux/fonts/fa-brands-400.ed311c7a.woff2 +0 -0
- package/ux/fonts/fa-regular-400.b91d376b.woff2 +0 -0
- package/ux/fonts/fa-regular-400.d1d7e3b4.woff +0 -0
- package/ux/fonts/fa-solid-900.d745348d.woff +0 -0
- package/ux/fonts/fa-solid-900.d824df7e.woff2 +0 -0
- package/ux/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.3e1afe59.woff +0 -0
- package/ux/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.a4160421.woff2 +0 -0
- package/ux/index.html +1 -1
- package/ux/js/app.d095d0d6.js +1 -0
- package/ux/js/chunk-2d0b90b4.afe783bc.js +8 -0
- package/ux/js/chunk-2d0daf1e.a05fda31.js +11 -0
- package/ux/js/chunk-461883cd.a2aa4876.js +82 -0
- package/ux/js/chunk-vendors.4f167dc9.js +39 -0
- package/ux/logo.png +0 -0
- package/.editorconfig +0 -21
- package/.travis.yml +0 -23
- package/dashboards/prometheus/swagger-stats dashboard.json +0 -1118
- package/dist/css/sws.min.css +0 -18
- package/dist/fonts/FontAwesome.otf +0 -0
- package/dist/fonts/fontawesome-webfont.eot +0 -0
- package/dist/fonts/fontawesome-webfont.svg +0 -2671
- package/dist/fonts/fontawesome-webfont.ttf +0 -0
- package/dist/fonts/fontawesome-webfont.woff +0 -0
- package/dist/fonts/fontawesome-webfont.woff2 +0 -0
- package/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- package/dist/fonts/glyphicons-halflings-regular.svg +0 -288
- package/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- package/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/dist/images/favicon.png +0 -0
- package/dist/js/sws.min.js +0 -1
- package/gulpfile.js +0 -103
- package/karma.conf.js +0 -153
- package/ux/css/app.71245b0e.css +0 -7
- package/ux/css/chunk-vendors.809c52d1.css +0 -10
- package/ux/fonts/KFOkCnqEu92Fr1MmgVxIIzQ.5cb7edfc.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmEU9fBBc-.87284894.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmSU5fBBc-.b00849e0.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmWUlfBBc-.adcde98f.woff +0 -0
- package/ux/fonts/KFOlCnqEu92Fr1MmYUtfBBc-.bb1e4dc6.woff +0 -0
- package/ux/fonts/KFOmCnqEu92Fr1Mu4mxM.60fa3c06.woff +0 -0
- package/ux/fonts/fa-brands-400.c5e0f14f.woff +0 -0
- package/ux/fonts/fa-brands-400.cccc9d29.woff2 +0 -0
- package/ux/fonts/fa-regular-400.c4f508e7.woff +0 -0
- package/ux/fonts/fa-regular-400.f5f2566b.woff2 +0 -0
- package/ux/fonts/fa-solid-900.333bae20.woff +0 -0
- package/ux/fonts/fa-solid-900.44d537ab.woff2 +0 -0
- package/ux/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.29b882f0.woff +0 -0
- package/ux/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.0509ab09.woff2 +0 -0
- package/ux/js/app.0159ef6a.js +0 -1
- package/ux/js/chunk-2d0b90b4.92f1ea49.js +0 -8
- package/ux/js/chunk-461883cd.442efb25.js +0 -76
- package/ux/js/chunk-vendors.31d3ce30.js +0 -33
- /package/ux/js/{chunk-2d0de2f2.553bf976.js → chunk-2d0de2f2.2848649c.js} +0 -0
package/dist/js/sws.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
if(function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(S,t){"use strict";function g(t){return null!=t&&t===t.window}var e=[],i=Object.getPrototypeOf,o=e.slice,m=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},l=e.push,a=e.indexOf,n={},r=n.toString,v=n.hasOwnProperty,s=v.toString,u=s.call(Object),y={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},k=S.document,d={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,n){var i,a,r=(n=n||k).createElement("script");if(r.text=t,e)for(i in d)(a=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,a);n.head.appendChild(r).parentNode.removeChild(r)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[r.call(t)]||"object":typeof t}var c="3.5.1",T=function(t,e){return new T.fn.init(t,e)};function h(t){var e=!!t&&"length"in t&&t.length,n=w(t);return!b(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}T.fn=T.prototype={jquery:c,constructor:T,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(n){return this.pushStack(T.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},T.extend=T.fn.extend=function(){var t,e,n,i,a,r,s=arguments[0]||{},o=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[o]||{},o++),"object"==typeof s||b(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(t=arguments[o]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(u&&i&&(T.isPlainObject(i)||(a=Array.isArray(i)))?(n=s[e],r=a&&!Array.isArray(n)?[]:a||T.isPlainObject(n)?n:{},a=!1,s[e]=T.extend(u,r,i)):void 0!==i&&(s[e]=i));return s},T.extend({expando:"jQuery"+(c+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]"!==r.call(t)||(e=i(t))&&("function"!=typeof(n=v.call(e,"constructor")&&e.constructor)||s.call(n)!==u))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){_(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(h(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},makeArray:function(t,e){var n=e||[];return null!=t&&(h(Object(t))?T.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:a.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,a=t.length;i<n;i++)t[a++]=e[i];return t.length=a,t},grep:function(t,e,n){for(var i=[],a=0,r=t.length,s=!n;a<r;a++)!e(t[a],a)!=s&&i.push(t[a]);return i},map:function(t,e,n){var i,a,r=0,s=[];if(h(t))for(i=t.length;r<i;r++)null!=(a=e(t[r],r,n))&&s.push(a);else for(r in t)null!=(a=e(t[r],r,n))&&s.push(a);return m(s)},guid:1,support:y}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=e[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var f=function(n){function c(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320))}function a(){x()}var t,f,_,r,s,p,h,g,w,l,u,x,S,o,k,m,d,v,y,T="sizzle"+1*new Date,b=n.document,D=0,i=0,C=lt(),M=lt(),I=lt(),A=lt(),F=function(t,e){return t===e&&(u=!0),0},P={}.hasOwnProperty,e=[],R=e.pop,O=e.push,N=e.push,L=e.slice,E=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",W="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\["+j+"*("+W+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+j+"*\\]",Y=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",q=new RegExp(j+"+","g"),V=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),$=new RegExp("^"+j+"*,"+j+"*"),z=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),U=new RegExp(j+"|>"),G=new RegExp(Y),Z=new RegExp("^"+W+"$"),X={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,tt=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nt=/[+~]/,it=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),at=/([\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},st=_t(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{N.apply(e=L.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){N={apply:e.length?function(t,e){O.apply(t,L.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function ot(t,e,n,i){var a,r,s,o,l,u,d,c=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!i&&(x(e),e=e||S,k)){if(11!==h&&(l=et.exec(t)))if(a=l[1]){if(9===h){if(!(s=e.getElementById(a)))return n;if(s.id===a)return n.push(s),n}else if(c&&(s=c.getElementById(a))&&y(e,s)&&s.id===a)return n.push(s),n}else{if(l[2])return N.apply(n,e.getElementsByTagName(t)),n;if((a=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return N.apply(n,e.getElementsByClassName(a)),n}if(f.qsa&&!A[t+" "]&&(!m||!m.test(t))&&(1!==h||"object"!==e.nodeName.toLowerCase())){if(d=t,c=e,1===h&&(U.test(t)||z.test(t))){for((c=nt.test(t)&&vt(e.parentNode)||e)===e&&f.scope||((o=e.getAttribute("id"))?o=o.replace(at,rt):e.setAttribute("id",o=T)),r=(u=p(t)).length;r--;)u[r]=(o?"#"+o:":scope")+" "+bt(u[r]);d=u.join(",")}try{return N.apply(n,c.querySelectorAll(d)),n}catch(e){A(t,!0)}finally{o===T&&e.removeAttribute("id")}}}return g(t.replace(V,"$1"),e,n,i)}function lt(){var i=[];return function t(e,n){return i.push(e+" ")>_.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function ut(t){return t[T]=!0,t}function dt(t){var e=S.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=e}function ht(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(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pt(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function gt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&st(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function mt(s){return ut(function(r){return r=+r,ut(function(t,e){for(var n,i=s([],t.length,r),a=i.length;a--;)t[n=i[a]]&&(t[n]=!(e[n]=t[n]))})})}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=ot.support={},s=ot.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!J.test(e||n&&n.nodeName||"HTML")},x=ot.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:b;return i!=S&&9===i.nodeType&&i.documentElement&&(o=(S=i).documentElement,k=!s(S),b!=S&&(n=S.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",a,!1):n.attachEvent&&n.attachEvent("onunload",a)),f.scope=dt(function(t){return o.appendChild(t).appendChild(S.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),f.attributes=dt(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=dt(function(t){return t.appendChild(S.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=tt.test(S.getElementsByClassName),f.getById=dt(function(t){return o.appendChild(t).id=T,!S.getElementsByName||!S.getElementsByName(T).length}),f.getById?(_.filter.ID=function(t){var e=t.replace(it,c);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var n=e.getElementById(t);return n?[n]:[]}}):(_.filter.ID=function(t){var n=t.replace(it,c);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var n,i,a,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(a=e.getElementsByName(t),i=0;r=a[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),_.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],a=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[a++];)1===n.nodeType&&i.push(n);return i},_.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},d=[],m=[],(f.qsa=tt.test(S.querySelectorAll))&&(dt(function(t){var e;o.appendChild(t).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+H+")"),t.querySelectorAll("[id~="+T+"-]").length||m.push("~="),(e=S.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),dt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=S.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),o.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=tt.test(v=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&dt(function(t){f.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),d.push("!=",Y)}),m=m.length&&new RegExp(m.join("|")),d=d.length&&new RegExp(d.join("|")),e=tt.test(o.compareDocumentPosition),y=e||tt.test(o.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},F=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t==S||t.ownerDocument==b&&y(b,t)?-1:e==S||e.ownerDocument==b&&y(b,e)?1:l?E(l,t)-E(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,a=t.parentNode,r=e.parentNode,s=[t],o=[e];if(!a||!r)return t==S?-1:e==S?1:a?-1:r?1:l?E(l,t)-E(l,e):0;if(a===r)return ht(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)o.unshift(n);for(;s[i]===o[i];)i++;return i?ht(s[i],o[i]):s[i]==b?-1:o[i]==b?1:0}),S},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if(x(t),f.matchesSelector&&k&&!A[e+" "]&&(!d||!d.test(e))&&(!m||!m.test(e)))try{var n=v.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){A(e,!0)}return 0<ot(e,S,null,[t]).length},ot.contains=function(t,e){return(t.ownerDocument||t)!=S&&x(t),y(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!=S&&x(t);var n=_.attrHandle[e.toLowerCase()],i=n&&P.call(_.attrHandle,e.toLowerCase())?n(t,e,!k):void 0;return void 0!==i?i:f.attributes||!k?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},ot.escape=function(t){return(t+"").replace(at,rt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,n=[],i=0,a=0;if(u=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(F),u){for(;e=t[a++];)e===t[a]&&(i=n.push(a));for(;i--;)t.splice(n[i],1)}return l=null,t},r=ot.getText=function(t){var e,n="",i=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(_=ot.selectors={cacheLength:50,createPseudo:ut,match:X,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(it,c),t[3]=(t[3]||t[4]||t[5]||"").replace(it,c),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=p(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(it,c).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,a){return function(t){var e=ot.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===a:"!="===i?e!==a:"^="===i?a&&0===e.indexOf(a):"*="===i?a&&-1<e.indexOf(a):"$="===i?a&&e.slice(-a.length)===a:"~="===i?-1<(" "+e.replace(q," ")+" ").indexOf(a):"|="===i&&(e===a||e.slice(0,a.length+1)===a+"-"))}},CHILD:function(p,t,e,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var i,a,r,s,o,l,u=v!=y?"nextSibling":"previousSibling",d=t.parentNode,c=b&&t.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(d){if(v){for(;u;){for(s=t;s=s[u];)if(b?s.nodeName.toLowerCase()===c:1===s.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?d.firstChild:d.lastChild],y&&h){for(f=(o=(i=(a=(r=(s=d)[T]||(s[T]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]||[])[0]===D&&i[1])&&i[2],s=o&&d.childNodes[o];s=++o&&s&&s[u]||(f=o=0)||l.pop();)if(1===s.nodeType&&++f&&s===t){a[p]=[D,o,f];break}}else if(h&&(f=o=(i=(a=(r=(s=t)[T]||(s[T]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]||[])[0]===D&&i[1]),!1===f)for(;(s=++o&&s&&s[u]||(f=o=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==c:1!==s.nodeType)||!++f||(h&&((a=(r=s[T]||(s[T]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]=[D,f]),s!==t)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(t,r){var e,s=_.pseudos[t]||_.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return s[T]?s(r):1<s.length?(e=[t,t,"",r],_.setFilters.hasOwnProperty(t.toLowerCase())?ut(function(t,e){for(var n,i=s(t,r),a=i.length;a--;)t[n=E(t,i[a])]=!(e[n]=i[a])}):function(t){return s(t,0,e)}):s}},pseudos:{not:ut(function(t){var i=[],a=[],o=h(t.replace(V,"$1"));return o[T]?ut(function(t,e,n,i){for(var a,r=o(t,null,i,[]),s=t.length;s--;)(a=r[s])&&(t[s]=!(e[s]=a))}):function(t,e,n){return i[0]=t,o(i,null,n,a),i[0]=null,!a.pop()}}),has:ut(function(e){return function(t){return 0<ot(e,t).length}}),contains:ut(function(e){return e=e.replace(it,c),function(t){return-1<(t.textContent||r(t)).indexOf(e)}}),lang:ut(function(n){return Z.test(n||"")||ot.error("unsupported lang: "+n),n=n.replace(it,c).toLowerCase(),function(t){var e;do{if(e=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===o},focus:function(t){return t===S.activeElement&&(!S.hasFocus||S.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!_.pseudos.empty(t)},header:function(t){return K.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:mt(function(){return[0]}),last:mt(function(t,e){return[e-1]}),eq:mt(function(t,e,n){return[n<0?n+e:n]}),even:mt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:mt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:mt(function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t}),gt:mt(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[t]=ft(t);for(t in{submit:!0,reset:!0})_.pseudos[t]=pt(t);function yt(){}function bt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function _t(o,t,e){var l=t.dir,u=t.next,d=u||l,c=e&&"parentNode"===d,h=i++;return t.first?function(t,e,n){for(;t=t[l];)if(1===t.nodeType||c)return o(t,e,n);return!1}:function(t,e,n){var i,a,r,s=[D,h];if(n){for(;t=t[l];)if((1===t.nodeType||c)&&o(t,e,n))return!0}else for(;t=t[l];)if(1===t.nodeType||c)if(a=(r=t[T]||(t[T]={}))[t.uniqueID]||(r[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[l]||t;else{if((i=a[d])&&i[0]===D&&i[1]===h)return s[2]=i[2];if((a[d]=s)[2]=o(t,e,n))return!0}return!1}}function wt(a){return 1<a.length?function(t,e,n){for(var i=a.length;i--;)if(!a[i](t,e,n))return!1;return!0}:a[0]}function xt(t,e,n,i,a){for(var r,s=[],o=0,l=t.length,u=null!=e;o<l;o++)(r=t[o])&&(n&&!n(r,i,a)||(s.push(r),u&&e.push(o)));return s}function St(f,p,g,m,v,t){return m&&!m[T]&&(m=St(m)),v&&!v[T]&&(v=St(v,t)),ut(function(t,e,n,i){var a,r,s,o=[],l=[],u=e.length,d=t||function(t,e,n){for(var i=0,a=e.length;i<a;i++)ot(t,e[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),c=!f||!t&&p?d:xt(d,o,f,n,i),h=g?v||(t?f:u||m)?[]:e:c;if(g&&g(c,h,n,i),m)for(a=xt(h,l),m(a,[],n,i),r=a.length;r--;)(s=a[r])&&(h[l[r]]=!(c[l[r]]=s));if(t){if(v||f){if(v){for(a=[],r=h.length;r--;)(s=h[r])&&a.push(c[r]=s);v(null,h=[],a,i)}for(r=h.length;r--;)(s=h[r])&&-1<(a=v?E(t,s):o[r])&&(t[a]=!(e[a]=s))}}else h=xt(h===e?h.splice(u,h.length):h),v?v(null,e,h,i):N.apply(e,h)})}function kt(t){for(var a,e,n,i=t.length,r=_.relative[t[0].type],s=r||_.relative[" "],o=r?1:0,l=_t(function(t){return t===a},s,!0),u=_t(function(t){return-1<E(a,t)},s,!0),d=[function(t,e,n){var i=!r&&(n||e!==w)||((a=e).nodeType?l(t,e,n):u(t,e,n));return a=null,i}];o<i;o++)if(e=_.relative[t[o].type])d=[_t(wt(d),e)];else{if((e=_.filter[t[o].type].apply(null,t[o].matches))[T]){for(n=++o;n<i&&!_.relative[t[n].type];n++);return St(1<o&&wt(d),1<o&&bt(t.slice(0,o-1).concat({value:" "===t[o-2].type?"*":""})).replace(V,"$1"),e,o<n&&kt(t.slice(o,n)),n<i&&kt(t=t.slice(n)),n<i&&bt(t))}d.push(e)}return wt(d)}return yt.prototype=_.filters=_.pseudos,_.setFilters=new yt,p=ot.tokenize=function(t,e){var n,i,a,r,s,o,l,u=M[t+" "];if(u)return e?0:u.slice(0);for(s=t,o=[],l=_.preFilter;s;){for(r in n&&!(i=$.exec(s))||(i&&(s=s.slice(i[0].length)||s),o.push(a=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(V," ")}),s=s.slice(n.length)),_.filter)!(i=X[r].exec(s))||l[r]&&!(i=l[r](i))||(n=i.shift(),a.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?ot.error(t):M(t,o).slice(0)},h=ot.compile=function(t,e){var n,m,v,y,b,i,a=[],r=[],s=I[t+" "];if(!s){for(n=(e=e||p(t)).length;n--;)(s=kt(e[n]))[T]?a.push(s):r.push(s);(s=I(t,(m=r,y=0<(v=a).length,b=0<m.length,i=function(t,e,n,i,a){var r,s,o,l=0,u="0",d=t&&[],c=[],h=w,f=t||b&&_.find.TAG("*",a),p=D+=null==h?1:Math.random()||.1,g=f.length;for(a&&(w=e==S||e||a);u!==g&&null!=(r=f[u]);u++){if(b&&r){for(s=0,e||r.ownerDocument==S||(x(r),n=!k);o=m[s++];)if(o(r,e||S,n)){i.push(r);break}a&&(D=p)}y&&((r=!o&&r)&&l--,t&&d.push(r))}if(l+=u,y&&u!==l){for(s=0;o=v[s++];)o(d,c,e,n);if(t){if(0<l)for(;u--;)d[u]||c[u]||(c[u]=R.call(i));c=xt(c)}N.apply(i,c),a&&!t&&0<c.length&&1<l+v.length&&ot.uniqueSort(i)}return a&&(D=p,w=h),d},y?ut(i):i))).selector=t}return s},g=ot.select=function(t,e,n,i){var a,r,s,o,l,u="function"==typeof t&&t,d=!i&&p(t=u.selector||t);if(n=n||[],1===d.length){if(2<(r=d[0]=d[0].slice(0)).length&&"ID"===(s=r[0]).type&&9===e.nodeType&&k&&_.relative[r[1].type]){if(!(e=(_.find.ID(s.matches[0].replace(it,c),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(a=X.needsContext.test(t)?0:r.length;a--&&(s=r[a],!_.relative[o=s.type]);)if((l=_.find[o])&&(i=l(s.matches[0].replace(it,c),nt.test(r[0].type)&&vt(e.parentNode)||e))){if(r.splice(a,1),!(t=i.length&&bt(r)))return N.apply(n,i),n;break}}return(u||h(t,d))(i,e,!k,n,!e||nt.test(t)&&vt(e.parentNode)||e),n},f.sortStable=T.split("").sort(F).join("")===T,f.detectDuplicates=!!u,x(),f.sortDetached=dt(function(t){return 1&t.compareDocumentPosition(S.createElement("fieldset"))}),dt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&dt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),dt(function(t){return null==t.getAttribute("disabled")})||ct(H,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),ot}(S);T.find=f,T.expr=f.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=f.uniqueSort,T.text=f.getText,T.isXMLDoc=f.isXML,T.contains=f.contains,T.escapeSelector=f.escape;function p(t,e,n){for(var i=[],a=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(a&&T(t).is(n))break;i.push(t)}return i}function x(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var D=T.expr.match.needsContext;function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(t,n,i){return b(n)?T.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?T.grep(t,function(t){return t===n!==i}):"string"!=typeof n?T.grep(t,function(t){return-1<a.call(n,t)!==i}):T.filter(n,t,i)}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n,i=this.length,a=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<i;e++)if(T.contains(a[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)T.find(t,a[e],n);return 1<i?T.uniqueSort(n):n},filter:function(t){return this.pushStack(I(this,t||[],!1))},not:function(t){return this.pushStack(I(this,t||[],!0))},is:function(t){return!!I(this,"string"==typeof t&&D.test(t)?T(t):t||[],!1).length}});var A,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var i,a;if(!t)return this;if(n=n||A,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:F.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 T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),M.test(i[1])&&T.isPlainObject(e))for(i in e)b(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(a=k.getElementById(i[2]))&&(this[0]=a,this.length=1),this}).prototype=T.fn,A=T(k);var P=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,a=this.length,r=[],s="string"!=typeof t&&T(t);if(!D.test(t))for(;i<a;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&T.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?T.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?a.call(T(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return p(t,"parentNode")},parentsUntil:function(t,e,n){return p(t,"parentNode",n)},next:function(t){return O(t,"nextSibling")},prev:function(t){return O(t,"previousSibling")},nextAll:function(t){return p(t,"nextSibling")},prevAll:function(t){return p(t,"previousSibling")},nextUntil:function(t,e,n){return p(t,"nextSibling",n)},prevUntil:function(t,e,n){return p(t,"previousSibling",n)},siblings:function(t){return x((t.parentNode||{}).firstChild,t)},children:function(t){return x(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},function(i,a){T.fn[i]=function(t,e){var n=T.map(this,a,t);return"Until"!==i.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=T.filter(e,n)),1<this.length&&(R[i]||T.uniqueSort(n),P.test(i)&&n.reverse()),this.pushStack(n)}});var N=/[^\x20\t\r\n\f]+/g;function L(t){return t}function E(t){throw t}function H(t,e,n,i){var a;try{t&&b(a=t.promise)?a.call(t).done(e).fail(n):t&&b(a=t.then)?a.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},T.each(t.match(N)||[],function(t,e){n[e]=!0}),n):T.extend({},i);function a(){for(o=o||i.once,s=r=!0;u.length;d=-1)for(e=u.shift();++d<l.length;)!1===l[d].apply(e[0],e[1])&&i.stopOnFalse&&(d=l.length,e=!1);i.memory||(e=!1),r=!1,o&&(l=e?[]:"")}var r,e,s,o,l=[],u=[],d=-1,c={add:function(){return l&&(e&&!r&&(d=l.length-1,u.push(e)),function n(t){T.each(t,function(t,e){b(e)?i.unique&&c.has(e)||l.push(e):e&&e.length&&"string"!==w(e)&&n(e)})}(arguments),e&&!r&&a()),this},remove:function(){return T.each(arguments,function(t,e){for(var n;-1<(n=T.inArray(e,l,n));)l.splice(n,1),n<=d&&d--}),this},has:function(t){return t?-1<T.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return o=u=[],l=e="",this},disabled:function(){return!l},lock:function(){return o=u=[],e||r||(l=e=""),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=[t,(e=e||[]).slice?e.slice():e],u.push(e),r||a()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!s}};return c},T.extend({Deferred:function(t){var r=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],a="pending",s={state:function(){return a},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var a=arguments;return T.Deferred(function(i){T.each(r,function(t,e){var n=b(a[e[4]])&&a[e[4]];o[e[1]](function(){var t=n&&n.apply(this,arguments);t&&b(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),a=null}).promise()},then:function(e,n,i){var l=0;function u(a,r,s,o){return function(){function t(){var t,e;if(!(a<l)){if((t=s.apply(n,i))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(e)?o?e.call(t,u(l,r,L,o),u(l,r,E,o)):(l++,e.call(t,u(l,r,L,o),u(l,r,E,o),u(l,r,L,r.notifyWith))):(s!==L&&(n=void 0,i=[t]),(o||r.resolveWith)(n,i))}}var n=this,i=arguments,e=o?t:function(){try{t()}catch(t){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(t,e.stackTrace),l<=a+1&&(s!==E&&(n=void 0,i=[t]),r.rejectWith(n,i))}};a?e():(T.Deferred.getStackHook&&(e.stackTrace=T.Deferred.getStackHook()),S.setTimeout(e))}}return T.Deferred(function(t){r[0][3].add(u(0,t,b(i)?i:L,t.notifyWith)),r[1][3].add(u(0,t,b(e)?e:L)),r[2][3].add(u(0,t,b(n)?n:E))}).promise()},promise:function(t){return null!=t?T.extend(t,s):s}},o={};return T.each(r,function(t,e){var n=e[2],i=e[5];s[e[1]]=n.add,i&&n.add(function(){a=i},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),n.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=n.fireWith}),s.promise(o),t&&t.call(o,o),o},when:function(t){function e(e){return function(t){a[e]=this,r[e]=1<arguments.length?o.call(arguments):t,--n||s.resolveWith(a,r)}}var n=arguments.length,i=n,a=Array(i),r=o.call(arguments),s=T.Deferred();if(n<=1&&(H(t,s.done(e(i)).resolve,s.reject,!n),"pending"===s.state()||b(r[i]&&r[i].then)))return s.then();for(;i--;)H(r[i],e(i),s.reject);return s.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){S.console&&S.console.warn&&t&&j.test(t.name)&&S.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){S.setTimeout(function(){throw t})};var W=T.Deferred();function B(){k.removeEventListener("DOMContentLoaded",B),S.removeEventListener("load",B),T.ready()}T.fn.ready=function(t){return W.then(t).catch(function(t){T.readyException(t)}),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0)!==t&&0<--T.readyWait||W.resolveWith(k,[T])}}),T.ready.then=W.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?S.setTimeout(T.ready):(k.addEventListener("DOMContentLoaded",B),S.addEventListener("load",B));var Y=function(t,e,n,i,a,r,s){var o=0,l=t.length,u=null==n;if("object"===w(n))for(o in a=!0,n)Y(t,e,o,n[o],!0,r,s);else if(void 0!==i&&(a=!0,b(i)||(s=!0),u&&(e=s?(e.call(t,i),null):(u=e,function(t,e,n){return u.call(T(t),n)})),e))for(;o<l;o++)e(t[o],n,s?i:i.call(t[o],o,e(t[o],n)));return a?t:u?e.call(t):l?e(t[0],n):r},q=/^-ms-/,V=/-([a-z])/g;function $(t,e){return e.toUpperCase()}function z(t){return t.replace(q,"ms-").replace(V,$)}function U(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function G(){this.expando=T.expando+G.uid++}G.uid=1,G.prototype={cache:function(t){var e=t[this.expando];return e||(e={},U(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,a=this.cache(t);if("string"==typeof e)a[z(e)]=n;else for(i in e)a[z(i)]=e[i];return a},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][z(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(z):(e=z(e))in i?[e]:e.match(N)||[]).length;for(;n--;)delete i[e[n]]}void 0!==e&&!T.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&&!T.isEmptyObject(e)}};var Z=new G,X=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function K(t,e,n){var i,a;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Q,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(a=n)||"false"!==a&&("null"===a?null:a===+a+""?+a:J.test(a)?JSON.parse(a):a)}catch(t){}X.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return X.hasData(t)||Z.hasData(t)},data:function(t,e,n){return X.access(t,e,n)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,n){return Z.access(t,e,n)},_removeData:function(t,e){Z.remove(t,e)}}),T.fn.extend({data:function(n,t){var e,i,a,r=this[0],s=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){X.set(this,n)}):Y(this,function(t){var e;if(r&&void 0===t)return void 0!==(e=X.get(r,n))?e:void 0!==(e=K(r,n))?e:void 0;this.each(function(){X.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(a=X.get(r),1===r.nodeType&&!Z.get(r,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&0===(i=s[e].name).indexOf("data-")&&(i=z(i.slice(5)),K(r,i,a[i]));Z.set(r,"hasDataAttrs",!0)}return a},removeData:function(t){return this.each(function(){X.remove(this,t)})}}),T.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,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,a=n.shift(),r=T._queueHooks(t,e);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===e&&n.unshift("inprogress"),delete r.stop,a.call(t,function(){T.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Z.get(t,n)||Z.access(t,n,{empty:T.Callbacks("once memory").add(function(){Z.remove(t,[e+"queue",n])})})}}),T.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?T.queue(this[0],e):void 0===n?this:this.each(function(){var t=T.queue(this,e,n);T._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&T.dequeue(this,e)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--a||r.resolveWith(s,[s])}var i,a=1,r=T.Deferred(),s=this,o=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(i=Z.get(s[o],t+"queueHooks"))&&i.empty&&(a++,i.empty.add(n));return n(),r.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=k.documentElement,at=function(t){return T.contains(t.ownerDocument,t)},rt={composed:!0};it.getRootNode&&(at=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(rt)===t.ownerDocument});function st(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===T.css(t,"display")}function ot(t,e,n,i){var a,r,s=20,o=i?function(){return i.cur()}:function(){return T.css(t,e,"")},l=o(),u=n&&n[3]||(T.cssNumber[e]?"":"px"),d=t.nodeType&&(T.cssNumber[e]||"px"!==u&&+l)&&et.exec(T.css(t,e));if(d&&d[3]!==u){for(l/=2,u=u||d[3],d=+l||1;s--;)T.style(t,e,d+u),(1-r)*(1-(r=o()/l||.5))<=0&&(s=0),d/=r;d*=2,T.style(t,e,d+u),n=n||[]}return n&&(d=+d||+l||0,a=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=d,i.end=a)),a}var lt={};function ut(t,e){for(var n,i,a,r,s,o,l,u=[],d=0,c=t.length;d<c;d++)(i=t[d]).style&&(n=i.style.display,e?("none"===n&&(u[d]=Z.get(i,"display")||null,u[d]||(i.style.display="")),""===i.style.display&&st(i)&&(u[d]=(l=s=r=void 0,s=(a=i).ownerDocument,o=a.nodeName,(l=lt[o])||(r=s.body.appendChild(s.createElement(o)),l=T.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),lt[o]=l)))):"none"!==n&&(u[d]="none",Z.set(i,"display",n)));for(d=0;d<c;d++)null!=u[d]&&(t[d].style.display=u[d]);return t}T.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){st(this)?T(this).show():T(this).hide()})}});var dt,ct,ht=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;dt=k.createDocumentFragment().appendChild(k.createElement("div")),(ct=k.createElement("input")).setAttribute("type","radio"),ct.setAttribute("checked","checked"),ct.setAttribute("name","t"),dt.appendChild(ct),y.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",y.option=!!dt.lastChild;var gt={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 mt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?T.merge([t],n):n}function vt(t,e){for(var n=0,i=t.length;n<i;n++)Z.set(t[n],"globalEval",!e||Z.get(e[n],"globalEval"))}gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,y.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function bt(t,e,n,i,a){for(var r,s,o,l,u,d,c=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===w(r))T.merge(h,r.nodeType?[r]:r);else if(yt.test(r)){for(s=s||c.appendChild(e.createElement("div")),o=(ft.exec(r)||["",""])[1].toLowerCase(),l=gt[o]||gt._default,s.innerHTML=l[1]+T.htmlPrefilter(r)+l[2],d=l[0];d--;)s=s.lastChild;T.merge(h,s.childNodes),(s=c.firstChild).textContent=""}else h.push(e.createTextNode(r));for(c.textContent="",f=0;r=h[f++];)if(i&&-1<T.inArray(r,i))a&&a.push(r);else if(u=at(r),s=mt(c.appendChild(r),"script"),u&&vt(s),n)for(d=0;r=s[d++];)pt.test(r.type||"")&&n.push(r);return c}var _t=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function St(){return!0}function kt(){return!1}function Tt(t,e){return t===function(){try{return k.activeElement}catch(t){}}()==("focus"===e)}function Dt(t,e,n,i,a,r){var s,o;if("object"==typeof e){for(o in"string"!=typeof n&&(i=i||n,n=void 0),e)Dt(t,o,n,i,e[o],r);return t}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=kt;else if(!a)return t;return 1===r&&(s=a,(a=function(t){return T().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),t.each(function(){T.event.add(this,e,a,i,n)})}function Ct(t,a,r){r?(Z.set(t,a,!1),T.event.add(t,a,{namespace:!1,handler:function(t){var e,n,i=Z.get(this,a);if(1&t.isTrigger&&this[a]){if(i.length)(T.event.special[a]||{}).delegateType&&t.stopPropagation();else if(i=o.call(arguments),Z.set(this,a,i),e=r(this,a),this[a](),i!==(n=Z.get(this,a))||e?Z.set(this,a,!1):n={},i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n.value}else i.length&&(Z.set(this,a,{value:T.event.trigger(T.extend(i[0],T.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Z.get(t,a)&&T.event.add(t,a,St)}T.event={global:{},add:function(e,t,n,i,a){var r,s,o,l,u,d,c,h,f,p,g,m=Z.get(e);if(U(e))for(n.handler&&(n=(r=n).handler,a=r.selector),a&&T.find.matchesSelector(it,a),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(N)||[""]).length;u--;)f=g=(o=xt.exec(t[u])||[])[1],p=(o[2]||"").split(".").sort(),f&&(c=T.event.special[f]||{},f=(a?c.delegateType:c.bindType)||f,c=T.event.special[f]||{},d=T.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&T.expr.match.needsContext.test(a),namespace:p.join(".")},r),(h=l[f])||((h=l[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),T.event.global[f]=!0)},remove:function(t,e,n,i,a){var r,s,o,l,u,d,c,h,f,p,g,m=Z.hasData(t)&&Z.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(N)||[""]).length;u--;)if(f=g=(o=xt.exec(e[u])||[])[1],p=(o[2]||"").split(".").sort(),f){for(c=T.event.special[f]||{},h=l[f=(i?c.delegateType:c.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)d=h[r],!a&&g!==d.origType||n&&n.guid!==d.guid||o&&!o.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(h.splice(r,1),d.selector&&h.delegateCount--,c.remove&&c.remove.call(t,d));s&&!h.length&&(c.teardown&&!1!==c.teardown.call(t,p,m.handle)||T.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)T.event.remove(t,f+e[u],n,i,!0);T.isEmptyObject(l)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,n,i,a,r,s,o=new Array(arguments.length),l=T.event.fix(t),u=(Z.get(this,"events")||Object.create(null))[l.type]||[],d=T.event.special[l.type]||{};for(o[0]=l,e=1;e<arguments.length;e++)o[e]=arguments[e];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(s=T.event.handlers.call(this,l,u),e=0;(a=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((T.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,o))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,a,r,s,o=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&1<=t.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[a=(i=e[n]).selector+" "]&&(s[a]=i.needsContext?-1<T(a,this).index(u):T.find(a,this,null,[u]).length),s[a]&&r.push(i);r.length&&o.push({elem:u,handlers:r})}return u=this,l<e.length&&o.push({elem:u,handlers:e.slice(l)}),o},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ht.test(e.type)&&e.click&&C(e,"input")&&Ct(e,"click",St),!1},trigger:function(t){var e=this||t;return ht.test(e.type)&&e.click&&C(e,"input")&&Ct(e,"click"),!0},_default:function(t){var e=t.target;return ht.test(e.type)&&e.click&&C(e,"input")&&Z.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?St:kt,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&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:kt,isPropagationStopped:kt,isImmediatePropagationStopped:kt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=St,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=St,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=St,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.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&&_t.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&wt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(t,e){T.event.special[t]={setup:function(){return Ct(this,t,Tt),!1},trigger:function(){return Ct(this,t),!0},delegateType:e}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,a){T.event.special[t]={delegateType:a,bindType:a,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||T.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=a),e}}}),T.fn.extend({on:function(t,e,n,i){return Dt(this,t,e,n,i)},one:function(t,e,n,i){return Dt(this,t,e,n,i,1)},off:function(t,e,n){var i,a;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=kt),this.each(function(){T.event.remove(this,t,n,e)});for(a in t)this.off(a,e,t[a]);return this}});var Mt=/<script|<style|<link/i,It=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ft(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Pt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Rt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,e){var n,i,a,r,s,o;if(1===e.nodeType){if(Z.hasData(t)&&(o=Z.get(t).events))for(a in Z.remove(e,"handle events"),o)for(n=0,i=o[a].length;n<i;n++)T.event.add(e,a,o[a][n]);X.hasData(t)&&(r=X.access(t),s=T.extend({},r),X.set(e,s))}}function Nt(n,i,a,r){i=m(i);var t,e,s,o,l,u,d=0,c=n.length,h=c-1,f=i[0],p=b(f);if(p||1<c&&"string"==typeof f&&!y.checkClone&&It.test(f))return n.each(function(t){var e=n.eq(t);p&&(i[0]=f.call(this,t,e.html())),Nt(e,i,a,r)});if(c&&(e=(t=bt(i,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(o=(s=T.map(mt(t,"script"),Pt)).length;d<c;d++)l=t,d!==h&&(l=T.clone(l,!0,!0),o&&T.merge(s,mt(l,"script"))),a.call(n[d],l,d);if(o)for(u=s[s.length-1].ownerDocument,T.map(s,Rt),d=0;d<o;d++)l=s[d],pt.test(l.type||"")&&!Z.access(l,"globalEval")&&T.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):_(l.textContent.replace(At,""),l,u))}return n}function Lt(t,e,n){for(var i,a=e?T.filter(e,t):t,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||T.cleanData(mt(i)),i.parentNode&&(n&&at(i)&&vt(mt(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,a,r,s,o,l,u,d=t.cloneNode(!0),c=at(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(s=mt(d),i=0,a=(r=mt(t)).length;i<a;i++)o=r[i],"input"===(u=(l=s[i]).nodeName.toLowerCase())&&ht.test(o.type)?l.checked=o.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=o.defaultValue);if(e)if(n)for(r=r||mt(t),s=s||mt(d),i=0,a=r.length;i<a;i++)Ot(r[i],s[i]);else Ot(t,d);return 0<(s=mt(d,"script")).length&&vt(s,!c&&mt(t,"script")),d},cleanData:function(t){for(var e,n,i,a=T.event.special,r=0;void 0!==(n=t[r]);r++)if(U(n)){if(e=n[Z.expando]){if(e.events)for(i in e.events)a[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[Z.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Lt(this,t,!0)},remove:function(t){return Lt(this,t)},text:function(t){return Y(this,function(t){return void 0===t?T.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 Nt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)})},prepend:function(){return Nt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Nt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Nt(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&&(T.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.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&&!Mt.test(t)&&!gt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(mt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return Nt(this,arguments,function(t){var e=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(mt(this)),e&&e.replaceChild(t,this))},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){T.fn[t]=function(t){for(var e,n=[],i=T(t),a=i.length-1,r=0;r<=a;r++)e=r===a?this:this.clone(!0),T(i[r])[s](e),l.apply(n,e.get());return this.pushStack(n)}});function Et(t,e,n){var i,a,r={};for(a in e)r[a]=t.style[a],t.style[a]=e[a];for(a in i=n.call(t),e)t.style[a]=r[a];return i}var Ht,jt,Wt,Bt,Yt,qt,Vt,$t,zt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Ut=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=S),e.getComputedStyle(t)},Gt=new RegExp(nt.join("|"),"i");function Zt(t,e,n){var i,a,r,s,o=t.style;return(n=n||Ut(t))&&(""!==(s=n.getPropertyValue(e)||n[e])||at(t)||(s=T.style(t,e)),!y.pixelBoxStyles()&&zt.test(s)&&Gt.test(e)&&(i=o.width,a=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=i,o.minWidth=a,o.maxWidth=r)),void 0!==s?s+"":s}function Xt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function Jt(){if($t){Vt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",$t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(Vt).appendChild($t);var t=S.getComputedStyle($t);Ht="1%"!==t.top,qt=12===Qt(t.marginLeft),$t.style.right="60%",Bt=36===Qt(t.right),jt=36===Qt(t.width),$t.style.position="absolute",Wt=12===Qt($t.offsetWidth/3),it.removeChild(Vt),$t=null}}function Qt(t){return Math.round(parseFloat(t))}Vt=k.createElement("div"),($t=k.createElement("div")).style&&($t.style.backgroundClip="content-box",$t.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===$t.style.backgroundClip,T.extend(y,{boxSizingReliable:function(){return Jt(),jt},pixelBoxStyles:function(){return Jt(),Bt},pixelPosition:function(){return Jt(),Ht},reliableMarginLeft:function(){return Jt(),qt},scrollboxSize:function(){return Jt(),Wt},reliableTrDimensions:function(){var t,e,n,i;return null==Yt&&(t=k.createElement("table"),e=k.createElement("tr"),n=k.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",n.style.height="9px",it.appendChild(t).appendChild(e).appendChild(n),i=S.getComputedStyle(e),Yt=3<parseInt(i.height),it.removeChild(t)),Yt}}));var Kt=["Webkit","Moz","ms"],te=k.createElement("div").style,ee={};function ne(t){return T.cssProps[t]||ee[t]||(t in te?t:ee[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Kt.length;n--;)if((t=Kt[n]+e)in te)return t}(t)||t)}var ie=/^(none|table(?!-c[ea]).+)/,ae=/^--/,re={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function oe(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function le(t,e,n,i,a,r){var s="width"===e?1:0,o=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=T.css(t,n+nt[s],!0,a)),i?("content"===n&&(l-=T.css(t,"padding"+nt[s],!0,a)),"margin"!==n&&(l-=T.css(t,"border"+nt[s]+"Width",!0,a))):(l+=T.css(t,"padding"+nt[s],!0,a),"padding"!==n?l+=T.css(t,"border"+nt[s]+"Width",!0,a):o+=T.css(t,"border"+nt[s]+"Width",!0,a));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-o-.5))||0),l}function ue(t,e,n){var i=Ut(t),a=(!y.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,i),r=a,s=Zt(t,e,i),o="offset"+e[0].toUpperCase()+e.slice(1);if(zt.test(s)){if(!n)return s;s="auto"}return(!y.boxSizingReliable()&&a||!y.reliableTrDimensions()&&C(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(t,"display",!1,i))&&t.getClientRects().length&&(a="border-box"===T.css(t,"boxSizing",!1,i),(r=o in t)&&(s=t[o])),(s=parseFloat(s)||0)+le(t,e,n||(a?"border":"content"),r,i,s)+"px"}function de(t,e,n,i,a){return new de.prototype.init(t,e,n,i,a)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(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 a,r,s,o=z(e),l=ae.test(e),u=t.style;if(l||(e=ne(o)),s=T.cssHooks[e]||T.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(a=s.get(t,!1,i))?a:u[e];"string"==(r=typeof n)&&(a=et.exec(n))&&a[1]&&(n=ot(t,e,a),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=a&&a[3]||(T.cssNumber[o]?"":"px")),y.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var a,r,s,o=z(e);return ae.test(e)||(e=ne(o)),(s=T.cssHooks[e]||T.cssHooks[o])&&"get"in s&&(a=s.get(t,!0,n)),void 0===a&&(a=Zt(t,e,i)),"normal"===a&&e in se&&(a=se[e]),""===n||n?(r=parseFloat(a),!0===n||isFinite(r)?r||0:a):a}}),T.each(["height","width"],function(t,l){T.cssHooks[l]={get:function(t,e,n){if(e)return!ie.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,l,n):Et(t,re,function(){return ue(t,l,n)})},set:function(t,e,n){var i,a=Ut(t),r=!y.scrollboxSize()&&"absolute"===a.position,s=(r||n)&&"border-box"===T.css(t,"boxSizing",!1,a),o=n?le(t,l,n,s,a):0;return s&&r&&(o-=Math.ceil(t["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(a[l])-le(t,l,"border",!1,a)-.5)),o&&(i=et.exec(e))&&"px"!==(i[3]||"px")&&(t.style[l]=e,e=T.css(t,l)),oe(0,e,o)}}}),T.cssHooks.marginLeft=Xt(y.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Et(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(a,r){T.cssHooks[a+r]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[a+nt[e]+r]=i[e]||i[e-2]||i[0];return n}},"margin"!==a&&(T.cssHooks[a+r].set=oe)}),T.fn.extend({css:function(t,e){return Y(this,function(t,e,n){var i,a,r={},s=0;if(Array.isArray(e)){for(i=Ut(t),a=e.length;s<a;s++)r[e[s]]=T.css(t,e[s],!1,i);return r}return void 0!==n?T.style(t,e,n):T.css(t,e)},t,e,1<arguments.length)}}),((T.Tween=de).prototype={constructor:de,init:function(t,e,n,i,a,r){this.elem=t,this.prop=n,this.easing=a||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(T.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=T.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):de.propHooks._default.set(this),this}}).init.prototype=de.prototype,(de.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=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[ne(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=de.prototype.init,T.fx.step={};var ce,he,fe,pe,ge=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ve(){he&&(!1===k.hidden&&S.requestAnimationFrame?S.requestAnimationFrame(ve):S.setTimeout(ve,T.fx.interval),T.fx.tick())}function ye(){return S.setTimeout(function(){ce=void 0}),ce=Date.now()}function be(t,e){var n,i=0,a={height:t};for(e=e?1:0;i<4;i+=2-e)a["margin"+(n=nt[i])]=a["padding"+n]=t;return e&&(a.opacity=a.width=t),a}function _e(t,e,n){for(var i,a=(we.tweeners[e]||[]).concat(we.tweeners["*"]),r=0,s=a.length;r<s;r++)if(i=a[r].call(n,e,t))return i}function we(r,t,e){var n,s,i=0,a=we.prefilters.length,o=T.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=ce||ye(),e=Math.max(0,u.startTime+u.duration-t),n=1-(e/u.duration||0),i=0,a=u.tweens.length;i<a;i++)u.tweens[i].run(n);return o.notifyWith(r,[u,n,e]),n<1&&a?e:(a||o.notifyWith(r,[u,1,0]),o.resolveWith(r,[u]),!1)},u=o.promise({elem:r,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},e),originalProperties:t,originalOptions:e,startTime:ce||ye(),duration:e.duration,tweens:[],createTween:function(t,e){var n=T.Tween(r,u.opts,t,e,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(n),n},stop:function(t){var e=0,n=t?u.tweens.length:0;if(s)return this;for(s=!0;e<n;e++)u.tweens[e].run(1);return t?(o.notifyWith(r,[u,1,0]),o.resolveWith(r,[u,t])):o.rejectWith(r,[u,t]),this}}),d=u.props;for(function(t,e){var n,i,a,r,s;for(n in t)if(a=e[i=z(n)],r=t[n],Array.isArray(r)&&(a=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=T.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=a);else e[i]=a}(d,u.opts.specialEasing);i<a;i++)if(n=we.prefilters[i].call(u,r,d,u.opts))return b(n.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return T.map(d,_e,u),b(u.opts.start)&&u.opts.start.call(r,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:r,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(we,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ot(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,a=(t=b(t)?(e=t,["*"]):t.match(N)).length;i<a;i++)n=t[i],we.tweeners[n]=we.tweeners[n]||[],we.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,a,r,s,o,l,u,d,c="width"in e||"height"in e,h=this,f={},p=t.style,g=t.nodeType&&st(t),m=Z.get(t,"fxshow");for(i in n.queue||(null==(s=T._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,T.queue(t,"fx").length||s.empty.fire()})})),e)if(a=e[i],ge.test(a)){if(delete e[i],r=r||"toggle"===a,a===(g?"hide":"show")){if("show"!==a||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||T.style(t,i)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(f))for(i in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=Z.get(t,"display")),"none"===(d=T.css(t,"display"))&&(u?d=u:(ut([t],!0),u=t.style.display||u,d=T.css(t,"display"),ut([t]))),("inline"===d||"inline-block"===d&&null!=u)&&"none"===T.css(t,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(d=p.display,u="none"===d?"":d)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=Z.access(t,"fxshow",{display:u}),r&&(m.hidden=!g),g&&ut([t],!0),h.done(function(){for(i in g||ut([t]),Z.remove(t,"fxshow"),f)T.style(t,i,f[i])})),l=_e(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?we.prefilters.unshift(t):we.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||b(t)&&t,duration:t,easing:n&&e||e&&!b(e)&&e};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function a(){var t=we(this,T.extend({},e),s);(r||Z.get(this,"finish"))&&t.stop(!0)}var r=T.isEmptyObject(e),s=T.speed(t,n,i);return a.finish=a,r||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(a,t,r){function s(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof a&&(r=t,t=a,a=void 0),t&&this.queue(a||"fx",[]),this.each(function(){var t=!0,e=null!=a&&a+"queueHooks",n=T.timers,i=Z.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&me.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=a&&n[e].queue!==a||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||T.dequeue(this,a)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=Z.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],a=T.timers,r=n?n.length:0;for(e.finish=!0,T.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===s&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),T.each(["toggle","show","hide"],function(t,i){var a=T.fn[i];T.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?a.apply(this,arguments):this.animate(be(i,!0),t,e,n)}}),T.each({slideDown:be("show"),slideUp:be("hide"),slideToggle:be("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){T.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(ce=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),ce=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){he||(he=!0,ve())},T.fx.stop=function(){he=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(i,t){return i=T.fx&&T.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=S.setTimeout(t,i);e.stop=function(){S.clearTimeout(n)}})},fe=k.createElement("input"),pe=k.createElement("select").appendChild(k.createElement("option")),fe.type="checkbox",y.checkOn=""!==fe.value,y.optSelected=pe.selected,(fe=k.createElement("input")).value="t",fe.type="radio",y.radioValue="t"===fe.value;var xe,Se=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return Y(this,T.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,n){var i,a,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?T.prop(t,e,n):(1===r&&T.isXMLDoc(t)||(a=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):a&&"set"in a&&void 0!==(i=a.set(t,n,e))?i:(t.setAttribute(e,n+""),n):a&&"get"in a&&null!==(i=a.get(t,e))?i:null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,a=e&&e.match(N);if(a&&1===t.nodeType)for(;n=a[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var s=Se[e]||T.find.attr;Se[e]=function(t,e,n){var i,a,r=e.toLowerCase();return n||(a=Se[r],Se[r]=i,i=null!=s(t,e,n)?r:null,Se[r]=a),i}});var ke=/^(?:input|select|textarea|button)$/i,Te=/^(?:a|area)$/i;function De(t){return(t.match(N)||[]).join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function Me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(N)||[]}T.fn.extend({prop:function(t,e){return Y(this,T.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,n){var i,a,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&T.isXMLDoc(t)||(e=T.propFix[e]||e,a=T.propHooks[e]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(t,n,e))?i:t[e]=n:a&&"get"in a&&null!==(i=a.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(T.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)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(e){var t,n,i,a,r,s,o,l=0;if(b(e))return this.each(function(t){T(this).addClass(e.call(this,t,Ce(this)))});if((t=Me(e)).length)for(;n=this[l++];)if(a=Ce(n),i=1===n.nodeType&&" "+De(a)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a!==(o=De(i))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,i,a,r,s,o,l=0;if(b(e))return this.each(function(t){T(this).removeClass(e.call(this,t,Ce(this)))});if(!arguments.length)return this.attr("class","");if((t=Me(e)).length)for(;n=this[l++];)if(a=Ce(n),i=1===n.nodeType&&" "+De(a)+" "){for(s=0;r=t[s++];)for(;-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");a!==(o=De(i))&&n.setAttribute("class",o)}return this},toggleClass:function(a,e){var r=typeof a,s="string"==r||Array.isArray(a);return"boolean"==typeof e&&s?e?this.addClass(a):this.removeClass(a):b(a)?this.each(function(t){T(this).toggleClass(a.call(this,t,Ce(this),e),e)}):this.each(function(){var t,e,n,i;if(s)for(e=0,n=T(this),i=Me(a);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==a&&"boolean"!=r||((t=Ce(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===a?"":Z.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+De(Ce(n))+" ").indexOf(e))return!0;return!1}});var Ie=/\r/g;T.fn.extend({val:function(n){var i,t,a,e=this[0];return arguments.length?(a=b(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=a?n.call(this,t,T(this).val()):n)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=T.map(e,function(t){return null==t?"":t+""})),(i=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):e?(i=T.valHooks[e.type]||T.valHooks[e.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(Ie,""):null==t?"":t:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:De(T.text(t))}},select:{get:function(t){var e,n,i,a=t.options,r=t.selectedIndex,s="select-one"===t.type,o=s?null:[],l=s?r+1:a.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=a[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=T(n).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var n,i,a=t.options,r=T.makeArray(e),s=a.length;s--;)((i=a[s]).selected=-1<T.inArray(T.valHooks.option.get(i),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<T.inArray(T(t).val(),e)}},y.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),y.focusin="onfocusin"in S;function Ae(t){t.stopPropagation()}var Fe=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(t,e,n,i){var a,r,s,o,l,u,d,c,h=[n||k],f=v.call(t,"type")?t.type:t,p=v.call(t,"namespace")?t.namespace.split("."):[];if(r=c=s=n=n||k,3!==n.nodeType&&8!==n.nodeType&&!Fe.test(f+T.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(t=t[T.expando]?t:new T.Event(f,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),d=T.event.special[f]||{},i||!d.trigger||!1!==d.trigger.apply(n,e))){if(!i&&!d.noBubble&&!g(n)){for(o=d.delegateType||f,Fe.test(o+f)||(r=r.parentNode);r;r=r.parentNode)h.push(r),s=r;s===(n.ownerDocument||k)&&h.push(s.defaultView||s.parentWindow||S)}for(a=0;(r=h[a++])&&!t.isPropagationStopped();)c=r,t.type=1<a?o:d.bindType||f,(u=(Z.get(r,"events")||Object.create(null))[t.type]&&Z.get(r,"handle"))&&u.apply(r,e),(u=l&&r[l])&&u.apply&&U(r)&&(t.result=u.apply(r,e),!1===t.result&&t.preventDefault());return t.type=f,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),e)||!U(n)||l&&b(n[f])&&!g(n)&&((s=n[l])&&(n[l]=null),T.event.triggered=f,t.isPropagationStopped()&&c.addEventListener(f,Ae),n[f](),t.isPropagationStopped()&&c.removeEventListener(f,Ae),T.event.triggered=void 0,s&&(n[l]=s)),t.result}},simulate:function(t,e,n){var i=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(i,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}}),y.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,i){function a(t){T.event.simulate(i,t.target,T.event.fix(t))}T.event.special[i]={setup:function(){var t=this.ownerDocument||this.document||this,e=Z.access(t,i);e||t.addEventListener(n,a,!0),Z.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=Z.access(t,i)-1;e?Z.access(t,i,e):(t.removeEventListener(n,a,!0),Z.remove(t,i))}}});var Pe=S.location,Re={guid:Date.now()},Oe=/\?/;T.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new S.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+t),e};var Ne=/\[\]$/,Le=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,He=/^(?:input|select|textarea|keygen)/i;function je(n,t,i,a){var e;if(Array.isArray(t))T.each(t,function(t,e){i||Ne.test(n)?a(n,e):je(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,a)});else if(i||"object"!==w(t))a(n,t);else for(e in t)je(n+"["+e+"]",t[e],i,a)}T.param=function(t,e){function n(t,e){var n=b(e)?e():e;a[a.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)}var i,a=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){n(this.name,this.value)});else for(i in t)je(i,t[i],e,n);return a.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&He.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!ht.test(t))}).map(function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(t){return{name:e.name,value:t.replace(Le,"\r\n")}}):{name:e.name,value:n.replace(Le,"\r\n")}}).get()}});var We=/%20/g,Be=/#.*$/,Ye=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ve=/^(?:GET|HEAD)$/,$e=/^\/\//,ze={},Ue={},Ge="*/".concat("*"),Ze=k.createElement("a");function Xe(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,a=t.toLowerCase().match(N)||[];if(b(e))for(;n=a[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function Je(e,a,r,s){var o={},l=e===Ue;function u(t){var i;return o[t]=!0,T.each(e[t]||[],function(t,e){var n=e(a,r,s);return"string"!=typeof n||l||o[n]?l?!(i=n):void 0:(a.dataTypes.unshift(n),u(n),!1)}),i}return u(a.dataTypes[0])||!o["*"]&&u("*")}function Qe(t,e){var n,i,a=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((a[n]?t:i=i||{})[n]=e[n]);return i&&T.extend(!0,t,i),t}Ze.href=Pe.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Pe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,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":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Qe(Qe(t,T.ajaxSettings),e):Qe(T.ajaxSettings,t)},ajaxPrefilter:Xe(ze),ajaxTransport:Xe(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var d,c,h,n,f,i,p,g,a,r,m=T.ajaxSetup({},e),v=m.context||m,y=m.context&&(v.nodeType||v.jquery)?T(v):T.event,b=T.Deferred(),_=T.Callbacks("once memory"),w=m.statusCode||{},s={},o={},l="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(p){if(!n)for(n={};e=qe.exec(h);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(t,e){return null==p&&(t=o[t.toLowerCase()]=o[t.toLowerCase()]||t,s[t]=e),this},overrideMimeType:function(t){return null==p&&(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(p)x.always(t[x.status]);else for(e in t)w[e]=[w[e],t[e]];return this},abort:function(t){var e=t||l;return d&&d.abort(e),u(0,e),this}};if(b.promise(x),m.url=((t||m.url||Pe.href)+"").replace($e,Pe.protocol+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(N)||[""],null==m.crossDomain){i=k.createElement("a");try{i.href=m.url,i.href=i.href,m.crossDomain=Ze.protocol+"//"+Ze.host!=i.protocol+"//"+i.host}catch(t){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=T.param(m.data,m.traditional)),Je(ze,m,e,x),p)return x;for(a in(g=T.event&&m.global)&&0==T.active++&&T.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Ve.test(m.type),c=m.url.replace(Be,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(We,"+")):(r=m.url.slice(c.length),m.data&&(m.processData||"string"==typeof m.data)&&(c+=(Oe.test(c)?"&":"?")+m.data,delete m.data),!1===m.cache&&(c=c.replace(Ye,"$1"),r=(Oe.test(c)?"&":"?")+"_="+Re.guid+++r),m.url=c+r),m.ifModified&&(T.lastModified[c]&&x.setRequestHeader("If-Modified-Since",T.lastModified[c]),T.etag[c]&&x.setRequestHeader("If-None-Match",T.etag[c])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ge+"; q=0.01":""):m.accepts["*"]),m.headers)x.setRequestHeader(a,m.headers[a]);if(m.beforeSend&&(!1===m.beforeSend.call(v,x,m)||p))return x.abort();if(l="abort",_.add(m.complete),x.done(m.success),x.fail(m.error),d=Je(Ue,m,e,x)){if(x.readyState=1,g&&y.trigger("ajaxSend",[x,m]),p)return x;m.async&&0<m.timeout&&(f=S.setTimeout(function(){x.abort("timeout")},m.timeout));try{p=!1,d.send(s,u)}catch(t){if(p)throw t;u(-1,t)}}else u(-1,"No Transport");function u(t,e,n,i){var a,r,s,o,l,u=e;p||(p=!0,f&&S.clearTimeout(f),d=void 0,h=i||"",x.readyState=0<t?4:0,a=200<=t&&t<300||304===t,n&&(o=function(t,e,n){for(var i,a,r,s,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in o)if(o[a]&&o[a].test(i)){l.unshift(a);break}if(l[0]in n)r=l[0];else{for(a in n){if(!l[0]||t.converters[a+" "+l[0]]){r=a;break}s=s||a}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(m,x,n)),!a&&-1<T.inArray("script",m.dataTypes)&&(m.converters["text script"]=function(){}),o=function(t,e,n,i){var a,r,s,o,l,u={},d=t.dataTypes.slice();if(d[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=d.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(a in u)if((o=a.split(" "))[1]===r&&(s=u[l+" "+o[0]]||u["* "+o[0]])){!0===s?s=u[a]:!0!==u[a]&&(r=o[0],d.unshift(o[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 "+l+" to "+r}}}return{state:"success",data:e}}(m,o,x,a),a?(m.ifModified&&((l=x.getResponseHeader("Last-Modified"))&&(T.lastModified[c]=l),(l=x.getResponseHeader("etag"))&&(T.etag[c]=l)),204===t||"HEAD"===m.type?u="nocontent":304===t?u="notmodified":(u=o.state,r=o.data,a=!(s=o.error))):(s=u,!t&&u||(u="error",t<0&&(t=0))),x.status=t,x.statusText=(e||u)+"",a?b.resolveWith(v,[r,u,x]):b.rejectWith(v,[x,u,s]),x.statusCode(w),w=void 0,g&&y.trigger(a?"ajaxSuccess":"ajaxError",[x,m,a?r:s]),_.fireWith(v,[x,u]),g&&(y.trigger("ajaxComplete",[x,m]),--T.active||T.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,a){T[a]=function(t,e,n,i){return b(e)&&(i=i||n,n=e,e=void 0),T.ajax(T.extend({url:t,type:a,dataType:i,data:e,success:n},T.isPlainObject(t)&&t))}}),T.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=T(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(n){return b(n)?this.each(function(t){T(this).wrapInner(n.call(this,t))}):this.each(function(){var t=T(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=b(e);return this.each(function(t){T(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new S.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},tn=T.ajaxSettings.xhr();y.cors=!!tn&&"withCredentials"in tn,y.ajax=tn=!!tn,T.ajaxTransport(function(a){var r,s;if(y.cors||tn&&!a.crossDomain)return{send:function(t,e){var n,i=a.xhr();if(i.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(n in a.xhrFields)i[n]=a.xhrFields[n];for(n in a.mimeType&&i.overrideMimeType&&i.overrideMimeType(a.mimeType),a.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);r=function(t){return function(){r&&(r=s=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Ke[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),s=i.onerror=i.ontimeout=r("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&S.setTimeout(function(){r&&s()})},r=r("abort");try{i.send(a.hasContent&&a.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),T.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),T.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 T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(n){var i,a;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){i=T("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",a=function(t){i.remove(),a=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(i[0])},abort:function(){a&&a()}}});var en,nn=[],an=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=nn.pop()||T.expando+"_"+Re.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var i,a,r,s=!1!==t.jsonp&&(an.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&an.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(an,"$1"+i):!1!==t.jsonp&&(t.url+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||T.error(i+" was not called"),r[0]},t.dataTypes[0]="json",a=S[i],S[i]=function(){r=arguments},n.always(function(){void 0===a?T(S).removeProp(i):S[i]=a,t[i]&&(t.jsonpCallback=e.jsonpCallback,nn.push(i)),r&&b(a)&&a(r[0]),r=a=void 0}),"script"}),y.createHTMLDocument=((en=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(y.createHTMLDocument?((i=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(i)):e=k),r=!n&&[],(a=M.exec(t))?[e.createElement(a[1])]:(a=bt([t],e,r),r&&r.length&&T(r).remove(),T.merge([],a.childNodes)));var i,a,r},T.fn.load=function(t,e,n){var i,a,r,s=this,o=t.indexOf(" ");return-1<o&&(i=De(t.slice(o)),t=t.slice(0,o)),b(e)?(n=e,e=void 0):e&&"object"==typeof e&&(a="POST"),0<s.length&&T.ajax({url:t,type:a||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(t,e,n){var i,a,r,s,o,l,u=T.css(t,"position"),d=T(t),c={};"static"===u&&(t.style.position="relative"),o=d.offset(),r=T.css(t,"top"),l=T.css(t,"left"),a=("absolute"===u||"fixed"===u)&&-1<(r+l).indexOf("auto")?(s=(i=d.position()).top,i.left):(s=parseFloat(r)||0,parseFloat(l)||0),b(e)&&(e=e.call(t,n,T.extend({},o))),null!=e.top&&(c.top=e.top-o.top+s),null!=e.left&&(c.left=e.left-o.left+a),"using"in e?e.using.call(t,c):("number"==typeof c.top&&(c.top+="px"),"number"==typeof c.left&&(c.left+="px"),d.css(c))}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],a={top:0,left:0};if("fixed"===T.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"===T.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((a=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),a.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-a.top-T.css(i,"marginTop",!0),left:e.left-a.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||it})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,a){var r="pageYOffset"===a;T.fn[e]=function(t){return Y(this,function(t,e,n){var i;if(g(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n)return i?i[a]:t[e];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),T.each(["top","left"],function(t,n){T.cssHooks[n]=Xt(y.pixelPosition,function(t,e){if(e)return e=Zt(t,n),zt.test(e)?T(t).position()[n]+"px":e})}),T.each({Height:"height",Width:"width"},function(s,o){T.each({padding:"inner"+s,content:o,"":"outer"+s},function(i,r){T.fn[r]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),a=i||(!0===t||!0===e?"margin":"border");return Y(this,function(t,e,n){var i;return g(t)?0===r.indexOf("outer")?t["inner"+s]:t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?T.css(t,e,a):T.style(t,e,n,a)},o,n?t:void 0,n)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.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)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){T.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}});var rn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,i,a;if("string"==typeof e&&(n=t[e],e=t,t=n),b(t))return i=o.call(arguments,2),(a=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||T.guid++,a},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=b,T.isWindow=g,T.camelCase=z,T.type=w,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(rn,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var sn=S.jQuery,on=S.$;return T.noConflict=function(t){return S.$===T&&(S.$=on),t&&S.jQuery===T&&(S.jQuery=sn),T},void 0===t&&(S.jQuery=S.$=T),T}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(i){"use strict";i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;return i(this).one("bsTransitionEnd",function(){e=!0}),setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.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}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(r){"use strict";function s(t){r(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.close=function(t){var e=r(this),n=e.attr("data-target");n="#"===(n=n||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""))?[]:n;var i=r(document).find(n);function a(){i.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),i.length||(i=e.closest(".alert")),i.trigger(t=r.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),r.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",a).emulateTransitionEnd(s.TRANSITION_DURATION):a())};var t=r.fn.alert;r.fn.alert=function(n){return this.each(function(){var t=r(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new s(this)),"string"==typeof n&&e[n].call(t)})},r.fn.alert.Constructor=s,r.fn.alert.noConflict=function(){return r.fn.alert=t,this},r(document).on("click.bs.alert.data-api",e,s.prototype.close)}(jQuery),function(r){"use strict";var a=function(t,e){this.$element=r(t),this.options=r.extend({},a.DEFAULTS,e),this.isLoading=!1};function n(i){return this.each(function(){var t=r(this),e=t.data("bs.button"),n="object"==typeof i&&i;e||t.data("bs.button",e=new a(this,n)),"toggle"==i?e.toggle():i&&e.setState(i)})}a.VERSION="3.4.1",a.DEFAULTS={loadingText:"loading..."},a.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",a=n.data();t+="Text",null==a.resetText&&n.data("resetText",n[i]()),setTimeout(r.proxy(function(){n[i](null==a[t]?this.options[t]:a[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},a.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=r.fn.button;r.fn.button=n,r.fn.button.Constructor=a,r.fn.button.noConflict=function(){return r.fn.button=t,this},r(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=r(t.target).closest(".btn");n.call(e,"toggle"),r(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),e.is("input,button")?e.trigger("focus"):e.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){r(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(c){"use strict";function h(t,e){this.$element=c(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))}function o(a){return this.each(function(){var t=c(this),e=t.data("bs.carousel"),n=c.extend({},h.DEFAULTS,t.data(),"object"==typeof a&&a),i="string"==typeof a?a:n.slide;e||t.data("bs.carousel",e=new h(this,n)),"number"==typeof a?e.to(a):i?e[i]():n.interval&&e.pause().cycle()})}h.VERSION="3.4.1",h.TRANSITION_DURATION=600,h.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},h.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()}},h.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},h.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},h.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)},h.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},h.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},h.prototype.next=function(){if(!this.sliding)return this.slide("next")},h.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},h.prototype.slide=function(t,e){var n=this.$element.find(".item.active"),i=e||this.getItemForDirection(t,n),a=this.interval,r="next"==t?"left":"right",s=this;if(i.hasClass("active"))return this.sliding=!1;var o=i[0],l=c.Event("slide.bs.carousel",{relatedTarget:o,direction:r});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=c(this.$indicators.children()[this.getItemIndex(i)]);u&&u.addClass("active")}var d=c.Event("slid.bs.carousel",{relatedTarget:o,direction:r});return c.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),"object"==typeof i&&i.length&&i[0].offsetWidth,n.addClass(r),i.addClass(r),n.one("bsTransitionEnd",function(){i.removeClass([t,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(d)},0)}).emulateTransitionEnd(h.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var t=c.fn.carousel;c.fn.carousel=o,c.fn.carousel.Constructor=h,c.fn.carousel.noConflict=function(){return c.fn.carousel=t,this};function e(t){var e=c(this),n=e.attr("href");n=n&&n.replace(/.*(?=#[^\s]+$)/,"");var i=e.attr("data-target")||n,a=c(document).find(i);if(a.hasClass("carousel")){var r=c.extend({},a.data(),e.data()),s=e.attr("data-slide-to");s&&(r.interval=!1),o.call(a,r),s&&a.data("bs.carousel").to(s),t.preventDefault()}}c(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var t=c(this);o.call(t,t.data())})})}(jQuery),function(s){"use strict";var o=function(t,e){this.$element=s(t),this.options=s.extend({},o.DEFAULTS,e),this.$trigger=s('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function a(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return s(document).find(n)}function l(i){return this.each(function(){var t=s(this),e=t.data("bs.collapse"),n=s.extend({},o.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new o(this,n)),"string"==typeof i&&e[i]()})}o.VERSION="3.4.1",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var n=s.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(l.call(e,"hide"),t||e.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](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")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!s.support.transition)return a.call(this);var r=s.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",s.proxy(a,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[i](this.$element[0][r])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=s.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[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 n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!s.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",s.proxy(n,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return s(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(s.proxy(function(t,e){var n=s(e);this.addAriaAndCollapsedClass(a(n),n)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=s.fn.collapse;s.fn.collapse=l,s.fn.collapse.Constructor=o,s.fn.collapse.noConflict=function(){return s.fn.collapse=t,this},s(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=s(this);e.attr("data-target")||t.preventDefault();var n=a(e),i=n.data("bs.collapse")?"toggle":e.data();l.call(n,i)})}(jQuery),function(s){"use strict";function i(t){s(t).on("click.bs.dropdown",this.toggle)}var o='[data-toggle="dropdown"]';function l(t){var e=t.attr("data-target"),n="#"!==(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?s(document).find(e):null;return n&&n.length?n:t.parent()}function r(i){i&&3===i.which||(s(".dropdown-backdrop").remove(),s(o).each(function(){var t=s(this),e=l(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&s.contains(e[0],i.target)||(e.trigger(i=s.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(s.Event("hidden.bs.dropdown",n)))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(t){var e=s(this);if(!e.is(".disabled, :disabled")){var n=l(e),i=n.hasClass("open");if(r(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(s(this)).on("click",r);var a={relatedTarget:this};if(n.trigger(t=s.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(s.Event("shown.bs.dropdown",a))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=l(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(o).trigger("focus"),e.trigger("click");var a=n.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var r=a.index(t.target);38==t.which&&0<r&&r--,40==t.which&&r<a.length-1&&r++,~r||(r=0),a.eq(r).trigger("focus")}}}};var t=s.fn.dropdown;s.fn.dropdown=function(n){return this.each(function(){var t=s(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},s.fn.dropdown.Constructor=i,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=t,this},s(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,i.prototype.toggle).on("keydown.bs.dropdown.data-api",o,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(s){"use strict";function r(t,e){this.options=e,this.$body=s(document.body),this.$element=s(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,s.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function o(i,a){return this.each(function(){var t=s(this),e=t.data("bs.modal"),n=s.extend({},r.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new r(this,n)),"string"==typeof i?e[i](a):n.show&&e.show(a)})}r.VERSION="3.4.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(n){var i=this,t=s.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.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"]',s.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){s(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=s.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var e=s.Event("shown.bs.modal",{relatedTarget:n});t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(r.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(t){t&&t.preventDefault(),t=s.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){s(document).off("focusin.bs.modal").on("focusin.bs.modal",s.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",s.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?s(window).on("resize.bs.modal",s.proxy(this.handleUpdate,this)):s(window).off("resize.bs.modal")},r.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")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(t){var e=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=s.support.transition&&n;if(this.$backdrop=s(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",s.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){e.removeBackdrop(),t&&t()};s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.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:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var a=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+a),s(this.fixedContent).each(function(t,e){var n=e.style.paddingRight,i=s(e).css("padding-right");s(e).data("padding-right",n).css("padding-right",parseFloat(i)+a+"px")}))},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),s(this.fixedContent).each(function(t,e){var n=s(e).data("padding-right");s(e).removeData("padding-right"),e.style.paddingRight=n||""})},r.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 t=s.fn.modal;s.fn.modal=o,s.fn.modal.Constructor=r,s.fn.modal.noConflict=function(){return s.fn.modal=t,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=s(this),n=e.attr("href"),i=e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),a=s(document).find(i),r=a.data("bs.modal")?"toggle":s.extend({remote:!/#/.test(n)&&n},a.data(),e.data());e.is("a")&&t.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),o.call(a,r,this)})}(jQuery),function(g){"use strict";var i=["sanitize","whiteList","sanitizeFn"],s=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],o=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function p(t,e){var n=t.nodeName.toLowerCase();if(-1!==g.inArray(n,e))return-1===g.inArray(n,s)||Boolean(t.nodeValue.match(o)||t.nodeValue.match(l));for(var i=g(e).filter(function(t,e){return e instanceof RegExp}),a=0,r=i.length;a<r;a++)if(n.match(i[a]))return!0;return!1}function a(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var i=document.implementation.createHTMLDocument("sanitization");i.body.innerHTML=t;for(var a=g.map(e,function(t,e){return e}),r=g(i.body).find("*"),s=0,o=r.length;s<o;s++){var l=r[s],u=l.nodeName.toLowerCase();if(-1!==g.inArray(u,a))for(var d=g.map(l.attributes,function(t){return t}),c=[].concat(e["*"]||[],e[u]||[]),h=0,f=d.length;h<f;h++)p(d[h],c)||l.removeAttribute(d[h].nodeName);else l.parentNode.removeChild(l)}return i.body.innerHTML}function m(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}m.VERSION="3.4.1",m.TRANSITION_DURATION=150,m.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},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},m.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&g(document).find(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),a=i.length;a--;){var r=i[a];if("click"==r)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",o="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){var e=this.$element.data();for(var n in e)e.hasOwnProperty(n)&&-1!==g.inArray(n,i)&&delete e[n];return(t=g.extend({},this.getDefaults(),e,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=a(t.template,t.whiteList,t.sanitizeFn)),t},m.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&g.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},m.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),a=this.getUID(this.type);this.setContent(),i.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,o=s.test(r);o&&(r=r.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(g(document).find(this.options.container)):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),u=i[0].offsetWidth,d=i[0].offsetHeight;if(o){var c=r,h=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+d>h.bottom?"top":"top"==r&&l.top-d<h.top?"bottom":"right"==r&&l.right+u>h.width?"left":"left"==r&&l.left-u<h.left?"right":r,i.removeClass(c).addClass(r)}var f=this.getCalculatedOffset(r,l,u,d);this.applyPlacement(f,r);var p=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};g.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",p).emulateTransitionEnd(m.TRANSITION_DURATION):p()}},m.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,a=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),t.top+=r,t.left+=s,g.offset.setOffset(n[0],g.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var o=n[0].offsetWidth,l=n[0].offsetHeight;"top"==e&&l!=a&&(t.top=t.top+a-l);var u=this.getViewportAdjustedDelta(e,t,o,l);u.left?t.left+=u.left:t.top+=u.top;var d=/top|bottom/.test(e),c=d?2*u.left-i+o:2*u.top-a+l,h=d?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(c,n[0][h],d)},m.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},m.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=a(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},m.prototype.hide=function(t){var e=this,n=g(this.$tip),i=g.Event("hide.bs."+this.type);function a(){"in"!=e.hoverState&&n.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),g.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",a).emulateTransitionEnd(m.TRANSITION_DURATION):a(),this.hoverState=null,this},m.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","")},m.prototype.hasContent=function(){return this.getTitle()},m.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=g.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var a=window.SVGElement&&e instanceof window.SVGElement,r=n?{top:0,left:0}:a?null:t.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=n?{width:g(window).width(),height:g(window).height()}:null;return g.extend({},i,s,o,r)},m.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}},m.prototype.getViewportAdjustedDelta=function(t,e,n,i){var a={top:0,left:0};if(!this.$viewport)return a;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var o=e.top-r-s.scroll,l=e.top+r-s.scroll+i;o<s.top?a.top=s.top-o:l>s.top+s.height&&(a.top=s.top+s.height-l)}else{var u=e.left-r,d=e.left+r+n;u<s.left?a.left=s.left-u:d>s.right&&(a.left=s.left+s.width-d)}return a},m.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)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},m.prototype.sanitizeHtml=function(t){return a(t,this.options.whiteList,this.options.sanitizeFn)};var t=g.fn.tooltip;g.fn.tooltip=function(i){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new m(this,n)),"string"==typeof i&&e[i]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=t,this}}(jQuery),function(a){"use strict";function r(t,e){this.init("popover",t,e)}if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.4.1",r.DEFAULTS=a.extend({},a.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>'}),((r.prototype=a.extend({},a.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"==i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"==i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.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)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=a.fn.popover;a.fn.popover=function(i){return this.each(function(){var t=a(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,n)),"string"==typeof i&&e[i]())})},a.fn.popover.Constructor=r,a.fn.popover.noConflict=function(){return a.fn.popover=t,this}}(jQuery),function(r){"use strict";function a(t,e){this.$body=r(document.body),this.$scrollElement=r(t).is(document.body)?r(window):r(t),this.options=r.extend({},a.DEFAULTS,e),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.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=r(this),e=t.data("bs.scrollspy"),n="object"==typeof i&&i;e||t.data("bs.scrollspy",e=new a(this,n)),"string"==typeof i&&e[i]()})}a.VERSION="3.4.1",a.DEFAULTS={offset:10},a.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},a.prototype.refresh=function(){var t=this,i="offset",a=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(i="position",a=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=r(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&r(e);return n&&n.length&&n.is(":visible")&&[[n[i]().top+a,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},a.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),a=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e<a[0])return this.activeTarget=null,this.clear();for(t=a.length;t--;)s!=r[t]&&e>=a[t]&&(void 0===a[t+1]||e<a[t+1])&&this.activate(r[t])},a.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=r(e).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},a.prototype.clear=function(){r(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=r.fn.scrollspy;r.fn.scrollspy=e,r.fn.scrollspy.Constructor=a,r.fn.scrollspy.noConflict=function(){return r.fn.scrollspy=t,this},r(window).on("load.bs.scrollspy.data-api",function(){r('[data-spy="scroll"]').each(function(){var t=r(this);e.call(t,t.data())})})}(jQuery),function(o){"use strict";function s(t){this.element=o(t)}function e(n){return this.each(function(){var t=o(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new s(this)),"string"==typeof n&&e[n]()})}s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n=n||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""),!t.parent("li").hasClass("active")){var i=e.find(".active:last a"),a=o.Event("hide.bs.tab",{relatedTarget:t[0]}),r=o.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(a),t.trigger(r),!r.isDefaultPrevented()&&!a.isDefaultPrevented()){var s=o(document).find(n);this.activate(t.closest("li"),e),this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},s.prototype.activate=function(t,e,n){var i=e.find("> .active"),a=n&&o.support.transition&&(i.length&&i.hasClass("fade")||!!e.find("> .fade").length);function r(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}i.length&&a?i.one("bsTransitionEnd",r).emulateTransitionEnd(s.TRANSITION_DURATION):r(),i.removeClass("in")};var t=o.fn.tab;o.fn.tab=e,o.fn.tab.Constructor=s,o.fn.tab.noConflict=function(){return o.fn.tab=t,this};function n(t){t.preventDefault(),e.call(o(this),"show")}o(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(l){"use strict";var u=function(t,e){this.options=l.extend({},u.DEFAULTS,e);var n=this.options.target===u.DEFAULTS.target?l(this.options.target):l(document).find(this.options.target);this.$target=n.on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(i){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof i&&i;e||t.data("bs.affix",e=new u(this,n)),"string"==typeof i&&e[i]()})}u.VERSION="3.4.1",u.RESET="affix affix-top affix-bottom",u.DEFAULTS={offset:0,target:window},u.prototype.getState=function(t,e,n,i){var a=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return a<n&&"top";if("bottom"==this.affixed)return null!=n?!(a+this.unpin<=r.top)&&"bottom":!(a+s<=t-i)&&"bottom";var o=null==this.affixed,l=o?a:r.top;return null!=n&&a<=n?"top":null!=i&&t-i<=l+(o?s:e)&&"bottom"},u.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(u.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},u.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},u.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,i=e.bottom,a=Math.max(l(document).height(),l(document.body).height());"object"!=typeof e&&(i=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof i&&(i=e.bottom(this.$element));var r=this.getState(a,t,n,i);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var s="affix"+(r?"-"+r:""),o=l.Event(s+".bs.affix");if(this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(u.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:a-t-i})}};var t=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=u,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(n){"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e=e||("undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(e,t,t.document)}:n(jQuery,window,document)}(function(P,v,y,R){function r(e){var n,i,a={};P.each(e,function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=t.replace(n[0],n[2].toLowerCase()),a[i]=t,"o"===n[1]&&r(e[t]))}),e._hungarianMap=a}function _(e,n,i){var a;e._hungarianMap||r(e),P.each(n,function(t){(a=e._hungarianMap[t])===R||!i&&n[a]!==R||("o"===a.charAt(0)?(n[a]||(n[a]={}),P.extend(!0,n[a],n[t]),_(e[a],n[a],i)):n[a]=n[t])})}function w(t){var e=te.defaults.oLanguage,n=t.sZeroRecords;!t.sEmptyTable&&n&&"No data available in table"===e.sEmptyTable&&Pt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&n&&"Loading..."===e.sLoadingRecords&&Pt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&Bt(t)}function x(t){if(ue(t,"ordering","bSort"),ue(t,"orderMulti","bSortMulti"),ue(t,"orderClasses","bSortClasses"),ue(t,"orderCellsTop","bSortCellsTop"),ue(t,"order","aaSorting"),ue(t,"orderFixed","aaSortingFixed"),ue(t,"paging","bPaginate"),ue(t,"pagingType","sPaginationType"),ue(t,"pageLength","iDisplayLength"),ue(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,n=t.length;e<n;e++)t[e]&&_(te.models.oSearch,t[e])}function S(t){ue(t,"orderable","bSortable"),ue(t,"orderData","aDataSort"),ue(t,"orderSequence","asSorting"),ue(t,"orderDataType","sortDataType");var e=t.aDataSort;e&&!P.isArray(e)&&(t.aDataSort=[e])}function k(t){if(!te.__browser){var e={};te.__browser=e;var n=P("<div/>").css({position:"fixed",top:0,left:-1*P(v).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(P("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(P("<div/>").css({width:"100%",height:10}))).appendTo("body"),i=n.children(),a=i.children();e.barWidth=i[0].offsetWidth-i[0].clientWidth,e.bScrollOversize=100===a[0].offsetWidth&&100!==i[0].clientWidth,e.bScrollbarLeft=1!==Math.round(a.offset().left),e.bBounding=!!n[0].getBoundingClientRect().width,n.remove()}P.extend(t.oBrowser,te.__browser),t.oScroll.iBarWidth=te.__browser.barWidth}function n(t,e,n,i,a,r){var s,o=!1;for(n!==R&&(s=n,o=!0);i!==a;)t.hasOwnProperty(i)&&(s=o?e(s,t[i],i,t):t[i],o=!0,i+=r);return s}function T(t,e){var n=te.defaults.column,i=t.aoColumns.length;n=P.extend({},te.models.oColumn,n,{nTh:e||y.createElement("th"),sTitle:n.sTitle?n.sTitle:e?e.innerHTML:"",aDataSort:n.aDataSort?n.aDataSort:[i],mData:n.mData?n.mData:i,idx:i});t.aoColumns.push(n),(n=t.aoPreSearchCols)[i]=P.extend({},te.models.oSearch,n[i]),D(t,i,P(e).data())}function D(t,e,n){e=t.aoColumns[e];var i=t.oClasses,a=P(e.nTh);if(!e.sWidthOrig){e.sWidthOrig=a.attr("width")||null;var r=(a.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);r&&(e.sWidthOrig=r[1])}n!==R&&null!==n&&(S(n),_(te.defaults.column,n),n.mDataProp===R||n.mData||(n.mData=n.mDataProp),n.sType&&(e._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),P.extend(e,n),Pt(e,n,"sWidth","sWidthOrig"),n.iDataSort!==R&&(e.aDataSort=[n.iDataSort]),Pt(e,n,"aDataSort"));var s=e.mData,o=L(s),l=e.mRender?L(e.mRender):null;n=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};e._bAttrSrc=P.isPlainObject(s)&&(n(s.sort)||n(s.type)||n(s.filter)),e._setter=null,e.fnGetData=function(t,e,n){var i=o(t,e,R,n);return l&&e?l(i,e,t,n):i},e.fnSetData=function(t,e,n){return p(s)(t,e,n)},"number"!=typeof s&&(t._rowReadObject=!0),t.oFeatures.bSort||(e.bSortable=!1,a.addClass(i.sSortableNone)),t=-1!==P.inArray("asc",e.asSorting),n=-1!==P.inArray("desc",e.asSorting),e.bSortable&&(t||n)?t&&!n?(e.sSortingClass=i.sSortableAsc,e.sSortingClassJUI=i.sSortJUIAscAllowed):!t&&n?(e.sSortingClass=i.sSortableDesc,e.sSortingClassJUI=i.sSortJUIDescAllowed):(e.sSortingClass=i.sSortable,e.sSortingClassJUI=i.sSortJUI):(e.sSortingClass=i.sSortableNone,e.sSortingClassJUI="")}function O(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;mt(t);for(var n=0,i=e.length;n<i;n++)e[n].nTh.style.width=e[n].sWidth}""===(e=t.oScroll).sY&&""===e.sX||pt(t),Lt(t,null,"column-sizing",[t])}function N(t,e){var n=C(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function u(t,e){var n=C(t,"bVisible");return-1!==(n=P.inArray(e,n))?n:null}function b(t){var n=0;return P.each(t.aoColumns,function(t,e){e.bVisible&&"none"!==P(e.nTh).css("display")&&n++}),n}function C(t,n){var i=[];return P.map(t.aoColumns,function(t,e){t[n]&&i.push(e)}),i}function s(t){var e,n,i,a,r,s,o,l,u,d=t.aoColumns,c=t.aoData,h=te.ext.type.detect;for(e=0,n=d.length;e<n;e++)if(u=[],!(o=d[e]).sType&&o._sManualType)o.sType=o._sManualType;else if(!o.sType){for(i=0,a=h.length;i<a;i++){for(r=0,s=c.length;r<s&&(u[r]===R&&(u[r]=F(t,r,e,"type")),(l=h[i](u[r],t))||i===h.length-1)&&"html"!==l;r++);if(l){o.sType=l;break}}o.sType||(o.sType="string")}}function M(t,e,n,i){var a,r,s,o,l,u,d=t.aoColumns;if(e)for(a=e.length-1;0<=a;a--){var c=(u=e[a]).targets!==R?u.targets:u.aTargets;for(P.isArray(c)||(c=[c]),r=0,s=c.length;r<s;r++)if("number"==typeof c[r]&&0<=c[r]){for(;d.length<=c[r];)T(t);i(c[r],u)}else if("number"==typeof c[r]&&c[r]<0)i(d.length+c[r],u);else if("string"==typeof c[r])for(o=0,l=d.length;o<l;o++)"_all"!=c[r]&&!P(d[o].nTh).hasClass(c[r])||i(o,u)}if(n)for(a=0,t=n.length;a<t;a++)i(a,n[a])}function I(t,e,n,i){var a=t.aoData.length,r=P.extend(!0,{},te.models.oRow,{src:n?"dom":"data",idx:a});r._aData=e,t.aoData.push(r);for(var s=t.aoColumns,o=0,l=s.length;o<l;o++)s[o].sType=null;return t.aiDisplayMaster.push(a),(e=t.rowIdFn(e))!==R&&(t.aIds[e]=r),!n&&t.oFeatures.bDeferRender||g(t,a,n,i),a}function A(n,t){var i;return t instanceof P||(t=P(t)),t.map(function(t,e){return i=l(n,e),I(n,i.data,e,i.cells)})}function F(t,e,n,i){var a=t.iDraw,r=t.aoColumns[n],s=t.aoData[e]._aData,o=r.sDefaultContent,l=r.fnGetData(s,i,{settings:t,row:e,col:n});if(l===R)return t.iDrawError!=a&&null===o&&(Ft(t,0,"Requested unknown parameter "+("function"==typeof r.mData?"{function}":"'"+r.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=a),o;if(l!==s&&null!==l||null===o||i===R){if("function"==typeof l)return l.call(s)}else l=o;return null===l&&"display"==i?"":l}function i(t,e,n,i){t.aoColumns[n].fnSetData(t.aoData[e]._aData,i,{settings:t,row:e,col:n})}function d(t){return P.map(t.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}function L(a){if(P.isPlainObject(a)){var r={};return P.each(a,function(t,e){e&&(r[t]=L(e))}),function(t,e,n,i){var a=r[e]||r._;return a!==R?a(t,e,n,i):t}}if(null===a)return function(t){return t};if("function"==typeof a)return function(t,e,n,i){return a(t,e,n,i)};if("string"!=typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(t){return t[a]};var o=function(t,e,n){var i,a;if(""!==n)for(var r=0,s=(a=d(n)).length;r<s;r++){if(n=a[r].match(de),i=a[r].match(ce),n){if(a[r]=a[r].replace(de,""),""!==a[r]&&(t=t[a[r]]),i=[],a.splice(0,r+1),a=a.join("."),P.isArray(t))for(r=0,s=t.length;r<s;r++)i.push(o(t[r],e,a));t=""===(t=n[0].substring(1,n[0].length-1))?i:i.join(t);break}if(i)a[r]=a[r].replace(ce,""),t=t[a[r]]();else{if(null===t||t[a[r]]===R)return R;t=t[a[r]]}}return t};return function(t,e){return o(t,e,a)}}function p(i){if(P.isPlainObject(i))return p(i._);if(null===i)return function(){};if("function"==typeof i)return function(t,e,n){i(t,"set",e,n)};if("string"!=typeof i||-1===i.indexOf(".")&&-1===i.indexOf("[")&&-1===i.indexOf("("))return function(t,e){t[i]=e};var l=function(t,e,n){var i;i=(n=d(n))[n.length-1];for(var a,r,s=0,o=n.length-1;s<o;s++){if(a=n[s].match(de),r=n[s].match(ce),a){if(n[s]=n[s].replace(de,""),t[n[s]]=[],(i=n.slice()).splice(0,s+1),a=i.join("."),P.isArray(e))for(r=0,o=e.length;r<o;r++)l(i={},e[r],a),t[n[s]].push(i);else t[n[s]]=e;return}r&&(n[s]=n[s].replace(ce,""),t=t[n[s]](e)),null!==t[n[s]]&&t[n[s]]!==R||(t[n[s]]={}),t=t[n[s]]}i.match(ce)?t[i.replace(ce,"")](e):t[i.replace(de,"")]=e};return function(t,e){return l(t,e,i)}}function f(t){return oe(t.aoData,"_aData")}function o(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function c(t,e,n){for(var i=-1,a=0,r=t.length;a<r;a++)t[a]==e?i=a:t[a]>e&&t[a]--;-1!=i&&n===R&&t.splice(i,1)}function a(n,i,t,e){var a,r=n.aoData[i],s=function(t,e){for(;t.childNodes.length;)t.removeChild(t.firstChild);t.innerHTML=F(n,i,e,"display")};if("dom"!==t&&(t&&"auto"!==t||"dom"!==r.src)){var o=r.anCells;if(o)if(e!==R)s(o[e],e);else for(t=0,a=o.length;t<a;t++)s(o[t],t)}else r._aData=l(n,r,e,e===R?R:r._aData).data;if(r._aSortData=null,r._aFilterData=null,s=n.aoColumns,e!==R)s[e].sType=null;else{for(t=0,a=s.length;t<a;t++)s[t].sType=null;h(n,r)}}function l(t,e,n,i){function a(t,e){if("string"==typeof t){var n=t.indexOf("@");-1!==n&&(n=t.substring(n+1),p(t)(i,e.getAttribute(n)))}}function r(t){n!==R&&n!==c||(o=h[c],l=P.trim(t.innerHTML),o&&o._bAttrSrc?(p(o.mData._)(i,l),a(o.mData.sort,t),a(o.mData.type,t),a(o.mData.filter,t)):f?(o._setter||(o._setter=p(o.mData)),o._setter(i,l)):i[c]=l),c++}var s,o,l,u=[],d=e.firstChild,c=0,h=t.aoColumns,f=t._rowReadObject;i=i!==R?i:f?{}:[];if(d)for(;d;)"TD"!=(s=d.nodeName.toUpperCase())&&"TH"!=s||(r(d),u.push(d)),d=d.nextSibling;else for(d=0,s=(u=e.anCells).length;d<s;d++)r(u[d]);return(e=e.firstChild?e:e.nTr)&&(e=e.getAttribute("id"))&&p(t.rowId)(i,e),{data:i,cells:u}}function g(t,e,n,i){var a,r,s,o,l,u=t.aoData[e],d=u._aData,c=[];if(null===u.nTr){for(a=n||y.createElement("tr"),u.nTr=a,u.anCells=c,a._DT_RowIndex=e,h(t,u),o=0,l=t.aoColumns.length;o<l;o++)s=t.aoColumns[o],(r=n?i[o]:y.createElement(s.sCellType))._DT_CellIndex={row:e,column:o},c.push(r),n&&!s.mRender&&s.mData===o||P.isPlainObject(s.mData)&&s.mData._===o+".display"||(r.innerHTML=F(t,e,o,"display")),s.sClass&&(r.className+=" "+s.sClass),s.bVisible&&!n?a.appendChild(r):!s.bVisible&&n&&r.parentNode.removeChild(r),s.fnCreatedCell&&s.fnCreatedCell.call(t.oInstance,r,F(t,e,o),d,e,o);Lt(t,"aoRowCreatedCallback",null,[a,d,e])}u.nTr.setAttribute("role","row")}function h(t,e){var n=e.nTr,i=e._aData;if(n){var a=t.rowIdFn(i);a&&(n.id=a),i.DT_RowClass&&(a=i.DT_RowClass.split(" "),e.__rowc=e.__rowc?le(e.__rowc.concat(a)):a,P(n).removeClass(e.__rowc.join(" ")).addClass(i.DT_RowClass)),i.DT_RowAttr&&P(n).attr(i.DT_RowAttr),i.DT_RowData&&P(n).data(i.DT_RowData)}}function m(t){var e,n,i,a,r,s=t.nTHead,o=t.nTFoot,l=0===P("th, td",s).length,u=t.oClasses,d=t.aoColumns;for(l&&(a=P("<tr/>").appendTo(s)),e=0,n=d.length;e<n;e++)r=d[e],i=P(r.nTh).addClass(r.sClass),l&&i.appendTo(a),t.oFeatures.bSort&&(i.addClass(r.sSortingClass),!1!==r.bSortable&&(i.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),Tt(t,r.nTh,e))),r.sTitle!=i[0].innerHTML&&i.html(r.sTitle),Ht(t,"header")(t,i,r,u);if(l&&B(t.aoHeader,s),P(s).find(">tr").attr("role","row"),P(s).find(">tr>th, >tr>td").addClass(u.sHeaderTH),P(o).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==o)for(e=0,n=(t=t.aoFooter[0]).length;e<n;e++)(r=d[e]).nTf=t[e].cell,r.sClass&&P(r.nTf).addClass(r.sClass)}function E(t,e,n){var i,a,r,s,o=[],l=[],u=t.aoColumns.length;if(e){for(n===R&&(n=!1),i=0,a=e.length;i<a;i++){for(o[i]=e[i].slice(),o[i].nTr=e[i].nTr,r=u-1;0<=r;r--)t.aoColumns[r].bVisible||n||o[i].splice(r,1);l.push([])}for(i=0,a=o.length;i<a;i++){if(t=o[i].nTr)for(;r=t.firstChild;)t.removeChild(r);for(r=0,e=o[i].length;r<e;r++)if(s=u=1,l[i][r]===R){for(t.appendChild(o[i][r].cell),l[i][r]=1;o[i+u]!==R&&o[i][r].cell==o[i+u][r].cell;)l[i+u][r]=1,u++;for(;o[i][r+s]!==R&&o[i][r].cell==o[i][r+s].cell;){for(n=0;n<u;n++)l[i+n][r+s]=1;s++}P(o[i][r].cell).attr("rowspan",u).attr("colspan",s)}}}}function H(t){var e=Lt(t,"aoPreDrawCallback","preDraw",[t]);if(-1!==P.inArray(!1,e))ht(t,!1);else{e=[];var n=0,i=t.asStripeClasses,a=i.length,r=t.oLanguage,s=t.iInitDisplayStart,o="ssp"==jt(t),l=t.aiDisplay;t.bDrawing=!0,s!==R&&-1!==s&&(t._iDisplayStart=o?s:s>=t.fnRecordsDisplay()?0:s,t.iInitDisplayStart=-1);s=t._iDisplayStart;var u=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,ht(t,!1);else if(o){if(!t.bDestroying&&!V(t))return}else t.iDraw++;if(0!==l.length)for(r=o?t.aoData.length:u,o=o?0:s;o<r;o++){var d=l[o],c=t.aoData[d];if(null===c.nTr&&g(t,d),d=c.nTr,0!==a){var h=i[n%a];c._sRowStripe!=h&&(P(d).removeClass(c._sRowStripe).addClass(h),c._sRowStripe=h)}Lt(t,"aoRowCallback",null,[d,c._aData,n,o]),e.push(d),n++}else n=r.sZeroRecords,1==t.iDraw&&"ajax"==jt(t)?n=r.sLoadingRecords:r.sEmptyTable&&0===t.fnRecordsTotal()&&(n=r.sEmptyTable),e[0]=P("<tr/>",{class:a?i[0]:""}).append(P("<td />",{valign:"top",colSpan:b(t),class:t.oClasses.sRowEmpty}).html(n))[0];Lt(t,"aoHeaderCallback","header",[P(t.nTHead).children("tr")[0],f(t),s,u,l]),Lt(t,"aoFooterCallback","footer",[P(t.nTFoot).children("tr")[0],f(t),s,u,l]),(i=P(t.nTBody)).children().detach(),i.append(P(e)),Lt(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function j(t,e){var n=t.oFeatures,i=n.bFilter;n.bSort&&xt(t),i?G(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,H(t),t._drawHold=!1}function W(t){var e=t.oClasses,n=P(t.nTable),i=(n=P("<div/>").insertBefore(n),t.oFeatures),a=P("<div/>",{id:t.sTableId+"_wrapper",class:e.sWrapper+(t.nTFoot?"":" "+e.sNoFooter)});t.nHolding=n[0],t.nTableWrapper=a[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var r,s,o,l,u,d,c=t.sDom.split(""),h=0;h<c.length;h++){if(r=null,"<"==(s=c[h])){if(o=P("<div/>")[0],"'"==(l=c[h+1])||'"'==l){for(u="",d=2;c[h+d]!=l;)u+=c[h+d],d++;"H"==u?u=e.sJUIHeader:"F"==u&&(u=e.sJUIFooter),-1!=u.indexOf(".")?(l=u.split("."),o.id=l[0].substr(1,l[0].length-1),o.className=l[1]):"#"==u.charAt(0)?o.id=u.substr(1,u.length-1):o.className=u,h+=d}a.append(o),a=P(o)}else if(">"==s)a=a.parent();else if("l"==s&&i.bPaginate&&i.bLengthChange)r=lt(t);else if("f"==s&&i.bFilter)r=U(t);else if("r"==s&&i.bProcessing)r=ct(t);else if("t"==s)r=ft(t);else if("i"==s&&i.bInfo)r=nt(t);else if("p"==s&&i.bPaginate)r=ut(t);else if(0!==te.ext.feature.length)for(d=0,l=(o=te.ext.feature).length;d<l;d++)if(s==o[d].cFeature){r=o[d].fnInit(t);break}r&&((o=t.aanFeatures)[s]||(o[s]=[]),o[s].push(r),a.append(r))}n.replaceWith(a),t.nHolding=null}function B(t,e){var n,i,a,r,s,o,l,u,d,c,h=P(e).children("tr");for(t.splice(0,t.length),a=0,o=h.length;a<o;a++)t.push([]);for(a=0,o=h.length;a<o;a++)for(i=(n=h[a]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){for(u=(u=1*i.getAttribute("colspan"))&&0!==u&&1!==u?u:1,d=(d=1*i.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,r=0,s=t[a];s[r];)r++;for(l=r,c=1===u,s=0;s<u;s++)for(r=0;r<d;r++)t[a+r][l+s]={cell:i,unique:c},t[a+r].nTr=n}i=i.nextSibling}}function Y(t,e,n){var i=[];n||(n=t.aoHeader,e&&B(n=[],e));e=0;for(var a=n.length;e<a;e++)for(var r=0,s=n[e].length;r<s;r++)!n[e][r].unique||i[r]&&t.bSortCellsTop||(i[r]=n[e][r].cell);return i}function q(i,t,e){if(Lt(i,"aoServerParams","serverParams",[t]),t&&P.isArray(t)){var a={},r=/(.*?)\[\]$/;P.each(t,function(t,e){var n=e.name.match(r);n?(n=n[0],a[n]||(a[n]=[]),a[n].push(e.value)):a[e.name]=e.value}),t=a}function n(t){Lt(i,null,"xhr",[i,t,i.jqXHR]),e(t)}var s,o=i.ajax,l=i.oInstance;if(P.isPlainObject(o)&&o.data){s=o.data;var u=P.isFunction(s)?s(t,i):s;t=P.isFunction(s)&&u?u:P.extend(!0,t,u);delete o.data}u={data:t,success:function(t){var e=t.error||t.sError;e&&Ft(i,0,e),i.json=t,n(t)},dataType:"json",cache:!1,type:i.sServerMethod,error:function(t,e){var n=Lt(i,null,"xhr",[i,null,i.jqXHR]);-1===P.inArray(!0,n)&&("parsererror"==e?Ft(i,0,"Invalid JSON response",1):4===t.readyState&&Ft(i,0,"Ajax error",7)),ht(i,!1)}},i.oAjaxData=t,Lt(i,null,"preXhr",[i,t]),i.fnServerData?i.fnServerData.call(l,i.sAjaxSource,P.map(t,function(t,e){return{name:e,value:t}}),n,i):i.sAjaxSource||"string"==typeof o?i.jqXHR=P.ajax(P.extend(u,{url:o||i.sAjaxSource})):P.isFunction(o)?i.jqXHR=o.call(l,t,n,i):(i.jqXHR=P.ajax(P.extend(u,o)),o.data=s)}function V(e){return!e.bAjaxDataGet||(e.iDraw++,ht(e,!0),q(e,t(e),function(t){$(e,t)}),!1)}function t(t){var e,n,i,a,r=t.aoColumns,s=r.length,o=t.oFeatures,l=t.oPreviousSearch,u=t.aoPreSearchCols,d=[],c=wt(t);e=t._iDisplayStart,n=!1!==o.bPaginate?t._iDisplayLength:-1;function h(t,e){d.push({name:t,value:e})}h("sEcho",t.iDraw),h("iColumns",s),h("sColumns",oe(r,"sName").join(",")),h("iDisplayStart",e),h("iDisplayLength",n);var f={draw:t.iDraw,columns:[],order:[],start:e,length:n,search:{value:l.sSearch,regex:l.bRegex}};for(e=0;e<s;e++)i=r[e],a=u[e],n="function"==typeof i.mData?"function":i.mData,f.columns.push({data:n,name:i.sName,searchable:i.bSearchable,orderable:i.bSortable,search:{value:a.sSearch,regex:a.bRegex}}),h("mDataProp_"+e,n),o.bFilter&&(h("sSearch_"+e,a.sSearch),h("bRegex_"+e,a.bRegex),h("bSearchable_"+e,i.bSearchable)),o.bSort&&h("bSortable_"+e,i.bSortable);return o.bFilter&&(h("sSearch",l.sSearch),h("bRegex",l.bRegex)),o.bSort&&(P.each(c,function(t,e){f.order.push({column:e.col,dir:e.dir}),h("iSortCol_"+t,e.col),h("sSortDir_"+t,e.dir)}),h("iSortingCols",c.length)),null===(r=te.ext.legacy.ajax)?t.sAjaxSource?d:f:r?d:f}function $(t,e){var n=z(t,e),i=e.sEcho!==R?e.sEcho:e.draw,a=e.iTotalRecords!==R?e.iTotalRecords:e.recordsTotal,r=e.iTotalDisplayRecords!==R?e.iTotalDisplayRecords:e.recordsFiltered;if(i){if(1*i<t.iDraw)return;t.iDraw=1*i}for(o(t),t._iRecordsTotal=parseInt(a,10),t._iRecordsDisplay=parseInt(r,10),i=0,a=n.length;i<a;i++)I(t,n[i]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,H(t),t._bInitComplete||st(t,e),t.bAjaxDataGet=!0,ht(t,!1)}function z(t,e){var n=P.isPlainObject(t.ajax)&&t.ajax.dataSrc!==R?t.ajax.dataSrc:t.sAjaxDataProp;return"data"===n?e.aaData||e[n]:""!==n?L(n)(e):e}function U(n){var t=n.oClasses,e=n.sTableId,i=n.oLanguage,a=n.oPreviousSearch,r=n.aanFeatures,s='<input type="search" class="'+t.sFilterInput+'"/>',o=(o=i.sSearch).match(/_INPUT_/)?o.replace("_INPUT_",s):o+s,l=(t=P("<div/>",{id:r.f?null:e+"_filter",class:t.sFilter}).append(P("<label/>").append(o)),r=function(){var t=this.value?this.value:"";t!=a.sSearch&&(G(n,{sSearch:t,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),n._iDisplayStart=0,H(n))},s=null!==n.searchDelay?n.searchDelay:"ssp"===jt(n)?400:0,P("input",t).val(a.sSearch).attr("placeholder",i.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",s?me(r,s):r).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",e));return P(n.nTable).on("search.dt.DT",function(t,e){if(n===e)try{l[0]!==y.activeElement&&l.val(a.sSearch)}catch(t){}}),t[0]}function G(t,e,n){function i(t){a.sSearch=t.sSearch,a.bRegex=t.bRegex,a.bSmart=t.bSmart,a.bCaseInsensitive=t.bCaseInsensitive}var a=t.oPreviousSearch,r=t.aoPreSearchCols;if(s(t),"ssp"!=jt(t)){for(J(t,e.sSearch,n,e.bEscapeRegex!==R?!e.bEscapeRegex:e.bRegex,e.bSmart,e.bCaseInsensitive),i(e),e=0;e<r.length;e++)X(t,r[e].sSearch,e,r[e].bEscapeRegex!==R?!r[e].bEscapeRegex:r[e].bRegex,r[e].bSmart,r[e].bCaseInsensitive);Z(t)}else i(e);t.bFiltered=!0,Lt(t,null,"search",[t])}function Z(t){for(var e,n,i=te.ext.search,a=t.aiDisplay,r=0,s=i.length;r<s;r++){for(var o=[],l=0,u=a.length;l<u;l++)n=a[l],e=t.aoData[n],i[r](t,e._aFilterData,n,e._aData,l)&&o.push(n);a.length=0,P.merge(a,o)}}function X(t,e,n,i,a,r){if(""!==e){var s=[],o=t.aiDisplay;for(i=Q(e,i,a,r),a=0;a<o.length;a++)e=t.aoData[o[a]]._aFilterData[n],i.test(e)&&s.push(o[a]);t.aiDisplay=s}}function J(t,e,n,i,a,r){i=Q(e,i,a,r),r=t.oPreviousSearch.sSearch;var s,o=t.aiDisplayMaster;a=[];if(0!==te.ext.search.length&&(n=!0),s=K(t),e.length<=0)t.aiDisplay=o.slice();else{for((s||n||r.length>e.length||0!==e.indexOf(r)||t.bSorted)&&(t.aiDisplay=o.slice()),e=t.aiDisplay,n=0;n<e.length;n++)i.test(t.aoData[e[n]]._sFilterRow)&&a.push(e[n]);t.aiDisplay=a}}function Q(t,e,n,i){return t=e?t:he(t),n&&(t="^(?=.*?"+P.map(t.match(/"[^"]+"|[^ ]+/g)||[""],function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")}).join(")(?=.*?")+").*$"),RegExp(t,i?"i":"")}function K(t){var e,n,i,a,r,s,o,l,u=t.aoColumns,d=te.ext.type.search;for(e=!1,n=0,a=t.aoData.length;n<a;n++)if(!(l=t.aoData[n])._aFilterData){for(s=[],i=0,r=u.length;i<r;i++)(e=u[i]).bSearchable?(o=F(t,n,i,"filter"),d[e.sType]&&(o=d[e.sType](o)),null===o&&(o=""),"string"!=typeof o&&o.toString&&(o=o.toString())):o="",o.indexOf&&-1!==o.indexOf("&")&&(fe.innerHTML=o,o=pe?fe.textContent:fe.innerText),o.replace&&(o=o.replace(/[\r\n]/g,"")),s.push(o);l._aFilterData=s,l._sFilterRow=s.join(" "),e=!0}return e}function tt(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function et(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function nt(t){var e=t.sTableId,n=t.aanFeatures.i,i=P("<div/>",{class:t.oClasses.sInfo,id:n?null:e+"_info"});return n||(t.aoDrawCallback.push({fn:it,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),P(t.nTable).attr("aria-describedby",e+"_info")),i[0]}function it(t){var e=t.aanFeatures.i;if(0!==e.length){var n=t.oLanguage,i=t._iDisplayStart+1,a=t.fnDisplayEnd(),r=t.fnRecordsTotal(),s=t.fnRecordsDisplay(),o=s?n.sInfo:n.sInfoEmpty;s!==r&&(o+=" "+n.sInfoFiltered),o=at(t,o+=n.sInfoPostFix),null!==(n=n.fnInfoCallback)&&(o=n.call(t.oInstance,t,i,a,r,s,o)),P(e).html(o)}}function at(t,e){var n=t.fnFormatNumber,i=t._iDisplayStart+1,a=t._iDisplayLength,r=t.fnRecordsDisplay(),s=-1===a;return e.replace(/_START_/g,n.call(t,i)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,r)).replace(/_PAGE_/g,n.call(t,s?1:Math.ceil(i/a))).replace(/_PAGES_/g,n.call(t,s?1:Math.ceil(r/a)))}function rt(n){var i,t,e,a=n.iInitDisplayStart,r=n.aoColumns;t=n.oFeatures;var s=n.bDeferLoading;if(n.bInitialised){for(W(n),m(n),E(n,n.aoHeader),E(n,n.aoFooter),ht(n,!0),t.bAutoWidth&&mt(n),i=0,t=r.length;i<t;i++)(e=r[i]).sWidth&&(e.nTh.style.width=_t(e.sWidth));Lt(n,null,"preInit",[n]),j(n),"ssp"==(r=jt(n))&&!s||("ajax"==r?q(n,[],function(t){var e=z(n,t);for(i=0;i<e.length;i++)I(n,e[i]);n.iInitDisplayStart=a,j(n),ht(n,!1),st(n,t)}):(ht(n,!1),st(n)))}else setTimeout(function(){rt(n)},200)}function st(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&O(t),Lt(t,null,"plugin-init",[t,e]),Lt(t,"aoInitComplete","init",[t,e])}function ot(t,e){var n=parseInt(e,10);t._iDisplayLength=n,Et(t),Lt(t,null,"length",[t,n])}function lt(i){for(var t=i.oClasses,e=i.sTableId,n=i.aLengthMenu,a=(r=P.isArray(n[0]))?n[0]:n,r=(n=r?n[1]:n,P("<select/>",{name:e+"_length","aria-controls":e,class:t.sLengthSelect})),s=0,o=a.length;s<o;s++)r[0][s]=new Option(n[s],a[s]);var l=P("<div><label/></div>").addClass(t.sLength);return i.aanFeatures.l||(l[0].id=e+"_length"),l.children().append(i.oLanguage.sLengthMenu.replace("_MENU_",r[0].outerHTML)),P("select",l).val(i._iDisplayLength).on("change.DT",function(){ot(i,P(this).val()),H(i)}),P(i.nTable).on("length.dt.DT",function(t,e,n){i===e&&P("select",l).val(n)}),l[0]}function ut(t){function s(t){H(t)}var e=t.sPaginationType,o=te.ext.pager[e],l="function"==typeof o,u=(e=P("<div/>").addClass(t.oClasses.sPaging+e)[0],t.aanFeatures);return l||o.fnInit(t,e,s),u.p||(e.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(l){var e,n=t._iDisplayStart,i=t._iDisplayLength,a=t.fnRecordsDisplay(),r=(n=(r=-1===i)?0:Math.ceil(n/i),i=r?1:Math.ceil(a/i),a=o(n,i),0);for(e=u.p.length;r<e;r++)Ht(t,"pageButton")(t,u.p[r],r,a,n,i)}else o.fnUpdate(t,s)},sName:"pagination"})),e}function dt(t,e,n){var i=t._iDisplayStart,a=t._iDisplayLength,r=t.fnRecordsDisplay();return 0===r||-1===a?i=0:"number"==typeof e?r<(i=e*a)&&(i=0):"first"==e?i=0:"previous"==e?(i=0<=a?i-a:0)<0&&(i=0):"next"==e?i+a<r&&(i+=a):"last"==e?i=Math.floor((r-1)/a)*a:Ft(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==i,t._iDisplayStart=i,e&&(Lt(t,null,"page",[t]),n&&H(t)),e}function ct(t){return P("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function ht(t,e){t.oFeatures.bProcessing&&P(t.aanFeatures.r).css("display",e?"block":"none"),Lt(t,null,"processing",[t,e])}function ft(t){(d=P(t.nTable)).attr("role","grid");var e=t.oScroll;if(""===e.sX&&""===e.sY)return t.nTable;var n=e.sX,i=e.sY,a=t.oClasses,r=d.children("caption"),s=r.length?r[0]._captionSide:null,o=P(d[0].cloneNode(!1)),l=P(d[0].cloneNode(!1)),u=d.children("tfoot");u.length||(u=null),o=P("<div/>",{class:a.sScrollWrapper}).append(P("<div/>",{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:n?n?_t(n):null:"100%"}).append(P("<div/>",{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:e.sXInner||"100%"}).append(o.removeAttr("id").css("margin-left",0).append("top"===s?r:null).append(d.children("thead"))))).append(P("<div/>",{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:n?_t(n):null}).append(d)),u&&o.append(P("<div/>",{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:n?n?_t(n):null:"100%"}).append(P("<div/>",{class:a.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===s?r:null).append(d.children("tfoot")))));var d,c=(d=o.children())[0],h=(a=d[1],u?d[2]:null);return n&&P(a).on("scroll.DT",function(){var t=this.scrollLeft;c.scrollLeft=t,u&&(h.scrollLeft=t)}),P(a).css(i&&e.bCollapse?"max-height":"height",i),t.nScrollHead=c,t.nScrollBody=a,t.nScrollFoot=h,t.aoDrawCallback.push({fn:pt,sName:"scrolling"}),o[0]}function pt(n){function t(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0}var e,i,a,r,s,o=(d=n.oScroll).sX,l=d.sXInner,u=d.sY,d=d.iBarWidth,c=P(n.nScrollHead),h=c[0].style,f=(g=c.children("div"))[0].style,p=g.children("table"),g=n.nScrollBody,m=P(g),v=g.style,y=P(n.nScrollFoot).children("div"),b=y.children("table"),_=P(n.nTHead),w=P(n.nTable),x=w[0],S=x.style,k=n.nTFoot?P(n.nTFoot):null,T=n.oBrowser,D=T.bScrollOversize,C=oe(n.aoColumns,"nTh"),M=[],I=[],A=[],F=[];i=g.scrollHeight>g.clientHeight,n.scrollBarVis!==i&&n.scrollBarVis!==R?(n.scrollBarVis=i,O(n)):(n.scrollBarVis=i,w.children("thead, tfoot").remove(),k&&(a=k.clone().prependTo(w),e=k.find("tr"),a=a.find("tr")),r=_.clone().prependTo(w),_=_.find("tr"),i=r.find("tr"),r.find("th, td").removeAttr("tabindex"),o||(v.width="100%",c[0].style.width="100%"),P.each(Y(n,r),function(t,e){s=N(n,t),e.style.width=n.aoColumns[s].sWidth}),k&>(function(t){t.style.width=""},a),c=w.outerWidth(),""===o?(S.width="100%",D&&(w.find("tbody").height()>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(S.width=_t(w.outerWidth()-d)),c=w.outerWidth()):""!==l&&(S.width=_t(l),c=w.outerWidth()),gt(t,i),gt(function(t){A.push(t.innerHTML),M.push(_t(P(t).css("width")))},i),gt(function(t,e){-1!==P.inArray(t,C)&&(t.style.width=M[e])},_),P(i).height(0),k&&(gt(t,a),gt(function(t){F.push(t.innerHTML),I.push(_t(P(t).css("width")))},a),gt(function(t,e){t.style.width=I[e]},e),P(a).height(0)),gt(function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+A[e]+"</div>",t.style.width=M[e]},i),k&>(function(t,e){t.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+F[e]+"</div>",t.style.width=I[e]},a),w.outerWidth()<c?(e=g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y")?c+d:c,D&&(g.scrollHeight>g.offsetHeight||"scroll"==m.css("overflow-y"))&&(S.width=_t(e-d)),""!==o&&""===l||Ft(n,1,"Possible column misalignment",6)):e="100%",v.width=_t(e),h.width=_t(e),k&&(n.nScrollFoot.style.width=_t(e)),!u&&D&&(v.height=_t(x.offsetHeight+d)),o=w.outerWidth(),p[0].style.width=_t(o),f.width=_t(o),l=w.height()>g.clientHeight||"scroll"==m.css("overflow-y"),f[u="padding"+(T.bScrollbarLeft?"Left":"Right")]=l?d+"px":"0px",k&&(b[0].style.width=_t(o),y[0].style.width=_t(o),y[0].style[u]=l?d+"px":"0px"),w.children("colgroup").insertBefore(w.children("thead")),m.scroll(),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0))}function gt(t,e,n){for(var i,a,r=0,s=0,o=e.length;s<o;){for(i=e[s].firstChild,a=n?n[s].firstChild:null;i;)1===i.nodeType&&(n?t(i,a,r):t(i,r),r++),i=i.nextSibling,a=n?a.nextSibling:null;s++}}function mt(t){var e,n,i=t.nTable,a=t.aoColumns,r=(g=t.oScroll).sY,s=g.sX,o=g.sXInner,l=a.length,u=C(t,"bVisible"),d=P("th",t.nTHead),c=i.getAttribute("width"),h=i.parentNode,f=!1,p=t.oBrowser,g=p.bScrollOversize;for((e=i.style.width)&&-1!==e.indexOf("%")&&(c=e),e=0;e<u.length;e++)null!==(n=a[u[e]]).sWidth&&(n.sWidth=vt(n.sWidthOrig,h),f=!0);if(g||!f&&!s&&!r&&l==b(t)&&l==d.length)for(e=0;e<l;e++)null!==(u=N(t,e))&&(a[u].sWidth=_t(d.eq(e).width()));else{(l=P(i).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var m=P("<tr/>").appendTo(l.find("tbody"));for(l.find("thead, tfoot").remove(),l.append(P(t.nTHead).clone()).append(P(t.nTFoot).clone()),l.find("tfoot th, tfoot td").css("width",""),d=Y(t,l.find("thead")[0]),e=0;e<u.length;e++)n=a[u[e]],d[e].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?_t(n.sWidthOrig):"",n.sWidthOrig&&s&&P(d[e]).append(P("<div/>").css({width:n.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(e=0;e<u.length;e++)n=a[f=u[e]],P(yt(t,f)).clone(!1).append(n.sContentPadding).appendTo(m);for(P("[name]",l).removeAttr("name"),n=P("<div/>").css(s||r?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(l).appendTo(h),s&&o?l.width(o):s?(l.css("width","auto"),l.removeAttr("width"),l.width()<h.clientWidth&&c&&l.width(h.clientWidth)):r?l.width(h.clientWidth):c&&l.width(c),e=r=0;e<u.length;e++)o=(h=P(d[e])).outerWidth()-h.width(),r+=h=p.bBounding?Math.ceil(d[e].getBoundingClientRect().width):h.outerWidth(),a[u[e]].sWidth=_t(h-o);i.style.width=_t(r),n.remove()}c&&(i.style.width=_t(c)),!c&&!s||t._reszEvt||(i=function(){P(v).on("resize.DT-"+t.sInstance,me(function(){O(t)}))},g?setTimeout(i,1e3):i(),t._reszEvt=!0)}function vt(t,e){if(!t)return 0;var n=P("<div/>").css("width",_t(t)).appendTo(e||y.body),i=n[0].offsetWidth;return n.remove(),i}function yt(t,e){var n=bt(t,e);if(n<0)return null;var i=t.aoData[n];return i.nTr?i.anCells[e]:P("<td/>").html(F(t,n,e,"display"))[0]}function bt(t,e){for(var n,i=-1,a=-1,r=0,s=t.aoData.length;r<s;r++)(n=(n=(n=F(t,r,e,"display")+"").replace(ge,"")).replace(/ /g," ")).length>i&&(i=n.length,a=r);return a}function _t(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function wt(t){var e,n,i,a,r,s,o=[],l=t.aoColumns;e=t.aaSortingFixed,n=P.isPlainObject(e);var u=[];for(i=function(t){t.length&&!P.isArray(t[0])?u.push(t):P.merge(u,t)},P.isArray(e)&&i(e),n&&e.pre&&i(e.pre),i(t.aaSorting),n&&e.post&&i(e.post),t=0;t<u.length;t++)for(e=0,n=(i=l[s=u[t][0]].aDataSort).length;e<n;e++)r=l[a=i[e]].sType||"string",u[t]._idx===R&&(u[t]._idx=P.inArray(u[t][1],l[a].asSorting)),o.push({src:s,col:a,dir:u[t][1],index:u[t]._idx,type:r,formatter:te.ext.type.order[r+"-pre"]});return o}function xt(t){var e,n,i,u,d=[],c=te.ext.type.order,h=t.aoData,a=0,r=t.aiDisplayMaster;for(s(t),e=0,n=(u=wt(t)).length;e<n;e++)(i=u[e]).formatter&&a++,Ct(t,i.col);if("ssp"!=jt(t)&&0!==u.length){for(e=0,n=r.length;e<n;e++)d[r[e]]=e;a===u.length?r.sort(function(t,e){var n,i,a,r,s=u.length,o=h[t]._aSortData,l=h[e]._aSortData;for(a=0;a<s;a++)if(0!==(n=(n=o[(r=u[a]).col])<(i=l[r.col])?-1:i<n?1:0))return"asc"===r.dir?n:-n;return(n=d[t])<(i=d[e])?-1:i<n?1:0}):r.sort(function(t,e){var n,i,a,r,s=u.length,o=h[t]._aSortData,l=h[e]._aSortData;for(a=0;a<s;a++)if(n=o[(r=u[a]).col],i=l[r.col],0!==(n=(r=c[r.type+"-"+r.dir]||c["string-"+r.dir])(n,i)))return n;return(n=d[t])<(i=d[e])?-1:i<n?1:0})}t.bSorted=!0}function St(t){for(var e,n,i=t.aoColumns,a=wt(t),r=(t=t.oLanguage.oAria,0),s=i.length;r<s;r++){var o=(n=i[r]).asSorting;e=n.sTitle.replace(/<.*?>/g,"");var l=n.nTh;l.removeAttribute("aria-sort"),n.bSortable&&(e+="asc"===(n=0<a.length&&a[0].col==r?(l.setAttribute("aria-sort","asc"==a[0].dir?"ascending":"descending"),o[a[0].index+1]||o[0]):o[0])?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",e)}}function kt(t,e,n,i){function a(t,e){var n=t._idx;return n===R&&(n=P.inArray(t[1],s)),n+1<s.length?n+1:e?null:0}var r=t.aaSorting,s=t.aoColumns[e].asSorting;"number"==typeof r[0]&&(r=t.aaSorting=[r]),n&&t.oFeatures.bSortMulti?-1!==(n=P.inArray(e,oe(r,"0")))?(null===(e=a(r[n],!0))&&1===r.length&&(e=0),null===e?r.splice(n,1):(r[n][1]=s[e],r[n]._idx=e)):(r.push([e,s[0],0]),r[r.length-1]._idx=0):r.length&&r[0][0]==e?(e=a(r[0]),r.length=1,r[0][1]=s[e],r[0]._idx=e):(r.length=0,r.push([e,s[0]]),r[0]._idx=0),j(t),"function"==typeof i&&i(t)}function Tt(e,t,n,i){var a=e.aoColumns[n];Ot(t,{},function(t){!1!==a.bSortable&&(e.oFeatures.bProcessing?(ht(e,!0),setTimeout(function(){kt(e,n,t.shiftKey,i),"ssp"!==jt(e)&&ht(e,!1)},0)):kt(e,n,t.shiftKey,i))})}function Dt(t){var e,n,i=t.aLastSort,a=t.oClasses.sSortColumn,r=wt(t),s=t.oFeatures;if(s.bSort&&s.bSortClasses){for(s=0,e=i.length;s<e;s++)n=i[s].src,P(oe(t.aoData,"anCells",n)).removeClass(a+(s<2?s+1:3));for(s=0,e=r.length;s<e;s++)n=r[s].src,P(oe(t.aoData,"anCells",n)).addClass(a+(s<2?s+1:3))}t.aLastSort=r}function Ct(t,e){var n,i=t.aoColumns[e],a=te.ext.order[i.sSortDataType];a&&(n=a.call(t.oInstance,t,e,u(t,e)));for(var r,s=te.ext.type.order[i.sType+"-pre"],o=0,l=t.aoData.length;o<l;o++)(i=t.aoData[o])._aSortData||(i._aSortData=[]),i._aSortData[e]&&!a||(r=a?n[o]:F(t,o,e,"sort"),i._aSortData[e]=s?s(r):r)}function Mt(n){if(n.oFeatures.bStateSave&&!n.bDestroying){var t={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:P.extend(!0,[],n.aaSorting),search:tt(n.oPreviousSearch),columns:P.map(n.aoColumns,function(t,e){return{visible:t.bVisible,search:tt(n.aoPreSearchCols[e])}})};Lt(n,"aoStateSaveParams","stateSaveParams",[n,t]),n.oSavedState=t,n.fnStateSaveCallback.call(n.oInstance,n,t)}}function It(n,t,i){var a,r,s=n.aoColumns;t=function(t){if(t&&t.time){var e=Lt(n,"aoStateLoadParams","stateLoadParams",[n,o]);if(-1===P.inArray(!1,e)&&!(0<(e=n.iStateDuration)&&t.time<+new Date-1e3*e||t.columns&&s.length!==t.columns.length)){if(n.oLoadedState=P.extend(!0,{},o),t.start!==R&&(n._iDisplayStart=t.start,n.iInitDisplayStart=t.start),t.length!==R&&(n._iDisplayLength=t.length),t.order!==R&&(n.aaSorting=[],P.each(t.order,function(t,e){n.aaSorting.push(e[0]>=s.length?[0,e[1]]:e)})),t.search!==R&&P.extend(n.oPreviousSearch,et(t.search)),t.columns)for(a=0,r=t.columns.length;a<r;a++)(e=t.columns[a]).visible!==R&&(s[a].bVisible=e.visible),e.search!==R&&P.extend(n.aoPreSearchCols[a],et(e.search));Lt(n,"aoStateLoaded","stateLoaded",[n,o])}}i()};if(n.oFeatures.bStateSave){var o=n.fnStateLoadCallback.call(n.oInstance,n,t);o!==R&&t(o)}else i()}function At(t){var e=te.settings;return-1!==(t=P.inArray(t,oe(e,"nTable")))?e[t]:null}function Ft(t,e,n,i){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,i&&(n+=". For more information about this error, please see http://datatables.net/tn/"+i),e)v.console&&console.log&&console.log(n);else if(e=(e=te.ext).sErrMode||e.errMode,t&&Lt(t,null,"error",[t,i,n]),"alert"==e)alert(n);else{if("throw"==e)throw Error(n);"function"==typeof e&&e(t,i,n)}}function Pt(n,i,t,e){P.isArray(t)?P.each(t,function(t,e){P.isArray(e)?Pt(n,i,e[0],e[1]):Pt(n,i,e)}):(e===R&&(e=t),i[t]!==R&&(n[e]=i[t]))}function Rt(t,e,n){var i,a;for(a in e)e.hasOwnProperty(a)&&(i=e[a],P.isPlainObject(i)?(P.isPlainObject(t[a])||(t[a]={}),P.extend(!0,t[a],i)):t[a]=n&&"data"!==a&&"aaData"!==a&&P.isArray(i)?i.slice():i);return t}function Ot(e,t,n){P(e).on("click.DT",t,function(t){e.blur(),n(t)}).on("keypress.DT",t,function(t){13===t.which&&(t.preventDefault(),n(t))}).on("selectstart.DT",function(){return!1})}function Nt(t,e,n,i){n&&t[e].push({fn:n,sName:i})}function Lt(e,t,n,i){var a=[];return t&&(a=P.map(e[t].slice().reverse(),function(t){return t.fn.apply(e.oInstance,i)})),null!==n&&(t=P.Event(n+".dt"),P(e.nTable).trigger(t,i),a.push(t.result)),a}function Et(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),i=t._iDisplayLength;n<=e&&(e=n-i),e-=e%i,(-1===i||e<0)&&(e=0),t._iDisplayStart=e}function Ht(t,e){var n=t.renderer,i=te.ext.renderer[e];return P.isPlainObject(n)&&n[e]?i[n[e]]||i._:"string"==typeof n&&i[n]||i._}function jt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Wt(t,e){var n=[],i=(n=Fe.numbers_length,Math.floor(n/2));return e<=n?n=Gt(0,e):t<=i?((n=Gt(0,n-2)).push("ellipsis"),n.push(e-1)):(e-1-i<=t?n=Gt(e-(n-2),e):((n=Gt(t-i+2,t+i-1)).push("ellipsis"),n.push(e-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Bt(n){P.each({num:function(t){return Pe(t,n)},"num-fmt":function(t){return Pe(t,n,se)},"html-num":function(t){return Pe(t,n,ie)},"html-num-fmt":function(t){return Pe(t,n,ie,se)}},function(t,e){Xt.type.order[t+n+"-pre"]=e,t.match(/^html\-/)&&(Xt.type.search[t+n]=Xt.type.search.html)})}function e(e){return function(){var t=[At(this[te.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return te.ext.internal[e].apply(this,t)}}function Yt(t){return!t||!0===t||"-"===t}function qt(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null}function Vt(t,e){return ee[e]||(ee[e]=RegExp(he(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(ee[e],"."):t}function $t(t,e,n){var i="string"==typeof t;return!!Yt(t)||(e&&i&&(t=Vt(t,e)),n&&i&&(t=t.replace(se,"")),!isNaN(parseFloat(t))&&isFinite(t))}function zt(t,e,n){return!!Yt(t)||((Yt(t)||"string"==typeof t)&&!!$t(t.replace(ie,""),e,n)||null)}function Ut(t,e,n,i){var a=[],r=0,s=e.length;if(i!==R)for(;r<s;r++)t[e[r]][n]&&a.push(t[e[r]][n][i]);else for(;r<s;r++)a.push(t[e[r]][n]);return a}function Gt(t,e){var n,i=[];e===R?(e=0,n=t):(n=e,e=t);for(var a=e;a<n;a++)i.push(a);return i}function Zt(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&e.push(t[n]);return e}var Xt,Jt,Qt,Kt,te=function(m){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new Jt(t?At(this[Xt.iApiIndex]):this)},this.fnAddData=function(t,e){var n=this.api(!0),i=P.isArray(t)&&(P.isArray(t[0])||P.isPlainObject(t[0]))?n.rows.add(t):n.row.add(t);return e!==R&&!e||n.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],i=n.oScroll;t===R||t?e.draw(!1):""===i.sX&&""===i.sY||pt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();t!==R&&!t||e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var i=this.api(!0),a=(t=i.rows(t)).settings()[0],r=a.aoData[t[0][0]];return t.remove(),e&&e.call(this,a,r),n!==R&&!n||i.draw(),r},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,i,a,r){a=this.api(!0),null===e||e===R?a.search(t,n,i,r):a.column(e).search(t,n,i,r),a.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t===R)return n.data().toArray();var i=t.nodeName?t.nodeName.toLowerCase():"";return e!==R||"td"==i||"th"==i?n.cell(t,e).data():n.row(t).data()||null},this.fnGetNodes=function(t){var e=this.api(!0);return t!==R?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();return"TR"==n?e.row(t).index():"TD"==n||"TH"==n?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);e!==R&&!e||n.draw(!1)},this.fnSetColumnVis=function(t,e,n){t=this.api(!0).column(t).visible(e),n!==R&&!n||t.columns.adjust().draw()},this.fnSettings=function(){return At(this[Xt.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,i,a){var r=this.api(!0);return n===R||null===n?r.row(e).data(t):r.cell(e,n).data(t),a!==R&&!a||r.columns.adjust(),i!==R&&!i||r.draw(),0},this.fnVersionCheck=Xt.fnVersionCheck;var v=this,y=m===R,b=this.length;for(var t in y&&(m={}),this.oApi=this.internal=Xt.internal,te.ext.internal)t&&(this[t]=e(t));return this.each(function(){var n,t={},i=1<b?Rt(t,m,!0):m,a=0,r=(t=this.getAttribute("id"),!1),e=te.defaults,s=P(this);if("table"!=this.nodeName.toLowerCase())Ft(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{x(e),S(e.column),_(e,e,!0),_(e.column,e.column,!0),_(e,P.extend(i,s.data()));var o=te.settings;a=0;for(n=o.length;a<n;a++){var l=o[a];if(l.nTable==this||l.nTHead.parentNode==this||l.nTFoot&&l.nTFoot.parentNode==this){var u=i.bRetrieve!==R?i.bRetrieve:e.bRetrieve;if(y||u)return l.oInstance;if(i.bDestroy!==R?i.bDestroy:e.bDestroy){l.oInstance.fnDestroy();break}return void Ft(l,0,"Cannot reinitialise DataTable",3)}if(l.sTableId==this.id){o.splice(a,1);break}}null!==t&&""!==t||(this.id=t="DataTables_Table_"+te.ext._unique++);var d=P.extend(!0,{},te.models.oSettings,{sDestroyWidth:s[0].style.width,sInstance:t,sTableId:t});d.nTable=this,d.oApi=v.internal,d.oInit=i,o.push(d),d.oInstance=1===v.length?v:s.dataTable(),x(i),i.oLanguage&&w(i.oLanguage),i.aLengthMenu&&!i.iDisplayLength&&(i.iDisplayLength=P.isArray(i.aLengthMenu[0])?i.aLengthMenu[0][0]:i.aLengthMenu[0]),i=Rt(P.extend(!0,{},e),i),Pt(d.oFeatures,i,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),Pt(d,i,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),Pt(d.oScroll,i,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Pt(d.oLanguage,i,"fnInfoCallback"),Nt(d,"aoDrawCallback",i.fnDrawCallback,"user"),Nt(d,"aoServerParams",i.fnServerParams,"user"),Nt(d,"aoStateSaveParams",i.fnStateSaveParams,"user"),Nt(d,"aoStateLoadParams",i.fnStateLoadParams,"user"),Nt(d,"aoStateLoaded",i.fnStateLoaded,"user"),Nt(d,"aoRowCallback",i.fnRowCallback,"user"),Nt(d,"aoRowCreatedCallback",i.fnCreatedRow,"user"),Nt(d,"aoHeaderCallback",i.fnHeaderCallback,"user"),Nt(d,"aoFooterCallback",i.fnFooterCallback,"user"),Nt(d,"aoInitComplete",i.fnInitComplete,"user"),Nt(d,"aoPreDrawCallback",i.fnPreDrawCallback,"user"),d.rowIdFn=L(i.rowId),k(d);var c=d.oClasses;i.bJQueryUI?(P.extend(c,te.ext.oJUIClasses,i.oClasses),i.sDom===e.sDom&&"lfrtip"===e.sDom&&(d.sDom='<"H"lfr>t<"F"ip>'),d.renderer?P.isPlainObject(d.renderer)&&!d.renderer.header&&(d.renderer.header="jqueryui"):d.renderer="jqueryui"):P.extend(c,te.ext.classes,i.oClasses),s.addClass(c.sTable),d.iInitDisplayStart===R&&(d.iInitDisplayStart=i.iDisplayStart,d._iDisplayStart=i.iDisplayStart),null!==i.iDeferLoading&&(d.bDeferLoading=!0,t=P.isArray(i.iDeferLoading),d._iRecordsDisplay=t?i.iDeferLoading[0]:i.iDeferLoading,d._iRecordsTotal=t?i.iDeferLoading[1]:i.iDeferLoading);var h=d.oLanguage;P.extend(!0,h,i.oLanguage),h.sUrl&&(P.ajax({dataType:"json",url:h.sUrl,success:function(t){w(t),_(e.oLanguage,t),P.extend(!0,h,t),rt(d)},error:function(){rt(d)}}),r=!0),null===i.asStripeClasses&&(d.asStripeClasses=[c.sStripeOdd,c.sStripeEven]);t=d.asStripeClasses;var f=s.children("tbody").find("tr").eq(0);if(-1!==P.inArray(!0,P.map(t,function(t){return f.hasClass(t)}))&&(P("tbody tr",this).removeClass(t.join(" ")),d.asDestroyStripes=t.slice()),t=[],0!==(o=this.getElementsByTagName("thead")).length&&(B(d.aoHeader,o[0]),t=Y(d)),null===i.aoColumns)for(o=[],a=0,n=t.length;a<n;a++)o.push(null);else o=i.aoColumns;for(a=0,n=o.length;a<n;a++)T(d,t?t[a]:null);if(M(d,i.aoColumnDefs,o,function(t,e){D(d,t,e)}),f.length){function p(t,e){return null!==t.getAttribute("data-"+e)?e:null}P(f[0]).children("th, td").each(function(t,e){var n=d.aoColumns[t];if(n.mData===t){var i=p(e,"sort")||p(e,"order"),a=p(e,"filter")||p(e,"search");null===i&&null===a||(n.mData={_:t+".display",sort:null!==i?t+".@data-"+i:R,type:null!==i?t+".@data-"+i:R,filter:null!==a?t+".@data-"+a:R},D(d,t))}})}var g=d.oFeatures;t=function(){if(i.aaSorting===R){var t=d.aaSorting;for(a=0,n=t.length;a<n;a++)t[a][1]=d.aoColumns[a].asSorting[0]}Dt(d),g.bSort&&Nt(d,"aoDrawCallback",function(){if(d.bSorted){var t=wt(d),n={};P.each(t,function(t,e){n[e.src]=e.dir}),Lt(d,null,"order",[d,t,n]),St(d)}}),Nt(d,"aoDrawCallback",function(){(d.bSorted||"ssp"===jt(d)||g.bDeferRender)&&Dt(d)},"sc");t=s.children("caption").each(function(){this._captionSide=P(this).css("caption-side")});var e=s.children("thead");if(0===e.length&&(e=P("<thead/>").appendTo(s)),d.nTHead=e[0],0===(e=s.children("tbody")).length&&(e=P("<tbody/>").appendTo(s)),d.nTBody=e[0],0===(e=s.children("tfoot")).length&&0<t.length&&(""!==d.oScroll.sX||""!==d.oScroll.sY)&&(e=P("<tfoot/>").appendTo(s)),0===e.length||0===e.children().length?s.addClass(c.sNoFooter):0<e.length&&(d.nTFoot=e[0],B(d.aoFooter,d.nTFoot)),i.aaData)for(a=0;a<i.aaData.length;a++)I(d,i.aaData[a]);else!d.bDeferLoading&&"dom"!=jt(d)||A(d,P(d.nTBody).children("tr"));d.aiDisplay=d.aiDisplayMaster.slice(),!(d.bInitialised=!0)===r&&rt(d)};i.bStateSave?(g.bStateSave=!0,Nt(d,"aoDrawCallback",Mt,"state_save"),It(d,i,t)):t()}}),v=null,this},ee={},ne=/[\r\n]/g,ie=/<.*?>/g,ae=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,re=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),se=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,oe=function(t,e,n){var i=[],a=0,r=t.length;if(n!==R)for(;a<r;a++)t[a]&&t[a][e]&&i.push(t[a][e][n]);else for(;a<r;a++)t[a]&&i.push(t[a][e]);return i},le=function(t){var e,n,i,a=[],r=t.length,s=0;n=0;t:for(;n<r;n++){for(e=t[n],i=0;i<s;i++)if(a[i]===e)continue t;a.push(e),s++}return a};te.util={throttle:function(i,t){var a,r,s=t!==R?t:200;return function(){var t=this,e=+new Date,n=arguments;a&&e<a+s?(clearTimeout(r),r=setTimeout(function(){a=R,i.apply(t,n)},s)):(a=e,i.apply(t,n))}},escapeRegex:function(t){return t.replace(re,"\\$1")}};var ue=function(t,e,n){t[e]!==R&&(t[n]=t[e])},de=/\[.*?\]$/,ce=/\(\)$/,he=te.util.escapeRegex,fe=P("<div>")[0],pe=fe.textContent!==R,ge=/<.*?>/g,me=te.util.throttle,ve=[],ye=Array.prototype;Jt=function(t,e){if(!(this instanceof Jt))return new Jt(t,e);function n(t){(t=function(t){var e,n,i=te.settings,a=P.map(i,function(t){return t.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(e=P.inArray(t,a))?[i[e]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?n=P(t):t instanceof P&&(n=t),n?n.map(function(){return-1!==(e=P.inArray(this,a))?i[e]:null}).toArray():void 0):[]}(t))&&(i=i.concat(t))}var i=[];if(P.isArray(t))for(var a=0,r=t.length;a<r;a++)n(t[a]);else n(t);this.context=le(i),e&&P.merge(this,e),this.selector={rows:null,cols:null,opts:null},Jt.extend(this,this,ve)},te.Api=Jt,P.extend(Jt.prototype,{any:function(){return 0!==this.count()},concat:ye.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new Jt(e[t],this[t]):null},filter:function(t){var e=[];if(ye.filter)e=ye.filter.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new Jt(this.context,e)},flatten:function(){var t=[];return new Jt(this.context,t.concat.apply(t,this.toArray()))},join:ye.join,indexOf:ye.indexOf||function(t,e){for(var n=e||0,i=this.length;n<i;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,i){var a,r,s,o,l,u,d,c=[],h=this.context,f=this.selector;for("string"==typeof t&&(i=n,n=e,e=t,t=!1),r=0,s=h.length;r<s;r++){var p=new Jt(h[r]);if("table"===e)(a=n.call(p,h[r],r))!==R&&c.push(a);else if("columns"===e||"rows"===e)(a=n.call(p,h[r],this[r],r))!==R&&c.push(a);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[r],"column-rows"===e&&(u=Se(h[r],f.opts)),o=0,l=d.length;o<l;o++)a=d[o],(a="cell"===e?n.call(p,h[r],a.row,a.column,r,o):n.call(p,h[r],a,r,o,u))!==R&&c.push(a)}return c.length||i?((e=(t=new Jt(h,t?c.concat.apply([],c):c)).selector).rows=f.rows,e.cols=f.cols,e.opts=f.opts,t):this},lastIndexOf:ye.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(ye.map)e=ye.map.call(this,t,this);else for(var n=0,i=this.length;n<i;n++)e.push(t.call(this,this[n],n));return new Jt(this.context,e)},pluck:function(e){return this.map(function(t){return t[e]})},pop:ye.pop,push:ye.push,reduce:ye.reduce||function(t,e){return n(this,t,e,0,this.length,1)},reduceRight:ye.reduceRight||function(t,e){return n(this,t,e,this.length-1,-1,-1)},reverse:ye.reverse,selector:null,shift:ye.shift,sort:ye.sort,splice:ye.splice,toArray:function(){return ye.slice.call(this)},to$:function(){return P(this)},toJQuery:function(){return P(this)},unique:function(){return new Jt(this.context,le(this))},unshift:ye.unshift}),Jt.extend=function(t,e,n){if(n.length&&e&&(e instanceof Jt||e.__dt_wrapper)){function i(e,n,i){return function(){var t=n.apply(e,arguments);return Jt.extend(t,t,i.methodExt),t}}var a,r,s;for(a=0,r=n.length;a<r;a++)e[(s=n[a]).name]="function"==typeof s.val?i(t,s.val,s):P.isPlainObject(s.val)?{}:s.val,e[s.name].__dt_wrapper=!0,Jt.extend(t,e[s.name],s.propExt)}},Jt.register=Qt=function(t,e){if(P.isArray(t))for(var n=0,i=t.length;n<i;n++)Jt.register(t[n],e);else{var a,r,s=t.split("."),o=ve;for(n=0,i=s.length;n<i;n++){var l;a=(r=-1!==s[n].indexOf("()"))?s[n].replace("()",""):s[n];t:{l=0;for(var u=o.length;l<u;l++)if(o[l].name===a){l=o[l];break t}l=null}l||(l={name:a,val:{},methodExt:[],propExt:[]},o.push(l)),n===i-1?l.val=e:o=r?l.methodExt:l.propExt}}},Jt.registerPlural=Kt=function(t,e,n){Jt.register(t,n),Jt.register(e,function(){var t=n.apply(this,arguments);return t===this?this:t instanceof Jt?t.length?P.isArray(t[0])?new Jt(t.context,t[0]):t[0]:R:t})},Qt("tables()",function(t){var e;if(t){e=Jt;var n=this.context;if("number"==typeof t)t=[n[t]];else{var i=P.map(n,function(t){return t.nTable});t=P(i).filter(t).map(function(){var t=P.inArray(this,i);return n[t]}).toArray()}e=new e(t)}else e=this;return e}),Qt("table()",function(t){var e=(t=this.tables(t)).context;return e.length?new Jt(e[0]):t}),Kt("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),Kt("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),Kt("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),Kt("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),Kt("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),Qt("draw()",function(e){return this.iterator("table",function(t){"page"===e?H(t):("string"==typeof e&&(e="full-hold"!==e),j(t,!1===e))})}),Qt("page()",function(e){return e===R?this.page.info().page:this.iterator("table",function(t){dt(t,e)})}),Qt("page.info()",function(){if(0===this.context.length)return R;var t=this.context[0],e=t._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,i=t.fnRecordsDisplay(),a=-1===n;return{page:a?0:Math.floor(e/n),pages:a?1:Math.ceil(i/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===jt(t)}}),Qt("page.len()",function(e){return e===R?0!==this.context.length?this.context[0]._iDisplayLength:R:this.iterator("table",function(t){ot(t,e)})});function be(i,a,t){if(t){var e=new Jt(i);e.one("draw",function(){t(e.ajax.json())})}if("ssp"==jt(i))j(i,a);else{ht(i,!0);var n=i.jqXHR;n&&4!==n.readyState&&n.abort(),q(i,[],function(t){o(i);for(var e=0,n=(t=z(i,t)).length;e<n;e++)I(i,t[e]);j(i,a),ht(i,!1)})}}Qt("ajax.json()",function(){var t=this.context;if(0<t.length)return t[0].json}),Qt("ajax.params()",function(){var t=this.context;if(0<t.length)return t[0].oAjaxData}),Qt("ajax.reload()",function(e,n){return this.iterator("table",function(t){be(t,!1===n,e)})}),Qt("ajax.url()",function(e){var t=this.context;return e===R?0===t.length?R:(t=t[0]).ajax?P.isPlainObject(t.ajax)?t.ajax.url:t.ajax:t.sAjaxSource:this.iterator("table",function(t){P.isPlainObject(t.ajax)?t.ajax.url=e:t.ajax=e})}),Qt("ajax.url().load()",function(e,n){return this.iterator("table",function(t){be(t,!1===n,e)})});function _e(t,e,n,i,a){var r,s,o,l,u,d,c=[];for(o=typeof e,e&&"string"!==o&&"function"!==o&&e.length!==R||(e=[e]),o=0,l=e.length;o<l;o++)for(u=0,d=(s=e[o]&&e[o].split&&!e[o].match(/[\[\(:]/)?e[o].split(","):[e[o]]).length;u<d;u++)(r=n("string"==typeof s[u]?P.trim(s[u]):s[u]))&&r.length&&(c=c.concat(r));if((t=Xt.selector[t]).length)for(o=0,l=t.length;o<l;o++)c=t[o](i,a,c);return le(c)}function we(t){return(t=t||{}).filter&&t.search===R&&(t.search=t.filter),P.extend({search:"none",order:"current",page:"all"},t)}function xe(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t}var Se=function(t,e){var n,i,a,r=[],s=t.aiDisplay;n=t.aiDisplayMaster;var o=e.search;if(i=e.order,a=e.page,"ssp"==jt(t))return"removed"===o?[]:Gt(0,n.length);if("current"==a)for(n=t._iDisplayStart,i=t.fnDisplayEnd();n<i;n++)r.push(s[n]);else if("current"==i||"applied"==i)r="none"==o?n.slice():"applied"==o?s.slice():P.map(n,function(t){return-1===P.inArray(t,s)?t:null});else if("index"==i||"original"==i)for(n=0,i=t.aoData.length;n<i;n++)"none"==o?r.push(n):(-1===(a=P.inArray(n,s))&&"removed"==o||0<=a&&"applied"==o)&&r.push(n);return r};Qt("rows()",function(t,e){t===R?t="":P.isPlainObject(t)&&(e=t,t="");e=we(e);var n=this.iterator("table",function(i){var a,r=e;return _e("row",t,function(n){var t=qt(n);if(null!==t&&!r)return[t];if(a=a||Se(i,r),null!==t&&-1!==P.inArray(t,a))return[t];if(null===n||n===R||""===n)return a;if("function"==typeof n)return P.map(a,function(t){var e=i.aoData[t];return n(t,e._aData,e.nTr)?t:null});if(t=Zt(Ut(i.aoData,a,"nTr")),n.nodeName)return n._DT_RowIndex!==R?[n._DT_RowIndex]:n._DT_CellIndex?[n._DT_CellIndex.row]:(t=P(n).closest("*[data-dt-row]")).length?[t.data("dt-row")]:[];if("string"==typeof n&&"#"===n.charAt(0)){var e=i.aIds[n.replace(/^#/,"")];if(e!==R)return[e.idx]}return P(t).filter(n).map(function(){return this._DT_RowIndex}).toArray()},i,r)},1);return n.selector.rows=t,n.selector.opts=e,n}),Qt("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||R},1)}),Qt("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return Ut(t.aoData,e,"_aData")},1)}),Kt("rows().cache()","row().cache()",function(i){return this.iterator("row",function(t,e){var n=t.aoData[e];return"search"===i?n._aFilterData:n._aSortData},1)}),Kt("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(t,e){a(t,e,n)})}),Kt("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),Kt("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,i=0,a=n.length;i<a;i++)for(var r=0,s=this[i].length;r<s;r++){var o=n[i].rowIdFn(n[i].aoData[this[i][r]]._aData);e.push((!0===t?"#":"")+o)}return new Jt(n,e)}),Kt("rows().remove()","row().remove()",function(){var d=this;return this.iterator("row",function(t,e,n){var i,a,r,s,o,l=t.aoData,u=l[e];for(l.splice(e,1),i=0,a=l.length;i<a;i++)if(o=(r=l[i]).anCells,null!==r.nTr&&(r.nTr._DT_RowIndex=i),null!==o)for(r=0,s=o.length;r<s;r++)o[r]._DT_CellIndex.row=i;c(t.aiDisplayMaster,e),c(t.aiDisplay,e),c(d[n],e,!1),Et(t),(e=t.rowIdFn(u._aData))!==R&&delete t.aIds[e]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e}),this}),Qt("rows.add()",function(r){var t=this.iterator("table",function(t){var e,n,i,a=[];for(n=0,i=r.length;n<i;n++)(e=r[n]).nodeName&&"TR"===e.nodeName.toUpperCase()?a.push(A(t,e)[0]):a.push(I(t,e));return a},1),e=this.rows(-1);return e.pop(),P.merge(e,t),e}),Qt("row()",function(t,e){return xe(this.rows(t,e))}),Qt("row().data()",function(t){var e=this.context;return t===R?e.length&&this.length?e[0].aoData[this[0]]._aData:R:(e[0].aoData[this[0]]._aData=t,a(e[0],this[0],"data"),this)}),Qt("row().node()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null}),Qt("row.add()",function(e){e instanceof P&&e.length&&(e=e[0]);var t=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?A(t,e)[0]:I(t,e)});return this.row(t[0])});function ke(t,e){var n=t.context;n.length&&(n=n[0].aoData[e!==R?e:t[0]])&&n._details&&(n._details.remove(),n._detailsShow=R,n._details=R)}function Te(t,e){var n=t.context;if(n.length&&t.length){var i=n[0].aoData[t[0]];if(i._details){(i._detailsShow=e)?i._details.insertAfter(i.nTr):i._details.detach();var s=n[0],a=new Jt(s),o=s.aoData;a.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<oe(o,"_details").length&&(a.on("draw.dt.DT_details",function(t,e){s===e&&a.rows({page:"current"}).eq(0).each(function(t){(t=o[t])._detailsShow&&t._details.insertAfter(t.nTr)})}),a.on("column-visibility.dt.DT_details",function(t,e){if(s===e)for(var n,i=b(e),a=0,r=o.length;a<r;a++)(n=o[a])._details&&n._details.children("td[colspan]").attr("colspan",i)}),a.on("destroy.dt.DT_details",function(t,e){if(s===e)for(var n=0,i=o.length;n<i;n++)o[n]._details&&ke(a,n)}))}}}Qt("row().child()",function(t,e){var n=this.context;if(t===R)return n.length&&this.length?n[0].aoData[this[0]]._details:R;if(!0===t)this.child.show();else if(!1===t)ke(this);else if(n.length&&this.length){var a=n[0],r=(n=n[0].aoData[this[0]],[]),s=function(t,e){if(P.isArray(t)||t instanceof P)for(var n=0,i=t.length;n<i;n++)s(t[n],e);else t.nodeName&&"tr"===t.nodeName.toLowerCase()?r.push(t):(n=P("<tr><td/></tr>").addClass(e),P("td",n).addClass(e).html(t)[0].colSpan=b(a),r.push(n[0]))};s(t,e),n._details&&n._details.detach(),n._details=P(r),n._detailsShow&&n._details.insertAfter(n.nTr)}return this}),Qt(["row().child.show()","row().child().show()"],function(){return Te(this,!0),this}),Qt(["row().child.hide()","row().child().hide()"],function(){return Te(this,!1),this}),Qt(["row().child.remove()","row().child().remove()"],function(){return ke(this),this}),Qt("row().child.isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1});function De(t,e,n,i,a){n=[],i=0;for(var r=a.length;i<r;i++)n.push(F(t,a[i],e));return n}var Ce=/^([^:]+):(name|visIdx|visible)$/;Qt("columns()",function(e,n){e===R?e="":P.isPlainObject(e)&&(n=e,e="");n=we(n);var t=this.iterator("table",function(r){var t=e,s=n,o=r.aoColumns,l=oe(o,"sName"),u=oe(o,"nTh");return _e("column",t,function(n){var t=qt(n);if(""===n)return Gt(o.length);if(null!==t)return[0<=t?t:o.length+t];if("function"==typeof n){var i=Se(r,s);return P.map(o,function(t,e){return n(e,De(r,e,0,0,i),u[e])?e:null})}var a="string"==typeof n?n.match(Ce):"";if(a)switch(a[2]){case"visIdx":case"visible":if((t=parseInt(a[1],10))<0){var e=P.map(o,function(t,e){return t.bVisible?e:null});return[e[e.length+t]]}return[N(r,t)];case"name":return P.map(l,function(t,e){return t===a[1]?e:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(t=P(u).filter(n).map(function(){return P.inArray(this,u)}).toArray()).length||!n.nodeName?t:(t=P(n).closest("*[data-dt-column]")).length?[t.data("dt-column")]:[]},r,s)},1);return t.selector.cols=e,t.selector.opts=n,t}),Kt("columns().header()","column().header()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),Kt("columns().footer()","column().footer()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),Kt("columns().data()","column().data()",function(){return this.iterator("column-rows",De,1)}),Kt("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),Kt("columns().cache()","column().cache()",function(r){return this.iterator("column-rows",function(t,e,n,i,a){return Ut(t.aoData,a,"search"===r?"_aFilterData":"_aSortData",e)},1)}),Kt("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,i,a){return Ut(t.aoData,a,"anCells",e)},1)}),Kt("columns().visible()","column().visible()",function(u,n){var t=this.iterator("column",function(t,e){if(u===R)return t.aoColumns[e].bVisible;var n,i,a,r=t.aoColumns,s=r[e],o=t.aoData;if(u!==R&&s.bVisible!==u){if(u){var l=P.inArray(!0,oe(r,"bVisible"),e+1);for(n=0,i=o.length;n<i;n++)a=o[n].nTr,r=o[n].anCells,a&&a.insertBefore(r[e],r[l]||null)}else P(oe(t.aoData,"anCells",e)).detach();s.bVisible=u,E(t,t.aoHeader),E(t,t.aoFooter),Mt(t)}});return u!==R&&(this.iterator("column",function(t,e){Lt(t,null,"column-visibility",[t,e,u,n])}),n!==R&&!n||this.columns.adjust()),t}),Kt("columns().indexes()","column().index()",function(n){return this.iterator("column",function(t,e){return"visible"===n?u(t,e):e},1)}),Qt("columns.adjust()",function(){return this.iterator("table",function(t){O(t)},1)}),Qt("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return N(n,e);if("fromData"===t||"toVisible"===t)return u(n,e)}}),Qt("column()",function(t,e){return xe(this.columns(t,e))}),Qt("cells()",function(g,t,m){if(P.isPlainObject(g)&&(g.row===R?(m=g,g=null):(m=t,t=null)),P.isPlainObject(t)&&(m=t,t=null),null===t||t===R)return this.iterator("table",function(n){var i,a,r,s,o,l,u,t=g,e=we(m),d=n.aoData,c=Se(n,e),h=Zt(Ut(d,c,"anCells")),f=P([].concat.apply([],h)),p=n.aoColumns.length;return _e("cell",t,function(t){var e="function"==typeof t;if(null===t||t===R||e){for(a=[],r=0,s=c.length;r<s;r++)for(i=c[r],o=0;o<p;o++)l={row:i,column:o},e?(u=d[i],t(l,F(n,i,o),u.anCells?u.anCells[o]:null)&&a.push(l)):a.push(l);return a}return P.isPlainObject(t)?[t]:(e=f.filter(t).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray()).length||!t.nodeName?e:(u=P(t).closest("*[data-dt-row]")).length?[{row:u.data("dt-row"),column:u.data("dt-column")}]:[]},n,e)});var n,i,a,r,s,o=this.columns(t,m),l=this.rows(g,m),e=this.iterator("table",function(t,e){for(n=[],i=0,a=l[e].length;i<a;i++)for(r=0,s=o[e].length;r<s;r++)n.push({row:l[e][i],column:o[e][r]});return n},1);return P.extend(e.selector,{cols:t,rows:g,opts:m}),e}),Kt("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){return(t=t.aoData[e])&&t.anCells?t.anCells[n]:R},1)}),Qt("cells().data()",function(){return this.iterator("cell",function(t,e,n){return F(t,e,n)},1)}),Kt("cells().cache()","cell().cache()",function(i){return i="search"===i?"_aFilterData":"_aSortData",this.iterator("cell",function(t,e,n){return t.aoData[e][i][n]},1)}),Kt("cells().render()","cell().render()",function(i){return this.iterator("cell",function(t,e,n){return F(t,e,n,i)},1)}),Kt("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:u(t,n)}},1)}),Kt("cells().invalidate()","cell().invalidate()",function(i){return this.iterator("cell",function(t,e,n){a(t,e,i,n)})}),Qt("cell()",function(t,e,n){return xe(this.cells(t,e,n))}),Qt("cell().data()",function(t){var e=this.context,n=this[0];return t===R?e.length&&n.length?F(e[0],n[0].row,n[0].column):R:(i(e[0],n[0].row,n[0].column,t),a(e[0],n[0].row,"data",n[0].column),this)}),Qt("order()",function(e,t){var n=this.context;return e===R?0!==n.length?n[0].aaSorting:R:("number"==typeof e?e=[[e,t]]:e.length&&!P.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),Qt("order.listener()",function(e,n,i){return this.iterator("table",function(t){Tt(t,e,n,i)})}),Qt("order.fixed()",function(e){if(e)return this.iterator("table",function(t){t.aaSortingFixed=P.extend(!0,{},e)});var t=(t=this.context).length?t[0].aaSortingFixed:R;return P.isArray(t)?{pre:t}:t}),Qt(["columns().order()","column().order()"],function(i){var a=this;return this.iterator("table",function(t,e){var n=[];P.each(a[e],function(t,e){n.push([e,i])}),t.aaSorting=n})}),Qt("search()",function(e,n,i,a){var t=this.context;return e===R?0!==t.length?t[0].oPreviousSearch.sSearch:R:this.iterator("table",function(t){t.oFeatures.bFilter&&G(t,P.extend({},t.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===a||a}),1)})}),Kt("columns().search()","column().search()",function(i,a,r,s){return this.iterator("column",function(t,e){var n=t.aoPreSearchCols;if(i===R)return n[e].sSearch;t.oFeatures.bFilter&&(P.extend(n[e],{sSearch:i+"",bRegex:null!==a&&a,bSmart:null===r||r,bCaseInsensitive:null===s||s}),G(t,t.oPreviousSearch,1))})}),Qt("state()",function(){return this.context.length?this.context[0].oSavedState:null}),Qt("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),Qt("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),Qt("state.save()",function(){return this.iterator("table",function(t){Mt(t)})}),te.versionCheck=te.fnVersionCheck=function(t){for(var e,n,i=te.version.split("."),a=0,r=(t=t.split(".")).length;a<r;a++)if((e=parseInt(i[a],10)||0)!==(n=parseInt(t[a],10)||0))return n<e;return!0},te.isDataTable=te.fnIsDataTable=function(t){var a=P(t).get(0),r=!1;return t instanceof te.Api||(P.each(te.settings,function(t,e){var n=e.nScrollHead?P("table",e.nScrollHead)[0]:null,i=e.nScrollFoot?P("table",e.nScrollFoot)[0]:null;e.nTable!==a&&n!==a&&i!==a||(r=!0)}),r)},te.tables=te.fnTables=function(e){var t=!1;P.isPlainObject(e)&&(t=e.api,e=e.visible);var n=P.map(te.settings,function(t){if(!e||e&&P(t.nTable).is(":visible"))return t.nTable});return t?new Jt(n):n},te.camelToHungarian=_,Qt("$()",function(t,e){var n=this.rows(e).nodes();n=P(n);return P([].concat(n.filter(t).toArray(),n.find(t).toArray()))}),P.each(["on","one","off"],function(t,n){Qt(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=P.map(t[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" ");var e=P(this.tables().nodes());return e[n].apply(e,t),this})}),Qt("clear()",function(){return this.iterator("table",function(t){o(t)})}),Qt("settings()",function(){return new Jt(this.context,this.context)}),Qt("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),Qt("data()",function(){return this.iterator("table",function(t){return oe(t.aoData,"_aData")}).flatten()}),Qt("destroy()",function(c){return c=c||!1,this.iterator("table",function(e){var n,t=e.nTableWrapper.parentNode,i=e.oClasses,a=e.nTable,r=e.nTBody,s=e.nTHead,o=e.nTFoot,l=P(a),u=(r=P(r),P(e.nTableWrapper)),d=P.map(e.aoData,function(t){return t.nTr});e.bDestroying=!0,Lt(e,"aoDestroyCallback","destroy",[e]),c||new Jt(e).columns().visible(!0),u.off(".DT").find(":not(tbody *)").off(".DT"),P(v).off(".DT-"+e.sInstance),a!=s.parentNode&&(l.children("thead").detach(),l.append(s)),o&&a!=o.parentNode&&(l.children("tfoot").detach(),l.append(o)),e.aaSorting=[],e.aaSortingFixed=[],Dt(e),P(d).removeClass(e.asStripeClasses.join(" ")),P("th, td",s).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),e.bJUI&&(P("th span."+i.sSortIcon+", td span."+i.sSortIcon,s).detach(),P("th, td",s).each(function(){var t=P("div."+i.sSortJUIWrapper,this);P(this).append(t.contents()),t.detach()})),r.children().detach(),r.append(d),l[s=c?"remove":"detach"](),u[s](),!c&&t&&(t.insertBefore(a,e.nTableReinsertBefore),l.css("width",e.sDestroyWidth).removeClass(i.sTable),(n=e.asDestroyStripes.length)&&r.children().each(function(t){P(this).addClass(e.asDestroyStripes[t%n])})),-1!==(t=P.inArray(e,te.settings))&&te.settings.splice(t,1)})}),P.each(["column","row","cell"],function(t,l){Qt(l+"s().every()",function(r){var s=this.selector.opts,o=this;return this.iterator(l,function(t,e,n,i,a){r.call(o[l](e,"cell"===l?n:s,"cell"===l?s:R),e,n,i,a)})})}),Qt("i18n()",function(t,e,n){var i=this.context[0];return(t=L(t)(i.oLanguage))===R&&(t=e),n!==R&&P.isPlainObject(t)&&(t=t[n]!==R?t[n]:t._),t.replace("%d",n)}),te.version="1.10.13",te.settings=[],te.models={},te.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},te.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},te.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},te.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:P.extend({},te.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(te.defaults),te.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(te.defaults.column),te.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:R,oAjaxData:R,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==jt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==jt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,a=this.oFeatures,r=a.bPaginate;return a.bServerSide?!1===r||-1===t?e+i:Math.min(e+t,this._iRecordsDisplay):!r||i<n||-1===t?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},te.ext=Xt={buttons:{},classes:{},build:"bs/dt-1.10.13/b-1.2.4/b-colvis-1.2.4/b-html5-1.2.4",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:te.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:te.version},P.extend(Xt,{afnFiltering:Xt.search,aTypes:Xt.type.detect,ofnSearch:Xt.type.search,oSort:Xt.type.order,afnSortData:Xt.order,aoFeatures:Xt.feature,oApi:Xt.internal,oStdClasses:Xt.classes,oPagination:Xt.pager}),P.extend(te.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Me="ui-state-default",Ie="css_right ui-icon ui-icon-",Ae="fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";P.extend(te.ext.oJUIClasses,te.ext.classes,{sPageButton:"fg-button ui-button "+Me,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:Me+" sorting_asc",sSortDesc:Me+" sorting_desc",sSortable:Me+" sorting",sSortableAsc:Me+" sorting_asc_disabled",sSortableDesc:Me+" sorting_desc_disabled",sSortableNone:Me+" sorting_disabled",sSortJUIAsc:Ie+"triangle-1-n",sSortJUIDesc:Ie+"triangle-1-s",sSortJUI:Ie+"carat-2-n-s",sSortJUIAscAllowed:Ie+"carat-1-n",sSortJUIDescAllowed:Ie+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+Me,sScrollFoot:"dataTables_scrollFoot "+Me,sHeaderTH:Me,sFooterTH:Me,sJUIHeader:Ae+" ui-corner-tl ui-corner-tr",sJUIFooter:Ae+" ui-corner-bl ui-corner-br"});var Fe=te.ext.pager;P.extend(Fe,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[Wt(t,e)]},simple_numbers:function(t,e){return["previous",Wt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Wt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Wt(t,e),"last"]},_numbers:Wt,numbers_length:7}),P.extend(!0,te.ext.renderer,{pageButton:{_:function(o,t,l,e,u,d){var c,h,n,f=o.oClasses,p=o.oLanguage.oPaginate,g=o.oLanguage.oAria.paginate||{},m=0,v=function(t,e){function n(t){dt(o,t.data.action,!0)}var i,a,r,s;for(i=0,a=e.length;i<a;i++)if(s=e[i],P.isArray(s))r=P("<"+(s.DT_el||"div")+"/>").appendTo(t),v(r,s);else{switch(c=null,h="",s){case"ellipsis":t.append('<span class="ellipsis">…</span>');break;case"first":c=p.sFirst,h=s+(0<u?"":" "+f.sPageButtonDisabled);break;case"previous":c=p.sPrevious,h=s+(0<u?"":" "+f.sPageButtonDisabled);break;case"next":c=p.sNext,h=s+(u<d-1?"":" "+f.sPageButtonDisabled);break;case"last":c=p.sLast,h=s+(u<d-1?"":" "+f.sPageButtonDisabled);break;default:c=s+1,h=u===s?f.sPageButtonActive:""}null!==c&&(Ot(r=P("<a>",{class:f.sPageButton+" "+h,"aria-controls":o.sTableId,"aria-label":g[s],"data-dt-idx":m,tabindex:o.iTabIndex,id:0===l&&"string"==typeof s?o.sTableId+"_"+s:null}).html(c).appendTo(t),{action:s},n),m++)}};try{n=P(t).find(y.activeElement).data("dt-idx")}catch(t){}v(P(t).empty(),e),n!==R&&P(t).find("[data-dt-idx="+n+"]").focus()}}}),P.extend(te.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return $t(t,n)?"num"+n:null},function(t){if(t&&!(t instanceof Date)&&!ae.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||Yt(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return $t(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return zt(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return zt(t,n,!0)?"html-num-fmt"+n:null},function(t){return Yt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),P.extend(te.ext.type.search,{html:function(t){return Yt(t)?t:"string"==typeof t?t.replace(ne," ").replace(ie,""):""},string:function(t){return Yt(t)?t:"string"==typeof t?t.replace(ne," "):t}});var Pe=function(t,e,n,i){return 0===t||t&&"-"!==t?(e&&(t=Vt(t,e)),t.replace&&(n&&(t=t.replace(n,"")),i&&(t=t.replace(i,""))),1*t):-1/0};P.extend(Xt.type.order,{"date-pre":function(t){return Date.parse(t)||-1/0},"html-pre":function(t){return Yt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Yt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:e<t?1:0},"string-desc":function(t,e){return t<e?1:e<t?-1:0}}),Bt(""),P.extend(!0,te.ext.renderer,{header:{_:function(a,r,s,o){P(a.nTable).on("order.dt.DT",function(t,e,n,i){a===e&&(t=s.idx,r.removeClass(s.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==i[t]?o.sSortAsc:"desc"==i[t]?o.sSortDesc:s.sSortingClass))})},jqueryui:function(a,r,s,o){P("<div/>").addClass(o.sSortJUIWrapper).append(r.contents()).append(P("<span/>").addClass(o.sSortIcon+" "+s.sSortingClassJUI)).appendTo(r),P(a.nTable).on("order.dt.DT",function(t,e,n,i){a===e&&(t=s.idx,r.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==i[t]?o.sSortAsc:"desc"==i[t]?o.sSortDesc:s.sSortingClass),r.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==i[t]?o.sSortJUIAsc:"desc"==i[t]?o.sSortJUIDesc:s.sSortingClassJUI))})}}});function Re(t){return"string"==typeof t?t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t}return te.render={number:function(i,a,r,s,o){return{display:function(t){if("number"!=typeof t&&"string"!=typeof t)return t;var e=t<0?"-":"",n=parseFloat(t);return isNaN(n)?Re(t):(n=n.toFixed(r),t=Math.abs(n),n=parseInt(t,10),t=r?a+(t-n).toFixed(r).substring(2):"",e+(s||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,i)+t+(o||""))}}},text:function(){return{display:Re}}},P.extend(te.ext.internal,{_fnExternApiFunc:e,_fnBuildAjax:q,_fnAjaxUpdate:V,_fnAjaxParameters:t,_fnAjaxUpdateDraw:$,_fnAjaxDataSrc:z,_fnAddColumn:T,_fnColumnOptions:D,_fnAdjustColumnSizing:O,_fnVisibleToColumnIndex:N,_fnColumnIndexToVisible:u,_fnVisbleColumns:b,_fnGetColumns:C,_fnColumnTypes:s,_fnApplyColumnDefs:M,_fnHungarianMap:r,_fnCamelToHungarian:_,_fnLanguageCompat:w,_fnBrowserDetect:k,_fnAddData:I,_fnAddTr:A,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==R?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,e,n){return P.inArray(n,t.aoData[e].anCells)},_fnGetCellData:F,_fnSetCellData:i,_fnSplitObjNotation:d,_fnGetObjectDataFn:L,_fnSetObjectDataFn:p,_fnGetDataMaster:f,_fnClearTable:o,_fnDeleteIndex:c,_fnInvalidate:a,_fnGetRowElements:l,_fnCreateTr:g,_fnBuildHead:m,_fnDrawHead:E,_fnDraw:H,_fnReDraw:j,_fnAddOptionsHtml:W,_fnDetectHeader:B,_fnGetUniqueThs:Y,_fnFeatureHtmlFilter:U,_fnFilterComplete:G,_fnFilterCustom:Z,_fnFilterColumn:X,_fnFilter:J,_fnFilterCreateSearch:Q,_fnEscapeRegex:he,_fnFilterData:K,_fnFeatureHtmlInfo:nt,_fnUpdateInfo:it,_fnInfoMacros:at,_fnInitialise:rt,_fnInitComplete:st,_fnLengthChange:ot,_fnFeatureHtmlLength:lt,_fnFeatureHtmlPaginate:ut,_fnPageChange:dt,_fnFeatureHtmlProcessing:ct,_fnProcessingDisplay:ht,_fnFeatureHtmlTable:ft,_fnScrollDraw:pt,_fnApplyToChildren:gt,_fnCalculateColumnWidths:mt,_fnThrottle:me,_fnConvertToWidth:vt,_fnGetWidestNode:yt,_fnGetMaxLenString:bt,_fnStringToCss:_t,_fnSortFlatten:wt,_fnSort:xt,_fnSortAria:St,_fnSortListener:kt,_fnSortAttachListener:Tt,_fnSortingClasses:Dt,_fnSortData:Ct,_fnSaveState:Mt,_fnLoadState:It,_fnSettingsFromNode:At,_fnLog:Ft,_fnMap:Pt,_fnBindAction:Ot,_fnCallbackReg:Nt,_fnCallbackFire:Lt,_fnLengthOverflow:Et,_fnRenderer:Ht,_fnDataSource:jt,_fnRowAttributes:h,_fnCalculateEnd:function(){}}),((P.fn.dataTable=te).$=P).fn.dataTableSettings=te.settings,P.fn.dataTableExt=te.ext,P.fn.DataTable=function(t){return P(this).dataTable(t).api()},P.each(te,function(t,e){P.fn.DataTable[t]=e}),P.fn.dataTable}),function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(b,t,i,a){var r=b.fn.dataTable;return b.extend(!0,r.defaults,{dom:"<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>",renderer:"bootstrap"}),b.extend(r.ext.classes,{sWrapper:"dataTables_wrapper form-inline dt-bootstrap",sFilterInput:"form-control input-sm",sLengthSelect:"form-control input-sm",sProcessing:"dataTables_processing panel panel-default"}),r.ext.renderer.pageButton.bootstrap=function(o,t,l,e,u,d){var c,h,n,f=new r.Api(o),p=o.oClasses,g=o.oLanguage.oPaginate,m=o.oLanguage.oAria.paginate||{},v=0,y=function(t,e){function n(t){t.preventDefault(),b(t.currentTarget).hasClass("disabled")||f.page()==t.data.action||f.page(t.data.action).draw("page")}var i,a,r,s;for(i=0,a=e.length;i<a;i++)if(s=e[i],b.isArray(s))y(t,s);else{switch(h=c="",s){case"ellipsis":c="…",h="disabled";break;case"first":c=g.sFirst,h=s+(0<u?"":" disabled");break;case"previous":c=g.sPrevious,h=s+(0<u?"":" disabled");break;case"next":c=g.sNext,h=s+(u<d-1?"":" disabled");break;case"last":c=g.sLast,h=s+(u<d-1?"":" disabled");break;default:c=s+1,h=u===s?"active":""}c&&(r=b("<li>",{class:p.sPageButton+" "+h,id:0===l&&"string"==typeof s?o.sTableId+"_"+s:null}).append(b("<a>",{href:"#","aria-controls":o.sTableId,"aria-label":m[s],"data-dt-idx":v,tabindex:o.iTabIndex}).html(c)).appendTo(t),o.oApi._fnBindAction(r,{action:s},n),v++)}};try{n=b(t).find(i.activeElement).data("dt-idx")}catch(t){}y(b(t).empty().html('<ul class="pagination"/>').children("ul"),e),n!==a&&b(t).find("[data-dt-idx="+n+"]").focus()},r}),function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),n(e,t,t.document)}:n(jQuery,window,document)}(function(p,o,r,d){var a,g=p.fn.dataTable,n=0,u=0,l=g.ext.buttons,c=function(t,e){!0===e&&(e={}),p.isArray(e)&&(e={buttons:e}),this.c=p.extend(!0,{},c.defaults,e),e.buttons&&(this.c.buttons=e.buttons),this.s={dt:new g.Api(t),buttons:[],listenKeys:"",namespace:"dtb"+n++},this.dom={container:p("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};p.extend(c.prototype,{action:function(t,e){var n=this._nodeToButton(t);return e===d?n.conf.action:(n.conf.action=e,this)},active:function(t,e){var n=this._nodeToButton(t),i=this.c.dom.button.active;n=p(n.node);return e===d?n.hasClass(i):(n.toggleClass(i,e===d||e),this)},add:function(t,e){var n=this.s.buttons;if("string"==typeof e){for(var i=e.split("-"),a=(n=this.s,0),r=i.length-1;a<r;a++)n=n.buttons[1*i[a]];n=n.buttons,e=1*i[i.length-1]}return this._expandButton(n,t,!1,e),this._draw(),this},container:function(){return this.dom.container},disable:function(t){return t=this._nodeToButton(t),p(t.node).addClass(this.c.dom.button.disabled),this},destroy:function(){p("body").off("keyup."+this.s.namespace);var t,e,n=this.s.buttons.slice();for(t=0,e=n.length;t<e;t++)this.remove(n[t].node);for(this.dom.container.remove(),t=0,e=(n=this.s.dt.settings()[0]).length;t<e;t++)if(n.inst===this){n.splice(t,1);break}return this},enable:function(t,e){if(!1===e)return this.disable(t);var n=this._nodeToButton(t);return p(n.node).removeClass(this.c.dom.button.disabled),this},name:function(){return this.c.name},node:function(t){return t=this._nodeToButton(t),p(t.node)},remove:function(t){var e=this._nodeToButton(t),n=this._nodeToHost(t),i=this.s.dt;if(e.buttons.length)for(var a=e.buttons.length-1;0<=a;a--)this.remove(e.buttons[a].node);return e.conf.destroy&&e.conf.destroy.call(i.button(t),i,p(t),e.conf),this._removeKey(e.conf),p(e.node).remove(),t=p.inArray(e,n),n.splice(t,1),this},text:function(t,e){function n(t){return"function"==typeof t?t(r,s,i.conf):t}var i=this._nodeToButton(t),a=this.c.dom.collection.buttonLiner,r=(a=i.inCollection&&a&&a.tag?a.tag:this.c.dom.buttonLiner.tag,this.s.dt),s=p(i.node);return e===d?n(i.conf.text):(i.conf.text=e,a?s.children(a).html(n(e)):s.html(n(e)),this)},_constructor:function(){var n=this,t=this.s.dt,e=t.settings()[0],i=this.c.buttons;e._buttons||(e._buttons=[]),e._buttons.push({inst:this,name:this.c.name});e=0;for(var a=i.length;e<a;e++)this.add(i[e]);t.on("destroy",function(){n.destroy()}),p("body").on("keyup."+this.s.namespace,function(t){if(!r.activeElement||r.activeElement===r.body){var e=String.fromCharCode(t.keyCode).toLowerCase();-1!==n.s.listenKeys.toLowerCase().indexOf(e)&&n._keypress(e,t)}})},_addKey:function(t){t.key&&(this.s.listenKeys+=p.isPlainObject(t.key)?t.key.key:t.key)},_draw:function(t,e){t||(t=this.dom.container,e=this.s.buttons),t.children().detach();for(var n=0,i=e.length;n<i;n++)t.append(e[n].inserter),e[n].buttons&&e[n].buttons.length&&this._draw(e[n].collection,e[n].buttons)},_expandButton:function(t,e,n,i){for(var a=this.s.dt,r=0,s=(e=p.isArray(e)?e:[e]).length;r<s;r++){var o=this._resolveExtends(e[r]);if(o)if(p.isArray(o))this._expandButton(t,o,n,i);else{var l=this._buildButton(o,n);if(l){if(i!==d?(t.splice(i,0,l),i++):t.push(l),l.conf.buttons){var u=this.c.dom.collection;l.collection=p("<"+u.tag+"/>").addClass(u.className),l.conf._collection=l.collection,this._expandButton(l.buttons,l.conf.buttons,!0,i)}o.init&&o.init.call(a.button(l.node),a,p(l.node),o),0}}}},_buildButton:function(e,t){function n(t){return"function"==typeof t?t(s,l,e):t}var i=this.c.dom.button,a=this.c.dom.buttonLiner,r=this.c.dom.collection,s=this.s.dt;if(t&&r.button&&(i=r.button),t&&r.buttonLiner&&(a=r.buttonLiner),e.available&&!e.available(s,e))return!1;function o(t,e,n,i){i.action.call(e.button(n),t,e,n,i),p(e.table().node()).triggerHandler("buttons-action.dt",[e.button(n),e,n,i])}var l=p("<"+i.tag+"/>").addClass(i.className).attr("tabindex",this.s.dt.settings()[0].iTabIndex).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",function(t){t.preventDefault(),!l.hasClass(i.disabled)&&e.action&&o(t,s,l,e),l.blur()}).on("keyup.dtb",function(t){13===t.keyCode&&!l.hasClass(i.disabled)&&e.action&&o(t,s,l,e)});return"a"===i.tag.toLowerCase()&&l.attr("href","#"),a.tag?(r=p("<"+a.tag+"/>").html(n(e.text)).addClass(a.className),"a"===a.tag.toLowerCase()&&r.attr("href","#"),l.append(r)):l.html(n(e.text)),!1===e.enabled&&l.addClass(i.disabled),e.className&&l.addClass(e.className),e.titleAttr&&l.attr("title",e.titleAttr),e.namespace||(e.namespace=".dt-button-"+u++),a=(a=this.c.dom.buttonContainer)&&a.tag?p("<"+a.tag+"/>").addClass(a.className).append(l):l,this._addKey(e),{conf:e,node:l.get(0),inserter:a,buttons:[],inCollection:t,collection:null}},_nodeToButton:function(t,e){for(var n=0,i=(e=e||this.s.buttons).length;n<i;n++){if(e[n].node===t)return e[n];if(e[n].buttons.length){var a=this._nodeToButton(t,e[n].buttons);if(a)return a}}},_nodeToHost:function(t,e){for(var n=0,i=(e=e||this.s.buttons).length;n<i;n++){if(e[n].node===t)return e;if(e[n].buttons.length){var a=this._nodeToHost(t,e[n].buttons);if(a)return a}}},_keypress:function(r,s){var o=function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e].conf,a=t[e].node;i.key&&(i.key===r?p(a).click():!p.isPlainObject(i.key)||i.key.key!==r||i.key.shiftKey&&!s.shiftKey||i.key.altKey&&!s.altKey||i.key.ctrlKey&&!s.ctrlKey||i.key.metaKey&&!s.metaKey||p(a).click()),t[e].buttons.length&&o(t[e].buttons)}};o(this.s.buttons)},_removeKey:function(t){if(t.key){var e=p.isPlainObject(t.key)?t.key.key:t.key;t=this.s.listenKeys.split(""),e=p.inArray(e,t);t.splice(e,1),this.s.listenKeys=t.join("")}},_resolveExtends:function(n){function t(t){for(var e=0;!p.isPlainObject(t)&&!p.isArray(t);){if(t===d)return;if("function"==typeof t){if(!(t=t(a,n)))return!1}else if("string"==typeof t){if(!l[t])throw"Unknown button type: "+t;t=l[t]}if(30<++e)throw"Buttons: Too many iterations"}return p.isArray(t)?t:p.extend({},t)}var e,i,a=this.s.dt;for(n=t(n);n&&n.extend;){if(!l[n.extend])throw"Cannot extend unknown button type: "+n.extend;var r=t(l[n.extend]);if(p.isArray(r))return r;if(!r)return!1;e=r.className,n=p.extend({},r,n),e&&n.className!==e&&(n.className=e+" "+n.className);var s=n.postfixButtons;if(s){for(n.buttons||(n.buttons=[]),e=0,i=s.length;e<i;e++)n.buttons.push(s[e]);n.postfixButtons=null}if(s=n.prefixButtons){for(n.buttons||(n.buttons=[]),e=0,i=s.length;e<i;e++)n.buttons.splice(e,0,s[e]);n.prefixButtons=null}n.extend=r.extend}return n}}),c.background=function(t,e,n){n===d&&(n=400),t?p("<div/>").addClass(e).css("display","none").appendTo("body").fadeIn(n):p("body > div."+e).fadeOut(n,function(){p(this).removeClass(e).remove()})},c.instanceSelector=function(t,i){if(!t)return p.map(i,function(t){return t.inst});var a=[],r=p.map(i,function(t){return t.name}),s=function(t){if(p.isArray(t))for(var e=0,n=t.length;e<n;e++)s(t[e]);else"string"==typeof t?-1!==t.indexOf(",")?s(t.split(",")):-1!==(t=p.inArray(p.trim(t),r))&&a.push(i[t].inst):"number"==typeof t&&a.push(i[t].inst)};return s(t),a},c.buttonSelector=function(t,e){for(var s=[],o=function(t,e,n){for(var i,a,r=0,s=e.length;r<s;r++)(i=e[r])&&(a=n!==d?n+r:r+"",t.push({node:i.node,name:i.conf.name,idx:a}),i.buttons&&o(t,i.buttons,a+"-"))},l=function(t,e){var n,i,a=[];if(o(a,e.s.buttons),n=p.map(a,function(t){return t.node}),p.isArray(t)||t instanceof p)for(n=0,i=t.length;n<i;n++)l(t[n],e);else if(null===t||t===d||"*"===t)for(n=0,i=a.length;n<i;n++)s.push({inst:e,node:a[n].node});else if("number"==typeof t)s.push({inst:e,node:e.s.buttons[t].node});else if("string"==typeof t)if(-1!==t.indexOf(","))for(n=0,i=(a=t.split(",")).length;n<i;n++)l(p.trim(a[n]),e);else if(t.match(/^\d+(\-\d+)*$/))n=p.map(a,function(t){return t.idx}),s.push({inst:e,node:a[p.inArray(t,n)].node});else if(-1!==t.indexOf(":name")){var r=t.replace(":name","");for(n=0,i=a.length;n<i;n++)a[n].name===r&&s.push({inst:e,node:a[n].node})}else p(n).filter(t).each(function(){s.push({inst:e,node:this})});else"object"==typeof t&&t.nodeName&&(-1!==(a=p.inArray(t,n))&&s.push({inst:e,node:n[a]}))},n=0,i=t.length;n<i;n++)l(e,t[n]);return s},c.defaults={buttons:["copy","excel","csv","pdf","print"],name:"main",tabIndex:0,dom:{container:{tag:"div",className:"dt-buttons"},collection:{tag:"div",className:"dt-button-collection"},button:{tag:"a",className:"dt-button",active:"active",disabled:"disabled"},buttonLiner:{tag:"span",className:""}}},c.version="1.2.4",p.extend(l,{collection:{text:function(t){return t.i18n("buttons.collection","Collection")},className:"buttons-collection",action:function(t,n,e,i){t=e.offset();var a=p(n.table().container()),r=!1;p("div.dt-button-background").length&&(r=p(".dt-button-collection").offset(),p("body").trigger("click.dtb-collection")),i._collection.addClass(i.collectionLayout).css("display","none").appendTo("body").fadeIn(i.fade);var s=i._collection.css("position");r&&"absolute"===s?i._collection.css({top:r.top,left:r.left}):"absolute"===s?(i._collection.css({top:t.top+e.outerHeight(),left:t.left}),e=t.left+i._collection.outerWidth(),(a=a.offset().left+a.width())<e&&i._collection.css("left",t.left-(e-a))):((t=i._collection.height()/2)>p(o).height()/2&&(t=p(o).height()/2),i._collection.css("marginTop",-1*t)),i.background&&c.background(!0,i.backgroundClassName,i.fade),setTimeout(function(){p("div.dt-button-background").on("click.dtb-collection",function(){}),p("body").on("click.dtb-collection",function(t){var e=p.fn.addBack?"addBack":"andSelf";p(t.target).parents()[e]().filter(i._collection).length||(i._collection.fadeOut(i.fade,function(){i._collection.detach()}),p("div.dt-button-background").off("click.dtb-collection"),c.background(!1,i.backgroundClassName,i.fade),p("body").off("click.dtb-collection"),n.off("buttons-action.b-internal"))})},10),i.autoClose&&n.on("buttons-action.b-internal",function(){p("div.dt-button-background").click()})},background:!0,collectionLayout:"",backgroundClassName:"dt-button-background",autoClose:!1,fade:400},copy:function(t,e){return l.copyHtml5?"copyHtml5":l.copyFlash&&l.copyFlash.available(t,e)?"copyFlash":void 0},csv:function(t,e){return l.csvHtml5&&l.csvHtml5.available(t,e)?"csvHtml5":l.csvFlash&&l.csvFlash.available(t,e)?"csvFlash":void 0},excel:function(t,e){return l.excelHtml5&&l.excelHtml5.available(t,e)?"excelHtml5":l.excelFlash&&l.excelFlash.available(t,e)?"excelFlash":void 0},pdf:function(t,e){return l.pdfHtml5&&l.pdfHtml5.available(t,e)?"pdfHtml5":l.pdfFlash&&l.pdfFlash.available(t,e)?"pdfFlash":void 0},pageLength:function(t){t=t.settings()[0].aLengthMenu;function a(t){return t.i18n("buttons.pageLength",{"-1":"Show all rows",_:"Show %d rows"},t.page.len())}var e=p.isArray(t[0])?t[0]:t,n=p.isArray(t[0])?t[1]:t;return{extend:"collection",text:a,className:"buttons-page-length",autoClose:!0,buttons:p.map(e,function(a,t){return{text:n[t],className:"button-page-length",action:function(t,e){e.page.len(a).draw()},init:function(t,e,n){var i=this;e=function(){i.active(t.page.len()===a)};t.on("length.dt"+n.namespace,e),e()},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}}),init:function(t,e,n){var i=this;t.on("length.dt"+n.namespace,function(){i.text(a(t))})},destroy:function(t,e,n){t.off("length.dt"+n.namespace)}}}}),g.Api.register("buttons()",function(e,n){n===d&&(n=e,e=d),this.selector.buttonGroup=e;var t=this.iterator(!0,"table",function(t){if(t._buttons)return c.buttonSelector(c.instanceSelector(e,t._buttons),n)},!0);return t._groupSelector=e,t}),g.Api.register("button()",function(t,e){var n=this.buttons(t,e);return 1<n.length&&n.splice(1,n.length),n}),g.Api.registerPlural("buttons().active()","button().active()",function(e){return e===d?this.map(function(t){return t.inst.active(t.node)}):this.each(function(t){t.inst.active(t.node,e)})}),g.Api.registerPlural("buttons().action()","button().action()",function(e){return e===d?this.map(function(t){return t.inst.action(t.node)}):this.each(function(t){t.inst.action(t.node,e)})}),g.Api.register(["buttons().enable()","button().enable()"],function(e){return this.each(function(t){t.inst.enable(t.node,e)})}),g.Api.register(["buttons().disable()","button().disable()"],function(){return this.each(function(t){t.inst.disable(t.node)})}),g.Api.registerPlural("buttons().nodes()","button().node()",function(){var e=p();return p(this.each(function(t){e=e.add(t.inst.node(t.node))})),e}),g.Api.registerPlural("buttons().text()","button().text()",function(e){return e===d?this.map(function(t){return t.inst.text(t.node)}):this.each(function(t){t.inst.text(t.node,e)})}),g.Api.registerPlural("buttons().trigger()","button().trigger()",function(){return this.each(function(t){t.inst.node(t.node).trigger("click")})}),g.Api.registerPlural("buttons().containers()","buttons().container()",function(){var i=p(),a=this._groupSelector;return this.iterator(!0,"table",function(t){if(t._buttons)for(var e=0,n=(t=c.instanceSelector(a,t._buttons)).length;e<n;e++)i=i.add(t[e].container())}),i}),g.Api.register("button().add()",function(t,e){var n=this.context;return n.length&&((n=c.instanceSelector(this._groupSelector,n[0]._buttons)).length&&n[0].add(e,t)),this.button(this._groupSelector,t)}),g.Api.register("buttons().destroy()",function(){return this.pluck("inst").unique().each(function(t){t.destroy()}),this}),g.Api.registerPlural("buttons().remove()","buttons().remove()",function(){return this.each(function(t){t.inst.remove(t.node)}),this}),g.Api.register("buttons.info()",function(t,e,n){var i=this;return!1===t?(p("#datatables_buttons_info").fadeOut(function(){p(this).remove()}),clearTimeout(a),a=null):(a&&clearTimeout(a),p("#datatables_buttons_info").length&&p("#datatables_buttons_info").remove(),p('<div id="datatables_buttons_info" class="dt-button-info"/>').html(t?"<h2>"+t+"</h2>":"").append(p("<div/>")["string"==typeof e?"html":"append"](e)).css("display","none").appendTo("body").fadeIn(),n!==d&&0!==n&&(a=setTimeout(function(){i.buttons.info(!1)},n))),this}),g.Api.register("buttons.exportData()",function(t){if(this.context.length){for(var n=new g.Api(this.context[0]),i=p.extend(!0,{},{rows:null,columns:"",modifier:{search:"applied",order:"applied"},orthogonal:"display",stripHtml:!0,stripNewlines:!0,decodeEntities:!0,trim:!0,format:{header:function(t){return e(t)},footer:function(t){return e(t)},body:function(t){return e(t)}}},t),e=function(t){return"string"!=typeof t||(i.stripHtml&&(t=t.replace(/<[^>]*>/g,"")),i.trim&&(t=t.replace(/^\s+|\s+$/g,"")),i.stripNewlines&&(t=t.replace(/\n/g," ")),i.decodeEntities&&(m.innerHTML=t,t=m.value)),t},a=(t=n.columns(i.columns).indexes().map(function(t){var e=n.column(t).header();return i.format.header(e.innerHTML,t,e)}).toArray(),n.table().footer()?n.columns(i.columns).indexes().map(function(t){var e=n.column(t).footer();return i.format.footer(e?e.innerHTML:"",t,e)}).toArray():null),r=n.rows(i.rows,i.modifier).indexes().toArray(),s=(r=(s=n.cells(r,i.columns)).render(i.orthogonal).toArray(),s.nodes().toArray()),o=t.length,l=0<o?r.length/o:0,u=Array(l),d=0,c=0;c<l;c++){for(var h=Array(o),f=0;f<o;f++)h[f]=i.format.body(r[d],c,f,s[d]),d++;u[c]=h}return{header:t,footer:a,body:u}}});var m=p("<textarea/>")[0];return p.fn.dataTable.Buttons=c,p.fn.DataTable.Buttons=c,p(r).on("init.dt plugin-init.dt",function(t,e){if("dt"===t.namespace){var n=e.oInit.buttons||g.defaults.buttons;n&&!e._buttons&&new c(e,n).container()}}),g.ext.feature.push({fnInit:function(t){var e=(t=new g.Api(t)).init().buttons||g.defaults.buttons;return new c(t,e).container()},cFeature:"B"}),c}),function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net-bs")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),n(e,t.document)}:n(jQuery,window,document)}(function(t){var e=t.fn.dataTable;return t.extend(!0,e.Buttons.defaults,{dom:{container:{className:"dt-buttons btn-group"},button:{className:"btn btn-default"},collection:{tag:"ul",className:"dt-button-collection dropdown-menu",button:{tag:"li",className:"dt-button"},buttonLiner:{tag:"a",className:""}}}}),e.ext.buttons.collection.text=function(t){return t.i18n("buttons.collection",'Collection <span class="caret"/>')},e.Buttons}),function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),n(e,t,t.document)}:n(jQuery,window,document)}(function(t,e,n,a){return e=t.fn.dataTable,t.extend(e.ext.buttons,{colvis:function(t,e){return{extend:"collection",text:function(t){return t.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",buttons:[{extend:"columnsToggle",columns:e.columns}]}},columnsToggle:function(t,e){return t.columns(e.columns).indexes().map(function(t){return{extend:"columnToggle",columns:t}}).toArray()},columnToggle:function(t,e){return{extend:"columnVisibility",columns:e.columns}},columnsVisibility:function(t,e){return t.columns(e.columns).indexes().map(function(t){return{extend:"columnVisibility",columns:t,visibility:e.visibility}}).toArray()},columnVisibility:{columns:a,text:function(t,e,n){return n._columnText(t,n.columns)},className:"buttons-columnVisibility",action:function(t,e,n,i){e=(t=e.columns(i.columns)).visible(),t.visible(i.visibility!==a?i.visibility:!(e.length&&e[0]))},init:function(i,t,a){var r=this;i.on("column-visibility.dt"+a.namespace,function(t,e){e.bDestroying||r.active(i.column(a.columns).visible())}).on("column-reorder.dt"+a.namespace,function(t,e,n){1===i.columns(a.columns).count()&&("number"==typeof a.columns&&(a.columns=n.mapping[a.columns]),t=i.column(a.columns),r.text(a._columnText(i,a.columns)),r.active(t.visible()))}),this.active(i.column(a.columns).visible())},destroy:function(t,e,n){t.off("column-visibility.dt"+n.namespace).off("column-reorder.dt"+n.namespace)},_columnText:function(t,e){var n=t.column(e).index();return t.settings()[0].aoColumns[n].sTitle.replace(/\n/g," ").replace(/<.*?>/g,"").replace(/^\s+|\s+$/g,"")}},colvisRestore:{className:"buttons-colvisRestore",text:function(t){return t.i18n("buttons.colvisRestore","Restore visibility")},init:function(e,t,n){n._visOriginal=e.columns().indexes().map(function(t){return e.column(t).visible()}).toArray()},action:function(t,e,n,i){e.columns().every(function(t){t=e.colReorder&&e.colReorder.transpose?e.colReorder.transpose(t,"toOriginal"):t,this.visible(i._visOriginal[t])})}},colvisGroup:{className:"buttons-colvisGroup",action:function(t,e,n,i){e.columns(i.show).visible(!0,!1),e.columns(i.hide).visible(!1,!1),e.columns.adjust()},show:[],hide:[]}}),e.Buttons}),function(a){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(t){return a(t,window,document)}):"object"==typeof exports?module.exports=function(t,e,n,i){return t=t||window,e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),e.fn.dataTable.Buttons||require("datatables.net-buttons")(t,e),a(e,t,t.document,n,i)}:a(jQuery,window,document)}(function(f,o,l,s,u,p){function g(t,e,n){var i=t.createElement(e);return n&&(n.attr&&f(i).attr(n.attr),n.children&&f.each(n.children,function(t,e){i.appendChild(e)}),n.text&&i.appendChild(t.createTextNode(n.text))),i}function m(t,e){var n,i=t.header[e].length;t.footer&&t.footer[e].length>i&&(i=t.footer[e].length);for(var a=0,r=t.body.length;a<r&&(i<(n=-1!==(n=t.body[a][e].toString()).indexOf("\n")?((n=n.split("\n")).sort(function(t,e){return e.length-t.length}),n[0].length):n.length)&&(i=n),!(40<i));a++);return 6<(i*=1.3)?i:6}var v,t=f.fn.dataTable,d="undefined"!=typeof self&&self||void 0!==o&&o||this.content;if(void 0===d||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))v=void 0;else{function c(t){(d.setImmediate||d.setTimeout)(function(){throw t},0)}function h(t){setTimeout(function(){"string"==typeof t?(d.URL||d.webkitURL||d).revokeObjectURL(t):t.remove()},4e4)}function y(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function i(t,e,n){n||(t=y(t));function i(){for(var t,e=(t=[].concat(t=["writestart","progress","write","writeend"])).length;e--;){var n=r["on"+t[e]];if("function"==typeof n)try{n.call(r,r)}catch(t){c(t)}}}var a,r=this;n="application/octet-stream"===t.type;if(r.readyState=r.INIT,_)a=(d.URL||d.webkitURL||d).createObjectURL(t),setTimeout(function(){b.href=a,b.download=e;var t=new MouseEvent("click");b.dispatchEvent(t),i(),h(a),r.readyState=r.DONE});else if((x||n&&w)&&d.FileReader){var s=new FileReader;s.onloadend=function(){var t=x?s.result:s.result.replace(/^data:[^;]*;/,"data:attachment/file;");d.open(t,"_blank")||(d.location.href=t),r.readyState=r.DONE,i()},s.readAsDataURL(t),r.readyState=r.INIT}else a=a||(d.URL||d.webkitURL||d).createObjectURL(t),n?d.location.href=a:d.open(a,"_blank")||(d.location.href=a),r.readyState=r.DONE,i(),h(a)}var b=d.document.createElementNS("http://www.w3.org/1999/xhtml","a"),_="download"in b,w=/constructor/i.test(d.HTMLElement)||d.safari,x=/CriOS\/[\d]+/.test(navigator.userAgent),e=i.prototype;v="undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=y(t)),navigator.msSaveOrOpenBlob(t,e)}:(e.abort=function(){},e.readyState=e.INIT=0,e.WRITING=1,e.DONE=2,e.error=e.onwritestart=e.onprogress=e.onwrite=e.onabort=e.onerror=e.onwriteend=null,function(t,e,n){return new i(t,e||t.name||"download",n)})}t.fileSave=v;function S(t,e){var n="*"===t.filename&&"*"!==t.title&&t.title!==p?t.title:t.filename;return"function"==typeof n&&(n=n()),-1!==n.indexOf("*")&&(n=f.trim(n.replace("*",f("title").text()))),n=n.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""),e===p||!0===e?n+t.extension:n}function k(t){return t.newline?t.newline:navigator.userAgent.match(/Windows/)?"\r\n":"\n"}function T(t,e){function n(t){for(var e="",n=0,i=t.length;n<i;n++)0<n&&(e+=s),e+=r?r+(""+t[n]).replace(o,l+r)+r:t[n];return e}for(var i=k(e),a=t.buttons.exportData(e.exportOptions),r=e.fieldBoundary,s=e.fieldSeparator,o=RegExp(r,"g"),l=e.escapeChar!==p?e.escapeChar:"\\",u=e.header?n(a.header)+i:"",d=e.footer&&a.footer?i+n(a.footer):"",c=[],h=0,f=a.body.length;h<f;h++)c.push(n(a.body[h]));return{str:u+c.join(i)+d,rows:c.length}}function D(){if(-1===navigator.userAgent.indexOf("Safari")||-1!==navigator.userAgent.indexOf("Chrome")||-1!==navigator.userAgent.indexOf("Opera"))return!1;var t=navigator.userAgent.match(/AppleWebKit\/(\d+\.\d+)/);return!!(t&&1<t.length&&1*t[1]<603.1)}try{var C,M=new XMLSerializer}catch(t){}var I={"_rels/.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',"xl/_rels/workbook.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/></Relationships>',"[Content_Types].xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/xml" /><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="jpeg" ContentType="image/jpeg" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /></Types>',"xl/workbook.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="24816"/><workbookPr showInkAnnotation="0" autoCompressPictures="0"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="25600" windowHeight="19020" tabRatio="500"/></bookViews><sheets><sheet name="" sheetId="1" r:id="rId1"/></sheets></workbook>',"xl/worksheets/sheet1.xml":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><sheetData/></worksheet>',"xl/styles.xml":'<?xml version="1.0" encoding="UTF-8"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><numFmts count="6"><numFmt numFmtId="164" formatCode="#,##0.00_- [$$-45C]"/><numFmt numFmtId="165" formatCode=""£"#,##0.00"/><numFmt numFmtId="166" formatCode="[$€-2] #,##0.00"/><numFmt numFmtId="167" formatCode="0.0%"/><numFmt numFmtId="168" formatCode="#,##0;(#,##0)"/><numFmt numFmtId="169" formatCode="#,##0.00;(#,##0.00)"/></numFmts><fonts count="5" x14ac:knownFonts="1"><font><sz val="11" /><name val="Calibri" /></font><font><sz val="11" /><name val="Calibri" /><color rgb="FFFFFFFF" /></font><font><sz val="11" /><name val="Calibri" /><b /></font><font><sz val="11" /><name val="Calibri" /><i /></font><font><sz val="11" /><name val="Calibri" /><u /></font></fonts><fills count="6"><fill><patternFill patternType="none" /></fill><fill/><fill><patternFill patternType="solid"><fgColor rgb="FFD9D9D9" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="FFD99795" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6efce" /><bgColor indexed="64" /></patternFill></fill><fill><patternFill patternType="solid"><fgColor rgb="ffc6cfef" /><bgColor indexed="64" /></patternFill></fill></fills><borders count="2"><border><left /><right /><top /><bottom /><diagonal /></border><border diagonalUp="false" diagonalDown="false"><left style="thin"><color auto="1" /></left><right style="thin"><color auto="1" /></right><top style="thin"><color auto="1" /></top><bottom style="thin"><color auto="1" /></bottom><diagonal /></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" /></cellStyleXfs><cellXfs count="67"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="0" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="0" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="2" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="3" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="4" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="1" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="2" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="3" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="4" fillId="5" borderId="1" applyFont="1" applyFill="1" applyBorder="1"/><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="left"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="center"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="right"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment horizontal="fill"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment textRotation="90"/></xf><xf numFmtId="0" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyAlignment="1"><alignment wrapText="1"/></xf><xf numFmtId="9" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="164" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="165" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="166" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="167" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="168" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="169" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="3" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="4" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="1" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/><xf numFmtId="2" fontId="0" fillId="0" borderId="0" applyFont="1" applyFill="1" applyBorder="1" xfId="0" applyNumberFormat="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0" /></cellStyles><dxfs count="0" /><tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4" /></styleSheet>'},A=[{match:/^\-?\d+\.\d%$/,style:60,fmt:function(t){return t/100}},{match:/^\-?\d+\.?\d*%$/,style:56,fmt:function(t){return t/100}},{match:/^\-?\$[\d,]+.?\d*$/,style:57},{match:/^\-?£[\d,]+.?\d*$/,style:58},{match:/^\-?€[\d,]+.?\d*$/,style:59},{match:/^\-?\d+$/,style:65},{match:/^\-?\d+\.\d{2}$/,style:66},{match:/^\([\d,]+\)$/,style:61,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\([\d,]+\.\d{2}\)$/,style:62,fmt:function(t){return-1*t.replace(/[\(\)]/g,"")}},{match:/^\-?[\d,]+$/,style:63},{match:/^\-?[\d,]+\.\d{2}$/,style:64}];return t.ext.buttons.copyHtml5={className:"buttons-copy buttons-html5",text:function(t){return t.i18n("buttons.copy","Copy")},action:function(t,e,n,i){var a=(t=T(e,i)).str;n=f("<div/>").css({height:1,width:1,overflow:"hidden",position:"fixed",top:0,left:0});if(i.customize&&(a=i.customize(a,i)),i=f("<textarea readonly/>").val(a).appendTo(n),l.queryCommandSupported("copy")){n.appendTo(e.table().container()),i[0].focus(),i[0].select();try{var r=l.execCommand("copy");if(n.remove(),r)return void e.buttons.info(e.i18n("buttons.copyTitle","Copy to clipboard"),e.i18n("buttons.copySuccess",{1:"Copied one row to clipboard",_:"Copied %d rows to clipboard"},t.rows),2e3)}catch(t){}}r=f("<span>"+e.i18n("buttons.copyKeys","Press <i>ctrl</i> or <i>⌘</i> + <i>C</i> to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.")+"</span>").append(n),e.buttons.info(e.i18n("buttons.copyTitle","Copy to clipboard"),r,0),i[0].focus(),i[0].select();function s(){o.off("click.buttons-copy"),f(l).off(".buttons-copy"),e.buttons.info(!1)}var o=f(r).closest(".dt-button-info");o.on("click.buttons-copy",s),f(l).on("keydown.buttons-copy",function(t){27===t.keyCode&&s()}).on("copy.buttons-copy cut.buttons-copy",function(){s()})},exportOptions:{},fieldSeparator:"\t",fieldBoundary:"",header:!0,footer:!1},t.ext.buttons.csvHtml5={bom:!1,className:"buttons-csv buttons-html5",available:function(){return o.FileReader!==p&&o.Blob},text:function(t){return t.i18n("buttons.csv","CSV")},action:function(t,e,n,i){t=T(e,i).str,e=i.charset,i.customize&&(t=i.customize(t,i)),e=!1!==e?(e=e||(l.characterSet||l.charset))&&";charset="+e:"",i.bom&&(t="\ufeff"+t),v(new Blob([t],{type:"text/csv"+e}),S(i),!0)},filename:"*",extension:".csv",exportOptions:{},fieldSeparator:",",fieldBoundary:'"',escapeChar:'"',charset:null,header:!0,footer:!1},t.ext.buttons.excelHtml5={className:"buttons-excel buttons-html5",available:function(){return o.FileReader!==p&&(s||o.JSZip)!==p&&!D()&&M},text:function(t){return t.i18n("buttons.excel","Excel")},action:function(t,e,n,i){var l,u,d=0,c=(t=function(t){return f.parseXML(I[t])})("xl/worksheets/sheet1.xml"),h=c.getElementsByTagName("sheetData")[0];t={_rels:{".rels":t("_rels/.rels")},xl:{_rels:{"workbook.xml.rels":t("xl/_rels/workbook.xml.rels")},"workbook.xml":t("xl/workbook.xml"),"styles.xml":t("xl/styles.xml"),worksheets:{"sheet1.xml":c}},"[Content_Types].xml":t("[Content_Types].xml")},e=e.buttons.exportData(i.exportOptions),n=function(t){u=g(c,"row",{attr:{r:l=d+1}});for(var e=0,n=t.length;e<n;e++){for(var i=e,a="";0<=i;)a=String.fromCharCode(i%26+65)+a,i=Math.floor(i/26)-1;i=a+""+l;var r=null;if(null!==t[e]&&t[e]!==p&&""!==t[e]){t[e]=f.trim(t[e]);for(var s=0,o=A.length;s<o;s++)if(a=A[s],t[e].match&&t[e].match(a.match)){r=t[e].replace(/[^\d\.\-]/g,""),a.fmt&&(r=a.fmt(r)),r=g(c,"c",{attr:{r:i,s:a.style},children:[g(c,"v",{text:r})]});break}r=r||("number"==typeof t[e]||t[e].match&&t[e].match(/^-?\d+(\.\d+)?$/)&&!t[e].match(/^0\d+/)?g(c,"c",{attr:{t:"n",r:i},children:[g(c,"v",{text:t[e]})]}):(a=t[e].replace?t[e].replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,""):t[e],g(c,"c",{attr:{t:"inlineStr",r:i},children:{row:g(c,"is",{children:{row:g(c,"t",{text:a})}})}}))),u.appendChild(r)}}h.appendChild(u),d++};f("sheets sheet",t.xl["workbook.xml"]).attr("name",function(t){var e="Sheet1";return t.sheetName&&(e=t.sheetName.replace(/[\[\]\*\/\\\?\:]/g,"")),e}(i)),i.customizeData&&i.customizeData(e),i.header&&(n(e.header,d),f("row c",c).attr("s","2"));for(var a=0,r=e.body.length;a<r;a++)n(e.body[a],d);for(i.footer&&e.footer&&(n(e.footer,d),f("row:last c",c).attr("s","2")),n=g(c,"cols"),f("worksheet",c).prepend(n),a=0,r=e.header.length;a<r;a++)n.appendChild(g(c,"col",{attr:{min:a+1,max:a+1,width:m(e,a),customWidth:1}}));i.customize&&i.customize(t),n={type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},function o(l,t){C===p&&(C=-1===M.serializeToString(f.parseXML(I["xl/worksheets/sheet1.xml"])).indexOf("xmlns:r")),f.each(t,function(t,e){if(f.isPlainObject(e))o(n=l.folder(t),e);else{if(C){var n,i,a,r=[];for(i=(n=e.childNodes[0]).attributes.length-1;0<=i;i--){a=n.attributes[i].nodeName;var s=n.attributes[i].nodeValue;-1!==a.indexOf(":")&&(r.push({name:a,value:s}),n.removeAttribute(a))}for(i=0,a=r.length;i<a;i++)(s=e.createAttribute(r[i].name.replace(":","_dt_b_namespace_token_"))).value=r[i].value,n.setAttributeNode(s)}n=M.serializeToString(e),C&&(-1===n.indexOf("<?xml")&&(n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+n),n=n.replace(/_dt_b_namespace_token_/g,":")),n=n.replace(/<(.*?) xmlns=""(.*?)>/g,"<$1 $2>"),l.file(t,n)}})}(e=new(s||o.JSZip),t),e.generateAsync?e.generateAsync(n).then(function(t){v(t,S(i))}):v(e.generate(n),S(i))},filename:"*",extension:".xlsx",exportOptions:{},header:!0,footer:!1},t.ext.buttons.pdfHtml5={className:"buttons-pdf buttons-html5",available:function(){return o.FileReader!==p&&(u||o.pdfMake)},text:function(t){return t.i18n("buttons.pdf","PDF")},action:function(t,e,n,i){k(i);t=e.buttons.exportData(i.exportOptions);var a=[];i.header&&a.push(f.map(t.header,function(t){return{text:"string"==typeof t?t:t+"",style:"tableHeader"}}));for(var r=0,s=t.body.length;r<s;r++)a.push(f.map(t.body[r],function(t){return{text:"string"==typeof t?t:t+"",style:r%2?"tableBodyEven":"tableBodyOdd"}}));i.footer&&t.footer&&a.push(f.map(t.footer,function(t){return{text:"string"==typeof t?t:t+"",style:"tableFooter"}})),t={pageSize:i.pageSize,pageOrientation:i.orientation,content:[{table:{headerRows:1,body:a},layout:"noBorders"}],styles:{tableHeader:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154",alignment:"center"},tableBodyEven:{},tableBodyOdd:{fillColor:"#f3f3f3"},tableFooter:{bold:!0,fontSize:11,color:"white",fillColor:"#2d4154"},title:{alignment:"center",fontSize:15},message:{}},defaultStyle:{fontSize:10}},i.message&&t.content.unshift({text:"function"==typeof i.message?i.message(e,n,i):i.message,style:"message",margin:[0,0,0,12]}),i.title&&t.content.unshift({text:function(t){return"function"==typeof(t=t.title)&&(t=t()),-1!==t.indexOf("*")?t.replace("*",f("title").text()||"Exported data"):t}(i),style:"title",margin:[0,0,0,12]}),i.customize&&i.customize(t,i),e=(u||o.pdfMake).createPdf(t),"open"!==i.download||D()?e.getBuffer(function(t){t=new Blob([t],{type:"application/pdf"}),v(t,S(i))}):e.open()},title:"*",filename:"*",extension:".pdf",exportOptions:{},orientation:"portrait",pageSize:"A4",header:!0,footer:!1,message:null,customize:null,download:"download"},t.Buttons}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Chart=e()}(this,function(){"use strict";var a={rgb2hsl:s,rgb2hsv:e,rgb2hwb:n,rgb2cmyk:i,rgb2keyword:o,rgb2xyz:l,rgb2lab:u,rgb2lch:function(t){return y(u(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,i=t[2]/100;return 0===i?[0,0,0]:[e,2*(n*=(i*=2)<=1?i:2-i)/(i+n)*100,(i+n)/2*100]},hsl2hwb:function(t){return n(d(t))},hsl2cmyk:function(t){return i(d(t))},hsl2keyword:function(t){return o(d(t))},hsv2rgb:c,hsv2hsl:function(t){var e,n,i=t[0],a=t[1]/100,r=t[2]/100;return e=a*r,[i,100*(e=(e/=(n=(2-a)*r)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return n(c(t))},hsv2cmyk:function(t){return i(c(t))},hsv2keyword:function(t){return o(c(t))},hwb2rgb:h,hwb2hsl:function(t){return s(h(t))},hwb2hsv:function(t){return e(h(t))},hwb2cmyk:function(t){return i(h(t))},hwb2keyword:function(t){return o(h(t))},cmyk2rgb:f,cmyk2hsl:function(t){return s(f(t))},cmyk2hsv:function(t){return e(f(t))},cmyk2hwb:function(t){return n(f(t))},cmyk2keyword:function(t){return o(f(t))},keyword2rgb:x,keyword2hsl:function(t){return s(x(t))},keyword2hsv:function(t){return e(x(t))},keyword2hwb:function(t){return n(x(t))},keyword2cmyk:function(t){return i(x(t))},keyword2lab:function(t){return u(x(t))},keyword2xyz:function(t){return l(x(t))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:v,lab2rgb:_,lab2lch:y,lch2lab:w,lch2xyz:function(t){return v(w(t))},lch2rgb:function(t){return _(w(t))}};function s(t){var e,n,i=t[0]/255,a=t[1]/255,r=t[2]/255,s=Math.min(i,a,r),o=Math.max(i,a,r),l=o-s;return o==s?e=0:i==o?e=(a-r)/l:a==o?e=2+(r-i)/l:r==o&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(s+o)/2,[e,100*(o==s?0:n<=.5?l/(o+s):l/(2-o-s)),100*n]}function e(t){var e,n,i=t[0],a=t[1],r=t[2],s=Math.min(i,a,r),o=Math.max(i,a,r),l=o-s;return n=0==o?0:l/o*1e3/10,o==s?e=0:i==o?e=(a-r)/l:a==o?e=2+(r-i)/l:r==o&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,o/255*1e3/10]}function n(t){var e=t[0],n=t[1],i=t[2];return[s(t)[0],1/255*Math.min(e,Math.min(n,i))*100,100*(i=1-1/255*Math.max(e,Math.max(n,i)))]}function i(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-a)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]}function o(t){return k[JSON.stringify(t)]}function l(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=.04045<i?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function u(t){var e=l(t),n=e[0],i=e[1],a=e[2];return i/=100,a/=108.883,n=.008856<(n/=95.047)?Math.pow(n,1/3):7.787*n+16/116,[116*(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(a=.008856<a?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,i,a,r,s=t[0]/360,o=t[1]/100,l=t[2]/100;if(0==o)return[r=255*l,r,r];e=2*l-(n=l<.5?l*(1+o):l+o-l*o),a=[0,0,0];for(var u=0;u<3;u++)(i=s+1/3*-(u-1))<0&&i++,1<i&&i--,r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*r;return a}function c(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*i*(1-n),o=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,a){case 0:return[i,l,s];case 1:return[o,i,s];case 2:return[s,i,l];case 3:return[s,o,i];case 4:return[l,s,i];case 5:return[i,s,o]}}function h(t){var e,n,i,a,s=t[0]/360,o=t[1]/100,l=t[2]/100,u=o+l;switch(1<u&&(o/=u,l/=u),i=6*s-(e=Math.floor(6*s)),0!=(1&e)&&(i=1-i),a=o+i*((n=1-l)-o),e){default:case 6:case 0:r=n,g=a,b=o;break;case 1:r=a,g=n,b=o;break;case 2:r=o,g=n,b=a;break;case 3:r=o,g=a,b=n;break;case 4:r=a,g=o,b=n;break;case 5:r=n,g=o,b=a}return[255*r,255*g,255*b]}function f(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a))]}function p(t){var e,n,i,a=t[0]/100,r=t[1]/100,s=t[2]/100;return n=-.9689*a+1.8758*r+.0415*s,i=.0557*a+-.204*r+1.057*s,e=.0031308<(e=3.2406*a+-1.5372*r+-.4986*s)?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=.0031308<n?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]}function m(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116))]}function v(t){var e,n,i,a,r=t[0],s=t[1],o=t[2];return a=r<=8?(n=100*r/903.3)/100*7.787+16/116:(n=100*Math.pow((r+16)/116,3),Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(s/500+a-16/116)/7.787:95.047*Math.pow(s/500+a,3),n,i=i/108.883<=.008859?i=108.883*(a-o/200-16/116)/7.787:108.883*Math.pow(a-o/200,3)]}function y(t){var e,n=t[0],i=t[1],a=t[2];return(e=360*Math.atan2(a,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+a*a),e]}function _(t){return p(v(t))}function w(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]}function x(t){return S[t]}var S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},k={};for(var t in S)k[JSON.stringify(S[t])]=t;function T(){return new A}for(var D in a){T[D+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),a[e](t)}}(D);var C=/(\w+)2(\w+)/.exec(D),M=C[1],I=C[2];(T[M]=T[M]||{})[I]=T[D]=function(i){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=a[i](t);if("string"==typeof e||void 0===e)return e;for(var n=0;n<e.length;n++)e[n]=Math.round(e[n]);return e}}(D)}var A=function(){this.convs={}};A.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},A.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},A.prototype.getValues=function(t){var e=this.convs[t];if(!e){var n=this.space,i=this.convs[n];e=T[n][t](i),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){A.prototype[e]=function(t){return this.routeSpace(e,arguments)}});var F=T,P={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},R={getRgba:O,getHsla:N,getRgb:function(t){var e=O(t);return e&&e.slice(0,3)},getHsl:function(t){var e=N(t);return e&&e.slice(0,3)},getHwb:L,getAlpha:function(t){var e=O(t);return e?e[3]:(e=N(t))?e[3]:(e=L(t))?e[3]:void 0},hexString:function(t,e){e=void 0!==e&&3===t.length?e:t[3];return"#"+B(t[0])+B(t[1])+B(t[2])+(0<=e&&e<1?B(Math.round(255*e)):"")},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?E(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:E,percentString:function(t,e){return e<1||t[3]&&t[3]<1?H(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:H,hslString:function(t,e){return e<1||t[3]&&t[3]<1?j(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:j,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return Y[t.slice(0,3)]}};function O(t){if(t){var e=[0,0,0],n=1,i=t.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(i){a=(i=i[1])[3];for(var r=0;r<e.length;r++)e[r]=parseInt(i[r]+i[r],16);a&&(n=Math.round(parseInt(a+a,16)/255*100)/100)}else if(i=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(a=i[2],i=i[1],r=0;r<e.length;r++)e[r]=parseInt(i.slice(2*r,2*r+2),16);a&&(n=Math.round(parseInt(a,16)/255*100)/100)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<e.length;r++)e[r]=parseInt(i[r+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<e.length;r++)e[r]=Math.round(2.55*parseFloat(i[r+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=P[i[1]]))return}for(r=0;r<e.length;r++)e[r]=W(e[r],0,255);return n=n||0==n?W(n,0,1):1,e[3]=n,e}}function N(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[W(parseInt(e[1]),0,360),W(parseFloat(e[2]),0,100),W(parseFloat(e[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function L(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[W(parseInt(e[1]),0,360),W(parseFloat(e[2]),0,100),W(parseFloat(e[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function E(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function H(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function j(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function W(t,e,n){return Math.min(Math.max(e,t),n)}function B(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var Y={};for(var q in P)Y[P[q]]=q;var V=function(t){return t instanceof V?t:this instanceof V?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=R.getRgba(t))?this.setValues("rgb",e):(e=R.getHsla(t))?this.setValues("hsl",e):(e=R.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new V(t);var e};V.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t=t&&((t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return R.hexString(this.values.rgb)},rgbString:function(){return R.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return R.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return R.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return R.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return R.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return R.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return R.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((.055+i)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return n<e?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return 7.1<=e?"AAA":4.5<=e?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,i=void 0===e?.5:e,a=2*i-1,r=this.alpha()-n.alpha(),s=(1+(a*r==-1?a:(a+r)/(1+a*r)))/2,o=1-s;return this.rgb(s*this.red()+o*n.red(),s*this.green()+o*n.green(),s*this.blue()+o*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new V,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},V.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},V.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},V.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},V.prototype.setValues=function(t,e){var n,i,a=this.values,r=this.spaces,s=this.maxes,o=1;if(this.valid=!0,"alpha"===t)o=e;else if(e.length)a[t]=e.slice(0,t.length),o=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)a[t][n]=e[t.charAt(n)];o=e.a}else if(void 0!==e[r[t][0]]){var l=r[t];for(n=0;n<t.length;n++)a[t][n]=e[l[n]];o=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===o?a.alpha:o)),"alpha"===t)return!1;for(n=0;n<t.length;n++)i=Math.max(0,Math.min(s[t][n],a[t][n])),a[t][n]=Math.round(i);for(var u in r)u!==t&&(a[u]=F[t][u](a[t]));return!0},V.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},V.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:(n===i[e]||(i[e]=n,this.setValues(t,i)),this)},"undefined"!=typeof window&&(window.Color=V);var $,z=V,U={noop:function(){},uid:($=0,function(){return $++}),isNullOrUndef:function(t){return null==t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return U.valueOrDefault(U.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,s;if(U.isArray(t))if(r=t.length,i)for(a=r-1;0<=a;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if(U.isObject(t))for(r=(s=Object.keys(t)).length,a=0;a<r;a++)e.call(n,t[s[a]],s[a])},arrayEquals:function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!U.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(U.isArray(t))return t.map(U.clone);if(U.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=U.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],r=n[t];U.isObject(a)&&U.isObject(r)?U.merge(a,r,i):e[t]=U.clone(r)},_mergerIf:function(t,e,n){var i=e[t],a=n[t];U.isObject(i)&&U.isObject(a)?U.mergeIf(i,a):e.hasOwnProperty(t)||(e[t]=U.clone(a))},merge:function(t,e,n){var i,a,r,s,o,l=U.isArray(e)?e:[e],u=l.length;if(!U.isObject(t))return t;for(i=(n=n||{}).merger||U._merger,a=0;a<u;++a)if(e=l[a],U.isObject(e))for(o=0,s=(r=Object.keys(e)).length;o<s;++o)i(r[o],t,e,n);return t},mergeIf:function(t,e){return U.merge(t,e,{merger:U._mergerIf})},extend:function(n){for(var t=function(t,e){n[e]=t},e=1,i=arguments.length;e<i;++e)U.each(arguments[e],t);return n},inherits:function(t){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=U.inherits,t&&U.extend(i.prototype,t),i.__super__=n.prototype,i}},G=U;U.callCallback=U.callback,U.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},U.getValueOrDefault=U.valueOrDefault,U.getValueAtIndexOrDefault=U.valueAtIndexOrDefault;var Z={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n=n||.3,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.45,e=i<1?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-Z.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*Z.easeInBounce(2*t):.5*Z.easeOutBounce(2*t-1)+.5}},X={effects:Z};G.easingEffects=Z;var J=Math.PI,Q=J/180,K=2*J,tt=J/2,et=J/4,nt=2*J/3,it={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){if(r){var s=Math.min(r,a/2,i/2),o=e+s,l=n+s,u=e+i-s,d=n+a-s;t.moveTo(e,l),o<u&&l<d?(t.arc(o,l,s,-J,-tt),t.arc(u,l,s,-tt,0),t.arc(u,d,s,0,tt),t.arc(o,d,s,tt,J)):o<u?(t.moveTo(o,n),t.arc(u,l,s,-tt,tt),t.arc(o,l,s,tt,J+tt)):l<d?(t.arc(o,l,s,-J,0),t.arc(o,d,s,0,J)):t.arc(o,l,s,-J,J),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a,r){var s,o,l,u,d,c=(r||0)*Q;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(s=e.toString())&&"[object HTMLCanvasElement]"!==s){if(!(isNaN(n)||n<=0)){switch(t.beginPath(),e){default:t.arc(i,a,n,0,K),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(c)*n,a-Math.cos(c)*n),c+=nt,t.lineTo(i+Math.sin(c)*n,a-Math.cos(c)*n),c+=nt,t.lineTo(i+Math.sin(c)*n,a-Math.cos(c)*n),t.closePath();break;case"rectRounded":u=n-(d=.516*n),o=Math.cos(c+et)*u,l=Math.sin(c+et)*u,t.arc(i-o,a-l,d,c-J,c-tt),t.arc(i+l,a-o,d,c-tt,c),t.arc(i+o,a+l,d,c,c+tt),t.arc(i-l,a+o,d,c+tt,c+J),t.closePath();break;case"rect":if(!r){u=Math.SQRT1_2*n,t.rect(i-u,a-u,2*u,2*u);break}c+=et;case"rectRot":o=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-o,a-l),t.lineTo(i+l,a-o),t.lineTo(i+o,a+l),t.lineTo(i-l,a+o),t.closePath();break;case"crossRot":c+=et;case"cross":o=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-o,a-l),t.lineTo(i+o,a+l),t.moveTo(i+l,a-o),t.lineTo(i-l,a+o);break;case"star":o=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-o,a-l),t.lineTo(i+o,a+l),t.moveTo(i+l,a-o),t.lineTo(i-l,a+o),c+=et,o=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-o,a-l),t.lineTo(i+o,a+l),t.moveTo(i+l,a-o),t.lineTo(i-l,a+o);break;case"line":o=Math.cos(c)*n,l=Math.sin(c)*n,t.moveTo(i-o,a-l),t.lineTo(i+o,a+l);break;case"dash":t.moveTo(i,a),t.lineTo(i+Math.cos(c)*n,a+Math.sin(c)*n)}t.fill(),t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},_isPointInArea:function(t,e){return t.x>e.left-1e-6&&t.x<e.right+1e-6&&t.y>e.top-1e-6&&t.y<e.bottom+1e-6},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){var a=n.steppedLine;if(a){if("middle"===a){var r=(e.x+n.x)/2;t.lineTo(r,i?n.y:e.y),t.lineTo(r,i?e.y:n.y)}else"after"===a&&!i||"after"!==a&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}else n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},at=it;G.clear=it.clear,G.drawRoundedRectangle=function(t){t.beginPath(),it.roundedRect.apply(it,arguments)};var rt={_set:function(t,e){return G.merge(this[t]||(this[t]={}),e)}};rt._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var st=rt,ot=G.valueOrDefault,lt={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return G.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},_parseFont:function(t){var e,n=st.global,i=ot(t.fontSize,n.defaultFontSize),a={family:ot(t.fontFamily,n.defaultFontFamily),lineHeight:G.options.toLineHeight(ot(t.lineHeight,n.defaultLineHeight),i),size:i,style:ot(t.fontStyle,n.defaultFontStyle),weight:null,string:""};return a.string=!(e=a)||G.isNullOrUndef(e.size)||G.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family,a},resolve:function(t,e,n){var i,a,r;for(i=0,a=t.length;i<a;++i)if(void 0!==(r=t[i])&&(void 0!==e&&"function"==typeof r&&(r=r(e)),void 0!==n&&G.isArray(r)&&(r=r[n]),void 0!==r))return r}},ut=G,dt=X,ct=at,ht=lt;ut.easing=dt,ut.canvas=ct,ut.options=ht;function ft(t){ut.extend(this,t),this.initialize.apply(this,arguments)}ut.extend(ft.prototype,{initialize:function(){this.hidden=!1},pivot:function(){return this._view||(this._view=ut.clone(this._model)),this._start={},this},transition:function(t){var e=this._model,n=this._start,i=this._view;return e&&1!==t?(i=i||(this._view={}),function(t,e,n,i){var a,r,s,o,l,u,d,c,h,f=Object.keys(n);for(a=0,r=f.length;a<r;++a)if(u=n[s=f[a]],e.hasOwnProperty(s)||(e[s]=u),(o=e[s])!==u&&"_"!==s[0]){if(t.hasOwnProperty(s)||(t[s]=o),(d=typeof u)==typeof(l=t[s]))if("string"==d){if((c=z(l)).valid&&(h=z(u)).valid){e[s]=h.mix(c,i).rgbString();continue}}else if(ut.isFinite(l)&&ut.isFinite(u)){e[s]=l+(u-l)*i;continue}e[s]=u}}(n=n||(this._start={}),i,e,t)):(this._view=e,this._start=null),this},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ut.isNumber(this._model.x)&&ut.isNumber(this._model.y)}}),ft.extend=ut.inherits;var pt=ft,gt=pt.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),mt=gt;Object.defineProperty(gt.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(gt.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),st._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ut.noop,onComplete:ut.noop}});var vt={animations:[],request:null,addAnimation:function(t,e,n,i){var a,r,s=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=n,i||(t.animating=!0),a=0,r=s.length;a<r;++a)if(s[a].chart===t)return void(s[a]=e);s.push(e),1===s.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=ut.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=ut.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){this.advance(),0<this.animations.length&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,i,a=this.animations,r=0;r<a.length;)e=(t=a[r]).chart,n=t.numSteps,i=Math.floor((Date.now()-t.startTime)/t.duration*n)+1,t.currentStep=Math.min(i,n),ut.callback(t.render,[e,t],e),ut.callback(t.onAnimationProgress,[t],e),t.currentStep>=n?(ut.callback(t.onAnimationComplete,[t],e),e.animating=!1,a.splice(r,1)):++r}},yt=ut.options.resolve,bt=["push","pop","shift","splice","unshift"];function _t(e,t){var n=e._chartjs;if(n){var i=n.listeners,a=i.indexOf(t);-1!==a&&i.splice(a,1),0<i.length||(bt.forEach(function(t){delete e[t]}),delete e._chartjs)}}function wt(t,e){this.initialize(t,e)}ut.extend(wt.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.getDataset();null!==t.xAxisID&&t.xAxisID in this.chart.scales||(t.xAxisID=e.xAxisID||this.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in this.chart.scales||(t.yAxisID=e.yAxisID||this.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this.update(!0)},destroy:function(){this._data&&_t(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],a=n.data;for(t=0,e=i.length;t<e;++t)a[t]=a[t]||this.createMetaData(t);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var a,t=this.getDataset(),e=t.data||(t.data=[]);this._data!==e&&(this._data&&_t(this._data,this),e&&Object.isExtensible(e)&&((a=e)._chartjs?a._chartjs.listeners.push(this):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),bt.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=i.apply(this,e);return ut.each(a._chartjs.listeners,function(t){"function"==typeof t[n]&&t[n].apply(t,e)}),t}})}))),this._data=e),this.resyncElements()},update:ut.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},removeHoverStyle:function(t){ut.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=t._model,r=ut.getHoverColor;t.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=yt([i.hoverBackgroundColor,e.hoverBackgroundColor,r(a.backgroundColor)],void 0,n),a.borderColor=yt([i.hoverBorderColor,e.hoverBorderColor,r(a.borderColor)],void 0,n),a.borderWidth=yt([i.hoverBorderWidth,e.hoverBorderWidth,a.borderWidth],void 0,n)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,i=e.length;i<n?t.data.splice(i,n-i):n<i&&this.insertElements(n,i-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),wt.extend=ut.inherits;var xt=wt;st._set("global",{elements:{arc:{backgroundColor:st.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var St=pt.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var i=ut.getAngleFromPoint(n,{x:t,y:e}),a=i.angle,r=i.distance,s=n.startAngle,o=n.endAngle;o<s;)o+=2*Math.PI;for(;o<a;)a-=2*Math.PI;for(;a<s;)a+=2*Math.PI;var l=s<=a&&a<=o,u=r>=n.innerRadius&&r<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,i=n.startAngle,a=n.endAngle,r="inner"===n.borderAlign?.33:0;e.save(),e.beginPath(),e.arc(n.x,n.y,Math.max(n.outerRadius-r,0),i,a),e.arc(n.x,n.y,n.innerRadius,a,i,!0),e.closePath(),e.fillStyle=n.backgroundColor,e.fill(),n.borderWidth&&("inner"===n.borderAlign?(e.beginPath(),t=r/n.outerRadius,e.arc(n.x,n.y,n.outerRadius,i-t,a+t),n.innerRadius>r?(t=r/n.innerRadius,e.arc(n.x,n.y,n.innerRadius-r,a+t,i-t,!0)):e.arc(n.x,n.y,r,a+Math.PI/2,i-Math.PI/2),e.closePath(),e.clip(),e.beginPath(),e.arc(n.x,n.y,n.outerRadius,i,a),e.arc(n.x,n.y,n.innerRadius,a,i,!0),e.closePath(),e.lineWidth=2*n.borderWidth,e.lineJoin="round"):(e.lineWidth=n.borderWidth,e.lineJoin="bevel"),e.strokeStyle=n.borderColor,e.stroke()),e.restore()}}),kt=ut.valueOrDefault,Tt=st.global.defaultColor;st._set("global",{elements:{line:{tension:.4,backgroundColor:Tt,borderWidth:3,borderColor:Tt,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Dt=pt.extend({draw:function(){var t,e,n,i,a=this._view,r=this._chart.ctx,s=a.spanGaps,o=this._children.slice(),l=st.global,u=l.elements.line,d=-1;for(this._loop&&o.length&&o.push(o[0]),r.save(),r.lineCap=a.borderCapStyle||u.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||u.borderDash),r.lineDashOffset=kt(a.borderDashOffset,u.borderDashOffset),r.lineJoin=a.borderJoinStyle||u.borderJoinStyle,r.lineWidth=kt(a.borderWidth,u.borderWidth),r.strokeStyle=a.borderColor||l.defaultColor,r.beginPath(),d=-1,t=0;t<o.length;++t)e=o[t],n=ut.previousItem(o,t),i=e._view,0===t?i.skip||(r.moveTo(i.x,i.y),d=t):(n=-1===d?n:o[d],i.skip||(d!==t-1&&!s||-1===d?r.moveTo(i.x,i.y):ut.canvas.lineTo(r,n._view,e._view),d=t));r.stroke(),r.restore()}}),Ct=ut.valueOrDefault,Mt=st.global.defaultColor;function It(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}st._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Mt,borderColor:Mt,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var At=pt.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:It,inXRange:It,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._chart.ctx,i=e.pointStyle,a=e.rotation,r=e.radius,s=e.x,o=e.y,l=st.global,u=l.defaultColor;e.skip||void 0!==t&&!ut.canvas._isPointInArea(e,t)||(n.strokeStyle=e.borderColor||u,n.lineWidth=Ct(e.borderWidth,l.elements.point.borderWidth),n.fillStyle=e.backgroundColor||u,ut.canvas.drawPoint(n,i,r,s,o,a))}}),Ft=st.global.defaultColor;function Pt(t){return t&&void 0!==t.width}function Rt(t){var e,n,i,a,r;return a=Pt(t)?(r=t.width/2,e=t.x-r,n=t.x+r,i=Math.min(t.y,t.base),Math.max(t.y,t.base)):(r=t.height/2,e=Math.min(t.x,t.base),n=Math.max(t.x,t.base),i=t.y-r,t.y+r),{left:e,top:i,right:n,bottom:a}}function Ot(t,e,n){return t===e?n:t===n?e:t}function Nt(t,e,n){var i=null===e,a=null===n,r=!(!t||i&&a)&&Rt(t);return r&&(i||e>=r.left&&e<=r.right)&&(a||n>=r.top&&n<=r.bottom)}st._set("global",{elements:{rectangle:{backgroundColor:Ft,borderColor:Ft,borderSkipped:"bottom",borderWidth:0}}});var Lt=pt.extend({draw:function(){var t,e,n,i,a,r=this._chart.ctx,s=this._view,o=(e=Rt(t=s),n=e.right-e.left,i=e.bottom-e.top,a=function(t,e,n){var i,a,r,s,o,l,u,d=t.borderWidth,c=(l=(o=t).borderSkipped,u={},l&&(o.horizontal?o.base>o.x&&(l=Ot(l,"left","right")):o.base<o.y&&(l=Ot(l,"bottom","top")),u[l]=!0),u);return ut.isObject(d)?(i=+d.top||0,a=+d.right||0,r=+d.bottom||0,s=+d.left||0):i=a=r=s=+d||0,{t:c.top||i<0?0:n<i?n:i,r:c.right||a<0?0:e<a?e:a,b:c.bottom||r<0?0:n<r?n:r,l:c.left||s<0?0:e<s?e:s}}(t,n/2,i/2),{outer:{x:e.left,y:e.top,w:n,h:i},inner:{x:e.left+a.l,y:e.top+a.t,w:n-a.l-a.r,h:i-a.t-a.b}}),l=o.outer,u=o.inner;r.fillStyle=s.backgroundColor,r.fillRect(l.x,l.y,l.w,l.h),l.w===u.w&&l.h===u.h||(r.save(),r.beginPath(),r.rect(l.x,l.y,l.w,l.h),r.clip(),r.fillStyle=s.borderColor,r.rect(u.x,u.y,u.w,u.h),r.fill("evenodd"),r.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return Nt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return Pt(n)?Nt(n,t,null):Nt(n,null,e)},inXRange:function(t){return Nt(this._view,t,null)},inYRange:function(t){return Nt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return e=Pt(n)?(t=n.x,(n.y+n.base)/2):(t=(n.x+n.base)/2,n.y),{x:t,y:e}},getArea:function(){var t=this._view;return Pt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),Et={},Ht=St,jt=Dt,Wt=At,Bt=Lt;Et.Arc=Ht,Et.Line=jt,Et.Point=Wt,Et.Rectangle=Bt;var Yt=ut.options.resolve;st._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var qt=xt.extend({dataElementType:Et.Rectangle,initialize:function(){var t;xt.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this.getMeta(),a=this.getDataset(),r=this._resolveElementOptions(t,e);t._xScale=this.getScaleForId(i.xAxisID),t._yScale=this.getScaleForId(i.yAxisID),t._datasetIndex=this.index,t._index=e,t._model={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderSkipped:r.borderSkipped,borderWidth:r.borderWidth,datasetLabel:a.label,label:this.chart.data.labels[e]},this._updateElementGeometry(t,e,n),t.pivot()},_updateElementGeometry:function(t,e,n){var i=t._model,a=this._getValueScale(),r=a.getBasePixel(),s=a.isHorizontal(),o=this._ruler||this.getRuler(),l=this.calculateBarValuePixels(this.index,e),u=this.calculateBarIndexPixels(this.index,e,o);i.horizontal=s,i.base=n?r:l.base,i.x=s?n?r:l.head:u.center,i.y=s?u.center:n?r:l.head,i.height=s?u.size:void 0,i.width=s?void 0:u.size},_getStacks:function(t){var e,n,i=this.chart,a=this._getIndexScale().options.stacked,r=void 0===t?i.data.datasets.length:t+1,s=[];for(e=0;e<r;++e)(n=i.getDatasetMeta(e)).bar&&i.isDatasetVisible(e)&&(!1===a||!0===a&&-1===s.indexOf(n.stack)||void 0===a&&(void 0===n.stack||-1===s.indexOf(n.stack)))&&s.push(n.stack);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),i=void 0!==e?n.indexOf(e):-1;return-1===i?n.length-1:i},getRuler:function(){var t,e,n=this._getIndexScale(),i=this.getStackCount(),a=this.index,r=n.isHorizontal(),s=r?n.left:n.top,o=s+(r?n.width:n.height),l=[];for(t=0,e=this.getMeta().data.length;t<e;++t)l.push(n.getPixelForValue(null,t,a));return{min:ut.isNullOrUndef(n.options.barThickness)?function(t,e){var n,i,a,r,s=t.isHorizontal()?t.width:t.height,o=t.getTicks();for(a=1,r=e.length;a<r;++a)s=Math.min(s,Math.abs(e[a]-e[a-1]));for(a=0,r=o.length;a<r;++a)i=t.getPixelForTick(a),s=0<a?Math.min(s,i-n):s,n=i;return s}(n,l):-1,pixels:l,start:s,end:o,stackCount:i,scale:n}},calculateBarValuePixels:function(t,e){var n,i,a,r,s,o,l=this.chart,u=this.getMeta(),d=this._getValueScale(),c=d.isHorizontal(),h=l.data.datasets,f=+d.getRightValue(h[t].data[e]),p=d.options.minBarLength,g=d.options.stacked,m=u.stack,v=0;if(g||void 0===g&&void 0!==m)for(n=0;n<t;++n)(i=l.getDatasetMeta(n)).bar&&i.stack===m&&i.controller._getValueScaleId()===d.id&&l.isDatasetVisible(n)&&(a=+d.getRightValue(h[n].data[e]),(f<0&&a<0||0<=f&&0<a)&&(v+=a));return r=d.getPixelForValue(v),o=(s=d.getPixelForValue(v+f))-r,void 0!==p&&Math.abs(o)<p&&(o=p,s=0<=f&&!c||f<0&&c?r-p:r+p),{size:o,base:r,head:s,center:s+o/2}},calculateBarIndexPixels:function(t,e,n){var i,a,r,s,o,l,u,d,c,h,f,p,g,m,v,y,b,_=n.scale.options,w="flex"===_.barThickness?(c=e,f=_,g=(h=n).pixels,m=g[c],v=0<c?g[c-1]:null,y=c<g.length-1?g[c+1]:null,b=f.categoryPercentage,null===v&&(v=m-(null===y?h.end-h.start:y-m)),null===y&&(y=m+m-v),p=m-(m-Math.min(v,y))/2*b,{chunk:Math.abs(y-v)/2*b/h.stackCount,ratio:f.barPercentage,start:p}):(i=e,a=n,l=(r=_).barThickness,u=a.stackCount,d=a.pixels[i],o=ut.isNullOrUndef(l)?(s=a.min*r.categoryPercentage,r.barPercentage):(s=l*u,1),{chunk:s/u,ratio:o,start:d-s/2}),x=this.getStackIndex(t,this.getMeta().stack),S=w.start+w.chunk*x+w.chunk/2,k=Math.min(ut.valueOrDefault(_.maxBarThickness,1/0),w.chunk*w.ratio);return{base:S-k/2,head:S+k/2,center:S,size:k}},draw:function(){var t=this.chart,e=this._getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,r=0;for(ut.canvas.clipArea(t.ctx,t.chartArea);r<a;++r)isNaN(e.getRightValue(i.data[r]))||n[r].draw();ut.canvas.unclipArea(t.ctx)},_resolveElementOptions:function(t,e){var n,i,a,r=this.chart,s=r.data.datasets[this.index],o=t.custom||{},l=r.options.elements.rectangle,u={},d={chart:r,dataIndex:e,dataset:s,datasetIndex:this.index},c=["backgroundColor","borderColor","borderSkipped","borderWidth"];for(n=0,i=c.length;n<i;++n)u[a=c[n]]=Yt([o[a],s[a],l[a]],d,e);return u}}),Vt=ut.valueOrDefault,$t=ut.options.resolve;st._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",i=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+i.r+")"}}}});var zt=xt.extend({dataElementType:Et.Point,update:function(n){var i=this,t=i.getMeta().data;ut.each(t,function(t,e){i.updateElement(t,e,n)})},updateElement:function(t,e,n){var i=this.getMeta(),a=t.custom||{},r=this.getScaleForId(i.xAxisID),s=this.getScaleForId(i.yAxisID),o=this._resolveElementOptions(t,e),l=this.getDataset().data[e],u=this.index,d=n?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof l?l:NaN,e,u),c=n?s.getBasePixel():s.getPixelForValue(l,e,u);t._xScale=r,t._yScale=s,t._options=o,t._datasetIndex=u,t._index=e,t._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth,hitRadius:o.hitRadius,pointStyle:o.pointStyle,rotation:o.rotation,radius:n?0:o.radius,skip:a.skip||isNaN(d)||isNaN(c),x:d,y:c},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options,i=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Vt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Vt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Vt(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(t,e){var n,i,a,r=this.chart,s=r.data.datasets[this.index],o=t.custom||{},l=r.options.elements.point,u=s.data[e],d={},c={chart:r,dataIndex:e,dataset:s,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,i=h.length;n<i;++n)d[a=h[n]]=$t([o[a],s[a],l[a]],c,e);return d.radius=$t([o.radius,u?u.r:void 0,s.radius,l.radius],c,e),d}}),Ut=ut.options.resolve,Gt=ut.valueOrDefault;st._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)e.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),a[r]&&e.push(a[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(o){var l=o.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var n=o.getDatasetMeta(0),i=l.datasets[0],a=n.data[e],r=a&&a.custom||{},s=o.options.elements.arc;return{text:t,fillStyle:Ut([r.backgroundColor,i.backgroundColor,s.backgroundColor],void 0,e),strokeStyle:Ut([r.borderColor,i.borderColor,s.borderColor],void 0,e),lineWidth:Ut([r.borderWidth,i.borderWidth,s.borderWidth],void 0,e),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var n,i,a,r=e.index,s=this.chart;for(n=0,i=(s.data.datasets||[]).length;n<i;++n)(a=s.getDatasetMeta(n)).data[r]&&(a.data[r].hidden=!a.data[r].hidden);s.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],i=": "+e.datasets[t.datasetIndex].data[t.index];return ut.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var Zt=xt.extend({dataElementType:Et.Arc,linkScales:ut.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e,n,i=this,a=i.chart,r=a.chartArea,s=a.options,o=r.right-r.left,l=r.bottom-r.top,u=Math.min(o,l),d={x:0,y:0},c=i.getMeta(),h=c.data,f=s.cutoutPercentage,p=s.circumference,g=i._getRingWeight(i.index);if(p<2*Math.PI){var m=s.rotation%(2*Math.PI),v=(m+=2*Math.PI*(m>=Math.PI?-1:m<-Math.PI?1:0))+p,y=Math.cos(m),b=Math.sin(m),_=Math.cos(v),w=Math.sin(v),x=m<=0&&0<=v||m<=2*Math.PI&&2*Math.PI<=v,S=m<=.5*Math.PI&&.5*Math.PI<=v||m<=2.5*Math.PI&&2.5*Math.PI<=v,k=m<=-Math.PI&&-Math.PI<=v||m<=Math.PI&&Math.PI<=v,T=m<=.5*-Math.PI&&.5*-Math.PI<=v||m<=1.5*Math.PI&&1.5*Math.PI<=v,D=f/100,C=k?-1:Math.min(y*(y<0?1:D),_*(_<0?1:D)),M=T?-1:Math.min(b*(b<0?1:D),w*(w<0?1:D)),I=x?1:Math.max(y*(0<y?1:D),_*(0<_?1:D)),A=S?1:Math.max(b*(0<b?1:D),w*(0<w?1:D)),F=.5*(I-C),P=.5*(A-M);u=Math.min(o/F,l/P),d={x:-.5*(I+C),y:-.5*(A+M)}}for(e=0,n=h.length;e<n;++e)h[e]._options=i._resolveElementOptions(h[e],e);for(a.borderWidth=i.getMaxBorderWidth(),a.outerRadius=Math.max((u-a.borderWidth)/2,0),a.innerRadius=Math.max(f?a.outerRadius/100*f:0,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),a.offsetX=d.x*a.outerRadius,a.offsetY=d.y*a.outerRadius,c.total=i.calculateTotal(),i.outerRadius=a.outerRadius-a.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-a.radiusLength*g,0),e=0,n=h.length;e<n;++e)i.updateElement(h[e],e,t)},updateElement:function(t,e,n){var i=this.chart,a=i.chartArea,r=i.options,s=r.animation,o=(a.left+a.right)/2,l=(a.top+a.bottom)/2,u=r.rotation,d=r.rotation,c=this.getDataset(),h=n&&s.animateRotate?0:t.hidden?0:this.calculateCircumference(c.data[e])*(r.circumference/(2*Math.PI)),f=n&&s.animateScale?0:this.innerRadius,p=n&&s.animateScale?0:this.outerRadius,g=t._options||{};ut.extend(t,{_datasetIndex:this.index,_index:e,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:o+i.offsetX,y:l+i.offsetY,startAngle:u,endAngle:d,circumference:h,outerRadius:p,innerRadius:f,label:ut.valueAtIndexOrDefault(c.label,e,i.data.labels[e])}});var m=t._model;n&&s.animateRotate||(m.startAngle=0===e?r.rotation:this.getMeta().data[e-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),t.pivot()},calculateTotal:function(){var n,i=this.getDataset(),t=this.getMeta(),a=0;return ut.each(t.data,function(t,e){n=i.data[e],isNaN(n)||t.hidden||(a+=Math.abs(n))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,a,r,s,o,l,u=0,d=this.chart;if(!t)for(e=0,n=d.data.datasets.length;e<n;++e)if(d.isDatasetVisible(e)){t=(i=d.getDatasetMeta(e)).data,e!==this.index&&(r=i.controller);break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)a=t[e],"inner"!==(s=r?r._resolveElementOptions(a,e):a._options).borderAlign&&(o=s.borderWidth,u=(l=s.hoverBorderWidth)>(u=u<o?o:u)?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,i=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Gt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Gt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Gt(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(t,e){var n,i,a,r=this.chart,s=this.getDataset(),o=t.custom||{},l=r.options.elements.arc,u={},d={chart:r,dataIndex:e,dataset:s,datasetIndex:this.index},c=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,i=c.length;n<i;++n)u[a=c[n]]=Ut([o[a],s[a],l[a]],d,e);return u},_getRingWeightOffset:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e},_getRingWeight:function(t){return Math.max(Gt(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});st._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});var Xt=qt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Jt=ut.valueOrDefault,Qt=ut.options.resolve,Kt=ut.canvas._isPointInArea;function te(t,e){return Jt(t.showLine,e.showLines)}st._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var ee=xt.extend({datasetElementType:Et.Line,dataElementType:Et.Point,update:function(t){var e,n,i=this.getMeta(),a=i.dataset,r=i.data||[],s=this.getScaleForId(i.yAxisID),o=this.getDataset(),l=te(o,this.chart.options);for(l&&(void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),a._scale=s,a._datasetIndex=this.index,a._children=r,a._model=this._resolveLineOptions(a),a.pivot()),e=0,n=r.length;e<n;++e)this.updateElement(r[e],e,t);for(l&&0!==a._model.tension&&this.updateBezierControlPoints(),e=0,n=r.length;e<n;++e)r[e].pivot()},updateElement:function(t,e,n){var i,a,r=this.getMeta(),s=t.custom||{},o=this.getDataset(),l=this.index,u=o.data[e],d=this.getScaleForId(r.yAxisID),c=this.getScaleForId(r.xAxisID),h=r.dataset._model,f=this._resolvePointOptions(t,e);i=c.getPixelForValue("object"==typeof u?u:NaN,e,l),a=n?d.getBasePixel():this.calculatePointY(u,e,l),t._xScale=c,t._yScale=d,t._options=f,t._datasetIndex=l,t._index=e,t._model={x:i,y:a,skip:s.skip||isNaN(i)||isNaN(a),radius:f.radius,pointStyle:f.pointStyle,rotation:f.rotation,backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth,tension:Jt(s.tension,h?h.tension:0),steppedLine:!!h&&h.steppedLine,hitRadius:f.hitRadius}},_resolvePointOptions:function(t,e){var n,i,a,r=this.chart,s=r.data.datasets[this.index],o=t.custom||{},l=r.options.elements.point,u={},d={chart:r,dataIndex:e,dataset:s,datasetIndex:this.index},c={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},h=Object.keys(c);for(n=0,i=h.length;n<i;++n)u[a=h[n]]=Qt([o[a],s[c[a]],s[a],l[a]],d,e);return u},_resolveLineOptions:function(t){var e,n,i,a=this.chart,r=a.data.datasets[this.index],s=t.custom||{},o=a.options,l=o.elements.line,u={},d=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill","cubicInterpolationMode"];for(e=0,n=d.length;e<n;++e)u[i=d[e]]=Qt([s[i],r[i],l[i]]);return u.spanGaps=Jt(r.spanGaps,o.spanGaps),u.tension=Jt(r.lineTension,l.tension),u.steppedLine=Qt([s.steppedLine,r.steppedLine,l.stepped]),u},calculatePointY:function(t,e,n){var i,a,r,s=this.chart,o=this.getMeta(),l=this.getScaleForId(o.yAxisID),u=0,d=0;if(l.options.stacked){for(i=0;i<n;i++)if(a=s.data.datasets[i],"line"===(r=s.getDatasetMeta(i)).type&&r.yAxisID===l.id&&s.isDatasetVisible(i)){var c=Number(l.getRightValue(a.data[e]));c<0?d+=c||0:u+=c||0}var h=Number(l.getRightValue(t));return h<0?l.getPixelForValue(d+h):l.getPixelForValue(u+h)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.chart,r=this.getMeta(),s=r.dataset._model,o=a.chartArea,l=r.data||[];function u(t,e,n){return Math.max(Math.min(t,n),e)}if(s.spanGaps&&(l=l.filter(function(t){return!t._model.skip})),"monotone"===s.cubicInterpolationMode)ut.splineCurveMonotone(l);else for(t=0,e=l.length;t<e;++t)n=l[t]._model,i=ut.splineCurve(ut.previousItem(l,t)._model,n,ut.nextItem(l,t)._model,s.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(a.options.elements.line.capBezierPoints)for(t=0,e=l.length;t<e;++t)n=l[t]._model,Kt(n,o)&&(0<t&&Kt(l[t-1]._model,o)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,o.left,o.right),n.controlPointPreviousY=u(n.controlPointPreviousY,o.top,o.bottom)),t<l.length-1&&Kt(l[t+1]._model,o)&&(n.controlPointNextX=u(n.controlPointNextX,o.left,o.right),n.controlPointNextY=u(n.controlPointNextY,o.top,o.bottom)))},draw:function(){var t,e=this.chart,n=this.getMeta(),i=n.data||[],a=e.chartArea,r=i.length,s=0;for(te(this.getDataset(),e.options)&&(t=(n.dataset._model.borderWidth||0)/2,ut.canvas.clipArea(e.ctx,{left:a.left,right:a.right,top:a.top-t,bottom:a.bottom+t}),n.dataset.draw(),ut.canvas.unclipArea(e.ctx));s<r;++s)i[s].draw(a)},setHoverStyle:function(t){var e=t._model,n=t._options,i=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Jt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Jt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Jt(n.hoverBorderWidth,n.borderWidth),e.radius=Jt(n.hoverRadius,n.radius)}}),ne=ut.options.resolve;st._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var r=0;r<i[0].data.length;++r)e.push('<li><span style="background-color:'+i[0].backgroundColor[r]+'"></span>'),a[r]&&e.push(a[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var o=s.data;return o.labels.length&&o.datasets.length?o.labels.map(function(t,e){var n=s.getDatasetMeta(0),i=o.datasets[0],a=n.data[e].custom||{},r=s.options.elements.arc;return{text:t,fillStyle:ne([a.backgroundColor,i.backgroundColor,r.backgroundColor],void 0,e),strokeStyle:ne([a.borderColor,i.borderColor,r.borderColor],void 0,e),lineWidth:ne([a.borderWidth,i.borderWidth,r.borderWidth],void 0,e),hidden:isNaN(i.data[e])||n.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var n,i,a,r=e.index,s=this.chart;for(n=0,i=(s.data.datasets||[]).length;n<i;++n)(a=s.getDatasetMeta(n)).data[r].hidden=!a.data[r].hidden;s.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var ie=xt.extend({dataElementType:Et.Arc,linkScales:ut.noop,update:function(t){var e,n,i,a=this,r=a.getDataset(),s=a.getMeta(),o=a.chart.options.startAngle||0,l=a._starts=[],u=a._angles=[],d=s.data;for(a._updateRadius(),s.count=a.countVisibleElements(),e=0,n=r.data.length;e<n;e++)l[e]=o,i=a._computeAngle(e),o+=u[e]=i;for(e=0,n=d.length;e<n;++e)d[e]._options=a._resolveElementOptions(d[e],e),a.updateElement(d[e],e,t)},_updateRadius:function(){var t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max(i/2,0),t.innerRadius=Math.max(n.cutoutPercentage?t.outerRadius/100*n.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),this.outerRadius=t.outerRadius-t.radiusLength*this.index,this.innerRadius=this.outerRadius-t.radiusLength},updateElement:function(t,e,n){var i=this.chart,a=this.getDataset(),r=i.options,s=r.animation,o=i.scale,l=i.data.labels,u=o.xCenter,d=o.yCenter,c=r.startAngle,h=t.hidden?0:o.getDistanceFromCenterForValue(a.data[e]),f=this._starts[e],p=f+(t.hidden?0:this._angles[e]),g=s.animateScale?0:o.getDistanceFromCenterForValue(a.data[e]),m=t._options||{};ut.extend(t,{_datasetIndex:this.index,_index:e,_scale:o,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?g:h,startAngle:n&&s.animateRotate?c:f,endAngle:n&&s.animateRotate?c:p,label:ut.valueAtIndexOrDefault(l,e,l[e])}}),t.pivot()},countVisibleElements:function(){var n=this.getDataset(),t=this.getMeta(),i=0;return ut.each(t.data,function(t,e){isNaN(n.data[e])||t.hidden||i++}),i},setHoverStyle:function(t){var e=t._model,n=t._options,i=ut.getHoverColor,a=ut.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=a(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=a(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(t,e){var n,i,a,r=this.chart,s=this.getDataset(),o=t.custom||{},l=r.options.elements.arc,u={},d={chart:r,dataIndex:e,dataset:s,datasetIndex:this.index},c=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,i=c.length;n<i;++n)u[a=c[n]]=ne([o[a],s[a],l[a]],d,e);return u},_computeAngle:function(t){var e=this.getMeta().count,n=this.getDataset(),i=this.getMeta();if(isNaN(n.data[t])||i.data[t].hidden)return 0;var a={chart:this.chart,dataIndex:t,dataset:n,datasetIndex:this.index};return ne([this.chart.options.elements.arc.angle,2*Math.PI/e],a,t)}});st._set("pie",ut.clone(st.doughnut)),st._set("pie",{cutoutPercentage:0});var ae=Zt,re=ut.valueOrDefault,se=ut.options.resolve;st._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});var oe=xt.extend({datasetElementType:Et.Line,dataElementType:Et.Point,linkScales:ut.noop,update:function(t){var e,n,i=this.getMeta(),a=i.dataset,r=i.data||[],s=this.chart.scale,o=this.getDataset();for(void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),a._scale=s,a._datasetIndex=this.index,a._children=r,a._loop=!0,a._model=this._resolveLineOptions(a),a.pivot(),e=0,n=r.length;e<n;++e)this.updateElement(r[e],e,t);for(this.updateBezierControlPoints(),e=0,n=r.length;e<n;++e)r[e].pivot()},updateElement:function(t,e,n){var i=t.custom||{},a=this.getDataset(),r=this.chart.scale,s=r.getPointPositionForValue(e,a.data[e]),o=this._resolvePointOptions(t,e),l=this.getMeta().dataset._model,u=n?r.xCenter:s.x,d=n?r.yCenter:s.y;t._scale=r,t._options=o,t._datasetIndex=this.index,t._index=e,t._model={x:u,y:d,skip:i.skip||isNaN(u)||isNaN(d),radius:o.radius,pointStyle:o.pointStyle,rotation:o.rotation,backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth,tension:re(i.tension,l?l.tension:0),hitRadius:o.hitRadius}},_resolvePointOptions:function(t,e){var n,i,a,r=this.chart,s=r.data.datasets[this.index],o=t.custom||{},l=r.options.elements.point,u={},d={chart:r,dataIndex:e,dataset:s,datasetIndex:this.index},c={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},h=Object.keys(c);for(n=0,i=h.length;n<i;++n)u[a=h[n]]=se([o[a],s[c[a]],s[a],l[a]],d,e);return u},_resolveLineOptions:function(t){var e,n,i,a=this.chart,r=a.data.datasets[this.index],s=t.custom||{},o=a.options.elements.line,l={},u=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"];for(e=0,n=u.length;e<n;++e)l[i=u[e]]=se([s[i],r[i],o[i]]);return l.tension=re(r.lineTension,o.tension),l},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),r=this.chart.chartArea,s=a.data||[];function o(t,e,n){return Math.max(Math.min(t,n),e)}for(t=0,e=s.length;t<e;++t)n=s[t]._model,i=ut.splineCurve(ut.previousItem(s,t,!0)._model,n,ut.nextItem(s,t,!0)._model,n.tension),n.controlPointPreviousX=o(i.previous.x,r.left,r.right),n.controlPointPreviousY=o(i.previous.y,r.top,r.bottom),n.controlPointNextX=o(i.next.x,r.left,r.right),n.controlPointNextY=o(i.next.y,r.top,r.bottom)},setHoverStyle:function(t){var e=t._model,n=t._options,i=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=re(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=re(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=re(n.hoverBorderWidth,n.borderWidth),e.radius=re(n.hoverRadius,n.radius)}});st._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}});var le={bar:qt,bubble:zt,doughnut:Zt,horizontalBar:Xt,line:ee,polarArea:ie,pie:ae,radar:oe,scatter:ee};function ue(t,e){return t.native?{x:t.x,y:t.y}:ut.getRelativePosition(t,e)}function de(t,e){var n,i,a,r,s;for(i=0,r=t.data.datasets.length;i<r;++i)if(t.isDatasetVisible(i))for(a=0,s=(n=t.getDatasetMeta(i)).data.length;a<s;++a){var o=n.data[a];o._view.skip||e(o)}}function ce(t,e){var n=[];return de(t,function(t){t.inRange(e.x,e.y)&&n.push(t)}),n}function he(t,i,a,r){var s=Number.POSITIVE_INFINITY,o=[];return de(t,function(t){if(!a||t.inRange(i.x,i.y)){var e=t.getCenterPoint(),n=r(i,e);n<s?(o=[t],s=n):n===s&&o.push(t)}}),o}function fe(t){var a=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,e){var n=a?Math.abs(t.x-e.x):0,i=r?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}}function pe(i,t,e){var n=ue(t,i);e.axis=e.axis||"x";var a=fe(e.axis),r=e.intersect?ce(i,n):he(i,n,!1,a),s=[];return r.length?(i.data.datasets.forEach(function(t,e){if(i.isDatasetVisible(e)){var n=i.getDatasetMeta(e).data[r[0]._index];n&&!n._view.skip&&s.push(n)}}),s):[]}var ge={modes:{single:function(t,e){var n=ue(e,t),i=[];return de(t,function(t){if(t.inRange(n.x,n.y))return i.push(t),i}),i.slice(0,1)},label:pe,index:pe,dataset:function(t,e,n){var i=ue(e,t);n.axis=n.axis||"xy";var a=fe(n.axis),r=n.intersect?ce(t,i):he(t,i,!1,a);return 0<r.length&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return pe(t,e,{intersect:!1})},point:function(t,e){return ce(t,ue(e,t))},nearest:function(t,e,n){var i=ue(e,t);n.axis=n.axis||"xy";var a=fe(n.axis);return he(t,i,n.intersect,a)},x:function(t,e,n){var i=ue(e,t),a=[],r=!1;return de(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(a=[]),a},y:function(t,e,n){var i=ue(e,t),a=[],r=!1;return de(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(a=[]),a}}};function me(t,e){return ut.where(t,function(t){return t.position===e})}function ve(t,a){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var n=a?e:t,i=a?t:e;return n.weight===i.weight?n._tmpIndex_-i._tmpIndex_:n.weight-i.weight}),t.forEach(function(t){delete t._tmpIndex_})}function ye(t,e){ut.each(t,function(t){e[t.position]+=t.isHorizontal()?t.height:t.width})}st._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var be={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,s=0;s<r;++s)i=a[s],n.hasOwnProperty(i)&&(e[i]=n[i])},update:function(e,n,t){if(e){var i=e.options.layout||{},a=ut.options.toPadding(i.padding),r=a.left,s=a.right,o=a.top,l=a.bottom,u=me(e.boxes,"left"),d=me(e.boxes,"right"),c=me(e.boxes,"top"),h=me(e.boxes,"bottom"),f=me(e.boxes,"chartArea");ve(u,!0),ve(d,!1),ve(c,!0),ve(h,!1);var p,g=u.concat(d),m=c.concat(h),v=g.concat(m),y=n-r-s,b=t-o-l,_=(n-y/2)/g.length,w=y,x=b,S={top:o,left:r,bottom:l,right:s},k=[];ut.each(v,function(t){var e,n=t.isHorizontal();n?(e=t.update(t.fullWidth?y:w,b/2),x-=e.height):(e=t.update(_,x),w-=e.width),k.push({horizontal:n,width:e.width,box:t})}),F=v,N=O=R=P=0,ut.each(F,function(t){if(t.getPadding){var e=t.getPadding();P=Math.max(P,e.top),R=Math.max(R,e.left),O=Math.max(O,e.bottom),N=Math.max(N,e.right)}}),p={top:P,left:R,bottom:O,right:N},ut.each(g,L),ye(g,S),ut.each(m,L),ye(m,S),ut.each(g,function(e){var t=ut.findNextWhere(k,function(t){return t.box===e}),n={left:0,right:0,top:S.top,bottom:S.bottom};t&&e.update(t.width,x,n)}),ye(v,S={top:o,left:r,bottom:l,right:s});var T=Math.max(p.left-S.left,0);S.left+=T,S.right+=Math.max(p.right-S.right,0);var D=Math.max(p.top-S.top,0);S.top+=D,S.bottom+=Math.max(p.bottom-S.bottom,0);var C=t-S.top-S.bottom,M=n-S.left-S.right;M===w&&C===x||(ut.each(g,function(t){t.height=C}),ut.each(m,function(t){t.fullWidth||(t.width=M)}),x=C,w=M);var I=r+T,A=o+D;ut.each(u.concat(c),E),I+=w,A+=x,ut.each(d,E),ut.each(h,E),e.chartArea={left:S.left,top:S.top,right:S.left+w,bottom:S.top+x},ut.each(f,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(w,x)})}var F,P,R,O,N;function L(e){var t=ut.findNextWhere(k,function(t){return t.box===e});if(t)if(t.horizontal){var n={left:Math.max(S.left,p.left),right:Math.max(S.right,p.right),top:0,bottom:0};e.update(e.fullWidth?y:w,b/2,n)}else e.update(t.width,x)}function E(t){t.isHorizontal()?(t.left=t.fullWidth?r:S.left,t.right=t.fullWidth?n-s:S.left+w,t.top=A,t.bottom=A+t.height,A=t.bottom):(t.left=I,t.right=I+t.width,t.top=S.top,t.bottom=S.top+x,I=t.right)}}};function zn(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var _e,we=(_e=Object.freeze({default:"@keyframes chartjs-render-animation{from{opacity:.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 1ms}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}"}))&&_e.default||_e,xe="$chartjs",Se="chartjs-size-monitor",ke="chartjs-render-monitor",Te=["animationstart","webkitAnimationStart"],De={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Ce(t,e){var n=ut.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var Me=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function Ie(t,e,n){t.addEventListener(e,n,Me)}function Ae(t,e,n){t.removeEventListener(e,n,Me)}function Fe(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function Pe(t){var e=document.createElement("div");return e.className=t||"",e}function Re(n,i,a){var t,e,r,s,o,l,u,d=n[xe]||(n[xe]={}),c=d.resizer=function(t){var e=Pe(Se),n=Pe(Se+"-expand"),i=Pe(Se+"-shrink");n.appendChild(Pe()),i.appendChild(Pe()),e.appendChild(n),e.appendChild(i),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};function a(){e._reset(),t()}return Ie(n,"scroll",a.bind(n,"expand")),Ie(i,"scroll",a.bind(i,"shrink")),e}((r=!(t=function(){if(d.resizer){var t=a.options.maintainAspectRatio&&n.parentNode,e=t?t.clientWidth:0;i(Fe("resize",a)),t&&t.clientWidth<e&&a.canvas&&i(Fe("resize",a))}}),s=[],function(){s=Array.prototype.slice.call(arguments),e=e||this,r||(r=!0,ut.requestAnimFrame.call(window,function(){r=!1,t.apply(e,s)}))}));l=(o=n)[xe]||(o[xe]={}),u=l.renderProxy=function(t){"chartjs-render-animation"===t.animationName&&function(){if(d.resizer){var t=n.parentNode;t&&t!==c.parentNode&&t.insertBefore(c,t.firstChild),c._reset()}}()},ut.each(Te,function(t){Ie(o,t,u)}),l.reflow=!!o.offsetParent,o.classList.add(ke)}var Oe={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){var t,e;this._loaded||(this._loaded=!0,this.disableCSSInjection||(t=we,e=this._style||document.createElement("style"),this._style||(t="/* Chart.js */\n"+t,(this._style=e).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(e)),e.appendChild(document.createTextNode(t))))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return this._ensureLoaded(),n&&n.canvas===t?(function(t,e){var n=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t[xe]={initial:{height:i,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var r=Ce(t,"width");void 0!==r&&(t.width=r)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=Ce(t,"height");void 0!==r&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var n=t.canvas;if(n[xe]){var i=n[xe].initial;["height","width"].forEach(function(t){var e=i[t];ut.isNullOrUndef(e)?n.removeAttribute(t):n.setAttribute(t,e)}),ut.each(i.style||{},function(t,e){n.style[e]=t}),n.width=n.width,delete n[xe]}},addEventListener:function(r,t,s){var e=r.canvas;if("resize"!==t){var n=s[xe]||(s[xe]={});Ie(e,t,(n.proxies||(n.proxies={}))[r.id+"_"+t]=function(t){var e,n,i,a;s((n=r,i=De[(e=t).type]||e.type,a=ut.getRelativePosition(e,n),Fe(i,n,a.x,a.y,e)))})}else Re(e,s,r)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=((n[xe]||{}).proxies||{})[t.id+"_"+e];a&&Ae(i,e,a)}else!function(t){var e,n,i,a=t[xe]||{},r=a.resizer;delete a.resizer,n=(e=t)[xe]||{},(i=n.renderProxy)&&(ut.each(Te,function(t){Ae(e,t,i)}),delete n.renderProxy),e.classList.remove(ke),r&&r.parentNode&&r.parentNode.removeChild(r)}(i)}};ut.addEvent=Ie,ut.removeEvent=Ae;var Ne=Oe._enabled?Oe:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},Le=ut.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Ne);st._set("global",{plugins:{}});var Ee={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var n=this._plugins;[].concat(t).forEach(function(t){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,a,r,s,o,l=this.descriptors(t),u=l.length;for(i=0;i<u;++i)if("function"==typeof(o=(r=(a=l[i]).plugin)[e])&&((s=[t].concat(n||[])).push(a.options),!1===o.apply(r,s)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],a=[],n=t&&t.config||{},r=n.options&&n.options.plugins||{};return this._plugins.concat(n.plugins||[]).forEach(function(t){if(-1===i.indexOf(t)){var e=t.id,n=r[e];!1!==n&&(!0===n&&(n=ut.clone(st.global.plugins[e])),i.push(t),a.push({plugin:t,options:n||{}}))}}),e.descriptors=a,e.id=this._cacheId,a},_invalidate:function(t){delete t.$plugins}},He={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=ut.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?ut.merge({},[st.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=ut.extend(this.defaults[t],e))},addScalesToLayout:function(e){ut.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,be.addBox(e,t)})}},je=ut.valueOrDefault;st._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ut.noop,title:function(t,e){var n="",i=e.labels,a=i?i.length:0;if(0<t.length){var r=t[0];r.label?n=r.label:r.xLabel?n=r.xLabel:0<a&&r.index<a&&(n=i[r.index])}return n},afterTitle:ut.noop,beforeBody:ut.noop,beforeLabel:ut.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),ut.isNullOrUndef(t.value)?n+=t.yLabel:n+=t.value,n},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ut.noop,afterBody:ut.noop,beforeFooter:ut.noop,footer:ut.noop,afterFooter:ut.noop}}});var We={average:function(t){if(!t.length)return!1;var e,n,i=0,a=0,r=0;for(e=0,n=t.length;e<n;++e){var s=t[e];if(s&&s.hasValue()){var o=s.tooltipPosition();i+=o.x,a+=o.y,++r}}return{x:i/r,y:a/r}},nearest:function(t,e){var n,i,a,r=e.x,s=e.y,o=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){var l=t[n];if(l&&l.hasValue()){var u=l.getCenterPoint(),d=ut.distanceBetweenPoints(e,u);d<o&&(o=d,a=l)}}if(a){var c=a.tooltipPosition();r=c.x,s=c.y}return{x:r,y:s}}};function Be(t,e){return e&&(ut.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ye(t){return("string"==typeof t||t instanceof String)&&-1<t.indexOf("\n")?t.split("\n"):t}function qe(t){var e=st.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:je(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:je(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:je(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:je(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:je(t.titleFontStyle,e.defaultFontStyle),titleFontSize:je(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:je(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:je(t.footerFontStyle,e.defaultFontStyle),footerFontSize:je(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ve(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function $e(t){return Be([],Ye(t))}var ze=pt.extend({initialize:function(){this._model=qe(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),i=t.afterTitle.apply(this,arguments),a=[];return Be(a=Be(a=Be(a,Ye(e)),Ye(n)),Ye(i))},getBeforeBody:function(){return $e(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,n){var i=this,a=i._options.callbacks,r=[];return ut.each(t,function(t){var e={before:[],lines:[],after:[]};Be(e.before,Ye(a.beforeLabel.call(i,t,n))),Be(e.lines,a.label.call(i,t,n)),Be(e.after,Ye(a.afterLabel.call(i,t,n))),r.push(e)}),r},getAfterBody:function(){return $e(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),i=t.afterFooter.apply(this,arguments),a=[];return Be(a=Be(a=Be(a,Ye(e)),Ye(n)),Ye(i))},update:function(t){var e,n,i,a,r,s,o,l,u,d,c,h,f,p,g,m,v,y,b,_,w,x,S,k=this,T=k._options,D=k._model,C=k._model=qe(T),M=k._active,I=k._data,A={xAlign:D.xAlign,yAlign:D.yAlign},F={x:D.x,y:D.y},P={width:D.width,height:D.height},R={x:D.caretX,y:D.caretY};if(M.length){C.opacity=1;var O=[],N=[];R=We[T.position].call(k,M,k._eventPosition);var L=[];for(e=0,n=M.length;e<n;++e)L.push((d=u=l=r=a=void 0,a=(i=M[e])._xScale,r=i._yScale||i._scale,s=i._index,o=i._datasetIndex,u=(l=i._chart.getDatasetMeta(o).controller)._getIndexScale(),d=l._getValueScale(),{xLabel:a?a.getLabelForIndex(s,o):"",yLabel:r?r.getLabelForIndex(s,o):"",label:u?""+u.getLabelForIndex(s,o):"",value:d?""+d.getLabelForIndex(s,o):"",index:s,datasetIndex:o,x:i._model.x,y:i._model.y}));T.filter&&(L=L.filter(function(t){return T.filter(t,I)})),T.itemSort&&(L=L.sort(function(t,e){return T.itemSort(t,e,I)})),ut.each(L,function(t){O.push(T.callbacks.labelColor.call(k,t,k._chart)),N.push(T.callbacks.labelTextColor.call(k,t,k._chart))}),C.title=k.getTitle(L,I),C.beforeBody=k.getBeforeBody(L,I),C.body=k.getBody(L,I),C.afterBody=k.getAfterBody(L,I),C.footer=k.getFooter(L,I),C.x=R.x,C.y=R.y,C.caretPadding=T.caretPadding,C.labelColors=O,C.labelTextColors=N,C.dataPoints=L,P=function(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,r=e.body,s=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);s+=e.beforeBody.length+e.afterBody.length;var o=e.title.length,l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,c=e.footerFontSize;i+=o*u,i+=o?(o-1)*e.titleSpacing:0,i+=o?e.titleMarginBottom:0,i+=s*d,i+=s?(s-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*c,i+=l?(l-1)*e.footerSpacing:0;function h(t){a=Math.max(a,n.measureText(t).width+f)}var f=0;return n.font=ut.fontString(u,e._titleFontStyle,e._titleFontFamily),ut.each(e.title,h),n.font=ut.fontString(d,e._bodyFontStyle,e._bodyFontFamily),ut.each(e.beforeBody.concat(e.afterBody),h),f=e.displayColors?d+2:0,ut.each(r,function(t){ut.each(t.before,h),ut.each(t.lines,h),ut.each(t.after,h)}),f=0,n.font=ut.fontString(c,e._footerFontStyle,e._footerFontFamily),ut.each(e.footer,h),{width:a+=2*e.xPadding,height:i}}(this,C),c=C,f=A=function(t,e){var n,i,a,r,s,o=t._model,l=t._chart,u=t._chart.chartArea,d="center",c="center";o.y<e.height?c="top":o.y>l.height-e.height&&(c="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;i="center"===c?(n=function(t){return t<=h},function(t){return h<t}):(n=function(t){return t<=e.width/2},function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width+o.caretSize+o.caretPadding>l.width},r=function(t){return t-e.width-o.caretSize-o.caretPadding<0},s=function(t){return t<=f?"top":"bottom"},n(o.x)?(d="left",a(o.x)&&(d="center",c=s(o.y))):i(o.x)&&(d="right",r(o.x)&&(d="center",c=s(o.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:d,yAlign:p.yAlign?p.yAlign:c}}(this,h=P),p=k._chart,g=c.x,m=c.y,v=c.caretSize,y=c.caretPadding,b=c.cornerRadius,_=f.xAlign,w=f.yAlign,x=v+y,S=b+y,"right"===_?g-=h.width:"center"===_&&((g-=h.width/2)+h.width>p.width&&(g=p.width-h.width),g<0&&(g=0)),"top"===w?m+=x:m-="bottom"===w?h.height+x:h.height/2,"center"===w?"left"===_?g+=x:"right"===_&&(g-=x):"left"===_?g-=S:"right"===_&&(g+=S),F={x:g,y:m}}else C.opacity=0;return C.xAlign=A.xAlign,C.yAlign=A.yAlign,C.x=F.x,C.y=F.y,C.width=P.width,C.height=P.height,C.caretX=R.x,C.caretY=R.y,k._model=C,t&&T.custom&&T.custom.call(k,C),k},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,a=this.getCaretPosition(t,e,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var i,a,r,s,o,l,u=n.caretSize,d=n.cornerRadius,c=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,m=e.height;if("center"===h)o=p+m/2,l="left"===c?(a=(i=f)-u,r=i,s=o+u,o-u):(a=(i=f+g)+u,r=i,s=o-u,o+u);else if(r=(i="left"===c?(a=f+d+u)-u:"right"===c?(a=f+g-d-u)-u:(a=n.caretX)-u,a+u),"top"===h)o=(s=p)-u,l=s;else{o=(s=p+m)+u,l=s;var v=r;r=i,i=v}return{x1:i,x2:a,x3:r,y1:s,y2:o,y3:l}},drawTitle:function(t,e,n){var i=e.title;if(i.length){t.x=Ve(e,e._titleAlign),n.textAlign=e._titleAlign,n.textBaseline="top";var a,r,s=e.titleFontSize,o=e.titleSpacing;for(n.fillStyle=e.titleFontColor,n.font=ut.fontString(s,e._titleFontStyle,e._titleFontFamily),a=0,r=i.length;a<r;++a)n.fillText(i[a],t.x,t.y),t.y+=s+o,a+1===i.length&&(t.y+=e.titleMarginBottom-o)}},drawBody:function(n,i,a){var r,s=i.bodyFontSize,e=i.bodySpacing,t=i._bodyAlign,o=i.body,l=i.displayColors,u=i.labelColors,d=0,c=l?Ve(i,"left"):0;a.textAlign=t,a.textBaseline="top",a.font=ut.fontString(s,i._bodyFontStyle,i._bodyFontFamily),n.x=Ve(i,t);function h(t){a.fillText(t,n.x+d,n.y),n.y+=s+e}a.fillStyle=i.bodyFontColor,ut.each(i.beforeBody,h),d=l&&"right"!==t?"center"===t?s/2+1:s+2:0,ut.each(o,function(t,e){r=i.labelTextColors[e],a.fillStyle=r,ut.each(t.before,h),ut.each(t.lines,function(t){l&&(a.fillStyle=i.legendColorBackground,a.fillRect(c,n.y,s,s),a.lineWidth=1,a.strokeStyle=u[e].borderColor,a.strokeRect(c,n.y,s,s),a.fillStyle=u[e].backgroundColor,a.fillRect(c+1,n.y+1,s-2,s-2),a.fillStyle=r),h(t)}),ut.each(t.after,h)}),d=0,ut.each(i.afterBody,h),n.y-=e},drawFooter:function(e,n,i){var t=n.footer;t.length&&(e.x=Ve(n,n._footerAlign),e.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top",i.fillStyle=n.footerFontColor,i.font=ut.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),ut.each(t,function(t){i.fillText(t,e.x,e.y),e.y+=n.footerFontSize+n.footerSpacing}))},drawBackground:function(t,e,n,i){n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,n.lineWidth=e.borderWidth;var a=e.xAlign,r=e.yAlign,s=t.x,o=t.y,l=i.width,u=i.height,d=e.cornerRadius;n.beginPath(),n.moveTo(s+d,o),"top"===r&&this.drawCaret(t,i),n.lineTo(s+l-d,o),n.quadraticCurveTo(s+l,o,s+l,o+d),"center"===r&&"right"===a&&this.drawCaret(t,i),n.lineTo(s+l,o+u-d),n.quadraticCurveTo(s+l,o+u,s+l-d,o+u),"bottom"===r&&this.drawCaret(t,i),n.lineTo(s+d,o+u),n.quadraticCurveTo(s,o+u,s,o+u-d),"center"===r&&"left"===a&&this.drawCaret(t,i),n.lineTo(s,o+d),n.quadraticCurveTo(s,o,s+d,o),n.closePath(),n.fill(),0<e.borderWidth&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(t.save(),t.globalAlpha=a,this.drawBackground(i,e,t,n),i.y+=e.yPadding,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),t.restore())}},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),(e=!ut.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),Ue=We,Ge=ze;Ge.positioners=Ue;var Ze=ut.valueOrDefault;function Xe(){return ut.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,s,o=n[t].length;for(e[t]||(e[t]=[]),a=0;a<o;++a)s=n[t][a],r=Ze(s.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||s.type&&s.type!==e[t][a].type?ut.merge(e[t][a],[He.getScaleDefaults(r),s]):ut.merge(e[t][a],s)}else ut._merger(t,e,n,i)}})}function Je(){return ut.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){var a=e[t]||{},r=n[t];"scales"===t?e[t]=Xe(a,r):"scale"===t?e[t]=ut.merge(a,[He.getScaleDefaults(r.type),r]):ut._merger(t,e,n,i)}})}function Qe(t){return"top"===t||"bottom"===t}st._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});function Ke(t,e){return this.construct(t,e),this}ut.extend(Ke.prototype,{construct:function(t,e){var n,i,a=this;(i=(n=(n=e)||{}).data=n.data||{}).datasets=i.datasets||[],i.labels=i.labels||[],n.options=Je(st.global,st[n.type],n.options||{}),e=n;var r=Le.acquireContext(t,e),s=r&&r.canvas,o=s&&s.height,l=s&&s.width;a.id=ut.uid(),a.ctx=r,a.canvas=s,a.config=e,a.width=l,a.height=o,a.aspectRatio=o?l/o:null,a.options=e.options,a._bufferedRender=!1,(a.chart=a).controller=a,Ke.instances[a.id]=a,Object.defineProperty(a,"data",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),r&&s?(a.initialize(),a.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Ee.notify(t,"beforeInit"),ut.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),Ee.notify(t,"afterInit"),t},clear:function(){return ut.canvas.clear(this),this},stop:function(){return vt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(ut.getMaximumWidth(i))),s=Math.max(0,Math.floor(a?r/a:ut.getMaximumHeight(i)));if((e.width!==r||e.height!==s)&&(i.width=e.width=r,i.height=e.height=s,i.style.width=r+"px",i.style.height=s+"px",ut.retinaScale(e,n.devicePixelRatio),!t)){var o={width:r,height:s};Ee.notify(e,"resize",[o]),n.onResize&&n.onResize(e,o),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;ut.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),ut.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var s=this,t=s.options,o=s.scales||{},e=[],l=Object.keys(o).reduce(function(t,e){return t[e]=!1,t},{});t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ut.each(e,function(t){var e=t.options,n=e.id,i=Ze(e.type,t.dtype);Qe(e.position)!==Qe(t.dposition)&&(e.position=t.dposition),l[n]=!0;var a=null;if(n in o&&o[n].type===i)(a=o[n]).options=e,a.ctx=s.ctx,a.chart=s;else{var r=He.getScaleConstructor(i);if(!r)return;a=new r({id:n,type:i,options:e,ctx:s.ctx,chart:s}),o[a.id]=a}a.mergeTicksOptions(),t.isDefault&&(s.scale=a)}),ut.each(l,function(t,e){t||delete o[e]}),s.scales=o,He.addScalesToLayout(this)},buildOrUpdateControllers:function(){var r=this,s=[];return ut.each(r.data.datasets,function(t,e){var n=r.getDatasetMeta(e),i=t.type||r.config.type;if(n.type&&n.type!==i&&(r.destroyDatasetMeta(e),n=r.getDatasetMeta(e)),n.type=i,n.controller)n.controller.updateIndex(e),n.controller.linkScales();else{var a=le[n.type];if(void 0===a)throw new Error('"'+n.type+'" is not a chart type.');n.controller=new a(r,e),s.push(n.controller)}},r),s},resetElements:function(){var n=this;ut.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n=(e=i).options,ut.each(e.scales,function(t){be.removeBox(e,t)}),n=Je(st.global,st[e.config.type],n),e.options=e.config.options=n,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=n.tooltips,e.tooltip.initialize(),Ee._invalidate(i),!1!==Ee.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var a=i.buildOrUpdateControllers();ut.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&ut.each(a,function(t){t.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],Ee.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){!1!==Ee.notify(this,"beforeLayout")&&(be.update(this,this.width,this.height),Ee.notify(this,"afterScaleUpdate"),Ee.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==Ee.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);Ee.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),n={meta:e,index:t};!1!==Ee.notify(this,"beforeDatasetUpdate",[n])&&(e.controller.update(),Ee.notify(this,"afterDatasetUpdate",[n]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var n=e.options.animation,i=Ze(t.duration,n&&n.duration),a=t.lazy;if(!1!==Ee.notify(e,"beforeRender")){var r=function(t){Ee.notify(e,"afterRender"),ut.callback(n&&n.onComplete,[t],e)};if(n&&i){var s=new mt({numSteps:i/16.66,easing:t.easing||n.easing,render:function(t,e){var n=ut.easing.effects[e.easing],i=e.currentStep,a=i/e.numSteps;t.draw(n(a),a,i)},onAnimationProgress:n.onProgress,onAnimationComplete:r});vt.addAnimation(e,s,i,a)}else e.draw(),r(new mt({numSteps:0,chart:e}));return e}},draw:function(t){var e=this;e.clear(),ut.isNullOrUndef(t)&&(t=1),e.transition(t),e.width<=0||e.height<=0||!1!==Ee.notify(e,"beforeDraw",[t])&&(ut.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.drawDatasets(t),e._drawTooltip(t),Ee.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){if(!1!==Ee.notify(this,"beforeDatasetsDraw",[t])){for(var e=(this.data.datasets||[]).length-1;0<=e;--e)this.isDatasetVisible(e)&&this.drawDataset(e,t);Ee.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),i={meta:n,index:t,easingValue:e};!1!==Ee.notify(this,"beforeDatasetDraw",[i])&&(n.controller.draw(e),Ee.notify(this,"afterDatasetDraw",[i]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==Ee.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),Ee.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return ge.modes.single(this,t)},getElementsAtEvent:function(t){return ge.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return ge.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=ge.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return ge.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n=n||(e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null})},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],i=n._meta&&n._meta[e];i&&(i.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),ut.canvas.clear(n),Le.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Ee.notify(n,"destroy"),delete Ke.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){this.tooltip=new Ge({_chart:this,_chartInstance:this,_data:this.data,_options:this.options.tooltips},this)},bindEvents:function(){var e=this,n=e._listeners={},i=function(){e.eventHandler.apply(e,arguments)};ut.each(e.options.events,function(t){Le.addEventListener(e,t,i),n[t]=i}),e.options.responsive&&(i=function(){e.resize()},Le.addEventListener(e,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,t=n._listeners;t&&(delete n._listeners,ut.each(t,function(t,e){Le.removeEventListener(n,e,t)}))},updateHoverStyle:function(t,e,n){var i,a,r,s=n?"setHoverStyle":"removeHoverStyle";for(a=0,r=t.length;a<r;++a)(i=t[a])&&this.getDatasetMeta(i._datasetIndex).controller[s](i)},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==Ee.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),Ee.notify(e,"afterEvent",[t]);var a=e._bufferedRequest;return a?e.render(a):i&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},a=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,a.mode,a),ut.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),e=!ut.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),Ke.instances={};var tn=Ke;function en(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function nn(t){this.options=t||{}}(Ke.Controller=Ke).types={},ut.configMerge=Je,ut.scaleMerge=Xe,ut.extend(nn.prototype,{formats:en,parse:en,format:en,add:en,diff:en,startOf:en,endOf:en,_create:function(t){return t}}),nn.override=function(t){ut.extend(nn.prototype,t)};var an={_date:nn},rn={formatters:{values:function(t){return ut.isArray(t)?t:""+t},linear:function(t,e,n){var i=3<n.length?n[2]-n[1]:n[1]-n[0];1<Math.abs(i)&&t!==Math.floor(t)&&(i=t-Math.floor(t));var a=ut.log10(Math.abs(i)),r="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=ut.log10(Math.abs(t));r=t.toExponential(Math.floor(s)-Math.floor(a))}else{var o=-1*Math.floor(a);o=Math.max(Math.min(o,20),0),r=t.toFixed(o)}else r="0";return r},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(ut.log10(t)));return 0===t?"0":1==i||2==i||5==i||0===e||e===n.length-1?t.toExponential():""}}},sn=ut.valueOrDefault,on=ut.valueAtIndexOrDefault;function ln(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(t[e].label);return i}function un(t,e,n){return ut.isArray(e)?ut.longestText(t,n,e):t.measureText(e).width}st._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:rn.formatters.values,minor:{},major:{}}});var dn=pt.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;for(var e in!1===t.minor&&(t.minor={display:!1}),!1===t.major&&(t.major={display:!1}),t)"major"!==e&&"minor"!==e&&(void 0===t.minor[e]&&(t.minor[e]=t[e]),void 0===t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){ut.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,r,s,o,l,u=this;for(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=ut.extend({left:0,right:0,top:0,bottom:0},n),u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),o=u.buildTicks()||[],o=u.afterBuildTicks(o)||o,u.beforeTickToLabelConversion(),r=u.convertTicksToLabels(o)||u.ticks,u.afterTickToLabelConversion(),i=0,a=(u.ticks=r).length;i<a;++i)s=r[i],(l=o[i])?l.label=s:o.push(l={label:s,major:!1});return u._ticks=o,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){ut.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ut.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){ut.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ut.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ut.noop,afterDataLimits:function(){ut.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ut.callback(this.options.beforeBuildTicks,[this])},buildTicks:ut.noop,afterBuildTicks:function(t){return ut.isArray(t)&&t.length?ut.callback(this.options.afterBuildTicks,[this,t]):(this.ticks=ut.callback(this.options.afterBuildTicks,[this,this.ticks])||this.ticks,t)},beforeTickToLabelConversion:function(){ut.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){ut.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ut.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,n=t.options.ticks,i=ln(t._ticks),a=ut.options._parseFont(n);e.font=a.string;var r=n.minRotation||0;if(i.length&&t.options.display&&t.isHorizontal())for(var s,o=ut.longestText(e,a.string,i,t.longestTextCache),l=o,u=t.getPixelForTick(1)-t.getPixelForTick(0)-6;u<l&&r<n.maxRotation;){var d=ut.toRadians(r);if(s=Math.cos(d),Math.sin(d)*o>t.maxHeight){r--;break}r++,l=s*o}t.labelRotation=r},afterCalculateTickRotation:function(){ut.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ut.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=ln(t._ticks),i=t.options,a=i.ticks,r=i.scaleLabel,s=i.gridLines,o=t._isVisible(),l=i.position,u=t.isHorizontal(),d=ut.options._parseFont,c=d(a),h=i.gridLines.tickMarkLength;if(e.width=u?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:o&&s.drawTicks?h:0,e.height=u?o&&s.drawTicks?h:0:t.maxHeight,r.display&&o){var f=d(r),p=ut.options.toPadding(r.padding),g=f.lineHeight+p.height;u?e.height+=g:e.width+=g}if(a.display&&o){var m=ut.longestText(t.ctx,c.string,n,t.longestTextCache),v=ut.numberOfLabelLines(n),y=.5*c.size,b=t.options.ticks.padding;if(t._maxLabelLines=v,t.longestLabelWidth=m,u){var _=ut.toRadians(t.labelRotation),w=Math.cos(_),x=Math.sin(_)*m+c.lineHeight*v+y;e.height=Math.min(t.maxHeight,e.height+x+b),t.ctx.font=c.string;var S,k,T=un(t.ctx,n[0],c.string),D=un(t.ctx,n[n.length-1],c.string),C=t.getPixelForTick(0)-t.left,M=t.right-t.getPixelForTick(n.length-1);k=0!==t.labelRotation?(S="bottom"===l?w*T:w*y,"bottom"===l?w*y:w*D):(S=T/2,D/2),t.paddingLeft=Math.max(S-C,0)+3,t.paddingRight=Math.max(k-M,0)+3}else a.mirror?m=0:m+=b+y,e.width=Math.min(t.maxWidth,e.width+m),t.paddingTop=c.size/2,t.paddingBottom=c.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){ut.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(ut.isNullOrUndef(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:ut.noop,getPixelForValue:ut.noop,getValueForPixel:ut.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=i*t+e.paddingLeft;return n&&(a+=i/2),e.left+a+(e.isFullWidth()?e.margins.left:0)}var r=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(r/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+n+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,n,i=this.isHorizontal(),a=this.options.ticks.minor,r=t.length,s=!1,o=a.maxTicksLimit,l=this._tickSize()*(r-1),u=i?this.width-(this.paddingLeft+this.paddingRight):this.height-(this.paddingTop+this.PaddingBottom),d=[];for(u<l&&(s=1+Math.floor(l/u)),o<r&&(s=Math.max(s,1+Math.floor(r/o))),e=0;e<r;e++)n=t[e],1<s&&0<e%s&&delete n.label,d.push(n);return d},_tickSize:function(){var t=this.isHorizontal(),e=this.options.ticks.minor,n=ut.toRadians(this.labelRotation),i=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),r=e.autoSkipPadding||0,s=this.longestLabelWidth+r||0,o=ut.options._parseFont(e),l=this._maxLabelLines*o.lineHeight+r||0;return t?s*a<l*i?s/i:l/a:l*a<s*i?l/i:s/a},_isVisible:function(){var t,e,n,i=this.chart,a=this.options.display;if("auto"!==a)return!!a;for(t=0,e=i.data.datasets.length;t<e;++t)if(i.isDatasetVisible(t)&&((n=i.getDatasetMeta(t)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},draw:function(C){var M=this,I=M.options;if(M._isVisible()){var t,A,F,P=M.chart,s=M.ctx,e=st.global.defaultFontColor,o=I.ticks.minor,n=I.ticks.major||o,R=I.gridLines,i=I.scaleLabel,O=I.position,N=0!==M.labelRotation,L=o.mirror,E=M.isHorizontal(),a=ut.options._parseFont,r=o.display&&o.autoSkip?M._autoSkip(M.getTicks()):M.getTicks(),l=sn(o.fontColor,e),u=a(o),H=u.lineHeight,d=sn(n.fontColor,e),c=a(n),j=o.padding,W=o.labelOffset,B=R.drawTicks?R.tickMarkLength:0,h=sn(i.fontColor,e),f=a(i),p=ut.options.toPadding(i.padding),Y=ut.toRadians(M.labelRotation),q=[],V=R.drawBorder?on(R.lineWidth,0,0):0,$=ut._alignPixel;if(F="top"===O?(t=$(P,M.bottom,V),A=M.bottom-B,t-V/2):"bottom"===O?(t=$(P,M.top,V),A=t+V/2,M.top+B):"left"===O?(t=$(P,M.right,V),A=M.right-B,t-V/2):(t=$(P,M.left,V),A=t+V/2,M.left+B),ut.each(r,function(t,e){if(!ut.isNullOrUndef(t.label)){var n,i,a,r,s,o,l,u,d,c,h,f,p,g,m,v,y=t.label;r=e===M.zeroLineIndex&&I.offset===R.offsetGridLines?(n=R.zeroLineWidth,i=R.zeroLineColor,a=R.zeroLineBorderDash||[],R.zeroLineBorderDashOffset||0):(n=on(R.lineWidth,e),i=on(R.color,e),a=R.borderDash||[],R.borderDashOffset||0);var b=ut.isArray(y)?y.length:1,_=(S=M,k=e,T=R.offsetGridLines,D=S.getPixelForTick(k),T&&(1===S.getTicks().length?D-=S.isHorizontal()?Math.max(D-S.left,S.right-D):Math.max(D-S.top,S.bottom-D):D-=0===k?(S.getPixelForTick(1)-D)/2:(D-S.getPixelForTick(k-1))/2),D);if(E){var w=B+j;_<M.left-1e-7&&(i="rgba(0,0,0,0)"),s=l=d=h=$(P,_,n),o=A,u=F,p=M.getPixelForTick(e)+W,g="top"===O?(c=$(P,C.top,V)+V/2,f=C.bottom,m=((N?1:.5)-b)*H,v=N?"left":"center",M.bottom-w):(c=C.top,f=$(P,C.bottom,V)-V/2,m=(N?0:.5)*H,v=N?"right":"center",M.top+w)}else{var x=(L?0:B)+j;_<M.top-1e-7&&(i="rgba(0,0,0,0)"),s=A,l=F,o=u=c=f=$(P,_,n),g=M.getPixelForTick(e)+W,m=(1-b)*H/2,p="left"===O?(d=$(P,C.left,V)+V/2,h=C.right,v=L?"left":"right",M.right-x):(d=C.left,h=$(P,C.right,V)-V/2,v=L?"right":"left",M.left+x)}q.push({tx1:s,ty1:o,tx2:l,ty2:u,x1:d,y1:c,x2:h,y2:f,labelX:p,labelY:g,glWidth:n,glColor:i,glBorderDash:a,glBorderDashOffset:r,rotation:-1*Y,label:y,major:t.major,textOffset:m,textAlign:v})}var S,k,T,D}),ut.each(q,function(t){var e=t.glWidth,n=t.glColor;if(R.display&&e&&n&&(s.save(),s.lineWidth=e,s.strokeStyle=n,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),R.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),R.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),o.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=t.major?c.string:u.string,s.fillStyle=t.major?d:l,s.textBaseline="middle",s.textAlign=t.textAlign;var i=t.label,a=t.textOffset;if(ut.isArray(i))for(var r=0;r<i.length;++r)s.fillText(""+i[r],0,a),a+=H;else s.fillText(i,0,a);s.restore()}}),i.display){var g,m,v=0,y=f.lineHeight/2;if(E)g=M.left+(M.right-M.left)/2,m="bottom"===O?M.bottom-y-p.bottom:M.top+y+p.top;else{var b="left"===O;g=b?M.left+y+p.top:M.right-y-p.top,m=M.top+(M.bottom-M.top)/2,v=b?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(g,m),s.rotate(v),s.textAlign="center",s.textBaseline="middle",s.fillStyle=h,s.font=f.string,s.fillText(i.labelString,0,0),s.restore()}if(V){var _,w,x,S,k=V,T=on(R.lineWidth,r.length-1,0);E?(_=$(P,M.left,k)-k/2,w=$(P,M.right,T)+T/2,x=S=t):(x=$(P,M.top,k)-k/2,S=$(P,M.bottom,T)+T/2,_=w=t),s.lineWidth=V,s.strokeStyle=on(R.color,0),s.beginPath(),s.moveTo(_,x),s.lineTo(w,S),s.stroke()}}}}),cn=dn.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,n=e.getLabels();e.minIndex=0,e.maxIndex=n.length-1,void 0!==e.options.ticks.min&&(t=n.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=n.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=n[e.minIndex],e.max=n[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var n=this.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);if(null!=t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){t=n||t;var s=i.getLabels().indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var o=i.width/r,l=o*(e-i.minIndex);return a&&(l+=o/2),i.left+l}var u=i.height/r,d=u*(e-i.minIndex);return a&&(d+=u/2),i.top+d},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,n=Math.max(this._ticks.length-(e?0:1),1),i=this.isHorizontal(),a=(i?this.width:this.height)/n;return t-=i?this.left:this.top,e&&(t-=a/2),(t<=0?0:Math.round(t/a))+this.minIndex},getBasePixel:function(){return this.bottom}});cn._defaults={position:"bottom"};var hn=ut.noop,fn=ut.isNullOrUndef,pn=dn.extend({getRightValue:function(t){return"string"==typeof t?+t:dn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=ut.sign(t.min),i=ut.sign(t.max);n<0&&i<0?t.max=0:0<n&&0<i&&(t.min=0)}var a=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),a!=r&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,i=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:hn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),v={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:ut.valueOrDefault(e.fixedStepSize,e.stepSize)},i=t.ticks=function(t,e){var n,i,a,r,s=[],o=v.stepSize,l=o||1,u=v.maxTicks-1,d=v.min,c=v.max,h=v.precision,f=e.min,p=e.max,g=ut.niceNum((p-f)/u/l)*l;if(g<1e-14&&fn(d)&&fn(c))return[f,p];(r=Math.ceil(p/g)-Math.floor(f/g))>u&&(g=ut.niceNum(r*g/u/l)*l),o||fn(h)?n=Math.pow(10,ut._decimalPlaces(g)):(n=Math.pow(10,h),g=Math.ceil(g*n)/n),i=Math.floor(f/g)*g,a=Math.ceil(p/g)*g,o&&(!fn(d)&&ut.almostWhole(d/g,g/1e3)&&(i=d),!fn(c)&&ut.almostWhole(c/g,g/1e3)&&(a=c)),r=(a-i)/g,r=ut.almostEquals(r,Math.round(r),g/1e3)?Math.round(r):Math.ceil(r),i=Math.round(i*n)/n,a=Math.round(a*n)/n,s.push(fn(d)?i:d);for(var m=1;m<r;++m)s.push(Math.round((i+m*g)*n)/n);return s.push(fn(c)?a:c),s}(0,t);t.handleDirectionalChanges(),t.max=ut.max(i),t.min=ut.min(i),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),dn.prototype.convertTicksToLabels.call(this)}}),gn={position:"left",ticks:{callback:rn.formatters.linear}},mn=pn.extend({determineDataLimits:function(){var s=this,o=s.options,l=s.chart,t=l.data.datasets,e=s.isHorizontal();function u(t){return e?t.xAxisID===s.id:t.yAxisID===s.id}s.min=null,s.max=null;var i=o.stacked;if(void 0===i&&ut.each(t,function(t,e){if(!i){var n=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(n)&&void 0!==n.stack&&(i=!0)}}),o.stacked||i){var d={};ut.each(t,function(t,e){var i=l.getDatasetMeta(e),n=[i.type,void 0===o.stacked&&void 0===i.stack?e:"",i.stack].join(".");void 0===d[n]&&(d[n]={positiveValues:[],negativeValues:[]});var a=d[n].positiveValues,r=d[n].negativeValues;l.isDatasetVisible(e)&&u(i)&&ut.each(t.data,function(t,e){var n=+s.getRightValue(t);isNaN(n)||i.data[e].hidden||(a[e]=a[e]||0,r[e]=r[e]||0,o.relativePoints?a[e]=100:n<0?r[e]+=n:a[e]+=n)})}),ut.each(d,function(t){var e=t.positiveValues.concat(t.negativeValues),n=ut.min(e),i=ut.max(e);s.min=null===s.min?n:Math.min(s.min,n),s.max=null===s.max?i:Math.max(s.max,i)})}else ut.each(t,function(t,e){var i=l.getDatasetMeta(e);l.isDatasetVisible(e)&&u(i)&&ut.each(t.data,function(t,e){var n=+s.getRightValue(t);isNaN(n)||i.data[e].hidden||(null===s.min?s.min=n:n<s.min&&(s.min=n),null===s.max?s.max=n:n>s.max&&(s.max=n))})});s.min=isFinite(s.min)&&!isNaN(s.min)?s.min:0,s.max=isFinite(s.max)&&!isNaN(s.max)?s.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=ut.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this.start,n=+this.getRightValue(t),i=this.end-e;return this.isHorizontal()?this.left+this.width/i*(n-e):this.bottom-this.height/i*(n-e)},getValueForPixel:function(t){var e=this.isHorizontal(),n=e?this.width:this.height,i=(e?t-this.left:this.bottom-t)/n;return this.start+(this.end-this.start)*i},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}}),vn=gn;mn._defaults=vn;var yn=ut.valueOrDefault,bn={position:"left",ticks:{callback:rn.formatters.logarithmic}};function _n(t,e){return ut.isFinite(t)&&0<=t?t:e}var wn=dn.extend({determineDataLimits:function(){var s=this,n=s.options,o=s.chart,t=o.data.datasets,e=s.isHorizontal();function l(t){return e?t.xAxisID===s.id:t.yAxisID===s.id}s.min=null,s.max=null,s.minNotZero=null;var i=n.stacked;if(void 0===i&&ut.each(t,function(t,e){if(!i){var n=o.getDatasetMeta(e);o.isDatasetVisible(e)&&l(n)&&void 0!==n.stack&&(i=!0)}}),n.stacked||i){var u={};ut.each(t,function(t,e){var a=o.getDatasetMeta(e),r=[a.type,void 0===n.stacked&&void 0===a.stack?e:"",a.stack].join(".");o.isDatasetVisible(e)&&l(a)&&(void 0===u[r]&&(u[r]=[]),ut.each(t.data,function(t,e){var n=u[r],i=+s.getRightValue(t);isNaN(i)||a.data[e].hidden||i<0||(n[e]=n[e]||0,n[e]+=i)}))}),ut.each(u,function(t){if(0<t.length){var e=ut.min(t),n=ut.max(t);s.min=null===s.min?e:Math.min(s.min,e),s.max=null===s.max?n:Math.max(s.max,n)}})}else ut.each(t,function(t,e){var i=o.getDatasetMeta(e);o.isDatasetVisible(e)&&l(i)&&ut.each(t.data,function(t,e){var n=+s.getRightValue(t);isNaN(n)||i.data[e].hidden||n<0||(null===s.min?s.min=n:n<s.min&&(s.min=n),null===s.max?s.max=n:n>s.max&&(s.max=n),0!=n&&(null===s.minNotZero||n<s.minNotZero)&&(s.minNotZero=n))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=_n(e.min,t.min),t.max=_n(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(ut.log10(t.min))-1),t.max=Math.pow(10,Math.floor(ut.log10(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(ut.log10(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(ut.log10(t.min))+1):10),null===t.minNotZero&&(0<t.min?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(ut.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:_n(e.min),max:_n(e.max)},a=t.ticks=function(t,e){var n,i,a=[],r=yn(t.min,Math.pow(10,Math.floor(ut.log10(e.min)))),s=Math.floor(ut.log10(e.max)),o=Math.ceil(e.max/Math.pow(10,s));0===r?(n=Math.floor(ut.log10(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(ut.log10(r)),i=Math.floor(r/Math.pow(10,n)));for(var l=n<0?Math.pow(10,Math.abs(n)):1;a.push(r),10==++i&&(i=1,l=0<=++n?1:l),r=Math.round(i*Math.pow(10,n)*l)/l,n<s||n===s&&i<o;);var u=yn(t.max,r);return a.push(u),a}(i,t);t.max=ut.max(a),t.min=ut.min(a),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),dn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},_getFirstTickValue:function(t){var e=Math.floor(ut.log10(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},getPixelForValue:function(t){var e,n,i,a,r,s=this,o=s.options.ticks,l=o.reverse,u=ut.log10,d=s._getFirstTickValue(s.minNotZero),c=0;return t=+s.getRightValue(t),r=l?(i=s.end,a=s.start,-1):(i=s.start,a=s.end,1),n=s.isHorizontal()?(e=s.width,l?s.right:s.left):(e=s.height,r*=-1,l?s.top:s.bottom),t!==i&&(0===i&&(e-=c=yn(o.fontSize,st.global.defaultFontSize),i=d),0!==t&&(c+=e/(u(a)-u(i))*(u(t)-u(i))),n+=r*c),n},getValueForPixel:function(t){var e,n,i,a,r=this,s=r.options.ticks,o=s.reverse,l=ut.log10,u=r._getFirstTickValue(r.minNotZero);if(i=o?(n=r.end,r.start):(n=r.start,r.end),(a=r.isHorizontal()?(e=r.width,o?r.right-t:t-r.left):(e=r.height,o?t-r.top:r.bottom-t))!==n){if(0===n){var d=yn(s.fontSize,st.global.defaultFontSize);a-=d,e-=d,n=u}a*=l(i)-l(n),a/=e,a=Math.pow(10,l(n)+a)}return a}}),xn=bn;wn._defaults=xn;var Sn=ut.valueOrDefault,kn=ut.valueAtIndexOrDefault,Tn=ut.options.resolve,Dn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:rn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Cn(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function Mn(t){var e=t.ticks;return e.display&&t.display?Sn(e.fontSize,st.global.defaultFontSize)+2*e.backdropPaddingY:0}function In(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||a<t?{start:e-n,end:e}:{start:e,end:e+n}}function An(t,e,n,i){var a,r,s=n.y+i/2;if(ut.isArray(e))for(a=0,r=e.length;a<r;++a)t.fillText(e[a],n.x,s),s+=i;else t.fillText(e,n.x,s)}function Fn(t){return ut.isNumber(t)?t:0}var Pn=pn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Mn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var a=this,n=a.chart,r=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;ut.each(n.data.datasets,function(t,e){if(n.isDatasetVisible(e)){var i=n.getDatasetMeta(e);ut.each(t.data,function(t,e){var n=+a.getRightValue(t);isNaN(n)||i.data[e].hidden||(r=Math.min(n,r),s=Math.max(n,s))})}}),a.min=r===Number.POSITIVE_INFINITY?0:r,a.max=s===Number.NEGATIVE_INFINITY?0:s,a.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Mn(this.options))},convertTicksToLabels:function(){pn.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,i,a=ut.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},s={};t.ctx.font=a.string,t._pointLabelSizes=[];var o,l,u,d=Cn(t);for(e=0;e<d;e++){i=t.getPointPosition(e,t.drawingArea+5),o=t.ctx,l=a.lineHeight,u=t.pointLabels[e]||"",n=ut.isArray(u)?{w:ut.longestText(o,o.font,u),h:u.length*l}:{w:o.measureText(u).width,h:l},t._pointLabelSizes[e]=n;var c=t.getIndexAngle(e),h=ut.toDegrees(c)%360,f=In(h,i.x,n.w,0,180),p=In(h,i.y,n.h,90,270);f.start<r.l&&(r.l=f.start,s.l=c),f.end>r.r&&(r.r=f.end,s.r=c),p.start<r.t&&(r.t=p.start,s.t=c),p.end>r.b&&(r.b=p.end,s.b=c)}t.setReductions(t.drawingArea,r,s)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=e.l/Math.sin(n.l),a=Math.max(e.r-this.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-(this.height-this.paddingTop),0)/Math.cos(n.b);i=Fn(i),a=Fn(a),r=Fn(r),s=Fn(s),this.drawingArea=Math.min(Math.floor(t-(i+a)/2),Math.floor(t-(r+s)/2)),this.setCenterPoint(i,a,r,s)},setCenterPoint:function(t,e,n,i){var a=this,r=a.width-e-a.drawingArea,s=t+a.drawingArea,o=n+a.drawingArea,l=a.height-a.paddingTop-i-a.drawingArea;a.xCenter=Math.floor((s+r)/2+a.left),a.yCenter=Math.floor((o+l)/2+a.top+a.paddingTop)},getIndexAngle:function(t){return t*(2*Math.PI/Cn(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var r=this,t=r.options,s=t.gridLines,o=t.ticks;if(t.display){var l=r.ctx,u=this.getIndexAngle(0),d=ut.options._parseFont(o);(t.angleLines.display||t.pointLabels.display)&&function(t){var e=t.ctx,n=t.options,i=n.angleLines,a=n.gridLines,r=n.pointLabels,s=Sn(i.lineWidth,a.lineWidth),o=Sn(i.color,a.color),l=Mn(n);e.save(),e.lineWidth=s,e.strokeStyle=o,e.setLineDash&&(e.setLineDash(Tn([i.borderDash,a.borderDash,[]])),e.lineDashOffset=Tn([i.borderDashOffset,a.borderDashOffset,0]));var u,d,c,h,f=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),p=ut.options._parseFont(r);e.font=p.string,e.textBaseline="middle";for(var g=Cn(t)-1;0<=g;g--){if(i.display&&s&&o){var m=t.getPointPosition(g,f);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(m.x,m.y),e.stroke()}if(r.display){var v=0===g?l/2:0,y=t.getPointPosition(g,f+v+5),b=kn(r.fontColor,g,st.global.defaultFontColor);e.fillStyle=b;var _=t.getIndexAngle(g),w=ut.toDegrees(_);e.textAlign=0===(h=w)||180===h?"center":h<180?"left":"right",u=w,d=t._pointLabelSizes[g],c=y,90===u||270===u?c.y-=d.h/2:(270<u||u<90)&&(c.y-=d.h),An(e,t.pointLabels[g]||"",y,p.lineHeight)}}e.restore()}(r),ut.each(r.ticks,function(t,e){if(0<e||o.reverse){var n=r.getDistanceFromCenterForValue(r.ticksAsNumbers[e]);if(s.display&&0!==e&&function(t,e,n,i){var a,r=t.ctx,s=e.circular,o=Cn(t),l=kn(e.color,i-1),u=kn(e.lineWidth,i-1);if((s||o)&&l&&u){if(r.save(),r.strokeStyle=l,r.lineWidth=u,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),s)r.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{a=t.getPointPosition(0,n),r.moveTo(a.x,a.y);for(var d=1;d<o;d++)a=t.getPointPosition(d,n),r.lineTo(a.x,a.y)}r.closePath(),r.stroke(),r.restore()}}(r,s,n,e),o.display){var i=Sn(o.fontColor,st.global.defaultFontColor);if(l.font=d.string,l.save(),l.translate(r.xCenter,r.yCenter),l.rotate(u),o.showLabelBackdrop){var a=l.measureText(t).width;l.fillStyle=o.backdropColor,l.fillRect(-a/2-o.backdropPaddingX,-n-d.size/2-o.backdropPaddingY,a+2*o.backdropPaddingX,d.size+2*o.backdropPaddingY)}l.textAlign="center",l.textBaseline="middle",l.fillStyle=i,l.fillText(t,0,-n),l.restore()}}})}}}),Rn=Dn;Pn._defaults=Rn;var On=ut.valueOrDefault,Nn=Number.MIN_SAFE_INTEGER||-9007199254740991,Ln=Number.MAX_SAFE_INTEGER||9007199254740991,En={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},Hn=Object.keys(En);function jn(t,e){return t-e}function Wn(t){var e,n,i,a={},r=[];for(e=0,n=t.length;e<n;++e)a[i=t[e]]||(a[i]=!0,r.push(i));return r}function Bn(t,e,n,i){var a=function(t,e,n){for(var i,a,r,s=0,o=t.length-1;0<=s&&s<=o;){if(a=t[(i=s+o>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]<n)s=1+i;else{if(!(a[e]>n))return{lo:a,hi:r};o=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],s=a.lo?a.hi?a.hi:t[t.length-1]:t[1],o=s[e]-r[e],l=o?(n-r[e])/o:0,u=(s[i]-r[i])*l;return r[i]+u}function Yn(t,e){var n=t._adapter,i=t.options.time,a=i.parser,r=a||i.format,s=e;return"function"==typeof a&&(s=a(s)),ut.isFinite(s)||(s="string"==typeof r?n.parse(s,r):n.parse(s)),null!==s?+s:(a||"function"!=typeof r||(s=r(e),ut.isFinite(s)||(s=n.parse(s))),s)}function qn(t,e){if(ut.isNullOrUndef(e))return null;var n=t.options.time,i=Yn(t,t.getRightValue(e));return null===i||n.round&&(i=+t._adapter.startOf(i,n.round)),i}function Vn(t){for(var e=Hn.indexOf(t)+1,n=Hn.length;e<n;++e)if(En[Hn[e]].common)return Hn[e]}var $n=dn.extend({initialize:function(){this.mergeTicksOptions(),dn.prototype.initialize.call(this)},update:function(){var t=this.options,e=t.time||(t.time={}),n=this._adapter=new an._date(t.adapters.date);return e.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),ut.mergeIf(e.displayFormats,n.formats()),dn.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),dn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,i,a,r,s=this,o=s.chart,l=s._adapter,u=s.options.time,d=u.unit||"day",c=Ln,h=Nn,f=[],p=[],g=[],m=o.data.labels||[];for(t=0,n=m.length;t<n;++t)g.push(qn(s,m[t]));for(t=0,n=(o.data.datasets||[]).length;t<n;++t)if(o.isDatasetVisible(t))if(a=o.data.datasets[t].data,ut.isObject(a[0]))for(p[t]=[],e=0,i=a.length;e<i;++e)r=qn(s,a[e]),f.push(r),p[t][e]=r;else{for(e=0,i=g.length;e<i;++e)f.push(g[e]);p[t]=g.slice(0)}else p[t]=[];g.length&&(g=Wn(g).sort(jn),c=Math.min(c,g[0]),h=Math.max(h,g[g.length-1])),f.length&&(f=Wn(f).sort(jn),c=Math.min(c,f[0]),h=Math.max(h,f[f.length-1])),c=qn(s,u.min)||c,h=qn(s,u.max)||h,c=c===Ln?+l.startOf(Date.now(),d):c,h=h===Nn?+l.endOf(Date.now(),d)+1:h,s.min=Math.min(c,h),s.max=Math.max(c+1,h),s._horizontal=s.isHorizontal(),s._table=[],s._timestamps={data:f,datasets:p,labels:g}},buildTicks:function(){var t,e,n,i,a,r,s,o,l,u,d=this,c=d.min,h=d.max,f=d.options,p=f.time,g=[],m=[];switch(f.ticks.source){case"data":g=d._timestamps.data;break;case"labels":g=d._timestamps.labels;break;case"auto":default:g=function(t,c,h,e){var n,i=t._adapter,a=t.options,r=a.time,f=r.unit||function(t,e,n,i){var a,r,s,o=Hn.length;for(a=Hn.indexOf(t);a<o-1;++a)if(s=(r=En[Hn[a]]).steps?r.steps[r.steps.length-1]:Ln,r.common&&Math.ceil((n-e)/(s*r.size))<=i)return Hn[a];return Hn[o-1]}(r.minUnit,c,h,e),s=Vn(f),o=On(r.stepSize,r.unitStepSize),l="week"===f&&r.isoWeekday,u=a.ticks.major.enabled,d=En[f],p=c,g=h,m=[];for(o=o||function(t,e,n,i){var a,r,s,o=h-c,l=En[f],u=l.size,d=l.steps;if(!d)return Math.ceil(o/(i*u));for(a=0,r=d.length;a<r&&(s=d[a],!(Math.ceil(o/(u*s))<=i));++a);return s}(0,0,0,e),l&&(p=+i.startOf(p,"isoWeek",l),g=+i.startOf(g,"isoWeek",l)),p=+i.startOf(p,l?"day":f),(g=+i.startOf(g,l?"day":f))<h&&(g=+i.add(g,1,f)),n=p,u&&s&&!l&&!r.round&&(n=+i.startOf(n,s),n=+i.add(n,~~((p-n)/(d.size*o))*o,f));n<g;n=+i.add(n,o,f))m.push(+n);return m.push(+n),m}(d,c,h,d.getLabelCapacity(c))}for("ticks"===f.bounds&&g.length&&(c=g[0],h=g[g.length-1]),c=qn(d,p.min)||c,h=qn(d,p.max)||h,t=0,e=g.length;t<e;++t)(n=g[t])>=c&&n<=h&&m.push(n);return d.min=c,d.max=h,d._unit=p.unit||function(t,e,n,i,a){var r,s;for(r=Hn.length-1;r>=Hn.indexOf(n);r--)if(s=Hn[r],En[s].common&&t._adapter.diff(a,i,s)>=e.length)return s;return Hn[n?Hn.indexOf(n):0]}(d,m,p.minUnit,d.min,d.max),d._majorUnit=Vn(d._unit),d._table=function(t,e,n){if("linear"===f.distribution||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var i,a,r,s,o,l=[],u=[e];for(i=0,a=t.length;i<a;++i)(s=t[i])>e&&s<n&&u.push(s);for(u.push(n),i=0,a=u.length;i<a;++i)o=u[i+1],r=u[i-1],s=u[i],void 0!==r&&void 0!==o&&Math.round((o+r)/2)===s||l.push({time:s,pos:i/(a-1)});return l}(d._timestamps.data,c,h),d._offsets=(i=d._table,a=m,u=l=0,(r=f).offset&&a.length&&(r.time.min||(s=Bn(i,"time",a[0],"pos"),l=1===a.length?1-s:(Bn(i,"time",a[1],"pos")-s)/2),r.time.max||(o=Bn(i,"time",a[a.length-1],"pos"),u=1===a.length?o:(o-Bn(i,"time",a[a.length-2],"pos"))/2)),{start:l,end:u}),f.ticks.reverse&&m.reverse(),function(t,e,n){var i,a,r,s,o=[];for(i=0,a=e.length;i<a;++i)r=e[i],s=!!n&&r===+t._adapter.startOf(r,n),o.push({value:r,major:s});return o}(d,m,d._majorUnit)},getLabelForIndex:function(t,e){var n=this._adapter,i=this.chart.data,a=this.options.time,r=i.labels&&t<i.labels.length?i.labels[t]:"",s=i.datasets[e].data[t];return ut.isObject(s)&&(r=this.getRightValue(s)),a.tooltipFormat?n.format(Yn(this,r),a.tooltipFormat):"string"==typeof r?r:n.format(Yn(this,r),a.displayFormats.datetime)},tickFormatFunction:function(t,e,n,i){var a=this._adapter,r=this.options,s=r.time.displayFormats,o=s[this._unit],l=this._majorUnit,u=s[l],d=+a.startOf(t,l),c=r.ticks.major,h=c.enabled&&l&&u&&t===d,f=a.format(t,i||(h?u:o)),p=h?c:r.ticks.minor,g=On(p.callback,p.userCallback);return g?g(f,e,n):f},convertTicksToLabels:function(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(this.tickFormatFunction(t[e].value,e,t));return i},getPixelForOffset:function(t){var e=this,n=e.options.ticks.reverse,i=e._horizontal?e.width:e.height,a=e._horizontal?n?e.right:e.left:n?e.bottom:e.top,r=Bn(e._table,"time",t,"pos"),s=i*(e._offsets.start+r)/(e._offsets.start+1+e._offsets.end);return n?a-s:a+s},getPixelForValue:function(t,e,n){var i=null;if(void 0!==e&&void 0!==n&&(i=this._timestamps.datasets[n][e]),null===i&&(i=qn(this,t)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._horizontal?e.width:e.height,i=e._horizontal?e.left:e.top,a=(n?(t-i)/n:0)*(e._offsets.start+1+e._offsets.start)-e._offsets.end,r=Bn(e._table,"pos",a,"time");return e._adapter._create(r)},getLabelWidth:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=ut.toRadians(e.maxRotation),a=Math.cos(i),r=Math.sin(i);return n*a+On(e.fontSize,st.global.defaultFontSize)*r},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,n=this.tickFormatFunction(t,0,[],e),i=this.getLabelWidth(n),a=this.isHorizontal()?this.width:this.height,r=Math.floor(a/i);return 0<r?r:1}});$n._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Un,Gn,Zn={category:cn,linear:mn,logarithmic:wn,radialLinear:Pn,time:$n},Xn=((Gn=Un={exports:{}}).exports=function(){var t,a;function y(){return t.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0===t}function d(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function b(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t,e){for(var n in e)b(e,n)&&(t[n]=e[n]);return b(e,"toString")&&(t.toString=e.toString),b(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Te(t,e,n,i,!0).utc()}function _(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=_(t),n=a.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=p(NaN);return null!=t?f(_(e),t):_(e).userInvalidated=!0,e}a=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var r=y.momentProperties=[];function v(t,e){var n,i,a;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=_(e)),u(e._locale)||(t._locale=e._locale),0<r.length)for(n=0;n<r.length;n++)u(a=e[i=r[n]])||(t[i]=a);return t}var e=!1;function w(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,y.updateOffset(this),e=!1)}function x(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=S(e)),n}function s(t,e,n){var i,a=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<a;i++)(n&&t[i]!==e[i]||!n&&k(t[i])!==k(e[i]))&&s++;return s+r}function T(t){!1===y.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(a,r){var s=!0;return f(function(){if(null!=y.deprecationHandler&&y.deprecationHandler(null,a),s){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}T(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),s=!1}return r.apply(this,arguments)},r)}var i,D={};function C(t,e){null!=y.deprecationHandler&&y.deprecationHandler(t,e),D[t]||(T(e),D[t]=!0)}function M(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function I(t,e){var n,i=f({},t);for(n in e)b(e,n)&&(l(t[n])&&l(e[n])?(i[n]={},f(i[n],t[n]),f(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)b(t,n)&&!b(e,n)&&l(t[n])&&(i[n]=f({},i[n]));return i}function A(t){null!=t&&this.set(t)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null,i=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)b(t,e)&&n.push(e);return n};var F={};function P(t,e){var n=t.toLowerCase();F[n]=F[n+"s"]=F[e]=t}function R(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function O(t){var e,n,i={};for(n in t)b(t,n)&&(e=R(n))&&(i[e]=t[n]);return i}var N={};function L(t,e){N[t]=e}function E(t,e,n){var i=""+Math.abs(t),a=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},B={};function Y(t,e,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),t&&(B[t]=a),e&&(B[e[0]]=function(){return E(a.apply(this,arguments),e[1],e[2])}),n&&(B[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function q(t,e){return t.isValid()?(e=V(e,t.localeData()),W[e]=W[e]||function(i){var t,a,e,r=i.match(H);for(t=0,a=r.length;t<a;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(t){var e,n="";for(e=0;e<a;e++)n+=M(r[e])?r[e].call(t,i):r[e];return n}}(e),W[e](t)):t.localeData().invalidDate()}function V(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;0<=n&&j.test(t);)t=t.replace(j,i),j.lastIndex=0,n-=1;return t}var $=/\d/,z=/\d\d/,U=/\d{3}/,G=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,J=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,K=/\d{1,3}/,tt=/\d{1,4}/,et=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,st=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ot={};function lt(t,n,i){ot[t]=M(n)?n:function(t,e){return t&&i?i:n}}function ut(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function ct(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),d(n)&&(i=function(t,e){e[n]=k(t)}),e=0;e<t.length;e++)dt[t[e]]=i}function ht(t,a){ct(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var ft=0,pt=1,gt=2,mt=3,vt=4,yt=5,bt=6,_t=7,wt=8;function xt(t){return St(t)?366:365}function St(t){return t%4==0&&t%100!=0||t%400==0}Y("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),P("year","y"),L("year",1),lt("Y",it),lt("YY",X,z),lt("YYYY",tt,G),lt("YYYYY",et,Z),lt("YYYYYY",et,Z),ct(["YYYYY","YYYYYY"],ft),ct("YYYY",function(t,e){e[ft]=2===t.length?y.parseTwoDigitYear(t):k(t)}),ct("YY",function(t,e){e[ft]=y.parseTwoDigitYear(t)}),ct("Y",function(t,e){e[ft]=parseInt(t,10)}),y.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var kt,Tt=Dt("FullYear",!0);function Dt(e,n){return function(t){return null!=t?(Mt(this,e,t),y.updateOffset(this,n),this):Ct(this,e)}}function Ct(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Mt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&St(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),It(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function It(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1==n?St(t)?29:28:31-n%7%2}kt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Y("MMMM",0,0,function(t){return this.localeData().months(this,t)}),P("month","M"),L("month",8),lt("M",X),lt("MM",X,z),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),ct(["M","MM"],function(t,e){e[pt]=k(t)-1}),ct(["MMM","MMMM"],function(t,e,n,i){var a=n._locale.monthsParse(t,i,n._strict);null!=a?e[pt]=a:_(n).invalidMonth=t});var At=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!d(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),It(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ot(t){return null!=t?(Rt(this,t),y.updateOffset(this,!0),this):Ct(this,"Month")}var Nt=st,Lt=st;function Et(){function t(t,e){return e.length-t.length}var e,n,i=[],a=[],r=[];for(e=0;e<12;e++)n=p([2e3,e]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),a.sort(t),r.sort(t),e=0;e<12;e++)i[e]=ut(i[e]),a[e]=ut(a[e]);for(e=0;e<24;e++)r[e]=ut(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ht(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function jt(t,e,n){var i=7+e-n;return i-(7+Ht(t,0,i).getUTCDay()-e)%7-1}function Wt(t,e,n,i,a){var r,s,o=1+7*(e-1)+(7+n-i)%7+jt(t,i,a);return s=o<=0?xt(r=t-1)+o:o>xt(t)?(r=t+1,o-xt(t)):(r=t,o),{year:r,dayOfYear:s}}function Bt(t,e,n){var i,a,r=jt(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?i=s+Yt(a=t.year()-1,e,n):s>Yt(t.year(),e,n)?(i=s-Yt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=s),{week:i,year:a}}function Yt(t,e,n){var i=jt(t,e,n),a=jt(t+1,e,n);return(xt(t)-i+a)/7}function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),L("week",5),L("isoWeek",5),lt("w",X),lt("ww",X,z),lt("W",X),lt("WW",X,z),ht(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)}),Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),lt("d",X),lt("e",X),lt("E",X),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ht(["dd","ddd","dddd"],function(t,e,n,i){var a=n._locale.weekdaysParse(t,i,n._strict);null!=a?e.d=a:_(n).invalidWeekday=t}),ht(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=st,Gt=st,Zt=st;function Xt(){function t(t,e){return e.length-t.length}var e,n,i,a,r,s=[],o=[],l=[],u=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),o.push(a),l.push(r),u.push(i),u.push(a),u.push(r);for(s.sort(t),o.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)o[e]=ut(o[e]),l[e]=ut(l[e]),u[e]=ut(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Qt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Kt(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Jt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Jt.apply(this)+E(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Jt.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),Qt("a",!0),Qt("A",!1),P("hour","h"),L("hour",13),lt("a",Kt),lt("A",Kt),lt("H",X),lt("h",X),lt("k",X),lt("HH",X,z),lt("hh",X,z),lt("kk",X,z),lt("hmm",J),lt("hmmss",Q),lt("Hmm",J),lt("Hmmss",Q),ct(["H","HH"],mt),ct(["k","kk"],function(t,e,n){var i=k(t);e[mt]=24===i?0:i}),ct(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ct(["h","hh"],function(t,e,n){e[mt]=k(t),_(n).bigHour=!0}),ct("hmm",function(t,e,n){var i=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i)),_(n).bigHour=!0}),ct("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i,2)),e[yt]=k(t.substr(a)),_(n).bigHour=!0}),ct("Hmm",function(t,e,n){var i=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i))}),ct("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i,2)),e[yt]=k(t.substr(a))});var te,ee=Dt("Hours",!0),ne={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ft,monthsShort:Pt,week:{dow:0,doy:6},weekdays:Vt,weekdaysMin:zt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},ie={},ae={};function re(t){return t?t.toLowerCase().replace("_","-"):t}function se(t){var e=null;if(!ie[t]&&Gn&&Gn.exports)try{e=te._abbr,zn(),oe(e)}catch(t){}return ie[t]}function oe(t,e){var n;return t&&((n=u(e)?ue(t):le(t,e))?te=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),te._abbr}function le(t,e){if(null===e)return delete ie[t],null;var n,i=ne;if(e.abbr=t,null!=ie[t])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ie[t]._config;else if(null!=e.parentLocale)if(null!=ie[e.parentLocale])i=ie[e.parentLocale]._config;else{if(null==(n=se(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ie[t]=new A(I(i,e)),ae[t]&&ae[t].forEach(function(t){le(t.name,t.config)}),oe(t),ie[t]}function ue(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return te;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,n,i,a,r=0;r<t.length;){for(e=(a=re(t[r]).split("-")).length,n=(n=re(t[r+1]))?n.split("-"):null;0<e;){if(i=se(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&s(a,n,!0)>=e-1)break;e--}r++}return te}(t)}function de(t){var e,n=t._a;return n&&-2===_(t).overflow&&(e=n[pt]<0||11<n[pt]?pt:n[gt]<1||n[gt]>It(n[ft],n[pt])?gt:n[mt]<0||24<n[mt]||24===n[mt]&&(0!==n[vt]||0!==n[yt]||0!==n[bt])?mt:n[vt]<0||59<n[vt]?vt:n[yt]<0||59<n[yt]?yt:n[bt]<0||999<n[bt]?bt:-1,_(t)._overflowDayOfYear&&(e<ft||gt<e)&&(e=gt),_(t)._overflowWeeks&&-1===e&&(e=_t),_(t)._overflowWeekday&&-1===e&&(e=wt),_(t).overflow=e),t}function ce(t,e,n){return null!=t?t:null!=e?e:n}function he(t){var e,n,i,a,r,s,o,l=[];if(!t._d){for(s=t,o=void 0,o=new Date(y.now()),i=s._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],t._w&&null==t._a[gt]&&null==t._a[pt]&&function(t){var e,n,i,a,r,s,o,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,s=4,n=ce(e.GG,t._a[ft],Bt(De(),1,4).year),i=ce(e.W,1),((a=ce(e.E,1))<1||7<a)&&(l=!0);else{r=t._locale._week.dow,s=t._locale._week.doy;var u=Bt(De(),r,s);n=ce(e.gg,t._a[ft],u.year),i=ce(e.w,u.week),null!=e.d?((a=e.d)<0||6<a)&&(l=!0):null!=e.e?(a=e.e+r,(e.e<0||6<e.e)&&(l=!0)):a=r}i<1||i>Yt(n,r,s)?_(t)._overflowWeeks=!0:null!=l?_(t)._overflowWeekday=!0:(o=Wt(n,i,a,r,s),t._a[ft]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(r=ce(t._a[ft],i[ft]),(t._dayOfYear>xt(r)||0===t._dayOfYear)&&(_(t)._overflowDayOfYear=!0),n=Ht(r,0,t._dayOfYear),t._a[pt]=n.getUTCMonth(),t._a[gt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=l[e]=i[e];for(;e<7;e++)t._a[e]=l[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[mt]&&0===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&(t._nextDay=!0,t._a[mt]=0),t._d=(t._useUTC?Ht:function(t,e,n,i,a,r,s){var o;return t<100&&0<=t?(o=new Date(t+400,e,n,i,a,r,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,a,r,s),o}).apply(null,l),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[mt]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(_(t).weekdayMismatch=!0)}}var fe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,me=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ve=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ye=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,i,a,r,s,o=t._i,l=fe.exec(o)||pe.exec(o);if(l){for(_(t).iso=!0,e=0,n=me.length;e<n;e++)if(me[e][1].exec(l[1])){a=me[e][0],i=!1!==me[e][2];break}if(null==a)return void(t._isValid=!1);if(l[3]){for(e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[3])){r=(l[2]||" ")+ve[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!ge.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=a+(r||"")+(s||""),Se(t)}else t._isValid=!1}var _e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,we={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xe(t){var e,n,i,a,r,s,o,l=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var u=(e=l[4],n=l[3],i=l[2],a=l[5],r=l[6],s=l[7],o=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Pt.indexOf(n),parseInt(i,10),parseInt(a,10),parseInt(r,10)],s&&o.push(parseInt(s,10)),o);if(!function(t,e,n){return!t||$t.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(_(n).weekdayMismatch=!0,n._isValid=!1)}(l[1],u,t))return;t._a=u,t._tzm=function(t,e,n){if(t)return we[t];if(e)return 0;var i=parseInt(n,10),a=i%100;return(i-a)/100*60+a}(l[8],l[9],l[10]),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),_(t).rfc2822=!0}else t._isValid=!1}function Se(t){if(t._f!==y.ISO_8601)if(t._f!==y.RFC_2822){t._a=[],_(t).empty=!0;var e,n,i,a,r,s=""+t._i,o=s.length,l=0;for(i=V(t._f,t._locale).match(H)||[],e=0;e<i.length;e++)a=i[e],(n=(s.match((f=t,b(ot,h=a)?ot[h](f._strict,f._locale):new RegExp(ut(h.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))))||[])[0])&&(0<(r=s.substr(0,s.indexOf(n))).length&&_(t).unusedInput.push(r),s=s.slice(s.indexOf(n)+n.length),l+=n.length),B[a]?(n?_(t).empty=!1:_(t).unusedTokens.push(a),u=a,c=t,null!=(d=n)&&b(dt,u)&&dt[u](d,c._a,c,u)):t._strict&&!n&&_(t).unusedTokens.push(a);_(t).charsLeftOver=o-l,0<s.length&&_(t).unusedInput.push(s),t._a[mt]<=12&&!0===_(t).bigHour&&0<t._a[mt]&&(_(t).bigHour=void 0),_(t).parsedDateParts=t._a.slice(0),_(t).meridiem=t._meridiem,t._a[mt]=(p=t._locale,g=t._a[mt],null==(m=t._meridiem)?g:null!=p.meridiemHour?p.meridiemHour(g,m):(null!=p.isPM&&((v=p.isPM(m))&&g<12&&(g+=12),v||12!==g||(g=0)),g)),he(t),de(t)}else xe(t);else be(t);var u,d,c,h,f,p,g,m,v}function ke(t){var e,n,i,a,r=t._i,s=t._f;return t._locale=t._locale||ue(t._l),null===r||void 0===s&&""===r?m({nullInput:!0}):("string"==typeof r&&(t._i=r=t._locale.preparse(r)),x(r)?new w(de(r)):(c(r)?t._d=r:o(s)?function(t){var e,n,i,a,r;if(0===t._f.length)return _(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)r=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Se(e),g(e)&&(r+=_(e).charsLeftOver,r+=10*_(e).unusedTokens.length,_(e).score=r,(null==i||r<i)&&(i=r,n=e));f(t,n||e)}(t):s?Se(t):u(a=(e=t)._i)?e._d=new Date(y.now()):c(a)?e._d=new Date(a.valueOf()):"string"==typeof a?(n=e,null===(i=ye.exec(n._i))?(be(n),!1===n._isValid&&(delete n._isValid,xe(n),!1===n._isValid&&(delete n._isValid,y.createFromInputFallback(n)))):n._d=new Date(+i[1])):o(a)?(e._a=h(a.slice(0),function(t){return parseInt(t,10)}),he(e)):l(a)?function(t){if(!t._d){var e=O(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),he(t)}}(e):d(a)?e._d=new Date(a):y.createFromInputFallback(e),g(t)||(t._d=null),t))}function Te(t,e,n,i,a){var r,s={};return!0!==n&&!1!==n||(i=n,n=void 0),(l(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=t,s._f=e,s._strict=i,(r=new w(de(ke(s))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function De(t,e,n,i){return Te(t,e,n,i,!1)}y.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){};var Ce=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Me=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});function Ie(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return De();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fe(t){var e=O(t),n=e.year||0,i=e.quarter||0,a=e.month||0,r=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,l=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===kt.call(Ae,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ae.length;++i)if(t[Ae[i]]){if(n)return!1;parseFloat(t[Ae[i]])!==k(t[Ae[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*l+1e3*o*60*60,this._days=+s+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=ue(),this._bubble()}function Pe(t){return t instanceof Fe}function Re(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Oe(t,n){Y(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+E(~~(t/60),2)+n+E(~~t%60,2)})}Oe("Z",":"),Oe("ZZ",""),lt("Z",rt),lt("ZZ",rt),ct(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Le(rt,t)});var Ne=/([\+\-]|\d\d)/gi;function Le(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Ne)||["-",0,0],a=60*i[1]+k(i[2]);return 0===a?0:"+"===i[0]?a:-a}function Ee(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(x(t)||c(t)?t.valueOf():De(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),y.updateOffset(n,!1),n):De(t).local()}function He(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function je(){return!!this.isValid()&&this._isUTC&&0===this._offset}y.updateOffset=function(){};var We=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Be=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ye(t,e){var n,i,a,r,s,o,l=t,u=null;return Pe(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:d(t)?(l={},e?l[e]=t:l.milliseconds=t):(u=We.exec(t))?(n="-"===u[1]?-1:1,l={y:0,d:k(u[gt])*n,h:k(u[mt])*n,m:k(u[vt])*n,s:k(u[yt])*n,ms:k(Re(1e3*u[bt]))*n}):(u=Be.exec(t))?(n="-"===u[1]?-1:1,l={y:qe(u[2],n),M:qe(u[3],n),w:qe(u[4],n),d:qe(u[5],n),h:qe(u[6],n),m:qe(u[7],n),s:qe(u[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(r=De(l.from),s=De(l.to),a=r.isValid()&&s.isValid()?(s=Ee(s,r),r.isBefore(s)?o=Ve(r,s):((o=Ve(s,r)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(l={}).ms=a.milliseconds,l.M=a.months),i=new Fe(l),Pe(t)&&b(t,"_locale")&&(i._locale=t._locale),i}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ve(t,e){var n={};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 $e(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(C(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),ze(this,Ye(t="string"==typeof t?+t:t,e),i),this}}function ze(t,e,n,i){var a=e._milliseconds,r=Re(e._days),s=Re(e._months);t.isValid()&&(i=null==i||i,s&&Rt(t,Ct(t,"Month")+s*n),r&&Mt(t,"Date",Ct(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&y.updateOffset(t,r||s))}Ye.fn=Fe.prototype,Ye.invalid=function(){return Ye(NaN)};var Ue=$e(1,"add"),Ge=$e(-1,"subtract");function Ze(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i)))||0}function Xe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ue(t))&&(this._locale=e),this)}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Qe(){return this._locale}function Ke(t,e){return(t%e+e)%e}function tn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function en(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function nn(t,e){Y(0,[t,t.length],0,e)}function an(t,e,n,i,a){var r;return null==t?Bt(this,i,a).year:((r=Yt(t,i,a))<e&&(e=r),function(t,e,n,i,a){var r=Wt(t,e,n,i,a),s=Ht(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,t,e,n,i,a))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",X,z),lt("gg",X,z),lt("GGGG",tt,G),lt("gggg",tt,G),lt("GGGGG",et,Z),lt("ggggg",et,Z),ht(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),ht(["gg","GG"],function(t,e,n,i){e[i]=y.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),P("quarter","Q"),L("quarter",7),lt("Q",$),ct("Q",function(t,e){e[pt]=3*(k(t)-1)}),Y("D",["DD",2],"Do","date"),P("date","D"),L("date",9),lt("D",X),lt("DD",X,z),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ct(["D","DD"],gt),ct("Do",function(t,e){e[gt]=k(t.match(X)[0])});var rn=Dt("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),L("dayOfYear",4),lt("DDD",K),lt("DDDD",U),ct(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),Y("m",["mm",2],0,"minute"),P("minute","m"),L("minute",14),lt("m",X),lt("mm",X,z),ct(["m","mm"],vt);var sn=Dt("Minutes",!1);Y("s",["ss",2],0,"second"),P("second","s"),L("second",15),lt("s",X),lt("ss",X,z),ct(["s","ss"],yt);var on,ln=Dt("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),L("millisecond",16),lt("S",K,$),lt("SS",K,z),lt("SSS",K,U),on="SSSS";on.length<=9;on+="S")lt(on,nt);function un(t,e){e[bt]=k(1e3*("0."+t))}for(on="S";on.length<=9;on+="S")ct(on,un);var dn=Dt("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var cn=w.prototype;function hn(t){return t}cn.add=Ue,cn.calendar=function(t,e){var n=t||De(),i=Ee(n,this).startOf("day"),a=y.calendarFormat(this,i)||"sameElse",r=e&&(M(e[a])?e[a].call(this,n):e[a]);return this.format(r||this.localeData().calendar(a,this,De(n)))},cn.clone=function(){return new w(this)},cn.diff=function(t,e,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=Ee(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=R(e)){case"year":r=Ze(this,i)/12;break;case"month":r=Ze(this,i);break;case"quarter":r=Ze(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:S(r)},cn.endOf=function(t){var e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?en:tn;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Ke(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Ke(e,1e3)-1}return this._d.setTime(e),y.updateOffset(this,!0),this},cn.format=function(t){t=t||(this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var e=q(this,t);return this.localeData().postformat(e)},cn.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||De(t).isValid())?Ye({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.fromNow=function(t){return this.from(De(),t)},cn.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||De(t).isValid())?Ye({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.toNow=function(t){return this.to(De(),t)},cn.get=function(t){return M(this[t=R(t)])?this[t]():this},cn.invalidAt=function(){return _(this).overflow},cn.isAfter=function(t,e){var n=x(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},cn.isBefore=function(t,e){var n=x(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},cn.isBetween=function(t,e,n,i){var a=x(t)?t:De(t),r=x(e)?e:De(e);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))},cn.isSame=function(t,e){var n,i=x(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},cn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},cn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},cn.isValid=function(){return g(this)},cn.lang=Je,cn.locale=Xe,cn.localeData=Qe,cn.max=Me,cn.min=Ce,cn.parsingFlags=function(){return f({},_(this))},cn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:N[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=O(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(M(this[t=R(t)]))return this[t](e);return this},cn.startOf=function(t){var e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?en:tn;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Ke(e,6e4);break;case"second":e=this._d.valueOf(),e-=Ke(e,1e3)}return this._d.setTime(e),y.updateOffset(this,!0),this},cn.subtract=Ge,cn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},cn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},cn.toDate=function(){return new Date(this.valueOf())},cn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?q(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(n,"Z")):q(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+a)},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=Tt,cn.isLeapYear=function(){return St(this.year())},cn.weekYear=function(t){return an.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(t){return an.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},cn.month=Ot,cn.daysInMonth=function(){return It(this.year(),this.month())},cn.week=cn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},cn.isoWeek=cn.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},cn.weeksInYear=function(){var t=this.localeData()._week;return Yt(this.year(),t.dow,t.doy)},cn.isoWeeksInYear=function(){return Yt(this.year(),1,4)},cn.date=rn,cn.day=cn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},cn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},cn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,n,i=(e=t,n=this.localeData(),"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?i:i-7)},cn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},cn.hour=cn.hours=ee,cn.minute=cn.minutes=sn,cn.second=cn.seconds=ln,cn.millisecond=cn.milliseconds=dn,cn.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:He(this);if("string"==typeof t){if(null===(t=Le(rt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=He(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?ze(this,Ye(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},cn.utc=function(t){return this.utcOffset(0,t)},cn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(He(this),"m")),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Le(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=je,cn.isUTC=je,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=n("dates accessor is deprecated. Use date instead.",rn),cn.months=n("months accessor is deprecated. Use month instead",Ot),cn.years=n("years accessor is deprecated. Use year instead",Tt),cn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),cn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=ke(t))._a){var e=t._isUTC?p(t._a):De(t._a);this._isDSTShifted=this.isValid()&&0<s(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var fn=A.prototype;function pn(t,e,n,i){var a=ue(),r=p().set(i,e);return a[n](r,t)}function gn(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return pn(t,e,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=pn(t,i,n,"month");return a}function mn(t,e,n,i){"boolean"==typeof t||(n=e=t,t=!1),d(e)&&(n=e,e=void 0),e=e||"";var a,r=ue(),s=t?r._week.dow:0;if(null!=n)return pn(e,(n+s)%7,i,"day");var o=[];for(a=0;a<7;a++)o[a]=pn(e,(a+s)%7,i,"day");return o}fn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return M(i)?i.call(e,n):i},fn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(t){return this._ordinal.replace("%d",t)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return M(a)?a(t,e,n,i):a.replace(/%d/i,t)},fn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return M(n)?n(e):n.replace(/%s/i,e)},fn.set=function(t){var e,n;for(n in t)M(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fn.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||At).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},fn.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[At.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(t,e,n){var i,a,r;if(this._monthsParseExact)return function(t,e,n){var i,a,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=kt.call(this._shortMonthsParse,s))?a:null:-1!==(a=kt.call(this._longMonthsParse,s))?a:null:"MMM"===e?-1!==(a=kt.call(this._shortMonthsParse,s))?a:-1!==(a=kt.call(this._longMonthsParse,s))?a:null:-1!==(a=kt.call(this._longMonthsParse,s))?a:-1!==(a=kt.call(this._shortMonthsParse,s))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.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}},fn.monthsRegex=function(t){return this._monthsParseExact?(b(this,"_monthsRegex")||Et.call(this),t?this._monthsStrictRegex:this._monthsRegex):(b(this,"_monthsRegex")||(this._monthsRegex=Lt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(t){return this._monthsParseExact?(b(this,"_monthsRegex")||Et.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(b(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},fn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},fn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},fn.weekdaysParse=function(t,e,n){var i,a,r;if(this._weekdaysParseExact)return function(t,e,n){var i,a,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=kt.call(this._weekdaysParse,s))?a:null:"ddd"===e?-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:null:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:null:"dddd"===e?-1!==(a=kt.call(this._weekdaysParse,s))?a:-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:null:"ddd"===e?-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:-1!==(a=kt.call(this._weekdaysParse,s))?a:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:null:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:-1!==(a=kt.call(this._weekdaysParse,s))?a:-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},fn.weekdaysRegex=function(t){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(b(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(b(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Gt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(b(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},fn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),y.lang=n("moment.lang is deprecated. Use moment.locale instead.",oe),y.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ue);var vn=Math.abs;function yn(t,e,n,i){var a=Ye(e,n);return t._milliseconds+=i*a._milliseconds,t._days+=i*a._days,t._months+=i*a._months,t._bubble()}function bn(t){return t<0?Math.floor(t):Math.ceil(t)}function _n(t){return 4800*t/146097}function wn(t){return 146097*t/4800}function xn(t){return function(){return this.as(t)}}var Sn=xn("ms"),kn=xn("s"),Tn=xn("m"),Dn=xn("h"),Cn=xn("d"),Mn=xn("w"),In=xn("M"),An=xn("Q"),Fn=xn("y");function Pn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Rn=Pn("milliseconds"),On=Pn("seconds"),Nn=Pn("minutes"),Ln=Pn("hours"),En=Pn("days"),Hn=Pn("months"),jn=Pn("years"),Wn=Math.round,Bn={ss:44,s:45,m:45,h:22,d:26,M:11},Yn=Math.abs;function qn(t){return(0<t)-(t<0)||+t}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Yn(this._milliseconds)/1e3,i=Yn(this._days),a=Yn(this._months);e=S((t=S(n/60))/60),n%=60,t%=60;var r=S(a/12),s=a%=12,o=i,l=e,u=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var h=c<0?"-":"",f=qn(this._months)!==qn(c)?"-":"",p=qn(this._days)!==qn(c)?"-":"",g=qn(this._milliseconds)!==qn(c)?"-":"";return h+"P"+(r?f+r+"Y":"")+(s?f+s+"M":"")+(o?p+o+"D":"")+(l||u||d?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(d?g+d+"S":"")}var $n=Fe.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var t=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),t.milliseconds=vn(t.milliseconds),t.seconds=vn(t.seconds),t.minutes=vn(t.minutes),t.hours=vn(t.hours),t.months=vn(t.months),t.years=vn(t.years),this},$n.add=function(t,e){return yn(this,t,e,1)},$n.subtract=function(t,e){return yn(this,t,e,-1)},$n.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+_n(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(wn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},$n.asMilliseconds=Sn,$n.asSeconds=kn,$n.asMinutes=Tn,$n.asHours=Dn,$n.asDays=Cn,$n.asWeeks=Mn,$n.asMonths=In,$n.asQuarters=An,$n.asYears=Fn,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},$n._bubble=function(){var t,e,n,i,a,r=this._milliseconds,s=this._days,o=this._months,l=this._data;return 0<=r&&0<=s&&0<=o||r<=0&&s<=0&&o<=0||(r+=864e5*bn(wn(o)+s),o=s=0),l.milliseconds=r%1e3,t=S(r/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,o+=a=S(_n(s+=S(n/24))),s-=bn(wn(a)),i=S(o/12),o%=12,l.days=s,l.months=o,l.years=i,this},$n.clone=function(){return Ye(this)},$n.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},$n.milliseconds=Rn,$n.seconds=On,$n.minutes=Nn,$n.hours=Ln,$n.days=En,$n.weeks=function(){return S(this.days()/7)},$n.months=Hn,$n.years=jn,$n.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,i,a,r,s,o,l,u,d,c,h=this.localeData(),f=(n=!t,i=h,a=Ye(e=this).abs(),r=Wn(a.as("s")),s=Wn(a.as("m")),o=Wn(a.as("h")),l=Wn(a.as("d")),u=Wn(a.as("M")),d=Wn(a.as("y")),(c=r<=Bn.ss&&["s",r]||r<Bn.s&&["ss",r]||s<=1&&["m"]||s<Bn.m&&["mm",s]||o<=1&&["h"]||o<Bn.h&&["hh",o]||l<=1&&["d"]||l<Bn.d&&["dd",l]||u<=1&&["M"]||u<Bn.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=n,c[3]=0<+e,c[4]=i,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,c));return t&&(f=h.pastFuture(+this,f)),h.postformat(f)},$n.toISOString=Vn,$n.toString=Vn,$n.toJSON=Vn,$n.locale=Xe,$n.localeData=Qe,$n.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),$n.lang=Je,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),ct("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ct("x",function(t,e,n){n._d=new Date(k(t))}),y.version="2.24.0",t=De,y.fn=cn,y.min=function(){return Ie("isBefore",[].slice.call(arguments,0))},y.max=function(){return Ie("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=p,y.unix=function(t){return De(1e3*t)},y.months=function(t,e){return gn(t,e,"months")},y.isDate=c,y.locale=oe,y.invalid=m,y.duration=Ye,y.isMoment=x,y.weekdays=function(t,e,n){return mn(t,e,n,"weekdays")},y.parseZone=function(){return De.apply(null,arguments).parseZone()},y.localeData=ue,y.isDuration=Pe,y.monthsShort=function(t,e){return gn(t,e,"monthsShort")},y.weekdaysMin=function(t,e,n){return mn(t,e,n,"weekdaysMin")},y.defineLocale=le,y.updateLocale=function(t,e){if(null!=e){var n,i,a=ne;null!=(i=se(t))&&(a=i._config),(n=new A(e=I(a,e))).parentLocale=ie[t],ie[t]=n,oe(t)}else null!=ie[t]&&(null!=ie[t].parentLocale?ie[t]=ie[t].parentLocale:null!=ie[t]&&delete ie[t]);return ie[t]},y.locales=function(){return i(ie)},y.weekdaysShort=function(t,e,n){return mn(t,e,n,"weekdaysShort")},y.normalizeUnits=R,y.relativeTimeRounding=function(t){return void 0===t?Wn:"function"==typeof t&&(Wn=t,!0)},y.relativeTimeThreshold=function(t,e){return void 0!==Bn[t]&&(void 0===e?Bn[t]:(Bn[t]=e,"s"===t&&(Bn.ss=e-1),!0))},y.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},y.prototype=cn,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y}(),Un.exports),Jn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};an._date.override("function"==typeof Xn?{_id:"moment",formats:function(){return Jn},parse:function(t,e){return"string"==typeof t&&"string"==typeof e?t=Xn(t,e):t instanceof Xn||(t=Xn(t)),t.isValid()?t.valueOf():null},format:function(t,e){return Xn(t).format(e)},add:function(t,e,n){return Xn(t).add(e,n).valueOf()},diff:function(t,e,n){return Xn.duration(Xn(t).diff(Xn(e))).as(n)},startOf:function(t,e,n){return t=Xn(t),"isoWeek"===e?t.isoWeekday(n).valueOf():t.startOf(e).valueOf()},endOf:function(t,e){return Xn(t).endOf(e).valueOf()},_create:function(t){return Xn(t)}}:{}),st._set("global",{plugins:{filler:{propagate:!0}}});var Qn={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),a=i&&n.isDatasetVisible(e)&&i.dataset._children||[],r=a.length||0;return r?function(t,e){return e<r&&a[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,i=e?e.y:null;return function(t){return{x:null===n?t.x:n,y:null===i?t.y:i}}}};function Kn(t,e,n){var i,a=t._model||{},r=a.fill;if(void 0===r&&(r=!!a.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=e+i),!(i===e||i<0||n<=i)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function ti(t){var e,n=t.el._model||{},i=t.el._scale||{},a=t.fill,r=null;if(isFinite(a))return null;if("start"===a?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===a?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePosition?r=i.getBasePosition():i.getBasePixel&&(r=i.getBasePixel()),null!=r){if(void 0!==r.x&&void 0!==r.y)return r;if(ut.isFinite(r))return{x:(e=i.isHorizontal())?r:null,y:e?null:r}}return null}function ei(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}function ni(t){return t&&!t.skip}function ii(t,e,n,i,a){var r;if(i&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)ut.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(n[a-1].x,n[a-1].y),r=a-1;0<r;--r)ut.canvas.lineTo(t,n[r],n[r-1],!0)}}var ai={id:"filler",afterDatasetsUpdate:function(t,e){var n,i,a,r,s,o,l,u=(t.data.datasets||[]).length,d=e.propagate,c=[];for(i=0;i<u;++i)r=null,(a=(n=t.getDatasetMeta(i)).dataset)&&a._model&&a instanceof Et.Line&&(r={visible:t.isDatasetVisible(i),fill:Kn(a,i,u),chart:t,el:a}),n.$filler=r,c.push(r);for(i=0;i<u;++i)(r=c[i])&&(r.fill=ei(c,i,d),r.boundary=ti(r),r.mapper=(l=void 0,o=(s=r).fill,!(l="dataset")===o?null:(isFinite(o)||(l="boundary"),Qn[l](s))))},beforeDatasetDraw:function(t,e){var n=e.meta.$filler;if(n){var i=t.ctx,a=n.el,r=a._view,s=a._children||[],o=n.mapper,l=r.backgroundColor||st.global.defaultColor;o&&l&&s.length&&(ut.canvas.clipArea(i,t.chartArea),function(t,e,n,i,a,r){var s,o,l,u,d,c,h,f=e.length,p=i.spanGaps,g=[],m=[],v=0,y=0;for(t.beginPath(),s=0,o=f+!!r;s<o;++s)d=n(u=e[l=s%f]._view,l,i),c=ni(u),h=ni(d),c&&h?(v=g.push(u),y=m.push(d)):v&&y&&(p?(c&&g.push(u),h&&m.push(d)):(ii(t,g,m,v,y),v=y=0,g=[],m=[]));ii(t,g,m,v,y),t.closePath(),t.fillStyle=a,t.fill()}(i,s,o,r,l,a._loop),ut.canvas.unclipArea(i))}}},ri=ut.noop,si=ut.valueOrDefault;function oi(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}st._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,a=i.getDatasetMeta(n);a.hidden=null===a.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var t=n.data;return ut.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:ut.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!n.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}});var li=pt.extend({initialize:function(t){ut.extend(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:ri,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:ri,beforeSetDimensions:ri,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:ri,beforeBuildLabels:ri,buildLabels:function(){var e=this,n=e.options.labels||{},t=ut.callback(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(function(t){return n.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:ri,beforeFit:ri,fit:function(){var t=this,e=t.options,i=e.labels,n=e.display,a=t.ctx,r=ut.options._parseFont(i),s=r.size,o=t.legendHitBoxes=[],l=t.minSize,u=t.isHorizontal();if(u?(l.width=t.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=t.maxHeight),n)if(a.font=r.string,u){var d=t.lineWidths=[0],c=0;a.textAlign="left",a.textBaseline="top",ut.each(t.legendItems,function(t,e){var n=oi(i,s)+s/2+a.measureText(t.text).width;(0===e||d[d.length-1]+n+i.padding>l.width)&&(c+=s+i.padding,d[d.length-(0<e?0:1)]=i.padding),o[e]={left:0,top:0,width:n,height:s},d[d.length-1]+=n+i.padding}),l.height+=c}else{var h=i.padding,f=t.columnWidths=[],p=i.padding,g=0,m=0,v=s+h;ut.each(t.legendItems,function(t,e){var n=oi(i,s)+s/2+a.measureText(t.text).width;0<e&&m+v>l.height-h&&(p+=g+i.padding,f.push(g),m=g=0),g=Math.max(g,n),m+=v,o[e]={left:0,top:0,width:n,height:s}}),p+=g,f.push(g),l.width+=p}t.width=l.width,t.height=l.height},afterFit:ri,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var c=this,h=c.options,f=h.labels,t=st.global,p=t.defaultColor,g=t.elements.line,m=c.width,v=c.lineWidths;if(h.display){var y,b=c.ctx,e=si(f.fontColor,t.defaultFontColor),n=ut.options._parseFont(f),_=n.size;b.textAlign="left",b.textBaseline="middle",b.lineWidth=.5,b.strokeStyle=e,b.fillStyle=e,b.font=n.string;var w=oi(f,_),x=c.legendHitBoxes,S=c.isHorizontal();y=S?{x:c.left+(m-v[0])/2+f.padding,y:c.top+f.padding,line:0}:{x:c.left+f.padding,y:c.top+f.padding,line:0};var k=_+f.padding;ut.each(c.legendItems,function(t,e){var n,i,a,r,s,o=b.measureText(t.text).width,l=w+_/2+o,u=y.x,d=y.y;S?0<e&&u+l+f.padding>c.left+c.minSize.width&&(d=y.y+=k,y.line++,u=y.x=c.left+(m-v[y.line])/2+f.padding):0<e&&d+k>c.top+c.minSize.height&&(u=y.x=u+c.columnWidths[y.line]+f.padding,d=y.y=c.top+f.padding,y.line++),function(t,e,n){if(!(isNaN(w)||w<=0)){b.save();var i=si(n.lineWidth,g.borderWidth);if(b.fillStyle=si(n.fillStyle,p),b.lineCap=si(n.lineCap,g.borderCapStyle),b.lineDashOffset=si(n.lineDashOffset,g.borderDashOffset),b.lineJoin=si(n.lineJoin,g.borderJoinStyle),b.lineWidth=i,b.strokeStyle=si(n.strokeStyle,p),b.setLineDash&&b.setLineDash(si(n.lineDash,g.borderDash)),h.labels&&h.labels.usePointStyle){var a=w*Math.SQRT2/2,r=t+w/2,s=e+_/2;ut.canvas.drawPoint(b,n.pointStyle,a,r,s)}else 0!==i&&b.strokeRect(t,e,w,_),b.fillRect(t,e,w,_);b.restore()}}(u,d,t),x[e].left=u,x[e].top=d,n=t,i=o,r=w+(a=_/2)+u,s=d+a,b.fillText(n.text,r,s),n.hidden&&(b.beginPath(),b.lineWidth=2,b.moveTo(r,s),b.lineTo(r+i,s),b.stroke()),S?y.x+=l+f.padding:y.y+=k})}},_getLegendItemAt:function(t,e){var n,i,a;if(t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom)for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(t>=(i=a[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return this.legendItems[n];return null},handleEvent:function(t){var e,n=this.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!n.onHover&&!n.onLeave)return}else{if("click"!==i)return;if(!n.onClick)return}e=this._getLegendItemAt(t.x,t.y),"click"===i?e&&n.onClick&&n.onClick.call(this,t.native,e):(n.onLeave&&e!==this._hoveredItem&&(this._hoveredItem&&n.onLeave.call(this,t.native,this._hoveredItem),this._hoveredItem=e),n.onHover&&e&&n.onHover.call(this,t.native,e))}});function ui(t,e){var n=new li({ctx:t.ctx,options:e,chart:t});be.configure(t,n,e),be.addBox(t,n),t.legend=n}var di={id:"legend",_element:li,beforeInit:function(t){var e=t.options.legend;e&&ui(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(ut.mergeIf(e,st.global.legend),n?(be.configure(t,n,e),n.options=e):ui(t,e)):n&&(be.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},ci=ut.noop;st._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var hi=pt.extend({initialize:function(t){ut.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:ci,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:ci,beforeSetDimensions:ci,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:ci,beforeBuildLabels:ci,buildLabels:ci,afterBuildLabels:ci,beforeFit:ci,fit:function(){var t=this.options,e=t.display,n=this.minSize,i=ut.isArray(t.text)?t.text.length:1,a=ut.options._parseFont(t),r=e?i*a.lineHeight+2*t.padding:0;this.isHorizontal()?(n.width=this.maxWidth,n.height=r):(n.width=r,n.height=this.maxHeight),this.width=n.width,this.height=n.height},afterFit:ci,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=this.options;if(e.display){var n,i,a,r=ut.options._parseFont(e),s=r.lineHeight,o=s/2+e.padding,l=0,u=this.top,d=this.left,c=this.bottom,h=this.right;t.fillStyle=ut.valueOrDefault(e.fontColor,st.global.defaultFontColor),t.font=r.string,this.isHorizontal()?(i=d+(h-d)/2,a=u+o,n=h-d):(i="left"===e.position?d+o:h-o,a=u+(c-u)/2,n=c-u,l=Math.PI*("left"===e.position?-.5:.5)),t.save(),t.translate(i,a),t.rotate(l),t.textAlign="center",t.textBaseline="middle";var f=e.text;if(ut.isArray(f))for(var p=0,g=0;g<f.length;++g)t.fillText(f[g],0,p,n),p+=s;else t.fillText(f,0,0,n);t.restore()}}});function fi(t,e){var n=new hi({ctx:t.ctx,options:e,chart:t});be.configure(t,n,e),be.addBox(t,n),t.titleBlock=n}var pi={},gi=ai,mi=di,vi={id:"title",_element:hi,beforeInit:function(t){var e=t.options.title;e&&fi(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(ut.mergeIf(e,st.global.title),n?(be.configure(t,n,e),n.options=e):fi(t,e)):n&&(be.removeBox(t,n),delete t.titleBlock)}};for(var yi in pi.filler=gi,pi.legend=mi,pi.title=vi,(tn.helpers=ut).where=function(t,e){if(ut.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return ut.each(t,function(t){e(t)&&n.push(t)}),n},ut.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},ut.findNextWhere=function(t,e,n){ut.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<t.length;i++){var a=t[i];if(e(a))return a}},ut.findPreviousWhere=function(t,e,n){ut.isNullOrUndef(n)&&(n=t.length);for(var i=n-1;0<=i;i--){var a=t[i];if(e(a))return a}},ut.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ut.almostEquals=function(t,e,n){return Math.abs(t-e)<n},ut.almostWhole=function(t,e){var n=Math.round(t);return n-e<t&&t<n+e},ut.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},ut.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},ut.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:0<t?1:-1},ut.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},ut.toRadians=function(t){return t*(Math.PI/180)},ut.toDegrees=function(t){return t*(180/Math.PI)},ut._decimalPlaces=function(t){if(ut.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},ut.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},ut.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ut.aliasPixel=function(t){return t%2==0?0:.5},ut._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,a=n/2;return Math.round((e-a)*i)/i+a},ut.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,s=n.skip?e:n,o=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),u=o/(o+l),d=l/(o+l),c=i*(u=isNaN(u)?0:u),h=i*(d=isNaN(d)?0:d);return{previous:{x:r.x-c*(s.x-a.x),y:r.y-c*(s.y-a.y)},next:{x:r.x+h*(s.x-a.x),y:r.y+h*(s.y-a.y)}}},ut.EPSILON=Number.EPSILON||1e-14,ut.splineCurveMonotone=function(t){var e,n,i,a,r,s,o,l,u,d=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),c=d.length;for(e=0;e<c;++e)if(!(i=d[e]).model.skip){if(n=0<e?d[e-1]:null,(a=e<c-1?d[e+1]:null)&&!a.model.skip){var h=a.model.x-i.model.x;i.deltaK=0!=h?(a.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!a||a.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(e=0;e<c-1;++e)i=d[e],a=d[e+1],i.model.skip||a.model.skip||(ut.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=a.mK=0:(r=i.mK/i.deltaK,s=a.mK/i.deltaK,(l=Math.pow(r,2)+Math.pow(s,2))<=9||(o=3/Math.sqrt(l),i.mK=r*o*i.deltaK,a.mK=s*o*i.deltaK)));for(e=0;e<c;++e)(i=d[e]).model.skip||(n=0<e?d[e-1]:null,a=e<c-1?d[e+1]:null,n&&!n.model.skip&&(u=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-u,i.model.controlPointPreviousY=i.model.y-u*i.mK),a&&!a.model.skip&&(u=(a.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+u,i.model.controlPointNextY=i.model.y+u*i.mK))},ut.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ut.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ut.niceNum=function(t,e){var n=Math.floor(ut.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},ut.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},ut.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,r=t.target||t.srcElement,s=r.getBoundingClientRect(),o=a.touches;i=o&&0<o.length?(n=o[0].clientX,o[0].clientY):(n=a.clientX,a.clientY);var l=parseFloat(ut.getStyle(r,"padding-left")),u=parseFloat(ut.getStyle(r,"padding-top")),d=parseFloat(ut.getStyle(r,"padding-right")),c=parseFloat(ut.getStyle(r,"padding-bottom")),h=s.right-s.left-l-d,f=s.bottom-s.top-u-c;return{x:n=Math.round((n-s.left-l)/h*r.width/e.currentDevicePixelRatio),y:i=Math.round((i-s.top-u)/f*r.height/e.currentDevicePixelRatio)}},ut.getConstraintWidth=function(t){return wi(t,"max-width","clientWidth")},ut.getConstraintHeight=function(t){return wi(t,"max-height","clientHeight")},ut._calculatePadding=function(t,e,n){return-1<(e=ut.getStyle(t,e)).indexOf("%")?n*parseInt(e,10)/100:parseInt(e,10)},ut._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ut.getMaximumWidth=function(t){var e=ut._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=n-ut._calculatePadding(e,"padding-left",n)-ut._calculatePadding(e,"padding-right",n),a=ut.getConstraintWidth(t);return isNaN(a)?i:Math.min(i,a)},ut.getMaximumHeight=function(t){var e=ut._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=n-ut._calculatePadding(e,"padding-top",n)-ut._calculatePadding(e,"padding-bottom",n),a=ut.getConstraintHeight(t);return isNaN(a)?i:Math.min(i,a)},ut.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ut.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,a=t.height,r=t.width;i.height=a*n,i.width=r*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=a+"px",i.style.width=r+"px")}},ut.fontString=function(t,e,n){return e+" "+t+"px "+n},ut.longestText=function(e,t,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(a=i.data={},r=i.garbageCollect=[],i.font=t),e.font=t;var s=0;ut.each(n,function(t){null!=t&&!0!==ut.isArray(t)?s=ut.measureText(e,a,r,s,t):ut.isArray(t)&&ut.each(t,function(t){null==t||ut.isArray(t)||(s=ut.measureText(e,a,r,s,t))})});var o=r.length/2;if(o>n.length){for(var l=0;l<o;l++)delete a[r[l]];r.splice(0,o)}return s},ut.measureText=function(t,e,n,i,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,n.push(a)),i<r&&(i=r),i},ut.numberOfLabelLines=function(t){var e=1;return ut.each(t,function(t){ut.isArray(t)&&t.length>e&&(e=t.length)}),e},ut.color=z?function(t){return t instanceof CanvasGradient&&(t=st.global.defaultColor),z(t)}:function(t){return console.error("Color.js not found!"),t},ut.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ut.color(t).saturate(.5).darken(.1).rgbString()},tn._adapters=an,tn.Animation=mt,tn.animationService=vt,tn.controllers=le,tn.DatasetController=xt,tn.defaults=st,tn.Element=pt,tn.elements=Et,tn.Interaction=ge,tn.layouts=be,tn.platform=Le,tn.plugins=Ee,tn.Scale=dn,tn.scaleService=He,tn.Ticks=rn,tn.Tooltip=Ge,tn.helpers.each(Zn,function(t,e){tn.scaleService.registerScaleType(e,t,t._defaults)}),pi)pi.hasOwnProperty(yi)&&tn.plugins.register(pi[yi]);function bi(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function _i(t){return null!=t&&"none"!==t}function wi(t,e,n){var i=document.defaultView,a=ut._getParentNode(t),r=i.getComputedStyle(t)[e],s=i.getComputedStyle(a)[e],o=_i(r),l=_i(s),u=Number.POSITIVE_INFINITY;return o||l?Math.min(o?bi(r,t,n):u,l?bi(s,a,n):u):"none"}tn.platform.initialize();var xi=tn;return"undefined"!=typeof window&&(window.Chart=tn),(tn.Chart=tn).Legend=pi.legend._element,tn.Title=pi.title._element,tn.pluginService=tn.plugins,tn.PluginBase=tn.Element.extend({}),tn.canvasHelpers=tn.helpers.canvas,tn.layoutService=tn.layouts,tn.LinearScaleBase=pn,tn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(n){tn[n]=function(t,e){return new tn(t,tn.helpers.merge(e||{},{type:n.charAt(0).toLowerCase()+n.slice(1)}))}}),xi}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,a;function y(){return t.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0===t}function d(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function b(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t,e){for(var n in e)b(e,n)&&(t[n]=e[n]);return b(e,"toString")&&(t.toString=e.toString),b(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Te(t,e,n,i,!0).utc()}function _(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){if(null==t._isValid){var e=_(t),n=a.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=p(NaN);return null!=t?f(_(e),t):_(e).userInvalidated=!0,e}a=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var r=y.momentProperties=[];function v(t,e){var n,i,a;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=_(e)),u(e._locale)||(t._locale=e._locale),0<r.length)for(n=0;n<r.length;n++)u(a=e[i=r[n]])||(t[i]=a);return t}var e=!1;function w(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===e&&(e=!0,y.updateOffset(this),e=!1)}function x(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function S(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function k(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=S(e)),n}function s(t,e,n){var i,a=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<a;i++)(n&&t[i]!==e[i]||!n&&k(t[i])!==k(e[i]))&&s++;return s+r}function T(t){!1===y.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function n(a,r){var s=!0;return f(function(){if(null!=y.deprecationHandler&&y.deprecationHandler(null,a),s){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var i in t+="\n["+n+"] ",arguments[0])t+=i+": "+arguments[0][i]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}T(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),s=!1}return r.apply(this,arguments)},r)}var i,D={};function C(t,e){null!=y.deprecationHandler&&y.deprecationHandler(t,e),D[t]||(T(e),D[t]=!0)}function M(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function I(t,e){var n,i=f({},t);for(n in e)b(e,n)&&(l(t[n])&&l(e[n])?(i[n]={},f(i[n],t[n]),f(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)b(t,n)&&!b(e,n)&&l(t[n])&&(i[n]=f({},i[n]));return i}function A(t){null!=t&&this.set(t)}y.suppressDeprecationWarnings=!1,y.deprecationHandler=null,i=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)b(t,e)&&n.push(e);return n};var F={};function P(t,e){var n=t.toLowerCase();F[n]=F[n+"s"]=F[e]=t}function R(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function O(t){var e,n,i={};for(n in t)b(t,n)&&(e=R(n))&&(i[e]=t[n]);return i}var N={};function L(t,e){N[t]=e}function E(t,e,n){var i=""+Math.abs(t),a=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},B={};function Y(t,e,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),t&&(B[t]=a),e&&(B[e[0]]=function(){return E(a.apply(this,arguments),e[1],e[2])}),n&&(B[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function q(t,e){return t.isValid()?(e=V(e,t.localeData()),W[e]=W[e]||function(i){var t,a,e,r=i.match(H);for(t=0,a=r.length;t<a;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=(e=r[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(t){var e,n="";for(e=0;e<a;e++)n+=M(r[e])?r[e].call(t,i):r[e];return n}}(e),W[e](t)):t.localeData().invalidDate()}function V(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;0<=n&&j.test(t);)t=t.replace(j,i),j.lastIndex=0,n-=1;return t}var $=/\d/,z=/\d\d/,U=/\d{3}/,G=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,J=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,K=/\d{1,3}/,tt=/\d{1,4}/,et=/[+-]?\d{1,6}/,nt=/\d+/,it=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,rt=/Z|[+-]\d\d(?::?\d\d)?/gi,st=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ot={};function lt(t,n,i){ot[t]=M(n)?n:function(t,e){return t&&i?i:n}}function ut(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function ct(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),d(n)&&(i=function(t,e){e[n]=k(t)}),e=0;e<t.length;e++)dt[t[e]]=i}function ht(t,a){ct(t,function(t,e,n,i){n._w=n._w||{},a(t,n._w,n,i)})}var ft=0,pt=1,gt=2,mt=3,vt=4,yt=5,bt=6,_t=7,wt=8;function xt(t){return St(t)?366:365}function St(t){return t%4==0&&t%100!=0||t%400==0}Y("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),P("year","y"),L("year",1),lt("Y",it),lt("YY",X,z),lt("YYYY",tt,G),lt("YYYYY",et,Z),lt("YYYYYY",et,Z),ct(["YYYYY","YYYYYY"],ft),ct("YYYY",function(t,e){e[ft]=2===t.length?y.parseTwoDigitYear(t):k(t)}),ct("YY",function(t,e){e[ft]=y.parseTwoDigitYear(t)}),ct("Y",function(t,e){e[ft]=parseInt(t,10)}),y.parseTwoDigitYear=function(t){return k(t)+(68<k(t)?1900:2e3)};var kt,Tt=Dt("FullYear",!0);function Dt(e,n){return function(t){return null!=t?(Mt(this,e,t),y.updateOffset(this,n),this):Ct(this,e)}}function Ct(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Mt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&St(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),It(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function It(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1==n?St(t)?29:28:31-n%7%2}kt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Y("MMMM",0,0,function(t){return this.localeData().months(this,t)}),P("month","M"),L("month",8),lt("M",X),lt("MM",X,z),lt("MMM",function(t,e){return e.monthsShortRegex(t)}),lt("MMMM",function(t,e){return e.monthsRegex(t)}),ct(["M","MM"],function(t,e){e[pt]=k(t)-1}),ct(["MMM","MMMM"],function(t,e,n,i){var a=n._locale.monthsParse(t,i,n._strict);null!=a?e[pt]=a:_(n).invalidMonth=t});var At=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Rt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=k(e);else if(!d(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),It(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ot(t){return null!=t?(Rt(this,t),y.updateOffset(this,!0),this):Ct(this,"Month")}var Nt=st,Lt=st;function Et(){function t(t,e){return e.length-t.length}var e,n,i=[],a=[],r=[];for(e=0;e<12;e++)n=p([2e3,e]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(t),a.sort(t),r.sort(t),e=0;e<12;e++)i[e]=ut(i[e]),a[e]=ut(a[e]);for(e=0;e<24;e++)r[e]=ut(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ht(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function jt(t,e,n){var i=7+e-n;return-(7+Ht(t,0,i).getUTCDay()-e)%7+i-1}function Wt(t,e,n,i,a){var r,s,o=1+7*(e-1)+(7+n-i)%7+jt(t,i,a);return s=o<=0?xt(r=t-1)+o:o>xt(t)?(r=t+1,o-xt(t)):(r=t,o),{year:r,dayOfYear:s}}function Bt(t,e,n){var i,a,r=jt(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?i=s+Yt(a=t.year()-1,e,n):s>Yt(t.year(),e,n)?(i=s-Yt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=s),{week:i,year:a}}function Yt(t,e,n){var i=jt(t,e,n),a=jt(t+1,e,n);return(xt(t)-i+a)/7}function qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),L("week",5),L("isoWeek",5),lt("w",X),lt("ww",X,z),lt("W",X),lt("WW",X,z),ht(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)}),Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),lt("d",X),lt("e",X),lt("E",X),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),ht(["dd","ddd","dddd"],function(t,e,n,i){var a=n._locale.weekdaysParse(t,i,n._strict);null!=a?e.d=a:_(n).invalidWeekday=t}),ht(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=st,Gt=st,Zt=st;function Xt(){function t(t,e){return e.length-t.length}var e,n,i,a,r,s=[],o=[],l=[],u=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),o.push(a),l.push(r),u.push(i),u.push(a),u.push(r);for(s.sort(t),o.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)o[e]=ut(o[e]),l[e]=ut(l[e]),u[e]=ut(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Qt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Kt(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Jt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Jt.apply(this)+E(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Jt.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),Qt("a",!0),Qt("A",!1),P("hour","h"),L("hour",13),lt("a",Kt),lt("A",Kt),lt("H",X),lt("h",X),lt("k",X),lt("HH",X,z),lt("hh",X,z),lt("kk",X,z),lt("hmm",J),lt("hmmss",Q),lt("Hmm",J),lt("Hmmss",Q),ct(["H","HH"],mt),ct(["k","kk"],function(t,e,n){var i=k(t);e[mt]=24===i?0:i}),ct(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ct(["h","hh"],function(t,e,n){e[mt]=k(t),_(n).bigHour=!0}),ct("hmm",function(t,e,n){var i=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i)),_(n).bigHour=!0}),ct("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i,2)),e[yt]=k(t.substr(a)),_(n).bigHour=!0}),ct("Hmm",function(t,e,n){var i=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i))}),ct("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[mt]=k(t.substr(0,i)),e[vt]=k(t.substr(i,2)),e[yt]=k(t.substr(a))});var te,ee=Dt("Hours",!0),ne={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ft,monthsShort:Pt,week:{dow:0,doy:6},weekdays:Vt,weekdaysMin:zt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},ie={},ae={};function re(t){return t?t.toLowerCase().replace("_","-"):t}function se(t){var e=null;if(!ie[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=te._abbr,require("./locale/"+t),oe(e)}catch(t){}return ie[t]}function oe(t,e){var n;return t&&((n=u(e)?ue(t):le(t,e))?te=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),te._abbr}function le(t,e){if(null===e)return delete ie[t],null;var n,i=ne;if(e.abbr=t,null!=ie[t])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ie[t]._config;else if(null!=e.parentLocale)if(null!=ie[e.parentLocale])i=ie[e.parentLocale]._config;else{if(null==(n=se(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ie[t]=new A(I(i,e)),ae[t]&&ae[t].forEach(function(t){le(t.name,t.config)}),oe(t),ie[t]}function ue(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return te;if(!o(t)){if(e=se(t))return e;t=[t]}return function(t){for(var e,n,i,a,r=0;r<t.length;){for(e=(a=re(t[r]).split("-")).length,n=(n=re(t[r+1]))?n.split("-"):null;0<e;){if(i=se(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&s(a,n,!0)>=e-1)break;e--}r++}return te}(t)}function de(t){var e,n=t._a;return n&&-2===_(t).overflow&&(e=n[pt]<0||11<n[pt]?pt:n[gt]<1||n[gt]>It(n[ft],n[pt])?gt:n[mt]<0||24<n[mt]||24===n[mt]&&(0!==n[vt]||0!==n[yt]||0!==n[bt])?mt:n[vt]<0||59<n[vt]?vt:n[yt]<0||59<n[yt]?yt:n[bt]<0||999<n[bt]?bt:-1,_(t)._overflowDayOfYear&&(e<ft||gt<e)&&(e=gt),_(t)._overflowWeeks&&-1===e&&(e=_t),_(t)._overflowWeekday&&-1===e&&(e=wt),_(t).overflow=e),t}function ce(t,e,n){return null!=t?t:null!=e?e:n}function he(t){var e,n,i,a,r,s=[];if(!t._d){var o,l;for(o=t,l=new Date(y.now()),i=o._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[gt]&&null==t._a[pt]&&function(t){var e,n,i,a,r,s,o,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,s=4,n=ce(e.GG,t._a[ft],Bt(De(),1,4).year),i=ce(e.W,1),((a=ce(e.E,1))<1||7<a)&&(l=!0);else{r=t._locale._week.dow,s=t._locale._week.doy;var u=Bt(De(),r,s);n=ce(e.gg,t._a[ft],u.year),i=ce(e.w,u.week),null!=e.d?((a=e.d)<0||6<a)&&(l=!0):null!=e.e?(a=e.e+r,(e.e<0||6<e.e)&&(l=!0)):a=r}i<1||i>Yt(n,r,s)?_(t)._overflowWeeks=!0:null!=l?_(t)._overflowWeekday=!0:(o=Wt(n,i,a,r,s),t._a[ft]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(r=ce(t._a[ft],i[ft]),(t._dayOfYear>xt(r)||0===t._dayOfYear)&&(_(t)._overflowDayOfYear=!0),n=Ht(r,0,t._dayOfYear),t._a[pt]=n.getUTCMonth(),t._a[gt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[mt]&&0===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&(t._nextDay=!0,t._a[mt]=0),t._d=(t._useUTC?Ht:function(t,e,n,i,a,r,s){var o;return t<100&&0<=t?(o=new Date(t+400,e,n,i,a,r,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,a,r,s),o}).apply(null,s),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[mt]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(_(t).weekdayMismatch=!0)}}var fe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,me=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ve=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ye=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,i,a,r,s,o=t._i,l=fe.exec(o)||pe.exec(o);if(l){for(_(t).iso=!0,e=0,n=me.length;e<n;e++)if(me[e][1].exec(l[1])){a=me[e][0],i=!1!==me[e][2];break}if(null==a)return void(t._isValid=!1);if(l[3]){for(e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[3])){r=(l[2]||" ")+ve[e][0];break}if(null==r)return void(t._isValid=!1)}if(!i&&null!=r)return void(t._isValid=!1);if(l[4]){if(!ge.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=a+(r||"")+(s||""),Se(t)}else t._isValid=!1}var _e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var we={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xe(t){var e,n,i,a=_e.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(a){var r=function(t,e,n,i,a,r){var s,o=[(s=parseInt(t,10),s<=49?2e3+s:s<=999?1900+s:s),Pt.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(a,10)];return r&&o.push(parseInt(r,10)),o}(a[4],a[3],a[2],a[5],a[6],a[7]);if(n=r,i=t,(e=a[1])&&$t.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(_(i).weekdayMismatch=!0,!(i._isValid=!1)))return;t._a=r,t._tzm=function(t,e,n){if(t)return we[t];if(e)return 0;var i=parseInt(n,10),a=i%100;return(i-a)/100*60+a}(a[8],a[9],a[10]),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),_(t).rfc2822=!0}else t._isValid=!1}function Se(t){if(t._f!==y.ISO_8601)if(t._f!==y.RFC_2822){t._a=[],_(t).empty=!0;var e,n,i,a,r,s,o,l,u=""+t._i,d=u.length,c=0;for(i=V(t._f,t._locale).match(H)||[],e=0;e<i.length;e++)a=i[e],(n=(u.match((v=t,b(ot,m=a)?ot[m](v._strict,v._locale):new RegExp(ut(m.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))))||[])[0])&&(0<(r=u.substr(0,u.indexOf(n))).length&&_(t).unusedInput.push(r),u=u.slice(u.indexOf(n)+n.length),c+=n.length),B[a]?(n?_(t).empty=!1:_(t).unusedTokens.push(a),s=a,l=t,null!=(o=n)&&b(dt,s)&&dt[s](o,l._a,l,s)):t._strict&&!n&&_(t).unusedTokens.push(a);_(t).charsLeftOver=d-c,0<u.length&&_(t).unusedInput.push(u),t._a[mt]<=12&&!0===_(t).bigHour&&0<t._a[mt]&&(_(t).bigHour=void 0),_(t).parsedDateParts=t._a.slice(0),_(t).meridiem=t._meridiem,t._a[mt]=(h=t._locale,f=t._a[mt],null==(p=t._meridiem)?f:null!=h.meridiemHour?h.meridiemHour(f,p):(null!=h.isPM&&((g=h.isPM(p))&&f<12&&(f+=12),g||12!==f||(f=0)),f)),he(t),de(t)}else xe(t);else be(t);var h,f,p,g,m,v}function ke(t){var e,n,i,a,r=t._i,s=t._f;return t._locale=t._locale||ue(t._l),null===r||void 0===s&&""===r?m({nullInput:!0}):("string"==typeof r&&(t._i=r=t._locale.preparse(r)),x(r)?new w(de(r)):(c(r)?t._d=r:o(s)?function(t){var e,n,i,a,r;if(0===t._f.length)return _(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)r=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],Se(e),g(e)&&(r+=_(e).charsLeftOver,r+=10*_(e).unusedTokens.length,_(e).score=r,(null==i||r<i)&&(i=r,n=e));f(t,n||e)}(t):s?Se(t):u(n=(e=t)._i)?e._d=new Date(y.now()):c(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(i=e,null===(a=ye.exec(i._i))?(be(i),!1===i._isValid&&(delete i._isValid,xe(i),!1===i._isValid&&(delete i._isValid,y.createFromInputFallback(i)))):i._d=new Date(+a[1])):o(n)?(e._a=h(n.slice(0),function(t){return parseInt(t,10)}),he(e)):l(n)?function(t){if(!t._d){var e=O(t._i);t._a=h([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),he(t)}}(e):d(n)?e._d=new Date(n):y.createFromInputFallback(e),g(t)||(t._d=null),t))}function Te(t,e,n,i,a){var r,s={};return!0!==n&&!1!==n||(i=n,n=void 0),(l(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=t,s._f=e,s._strict=i,(r=new w(de(ke(s))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function De(t,e,n,i){return Te(t,e,n,i,!1)}y.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),y.ISO_8601=function(){},y.RFC_2822=function(){};var Ce=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Me=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()});function Ie(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return De();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Fe(t){var e=O(t),n=e.year||0,i=e.quarter||0,a=e.month||0,r=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,l=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===kt.call(Ae,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,i=0;i<Ae.length;++i)if(t[Ae[i]]){if(n)return!1;parseFloat(t[Ae[i]])!==k(t[Ae[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*l+1e3*o*60*60,this._days=+s+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=ue(),this._bubble()}function Pe(t){return t instanceof Fe}function Re(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Oe(t,n){Y(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+E(~~(t/60),2)+n+E(~~t%60,2)})}Oe("Z",":"),Oe("ZZ",""),lt("Z",rt),lt("ZZ",rt),ct(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Le(rt,t)});var Ne=/([\+\-]|\d\d)/gi;function Le(t,e){var n=(e||"").match(t);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Ne)||["-",0,0],a=60*i[1]+k(i[2]);return 0===a?0:"+"===i[0]?a:-a}function Ee(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(x(t)||c(t)?t.valueOf():De(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),y.updateOffset(n,!1),n):De(t).local()}function He(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function je(){return!!this.isValid()&&this._isUTC&&0===this._offset}y.updateOffset=function(){};var We=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Be=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ye(t,e){var n,i,a,r,s,o,l=t,u=null;return Pe(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:d(t)?(l={},e?l[e]=t:l.milliseconds=t):(u=We.exec(t))?(n="-"===u[1]?-1:1,l={y:0,d:k(u[gt])*n,h:k(u[mt])*n,m:k(u[vt])*n,s:k(u[yt])*n,ms:k(Re(1e3*u[bt]))*n}):(u=Be.exec(t))?(n="-"===u[1]?-1:1,l={y:qe(u[2],n),M:qe(u[3],n),w:qe(u[4],n),d:qe(u[5],n),h:qe(u[6],n),m:qe(u[7],n),s:qe(u[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(r=De(l.from),s=De(l.to),a=r.isValid()&&s.isValid()?(s=Ee(s,r),r.isBefore(s)?o=Ve(r,s):((o=Ve(s,r)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(l={}).ms=a.milliseconds,l.M=a.months),i=new Fe(l),Pe(t)&&b(t,"_locale")&&(i._locale=t._locale),i}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ve(t,e){var n={};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 $e(i,a){return function(t,e){var n;return null===e||isNaN(+e)||(C(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),ze(this,Ye(t="string"==typeof t?+t:t,e),i),this}}function ze(t,e,n,i){var a=e._milliseconds,r=Re(e._days),s=Re(e._months);t.isValid()&&(i=null==i||i,s&&Rt(t,Ct(t,"Month")+s*n),r&&Mt(t,"Date",Ct(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&y.updateOffset(t,r||s))}Ye.fn=Fe.prototype,Ye.invalid=function(){return Ye(NaN)};var Ue=$e(1,"add"),Ge=$e(-1,"subtract");function Ze(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(1+n,"months")-i)))||0}function Xe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ue(t))&&(this._locale=e),this)}y.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",y.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Qe(){return this._locale}function Ke(t,e){return(t%e+e)%e}function tn(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function en(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function nn(t,e){Y(0,[t,t.length],0,e)}function an(t,e,n,i,a){var r;return null==t?Bt(this,i,a).year:((r=Yt(t,i,a))<e&&(e=r),function(t,e,n,i,a){var r=Wt(t,e,n,i,a),s=Ht(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,t,e,n,i,a))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",X,z),lt("gg",X,z),lt("GGGG",tt,G),lt("gggg",tt,G),lt("GGGGG",et,Z),lt("ggggg",et,Z),ht(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=k(t)}),ht(["gg","GG"],function(t,e,n,i){e[i]=y.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),P("quarter","Q"),L("quarter",7),lt("Q",$),ct("Q",function(t,e){e[pt]=3*(k(t)-1)}),Y("D",["DD",2],"Do","date"),P("date","D"),L("date",9),lt("D",X),lt("DD",X,z),lt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),ct(["D","DD"],gt),ct("Do",function(t,e){e[gt]=k(t.match(X)[0])});var rn=Dt("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),L("dayOfYear",4),lt("DDD",K),lt("DDDD",U),ct(["DDD","DDDD"],function(t,e,n){n._dayOfYear=k(t)}),Y("m",["mm",2],0,"minute"),P("minute","m"),L("minute",14),lt("m",X),lt("mm",X,z),ct(["m","mm"],vt);var sn=Dt("Minutes",!1);Y("s",["ss",2],0,"second"),P("second","s"),L("second",15),lt("s",X),lt("ss",X,z),ct(["s","ss"],yt);var on,ln=Dt("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),L("millisecond",16),lt("S",K,$),lt("SS",K,z),lt("SSS",K,U),on="SSSS";on.length<=9;on+="S")lt(on,nt);function un(t,e){e[bt]=k(1e3*("0."+t))}for(on="S";on.length<=9;on+="S")ct(on,un);var dn=Dt("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var cn=w.prototype;function hn(t){return t}cn.add=Ue,cn.calendar=function(t,e){var n=t||De(),i=Ee(n,this).startOf("day"),a=y.calendarFormat(this,i)||"sameElse",r=e&&(M(e[a])?e[a].call(this,n):e[a]);return this.format(r||this.localeData().calendar(a,this,De(n)))},cn.clone=function(){return new w(this)},cn.diff=function(t,e,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=Ee(t,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),e=R(e)){case"year":r=Ze(this,i)/12;break;case"month":r=Ze(this,i);break;case"quarter":r=Ze(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:S(r)},cn.endOf=function(t){var e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?en:tn;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Ke(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Ke(e,1e3)-1}return this._d.setTime(e),y.updateOffset(this,!0),this},cn.format=function(t){t=t||(this.isUtc()?y.defaultFormatUtc:y.defaultFormat);var e=q(this,t);return this.localeData().postformat(e)},cn.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||De(t).isValid())?Ye({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.fromNow=function(t){return this.from(De(),t)},cn.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||De(t).isValid())?Ye({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.toNow=function(t){return this.to(De(),t)},cn.get=function(t){return M(this[t=R(t)])?this[t]():this},cn.invalidAt=function(){return _(this).overflow},cn.isAfter=function(t,e){var n=x(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},cn.isBefore=function(t,e){var n=x(t)?t:De(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},cn.isBetween=function(t,e,n,i){var a=x(t)?t:De(t),r=x(e)?e:De(e);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))},cn.isSame=function(t,e){var n,i=x(t)?t:De(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=R(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},cn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},cn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},cn.isValid=function(){return g(this)},cn.lang=Je,cn.locale=Xe,cn.localeData=Qe,cn.max=Me,cn.min=Ce,cn.parsingFlags=function(){return f({},_(this))},cn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:N[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=O(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(M(this[t=R(t)]))return this[t](e);return this},cn.startOf=function(t){var e;if(void 0===(t=R(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?en:tn;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ke(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Ke(e,6e4);break;case"second":e=this._d.valueOf(),e-=Ke(e,1e3)}return this._d.setTime(e),y.updateOffset(this,!0),this},cn.subtract=Ge,cn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},cn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},cn.toDate=function(){return new Date(this.valueOf())},cn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?q(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(n,"Z")):q(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+a)},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=Tt,cn.isLeapYear=function(){return St(this.year())},cn.weekYear=function(t){return an.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(t){return an.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},cn.month=Ot,cn.daysInMonth=function(){return It(this.year(),this.month())},cn.week=cn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},cn.isoWeek=cn.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},cn.weeksInYear=function(){var t=this.localeData()._week;return Yt(this.year(),t.dow,t.doy)},cn.isoWeeksInYear=function(){return Yt(this.year(),1,4)},cn.date=rn,cn.day=cn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},cn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},cn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,n,i=(e=t,n=this.localeData(),"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?i:i-7)},cn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},cn.hour=cn.hours=ee,cn.minute=cn.minutes=sn,cn.second=cn.seconds=ln,cn.millisecond=cn.milliseconds=dn,cn.utcOffset=function(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:He(this);if("string"==typeof t){if(null===(t=Le(rt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=He(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?ze(this,Ye(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,y.updateOffset(this,!0),this._changeInProgress=null)),this},cn.utc=function(t){return this.utcOffset(0,t)},cn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(He(this),"m")),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Le(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=je,cn.isUTC=je,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=n("dates accessor is deprecated. Use date instead.",rn),cn.months=n("months accessor is deprecated. Use month instead",Ot),cn.years=n("years accessor is deprecated. Use year instead",Tt),cn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),cn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=ke(t))._a){var e=t._isUTC?p(t._a):De(t._a);this._isDSTShifted=this.isValid()&&0<s(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var fn=A.prototype;function pn(t,e,n,i){var a=ue(),r=p().set(i,e);return a[n](r,t)}function gn(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return pn(t,e,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=pn(t,i,n,"month");return a}function mn(t,e,n,i){"boolean"==typeof t?d(e)&&(n=e,e=void 0):(e=t,t=!1,d(n=e)&&(n=e,e=void 0)),e=e||"";var a,r=ue(),s=t?r._week.dow:0;if(null!=n)return pn(e,(n+s)%7,i,"day");var o=[];for(a=0;a<7;a++)o[a]=pn(e,(a+s)%7,i,"day");return o}fn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return M(i)?i.call(e,n):i},fn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},fn.invalidDate=function(){return this._invalidDate},fn.ordinal=function(t){return this._ordinal.replace("%d",t)},fn.preparse=hn,fn.postformat=hn,fn.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return M(a)?a(t,e,n,i):a.replace(/%d/i,t)},fn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return M(n)?n(e):n.replace(/%s/i,e)},fn.set=function(t){var e,n;for(n in t)M(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},fn.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||At).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},fn.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[At.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},fn.monthsParse=function(t,e,n){var i,a,r;if(this._monthsParseExact)return function(t,e,n){var i,a,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(a=kt.call(this._shortMonthsParse,s))?a:null:-1!==(a=kt.call(this._longMonthsParse,s))?a:null:"MMM"===e?-1!==(a=kt.call(this._shortMonthsParse,s))?a:-1!==(a=kt.call(this._longMonthsParse,s))?a:null:-1!==(a=kt.call(this._longMonthsParse,s))?a:-1!==(a=kt.call(this._shortMonthsParse,s))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.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}},fn.monthsRegex=function(t){return this._monthsParseExact?(b(this,"_monthsRegex")||Et.call(this),t?this._monthsStrictRegex:this._monthsRegex):(b(this,"_monthsRegex")||(this._monthsRegex=Lt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},fn.monthsShortRegex=function(t){return this._monthsParseExact?(b(this,"_monthsRegex")||Et.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(b(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},fn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},fn.firstDayOfYear=function(){return this._week.doy},fn.firstDayOfWeek=function(){return this._week.dow},fn.weekdays=function(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?qt(n,this._week.dow):t?n[t.day()]:n},fn.weekdaysMin=function(t){return!0===t?qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},fn.weekdaysShort=function(t){return!0===t?qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},fn.weekdaysParse=function(t,e,n){var i,a,r;if(this._weekdaysParseExact)return function(t,e,n){var i,a,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=kt.call(this._weekdaysParse,s))?a:null:"ddd"===e?-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:null:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:null:"dddd"===e?-1!==(a=kt.call(this._weekdaysParse,s))?a:-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:null:"ddd"===e?-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:-1!==(a=kt.call(this._weekdaysParse,s))?a:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:null:-1!==(a=kt.call(this._minWeekdaysParse,s))?a:-1!==(a=kt.call(this._weekdaysParse,s))?a:-1!==(a=kt.call(this._shortWeekdaysParse,s))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},fn.weekdaysRegex=function(t){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(b(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},fn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(b(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Gt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},fn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(b(this,"_weekdaysRegex")||Xt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(b(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},fn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},fn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},oe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===k(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),y.lang=n("moment.lang is deprecated. Use moment.locale instead.",oe),y.langData=n("moment.langData is deprecated. Use moment.localeData instead.",ue);var vn=Math.abs;function yn(t,e,n,i){var a=Ye(e,n);return t._milliseconds+=i*a._milliseconds,t._days+=i*a._days,t._months+=i*a._months,t._bubble()}function bn(t){return t<0?Math.floor(t):Math.ceil(t)}function _n(t){return 4800*t/146097}function wn(t){return 146097*t/4800}function xn(t){return function(){return this.as(t)}}var Sn=xn("ms"),kn=xn("s"),Tn=xn("m"),Dn=xn("h"),Cn=xn("d"),Mn=xn("w"),In=xn("M"),An=xn("Q"),Fn=xn("y");function Pn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Rn=Pn("milliseconds"),On=Pn("seconds"),Nn=Pn("minutes"),Ln=Pn("hours"),En=Pn("days"),Hn=Pn("months"),jn=Pn("years"),Wn=Math.round,Bn={ss:44,s:45,m:45,h:22,d:26,M:11},Yn=Math.abs;function qn(t){return(0<t)-(t<0)||+t}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Yn(this._milliseconds)/1e3,i=Yn(this._days),a=Yn(this._months);e=S((t=S(n/60))/60),n%=60,t%=60;var r=S(a/12),s=a%=12,o=i,l=e,u=t,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var h=c<0?"-":"",f=qn(this._months)!==qn(c)?"-":"",p=qn(this._days)!==qn(c)?"-":"",g=qn(this._milliseconds)!==qn(c)?"-":"";return h+"P"+(r?f+r+"Y":"")+(s?f+s+"M":"")+(o?p+o+"D":"")+(l||u||d?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(d?g+d+"S":"")}var $n=Fe.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var t=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),t.milliseconds=vn(t.milliseconds),t.seconds=vn(t.seconds),t.minutes=vn(t.minutes),t.hours=vn(t.hours),t.months=vn(t.months),t.years=vn(t.years),this},$n.add=function(t,e){return yn(this,t,e,1)},$n.subtract=function(t,e){return yn(this,t,e,-1)},$n.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=R(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+_n(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(wn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},$n.asMilliseconds=Sn,$n.asSeconds=kn,$n.asMinutes=Tn,$n.asHours=Dn,$n.asDays=Cn,$n.asWeeks=Mn,$n.asMonths=In,$n.asQuarters=An,$n.asYears=Fn,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},$n._bubble=function(){var t,e,n,i,a,r=this._milliseconds,s=this._days,o=this._months,l=this._data;return 0<=r&&0<=s&&0<=o||r<=0&&s<=0&&o<=0||(r+=864e5*bn(wn(o)+s),o=s=0),l.milliseconds=r%1e3,t=S(r/1e3),l.seconds=t%60,e=S(t/60),l.minutes=e%60,n=S(e/60),l.hours=n%24,o+=a=S(_n(s+=S(n/24))),s-=bn(wn(a)),i=S(o/12),o%=12,l.days=s,l.months=o,l.years=i,this},$n.clone=function(){return Ye(this)},$n.get=function(t){return t=R(t),this.isValid()?this[t+"s"]():NaN},$n.milliseconds=Rn,$n.seconds=On,$n.minutes=Nn,$n.hours=Ln,$n.days=En,$n.weeks=function(){return S(this.days()/7)},$n.months=Hn,$n.years=jn,$n.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,i,a,r,s,o,l,u,d,c=this.localeData(),h=(e=!t,n=c,i=Ye(this).abs(),a=Wn(i.as("s")),r=Wn(i.as("m")),s=Wn(i.as("h")),o=Wn(i.as("d")),l=Wn(i.as("M")),u=Wn(i.as("y")),(d=a<=Bn.ss&&["s",a]||a<Bn.s&&["ss",a]||r<=1&&["m"]||r<Bn.m&&["mm",r]||s<=1&&["h"]||s<Bn.h&&["hh",s]||o<=1&&["d"]||o<Bn.d&&["dd",o]||l<=1&&["M"]||l<Bn.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=e,d[3]=0<+this,d[4]=n,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,d));return t&&(h=c.pastFuture(+this,h)),c.postformat(h)},$n.toISOString=Vn,$n.toString=Vn,$n.toJSON=Vn,$n.locale=Xe,$n.localeData=Qe,$n.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),$n.lang=Je,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),ct("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),ct("x",function(t,e,n){n._d=new Date(k(t))}),y.version="2.24.0",t=De,y.fn=cn,y.min=function(){return Ie("isBefore",[].slice.call(arguments,0))},y.max=function(){return Ie("isAfter",[].slice.call(arguments,0))},y.now=function(){return Date.now?Date.now():+new Date},y.utc=p,y.unix=function(t){return De(1e3*t)},y.months=function(t,e){return gn(t,e,"months")},y.isDate=c,y.locale=oe,y.invalid=m,y.duration=Ye,y.isMoment=x,y.weekdays=function(t,e,n){return mn(t,e,n,"weekdays")},y.parseZone=function(){return De.apply(null,arguments).parseZone()},y.localeData=ue,y.isDuration=Pe,y.monthsShort=function(t,e){return gn(t,e,"monthsShort")},y.weekdaysMin=function(t,e,n){return mn(t,e,n,"weekdaysMin")},y.defineLocale=le,y.updateLocale=function(t,e){if(null!=e){var n,i,a=ne;null!=(i=se(t))&&(a=i._config),(n=new A(e=I(a,e))).parentLocale=ie[t],ie[t]=n,oe(t)}else null!=ie[t]&&(null!=ie[t].parentLocale?ie[t]=ie[t].parentLocale:null!=ie[t]&&delete ie[t]);return ie[t]},y.locales=function(){return i(ie)},y.weekdaysShort=function(t,e,n){return mn(t,e,n,"weekdaysShort")},y.normalizeUnits=R,y.relativeTimeRounding=function(t){return void 0===t?Wn:"function"==typeof t&&(Wn=t,!0)},y.relativeTimeThreshold=function(t,e){return void 0!==Bn[t]&&(void 0===e?Bn[t]:(Bn[t]=e,"s"===t&&(Bn.ss=e-1),!0))},y.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},y.prototype=cn,y.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},y}),function(t){var e="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?t(exports):e&&(e.hljs=t({}),"function"==typeof define&&define.amd&&define([],function(){return e.hljs}))}(function(a){function y(t){return t.replace(/[&<>]/gm,function(t){return s[t]})}function c(t){return t.nodeName.toLowerCase()}function b(t,e){var n=t&&t.exec(e);return n&&0===n.index}function o(t){return i.test(t)}function _(t,e){var n,i={};for(n in t)i[n]=t[n];if(e)for(n in e)i[n]=e[n];return i}function l(t){var a=[];return function t(e,n){for(var i=e.firstChild;i;i=i.nextSibling)3===i.nodeType?n+=i.nodeValue.length:1===i.nodeType&&(a.push({event:"start",offset:n,node:i}),n=t(i,n),c(i).match(/br|hr|img|input/)||a.push({event:"stop",offset:n,node:i}));return n}(t,0),a}function w(t,e,r,n){function o(t,e,n,i){var a='<span class="'+(i?"":C.classPrefix);return(a+=t+'">')+e+(n?"":D)}function s(){h+=null!=d.sL?function(){var t="string"==typeof d.sL;if(t&&!T[d.sL])return y(f);var e=t?w(d.sL,f,!0,c[d.sL]):x(f,d.sL.length?d.sL:void 0);return 0<d.r&&(p+=e.r),t&&(c[d.sL]=e.top),o(e.language,e.value,!1,!0)}():function(){var t,e,n,i,a,r,s;if(!d.k)return y(f);for(i="",e=0,d.lR.lastIndex=0,n=d.lR.exec(f);n;)i+=y(f.substring(e,n.index)),a=d,r=n,void 0,s=u.cI?r[0].toLowerCase():r[0],(t=a.k.hasOwnProperty(s)&&a.k[s])?(p+=t[1],i+=o(t[0],y(n[0]))):i+=y(n[0]),e=d.lR.lastIndex,n=d.lR.exec(f);return i+y(f.substr(e))}(),f=""}function l(t){h+=t.cN?o(t.cN,"",!0):"",d=Object.create(t,{parent:{value:d}})}function i(t,e){if(f+=t,null==e)return s(),0;var n=function(t,e){var n,i;for(n=0,i=e.c.length;n<i;n++)if(b(e.c[n].bR,t))return e.c[n]}(e,d);if(n)return n.skip?f+=e:(n.eB&&(f+=e),s(),n.rB||n.eB||(f=e)),l(n),n.rB?0:e.length;var i=function t(e,n){if(b(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?t(e.parent,n):void 0}(d,e);if(i){var a=d;for(a.skip?f+=e:(a.rE||a.eE||(f+=e),s(),a.eE&&(f=e));d.cN&&(h+=D),d.skip||(p+=d.r),(d=d.parent)!==i.parent;);return i.starts&&l(i.starts),a.rE?0:e.length}if(function(t,e){return!r&&b(e.iR,t)}(e,d))throw new Error('Illegal lexeme "'+e+'" for mode "'+(d.cN||"<unnamed>")+'"');return f+=e,e.length||1}var u=S(t);if(!u)throw new Error('Unknown language: "'+t+'"');!function(o){function l(t){return t&&t.source||t}function u(t,e){return new RegExp(l(t),"m"+(o.cI?"i":"")+(e?"g":""))}!function e(n,t){if(!n.compiled){if(n.compiled=!0,n.k=n.k||n.bK,n.k){function i(n,t){o.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(t){var e=t.split("|");a[e[0]]=[n,e[1]?Number(e[1]):1]})}var a={};"string"==typeof n.k?i("keyword",n.k):k(n.k).forEach(function(t){i(t,n.k[t])}),n.k=a}n.lR=u(n.l||/\w+/,!0),t&&(n.bK&&(n.b="\\b("+n.bK.split(" ").join("|")+")\\b"),n.b||(n.b=/\B|\b/),n.bR=u(n.b),n.e||n.eW||(n.e=/\B|\b/),n.e&&(n.eR=u(n.e)),n.tE=l(n.e)||"",n.eW&&t.tE&&(n.tE+=(n.e?"|":"")+t.tE)),n.i&&(n.iR=u(n.i)),null==n.r&&(n.r=1),n.c||(n.c=[]);var r=[];n.c.forEach(function(e){e.v?e.v.forEach(function(t){r.push(_(e,t))}):r.push("self"===e?n:e)}),n.c=r,n.c.forEach(function(t){e(t,n)}),n.starts&&e(n.starts,t);var s=n.c.map(function(t){return t.bK?"\\.?("+t.b+")\\.?":t.b}).concat([n.tE,n.i]).map(l).filter(Boolean);n.t=s.length?u(s.join("|"),!0):{exec:function(){return null}}}}(o)}(u);var a,d=n||u,c={},h="";for(a=d;a!==u;a=a.parent)a.cN&&(h=o(a.cN,"",!0)+h);var f="",p=0;try{for(var g,m,v=0;d.t.lastIndex=v,g=d.t.exec(e);)m=i(e.substring(v,g.index),g[0]),v=g.index+m;for(i(e.substr(v)),a=d;a.parent;a=a.parent)a.cN&&(h+=D);return{r:p,value:h,language:t,top:d}}catch(t){if(t.message&&-1!==t.message.indexOf("Illegal"))return{r:0,value:y(e)};throw t}}function x(n,t){t=t||C.languages||k(T);var i={r:0,value:y(n)},a=i;return t.filter(S).forEach(function(t){var e=w(t,n,!1);e.language=t,e.r>a.r&&(a=e),e.r>i.r&&(a=i,i=e)}),a.language&&(i.second_best=a),i}function u(t){return C.tabReplace||C.useBR?t.replace(r,function(t,e){return C.useBR&&"\n"===t?"<br>":C.tabReplace?e.replace(/\t/g,C.tabReplace):void 0}):t}function e(t){var e,n,i,a,r,s=function(t){var e,n,i,a,r=t.className+" ";if(r+=t.parentNode?t.parentNode.className:"",n=f.exec(r))return S(n[1])?n[1]:"no-highlight";for(e=0,i=(r=r.split(/\s+/)).length;e<i;e++)if(o(a=r[e])||S(a))return a}(t);o(s)||(C.useBR?(e=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=t.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):e=t,r=e.textContent,i=s?w(s,r,!0):x(r),(n=l(e)).length&&((a=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=i.value,i.value=function(t,e,n){function i(){return t.length&&e.length?t[0].offset!==e[0].offset?t[0].offset<e[0].offset?t:e:"start"===e[0].event?t:e:t.length?t:e}function a(t){l+="<"+c(t)+h.map.call(t.attributes,function(t){return" "+t.nodeName+'="'+y(t.value)+'"'}).join("")+">"}function r(t){l+="</"+c(t)+">"}function s(t){("start"===t.event?a:r)(t.node)}for(var o=0,l="",u=[];t.length||e.length;){var d=i();if(l+=y(n.substring(o,d[0].offset)),o=d[0].offset,d===t){for(u.reverse().forEach(r);s(d.splice(0,1)[0]),(d=i())===t&&d.length&&d[0].offset===o;);u.reverse().forEach(a)}else"start"===d[0].event?u.push(d[0].node):u.pop(),s(d.splice(0,1)[0])}return l+y(n.substr(o))}(n,l(a),r)),i.value=u(i.value),t.innerHTML=i.value,t.className=function(t,e,n){var i=e?d[e]:n,a=[t.trim()];return t.match(/\bhljs\b/)||a.push("hljs"),-1===t.indexOf(i)&&a.push(i),a.join(" ").trim()}(t.className,s,i.language),t.result={language:i.language,re:i.r},i.second_best&&(t.second_best={language:i.second_best.language,re:i.second_best.r}))}function n(){if(!n.called){n.called=!0;var t=document.querySelectorAll("pre code");h.forEach.call(t,e)}}function S(t){return t=(t||"").toLowerCase(),T[t]||T[d[t]]}var h=[],k=Object.keys,T={},d={},i=/^(no-?highlight|plain|text)$/i,f=/\blang(?:uage)?-([\w-]+)\b/i,r=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,D="</span>",C={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},s={"&":"&","<":"<",">":">"};return a.highlight=w,a.highlightAuto=x,a.fixMarkup=u,a.highlightBlock=e,a.configure=function(t){C=_(C,t)},a.initHighlighting=n,a.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",n,!1),addEventListener("load",n,!1)},a.registerLanguage=function(e,t){var n=T[e]=t(a);n.aliases&&n.aliases.forEach(function(t){d[t]=e})},a.listLanguages=function(){return k(T)},a.getLanguage=S,a.inherit=_,a.IR="[a-zA-Z]\\w*",a.UIR="[a-zA-Z_]\\w*",a.NR="\\b\\d+(\\.\\d+)?",a.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",a.BNR="\\b(0b[01]+)",a.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",a.BE={b:"\\\\[\\s\\S]",r:0},a.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[a.BE]},a.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[a.BE]},a.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},a.C=function(t,e,n){var i=a.inherit({cN:"comment",b:t,e:e,c:[]},n||{});return i.c.push(a.PWM),i.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),i},a.CLCM=a.C("//","$"),a.CBCM=a.C("/\\*","\\*/"),a.HCM=a.C("#","$"),a.NM={cN:"number",b:a.NR,r:0},a.CNM={cN:"number",b:a.CNR,r:0},a.BNM={cN:"number",b:a.BNR,r:0},a.CSSNM={cN:"number",b:a.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},a.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[a.BE,{b:/\[/,e:/\]/,r:0,c:[a.BE]}]},a.TM={cN:"title",b:a.IR,r:0},a.UTM={cN:"title",b:a.UIR,r:0},a.METHOD_GUARD={b:"\\.\\s*"+a.UIR,r:0},a}),hljs.registerLanguage("json",function(t){var e={literal:"true false null"},n=[t.QSM,t.CNM],i={e:",",eW:!0,eE:!0,c:n,k:e},a={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[t.BE],i:"\\n"},t.inherit(i,{b:/:/})],i:"\\S"},r={b:"\\[",e:"\\]",c:[t.inherit(i)],i:"\\S"};return n.splice(n.length,0,a,r),{c:n,k:e,i:"\\S"}}),function(v,n,y,b){var a=v.fn.peity=function(n,i){return e&&this.each(function(){var t=v(this),e=t.data("_peity");e?(n&&(e.type=n),v.extend(e.opts,i)):(e=new r(t,n,v.extend({},a.defaults[n],t.data("peity"),i)),t.change(function(){e.draw()}).data("_peity",e)),e.draw()}),this},r=function(t,e,n){this.$el=t,this.type=e,this.opts=n},t=r.prototype,_=t.svgElement=function(t,e){return v(n.createElementNS("http://www.w3.org/2000/svg",t)).attr(e)},e="createElementNS"in n&&_("svg",{})[0].createSVGRect;t.draw=function(){var t=this.opts;a.graphers[this.type].call(this,t),t.after&&t.after.call(this,t)},t.fill=function(){var n=this.opts.fill;return v.isFunction(n)?n:function(t,e){return n[e%n.length]}},t.prepare=function(t,e){return this.$svg||this.$el.hide().after(this.$svg=_("svg",{class:"peity"})),this.$svg.empty().data("peity",this).attr({height:e,width:t})},t.values=function(){return v.map(this.$el.text().split(this.opts.delimiter),function(t){return parseFloat(t)})},a.defaults={},a.graphers={},a.register=function(t,e,n){this.defaults[t]=e,this.graphers[t]=n},a.register("pie",{fill:["#ff9900","#fff4dd","#ffc66e"],radius:8},function(t){if(!t.delimiter){var e=this.$el.text().match(/[^0-9\.]/);t.delimiter=e?e[0]:","}if(e=v.map(this.values(),function(t){return 0<t?t:0}),"/"==t.delimiter)e=[i=e[0],y.max(0,e[1]-i)];for(var n=0,i=e.length,a=0;n<i;n++)a+=e[n];a||(i=2,e=[0,a=1]);var r=2*t.radius,s=(n=(r=this.prepare(t.width||r,t.height||r)).width(),r.height()),o=n/2,l=s/2;s=y.min(o,l),t=t.innerRadius;"donut"!=this.type||t||(t=.5*s);var u=y.PI,d=this.fill(),c=this.scale=function(t,e){var n=t/a*u*2-u/2;return[e*y.cos(n)+o,e*y.sin(n)+l]},h=0;for(n=0;n<i;n++){var f=e[n];if(0!=(m=f/a)){if(1==m)if(t)var p=l-s,g=l-t,m=_("path",{d:["M",o,p,"A",s,s,0,1,1,m=o-.01,p,"L",m,g,"A",t,t,0,1,0,o,g].join(" ")});else m=_("circle",{cx:o,cy:l,r:s});else p=h+f,g=["M"].concat(c(h,s),"A",s,s,0,.5<m?1:0,1,c(p,s),"L"),t?g=g.concat(c(p,t),"A",t,t,0,.5<m?1:0,0,c(h,t)):g.push(o,l),h+=f,m=_("path",{d:g.join(" ")});m.attr("fill",d.call(this,f,n,e)),r.append(m)}}}),a.register("donut",v.extend(!0,{},a.defaults.pie),function(t){a.graphers.pie.call(this,t)}),a.register("line",{delimiter:",",fill:"#c6d9fd",height:16,min:0,stroke:"#4d89f9",strokeWidth:1,width:32},function(t){var e=this.values();1==e.length&&e.push(e[0]);for(var n=y.max.apply(y,t.max==b?e:e.concat(t.max)),i=y.min.apply(y,t.min==b?e:e.concat(t.min)),a=this.prepare(t.width,t.height),r=t.strokeWidth,s=a.width(),o=a.height()-r,l=n-i,u=(n=this.x=function(t){return t*(s/(e.length-1))},this.y=function(t){var e=o;return l&&(e-=(t-i)/l*o),e+r/2}),d=u(y.max(i,0)),c=[0,d],h=0;h<e.length;h++)c.push(n(h),u(e[h]));c.push(s,d),t.fill&&a.append(_("polygon",{fill:t.fill,points:c.join(" ")})),r&&a.append(_("polyline",{fill:"none",points:c.slice(2,c.length-2).join(" "),stroke:t.stroke,"stroke-width":r,"stroke-linecap":"square"}))}),a.register("bar",{delimiter:",",fill:["#4D89F9"],height:16,min:0,padding:.1,width:32},function(t){for(var e=this.values(),n=y.max.apply(y,t.max==b?e:e.concat(t.max)),i=y.min.apply(y,t.min==b?e:e.concat(t.min)),a=this.prepare(t.width,t.height),r=a.width(),s=a.height(),o=n-i,l=(t=t.padding,this.fill()),u=this.x=function(t){return t*r/e.length},d=this.y=function(t){return s-(o?(t-i)/o*s:1)},c=0;c<e.length;c++){var h,f=u(c+t),p=u(c+1-t)-f,g=e[c],m=d(g),v=m;o?g<0?v=d(y.min(n,0)):m=d(y.max(i,0)):h=1,0==(h=m-v)&&(h=1,0<n&&o&&v--),a.append(_("rect",{fill:l.call(this,g,c,e),x:f,y:v,width:p,height:h}))}})}(jQuery,document,Math),function(){var o,t,a,s,r={}.hasOwnProperty;function e(){this.options_index=0,this.parsed=[]}function n(t,e){this.form_field=t,this.options=null!=e?e:{},this.label_click_handler=function(t,e){return function(){return t.apply(e,arguments)}}(this.label_click_handler,this),n.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}function i(){return i.__super__.constructor.apply(this,arguments)}e.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},e.prototype.add_group=function(t){var e,n,i,a,r,s;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:t.label,title:t.title?t.title:void 0,children:0,disabled:t.disabled,classes:t.className}),s=[],n=0,i=(r=t.childNodes).length;n<i;n++)a=r[n],s.push(this.add_option(a,e,t.disabled));return s},e.prototype.add_option=function(t,e,n){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,title:t.title?t.title:void 0,selected:t.selected,disabled:!0===n?n:t.disabled,group_array_index:e,group_label:null!=e?this.parsed[e].label:null,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},(s=e).select_to_array=function(t){var e,n,i,a,r;for(a=new s,n=0,i=(r=t.childNodes).length;n<i;n++)e=r[n],a.add_node(e);return a.parsed},n.prototype.set_default_values=function(){var e,n;return this.click_test_action=(e=this,function(t){return e.test_active_click(t)}),this.activate_action=(n=this,function(t){return n.activate_field(t)}),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},n.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||n.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||n.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||n.default_no_result_text},n.prototype.choice_label=function(t){return this.include_group_label_in_selected&&null!=t.group_label?"<b class='group-name'>"+this.escape_html(t.group_label)+"</b>"+t.html:t.html},n.prototype.mouse_enter=function(){return this.mouse_on_container=!0},n.prototype.mouse_leave=function(){return this.mouse_on_container=!1},n.prototype.input_focus=function(t){if(this.is_multiple){if(!this.active_field)return setTimeout((e=this,function(){return e.container_mousedown()}),50)}else if(!this.active_field)return this.activate_field();var e},n.prototype.input_blur=function(t){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((e=this,function(){return e.blur_test()}),100);var e},n.prototype.label_click_handler=function(t){return this.is_multiple?this.container_mousedown(t):this.activate_field()},n.prototype.results_option_build=function(t){var e,n,i,a,r,s,o;for(e="",a=o=0,r=(s=this.results_data).length;a<r&&((i="")!==(i=(n=s[a]).group?this.result_add_group(n):this.result_add_option(n))&&(o++,e+=i),(null!=t?t.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(o>=this.max_shown_results));a++);return e},n.prototype.result_add_option=function(t){var e,n;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),(n=document.createElement("li")).className=e.join(" "),t.style&&(n.style.cssText=t.style),n.setAttribute("data-option-array-index",t.array_index),n.innerHTML=t.highlighted_html||t.html,t.title&&(n.title=t.title),this.outerHTML(n)):""},n.prototype.result_add_group=function(t){var e,n;return(t.search_match||t.group_match)&&0<t.active_options?((e=[]).push("group-result"),t.classes&&e.push(t.classes),(n=document.createElement("li")).className=e.join(" "),n.innerHTML=t.highlighted_html||this.escape_html(t.label),t.title&&(n.title=t.title),this.outerHTML(n)):""},n.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},n.prototype.reset_single_select_options=function(){var t,e,n,i,a;for(a=[],t=0,e=(n=this.results_data).length;t<e;t++)(i=n[t]).selected?a.push(i.selected=!1):a.push(void 0);return a},n.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},n.prototype.results_search=function(t){return this.results_showing?this.winnow_results():this.results_show()},n.prototype.winnow_results=function(t){var e,n,i,a,r,s,o,l,u,d,c,h,f,p,g;for(this.no_results_clear(),d=0,e=(o=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),u=this.get_search_regex(e),i=0,a=(l=this.results_data).length;i<a;i++)(r=l[i]).search_match=!1,h=c=null,r.highlighted_html="",this.include_option_in_results(r)&&(r.group&&(r.group_match=!1,r.active_options=0),null!=r.group_array_index&&this.results_data[r.group_array_index]&&(0===(c=this.results_data[r.group_array_index]).active_options&&c.search_match&&(d+=1),c.active_options+=1),g=r.group?r.label:r.text,r.group&&!this.group_search||(h=this.search_string_match(g,u),r.search_match=null!=h,r.search_match&&!r.group&&(d+=1),r.search_match?(o.length&&(f=h.index,s=g.slice(0,f),n=g.slice(f,f+o.length),p=g.slice(f+o.length),r.highlighted_html=this.escape_html(s)+"<em>"+this.escape_html(n)+"</em>"+this.escape_html(p)),null!=c&&(c.group_match=!0)):null!=r.group_array_index&&this.results_data[r.group_array_index].search_match&&(r.search_match=!0)));return this.result_clear_highlight(),d<1&&o.length?(this.update_results_content(""),this.no_results(o)):(this.update_results_content(this.results_option_build()),(null!=t?t.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},n.prototype.get_search_regex=function(t){var e,n;return n=this.search_contains?t:"(^|\\s|\\b)"+t+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),e=this.case_sensitive_search?"":"i",new RegExp(n,e)},n.prototype.search_string_match=function(t,e){var n;return n=e.exec(t),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},n.prototype.choices_count=function(){var t,e,n;if(null!=this.selected_option_count)return this.selected_option_count;for(t=this.selected_option_count=0,e=(n=this.form_field.options).length;t<e;t++)n[t].selected&&(this.selected_option_count+=1);return this.selected_option_count},n.prototype.choices_click=function(t){if(t.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},n.prototype.keydown_checker=function(t){var e,n;switch(n=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),8!==n&&this.pending_backstroke&&this.clear_backstroke(),n){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},n.prototype.keyup_checker=function(t){var e,n;switch(n=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),n){case 8:this.is_multiple&&this.backstroke_length<1&&0<this.choices_count()?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:t.preventDefault(),this.results_showing&&this.result_select(t);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},n.prototype.clipboard_event_checker=function(t){var e;if(!this.is_disabled)return setTimeout((e=this,function(){return e.results_search()}),50)},n.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},n.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected||!this.display_disabled_options&&t.disabled||t.empty)},n.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},n.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},n.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},n.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:((e=document.createElement("div")).appendChild(t),e.innerHTML)},n.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},n.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},n.prototype.get_no_results_html=function(t){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(t)+"</span>\n</li>"},n.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?8<=document.documentMode:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},n.default_multiple_text="Select Some Options",n.default_single_text="Select an Option",n.default_no_result_text="No results match",t=n,(o=jQuery).fn.extend({chosen:function(i){return t.browser_is_supported()?this.each(function(t){var e,n;n=(e=o(this)).data("chosen"),"destroy"!==i?n instanceof a||e.data("chosen",new a(this,i)):n instanceof a&&n.destroy()}):this}}),function(t,e){for(var n in e)r.call(e,n)&&(t[n]=e[n]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(i,t),i.prototype.setup=function(){return this.form_field_jq=o(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},i.prototype.set_up_html=function(){var t,e;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),e={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(e.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=o("<div />",e),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},i.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},i.prototype.register_observers=function(){var e,n,i,a,r,s,o,l,u,d,c,h,f,p,g,m,v,y,b,_,w,x,S,k;return this.container.on("touchstart.chosen",(e=this,function(t){e.container_mousedown(t)})),this.container.on("touchend.chosen",(n=this,function(t){n.container_mouseup(t)})),this.container.on("mousedown.chosen",(i=this,function(t){i.container_mousedown(t)})),this.container.on("mouseup.chosen",(a=this,function(t){a.container_mouseup(t)})),this.container.on("mouseenter.chosen",(r=this,function(t){r.mouse_enter(t)})),this.container.on("mouseleave.chosen",(s=this,function(t){s.mouse_leave(t)})),this.search_results.on("mouseup.chosen",(o=this,function(t){o.search_results_mouseup(t)})),this.search_results.on("mouseover.chosen",(l=this,function(t){l.search_results_mouseover(t)})),this.search_results.on("mouseout.chosen",(u=this,function(t){u.search_results_mouseout(t)})),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",(d=this,function(t){d.search_results_mousewheel(t)})),this.search_results.on("touchstart.chosen",(c=this,function(t){c.search_results_touchstart(t)})),this.search_results.on("touchmove.chosen",(h=this,function(t){h.search_results_touchmove(t)})),this.search_results.on("touchend.chosen",(f=this,function(t){f.search_results_touchend(t)})),this.form_field_jq.on("chosen:updated.chosen",(p=this,function(t){p.results_update_field(t)})),this.form_field_jq.on("chosen:activate.chosen",(g=this,function(t){g.activate_field(t)})),this.form_field_jq.on("chosen:open.chosen",(m=this,function(t){m.container_mousedown(t)})),this.form_field_jq.on("chosen:close.chosen",(v=this,function(t){v.close_field(t)})),this.search_field.on("blur.chosen",(y=this,function(t){y.input_blur(t)})),this.search_field.on("keyup.chosen",(b=this,function(t){b.keyup_checker(t)})),this.search_field.on("keydown.chosen",(_=this,function(t){_.keydown_checker(t)})),this.search_field.on("focus.chosen",(w=this,function(t){w.input_focus(t)})),this.search_field.on("cut.chosen",(x=this,function(t){x.clipboard_event_checker(t)})),this.search_field.on("paste.chosen",(S=this,function(t){S.clipboard_event_checker(t)})),this.is_multiple?this.search_choices.on("click.chosen",(k=this,function(t){k.choices_click(t)})):this.container.on("click.chosen",function(t){t.preventDefault()})},i.prototype.destroy=function(){return o(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),0<this.form_field_label.length&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},i.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},i.prototype.container_mousedown=function(t){var e;if(!this.is_disabled)return!t||"mousedown"!==(e=t.type)&&"touchstart"!==e||this.results_showing||t.preventDefault(),null!=t&&o(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||o(t.target)[0]!==this.selected_item[0]&&!o(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),o(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},i.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},i.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e*=40),this.search_results.scrollTop(e+this.search_results.scrollTop())},i.prototype.blur_test=function(t){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},i.prototype.close_field=function(){return o(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},i.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},i.prototype.test_active_click=function(t){var e;return(e=o(t.target).closest(".chosen-container")).length&&this.container[0]===e[0]?this.active_field=!0:this.close_field()},i.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=s.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},i.prototype.result_do_highlight=function(t){var e,n,i,a;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),(i=parseInt(this.search_results.css("maxHeight"),10))+(a=this.search_results.scrollTop())<=(e=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight()))return this.search_results.scrollTop(0<e-i?e-i:0);if(n<a)return this.search_results.scrollTop(n)}},i.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},i.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},i.prototype.update_results_content=function(t){return this.search_results.html(t)},i.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},i.prototype.set_tab_index=function(t){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},i.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=o("label[for='"+this.form_field.id+"']")),0<this.form_field_label.length)return this.form_field_label.on("click.chosen",this.label_click_handler)},i.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},i.prototype.search_results_mouseup=function(t){var e;if((e=o(t.target).hasClass("active-result")?o(t.target):o(t.target).parents(".active-result").first()).length)return this.result_highlight=e,this.result_select(t),this.search_field.focus()},i.prototype.search_results_mouseover=function(t){var e;if(e=o(t.target).hasClass("active-result")?o(t.target):o(t.target).parents(".active-result").first())return this.result_do_highlight(e)},i.prototype.search_results_mouseout=function(t){if(o(t.target).hasClass("active-result")||o(t.target).parents(".active-result").first())return this.result_clear_highlight()},i.prototype.choice_build=function(t){var e,n,i;return e=o("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?e.addClass("search-choice-disabled"):((n=o("<a />",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",(i=this,function(t){return i.choice_destroy_link_click(t)})),e.append(n)),this.search_container.before(e)},i.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(o(t.target))},i.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&0<this.choices_count()&&this.get_search_field_value().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},i.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},i.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},i.prototype.result_select=function(t){var e,n;if(this.result_highlight)return e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),e.addClass("result-selected"),(n=this.results_data[e[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||t.metaKey||t.ctrlKey)?t.metaKey||t.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),!this.is_multiple&&this.form_field.selectedIndex===this.current_selectedIndex||this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,t.preventDefault(),this.search_field_scale())},i.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(t)},i.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},i.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},i.prototype.get_search_field_value=function(){return this.search_field.val()},i.prototype.get_search_text=function(){return o.trim(this.get_search_field_value())},i.prototype.escape_html=function(t){return o("<div/>").text(t).html()},i.prototype.winnow_results_set_highlight=function(){var t,e;if(null!=(t=(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?e.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(t)},i.prototype.no_results=function(t){var e;return e=this.get_no_results_html(t),this.search_results.append(e),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},i.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},i.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},i.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(t.first()):(0<this.choices_count()&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},i.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last()).length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},i.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},i.prototype.search_field_scale=function(){var t,e,n,i,a,r,s;if(this.is_multiple){for(a={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},e=0,n=(r=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;e<n;e++)a[i=r[e]]=this.search_field.css(i);return(t=o("<div />").css(a)).text(this.get_search_field_value()),o("body").append(t),s=t.width()+25,t.remove(),this.container.is(":visible")&&(s=Math.min(this.container.outerWidth()-10,s)),this.search_field.width(s)}},i.prototype.trigger_form_field_change=function(t){return this.form_field_jq.trigger("input",t),this.form_field_jq.trigger("change",t)},a=i}.call(this);var isSpecificRoute=null!=document.location.hash.match(/&modFile=/),SWSLayout=function(){this.name="swagger-stats",this.startpage="sws_summary",this.loginpage="sws_login",this.pages={sws_summary:{},sws_requests:{},sws_errors:{},sws_lasterrors:{},sws_longestreq:{},sws_rates:{},sws_payload:{},sws_api:{},sws_apiop:{},sws_login:{},pjs_popout:{}},SWSLayout.prototype.init=function(t){this.defineSummaryPage(),this.defineRequestsPage(),this.defineErrorsPage(),this.defineLastErrorsPage(),this.defineLongestReqPage(),this.defineRatesPage(),this.definePayloadPage(),this.defineApiPage(),this.defineApiOpPage(),this.defineLoginPage(),this.definePopoutPage()},SWSLayout.prototype.defineSummaryPage=function(t){this.pages.sws_summary={title:"Summary",icon:"fa-line-chart",datevent:"sws-ondata-summary",getdata:{type:"get",url:"stats",data:{fields:["timeline","apidefs","apistats"]}},rows:{r0:{class:"sws-row-hdr",columns:{sws_summ_title:{class:"col-md-4",type:"title"},sws_summ_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_summ_wRq:{class:"col-md-2",type:"widget",title:"Requests",subtitle:"Total requests received"},sws_summ_wApd:{class:"col-md-2",type:"widget",title:"Apdex Score",subtitle:"Overall Apdex Score",postProcess:"successIfNonZero"},sws_summ_wRRte:{class:"col-md-2",type:"widget",title:"Current Req Rate",subtitle:"Req rate on last time interval",postProcess:"successIfNonZero"},sws_summ_wERte:{class:"col-md-2",type:"widget",title:"Current Err Rate",subtitle:"Err rate on last time interval",postProcess:"redIfNonZero"},sws_summ_wCpu:{class:"col-md-2",type:"widget",title:"CPU Usage",subtitle:"Process CPU Usage %",postProcess:"redIfNonZero"},sws_summ_wMem:{class:"col-md-2",type:"widget",title:"Memory Usage",subtitle:"Used Heap",postProcess:"redIfNonZero"}}},r2:{columns:{sws_summ_wErr:{class:"col-md-2",type:"widget",title:"Errors",subtitle:"Total Error Responses",postProcess:"redIfNonZero"},sws_summ_wSs:{class:"col-md-2",type:"widget",title:"Success",subtitle:"Success Responses",postProcess:"successIfNonZero"},sws_summ_wRed:{class:"col-md-2",type:"widget",title:"Redirect",subtitle:"Redirect Responses"},sws_summ_wCe:{class:"col-md-2",type:"widget",title:"Client Error",subtitle:"Client Error Responses",postProcess:"redIfNonZero"},sws_summ_wSe:{class:"col-md-2",type:"widget",title:"Server Error",subtitle:"Server Error Responses",postProcess:"redIfNonZero"},sws_summ_wAHt:{class:"col-md-2",type:"widget",title:"Avg HT",subtitle:"Average Handle Time"}}},r3:{columns:{sws_summ_cCpu:{class:"col-lg-12",type:"chart",options:{title:"CPU Usage % over last 60 minutes",type:"line",height:"140px"},chartdata:{labels:[],datasets:[{label:"CPU",borderColor:"#FCE38A",backgroundColor:"#FCE38A",data:[]}]},chartoptions:{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},scales:{xAxes:[],yAxes:[{ticks:{callback:function(t,e,n){return t.toFixed(1)+" %"}}}]}}}}},r5:{columns:{sws_summ_cTl:{class:"col-lg-12",type:"chart",options:{title:"Request and Responses over last 60 minutes",type:"bar",height:"360px"},chartdata:{labels:[],datasets:[{label:"Success",type:"bar",borderColor:"#95E1D3",backgroundColor:"#95E1D3",data:[]},{label:"Redirect",type:"bar",borderColor:"#EAFFD0",backgroundColor:"#EAFFD0",data:[]},{label:"Client Error",type:"bar",borderColor:"#FCE38A",backgroundColor:"#FCE38A",data:[]},{label:"Server Error",type:"bar",borderColor:"#F38181",backgroundColor:"#F38181",data:[]}]},chartoptions:{responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{stacked:!0}],yAxes:[{stacked:!0}]}}}}}}}},SWSLayout.prototype.defineRequestsPage=function(t){this.pages.sws_requests={title:"Requests",icon:"fa-exchange",datevent:"sws-ondata-requests",getdata:{type:"get",url:"stats",data:{fields:["method"]}},rows:{r0:{class:"sws-row-hdr",columns:{sws_req_title:{class:"col-md-4",type:"title"},sws_req_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_req_tRbM:{class:"col-lg-12",type:"datatable",options:{},dataTableSettings:{pageLength:25,columns:[{title:"Method",width:"10%",render:function(t,e,n,i){return'<span class="badge badge-table badge-info">'+t+"</span>"}},{title:"Requests",class:"strong"},{title:"Responses"},{title:"Processing",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-warning">'+t+"</span>":t}},{title:"Errors",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Req Rate"},{title:"Err Rate",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Success"},{title:"Redirect"},{title:"Client Error",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Server Error",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Apdex Score",render:function(t,e,n,i){return t<.5?'<span class="badge badge-table badge-warning">'+t+"</span>":t}},{title:"Total Time(ms)",visible:!1},{title:"Max Handle Time(ms)"},{title:"Avg Handle Time(ms)"},{title:"Total Req Payload",visible:!1},{title:"Max Req Payload",visible:!1},{title:"Avg Req Payload"},{title:"Total Res Payload",visible:!1},{title:"Max Res Payload",visible:!1},{title:"Avg Res Payload"}],responsive:!0,bPaginate:!1,bFilter:!1,bInfo:!1,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv","colvis"],order:[[1,"desc"]]}}}},r2:{columns:{sws_req_cRbM:{class:"col-lg-4",type:"chart",options:{title:"Requests By Method",height:"100px"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{position:"right"},animation:{animateScale:!0,animateRotate:!0}}},sws_req_cEbM:{class:"col-lg-4",type:"chart",options:{title:"Errors By Method",height:"100px",type:"doughnut"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{position:"right"},animation:{animateScale:!0,animateRotate:!0}}},sws_req_cRTime:{class:"col-lg-4",type:"chart",options:{title:"Avg Handle Time",height:"100px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0}}}}},r3:{columns:{sws_req_cRProc:{class:"col-lg-4",type:"chart",options:{title:"Requests in processing",height:"100px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0}}},sws_req_cRRbM:{class:"col-lg-4",type:"chart",options:{title:"Request Rate By Method",height:"100px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0}}},sws_req_cERbM:{class:"col-lg-4",type:"chart",options:{title:"Error Rate By Method",height:"100px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0}}}}}}}},SWSLayout.prototype.defineErrorsPage=function(t){var e={title:"Errors",icon:"fa-exclamation-circle",datevent:"sws-ondata-errors",getdata:{type:"get",url:"stats",data:{fields:["errors"]}},rows:{r0:{class:"sws-row-hdr",columns:{sws_err_title:{class:"col-md-4",type:"title"},sws_err_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_err_tCode:{class:"col-lg-4",type:"datatable",options:{title:"Errors by Status Code"},dataTableSettings:{pageLength:5,columns:[{title:"Status Code",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Reason-Phrase"},{title:"Count",class:"strong"}],responsive:!0,bPaginate:!0,bLengthChange:!1,bFilter:!0,bInfo:!1,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv"],order:[[2,"desc"]]}},sws_err_cCode:{class:"col-lg-8",type:"chart",options:{title:"Errors by Status Code",height:"310px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],borderColor:"#F38181",backgroundColor:"#F38181"}]},chartoptions:{responsive:!0,maintainAspectRatio:!1,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0},tooltips:{callbacks:{title:function(t,e){var n=t[0].xLabel;return n+" "+(n in $.swsui.httpStatusCodes?$.swsui.httpStatusCodes[n]:"")}}}}}}},r2:{columns:{sws_err_t404:{class:"col-lg-6",type:"datatable",options:{title:"Top 404 Not Found Path Count"},dataTableSettings:{pageLength:10,columns:[{title:"Not Found Path",class:"strong"},{title:"Count",class:"strong"}],responsive:!0,bPaginate:!0,bFilter:!0,bInfo:!1,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv"],order:[[1,"desc"]]}},sws_err_t500:{class:"col-lg-6",type:"datatable",options:{title:"Top 500 Internal Server Error Path Count"},dataTableSettings:{pageLength:10,columns:[{title:"Server Error Path",class:"strong"},{title:"Count",class:"strong"}],responsive:!0,bPaginate:!0,bFilter:!0,bInfo:!1,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv"],order:[[1,"desc"]]}}}}}};this.pages.sws_errors=e},SWSLayout.prototype.defineLastErrorsPage=function(t){var e={title:"Last Errors",icon:"fa-exclamation",datevent:"sws-ondata-lasterrors",getdata:{type:"get",url:"stats",data:{fields:["lasterrors"]}},rows:{r0:{class:"sws-row-hdr",columns:{sws_lerr_title:{class:"col-md-4",type:"title"},sws_lerr_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_lerr_tErr:{class:"col-lg-12",type:"datatable",options:{expand:!0},dataTableSettings:{pageLength:25,columns:[{title:"",width:"0%",searchable:!1,orderable:!1,class:"sws-row-expand text-center cursor-pointer",render:function(t,e,n,i){return'<i class="fa fa-caret-right">'}},{title:"Time",width:"20%"},{title:"Method",render:function(t,e,n,i){return'<span class="badge badge-table badge-info">'+t+"</span>"}},{title:"Path",width:"30%"},{title:"Response Time"},{title:"Code",class:"strong"},{title:"Class"},{title:"Phrase",width:"30%"}],responsive:!0,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv"],order:[[1,"desc"]]},showDetails:function(t){t.child('<pre><code class="json">'+t.data()[8]+"</code></pre>").show(),$("pre code:not(.hljs)").each(function(t,e){hljs.highlightBlock(e)})}}}}}};this.pages.sws_lasterrors=e},SWSLayout.prototype.defineLongestReqPage=function(t){var e={title:"Longest Requests",icon:"fa-hourglass-end",datevent:"sws-ondata-longestreq",getdata:{type:"get",url:"stats",data:{fields:["longestreq"]}},rows:{r0:{class:"sws-row-hdr",columns:{sws_lreq_title:{class:"col-md-4",type:"title"},sws_lreq_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_lreq_tReq:{class:"col-lg-12",type:"datatable",options:{expand:!0},dataTableSettings:{pageLength:25,columns:[{title:"",width:"0%",searchable:!1,orderable:!1,class:"sws-row-expand text-center cursor-pointer",render:function(t,e,n,i){return'<i class="fa fa-caret-right">'}},{title:"Time",width:"20%"},{title:"Method",render:function(t,e,n,i){return'<span class="badge badge-table badge-info">'+t+"</span>"}},{title:"Path",width:"30%"},{title:"Response Time",render:function(t,e,n,i){return'<span class="badge badge-table badge-warning">'+t+"</span>"}},{title:"Code",class:"strong"},{title:"Class"},{title:"Phrase",width:"30%"}],responsive:!0,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv"],order:[[4,"desc"]]},showDetails:function(t){t.child('<pre><code class="json">'+t.data()[8]+"</code></pre>").show(),$("pre code:not(.hljs)").each(function(t,e){hljs.highlightBlock(e)})}}}}}};this.pages.sws_longestreq=e},SWSLayout.prototype.defineRatesPage=function(t){this.pages.sws_rates={title:"Rates & Durations",icon:"fa-clock-o",datevent:"sws-ondata-rates",getdata:{type:"get",url:"stats",data:{fields:["timeline"]}},rows:{r0:{class:"sws-row-hdr",columns:{sws_rates_title:{class:"col-md-4",type:"title"},sws_rates_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_rates_wApd:{class:"col-md-2",type:"widget",title:"Current Apdex Score",subtitle:"Apdex Score on last time interval",postProcess:"successIfNonZero"},sws_rates_wRqR:{class:"col-md-2",type:"widget",title:"Current Req Rate",subtitle:"Req rate on last time interval",postProcess:"successIfNonZero"},sws_rates_wErR:{class:"col-md-2",type:"widget",title:"Current Err Rate",subtitle:"Err rate on last time interval",postProcess:"redIfNonZero"},sws_rates_wMHT:{class:"col-md-2",type:"widget",title:"Current Max HT",subtitle:"Longest Req on last 60 sec",postProcess:"successIfNonZero"},sws_rates_wAHT:{class:"col-md-2",type:"widget",title:"Current Avg HT",subtitle:"Avg Handle Time on last 60 sec",postProcess:"successIfNonZero"},sws_rates_wSHT:{class:"col-md-2",type:"widget",title:"Current Sum HT",subtitle:"Sum Handle Time on last 60 sec",postProcess:"successIfNonZero"}}},r2:{columns:{sws_rates_wOApd:{class:"col-md-2",type:"widget",title:"Overall Apdex Score",subtitle:"Apdex Score of all time",postProcess:"successIfNonZero"},sws_rates_wORqR:{class:"col-md-2",type:"widget",title:"Overall Req Rate",subtitle:"Req rate of all time",postProcess:"successIfNonZero"},sws_rates_wOErR:{class:"col-md-2",type:"widget",title:"Overall Err Rate",subtitle:"Err rate of all time",postProcess:"redIfNonZero"},sws_rates_wOMHT:{class:"col-md-2",type:"widget",title:"Overall Max HT",subtitle:"Longest Req of all time"},sws_rates_wOAHT:{class:"col-md-2",type:"widget",title:"Overall Avg HT",subtitle:"Avg Handle Time of all time"},sws_rates_wOSHT:{class:"col-md-2",type:"widget",title:"Overall HT",subtitle:"Sum Handle Time of all time"}}},r3:{columns:{sws_rates_cApd:{class:"col-lg-12",type:"chart",options:{title:"Apdex Score Trend",type:"line",height:"140px"},chartdata:{labels:[],datasets:[{label:"Apdex Score",borderColor:"#FCE38A",backgroundColor:"#FCE38A",data:[]}]},chartoptions:{responsive:!0,maintainAspectRatio:!1,legend:{display:!1}}}}},r4:{columns:{sws_rates_cRER:{class:"col-lg-12",type:"chart",options:{title:"Requests and Errors Rate Trend",type:"line",height:"55px"},chartdata:{labels:[],datasets:[{label:"Request Rate",borderColor:"#95E1D3",backgroundColor:"#95E1D3",fill:!1,data:[]},{label:"Error Rate",borderColor:"#F38181",backgroundColor:"#F38181",fill:!1,data:[]}]},chartoptions:{responsive:!0,tooltips:{mode:"index",intersect:!1},hover:{mode:"nearest",intersect:!0}}}}}}}},SWSLayout.prototype.definePayloadPage=function(t){this.pages.sws_payload={title:"Payload",icon:"fa-file-text",datevent:"sws-ondata-payload",getdata:{type:"get",url:"stats",data:{fields:["timeline"]}},rows:{r0:{class:"sws-row-hdr",columns:{sws_payl_title:{class:"col-md-4",type:"title"},sws_payl_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_payl_wTRqP:{class:"col-md-2",type:"widget",title:"Received",subtitle:"Sum requests content len",postProcess:"successIfNonZero"},sws_payl_wMRqP:{class:"col-md-2",type:"widget",title:"Max Req Payload",subtitle:"Max request content len",postProcess:"successIfNonZero"},sws_payl_wARqP:{class:"col-md-2",type:"widget",title:"Avg Req Payload",subtitle:"Avg request content len",postProcess:"successIfNonZero"},sws_payl_wTRsP:{class:"col-md-2",type:"widget",title:"Sent",subtitle:"Sum response content len",postProcess:"successIfNonZero"},sws_payl_wMRsP:{class:"col-md-2",type:"widget",title:"Max Res Payload",subtitle:"Max response content len",postProcess:"successIfNonZero"},sws_payl_wARsP:{class:"col-md-2",type:"widget",title:"Avg Res Payload",subtitle:"Avg response content len",postProcess:"successIfNonZero"}}},r2:{columns:{sws_payl_cRqPl:{class:"col-lg-12",type:"chart",options:{title:"Requests payload over last 60 min",type:"line",height:"55px"},chartdata:{labels:[],datasets:[{label:"Received",borderColor:"#95E1D3",backgroundColor:"#95E1D3",fill:!1,data:[]},{label:"Avg Request Payload",borderColor:"#FCE38A",backgroundColor:"#FCE38A",fill:!1,data:[]},{label:"Max Request Payload",borderColor:"#F38181",backgroundColor:"#F38181",fill:!1,data:[]}]},chartoptions:{responsive:!0,tooltips:{mode:"index",intersect:!1},hover:{mode:"nearest",intersect:!0}}}}},r3:{columns:{sws_payl_cRsPl:{class:"col-lg-12",type:"chart",options:{title:"Responses payload over last 60 min",type:"line",height:"55px"},chartdata:{labels:[],datasets:[{label:"Sent",borderColor:"#95E1D3",backgroundColor:"#95E1D3",fill:!1,data:[]},{label:"Avg Response Payload",borderColor:"#FCE38A",backgroundColor:"#FCE38A",fill:!1,data:[]},{label:"Max Response Payload",borderColor:"#F38181",backgroundColor:"#F38181",fill:!1,data:[]}]},chartoptions:{responsive:!0,tooltips:{mode:"index",intersect:!1},hover:{mode:"nearest",intersect:!0}}}}}}}},SWSLayout.prototype.defineApiPage=function(t){this.pages.sws_api={title:"API Calls",icon:"fa-code",datevent:"sws-ondata-api",getdata:{type:"get",url:"stats",data:{fields:["apistats"]}},getfieldsonce:["apidefs"],rows:{r0:{class:"sws-row-hdr",columns:{sws_api_title:{class:"col-md-4",type:"title"},sws_api_empty:{class:"col-md-8",type:"empty"}}},r1:{columns:{sws_api_tApi:{class:"col-lg-12",type:"datatable",options:{expand:!0},dataTableSettings:{pageLength:25,columns:[{title:"",width:"0%",searchable:!1,orderable:!1,class:"sws-row-expand text-center cursor-pointer",render:function(t,e,n,i){return'<i class="fa fa-caret-right">'}},{title:"Path",width:"20%",class:"strong",render:function(t,e,n,i){return'<a href="#sws_apiop='+n[2]+","+t+'">'+t+"</a>"}},{title:"Method",render:function(t,e,n,i){return'<span class="badge badge-table badge-info">'+t+"</span>"}},{title:"Swagger"},{title:"Deprecated",visible:!1},{title:"Requests",class:"strong"},{title:"Responses"},{title:"Processing",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-warning">'+t+"</span>":t}},{title:"Errors",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Req Rate"},{title:"Err Rate",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Success"},{title:"Redirect"},{title:"Client Error",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Server Error",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Apdex Score",render:function(t,e,n,i){return t<.5?'<span class="badge badge-table badge-warning">'+t+"</span>":t}},{title:"Max Time(ms)"},{title:"Avg Time(ms)"},{title:"Avg Req Payload"},{title:"Avg Res Payload"},{title:"OperationId",visible:!1},{title:"Summary",visible:!1},{title:"Description",visible:!1},{title:"Tags"}],responsive:!0,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv","colvis"],order:[[5,"desc"]]},showDetails:function(t){var e="alert-info",n="";t.data();"Yes"==t.data()[4]&&(n="<strong>DEPRECATED</strong><br/>",e="alert-danger"),n+=""!=t.data()[19]?"<strong>operationId: </strong>"+t.data()[19]+"<br/>":"",n+=""!=t.data()[20]?"<strong>Summary: </strong>"+t.data()[20]+"<br/>":"",n+=""!=t.data()[21]?"<strong>Description: </strong>"+t.data()[21]+"<br/>":"",n+=""!=t.data()[22]?"<strong>Tags: </strong>"+t.data()[22]:"",t.child('<div class="alert '+e+'">'+n+"</div>").show()}}}}}}},SWSLayout.prototype.defineApiOpPage=function(t){var e={title:"API Operation Details",icon:"fa-asterisk",datevent:"sws-ondata-apiop",getdata:{type:"get",url:"stats",data:{fields:["apiop"]}},getfieldsonce:["apidefs","apistats"],getdataproc:function(t,e,n){if("sws_apiop"==t&&null!=e){var i=e.split(",",2);2==i.length&&(n.data.method=i[0],n.data.path=i[1])}},rows:{r0:{class:"sws-row-hdr",columns:{sws_apiop_title:{class:"col-md-4",type:"title"},sws_apiop_opsel:{class:"col-md-8",type:"apiopsel",events:["sws-onchange-apiop"]}}},r1:{columns:{sws_apiop_wPath:{class:"col-md-12",type:"widget",title:"",subtitle:"",style:"infobox"}}},r2:{columns:{sws_apiop_wRq:{class:"col-md-2",type:"widget",title:"Requests",subtitle:"Total received requests"},sws_apiop_wApd:{class:"col-md-2",type:"widget",title:"Apdex Score",subtitle:"Overall Apdex Score",postProcess:"successIfNonZero"},sws_apiop_wRRte:{class:"col-md-2",type:"widget",title:"Req Rate",subtitle:"Overall Req rate",postProcess:"successIfNonZero"},sws_apiop_wERte:{class:"col-md-2",type:"widget",title:"Err Rate",subtitle:"Overall Err rate",postProcess:"redIfNonZero"},sws_apiop_wAHt:{class:"col-md-2",type:"widget",title:"Avg HT",subtitle:"Average Handle Time"},sws_apiop_wRrCl:{class:"col-md-2",type:"widget",title:"Avg Req Payload",subtitle:"Avg req content len"}}},r3:{columns:{sws_apiop_wErr:{class:"col-md-2",type:"widget",title:"Errors",subtitle:"Total Error Responses",postProcess:"redIfNonZero"},sws_apiop_wSs:{class:"col-md-2",type:"widget",title:"Success",subtitle:"Success Responses",postProcess:"successIfNonZero"},sws_apiop_wRed:{class:"col-md-2",type:"widget",title:"Redirect",subtitle:"Redirect Responses"},sws_apiop_wCe:{class:"col-md-2",type:"widget",title:"Client Error",subtitle:"Client Error Responses",postProcess:"redIfNonZero"},sws_apiop_wSe:{class:"col-md-2",type:"widget",title:"Server Error",subtitle:"Server Error Responses",postProcess:"redIfNonZero"},sws_apiop_wReCl:{class:"col-md-2",type:"widget",title:"Avg Res Payload",subtitle:"Avg res content len"}}},r4:{columns:{sws_apiop_cHTH:{class:"col-lg-4",type:"chart",options:{title:"Handle Time Histogram (msec)",height:"100px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0}}},sws_apiop_cRqSH:{class:"col-lg-4",type:"chart",options:{title:"Request Size Histogram (bytes)",height:"100px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0}}},sws_apiop_cRsSH:{class:"col-lg-4",type:"chart",options:{title:"Response Size Histogram (bytes)",height:"100px",type:"bar"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{display:!1},animation:{animateScale:!0,animateRotate:!0}}}}},r5:{columns:{sws_apiop_cRsC:{class:"col-lg-4",type:"chart",options:{title:"Response Codes",height:"125px",type:"doughnut"},chartdata:{labels:[],datasets:[{data:[],backgroundColor:[]}]},chartoptions:{responsive:!0,legend:{position:"right"},animation:{animateScale:!0,animateRotate:!0}}},sws_apiop_tParams:{class:"col-lg-8",type:"datatable",options:{expand:!0,title:"Parameters"},dataTableSettings:{pageLength:25,columns:[{title:"",width:"1%",searchable:!1,orderable:!1,class:"sws-row-expand text-center cursor-pointer",render:function(t,e,n,i){return'<i class="fa fa-caret-right">'}},{title:"Name",class:"strong"},{title:"In",class:"strong"},{title:"Hits",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-info">'+t+"</span>":t}},{title:"Misses",render:function(t,e,n,i){return 0<t?'<span class="badge badge-table badge-danger">'+t+"</span>":t}},{title:"Type",class:"strong"},{title:"Format"},{title:"Required"},{title:"Description",width:"50%"}],responsive:!0,dom:'<"html5buttons"B>lTfgitp',buttons:["copy","csv","colvis"],order:[[1,"asc"]]},showDetails:function(t){t.child('<pre><code class="json">'+t.data()[9]+"</code></pre>").show(),$("pre code:not(.hljs)").each(function(t,e){hljs.highlightBlock(e)})}}}}}};this.pages.sws_apiop=e},SWSLayout.prototype.defineLoginPage=function(t){this.pages.sws_login={title:"Login",icon:"fa-sign-in",hidden:!0,datevent:"sws-ondata-login",getdata:{type:"get",url:"stats",data:{}},rows:{r1:{columns:{sws_login_r1c1:{class:"col-md-4",type:"empty"},sws_login_r1c2:{class:"col-md-4",type:"markup",markup:'<div class="sws-logo-xxl">{<i class="fa fa-sign-in"></i>}</div>'},sws_login_r1c3:{class:"col-md-4",type:"empty"}}},r2:{columns:{sws_login_r2c1:{class:"col-md-4",type:"empty"},sws_login_r2c2:{class:"col-md-4",type:"markup",markup:'<div class="sws-login-msg">Warning</div>\n<form>\n<div class="form-group">\n <input id="sws-login-username" class="form-control" placeholder="Username" required="">\n</div>\n<div class="form-group">\n <input id="sws-login-password" type="password" class="form-control" placeholder="Password" required="">\n</div>\n<div id="sws-login-submit" class="btn sws-btn-login">Login</div>\n</form>'},sws_login_r2c3:{class:"col-md-4",type:"empty"}}},r3:{columns:{sws_login_r3c1:{class:"col-md-12",type:"empty"}}}}}},SWSLayout.prototype.definePopoutPage=function(t){this.pages.pjs_popout={title:"Dashboard",icon:"fa-external-link",hidden:!0}}};!function(a){"use strict";function r(t,e,n){return this.$element=a(t),this.elementId=t.id,this.dataTableSettings=null,this.dataTableId=null,this.dataTable=null,this.showDetails=null,this.init(e,n),{options:this.options,init:a.proxy(this.init,this),clear:a.proxy(this.clear,this),rowadd:a.proxy(this.rowadd,this),update:a.proxy(this.update,this)}}var s="swstable",n={datatable:'<div class="swsbox float-e-margins"><div class="swsbox-title" style="display: none"><h5></h5></div> <div class="swsbox-content"> <div class="table-responsive"> <table id="%id%" class="table table-striped table-bordered table-condensed table-hover" width="100%"> </table> </div></div></div>'},i={settings:{swsId:"",expand:!1}};r.prototype.init=function(t,e){i.settings.id="sws_tbl_"+Math.round(1e5*Math.random()).toString(),this.options=a.extend({},i.settings,t),this.dataTableId=this.options.id,e&&"dataTableSettings"in e&&(this.dataTableSettings=e.dataTableSettings),e&&"showDetails"in e&&(this.showDetails=e.showDetails),this.destroy(),this.render()},r.prototype.clear=function(){this.dataTable.clear()},r.prototype.rowadd=function(t){"row"in t&&this.dataTable.row.add(t.row)},r.prototype.update=function(t){this.dataTable.columns.adjust().draw(),this.dataTable.draw()},r.prototype.destroy=function(){this.$element.empty()},r.prototype.render=function(){this.$element.empty();var t=n.datatable.replace("%id%",this.dataTableId),e=a(t);this.$element.append(e),"title"in this.options&&this.$element.find(".swsbox-title").show().find("h5").html(this.options.title),this.dataTable=a("#"+this.dataTableId).DataTable(this.dataTableSettings);var i=this;this.options.expand&&null!=this.showDetails&&a("#"+this.dataTableId).on("click","td.sws-row-expand",function(){var t=a(this).closest("tr"),e=a(this).find("i"),n=i.dataTable.row(t);n.child.isShown()?(n.child.hide(),e.removeClass("fa-caret-down"),e.addClass("fa-caret-right")):(i.showDetails(n),e.removeClass("fa-caret-right"),e.addClass("fa-caret-down"))})},a.fn[s]=function(e,n){var i;return this.each(function(){var t=a.data(this,s);"string"==typeof e?t?a.isFunction(t[e])&&"_"!==e.charAt(0)?(n instanceof Array||(n=[n]),i=t[e].apply(t,n)):console.log("No such method : "+e):console.log("Not initialized, can not call method : "+e):"boolean"==typeof e?i=t:a.data(this,s,new r(this,e,n))}),i||this}}(jQuery,window,document),function(o){"use strict";function a(t,e){return this.$element=o(t),this.elementId=t.id,this.init(e),{options:this.options,init:o.proxy(this.init,this),setvalue:o.proxy(this.setvalue,this)}}var r="swswidget",e='<div class="swsbox float-e-margins"> <div class="swsbox-title"> <span class="sws-widget-extra label pull-right"></span> <h5 class="sws-widget-title"></h5> </div> <div class="swsbox-content" style="display: block;"> <div class="swsbox-trend"><i class="sws-widget-trend fa"></i></div> <div class="swsbox-values"> <h1 class="sws-widget-value no-margins"></h1> <small class="sws-widget-subtitle"></small> </div> </div> </div>',n={settings:{id:"wid",title:"WIDGET",subtitle:"Subtitle",style:"default"}};a.prototype.init=function(t){this.options=o.extend({},n.settings,t),this.destroy(),this.subscribeEvents(),this.render()},a.prototype.destroy=function(){this.$element.empty(),this.unsubscribeEvents()},a.prototype.getPctString=function(t,e){return(t/e*100).toFixed(2).toString()+"%"},a.prototype.setvalue=function(t){var e=void 0!==t.value?t.value:0,n=void 0!==t.total?t.total:0,i=void 0!==t.trend?t.trend:null,a=void 0!==t.extra?t.extra:null,r="function"==typeof t.customtrend?t.customtrend:null;this.$element.find(".sws-widget-value").html(e),"title"in t&&this.$element.find(".sws-widget-title").html(t.title),"subtitle"in t&&this.$element.find(".sws-widget-subtitle").html(t.subtitle),0<n?this.$element.find(".sws-widget-extra").html(this.getPctString(e,n)):null!=a&&this.$element.find(".sws-widget-extra").html(a);var s=this.$element.find(".swsbox-trend");s.empty(),null!=i&&""!=i&&s.append(o('<i class="fa">').addClass("up"==i?"fa-chevron-circle-up":"fa-chevron-circle-down")),null!=r&&r(s),"postProcess"in this.options&&this.options.postProcess in this.widgetProcessors&&this.widgetProcessors[this.options.postProcess](this.$element,e,n,i)},a.prototype.widgetProcessors={redIfNonZero:function(t,e,n,i){t.find(".sws-widget-extra").removeClass("label-success").removeClass("label-danger").addClass(0<e?"label-danger":"label-success"),t.find(".sws-widget-value").removeClass("color-success").removeClass("color-danger").addClass(0<e?"color-danger":"color-success")},successIfNonZero:function(t,e,n,i){t.find(".sws-widget-extra").removeClass("label-success").addClass(0<e?"label-success":""),t.find(".sws-widget-value").removeClass("color-success").addClass(0<e?"color-success":"")}},a.prototype.unsubscribeEvents=function(){},a.prototype.subscribeEvents=function(){},a.prototype.render=function(){this.$element.empty();var t=o(e);switch(t.find(".sws-widget-title").html(this.options.title),t.find(".sws-widget-subtitle").html(this.options.subtitle),this.options.style){case"default":break;case"infobox":t.find(".sws-widget-title").addClass("label-jumbo").addClass("no-margins"),t.find(".swsbox-title").addClass("alert-info").addClass("swsbox-extra-padding"),t.find(".swsbox-content").addClass("alert-info"),t.find(".sws-widget-extra").removeClass("label").addClass("label-jumbo").addClass("cursor-pointer").append(o('<i class="swsbox-collapse fa fa-chevron-up"></i>')),t.addClass("cursor-pointer").click(o.proxy(this.expandOrCollapse,this))}this.$element.append(t)},a.prototype.expandOrCollapse=function(){var t=this.$element.find(".swsbox-content"),e=this.$element.find(".swsbox-collapse");e.hasClass("fa-chevron-up")?(e.removeClass("fa-chevron-up").addClass("fa-chevron-down"),t.hide()):(e.removeClass("fa-chevron-down").addClass("fa-chevron-up"),t.show())},o.fn[r]=function(e,n){var i;return this.each(function(){var t=o.data(this,r);"string"==typeof e?t?o.isFunction(t[e])&&"_"!==e.charAt(0)?(n instanceof Array||(n=[n]),i=t[e].apply(t,n)):console.log("No such method : "+e):console.log("Not initialized, can not call method : "+e):"boolean"==typeof e?i=t:o.data(this,r,new a(this,o.extend(!0,{},e)))}),i||this}}(jQuery,window,document),function(a){"use strict";function r(t,e,n){return this.$element=a(t),this.elementId=t.id,this.chart=null,this.chartdata={labels:[],datasets:[]},this.chartoptions={responsive:!0},this.init(e,n),{options:this.options,init:a.proxy(this.init,this),update:a.proxy(this.update,this),getchartdata:a.proxy(this.getchartdata,this)}}var s="swschart",e='<div class="swsbox float-e-margins"> <div class="swsbox-content"> <h5></h5> <div> <canvas height="10px"></canvas> </div></div></div>',n={settings:{title:"Chart",height:"100px",type:"doughnut"}};r.prototype.init=function(t,e){this.options=a.extend({},n.settings,t),e&&"chartdata"in e&&(this.chartdata=e.chartdata),e&&"chartoptions"in e&&(this.chartoptions=e.chartoptions),this.destroy(),this.subscribeEvents(),this.render()},r.prototype.destroy=function(){this.$element.empty(),this.unsubscribeEvents()},r.prototype.update=function(t){if(null==this.chart){var e=this.$element.find("canvas")[0].getContext("2d");this.chart=new Chart(e,{type:this.options.type,data:this.chartdata,options:this.chartoptions})}this.chart.update()},r.prototype.getchartdata=function(t){return this.chartdata},r.prototype.unsubscribeEvents=function(){},r.prototype.subscribeEvents=function(){},r.prototype.render=function(){this.$element.empty();var t=a(e);"title"in this.options&&""!==this.options.title?t.find("h5").html(this.options.title):t.find("h5").remove(),t.find("canvas").attr("height",this.options.height),this.$element.append(t)},a.fn[s]=function(e,n){var i;return this.each(function(){var t=a.data(this,s);"string"==typeof e?t?a.isFunction(t[e])&&"_"!==e.charAt(0)?(n instanceof Array||(n=[n]),i=t[e].apply(t,n)):console.log("No such method : "+e):console.log("Not initialized, can not call method : "+e):"boolean"==typeof e?i=t:a.data(this,s,new r(this,e,n))}),i||this}}(jQuery,window,document),function(d){"use strict";function a(t,e,n){return this.$element=d(t),this.elementId=t.id,this.init(e,n),{options:this.options,init:d.proxy(this.init,this),remove:d.proxy(this.remove,this),update:d.proxy(this.update,this),getvalue:d.proxy(this.getvalue,this),setvalue:d.proxy(this.setvalue,this)}}var r="swsapiopsel",n='<div class="sws-apiopsel side-by-side clearfix"> <select data-placeholder="Select API Operation" class="sws-chosen-select"> </select> </div>',i={settings:{}};a.prototype.init=function(t,e){this.options=d.extend({},i.settings,t),this.destroy(),this.render()},a.prototype.remove=function(){this.destroy(),d.removeData(this,r)},a.prototype.clear=function(){},a.prototype.update=function(t){if("apistats"in t){var e=this.$element.find(".sws-chosen-select");for(var n in e.empty(),t.apistats){var i=t.apistats[n],a=d('<optgroup label="'+n+'">');for(var r in i){i[r];var s={swagger:!1,deprecated:!1,operationId:"",summary:"",description:""};"apidefs"in t&&n in t.apidefs&&r in t.apidefs[n]&&(s=t.apidefs[n][r]);var o=r+","+n,l=r+" "+n;"tags"in s&&(l+=" ("+s.tags.join(",")+")");var u=d('<option value="'+o+'">'+l+"</option>");a.append(u)}e.append(a)}e.trigger("chosen:updated")}},a.prototype.getvalue=function(t){if("object"==typeof t){var e=this.$element.find(".sws-chosen-select").val().split(",",2);2==e.length&&(t.method=e[0],t.path=e[1])}},a.prototype.setvalue=function(t){this.$element.find(".sws-chosen-select").val(t).trigger("chosen:updated")},a.prototype.destroy=function(){this.$element.empty()},a.prototype.render=function(){this.$element.empty();var e=this,t=d(n);this.$element.append(t),this.$element.find(".sws-chosen-select").on("change",function(t){e.$element.trigger("sws-onchange-apiop",e)}),this.$element.find(".sws-chosen-select").chosen({search_contains:!0})},d.fn[r]=function(e,n){var i;return this.each(function(){var t=d.data(this,r);"string"==typeof e?t?d.isFunction(t[e])&&"_"!==e.charAt(0)?(n instanceof Array||(n=[n]),i=t[e].apply(t,n)):console.log("No such method : "+e):console.log("Not initialized, can not call method : "+e):"boolean"==typeof e?i=t:d.data(this,r,new a(this,e,n))}),i||this}}(jQuery,window,document),function(g,i,m){"use strict";function a(t,e){return this.$element=g(t),this.elementId=t.id,this.loggingIn=!1,this.loginUsername="",this.loginPassword="",this.sessionID="",this.activePageId=null,this.activePageContext=null,this.activeRouteContext=null,this.refreshInterval=60,this.refreshIntervalId=null,this.swsBasePath="swsBasePath"in e?e.swsBasePath:null,this.apistats={},this.lasterrors=null,this.longestreq=null,this.timeline_array=[],this.init(e),{options:(g.swsui=this).options,init:g.proxy(this.init,this),remove:g.proxy(this.remove,this)}}var r="swaggerstatsui",v=null!=m.location.hash.match(/&modFile=/),y={nav:'<nav specificroute="'+v+'" class="navbar navbar-default navbar-fixed-top"> <div class="container-fluid">'+(v?"":'<div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div>')+' <div id="navbar" class="navbar'+(v?"":"-collapse collapse")+'" aria-expanded="false" style="height: 0.555556px;"> <ul id="sws-toolbar" class="nav navbar-nav"> </ul> <div class="sws-logout-ctrls pull-right" style="display: none" data-toggle="tooltip" title="Logout"> <span class="fa fa-sign-out"></span> </div>\n <div class="sws-nav-ctrls pull-right"> </div> </div> </div> </nav>',content:'<div id="sws-content" specificroute="'+v+'" class="container-fluid page-content"> <div id="route-stat-error" specificroute="'+v+'"> <img height="48" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAADhklEQVRoge2ZT2wMURzHv9+ZLTHbpf4dpMQNV5n+iUQTViNEJCJagoiDAykOThIklUhdRdMlEicOiESkJISthkizrd5xERSJpA66ndXanZ+DCmZmd+bNzk4k+rnte++37/PdN9l58waYZZb/G0bxJdLRoRe+vG0RYCOEplDWgFgGQf3MLHkIPlL4SogXGvFk3vrcMLthVzt3VQGszc0rbJtdEOwH0KhYPgbhdc1GnzGYGwvrECrAxNa1SzGdOEfwIIA5YSefYZqCqyXizPzs8LhqsXKAfHvLXgh6ASxSrfVhXCBdqezITZWiwAHENOvyDXqGwCF1t+AIcbm+aBzj4GAxyPhAAWS7aUxaiduAbK1OLzD3k0apk/2jlt9A3wBimnWTDYm7qvLJGw/++jy5Z4tKOQDcT5aMHX4rofl9S75Bz8T4y//JNkuzLvoNqhggv6l5X62v+UoIcWSivbmz0piyAb5ualkM8EL0WmpQmPm6wVxSrr9sAEJ6AJQtjJHFuq51l+v0DGBtaF0+c5P6JxDwkJVe53mn9wxgJ+Qoqr/DRslcm8Uurw5XAOmGBsG+2jupwgPS0aE7W10BCs9aWgEsj8VJjcbC+BvT2eheAWBjPD7q2BrTzjZXABtoikdHHQr9V4DAqnh01BHIameb17/QshhcQkKXm1eA+hhMwpJyNvhu5v51vALkY7cIzoSzwSvApxhEQiIuN/e/kPBVPDLqkHzpbHOvAGU0FpsQiA2Xm3sFyIF4dNQhxeXmCjBvfW4YwPtYjNR4Z7SNuFbA86E+n249D8rJ2jsFR4CeVHb4lLPd8z6g2egDMF1zq+BM6aJnvDo8AxiDuTEKrtbWKTgUXDEGhj549SXKFRXr9NP699IuEEvDTBrBudAvxkvE2XKdZbcSCx4OfRHyeNhZo0LAw5UOfSvuhVLZ3A0hLkevFQwKelPZ3O1KY3w3c/ULVx4V4E50WoG5Z9jGCb9BCoe7+i0A26rWCkZ/0tJ3c2io4Dcw0Haa/aNWsmTsoOBS9W4+cwl6kyVjZxB5IMQLjon25k4K+xD9qd1nAbv8rnknyg80qccjt0oJfTUhfQCmVOs9+EZBb3FqzhpVeaDal3zpdY0/T8y4H8AKxfJ3QlzTWJdJPnr+MaxDNK9Zu6EVnjY12RrTFJo/Tw/YiN/P13kAYwRei+AFKQNG28hoFK9ZZ5nlf+cHh2YMk/LEzMEAAAAASUVORK5CYII=" alt="Error"> <div><div><b id="route-stat-error-title"></b></div><div><div id="route-stat-error-msg"></div></div></div> </div> </div>',footer:'<footer class="sws-footer bd-footer text-muted"> <div class="container-fluid"> <p class="sws-tc">Data since <span class="label label-medium sws-uptime"></span> starting from <span class="label label-medium sws-time-from"></span> updated at <span class="label label-medium sws-time-now"></span></p> <p><a href="http://swaggerstats.io" target="_blank"><strong> swagger-stats v.0.95.17</strong></a></p> <p>© 2017-2020 <a href="#">slana.tech</a></p> </div> </footer>'},e={settings:{testOption:!0}};a.prototype.init=function(t){this.options=g.extend({},e.settings,t),this.shortDateTimeFormat="MM/DD/YY hh:mm:ss",this.palette=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],this.palette2=["#DCECC9","#B3DDCC","#8ACDCE","#62BED2","#46AACE","#3D91BE","#3577AE","#2D5E9E","#24448E","#1C2B7F","#162065","#11174B"],this.palette3=["#ffffe0","#cef0be","#aaddac","#8ec89f","#78b297","#659b91","#56848c","#496c88","#3d5685","#303e83","#212481","#000080"],this.httpStatusCodes={200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Switch Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required"},this.layout=new SWSLayout,this.layout.init({}),this.activePageId=null,this.activePageContext=null,this.activeRouteContext=null,this.destroy(),this.render();this.enableNavigation(),this.startRefresh()},a.prototype.render=function(){this.$element.empty();var t=g(y.nav);this.$element.append(t);var e=g(y.content);this.$element.append(e);var n=g(y.footer);for(var i in this.$element.append(n),this.buildNavControls(),this.layout.pages){var a=this.layout.pages[i];v&&(a.hidden="pjs_popout"!=i),a.id=i;var r="<li id="+a.id+' class="sws-tool-li"><a href="'+(v&&!a.hidden?m.location.origin+m.location.pathname+'" target="_blank"':"#"+i+'"')+'data-toggle="tooltip" title="'+a.title+'"><i class="sws-tool-i fa '+a.icon+'"></i><span class="sws-tool-title">'+a.title+"</span></a></li>",s=g(r);g("#sws-toolbar").append(s),a.hidden&&g("#"+a.id).hide();var o=g('<div id="'+i+'_content"></div>');for(var l in e.append(o),a.rows){var u=a.rows[l];u.id=i+"_"+l;var d="class"in u?u.class:"",c=g('<div id="'+u.id+'" class="row '+d+'">');for(var h in o.append(c),u.columns){var f=u.columns[h];f.id=h;var p=g('<div id="'+f.id+'" class="'+f.class+'"></div>');c.append(p),this.renderCol(a,u,f,p)}}}this.subscribeEvents()},a.prototype.buildNavControls=function(){var t=g(".sws-nav-ctrls"),e=g('<div class="sws-refresh-group"></div>');e.append(g('<span class="sws-refresh sws-refreshing fa fa-refresh" interval="0"></span>')),e.append(g('<span class="sws-refresh sws-pauseresume fa fa-pause" interval="-1"></span>')),e.append(g('<span class="sws-refresh label label-transparent" interval="1">1s</span>')),e.append(g('<span class="sws-refresh label label-transparent" interval="10">10s</span>')),e.append(g('<span class="sws-refresh label label-transparent" interval="30">30s</span>')),e.append(g('<span class="sws-refresh label label-primary" interval="60">1m</span>')),t.append(e);moment(Date.now()).format();var n=g('<div class="sws-time-group"></div>');n.append(g('<span class="fa fa-at"></span>')),n.append(g('<span class="sws-time-now"></span>')),t.append(n)},a.prototype.renderCol=function(t,e,n,i){if("type"in n)switch(n.type){case"empty":break;case"title":i.append(g("<h1>"+t.title+"</h1>"));break;case"widget":i.swswidget(n);break;case"chart":i.swschart(n.options,{chartdata:n.chartdata,chartoptions:n.chartoptions});break;case"datatable":var a=i.attr("id")+"_tbl";n.options.id=a,n.options.swsId=this.elementId;var r={dataTableSettings:n.dataTableSettings};"showDetails"in n&&(r.showDetails=n.showDetails),i.swstable(n.options,r);break;case"apiopsel":i.swsapiopsel(n.options);break;case"markup":i.append(g(n.markup))}},a.prototype.enableNavigation=function(){var n=this;g(i).on("hashchange",function(t){var e="#"+n.layout.loginpage;if(n.loggingIn){if(i.location.hash!==e)return void(i.location.hash=e)}else if(i.location.hash===e)return void(i.location.hash="#"+n.layout.startpage);n.setActive(i.location.hash)});var t=i.location.hash;if(""!==t)this.setActive(t);else{var e="#"+this.layout.startpage;i.location.hash=e,this.setActive(e)}},a.prototype.setActive=function(t){var e=this;if(i.setActivePageIdHash||(i.setActivePageIdHash=a.prototype.setActive.bind(e)),"string"==typeof t&&t.startsWith("#&routeKey="))this.activePageId="sws_apiop",this.activeRouteContext=t.substring(1);else{var n=t.split("=",2);1<n.length?(this.activePageId=n[0].replace("#",""),this.activePageContext=n[1]):(this.activePageId=t.replace("#",""),this.activePageContext=null)}this.activePageId in this.layout.pages||(this.activePageId=this.layout.startpage),g(".sws-tool-li").each(function(t){this.id===e.activePageId?(g(this).addClass("active"),g("#"+this.id+"_content").show()):(g(this).removeClass("active"),g("#"+this.id+"_content").hide())}),this.refreshStats()},a.prototype.remove=function(){this.destroy(),g.removeData(this,r)},a.prototype.destroy=function(){this.$element.empty(),this.unsubscribeEvents()},a.prototype.startProgress=function(){g(".sws-refreshing").addClass("fa-spin")},a.prototype.stopProgress=function(){g(".sws-refreshing").removeClass("fa-spin")},a.prototype.startRefresh=function(){null!=this.refreshIntervalId&&(clearInterval(this.refreshIntervalId),this.refreshIntervalId=null),this.refreshIntervalId=setInterval(g.proxy(this.refreshStats,this),1e3*this.refreshInterval)},a.prototype.pauseOrResumeRefresh=function(){return null!=this.refreshIntervalId?(clearInterval(this.refreshIntervalId),this.refreshIntervalId=null,!1):(this.refreshIntervalId=setInterval(g.proxy(this.refreshStats,this),1e3*this.refreshInterval),!0)},a.prototype.refreshStats=function(){if(!this.loggingIn){this.startProgress();var i=this.layout.pages[this.activePageId],n=i.getdata,t=n.url;null!==this.swsBasePath&&(t=this.swsBasePath+"/"+n.url);var e={type:n.type,url:t,data:{}};if(e.data.fields=[],"data"in n&&"fields"in n.data&&n.data.fields instanceof Array)for(var a=0;a<n.data.fields.length;a++)e.data.fields.push(n.data.fields[a]);if("getfieldsonce"in i)for(var r=0;r<i.getfieldsonce.length;r++)i.getfieldsonce[r]in this.apistats||e.data.fields.push(i.getfieldsonce[r]);if(this.activeRouteContext){var s=this.activeRouteContext.split("&");s.shift();for(var o=0;o<s.length;o++){var l=s[o].split("=");e.data[l[0]]=l[1]}}"getdataproc"in i&&i.getdataproc(this.activePageId,this.activePageContext,e);""!==this.loginUsername&&""!==this.loginPassword&&("headers"in e||(e.headers={}),e.headers.Authorization="Basic "+btoa(this.loginUsername+":"+this.loginPassword),this.loginUsername="",!(this.loginPassword="")),this.sessionID&&("headers"in e||(e.headers={}),e.headers["sws-session-id"]=this.sessionID);var u=this,d=g.ajax(e).done(function(t){var e=d.getResponseHeader("x-sws-authenticated");void 0!==e&&e&&"true"==e&&(u.sessionID=d.getResponseHeader("sws-session-id")||u.sessionID,v||g(".sws-logout-ctrls").show()),v&&t.code?(g("#sws_apiop_content").hide(),g("#route-stat-error").show(),g("#route-stat-error-title").text(t.title),g("#route-stat-error-msg").text(t.message),u.updateTimeControls()):(g("#route-stat-error").hide(),"sws_apiop"==this.activePageId&&g("#sws_apiop_content").show(),u.processStatsData(n,t),u.$element.trigger(i.datevent,u)),u.stopProgress()}).fail(function(t,e){if(u[i.datastore]=null,u.updateTimeControls(),u.stopProgress(),403===t.status){u.loggingIn=!0,g(".sws-logout-ctrls").hide(),g(".sws-login-msg").html(t.responseText),u.hideTimeControls();var n="#"+u.layout.loginpage;console.log("Login required "+n),u.setActive(n)}})}},a.prototype.hideTimeControls=function(){g(".sws-tc").hide()},a.prototype.showTimeControls=function(){g(".sws-tc").show()},a.prototype.updateTimeControls=function(t){this.showTimeControls(),g(".sws-time-from").html(null!==this.apistats.startts?moment(this.apistats.startts).format(this.shortDateTimeFormat):"-"),g(".sws-uptime").html(null!==this.apistats.startts?moment(this.apistats.startts).fromNow():"-"),g(".sws-time-now").html(moment(Date.now()).format(this.shortDateTimeFormat))},a.prototype.processStatsData=function(t,e){for(var n in e)this.apistats[n]=e[n];if(this.activeRouteContext&&this.apistats){var i=Object.keys(this.apistats.apiop)[0],a=Object.keys(this.apistats.apiop[i])[0];this.activePageContext=a+","+i}if(this.updateTimeControls(),"timeline"in e){if(this.timeline_array=[],this.apistats&&this.apistats.timeline&&this.apistats.timeline.data)for(var r in this.apistats.timeline.data){var s=this.apistats.timeline.data[r];s.tc=parseInt(r);var o=s.tc*this.apistats.timeline.settings.bucket_duration;s.timelabel=moment(o).format("hh:mm:ss"),this.timeline_array.push(s)}this.timeline_array.sort(function(t,e){return t.tc-e.tc})}},a.prototype.unsubscribeEvents=function(){this.$element.off("sws-ondata-summary"),this.$element.off("sws-ondata-requests"),this.$element.off("sws-ondata-errors"),this.$element.off("sws-ondata-lasterrors"),this.$element.off("sws-ondata-longestreq"),this.$element.off("sws-ondata-rates"),this.$element.off("sws-ondata-payload"),this.$element.off("sws-ondata-api"),this.$element.off("sws-ondata-apiop"),this.$element.off("sws-onchange-apiop"),g(".sws-refresh").off("click")},a.prototype.subscribeEvents=function(){this.unsubscribeEvents(),this.$element.on("sws-ondata-summary",g.proxy(this.onDataSummary,this)),this.$element.on("sws-ondata-requests",g.proxy(this.onDataRequests,this)),this.$element.on("sws-ondata-errors",g.proxy(this.onDataErrors,this)),this.$element.on("sws-ondata-lasterrors",g.proxy(this.onDataLastErrors,this)),this.$element.on("sws-ondata-longestreq",g.proxy(this.onDataLongestReq,this)),this.$element.on("sws-ondata-rates",g.proxy(this.onDataRates,this)),this.$element.on("sws-ondata-payload",g.proxy(this.onDataPayload,this)),this.$element.on("sws-ondata-api",g.proxy(this.onDataAPI,this)),this.$element.on("sws-ondata-apiop",g.proxy(this.onDataAPIOp,this)),this.$element.on("sws-onchange-apiop",g.proxy(this.onChangeAPIOp,this)),g(".sws-refresh").on("click",g.proxy(this.onRefreshClick,this)),g("#sws-login-submit").click(g.proxy(this.onLogin,this)),g(".sws-logout-ctrls").click(g.proxy(this.onLogout,this))},a.prototype.onLogin=function(t){this.loginUsername=g("#sws-login-username").val(),this.loginPassword=g("#sws-login-password").val(),this.loggingIn=!1;var e="#"+this.layout.startpage;this.setActive(e)},a.prototype.onLogout=function(t){var e="logout";(this.sessionID=null)!==this.swsBasePath&&(e=this.swsBasePath+"/logout");var n={type:"GET",url:e,data:{}},i=this;g.ajax(n).done(function(t){var e="#"+i.layout.startpage;i.setActive(e)}).fail(function(t,e){})},a.prototype.onRefreshClick=function(t){if(t.target){var e=parseInt(g(t.target).attr("interval"));if(0!=e){if(-1==e)return g(t.target).removeClass("fa-pause").removeClass("fa-play"),void g(t.target).addClass(this.pauseOrResumeRefresh()?"fa-pause":"fa-play");this.refreshInterval=e,this.startRefresh(),g(".sws-refresh").each(function(t){g(this).attr("interval")==e?g(this).removeClass("label-transparent").addClass("label-primary"):g(this).removeClass("label-primary").addClass("label-transparent")})}else this.refreshStats()}},a.prototype.onDataSummary=function(){this.updateSummary()},a.prototype.onDataRequests=function(){this.updateRequests()},a.prototype.onDataErrors=function(){this.updateErrors()},a.prototype.onDataLastErrors=function(){this.updateLastErrors()},a.prototype.onDataLongestReq=function(){this.updateLongestReq()},a.prototype.onDataRates=function(){this.updateRates()},a.prototype.onDataPayload=function(){this.updatePayload()},a.prototype.onDataAPI=function(){this.updateAPI()},a.prototype.onDataAPIOp=function(){this.updateAPIOp()},a.prototype.onChangeAPIOp=function(t){var e={};g("#sws_apiop_opsel").swsapiopsel("getvalue",e);var n="#sws_apiop="+e.method+","+e.path;i.location.hash=n},a.prototype.getLatestTimelineValue=function(t,e){if(null==this.apistats)return 0;try{var n=this.apistats.timeline.data[this.apistats.timeline.settings.bucket_current];return t in n&&e in n[t]?n[t][e]:0}catch(t){return 0}},a.prototype.getTimelineTrend=function(t,e){if(!this.timeline_array||this.timeline_array.length<=0)return"";if(!(t in this.timeline_array[0]&&e in this.timeline_array[0][t]))return"";for(var n=this.timeline_array.length,i=0,a=0,r=0,s=0,o=0;o<n;o++){var l=this.timeline_array[o],u=t in l&&e in l[t]?l[t][e]:0;i+=u,a+=o,r+=u*o,s+=u*u,o*o}var d=0,c=n*s-i*i;return 0!=c&&(d=(n*r-i*a)/c),0<d?"up":d<0?"down":""},a.prototype.formatWValDurationMS=function(t,e){if(!("value"in t))return t;e=void 0!==e?e:0;var n=t.value;return n<1e3?(t.value=n.toFixed(e),t.extra="msec"):(t.value=(n/1e3).toFixed(e),t.extra="sec"),t},a.prototype.buildTimeSeriesChartData=function(t,e,n){for(var i=this.timeline_array[0].timelabel;0<t.labels.length&&t.labels[0]!=i;){t.labels.shift();for(var a=0;a<n.length;a++)t.datasets[a].data.shift()}var r=0;for(r=0;r<t.labels.length;r++)for(var s=0;s<n.length;s++)t.datasets[s].data[r]=this.timeline_array[r][e][n[s]];for(;r<this.timeline_array.length;r++){t.labels.push(this.timeline_array[r].timelabel);for(var o=0;o<n.length;o++)t.datasets[o].data.push(this.timeline_array[r][e][n[o]])}},a.prototype.updateByMethodChartData=function(t,e,n){var i="function"==typeof e?e:null;for(var a in n="function"==typeof n?n:null,this.apistats.method){var r=this.apistats.method[a],s=t.labels.indexOf(a),o=0;if(i){var l=i(r);o=n?n(l):l}else o=e in r?n?n(r[e]):r[e]:0;-1!=s?t.datasets[0].data[s]=o:(s=t.labels.length,t.labels.push(a),t.datasets[0].data.push(o),s>=this.palette2.length&&(s%=this.palette2.length),t.datasets[0].backgroundColor.push(this.palette2[s]))}},a.prototype.formatBytes=function(t,e){if(0==t)return"0 Bytes";var n=e||2,i=Math.floor(Math.log(t)/Math.log(1e3));return parseFloat((t/Math.pow(1e3,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]},a.prototype.updateSummary=function(){if(null!=this.apistats){var n=this;g("#sws_summ_wRq").swswidget("setvalue",{value:this.apistats.all.requests,trend:this.getTimelineTrend("stats","requests")}),g("#sws_summ_wApd").swswidget("setvalue",{value:this.apistats.all.apdex_score.toFixed(2),customtrend:function(t){var e=100*n.apistats.all.apdex_score.toFixed(2);t.append(g('<div class="swsbox-trend-container"><span class="pie">'+e+"/100</span></div>")),t.find(".pie").peity("donut",{fill:["#ff9900","#e7eaec"],radius:30,innerRadius:16})}}),g("#sws_summ_wRRte").swswidget("setvalue",{value:this.getLatestTimelineValue("stats","req_rate").toFixed(4),extra:"req/sec",trend:this.getTimelineTrend("stats","req_rate")}),g("#sws_summ_wERte").swswidget("setvalue",{value:this.getLatestTimelineValue("stats","err_rate").toFixed(4),extra:"err/sec",trend:this.getTimelineTrend("stats","err_rate")}),g("#sws_summ_wAHt").swswidget("setvalue",this.formatWValDurationMS({value:this.apistats.all.avg_time})),g("#sws_summ_wCpu").swswidget("setvalue",{value:this.apistats.sys.cpu.toFixed(2)+" %",customtrend:function(t){var e=n.apistats.sys.cpu;n.apistats.sys.cpu;t.append(g('<div class="swsbox-trend-container"><span class="pie">'+e+"/100</span></div>")),t.find(".pie").peity("donut",{fill:["#ff9900","#e7eaec"],radius:30,innerRadius:16})}}),g("#sws_summ_wMem").swswidget("setvalue",{value:this.formatBytes(this.apistats.sys.heapUsed,2)}),g("#sws_summ_wErr").swswidget("setvalue",{value:this.apistats.all.errors,total:this.apistats.all.requests,trend:this.getTimelineTrend("stats","errors")}),g("#sws_summ_wSs").swswidget("setvalue",{value:this.apistats.all.success,total:this.apistats.all.requests,trend:this.getTimelineTrend("stats","success")}),g("#sws_summ_wRed").swswidget("setvalue",{value:this.apistats.all.redirect,total:this.apistats.all.requests,trend:this.getTimelineTrend("stats","redirect")}),g("#sws_summ_wCe").swswidget("setvalue",{value:this.apistats.all.client_error,total:this.apistats.all.requests,trend:this.getTimelineTrend("stats","client_error")}),g("#sws_summ_wSe").swswidget("setvalue",{value:this.apistats.all.server_error,total:this.apistats.all.requests,trend:this.getTimelineTrend("stats","server_error")});var t=g("#sws_summ_cCpu");this.buildTimeSeriesChartData(t.swschart("getchartdata"),"sys",["cpu"]),t.swschart("update");var e=g("#sws_summ_cTl");this.buildTimeSeriesChartData(e.swschart("getchartdata"),"stats",["success","redirect","client_error","server_error"]),e.swschart("update")}},a.prototype.updateRequests=function(){if(null!=this.apistats){var t=g("#sws_req_tRbM");for(var e in t.swstable("clear"),this.apistats.method){var n=this.apistats.method[e],i=[e,n.requests,n.responses,n.requests-n.responses,n.errors,n.req_rate.toFixed(4),n.err_rate.toFixed(4),n.success,n.redirect,n.client_error,n.server_error,n.apdex_score.toFixed(2),n.total_time,n.max_time,n.avg_time.toFixed(2),n.total_req_clength,n.max_req_clength,n.avg_req_clength,n.total_res_clength,n.max_res_clength,n.avg_res_clength];t.swstable("rowadd",{row:i})}t.swstable("update");var a=g("#sws_req_cRbM");this.updateByMethodChartData(a.swschart("getchartdata"),"requests"),a.swschart("update");var r=g("#sws_req_cEbM");this.updateByMethodChartData(r.swschart("getchartdata"),"errors"),r.swschart("update");var s=g("#sws_req_cRTime");this.updateByMethodChartData(s.swschart("getchartdata"),"avg_time",function(t){return t.toFixed(4)}),s.swschart("update");var o=g("#sws_req_cRProc");this.updateByMethodChartData(o.swschart("getchartdata"),function(t){return t.requests-t.responses}),o.swschart("update");var l=g("#sws_req_cRRbM");this.updateByMethodChartData(l.swschart("getchartdata"),"req_rate",function(t){return t.toFixed(4)}),l.swschart("update");var u=g("#sws_req_cERbM");this.updateByMethodChartData(u.swschart("getchartdata"),"err_rate",function(t){return t.toFixed(4)}),u.swschart("update")}},a.prototype.updateErrors=function(){if(this.apistats&&this.apistats.errors){var t=g("#sws_err_tCode");t.swstable("clear");var e=g("#sws_err_cCode"),n=e.swschart("getchartdata");if(this.apistats.errors.statuscode)for(var i in this.apistats.errors.statuscode){var a=this.apistats.errors.statuscode[i],r=[i,this.httpStatusCodes[i],a];t.swstable("rowadd",{row:r});var s=n.labels.indexOf(i);-1!=s?n.datasets[0].data[s]=a:(n.labels.push(i),n.datasets[0].data.push(a))}t.swstable("update"),e.swschart("update");var o=g("#sws_err_t404");if(o.swstable("clear"),this.apistats.errors.topnotfound)for(var l in this.apistats.errors.topnotfound){r=[l,this.apistats.errors.topnotfound[l]];o.swstable("rowadd",{row:r})}o.swstable("update");var u=g("#sws_err_t500");if(u.swstable("clear"),this.apistats.errors.topservererror)for(var d in this.apistats.errors.topservererror){r=[d,this.apistats.errors.topservererror[d]];u.swstable("rowadd",{row:r})}u.swstable("update")}},a.prototype.updateLastErrors=function(){if(this.apistats&&this.apistats.lasterrors){var t=g("#sws_lerr_tErr");if(t.swstable("clear"),this.apistats.lasterrors&&0<this.apistats.lasterrors.length)for(var e=0;e<this.apistats.lasterrors.length;e++){var n=this.apistats.lasterrors[e],i=["",moment(n.startts).format(),n.method,n.path,n.responsetime,n.http.response.code,n.http.response.class,n.http.response.phrase,JSON.stringify(n,null,4)];t.swstable("rowadd",{row:i})}t.swstable("update")}},a.prototype.updateLongestReq=function(){if(this.apistats&&this.apistats.longestreq){var t=g("#sws_lreq_tReq");if(t.swstable("clear"),this.apistats.longestreq&&0<this.apistats.longestreq.length)for(var e=0;e<this.apistats.longestreq.length;e++){var n=this.apistats.longestreq[e],i=["",moment(n.startts).format(),n.method,n.path,n.responsetime,n.http.response.code,n.http.response.class,n.http.response.phrase,JSON.stringify(n,null,4)];t.swstable("rowadd",{row:i})}t.swstable("update")}},a.prototype.updateRates=function(){var n=this;if(null!=this.apistats){g("#sws_rates_wApd").swswidget("setvalue",{value:this.getLatestTimelineValue("stats","apdex_score").toFixed(2),customtrend:function(t){var e=100*n.getLatestTimelineValue("stats","apdex_score").toFixed(2);t.append(g('<div class="swsbox-trend-container"><span class="pie">'+e+"/100</span></div>")),t.find(".pie").peity("donut",{fill:["#ff9900","#e7eaec"],radius:30,innerRadius:16})}}),g("#sws_rates_wRqR").swswidget("setvalue",{value:this.getLatestTimelineValue("stats","req_rate").toFixed(4),extra:"req/sec",trend:this.getTimelineTrend("stats","req_rate")}),g("#sws_rates_wErR").swswidget("setvalue",{value:this.getLatestTimelineValue("stats","err_rate").toFixed(4),extra:"err/sec",trend:this.getTimelineTrend("stats","err_rate")}),g("#sws_rates_wMHT").swswidget("setvalue",this.formatWValDurationMS({value:this.getLatestTimelineValue("stats","max_time"),trend:this.getTimelineTrend("stats","max_time")})),g("#sws_rates_wAHT").swswidget("setvalue",this.formatWValDurationMS({value:this.getLatestTimelineValue("stats","avg_time"),trend:this.getTimelineTrend("stats","avg_time")},2)),g("#sws_rates_wSHT").swswidget("setvalue",this.formatWValDurationMS({value:this.getLatestTimelineValue("stats","total_time"),trend:this.getTimelineTrend("stats","total_time")})),g("#sws_rates_wOApd").swswidget("setvalue",{value:this.apistats.all.apdex_score.toFixed(2),customtrend:function(t){var e=100*n.apistats.all.apdex_score.toFixed(2);t.append(g('<div class="swsbox-trend-container"><span class="pie">'+e+"/100</span></div>")),t.find(".pie").peity("donut",{fill:["#ff9900","#e7eaec"],radius:30,innerRadius:16})}}),g("#sws_rates_wORqR").swswidget("setvalue",{value:this.apistats.all.req_rate.toFixed(4),extra:"req/sec"}),g("#sws_rates_wOErR").swswidget("setvalue",{value:this.apistats.all.err_rate.toFixed(4),extra:"err/sec"}),g("#sws_rates_wOMHT").swswidget("setvalue",this.formatWValDurationMS({value:this.apistats.all.max_time})),g("#sws_rates_wOAHT").swswidget("setvalue",this.formatWValDurationMS({value:this.apistats.all.avg_time})),g("#sws_rates_wOSHT").swswidget("setvalue",this.formatWValDurationMS({value:this.apistats.all.total_time}));var t=g("#sws_rates_cApd");this.buildTimeSeriesChartData(t.swschart("getchartdata"),"stats",["apdex_score"]),t.swschart("update");var e=g("#sws_rates_cRER");this.buildTimeSeriesChartData(e.swschart("getchartdata"),"stats",["req_rate","err_rate"]),e.swschart("update")}},a.prototype.updatePayload=function(){if(null!=this.apistats){g("#sws_payl_wTRqP").swswidget("setvalue",{value:this.apistats.all.total_req_clength,trend:this.getTimelineTrend("stats","total_req_clength")}),g("#sws_payl_wMRqP").swswidget("setvalue",{value:this.apistats.all.max_req_clength,trend:this.getTimelineTrend("stats","max_req_clength")}),g("#sws_payl_wARqP").swswidget("setvalue",{value:this.apistats.all.avg_req_clength.toFixed(0),trend:this.getTimelineTrend("stats","avg_req_clength")}),g("#sws_payl_wTRsP").swswidget("setvalue",{value:this.apistats.all.total_res_clength,trend:this.getTimelineTrend("stats","total_res_clength")}),g("#sws_payl_wMRsP").swswidget("setvalue",{value:this.apistats.all.max_res_clength,trend:this.getTimelineTrend("stats","max_res_clength")}),g("#sws_payl_wARsP").swswidget("setvalue",{value:this.apistats.all.avg_res_clength.toFixed(0),trend:this.getTimelineTrend("stats","avg_res_clength")});var t=g("#sws_payl_cRqPl");this.buildTimeSeriesChartData(t.swschart("getchartdata"),"stats",["total_req_clength","avg_req_clength","max_req_clength"]),t.swschart("update");var e=g("#sws_payl_cRsPl");this.buildTimeSeriesChartData(e.swschart("getchartdata"),"stats",["total_res_clength","avg_res_clength","max_res_clength"]),e.swschart("update")}},a.prototype.updateAPI=function(){if(null!=this.apistats){var t=g("#sws_api_tApi");for(var e in t.swstable("clear"),this.apistats.apistats){var n=this.apistats.apistats[e];for(var i in n){var a=n[i],r={swagger:!1,deprecated:!1,operationId:"",summary:"",description:""};"apidefs"in this.apistats&&e in this.apistats.apidefs&&i in this.apistats.apidefs[e]&&(r=this.apistats.apidefs[e][i]);var s=["",e,i,"swagger"in r&&r.swagger?"Yes":"No","deprecated"in r&&r.deprecated?"Yes":"",a.requests,a.responses,a.requests-a.responses,a.errors,a.req_rate.toFixed(4),a.err_rate.toFixed(4),a.success,a.redirect,a.client_error,a.server_error,a.apdex_score.toFixed(2),a.max_time,a.avg_time.toFixed(2),a.avg_req_clength,a.avg_res_clength,"operationId"in r?r.operationId:"","summary"in r?r.summary:"","description"in r?r.description:"","tags"in r?r.tags.join(","):""];t.swstable("rowadd",{row:s})}}t.swstable("update")}},a.prototype.switchToAPIOp=function(t,e){var n="#sws_apiop="+t+","+e;i.location.hash=n},a.prototype.updateAPIOp=function(){if(null!=this.apistats){g("#sws_apiop_opsel").swsapiopsel("update",this.apistats);var t={};if(null==this.activePageContext&&null==this.activeRouteContext)return g("#sws_apiop_opsel").swsapiopsel("getvalue",t),this.activePageContext=t.method+","+t.path,void this.refreshStats();t={};var e=this.activePageContext.split(",",2);t.method=e[0],t.path=e[1],g("#sws_apiop_opsel").swsapiopsel("setvalue",this.activePageContext),g("#sws_apiop_wPath").swswidget("setvalue",{value:"",title:t.method+" "+t.path,subtitle:this.getAPIOpInfoMarkup(t.path,t.method)});var n=null,i=null;if("apiop"in this.apistats&&t.path in this.apistats.apiop&&t.method in this.apistats.apiop[t.path]&&("stats"in this.apistats.apiop[t.path][t.method]&&(n=this.apistats.apiop[t.path][t.method].stats),"details"in this.apistats.apiop[t.path][t.method]&&(i=this.apistats.apiop[t.path][t.method].details)),null!=n&&(g("#sws_apiop_wRq").swswidget("setvalue",{value:n.requests}),g("#sws_apiop_wApd").swswidget("setvalue",{value:n.apdex_score.toFixed(2),customtrend:function(t){var e=100*n.apdex_score.toFixed(2);t.append(g('<div class="swsbox-trend-container"><span class="pie">'+e+"/100</span></div>")),t.find(".pie").peity("donut",{fill:["#ff9900","#e7eaec"],radius:30,innerRadius:16})}}),g("#sws_apiop_wRRte").swswidget("setvalue",{value:n.req_rate.toFixed(4),extra:"req/sec"}),g("#sws_apiop_wERte").swswidget("setvalue",{value:n.err_rate.toFixed(4),extra:"err/sec"}),g("#sws_apiop_wAHt").swswidget("setvalue",this.formatWValDurationMS({value:n.avg_time})),g("#sws_apiop_wRrCl").swswidget("setvalue",{value:n.avg_req_clength,extra:"bytes"}),g("#sws_apiop_wErr").swswidget("setvalue",{value:n.errors,total:n.requests}),g("#sws_apiop_wSs").swswidget("setvalue",{value:n.success,total:n.requests}),g("#sws_apiop_wRed").swswidget("setvalue",{value:n.redirect,total:n.requests}),g("#sws_apiop_wCe").swswidget("setvalue",{value:n.client_error,total:n.requests}),g("#sws_apiop_wSe").swswidget("setvalue",{value:n.server_error,total:n.requests}),g("#sws_apiop_wReCl").swswidget("setvalue",{value:n.avg_res_clength,extra:"bytes"}),null!=i)){if("duration"in i&&"buckets"in i.duration&&"values"in i.duration){var a=g("#sws_apiop_cHTH");this.updateHistogramChartData(a.swschart("getchartdata"),i.duration.buckets,i.duration.values),a.swschart("update")}if("req_size"in i&&"buckets"in i.req_size&&"values"in i.req_size){var r=g("#sws_apiop_cRqSH");this.updateHistogramChartData(r.swschart("getchartdata"),i.req_size.buckets,i.req_size.values),r.swschart("update")}if("res_size"in i&&"buckets"in i.res_size&&"values"in i.res_size){var s=g("#sws_apiop_cRsSH");this.updateHistogramChartData(s.swschart("getchartdata"),i.res_size.buckets,i.res_size.values),s.swschart("update")}if("code"in i){var o=g("#sws_apiop_cRsC");this.updateByCodeChartData(o.swschart("getchartdata"),i.code),o.swschart("update")}var l=g("#sws_apiop_tParams");if(l.swstable("clear"),i.parameters)for(var u in i.parameters){var d=i.parameters[u],c=["","name"in d?d.name:"","in"in d?d.in:"","hits"in d?d.hits:0,"misses"in d?d.misses:0,"type"in d?d.type:"","format"in d?d.format:"","required"in d?d.required:"","description"in d?d.description:"",JSON.stringify(d,null,4)];l.swstable("rowadd",{row:c})}l.swstable("update")}}},a.prototype.updateHistogramChartData=function(t,e,n){for(var i="0",a=0;a<n.length;a++){var r=a<e.length?e[a]:"inf",s=n[a],o=i+"-"+r,l=t.labels.indexOf(o);i=r,-1!=l?t.datasets[0].data[l]=s:(l=t.labels.length,t.labels.push(o),t.datasets[0].data.push(s),l>=this.palette2.length&&(l%=this.palette2.length),t.datasets[0].backgroundColor.push(this.palette2[l]))}},a.prototype.updateByCodeChartData=function(t,e){for(var n in e){var i=e[n],a=n,r="count"in i?i.count:0,s=t.labels.indexOf(a);-1!=s?t.datasets[0].data[s]=r:(s=t.labels.length,t.labels.push(a),t.datasets[0].data.push(r),s>=this.palette2.length&&(s%=this.palette2.length),t.datasets[0].backgroundColor.push(this.palette2[s]))}},a.prototype.getInfoRowMarkup=function(t,e){return'<div class="sws-info-row"><div class="sws-info-label">'+t+'</div><div class="sws-info-value">'+e+"</div></div>"},a.prototype.getAPIOpInfoMarkup=function(t,e){var n="";if("apidefs"in this.apistats&&t in this.apistats.apidefs&&e in this.apistats.apidefs[t]){var i=this.apistats.apidefs[t][e],a="No";"swagger"in i&&i.swagger&&(a="Yes"),n+=this.getInfoRowMarkup("Swagger",a),"deprecated"in i&&i.deprecated&&(n+=this.getInfoRowMarkup("Deprecated","Yes")),"operationId"in i&&(n+=this.getInfoRowMarkup("operationId",i.operationId)),"summary"in i&&(n+=this.getInfoRowMarkup("Summary",i.summary)),"description"in i&&(n+=this.getInfoRowMarkup("Description",i.description)),"tags"in i&&(n+=this.getInfoRowMarkup("Tags",i.tags.join(",")))}else n+=this.getInfoRowMarkup("Swagger","No");return n+="</div>"},g.fn[r]=function(e,n){var i;return this.each(function(){var t=g.data(this,r);"string"==typeof e?t?g.isFunction(t[e])&&"_"!==e.charAt(0)?(n instanceof Array||(n=[n]),i=t[e].apply(t,n)):logError("No such method : "+e):logError("Not initialized, can not call method : "+e):"boolean"==typeof e?i=t:g.data(this,r,new a(this,g.extend(!0,{},e)))}),i||this}}(jQuery,window,document);
|