@acedatacloud/nexior 3.25.4 → 3.25.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/dist/assets/Auth-CJ0DaPHM.js +1 -0
  2. package/dist/assets/BotPlaceholder-CbNYjS1E.js +1 -0
  3. package/dist/assets/Callback-CB_2XSiA.js +1 -0
  4. package/dist/assets/Console-NwT2bGyI.js +1 -0
  5. package/dist/assets/Conversation-C5ZhOzsL.css +1 -0
  6. package/dist/assets/Conversation-CgUpOKXk.js +2 -0
  7. package/dist/assets/CopyToClipboard-ZLH7uqrY.js +1 -0
  8. package/dist/assets/Detail-Bd0gq1yC.js +1 -0
  9. package/dist/assets/EditArray-CJlPXh_Q.js +1 -0
  10. package/dist/assets/Extra-B6QX3VEK.js +1 -0
  11. package/dist/assets/FilePreview-DLsXfWXH.js +1 -0
  12. package/dist/assets/History-CJYU-Tmf.js +1 -0
  13. package/dist/assets/ImagePreview-DsZM4u3Y.js +1 -0
  14. package/dist/assets/ImageWrapper-DqojA33M.js +1 -0
  15. package/dist/assets/Index-B2o5W9u6.js +1 -0
  16. package/dist/assets/Index-BJygeqrX.js +1 -0
  17. package/dist/assets/Index-BNRXk1Rj.js +1 -0
  18. package/dist/assets/Index-BT_9uBF9.js +1 -0
  19. package/dist/assets/Index-BTe3niR4.js +1 -0
  20. package/dist/assets/Index-BtXmnr9E.js +1 -0
  21. package/dist/assets/Index-Bu4HVIld.js +1 -0
  22. package/dist/assets/Index-CEwpppRo.js +1 -0
  23. package/dist/assets/Index-CLVFxYyc.js +1 -0
  24. package/dist/assets/Index-CfArDmXT.js +1 -0
  25. package/dist/assets/Index-Crt1Y1Qh.js +1 -0
  26. package/dist/assets/Index-DHnc_KAQ.js +1 -0
  27. package/dist/assets/Index-DMbgfEC7.js +1 -0
  28. package/dist/assets/Index-VIyMnOKp.js +1 -0
  29. package/dist/assets/Index-hOJoQGFw.js +1 -0
  30. package/dist/assets/Index-qlOE81B4.js +1 -0
  31. package/dist/assets/Invitees-BL-KvLxZ.js +1 -0
  32. package/dist/assets/List-DVAPLnZ_.js +1 -0
  33. package/dist/assets/List-HGKe7w9p.js +1 -0
  34. package/dist/assets/List-j3lhFo7i.js +1 -0
  35. package/dist/assets/Login-C54AEkPD.js +1 -0
  36. package/dist/assets/Main-BHyj3G_S.js +1 -0
  37. package/dist/assets/Navigator-C4u93_mi.js +1 -0
  38. package/dist/assets/NoTasks-C4GBAEFK.js +1 -0
  39. package/dist/assets/Pagination-B7408PXm.js +1 -0
  40. package/dist/assets/ScrollList-CsMofi7R.js +1 -0
  41. package/dist/assets/Status-D9NZiT2g.js +1 -0
  42. package/dist/assets/Subscribe-CKCx3O2H.js +1 -0
  43. package/dist/assets/VideoPlayer-CUqP_b1_.js +1 -0
  44. package/dist/assets/distribution-BpIng5_3.js +1 -0
  45. package/dist/assets/index-B9SFMWwY.js +3 -0
  46. package/dist/assets/{index-vxVcmqZU.css → index-BCMAhGTb.css} +1 -1
  47. package/dist/assets/order-CwymXjrK.js +1 -0
  48. package/dist/assets/pagination-DjyMgG1D.js +1 -0
  49. package/dist/assets/price-Cw72dIAB.js +1 -0
  50. package/dist/assets/vendor-C8YexQz0.css +1 -0
  51. package/dist/assets/vendor-CdFdgkAf.js +662 -0
  52. package/dist/assets/vendor-axios-NIGUFBhG.js +6 -0
  53. package/dist/assets/vendor-chart-CCwTaxpO.js +13 -0
  54. package/dist/assets/vendor-dayjs-DbiJaq7z.js +1 -0
  55. package/dist/assets/vendor-element-plus-BFf0lqAh.js +6 -0
  56. package/dist/assets/vendor-highlight-B6IKYKoD.js +5 -0
  57. package/dist/assets/vendor-highlight-t6bI8mSi.css +1 -0
  58. package/dist/assets/vendor-katex-CIur2ABi.css +1 -0
  59. package/dist/assets/vendor-katex-DHBGsivc.js +261 -0
  60. package/dist/assets/vendor-vue-router-BTuxvTV5.js +5 -0
  61. package/dist/assets/vendor-vue-xzGp4vaJ.js +17 -0
  62. package/dist/index.html +11 -2
  63. package/package.json +1 -1
  64. package/dist/assets/Auth-BHNFFaW0.js +0 -1
  65. package/dist/assets/BotPlaceholder-X527oxpB.js +0 -1
  66. package/dist/assets/Callback-BwvM2Leh.js +0 -1
  67. package/dist/assets/Console-Co0hX4yW.js +0 -1
  68. package/dist/assets/Conversation-B-OZlC82.css +0 -1
  69. package/dist/assets/Conversation-QA7hKXys.js +0 -283
  70. package/dist/assets/CopyToClipboard-CIkwptVu.js +0 -1
  71. package/dist/assets/Detail-DschNOpf.js +0 -1
  72. package/dist/assets/EditArray-D6OZGcO-.js +0 -1
  73. package/dist/assets/Extra-5Iq9o04S.js +0 -1
  74. package/dist/assets/FilePreview-NHNFD0Lq.js +0 -1
  75. package/dist/assets/History-pwiuyUOc.js +0 -1
  76. package/dist/assets/ImagePreview-dRRztBTN.js +0 -1
  77. package/dist/assets/ImageWrapper-BOEqMoAZ.js +0 -1
  78. package/dist/assets/Index-8AhOD6eW.js +0 -1
  79. package/dist/assets/Index-BgIeGjY2.js +0 -1
  80. package/dist/assets/Index-BwZBZoCO.js +0 -1
  81. package/dist/assets/Index-C4OpOA5V.js +0 -1
  82. package/dist/assets/Index-CFtAbBiB.js +0 -1
  83. package/dist/assets/Index-COlN-eC-.js +0 -1
  84. package/dist/assets/Index-CmRfVRCL.js +0 -1
  85. package/dist/assets/Index-DEX8v4L9.js +0 -1
  86. package/dist/assets/Index-DLovrzIx.js +0 -1
  87. package/dist/assets/Index-DOT63mlR.js +0 -1
  88. package/dist/assets/Index-DeDHuYXP.js +0 -1
  89. package/dist/assets/Index-Dhb0KcdB.js +0 -1
  90. package/dist/assets/Index-PXHiibWZ.js +0 -1
  91. package/dist/assets/Index-VnMSXV_o.js +0 -1
  92. package/dist/assets/Index-_ElaLMG0.js +0 -1
  93. package/dist/assets/Index-fpQ_5d8o.js +0 -1
  94. package/dist/assets/Invitees-BMRcxvWX.js +0 -1
  95. package/dist/assets/List-B0dEnow9.js +0 -18
  96. package/dist/assets/List-DV0E4VwB.js +0 -1
  97. package/dist/assets/List-GKL_gIHW.js +0 -1
  98. package/dist/assets/Login-CipyYI2X.js +0 -1
  99. package/dist/assets/Main-Cdl_IZ7q.js +0 -1
  100. package/dist/assets/Navigator-BW4Fq1YT.js +0 -1
  101. package/dist/assets/NoTasks-CTLWrX9X.js +0 -1
  102. package/dist/assets/Pagination-CEhDRM0w.js +0 -1
  103. package/dist/assets/ScrollList-DJyagTd9.js +0 -1
  104. package/dist/assets/Status-DdGv5F_f.js +0 -1
  105. package/dist/assets/Subscribe-CQzRmtqj.js +0 -1
  106. package/dist/assets/VideoPlayer-Cc0aqBXp.js +0 -1
  107. package/dist/assets/_baseClone-Ds-s3IuL.js +0 -1
  108. package/dist/assets/_baseIteratee-CPuZRdwJ.js +0 -1
  109. package/dist/assets/_initCloneObject-B9BC83jE.js +0 -1
  110. package/dist/assets/ar-D1hnTQ2h.js +0 -1
  111. package/dist/assets/castArray-DhOK83j4.js +0 -1
  112. package/dist/assets/de-BZu7ZZ9y.js +0 -1
  113. package/dist/assets/debounce-BUHPvvRx.js +0 -1
  114. package/dist/assets/distribution-OPhlJ0iO.js +0 -1
  115. package/dist/assets/dropdown-CaEtFY5K.js +0 -1
  116. package/dist/assets/el-DJ93mLwP.js +0 -1
  117. package/dist/assets/es-Idilhmtq.js +0 -1
  118. package/dist/assets/fi-BhhlDzr_.js +0 -1
  119. package/dist/assets/fr-fyTGkfid.js +0 -1
  120. package/dist/assets/index-1DvQjuZj.js +0 -1
  121. package/dist/assets/index-26q3vWe3.js +0 -12
  122. package/dist/assets/index-2amtGE73.js +0 -1
  123. package/dist/assets/index-4xbTEHb4.js +0 -1
  124. package/dist/assets/index-B3SbvjbA.js +0 -1
  125. package/dist/assets/index-BRW1meHI.js +0 -1
  126. package/dist/assets/index-BVPDEl6k.js +0 -1
  127. package/dist/assets/index-BaT0jRk-.js +0 -1
  128. package/dist/assets/index-Bd52b9MQ.js +0 -1
  129. package/dist/assets/index-BmMTzT1e.js +0 -1
  130. package/dist/assets/index-C7z3Qnen.js +0 -1
  131. package/dist/assets/index-CDNBMXQ3.js +0 -14
  132. package/dist/assets/index-CDNsPXeD.js +0 -1
  133. package/dist/assets/index-CNtJ-qZ0.js +0 -1
  134. package/dist/assets/index-CSXF3X1e.js +0 -1
  135. package/dist/assets/index-CTL_q_Ls.js +0 -1
  136. package/dist/assets/index-CW8-s5uS.js +0 -1
  137. package/dist/assets/index-CyrG-q_g.js +0 -1
  138. package/dist/assets/index-D4jtulwF.js +0 -1
  139. package/dist/assets/index-DGxwm39f.js +0 -1
  140. package/dist/assets/index-DKQ8F7GC.js +0 -1
  141. package/dist/assets/index-DND3fxYf.js +0 -10
  142. package/dist/assets/index-DVU3OOIj.js +0 -1
  143. package/dist/assets/index-DW12D-0Y.js +0 -6
  144. package/dist/assets/index-OA9O6lVC.js +0 -638
  145. package/dist/assets/index-fTsXD2fu.js +0 -1
  146. package/dist/assets/index-i6VHNkjA.js +0 -1
  147. package/dist/assets/index-jczR9H1q.js +0 -1
  148. package/dist/assets/index-oXM3BzcC.js +0 -1
  149. package/dist/assets/index-r5W6hzzQ.js +0 -1
  150. package/dist/assets/index-vNo-DKgh.js +0 -1
  151. package/dist/assets/index.es-D3TSGwa1.js +0 -1
  152. package/dist/assets/isEqual-vZWfltqX.js +0 -1
  153. package/dist/assets/isPlainObject-DkP5CYDL.js +0 -1
  154. package/dist/assets/it-CLf6lrMi.js +0 -1
  155. package/dist/assets/ja-DFyNu3tl.js +0 -1
  156. package/dist/assets/ko-DUrUYy0R.js +0 -1
  157. package/dist/assets/order-DnqhjHpP.js +0 -1
  158. package/dist/assets/pagination-Bwva12lc.js +0 -1
  159. package/dist/assets/pl-By8ttK5W.js +0 -1
  160. package/dist/assets/price-DX6_QWGs.js +0 -1
  161. package/dist/assets/pt-iBE8V_rF.js +0 -1
  162. package/dist/assets/ru-a9O4dLvt.js +0 -1
  163. package/dist/assets/sr-BuqPpavQ.js +0 -1
  164. package/dist/assets/strings-CE5wx3lU.js +0 -1
  165. package/dist/assets/sv-CiSSmJ4h.js +0 -1
  166. package/dist/assets/typescript-D5kqm2pC.js +0 -1
  167. package/dist/assets/uk-Ci2KIGcW.js +0 -1
  168. package/dist/assets/use-form-item-CLxXgCpM.js +0 -1
  169. package/dist/assets/vue-plyr-BqJN4-Iw.css +0 -1
  170. package/dist/assets/vue-plyr-QZFBikSk.js +0 -2
  171. package/dist/assets/zh-cn-CnyULPxw.js +0 -1
  172. package/dist/assets/zh-tw-ZQmLUxJy.js +0 -1
