@iqworksai/common-components 0.1.24 → 0.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +27 -27
  2. package/README.md +513 -513
  3. package/dist/.gitkeep +3 -3
  4. package/dist/_virtual/jquery.mjs +25 -2
  5. package/dist/_virtual/jquery2.mjs +4 -0
  6. package/dist/assets/logos/comply-iq-logo.svg2.mjs +18 -0
  7. package/dist/assets/logos/iqworks-icon.svg.mjs +6 -6
  8. package/dist/assets/logos/iqworks-logo.svg2.mjs +17 -0
  9. package/dist/assets/logos/light/iqworks-icon-light.svg.mjs +6 -6
  10. package/dist/components/Charts/CustomLegends/CustomLegends.stories.d.ts.map +1 -1
  11. package/dist/components/Charts/GaugeChart/GaugeChart.stories.d.ts.map +1 -1
  12. package/dist/components/Charts/GaugeChart/index.mjs +7 -7
  13. package/dist/components/FileBrowser/index.mjs +1 -1
  14. package/dist/context/ThemeContext.d.ts +6 -0
  15. package/dist/context/ThemeContext.d.ts.map +1 -1
  16. package/dist/context/ThemeContext.mjs +44 -35
  17. package/dist/{index-DtVOjJk3.cjs → index-B6pnxgoH.cjs} +1 -1
  18. package/dist/{index-CUUuCzyM.cjs → index-C3yesVHM.cjs} +66 -39
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.mjs +72 -66
  23. package/dist/jquery-CtmXEsE4.cjs +13 -0
  24. package/dist/jquery-Db0l-djT.cjs +1 -0
  25. package/dist/{jstree-CtrCtuMv.cjs → jstree-LoZW-W_p.cjs} +3 -3
  26. package/dist/node_modules/jquery/dist/jquery.mjs +3429 -3449
  27. package/dist/node_modules/jstree/dist/jstree.mjs +13 -13
  28. package/dist/utils/htmlUtils.d.ts +16 -0
  29. package/dist/utils/htmlUtils.d.ts.map +1 -0
  30. package/dist/utils/htmlUtils.mjs +24 -0
  31. package/dist/utils/pdfAssets.d.ts +23 -0
  32. package/dist/utils/pdfAssets.d.ts.map +1 -0
  33. package/dist/utils/pdfAssets.mjs +21 -0
  34. package/package.json +141 -134
  35. package/dist/jquery-BKuE7Afe.cjs +0 -13
package/dist/.gitkeep CHANGED
@@ -1,3 +1,3 @@
1
- # This directory is for static assets used by Storybook
2
- # Add any static files (images, fonts, etc.) here
3
-
1
+ # This directory is for static assets used by Storybook
2
+ # Add any static files (images, fonts, etc.) here
3
+
@@ -1,4 +1,27 @@
1
- var e = { exports: {} };
1
+ import { getDefaultExportFromCjs as n } from "./_commonjsHelpers.mjs";
2
+ import { __require as s } from "../node_modules/jquery/dist/jquery.mjs";
3
+ function i(t, a) {
4
+ for (var o = 0; o < a.length; o++) {
5
+ const e = a[o];
6
+ if (typeof e != "string" && !Array.isArray(e)) {
7
+ for (const r in e)
8
+ if (r !== "default" && !(r in t)) {
9
+ const u = Object.getOwnPropertyDescriptor(e, r);
10
+ u && Object.defineProperty(t, r, u.get ? u : {
11
+ enumerable: !0,
12
+ get: () => e[r]
13
+ });
14
+ }
15
+ }
16
+ }
17
+ return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
18
+ }
19
+ var f = s();
20
+ const c = /* @__PURE__ */ n(f), y = /* @__PURE__ */ i({
21
+ __proto__: null,
22
+ default: c
23
+ }, [f]);
2
24
  export {
3
- e as __module
25
+ c as default,
26
+ y as j
4
27
  };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,18 @@
