keyring-chatbot-agent-sdk-test 0.1.7 → 0.2.0

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.
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".chat-button{cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000026;transition:all .3s ease;border-radius:16px}.chat-button:hover{transform:scale(1.1);box-shadow:0 6px 16px #0003}.chat-button:active{transform:scale(.95)}.chat-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;align-items:flex-end;justify-content:flex-end;z-index:9999;pointer-events:all;animation:fadeIn .2s ease}#chat-modal-title{color:#0b3988;font-weight:900;font-style:Regular;font-size:18px}.chat-modal-overlay.chat-modal-overlay--left{justify-content:flex-start}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.chat-modal{width:90%;max-width:480px;height:700px;max-height:calc(100dvh - 64px);background:#f5f5f7;border-radius:14px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000004d;margin:20px;pointer-events:all;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.chat-modal-header{background:#fff;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e7}.chat-modal-header-left{display:flex;align-items:center;gap:12px}.keyring-logo{width:32px;height:32px}.chat-modal-header h3{margin:0;font-size:18px;font-weight:700;color:#1a1a1d}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;border-radius:8px;color:#666;transition:all .2s}.close-button:hover{background:#f5f5f7;color:#000}.chat-user-info{background:#fff;padding:12px 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5e5e7}.user-avatar{width:20px;height:20px;border-radius:50%}.user-avatar img{border-radius:50%}.user-wallet,.user-wallet a{font-size:14px;font-weight:500;color:#0b3988}.copy-address-btn{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:3px;color:#999;border-radius:4px;transition:color .15s,background .15s;line-height:0}@media(min-width:640px){.copy-address-btn:hover{color:#1a1a1d;background:#f0f0f0}}.chat-modal-messages-wrapper{position:relative;flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-modal-messages{flex:1;padding:16px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}.date-separator{text-align:center;font-size:12px;font-weight:600;color:#666;background:#e5e5e7;padding:6px 16px;border-radius:12px;align-self:center;width:fit-content;margin:8px auto}.message{display:flex;animation:messageSlide .3s ease;position:relative}@media(min-width:640px){.message:hover .message-reply-button{opacity:1}}@keyframes messageSlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-reply-button{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e5e5e7;border-radius:8px;padding:6px;cursor:pointer;opacity:0;transition:all .2s;box-shadow:0 2px 8px #0000001a;z-index:10}.message-bot .message-reply-button{right:20px}.message-user .message-reply-button{left:20px}.message-reply-button:hover{background:#f5f5f7;transform:translateY(-50%) scale(1.1)}.message-reply-button svg{display:block;width:16px;height:16px;color:#666}.message-bot{justify-content:flex-start}.message-user{justify-content:flex-end}.message-bubble{max-width:85%;padding:8px 16px;border-radius:20px}.message-bot .message-bubble{background:#fff;box-shadow:0 2px 8px #0000000f;border-bottom-left-radius:4px}.message-user .message-bubble{background:#5b7fff;color:#fff;border-bottom-right-radius:4px}.message-user .message-bubble a{color:#fff}.message-reply-to{background:#0000000d;padding:8px 12px;border-radius:6px;margin-bottom:8px;border-left:3px solid #5b7fff}.message-bot .message-reply-to{background:#f5f5f7}.message-user .message-reply-to{background:#ffffff26;border-left-color:#ffffff80}.message-reply-to-label{font-size:11px;font-weight:600;margin-bottom:4px}.message-bot .message-reply-to-label{color:#5b7fff}.message-user .message-reply-to-label{color:#ffffffe6}.message-reply-to-text{font-size:12px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-text{font-size:14px;line-height:1.5;word-wrap:break-word;white-space:pre-line}.message-bot .message-text{color:#1a1a1d}.message-user .message-text{color:#fff}.message-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;margin-bottom:8px}.message-button{flex:1 1 calc(50% - 4px);min-width:100px;padding:8px 16px;background:#fffffff2;border:1px solid #e0e0e0;border-radius:12px;font-size:13px;font-weight:500;color:#1a1a1d;cursor:pointer;transition:all .2s ease;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-button.full-width{flex:1 1 100%;text-align:center;white-space:normal;padding:8px 16px;font-size:14px}@media(min-width:640px){.message-button:hover{background:#fff;border-color:#007aff;color:#007aff;transform:translateY(-1px);box-shadow:0 2px 8px #007aff26}.message-button:active{transform:translateY(0);box-shadow:0 1px 4px #007aff1a}}.message-user .message-button{background:#fff3;border-color:#ffffff4d;color:#fff}.message-user .message-button:hover{background:#ffffff4d;border-color:#ffffff80}.message-timestamp{line-height:1;font-size:11px;color:#999;display:flex;align-items:center;gap:4px;justify-content:flex-end}.message-user .message-timestamp{color:#ffffffb3}.check-icon{width:14px;height:14px}.typing-indicator .message-bubble{padding:12px 18px;display:flex;gap:6px;min-width:60px}.typing-dot{width:8px;height:8px;border-radius:50%;background:#999;animation:typingDot 1.4s infinite ease-in-out}.typing-dot:nth-child(1){animation-delay:0s}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typingDot{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-8px);opacity:1}}.suggestions-container{display:flex;flex-direction:column;gap:10px;margin-top:8px}.suggestion-button{background:#d4d8f0;border:none;padding:8px 16px;border-radius:16px;display:flex;gap:12px;cursor:pointer;transition:all .2s;font-size:14px;font-weight:500;color:#1a1a1d;width:100%;text-align:center;align-items:center;justify-content:center}.suggestion-button:hover{background:#c5caeb;transform:translateY(-1px)}.suggestion-icon{font-size:18px}.chat-modal-input{padding:8px 16px;background:#fff;border-top:1px solid #e5e5e7;display:flex;flex-direction:column;gap:8px;box-shadow:0 -5px 8px 4px #0000000d}.reply-preview{background:#f5f5f7;padding:10px 14px;border-radius:6px;border-left:3px solid #5b7fff;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.reply-preview-content{flex:1;min-width:0}.reply-preview-label{font-size:11px;color:#5b7fff;font-weight:600;margin-bottom:4px}.reply-preview-text{font-size:13px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-preview-close{background:transparent;border:none;cursor:pointer;padding:2px;color:#999;transition:color .2s;flex-shrink:0}.reply-preview-close:hover{color:#666}.chat-modal-input-row{display:flex;gap:12px;align-items:center}.chat-modal-input input{flex:1;padding:14px 18px;border:1px solid #e5e5e7;border-radius:24px;outline:none;font-size:16px;color:#1a1a1d;transition:all .2s}.chat-modal-input input::placeholder{color:#999}.chat-modal-input input:focus{border-color:#5b7fff;box-shadow:0 0 0 3px #5b7fff1a}.chat-modal-input input:disabled{opacity:.6;cursor:not-allowed;background:#f5f5f7}.send-button{width:44px;height:44px;border-radius:50%;background:#5b7fff;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.send-button:hover:not(:disabled){background:#4a6fee;transform:scale(1.05)}.send-button:disabled{opacity:.4;cursor:not-allowed}.chat-modal-messages::-webkit-scrollbar{width:6px}.chat-modal-messages::-webkit-scrollbar-thumb{background:#d1d1d6;border-radius:3px}@media(max-width:640px){.chat-modal{width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}}.action-status{margin-top:8px;padding:6px 10px;border-radius:6px;font-size:.8em;font-weight:500}.action-status-submitted{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.action-status-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.action-status-fail{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}.message-content{display:block;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;overflow:hidden;font-size:inherit;line-height:1.5}.mc-line{min-height:1.2em;word-break:break-word}.mc-empty-line{height:.5em}.mc-heading{font-weight:600;margin:.3em 0;word-break:break-word}.mc-h1{font-size:1.4em}.mc-h2{font-size:1.2em}.mc-h3{font-size:1.05em}.mc-inline-code{background:#afb8c133;padding:1px 5px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.88em}.mc-codeblock{background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;margin:6px 0;overflow:hidden;max-width:100%}.mc-codeblock-lang{background:#e8ecf0;padding:3px 10px;font-size:.75em;font-weight:600;color:#57606a;text-transform:uppercase;font-family:Monaco,Menlo,monospace;border-bottom:1px solid #d0d7de}.mc-codeblock pre{margin:0;padding:10px;overflow-x:auto}.mc-codeblock code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.85em;line-height:1.5;color:#24292f;white-space:pre}.mc-link{color:#0969da;text-decoration:none;word-break:break-word}.mc-link:hover{text-decoration:underline}.mc-image{max-width:150px;width:150px;height:150px;object-fit:contain;border-radius:8px;margin:8px 0;display:block}.mc-image-inline{width:20px;height:20px;border-radius:50%;margin:0 4px;display:inline-block;vertical-align:middle;object-fit:cover}.mc-blockquote{margin:4px 0;padding:2px 0 2px 12px;color:#57606a;border-left:3px solid #d0d7de}.mc-hr{height:1px;border:0;background:#d0d7de;margin:.4em 0}.message-content strong{font-weight:600}.message-content del{text-decoration:line-through}.action-form{background:#f8f9fb;border:1px solid #e2e6ea;border-radius:10px;padding:12px;margin-top:8px;margin-bottom:8px}.action-form-title{font-weight:600;font-size:.9em;margin-bottom:10px;color:#1a1a2e;display:flex;align-items:center;gap:6px}.action-form-general-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 12px;margin-bottom:10px;font-size:.8em;color:#dc2626;font-weight:500;display:flex;align-items:center;gap:6px}.action-form-fields{display:flex;flex-direction:column;gap:8px}.action-form-field{display:flex;flex-direction:column;gap:3px}.action-form-field label{font-size:.75em;font-weight:500;color:#6b7280}.action-form-field input,.action-form-field textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:16px;background:#fff;color:#1a1a2e;outline:none;transition:border-color .2s;font-family:inherit}.action-form-field textarea{resize:none;word-break:break-all}.action-form-field input:focus,.action-form-field textarea:focus{border-color:#0b3988;box-shadow:0 0 0 2px #6c5ce726}.action-form-field input.error,.action-form-field textarea.error{border-color:#ef4444}.action-form-field input.readonly,.action-form-field textarea.readonly{background:#f3f4f6;color:#6b7280;cursor:not-allowed;border-color:#e5e7eb}.action-form-field .field-error{font-size:.7em;color:#ef4444;margin-top:1px}.action-form-actions{display:flex;gap:8px;margin-top:10px}.action-form-submit{flex:1;padding:8px 14px;background:#0b3988;color:#fff;border:none;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:background .2s}.action-form-submit:hover:not(:disabled){background:#5a4bd1}.action-form-submit:disabled{background:#a5b4fc;cursor:not-allowed}.action-form-cancel{padding:8px 14px;background:transparent;color:#6b7280;border:1px solid #d1d5db;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:all .2s}.action-form-cancel:hover{background:#f3f4f6;color:#374151}.action-form-token-info{background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:8px 10px;margin-bottom:10px}.token-info-row{display:flex;align-items:center;gap:8px}.token-info-logo{border-radius:50%;flex-shrink:0}.token-info-details{display:flex;flex-direction:column;gap:2px;min-width:0}.token-info-name{font-size:.8em;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.token-info-balance{font-size:.75em;color:#4b5563}.token-info-usd{color:#0b3988;font-weight:500}.action-form-field-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.action-form-field-header .action-form-field-label{margin-bottom:0;font-size:12px}.action-form-pct-btns{display:inline-flex;gap:4px}.action-form-pct-btn{padding:1px 6px;font-size:.7em;font-weight:600;color:#0b3988;background:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;cursor:pointer;transition:all .15s}@media(min-width:640px){.action-form-pct-btn:hover:not(:disabled){background:#0b3988;color:#fff}}.action-form-pct-btn:disabled{opacity:.5;cursor:not-allowed}.action-form-max-btn{font-weight:700}.action-form-nft-info{margin-bottom:10px;text-align:center;display:flex;align-items:center;justify-content:center}.nft-info-image{width:80px;height:80px;border-radius:8px;object-fit:contain;background:#e5e7eb;padding:4px}.scroll-to-bottom-btn{position:absolute;bottom:16px;right:20px;background:#1a1a1dd6;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:50%;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000040;z-index:20;transition:background .15s,transform .15s,box-shadow .15s;animation:fadeInUp .18s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:640px){.scroll-to-bottom-btn:hover{background:#2d2d35;box-shadow:0 6px 16px #0000004d;transform:scale(1.08)}}.scroll-to-bottom-btn:active{transform:scale(.96)}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as G, Fragment as so, jsxs as Ae } from "react/jsx-runtime";
3
- import Ya, { useState as Xe, useEffect as ct, useCallback as Ie, createContext as ao, useContext as ro, memo as Ja, useMemo as zn, useRef as St } from "react";
2
+ import { jsx as G, Fragment as ao, jsxs as Ae } from "react/jsx-runtime";
3
+ import Ya, { useState as Xe, useEffect as ct, useCallback as Ie, createContext as ro, useContext as io, memo as Ja, useMemo as jn, useRef as St } from "react";
4
4
  const qa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu8fSbXN4U7TAJZUdJMYHWmUud8K8CSyQrc87ilYYWOCzXLabGJ8oWmEgoJRygBivEFLsD57ZffqLdqNtkt2nv8hctl8qIXiVwVOE1k5KITqI8RTRjiSmnRg/EdTBAvpNa9UVecZpWEDfYQE9hwX0HBbQc1jAEFs2CLp2oi14dOxaR67DAoZ4c09L8XXHrhZyHRYwxFt71hdf9+5dT67DAlrs2Cq1gM+tbqd+77obZQEtju17qaZtLsECFji2byP1lXCZsMAvezcHyY2LuJ9mrSKbtShva5fZu3dDRVcJYfH5uVv/0tTdZbr/JEeuIHoyjxV5CA4+Duye7Skdq1JV9z87/g9NP8gGr5FpHunaWHd8w+9cmHhKV28/o6Tx0gIPd20IYlMUtza/+Pw8Pa6/C+HrBd/9SrtVF6zRuxiIWPXZ/k2RYxIySoNxhfUC0fAbLrhSrywQdZmdFV65vRi4sXs1HEjbAm9OLwWPHYUyAb9pC1zu+xe124TwjYjfbLwS0Bbv3K2ngRU0AiwIJwAesOxyJcMfOuZ98evftLDoXrrgjQuFpRgrgQU0Kl4YnBCwsDCw7kriNRJLm4E3Atou7ub06mR/EHE+JBROlHLiwQX/eHRr8JwUXhby86vkyvC79slxr+Biy2HKkD5dRyYFd2JC2IJN3V0qux9cp4mZKGuScqUvdCemFCjSYYkoU0pZH5rdh0NNAOwLV4rYjDiKDDcuWMAQEO/bqwtBXIteLqjY4yELWIJKFmTXkKfefzlIriD6yd/mE6kPOQbWCWpIU3Yg8UmquGcBG8DEyIsTi5QULGADwHV+cv5JcZUjCWKPgab3iLS7loY0CmkU2K5hkpUkxQOxClip3+gbSF6G3t0SCIhe6fd6vTEJYnOh4ZWEtQA8CDzKluQaMfEJmGS7aS0Tm4A+TDn7CGehnsMCNoGF5MpA9wU06bq9hPTG9uTdsd3zvPckuVLCeQHNyCBaVUZEZLRJLqJipNHOqONcfQjjvIBmnc0MFQGk72gkJyGi3cQG6IMmOZ3mfGpoaq38WttiMEWNg4fH+Y9fCbZHdWH4TrWh3N7CNLYNvIG9DSv2Z8ebO5sTFS9ye7grDBbBCvFsWwAOaEfE/0ZfcBKkKg5G4Xcr1a4QD0tIPNhbA6Z/CnDAPvjpL/pGL7pOP6h/CQdtvU/3b6KomKHepJvYBm+qaxxwYKzGzHMioYgypd1ntfSOdG3QGW0qsKRKg1Jf68/NqIVrs6GeDfZuDGKTfZXQQsSDipUNuD8zng/r/uHo1sA1l3OH+H2Xrkiy8a6/hdiHC0uAsQokMdUOsD0SD8vFd7GaYBIixNVKIrqK1w1KU2LUksSEL2iZLozLm4RoZ2FIN6nZlnp5oVtp9wtj8yYZMfUl5jx94YXvhRoR7boQ8dG+W4XLcDOb8l0elCV2XWhnti6UC+WITcB5x9LvUpS6ZA2XZrv8b48ticFZnOSibq2JCUS8ot0pkhrMurh4TaBNbBbY7Ov5ooC6L0pmeb+wv+vigdgEXI2LMmvBXKC5VonVp5kuSF+V+7I0A1gRrqG/oFcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=", za = "Keyring Agent", ja = "Close chat", Qa = "Message ....", Ka = "Send message", Xa = "Bot is typing", _a = "Can I help you with anything?", Za = "Reply to message", $a = "Replying to", er = "You", tr = "Keyring Agent", nr = "Cancel reply", or = "Ask a question", sr = "I have a question", ar = "Ask me anything", rr = "Buy trending token", ir = "Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.", cr = "Please connect your wallet to see trending tokens.", lr = "⏳ Processing transaction...", dr = "✅ Transaction completed", ur = "❌ Action cancelled or failed", fr = "⏳ Transaction submitted. Waiting for confirmation...", mr = "✅ Transaction confirmed!", pr = "❌ Transaction reverted on-chain.", hr = "⚠️ Transaction submitted but confirmation timed out. Please check manually.", gr = "✅ Transaction successful!", wr = "❌ Transaction failed. Please try again.", br = "⚠️ No transaction handler configured.", yr = "⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.", Ar = "❌ Error: {message}", vr = "Confirm", kr = "Confirm swap", Tr = "Ready to proceed with the swap?", Cr = "⚠️ Unable to get swap estimation. Error: {error}", Er = "Cancel", xr = "Execute", Sr = "⏳ Processing...", Ir = "Balance:", Nr = "Token not found in your wallet.", Br = "You have no {symbol} balance in your wallet.", Fr = "Insufficient balance. Spendable: {balance} {symbol}", Rr = "{field} is required", Or = "Invalid address (0x + 40 hex chars)", Pr = "Must be a positive number", Dr = "Must be a valid number", Lr = "Open chat", Ur = "Open chat support", Mr = "This is the spendable balance of your wallet on {chain} chain. Please choose the coins you want to use for this trade.", Hr = "Sorry, I couldn't find any tokens in your wallet on {chain} chain. Please make sure you have some tokens to trade.", Wr = "Sorry, I could not fetch your wallet balance. Please try again.", Vr = "Sorry, I encountered an error fetching your wallet balance.", Gr = "Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.", Yr = `Select the amount of {symbol} to use:
5
5
 
6
6
  Spendable: {balance} {symbol}`, Jr = `
@@ -30,7 +30,8 @@ Is there any token you want to buy?`, Ii = "Sorry, I encountered an error fetchi
30
30
 
31
31
  Select a token to interact with:`, Mi = "You don't have any tokens in your wallet on this chain.", Hi = "Sorry, I encountered an error fetching your balances.", Wi = "Send {symbol}", Vi = "Swap {symbol}", Gi = "Buy more {symbol}", Yi = "Send Native Token", Ji = "Send native token (ETH, BNB, MATIC, etc.) to an address", qi = "Send Token (ERC20)", zi = "Send an ERC20 token to an address", ji = "Swap Token", Qi = "Swap one token for another", Ki = "Approve Token", Xi = "Approve a spender to use your tokens", _i = "Wrap Native Token", Zi = "Wrap native token (ETH → WETH)", $i = "Unwrap Native Token", ec = "Unwrap native token (WETH → ETH)", tc = "Send NFT", nc = "Transfer an ERC721 or ERC1155 NFT to another address", oc = "Recipient Address", sc = "Amount", ac = "Token Contract", rc = "Token Symbol", ic = "Decimals", cc = "From Token", lc = "From Symbol", dc = "To Token", uc = "To Symbol", fc = "From Decimals", mc = "To Decimals", pc = "Spender Address", hc = "Amount (empty = unlimited)", gc = "NFT Contract", wc = "Token ID", bc = "Token Standard", yc = "NFT Name", Ac = "Must be a positive integer", vc = "Amount cannot exceed available balance {max}", kc = "Received: {value}", Tc = 'Action "{action}" executed for: {value}', Cc = "I'll help you buy {symbol}. Let me show your available tokens to trade with.", Ec = `I couldn't find the token "{symbol}" on this chain. Here are the trending tokens you can buy:`, xc = "Preparing your swap...", Sc = "Yes", Ic = "Please choose which token you want to swap from:", Nc = "You want to swap {symbol}. Please choose which token you want to receive:", Bc = 'I need more details for your swap. Please specify which tokens you want to swap (e.g. "Swap 1 ETH to USDC").', Fc = "Let me show you your NFT collection!", Rc = "Which token would you like to send?", Oc = "Which NFT would you like to send?", Pc = "Which token would you like to swap? Here are your current balances:", Dc = "Spendable", Lc = `**Welcome! 🚀**
32
32
  You're connected and ready to explore DeFi! I can help you trade, check prices, and analyze your portfolio when you need it.`, Uc = `
33
- If you want to send other NFTs, please provide the contract address, NFT ID`, Mc = {
33
+ If the NFT you want to send is not in the list above, please visit our website to send it.
34
+ {link}`, Mc = {
34
35
  chatTitle: za,
35
36
  closeChat: ja,
36
37
  messagePlaceholder: Qa,
@@ -185,7 +186,7 @@ If you want to send other NFTs, please provide the contract address, NFT ID`, Mc
185
186
  spendable: Dc,
186
187
  welcomeMessage: Lc,
187
188
  sendOtherNfts: Uc
188
- }, Hc = "Keyring Agent", Wc = "チャットを閉じる", Vc = "メッセージを入力...", Gc = "メッセージを送信", Yc = "ボットが入力中...", Jc = "何かお手伝いできることはございますか?", qc = "メッセージに返信", zc = "返信先:", jc = "あなた", Qc = "Keyring Agent", Kc = "返信をキャンセル", Xc = "質問・調査のお願い", _c = "質問があります", Zc = "何でも聞いてください", $c = "トレンドトークンを購入", el = "ウォレットは接続されていますが、このチェーンは取引に対応していません。トレンドのトークンを表示するには、対応しているチェーンに切り替えてください。", tl = "トレンドのトークンを表示するには、ウォレットを接続してください。", nl = "⏳ トランザクションを処理中...", ol = "✅ トランザクションが完了しました", sl = "❌ アクションがキャンセルされたか、失敗しました", al = "⏳ トランザクションを送信しました。確認を待機中...", rl = "✅ トランザクションが確認されました!", il = "❌ オンチェーンでトランザクションがリバートされました。", cl = "⚠️ トランザクションは送信されましたが、タイムアウトしました。手動で確認してください。", ll = "✅ トランザクションに成功しました!", dl = "❌ トランザクションに失敗しました。もう一度お試しください。", ul = "⚠️ トランザクションハンドラーが設定されていません。", fl = "⚠️ **ガス代({symbol})が不足しています!** 保有量は {balance} {symbol} ですが、手数料に約 {fee} {symbol} 必要です。ウォレットにチャージして再試行してください。", ml = "❌ エラー: {message}", pl = "確定", hl = "スワップを確定する", gl = "スワップを実行しますか?", wl = "⚠️ スワップの見積もりを取得できません。エラー: {error}", bl = "キャンセル", yl = "実行", Al = "⏳ 処理中...", vl = "残高:", kl = "ウォレット内にトークンが見つかりません。", Tl = "ウォレットに {symbol} の残高がありません。", Cl = "残高不足です。利用可能: {balance} {symbol}", El = "{field} は必須項目です", xl = "無効なアドレスです (0x + 40文字の16進数)", Sl = "正の数値を入力してください", Il = "有効な数値を入力してください", Nl = "チャットを開く", Bl = "チャットサポートを開く", Fl = "これは {chain} チェーン上のウォレットの利用可能な残高です。この取引に使用するコインを選択してください。", Rl = "申し訳ありませんが、{chain} チェーン上のウォレットにトークンが見つかりませんでした。取引するためのトークンを保有しているかご確認ください。", Ol = "ウォレット残高を取得できませんでした。もう一度お試しください。", Pl = "ウォレット残高の取得中にエラーが発生しました。", Dl = "手数料が不足しています。取引手数料をカバーするのに十分な {symbol} を保有しているか、別のトークンを選択してください。", Ll = `使用する {symbol} の数量を選択してください:
189
+ }, Hc = "Keyring Agent", Wc = "チャットを閉じる", Vc = "メッセージを入力...", Gc = "メッセージを送信", Yc = "ボットが入力中...", Jc = "なにかお手伝いできることはありますか?", qc = "メッセージに返信", zc = "返信先:", jc = "あなた", Qc = "Keyring Agent", Kc = "返信をキャンセル", Xc = "質問・調査のお願い", _c = "質問があります", Zc = "何でも聞いてください", $c = "トレンドトークンを購入", el = "ウォレットは接続されていますが、このチェーンは取引に対応していません。トレンドのトークンを表示するには、対応しているチェーンに切り替えてください。", tl = "トレンドのトークンを表示するには、ウォレットを接続してください。", nl = "⏳ トランザクションを処理中...", ol = "✅ トランザクションが完了しました", sl = "❌ アクションがキャンセルされたか、失敗しました", al = "⏳ トランザクションを送信しました。確認を待機中...", rl = "✅ トランザクションが確認されました!", il = "❌ オンチェーンでトランザクションがリバートされました。", cl = "⚠️ トランザクションは送信されましたが、タイムアウトしました。手動で確認してください。", ll = "✅ トランザクションに成功しました!", dl = "❌ トランザクションに失敗しました。もう一度お試しください。", ul = "⚠️ トランザクションハンドラーが設定されていません。", fl = "⚠️ **ガス代({symbol})が不足しています!** 保有量は {balance} {symbol} ですが、手数料に約 {fee} {symbol} 必要です。ウォレットにチャージして再試行してください。", ml = "❌ エラー: {message}", pl = "確定", hl = "スワップを確定する", gl = "スワップを実行しますか?", wl = "⚠️ スワップの見積もりを取得できません。エラー: {error}", bl = "キャンセル", yl = "実行", Al = "⏳ 処理中...", vl = "残高:", kl = "ウォレット内にトークンが見つかりません。", Tl = "ウォレットに {symbol} の残高がありません。", Cl = "残高不足です。利用可能: {balance} {symbol}", El = "{field} は必須項目です", xl = "無効なアドレスです (0x + 40文字の16進数)", Sl = "正の数値を入力してください", Il = "有効な数値を入力してください", Nl = "チャットを開く", Bl = "チャットサポートを開く", Fl = "これは {chain} チェーン上のウォレットの利用可能な残高です。この取引に使用するコインを選択してください。", Rl = "申し訳ありませんが、{chain} チェーン上のウォレットにトークンが見つかりませんでした。取引するためのトークンを保有しているかご確認ください。", Ol = "ウォレット残高を取得できませんでした。もう一度お試しください。", Pl = "ウォレット残高の取得中にエラーが発生しました。", Dl = "手数料が不足しています。取引手数料をカバーするのに十分な {symbol} を保有しているか、別のトークンを選択してください。", Ll = `使用する {symbol} の数量を選択してください:
189
190
 
