diff --git a/.github/workflows/buml.yml b/.github/workflows/buml.yml new file mode 100644 index 00000000..812d2ebd --- /dev/null +++ b/.github/workflows/buml.yml @@ -0,0 +1,46 @@ +name: Check & deploy API documentation +permissions: + contents: read + pull-requests: write +on: + push: + branches: + - main + - master + pull_request: + branches: + - main + - master +jobs: + deploy-doc: + if: ${{ github.event_name == 'push' }} + name: Deploy API documentation on Bump.sh + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Deploy API documentation + uses: bump-sh/github-action@v1 + with: + doc: DOCUMENTATION_SLUG_OR_ID + token: uCKPabeS93eYP9DQ3PZq2HX7xVhxkosq + file: doc/api-documentation.yml + api-diff: + if: ${{ github.event_name == 'pull_request' }} + name: Check API diff on Bump.sh + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Comment pull request with API diff + uses: bump-sh/github-action@v1 + with: + doc: DOCUMENTATION_SLUG_OR_ID + token: uCKPabeS93eYP9DQ3PZq2HX7xVhxkosq + file: doc/api-documentation.yml + command: diff + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + + diff --git a/public/vendor/horizon/app.js b/public/vendor/horizon/app.js index fcce182a..e765b207 100644 --- a/public/vendor/horizon/app.js +++ b/public/vendor/horizon/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -(()=>{var t,e={9669:(t,e,o)=>{t.exports=o(1609)},5448:(t,e,o)=>{"use strict";var n=o(4867),p=o(6026),b=o(4372),M=o(5327),z=o(4097),r=o(4109),c=o(7985),i=o(5061);t.exports=function(t){return new Promise((function(e,o){var a=t.data,O=t.headers,s=t.responseType;n.isFormData(a)&&delete O["Content-Type"];var l=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",u=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";O.Authorization="Basic "+btoa(d+":"+u)}var A=z(t.baseURL,t.url);function f(){if(l){var n="getAllResponseHeaders"in l?r(l.getAllResponseHeaders()):null,b={data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:t,request:l};p(e,o,b),l=null}}if(l.open(t.method.toUpperCase(),M(A,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(f)},l.onabort=function(){l&&(o(i("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){o(i("Network Error",t,null,l)),l=null},l.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),o(i(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},n.isStandardBrowserEnv()){var q=(t.withCredentials||c(A))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;q&&(O[t.xsrfHeaderName]=q)}"setRequestHeader"in l&&n.forEach(O,(function(t,e){void 0===a&&"content-type"===e.toLowerCase()?delete O[e]:l.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&"json"!==s&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){l&&(l.abort(),o(t),l=null)})),a||(a=null),l.send(a)}))}},1609:(t,e,o)=>{"use strict";var n=o(4867),p=o(1849),b=o(321),M=o(7185);function z(t){var e=new b(t),o=p(b.prototype.request,e);return n.extend(o,b.prototype,e),n.extend(o,e),o}var r=z(o(5655));r.Axios=b,r.create=function(t){return z(M(r.defaults,t))},r.Cancel=o(5263),r.CancelToken=o(4972),r.isCancel=o(6502),r.all=function(t){return Promise.all(t)},r.spread=o(8713),r.isAxiosError=o(6268),t.exports=r,t.exports.default=r},5263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4972:(t,e,o)=>{"use strict";var n=o(5263);function p(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var o=this;t((function(t){o.reason||(o.reason=new n(t),e(o.reason))}))}p.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},p.source=function(){var t;return{token:new p((function(e){t=e})),cancel:t}},t.exports=p},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,o)=>{"use strict";var n=o(4867),p=o(5327),b=o(782),M=o(3572),z=o(7185),r=o(4875),c=r.validators;function i(t){this.defaults=t,this.interceptors={request:new b,response:new b}}i.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=z(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&r.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var o=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var p,b=[];if(this.interceptors.response.forEach((function(t){b.push(t.fulfilled,t.rejected)})),!n){var i=[M,void 0];for(Array.prototype.unshift.apply(i,o),i=i.concat(b),p=Promise.resolve(t);i.length;)p=p.then(i.shift(),i.shift());return p}for(var a=t;o.length;){var O=o.shift(),s=o.shift();try{a=O(a)}catch(t){s(t);break}}try{p=M(a)}catch(t){return Promise.reject(t)}for(;b.length;)p=p.then(b.shift(),b.shift());return p},i.prototype.getUri=function(t){return t=z(this.defaults,t),p(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){i.prototype[t]=function(e,o){return this.request(z(o||{},{method:t,url:e,data:(o||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){i.prototype[t]=function(e,o,n){return this.request(z(n||{},{method:t,url:e,data:o}))}})),t.exports=i},782:(t,e,o)=>{"use strict";var n=o(4867);function p(){this.handlers=[]}p.prototype.use=function(t,e,o){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1},p.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},p.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=p},4097:(t,e,o)=>{"use strict";var n=o(1793),p=o(7303);t.exports=function(t,e){return t&&!n(e)?p(t,e):e}},5061:(t,e,o)=>{"use strict";var n=o(481);t.exports=function(t,e,o,p,b){var M=new Error(t);return n(M,e,o,p,b)}},3572:(t,e,o)=>{"use strict";var n=o(4867),p=o(8527),b=o(6502),M=o(5655);function z(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return z(t),t.headers=t.headers||{},t.data=p.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||M.adapter)(t).then((function(e){return z(t),e.data=p.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return b(e)||(z(t),e&&e.response&&(e.response.data=p.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,o,n,p){return t.config=e,o&&(t.code=o),t.request=n,t.response=p,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},7185:(t,e,o)=>{"use strict";var n=o(4867);t.exports=function(t,e){e=e||{};var o={},p=["url","method","data"],b=["headers","auth","proxy","params"],M=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],z=["validateStatus"];function r(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function c(p){n.isUndefined(e[p])?n.isUndefined(t[p])||(o[p]=r(void 0,t[p])):o[p]=r(t[p],e[p])}n.forEach(p,(function(t){n.isUndefined(e[t])||(o[t]=r(void 0,e[t]))})),n.forEach(b,c),n.forEach(M,(function(p){n.isUndefined(e[p])?n.isUndefined(t[p])||(o[p]=r(void 0,t[p])):o[p]=r(void 0,e[p])})),n.forEach(z,(function(n){n in e?o[n]=r(t[n],e[n]):n in t&&(o[n]=r(void 0,t[n]))}));var i=p.concat(b).concat(M).concat(z),a=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===i.indexOf(t)}));return n.forEach(a,c),o}},6026:(t,e,o)=>{"use strict";var n=o(5061);t.exports=function(t,e,o){var p=o.config.validateStatus;o.status&&p&&!p(o.status)?e(n("Request failed with status code "+o.status,o.config,null,o.request,o)):t(o)}},8527:(t,e,o)=>{"use strict";var n=o(4867),p=o(5655);t.exports=function(t,e,o){var b=this||p;return n.forEach(o,(function(o){t=o.call(b,t,e)})),t}},5655:(t,e,o)=>{"use strict";var n=o(4155),p=o(4867),b=o(6016),M=o(481),z={"Content-Type":"application/x-www-form-urlencoded"};function r(t,e){!p.isUndefined(t)&&p.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,i={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(c=o(5448)),c),transformRequest:[function(t,e){return b(e,"Accept"),b(e,"Content-Type"),p.isFormData(t)||p.isArrayBuffer(t)||p.isBuffer(t)||p.isStream(t)||p.isFile(t)||p.isBlob(t)?t:p.isArrayBufferView(t)?t.buffer:p.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):p.isObject(t)||e&&"application/json"===e["Content-Type"]?(r(e,"application/json"),function(t,e,o){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(o||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,o=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,b=!o&&"json"===this.responseType;if(b||n&&p.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(b){if("SyntaxError"===t.name)throw M(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}},p.forEach(["delete","get","head"],(function(t){i.headers[t]={}})),p.forEach(["post","put","patch"],(function(t){i.headers[t]=p.merge(z)})),t.exports=i},1849:t=>{"use strict";t.exports=function(t,e){return function(){for(var o=new Array(arguments.length),n=0;n{"use strict";var n=o(4867);function p(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,o){if(!e)return t;var b;if(o)b=o(e);else if(n.isURLSearchParams(e))b=e.toString();else{var M=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),M.push(p(e)+"="+p(t))})))})),b=M.join("&")}if(b){var z=t.indexOf("#");-1!==z&&(t=t.slice(0,z)),t+=(-1===t.indexOf("?")?"?":"&")+b}return t}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,o)=>{"use strict";var n=o(4867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,o,p,b,M){var z=[];z.push(t+"="+encodeURIComponent(e)),n.isNumber(o)&&z.push("expires="+new Date(o).toGMTString()),n.isString(p)&&z.push("path="+p),n.isString(b)&&z.push("domain="+b),!0===M&&z.push("secure"),document.cookie=z.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,o)=>{"use strict";var n=o(4867);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");function p(t){var n=t;return e&&(o.setAttribute("href",n),n=o.href),o.setAttribute("href",n),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}return t=p(window.location.href),function(e){var o=n.isString(e)?p(e):e;return o.protocol===t.protocol&&o.host===t.host}}():function(){return!0}},6016:(t,e,o)=>{"use strict";var n=o(4867);t.exports=function(t,e){n.forEach(t,(function(o,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=o,delete t[n])}))}},4109:(t,e,o)=>{"use strict";var n=o(4867),p=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,o,b,M={};return t?(n.forEach(t.split("\n"),(function(t){if(b=t.indexOf(":"),e=n.trim(t.substr(0,b)).toLowerCase(),o=n.trim(t.substr(b+1)),e){if(M[e]&&p.indexOf(e)>=0)return;M[e]="set-cookie"===e?(M[e]?M[e]:[]).concat([o]):M[e]?M[e]+", "+o:o}})),M):M}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,o)=>{"use strict";var n=o(8593),p={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){p[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}}));var b={},M=n.version.split(".");function z(t,e){for(var o=e?e.split("."):M,n=t.split("."),p=0;p<3;p++){if(o[p]>n[p])return!0;if(o[p]0;){var b=n[p],M=e[b];if(M){var z=t[b],r=void 0===z||M(z,b,t);if(!0!==r)throw new TypeError("option "+b+" must be "+r)}else if(!0!==o)throw Error("Unknown option "+b)}},validators:p}},4867:(t,e,o)=>{"use strict";var n=o(1849),p=Object.prototype.toString;function b(t){return"[object Array]"===p.call(t)}function M(t){return void 0===t}function z(t){return null!==t&&"object"==typeof t}function r(t){if("[object Object]"!==p.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===p.call(t)}function i(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),b(t))for(var o=0,n=t.length;o{"use strict";var n=Object.freeze({}),p=Array.isArray;function b(t){return null==t}function M(t){return null!=t}function z(t){return!0===t}function r(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return"function"==typeof t}function i(t){return null!==t&&"object"==typeof t}var a=Object.prototype.toString;function O(t){return"[object Object]"===a.call(t)}function s(t){return"[object RegExp]"===a.call(t)}function l(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return M(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function u(t){return null==t?"":Array.isArray(t)||O(t)&&t.toString===a?JSON.stringify(t,null,2):String(t)}function A(t){var e=parseFloat(t);return isNaN(e)?t:e}function f(t,e){for(var o=Object.create(null),n=t.split(","),p=0;p-1)return t.splice(n,1)}}var v=Object.prototype.hasOwnProperty;function g(t,e){return v.call(t,e)}function m(t){var e=Object.create(null);return function(o){return e[o]||(e[o]=t(o))}}var R=/-(\w)/g,y=m((function(t){return t.replace(R,(function(t,e){return e?e.toUpperCase():""}))})),B=m((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),L=/\B([A-Z])/g,X=m((function(t){return t.replace(L,"-$1").toLowerCase()}));var _=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function o(o){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,o):t.call(e)}return o._length=t.length,o};function N(t,e){e=e||0;for(var o=t.length-e,n=new Array(o);o--;)n[o]=t[o+e];return n}function x(t,e){for(var o in e)t[o]=e[o];return t}function w(t){for(var e={},o=0;o0,et=Q&&Q.indexOf("edge/")>0;Q&&Q.indexOf("android");var ot=Q&&/iphone|ipad|ipod|ios/.test(Q);Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q);var nt,pt=Q&&Q.match(/firefox\/(\d+)/),bt={}.watch,Mt=!1;if(K)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){Mt=!0}}),window.addEventListener("test-passive",null,zt)}catch(t){}var rt=function(){return void 0===nt&&(nt=!K&&void 0!==o.g&&(o.g.process&&"server"===o.g.process.env.VUE_ENV)),nt},ct=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function it(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,Ot="undefined"!=typeof Symbol&&it(Symbol)&&"undefined"!=typeof Reflect&&it(Reflect.ownKeys);at="undefined"!=typeof Set&&it(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var st=null;function lt(t){void 0===t&&(t=null),t||st&&st._scope.off(),st=t,t&&t._scope.on()}var dt=function(){function t(t,e,o,n,p,b,M,z){this.tag=t,this.data=e,this.children=o,this.text=n,this.elm=p,this.ns=void 0,this.context=b,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=M,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=z,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),ut=function(t){void 0===t&&(t="");var e=new dt;return e.text=t,e.isComment=!0,e};function At(t){return new dt(void 0,void 0,void 0,String(t))}function ft(t){var e=new dt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var qt=0,ht=[],Wt=function(){function t(){this._pending=!1,this.id=qt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,ht.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var o=0,n=e.length;o0&&(Jt((n=Kt(n,"".concat(e||"","_").concat(o)))[0])&&Jt(i)&&(a[c]=At(i.text+n[0].text),n.shift()),a.push.apply(a,n)):r(n)?Jt(i)?a[c]=At(i.text+n):""!==n&&a.push(At(n)):Jt(n)&&Jt(i)?a[c]=At(i.text+n.text):(z(t._isVList)&&M(n.tag)&&b(n.key)&&M(e)&&(n.key="__vlist".concat(e,"_").concat(o,"__")),a.push(n)));return a}function Qt(t,e,o,n,b,a){return(p(o)||r(o))&&(b=n,n=o,o=void 0),z(a)&&(b=2),function(t,e,o,n,b){if(M(o)&&M(o.__ob__))return ut();M(o)&&M(o.is)&&(e=o.is);if(!e)return ut();0;p(n)&&c(n[0])&&((o=o||{}).scopedSlots={default:n[0]},n.length=0);2===b?n=Gt(n):1===b&&(n=function(t){for(var e=0;e0,z=e?!!e.$stable:!M,r=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(z&&p&&p!==n&&r===p.$key&&!M&&!p.$hasNormal)return p;for(var c in b={},e)e[c]&&"$"!==c[0]&&(b[c]=qe(t,o,c,e[c]))}else b={};for(var i in o)i in b||(b[i]=he(o,i));return e&&Object.isExtensible(e)&&(e._normalized=b),Y(b,"$stable",z),Y(b,"$key",r),Y(b,"$hasNormal",M),b}function qe(t,e,o,n){var b=function(){var e=st;lt(t);var o=arguments.length?n.apply(null,arguments):n({}),b=(o=o&&"object"==typeof o&&!p(o)?[o]:Gt(o))&&o[0];return lt(e),o&&(!b||1===o.length&&b.isComment&&!Ae(b))?void 0:o};return n.proxy&&Object.defineProperty(e,o,{get:b,enumerable:!0,configurable:!0}),b}function he(t,e){return function(){return t[e]}}function We(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};Y(e,"_v_attr_proxy",!0),ve(e,t.$attrs,n,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||ve(t._listenersProxy={},t.$listeners,n,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||me(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:_(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(o){return Ft(t,e,o)}))}}}function ve(t,e,o,n,p){var b=!1;for(var M in e)M in t?e[M]!==o[M]&&(b=!0):(b=!0,ge(t,M,n,p));for(var M in t)M in e||(b=!0,delete t[M]);return b}function ge(t,e,o,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return o[n][e]}})}function me(t,e){for(var o in e)t[o]=e[o];for(var o in t)o in e||delete t[o]}var Re,ye=null;function Be(t,e){return(t.__esModule||Ot&&"Module"===t[Symbol.toStringTag])&&(t=t.default),i(t)?e.extend(t):t}function Le(t){if(p(t))for(var e=0;edocument.createEvent("Event").timeStamp&&(Ve=function(){return $e.now()})}var Ye=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Ge(){var t,e;for(Ue=Ve(),Fe=!0,De.sort(Ye),He=0;HeHe&&De[o].id>t.id;)o--;De.splice(o+1,0,t)}else De.push(t);Ie||(Ie=!0,lo(Ge))}}var Ke="watcher";"".concat(Ke," callback"),"".concat(Ke," getter"),"".concat(Ke," cleanup");var Qe;var Ze=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Qe,!t&&Qe&&(this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=Qe;try{return Qe=this,t()}finally{Qe=e}}else 0},t.prototype.on=function(){Qe=this},t.prototype.off=function(){Qe=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,o=void 0;for(e=0,o=this.effects.length;e-1)if(b&&!g(p,"default"))M=!1;else if(""===M||M===X(t)){var r=tn(String,p.type);(r<0||z-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!s(t)&&t.test(e)}function bn(t,e){var o=t.cache,n=t.keys,p=t._vnode;for(var b in o){var M=o[b];if(M){var z=M.name;z&&!e(z)&&Mn(o,b,n,p)}}}function Mn(t,e,o,n){var p=t[e];!p||n&&p.tag===n.tag||p.componentInstance.$destroy(),t[e]=null,W(o,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=No++,e._isVue=!0,e.__v_skip=!0,e._scope=new Ze(!0),e._scope._vm=!0,t&&t._isComponent?function(t,e){var o=t.$options=Object.create(t.constructor.options),n=e._parentVnode;o.parent=e.parent,o._parentVnode=n;var p=n.componentOptions;o.propsData=p.propsData,o._parentListeners=p.listeners,o._renderChildren=p.children,o._componentTag=p.tag,e.render&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Yo(xo(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,o=e.parent;if(o&&!e.abstract){for(;o.$options.abstract&&o.$parent;)o=o.$parent;o.$children.push(t)}t.$parent=o,t.$root=o?o.$root:t,t.$children=[],t.$refs={},t._provided=o?o._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&xe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,o=t.$vnode=e._parentVnode,p=o&&o.context;t.$slots=de(e._renderChildren,p),t.$scopedSlots=o?fe(t.$parent,o.data.scopedSlots,t.$slots):n,t._c=function(e,o,n,p){return Qt(t,e,o,n,p,!1)},t.$createElement=function(e,o,n,p){return Qt(t,e,o,n,p,!0)};var b=o&&o.data;Et(t,"$attrs",b&&b.attrs||n,null,!0),Et(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ee(e,"beforeCreate",void 0,!1),function(t){var e=_o(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(o){Et(t,o,e[o])})),Tt(!0))}(e),mo(e),function(t){var e=t.$options.provide;if(e){var o=c(e)?e.call(t):e;if(!i(o))return;for(var n=to(t),p=Ot?Reflect.ownKeys(o):Object.keys(o),b=0;b1?N(o):o;for(var n=N(arguments,1),p='event handler for "'.concat(t,'"'),b=0,M=o.length;bparseInt(this.max)&&Mn(e,o[0],o,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Mn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){bn(t,(function(t){return pn(e,t)}))})),this.$watch("exclude",(function(e){bn(t,(function(t){return!pn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Le(t),o=e&&e.componentOptions;if(o){var n=nn(o),p=this.include,b=this.exclude;if(p&&(!n||!pn(p,n))||b&&n&&pn(b,n))return e;var M=this.cache,z=this.keys,r=null==e.key?o.Ctor.cid+(o.tag?"::".concat(o.tag):""):e.key;M[r]?(e.componentInstance=M[r].componentInstance,W(z,r),z.push(r)):(this.vnodeToCache=e,this.keyToCache=r),e.data.keepAlive=!0}return e||t&&t[0]}},cn={KeepAlive:rn};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:jo,extend:x,mergeOptions:Yo,defineReactive:Et},t.set=Dt,t.delete=Pt,t.nextTick=lo,t.observable=function(t){return kt(t),t},t.options=Object.create(null),I.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,x(t.options.components,cn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var o=N(arguments,1);return o.unshift(this),c(t.install)?t.install.apply(t,o):c(t)&&t.apply(null,o),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Yo(this.options,t),this}}(t),on(t),function(t){I.forEach((function(e){t[e]=function(t,o){return o?("component"===e&&O(o)&&(o.name=o.name||t,o=this.options._base.extend(o)),"directive"===e&&c(o)&&(o={bind:o,update:o}),this.options[e+"s"][t]=o,o):this.options[e+"s"][t]}}))}(t)}(en),Object.defineProperty(en.prototype,"$isServer",{get:rt}),Object.defineProperty(en.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(en,"FunctionalRenderContext",{value:wo}),en.version="2.7.13";var an=f("style,class"),On=f("input,textarea,option,select,progress"),sn=function(t,e,o){return"value"===o&&On(t)&&"button"!==e||"selected"===o&&"option"===t||"checked"===o&&"input"===t||"muted"===o&&"video"===t},ln=f("contenteditable,draggable,spellcheck"),dn=f("events,caret,typing,plaintext-only"),un=f("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),An="http://www.w3.org/1999/xlink",fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},qn=function(t){return fn(t)?t.slice(6,t.length):""},hn=function(t){return null==t||!1===t};function Wn(t){for(var e=t.data,o=t,n=t;M(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=vn(n.data,e));for(;M(o=o.parent);)o&&o.data&&(e=vn(e,o.data));return function(t,e){if(M(t)||M(e))return gn(t,mn(e));return""}(e.staticClass,e.class)}function vn(t,e){return{staticClass:gn(t.staticClass,e.staticClass),class:M(t.class)?[t.class,e.class]:e.class}}function gn(t,e){return t?e?t+" "+e:t:e||""}function mn(t){return Array.isArray(t)?function(t){for(var e,o="",n=0,p=t.length;n-1?Jn(t,e,o):un(e)?hn(o)?t.removeAttribute(e):(o="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,o)):ln(e)?t.setAttribute(e,function(t,e){return hn(e)||"false"===e?"false":"contenteditable"===t&&dn(e)?e:"true"}(e,o)):fn(e)?hn(o)?t.removeAttributeNS(An,qn(e)):t.setAttributeNS(An,e,o):Jn(t,e,o)}function Jn(t,e,o){if(hn(o))t.removeAttribute(e);else{if(Z&&!tt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==o&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,o)}}var Kn={create:Yn,update:Yn};function Qn(t,e){var o=e.elm,n=e.data,p=t.data;if(!(b(n.staticClass)&&b(n.class)&&(b(p)||b(p.staticClass)&&b(p.class)))){var z=Wn(e),r=o._transitionClasses;M(r)&&(z=gn(z,mn(r))),z!==o._prevClass&&(o.setAttribute("class",z),o._prevClass=z)}}var Zn,tp,ep,op,np,pp,bp={create:Qn,update:Qn},Mp=/[\w).+\-_$\]]/;function zp(t){var e,o,n,p,b,M=!1,z=!1,r=!1,c=!1,i=0,a=0,O=0,s=0;for(n=0;n=0&&" "===(d=t.charAt(l));l--);d&&Mp.test(d)||(c=!0)}}else void 0===p?(s=n+1,p=t.slice(0,n).trim()):u();function u(){(b||(b=[])).push(t.slice(s,n).trim()),s=n+1}if(void 0===p?p=t.slice(0,n).trim():0!==s&&u(),b)for(n=0;n-1?{exp:t.slice(0,op),key:'"'+t.slice(op+1)+'"'}:{exp:t,key:null};tp=t,op=np=pp=0;for(;!mp();)Rp(ep=gp())?Bp(ep):91===ep&&yp(ep);return{exp:t.slice(0,np),key:t.slice(np+1,pp)}}(t);return null===o.key?"".concat(t,"=").concat(e):"$set(".concat(o.exp,", ").concat(o.key,", ").concat(e,")")}function gp(){return tp.charCodeAt(++op)}function mp(){return op>=Zn}function Rp(t){return 34===t||39===t}function yp(t){var e=1;for(np=op;!mp();)if(Rp(t=gp()))Bp(t);else if(91===t&&e++,93===t&&e--,0===e){pp=op;break}}function Bp(t){for(var e=t;!mp()&&(t=gp())!==e;);}var Lp,Xp="__r";function _p(t,e,o){var n=Lp;return function p(){var b=e.apply(null,arguments);null!==b&&wp(t,p,o,n)}}var Np=Mo&&!(pt&&Number(pt[1])<=53);function xp(t,e,o,n){if(Np){var p=Ue,b=e;e=b._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=p||t.timeStamp<=0||t.target.ownerDocument!==document)return b.apply(this,arguments)}}Lp.addEventListener(t,e,Mt?{capture:o,passive:n}:o)}function wp(t,e,o,n){(n||Lp).removeEventListener(t,e._wrapper||e,o)}function Tp(t,e){if(!b(t.data.on)||!b(e.data.on)){var o=e.data.on||{},n=t.data.on||{};Lp=e.elm||t.elm,function(t){if(M(t.__r)){var e=Z?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}M(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(o),Vt(o,n,xp,wp,_p,e.context),Lp=void 0}}var Cp,Sp={create:Tp,update:Tp,destroy:function(t){return Tp(t,kn)}};function kp(t,e){if(!b(t.data.domProps)||!b(e.data.domProps)){var o,n,p=e.elm,r=t.data.domProps||{},c=e.data.domProps||{};for(o in(M(c.__ob__)||z(c._v_attr_proxy))&&(c=e.data.domProps=x({},c)),r)o in c||(p[o]="");for(o in c){if(n=c[o],"textContent"===o||"innerHTML"===o){if(e.children&&(e.children.length=0),n===r[o])continue;1===p.childNodes.length&&p.removeChild(p.childNodes[0])}if("value"===o&&"PROGRESS"!==p.tagName){p._value=n;var i=b(n)?"":String(n);Ep(p,i)&&(p.value=i)}else if("innerHTML"===o&&Bn(p.tagName)&&b(p.innerHTML)){(Cp=Cp||document.createElement("div")).innerHTML="".concat(n,"");for(var a=Cp.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;a.firstChild;)p.appendChild(a.firstChild)}else if(n!==r[o])try{p[o]=n}catch(t){}}}}function Ep(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var o=!0;try{o=document.activeElement!==t}catch(t){}return o&&t.value!==e}(t,e)||function(t,e){var o=t.value,n=t._vModifiers;if(M(n)){if(n.number)return A(o)!==A(e);if(n.trim)return o.trim()!==e.trim()}return o!==e}(t,e))}var Dp={create:kp,update:kp},Pp=m((function(t){var e={},o=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(o);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function jp(t){var e=Ip(t.style);return t.staticStyle?x(t.staticStyle,e):e}function Ip(t){return Array.isArray(t)?w(t):"string"==typeof t?Pp(t):t}var Fp,Hp=/^--/,Up=/\s*!important$/,Vp=function(t,e,o){if(Hp.test(e))t.style.setProperty(e,o);else if(Up.test(o))t.style.setProperty(X(e),o.replace(Up,""),"important");else{var n=Yp(e);if(Array.isArray(o))for(var p=0,b=o.length;p-1?e.split(Kp).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var o=" ".concat(t.getAttribute("class")||""," ");o.indexOf(" "+e+" ")<0&&t.setAttribute("class",(o+e).trim())}}function Zp(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Kp).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var o=" ".concat(t.getAttribute("class")||""," "),n=" "+e+" ";o.indexOf(n)>=0;)o=o.replace(n," ");(o=o.trim())?t.setAttribute("class",o):t.removeAttribute("class")}}function tb(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&x(e,eb(t.name||"v")),x(e,t),e}return"string"==typeof t?eb(t):void 0}}var eb=m((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),ob=K&&!tt,nb="transition",pb="animation",bb="transition",Mb="transitionend",zb="animation",rb="animationend";ob&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(bb="WebkitTransition",Mb="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(zb="WebkitAnimation",rb="webkitAnimationEnd"));var cb=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ib(t){cb((function(){cb(t)}))}function ab(t,e){var o=t._transitionClasses||(t._transitionClasses=[]);o.indexOf(e)<0&&(o.push(e),Qp(t,e))}function Ob(t,e){t._transitionClasses&&W(t._transitionClasses,e),Zp(t,e)}function sb(t,e,o){var n=db(t,e),p=n.type,b=n.timeout,M=n.propCount;if(!p)return o();var z=p===nb?Mb:rb,r=0,c=function(){t.removeEventListener(z,i),o()},i=function(e){e.target===t&&++r>=M&&c()};setTimeout((function(){r0&&(o=nb,i=M,a=b.length):e===pb?c>0&&(o=pb,i=c,a=r.length):a=(o=(i=Math.max(M,c))>0?M>c?nb:pb:null)?o===nb?b.length:r.length:0,{type:o,timeout:i,propCount:a,hasTransform:o===nb&&lb.test(n[bb+"Property"])}}function ub(t,e){for(;t.length1}function vb(t,e){!0!==e.data.show&&fb(e)}var gb=function(t){var e,o,n={},c=t.modules,i=t.nodeOps;for(e=0;el?h(t,b(o[A+1])?null:o[A+1].elm,o,s,A,n):s>A&&v(e,a,l)}(a,d,A,o,c):M(A)?(M(t.text)&&i.setTextContent(a,""),h(a,null,A,0,A.length-1,o)):M(d)?v(d,0,d.length-1):M(t.text)&&i.setTextContent(a,""):t.text!==e.text&&i.setTextContent(a,e.text),M(l)&&M(s=l.hook)&&M(s=s.postpatch)&&s(t,e)}}}function y(t,e,o){if(z(o)&&M(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,M.selected!==b&&(M.selected=b);else if(k(Lb(M),n))return void(t.selectedIndex!==z&&(t.selectedIndex=z));p||(t.selectedIndex=-1)}}function Bb(t,e){return e.every((function(e){return!k(e,t)}))}function Lb(t){return"_value"in t?t._value:t.value}function Xb(t){t.target.composing=!0}function _b(t){t.target.composing&&(t.target.composing=!1,Nb(t.target,"input"))}function Nb(t,e){var o=document.createEvent("HTMLEvents");o.initEvent(e,!0,!0),t.dispatchEvent(o)}function xb(t){return!t.componentInstance||t.data&&t.data.transition?t:xb(t.componentInstance._vnode)}var wb={bind:function(t,e,o){var n=e.value,p=(o=xb(o)).data&&o.data.transition,b=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&p?(o.data.show=!0,fb(o,(function(){t.style.display=b}))):t.style.display=n?b:"none"},update:function(t,e,o){var n=e.value;!n!=!e.oldValue&&((o=xb(o)).data&&o.data.transition?(o.data.show=!0,n?fb(o,(function(){t.style.display=t.__vOriginalDisplay})):qb(o,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,o,n,p){p||(t.style.display=t.__vOriginalDisplay)}},Tb={model:mb,show:wb},Cb={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Sb(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Sb(Le(e.children)):t}function kb(t){var e={},o=t.$options;for(var n in o.propsData)e[n]=t[n];var p=o._parentListeners;for(var n in p)e[y(n)]=p[n];return e}function Eb(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Db=function(t){return t.tag||Ae(t)},Pb=function(t){return"show"===t.name},jb={name:"transition",props:Cb,abstract:!0,render:function(t){var e=this,o=this.$slots.default;if(o&&(o=o.filter(Db)).length){0;var n=this.mode;0;var p=o[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return p;var b=Sb(p);if(!b)return p;if(this._leaving)return Eb(t,p);var M="__transition-".concat(this._uid,"-");b.key=null==b.key?b.isComment?M+"comment":M+b.tag:r(b.key)?0===String(b.key).indexOf(M)?b.key:M+b.key:b.key;var z=(b.data||(b.data={})).transition=kb(this),c=this._vnode,i=Sb(c);if(b.data.directives&&b.data.directives.some(Pb)&&(b.data.show=!0),i&&i.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(b,i)&&!Ae(i)&&(!i.componentInstance||!i.componentInstance._vnode.isComment)){var a=i.data.transition=x({},z);if("out-in"===n)return this._leaving=!0,$t(a,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Eb(t,p);if("in-out"===n){if(Ae(b))return c;var O,s=function(){O()};$t(z,"afterEnter",s),$t(z,"enterCancelled",s),$t(a,"delayLeave",(function(t){O=t}))}}return p}}},Ib=x({tag:String,moveClass:String},Cb);delete Ib.mode;var Fb={props:Ib,beforeMount:function(){var t=this,e=this._update;this._update=function(o,n){var p=Te(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,p(),e.call(t,o,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",o=Object.create(null),n=this.prevChildren=this.children,p=this.$slots.default||[],b=this.children=[],M=kb(this),z=0;z-1?_n[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:_n[t]=/HTMLUnknownElement/.test(e.toString())},x(en.options.directives,Tb),x(en.options.components,$b),en.prototype.__patch__=K?gb:T,en.prototype.$mount=function(t,e){return function(t,e,o){var n;t.$el=e,t.$options.render||(t.$options.render=ut),Ee(t,"beforeMount"),n=function(){t._update(t._render(),o)},new Wo(t,n,T,{before:function(){t._isMounted&&!t._isDestroyed&&Ee(t,"beforeUpdate")}},!0),o=!1;var p=t._preWatchers;if(p)for(var b=0;b\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bM=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,MM="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(U.source,"]*"),zM="((?:".concat(MM,"\\:)?").concat(MM,")"),rM=new RegExp("^<".concat(zM)),cM=/^\s*(\/?)>/,iM=new RegExp("^<\\/".concat(zM,"[^>]*>")),aM=/^]+>/i,OM=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},AM=/&(?:lt|gt|quot|amp|#39);/g,fM=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,qM=f("pre,textarea",!0),hM=function(t,e){return t&&qM(t)&&"\n"===e[0]};function WM(t,e){var o=e?fM:AM;return t.replace(o,(function(t){return uM[t]}))}function vM(t,e){for(var o,n,p=[],b=e.expectHTML,M=e.isUnaryTag||C,z=e.canBeLeftOpenTag||C,r=0,c=function(){if(o=t,n&&lM(n)){var c=0,O=n.toLowerCase(),s=dM[O]||(dM[O]=new RegExp("([\\s\\S]*?)(]*>)","i"));v=t.replace(s,(function(t,o,n){return c=n.length,lM(O)||"noscript"===O||(o=o.replace(//g,"$1").replace(//g,"$1")),hM(O,o)&&(o=o.slice(1)),e.chars&&e.chars(o),""}));r+=t.length-v.length,t=v,a(O,r-c,r)}else{var l=t.indexOf("<");if(0===l){if(OM.test(t)){var d=t.indexOf("--\x3e");if(d>=0)return e.shouldKeepComment&&e.comment&&e.comment(t.substring(4,d),r,r+d+3),i(d+3),"continue"}if(sM.test(t)){var u=t.indexOf("]>");if(u>=0)return i(u+2),"continue"}var A=t.match(aM);if(A)return i(A[0].length),"continue";var f=t.match(iM);if(f){var q=r;return i(f[0].length),a(f[1],q,r),"continue"}var h=function(){var e=t.match(rM);if(e){var o={tagName:e[1],attrs:[],start:r};i(e[0].length);for(var n=void 0,p=void 0;!(n=t.match(cM))&&(p=t.match(bM)||t.match(pM));)p.start=r,i(p[0].length),p.end=r,o.attrs.push(p);if(n)return o.unarySlash=n[1],i(n[0].length),o.end=r,o}}();if(h)return function(t){var o=t.tagName,r=t.unarySlash;b&&("p"===n&&nM(o)&&a(n),z(o)&&n===o&&a(o));for(var c=M(o)||!!r,i=t.attrs.length,O=new Array(i),s=0;s=0){for(v=t.slice(l);!(iM.test(v)||rM.test(v)||OM.test(v)||sM.test(v)||(g=v.indexOf("<",1))<0);)l+=g,v=t.slice(l);W=t.substring(0,l)}l<0&&(W=t),W&&i(W.length),e.chars&&W&&e.chars(W,r-W.length,r)}if(t===o)return e.chars&&e.chars(t),"break"};t;){if("break"===c())break}function i(e){r+=e,t=t.substring(e)}function a(t,o,b){var M,z;if(null==o&&(o=r),null==b&&(b=r),t)for(z=t.toLowerCase(),M=p.length-1;M>=0&&p[M].lowerCasedTag!==z;M--);else M=0;if(M>=0){for(var c=p.length-1;c>=M;c--)e.end&&e.end(p[c].tag,o,b);p.length=M,n=M&&p[M-1].tag}else"br"===z?e.start&&e.start(t,[],!0,o,b):"p"===z&&(e.start&&e.start(t,[],!1,o,b),e.end&&e.end(t,o,b))}a()}var gM,mM,RM,yM,BM,LM,XM,_M,NM=/^@|^v-on:/,xM=/^v-|^@|^:|^#/,wM=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,TM=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,CM=/^\(|\)$/g,SM=/^\[.*\]$/,kM=/:(.*)$/,EM=/^:|^\.|^v-bind:/,DM=/\.[^.\]]+(?=[^\]]*$)/g,PM=/^v-slot(:|$)|^#/,jM=/[\r\n]/,IM=/[ \f\t\r\n]+/g,FM=m(tM),HM="_empty_";function UM(t,e,o){return{type:1,tag:t,attrsList:e,attrsMap:QM(e),rawAttrsMap:{},parent:o,children:[]}}function VM(t,e){gM=e.warn||cp,LM=e.isPreTag||C,XM=e.mustUseProp||C,_M=e.getTagNamespace||C;var o=e.isReservedTag||C;(function(t){return!(!(t.component||t.attrsMap[":is"]||t.attrsMap["v-bind:is"])&&(t.attrsMap.is?o(t.attrsMap.is):o(t.tag)))}),RM=ip(e.modules,"transformNode"),yM=ip(e.modules,"preTransformNode"),BM=ip(e.modules,"postTransformNode"),mM=e.delimiters;var n,p,b=[],M=!1!==e.preserveWhitespace,z=e.whitespace,r=!1,c=!1;function i(t){if(a(t),r||t.processed||(t=$M(t,e)),b.length||t===n||n.if&&(t.elseif||t.else)&&GM(n,{exp:t.elseif,block:t}),p&&!t.forbidden)if(t.elseif||t.else)M=t,z=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(p.children),z&&z.if&&GM(z,{exp:M.elseif,block:M});else{if(t.slotScope){var o=t.slotTarget||'"default"';(p.scopedSlots||(p.scopedSlots={}))[o]=t}p.children.push(t),t.parent=p}var M,z;t.children=t.children.filter((function(t){return!t.slotScope})),a(t),t.pre&&(r=!1),LM(t.tag)&&(c=!1);for(var i=0;ir&&(z.push(b=t.slice(r,p)),M.push(JSON.stringify(b)));var c=zp(n[1].trim());M.push("_s(".concat(c,")")),z.push({"@binding":c}),r=p+n[0].length}return r-1")+("true"===b?":(".concat(e,")"):":_q(".concat(e,",").concat(b,")"))),up(t,"change","var $$a=".concat(e,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(b,"):(").concat(M,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(n?"_n("+p+")":p,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(vp(e,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(vp(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(vp(e,"$$c"),"}"),null,!0)}(t,n,p);else if("input"===b&&"radio"===M)!function(t,e,o){var n=o&&o.number,p=Ap(t,"value")||"null";p=n?"_n(".concat(p,")"):p,ap(t,"checked","_q(".concat(e,",").concat(p,")")),up(t,"change",vp(e,p),null,!0)}(t,n,p);else if("input"===b||"textarea"===b)!function(t,e,o){var n=t.attrsMap.type;0;var p=o||{},b=p.lazy,M=p.number,z=p.trim,r=!b&&"range"!==n,c=b?"change":"range"===n?Xp:"input",i="$event.target.value";z&&(i="$event.target.value.trim()");M&&(i="_n(".concat(i,")"));var a=vp(e,i);r&&(a="if($event.target.composing)return;".concat(a));ap(t,"value","(".concat(e,")")),up(t,c,a,null,!0),(z||M)&&up(t,"blur","$forceUpdate()")}(t,n,p);else{if(!H.isReservedTag(b))return Wp(t,n,p),!1}return!0},text:function(t,e){e.value&&ap(t,"textContent","_s(".concat(e.value,")"),e)},html:function(t,e){e.value&&ap(t,"innerHTML","_s(".concat(e.value,")"),e)}},Mz={expectHTML:!0,modules:oz,directives:bz,isPreTag:function(t){return"pre"===t},isUnaryTag:eM,mustUseProp:sn,canBeLeftOpenTag:oM,isReservedTag:Ln,getTagNamespace:Xn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(oz)},zz=m((function(t){return f("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));function rz(t,e){t&&(nz=zz(e.staticKeys||""),pz=e.isReservedTag||C,cz(t),iz(t,!1))}function cz(t){if(t.static=function(t){if(2===t.type)return!1;if(3===t.type)return!0;return!(!t.pre&&(t.hasBindings||t.if||t.for||q(t.tag)||!pz(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(nz)))}(t),1===t.type){if(!pz(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,o=t.children.length;e|^function(?:\s+[\w$]+)?\s*\(/,Oz=/\([^)]*?\);*$/,sz=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,lz={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},dz={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},uz=function(t){return"if(".concat(t,")return null;")},Az={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:uz("$event.target !== $event.currentTarget"),ctrl:uz("!$event.ctrlKey"),shift:uz("!$event.shiftKey"),alt:uz("!$event.altKey"),meta:uz("!$event.metaKey"),left:uz("'button' in $event && $event.button !== 0"),middle:uz("'button' in $event && $event.button !== 1"),right:uz("'button' in $event && $event.button !== 2")};function fz(t,e){var o=e?"nativeOn:":"on:",n="",p="";for(var b in t){var M=qz(t[b]);t[b]&&t[b].dynamic?p+="".concat(b,",").concat(M,","):n+='"'.concat(b,'":').concat(M,",")}return n="{".concat(n.slice(0,-1),"}"),p?o+"_d(".concat(n,",[").concat(p.slice(0,-1),"])"):o+n}function qz(t){if(!t)return"function(){}";if(Array.isArray(t))return"[".concat(t.map((function(t){return qz(t)})).join(","),"]");var e=sz.test(t.value),o=az.test(t.value),n=sz.test(t.value.replace(Oz,""));if(t.modifiers){var p="",b="",M=[],z=function(e){if(Az[e])b+=Az[e],lz[e]&&M.push(e);else if("exact"===e){var o=t.modifiers;b+=uz(["ctrl","shift","alt","meta"].filter((function(t){return!o[t]})).map((function(t){return"$event.".concat(t,"Key")})).join("||"))}else M.push(e)};for(var r in t.modifiers)z(r);M.length&&(p+=function(t){return"if(!$event.type.indexOf('key')&&"+"".concat(t.map(hz).join("&&"),")return null;")}(M)),b&&(p+=b);var c=e?"return ".concat(t.value,".apply(null, arguments)"):o?"return (".concat(t.value,").apply(null, arguments)"):n?"return ".concat(t.value):t.value;return"function($event){".concat(p).concat(c,"}")}return e||o?t.value:"function($event){".concat(n?"return ".concat(t.value):t.value,"}")}function hz(t){var e=parseInt(t,10);if(e)return"$event.keyCode!==".concat(e);var o=lz[t],n=dz[t];return"_k($event.keyCode,"+"".concat(JSON.stringify(t),",")+"".concat(JSON.stringify(o),",")+"$event.key,"+"".concat(JSON.stringify(n))+")"}var Wz={on:function(t,e){t.wrapListeners=function(t){return"_g(".concat(t,",").concat(e.value,")")}},bind:function(t,e){t.wrapData=function(o){return"_b(".concat(o,",'").concat(t.tag,"',").concat(e.value,",").concat(e.modifiers&&e.modifiers.prop?"true":"false").concat(e.modifiers&&e.modifiers.sync?",true":"",")")}},cloak:T},vz=function(t){this.options=t,this.warn=t.warn||cp,this.transforms=ip(t.modules,"transformCode"),this.dataGenFns=ip(t.modules,"genData"),this.directives=x(x({},Wz),t.directives);var e=t.isReservedTag||C;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function gz(t,e){var o=new vz(e),n=t?"script"===t.tag?"null":mz(t,o):'_c("div")';return{render:"with(this){return ".concat(n,"}"),staticRenderFns:o.staticRenderFns}}function mz(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Rz(t,e);if(t.once&&!t.onceProcessed)return yz(t,e);if(t.for&&!t.forProcessed)return Xz(t,e);if(t.if&&!t.ifProcessed)return Bz(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var o=t.slotName||'"default"',n=wz(t,e),p="_t(".concat(o).concat(n?",function(){return ".concat(n,"}"):""),b=t.attrs||t.dynamicAttrs?Sz((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:y(t.name),value:t.value,dynamic:t.dynamic}}))):null,M=t.attrsMap["v-bind"];!b&&!M||n||(p+=",null");b&&(p+=",".concat(b));M&&(p+="".concat(b?"":",null",",").concat(M));return p+")"}(t,e);var o=void 0;if(t.component)o=function(t,e,o){var n=e.inlineTemplate?null:wz(e,o,!0);return"_c(".concat(t,",").concat(_z(e,o)).concat(n?",".concat(n):"",")")}(t.component,t,e);else{var n=void 0,p=e.maybeComponent(t);(!t.plain||t.pre&&p)&&(n=_z(t,e));var b=void 0,M=e.options.bindings;p&&M&&!1!==M.__isScriptSetup&&(b=function(t,e){var o=y(e),n=B(o),p=function(p){return t[e]===p?e:t[o]===p?o:t[n]===p?n:void 0},b=p("setup-const")||p("setup-reactive-const");if(b)return b;var M=p("setup-let")||p("setup-ref")||p("setup-maybe-ref");if(M)return M}(M,t.tag)),b||(b="'".concat(t.tag,"'"));var z=t.inlineTemplate?null:wz(t,e,!0);o="_c(".concat(b).concat(n?",".concat(n):"").concat(z?",".concat(z):"",")")}for(var r=0;r>>0}(M)):"",")")}(t,t.scopedSlots,e),",")),t.model&&(o+="model:{value:".concat(t.model.value,",callback:").concat(t.model.callback,",expression:").concat(t.model.expression,"},")),t.inlineTemplate){var b=function(t,e){var o=t.children[0];0;if(o&&1===o.type){var n=gz(o,e.options);return"inlineTemplate:{render:function(){".concat(n.render,"},staticRenderFns:[").concat(n.staticRenderFns.map((function(t){return"function(){".concat(t,"}")})).join(","),"]}")}}(t,e);b&&(o+="".concat(b,","))}return o=o.replace(/,$/,"")+"}",t.dynamicAttrs&&(o="_b(".concat(o,',"').concat(t.tag,'",').concat(Sz(t.dynamicAttrs),")")),t.wrapData&&(o=t.wrapData(o)),t.wrapListeners&&(o=t.wrapListeners(o)),o}function Nz(t){return 1===t.type&&("slot"===t.tag||t.children.some(Nz))}function xz(t,e){var o=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!o)return Bz(t,e,xz,"null");if(t.for&&!t.forProcessed)return Xz(t,e,xz);var n=t.slotScope===HM?"":String(t.slotScope),p="function(".concat(n,"){")+"return ".concat("template"===t.tag?t.if&&o?"(".concat(t.if,")?").concat(wz(t,e)||"undefined",":undefined"):wz(t,e)||"undefined":mz(t,e),"}"),b=n?"":",proxy:true";return"{key:".concat(t.slotTarget||'"default"',",fn:").concat(p).concat(b,"}")}function wz(t,e,o,n,p){var b=t.children;if(b.length){var M=b[0];if(1===b.length&&M.for&&"template"!==M.tag&&"slot"!==M.tag){var z=o?e.maybeComponent(M)?",1":",0":"";return"".concat((n||mz)(M,e)).concat(z)}var r=o?function(t,e){for(var o=0,n=0;n':'
',jz.innerHTML.indexOf(" ")>0}var Uz=!!K&&Hz(!1),Vz=!!K&&Hz(!0),$z=m((function(t){var e=xn(t);return e&&e.innerHTML})),Yz=en.prototype.$mount;en.prototype.$mount=function(t,e){if((t=t&&xn(t))===document.body||t===document.documentElement)return this;var o=this.$options;if(!o.render){var n=o.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=$z(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){0;var p=Fz(n,{outputSourceRange:!1,shouldDecodeNewlines:Uz,shouldDecodeNewlinesForHref:Vz,delimiters:o.delimiters,comments:o.comments},this),b=p.render,M=p.staticRenderFns;o.render=b,o.staticRenderFns=M}}return Yz.call(this,t,e)},en.compile=Fz;var Gz=o(8),Jz=o.n(Gz);const Kz={computed:{Horizon:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){return Horizon}))},methods:{formatDate:function(t){return Jz()(1e3*t).add((new Date).getTimezoneOffset()/60)},formatDateIso:function(t){return Jz()(t).add((new Date).getTimezoneOffset()/60)},jobBaseName:function(t){if(!t.includes("\\"))return t;var e=t.split("\\");return e[e.length-1]},autoLoadNewEntries:function(){this.autoLoadsNewEntries?(this.autoLoadsNewEntries=!1,localStorage.autoLoadsNewEntries=0):(this.autoLoadsNewEntries=!0,localStorage.autoLoadsNewEntries=1)},readableTimestamp:function(t){return this.formatDate(t).format("YYYY-MM-DD HH:mm:ss")}}};var Qz=o(9669),Zz=o.n(Qz);const tr=[{path:"/",redirect:"/dashboard"},{path:"/dashboard",name:"dashboard",component:o(1339).Z},{path:"/monitoring",name:"monitoring",component:o(4163).Z},{path:"/monitoring/:tag",component:o(6997).Z,children:[{path:"jobs",name:"monitoring-jobs",component:o(3064).Z,props:{type:"jobs"}},{path:"failed",name:"monitoring-failed",component:o(3064).Z,props:{type:"failed"}}]},{path:"/metrics",redirect:"/metrics/jobs"},{path:"/metrics/",component:o(1020).Z,children:[{path:"jobs",name:"metrics-jobs",component:o(4253).Z},{path:"queues",name:"metrics-queues",component:o(5871).Z}]},{path:"/metrics/:type/:slug",name:"metrics-preview",component:o(8121).Z},{path:"/jobs/:type",name:"jobs",component:o(208).Z},{path:"/jobs/pending/:jobId",name:"pending-jobs-preview",component:o(6967).Z},{path:"/jobs/completed/:jobId",name:"completed-jobs-preview",component:o(6967).Z},{path:"/jobs/silenced/:jobId",name:"silenced-jobs-preview",component:o(6967).Z},{path:"/failed",name:"failed-jobs",component:o(2877).Z},{path:"/failed/:jobId",name:"failed-jobs-preview",component:o(274).Z},{path:"/batches",name:"batches",component:o(9513).Z},{path:"/batches/:batchId",name:"batches-preview",component:o(681).Z}];function er(t,e){for(var o in e)t[o]=e[o];return t}var or=/[!'()*]/g,nr=function(t){return"%"+t.charCodeAt(0).toString(16)},pr=/%2C/g,br=function(t){return encodeURIComponent(t).replace(or,nr).replace(pr,",")};function Mr(t){try{return decodeURIComponent(t)}catch(t){0}return t}var zr=function(t){return null==t||"object"==typeof t?t:String(t)};function rr(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var o=t.replace(/\+/g," ").split("="),n=Mr(o.shift()),p=o.length>0?Mr(o.join("=")):null;void 0===e[n]?e[n]=p:Array.isArray(e[n])?e[n].push(p):e[n]=[e[n],p]})),e):e}function cr(t){var e=t?Object.keys(t).map((function(e){var o=t[e];if(void 0===o)return"";if(null===o)return br(e);if(Array.isArray(o)){var n=[];return o.forEach((function(t){void 0!==t&&(null===t?n.push(br(e)):n.push(br(e)+"="+br(t)))})),n.join("&")}return br(e)+"="+br(o)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var ir=/\/?$/;function ar(t,e,o,n){var p=n&&n.options.stringifyQuery,b=e.query||{};try{b=Or(b)}catch(t){}var M={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:b,params:e.params||{},fullPath:dr(e,p),matched:t?lr(t):[]};return o&&(M.redirectedFrom=dr(o,p)),Object.freeze(M)}function Or(t){if(Array.isArray(t))return t.map(Or);if(t&&"object"==typeof t){var e={};for(var o in t)e[o]=Or(t[o]);return e}return t}var sr=ar(null,{path:"/"});function lr(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function dr(t,e){var o=t.path,n=t.query;void 0===n&&(n={});var p=t.hash;return void 0===p&&(p=""),(o||"/")+(e||cr)(n)+p}function ur(t,e,o){return e===sr?t===e:!!e&&(t.path&&e.path?t.path.replace(ir,"")===e.path.replace(ir,"")&&(o||t.hash===e.hash&&Ar(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(o||t.hash===e.hash&&Ar(t.query,e.query)&&Ar(t.params,e.params))))}function Ar(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var o=Object.keys(t).sort(),n=Object.keys(e).sort();return o.length===n.length&&o.every((function(o,p){var b=t[o];if(n[p]!==o)return!1;var M=e[o];return null==b||null==M?b===M:"object"==typeof b&&"object"==typeof M?Ar(b,M):String(b)===String(M)}))}function fr(t){for(var e=0;e=0&&(e=t.slice(n),t=t.slice(0,n));var p=t.indexOf("?");return p>=0&&(o=t.slice(p+1),t=t.slice(0,p)),{path:t,query:o,hash:e}}(p.path||""),c=e&&e.path||"/",i=r.path?Wr(r.path,c,o||p.append):c,a=function(t,e,o){void 0===e&&(e={});var n,p=o||rr;try{n=p(t||"")}catch(t){n={}}for(var b in e){var M=e[b];n[b]=Array.isArray(M)?M.map(zr):zr(M)}return n}(r.query,p.query,n&&n.options.parseQuery),O=p.hash||r.hash;return O&&"#"!==O.charAt(0)&&(O="#"+O),{_normalized:!0,path:i,query:a,hash:O}}var Fr,Hr=function(){},Ur={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,o=this.$router,n=this.$route,p=o.resolve(this.to,n,this.append),b=p.location,M=p.route,z=p.href,r={},c=o.options.linkActiveClass,i=o.options.linkExactActiveClass,a=null==c?"router-link-active":c,O=null==i?"router-link-exact-active":i,s=null==this.activeClass?a:this.activeClass,l=null==this.exactActiveClass?O:this.exactActiveClass,d=M.redirectedFrom?ar(null,Ir(M.redirectedFrom),null,o):M;r[l]=ur(n,d,this.exactPath),r[s]=this.exact||this.exactPath?r[l]:function(t,e){return 0===t.path.replace(ir,"/").indexOf(e.path.replace(ir,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var o in e)if(!(o in t))return!1;return!0}(t.query,e.query)}(n,d);var u=r[l]?this.ariaCurrentValue:null,A=function(t){Vr(t)&&(e.replace?o.replace(b,Hr):o.push(b,Hr))},f={click:Vr};Array.isArray(this.event)?this.event.forEach((function(t){f[t]=A})):f[this.event]=A;var q={class:r},h=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:z,route:M,navigate:A,isActive:r[s],isExactActive:r[l]});if(h){if(1===h.length)return h[0];if(h.length>1||!h.length)return 0===h.length?t():t("span",{},h)}if("a"===this.tag)q.on=f,q.attrs={href:z,"aria-current":u};else{var W=$r(this.$slots.default);if(W){W.isStatic=!1;var v=W.data=er({},W.data);for(var g in v.on=v.on||{},v.on){var m=v.on[g];g in f&&(v.on[g]=Array.isArray(m)?m:[m])}for(var R in f)R in v.on?v.on[R].push(f[R]):v.on[R]=A;var y=W.data.attrs=er({},W.data.attrs);y.href=z,y["aria-current"]=u}else q.on=f}return t(this.tag,q,this.$slots.default)}};function Vr(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function $r(t){if(t)for(var e,o=0;o-1&&(z.params[O]=o.params[O]);return z.path=jr(i.path,z.params),r(i,z,M)}if(z.path){z.params={};for(var s=0;s-1}function Rc(t,e){return mc(t)&&t._isRouter&&(null==e||t.type===e)}function yc(t,e,o){var n=function(p){p>=t.length?o():t[p]?e(t[p],(function(){n(p+1)})):n(p+1)};n(0)}function Bc(t){return function(e,o,n){var p=!1,b=0,M=null;Lc(t,(function(t,e,o,z){if("function"==typeof t&&void 0===t.cid){p=!0,b++;var r,c=Nc((function(e){var p;((p=e).__esModule||_c&&"Module"===p[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Fr.extend(e),o.components[z]=e,--b<=0&&n()})),i=Nc((function(t){var e="Failed to resolve async component "+z+": "+t;M||(M=mc(t)?t:new Error(e),n(M))}));try{r=t(c,i)}catch(t){i(t)}if(r)if("function"==typeof r.then)r.then(c,i);else{var a=r.component;a&&"function"==typeof a.then&&a.then(c,i)}}})),p||n()}}function Lc(t,e){return Xc(t.map((function(t){return Object.keys(t.components).map((function(o){return e(t.components[o],t.instances[o],t,o)}))})))}function Xc(t){return Array.prototype.concat.apply([],t)}var _c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Nc(t){var e=!1;return function(){for(var o=[],n=arguments.length;n--;)o[n]=arguments[n];if(!e)return e=!0,t.apply(this,o)}}var xc=function(t,e){this.router=t,this.base=function(t){if(!t)if(Yr){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=sr,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function wc(t,e,o,n){var p=Lc(t,(function(t,n,p,b){var M=function(t,e){"function"!=typeof t&&(t=Fr.extend(t));return t.options[e]}(t,e);if(M)return Array.isArray(M)?M.map((function(t){return o(t,n,p,b)})):o(M,n,p,b)}));return Xc(n?p.reverse():p)}function Tc(t,e){if(e)return function(){return t.apply(e,arguments)}}xc.prototype.listen=function(t){this.cb=t},xc.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},xc.prototype.onError=function(t){this.errorCbs.push(t)},xc.prototype.transitionTo=function(t,e,o){var n,p=this;try{n=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var b=this.current;this.confirmTransition(n,(function(){p.updateRoute(n),e&&e(n),p.ensureURL(),p.router.afterHooks.forEach((function(t){t&&t(n,b)})),p.ready||(p.ready=!0,p.readyCbs.forEach((function(t){t(n)})))}),(function(t){o&&o(t),t&&!p.ready&&(Rc(t,qc.redirected)&&b===sr||(p.ready=!0,p.readyErrorCbs.forEach((function(e){e(t)}))))}))},xc.prototype.confirmTransition=function(t,e,o){var n=this,p=this.current;this.pending=t;var b,M,z=function(t){!Rc(t)&&mc(t)&&n.errorCbs.length&&n.errorCbs.forEach((function(e){e(t)})),o&&o(t)},r=t.matched.length-1,c=p.matched.length-1;if(ur(t,p)&&r===c&&t.matched[r]===p.matched[c])return this.ensureURL(),t.hash&&zc(this.router,p,t,!1),z(((M=vc(b=p,t,qc.duplicated,'Avoided redundant navigation to current location: "'+b.fullPath+'".')).name="NavigationDuplicated",M));var i=function(t,e){var o,n=Math.max(t.length,e.length);for(o=0;o0)){var e=this.router,o=e.options.scrollBehavior,n=uc&&o;n&&this.listeners.push(Mc());var p=function(){var o=t.current,p=Sc(t.base);t.current===sr&&p===t._startLocation||t.transitionTo(p,(function(t){n&&zc(e,t,o,!0)}))};window.addEventListener("popstate",p),this.listeners.push((function(){window.removeEventListener("popstate",p)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,o){var n=this,p=this.current;this.transitionTo(t,(function(t){Ac(vr(n.base+t.fullPath)),zc(n.router,t,p,!1),e&&e(t)}),o)},e.prototype.replace=function(t,e,o){var n=this,p=this.current;this.transitionTo(t,(function(t){fc(vr(n.base+t.fullPath)),zc(n.router,t,p,!1),e&&e(t)}),o)},e.prototype.ensureURL=function(t){if(Sc(this.base)!==this.current.fullPath){var e=vr(this.base+this.current.fullPath);t?Ac(e):fc(e)}},e.prototype.getCurrentLocation=function(){return Sc(this.base)},e}(xc);function Sc(t){var e=window.location.pathname,o=e.toLowerCase(),n=t.toLowerCase();return!t||o!==n&&0!==o.indexOf(vr(n+"/"))||(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var kc=function(t){function e(e,o,n){t.call(this,e,o),n&&function(t){var e=Sc(t);if(!/^\/#/.test(e))return window.location.replace(vr(t+"/#"+e)),!0}(this.base)||Ec()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,o=uc&&e;o&&this.listeners.push(Mc());var n=function(){var e=t.current;Ec()&&t.transitionTo(Dc(),(function(n){o&&zc(t.router,n,e,!0),uc||Ic(n.fullPath)}))},p=uc?"popstate":"hashchange";window.addEventListener(p,n),this.listeners.push((function(){window.removeEventListener(p,n)}))}},e.prototype.push=function(t,e,o){var n=this,p=this.current;this.transitionTo(t,(function(t){jc(t.fullPath),zc(n.router,t,p,!1),e&&e(t)}),o)},e.prototype.replace=function(t,e,o){var n=this,p=this.current;this.transitionTo(t,(function(t){Ic(t.fullPath),zc(n.router,t,p,!1),e&&e(t)}),o)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Dc()!==e&&(t?jc(e):Ic(e))},e.prototype.getCurrentLocation=function(){return Dc()},e}(xc);function Ec(){var t=Dc();return"/"===t.charAt(0)||(Ic("/"+t),!1)}function Dc(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Pc(t){var e=window.location.href,o=e.indexOf("#");return(o>=0?e.slice(0,o):e)+"#"+t}function jc(t){uc?Ac(Pc(t)):window.location.hash=t}function Ic(t){uc?fc(Pc(t)):window.location.replace(Pc(t))}var Fc=function(t){function e(e,o){t.call(this,e,o),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,o){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)}),o)},e.prototype.replace=function(t,e,o){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)}),o)},e.prototype.go=function(t){var e=this,o=this.index+t;if(!(o<0||o>=this.stack.length)){var n=this.stack[o];this.confirmTransition(n,(function(){var t=e.current;e.index=o,e.updateRoute(n),e.router.afterHooks.forEach((function(e){e&&e(n,t)}))}),(function(t){Rc(t,qc.duplicated)&&(e.index=o)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(xc),Hc=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Qr(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!uc&&!1!==t.fallback,this.fallback&&(e="hash"),Yr||(e="abstract"),this.mode=e,e){case"history":this.history=new Cc(this,t.base);break;case"hash":this.history=new kc(this,t.base,this.fallback);break;case"abstract":this.history=new Fc(this,t.base)}},Uc={currentRoute:{configurable:!0}};Hc.prototype.match=function(t,e,o){return this.matcher.match(t,e,o)},Uc.currentRoute.get=function(){return this.history&&this.history.current},Hc.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var o=e.apps.indexOf(t);o>-1&&e.apps.splice(o,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var o=this.history;if(o instanceof Cc||o instanceof kc){var n=function(t){o.setupListeners(),function(t){var n=o.current,p=e.options.scrollBehavior;uc&&p&&"fullPath"in t&&zc(e,t,n,!1)}(t)};o.transitionTo(o.getCurrentLocation(),n,n)}o.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Hc.prototype.beforeEach=function(t){return $c(this.beforeHooks,t)},Hc.prototype.beforeResolve=function(t){return $c(this.resolveHooks,t)},Hc.prototype.afterEach=function(t){return $c(this.afterHooks,t)},Hc.prototype.onReady=function(t,e){this.history.onReady(t,e)},Hc.prototype.onError=function(t){this.history.onError(t)},Hc.prototype.push=function(t,e,o){var n=this;if(!e&&!o&&"undefined"!=typeof Promise)return new Promise((function(e,o){n.history.push(t,e,o)}));this.history.push(t,e,o)},Hc.prototype.replace=function(t,e,o){var n=this;if(!e&&!o&&"undefined"!=typeof Promise)return new Promise((function(e,o){n.history.replace(t,e,o)}));this.history.replace(t,e,o)},Hc.prototype.go=function(t){this.history.go(t)},Hc.prototype.back=function(){this.go(-1)},Hc.prototype.forward=function(){this.go(1)},Hc.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Hc.prototype.resolve=function(t,e,o){var n=Ir(t,e=e||this.history.current,o,this),p=this.match(n,e),b=p.redirectedFrom||p.fullPath,M=function(t,e,o){var n="hash"===o?"#"+e:e;return t?vr(t+"/"+n):n}(this.history.base,b,this.mode);return{location:n,route:p,href:M,normalizedTo:n,resolved:p}},Hc.prototype.getRoutes=function(){return this.matcher.getRoutes()},Hc.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==sr&&this.history.transitionTo(this.history.getCurrentLocation())},Hc.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==sr&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Hc.prototype,Uc);var Vc=Hc;function $c(t,e){return t.push(e),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}Hc.install=function t(e){if(!t.installed||Fr!==e){t.installed=!0,Fr=e;var o=function(t){return void 0!==t},n=function(t,e){var n=t.$options._parentVnode;o(n)&&o(n=n.data)&&o(n=n.registerRouteInstance)&&n(t,e)};e.mixin({beforeCreate:function(){o(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",qr),e.component("RouterLink",Ur);var p=e.config.optionMergeStrategies;p.beforeRouteEnter=p.beforeRouteLeave=p.beforeRouteUpdate=p.created}},Hc.version="3.6.5",Hc.isNavigationFailure=Rc,Hc.NavigationFailureType=qc,Hc.START_LOCATION=sr,Yr&&window.Vue&&window.Vue.use(Hc);var Yc=o(4566),Gc=o.n(Yc);window.Popper=o(8981).default;try{window.$=window.jQuery=o(9755),o(3734)}catch(t){}var Jc=document.head.querySelector('meta[name="csrf-token"]');Zz().defaults.headers.common["X-Requested-With"]="XMLHttpRequest",Jc&&(Zz().defaults.headers.common["X-CSRF-TOKEN"]=Jc.content),en.use(Vc),en.prototype.$http=Zz().create(),window.Horizon.basePath="/"+window.Horizon.path;var Kc=window.Horizon.basePath+"/";""!==window.Horizon.path&&"/"!==window.Horizon.path||(Kc="/",window.Horizon.basePath="");var Qc=new Vc({routes:tr,mode:"history",base:Kc});en.component("vue-json-pretty",Gc()),en.component("alert",o(4682).Z),en.mixin(Kz),en.directive("tooltip",(function(t,e){$(t).tooltip({title:e.value,placement:e.arg,trigger:"hover"})})),new en({el:"#horizon",router:Qc,data:function(){return{alert:{type:null,autoClose:0,message:"",confirmationProceed:null,confirmationCancel:null},autoLoadsNewEntries:"1"===localStorage.autoLoadsNewEntries}}})},3734:function(t,e,o){!function(t,e,o){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var p=n(e),b=n(o);function M(t,e){for(var o=0;o=M)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};f.jQueryDetection(),A();var q="alert",h="4.6.2",W="bs.alert",v="."+W,g=".data-api",m=p.default.fn[q],R="alert",y="fade",B="show",L="close"+v,X="closed"+v,_="click"+v+g,N='[data-dismiss="alert"]',x=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){p.default.removeData(this._element,W),this._element=null},e._getRootElement=function(t){var e=f.getSelectorFromElement(t),o=!1;return e&&(o=document.querySelector(e)),o||(o=p.default(t).closest("."+R)[0]),o},e._triggerCloseEvent=function(t){var e=p.default.Event(L);return p.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(p.default(t).removeClass(B),p.default(t).hasClass(y)){var o=f.getTransitionDurationFromElement(t);p.default(t).one(f.TRANSITION_END,(function(o){return e._destroyElement(t,o)})).emulateTransitionEnd(o)}else this._destroyElement(t)},e._destroyElement=function(t){p.default(t).detach().trigger(X).remove()},t._jQueryInterface=function(e){return this.each((function(){var o=p.default(this),n=o.data(W);n||(n=new t(this),o.data(W,n)),"close"===e&&n[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},z(t,null,[{key:"VERSION",get:function(){return h}}]),t}();p.default(document).on(_,N,x._handleDismiss(new x)),p.default.fn[q]=x._jQueryInterface,p.default.fn[q].Constructor=x,p.default.fn[q].noConflict=function(){return p.default.fn[q]=m,x._jQueryInterface};var w="button",T="4.6.2",C="bs.button",S="."+C,k=".data-api",E=p.default.fn[w],D="active",P="btn",j="focus",I="click"+S+k,F="focus"+S+k+" blur"+S+k,H="load"+S+k,U='[data-toggle^="button"]',V='[data-toggle="buttons"]',$='[data-toggle="button"]',Y='[data-toggle="buttons"] .btn',G='input:not([type="hidden"])',J=".active",K=".btn",Q=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,o=p.default(this._element).closest(V)[0];if(o){var n=this._element.querySelector(G);if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains(D))t=!1;else{var b=o.querySelector(J);b&&p.default(b).removeClass(D)}t&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains(D)),this.shouldAvoidTriggerChange||p.default(n).trigger("change")),n.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(D)),t&&p.default(this._element).toggleClass(D))},e.dispose=function(){p.default.removeData(this._element,C),this._element=null},t._jQueryInterface=function(e,o){return this.each((function(){var n=p.default(this),b=n.data(C);b||(b=new t(this),n.data(C,b)),b.shouldAvoidTriggerChange=o,"toggle"===e&&b[e]()}))},z(t,null,[{key:"VERSION",get:function(){return T}}]),t}();p.default(document).on(I,U,(function(t){var e=t.target,o=e;if(p.default(e).hasClass(P)||(e=p.default(e).closest(K)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var n=e.querySelector(G);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==o.tagName&&"LABEL"===e.tagName||Q._jQueryInterface.call(p.default(e),"toggle","INPUT"===o.tagName)}})).on(F,U,(function(t){var e=p.default(t.target).closest(K)[0];p.default(e).toggleClass(j,/^focus(in)?$/.test(t.type))})),p.default(window).on(H,(function(){for(var t=[].slice.call(document.querySelectorAll(Y)),e=0,o=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(At)},e.nextWhenVisible=function(){var t=p.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(ft)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(Et)&&(f.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Ct);var o=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)p.default(this._element).one(vt,(function(){return e.to(t)}));else{if(o===t)return this.pause(),void this.cycle();var n=t>o?At:ft;this._slide(n,this._items[t])}},e.dispose=function(){p.default(this._element).off(ot),p.default.removeData(this._element,et),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},It,t),f.typeCheckConfig(Z,t,Ft),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=rt)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&p.default(this._element).on(gt,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&p.default(this._element).on(mt,(function(e){return t.pause(e)})).on(Rt,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&Ht[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},o=function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX},n=function(e){t._pointerEvent&&Ht[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),zt+t._config.interval))};p.default(this._element.querySelectorAll(kt)).on(Nt,(function(t){return t.preventDefault()})),this._pointerEvent?(p.default(this._element).on(Xt,(function(t){return e(t)})),p.default(this._element).on(_t,(function(t){return n(t)})),this._element.classList.add(ut)):(p.default(this._element).on(yt,(function(t){return e(t)})),p.default(this._element).on(Bt,(function(t){return o(t)})),p.default(this._element).on(Lt,(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case bt:t.preventDefault(),this.prev();break;case Mt:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(St)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var o=t===At,n=t===ft,p=this._getItemIndex(e),b=this._items.length-1;if((n&&0===p||o&&p===b)&&!this._config.wrap)return e;var M=(p+(t===ft?-1:1))%this._items.length;return-1===M?this._items[this._items.length-1]:this._items[M]},e._triggerSlideEvent=function(t,e){var o=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector(Ct)),b=p.default.Event(Wt,{relatedTarget:t,direction:e,from:n,to:o});return p.default(this._element).trigger(b),b},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Tt));p.default(e).removeClass(it);var o=this._indicatorsElement.children[this._getItemIndex(t)];o&&p.default(o).addClass(it)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Ct);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var o,n,b,M=this,z=this._element.querySelector(Ct),r=this._getItemIndex(z),c=e||z&&this._getItemByDirection(t,z),i=this._getItemIndex(c),a=Boolean(this._interval);if(t===At?(o=st,n=lt,b=qt):(o=Ot,n=dt,b=ht),c&&p.default(c).hasClass(it))this._isSliding=!1;else if(!this._triggerSlideEvent(c,b).isDefaultPrevented()&&z&&c){this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var O=p.default.Event(vt,{relatedTarget:c,direction:b,from:r,to:i});if(p.default(this._element).hasClass(at)){p.default(c).addClass(n),f.reflow(c),p.default(z).addClass(o),p.default(c).addClass(o);var s=f.getTransitionDurationFromElement(z);p.default(z).one(f.TRANSITION_END,(function(){p.default(c).removeClass(o+" "+n).addClass(it),p.default(z).removeClass(it+" "+n+" "+o),M._isSliding=!1,setTimeout((function(){return p.default(M._element).trigger(O)}),0)})).emulateTransitionEnd(s)}else p.default(z).removeClass(it),p.default(c).addClass(it),this._isSliding=!1,p.default(this._element).trigger(O);a&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var o=p.default(this).data(et),n=r({},It,p.default(this).data());"object"==typeof e&&(n=r({},n,e));var b="string"==typeof e?e:n.slide;if(o||(o=new t(this,n),p.default(this).data(et,o)),"number"==typeof e)o.to(e);else if("string"==typeof b){if(void 0===o[b])throw new TypeError('No method named "'+b+'"');o[b]()}else n.interval&&n.ride&&(o.pause(),o.cycle())}))},t._dataApiClickHandler=function(e){var o=f.getSelectorFromElement(this);if(o){var n=p.default(o)[0];if(n&&p.default(n).hasClass(ct)){var b=r({},p.default(n).data(),p.default(this).data()),M=this.getAttribute("data-slide-to");M&&(b.interval=!1),t._jQueryInterface.call(p.default(n),b),M&&p.default(n).data(et).to(M),e.preventDefault()}}},z(t,null,[{key:"VERSION",get:function(){return tt}},{key:"Default",get:function(){return It}}]),t}();p.default(document).on(wt,Pt,Ut._dataApiClickHandler),p.default(window).on(xt,(function(){for(var t=[].slice.call(document.querySelectorAll(jt)),e=0,o=t.length;e0&&(this._selector=M,this._triggerArray.push(b))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){p.default(this._element).hasClass(Qt)?this.hide():this.show()},e.show=function(){var e,o,n=this;if(!(this._isTransitioning||p.default(this._element).hasClass(Qt)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ce)).filter((function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(Zt)}))).length&&(e=null),e&&(o=p.default(e).not(this._selector).data(Yt))&&o._isTransitioning))){var b=p.default.Event(pe);if(p.default(this._element).trigger(b),!b.isDefaultPrevented()){e&&(t._jQueryInterface.call(p.default(e).not(this._selector),"hide"),o||p.default(e).data(Yt,null));var M=this._getDimension();p.default(this._element).removeClass(Zt).addClass(te),this._element.style[M]=0,this._triggerArray.length&&p.default(this._triggerArray).removeClass(ee).attr("aria-expanded",!0),this.setTransitioning(!0);var z=function(){p.default(n._element).removeClass(te).addClass(Zt+" "+Qt),n._element.style[M]="",n.setTransitioning(!1),p.default(n._element).trigger(be)},r="scroll"+(M[0].toUpperCase()+M.slice(1)),c=f.getTransitionDurationFromElement(this._element);p.default(this._element).one(f.TRANSITION_END,z).emulateTransitionEnd(c),this._element.style[M]=this._element[r]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&p.default(this._element).hasClass(Qt)){var e=p.default.Event(Me);if(p.default(this._element).trigger(e),!e.isDefaultPrevented()){var o=this._getDimension();this._element.style[o]=this._element.getBoundingClientRect()[o]+"px",f.reflow(this._element),p.default(this._element).addClass(te).removeClass(Zt+" "+Qt);var n=this._triggerArray.length;if(n>0)for(var b=0;b0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var o=p.default(this).data(ue);if(o||(o=new t(this,"object"==typeof e?e:null),p.default(this).data(ue,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},t._clearMenus=function(e){if(!e||e.which!==Re&&("keyup"!==e.type||e.which===ve))for(var o=[].slice.call(document.querySelectorAll(Ie)),n=0,b=o.length;n0&&M--,e.which===me&&Mdocument.documentElement.clientHeight;o||(this._element.style.overflowY="hidden"),this._element.classList.add(uo);var n=f.getTransitionDurationFromElement(this._dialog);p.default(this._element).off(f.TRANSITION_END),p.default(this._element).one(f.TRANSITION_END,(function(){t._element.classList.remove(uo),o||p.default(t._element).one(f.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,n)})).emulateTransitionEnd(n),this._element.focus()}},e._showElement=function(t){var e=this,o=p.default(this._element).hasClass(so),n=this._dialog?this._dialog.querySelector(_o):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),p.default(this._dialog).hasClass(co)&&n?n.scrollTop=0:this._element.scrollTop=0,o&&f.reflow(this._element),p.default(this._element).addClass(lo),this._config.focus&&this._enforceFocus();var b=p.default.Event(Wo,{relatedTarget:t}),M=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,p.default(e._element).trigger(b)};if(o){var z=f.getTransitionDurationFromElement(this._dialog);p.default(this._dialog).one(f.TRANSITION_END,M).emulateTransitionEnd(z)}else M()},e._enforceFocus=function(){var t=this;p.default(document).off(vo).on(vo,(function(e){document!==e.target&&t._element!==e.target&&0===p.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?p.default(this._element).on(Ro,(function(e){t._config.keyboard&&e.which===ro?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==ro||t._triggerBackdropTransition()})):this._isShown||p.default(this._element).off(Ro)},e._setResizeEvent=function(){var t=this;this._isShown?p.default(window).on(go,(function(e){return t.handleUpdate(e)})):p.default(window).off(go)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){p.default(document.body).removeClass(Oo),t._resetAdjustments(),t._resetScrollbar(),p.default(t._element).trigger(qo)}))},e._removeBackdrop=function(){this._backdrop&&(p.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,o=p.default(this._element).hasClass(so)?so:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ao,o&&this._backdrop.classList.add(o),p.default(this._backdrop).appendTo(document.body),p.default(this._element).on(mo,(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),o&&f.reflow(this._backdrop),p.default(this._backdrop).addClass(lo),!t)return;if(!o)return void t();var n=f.getTransitionDurationFromElement(this._backdrop);p.default(this._backdrop).one(f.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){p.default(this._backdrop).removeClass(lo);var b=function(){e._removeBackdrop(),t&&t()};if(p.default(this._element).hasClass(so)){var M=f.getTransitionDurationFromElement(this._backdrop);p.default(this._backdrop).one(f.TRANSITION_END,b).emulateTransitionEnd(M)}else b()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Do,popperConfig:null},an={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},On={HIDE:"hide"+$o,HIDDEN:"hidden"+$o,SHOW:"show"+$o,SHOWN:"shown"+$o,INSERTED:"inserted"+$o,CLICK:"click"+$o,FOCUSIN:"focusin"+$o,FOCUSOUT:"focusout"+$o,MOUSEENTER:"mouseenter"+$o,MOUSELEAVE:"mouseleave"+$o},sn=function(){function t(t,e){if(void 0===b.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,o=p.default(t.currentTarget).data(e);o||(o=new this.constructor(t.currentTarget,this._getDelegateConfig()),p.default(t.currentTarget).data(e,o)),o._activeTrigger.click=!o._activeTrigger.click,o._isWithActiveTrigger()?o._enter(null,o):o._leave(null,o)}else{if(p.default(this.getTipElement()).hasClass(Zo))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.default.removeData(this.element,this.constructor.DATA_KEY),p.default(this.element).off(this.constructor.EVENT_KEY),p.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&p.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p.default(this.element).trigger(e);var o=f.findShadowRoot(this.element),n=p.default.contains(null!==o?o:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var M=this.getTipElement(),z=f.getUID(this.constructor.NAME);M.setAttribute("id",z),this.element.setAttribute("aria-describedby",z),this.setContent(),this.config.animation&&p.default(M).addClass(Qo);var r="function"==typeof this.config.placement?this.config.placement.call(this,M,this.element):this.config.placement,c=this._getAttachment(r);this.addAttachmentClass(c);var i=this._getContainer();p.default(M).data(this.constructor.DATA_KEY,this),p.default.contains(this.element.ownerDocument.documentElement,this.tip)||p.default(M).appendTo(i),p.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new b.default(this.element,M,this._getPopperConfig(c)),p.default(M).addClass(Zo),p.default(M).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&p.default(document.body).children().on("mouseover",null,p.default.noop);var a=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p.default(t.element).trigger(t.constructor.Event.SHOWN),e===en&&t._leave(null,t)};if(p.default(this.tip).hasClass(Qo)){var O=f.getTransitionDurationFromElement(this.tip);p.default(this.tip).one(f.TRANSITION_END,a).emulateTransitionEnd(O)}else a()}},e.hide=function(t){var e=this,o=this.getTipElement(),n=p.default.Event(this.constructor.Event.HIDE),b=function(){e._hoverState!==tn&&o.parentNode&&o.parentNode.removeChild(o),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),p.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(p.default(this.element).trigger(n),!n.isDefaultPrevented()){if(p.default(o).removeClass(Zo),"ontouchstart"in document.documentElement&&p.default(document.body).children().off("mouseover",null,p.default.noop),this._activeTrigger[Mn]=!1,this._activeTrigger[bn]=!1,this._activeTrigger[pn]=!1,p.default(this.tip).hasClass(Qo)){var M=f.getTransitionDurationFromElement(o);p.default(o).one(f.TRANSITION_END,b).emulateTransitionEnd(M)}else b();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){p.default(this.getTipElement()).addClass(Go+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||p.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(p.default(t.querySelectorAll(on)),this.getTitle()),p.default(t).removeClass(Qo+" "+Zo)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Fo(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?p.default(e).parent().is(t)||t.empty().append(e):t.text(p.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:nn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:f.isElement(this.config.container)?p.default(this.config.container):p.default(document).find(this.config.container)},e._getAttachment=function(t){return rn[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)p.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(e!==zn){var o=e===pn?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n=e===pn?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;p.default(t.element).on(o,t.config.selector,(function(e){return t._enter(e)})).on(n,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},p.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var o=this.constructor.DATA_KEY;(e=e||p.default(t.currentTarget).data(o))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),p.default(t.currentTarget).data(o,e)),t&&(e._activeTrigger["focusin"===t.type?bn:pn]=!0),p.default(e.getTipElement()).hasClass(Zo)||e._hoverState===tn?e._hoverState=tn:(clearTimeout(e._timeout),e._hoverState=tn,e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){e._hoverState===tn&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var o=this.constructor.DATA_KEY;(e=e||p.default(t.currentTarget).data(o))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),p.default(t.currentTarget).data(o,e)),t&&(e._activeTrigger["focusout"===t.type?bn:pn]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=en,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){e._hoverState===en&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=p.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==Ko.indexOf(t)&&delete e[t]})),"number"==typeof(t=r({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),f.typeCheckConfig(Ho,t,this.constructor.DefaultType),t.sanitize&&(t.template=Fo(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=p.default(this.getTipElement()),e=t.attr("class").match(Jo);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(p.default(t).removeClass(Qo),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var o=p.default(this),n=o.data(Vo),b="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,b),o.data(Vo,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},z(t,null,[{key:"VERSION",get:function(){return Uo}},{key:"Default",get:function(){return cn}},{key:"NAME",get:function(){return Ho}},{key:"DATA_KEY",get:function(){return Vo}},{key:"Event",get:function(){return On}},{key:"EVENT_KEY",get:function(){return $o}},{key:"DefaultType",get:function(){return an}}]),t}();p.default.fn[Ho]=sn._jQueryInterface,p.default.fn[Ho].Constructor=sn,p.default.fn[Ho].noConflict=function(){return p.default.fn[Ho]=Yo,sn._jQueryInterface};var ln="popover",dn="4.6.2",un="bs.popover",An="."+un,fn=p.default.fn[ln],qn="bs-popover",hn=new RegExp("(^|\\s)"+qn+"\\S+","g"),Wn="fade",vn="show",gn=".popover-header",mn=".popover-body",Rn=r({},sn.Default,{placement:"right",trigger:"click",content:"",template:''}),yn=r({},sn.DefaultType,{content:"(string|element|function)"}),Bn={HIDE:"hide"+An,HIDDEN:"hidden"+An,SHOW:"show"+An,SHOWN:"shown"+An,INSERTED:"inserted"+An,CLICK:"click"+An,FOCUSIN:"focusin"+An,FOCUSOUT:"focusout"+An,MOUSEENTER:"mouseenter"+An,MOUSELEAVE:"mouseleave"+An},Ln=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var o=e.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){p.default(this.getTipElement()).addClass(qn+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||p.default(this.config.template)[0],this.tip},o.setContent=function(){var t=p.default(this.getTipElement());this.setElementContent(t.find(gn),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(mn),e),t.removeClass(Wn+" "+vn)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=p.default(this.getTipElement()),e=t.attr("class").match(hn);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each((function(){var o=p.default(this).data(un),n="object"==typeof t?t:null;if((o||!/dispose|hide/.test(t))&&(o||(o=new e(this,n),p.default(this).data(un,o)),"string"==typeof t)){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t]()}}))},z(e,null,[{key:"VERSION",get:function(){return dn}},{key:"Default",get:function(){return Rn}},{key:"NAME",get:function(){return ln}},{key:"DATA_KEY",get:function(){return un}},{key:"Event",get:function(){return Bn}},{key:"EVENT_KEY",get:function(){return An}},{key:"DefaultType",get:function(){return yn}}]),e}(sn);p.default.fn[ln]=Ln._jQueryInterface,p.default.fn[ln].Constructor=Ln,p.default.fn[ln].noConflict=function(){return p.default.fn[ln]=fn,Ln._jQueryInterface};var Xn="scrollspy",_n="4.6.2",Nn="bs.scrollspy",xn="."+Nn,wn=".data-api",Tn=p.default.fn[Xn],Cn="dropdown-item",Sn="active",kn="activate"+xn,En="scroll"+xn,Dn="load"+xn+wn,Pn="offset",jn="position",In='[data-spy="scroll"]',Fn=".nav, .list-group",Hn=".nav-link",Un=".nav-item",Vn=".list-group-item",$n=".dropdown",Yn=".dropdown-item",Gn=".dropdown-toggle",Jn={offset:10,method:"auto",target:""},Kn={offset:"number",method:"string",target:"(string|element)"},Qn=function(){function t(t,e){var o=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Hn+","+this._config.target+" "+Vn+","+this._config.target+" "+Yn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,p.default(this._scrollElement).on(En,(function(t){return o._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Pn:jn,o="auto"===this._config.method?e:this._config.method,n=o===jn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,b=f.getSelectorFromElement(t);if(b&&(e=document.querySelector(b)),e){var M=e.getBoundingClientRect();if(M.width||M.height)return[p.default(e)[o]().top+n,b]}return null})).filter(Boolean).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){p.default.removeData(this._element,Nn),p.default(this._scrollElement).off(xn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},Jn,"object"==typeof t&&t?t:{})).target&&f.isElement(t.target)){var e=p.default(t.target).attr("id");e||(e=f.getUID(Xn),p.default(t.target).attr("id",e)),t.target="#"+e}return f.typeCheckConfig(Xn,t,Kn),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),o=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=o){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var p=this._offsets.length;p--;)this._activeTarget!==this._targets[p]&&t>=this._offsets[p]&&(void 0===this._offsets[p+1]||t1&&(p-=1)),[360*p,100*b,100*c]},p.rgb.hwb=function(t){var e=t[0],o=t[1],n=t[2];return[p.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(o,n))*100,100*(n=1-1/255*Math.max(e,Math.max(o,n)))]},p.rgb.cmyk=function(t){var e,o=t[0]/255,n=t[1]/255,p=t[2]/255;return[100*((1-o-(e=Math.min(1-o,1-n,1-p)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-p-e)/(1-e)||0),100*e]},p.rgb.keyword=function(t){var o=e[t];if(o)return o;var p,b=1/0;for(var M in n)if(n.hasOwnProperty(M)){var z=r(t,n[M]);z.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*o+.0722*n),100*(.0193*e+.1192*o+.9505*n)]},p.rgb.lab=function(t){var e=p.rgb.xyz(t),o=e[0],n=e[1],b=e[2];return n/=100,b/=108.883,o=(o/=95.047)>.008856?Math.pow(o,1/3):7.787*o+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(o-n),200*(n-(b=b>.008856?Math.pow(b,1/3):7.787*b+16/116))]},p.hsl.rgb=function(t){var e,o,n,p,b,M=t[0]/360,z=t[1]/100,r=t[2]/100;if(0===z)return[b=255*r,b,b];e=2*r-(o=r<.5?r*(1+z):r+z-r*z),p=[0,0,0];for(var c=0;c<3;c++)(n=M+1/3*-(c-1))<0&&n++,n>1&&n--,b=6*n<1?e+6*(o-e)*n:2*n<1?o:3*n<2?e+(o-e)*(2/3-n)*6:e,p[c]=255*b;return p},p.hsl.hsv=function(t){var e=t[0],o=t[1]/100,n=t[2]/100,p=o,b=Math.max(n,.01);return o*=(n*=2)<=1?n:2-n,p*=b<=1?b:2-b,[e,100*(0===n?2*p/(b+p):2*o/(n+o)),(n+o)/2*100]},p.hsv.rgb=function(t){var e=t[0]/60,o=t[1]/100,n=t[2]/100,p=Math.floor(e)%6,b=e-Math.floor(e),M=255*n*(1-o),z=255*n*(1-o*b),r=255*n*(1-o*(1-b));switch(n*=255,p){case 0:return[n,r,M];case 1:return[z,n,M];case 2:return[M,n,r];case 3:return[M,z,n];case 4:return[r,M,n];case 5:return[n,M,z]}},p.hsv.hsl=function(t){var e,o,n,p=t[0],b=t[1]/100,M=t[2]/100,z=Math.max(M,.01);return n=(2-b)*M,o=b*z,[p,100*(o=(o/=(e=(2-b)*z)<=1?e:2-e)||0),100*(n/=2)]},p.hwb.rgb=function(t){var e,o,n,p,b,M,z,r=t[0]/360,c=t[1]/100,i=t[2]/100,a=c+i;switch(a>1&&(c/=a,i/=a),n=6*r-(e=Math.floor(6*r)),0!=(1&e)&&(n=1-n),p=c+n*((o=1-i)-c),e){default:case 6:case 0:b=o,M=p,z=c;break;case 1:b=p,M=o,z=c;break;case 2:b=c,M=o,z=p;break;case 3:b=c,M=p,z=o;break;case 4:b=p,M=c,z=o;break;case 5:b=o,M=c,z=p}return[255*b,255*M,255*z]},p.cmyk.rgb=function(t){var e=t[0]/100,o=t[1]/100,n=t[2]/100,p=t[3]/100;return[255*(1-Math.min(1,e*(1-p)+p)),255*(1-Math.min(1,o*(1-p)+p)),255*(1-Math.min(1,n*(1-p)+p))]},p.xyz.rgb=function(t){var e,o,n,p=t[0]/100,b=t[1]/100,M=t[2]/100;return o=-.9689*p+1.8758*b+.0415*M,n=.0557*p+-.204*b+1.057*M,e=(e=3.2406*p+-1.5372*b+-.4986*M)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(o=Math.min(Math.max(0,o),1)),255*(n=Math.min(Math.max(0,n),1))]},p.xyz.lab=function(t){var e=t[0],o=t[1],n=t[2];return o/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(e-o),200*(o-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},p.lab.xyz=function(t){var e,o,n,p=t[0];e=t[1]/500+(o=(p+16)/116),n=o-t[2]/200;var b=Math.pow(o,3),M=Math.pow(e,3),z=Math.pow(n,3);return o=b>.008856?b:(o-16/116)/7.787,e=M>.008856?M:(e-16/116)/7.787,n=z>.008856?z:(n-16/116)/7.787,[e*=95.047,o*=100,n*=108.883]},p.lab.lch=function(t){var e,o=t[0],n=t[1],p=t[2];return(e=360*Math.atan2(p,n)/2/Math.PI)<0&&(e+=360),[o,Math.sqrt(n*n+p*p),e]},p.lch.lab=function(t){var e,o=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[o,n*Math.cos(e),n*Math.sin(e)]},p.rgb.ansi16=function(t){var e=t[0],o=t[1],n=t[2],b=1 in arguments?arguments[1]:p.rgb.hsv(t)[2];if(0===(b=Math.round(b/50)))return 30;var M=30+(Math.round(n/255)<<2|Math.round(o/255)<<1|Math.round(e/255));return 2===b&&(M+=60),M},p.hsv.ansi16=function(t){return p.rgb.ansi16(p.hsv.rgb(t),t[2])},p.rgb.ansi256=function(t){var e=t[0],o=t[1],n=t[2];return e===o&&o===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(o/255*5)+Math.round(n/255*5)},p.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var o=.5*(1+~~(t>50));return[(1&e)*o*255,(e>>1&1)*o*255,(e>>2&1)*o*255]},p.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var o;return t-=16,[Math.floor(t/36)/5*255,Math.floor((o=t%36)/6)/5*255,o%6/5*255]},p.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},p.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var o=e[0];3===e[0].length&&(o=o.split("").map((function(t){return t+t})).join(""));var n=parseInt(o,16);return[n>>16&255,n>>8&255,255&n]},p.rgb.hcg=function(t){var e,o=t[0]/255,n=t[1]/255,p=t[2]/255,b=Math.max(Math.max(o,n),p),M=Math.min(Math.min(o,n),p),z=b-M;return e=z<=0?0:b===o?(n-p)/z%6:b===n?2+(p-o)/z:4+(o-n)/z+4,e/=6,[360*(e%=1),100*z,100*(z<1?M/(1-z):0)]},p.hsl.hcg=function(t){var e=t[1]/100,o=t[2]/100,n=1,p=0;return(n=o<.5?2*e*o:2*e*(1-o))<1&&(p=(o-.5*n)/(1-n)),[t[0],100*n,100*p]},p.hsv.hcg=function(t){var e=t[1]/100,o=t[2]/100,n=e*o,p=0;return n<1&&(p=(o-n)/(1-n)),[t[0],100*n,100*p]},p.hcg.rgb=function(t){var e=t[0]/360,o=t[1]/100,n=t[2]/100;if(0===o)return[255*n,255*n,255*n];var p=[0,0,0],b=e%1*6,M=b%1,z=1-M,r=0;switch(Math.floor(b)){case 0:p[0]=1,p[1]=M,p[2]=0;break;case 1:p[0]=z,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=M;break;case 3:p[0]=0,p[1]=z,p[2]=1;break;case 4:p[0]=M,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=z}return r=(1-o)*n,[255*(o*p[0]+r),255*(o*p[1]+r),255*(o*p[2]+r)]},p.hcg.hsv=function(t){var e=t[1]/100,o=e+t[2]/100*(1-e),n=0;return o>0&&(n=e/o),[t[0],100*n,100*o]},p.hcg.hsl=function(t){var e=t[1]/100,o=t[2]/100*(1-e)+.5*e,n=0;return o>0&&o<.5?n=e/(2*o):o>=.5&&o<1&&(n=e/(2*(1-o))),[t[0],100*n,100*o]},p.hcg.hwb=function(t){var e=t[1]/100,o=e+t[2]/100*(1-e);return[t[0],100*(o-e),100*(1-o)]},p.hwb.hcg=function(t){var e=t[1]/100,o=1-t[2]/100,n=o-e,p=0;return n<1&&(p=(o-n)/(1-n)),[t[0],100*n,100*p]},p.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},p.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},p.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},p.gray.hsl=p.gray.hsv=function(t){return[0,0,t[0]]},p.gray.hwb=function(t){return[0,100,t[0]]},p.gray.cmyk=function(t){return[0,0,0,t[0]]},p.gray.lab=function(t){return[t[0],0,0]},p.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),o=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(o.length)+o},p.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function b(){for(var t={},e=Object.keys(p),o=e.length,n=0;n1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function O(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var o=t(e);if("object"==typeof o)for(var n=o.length,p=0;p=0&&e<1?x(Math.round(255*e)):"")}function g(t,e){return e<1||t[3]&&t[3]<1?m(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function m(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function R(t,e){return e<1||t[3]&&t[3]<1?y(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"}function y(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 B(t,e){return e<1||t[3]&&t[3]<1?L(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function L(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function X(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:"")+")"}function _(t){return w[t.slice(0,3)]}function N(t,e,o){return Math.min(Math.max(e,t),o)}function x(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var w={};for(var T in l)w[l[T]]=T;var C=function(t){return t instanceof C?t:this instanceof C?(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=d.getRgba(t))?this.setValues("rgb",e):(e=d.getHsla(t))?this.setValues("hsl",e):(e=d.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 C(t);var e};C.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 d.hexString(this.values.rgb)},rgbString:function(){return d.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return d.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return d.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return d.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return d.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return d.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return d.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=[],o=0;oo?(e+.05)/(o+.05):(o+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,o=(e[0]+t)%360;return e[0]=o<0?360+o:o,this.setValues("hsl",e),this},mix:function(t,e){var o=this,n=t,p=void 0===e?.5:e,b=2*p-1,M=o.alpha()-n.alpha(),z=((b*M==-1?b:(b+M)/(1+b*M))+1)/2,r=1-z;return this.rgb(z*o.red()+r*n.red(),z*o.green()+r*n.green(),z*o.blue()+r*n.blue()).alpha(o.alpha()*p+n.alpha()*(1-p))},toJSON:function(){return this.rgb()},clone:function(){var t,e,o=new C,n=this.values,p=o.values;for(var b in n)n.hasOwnProperty(b)&&(t=n[b],"[object Array]"===(e={}.toString.call(t))?p[b]=t.slice(0):"[object Number]"===e&&(p[b]=t));return o}},C.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},C.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},C.prototype.getValues=function(t){for(var e=this.values,o={},n=0;n=0;p--)e.call(o,t[p],p);else for(p=0;p=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,o=0,n=1;return 0===t?0:1===t?1:(o||(o=.3),n<1?(n=1,e=o/4):e=o/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/o))},easeOutElastic:function(t){var e=1.70158,o=0,n=1;return 0===t?0:1===t?1:(o||(o=.3),n<1?(n=1,e=o/4):e=o/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/o)+1)},easeInOutElastic:function(t){var e=1.70158,o=0,n=1;return 0===t?0:2==(t/=.5)?1:(o||(o=.45),n<1?(n=1,e=o/4):e=o/(2*Math.PI)*Math.asin(1/n),t<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/o)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/o)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+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-j.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*j.easeInBounce(2*t):.5*j.easeOutBounce(2*t-1)+.5}},I={effects:j};P.easingEffects=j;var F=Math.PI,H=F/180,U=2*F,V=F/2,$=F/4,Y=2*F/3,G={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,o,n,p,b){if(b){var M=Math.min(b,p/2,n/2),z=e+M,r=o+M,c=e+n-M,i=o+p-M;t.moveTo(e,r),ze.left-o&&t.xe.top-o&&t.y0&&t.requestAnimationFrame()},advance:function(){for(var t,e,o,n,p=this.animations,b=0;b=o?(zt.callback(t.onAnimationComplete,[t],e),e.animating=!1,p.splice(b,1)):++b}},qt=zt.options.resolve,ht=["push","pop","shift","splice","unshift"];function Wt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ht.forEach((function(e){var o="onData"+e.charAt(0).toUpperCase()+e.slice(1),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),p=n.apply(this,e);return zt.each(t._chartjs.listeners,(function(t){"function"==typeof t[o]&&t[o].apply(t,e)})),p}})})))}function vt(t,e){var o=t._chartjs;if(o){var n=o.listeners,p=n.indexOf(e);-1!==p&&n.splice(p,1),n.length>0||(ht.forEach((function(e){delete t[e]})),delete t._chartjs)}}var gt=function(t,e){this.initialize(t,e)};zt.extend(gt.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var o=this;o.chart=t,o.index=e,o.linkScales(),o.addElements(),o._type=o.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),o=t.chart,n=o.scales,p=t.getDataset(),b=o.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!p.xAxisID||(e.xAxisID=p.xAxisID||b.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!p.yAxisID||(e.yAxisID=p.yAxisID||b.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&&vt(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,o=e.dataElementType;return o&&new o({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,o=this,n=o.getMeta(),p=o.getDataset().data||[],b=n.data;for(t=0,e=p.length;tn&&t.insertElements(n,p-n)},insertElements:function(t,e){for(var o=0;op?(b=p/e.innerRadius,t.arc(M,z,e.innerRadius-p,n+b,o-b,!0)):t.arc(M,z,p,n+Math.PI/2,o-Math.PI/2),t.closePath(),t.clip()}function Bt(t,e,o,n){var p,b=o.endAngle;for(n&&(o.endAngle=o.startAngle+Rt,yt(t,o),o.endAngle=b,o.endAngle===o.startAngle&&o.fullCircles&&(o.endAngle+=Rt,o.fullCircles--)),t.beginPath(),t.arc(o.x,o.y,o.innerRadius,o.startAngle+Rt,o.startAngle,!0),p=0;pz;)p-=Rt;for(;p=M&&p<=z,c=b>=o.innerRadius&&b<=o.outerRadius;return r&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,o=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*o,y:t.y+Math.sin(e)*o}},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,o=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*o,y:t.y+Math.sin(e)*o}},draw:function(){var t,e=this._chart.ctx,o=this._view,n="inner"===o.borderAlign?.33:0,p={x:o.x,y:o.y,innerRadius:o.innerRadius,outerRadius:Math.max(o.outerRadius-n,0),pixelMargin:n,startAngle:o.startAngle,endAngle:o.endAngle,fullCircles:Math.floor(o.circumference/Rt)};if(e.save(),e.fillStyle=o.backgroundColor,e.strokeStyle=o.borderColor,p.fullCircles){for(p.endAngle=p.startAngle+Rt,e.beginPath(),e.arc(p.x,p.y,p.outerRadius,p.startAngle,p.endAngle),e.arc(p.x,p.y,p.innerRadius,p.endAngle,p.startAngle,!0),e.closePath(),t=0;tt.x&&(e=jt(e,"left","right")):t.baseo?o:n,r:r.right||p<0?0:p>e?e:p,b:r.bottom||b<0?0:b>o?o:b,l:r.left||M<0?0:M>e?e:M}}function Ht(t){var e=Pt(t),o=e.right-e.left,n=e.bottom-e.top,p=Ft(t,o/2,n/2);return{outer:{x:e.left,y:e.top,w:o,h:n},inner:{x:e.left+p.l,y:e.top+p.t,w:o-p.l-p.r,h:n-p.t-p.b}}}function Ut(t,e,o){var n=null===e,p=null===o,b=!(!t||n&&p)&&Pt(t);return b&&(n||e>=b.left&&e<=b.right)&&(p||o>=b.top&&o<=b.bottom)}Q._set("global",{elements:{rectangle:{backgroundColor:Et,borderColor:Et,borderSkipped:"bottom",borderWidth:0}}});var Vt=dt.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,o=Ht(e),n=o.outer,p=o.inner;t.fillStyle=e.backgroundColor,t.fillRect(n.x,n.y,n.w,n.h),n.w===p.w&&n.h===p.h||(t.save(),t.beginPath(),t.rect(n.x,n.y,n.w,n.h),t.clip(),t.fillStyle=e.borderColor,t.rect(p.x,p.y,p.w,p.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return Ut(this._view,t,e)},inLabelRange:function(t,e){var o=this._view;return Dt(o)?Ut(o,t,null):Ut(o,null,e)},inXRange:function(t){return Ut(this._view,t,null)},inYRange:function(t){return Ut(this._view,null,t)},getCenterPoint:function(){var t,e,o=this._view;return Dt(o)?(t=o.x,e=(o.y+o.base)/2):(t=(o.x+o.base)/2,e=o.y),{x:t,y:e}},getArea:function(){var t=this._view;return Dt(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}}}),$t={},Yt=Xt,Gt=xt,Jt=kt,Kt=Vt;$t.Arc=Yt,$t.Line=Gt,$t.Point=Jt,$t.Rectangle=Kt;var Qt=zt._deprecated,Zt=zt.valueOrDefault;function te(t,e){var o,n,p,b,M=t._length;for(p=1,b=e.length;p0?Math.min(M,Math.abs(n-o)):M,o=n;return M}function ee(t,e,o){var n,p,b=o.barThickness,M=e.stackCount,z=e.pixels[t],r=zt.isNullOrUndef(b)?te(e.scale,e.pixels):-1;return zt.isNullOrUndef(b)?(n=r*o.categoryPercentage,p=o.barPercentage):(n=b*M,p=1),{chunk:n/M,ratio:p,start:z-n/2}}function oe(t,e,o){var n,p=e.pixels,b=p[t],M=t>0?p[t-1]:null,z=t=0&&u.min>=0?u.min:u.max,W=void 0===u.start?u.end:u.max>=0&&u.min>=0?u.max-u.min:u.min-u.max,v=d.length;if(f||void 0===f&&void 0!==q)for(n=0;n=0&&c.max>=0?c.max:c.min,(u.min<0&&b<0||u.max>=0&&b>0)&&(h+=b));return M=O.getPixelForValue(h),r=(z=O.getPixelForValue(h+W))-M,void 0!==A&&Math.abs(r)=0&&!s||W<0&&s?M-A:M+A),{size:r,base:M,head:z,center:z+r/2}},calculateBarIndexPixels:function(t,e,o,n){var p=this,b="flex"===n.barThickness?oe(e,o,n):ee(e,o,n),M=p.getStackIndex(t,p.getMeta().stack),z=b.start+b.chunk*M+b.chunk/2,r=Math.min(Zt(n.maxBarThickness,1/0),b.chunk*b.ratio);return{base:z-r/2,head:z+r/2,center:z,size:r}},draw:function(){var t=this,e=t.chart,o=t._getValueScale(),n=t.getMeta().data,p=t.getDataset(),b=n.length,M=0;for(zt.canvas.clipArea(e.ctx,e.chartArea);M=re?-ce:f<-re?ce:0)+u,h=Math.cos(f),W=Math.sin(f),v=Math.cos(q),g=Math.sin(q),m=f<=0&&q>=0||q>=ce,R=f<=ie&&q>=ie||q>=ce+ie,y=f<=-ie&&q>=-ie||q>=re+ie,B=f===-re||q>=re?-1:Math.min(h,h*d,v,v*d),L=y?-1:Math.min(W,W*d,g,g*d),X=m?1:Math.max(h,h*d,v,v*d),_=R?1:Math.max(W,W*d,g,g*d);c=(X-B)/2,i=(_-L)/2,a=-(X+B)/2,O=-(_+L)/2}for(n=0,p=l.length;n0&&!isNaN(t)?ce*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,o,n,p,b,M,z,r,c=this,i=0,a=c.chart;if(!t)for(e=0,o=a.data.datasets.length;e(i=z>i?z:i)?r:i);return i},setHoverStyle:function(t){var e=t._model,o=t._options,n=zt.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=ze(o.hoverBackgroundColor,n(o.backgroundColor)),e.borderColor=ze(o.hoverBorderColor,n(o.borderColor)),e.borderWidth=ze(o.hoverBorderWidth,o.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,o=0;o0&&de(c[t-1]._model,r)&&(o.controlPointPreviousX=i(o.controlPointPreviousX,r.left,r.right),o.controlPointPreviousY=i(o.controlPointPreviousY,r.top,r.bottom)),t0&&(b=t.getDatasetMeta(b[0]._datasetIndex).data),b},"x-axis":function(t,e){return Ne(t,e,{intersect:!1})},point:function(t,e){return Le(t,ye(e,t))},nearest:function(t,e,o){var n=ye(e,t);o.axis=o.axis||"xy";var p=_e(o.axis);return Xe(t,n,o.intersect,p)},x:function(t,e,o){var n=ye(e,t),p=[],b=!1;return Be(t,(function(t){t.inXRange(n.x)&&p.push(t),t.inRange(n.x,n.y)&&(b=!0)})),o.intersect&&!b&&(p=[]),p},y:function(t,e,o){var n=ye(e,t),p=[],b=!1;return Be(t,(function(t){t.inYRange(n.y)&&p.push(t),t.inRange(n.x,n.y)&&(b=!0)})),o.intersect&&!b&&(p=[]),p}}},we=zt.extend;function Te(t,e){return zt.where(t,(function(t){return t.pos===e}))}function Ce(t,e){return t.sort((function(t,o){var n=e?o:t,p=e?t:o;return n.weight===p.weight?n.index-p.index:n.weight-p.weight}))}function Se(t){var e,o,n,p=[];for(e=0,o=(t||[]).length;e div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Ye=o(Object.freeze({__proto__:null,default:$e})),Ge="$chartjs",Je="chartjs-",Ke=Je+"size-monitor",Qe=Je+"render-monitor",Ze=Je+"render-animation",to=["animationstart","webkitAnimationStart"],eo={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function oo(t,e){var o=zt.getStyle(t,e),n=o&&o.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}function no(t,e){var o=t.style,n=t.getAttribute("height"),p=t.getAttribute("width");if(t[Ge]={initial:{height:n,width:p,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",null===p||""===p){var b=oo(t,"width");void 0!==b&&(t.width=b)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var M=oo(t,"height");void 0!==b&&(t.height=M)}return t}var po=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}(),bo=!!po&&{passive:!0};function Mo(t,e,o){t.addEventListener(e,o,bo)}function zo(t,e,o){t.removeEventListener(e,o,bo)}function ro(t,e,o,n,p){return{type:t,chart:e,native:p||null,x:void 0!==o?o:null,y:void 0!==n?n:null}}function co(t,e){var o=eo[t.type]||t.type,n=zt.getRelativePosition(t,e);return ro(o,e,n.x,n.y,t)}function io(t,e){var o=!1,n=[];return function(){n=Array.prototype.slice.call(arguments),e=e||this,o||(o=!0,zt.requestAnimFrame.call(window,(function(){o=!1,t.apply(e,n)})))}}function ao(t){var e=document.createElement("div");return e.className=t||"",e}function Oo(t){var e=1e6,o=ao(Ke),n=ao(Ke+"-expand"),p=ao(Ke+"-shrink");n.appendChild(ao()),p.appendChild(ao()),o.appendChild(n),o.appendChild(p),o._reset=function(){n.scrollLeft=e,n.scrollTop=e,p.scrollLeft=e,p.scrollTop=e};var b=function(){o._reset(),t()};return Mo(n,"scroll",b.bind(n,"expand")),Mo(p,"scroll",b.bind(p,"shrink")),o}function so(t,e){var o=t[Ge]||(t[Ge]={}),n=o.renderProxy=function(t){t.animationName===Ze&&e()};zt.each(to,(function(e){Mo(t,e,n)})),o.reflow=!!t.offsetParent,t.classList.add(Qe)}function lo(t){var e=t[Ge]||{},o=e.renderProxy;o&&(zt.each(to,(function(e){zo(t,e,o)})),delete e.renderProxy),t.classList.remove(Qe)}function uo(t,e,o){var n=t[Ge]||(t[Ge]={}),p=n.resizer=Oo(io((function(){if(n.resizer){var p=o.options.maintainAspectRatio&&t.parentNode,b=p?p.clientWidth:0;e(ro("resize",o)),p&&p.clientWidth0){var b=t[0];b.label?o=b.label:b.xLabel?o=b.xLabel:p>0&&b.index-1?t.split("\n"):t}function Xo(t){var e=t._xScale,o=t._yScale||t._scale,n=t._index,p=t._datasetIndex,b=t._chart.getDatasetMeta(p).controller,M=b._getIndexScale(),z=b._getValueScale();return{xLabel:e?e.getLabelForIndex(n,p):"",yLabel:o?o.getLabelForIndex(n,p):"",label:M?""+M.getLabelForIndex(n,p):"",value:z?""+z.getLabelForIndex(n,p):"",index:n,datasetIndex:p,x:t._model.x,y:t._model.y}}function _o(t){var e=Q.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:mo(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:mo(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:mo(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:mo(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:mo(t.titleFontStyle,e.defaultFontStyle),titleFontSize:mo(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:mo(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:mo(t.footerFontStyle,e.defaultFontStyle),footerFontSize:mo(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 No(t,e){var o=t._chart.ctx,n=2*e.yPadding,p=0,b=e.body,M=b.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);M+=e.beforeBody.length+e.afterBody.length;var z=e.title.length,r=e.footer.length,c=e.titleFontSize,i=e.bodyFontSize,a=e.footerFontSize;n+=z*c,n+=z?(z-1)*e.titleSpacing:0,n+=z?e.titleMarginBottom:0,n+=M*i,n+=M?(M-1)*e.bodySpacing:0,n+=r?e.footerMarginTop:0,n+=r*a,n+=r?(r-1)*e.footerSpacing:0;var O=0,s=function(t){p=Math.max(p,o.measureText(t).width+O)};return o.font=zt.fontString(c,e._titleFontStyle,e._titleFontFamily),zt.each(e.title,s),o.font=zt.fontString(i,e._bodyFontStyle,e._bodyFontFamily),zt.each(e.beforeBody.concat(e.afterBody),s),O=e.displayColors?i+2:0,zt.each(b,(function(t){zt.each(t.before,s),zt.each(t.lines,s),zt.each(t.after,s)})),O=0,o.font=zt.fontString(a,e._footerFontStyle,e._footerFontFamily),zt.each(e.footer,s),{width:p+=2*e.xPadding,height:n}}function xo(t,e){var o,n,p,b,M,z=t._model,r=t._chart,c=t._chart.chartArea,i="center",a="center";z.yr.height-e.height&&(a="bottom");var O=(c.left+c.right)/2,s=(c.top+c.bottom)/2;"center"===a?(o=function(t){return t<=O},n=function(t){return t>O}):(o=function(t){return t<=e.width/2},n=function(t){return t>=r.width-e.width/2}),p=function(t){return t+e.width+z.caretSize+z.caretPadding>r.width},b=function(t){return t-e.width-z.caretSize-z.caretPadding<0},M=function(t){return t<=s?"top":"bottom"},o(z.x)?(i="left",p(z.x)&&(i="center",a=M(z.y))):n(z.x)&&(i="right",b(z.x)&&(i="center",a=M(z.y)));var l=t._options;return{xAlign:l.xAlign?l.xAlign:i,yAlign:l.yAlign?l.yAlign:a}}function wo(t,e,o,n){var p=t.x,b=t.y,M=t.caretSize,z=t.caretPadding,r=t.cornerRadius,c=o.xAlign,i=o.yAlign,a=M+z,O=r+z;return"right"===c?p-=e.width:"center"===c&&((p-=e.width/2)+e.width>n.width&&(p=n.width-e.width),p<0&&(p=0)),"top"===i?b+=a:b-="bottom"===i?e.height+a:e.height/2,"center"===i?"left"===c?p+=a:"right"===c&&(p-=a):"left"===c?p-=O:"right"===c&&(p+=O),{x:p,y:b}}function To(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Co(t){return Bo([],Lo(t))}var So=dt.extend({initialize:function(){this._model=_o(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options.callbacks,o=e.beforeTitle.apply(t,arguments),n=e.title.apply(t,arguments),p=e.afterTitle.apply(t,arguments),b=[];return b=Bo(b,Lo(o)),b=Bo(b,Lo(n)),b=Bo(b,Lo(p))},getBeforeBody:function(){return Co(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var o=this,n=o._options.callbacks,p=[];return zt.each(t,(function(t){var b={before:[],lines:[],after:[]};Bo(b.before,Lo(n.beforeLabel.call(o,t,e))),Bo(b.lines,n.label.call(o,t,e)),Bo(b.after,Lo(n.afterLabel.call(o,t,e))),p.push(b)})),p},getAfterBody:function(){return Co(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,o=e.beforeFooter.apply(t,arguments),n=e.footer.apply(t,arguments),p=e.afterFooter.apply(t,arguments),b=[];return b=Bo(b,Lo(o)),b=Bo(b,Lo(n)),b=Bo(b,Lo(p))},update:function(t){var e,o,n=this,p=n._options,b=n._model,M=n._model=_o(p),z=n._active,r=n._data,c={xAlign:b.xAlign,yAlign:b.yAlign},i={x:b.x,y:b.y},a={width:b.width,height:b.height},O={x:b.caretX,y:b.caretY};if(z.length){M.opacity=1;var s=[],l=[];O=yo[p.position].call(n,z,n._eventPosition);var d=[];for(e=0,o=z.length;e0&&o.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var o={width:e.width,height:e.height},n={x:e.x,y:e.y},p=Math.abs(e.opacity<.001)?0:e.opacity,b=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&b&&(t.save(),t.globalAlpha=p,this.drawBackground(n,e,t,o),n.y+=e.yPadding,zt.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(n,e,t),this.drawBody(n,e,t),this.drawFooter(n,e,t),zt.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e=this,o=e._options,n=!1;return e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:(e._active=e._chart.getElementsAtEventForMode(t,o.mode,o),o.reverse&&e._active.reverse()),(n=!zt.arrayEquals(e._active,e._lastActive))&&(e._lastActive=e._active,(o.enabled||o.custom)&&(e._eventPosition={x:t.x,y:t.y},e.update(!0),e.pivot())),n}}),ko=yo,Eo=So;Eo.positioners=ko;var Do=zt.valueOrDefault;function Po(){return zt.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,o,n){if("xAxes"===t||"yAxes"===t){var p,b,M,z=o[t].length;for(e[t]||(e[t]=[]),p=0;p=e[t].length&&e[t].push({}),!e[t][p].type||M.type&&M.type!==e[t][p].type?zt.merge(e[t][p],[go.getScaleDefaults(b),M]):zt.merge(e[t][p],M)}else zt._merger(t,e,o,n)}})}function jo(){return zt.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,o,n){var p=e[t]||Object.create(null),b=o[t];"scales"===t?e[t]=Po(p,b):"scale"===t?e[t]=zt.merge(p,[go.getScaleDefaults(b.type),b]):zt._merger(t,e,o,n)}})}function Io(t){var e=(t=t||Object.create(null)).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=jo(Q.global,Q[t.type],t.options||{}),t}function Fo(t){var e=t.options;zt.each(t.scales,(function(e){Ue.removeBox(t,e)})),e=jo(Q.global,Q[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Ho(t,e,o){var n,p=function(t){return t.id===n};do{n=e+o++}while(zt.findIndex(t,p)>=0);return n}function Uo(t){return"top"===t||"bottom"===t}function Vo(t,e){return function(o,n){return o[t]===n[t]?o[e]-n[e]:o[t]-n[t]}}Q._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});var $o=function(t,e){return this.construct(t,e),this};zt.extend($o.prototype,{construct:function(t,e){var o=this;e=Io(e);var n=Wo.acquireContext(t,e),p=n&&n.canvas,b=p&&p.height,M=p&&p.width;o.id=zt.uid(),o.ctx=n,o.canvas=p,o.config=e,o.width=M,o.height=b,o.aspectRatio=b?M/b:null,o.options=e.options,o._bufferedRender=!1,o._layers=[],o.chart=o,o.controller=o,$o.instances[o.id]=o,Object.defineProperty(o,"data",{get:function(){return o.config.data},set:function(t){o.config.data=t}}),n&&p&&(o.initialize(),o.update())},initialize:function(){var t=this;return vo.notify(t,"beforeInit"),zt.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),vo.notify(t,"afterInit"),t},clear:function(){return zt.canvas.clear(this),this},stop:function(){return ft.cancelAnimation(this),this},resize:function(t){var e=this,o=e.options,n=e.canvas,p=o.maintainAspectRatio&&e.aspectRatio||null,b=Math.max(0,Math.floor(zt.getMaximumWidth(n))),M=Math.max(0,Math.floor(p?b/p:zt.getMaximumHeight(n)));if((e.width!==b||e.height!==M)&&(n.width=e.width=b,n.height=e.height=M,n.style.width=b+"px",n.style.height=M+"px",zt.retinaScale(e,o.devicePixelRatio),!t)){var z={width:b,height:M};vo.notify(e,"resize",[z]),o.onResize&&o.onResize(e,z),e.stop(),e.update({duration:o.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},o=t.scale;zt.each(e.xAxes,(function(t,o){t.id||(t.id=Ho(e.xAxes,"x-axis-",o))})),zt.each(e.yAxes,(function(t,o){t.id||(t.id=Ho(e.yAxes,"y-axis-",o))})),o&&(o.id=o.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,o=t.scales||{},n=[],p=Object.keys(o).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(n=n.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&n.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),zt.each(n,(function(e){var n=e.options,b=n.id,M=Do(n.type,e.dtype);Uo(n.position)!==Uo(e.dposition)&&(n.position=e.dposition),p[b]=!0;var z=null;if(b in o&&o[b].type===M)(z=o[b]).options=n,z.ctx=t.ctx,z.chart=t;else{var r=go.getScaleConstructor(M);if(!r)return;z=new r({id:b,type:M,options:n,ctx:t.ctx,chart:t}),o[z.id]=z}z.mergeTicksOptions(),e.isDefault&&(t.scale=z)})),zt.each(p,(function(t,e){t||delete o[e]})),t.scales=o,go.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,o=this,n=[],p=o.data.datasets;for(t=0,e=p.length;t=0;--o)n.drawDataset(e[o],t);vo.notify(n,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var o=this,n={meta:t,index:t.index,easingValue:e};!1!==vo.notify(o,"beforeDatasetDraw",[n])&&(t.controller.draw(e),vo.notify(o,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this,o=e.tooltip,n={tooltip:o,easingValue:t};!1!==vo.notify(e,"beforeTooltipDraw",[n])&&(o.draw(),vo.notify(e,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return xe.modes.single(this,t)},getElementsAtEvent:function(t){return xe.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return xe.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,o){var n=xe.modes[e];return"function"==typeof n?n(this,t,o):[]},getDatasetAtEvent:function(t){return xe.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,o=e.data.datasets[t];o._meta||(o._meta={});var n=o._meta[e.id];return n||(n=o._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,o=this.data.datasets.length;e=0;n--){var p=t[n];if(e(p))return p}},zt.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},zt.almostEquals=function(t,e,o){return Math.abs(t-e)=t},zt.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},zt.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},zt.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},zt.toRadians=function(t){return t*(Math.PI/180)},zt.toDegrees=function(t){return t*(180/Math.PI)},zt._decimalPlaces=function(t){if(zt.isFinite(t)){for(var e=1,o=0;Math.round(t*e)/e!==t;)e*=10,o++;return o}},zt.getAngleFromPoint=function(t,e){var o=e.x-t.x,n=e.y-t.y,p=Math.sqrt(o*o+n*n),b=Math.atan2(n,o);return b<-.5*Math.PI&&(b+=2*Math.PI),{angle:b,distance:p}},zt.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},zt.aliasPixel=function(t){return t%2==0?0:.5},zt._alignPixel=function(t,e,o){var n=t.currentDevicePixelRatio,p=o/2;return Math.round((e-p)*n)/n+p},zt.splineCurve=function(t,e,o,n){var p=t.skip?e:t,b=e,M=o.skip?e:o,z=Math.sqrt(Math.pow(b.x-p.x,2)+Math.pow(b.y-p.y,2)),r=Math.sqrt(Math.pow(M.x-b.x,2)+Math.pow(M.y-b.y,2)),c=z/(z+r),i=r/(z+r),a=n*(c=isNaN(c)?0:c),O=n*(i=isNaN(i)?0:i);return{previous:{x:b.x-a*(M.x-p.x),y:b.y-a*(M.y-p.y)},next:{x:b.x+O*(M.x-p.x),y:b.y+O*(M.y-p.y)}}},zt.EPSILON=Number.EPSILON||1e-14,zt.splineCurveMonotone=function(t){var e,o,n,p,b,M,z,r,c,i=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),a=i.length;for(e=0;e0?i[e-1]:null,(p=e0?i[e-1]:null,p=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},zt.previousItem=function(t,e,o){return o?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},zt.niceNum=function(t,e){var o=Math.floor(zt.log10(t)),n=t/Math.pow(10,o);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,o)},zt.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)},zt.getRelativePosition=function(t,e){var o,n,p=t.originalEvent||t,b=t.target||t.srcElement,M=b.getBoundingClientRect(),z=p.touches;z&&z.length>0?(o=z[0].clientX,n=z[0].clientY):(o=p.clientX,n=p.clientY);var r=parseFloat(zt.getStyle(b,"padding-left")),c=parseFloat(zt.getStyle(b,"padding-top")),i=parseFloat(zt.getStyle(b,"padding-right")),a=parseFloat(zt.getStyle(b,"padding-bottom")),O=M.right-M.left-r-i,s=M.bottom-M.top-c-a;return{x:o=Math.round((o-M.left-r)/O*b.width/e.currentDevicePixelRatio),y:n=Math.round((n-M.top-c)/s*b.height/e.currentDevicePixelRatio)}},zt.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},zt.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},zt._calculatePadding=function(t,e,o){return(e=zt.getStyle(t,e)).indexOf("%")>-1?o*parseInt(e,10)/100:parseInt(e,10)},zt._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},zt.getMaximumWidth=function(t){var e=zt._getParentNode(t);if(!e)return t.clientWidth;var o=e.clientWidth,n=o-zt._calculatePadding(e,"padding-left",o)-zt._calculatePadding(e,"padding-right",o),p=zt.getConstraintWidth(t);return isNaN(p)?n:Math.min(n,p)},zt.getMaximumHeight=function(t){var e=zt._getParentNode(t);if(!e)return t.clientHeight;var o=e.clientHeight,n=o-zt._calculatePadding(e,"padding-top",o)-zt._calculatePadding(e,"padding-bottom",o),p=zt.getConstraintHeight(t);return isNaN(p)?n:Math.min(n,p)},zt.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},zt.retinaScale=function(t,e){var o=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==o){var n=t.canvas,p=t.height,b=t.width;n.height=p*o,n.width=b*o,t.ctx.scale(o,o),n.style.height||n.style.width||(n.style.height=p+"px",n.style.width=b+"px")}},zt.fontString=function(t,e,o){return e+" "+t+"px "+o},zt.longestText=function(t,e,o,n){var p=(n=n||{}).data=n.data||{},b=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(p=n.data={},b=n.garbageCollect=[],n.font=e),t.font=e;var M,z,r,c,i,a=0,O=o.length;for(M=0;Mo.length){for(M=0;Mn&&(n=b),n},zt.numberOfLabelLines=function(t){var e=1;return zt.each(t,(function(t){zt.isArray(t)&&t.length>e&&(e=t.length)})),e},zt.color=S?function(t){return t instanceof CanvasGradient&&(t=Q.global.defaultColor),S(t)}:function(t){return t},zt.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:zt.color(t).saturate(.5).darken(.1).rgbString()}};function Jo(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Ko(t){this.options=t||{}}zt.extend(Ko.prototype,{formats:Jo,parse:Jo,format:Jo,add:Jo,diff:Jo,startOf:Jo,endOf:Jo,_create:function(t){return t}}),Ko.override=function(t){zt.extend(Ko.prototype,t)};var Qo={_date:Ko},Zo={formatters:{values:function(t){return zt.isArray(t)?t:""+t},linear:function(t,e,o){var n=o.length>3?o[2]-o[1]:o[1]-o[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var p=zt.log10(Math.abs(n)),b="";if(0!==t)if(Math.max(Math.abs(o[0]),Math.abs(o[o.length-1]))<1e-4){var M=zt.log10(Math.abs(t)),z=Math.floor(M)-Math.floor(p);z=Math.max(Math.min(z,20),0),b=t.toExponential(z)}else{var r=-1*Math.floor(p);r=Math.max(Math.min(r,20),0),b=t.toFixed(r)}else b="0";return b},logarithmic:function(t,e,o){var n=t/Math.pow(10,Math.floor(zt.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===e||e===o.length-1?t.toExponential():""}}},tn=zt.isArray,en=zt.isNullOrUndef,on=zt.valueOrDefault,nn=zt.valueAtIndexOrDefault;function pn(t,e){for(var o=[],n=t.length/e,p=0,b=t.length;pr+c)))return M}function Mn(t,e){zt.each(t,(function(t){var o,n=t.gc,p=n.length/2;if(p>e){for(o=0;oc)return b;return Math.max(c,1)}function un(t){var e,o,n=[];for(e=0,o=t.length;e=O||i<=1||!z.isHorizontal()?z.labelRotation=a:(e=(t=z._getLabelSizes()).widest.width,o=t.highest.height-t.highest.offset,n=Math.min(z.maxWidth,z.chart.width-e),e+6>(p=r.offset?z.maxWidth/i:n/(i-1))&&(p=n/(i-(r.offset?.5:1)),b=z.maxHeight-rn(r.gridLines)-c.padding-cn(r.scaleLabel),M=Math.sqrt(e*e+o*o),s=zt.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/p,1)),Math.asin(Math.min(b/M,1))-Math.asin(o/M))),s=Math.max(a,Math.min(O,s))),z.labelRotation=s)},afterCalculateTickRotation:function(){zt.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){zt.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},o=t.chart,n=t.options,p=n.ticks,b=n.scaleLabel,M=n.gridLines,z=t._isVisible(),r="bottom"===n.position,c=t.isHorizontal();if(c?e.width=t.maxWidth:z&&(e.width=rn(M)+cn(b)),c?z&&(e.height=rn(M)+cn(b)):e.height=t.maxHeight,p.display&&z){var i=On(p),a=t._getLabelSizes(),O=a.first,s=a.last,l=a.widest,d=a.highest,u=.4*i.minor.lineHeight,A=p.padding;if(c){var f=0!==t.labelRotation,q=zt.toRadians(t.labelRotation),h=Math.cos(q),W=Math.sin(q),v=W*l.width+h*(d.height-(f?d.offset:0))+(f?0:u);e.height=Math.min(t.maxHeight,e.height+v+A);var g,m,R=t.getPixelForTick(0)-t.left,y=t.right-t.getPixelForTick(t.getTicks().length-1);f?(g=r?h*O.width+W*O.offset:W*(O.height-O.offset),m=r?W*(s.height-s.offset):h*s.width+W*s.offset):(g=O.width/2,m=s.width/2),t.paddingLeft=Math.max((g-R)*t.width/(t.width-R),0)+3,t.paddingRight=Math.max((m-y)*t.width/(t.width-y),0)+3}else{var B=p.mirror?0:l.width+A+u;e.width=Math.min(t.maxWidth,e.width+B),t.paddingTop=O.height/2,t.paddingBottom=s.height/2}}t.handleMargins(),c?(t.width=t._length=o.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=o.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){zt.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(en(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},_convertTicksToLabels:function(t){var e,o,n,p=this;for(p.ticks=t.map((function(t){return t.value})),p.beforeTickToLabelConversion(),e=p.convertTicksToLabels(t)||p.ticks,p.afterTickToLabelConversion(),o=0,n=t.length;on-1?null:e.getPixelForDecimal(t*p+(o?p/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,o=t.max;return t.beginAtZero?0:e<0&&o<0?o:e>0&&o>0?e:0},_autoSkip:function(t){var e,o,n,p,b=this,M=b.options.ticks,z=b._length,r=M.maxTicksLimit||z/b._tickSize()+1,c=M.major.enabled?un(t):[],i=c.length,a=c[0],O=c[i-1];if(i>r)return An(t,c,i/r),sn(t);if(n=dn(c,t,z,r),i>0){for(e=0,o=i-1;e1?(O-a)/(i-1):null,fn(t,n,zt.isNullOrUndef(p)?0:a-p,a),fn(t,n,O,zt.isNullOrUndef(p)?t.length:O+p),sn(t)}return fn(t,n),sn(t)},_tickSize:function(){var t=this,e=t.options.ticks,o=zt.toRadians(t.labelRotation),n=Math.abs(Math.cos(o)),p=Math.abs(Math.sin(o)),b=t._getLabelSizes(),M=e.autoSkipPadding||0,z=b?b.widest.width+M:0,r=b?b.highest.height+M:0;return t.isHorizontal()?r*n>z*p?z/n:r/p:r*p=0&&(M=t),void 0!==b&&(t=o.indexOf(b))>=0&&(z=t),e.minIndex=M,e.maxIndex=z,e.min=o[M],e.max=o[z]},buildTicks:function(){var t=this,e=t._getLabels(),o=t.minIndex,n=t.maxIndex;t.ticks=0===o&&n===e.length-1?e:e.slice(o,n+1)},getLabelForIndex:function(t,e){var o=this,n=o.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===o.id?o.getRightValue(n.data.datasets[e].data[t]):o._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,o=t.ticks;hn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),o&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(o.length-(e?0:1),1))},getPixelForValue:function(t,e,o){var n,p,b,M=this;return Wn(e)||Wn(o)||(t=M.chart.data.datasets[o].data[e]),Wn(t)||(n=M.isHorizontal()?t.x:t.y),(void 0!==n||void 0!==t&&isNaN(e))&&(p=M._getLabels(),t=zt.valueOrDefault(n,t),e=-1!==(b=p.indexOf(t))?b:e,isNaN(e)&&(e=t)),M.getPixelForDecimal((e-M._startValue)/M._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,o=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(o,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),mn=vn;gn._defaults=mn;var Rn=zt.noop,yn=zt.isNullOrUndef;function Bn(t,e){var o,n,p,b,M=[],z=1e-14,r=t.stepSize,c=r||1,i=t.maxTicks-1,a=t.min,O=t.max,s=t.precision,l=e.min,d=e.max,u=zt.niceNum((d-l)/i/c)*c;if(ui&&(u=zt.niceNum(b*u/i/c)*c),r||yn(s)?o=Math.pow(10,zt._decimalPlaces(u)):(o=Math.pow(10,s),u=Math.ceil(u*o)/o),n=Math.floor(l/u)*u,p=Math.ceil(d/u)*u,r&&(!yn(a)&&zt.almostWhole(a/u,u/1e3)&&(n=a),!yn(O)&&zt.almostWhole(O/u,u/1e3)&&(p=O)),b=(p-n)/u,b=zt.almostEquals(b,Math.round(b),u/1e3)?Math.round(b):Math.ceil(b),n=Math.round(n*o)/o,p=Math.round(p*o)/o,M.push(yn(a)?n:a);for(var A=1;A0&&n>0&&(t.min=0)}var p=void 0!==e.min||void 0!==e.suggestedMin,b=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)),p!==b&&t.min>=t.max&&(p?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,o=e.options.ticks,n=o.stepSize,p=o.maxTicksLimit;return n?t=Math.ceil(e.max/n)-Math.floor(e.min/n)+1:(t=e._computeTickLimit(),p=p||11),p&&(t=Math.min(p,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Rn,buildTicks:function(){var t=this,e=t.options.ticks,o=t.getTickLimit(),n={maxTicks:o=Math.max(2,o),min:e.min,max:e.max,precision:e.precision,stepSize:zt.valueOrDefault(e.fixedStepSize,e.stepSize)},p=t.ticks=Bn(n,t);t.handleDirectionalChanges(),t.max=zt.max(p),t.min=zt.min(p),e.reverse?(p.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),hn.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,o=e.getTicks(),n=e.min,p=e.max;hn.prototype._configure.call(e),e.options.offset&&o.length&&(n-=t=(p-n)/Math.max(o.length-1,1)/2,p+=t),e._startValue=n,e._endValue=p,e._valueRange=p-n}}),Xn={position:"left",ticks:{callback:Zo.formatters.linear}},_n=0,Nn=1;function xn(t,e,o){var n=[o.type,void 0===e&&void 0===o.stack?o.index:"",o.stack].join(".");return void 0===t[n]&&(t[n]={pos:[],neg:[]}),t[n]}function wn(t,e,o,n){var p,b,M=t.options,z=xn(e,M.stacked,o),r=z.pos,c=z.neg,i=n.length;for(p=0;pe.length-1?null:this.getPixelForValue(e[t])}}),Sn=Xn;Cn._defaults=Sn;var kn=zt.valueOrDefault,En=zt.math.log10;function Dn(t,e){var o,n,p=[],b=kn(t.min,Math.pow(10,Math.floor(En(e.min)))),M=Math.floor(En(e.max)),z=Math.ceil(e.max/Math.pow(10,M));0===b?(o=Math.floor(En(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,o)),p.push(b),b=n*Math.pow(10,o)):(o=Math.floor(En(b)),n=Math.floor(b/Math.pow(10,o)));var r=o<0?Math.pow(10,Math.abs(o)):1;do{p.push(b),10==++n&&(n=1,r=++o>=0?1:r),b=Math.round(n*Math.pow(10,o)*r)/r}while(o=0?t:e}var In=hn.extend({determineDataLimits:function(){var t,e,o,n,p,b,M=this,z=M.options,r=M.chart,c=r.data.datasets,i=M.isHorizontal();function a(t){return i?t.xAxisID===M.id:t.yAxisID===M.id}M.min=Number.POSITIVE_INFINITY,M.max=Number.NEGATIVE_INFINITY,M.minNotZero=Number.POSITIVE_INFINITY;var O=z.stacked;if(void 0===O)for(t=0;t0){var e=zt.min(t),o=zt.max(t);M.min=Math.min(M.min,e),M.max=Math.max(M.max,o)}}))}else for(t=0;t0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(En(t.max))):t.minNotZero=o)},buildTicks:function(){var t=this,e=t.options.ticks,o=!t.isHorizontal(),n={min:jn(e.min),max:jn(e.max)},p=t.ticks=Dn(n,t);t.max=zt.max(p),t.min=zt.min(p),e.reverse?(o=!o,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),o&&p.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),hn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(En(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,o=0;hn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),o=kn(t.options.ticks.fontSize,Q.global.defaultFontSize)/t._length),t._startValue=En(e),t._valueOffset=o,t._valueRange=(En(t.max)-En(e))/(1-o)},getPixelForValue:function(t){var e=this,o=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(o=(En(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(o)},getValueForPixel:function(t){var e=this,o=e.getDecimalForPixel(t);return 0===o&&0===e.min?0:Math.pow(10,e._startValue+(o-e._valueOffset)*e._valueRange)}}),Fn=Pn;In._defaults=Fn;var Hn=zt.valueOrDefault,Un=zt.valueAtIndexOrDefault,Vn=zt.options.resolve,$n={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:Zo.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Yn(t){var e=t.ticks;return e.display&&t.display?Hn(e.fontSize,Q.global.defaultFontSize)+2*e.backdropPaddingY:0}function Gn(t,e,o){return zt.isArray(o)?{w:zt.longestText(t,t.font,o),h:o.length*e}:{w:t.measureText(o).width,h:e}}function Jn(t,e,o,n,p){return t===n||t===p?{start:e-o/2,end:e+o/2}:tp?{start:e-o,end:e}:{start:e,end:e+o}}function Kn(t){var e,o,n,p=zt.options._parseFont(t.options.pointLabels),b={l:0,r:t.width,t:0,b:t.height-t.paddingTop},M={};t.ctx.font=p.string,t._pointLabelSizes=[];var z=t.chart.data.labels.length;for(e=0;eb.r&&(b.r=i.end,M.r=r),a.startb.b&&(b.b=a.end,M.b=r)}t.setReductions(t.drawingArea,b,M)}function Qn(t){return 0===t||180===t?"center":t<180?"left":"right"}function Zn(t,e,o,n){var p,b,M=o.y+n/2;if(zt.isArray(e))for(p=0,b=e.length;p270||t<90)&&(o.y-=e.h)}function ep(t){var e=t.ctx,o=t.options,n=o.pointLabels,p=Yn(o),b=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),M=zt.options._parseFont(n);e.save(),e.font=M.string,e.textBaseline="middle";for(var z=t.chart.data.labels.length-1;z>=0;z--){var r=0===z?p/2:0,c=t.getPointPosition(z,b+r+5),i=Un(n.fontColor,z,Q.global.defaultFontColor);e.fillStyle=i;var a=t.getIndexAngle(z),O=zt.toDegrees(a);e.textAlign=Qn(O),tp(O,t._pointLabelSizes[z],c),Zn(e,t.pointLabels[z],c,M.lineHeight)}e.restore()}function op(t,e,o,n){var p,b=t.ctx,M=e.circular,z=t.chart.data.labels.length,r=Un(e.color,n-1),c=Un(e.lineWidth,n-1);if((M||z)&&r&&c){if(b.save(),b.strokeStyle=r,b.lineWidth=c,b.setLineDash&&(b.setLineDash(e.borderDash||[]),b.lineDashOffset=e.borderDashOffset||0),b.beginPath(),M)b.arc(t.xCenter,t.yCenter,o,0,2*Math.PI);else{p=t.getPointPosition(0,o),b.moveTo(p.x,p.y);for(var i=1;i0&&n>0?o:0)},_drawGrid:function(){var t,e,o,n=this,p=n.ctx,b=n.options,M=b.gridLines,z=b.angleLines,r=Hn(z.lineWidth,M.lineWidth),c=Hn(z.color,M.color);if(b.pointLabels.display&&ep(n),M.display&&zt.each(n.ticks,(function(t,o){0!==o&&(e=n.getDistanceFromCenterForValue(n.ticksAsNumbers[o]),op(n,M,e,o))})),z.display&&r&&c){for(p.save(),p.lineWidth=r,p.strokeStyle=c,p.setLineDash&&(p.setLineDash(Vn([z.borderDash,M.borderDash,[]])),p.lineDashOffset=Vn([z.borderDashOffset,M.borderDashOffset,0])),t=n.chart.data.labels.length-1;t>=0;t--)e=n.getDistanceFromCenterForValue(b.ticks.reverse?n.min:n.max),o=n.getPointPosition(t,e),p.beginPath(),p.moveTo(n.xCenter,n.yCenter),p.lineTo(o.x,o.y),p.stroke();p.restore()}},_drawLabels:function(){var t=this,e=t.ctx,o=t.options.ticks;if(o.display){var n,p,b=t.getIndexAngle(0),M=zt.options._parseFont(o),z=Hn(o.fontColor,Q.global.defaultFontColor);e.save(),e.font=M.string,e.translate(t.xCenter,t.yCenter),e.rotate(b),e.textAlign="center",e.textBaseline="middle",zt.each(t.ticks,(function(b,r){(0!==r||o.reverse)&&(n=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]),o.showLabelBackdrop&&(p=e.measureText(b).width,e.fillStyle=o.backdropColor,e.fillRect(-p/2-o.backdropPaddingX,-n-M.size/2-o.backdropPaddingY,p+2*o.backdropPaddingX,M.size+2*o.backdropPaddingY)),e.fillStyle=z,e.fillText(b,0,-n))})),e.restore()}},_drawTitle:zt.noop}),bp=$n;pp._defaults=bp;var Mp=zt._deprecated,zp=zt.options.resolve,rp=zt.valueOrDefault,cp=Number.MIN_SAFE_INTEGER||-9007199254740991,ip=Number.MAX_SAFE_INTEGER||9007199254740991,ap={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Op=Object.keys(ap);function sp(t,e){return t-e}function lp(t){var e,o,n,p={},b=[];for(e=0,o=t.length;ee&&z=0&&M<=z;){if(p=t[(n=M+z>>1)-1]||null,b=t[n],!p)return{lo:null,hi:b};if(b[e]o))return{lo:p,hi:b};z=n-1}}return{lo:b,hi:null}}function qp(t,e,o,n){var p=fp(t,e,o),b=p.lo?p.hi?p.lo:t[t.length-2]:t[0],M=p.lo?p.hi?p.hi:t[t.length-1]:t[1],z=M[e]-b[e],r=z?(o-b[e])/z:0,c=(M[n]-b[n])*r;return b[n]+c}function hp(t,e){var o=t._adapter,n=t.options.time,p=n.parser,b=p||n.format,M=e;return"function"==typeof p&&(M=p(M)),zt.isFinite(M)||(M="string"==typeof b?o.parse(M,b):o.parse(M)),null!==M?+M:(p||"function"!=typeof b||(M=b(e),zt.isFinite(M)||(M=o.parse(M))),M)}function Wp(t,e){if(zt.isNullOrUndef(e))return null;var o=t.options.time,n=hp(t,t.getRightValue(e));return null===n||o.round&&(n=+t._adapter.startOf(n,o.round)),n}function vp(t,e,o,n){var p,b,M,z=Op.length;for(p=Op.indexOf(t);p=Op.indexOf(o);b--)if(M=Op[b],ap[M].common&&t._adapter.diff(p,n,M)>=e-1)return M;return Op[o?Op.indexOf(o):0]}function mp(t){for(var e=Op.indexOf(t)+1,o=Op.length;e1e5*c)throw e+" and "+o+" are too far apart with stepSize of "+c+" "+r;for(p=a;p=0&&(e[b].major=!0);return e}function Lp(t,e,o){var n,p,b=[],M={},z=e.length;for(n=0;n1?lp(l).sort(sp):l.sort(sp),O=Math.min(O,l[0]),s=Math.max(s,l[l.length-1])),O=Wp(z,dp(i))||O,s=Wp(z,up(i))||s,O=O===ip?+c.startOf(Date.now(),a):O,s=s===cp?+c.endOf(Date.now(),a)+1:s,z.min=Math.min(O,s),z.max=Math.max(O+1,s),z._table=[],z._timestamps={data:l,datasets:d,labels:u}},buildTicks:function(){var t,e,o,n=this,p=n.min,b=n.max,M=n.options,z=M.ticks,r=M.time,c=n._timestamps,i=[],a=n.getLabelCapacity(p),O=z.source,s=M.distribution;for(c="data"===O||"auto"===O&&"series"===s?c.data:"labels"===O?c.labels:Rp(n,p,b,a),"ticks"===M.bounds&&c.length&&(p=c[0],b=c[c.length-1]),p=Wp(n,dp(M))||p,b=Wp(n,up(M))||b,t=0,e=c.length;t=p&&o<=b&&i.push(o);return n.min=p,n.max=b,n._unit=r.unit||(z.autoSkip?vp(r.minUnit,n.min,n.max,a):gp(n,i.length,r.minUnit,n.min,n.max)),n._majorUnit=z.major.enabled&&"year"!==n._unit?mp(n._unit):void 0,n._table=Ap(n._timestamps.data,p,b,s),n._offsets=yp(n._table,i,p,b,M),z.reverse&&i.reverse(),Lp(n,i,n._majorUnit)},getLabelForIndex:function(t,e){var o=this,n=o._adapter,p=o.chart.data,b=o.options.time,M=p.labels&&t=0&&t0?z:1}}),Np=Xp;_p._defaults=Np;var xp={category:gn,linear:Cn,logarithmic:In,radialLinear:pp,time:_p},wp={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"};Qo._date.override("function"==typeof t?{_id:"moment",formats:function(){return wp},parse:function(e,o){return"string"==typeof e&&"string"==typeof o?e=t(e,o):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,o){return t(e).format(o)},add:function(e,o,n){return t(e).add(o,n).valueOf()},diff:function(e,o,n){return t(e).diff(t(o),n)},startOf:function(e,o,n){return e=t(e),"isoWeek"===o?e.isoWeekday(n).valueOf():e.startOf(o).valueOf()},endOf:function(e,o){return t(e).endOf(o).valueOf()},_create:function(e){return t(e)}}:{}),Q._set("global",{plugins:{filler:{propagate:!0}}});var Tp={dataset:function(t){var e=t.fill,o=t.chart,n=o.getDatasetMeta(e),p=n&&o.isDatasetVisible(e)&&n.dataset._children||[],b=p.length||0;return b?function(t,e){return e=o)&&n;switch(b){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return b;default:return!1}}function Sp(t){var e,o=t.el._model||{},n=t.el._scale||{},p=t.fill,b=null;if(isFinite(p))return null;if("start"===p?b=void 0===o.scaleBottom?n.bottom:o.scaleBottom:"end"===p?b=void 0===o.scaleTop?n.top:o.scaleTop:void 0!==o.scaleZero?b=o.scaleZero:n.getBasePixel&&(b=n.getBasePixel()),null!=b){if(void 0!==b.x&&void 0!==b.y)return b;if(zt.isFinite(b))return{x:(e=n.isHorizontal())?b:null,y:e?null:b}}return null}function kp(t){var e,o,n,p,b,M=t.el._scale,z=M.options,r=M.chart.data.labels.length,c=t.fill,i=[];if(!r)return null;for(e=z.ticks.reverse?M.max:M.min,o=z.ticks.reverse?M.min:M.max,n=M.getPointPositionForValue(0,e),p=0;p0;--b)zt.canvas.lineTo(t,o[b],o[b-1],!0);else for(M=o[0].cx,z=o[0].cy,r=Math.sqrt(Math.pow(o[0].x-M,2)+Math.pow(o[0].y-z,2)),b=p-1;b>0;--b)t.arc(M,z,r,o[b].angle,o[b-1].angle,!0)}}function Fp(t,e,o,n,p,b){var M,z,r,c,i,a,O,s,l=e.length,d=n.spanGaps,u=[],A=[],f=0,q=0;for(t.beginPath(),M=0,z=l;M=0;--o)(e=r[o].$filler)&&e.visible&&(p=(n=e.el)._view,b=n._children||[],M=e.mapper,z=p.backgroundColor||Q.global.defaultColor,M&&z&&b.length&&(zt.canvas.clipArea(c,t.chartArea),Fp(c,b,M,p,z,n._loop),zt.canvas.unclipArea(c)))}},Up=zt.rtl.getRtlAdapter,Vp=zt.noop,$p=zt.valueOrDefault;function Yp(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}Q._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var o=e.datasetIndex,n=this.chart,p=n.getDatasetMeta(o);p.hidden=null===p.hidden?!n.data.datasets[o].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,o=t.options.legend||{},n=o.labels&&o.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(o){var p=o.controller.getStyle(n?0:void 0);return{text:e[o.index].label,fillStyle:p.backgroundColor,hidden:!t.isDatasetVisible(o.index),lineCap:p.borderCapStyle,lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:p.borderWidth,strokeStyle:p.borderColor,pointStyle:p.pointStyle,rotation:p.rotation,datasetIndex:o.index}}),this)}}},legendCallback:function(t){var e,o,n,p=document.createElement("ul"),b=t.data.datasets;for(p.setAttribute("class",t.id+"-legend"),e=0,o=b.length;er.width)&&(a+=M+o.padding,i[i.length-(e>0?0:1)]=0),z[e]={left:0,top:0,width:n,height:M},i[i.length-1]+=n+o.padding})),r.height+=a}else{var O=o.padding,s=t.columnWidths=[],l=t.columnHeights=[],d=o.padding,u=0,A=0;zt.each(t.legendItems,(function(t,e){var n=Yp(o,M)+M/2+p.measureText(t.text).width;e>0&&A+M+2*O>r.height&&(d+=u+o.padding,s.push(u),l.push(A),u=0,A=0),u=Math.max(u,n),A+=M+O,z[e]={left:0,top:0,width:n,height:M}})),d+=u,s.push(u),l.push(A),r.width+=d}t.width=r.width,t.height=r.height}else t.width=r.width=t.height=r.height=0},afterFit:Vp,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,o=e.labels,n=Q.global,p=n.defaultColor,b=n.elements.line,M=t.height,z=t.columnHeights,r=t.width,c=t.lineWidths;if(e.display){var i,a=Up(e.rtl,t.left,t.minSize.width),O=t.ctx,s=$p(o.fontColor,n.defaultFontColor),l=zt.options._parseFont(o),d=l.size;O.textAlign=a.textAlign("left"),O.textBaseline="middle",O.lineWidth=.5,O.strokeStyle=s,O.fillStyle=s,O.font=l.string;var u=Yp(o,d),A=t.legendHitBoxes,f=function(t,e,n){if(!(isNaN(u)||u<=0)){O.save();var M=$p(n.lineWidth,b.borderWidth);if(O.fillStyle=$p(n.fillStyle,p),O.lineCap=$p(n.lineCap,b.borderCapStyle),O.lineDashOffset=$p(n.lineDashOffset,b.borderDashOffset),O.lineJoin=$p(n.lineJoin,b.borderJoinStyle),O.lineWidth=M,O.strokeStyle=$p(n.strokeStyle,p),O.setLineDash&&O.setLineDash($p(n.lineDash,b.borderDash)),o&&o.usePointStyle){var z=u*Math.SQRT2/2,r=a.xPlus(t,u/2),c=e+d/2;zt.canvas.drawPoint(O,n.pointStyle,z,r,c,n.rotation)}else O.fillRect(a.leftForLtr(t,u),e,u,d),0!==M&&O.strokeRect(a.leftForLtr(t,u),e,u,d);O.restore()}},q=function(t,e,o,n){var p=d/2,b=a.xPlus(t,u+p),M=e+p;O.fillText(o.text,b,M),o.hidden&&(O.beginPath(),O.lineWidth=2,O.moveTo(b,M),O.lineTo(a.xPlus(b,n),M),O.stroke())},h=function(t,n){switch(e.align){case"start":return o.padding;case"end":return t-n;default:return(t-n+o.padding)/2}},W=t.isHorizontal();i=W?{x:t.left+h(r,c[0]),y:t.top+o.padding,line:0}:{x:t.left+o.padding,y:t.top+h(M,z[0]),line:0},zt.rtl.overrideTextDirection(t.ctx,e.textDirection);var v=d+o.padding;zt.each(t.legendItems,(function(e,n){var p=O.measureText(e.text).width,b=u+d/2+p,s=i.x,l=i.y;a.setWidth(t.minSize.width),W?n>0&&s+b+o.padding>t.left+t.minSize.width&&(l=i.y+=v,i.line++,s=i.x=t.left+h(r,c[i.line])):n>0&&l+v>t.top+t.minSize.height&&(s=i.x=s+t.columnWidths[i.line]+o.padding,i.line++,l=i.y=t.top+h(M,z[i.line]));var g=a.x(s);f(g,l,e),A[n].left=a.leftForLtr(g,A[n].width),A[n].top=l,q(g,l,e,p),W?i.x+=b+o.padding:i.y+=v})),zt.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var o,n,p,b=this;if(t>=b.left&&t<=b.right&&e>=b.top&&e<=b.bottom)for(p=b.legendHitBoxes,o=0;o=(n=p[o]).left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return b.legendItems[o];return null},handleEvent:function(t){var e,o=this,n=o.options,p="mouseup"===t.type?"click":t.type;if("mousemove"===p){if(!n.onHover&&!n.onLeave)return}else{if("click"!==p)return;if(!n.onClick)return}e=o._getLegendItemAt(t.x,t.y),"click"===p?e&&n.onClick&&n.onClick.call(o,t.native,e):(n.onLeave&&e!==o._hoveredItem&&(o._hoveredItem&&n.onLeave.call(o,t.native,o._hoveredItem),o._hoveredItem=e),n.onHover&&e&&n.onHover.call(o,t.native,e))}});function Jp(t,e){var o=new Gp({ctx:t.ctx,options:e,chart:t});Ue.configure(t,o,e),Ue.addBox(t,o),t.legend=o}var Kp={id:"legend",_element:Gp,beforeInit:function(t){var e=t.options.legend;e&&Jp(t,e)},beforeUpdate:function(t){var e=t.options.legend,o=t.legend;e?(zt.mergeIf(e,Q.global.legend),o?(Ue.configure(t,o,e),o.options=e):Jp(t,e)):o&&(Ue.removeBox(t,o),delete t.legend)},afterEvent:function(t,e){var o=t.legend;o&&o.handleEvent(e)}},Qp=zt.noop;Q._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Zp=dt.extend({initialize:function(t){var e=this;zt.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:Qp,update:function(t,e,o){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=o,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:Qp,beforeSetDimensions:Qp,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:Qp,beforeBuildLabels:Qp,buildLabels:Qp,afterBuildLabels:Qp,beforeFit:Qp,fit:function(){var t,e=this,o=e.options,n=e.minSize={},p=e.isHorizontal();o.display?(t=(zt.isArray(o.text)?o.text.length:1)*zt.options._parseFont(o).lineHeight+2*o.padding,e.width=n.width=p?e.maxWidth:t,e.height=n.height=p?t:e.maxHeight):e.width=n.width=e.height=n.height=0},afterFit:Qp,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,o=t.options;if(o.display){var n,p,b,M=zt.options._parseFont(o),z=M.lineHeight,r=z/2+o.padding,c=0,i=t.top,a=t.left,O=t.bottom,s=t.right;e.fillStyle=zt.valueOrDefault(o.fontColor,Q.global.defaultFontColor),e.font=M.string,t.isHorizontal()?(p=a+(s-a)/2,b=i+r,n=s-a):(p="left"===o.position?a+r:s-r,b=i+(O-i)/2,n=O-i,c=Math.PI*("left"===o.position?-.5:.5)),e.save(),e.translate(p,b),e.rotate(c),e.textAlign="center",e.textBaseline="middle";var l=o.text;if(zt.isArray(l))for(var d=0,u=0;u0&&e-1 in t)}m.fn=m.prototype={jquery:g,constructor:m,length:0,toArray:function(){return z.call(this)},get:function(t){return null==t?z.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=m.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return m.each(this,t)},map:function(t){return this.pushStack(m.map(this,(function(e,o){return t.call(e,o,e)})))},slice:function(){return this.pushStack(z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(m.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(m.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,o=+t+(t<0?e:0);return this.pushStack(o>=0&&o+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),U=new RegExp(k+"|>"),V=new RegExp(P),$=new RegExp("^"+E+"$"),Y={ID:new RegExp("^#("+E+")"),CLASS:new RegExp("^\\.("+E+")"),TAG:new RegExp("^("+E+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ot=function(t,e){var o="0x"+t.slice(1)-65536;return e||(o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},bt=function(){O()},Mt=ht((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{w.apply(_=T.call(W.childNodes),W.childNodes),_[W.childNodes.length].nodeType}catch(t){w={apply:_.length?function(t,e){x.apply(t,T.call(e))}:function(t,e){for(var o=t.length,n=0;t[o++]=e[n++];);t.length=o-1}}}function zt(t,e,n,p){var b,z,c,i,a,l,A,f=e&&e.ownerDocument,W=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==W&&9!==W&&11!==W)return n;if(!p&&(O(e),e=e||s,d)){if(11!==W&&(a=Z.exec(t)))if(b=a[1]){if(9===W){if(!(c=e.getElementById(b)))return n;if(c.id===b)return n.push(c),n}else if(f&&(c=f.getElementById(b))&&q(e,c)&&c.id===b)return n.push(c),n}else{if(a[2])return w.apply(n,e.getElementsByTagName(t)),n;if((b=a[3])&&o.getElementsByClassName&&e.getElementsByClassName)return w.apply(n,e.getElementsByClassName(b)),n}if(o.qsa&&!B[t+" "]&&(!u||!u.test(t))&&(1!==W||"object"!==e.nodeName.toLowerCase())){if(A=t,f=e,1===W&&(U.test(t)||H.test(t))){for((f=tt.test(t)&&At(e.parentNode)||e)===e&&o.scope||((i=e.getAttribute("id"))?i=i.replace(nt,pt):e.setAttribute("id",i=h)),z=(l=M(t)).length;z--;)l[z]=(i?"#"+i:":scope")+" "+qt(l[z]);A=l.join(",")}try{return w.apply(n,f.querySelectorAll(A)),n}catch(e){B(t,!0)}finally{i===h&&e.removeAttribute("id")}}}return r(t.replace(I,"$1"),e,n,p)}function rt(){var t=[];return function e(o,p){return t.push(o+" ")>n.cacheLength&&delete e[t.shift()],e[o+" "]=p}}function ct(t){return t[h]=!0,t}function it(t){var e=s.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var o=t.split("|"),p=o.length;p--;)n.attrHandle[o[p]]=e}function Ot(t,e){var o=e&&t,n=o&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(o)for(;o=o.nextSibling;)if(o===e)return-1;return t?1:-1}function st(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function lt(t){return function(e){var o=e.nodeName.toLowerCase();return("input"===o||"button"===o)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Mt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ut(t){return ct((function(e){return e=+e,ct((function(o,n){for(var p,b=t([],o.length,e),M=b.length;M--;)o[p=b[M]]&&(o[p]=!(n[p]=o[p]))}))}))}function At(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in o=zt.support={},b=zt.isXML=function(t){var e=t&&t.namespaceURI,o=t&&(t.ownerDocument||t).documentElement;return!G.test(e||o&&o.nodeName||"HTML")},O=zt.setDocument=function(t){var e,p,M=t?t.ownerDocument||t:W;return M!=s&&9===M.nodeType&&M.documentElement?(l=(s=M).documentElement,d=!b(s),W!=s&&(p=s.defaultView)&&p.top!==p&&(p.addEventListener?p.addEventListener("unload",bt,!1):p.attachEvent&&p.attachEvent("onunload",bt)),o.scope=it((function(t){return l.appendChild(t).appendChild(s.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),o.attributes=it((function(t){return t.className="i",!t.getAttribute("className")})),o.getElementsByTagName=it((function(t){return t.appendChild(s.createComment("")),!t.getElementsByTagName("*").length})),o.getElementsByClassName=Q.test(s.getElementsByClassName),o.getById=it((function(t){return l.appendChild(t).id=h,!s.getElementsByName||!s.getElementsByName(h).length})),o.getById?(n.filter.ID=function(t){var e=t.replace(et,ot);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var o=e.getElementById(t);return o?[o]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,ot);return function(t){var o=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return o&&o.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var o,n,p,b=e.getElementById(t);if(b){if((o=b.getAttributeNode("id"))&&o.value===t)return[b];for(p=e.getElementsByName(t),n=0;b=p[n++];)if((o=b.getAttributeNode("id"))&&o.value===t)return[b]}return[]}}),n.find.TAG=o.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):o.qsa?e.querySelectorAll(t):void 0}:function(t,e){var o,n=[],p=0,b=e.getElementsByTagName(t);if("*"===t){for(;o=b[p++];)1===o.nodeType&&n.push(o);return n}return b},n.find.CLASS=o.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},A=[],u=[],(o.qsa=Q.test(s.querySelectorAll))&&(it((function(t){var e;l.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&u.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||u.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+S+")"),t.querySelectorAll("[id~="+h+"-]").length||u.push("~="),(e=s.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||u.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||u.push(":checked"),t.querySelectorAll("a#"+h+"+*").length||u.push(".#.+[+~]"),t.querySelectorAll("\\\f"),u.push("[\\r\\n\\f]")})),it((function(t){t.innerHTML="";var e=s.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&u.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&u.push(":enabled",":disabled"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&u.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),u.push(",.*:")}))),(o.matchesSelector=Q.test(f=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&it((function(t){o.disconnectedMatch=f.call(t,"*"),f.call(t,"[s!='']:x"),A.push("!=",P)})),u=u.length&&new RegExp(u.join("|")),A=A.length&&new RegExp(A.join("|")),e=Q.test(l.compareDocumentPosition),q=e||Q.test(l.contains)?function(t,e){var o=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(o.contains?o.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},L=e?function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!o.sortDetached&&e.compareDocumentPosition(t)===n?t==s||t.ownerDocument==W&&q(W,t)?-1:e==s||e.ownerDocument==W&&q(W,e)?1:i?C(i,t)-C(i,e):0:4&n?-1:1)}:function(t,e){if(t===e)return a=!0,0;var o,n=0,p=t.parentNode,b=e.parentNode,M=[t],z=[e];if(!p||!b)return t==s?-1:e==s?1:p?-1:b?1:i?C(i,t)-C(i,e):0;if(p===b)return Ot(t,e);for(o=t;o=o.parentNode;)M.unshift(o);for(o=e;o=o.parentNode;)z.unshift(o);for(;M[n]===z[n];)n++;return n?Ot(M[n],z[n]):M[n]==W?-1:z[n]==W?1:0},s):s},zt.matches=function(t,e){return zt(t,null,null,e)},zt.matchesSelector=function(t,e){if(O(t),o.matchesSelector&&d&&!B[e+" "]&&(!A||!A.test(e))&&(!u||!u.test(e)))try{var n=f.call(t,e);if(n||o.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){B(e,!0)}return zt(e,s,null,[t]).length>0},zt.contains=function(t,e){return(t.ownerDocument||t)!=s&&O(t),q(t,e)},zt.attr=function(t,e){(t.ownerDocument||t)!=s&&O(t);var p=n.attrHandle[e.toLowerCase()],b=p&&X.call(n.attrHandle,e.toLowerCase())?p(t,e,!d):void 0;return void 0!==b?b:o.attributes||!d?t.getAttribute(e):(b=t.getAttributeNode(e))&&b.specified?b.value:null},zt.escape=function(t){return(t+"").replace(nt,pt)},zt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},zt.uniqueSort=function(t){var e,n=[],p=0,b=0;if(a=!o.detectDuplicates,i=!o.sortStable&&t.slice(0),t.sort(L),a){for(;e=t[b++];)e===t[b]&&(p=n.push(b));for(;p--;)t.splice(n[p],1)}return i=null,t},p=zt.getText=function(t){var e,o="",n=0,b=t.nodeType;if(b){if(1===b||9===b||11===b){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)o+=p(t)}else if(3===b||4===b)return t.nodeValue}else for(;e=t[n++];)o+=p(e);return o},n=zt.selectors={cacheLength:50,createPseudo:ct,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,ot),t[3]=(t[3]||t[4]||t[5]||"").replace(et,ot),"~="===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]||zt.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]&&zt.error(t[0]),t},PSEUDO:function(t){var e,o=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":o&&V.test(o)&&(e=M(o,!0))&&(e=o.indexOf(")",o.length-e)-o.length)&&(t[0]=t[0].slice(0,e),t[2]=o.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,ot).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=m[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+k+"|$)"))&&m(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,o){return function(n){var p=zt.attr(n,t);return null==p?"!="===e:!e||(p+="","="===e?p===o:"!="===e?p!==o:"^="===e?o&&0===p.indexOf(o):"*="===e?o&&p.indexOf(o)>-1:"$="===e?o&&p.slice(-o.length)===o:"~="===e?(" "+p.replace(j," ")+" ").indexOf(o)>-1:"|="===e&&(p===o||p.slice(0,o.length+1)===o+"-"))}},CHILD:function(t,e,o,n,p){var b="nth"!==t.slice(0,3),M="last"!==t.slice(-4),z="of-type"===e;return 1===n&&0===p?function(t){return!!t.parentNode}:function(e,o,r){var c,i,a,O,s,l,d=b!==M?"nextSibling":"previousSibling",u=e.parentNode,A=z&&e.nodeName.toLowerCase(),f=!r&&!z,q=!1;if(u){if(b){for(;d;){for(O=e;O=O[d];)if(z?O.nodeName.toLowerCase()===A:1===O.nodeType)return!1;l=d="only"===t&&!l&&"nextSibling"}return!0}if(l=[M?u.firstChild:u.lastChild],M&&f){for(q=(s=(c=(i=(a=(O=u)[h]||(O[h]={}))[O.uniqueID]||(a[O.uniqueID]={}))[t]||[])[0]===v&&c[1])&&c[2],O=s&&u.childNodes[s];O=++s&&O&&O[d]||(q=s=0)||l.pop();)if(1===O.nodeType&&++q&&O===e){i[t]=[v,s,q];break}}else if(f&&(q=s=(c=(i=(a=(O=e)[h]||(O[h]={}))[O.uniqueID]||(a[O.uniqueID]={}))[t]||[])[0]===v&&c[1]),!1===q)for(;(O=++s&&O&&O[d]||(q=s=0)||l.pop())&&((z?O.nodeName.toLowerCase()!==A:1!==O.nodeType)||!++q||(f&&((i=(a=O[h]||(O[h]={}))[O.uniqueID]||(a[O.uniqueID]={}))[t]=[v,q]),O!==e)););return(q-=p)===n||q%n==0&&q/n>=0}}},PSEUDO:function(t,e){var o,p=n.pseudos[t]||n.setFilters[t.toLowerCase()]||zt.error("unsupported pseudo: "+t);return p[h]?p(e):p.length>1?(o=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,o){for(var n,b=p(t,e),M=b.length;M--;)t[n=C(t,b[M])]=!(o[n]=b[M])})):function(t){return p(t,0,o)}):p}},pseudos:{not:ct((function(t){var e=[],o=[],n=z(t.replace(I,"$1"));return n[h]?ct((function(t,e,o,p){for(var b,M=n(t,null,p,[]),z=t.length;z--;)(b=M[z])&&(t[z]=!(e[z]=b))})):function(t,p,b){return e[0]=t,n(e,null,b,o),e[0]=null,!o.pop()}})),has:ct((function(t){return function(e){return zt(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,ot),function(e){return(e.textContent||p(e)).indexOf(t)>-1}})),lang:ct((function(t){return $.test(t||"")||zt.error("unsupported lang: "+t),t=t.replace(et,ot).toLowerCase(),function(e){var o;do{if(o=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(o=o.toLowerCase())===t||0===o.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var o=t.location&&t.location.hash;return o&&o.slice(1)===e.id},root:function(t){return t===l},focus:function(t){return t===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!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!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return J.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:ut((function(){return[0]})),last:ut((function(t,e){return[e-1]})),eq:ut((function(t,e,o){return[o<0?o+e:o]})),even:ut((function(t,e){for(var o=0;oe?e:o;--n>=0;)t.push(n);return t})),gt:ut((function(t,e,o){for(var n=o<0?o+e:o;++n1?function(e,o,n){for(var p=t.length;p--;)if(!t[p](e,o,n))return!1;return!0}:t[0]}function vt(t,e,o,n,p){for(var b,M=[],z=0,r=t.length,c=null!=e;z-1&&(b[c]=!(M[c]=a))}}else A=vt(A===M?A.splice(l,A.length):A),p?p(null,M,A,r):w.apply(M,A)}))}function mt(t){for(var e,o,p,b=t.length,M=n.relative[t[0].type],z=M||n.relative[" "],r=M?1:0,i=ht((function(t){return t===e}),z,!0),a=ht((function(t){return C(e,t)>-1}),z,!0),O=[function(t,o,n){var p=!M&&(n||o!==c)||((e=o).nodeType?i(t,o,n):a(t,o,n));return e=null,p}];r1&&Wt(O),r>1&&qt(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(I,"$1"),o,r0,p=t.length>0,b=function(b,M,z,r,i){var a,l,u,A=0,f="0",q=b&&[],h=[],W=c,g=b||p&&n.find.TAG("*",i),m=v+=null==W?1:Math.random()||.1,R=g.length;for(i&&(c=M==s||M||i);f!==R&&null!=(a=g[f]);f++){if(p&&a){for(l=0,M||a.ownerDocument==s||(O(a),z=!d);u=t[l++];)if(u(a,M||s,z)){r.push(a);break}i&&(v=m)}o&&((a=!u&&a)&&A--,b&&q.push(a))}if(A+=f,o&&f!==A){for(l=0;u=e[l++];)u(q,h,M,z);if(b){if(A>0)for(;f--;)q[f]||h[f]||(h[f]=N.call(r));h=vt(h)}w.apply(r,h),i&&!b&&h.length>0&&A+e.length>1&&zt.uniqueSort(r)}return i&&(v=m,c=W),q};return o?ct(b):b}(b,p)),z.selector=t}return z},r=zt.select=function(t,e,o,p){var b,r,c,i,a,O="function"==typeof t&&t,s=!p&&M(t=O.selector||t);if(o=o||[],1===s.length){if((r=s[0]=s[0].slice(0)).length>2&&"ID"===(c=r[0]).type&&9===e.nodeType&&d&&n.relative[r[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,ot),e)||[])[0]))return o;O&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(b=Y.needsContext.test(t)?0:r.length;b--&&(c=r[b],!n.relative[i=c.type]);)if((a=n.find[i])&&(p=a(c.matches[0].replace(et,ot),tt.test(r[0].type)&&At(e.parentNode)||e))){if(r.splice(b,1),!(t=p.length&&qt(r)))return w.apply(o,p),o;break}}return(O||z(t,s))(p,e,!d,o,!e||tt.test(t)&&At(e.parentNode)||e),o},o.sortStable=h.split("").sort(L).join("")===h,o.detectDuplicates=!!a,O(),o.sortDetached=it((function(t){return 1&t.compareDocumentPosition(s.createElement("fieldset"))})),it((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||at("type|href|height|width",(function(t,e,o){if(!o)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),o.attributes&&it((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||at("value",(function(t,e,o){if(!o&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),it((function(t){return null==t.getAttribute("disabled")}))||at(S,(function(t,e,o){var n;if(!o)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),zt}(n);m.find=y,m.expr=y.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=y.uniqueSort,m.text=y.getText,m.isXMLDoc=y.isXML,m.contains=y.contains,m.escapeSelector=y.escape;var B=function(t,e,o){for(var n=[],p=void 0!==o;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(p&&m(t).is(o))break;n.push(t)}return n},L=function(t,e){for(var o=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&o.push(t);return o},X=m.expr.match.needsContext;function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function x(t,e,o){return A(e)?m.grep(t,(function(t,n){return!!e.call(t,n,t)!==o})):e.nodeType?m.grep(t,(function(t){return t===e!==o})):"string"!=typeof e?m.grep(t,(function(t){return i.call(e,t)>-1!==o})):m.filter(e,t,o)}m.filter=function(t,e,o){var n=e[0];return o&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?m.find.matchesSelector(n,t)?[n]:[]:m.find.matches(t,m.grep(e,(function(t){return 1===t.nodeType})))},m.fn.extend({find:function(t){var e,o,n=this.length,p=this;if("string"!=typeof t)return this.pushStack(m(t).filter((function(){for(e=0;e1?m.uniqueSort(o):o},filter:function(t){return this.pushStack(x(this,t||[],!1))},not:function(t){return this.pushStack(x(this,t||[],!0))},is:function(t){return!!x(this,"string"==typeof t&&X.test(t)?m(t):t||[],!1).length}});var w,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(m.fn.init=function(t,e,o){var n,p;if(!t)return this;if(o=o||w,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||o).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof m?e[0]:e,m.merge(this,m.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:q,!0)),N.test(n[1])&&m.isPlainObject(e))for(n in e)A(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(p=q.getElementById(n[2]))&&(this[0]=p,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):A(t)?void 0!==o.ready?o.ready(t):t(m):m.makeArray(t,this)}).prototype=m.fn,w=m(q);var C=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function k(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}m.fn.extend({has:function(t){var e=m(t,this),o=e.length;return this.filter((function(){for(var t=0;t-1:1===o.nodeType&&m.find.matchesSelector(o,t))){b.push(o);break}return this.pushStack(b.length>1?m.uniqueSort(b):b)},index:function(t){return t?"string"==typeof t?i.call(m(t),this[0]):i.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),m.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return B(t,"parentNode")},parentsUntil:function(t,e,o){return B(t,"parentNode",o)},next:function(t){return k(t,"nextSibling")},prev:function(t){return k(t,"previousSibling")},nextAll:function(t){return B(t,"nextSibling")},prevAll:function(t){return B(t,"previousSibling")},nextUntil:function(t,e,o){return B(t,"nextSibling",o)},prevUntil:function(t,e,o){return B(t,"previousSibling",o)},siblings:function(t){return L((t.parentNode||{}).firstChild,t)},children:function(t){return L(t.firstChild)},contents:function(t){return null!=t.contentDocument&&M(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),m.merge([],t.childNodes))}},(function(t,e){m.fn[t]=function(o,n){var p=m.map(this,e,o);return"Until"!==t.slice(-5)&&(n=o),n&&"string"==typeof n&&(p=m.filter(n,p)),this.length>1&&(S[t]||m.uniqueSort(p),C.test(t)&&p.reverse()),this.pushStack(p)}}));var E=/[^\x20\t\r\n\f]+/g;function D(t){return t}function P(t){throw t}function j(t,e,o,n){var p;try{t&&A(p=t.promise)?p.call(t).done(e).fail(o):t&&A(p=t.then)?p.call(t,e,o):e.apply(void 0,[t].slice(n))}catch(t){o.apply(void 0,[t])}}m.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return m.each(t.match(E)||[],(function(t,o){e[o]=!0})),e}(t):m.extend({},t);var e,o,n,p,b=[],M=[],z=-1,r=function(){for(p=p||t.once,n=e=!0;M.length;z=-1)for(o=M.shift();++z-1;)b.splice(o,1),o<=z&&z--})),this},has:function(t){return t?m.inArray(t,b)>-1:b.length>0},empty:function(){return b&&(b=[]),this},disable:function(){return p=M=[],b=o="",this},disabled:function(){return!b},lock:function(){return p=M=[],o||e||(b=o=""),this},locked:function(){return!!p},fireWith:function(t,o){return p||(o=[t,(o=o||[]).slice?o.slice():o],M.push(o),e||r()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},m.extend({Deferred:function(t){var e=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],o="pending",p={state:function(){return o},always:function(){return b.done(arguments).fail(arguments),this},catch:function(t){return p.then(null,t)},pipe:function(){var t=arguments;return m.Deferred((function(o){m.each(e,(function(e,n){var p=A(t[n[4]])&&t[n[4]];b[n[1]]((function(){var t=p&&p.apply(this,arguments);t&&A(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[n[0]+"With"](this,p?[t]:arguments)}))})),t=null})).promise()},then:function(t,o,p){var b=0;function M(t,e,o,p){return function(){var z=this,r=arguments,c=function(){var n,c;if(!(t=b&&(o!==P&&(z=void 0,r=[n]),e.rejectWith(z,r))}};t?i():(m.Deferred.getStackHook&&(i.stackTrace=m.Deferred.getStackHook()),n.setTimeout(i))}}return m.Deferred((function(n){e[0][3].add(M(0,n,A(p)?p:D,n.notifyWith)),e[1][3].add(M(0,n,A(t)?t:D)),e[2][3].add(M(0,n,A(o)?o:P))})).promise()},promise:function(t){return null!=t?m.extend(t,p):p}},b={};return m.each(e,(function(t,n){var M=n[2],z=n[5];p[n[1]]=M.add,z&&M.add((function(){o=z}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),M.add(n[3].fire),b[n[0]]=function(){return b[n[0]+"With"](this===b?void 0:this,arguments),this},b[n[0]+"With"]=M.fireWith})),p.promise(b),t&&t.call(b,b),b},when:function(t){var e=arguments.length,o=e,n=Array(o),p=z.call(arguments),b=m.Deferred(),M=function(t){return function(o){n[t]=this,p[t]=arguments.length>1?z.call(arguments):o,--e||b.resolveWith(n,p)}};if(e<=1&&(j(t,b.done(M(o)).resolve,b.reject,!e),"pending"===b.state()||A(p[o]&&p[o].then)))return b.then();for(;o--;)j(p[o],M(o),b.reject);return b.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&I.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},m.readyException=function(t){n.setTimeout((function(){throw t}))};var F=m.Deferred();function H(){q.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),m.ready()}m.fn.ready=function(t){return F.then(t).catch((function(t){m.readyException(t)})),this},m.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==t&&--m.readyWait>0||F.resolveWith(q,[m]))}}),m.ready.then=F.then,"complete"===q.readyState||"loading"!==q.readyState&&!q.documentElement.doScroll?n.setTimeout(m.ready):(q.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var U=function(t,e,o,n,p,b,M){var z=0,r=t.length,c=null==o;if("object"===v(o))for(z in p=!0,o)U(t,e,z,o[z],!0,b,M);else if(void 0!==n&&(p=!0,A(n)||(M=!0),c&&(M?(e.call(t,n),e=null):(c=e,e=function(t,e,o){return c.call(m(t),o)})),e))for(;z1,null,!0)},removeData:function(t){return this.each((function(){Z.remove(this,t)}))}}),m.extend({queue:function(t,e,o){var n;if(t)return e=(e||"fx")+"queue",n=Q.get(t,e),o&&(!n||Array.isArray(o)?n=Q.access(t,e,m.makeArray(o)):n.push(o)),n||[]},dequeue:function(t,e){e=e||"fx";var o=m.queue(t,e),n=o.length,p=o.shift(),b=m._queueHooks(t,e);"inprogress"===p&&(p=o.shift(),n--),p&&("fx"===e&&o.unshift("inprogress"),delete b.stop,p.call(t,(function(){m.dequeue(t,e)}),b)),!n&&b&&b.empty.fire()},_queueHooks:function(t,e){var o=e+"queueHooks";return Q.get(t,o)||Q.access(t,o,{empty:m.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",o])}))})}}),m.fn.extend({queue:function(t,e){var o=2;return"string"!=typeof t&&(e=t,t="fx",o--),arguments.length\x20\t\r\n\f]*)/i,ft=/^$|^module$|\/(?:java|ecma)script/i;lt=q.createDocumentFragment().appendChild(q.createElement("div")),(dt=q.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),lt.appendChild(dt),u.checkClone=lt.cloneNode(!0).cloneNode(!0).lastChild.checked,lt.innerHTML="",u.noCloneChecked=!!lt.cloneNode(!0).lastChild.defaultValue,lt.innerHTML="",u.option=!!lt.lastChild;var qt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ht(t,e){var o;return o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?m.merge([t],o):o}function Wt(t,e){for(var o=0,n=t.length;o",""]);var vt=/<|&#?\w+;/;function gt(t,e,o,n,p){for(var b,M,z,r,c,i,a=e.createDocumentFragment(),O=[],s=0,l=t.length;s-1)p&&p.push(b);else if(c=zt(b),M=ht(a.appendChild(b),"script"),c&&Wt(M),o)for(i=0;b=M[i++];)ft.test(b.type||"")&&o.push(b);return a}var mt=/^([^.]*)(?:\.(.+)|)/;function Rt(){return!0}function yt(){return!1}function Bt(t,e){return t===function(){try{return q.activeElement}catch(t){}}()==("focus"===e)}function Lt(t,e,o,n,p,b){var M,z;if("object"==typeof e){for(z in"string"!=typeof o&&(n=n||o,o=void 0),e)Lt(t,z,o,n,e[z],b);return t}if(null==n&&null==p?(p=o,n=o=void 0):null==p&&("string"==typeof o?(p=n,n=void 0):(p=n,n=o,o=void 0)),!1===p)p=yt;else if(!p)return t;return 1===b&&(M=p,p=function(t){return m().off(t),M.apply(this,arguments)},p.guid=M.guid||(M.guid=m.guid++)),t.each((function(){m.event.add(this,e,p,n,o)}))}function Xt(t,e,o){o?(Q.set(t,e,!1),m.event.add(t,e,{namespace:!1,handler:function(t){var n,p,b=Q.get(this,e);if(1&t.isTrigger&&this[e]){if(b.length)(m.event.special[e]||{}).delegateType&&t.stopPropagation();else if(b=z.call(arguments),Q.set(this,e,b),n=o(this,e),this[e](),b!==(p=Q.get(this,e))||n?Q.set(this,e,!1):p={},b!==p)return t.stopImmediatePropagation(),t.preventDefault(),p&&p.value}else b.length&&(Q.set(this,e,{value:m.event.trigger(m.extend(b[0],m.Event.prototype),b.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,e)&&m.event.add(t,e,Rt)}m.event={global:{},add:function(t,e,o,n,p){var b,M,z,r,c,i,a,O,s,l,d,u=Q.get(t);if(J(t))for(o.handler&&(o=(b=o).handler,p=b.selector),p&&m.find.matchesSelector(Mt,p),o.guid||(o.guid=m.guid++),(r=u.events)||(r=u.events=Object.create(null)),(M=u.handle)||(M=u.handle=function(e){return void 0!==m&&m.event.triggered!==e.type?m.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(E)||[""]).length;c--;)s=d=(z=mt.exec(e[c])||[])[1],l=(z[2]||"").split(".").sort(),s&&(a=m.event.special[s]||{},s=(p?a.delegateType:a.bindType)||s,a=m.event.special[s]||{},i=m.extend({type:s,origType:d,data:n,handler:o,guid:o.guid,selector:p,needsContext:p&&m.expr.match.needsContext.test(p),namespace:l.join(".")},b),(O=r[s])||((O=r[s]=[]).delegateCount=0,a.setup&&!1!==a.setup.call(t,n,l,M)||t.addEventListener&&t.addEventListener(s,M)),a.add&&(a.add.call(t,i),i.handler.guid||(i.handler.guid=o.guid)),p?O.splice(O.delegateCount++,0,i):O.push(i),m.event.global[s]=!0)},remove:function(t,e,o,n,p){var b,M,z,r,c,i,a,O,s,l,d,u=Q.hasData(t)&&Q.get(t);if(u&&(r=u.events)){for(c=(e=(e||"").match(E)||[""]).length;c--;)if(s=d=(z=mt.exec(e[c])||[])[1],l=(z[2]||"").split(".").sort(),s){for(a=m.event.special[s]||{},O=r[s=(n?a.delegateType:a.bindType)||s]||[],z=z[2]&&new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"),M=b=O.length;b--;)i=O[b],!p&&d!==i.origType||o&&o.guid!==i.guid||z&&!z.test(i.namespace)||n&&n!==i.selector&&("**"!==n||!i.selector)||(O.splice(b,1),i.selector&&O.delegateCount--,a.remove&&a.remove.call(t,i));M&&!O.length&&(a.teardown&&!1!==a.teardown.call(t,l,u.handle)||m.removeEvent(t,s,u.handle),delete r[s])}else for(s in r)m.event.remove(t,s+e[c],o,n,!0);m.isEmptyObject(r)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,o,n,p,b,M,z=new Array(arguments.length),r=m.event.fix(t),c=(Q.get(this,"events")||Object.create(null))[r.type]||[],i=m.event.special[r.type]||{};for(z[0]=r,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(b=[],M={},o=0;o-1:m.find(p,this,null,[c]).length),M[p]&&b.push(n);b.length&&z.push({elem:c,handlers:b})}return c=this,r\s*$/g;function wt(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&m(t).children("tbody")[0]||t}function Tt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ct(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function St(t,e){var o,n,p,b,M,z;if(1===e.nodeType){if(Q.hasData(t)&&(z=Q.get(t).events))for(p in Q.remove(e,"handle events"),z)for(o=0,n=z[p].length;o1&&"string"==typeof l&&!u.checkClone&&Nt.test(l))return t.each((function(p){var b=t.eq(p);d&&(e[0]=l.call(this,p,b.html())),Et(b,e,o,n)}));if(O&&(b=(p=gt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===p.childNodes.length&&(p=b),b||n)){for(z=(M=m.map(ht(p,"script"),Tt)).length;a0&&Wt(M,!r&&ht(t,"script")),z},cleanData:function(t){for(var e,o,n,p=m.event.special,b=0;void 0!==(o=t[b]);b++)if(J(o)){if(e=o[Q.expando]){if(e.events)for(n in e.events)p[n]?m.event.remove(o,n):m.removeEvent(o,n,e.handle);o[Q.expando]=void 0}o[Z.expando]&&(o[Z.expando]=void 0)}}}),m.fn.extend({detach:function(t){return Dt(this,t,!0)},remove:function(t){return Dt(this,t)},text:function(t){return U(this,(function(t){return void 0===t?m.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 Et(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||wt(this,t).appendChild(t)}))},prepend:function(){return Et(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=wt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Et(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Et(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&&(m.cleanData(ht(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return m.clone(this,t,e)}))},html:function(t){return U(this,(function(t){var e=this[0]||{},o=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!_t.test(t)&&!qt[(At.exec(t)||["",""])[1].toLowerCase()]){t=m.htmlPrefilter(t);try{for(;o=0&&(r+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-b-r-z-.5))||0),r}function ne(t,e,o){var n=It(t),p=(!u.boxSizingReliable()||o)&&"border-box"===m.css(t,"boxSizing",!1,n),b=p,M=Vt(t,e,n),z="offset"+e[0].toUpperCase()+e.slice(1);if(Pt.test(M)){if(!o)return M;M="auto"}return(!u.boxSizingReliable()&&p||!u.reliableTrDimensions()&&_(t,"tr")||"auto"===M||!parseFloat(M)&&"inline"===m.css(t,"display",!1,n))&&t.getClientRects().length&&(p="border-box"===m.css(t,"boxSizing",!1,n),(b=z in t)&&(M=t[z])),(M=parseFloat(M)||0)+oe(t,e,o||(p?"border":"content"),b,n,M)+"px"}function pe(t,e,o,n,p){return new pe.prototype.init(t,e,o,n,p)}m.extend({cssHooks:{opacity:{get:function(t,e){if(e){var o=Vt(t,"opacity");return""===o?"1":o}}}},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,o,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var p,b,M,z=G(e),r=jt.test(e),c=t.style;if(r||(e=Kt(z)),M=m.cssHooks[e]||m.cssHooks[z],void 0===o)return M&&"get"in M&&void 0!==(p=M.get(t,!1,n))?p:c[e];"string"===(b=typeof o)&&(p=pt.exec(o))&&p[1]&&(o=it(t,e,p),b="number"),null!=o&&o==o&&("number"!==b||r||(o+=p&&p[3]||(m.cssNumber[z]?"":"px")),u.clearCloneStyle||""!==o||0!==e.indexOf("background")||(c[e]="inherit"),M&&"set"in M&&void 0===(o=M.set(t,o,n))||(r?c.setProperty(e,o):c[e]=o))}},css:function(t,e,o,n){var p,b,M,z=G(e);return jt.test(e)||(e=Kt(z)),(M=m.cssHooks[e]||m.cssHooks[z])&&"get"in M&&(p=M.get(t,!0,o)),void 0===p&&(p=Vt(t,e,n)),"normal"===p&&e in te&&(p=te[e]),""===o||o?(b=parseFloat(p),!0===o||isFinite(b)?b||0:p):p}}),m.each(["height","width"],(function(t,e){m.cssHooks[e]={get:function(t,o,n){if(o)return!Qt.test(m.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,n):Ft(t,Zt,(function(){return ne(t,e,n)}))},set:function(t,o,n){var p,b=It(t),M=!u.scrollboxSize()&&"absolute"===b.position,z=(M||n)&&"border-box"===m.css(t,"boxSizing",!1,b),r=n?oe(t,e,n,z,b):0;return z&&M&&(r-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(b[e])-oe(t,e,"border",!1,b)-.5)),r&&(p=pt.exec(o))&&"px"!==(p[3]||"px")&&(t.style[e]=o,o=m.css(t,e)),ee(0,o,r)}}})),m.cssHooks.marginLeft=$t(u.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Vt(t,"marginLeft"))||t.getBoundingClientRect().left-Ft(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),m.each({margin:"",padding:"",border:"Width"},(function(t,e){m.cssHooks[t+e]={expand:function(o){for(var n=0,p={},b="string"==typeof o?o.split(" "):[o];n<4;n++)p[t+bt[n]+e]=b[n]||b[n-2]||b[0];return p}},"margin"!==t&&(m.cssHooks[t+e].set=ee)})),m.fn.extend({css:function(t,e){return U(this,(function(t,e,o){var n,p,b={},M=0;if(Array.isArray(e)){for(n=It(t),p=e.length;M1)}}),m.Tween=pe,pe.prototype={constructor:pe,init:function(t,e,o,n,p,b){this.elem=t,this.prop=o,this.easing=p||m.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=b||(m.cssNumber[o]?"":"px")},cur:function(){var t=pe.propHooks[this.prop];return t&&t.get?t.get(this):pe.propHooks._default.get(this)},run:function(t){var e,o=pe.propHooks[this.prop];return this.options.duration?this.pos=e=m.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),o&&o.set?o.set(this):pe.propHooks._default.set(this),this}},pe.prototype.init.prototype=pe.prototype,pe.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=m.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){m.fx.step[t.prop]?m.fx.step[t.prop](t):1!==t.elem.nodeType||!m.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:m.style(t.elem,t.prop,t.now+t.unit)}}},pe.propHooks.scrollTop=pe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},m.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},m.fx=pe.prototype.init,m.fx.step={};var be,Me,ze=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function ce(){Me&&(!1===q.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ce):n.setTimeout(ce,m.fx.interval),m.fx.tick())}function ie(){return n.setTimeout((function(){be=void 0})),be=Date.now()}function ae(t,e){var o,n=0,p={height:t};for(e=e?1:0;n<4;n+=2-e)p["margin"+(o=bt[n])]=p["padding"+o]=t;return e&&(p.opacity=p.width=t),p}function Oe(t,e,o){for(var n,p=(se.tweeners[e]||[]).concat(se.tweeners["*"]),b=0,M=p.length;b1)},removeAttr:function(t){return this.each((function(){m.removeAttr(this,t)}))}}),m.extend({attr:function(t,e,o){var n,p,b=t.nodeType;if(3!==b&&8!==b&&2!==b)return void 0===t.getAttribute?m.prop(t,e,o):(1===b&&m.isXMLDoc(t)||(p=m.attrHooks[e.toLowerCase()]||(m.expr.match.bool.test(e)?le:void 0)),void 0!==o?null===o?void m.removeAttr(t,e):p&&"set"in p&&void 0!==(n=p.set(t,o,e))?n:(t.setAttribute(e,o+""),o):p&&"get"in p&&null!==(n=p.get(t,e))?n:null==(n=m.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!u.radioValue&&"radio"===e&&_(t,"input")){var o=t.value;return t.setAttribute("type",e),o&&(t.value=o),e}}}},removeAttr:function(t,e){var o,n=0,p=e&&e.match(E);if(p&&1===t.nodeType)for(;o=p[n++];)t.removeAttribute(o)}}),le={set:function(t,e,o){return!1===e?m.removeAttr(t,o):t.setAttribute(o,o),o}},m.each(m.expr.match.bool.source.match(/\w+/g),(function(t,e){var o=de[e]||m.find.attr;de[e]=function(t,e,n){var p,b,M=e.toLowerCase();return n||(b=de[M],de[M]=p,p=null!=o(t,e,n)?M:null,de[M]=b),p}}));var ue=/^(?:input|select|textarea|button)$/i,Ae=/^(?:a|area)$/i;function fe(t){return(t.match(E)||[]).join(" ")}function qe(t){return t.getAttribute&&t.getAttribute("class")||""}function he(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(E)||[]}m.fn.extend({prop:function(t,e){return U(this,m.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[m.propFix[t]||t]}))}}),m.extend({prop:function(t,e,o){var n,p,b=t.nodeType;if(3!==b&&8!==b&&2!==b)return 1===b&&m.isXMLDoc(t)||(e=m.propFix[e]||e,p=m.propHooks[e]),void 0!==o?p&&"set"in p&&void 0!==(n=p.set(t,o,e))?n:t[e]=o:p&&"get"in p&&null!==(n=p.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=m.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),u.optSelected||(m.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)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){m.propFix[this.toLowerCase()]=this})),m.fn.extend({addClass:function(t){var e,o,n,p,b,M;return A(t)?this.each((function(e){m(this).addClass(t.call(this,e,qe(this)))})):(e=he(t)).length?this.each((function(){if(n=qe(this),o=1===this.nodeType&&" "+fe(n)+" "){for(b=0;b-1;)o=o.replace(" "+p+" "," ");M=fe(o),n!==M&&this.setAttribute("class",M)}})):this:this.attr("class","")},toggleClass:function(t,e){var o,n,p,b,M=typeof t,z="string"===M||Array.isArray(t);return A(t)?this.each((function(o){m(this).toggleClass(t.call(this,o,qe(this),e),e)})):"boolean"==typeof e&&z?e?this.addClass(t):this.removeClass(t):(o=he(t),this.each((function(){if(z)for(b=m(this),p=0;p-1)return!0;return!1}});var We=/\r/g;m.fn.extend({val:function(t){var e,o,n,p=this[0];return arguments.length?(n=A(t),this.each((function(o){var p;1===this.nodeType&&(null==(p=n?t.call(this,o,m(this).val()):t)?p="":"number"==typeof p?p+="":Array.isArray(p)&&(p=m.map(p,(function(t){return null==t?"":t+""}))),(e=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,p,"value")||(this.value=p))}))):p?(e=m.valHooks[p.type]||m.valHooks[p.nodeName.toLowerCase()])&&"get"in e&&void 0!==(o=e.get(p,"value"))?o:"string"==typeof(o=p.value)?o.replace(We,""):null==o?"":o:void 0}}),m.extend({valHooks:{option:{get:function(t){var e=m.find.attr(t,"value");return null!=e?e:fe(m.text(t))}},select:{get:function(t){var e,o,n,p=t.options,b=t.selectedIndex,M="select-one"===t.type,z=M?null:[],r=M?b+1:p.length;for(n=b<0?r:M?b:0;n-1)&&(o=!0);return o||(t.selectedIndex=-1),b}}}}),m.each(["radio","checkbox"],(function(){m.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=m.inArray(m(t).val(),e)>-1}},u.checkOn||(m.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),u.focusin="onfocusin"in n;var ve=/^(?:focusinfocus|focusoutblur)$/,ge=function(t){t.stopPropagation()};m.extend(m.event,{trigger:function(t,e,o,p){var b,M,z,r,c,i,a,O,l=[o||q],d=s.call(t,"type")?t.type:t,u=s.call(t,"namespace")?t.namespace.split("."):[];if(M=O=z=o=o||q,3!==o.nodeType&&8!==o.nodeType&&!ve.test(d+m.event.triggered)&&(d.indexOf(".")>-1&&(u=d.split("."),d=u.shift(),u.sort()),c=d.indexOf(":")<0&&"on"+d,(t=t[m.expando]?t:new m.Event(d,"object"==typeof t&&t)).isTrigger=p?2:3,t.namespace=u.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:m.makeArray(e,[t]),a=m.event.special[d]||{},p||!a.trigger||!1!==a.trigger.apply(o,e))){if(!p&&!a.noBubble&&!f(o)){for(r=a.delegateType||d,ve.test(r+d)||(M=M.parentNode);M;M=M.parentNode)l.push(M),z=M;z===(o.ownerDocument||q)&&l.push(z.defaultView||z.parentWindow||n)}for(b=0;(M=l[b++])&&!t.isPropagationStopped();)O=M,t.type=b>1?r:a.bindType||d,(i=(Q.get(M,"events")||Object.create(null))[t.type]&&Q.get(M,"handle"))&&i.apply(M,e),(i=c&&M[c])&&i.apply&&J(M)&&(t.result=i.apply(M,e),!1===t.result&&t.preventDefault());return t.type=d,p||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(l.pop(),e)||!J(o)||c&&A(o[d])&&!f(o)&&((z=o[c])&&(o[c]=null),m.event.triggered=d,t.isPropagationStopped()&&O.addEventListener(d,ge),o[d](),t.isPropagationStopped()&&O.removeEventListener(d,ge),m.event.triggered=void 0,z&&(o[c]=z)),t.result}},simulate:function(t,e,o){var n=m.extend(new m.Event,o,{type:t,isSimulated:!0});m.event.trigger(n,null,e)}}),m.fn.extend({trigger:function(t,e){return this.each((function(){m.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var o=this[0];if(o)return m.event.trigger(t,e,o,!0)}}),u.focusin||m.each({focus:"focusin",blur:"focusout"},(function(t,e){var o=function(t){m.event.simulate(e,t.target,m.event.fix(t))};m.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,p=Q.access(n,e);p||n.addEventListener(t,o,!0),Q.access(n,e,(p||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,p=Q.access(n,e)-1;p?Q.access(n,e,p):(n.removeEventListener(t,o,!0),Q.remove(n,e))}}}));var me=n.location,Re={guid:Date.now()},ye=/\?/;m.parseXML=function(t){var e,o;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return o=e&&e.getElementsByTagName("parsererror")[0],e&&!o||m.error("Invalid XML: "+(o?m.map(o.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Be=/\[\]$/,Le=/\r?\n/g,Xe=/^(?:submit|button|image|reset|file)$/i,_e=/^(?:input|select|textarea|keygen)/i;function Ne(t,e,o,n){var p;if(Array.isArray(e))m.each(e,(function(e,p){o||Be.test(t)?n(t,p):Ne(t+"["+("object"==typeof p&&null!=p?e:"")+"]",p,o,n)}));else if(o||"object"!==v(e))n(t,e);else for(p in e)Ne(t+"["+p+"]",e[p],o,n)}m.param=function(t,e){var o,n=[],p=function(t,e){var o=A(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==o?"":o)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!m.isPlainObject(t))m.each(t,(function(){p(this.name,this.value)}));else for(o in t)Ne(o,t[o],e,p);return n.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=m.prop(this,"elements");return t?m.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!m(this).is(":disabled")&&_e.test(this.nodeName)&&!Xe.test(t)&&(this.checked||!ut.test(t))})).map((function(t,e){var o=m(this).val();return null==o?null:Array.isArray(o)?m.map(o,(function(t){return{name:e.name,value:t.replace(Le,"\r\n")}})):{name:e.name,value:o.replace(Le,"\r\n")}})).get()}});var xe=/%20/g,we=/#.*$/,Te=/([?&])_=[^&]*/,Ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,Se=/^(?:GET|HEAD)$/,ke=/^\/\//,Ee={},De={},Pe="*/".concat("*"),je=q.createElement("a");function Ie(t){return function(e,o){"string"!=typeof e&&(o=e,e="*");var n,p=0,b=e.toLowerCase().match(E)||[];if(A(o))for(;n=b[p++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(o)):(t[n]=t[n]||[]).push(o)}}function Fe(t,e,o,n){var p={},b=t===De;function M(z){var r;return p[z]=!0,m.each(t[z]||[],(function(t,z){var c=z(e,o,n);return"string"!=typeof c||b||p[c]?b?!(r=c):void 0:(e.dataTypes.unshift(c),M(c),!1)})),r}return M(e.dataTypes[0])||!p["*"]&&M("*")}function He(t,e){var o,n,p=m.ajaxSettings.flatOptions||{};for(o in e)void 0!==e[o]&&((p[o]?t:n||(n={}))[o]=e[o]);return n&&m.extend(!0,t,n),t}je.href=me.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:me.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,m.ajaxSettings),e):He(m.ajaxSettings,t)},ajaxPrefilter:Ie(Ee),ajaxTransport:Ie(De),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var o,p,b,M,z,r,c,i,a,O,s=m.ajaxSetup({},e),l=s.context||s,d=s.context&&(l.nodeType||l.jquery)?m(l):m.event,u=m.Deferred(),A=m.Callbacks("once memory"),f=s.statusCode||{},h={},W={},v="canceled",g={readyState:0,getResponseHeader:function(t){var e;if(c){if(!M)for(M={};e=Ce.exec(b);)M[e[1].toLowerCase()+" "]=(M[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=M[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?b:null},setRequestHeader:function(t,e){return null==c&&(t=W[t.toLowerCase()]=W[t.toLowerCase()]||t,h[t]=e),this},overrideMimeType:function(t){return null==c&&(s.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)g.always(t[g.status]);else for(e in t)f[e]=[f[e],t[e]];return this},abort:function(t){var e=t||v;return o&&o.abort(e),R(0,e),this}};if(u.promise(g),s.url=((t||s.url||me.href)+"").replace(ke,me.protocol+"//"),s.type=e.method||e.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(E)||[""],null==s.crossDomain){r=q.createElement("a");try{r.href=s.url,r.href=r.href,s.crossDomain=je.protocol+"//"+je.host!=r.protocol+"//"+r.host}catch(t){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=m.param(s.data,s.traditional)),Fe(Ee,s,e,g),c)return g;for(a in(i=m.event&&s.global)&&0==m.active++&&m.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!Se.test(s.type),p=s.url.replace(we,""),s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(xe,"+")):(O=s.url.slice(p.length),s.data&&(s.processData||"string"==typeof s.data)&&(p+=(ye.test(p)?"&":"?")+s.data,delete s.data),!1===s.cache&&(p=p.replace(Te,"$1"),O=(ye.test(p)?"&":"?")+"_="+Re.guid+++O),s.url=p+O),s.ifModified&&(m.lastModified[p]&&g.setRequestHeader("If-Modified-Since",m.lastModified[p]),m.etag[p]&&g.setRequestHeader("If-None-Match",m.etag[p])),(s.data&&s.hasContent&&!1!==s.contentType||e.contentType)&&g.setRequestHeader("Content-Type",s.contentType),g.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+Pe+"; q=0.01":""):s.accepts["*"]),s.headers)g.setRequestHeader(a,s.headers[a]);if(s.beforeSend&&(!1===s.beforeSend.call(l,g,s)||c))return g.abort();if(v="abort",A.add(s.complete),g.done(s.success),g.fail(s.error),o=Fe(De,s,e,g)){if(g.readyState=1,i&&d.trigger("ajaxSend",[g,s]),c)return g;s.async&&s.timeout>0&&(z=n.setTimeout((function(){g.abort("timeout")}),s.timeout));try{c=!1,o.send(h,R)}catch(t){if(c)throw t;R(-1,t)}}else R(-1,"No Transport");function R(t,e,M,r){var a,O,q,h,W,v=e;c||(c=!0,z&&n.clearTimeout(z),o=void 0,b=r||"",g.readyState=t>0?4:0,a=t>=200&&t<300||304===t,M&&(h=function(t,e,o){for(var n,p,b,M,z=t.contents,r=t.dataTypes;"*"===r[0];)r.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(p in z)if(z[p]&&z[p].test(n)){r.unshift(p);break}if(r[0]in o)b=r[0];else{for(p in o){if(!r[0]||t.converters[p+" "+r[0]]){b=p;break}M||(M=p)}b=b||M}if(b)return b!==r[0]&&r.unshift(b),o[b]}(s,g,M)),!a&&m.inArray("script",s.dataTypes)>-1&&m.inArray("json",s.dataTypes)<0&&(s.converters["text script"]=function(){}),h=function(t,e,o,n){var p,b,M,z,r,c={},i=t.dataTypes.slice();if(i[1])for(M in t.converters)c[M.toLowerCase()]=t.converters[M];for(b=i.shift();b;)if(t.responseFields[b]&&(o[t.responseFields[b]]=e),!r&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),r=b,b=i.shift())if("*"===b)b=r;else if("*"!==r&&r!==b){if(!(M=c[r+" "+b]||c["* "+b]))for(p in c)if((z=p.split(" "))[1]===b&&(M=c[r+" "+z[0]]||c["* "+z[0]])){!0===M?M=c[p]:!0!==c[p]&&(b=z[0],i.unshift(z[1]));break}if(!0!==M)if(M&&t.throws)e=M(e);else try{e=M(e)}catch(t){return{state:"parsererror",error:M?t:"No conversion from "+r+" to "+b}}}return{state:"success",data:e}}(s,h,g,a),a?(s.ifModified&&((W=g.getResponseHeader("Last-Modified"))&&(m.lastModified[p]=W),(W=g.getResponseHeader("etag"))&&(m.etag[p]=W)),204===t||"HEAD"===s.type?v="nocontent":304===t?v="notmodified":(v=h.state,O=h.data,a=!(q=h.error))):(q=v,!t&&v||(v="error",t<0&&(t=0))),g.status=t,g.statusText=(e||v)+"",a?u.resolveWith(l,[O,v,g]):u.rejectWith(l,[g,v,q]),g.statusCode(f),f=void 0,i&&d.trigger(a?"ajaxSuccess":"ajaxError",[g,s,a?O:q]),A.fireWith(l,[g,v]),i&&(d.trigger("ajaxComplete",[g,s]),--m.active||m.event.trigger("ajaxStop")))}return g},getJSON:function(t,e,o){return m.get(t,e,o,"json")},getScript:function(t,e){return m.get(t,void 0,e,"script")}}),m.each(["get","post"],(function(t,e){m[e]=function(t,o,n,p){return A(o)&&(p=p||n,n=o,o=void 0),m.ajax(m.extend({url:t,type:e,dataType:p,data:o,success:n},m.isPlainObject(t)&&t))}})),m.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),m._evalUrl=function(t,e,o){return m.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){m.globalEval(t,e,o)}})},m.fn.extend({wrapAll:function(t){var e;return this[0]&&(A(t)&&(t=t.call(this[0])),e=m(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return A(t)?this.each((function(e){m(this).wrapInner(t.call(this,e))})):this.each((function(){var e=m(this),o=e.contents();o.length?o.wrapAll(t):e.append(t)}))},wrap:function(t){var e=A(t);return this.each((function(o){m(this).wrapAll(e?t.call(this,o):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){m(this).replaceWith(this.childNodes)})),this}}),m.expr.pseudos.hidden=function(t){return!m.expr.pseudos.visible(t)},m.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ve=m.ajaxSettings.xhr();u.cors=!!Ve&&"withCredentials"in Ve,u.ajax=Ve=!!Ve,m.ajaxTransport((function(t){var e,o;if(u.cors||Ve&&!t.crossDomain)return{send:function(p,b){var M,z=t.xhr();if(z.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(M in t.xhrFields)z[M]=t.xhrFields[M];for(M in t.mimeType&&z.overrideMimeType&&z.overrideMimeType(t.mimeType),t.crossDomain||p["X-Requested-With"]||(p["X-Requested-With"]="XMLHttpRequest"),p)z.setRequestHeader(M,p[M]);e=function(t){return function(){e&&(e=o=z.onload=z.onerror=z.onabort=z.ontimeout=z.onreadystatechange=null,"abort"===t?z.abort():"error"===t?"number"!=typeof z.status?b(0,"error"):b(z.status,z.statusText):b(Ue[z.status]||z.status,z.statusText,"text"!==(z.responseType||"text")||"string"!=typeof z.responseText?{binary:z.response}:{text:z.responseText},z.getAllResponseHeaders()))}},z.onload=e(),o=z.onerror=z.ontimeout=e("error"),void 0!==z.onabort?z.onabort=o:z.onreadystatechange=function(){4===z.readyState&&n.setTimeout((function(){e&&o()}))},e=e("abort");try{z.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),m.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),m.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 m.globalEval(t),t}}}),m.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),m.ajaxTransport("script",(function(t){var e,o;if(t.crossDomain||t.scriptAttrs)return{send:function(n,p){e=m("