1
+ const C = `<svg width="445" height="85" viewBox="0 0 445 85" fill="none" xmlns="http://www.w3.org/2000/svg">\r
2
+ <path d="M48.6448 12.0775L40.9465 7.80469L11.7295 24.9191C9.15284 52.6189 18.7082 71.6223 35.081 82.6271C20.2649 65.6636 17.8134 40.0395 18.9765 29.482L48.6448 12.0775Z" fill="#FF6503"/>\r
3
+ <path d="M58.163 6.39894L50.3792 2.3728L42.6836 6.80882L50.3068 11.0328L58.163 6.39894Z" fill="#3A3A3A"/>\r
4
+ <path d="M27.5232 34.0452C23.4435 59.5977 30.8336 77.08 35.0386 82.6272C35.0386 82.6272 33.7332 77.5916 33.1595 74.3123C30.7189 60.3615 31.6833 50.4718 34.5016 38.0713L65.3684 20.3563C64.6742 30.9236 58.8596 53.6481 42.0229 68.532C49.9949 64.8357 60.4902 58.794 64.1665 52.0229C63.9761 52.437 65.5692 49.5794 65.3684 49.9853C72.6494 35.8555 73.6399 23.9785 73.6892 15.2564L66.1738 10.9619L27.5232 34.0452Z" fill="#FF6503"/>\r
5
+ <path d="M63.0229 54.672C56.7853 65.8167 33.207 74.5911 33.207 74.5911C33.207 74.5911 33.4213 76.1015 33.9555 78.2837C34.4897 80.4659 35.0263 82.6085 35.0263 82.6085C42.7193 78.658 54.6229 70.4326 63.0229 54.672Z" fill="#3A3A3A"/>\r
6
+ <path d="M432.458 85V62.1985C430.974 63.3228 429.31 64.1998 427.466 64.8294C425.622 65.504 423.62 65.8413 421.462 65.8413C417.684 65.8413 414.266 64.8744 411.208 62.9406C408.15 61.0067 405.699 58.4432 403.855 55.2501C402.056 52.012 401.156 48.4366 401.156 44.5239C401.156 40.6112 402.056 37.0359 403.855 33.7978C405.699 30.5597 408.15 27.9962 411.208 26.1073C414.266 24.1735 417.684 23.2065 421.462 23.2065C424.025 23.2065 426.386 23.6563 428.545 24.5557C430.704 25.4552 432.548 26.692 434.077 28.266V24.2859H444.196V85H432.458ZM422.811 55.5199C424.79 55.5199 426.589 55.0252 428.208 54.0358C429.827 53.0464 431.109 51.7197 432.053 50.0557C433.042 48.3916 433.537 46.5477 433.537 44.5239C433.537 42.5001 433.042 40.6562 432.053 38.9922C431.109 37.3282 429.827 36.0015 428.208 35.0121C426.589 34.0226 424.79 33.5279 422.811 33.5279C420.832 33.5279 419.033 34.0226 417.414 35.0121C415.795 36.0015 414.491 37.3282 413.501 38.9922C412.557 40.6562 412.085 42.5001 412.085 44.5239C412.085 46.5477 412.557 48.3916 413.501 50.0557C414.491 51.7197 415.795 53.0464 417.414 54.0358C419.033 55.0252 420.832 55.5199 422.811 55.5199Z" fill="#FF6503"/>\r
7
+ <path d="M382.444 64.7617V24.2856H394.182V64.7617H382.444ZM388.313 18.4166C386.559 18.4166 385.075 17.8095 383.86 16.5952C382.646 15.3809 382.039 13.8968 382.039 12.1428C382.039 10.3439 382.646 8.85975 383.86 7.69044C385.075 6.47616 386.559 5.86902 388.313 5.86902C390.112 5.86902 391.596 6.47616 392.765 7.69044C393.979 8.85975 394.587 10.3439 394.587 12.1428C394.587 13.8968 393.979 15.3809 392.765 16.5952C391.596 17.8095 390.112 18.4166 388.313 18.4166Z" fill="#FF6503"/>\r
8
+ <path d="M334.719 84.9997L348.211 57.8808L331.684 24.2856H344.636L351.787 39.1269C352.416 40.4761 352.956 41.7128 353.406 42.8372C353.9 43.9165 354.305 44.9734 354.62 46.0078C354.98 44.9734 355.407 43.9165 355.902 42.8372C356.396 41.7128 356.981 40.4761 357.656 39.1269L364.941 24.2856H377.422L347.334 84.9997H334.719Z" fill="#3A3A3A"/>\r
9
+ <path d="M314.994 64.7617V0H326.732V64.7617H314.994Z" fill="#3A3A3A"/>\r
10
+ <path d="M264.961 85V24.2859H275.08V28.266C276.654 26.692 278.498 25.4552 280.612 24.5557C282.77 23.6563 285.132 23.2065 287.695 23.2065C291.473 23.2065 294.891 24.1735 297.949 26.1073C301.007 27.9962 303.436 30.5597 305.235 33.7978C307.079 37.0359 308 40.6112 308 44.5239C308 48.4366 307.079 52.012 305.235 55.2501C303.436 58.4432 301.007 61.0067 297.949 62.9406C294.891 64.8744 291.473 65.8413 287.695 65.8413C285.536 65.8413 283.535 65.504 281.691 64.8294C279.847 64.1998 278.183 63.3228 276.699 62.1985V85H264.961ZM286.346 55.5199C288.325 55.5199 290.124 55.0252 291.743 54.0358C293.362 53.0464 294.643 51.7197 295.588 50.0557C296.577 48.3916 297.072 46.5477 297.072 44.5239C297.072 42.5001 296.577 40.6562 295.588 38.9922C294.643 37.3282 293.362 36.0015 291.743 35.0121C290.124 34.0226 288.325 33.5279 286.346 33.5279C284.367 33.5279 282.568 34.0226 280.949 35.0121C279.33 36.0015 278.026 37.3282 277.036 38.9922C276.092 40.6562 275.62 42.5001 275.62 44.5239C275.62 46.5477 276.092 48.3916 277.036 50.0557C278.026 51.7197 279.33 53.0464 280.949 54.0358C282.568 55.0252 284.367 55.5199 286.346 55.5199Z" fill="#3A3A3A"/>\r
11
+ <path d="M192.104 64.7617V24.2856H202.627V28.738C204.066 26.8491 205.843 25.4099 207.957 24.4205C210.115 23.4311 212.364 22.9364 214.703 22.9364C217.086 22.9364 219.335 23.4311 221.449 24.4205C223.562 25.4099 225.339 26.8491 226.778 28.738C228.352 26.8491 230.308 25.4099 232.647 24.4205C234.986 23.4311 237.527 22.9364 240.27 22.9364C243.148 22.9364 245.847 23.611 248.365 24.9602C250.884 26.2644 252.93 28.1983 254.504 30.7618C256.078 33.2803 256.865 36.361 256.865 40.0038V64.7617H245.127V41.6903C245.127 39.5316 244.498 37.6202 243.238 35.9562C241.979 34.2922 240.158 33.4602 237.774 33.4602C236.515 33.4602 235.3 33.775 234.131 34.4046C233.007 34.9893 232.085 35.8887 231.365 37.103C230.691 38.2723 230.353 39.7565 230.353 41.5554V64.7617H218.615V41.6903C218.615 40.2512 218.323 38.902 217.738 37.6427C217.199 36.3834 216.367 35.3715 215.242 34.607C214.163 33.8425 212.836 33.4602 211.262 33.4602C210.003 33.4602 208.789 33.775 207.619 34.4046C206.495 34.9893 205.573 35.8887 204.853 37.103C204.179 38.2723 203.842 39.7565 203.842 41.5554V64.7617H192.104Z" fill="#3A3A3A"/>\r
12
+ <path d="M163.365 66.1109C159.362 66.1109 155.697 65.1439 152.369 63.2101C149.041 61.2762 146.387 58.6678 144.409 55.3847C142.475 52.1017 141.508 48.4813 141.508 44.5236C141.508 40.521 142.475 36.9006 144.409 33.6626C146.387 30.3795 149.041 27.771 152.369 25.8372C155.697 23.9033 159.362 22.9364 163.365 22.9364C167.412 22.9364 171.078 23.9033 174.361 25.8372C177.689 27.771 180.32 30.3795 182.254 33.6626C184.233 36.9006 185.222 40.521 185.222 44.5236C185.222 48.4813 184.233 52.1017 182.254 55.3847C180.32 58.6678 177.689 61.2762 174.361 63.2101C171.078 65.1439 167.412 66.1109 163.365 66.1109ZM163.365 55.5871C165.389 55.5871 167.21 55.0924 168.829 54.103C170.493 53.1136 171.797 51.7868 172.742 50.1228C173.731 48.4138 174.226 46.5474 174.226 44.5236C174.226 42.4549 173.731 40.5885 172.742 38.9244C171.797 37.2604 170.493 35.9337 168.829 34.9443C167.21 33.9549 165.389 33.4602 163.365 33.4602C161.341 33.4602 159.497 33.9549 157.833 34.9443C156.214 35.9337 154.91 37.2604 153.92 38.9244C152.976 40.5885 152.504 42.4549 152.504 44.5236C152.504 46.5474 152.976 48.4138 153.92 50.1228C154.91 51.7868 156.214 53.1136 157.833 54.103C159.497 55.0924 161.341 55.5871 163.365 55.5871Z" fill="#3A3A3A"/>\r
13
+ <path d="M122.857 66.1109C118.854 66.1109 115.189 65.1439 111.861 63.2101C108.533 61.2762 105.88 58.6678 103.901 55.3847C101.967 52.1017 101 48.4813 101 44.5236C101 40.521 101.967 36.9006 103.901 33.6626C105.88 30.3795 108.533 27.771 111.861 25.8372C115.189 23.9033 118.854 22.9364 122.857 22.9364C125.645 22.9364 128.276 23.4086 130.75 24.3531C133.268 25.2525 135.495 26.6017 137.428 28.4007L134.393 40.3411C133.268 38.4972 131.762 36.9006 129.873 35.5514C128.029 34.1573 125.848 33.4602 123.329 33.4602C121.216 33.4602 119.327 33.9549 117.663 34.9443C115.999 35.9337 114.694 37.2604 113.75 38.9244C112.806 40.5885 112.333 42.4549 112.333 44.5236C112.333 46.5474 112.806 48.4138 113.75 50.1228C114.694 51.7868 115.999 53.1136 117.663 54.103C119.327 55.0924 121.216 55.5871 123.329 55.5871C125.848 55.5871 128.029 54.9125 129.873 53.5633C131.762 52.1691 133.268 50.5501 134.393 48.7062L137.428 60.6466C135.495 62.4455 133.268 63.8172 130.75 64.7617C128.276 65.6611 125.645 66.1109 122.857 66.1109Z" fill="#3A3A3A"/>\r
14
+ </svg>\r
15
+ `;
16
+ export {
17
+ C as default
18
+ };
@@ -1,9 +1,9 @@
1
- const C = `<svg width="677" height="871" viewBox="0 0 677 871" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M404.819 105.235L321.341 58.9021L4.52229 244.483C-23.4186 544.848 80.1961 750.912 257.737 870.243C97.077 686.299 70.4939 408.442 83.1061 293.962L404.819 105.235Z" fill="#FF6503"/>
3
- <path d="M508.045 43.6577L423.64 0L340.191 48.1021L422.855 93.9053L508.045 43.6577Z" fill="#3A3A3A"/>
4
- <path d="M175.779 343.441C131.539 620.521 211.675 810.092 257.273 870.243C257.273 870.243 243.118 815.639 236.897 780.08C210.432 628.804 220.889 521.564 251.45 387.099L586.159 195.005C578.631 309.592 515.579 556.006 333.008 717.401C419.454 677.319 533.262 611.806 573.126 538.384C571.062 542.874 588.336 511.887 586.159 516.288C665.111 363.072 675.853 234.282 676.387 139.704L594.893 93.1365L175.779 343.441Z" fill="#FF6503"/>
5
- <path d="M560.726 567.108C493.087 687.956 237.412 783.101 237.412 783.101C237.412 783.101 239.735 799.48 245.528 823.143C251.32 846.806 257.139 870.039 257.139 870.039C340.561 827.201 469.639 738.009 560.726 567.108Z" fill="#3A3A3A"/>
6
- </svg>
1
+ const C = `<svg width="677" height="871" viewBox="0 0 677 871" fill="none" xmlns="http://www.w3.org/2000/svg">\r
2
+ <path d="M404.819 105.235L321.341 58.9021L4.52229 244.483C-23.4186 544.848 80.1961 750.912 257.737 870.243C97.077 686.299 70.4939 408.442 83.1061 293.962L404.819 105.235Z" fill="#FF6503"/>\r
3
+ <path d="M508.045 43.6577L423.64 0L340.191 48.1021L422.855 93.9053L508.045 43.6577Z" fill="#3A3A3A"/>\r
4
+ <path d="M175.779 343.441C131.539 620.521 211.675 810.092 257.273 870.243C257.273 870.243 243.118 815.639 236.897 780.08C210.432 628.804 220.889 521.564 251.45 387.099L586.159 195.005C578.631 309.592 515.579 556.006 333.008 717.401C419.454 677.319 533.262 611.806 573.126 538.384C571.062 542.874 588.336 511.887 586.159 516.288C665.111 363.072 675.853 234.282 676.387 139.704L594.893 93.1365L175.779 343.441Z" fill="#FF6503"/>\r
5
+ <path d="M560.726 567.108C493.087 687.956 237.412 783.101 237.412 783.101C237.412 783.101 239.735 799.48 245.528 823.143C251.32 846.806 257.139 870.039 257.139 870.039C340.561 827.201 469.639 738.009 560.726 567.108Z" fill="#3A3A3A"/>\r
6
+ </svg>\r
7
7
  `;
8
8
  export {
9
9
  C as default
@@ -0,0 +1,17 @@
1
+ const C = `<svg width="826" height="198" viewBox="0 0 826 198" fill="none" xmlns="http://www.w3.org/2000/svg">\r
2
+ <path d="M91.6463 24.3167L72.7479 13.8275L1.02379 55.8411C-5.30171 123.841 18.1555 170.492 58.3487 197.507C21.9771 155.864 15.959 92.9597 18.8143 67.0426L91.6463 24.3167Z" fill="#FF6503"/>\r
3
+ <path d="M115.012 10.3766L95.9035 0.49292L77.0117 11.3828L95.7259 21.7521L115.012 10.3766Z" fill="#3A3A3A"/>\r
4
+ <path d="M39.7945 78.2445C29.7791 140.973 47.921 183.89 58.2438 197.507C58.2438 197.507 55.0392 185.145 53.6309 177.095C47.6395 142.848 50.007 118.57 56.9255 88.1282L132.7 44.6402C130.996 70.5814 116.721 126.367 75.3893 162.905C94.9597 153.831 120.725 139 129.749 122.378C129.282 123.394 133.193 116.379 132.7 117.375C150.574 82.6887 153.006 53.5321 153.127 32.1206L134.677 21.5781L39.7945 78.2445Z" fill="#FF6503"/>\r
5
+ <path d="M126.943 128.881C111.63 156.239 53.748 177.779 53.748 177.779C53.748 177.779 54.274 181.487 55.5854 186.844C56.8967 192.201 58.214 197.461 58.214 197.461C77.0997 187.763 106.322 167.571 126.943 128.881Z" fill="#3A3A3A"/>\r
6
+ <path d="M790.998 150.838C784.975 150.838 778.853 149.851 772.632 147.876C766.51 145.901 761.722 143.235 758.266 139.878L764.634 115.588C767.498 119.538 771.447 122.994 776.483 125.956C781.618 128.918 786.9 130.399 792.331 130.399C795.984 130.399 798.601 129.708 800.181 128.326C801.859 126.943 802.698 125.265 802.698 123.29C802.698 121.019 801.859 119.39 800.181 118.402C798.502 117.316 796.774 116.427 794.997 115.736L782.556 110.997C779.791 109.911 776.631 108.43 773.077 106.554C769.522 104.677 766.412 102.011 763.746 98.5556C761.178 95.0997 759.895 90.5577 759.895 84.9295C759.895 79.7951 761.178 75.0556 763.746 70.711C766.313 66.3665 770.016 62.8612 774.854 60.1953C779.791 57.4306 785.715 56.0482 792.627 56.0482C799.045 56.0482 805.019 57.1343 810.548 59.3066C816.176 61.4789 820.274 63.898 822.841 66.564L816.917 89.9653C813.56 85.6207 809.561 82.3129 804.92 80.0419C800.378 77.6722 796.034 76.4873 791.886 76.4873C788.727 76.4873 786.406 77.1291 784.925 78.4127C783.444 79.6964 782.704 81.1774 782.704 82.856C782.704 84.1396 783.197 85.4232 784.185 86.7068C785.271 87.8917 787.048 88.9779 789.517 89.9653L801.069 94.2604C804.426 95.4453 807.981 97.0251 811.733 98.9999C815.584 100.975 818.842 103.739 821.508 107.294C824.174 110.75 825.507 115.539 825.507 121.661C825.507 130.251 822.298 137.262 815.88 142.692C809.561 148.123 801.267 150.838 790.998 150.838Z" fill="#3A3A3A"/>\r
7
+ <path d="M721.775 147.876L686.377 98.9999L715.555 59.0104H743.251L714.518 96.7783L752.138 147.876H721.775ZM662.68 147.876V5.69104H688.451V147.876H662.68Z" fill="#3A3A3A"/>\r
8
+ <path d="M594.574 147.876V59.0105H617.679V74.2657C620.74 69.1313 624.591 65.1817 629.232 62.417C633.971 59.5535 639.501 58.1218 645.82 58.1218L651.448 80.9307C649.572 80.3382 647.449 80.042 645.08 80.042C637.674 80.042 631.7 82.4611 627.158 87.2994C622.616 92.0389 620.345 98.8519 620.345 107.738V147.876H594.574Z" fill="#3A3A3A"/>\r
9
+ <path d="M531.48 150.838C522.692 150.838 514.645 148.715 507.338 144.469C500.031 140.224 494.205 134.497 489.861 127.289C485.615 120.081 483.492 112.132 483.492 103.443C483.492 94.6554 485.615 86.7069 489.861 79.5976C494.205 72.3896 500.031 66.6627 507.338 62.4169C514.645 58.1711 522.692 56.0482 531.48 56.0482C540.366 56.0482 548.413 58.1711 555.621 62.4169C562.928 66.6627 568.704 72.3896 572.95 79.5976C577.295 86.7069 579.467 94.6554 579.467 103.443C579.467 112.132 577.295 120.081 572.95 127.289C568.704 134.497 562.928 140.224 555.621 144.469C548.413 148.715 540.366 150.838 531.48 150.838ZM531.48 127.733C535.923 127.733 539.922 126.647 543.476 124.475C547.13 122.302 549.993 119.39 552.067 115.736C554.239 111.984 555.325 107.886 555.325 103.443C555.325 98.9012 554.239 94.8035 552.067 91.1501C549.993 87.4968 547.13 84.5839 543.476 82.4117C539.922 80.2394 535.923 79.1533 531.48 79.1533C527.036 79.1533 522.988 80.2394 519.335 82.4117C515.78 84.5839 512.917 87.4968 510.744 91.1501C508.671 94.8035 507.634 98.9012 507.634 103.443C507.634 107.886 508.671 111.984 510.744 115.736C512.917 119.39 515.78 122.302 519.335 124.475C522.988 126.647 527.036 127.733 531.48 127.733Z" fill="#3A3A3A"/>\r
10
+ <path d="M379.621 152.319L335.336 59.0104H363.032L376.658 87.5955C377.942 90.064 379.226 92.7793 380.509 95.7415C381.793 98.605 383.077 101.863 384.36 105.517C385.742 102.061 387.075 99.0493 388.359 96.4821C389.741 93.8161 391.074 91.2489 392.358 88.7804L409.094 56.0482L426.423 88.7804C427.608 90.9527 428.842 93.3718 430.126 96.0377C431.508 98.7037 432.841 101.863 434.125 105.517C435.408 101.567 436.643 98.21 437.828 95.4453C439.111 92.6806 440.345 90.064 441.53 87.5955L455.156 59.0104H481.668L437.383 152.319L417.092 118.106C415.512 115.539 414.031 112.922 412.649 110.256C411.267 107.59 409.884 104.776 408.502 101.814C407.218 104.776 405.836 107.59 404.355 110.256C402.973 112.922 401.491 115.539 399.912 118.106L379.621 152.319Z" fill="#3A3A3A"/>\r
11
+ <path d="M298.945 192.309V142.248C295.687 144.717 292.034 146.642 287.985 148.024C283.937 149.505 279.543 150.246 274.804 150.246C266.509 150.246 259.005 148.123 252.291 143.877C245.577 139.631 240.195 134.003 236.147 126.993C232.197 119.884 230.223 112.034 230.223 103.443C230.223 94.8531 232.197 87.0033 236.147 79.894C240.195 72.7848 245.577 67.1566 252.291 63.0096C259.005 58.7638 266.509 56.6409 274.804 56.6409C280.432 56.6409 285.616 57.6283 290.355 59.6031C295.095 61.5779 299.143 64.2932 302.5 67.7491V59.0106H324.716V192.309H298.945ZM277.766 127.585C282.11 127.585 286.06 126.499 289.615 124.327C293.169 122.155 295.983 119.242 298.057 115.588C300.229 111.935 301.315 107.887 301.315 103.443C301.315 99.0002 300.229 94.9518 298.057 91.2985C295.983 87.6451 293.169 84.7323 289.615 82.56C286.06 80.3877 282.11 79.3016 277.766 79.3016C273.421 79.3016 269.472 80.3877 265.917 82.56C262.362 84.7323 259.499 87.6451 257.327 91.2985C255.253 94.9518 254.216 99.0002 254.216 103.443C254.216 107.887 255.253 111.935 257.327 115.588C259.499 119.242 262.362 122.155 265.917 124.327C269.472 126.499 273.421 127.585 277.766 127.585Z" fill="#FF6503"/>\r
12
+ <path d="M189.143 147.876V59.0104H214.914V147.876H189.143ZM202.028 46.1249C198.177 46.1249 194.919 44.7919 192.253 42.1259C189.587 39.46 188.254 36.2015 188.254 32.3507C188.254 28.4011 189.587 25.1427 192.253 22.5755C194.919 19.9095 198.177 18.5765 202.028 18.5765C205.978 18.5765 209.236 19.9095 211.803 22.5755C214.469 25.1427 215.802 28.4011 215.802 32.3507C215.802 36.2015 214.469 39.46 211.803 42.1259C209.236 44.7919 205.978 46.1249 202.028 46.1249Z" fill="#FF6503"/>\r
13
+ </svg>\r
14
+ `;
15
+ export {
16
+ C as default
17
+ };
@@ -1,9 +1,9 @@
1
- const t = `<svg width="677" height="871" viewBox="0 0 677 871" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M404.819 105.235L321.341 58.9021L4.52229 244.483C-23.4186 544.848 80.1961 750.912 257.737 870.243C97.077 686.299 70.4939 408.442 83.1061 293.962L404.819 105.235Z" fill="#FF6503"/>
3
- <path d="M508.041 43.6577L423.636 0L340.188 48.1021L422.851 93.9053L508.041 43.6577Z" fill="white"/>
4
- <path d="M175.777 343.441C131.537 620.521 211.673 810.092 257.271 870.243C257.271 870.243 243.116 815.639 236.895 780.08C210.43 628.804 220.887 521.564 251.448 387.099L586.157 195.005C578.629 309.592 515.577 556.006 333.006 717.401C419.452 677.319 533.26 611.806 573.124 538.384C571.06 542.874 588.334 511.887 586.157 516.288C665.109 363.072 675.851 234.282 676.385 139.704L594.891 93.1365L175.777 343.441Z" fill="#FF6503"/>
5
- <path d="M560.722 567.108C493.083 687.956 237.408 783.101 237.408 783.101C237.408 783.101 239.731 799.48 245.524 823.143C251.317 846.806 257.135 870.039 257.135 870.039C340.557 827.201 469.635 738.009 560.722 567.108Z" fill="white"/>
6
- </svg>
1
+ const t = `<svg width="677" height="871" viewBox="0 0 677 871" fill="none" xmlns="http://www.w3.org/2000/svg">\r
2
+ <path d="M404.819 105.235L321.341 58.9021L4.52229 244.483C-23.4186 544.848 80.1961 750.912 257.737 870.243C97.077 686.299 70.4939 408.442 83.1061 293.962L404.819 105.235Z" fill="#FF6503"/>\r
3
+ <path d="M508.041 43.6577L423.636 0L340.188 48.1021L422.851 93.9053L508.041 43.6577Z" fill="white"/>\r
4
+ <path d="M175.777 343.441C131.537 620.521 211.673 810.092 257.271 870.243C257.271 870.243 243.116 815.639 236.895 780.08C210.43 628.804 220.887 521.564 251.448 387.099L586.157 195.005C578.629 309.592 515.577 556.006 333.006 717.401C419.452 677.319 533.26 611.806 573.124 538.384C571.06 542.874 588.334 511.887 586.157 516.288C665.109 363.072 675.851 234.282 676.385 139.704L594.891 93.1365L175.777 343.441Z" fill="#FF6503"/>\r
5
+ <path d="M560.722 567.108C493.083 687.956 237.408 783.101 237.408 783.101C237.408 783.101 239.731 799.48 245.524 823.143C251.317 846.806 257.135 870.039 257.135 870.039C340.557 827.201 469.635 738.009 560.722 567.108Z" fill="white"/>\r
6
+ </svg>\r
7
7
  `;
