@embeddable.com/remarkable-ui 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChartCard-sPUtrDtb.js → ChartCard-B_BAibdy.js} +886 -881
- package/dist/ChartCard-B_BAibdy.js.map +1 -0
- package/dist/DateRangeSelectFieldPro.js +2 -2
- package/dist/DonutChartPro.js +2 -2
- package/dist/DonutLabelChartPro.js +2 -2
- package/dist/{EditorCard-au686QG4.js → EditorCard-Cj1V2vRg.js} +2 -2
- package/dist/{EditorCard-au686QG4.js.map → EditorCard-Cj1V2vRg.js.map} +1 -1
- package/dist/MultiSelectFieldPro.js +2 -2
- package/dist/PieChartPro.js +2 -2
- package/dist/{SingleSelectField-BbyusSe5.js → SingleSelectField-BMXt2zwl.js} +3 -3
- package/dist/{SingleSelectField-BbyusSe5.js.map → SingleSelectField-BMXt2zwl.js.map} +1 -1
- package/dist/SingleSelectFieldPro.js +2 -2
- package/dist/{af-BWR3iCXy.js → af-BhfMDw8q.js} +2 -2
- package/dist/{af-BWR3iCXy.js.map → af-BhfMDw8q.js.map} +1 -1
- package/dist/{am-Cbb1DREY.js → am-BjJbr8ur.js} +2 -2
- package/dist/{am-Cbb1DREY.js.map → am-BjJbr8ur.js.map} +1 -1
- package/dist/{ar-ayY_U5P3.js → ar-DCDfA1wT.js} +2 -2
- package/dist/{ar-ayY_U5P3.js.map → ar-DCDfA1wT.js.map} +1 -1
- package/dist/{az-FQNmIkNU.js → az-CShdpsdC.js} +2 -2
- package/dist/{az-FQNmIkNU.js.map → az-CShdpsdC.js.map} +1 -1
- package/dist/{be-DKZzT5sd.js → be-DZiff6qe.js} +2 -2
- package/dist/{be-DKZzT5sd.js.map → be-DZiff6qe.js.map} +1 -1
- package/dist/{bg-CcppdL6E.js → bg-1YeeQnum.js} +2 -2
- package/dist/{bg-CcppdL6E.js.map → bg-1YeeQnum.js.map} +1 -1
- package/dist/{bi-k5Q9xhHG.js → bi-jQnTBWfm.js} +2 -2
- package/dist/{bi-k5Q9xhHG.js.map → bi-jQnTBWfm.js.map} +1 -1
- package/dist/{bm-9HgeHPAX.js → bm-Bhx4gJQv.js} +2 -2
- package/dist/{bm-9HgeHPAX.js.map → bm-Bhx4gJQv.js.map} +1 -1
- package/dist/{bn-B7fZJP7H.js → bn-Dev7MWng.js} +2 -2
- package/dist/{bn-B7fZJP7H.js.map → bn-Dev7MWng.js.map} +1 -1
- package/dist/{bo-DzAGws_V.js → bo-CsXzcRTS.js} +2 -2
- package/dist/{bo-DzAGws_V.js.map → bo-CsXzcRTS.js.map} +1 -1
- package/dist/{br-sd2ofWLb.js → br-DhLvGbV2.js} +2 -2
- package/dist/{br-sd2ofWLb.js.map → br-DhLvGbV2.js.map} +1 -1
- package/dist/{bs-DalObT38.js → bs-BT_F43XP.js} +2 -2
- package/dist/{bs-DalObT38.js.map → bs-BT_F43XP.js.map} +1 -1
- package/dist/{ca-BxzBhEgE.js → ca-Dv_fZafJ.js} +2 -2
- package/dist/{ca-BxzBhEgE.js.map → ca-Dv_fZafJ.js.map} +1 -1
- package/dist/{component.constants-8Nz14Al5.js → component.constants-DLcmipcp.js} +625 -624
- package/dist/{component.constants-8Nz14Al5.js.map → component.constants-DLcmipcp.js.map} +1 -1
- package/dist/{cs-CT6oBfax.js → cs-CLFbAyW1.js} +2 -2
- package/dist/{cs-CT6oBfax.js.map → cs-CLFbAyW1.js.map} +1 -1
- package/dist/{cv-4h_1wfJu.js → cv-D0Czu-6r.js} +2 -2
- package/dist/{cv-4h_1wfJu.js.map → cv-D0Czu-6r.js.map} +1 -1
- package/dist/{cy-B3H1ivuJ.js → cy-B_wVnK-y.js} +2 -2
- package/dist/{cy-B3H1ivuJ.js.map → cy-B_wVnK-y.js.map} +1 -1
- package/dist/{da-ChwIMjlY.js → da-BxMy_zm_.js} +2 -2
- package/dist/{da-ChwIMjlY.js.map → da-BxMy_zm_.js.map} +1 -1
- package/dist/{de-BEf9tg3B.js → de-BHXLG6wr.js} +2 -2
- package/dist/{de-BEf9tg3B.js.map → de-BHXLG6wr.js.map} +1 -1
- package/dist/{dv-BgTfONQr.js → dv-C3gTB9Zk.js} +2 -2
- package/dist/{dv-BgTfONQr.js.map → dv-C3gTB9Zk.js.map} +1 -1
- package/dist/{el-C7bv9U1i.js → el-CG21BzZX.js} +2 -2
- package/dist/{el-C7bv9U1i.js.map → el-CG21BzZX.js.map} +1 -1
- package/dist/embeddable-components.json +2 -2
- package/dist/embeddable-theme-2b917.js +848 -842
- package/dist/{eo-Bg8hKHwp.js → eo-CObbWYhD.js} +2 -2
- package/dist/{eo-Bg8hKHwp.js.map → eo-CObbWYhD.js.map} +1 -1
- package/dist/{es-qan1faEe.js → es-DBZo2F5V.js} +2 -2
- package/dist/{es-qan1faEe.js.map → es-DBZo2F5V.js.map} +1 -1
- package/dist/{et-Cj5jQoyu.js → et-CJAeg1JB.js} +2 -2
- package/dist/{et-Cj5jQoyu.js.map → et-CJAeg1JB.js.map} +1 -1
- package/dist/{eu-CF8hC4cG.js → eu-DCRIlmYt.js} +2 -2
- package/dist/{eu-CF8hC4cG.js.map → eu-DCRIlmYt.js.map} +1 -1
- package/dist/{fa-D9bGPNVG.js → fa-B4hoY4oS.js} +2 -2
- package/dist/{fa-D9bGPNVG.js.map → fa-B4hoY4oS.js.map} +1 -1
- package/dist/{fi-Ep3rAhNt.js → fi-DOQ0xjWd.js} +2 -2
- package/dist/{fi-Ep3rAhNt.js.map → fi-DOQ0xjWd.js.map} +1 -1
- package/dist/{fo-BK7IuXEz.js → fo-CqS3QH9j.js} +2 -2
- package/dist/{fo-BK7IuXEz.js.map → fo-CqS3QH9j.js.map} +1 -1
- package/dist/{formatter.utils-BxxcDs9R.js → formatter.utils-rh4NsBc4.js} +10 -9
- package/dist/formatter.utils-rh4NsBc4.js.map +1 -0
- package/dist/{fr-DaHD6Zwd.js → fr-CjnMVjLr.js} +2 -2
- package/dist/{fr-DaHD6Zwd.js.map → fr-CjnMVjLr.js.map} +1 -1
- package/dist/{fy-BGJr1VDA.js → fy-BkekyfC-.js} +2 -2
- package/dist/{fy-BGJr1VDA.js.map → fy-BkekyfC-.js.map} +1 -1
- package/dist/{ga-CiYALYx3.js → ga-xjHcugWk.js} +2 -2
- package/dist/{ga-CiYALYx3.js.map → ga-xjHcugWk.js.map} +1 -1
- package/dist/{gd-uQS4hd7Q.js → gd-CHWHS_I3.js} +2 -2
- package/dist/{gd-uQS4hd7Q.js.map → gd-CHWHS_I3.js.map} +1 -1
- package/dist/{gl-DdqYWgtp.js → gl-eWmZ6FHC.js} +2 -2
- package/dist/{gl-DdqYWgtp.js.map → gl-eWmZ6FHC.js.map} +1 -1
- package/dist/{gu-BsXTmj7B.js → gu-COsQBXK7.js} +2 -2
- package/dist/{gu-BsXTmj7B.js.map → gu-COsQBXK7.js.map} +1 -1
- package/dist/{he-BNWV921m.js → he-DLvUNboB.js} +2 -2
- package/dist/{he-BNWV921m.js.map → he-DLvUNboB.js.map} +1 -1
- package/dist/{hi-B2BKbmM0.js → hi-Da5pD4GI.js} +2 -2
- package/dist/{hi-B2BKbmM0.js.map → hi-Da5pD4GI.js.map} +1 -1
- package/dist/{hr-D2PLxIso.js → hr-DXVM0gXv.js} +2 -2
- package/dist/{hr-D2PLxIso.js.map → hr-DXVM0gXv.js.map} +1 -1
- package/dist/{ht-D_C4-IbW.js → ht-B8-Py-HQ.js} +2 -2
- package/dist/{ht-D_C4-IbW.js.map → ht-B8-Py-HQ.js.map} +1 -1
- package/dist/{hu-CKCBweLP.js → hu-Zd8eveQl.js} +2 -2
- package/dist/{hu-CKCBweLP.js.map → hu-Zd8eveQl.js.map} +1 -1
- package/dist/{id-Sbx7z-Eo.js → id-DDUOZsRo.js} +2 -2
- package/dist/{id-Sbx7z-Eo.js.map → id-DDUOZsRo.js.map} +1 -1
- package/dist/{index-BEOF9cm4.js → index-B7vfUPY1.js} +4 -4
- package/dist/{index-BEOF9cm4.js.map → index-B7vfUPY1.js.map} +1 -1
- package/dist/{index-Ce5jkMTl.js → index-BDe-Elcv.js} +3 -3
- package/dist/{index-Ce5jkMTl.js.map → index-BDe-Elcv.js.map} +1 -1
- package/dist/{index-CBsJ7oP-.js → index-BmX2mh4Y.js} +105 -105
- package/dist/{index-CBsJ7oP-.js.map → index-BmX2mh4Y.js.map} +1 -1
- package/dist/{index-Bw8PyCVy.js → index-CeCU5BdY.js} +3 -3
- package/dist/{index-Bw8PyCVy.js.map → index-CeCU5BdY.js.map} +1 -1
- package/dist/{index-OwVo0TXJ.js → index-DlKOKsEz.js} +5 -5
- package/dist/{index-OwVo0TXJ.js.map → index-DlKOKsEz.js.map} +1 -1
- package/dist/{index-DX_pPEcc.js → index-fEYtrrwd.js} +4 -4
- package/dist/{index-DX_pPEcc.js.map → index-fEYtrrwd.js.map} +1 -1
- package/dist/index.js +31 -29
- package/dist/index.js.map +1 -1
- package/dist/{is-Bccw6pD7.js → is-CQKuukSi.js} +2 -2
- package/dist/{is-Bccw6pD7.js.map → is-CQKuukSi.js.map} +1 -1
- package/dist/{it-C4YnqxL6.js → it-ZAAdZCse.js} +2 -2
- package/dist/{it-C4YnqxL6.js.map → it-ZAAdZCse.js.map} +1 -1
- package/dist/{ja-iQBpszz-.js → ja-X3YaEu35.js} +2 -2
- package/dist/{ja-iQBpszz-.js.map → ja-X3YaEu35.js.map} +1 -1
- package/dist/{jv-BDpXnNEX.js → jv-COUYhfxd.js} +2 -2
- package/dist/{jv-BDpXnNEX.js.map → jv-COUYhfxd.js.map} +1 -1
- package/dist/{ka-BfAA8Rex.js → ka-DcSzBOtD.js} +2 -2
- package/dist/{ka-BfAA8Rex.js.map → ka-DcSzBOtD.js.map} +1 -1
- package/dist/{kk-Bv2-_l8q.js → kk-BnFZ9yt2.js} +2 -2
- package/dist/{kk-Bv2-_l8q.js.map → kk-BnFZ9yt2.js.map} +1 -1
- package/dist/{km-BZi2lI9a.js → km-oOECmZvW.js} +2 -2
- package/dist/{km-BZi2lI9a.js.map → km-oOECmZvW.js.map} +1 -1
- package/dist/{kn-DG4bEO9x.js → kn-5VbSc-Xl.js} +2 -2
- package/dist/{kn-DG4bEO9x.js.map → kn-5VbSc-Xl.js.map} +1 -1
- package/dist/{ko-BBx3NGT9.js → ko-DxyA5dD5.js} +2 -2
- package/dist/{ko-BBx3NGT9.js.map → ko-DxyA5dD5.js.map} +1 -1
- package/dist/{ku-zlUfRFmk.js → ku-C5gxuDIG.js} +2 -2
- package/dist/{ku-zlUfRFmk.js.map → ku-C5gxuDIG.js.map} +1 -1
- package/dist/{ky-BGUl5aML.js → ky-DbXWI25O.js} +2 -2
- package/dist/{ky-BGUl5aML.js.map → ky-DbXWI25O.js.map} +1 -1
- package/dist/{lb-C3xPg22a.js → lb-ByjhlbkX.js} +2 -2
- package/dist/{lb-C3xPg22a.js.map → lb-ByjhlbkX.js.map} +1 -1
- package/dist/{lo-j7tzIyQ2.js → lo-BjI-Lfpf.js} +2 -2
- package/dist/{lo-j7tzIyQ2.js.map → lo-BjI-Lfpf.js.map} +1 -1
- package/dist/{lt-7GhJkybd.js → lt-HCNck3Za.js} +2 -2
- package/dist/{lt-7GhJkybd.js.map → lt-HCNck3Za.js.map} +1 -1
- package/dist/{lv-D57ZOqH9.js → lv-9808AvWq.js} +2 -2
- package/dist/{lv-D57ZOqH9.js.map → lv-9808AvWq.js.map} +1 -1
- package/dist/{me-C2dR0xRG.js → me-CxrVKVBG.js} +2 -2
- package/dist/{me-C2dR0xRG.js.map → me-CxrVKVBG.js.map} +1 -1
- package/dist/{mi-BjpljJ3H.js → mi-DccdzN32.js} +2 -2
- package/dist/{mi-BjpljJ3H.js.map → mi-DccdzN32.js.map} +1 -1
- package/dist/{mk-CZd_VLbg.js → mk-C0g3urNN.js} +2 -2
- package/dist/{mk-CZd_VLbg.js.map → mk-C0g3urNN.js.map} +1 -1
- package/dist/{ml-CT6Lo50Y.js → ml-lkwE1bio.js} +2 -2
- package/dist/{ml-CT6Lo50Y.js.map → ml-lkwE1bio.js.map} +1 -1
- package/dist/{mn-ClCsJp3m.js → mn-DBmTVPcC.js} +2 -2
- package/dist/{mn-ClCsJp3m.js.map → mn-DBmTVPcC.js.map} +1 -1
- package/dist/{mr-C_nVqGzR.js → mr-B_CwTksP.js} +2 -2
- package/dist/{mr-C_nVqGzR.js.map → mr-B_CwTksP.js.map} +1 -1
- package/dist/{ms-BpRymEAZ.js → ms-tLnwFvK6.js} +2 -2
- package/dist/{ms-BpRymEAZ.js.map → ms-tLnwFvK6.js.map} +1 -1
- package/dist/{mt-DeIH86kL.js → mt-CDpISvbh.js} +2 -2
- package/dist/{mt-DeIH86kL.js.map → mt-CDpISvbh.js.map} +1 -1
- package/dist/{my-CtlfBOkt.js → my-DbH-RMmr.js} +2 -2
- package/dist/{my-CtlfBOkt.js.map → my-DbH-RMmr.js.map} +1 -1
- package/dist/{nb-DmCwy_p-.js → nb-Bcabn212.js} +2 -2
- package/dist/{nb-DmCwy_p-.js.map → nb-Bcabn212.js.map} +1 -1
- package/dist/{ne-Dsua3oj7.js → ne-BSpGZCmC.js} +2 -2
- package/dist/{ne-Dsua3oj7.js.map → ne-BSpGZCmC.js.map} +1 -1
- package/dist/{nl-BlyYUoXz.js → nl-D0PM8iiO.js} +2 -2
- package/dist/{nl-BlyYUoXz.js.map → nl-D0PM8iiO.js.map} +1 -1
- package/dist/{nn-HFRkgK8F.js → nn-BEGtt44r.js} +2 -2
- package/dist/{nn-HFRkgK8F.js.map → nn-BEGtt44r.js.map} +1 -1
- package/dist/{pl-CJvEhoAe.js → pl-Jv6epPSa.js} +2 -2
- package/dist/{pl-CJvEhoAe.js.map → pl-Jv6epPSa.js.map} +1 -1
- package/dist/{pt-DGk4Pxit.js → pt-Bqb4ZtLb.js} +2 -2
- package/dist/{pt-DGk4Pxit.js.map → pt-Bqb4ZtLb.js.map} +1 -1
- package/dist/remarkable-pro/index.d.ts +1 -0
- package/dist/remarkable-pro/index.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/formatter/formatter.constants.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/formatter/formatter.types.d.ts +1 -0
- package/dist/remarkable-pro/theme/formatter/formatter.types.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/formatter/formatter.utils.d.ts +1 -0
- package/dist/remarkable-pro/theme/formatter/formatter.utils.d.ts.map +1 -1
- package/dist/remarkable-ui/editors/select/SingleSelectField/SingleSelectField.stories.d.ts +3 -1
- package/dist/remarkable-ui/editors/select/SingleSelectField/SingleSelectField.stories.d.ts.map +1 -1
- package/dist/remarkable-ui.css +1 -1
- package/dist/{ro-otFRW6n7.js → ro-B60UYPWI.js} +2 -2
- package/dist/{ro-otFRW6n7.js.map → ro-B60UYPWI.js.map} +1 -1
- package/dist/{ru-D4-j1kxX.js → ru-BDaoimxM.js} +2 -2
- package/dist/{ru-D4-j1kxX.js.map → ru-BDaoimxM.js.map} +1 -1
- package/dist/{rw-Dv29bxR9.js → rw-53-Qeep7.js} +2 -2
- package/dist/{rw-Dv29bxR9.js.map → rw-53-Qeep7.js.map} +1 -1
- package/dist/{sd-UfvKTkwj.js → sd-CihopPZv.js} +2 -2
- package/dist/{sd-UfvKTkwj.js.map → sd-CihopPZv.js.map} +1 -1
- package/dist/{se-BlIRMCjh.js → se-CiORo9oT.js} +2 -2
- package/dist/{se-BlIRMCjh.js.map → se-CiORo9oT.js.map} +1 -1
- package/dist/{si-Bxd21HyS.js → si-D9-FchNu.js} +2 -2
- package/dist/{si-Bxd21HyS.js.map → si-D9-FchNu.js.map} +1 -1
- package/dist/{sk-DTAXBQxO.js → sk-cSVf0-Qd.js} +2 -2
- package/dist/{sk-DTAXBQxO.js.map → sk-cSVf0-Qd.js.map} +1 -1
- package/dist/{sl-NaN1wp1Y.js → sl-DvP99d6y.js} +2 -2
- package/dist/{sl-NaN1wp1Y.js.map → sl-DvP99d6y.js.map} +1 -1
- package/dist/{sq-BgnQoLrA.js → sq-jH3I6hZo.js} +2 -2
- package/dist/{sq-BgnQoLrA.js.map → sq-jH3I6hZo.js.map} +1 -1
- package/dist/{sr-Ae0jYIwn.js → sr-Czm5xdQS.js} +2 -2
- package/dist/{sr-Ae0jYIwn.js.map → sr-Czm5xdQS.js.map} +1 -1
- package/dist/{ss-CgTVfjqr.js → ss-CjgaUbOs.js} +2 -2
- package/dist/{ss-CgTVfjqr.js.map → ss-CjgaUbOs.js.map} +1 -1
- package/dist/{sv-BlPVleIn.js → sv-DF8UWfY0.js} +2 -2
- package/dist/{sv-BlPVleIn.js.map → sv-DF8UWfY0.js.map} +1 -1
- package/dist/{sw-C3gltFc-.js → sw-Epb_4Vqo.js} +2 -2
- package/dist/{sw-C3gltFc-.js.map → sw-Epb_4Vqo.js.map} +1 -1
- package/dist/{ta-QvBwZsIy.js → ta-B6RaXgYk.js} +2 -2
- package/dist/{ta-QvBwZsIy.js.map → ta-B6RaXgYk.js.map} +1 -1
- package/dist/{te-BYBvg9_f.js → te-BjDGjlAW.js} +2 -2
- package/dist/{te-BYBvg9_f.js.map → te-BjDGjlAW.js.map} +1 -1
- package/dist/{tet-rEQl4n-s.js → tet-Be4QuQ3p.js} +2 -2
- package/dist/{tet-rEQl4n-s.js.map → tet-Be4QuQ3p.js.map} +1 -1
- package/dist/{tg-bpZb3uF4.js → tg-CXgY5CET.js} +2 -2
- package/dist/{tg-bpZb3uF4.js.map → tg-CXgY5CET.js.map} +1 -1
- package/dist/{th-GHjiObj2.js → th-BRy_dLr1.js} +2 -2
- package/dist/{th-GHjiObj2.js.map → th-BRy_dLr1.js.map} +1 -1
- package/dist/{tk-CdtMyBUh.js → tk-CNg7472O.js} +2 -2
- package/dist/{tk-CdtMyBUh.js.map → tk-CNg7472O.js.map} +1 -1
- package/dist/{tlh-BWbm6DyR.js → tlh-BAyqgZEI.js} +2 -2
- package/dist/{tlh-BWbm6DyR.js.map → tlh-BAyqgZEI.js.map} +1 -1
- package/dist/{tr-NkbOe4ns.js → tr-LB0QUPJj.js} +2 -2
- package/dist/{tr-NkbOe4ns.js.map → tr-LB0QUPJj.js.map} +1 -1
- package/dist/{tzl-Cuq-ONau.js → tzl-CugVukzH.js} +2 -2
- package/dist/{tzl-Cuq-ONau.js.map → tzl-CugVukzH.js.map} +1 -1
- package/dist/{tzm-C-i_Nd9C.js → tzm-DTrrvjek.js} +2 -2
- package/dist/{tzm-C-i_Nd9C.js.map → tzm-DTrrvjek.js.map} +1 -1
- package/dist/{uk-D8U8tujy.js → uk-dHAt2WWZ.js} +2 -2
- package/dist/{uk-D8U8tujy.js.map → uk-dHAt2WWZ.js.map} +1 -1
- package/dist/{ur-T138Lwgo.js → ur-CNJQ_KNF.js} +2 -2
- package/dist/{ur-T138Lwgo.js.map → ur-CNJQ_KNF.js.map} +1 -1
- package/dist/{uz-CB-SziqT.js → uz-CBUPUaJ4.js} +2 -2
- package/dist/{uz-CB-SziqT.js.map → uz-CBUPUaJ4.js.map} +1 -1
- package/dist/{vi-D7I2aOSd.js → vi-BkNVKvdt.js} +2 -2
- package/dist/{vi-D7I2aOSd.js.map → vi-BkNVKvdt.js.map} +1 -1
- package/dist/{x-pseudo-D8gMNWuD.js → x-pseudo-C_C40Mnl.js} +2 -2
- package/dist/{x-pseudo-D8gMNWuD.js.map → x-pseudo-C_C40Mnl.js.map} +1 -1
- package/dist/{yo-BVDcq878.js → yo-Dxrnyk_o.js} +2 -2
- package/dist/{yo-BVDcq878.js.map → yo-Dxrnyk_o.js.map} +1 -1
- package/dist/{zh-cn-DNApLar1.js → zh-cn-DnC1woAW.js} +2 -2
- package/dist/{zh-cn-DNApLar1.js.map → zh-cn-DnC1woAW.js.map} +1 -1
- package/dist/{zh-hk-DnMFsYUj.js → zh-hk-CgYDV_9G.js} +2 -2
- package/dist/{zh-hk-DnMFsYUj.js.map → zh-hk-CgYDV_9G.js.map} +1 -1
- package/dist/{zh-tw-uNtOv8t7.js → zh-tw-BmG-MybT.js} +2 -2
- package/dist/{zh-tw-uNtOv8t7.js.map → zh-tw-BmG-MybT.js.map} +1 -1
- package/package.json +1 -1
- package/dist/ChartCard-sPUtrDtb.js.map +0 -1
- package/dist/formatter.utils-BxxcDs9R.js.map +0 -1
|
@@ -566,14 +566,14 @@ const nf = "embeddable-event:load-data", sf = (e, t, n, i) => {
|
|
|
566
566
|
propertyName: i
|
|
567
567
|
}
|
|
568
568
|
}));
|
|
569
|
-
},
|
|
569
|
+
}, r_ = (e) => ({
|
|
570
570
|
requestParams: e,
|
|
571
571
|
dataLoader: sf
|
|
572
572
|
}), Fl = (e) => (e == null ? void 0 : e.__type__) === Ll, jl = (e) => (e == null ? void 0 : e.__type__) === Il, pr = (e) => "dimension" in (e ?? {}) && !("__type__" in e), of = (e) => Fl(e) || jl(e), mr = (e, t) => ({
|
|
573
573
|
operation: e,
|
|
574
574
|
value: t ?? null,
|
|
575
575
|
__embeddableVariableMeta: !0
|
|
576
|
-
}),
|
|
576
|
+
}), a_ = {
|
|
577
577
|
noFilter: () => mr("NO_FILTER"),
|
|
578
578
|
of: (e) => mr("VALUE", e)
|
|
579
579
|
};
|
|
@@ -2009,7 +2009,7 @@ nt.setDefaultNamespace;
|
|
|
2009
2009
|
nt.hasLoadedNamespace;
|
|
2010
2010
|
nt.loadNamespaces;
|
|
2011
2011
|
nt.loadLanguages;
|
|
2012
|
-
const
|
|
2012
|
+
const l_ = (e) => {
|
|
2013
2013
|
var t, n;
|
|
2014
2014
|
!((t = e == null ? void 0 : e.i18n) != null && t.language) || !((n = e == null ? void 0 : e.i18n) != null && n.translations) || nt.language === e.i18n.language && nt.isInitialized || nt.init({
|
|
2015
2015
|
lng: e.i18n.language,
|
|
@@ -2055,7 +2055,7 @@ const Nf = vt.forwardRef(
|
|
|
2055
2055
|
({ children: e, className: t, ...n }, i) => /* @__PURE__ */ C.jsx("div", { className: fe(je.card, t), ref: i, ...n, children: e })
|
|
2056
2056
|
);
|
|
2057
2057
|
Nf.displayName = "Card";
|
|
2058
|
-
const
|
|
2058
|
+
const c_ = ({ title: e, subtitle: t, rightContent: n }) => !e && !t && !n ? null : /* @__PURE__ */ C.jsxs("div", { className: je.header, children: [
|
|
2059
2059
|
/* @__PURE__ */ C.jsxs("div", { className: je.titles, children: [
|
|
2060
2060
|
e && /* @__PURE__ */ C.jsx(Se, { as: "h1", className: je.title, children: e }),
|
|
2061
2061
|
t && /* @__PURE__ */ C.jsx(Se, { as: "p", className: je.subtitle, children: t })
|
|
@@ -2069,7 +2069,7 @@ const jf = "_info_11vdf_1", $f = "_title_11vdf_9", Bf = "_message_11vdf_18", Os
|
|
|
2069
2069
|
info: jf,
|
|
2070
2070
|
title: $f,
|
|
2071
2071
|
message: Bf
|
|
2072
|
-
},
|
|
2072
|
+
}, u_ = ({
|
|
2073
2073
|
icon: e,
|
|
2074
2074
|
title: t,
|
|
2075
2075
|
message: n,
|
|
@@ -4962,7 +4962,7 @@ var qp = "MenuAnchor", Io = y.forwardRef(
|
|
|
4962
4962
|
}
|
|
4963
4963
|
);
|
|
4964
4964
|
Io.displayName = qp;
|
|
4965
|
-
var Zp = "MenuPortal", [
|
|
4965
|
+
var Zp = "MenuPortal", [d_, $c] = Oe(Zp, {
|
|
4966
4966
|
forceMount: void 0
|
|
4967
4967
|
}), Ot = "MenuContent", [Qp, No] = Oe(Ot), Bc = y.forwardRef(
|
|
4968
4968
|
(e, t) => {
|
|
@@ -5329,7 +5329,7 @@ var um = "MenuArrow", qc = y.forwardRef(
|
|
|
5329
5329
|
}
|
|
5330
5330
|
);
|
|
5331
5331
|
qc.displayName = um;
|
|
5332
|
-
var dm = "MenuSub", [
|
|
5332
|
+
var dm = "MenuSub", [f_, Zc] = Oe(dm), bn = "MenuSubTrigger", Qc = y.forwardRef(
|
|
5333
5333
|
(e, t) => {
|
|
5334
5334
|
const n = Je(bn, e.__scopeMenu), i = Vn(bn, e.__scopeMenu), s = Zc(bn, e.__scopeMenu), o = No(bn, e.__scopeMenu), r = y.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = o, c = { __scopeMenu: e.__scopeMenu }, u = y.useCallback(() => {
|
|
5335
5335
|
r.current && window.clearTimeout(r.current), r.current = null;
|
|
@@ -5479,7 +5479,7 @@ function mm(e, t) {
|
|
|
5479
5479
|
function Ln(e) {
|
|
5480
5480
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
5481
5481
|
}
|
|
5482
|
-
var bm = jc, ym = Io, xm = Bc, vm = jo, wm = zc, _m = ls, Sm = Hc, Cm = Yc, Mm = Uc, km = Gc, Pm = Jc, Om = qc, Rm = Qc, Am = eu, cs = "DropdownMenu", [Em,
|
|
5482
|
+
var bm = jc, ym = Io, xm = Bc, vm = jo, wm = zc, _m = ls, Sm = Hc, Cm = Yc, Mm = Uc, km = Gc, Pm = Jc, Om = qc, Rm = Qc, Am = eu, cs = "DropdownMenu", [Em, h_] = Bn(
|
|
5483
5483
|
cs,
|
|
5484
5484
|
[Nc]
|
|
5485
5485
|
), mt = Nc(), [Dm, iu] = Em(cs), su = (e) => {
|
|
@@ -5651,7 +5651,7 @@ var Zm = "DropdownMenuSubContent", Qm = y.forwardRef((e, t) => {
|
|
|
5651
5651
|
});
|
|
5652
5652
|
Qm.displayName = Zm;
|
|
5653
5653
|
var tb = su, eb = ru, nb = lu, ib = cu;
|
|
5654
|
-
const
|
|
5654
|
+
const g_ = ({
|
|
5655
5655
|
triggerComponent: e,
|
|
5656
5656
|
children: t,
|
|
5657
5657
|
disabled: n,
|
|
@@ -5661,14 +5661,14 @@ const h_ = ({
|
|
|
5661
5661
|
onOpenChange: r
|
|
5662
5662
|
}) => /* @__PURE__ */ C.jsxs(tb, { open: i, onOpenChange: r, children: [
|
|
5663
5663
|
/* @__PURE__ */ C.jsx(eb, { asChild: !0, disabled: n, children: e }),
|
|
5664
|
-
/* @__PURE__ */ C.jsx(nb, { side: s, align: o, children: t })
|
|
5664
|
+
/* @__PURE__ */ C.jsx(nb, { side: s, align: o, style: { zIndex: 5 }, children: t })
|
|
5665
5665
|
] }), sb = "_listItem_1yck8_1", ob = "_leftContent_1yck8_20", rb = "_rightContent_1yck8_27", ab = "_disabled_1yck8_49", lb = "_selected_1yck8_72", an = {
|
|
5666
5666
|
listItem: sb,
|
|
5667
5667
|
leftContent: ob,
|
|
5668
5668
|
rightContent: rb,
|
|
5669
5669
|
disabled: ab,
|
|
5670
5670
|
selected: lb
|
|
5671
|
-
},
|
|
5671
|
+
}, p_ = ({
|
|
5672
5672
|
value: e,
|
|
5673
5673
|
isSelected: t,
|
|
5674
5674
|
label: n,
|
|
@@ -5694,11 +5694,12 @@ const h_ = ({
|
|
|
5694
5694
|
] })
|
|
5695
5695
|
]
|
|
5696
5696
|
}
|
|
5697
|
-
), cb = "
|
|
5697
|
+
), cb = "_button_ftc6p_1", ub = "_rightContent_ftc6p_19", db = "_leftContent_ftc6p_23", fb = "_hasValue_ftc6p_54", hb = "_loading_ftc6p_79", ln = {
|
|
5698
5698
|
button: cb,
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5699
|
+
rightContent: ub,
|
|
5700
|
+
leftContent: db,
|
|
5701
|
+
hasValue: fb,
|
|
5702
|
+
loading: hb
|
|
5702
5703
|
};
|
|
5703
5704
|
/**
|
|
5704
5705
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
@@ -5706,7 +5707,7 @@ const h_ = ({
|
|
|
5706
5707
|
* This source code is licensed under the MIT license.
|
|
5707
5708
|
* See the LICENSE file in the root directory of this source tree.
|
|
5708
5709
|
*/
|
|
5709
|
-
var
|
|
5710
|
+
var gb = {
|
|
5710
5711
|
outline: {
|
|
5711
5712
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5712
5713
|
width: 24,
|
|
@@ -5739,7 +5740,7 @@ const us = (e, t, n, i) => {
|
|
|
5739
5740
|
"svg",
|
|
5740
5741
|
{
|
|
5741
5742
|
ref: f,
|
|
5742
|
-
...
|
|
5743
|
+
...gb[e],
|
|
5743
5744
|
width: r,
|
|
5744
5745
|
height: r,
|
|
5745
5746
|
className: ["tabler-icon", `tabler-icon-${t}`, c].join(" "),
|
|
@@ -5766,28 +5767,28 @@ const us = (e, t, n, i) => {
|
|
|
5766
5767
|
* This source code is licensed under the MIT license.
|
|
5767
5768
|
* See the LICENSE file in the root directory of this source tree.
|
|
5768
5769
|
*/
|
|
5769
|
-
const
|
|
5770
|
+
const pb = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], m_ = us("outline", "alert-circle", "AlertCircle", pb);
|
|
5770
5771
|
/**
|
|
5771
5772
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
5772
5773
|
*
|
|
5773
5774
|
* This source code is licensed under the MIT license.
|
|
5774
5775
|
* See the LICENSE file in the root directory of this source tree.
|
|
5775
5776
|
*/
|
|
5776
|
-
const
|
|
5777
|
+
const mb = [["path", { d: "M12 3a9 9 0 1 0 9 9", key: "svg-0" }]], bb = us("outline", "loader-2", "Loader2", mb);
|
|
5777
5778
|
/**
|
|
5778
5779
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
5779
5780
|
*
|
|
5780
5781
|
* This source code is licensed under the MIT license.
|
|
5781
5782
|
* See the LICENSE file in the root directory of this source tree.
|
|
5782
5783
|
*/
|
|
5783
|
-
const
|
|
5784
|
+
const yb = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l12 12", key: "svg-1" }]], uu = us("outline", "x", "X", yb);
|
|
5784
5785
|
/**
|
|
5785
5786
|
* @license @tabler/icons-react v3.34.1 - MIT
|
|
5786
5787
|
*
|
|
5787
5788
|
* This source code is licensed under the MIT license.
|
|
5788
5789
|
* See the LICENSE file in the root directory of this source tree.
|
|
5789
5790
|
*/
|
|
5790
|
-
const
|
|
5791
|
+
const xb = [["path", { d: "M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z", key: "svg-0" }]], vb = us("filled", "caret-down-filled", "CaretDownFilled", xb), wb = $n(
|
|
5791
5792
|
({
|
|
5792
5793
|
startIcon: e,
|
|
5793
5794
|
valueLabel: t,
|
|
@@ -5813,17 +5814,17 @@ const yb = [["path", { d: "M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1
|
|
|
5813
5814
|
] }),
|
|
5814
5815
|
/* @__PURE__ */ C.jsxs("span", { className: ln.rightContent, children: [
|
|
5815
5816
|
c && /* @__PURE__ */ C.jsx(uu, { onPointerDown: u }),
|
|
5816
|
-
s ? /* @__PURE__ */ C.jsx(
|
|
5817
|
+
s ? /* @__PURE__ */ C.jsx(bb, { className: ln.loading }) : /* @__PURE__ */ C.jsx(vb, {})
|
|
5817
5818
|
] })
|
|
5818
5819
|
]
|
|
5819
5820
|
}
|
|
5820
5821
|
);
|
|
5821
5822
|
}
|
|
5822
5823
|
);
|
|
5823
|
-
|
|
5824
|
-
const
|
|
5825
|
-
list:
|
|
5826
|
-
},
|
|
5824
|
+
wb.displayName = "SelectButton";
|
|
5825
|
+
const _b = "_list_11j5f_1", Sb = {
|
|
5826
|
+
list: _b
|
|
5827
|
+
}, b_ = ({ children: e, autoFocus: t, className: n }) => {
|
|
5827
5828
|
const i = He(null), s = He(0);
|
|
5828
5829
|
return pe(() => {
|
|
5829
5830
|
const o = i.current;
|
|
@@ -5855,11 +5856,11 @@ const wb = "_list_11cgs_1", _b = {
|
|
|
5855
5856
|
}, 0), () => {
|
|
5856
5857
|
o.removeEventListener("keydown", l);
|
|
5857
5858
|
};
|
|
5858
|
-
}, [t, e]), /* @__PURE__ */ C.jsx("div", { ref: i, tabIndex: -1, className: fe(
|
|
5859
|
-
},
|
|
5860
|
-
input:
|
|
5861
|
-
clearIcon:
|
|
5862
|
-
},
|
|
5859
|
+
}, [t, e]), /* @__PURE__ */ C.jsx("div", { ref: i, tabIndex: -1, className: fe(Sb.list, n), children: e });
|
|
5860
|
+
}, Cb = "_input_169og_1", Mb = "_clearIcon_169og_71", oa = {
|
|
5861
|
+
input: Cb,
|
|
5862
|
+
clearIcon: Mb
|
|
5863
|
+
}, kb = $n(
|
|
5863
5864
|
({
|
|
5864
5865
|
value: e = "",
|
|
5865
5866
|
disabled: t,
|
|
@@ -5891,7 +5892,7 @@ const wb = "_list_11cgs_1", _b = {
|
|
|
5891
5892
|
] })
|
|
5892
5893
|
] })
|
|
5893
5894
|
);
|
|
5894
|
-
|
|
5895
|
+
kb.displayName = "TextField";
|
|
5895
5896
|
/*!
|
|
5896
5897
|
* @kurkle/color v0.3.4
|
|
5897
5898
|
* https://github.com/kurkle/color#readme
|
|
@@ -5914,8 +5915,8 @@ function Xt(e) {
|
|
|
5914
5915
|
function ra(e) {
|
|
5915
5916
|
return ie(Yn(e * 100), 0, 100);
|
|
5916
5917
|
}
|
|
5917
|
-
const kt = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, co = [..."0123456789ABCDEF"],
|
|
5918
|
-
function
|
|
5918
|
+
const kt = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, co = [..."0123456789ABCDEF"], Pb = (e) => co[e & 15], Ob = (e) => co[(e & 240) >> 4] + co[e & 15], ii = (e) => (e & 240) >> 4 === (e & 15), Rb = (e) => ii(e.r) && ii(e.g) && ii(e.b) && ii(e.a);
|
|
5919
|
+
function Ab(e) {
|
|
5919
5920
|
var t = e.length, n;
|
|
5920
5921
|
return e[0] === "#" && (t === 4 || t === 5 ? n = {
|
|
5921
5922
|
r: 255 & kt[e[1]] * 17,
|
|
@@ -5929,34 +5930,34 @@ function Rb(e) {
|
|
|
5929
5930
|
a: t === 9 ? kt[e[7]] << 4 | kt[e[8]] : 255
|
|
5930
5931
|
})), n;
|
|
5931
5932
|
}
|
|
5932
|
-
const
|
|
5933
|
-
function
|
|
5934
|
-
var t =
|
|
5935
|
-
return e ? "#" + t(e.r) + t(e.g) + t(e.b) +
|
|
5933
|
+
const Eb = (e, t) => e < 255 ? t(e) : "";
|
|
5934
|
+
function Db(e) {
|
|
5935
|
+
var t = Rb(e) ? Pb : Ob;
|
|
5936
|
+
return e ? "#" + t(e.r) + t(e.g) + t(e.b) + Eb(e.a, t) : void 0;
|
|
5936
5937
|
}
|
|
5937
|
-
const
|
|
5938
|
+
const Tb = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
5938
5939
|
function du(e, t, n) {
|
|
5939
5940
|
const i = t * Math.min(n, 1 - n), s = (o, r = (o + e / 30) % 12) => n - i * Math.max(Math.min(r - 3, 9 - r, 1), -1);
|
|
5940
5941
|
return [s(0), s(8), s(4)];
|
|
5941
5942
|
}
|
|
5942
|
-
function
|
|
5943
|
+
function Lb(e, t, n) {
|
|
5943
5944
|
const i = (s, o = (s + e / 60) % 6) => n - n * t * Math.max(Math.min(o, 4 - o, 1), 0);
|
|
5944
5945
|
return [i(5), i(3), i(1)];
|
|
5945
5946
|
}
|
|
5946
|
-
function
|
|
5947
|
+
function Ib(e, t, n) {
|
|
5947
5948
|
const i = du(e, 1, 0.5);
|
|
5948
5949
|
let s;
|
|
5949
5950
|
for (t + n > 1 && (s = 1 / (t + n), t *= s, n *= s), s = 0; s < 3; s++)
|
|
5950
5951
|
i[s] *= 1 - t - n, i[s] += t;
|
|
5951
5952
|
return i;
|
|
5952
5953
|
}
|
|
5953
|
-
function
|
|
5954
|
+
function Nb(e, t, n, i, s) {
|
|
5954
5955
|
return e === s ? (t - n) / i + (t < n ? 6 : 0) : t === s ? (n - e) / i + 2 : (e - t) / i + 4;
|
|
5955
5956
|
}
|
|
5956
5957
|
function zo(e) {
|
|
5957
5958
|
const n = e.r / 255, i = e.g / 255, s = e.b / 255, o = Math.max(n, i, s), r = Math.min(n, i, s), a = (o + r) / 2;
|
|
5958
5959
|
let l, c, u;
|
|
5959
|
-
return o !== r && (u = o - r, c = a > 0.5 ? u / (2 - o - r) : u / (o + r), l =
|
|
5960
|
+
return o !== r && (u = o - r, c = a > 0.5 ? u / (2 - o - r) : u / (o + r), l = Nb(n, i, s, u, o), l = l * 60 + 0.5), [l | 0, c || 0, a];
|
|
5960
5961
|
}
|
|
5961
5962
|
function Wo(e, t, n, i) {
|
|
5962
5963
|
return (Array.isArray(t) ? e(t[0], t[1], t[2]) : e(t, n, i)).map(re);
|
|
@@ -5964,34 +5965,34 @@ function Wo(e, t, n, i) {
|
|
|
5964
5965
|
function Ho(e, t, n) {
|
|
5965
5966
|
return Wo(du, e, t, n);
|
|
5966
5967
|
}
|
|
5967
|
-
function Nb(e, t, n) {
|
|
5968
|
-
return Wo(Lb, e, t, n);
|
|
5969
|
-
}
|
|
5970
5968
|
function Fb(e, t, n) {
|
|
5971
|
-
return Wo(
|
|
5969
|
+
return Wo(Ib, e, t, n);
|
|
5970
|
+
}
|
|
5971
|
+
function jb(e, t, n) {
|
|
5972
|
+
return Wo(Lb, e, t, n);
|
|
5972
5973
|
}
|
|
5973
5974
|
function fu(e) {
|
|
5974
5975
|
return (e % 360 + 360) % 360;
|
|
5975
5976
|
}
|
|
5976
|
-
function
|
|
5977
|
-
const t =
|
|
5977
|
+
function $b(e) {
|
|
5978
|
+
const t = Tb.exec(e);
|
|
5978
5979
|
let n = 255, i;
|
|
5979
5980
|
if (!t)
|
|
5980
5981
|
return;
|
|
5981
5982
|
t[5] !== i && (n = t[6] ? yn(+t[5]) : re(+t[5]));
|
|
5982
5983
|
const s = fu(+t[2]), o = +t[3] / 100, r = +t[4] / 100;
|
|
5983
|
-
return t[1] === "hwb" ? i =
|
|
5984
|
+
return t[1] === "hwb" ? i = Fb(s, o, r) : t[1] === "hsv" ? i = jb(s, o, r) : i = Ho(s, o, r), {
|
|
5984
5985
|
r: i[0],
|
|
5985
5986
|
g: i[1],
|
|
5986
5987
|
b: i[2],
|
|
5987
5988
|
a: n
|
|
5988
5989
|
};
|
|
5989
5990
|
}
|
|
5990
|
-
function
|
|
5991
|
+
function Bb(e, t) {
|
|
5991
5992
|
var n = zo(e);
|
|
5992
5993
|
n[0] = fu(n[0] + t), n = Ho(n), e.r = n[0], e.g = n[1], e.b = n[2];
|
|
5993
5994
|
}
|
|
5994
|
-
function
|
|
5995
|
+
function zb(e) {
|
|
5995
5996
|
if (!e)
|
|
5996
5997
|
return;
|
|
5997
5998
|
const t = zo(e), n = t[0], i = ra(t[1]), s = ra(t[2]);
|
|
@@ -6175,7 +6176,7 @@ const aa = {
|
|
|
6175
6176
|
Lw: "ffff00",
|
|
6176
6177
|
LwgYF: "9acd32"
|
|
6177
6178
|
};
|
|
6178
|
-
function
|
|
6179
|
+
function Wb() {
|
|
6179
6180
|
const e = {}, t = Object.keys(la), n = Object.keys(aa);
|
|
6180
6181
|
let i, s, o, r, a;
|
|
6181
6182
|
for (i = 0; i < t.length; i++) {
|
|
@@ -6186,8 +6187,8 @@ function zb() {
|
|
|
6186
6187
|
return e;
|
|
6187
6188
|
}
|
|
6188
6189
|
let si;
|
|
6189
|
-
function
|
|
6190
|
-
si || (si =
|
|
6190
|
+
function Hb(e) {
|
|
6191
|
+
si || (si = Wb(), si.transparent = [0, 0, 0, 0]);
|
|
6191
6192
|
const t = si[e.toLowerCase()];
|
|
6192
6193
|
return t && {
|
|
6193
6194
|
r: t[0],
|
|
@@ -6196,9 +6197,9 @@ function Wb(e) {
|
|
|
6196
6197
|
a: t.length === 4 ? t[3] : 255
|
|
6197
6198
|
};
|
|
6198
6199
|
}
|
|
6199
|
-
const
|
|
6200
|
-
function
|
|
6201
|
-
const t =
|
|
6200
|
+
const Vb = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
6201
|
+
function Yb(e) {
|
|
6202
|
+
const t = Vb.exec(e);
|
|
6202
6203
|
let n = 255, i, s, o;
|
|
6203
6204
|
if (t) {
|
|
6204
6205
|
if (t[7] !== i) {
|
|
@@ -6213,11 +6214,11 @@ function Vb(e) {
|
|
|
6213
6214
|
};
|
|
6214
6215
|
}
|
|
6215
6216
|
}
|
|
6216
|
-
function
|
|
6217
|
+
function Kb(e) {
|
|
6217
6218
|
return e && (e.a < 255 ? `rgba(${e.r}, ${e.g}, ${e.b}, ${Xt(e.a)})` : `rgb(${e.r}, ${e.g}, ${e.b})`);
|
|
6218
6219
|
}
|
|
6219
6220
|
const $s = (e) => e <= 31308e-7 ? e * 12.92 : Math.pow(e, 1 / 2.4) * 1.055 - 0.055, Ne = (e) => e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
|
|
6220
|
-
function
|
|
6221
|
+
function Ub(e, t, n) {
|
|
6221
6222
|
const i = Ne(Xt(e.r)), s = Ne(Xt(e.g)), o = Ne(Xt(e.b));
|
|
6222
6223
|
return {
|
|
6223
6224
|
r: re($s(i + n * (Ne(Xt(t.r)) - i))),
|
|
@@ -6239,8 +6240,8 @@ function ca(e) {
|
|
|
6239
6240
|
var t = { r: 0, g: 0, b: 0, a: 255 };
|
|
6240
6241
|
return Array.isArray(e) ? e.length >= 3 && (t = { r: e[0], g: e[1], b: e[2], a: 255 }, e.length > 3 && (t.a = re(e[3]))) : (t = hu(e, { r: 0, g: 0, b: 0, a: 1 }), t.a = re(t.a)), t;
|
|
6241
6242
|
}
|
|
6242
|
-
function
|
|
6243
|
-
return e.charAt(0) === "r" ?
|
|
6243
|
+
function Xb(e) {
|
|
6244
|
+
return e.charAt(0) === "r" ? Yb(e) : $b(e);
|
|
6244
6245
|
}
|
|
6245
6246
|
class In {
|
|
6246
6247
|
constructor(t) {
|
|
@@ -6248,7 +6249,7 @@ class In {
|
|
|
6248
6249
|
return t;
|
|
6249
6250
|
const n = typeof t;
|
|
6250
6251
|
let i;
|
|
6251
|
-
n === "object" ? i = ca(t) : n === "string" && (i =
|
|
6252
|
+
n === "object" ? i = ca(t) : n === "string" && (i = Ab(t) || Hb(t) || Xb(t)), this._rgb = i, this._valid = !!i;
|
|
6252
6253
|
}
|
|
6253
6254
|
get valid() {
|
|
6254
6255
|
return this._valid;
|
|
@@ -6261,13 +6262,13 @@ class In {
|
|
|
6261
6262
|
this._rgb = ca(t);
|
|
6262
6263
|
}
|
|
6263
6264
|
rgbString() {
|
|
6264
|
-
return this._valid ?
|
|
6265
|
+
return this._valid ? Kb(this._rgb) : void 0;
|
|
6265
6266
|
}
|
|
6266
6267
|
hexString() {
|
|
6267
|
-
return this._valid ?
|
|
6268
|
+
return this._valid ? Db(this._rgb) : void 0;
|
|
6268
6269
|
}
|
|
6269
6270
|
hslString() {
|
|
6270
|
-
return this._valid ?
|
|
6271
|
+
return this._valid ? zb(this._rgb) : void 0;
|
|
6271
6272
|
}
|
|
6272
6273
|
mix(t, n) {
|
|
6273
6274
|
if (t) {
|
|
@@ -6279,7 +6280,7 @@ class In {
|
|
|
6279
6280
|
return this;
|
|
6280
6281
|
}
|
|
6281
6282
|
interpolate(t, n) {
|
|
6282
|
-
return t && (this._rgb =
|
|
6283
|
+
return t && (this._rgb = Ub(this._rgb, t._rgb, n)), this;
|
|
6283
6284
|
}
|
|
6284
6285
|
clone() {
|
|
6285
6286
|
return new In(this.rgb);
|
|
@@ -6316,7 +6317,7 @@ class In {
|
|
|
6316
6317
|
return oi(this._rgb, 1, -t), this;
|
|
6317
6318
|
}
|
|
6318
6319
|
rotate(t) {
|
|
6319
|
-
return
|
|
6320
|
+
return Bb(this._rgb, t), this;
|
|
6320
6321
|
}
|
|
6321
6322
|
}
|
|
6322
6323
|
/*!
|
|
@@ -6327,7 +6328,7 @@ class In {
|
|
|
6327
6328
|
*/
|
|
6328
6329
|
function Yt() {
|
|
6329
6330
|
}
|
|
6330
|
-
const
|
|
6331
|
+
const Gb = /* @__PURE__ */ (() => {
|
|
6331
6332
|
let e = 0;
|
|
6332
6333
|
return () => e++;
|
|
6333
6334
|
})();
|
|
@@ -6352,7 +6353,7 @@ function Dt(e, t) {
|
|
|
6352
6353
|
function W(e, t) {
|
|
6353
6354
|
return typeof e > "u" ? t : e;
|
|
6354
6355
|
}
|
|
6355
|
-
const
|
|
6356
|
+
const Jb = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, gu = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
|
|
6356
6357
|
function K(e, t, n) {
|
|
6357
6358
|
if (e && typeof e.call == "function")
|
|
6358
6359
|
return e.apply(n, t);
|
|
@@ -6394,7 +6395,7 @@ function pu(e) {
|
|
|
6394
6395
|
"constructor"
|
|
6395
6396
|
].indexOf(e) === -1;
|
|
6396
6397
|
}
|
|
6397
|
-
function
|
|
6398
|
+
function qb(e, t, n, i) {
|
|
6398
6399
|
if (!pu(e))
|
|
6399
6400
|
return;
|
|
6400
6401
|
const s = t[e], o = n[e];
|
|
@@ -6407,7 +6408,7 @@ function zt(e, t, n) {
|
|
|
6407
6408
|
if (!B(e))
|
|
6408
6409
|
return e;
|
|
6409
6410
|
n = n || {};
|
|
6410
|
-
const o = n.merger ||
|
|
6411
|
+
const o = n.merger || qb;
|
|
6411
6412
|
let r;
|
|
6412
6413
|
for (let a = 0; a < s; ++a) {
|
|
6413
6414
|
if (r = i[a], !B(r))
|
|
@@ -6420,10 +6421,10 @@ function zt(e, t, n) {
|
|
|
6420
6421
|
}
|
|
6421
6422
|
function Sn(e, t) {
|
|
6422
6423
|
return zt(e, t, {
|
|
6423
|
-
merger:
|
|
6424
|
+
merger: Zb
|
|
6424
6425
|
});
|
|
6425
6426
|
}
|
|
6426
|
-
function
|
|
6427
|
+
function Zb(e, t, n) {
|
|
6427
6428
|
if (!pu(e))
|
|
6428
6429
|
return;
|
|
6429
6430
|
const i = t[e], s = n[e];
|
|
@@ -6436,15 +6437,15 @@ const ua = {
|
|
|
6436
6437
|
x: (e) => e.x,
|
|
6437
6438
|
y: (e) => e.y
|
|
6438
6439
|
};
|
|
6439
|
-
function
|
|
6440
|
+
function Qb(e) {
|
|
6440
6441
|
const t = e.split("."), n = [];
|
|
6441
6442
|
let i = "";
|
|
6442
6443
|
for (const s of t)
|
|
6443
6444
|
i += s, i.endsWith("\\") ? i = i.slice(0, -1) + "." : (n.push(i), i = "");
|
|
6444
6445
|
return n;
|
|
6445
6446
|
}
|
|
6446
|
-
function
|
|
6447
|
-
const t =
|
|
6447
|
+
function ty(e) {
|
|
6448
|
+
const t = Qb(e);
|
|
6448
6449
|
return (n) => {
|
|
6449
6450
|
for (const i of t) {
|
|
6450
6451
|
if (i === "")
|
|
@@ -6455,7 +6456,7 @@ function Qb(e) {
|
|
|
6455
6456
|
};
|
|
6456
6457
|
}
|
|
6457
6458
|
function Nn(e, t) {
|
|
6458
|
-
return (ua[t] || (ua[t] =
|
|
6459
|
+
return (ua[t] || (ua[t] = ty(t)))(e);
|
|
6459
6460
|
}
|
|
6460
6461
|
function Vo(e) {
|
|
6461
6462
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -6468,22 +6469,22 @@ const Ct = (e) => typeof e < "u", ht = (e) => typeof e == "function", da = (e, t
|
|
|
6468
6469
|
return !1;
|
|
6469
6470
|
return !0;
|
|
6470
6471
|
};
|
|
6471
|
-
function
|
|
6472
|
+
function ey(e) {
|
|
6472
6473
|
return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
|
|
6473
6474
|
}
|
|
6474
6475
|
const z = Math.PI, tt = 2 * z, zi = Number.POSITIVE_INFINITY, Yo = z / 180, Z = z / 2, Pt = z / 4, Wi = z * 2 / 3, fa = Math.sign;
|
|
6475
|
-
function
|
|
6476
|
+
function ny(e) {
|
|
6476
6477
|
const t = [], n = Math.sqrt(e);
|
|
6477
6478
|
let i;
|
|
6478
6479
|
for (i = 1; i < n; i++)
|
|
6479
6480
|
e % i === 0 && (t.push(i), t.push(e / i));
|
|
6480
6481
|
return n === (n | 0) && t.push(n), t.sort((s, o) => s - o).pop(), t;
|
|
6481
6482
|
}
|
|
6482
|
-
function
|
|
6483
|
+
function iy(e) {
|
|
6483
6484
|
return typeof e == "symbol" || typeof e == "object" && e !== null && !(Symbol.toPrimitive in e || "toString" in e || "valueOf" in e);
|
|
6484
6485
|
}
|
|
6485
6486
|
function Ye(e) {
|
|
6486
|
-
return !
|
|
6487
|
+
return !iy(e) && !isNaN(parseFloat(e)) && isFinite(e);
|
|
6487
6488
|
}
|
|
6488
6489
|
function at(e) {
|
|
6489
6490
|
return e * (z / 180);
|
|
@@ -6512,7 +6513,7 @@ function Vi(e, t, n, i) {
|
|
|
6512
6513
|
function _t(e, t, n) {
|
|
6513
6514
|
return Math.max(t, Math.min(n, e));
|
|
6514
6515
|
}
|
|
6515
|
-
function
|
|
6516
|
+
function sy(e) {
|
|
6516
6517
|
return _t(e, -32768, 32767);
|
|
6517
6518
|
}
|
|
6518
6519
|
function be(e, t, n, i = 1e-6) {
|
|
@@ -6531,8 +6532,8 @@ function Ko(e, t, n) {
|
|
|
6531
6532
|
const uo = (e, t, n, i) => Ko(e, n, i ? (s) => {
|
|
6532
6533
|
const o = e[s][t];
|
|
6533
6534
|
return o < n || o === n && e[s + 1][t] === n;
|
|
6534
|
-
} : (s) => e[s][t] < n),
|
|
6535
|
-
function
|
|
6535
|
+
} : (s) => e[s][t] < n), oy = (e, t, n) => Ko(e, n, (i) => e[i][t] >= n);
|
|
6536
|
+
function ry(e, t, n) {
|
|
6536
6537
|
let i = 0, s = e.length;
|
|
6537
6538
|
for (; i < s && e[i] < t; )
|
|
6538
6539
|
i++;
|
|
@@ -6547,7 +6548,7 @@ const bu = [
|
|
|
6547
6548
|
"splice",
|
|
6548
6549
|
"unshift"
|
|
6549
6550
|
];
|
|
6550
|
-
function
|
|
6551
|
+
function ay(e, t) {
|
|
6551
6552
|
if (e._chartjs) {
|
|
6552
6553
|
e._chartjs.listeners.push(t);
|
|
6553
6554
|
return;
|
|
@@ -6583,7 +6584,7 @@ function ha(e, t) {
|
|
|
6583
6584
|
delete e[o];
|
|
6584
6585
|
}), delete e._chartjs);
|
|
6585
6586
|
}
|
|
6586
|
-
function
|
|
6587
|
+
function ly(e) {
|
|
6587
6588
|
const t = new Set(e);
|
|
6588
6589
|
return t.size === e.length ? e : Array.from(t);
|
|
6589
6590
|
}
|
|
@@ -6600,13 +6601,13 @@ function xu(e, t) {
|
|
|
6600
6601
|
}));
|
|
6601
6602
|
};
|
|
6602
6603
|
}
|
|
6603
|
-
function
|
|
6604
|
+
function cy(e, t) {
|
|
6604
6605
|
let n;
|
|
6605
6606
|
return function(...i) {
|
|
6606
6607
|
return t ? (clearTimeout(n), n = setTimeout(e, t, i)) : e.apply(this, i), t;
|
|
6607
6608
|
};
|
|
6608
6609
|
}
|
|
6609
|
-
const vu = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", xt = (e, t, n) => e === "start" ? t : e === "end" ? n : (t + n) / 2,
|
|
6610
|
+
const vu = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", xt = (e, t, n) => e === "start" ? t : e === "end" ? n : (t + n) / 2, uy = (e, t, n, i) => e === (i ? "left" : "right") ? n : e === "center" ? (t + n) / 2 : t, ri = (e) => e === 0 || e === 1, ga = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * tt / n)), pa = (e, t, n) => Math.pow(2, -10 * e) * Math.sin((e - t) * tt / n) + 1, Cn = {
|
|
6610
6611
|
linear: (e) => e,
|
|
6611
6612
|
easeInQuad: (e) => e * e,
|
|
6612
6613
|
easeOutQuad: (e) => -e * (e - 2),
|
|
@@ -6663,18 +6664,18 @@ function ma(e) {
|
|
|
6663
6664
|
function Bs(e) {
|
|
6664
6665
|
return wu(e) ? e : new In(e).saturate(0.5).darken(0.1).hexString();
|
|
6665
6666
|
}
|
|
6666
|
-
const
|
|
6667
|
+
const dy = [
|
|
6667
6668
|
"x",
|
|
6668
6669
|
"y",
|
|
6669
6670
|
"borderWidth",
|
|
6670
6671
|
"radius",
|
|
6671
6672
|
"tension"
|
|
6672
|
-
],
|
|
6673
|
+
], fy = [
|
|
6673
6674
|
"color",
|
|
6674
6675
|
"borderColor",
|
|
6675
6676
|
"backgroundColor"
|
|
6676
6677
|
];
|
|
6677
|
-
function
|
|
6678
|
+
function hy(e) {
|
|
6678
6679
|
e.set("animation", {
|
|
6679
6680
|
delay: void 0,
|
|
6680
6681
|
duration: 1e3,
|
|
@@ -6691,11 +6692,11 @@ function fy(e) {
|
|
|
6691
6692
|
}), e.set("animations", {
|
|
6692
6693
|
colors: {
|
|
6693
6694
|
type: "color",
|
|
6694
|
-
properties:
|
|
6695
|
+
properties: fy
|
|
6695
6696
|
},
|
|
6696
6697
|
numbers: {
|
|
6697
6698
|
type: "number",
|
|
6698
|
-
properties:
|
|
6699
|
+
properties: dy
|
|
6699
6700
|
}
|
|
6700
6701
|
}), e.describe("animations", {
|
|
6701
6702
|
_fallback: "animation"
|
|
@@ -6735,7 +6736,7 @@ function fy(e) {
|
|
|
6735
6736
|
}
|
|
6736
6737
|
});
|
|
6737
6738
|
}
|
|
6738
|
-
function
|
|
6739
|
+
function gy(e) {
|
|
6739
6740
|
e.set("layout", {
|
|
6740
6741
|
autoPadding: !0,
|
|
6741
6742
|
padding: {
|
|
@@ -6747,24 +6748,24 @@ function hy(e) {
|
|
|
6747
6748
|
});
|
|
6748
6749
|
}
|
|
6749
6750
|
const ba = /* @__PURE__ */ new Map();
|
|
6750
|
-
function
|
|
6751
|
+
function py(e, t) {
|
|
6751
6752
|
t = t || {};
|
|
6752
6753
|
const n = e + JSON.stringify(t);
|
|
6753
6754
|
let i = ba.get(n);
|
|
6754
6755
|
return i || (i = new Intl.NumberFormat(e, t), ba.set(n, i)), i;
|
|
6755
6756
|
}
|
|
6756
|
-
function
|
|
6757
|
-
return
|
|
6757
|
+
function my(e, t, n) {
|
|
6758
|
+
return py(t, n).format(e);
|
|
6758
6759
|
}
|
|
6759
|
-
const
|
|
6760
|
+
const by = {
|
|
6760
6761
|
values(e) {
|
|
6761
6762
|
return q(e) ? e : "" + e;
|
|
6762
6763
|
}
|
|
6763
6764
|
};
|
|
6764
|
-
var
|
|
6765
|
-
formatters:
|
|
6765
|
+
var yy = {
|
|
6766
|
+
formatters: by
|
|
6766
6767
|
};
|
|
6767
|
-
function
|
|
6768
|
+
function xy(e) {
|
|
6768
6769
|
e.set("scale", {
|
|
6769
6770
|
display: !0,
|
|
6770
6771
|
offset: !1,
|
|
@@ -6808,7 +6809,7 @@ function yy(e) {
|
|
|
6808
6809
|
autoSkip: !0,
|
|
6809
6810
|
autoSkipPadding: 3,
|
|
6810
6811
|
labelOffset: 0,
|
|
6811
|
-
callback:
|
|
6812
|
+
callback: yy.formatters.values,
|
|
6812
6813
|
minor: {},
|
|
6813
6814
|
major: {},
|
|
6814
6815
|
align: "center",
|
|
@@ -6842,7 +6843,7 @@ function Mn(e, t) {
|
|
|
6842
6843
|
function zs(e, t, n) {
|
|
6843
6844
|
return typeof t == "string" ? zt(Mn(e, t), n) : zt(Mn(e, ""), t);
|
|
6844
6845
|
}
|
|
6845
|
-
class
|
|
6846
|
+
class vy {
|
|
6846
6847
|
constructor(t, n) {
|
|
6847
6848
|
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 = (i) => i.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
|
|
6848
6849
|
"mousemove",
|
|
@@ -6897,7 +6898,7 @@ class xy {
|
|
|
6897
6898
|
t.forEach((n) => n(this));
|
|
6898
6899
|
}
|
|
6899
6900
|
}
|
|
6900
|
-
var Q = /* @__PURE__ */ new
|
|
6901
|
+
var Q = /* @__PURE__ */ new vy({
|
|
6901
6902
|
_scriptable: (e) => !e.startsWith("on"),
|
|
6902
6903
|
_indexable: (e) => e !== "events",
|
|
6903
6904
|
hover: {
|
|
@@ -6908,11 +6909,11 @@ var Q = /* @__PURE__ */ new xy({
|
|
|
6908
6909
|
_indexable: !1
|
|
6909
6910
|
}
|
|
6910
6911
|
}, [
|
|
6911
|
-
fy,
|
|
6912
6912
|
hy,
|
|
6913
|
-
|
|
6913
|
+
gy,
|
|
6914
|
+
xy
|
|
6914
6915
|
]);
|
|
6915
|
-
function
|
|
6916
|
+
function wy(e) {
|
|
6916
6917
|
return !e || et(e.size) || et(e.family) ? null : (e.style ? e.style + " " : "") + (e.weight ? e.weight + " " : "") + e.size + "px " + e.family;
|
|
6917
6918
|
}
|
|
6918
6919
|
function ya(e, t, n, i, s) {
|
|
@@ -6990,16 +6991,16 @@ function fs(e, t) {
|
|
|
6990
6991
|
function hs(e) {
|
|
6991
6992
|
e.restore();
|
|
6992
6993
|
}
|
|
6993
|
-
function
|
|
6994
|
+
function _y(e, t) {
|
|
6994
6995
|
t.translation && e.translate(t.translation[0], t.translation[1]), et(t.rotation) || e.rotate(t.rotation), t.color && (e.fillStyle = t.color), t.textAlign && (e.textAlign = t.textAlign), t.textBaseline && (e.textBaseline = t.textBaseline);
|
|
6995
6996
|
}
|
|
6996
|
-
function
|
|
6997
|
+
function Sy(e, t, n, i, s) {
|
|
6997
6998
|
if (s.strikethrough || s.underline) {
|
|
6998
6999
|
const o = e.measureText(i), r = t - o.actualBoundingBoxLeft, a = t + o.actualBoundingBoxRight, l = n - o.actualBoundingBoxAscent, c = n + o.actualBoundingBoxDescent, u = s.strikethrough ? (l + c) / 2 : c;
|
|
6999
7000
|
e.strokeStyle = e.fillStyle, e.beginPath(), e.lineWidth = s.decorationWidth || 2, e.moveTo(r, u), e.lineTo(a, u), e.stroke();
|
|
7000
7001
|
}
|
|
7001
7002
|
}
|
|
7002
|
-
function
|
|
7003
|
+
function Cy(e, t) {
|
|
7003
7004
|
const n = e.fillStyle;
|
|
7004
7005
|
e.fillStyle = t.color, e.fillRect(t.left, t.top, t.width, t.height), e.fillStyle = n;
|
|
7005
7006
|
}
|
|
@@ -7008,17 +7009,17 @@ function Yi(e, t, n, i, s, o = {}) {
|
|
|
7008
7009
|
t
|
|
7009
7010
|
], a = o.strokeWidth > 0 && o.strokeColor !== "";
|
|
7010
7011
|
let l, c;
|
|
7011
|
-
for (e.save(), e.font = s.string,
|
|
7012
|
-
c = r[l], o.backdrop &&
|
|
7012
|
+
for (e.save(), e.font = s.string, _y(e, o), l = 0; l < r.length; ++l)
|
|
7013
|
+
c = r[l], o.backdrop && Cy(e, o.backdrop), a && (o.strokeColor && (e.strokeStyle = o.strokeColor), et(o.strokeWidth) || (e.lineWidth = o.strokeWidth), e.strokeText(c, n, i, o.maxWidth)), e.fillText(c, n, i, o.maxWidth), Sy(e, n, i, c, o), i += Number(s.lineHeight);
|
|
7013
7014
|
e.restore();
|
|
7014
7015
|
}
|
|
7015
7016
|
function Fn(e, t) {
|
|
7016
7017
|
const { x: n, y: i, w: s, h: o, radius: r } = t;
|
|
7017
7018
|
e.arc(n + r.topLeft, i + r.topLeft, r.topLeft, 1.5 * z, z, !0), e.lineTo(n, i + o - r.bottomLeft), e.arc(n + r.bottomLeft, i + o - r.bottomLeft, r.bottomLeft, z, Z, !0), e.lineTo(n + s - r.bottomRight, i + o), e.arc(n + s - r.bottomRight, i + o - r.bottomRight, r.bottomRight, Z, 0, !0), e.lineTo(n + s, i + r.topRight), e.arc(n + s - r.topRight, i + r.topRight, r.topRight, 0, -Z, !0), e.lineTo(n + r.topLeft, i);
|
|
7018
7019
|
}
|
|
7019
|
-
const
|
|
7020
|
-
function
|
|
7021
|
-
const n = ("" + e).match(
|
|
7020
|
+
const My = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, ky = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
|
|
7021
|
+
function Py(e, t) {
|
|
7022
|
+
const n = ("" + e).match(My);
|
|
7022
7023
|
if (!n || n[1] === "normal")
|
|
7023
7024
|
return t * 1.2;
|
|
7024
7025
|
switch (e = +n[2], n[3]) {
|
|
@@ -7030,11 +7031,11 @@ function ky(e, t) {
|
|
|
7030
7031
|
}
|
|
7031
7032
|
return t * e;
|
|
7032
7033
|
}
|
|
7033
|
-
const
|
|
7034
|
+
const Oy = (e) => +e || 0;
|
|
7034
7035
|
function Xo(e, t) {
|
|
7035
7036
|
const n = {}, i = B(t), s = i ? Object.keys(t) : t, o = B(e) ? i ? (r) => W(e[r], e[t[r]]) : (r) => e[r] : () => e;
|
|
7036
7037
|
for (const r of s)
|
|
7037
|
-
n[r] =
|
|
7038
|
+
n[r] = Oy(o(r));
|
|
7038
7039
|
return n;
|
|
7039
7040
|
}
|
|
7040
7041
|
function Su(e) {
|
|
@@ -7062,16 +7063,16 @@ function st(e, t) {
|
|
|
7062
7063
|
let n = W(e.size, t.size);
|
|
7063
7064
|
typeof n == "string" && (n = parseInt(n, 10));
|
|
7064
7065
|
let i = W(e.style, t.style);
|
|
7065
|
-
i && !("" + i).match(
|
|
7066
|
+
i && !("" + i).match(ky) && (console.warn('Invalid font style specified: "' + i + '"'), i = void 0);
|
|
7066
7067
|
const s = {
|
|
7067
7068
|
family: W(e.family, t.family),
|
|
7068
|
-
lineHeight:
|
|
7069
|
+
lineHeight: Py(W(e.lineHeight, t.lineHeight), n),
|
|
7069
7070
|
size: n,
|
|
7070
7071
|
style: i,
|
|
7071
7072
|
weight: W(e.weight, t.weight),
|
|
7072
7073
|
string: ""
|
|
7073
7074
|
};
|
|
7074
|
-
return s.string =
|
|
7075
|
+
return s.string = wy(s), s;
|
|
7075
7076
|
}
|
|
7076
7077
|
function J(e, t, n, i) {
|
|
7077
7078
|
let s, o, r;
|
|
@@ -7079,7 +7080,7 @@ function J(e, t, n, i) {
|
|
|
7079
7080
|
if (r = e[s], r !== void 0 && (t !== void 0 && typeof r == "function" && (r = r(t)), n !== void 0 && q(r) && (r = r[n % r.length]), r !== void 0))
|
|
7080
7081
|
return r;
|
|
7081
7082
|
}
|
|
7082
|
-
function
|
|
7083
|
+
function Ry(e, t, n) {
|
|
7083
7084
|
const { min: i, max: s } = e, o = gu(t, (s - i) / 2), r = (a, l) => n && a === 0 ? 0 : a + l;
|
|
7084
7085
|
return {
|
|
7085
7086
|
min: r(i, -Math.abs(o)),
|
|
@@ -7117,7 +7118,7 @@ function Go(e, t = [
|
|
|
7117
7118
|
* A trap for getting property values.
|
|
7118
7119
|
*/
|
|
7119
7120
|
get(a, l) {
|
|
7120
|
-
return Mu(a, l, () =>
|
|
7121
|
+
return Mu(a, l, () => Fy(l, t, e, a));
|
|
7121
7122
|
},
|
|
7122
7123
|
/**
|
|
7123
7124
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -7175,7 +7176,7 @@ function Ke(e, t, n, i) {
|
|
|
7175
7176
|
* A trap for getting property values.
|
|
7176
7177
|
*/
|
|
7177
7178
|
get(o, r, a) {
|
|
7178
|
-
return Mu(o, r, () =>
|
|
7179
|
+
return Mu(o, r, () => Ey(o, r, a));
|
|
7179
7180
|
},
|
|
7180
7181
|
/**
|
|
7181
7182
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -7226,19 +7227,19 @@ function Cu(e, t = {
|
|
|
7226
7227
|
isIndexable: ht(i) ? i : () => i
|
|
7227
7228
|
};
|
|
7228
7229
|
}
|
|
7229
|
-
const
|
|
7230
|
+
const Ay = (e, t) => e ? e + Vo(t) : t, Jo = (e, t) => B(t) && e !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
|
|
7230
7231
|
function Mu(e, t, n) {
|
|
7231
7232
|
if (Object.prototype.hasOwnProperty.call(e, t) || t === "constructor")
|
|
7232
7233
|
return e[t];
|
|
7233
7234
|
const i = n();
|
|
7234
7235
|
return e[t] = i, i;
|
|
7235
7236
|
}
|
|
7236
|
-
function
|
|
7237
|
+
function Ey(e, t, n) {
|
|
7237
7238
|
const { _proxy: i, _context: s, _subProxy: o, _descriptors: r } = e;
|
|
7238
7239
|
let a = i[t];
|
|
7239
|
-
return ht(a) && r.isScriptable(t) && (a =
|
|
7240
|
+
return ht(a) && r.isScriptable(t) && (a = Dy(t, a, e, n)), q(a) && a.length && (a = Ty(t, a, e, r.isIndexable)), Jo(t, a) && (a = Ke(a, s, o && o[t], r)), a;
|
|
7240
7241
|
}
|
|
7241
|
-
function
|
|
7242
|
+
function Dy(e, t, n, i) {
|
|
7242
7243
|
const { _proxy: s, _context: o, _subProxy: r, _stack: a } = n;
|
|
7243
7244
|
if (a.has(e))
|
|
7244
7245
|
throw new Error("Recursion detected: " + Array.from(a).join("->") + "->" + e);
|
|
@@ -7246,7 +7247,7 @@ function Ey(e, t, n, i) {
|
|
|
7246
7247
|
let l = t(o, r || i);
|
|
7247
7248
|
return a.delete(e), Jo(e, l) && (l = qo(s._scopes, s, e, l)), l;
|
|
7248
7249
|
}
|
|
7249
|
-
function
|
|
7250
|
+
function Ty(e, t, n, i) {
|
|
7250
7251
|
const { _proxy: s, _context: o, _subProxy: r, _descriptors: a } = n;
|
|
7251
7252
|
if (typeof o.index < "u" && i(e))
|
|
7252
7253
|
return t[o.index % t.length];
|
|
@@ -7263,10 +7264,10 @@ function Dy(e, t, n, i) {
|
|
|
7263
7264
|
function ku(e, t, n) {
|
|
7264
7265
|
return ht(e) ? e(t, n) : e;
|
|
7265
7266
|
}
|
|
7266
|
-
const
|
|
7267
|
-
function
|
|
7267
|
+
const Ly = (e, t) => e === !0 ? t : typeof e == "string" ? Nn(t, e) : void 0;
|
|
7268
|
+
function Iy(e, t, n, i, s) {
|
|
7268
7269
|
for (const o of t) {
|
|
7269
|
-
const r =
|
|
7270
|
+
const r = Ly(n, o);
|
|
7270
7271
|
if (r) {
|
|
7271
7272
|
e.add(r);
|
|
7272
7273
|
const a = ku(r._fallback, n, s);
|
|
@@ -7286,23 +7287,23 @@ function qo(e, t, n, i) {
|
|
|
7286
7287
|
let l = va(a, r, n, o || n, i);
|
|
7287
7288
|
return l === null || typeof o < "u" && o !== n && (l = va(a, r, o, l, i), l === null) ? !1 : Go(Array.from(a), [
|
|
7288
7289
|
""
|
|
7289
|
-
], s, o, () =>
|
|
7290
|
+
], s, o, () => Ny(t, n, i));
|
|
7290
7291
|
}
|
|
7291
7292
|
function va(e, t, n, i, s) {
|
|
7292
7293
|
for (; n; )
|
|
7293
|
-
n =
|
|
7294
|
+
n = Iy(e, t, n, i, s);
|
|
7294
7295
|
return n;
|
|
7295
7296
|
}
|
|
7296
|
-
function
|
|
7297
|
+
function Ny(e, t, n) {
|
|
7297
7298
|
const i = e._getTarget();
|
|
7298
7299
|
t in i || (i[t] = {});
|
|
7299
7300
|
const s = i[t];
|
|
7300
7301
|
return q(s) && B(n) ? n : s || {};
|
|
7301
7302
|
}
|
|
7302
|
-
function
|
|
7303
|
+
function Fy(e, t, n, i) {
|
|
7303
7304
|
let s;
|
|
7304
7305
|
for (const o of t)
|
|
7305
|
-
if (s = Pu(
|
|
7306
|
+
if (s = Pu(Ay(o, e), n), typeof s < "u")
|
|
7306
7307
|
return Jo(e, s) ? qo(n, i, e, s) : s;
|
|
7307
7308
|
}
|
|
7308
7309
|
function Pu(e, t) {
|
|
@@ -7316,9 +7317,9 @@ function Pu(e, t) {
|
|
|
7316
7317
|
}
|
|
7317
7318
|
function wa(e) {
|
|
7318
7319
|
let t = e._keys;
|
|
7319
|
-
return t || (t = e._keys =
|
|
7320
|
+
return t || (t = e._keys = jy(e._scopes)), t;
|
|
7320
7321
|
}
|
|
7321
|
-
function
|
|
7322
|
+
function jy(e) {
|
|
7322
7323
|
const t = /* @__PURE__ */ new Set();
|
|
7323
7324
|
for (const n of e)
|
|
7324
7325
|
for (const i of Object.keys(n).filter((s) => !s.startsWith("_")))
|
|
@@ -7337,10 +7338,10 @@ function Ki(e, t, n) {
|
|
|
7337
7338
|
return typeof e == "string" ? (i = parseInt(e, 10), e.indexOf("%") !== -1 && (i = i / 100 * t.parentNode[n])) : i = e, i;
|
|
7338
7339
|
}
|
|
7339
7340
|
const gs = (e) => e.ownerDocument.defaultView.getComputedStyle(e, null);
|
|
7340
|
-
function
|
|
7341
|
+
function $y(e, t) {
|
|
7341
7342
|
return gs(e).getPropertyValue(t);
|
|
7342
7343
|
}
|
|
7343
|
-
const
|
|
7344
|
+
const By = [
|
|
7344
7345
|
"top",
|
|
7345
7346
|
"right",
|
|
7346
7347
|
"bottom",
|
|
@@ -7350,16 +7351,16 @@ function _e(e, t, n) {
|
|
|
7350
7351
|
const i = {};
|
|
7351
7352
|
n = n ? "-" + n : "";
|
|
7352
7353
|
for (let s = 0; s < 4; s++) {
|
|
7353
|
-
const o =
|
|
7354
|
+
const o = By[s];
|
|
7354
7355
|
i[o] = parseFloat(e[t + "-" + o + n]) || 0;
|
|
7355
7356
|
}
|
|
7356
7357
|
return i.width = i.left + i.right, i.height = i.top + i.bottom, i;
|
|
7357
7358
|
}
|
|
7358
|
-
const
|
|
7359
|
-
function
|
|
7359
|
+
const zy = (e, t, n) => (e > 0 || t > 0) && (!n || !n.shadowRoot);
|
|
7360
|
+
function Wy(e, t) {
|
|
7360
7361
|
const n = e.touches, i = n && n.length ? n[0] : e, { offsetX: s, offsetY: o } = i;
|
|
7361
7362
|
let r = !1, a, l;
|
|
7362
|
-
if (
|
|
7363
|
+
if (zy(s, o, e.target))
|
|
7363
7364
|
a = s, l = o;
|
|
7364
7365
|
else {
|
|
7365
7366
|
const c = t.getBoundingClientRect();
|
|
@@ -7374,14 +7375,14 @@ function zy(e, t) {
|
|
|
7374
7375
|
function me(e, t) {
|
|
7375
7376
|
if ("native" in e)
|
|
7376
7377
|
return e;
|
|
7377
|
-
const { canvas: n, currentDevicePixelRatio: i } = t, s = gs(n), o = s.boxSizing === "border-box", r = _e(s, "padding"), a = _e(s, "border", "width"), { x: l, y: c, box: u } =
|
|
7378
|
+
const { canvas: n, currentDevicePixelRatio: i } = t, s = gs(n), o = s.boxSizing === "border-box", r = _e(s, "padding"), a = _e(s, "border", "width"), { x: l, y: c, box: u } = Wy(e, n), d = r.left + (u && a.left), f = r.top + (u && a.top);
|
|
7378
7379
|
let { width: h, height: p } = t;
|
|
7379
7380
|
return o && (h -= r.width + a.width, p -= r.height + a.height), {
|
|
7380
7381
|
x: Math.round((l - d) / h * n.width / i),
|
|
7381
7382
|
y: Math.round((c - f) / p * n.height / i)
|
|
7382
7383
|
};
|
|
7383
7384
|
}
|
|
7384
|
-
function
|
|
7385
|
+
function Hy(e, t, n) {
|
|
7385
7386
|
let i, s;
|
|
7386
7387
|
if (t === void 0 || n === void 0) {
|
|
7387
7388
|
const o = e && Qo(e);
|
|
@@ -7400,8 +7401,8 @@ function Wy(e, t, n) {
|
|
|
7400
7401
|
};
|
|
7401
7402
|
}
|
|
7402
7403
|
const ai = (e) => Math.round(e * 10) / 10;
|
|
7403
|
-
function
|
|
7404
|
-
const s = gs(e), o = _e(s, "margin"), r = Ki(s.maxWidth, e, "clientWidth") || zi, a = Ki(s.maxHeight, e, "clientHeight") || zi, l =
|
|
7404
|
+
function Vy(e, t, n, i) {
|
|
7405
|
+
const s = gs(e), o = _e(s, "margin"), r = Ki(s.maxWidth, e, "clientWidth") || zi, a = Ki(s.maxHeight, e, "clientHeight") || zi, l = Hy(e, t, n);
|
|
7405
7406
|
let { width: c, height: u } = l;
|
|
7406
7407
|
if (s.boxSizing === "content-box") {
|
|
7407
7408
|
const f = _e(s, "border", "width"), h = _e(s, "padding");
|
|
@@ -7418,7 +7419,7 @@ function _a(e, t, n) {
|
|
|
7418
7419
|
const r = e.canvas;
|
|
7419
7420
|
return r.style && (n || !r.style.height && !r.style.width) && (r.style.height = `${e.height}px`, r.style.width = `${e.width}px`), e.currentDevicePixelRatio !== i || r.height !== s || r.width !== o ? (e.currentDevicePixelRatio = i, r.height = s, r.width = o, e.ctx.setTransform(i, 0, 0, i, 0, 0), !0) : !1;
|
|
7420
7421
|
}
|
|
7421
|
-
const
|
|
7422
|
+
const Yy = (function() {
|
|
7422
7423
|
let e = !1;
|
|
7423
7424
|
try {
|
|
7424
7425
|
const t = {
|
|
@@ -7432,10 +7433,10 @@ const Vy = (function() {
|
|
|
7432
7433
|
return e;
|
|
7433
7434
|
})();
|
|
7434
7435
|
function Sa(e, t) {
|
|
7435
|
-
const n =
|
|
7436
|
+
const n = $y(e, t), i = n && n.match(/^(\d+)(\.\d+)?px$/);
|
|
7436
7437
|
return i ? +i[1] : void 0;
|
|
7437
7438
|
}
|
|
7438
|
-
const
|
|
7439
|
+
const Ky = function(e, t) {
|
|
7439
7440
|
return {
|
|
7440
7441
|
x(n) {
|
|
7441
7442
|
return e + e + t - n;
|
|
@@ -7453,7 +7454,7 @@ const Yy = function(e, t) {
|
|
|
7453
7454
|
return n - i;
|
|
7454
7455
|
}
|
|
7455
7456
|
};
|
|
7456
|
-
},
|
|
7457
|
+
}, Uy = function() {
|
|
7457
7458
|
return {
|
|
7458
7459
|
x(e) {
|
|
7459
7460
|
return e;
|
|
@@ -7472,7 +7473,7 @@ const Yy = function(e, t) {
|
|
|
7472
7473
|
};
|
|
7473
7474
|
};
|
|
7474
7475
|
function We(e, t, n) {
|
|
7475
|
-
return e ?
|
|
7476
|
+
return e ? Ky(t, n) : Uy();
|
|
7476
7477
|
}
|
|
7477
7478
|
function Ou(e, t) {
|
|
7478
7479
|
let n, i;
|
|
@@ -7487,7 +7488,7 @@ function Ru(e, t) {
|
|
|
7487
7488
|
function li(e, t, n) {
|
|
7488
7489
|
return e.options.clip ? e[n] : t[n];
|
|
7489
7490
|
}
|
|
7490
|
-
function
|
|
7491
|
+
function Xy(e, t) {
|
|
7491
7492
|
const { xScale: n, yScale: i } = e;
|
|
7492
7493
|
return n && i ? {
|
|
7493
7494
|
left: li(n, t, "left"),
|
|
@@ -7496,11 +7497,11 @@ function Uy(e, t) {
|
|
|
7496
7497
|
bottom: li(i, t, "bottom")
|
|
7497
7498
|
} : t;
|
|
7498
7499
|
}
|
|
7499
|
-
function
|
|
7500
|
+
function Gy(e, t) {
|
|
7500
7501
|
const n = t._clip;
|
|
7501
7502
|
if (n.disabled)
|
|
7502
7503
|
return !1;
|
|
7503
|
-
const i =
|
|
7504
|
+
const i = Xy(t, e.chartArea);
|
|
7504
7505
|
return {
|
|
7505
7506
|
left: n.left === !1 ? 0 : i.left - (n.left === !0 ? 0 : n.left),
|
|
7506
7507
|
right: n.right === !1 ? e.width : i.right + (n.right === !0 ? 0 : n.right),
|
|
@@ -7514,7 +7515,7 @@ function Xy(e, t) {
|
|
|
7514
7515
|
* (c) 2025 Chart.js Contributors
|
|
7515
7516
|
* Released under the MIT License
|
|
7516
7517
|
*/
|
|
7517
|
-
class
|
|
7518
|
+
class Jy {
|
|
7518
7519
|
constructor() {
|
|
7519
7520
|
this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
|
|
7520
7521
|
}
|
|
@@ -7590,8 +7591,8 @@ class Gy {
|
|
|
7590
7591
|
return this._charts.delete(t);
|
|
7591
7592
|
}
|
|
7592
7593
|
}
|
|
7593
|
-
var Kt = /* @__PURE__ */ new
|
|
7594
|
-
const Ca = "transparent",
|
|
7594
|
+
var Kt = /* @__PURE__ */ new Jy();
|
|
7595
|
+
const Ca = "transparent", qy = {
|
|
7595
7596
|
boolean(e, t, n) {
|
|
7596
7597
|
return n > 0.5 ? t : e;
|
|
7597
7598
|
},
|
|
@@ -7603,7 +7604,7 @@ const Ca = "transparent", Jy = {
|
|
|
7603
7604
|
return e + (t - e) * n;
|
|
7604
7605
|
}
|
|
7605
7606
|
};
|
|
7606
|
-
class
|
|
7607
|
+
class Zy {
|
|
7607
7608
|
constructor(t, n, i, s) {
|
|
7608
7609
|
const o = n[i];
|
|
7609
7610
|
s = J([
|
|
@@ -7617,7 +7618,7 @@ class qy {
|
|
|
7617
7618
|
o,
|
|
7618
7619
|
s
|
|
7619
7620
|
]);
|
|
7620
|
-
this._active = !0, this._fn = t.fn ||
|
|
7621
|
+
this._active = !0, this._fn = t.fn || qy[t.type || typeof r], this._easing = Cn[t.easing] || Cn.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = n, this._prop = i, this._from = r, this._to = s, this._promises = void 0;
|
|
7621
7622
|
}
|
|
7622
7623
|
active() {
|
|
7623
7624
|
return this._active;
|
|
@@ -7692,11 +7693,11 @@ class tr {
|
|
|
7692
7693
|
});
|
|
7693
7694
|
}
|
|
7694
7695
|
_animateOptions(t, n) {
|
|
7695
|
-
const i = n.options, s =
|
|
7696
|
+
const i = n.options, s = tx(t, i);
|
|
7696
7697
|
if (!s)
|
|
7697
7698
|
return [];
|
|
7698
7699
|
const o = this._createAnimations(s, i);
|
|
7699
|
-
return i.$shared &&
|
|
7700
|
+
return i.$shared && Qy(t.options.$animations, i).then(() => {
|
|
7700
7701
|
t.options = i;
|
|
7701
7702
|
}, () => {
|
|
7702
7703
|
}), o;
|
|
@@ -7725,7 +7726,7 @@ class tr {
|
|
|
7725
7726
|
t[c] = u;
|
|
7726
7727
|
continue;
|
|
7727
7728
|
}
|
|
7728
|
-
o[c] = d = new
|
|
7729
|
+
o[c] = d = new Zy(f, t, c, u), s.push(d);
|
|
7729
7730
|
}
|
|
7730
7731
|
return s;
|
|
7731
7732
|
}
|
|
@@ -7739,7 +7740,7 @@ class tr {
|
|
|
7739
7740
|
return Kt.add(this._chart, i), !0;
|
|
7740
7741
|
}
|
|
7741
7742
|
}
|
|
7742
|
-
function
|
|
7743
|
+
function Qy(e, t) {
|
|
7743
7744
|
const n = [], i = Object.keys(t);
|
|
7744
7745
|
for (let s = 0; s < i.length; s++) {
|
|
7745
7746
|
const o = e[i[s]];
|
|
@@ -7747,7 +7748,7 @@ function Zy(e, t) {
|
|
|
7747
7748
|
}
|
|
7748
7749
|
return Promise.all(n);
|
|
7749
7750
|
}
|
|
7750
|
-
function
|
|
7751
|
+
function tx(e, t) {
|
|
7751
7752
|
if (!t)
|
|
7752
7753
|
return;
|
|
7753
7754
|
let n = e.options;
|
|
@@ -7767,7 +7768,7 @@ function Ma(e, t) {
|
|
|
7767
7768
|
end: i ? s : o
|
|
7768
7769
|
};
|
|
7769
7770
|
}
|
|
7770
|
-
function
|
|
7771
|
+
function ex(e, t, n) {
|
|
7771
7772
|
if (n === !1)
|
|
7772
7773
|
return !1;
|
|
7773
7774
|
const i = Ma(e, n), s = Ma(t, n);
|
|
@@ -7778,7 +7779,7 @@ function tx(e, t, n) {
|
|
|
7778
7779
|
left: i.start
|
|
7779
7780
|
};
|
|
7780
7781
|
}
|
|
7781
|
-
function
|
|
7782
|
+
function nx(e) {
|
|
7782
7783
|
let t, n, i, s;
|
|
7783
7784
|
return B(e) ? (t = e.top, n = e.right, i = e.bottom, s = e.left) : t = n = i = s = e, {
|
|
7784
7785
|
top: t,
|
|
@@ -7811,7 +7812,7 @@ function ka(e, t, n, i = {}) {
|
|
|
7811
7812
|
}
|
|
7812
7813
|
return !u && !i.all ? 0 : t;
|
|
7813
7814
|
}
|
|
7814
|
-
function
|
|
7815
|
+
function ix(e, t) {
|
|
7815
7816
|
const { iScale: n, vScale: i } = t, s = n.axis === "x" ? "x" : "y", o = i.axis === "x" ? "x" : "y", r = Object.keys(e), a = new Array(r.length);
|
|
7816
7817
|
let l, c, u;
|
|
7817
7818
|
for (l = 0, c = r.length; l < c; ++l)
|
|
@@ -7825,17 +7826,17 @@ function Ws(e, t) {
|
|
|
7825
7826
|
const n = e && e.options.stacked;
|
|
7826
7827
|
return n || n === void 0 && t.stack !== void 0;
|
|
7827
7828
|
}
|
|
7828
|
-
function
|
|
7829
|
+
function sx(e, t, n) {
|
|
7829
7830
|
return `${e.id}.${t.id}.${n.stack || n.type}`;
|
|
7830
7831
|
}
|
|
7831
|
-
function
|
|
7832
|
+
function ox(e) {
|
|
7832
7833
|
const { min: t, max: n, minDefined: i, maxDefined: s } = e.getUserBounds();
|
|
7833
7834
|
return {
|
|
7834
7835
|
min: i ? t : Number.NEGATIVE_INFINITY,
|
|
7835
7836
|
max: s ? n : Number.POSITIVE_INFINITY
|
|
7836
7837
|
};
|
|
7837
7838
|
}
|
|
7838
|
-
function
|
|
7839
|
+
function rx(e, t, n) {
|
|
7839
7840
|
const i = e[t] || (e[t] = {});
|
|
7840
7841
|
return i[n] || (i[n] = {});
|
|
7841
7842
|
}
|
|
@@ -7848,11 +7849,11 @@ function Pa(e, t, n, i) {
|
|
|
7848
7849
|
return null;
|
|
7849
7850
|
}
|
|
7850
7851
|
function Oa(e, t) {
|
|
7851
|
-
const { chart: n, _cachedMeta: i } = e, s = n._stacks || (n._stacks = {}), { iScale: o, vScale: r, index: a } = i, l = o.axis, c = r.axis, u =
|
|
7852
|
+
const { chart: n, _cachedMeta: i } = e, s = n._stacks || (n._stacks = {}), { iScale: o, vScale: r, index: a } = i, l = o.axis, c = r.axis, u = sx(o, r, i), d = t.length;
|
|
7852
7853
|
let f;
|
|
7853
7854
|
for (let h = 0; h < d; ++h) {
|
|
7854
7855
|
const p = t[h], { [l]: g, [c]: m } = p, b = p._stacks || (p._stacks = {});
|
|
7855
|
-
f = b[c] =
|
|
7856
|
+
f = b[c] = rx(s, u, g), f[a] = m, f._top = Pa(f, r, !0, i.type), f._bottom = Pa(f, r, !1, i.type);
|
|
7856
7857
|
const x = f._visualValues || (f._visualValues = {});
|
|
7857
7858
|
x[a] = m;
|
|
7858
7859
|
}
|
|
@@ -7861,7 +7862,7 @@ function Hs(e, t) {
|
|
|
7861
7862
|
const n = e.scales;
|
|
7862
7863
|
return Object.keys(n).filter((i) => n[i].axis === t).shift();
|
|
7863
7864
|
}
|
|
7864
|
-
function
|
|
7865
|
+
function ax(e, t) {
|
|
7865
7866
|
return qe(e, {
|
|
7866
7867
|
active: !1,
|
|
7867
7868
|
dataset: void 0,
|
|
@@ -7871,7 +7872,7 @@ function rx(e, t) {
|
|
|
7871
7872
|
type: "dataset"
|
|
7872
7873
|
});
|
|
7873
7874
|
}
|
|
7874
|
-
function
|
|
7875
|
+
function lx(e, t, n) {
|
|
7875
7876
|
return qe(e, {
|
|
7876
7877
|
active: !1,
|
|
7877
7878
|
dataIndex: t,
|
|
@@ -7895,7 +7896,7 @@ function cn(e, t) {
|
|
|
7895
7896
|
}
|
|
7896
7897
|
}
|
|
7897
7898
|
}
|
|
7898
|
-
const Vs = (e) => e === "reset" || e === "none", Ra = (e, t) => t ? e : Object.assign({}, e),
|
|
7899
|
+
const Vs = (e) => e === "reset" || e === "none", Ra = (e, t) => t ? e : Object.assign({}, e), cx = (e, t, n) => e && !t.hidden && t._stacked && {
|
|
7899
7900
|
keys: Au(n, !0),
|
|
7900
7901
|
values: null
|
|
7901
7902
|
};
|
|
@@ -7938,14 +7939,14 @@ class kn {
|
|
|
7938
7939
|
const t = this.getDataset(), n = t.data || (t.data = []), i = this._data;
|
|
7939
7940
|
if (B(n)) {
|
|
7940
7941
|
const s = this._cachedMeta;
|
|
7941
|
-
this._data =
|
|
7942
|
+
this._data = ix(n, s);
|
|
7942
7943
|
} else if (i !== n) {
|
|
7943
7944
|
if (i) {
|
|
7944
7945
|
ha(i, this);
|
|
7945
7946
|
const s = this._cachedMeta;
|
|
7946
7947
|
cn(s), s._parsed = [];
|
|
7947
7948
|
}
|
|
7948
|
-
n && Object.isExtensible(n) &&
|
|
7949
|
+
n && Object.isExtensible(n) && ay(n, this), this._syncList = [], this._data = n;
|
|
7949
7950
|
}
|
|
7950
7951
|
}
|
|
7951
7952
|
addElements() {
|
|
@@ -8029,10 +8030,10 @@ class kn {
|
|
|
8029
8030
|
s && a && (s.values = a, r = ka(s, o, this._cachedMeta.index)), t.min = Math.min(t.min, r), t.max = Math.max(t.max, r);
|
|
8030
8031
|
}
|
|
8031
8032
|
getMinMax(t, n) {
|
|
8032
|
-
const i = this._cachedMeta, s = i._parsed, o = i._sorted && t === i.iScale, r = s.length, a = this._getOtherScale(t), l =
|
|
8033
|
+
const i = this._cachedMeta, s = i._parsed, o = i._sorted && t === i.iScale, r = s.length, a = this._getOtherScale(t), l = cx(n, i, this.chart), c = {
|
|
8033
8034
|
min: Number.POSITIVE_INFINITY,
|
|
8034
8035
|
max: Number.NEGATIVE_INFINITY
|
|
8035
|
-
}, { min: u, max: d } =
|
|
8036
|
+
}, { min: u, max: d } = ox(a);
|
|
8036
8037
|
let f, h;
|
|
8037
8038
|
function p() {
|
|
8038
8039
|
h = s[f];
|
|
@@ -8069,7 +8070,7 @@ class kn {
|
|
|
8069
8070
|
}
|
|
8070
8071
|
_update(t) {
|
|
8071
8072
|
const n = this._cachedMeta;
|
|
8072
|
-
this.update(t || "default"), n._clip =
|
|
8073
|
+
this.update(t || "default"), n._clip = nx(W(this.options.clip, ex(n.xScale, n.yScale, this.getMaxOverflow())));
|
|
8073
8074
|
}
|
|
8074
8075
|
update(t) {
|
|
8075
8076
|
}
|
|
@@ -8092,9 +8093,9 @@ class kn {
|
|
|
8092
8093
|
let o;
|
|
8093
8094
|
if (t >= 0 && t < this._cachedMeta.data.length) {
|
|
8094
8095
|
const r = this._cachedMeta.data[t];
|
|
8095
|
-
o = r.$context || (r.$context =
|
|
8096
|
+
o = r.$context || (r.$context = lx(this.getContext(), t, r)), o.parsed = this.getParsed(t), o.raw = s.data[t], o.index = o.dataIndex = t;
|
|
8096
8097
|
} else
|
|
8097
|
-
o = this.$context || (this.$context =
|
|
8098
|
+
o = this.$context || (this.$context = ax(this.chart.getContext(), this.index)), o.dataset = s, o.index = o.datasetIndex = this.index;
|
|
8098
8099
|
return o.active = !!n, o.mode = i, o;
|
|
8099
8100
|
}
|
|
8100
8101
|
resolveDatasetElementOptions(t) {
|
|
@@ -8256,7 +8257,7 @@ class kn {
|
|
|
8256
8257
|
}
|
|
8257
8258
|
}
|
|
8258
8259
|
j(kn, "defaults", {}), j(kn, "datasetElementType", null), j(kn, "dataElementType", null);
|
|
8259
|
-
function
|
|
8260
|
+
function ux(e, t, n) {
|
|
8260
8261
|
let i = 1, s = 1, o = 0, r = 0;
|
|
8261
8262
|
if (t < tt) {
|
|
8262
8263
|
const a = e, l = a + t, c = Math.cos(a), u = Math.sin(a), d = Math.cos(l), f = Math.sin(l), h = (v, w, _) => Vi(v, a, l, !0) ? 1 : Math.max(w, w * n, _, _ * n), p = (v, w, _) => Vi(v, a, l, !0) ? -1 : Math.min(w, w * n, _, _ * n), g = h(0, c, d), m = h(Z, u, f), b = p(z, c, d), x = p(z + Z, u, f);
|
|
@@ -8309,7 +8310,7 @@ class $e extends kn {
|
|
|
8309
8310
|
};
|
|
8310
8311
|
}
|
|
8311
8312
|
update(t) {
|
|
8312
|
-
const n = this.chart, { chartArea: i } = n, s = this._cachedMeta, o = s.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - r) / 2, 0), l = Math.min(
|
|
8313
|
+
const n = this.chart, { chartArea: i } = n, s = this._cachedMeta, o = s.data, r = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, a = Math.max((Math.min(i.width, i.height) - r) / 2, 0), l = Math.min(Jb(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: p, offsetY: g } = ux(d, u, l), m = (i.width - r) / f, b = (i.height - r) / h, x = Math.max(Math.min(m, b) / 2, 0), v = gu(this.options.radius, x), w = Math.max(v * l, 0), _ = (v - w) / this._getVisibleDatasetWeightTotal();
|
|
8313
8314
|
this.offsetX = p * v, this.offsetY = g * v, s.total = this.calculateTotal(), this.outerRadius = v - _ * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - _ * c, 0), this.updateElements(o, 0, o.length, t);
|
|
8314
8315
|
}
|
|
8315
8316
|
_circumference(t, n) {
|
|
@@ -8348,7 +8349,7 @@ class $e extends kn {
|
|
|
8348
8349
|
return n > 0 && !isNaN(t) ? tt * (Math.abs(t) / n) : 0;
|
|
8349
8350
|
}
|
|
8350
8351
|
getLabelAndValue(t) {
|
|
8351
|
-
const n = this._cachedMeta, i = this.chart, s = i.data.labels || [], o =
|
|
8352
|
+
const n = this._cachedMeta, i = this.chart, s = i.data.labels || [], o = my(n._parsed[t], i.options.locale);
|
|
8352
8353
|
return {
|
|
8353
8354
|
label: s[t] || "",
|
|
8354
8355
|
value: o
|
|
@@ -8511,13 +8512,13 @@ class er {
|
|
|
8511
8512
|
return ge();
|
|
8512
8513
|
}
|
|
8513
8514
|
}
|
|
8514
|
-
var
|
|
8515
|
+
var dx = {
|
|
8515
8516
|
_date: er
|
|
8516
8517
|
};
|
|
8517
|
-
function
|
|
8518
|
+
function fx(e, t, n, i) {
|
|
8518
8519
|
const { controller: s, data: o, _sorted: r } = e, a = s._cachedMeta.iScale, l = e.dataset && e.dataset.options ? e.dataset.options.spanGaps : null;
|
|
8519
8520
|
if (a && t === a.axis && t !== "r" && r && o.length) {
|
|
8520
|
-
const c = a._reversePixels ?
|
|
8521
|
+
const c = a._reversePixels ? oy : uo;
|
|
8521
8522
|
if (i) {
|
|
8522
8523
|
if (s._sharedOptions) {
|
|
8523
8524
|
const u = o[0], d = typeof u.getRange == "function" && u.getRange(t);
|
|
@@ -8548,14 +8549,14 @@ function dx(e, t, n, i) {
|
|
|
8548
8549
|
function ps(e, t, n, i, s) {
|
|
8549
8550
|
const o = e.getSortedVisibleDatasetMetas(), r = n[t];
|
|
8550
8551
|
for (let a = 0, l = o.length; a < l; ++a) {
|
|
8551
|
-
const { index: c, data: u } = o[a], { lo: d, hi: f } =
|
|
8552
|
+
const { index: c, data: u } = o[a], { lo: d, hi: f } = fx(o[a], t, r, s);
|
|
8552
8553
|
for (let h = d; h <= f; ++h) {
|
|
8553
8554
|
const p = u[h];
|
|
8554
8555
|
p.skip || i(p, c, h);
|
|
8555
8556
|
}
|
|
8556
8557
|
}
|
|
8557
8558
|
}
|
|
8558
|
-
function
|
|
8559
|
+
function hx(e) {
|
|
8559
8560
|
const t = e.indexOf("x") !== -1, n = e.indexOf("y") !== -1;
|
|
8560
8561
|
return function(i, s) {
|
|
8561
8562
|
const o = t ? Math.abs(i.x - s.x) : 0, r = n ? Math.abs(i.y - s.y) : 0;
|
|
@@ -8572,7 +8573,7 @@ function Ys(e, t, n, i, s) {
|
|
|
8572
8573
|
});
|
|
8573
8574
|
}, !0), o;
|
|
8574
8575
|
}
|
|
8575
|
-
function
|
|
8576
|
+
function gx(e, t, n, i) {
|
|
8576
8577
|
let s = [];
|
|
8577
8578
|
function o(r, a, l) {
|
|
8578
8579
|
const { startAngle: c, endAngle: u } = r.getProps([
|
|
@@ -8590,9 +8591,9 @@ function hx(e, t, n, i) {
|
|
|
8590
8591
|
}
|
|
8591
8592
|
return ps(e, n, t, o), s;
|
|
8592
8593
|
}
|
|
8593
|
-
function
|
|
8594
|
+
function px(e, t, n, i, s, o) {
|
|
8594
8595
|
let r = [];
|
|
8595
|
-
const a =
|
|
8596
|
+
const a = hx(n);
|
|
8596
8597
|
let l = Number.POSITIVE_INFINITY;
|
|
8597
8598
|
function c(u, d, f) {
|
|
8598
8599
|
const h = u.inRange(t.x, t.y, s);
|
|
@@ -8617,7 +8618,7 @@ function gx(e, t, n, i, s, o) {
|
|
|
8617
8618
|
return ps(e, n, t, c), r;
|
|
8618
8619
|
}
|
|
8619
8620
|
function Ks(e, t, n, i, s, o) {
|
|
8620
|
-
return !o && !e.isPointInArea(t) ? [] : n === "r" && !i ?
|
|
8621
|
+
return !o && !e.isPointInArea(t) ? [] : n === "r" && !i ? gx(e, t, n, s) : px(e, t, n, i, s, o);
|
|
8621
8622
|
}
|
|
8622
8623
|
function Aa(e, t, n, i, s) {
|
|
8623
8624
|
const o = [], r = n === "x" ? "inXRange" : "inYRange";
|
|
@@ -8630,7 +8631,7 @@ function Aa(e, t, n, i, s) {
|
|
|
8630
8631
|
}), a = a || l.inRange(t.x, t.y, s));
|
|
8631
8632
|
}), i && !a ? [] : o;
|
|
8632
8633
|
}
|
|
8633
|
-
var
|
|
8634
|
+
var mx = {
|
|
8634
8635
|
modes: {
|
|
8635
8636
|
index(e, t, n, i) {
|
|
8636
8637
|
const s = me(t, e), o = n.axis || "x", r = n.includeInvisible || !1, a = n.intersect ? Ys(e, s, o, i, r) : Ks(e, s, o, !1, i, r), l = [];
|
|
@@ -8694,7 +8695,7 @@ function dn(e, t) {
|
|
|
8694
8695
|
return s.weight === o.weight ? s.index - o.index : s.weight - o.weight;
|
|
8695
8696
|
});
|
|
8696
8697
|
}
|
|
8697
|
-
function
|
|
8698
|
+
function bx(e) {
|
|
8698
8699
|
const t = [];
|
|
8699
8700
|
let n, i, s, o, r, a;
|
|
8700
8701
|
for (n = 0, i = (e || []).length; n < i; ++n)
|
|
@@ -8709,7 +8710,7 @@ function mx(e) {
|
|
|
8709
8710
|
});
|
|
8710
8711
|
return t;
|
|
8711
8712
|
}
|
|
8712
|
-
function
|
|
8713
|
+
function yx(e) {
|
|
8713
8714
|
const t = {};
|
|
8714
8715
|
for (const n of e) {
|
|
8715
8716
|
const { stack: i, pos: s, stackWeight: o } = n;
|
|
@@ -8725,8 +8726,8 @@ function bx(e) {
|
|
|
8725
8726
|
}
|
|
8726
8727
|
return t;
|
|
8727
8728
|
}
|
|
8728
|
-
function
|
|
8729
|
-
const n =
|
|
8729
|
+
function xx(e, t) {
|
|
8730
|
+
const n = yx(e), { vBoxMaxWidth: i, hBoxMaxHeight: s } = t;
|
|
8730
8731
|
let o, r, a;
|
|
8731
8732
|
for (o = 0, r = e.length; o < r; ++o) {
|
|
8732
8733
|
a = e[o];
|
|
@@ -8735,8 +8736,8 @@ function yx(e, t) {
|
|
|
8735
8736
|
}
|
|
8736
8737
|
return n;
|
|
8737
8738
|
}
|
|
8738
|
-
function
|
|
8739
|
-
const t =
|
|
8739
|
+
function vx(e) {
|
|
8740
|
+
const t = bx(e), n = dn(t.filter((c) => c.box.fullSize), !0), i = dn(un(t, "left"), !0), s = dn(un(t, "right")), o = dn(un(t, "top"), !0), r = dn(un(t, "bottom")), a = Ea(t, "x"), l = Ea(t, "y");
|
|
8740
8741
|
return {
|
|
8741
8742
|
fullSize: n,
|
|
8742
8743
|
leftAndTop: i.concat(o),
|
|
@@ -8752,7 +8753,7 @@ function Da(e, t, n, i) {
|
|
|
8752
8753
|
function Du(e, t) {
|
|
8753
8754
|
e.top = Math.max(e.top, t.top), e.left = Math.max(e.left, t.left), e.bottom = Math.max(e.bottom, t.bottom), e.right = Math.max(e.right, t.right);
|
|
8754
8755
|
}
|
|
8755
|
-
function
|
|
8756
|
+
function wx(e, t, n, i) {
|
|
8756
8757
|
const { pos: s, box: o } = n, r = e.maxPadding;
|
|
8757
8758
|
if (!B(s)) {
|
|
8758
8759
|
n.size && (e[s] -= n.size);
|
|
@@ -8772,7 +8773,7 @@ function vx(e, t, n, i) {
|
|
|
8772
8773
|
other: c
|
|
8773
8774
|
};
|
|
8774
8775
|
}
|
|
8775
|
-
function
|
|
8776
|
+
function _x(e) {
|
|
8776
8777
|
const t = e.maxPadding;
|
|
8777
8778
|
function n(i) {
|
|
8778
8779
|
const s = Math.max(t[i] - e[i], 0);
|
|
@@ -8780,7 +8781,7 @@ function wx(e) {
|
|
|
8780
8781
|
}
|
|
8781
8782
|
e.y += n("top"), e.x += n("left"), n("right"), n("bottom");
|
|
8782
8783
|
}
|
|
8783
|
-
function
|
|
8784
|
+
function Sx(e, t) {
|
|
8784
8785
|
const n = t.maxPadding;
|
|
8785
8786
|
function i(s) {
|
|
8786
8787
|
const o = {
|
|
@@ -8805,8 +8806,8 @@ function xn(e, t, n, i) {
|
|
|
8805
8806
|
const s = [];
|
|
8806
8807
|
let o, r, a, l, c, u;
|
|
8807
8808
|
for (o = 0, r = e.length, c = 0; o < r; ++o) {
|
|
8808
|
-
a = e[o], l = a.box, l.update(a.width || t.w, a.height || t.h,
|
|
8809
|
-
const { same: d, other: f } =
|
|
8809
|
+
a = e[o], l = a.box, l.update(a.width || t.w, a.height || t.h, Sx(a.horizontal, t));
|
|
8810
|
+
const { same: d, other: f } = wx(t, n, a, i);
|
|
8810
8811
|
c |= d && s.length, u = u || f, l.fullSize || s.push(a);
|
|
8811
8812
|
}
|
|
8812
8813
|
return c && xn(s, t, n, i) || u;
|
|
@@ -8855,7 +8856,7 @@ var se = {
|
|
|
8855
8856
|
update(e, t, n, i) {
|
|
8856
8857
|
if (!e)
|
|
8857
8858
|
return;
|
|
8858
|
-
const s = lt(e.options.layout.padding), o = Math.max(t - s.width, 0), r = Math.max(n - s.height, 0), a =
|
|
8859
|
+
const s = lt(e.options.layout.padding), o = Math.max(t - s.width, 0), r = Math.max(n - s.height, 0), a = vx(e.boxes), l = a.vertical, c = a.horizontal;
|
|
8859
8860
|
U(e.boxes, (g) => {
|
|
8860
8861
|
typeof g.beforeLayout == "function" && g.beforeLayout();
|
|
8861
8862
|
});
|
|
@@ -8875,8 +8876,8 @@ var se = {
|
|
|
8875
8876
|
h: r,
|
|
8876
8877
|
x: s.left,
|
|
8877
8878
|
y: s.top
|
|
8878
|
-
}, s), p =
|
|
8879
|
-
xn(a.fullSize, h, d, p), xn(l, h, d, p), xn(c, h, d, p) && xn(l, h, d, p),
|
|
8879
|
+
}, s), p = xx(l.concat(c), d);
|
|
8880
|
+
xn(a.fullSize, h, d, p), xn(l, h, d, p), xn(c, h, d, p) && xn(l, h, d, p), _x(h), Ta(a.leftAndTop, h, d, p), h.x += h.w, h.y += h.h, Ta(a.rightAndBottom, h, d, p), e.chartArea = {
|
|
8880
8881
|
left: h.left,
|
|
8881
8882
|
top: h.top,
|
|
8882
8883
|
right: h.left + h.w,
|
|
@@ -8919,7 +8920,7 @@ class Tu {
|
|
|
8919
8920
|
updateConfig(t) {
|
|
8920
8921
|
}
|
|
8921
8922
|
}
|
|
8922
|
-
class
|
|
8923
|
+
class Cx extends Tu {
|
|
8923
8924
|
acquireContext(t) {
|
|
8924
8925
|
return t && t.getContext && t.getContext("2d") || null;
|
|
8925
8926
|
}
|
|
@@ -8927,7 +8928,7 @@ class Sx extends Tu {
|
|
|
8927
8928
|
t.options.animation = !1;
|
|
8928
8929
|
}
|
|
8929
8930
|
}
|
|
8930
|
-
const Si = "$chartjs",
|
|
8931
|
+
const Si = "$chartjs", Mx = {
|
|
8931
8932
|
touchstart: "mousedown",
|
|
8932
8933
|
touchmove: "mousemove",
|
|
8933
8934
|
touchend: "mouseup",
|
|
@@ -8938,7 +8939,7 @@ const Si = "$chartjs", Cx = {
|
|
|
8938
8939
|
pointerleave: "mouseout",
|
|
8939
8940
|
pointerout: "mouseout"
|
|
8940
8941
|
}, La = (e) => e === null || e === "";
|
|
8941
|
-
function
|
|
8942
|
+
function kx(e, t) {
|
|
8942
8943
|
const n = e.style, i = e.getAttribute("height"), s = e.getAttribute("width");
|
|
8943
8944
|
if (e[Si] = {
|
|
8944
8945
|
initial: {
|
|
@@ -8963,17 +8964,17 @@ function Mx(e, t) {
|
|
|
8963
8964
|
}
|
|
8964
8965
|
return e;
|
|
8965
8966
|
}
|
|
8966
|
-
const Lu =
|
|
8967
|
+
const Lu = Yy ? {
|
|
8967
8968
|
passive: !0
|
|
8968
8969
|
} : !1;
|
|
8969
|
-
function
|
|
8970
|
+
function Px(e, t, n) {
|
|
8970
8971
|
e && e.addEventListener(t, n, Lu);
|
|
8971
8972
|
}
|
|
8972
|
-
function
|
|
8973
|
+
function Ox(e, t, n) {
|
|
8973
8974
|
e && e.canvas && e.canvas.removeEventListener(t, n, Lu);
|
|
8974
8975
|
}
|
|
8975
|
-
function
|
|
8976
|
-
const n =
|
|
8976
|
+
function Rx(e, t) {
|
|
8977
|
+
const n = Mx[e.type] || e.type, { x: i, y: s } = me(e, t);
|
|
8977
8978
|
return {
|
|
8978
8979
|
type: n,
|
|
8979
8980
|
chart: t,
|
|
@@ -8987,7 +8988,7 @@ function Ui(e, t) {
|
|
|
8987
8988
|
if (n === t || n.contains(t))
|
|
8988
8989
|
return !0;
|
|
8989
8990
|
}
|
|
8990
|
-
function
|
|
8991
|
+
function Ax(e, t, n) {
|
|
8991
8992
|
const i = e.canvas, s = new MutationObserver((o) => {
|
|
8992
8993
|
let r = !1;
|
|
8993
8994
|
for (const a of o)
|
|
@@ -8999,7 +9000,7 @@ function Rx(e, t, n) {
|
|
|
8999
9000
|
subtree: !0
|
|
9000
9001
|
}), s;
|
|
9001
9002
|
}
|
|
9002
|
-
function
|
|
9003
|
+
function Ex(e, t, n) {
|
|
9003
9004
|
const i = e.canvas, s = new MutationObserver((o) => {
|
|
9004
9005
|
let r = !1;
|
|
9005
9006
|
for (const a of o)
|
|
@@ -9019,13 +9020,13 @@ function Iu() {
|
|
|
9019
9020
|
n.currentDevicePixelRatio !== e && t();
|
|
9020
9021
|
}));
|
|
9021
9022
|
}
|
|
9022
|
-
function
|
|
9023
|
+
function Dx(e, t) {
|
|
9023
9024
|
jn.size || window.addEventListener("resize", Iu), jn.set(e, t);
|
|
9024
9025
|
}
|
|
9025
|
-
function
|
|
9026
|
+
function Tx(e) {
|
|
9026
9027
|
jn.delete(e), jn.size || window.removeEventListener("resize", Iu);
|
|
9027
9028
|
}
|
|
9028
|
-
function
|
|
9029
|
+
function Lx(e, t, n) {
|
|
9029
9030
|
const i = e.canvas, s = i && Qo(i);
|
|
9030
9031
|
if (!s)
|
|
9031
9032
|
return;
|
|
@@ -9036,21 +9037,21 @@ function Tx(e, t, n) {
|
|
|
9036
9037
|
const l = a[0], c = l.contentRect.width, u = l.contentRect.height;
|
|
9037
9038
|
c === 0 && u === 0 || o(c, u);
|
|
9038
9039
|
});
|
|
9039
|
-
return r.observe(s),
|
|
9040
|
+
return r.observe(s), Dx(e, o), r;
|
|
9040
9041
|
}
|
|
9041
9042
|
function Us(e, t, n) {
|
|
9042
|
-
n && n.disconnect(), t === "resize" &&
|
|
9043
|
+
n && n.disconnect(), t === "resize" && Tx(e);
|
|
9043
9044
|
}
|
|
9044
|
-
function
|
|
9045
|
+
function Ix(e, t, n) {
|
|
9045
9046
|
const i = e.canvas, s = xu((o) => {
|
|
9046
|
-
e.ctx !== null && n(
|
|
9047
|
+
e.ctx !== null && n(Rx(o, e));
|
|
9047
9048
|
}, e);
|
|
9048
|
-
return
|
|
9049
|
+
return Px(i, t, s), s;
|
|
9049
9050
|
}
|
|
9050
|
-
class
|
|
9051
|
+
class Nx extends Tu {
|
|
9051
9052
|
acquireContext(t, n) {
|
|
9052
9053
|
const i = t && t.getContext && t.getContext("2d");
|
|
9053
|
-
return i && i.canvas === t ? (
|
|
9054
|
+
return i && i.canvas === t ? (kx(t, n), i) : null;
|
|
9054
9055
|
}
|
|
9055
9056
|
releaseContext(t) {
|
|
9056
9057
|
const n = t.canvas;
|
|
@@ -9072,10 +9073,10 @@ class Ix extends Tu {
|
|
|
9072
9073
|
addEventListener(t, n, i) {
|
|
9073
9074
|
this.removeEventListener(t, n);
|
|
9074
9075
|
const s = t.$proxies || (t.$proxies = {}), r = {
|
|
9075
|
-
attach:
|
|
9076
|
-
detach:
|
|
9077
|
-
resize:
|
|
9078
|
-
}[n] ||
|
|
9076
|
+
attach: Ax,
|
|
9077
|
+
detach: Ex,
|
|
9078
|
+
resize: Lx
|
|
9079
|
+
}[n] || Ix;
|
|
9079
9080
|
s[n] = r(t, n, i);
|
|
9080
9081
|
}
|
|
9081
9082
|
removeEventListener(t, n) {
|
|
@@ -9086,21 +9087,21 @@ class Ix extends Tu {
|
|
|
9086
9087
|
attach: Us,
|
|
9087
9088
|
detach: Us,
|
|
9088
9089
|
resize: Us
|
|
9089
|
-
}[n] ||
|
|
9090
|
+
}[n] || Ox)(t, n, s), i[n] = void 0;
|
|
9090
9091
|
}
|
|
9091
9092
|
getDevicePixelRatio() {
|
|
9092
9093
|
return window.devicePixelRatio;
|
|
9093
9094
|
}
|
|
9094
9095
|
getMaximumSize(t, n, i, s) {
|
|
9095
|
-
return
|
|
9096
|
+
return Vy(t, n, i, s);
|
|
9096
9097
|
}
|
|
9097
9098
|
isAttached(t) {
|
|
9098
9099
|
const n = t && Qo(t);
|
|
9099
9100
|
return !!(n && n.isConnected);
|
|
9100
9101
|
}
|
|
9101
9102
|
}
|
|
9102
|
-
function
|
|
9103
|
-
return !Zo() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ?
|
|
9103
|
+
function Fx(e) {
|
|
9104
|
+
return !Zo() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ? Cx : Nx;
|
|
9104
9105
|
}
|
|
9105
9106
|
var xi;
|
|
9106
9107
|
let bt = (xi = class {
|
|
@@ -9134,11 +9135,11 @@ let bt = (xi = class {
|
|
|
9134
9135
|
}), s;
|
|
9135
9136
|
}
|
|
9136
9137
|
}, j(xi, "defaults", {}), j(xi, "defaultRoutes"), xi);
|
|
9137
|
-
function
|
|
9138
|
-
const n = e.options.ticks, i =
|
|
9138
|
+
function jx(e, t) {
|
|
9139
|
+
const n = e.options.ticks, i = $x(e), s = Math.min(n.maxTicksLimit || i, i), o = n.major.enabled ? zx(t) : [], r = o.length, a = o[0], l = o[r - 1], c = [];
|
|
9139
9140
|
if (r > s)
|
|
9140
|
-
return
|
|
9141
|
-
const u =
|
|
9141
|
+
return Wx(t, c, o, r / s), c;
|
|
9142
|
+
const u = Bx(o, t, s);
|
|
9142
9143
|
if (r > 0) {
|
|
9143
9144
|
let d, f;
|
|
9144
9145
|
const h = r > 1 ? Math.round((l - a) / (r - 1)) : null;
|
|
@@ -9148,15 +9149,15 @@ function Fx(e, t) {
|
|
|
9148
9149
|
}
|
|
9149
9150
|
return ui(t, c, u), c;
|
|
9150
9151
|
}
|
|
9151
|
-
function
|
|
9152
|
+
function $x(e) {
|
|
9152
9153
|
const t = e.options.offset, n = e._tickSize(), i = e._length / n + (t ? 0 : 1), s = e._maxLength / n;
|
|
9153
9154
|
return Math.floor(Math.min(i, s));
|
|
9154
9155
|
}
|
|
9155
|
-
function
|
|
9156
|
-
const i =
|
|
9156
|
+
function Bx(e, t, n) {
|
|
9157
|
+
const i = Hx(e), s = t.length / n;
|
|
9157
9158
|
if (!i)
|
|
9158
9159
|
return Math.max(s, 1);
|
|
9159
|
-
const o =
|
|
9160
|
+
const o = ny(i);
|
|
9160
9161
|
for (let r = 0, a = o.length - 1; r < a; r++) {
|
|
9161
9162
|
const l = o[r];
|
|
9162
9163
|
if (l > s)
|
|
@@ -9164,14 +9165,14 @@ function $x(e, t, n) {
|
|
|
9164
9165
|
}
|
|
9165
9166
|
return Math.max(s, 1);
|
|
9166
9167
|
}
|
|
9167
|
-
function
|
|
9168
|
+
function zx(e) {
|
|
9168
9169
|
const t = [];
|
|
9169
9170
|
let n, i;
|
|
9170
9171
|
for (n = 0, i = e.length; n < i; n++)
|
|
9171
9172
|
e[n].major && t.push(n);
|
|
9172
9173
|
return t;
|
|
9173
9174
|
}
|
|
9174
|
-
function
|
|
9175
|
+
function Wx(e, t, n, i) {
|
|
9175
9176
|
let s = 0, o = n[0], r;
|
|
9176
9177
|
for (i = Math.ceil(i), r = 0; r < e.length; r++)
|
|
9177
9178
|
r === o && (t.push(e[r]), s++, o = n[s * i]);
|
|
@@ -9184,7 +9185,7 @@ function ui(e, t, n, i, s) {
|
|
|
9184
9185
|
for (c = Math.max(o, 0); c < r; c++)
|
|
9185
9186
|
c === u && (t.push(e[c]), a++, u = Math.round(o + a * n));
|
|
9186
9187
|
}
|
|
9187
|
-
function
|
|
9188
|
+
function Hx(e) {
|
|
9188
9189
|
const t = e.length;
|
|
9189
9190
|
let n, i;
|
|
9190
9191
|
if (t < 2)
|
|
@@ -9194,7 +9195,7 @@ function Wx(e) {
|
|
|
9194
9195
|
return !1;
|
|
9195
9196
|
return i;
|
|
9196
9197
|
}
|
|
9197
|
-
const
|
|
9198
|
+
const Vx = (e) => e === "left" ? "right" : e === "right" ? "left" : e, Na = (e, t, n) => t === "top" || t === "left" ? e[t] + n : e[t] - n, Fa = (e, t) => Math.min(t || e, e);
|
|
9198
9199
|
function ja(e, t) {
|
|
9199
9200
|
const n = [], i = e.length / t, s = e.length;
|
|
9200
9201
|
let o = 0;
|
|
@@ -9202,13 +9203,13 @@ function ja(e, t) {
|
|
|
9202
9203
|
n.push(e[Math.floor(o)]);
|
|
9203
9204
|
return n;
|
|
9204
9205
|
}
|
|
9205
|
-
function
|
|
9206
|
+
function Yx(e, t, n) {
|
|
9206
9207
|
const i = e.ticks.length, s = Math.min(t, i - 1), o = e._startPixel, r = e._endPixel, a = 1e-6;
|
|
9207
9208
|
let l = e.getPixelForTick(s), c;
|
|
9208
9209
|
if (!(n && (i === 1 ? c = Math.max(l - o, r - l) : t === 0 ? c = (e.getPixelForTick(1) - l) / 2 : c = (l - e.getPixelForTick(s - 1)) / 2, l += s < t ? c : -c, l < o - a || l > r + a)))
|
|
9209
9210
|
return l;
|
|
9210
9211
|
}
|
|
9211
|
-
function
|
|
9212
|
+
function Kx(e, t) {
|
|
9212
9213
|
U(e, (n) => {
|
|
9213
9214
|
const i = n.gc, s = i.length / 2;
|
|
9214
9215
|
let o;
|
|
@@ -9228,24 +9229,24 @@ function $a(e, t) {
|
|
|
9228
9229
|
const n = st(e.font, t), i = lt(e.padding);
|
|
9229
9230
|
return (q(e.text) ? e.text.length : 1) * n.lineHeight + i.height;
|
|
9230
9231
|
}
|
|
9231
|
-
function
|
|
9232
|
+
function Ux(e, t) {
|
|
9232
9233
|
return qe(e, {
|
|
9233
9234
|
scale: t,
|
|
9234
9235
|
type: "scale"
|
|
9235
9236
|
});
|
|
9236
9237
|
}
|
|
9237
|
-
function
|
|
9238
|
+
function Xx(e, t, n) {
|
|
9238
9239
|
return qe(e, {
|
|
9239
9240
|
tick: n,
|
|
9240
9241
|
index: t,
|
|
9241
9242
|
type: "tick"
|
|
9242
9243
|
});
|
|
9243
9244
|
}
|
|
9244
|
-
function
|
|
9245
|
+
function Gx(e, t, n) {
|
|
9245
9246
|
let i = vu(e);
|
|
9246
|
-
return (n && t !== "right" || !n && t === "right") && (i =
|
|
9247
|
+
return (n && t !== "right" || !n && t === "right") && (i = Vx(i)), i;
|
|
9247
9248
|
}
|
|
9248
|
-
function
|
|
9249
|
+
function Jx(e, t, n, i) {
|
|
9249
9250
|
const { top: s, left: o, bottom: r, right: a, chart: l } = e, { chartArea: c, scales: u } = l;
|
|
9250
9251
|
let d = 0, f, h, p;
|
|
9251
9252
|
const g = r - s, m = a - o;
|
|
@@ -9341,9 +9342,9 @@ class ms extends bt {
|
|
|
9341
9342
|
right: 0,
|
|
9342
9343
|
top: 0,
|
|
9343
9344
|
bottom: 0
|
|
9344
|
-
}, i), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + i.left + i.right : this.height + i.top + i.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range =
|
|
9345
|
+
}, i), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + i.left + i.right : this.height + i.top + i.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = Ry(this, o, s), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
|
|
9345
9346
|
const l = a < this.ticks.length;
|
|
9346
|
-
this._convertTicksToLabels(l ? ja(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks =
|
|
9347
|
+
this._convertTicksToLabels(l ? ja(this.ticks, a) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), r.display && (r.autoSkip || r.source === "auto") && (this.ticks = jx(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
|
|
9347
9348
|
}
|
|
9348
9349
|
configure() {
|
|
9349
9350
|
let t = this.options.reverse, n, i;
|
|
@@ -9513,7 +9514,7 @@ class ms extends bt {
|
|
|
9513
9514
|
_ = p[f], !et(_) && !q(_) && (v = ya(s, b.data, b.gc, v, _), w += x);
|
|
9514
9515
|
r.push(v), a.push(w), c = Math.max(v, c), u = Math.max(w, u);
|
|
9515
9516
|
}
|
|
9516
|
-
|
|
9517
|
+
Kx(o, n);
|
|
9517
9518
|
const k = r.indexOf(c), S = a.indexOf(u), P = (R) => ({
|
|
9518
9519
|
width: r[R] || 0,
|
|
9519
9520
|
height: a[R] || 0
|
|
@@ -9542,7 +9543,7 @@ class ms extends bt {
|
|
|
9542
9543
|
getPixelForDecimal(t) {
|
|
9543
9544
|
this._reversePixels && (t = 1 - t);
|
|
9544
9545
|
const n = this._startPixel + t * this._length;
|
|
9545
|
-
return
|
|
9546
|
+
return sy(this._alignToPixels ? he(this.chart, n, 0) : n);
|
|
9546
9547
|
}
|
|
9547
9548
|
getDecimalForPixel(t) {
|
|
9548
9549
|
const n = (t - this._startPixel) / this._length;
|
|
@@ -9559,9 +9560,9 @@ class ms extends bt {
|
|
|
9559
9560
|
const n = this.ticks || [];
|
|
9560
9561
|
if (t >= 0 && t < n.length) {
|
|
9561
9562
|
const i = n[t];
|
|
9562
|
-
return i.$context || (i.$context =
|
|
9563
|
+
return i.$context || (i.$context = Xx(this.getContext(), t, i));
|
|
9563
9564
|
}
|
|
9564
|
-
return this.$context || (this.$context =
|
|
9565
|
+
return this.$context || (this.$context = Ux(this.chart.getContext(), this));
|
|
9565
9566
|
}
|
|
9566
9567
|
_tickSize() {
|
|
9567
9568
|
const t = this.options.ticks, n = at(this.labelRotation), i = Math.abs(Math.cos(n)), s = Math.abs(Math.sin(n)), o = this._getLabelSizes(), r = t.autoSkipPadding || 0, a = o ? o.widest.width + r : 0, l = o ? o.highest.height + r : 0;
|
|
@@ -9604,7 +9605,7 @@ class ms extends bt {
|
|
|
9604
9605
|
const I = W(s.ticks.maxTicksLimit, d), F = Math.max(1, Math.ceil(d / I));
|
|
9605
9606
|
for (v = 0; v < d; v += F) {
|
|
9606
9607
|
const A = this.getContext(v), N = o.setContext(A), E = a.setContext(A), O = N.lineWidth, Y = N.color, H = E.dash || [], G = E.dashOffset, ot = N.tickWidth, rt = N.tickColor, yt = N.tickBorderDash || [], ct = N.tickBorderDashOffset;
|
|
9607
|
-
w =
|
|
9608
|
+
w = Yx(this, v, l), w !== void 0 && (_ = he(i, w, O), c ? k = P = M = D = _ : S = R = L = T = _, h.push({
|
|
9608
9609
|
tx1: k,
|
|
9609
9610
|
ty1: S,
|
|
9610
9611
|
tx2: P,
|
|
@@ -9817,12 +9818,12 @@ class ms extends bt {
|
|
|
9817
9818
|
const o = st(i.font), r = lt(i.padding), a = i.align;
|
|
9818
9819
|
let l = o.lineHeight / 2;
|
|
9819
9820
|
n === "bottom" || n === "center" || B(n) ? (l += r.bottom, q(i.text) && (l += o.lineHeight * (i.text.length - 1))) : l += r.top;
|
|
9820
|
-
const { titleX: c, titleY: u, maxWidth: d, rotation: f } =
|
|
9821
|
+
const { titleX: c, titleY: u, maxWidth: d, rotation: f } = Jx(this, l, n, a);
|
|
9821
9822
|
Yi(t, i.text, 0, 0, o, {
|
|
9822
9823
|
color: i.color,
|
|
9823
9824
|
maxWidth: d,
|
|
9824
9825
|
rotation: f,
|
|
9825
|
-
textAlign:
|
|
9826
|
+
textAlign: Gx(a, n, s),
|
|
9826
9827
|
textBaseline: "middle",
|
|
9827
9828
|
translation: [
|
|
9828
9829
|
c,
|
|
@@ -9891,11 +9892,11 @@ class di {
|
|
|
9891
9892
|
register(t) {
|
|
9892
9893
|
const n = Object.getPrototypeOf(t);
|
|
9893
9894
|
let i;
|
|
9894
|
-
|
|
9895
|
+
Qx(n) && (i = this.register(n));
|
|
9895
9896
|
const s = this.items, o = t.id, r = this.scope + "." + o;
|
|
9896
9897
|
if (!o)
|
|
9897
9898
|
throw new Error("class does not have id: " + t);
|
|
9898
|
-
return o in s || (s[o] = t,
|
|
9899
|
+
return o in s || (s[o] = t, qx(t, r, i), this.override && Q.override(t.id, t.overrides)), r;
|
|
9899
9900
|
}
|
|
9900
9901
|
get(t) {
|
|
9901
9902
|
return this.items[t];
|
|
@@ -9905,15 +9906,15 @@ class di {
|
|
|
9905
9906
|
i in n && delete n[i], s && i in Q[s] && (delete Q[s][i], this.override && delete ke[i]);
|
|
9906
9907
|
}
|
|
9907
9908
|
}
|
|
9908
|
-
function
|
|
9909
|
+
function qx(e, t, n) {
|
|
9909
9910
|
const i = zt(/* @__PURE__ */ Object.create(null), [
|
|
9910
9911
|
n ? Q.get(n) : {},
|
|
9911
9912
|
Q.get(t),
|
|
9912
9913
|
e.defaults
|
|
9913
9914
|
]);
|
|
9914
|
-
Q.set(t, i), e.defaultRoutes &&
|
|
9915
|
+
Q.set(t, i), e.defaultRoutes && Zx(t, e.defaultRoutes), e.descriptors && Q.describe(t, e.descriptors);
|
|
9915
9916
|
}
|
|
9916
|
-
function
|
|
9917
|
+
function Zx(e, t) {
|
|
9917
9918
|
Object.keys(t).forEach((n) => {
|
|
9918
9919
|
const i = n.split("."), s = i.pop(), o = [
|
|
9919
9920
|
e
|
|
@@ -9921,10 +9922,10 @@ function qx(e, t) {
|
|
|
9921
9922
|
Q.route(o, s, l, a);
|
|
9922
9923
|
});
|
|
9923
9924
|
}
|
|
9924
|
-
function
|
|
9925
|
+
function Qx(e) {
|
|
9925
9926
|
return "id" in e && "defaults" in e;
|
|
9926
9927
|
}
|
|
9927
|
-
class
|
|
9928
|
+
class tv {
|
|
9928
9929
|
constructor() {
|
|
9929
9930
|
this.controllers = new di(kn, "datasets", !0), this.elements = new di(bt, "elements"), this.plugins = new di(Object, "plugins"), this.scales = new di(ms, "scales"), this._typedRegistries = [
|
|
9930
9931
|
this.controllers,
|
|
@@ -10004,8 +10005,8 @@ class Qx {
|
|
|
10004
10005
|
return s;
|
|
10005
10006
|
}
|
|
10006
10007
|
}
|
|
10007
|
-
var Lt = /* @__PURE__ */ new
|
|
10008
|
-
class
|
|
10008
|
+
var Lt = /* @__PURE__ */ new tv();
|
|
10009
|
+
class ev {
|
|
10009
10010
|
constructor() {
|
|
10010
10011
|
this._init = [];
|
|
10011
10012
|
}
|
|
@@ -10037,15 +10038,15 @@ class tv {
|
|
|
10037
10038
|
return this._notifyStateChanges(t), n;
|
|
10038
10039
|
}
|
|
10039
10040
|
_createDescriptors(t, n) {
|
|
10040
|
-
const i = t && t.config, s = W(i.options && i.options.plugins, {}), o =
|
|
10041
|
-
return s === !1 && !n ? [] :
|
|
10041
|
+
const i = t && t.config, s = W(i.options && i.options.plugins, {}), o = nv(i);
|
|
10042
|
+
return s === !1 && !n ? [] : sv(t, o, s, n);
|
|
10042
10043
|
}
|
|
10043
10044
|
_notifyStateChanges(t) {
|
|
10044
10045
|
const n = this._oldCache || [], i = this._cache, s = (o, r) => o.filter((a) => !r.some((l) => a.plugin.id === l.plugin.id));
|
|
10045
10046
|
this._notify(s(n, i), t, "stop"), this._notify(s(i, n), t, "start");
|
|
10046
10047
|
}
|
|
10047
10048
|
}
|
|
10048
|
-
function
|
|
10049
|
+
function nv(e) {
|
|
10049
10050
|
const t = {}, n = [], i = Object.keys(Lt.plugins.items);
|
|
10050
10051
|
for (let o = 0; o < i.length; o++)
|
|
10051
10052
|
n.push(Lt.getPlugin(i[o]));
|
|
@@ -10059,16 +10060,16 @@ function ev(e) {
|
|
|
10059
10060
|
localIds: t
|
|
10060
10061
|
};
|
|
10061
10062
|
}
|
|
10062
|
-
function
|
|
10063
|
+
function iv(e, t) {
|
|
10063
10064
|
return !t && e === !1 ? null : e === !0 ? {} : e;
|
|
10064
10065
|
}
|
|
10065
|
-
function
|
|
10066
|
+
function sv(e, { plugins: t, localIds: n }, i, s) {
|
|
10066
10067
|
const o = [], r = e.getContext();
|
|
10067
10068
|
for (const a of t) {
|
|
10068
|
-
const l = a.id, c =
|
|
10069
|
+
const l = a.id, c = iv(i[l], s);
|
|
10069
10070
|
c !== null && o.push({
|
|
10070
10071
|
plugin: a,
|
|
10071
|
-
options:
|
|
10072
|
+
options: ov(e.config, {
|
|
10072
10073
|
plugin: a,
|
|
10073
10074
|
local: n[l]
|
|
10074
10075
|
}, c, r)
|
|
@@ -10076,7 +10077,7 @@ function iv(e, { plugins: t, localIds: n }, i, s) {
|
|
|
10076
10077
|
}
|
|
10077
10078
|
return o;
|
|
10078
10079
|
}
|
|
10079
|
-
function
|
|
10080
|
+
function ov(e, { plugin: t, local: n }, i, s) {
|
|
10080
10081
|
const o = e.pluginScopeKeys(t), r = e.getOptionScopes(i, o);
|
|
10081
10082
|
return n && t.defaults && r.push(t.defaults), e.createResolver(r, s, [
|
|
10082
10083
|
""
|
|
@@ -10090,18 +10091,18 @@ function po(e, t) {
|
|
|
10090
10091
|
const n = Q.datasets[e] || {};
|
|
10091
10092
|
return ((t.datasets || {})[e] || {}).indexAxis || t.indexAxis || n.indexAxis || "x";
|
|
10092
10093
|
}
|
|
10093
|
-
function
|
|
10094
|
+
function rv(e, t) {
|
|
10094
10095
|
let n = e;
|
|
10095
10096
|
return e === "_index_" ? n = t : e === "_value_" && (n = t === "x" ? "y" : "x"), n;
|
|
10096
10097
|
}
|
|
10097
|
-
function
|
|
10098
|
+
function av(e, t) {
|
|
10098
10099
|
return e === t ? "_index_" : "_value_";
|
|
10099
10100
|
}
|
|
10100
10101
|
function Ba(e) {
|
|
10101
10102
|
if (e === "x" || e === "y" || e === "r")
|
|
10102
10103
|
return e;
|
|
10103
10104
|
}
|
|
10104
|
-
function
|
|
10105
|
+
function lv(e) {
|
|
10105
10106
|
if (e === "top" || e === "bottom")
|
|
10106
10107
|
return "x";
|
|
10107
10108
|
if (e === "left" || e === "right")
|
|
@@ -10111,7 +10112,7 @@ function mo(e, ...t) {
|
|
|
10111
10112
|
if (Ba(e))
|
|
10112
10113
|
return e;
|
|
10113
10114
|
for (const n of t) {
|
|
10114
|
-
const i = n.axis ||
|
|
10115
|
+
const i = n.axis || lv(n.position) || e.length > 1 && Ba(e[0].toLowerCase());
|
|
10115
10116
|
if (i)
|
|
10116
10117
|
return i;
|
|
10117
10118
|
}
|
|
@@ -10123,7 +10124,7 @@ function za(e, t, n) {
|
|
|
10123
10124
|
axis: t
|
|
10124
10125
|
};
|
|
10125
10126
|
}
|
|
10126
|
-
function
|
|
10127
|
+
function cv(e, t) {
|
|
10127
10128
|
if (t.data && t.data.datasets) {
|
|
10128
10129
|
const n = t.data.datasets.filter((i) => i.xAxisID === e || i.yAxisID === e);
|
|
10129
10130
|
if (n.length)
|
|
@@ -10131,7 +10132,7 @@ function lv(e, t) {
|
|
|
10131
10132
|
}
|
|
10132
10133
|
return {};
|
|
10133
10134
|
}
|
|
10134
|
-
function
|
|
10135
|
+
function uv(e, t) {
|
|
10135
10136
|
const n = ke[e.type] || {
|
|
10136
10137
|
scales: {}
|
|
10137
10138
|
}, i = t.scales || {}, s = po(e.type, t), o = /* @__PURE__ */ Object.create(null);
|
|
@@ -10141,7 +10142,7 @@ function cv(e, t) {
|
|
|
10141
10142
|
return console.error(`Invalid scale configuration for scale: ${r}`);
|
|
10142
10143
|
if (a._proxy)
|
|
10143
10144
|
return console.warn(`Ignoring resolver passed as options for scale: ${r}`);
|
|
10144
|
-
const l = mo(r, a,
|
|
10145
|
+
const l = mo(r, a, cv(r, e), Q.scales[a.type]), c = av(l, s), u = n.scales || {};
|
|
10145
10146
|
o[r] = Sn(/* @__PURE__ */ Object.create(null), [
|
|
10146
10147
|
{
|
|
10147
10148
|
axis: l
|
|
@@ -10153,7 +10154,7 @@ function cv(e, t) {
|
|
|
10153
10154
|
}), e.data.datasets.forEach((r) => {
|
|
10154
10155
|
const a = r.type || e.type, l = r.indexAxis || po(a, t), u = (ke[a] || {}).scales || {};
|
|
10155
10156
|
Object.keys(u).forEach((d) => {
|
|
10156
|
-
const f =
|
|
10157
|
+
const f = rv(d, l), h = r[f + "AxisID"] || f;
|
|
10157
10158
|
o[h] = o[h] || /* @__PURE__ */ Object.create(null), Sn(o[h], [
|
|
10158
10159
|
{
|
|
10159
10160
|
axis: f
|
|
@@ -10172,12 +10173,12 @@ function cv(e, t) {
|
|
|
10172
10173
|
}
|
|
10173
10174
|
function Nu(e) {
|
|
10174
10175
|
const t = e.options || (e.options = {});
|
|
10175
|
-
t.plugins = W(t.plugins, {}), t.scales =
|
|
10176
|
+
t.plugins = W(t.plugins, {}), t.scales = uv(e, t);
|
|
10176
10177
|
}
|
|
10177
10178
|
function Fu(e) {
|
|
10178
10179
|
return e = e || {}, e.datasets = e.datasets || [], e.labels = e.labels || [], e;
|
|
10179
10180
|
}
|
|
10180
|
-
function
|
|
10181
|
+
function dv(e) {
|
|
10181
10182
|
return e = e || {}, e.data = Fu(e.data), Nu(e), e;
|
|
10182
10183
|
}
|
|
10183
10184
|
const Wa = /* @__PURE__ */ new Map(), ju = /* @__PURE__ */ new Set();
|
|
@@ -10189,9 +10190,9 @@ const hn = (e, t, n) => {
|
|
|
10189
10190
|
const i = Nn(t, n);
|
|
10190
10191
|
i !== void 0 && e.add(i);
|
|
10191
10192
|
};
|
|
10192
|
-
class
|
|
10193
|
+
class fv {
|
|
10193
10194
|
constructor(t) {
|
|
10194
|
-
this._config =
|
|
10195
|
+
this._config = dv(t), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map();
|
|
10195
10196
|
}
|
|
10196
10197
|
get platform() {
|
|
10197
10198
|
return this._config.platform;
|
|
@@ -10299,7 +10300,7 @@ class dv {
|
|
|
10299
10300
|
$shared: !0
|
|
10300
10301
|
}, { resolver: r, subPrefixes: a } = Ha(this._resolverCache, t, s);
|
|
10301
10302
|
let l = r;
|
|
10302
|
-
if (
|
|
10303
|
+
if (gv(r, n)) {
|
|
10303
10304
|
o.$shared = !1, i = ht(i) ? i() : i;
|
|
10304
10305
|
const c = this.createResolver(t, i, a);
|
|
10305
10306
|
l = Ke(r, i, c);
|
|
@@ -10325,18 +10326,18 @@ function Ha(e, t, n) {
|
|
|
10325
10326
|
subPrefixes: n.filter((a) => !a.toLowerCase().includes("hover"))
|
|
10326
10327
|
}, i.set(s, o)), o;
|
|
10327
10328
|
}
|
|
10328
|
-
const
|
|
10329
|
-
function
|
|
10329
|
+
const hv = (e) => B(e) && Object.getOwnPropertyNames(e).some((t) => ht(e[t]));
|
|
10330
|
+
function gv(e, t) {
|
|
10330
10331
|
const { isScriptable: n, isIndexable: i } = Cu(e);
|
|
10331
10332
|
for (const s of t) {
|
|
10332
10333
|
const o = n(s), r = i(s), a = (r || o) && e[s];
|
|
10333
|
-
if (o && (ht(a) ||
|
|
10334
|
+
if (o && (ht(a) || hv(a)) || r && q(a))
|
|
10334
10335
|
return !0;
|
|
10335
10336
|
}
|
|
10336
10337
|
return !1;
|
|
10337
10338
|
}
|
|
10338
|
-
var
|
|
10339
|
-
const
|
|
10339
|
+
var pv = "4.5.0";
|
|
10340
|
+
const mv = [
|
|
10340
10341
|
"top",
|
|
10341
10342
|
"bottom",
|
|
10342
10343
|
"left",
|
|
@@ -10344,7 +10345,7 @@ const pv = [
|
|
|
10344
10345
|
"chartArea"
|
|
10345
10346
|
];
|
|
10346
10347
|
function Va(e, t) {
|
|
10347
|
-
return e === "top" || e === "bottom" ||
|
|
10348
|
+
return e === "top" || e === "bottom" || mv.indexOf(e) === -1 && t === "x";
|
|
10348
10349
|
}
|
|
10349
10350
|
function Ya(e, t) {
|
|
10350
10351
|
return function(n, i) {
|
|
@@ -10357,7 +10358,7 @@ function Ka(e) {
|
|
|
10357
10358
|
e
|
|
10358
10359
|
], t);
|
|
10359
10360
|
}
|
|
10360
|
-
function
|
|
10361
|
+
function bv(e) {
|
|
10361
10362
|
const t = e.chart, n = t.options.animation;
|
|
10362
10363
|
K(n && n.onProgress, [
|
|
10363
10364
|
e
|
|
@@ -10370,7 +10371,7 @@ const Ci = {}, Ua = (e) => {
|
|
|
10370
10371
|
const t = $u(e);
|
|
10371
10372
|
return Object.values(Ci).filter((n) => n.canvas === t).pop();
|
|
10372
10373
|
};
|
|
10373
|
-
function
|
|
10374
|
+
function yv(e, t, n) {
|
|
10374
10375
|
const i = Object.keys(e);
|
|
10375
10376
|
for (const s of i) {
|
|
10376
10377
|
const o = +s;
|
|
@@ -10380,7 +10381,7 @@ function bv(e, t, n) {
|
|
|
10380
10381
|
}
|
|
10381
10382
|
}
|
|
10382
10383
|
}
|
|
10383
|
-
function
|
|
10384
|
+
function xv(e, t, n, i) {
|
|
10384
10385
|
return !n || e.type === "mouseout" ? null : i ? t : e;
|
|
10385
10386
|
}
|
|
10386
10387
|
var te;
|
|
@@ -10392,17 +10393,17 @@ let ae = (te = class {
|
|
|
10392
10393
|
Lt.remove(...t), Xa();
|
|
10393
10394
|
}
|
|
10394
10395
|
constructor(t, n) {
|
|
10395
|
-
const i = this.config = new
|
|
10396
|
+
const i = this.config = new fv(n), s = $u(t), o = Ua(s);
|
|
10396
10397
|
if (o)
|
|
10397
10398
|
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.");
|
|
10398
10399
|
const r = i.createResolver(i.chartOptionScopes(), this.getContext());
|
|
10399
|
-
this.platform = new (i.platform ||
|
|
10400
|
+
this.platform = new (i.platform || Fx(s))(), this.platform.updateConfig(i);
|
|
10400
10401
|
const a = this.platform.acquireContext(s, r.aspectRatio), l = a && a.canvas, c = l && l.height, u = l && l.width;
|
|
10401
|
-
if (this.id =
|
|
10402
|
+
if (this.id = Gb(), this.ctx = a, this.canvas = l, this.width = u, 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 ev(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = cy((d) => this.update(d), r.resizeDelay || 0), this._dataChanges = [], Ci[this.id] = this, !a || !l) {
|
|
10402
10403
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
10403
10404
|
return;
|
|
10404
10405
|
}
|
|
10405
|
-
Kt.listen(this, "complete", Ka), Kt.listen(this, "progress",
|
|
10406
|
+
Kt.listen(this, "complete", Ka), Kt.listen(this, "progress", bv), this._initialize(), this.attached && this.update();
|
|
10406
10407
|
}
|
|
10407
10408
|
get aspectRatio() {
|
|
10408
10409
|
const { options: { aspectRatio: t, maintainAspectRatio: n }, width: i, height: s, _aspectRatio: o } = this;
|
|
@@ -10564,7 +10565,7 @@ let ae = (te = class {
|
|
|
10564
10565
|
const { _hiddenIndices: t } = this, n = this._getUniformDataChanges() || [];
|
|
10565
10566
|
for (const { method: i, start: s, count: o } of n) {
|
|
10566
10567
|
const r = i === "_removeElements" ? -o : o;
|
|
10567
|
-
|
|
10568
|
+
yv(t, s, r);
|
|
10568
10569
|
}
|
|
10569
10570
|
}
|
|
10570
10571
|
_getUniformDataChanges() {
|
|
@@ -10671,14 +10672,14 @@ let ae = (te = class {
|
|
|
10671
10672
|
meta: t,
|
|
10672
10673
|
index: t.index,
|
|
10673
10674
|
cancelable: !0
|
|
10674
|
-
}, s =
|
|
10675
|
+
}, s = Gy(this, t);
|
|
10675
10676
|
this.notifyPlugins("beforeDatasetDraw", i) !== !1 && (s && fs(n, s), t.controller.draw(), s && hs(n), i.cancelable = !1, this.notifyPlugins("afterDatasetDraw", i));
|
|
10676
10677
|
}
|
|
10677
10678
|
isPointInArea(t) {
|
|
10678
10679
|
return Uo(t, this.chartArea, this._minPadding);
|
|
10679
10680
|
}
|
|
10680
10681
|
getElementsAtEventForMode(t, n, i, s) {
|
|
10681
|
-
const o =
|
|
10682
|
+
const o = mx.modes[n];
|
|
10682
10683
|
return typeof o == "function" ? o(this, t, i, s) : [];
|
|
10683
10684
|
}
|
|
10684
10685
|
getDatasetMeta(t) {
|
|
@@ -10837,7 +10838,7 @@ let ae = (te = class {
|
|
|
10837
10838
|
return i.cancelable = !1, this.notifyPlugins("afterEvent", i, s), (o || i.changed) && this.render(), this;
|
|
10838
10839
|
}
|
|
10839
10840
|
_handleEvent(t, n, i) {
|
|
10840
|
-
const { _active: s = [], options: o } = this, r = n, a = this._getActiveElements(t, s, i, r), l =
|
|
10841
|
+
const { _active: s = [], options: o } = this, r = n, a = this._getActiveElements(t, s, i, r), l = ey(t), c = xv(t, this._lastEvent, i, l);
|
|
10841
10842
|
i && (this._lastEvent = null, K(o.onHover, [
|
|
10842
10843
|
t,
|
|
10843
10844
|
a,
|
|
@@ -10858,11 +10859,11 @@ let ae = (te = class {
|
|
|
10858
10859
|
const o = this.options.hover;
|
|
10859
10860
|
return this.getElementsAtEventForMode(t, o.mode, o, s);
|
|
10860
10861
|
}
|
|
10861
|
-
}, j(te, "defaults", Q), j(te, "instances", Ci), j(te, "overrides", ke), j(te, "registry", Lt), j(te, "version",
|
|
10862
|
+
}, j(te, "defaults", Q), j(te, "instances", Ci), j(te, "overrides", ke), j(te, "registry", Lt), j(te, "version", pv), j(te, "getChart", Ua), te);
|
|
10862
10863
|
function Xa() {
|
|
10863
10864
|
return U(ae.instances, (e) => e._plugins.invalidate());
|
|
10864
10865
|
}
|
|
10865
|
-
function
|
|
10866
|
+
function vv(e, t, n) {
|
|
10866
10867
|
const { startAngle: i, x: s, y: o, outerRadius: r, innerRadius: a, options: l } = t, { borderWidth: c, borderJoinStyle: u } = l, d = Math.min(c / r, It(i - n));
|
|
10867
10868
|
if (e.beginPath(), e.arc(s, o, r - c / 2, i + d / 2, n - d / 2), a > 0) {
|
|
10868
10869
|
const f = Math.min(c / a, It(i - n));
|
|
@@ -10878,12 +10879,12 @@ function xv(e, t, n) {
|
|
|
10878
10879
|
}
|
|
10879
10880
|
e.closePath(), e.moveTo(0, 0), e.rect(0, 0, e.canvas.width, e.canvas.height), e.clip("evenodd");
|
|
10880
10881
|
}
|
|
10881
|
-
function
|
|
10882
|
+
function wv(e, t, n) {
|
|
10882
10883
|
const { startAngle: i, pixelMargin: s, x: o, y: r, outerRadius: a, innerRadius: l } = t;
|
|
10883
10884
|
let c = s / a;
|
|
10884
10885
|
e.beginPath(), e.arc(o, r, a, i - c, n + c), l > s ? (c = s / l, e.arc(o, r, l, n + c, i - c, !0)) : e.arc(o, r, s, n + Z, i - Z), e.closePath(), e.clip();
|
|
10885
10886
|
}
|
|
10886
|
-
function
|
|
10887
|
+
function _v(e) {
|
|
10887
10888
|
return Xo(e, [
|
|
10888
10889
|
"outerStart",
|
|
10889
10890
|
"outerEnd",
|
|
@@ -10891,8 +10892,8 @@ function wv(e) {
|
|
|
10891
10892
|
"innerEnd"
|
|
10892
10893
|
]);
|
|
10893
10894
|
}
|
|
10894
|
-
function
|
|
10895
|
-
const s =
|
|
10895
|
+
function Sv(e, t, n, i) {
|
|
10896
|
+
const s = _v(e.options.borderRadius), o = (n - t) / 2, r = Math.min(o, i * t / 2), a = (l) => {
|
|
10896
10897
|
const c = (n - Math.min(o, l)) * i / 2;
|
|
10897
10898
|
return _t(l, 0, Math.min(o, c));
|
|
10898
10899
|
};
|
|
@@ -10917,7 +10918,7 @@ function Xi(e, t, n, i, s, o) {
|
|
|
10917
10918
|
const F = u > 0 ? u - i : 0, A = d > 0 ? d - i : 0, N = (F + A) / 2, E = N !== 0 ? p * N / (N + i) : p;
|
|
10918
10919
|
h = (p - E) / 2;
|
|
10919
10920
|
}
|
|
10920
|
-
const g = Math.max(1e-3, p * d - n / z) / d, m = (p - g) / 2, b = l + m + h, x = s - m - h, { outerStart: v, outerEnd: w, innerStart: _, innerEnd: k } =
|
|
10921
|
+
const g = Math.max(1e-3, p * d - n / z) / d, m = (p - g) / 2, b = l + m + h, x = s - m - h, { outerStart: v, outerEnd: w, innerStart: _, innerEnd: k } = Sv(t, f, d, x - b), S = d - v, P = d - w, R = b + v / S, M = x - w / P, L = f + _, D = f + k, T = b + _ / L, I = x - k / D;
|
|
10921
10922
|
if (e.beginPath(), o) {
|
|
10922
10923
|
const F = (R + M) / 2;
|
|
10923
10924
|
if (e.arc(r, a, d, R, F), e.arc(r, a, d, F, M), w > 0) {
|
|
@@ -10948,7 +10949,7 @@ function Xi(e, t, n, i, s, o) {
|
|
|
10948
10949
|
}
|
|
10949
10950
|
e.closePath();
|
|
10950
10951
|
}
|
|
10951
|
-
function
|
|
10952
|
+
function Cv(e, t, n, i, s) {
|
|
10952
10953
|
const { fullCircles: o, startAngle: r, circumference: a } = t;
|
|
10953
10954
|
let l = t.endAngle;
|
|
10954
10955
|
if (o) {
|
|
@@ -10959,7 +10960,7 @@ function Sv(e, t, n, i, s) {
|
|
|
10959
10960
|
}
|
|
10960
10961
|
return Xi(e, t, n, i, l, s), e.fill(), l;
|
|
10961
10962
|
}
|
|
10962
|
-
function
|
|
10963
|
+
function Mv(e, t, n, i, s) {
|
|
10963
10964
|
const { fullCircles: o, startAngle: r, circumference: a, options: l } = t, { borderWidth: c, borderJoinStyle: u, borderDash: d, borderDashOffset: f, borderRadius: h } = l, p = l.borderAlign === "inner";
|
|
10964
10965
|
if (!c)
|
|
10965
10966
|
return;
|
|
@@ -10971,7 +10972,7 @@ function Cv(e, t, n, i, s) {
|
|
|
10971
10972
|
e.stroke();
|
|
10972
10973
|
isNaN(a) || (g = r + (a % tt || tt));
|
|
10973
10974
|
}
|
|
10974
|
-
p &&
|
|
10975
|
+
p && wv(e, t, g), l.selfJoin && g - r >= z && h === 0 && u !== "miter" && vv(e, t, g), o || (Xi(e, t, n, i, g, s), e.stroke());
|
|
10975
10976
|
}
|
|
10976
10977
|
class ye extends bt {
|
|
10977
10978
|
constructor(n) {
|
|
@@ -11026,7 +11027,7 @@ class ye extends bt {
|
|
|
11026
11027
|
const l = (this.startAngle + this.endAngle) / 2;
|
|
11027
11028
|
n.translate(Math.cos(l) * o, Math.sin(l) * o);
|
|
11028
11029
|
const c = 1 - Math.sin(Math.min(z, s || 0)), u = o * c;
|
|
11029
|
-
n.fillStyle = i.backgroundColor, n.strokeStyle = i.borderColor,
|
|
11030
|
+
n.fillStyle = i.backgroundColor, n.strokeStyle = i.borderColor, Cv(n, this, u, r, a), Mv(n, this, u, r, a), n.restore();
|
|
11030
11031
|
}
|
|
11031
11032
|
}
|
|
11032
11033
|
j(ye, "id", "arc"), j(ye, "defaults", {
|
|
@@ -11138,7 +11139,7 @@ function Bu(e, t) {
|
|
|
11138
11139
|
function oe(e, t, n, i) {
|
|
11139
11140
|
return e ? 0 : _t(t, n, i);
|
|
11140
11141
|
}
|
|
11141
|
-
function
|
|
11142
|
+
function kv(e, t, n) {
|
|
11142
11143
|
const i = e.options.borderWidth, s = e.borderSkipped, o = Su(i);
|
|
11143
11144
|
return {
|
|
11144
11145
|
t: oe(s.top, o.top, 0, n),
|
|
@@ -11147,7 +11148,7 @@ function Mv(e, t, n) {
|
|
|
11147
11148
|
l: oe(s.left, o.left, 0, t)
|
|
11148
11149
|
};
|
|
11149
11150
|
}
|
|
11150
|
-
function
|
|
11151
|
+
function Pv(e, t, n) {
|
|
11151
11152
|
const { enableBorderRadius: i } = e.getProps([
|
|
11152
11153
|
"enableBorderRadius"
|
|
11153
11154
|
]), s = e.options.borderRadius, o = we(s), r = Math.min(t, n), a = e.borderSkipped, l = i || B(s);
|
|
@@ -11158,8 +11159,8 @@ function kv(e, t, n) {
|
|
|
11158
11159
|
bottomRight: oe(!l || a.bottom || a.right, o.bottomRight, 0, r)
|
|
11159
11160
|
};
|
|
11160
11161
|
}
|
|
11161
|
-
function
|
|
11162
|
-
const t = Bu(e), n = t.right - t.left, i = t.bottom - t.top, s =
|
|
11162
|
+
function Ov(e) {
|
|
11163
|
+
const t = Bu(e), n = t.right - t.left, i = t.bottom - t.top, s = kv(e, n / 2, i / 2), o = Pv(e, n / 2, i / 2);
|
|
11163
11164
|
return {
|
|
11164
11165
|
outer: {
|
|
11165
11166
|
x: t.left,
|
|
@@ -11186,10 +11187,10 @@ function Xs(e, t, n, i) {
|
|
|
11186
11187
|
const s = t === null, o = n === null, a = e && !(s && o) && Bu(e, i);
|
|
11187
11188
|
return a && (s || be(t, a.left, a.right)) && (o || be(n, a.top, a.bottom));
|
|
11188
11189
|
}
|
|
11189
|
-
function
|
|
11190
|
+
function Rv(e) {
|
|
11190
11191
|
return e.topLeft || e.topRight || e.bottomLeft || e.bottomRight;
|
|
11191
11192
|
}
|
|
11192
|
-
function
|
|
11193
|
+
function Av(e, t) {
|
|
11193
11194
|
e.rect(t.x, t.y, t.w, t.h);
|
|
11194
11195
|
}
|
|
11195
11196
|
function Gs(e, t, n = {}) {
|
|
@@ -11207,7 +11208,7 @@ class ki extends bt {
|
|
|
11207
11208
|
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);
|
|
11208
11209
|
}
|
|
11209
11210
|
draw(t) {
|
|
11210
|
-
const { inflateAmount: n, options: { borderColor: i, backgroundColor: s } } = this, { inner: o, outer: r } =
|
|
11211
|
+
const { inflateAmount: n, options: { borderColor: i, backgroundColor: s } } = this, { inner: o, outer: r } = Ov(this), a = Rv(r.radius) ? Fn : Av;
|
|
11211
11212
|
t.save(), (r.w !== o.w || r.h !== o.h) && (t.beginPath(), a(t, Gs(r, n, o)), t.clip(), a(t, Gs(o, -n, r)), t.fillStyle = i, t.fill("evenodd")), t.beginPath(), a(t, Gs(o, n)), t.fillStyle = s, t.fill(), t.restore();
|
|
11212
11213
|
}
|
|
11213
11214
|
inRange(t, n, i) {
|
|
@@ -11252,7 +11253,7 @@ const Ja = (e, t) => {
|
|
|
11252
11253
|
boxHeight: n,
|
|
11253
11254
|
itemHeight: Math.max(t, n)
|
|
11254
11255
|
};
|
|
11255
|
-
},
|
|
11256
|
+
}, Ev = (e, t) => e !== null && t !== null && e.datasetIndex === t.datasetIndex && e.index === t.index;
|
|
11256
11257
|
class qa extends bt {
|
|
11257
11258
|
constructor(t) {
|
|
11258
11259
|
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;
|
|
@@ -11302,7 +11303,7 @@ class qa extends bt {
|
|
|
11302
11303
|
const { ctx: o, maxHeight: r, options: { labels: { padding: a } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], u = r - t;
|
|
11303
11304
|
let d = a, f = 0, h = 0, p = 0, g = 0;
|
|
11304
11305
|
return this.legendItems.forEach((m, b) => {
|
|
11305
|
-
const { itemWidth: x, itemHeight: v } =
|
|
11306
|
+
const { itemWidth: x, itemHeight: v } = Dv(i, n, o, m, s);
|
|
11306
11307
|
b > 0 && h + v + 2 * a > u && (d += f + a, c.push({
|
|
11307
11308
|
width: f,
|
|
11308
11309
|
height: h
|
|
@@ -11391,7 +11392,7 @@ class qa extends bt {
|
|
|
11391
11392
|
let L = h.x, D = h.y;
|
|
11392
11393
|
l.setWidth(this.width), v ? S > 0 && L + M + u > this.right && (D = h.y += _, h.line++, L = h.x = xt(o, this.left + u, this.right - i[h.line])) : S > 0 && D + _ > this.bottom && (L = h.x = L + n[h.line].width + u, h.line++, D = h.y = xt(o, this.top + w + u, this.bottom - n[h.line].height));
|
|
11393
11394
|
const T = l.x(L);
|
|
11394
|
-
if (b(T, D, k), L =
|
|
11395
|
+
if (b(T, D, k), L = uy(R, L + p + f, v ? L + M : this.right, t.rtl), x(l.x(L), D, k), v)
|
|
11395
11396
|
h.x += M + u;
|
|
11396
11397
|
else if (typeof k.text != "string") {
|
|
11397
11398
|
const I = c.lineHeight;
|
|
@@ -11430,11 +11431,11 @@ class qa extends bt {
|
|
|
11430
11431
|
}
|
|
11431
11432
|
handleEvent(t) {
|
|
11432
11433
|
const n = this.options;
|
|
11433
|
-
if (!
|
|
11434
|
+
if (!Iv(t.type, n))
|
|
11434
11435
|
return;
|
|
11435
11436
|
const i = this._getLegendItemAt(t.x, t.y);
|
|
11436
11437
|
if (t.type === "mousemove" || t.type === "mouseout") {
|
|
11437
|
-
const s = this._hoveredItem, o =
|
|
11438
|
+
const s = this._hoveredItem, o = Ev(s, i);
|
|
11438
11439
|
s && !o && K(n.onLeave, [
|
|
11439
11440
|
t,
|
|
11440
11441
|
s,
|
|
@@ -11451,18 +11452,18 @@ class qa extends bt {
|
|
|
11451
11452
|
], this);
|
|
11452
11453
|
}
|
|
11453
11454
|
}
|
|
11454
|
-
function
|
|
11455
|
-
const o =
|
|
11455
|
+
function Dv(e, t, n, i, s) {
|
|
11456
|
+
const o = Tv(i, e, t, n), r = Lv(s, i, t.lineHeight);
|
|
11456
11457
|
return {
|
|
11457
11458
|
itemWidth: o,
|
|
11458
11459
|
itemHeight: r
|
|
11459
11460
|
};
|
|
11460
11461
|
}
|
|
11461
|
-
function
|
|
11462
|
+
function Tv(e, t, n, i) {
|
|
11462
11463
|
let s = e.text;
|
|
11463
11464
|
return s && typeof s != "string" && (s = s.reduce((o, r) => o.length > r.length ? o : r)), t + n.size / 2 + i.measureText(s).width;
|
|
11464
11465
|
}
|
|
11465
|
-
function
|
|
11466
|
+
function Lv(e, t, n) {
|
|
11466
11467
|
let i = e;
|
|
11467
11468
|
return typeof t.text != "string" && (i = zu(t, n)), i;
|
|
11468
11469
|
}
|
|
@@ -11470,7 +11471,7 @@ function zu(e, t) {
|
|
|
11470
11471
|
const n = e.text ? e.text.length : 0;
|
|
11471
11472
|
return t * n;
|
|
11472
11473
|
}
|
|
11473
|
-
function
|
|
11474
|
+
function Iv(e, t) {
|
|
11474
11475
|
return !!((e === "mousemove" || e === "mouseout") && (t.onHover || t.onLeave) || t.onClick && (e === "click" || e === "mouseup"));
|
|
11475
11476
|
}
|
|
11476
11477
|
var Wu = {
|
|
@@ -11605,7 +11606,7 @@ function Ut(e) {
|
|
|
11605
11606
|
`) > -1 ? e.split(`
|
|
11606
11607
|
`) : e;
|
|
11607
11608
|
}
|
|
11608
|
-
function
|
|
11609
|
+
function Nv(e, t) {
|
|
11609
11610
|
const { element: n, datasetIndex: i, index: s } = t, o = e.getDatasetMeta(i).controller, { label: r, value: a } = o.getLabelAndValue(s);
|
|
11610
11611
|
return {
|
|
11611
11612
|
chart: e,
|
|
@@ -11638,39 +11639,39 @@ function Za(e, t) {
|
|
|
11638
11639
|
height: g
|
|
11639
11640
|
};
|
|
11640
11641
|
}
|
|
11641
|
-
function
|
|
11642
|
+
function Fv(e, t) {
|
|
11642
11643
|
const { y: n, height: i } = t;
|
|
11643
11644
|
return n < i / 2 ? "top" : n > e.height - i / 2 ? "bottom" : "center";
|
|
11644
11645
|
}
|
|
11645
|
-
function
|
|
11646
|
+
function jv(e, t, n, i) {
|
|
11646
11647
|
const { x: s, width: o } = i, r = n.caretSize + n.caretPadding;
|
|
11647
11648
|
if (e === "left" && s + o + r > t.width || e === "right" && s - o - r < 0)
|
|
11648
11649
|
return !0;
|
|
11649
11650
|
}
|
|
11650
|
-
function
|
|
11651
|
+
function $v(e, t, n, i) {
|
|
11651
11652
|
const { x: s, width: o } = n, { width: r, chartArea: { left: a, right: l } } = e;
|
|
11652
11653
|
let c = "center";
|
|
11653
|
-
return i === "center" ? c = s <= (a + l) / 2 ? "left" : "right" : s <= o / 2 ? c = "left" : s >= r - o / 2 && (c = "right"),
|
|
11654
|
+
return i === "center" ? c = s <= (a + l) / 2 ? "left" : "right" : s <= o / 2 ? c = "left" : s >= r - o / 2 && (c = "right"), jv(c, e, t, n) && (c = "center"), c;
|
|
11654
11655
|
}
|
|
11655
11656
|
function Qa(e, t, n) {
|
|
11656
|
-
const i = n.yAlign || t.yAlign ||
|
|
11657
|
+
const i = n.yAlign || t.yAlign || Fv(e, n);
|
|
11657
11658
|
return {
|
|
11658
|
-
xAlign: n.xAlign || t.xAlign ||
|
|
11659
|
+
xAlign: n.xAlign || t.xAlign || $v(e, t, n, i),
|
|
11659
11660
|
yAlign: i
|
|
11660
11661
|
};
|
|
11661
11662
|
}
|
|
11662
|
-
function
|
|
11663
|
+
function Bv(e, t) {
|
|
11663
11664
|
let { x: n, width: i } = e;
|
|
11664
11665
|
return t === "right" ? n -= i : t === "center" && (n -= i / 2), n;
|
|
11665
11666
|
}
|
|
11666
|
-
function
|
|
11667
|
+
function zv(e, t, n) {
|
|
11667
11668
|
let { y: i, height: s } = e;
|
|
11668
11669
|
return t === "top" ? i += n : t === "bottom" ? i -= s + n : i -= s / 2, i;
|
|
11669
11670
|
}
|
|
11670
11671
|
function tl(e, t, n, i) {
|
|
11671
11672
|
const { caretSize: s, caretPadding: o, cornerRadius: r } = e, { xAlign: a, yAlign: l } = n, c = s + o, { topLeft: u, topRight: d, bottomLeft: f, bottomRight: h } = we(r);
|
|
11672
|
-
let p =
|
|
11673
|
-
const g =
|
|
11673
|
+
let p = Bv(t, a);
|
|
11674
|
+
const g = zv(t, l, c);
|
|
11674
11675
|
return l === "center" ? a === "left" ? p += c : a === "right" && (p -= c) : a === "left" ? p -= Math.max(u, f) + s : a === "right" && (p += Math.max(d, h) + s), {
|
|
11675
11676
|
x: _t(p, 0, i.width - t.width),
|
|
11676
11677
|
y: _t(g, 0, i.height - t.height)
|
|
@@ -11683,7 +11684,7 @@ function hi(e, t, n) {
|
|
|
11683
11684
|
function el(e) {
|
|
11684
11685
|
return Tt([], Ut(e));
|
|
11685
11686
|
}
|
|
11686
|
-
function
|
|
11687
|
+
function Wv(e, t, n) {
|
|
11687
11688
|
return qe(e, {
|
|
11688
11689
|
tooltip: t,
|
|
11689
11690
|
tooltipItems: n,
|
|
@@ -11765,7 +11766,7 @@ class bo extends bt {
|
|
|
11765
11766
|
return s._cacheable && (this._cachedAnimations = Object.freeze(o)), o;
|
|
11766
11767
|
}
|
|
11767
11768
|
getContext() {
|
|
11768
|
-
return this.$context || (this.$context =
|
|
11769
|
+
return this.$context || (this.$context = Wv(this.chart.getContext(), this, this._tooltipItems));
|
|
11769
11770
|
}
|
|
11770
11771
|
getTitle(t, n) {
|
|
11771
11772
|
const { callbacks: i } = n, s = ut(i, "beforeTitle", this, t), o = ut(i, "title", this, t), r = ut(i, "afterTitle", this, t);
|
|
@@ -11798,7 +11799,7 @@ class bo extends bt {
|
|
|
11798
11799
|
const n = this._active, i = this.chart.data, s = [], o = [], r = [];
|
|
11799
11800
|
let a = [], l, c;
|
|
11800
11801
|
for (l = 0, c = n.length; l < c; ++l)
|
|
11801
|
-
a.push(
|
|
11802
|
+
a.push(Nv(this.chart, n[l]));
|
|
11802
11803
|
return t.filter && (a = a.filter((u, d, f) => t.filter(u, d, f, i))), t.itemSort && (a = a.sort((u, d) => t.itemSort(u, d, i))), U(a, (u) => {
|
|
11803
11804
|
const d = nl(t.callbacks, u);
|
|
11804
11805
|
s.push(ut(d, "labelColor", this, u)), o.push(ut(d, "labelPointStyle", this, u)), r.push(ut(d, "labelTextColor", this, u));
|
|
@@ -12164,7 +12165,7 @@ function ol(e, t, n, i) {
|
|
|
12164
12165
|
}
|
|
12165
12166
|
return ft[s - 1];
|
|
12166
12167
|
}
|
|
12167
|
-
function
|
|
12168
|
+
function Hv(e, t, n, i, s) {
|
|
12168
12169
|
for (let o = ft.length - 1; o >= ft.indexOf(n); o--) {
|
|
12169
12170
|
const r = ft[o];
|
|
12170
12171
|
if (bs[r].common && e._adapter.diff(s, i, r) >= t - 1)
|
|
@@ -12172,7 +12173,7 @@ function Wv(e, t, n, i, s) {
|
|
|
12172
12173
|
}
|
|
12173
12174
|
return ft[n ? ft.indexOf(n) : 0];
|
|
12174
12175
|
}
|
|
12175
|
-
function
|
|
12176
|
+
function Vv(e) {
|
|
12176
12177
|
for (let t = ft.indexOf(e) + 1, n = ft.length; t < n; ++t)
|
|
12177
12178
|
if (bs[ft[t]].common)
|
|
12178
12179
|
return ft[t];
|
|
@@ -12185,7 +12186,7 @@ function rl(e, t, n) {
|
|
|
12185
12186
|
e[o] = !0;
|
|
12186
12187
|
}
|
|
12187
12188
|
}
|
|
12188
|
-
function
|
|
12189
|
+
function Yv(e, t, n, i) {
|
|
12189
12190
|
const s = e._adapter, o = +s.startOf(t[0].value, i), r = t[t.length - 1].value;
|
|
12190
12191
|
let a, l;
|
|
12191
12192
|
for (a = o; a <= r; a = +s.add(a, 1, i))
|
|
@@ -12200,7 +12201,7 @@ function al(e, t, n) {
|
|
|
12200
12201
|
value: a,
|
|
12201
12202
|
major: !1
|
|
12202
12203
|
});
|
|
12203
|
-
return o === 0 || !n ? i :
|
|
12204
|
+
return o === 0 || !n ? i : Yv(e, i, s, n);
|
|
12204
12205
|
}
|
|
12205
12206
|
class Gi extends ms {
|
|
12206
12207
|
constructor(t) {
|
|
@@ -12211,7 +12212,7 @@ class Gi extends ms {
|
|
|
12211
12212
|
}, this._unit = "day", this._majorUnit = void 0, this._offsets = {}, this._normalized = !1, this._parseOpts = void 0;
|
|
12212
12213
|
}
|
|
12213
12214
|
init(t, n = {}) {
|
|
12214
|
-
const i = t.time || (t.time = {}), s = this._adapter = new
|
|
12215
|
+
const i = t.time || (t.time = {}), s = this._adapter = new dx._date(t.adapters.date);
|
|
12215
12216
|
s.init(n), Sn(i.displayFormats, s.formats()), this._parseOpts = {
|
|
12216
12217
|
parser: i.parser,
|
|
12217
12218
|
round: i.round,
|
|
@@ -12247,8 +12248,8 @@ class Gi extends ms {
|
|
|
12247
12248
|
buildTicks() {
|
|
12248
12249
|
const t = this.options, n = t.time, i = t.ticks, s = i.source === "labels" ? this.getLabelTimestamps() : this._generate();
|
|
12249
12250
|
t.bounds === "ticks" && s.length && (this.min = this._userMin || s[0], this.max = this._userMax || s[s.length - 1]);
|
|
12250
|
-
const o = this.min, r = this.max, a =
|
|
12251
|
-
return this._unit = n.unit || (i.autoSkip ? ol(n.minUnit, this.min, this.max, this._getLabelCapacity(o)) :
|
|
12251
|
+
const o = this.min, r = this.max, a = ry(s, o, r);
|
|
12252
|
+
return this._unit = n.unit || (i.autoSkip ? ol(n.minUnit, this.min, this.max, this._getLabelCapacity(o)) : Hv(this, a.length, n.minUnit, this.min, this.max)), this._majorUnit = !i.major.enabled || this._unit === "year" ? void 0 : Vv(this._unit), this.initOffsets(s), t.reverse && a.reverse(), al(this, a, this._majorUnit);
|
|
12252
12253
|
}
|
|
12253
12254
|
afterAutoSkip() {
|
|
12254
12255
|
this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
|
|
@@ -12343,7 +12344,7 @@ class Gi extends ms {
|
|
|
12343
12344
|
return this._cache.labels = this._normalized ? t : this.normalize(t);
|
|
12344
12345
|
}
|
|
12345
12346
|
normalize(t) {
|
|
12346
|
-
return
|
|
12347
|
+
return ly(t.sort(il));
|
|
12347
12348
|
}
|
|
12348
12349
|
}
|
|
12349
12350
|
j(Gi, "id", "time"), j(Gi, "defaults", {
|
|
@@ -12427,7 +12428,7 @@ const Yu = "label";
|
|
|
12427
12428
|
function cl(e, t) {
|
|
12428
12429
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
12429
12430
|
}
|
|
12430
|
-
function
|
|
12431
|
+
function Kv(e, t) {
|
|
12431
12432
|
const n = e.options;
|
|
12432
12433
|
n && t && Object.assign(n, t);
|
|
12433
12434
|
}
|
|
@@ -12444,7 +12445,7 @@ function Uu(e, t) {
|
|
|
12444
12445
|
} : (i.push(o), Object.assign(o, s), o);
|
|
12445
12446
|
});
|
|
12446
12447
|
}
|
|
12447
|
-
function
|
|
12448
|
+
function Uv(e) {
|
|
12448
12449
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Yu;
|
|
12449
12450
|
const n = {
|
|
12450
12451
|
labels: [],
|
|
@@ -12452,11 +12453,11 @@ function Kv(e) {
|
|
|
12452
12453
|
};
|
|
12453
12454
|
return Ku(n, e.labels), Uu(n, e.datasets, t), n;
|
|
12454
12455
|
}
|
|
12455
|
-
function
|
|
12456
|
+
function Xv(e, t) {
|
|
12456
12457
|
const { height: n = 150, width: i = 300, redraw: s = !1, datasetIdKey: o, type: r, data: a, options: l, plugins: c = [], fallbackContent: u, updateMode: d, ...f } = e, h = He(null), p = He(null), g = () => {
|
|
12457
12458
|
h.current && (p.current = new ae(h.current, {
|
|
12458
12459
|
type: r,
|
|
12459
|
-
data:
|
|
12460
|
+
data: Uv(a, o),
|
|
12460
12461
|
options: l && {
|
|
12461
12462
|
...l
|
|
12462
12463
|
},
|
|
@@ -12466,7 +12467,7 @@ function Uv(e, t) {
|
|
|
12466
12467
|
cl(t, null), p.current && (p.current.destroy(), p.current = null);
|
|
12467
12468
|
};
|
|
12468
12469
|
return pe(() => {
|
|
12469
|
-
!s && p.current && l &&
|
|
12470
|
+
!s && p.current && l && Kv(p.current, l);
|
|
12470
12471
|
}, [
|
|
12471
12472
|
s,
|
|
12472
12473
|
l
|
|
@@ -12500,15 +12501,15 @@ function Uv(e, t) {
|
|
|
12500
12501
|
...f
|
|
12501
12502
|
}, u);
|
|
12502
12503
|
}
|
|
12503
|
-
const
|
|
12504
|
-
function
|
|
12505
|
-
return ae.register(t), /* @__PURE__ */ $n((n, i) => /* @__PURE__ */ vt.createElement(
|
|
12504
|
+
const Gv = /* @__PURE__ */ $n(Xv);
|
|
12505
|
+
function Jv(e, t) {
|
|
12506
|
+
return ae.register(t), /* @__PURE__ */ $n((n, i) => /* @__PURE__ */ vt.createElement(Gv, {
|
|
12506
12507
|
...n,
|
|
12507
12508
|
ref: i,
|
|
12508
12509
|
type: e
|
|
12509
12510
|
}));
|
|
12510
12511
|
}
|
|
12511
|
-
const Xu = /* @__PURE__ */
|
|
12512
|
+
const Xu = /* @__PURE__ */ Jv("pie", go);
|
|
12512
12513
|
/*!
|
|
12513
12514
|
* chartjs-plugin-datalabels v2.2.0
|
|
12514
12515
|
* https://chartjs-plugin-datalabels.netlify.app
|
|
@@ -12584,7 +12585,7 @@ function Js(e, t) {
|
|
|
12584
12585
|
y: r ? o / r : -1
|
|
12585
12586
|
};
|
|
12586
12587
|
}
|
|
12587
|
-
function
|
|
12588
|
+
function qv(e, t, n, i, s) {
|
|
12588
12589
|
switch (s) {
|
|
12589
12590
|
case "center":
|
|
12590
12591
|
n = i = 0;
|
|
@@ -12617,12 +12618,12 @@ function Jv(e, t, n, i, s) {
|
|
|
12617
12618
|
vy: i
|
|
12618
12619
|
};
|
|
12619
12620
|
}
|
|
12620
|
-
var
|
|
12621
|
+
var Zv = 0, Gu = 1, Ju = 2, qu = 4, Zu = 8;
|
|
12621
12622
|
function pi(e, t, n) {
|
|
12622
|
-
var i =
|
|
12623
|
+
var i = Zv;
|
|
12623
12624
|
return e < n.left ? i |= Gu : e > n.right && (i |= Ju), t < n.top ? i |= Zu : t > n.bottom && (i |= qu), i;
|
|
12624
12625
|
}
|
|
12625
|
-
function
|
|
12626
|
+
function Qv(e, t) {
|
|
12626
12627
|
for (var n = e.x0, i = e.y0, s = e.x1, o = e.y1, r = pi(n, i, t), a = pi(s, o, t), l, c, u; !(!(r | a) || r & a); )
|
|
12627
12628
|
l = r || a, l & Zu ? (c = n + (s - n) * (t.top - i) / (o - i), u = t.top) : l & qu ? (c = n + (s - n) * (t.bottom - i) / (o - i), u = t.bottom) : l & Ju ? (u = i + (o - i) * (t.right - n) / (s - n), c = t.right) : l & Gu && (u = i + (o - i) * (t.left - n) / (s - n), c = t.left), l === r ? (n = c, i = u, r = pi(n, i, t)) : (s = c, o = u, a = pi(s, o, t));
|
|
12628
12629
|
return {
|
|
@@ -12634,7 +12635,7 @@ function Zv(e, t) {
|
|
|
12634
12635
|
}
|
|
12635
12636
|
function mi(e, t) {
|
|
12636
12637
|
var n = t.anchor, i = e, s, o;
|
|
12637
|
-
return t.clamp && (i =
|
|
12638
|
+
return t.clamp && (i = Qv(i, t.area)), n === "start" ? (s = i.x0, o = i.y0) : n === "end" ? (s = i.x1, o = i.y1) : (s = (i.x0 + i.x1) / 2, o = (i.y0 + i.y1) / 2), qv(s, o, e.vx, e.vy, t.align);
|
|
12638
12639
|
}
|
|
12639
12640
|
var bi = {
|
|
12640
12641
|
arc: function(e, t) {
|
|
@@ -12682,7 +12683,7 @@ var bi = {
|
|
|
12682
12683
|
}, t);
|
|
12683
12684
|
}
|
|
12684
12685
|
}, Gt = Pn.rasterize;
|
|
12685
|
-
function
|
|
12686
|
+
function t0(e) {
|
|
12686
12687
|
var t = e.borderWidth || 0, n = e.padding, i = e.size.height, s = e.size.width, o = -s / 2, r = -i / 2;
|
|
12687
12688
|
return {
|
|
12688
12689
|
frame: {
|
|
@@ -12699,7 +12700,7 @@ function Qv(e) {
|
|
|
12699
12700
|
}
|
|
12700
12701
|
};
|
|
12701
12702
|
}
|
|
12702
|
-
function
|
|
12703
|
+
function e0(e, t) {
|
|
12703
12704
|
var n = t.chart.getDatasetMeta(t.datasetIndex).vScale;
|
|
12704
12705
|
if (!n)
|
|
12705
12706
|
return null;
|
|
@@ -12708,10 +12709,10 @@ function t0(e, t) {
|
|
|
12708
12709
|
var i = n.getBasePixel();
|
|
12709
12710
|
return e.horizontal ? { x: i, y: null } : { x: null, y: i };
|
|
12710
12711
|
}
|
|
12711
|
-
function
|
|
12712
|
+
function n0(e) {
|
|
12712
12713
|
return e instanceof ye ? bi.arc : e instanceof Mi ? bi.point : e instanceof ki ? bi.bar : bi.fallback;
|
|
12713
12714
|
}
|
|
12714
|
-
function
|
|
12715
|
+
function i0(e, t, n, i, s, o) {
|
|
12715
12716
|
var r = Math.PI / 2;
|
|
12716
12717
|
if (o) {
|
|
12717
12718
|
var a = Math.min(o, s / 2, i / 2), l = t + a, c = n + a, u = t + i - a, d = n + s - a;
|
|
@@ -12719,9 +12720,9 @@ function n0(e, t, n, i, s, o) {
|
|
|
12719
12720
|
} else
|
|
12720
12721
|
e.rect(t, n, i, s);
|
|
12721
12722
|
}
|
|
12722
|
-
function
|
|
12723
|
+
function s0(e, t, n) {
|
|
12723
12724
|
var i = n.backgroundColor, s = n.borderColor, o = n.borderWidth;
|
|
12724
|
-
!i && (!s || !o) || (e.beginPath(),
|
|
12725
|
+
!i && (!s || !o) || (e.beginPath(), i0(
|
|
12725
12726
|
e,
|
|
12726
12727
|
Gt(t.x) + o / 2,
|
|
12727
12728
|
Gt(t.y) + o / 2,
|
|
@@ -12730,7 +12731,7 @@ function i0(e, t, n) {
|
|
|
12730
12731
|
n.borderRadius
|
|
12731
12732
|
), e.closePath(), i && (e.fillStyle = i, e.fill()), s && o && (e.strokeStyle = s, e.lineWidth = o, e.lineJoin = "miter", e.stroke()));
|
|
12732
12733
|
}
|
|
12733
|
-
function
|
|
12734
|
+
function o0(e, t, n) {
|
|
12734
12735
|
var i = n.lineHeight, s = e.w, o = e.x, r = e.y + i / 2;
|
|
12735
12736
|
return t === "center" ? o += s / 2 : (t === "end" || t === "right") && (o += s), {
|
|
12736
12737
|
h: i,
|
|
@@ -12739,15 +12740,15 @@ function s0(e, t, n) {
|
|
|
12739
12740
|
y: r
|
|
12740
12741
|
};
|
|
12741
12742
|
}
|
|
12742
|
-
function
|
|
12743
|
+
function r0(e, t, n) {
|
|
12743
12744
|
var i = e.shadowBlur, s = n.stroked, o = Gt(n.x), r = Gt(n.y), a = Gt(n.w);
|
|
12744
12745
|
s && e.strokeText(t, o, r, a), n.filled && (i && s && (e.shadowBlur = 0), e.fillText(t, o, r, a), i && s && (e.shadowBlur = i));
|
|
12745
12746
|
}
|
|
12746
|
-
function
|
|
12747
|
+
function a0(e, t, n, i) {
|
|
12747
12748
|
var s = i.textAlign, o = i.color, r = !!o, a = i.font, l = t.length, c = i.textStrokeColor, u = i.textStrokeWidth, d = c && u, f;
|
|
12748
12749
|
if (!(!l || !r && !d))
|
|
12749
|
-
for (n =
|
|
12750
|
-
|
|
12750
|
+
for (n = o0(n, s, a), e.font = a.string, e.textAlign = s, e.textBaseline = "middle", e.shadowBlur = i.textShadowBlur, e.shadowColor = i.textShadowColor, r && (e.fillStyle = o), d && (e.lineJoin = "round", e.lineWidth = u, e.strokeStyle = c), f = 0, l = t.length; f < l; ++f)
|
|
12751
|
+
r0(e, t[f], {
|
|
12751
12752
|
stroked: d,
|
|
12752
12753
|
filled: r,
|
|
12753
12754
|
w: n.w,
|
|
@@ -12781,9 +12782,9 @@ zt(Qu.prototype, {
|
|
|
12781
12782
|
lines: t,
|
|
12782
12783
|
offset: J([n.offset, 4], i, o),
|
|
12783
12784
|
opacity: J([n.opacity, 1], i, o),
|
|
12784
|
-
origin:
|
|
12785
|
+
origin: e0(s._el, i),
|
|
12785
12786
|
padding: lt(J([n.padding, 4], i, o)),
|
|
12786
|
-
positioner:
|
|
12787
|
+
positioner: n0(s._el),
|
|
12787
12788
|
rotation: J([n.rotation, 0], i, o) * (Math.PI / 180),
|
|
12788
12789
|
size: Pn.textSize(s._ctx, t, r),
|
|
12789
12790
|
textAlign: J([n.textAlign, "start"], i, o),
|
|
@@ -12795,7 +12796,7 @@ zt(Qu.prototype, {
|
|
|
12795
12796
|
},
|
|
12796
12797
|
update: function(e) {
|
|
12797
12798
|
var t = this, n = null, i = null, s = t._index, o = t._config, r, a, l, c = J([o.display, !0], e, s);
|
|
12798
|
-
c && (r = e.dataset.data[s], a = W(K(o.formatter, [r, e]), r), l = et(a) ? [] : Pn.toTextLines(a), l.length && (n = t._modelize(c, l, o, e), i =
|
|
12799
|
+
c && (r = e.dataset.data[s], a = W(K(o.formatter, [r, e]), r), l = et(a) ? [] : Pn.toTextLines(a), l.length && (n = t._modelize(c, l, o, e), i = t0(n))), t._model = n, t._rects = i;
|
|
12799
12800
|
},
|
|
12800
12801
|
geometry: function() {
|
|
12801
12802
|
return this._rects ? this._rects.frame : {};
|
|
@@ -12816,10 +12817,10 @@ zt(Qu.prototype, {
|
|
|
12816
12817
|
r.top,
|
|
12817
12818
|
r.right - r.left,
|
|
12818
12819
|
r.bottom - r.top
|
|
12819
|
-
), i.clip()), i.globalAlpha = Pn.bound(0, s.opacity, 1), i.translate(Gt(t.x), Gt(t.y)), i.rotate(s.rotation),
|
|
12820
|
+
), i.clip()), i.globalAlpha = Pn.bound(0, s.opacity, 1), i.translate(Gt(t.x), Gt(t.y)), i.rotate(s.rotation), s0(i, o.frame, s), a0(i, s.lines, o.text, s), i.restore());
|
|
12820
12821
|
}
|
|
12821
12822
|
});
|
|
12822
|
-
var
|
|
12823
|
+
var l0 = Number.MIN_SAFE_INTEGER || -9007199254740991, c0 = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
12823
12824
|
function gn(e, t, n) {
|
|
12824
12825
|
var i = Math.cos(n), s = Math.sin(n), o = t.x, r = t.y;
|
|
12825
12826
|
return {
|
|
@@ -12828,7 +12829,7 @@ function gn(e, t, n) {
|
|
|
12828
12829
|
};
|
|
12829
12830
|
}
|
|
12830
12831
|
function dl(e, t) {
|
|
12831
|
-
var n =
|
|
12832
|
+
var n = c0, i = l0, s = t.origin, o, r, a, l, c;
|
|
12832
12833
|
for (o = 0; o < e.length; ++o)
|
|
12833
12834
|
r = e[o], a = r.x - s.x, l = r.y - s.y, c = t.vx * a + t.vy * l, n = Math.min(n, c), i = Math.max(i, c);
|
|
12834
12835
|
return {
|
|
@@ -12911,18 +12912,18 @@ function ed(e, t, n) {
|
|
|
12911
12912
|
y: i.y + u
|
|
12912
12913
|
};
|
|
12913
12914
|
}
|
|
12914
|
-
function
|
|
12915
|
+
function u0(e, t) {
|
|
12915
12916
|
var n, i, s, o;
|
|
12916
12917
|
for (n = e.length - 1; n >= 0; --n)
|
|
12917
12918
|
for (s = e[n].$layout, i = n - 1; i >= 0 && s._visible; --i)
|
|
12918
12919
|
o = e[i].$layout, o._visible && s._box.intersects(o._box) && t(s, o);
|
|
12919
12920
|
return e;
|
|
12920
12921
|
}
|
|
12921
|
-
function
|
|
12922
|
+
function d0(e) {
|
|
12922
12923
|
var t, n, i, s, o, r, a;
|
|
12923
12924
|
for (t = 0, n = e.length; t < n; ++t)
|
|
12924
12925
|
i = e[t], s = i.$layout, s._visible && (a = new Proxy(i._el, { get: (l, c) => l.getProps([c], !0)[c] }), o = i.geometry(), r = ed(a, i.model(), o), s._box.update(r, o, i.rotation()));
|
|
12925
|
-
return
|
|
12926
|
+
return u0(e, function(l, c) {
|
|
12926
12927
|
var u = l._hidable, d = c._hidable;
|
|
12927
12928
|
u && d || d ? c._visible = !1 : u && (l._visible = !1);
|
|
12928
12929
|
});
|
|
@@ -12948,7 +12949,7 @@ var On = {
|
|
|
12948
12949
|
var t = !1, n, i, s, o, r;
|
|
12949
12950
|
for (n = 0, i = e.length; n < i; ++n)
|
|
12950
12951
|
s = e[n], o = s.model(), r = s.$layout, r._hidable = o && o.display === "auto", r._visible = s.visible(), t |= r._hidable;
|
|
12951
|
-
t &&
|
|
12952
|
+
t && d0(e);
|
|
12952
12953
|
},
|
|
12953
12954
|
lookup: function(e, t) {
|
|
12954
12955
|
var n, i;
|
|
@@ -12962,7 +12963,7 @@ var On = {
|
|
|
12962
12963
|
for (n = 0, i = t.length; n < i; ++n)
|
|
12963
12964
|
s = t[n], o = s.$layout, o._visible && (r = s.geometry(), a = ed(s._el, s.model(), r), o._box.update(a, r, s.rotation()), s.draw(e, a));
|
|
12964
12965
|
}
|
|
12965
|
-
},
|
|
12966
|
+
}, f0 = function(e) {
|
|
12966
12967
|
if (et(e))
|
|
12967
12968
|
return null;
|
|
12968
12969
|
var t = e, n, i, s;
|
|
@@ -12975,7 +12976,7 @@ var On = {
|
|
|
12975
12976
|
for (t = "", n = Object.keys(e), s = 0, i = n.length; s < i; ++s)
|
|
12976
12977
|
t += (s !== 0 ? ", " : "") + n[s] + ": " + e[n[s]];
|
|
12977
12978
|
return "" + t;
|
|
12978
|
-
},
|
|
12979
|
+
}, h0 = {
|
|
12979
12980
|
align: "center",
|
|
12980
12981
|
anchor: "center",
|
|
12981
12982
|
backgroundColor: null,
|
|
@@ -12993,7 +12994,7 @@ var On = {
|
|
|
12993
12994
|
style: void 0,
|
|
12994
12995
|
weight: null
|
|
12995
12996
|
},
|
|
12996
|
-
formatter:
|
|
12997
|
+
formatter: f0,
|
|
12997
12998
|
labels: void 0,
|
|
12998
12999
|
listeners: {},
|
|
12999
13000
|
offset: 4,
|
|
@@ -13011,7 +13012,7 @@ var On = {
|
|
|
13011
13012
|
textShadowBlur: 0,
|
|
13012
13013
|
textShadowColor: void 0
|
|
13013
13014
|
}, dt = "$datalabels", nd = "$default";
|
|
13014
|
-
function
|
|
13015
|
+
function g0(e, t) {
|
|
13015
13016
|
var n = e.datalabels, i = {}, s = [], o, r;
|
|
13016
13017
|
return n === !1 ? null : (n === !0 && (n = {}), t = zt({}, [t, n]), o = t.labels || {}, r = Object.keys(o), delete t.labels, r.length ? r.forEach(function(a) {
|
|
13017
13018
|
o[a] && s.push(zt({}, [
|
|
@@ -13034,27 +13035,27 @@ function yo(e, t, n, i) {
|
|
|
13034
13035
|
t[o._set] && (r = t[o._set][o._key], r && K(r, [s, i]) === !0 && (e[dt]._dirty = !0, n.update(s)));
|
|
13035
13036
|
}
|
|
13036
13037
|
}
|
|
13037
|
-
function
|
|
13038
|
+
function p0(e, t, n, i, s) {
|
|
13038
13039
|
var o, r;
|
|
13039
13040
|
!n && !i || (n ? i ? n !== i && (r = o = !0) : r = !0 : o = !0, r && yo(e, t.leave, n, s), o && yo(e, t.enter, i, s));
|
|
13040
13041
|
}
|
|
13041
|
-
function
|
|
13042
|
+
function m0(e, t) {
|
|
13042
13043
|
var n = e[dt], i = n._listeners, s, o;
|
|
13043
13044
|
if (!(!i.enter && !i.leave)) {
|
|
13044
13045
|
if (t.type === "mousemove")
|
|
13045
13046
|
o = On.lookup(n._labels, t);
|
|
13046
13047
|
else if (t.type !== "mouseout")
|
|
13047
13048
|
return;
|
|
13048
|
-
s = n._hovered, n._hovered = o,
|
|
13049
|
+
s = n._hovered, n._hovered = o, p0(e, i, s, o, t);
|
|
13049
13050
|
}
|
|
13050
13051
|
}
|
|
13051
|
-
function
|
|
13052
|
+
function b0(e, t) {
|
|
13052
13053
|
var n = e[dt], i = n._listeners.click, s = i && On.lookup(n._labels, t);
|
|
13053
13054
|
s && yo(e, i, s, t);
|
|
13054
13055
|
}
|
|
13055
13056
|
var id = {
|
|
13056
13057
|
id: "datalabels",
|
|
13057
|
-
defaults:
|
|
13058
|
+
defaults: h0,
|
|
13058
13059
|
beforeInit: function(e) {
|
|
13059
13060
|
e[dt] = {
|
|
13060
13061
|
_actives: []
|
|
@@ -13065,7 +13066,7 @@ var id = {
|
|
|
13065
13066
|
t._listened = !1, t._listeners = {}, t._datasets = [], t._labels = [];
|
|
13066
13067
|
},
|
|
13067
13068
|
afterDatasetUpdate: function(e, t, n) {
|
|
13068
|
-
var i = t.index, s = e[dt], o = s._datasets[i] = [], r = e.isDatasetVisible(i), a = e.data.datasets[i], l =
|
|
13069
|
+
var i = t.index, s = e[dt], o = s._datasets[i] = [], r = e.isDatasetVisible(i), a = e.data.datasets[i], l = g0(a, n), c = t.meta.data || [], u = e.ctx, d, f, h, p, g, m, b, x;
|
|
13069
13070
|
for (u.save(), d = 0, h = c.length; d < h; ++d)
|
|
13070
13071
|
if (b = c[d], b[dt] = [], r && b && e.getDataVisibility(d) && !b.skip)
|
|
13071
13072
|
for (f = 0, p = l.labels.length; f < p; ++f)
|
|
@@ -13100,10 +13101,10 @@ var id = {
|
|
|
13100
13101
|
switch (n.type) {
|
|
13101
13102
|
case "mousemove":
|
|
13102
13103
|
case "mouseout":
|
|
13103
|
-
|
|
13104
|
+
m0(e, n);
|
|
13104
13105
|
break;
|
|
13105
13106
|
case "click":
|
|
13106
|
-
|
|
13107
|
+
b0(e, n);
|
|
13107
13108
|
break;
|
|
13108
13109
|
}
|
|
13109
13110
|
}
|
|
@@ -13142,7 +13143,7 @@ const fl = {
|
|
|
13142
13143
|
* @return {AnnotationElement[]} - elements that are found (only 1 element)
|
|
13143
13144
|
*/
|
|
13144
13145
|
nearest(e, t, n) {
|
|
13145
|
-
return
|
|
13146
|
+
return v0(e, t, n);
|
|
13146
13147
|
},
|
|
13147
13148
|
/**
|
|
13148
13149
|
* x mode returns the elements that hit-test at the current x coordinate
|
|
@@ -13169,19 +13170,19 @@ const fl = {
|
|
|
13169
13170
|
function nr(e, t, n) {
|
|
13170
13171
|
return (fl.modes[n.mode] || fl.modes.nearest)(e, t, n);
|
|
13171
13172
|
}
|
|
13172
|
-
function
|
|
13173
|
+
function y0(e, t, n) {
|
|
13173
13174
|
return n !== "x" && n !== "y" ? e.inRange(t.x, t.y, "x", !0) || e.inRange(t.x, t.y, "y", !0) : e.inRange(t.x, t.y, n, !0);
|
|
13174
13175
|
}
|
|
13175
|
-
function
|
|
13176
|
+
function x0(e, t, n) {
|
|
13176
13177
|
return n === "x" ? { x: e.x, y: t.y } : n === "y" ? { x: t.x, y: e.y } : t;
|
|
13177
13178
|
}
|
|
13178
13179
|
function Pi(e, t, n) {
|
|
13179
|
-
return e.filter((i) => n.intersect ? i.inRange(t.x, t.y) :
|
|
13180
|
+
return e.filter((i) => n.intersect ? i.inRange(t.x, t.y) : y0(i, t, n.axis));
|
|
13180
13181
|
}
|
|
13181
|
-
function
|
|
13182
|
+
function v0(e, t, n) {
|
|
13182
13183
|
let i = Number.POSITIVE_INFINITY;
|
|
13183
13184
|
return Pi(e, t, n).reduce((s, o) => {
|
|
13184
|
-
const r = o.getCenterPoint(), a =
|
|
13185
|
+
const r = o.getCenterPoint(), a = x0(t, r, n.axis), l = ds(t, a);
|
|
13185
13186
|
return l < i ? (s = [o], i = l) : l === i && s.push(o), s;
|
|
13186
13187
|
}, []).sort((s, o) => s._index - o._index).slice(0, 1);
|
|
13187
13188
|
}
|
|
@@ -13192,13 +13193,13 @@ function Re(e, t, n) {
|
|
|
13192
13193
|
y: r + s * (e.x - o) + i * (e.y - r)
|
|
13193
13194
|
};
|
|
13194
13195
|
}
|
|
13195
|
-
const
|
|
13196
|
-
function
|
|
13196
|
+
const w0 = (e, t) => t > e || e.length > t.length && e.slice(0, t.length) === t, xe = 1e-3, ys = (e, t, n) => Math.min(n, Math.max(t, e)), sd = (e, t) => e.value >= e.start - t && e.value <= e.end + t;
|
|
13197
|
+
function _0(e, t, n) {
|
|
13197
13198
|
for (const i of Object.keys(e))
|
|
13198
13199
|
e[i] = ys(e[i], t, n);
|
|
13199
13200
|
return e;
|
|
13200
13201
|
}
|
|
13201
|
-
function
|
|
13202
|
+
function S0(e, t, n, i) {
|
|
13202
13203
|
return !e || !t || n <= 0 ? !1 : Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2) <= Math.pow(n + i, 2);
|
|
13203
13204
|
}
|
|
13204
13205
|
function od(e, { x: t, y: n, x2: i, y2: s }, o, { borderWidth: r, hitTolerance: a }) {
|
|
@@ -13213,14 +13214,14 @@ function Ae(e, t) {
|
|
|
13213
13214
|
const { centerX: n, centerY: i } = e.getProps(["centerX", "centerY"], t);
|
|
13214
13215
|
return { x: n, y: i };
|
|
13215
13216
|
}
|
|
13216
|
-
function
|
|
13217
|
+
function C0(e, t, n, i = !0) {
|
|
13217
13218
|
const s = n.split(".");
|
|
13218
13219
|
let o = 0;
|
|
13219
13220
|
for (const r of t.split(".")) {
|
|
13220
13221
|
const a = s[o++];
|
|
13221
13222
|
if (parseInt(r, 10) < parseInt(a, 10))
|
|
13222
13223
|
break;
|
|
13223
|
-
if (
|
|
13224
|
+
if (w0(a, r)) {
|
|
13224
13225
|
if (i)
|
|
13225
13226
|
throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);
|
|
13226
13227
|
return !1;
|
|
@@ -13228,7 +13229,7 @@ function S0(e, t, n, i = !0) {
|
|
|
13228
13229
|
}
|
|
13229
13230
|
return !0;
|
|
13230
13231
|
}
|
|
13231
|
-
const ad = (e) => typeof e == "string" && e.endsWith("%"), ld = (e) => parseFloat(e) / 100, cd = (e) => ys(ld(e), 0, 1), pn = (e, t) => ({ x: e, y: t, x2: e, y2: t, width: 0, height: 0 }),
|
|
13232
|
+
const ad = (e) => typeof e == "string" && e.endsWith("%"), ld = (e) => parseFloat(e) / 100, cd = (e) => ys(ld(e), 0, 1), pn = (e, t) => ({ x: e, y: t, x2: e, y2: t, width: 0, height: 0 }), M0 = {
|
|
13232
13233
|
box: (e) => pn(e.centerX, e.centerY),
|
|
13233
13234
|
doughnutLabel: (e) => pn(e.centerX, e.centerY),
|
|
13234
13235
|
ellipse: (e) => ({ centerX: e.centerX, centerY: e.centerX, radius: 0, width: 0, height: 0 }),
|
|
@@ -13243,7 +13244,7 @@ function ir(e, t) {
|
|
|
13243
13244
|
function de(e, t, n = !0) {
|
|
13244
13245
|
return typeof t == "number" ? t : ad(t) ? (n ? cd(t) : ld(t)) * e : e;
|
|
13245
13246
|
}
|
|
13246
|
-
function
|
|
13247
|
+
function k0(e, t) {
|
|
13247
13248
|
const { x: n, width: i } = e, s = t.textAlign;
|
|
13248
13249
|
return s === "center" ? n + i / 2 : s === "end" || s === "right" ? n + i : n;
|
|
13249
13250
|
}
|
|
@@ -13289,7 +13290,7 @@ function Ze(e, t, n) {
|
|
|
13289
13290
|
if (i === !0)
|
|
13290
13291
|
return pd(t, n);
|
|
13291
13292
|
} else return;
|
|
13292
|
-
return
|
|
13293
|
+
return P0(e, t, n);
|
|
13293
13294
|
}
|
|
13294
13295
|
function gd(e, t, n) {
|
|
13295
13296
|
let i = !1;
|
|
@@ -13299,16 +13300,16 @@ function gd(e, t, n) {
|
|
|
13299
13300
|
}
|
|
13300
13301
|
function pd(e, t) {
|
|
13301
13302
|
const n = t.type || "line";
|
|
13302
|
-
return
|
|
13303
|
+
return M0[n](e);
|
|
13303
13304
|
}
|
|
13304
|
-
function
|
|
13305
|
+
function P0(e, t, n) {
|
|
13305
13306
|
const i = K(n.init, [{ chart: e, properties: t, options: n }]);
|
|
13306
13307
|
if (i === !0)
|
|
13307
13308
|
return pd(t, n);
|
|
13308
13309
|
if (B(i))
|
|
13309
13310
|
return i;
|
|
13310
13311
|
}
|
|
13311
|
-
const qs = /* @__PURE__ */ new Map(),
|
|
13312
|
+
const qs = /* @__PURE__ */ new Map(), O0 = (e) => isNaN(e) || e <= 0, R0 = (e) => e.reduce(function(t, n) {
|
|
13312
13313
|
return t += n.string, t;
|
|
13313
13314
|
}, "");
|
|
13314
13315
|
function xs(e) {
|
|
@@ -13334,8 +13335,8 @@ function ws(e, t) {
|
|
|
13334
13335
|
width: de(n.width, t.width),
|
|
13335
13336
|
height: de(n.height, t.height)
|
|
13336
13337
|
};
|
|
13337
|
-
const i = fd(t), s = t.textStrokeWidth, o = q(n) ? n : [n], r = o.join() +
|
|
13338
|
-
return qs.has(r) || qs.set(r,
|
|
13338
|
+
const i = fd(t), s = t.textStrokeWidth, o = q(n) ? n : [n], r = o.join() + R0(i) + s + (e._measureText ? "-spriting" : "");
|
|
13339
|
+
return qs.has(r) || qs.set(r, T0(e, o, i, s)), qs.get(r);
|
|
13339
13340
|
}
|
|
13340
13341
|
function md(e, t, n) {
|
|
13341
13342
|
const { x: i, y: s, width: o, height: r } = t;
|
|
@@ -13346,32 +13347,32 @@ function md(e, t, n) {
|
|
|
13346
13347
|
y: s,
|
|
13347
13348
|
w: o,
|
|
13348
13349
|
h: r,
|
|
13349
|
-
radius:
|
|
13350
|
+
radius: _0(we(n.borderRadius), 0, Math.min(o, r) / 2)
|
|
13350
13351
|
}), e.closePath(), e.fill(), a && (e.shadowColor = n.borderShadowColor, e.stroke()), e.restore();
|
|
13351
13352
|
}
|
|
13352
13353
|
function bd(e, t, n, i) {
|
|
13353
13354
|
const s = n.content;
|
|
13354
13355
|
if (xs(s)) {
|
|
13355
|
-
e.save(), e.globalAlpha =
|
|
13356
|
+
e.save(), e.globalAlpha = N0(n.opacity, s.style.opacity), e.drawImage(s, t.x, t.y, t.width, t.height), e.restore();
|
|
13356
13357
|
return;
|
|
13357
13358
|
}
|
|
13358
|
-
const o = q(s) ? s : [s], r = fd(n, i), a = n.color, l = q(a) ? a : [a], c =
|
|
13359
|
-
e.save(), e.textBaseline = "middle", e.textAlign = n.textAlign,
|
|
13359
|
+
const o = q(s) ? s : [s], r = fd(n, i), a = n.color, l = q(a) ? a : [a], c = k0(t, n), u = t.y + n.textStrokeWidth / 2;
|
|
13360
|
+
e.save(), e.textBaseline = "middle", e.textAlign = n.textAlign, A0(e, n) && L0(e, { x: c, y: u }, o, r), I0(e, { x: c, y: u }, o, { fonts: r, colors: l }), e.restore();
|
|
13360
13361
|
}
|
|
13361
|
-
function
|
|
13362
|
+
function A0(e, t) {
|
|
13362
13363
|
if (t.textStrokeWidth > 0)
|
|
13363
13364
|
return e.lineJoin = "round", e.miterLimit = 2, e.lineWidth = t.textStrokeWidth, e.strokeStyle = t.textStrokeColor, !0;
|
|
13364
13365
|
}
|
|
13365
|
-
function
|
|
13366
|
+
function E0(e, t, n, i) {
|
|
13366
13367
|
const { radius: s, options: o } = t, r = o.pointStyle, a = o.rotation;
|
|
13367
13368
|
let l = (a || 0) * Yo;
|
|
13368
13369
|
if (xs(r)) {
|
|
13369
13370
|
e.save(), e.translate(n, i), e.rotate(l), e.drawImage(r, -r.width / 2, -r.height / 2, r.width, r.height), e.restore();
|
|
13370
13371
|
return;
|
|
13371
13372
|
}
|
|
13372
|
-
|
|
13373
|
+
O0(s) || D0(e, { x: n, y: i, radius: s, rotation: a, style: r, rad: l });
|
|
13373
13374
|
}
|
|
13374
|
-
function
|
|
13375
|
+
function D0(e, { x: t, y: n, radius: i, rotation: s, style: o, rad: r }) {
|
|
13375
13376
|
let a, l, c, u;
|
|
13376
13377
|
switch (e.beginPath(), o) {
|
|
13377
13378
|
// Default includes circle
|
|
@@ -13412,7 +13413,7 @@ function E0(e, { x: t, y: n, radius: i, rotation: s, style: o, rad: r }) {
|
|
|
13412
13413
|
}
|
|
13413
13414
|
e.fill();
|
|
13414
13415
|
}
|
|
13415
|
-
function
|
|
13416
|
+
function T0(e, t, n, i) {
|
|
13416
13417
|
e.save();
|
|
13417
13418
|
const s = t.length;
|
|
13418
13419
|
let o = 0, r = i;
|
|
@@ -13424,7 +13425,7 @@ function D0(e, t, n, i) {
|
|
|
13424
13425
|
}
|
|
13425
13426
|
return e.restore(), { width: o, height: r };
|
|
13426
13427
|
}
|
|
13427
|
-
function
|
|
13428
|
+
function L0(e, { x: t, y: n }, i, s) {
|
|
13428
13429
|
e.beginPath();
|
|
13429
13430
|
let o = 0;
|
|
13430
13431
|
i.forEach(function(r, a) {
|
|
@@ -13432,52 +13433,52 @@ function T0(e, { x: t, y: n }, i, s) {
|
|
|
13432
13433
|
e.font = l.string, e.strokeText(r, t, n + c / 2 + o), o += c;
|
|
13433
13434
|
}), e.stroke();
|
|
13434
13435
|
}
|
|
13435
|
-
function
|
|
13436
|
+
function I0(e, { x: t, y: n }, i, { fonts: s, colors: o }) {
|
|
13436
13437
|
let r = 0;
|
|
13437
13438
|
i.forEach(function(a, l) {
|
|
13438
13439
|
const c = o[Math.min(l, o.length - 1)], u = s[Math.min(l, s.length - 1)], d = u.lineHeight;
|
|
13439
13440
|
e.beginPath(), e.font = u.string, e.fillStyle = c, e.fillText(a, t, n + d / 2 + r), r += d, e.fill();
|
|
13440
13441
|
});
|
|
13441
13442
|
}
|
|
13442
|
-
function
|
|
13443
|
+
function N0(e, t) {
|
|
13443
13444
|
const n = Ye(e) ? e : t;
|
|
13444
13445
|
return Ye(n) ? ys(n, 0, 1) : 1;
|
|
13445
13446
|
}
|
|
13446
13447
|
const yd = ["left", "bottom", "top", "right"];
|
|
13447
|
-
function
|
|
13448
|
-
const { pointX: n, pointY: i, options: s } = t, o = s.callout, r = o && o.display &&
|
|
13449
|
-
if (!r ||
|
|
13448
|
+
function F0(e, t) {
|
|
13449
|
+
const { pointX: n, pointY: i, options: s } = t, o = s.callout, r = o && o.display && W0(t, o);
|
|
13450
|
+
if (!r || V0(t, o, r))
|
|
13450
13451
|
return;
|
|
13451
13452
|
if (e.save(), e.beginPath(), !Qt(e, o))
|
|
13452
13453
|
return e.restore();
|
|
13453
|
-
const { separatorStart: l, separatorEnd: c } =
|
|
13454
|
+
const { separatorStart: l, separatorEnd: c } = j0(t, r), { sideStart: u, sideEnd: d } = B0(t, r, l);
|
|
13454
13455
|
(o.margin > 0 || s.borderWidth === 0) && (e.moveTo(l.x, l.y), e.lineTo(c.x, c.y)), e.moveTo(u.x, u.y), e.lineTo(d.x, d.y);
|
|
13455
13456
|
const f = Re({ x: n, y: i }, t.getCenterPoint(), at(-t.rotation));
|
|
13456
13457
|
e.lineTo(f.x, f.y), e.stroke(), e.restore();
|
|
13457
13458
|
}
|
|
13458
|
-
function
|
|
13459
|
-
const { x: n, y: i, x2: s, y2: o } = e, r =
|
|
13459
|
+
function j0(e, t) {
|
|
13460
|
+
const { x: n, y: i, x2: s, y2: o } = e, r = $0(e, t);
|
|
13460
13461
|
let a, l;
|
|
13461
13462
|
return t === "left" || t === "right" ? (a = { x: n + r, y: i }, l = { x: a.x, y: o }) : (a = { x: n, y: i + r }, l = { x: s, y: a.y }), { separatorStart: a, separatorEnd: l };
|
|
13462
13463
|
}
|
|
13463
|
-
function
|
|
13464
|
+
function $0(e, t) {
|
|
13464
13465
|
const { width: n, height: i, options: s } = e, o = s.callout.margin + s.borderWidth / 2;
|
|
13465
13466
|
return t === "right" ? n + o : t === "bottom" ? i + o : -o;
|
|
13466
13467
|
}
|
|
13467
|
-
function
|
|
13468
|
-
const { y: i, width: s, height: o, options: r } = e, a = r.callout.start, l =
|
|
13468
|
+
function B0(e, t, n) {
|
|
13469
|
+
const { y: i, width: s, height: o, options: r } = e, a = r.callout.start, l = z0(t, r.callout);
|
|
13469
13470
|
let c, u;
|
|
13470
13471
|
return t === "left" || t === "right" ? (c = { x: n.x, y: i + de(o, a) }, u = { x: c.x + l, y: c.y }) : (c = { x: n.x + de(s, a), y: n.y }, u = { x: c.x, y: c.y + l }), { sideStart: c, sideEnd: u };
|
|
13471
13472
|
}
|
|
13472
|
-
function
|
|
13473
|
+
function z0(e, t) {
|
|
13473
13474
|
const n = t.side;
|
|
13474
13475
|
return e === "left" || e === "top" ? -n : n;
|
|
13475
13476
|
}
|
|
13476
|
-
function
|
|
13477
|
+
function W0(e, t) {
|
|
13477
13478
|
const n = t.position;
|
|
13478
|
-
return yd.includes(n) ? n :
|
|
13479
|
+
return yd.includes(n) ? n : H0(e, t);
|
|
13479
13480
|
}
|
|
13480
|
-
function
|
|
13481
|
+
function H0(e, t) {
|
|
13481
13482
|
const { x: n, y: i, x2: s, y2: o, width: r, height: a, pointX: l, pointY: c, centerX: u, centerY: d, rotation: f } = e, h = { x: u, y: d }, p = t.start, g = de(r, p), m = de(a, p), b = [n, n + g, n + g, s], x = [i + m, o, i, o], v = [];
|
|
13482
13483
|
for (let w = 0; w < 4; w++) {
|
|
13483
13484
|
const _ = Re({ x: b[w], y: x[w] }, h, at(f));
|
|
@@ -13488,7 +13489,7 @@ function W0(e, t) {
|
|
|
13488
13489
|
}
|
|
13489
13490
|
return v.sort((w, _) => w.distance - _.distance)[0].position;
|
|
13490
13491
|
}
|
|
13491
|
-
function
|
|
13492
|
+
function V0(e, t, n) {
|
|
13492
13493
|
const { pointX: i, pointY: s } = e, o = t.margin;
|
|
13493
13494
|
let r = i, a = s;
|
|
13494
13495
|
return n === "left" ? r += o : n === "right" ? r -= o : n === "top" ? a += o : n === "bottom" && (a -= o), e.inRange(r, a);
|
|
@@ -13558,22 +13559,22 @@ function wd(e, t) {
|
|
|
13558
13559
|
radius: i
|
|
13559
13560
|
};
|
|
13560
13561
|
}
|
|
13561
|
-
return
|
|
13562
|
+
return K0(e, t);
|
|
13562
13563
|
}
|
|
13563
|
-
function
|
|
13564
|
+
function Y0(e, t) {
|
|
13564
13565
|
const { scales: n, chartArea: i } = e, s = n[t.scaleID], o = { x: i.left, y: i.top, x2: i.right, y2: i.bottom };
|
|
13565
|
-
return s ?
|
|
13566
|
+
return s ? U0(s, o, t) : X0(n, o, t), o;
|
|
13566
13567
|
}
|
|
13567
13568
|
function _d(e, t) {
|
|
13568
13569
|
const n = or(e, t);
|
|
13569
13570
|
return n.initProperties = Ze(e, n, t), n.elements = [{
|
|
13570
13571
|
type: "label",
|
|
13571
13572
|
optionScope: "label",
|
|
13572
|
-
properties:
|
|
13573
|
+
properties: q0(e, n, t),
|
|
13573
13574
|
initProperties: n.initProperties
|
|
13574
13575
|
}], n;
|
|
13575
13576
|
}
|
|
13576
|
-
function
|
|
13577
|
+
function K0(e, t) {
|
|
13577
13578
|
const n = vd(e, t), i = t.radius * 2;
|
|
13578
13579
|
return {
|
|
13579
13580
|
x: n.x - t.radius + t.xAdjust,
|
|
@@ -13594,11 +13595,11 @@ function pl(e, t) {
|
|
|
13594
13595
|
end: Math.max(n.start, n.end)
|
|
13595
13596
|
};
|
|
13596
13597
|
}
|
|
13597
|
-
function
|
|
13598
|
+
function U0(e, t, n) {
|
|
13598
13599
|
const i = Ue(e, n.value, NaN), s = Ue(e, n.endValue, i);
|
|
13599
13600
|
e.isHorizontal() ? (t.x = i, t.x2 = s) : (t.y = i, t.y2 = s);
|
|
13600
13601
|
}
|
|
13601
|
-
function
|
|
13602
|
+
function X0(e, t, n) {
|
|
13602
13603
|
for (const i of Object.keys(gl)) {
|
|
13603
13604
|
const s = e[Pe(e, n, i)];
|
|
13604
13605
|
if (s) {
|
|
@@ -13607,7 +13608,7 @@ function U0(e, t, n) {
|
|
|
13607
13608
|
}
|
|
13608
13609
|
}
|
|
13609
13610
|
}
|
|
13610
|
-
function
|
|
13611
|
+
function G0({ properties: e, options: t }, n, i, s) {
|
|
13611
13612
|
const { x: o, x2: r, width: a } = e;
|
|
13612
13613
|
return Sd({ start: o, end: r, borderWidth: t.borderWidth }, {
|
|
13613
13614
|
position: i.x,
|
|
@@ -13616,7 +13617,7 @@ function X0({ properties: e, options: t }, n, i, s) {
|
|
|
13616
13617
|
size: n.width
|
|
13617
13618
|
});
|
|
13618
13619
|
}
|
|
13619
|
-
function
|
|
13620
|
+
function J0({ properties: e, options: t }, n, i, s) {
|
|
13620
13621
|
const { y: o, y2: r, height: a } = e;
|
|
13621
13622
|
return Sd({ start: o, end: r, borderWidth: t.borderWidth }, {
|
|
13622
13623
|
position: i.y,
|
|
@@ -13629,10 +13630,10 @@ function Sd(e, t) {
|
|
|
13629
13630
|
const { start: n, end: i, borderWidth: s } = e, { position: o, padding: { start: r, end: a }, adjust: l } = t, c = i - s - n - r - a - t.size;
|
|
13630
13631
|
return n + s / 2 + l + ir(c, o);
|
|
13631
13632
|
}
|
|
13632
|
-
function
|
|
13633
|
+
function q0(e, t, n) {
|
|
13633
13634
|
const i = n.label;
|
|
13634
13635
|
i.backgroundColor = "transparent", i.callout.display = !1;
|
|
13635
|
-
const s = sr(i.position), o = lt(i.padding), r = ws(e.ctx, i), a =
|
|
13636
|
+
const s = sr(i.position), o = lt(i.padding), r = ws(e.ctx, i), a = G0({ properties: t, options: n }, r, s, o), l = J0({ properties: t, options: n }, r, s, o), c = r.width + o.width, u = r.height + o.height;
|
|
13636
13637
|
return {
|
|
13637
13638
|
x: a,
|
|
13638
13639
|
y: l,
|
|
@@ -13646,7 +13647,7 @@ function J0(e, t, n) {
|
|
|
13646
13647
|
};
|
|
13647
13648
|
}
|
|
13648
13649
|
const xo = ["enter", "leave"], rr = xo.concat("click");
|
|
13649
|
-
function
|
|
13650
|
+
function Z0(e, t, n) {
|
|
13650
13651
|
t.listened = gd(n, rr, t.listeners), t.moveListened = !1, xo.forEach((i) => {
|
|
13651
13652
|
ht(n[i]) && (t.moveListened = !0);
|
|
13652
13653
|
}), (!t.listened || !t.moveListened) && t.annotations.forEach((i) => {
|
|
@@ -13655,17 +13656,17 @@ function q0(e, t, n) {
|
|
|
13655
13656
|
});
|
|
13656
13657
|
});
|
|
13657
13658
|
}
|
|
13658
|
-
function
|
|
13659
|
+
function Q0(e, t, n) {
|
|
13659
13660
|
if (e.listened)
|
|
13660
13661
|
switch (t.type) {
|
|
13661
13662
|
case "mousemove":
|
|
13662
13663
|
case "mouseout":
|
|
13663
|
-
return Q0(e, t, n);
|
|
13664
|
-
case "click":
|
|
13665
13664
|
return tw(e, t, n);
|
|
13665
|
+
case "click":
|
|
13666
|
+
return ew(e, t, n);
|
|
13666
13667
|
}
|
|
13667
13668
|
}
|
|
13668
|
-
function
|
|
13669
|
+
function tw(e, t, n) {
|
|
13669
13670
|
if (!e.moveListened)
|
|
13670
13671
|
return;
|
|
13671
13672
|
let i;
|
|
@@ -13682,7 +13683,7 @@ function ml({ state: e, event: t }, n, i, s) {
|
|
|
13682
13683
|
s.indexOf(r) < 0 && (o = Cd(r.options[n] || e.listeners[n], r, t) || o);
|
|
13683
13684
|
return o;
|
|
13684
13685
|
}
|
|
13685
|
-
function
|
|
13686
|
+
function ew(e, t, n) {
|
|
13686
13687
|
const i = e.listeners, s = nr(e.visibleElements, t, n.interaction);
|
|
13687
13688
|
let o;
|
|
13688
13689
|
for (const r of s)
|
|
@@ -13693,7 +13694,7 @@ function Cd(e, t, n) {
|
|
|
13693
13694
|
return K(e, [t.$context, n]) === !0;
|
|
13694
13695
|
}
|
|
13695
13696
|
const Ji = ["afterDraw", "beforeDraw"];
|
|
13696
|
-
function
|
|
13697
|
+
function nw(e, t, n) {
|
|
13697
13698
|
const i = t.visibleElements;
|
|
13698
13699
|
t.hooked = gd(n, Ji, t.hooks), t.hooked || i.forEach((s) => {
|
|
13699
13700
|
t.hooked || Ji.forEach((o) => {
|
|
@@ -13707,31 +13708,31 @@ function bl(e, t, n) {
|
|
|
13707
13708
|
return K(i, [t.$context]);
|
|
13708
13709
|
}
|
|
13709
13710
|
}
|
|
13710
|
-
function
|
|
13711
|
-
const i =
|
|
13711
|
+
function iw(e, t, n) {
|
|
13712
|
+
const i = lw(e.scales, t, n);
|
|
13712
13713
|
let s = yl(t, i, "min", "suggestedMin");
|
|
13713
13714
|
s = yl(t, i, "max", "suggestedMax") || s, s && ht(t.handleTickRangeOptions) && t.handleTickRangeOptions();
|
|
13714
13715
|
}
|
|
13715
|
-
function
|
|
13716
|
+
function sw(e, t) {
|
|
13716
13717
|
for (const n of e)
|
|
13717
|
-
|
|
13718
|
+
rw(n, t);
|
|
13718
13719
|
}
|
|
13719
13720
|
function yl(e, t, n, i) {
|
|
13720
|
-
if (Et(t[n]) && !
|
|
13721
|
+
if (Et(t[n]) && !ow(e.options, n, i)) {
|
|
13721
13722
|
const s = e[n] !== t[n];
|
|
13722
13723
|
return e[n] = t[n], s;
|
|
13723
13724
|
}
|
|
13724
13725
|
}
|
|
13725
|
-
function
|
|
13726
|
+
function ow(e, t, n) {
|
|
13726
13727
|
return Ct(e[t]) || Ct(e[n]);
|
|
13727
13728
|
}
|
|
13728
|
-
function
|
|
13729
|
+
function rw(e, t) {
|
|
13729
13730
|
for (const n of ["scaleID", "xScaleID", "yScaleID"]) {
|
|
13730
13731
|
const i = Pe(t, e, n);
|
|
13731
|
-
i && !t[i] &&
|
|
13732
|
+
i && !t[i] && aw(e, n) && console.warn(`No scale found with id '${i}' for annotation '${e.id}'`);
|
|
13732
13733
|
}
|
|
13733
13734
|
}
|
|
13734
|
-
function
|
|
13735
|
+
function aw(e, t) {
|
|
13735
13736
|
if (t === "scaleID")
|
|
13736
13737
|
return !0;
|
|
13737
13738
|
const n = t.charAt(0);
|
|
@@ -13740,7 +13741,7 @@ function rw(e, t) {
|
|
|
13740
13741
|
return !0;
|
|
13741
13742
|
return !1;
|
|
13742
13743
|
}
|
|
13743
|
-
function
|
|
13744
|
+
function lw(e, t, n) {
|
|
13744
13745
|
const i = t.axis, s = t.id, o = i + "ScaleID", r = {
|
|
13745
13746
|
min: W(t.min, Number.NEGATIVE_INFINITY),
|
|
13746
13747
|
max: W(t.max, Number.POSITIVE_INFINITY)
|
|
@@ -13856,15 +13857,15 @@ class _s extends bt {
|
|
|
13856
13857
|
}
|
|
13857
13858
|
draw(t) {
|
|
13858
13859
|
const n = this.options;
|
|
13859
|
-
!n.display || !n.content || (
|
|
13860
|
+
!n.display || !n.content || (gw(t, this), t.save(), vs(t, this.getCenterPoint(), this.rotation), bd(t, this, n, this._fitRatio), t.restore());
|
|
13860
13861
|
}
|
|
13861
13862
|
resolveElementProperties(t, n) {
|
|
13862
|
-
const i =
|
|
13863
|
+
const i = cw(t, n);
|
|
13863
13864
|
if (!i)
|
|
13864
13865
|
return {};
|
|
13865
|
-
const { controllerMeta: s, point: o, radius: r } =
|
|
13866
|
+
const { controllerMeta: s, point: o, radius: r } = dw(t, n, i);
|
|
13866
13867
|
let a = ws(t.ctx, n);
|
|
13867
|
-
const l =
|
|
13868
|
+
const l = fw(a, r);
|
|
13868
13869
|
dd(n, l) && (a = { width: a.width * l, height: a.height * l });
|
|
13869
13870
|
const { position: c, xAdjust: u, yAdjust: d } = n, f = ud(o, a, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
|
|
13870
13871
|
return {
|
|
@@ -13916,20 +13917,20 @@ _s.defaults = {
|
|
|
13916
13917
|
yAdjust: 0
|
|
13917
13918
|
};
|
|
13918
13919
|
_s.defaultRoutes = {};
|
|
13919
|
-
function
|
|
13920
|
+
function cw(e, t) {
|
|
13920
13921
|
return e.getSortedVisibleDatasetMetas().reduce(function(n, i) {
|
|
13921
13922
|
const s = i.controller;
|
|
13922
|
-
return s instanceof $e &&
|
|
13923
|
+
return s instanceof $e && uw(e, t, i.data) && (!n || s.innerRadius < n.controller.innerRadius) && s.options.circumference >= 90 ? i : n;
|
|
13923
13924
|
}, void 0);
|
|
13924
13925
|
}
|
|
13925
|
-
function
|
|
13926
|
+
function uw(e, t, n) {
|
|
13926
13927
|
if (!t.autoHide)
|
|
13927
13928
|
return !0;
|
|
13928
13929
|
for (let i = 0; i < n.length; i++)
|
|
13929
13930
|
if (!n[i].hidden && e.getDataVisibility(i))
|
|
13930
13931
|
return !0;
|
|
13931
13932
|
}
|
|
13932
|
-
function
|
|
13933
|
+
function dw({ chartArea: e }, t, n) {
|
|
13933
13934
|
const { left: i, top: s, right: o, bottom: r } = e, { innerRadius: a, offsetX: l, offsetY: c } = n.controller, u = (i + o) / 2 + l, d = (s + r) / 2 + c, f = {
|
|
13934
13935
|
left: Math.max(u - a, i),
|
|
13935
13936
|
right: Math.min(u + a, o),
|
|
@@ -13938,7 +13939,7 @@ function uw({ chartArea: e }, t, n) {
|
|
|
13938
13939
|
}, h = {
|
|
13939
13940
|
x: (f.left + f.right) / 2,
|
|
13940
13941
|
y: (f.top + f.bottom) / 2
|
|
13941
|
-
}, p = t.spacing + t.borderWidth / 2, g = a - p, m = h.y > d, b = m ? s + p : r - p, x =
|
|
13942
|
+
}, p = t.spacing + t.borderWidth / 2, g = a - p, m = h.y > d, b = m ? s + p : r - p, x = hw(b, u, d, g);
|
|
13942
13943
|
return {
|
|
13943
13944
|
controllerMeta: {
|
|
13944
13945
|
_centerX: u,
|
|
@@ -13951,11 +13952,11 @@ function uw({ chartArea: e }, t, n) {
|
|
|
13951
13952
|
radius: Math.min(a, Math.min(f.right - f.left, f.bottom - f.top) / 2)
|
|
13952
13953
|
};
|
|
13953
13954
|
}
|
|
13954
|
-
function
|
|
13955
|
+
function fw({ width: e, height: t }, n) {
|
|
13955
13956
|
const i = Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
|
|
13956
13957
|
return n * 2 / i;
|
|
13957
13958
|
}
|
|
13958
|
-
function
|
|
13959
|
+
function hw(e, t, n, i) {
|
|
13959
13960
|
const s = Math.pow(n - e, 2), o = Math.pow(i, 2), r = t * -2, a = Math.pow(t, 2) + s - o, l = Math.pow(r, 2) - 4 * a;
|
|
13960
13961
|
if (l <= 0)
|
|
13961
13962
|
return {
|
|
@@ -13968,7 +13969,7 @@ function fw(e, t, n, i) {
|
|
|
13968
13969
|
_endAngle: Hi({ x: t, y: n }, { x: u, y: e }).angle
|
|
13969
13970
|
};
|
|
13970
13971
|
}
|
|
13971
|
-
function
|
|
13972
|
+
function gw(e, t) {
|
|
13972
13973
|
const { _centerX: n, _centerY: i, _radius: s, _startAngle: o, _endAngle: r, _counterclockwise: a, options: l } = t;
|
|
13973
13974
|
e.save();
|
|
13974
13975
|
const c = Qt(e, l);
|
|
@@ -13988,7 +13989,7 @@ class Kn extends bt {
|
|
|
13988
13989
|
}
|
|
13989
13990
|
draw(t) {
|
|
13990
13991
|
const n = this.options, i = !Ct(this._visible) || this._visible;
|
|
13991
|
-
!n.display || !n.content || !i || (t.save(), vs(t, this.getCenterPoint(), this.rotation),
|
|
13992
|
+
!n.display || !n.content || !i || (t.save(), vs(t, this.getCenterPoint(), this.rotation), F0(t, this), md(t, this, n), bd(t, pw(this), n), t.restore());
|
|
13992
13993
|
}
|
|
13993
13994
|
resolveElementProperties(t, n) {
|
|
13994
13995
|
let i;
|
|
@@ -14072,7 +14073,7 @@ Kn.defaults = {
|
|
|
14072
14073
|
Kn.defaultRoutes = {
|
|
14073
14074
|
borderColor: "color"
|
|
14074
14075
|
};
|
|
14075
|
-
function
|
|
14076
|
+
function pw({ x: e, y: t, width: n, height: i, options: s }) {
|
|
14076
14077
|
const o = s.borderWidth / 2, r = lt(s.padding);
|
|
14077
14078
|
return {
|
|
14078
14079
|
x: e + r.left + o,
|
|
@@ -14081,7 +14082,7 @@ function gw({ x: e, y: t, width: n, height: i, options: s }) {
|
|
|
14081
14082
|
height: i - r.top - r.bottom - s.borderWidth
|
|
14082
14083
|
};
|
|
14083
14084
|
}
|
|
14084
|
-
const ar = (e, t, n) => ({ x: e.x + n * (t.x - e.x), y: e.y + n * (t.y - e.y) }), vo = (e, t, n) => ar(t, n, Math.abs((e - t.y) / (n.y - t.y))).x, vl = (e, t, n) => ar(t, n, Math.abs((e - t.x) / (n.x - t.x))).y, wn = (e) => e * e,
|
|
14085
|
+
const ar = (e, t, n) => ({ x: e.x + n * (t.x - e.x), y: e.y + n * (t.y - e.y) }), vo = (e, t, n) => ar(t, n, Math.abs((e - t.y) / (n.y - t.y))).x, vl = (e, t, n) => ar(t, n, Math.abs((e - t.x) / (n.x - t.x))).y, wn = (e) => e * e, mw = (e, t, { x: n, y: i, x2: s, y2: o }, r) => r === "y" ? { start: Math.min(i, o), end: Math.max(i, o), value: t } : { start: Math.min(n, s), end: Math.max(n, s), value: e }, wl = (e, t, n, i) => (1 - i) * (1 - i) * e + 2 * (1 - i) * i * t + i * i * n, wo = (e, t, n, i) => ({ x: wl(e.x, t.x, n.x, i), y: wl(e.y, t.y, n.y, i) }), _l = (e, t, n, i) => 2 * (1 - i) * (t - e) + 2 * i * (n - t), Sl = (e, t, n, i) => -Math.atan2(_l(e.x, t.x, n.x, i), _l(e.y, t.y, n.y, i)) + 0.5 * z;
|
|
14085
14086
|
class Un extends bt {
|
|
14086
14087
|
inRange(t, n, i, s) {
|
|
14087
14088
|
const o = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
@@ -14093,9 +14094,9 @@ class Un extends bt {
|
|
|
14093
14094
|
return l.restore(), h;
|
|
14094
14095
|
}
|
|
14095
14096
|
const c = wn(o);
|
|
14096
|
-
return
|
|
14097
|
+
return vw(this, r, c, s) || _o(this, r, s);
|
|
14097
14098
|
}
|
|
14098
|
-
return
|
|
14099
|
+
return bw(this, { mouseX: t, mouseY: n }, i, { hitSize: o, useFinalPosition: s });
|
|
14099
14100
|
}
|
|
14100
14101
|
getCenterPoint(t) {
|
|
14101
14102
|
return Ae(this, t);
|
|
@@ -14107,7 +14108,7 @@ class Un extends bt {
|
|
|
14107
14108
|
Qe(t, a);
|
|
14108
14109
|
const l = Math.sqrt(Math.pow(s - n, 2) + Math.pow(o - i, 2));
|
|
14109
14110
|
if (a.curve && r)
|
|
14110
|
-
return
|
|
14111
|
+
return Ow(t, this, r, l), t.restore();
|
|
14111
14112
|
const { startOpts: c, endOpts: u, startAdjust: d, endAdjust: f } = Md(this), h = Math.atan2(o - i, s - n);
|
|
14112
14113
|
t.translate(n, i), t.rotate(h), t.beginPath(), t.moveTo(0 + d, 0), t.lineTo(l - f, 0), t.shadowColor = a.borderShadowColor, t.stroke(), So(t, 0, d, c), So(t, l, -f, u), t.restore();
|
|
14113
14114
|
}
|
|
@@ -14115,12 +14116,12 @@ class Un extends bt {
|
|
|
14115
14116
|
return this.elements && this.elements[0];
|
|
14116
14117
|
}
|
|
14117
14118
|
resolveElementProperties(t, n) {
|
|
14118
|
-
const i =
|
|
14119
|
+
const i = Y0(t, n), { x: s, y: o, x2: r, y2: a } = i, l = yw(i, t.chartArea), c = l ? xw({ x: s, y: o }, { x: r, y: a }, t.chartArea) : { x: s, y: o, x2: r, y2: a, width: Math.abs(r - s), height: Math.abs(a - o) };
|
|
14119
14120
|
if (c.centerX = (r + s) / 2, c.centerY = (a + o) / 2, c.initProperties = Ze(t, c, n), n.curve) {
|
|
14120
14121
|
const d = { x: c.x, y: c.y }, f = { x: c.x2, y: c.y2 };
|
|
14121
|
-
c.cp =
|
|
14122
|
+
c.cp = Pw(c, n, ds(d, f));
|
|
14122
14123
|
}
|
|
14123
|
-
const u =
|
|
14124
|
+
const u = ww(t, c, n.label);
|
|
14124
14125
|
return u._visible = l, c.elements = [{
|
|
14125
14126
|
type: "label",
|
|
14126
14127
|
optionScope: "label",
|
|
@@ -14235,21 +14236,21 @@ Un.descriptors = {
|
|
|
14235
14236
|
Un.defaultRoutes = {
|
|
14236
14237
|
borderColor: "color"
|
|
14237
14238
|
};
|
|
14238
|
-
function
|
|
14239
|
-
const r =
|
|
14239
|
+
function bw(e, { mouseX: t, mouseY: n }, i, { hitSize: s, useFinalPosition: o }) {
|
|
14240
|
+
const r = mw(t, n, e.getProps(["x", "y", "x2", "y2"], o), i);
|
|
14240
14241
|
return sd(r, s) || _o(e, { mouseX: t, mouseY: n }, o, i);
|
|
14241
14242
|
}
|
|
14242
|
-
function
|
|
14243
|
+
function yw({ x: e, y: t, x2: n, y2: i }, { top: s, right: o, bottom: r, left: a }) {
|
|
14243
14244
|
return !(e < a && n < a || e > o && n > o || t < s && i < s || t > r && i > r);
|
|
14244
14245
|
}
|
|
14245
14246
|
function Ml({ x: e, y: t }, n, { top: i, right: s, bottom: o, left: r }) {
|
|
14246
14247
|
return e < r && (t = vl(r, { x: e, y: t }, n), e = r), e > s && (t = vl(s, { x: e, y: t }, n), e = s), t < i && (e = vo(i, { x: e, y: t }, n), t = i), t > o && (e = vo(o, { x: e, y: t }, n), t = o), { x: e, y: t };
|
|
14247
14248
|
}
|
|
14248
|
-
function
|
|
14249
|
+
function xw(e, t, n) {
|
|
14249
14250
|
const { x: i, y: s } = Ml(e, t, n), { x: o, y: r } = Ml(t, e, n);
|
|
14250
14251
|
return { x: i, y: s, x2: o, y2: r, width: Math.abs(o - i), height: Math.abs(r - s) };
|
|
14251
14252
|
}
|
|
14252
|
-
function
|
|
14253
|
+
function vw(e, { mouseX: t, mouseY: n }, i = xe, s) {
|
|
14253
14254
|
const { x: o, y: r, x2: a, y2: l } = e.getProps(["x", "y", "x2", "y2"], s), c = a - o, u = l - r, d = wn(c) + wn(u), f = d === 0 ? -1 : ((t - o) * c + (n - r) * u) / d;
|
|
14254
14255
|
let h, p;
|
|
14255
14256
|
return f < 0 ? (h = o, p = r) : f > 1 ? (h = a, p = l) : (h = o + f * c, p = r + f * u), wn(t - h) + wn(n - p) <= i;
|
|
@@ -14258,16 +14259,16 @@ function _o(e, { mouseX: t, mouseY: n }, i, s) {
|
|
|
14258
14259
|
const o = e.label;
|
|
14259
14260
|
return o.options.display && o.inRange(t, n, s, i);
|
|
14260
14261
|
}
|
|
14261
|
-
function
|
|
14262
|
+
function ww(e, t, n) {
|
|
14262
14263
|
const i = n.borderWidth, s = lt(n.padding), o = ws(e.ctx, n), r = o.width + s.width + i, a = o.height + s.height + i;
|
|
14263
|
-
return
|
|
14264
|
+
return Sw(t, n, { width: r, height: a, padding: s }, e.chartArea);
|
|
14264
14265
|
}
|
|
14265
|
-
function
|
|
14266
|
+
function _w(e) {
|
|
14266
14267
|
const { x: t, y: n, x2: i, y2: s } = e, o = Math.atan2(s - n, i - t);
|
|
14267
14268
|
return o > z / 2 ? o - z : o < z / -2 ? o + z : o;
|
|
14268
14269
|
}
|
|
14269
|
-
function
|
|
14270
|
-
const { width: s, height: o, padding: r } = n, { xAdjust: a, yAdjust: l } = t, c = { x: e.x, y: e.y }, u = { x: e.x2, y: e.y2 }, d = t.rotation === "auto" ?
|
|
14270
|
+
function Sw(e, t, n, i) {
|
|
14271
|
+
const { width: s, height: o, padding: r } = n, { xAdjust: a, yAdjust: l } = t, c = { x: e.x, y: e.y }, u = { x: e.x2, y: e.y2 }, d = t.rotation === "auto" ? _w(e) : at(t.rotation), f = Cw(s, o, d), h = Mw(e, t, { labelSize: f, padding: r }, i), p = e.cp ? wo(c, e.cp, u, h) : ar(c, u, h), g = { size: f.w, min: i.left, max: i.right, padding: r.left }, m = { size: f.h, min: i.top, max: i.bottom, padding: r.top }, b = Pl(p.x, g) + a, x = Pl(p.y, m) + l;
|
|
14271
14272
|
return {
|
|
14272
14273
|
x: b - s / 2,
|
|
14273
14274
|
y: x - o / 2,
|
|
@@ -14282,23 +14283,23 @@ function _w(e, t, n, i) {
|
|
|
14282
14283
|
rotation: mu(d)
|
|
14283
14284
|
};
|
|
14284
14285
|
}
|
|
14285
|
-
function
|
|
14286
|
+
function Cw(e, t, n) {
|
|
14286
14287
|
const i = Math.cos(n), s = Math.sin(n);
|
|
14287
14288
|
return {
|
|
14288
14289
|
w: Math.abs(e * i) + Math.abs(t * s),
|
|
14289
14290
|
h: Math.abs(e * s) + Math.abs(t * i)
|
|
14290
14291
|
};
|
|
14291
14292
|
}
|
|
14292
|
-
function
|
|
14293
|
+
function Mw(e, t, n, i) {
|
|
14293
14294
|
let s;
|
|
14294
|
-
const o =
|
|
14295
|
+
const o = kw(e, i);
|
|
14295
14296
|
return t.position === "start" ? s = kl({ w: e.x2 - e.x, h: e.y2 - e.y }, n, t, o) : t.position === "end" ? s = 1 - kl({ w: e.x - e.x2, h: e.y - e.y2 }, n, t, o) : s = ir(1, t.position), s;
|
|
14296
14297
|
}
|
|
14297
14298
|
function kl(e, t, n, i) {
|
|
14298
14299
|
const { labelSize: s, padding: o } = t, r = e.w * i.dx, a = e.h * i.dy, l = r > 0 && (s.w / 2 + o.left - i.x) / r, c = a > 0 && (s.h / 2 + o.top - i.y) / a;
|
|
14299
14300
|
return ys(Math.max(l, c), 0, 0.25);
|
|
14300
14301
|
}
|
|
14301
|
-
function
|
|
14302
|
+
function kw(e, t) {
|
|
14302
14303
|
const { x: n, x2: i, y: s, y2: o } = e, r = Math.min(s, o) - t.top, a = Math.min(n, i) - t.left, l = t.bottom - Math.max(s, o), c = t.right - Math.max(n, i);
|
|
14303
14304
|
return {
|
|
14304
14305
|
x: Math.min(a, c),
|
|
@@ -14332,7 +14333,7 @@ function So(e, t, n, i) {
|
|
|
14332
14333
|
const { length: s, width: o, fill: r, backgroundColor: a, borderColor: l } = i, c = Math.abs(t - s) + n;
|
|
14333
14334
|
e.beginPath(), Qe(e, i), Qt(e, i), e.moveTo(c, -o), e.lineTo(t + n, 0), e.lineTo(c, o), r === !0 ? (e.fillStyle = a || l, e.closePath(), e.fill(), e.shadowColor = "transparent") : e.shadowColor = i.borderShadowColor, e.stroke();
|
|
14334
14335
|
}
|
|
14335
|
-
function
|
|
14336
|
+
function Pw(e, t, n) {
|
|
14336
14337
|
const { x: i, y: s, x2: o, y2: r, centerX: a, centerY: l } = e, c = Math.atan2(r - s, o - i), u = sr(t.controlPoint, 0), d = {
|
|
14337
14338
|
x: a + de(n, u.x, !1),
|
|
14338
14339
|
y: l + de(n, u.y, !1)
|
|
@@ -14342,7 +14343,7 @@ function kw(e, t, n) {
|
|
|
14342
14343
|
function Rl(e, { x: t, y: n }, { angle: i, adjust: s }, o) {
|
|
14343
14344
|
!o || !o.display || (e.save(), e.translate(t, n), e.rotate(i), So(e, 0, -s, o), e.restore());
|
|
14344
14345
|
}
|
|
14345
|
-
function
|
|
14346
|
+
function Ow(e, t, n, i) {
|
|
14346
14347
|
const { x: s, y: o, x2: r, y2: a, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: f } = Md(t), h = { x: s, y: o }, p = { x: r, y: a }, g = Sl(h, n, p, 0), m = Sl(h, n, p, 1) - z, b = wo(h, n, p, d / i), x = wo(h, n, p, 1 - f / i), v = new Path2D();
|
|
14347
14348
|
e.beginPath(), v.moveTo(b.x, b.y), v.quadraticCurveTo(n.x, n.y, x.x, x.y), e.shadowColor = l.borderShadowColor, e.stroke(v), t.path = v, t.ctx = e, Rl(e, b, { angle: g, adjust: d }, c), Rl(e, x, { angle: m, adjust: f }, u);
|
|
14348
14349
|
}
|
|
@@ -14350,7 +14351,7 @@ class Xn extends bt {
|
|
|
14350
14351
|
inRange(t, n, i, s) {
|
|
14351
14352
|
const o = this.options.rotation, r = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
14352
14353
|
if (i !== "x" && i !== "y")
|
|
14353
|
-
return
|
|
14354
|
+
return Rw({ x: t, y: n }, this.getProps(["width", "height", "centerX", "centerY"], s), o, r);
|
|
14354
14355
|
const { x: a, y: l, x2: c, y2: u } = this.getProps(["x", "y", "x2", "y2"], s), d = i === "y" ? { start: l, end: u } : { start: a, end: c }, f = Re({ x: t, y: n }, this.getCenterPoint(s), at(-o));
|
|
14355
14356
|
return f[i] >= d.start - r - xe && f[i] <= d.end + r + xe;
|
|
14356
14357
|
}
|
|
@@ -14403,7 +14404,7 @@ Xn.descriptors = {
|
|
|
14403
14404
|
_fallback: !0
|
|
14404
14405
|
}
|
|
14405
14406
|
};
|
|
14406
|
-
function
|
|
14407
|
+
function Rw(e, t, n, i) {
|
|
14407
14408
|
const { width: s, height: o, centerX: r, centerY: a } = t, l = s / 2, c = o / 2;
|
|
14408
14409
|
if (l <= 0 || c <= 0)
|
|
14409
14410
|
return !1;
|
|
@@ -14413,7 +14414,7 @@ function Ow(e, t, n, i) {
|
|
|
14413
14414
|
class Ss extends bt {
|
|
14414
14415
|
inRange(t, n, i, s) {
|
|
14415
14416
|
const { x: o, y: r, x2: a, y2: l, width: c } = this.getProps(["x", "y", "x2", "y2", "width"], s), u = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
14416
|
-
return i !== "x" && i !== "y" ?
|
|
14417
|
+
return i !== "x" && i !== "y" ? S0({ x: t, y: n }, this.getCenterPoint(s), c / 2, u) : sd(i === "y" ? { start: r, end: l, value: n } : { start: o, end: a, value: t }, u);
|
|
14417
14418
|
}
|
|
14418
14419
|
getCenterPoint(t) {
|
|
14419
14420
|
return Ae(this, t);
|
|
@@ -14424,7 +14425,7 @@ class Ss extends bt {
|
|
|
14424
14425
|
return;
|
|
14425
14426
|
t.save(), t.fillStyle = n.backgroundColor, Qe(t, n);
|
|
14426
14427
|
const s = Qt(t, n);
|
|
14427
|
-
|
|
14428
|
+
E0(t, this, this.centerX, this.centerY), s && !xs(n.pointStyle) && (t.shadowColor = n.borderShadowColor, t.stroke()), t.restore(), n.borderWidth = i;
|
|
14428
14429
|
}
|
|
14429
14430
|
resolveElementProperties(t, n) {
|
|
14430
14431
|
const i = wd(t, n);
|
|
@@ -14467,7 +14468,7 @@ Ss.defaultRoutes = {
|
|
|
14467
14468
|
class Cs extends bt {
|
|
14468
14469
|
inRange(t, n, i, s) {
|
|
14469
14470
|
if (i !== "x" && i !== "y")
|
|
14470
|
-
return this.options.radius >= 0.1 && this.elements.length > 1 &&
|
|
14471
|
+
return this.options.radius >= 0.1 && this.elements.length > 1 && Ew(this.elements, t, n, s);
|
|
14471
14472
|
const o = Re({ x: t, y: n }, this.getCenterPoint(s), at(-this.options.rotation)), r = this.elements.map((c) => i === "y" ? c.bY : c.bX), a = Math.min(...r), l = Math.max(...r);
|
|
14472
14473
|
return o[i] >= a && o[i] <= l;
|
|
14473
14474
|
}
|
|
@@ -14487,7 +14488,7 @@ class Cs extends bt {
|
|
|
14487
14488
|
const i = wd(t, n), { sides: s, rotation: o } = n, r = [], a = 2 * z / s;
|
|
14488
14489
|
let l = o * Yo;
|
|
14489
14490
|
for (let c = 0; c < s; c++, l += a) {
|
|
14490
|
-
const u =
|
|
14491
|
+
const u = Aw(i, n, l);
|
|
14491
14492
|
u.initProperties = Ze(t, i, n), r.push(u);
|
|
14492
14493
|
}
|
|
14493
14494
|
return i.elements = r, i;
|
|
@@ -14531,7 +14532,7 @@ Cs.defaultRoutes = {
|
|
|
14531
14532
|
borderColor: "color",
|
|
14532
14533
|
backgroundColor: "color"
|
|
14533
14534
|
};
|
|
14534
|
-
function
|
|
14535
|
+
function Aw({ centerX: e, centerY: t }, { radius: n, borderWidth: i, hitTolerance: s }, o) {
|
|
14535
14536
|
const r = (i + s) / 2, a = Math.sin(o), l = Math.cos(o), c = { x: e + a * n, y: t - l * n };
|
|
14536
14537
|
return {
|
|
14537
14538
|
type: "point",
|
|
@@ -14546,7 +14547,7 @@ function Rw({ centerX: e, centerY: t }, { radius: n, borderWidth: i, hitToleranc
|
|
|
14546
14547
|
}
|
|
14547
14548
|
};
|
|
14548
14549
|
}
|
|
14549
|
-
function
|
|
14550
|
+
function Ew(e, t, n, i) {
|
|
14550
14551
|
let s = !1, o = e[e.length - 1].getProps(["bX", "bY"], i);
|
|
14551
14552
|
for (const r of e) {
|
|
14552
14553
|
const a = r.getProps(["bX", "bY"], i);
|
|
@@ -14568,26 +14569,26 @@ Object.keys(le).forEach((e) => {
|
|
|
14568
14569
|
_fallback: "plugins.annotation.common"
|
|
14569
14570
|
});
|
|
14570
14571
|
});
|
|
14571
|
-
const
|
|
14572
|
+
const Dw = {
|
|
14572
14573
|
update: Object.assign
|
|
14573
|
-
},
|
|
14574
|
+
}, Tw = rr.concat(Ji), Al = (e, t) => B(t) ? Mo(e, t) : e, Co = (e) => e === "color" || e === "font";
|
|
14574
14575
|
function lr(e = "line") {
|
|
14575
14576
|
return le[e] ? e : (console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`), "line");
|
|
14576
14577
|
}
|
|
14577
|
-
function
|
|
14578
|
-
const s =
|
|
14578
|
+
function Lw(e, t, n, i) {
|
|
14579
|
+
const s = Nw(e, n.animations, i), o = t.annotations, r = $w(t.elements, o);
|
|
14579
14580
|
for (let a = 0; a < o.length; a++) {
|
|
14580
|
-
const l = o[a], c = kd(r, a, l.type), u = l.setContext(
|
|
14581
|
-
d.skip =
|
|
14581
|
+
const l = o[a], c = kd(r, a, l.type), u = l.setContext(jw(e, c, r, l)), d = c.resolveElementProperties(e, u);
|
|
14582
|
+
d.skip = Iw(d), "elements" in d && (Fw(c, d.elements, u, s), delete d.elements), Ct(c.x) || Object.assign(c, d), Object.assign(c, d.initProperties), d.options = Pd(u), s.update(c, d);
|
|
14582
14583
|
}
|
|
14583
14584
|
}
|
|
14584
|
-
function
|
|
14585
|
+
function Iw(e) {
|
|
14585
14586
|
return isNaN(e.x) || isNaN(e.y);
|
|
14586
14587
|
}
|
|
14587
|
-
function
|
|
14588
|
-
return n === "reset" || n === "none" || n === "resize" ?
|
|
14588
|
+
function Nw(e, t, n) {
|
|
14589
|
+
return n === "reset" || n === "none" || n === "resize" ? Dw : new tr(e, t);
|
|
14589
14590
|
}
|
|
14590
|
-
function
|
|
14591
|
+
function Fw(e, t, n, i) {
|
|
14591
14592
|
const s = e.elements || (e.elements = []);
|
|
14592
14593
|
s.length = t.length;
|
|
14593
14594
|
for (let o = 0; o < t.length; o++) {
|
|
@@ -14607,7 +14608,7 @@ function Pd(e) {
|
|
|
14607
14608
|
Mo(e, t.defaults),
|
|
14608
14609
|
Mo(e, t.defaultRoutes)
|
|
14609
14610
|
);
|
|
14610
|
-
for (const i of
|
|
14611
|
+
for (const i of Tw)
|
|
14611
14612
|
n[i] = e[i];
|
|
14612
14613
|
return n;
|
|
14613
14614
|
}
|
|
@@ -14619,7 +14620,7 @@ function Mo(e, t) {
|
|
|
14619
14620
|
}
|
|
14620
14621
|
return n;
|
|
14621
14622
|
}
|
|
14622
|
-
function
|
|
14623
|
+
function jw(e, t, n, i) {
|
|
14623
14624
|
return t.$context || (t.$context = Object.assign(Object.create(e.getContext()), {
|
|
14624
14625
|
element: t,
|
|
14625
14626
|
get elements() {
|
|
@@ -14629,7 +14630,7 @@ function Fw(e, t, n, i) {
|
|
|
14629
14630
|
type: "annotation"
|
|
14630
14631
|
}));
|
|
14631
14632
|
}
|
|
14632
|
-
function
|
|
14633
|
+
function $w(e, t) {
|
|
14633
14634
|
const n = t.length, i = e.length;
|
|
14634
14635
|
if (i < n) {
|
|
14635
14636
|
const s = n - i;
|
|
@@ -14637,13 +14638,13 @@ function jw(e, t) {
|
|
|
14637
14638
|
} else i > n && e.splice(n, i - n);
|
|
14638
14639
|
return e;
|
|
14639
14640
|
}
|
|
14640
|
-
var
|
|
14641
|
-
const ne = /* @__PURE__ */ new Map(), El = (e) => e.type !== "doughnutLabel",
|
|
14642
|
-
var
|
|
14641
|
+
var Bw = "3.1.0";
|
|
14642
|
+
const ne = /* @__PURE__ */ new Map(), El = (e) => e.type !== "doughnutLabel", zw = rr.concat(Ji);
|
|
14643
|
+
var Ww = {
|
|
14643
14644
|
id: "annotation",
|
|
14644
|
-
version:
|
|
14645
|
+
version: Bw,
|
|
14645
14646
|
beforeRegister() {
|
|
14646
|
-
|
|
14647
|
+
C0("chart.js", "4.0", ae.version);
|
|
14647
14648
|
},
|
|
14648
14649
|
afterRegister() {
|
|
14649
14650
|
ae.register(le);
|
|
@@ -14670,15 +14671,15 @@ var zw = {
|
|
|
14670
14671
|
B(o) ? Object.keys(o).forEach((r) => {
|
|
14671
14672
|
const a = o[r];
|
|
14672
14673
|
B(a) && (a.id = r, s.push(a));
|
|
14673
|
-
}) : q(o) && s.push(...o),
|
|
14674
|
+
}) : q(o) && s.push(...o), sw(s.filter(El), e.scales);
|
|
14674
14675
|
},
|
|
14675
14676
|
afterDataLimits(e, t) {
|
|
14676
14677
|
const n = ne.get(e);
|
|
14677
|
-
|
|
14678
|
+
iw(e, t.scale, n.annotations.filter(El).filter((i) => i.display && i.adjustScaleRange));
|
|
14678
14679
|
},
|
|
14679
14680
|
afterUpdate(e, t, n) {
|
|
14680
14681
|
const i = ne.get(e);
|
|
14681
|
-
|
|
14682
|
+
Z0(e, i, n), Lw(e, i, n, t.mode), i.visibleElements = i.elements.filter((s) => !s.skip && s.options.display), nw(e, i, n);
|
|
14682
14683
|
},
|
|
14683
14684
|
beforeDatasetsDraw(e, t, n) {
|
|
14684
14685
|
mn(e, "beforeDatasetsDraw", n.clip);
|
|
@@ -14697,7 +14698,7 @@ var zw = {
|
|
|
14697
14698
|
},
|
|
14698
14699
|
beforeEvent(e, t, n) {
|
|
14699
14700
|
const i = ne.get(e);
|
|
14700
|
-
|
|
14701
|
+
Q0(i, t.event, n) && (t.changed = !0);
|
|
14701
14702
|
},
|
|
14702
14703
|
afterDestroy(e) {
|
|
14703
14704
|
ne.delete(e);
|
|
@@ -14735,7 +14736,7 @@ var zw = {
|
|
|
14735
14736
|
},
|
|
14736
14737
|
descriptors: {
|
|
14737
14738
|
_indexable: !1,
|
|
14738
|
-
_scriptable: (e) => !
|
|
14739
|
+
_scriptable: (e) => !zw.includes(e) && e !== "init",
|
|
14739
14740
|
annotations: {
|
|
14740
14741
|
_allKeys: !1,
|
|
14741
14742
|
_fallback: (e, t) => `elements.${le[lr(t.type)].id}`
|
|
@@ -14756,12 +14757,12 @@ var zw = {
|
|
|
14756
14757
|
function mn(e, t, n) {
|
|
14757
14758
|
const { ctx: i, chartArea: s } = e, o = ne.get(e);
|
|
14758
14759
|
n && fs(i, s);
|
|
14759
|
-
const r =
|
|
14760
|
+
const r = Hw(o.visibleElements, t).sort((a, l) => a.element.options.z - l.element.options.z);
|
|
14760
14761
|
for (const a of r)
|
|
14761
|
-
|
|
14762
|
+
Vw(i, s, o, a);
|
|
14762
14763
|
n && hs(i);
|
|
14763
14764
|
}
|
|
14764
|
-
function
|
|
14765
|
+
function Hw(e, t) {
|
|
14765
14766
|
const n = [];
|
|
14766
14767
|
for (const i of e)
|
|
14767
14768
|
if (i.options.drawTime === t && n.push({ element: i, main: !0 }), i.elements && i.elements.length)
|
|
@@ -14769,11 +14770,11 @@ function Ww(e, t) {
|
|
|
14769
14770
|
s.options.display && s.options.drawTime === t && n.push({ element: s });
|
|
14770
14771
|
return n;
|
|
14771
14772
|
}
|
|
14772
|
-
function
|
|
14773
|
+
function Vw(e, t, n, i) {
|
|
14773
14774
|
const s = i.element;
|
|
14774
14775
|
i.main ? (bl(n, s, "beforeDraw"), s.draw(e, t), bl(n, s, "afterDraw")) : s.draw(e, t);
|
|
14775
14776
|
}
|
|
14776
|
-
const
|
|
14777
|
+
const Yw = /^-?\d+(\.\d+)?$/, Od = (e) => getComputedStyle(document.documentElement).getPropertyValue(e).trim(), it = (e) => {
|
|
14777
14778
|
const t = Od(e);
|
|
14778
14779
|
return !t || t.charAt(0) === "#" || t.startsWith("rgb(") || t.startsWith("rgba("), t;
|
|
14779
14780
|
}, X = (e) => {
|
|
@@ -14784,7 +14785,7 @@ const Vw = /^-?\d+(\.\d+)?$/, Od = (e) => getComputedStyle(document.documentElem
|
|
|
14784
14785
|
return n;
|
|
14785
14786
|
if (t.slice(-3) === "rem")
|
|
14786
14787
|
return n * i;
|
|
14787
|
-
if (
|
|
14788
|
+
if (Yw.test(t))
|
|
14788
14789
|
return n;
|
|
14789
14790
|
}, Dl = [
|
|
14790
14791
|
it("--em-chart-color-1"),
|
|
@@ -14797,7 +14798,7 @@ const Vw = /^-?\d+(\.\d+)?$/, Od = (e) => getComputedStyle(document.documentElem
|
|
|
14797
14798
|
it("--em-chart-color-8"),
|
|
14798
14799
|
it("--em-chart-color-9"),
|
|
14799
14800
|
it("--em-chart-color-10")
|
|
14800
|
-
],
|
|
14801
|
+
], Kw = {
|
|
14801
14802
|
datasets: [
|
|
14802
14803
|
{
|
|
14803
14804
|
data: [],
|
|
@@ -14869,10 +14870,10 @@ const Vw = /^-?\d+(\.\d+)?$/, Od = (e) => getComputedStyle(document.documentElem
|
|
|
14869
14870
|
}
|
|
14870
14871
|
}
|
|
14871
14872
|
}
|
|
14872
|
-
},
|
|
14873
|
+
}, Uw = {
|
|
14873
14874
|
cutout: "60%",
|
|
14874
14875
|
...qi
|
|
14875
|
-
},
|
|
14876
|
+
}, Xw = {
|
|
14876
14877
|
cutout: "60%",
|
|
14877
14878
|
...qi,
|
|
14878
14879
|
plugins: {
|
|
@@ -14911,7 +14912,7 @@ const Vw = /^-?\d+(\.\d+)?$/, Od = (e) => getComputedStyle(document.documentElem
|
|
|
14911
14912
|
...e,
|
|
14912
14913
|
datasets: ((n = e.datasets) == null ? void 0 : n.map((i, s) => {
|
|
14913
14914
|
var a;
|
|
14914
|
-
const o = ((a =
|
|
14915
|
+
const o = ((a = Kw.datasets) == null ? void 0 : a[s]) || { data: [] };
|
|
14915
14916
|
return Zi(o, i);
|
|
14916
14917
|
})) || []
|
|
14917
14918
|
};
|
|
@@ -14924,11 +14925,11 @@ const Vw = /^-?\d+(\.\d+)?$/, Od = (e) => getComputedStyle(document.documentElem
|
|
|
14924
14925
|
{ intersect: !0 },
|
|
14925
14926
|
!1
|
|
14926
14927
|
)[0]) == null ? void 0 : s.index : void 0;
|
|
14927
|
-
},
|
|
14928
|
-
chartContainer:
|
|
14928
|
+
}, Gw = "_chartContainer_18rs7_1", Ed = {
|
|
14929
|
+
chartContainer: Gw
|
|
14929
14930
|
};
|
|
14930
|
-
ae.register(ye, Vu, Wu, id,
|
|
14931
|
-
const
|
|
14931
|
+
ae.register(ye, Vu, Wu, id, Ww);
|
|
14932
|
+
const v_ = ({
|
|
14932
14933
|
label: e,
|
|
14933
14934
|
subLabel: t,
|
|
14934
14935
|
options: n = {},
|
|
@@ -14947,7 +14948,7 @@ const x_ = ({
|
|
|
14947
14948
|
}
|
|
14948
14949
|
}
|
|
14949
14950
|
} : {},
|
|
14950
|
-
r ?
|
|
14951
|
+
r ? Xw : Uw,
|
|
14951
14952
|
n
|
|
14952
14953
|
), l = (c) => {
|
|
14953
14954
|
const u = Ad(c, o);
|
|
@@ -14964,7 +14965,7 @@ const x_ = ({
|
|
|
14964
14965
|
) });
|
|
14965
14966
|
};
|
|
14966
14967
|
ae.register(ye, Vu, Wu, id);
|
|
14967
|
-
const
|
|
14968
|
+
const w_ = ({ data: e, options: t = {}, onSegmentClick: n }) => {
|
|
14968
14969
|
const i = He(null), s = Zi(qi, t), o = (r) => {
|
|
14969
14970
|
const a = Ad(r, i);
|
|
14970
14971
|
n == null || n(a);
|
|
@@ -14978,65 +14979,65 @@ const v_ = ({ data: e, options: t = {}, onSegmentClick: n }) => {
|
|
|
14978
14979
|
onClick: o
|
|
14979
14980
|
}
|
|
14980
14981
|
) });
|
|
14981
|
-
},
|
|
14982
|
+
}, Jw = (e) => {
|
|
14982
14983
|
if (!e.includes("|")) return e;
|
|
14983
14984
|
const [t, n] = e.split("|", 2).map((i) => i.trim());
|
|
14984
14985
|
return nt.t([t, n].filter((i) => !!i));
|
|
14985
|
-
},
|
|
14986
|
+
}, __ = (e) => {
|
|
14986
14987
|
const t = {};
|
|
14987
14988
|
return Object.keys(e).forEach((n) => {
|
|
14988
14989
|
const i = e[n];
|
|
14989
|
-
t[n] = typeof i == "string" ?
|
|
14990
|
+
t[n] = typeof i == "string" ? Jw(i) : i;
|
|
14990
14991
|
}), t;
|
|
14991
|
-
},
|
|
14992
|
+
}, qw = {
|
|
14992
14993
|
name: "prefix",
|
|
14993
14994
|
type: "string",
|
|
14994
14995
|
label: "Prefix",
|
|
14995
14996
|
description: "Prefix"
|
|
14996
|
-
},
|
|
14997
|
+
}, Zw = {
|
|
14997
14998
|
name: "suffix",
|
|
14998
14999
|
type: "string",
|
|
14999
15000
|
label: "Suffix",
|
|
15000
15001
|
description: "Suffix"
|
|
15001
|
-
},
|
|
15002
|
+
}, Qw = {
|
|
15002
15003
|
name: "displayName",
|
|
15003
15004
|
type: "string",
|
|
15004
15005
|
label: "Display name"
|
|
15005
|
-
},
|
|
15006
|
+
}, t_ = {
|
|
15006
15007
|
name: "maxCharacters",
|
|
15007
15008
|
type: "number",
|
|
15008
15009
|
label: "Maximum characters",
|
|
15009
15010
|
supportedTypes: ["string"]
|
|
15010
|
-
},
|
|
15011
|
+
}, e_ = {
|
|
15011
15012
|
name: "decimalPlaces",
|
|
15012
15013
|
type: "number",
|
|
15013
15014
|
label: "Decimal places",
|
|
15014
15015
|
supportedTypes: ["number"]
|
|
15015
|
-
},
|
|
15016
|
+
}, n_ = {
|
|
15016
15017
|
name: "currency",
|
|
15017
15018
|
type: "string",
|
|
15018
15019
|
label: "Currency",
|
|
15019
15020
|
supportedTypes: ["number"]
|
|
15020
|
-
},
|
|
15021
|
+
}, i_ = {
|
|
15021
15022
|
name: "abbreviateLargeNumber",
|
|
15022
15023
|
type: "boolean",
|
|
15023
15024
|
label: "Abbreviate large number",
|
|
15024
15025
|
supportedTypes: ["number"]
|
|
15025
15026
|
}, Dd = [
|
|
15026
|
-
Jw,
|
|
15027
15027
|
qw,
|
|
15028
15028
|
Zw,
|
|
15029
15029
|
Qw,
|
|
15030
15030
|
t_,
|
|
15031
15031
|
e_,
|
|
15032
|
-
n_
|
|
15033
|
-
|
|
15032
|
+
n_,
|
|
15033
|
+
i_
|
|
15034
|
+
], S_ = {
|
|
15034
15035
|
name: "dataset",
|
|
15035
15036
|
type: "dataset",
|
|
15036
15037
|
label: "Dataset",
|
|
15037
15038
|
required: !0,
|
|
15038
15039
|
category: "Component Data"
|
|
15039
|
-
},
|
|
15040
|
+
}, C_ = {
|
|
15040
15041
|
name: "dimension",
|
|
15041
15042
|
type: "dimension",
|
|
15042
15043
|
label: "Dimension",
|
|
@@ -15046,7 +15047,7 @@ const v_ = ({ data: e, options: t = {}, onSegmentClick: n }) => {
|
|
|
15046
15047
|
required: !0,
|
|
15047
15048
|
category: "Component Data",
|
|
15048
15049
|
inputs: Dd
|
|
15049
|
-
},
|
|
15050
|
+
}, M_ = {
|
|
15050
15051
|
name: "measure",
|
|
15051
15052
|
type: "measure",
|
|
15052
15053
|
label: "Measure",
|
|
@@ -15056,92 +15057,92 @@ const v_ = ({ data: e, options: t = {}, onSegmentClick: n }) => {
|
|
|
15056
15057
|
required: !0,
|
|
15057
15058
|
category: "Component Data",
|
|
15058
15059
|
inputs: Dd
|
|
15059
|
-
},
|
|
15060
|
+
}, k_ = {
|
|
15060
15061
|
name: "title",
|
|
15061
15062
|
type: "string",
|
|
15062
15063
|
label: "Title",
|
|
15063
15064
|
category: "Component Header"
|
|
15064
|
-
},
|
|
15065
|
+
}, P_ = {
|
|
15065
15066
|
name: "description",
|
|
15066
15067
|
type: "string",
|
|
15067
15068
|
label: "Description",
|
|
15068
15069
|
category: "Component Header"
|
|
15069
|
-
},
|
|
15070
|
+
}, O_ = {
|
|
15070
15071
|
name: "showLegend",
|
|
15071
15072
|
type: "boolean",
|
|
15072
15073
|
label: "Show Legend",
|
|
15073
15074
|
defaultValue: !0,
|
|
15074
15075
|
category: "Component Settings"
|
|
15075
|
-
},
|
|
15076
|
+
}, R_ = {
|
|
15076
15077
|
name: "showTooltips",
|
|
15077
15078
|
type: "boolean",
|
|
15078
15079
|
label: "Show Tooltips",
|
|
15079
15080
|
defaultValue: !0,
|
|
15080
15081
|
category: "Component Settings"
|
|
15081
|
-
},
|
|
15082
|
+
}, A_ = {
|
|
15082
15083
|
name: "showValueLabels",
|
|
15083
15084
|
type: "boolean",
|
|
15084
15085
|
label: "Show Value Labels",
|
|
15085
15086
|
defaultValue: !0,
|
|
15086
15087
|
category: "Component Settings"
|
|
15087
|
-
},
|
|
15088
|
+
}, E_ = {
|
|
15088
15089
|
name: "maxLegendItems",
|
|
15089
15090
|
type: "number",
|
|
15090
15091
|
label: "Max Legend Items",
|
|
15091
15092
|
defaultValue: 10,
|
|
15092
15093
|
category: "Component Settings"
|
|
15093
|
-
},
|
|
15094
|
+
}, D_ = {
|
|
15094
15095
|
name: "placeholder",
|
|
15095
15096
|
type: "string",
|
|
15096
15097
|
label: "Placeholder",
|
|
15097
15098
|
category: "Component Settings"
|
|
15098
15099
|
};
|
|
15099
15100
|
export {
|
|
15100
|
-
|
|
15101
|
-
|
|
15101
|
+
R_ as A,
|
|
15102
|
+
A_ as B,
|
|
15102
15103
|
Nf as C,
|
|
15103
|
-
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15104
|
+
g_ as D,
|
|
15105
|
+
E_ as E,
|
|
15106
|
+
D_ as F,
|
|
15107
|
+
r_ as G,
|
|
15107
15108
|
Zi as H,
|
|
15108
15109
|
Hf as I,
|
|
15109
15110
|
C as J,
|
|
15110
|
-
|
|
15111
|
+
kb as K,
|
|
15111
15112
|
us as L,
|
|
15112
15113
|
fe as M,
|
|
15113
|
-
|
|
15114
|
+
m_ as N,
|
|
15114
15115
|
Fl as O,
|
|
15115
|
-
|
|
15116
|
-
|
|
15117
|
-
|
|
15116
|
+
w_ as P,
|
|
15117
|
+
bb as Q,
|
|
15118
|
+
p_ as S,
|
|
15118
15119
|
Se as T,
|
|
15119
|
-
|
|
15120
|
+
a_ as V,
|
|
15120
15121
|
Ff as a,
|
|
15121
|
-
|
|
15122
|
-
|
|
15123
|
-
|
|
15124
|
-
|
|
15125
|
-
|
|
15122
|
+
c_ as b,
|
|
15123
|
+
u_ as c,
|
|
15124
|
+
wb as d,
|
|
15125
|
+
b_ as e,
|
|
15126
|
+
v_ as f,
|
|
15126
15127
|
qi as g,
|
|
15127
15128
|
Dl as h,
|
|
15128
15129
|
it as i,
|
|
15129
15130
|
X as j,
|
|
15130
15131
|
nt as k,
|
|
15131
|
-
|
|
15132
|
-
|
|
15133
|
-
|
|
15134
|
-
|
|
15135
|
-
|
|
15136
|
-
|
|
15137
|
-
|
|
15138
|
-
|
|
15139
|
-
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
|
|
15145
|
-
|
|
15132
|
+
l_ as l,
|
|
15133
|
+
Zw as m,
|
|
15134
|
+
Qw as n,
|
|
15135
|
+
t_ as o,
|
|
15136
|
+
e_ as p,
|
|
15137
|
+
n_ as q,
|
|
15138
|
+
__ as r,
|
|
15139
|
+
qw as s,
|
|
15140
|
+
i_ as t,
|
|
15141
|
+
S_ as u,
|
|
15142
|
+
C_ as v,
|
|
15143
|
+
M_ as w,
|
|
15144
|
+
k_ as x,
|
|
15145
|
+
P_ as y,
|
|
15146
|
+
O_ as z
|
|
15146
15147
|
};
|
|
15147
|
-
//# sourceMappingURL=component.constants-
|
|
15148
|
+
//# sourceMappingURL=component.constants-DLcmipcp.js.map
|