@stakekit/widget 0.0.276 → 0.0.277

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 (54) hide show
  1. package/dist/bundle/index.bundle.css +1 -1
  2. package/dist/bundle/index.bundle.js +7 -7
  3. package/dist/package/index.package.css +1270 -1210
  4. package/dist/package/index.package.js +3249 -3152
  5. package/dist/types/components/atoms/box/index.d.ts +3 -3
  6. package/dist/types/components/atoms/button/styles.css.d.ts +3 -0
  7. package/dist/types/components/atoms/divider/styles.css.d.ts +1 -3
  8. package/dist/types/components/atoms/max-button/styles.css.d.ts +2 -8
  9. package/dist/types/components/atoms/select-modal/styles.css.d.ts +1 -9
  10. package/dist/types/components/molecules/summary-item/index.css.d.ts +21 -15
  11. package/dist/types/pages/details/activity-page/components/activity-filters/styles.css.d.ts +1 -1
  12. package/dist/types/pages/details/earn-page/components/select-token-section/styles.css.d.ts +6 -2
  13. package/dist/types/pages-dashboard/common/components/styles.css.d.ts +2 -4
  14. package/dist/types/pages-dashboard/common/components/tabs/styles.css.d.ts +8 -7
  15. package/dist/types/pages-dashboard/overview/earn-page/styles.css.d.ts +4 -8
  16. package/dist/types/pages-dashboard/overview/positions/styles.css.d.ts +3 -1
  17. package/dist/types/providers/theme-wrapper.d.ts +7 -0
  18. package/dist/types/styles/theme/atoms.css.d.ts +3 -3
  19. package/dist/types/styles/theme/contract.css.d.ts +7 -0
  20. package/dist/types/styles/theme/properties.d.ts +21 -0
  21. package/dist/types/styles/theme/themes.d.ts +14 -0
  22. package/dist/types/styles/tokens/colors/contract.d.ts +7 -0
  23. package/dist/website/assets/{basic-CpcEs1GD.js → basic-CjEpjfzf.js} +1 -1
  24. package/dist/website/assets/{basic-DU5w7kdv.js → basic-pwmIJ5Ws.js} +1 -1
  25. package/dist/website/assets/{browser-DvOBRbll.js → browser-CCqMUd7Y.js} +1 -1
  26. package/dist/website/assets/{build-Cr-Kp_EZ.js → build-B7EKreOf.js} +1 -1
  27. package/dist/website/assets/{build-rt6xIlo_.js → build-BJXYN5Yd.js} +1 -1
  28. package/dist/website/assets/{cardano-connector-Cmbkas8k.js → cardano-connector-Cpx-YJd6.js} +1 -1
  29. package/dist/website/assets/{core-BCBOJeDN.js → core-CJ6UoY0G.js} +2 -2
  30. package/dist/website/assets/{dist-cxjMJHcC.js → dist-BTQzphBJ.js} +1 -1
  31. package/dist/website/assets/{dist-D00tXgFF.js → dist-DUXhuB4w.js} +1 -1
  32. package/dist/website/assets/en_US-IFPOGBSL-DiQE412U.js +1 -0
  33. package/dist/website/assets/{esm-DwAVGOvO.js → esm-CU6m2Mgh.js} +1 -1
  34. package/dist/website/assets/{exports-Bd3_9cI2.js → exports-C-Rr_VQ2.js} +1 -1
  35. package/dist/website/assets/index-DOaPAEx0.css +1 -0
  36. package/dist/website/assets/{index-B7bJTB96.js → index-STnzu3ZH.js} +14 -14
  37. package/dist/website/assets/{index.es-pxgKNF2Q.js → index.es-DfIWVmF0.js} +2 -2
  38. package/dist/website/assets/{ledger-connector-Dl0ewoRv.js → ledger-connector-BL2CqkDZ.js} +1 -1
  39. package/dist/website/assets/{receive-Cb9X0-X3.js → receive-DbQB8Kb0.js} +1 -1
  40. package/dist/website/assets/{registry-qGhX95wF.js → registry-DQZCfZdW.js} +1 -1
  41. package/dist/website/assets/{safe-connector-fpbcUPyE.js → safe-connector-DpMirNdU.js} +1 -1
  42. package/dist/website/assets/{socials-IzpjXHEF.js → socials-CVEdW2YA.js} +1 -1
  43. package/dist/website/assets/{solana-connector-DMwmOYcE.js → solana-connector-D8iHz3KE.js} +1 -1
  44. package/dist/website/assets/{substrate-connector-BjmH8Kfk.js → substrate-connector-DzMk8xI3.js} +1 -1
  45. package/dist/website/assets/{ton-connector-CDdILKhA.js → ton-connector-DkGy3-Cc.js} +1 -1
  46. package/dist/website/assets/{tron-connector-CwTP3MOd.js → tron-connector-CK8wKQTX.js} +3 -3
  47. package/dist/website/assets/tx-4iZZqojA.js +1 -0
  48. package/dist/website/assets/{wallet-manager-cSwSAC9E.js → wallet-manager-_pvCvRVJ.js} +3 -3
  49. package/dist/website/assets/{wui-qr-code-CulBm8yY.js → wui-qr-code-DvTvu_mf.js} +1 -1
  50. package/dist/website/index.html +2 -2
  51. package/package.json +1 -1
  52. package/dist/website/assets/en_US-IFPOGBSL-CZkuvGib.js +0 -1
  53. package/dist/website/assets/index-Cm1198kl.css +0 -1
  54. package/dist/website/assets/tx-B1U8yUTO.js +0 -1