8
8
  export {
9
9
  t as default
@@ -1 +1 @@
1
- {"version":3,"file":"CustomLegends.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/CustomLegends/CustomLegends.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,aAAa,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAIpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAU7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC"}
1
+ {"version":3,"file":"CustomLegends.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/CustomLegends/CustomLegends.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,aAAa,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAIpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAU7B,CAAC;AAiBF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GaugeChart.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/GaugeChart/GaugeChart.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,UAAU,MAAM,SAAS,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAIjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAwBxB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC"}
1
+ {"version":3,"file":"GaugeChart.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/GaugeChart/GaugeChart.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,UAAU,MAAM,SAAS,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAIjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AA0BF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC"}
@@ -70,7 +70,7 @@ const Z = (n) => `
70
70
  formatSliderLabel: E = (P) => `${P.toFixed(1)}Y`,
71
71
  hasData: d = !0
72
72
  }) => {
73
- const [P, W] = v(0), x = D(null), [a, S] = v(g), [l, C] = v(h), j = A, y = $ > 0 ? j / $ * 100 : 0, G = 25;
73
+ const [P, W] = v(0), x = D(null), [a, S] = v(g), [l, C] = v(h), j = A, y = $ > 0 ? j / $ * 100 : 0, _ = 25;
74
74
  w(() => {
75
75
  const t = () => {
76
76
  if (x.current) {
@@ -84,7 +84,7 @@ const Z = (n) => `
84
84
  }, [g]), w(() => {
85
85
  C(h);
86
86
  }, [h]);