190
191
  利用可能: {balance} {symbol}`, Ul = `
191
192
  ⚠️ **手数料の {symbol} が不足しています!**
@@ -213,8 +214,9 @@ If you want to send other NFTs, please provide the contract address, NFT ID`, Mc
213
214
  {list}
214
215
 
215
216
  操作するトークンを選択してください:`, F0 = "このチェーン上のウォレットにトークンは見つかりませんでした。", R0 = "残高の取得中にエラーが発生しました。", O0 = "{symbol} を送信", P0 = "{symbol} をスワップ", D0 = "{symbol} をさらに入手", L0 = "ネイティブトークンを送信", U0 = "ネイティブトークン (ETH, BNB, MATIC など) をアドレスに送信します", M0 = "トークンを送信 (ERC20)", H0 = "ERC20トークンをアドレスに送信します", W0 = "トークンをスワップ", V0 = "トークンを別のトークンに交換します", G0 = "トークンを承認", Y0 = "支出元(Spender)によるトークンの使用を許可します", J0 = "ネイティブトークンをラップ", q0 = "ネイティブトークンをラップします (ETH → WETH)", z0 = "ネイティブトークンをアンラップ", j0 = "ネイティブトークンをアンラップします (WETH → ETH)", Q0 = "NFTを送信", K0 = "ERC721またはERC1155 NFTを別のアドレスに転送します", X0 = "受信者アドレス", _0 = "数量", Z0 = "トークンコントラクト", $0 = "トークンシンボル", ed = "デシマル (小数桁数)", td = "元のトークン", nd = "元のシンボル", od = "先のトークン", sd = "先のシンボル", ad = "元のデシマル", rd = "先のデシマル", id = "支出元 (Spender) アドレス", cd = "数量 (空欄 = 無制限)", ld = "NFTコントラクト", dd = "トークンID", ud = "トークン規格", fd = "NFT名", md = "正の整数を入力してください", pd = "数量は利用可能な残高 {max} を超えることはできません", hd = "受取額: {value}", gd = "アクション「{action}」が {value} に対して実行されました", wd = "{symbol} の購入をお手伝いします。まず、交換に使用可能なトークンを表示します。", bd = "このチェーン上でトークン「{symbol}」が見つかりませんでした。購入可能なトレンドトークンはこちらです:", yd = "スワップの準備中...", Ad = "はい", vd = "交換元(支払う)トークンを選択してください:", kd = "{symbol} をスワップします。受け取りたいトークンを選択してください:", Td = "スワップの詳細が必要です。交換したいトークンを指定してください(例:「1 ETH を USDC にスワップ」)。", Cd = "あなたのNFTコレクションを表示します!", Ed = "どのトークンを送信しますか?", xd = "どのNFTを送信しますか?", Sd = "どのトークンをスワップしますか?現在の残高はこちらです:", Id = "利用可能", Nd = `**ようこそ! 🚀**
216
- 新時代の金融へ。DeFiの世界を解き放て!トレード、価格チェック、ポートフォリオ分析など、いつでもお手伝いします。`, Bd = `
217
- 他のNFTを送信する場合は、コントラクトアドレスとNFTIDを入力してください`, Fd = {
217
+ 接続が完了し、DeFiを探索する準備が整いました!トレード、価格チェック、ポートフォリオ分析など、いつでもお手伝いします。`, Bd = `
218
+ 送信したいNFTが上のリストにない場合は、ウェブサイトから送信してください。
219
+ {link}`, Fd = {
218
220
  chatTitle: Hc,
219
221
  closeChat: Wc,
220
222
  messagePlaceholder: Vc,
@@ -398,7 +400,8 @@ If you want to send other NFTs, please provide the contract address, NFT ID`, Mc
398
400
 
399
401
  选择一个代币进行操作:`, C2 = "您在该链的钱包中没有任何代币。", E2 = "抱歉,获取您的余额时出错。", x2 = "发送 {symbol}", S2 = "兑换 {symbol}", I2 = "购买更多 {symbol}", N2 = "发送原生代币", B2 = "将原生代币 (ETH, BNB, MATIC 等) 发送到指定地址", F2 = "发送代币 (ERC20)", R2 = "将 ERC20 代币发送到指定地址", O2 = "兑换代币", P2 = "将一种代币兑换为另一种", D2 = "授权代币", L2 = "授权支出方使用您的代币", U2 = "包装 (Wrap) 原生代币", M2 = "包装原生代币 (例如 ETH → WETH)", H2 = "解包 (Unwrap) 原生代币", W2 = "解包原生代币 (例如 WETH → ETH)", V2 = "发送 NFT", G2 = "将 ERC721 或 ERC1155 NFT 转移到另一个地址", Y2 = "接收者地址", J2 = "金额", q2 = "代币合约", z2 = "代币符号", j2 = "精度 (Decimals)", Q2 = "源代币 (From)", K2 = "源代币符号", X2 = "目标代币 (To)", _2 = "目标代币符号", Z2 = "源代币精度", $2 = "目标代币精度", e1 = "支出方 (Spender) 地址", t1 = "金额 (留空 = 无限制)", n1 = "NFT 合约", o1 = "代币 ID", s1 = "代币标准", a1 = "NFT 名称", r1 = "必须为正整数", i1 = "金额不能超过可用余额 {max}", c1 = "收到: {value}", l1 = '操作 "{action}" 已执行,对象为: {value}', d1 = "我会帮您购买 {symbol}。让我为您显示可用于交易的代币。", u1 = '我在该链上没找到代币 "{symbol}"。以下是您可以购买的热门代币:', f1 = "正在准备兑换...", m1 = "是", p1 = "请选择您想从哪个代币进行兑换:", h1 = "您想兑换 {symbol}。请选择您想收到的代币:", g1 = "我需要更多关于兑换的细节。请指定您想兑换的代币(例如 “将 1 ETH 兑换为 USDC”)。", w1 = "正在为您展示 NFT 收藏!", b1 = "您想发送哪个代币?", y1 = "您想发送哪个 NFT?", A1 = "您想兑换哪个代币?以下是您的当前余额:", v1 = "可用余额", k1 = `**欢迎! 🚀**
400
402
  您已连接并准备好探索 DeFi!我可以帮您进行交易、查询价格,并在需要时分析您的资产组合。`, T1 = `
401
- 如果您想发送其他 NFT,请提供合约地址和 NFT ID`, C1 = {
403
+ 如果您想发送的 NFT 不在上方列表中,请访问我们的网站进行发送。
404
+ {link}`, C1 = {
402
405
  chatTitle: Rd,
403
406
  closeChat: Od,
404
407
  messagePlaceholder: Pd,
@@ -553,18 +556,18 @@ If you want to send other NFTs, please provide the contract address, NFT ID`, Mc
553
556
  spendable: v1,
554
557
  welcomeMessage: k1,
555
558
  sendOtherNfts: T1
556
- }, Oo = {
559
+ }, Po = {
557
560
  en: Mc,
558
561
  ja: Fd,
559
562
  cn: C1
560
563
  };
561
- function Po(e, t) {
562
- return Oo[t]?.[e] ?? Oo.en[e] ?? e;
564
+ function Do(e, t) {
565
+ return Po[t]?.[e] ?? Po.en[e] ?? e;
563
566
  }
564
567
  function E1(e, t) {
565
568
  return e.replace(/\{(\w+)\}/g, (n, s) => t[s] ?? `{${s}}`);
566
569
  }
567
- const os = ao(
570
+ const os = ro(
568
571
  void 0
569
572
  ), x1 = ({
570
573
  children: e,
@@ -575,15 +578,15 @@ const os = ao(
575
578
  t && s(t);
576
579
  }, [t]);
577
580
  const o = Ie(
578
- (r) => Po(r, n),
581
+ (r) => Do(r, n),
579
582
  [n]
580
583
  ), a = Ie(
581
- (r, i) => E1(Po(r, n), i),
584
+ (r, i) => E1(Do(r, n), i),
582
585
  [n]
583
586
  );
584
587
  return /* @__PURE__ */ G(os.Provider, { value: { language: n, setLanguage: s, t: o, ti: a }, children: e });
585
588
  }, Sn = () => {
586
- const e = ro(os);
589
+ const e = io(os);
587
590
  if (!e)
588
591
  throw new Error("useLanguage must be used within a LanguageProvider");
589
592
  return e;
@@ -686,7 +689,7 @@ class pe extends Error {
686
689
  function as(e, t) {
687
690
  return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? as(e.cause, t) : t ? null : e;
688
691
  }
689
- class io extends pe {
692
+ class co extends pe {
690
693
  constructor({ max: t, min: n, signed: s, size: o, value: a }) {
691
694
  super(`Number "${a}" is not in safe ${o ? `${o * 8}-bit ${s ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${n} to ${t})` : `(above ${n})`}`, { name: "IntegerOutOfRangeError" });
692
695
  }
@@ -771,7 +774,7 @@ function fe(e, t = {}) {
771
774
  const r = typeof a == "bigint" && n ? -a - 1n : 0;
772
775
  if (a && o > a || o < r) {
773
776
  const l = typeof e == "bigint" ? "n" : "";
774
- throw new io({
777
+ throw new co({
775
778
  max: a ? `${a}${l}` : void 0,
776
779
  min: `${r}${l}`,
777
780
  signed: n,
@@ -788,7 +791,7 @@ function ls(e, t = {}) {
788
791
  return yt(n, t);
789
792
  }
790
793
  const R1 = /* @__PURE__ */ new TextEncoder();
791
- function co(e, t = {}) {
794
+ function lo(e, t = {}) {
792
795
  return typeof e == "number" || typeof e == "bigint" ? P1(e, t) : typeof e == "boolean" ? O1(e, t) : Yt(e) ? Rt(e, t) : ds(e, t);
793
796
  }
794
797
  function O1(e, t = {}) {
@@ -803,7 +806,7 @@ const ht = {
803
806
  a: 97,
804
807
  f: 102
805
808
  };
806
- function Do(e) {
809
+ function Lo(e) {
807
810
  if (e >= ht.zero && e <= ht.nine)
808
811
  return e - ht.zero;
809
812
  if (e >= ht.A && e <= ht.F)
@@ -818,7 +821,7 @@ function Rt(e, t = {}) {
818
821
  s.length % 2 && (s = `0${s}`);
819
822
  const o = s.length / 2, a = new Uint8Array(o);
820
823
  for (let r = 0, i = 0; r < o; r++) {
821
- const l = Do(s.charCodeAt(i++)), b = Do(s.charCodeAt(i++));
824
+ const l = Lo(s.charCodeAt(i++)), b = Lo(s.charCodeAt(i++));
822
825
  if (l === void 0 || b === void 0)
823
826
  throw new pe(`Invalid byte sequence ("${s[i - 2]}${s[i - 1]}" in "${s}").`);
824
827
  a[r] = l * 16 + b;
@@ -852,7 +855,7 @@ function Ht(e, t = {}) {
852
855
  function Cn(e, t = {}) {
853
856
  const n = Ht(e, t), s = Number(n);
854
857
  if (!Number.isSafeInteger(s))
855
- throw new io({
858
+ throw new co({
856
859
  max: `${Number.MAX_SAFE_INTEGER}`,
857
860
  min: `${Number.MIN_SAFE_INTEGER}`,
858
861
  signed: t.signed,
@@ -861,7 +864,7 @@ function Cn(e, t = {}) {
861
864
  });
862
865
  return s;
863
866
  }
864
- function lo(e, t) {
867
+ function uo(e, t) {
865
868
  return ({ exclude: n, format: s }) => ({
866
869
  exclude: n,
867
870
  format: (o, a) => {
@@ -884,7 +887,7 @@ const us = {
884
887
  "0x3": "eip4844",
885
888
  "0x4": "eip7702"
886
889
  };
887
- function uo(e, t) {
890
+ function fo(e, t) {
888
891
  const n = {
889
892
  ...e,
890
893
  blockHash: e.blockHash ? e.blockHash : null,
@@ -916,7 +919,7 @@ function uo(e, t) {
916
919
  }
917
920
  })(), n.type === "legacy" && (delete n.accessList, delete n.maxFeePerBlobGas, delete n.maxFeePerGas, delete n.maxPriorityFeePerGas, delete n.yParity), n.type === "eip2930" && (delete n.maxFeePerBlobGas, delete n.maxFeePerGas, delete n.maxPriorityFeePerGas), n.type === "eip1559" && delete n.maxFeePerBlobGas, n;
918
921
  }
919
- const D1 = /* @__PURE__ */ lo("transaction", uo);
922
+ const D1 = /* @__PURE__ */ uo("transaction", fo);
920
923
  function L1(e) {
921
924
  return e.map((t) => ({
922
925
  address: t.address,
@@ -928,7 +931,7 @@ function L1(e) {
928
931
  }));
929
932
  }
930
933
  function U1(e, t) {
931
- const n = (e.transactions ?? []).map((s) => typeof s == "string" ? s : uo(s));
934
+ const n = (e.transactions ?? []).map((s) => typeof s == "string" ? s : fo(s));
932
935
  return {
933
936
  ...e,
934
937
  baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
@@ -947,7 +950,7 @@ function U1(e, t) {
947
950
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
948
951
  };
949
952
  }
950
- const M1 = /* @__PURE__ */ lo("block", U1);
953
+ const M1 = /* @__PURE__ */ uo("block", U1);
951
954
  function H1(e, { args: t, eventName: n } = {}) {
952
955
  return {
953
956
  ...e,
@@ -980,7 +983,7 @@ function V1(e, t) {
980
983
  };
981
984
  return e.blobGasPrice && (n.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (n.blobGasUsed = BigInt(e.blobGasUsed)), n;
982
985
  }
983
- const G1 = /* @__PURE__ */ lo("transactionReceipt", V1), Y1 = {
986
+ const G1 = /* @__PURE__ */ uo("transactionReceipt", V1), Y1 = {
984
987
  legacy: "0x0",
985
988
  eip2930: "0x1",
986
989
  eip1559: "0x2",
@@ -1019,7 +1022,7 @@ function z1(e) {
1019
1022
  function Dt(e) {
1020
1023
  return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
1021
1024
  }
1022
- class Lo extends pe {
1025
+ class Uo extends pe {
1023
1026
  constructor({ offset: t }) {
1024
1027
  super(`Offset \`${t}\` cannot be negative.`, {
1025
1028
  name: "NegativeOffsetError"
@@ -1059,7 +1062,7 @@ const K1 = {
1059
1062
  },
1060
1063
  decrementPosition(e) {
1061
1064
  if (e < 0)
1062
- throw new Lo({ offset: e });
1065
+ throw new Uo({ offset: e });
1063
1066
  const t = this.position - e;
1064
1067
  this.assertPosition(t), this.position = t;
1065
1068
  },
@@ -1068,7 +1071,7 @@ const K1 = {
1068
1071
  },
1069
1072
  incrementPosition(e) {
1070
1073
  if (e < 0)
1071
- throw new Lo({ offset: e });
1074
+ throw new Uo({ offset: e });
1072
1075
  const t = this.position + e;
1073
1076
  this.assertPosition(t), this.position = t;
1074
1077
  },
@@ -1293,7 +1296,7 @@ function ws(e) {
1293
1296
  function af(e) {
1294
1297
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
1295
1298
  }
1296
- function Uo(e) {
1299
+ function Mo(e) {
1297
1300
  if (!Number.isSafeInteger(e) || e < 0)
1298
1301
  throw new Error("positive integer expected, got " + e);
1299
1302
  }
@@ -1337,19 +1340,19 @@ function df(e) {
1337
1340
  e[t] = lf(e[t]);
1338
1341
  return e;
1339
1342
  }
1340
- const Mo = cf ? (e) => e : df;
1343
+ const Ho = cf ? (e) => e : df;
1341
1344
  function uf(e) {
1342
1345
  if (typeof e != "string")
1343
1346
  throw new Error("string expected");
1344
1347
  return new Uint8Array(new TextEncoder().encode(e));
1345
1348
  }
1346
- function fo(e) {
1349
+ function mo(e) {
1347
1350
  return typeof e == "string" && (e = uf(e)), nn(e), e;
1348
1351
  }
1349
1352
  class ys {
1350
1353
  }
1351
1354
  function As(e) {
1352
- const t = (s) => e().update(fo(s)).digest(), n = e();
1355
+ const t = (s) => e().update(mo(s)).digest(), n = e();
1353
1356
  return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
1354
1357
  }
1355
1358
  function ff(e, t, n, s) {
@@ -1369,7 +1372,7 @@ class hf extends ys {
1369
1372
  super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = s, this.isLE = o, this.buffer = new Uint8Array(t), this.view = On(this.buffer);
1370
1373
  }
1371
1374
  update(t) {
1372
- En(this), t = fo(t), nn(t);
1375
+ En(this), t = mo(t), nn(t);
1373
1376
  const { view: n, buffer: s, blockLen: o } = this, a = t.length;
1374
1377
  for (let r = 0; r < a; ) {
1375
1378
  const i = Math.min(o - this.pos, a - r);
@@ -1424,9 +1427,9 @@ const At = /* @__PURE__ */ Uint32Array.from([
1424
1427
  2600822924,
1425
1428
  528734635,
1426
1429
  1541459225
1427
- ]), hn = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ho = /* @__PURE__ */ BigInt(32);
1430
+ ]), hn = /* @__PURE__ */ BigInt(2 ** 32 - 1), Wo = /* @__PURE__ */ BigInt(32);
1428
1431
  function gf(e, t = !1) {
1429
- return t ? { h: Number(e & hn), l: Number(e >> Ho & hn) } : { h: Number(e >> Ho & hn) | 0, l: Number(e & hn) | 0 };
1432
+ return t ? { h: Number(e & hn), l: Number(e >> Wo & hn) } : { h: Number(e >> Wo & hn) | 0, l: Number(e & hn) | 0 };
1430
1433
  }
1431
1434
  function wf(e, t = !1) {
1432
1435
  const n = e.length;
@@ -1538,7 +1541,7 @@ class Tf extends hf {
1538
1541
  }
1539
1542
  const Cf = /* @__PURE__ */ As(() => new Tf()), Ef = Cf;
1540
1543
  function xf(e, t) {
1541
- return Ef(Yt(e, { strict: !1 }) ? co(e) : e);
1544
+ return Ef(Yt(e, { strict: !1 }) ? lo(e) : e);
1542
1545
  }
1543
1546
  function Sf(e) {
1544
1547
  const { commitment: t, version: n = 1 } = e, s = e.to ?? (typeof t == "string" ? "hex" : "bytes"), o = xf(t);
@@ -1554,9 +1557,9 @@ function If(e) {
1554
1557
  }));
1555
1558
  return o;
1556
1559
  }
1557
- const Wo = 6, vs = 32, mo = 4096, ks = vs * mo, Vo = ks * Wo - // terminator byte (0x80).
1560
+ const Vo = 6, vs = 32, po = 4096, ks = vs * po, Go = ks * Vo - // terminator byte (0x80).
1558
1561
  1 - // zero byte (0x00) appended to each field element.
1559
- 1 * mo * Wo, Ts = 1;
1562
+ 1 * po * Vo, Ts = 1;
1560
1563
  class Nf extends pe {
1561
1564
  constructor({ maxSize: t, size: n }) {
1562
1565
  super("Blob size is too large.", {
@@ -1593,9 +1596,9 @@ function Rf(e) {
1593
1596
  const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), n = typeof e.data == "string" ? Rt(e.data) : e.data, s = _e(n);
1594
1597
  if (!s)
1595
1598
  throw new Cs();
1596
- if (s > Vo)
1599
+ if (s > Go)
1597
1600
  throw new Nf({
1598
- maxSize: Vo,
1601
+ maxSize: Go,
1599
1602
  size: s
1600
1603
  });
1601
1604
  const o = [];
@@ -1603,7 +1606,7 @@ function Rf(e) {
1603
1606
  for (; a; ) {
1604
1607
  const i = fs(new Uint8Array(ks));
1605
1608
  let l = 0;
1606
- for (; l < mo; ) {
1609
+ for (; l < po; ) {
1607
1610
  const b = n.slice(r, r + (vs - 1));
1608
1611
  if (i.pushByte(0), i.pushBytes(b), b.length < 31) {
1609
1612
  i.pushByte(128), a = !1;
@@ -1676,7 +1679,7 @@ Object.defineProperty(Pt, "nodeMessage", {
1676
1679
  writable: !0,
1677
1680
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
1678
1681
  });
1679
- class jn extends pe {
1682
+ class Qn extends pe {
1680
1683
  constructor({ cause: t, maxFeePerGas: n } = {}) {
1681
1684
  super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${Bt(n)}` : ""} gwei) cannot be lower than the block base fee.`, {
1682
1685
  cause: t,
@@ -1684,24 +1687,24 @@ class jn extends pe {
1684
1687
  });
1685
1688
  }
1686
1689
  }
1687
- Object.defineProperty(jn, "nodeMessage", {
1690
+ Object.defineProperty(Qn, "nodeMessage", {
1688
1691
  enumerable: !0,
1689
1692
  configurable: !0,
1690
1693
  writable: !0,
1691
1694
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
1692
1695
  });
1693
- class Qn extends pe {
1696
+ class Kn extends pe {
1694
1697
  constructor({ cause: t, nonce: n } = {}) {
1695
1698
  super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
1696
1699
  }
1697
1700
  }
1698
- Object.defineProperty(Qn, "nodeMessage", {
1701
+ Object.defineProperty(Kn, "nodeMessage", {
1699
1702
  enumerable: !0,
1700
1703
  configurable: !0,
1701
1704
  writable: !0,
1702
1705
  value: /nonce too high/
1703
1706
  });
1704
- class Kn extends pe {
1707
+ class Xn extends pe {
1705
1708
  constructor({ cause: t, nonce: n } = {}) {
1706
1709
  super([
1707
1710
  `Nonce provided for the transaction ${n ? `(${n}) ` : ""}is lower than the current nonce of the account.`,
@@ -1710,24 +1713,24 @@ class Kn extends pe {
1710
1713
  `), { cause: t, name: "NonceTooLowError" });
1711
1714
  }
1712
1715
  }
1713
- Object.defineProperty(Kn, "nodeMessage", {
1716
+ Object.defineProperty(Xn, "nodeMessage", {
1714
1717
  enumerable: !0,
1715
1718
  configurable: !0,
1716
1719
  writable: !0,
1717
1720
  value: /nonce too low|transaction already imported|already known/
1718
1721
  });
1719
- class Xn extends pe {
1722
+ class _n extends pe {
1720
1723
  constructor({ cause: t, nonce: n } = {}) {
1721
1724
  super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
1722
1725
  }
1723
1726
  }
1724
- Object.defineProperty(Xn, "nodeMessage", {
1727
+ Object.defineProperty(_n, "nodeMessage", {
1725
1728
  enumerable: !0,
1726
1729
  configurable: !0,
1727
1730
  writable: !0,
1728
1731
  value: /nonce has max value/
1729
1732
  });
1730
- class _n extends pe {
1733
+ class Zn extends pe {
1731
1734
  constructor({ cause: t } = {}) {
1732
1735
  super([
1733
1736
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -1748,13 +1751,13 @@ class _n extends pe {
1748
1751
  });
1749
1752
  }
1750
1753
  }
1751
- Object.defineProperty(_n, "nodeMessage", {
1754
+ Object.defineProperty(Zn, "nodeMessage", {
1752
1755
  enumerable: !0,
1753
1756
  configurable: !0,
1754
1757
  writable: !0,
1755
1758
  value: /insufficient funds|exceeds transaction sender account balance/
1756
1759
  });
1757
- class Zn extends pe {
1760
+ class $n extends pe {
1758
1761
  constructor({ cause: t, gas: n } = {}) {
1759
1762
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
1760
1763
  cause: t,
@@ -1762,13 +1765,13 @@ class Zn extends pe {
1762
1765
  });
1763
1766
  }
1764
1767
  }
1765
- Object.defineProperty(Zn, "nodeMessage", {
1768
+ Object.defineProperty($n, "nodeMessage", {
1766
1769
  enumerable: !0,
1767
1770
  configurable: !0,
1768
1771
  writable: !0,
1769
1772
  value: /intrinsic gas too high|gas limit reached/
1770
1773
  });
1771
- class $n extends pe {
1774
+ class eo extends pe {
1772
1775
  constructor({ cause: t, gas: n } = {}) {
1773
1776
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction is too low.`, {
1774
1777
  cause: t,
@@ -1776,13 +1779,13 @@ class $n extends pe {
1776
1779
  });
1777
1780
  }
1778
1781
  }
1779
- Object.defineProperty($n, "nodeMessage", {
1782
+ Object.defineProperty(eo, "nodeMessage", {
1780
1783
  enumerable: !0,
1781
1784
  configurable: !0,
1782
1785
  writable: !0,
1783
1786
  value: /intrinsic gas too low/
1784
1787
  });
1785
- class eo extends pe {
1788
+ class to extends pe {
1786
1789
  constructor({ cause: t }) {
1787
1790
  super("The transaction type is not supported for this chain.", {
1788
1791
  cause: t,
@@ -1790,7 +1793,7 @@ class eo extends pe {
1790
1793
  });
1791
1794
  }
1792
1795
  }
1793
- Object.defineProperty(eo, "nodeMessage", {
1796
+ Object.defineProperty(to, "nodeMessage", {
1794
1797
  enumerable: !0,
1795
1798
  configurable: !0,
1796
1799
  writable: !0,
@@ -1850,20 +1853,20 @@ for (let e = 0, t = Xt, n = 1, s = 0; e < 24; e++) {
1850
1853
  t = (t << Xt ^ (t >> Lf) * Mf) % Uf, t & Df && (o ^= Xt << (Xt << /* @__PURE__ */ BigInt(a)) - Xt);
1851
1854
  Ns.push(o);
1852
1855
  }
1853
- const Bs = wf(Ns, !0), Hf = Bs[0], Wf = Bs[1], Go = (e, t, n) => n > 32 ? Af(e, t, n) : bf(e, t, n), Yo = (e, t, n) => n > 32 ? vf(e, t, n) : yf(e, t, n);
1856
+ const Bs = wf(Ns, !0), Hf = Bs[0], Wf = Bs[1], Yo = (e, t, n) => n > 32 ? Af(e, t, n) : bf(e, t, n), Jo = (e, t, n) => n > 32 ? vf(e, t, n) : yf(e, t, n);
1854
1857
  function Vf(e, t = 24) {
1855
1858
  const n = new Uint32Array(10);
1856
1859
  for (let s = 24 - t; s < 24; s++) {
1857
1860
  for (let r = 0; r < 10; r++)
1858
1861
  n[r] = e[r] ^ e[r + 10] ^ e[r + 20] ^ e[r + 30] ^ e[r + 40];
1859
1862
  for (let r = 0; r < 10; r += 2) {
1860
- const i = (r + 8) % 10, l = (r + 2) % 10, b = n[l], O = n[l + 1], q = Go(b, O, 1) ^ n[i], v = Yo(b, O, 1) ^ n[i + 1];
1863
+ const i = (r + 8) % 10, l = (r + 2) % 10, b = n[l], O = n[l + 1], q = Yo(b, O, 1) ^ n[i], v = Jo(b, O, 1) ^ n[i + 1];
1861
1864
  for (let S = 0; S < 50; S += 10)
1862
1865
  e[r + S] ^= q, e[r + S + 1] ^= v;
1863
1866
  }
1864
1867
  let o = e[2], a = e[3];
1865
1868
  for (let r = 0; r < 24; r++) {
1866
- const i = Is[r], l = Go(o, a, i), b = Yo(o, a, i), O = Ss[r];
1869
+ const i = Is[r], l = Yo(o, a, i), b = Jo(o, a, i), O = Ss[r];
1867
1870
  o = e[O], a = e[O + 1], e[O] = l, e[O + 1] = b;
1868
1871
  }
1869
1872
  for (let r = 0; r < 50; r += 10) {
@@ -1876,10 +1879,10 @@ function Vf(e, t = 24) {
1876
1879
  }
1877
1880
  on(n);
1878
1881
  }
1879
- class po extends ys {
1882
+ class ho extends ys {
1880
1883
  // NOTE: we accept arguments in bytes instead of bits here.
1881
1884
  constructor(t, n, s, o = !1, a = 24) {
1882
- if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = s, this.enableXOF = o, this.rounds = a, Uo(s), !(0 < t && t < 200))
1885
+ if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = s, this.enableXOF = o, this.rounds = a, Mo(s), !(0 < t && t < 200))
1883
1886
  throw new Error("only keccak-f1600 function is supported");
1884
1887
  this.state = new Uint8Array(200), this.state32 = rf(this.state);
1885
1888
  }
@@ -1887,10 +1890,10 @@ class po extends ys {
1887
1890
  return this._cloneInto();
1888
1891
  }
1889
1892
  keccak() {
1890
- Mo(this.state32), Vf(this.state32, this.rounds), Mo(this.state32), this.posOut = 0, this.pos = 0;
1893
+ Ho(this.state32), Vf(this.state32, this.rounds), Ho(this.state32), this.posOut = 0, this.pos = 0;
1891
1894
  }
1892
1895
  update(t) {
1893
- En(this), t = fo(t), nn(t);
1896
+ En(this), t = mo(t), nn(t);
1894
1897
  const { blockLen: n, state: s } = this, o = t.length;
1895
1898
  for (let a = 0; a < o; ) {
1896
1899
  const r = Math.min(n - this.pos, o - a);
@@ -1923,7 +1926,7 @@ class po extends ys {
1923
1926
  return this.writeInto(t);
1924
1927
  }
1925
1928
  xof(t) {
1926
- return Uo(t), this.xofInto(new Uint8Array(t));
1929
+ return Mo(t), this.xofInto(new Uint8Array(t));
1927
1930
  }
1928
1931
  digestInto(t) {
1929
1932
  if (bs(t, this), this.finished)
@@ -1938,12 +1941,12 @@ class po extends ys {
1938
1941
  }
1939
1942
  _cloneInto(t) {
1940
1943
  const { blockLen: n, suffix: s, outputLen: o, rounds: a, enableXOF: r } = this;
1941
- return t || (t = new po(n, s, o, r, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = s, t.outputLen = o, t.enableXOF = r, t.destroyed = this.destroyed, t;
1944
+ return t || (t = new ho(n, s, o, r, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = s, t.outputLen = o, t.enableXOF = r, t.destroyed = this.destroyed, t;
1942
1945
  }
1943
1946
  }
1944
- const Gf = (e, t, n) => As(() => new po(t, e, n)), Yf = Gf(1, 136, 256 / 8);
1947
+ const Gf = (e, t, n) => As(() => new ho(t, e, n)), Yf = Gf(1, 136, 256 / 8);
1945
1948
  function Fs(e, t) {
1946
- const n = t || "hex", s = Yf(Yt(e, { strict: !1 }) ? co(e) : e);
1949
+ const n = t || "hex", s = Yf(Yt(e, { strict: !1 }) ? lo(e) : e);
1947
1950
  return n === "bytes" ? s : Vt(s);
1948
1951
  }
1949
1952
  const Pn = /* @__PURE__ */ new xs(8192);
@@ -1964,7 +1967,7 @@ function He(e, t) {
1964
1967
  const o = qf.test(e) ? e.toLowerCase() === e ? !0 : n ? Jf(e) === e : !0 : !1;
1965
1968
  return Dn.set(s, o), o;
1966
1969
  }
1967
- function ho(e, t, n, { strict: s } = {}) {
1970
+ function go(e, t, n, { strict: s } = {}) {
1968
1971
  return Yt(e, { strict: !1 }) ? jf(e, t, n, {
1969
1972
  strict: s
1970
1973
  }) : zf(e, t, n, {
@@ -2007,7 +2010,7 @@ function Qf(e) {
2007
2010
  if (s < 0)
2008
2011
  throw new In({ chainId: s });
2009
2012
  }
2010
- go(e);
2013
+ wo(e);
2011
2014
  }
2012
2015
  function Kf(e) {
2013
2016
  const { blobVersionedHashes: t } = e;
@@ -2015,7 +2018,7 @@ function Kf(e) {
2015
2018
  if (t.length === 0)
2016
2019
  throw new Cs();
2017
2020
  for (const n of t) {
2018
- const s = _e(n), o = Cn(ho(n, 0, 1));
2021
+ const s = _e(n), o = Cn(go(n, 0, 1));
2019
2022
  if (s !== 32)
2020
2023
  throw new Bf({ hash: n, size: s });
2021
2024
  if (o !== Ts)
@@ -2025,9 +2028,9 @@ function Kf(e) {
2025
2028
  });
2026
2029
  }
2027
2030
  }
2028
- go(e);
2031
+ wo(e);
2029
2032
  }
2030
- function go(e) {
2033
+ function wo(e) {
2031
2034
  const { chainId: t, maxPriorityFeePerGas: n, maxFeePerGas: s, to: o } = e;
2032
2035
  if (t <= 0)
2033
2036
  throw new In({ chainId: t });
@@ -2156,7 +2159,7 @@ function tm(e, t) {
2156
2159
  }
2157
2160
  function nm(e, t) {
2158
2161
  const { chainId: n, gas: s, nonce: o, to: a, value: r, maxFeePerGas: i, maxPriorityFeePerGas: l, accessList: b, data: O } = e;
2159
- go(e);
2162
+ wo(e);
2160
2163
  const q = Nn(b), v = [
2161
2164
  fe(n),
2162
2165
  o ? fe(o) : "0x",
@@ -2258,7 +2261,7 @@ const am = {
2258
2261
  transactions: e.transactions?.map((n) => {
2259
2262
  if (typeof n == "string")
2260
2263
  return n;
2261
- const s = uo(n);
2264
+ const s = fo(n);
2262
2265
  return s.typeHex === "0x7e" && (s.isSystemTx = n.isSystemTx, s.mint = n.mint ? Ht(n.mint) : void 0, s.sourceHash = n.sourceHash, s.type = "deposit"), s;
2263
2266
  }),
2264
2267
  stateRoot: e.stateRoot
@@ -2445,7 +2448,7 @@ const pm = /* @__PURE__ */ bt({
2445
2448
  }
2446
2449
  }
2447
2450
  });
2448
- function wo(e) {
2451
+ function bo(e) {
2449
2452
  return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
2450
2453
  }
2451
2454
  class hm extends pe {
@@ -2461,7 +2464,7 @@ class hm extends pe {
2461
2464
  });
2462
2465
  }
2463
2466
  }
2464
- function to(e, { includeName: t = !1 } = {}) {
2467
+ function no(e, { includeName: t = !1 } = {}) {
2465
2468
  if (e.type !== "function" && e.type !== "event" && e.type !== "error")
2466
2469
  throw new Tm(e.type);
2467
2470
  return `${e.name}(${Ds(e.inputs, { includeName: t })})`;
@@ -2497,7 +2500,7 @@ class ym extends pe {
2497
2500
  `), { name: "AbiEncodingLengthMismatchError" });
2498
2501
  }
2499
2502
  }
2500
- class Jo extends pe {
2503
+ class qo extends pe {
2501
2504
  constructor(t, { docsPath: n } = {}) {
2502
2505
  super([
2503
2506
  `Function ${t ? `"${t}" ` : ""}not found on ABI.`,
@@ -2513,8 +2516,8 @@ class Am extends pe {
2513
2516
  constructor(t, n) {
2514
2517
  super("Found ambiguous types in overloaded ABI items.", {
2515
2518
  metaMessages: [
2516
- `\`${t.type}\` in \`${to(t.abiItem)}\`, and`,
2517
- `\`${n.type}\` in \`${to(n.abiItem)}\``,
2519
+ `\`${t.type}\` in \`${no(t.abiItem)}\`, and`,
2520
+ `\`${n.type}\` in \`${no(n.abiItem)}\``,
2518
2521
  "",
2519
2522
  "These types encode differently and cannot be distinguished at runtime.",
2520
2523
  "Remove one of the ambiguous items in the ABI."
@@ -2549,25 +2552,25 @@ class Tm extends pe {
2549
2552
  `), { name: "InvalidDefinitionTypeError" });
2550
2553
  }
2551
2554
  }
2552
- const Cm = (e) => Fs(co(e));
2555
+ const Cm = (e) => Fs(lo(e));
2553
2556
  function Em(e) {
2554
2557
  return Cm(e);
2555
2558
  }
2556
2559
  function xm(e, t) {
2557
2560
  return e.exec(t)?.groups;
2558
2561
  }
2559
- const qo = /^tuple(?<array>(\[(\d*)\])*)$/;
2560
- function no(e) {
2562
+ const zo = /^tuple(?<array>(\[(\d*)\])*)$/;
2563
+ function oo(e) {
2561
2564
  let t = e.type;
2562
- if (qo.test(e.type) && "components" in e) {
2565
+ if (zo.test(e.type) && "components" in e) {
2563
2566
  t = "(";
2564
2567
  const n = e.components.length;
2565
2568
  for (let o = 0; o < n; o++) {
2566
2569
  const a = e.components[o];
2567
- t += no(a), o < n - 1 && (t += ", ");
2570
+ t += oo(a), o < n - 1 && (t += ", ");
2568
2571
  }
2569
- const s = xm(qo, e.type);
2570
- return t += `)${s?.array || ""}`, no({
2572
+ const s = xm(zo, e.type);
2573
+ return t += `)${s?.array || ""}`, oo({
2571
2574
  ...e,
2572
2575
  type: t
2573
2576
  });
@@ -2579,7 +2582,7 @@ function Zt(e) {
2579
2582
  const n = e.length;
2580
2583
  for (let s = 0; s < n; s++) {
2581
2584
  const o = e[s];
2582
- t += no(o), s !== n - 1 && (t += ", ");
2585
+ t += oo(o), s !== n - 1 && (t += ", ");
2583
2586
  }
2584
2587
  return t;
2585
2588
  }
@@ -2618,7 +2621,7 @@ const Nm = (e) => {
2618
2621
  function Ls(e) {
2619
2622
  return Em(Nm(e));
2620
2623
  }
2621
- const Us = (e) => ho(Ls(e), 0, 4), Bm = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
2624
+ const Us = (e) => go(Ls(e), 0, 4), Bm = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
2622
2625
  function Fm(e, t) {
2623
2626
  if (e.length !== t.length)
2624
2627
  throw new ym({
@@ -2628,16 +2631,16 @@ function Fm(e, t) {
2628
2631
  const n = Rm({
2629
2632
  params: e,
2630
2633
  values: t
2631
- }), s = yo(n);
2634
+ }), s = Ao(n);
2632
2635
  return s.length === 0 ? "0x" : s;
2633
2636
  }
2634
2637
  function Rm({ params: e, values: t }) {
2635
2638
  const n = [];
2636
2639
  for (let s = 0; s < e.length; s++)
2637
- n.push(bo({ param: e[s], value: t[s] }));
2640
+ n.push(yo({ param: e[s], value: t[s] }));
2638
2641
  return n;
2639
2642
  }
2640
- function bo({ param: e, value: t }) {
2643
+ function yo({ param: e, value: t }) {
2641
2644
  const n = Wm(e.type);
2642
2645
  if (n) {
2643
2646
  const [s, o] = n;
@@ -2666,7 +2669,7 @@ function bo({ param: e, value: t }) {
2666
2669
  docsPath: "/docs/contract/encodeAbiParameters"
2667
2670
  });
2668
2671
  }
2669
- function yo(e) {
2672
+ function Ao(e) {
2670
2673
  let t = 0;
2671
2674
  for (let a = 0; a < e.length; a++) {
2672
2675
  const { dynamic: r, encoded: i } = e[a];
@@ -2698,11 +2701,11 @@ function Pm(e, { length: t, param: n }) {
2698
2701
  let o = !1;
2699
2702
  const a = [];
2700
2703
  for (let r = 0; r < e.length; r++) {
2701
- const i = bo({ param: n, value: e[r] });
2704
+ const i = yo({ param: n, value: e[r] });
2702
2705
  i.dynamic && (o = !0), a.push(i);
2703
2706
  }
2704
2707
  if (s || o) {
2705
- const r = yo(a);
2708
+ const r = Ao(a);
2706
2709
  if (s) {
2707
2710
  const i = fe(a.length, { size: 32 });
2708
2711
  return {
@@ -2746,7 +2749,7 @@ function Um(e, { signed: t, size: n = 256 }) {
2746
2749
  if (typeof n == "number") {
2747
2750
  const s = 2n ** (BigInt(n) - (t ? 1n : 0n)) - 1n, o = t ? -s - 1n : 0n;
2748
2751
  if (e > s || e < o)
2749
- throw new io({
2752
+ throw new co({
2750
2753
  max: s.toString(),
2751
2754
  min: o.toString(),
2752
2755
  signed: t,
@@ -2765,7 +2768,7 @@ function Um(e, { signed: t, size: n = 256 }) {
2765
2768
  function Mm(e) {
2766
2769
  const t = ls(e), n = Math.ceil(_e(t) / 32), s = [];
2767
2770
  for (let o = 0; o < n; o++)
2768
- s.push(Ct(ho(t, o * 32, (o + 1) * 32), {
2771
+ s.push(Ct(go(t, o * 32, (o + 1) * 32), {
2769
2772
  dir: "right"
2770
2773
  }));
2771
2774
  return {
@@ -2780,7 +2783,7 @@ function Hm(e, { param: t }) {
2780
2783
  let n = !1;
2781
2784
  const s = [];
2782
2785
  for (let o = 0; o < t.components.length; o++) {
2783
- const a = t.components[o], r = Array.isArray(e) ? o : a.name, i = bo({
2786
+ const a = t.components[o], r = Array.isArray(e) ? o : a.name, i = yo({
2784
2787
  param: a,
2785
2788
  value: e[r]
2786
2789
  });
@@ -2788,7 +2791,7 @@ function Hm(e, { param: t }) {
2788
2791
  }
2789
2792
  return {
2790
2793
  dynamic: n,
2791
- encoded: n ? yo(s) : Gt(s.map(({ encoded: o }) => o))
2794
+ encoded: n ? Ao(s) : Gt(s.map(({ encoded: o }) => o))
2792
2795
  };
2793
2796
  }
2794
2797
  function Wm(e) {
@@ -2818,7 +2821,7 @@ function Gm(e) {
2818
2821
  continue;
2819
2822
  if (n.every((b, O) => {
2820
2823
  const q = "inputs" in i && i.inputs[O];
2821
- return q ? oo(b, q) : !1;
2824
+ return q ? so(b, q) : !1;
2822
2825
  })) {
2823
2826
  if (r && "inputs" in r && r.inputs) {
2824
2827
  const b = Ms(i.inputs, r.inputs, n);
@@ -2836,7 +2839,7 @@ function Gm(e) {
2836
2839
  }
2837
2840
  return r || a[0];
2838
2841
  }
2839
- function oo(e, t) {
2842
+ function so(e, t) {
2840
2843
  const n = typeof e, s = t.type;
2841
2844
  switch (s) {
2842
2845
  case "address":
@@ -2848,7 +2851,7 @@ function oo(e, t) {
2848
2851
  case "string":
2849
2852
  return n === "string";
2850
2853
  default:
2851
- return s === "tuple" && "components" in t ? Object.values(t.components).every((o, a) => n === "object" && oo(Object.values(e)[a], o)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(s) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(s) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(s) ? Array.isArray(e) && e.every((o) => oo(o, {
2854
+ return s === "tuple" && "components" in t ? Object.values(t.components).every((o, a) => n === "object" && so(Object.values(e)[a], o)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(s) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(s) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(s) ? Array.isArray(e) && e.every((o) => so(o, {
2852
2855
  ...t,
2853
2856
  // Pop off `[]` or `[M]` from end of type
2854
2857
  type: s.replace(/(\[[0-9]{0,}\])$/, "")
@@ -2865,7 +2868,7 @@ function Ms(e, t, n) {
2865
2868
  return r;
2866
2869
  }
2867
2870
  }
2868
- function zo(e) {
2871
+ function jo(e) {
2869
2872
  return e.reduce((t, { slot: n, value: s }) => `${t} ${n}: ${s}
2870
2873
  `, "");
2871
2874
  }
@@ -2877,14 +2880,14 @@ function Ym(e) {
2877
2880
  `), s.balance && (o += ` balance: ${s.balance}
2878
2881
  `), s.code && (o += ` code: ${s.code}
2879
2882
  `), s.state && (o += ` state:
2880
- `, o += zo(s.state)), s.stateDiff && (o += ` stateDiff:
2881
- `, o += zo(s.stateDiff)), o;
2883
+ `, o += jo(s.state)), s.stateDiff && (o += ` stateDiff:
2884
+ `, o += jo(s.stateDiff)), o;
2882
2885
  }, ` State Override:
2883
2886
  `).slice(0, -1);
2884
2887
  }
2885
2888
  class Jm extends pe {
2886
2889
  constructor(t, { account: n, docsPath: s, chain: o, data: a, gas: r, gasPrice: i, maxFeePerGas: l, maxPriorityFeePerGas: b, nonce: O, to: q, value: v, stateOverride: S }) {
2887
- const B = n ? wo(n) : void 0;
2890
+ const B = n ? bo(n) : void 0;
2888
2891
  let x = hs({
2889
2892
  from: B?.address,
2890
2893
  to: q,
@@ -2925,10 +2928,10 @@ function qm(e, t) {
2925
2928
  }) : Pt.nodeMessage.test(n) ? new Pt({
2926
2929
  cause: e,
2927
2930
  maxFeePerGas: t?.maxFeePerGas
2928
- }) : jn.nodeMessage.test(n) ? new jn({
2931
+ }) : Qn.nodeMessage.test(n) ? new Qn({
2929
2932
  cause: e,
2930
2933
  maxFeePerGas: t?.maxFeePerGas
2931
- }) : Qn.nodeMessage.test(n) ? new Qn({ cause: e, nonce: t?.nonce }) : Kn.nodeMessage.test(n) ? new Kn({ cause: e, nonce: t?.nonce }) : Xn.nodeMessage.test(n) ? new Xn({ cause: e, nonce: t?.nonce }) : _n.nodeMessage.test(n) ? new _n({ cause: e }) : Zn.nodeMessage.test(n) ? new Zn({ cause: e, gas: t?.gas }) : $n.nodeMessage.test(n) ? new $n({ cause: e, gas: t?.gas }) : eo.nodeMessage.test(n) ? new eo({ cause: e }) : sn.nodeMessage.test(n) ? new sn({
2934
+ }) : Kn.nodeMessage.test(n) ? new Kn({ cause: e, nonce: t?.nonce }) : Xn.nodeMessage.test(n) ? new Xn({ cause: e, nonce: t?.nonce }) : _n.nodeMessage.test(n) ? new _n({ cause: e, nonce: t?.nonce }) : Zn.nodeMessage.test(n) ? new Zn({ cause: e }) : $n.nodeMessage.test(n) ? new $n({ cause: e, gas: t?.gas }) : eo.nodeMessage.test(n) ? new eo({ cause: e, gas: t?.gas }) : to.nodeMessage.test(n) ? new to({ cause: e }) : sn.nodeMessage.test(n) ? new sn({
2932
2935
  cause: e,
2933
2936
  maxFeePerGas: t?.maxFeePerGas,
2934
2937
  maxPriorityFeePerGas: t?.maxPriorityFeePerGas
@@ -2959,7 +2962,7 @@ function jm(e, { format: t }) {
2959
2962
  return s(o), n;
2960
2963
  }
2961
2964
  function Qm(e) {
2962
- const { account: t, maxFeePerGas: n, maxPriorityFeePerGas: s, to: o } = e, a = t ? wo(t) : void 0;
2965
+ const { account: t, maxFeePerGas: n, maxPriorityFeePerGas: s, to: o } = e, a = t ? bo(t) : void 0;
2963
2966
  if (a && !He(a.address))
2964
2967
  throw new mt({ address: a.address });
2965
2968
  if (o && !He(o))
@@ -2973,7 +2976,7 @@ async function Km(e, t) {
2973
2976
  const { account: n = e.account } = t;
2974
2977
  if (!n)
2975
2978
  throw new hm();
2976
- const s = wo(n);
2979
+ const s = bo(n);
2977
2980
  try {
2978
2981
  const { accessList: o, blockNumber: a, blockTag: r, data: i, gas: l, gasPrice: b, maxFeePerGas: O, maxPriorityFeePerGas: q, nonce: v, to: S, value: B, ...x } = t, he = (typeof a == "bigint" ? fe(a) : void 0) || r;
2979
2982
  Qm(t);
@@ -3009,9 +3012,9 @@ async function Km(e, t) {
3009
3012
  }
3010
3013
  const Xm = {
3011
3014
  fees: {
3012
- estimateFeesPerGas: jo,
3015
+ estimateFeesPerGas: Qo,
3013
3016
  async maxPriorityFeePerGas({ block: e, client: t, request: n }) {
3014
- const s = await jo({
3017
+ const s = await Qo({
3015
3018
  block: e,
3016
3019
  client: t,
3017
3020
  multiply: (o) => o,
@@ -3022,7 +3025,7 @@ const Xm = {
3022
3025
  }
3023
3026
  }
3024
3027
  };
3025
- async function jo({ client: e, multiply: t, request: n, type: s }) {
3028
+ async function Qo({ client: e, multiply: t, request: n, type: s }) {
3026
3029
  try {
3027
3030
  const o = await Km(e, {
3028
3031
  ...n,
@@ -3166,7 +3169,7 @@ const _m = /* @__PURE__ */ bt({
3166
3169
  blockCreated: 25770160
3167
3170
  }
3168
3171
  }
3169
- }), Qo = "/docs/contract/encodeFunctionData";
3172
+ }), Ko = "/docs/contract/encodeFunctionData";
3170
3173
  function tp(e) {
3171
3174
  const { abi: t, args: n, functionName: s } = e;
3172
3175
  let o = t[0];
@@ -3177,14 +3180,14 @@ function tp(e) {
3177
3180
  name: s
3178
3181
  });
3179
3182
  if (!a)
3180
- throw new Jo(s, { docsPath: Qo });
3183
+ throw new qo(s, { docsPath: Ko });
3181
3184
  o = a;
3182
3185
  }
3183
3186
  if (o.type !== "function")
3184
- throw new Jo(void 0, { docsPath: Qo });
3187
+ throw new qo(void 0, { docsPath: Ko });
3185
3188
  return {
3186
3189
  abi: [o],
3187
- functionName: Us(to(o))
3190
+ functionName: Us(no(o))
3188
3191
  };
3189
3192
  }
3190
3193
  function Et(e) {
@@ -3399,10 +3402,10 @@ function wt(e, t) {
3399
3402
  s = s.padEnd(t, "0");
3400
3403
  return BigInt(`${o ? "-" : ""}${n}${s}`);
3401
3404
  }
3402
- const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x0000000000000000000000000000000000000000", Ws = ao(
3405
+ const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x0000000000000000000000000000000000000000", Ws = ro(
3403
3406
  void 0
3404
3407
  ), Bn = () => {
3405
- const e = ro(Ws);
3408
+ const e = io(Ws);
3406
3409
  if (!e)
3407
3410
  throw new Error("useConnect must be used within ConnectProvider");
3408
3411
  return {
@@ -3434,7 +3437,7 @@ const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x000000000000000
3434
3437
  l.value = r, document.body.appendChild(l), l.select(), document.execCommand("copy"), l.remove(), i();
3435
3438
  }
3436
3439
  }, [e]);
3437
- return /* @__PURE__ */ G(so, { children: He(e || "") && /* @__PURE__ */ Ae("div", { className: "chat-user-info", children: [
3440
+ return /* @__PURE__ */ G(ao, { children: He(e || "") && /* @__PURE__ */ Ae("div", { className: "chat-user-info", children: [
3438
3441
  t && ft[t]?.logo && /* @__PURE__ */ G("div", { className: "user-avatar", children: /* @__PURE__ */ G(
3439
3442
  "img",
3440
3443
  {
@@ -3493,7 +3496,7 @@ const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x000000000000000
3493
3496
  }
3494
3497
  )
3495
3498
  ] }) });
3496
- }, bp = "chat_widget_messages", Ao = bp, gn = 200, yp = () => Math.random().toString(36).substring(2, 12), Vs = "welcome-message";
3499
+ }, bp = "chat_widget_messages", vo = bp, gn = 200, yp = () => Math.random().toString(36).substring(2, 12), Vs = "welcome-message";
3497
3500
  function Ln(e) {
3498
3501
  return [
3499
3502
  {
@@ -3507,44 +3510,44 @@ function Ln(e) {
3507
3510
  function Ap(e, t) {
3508
3511
  return e && t ? `${e}_${t}` : "";
3509
3512
  }
3510
- function Ko(e) {
3513
+ function Xo(e) {
3511
3514
  return e.map((t) => ({
3512
3515
  ...t,
3513
3516
  timestamp: new Date(t.timestamp)
3514
3517
  }));
3515
3518
  }
3516
- function Xo() {
3517
- const e = Ft.getItem(Ao);
3519
+ function _o() {
3520
+ const e = Ft.getItem(vo);
3518
3521
  if (!e) return null;
3519
3522
  try {
3520
3523
  const t = JSON.parse(e);
3521
3524
  if (t && t.owner !== void 0 && Array.isArray(t.messages))
3522
3525
  return {
3523
3526
  owner: t.owner,
3524
- messages: Ko(t.messages)
3527
+ messages: Xo(t.messages)
3525
3528
  };
3526
3529
  if (Array.isArray(t))
3527
- return { owner: "", messages: Ko(t) };
3530
+ return { owner: "", messages: Xo(t) };
3528
3531
  } catch {
3529
3532
  }
3530
3533
  return null;
3531
3534
  }
3532
3535
  function wn(e, t) {
3533
- Ft.setItem(Ao, JSON.stringify({ owner: e, messages: t }));
3536
+ Ft.setItem(vo, JSON.stringify({ owner: e, messages: t }));
3534
3537
  }
3535
3538
  function vp() {
3536
- const { account: e } = Bn(), { t } = Sn(), n = Ap(e?.address, e?.chainId), s = zn(
3539
+ const { account: e } = Bn(), { t } = Sn(), n = Ap(e?.address, e?.chainId), s = jn(
3537
3540
  () => Ln(t("welcomeMessage")),
3538
3541
  [t]
3539
3542
  ), [o, a] = Xe(() => n || "pending"), [r, i] = Xe(() => {
3540
- const x = Xo();
3543
+ const x = _o();
3541
3544
  return n ? x && x.owner === n ? x.messages : Ln(t("welcomeMessage")) : x?.messages ?? Ln(t("welcomeMessage"));
3542
3545
  });
3543
3546
  if (o === "pending" && n) {
3544
- const x = Xo();
3547
+ const x = _o();
3545
3548
  x && x.owner === n ? i(x.messages) : wn(n, r), a(n);
3546
3549
  } else o !== "pending" && n && o !== n && (i(s), wn(n, s), a(n));
3547
- const l = zn(
3550
+ const l = jn(
3548
3551
  () => r.map(
3549
3552
  (x) => x.id === Vs ? { ...x, text: t("welcomeMessage") } : x
3550
3553
  ),
@@ -3556,7 +3559,7 @@ function vp() {
3556
3559
  const x = [];
3557
3560
  for (let k = 0; k < Ft.length; k++) {
3558
3561
  const he = Ft.key(k);
3559
- he && he.startsWith(Ao + "_") && x.push(he);
3562
+ he && he.startsWith(vo + "_") && x.push(he);
3560
3563
  }
3561
3564
  x.forEach((k) => Ft.removeItem(k));
3562
3565
  }, []);
@@ -3609,8 +3612,8 @@ function vp() {
3609
3612
  clearMessagesById: B
3610
3613
  };
3611
3614
  }
3612
- const Gs = ao(void 0), kp = () => {
3613
- const e = ro(Gs);
3615
+ const Gs = ro(void 0), kp = () => {
3616
+ const e = io(Gs);
3614
3617
  if (!e)
3615
3618
  throw new Error("useConfig must be used within ConfigProvider");
3616
3619
  return e;
@@ -3618,7 +3621,7 @@ const Gs = ao(void 0), kp = () => {
3618
3621
  children: e,
3619
3622
  initialConfig: t
3620
3623
  }) => /* @__PURE__ */ G(Gs.Provider, { value: { config: t || null }, children: e });
3621
- var Cp = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Un = Math.ceil, nt = Math.floor, Ke = "[BigNumber Error] ", _o = Ke + "Number primitive has more than 15 significant digits: ", it = 1e14, we = 14, Mn = 9007199254740991, Hn = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], kt = 1e7, We = 1e9;
3624
+ var Cp = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Un = Math.ceil, nt = Math.floor, Ke = "[BigNumber Error] ", Zo = Ke + "Number primitive has more than 15 significant digits: ", it = 1e14, we = 14, Mn = 9007199254740991, Hn = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], kt = 1e7, We = 1e9;
3622
3625
  function Ys(e) {
3623
3626
  var t, n, s, o = y.prototype = { constructor: y, toString: null, valueOf: null }, a = new y(1), r = 20, i = 4, l = -7, b = 21, O = -1e7, q = 1e7, v = !1, S = 1, B = 0, x = {
3624
3627
  prefix: "",
@@ -3657,7 +3660,7 @@ function Ys(e) {
3657
3660
  if (I = String(c), h = typeof c == "number") {
3658
3661
  if (c * 0 != 0) return s(N, I, h, d);
3659
3662
  if (N.s = 1 / c < 0 ? (I = I.slice(1), -1) : 1, y.DEBUG && I.replace(/^0\.0*|\./, "").length > 15)
3660
- throw Error(_o + c);
3663
+ throw Error(Zo + c);
3661
3664
  } else
3662
3665
  N.s = I.charCodeAt(0) === 45 ? (I = I.slice(1), -1) : 1;
3663
3666
  for (m = k.slice(0, d), g = E = 0, w = I.length; E < w; E++)
@@ -3679,7 +3682,7 @@ function Ys(e) {
3679
3682
  for (w = I.length; I.charCodeAt(--w) === 48; ) ;
3680
3683
  if (I = I.slice(E, ++w)) {
3681
3684
  if (w -= E, h && y.DEBUG && w > 15 && (c > Mn || c !== nt(c)))
3682
- throw Error(_o + N.s * c);
3685
+ throw Error(Zo + N.s * c);
3683
3686
  if ((g = g - E - 1) > q)
3684
3687
  N.c = N.e = null;
3685
3688
  else if (g < O)
@@ -4385,7 +4388,7 @@ async function Qe(e) {
4385
4388
  };
4386
4389
  }
4387
4390
  }
4388
- async function Zo(e) {
4391
+ async function $o(e) {
4389
4392
  const { address: t, chain: n = "base" } = e;
4390
4393
  if (!t)
4391
4394
  throw new Error("Token address is required");
@@ -6084,9 +6087,9 @@ async function Jn(e) {
6084
6087
  return console.warn("getGasPrice failed:", o), new ie(0);
6085
6088
  }
6086
6089
  }
6087
- var ne = {}, tn = { exports: {} }, _p = tn.exports, $o;
6090
+ var ne = {}, tn = { exports: {} }, _p = tn.exports, es;
6088
6091
  function Zp() {
6089
- return $o || ($o = 1, (function(e, t) {
6092
+ return es || (es = 1, (function(e, t) {
6090
6093
  (function(n, s) {
6091
6094
  var o = "1.0.39", a = "", r = "?", i = "function", l = "undefined", b = "object", O = "string", q = "major", v = "model", S = "name", B = "type", x = "vendor", k = "version", he = "architecture", y = "console", J = "mobile", Q = "tablet", me = "smarttv", ge = "wearable", Ee = "embedded", c = 500, d = "Amazon", m = "Apple", C = "ASUS", u = "BlackBerry", g = "Browser", E = "Chrome", h = "Edge", w = "Firefox", I = "Google", N = "Huawei", F = "LG", X = "Microsoft", oe = "Motorola", de = "Opera", Ce = "Samsung", xe = "Sharp", j = "Sony", be = "Xiaomi", Be = "Zebra", qe = "Facebook", ze = "Chromium OS", st = "Mac OS", Ve = " Browser", at = function(H, L) {
6092
6095
  var D = {};
@@ -6167,10 +6170,10 @@ function Zp() {
6167
6170
  })(typeof window == "object" ? window : _p);
6168
6171
  })(tn, tn.exports)), tn.exports;
6169
6172
  }
6170
- var es;
6173
+ var ts;
6171
6174
  function $p() {
6172
- if (es) return ne;
6173
- es = 1, Object.defineProperty(ne, "__esModule", { value: !0 });
6175
+ if (ts) return ne;
6176
+ ts = 1, Object.defineProperty(ne, "__esModule", { value: !0 });
6174
6177
  function e(T) {
6175
6178
  return T && typeof T == "object" && "default" in T ? T.default : T;
6176
6179
  }
@@ -6495,19 +6498,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6495
6498
  };
6496
6499
  };
6497
6500
  function Oe(T) {
6498
- var f = T ? v(T) : S, p = f.device, P = f.browser, Y = f.engine, ye = f.os, Ue = f.ua, je = Ce(p.type), pn = je.isBrowser, Va = je.isMobile, Ga = je.isTablet, No = je.isSmartTV, Bo = je.isConsole, Fo = je.isWearable, Ro = je.isEmbedded;
6501
+ var f = T ? v(T) : S, p = f.device, P = f.browser, Y = f.engine, ye = f.os, Ue = f.ua, je = Ce(p.type), pn = je.isBrowser, Va = je.isMobile, Ga = je.isTablet, Bo = je.isSmartTV, Fo = je.isConsole, Ro = je.isWearable, Oo = je.isEmbedded;
6499
6502
  if (pn)
6500
6503
  return qe(pn, P, Y, ye, Ue);
6501
- if (No)
6502
- return st(No, Y, ye, Ue);
6503
6504
  if (Bo)
6504
- return Ve(Bo, Y, ye, Ue);
6505
+ return st(Bo, Y, ye, Ue);
6506
+ if (Fo)
6507
+ return Ve(Fo, Y, ye, Ue);
6505
6508
  if (Va || Ga)
6506
6509
  return ze(je, p, ye, Ue);
6507
- if (Fo)
6508
- return at(Fo, Y, ye, Ue);
6509
6510
  if (Ro)
6510
- return Fe(Ro, p, Y, ye, Ue);
6511
+ return at(Ro, Y, ye, Ue);
6512
+ if (Oo)
6513
+ return Fe(Oo, p, Y, ye, Ue);
6511
6514
  }
6512
6515
  var ve = function(f) {
6513
6516
  var p = f.type;
@@ -6676,7 +6679,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6676
6679
  isSamsungBrowser: ue(P)
6677
6680
  };
6678
6681
  }
6679
- var Le = lt(i), un = U(i), fn = Ut(i), js = K(i), Qs = z(a) || Je(), Ks = ae(a), mn = pt(i) || Je(), vo = ve(i), ko = Lt(i) || Je(), To = rt(i), Xs = rt(i), Co = H(b), Eo = _(b), xo = te(b) || Je(), _s = R(a), Zs = le(a), $s = se(a), ea = ee(a), So = V(a), ta = W(b), na = A(b), oa = re(a), sa = Te(a), aa = Re(a), ra = M(i), ia = Z(i), ca = Ne(l), la = Pe(l), da = Kt(O), ua = ke(a) || Ye(O), fa = Se(a), ma = ce(i), pa = dt(), ha = Je(), ga = xt(), wa = Qt(), ba = Ze(), ya = Ye(O), Aa = ke(a) && !Ye(O), va = L(b), ka = D(b), Ta = $(a), Ca = ue(a), Ea = function(f) {
6682
+ var Le = lt(i), un = U(i), fn = Ut(i), js = K(i), Qs = z(a) || Je(), Ks = ae(a), mn = pt(i) || Je(), ko = ve(i), To = Lt(i) || Je(), Co = rt(i), Xs = rt(i), Eo = H(b), xo = _(b), So = te(b) || Je(), _s = R(a), Zs = le(a), $s = se(a), ea = ee(a), Io = V(a), ta = W(b), na = A(b), oa = re(a), sa = Te(a), aa = Re(a), ra = M(i), ia = Z(i), ca = Ne(l), la = Pe(l), da = Kt(O), ua = ke(a) || Ye(O), fa = Se(a), ma = ce(i), pa = dt(), ha = Je(), ga = xt(), wa = Qt(), ba = Ze(), ya = Ye(O), Aa = ke(a) && !Ye(O), va = L(b), ka = D(b), Ta = $(a), Ca = ue(a), Ea = function(f) {
6680
6683
  if (!f || typeof f != "string") {
6681
6684
  console.error("No valid user agent string was provided");
6682
6685
  return;
@@ -6691,30 +6694,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6691
6694
  });
6692
6695
  }, xa = function(f) {
6693
6696
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6694
- return Co ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6697
+ return Eo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6695
6698
  }, Sa = function(f) {
6696
6699
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6697
- return To ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6700
+ return Co ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6698
6701
  }, Ia = function(f) {
6699
6702
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6700
- return So ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6703
+ return Io ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6701
6704
  }, Na = function(f) {
6702
6705
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6703
- return xo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6706
+ return So ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6704
6707
  }, Ba = function(f) {
6705
6708
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6706
6709
  return mn ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6707
6710
  }, Fa = function(f) {
6708
6711
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6709
- return ko ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6712
+ return To ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6710
6713
  }, Ra = function(f) {
6711
6714
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6712
- return Eo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6715
+ return xo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6713
6716
  }, Oa = function(f) {
6714
6717
  var p = f.renderWithFragment, P = f.children;
6715
6718
  f.viewClassName, f.style;
6716
6719
  var Y = m(f, ["renderWithFragment", "children", "viewClassName", "style"]);
6717
- return vo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6720
+ return ko ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6718
6721
  }, Pa = function(f) {
6719
6722
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6720
6723
  return Le ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
@@ -6803,46 +6806,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6803
6806
  };
6804
6807
  }, [Y]), p;
6805
6808
  }
6806
- function Io(T) {
6809
+ function No(T) {
6807
6810
  var f = T || window.navigator.userAgent;
6808
6811
  return v(f);
6809
6812
  }
6810
6813
  function Wa(T) {
6811
- var f = T || window.navigator.userAgent, p = Io(f), P = Mt(p);
6814
+ var f = T || window.navigator.userAgent, p = No(f), P = Mt(p);
6812
6815
  return [P, p];
6813
6816
  }
6814
- return ne.AndroidView = xa, ne.BrowserTypes = X, ne.BrowserView = Sa, ne.ConsoleView = Da, ne.CustomView = Ua, ne.IEView = Ia, ne.IOSView = Na, ne.MobileOnlyView = Oa, ne.MobileView = Ba, ne.OsTypes = oe, ne.SmartTVView = Pa, ne.TabletView = Fa, ne.WearableView = La, ne.WinPhoneView = Ra, ne.browserName = aa, ne.browserVersion = sa, ne.deviceDetect = Oe, ne.deviceType = ma, ne.engineName = ca, ne.engineVersion = la, ne.fullBrowserVersion = oa, ne.getSelectorsByUserAgent = Ea, ne.getUA = da, ne.isAndroid = Co, ne.isBrowser = To, ne.isChrome = _s, ne.isChromium = Ks, ne.isConsole = un, ne.isDesktop = Xs, ne.isEdge = ua, ne.isEdgeChromium = ya, ne.isElectron = ba, ne.isEmbedded = js, ne.isFirefox = Zs, ne.isIE = So, ne.isIOS = xo, ne.isIOS13 = pa, ne.isIPad13 = ha, ne.isIPhone13 = ga, ne.isIPod13 = wa, ne.isLegacyEdge = Aa, ne.isMIUI = Ta, ne.isMacOs = ka, ne.isMobile = mn, ne.isMobileOnly = vo, ne.isMobileSafari = Qs, ne.isOpera = ea, ne.isSafari = $s, ne.isSamsungBrowser = Ca, ne.isSmartTV = Le, ne.isTablet = ko, ne.isWearable = fn, ne.isWinPhone = Eo, ne.isWindows = va, ne.isYandex = fa, ne.mobileModel = ia, ne.mobileVendor = ra, ne.osName = na, ne.osVersion = ta, ne.parseUserAgent = v, ne.setUserAgent = xe, ne.useDeviceData = Io, ne.useDeviceSelectors = Wa, ne.useMobileOrientation = Ha, ne.withOrientationChange = Ma, ne;
6817
+ return ne.AndroidView = xa, ne.BrowserTypes = X, ne.BrowserView = Sa, ne.ConsoleView = Da, ne.CustomView = Ua, ne.IEView = Ia, ne.IOSView = Na, ne.MobileOnlyView = Oa, ne.MobileView = Ba, ne.OsTypes = oe, ne.SmartTVView = Pa, ne.TabletView = Fa, ne.WearableView = La, ne.WinPhoneView = Ra, ne.browserName = aa, ne.browserVersion = sa, ne.deviceDetect = Oe, ne.deviceType = ma, ne.engineName = ca, ne.engineVersion = la, ne.fullBrowserVersion = oa, ne.getSelectorsByUserAgent = Ea, ne.getUA = da, ne.isAndroid = Eo, ne.isBrowser = Co, ne.isChrome = _s, ne.isChromium = Ks, ne.isConsole = un, ne.isDesktop = Xs, ne.isEdge = ua, ne.isEdgeChromium = ya, ne.isElectron = ba, ne.isEmbedded = js, ne.isFirefox = Zs, ne.isIE = Io, ne.isIOS = So, ne.isIOS13 = pa, ne.isIPad13 = ha, ne.isIPhone13 = ga, ne.isIPod13 = wa, ne.isLegacyEdge = Aa, ne.isMIUI = Ta, ne.isMacOs = ka, ne.isMobile = mn, ne.isMobileOnly = ko, ne.isMobileSafari = Qs, ne.isOpera = ea, ne.isSafari = $s, ne.isSamsungBrowser = Ca, ne.isSmartTV = Le, ne.isTablet = To, ne.isWearable = fn, ne.isWinPhone = xo, ne.isWindows = va, ne.isYandex = fa, ne.mobileModel = ia, ne.mobileVendor = ra, ne.osName = na, ne.osVersion = ta, ne.parseUserAgent = v, ne.setUserAgent = xe, ne.useDeviceData = No, ne.useDeviceSelectors = Wa, ne.useMobileOrientation = Ha, ne.withOrientationChange = Ma, ne;
6815
6818
  }
6816
6819
  var Nt = $p();
6817
- const eh = void 0, th = [
6818
- "AIzaSyD1KVBBG-QxLey_u4ce8l1tieJqmodH2-w",
6819
- "AIzaSyBnlVDkMyKNqbTnSc-p08OLmoa3-fvLvrk",
6820
- "AIzaSyAiXlBwSu5SfnRuYpda1zdVmIXNCQ3PBSM",
6821
- "AIzaSyBXKcrdJUszqWgvJs7gWJR335-kGGpjyXI",
6822
- "AIzaSyBj1X_Ip3xJomjN1lQ9q0WHxEyFJvAd_4Q",
6823
- "AIzaSyBlag_M5F8dC5YIcNWOF3g5xv0edVuiHQA",
6824
- "AIzaSyD9sPjc0kkFHI0XP2INhQsVYC27f8qhHzE",
6825
- "AIzaSyAIsWdN2PQTp0vGvIAnhC55U7m3T5vq-wo",
6826
- "AIzaSyDwnVG1YwJC3HOrZ-4jdwvE75Q3CKg35ug",
6827
- "AIzaSyBebB2G98NSBIoYePWYxa1WQiObwol8WHY"
6828
- ], ts = {
6820
+ const eh = "QUl6YVN5RGprZEFvMjNtMy00S0U3eWo2aVJQQmowN05lRXgxd0tz", qn = {
6829
6821
  model: "gemini-2.5-flash",
6830
6822
  "model2.0": "gemini-2.5-flash",
6831
6823
  apiKey: eh,
6832
6824
  url: "https://generativelanguage.googleapis.com"
6833
6825
  };
6834
- class nh extends jt {
6826
+ class th extends jt {
6835
6827
  enableGoogleSearch = !0;
6836
6828
  indexApiKey = 0;
6837
6829
  constructor() {
6838
- super(ts.url);
6830
+ super(qn.url);
6839
6831
  }
6840
6832
  getApiKey() {
6841
- let t = "", n = th;
6833
+ let t = "", n = [];
6842
6834
  const s = localStorage.getItem("arr_api_key_dev_gemini");
6843
- s && (n = JSON.parse(s));
6835
+ s ? n = JSON.parse(s) : n = qn.apiKey.split(",");
6844
6836
  const o = localStorage.getItem("index_api_key_gemini");
6845
- return o && (this.indexApiKey = Number(o), this.indexApiKey++), this.indexApiKey >= n.length && (this.indexApiKey = 0), t = n[this.indexApiKey], localStorage.setItem("index_api_key_gemini", this.indexApiKey.toString()), t;
6837
+ return o && (this.indexApiKey = Number(o), this.indexApiKey++), this.indexApiKey >= n.length && (this.indexApiKey = 0), t = n[this.indexApiKey], t && (t = atob(t)), localStorage.setItem("index_api_key_gemini", this.indexApiKey.toString()), t;
6846
6838
  }
6847
6839
  getUrl(t, n) {
6848
6840
  return `/v1beta/models/${n || "gemini-2.5-flash"}:${t}`;
@@ -6920,7 +6912,7 @@ The user may ask in their native language, so recognize the MEANING, not just sp
6920
6912
 
6921
6913
  If the question is about ANY of the above topics, respond with ONLY the word "yes" (lowercase, nothing else).
6922
6914
  Otherwise, respond with ONLY the word "no" (lowercase, nothing else).
6923
- Do not provide any explanation or additional text.`, o = this.getUrl("generateContent", ts["model2.0"]), a = {
6915
+ Do not provide any explanation or additional text.`, o = this.getUrl("generateContent", qn["model2.0"]), a = {
6924
6916
  contents: [
6925
6917
  {
6926
6918
  parts: [{ text: s }]
@@ -6937,8 +6929,8 @@ Do not provide any explanation or additional text.`, o = this.getUrl("generateCo
6937
6929
  }
6938
6930
  }
6939
6931
  }
6940
- const ns = new nh();
6941
- function qn(e, t) {
6932
+ const ns = new th();
6933
+ function zn(e, t) {
6942
6934
  if (!e) return e;
6943
6935
  const n = e.toLowerCase().trim();
6944
6936
  if (n === "max" || n === "all")
@@ -6950,7 +6942,7 @@ function qn(e, t) {
6950
6942
  }
6951
6943
  return e;
6952
6944
  }
6953
- const oh = ({
6945
+ const nh = ({
6954
6946
  isOpen: e,
6955
6947
  onClose: t,
6956
6948
  onTransaction: n,
@@ -7671,7 +7663,12 @@ $${ie(
7671
7663
  "bot",
7672
7664
  void 0,
7673
7665
  H
7674
- ), K && K > 0 && Z.length > K && l(a("sendOtherNfts"), "bot");
7666
+ ), K && K > 0 && Z.length > K && l(
7667
+ r("sendOtherNfts", {
7668
+ link: `https://nft.keyring.app/nft-list/${w}/${u?.address}`
7669
+ }),
7670
+ "bot"
7671
+ );
7675
7672
  } else
7676
7673
  k(!1), l(a("nftNoCollection"), "bot");
7677
7674
  } catch (M) {
@@ -7732,7 +7729,7 @@ $${ie(
7732
7729
  } catch (U) {
7733
7730
  console.error("Error fetching balances:", U), k(!1), l(a("viewBalancesFetchError"), "bot");
7734
7731
  }
7735
- }, [u?.address, h, l, g?.name, a, r]), Ve = zn(
7732
+ }, [u?.address, h, l, g?.name, a, r]), Ve = jn(
7736
7733
  () => [
7737
7734
  {
7738
7735
  id: "ask",
@@ -8032,7 +8029,7 @@ ${L}`);
8032
8029
  Ye
8033
8030
  );
8034
8031
  }
8035
- A.amount = qn(
8032
+ A.amount = zn(
8036
8033
  A.amount,
8037
8034
  Ne
8038
8035
  );
@@ -8075,7 +8072,7 @@ ${L}`);
8075
8072
  ), k(!1);
8076
8073
  return;
8077
8074
  }
8078
- A.amount = qn(
8075
+ A.amount = zn(
8079
8076
  A.amount,
8080
8077
  Re.balance_formatted || "0"
8081
8078
  );
@@ -8722,7 +8719,7 @@ To: ${Pe} ${Re.symbol}
8722
8719
  }
8723
8720
  if (ke && !le && R.contract_address)
8724
8721
  try {
8725
- const z = await Zo({
8722
+ const z = await $o({
8726
8723
  address: R.contract_address,
8727
8724
  chain: h
8728
8725
  });
@@ -8795,7 +8792,7 @@ To: ${Pe} ${Re.symbol}
8795
8792
  contractAddress: Ge
8796
8793
  };
8797
8794
  } else {
8798
- const $ = await Zo({
8795
+ const $ = await $o({
8799
8796
  address: Ge,
8800
8797
  chain: h
8801
8798
  });
@@ -8869,7 +8866,7 @@ To: ${Pe} ${Re.symbol}
8869
8866
  console.warn("NFT ownership lookup failed:", z);
8870
8867
  }
8871
8868
  }
8872
- if (R.amount && le?.balanceFormatted && (W.action === "send_token" || W.action === "send_native") && (R.amount = qn(
8869
+ if (R.amount && le?.balanceFormatted && (W.action === "send_token" || W.action === "send_native") && (R.amount = zn(
8873
8870
  R.amount,
8874
8871
  le.balanceFormatted
8875
8872
  )), A) {
@@ -9418,7 +9415,7 @@ Error: ${L.error}` : "";
9418
9415
  ] })
9419
9416
  }
9420
9417
  ),
9421
- (he || i.length === 1) && /* @__PURE__ */ Ae(so, { children: [
9418
+ (he || i.length === 1) && /* @__PURE__ */ Ae(ao, { children: [
9422
9419
  i.length > 1 && /* @__PURE__ */ G("div", { className: "message message-bot", role: "article", children: /* @__PURE__ */ G("div", { className: "message-bubble", children: /* @__PURE__ */ G("div", { className: "message-text", children: a("canIHelpYou") }) }) }),
9423
9420
  /* @__PURE__ */ G("div", { className: "suggestions-container", children: Ve.map((U) => /* @__PURE__ */ Ae(
9424
9421
  "button",
@@ -9501,7 +9498,7 @@ Error: ${L.error}` : "";
9501
9498
  )
9502
9499
  }
9503
9500
  ) : null;
9504
- }, sh = ({
9501
+ }, oh = ({
9505
9502
  position: e,
9506
9503
  theme: t,
9507
9504
  defaultOpen: n,
@@ -9531,10 +9528,10 @@ Error: ${L.error}` : "";
9531
9528
  bottom: t.offset?.y ?? 20,
9532
9529
  zIndex: t.zIndex ?? 9999
9533
9530
  };
9534
- return !He(r?.address || "") || !i ? /* @__PURE__ */ G(so, {}) : /* @__PURE__ */ Ae("div", { style: S, role: "complementary", "aria-label": "Chat widget", children: [
9531
+ return !He(r?.address || "") || !i ? /* @__PURE__ */ G(ao, {}) : /* @__PURE__ */ Ae("div", { style: S, role: "complementary", "aria-label": "Chat widget", children: [
9535
9532
  /* @__PURE__ */ G(S1, { buttonSize: t.buttonSize, onClick: v }),
9536
9533
  /* @__PURE__ */ G(
9537
- oh,
9534
+ nh,
9538
9535
  {
9539
9536
  isOpen: l,
9540
9537
  onClose: q,
@@ -9544,7 +9541,7 @@ Error: ${L.error}` : "";
9544
9541
  }
9545
9542
  )
9546
9543
  ] });
9547
- }, ih = ({
9544
+ }, rh = ({
9548
9545
  position: e = "bottom-right",
9549
9546
  theme: t = {},
9550
9547
  defaultOpen: n = !1,
@@ -9561,7 +9558,7 @@ Error: ${L.error}` : "";
9561
9558
  rpcUrls: l
9562
9559
  };
9563
9560
  return typeof window > "u" ? null : /* @__PURE__ */ G(Tp, { initialConfig: b, children: /* @__PURE__ */ G(gp, { initialAccount: a, children: /* @__PURE__ */ G(x1, { initialLanguage: i, children: /* @__PURE__ */ G(
9564
- sh,
9561
+ oh,
9565
9562
  {
9566
9563
  position: e,
9567
9564
  theme: t,
@@ -9573,5 +9570,5 @@ Error: ${L.error}` : "";
9573
9570
  ) }) }) });
9574
9571
  };
9575
9572
  export {
9576
- ih as ChatWidget
9573
+ rh as ChatWidget
9577
9574
  };