From d6d1afbb3e4ac9e471f4459dd642ef5bde0736ab Mon Sep 17 00:00:00 2001 From: Markeljan Sokoli Date: Tue, 11 Mar 2025 00:21:22 -0400 Subject: [PATCH 1/2] fix scripts, apply prettier airbnb config --- package.json | 18 +- src/assets/bitte_animation.json | 3622 +++++------------ src/components/AccountContext.tsx | 14 +- src/components/BitteAiChat.tsx | 20 +- src/components/chat/AgentPill.tsx | 8 +- src/components/chat/BitteSpinner.tsx | 10 +- src/components/chat/ChatContent.tsx | 92 +- src/components/chat/ChatInput.tsx | 26 +- src/components/chat/CodeBlock.tsx | 4 +- src/components/chat/CopyStandard.tsx | 28 +- src/components/chat/ErrorBoundary.tsx | 4 +- src/components/chat/LoadingMessage.tsx | 6 +- src/components/chat/MarkdownTable.tsx | 29 +- src/components/chat/Message.tsx | 20 +- src/components/chat/MessageGroup.tsx | 84 +- .../DefaultChatContainer.tsx | 4 +- .../DefaultInputContainer.tsx | 4 +- .../DefaultLoadingIndicator.tsx | 8 +- .../DefaultMessageContainer.tsx | 44 +- .../DefaultSendButtonComponent.tsx | 14 +- .../DefaultTxApproveButton.tsx | 8 +- .../default-components/DefaultTxContainer.tsx | 6 +- .../DefaultTxDeclineButton.tsx | 8 +- .../chat/transactions/EvmTxCard.tsx | 102 +- .../chat/transactions/ReviewSignMessage.tsx | 82 +- .../chat/transactions/ReviewTransaction.tsx | 126 +- .../chat/transactions/ShowDetailsBtn.tsx | 2 +- .../chat/transactions/TransactionDetail.tsx | 4 +- .../chat/transactions/TransactionResult.tsx | 14 +- .../chat/transactions/TxAccordion.tsx | 15 +- src/components/chat/transactions/TxnBadge.tsx | 50 +- .../chat/transactions/TxnDetail.tsx | 22 +- .../transactions/TxnDetailMultipleAction.tsx | 20 +- src/components/chat/transactions/TxnFees.tsx | 24 +- .../chat/transactions/TxnListWrapper.tsx | 20 +- .../MultipleTxnDetail.tsx | 8 +- .../MultipleTxnMultiAction.tsx | 8 +- .../MultipleTxnSingleAction.tsx | 8 +- .../single-transaction/SingleTxnDetail.tsx | 6 +- .../SingleTxnMultipleAction.tsx | 8 +- .../SingleTxnSingleAction.tsx | 6 +- src/components/index.ts | 4 +- src/components/ui/ImageWithFallback.tsx | 2 +- src/components/ui/accordion.tsx | 29 +- src/components/ui/badge.tsx | 26 +- src/components/ui/button.tsx | 42 +- src/components/ui/card.tsx | 36 +- src/components/ui/chart.tsx | 129 +- src/components/ui/charts/AreaChart.tsx | 22 +- src/components/ui/charts/BarChart.tsx | 17 +- src/components/ui/charts/CandleChart.tsx | 66 +- src/components/ui/charts/ChartWrapper.tsx | 64 +- src/components/ui/charts/LineChart.tsx | 23 +- src/components/ui/table.tsx | 72 +- src/components/ui/textarea.tsx | 12 +- src/hooks/useAccountBalance.ts | 6 +- src/hooks/useHashParams.ts | 14 +- src/hooks/useTransaction.ts | 35 +- src/hooks/useTxnFees.ts | 28 +- src/hooks/useTxnPrice.ts | 46 +- src/hooks/useWindowSize.ts | 6 +- src/index.ts | 6 +- src/lib/animation-colors/colors.ts | 6 +- src/lib/animation-colors/solver.ts | 2 +- src/lib/chart-helpers.ts | 92 +- src/lib/chat.ts | 40 +- src/lib/constants.ts | 58 +- src/lib/fetchChatHistory.ts | 12 +- src/lib/images.ts | 4 +- src/lib/local-agent.ts | 36 +- src/lib/regex.ts | 6 +- src/lib/sign-message.ts | 22 +- src/lib/utils.ts | 48 +- src/types/index.ts | 2 +- src/types/transaction.ts | 30 +- src/types/types.ts | 60 +- 76 files changed, 2042 insertions(+), 3667 deletions(-) diff --git a/package.json b/package.json index 9e8c607..969ccd7 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,12 @@ "dist" ], "scripts": { + "dev": "tsup --watch", "build": "tsup --config tsup.config.ts", - "lint": "eslint src --ext .ts,tsx,js,jsx", - "lint:types": "tsc --noEmit", + "build:css": "tailwindcss -i ./src/style.css -o ./dist/styles.css --minify", + "typecheck": "tsc --noEmit", "prettier:write": "prettier --w src", - "clean": "rm -rf dist", - "build:css": "tailwindcss -i ./src/styles.css -o ./dist/styles.css --minify" + "clean": "rm -rf dist && rm -rf node_modules" }, "exports": { ".": { @@ -81,5 +81,13 @@ "viem": "^2.21.52", "wagmi": "^2.14.8", "zod": "^3.24.1" + }, + "prettier": { + "singleQuote": true, + "trailingComma": "all", + "useTabs": false, + "tabWidth": 2, + "semi": true, + "arrowParens": "always" } -} \ No newline at end of file +} diff --git a/src/assets/bitte_animation.json b/src/assets/bitte_animation.json index e2a0314..afcfcfd 100644 --- a/src/assets/bitte_animation.json +++ b/src/assets/bitte_animation.json @@ -9,2669 +9,1021 @@ "ddd": 0, "assets": [], "layers": [ - { - "ddd": 0, - "ind": 1, - "ty": 3, - "nm": "Adjustment Layer 1", - "sr": 1, - "ks": { + { + "ddd": 0, + "ind": 1, + "ty": 3, + "nm": "Adjustment Layer 1", + "sr": 1, + "ks": { + "o": { + "a": 0, + "k": 100, + "ix": 11 + }, + "r": { + "a": 0, + "k": 0, + "ix": 10 + }, + "p": { + "a": 0, + "k": [540, 540, 0], + "ix": 2, + "l": 2 + }, + "a": { + "a": 0, + "k": [540, 540, 0], + "ix": 1, + "l": 2 + }, + "s": { + "a": 0, + "k": [100, 100, 100], + "ix": 6, + "l": 2 + } + }, + "ao": 0, + "ef": [ + { + "ty": 5, + "nm": "Invert", + "np": 4, + "mn": "ADBE Invert", + "ix": 1, + "en": 1, + "ef": [ + { + "ty": 7, + "nm": "Channel", + "mn": "ADBE Invert-0001", + "ix": 1, + "v": { + "a": 0, + "k": 1, + "ix": 1 + } + }, + { + "ty": 0, + "nm": "Blend With Original", + "mn": "ADBE Invert-0002", + "ix": 2, + "v": { + "a": 0, + "k": 0, + "ix": 2 + } + } + ] + } + ], + "ip": -21.0000008553475, + "op": 279.000011363903, + "st": -21.0000008553475, + "bm": 0 + }, + { + "ddd": 0, + "ind": 2, + "ty": 4, + "nm": "star 1 Outlines", + "sr": 1, + "ks": { + "o": { + "a": 0, + "k": 100, + "ix": 11 + }, + "r": { + "a": 0, + "k": 0, + "ix": 10 + }, + "p": { + "a": 0, + "k": [522.185, 483.019, 0], + "ix": 2, + "l": 2 + }, + "a": { + "a": 0, + "k": [41.269, 41.27, 0], + "ix": 1, + "l": 2 + }, + "s": { + "a": 1, + "k": [ + { + "i": { + "x": [0.15, 0.15, 0.15], + "y": [1, 1, 1] + }, "o": { - "a": 0, - "k": 100, - "ix": 11 + "x": [0.23, 0.23, 0.23], + "y": [0, 0, 0] }, - "r": { - "a": 0, - "k": 0, - "ix": 10 + "t": 45, + "s": [0, 0, 100] + }, + { + "i": { + "x": [0.15, 0.15, 0.15], + "y": [1, 1, 1] }, - "p": { - "a": 0, - "k": [ - 540, - 540, - 0 - ], - "ix": 2, - "l": 2 + "o": { + "x": [0.695, 0.695, 0.167], + "y": [0, 0, 0] }, - "a": { - "a": 0, - "k": [ - 540, - 540, - 0 - ], - "ix": 1, - "l": 2 + "t": 74, + "s": [100, 100, 100] + }, + { + "i": { + "x": [0.667, 0.667, 0.667], + "y": [1, 1, 1] }, - "s": { - "a": 0, - "k": [ - 100, - 100, - 100 - ], - "ix": 6, - "l": 2 - } - }, - "ao": 0, - "ef": [ - { - "ty": 5, - "nm": "Invert", - "np": 4, - "mn": "ADBE Invert", - "ix": 1, - "en": 1, - "ef": [ - { - "ty": 7, - "nm": "Channel", - "mn": "ADBE Invert-0001", - "ix": 1, - "v": { - "a": 0, - "k": 1, - "ix": 1 - } - }, - { - "ty": 0, - "nm": "Blend With Original", - "mn": "ADBE Invert-0002", - "ix": 2, - "v": { - "a": 0, - "k": 0, - "ix": 2 - } - } - ] - } + "o": { + "x": [0.695, 0.695, 0.167], + "y": [0, 0, 0] + }, + "t": 81, + "s": [100, 100, 100] + }, + { + "t": 95.0000038694293, + "s": [0, 0, 100] + } ], - "ip": -21.0000008553475, - "op": 279.000011363903, - "st": -21.0000008553475, - "bm": 0 + "ix": 6, + "l": 2 + } }, - { - "ddd": 0, - "ind": 2, - "ty": 4, - "nm": "star 1 Outlines", - "sr": 1, - "ks": { - "o": { - "a": 0, - "k": 100, - "ix": 11 + "ao": 0, + "shapes": [ + { + "ty": "gr", + "it": [ + { + "ind": 0, + "ty": "sh", + "ix": 1, + "ks": { + "a": 0, + "k": { + "i": [ + [-0.883, -0.263], + [0, 0], + [-0.503, -0.503], + [-0.203, -0.682], + [0, 0], + [-0.739, -0.55], + [-0.921, 0], + [-0.738, 0.552], + [-0.264, 0.883], + [0, 0], + [-0.503, 0.503], + [-0.681, 0.203], + [0, 0], + [-0.551, 0.739], + [0, 0.922], + [0.551, 0.739], + [0.883, 0.264], + [0, 0], + [0.503, 0.502], + [0.203, 0.681], + [0, 0], + [0.739, 0.551], + [0.922, 0], + [0.739, -0.551], + [0.263, -0.883], + [0, 0], + [0.503, -0.503], + [0.681, -0.202], + [0, 0], + [0.551, -0.738], + [0, -0.921], + [-0.551, -0.739] + ], + "o": [ + [0, 0], + [0.681, 0.203], + [0.503, 0.503], + [0, 0], + [0.263, 0.883], + [0.739, 0.552], + [0.922, 0], + [0.739, -0.55], + [0, 0], + [0.203, -0.682], + [0.503, -0.503], + [0, 0], + [0.883, -0.263], + [0.551, -0.739], + [0, -0.921], + [-0.551, -0.738], + [0, 0], + [-0.681, -0.202], + [-0.503, -0.503], + [0, 0], + [-0.264, -0.883], + [-0.738, -0.551], + [-0.921, 0], + [-0.739, 0.551], + [0, 0], + [-0.203, 0.681], + [-0.503, 0.502], + [0, 0], + [-0.883, 0.264], + [-0.551, 0.739], + [0, 0.922], + [0.551, 0.739] + ], + "v": [ + [-37.962, 4.1], + [-14.089, 11.21], + [-12.285, 12.286], + [-11.21, 14.09], + [-4.1, 37.962], + [-2.557, 40.171], + [0, 41.02], + [2.557, 40.171], + [4.101, 37.962], + [11.21, 14.09], + [12.285, 12.286], + [14.089, 11.21], + [37.962, 4.1], + [40.171, 2.558], + [41.019, 0], + [40.171, -2.557], + [37.962, -4.1], + [14.089, -11.21], + [12.285, -12.284], + [11.21, -14.088], + [4.101, -37.962], + [2.557, -40.171], + [0, -41.02], + [-2.557, -40.171], + [-4.1, -37.962], + [-11.21, -14.088], + [-12.285, -12.284], + [-14.089, -11.21], + [-37.962, -4.1], + [-40.171, -2.557], + [-41.019, 0], + [-40.171, 2.558] + ], + "c": true + }, + "ix": 2 }, - "r": { - "a": 0, - "k": 0, - "ix": 10 + "nm": "Path 1", + "mn": "ADBE Vector Shape - Group", + "hd": false + }, + { + "ty": "fl", + "c": { + "a": 0, + "k": [0, 0, 0, 1], + "ix": 4 + }, + "o": { + "a": 0, + "k": 100, + "ix": 5 }, + "r": 1, + "bm": 0, + "nm": "Fill 1", + "mn": "ADBE Vector Graphic - Fill", + "hd": false + }, + { + "ty": "tr", "p": { - "a": 0, - "k": [ - 522.185, - 483.019, - 0 - ], - "ix": 2, - "l": 2 + "a": 0, + "k": [41.269, 41.27], + "ix": 2 }, "a": { - "a": 0, - "k": [ - 41.269, - 41.27, - 0 - ], - "ix": 1, - "l": 2 + "a": 0, + "k": [0, 0], + "ix": 1 }, "s": { - "a": 1, - "k": [ - { - "i": { - "x": [ - 0.15, - 0.15, - 0.15 - ], - "y": [ - 1, - 1, - 1 - ] - }, - "o": { - "x": [ - 0.23, - 0.23, - 0.23 - ], - "y": [ - 0, - 0, - 0 - ] - }, - "t": 45, - "s": [ - 0, - 0, - 100 - ] - }, - { - "i": { - "x": [ - 0.15, - 0.15, - 0.15 - ], - "y": [ - 1, - 1, - 1 - ] - }, - "o": { - "x": [ - 0.695, - 0.695, - 0.167 - ], - "y": [ - 0, - 0, - 0 - ] - }, - "t": 74, - "s": [ - 100, - 100, - 100 - ] - }, - { - "i": { - "x": [ - 0.667, - 0.667, - 0.667 - ], - "y": [ - 1, - 1, - 1 - ] - }, - "o": { - "x": [ - 0.695, - 0.695, - 0.167 - ], - "y": [ - 0, - 0, - 0 - ] - }, - "t": 81, - "s": [ - 100, - 100, - 100 - ] - }, + "a": 0, + "k": [100, 100], + "ix": 3 + }, + "r": { + "a": 0, + "k": 0, + "ix": 6 + }, + "o": { + "a": 0, + "k": 100, + "ix": 7 + }, + "sk": { + "a": 0, + "k": 0, + "ix": 4 + }, + "sa": { + "a": 0, + "k": 0, + "ix": 5 + }, + "nm": "Transform" + } + ], + "nm": "Group 1", + "np": 2, + "cix": 2, + "bm": 0, + "ix": 1, + "mn": "ADBE Vector Group", + "hd": false + } + ], + "ip": -21.0000008553475, + "op": 279.000011363903, + "st": -21.0000008553475, + "ct": 1, + "bm": 0 + }, + { + "ddd": 0, + "ind": 3, + "ty": 4, + "nm": "star 2 Outlines", + "sr": 1, + "ks": { + "o": { + "a": 0, + "k": 100, + "ix": 11 + }, + "r": { + "a": 0, + "k": 0, + "ix": 10 + }, + "p": { + "a": 1, + "k": [ + { + "i": { + "x": 0.667, + "y": 1 + }, + "o": { + "x": 0.693, + "y": 0 + }, + "t": 37, + "s": [540.525, 566.696, 0], + "to": [9, 0, 0], + "ti": [-9, 0, 0] + }, + { + "i": { + "x": 0.667, + "y": 0.667 + }, + "o": { + "x": 0.333, + "y": 0.333 + }, + "t": 62, + "s": [594.525, 566.696, 0], + "to": [0, 0, 0], + "ti": [0, 0, 0] + }, + { + "t": 74.0000030140818, + "s": [594.525, 566.696, 0] + } + ], + "ix": 2, + "l": 2 + }, + "a": { + "a": 0, + "k": [204.258, 69.681, 0], + "ix": 1, + "l": 2 + }, + "s": { + "a": 1, + "k": [ + { + "i": { + "x": [0.1, 0.1, 0.1], + "y": [1, 1, 1] + }, + "o": { + "x": [0.19, 0.19, 0.19], + "y": [0, 0, 0] + }, + "t": 0, + "s": [0, 0, 100] + }, + { + "i": { + "x": [0.1, 0.1, 0.1], + "y": [1, 1, 1] + }, + "o": { + "x": [0.167, 0.167, 0.167], + "y": [0, 0, 0] + }, + "t": 34, + "s": [100, 100, 100] + }, + { + "i": { + "x": [0.315, 0.315, 0.833], + "y": [1, 1, 1] + }, + "o": { + "x": [0.281, 0.281, 0.167], + "y": [0, 0, 0] + }, + "t": 81, + "s": [100, 100, 100] + }, + { + "t": 95.0000038694293, + "s": [0, 0, 100] + } + ], + "ix": 6, + "l": 2 + } + }, + "ao": 0, + "shapes": [ + { + "ty": "gr", + "it": [ + { + "ind": 0, + "ty": "sh", + "ix": 1, + "ks": { + "a": 1, + "k": [ + { + "i": { + "x": 0.271, + "y": 1 + }, + "o": { + "x": 0.333, + "y": 0 + }, + "t": 31, + "s": [ { - "t": 95.0000038694293, - "s": [ - 0, - 0, - 100 - ] + "i": [ + [-1.495, -0.445], + [0, 0], + [-0.851, -0.852], + [-0.344, -1.153], + [0, 0], + [-1.25, -0.932], + [-1.561, 0], + [-1.251, 0.932], + [-0.445, 1.496], + [0, 0], + [-0.852, 0.85], + [-1.153, 0.343], + [0, 0], + [-0.933, 1.251], + [0, 1.56], + [0.932, 1.25], + [1.496, 0.445], + [0, 0], + [0.85, 0.851], + [0.344, 1.154], + [0, 0], + [1.251, 0.933], + [1.559, 0], + [1.25, -0.932], + [0.445, -1.495], + [0, 0], + [0.851, -0.851], + [1.153, -0.344], + [0, 0], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251] + ], + "o": [ + [0, 0], + [1.153, 0.343], + [0.851, 0.85], + [0, 0], + [0.445, 1.496], + [1.25, 0.932], + [1.559, 0], + [1.251, -0.932], + [0, 0], + [0.344, -1.153], + [0.85, -0.852], + [0, 0], + [1.496, -0.445], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251], + [0, 0], + [-1.153, -0.344], + [-0.852, -0.851], + [0, 0], + [-0.445, -1.495], + [-1.251, -0.932], + [-1.561, 0], + [-1.25, 0.933], + [0, 0], + [-0.344, 1.154], + [-0.851, 0.851], + [0, 0], + [-1.495, 0.445], + [-0.933, 1.25], + [0, 1.559], + [0.932, 1.251] + ], + "v": [ + [-0.834, 6.896], + [44.729, 18.975], + [47.783, 20.794], + [49.603, 23.848], + [61.637, 64.255], + [64.249, 67.995], + [68.578, 69.431], + [72.906, 67.995], + [75.518, 64.255], + [87.551, 23.848], + [89.372, 20.794], + [92.425, 18.975], + [132.833, 6.94], + [136.572, 4.328], + [138.008, 0], + [136.572, -4.328], + [132.833, -6.94], + [92.425, -18.974], + [89.372, -20.794], + [87.551, -23.848], + [75.518, -64.257], + [72.906, -67.995], + [68.578, -69.431], + [64.249, -67.995], + [61.637, -64.257], + [49.603, -23.848], + [47.783, -20.794], + [44.729, -18.974], + [-0.834, -6.985], + [-4.572, -4.373], + [-6.008, -0.044], + [-4.572, 4.284] + ], + "c": true } - ], - "ix": 6, - "l": 2 - } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ + ] + }, + { + "i": { + "x": 0.667, + "y": 1 + }, + "o": { + "x": 0.693, + "y": 0 + }, + "t": 37, + "s": [ { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 0, - "k": { - "i": [ - [ - -0.883, - -0.263 - ], - [ - 0, - 0 - ], - [ - -0.503, - -0.503 - ], - [ - -0.203, - -0.682 - ], - [ - 0, - 0 - ], - [ - -0.739, - -0.55 - ], - [ - -0.921, - 0 - ], - [ - -0.738, - 0.552 - ], - [ - -0.264, - 0.883 - ], - [ - 0, - 0 - ], - [ - -0.503, - 0.503 - ], - [ - -0.681, - 0.203 - ], - [ - 0, - 0 - ], - [ - -0.551, - 0.739 - ], - [ - 0, - 0.922 - ], - [ - 0.551, - 0.739 - ], - [ - 0.883, - 0.264 - ], - [ - 0, - 0 - ], - [ - 0.503, - 0.502 - ], - [ - 0.203, - 0.681 - ], - [ - 0, - 0 - ], - [ - 0.739, - 0.551 - ], - [ - 0.922, - 0 - ], - [ - 0.739, - -0.551 - ], - [ - 0.263, - -0.883 - ], - [ - 0, - 0 - ], - [ - 0.503, - -0.503 - ], - [ - 0.681, - -0.202 - ], - [ - 0, - 0 - ], - [ - 0.551, - -0.738 - ], - [ - 0, - -0.921 - ], - [ - -0.551, - -0.739 - ] - ], - "o": [ - [ - 0, - 0 - ], - [ - 0.681, - 0.203 - ], - [ - 0.503, - 0.503 - ], - [ - 0, - 0 - ], - [ - 0.263, - 0.883 - ], - [ - 0.739, - 0.552 - ], - [ - 0.922, - 0 - ], - [ - 0.739, - -0.55 - ], - [ - 0, - 0 - ], - [ - 0.203, - -0.682 - ], - [ - 0.503, - -0.503 - ], - [ - 0, - 0 - ], - [ - 0.883, - -0.263 - ], - [ - 0.551, - -0.739 - ], - [ - 0, - -0.921 - ], - [ - -0.551, - -0.738 - ], - [ - 0, - 0 - ], - [ - -0.681, - -0.202 - ], - [ - -0.503, - -0.503 - ], - [ - 0, - 0 - ], - [ - -0.264, - -0.883 - ], - [ - -0.738, - -0.551 - ], - [ - -0.921, - 0 - ], - [ - -0.739, - 0.551 - ], - [ - 0, - 0 - ], - [ - -0.203, - 0.681 - ], - [ - -0.503, - 0.502 - ], - [ - 0, - 0 - ], - [ - -0.883, - 0.264 - ], - [ - -0.551, - 0.739 - ], - [ - 0, - 0.922 - ], - [ - 0.551, - 0.739 - ] - ], - "v": [ - [ - -37.962, - 4.1 - ], - [ - -14.089, - 11.21 - ], - [ - -12.285, - 12.286 - ], - [ - -11.21, - 14.09 - ], - [ - -4.1, - 37.962 - ], - [ - -2.557, - 40.171 - ], - [ - 0, - 41.02 - ], - [ - 2.557, - 40.171 - ], - [ - 4.101, - 37.962 - ], - [ - 11.21, - 14.09 - ], - [ - 12.285, - 12.286 - ], - [ - 14.089, - 11.21 - ], - [ - 37.962, - 4.1 - ], - [ - 40.171, - 2.558 - ], - [ - 41.019, - 0 - ], - [ - 40.171, - -2.557 - ], - [ - 37.962, - -4.1 - ], - [ - 14.089, - -11.21 - ], - [ - 12.285, - -12.284 - ], - [ - 11.21, - -14.088 - ], - [ - 4.101, - -37.962 - ], - [ - 2.557, - -40.171 - ], - [ - 0, - -41.02 - ], - [ - -2.557, - -40.171 - ], - [ - -4.1, - -37.962 - ], - [ - -11.21, - -14.088 - ], - [ - -12.285, - -12.284 - ], - [ - -14.089, - -11.21 - ], - [ - -37.962, - -4.1 - ], - [ - -40.171, - -2.557 - ], - [ - -41.019, - 0 - ], - [ - -40.171, - 2.558 - ] - ], - "c": true - }, - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, + "i": [ + [-1.495, -0.445], + [0, 0], + [-0.851, -0.852], + [-0.344, -1.153], + [0, 0], + [-1.25, -0.932], + [-1.561, 0], + [-1.251, 0.932], + [-0.445, 1.496], + [0, 0], + [-0.852, 0.85], + [-1.153, 0.343], + [0, 0], + [-0.933, 1.251], + [0, 1.56], + [0.932, 1.25], + [1.496, 0.445], + [0, 0], + [0.85, 0.851], + [0.344, 1.154], + [0, 0], + [1.251, 0.933], + [1.559, 0], + [1.25, -0.932], + [0.445, -1.495], + [0, 0], + [0.851, -0.851], + [1.153, -0.344], + [0, 0], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251] + ], + "o": [ + [0, 0], + [1.153, 0.343], + [0.851, 0.85], + [0, 0], + [0.445, 1.496], + [1.25, 0.932], + [1.559, 0], + [1.251, -0.932], + [0, 0], + [0.344, -1.153], + [0.85, -0.852], + [0, 0], + [1.496, -0.445], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251], + [0, 0], + [-1.153, -0.344], + [-0.852, -0.851], + [0, 0], + [-0.445, -1.495], + [-1.251, -0.932], + [-1.561, 0], + [-1.25, 0.933], + [0, 0], + [-0.344, 1.154], + [-0.851, 0.851], + [0, 0], + [-1.495, 0.445], + [-0.933, 1.25], + [0, 1.559], + [0.932, 1.251] + ], + "v": [ + [-0.834, 6.896], + [44.729, 18.975], + [47.783, 20.794], + [49.603, 23.848], + [61.637, 64.255], + [64.249, 67.995], + [68.578, 69.431], + [72.906, 67.995], + [75.518, 64.255], + [87.551, 23.848], + [89.372, 20.794], + [92.425, 18.975], + [132.833, 6.94], + [136.572, 4.328], + [138.008, 0], + [136.572, -4.328], + [132.833, -6.94], + [92.425, -18.974], + [89.372, -20.794], + [87.551, -23.848], + [75.518, -64.257], + [72.906, -67.995], + [68.578, -69.431], + [64.249, -67.995], + [61.637, -64.257], + [49.603, -23.848], + [47.783, -20.794], + [44.729, -18.974], + [-0.834, -6.985], + [-4.572, -4.373], + [-6.008, -0.044], + [-4.572, 4.284] + ], + "c": true + } + ] + }, + { + "i": { + "x": 0.667, + "y": 1 + }, + "o": { + "x": 0.333, + "y": 0 + }, + "t": 62, + "s": [ { - "ty": "fl", - "c": { - "a": 0, - "k": [ - 0, - 0, - 0, - 1 - ], - "ix": 4 - }, - "o": { - "a": 0, - "k": 100, - "ix": 5 - }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, + "i": [ + [-1.495, -0.445], + [0, 0], + [-0.851, -0.852], + [-0.344, -1.153], + [0, 0], + [-1.25, -0.932], + [-1.561, 0], + [-1.251, 0.932], + [-0.445, 1.496], + [0, 0], + [-0.852, 0.85], + [-1.153, 0.343], + [0, 0], + [-0.933, 1.251], + [0, 1.56], + [0.932, 1.25], + [1.496, 0.445], + [0, 0], + [0.85, 0.851], + [0.344, 1.154], + [0, 0], + [1.251, 0.933], + [1.559, 0], + [1.25, -0.932], + [0.445, -1.495], + [0, 0], + [0.851, -0.851], + [1.153, -0.344], + [0, 0], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251] + ], + "o": [ + [0, 0], + [1.153, 0.343], + [0.851, 0.85], + [0, 0], + [0.445, 1.496], + [1.25, 0.932], + [1.559, 0], + [1.251, -0.932], + [0, 0], + [0.344, -1.153], + [0.85, -0.852], + [0, 0], + [1.496, -0.445], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251], + [0, 0], + [-1.153, -0.344], + [-0.852, -0.851], + [0, 0], + [-0.445, -1.495], + [-1.251, -0.932], + [-1.561, 0], + [-1.25, 0.933], + [0, 0], + [-0.344, 1.154], + [-0.851, 0.851], + [0, 0], + [-1.495, 0.445], + [-0.933, 1.25], + [0, 1.559], + [0.932, 1.251] + ], + "v": [ + [-132.834, 6.94], + [44.729, 18.975], + [47.783, 20.794], + [49.603, 23.848], + [61.637, 64.255], + [64.249, 67.995], + [68.578, 69.431], + [72.906, 67.995], + [75.518, 64.255], + [87.551, 23.848], + [89.372, 20.794], + [92.425, 18.975], + [132.833, 6.94], + [136.572, 4.328], + [138.008, 0], + [136.572, -4.328], + [132.833, -6.94], + [92.425, -18.974], + [89.372, -20.794], + [87.551, -23.848], + [75.518, -64.257], + [72.906, -67.995], + [68.578, -69.431], + [64.249, -67.995], + [61.637, -64.257], + [49.603, -23.848], + [47.783, -20.794], + [44.729, -18.974], + [-132.834, -6.94], + [-136.572, -4.328], + [-138.008, 0.001], + [-136.572, 4.328] + ], + "c": true + } + ] + }, + { + "t": 74.0000030140818, + "s": [ { - "ty": "tr", - "p": { - "a": 0, - "k": [ - 41.269, - 41.27 - ], - "ix": 2 - }, - "a": { - "a": 0, - "k": [ - 0, - 0 - ], - "ix": 1 - }, - "s": { - "a": 0, - "k": [ - 100, - 100 - ], - "ix": 3 - }, - "r": { - "a": 0, - "k": 0, - "ix": 6 - }, - "o": { - "a": 0, - "k": 100, - "ix": 7 - }, - "sk": { - "a": 0, - "k": 0, - "ix": 4 - }, - "sa": { - "a": 0, - "k": 0, - "ix": 5 - }, - "nm": "Transform" + "i": [ + [-1.495, -0.445], + [0, 0], + [-0.851, -0.852], + [-0.344, -1.153], + [0, 0], + [-1.25, -0.932], + [-1.561, 0], + [-1.251, 0.932], + [-0.445, 1.496], + [0, 0], + [-0.852, 0.85], + [-1.153, 0.343], + [0, 0], + [-0.933, 1.251], + [0, 1.56], + [0.932, 1.25], + [1.496, 0.445], + [0, 0], + [0.85, 0.851], + [0.344, 1.154], + [0, 0], + [1.251, 0.933], + [1.559, 0], + [1.25, -0.932], + [0.445, -1.495], + [0, 0], + [0.851, -0.851], + [1.153, -0.344], + [0, 0], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251] + ], + "o": [ + [0, 0], + [1.153, 0.343], + [0.851, 0.85], + [0, 0], + [0.445, 1.496], + [1.25, 0.932], + [1.559, 0], + [1.251, -0.932], + [0, 0], + [0.344, -1.153], + [0.85, -0.852], + [0, 0], + [1.496, -0.445], + [0.932, -1.251], + [0, -1.56], + [-0.933, -1.251], + [0, 0], + [-1.153, -0.344], + [-0.852, -0.851], + [0, 0], + [-0.445, -1.495], + [-1.251, -0.932], + [-1.561, 0], + [-1.25, 0.933], + [0, 0], + [-0.344, 1.154], + [-0.851, 0.851], + [0, 0], + [-1.495, 0.445], + [-0.933, 1.25], + [0, 1.559], + [0.932, 1.251] + ], + "v": [ + [-132.834, 6.94], + [44.729, 18.975], + [47.783, 20.794], + [49.603, 23.848], + [61.637, 64.255], + [64.249, 67.995], + [68.578, 69.431], + [72.906, 67.995], + [75.518, 64.255], + [87.551, 23.848], + [89.372, 20.794], + [92.425, 18.975], + [132.833, 6.94], + [136.572, 4.328], + [138.008, 0], + [136.572, -4.328], + [132.833, -6.94], + [92.425, -18.974], + [89.372, -20.794], + [87.551, -23.848], + [75.518, -64.257], + [72.906, -67.995], + [68.578, -69.431], + [64.249, -67.995], + [61.637, -64.257], + [49.603, -23.848], + [47.783, -20.794], + [44.729, -18.974], + [-132.834, -6.94], + [-136.572, -4.328], + [-138.008, 0.001], + [-136.572, 4.328] + ], + "c": true } - ], - "nm": "Group 1", - "np": 2, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } - ], - "ip": -21.0000008553475, - "op": 279.000011363903, - "st": -21.0000008553475, - "ct": 1, - "bm": 0 - }, - { - "ddd": 0, - "ind": 3, - "ty": 4, - "nm": "star 2 Outlines", - "sr": 1, - "ks": { - "o": { - "a": 0, - "k": 100, - "ix": 11 + ] + } + ], + "ix": 2 }, - "r": { - "a": 0, - "k": 0, - "ix": 10 + "nm": "Path 1", + "mn": "ADBE Vector Shape - Group", + "hd": false + }, + { + "ty": "fl", + "c": { + "a": 0, + "k": [0, 0, 0, 1], + "ix": 4 + }, + "o": { + "a": 0, + "k": 100, + "ix": 5 }, + "r": 1, + "bm": 0, + "nm": "Fill 1", + "mn": "ADBE Vector Graphic - Fill", + "hd": false + }, + { + "ty": "tr", "p": { - "a": 1, - "k": [ - { - "i": { - "x": 0.667, - "y": 1 - }, - "o": { - "x": 0.693, - "y": 0 - }, - "t": 37, - "s": [ - 540.525, - 566.696, - 0 - ], - "to": [ - 9, - 0, - 0 - ], - "ti": [ - -9, - 0, - 0 - ] - }, - { - "i": { - "x": 0.667, - "y": 0.667 - }, - "o": { - "x": 0.333, - "y": 0.333 - }, - "t": 62, - "s": [ - 594.525, - 566.696, - 0 - ], - "to": [ - 0, - 0, - 0 - ], - "ti": [ - 0, - 0, - 0 - ] - }, - { - "t": 74.0000030140818, - "s": [ - 594.525, - 566.696, - 0 - ] - } - ], - "ix": 2, - "l": 2 + "a": 0, + "k": [138.258, 69.681], + "ix": 2 }, "a": { - "a": 0, - "k": [ - 204.258, - 69.681, - 0 - ], - "ix": 1, - "l": 2 + "a": 0, + "k": [0, 0], + "ix": 1 }, "s": { - "a": 1, - "k": [ - { - "i": { - "x": [ - 0.1, - 0.1, - 0.1 - ], - "y": [ - 1, - 1, - 1 - ] - }, - "o": { - "x": [ - 0.19, - 0.19, - 0.19 - ], - "y": [ - 0, - 0, - 0 - ] - }, - "t": 0, - "s": [ - 0, - 0, - 100 - ] - }, - { - "i": { - "x": [ - 0.1, - 0.1, - 0.1 - ], - "y": [ - 1, - 1, - 1 - ] - }, - "o": { - "x": [ - 0.167, - 0.167, - 0.167 - ], - "y": [ - 0, - 0, - 0 - ] - }, - "t": 34, - "s": [ - 100, - 100, - 100 - ] - }, - { - "i": { - "x": [ - 0.315, - 0.315, - 0.833 - ], - "y": [ - 1, - 1, - 1 - ] - }, - "o": { - "x": [ - 0.281, - 0.281, - 0.167 - ], - "y": [ - 0, - 0, - 0 - ] - }, - "t": 81, - "s": [ - 100, - 100, - 100 - ] - }, - { - "t": 95.0000038694293, - "s": [ - 0, - 0, - 100 - ] - } - ], - "ix": 6, - "l": 2 - } - }, - "ao": 0, - "shapes": [ - { - "ty": "gr", - "it": [ - { - "ind": 0, - "ty": "sh", - "ix": 1, - "ks": { - "a": 1, - "k": [ - { - "i": { - "x": 0.271, - "y": 1 - }, - "o": { - "x": 0.333, - "y": 0 - }, - "t": 31, - "s": [ - { - "i": [ - [ - -1.495, - -0.445 - ], - [ - 0, - 0 - ], - [ - -0.851, - -0.852 - ], - [ - -0.344, - -1.153 - ], - [ - 0, - 0 - ], - [ - -1.25, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.251, - 0.932 - ], - [ - -0.445, - 1.496 - ], - [ - 0, - 0 - ], - [ - -0.852, - 0.85 - ], - [ - -1.153, - 0.343 - ], - [ - 0, - 0 - ], - [ - -0.933, - 1.251 - ], - [ - 0, - 1.56 - ], - [ - 0.932, - 1.25 - ], - [ - 1.496, - 0.445 - ], - [ - 0, - 0 - ], - [ - 0.85, - 0.851 - ], - [ - 0.344, - 1.154 - ], - [ - 0, - 0 - ], - [ - 1.251, - 0.933 - ], - [ - 1.559, - 0 - ], - [ - 1.25, - -0.932 - ], - [ - 0.445, - -1.495 - ], - [ - 0, - 0 - ], - [ - 0.851, - -0.851 - ], - [ - 1.153, - -0.344 - ], - [ - 0, - 0 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ] - ], - "o": [ - [ - 0, - 0 - ], - [ - 1.153, - 0.343 - ], - [ - 0.851, - 0.85 - ], - [ - 0, - 0 - ], - [ - 0.445, - 1.496 - ], - [ - 1.25, - 0.932 - ], - [ - 1.559, - 0 - ], - [ - 1.251, - -0.932 - ], - [ - 0, - 0 - ], - [ - 0.344, - -1.153 - ], - [ - 0.85, - -0.852 - ], - [ - 0, - 0 - ], - [ - 1.496, - -0.445 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ], - [ - 0, - 0 - ], - [ - -1.153, - -0.344 - ], - [ - -0.852, - -0.851 - ], - [ - 0, - 0 - ], - [ - -0.445, - -1.495 - ], - [ - -1.251, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.25, - 0.933 - ], - [ - 0, - 0 - ], - [ - -0.344, - 1.154 - ], - [ - -0.851, - 0.851 - ], - [ - 0, - 0 - ], - [ - -1.495, - 0.445 - ], - [ - -0.933, - 1.25 - ], - [ - 0, - 1.559 - ], - [ - 0.932, - 1.251 - ] - ], - "v": [ - [ - -0.834, - 6.896 - ], - [ - 44.729, - 18.975 - ], - [ - 47.783, - 20.794 - ], - [ - 49.603, - 23.848 - ], - [ - 61.637, - 64.255 - ], - [ - 64.249, - 67.995 - ], - [ - 68.578, - 69.431 - ], - [ - 72.906, - 67.995 - ], - [ - 75.518, - 64.255 - ], - [ - 87.551, - 23.848 - ], - [ - 89.372, - 20.794 - ], - [ - 92.425, - 18.975 - ], - [ - 132.833, - 6.94 - ], - [ - 136.572, - 4.328 - ], - [ - 138.008, - 0 - ], - [ - 136.572, - -4.328 - ], - [ - 132.833, - -6.94 - ], - [ - 92.425, - -18.974 - ], - [ - 89.372, - -20.794 - ], - [ - 87.551, - -23.848 - ], - [ - 75.518, - -64.257 - ], - [ - 72.906, - -67.995 - ], - [ - 68.578, - -69.431 - ], - [ - 64.249, - -67.995 - ], - [ - 61.637, - -64.257 - ], - [ - 49.603, - -23.848 - ], - [ - 47.783, - -20.794 - ], - [ - 44.729, - -18.974 - ], - [ - -0.834, - -6.985 - ], - [ - -4.572, - -4.373 - ], - [ - -6.008, - -0.044 - ], - [ - -4.572, - 4.284 - ] - ], - "c": true - } - ] - }, - { - "i": { - "x": 0.667, - "y": 1 - }, - "o": { - "x": 0.693, - "y": 0 - }, - "t": 37, - "s": [ - { - "i": [ - [ - -1.495, - -0.445 - ], - [ - 0, - 0 - ], - [ - -0.851, - -0.852 - ], - [ - -0.344, - -1.153 - ], - [ - 0, - 0 - ], - [ - -1.25, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.251, - 0.932 - ], - [ - -0.445, - 1.496 - ], - [ - 0, - 0 - ], - [ - -0.852, - 0.85 - ], - [ - -1.153, - 0.343 - ], - [ - 0, - 0 - ], - [ - -0.933, - 1.251 - ], - [ - 0, - 1.56 - ], - [ - 0.932, - 1.25 - ], - [ - 1.496, - 0.445 - ], - [ - 0, - 0 - ], - [ - 0.85, - 0.851 - ], - [ - 0.344, - 1.154 - ], - [ - 0, - 0 - ], - [ - 1.251, - 0.933 - ], - [ - 1.559, - 0 - ], - [ - 1.25, - -0.932 - ], - [ - 0.445, - -1.495 - ], - [ - 0, - 0 - ], - [ - 0.851, - -0.851 - ], - [ - 1.153, - -0.344 - ], - [ - 0, - 0 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ] - ], - "o": [ - [ - 0, - 0 - ], - [ - 1.153, - 0.343 - ], - [ - 0.851, - 0.85 - ], - [ - 0, - 0 - ], - [ - 0.445, - 1.496 - ], - [ - 1.25, - 0.932 - ], - [ - 1.559, - 0 - ], - [ - 1.251, - -0.932 - ], - [ - 0, - 0 - ], - [ - 0.344, - -1.153 - ], - [ - 0.85, - -0.852 - ], - [ - 0, - 0 - ], - [ - 1.496, - -0.445 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ], - [ - 0, - 0 - ], - [ - -1.153, - -0.344 - ], - [ - -0.852, - -0.851 - ], - [ - 0, - 0 - ], - [ - -0.445, - -1.495 - ], - [ - -1.251, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.25, - 0.933 - ], - [ - 0, - 0 - ], - [ - -0.344, - 1.154 - ], - [ - -0.851, - 0.851 - ], - [ - 0, - 0 - ], - [ - -1.495, - 0.445 - ], - [ - -0.933, - 1.25 - ], - [ - 0, - 1.559 - ], - [ - 0.932, - 1.251 - ] - ], - "v": [ - [ - -0.834, - 6.896 - ], - [ - 44.729, - 18.975 - ], - [ - 47.783, - 20.794 - ], - [ - 49.603, - 23.848 - ], - [ - 61.637, - 64.255 - ], - [ - 64.249, - 67.995 - ], - [ - 68.578, - 69.431 - ], - [ - 72.906, - 67.995 - ], - [ - 75.518, - 64.255 - ], - [ - 87.551, - 23.848 - ], - [ - 89.372, - 20.794 - ], - [ - 92.425, - 18.975 - ], - [ - 132.833, - 6.94 - ], - [ - 136.572, - 4.328 - ], - [ - 138.008, - 0 - ], - [ - 136.572, - -4.328 - ], - [ - 132.833, - -6.94 - ], - [ - 92.425, - -18.974 - ], - [ - 89.372, - -20.794 - ], - [ - 87.551, - -23.848 - ], - [ - 75.518, - -64.257 - ], - [ - 72.906, - -67.995 - ], - [ - 68.578, - -69.431 - ], - [ - 64.249, - -67.995 - ], - [ - 61.637, - -64.257 - ], - [ - 49.603, - -23.848 - ], - [ - 47.783, - -20.794 - ], - [ - 44.729, - -18.974 - ], - [ - -0.834, - -6.985 - ], - [ - -4.572, - -4.373 - ], - [ - -6.008, - -0.044 - ], - [ - -4.572, - 4.284 - ] - ], - "c": true - } - ] - }, - { - "i": { - "x": 0.667, - "y": 1 - }, - "o": { - "x": 0.333, - "y": 0 - }, - "t": 62, - "s": [ - { - "i": [ - [ - -1.495, - -0.445 - ], - [ - 0, - 0 - ], - [ - -0.851, - -0.852 - ], - [ - -0.344, - -1.153 - ], - [ - 0, - 0 - ], - [ - -1.25, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.251, - 0.932 - ], - [ - -0.445, - 1.496 - ], - [ - 0, - 0 - ], - [ - -0.852, - 0.85 - ], - [ - -1.153, - 0.343 - ], - [ - 0, - 0 - ], - [ - -0.933, - 1.251 - ], - [ - 0, - 1.56 - ], - [ - 0.932, - 1.25 - ], - [ - 1.496, - 0.445 - ], - [ - 0, - 0 - ], - [ - 0.85, - 0.851 - ], - [ - 0.344, - 1.154 - ], - [ - 0, - 0 - ], - [ - 1.251, - 0.933 - ], - [ - 1.559, - 0 - ], - [ - 1.25, - -0.932 - ], - [ - 0.445, - -1.495 - ], - [ - 0, - 0 - ], - [ - 0.851, - -0.851 - ], - [ - 1.153, - -0.344 - ], - [ - 0, - 0 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ] - ], - "o": [ - [ - 0, - 0 - ], - [ - 1.153, - 0.343 - ], - [ - 0.851, - 0.85 - ], - [ - 0, - 0 - ], - [ - 0.445, - 1.496 - ], - [ - 1.25, - 0.932 - ], - [ - 1.559, - 0 - ], - [ - 1.251, - -0.932 - ], - [ - 0, - 0 - ], - [ - 0.344, - -1.153 - ], - [ - 0.85, - -0.852 - ], - [ - 0, - 0 - ], - [ - 1.496, - -0.445 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ], - [ - 0, - 0 - ], - [ - -1.153, - -0.344 - ], - [ - -0.852, - -0.851 - ], - [ - 0, - 0 - ], - [ - -0.445, - -1.495 - ], - [ - -1.251, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.25, - 0.933 - ], - [ - 0, - 0 - ], - [ - -0.344, - 1.154 - ], - [ - -0.851, - 0.851 - ], - [ - 0, - 0 - ], - [ - -1.495, - 0.445 - ], - [ - -0.933, - 1.25 - ], - [ - 0, - 1.559 - ], - [ - 0.932, - 1.251 - ] - ], - "v": [ - [ - -132.834, - 6.94 - ], - [ - 44.729, - 18.975 - ], - [ - 47.783, - 20.794 - ], - [ - 49.603, - 23.848 - ], - [ - 61.637, - 64.255 - ], - [ - 64.249, - 67.995 - ], - [ - 68.578, - 69.431 - ], - [ - 72.906, - 67.995 - ], - [ - 75.518, - 64.255 - ], - [ - 87.551, - 23.848 - ], - [ - 89.372, - 20.794 - ], - [ - 92.425, - 18.975 - ], - [ - 132.833, - 6.94 - ], - [ - 136.572, - 4.328 - ], - [ - 138.008, - 0 - ], - [ - 136.572, - -4.328 - ], - [ - 132.833, - -6.94 - ], - [ - 92.425, - -18.974 - ], - [ - 89.372, - -20.794 - ], - [ - 87.551, - -23.848 - ], - [ - 75.518, - -64.257 - ], - [ - 72.906, - -67.995 - ], - [ - 68.578, - -69.431 - ], - [ - 64.249, - -67.995 - ], - [ - 61.637, - -64.257 - ], - [ - 49.603, - -23.848 - ], - [ - 47.783, - -20.794 - ], - [ - 44.729, - -18.974 - ], - [ - -132.834, - -6.94 - ], - [ - -136.572, - -4.328 - ], - [ - -138.008, - 0.001 - ], - [ - -136.572, - 4.328 - ] - ], - "c": true - } - ] - }, - { - "t": 74.0000030140818, - "s": [ - { - "i": [ - [ - -1.495, - -0.445 - ], - [ - 0, - 0 - ], - [ - -0.851, - -0.852 - ], - [ - -0.344, - -1.153 - ], - [ - 0, - 0 - ], - [ - -1.25, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.251, - 0.932 - ], - [ - -0.445, - 1.496 - ], - [ - 0, - 0 - ], - [ - -0.852, - 0.85 - ], - [ - -1.153, - 0.343 - ], - [ - 0, - 0 - ], - [ - -0.933, - 1.251 - ], - [ - 0, - 1.56 - ], - [ - 0.932, - 1.25 - ], - [ - 1.496, - 0.445 - ], - [ - 0, - 0 - ], - [ - 0.85, - 0.851 - ], - [ - 0.344, - 1.154 - ], - [ - 0, - 0 - ], - [ - 1.251, - 0.933 - ], - [ - 1.559, - 0 - ], - [ - 1.25, - -0.932 - ], - [ - 0.445, - -1.495 - ], - [ - 0, - 0 - ], - [ - 0.851, - -0.851 - ], - [ - 1.153, - -0.344 - ], - [ - 0, - 0 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ] - ], - "o": [ - [ - 0, - 0 - ], - [ - 1.153, - 0.343 - ], - [ - 0.851, - 0.85 - ], - [ - 0, - 0 - ], - [ - 0.445, - 1.496 - ], - [ - 1.25, - 0.932 - ], - [ - 1.559, - 0 - ], - [ - 1.251, - -0.932 - ], - [ - 0, - 0 - ], - [ - 0.344, - -1.153 - ], - [ - 0.85, - -0.852 - ], - [ - 0, - 0 - ], - [ - 1.496, - -0.445 - ], - [ - 0.932, - -1.251 - ], - [ - 0, - -1.56 - ], - [ - -0.933, - -1.251 - ], - [ - 0, - 0 - ], - [ - -1.153, - -0.344 - ], - [ - -0.852, - -0.851 - ], - [ - 0, - 0 - ], - [ - -0.445, - -1.495 - ], - [ - -1.251, - -0.932 - ], - [ - -1.561, - 0 - ], - [ - -1.25, - 0.933 - ], - [ - 0, - 0 - ], - [ - -0.344, - 1.154 - ], - [ - -0.851, - 0.851 - ], - [ - 0, - 0 - ], - [ - -1.495, - 0.445 - ], - [ - -0.933, - 1.25 - ], - [ - 0, - 1.559 - ], - [ - 0.932, - 1.251 - ] - ], - "v": [ - [ - -132.834, - 6.94 - ], - [ - 44.729, - 18.975 - ], - [ - 47.783, - 20.794 - ], - [ - 49.603, - 23.848 - ], - [ - 61.637, - 64.255 - ], - [ - 64.249, - 67.995 - ], - [ - 68.578, - 69.431 - ], - [ - 72.906, - 67.995 - ], - [ - 75.518, - 64.255 - ], - [ - 87.551, - 23.848 - ], - [ - 89.372, - 20.794 - ], - [ - 92.425, - 18.975 - ], - [ - 132.833, - 6.94 - ], - [ - 136.572, - 4.328 - ], - [ - 138.008, - 0 - ], - [ - 136.572, - -4.328 - ], - [ - 132.833, - -6.94 - ], - [ - 92.425, - -18.974 - ], - [ - 89.372, - -20.794 - ], - [ - 87.551, - -23.848 - ], - [ - 75.518, - -64.257 - ], - [ - 72.906, - -67.995 - ], - [ - 68.578, - -69.431 - ], - [ - 64.249, - -67.995 - ], - [ - 61.637, - -64.257 - ], - [ - 49.603, - -23.848 - ], - [ - 47.783, - -20.794 - ], - [ - 44.729, - -18.974 - ], - [ - -132.834, - -6.94 - ], - [ - -136.572, - -4.328 - ], - [ - -138.008, - 0.001 - ], - [ - -136.572, - 4.328 - ] - ], - "c": true - } - ] - } - ], - "ix": 2 - }, - "nm": "Path 1", - "mn": "ADBE Vector Shape - Group", - "hd": false - }, - { - "ty": "fl", - "c": { - "a": 0, - "k": [ - 0, - 0, - 0, - 1 - ], - "ix": 4 - }, - "o": { - "a": 0, - "k": 100, - "ix": 5 - }, - "r": 1, - "bm": 0, - "nm": "Fill 1", - "mn": "ADBE Vector Graphic - Fill", - "hd": false - }, - { - "ty": "tr", - "p": { - "a": 0, - "k": [ - 138.258, - 69.681 - ], - "ix": 2 - }, - "a": { - "a": 0, - "k": [ - 0, - 0 - ], - "ix": 1 - }, - "s": { - "a": 0, - "k": [ - 100, - 100 - ], - "ix": 3 - }, - "r": { - "a": 0, - "k": 0, - "ix": 6 - }, - "o": { - "a": 0, - "k": 100, - "ix": 7 - }, - "sk": { - "a": 0, - "k": 0, - "ix": 4 - }, - "sa": { - "a": 0, - "k": 0, - "ix": 5 - }, - "nm": "Transform" - } - ], - "nm": "Group 1", - "np": 2, - "cix": 2, - "bm": 0, - "ix": 1, - "mn": "ADBE Vector Group", - "hd": false - } + "a": 0, + "k": [100, 100], + "ix": 3 + }, + "r": { + "a": 0, + "k": 0, + "ix": 6 + }, + "o": { + "a": 0, + "k": 100, + "ix": 7 + }, + "sk": { + "a": 0, + "k": 0, + "ix": 4 + }, + "sa": { + "a": 0, + "k": 0, + "ix": 5 + }, + "nm": "Transform" + } ], - "ip": -21.0000008553475, - "op": 135.000005498663, - "st": -21.0000008553475, - "ct": 1, - "bm": 0 - } + "nm": "Group 1", + "np": 2, + "cix": 2, + "bm": 0, + "ix": 1, + "mn": "ADBE Vector Group", + "hd": false + } + ], + "ip": -21.0000008553475, + "op": 135.000005498663, + "st": -21.0000008553475, + "ct": 1, + "bm": 0 + } ], "markers": [], "props": {} -} \ No newline at end of file +} diff --git a/src/components/AccountContext.tsx b/src/components/AccountContext.tsx index 562ba2b..5fe4fe7 100644 --- a/src/components/AccountContext.tsx +++ b/src/components/AccountContext.tsx @@ -1,13 +1,13 @@ -import { Wallet } from "@near-wallet-selector/core"; -import { Account } from "near-api-js"; +import { Wallet } from '@near-wallet-selector/core'; +import { Account } from 'near-api-js'; import { createContext, ReactNode, useContext, useEffect, useState, -} from "react"; -import { EVMWalletAdapter, WalletOptions } from "../types"; +} from 'react'; +import { EVMWalletAdapter, WalletOptions } from '../types'; interface AccountContextType { wallet?: Wallet; @@ -36,7 +36,7 @@ export function AccountProvider({ if (!accountId && near?.wallet) { const accounts = await near.wallet.getAccounts(); setAccountId( - accounts?.[0]?.accountId || near.account?.accountId || null + accounts?.[0]?.accountId || near.account?.accountId || null, ); } }; @@ -46,7 +46,7 @@ export function AccountProvider({ useEffect(() => { if (!near?.account && !near?.wallet && !evm) { console.warn( - "No wallet or account configured - users will not be able to send transactions" + 'No wallet or account configured - users will not be able to send transactions', ); } }, [near, evm]); @@ -70,7 +70,7 @@ export function AccountProvider({ export function useAccount() { const context = useContext(AccountContext); if (context === undefined) { - throw new Error("useAccount must be used within an AccountProvider"); + throw new Error('useAccount must be used within an AccountProvider'); } return context; } diff --git a/src/components/BitteAiChat.tsx b/src/components/BitteAiChat.tsx index 3e642f5..86145b3 100644 --- a/src/components/BitteAiChat.tsx +++ b/src/components/BitteAiChat.tsx @@ -1,10 +1,10 @@ -import { Message } from "ai"; -import { useEffect, useState } from "react"; -import { convertToUIMessages } from "../lib/chat"; -import { fetchChatHistory } from "../lib/fetchChatHistory"; -import { BitteAiChatOptions, BitteAiChatProps } from "../types/types"; -import { AccountProvider } from "./AccountContext"; -import { ChatContent } from "./chat/ChatContent"; +import { Message } from 'ai'; +import { useEffect, useState } from 'react'; +import { convertToUIMessages } from '../lib/chat'; +import { fetchChatHistory } from '../lib/fetchChatHistory'; +import { BitteAiChatOptions, BitteAiChatProps } from '../types/types'; +import { AccountProvider } from './AccountContext'; +import { ChatContent } from './chat/ChatContent'; export const BitteAiChat = ({ wallet, @@ -15,12 +15,12 @@ export const BitteAiChat = ({ options, }: BitteAiChatProps) => { const [loadedData, setLoadedData] = useState({ - agentIdLoaded: "", + agentIdLoaded: '', uiMessages: [] as Message[], }); const chatId = - typeof window !== "undefined" && sessionStorage.getItem("chatId"); + typeof window !== 'undefined' && sessionStorage.getItem('chatId'); useEffect(() => { const fetchData = async () => { @@ -33,7 +33,7 @@ export const BitteAiChat = ({ uiMessages: uiMessages, }); // Clear chatId from session storage - sessionStorage.removeItem("chatId"); + sessionStorage.removeItem('chatId'); } } }; diff --git a/src/components/chat/AgentPill.tsx b/src/components/chat/AgentPill.tsx index db4410e..ed314ca 100644 --- a/src/components/chat/AgentPill.tsx +++ b/src/components/chat/AgentPill.tsx @@ -1,4 +1,4 @@ -import { forwardRef } from "react"; +import { forwardRef } from 'react'; interface AgentPillProps { name: string; @@ -8,11 +8,11 @@ export const AgentPill = forwardRef( ({ name }, ref) => (
{name}
- ) + ), ); -AgentPill.displayName = "AgentPill"; +AgentPill.displayName = 'AgentPill'; diff --git a/src/components/chat/BitteSpinner.tsx b/src/components/chat/BitteSpinner.tsx index b24aef8..dd4b90e 100644 --- a/src/components/chat/BitteSpinner.tsx +++ b/src/components/chat/BitteSpinner.tsx @@ -1,9 +1,9 @@ -import Lottie from "react-lottie-player/dist/LottiePlayerLight"; +import Lottie from 'react-lottie-player/dist/LottiePlayerLight'; -import { Color } from "../../lib/animation-colors/colors"; -import { hexToRgb } from "../../lib/animation-colors/hex-to-rgb"; -import { Solver } from "../../lib/animation-colors/solver"; -import bitteAnimation from "./../../assets/bitte_animation.json"; +import { Color } from '../../lib/animation-colors/colors'; +import { hexToRgb } from '../../lib/animation-colors/hex-to-rgb'; +import { Solver } from '../../lib/animation-colors/solver'; +import bitteAnimation from './../../assets/bitte_animation.json'; export const BitteSpinner = ({ width = 200, diff --git a/src/components/chat/ChatContent.tsx b/src/components/chat/ChatContent.tsx index 123c60e..80731c6 100644 --- a/src/components/chat/ChatContent.tsx +++ b/src/components/chat/ChatContent.tsx @@ -1,6 +1,6 @@ -import { generateId } from "ai"; -import { Message, useChat } from "ai/react"; -import { ArrowDown } from "lucide-react"; +import { generateId } from 'ai'; +import { Message, useChat } from 'ai/react'; +import { ArrowDown } from 'lucide-react'; import React, { useCallback, useEffect, @@ -8,25 +8,25 @@ import React, { useMemo, useRef, useState, -} from "react"; -import { Hex } from "viem"; -import { defaultColors } from "../../lib/constants"; -import { BITTE_IMG } from "../../lib/images"; -import { executeLocalToolCall } from "../../lib/local-agent"; -import { cn, shortenAddress } from "../../lib/utils"; +} from 'react'; +import { Hex } from 'viem'; +import { defaultColors } from '../../lib/constants'; +import { BITTE_IMG } from '../../lib/images'; +import { executeLocalToolCall } from '../../lib/local-agent'; +import { cn, shortenAddress } from '../../lib/utils'; import { AssistantsMode, BitteAiChatProps, ChatRequestBody, type BitteToolResult, -} from "../../types/types"; -import { useAccount } from "../AccountContext"; -import { Button } from "../ui/button"; -import { SmartActionsInput } from "./ChatInput"; -import { MessageGroup } from "./MessageGroup"; -import DefaultChatContainer from "./default-components/DefaultChatContainer"; -import DefaultInputContainer from "./default-components/DefaultInputContainer"; -import DefaultLoadingIndicator from "./default-components/DefaultLoadingIndicator"; +} from '../../types/types'; +import { useAccount } from '../AccountContext'; +import { Button } from '../ui/button'; +import { SmartActionsInput } from './ChatInput'; +import { MessageGroup } from './MessageGroup'; +import DefaultChatContainer from './default-components/DefaultChatContainer'; +import DefaultInputContainer from './default-components/DefaultInputContainer'; +import DefaultLoadingIndicator from './default-components/DefaultLoadingIndicator'; export const ChatContent = ({ agentId, @@ -90,8 +90,8 @@ export const ChatContent = ({ }); } catch (error) { const errorMessage = - error instanceof Error ? error.message : "Unknown error"; - console.error("Error executing tool call:", errorMessage); + error instanceof Error ? error.message : 'Unknown error'; + console.error('Error executing tool call:', errorMessage); return { error: errorMessage }; } }, @@ -109,7 +109,7 @@ export const ChatContent = ({ mode: AssistantsMode.DEBUG, agentId, }, - accountId: accountId || "", + accountId: accountId || '', evmAddress: evmAddress as Hex, chainId, localAgent: options?.localAgent, @@ -118,11 +118,11 @@ export const ChatContent = ({ const groupedMessages = useMemo(() => { return messages?.reduce((groups, message) => { - if (message.role === "user") { + if (message.role === 'user') { groups.push([message]); } else { const lastGroup = groups[groups.length - 1]; - if (!lastGroup || lastGroup[0].role === "user") { + if (!lastGroup || lastGroup[0].role === 'user') { groups.push([message]); } else { lastGroup.push(message); @@ -136,7 +136,7 @@ export const ChatContent = ({ if (element) { element.scrollTo({ top: element.scrollHeight, - behavior: "smooth", + behavior: 'smooth', }); } }, []); @@ -166,12 +166,12 @@ export const ChatContent = ({ useEffect(() => { const scrollElement = messagesRef.current; if (scrollElement) { - scrollElement.addEventListener("scroll", handleScroll); + scrollElement.addEventListener('scroll', handleScroll); handleScroll(); } return () => { if (scrollElement) { - scrollElement.removeEventListener("scroll", handleScroll); + scrollElement.removeEventListener('scroll', handleScroll); } }; }, [handleScroll]); @@ -185,14 +185,14 @@ export const ChatContent = ({ if (options?.prompt && messages.length === 0 && !isInProgress) { append({ id: generateId(), - role: "user", + role: 'user', content: options.prompt, }); } }, [messages.length, isInProgress, options?.prompt, append]); return ( -
+
{/* Main chat container */} {!isAtBottom && ( @@ -220,34 +220,34 @@ export const ChatContent = ({
{messages.length === 0 && (options?.customComponents?.welcomeMessageComponent ? ( options.customComponents.welcomeMessageComponent ) : ( -
+
Bitte -
+
Execute Transactions with AI
))}
{groupedMessages?.map((messages: Message[]) => { @@ -274,7 +274,7 @@ export const ChatContent = ({ })} {error && ( -
+
{!accountId && !evmAddress ? (

An error occurred.
@@ -284,9 +284,9 @@ export const ChatContent = ({ <>

An error occurred.