@@ -0,0 +1,6 @@
1
+ function Ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ze}=Object.prototype,{getPrototypeOf:ue}=Object,{iterator:X,toStringTag:Ne}=Symbol,G=(e=>t=>{const n=Ze.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>G(t)===e),Q=e=>t=>typeof t===e,{isArray:D}=Array,q=Q("undefined");function H(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pe=C("ArrayBuffer");function Ye(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Pe(e.buffer),t}const et=Q("string"),A=Q("function"),Fe=Q("number"),I=e=>e!==null&&typeof e=="object",tt=e=>e===!0||e===!1,J=e=>{if(G(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ne in e)&&!(X in e)},nt=e=>{if(!I(e)||H(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},rt=C("Date"),st=C("File"),ot=C("Blob"),it=C("FileList"),at=e=>I(e)&&A(e.pipe),ct=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=G(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},lt=C("URLSearchParams"),[ut,ft,dt,pt]=["ReadableStream","Request","Response","Headers"].map(C),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),D(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(H(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function _e(e,t){if(H(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ue=e=>!q(e)&&e!==U;function se(){const{caseless:e}=Ue(this)&&this||{},t={},n=(r,s)=>{const o=e&&_e(t,s)||s;J(t[o])&&J(r)?t[o]=se(t[o],r):J(r)?t[o]=se({},r):D(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&M(arguments[r],n);return t}const mt=(e,t,n,{allOwnKeys:r}={})=>(M(t,(s,o)=>{n&&A(s)?e[o]=Ce(s,n):e[o]=s},{allOwnKeys:r}),e),yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Et=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!Fe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},St=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ue(Uint8Array)),gt=(e,t)=>{const r=(e&&e[X]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ot=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tt=C("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=C("RegExp"),Le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ct=e=>{Le(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return D(e)?r(e):r(String(e).split(t)),n},Pt=()=>{},Ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _t(e){return!!(e&&A(e.append)&&e[Ne]==="FormData"&&e[X])}const Ut=e=>{const t=new Array(10),n=(r,s)=>{if(I(r)){if(t.indexOf(r)>=0)return;if(H(r))return r;if(!("toJSON"in r)){t[s]=r;const o=D(r)?[]:{};return M(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Lt=C("AsyncFunction"),Bt=e=>e&&(I(e)||A(e))&&A(e.then)&&A(e.catch),Be=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:s,data:o})=>{s===U&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(U.postMessage)),Dt=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||Be,kt=e=>e!=null&&A(e[X]),a={isArray:D,isArrayBuffer:Pe,isBuffer:H,isFormData:ct,isArrayBufferView:Ye,isString:et,isNumber:Fe,isBoolean:tt,isObject:I,isPlainObject:J,isEmptyObject:nt,isReadableStream:ut,isRequest:ft,isResponse:dt,isHeaders:pt,isUndefined:q,isDate:rt,isFile:st,isBlob:ot,isRegExp:xt,isFunction:A,isStream:at,isURLSearchParams:lt,isTypedArray:St,isFileList:it,forEach:M,merge:se,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:G,kindOfTest:C,endsWith:Et,toArray:Rt,forEachEntry:gt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:Le,freezeMethods:Ct,toObjectSet:Nt,toCamelCase:At,noop:Pt,toFiniteNumber:Ft,findKey:_e,global:U,isContextDefined:Ue,isSpecCompliantForm:_t,toJSONObject:Ut,isAsyncFn:Lt,isThenable:Bt,setImmediate:Be,asap:Dt,isIterable:kt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const De=m.prototype,ke={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ke[e]={value:e}});Object.defineProperties(m,ke);Object.defineProperty(De,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(De);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const jt=null;function oe(e){return a.isPlainObject(e)||a.isArray(e)}function je(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,n){return e?e.concat(t).map(function(s,o){return s=je(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function qt(e){return a.isArray(e)&&!e.some(oe)}const Ht=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Z(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&qt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=je(y),w.forEach(function(g,P){!(a.isUndefined(g)||g===null)&&t.append(i===!0?me([y],P,o):i===null?y:y+"[]",l(g))}),!1}return oe(p)?!0:(t.append(me(h,y,o),l(p)),!1)}const d=[],b=Object.assign(Ht,{defaultVisitor:u,convertValue:l,isVisitable:oe});function R(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,S){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(S)?S.trim():S,y,b))===!0&&R(w,y?y.concat(S):[S])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return R(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function fe(e,t){this._pairs=[],e&&Z(e,this,t)}const qe=fe.prototype;qe.append=function(t,n){this._pairs.push([t,n])};qe.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function It(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||It;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new fe(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class be{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:fe,zt=typeof FormData<"u"?FormData:null,$t=typeof Blob<"u"?Blob:null,Jt={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:zt,Blob:$t},protocols:["http","https","file","blob","url","data"]},de=typeof window<"u"&&typeof document<"u",ie=typeof navigator=="object"&&navigator||void 0,Vt=de&&(!ie||["ReactNative","NativeScript","NS"].indexOf(ie.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=de&&window.location.href||"http://localhost",vt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:de,hasStandardBrowserEnv:Vt,hasStandardBrowserWebWorkerEnv:Wt,navigator:ie,origin:Kt},Symbol.toStringTag,{value:"Module"})),O={...vt,...Jt};function Xt(e,t){return Z(e,new O.classes.URLSearchParams,{visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Gt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Me(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Qt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Gt(r),s,n,0)}),n}return null}function Zt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const z={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Me(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Z(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Zt(t)):t}],transformResponse:[function(t){const n=this.transitional||z.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{z.headers[e]={}});const Yt=a.toObjectSet(["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"]),en=e=>{const t={};let n,r,s;return e&&e.split(`
2
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Yt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},we=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function V(e){return e===!1||e==null?e:a.isArray(e)?e.map(V):String(e)}function tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function te(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,l){const u=j(f);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(s,u);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||f]=V(c))}const i=(c,f)=>a.forEach(c,(l,u)=>o(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!nn(t))i(en(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||te(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||te(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||te(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=V(s),delete n[o];return}const c=t?rn(o):String(o).trim();c!==o&&delete n[o],n[c]=V(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[we]=this[we]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(sn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);function ne(e,t){const n=this||z,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ze(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function $e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function on(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function an(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[o];i||(i=l),n[s]=f,r[s]=l;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i<t)return;const R=u&&l-u;return R?Math.round(b*1e3/R):void 0}}function cn(e,t){let n=0,r=1e3/t,s,o;const i=(l,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?i(l,u):(s=l,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const K=(e,t,n=3)=>{let r=0;const s=an(50,250);return cn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,l=s(f),u=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Ee=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Re=e=>(...t)=>a.asap(()=>e(...t)),ln=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,un=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Je(e,t,n){let r=!fn(t);return e&&(r||n==!1)?dn(e,t):t}const Se=e=>e instanceof x?{...e}:e;function B(e,t){t=t||{};const n={};function r(l,u,d,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(l,u,d,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,d,b)}else return r(l,u,d,b)}function o(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,d)=>s(Se(l),Se(u),d,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const d=f[u]||s,b=d(e[u],t[u],u);a.isUndefined(b)&&d!==c||(n[u]=b)}),n}const Ve=e=>{const t=B({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=He(Je(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&ln(t.url))){const l=s&&o&&un.read(o);l&&i.set(s,l)}return t},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(n,r){const s=Ve(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=s,u,d,b,R,p;function y(){R&&R(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const g=x.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};$e(function(_){n(_),y()},function(_){r(_),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Ie;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),l&&([b,p]=K(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,R]=K(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(u=g=>{h&&(r(!g||g.type?new k(null,e,h):g),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const S=on(s.url);if(S&&O.protocols.indexOf(S)===-1){r(new m("Unsupported protocol "+S+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(l){if(!s){s=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof m?u:new k(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},yn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},bn=async function*(e,t){for await(const n of wn(e))yield*yn(n,t)},wn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ge=(e,t,n,r)=>{const s=bn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await s.next();if(l){c(),f.close();return}let d=u.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Y=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",We=Y&&typeof ReadableStream=="function",En=Y&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ke=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rn=We&&Ke(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oe=64*1024,ae=We&&Ke(()=>a.isReadableStream(new Response("").body)),v={stream:ae&&(e=>e.body)};Y&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!v[t]&&(v[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await En(e)).byteLength},gn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},On=Y&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:b}=Ve(e);l=l?(l+"").toLowerCase():"text";let R=mn([s,o&&o.toAbortSignal()],i),p;const y=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let h;try{if(f&&Rn&&n!=="get"&&n!=="head"&&(h=await gn(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),F;if(a.isFormData(r)&&(F=T.headers.get("content-type"))&&u.setContentType(F),T.body){const[_,$]=Ee(h,K(Re(f)));r=ge(T.body,Oe,_,$)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:R,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let S=await fetch(p,b);const g=ae&&(l==="stream"||l==="response");if(ae&&(c||g&&y)){const T={};["status","statusText","headers"].forEach(pe=>{T[pe]=S[pe]});const F=a.toFiniteNumber(S.headers.get("content-length")),[_,$]=c&&Ee(F,K(Re(c),!0))||[];S=new Response(ge(S.body,Oe,_,()=>{$&&$(),y&&y()}),T)}l=l||"text";let P=await v[a.findKey(v,l)||"text"](S,e);return!g&&y&&y(),await new Promise((T,F)=>{$e(T,F,{data:P,headers:x.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/Load failed|fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),ce={http:jt,xhr:hn,fetch:On};a.forEach(ce,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Te=e=>`- ${e}`,Tn=e=>a.isFunction(e)||e===null||e===!1,ve={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Tn(n)&&(r=ce[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
4
+ `+o.map(Te).join(`
5
+ `):" "+Te(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ce};function re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Ae(e){return re(e),e.headers=x.from(e.headers),e.data=ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ve.getAdapter(e.adapter||z.adapter)(e).then(function(r){return re(e),r.data=ne.call(e,e.transformResponse,r),r.headers=x.from(r.headers),r},function(r){return ze(r)||(re(e),r&&r.response&&(r.response.data=ne.call(e,e.transformResponse,r.response),r.response.headers=x.from(r.response.headers))),Promise.reject(r)})}const Xe="1.11.0",ee={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ee[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xe={};ee.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Xe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!xe[i]&&(xe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};ee.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function An(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const W={assertOptions:An,validators:ee},N=W.validators;let L=class{constructor(t){this.defaults=t||{},this.interceptors={request:new be,response:new be}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&W.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:W.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),W.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=x.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,d=0,b;if(!f){const p=[Ae.bind(this),void 0];for(p.unshift(...c),p.push(...l),b=p.length,u=Promise.resolve(n);d<b;)u=u.then(p[d++],p[d++]);return u}b=c.length;let R=n;for(d=0;d<b;){const p=c[d++],y=c[d++];try{R=p(R)}catch(h){y.call(this,h);break}}try{u=Ae.call(this,R)}catch(p){return Promise.reject(p)}for(d=0,b=l.length;d<b;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=B(this.defaults,t);const n=Je(t.baseURL,t.url,t.allowAbsoluteUrls);return He(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){L.prototype[t]=function(n,r){return this.request(B(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(B(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}L.prototype[t]=n(),L.prototype[t+"Form"]=n(!0)});let xn=class Ge{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ge(function(s){t=s}),cancel:t}}};function Cn(e){return function(n){return e.apply(null,n)}}function Nn(e){return a.isObject(e)&&e.isAxiosError===!0}const le={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(le).forEach(([e,t])=>{le[t]=e});function Qe(e){const t=new L(e),n=Ce(L.prototype.request,t);return a.extend(n,L.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(B(e,s))},n}const E=Qe(z);E.Axios=L;E.CanceledError=k;E.CancelToken=xn;E.isCancel=ze;E.VERSION=Xe;E.toFormData=Z;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=Cn;E.isAxiosError=Nn;E.mergeConfig=B;E.AxiosHeaders=x;E.formToJSON=e=>Me(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=ve.getAdapter;E.HttpStatusCode=le;E.default=E;const{Axios:_n,AxiosError:Un,CanceledError:Ln,isCancel:Bn,CancelToken:Dn,VERSION:kn,all:jn,Cancel:qn,isAxiosError:Hn,spread:In,toFormData:Mn,AxiosHeaders:zn,HttpStatusCode:$n,formToJSON:Jn,getAdapter:Vn,mergeConfig:Wn}=E;export{E as a};
@@ -0,0 +1,13 @@
1
+ import{C as Zi}from"./vendor-CdFdgkAf.js";import{f as Ji,s as ts,m as De,B as Vs,r as Ns,d as js,q as $s,b as Us,A as Oe,C as es,n as Ks}from"./vendor-vue-xzGp4vaJ.js";/*!
2
+ * Chart.js v4.5.1
3
+ * https://www.chartjs.org
4
+ * (c) 2025 Chart.js Contributors
5
+ * Released under the MIT License
6
+ */function tt(){}const Ys=(()=>{let i=0;return()=>i++})();function L(i){return i==null}function F(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function D(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function K(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function Q(i,t){return K(i)?i:t}function O(i,t){return typeof i>"u"?t:i}const Xs=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function I(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function T(i,t,e,s){let n,o,r;if(F(i))for(o=i.length,n=0;n<o;n++)t.call(e,i[n],n);else if(D(i))for(r=Object.keys(i),o=r.length,n=0;n<o;n++)t.call(e,i[r[n]],r[n])}function re(i,t){let e,s,n,o;if(!i||!t||i.length!==t.length)return!1;for(e=0,s=i.length;e<s;++e)if(n=i[e],o=t[e],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function ae(i){if(F(i))return i.map(ae);if(D(i)){const t=Object.create(null),e=Object.keys(i),s=e.length;let n=0;for(;n<s;++n)t[e[n]]=ae(i[e[n]]);return t}return i}function is(i){return["__proto__","prototype","constructor"].indexOf(i)===-1}function qs(i,t,e,s){if(!is(i))return;const n=t[i],o=e[i];D(n)&&D(o)?Vt(n,o,s):t[i]=ae(o)}function Vt(i,t,e){const s=F(t)?t:[t],n=s.length;if(!D(i))return i;e=e||{};const o=e.merger||qs;let r;for(let a=0;a<n;++a){if(r=s[a],!D(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],i,r,e)}return i}function Bt(i,t){return Vt(i,t,{merger:Gs})}function Gs(i,t,e){if(!is(i))return;const s=t[i],n=e[i];D(s)&&D(n)?Bt(s,n):Object.prototype.hasOwnProperty.call(t,i)||(t[i]=ae(n))}const Ue={"":i=>i,x:i=>i.x,y:i=>i.y};function Qs(i){const t=i.split("."),e=[];let s="";for(const n of t)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(e.push(s),s="");return e}function Zs(i){const t=Qs(i);return e=>{for(const s of t){if(s==="")break;e=e&&e[s]}return e}}function St(i,t){return(Ue[t]||(Ue[t]=Zs(t)))(i)}function Ie(i){return i.charAt(0).toUpperCase()+i.slice(1)}const Nt=i=>typeof i<"u",at=i=>typeof i=="function",Ke=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function Js(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const W=Math.PI,ot=2*W,le=Number.POSITIVE_INFINITY,tn=W/180,X=W/2,ht=W/4,Ye=W*2/3,ss=Math.log10,rt=Math.sign;function se(i,t,e){return Math.abs(i-t)<e}function Xe(i){const t=Math.round(i);i=se(i,t,i/1e3)?t:i;const e=Math.pow(10,Math.floor(ss(i))),s=i/e;return(s<=1?1:s<=2?2:s<=5?5:10)*e}function en(i){const t=[],e=Math.sqrt(i);let s;for(s=1;s<e;s++)i%s===0&&(t.push(s),t.push(i/s));return e===(e|0)&&t.push(e),t.sort((n,o)=>n-o).pop(),t}function sn(i){return typeof i=="symbol"||typeof i=="object"&&i!==null&&!(Symbol.toPrimitive in i||"toString"in i||"valueOf"in i)}function ce(i){return!sn(i)&&!isNaN(parseFloat(i))&&isFinite(i)}function nn(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}function on(i,t,e){let s,n,o;for(s=0,n=i.length;s<n;s++)o=i[s][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function pt(i){return i*(W/180)}function rn(i){return i*(180/W)}function qe(i){if(!K(i))return;let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}function an(i,t){const e=t.x-i.x,s=t.y-i.y,n=Math.sqrt(e*e+s*s);let o=Math.atan2(s,e);return o<-.5*W&&(o+=ot),{angle:o,distance:n}}function ln(i,t){return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function dt(i){return(i%ot+ot)%ot}function cn(i,t,e,s){const n=dt(i),o=dt(t),r=dt(e),a=dt(o-n),l=dt(r-n),c=dt(n-o),h=dt(n-r);return n===o||n===r||s||a>l&&c<h}function q(i,t,e){return Math.max(t,Math.min(e,i))}function hn(i){return q(i,-32768,32767)}function vt(i,t,e,s=1e-6){return i>=Math.min(t,e)-s&&i<=Math.max(t,e)+s}function ze(i,t,e){e=e||(r=>i[r]<t);let s=i.length-1,n=0,o;for(;s-n>1;)o=n+s>>1,e(o)?n=o:s=o;return{lo:n,hi:s}}const Ce=(i,t,e,s)=>ze(i,e,s?n=>{const o=i[n][t];return o<e||o===e&&i[n+1][t]===e}:n=>i[n][t]<e),dn=(i,t,e)=>ze(i,e,s=>i[s][t]>=e);function un(i,t,e){let s=0,n=i.length;for(;s<n&&i[s]<t;)s++;for(;n>s&&i[n-1]>e;)n--;return s>0||n<i.length?i.slice(s,n):i}const ns=["push","pop","shift","splice","unshift"];function fn(i,t){if(i._chartjs){i._chartjs.listeners.push(t);return}Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ns.forEach(e=>{const s="_onData"+Ie(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...o){const r=n.apply(this,o);return i._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...o)}),r}})})}function Ge(i,t){const e=i._chartjs;if(!e)return;const s=e.listeners,n=s.indexOf(t);n!==-1&&s.splice(n,1),!(s.length>0)&&(ns.forEach(o=>{delete i[o]}),delete i._chartjs)}function os(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const rs=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function as(i,t){let e=[],s=!1;return function(...n){e=n,s||(s=!0,rs.call(window,()=>{s=!1,i.apply(t,e)}))}}function gn(i,t){let e;return function(...s){return t?(clearTimeout(e),e=setTimeout(i,t,s)):i.apply(this,s),t}}const Re=i=>i==="start"?"left":i==="end"?"right":"center",B=(i,t,e)=>i==="start"?t:i==="end"?e:(t+e)/2,pn=(i,t,e,s)=>i===(s?"left":"right")?e:i==="center"?(t+e)/2:t,Xt=i=>i===0||i===1,Qe=(i,t,e)=>-(Math.pow(2,10*(i-=1))*Math.sin((i-t)*ot/e)),Ze=(i,t,e)=>Math.pow(2,-10*i)*Math.sin((i-t)*ot/e)+1,Ht={linear:i=>i,easeInQuad:i=>i*i,easeOutQuad:i=>-i*(i-2),easeInOutQuad:i=>(i/=.5)<1?.5*i*i:-.5*(--i*(i-2)-1),easeInCubic:i=>i*i*i,easeOutCubic:i=>(i-=1)*i*i+1,easeInOutCubic:i=>(i/=.5)<1?.5*i*i*i:.5*((i-=2)*i*i+2),easeInQuart:i=>i*i*i*i,easeOutQuart:i=>-((i-=1)*i*i*i-1),easeInOutQuart:i=>(i/=.5)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2),easeInQuint:i=>i*i*i*i*i,easeOutQuint:i=>(i-=1)*i*i*i*i+1,easeInOutQuint:i=>(i/=.5)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2),easeInSine:i=>-Math.cos(i*X)+1,easeOutSine:i=>Math.sin(i*X),easeInOutSine:i=>-.5*(Math.cos(W*i)-1),easeInExpo:i=>i===0?0:Math.pow(2,10*(i-1)),easeOutExpo:i=>i===1?1:-Math.pow(2,-10*i)+1,easeInOutExpo:i=>Xt(i)?i:i<.5?.5*Math.pow(2,10*(i*2-1)):.5*(-Math.pow(2,-10*(i*2-1))+2),easeInCirc:i=>i>=1?i:-(Math.sqrt(1-i*i)-1),easeOutCirc:i=>Math.sqrt(1-(i-=1)*i),easeInOutCirc:i=>(i/=.5)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1),easeInElastic:i=>Xt(i)?i:Qe(i,.075,.3),easeOutElastic:i=>Xt(i)?i:Ze(i,.075,.3),easeInOutElastic(i){return Xt(i)?i:i<.5?.5*Qe(i*2,.1125,.45):.5+.5*Ze(i*2-1,.1125,.45)},easeInBack(i){return i*i*((1.70158+1)*i-1.70158)},easeOutBack(i){return(i-=1)*i*((1.70158+1)*i+1.70158)+1},easeInOutBack(i){let t=1.70158;return(i/=.5)<1?.5*(i*i*(((t*=1.525)+1)*i-t)):.5*((i-=2)*i*(((t*=1.525)+1)*i+t)+2)},easeInBounce:i=>1-Ht.easeOutBounce(1-i),easeOutBounce(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},easeInOutBounce:i=>i<.5?Ht.easeInBounce(i*2)*.5:Ht.easeOutBounce(i*2-1)*.5+.5};function ls(i){if(i&&typeof i=="object"){const t=i.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Je(i){return ls(i)?i:new Zi(i)}function me(i){return ls(i)?i:new Zi(i).saturate(.5).darken(.1).hexString()}const mn=["x","y","borderWidth","radius","tension"],bn=["color","borderColor","backgroundColor"];function xn(i){i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),i.set("animations",{colors:{type:"color",properties:bn},numbers:{type:"number",properties:mn}}),i.describe("animations",{_fallback:"animation"}),i.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function _n(i){i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const ti=new Map;function yn(i,t){t=t||{};const e=i+JSON.stringify(t);let s=ti.get(e);return s||(s=new Intl.NumberFormat(i,t),ti.set(e,s)),s}function cs(i,t,e){return yn(t,e).format(i)}const vn={values(i){return F(i)?i:""+i},numeric(i,t,e){if(i===0)return"0";const s=this.chart.options.locale;let n,o=i;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=kn(i,e)}const r=ss(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),cs(i,s,l)}};function kn(i,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&i!==Math.floor(i)&&(e=i-Math.floor(i)),e}var hs={formatters:vn};function wn(i){i.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:hs.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.route("scale.ticks","color","","color"),i.route("scale.grid","color","","borderColor"),i.route("scale.border","color","","borderColor"),i.route("scale.title","color","","color"),i.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),i.describe("scales",{_fallback:"scale"}),i.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const bt=Object.create(null),Te=Object.create(null);function Wt(i,t){if(!t)return i;const e=t.split(".");for(let s=0,n=e.length;s<n;++s){const o=e[s];i=i[o]||(i[o]=Object.create(null))}return i}function be(i,t,e){return typeof t=="string"?Vt(Wt(i,t),e):Vt(Wt(i,""),t)}class Sn{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=s=>s.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>me(n.backgroundColor),this.hoverBorderColor=(s,n)=>me(n.borderColor),this.hoverColor=(s,n)=>me(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return be(this,t,e)}get(t){return Wt(this,t)}describe(t,e){return be(Te,t,e)}override(t,e){return be(bt,t,e)}route(t,e,s,n){const o=Wt(this,t),r=Wt(this,s),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[n];return D(l)?Object.assign({},c,l):O(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}}var R=new Sn({_scriptable:i=>!i.startsWith("on"),_indexable:i=>i!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[xn,_n,wn]);function Mn(i){return!i||L(i.size)||L(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family}function ei(i,t,e,s,n){let o=t[n];return o||(o=t[n]=i.measureText(n).width,e.push(n)),o>s&&(s=o),s}function ut(i,t,e){const s=i.currentDevicePixelRatio,n=e!==0?Math.max(e/2,.5):0;return Math.round((t-n)*s)/s+n}function ii(i,t){!t&&!i||(t=t||i.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,i.width,i.height),t.restore())}function si(i,t,e,s){ds(i,t,e,s,null)}function ds(i,t,e,s,n){let o,r,a,l,c,h,d,u;const f=t.pointStyle,m=t.rotation,g=t.radius;let p=(m||0)*tn;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){i.save(),i.translate(e,s),i.rotate(p),i.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),i.restore();return}if(!(isNaN(g)||g<=0)){switch(i.beginPath(),f){default:n?i.ellipse(e,s,n/2,g,0,0,ot):i.arc(e,s,g,0,ot),i.closePath();break;case"triangle":h=n?n/2:g,i.moveTo(e+Math.sin(p)*h,s-Math.cos(p)*g),p+=Ye,i.lineTo(e+Math.sin(p)*h,s-Math.cos(p)*g),p+=Ye,i.lineTo(e+Math.sin(p)*h,s-Math.cos(p)*g),i.closePath();break;case"rectRounded":c=g*.516,l=g-c,r=Math.cos(p+ht)*l,d=Math.cos(p+ht)*(n?n/2-c:l),a=Math.sin(p+ht)*l,u=Math.sin(p+ht)*(n?n/2-c:l),i.arc(e-d,s-a,c,p-W,p-X),i.arc(e+u,s-r,c,p-X,p),i.arc(e+d,s+a,c,p,p+X),i.arc(e-u,s+r,c,p+X,p+W),i.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*g,h=n?n/2:l,i.rect(e-h,s-l,2*h,2*l);break}p+=ht;case"rectRot":d=Math.cos(p)*(n?n/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,u=Math.sin(p)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+u,s-r),i.lineTo(e+d,s+a),i.lineTo(e-u,s+r),i.closePath();break;case"crossRot":p+=ht;case"cross":d=Math.cos(p)*(n?n/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,u=Math.sin(p)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r);break;case"star":d=Math.cos(p)*(n?n/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,u=Math.sin(p)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r),p+=ht,d=Math.cos(p)*(n?n/2:g),r=Math.cos(p)*g,a=Math.sin(p)*g,u=Math.sin(p)*(n?n/2:g),i.moveTo(e-d,s-a),i.lineTo(e+d,s+a),i.moveTo(e+u,s-r),i.lineTo(e-u,s+r);break;case"line":r=n?n/2:Math.cos(p)*g,a=Math.sin(p)*g,i.moveTo(e-r,s-a),i.lineTo(e+r,s+a);break;case"dash":i.moveTo(e,s),i.lineTo(e+Math.cos(p)*(n?n/2:g),s+Math.sin(p)*g);break;case!1:i.closePath();break}i.fill(),t.borderWidth>0&&i.stroke()}}function us(i,t,e){return e=e||.5,!t||i&&i.x>t.left-e&&i.x<t.right+e&&i.y>t.top-e&&i.y<t.bottom+e}function Fe(i,t){i.save(),i.beginPath(),i.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),i.clip()}function Ee(i){i.restore()}function Pn(i,t){t.translation&&i.translate(t.translation[0],t.translation[1]),L(t.rotation)||i.rotate(t.rotation),t.color&&(i.fillStyle=t.color),t.textAlign&&(i.textAlign=t.textAlign),t.textBaseline&&(i.textBaseline=t.textBaseline)}function Dn(i,t,e,s,n){if(n.strikethrough||n.underline){const o=i.measureText(s),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=e-o.actualBoundingBoxAscent,c=e+o.actualBoundingBoxDescent,h=n.strikethrough?(l+c)/2:c;i.strokeStyle=i.fillStyle,i.beginPath(),i.lineWidth=n.decorationWidth||2,i.moveTo(r,h),i.lineTo(a,h),i.stroke()}}function On(i,t){const e=i.fillStyle;i.fillStyle=t.color,i.fillRect(t.left,t.top,t.width,t.height),i.fillStyle=e}function jt(i,t,e,s,n,o={}){const r=F(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(i.save(),i.font=n.string,Pn(i,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&On(i,o.backdrop),a&&(o.strokeColor&&(i.strokeStyle=o.strokeColor),L(o.strokeWidth)||(i.lineWidth=o.strokeWidth),i.strokeText(c,e,s,o.maxWidth)),i.fillText(c,e,s,o.maxWidth),Dn(i,e,s,c,o),s+=Number(n.lineHeight);i.restore()}function he(i,t){const{x:e,y:s,w:n,h:o,radius:r}=t;i.arc(e+r.topLeft,s+r.topLeft,r.topLeft,1.5*W,W,!0),i.lineTo(e,s+o-r.bottomLeft),i.arc(e+r.bottomLeft,s+o-r.bottomLeft,r.bottomLeft,W,X,!0),i.lineTo(e+n-r.bottomRight,s+o),i.arc(e+n-r.bottomRight,s+o-r.bottomRight,r.bottomRight,X,0,!0),i.lineTo(e+n,s+r.topRight),i.arc(e+n-r.topRight,s+r.topRight,r.topRight,0,-X,!0),i.lineTo(e+r.topLeft,s)}const Cn=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Tn=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function An(i,t){const e=(""+i).match(Cn);if(!e||e[1]==="normal")return t*1.2;switch(i=+e[2],e[3]){case"px":return i;case"%":i/=100;break}return t*i}const Ln=i=>+i||0;function fs(i,t){const e={},s=D(t),n=s?Object.keys(t):t,o=D(i)?s?r=>O(i[r],i[t[r]]):r=>i[r]:()=>i;for(const r of n)e[r]=Ln(o(r));return e}function gs(i){return fs(i,{top:"y",right:"x",bottom:"y",left:"x"})}function kt(i){return fs(i,["topLeft","topRight","bottomLeft","bottomRight"])}function Y(i){const t=gs(i);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function H(i,t){i=i||{},t=t||R.font;let e=O(i.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let s=O(i.style,t.style);s&&!(""+s).match(Tn)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:O(i.family,t.family),lineHeight:An(O(i.lineHeight,t.lineHeight),e),size:e,style:s,weight:O(i.weight,t.weight),string:""};return n.string=Mn(n),n}function qt(i,t,e,s){let n,o,r;for(n=0,o=i.length;n<o;++n)if(r=i[n],r!==void 0&&r!==void 0)return r}function In(i,t,e){const{min:s,max:n}=i,o=Xs(t,(n-s)/2),r=(a,l)=>e&&a===0?0:a+l;return{min:r(s,-Math.abs(o)),max:r(n,o)}}function Pt(i,t){return Object.assign(Object.create(i),t)}function Be(i,t=[""],e,s,n=()=>i[0]){const o=e||i;typeof s>"u"&&(s=xs("_fallback",i));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:o,_fallback:s,_getTarget:n,override:a=>Be([a,...i],t,o,s)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete i[0][l],!0},get(a,l){return ms(a,l,()=>Vn(l,t,i,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(i[0])},has(a,l){return oi(a).includes(l)},ownKeys(a){return oi(a)},set(a,l,c){const h=a._storage||(a._storage=n());return a[l]=h[l]=c,delete a._keys,!0}})}function Mt(i,t,e,s){const n={_cacheable:!1,_proxy:i,_context:t,_subProxy:e,_stack:new Set,_descriptors:ps(i,s),setContext:o=>Mt(i,o,e,s),override:o=>Mt(i.override(o),t,e,s)};return new Proxy(n,{deleteProperty(o,r){return delete o[r],delete i[r],!0},get(o,r,a){return ms(o,r,()=>Rn(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(i,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(i,r)},getPrototypeOf(){return Reflect.getPrototypeOf(i)},has(o,r){return Reflect.has(i,r)},ownKeys(){return Reflect.ownKeys(i)},set(o,r,a){return i[r]=a,delete o[r],!0}})}function ps(i,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:s=t.indexable,_allKeys:n=t.allKeys}=i;return{allKeys:n,scriptable:e,indexable:s,isScriptable:at(e)?e:()=>e,isIndexable:at(s)?s:()=>s}}const zn=(i,t)=>i?i+Ie(t):t,He=(i,t)=>D(t)&&i!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function ms(i,t,e){if(Object.prototype.hasOwnProperty.call(i,t)||t==="constructor")return i[t];const s=e();return i[t]=s,s}function Rn(i,t,e){const{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=i;let a=s[t];return at(a)&&r.isScriptable(t)&&(a=Fn(t,a,i,e)),F(a)&&a.length&&(a=En(t,a,i,r.isIndexable)),He(t,a)&&(a=Mt(a,n,o&&o[t],r)),a}function Fn(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_stack:a}=e;if(a.has(i))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+i);a.add(i);let l=t(o,r||s);return a.delete(i),He(i,l)&&(l=We(n._scopes,n,i,l)),l}function En(i,t,e,s){const{_proxy:n,_context:o,_subProxy:r,_descriptors:a}=e;if(typeof o.index<"u"&&s(i))return t[o.index%t.length];if(D(t[0])){const l=t,c=n._scopes.filter(h=>h!==l);t=[];for(const h of l){const d=We(c,n,i,h);t.push(Mt(d,o,r&&r[i],a))}}return t}function bs(i,t,e){return at(i)?i(t,e):i}const Bn=(i,t)=>i===!0?t:typeof i=="string"?St(t,i):void 0;function Hn(i,t,e,s,n){for(const o of t){const r=Bn(e,o);if(r){i.add(r);const a=bs(r._fallback,e,n);if(typeof a<"u"&&a!==e&&a!==s)return a}else if(r===!1&&typeof s<"u"&&e!==s)return null}return!1}function We(i,t,e,s){const n=t._rootScopes,o=bs(t._fallback,e,s),r=[...i,...n],a=new Set;a.add(s);let l=ni(a,r,e,o||e,s);return l===null||typeof o<"u"&&o!==e&&(l=ni(a,r,o,l,s),l===null)?!1:Be(Array.from(a),[""],n,o,()=>Wn(t,e,s))}function ni(i,t,e,s,n){for(;e;)e=Hn(i,t,e,s,n);return e}function Wn(i,t,e){const s=i._getTarget();t in s||(s[t]={});const n=s[t];return F(n)&&D(e)?e:n||{}}function Vn(i,t,e,s){let n;for(const o of t)if(n=xs(zn(o,i),e),typeof n<"u")return He(i,n)?We(e,s,i,n):n}function xs(i,t){for(const e of t){if(!e)continue;const s=e[i];if(typeof s<"u")return s}}function oi(i){let t=i._keys;return t||(t=i._keys=Nn(i._scopes)),t}function Nn(i){const t=new Set;for(const e of i)for(const s of Object.keys(e).filter(n=>!n.startsWith("_")))t.add(s);return Array.from(t)}function Ve(){return typeof window<"u"&&typeof document<"u"}function Ne(i){let t=i.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function de(i,t,e){let s;return typeof i=="string"?(s=parseInt(i,10),i.indexOf("%")!==-1&&(s=s/100*t.parentNode[e])):s=i,s}const fe=i=>i.ownerDocument.defaultView.getComputedStyle(i,null);function jn(i,t){return fe(i).getPropertyValue(t)}const $n=["top","right","bottom","left"];function mt(i,t,e){const s={};e=e?"-"+e:"";for(let n=0;n<4;n++){const o=$n[n];s[o]=parseFloat(i[t+"-"+o+e])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Un=(i,t,e)=>(i>0||t>0)&&(!e||!e.shadowRoot);function Kn(i,t){const e=i.touches,s=e&&e.length?e[0]:i,{offsetX:n,offsetY:o}=s;let r=!1,a,l;if(Un(n,o,i.target))a=n,l=o;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function gt(i,t){if("native"in i)return i;const{canvas:e,currentDevicePixelRatio:s}=t,n=fe(e),o=n.boxSizing==="border-box",r=mt(n,"padding"),a=mt(n,"border","width"),{x:l,y:c,box:h}=Kn(i,e),d=r.left+(h&&a.left),u=r.top+(h&&a.top);let{width:f,height:m}=t;return o&&(f-=r.width+a.width,m-=r.height+a.height),{x:Math.round((l-d)/f*e.width/s),y:Math.round((c-u)/m*e.height/s)}}function Yn(i,t,e){let s,n;if(t===void 0||e===void 0){const o=i&&Ne(i);if(!o)t=i.clientWidth,e=i.clientHeight;else{const r=o.getBoundingClientRect(),a=fe(o),l=mt(a,"border","width"),c=mt(a,"padding");t=r.width-c.width-l.width,e=r.height-c.height-l.height,s=de(a.maxWidth,o,"clientWidth"),n=de(a.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:s||le,maxHeight:n||le}}const st=i=>Math.round(i*10)/10;function Xn(i,t,e,s){const n=fe(i),o=mt(n,"margin"),r=de(n.maxWidth,i,"clientWidth")||le,a=de(n.maxHeight,i,"clientHeight")||le,l=Yn(i,t,e);let{width:c,height:h}=l;if(n.boxSizing==="content-box"){const u=mt(n,"border","width"),f=mt(n,"padding");c-=f.width+u.width,h-=f.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=st(Math.min(c,r,l.maxWidth)),h=st(Math.min(h,a,l.maxHeight)),c&&!h&&(h=st(c/2)),(t!==void 0||e!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=st(Math.floor(h*s))),{width:c,height:h}}function ri(i,t,e){const s=t||1,n=st(i.height*s),o=st(i.width*s);i.height=st(i.height),i.width=st(i.width);const r=i.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${i.height}px`,r.style.width=`${i.width}px`),i.currentDevicePixelRatio!==s||r.height!==n||r.width!==o?(i.currentDevicePixelRatio=s,r.height=n,r.width=o,i.ctx.setTransform(s,0,0,s,0,0),!0):!1}const qn=function(){let i=!1;try{const t={get passive(){return i=!0,!1}};Ve()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return i}();function ai(i,t){const e=jn(i,t),s=e&&e.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}const Gn=function(i,t){return{x(e){return i+i+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,s){return e-s},leftForLtr(e,s){return e-s}}},Qn=function(){return{x(i){return i},setWidth(i){},textAlign(i){return i},xPlus(i,t){return i+t},leftForLtr(i,t){return i}}};function wt(i,t,e){return i?Gn(t,e):Qn()}function _s(i,t){let e,s;(t==="ltr"||t==="rtl")&&(e=i.canvas.style,s=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),i.prevTextDirection=s)}function ys(i,t){t!==void 0&&(delete i.prevTextDirection,i.canvas.style.setProperty("direction",t[0],t[1]))}function Gt(i,t,e){return i.options.clip?i[e]:t[e]}function Zn(i,t){const{xScale:e,yScale:s}=i;return e&&s?{left:Gt(e,t,"left"),right:Gt(e,t,"right"),top:Gt(s,t,"top"),bottom:Gt(s,t,"bottom")}:t}function Jn(i,t){const e=t._clip;if(e.disabled)return!1;const s=Zn(t,i.chartArea);return{left:e.left===!1?0:s.left-(e.left===!0?0:e.left),right:e.right===!1?i.width:s.right+(e.right===!0?0:e.right),top:e.top===!1?0:s.top-(e.top===!0?0:e.top),bottom:e.bottom===!1?i.height:s.bottom+(e.bottom===!0?0:e.bottom)}}/*!
7
+ * Chart.js v4.5.1
8
+ * https://www.chartjs.org
9
+ * (c) 2025 Chart.js Contributors
10
+ * Released under the MIT License
11
+ */class to{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,n){const o=e.listeners[n],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(s-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=rs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var et=new to;const li="transparent",eo={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=Je(i||li),n=s.valid&&Je(t||li);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class io{constructor(t,e,s,n){const o=e[s];n=qt([t.to,n,o,t.from]);const r=qt([t.from,o,n]);this._active=!0,this._fn=t.fn||eo[t.type||typeof r],this._easing=Ht[t.easing]||Ht.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=qt([t.to,e,n,t.from]),this._from=qt([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e<s),!this._active){this._target[n]=a,this._notify(!0);return}if(e<0){this._target[n]=o;return}l=e/s%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n<s.length;n++)s[n][e]()}}class vs{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!D(t))return;const e=Object.keys(R.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const o=t[n];if(!D(o))return;const r={};for(const a of e)r[a]=o[a];(F(o.properties)&&o.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,r)})})}_animateOptions(t,e){const s=e.options,n=no(t,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&so(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,n=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=s.get(c);if(d)if(u&&d.active()){d.update(u,h,a);continue}else d.cancel();if(!u||!u.duration){t[c]=h;continue}o[c]=d=new io(u,t,c,h),n.push(d)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return et.add(this._chart,s),!0}}function so(i,t){const e=[],s=Object.keys(t);for(let n=0;n<s.length;n++){const o=i[s[n]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function no(i,t){if(!t)return;let e=i.options;if(!e){i.options=t;return}return e.$shared&&(i.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function ci(i,t){const e=i&&i.options||{},s=e.reverse,n=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:s?o:n,end:s?n:o}}function oo(i,t,e){if(e===!1)return!1;const s=ci(i,e),n=ci(t,e);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}function ro(i){let t,e,s,n;return D(i)?(t=i.top,e=i.right,s=i.bottom,n=i.left):t=e=s=n=i,{top:t,right:e,bottom:s,left:n,disabled:i===!1}}function ks(i,t){const e=[],s=i._getSortedDatasetMetas(t);let n,o;for(n=0,o=s.length;n<o;++n)e.push(s[n].index);return e}function hi(i,t,e,s={}){const n=i.keys,o=s.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=n.length;r<a;++r){if(l=+n[r],l===e){if(h=!0,s.all)continue;break}c=i.values[l],K(c)&&(o||t===0||rt(t)===rt(c))&&(t+=c)}return!h&&!s.all?0:t}function ao(i,t){const{iScale:e,vScale:s}=t,n=e.axis==="x"?"x":"y",o=s.axis==="x"?"x":"y",r=Object.keys(i),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[n]:h,[o]:i[h]};return a}function xe(i,t){const e=i&&i.options.stacked;return e||e===void 0&&t.stack!==void 0}function lo(i,t,e){return`${i.id}.${t.id}.${e.stack||e.type}`}function co(i){const{min:t,max:e,minDefined:s,maxDefined:n}=i.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:n?e:Number.POSITIVE_INFINITY}}function ho(i,t,e){const s=i[t]||(i[t]={});return s[e]||(s[e]={})}function di(i,t,e,s){for(const n of t.getMatchingVisibleMetas(s).reverse()){const o=i[n.index];if(e&&o>0||!e&&o<0)return n.index}return null}function ui(i,t){const{chart:e,_cachedMeta:s}=i,n=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=s,l=o.axis,c=r.axis,h=lo(o,r,s),d=t.length;let u;for(let f=0;f<d;++f){const m=t[f],{[l]:g,[c]:p}=m,b=m._stacks||(m._stacks={});u=b[c]=ho(n,h,g),u[a]=p,u._top=di(u,r,!0,s.type),u._bottom=di(u,r,!1,s.type);const x=u._visualValues||(u._visualValues={});x[a]=p}}function _e(i,t){const e=i.scales;return Object.keys(e).filter(s=>e[s].axis===t).shift()}function uo(i,t){return Pt(i,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function fo(i,t,e){return Pt(i,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function At(i,t){const e=i.controller.index,s=i.vScale&&i.vScale.axis;if(s){t=t||i._parsed;for(const n of t){const o=n._stacks;if(!o||o[s]===void 0||o[s][e]===void 0)return;delete o[s][e],o[s]._visualValues!==void 0&&o[s]._visualValues[e]!==void 0&&delete o[s]._visualValues[e]}}}const ye=i=>i==="reset"||i==="none",fi=(i,t)=>t?i:Object.assign({},i),go=(i,t,e)=>i&&!t.hidden&&t._stacked&&{keys:ks(e,!0),values:null};class ws{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=xe(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&At(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),n=(d,u,f,m)=>d==="x"?u:d==="r"?m:f,o=e.xAxisID=O(s.xAxisID,_e(t,"x")),r=e.yAxisID=O(s.yAxisID,_e(t,"y")),a=e.rAxisID=O(s.rAxisID,_e(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,o,r,a),h=e.vAxisID=n(l,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ge(this._data,this),t._stacked&&At(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(D(e)){const n=this._cachedMeta;this._data=ao(e,n)}else if(s!==e){if(s){Ge(s,this);const n=this._cachedMeta;At(n),n._parsed=[]}e&&Object.isExtensible(e)&&fn(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=xe(e.vScale,e),e.stack!==s.stack&&(n=!0,At(e),e.stack=s.stack),this._resyncElements(t),(n||o!==e._stacked)&&(ui(this,e._parsed),e._stacked=xe(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:n}=this,{iScale:o,_stacked:r}=s,a=o.axis;let l=t===0&&e===n.length?!0:s._sorted,c=t>0&&s._parsed[t-1],h,d,u;if(this._parsing===!1)s._parsed=n,s._sorted=!0,u=n;else{F(n[t])?u=this.parseArrayData(s,n,t,e):D(n[t])?u=this.parseObjectData(s,n,t,e):u=this.parsePrimitiveData(s,n,t,e);const f=()=>d[a]===null||c&&d[a]<c[a];for(h=0;h<e;++h)s._parsed[h+t]=d=u[h],l&&(f()&&(l=!1),c=d);s._sorted=l}r&&ui(this,u)}parsePrimitiveData(t,e,s,n){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,d=new Array(n);let u,f,m;for(u=0,f=n;u<f;++u)m=u+s,d[u]={[a]:h||o.parse(c[m],m),[l]:r.parse(e[m],m)};return d}parseArrayData(t,e,s,n){const{xScale:o,yScale:r}=t,a=new Array(n);let l,c,h,d;for(l=0,c=n;l<c;++l)h=l+s,d=e[h],a[l]={x:o.parse(d[0],h),y:r.parse(d[1],h)};return a}parseObjectData(t,e,s,n){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(n);let h,d,u,f;for(h=0,d=n;h<d;++h)u=h+s,f=e[u],c[h]={x:o.parse(St(f,a),u),y:r.parse(St(f,l),u)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,s){const n=this.chart,o=this._cachedMeta,r=e[t.axis],a={keys:ks(n,!0),values:e._stacks[t.axis]._visualValues};return hi(a,r,o.index,{mode:s})}updateRangeFromParsed(t,e,s,n){const o=s[e.axis];let r=o===null?NaN:o;const a=n&&s._stacks[e.axis];n&&a&&(n.values=a,r=hi(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const s=this._cachedMeta,n=s._parsed,o=s._sorted&&t===s.iScale,r=n.length,a=this._getOtherScale(t),l=go(e,s,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=co(a);let u,f;function m(){f=n[u];const g=f[a.axis];return!K(f[t.axis])||h>g||d<g}for(u=0;u<r&&!(!m()&&(this.updateRangeFromParsed(c,t,f,l),o));++u);if(o){for(u=r-1;u>=0;--u)if(!m()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let n,o,r;for(n=0,o=e.length;n<o;++n)r=e[n][t.axis],K(r)&&s.push(r);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,s=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:s?""+s.getLabelForValue(o[s.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=ro(O(this.options.clip,oo(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,s=this._cachedMeta,n=s.data||[],o=e.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||n.length-a,c=this.options.drawActiveElementsOnTop;let h;for(s.dataset&&s.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const d=n[h];d.hidden||(d.active&&c?r.push(d):d.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,e){const s=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,e,s){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=fo(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=uo(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=s,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",s){const n=e==="active",o=this._cachedDataOpts,r=t+"-"+e,a=o[r],l=this.enableOptionSharing&&Nt(s);if(a)return fi(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),d=n?[`${t}Hover`,"hover",t,""]:[t,""],u=c.getOptionScopes(this.getDataset(),h),f=Object.keys(R.elements[t]),m=()=>this.getContext(s,n,e),g=c.resolveNamedOptions(u,f,m,d);return g.$shared&&(g.$shared=l,o[r]=Object.freeze(fi(g,l))),g}_resolveAnimations(t,e,s){const n=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let l;if(n.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),u=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(u,this.getContext(t,s,e))}const c=new vs(n,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ye(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,s),{sharedOptions:o,includeOptions:r}}updateElement(t,e,s,n){ye(n)?Object.assign(t,s):this._resolveAnimations(e,n).update(t,s)}updateSharedOptions(t,e,s){t&&!ye(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,s,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=s.length,o=e.length,r=Math.min(o,n);r&&this.parse(0,r),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,s=!0){const n=this._cachedMeta,o=n.data,r=t+e;let a;const l=c=>{for(c.length+=e,a=c.length-1;a>=r;a--)c[a]=c[a-e]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(n._parsed),this.parse(t,e),s&&this.updateElements(o,t,e,"reset")}updateElements(t,e,s,n){}_removeElements(t,e){const s=this._cachedMeta;if(this._parsing){const n=s._parsed.splice(t,e);s._stacked&&At(s,n)}s.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,s,n]=t;this[e](s,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function po(i,t){if(!i._cache.$bar){const e=i.getMatchingVisibleMetas(t);let s=[];for(let n=0,o=e.length;n<o;n++)s=s.concat(e[n].controller.getAllParsedValues(i));i._cache.$bar=os(s.sort((n,o)=>n-o))}return i._cache.$bar}function mo(i){const t=i.iScale,e=po(t,i.type);let s=t._length,n,o,r,a;const l=()=>{r===32767||r===-32768||(Nt(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(n=0,o=e.length;n<o;++n)r=t.getPixelForValue(e[n]),l();for(a=void 0,n=0,o=t.ticks.length;n<o;++n)r=t.getPixelForTick(n),l();return s}function bo(i,t,e,s){const n=e.barThickness;let o,r;return L(n)?(o=t.min*e.categoryPercentage,r=e.barPercentage):(o=n*s,r=1),{chunk:o/s,ratio:r,start:t.pixels[i]-o/2}}function xo(i,t,e,s){const n=t.pixels,o=n[i];let r=i>0?n[i-1]:null,a=i<n.length-1?n[i+1]:null;const l=e.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/s,ratio:e.barPercentage,start:c}}function _o(i,t,e,s){const n=e.parse(i[0],s),o=e.parse(i[1],s),r=Math.min(n,o),a=Math.max(n,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:o,min:r,max:a}}function Ss(i,t,e,s){return F(i)?_o(i,t,e,s):t[e.axis]=e.parse(i,s),t}function gi(i,t,e,s){const n=i.iScale,o=i.vScale,r=n.getLabels(),a=n===o,l=[];let c,h,d,u;for(c=e,h=e+s;c<h;++c)u=t[c],d={},d[n.axis]=a||n.parse(r[c],c),l.push(Ss(u,d,o,c));return l}function ve(i){return i&&i.barStart!==void 0&&i.barEnd!==void 0}function yo(i,t,e){return i!==0?rt(i):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function vo(i){let t,e,s,n,o;return i.horizontal?(t=i.base>i.x,e="left",s="right"):(t=i.base<i.y,e="bottom",s="top"),t?(n="end",o="start"):(n="start",o="end"),{start:e,end:s,reverse:t,top:n,bottom:o}}function ko(i,t,e,s){let n=t.borderSkipped;const o={};if(!n){i.borderSkipped=o;return}if(n===!0){i.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=vo(i);n==="middle"&&e&&(i.enableBorderRadius=!0,(e._top||0)===s?n=c:(e._bottom||0)===s?n=h:(o[pi(h,r,a,l)]=!0,n=c)),o[pi(n,r,a,l)]=!0,i.borderSkipped=o}function pi(i,t,e,s){return s?(i=wo(i,t,e),i=mi(i,e,t)):i=mi(i,t,e),i}function wo(i,t,e){return i===t?e:i===e?t:i}function mi(i,t,e){return i==="start"?t:i==="end"?e:i}function So(i,{inflateAmount:t},e){i.inflateAmount=t==="auto"?e===1?.33:0:t}class Mo extends ws{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,s,n){return gi(t,e,s,n)}parseArrayData(t,e,s,n){return gi(t,e,s,n)}parseObjectData(t,e,s,n){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,h=r.axis==="x"?a:l,d=[];let u,f,m,g;for(u=s,f=s+n;u<f;++u)g=e[u],m={},m[o.axis]=o.parse(St(g,c),u),d.push(Ss(St(g,h),m,r,u));return d}updateRangeFromParsed(t,e,s,n){super.updateRangeFromParsed(t,e,s,n);const o=s._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:s,vScale:n}=e,o=this.getParsed(t),r=o._custom,a=ve(r)?"["+r.start+", "+r.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+s.getLabelForValue(o[s.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,s,n){const o=n==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(e,n);for(let f=e;f<e+s;f++){const m=this.getParsed(f),g=o||L(m[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),b=(m._stacks||{})[a.axis],x={horizontal:c,base:g.base,enableBorderRadius:!b||ve(m._custom)||r===b._top||r===b._bottom,x:c?g.head:p.center,y:c?p.center:g.head,height:c?p.size:Math.abs(g.size),width:c?Math.abs(g.size):p.size};u&&(x.options=d||this.resolveDataElementOptions(f,t[f].active?"active":n));const _=x.options||t[f].options;ko(x,_,b,r),So(x,_,h.ratio),this.updateElement(t[f],f,x,n)}}_getStacks(t,e){const{iScale:s}=this._cachedMeta,n=s.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=s.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(e),l=a&&a[s.axis],c=h=>{const d=h._parsed.find(f=>f[s.axis]===l),u=d&&d[h.vScale.axis];if(L(u)||isNaN(u))return!0};for(const h of n)if(!(e!==void 0&&c(h))&&((o===!1||r.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&r.push(h.stack),h.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(s=>t[s].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const s of this.chart.data.datasets)t[O(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,s){const n=this._getStacks(t,s),o=e!==void 0?n.indexOf(e):-1;return o===-1?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,s=e.iScale,n=[];let o,r;for(o=0,r=e.data.length;o<r;++o)n.push(s.getPixelForValue(this.getParsed(o)[s.axis],o));const a=t.barThickness;return{min:a||mo(e),pixels:n,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:s,index:n},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=ve(c);let d=l[e.axis],u=0,f=s?this.applyStack(e,l,s):d,m,g;f!==d&&(u=f-d,f=d),h&&(d=c.barStart,f=c.barEnd-c.barStart,d!==0&&rt(d)!==rt(c.barEnd)&&(u=0),u+=d);const p=!L(o)&&!h?o:u;let b=e.getPixelForValue(p);if(this.chart.getDataVisibility(t)?m=e.getPixelForValue(u+f):m=b,g=m-b,Math.abs(g)<r){g=yo(g,e,a)*r,d===a&&(b-=g/2);const x=e.getPixelForDecimal(0),_=e.getPixelForDecimal(1),v=Math.min(x,_),y=Math.max(x,_);b=Math.max(Math.min(b,y),v),m=b+g,s&&!h&&(l._stacks[e.axis]._visualValues[n]=e.getValueForPixel(m)-e.getValueForPixel(b))}if(b===e.getPixelForValue(a)){const x=rt(g)*e.getLineWidthForValue(a)/2;b+=x,g-=x}return{size:g,base:b,head:m,center:m+g/2}}_calculateBarIndexPixels(t,e){const s=e.scale,n=this.options,o=n.skipNull,r=O(n.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(e.grouped){const h=o?this._getStackCount(t):e.stackCount,d=n.barThickness==="flex"?xo(t,e,n,h*c):bo(t,e,n,h*c),u=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,f=this._getAxis().indexOf(O(u,this.getFirstScaleIdForIndexAxis())),m=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0)+f;a=d.start+d.chunk*m+d.chunk/2,l=Math.min(r,d.chunk*d.ratio)}else a=s.getPixelForValue(this.getParsed(t)[s.axis],t),l=Math.min(r,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,s=t.data,n=s.length;let o=0;for(;o<n;++o)this.getParsed(o)[e.axis]!==null&&!s[o].hidden&&s[o].draw(this._ctx)}}function ft(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class je{static override(t){Object.assign(je.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return ft()}parse(){return ft()}format(){return ft()}add(){return ft()}diff(){return ft()}startOf(){return ft()}endOf(){return ft()}}var Po={_date:je};function Do(i,t,e,s){const{controller:n,data:o,_sorted:r}=i,a=n._cachedMeta.iScale,l=i.dataset&&i.dataset.options?i.dataset.options.spanGaps:null;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const c=a._reversePixels?dn:Ce;if(s){if(n._sharedOptions){const h=o[0],d=typeof h.getRange=="function"&&h.getRange(t);if(d){const u=c(o,t,e-d),f=c(o,t,e+d);return{lo:u.lo,hi:f.hi}}}}else{const h=c(o,t,e);if(l){const{vScale:d}=n._cachedMeta,{_parsed:u}=i,f=u.slice(0,h.lo+1).reverse().findIndex(g=>!L(g[d.axis]));h.lo-=Math.max(0,f);const m=u.slice(h.hi).findIndex(g=>!L(g[d.axis]));h.hi+=Math.max(0,m)}return h}}return{lo:0,hi:o.length-1}}function ge(i,t,e,s,n){const o=i.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:d,hi:u}=Do(o[a],t,r,n);for(let f=d;f<=u;++f){const m=h[f];m.skip||s(m,c,f)}}}function Oo(i){const t=i.indexOf("x")!==-1,e=i.indexOf("y")!==-1;return function(s,n){const o=t?Math.abs(s.x-n.x):0,r=e?Math.abs(s.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function ke(i,t,e,s,n){const o=[];return!n&&!i.isPointInArea(t)||ge(i,e,t,function(a,l,c){!n&&!us(a,i.chartArea,0)||a.inRange(t.x,t.y,s)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function Co(i,t,e,s){let n=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],s),{angle:d}=an(r,{x:t.x,y:t.y});cn(d,c,h)&&n.push({element:r,datasetIndex:a,index:l})}return ge(i,e,t,o),n}function To(i,t,e,s,n,o){let r=[];const a=Oo(e);let l=Number.POSITIVE_INFINITY;function c(h,d,u){const f=h.inRange(t.x,t.y,n);if(s&&!f)return;const m=h.getCenterPoint(n);if(!(!!o||i.isPointInArea(m))&&!f)return;const p=a(t,m);p<l?(r=[{element:h,datasetIndex:d,index:u}],l=p):p===l&&r.push({element:h,datasetIndex:d,index:u})}return ge(i,e,t,c),r}function we(i,t,e,s,n,o){return!o&&!i.isPointInArea(t)?[]:e==="r"&&!s?Co(i,t,e,n):To(i,t,e,s,n,o)}function bi(i,t,e,s,n){const o=[],r=e==="x"?"inXRange":"inYRange";let a=!1;return ge(i,e,t,(l,c,h)=>{l[r]&&l[r](t[e],n)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,n))}),s&&!a?[]:o}var Ao={modes:{index(i,t,e,s){const n=gt(t,i),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?ke(i,n,o,s,r):we(i,n,o,!1,s,r),l=[];return a.length?(i.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(i,t,e,s){const n=gt(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?ke(i,n,o,s,r):we(i,n,o,!1,s,r);if(a.length>0){const l=a[0].datasetIndex,c=i.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(i,t,e,s){const n=gt(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;return ke(i,n,o,s,r)},nearest(i,t,e,s){const n=gt(t,i),o=e.axis||"xy",r=e.includeInvisible||!1;return we(i,n,o,e.intersect,s,r)},x(i,t,e,s){const n=gt(t,i);return bi(i,n,"x",e.intersect,s)},y(i,t,e,s){const n=gt(t,i);return bi(i,n,"y",e.intersect,s)}}};const Ms=["left","top","right","bottom"];function Lt(i,t){return i.filter(e=>e.pos===t)}function xi(i,t){return i.filter(e=>Ms.indexOf(e.pos)===-1&&e.box.axis===t)}function It(i,t){return i.sort((e,s)=>{const n=t?s:e,o=t?e:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function Lo(i){const t=[];let e,s,n,o,r,a;for(e=0,s=(i||[]).length;e<s;++e)n=i[e],{position:o,options:{stack:r,stackWeight:a=1}}=n,t.push({index:e,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:r&&o+r,stackWeight:a});return t}function Io(i){const t={};for(const e of i){const{stack:s,pos:n,stackWeight:o}=e;if(!s||!Ms.includes(n))continue;const r=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function zo(i,t){const e=Io(i),{vBoxMaxWidth:s,hBoxMaxHeight:n}=t;let o,r,a;for(o=0,r=i.length;o<r;++o){a=i[o];const{fullSize:l}=a.box,c=e[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*s:l&&t.availableWidth,a.height=n):(a.width=s,a.height=h?h*n:l&&t.availableHeight)}return e}function Ro(i){const t=Lo(i),e=It(t.filter(c=>c.box.fullSize),!0),s=It(Lt(t,"left"),!0),n=It(Lt(t,"right")),o=It(Lt(t,"top"),!0),r=It(Lt(t,"bottom")),a=xi(t,"x"),l=xi(t,"y");return{fullSize:e,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(r).concat(a),chartArea:Lt(t,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(r).concat(a)}}function _i(i,t,e,s){return Math.max(i[e],t[e])+Math.max(i[s],t[s])}function Ps(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function Fo(i,t,e,s){const{pos:n,box:o}=e,r=i.maxPadding;if(!D(n)){e.size&&(i[n]-=e.size);const d=s[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,i[n]+=e.size}o.getPadding&&Ps(r,o.getPadding());const a=Math.max(0,t.outerWidth-_i(r,i,"left","right")),l=Math.max(0,t.outerHeight-_i(r,i,"top","bottom")),c=a!==i.w,h=l!==i.h;return i.w=a,i.h=l,e.horizontal?{same:c,other:h}:{same:h,other:c}}function Eo(i){const t=i.maxPadding;function e(s){const n=Math.max(t[s]-i[s],0);return i[s]+=n,n}i.y+=e("top"),i.x+=e("left"),e("right"),e("bottom")}function Bo(i,t){const e=t.maxPadding;function s(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return s(i?["left","right"]:["top","bottom"])}function Ft(i,t,e,s){const n=[];let o,r,a,l,c,h;for(o=0,r=i.length,c=0;o<r;++o){a=i[o],l=a.box,l.update(a.width||t.w,a.height||t.h,Bo(a.horizontal,t));const{same:d,other:u}=Fo(t,e,a,s);c|=d&&n.length,h=h||u,l.fullSize||n.push(a)}return c&&Ft(n,t,e,s)||h}function Qt(i,t,e,s,n){i.top=e,i.left=t,i.right=t+s,i.bottom=e+n,i.width=s,i.height=n}function yi(i,t,e,s){const n=e.padding;let{x:o,y:r}=t;for(const a of i){const l=a.box,c=s[a.stack]||{placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*h,u=c.size||l.height;Nt(c.start)&&(r=c.start),l.fullSize?Qt(l,n.left,r,e.outerWidth-n.right-n.left,u):Qt(l,t.left+c.placed,r,d,u),c.start=r,c.placed+=d,r=l.bottom}else{const d=t.h*h,u=c.size||l.width;Nt(c.start)&&(o=c.start),l.fullSize?Qt(l,o,n.top,u,e.outerHeight-n.bottom-n.top):Qt(l,o,t.top+c.placed,u,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=r}var U={addBox(i,t){i.boxes||(i.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},i.boxes.push(t)},removeBox(i,t){const e=i.boxes?i.boxes.indexOf(t):-1;e!==-1&&i.boxes.splice(e,1)},configure(i,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(i,t,e,s){if(!i)return;const n=Y(i.options.layout.padding),o=Math.max(t-n.width,0),r=Math.max(e-n.height,0),a=Ro(i.boxes),l=a.vertical,c=a.horizontal;T(i.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const h=l.reduce((g,p)=>p.box.options&&p.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);Ps(u,Y(s));const f=Object.assign({maxPadding:u,w:o,h:r,x:n.left,y:n.top},n),m=zo(l.concat(c),d);Ft(a.fullSize,f,d,m),Ft(l,f,d,m),Ft(c,f,d,m)&&Ft(l,f,d,m),Eo(f),yi(a.leftAndTop,f,d,m),f.x+=f.w,f.y+=f.h,yi(a.rightAndBottom,f,d,m),i.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},T(a.chartArea,g=>{const p=g.box;Object.assign(p,i.chartArea),p.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class Ds{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,n){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):s)}}isAttached(t){return!0}updateConfig(t){}}class Ho extends Ds{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ne="$chartjs",Wo={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vi=i=>i===null||i==="";function Vo(i,t){const e=i.style,s=i.getAttribute("height"),n=i.getAttribute("width");if(i[ne]={initial:{height:s,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",vi(n)){const o=ai(i,"width");o!==void 0&&(i.width=o)}if(vi(s))if(i.style.height==="")i.height=i.width/(t||2);else{const o=ai(i,"height");o!==void 0&&(i.height=o)}return i}const Os=qn?{passive:!0}:!1;function No(i,t,e){i&&i.addEventListener(t,e,Os)}function jo(i,t,e){i&&i.canvas&&i.canvas.removeEventListener(t,e,Os)}function $o(i,t){const e=Wo[i.type]||i.type,{x:s,y:n}=gt(i,t);return{type:e,chart:t,native:i,x:s!==void 0?s:null,y:n!==void 0?n:null}}function ue(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function Uo(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||ue(a.addedNodes,s),r=r&&!ue(a.removedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function Ko(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||ue(a.removedNodes,s),r=r&&!ue(a.addedNodes,s);r&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const $t=new Map;let ki=0;function Cs(){const i=window.devicePixelRatio;i!==ki&&(ki=i,$t.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function Yo(i,t){$t.size||window.addEventListener("resize",Cs),$t.set(i,t)}function Xo(i){$t.delete(i),$t.size||window.removeEventListener("resize",Cs)}function qo(i,t,e){const s=i.canvas,n=s&&Ne(s);if(!n)return;const o=as((a,l)=>{const c=n.clientWidth;e(a,l),c<n.clientWidth&&e()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(n),Yo(i,o),r}function Se(i,t,e){e&&e.disconnect(),t==="resize"&&Xo(i)}function Go(i,t,e){const s=i.canvas,n=as(o=>{i.ctx!==null&&e($o(o,i))},i);return No(s,t,n),n}class Qo extends Ds{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(Vo(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[ne])return!1;const s=e[ne].initial;["height","width"].forEach(o=>{const r=s[o];L(r)?e.removeAttribute(o):e.setAttribute(o,r)});const n=s.style||{};return Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e.width=e.width,delete e[ne],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),r={attach:Uo,detach:Ko,resize:qo}[e]||Go;n[e]=r(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),n=s[e];if(!n)return;({attach:Se,detach:Se,resize:Se}[e]||jo)(t,e,n),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,n){return Xn(t,e,s,n)}isAttached(t){const e=t&&Ne(t);return!!(e&&e.isConnected)}}function Zo(i){return!Ve()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?Ho:Qo}class Dt{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return ce(this.x)&&ce(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const n={};return t.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}}function Jo(i,t){const e=i.options.ticks,s=tr(i),n=Math.min(e.maxTicksLimit||s,s),o=e.major.enabled?ir(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>n)return sr(t,c,o,r/n),c;const h=er(o,t,n);if(r>0){let d,u;const f=r>1?Math.round((l-a)/(r-1)):null;for(Zt(t,c,h,L(f)?0:a-f,a),d=0,u=r-1;d<u;d++)Zt(t,c,h,o[d],o[d+1]);return Zt(t,c,h,l,L(f)?t.length:l+f),c}return Zt(t,c,h),c}function tr(i){const t=i.options.offset,e=i._tickSize(),s=i._length/e+(t?0:1),n=i._maxLength/e;return Math.floor(Math.min(s,n))}function er(i,t,e){const s=nr(i),n=t.length/e;if(!s)return Math.max(n,1);const o=en(s);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>n)return l}return Math.max(n,1)}function ir(i){const t=[];let e,s;for(e=0,s=i.length;e<s;e++)i[e].major&&t.push(e);return t}function sr(i,t,e,s){let n=0,o=e[0],r;for(s=Math.ceil(s),r=0;r<i.length;r++)r===o&&(t.push(i[r]),n++,o=e[n*s])}function Zt(i,t,e,s,n){const o=O(s,0),r=Math.min(O(n,i.length),i.length);let a=0,l,c,h;for(e=Math.ceil(e),n&&(l=n-s,e=l/Math.floor(l/e)),h=o;h<0;)a++,h=Math.round(o+a*e);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(i[c]),a++,h=Math.round(o+a*e))}function nr(i){const t=i.length;let e,s;if(t<2)return!1;for(s=i[0],e=1;e<t;++e)if(i[e]-i[e-1]!==s)return!1;return s}const or=i=>i==="left"?"right":i==="right"?"left":i,wi=(i,t,e)=>t==="top"||t==="left"?i[t]+e:i[t]-e,Si=(i,t)=>Math.min(t||i,i);function Mi(i,t){const e=[],s=i.length/t,n=i.length;let o=0;for(;o<n;o+=s)e.push(i[Math.floor(o)]);return e}function rr(i,t,e){const s=i.ticks.length,n=Math.min(t,s-1),o=i._startPixel,r=i._endPixel,a=1e-6;let l=i.getPixelForTick(n),c;if(!(e&&(s===1?c=Math.max(l-o,r-l):t===0?c=(i.getPixelForTick(1)-l)/2:c=(l-i.getPixelForTick(n-1))/2,l+=n<t?c:-c,l<o-a||l>r+a)))return l}function ar(i,t){T(i,e=>{const s=e.gc,n=s.length/2;let o;if(n>t){for(o=0;o<n;++o)delete e.data[s[o]];s.splice(0,n)}})}function zt(i){return i.drawTicks?i.tickLength:0}function Pi(i,t){if(!i.display)return 0;const e=H(i.font,t),s=Y(i.padding);return(F(i.text)?i.text.length:1)*e.lineHeight+s.height}function lr(i,t){return Pt(i,{scale:t,type:"scale"})}function cr(i,t,e){return Pt(i,{tick:e,index:t,type:"tick"})}function hr(i,t,e){let s=Re(i);return(e&&t!=="right"||!e&&t==="right")&&(s=or(s)),s}function dr(i,t,e,s){const{top:n,left:o,bottom:r,right:a,chart:l}=i,{chartArea:c,scales:h}=l;let d=0,u,f,m;const g=r-n,p=a-o;if(i.isHorizontal()){if(f=B(s,o,a),D(e)){const b=Object.keys(e)[0],x=e[b];m=h[b].getPixelForValue(x)+g-t}else e==="center"?m=(c.bottom+c.top)/2+g-t:m=wi(i,e,t);u=a-o}else{if(D(e)){const b=Object.keys(e)[0],x=e[b];f=h[b].getPixelForValue(x)-p+t}else e==="center"?f=(c.left+c.right)/2-p+t:f=wi(i,e,t);m=B(s,r,n),d=e==="left"?-X:X}return{titleX:f,titleY:m,maxWidth:u,rotation:d}}class Ot extends Dt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:s,_suggestedMax:n}=this;return t=Q(t,Number.POSITIVE_INFINITY),e=Q(e,Number.NEGATIVE_INFINITY),s=Q(s,Number.POSITIVE_INFINITY),n=Q(n,Number.NEGATIVE_INFINITY),{min:Q(t,s),max:Q(e,n),minDefined:K(t),maxDefined:K(e)}}getMinMax(t){let{min:e,max:s,minDefined:n,maxDefined:o}=this.getUserBounds(),r;if(n&&o)return{min:e,max:s};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),n||(e=Math.min(e,r.min)),o||(s=Math.max(s,r.max));return e=o&&e>s?s:e,s=n&&e>s?e:s,{min:Q(e,Q(s,e)),max:Q(s,Q(e,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){I(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:n,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=In(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Mi(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=Jo(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,s;this.isHorizontal()?(e=this.left,s=this.right):(e=this.top,s=this.bottom,t=!t),this._startPixel=e,this._endPixel=s,this._reversePixels=t,this._length=s-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){I(this.options.afterUpdate,[this])}beforeSetDimensions(){I(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){I(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),I(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){I(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s],o.label=I(e.callback,[o.value,s,t],this)}afterTickToLabelConversion(){I(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){I(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,s=Si(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,o=e.maxRotation;let r=n,a,l,c;if(!this._isVisible()||!e.display||n>=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=q(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/s:f/(s-1),d+6>a&&(a=f/(s-(t.offset?.5:1)),l=this.maxHeight-zt(t.grid)-e.padding-Pi(t.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),r=rn(Math.min(Math.asin(q((h.highest.height+6)/a,-1,1)),Math.asin(q(l/c,-1,1))-Math.asin(q(u/c,-1,1)))),r=Math.max(n,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){I(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){I(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:n,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Pi(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=zt(o)+l):(t.height=this.maxHeight,t.width=zt(o)+l),s.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),f=s.padding*2,m=pt(this.labelRotation),g=Math.cos(m),p=Math.sin(m);if(a){const b=s.mirror?0:p*d.width+g*u.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=s.mirror?0:g*d.width+p*u.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,h,p,g)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,n){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,f=0;l?c?(u=n*t.width,f=s*e.height):(u=s*t.height,f=n*e.width):o==="start"?f=e.width:o==="end"?u=t.width:o!=="inner"&&(u=t.width/2,f=e.width/2),this.paddingLeft=Math.max((u-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-d+r)*this.width/(this.width-d),0)}else{let h=e.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=e.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){I(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e<s;e++)L(t[e].label)&&(t.splice(e,1),s--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let s=this.ticks;e<s.length&&(s=Mi(s,e)),this._labelSizes=t=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,s){const{ctx:n,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(e/Si(e,s));let c=0,h=0,d,u,f,m,g,p,b,x,_,v,y;for(d=0;d<e;d+=l){if(m=t[d].label,g=this._resolveTickFontOptions(d),n.font=p=g.string,b=o[p]=o[p]||{data:{},gc:[]},x=g.lineHeight,_=v=0,!L(m)&&!F(m))_=ei(n,b.data,b.gc,_,m),v=x;else if(F(m))for(u=0,f=m.length;u<f;++u)y=m[u],!L(y)&&!F(y)&&(_=ei(n,b.data,b.gc,_,y),v+=x);r.push(_),a.push(v),c=Math.max(_,c),h=Math.max(v,h)}ar(o,e);const k=r.indexOf(c),S=a.indexOf(h),w=M=>({width:r[M]||0,height:a[M]||0});return{first:w(0),last:w(e-1),widest:w(k),highest:w(S),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return hn(this._alignToPixels?ut(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const s=e[t];return s.$context||(s.$context=cr(this.getContext(),t,s))}return this.$context||(this.$context=lr(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=pt(this.labelRotation),s=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*s>a*n?a/s:l/n:l*n<a*s?l/s:a/n}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,s=this.chart,n=this.options,{grid:o,position:r,border:a}=n,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=zt(o),f=[],m=a.setContext(this.getContext()),g=m.display?m.width:0,p=g/2,b=function(E){return ut(s,E,g)};let x,_,v,y,k,S,w,M,A,P,C,V;if(r==="top")x=b(this.bottom),S=this.bottom-u,M=x-p,P=b(t.top)+p,V=t.bottom;else if(r==="bottom")x=b(this.top),P=t.top,V=b(t.bottom)-p,S=x+p,M=this.top+u;else if(r==="left")x=b(this.right),k=this.right-u,w=x-p,A=b(t.left)+p,C=t.right;else if(r==="right")x=b(this.left),A=t.left,C=b(t.right)-p,k=x+p,w=this.left+u;else if(e==="x"){if(r==="center")x=b((t.top+t.bottom)/2+.5);else if(D(r)){const E=Object.keys(r)[0],$=r[E];x=b(this.chart.scales[E].getPixelForValue($))}P=t.top,V=t.bottom,S=x+p,M=S+u}else if(e==="y"){if(r==="center")x=b((t.left+t.right)/2);else if(D(r)){const E=Object.keys(r)[0],$=r[E];x=b(this.chart.scales[E].getPixelForValue($))}k=x-p,w=k-u,A=t.left,C=t.right}const G=O(n.ticks.maxTicksLimit,d),z=Math.max(1,Math.ceil(d/G));for(_=0;_<d;_+=z){const E=this.getContext(_),$=o.setContext(E),Ut=a.setContext(E),Kt=$.lineWidth,xt=$.color,Yt=Ut.dash||[],_t=Ut.dashOffset,Ct=$.tickWidth,lt=$.tickColor,Tt=$.tickBorderDash||[],ct=$.tickBorderDashOffset;v=rr(this,_,l),v!==void 0&&(y=ut(s,v,Kt),c?k=w=A=C=y:S=M=P=V=y,f.push({tx1:k,ty1:S,tx2:w,ty2:M,x1:A,y1:P,x2:C,y2:V,width:Kt,color:xt,borderDash:Yt,borderDashOffset:_t,tickWidth:Ct,tickColor:lt,tickBorderDash:Tt,tickBorderDashOffset:ct}))}return this._ticksLength=d,this._borderValue=x,f}_computeLabelItems(t){const e=this.axis,s=this.options,{position:n,ticks:o}=s,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,u=zt(s.grid),f=u+h,m=d?-h:f,g=-pt(this.labelRotation),p=[];let b,x,_,v,y,k,S,w,M,A,P,C,V="middle";if(n==="top")k=this.bottom-m,S=this._getXAxisLabelAlignment();else if(n==="bottom")k=this.top+m,S=this._getXAxisLabelAlignment();else if(n==="left"){const z=this._getYAxisLabelAlignment(u);S=z.textAlign,y=z.x}else if(n==="right"){const z=this._getYAxisLabelAlignment(u);S=z.textAlign,y=z.x}else if(e==="x"){if(n==="center")k=(t.top+t.bottom)/2+f;else if(D(n)){const z=Object.keys(n)[0],E=n[z];k=this.chart.scales[z].getPixelForValue(E)+f}S=this._getXAxisLabelAlignment()}else if(e==="y"){if(n==="center")y=(t.left+t.right)/2-f;else if(D(n)){const z=Object.keys(n)[0],E=n[z];y=this.chart.scales[z].getPixelForValue(E)}S=this._getYAxisLabelAlignment(u).textAlign}e==="y"&&(l==="start"?V="top":l==="end"&&(V="bottom"));const G=this._getLabelSizes();for(b=0,x=a.length;b<x;++b){_=a[b],v=_.label;const z=o.setContext(this.getContext(b));w=this.getPixelForTick(b)+o.labelOffset,M=this._resolveTickFontOptions(b),A=M.lineHeight,P=F(v)?v.length:1;const E=P/2,$=z.color,Ut=z.textStrokeColor,Kt=z.textStrokeWidth;let xt=S;r?(y=w,S==="inner"&&(b===x-1?xt=this.options.reverse?"left":"right":b===0?xt=this.options.reverse?"right":"left":xt="center"),n==="top"?c==="near"||g!==0?C=-P*A+A/2:c==="center"?C=-G.highest.height/2-E*A+A:C=-G.highest.height+A/2:c==="near"||g!==0?C=A/2:c==="center"?C=G.highest.height/2-E*A:C=G.highest.height-P*A,d&&(C*=-1),g!==0&&!z.showLabelBackdrop&&(y+=A/2*Math.sin(g))):(k=w,C=(1-P)*A/2);let Yt;if(z.showLabelBackdrop){const _t=Y(z.backdropPadding),Ct=G.heights[b],lt=G.widths[b];let Tt=C-_t.top,ct=0-_t.left;switch(V){case"middle":Tt-=Ct/2;break;case"bottom":Tt-=Ct;break}switch(S){case"center":ct-=lt/2;break;case"right":ct-=lt;break;case"inner":b===x-1?ct-=lt:b>0&&(ct-=lt/2);break}Yt={left:ct,top:Tt,width:lt+_t.width,height:Ct+_t.height,color:z.backdropColor}}p.push({label:v,font:M,textOffset:C,options:{rotation:g,color:$,strokeColor:Ut,strokeWidth:Kt,textAlign:xt,textBaseline:V,translation:[y,k],backdrop:Yt}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-pt(this.labelRotation))return t==="top"?"left":"right";let n="center";return e.align==="start"?n="left":e.align==="end"?n="right":e.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return e==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):e==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:n,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,n,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(e.display)for(o=0,r=n.length;o<r;++o){const l=n[o];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:s,grid:n}}=this,o=s.setContext(this.getContext()),r=s.display?o.width:0;if(!r)return;const a=n.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,d,u;this.isHorizontal()?(c=ut(t,this.left,r)-r/2,h=ut(t,this.right,a)+a/2,d=u=l):(d=ut(t,this.top,r)-r/2,u=ut(t,this.bottom,a)+a/2,c=h=l),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(c,d),e.lineTo(h,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,n=this._computeLabelArea();n&&Fe(s,n);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;jt(s,c,0,h,l,a)}n&&Ee(s)}drawTitle(){const{ctx:t,options:{position:e,title:s,reverse:n}}=this;if(!s.display)return;const o=H(s.font),r=Y(s.padding),a=s.align;let l=o.lineHeight/2;e==="bottom"||e==="center"||D(e)?(l+=r.bottom,F(s.text)&&(l+=o.lineHeight*(s.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:d,rotation:u}=dr(this,l,e,a);jt(t,s.text,0,0,o,{color:s.color,maxWidth:d,rotation:u,textAlign:hr(a,e,n),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,s=O(t.grid&&t.grid.z,-1),n=O(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ot.prototype.draw?[{z:e,draw:o=>{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let o,r;for(o=0,r=e.length;o<r;++o){const a=e[o];a[s]===this.id&&(!t||a.type===t)&&n.push(a)}return n}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return H(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Jt{constructor(t,e,s){this.type=t,this.scope=e,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let s;gr(e)&&(s=this.register(e));const n=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,ur(t,r,s),this.override&&R.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,s=t.id,n=this.scope;s in e&&delete e[s],n&&s in R[n]&&(delete R[n][s],this.override&&delete bt[s])}}function ur(i,t,e){const s=Vt(Object.create(null),[e?R.get(e):{},R.get(t),i.defaults]);R.set(t,s),i.defaultRoutes&&fr(t,i.defaultRoutes),i.descriptors&&R.describe(t,i.descriptors)}function fr(i,t){Object.keys(t).forEach(e=>{const s=e.split("."),n=s.pop(),o=[i].concat(s).join("."),r=t[e].split("."),a=r.pop(),l=r.join(".");R.route(o,n,l,a)})}function gr(i){return"id"in i&&"defaults"in i}class pr{constructor(){this.controllers=new Jt(ws,"datasets",!0),this.elements=new Jt(Dt,"elements"),this.plugins=new Jt(Object,"plugins"),this.scales=new Jt(Ot,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,s){[...e].forEach(n=>{const o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):T(n,r=>{const a=s||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,s){const n=Ie(t);I(s["before"+n],[],s),e[t](s),I(s["after"+n],[],s)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const s=this._typedRegistries[e];if(s.isForType(t))return s}return this.plugins}_get(t,e,s){const n=e.get(t);if(n===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return n}}var J=new pr;class mr{constructor(){this._init=void 0}notify(t,e,s,n){if(e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const o=n?this._descriptors(t).filter(n):this._descriptors(t),r=this._notify(o,t,e,s);return e==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),r}_notify(t,e,s,n){n=n||{};for(const o of t){const r=o.plugin,a=r[s],l=[e,n,o.options];if(I(a,l,r)===!1&&n.cancelable)return!1}return!0}invalidate(){L(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const s=t&&t.config,n=O(s.options&&s.options.plugins,{}),o=br(s);return n===!1&&!e?[]:_r(t,o,n,e)}_notifyStateChanges(t){const e=this._oldCache||[],s=this._cache,n=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(n(e,s),t,"stop"),this._notify(n(s,e),t,"start")}}function br(i){const t={},e=[],s=Object.keys(J.plugins.items);for(let o=0;o<s.length;o++)e.push(J.getPlugin(s[o]));const n=i.plugins||[];for(let o=0;o<n.length;o++){const r=n[o];e.indexOf(r)===-1&&(e.push(r),t[r.id]=!0)}return{plugins:e,localIds:t}}function xr(i,t){return!t&&i===!1?null:i===!0?{}:i}function _r(i,{plugins:t,localIds:e},s,n){const o=[],r=i.getContext();for(const a of t){const l=a.id,c=xr(s[l],n);c!==null&&o.push({plugin:a,options:yr(i.config,{plugin:a,local:e[l]},c,r)})}return o}function yr(i,{plugin:t,local:e},s,n){const o=i.pluginScopeKeys(t),r=i.getOptionScopes(s,o);return e&&t.defaults&&r.push(t.defaults),i.createResolver(r,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ae(i,t){const e=R.datasets[i]||{};return((t.datasets||{})[i]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function vr(i,t){let e=i;return i==="_index_"?e=t:i==="_value_"&&(e=t==="x"?"y":"x"),e}function kr(i,t){return i===t?"_index_":"_value_"}function Di(i){if(i==="x"||i==="y"||i==="r")return i}function wr(i){if(i==="top"||i==="bottom")return"x";if(i==="left"||i==="right")return"y"}function Le(i,...t){if(Di(i))return i;for(const e of t){const s=e.axis||wr(e.position)||i.length>1&&Di(i[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`)}function Oi(i,t,e){if(e[t+"AxisID"]===i)return{axis:t}}function Sr(i,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(s=>s.xAxisID===i||s.yAxisID===i);if(e.length)return Oi(i,"x",e[0])||Oi(i,"y",e[0])}return{}}function Mr(i,t){const e=bt[i.type]||{scales:{}},s=t.scales||{},n=Ae(i.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{const a=s[r];if(!D(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Le(r,a,Sr(r,i),R.scales[a.type]),c=kr(l,n),h=e.scales||{};o[r]=Bt(Object.create(null),[{axis:l},a,h[l],h[c]])}),i.data.datasets.forEach(r=>{const a=r.type||i.type,l=r.indexAxis||Ae(a,t),h=(bt[a]||{}).scales||{};Object.keys(h).forEach(d=>{const u=vr(d,l),f=r[u+"AxisID"]||u;o[f]=o[f]||Object.create(null),Bt(o[f],[{axis:u},s[f],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Bt(a,[R.scales[a.type],R.scale])}),o}function Ts(i){const t=i.options||(i.options={});t.plugins=O(t.plugins,{}),t.scales=Mr(i,t)}function As(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function Pr(i){return i=i||{},i.data=As(i.data),Ts(i),i}const Ci=new Map,Ls=new Set;function te(i,t){let e=Ci.get(i);return e||(e=t(),Ci.set(i,e),Ls.add(e)),e}const Rt=(i,t,e)=>{const s=St(t,e);s!==void 0&&i.add(s)};class Dr{constructor(t){this._config=Pr(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=As(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ts(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return te(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return te(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return te(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return te(`${s}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let n=s.get(t);return(!n||e)&&(n=new Map,s.set(t,n)),n}getOptionScopes(t,e,s){const{options:n,type:o}=this,r=this._cachedScopes(t,s),a=r.get(e);if(a)return a;const l=new Set;e.forEach(h=>{t&&(l.add(t),h.forEach(d=>Rt(l,t,d))),h.forEach(d=>Rt(l,n,d)),h.forEach(d=>Rt(l,bt[o]||{},d)),h.forEach(d=>Rt(l,R,d)),h.forEach(d=>Rt(l,Te,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Ls.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,bt[e]||{},R.datasets[e]||{},{type:e},R,Te]}resolveNamedOptions(t,e,s,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Ti(this._resolverCache,t,n);let l=r;if(Cr(r,e)){o.$shared=!1,s=at(s)?s():s;const c=this.createResolver(t,s,a);l=Mt(r,s,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,s=[""],n){const{resolver:o}=Ti(this._resolverCache,t,s);return D(e)?Mt(o,e,void 0,n):o}}function Ti(i,t,e){let s=i.get(t);s||(s=new Map,i.set(t,s));const n=e.join();let o=s.get(n);return o||(o={resolver:Be(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,o)),o}const Or=i=>D(i)&&Object.getOwnPropertyNames(i).some(t=>at(i[t]));function Cr(i,t){const{isScriptable:e,isIndexable:s}=ps(i);for(const n of t){const o=e(n),r=s(n),a=(r||o)&&i[n];if(o&&(at(a)||Or(a))||r&&F(a))return!0}return!1}var Tr="4.5.1";const Ar=["top","bottom","left","right","chartArea"];function Ai(i,t){return i==="top"||i==="bottom"||Ar.indexOf(i)===-1&&t==="x"}function Li(i,t){return function(e,s){return e[i]===s[i]?e[t]-s[t]:e[i]-s[i]}}function Ii(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),I(e&&e.onComplete,[i],t)}function Lr(i){const t=i.chart,e=t.options.animation;I(e&&e.onProgress,[i],t)}function Is(i){return Ve()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const oe={},zi=i=>{const t=Is(i);return Object.values(oe).filter(e=>e.canvas===t).pop()};function Ir(i,t,e){const s=Object.keys(i);for(const n of s){const o=+n;if(o>=t){const r=i[n];delete i[n],(e>0||o>t)&&(i[o+e]=r)}}}function zr(i,t,e,s){return!e||i.type==="mouseout"?null:s?t:i}let $e=class{static defaults=R;static instances=oe;static overrides=bt;static registry=J;static version=Tr;static getChart=zi;static register(...t){J.add(...t),Ri()}static unregister(...t){J.remove(...t),Ri()}constructor(t,e){const s=this.config=new Dr(e),n=Is(t),o=zi(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||Zo(n)),this.platform.updateConfig(s);const a=this.platform.acquireContext(n,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=Ys(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new mr,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=gn(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],oe[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}et.listen(this,"complete",Ii),et.listen(this,"progress",Lr),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return L(t)?e&&o?o:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return J}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ri(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ii(this.canvas,this.ctx),this}stop(){return et.stop(this),this}resize(t,e){et.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,n=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(n,t,e,o),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,ri(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),I(s.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};T(e,(s,n)=>{s.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,n=Object.keys(s).reduce((r,a)=>(r[a]=!1,r),{});let o=[];e&&(o=o.concat(Object.keys(e).map(r=>{const a=e[r],l=Le(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),T(o,r=>{const a=r.options,l=a.id,c=Le(l,a),h=O(a.type,r.dtype);(a.position===void 0||Ai(a.position,c)!==Ai(r.dposition))&&(a.position=r.dposition),n[l]=!0;let d=null;if(l in s&&s[l].type===h)d=s[l];else{const u=J.getScale(h);d=new u({id:l,type:h,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,t)}),T(n,(r,a)=>{r||delete s[a]}),T(s,r=>{U.configure(this,r,r.options),U.addBox(this,r)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((n,o)=>n.index-o.index),s>e){for(let n=e;n<s;++n)this._destroyDatasetMeta(n);t.splice(e,s-e)}this._sortedMetasets=t.slice(0).sort(Li("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((s,n)=>{e.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=e.length;s<n;s++){const o=e[s];let r=this.getDatasetMeta(s);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(s),r=this.getDatasetMeta(s)),r.type=a,r.indexAxis=o.indexAxis||Ae(a,this.options),r.order=o.order||0,r.index=s,r.label=""+o.label,r.visible=this.isDatasetVisible(s),r.controller)r.controller.updateIndex(s),r.controller.linkScales();else{const l=J.getController(a),{datasetElementType:c,dataElementType:h}=R.datasets[a];Object.assign(l,{dataElementType:J.getElement(h),datasetElementType:c&&J.getElement(c)}),r.controller=new l(this,s),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){T(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c<h;c++){const{controller:d}=this.getDatasetMeta(c),u=!n&&o.indexOf(d)===-1;d.buildOrUpdateElements(u),r=Math.max(+d.getMaxOverflow(),r)}r=this._minPadding=s.layout.autoPadding?r:0,this._updateLayout(r),n||T(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Li("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){T(this.scales,t=>{U.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!Ke(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:o}of e){const r=s==="_removeElements"?-o:o;Ir(t,n,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),n=s(0);for(let o=1;o<e;o++)if(!Ke(n,s(o)))return;return Array.from(n).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;U.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],T(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e<s;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,s=this.data.datasets.length;e<s;++e)this._updateDataset(e,at(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const s=this.getDatasetMeta(t),n={meta:s,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",n)!==!1&&(s.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(et.has(this)?this.attached&&!et.running(this)&&et.start(this):(this.draw(),Ii({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:n}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,n)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,s=[];let n,o;for(n=0,o=e.length;n<o;++n){const r=e[n];(!t||r.visible)&&s.push(r)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s={meta:t,index:t.index,cancelable:!0},n=Jn(this,t);this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(n&&Fe(e,n),t.controller.draw(),n&&Ee(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return us(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,n){const o=Ao.modes[e];return typeof o=="function"?o(this,t,s,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let n=s.filter(o=>o&&o._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=Pt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const n=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,n);Nt(e)?(o.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(a=>a.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),et.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ii(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete oe[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,s=(o,r)=>{e.addEventListener(this,o,r),t[o]=r},n=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};T(this.options.events,o=>s(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),s("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){T(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},T(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const n=s?"set":"remove";let o,r,a,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[n+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],s=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!re(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,s){const n=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(e,t),a=s?t:o(t,e);r.length&&this.updateHoverStyle(r,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const o=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(o||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:n=[],options:o}=this,r=e,a=this._getActiveElements(t,n,s,r),l=Js(t),c=zr(t,this._lastEvent,s,l);s&&(this._lastEvent=null,I(o.onHover,[t,a,this],this),l&&I(o.onClick,[t,a,this],this));const h=!re(a,n);return(h||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,s,n){if(t.type==="mouseout")return[];if(!s)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}};function Ri(){return T($e.instances,i=>i._plugins.invalidate())}function zs(i,t){const{x:e,y:s,base:n,width:o,height:r}=i.getProps(["x","y","base","width","height"],t);let a,l,c,h,d;return i.horizontal?(d=r/2,a=Math.min(e,n),l=Math.max(e,n),c=s-d,h=s+d):(d=o/2,a=e-d,l=e+d,c=Math.min(s,n),h=Math.max(s,n)),{left:a,top:c,right:l,bottom:h}}function nt(i,t,e,s){return i?0:q(t,e,s)}function Rr(i,t,e){const s=i.options.borderWidth,n=i.borderSkipped,o=gs(s);return{t:nt(n.top,o.top,0,e),r:nt(n.right,o.right,0,t),b:nt(n.bottom,o.bottom,0,e),l:nt(n.left,o.left,0,t)}}function Fr(i,t,e){const{enableBorderRadius:s}=i.getProps(["enableBorderRadius"]),n=i.options.borderRadius,o=kt(n),r=Math.min(t,e),a=i.borderSkipped,l=s||D(n);return{topLeft:nt(!l||a.top||a.left,o.topLeft,0,r),topRight:nt(!l||a.top||a.right,o.topRight,0,r),bottomLeft:nt(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:nt(!l||a.bottom||a.right,o.bottomRight,0,r)}}function Er(i){const t=zs(i),e=t.right-t.left,s=t.bottom-t.top,n=Rr(i,e/2,s/2),o=Fr(i,e/2,s/2);return{outer:{x:t.left,y:t.top,w:e,h:s,radius:o},inner:{x:t.left+n.l,y:t.top+n.t,w:e-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}function Me(i,t,e,s){const n=t===null,o=e===null,a=i&&!(n&&o)&&zs(i,s);return a&&(n||vt(t,a.left,a.right))&&(o||vt(e,a.top,a.bottom))}function Br(i){return i.topLeft||i.topRight||i.bottomLeft||i.bottomRight}function Hr(i,t){i.rect(t.x,t.y,t.w,t.h)}function Pe(i,t,e={}){const s=i.x!==e.x?-t:0,n=i.y!==e.y?-t:0,o=(i.x+i.w!==e.x+e.w?t:0)-s,r=(i.y+i.h!==e.y+e.h?t:0)-n;return{x:i.x+s,y:i.y+n,w:i.w+o,h:i.h+r,radius:i.radius}}class xa extends Dt{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:s,backgroundColor:n}}=this,{inner:o,outer:r}=Er(this),a=Br(r.radius)?he:Hr;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,Pe(r,e,o)),t.clip(),a(t,Pe(o,-e,r)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),a(t,Pe(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,s){return Me(this,t,e,s)}inXRange(t,e){return Me(this,t,null,e)}inYRange(t,e){return Me(this,null,t,e)}getCenterPoint(t){const{x:e,y:s,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?s:(s+n)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}const Fi=(i,t)=>{let{boxHeight:e=t,boxWidth:s=t}=i;return i.usePointStyle&&(e=Math.min(e,t),s=i.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:e,itemHeight:Math.max(t,e)}},Wr=(i,t)=>i!==null&&t!==null&&i.datasetIndex===t.datasetIndex&&i.index===t.index;class Ei extends Dt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,s){this.maxWidth=t,this.maxHeight=e,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=I(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(s=>t.filter(s,this.chart.data))),t.sort&&(e=e.sort((s,n)=>t.sort(s,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,n=H(s.font),o=n.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Fi(s,o);let c,h;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,n,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,s,n){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+a;let d=t;o.textAlign="left",o.textBaseline="middle";let u=-1,f=-h;return this.legendItems.forEach((m,g)=>{const p=s+e/2+o.measureText(m.text).width;(g===0||c[c.length-1]+p+2*a>r)&&(d+=h,c[c.length-(g>0?0:1)]=0,f+=h,u++),l[g]={left:0,top:f,row:u,width:p,height:n},c[c.length-1]+=p+a}),d}_fitCols(t,e,s,n){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let d=a,u=0,f=0,m=0,g=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:x,itemHeight:_}=Vr(s,e,o,p,n);b>0&&f+_+2*a>h&&(d+=u+a,c.push({width:u,height:f}),m+=u+a,g++,u=f=0),l[b]={left:m,top:f,col:g,width:x,height:_},u=Math.max(u,x),f+=_+a}),d+=u,c.push({width:u,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:s,labels:{padding:n},rtl:o}}=this,r=wt(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=B(s,this.left+n,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=B(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+t+n,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+n}else{let a=0,l=B(s,this.top+t+n,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=B(s,this.top+t+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Fe(t,this),this._draw(),Ee(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:s,ctx:n}=this,{align:o,labels:r}=t,a=R.color,l=wt(t.rtl,this.left,this.width),c=H(r.font),{padding:h}=r,d=c.size,u=d/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:m,boxHeight:g,itemHeight:p}=Fi(r,d),b=function(k,S,w){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;n.save();const M=O(w.lineWidth,1);if(n.fillStyle=O(w.fillStyle,a),n.lineCap=O(w.lineCap,"butt"),n.lineDashOffset=O(w.lineDashOffset,0),n.lineJoin=O(w.lineJoin,"miter"),n.lineWidth=M,n.strokeStyle=O(w.strokeStyle,a),n.setLineDash(O(w.lineDash,[])),r.usePointStyle){const A={radius:g*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:M},P=l.xPlus(k,m/2),C=S+u;ds(n,A,P,C,r.pointStyleWidth&&m)}else{const A=S+Math.max((d-g)/2,0),P=l.leftForLtr(k,m),C=kt(w.borderRadius);n.beginPath(),Object.values(C).some(V=>V!==0)?he(n,{x:P,y:A,w:m,h:g,radius:C}):n.rect(P,A,m,g),n.fill(),M!==0&&n.stroke()}n.restore()},x=function(k,S,w){jt(n,w.text,k,S+p/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},_=this.isHorizontal(),v=this._computeTitleHeight();_?f={x:B(o,this.left+h,this.right-s[0]),y:this.top+h+v,line:0}:f={x:this.left+h,y:B(o,this.top+v+h,this.bottom-e[0].height),line:0},_s(this.ctx,t.textDirection);const y=p+h;this.legendItems.forEach((k,S)=>{n.strokeStyle=k.fontColor,n.fillStyle=k.fontColor;const w=n.measureText(k.text).width,M=l.textAlign(k.textAlign||(k.textAlign=r.textAlign)),A=m+u+w;let P=f.x,C=f.y;l.setWidth(this.width),_?S>0&&P+A+h>this.right&&(C=f.y+=y,f.line++,P=f.x=B(o,this.left+h,this.right-s[f.line])):S>0&&C+y>this.bottom&&(P=f.x=P+e[f.line].width+h,f.line++,C=f.y=B(o,this.top+v+h,this.bottom-e[f.line].height));const V=l.x(P);if(b(V,C,k),P=pn(M,P+m+u,_?P+A:this.right,t.rtl),x(l.x(P),C,k),_)f.x+=A+h;else if(typeof k.text!="string"){const G=c.lineHeight;f.y+=Rs(k,G)+h}else f.y+=y}),ys(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,s=H(e.font),n=Y(e.padding);if(!e.display)return;const o=wt(t.rtl,this.left,this.width),r=this.ctx,a=e.position,l=s.size/2,c=n.top+l;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=B(t.align,d,this.right-u);else{const m=this.columnSizes.reduce((g,p)=>Math.max(g,p.height),0);h=c+B(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const f=B(a,d,d+u);r.textAlign=o.textAlign(Re(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=s.string,jt(r,e.text,f,h,s)}_computeTitleHeight(){const t=this.options.title,e=H(t.font),s=Y(t.padding);return t.display?e.lineHeight+s.height:0}_getLegendItemAt(t,e){let s,n,o;if(vt(t,this.left,this.right)&&vt(e,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(n=o[s],vt(t,n.left,n.left+n.width)&&vt(e,n.top,n.top+n.height))return this.legendItems[s]}return null}handleEvent(t){const e=this.options;if(!$r(t.type,e))return;const s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const n=this._hoveredItem,o=Wr(n,s);n&&!o&&I(e.onLeave,[t,n,this],this),this._hoveredItem=s,s&&!o&&I(e.onHover,[t,s,this],this)}else s&&I(e.onClick,[t,s,this],this)}}function Vr(i,t,e,s,n){const o=Nr(s,i,t,e),r=jr(n,s,t.lineHeight);return{itemWidth:o,itemHeight:r}}function Nr(i,t,e,s){let n=i.text;return n&&typeof n!="string"&&(n=n.reduce((o,r)=>o.length>r.length?o:r)),t+e.size/2+s.measureText(n).width}function jr(i,t,e){let s=i;return typeof t.text!="string"&&(s=Rs(t,e)),s}function Rs(i,t){const e=i.text?i.text.length:0;return t*e}function $r(i,t){return!!((i==="mousemove"||i==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(i==="click"||i==="mouseup"))}var _a={id:"legend",_element:Ei,start(i,t,e){const s=i.legend=new Ei({ctx:i.ctx,options:e,chart:i});U.configure(i,s,e),U.addBox(i,s)},stop(i){U.removeBox(i,i.legend),delete i.legend},beforeUpdate(i,t,e){const s=i.legend;U.configure(i,s,e),s.options=e},afterUpdate(i){const t=i.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(i,t){t.replay||i.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(i,t,e){const s=t.datasetIndex,n=e.chart;n.isDatasetVisible(s)?(n.hide(s),t.hidden=!0):(n.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:i=>i.chart.options.color,boxWidth:40,padding:10,generateLabels(i){const t=i.data.datasets,{labels:{usePointStyle:e,pointStyle:s,textAlign:n,color:o,useBorderRadius:r,borderRadius:a}}=i.legend.options;return i._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(e?0:void 0),h=Y(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:i=>i.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:i=>!i.startsWith("on"),labels:{_scriptable:i=>!["generateLabels","filter","sort"].includes(i)}}};class Fs extends Dt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const n=F(s.text)?s.text.length:1;this._padding=Y(s.padding);const o=n*H(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:s,bottom:n,right:o,options:r}=this,a=r.align;let l=0,c,h,d;return this.isHorizontal()?(h=B(a,s,o),d=e+t,c=o-s):(r.position==="left"?(h=s+t,d=B(a,n,e),l=W*-.5):(h=o-t,d=B(a,e,n),l=W*.5),c=n-e),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const s=H(e.font),o=s.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);jt(t,e.text,0,0,s,{color:e.color,maxWidth:l,rotation:c,textAlign:Re(e.align),textBaseline:"middle",translation:[r,a]})}}function Ur(i,t){const e=new Fs({ctx:i.ctx,options:t,chart:i});U.configure(i,e,t),U.addBox(i,e),i.titleBlock=e}var ya={id:"title",_element:Fs,start(i,t,e){Ur(i,e)},stop(i){const t=i.titleBlock;U.removeBox(i,t),delete i.titleBlock},beforeUpdate(i,t,e){const s=i.titleBlock;U.configure(i,s,e),s.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Et={average(i){if(!i.length)return!1;let t,e,s=new Set,n=0,o=0;for(t=0,e=i.length;t<e;++t){const a=i[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();s.add(l.x),n+=l.y,++o}}return o===0||s.size===0?!1:{x:[...s].reduce((a,l)=>a+l)/s.size,y:n/o}},nearest(i,t){if(!i.length)return!1;let e=t.x,s=t.y,n=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=i.length;o<r;++o){const l=i[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=ln(t,c);h<n&&(n=h,a=l)}}if(a){const l=a.tooltipPosition();e=l.x,s=l.y}return{x:e,y:s}}};function Z(i,t){return t&&(F(t)?Array.prototype.push.apply(i,t):i.push(t)),i}function it(i){return(typeof i=="string"||i instanceof String)&&i.indexOf(`
12
+ `)>-1?i.split(`
13
+ `):i}function Kr(i,t){const{element:e,datasetIndex:s,index:n}=t,o=i.getDatasetMeta(s).controller,{label:r,value:a}=o.getLabelAndValue(n);return{chart:i,label:r,parsed:o.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:a,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function Bi(i,t){const e=i.chart.ctx,{body:s,footer:n,title:o}=i,{boxWidth:r,boxHeight:a}=t,l=H(t.bodyFont),c=H(t.titleFont),h=H(t.footerFont),d=o.length,u=n.length,f=s.length,m=Y(t.padding);let g=m.height,p=0,b=s.reduce((v,y)=>v+y.before.length+y.lines.length+y.after.length,0);if(b+=i.beforeBody.length+i.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const v=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*v+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}u&&(g+=t.footerMarginTop+u*h.lineHeight+(u-1)*t.footerSpacing);let x=0;const _=function(v){p=Math.max(p,e.measureText(v).width+x)};return e.save(),e.font=c.string,T(i.title,_),e.font=l.string,T(i.beforeBody.concat(i.afterBody),_),x=t.displayColors?r+2+t.boxPadding:0,T(s,v=>{T(v.before,_),T(v.lines,_),T(v.after,_)}),x=0,e.font=h.string,T(i.footer,_),e.restore(),p+=m.width,{width:p,height:g}}function Yr(i,t){const{y:e,height:s}=t;return e<s/2?"top":e>i.height-s/2?"bottom":"center"}function Xr(i,t,e,s){const{x:n,width:o}=s,r=e.caretSize+e.caretPadding;if(i==="left"&&n+o+r>t.width||i==="right"&&n-o-r<0)return!0}function qr(i,t,e,s){const{x:n,width:o}=e,{width:r,chartArea:{left:a,right:l}}=i;let c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=o/2?c="left":n>=r-o/2&&(c="right"),Xr(c,i,t,e)&&(c="center"),c}function Hi(i,t,e){const s=e.yAlign||t.yAlign||Yr(i,e);return{xAlign:e.xAlign||t.xAlign||qr(i,t,e,s),yAlign:s}}function Gr(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function Qr(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function Wi(i,t,e,s){const{caretSize:n,caretPadding:o,cornerRadius:r}=i,{xAlign:a,yAlign:l}=e,c=n+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=kt(r);let m=Gr(t,a);const g=Qr(t,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(h,u)+n:a==="right"&&(m+=Math.max(d,f)+n),{x:q(m,0,s.width-t.width),y:q(g,0,s.height-t.height)}}function ee(i,t,e){const s=Y(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function Vi(i){return Z([],it(i))}function Zr(i,t,e){return Pt(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Ni(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const Es={beforeTitle:tt,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return e[t.dataIndex]}return""},afterTitle:tt,beforeBody:tt,beforeLabel:tt,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return L(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:tt,afterBody:tt,beforeFooter:tt,footer:tt,afterFooter:tt};function N(i,t,e,s){const n=i[t].call(e,s);return typeof n>"u"?Es[t].call(e,s):n}class ji extends Dt{static positioners=Et;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,o=new vs(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Zr(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=N(s,"beforeTitle",this,t),o=N(s,"title",this,t),r=N(s,"afterTitle",this,t);let a=[];return a=Z(a,it(n)),a=Z(a,it(o)),a=Z(a,it(r)),a}getBeforeBody(t,e){return Vi(N(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:s}=e,n=[];return T(t,o=>{const r={before:[],lines:[],after:[]},a=Ni(s,o);Z(r.before,it(N(a,"beforeLabel",this,o))),Z(r.lines,N(a,"label",this,o)),Z(r.after,it(N(a,"afterLabel",this,o))),n.push(r)}),n}getAfterBody(t,e){return Vi(N(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:s}=e,n=N(s,"beforeFooter",this,t),o=N(s,"footer",this,t),r=N(s,"afterFooter",this,t);let a=[];return a=Z(a,it(n)),a=Z(a,it(o)),a=Z(a,it(r)),a}_createItems(t){const e=this._active,s=this.chart.data,n=[],o=[],r=[];let a=[],l,c;for(l=0,c=e.length;l<c;++l)a.push(Kr(this.chart,e[l]));return t.filter&&(a=a.filter((h,d,u)=>t.filter(h,d,u,s))),t.itemSort&&(a=a.sort((h,d)=>t.itemSort(h,d,s))),T(a,h=>{const d=Ni(t.callbacks,h);n.push(N(d,"labelColor",this,h)),o.push(N(d,"labelPointStyle",this,h)),r.push(N(d,"labelTextColor",this,h))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){const s=this.options.setContext(this.getContext()),n=this._active;let o,r=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const a=Et[s.position].call(this,n,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);const l=this._size=Bi(this,s),c=Object.assign({},a,l),h=Hi(this.chart,s,c),d=Wi(s,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,n){const o=this.getCaretPosition(t,s,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,s){const{xAlign:n,yAlign:o}=this,{caretSize:r,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=kt(a),{x:u,y:f}=t,{width:m,height:g}=e;let p,b,x,_,v,y;return o==="center"?(v=f+g/2,n==="left"?(p=u,b=p-r,_=v+r,y=v-r):(p=u+m,b=p+r,_=v-r,y=v+r),x=p):(n==="left"?b=u+Math.max(l,h)+r:n==="right"?b=u+m-Math.max(c,d)-r:b=this.caretX,o==="top"?(_=f,v=_-r,p=b-r,x=b+r):(_=f+g,v=_+r,p=b+r,x=b-r),y=_),{x1:p,x2:b,x3:x,y1:_,y2:v,y3:y}}drawTitle(t,e,s){const n=this.title,o=n.length;let r,a,l;if(o){const c=wt(s.rtl,this.x,this.width);for(t.x=ee(this,s.titleAlign,s),e.textAlign=c.textAlign(s.titleAlign),e.textBaseline="middle",r=H(s.titleFont),a=s.titleSpacing,e.fillStyle=s.titleColor,e.font=r.string,l=0;l<o;++l)e.fillText(n[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=s.titleMarginBottom-a)}}_drawColorBox(t,e,s,n,o){const r=this.labelColors[s],a=this.labelPointStyles[s],{boxHeight:l,boxWidth:c}=o,h=H(o.bodyFont),d=ee(this,"left",o),u=n.x(d),f=l<h.lineHeight?(h.lineHeight-l)/2:0,m=e.y+f;if(o.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=n.leftForLtr(u,c)+c/2,b=m+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,si(t,g,p,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,si(t,g,p,b)}else{t.lineWidth=D(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const g=n.leftForLtr(u,c),p=n.leftForLtr(n.xPlus(u,1),c-2),b=kt(r.borderRadius);Object.values(b).some(x=>x!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,he(t,{x:g,y:m,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),he(t,{x:p,y:m+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(g,m,c,l),t.strokeRect(g,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(p,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:n}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=s,d=H(s.bodyFont);let u=d.lineHeight,f=0;const m=wt(s.rtl,this.x,this.width),g=function(w){e.fillText(w,m.x(t.x+f),t.y+u/2),t.y+=u+o},p=m.textAlign(r);let b,x,_,v,y,k,S;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=ee(this,p,s),e.fillStyle=s.bodyColor,T(this.beforeBody,g),f=a&&p!=="right"?r==="center"?c/2+h:c+2+h:0,v=0,k=n.length;v<k;++v){for(b=n[v],x=this.labelTextColors[v],e.fillStyle=x,T(b.before,g),_=b.lines,a&&_.length&&(this._drawColorBox(e,t,v,m,s),u=Math.max(d.lineHeight,l)),y=0,S=_.length;y<S;++y)g(_[y]),u=d.lineHeight;T(b.after,g)}f=0,u=d.lineHeight,T(this.afterBody,g),t.y-=o}drawFooter(t,e,s){const n=this.footer,o=n.length;let r,a;if(o){const l=wt(s.rtl,this.x,this.width);for(t.x=ee(this,s.footerAlign,s),t.y+=s.footerMarginTop,e.textAlign=l.textAlign(s.footerAlign),e.textBaseline="middle",r=H(s.footerFont),e.fillStyle=s.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(n[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s.footerSpacing}}drawBackground(t,e,s,n){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=s,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:m}=kt(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(a+d,l),r==="top"&&this.drawCaret(t,e,s,n),e.lineTo(a+c-u,l),e.quadraticCurveTo(a+c,l,a+c,l+u),r==="center"&&o==="right"&&this.drawCaret(t,e,s,n),e.lineTo(a+c,l+h-m),e.quadraticCurveTo(a+c,l+h,a+c-m,l+h),r==="bottom"&&this.drawCaret(t,e,s,n),e.lineTo(a+f,l+h),e.quadraticCurveTo(a,l+h,a,l+h-f),r==="center"&&o==="left"&&this.drawCaret(t,e,s,n),e.lineTo(a,l+d),e.quadraticCurveTo(a,l,a+d,l),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,n=s&&s.x,o=s&&s.y;if(n||o){const r=Et[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Bi(this,t),l=Object.assign({},r,this._size),c=Hi(e,t,l),h=Wi(t,l,c,e);(n._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const r=Y(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,n,e),_s(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ys(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,n=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!re(s,n),r=this._positionChanged(n,e);(o||r)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,s),a=this._positionChanged(r,t),l=e||!re(r,o)||a;return l&&(this._active=r,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,s,n){const o=this.options;if(t.type==="mouseout")return[];if(!n)return e.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:s,caretY:n,options:o}=this,r=Et[o.position].call(this,t,e);return r!==!1&&(s!==r.x||n!==r.y)}}var va={id:"tooltip",_element:ji,positioners:Et,afterInit(i,t,e){e&&(i.tooltip=new ji({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(i.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){if(i.tooltip){const e=t.replay;i.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,t)=>t.bodyFont.size,boxWidth:(i,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Es},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>i!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Jr=(i,t,e,s)=>(typeof t=="string"?(e=i.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function ta(i,t,e,s){const n=i.indexOf(t);if(n===-1)return Jr(i,t,e,s);const o=i.lastIndexOf(t);return n!==o?e:n}const ea=(i,t)=>i===null?null:q(Math.round(i),0,t);function $i(i){const t=this.getLabels();return i>=0&&i<t.length?t[i]:i}class ka extends Ot{static id="category";static defaults={ticks:{callback:$i}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:n,label:o}of e)s[n]===o&&s.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(L(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:ta(s,t,O(e,t),this._addedLabels),ea(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:n}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(n=this.getLabels().length-1)),this.min=s,this.max=n}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,n=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){return $i.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function ia(i,t){const e=[],{bounds:n,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=i,f=o||1,m=h-1,{min:g,max:p}=t,b=!L(r),x=!L(a),_=!L(c),v=(p-g)/(d+1);let y=Xe((p-g)/m/f)*f,k,S,w,M;if(y<1e-14&&!b&&!x)return[{value:g},{value:p}];M=Math.ceil(p/y)-Math.floor(g/y),M>m&&(y=Xe(M*y/m/f)*f),L(l)||(k=Math.pow(10,l),y=Math.ceil(y*k)/k),n==="ticks"?(S=Math.floor(g/y)*y,w=Math.ceil(p/y)*y):(S=g,w=p),b&&x&&o&&nn((a-r)/o,y/1e3)?(M=Math.round(Math.min((a-r)/y,h)),y=(a-r)/M,S=r,w=a):_?(S=b?r:S,w=x?a:w,M=c-1,y=(w-S)/M):(M=(w-S)/y,se(M,Math.round(M),y/1e3)?M=Math.round(M):M=Math.ceil(M));const A=Math.max(qe(y),qe(S));k=Math.pow(10,L(l)?A:l),S=Math.round(S*k)/k,w=Math.round(w*k)/k;let P=0;for(b&&(u&&S!==r?(e.push({value:r}),S<r&&P++,se(Math.round((S+P*y)*k)/k,r,Ui(r,v,i))&&P++):S<r&&P++);P<M;++P){const C=Math.round((S+P*y)*k)/k;if(x&&C>a)break;e.push({value:C})}return x&&u&&w!==a?e.length&&se(e[e.length-1].value,a,Ui(a,v,i))?e[e.length-1].value=a:e.push({value:a}):(!x||w===a)&&e.push({value:w}),e}function Ui(i,t,{horizontal:e,minRotation:s}){const n=pt(s),o=(e?Math.sin(n):Math.cos(n))||.001,r=.75*t*(""+i).length;return Math.min(t/o,r)}class sa extends Ot{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return L(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:n,max:o}=this;const r=l=>n=e?n:l,a=l=>o=s?o:l;if(t){const l=rt(n),c=rt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(n-l)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=ia(n,o);return t.bounds==="ticks"&&on(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const n=(s-e)/Math.max(t.length-1,1)/2;e-=n,s+=n}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return cs(t,this.chart.options.locale,this.options.ticks.format)}}class wa extends sa{static id="linear";static defaults={ticks:{callback:hs.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=K(t)?t:0,this.max=K(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=pt(this.options.ticks.minRotation),n=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const pe={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}},j=Object.keys(pe);function Ki(i,t){return i-t}function Yi(i,t){if(L(t))return null;const e=i._adapter,{parser:s,round:n,isoWeekday:o}=i._parseOpts;let r=t;return typeof s=="function"&&(r=s(r)),K(r)||(r=typeof s=="string"?e.parse(r,s):e.parse(r)),r===null?null:(n&&(r=n==="week"&&(ce(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,n)),+r)}function Xi(i,t,e,s){const n=j.length;for(let o=j.indexOf(i);o<n-1;++o){const r=pe[j[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((e-t)/(a*r.size))<=s)return j[o]}return j[n-1]}function na(i,t,e,s,n){for(let o=j.length-1;o>=j.indexOf(e);o--){const r=j[o];if(pe[r].common&&i._adapter.diff(n,s,r)>=t-1)return r}return j[e?j.indexOf(e):0]}function oa(i){for(let t=j.indexOf(i)+1,e=j.length;t<e;++t)if(pe[j[t]].common)return j[t]}function qi(i,t,e){if(!e)i[t]=!0;else if(e.length){const{lo:s,hi:n}=ze(e,t),o=e[s]>=t?e[s]:e[n];i[o]=!0}}function ra(i,t,e,s){const n=i._adapter,o=+n.startOf(t[0].value,s),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+n.add(a,1,s))l=e[a],l>=0&&(t[l].major=!0);return t}function Gi(i,t,e){const s=[],n={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],n[a]=r,s.push({value:a,major:!1});return o===0||!e?s:ra(i,s,n,e)}class Qi extends Ot{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const s=t.time||(t.time={}),n=this._adapter=new Po._date(t.adapters.date);n.init(e),Bt(s.displayFormats,n.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:Yi(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,s=t.time.unit||"day";let{min:n,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(n=Math.min(n,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),n=K(n)&&!isNaN(n)?n:+e.startOf(Date.now(),s),o=K(o)&&!isNaN(o)?o:+e.endOf(Date.now(),s)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],s=t[t.length-1]),{min:e,max:s}}buildTicks(){const t=this.options,e=t.time,s=t.ticks,n=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,r=this.max,a=un(n,o,r);return this._unit=e.unit||(s.autoSkip?Xi(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):na(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:oa(this._unit),this.initOffsets(n),t.reverse&&a.reverse(),Gi(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,s=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;e=q(e,0,r),s=q(s,0,r),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,o=n.time,r=o.unit||Xi(o.minUnit,e,s,this._getLabelCapacity(e)),a=O(n.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=ce(l)||l===!0,h={};let d=e,u,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(s,e,r)>1e5*a)throw new Error(e+" and "+s+" are too far apart with stepSize of "+a+" "+r);const m=n.ticks.source==="data"&&this.getDataTimestamps();for(u=d,f=0;u<s;u=+t.add(u,a,r),f++)qi(h,u,m);return(u===s||n.bounds==="ticks"||f===1)&&qi(h,u,m),Object.keys(h).sort(Ki).map(g=>+g)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,o=this._unit,r=e||n[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,s,n){const o=this.options,r=o.ticks.callback;if(r)return I(r,[t,e,s],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],d=c&&a[c],u=s[e],f=c&&d&&u&&u.major;return this._adapter.format(t,n||(f?d:h))}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e<s;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+s)*e.factor)}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,s=this.ctx.measureText(t).width,n=pt(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(n),r=Math.sin(n),a=this._resolveTickFontOptions(0).size;return{w:s*o+a*r,h:s*r+a*o}}_getLabelCapacity(t){const e=this.options.time,s=e.displayFormats,n=s[e.unit]||s.millisecond,o=this._tickFormatFunction(t,0,Gi(this,[t],this._majorUnit),n),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e<s;++e)t=t.concat(n[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,s;if(t.length)return t;const n=this.getLabels();for(e=0,s=n.length;e<s;++e)t.push(Yi(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return os(t.sort(Ki))}}function ie(i,t,e){let s=0,n=i.length-1,o,r,a,l;e?(t>=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=Ce(i,"pos",t)),{pos:o,time:a}=i[s],{pos:r,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=Ce(i,"time",t)),{time:o,pos:a}=i[s],{time:r,pos:l}=i[n]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Sa extends Qi{static id="timeseries";static defaults=Qi.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ie(e,this.min),this._tableRange=ie(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=e&&c<=s&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(r=0,a=n.length;r<a;++r)h=n[r+1],l=n[r-1],c=n[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,e=this.max;let s=super.getDataTimestamps();return(!s.includes(t)||!s.length)&&s.splice(0,0,t),(!s.includes(e)||s.length===1)&&s.push(e),s.sort((n,o)=>n-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(ie(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return ie(this._table,s*this._tableRange+this._minPos,!0)}}const Bs={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},aa={ariaLabel:{type:String},ariaDescribedby:{type:String}},la={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Bs,...aa},ca=Vs[0]==="2"?(i,t)=>Object.assign(i,{attrs:t}):(i,t)=>Object.assign(i,t);function yt(i){return es(i)?Oe(i):i}function ha(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;return es(t)?new Proxy(i,{}):i}function da(i,t){const e=i.options;e&&t&&Object.assign(e,t)}function Hs(i,t){i.labels=t}function Ws(i,t,e){const s=[];i.datasets=t.map(n=>{const o=i.datasets.find(r=>r[e]===n[e]);return!o||!n.data||s.includes(o)?{...n}:(s.push(o),Object.assign(o,n),o)})}function ua(i,t){const e={labels:[],datasets:[]};return Hs(e,i.labels),Ws(e,i.datasets,t),e}const fa=Ji({props:la,setup(i,t){let{expose:e,slots:s}=t;const n=Ns(null),o=ts(null);e({chart:o});const r=()=>{if(!n.value)return;const{type:c,data:h,options:d,plugins:u,datasetIdKey:f}=i,m=ua(h,f),g=ha(m,h);o.value=new $e(n.value,{type:c,data:g,options:{...d},plugins:u})},a=()=>{const c=Oe(o.value);c&&(i.destroyDelay>0?setTimeout(()=>{c.destroy(),o.value=null},i.destroyDelay):(c.destroy(),o.value=null))},l=c=>{c.update(i.updateMode)};return js(r),$s(a),Us([()=>i.options,()=>i.data],(c,h)=>{let[d,u]=c,[f,m]=h;const g=Oe(o.value);if(!g)return;let p=!1;if(d){const b=yt(d),x=yt(f);b&&b!==x&&(da(g,b),p=!0)}if(u){const b=yt(u.labels),x=yt(m.labels),_=yt(u.datasets),v=yt(m.datasets);b!==x&&(Hs(g.config.data,b),p=!0),_&&_!==v&&(Ws(g.config.data,_,i.datasetIdKey),p=!0)}p&&Ks(()=>{l(g)})},{deep:!0}),()=>De("canvas",{role:"img","aria-label":i.ariaLabel,"aria-describedby":i.ariaDescribedby,ref:n},[De("p",{},[s.default?s.default():""])])}});function ga(i,t){return $e.register(t),Ji({props:Bs,setup(e,s){let{expose:n}=s;const o=ts(null),r=a=>{o.value=a?.chart};return n({chart:o}),()=>De(fa,ca({ref:r},{type:i,...e}))}})}const Ma=ga("bar",Mo);export{Ma as B,$e as C,wa as L,ka as a,xa as b,va as c,_a as d,ya as p};
@@ -0,0 +1 @@
1
+ import{g as R}from"./vendor-CdFdgkAf.js";var K={exports:{}},Dt=K.exports,dt;function xt(){return dt||(dt=1,function(_,U){(function(S,f){_.exports=f()})(Dt,function(){var S=1e3,f=6e4,m=36e5,M="millisecond",l="second",c="minute",p="hour",Y="day",y="week",a="month",$="quarter",O="year",j="date",G="Invalid Date",o=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var e=["th","st","nd","rd"],t=s%100;return"["+s+(e[(t-20)%10]||e[t]||e[0])+"]"}},w=function(s,e,t){var n=String(s);return!n||n.length>=e?s:""+Array(e+1-n.length).join(t)+s},z={s:w,z:function(s){var e=-s.utcOffset(),t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+w(n,2,"0")+":"+w(r,2,"0")},m:function s(e,t){if(e.date()<t.date())return-s(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,a),i=t-r<0,u=e.clone().add(n+(i?-1:1),a);return+(-(n+(t-r)/(i?r-u:u-r))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:a,y:O,w:y,d:Y,D:j,h:p,m:c,s:l,ms:M,Q:$}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},L="en",A={};A[L]=D;var Z="$isDayjsObject",C=function(s){return s instanceof T||!(!s||!s[Z])},F=function s(e,t,n){var r;if(!e)return L;if(typeof e=="string"){var i=e.toLowerCase();A[i]&&(r=i),t&&(A[i]=t,r=i);var u=e.split("-");if(!r&&u.length>1)return s(u[0])}else{var h=e.name;A[h]=e,r=h}return!n&&r&&(L=r),r||!n&&L},x=function(s,e){if(C(s))return s.clone();var t=typeof e=="object"?e:{};return t.date=s,t.args=arguments,new T(t)},d=z;d.l=F,d.i=C,d.w=function(s,e){return x(s,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function s(t){this.$L=F(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var e=s.prototype;return e.parse=function(t){this.$d=function(n){var r=n.date,i=n.utc;if(r===null)return new Date(NaN);if(d.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var u=r.match(o);if(u){var h=u[2]-1||0,k=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],h,u[3]||1,u[4]||0,u[5]||0,u[6]||0,k)):new Date(u[1],h,u[3]||1,u[4]||0,u[5]||0,u[6]||0,k)}}return new Date(r)}(t),this.init()},e.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},e.$utils=function(){return d},e.isValid=function(){return this.$d.toString()!==G},e.isSame=function(t,n){var r=x(t);return this.startOf(n)<=r&&r<=this.endOf(n)},e.isAfter=function(t,n){return x(t)<this.startOf(n)},e.isBefore=function(t,n){return this.endOf(n)<x(t)},e.$g=function(t,n,r){return d.u(t)?this[n]:this.set(r,t)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(t,n){var r=this,i=!!d.u(n)||n,u=d.p(t),h=function(B,W){var E=d.w(r.$u?Date.UTC(r.$y,W,B):new Date(r.$y,W,B),r);return i?E:E.endOf(Y)},k=function(B,W){return d.w(r.toDate()[B].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(W)),r)},g=this.$W,b=this.$M,q=this.$D,N="set"+(this.$u?"UTC":"");switch(u){case O:return i?h(1,0):h(31,11);case a:return i?h(1,b):h(0,b+1);case y:var I=this.$locale().weekStart||0,V=(g<I?g+7:g)-I;return h(i?q-V:q+(6-V),b);case Y:case j:return k(N+"Hours",0);case p:return k(N+"Minutes",1);case c:return k(N+"Seconds",2);case l:return k(N+"Milliseconds",3);default:return this.clone()}},e.endOf=function(t){return this.startOf(t,!1)},e.$set=function(t,n){var r,i=d.p(t),u="set"+(this.$u?"UTC":""),h=(r={},r[Y]=u+"Date",r[j]=u+"Date",r[a]=u+"Month",r[O]=u+"FullYear",r[p]=u+"Hours",r[c]=u+"Minutes",r[l]=u+"Seconds",r[M]=u+"Milliseconds",r)[i],k=i===Y?this.$D+(n-this.$W):n;if(i===a||i===O){var g=this.clone().set(j,1);g.$d[h](k),g.init(),this.$d=g.set(j,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](k);return this.init(),this},e.set=function(t,n){return this.clone().$set(t,n)},e.get=function(t){return this[d.p(t)]()},e.add=function(t,n){var r,i=this;t=Number(t);var u=d.p(n),h=function(b){var q=x(i);return d.w(q.date(q.date()+Math.round(b*t)),i)};if(u===a)return this.set(a,this.$M+t);if(u===O)return this.set(O,this.$y+t);if(u===Y)return h(1);if(u===y)return h(7);var k=(r={},r[c]=f,r[p]=m,r[l]=S,r)[u]||1,g=this.$d.getTime()+t*k;return d.w(g,this)},e.subtract=function(t,n){return this.add(-1*t,n)},e.format=function(t){var n=this,r=this.$locale();if(!this.isValid())return r.invalidDate||G;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=d.z(this),h=this.$H,k=this.$m,g=this.$M,b=r.weekdays,q=r.months,N=r.meridiem,I=function(W,E,P,Q){return W&&(W[E]||W(n,i))||P[E].slice(0,Q)},V=function(W){return d.s(h%12||12,W,"0")},B=N||function(W,E,P){var Q=W<12?"AM":"PM";return P?Q.toLowerCase():Q};return i.replace(v,function(W,E){return E||function(P){switch(P){case"YY":return String(n.$y).slice(-2);case"YYYY":return d.s(n.$y,4,"0");case"M":return g+1;case"MM":return d.s(g+1,2,"0");case"MMM":return I(r.monthsShort,g,q,3);case"MMMM":return I(q,g);case"D":return n.$D;case"DD":return d.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return I(r.weekdaysMin,n.$W,b,2);case"ddd":return I(r.weekdaysShort,n.$W,b,3);case"dddd":return b[n.$W];case"H":return String(h);case"HH":return d.s(h,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return B(h,k,!0);case"A":return B(h,k,!1);case"m":return String(k);case"mm":return d.s(k,2,"0");case"s":return String(n.$s);case"ss":return d.s(n.$s,2,"0");case"SSS":return d.s(n.$ms,3,"0");case"Z":return u}return null}(W)||u.replace(":","")})},e.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},e.diff=function(t,n,r){var i,u=this,h=d.p(n),k=x(t),g=(k.utcOffset()-this.utcOffset())*f,b=this-k,q=function(){return d.m(u,k)};switch(h){case O:i=q()/12;break;case a:i=q();break;case $:i=q()/3;break;case y:i=(b-g)/6048e5;break;case Y:i=(b-g)/864e5;break;case p:i=b/m;break;case c:i=b/f;break;case l:i=b/S;break;default:i=b}return r?i:d.a(i)},e.daysInMonth=function(){return this.endOf(a).$D},e.$locale=function(){return A[this.$L]},e.locale=function(t,n){if(!t)return this.$L;var r=this.clone(),i=F(t,n,!0);return i&&(r.$L=i),r},e.clone=function(){return d.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},s}(),H=T.prototype;return x.prototype=H,[["$ms",M],["$s",l],["$m",c],["$H",p],["$W",Y],["$M",a],["$y",O],["$D",j]].forEach(function(s){H[s[1]]=function(e){return this.$g(e,s[0],s[1])}}),x.extend=function(s,e){return s.$i||(s(e,T,x),s.$i=!0),x},x.locale=F,x.isDayjs=C,x.unix=function(s){return x(1e3*s)},x.en=A[L],x.Ls=A,x.p={},x})}(K)),K.exports}var kt=xt();const Vt=R(kt);var tt={exports:{}},St=tt.exports,lt;function gt(){return lt||(lt=1,function(_,U){(function(S,f){_.exports=f()})(St,function(){return function(S,f,m){var M=f.prototype,l=function(a){return a&&(a.indexOf?a:a.s)},c=function(a,$,O,j,G){var o=a.name?a:a.$locale(),v=l(o[$]),D=l(o[O]),w=v||D.map(function(L){return L.slice(0,j)});if(!G)return w;var z=o.weekStart;return w.map(function(L,A){return w[(A+(z||0))%7]})},p=function(){return m.Ls[m.locale()]},Y=function(a,$){return a.formats[$]||function(O){return O.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,G,o){return G||o.slice(1)})}(a.formats[$.toUpperCase()])},y=function(){var a=this;return{months:function($){return $?$.format("MMMM"):c(a,"months")},monthsShort:function($){return $?$.format("MMM"):c(a,"monthsShort","months",3)},firstDayOfWeek:function(){return a.$locale().weekStart||0},weekdays:function($){return $?$.format("dddd"):c(a,"weekdays")},weekdaysMin:function($){return $?$.format("dd"):c(a,"weekdaysMin","weekdays",2)},weekdaysShort:function($){return $?$.format("ddd"):c(a,"weekdaysShort","weekdays",3)},longDateFormat:function($){return Y(a.$locale(),$)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};M.localeData=function(){return y.bind(this)()},m.localeData=function(){var a=p();return{firstDayOfWeek:function(){return a.weekStart||0},weekdays:function(){return m.weekdays()},weekdaysShort:function(){return m.weekdaysShort()},weekdaysMin:function(){return m.weekdaysMin()},months:function(){return m.months()},monthsShort:function(){return m.monthsShort()},longDateFormat:function($){return Y(a,$)},meridiem:a.meridiem,ordinal:a.ordinal}},m.months=function(){return c(p(),"months")},m.monthsShort=function(){return c(p(),"monthsShort","months",3)},m.weekdays=function(a){return c(p(),"weekdays",null,null,a)},m.weekdaysShort=function(a){return c(p(),"weekdaysShort","weekdays",3,a)},m.weekdaysMin=function(a){return c(p(),"weekdaysMin","weekdays",2,a)}}})}(tt)),tt.exports}var Yt=gt();const Jt=R(Yt);var et={exports:{}},Ot=et.exports,mt;function Lt(){return mt||(mt=1,function(_,U){(function(S,f){_.exports=f()})(Ot,function(){var S={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},f=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,m=/\d/,M=/\d\d/,l=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,p={},Y=function(o){return(o=+o)+(o>68?1900:2e3)},y=function(o){return function(v){this[o]=+v}},a=[/[+-]\d\d:?(\d\d)?|Z/,function(o){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var D=v.match(/([+-]|\d\d)/g),w=60*D[1]+(+D[2]||0);return w===0?0:D[0]==="+"?-w:w}(o)}],$=function(o){var v=p[o];return v&&(v.indexOf?v:v.s.concat(v.f))},O=function(o,v){var D,w=p.meridiem;if(w){for(var z=1;z<=24;z+=1)if(o.indexOf(w(z,0,v))>-1){D=z>12;break}}else D=o===(v?"pm":"PM");return D},j={A:[c,function(o){this.afternoon=O(o,!1)}],a:[c,function(o){this.afternoon=O(o,!0)}],Q:[m,function(o){this.month=3*(o-1)+1}],S:[m,function(o){this.milliseconds=100*+o}],SS:[M,function(o){this.milliseconds=10*+o}],SSS:[/\d{3}/,function(o){this.milliseconds=+o}],s:[l,y("seconds")],ss:[l,y("seconds")],m:[l,y("minutes")],mm:[l,y("minutes")],H:[l,y("hours")],h:[l,y("hours")],HH:[l,y("hours")],hh:[l,y("hours")],D:[l,y("day")],DD:[M,y("day")],Do:[c,function(o){var v=p.ordinal,D=o.match(/\d+/);if(this.day=D[0],v)for(var w=1;w<=31;w+=1)v(w).replace(/\[|\]/g,"")===o&&(this.day=w)}],w:[l,y("week")],ww:[M,y("week")],M:[l,y("month")],MM:[M,y("month")],MMM:[c,function(o){var v=$("months"),D=($("monthsShort")||v.map(function(w){return w.slice(0,3)})).indexOf(o)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[c,function(o){var v=$("months").indexOf(o)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,y("year")],YY:[M,function(o){this.year=Y(o)}],YYYY:[/\d{4}/,y("year")],Z:a,ZZ:a};function G(o){var v,D;v=o,D=p&&p.formats;for(var w=(o=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,d,T){var H=T&&T.toUpperCase();return d||D[T]||S[T]||D[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(s,e,t){return e||t.slice(1)})})).match(f),z=w.length,L=0;L<z;L+=1){var A=w[L],Z=j[A],C=Z&&Z[0],F=Z&&Z[1];w[L]=F?{regex:C,parser:F}:A.replace(/^\[|\]$/g,"")}return function(x){for(var d={},T=0,H=0;T<z;T+=1){var s=w[T];if(typeof s=="string")H+=s.length;else{var e=s.regex,t=s.parser,n=x.slice(H),r=e.exec(n)[0];t.call(d,r),x=x.replace(r,"")}}return function(i){var u=i.afternoon;if(u!==void 0){var h=i.hours;u?h<12&&(i.hours+=12):h===12&&(i.hours=0),delete i.afternoon}}(d),d}}return function(o,v,D){D.p.customParseFormat=!0,o&&o.parseTwoDigitYear&&(Y=o.parseTwoDigitYear);var w=v.prototype,z=w.parse;w.parse=function(L){var A=L.date,Z=L.utc,C=L.args;this.$u=Z;var F=C[1];if(typeof F=="string"){var x=C[2]===!0,d=C[3]===!0,T=x||d,H=C[2];d&&(H=C[2]),p=this.$locale(),!x&&H&&(p=D.Ls[H]),this.$d=function(n,r,i,u){try{if(["x","X"].indexOf(r)>-1)return new Date((r==="X"?1e3:1)*n);var h=G(r)(n),k=h.year,g=h.month,b=h.day,q=h.hours,N=h.minutes,I=h.seconds,V=h.milliseconds,B=h.zone,W=h.week,E=new Date,P=b||(k||g?1:E.getDate()),Q=k||E.getFullYear(),J=0;k&&!g||(J=g>0?g-1:E.getMonth());var X,ut=q||0,ct=N||0,ft=I||0,ht=V||0;return B?new Date(Date.UTC(Q,J,P,ut,ct,ft,ht+60*B.offset*1e3)):i?new Date(Date.UTC(Q,J,P,ut,ct,ft,ht)):(X=new Date(Q,J,P,ut,ct,ft,ht),W&&(X=u(X).week(W).toDate()),X)}catch{return new Date("")}}(A,F,Z,D),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),T&&A!=this.format(F)&&(this.$d=new Date("")),p={}}else if(F instanceof Array)for(var s=F.length,e=1;e<=s;e+=1){C[1]=F[e-1];var t=D.apply(this,C);if(t.isValid()){this.$d=t.$d,this.$L=t.$L,this.init();break}e===s&&(this.$d=new Date(""))}else z.call(this,L)}}})}(et)),et.exports}var bt=Lt();const Xt=R(bt);var rt={exports:{}},_t=rt.exports,pt;function Wt(){return pt||(pt=1,function(_,U){(function(S,f){_.exports=f()})(_t,function(){return function(S,f){var m=f.prototype,M=m.format;m.format=function(l){var c=this,p=this.$locale();if(!this.isValid())return M.bind(this)(l);var Y=this.$utils(),y=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(a){switch(a){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return p.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return p.ordinal(c.week(),"W");case"w":case"ww":return Y.s(c.week(),a==="w"?1:2,"0");case"W":case"WW":return Y.s(c.isoWeek(),a==="W"?1:2,"0");case"k":case"kk":return Y.s(String(c.$H===0?24:c.$H),a==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return a}});return M.bind(this)(y)}}})}(rt)),rt.exports}var At=Wt();const Kt=R(At);var nt={exports:{}},Tt=nt.exports,$t;function Ft(){return $t||($t=1,function(_,U){(function(S,f){_.exports=f()})(Tt,function(){var S="week",f="year";return function(m,M,l){var c=M.prototype;c.week=function(p){if(p===void 0&&(p=null),p!==null)return this.add(7*(p-this.week()),"day");var Y=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var y=l(this).startOf(f).add(1,f).date(Y),a=l(this).endOf(S);if(y.isBefore(a))return 1}var $=l(this).startOf(f).date(Y).startOf(S).subtract(1,"millisecond"),O=this.diff($,S,!0);return O<0?l(this).startOf("week").week():Math.ceil(O)},c.weeks=function(p){return p===void 0&&(p=null),this.week(p)}}})}(nt)),nt.exports}var Ht=Ft();const te=R(Ht);var at={exports:{}},qt=at.exports,vt;function zt(){return vt||(vt=1,function(_,U){(function(S,f){_.exports=f()})(qt,function(){return function(S,f){f.prototype.weekYear=function(){var m=this.month(),M=this.week(),l=this.year();return M===1&&m===11?l+1:m===0&&M>=52?l-1:l}}})}(at)),at.exports}var Ct=zt();const ee=R(Ct);var st={exports:{}},Et=st.exports,wt;function jt(){return wt||(wt=1,function(_,U){(function(S,f){_.exports=f()})(Et,function(){return function(S,f,m){f.prototype.dayOfYear=function(M){var l=Math.round((m(this).startOf("day")-m(this).startOf("year"))/864e5)+1;return M==null?l:this.add(M-l,"day")}}})}(st)),st.exports}var Zt=jt();const re=R(Zt);var it={exports:{}},Bt=it.exports,Mt;function It(){return Mt||(Mt=1,function(_,U){(function(S,f){_.exports=f()})(Bt,function(){return function(S,f){f.prototype.isSameOrAfter=function(m,M){return this.isSame(m,M)||this.isAfter(m,M)}}})}(it)),it.exports}var Pt=It();const ne=R(Pt);var ot={exports:{}},Rt=ot.exports,yt;function Ut(){return yt||(yt=1,function(_,U){(function(S,f){_.exports=f()})(Rt,function(){return function(S,f){f.prototype.isSameOrBefore=function(m,M){return this.isSame(m,M)||this.isBefore(m,M)}}})}(ot)),ot.exports}var Gt=Ut();const ae=R(Gt);export{Kt as a,ee as b,Xt as c,Vt as d,re as e,ae as f,ne as i,Jt as l,te as w};