87
- const U = k(
87
+ const G = k(
88
88
  () => ({
89
89
  responsive: !0,
90
90
  maintainAspectRatio: !1,
@@ -108,7 +108,7 @@ const Z = (n) => `
108
108
  }
109
109
  }),
110
110
  [n]
111
- ), X = k(
111
+ ), U = k(
112
112
  () => ({
113
113
  datasets: [
114
114
  {
@@ -128,7 +128,7 @@ const Z = (n) => `
128
128
  ]
129
129
  }),
130
130
  [y, d]
131
- ), _ = f(
131
+ ), X = f(
132
132
  (t) => {
133
133
  const r = parseFloat(t.target.value);
134
134
  S(r);
@@ -153,7 +153,7 @@ const Z = (n) => `
153
153
  }, [u, m]);
154
154
  return /* @__PURE__ */ s("div", { className: "retention flex flex-col items-center rounded-xl select-none p-3", children: [
155
155
  /* @__PURE__ */ e("div", { className: "w-full flex flex-col items-center justify-center p-2 mb-4", children: /* @__PURE__ */ s("div", { className: "relative w-11/12 h-64 flex items-center justify-center", children: [
156
- /* @__PURE__ */ e(Q, { data: X, options: U }),
156
+ /* @__PURE__ */ e(Q, { data: U, options: G }),
157
157
  /* @__PURE__ */ e("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: d ? /* @__PURE__ */ s(F, { children: [
158
158
  /* @__PURE__ */ e("span", { className: "text-xl font-bold", style: { color: "var(--chart-text-color)" }, children: j.toLocaleString() }),
159
159
  /* @__PURE__ */ e("span", { className: "text-xs", style: { color: "var(--secondary-text-color)" }, children: n })
@@ -163,7 +163,7 @@ const Z = (n) => `
163
163
  ] }) })