@@ -24,9 +24,9 @@ export declare const Box: import("react").ForwardRefExoticComponent<Omit<AllHTML
24
24
  readonly borderWidth?: 1 | 2 | 3 | 0.5 | undefined;
25
25
  readonly borderStyle?: "solid" | undefined;
26
26
  readonly overflowWrap?: "normal" | "break-word" | "anywhere" | undefined;
27
- readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
28
- readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
29
- readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
27
+ readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
28
+ readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
29
+ readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
30
30
  } & {
31
31
  readonly display?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | {
32
32
  mobile?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | undefined;
@@ -76,6 +76,9 @@ export declare const buttonStyle: import("@vanilla-extract/recipes").RuntimeFn<{
76
76
  };
77
77
  size: {
78
78
  regular: string;
79
+ compact: (string | {
80
+ borderRadius: `var(--${string})`;
81
+ })[];
79
82
  small: string[];
80
83
  };
81
84
  }>;
@@ -1,8 +1,6 @@
1
1
  export declare const divider: import("@vanilla-extract/recipes").RuntimeFn<{
2
2
  variant: {
3
3
  default: string;
4
- utila: {
5
- background: "#e4e4e7";
6
- };
4
+ utila: string;
7
5
  };
8
6
  }>;
@@ -1,20 +1,14 @@
1
1
  export declare const container: import("@vanilla-extract/recipes").RuntimeFn<{
2
2
  variant: {
3
3
  default: string;
4
- utila: ({
4
+ utila: (string | {
5
5
  borderRadius: "4px";
6
- background?: undefined;
7
- } | {
8
- background: "#F4F5FF";
9
- borderRadius?: undefined;
10
6
  })[];
11
7
  };
12
8
  }>;
13
9
  export declare const text: import("@vanilla-extract/recipes").RuntimeFn<{
14
10
  variant: {
15
11
  default: string;
16
- utila: (string | {
17
- color: "#5C70FF";
18
- })[];
12
+ utila: string[];
19
13
  };
20
14
  }>;
@@ -7,14 +7,6 @@ export declare const selectModalGroupLabel: string;
7
7
  export declare const selectedListItem: import("@vanilla-extract/recipes").RuntimeFn<{
8
8
  variant: {
9
9
  default: {};
10
- utila: {
11
- background: "#4A60FF14";
12
- border: "1px solid #4A60FF";
13
- selectors: {
14
- "&:hover": {
15
- background: "#4A60FF14";
16
- };
17
- };
18
- };
10
+ utila: {};
19
11
  };
20
12
  }>;
@@ -1,7 +1,9 @@
1
1
  import { type RecipeVariants } from "@vanilla-extract/recipes";
2
2
  export declare const summaryContainer: import("@vanilla-extract/recipes").RuntimeFn<{
3
3
  variant: {
4
- default: string[];
4
+ default: {
5
+ gap: "24px";
6
+ };
5
7
  utila: {
6
8
  gap: "24px";
7
9
  };
@@ -22,10 +24,11 @@ export declare const summaryItem: import("@vanilla-extract/recipes").RuntimeFn<{
22
24
  };
23
25
  variant: {
24
26
  default: (string | {
25
- boxShadow: "0px 15px 30px 0px #0000000D";
27
+ borderRadius: "8px";
28
+ borderWidth: "1px";
29
+ borderStyle: "solid";
26
30
  })[];
27
31
  utila: (string | {
28
- borderColor: "#e4e4e7";
29
32
  borderRadius: "8px";
30
33
  borderWidth: "1px";
31
34
  borderStyle: "solid";
@@ -42,9 +45,9 @@ export declare const summaryItem: import("@vanilla-extract/recipes").RuntimeFn<{
42
45
  }>;
43
46
  export declare const summaryNumber: import("@vanilla-extract/recipes").RuntimeFn<{
44
47
  variant: {
45
- default: {
46
- fontSize: "28px";
47
- };
48
+ default: (string | {
49
+ fontSize: "18px";
50
+ })[];
48
51
  utila: (string | {
49
52
  fontSize: "18px";
50
53
  })[];
@@ -60,8 +63,8 @@ export declare const summaryNumber: import("@vanilla-extract/recipes").RuntimeFn
60
63
  export declare const summaryLabelContainer: import("@vanilla-extract/recipes").RuntimeFn<{
61
64
  variant: {
62
65
  default: {
63
- borderRadius: "9px";
64
- padding: "12px 10px";
66
+ borderRadius: "4px";
67
+ padding: "2px 6px";
65
68
  };
66
69
  utila: {
67
70
  borderRadius: "4px";
@@ -78,22 +81,25 @@ export declare const summaryLabelContainer: import("@vanilla-extract/recipes").R
78
81
  };
79
82
  type: {
80
83
  staked: {
81
- background: "#F0EDFA";
82
- color: "#5A36C0";
84
+ background: `var(--${string})`;
85
+ color: `var(--${string})`;
83
86
  };
84
87
  apy: {
85
- background: "#EDF1F5";
86
- color: "#0059AB";
88
+ background: `var(--${string})`;
89
+ color: `var(--${string})`;
87
90
  };
88
91
  available: {
89
- background: "#EDF6F3";
90
- color: "#00794E";
92
+ background: `var(--${string})`;
93
+ color: `var(--${string})`;
91
94
  };
92
95
  };
93
96
  }>;
94
97
  export declare const summaryLabel: import("@vanilla-extract/recipes").RuntimeFn<{
95
98
  variant: {
96
- default: {};
99
+ default: {
100
+ color: "inherit";
101
+ fontSize: "12px";
102
+ };
97
103
  utila: {
98
104
  color: "inherit";
99
105
  fontSize: "12px";
@@ -9,7 +9,7 @@ export declare const filterCount: import("@vanilla-extract/recipes").RuntimeFn<{
9
9
  state: {
10
10
  default: string;
11
11
  active: {
12
- background: "rgba(255, 255, 255, 0.2)";
12
+ background: `color-mix(in srgb, var(--${string}) 18%, transparent)`;
13
13
  };
14
14
  };
15
15
  }>;
@@ -1,7 +1,9 @@
1
1
  export declare const priceTxt: string;
2
2
  export declare const selectTokenSection: import("@vanilla-extract/recipes").RuntimeFn<{
3
3
  variant: {
4
- default: string;
4
+ default: {
5
+ background: "transparent";
6
+ };
5
7
  utila: {
6
8
  background: "transparent";
7
9
  };
@@ -17,7 +19,9 @@ export declare const selectTokenSection: import("@vanilla-extract/recipes").Runt
17
19
  }>;
18
20
  export declare const selectTokenTitle: import("@vanilla-extract/recipes").RuntimeFn<{
19
21
  variant: {
20
- default: {};
22
+ default: {
23
+ fontSize: "14px";
24
+ };
21
25
  utila: {
22
26
  fontSize: "14px";
23
27
  };
@@ -1,7 +1,7 @@
1
1
  export declare const wrapper: import("@vanilla-extract/recipes").RuntimeFn<{
2
2
  variant: {
3
3
  default: {
4
- borderRadius: "30px";
4
+ borderRadius: "14px";
5
5
  };
6
6
  utila: {
7
7
  borderRadius: "14px";
@@ -42,8 +42,6 @@ export declare const tabPageContainer: import("@vanilla-extract/recipes").Runtim
42
42
  export declare const tabPageDivider: import("@vanilla-extract/recipes").RuntimeFn<{
43
43
  variant: {
44
44
  default: string[];
45
- utila: {
46
- background: "#e4e4e7";
47
- }[];
45
+ utila: string[];
48
46
  };
49
47
  }>;
@@ -3,7 +3,7 @@ export declare const tabsGroupDivider: string;
3
3
  export declare const tab: import("@vanilla-extract/recipes").RuntimeFn<{
4
4
  variant: {
5
5
  default: {
6
- borderRadius: "9999px";
6
+ borderRadius: "8px";
7
7
  padding: "8px 16px";
8
8
  }[];
9
9
  utila: {
@@ -22,9 +22,7 @@ export declare const tab: import("@vanilla-extract/recipes").RuntimeFn<{
22
22
  export declare const tabBorder: string;
23
23
  export declare const tabContainer: import("@vanilla-extract/recipes").RuntimeFn<{
24
24
  variant: {
25
- default: {
26
- minWidth: "74px";
27
- };
25
+ default: {};
28
26
  utila: {};
29
27
  porto: {};
30
28
  finery: {
@@ -37,12 +35,13 @@ export declare const tabText: import("@vanilla-extract/recipes").RuntimeFn<{
37
35
  selected: {};
38
36
  };
39
37
  variant: {
40
- default: {};
38
+ default: (string | {
39
+ fontSize: "14px";
40
+ })[];
41
41
  utila: (string | {
42
42
  fontSize: "14px";
43
43
  })[];
44
44
  porto: (string | {
45
- color: "#87899C";
46
45
  fontSize: "14px";
47
46
  })[];
48
47
  };
@@ -51,7 +50,9 @@ export declare const tabsContainer: import("@vanilla-extract/recipes").RuntimeFn
51
50
  variant: {
52
51
  default: {
53
52
  gap: "4px";
54
- padding: "16px 24px";
53
+ padding: "8px";
54
+ paddingLeft: "24px";
55
+ paddingRight: "24px";
55
56
  };
56
57
  utila: {
57
58
  gap: "4px";
@@ -1,19 +1,15 @@
1
1
  export declare const container: string;
2
2
  export declare const changeButton: import("@vanilla-extract/recipes").RuntimeFn<{
3
3
  variant: {
4
- default: {};
5
- utila: {
6
- color: "#4A60FF";
7
- };
8
- porto: {
9
- color: "#AB95FF";
10
- };
4
+ default: string;
5
+ utila: string;
6
+ porto: string;
11
7
  finery: {};
12
8
  };
13
9
  }>;
14
10
  export declare const selectTokenTitleContainer: import("@vanilla-extract/recipes").RuntimeFn<{
15
11
  variant: {
16
- default: {};
12
+ default: string;
17
13
  utila: string;
18
14
  porto: string;
19
15
  };
@@ -11,7 +11,9 @@ export declare const sectionHeader: string;
11
11
  export declare const sectionTitle: string;
12
12
  export declare const positionsTitle: import("@vanilla-extract/recipes").RuntimeFn<{
13
13
  variant: {
14
- default: string;
14
+ default: {
15
+ fontSize: "16px";
16
+ };
15
17
  utila: {
16
18
  fontSize: "16px";
17
19
  };
@@ -1,2 +1,9 @@
1
1
  import type { PropsWithChildren } from "react";
2
+ import { lightTheme } from "../styles/theme/themes";
3
+ import type { RecursivePartial } from "../types/utils";
4
+ import type { SettingsContextType } from "./settings/types";
5
+ export declare const getThemeOverrides: ({ baseTheme, variant, }: {
6
+ baseTheme: typeof lightTheme;
7
+ variant: SettingsContextType["variant"];
8
+ }) => RecursivePartial<typeof lightTheme>;
2
9
  export declare const ThemeWrapper: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -14,9 +14,9 @@ export declare const atoms: ((props: {
14
14
  readonly borderWidth?: 1 | 2 | 3 | 0.5 | undefined;
15
15
  readonly borderStyle?: "solid" | undefined;
16
16
  readonly overflowWrap?: "normal" | "break-word" | "anywhere" | undefined;
17
- readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
18
- readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
19
- readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | undefined;
17
+ readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
18
+ readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
19
+ readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
20
20
  } & {
21
21
  readonly display?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | {
22
22
  mobile?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | undefined;
@@ -12,6 +12,7 @@ export declare const vars: {
12
12
  backgroundMuted: `var(--${string})`;
13
13
  tokenSelectBackground: `var(--${string})`;
14
14
  tokenSelectHoverBackground: `var(--${string})`;
15
+ tokenSelectBorder: `var(--${string})`;
15
16
  tokenSelect: `var(--${string})`;
16
17
  skeletonLoaderBase: `var(--${string})`;
17
18
  skeletonLoaderHighlight: `var(--${string})`;
@@ -40,6 +41,12 @@ export declare const vars: {
40
41
  disabledButtonBackground: `var(--${string})`;
41
42
  dashboardDetailsSectionBackground: `var(--${string})`;
42
43
  summaryItemBackground: `var(--${string})`;
44
+ summaryLabelStakedBackground: `var(--${string})`;
45
+ summaryLabelStakedColor: `var(--${string})`;
46
+ summaryLabelApyBackground: `var(--${string})`;
47
+ summaryLabelApyColor: `var(--${string})`;
48
+ summaryLabelAvailableBackground: `var(--${string})`;
49
+ summaryLabelAvailableColor: `var(--${string})`;
43
50
  connectKit: {
44
51
  accentColor: `var(--${string})`;
45
52
  accentColorForeground: `var(--${string})`;
@@ -88,6 +88,7 @@ export declare const unresponsiveProperties: {
88
88
  backgroundMuted: `var(--${string})`;
89
89
  tokenSelectBackground: `var(--${string})`;
90
90
  tokenSelectHoverBackground: `var(--${string})`;
91
+ tokenSelectBorder: `var(--${string})`;
91
92
  tokenSelect: `var(--${string})`;
92
93
  skeletonLoaderBase: `var(--${string})`;
93
94
  skeletonLoaderHighlight: `var(--${string})`;
@@ -116,6 +117,12 @@ export declare const unresponsiveProperties: {
116
117
  disabledButtonBackground: `var(--${string})`;
117
118
  dashboardDetailsSectionBackground: `var(--${string})`;
118
119
  summaryItemBackground: `var(--${string})`;
120
+ summaryLabelStakedBackground: `var(--${string})`;
121
+ summaryLabelStakedColor: `var(--${string})`;
122
+ summaryLabelApyBackground: `var(--${string})`;
123
+ summaryLabelApyColor: `var(--${string})`;
124
+ summaryLabelAvailableBackground: `var(--${string})`;
125
+ summaryLabelAvailableColor: `var(--${string})`;
119
126
  connectKit: {
120
127
  accentColor: `var(--${string})`;
121
128
  accentColorForeground: `var(--${string})`;
@@ -162,6 +169,7 @@ export declare const unresponsiveProperties: {
162
169
  backgroundMuted: `var(--${string})`;
163
170
  tokenSelectBackground: `var(--${string})`;
164
171
  tokenSelectHoverBackground: `var(--${string})`;
172
+ tokenSelectBorder: `var(--${string})`;
165
173
  tokenSelect: `var(--${string})`;
166
174
  skeletonLoaderBase: `var(--${string})`;
167
175
  skeletonLoaderHighlight: `var(--${string})`;
@@ -190,6 +198,12 @@ export declare const unresponsiveProperties: {
190
198
  disabledButtonBackground: `var(--${string})`;
191
199
  dashboardDetailsSectionBackground: `var(--${string})`;
192
200
  summaryItemBackground: `var(--${string})`;
201
+ summaryLabelStakedBackground: `var(--${string})`;
202
+ summaryLabelStakedColor: `var(--${string})`;
203
+ summaryLabelApyBackground: `var(--${string})`;
204
+ summaryLabelApyColor: `var(--${string})`;
205
+ summaryLabelAvailableBackground: `var(--${string})`;
206
+ summaryLabelAvailableColor: `var(--${string})`;
193
207
  connectKit: {
194
208
  accentColor: `var(--${string})`;
195
209
  accentColorForeground: `var(--${string})`;
@@ -236,6 +250,7 @@ export declare const unresponsiveProperties: {
236
250
  backgroundMuted: `var(--${string})`;
237
251
  tokenSelectBackground: `var(--${string})`;
238
252
  tokenSelectHoverBackground: `var(--${string})`;
253
+ tokenSelectBorder: `var(--${string})`;
239
254
  tokenSelect: `var(--${string})`;
240
255
  skeletonLoaderBase: `var(--${string})`;
241
256
  skeletonLoaderHighlight: `var(--${string})`;
@@ -264,6 +279,12 @@ export declare const unresponsiveProperties: {
264
279
  disabledButtonBackground: `var(--${string})`;
265
280
  dashboardDetailsSectionBackground: `var(--${string})`;
266
281
  summaryItemBackground: `var(--${string})`;
282
+ summaryLabelStakedBackground: `var(--${string})`;
283
+ summaryLabelStakedColor: `var(--${string})`;
284
+ summaryLabelApyBackground: `var(--${string})`;
285
+ summaryLabelApyColor: `var(--${string})`;
286
+ summaryLabelAvailableBackground: `var(--${string})`;
287
+ summaryLabelAvailableColor: `var(--${string})`;
267
288
  connectKit: {
268
289
  accentColor: `var(--${string})`;
269
290
  accentColorForeground: `var(--${string})`;
@@ -12,6 +12,7 @@ export declare const lightTheme: {
12
12
  backgroundMuted: string;
13
13
  tokenSelectBackground: string;
14
14
  tokenSelectHoverBackground: string;
15
+ tokenSelectBorder: string;
15
16
  tokenSelect: string;
16
17
  skeletonLoaderBase: string;
17
18
  skeletonLoaderHighlight: string;
@@ -40,6 +41,12 @@ export declare const lightTheme: {
40
41
  disabledButtonBackground: string;
41
42
  dashboardDetailsSectionBackground: string;
42
43
  summaryItemBackground: string;
44
+ summaryLabelStakedBackground: string;
45
+ summaryLabelStakedColor: string;
46
+ summaryLabelApyBackground: string;
47
+ summaryLabelApyColor: string;
48
+ summaryLabelAvailableBackground: string;
49
+ summaryLabelAvailableColor: string;
43
50
  } & {
44
51
  connectKit: import("../tokens/connect-kit").ConnectKitTheme["colors"];
45
52
  };
@@ -232,6 +239,7 @@ export declare const darkTheme: {
232
239
  backgroundMuted: string;
233
240
  tokenSelectBackground: string;
234
241
  tokenSelectHoverBackground: string;
242
+ tokenSelectBorder: string;
235
243
  tokenSelect: string;
236
244
  skeletonLoaderBase: string;
237
245
  skeletonLoaderHighlight: string;
@@ -260,6 +268,12 @@ export declare const darkTheme: {
260
268
  disabledButtonBackground: string;
261
269
  dashboardDetailsSectionBackground: string;
262
270
  summaryItemBackground: string;
271
+ summaryLabelStakedBackground: string;
272
+ summaryLabelStakedColor: string;
273
+ summaryLabelApyBackground: string;
274
+ summaryLabelApyColor: string;
275
+ summaryLabelAvailableBackground: string;
276
+ summaryLabelAvailableColor: string;
263
277
  } & {
264
278
  connectKit: import("../tokens/connect-kit").ConnectKitTheme["colors"];
265
279
  };
@@ -12,6 +12,7 @@ declare const baseColorsContract: {
12
12
  backgroundMuted: string;
13
13
  tokenSelectBackground: string;
14
14
  tokenSelectHoverBackground: string;
15
+ tokenSelectBorder: string;
15
16
  tokenSelect: string;
16
17
  skeletonLoaderBase: string;
17
18
  skeletonLoaderHighlight: string;
@@ -40,6 +41,12 @@ declare const baseColorsContract: {
40
41
  disabledButtonBackground: string;
41
42
  dashboardDetailsSectionBackground: string;
42
43
  summaryItemBackground: string;
44
+ summaryLabelStakedBackground: string;
45
+ summaryLabelStakedColor: string;
46
+ summaryLabelApyBackground: string;
47
+ summaryLabelApyColor: string;
48
+ summaryLabelAvailableBackground: string;
49
+ summaryLabelAvailableColor: string;
43
50
  };
44
51
  export declare const colorsContract: typeof baseColorsContract & {
45
52
  connectKit: ConnectKitTheme["colors"];
@@ -1,4 +1,4 @@
1
- import{s as e}from"./chunk-CzyJ72yW.js";import{i as t,l as n,o as r,t as i}from"./lit-element-CPGuB_v8.js";import"./lit-CVrrzrGA.js";import{a,o,s,t as c}from"./class-map-BhcOy3ep.js";import"./class-map-fHNEycfA.js";import{n as l,t as u}from"./ref-CQce-LA_.js";import"./ref-Cjfeo2-0.js";import{t as ee}from"./browser-DvOBRbll.js";import{A as d,C as f,E as te,F as ne,O as p,S as m,T as h,_ as re,a as g,b as ie,g as _,i as ae,j as oe,k as v,n as y,p as se,r as b,s as x,u as ce,x as S,y as C}from"./ConstantsUtil-BucnOgVd.js";import"./wui-text-D1LKVPJb.js";import{n as le,t as ue}from"./ConnectorUtil-Dbdhp6gz.js";var de=n`
1
+ import{s as e}from"./chunk-CzyJ72yW.js";import{i as t,l as n,o as r,t as i}from"./lit-element-CPGuB_v8.js";import"./lit-CVrrzrGA.js";import{a,o,s,t as c}from"./class-map-BhcOy3ep.js";import"./class-map-fHNEycfA.js";import{n as l,t as u}from"./ref-CQce-LA_.js";import"./ref-Cjfeo2-0.js";import{t as ee}from"./browser-CCqMUd7Y.js";import{A as d,C as f,E as te,F as ne,O as p,S as m,T as h,_ as re,a as g,b as ie,g as _,i as ae,j as oe,k as v,n as y,p as se,r as b,s as x,u as ce,x as S,y as C}from"./ConstantsUtil-BucnOgVd.js";import"./wui-text-D1LKVPJb.js";import{n as le,t as ue}from"./ConnectorUtil-Dbdhp6gz.js";var de=n`
2
2
  :host {
3
3
  position: relative;
4
4
  background-color: var(--wui-color-gray-glass-002);
@@ -1,4 +1,4 @@
1
- import{s as e}from"./chunk-CzyJ72yW.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,h as u,i as d,j as f,k as ee,n as p,o as m,p as te,r as ne,t as h,u as re,x as g,y as _}from"./exports-CHrRDjNC.js";import{i as v,l as y,o as ie,t as b}from"./lit-element-CPGuB_v8.js";import"./lit-CDbVcvTE.js";import{d as ae,f as oe}from"./index-B7bJTB96.js";import{a as x,o as S,s as C,t as se}from"./class-map-BhcOy3ep.js";import{n as ce,t as le}from"./ref-CQce-LA_.js";import{t as ue}from"./browser-DvOBRbll.js";import"./wui-text-C_lTk8eD.js";var de=y`
1
+ import{s as e}from"./chunk-CzyJ72yW.js";import{A as t,C as n,D as r,E as i,O as a,S as o,T as s,_ as c,b as l,h as u,i as d,j as f,k as ee,n as p,o as m,p as te,r as ne,t as h,u as re,x as g,y as _}from"./exports-CHrRDjNC.js";import{i as v,l as y,o as ie,t as b}from"./lit-element-CPGuB_v8.js";import"./lit-CDbVcvTE.js";import{d as ae,f as oe}from"./index-STnzu3ZH.js";import{a as x,o as S,s as C,t as se}from"./class-map-BhcOy3ep.js";import{n as ce,t as le}from"./ref-CQce-LA_.js";import{t as ue}from"./browser-CCqMUd7Y.js";import"./wui-text-C_lTk8eD.js";var de=y`
2
2
  :host {
3
3
  position: relative;
4
4
  background-color: var(--wui-color-gray-glass-002);
@@ -1,4 +1,4 @@
1
- import{t as e}from"./chunk-CzyJ72yW.js";import{i as t}from"./index-B7bJTB96.js";var n=e(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),r=e((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),i=e((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),a=e(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),o=e(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),s=e((e=>{var t=r().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),c=e((e=>{var t=r().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),l=e((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),u=e((e=>{var t=i(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),d=e((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),f=e((e=>{var t=d();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),p=e(((e,t)=>{var n=f();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),m=e((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),h=e((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
1
+ import{t as e}from"./chunk-CzyJ72yW.js";import{i as t}from"./index-STnzu3ZH.js";var n=e(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),r=e((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),i=e((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),a=e(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),o=e(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),s=e((e=>{var t=r().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),c=e((e=>{var t=r().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),l=e((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),u=e((e=>{var t=i(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),d=e((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),f=e((e=>{var t=d();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),p=e(((e,t)=>{var n=f();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),m=e((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),h=e((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
2
2
  ]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^`+t+`$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),g=e((e=>{var t=m(),n=h();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),_=e((e=>{var t=r(),n=u(),a=i(),o=g(),s=m(),c=7973,l=t.getBCHDigit(c);function d(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function f(e,t){return o.getCharCountIndicator(e,t)+4}function p(e,t){let n=0;return e.forEach(function(e){let r=f(e.mode,t);n+=r+e.getBitsLength()}),n}function h(t,n){for(let r=1;r<=40;r++)if(p(t,r)<=e.getCapacity(r,n,o.MIXED))return r}e.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,i){if(!s.isValid(e))throw Error(`Invalid QR Code version`);i===void 0&&(i=o.BYTE);let a=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(i===o.MIXED)return a;let c=a-f(i,e);switch(i){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,r=a.from(t,a.M);if(Array.isArray(e)){if(e.length>1)return h(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return d(n.mode,n.getLength(),r)},e.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-l>=0;)n^=c<<t.getBCHDigit(n)-l;return e<<12|n}})),v=e((e=>{var t=r(),n=1335,i=21522,a=t.getBCHDigit(n);e.getEncodedBits=function(e,r){let o=e.bit<<3|r,s=o<<10;for(;t.getBCHDigit(s)-a>=0;)s^=n<<t.getBCHDigit(s)-a;return(o<<10|s)^i}})),y=e(((e,t)=>{var n=g();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),b=e(((e,t)=>{var n=g(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),x=e(((e,t)=>{t.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319&&n>r+1){var a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}})),S=e(((e,t)=>{var n=x(),r=g();function i(e){this.mode=r.BYTE,typeof e==`string`&&(e=n(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return e*8},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=i})),C=e(((e,t)=>{var n=g(),i=r();function a(e){this.mode=n.KANJI,this.data=e}a.getBitsLength=function(e){return e*13},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=a})),w=e((e=>{var n=g(),i=y(),a=b(),o=S(),s=C(),c=h(),l=r(),u=t();function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function p(e){let t=f(c.NUMERIC,n.NUMERIC,e),r=f(c.ALPHANUMERIC,n.ALPHANUMERIC,e),i,a;return l.isKanjiModeEnabled()?(i=f(c.BYTE,n.BYTE,e),a=f(c.KANJI,n.KANJI,e)):(i=f(c.BYTE_KANJI,n.BYTE,e),a=[]),t.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function m(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return a.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return o.getBitsLength(e)}}function _(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function v(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:d(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:d(i.data)}])}}return t}function x(e,t){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=m(r[o].lastCount+l.length,l.mode)-m(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=m(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,t))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function w(e,t){let r,c=n.getBestModeForData(e);if(r=n.from(t,c),r!==n.BYTE&&r.bit<c.bit)throw Error(`"`+e+`" cannot be encoded with mode `+n.toString(r)+`.
4
4
  Suggested mode is: `+n.toString(c));switch(r===n.KANJI&&!l.isKanjiModeEnabled()&&(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new a(e);case n.KANJI:return new s(e);case n.BYTE:return new o(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(w(t,null)):t.data&&e.push(w(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=x(v(p(t,l.isKanjiModeEnabled())),n),i=u.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(_(a))},e.rawSplit=function(t){return e.fromArray(p(t,l.isKanjiModeEnabled()))}})),T=e((e=>{var t=r(),n=i(),d=a(),f=o(),m=s(),h=c(),y=l(),b=u(),x=p(),S=_(),C=v(),T=g(),E=w();function D(e,t){let n=e.size,r=h.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function O(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function k(e,t){let n=m.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function A(e,t){let n=e.size,r=S.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function j(e,t,n){let r=e.size,i=C.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function M(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function N(e,n,r){let i=new d;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),T.getCharCountIndicator(t.mode,e)),t.write(i)});let a=(t.getSymbolTotalCodewords(e)-b.getTotalCodewordsCount(e,n))*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let o=(a-i.getLengthInBits())/8;for(let e=0;e<o;e++)i.put(e%2?17:236,8);return P(i,e,n)}function P(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-b.getTotalCodewordsCount(n,r),o=b.getBlocksCount(n,r),s=o-i%o,c=Math.floor(i/o),l=Math.floor(a/o),u=l+1,d=c-l,f=new x(d),p=0,m=Array(o),h=Array(o),g=0,_=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?l:u;m[e]=_.slice(p,p+t),h[e]=f.encode(m[e]),p+=t,g=Math.max(g,t)}let v=new Uint8Array(i),y=0,S,C;for(S=0;S<g;S++)for(C=0;C<o;C++)S<m[C].length&&(v[y++]=m[C][S]);for(S=0;S<d;S++)for(C=0;C<o;C++)v[y++]=h[C][S];return v}function F(e,n,r,i){let a;if(Array.isArray(e))a=E.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=E.rawSplit(e);t=S.getBestVersionForData(n,r)}a=E.fromString(e,t||40)}else throw Error(`Invalid data`);let o=S.getBestVersionForData(a,r);if(!o)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=o;else if(n<o)throw Error(`