164
164
  ] }) }),
165
165
  I && /* @__PURE__ */ e("div", { className: "w-full px-6", children: /* @__PURE__ */ s("div", { className: "relative w-full", ref: x, children: [
166
- /* @__PURE__ */ e("style", { children: Z(G) }),
166
+ /* @__PURE__ */ e("style", { children: Z(_) }),
167
167
  /* @__PURE__ */ e("div", { className: "absolute top-0 w-full h-1 rounded-full", style: B }),
168
168
  /* @__PURE__ */ e(
169
169
  "input",
@@ -173,7 +173,7 @@ const Z = (n) => `
173
173
  max: b,
174
174
  step: N,
175
175
  value: a,
176
- onChange: _,
176
+ onChange: X,
177
177
  onMouseUp: z,
178
178
  onTouchEnd: z,
179
179
  className: "w-full"
@@ -31,7 +31,7 @@ const Re = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZX
31
31
  if (typeof window > "u") return;
32
32
  (async () => {
33
33
  try {
34
- const o = await import("../../node_modules/jquery/dist/jquery.mjs").then((u) => u.j);
34
+ const o = await import("../../_virtual/jquery.mjs").then((u) => u.j);
35
35
  U.current = o.default, je(!0), await import("../../node_modules/jstree/dist/jstree.mjs").then((u) => u.j), Ie(!0);
36
36
  } catch (o) {
37
37
  console.error("Failed to load jQuery or jstree:", o);
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { FaviconProductKey } from '../components/Favicons';
2
3
 
3
4
  export type Theme = 'light' | 'dark';
4
5
  export interface ThemeConfig {
@@ -44,6 +45,11 @@ export interface ThemeProviderProps {
44
45
  defaultTheme?: Theme;
45
46
  config?: Partial<ThemeConfig>;
46
47
  storageKey?: string;
48
+ /**
49
+ * Product key for favicon. When provided, automatically sets and updates
50
+ * the favicon based on the current theme (light icon for dark mode, dark icon for light mode).
51
+ */
52
+ favicon?: FaviconProductKey;
47
53
  }
48
54
  export declare const ThemeProvider: React.FC<ThemeProviderProps>;
49
55
  export declare const useTheme: () => ThemeContextType;
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/context/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkE,MAAM,OAAO,CAAC;AAEvF,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,MAAM,WAAW,WAAW;IAE1B,WAAW,CAAC,EAAE,MAAM,CAAC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B,CAAC"}
@@ -1,5 +1,6 @@
1
- import { jsx as B } from "react/jsx-runtime";
2
- import { useState as g, useMemo as p, useEffect as x, createContext as T, useContext as y } from "react";
1
+ import { jsxs as p, jsx as x } from "react/jsx-runtime";
2
+ import { useState as u, useMemo as T, useEffect as y, createContext as k, useContext as S } from "react";
3
+ import { useFavicon as v } from "../components/Favicons/index.mjs";
3
4
  const t = {
4
5
  // Brand colors - IQ Works palette (HSL format for Tailwind opacity support)
5
6
  brandOrange: "25 100% 50%",
@@ -60,7 +61,7 @@ const t = {
60
61
  // Fonts - Inter for body, Manrope for headings
61
62
  fontFamily: "'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
62
63
  fontFamilyHeading: "'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
63
- }, k = {
64
+ }, w = {
64
65
  bgColor: "0 0% 23%",
65
66
  // #3a3a3a
66
67
  textColor: "210 20% 98%",
@@ -102,36 +103,41 @@ const t = {
102
103
  // #bbf7d0 green-200
103
104
  statusSuccessBorder: "142 64% 24%"
104
105
  // #166534 green-800
105
- }, u = T(void 0), W = ({
106
+ }, b = k(void 0);
107
+ function E({ product: s, theme: a }) {
108
+ return v(s, { theme: a === "dark" ? "light" : "dark" }), null;
109
+ }
110
+ const M = ({
106
111
  children: s,
107
- defaultTheme: c,
108
- config: a = {},
109
- storageKey: n = "theme"
112
+ defaultTheme: a,
113
+ config: n = {},
114
+ storageKey: d = "theme",
115
+ favicon: i
110
116
  }) => {
111
- const b = () => {
117
+ const C = () => {
112
118
  if (typeof window < "u") {
113
- const o = localStorage.getItem(n);
119
+ const o = localStorage.getItem(d);
114
120
  if (o === "light" || o === "dark")
115
121
  return o;
116
122
  }
117
- return c || (typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
118
- }, [e, i] = g(b), [d, C] = g(() => ({
123
+ return a || (typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
124
+ }, [e, g] = u(C), [l, h] = u(() => ({
119
125
  ...t,
120
- ...a
121
- })), r = p(() => e === "dark" ? {
122
- ...d,
123
- ...k,
126
+ ...n
127
+ })), r = T(() => e === "dark" ? {
128
+ ...l,
129
+ ...w,
124
130
  // User config takes precedence
125
- ...a
131
+ ...n
126
132
  } : {
127
- ...d,
128
- ...a
129
- }, [e, d, a]);
130
- x(() => {
133
+ ...l,
134
+ ...n
135
+ }, [e, l, n]);
136
+ y(() => {
131
137
  if (typeof window > "u") return;
132
138
  const o = window.document.documentElement;
133
- o.classList.remove(e === "light" ? "dark" : "light"), o.classList.add(e), localStorage.setItem(n, e);
134
- const l = {
139
+ o.classList.remove(e === "light" ? "dark" : "light"), o.classList.add(e), localStorage.setItem(d, e);
140
+ const c = {
135
141
  // Brand colors (HSL format for Tailwind opacity support)
136
142
  "--brand-orange": r.brandOrange || t.brandOrange,
137
143
  "--brand-dark": r.brandDark || t.brandDark,
@@ -168,34 +174,37 @@ const t = {
168
174
  // Custom variables
169
175
  ...r.customVariables || {}
170
176
  };
171
- Object.entries(l).forEach(([m, f]) => {
172
- o.style.setProperty(m, f);
177
+ Object.entries(c).forEach(([f, B]) => {
178
+ o.style.setProperty(f, B);
173
179
  }), r.fontFamily && (document.body.style.fontFamily = r.fontFamily), document.body.style.backgroundColor = e === "dark" ? r.appBgColorDark || t.appBgColorDark : r.appBgColor || t.appBgColor;
174
- }, [e, r, n]);
175
- const h = {
180
+ }, [e, r, d]);
181
+ const m = {
176
182
  theme: e,
177
183
  toggleTheme: () => {
178
- i((o) => o === "light" ? "dark" : "light");
184
+ g((o) => o === "light" ? "dark" : "light");
179
185
  },
180
186
  setTheme: (o) => {
181
- i(o);
187
+ g(o);
182
188
  },
183
189
  config: r,
184
190
  updateConfig: (o) => {
185
- C((l) => ({
186
- ...l,
191
+ h((c) => ({
192
+ ...c,
187
193
  ...o
188
194
  }));
189
195
  }
190
196
  };
191
- return /* @__PURE__ */ B(u.Provider, { value: h, children: s });
192
- }, F = () => {
193
- const s = y(u);
197
+ return /* @__PURE__ */ p(b.Provider, { value: m, children: [
198
+ i && /* @__PURE__ */ x(E, { product: i, theme: e }),
199
+ s
200
+ ] });
201
+ }, O = () => {
202
+ const s = S(b);
194
203
  if (!s)
195
204
  throw new Error("useTheme must be used within a ThemeProvider");
196
205
  return s;
197
206
  };
198
207
  export {
199
- W as ThemeProvider,
200
- F as useTheme
208
+ M as ThemeProvider,
209
+ O as useTheme
201
210
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),gt=require("./index-CUUuCzyM.cjs"),Xo=require("react-dom");function ze(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,on=new RegExp(yn.source,"g");function Gi(e){return function(){return e}}function Zi(e){return function(t){return e(t)+""}}function qi(e,t){var n=yn.lastIndex=on.lastIndex=0,o,r,s,i=-1,c=[],a=[];for(e=e+"",t=t+"";(o=yn.exec(e))&&(r=on.exec(t));)(s=r.index)>n&&(s=t.slice(n,s),c[i]?c[i]+=s:c[++i]=s),(o=o[0])===(r=r[0])?c[i]?c[i]+=r:c[++i]=r:(c[++i]=null,a.push({i,x:ze(o,r)})),n=on.lastIndex;return n<t.length&&(s=t.slice(n),c[i]?c[i]+=s:c[++i]=s),c.length<2?a[0]?Zi(a[0].x):Gi(t):(t=a.length,function(u){for(var l=0,d;l<t;++l)c[(d=a[l]).i]=d.x(u);return c.join("")})}var ro=180/Math.PI,wn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Yo(e,t,n,o,r,s){var i,c,a;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(a=e*n+t*o)&&(n-=e*a,o-=t*a),(c=Math.sqrt(n*n+o*o))&&(n/=c,o/=c,a/=c),e*o<t*n&&(e=-e,t=-t,a=-a,i=-i),{translateX:r,translateY:s,rotate:Math.atan2(t,e)*ro,skewX:Math.atan(a)*ro,scaleX:i,scaleY:c}}var xt;function Qi(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?wn:Yo(t.a,t.b,t.c,t.d,t.e,t.f)}function Ji(e){return e==null||(xt||(xt=document.createElementNS("http://www.w3.org/2000/svg","g")),xt.setAttribute("transform",e),!(e=xt.transform.baseVal.consolidate()))?wn:(e=e.matrix,Yo(e.a,e.b,e.c,e.d,e.e,e.f))}function Uo(e,t,n,o){function r(u){return u.length?u.pop()+" ":""}function s(u,l,d,g,h,w){if(u!==d||l!==g){var m=h.push("translate(",null,t,null,n);w.push({i:m-4,x:ze(u,d)},{i:m-2,x:ze(l,g)})}else(d||g)&&h.push("translate("+d+t+g+n)}function i(u,l,d,g){u!==l?(u-l>180?l+=360:l-u>180&&(u+=360),g.push({i:d.push(r(d)+"rotate(",null,o)-2,x:ze(u,l)})):l&&d.push(r(d)+"rotate("+l+o)}function c(u,l,d,g){u!==l?g.push({i:d.push(r(d)+"skewX(",null,o)-2,x:ze(u,l)}):l&&d.push(r(d)+"skewX("+l+o)}function a(u,l,d,g,h,w){if(u!==d||l!==g){var m=h.push(r(h)+"scale(",null,",",null,")");w.push({i:m-4,x:ze(u,d)},{i:m-2,x:ze(l,g)})}else(d!==1||g!==1)&&h.push(r(h)+"scale("+d+","+g+")")}return function(u,l){var d=[],g=[];return u=e(u),l=e(l),s(u.translateX,u.translateY,l.translateX,l.translateY,d,g),i(u.rotate,l.rotate,d,g),c(u.skewX,l.skewX,d,g),a(u.scaleX,u.scaleY,l.scaleX,l.scaleY,d,g),u=l=null,function(h){for(var w=-1,m=g.length,_;++w<m;)d[(_=g[w]).i]=_.x(h);return d.join("")}}}var ji=Uo(Qi,"px, ","px)","deg)"),es=Uo(Ji,", ",")",")"),ts=1e-12;function io(e){return((e=Math.exp(e))+1/e)/2}function ns(e){return((e=Math.exp(e))-1/e)/2}function os(e){return((e=Math.exp(2*e))-1)/(e+1)}const rs=function e(t,n,o){function r(s,i){var c=s[0],a=s[1],u=s[2],l=i[0],d=i[1],g=i[2],h=l-c,w=d-a,m=h*h+w*w,_,y;if(m<ts)y=Math.log(g/u)/t,_=function(P){return[c+P*h,a+P*w,u*Math.exp(t*P*y)]};else{var x=Math.sqrt(m),N=(g*g-u*u+o*m)/(2*u*n*x),S=(g*g-u*u-o*m)/(2*g*n*x),C=Math.log(Math.sqrt(N*N+1)-N),M=Math.log(Math.sqrt(S*S+1)-S);y=(M-C)/t,_=function(P){var D=P*y,k=io(C),B=u/(n*x)*(k*os(t*D+C)-ns(C));return[c+B*h,a+B*w,u*k/io(t*D+C)]}}return _.duration=y*1e3*t/Math.SQRT2,_}return r.rho=function(s){var i=Math.max(.001,+s),c=i*i,a=c*c;return e(i,c,a)},r}(Math.SQRT2,2,4);function se(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=se(e[n]))!==""&&(t+=(t&&" ")+o);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var _n={exports:{}},rn={},bt={exports:{}},sn={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),gt=require("./index-C3yesVHM.cjs"),Xo=require("react-dom");function ze(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,on=new RegExp(yn.source,"g");function Gi(e){return function(){return e}}function Zi(e){return function(t){return e(t)+""}}function qi(e,t){var n=yn.lastIndex=on.lastIndex=0,o,r,s,i=-1,c=[],a=[];for(e=e+"",t=t+"";(o=yn.exec(e))&&(r=on.exec(t));)(s=r.index)>n&&(s=t.slice(n,s),c[i]?c[i]+=s:c[++i]=s),(o=o[0])===(r=r[0])?c[i]?c[i]+=r:c[++i]=r:(c[++i]=null,a.push({i,x:ze(o,r)})),n=on.lastIndex;return n<t.length&&(s=t.slice(n),c[i]?c[i]+=s:c[++i]=s),c.length<2?a[0]?Zi(a[0].x):Gi(t):(t=a.length,function(u){for(var l=0,d;l<t;++l)c[(d=a[l]).i]=d.x(u);return c.join("")})}var ro=180/Math.PI,wn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Yo(e,t,n,o,r,s){var i,c,a;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(a=e*n+t*o)&&(n-=e*a,o-=t*a),(c=Math.sqrt(n*n+o*o))&&(n/=c,o/=c,a/=c),e*o<t*n&&(e=-e,t=-t,a=-a,i=-i),{translateX:r,translateY:s,rotate:Math.atan2(t,e)*ro,skewX:Math.atan(a)*ro,scaleX:i,scaleY:c}}var xt;function Qi(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?wn:Yo(t.a,t.b,t.c,t.d,t.e,t.f)}function Ji(e){return e==null||(xt||(xt=document.createElementNS("http://www.w3.org/2000/svg","g")),xt.setAttribute("transform",e),!(e=xt.transform.baseVal.consolidate()))?wn:(e=e.matrix,Yo(e.a,e.b,e.c,e.d,e.e,e.f))}function Uo(e,t,n,o){function r(u){return u.length?u.pop()+" ":""}function s(u,l,d,g,h,w){if(u!==d||l!==g){var m=h.push("translate(",null,t,null,n);w.push({i:m-4,x:ze(u,d)},{i:m-2,x:ze(l,g)})}else(d||g)&&h.push("translate("+d+t+g+n)}function i(u,l,d,g){u!==l?(u-l>180?l+=360:l-u>180&&(u+=360),g.push({i:d.push(r(d)+"rotate(",null,o)-2,x:ze(u,l)})):l&&d.push(r(d)+"rotate("+l+o)}function c(u,l,d,g){u!==l?g.push({i:d.push(r(d)+"skewX(",null,o)-2,x:ze(u,l)}):l&&d.push(r(d)+"skewX("+l+o)}function a(u,l,d,g,h,w){if(u!==d||l!==g){var m=h.push(r(h)+"scale(",null,",",null,")");w.push({i:m-4,x:ze(u,d)},{i:m-2,x:ze(l,g)})}else(d!==1||g!==1)&&h.push(r(h)+"scale("+d+","+g+")")}return function(u,l){var d=[],g=[];return u=e(u),l=e(l),s(u.translateX,u.translateY,l.translateX,l.translateY,d,g),i(u.rotate,l.rotate,d,g),c(u.skewX,l.skewX,d,g),a(u.scaleX,u.scaleY,l.scaleX,l.scaleY,d,g),u=l=null,function(h){for(var w=-1,m=g.length,_;++w<m;)d[(_=g[w]).i]=_.x(h);return d.join("")}}}var ji=Uo(Qi,"px, ","px)","deg)"),es=Uo(Ji,", ",")",")"),ts=1e-12;function io(e){return((e=Math.exp(e))+1/e)/2}function ns(e){return((e=Math.exp(e))-1/e)/2}function os(e){return((e=Math.exp(2*e))-1)/(e+1)}const rs=function e(t,n,o){function r(s,i){var c=s[0],a=s[1],u=s[2],l=i[0],d=i[1],g=i[2],h=l-c,w=d-a,m=h*h+w*w,_,y;if(m<ts)y=Math.log(g/u)/t,_=function(P){return[c+P*h,a+P*w,u*Math.exp(t*P*y)]};else{var x=Math.sqrt(m),N=(g*g-u*u+o*m)/(2*u*n*x),S=(g*g-u*u-o*m)/(2*g*n*x),C=Math.log(Math.sqrt(N*N+1)-N),M=Math.log(Math.sqrt(S*S+1)-S);y=(M-C)/t,_=function(P){var D=P*y,k=io(C),B=u/(n*x)*(k*os(t*D+C)-ns(C));return[c+B*h,a+B*w,u*k/io(t*D+C)]}}return _.duration=y*1e3*t/Math.SQRT2,_}return r.rho=function(s){var i=Math.max(.001,+s),c=i*i,a=c*c;return e(i,c,a)},r}(Math.SQRT2,2,4);function se(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=se(e[n]))!==""&&(t+=(t&&" ")+o);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var _n={exports:{}},rn={},bt={exports:{}},sn={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.js
4
4
  *