@iccandle/widget-web-trading 0.3.5 → 0.3.6

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,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@font-face{font-family:GIP;src:url(/gip-font/GIP-Thin.woff2) format("woff2");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-UltraLight.woff2) format("woff2");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Light.woff2) format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-ExtraBold.woff2) format("woff2");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Black.woff2) format("woff2");font-weight:900;font-style:normal;font-display:swap}:root{--background: white;--foreground: #020817;--card: #ffffff;--card-foreground: #020817;--popover: #ffffff;--popover-foreground: #020817;--primary-foreground: #f8fafc;--secondary-foreground: #f8fafc;--muted: hsl(210 40% 96.1%);--muted-foreground: hsl(215.4 16.3% 46.9%);--accent: #fff4e6;--destructive: hsl(0 84.2% 60.2%);--destructive-foreground: hsl(210 40% 98%);--border: hsl(216 8.2% 88%);--input: hsl(214.3 31.8% 91.4%);--radius: .5rem;--gray-0: #ffffff;--gray-1: #f5f2f0;--gray-2: #e9eaec;--gray-3: #dee0e3;--gray-6: hsl(224 8.4% 64.9%);--gray-7: hsl(222.9, 12.2%, 54.9%);--gray-8: hsl(224.2, 7.8%, 48%);--gray-9: hsl(226, 8%, 33%);--gray-10: #464a53;--gray-11: #333333;--gray-12: #1f2228;--gray-13: #14151a;--gray-25: #fcfcfd;--cobalt-50: #eff8ff;--cobalt-100: #dceefc;--cobalt-200: #a9d6ff;--cobalt-300: #75bcff;--cobalt-400: #4ea5ff;--cobalt-500: #3596fc;--cobalt-600: #1f77f1;--cobalt-700: #0f5fd6;--cobalt-800: #0a47aa;--cobalt-900: #073379}.dark{--background: #101010;--foreground: #ededed;--card: #141414;--card-foreground: #ededed;--popover: #141414;--popover-foreground: #ededed;--primary-foreground: #f8fafc;--primary-1: #2d1a0a;--secondary-foreground: #f8fafc;--muted: hsl(217.2 32.6% 17.5%);--muted-foreground: hsl(215 20.2% 65.1%);--accent: #101010;--accent-foreground: #ededed;--destructive-foreground: #ededed;--border: #2e2e2e;--input: hsl(217.2 32.6% 17.5%);--gray-0: #14151a;--gray-1: #1f2228;--gray-2: #333333;--gray-3: #2e2e2e;--gray-6: hsl(224 8.4% 64.9%);--gray-7: hsl(222.9, 12.2%, 54.9%);--gray-8: hsl(224.2, 7.8%, 48%);--gray-9: hsl(226, 8%, 70%);--gray-10: #dee0e3;--gray-11: #e9eaec;--gray-12: #f5f2f0;--gray-13: #ffffff;--gray-25: #0a0a0a}.web-trading-widget-icon{display:block;flex-shrink:0}.web-trading-widget-icon--xs{width:.75rem;height:.75rem}.web-trading-widget-icon--sm{width:.875rem;height:.875rem}.web-trading-widget-icon--md{width:1rem;height:1rem}.web-trading-widget-text-muted{color:#64748b}.dark .web-trading-widget-text-muted{color:#94a3b8}.web-trading-widget-text-buy{color:#2563eb}.dark .web-trading-widget-text-buy{color:#60a5fa}.web-trading-widget-text-sell{color:#dc2626}.dark .web-trading-widget-text-sell{color:#f87171}.web-trading-widget-text-profit-positive{color:#2563eb}.dark .web-trading-widget-text-profit-positive{color:#60a5fa}.web-trading-widget-text-profit-negative{color:#dc2626}.dark .web-trading-widget-text-profit-negative{color:#f87171}.web-trading-widget-icon-btn{flex-shrink:0;color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-icon-btn:hover{color:var(--foreground)}.web-trading-widget-advanced__scan-limit-wrap{position:absolute;left:50%;top:.75rem;z-index:10;transform:translate(-50%)}.web-trading-widget-advanced__scan-limit-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .75rem;font-size:.75rem;line-height:1rem;border-radius:.375rem;background-color:#ef4444;color:#f8fafc;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-advanced__scan-limit-badge-title{font-weight:600}.web-trading-widget-advanced__scan-limit-badge-count{opacity:.8}.web-trading-widget-advanced__container{height:100%;width:100%}.web-trading-widget-root{display:flex;flex-direction:column;height:100%;width:100%;min-height:0;overflow:hidden}.web-trading-widget-trading-layout{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;font-family:GIP,sans-serif}.web-trading-widget-trading-layout__body{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}@media(min-width:1024px){.web-trading-widget-trading-layout__body{flex-direction:row}}.web-trading-widget-trading-layout__chart-area{position:relative;display:flex;min-height:0;min-width:0;flex:1;flex-direction:column;overflow:hidden}@media(max-width:1023px){.web-trading-widget-trading-layout__chart-area{flex:1 1 auto;min-height:40vh}}.web-trading-widget-trading-layout__host-chart-slot{position:relative;flex:1 1 auto;min-height:0;min-width:0;height:100%;width:100%}.web-trading-widget-trading-layout__chart-slot{position:relative;min-height:0;flex:1;overflow:hidden}.web-trading-widget-trading-layout--news{position:relative;display:flex;height:100%;width:100%;min-height:0;flex-direction:column;overflow:hidden}.web-trading-widget-trading-layout--news .web-trading-widget-trading-layout__chart-slot{position:relative;display:block;min-height:0;flex:1;overflow:hidden;isolation:isolate}.web-trading-widget-trading-layout--news .web-trading-widget-trading-layout__news-body{position:relative;display:block;min-height:0;height:100%;width:100%;overflow:hidden}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;pointer-events:none;overflow:visible}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay-layer>.web-trading-widget-new-order-overlay{pointer-events:auto}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay{position:absolute;z-index:20;flex:none;align-self:auto;max-width:calc(100% - 2rem)}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay--draggable{top:auto;right:auto;display:block;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay--exec-panel>.web-trading-widget-market-panel--modal{width:340px;max-width:100%;flex:none}.web-trading-widget-side-panel{position:relative;display:flex;width:100%;flex-shrink:0;flex-direction:column;overflow:hidden;border-color:var(--border);border-top-width:1px;border-top-style:solid;max-height:42vh;min-height:240px}@media(max-width:1023px){.web-trading-widget-side-panel{height:auto;flex:0 1 auto;max-height:26vh;min-height:132px}.web-trading-widget-side-panel--with-scan{height:42vh;max-height:42vh;min-height:240px}}@media(min-width:1024px){.web-trading-widget-side-panel{height:100%;max-height:none;min-height:0;border-top-width:0;border-left-width:1px;border-left-style:solid;width:min(100%,340px);max-width:340px;flex:none}.web-trading-widget-side-panel--with-scan{min-width:min(340px,40%);max-width:50%;flex:1 1 50%;width:auto}}.web-trading-widget-side-panel__empty{display:flex;height:100%;min-height:200px;align-items:center;justify-content:center;padding:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-side-panel__empty{color:#94a3b8}.web-trading-widget-side-panel__scan-layout{display:flex;height:100%;min-height:0;flex-direction:column}.web-trading-widget-side-panel__tablist{margin:.5rem;display:flex;width:calc(100% - 1rem);flex-shrink:0;gap:.25rem;border-radius:.5rem;border:1px solid #e5e7eb;padding:.25rem}.dark .web-trading-widget-side-panel__tablist{border-color:#ffffff1a;background-color:#161616}@media(min-width:640px){.web-trading-widget-side-panel__tablist{margin:.75rem;width:calc(100% - 1.5rem)}}.web-trading-widget-side-panel__tab{flex:1;border-bottom:2px solid transparent;padding:.625rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;transition:color .15s,border-color .15s,background-color .15s;background:transparent;cursor:pointer;color:#6b7280}.web-trading-widget-side-panel__tab:hover{color:#111827}.dark .web-trading-widget-side-panel__tab{color:#ffffff80}.dark .web-trading-widget-side-panel__tab:hover{color:#fffc}@media(min-width:640px){.web-trading-widget-side-panel__tab{font-size:.875rem;line-height:1.25rem}}.web-trading-widget-side-panel__tab--active{border-bottom-color:var(--primary-6);background-color:#fff4e6;color:var(--foreground)}.dark .web-trading-widget-side-panel__tab--active{border-bottom-color:var(--primary-6);background-color:#2a2a2a;color:#fff}.web-trading-widget-side-panel__panels{position:relative;min-height:0;flex:1}.web-trading-widget-side-panel__tabpanel{height:100%;overflow-y:auto}.web-trading-widget-side-panel__tabpanel--scan{position:absolute;top:0;right:0;bottom:0;left:0}.web-trading-widget-side-panel__iframe{height:100%;width:100%;border:0}.web-trading-widget-side-panel__scroll{min-height:0;flex:1;overflow-y:auto}.web-trading-widget-new-order-overlay{pointer-events:auto;position:absolute;width:-moz-fit-content;width:fit-content;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.web-trading-widget-new-order-overlay--dragging{z-index:50}.web-trading-widget-new-order-overlay--news:not(.web-trading-widget-new-order-overlay--draggable){top:1rem;right:1rem;left:auto;z-index:20}.web-trading-widget-new-order-overlay--draggable{top:auto;right:auto}.web-trading-widget-new-order-overlay--exec-panel{display:block;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content}.web-trading-widget-new-order-overlay--side-panel{width:min(100%,360px);max-height:calc(100% - 2rem);overflow:auto;border:1px solid var(--border);border-radius:.375rem;background-color:var(--background);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.web-trading-widget-new-order-overlay--side-panel .web-trading-widget-market-panel{border:none;box-shadow:none}.web-trading-widget-mini-order{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;border-radius:.125rem;border:1px solid color-mix(in srgb,var(--border) 60%,transparent);background-color:var(--background);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.dark .web-trading-widget-mini-order{border-color:#ffffff14;background-color:#161616}.web-trading-widget-mini-order--expanded{width:340px}.web-trading-widget-mini-order--collapsed{width:-moz-fit-content;width:fit-content}.web-trading-widget-mini-order__row{display:flex;height:28px;align-items:stretch}.web-trading-widget-mini-order__drag-handle{display:flex;width:18px;flex-shrink:0;touch-action:none;align-items:center;justify-content:center;border-right:1px solid color-mix(in srgb,var(--border) 60%,transparent);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-left:none;border-bottom:none;cursor:grab;padding:0}.web-trading-widget-mini-order__drag-handle:hover{color:var(--foreground)}.web-trading-widget-mini-order__drag-handle--grabbing{cursor:grabbing}.dark .web-trading-widget-mini-order__drag-handle{border-right-color:#ffffff0f;color:#fff6}.dark .web-trading-widget-mini-order__drag-handle:hover{color:#fffc}.web-trading-widget-mini-order__side-btn{display:flex;min-width:0;flex:1;align-items:stretch;overflow:hidden;transition:opacity .15s;border:none;padding:0;cursor:pointer}.web-trading-widget-mini-order__side-btn:disabled{opacity:.45;cursor:not-allowed}.web-trading-widget-mini-order__side-btn--sell{background-color:#d94a4a}.web-trading-widget-mini-order__side-btn--sell:hover:not(:disabled){background-color:#c94444}.web-trading-widget-mini-order__side-btn--sell:active:not(:disabled){background-color:#b83d3d}.web-trading-widget-mini-order__side-btn--buy{background-color:#3b82f6}.web-trading-widget-mini-order__side-btn--buy:hover:not(:disabled){background-color:#3575e6}.web-trading-widget-mini-order__side-btn--buy:active:not(:disabled){background-color:#2f6ad6}.web-trading-widget-mini-order__price{display:flex;min-width:0;flex:1;align-items:center;justify-content:center;padding:0 .375rem;font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1;color:#fffffff2}.web-trading-widget-mini-order__label{display:flex;width:40px;flex-shrink:0;align-items:center;justify-content:center;font-size:10px;font-weight:600;line-height:1;letter-spacing:.05em;color:#fff}.web-trading-widget-mini-order__label--sell{border-left:1px solid rgba(255,255,255,.15)}.web-trading-widget-mini-order__label--buy{border-right:1px solid rgba(255,255,255,.15)}.web-trading-widget-mini-order__volume{display:flex;width:80px;flex-shrink:0;align-items:stretch;border-left:1px solid color-mix(in srgb,var(--border) 60%,transparent);border-right:1px solid color-mix(in srgb,var(--border) 60%,transparent);background-color:color-mix(in srgb,hsl(210 40% 96.1%) 30%,transparent)}.dark .web-trading-widget-mini-order__volume{border-left-color:#ffffff0f;border-right-color:#ffffff0f;background-color:#1e1e1e}.web-trading-widget-mini-order__volume-btn{display:flex;height:100%;width:1.25rem;flex-shrink:0;align-items:center;justify-content:center;color:#64748b;transition:color .15s;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-mini-order__volume-btn:hover:not(:disabled){color:var(--foreground)}.web-trading-widget-mini-order__volume-btn:disabled{opacity:.4;cursor:not-allowed}.dark .web-trading-widget-mini-order__volume-btn{color:#fff6}.dark .web-trading-widget-mini-order__volume-btn:hover:not(:disabled){color:#fffc}.web-trading-widget-mini-order__volume-input{height:100%;min-width:0;flex:1;border:0;background:transparent;text-align:center;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1;color:var(--foreground);outline:none}.web-trading-widget-mini-order__volume-input:disabled{opacity:.5}.dark .web-trading-widget-mini-order__volume-input{color:#fff}.web-trading-widget-mini-order__toggle{display:flex;width:22px;flex-shrink:0;align-items:center;justify-content:center;border-left:1px solid color-mix(in srgb,var(--border) 60%,transparent);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-right:none;border-bottom:none;cursor:pointer;padding:0}.web-trading-widget-mini-order__toggle:hover{color:var(--foreground)}.dark .web-trading-widget-mini-order__toggle{border-left-color:#ffffff0f;color:#fff6}.dark .web-trading-widget-mini-order__toggle:hover{color:#fffc}.web-trading-widget-market-panel{width:100%;border-radius:.125rem;background-color:var(--background)}.web-trading-widget-market-panel--modal{width:340px;border:1px solid var(--border);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-market-panel--collapsed .web-trading-widget-market-panel__header{border-bottom:none}.web-trading-widget-market-panel__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding:.25rem .75rem .25rem .5rem}.web-trading-widget-market-panel__drag-handle{display:flex;width:1.75rem;flex-shrink:0;touch-action:none;align-items:center;justify-content:center;align-self:stretch;border-right:1px solid var(--border);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-left:none;border-bottom:none;cursor:grab;padding:0}.web-trading-widget-market-panel__drag-handle:hover{color:var(--foreground)}.web-trading-widget-market-panel__drag-handle--grabbing{cursor:grabbing}.web-trading-widget-market-panel__select-trigger{height:2rem;flex:1;border:0;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0 center;padding-left:0;padding-right:1.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;color:inherit}.web-trading-widget-market-panel__select-trigger:focus{outline:none;box-shadow:none}.web-trading-widget-market-panel__header-actions{display:flex;flex-shrink:0;align-items:center;gap:.25rem}.web-trading-widget-market-panel__header-btn{color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-market-panel__header-btn:hover{color:var(--foreground)}.web-trading-widget-market-panel__accordion{width:100%}.web-trading-widget-market-panel__accordion-item{border-bottom:1px solid var(--border)}.web-trading-widget-market-panel__accordion-trigger{display:flex;width:100%;align-items:center;justify-content:space-between;border:none;background:transparent;cursor:pointer;color:inherit;padding:.625rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.web-trading-widget-market-panel__accordion-trigger:hover{text-decoration:none}.web-trading-widget-market-panel__accordion-trigger>svg{flex-shrink:0;transition:transform .2s}.web-trading-widget-market-panel__accordion-trigger[data-state=open]>svg,.web-trading-widget-market-panel__accordion-trigger--open>svg{transform:rotate(180deg)}.web-trading-widget-market-panel__accordion-content{display:flex;flex-direction:column;gap:.75rem;padding:0 .75rem .75rem}.web-trading-widget-market-panel__grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.web-trading-widget-market-panel__field{display:flex;flex-direction:column;gap:.25rem}.web-trading-widget-market-panel__field-label{font-size:.75rem;line-height:1rem;color:#64748b}.dark .web-trading-widget-market-panel__field-label{color:#94a3b8}.web-trading-widget-market-panel__select-full{height:2.25rem;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;padding:0 2rem 0 .75rem;font-size:.875rem;line-height:1.25rem;color:inherit}.web-trading-widget-market-panel__select-full:focus{outline:none;box-shadow:0 0 0 1px var(--border)}.dark .web-trading-widget-market-panel__select-full{border-color:var(--gray-3)}.web-trading-widget-market-panel__input{display:flex;height:2.25rem;width:100%;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem;color:inherit}.web-trading-widget-market-panel__input:focus-visible{outline:none;box-shadow:0 0 0 1px var(--border)}.dark .web-trading-widget-market-panel__input{border-color:var(--gray-3)}.web-trading-widget-market-panel__footer{padding:.75rem}.web-trading-widget-market-panel__quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background-color:#f0f9ff;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:#dc2626}.dark .web-trading-widget-market-panel__quotes{background-color:#1c1c1c}.web-trading-widget-market-panel__quotes-ask{text-align:right}.web-trading-widget-market-panel__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.web-trading-widget-market-panel__sell-btn{height:2.5rem;width:100%;border:none;border-radius:0;background-color:#ea4c4c;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;cursor:pointer}.web-trading-widget-market-panel__sell-btn:hover:not(:disabled){background-color:#c74141}.web-trading-widget-market-panel__buy-btn{height:2.5rem;width:100%;border:none;border-radius:0;background-color:#3183ff;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;cursor:pointer}.web-trading-widget-market-panel__buy-btn:hover:not(:disabled){background-color:#296fd9}.web-trading-widget-market-panel__place-btn{height:2.5rem;width:100%;border:none;border-radius:0;font-size:.875rem;line-height:1.25rem;font-weight:600;cursor:pointer}.web-trading-widget-market-panel__place-btn--buy{background-color:#2563eb;color:#fff}.web-trading-widget-market-panel__place-btn--buy:hover:not(:disabled){background-color:#1d4ed8}.web-trading-widget-market-panel__place-btn--sell{background-color:#ef4444;color:#fff}.web-trading-widget-market-panel__place-btn--sell:hover:not(:disabled){background-color:#ed2c2c}.web-trading-widget-market-panel__sell-btn:disabled,.web-trading-widget-market-panel__buy-btn:disabled,.web-trading-widget-market-panel__place-btn:disabled{opacity:.5;cursor:not-allowed}.web-trading-widget-detail-panel{width:100%;border-radius:.125rem;border-bottom:1px solid var(--border);background-color:var(--background)}.web-trading-widget-detail-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding:.5rem .75rem}.web-trading-widget-detail-panel__title{font-size:.875rem;line-height:1.375;text-transform:capitalize}.web-trading-widget-detail-panel__title--buy{color:#2563eb}.web-trading-widget-detail-panel__title--sell{color:#dc2626}.web-trading-widget-detail-panel__title--position{color:#2563eb;text-transform:none}.web-trading-widget-detail-panel__body{display:flex;flex-direction:column;gap:.75rem;padding:.75rem}.web-trading-widget-detail-panel__input-muted{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 50%,transparent)}.dark .web-trading-widget-detail-panel__input-muted{background-color:color-mix(in srgb,hsl(217.2 32.6% 17.5%) 50%,transparent)}.web-trading-widget-detail-panel__btn-full{height:2.5rem;width:100%;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--foreground);cursor:pointer}.web-trading-widget-detail-panel__btn-full:hover:not(:disabled){opacity:.8}.web-trading-widget-detail-panel__btn-full:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-detail-panel__btn-full{border-color:#ffffff1a}.web-trading-widget-detail-panel__action-btn{height:auto;min-height:2.5rem;width:100%;white-space:normal;padding-top:.5rem;padding-bottom:.5rem;text-align:left;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;background-color:#f97316;border:none;border-radius:.375rem;cursor:pointer}.web-trading-widget-detail-panel__action-btn:hover:not(:disabled){background-color:#ea580c}.web-trading-widget-confirmation{width:100%;border-radius:.125rem;background-color:var(--background)}.web-trading-widget-confirmation__close-row{display:flex;justify-content:flex-end;padding:.5rem}.web-trading-widget-confirmation__close-btn{color:#2563eb;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-confirmation__close-btn:hover{color:#1d4ed8}.web-trading-widget-confirmation__body{display:flex;flex-direction:column;gap:.75rem;padding:0 1rem 1rem}.web-trading-widget-confirmation__summary{font-size:.875rem;line-height:1.375;color:var(--foreground)}.web-trading-widget-confirmation__ticket,.web-trading-widget-confirmation__side{font-weight:500}.web-trading-widget-confirmation__side--sell{color:#dc2626}.web-trading-widget-confirmation__side--buy{color:#2563eb}.web-trading-widget-confirmation__price{font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-confirmation__price{color:#94a3b8}.web-trading-widget-confirmation__status{font-size:1rem;line-height:1.5rem;font-weight:500;color:#16a34a}.web-trading-widget-confirmation__ok-btn{height:2.5rem;width:100%;background-color:#2563eb;color:#fff;border:none;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer}.web-trading-widget-confirmation__ok-btn:hover:not(:disabled){background-color:#1d4ed8}.web-trading-widget-account-modal{display:flex;flex-direction:column;gap:1rem}@media(min-width:640px){.web-trading-widget-account-modal{max-width:28rem}}.web-trading-widget-account-modal__loading{font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-account-modal__loading{color:#94a3b8}.web-trading-widget-account-modal__error{font-size:.875rem;line-height:1.25rem;color:#ef4444}.web-trading-widget-account-modal__select{height:2.5rem;width:100%}.web-trading-widget-badge{display:inline-flex;align-items:center;border-radius:.375rem;border:1px solid transparent;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.web-trading-widget-badge--destructive{background-color:#ef4444;color:#f8fafc}.web-trading-widget-badge--secondary{background-color:var(--secondary);color:var(--secondary-foreground)}.web-trading-widget-badge--outline{border-color:var(--border);color:var(--foreground)}.web-trading-widget-dialog{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:1rem}.web-trading-widget-dialog__overlay{position:absolute;top:0;right:0;bottom:0;left:0;background-color:color-mix(in srgb,var(--background) 80%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.web-trading-widget-dialog__content{position:relative;z-index:1;width:100%;max-width:32rem;border-radius:1rem;border:1px solid var(--border);background-color:var(--background);padding:1.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-dialog__header{display:flex;flex-direction:column;gap:.375rem;border-bottom:1px solid var(--border);padding-bottom:1rem;margin-bottom:1rem}.web-trading-widget-dialog__title{margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--foreground)}.web-trading-widget-dialog__description{margin:0;font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-dialog__description{color:#94a3b8}.web-trading-widget-dialog__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:1rem}.web-trading-widget-btn{display:inline-flex;align-items:center;justify-content:center;height:2.25rem;border-radius:.375rem;border:1px solid transparent;padding:0 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;cursor:pointer;transition:opacity .15s,background-color .15s}.web-trading-widget-btn:hover:not(:disabled){opacity:.9}.web-trading-widget-btn:disabled{cursor:not-allowed;opacity:.5}.web-trading-widget-btn--primary{background-color:var(--primary);color:var(--primary-foreground)}.web-trading-widget-btn--outline{border-color:var(--input);background-color:transparent;color:var(--foreground)}.dark .web-trading-widget-btn--outline{border-color:#ffffff1a}.web-trading-widget-toast-viewport{position:fixed;right:1rem;top:1rem;z-index:100;display:flex;width:min(24rem,calc(100vw - 2rem));flex-direction:column;gap:.5rem;pointer-events:none}.web-trading-widget-toast{pointer-events:auto;border-radius:.5rem;border:1px solid var(--border);background-color:var(--background);padding:.75rem 1rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-toast--destructive{border-color:#ef4444;background-color:#ef4444;color:#f8fafc}.web-trading-widget-toast__title{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:600}.web-trading-widget-toast__description{margin:.25rem 0 0;font-size:.875rem;line-height:1.25rem}.web-trading-widget-stepper{display:flex;flex-direction:column;gap:.25rem}.web-trading-widget-stepper__header{display:flex;align-items:center;justify-content:space-between;gap:.25rem}.web-trading-widget-stepper__label{font-size:.75rem;line-height:1rem;color:#64748b}.dark .web-trading-widget-stepper__label{color:#94a3b8}.web-trading-widget-stepper__clear{color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-stepper__clear:hover:not(:disabled){color:var(--foreground)}.web-trading-widget-stepper__clear:disabled{opacity:.4}.web-trading-widget-stepper__control{display:flex;align-items:center;overflow:hidden;border-radius:.375rem;border:1px solid hsl(214.3 31.8% 91.4%);background-color:var(--background)}.dark .web-trading-widget-stepper__control{border-color:#1e293b}.web-trading-widget-stepper__control--disabled{opacity:.6}.web-trading-widget-stepper__btn{display:flex;height:2.25rem;width:2.25rem;flex-shrink:0;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0}.web-trading-widget-stepper__btn--minus{border-right:1px solid hsl(214.3 31.8% 91.4%)}.web-trading-widget-stepper__btn--plus{border-left:1px solid hsl(214.3 31.8% 91.4%)}.dark .web-trading-widget-stepper__btn--minus,.dark .web-trading-widget-stepper__btn--plus{border-color:#1e293b}.web-trading-widget-stepper__btn:hover:not(:disabled){background-color:#f1f5f9}.dark .web-trading-widget-stepper__btn:hover:not(:disabled){background-color:#1e293b}.web-trading-widget-stepper__btn:disabled{opacity:.4;cursor:not-allowed}.web-trading-widget-stepper__input{height:2.25rem;min-width:0;flex:1;border:0;background:transparent;padding:0 .5rem;text-align:center;font-size:.875rem;line-height:1.25rem;outline:none}.web-trading-widget-stepper__input:focus-visible{outline:none}.web-trading-widget-stepper__input:disabled{cursor:not-allowed}.web-trading-widget-terminal-resize-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;cursor:row-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.web-trading-widget-terminal{position:relative;z-index:1;display:flex;flex-shrink:0;flex-direction:column;overflow:hidden;border-top:1px solid var(--border);background-color:var(--background);font-size:.75rem;line-height:1rem;color:var(--foreground)}.dark .web-trading-widget-terminal{background-color:#000;color:#fff}@media(max-width:1023px){.web-trading-widget-terminal:not(.web-trading-widget-terminal--embedded){max-height:26vh}}.web-trading-widget-terminal__resize-bar-wrap{display:flex;flex-shrink:0;align-items:stretch;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.dark .web-trading-widget-terminal__resize-bar-wrap{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__resize-bar{display:flex;min-height:20px;flex:1;cursor:row-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;padding-top:.125rem;padding-bottom:.125rem}.web-trading-widget-terminal__resize-icon{color:#64748b}.dark .web-trading-widget-terminal__resize-icon{color:#ffffff80}.web-trading-widget-terminal__header-scroll{flex-shrink:0;overflow-x:auto}.web-trading-widget-terminal__toolbar{display:flex;flex-shrink:0;align-items:center;border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__toolbar{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__tab-bar{display:flex;flex-shrink:0;align-items:stretch;border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__tab-bar{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__tab-btn{flex-shrink:0;height:2rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;white-space:nowrap;border:none;border-bottom:2px solid transparent;background:transparent;color:#64748b;cursor:pointer;transition:color .15s,border-color .15s}.web-trading-widget-terminal__tab-btn:hover{color:var(--foreground)}.dark .web-trading-widget-terminal__tab-btn{color:#fff9}.dark .web-trading-widget-terminal__tab-btn:hover{color:#fff}.web-trading-widget-terminal__tab-btn--active{border-bottom-color:var(--primary);color:var(--foreground)}.dark .web-trading-widget-terminal__tab-btn--active{color:#fff}.web-trading-widget-terminal__deals-wrap{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.web-trading-widget-terminal__deals-table{width:100%;min-width:1100px;table-layout:fixed;border-collapse:collapse}.web-trading-widget-terminal__deals-footer{display:flex;align-items:center;justify-content:center;min-width:1100px;padding:.75rem 1rem;border-top:1px solid var(--border)}.dark .web-trading-widget-terminal__deals-footer{border-top-color:#ffffff1a}.web-trading-widget-terminal__deals-detail-btn{font-size:.75rem;font-weight:500;color:var(--primary);text-decoration:none;padding:.25rem .75rem;border-radius:var(--radius);transition:background-color .15s}.web-trading-widget-terminal__deals-detail-btn:hover{background-color:color-mix(in srgb,var(--primary) 10%,transparent)}.web-trading-widget-terminal__deals-row{border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__deals-row{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__skeleton-row{border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__skeleton-row{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__skeleton-bar{height:.75rem;width:4rem;border-radius:.25rem;background-color:color-mix(in srgb,var(--border) 60%,transparent);animation:web-trading-widget-skeleton-pulse 1.4s ease-in-out infinite}.web-trading-widget-terminal__skeleton-bar--wide{width:8rem}@keyframes web-trading-widget-skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}.web-trading-widget-terminal__toolbar-actions{display:flex;margin-left:auto;align-items:center;justify-content:flex-end;gap:.5rem;padding-right:.75rem}.web-trading-widget-terminal__close-all-btn{margin-left:.5rem;height:2rem;border-radius:.125rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;color:#dc2626;background:transparent;border:none;cursor:pointer;transition:opacity .15s}.web-trading-widget-terminal__close-all-btn:hover:not(:disabled){opacity:.6}.web-trading-widget-terminal__close-all-btn:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-terminal__close-all-btn{color:#f87171}.web-trading-widget-terminal__refetch-btn{display:inline-flex;align-items:center;gap:.375rem;margin-left:.5rem;height:2rem;border-radius:.125rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;color:var(--foreground);background:transparent;border:none;cursor:pointer;transition:opacity .15s}.web-trading-widget-terminal__refetch-btn:hover:not(:disabled){opacity:.6}.web-trading-widget-terminal__refetch-btn:disabled{cursor:not-allowed;opacity:.5}.web-trading-widget-terminal__refetch-icon--spinning{animation:web-trading-widget-refetch-spin 1s linear infinite}@keyframes web-trading-widget-refetch-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.web-trading-widget-terminal__toolbar-profit{font-size:.75rem;line-height:1rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--foreground)}.dark .web-trading-widget-terminal__toolbar-profit{color:#fff}.web-trading-widget-terminal__body-scroll{min-height:0;flex:1;overflow:auto}.web-trading-widget-terminal__table{width:100%;min-width:1060px;table-layout:fixed;border-collapse:collapse}.web-trading-widget-terminal__cell{padding:.375rem .5rem}.web-trading-widget-terminal__cell--left{text-align:left}.web-trading-widget-terminal__cell--right{text-align:right}.web-trading-widget-terminal__cell--nowrap{white-space:nowrap}.web-trading-widget-terminal__cell--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-trading-widget-terminal__cell--capitalize{text-transform:capitalize}.web-trading-widget-terminal__cell--close{width:2rem;padding:.375rem .25rem}.web-trading-widget-terminal__head-row{color:#64748b}.dark .web-trading-widget-terminal__head-row{color:#ffffffb3}.web-trading-widget-terminal__head-cell{font-weight:400;white-space:nowrap}.web-trading-widget-terminal-col--symbol{width:88px}.web-trading-widget-terminal-col--ticket{width:72px}.web-trading-widget-terminal-col--time{width:148px}.web-trading-widget-terminal-col--type{width:56px}.web-trading-widget-terminal-col--volume{width:88px}.web-trading-widget-terminal-col--price{width:80px}.web-trading-widget-terminal-col--sl,.web-trading-widget-terminal-col--tp{width:72px}.web-trading-widget-terminal-col--price2{width:80px}.web-trading-widget-terminal-col--swap{width:100px}.web-trading-widget-terminal-col--profit{width:88px}.web-trading-widget-terminal-col--close{width:2rem}.web-trading-widget-terminal__row{cursor:pointer;border-bottom:1px solid var(--border)}.web-trading-widget-terminal__row:hover{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 30%,transparent)}.dark .web-trading-widget-terminal__row{border-bottom-color:#ffffff1a}.dark .web-trading-widget-terminal__row:hover{background-color:#ffffff0d}.web-trading-widget-terminal__row--selected{background-color:#f0f9ff}.dark .web-trading-widget-terminal__row--selected{background-color:#ffffff1a}.web-trading-widget-terminal__empty-cell{padding-top:2rem;padding-bottom:2rem;text-align:center;color:#64748b}.dark .web-trading-widget-terminal__empty-cell{color:#ffffff80}.web-trading-widget-terminal__empty-inner{display:flex;flex-direction:column;align-items:center;gap:.75rem}.web-trading-widget-terminal__empty-text{color:#64748b}.dark .web-trading-widget-terminal__empty-text{color:#ffffffb3}.web-trading-widget-terminal__create-btn{background-color:var(--primary);padding:.375rem 1rem;color:#fff;transition:background-color .15s;border:none;cursor:pointer}.web-trading-widget-terminal__create-btn:hover{background-color:color-mix(in srgb,var(--primary) 90%,transparent)}.dark .web-trading-widget-terminal__create-btn{background-color:#333638;color:var(--primary)}.web-trading-widget-terminal__row-close-btn{display:inline-flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:.125rem;color:#64748b;transition:color .15s,background-color .15s;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-terminal__row-close-btn:hover:not(:disabled){background-color:#fef2f2;color:#dc2626}.web-trading-widget-terminal__row-close-btn:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-terminal__row-close-btn{color:#ffffff80}.dark .web-trading-widget-terminal__row-close-btn:hover:not(:disabled){background-color:#ef444433;color:#f87171}.web-trading-widget-terminal__stats{flex-shrink:0;border-top:1px solid var(--border);color:#64748b}.dark .web-trading-widget-terminal__stats{border-top-color:#ffffff1a;color:#fffc}.web-trading-widget-terminal__stats-row{display:flex;flex-wrap:wrap;align-items:center;-moz-column-gap:1.5rem;column-gap:1.5rem;row-gap:.25rem}.web-trading-widget-terminal__stats-row--tabular{font-variant-numeric:tabular-nums}.web-trading-widget-terminal__stats-profit{margin-left:auto;color:var(--foreground)}.dark .web-trading-widget-terminal__stats-profit{color:#fff}.web-trading-widget-market-watch-resize-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;cursor:col-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.web-trading-widget-market-watch{position:relative;z-index:1;display:flex;height:100%;flex-shrink:0;background-color:var(--background)}.web-trading-widget-market-watch__resize-rail{display:flex;width:1rem;flex-shrink:0;flex-direction:column;align-items:center;border-left:1px solid var(--border);background-color:var(--background)}.web-trading-widget-market-watch__resize-handle{display:flex;min-height:48px;width:100%;flex:1;cursor:col-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center}.web-trading-widget-market-watch__resize-icon{color:#64748b}.dark .web-trading-widget-market-watch__resize-icon{color:#ffffff80}.web-trading-widget-market-watch__content{display:flex;min-width:0;flex:1;flex-direction:column}.web-trading-widget-market-watch__search-wrap{border-bottom:1px solid var(--border);padding:.5rem}.web-trading-widget-market-watch__search-field{position:relative}.web-trading-widget-market-watch__search-icon{pointer-events:none;position:absolute;left:.5rem;top:50%;transform:translateY(-50%);color:#64748b}.web-trading-widget-market-watch__search-input{height:2rem;padding-left:2rem;font-size:.75rem;line-height:1rem}.web-trading-widget-market-watch__list{min-height:0;flex:1;overflow-y:auto}.web-trading-widget-market-watch__table{width:100%;border-collapse:collapse;font-size:.75rem;line-height:1rem}.web-trading-widget-market-watch__thead{position:sticky;top:0;z-index:1;background-color:var(--background)}.web-trading-widget-market-watch__head-row{border-bottom:1px solid var(--border);color:#64748b}.web-trading-widget-market-watch__th{padding:.375rem .5rem;font-weight:500}.web-trading-widget-market-watch__th--left{text-align:left}.web-trading-widget-market-watch__th--right{text-align:right}.web-trading-widget-market-watch__row{cursor:pointer;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.web-trading-widget-market-watch__row:hover{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 40%,transparent)}.web-trading-widget-market-watch__row--active{background-color:#f0f9ff}.dark .web-trading-widget-market-watch__row--active{background-color:#0ea5e966}.web-trading-widget-market-watch__td{padding:.375rem .5rem}.web-trading-widget-market-watch__td--symbol{font-weight:500}.web-trading-widget-market-watch__td--quote{text-align:right;font-variant-numeric:tabular-nums}.web-trading-widget-market-watch__quote--neutral{color:var(--foreground)}.web-trading-widget-market-watch__quote--muted{color:#64748b}.dark .web-trading-widget-market-watch__quote--muted{color:#94a3b8}.web-trading-widget-news-orders-overlay-root{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;overflow:visible;pointer-events:none}.web-trading-widget-news-orders-overlay-root .web-trading-widget-news-orders-overlay__trigger,.web-trading-widget-news-orders-overlay-root .web-trading-widget-news-orders__panel{pointer-events:auto}.web-trading-widget-news-orders__panel{position:absolute;left:0;right:0;bottom:0;z-index:50;display:flex;width:100%;min-height:0;flex-direction:column;overflow:hidden;pointer-events:auto;border-top:1px solid var(--border);background-color:var(--background);box-shadow:0 -8px 24px #0000002e}.dark .web-trading-widget-news-orders__panel{background-color:#000;box-shadow:0 -8px 24px #00000073}.web-trading-widget-news-orders__panel-resize-bar-wrap{display:flex;width:100%;flex-shrink:0;align-items:stretch;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.dark .web-trading-widget-news-orders__panel-resize-bar-wrap{border-bottom-color:#ffffff1a}.web-trading-widget-news-orders__panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--border);padding:.625rem .75rem}.web-trading-widget-news-orders__panel-title{margin:0;font-size:.9375rem;font-weight:600;line-height:1.25;color:var(--foreground)}.web-trading-widget-news-orders__panel-close{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:#64748b;cursor:pointer;padding:.25rem}.web-trading-widget-news-orders__panel-close:hover{color:var(--foreground)}.dark .web-trading-widget-news-orders__panel-close{color:#ffffff8c}.dark .web-trading-widget-news-orders__panel-close:hover{color:#fff}.web-trading-widget-news-orders__panel-body{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.web-trading-widget-news-orders__panel-body .web-trading-widget-terminal--embedded{flex:1;min-height:0;height:100%}.web-trading-widget-news-orders__table{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden;font-size:.75rem;line-height:1rem;color:var(--foreground)}.web-trading-widget-news-orders__table .web-trading-widget-terminal__header-scroll{flex-shrink:0;overflow-x:auto}.web-trading-widget-news-orders__table .web-trading-widget-terminal__body-scroll{min-height:0;flex:1;overflow:auto}.web-trading-widget-news-orders-overlay__trigger{position:absolute;left:1rem;bottom:1rem;z-index:40;pointer-events:auto;display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:1px solid var(--border);background-color:var(--background);padding:.5rem .875rem;font-size:.8125rem;font-weight:600;line-height:1;color:var(--foreground);box-shadow:0 4px 12px #0000001f;cursor:pointer}.web-trading-widget-news-orders-overlay__trigger:hover{background-color:var(--muted)}.dark .web-trading-widget-news-orders-overlay__trigger{background-color:#141414;box-shadow:0 4px 12px #0006}.web-trading-widget-news-orders-overlay__badge{display:inline-flex;min-width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;background-color:var(--primary);padding:.125rem .375rem;font-size:.6875rem;font-weight:600;color:var(--primary-foreground)}`)),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@font-face{font-family:GIP;src:url(/gip-font/GIP-Thin.woff2) format("woff2");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-UltraLight.woff2) format("woff2");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Light.woff2) format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-ExtraBold.woff2) format("woff2");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Black.woff2) format("woff2");font-weight:900;font-style:normal;font-display:swap}:root{--background: white;--foreground: #020817;--card: #ffffff;--card-foreground: #020817;--popover: #ffffff;--popover-foreground: #020817;--primary-foreground: #f8fafc;--secondary-foreground: #f8fafc;--muted: hsl(210 40% 96.1%);--muted-foreground: hsl(215.4 16.3% 46.9%);--accent: #fff4e6;--destructive: hsl(0 84.2% 60.2%);--destructive-foreground: hsl(210 40% 98%);--border: hsl(216 8.2% 88%);--input: hsl(214.3 31.8% 91.4%);--radius: .5rem;--gray-0: #ffffff;--gray-1: #f5f2f0;--gray-2: #e9eaec;--gray-3: #dee0e3;--gray-6: hsl(224 8.4% 64.9%);--gray-7: hsl(222.9, 12.2%, 54.9%);--gray-8: hsl(224.2, 7.8%, 48%);--gray-9: hsl(226, 8%, 33%);--gray-10: #464a53;--gray-11: #333333;--gray-12: #1f2228;--gray-13: #14151a;--gray-25: #fcfcfd;--cobalt-50: #eff8ff;--cobalt-100: #dceefc;--cobalt-200: #a9d6ff;--cobalt-300: #75bcff;--cobalt-400: #4ea5ff;--cobalt-500: #3596fc;--cobalt-600: #1f77f1;--cobalt-700: #0f5fd6;--cobalt-800: #0a47aa;--cobalt-900: #073379}.dark{--background: #101010;--foreground: #ededed;--card: #141414;--card-foreground: #ededed;--popover: #141414;--popover-foreground: #ededed;--primary-foreground: #f8fafc;--primary-1: #2d1a0a;--secondary-foreground: #f8fafc;--muted: hsl(217.2 32.6% 17.5%);--muted-foreground: hsl(215 20.2% 65.1%);--accent: #101010;--accent-foreground: #ededed;--destructive-foreground: #ededed;--border: #2e2e2e;--input: hsl(217.2 32.6% 17.5%);--gray-0: #14151a;--gray-1: #1f2228;--gray-2: #333333;--gray-3: #2e2e2e;--gray-6: hsl(224 8.4% 64.9%);--gray-7: hsl(222.9, 12.2%, 54.9%);--gray-8: hsl(224.2, 7.8%, 48%);--gray-9: hsl(226, 8%, 70%);--gray-10: #dee0e3;--gray-11: #e9eaec;--gray-12: #f5f2f0;--gray-13: #ffffff;--gray-25: #0a0a0a}.web-trading-widget-icon{display:block;flex-shrink:0}.web-trading-widget-icon--xs{width:.75rem;height:.75rem}.web-trading-widget-icon--sm{width:.875rem;height:.875rem}.web-trading-widget-icon--md{width:1rem;height:1rem}.web-trading-widget-text-muted{color:#64748b}.dark .web-trading-widget-text-muted{color:#94a3b8}.web-trading-widget-text-buy{color:#2563eb}.dark .web-trading-widget-text-buy{color:#60a5fa}.web-trading-widget-text-sell{color:#dc2626}.dark .web-trading-widget-text-sell{color:#f87171}.web-trading-widget-text-profit-positive{color:#2563eb}.dark .web-trading-widget-text-profit-positive{color:#60a5fa}.web-trading-widget-text-profit-negative{color:#dc2626}.dark .web-trading-widget-text-profit-negative{color:#f87171}.web-trading-widget-icon-btn{flex-shrink:0;color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-icon-btn:hover{color:var(--foreground)}.web-trading-widget-advanced__scan-limit-wrap{position:absolute;left:50%;top:.75rem;z-index:10;transform:translate(-50%)}.web-trading-widget-advanced__scan-limit-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .75rem;font-size:.75rem;line-height:1rem;border-radius:.375rem;background-color:#ef4444;color:#f8fafc;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-advanced__scan-limit-badge-title{font-weight:600}.web-trading-widget-advanced__scan-limit-badge-count{opacity:.8}.web-trading-widget-advanced__container{height:100%;width:100%}.web-trading-widget-root{display:flex;flex-direction:column;height:100%;width:100%;min-height:0;overflow:hidden}.web-trading-widget-trading-layout{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;font-family:GIP,sans-serif}.web-trading-widget-trading-layout__body{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}@media(min-width:1024px){.web-trading-widget-trading-layout__body{flex-direction:row}}.web-trading-widget-trading-layout__chart-area{position:relative;display:flex;min-height:0;min-width:0;flex:1;flex-direction:column;overflow:hidden}@media(max-width:1023px){.web-trading-widget-trading-layout__chart-area{flex:1 1 auto;min-height:40vh}}.web-trading-widget-trading-layout__host-chart-slot{position:relative;flex:1 1 auto;min-height:0;min-width:0;height:100%;width:100%}.web-trading-widget-trading-layout__chart-slot{position:relative;min-height:0;flex:1;overflow:hidden}.web-trading-widget-trading-layout--news{position:relative;display:flex;height:100%;width:100%;min-height:0;flex-direction:column;overflow:hidden}.web-trading-widget-trading-layout--news .web-trading-widget-trading-layout__chart-slot{position:relative;display:block;min-height:0;flex:1;overflow:hidden;isolation:isolate}.web-trading-widget-trading-layout--news .web-trading-widget-trading-layout__news-body{position:relative;display:block;min-height:0;height:100%;width:100%;overflow:hidden}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;pointer-events:none;overflow:visible}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay-layer>.web-trading-widget-new-order-overlay{pointer-events:auto}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay{position:absolute;z-index:20;flex:none;align-self:auto;max-width:calc(100% - 2rem)}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay--draggable{top:auto;right:auto;display:block;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay--exec-panel>.web-trading-widget-market-panel--modal{width:340px;max-width:100%;flex:none}.web-trading-widget-side-panel{position:relative;display:flex;width:100%;flex-shrink:0;flex-direction:column;overflow:hidden;border-color:var(--border);border-top-width:1px;border-top-style:solid;max-height:42vh;min-height:240px}@media(max-width:1023px){.web-trading-widget-side-panel{height:auto;flex:0 1 auto;max-height:26vh;min-height:132px}.web-trading-widget-side-panel--with-scan{height:42vh;max-height:42vh;min-height:240px}}@media(min-width:1024px){.web-trading-widget-side-panel{height:100%;max-height:none;min-height:0;border-top-width:0;border-left-width:1px;border-left-style:solid;width:min(100%,340px);max-width:340px;flex:none}.web-trading-widget-side-panel--with-scan{min-width:min(340px,40%);max-width:50%;flex:1 1 50%;width:auto}}.web-trading-widget-side-panel__empty{display:flex;height:100%;min-height:200px;align-items:center;justify-content:center;padding:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-side-panel__empty{color:#94a3b8}.web-trading-widget-side-panel__scan-layout{display:flex;height:100%;min-height:0;flex-direction:column}.web-trading-widget-side-panel__tablist{margin:.5rem;display:flex;width:calc(100% - 1rem);flex-shrink:0;gap:.25rem;border-radius:.5rem;border:1px solid #e5e7eb;padding:.25rem}.dark .web-trading-widget-side-panel__tablist{border-color:#ffffff1a;background-color:#161616}@media(min-width:640px){.web-trading-widget-side-panel__tablist{margin:.75rem;width:calc(100% - 1.5rem)}}.web-trading-widget-side-panel__tab{flex:1;border-bottom:2px solid transparent;padding:.625rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;transition:color .15s,border-color .15s,background-color .15s;background:transparent;cursor:pointer;color:#6b7280}.web-trading-widget-side-panel__tab:hover{color:#111827}.dark .web-trading-widget-side-panel__tab{color:#ffffff80}.dark .web-trading-widget-side-panel__tab:hover{color:#fffc}@media(min-width:640px){.web-trading-widget-side-panel__tab{font-size:.875rem;line-height:1.25rem}}.web-trading-widget-side-panel__tab--active{border-bottom-color:var(--primary-6);background-color:#fff4e6;color:var(--foreground)}.dark .web-trading-widget-side-panel__tab--active{border-bottom-color:var(--primary-6);background-color:#2a2a2a;color:#fff}.web-trading-widget-side-panel__panels{position:relative;min-height:0;flex:1}.web-trading-widget-side-panel__tabpanel{height:100%;overflow-y:auto}.web-trading-widget-side-panel__tabpanel--scan{position:absolute;top:0;right:0;bottom:0;left:0}.web-trading-widget-side-panel__iframe{height:100%;width:100%;border:0}.web-trading-widget-side-panel__scroll{min-height:0;flex:1;overflow-y:auto}.web-trading-widget-new-order-overlay{pointer-events:auto;position:absolute;width:-moz-fit-content;width:fit-content;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.web-trading-widget-new-order-overlay--dragging{z-index:50}.web-trading-widget-new-order-overlay--news:not(.web-trading-widget-new-order-overlay--draggable){top:1rem;right:1rem;left:auto;z-index:20}.web-trading-widget-new-order-overlay--draggable{top:auto;right:auto}.web-trading-widget-new-order-overlay--exec-panel{display:block;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content}.web-trading-widget-new-order-overlay--side-panel{width:min(100%,360px);max-height:calc(100% - 2rem);overflow:auto;border:1px solid var(--border);border-radius:.375rem;background-color:var(--background);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.web-trading-widget-new-order-overlay--side-panel .web-trading-widget-market-panel{border:none;box-shadow:none}.web-trading-widget-mini-order{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;border-radius:.125rem;border:1px solid color-mix(in srgb,var(--border) 60%,transparent);background-color:var(--background);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.dark .web-trading-widget-mini-order{border-color:#ffffff14;background-color:#161616}.web-trading-widget-mini-order--expanded{width:340px}.web-trading-widget-mini-order--collapsed{width:-moz-fit-content;width:fit-content}.web-trading-widget-mini-order__row{display:flex;height:28px;align-items:stretch}.web-trading-widget-mini-order__drag-handle{display:flex;width:18px;flex-shrink:0;touch-action:none;align-items:center;justify-content:center;border-right:1px solid color-mix(in srgb,var(--border) 60%,transparent);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-left:none;border-bottom:none;cursor:grab;padding:0}.web-trading-widget-mini-order__drag-handle:hover{color:var(--foreground)}.web-trading-widget-mini-order__drag-handle--grabbing{cursor:grabbing}.dark .web-trading-widget-mini-order__drag-handle{border-right-color:#ffffff0f;color:#fff6}.dark .web-trading-widget-mini-order__drag-handle:hover{color:#fffc}.web-trading-widget-mini-order__side-btn{display:flex;min-width:0;flex:1;align-items:stretch;overflow:hidden;transition:opacity .15s;border:none;padding:0;cursor:pointer}.web-trading-widget-mini-order__side-btn:disabled{opacity:.45;cursor:not-allowed}.web-trading-widget-mini-order__side-btn--sell{background-color:#d94a4a}.web-trading-widget-mini-order__side-btn--sell:hover:not(:disabled){background-color:#c94444}.web-trading-widget-mini-order__side-btn--sell:active:not(:disabled){background-color:#b83d3d}.web-trading-widget-mini-order__side-btn--buy{background-color:#3b82f6}.web-trading-widget-mini-order__side-btn--buy:hover:not(:disabled){background-color:#3575e6}.web-trading-widget-mini-order__side-btn--buy:active:not(:disabled){background-color:#2f6ad6}.web-trading-widget-mini-order__price{display:flex;min-width:0;flex:1;align-items:center;justify-content:center;padding:0 .375rem;font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1;color:#fffffff2}.web-trading-widget-mini-order__label{display:flex;width:40px;flex-shrink:0;align-items:center;justify-content:center;font-size:10px;font-weight:600;line-height:1;letter-spacing:.05em;color:#fff}.web-trading-widget-mini-order__label--sell{border-left:1px solid rgba(255,255,255,.15)}.web-trading-widget-mini-order__label--buy{border-right:1px solid rgba(255,255,255,.15)}.web-trading-widget-mini-order__volume{display:flex;width:80px;flex-shrink:0;align-items:stretch;border-left:1px solid color-mix(in srgb,var(--border) 60%,transparent);border-right:1px solid color-mix(in srgb,var(--border) 60%,transparent);background-color:color-mix(in srgb,hsl(210 40% 96.1%) 30%,transparent)}.dark .web-trading-widget-mini-order__volume{border-left-color:#ffffff0f;border-right-color:#ffffff0f;background-color:#1e1e1e}.web-trading-widget-mini-order__volume-btn{display:flex;height:100%;width:1.25rem;flex-shrink:0;align-items:center;justify-content:center;color:#64748b;transition:color .15s;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-mini-order__volume-btn:hover:not(:disabled){color:var(--foreground)}.web-trading-widget-mini-order__volume-btn:disabled{opacity:.4;cursor:not-allowed}.dark .web-trading-widget-mini-order__volume-btn{color:#fff6}.dark .web-trading-widget-mini-order__volume-btn:hover:not(:disabled){color:#fffc}.web-trading-widget-mini-order__volume-input{height:100%;min-width:0;flex:1;border:0;background:transparent;text-align:center;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1;color:var(--foreground);outline:none}.web-trading-widget-mini-order__volume-input:disabled{opacity:.5}.dark .web-trading-widget-mini-order__volume-input{color:#fff}.web-trading-widget-mini-order__toggle{display:flex;width:22px;flex-shrink:0;align-items:center;justify-content:center;border-left:1px solid color-mix(in srgb,var(--border) 60%,transparent);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-right:none;border-bottom:none;cursor:pointer;padding:0}.web-trading-widget-mini-order__toggle:hover{color:var(--foreground)}.dark .web-trading-widget-mini-order__toggle{border-left-color:#ffffff0f;color:#fff6}.dark .web-trading-widget-mini-order__toggle:hover{color:#fffc}.web-trading-widget-market-panel{width:100%;border-radius:.125rem;background-color:var(--background)}.web-trading-widget-market-panel--modal{width:340px;border:1px solid var(--border);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-market-panel--collapsed .web-trading-widget-market-panel__header{border-bottom:none}.web-trading-widget-market-panel__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding:.25rem .75rem .25rem .5rem}.web-trading-widget-market-panel__drag-handle{display:flex;width:1.75rem;flex-shrink:0;touch-action:none;align-items:center;justify-content:center;align-self:stretch;border-right:1px solid var(--border);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-left:none;border-bottom:none;cursor:grab;padding:0}.web-trading-widget-market-panel__drag-handle:hover{color:var(--foreground)}.web-trading-widget-market-panel__drag-handle--grabbing{cursor:grabbing}.web-trading-widget-market-panel__select-trigger{height:2rem;flex:1;border:0;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0 center;padding-left:0;padding-right:1.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;color:inherit}.web-trading-widget-market-panel__select-trigger:focus{outline:none;box-shadow:none}.web-trading-widget-market-panel__header-actions{display:flex;flex-shrink:0;align-items:center;gap:.25rem}.web-trading-widget-market-panel__header-btn{color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-market-panel__header-btn:hover{color:var(--foreground)}.web-trading-widget-market-panel__accordion{width:100%}.web-trading-widget-market-panel__accordion-item{border-bottom:1px solid var(--border)}.web-trading-widget-market-panel__accordion-trigger{display:flex;width:100%;align-items:center;justify-content:space-between;border:none;background:transparent;cursor:pointer;color:inherit;padding:.625rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.web-trading-widget-market-panel__accordion-trigger:hover{text-decoration:none}.web-trading-widget-market-panel__accordion-trigger>svg{flex-shrink:0;transition:transform .2s}.web-trading-widget-market-panel__accordion-trigger[data-state=open]>svg,.web-trading-widget-market-panel__accordion-trigger--open>svg{transform:rotate(180deg)}.web-trading-widget-market-panel__accordion-content{display:flex;flex-direction:column;gap:.75rem;padding:0 .75rem .75rem}.web-trading-widget-market-panel__grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.web-trading-widget-market-panel__field{display:flex;flex-direction:column;gap:.25rem}.web-trading-widget-market-panel__field-label{font-size:.75rem;line-height:1rem;color:#64748b}.dark .web-trading-widget-market-panel__field-label{color:#94a3b8}.web-trading-widget-market-panel__select-full{height:2.25rem;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;padding:0 2rem 0 .75rem;font-size:.875rem;line-height:1.25rem;color:inherit}.web-trading-widget-market-panel__select-full:focus{outline:none;box-shadow:0 0 0 1px var(--border)}.dark .web-trading-widget-market-panel__select-full{border-color:var(--gray-3)}.web-trading-widget-market-panel__input{display:flex;height:2.25rem;width:100%;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem;color:inherit}.web-trading-widget-market-panel__input:focus-visible{outline:none;box-shadow:0 0 0 1px var(--border)}.dark .web-trading-widget-market-panel__input{border-color:var(--gray-3)}.web-trading-widget-market-panel__footer{padding:.75rem}.web-trading-widget-market-panel__quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background-color:#f0f9ff;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:#dc2626}.dark .web-trading-widget-market-panel__quotes{background-color:#1c1c1c}.web-trading-widget-market-panel__quotes-ask{text-align:right}.web-trading-widget-market-panel__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.web-trading-widget-market-panel__sell-btn{height:2.5rem;width:100%;border:none;border-radius:0;background-color:#ea4c4c;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;cursor:pointer}.web-trading-widget-market-panel__sell-btn:hover:not(:disabled){background-color:#c74141}.web-trading-widget-market-panel__buy-btn{height:2.5rem;width:100%;border:none;border-radius:0;background-color:#3183ff;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;cursor:pointer}.web-trading-widget-market-panel__buy-btn:hover:not(:disabled){background-color:#296fd9}.web-trading-widget-market-panel__place-btn{height:2.5rem;width:100%;border:none;border-radius:0;font-size:.875rem;line-height:1.25rem;font-weight:600;cursor:pointer}.web-trading-widget-market-panel__place-btn--buy{background-color:#2563eb;color:#fff}.web-trading-widget-market-panel__place-btn--buy:hover:not(:disabled){background-color:#1d4ed8}.web-trading-widget-market-panel__place-btn--sell{background-color:#ef4444;color:#fff}.web-trading-widget-market-panel__place-btn--sell:hover:not(:disabled){background-color:#ed2c2c}.web-trading-widget-market-panel__sell-btn:disabled,.web-trading-widget-market-panel__buy-btn:disabled,.web-trading-widget-market-panel__place-btn:disabled{opacity:.5;cursor:not-allowed}.web-trading-widget-detail-panel{width:100%;border-radius:.125rem;border-bottom:1px solid var(--border);background-color:var(--background)}.web-trading-widget-detail-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding:.5rem .75rem}.web-trading-widget-detail-panel__title{font-size:.875rem;line-height:1.375;text-transform:capitalize}.web-trading-widget-detail-panel__title--buy{color:#2563eb}.web-trading-widget-detail-panel__title--sell{color:#dc2626}.web-trading-widget-detail-panel__title--position{color:#2563eb;text-transform:none}.web-trading-widget-detail-panel__body{display:flex;flex-direction:column;gap:.75rem;padding:.75rem}.web-trading-widget-detail-panel__input-muted{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 50%,transparent)}.dark .web-trading-widget-detail-panel__input-muted{background-color:color-mix(in srgb,hsl(217.2 32.6% 17.5%) 50%,transparent)}.web-trading-widget-detail-panel__btn-full{height:2.5rem;width:100%;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--foreground);cursor:pointer}.web-trading-widget-detail-panel__btn-full:hover:not(:disabled){opacity:.8}.web-trading-widget-detail-panel__btn-full:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-detail-panel__btn-full{border-color:#ffffff1a}.web-trading-widget-detail-panel__action-btn{height:auto;min-height:2.5rem;width:100%;white-space:normal;padding-top:.5rem;padding-bottom:.5rem;text-align:left;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;background-color:#f97316;border:none;border-radius:.375rem;cursor:pointer}.web-trading-widget-detail-panel__action-btn:hover:not(:disabled){background-color:#ea580c}.web-trading-widget-confirmation{width:100%;border-radius:.125rem;background-color:var(--background)}.web-trading-widget-confirmation__close-row{display:flex;justify-content:flex-end;padding:.5rem}.web-trading-widget-confirmation__close-btn{color:#2563eb;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-confirmation__close-btn:hover{color:#1d4ed8}.web-trading-widget-confirmation__body{display:flex;flex-direction:column;gap:.75rem;padding:0 1rem 1rem}.web-trading-widget-confirmation__summary{font-size:.875rem;line-height:1.375;color:var(--foreground)}.web-trading-widget-confirmation__ticket,.web-trading-widget-confirmation__side{font-weight:500}.web-trading-widget-confirmation__side--sell{color:#dc2626}.web-trading-widget-confirmation__side--buy{color:#2563eb}.web-trading-widget-confirmation__price{font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-confirmation__price{color:#94a3b8}.web-trading-widget-confirmation__status{font-size:1rem;line-height:1.5rem;font-weight:500;color:#16a34a}.web-trading-widget-confirmation__ok-btn{height:2.5rem;width:100%;background-color:#2563eb;color:#fff;border:none;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer}.web-trading-widget-confirmation__ok-btn:hover:not(:disabled){background-color:#1d4ed8}.web-trading-widget-account-modal{display:flex;flex-direction:column;gap:1rem}@media(min-width:640px){.web-trading-widget-account-modal{max-width:28rem}}.web-trading-widget-account-modal__loading{font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-account-modal__loading{color:#94a3b8}.web-trading-widget-account-modal__error{font-size:.875rem;line-height:1.25rem;color:#ef4444}.web-trading-widget-account-modal__select{height:2.5rem;width:100%}.web-trading-widget-badge{display:inline-flex;align-items:center;border-radius:.375rem;border:1px solid transparent;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.web-trading-widget-badge--destructive{background-color:#ef4444;color:#f8fafc}.web-trading-widget-badge--secondary{background-color:var(--secondary);color:var(--secondary-foreground)}.web-trading-widget-badge--outline{border-color:var(--border);color:var(--foreground)}.web-trading-widget-dialog{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:1rem}.web-trading-widget-dialog__overlay{position:absolute;top:0;right:0;bottom:0;left:0;background-color:color-mix(in srgb,var(--background) 80%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.web-trading-widget-dialog__content{position:relative;z-index:1;width:100%;max-width:32rem;border-radius:1rem;border:1px solid var(--border);background-color:var(--background);padding:1.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-dialog__header{display:flex;flex-direction:column;gap:.375rem;border-bottom:1px solid var(--border);padding-bottom:1rem;margin-bottom:1rem}.web-trading-widget-dialog__title{margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--foreground)}.web-trading-widget-dialog__description{margin:0;font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-dialog__description{color:#94a3b8}.web-trading-widget-dialog__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:1rem}.web-trading-widget-btn{display:inline-flex;align-items:center;justify-content:center;height:2.25rem;border-radius:.375rem;border:1px solid transparent;padding:0 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;cursor:pointer;transition:opacity .15s,background-color .15s}.web-trading-widget-btn:hover:not(:disabled){opacity:.9}.web-trading-widget-btn:disabled{cursor:not-allowed;opacity:.5}.web-trading-widget-btn--primary{background-color:var(--primary);color:var(--primary-foreground)}.web-trading-widget-btn--outline{border-color:var(--input);background-color:transparent;color:var(--foreground)}.dark .web-trading-widget-btn--outline{border-color:#ffffff1a}.web-trading-widget-toast-viewport{position:fixed;right:1rem;top:1rem;z-index:100;display:flex;width:min(24rem,calc(100vw - 2rem));flex-direction:column;gap:.5rem;pointer-events:none}.web-trading-widget-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:.5rem;border-radius:.5rem;border:1px solid var(--border);background-color:var(--background);padding:.75rem 1rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-toast__content{flex:1 1 auto;min-width:0}.web-trading-widget-toast__close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin:-.125rem -.25rem 0 0;padding:0;border:none;border-radius:.25rem;background:transparent;color:currentColor;opacity:.6;cursor:pointer;transition:opacity .15s ease,background-color .15s ease}.web-trading-widget-toast__close:hover{opacity:1;background-color:#00000014}.web-trading-widget-toast__close:focus-visible{outline:2px solid var(--ring, currentColor);outline-offset:1px;opacity:1}.web-trading-widget-toast--destructive{border-color:#ef4444;background-color:#ef4444;color:#f8fafc}.web-trading-widget-toast__title{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:600}.web-trading-widget-toast__description{font-size:.875rem;line-height:1.25rem}.web-trading-widget-stepper{display:flex;flex-direction:column;gap:.25rem}.web-trading-widget-stepper__header{display:flex;align-items:center;justify-content:space-between;gap:.25rem}.web-trading-widget-stepper__label{font-size:.75rem;line-height:1rem;color:#64748b}.dark .web-trading-widget-stepper__label{color:#94a3b8}.web-trading-widget-stepper__clear{color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-stepper__clear:hover:not(:disabled){color:var(--foreground)}.web-trading-widget-stepper__clear:disabled{opacity:.4}.web-trading-widget-stepper__control{display:flex;align-items:center;overflow:hidden;border-radius:.375rem;border:1px solid hsl(214.3 31.8% 91.4%);background-color:var(--background)}.dark .web-trading-widget-stepper__control{border-color:#1e293b}.web-trading-widget-stepper__control--disabled{opacity:.6}.web-trading-widget-stepper__btn{display:flex;height:2.25rem;width:2.25rem;flex-shrink:0;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0}.web-trading-widget-stepper__btn--minus{border-right:1px solid hsl(214.3 31.8% 91.4%)}.web-trading-widget-stepper__btn--plus{border-left:1px solid hsl(214.3 31.8% 91.4%)}.dark .web-trading-widget-stepper__btn--minus,.dark .web-trading-widget-stepper__btn--plus{border-color:#1e293b}.web-trading-widget-stepper__btn:hover:not(:disabled){background-color:#f1f5f9}.dark .web-trading-widget-stepper__btn:hover:not(:disabled){background-color:#1e293b}.web-trading-widget-stepper__btn:disabled{opacity:.4;cursor:not-allowed}.web-trading-widget-stepper__input{height:2.25rem;min-width:0;flex:1;border:0;background:transparent;padding:0 .5rem;text-align:center;font-size:.875rem;line-height:1.25rem;outline:none}.web-trading-widget-stepper__input:focus-visible{outline:none}.web-trading-widget-stepper__input:disabled{cursor:not-allowed}.web-trading-widget-terminal-resize-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;cursor:row-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.web-trading-widget-terminal{position:relative;z-index:1;display:flex;flex-shrink:0;flex-direction:column;overflow:hidden;border-top:1px solid var(--border);background-color:var(--background);font-size:.75rem;line-height:1rem;color:var(--foreground)}.dark .web-trading-widget-terminal{background-color:#000;color:#fff}@media(max-width:1023px){.web-trading-widget-terminal:not(.web-trading-widget-terminal--embedded){max-height:26vh}}.web-trading-widget-terminal__resize-bar-wrap{display:flex;flex-shrink:0;align-items:stretch;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.dark .web-trading-widget-terminal__resize-bar-wrap{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__resize-bar{display:flex;min-height:20px;flex:1;cursor:row-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;padding-top:.125rem;padding-bottom:.125rem}.web-trading-widget-terminal__resize-icon{color:#64748b}.dark .web-trading-widget-terminal__resize-icon{color:#ffffff80}.web-trading-widget-terminal__header-scroll{flex-shrink:0;overflow-x:auto}.web-trading-widget-terminal__toolbar{display:flex;flex-shrink:0;align-items:center;border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__toolbar{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__tab-bar{display:flex;flex-shrink:0;align-items:stretch;border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__tab-bar{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__tab-btn{flex-shrink:0;height:2rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;white-space:nowrap;border:none;border-bottom:2px solid transparent;background:transparent;color:#64748b;cursor:pointer;transition:color .15s,border-color .15s}.web-trading-widget-terminal__tab-btn:hover{color:var(--foreground)}.dark .web-trading-widget-terminal__tab-btn{color:#fff9}.dark .web-trading-widget-terminal__tab-btn:hover{color:#fff}.web-trading-widget-terminal__tab-btn--active{border-bottom-color:var(--primary);color:var(--foreground)}.dark .web-trading-widget-terminal__tab-btn--active{color:#fff}.web-trading-widget-terminal__deals-wrap{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.web-trading-widget-terminal__deals-table{width:100%;min-width:1100px;table-layout:fixed;border-collapse:collapse}.web-trading-widget-terminal__deals-footer{display:flex;align-items:center;justify-content:center;min-width:1100px;padding:.75rem 1rem;border-top:1px solid var(--border)}.dark .web-trading-widget-terminal__deals-footer{border-top-color:#ffffff1a}.web-trading-widget-terminal__deals-detail-btn{font-size:.75rem;font-weight:500;color:var(--primary);text-decoration:none;padding:.25rem .75rem;border-radius:var(--radius);transition:background-color .15s}.web-trading-widget-terminal__deals-detail-btn:hover{background-color:color-mix(in srgb,var(--primary) 10%,transparent)}.web-trading-widget-terminal__deals-row{border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__deals-row{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__skeleton-row{border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__skeleton-row{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__skeleton-bar{height:.75rem;width:4rem;border-radius:.25rem;background-color:color-mix(in srgb,var(--border) 60%,transparent);animation:web-trading-widget-skeleton-pulse 1.4s ease-in-out infinite}.web-trading-widget-terminal__skeleton-bar--wide{width:8rem}@keyframes web-trading-widget-skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}.web-trading-widget-terminal__toolbar-actions{display:flex;margin-left:auto;align-items:center;justify-content:flex-end;gap:.5rem;padding-right:.75rem}.web-trading-widget-terminal__close-all-btn{margin-left:.5rem;height:2rem;border-radius:.125rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;color:#dc2626;background:transparent;border:none;cursor:pointer;transition:opacity .15s}.web-trading-widget-terminal__close-all-btn:hover:not(:disabled){opacity:.6}.web-trading-widget-terminal__close-all-btn:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-terminal__close-all-btn{color:#f87171}.web-trading-widget-terminal__refetch-btn{display:inline-flex;align-items:center;gap:.375rem;margin-left:.5rem;height:2rem;border-radius:.125rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;color:var(--foreground);background:transparent;border:none;cursor:pointer;transition:opacity .15s}.web-trading-widget-terminal__refetch-btn:hover:not(:disabled){opacity:.6}.web-trading-widget-terminal__refetch-btn:disabled{cursor:not-allowed;opacity:.5}.web-trading-widget-terminal__refetch-icon--spinning{animation:web-trading-widget-refetch-spin 1s linear infinite}@keyframes web-trading-widget-refetch-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.web-trading-widget-terminal__toolbar-profit{font-size:.75rem;line-height:1rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--foreground)}.dark .web-trading-widget-terminal__toolbar-profit{color:#fff}.web-trading-widget-terminal__body-scroll{min-height:0;flex:1;overflow:auto}.web-trading-widget-terminal__table{width:100%;min-width:1060px;table-layout:fixed;border-collapse:collapse}.web-trading-widget-terminal__cell{padding:.375rem .5rem}.web-trading-widget-terminal__cell--left{text-align:left}.web-trading-widget-terminal__cell--right{text-align:right}.web-trading-widget-terminal__cell--nowrap{white-space:nowrap}.web-trading-widget-terminal__cell--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-trading-widget-terminal__cell--capitalize{text-transform:capitalize}.web-trading-widget-terminal__cell--close{width:2rem;padding:.375rem .25rem}.web-trading-widget-terminal__head-row{color:#64748b}.dark .web-trading-widget-terminal__head-row{color:#ffffffb3}.web-trading-widget-terminal__head-cell{font-weight:400;white-space:nowrap}.web-trading-widget-terminal-col--symbol{width:88px}.web-trading-widget-terminal-col--ticket{width:72px}.web-trading-widget-terminal-col--time{width:148px}.web-trading-widget-terminal-col--type{width:56px}.web-trading-widget-terminal-col--volume{width:88px}.web-trading-widget-terminal-col--price{width:80px}.web-trading-widget-terminal-col--sl,.web-trading-widget-terminal-col--tp{width:72px}.web-trading-widget-terminal-col--price2{width:80px}.web-trading-widget-terminal-col--swap{width:100px}.web-trading-widget-terminal-col--profit{width:88px}.web-trading-widget-terminal-col--close{width:2rem}.web-trading-widget-terminal__row{cursor:pointer;border-bottom:1px solid var(--border)}.web-trading-widget-terminal__row:hover{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 30%,transparent)}.dark .web-trading-widget-terminal__row{border-bottom-color:#ffffff1a}.dark .web-trading-widget-terminal__row:hover{background-color:#ffffff0d}.web-trading-widget-terminal__row--selected{background-color:#f0f9ff}.dark .web-trading-widget-terminal__row--selected{background-color:#ffffff1a}.web-trading-widget-terminal__empty-cell{padding-top:2rem;padding-bottom:2rem;text-align:center;color:#64748b}.dark .web-trading-widget-terminal__empty-cell{color:#ffffff80}.web-trading-widget-terminal__empty-inner{display:flex;flex-direction:column;align-items:center;gap:.75rem}.web-trading-widget-terminal__empty-text{color:#64748b}.dark .web-trading-widget-terminal__empty-text{color:#ffffffb3}.web-trading-widget-terminal__create-btn{background-color:var(--primary);padding:.375rem 1rem;color:#fff;transition:background-color .15s;border:none;cursor:pointer}.web-trading-widget-terminal__create-btn:hover{background-color:color-mix(in srgb,var(--primary) 90%,transparent)}.dark .web-trading-widget-terminal__create-btn{background-color:#333638;color:var(--primary)}.web-trading-widget-terminal__row-close-btn{display:inline-flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:.125rem;color:#64748b;transition:color .15s,background-color .15s;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-terminal__row-close-btn:hover:not(:disabled){background-color:#fef2f2;color:#dc2626}.web-trading-widget-terminal__row-close-btn:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-terminal__row-close-btn{color:#ffffff80}.dark .web-trading-widget-terminal__row-close-btn:hover:not(:disabled){background-color:#ef444433;color:#f87171}.web-trading-widget-terminal__stats{flex-shrink:0;border-top:1px solid var(--border);color:#64748b}.dark .web-trading-widget-terminal__stats{border-top-color:#ffffff1a;color:#fffc}.web-trading-widget-terminal__stats-row{display:flex;flex-wrap:wrap;align-items:center;-moz-column-gap:1.5rem;column-gap:1.5rem;row-gap:.25rem}.web-trading-widget-terminal__stats-row--tabular{font-variant-numeric:tabular-nums}.web-trading-widget-terminal__stats-profit{margin-left:auto;color:var(--foreground)}.dark .web-trading-widget-terminal__stats-profit{color:#fff}.web-trading-widget-market-watch-resize-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;cursor:col-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.web-trading-widget-market-watch{position:relative;z-index:1;display:flex;height:100%;flex-shrink:0;background-color:var(--background)}.web-trading-widget-market-watch__resize-rail{display:flex;width:1rem;flex-shrink:0;flex-direction:column;align-items:center;border-left:1px solid var(--border);background-color:var(--background)}.web-trading-widget-market-watch__resize-handle{display:flex;min-height:48px;width:100%;flex:1;cursor:col-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center}.web-trading-widget-market-watch__resize-icon{color:#64748b}.dark .web-trading-widget-market-watch__resize-icon{color:#ffffff80}.web-trading-widget-market-watch__content{display:flex;min-width:0;flex:1;flex-direction:column}.web-trading-widget-market-watch__search-wrap{border-bottom:1px solid var(--border);padding:.5rem}.web-trading-widget-market-watch__search-field{position:relative}.web-trading-widget-market-watch__search-icon{pointer-events:none;position:absolute;left:.5rem;top:50%;transform:translateY(-50%);color:#64748b}.web-trading-widget-market-watch__search-input{height:2rem;padding-left:2rem;font-size:.75rem;line-height:1rem}.web-trading-widget-market-watch__list{min-height:0;flex:1;overflow-y:auto}.web-trading-widget-market-watch__table{width:100%;border-collapse:collapse;font-size:.75rem;line-height:1rem}.web-trading-widget-market-watch__thead{position:sticky;top:0;z-index:1;background-color:var(--background)}.web-trading-widget-market-watch__head-row{border-bottom:1px solid var(--border);color:#64748b}.web-trading-widget-market-watch__th{padding:.375rem .5rem;font-weight:500}.web-trading-widget-market-watch__th--left{text-align:left}.web-trading-widget-market-watch__th--right{text-align:right}.web-trading-widget-market-watch__row{cursor:pointer;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.web-trading-widget-market-watch__row:hover{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 40%,transparent)}.web-trading-widget-market-watch__row--active{background-color:#f0f9ff}.dark .web-trading-widget-market-watch__row--active{background-color:#0ea5e966}.web-trading-widget-market-watch__td{padding:.375rem .5rem}.web-trading-widget-market-watch__td--symbol{font-weight:500}.web-trading-widget-market-watch__td--quote{text-align:right;font-variant-numeric:tabular-nums}.web-trading-widget-market-watch__quote--neutral{color:var(--foreground)}.web-trading-widget-market-watch__quote--muted{color:#64748b}.dark .web-trading-widget-market-watch__quote--muted{color:#94a3b8}.web-trading-widget-news-orders-overlay-root{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;overflow:visible;pointer-events:none}.web-trading-widget-news-orders-overlay-root .web-trading-widget-news-orders-overlay__trigger,.web-trading-widget-news-orders-overlay-root .web-trading-widget-news-orders__panel{pointer-events:auto}.web-trading-widget-news-orders__panel{position:absolute;left:0;right:0;bottom:0;z-index:50;display:flex;width:100%;min-height:0;flex-direction:column;overflow:hidden;pointer-events:auto;border-top:1px solid var(--border);background-color:var(--background);box-shadow:0 -8px 24px #0000002e}.dark .web-trading-widget-news-orders__panel{background-color:#000;box-shadow:0 -8px 24px #00000073}.web-trading-widget-news-orders__panel-resize-bar-wrap{display:flex;width:100%;flex-shrink:0;align-items:stretch;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.dark .web-trading-widget-news-orders__panel-resize-bar-wrap{border-bottom-color:#ffffff1a}.web-trading-widget-news-orders__panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--border);padding:.625rem .75rem}.web-trading-widget-news-orders__panel-title{margin:0;font-size:.9375rem;font-weight:600;line-height:1.25;color:var(--foreground)}.web-trading-widget-news-orders__panel-close{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:#64748b;cursor:pointer;padding:.25rem}.web-trading-widget-news-orders__panel-close:hover{color:var(--foreground)}.dark .web-trading-widget-news-orders__panel-close{color:#ffffff8c}.dark .web-trading-widget-news-orders__panel-close:hover{color:#fff}.web-trading-widget-news-orders__panel-body{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.web-trading-widget-news-orders__panel-body .web-trading-widget-terminal--embedded{flex:1;min-height:0;height:100%}.web-trading-widget-news-orders__table{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden;font-size:.75rem;line-height:1rem;color:var(--foreground)}.web-trading-widget-news-orders__table .web-trading-widget-terminal__header-scroll{flex-shrink:0;overflow-x:auto}.web-trading-widget-news-orders__table .web-trading-widget-terminal__body-scroll{min-height:0;flex:1;overflow:auto}.web-trading-widget-news-orders-overlay__trigger{position:absolute;left:1rem;bottom:1rem;z-index:40;pointer-events:auto;display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:1px solid var(--border);background-color:var(--background);padding:.5rem .875rem;font-size:.8125rem;font-weight:600;line-height:1;color:var(--foreground);box-shadow:0 4px 12px #0000001f;cursor:pointer}.web-trading-widget-news-orders-overlay__trigger:hover{background-color:var(--muted)}.dark .web-trading-widget-news-orders-overlay__trigger{background-color:#141414;box-shadow:0 4px 12px #0006}.web-trading-widget-news-orders-overlay__badge{display:inline-flex;min-width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;background-color:var(--primary);padding:.125rem .375rem;font-size:.6875rem;font-weight:600;color:var(--primary-foreground)}`)),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  var Gl = Object.defineProperty;
3
3
  var ho = (e) => {
4
4
  throw TypeError(e);
@@ -14,7 +14,7 @@ var Ar = (e, t, n, r) => ({
14
14
  return _(e, t, r);
15
15
  }
16
16
  });
17
- import { jsx as l, jsxs as E, Fragment as Ye } from "react/jsx-runtime";
17
+ import { jsx as l, jsxs as A, Fragment as Ye } from "react/jsx-runtime";
18
18
  import * as Ve from "react";
19
19
  import fr, { createContext as hr, useMemo as we, useContext as mr, useState as H, forwardRef as oc, createElement as mo, useEffect as J, useRef as pe, useCallback as Z } from "react";
20
20
  const Zl = [
@@ -122,7 +122,7 @@ function pd({
122
122
  onPointerDownOutside: r,
123
123
  onEscapeKeyDown: i
124
124
  }) {
125
- return e ? /* @__PURE__ */ E("div", { className: "web-trading-widget-dialog", role: "dialog", "aria-modal": "true", children: [
125
+ return e ? /* @__PURE__ */ A("div", { className: "web-trading-widget-dialog", role: "dialog", "aria-modal": "true", children: [
126
126
  /* @__PURE__ */ l(
127
127
  "div",
128
128
  {
@@ -155,7 +155,7 @@ function lc({
155
155
  }) {
156
156
  var m;
157
157
  const { t: o } = Ae(), [a, c] = H(""), d = a || ((m = n[0]) == null ? void 0 : m.login) || "", u = !t && n.length > 0 && d !== "", f = !t && n.length === 0;
158
- return /* @__PURE__ */ E(
158
+ return /* @__PURE__ */ A(
159
159
  pd,
160
160
  {
161
161
  open: e,
@@ -163,7 +163,7 @@ function lc({
163
163
  onPointerDownOutside: (h) => h.preventDefault(),
164
164
  onEscapeKeyDown: (h) => h.preventDefault(),
165
165
  children: [
166
- /* @__PURE__ */ E(gd, { children: [
166
+ /* @__PURE__ */ A(gd, { children: [
167
167
  /* @__PURE__ */ l(yd, { children: o("WebTrading.selectTradingAccount") }),
168
168
  /* @__PURE__ */ l(bd, { children: o("WebTrading.selectAccountDescription") })
169
169
  ] }),
@@ -174,7 +174,7 @@ function lc({
174
174
  className: "web-trading-widget-account-modal__select web-trading-widget-market-panel__select-full",
175
175
  "aria-label": o("WebTrading.selectAccount"),
176
176
  onChange: (h) => c(h.target.value),
177
- children: n.map((h) => /* @__PURE__ */ E("option", { value: h.login, children: [
177
+ children: n.map((h) => /* @__PURE__ */ A("option", { value: h.login, children: [
178
178
  h.label,
179
179
  " (",
180
180
  h.balance.toFixed(2),
@@ -184,7 +184,7 @@ function lc({
184
184
  ] }, h.login))
185
185
  }
186
186
  ),
187
- /* @__PURE__ */ l(_d, { children: f ? /* @__PURE__ */ E(Ye, { children: [
187
+ /* @__PURE__ */ l(_d, { children: f ? /* @__PURE__ */ A(Ye, { children: [
188
188
  i ? /* @__PURE__ */ l("a", { href: i, className: "web-trading-widget-btn web-trading-widget-btn--outline", children: o("WebTrading.back") }) : null,
189
189
  s ? /* @__PURE__ */ l("a", { href: s, className: "web-trading-widget-btn web-trading-widget-btn--primary", children: o("WebTrading.createAccount") }) : null
190
190
  ] }) : /* @__PURE__ */ l(
@@ -1290,15 +1290,15 @@ function Zd() {
1290
1290
  function p(O) {
1291
1291
  if (!T) {
1292
1292
  if (T = !0, S = O, O = m(O), h !== void 0 && w.hasValue) {
1293
- var A = w.value;
1294
- if (h(A, O))
1295
- return g = A;
1293
+ var x = w.value;
1294
+ if (h(x, O))
1295
+ return g = x;
1296
1296
  }
1297
1297
  return g = O;
1298
1298
  }
1299
- if (A = g, r(S, O)) return A;
1299
+ if (x = g, r(S, O)) return x;
1300
1300
  var P = m(O);
1301
- return h !== void 0 && h(A, P) ? (S = O, A) : (S = O, g = P);
1301
+ return h !== void 0 && h(x, P) ? (S = O, x) : (S = O, g = P);
1302
1302
  }
1303
1303
  var T = !1, S, g, C = f === void 0 ? null : f;
1304
1304
  return [
@@ -1350,16 +1350,16 @@ function Yd() {
1350
1350
  function p(O) {
1351
1351
  if (!T) {
1352
1352
  if (T = !0, S = O, O = m(O), h !== void 0 && w.hasValue) {
1353
- var A = w.value;
1354
- if (h(A, O))
1355
- return g = A;
1353
+ var x = w.value;
1354
+ if (h(x, O))
1355
+ return g = x;
1356
1356
  }
1357
1357
  return g = O;
1358
1358
  }
1359
- if (A = g, r(S, O))
1360
- return A;
1359
+ if (x = g, r(S, O))
1360
+ return x;
1361
1361
  var P = m(O);
1362
- return h !== void 0 && h(A, P) ? (S = O, A) : (S = O, g = P);
1362
+ return h !== void 0 && h(x, P) ? (S = O, x) : (S = O, g = P);
1363
1363
  }
1364
1364
  var T = !1, S, g, C = f === void 0 ? null : f;
1365
1365
  return [
@@ -1470,35 +1470,35 @@ function su({
1470
1470
  onExpand: h,
1471
1471
  onPlaceOrder: y
1472
1472
  }) {
1473
- const { t: w } = Ae(), [b, p] = H(String(r)), [T, S] = H(null), [g, C] = H(u), O = se((x) => x.setOrderSide), A = se((x) => x.setVolumeLots);
1473
+ const { t: w } = Ae(), [b, p] = H(String(r)), [T, S] = H(null), [g, C] = H(u), O = se((E) => E.setOrderSide), x = se((E) => E.setVolumeLots);
1474
1474
  u !== g && (C(u), S(null));
1475
1475
  const P = T ?? u === "scan";
1476
1476
  J(() => {
1477
1477
  m();
1478
1478
  }, [P, m]);
1479
1479
  const I = () => {
1480
- const x = !P;
1481
- x && h(), S(x);
1482
- }, B = Number(Ot(Ct(e))), z = t !== null ? _e(t, B) : "—", L = n !== null ? _e(n, B) : "—", G = !o && !a && c !== "" && (t !== null && n !== null), oe = (x) => {
1483
- const $ = Number(b), R = Number.isFinite($) && $ > 0 ? $ : r, Q = Math.max(s, R + x * i), de = Ni(Q, 2);
1484
- p(de), A(Q);
1480
+ const E = !P;
1481
+ E && h(), S(E);
1482
+ }, B = Number(Ot(Ct(e))), z = t !== null ? _e(t, B) : "—", L = n !== null ? _e(n, B) : "—", G = !o && !a && c !== "" && (t !== null && n !== null), oe = (E) => {
1483
+ const $ = Number(b), R = Number.isFinite($) && $ > 0 ? $ : r, Q = Math.max(s, R + E * i), de = Ni(Q, 2);
1484
+ p(de), x(Q);
1485
1485
  }, k = () => {
1486
- const x = Number(b);
1487
- if (!Number.isFinite(x) || x <= 0) {
1488
- p(Ni(r, 2)), A(r);
1486
+ const E = Number(b);
1487
+ if (!Number.isFinite(E) || E <= 0) {
1488
+ p(Ni(r, 2)), x(r);
1489
1489
  return;
1490
1490
  }
1491
- const $ = Math.max(s, x), R = Ni($, 2);
1492
- p(R), A($);
1493
- }, D = (x) => {
1494
- t === null || n === null || O({ side: x, entryPrice: x === "buy" ? n : t });
1495
- }, M = (x) => {
1491
+ const $ = Math.max(s, E), R = Ni($, 2);
1492
+ p(R), x($);
1493
+ }, D = (E) => {
1494
+ t === null || n === null || O({ side: E, entryPrice: E === "buy" ? n : t });
1495
+ }, M = (E) => {
1496
1496
  if (t === null || n === null || !c)
1497
1497
  return;
1498
1498
  const $ = Number(b), R = Math.max(s, Number.isFinite($) && $ > 0 ? $ : r);
1499
- O({ side: x, entryPrice: x === "buy" ? n : t }), y({
1499
+ O({ side: E, entryPrice: E === "buy" ? n : t }), y({
1500
1500
  login: c,
1501
- side: x,
1501
+ side: E,
1502
1502
  volumeLots: R,
1503
1503
  bid: t,
1504
1504
  ask: n
@@ -1508,7 +1508,7 @@ function su({
1508
1508
  "div",
1509
1509
  {
1510
1510
  className: `web-trading-widget-mini-order${P ? " web-trading-widget-mini-order--expanded" : " web-trading-widget-mini-order--collapsed"}`,
1511
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__row", children: [
1511
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__row", children: [
1512
1512
  /* @__PURE__ */ l(
1513
1513
  "button",
1514
1514
  {
@@ -1519,8 +1519,8 @@ function su({
1519
1519
  children: /* @__PURE__ */ l(uc, { className: "web-trading-widget-icon web-trading-widget-icon--sm", strokeWidth: 2 })
1520
1520
  }
1521
1521
  ),
1522
- P ? /* @__PURE__ */ E(Ye, { children: [
1523
- /* @__PURE__ */ E(
1522
+ P ? /* @__PURE__ */ A(Ye, { children: [
1523
+ /* @__PURE__ */ A(
1524
1524
  "button",
1525
1525
  {
1526
1526
  type: "button",
@@ -1534,7 +1534,7 @@ function su({
1534
1534
  ]
1535
1535
  }
1536
1536
  ),
1537
- /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__volume", children: [
1537
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__volume", children: [
1538
1538
  /* @__PURE__ */ l(
1539
1539
  "button",
1540
1540
  {
@@ -1553,7 +1553,7 @@ function su({
1553
1553
  inputMode: "decimal",
1554
1554
  value: b,
1555
1555
  disabled: !G,
1556
- onChange: (x) => p(x.target.value),
1556
+ onChange: (E) => p(E.target.value),
1557
1557
  onBlur: k,
1558
1558
  className: "web-trading-widget-mini-order__volume-input"
1559
1559
  }
@@ -1570,7 +1570,7 @@ function su({
1570
1570
  }
1571
1571
  )
1572
1572
  ] }),
1573
- /* @__PURE__ */ E(
1573
+ /* @__PURE__ */ A(
1574
1574
  "button",
1575
1575
  {
1576
1576
  type: "button",
@@ -1679,9 +1679,9 @@ function Tc(e) {
1679
1679
  p
1680
1680
  );
1681
1681
  u.current = z, xo(p, z);
1682
- }, A = (I) => {
1682
+ }, x = (I) => {
1683
1683
  if (I.pointerId === T) {
1684
- Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", A), b.removeEventListener("pointercancel", A), f.current = null, d(!1), a(u.current), document.body.style.cursor = "", document.body.style.userSelect = "";
1684
+ Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", x), b.removeEventListener("pointercancel", x), f.current = null, d(!1), a(u.current), document.body.style.cursor = "", document.body.style.userSelect = "";
1685
1685
  try {
1686
1686
  window.localStorage.setItem(t, JSON.stringify(u.current));
1687
1687
  } catch {
@@ -1690,8 +1690,8 @@ function Tc(e) {
1690
1690
  }, P = (I) => {
1691
1691
  I.pointerId === T && (I.preventDefault(), O(I.clientX, I.clientY));
1692
1692
  };
1693
- b.addEventListener("pointermove", P), b.addEventListener("pointerup", A), b.addEventListener("pointercancel", A), f.current = () => {
1694
- Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", A), b.removeEventListener("pointercancel", A), document.body.style.cursor = "", document.body.style.userSelect = "", d(!1);
1693
+ b.addEventListener("pointermove", P), b.addEventListener("pointerup", x), b.addEventListener("pointercancel", x), f.current = () => {
1694
+ Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", x), b.removeEventListener("pointercancel", x), document.body.style.cursor = "", document.body.style.userSelect = "", d(!1);
1695
1695
  };
1696
1696
  },
1697
1697
  [t]
@@ -2763,10 +2763,10 @@ function wi(e, t, n) {
2763
2763
  if (v.endsWith(T, "{}"))
2764
2764
  T = r ? T : T.slice(0, -2), p = h(p, 1);
2765
2765
  else if (v.isArray(p) && Df(p) || (v.isFileList(p) || v.endsWith(T, "[]")) && (g = v.toArray(p)))
2766
- return T = Fc(T), g.forEach(function(O, A) {
2766
+ return T = Fc(T), g.forEach(function(O, x) {
2767
2767
  !(v.isUndefined(O) || O === null) && t.append(
2768
2768
  // eslint-disable-next-line no-nested-ternary
2769
- o === !0 ? Ri([T], A, s) : o === null ? T : T + "[]",
2769
+ o === !0 ? Ri([T], x, s) : o === null ? T : T + "[]",
2770
2770
  f(O)
2771
2771
  );
2772
2772
  }), !1;
@@ -3370,11 +3370,11 @@ const ch = typeof XMLHttpRequest < "u", lh = ch && function(e) {
3370
3370
  request: b
3371
3371
  };
3372
3372
  Hc(
3373
- function(A) {
3374
- n(A), w();
3373
+ function(x) {
3374
+ n(x), w();
3375
3375
  },
3376
- function(A) {
3377
- r(A), w();
3376
+ function(x) {
3377
+ r(x), w();
3378
3378
  },
3379
3379
  C
3380
3380
  ), b = null;
@@ -3625,7 +3625,7 @@ const Zs = "1.18.1", jo = 64 * 1024, { isFunction: Lr } = v, gh = (e) => encodeU
3625
3625
  data: g,
3626
3626
  signal: C,
3627
3627
  cancelToken: O,
3628
- timeout: A,
3628
+ timeout: x,
3629
3629
  onDownloadProgress: P,
3630
3630
  onUploadProgress: I,
3631
3631
  responseType: B,
@@ -3636,11 +3636,11 @@ const Zs = "1.18.1", jo = 64 * 1024, { isFunction: Lr } = v, gh = (e) => encodeU
3636
3636
  maxBodyLength: oe
3637
3637
  } = qc(p);
3638
3638
  const k = v.isNumber(G) && G > -1, D = v.isNumber(oe) && oe > -1, M = (N) => v.hasOwnProp(p, N) ? p[N] : void 0;
3639
- let x = i || fetch;
3639
+ let E = i || fetch;
3640
3640
  B = B ? (B + "").toLowerCase() : "text";
3641
3641
  let $ = dh(
3642
3642
  [C, O && O.toAbortSignal()],
3643
- A
3643
+ x
3644
3644
  ), R = null;
3645
3645
  const Q = $ && $.unsubscribe && (() => {
3646
3646
  $.unsubscribe();
@@ -3739,7 +3739,7 @@ const Zs = "1.18.1", jo = 64 * 1024, { isFunction: Lr } = v, gh = (e) => encodeU
3739
3739
  credentials: Be ? L : void 0
3740
3740
  };
3741
3741
  R = c && new s(T, Se);
3742
- let Le = await (c ? x(R, Y) : x(T, Se));
3742
+ let Le = await (c ? E(R, Y) : E(T, Se));
3743
3743
  const Ne = He.from(Le.headers);
3744
3744
  if (k) {
3745
3745
  const ee = v.toFiniteNumber(Ne.getContentLength());
@@ -4581,7 +4581,7 @@ function Uh({
4581
4581
  hasConfirmedAccount: g,
4582
4582
  needsAccountSelection: C,
4583
4583
  confirmAccountSelection: O,
4584
- placeMarketOrder: A
4584
+ placeMarketOrder: x
4585
4585
  } = r, P = se((k) => k.setDraft), I = se((k) => k.clearDraft), B = fe((k) => k.selectedPositionTicket), z = fe((k) => k.selectedOrderTicket), L = B !== null || z !== null, Y = Number(Ot(Ct(e))), G = Bn(Y);
4586
4586
  J(() => {
4587
4587
  if (g && !L) {
@@ -4615,7 +4615,7 @@ function Uh({
4615
4615
  t
4616
4616
  ]);
4617
4617
  const oe = (k) => {
4618
- A({
4618
+ x({
4619
4619
  symbolTicker: e,
4620
4620
  login: k.login,
4621
4621
  executionMode: "market",
@@ -4634,7 +4634,7 @@ function Uh({
4634
4634
  ask: k.ask
4635
4635
  });
4636
4636
  };
4637
- return /* @__PURE__ */ E(Ye, { children: [
4637
+ return /* @__PURE__ */ A(Ye, { children: [
4638
4638
  /* @__PURE__ */ l(
4639
4639
  lc,
4640
4640
  {
@@ -4866,20 +4866,20 @@ const ns = (e, t, n) => {
4866
4866
  }
4867
4867
  },
4868
4868
  [e]
4869
- ), A = Z(() => {
4869
+ ), x = Z(() => {
4870
4870
  for (const k of qh)
4871
4871
  O(k);
4872
4872
  b.current = {};
4873
4873
  }, [O]), P = Z(
4874
- (k, D, M, x) => {
4875
- const $ = rs(D, x.side), R = Jo(D, {
4876
- side: x.side,
4877
- entryPrice: x.entryPrice,
4874
+ (k, D, M, E) => {
4875
+ const $ = rs(D, E.side), R = Jo(D, {
4876
+ side: E.side,
4877
+ entryPrice: E.entryPrice,
4878
4878
  linePrice: M,
4879
- volumeLots: x.volumeLots
4879
+ volumeLots: E.volumeLots
4880
4880
  });
4881
4881
  k.setProperties({
4882
- text: ea(D, M, x),
4882
+ text: ea(D, M, E),
4883
4883
  linecolor: $,
4884
4884
  textcolor: R,
4885
4885
  showPrice: !0,
@@ -4899,7 +4899,7 @@ const ns = (e, t, n) => {
4899
4899
  }
4900
4900
  if (T.current === k)
4901
4901
  return;
4902
- const x = e.activeChart(), $ = rs(k, M.side), R = Jo(k, {
4902
+ const E = e.activeChart(), $ = rs(k, M.side), R = Jo(k, {
4903
4903
  side: M.side,
4904
4904
  entryPrice: M.entryPrice,
4905
4905
  linePrice: D,
@@ -4907,7 +4907,7 @@ const ns = (e, t, n) => {
4907
4907
  }), Q = ea(k, D, M), de = b.current[k];
4908
4908
  if (de)
4909
4909
  try {
4910
- const ae = x.getShapeById(de);
4910
+ const ae = E.getShapeById(de);
4911
4911
  k === "entry" && Wi(ae);
4912
4912
  const N = (ue = ae.getPoints()[0]) == null ? void 0 : ue.price;
4913
4913
  if (N !== void 0 && Math.abs(N - D) < M.priceStep / 2) {
@@ -4937,7 +4937,7 @@ const ns = (e, t, n) => {
4937
4937
  delete b.current[k];
4938
4938
  }
4939
4939
  try {
4940
- const ae = x.getVisibleRange(), N = await x.createShape(
4940
+ const ae = E.getVisibleRange(), N = await E.createShape(
4941
4941
  { time: ae.from, price: D },
4942
4942
  {
4943
4943
  shape: "horizontal_line",
@@ -4957,19 +4957,19 @@ const ns = (e, t, n) => {
4957
4957
  );
4958
4958
  if (k === "entry")
4959
4959
  try {
4960
- x.getShapeById(N).setProperties(pn);
4960
+ E.getShapeById(N).setProperties(pn);
4961
4961
  } catch {
4962
4962
  }
4963
4963
  if (k === "entry" && !C.current.showEntryLine) {
4964
4964
  try {
4965
- x.removeEntity(N);
4965
+ E.removeEntity(N);
4966
4966
  } catch {
4967
4967
  }
4968
4968
  return;
4969
4969
  }
4970
4970
  if (k === "entry")
4971
4971
  try {
4972
- Wi(x.getShapeById(N));
4972
+ Wi(E.getShapeById(N));
4973
4973
  } catch {
4974
4974
  }
4975
4975
  b.current[k] = N;
@@ -4980,16 +4980,16 @@ const ns = (e, t, n) => {
4980
4980
  ), B = Z(
4981
4981
  async (k) => {
4982
4982
  if (!Xo(e, w.current, n)) {
4983
- A();
4983
+ x();
4984
4984
  return;
4985
4985
  }
4986
4986
  const D = Bi(k.stopLoss), M = Bi(k.takeProfit);
4987
4987
  k.showEntryLine && k.entryPrice !== null ? await I("entry", k.entryPrice, k) : await I("entry", void 0, k), await I("stopLoss", D, k), await I("takeProfit", M, k);
4988
4988
  },
4989
- [e, A, n, I]
4989
+ [e, x, n, I]
4990
4990
  ), z = Z(() => {
4991
- e && (A(), Xo(e, w.current, n) && B(C.current));
4992
- }, [e, A, n, B]), L = pe(z);
4991
+ e && (x(), Xo(e, w.current, n) && B(C.current));
4992
+ }, [e, x, n, B]), L = pe(z);
4993
4993
  J(() => {
4994
4994
  L.current = z;
4995
4995
  }, [z]);
@@ -5007,11 +5007,11 @@ const ns = (e, t, n) => {
5007
5007
  return;
5008
5008
  const k = (D, M) => {
5009
5009
  var Q, de, ue;
5010
- const x = (Q = Object.entries(b.current).find(([, ae]) => ae === D)) == null ? void 0 : Q[0];
5011
- if (!x || !zh(x))
5010
+ const E = (Q = Object.entries(b.current).find(([, ae]) => ae === D)) == null ? void 0 : Q[0];
5011
+ if (!E || !zh(E))
5012
5012
  return;
5013
5013
  const R = e.activeChart().getAllShapes().filter((ae) => ae.name === "horizontal_line").some((ae) => ae.id === D);
5014
- if (x === "entry") {
5014
+ if (E === "entry") {
5015
5015
  if ((M === "move" || M === "points_changed") && R) {
5016
5016
  const ae = C.current;
5017
5017
  if (ae.entryPrice !== null)
@@ -5028,7 +5028,7 @@ const ns = (e, t, n) => {
5028
5028
  return;
5029
5029
  }
5030
5030
  if (M === "remove" && R) {
5031
- T.current = null, x === "stopLoss" && m(""), x === "takeProfit" && h(""), delete b.current[x];
5031
+ T.current = null, E === "stopLoss" && m(""), E === "takeProfit" && h(""), delete b.current[E];
5032
5032
  return;
5033
5033
  }
5034
5034
  if (!(M !== "move" && M !== "points_changed" && !R) && !g.current)
@@ -5036,21 +5036,21 @@ const ns = (e, t, n) => {
5036
5036
  const ae = e.activeChart().getShapeById(D), N = (ue = ae.getPoints()[0]) == null ? void 0 : ue.price;
5037
5037
  if (!Number.isFinite(N) || N <= 0)
5038
5038
  return;
5039
- const X = C.current, ie = x === "stopLoss" ? X.stopLoss : X.takeProfit, Oe = Bi(ie), Be = Oe !== void 0 && Math.abs(Oe - N) < X.priceStep / 2;
5039
+ const X = C.current, ie = E === "stopLoss" ? X.stopLoss : X.takeProfit, Oe = Bi(ie), Be = Oe !== void 0 && Math.abs(Oe - N) < X.priceStep / 2;
5040
5040
  if (M === "points_changed" && R) {
5041
- T.current = x, P(ae, x, N, X), S.current !== null && clearTimeout(S.current), S.current = setTimeout(() => {
5041
+ T.current = E, P(ae, E, N, X), S.current !== null && clearTimeout(S.current), S.current = setTimeout(() => {
5042
5042
  T.current = null;
5043
5043
  const Ne = _e(N, C.current.digits);
5044
- x === "stopLoss" ? m(Ne) : h(Ne);
5044
+ E === "stopLoss" ? m(Ne) : h(Ne);
5045
5045
  }, 120);
5046
5046
  return;
5047
5047
  }
5048
5048
  if (S.current !== null && (clearTimeout(S.current), S.current = null), T.current = null, Be) {
5049
- P(ae, x, N, X);
5049
+ P(ae, E, N, X);
5050
5050
  return;
5051
5051
  }
5052
- const Se = _e(N, X.digits), Le = x === "stopLoss" ? { ...X, stopLoss: Se } : { ...X, takeProfit: Se };
5053
- x === "stopLoss" ? m(Se) : h(Se), P(ae, x, N, Le);
5052
+ const Se = _e(N, X.digits), Le = E === "stopLoss" ? { ...X, stopLoss: Se } : { ...X, takeProfit: Se };
5053
+ E === "stopLoss" ? m(Se) : h(Se), P(ae, E, N, Le);
5054
5054
  } catch {
5055
5055
  T.current = null;
5056
5056
  }
@@ -5076,7 +5076,7 @@ const ns = (e, t, n) => {
5076
5076
  if (!e)
5077
5077
  return;
5078
5078
  if (r === null) {
5079
- A();
5079
+ x();
5080
5080
  return;
5081
5081
  }
5082
5082
  let k = !1;
@@ -5091,7 +5091,7 @@ const ns = (e, t, n) => {
5091
5091
  };
5092
5092
  }, [
5093
5093
  e,
5094
- A,
5094
+ x,
5095
5095
  r,
5096
5096
  i,
5097
5097
  s,
@@ -5106,7 +5106,7 @@ const ns = (e, t, n) => {
5106
5106
  if (!e || r === null)
5107
5107
  return;
5108
5108
  let k = !1, D = null, M = !1;
5109
- const x = () => {
5109
+ const E = () => {
5110
5110
  k || (M = !0, G.current());
5111
5111
  }, $ = () => {
5112
5112
  k || !M || (M = !1, G.current());
@@ -5115,7 +5115,7 @@ const ns = (e, t, n) => {
5115
5115
  e.onChartReady(() => {
5116
5116
  if (!k)
5117
5117
  try {
5118
- D = e.activeChart(), D.onSymbolChanged().subscribe(null, x), D.onDataLoaded().subscribe(null, $);
5118
+ D = e.activeChart(), D.onSymbolChanged().subscribe(null, E), D.onDataLoaded().subscribe(null, $);
5119
5119
  } catch {
5120
5120
  }
5121
5121
  });
@@ -5124,7 +5124,7 @@ const ns = (e, t, n) => {
5124
5124
  return () => {
5125
5125
  if (k = !0, p.current !== null && (clearTimeout(p.current), p.current = null), D)
5126
5126
  try {
5127
- D.onSymbolChanged().unsubscribe(null, x), D.onDataLoaded().unsubscribe(null, $);
5127
+ D.onSymbolChanged().unsubscribe(null, E), D.onDataLoaded().unsubscribe(null, $);
5128
5128
  } catch {
5129
5129
  }
5130
5130
  };
@@ -5200,17 +5200,17 @@ const ns = (e, t, n) => {
5200
5200
  i.current.clear();
5201
5201
  }, [u]), m = Z(
5202
5202
  async (g, C, O) => {
5203
- const A = Fi({
5203
+ const x = Fi({
5204
5204
  side: C.type,
5205
5205
  volumeLots: C.volumeLots,
5206
5206
  profit: C.profit
5207
5207
  }), I = { time: g.getVisibleRange().from, price: C.openPrice }, B = await g.createShape(I, {
5208
5208
  shape: "horizontal_line",
5209
- text: String(A.text),
5209
+ text: String(x.text),
5210
5210
  disableSave: !0,
5211
5211
  lock: !0,
5212
5212
  disableSelection: !0,
5213
- overrides: A
5213
+ overrides: x
5214
5214
  });
5215
5215
  if (O !== s.current) {
5216
5216
  try {
@@ -5221,7 +5221,7 @@ const ns = (e, t, n) => {
5221
5221
  }
5222
5222
  try {
5223
5223
  const z = g.getShapeById(B);
5224
- z.setProperties(A), $i(z);
5224
+ z.setProperties(x), $i(z);
5225
5225
  } catch {
5226
5226
  }
5227
5227
  return B;
@@ -5231,14 +5231,14 @@ const ns = (e, t, n) => {
5231
5231
  async (g, C) => {
5232
5232
  if (!e || C !== s.current)
5233
5233
  return;
5234
- const O = e.activeChart(), A = Fi({
5234
+ const O = e.activeChart(), x = Fi({
5235
5235
  side: g.type,
5236
5236
  volumeLots: g.volumeLots,
5237
5237
  profit: g.profit
5238
5238
  }), P = i.current.get(g.ticket);
5239
5239
  if (P)
5240
5240
  try {
5241
- na(O.getShapeById(P), g.openPrice, A), $i(O.getShapeById(P));
5241
+ na(O.getShapeById(P), g.openPrice, x), $i(O.getShapeById(P));
5242
5242
  return;
5243
5243
  } catch {
5244
5244
  i.current.delete(g.ticket);
@@ -5257,9 +5257,9 @@ const ns = (e, t, n) => {
5257
5257
  async (g, C) => {
5258
5258
  if (!e || g !== s.current)
5259
5259
  return;
5260
- const O = ta(C), A = new Set(O.map((P) => P.ticket));
5260
+ const O = ta(C), x = new Set(O.map((P) => P.ticket));
5261
5261
  for (const P of i.current.keys())
5262
- A.has(P) || u(P);
5262
+ x.has(P) || u(P);
5263
5263
  for (const P of O) {
5264
5264
  if (g !== s.current)
5265
5265
  return;
@@ -5278,15 +5278,15 @@ const ns = (e, t, n) => {
5278
5278
  }
5279
5279
  const C = ta(o);
5280
5280
  for (const O of C) {
5281
- const A = i.current.get(O.ticket);
5282
- if (A)
5281
+ const x = i.current.get(O.ticket);
5282
+ if (x)
5283
5283
  try {
5284
5284
  const P = Fi({
5285
5285
  side: O.type,
5286
5286
  volumeLots: O.volumeLots,
5287
5287
  profit: O.profit
5288
5288
  });
5289
- na(g.getShapeById(A), O.openPrice, P), $i(g.getShapeById(A));
5289
+ na(g.getShapeById(x), O.openPrice, P), $i(g.getShapeById(x));
5290
5290
  } catch {
5291
5291
  i.current.delete(O.ticket);
5292
5292
  }
@@ -5316,11 +5316,11 @@ const ns = (e, t, n) => {
5316
5316
  symbolKey: S.current()
5317
5317
  });
5318
5318
  };
5319
- let A = !1;
5319
+ let x = !1;
5320
5320
  const P = () => {
5321
- A = !0, O();
5321
+ x = !0, O();
5322
5322
  }, I = () => {
5323
- g || !A || (A = !1, T.current({ symbolKey: S.current() }));
5323
+ g || !x || (x = !1, T.current({ symbolKey: S.current() }));
5324
5324
  };
5325
5325
  try {
5326
5326
  e.onChartReady(() => {
@@ -5879,7 +5879,7 @@ function fm(e) {
5879
5879
  return Promise.reject(t.signal.reason);
5880
5880
  if (g == null && S.pages.length)
5881
5881
  return Promise.resolve(S);
5882
- const A = (() => {
5882
+ const x = (() => {
5883
5883
  const z = {
5884
5884
  client: t.client,
5885
5885
  queryKey: t.queryKey,
@@ -5888,7 +5888,7 @@ function fm(e) {
5888
5888
  meta: t.options.meta
5889
5889
  };
5890
5890
  return b(z), z;
5891
- })(), P = await p(A), { maxPages: I } = t.options, B = C ? om : sm;
5891
+ })(), P = await p(x), { maxPages: I } = t.options, B = C ? om : sm;
5892
5892
  return {
5893
5893
  pages: B(S.pages, P, I),
5894
5894
  pageParams: B(S.pageParams, g, I)
@@ -6073,12 +6073,12 @@ var vn, Jt, Tn, ot, Xt, Re, ar, en, Xe, pl, wt, ec, mm = (ec = class extends ml
6073
6073
  });
6074
6074
  }, s = () => {
6075
6075
  const g = dl(this.options, n), O = (() => {
6076
- const A = {
6076
+ const x = {
6077
6077
  client: _(this, Xt),
6078
6078
  queryKey: this.queryKey,
6079
6079
  meta: this.meta
6080
6080
  };
6081
- return i(A), A;
6081
+ return i(x), x;
6082
6082
  })();
6083
6083
  return W(this, en, !1), this.options.persister ? this.options.persister(
6084
6084
  g,
@@ -6592,7 +6592,7 @@ var dr, mt, je, sn, pt, Et, nc, bm = (nc = class extends ml {
6592
6592
  this.execute(this.state.variables);
6593
6593
  }
6594
6594
  async execute(t) {
6595
- var o, a, c, d, u, f, m, h, y, w, b, p, T, S, g, C, O, A;
6595
+ var o, a, c, d, u, f, m, h, y, w, b, p, T, S, g, C, O, x;
6596
6596
  const n = () => {
6597
6597
  me(this, pt, Et).call(this, { type: "continue" });
6598
6598
  }, r = {
@@ -6704,7 +6704,7 @@ var dr, mt, je, sn, pt, Et, nc, bm = (nc = class extends ml {
6704
6704
  Promise.reject(I);
6705
6705
  }
6706
6706
  try {
6707
- await ((A = (O = this.options).onSettled) == null ? void 0 : A.call(
6707
+ await ((x = (O = this.options).onSettled) == null ? void 0 : x.call(
6708
6708
  O,
6709
6709
  void 0,
6710
6710
  P,
@@ -7787,7 +7787,7 @@ function mp({
7787
7787
  const { openMarketPanel: a, setSelectedLogin: c, hasConfirmedAccount: d } = i, u = Or();
7788
7788
  return J(() => (t.current = { open: a, setSelectedLogin: c }, () => {
7789
7789
  t.current = null;
7790
- }), [t, a, c]), /* @__PURE__ */ E(Ye, { children: [
7790
+ }), [t, a, c]), /* @__PURE__ */ A(Ye, { children: [
7791
7791
  d ? /* @__PURE__ */ l(
7792
7792
  cl,
7793
7793
  {
@@ -7853,7 +7853,7 @@ function Ap(e, t) {
7853
7853
  return `${e.replace(/\/$/, "")}/${encodeURIComponent(t)}`;
7854
7854
  }
7855
7855
  function xp() {
7856
- return /* @__PURE__ */ E("colgroup", { children: [
7856
+ return /* @__PURE__ */ A("colgroup", { children: [
7857
7857
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--deal" }),
7858
7858
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--ticket" }),
7859
7859
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--symbol" }),
@@ -7869,7 +7869,7 @@ function xp() {
7869
7869
  }
7870
7870
  function Ep() {
7871
7871
  const { t: e } = Ae();
7872
- return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ E("tr", { className: "web-trading-widget-terminal__head-row", children: [
7872
+ return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ A("tr", { className: "web-trading-widget-terminal__head-row", children: [
7873
7873
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.deal") }),
7874
7874
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.login") }),
7875
7875
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.symbol") }),
@@ -7885,7 +7885,7 @@ function Ep() {
7885
7885
  }
7886
7886
  function Lp({ deal: e, dealActions: t }) {
7887
7887
  const { t: n } = Ae(), r = e.profit > 0 ? "web-trading-widget-text-profit-positive" : e.profit < 0 ? "web-trading-widget-text-profit-negative" : "";
7888
- return /* @__PURE__ */ E("tr", { className: "web-trading-widget-terminal__deals-row", children: [
7888
+ return /* @__PURE__ */ A("tr", { className: "web-trading-widget-terminal__deals-row", children: [
7889
7889
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.deal }),
7890
7890
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.login }),
7891
7891
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.symbol || "—" }),
@@ -7898,7 +7898,7 @@ function Lp({ deal: e, dealActions: t }) {
7898
7898
  ),
7899
7899
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: (e.volume / 1e4).toFixed(2) }),
7900
7900
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.price.toFixed(5) }),
7901
- /* @__PURE__ */ E(
7901
+ /* @__PURE__ */ A(
7902
7902
  "td",
7903
7903
  {
7904
7904
  className: `web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right ${r}`,
@@ -7947,11 +7947,11 @@ function Np({
7947
7947
  () => [...(m == null ? void 0 : m.deals) ?? []].sort((b, p) => p.time - b.time),
7948
7948
  [m == null ? void 0 : m.deals]
7949
7949
  );
7950
- return e ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__deals-wrap", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__body-scroll", children: [
7951
- /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__deals-table", children: [
7950
+ return e ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__deals-wrap", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__body-scroll", children: [
7951
+ /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__deals-table", children: [
7952
7952
  /* @__PURE__ */ l(xp, {}),
7953
7953
  /* @__PURE__ */ l(Ep, {}),
7954
- /* @__PURE__ */ E("tbody", { children: [
7954
+ /* @__PURE__ */ A("tbody", { children: [
7955
7955
  y ? /* @__PURE__ */ l(yp, {}) : null,
7956
7956
  !y && w.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
7957
7957
  "td",
@@ -8194,8 +8194,8 @@ function Wp() {
8194
8194
  let T = 0, S = 0;
8195
8195
  const g = ((C = p[0]) == null ? void 0 : C.login) ?? "";
8196
8196
  for (const O of p) {
8197
- const A = `position-${O.ticket}`;
8198
- m(A, !0);
8197
+ const x = `position-${O.ticket}`;
8198
+ m(x, !0);
8199
8199
  try {
8200
8200
  if (!(await t(O, {
8201
8201
  skipInvalidation: !0
@@ -8207,7 +8207,7 @@ function Wp() {
8207
8207
  } catch {
8208
8208
  S += 1;
8209
8209
  } finally {
8210
- m(A, !1);
8210
+ m(x, !1);
8211
8211
  }
8212
8212
  }
8213
8213
  o(null), T > 0 && g && await r(g), ve(S === 0 ? {
@@ -8296,7 +8296,7 @@ function $p(e, t, n) {
8296
8296
  };
8297
8297
  }
8298
8298
  function vs() {
8299
- return /* @__PURE__ */ E("colgroup", { children: [
8299
+ return /* @__PURE__ */ A("colgroup", { children: [
8300
8300
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--symbol" }),
8301
8301
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--ticket" }),
8302
8302
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--time" }),
@@ -8314,7 +8314,7 @@ function vs() {
8314
8314
  }
8315
8315
  function jp() {
8316
8316
  const { t: e } = Ae();
8317
- return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ E("tr", { className: "web-trading-widget-terminal__head-row", children: [
8317
+ return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ A("tr", { className: "web-trading-widget-terminal__head-row", children: [
8318
8318
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.symbol") }),
8319
8319
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.ticket") }),
8320
8320
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.serverTime") }),
@@ -8341,31 +8341,31 @@ function Vp({
8341
8341
  onScroll: a
8342
8342
  }) {
8343
8343
  const { t: c } = Ae(), d = s > 0 ? "web-trading-widget-text-profit-positive" : s < 0 ? "web-trading-widget-text-profit-negative" : "";
8344
- return /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__stats", children: /* @__PURE__ */ l("div", { ref: o, className: "web-trading-widget-terminal__header-scroll", onScroll: a, children: /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__table", children: [
8344
+ return /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__stats", children: /* @__PURE__ */ l("div", { ref: o, className: "web-trading-widget-terminal__header-scroll", onScroll: a, children: /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__table", children: [
8345
8345
  /* @__PURE__ */ l(vs, {}),
8346
- /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ E("tr", { children: [
8347
- /* @__PURE__ */ l("td", { colSpan: 10, className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__stats-row web-trading-widget-terminal__stats-row--tabular", children: [
8348
- /* @__PURE__ */ E("span", { children: [
8346
+ /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ A("tr", { children: [
8347
+ /* @__PURE__ */ l("td", { colSpan: 10, className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__stats-row web-trading-widget-terminal__stats-row--tabular", children: [
8348
+ /* @__PURE__ */ A("span", { children: [
8349
8349
  c("WebTrading.balance"),
8350
8350
  ": ",
8351
8351
  Nt(e)
8352
8352
  ] }),
8353
- /* @__PURE__ */ E("span", { children: [
8353
+ /* @__PURE__ */ A("span", { children: [
8354
8354
  c("WebTrading.equity"),
8355
8355
  ": ",
8356
8356
  Nt(t)
8357
8357
  ] }),
8358
- /* @__PURE__ */ E("span", { children: [
8358
+ /* @__PURE__ */ A("span", { children: [
8359
8359
  c("WebTrading.margin"),
8360
8360
  ": ",
8361
8361
  Nt(n)
8362
8362
  ] }),
8363
- /* @__PURE__ */ E("span", { children: [
8363
+ /* @__PURE__ */ A("span", { children: [
8364
8364
  c("WebTrading.freeMargin"),
8365
8365
  ": ",
8366
8366
  Nt(r)
8367
8367
  ] }),
8368
- /* @__PURE__ */ E("span", { children: [
8368
+ /* @__PURE__ */ A("span", { children: [
8369
8369
  c("WebTrading.level"),
8370
8370
  ": ",
8371
8371
  i !== void 0 ? `${Nt(i, 2)}%` : "0.00%"
@@ -8390,7 +8390,7 @@ function Hp({
8390
8390
  { id: "trade", label: a("WebTrading.trade") },
8391
8391
  { id: "history", label: a("WebTrading.history") }
8392
8392
  ], d = e === "trade" && (n > 0 || r), u = e === "history";
8393
- return /* @__PURE__ */ E("div", { role: "tablist", "aria-label": a("WebTrading.terminalPanelTabs"), className: "web-trading-widget-terminal__tab-bar", children: [
8393
+ return /* @__PURE__ */ A("div", { role: "tablist", "aria-label": a("WebTrading.terminalPanelTabs"), className: "web-trading-widget-terminal__tab-bar", children: [
8394
8394
  c.map((f) => {
8395
8395
  const m = e === f.id;
8396
8396
  return /* @__PURE__ */ l(
@@ -8406,7 +8406,7 @@ function Hp({
8406
8406
  f.id
8407
8407
  );
8408
8408
  }),
8409
- /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__toolbar-actions", children: [
8409
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__toolbar-actions", children: [
8410
8410
  d ? /* @__PURE__ */ l(
8411
8411
  "button",
8412
8412
  {
@@ -8417,7 +8417,7 @@ function Hp({
8417
8417
  children: a(r ? "WebTrading.closing" : "WebTrading.closeAll")
8418
8418
  }
8419
8419
  ) : null,
8420
- u ? /* @__PURE__ */ E(
8420
+ u ? /* @__PURE__ */ A(
8421
8421
  "button",
8422
8422
  {
8423
8423
  type: "button",
@@ -8441,7 +8441,7 @@ function Hp({
8441
8441
  }
8442
8442
  function zp({ position: e, isSelected: t, isClosing: n, onSelect: r, onClose: i }) {
8443
8443
  const { t: s } = Ae(), o = e.type === "buy" ? "web-trading-widget-text-buy" : "web-trading-widget-text-sell", a = e.profit > 0 ? "web-trading-widget-text-profit-positive" : e.profit < 0 ? "web-trading-widget-text-profit-negative" : "";
8444
- return /* @__PURE__ */ E(
8444
+ return /* @__PURE__ */ A(
8445
8445
  "tr",
8446
8446
  {
8447
8447
  className: `web-trading-widget-terminal__row${t ? " web-trading-widget-terminal__row--selected" : ""}`,
@@ -8479,7 +8479,7 @@ function zp({ position: e, isSelected: t, isClosing: n, onSelect: r, onClose: i
8479
8479
  }
8480
8480
  function qp({ order: e, isSelected: t, isDeleting: n, onSelect: r, onDelete: i }) {
8481
8481
  const { t: s } = Ae(), o = e.side === "buy" ? "web-trading-widget-text-buy" : "web-trading-widget-text-sell";
8482
- return /* @__PURE__ */ E(
8482
+ return /* @__PURE__ */ A(
8483
8483
  "tr",
8484
8484
  {
8485
8485
  className: `web-trading-widget-terminal__row${t ? " web-trading-widget-terminal__row--selected" : ""}`,
@@ -8489,7 +8489,7 @@ function qp({ order: e, isSelected: t, isDeleting: n, onSelect: r, onDelete: i }
8489
8489
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.ticket }),
8490
8490
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: e.time }),
8491
8491
  /* @__PURE__ */ l("td", { className: `web-trading-widget-terminal__cell web-trading-widget-terminal__cell--capitalize ${o}`, children: e.typeLabel }),
8492
- /* @__PURE__ */ E("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: [
8492
+ /* @__PURE__ */ A("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: [
8493
8493
  e.volumeLots.toFixed(2),
8494
8494
  " / ",
8495
8495
  e.volumeFilledLots.toFixed(2)
@@ -8531,7 +8531,7 @@ function xl({
8531
8531
  } } : m, b = fe((V) => V.selectedLogin), p = fe((V) => V.selectedPositionTicket), T = fe((V) => V.selectedOrderTicket), S = fe((V) => V.setSelectedPositionTicket), g = fe((V) => V.setSelectedOrderTicket), { isLoading: C } = kl(
8532
8532
  b,
8533
8533
  s
8534
- ), O = fe((V) => V.positions), A = fe((V) => V.orders), { closePosition: P, closeAllPositions: I, deleteOrder: B, isClosingAll: z, isRowBusy: L } = Wp(), Y = sp(), G = ct(), oe = Mm({
8534
+ ), O = fe((V) => V.positions), x = fe((V) => V.orders), { closePosition: P, closeAllPositions: I, deleteOrder: B, isClosingAll: z, isRowBusy: L } = Wp(), Y = sp(), G = ct(), oe = Mm({
8535
8535
  predicate: (V) => {
8536
8536
  const ke = V.queryKey;
8537
8537
  return b ? (ke[0] === Pr || ke[0] === kr) && ke[1] === G.baseUrl && ke[2] === b : !1;
@@ -8540,22 +8540,22 @@ function xl({
8540
8540
  () => b ? O.filter((V) => V.login === b) : O,
8541
8541
  [O, b]
8542
8542
  ), M = we(
8543
- () => b ? A.filter((V) => V.login === b) : A,
8544
- [A, b]
8545
- ), x = we(() => {
8543
+ () => b ? x.filter((V) => V.login === b) : x,
8544
+ [x, b]
8545
+ ), E = we(() => {
8546
8546
  const V = u.find((ke) => ke.login === b);
8547
8547
  return (V == null ? void 0 : V.tradeStat) ?? null;
8548
8548
  }, [u, b]), $ = we(
8549
8549
  () => D.map((V) => V.ticket).sort().join("|"),
8550
8550
  [D]
8551
- ), R = we(() => x ? `${x.balance}:${x.credit ?? 0}:${x.equity}:${x.margin}|${$}` : "", [x, $]), Q = we(() => {
8552
- if (!x || D.length === 0)
8551
+ ), R = we(() => E ? `${E.balance}:${E.credit ?? 0}:${E.equity}:${E.margin}|${$}` : "", [E, $]), Q = we(() => {
8552
+ if (!E || D.length === 0)
8553
8553
  return 0;
8554
8554
  const V = Al(D);
8555
- return x.equity - x.balance - (x.credit ?? 0) - V;
8555
+ return E.equity - E.balance - (E.credit ?? 0) - V;
8556
8556
  }, [R]), de = we(
8557
- () => $p(x, D, Q),
8558
- [x, D, Q]
8557
+ () => $p(E, D, Q),
8558
+ [E, D, Q]
8559
8559
  ), ue = D.length === 0 && M.length === 0, ae = pe(null), N = pe(null), X = pe(null), ie = Z(() => {
8560
8560
  I(D);
8561
8561
  }, [I, D]), Oe = Z(() => {
@@ -8582,9 +8582,9 @@ function xl({
8582
8582
  const We = V === "header" ? ke.scrollLeft : V === "body" ? ee.scrollLeft : (Pe == null ? void 0 : Pe.scrollLeft) ?? 0;
8583
8583
  V !== "header" && (ke.scrollLeft = We), V !== "body" && (ee.scrollLeft = We), Pe && V !== "footer" && (Pe.scrollLeft = We);
8584
8584
  }, []);
8585
- return /* @__PURE__ */ E(Ye, { children: [
8585
+ return /* @__PURE__ */ A(Ye, { children: [
8586
8586
  !e && y ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal-resize-overlay", "aria-hidden": !0 }) : null,
8587
- /* @__PURE__ */ E(
8587
+ /* @__PURE__ */ A(
8588
8588
  "div",
8589
8589
  {
8590
8590
  className: `web-trading-widget-terminal${e ? " web-trading-widget-terminal--embedded" : ""}`,
@@ -8616,16 +8616,16 @@ function xl({
8616
8616
  onRefetchDeals: Oe
8617
8617
  }
8618
8618
  ),
8619
- a === "trade" ? /* @__PURE__ */ E(Ye, { children: [
8620
- /* @__PURE__ */ l("div", { ref: ae, className: "web-trading-widget-terminal__header-scroll", onScroll: () => Ne("header"), children: /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__table", children: [
8619
+ a === "trade" ? /* @__PURE__ */ A(Ye, { children: [
8620
+ /* @__PURE__ */ l("div", { ref: ae, className: "web-trading-widget-terminal__header-scroll", onScroll: () => Ne("header"), children: /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__table", children: [
8621
8621
  /* @__PURE__ */ l(vs, {}),
8622
8622
  /* @__PURE__ */ l(jp, {})
8623
8623
  ] }) }),
8624
- /* @__PURE__ */ l("div", { ref: N, className: "web-trading-widget-terminal__body-scroll", onScroll: () => Ne("body"), children: /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__table", children: [
8624
+ /* @__PURE__ */ l("div", { ref: N, className: "web-trading-widget-terminal__body-scroll", onScroll: () => Ne("body"), children: /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__table", children: [
8625
8625
  /* @__PURE__ */ l(vs, {}),
8626
- /* @__PURE__ */ E("tbody", { children: [
8626
+ /* @__PURE__ */ A("tbody", { children: [
8627
8627
  k && ue ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: 13, className: "web-trading-widget-terminal__empty-cell", children: o("WebTrading.loading") }) }) : null,
8628
- !k && ue ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: 13, className: "web-trading-widget-terminal__empty-cell", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__empty-inner", children: [
8628
+ !k && ue ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: 13, className: "web-trading-widget-terminal__empty-cell", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__empty-inner", children: [
8629
8629
  /* @__PURE__ */ l("p", { className: "web-trading-widget-terminal__empty-text", children: o("WebTrading.noPositions") }),
8630
8630
  r ? /* @__PURE__ */ l("button", { type: "button", onClick: r, className: "web-trading-widget-terminal__create-btn", children: o("WebTrading.createNewOrder") }) : null
8631
8631
  ] }) }) }) : null,
@@ -8769,8 +8769,8 @@ function Ll({
8769
8769
  ), y = m.length + h.length, w = () => {
8770
8770
  s(!1), t == null || t();
8771
8771
  };
8772
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-news-orders-overlay-root", children: [
8773
- /* @__PURE__ */ E(
8772
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-news-orders-overlay-root", children: [
8773
+ /* @__PURE__ */ A(
8774
8774
  "button",
8775
8775
  {
8776
8776
  type: "button",
@@ -8785,7 +8785,7 @@ function Ll({
8785
8785
  ]
8786
8786
  }
8787
8787
  ),
8788
- i ? /* @__PURE__ */ l(Ye, { children: /* @__PURE__ */ E("div", { className: "web-trading-widget-news-orders__panel", style: { height: o }, children: [
8788
+ i ? /* @__PURE__ */ l(Ye, { children: /* @__PURE__ */ A("div", { className: "web-trading-widget-news-orders__panel", style: { height: o }, children: [
8789
8789
  a ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal-resize-overlay", "aria-hidden": !0 }) : null,
8790
8790
  /* @__PURE__ */ l("div", { className: "web-trading-widget-news-orders__panel-resize-bar-wrap", children: /* @__PURE__ */ l(
8791
8791
  "div",
@@ -8801,7 +8801,7 @@ function Ll({
8801
8801
  children: /* @__PURE__ */ l(dc, { className: "web-trading-widget-icon web-trading-widget-icon--sm web-trading-widget-terminal__resize-icon" })
8802
8802
  }
8803
8803
  ) }),
8804
- /* @__PURE__ */ E("div", { className: "web-trading-widget-news-orders__panel-header", children: [
8804
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-news-orders__panel-header", children: [
8805
8805
  /* @__PURE__ */ l("h2", { className: "web-trading-widget-news-orders__panel-title", children: r("WebTrading.terminal") }),
8806
8806
  /* @__PURE__ */ l(
8807
8807
  "button",
@@ -8850,8 +8850,8 @@ function yt({
8850
8850
  children: r,
8851
8851
  className: i
8852
8852
  }) {
8853
- return /* @__PURE__ */ E("div", { className: _t("web-trading-widget-market-panel__accordion-item", i), children: [
8854
- /* @__PURE__ */ E(
8853
+ return /* @__PURE__ */ A("div", { className: _t("web-trading-widget-market-panel__accordion-item", i), children: [
8854
+ /* @__PURE__ */ A(
8855
8855
  "button",
8856
8856
  {
8857
8857
  type: "button",
@@ -8952,11 +8952,11 @@ function Ee({
8952
8952
  T(P);
8953
8953
  }, O = (P) => {
8954
8954
  f(Yp(P, s));
8955
- }, A = () => {
8955
+ }, x = () => {
8956
8956
  c || (h(!1), T(""));
8957
8957
  };
8958
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-stepper", children: [
8959
- /* @__PURE__ */ E("div", { className: "web-trading-widget-stepper__header", children: [
8958
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-stepper", children: [
8959
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-stepper__header", children: [
8960
8960
  /* @__PURE__ */ l("span", { className: "web-trading-widget-stepper__label", children: e }),
8961
8961
  d && w ? /* @__PURE__ */ l(
8962
8962
  "button",
@@ -8965,12 +8965,12 @@ function Ee({
8965
8965
  "aria-label": `Clear ${e}`,
8966
8966
  className: "web-trading-widget-stepper__clear",
8967
8967
  disabled: c,
8968
- onClick: A,
8968
+ onClick: x,
8969
8969
  children: /* @__PURE__ */ l(qt, { className: "web-trading-widget-icon web-trading-widget-icon--xs" })
8970
8970
  }
8971
8971
  ) : null
8972
8972
  ] }),
8973
- /* @__PURE__ */ E("div", { className: `web-trading-widget-stepper__control${c ? " web-trading-widget-stepper__control--disabled" : ""}`, children: [
8973
+ /* @__PURE__ */ A("div", { className: `web-trading-widget-stepper__control${c ? " web-trading-widget-stepper__control--disabled" : ""}`, children: [
8974
8974
  /* @__PURE__ */ l(
8975
8975
  "button",
8976
8976
  {
@@ -9027,7 +9027,7 @@ function eg({
9027
9027
  onClose: f,
9028
9028
  onPlaceOrder: m
9029
9029
  }) {
9030
- const { t: h } = Ae(), [y, w] = H("market"), [b, p] = H(String(r)), [T, S] = H(""), [g, C] = H(""), O = se((te) => te.stopLoss), A = se((te) => te.takeProfit), P = se((te) => te.setStopLoss), I = se((te) => te.setTakeProfit), B = se((te) => te.setVolumeLots), z = se((te) => te.setOrderSide), [L, Y] = H(""), [G, oe] = H(qe.GTC), [k, D] = H(""), [M, x] = H(""), [$, R] = H(() => new Set(Xp)), Q = Number(Ot(Ct(e))), de = Bn(Q), ue = Vs(t, n), ae = t !== null ? _e(t, Q) : "—", N = n !== null ? _e(n, Q) : "—", X = pi(y), ie = pc(y), Oe = mi(y), Be = h(Jr[y]), Se = !X && Oe.orderType !== null && Oe.orderType % 2 === 1, Le = we(() => ue !== null ? ue : t ?? n, [n, t, ue]), Ne = (te) => {
9030
+ const { t: h } = Ae(), [y, w] = H("market"), [b, p] = H(String(r)), [T, S] = H(""), [g, C] = H(""), O = se((te) => te.stopLoss), x = se((te) => te.takeProfit), P = se((te) => te.setStopLoss), I = se((te) => te.setTakeProfit), B = se((te) => te.setVolumeLots), z = se((te) => te.setOrderSide), [L, Y] = H(""), [G, oe] = H(qe.GTC), [k, D] = H(""), [M, E] = H(""), [$, R] = H(() => new Set(Xp)), Q = Number(Ot(Ct(e))), de = Bn(Q), ue = Vs(t, n), ae = t !== null ? _e(t, Q) : "—", N = n !== null ? _e(n, Q) : "—", X = pi(y), ie = pc(y), Oe = mi(y), Be = h(Jr[y]), Se = !X && Oe.orderType !== null && Oe.orderType % 2 === 1, Le = we(() => ue !== null ? ue : t ?? n, [n, t, ue]), Ne = (te) => {
9031
9031
  R((rt) => {
9032
9032
  const At = new Set(rt);
9033
9033
  return At.has(te) ? At.delete(te) : At.add(te), At;
@@ -9050,7 +9050,7 @@ function eg({
9050
9050
  orderType: At,
9051
9051
  volumeLots: rt,
9052
9052
  stopLoss: O,
9053
- takeProfit: A,
9053
+ takeProfit: x,
9054
9054
  priceOrder: T,
9055
9055
  priceTrigger: g,
9056
9056
  comment: L,
@@ -9061,8 +9061,8 @@ function eg({
9061
9061
  ask: n
9062
9062
  });
9063
9063
  }, We = t !== null && n !== null, nt = X || Ue(T) !== void 0, hn = !ie || Ue(g) !== void 0, Vn = X || yi(G, k, M), dt = !o && !a && c !== "" && We && nt && hn && Vn, ki = !X && Ws(G), Oi = !X && $s(G);
9064
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel", children: [
9065
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__header", children: [
9064
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel", children: [
9065
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__header", children: [
9066
9066
  /* @__PURE__ */ l(
9067
9067
  "select",
9068
9068
  {
@@ -9073,7 +9073,7 @@ function eg({
9073
9073
  children: Zr.map((te) => /* @__PURE__ */ l("option", { value: te.mode, children: h(Jr[te.mode]) }, te.mode))
9074
9074
  }
9075
9075
  ),
9076
- d ? null : /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__header-actions", children: [
9076
+ d ? null : /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__header-actions", children: [
9077
9077
  /* @__PURE__ */ l(
9078
9078
  "button",
9079
9079
  {
@@ -9096,7 +9096,7 @@ function eg({
9096
9096
  )
9097
9097
  ] })
9098
9098
  ] }),
9099
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__accordion", children: [
9099
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__accordion", children: [
9100
9100
  /* @__PURE__ */ l(
9101
9101
  yt,
9102
9102
  {
@@ -9122,7 +9122,7 @@ function eg({
9122
9122
  title: h("WebTrading.orderPrice"),
9123
9123
  isOpen: $.has("order-price"),
9124
9124
  onToggle: () => Ne("order-price"),
9125
- children: ie ? /* @__PURE__ */ E(Ye, { children: [
9125
+ children: ie ? /* @__PURE__ */ A(Ye, { children: [
9126
9126
  /* @__PURE__ */ l(
9127
9127
  Ee,
9128
9128
  {
@@ -9167,7 +9167,7 @@ function eg({
9167
9167
  title: h("WebTrading.riskManagement"),
9168
9168
  isOpen: $.has("risk-management"),
9169
9169
  onToggle: () => Ne("risk-management"),
9170
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9170
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9171
9171
  /* @__PURE__ */ l(
9172
9172
  Ee,
9173
9173
  {
@@ -9185,7 +9185,7 @@ function eg({
9185
9185
  Ee,
9186
9186
  {
9187
9187
  label: h("WebTrading.takeProfit"),
9188
- value: A,
9188
+ value: x,
9189
9189
  onChange: I,
9190
9190
  step: de,
9191
9191
  decimals: Q,
@@ -9197,7 +9197,7 @@ function eg({
9197
9197
  ] })
9198
9198
  }
9199
9199
  ),
9200
- X ? null : /* @__PURE__ */ E(
9200
+ X ? null : /* @__PURE__ */ A(
9201
9201
  yt,
9202
9202
  {
9203
9203
  title: h("WebTrading.expiration"),
@@ -9214,7 +9214,7 @@ function eg({
9214
9214
  children: gc.map((te) => /* @__PURE__ */ l("option", { value: String(te.value), children: h(yc[te.value]) }, te.value))
9215
9215
  }
9216
9216
  ),
9217
- ki ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9217
+ ki ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9218
9218
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: h("WebTrading.expirationTime") }),
9219
9219
  /* @__PURE__ */ l(
9220
9220
  cn,
@@ -9225,14 +9225,14 @@ function eg({
9225
9225
  }
9226
9226
  )
9227
9227
  ] }) : null,
9228
- Oi ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9228
+ Oi ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9229
9229
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: h("WebTrading.expirationDay") }),
9230
9230
  /* @__PURE__ */ l(
9231
9231
  cn,
9232
9232
  {
9233
9233
  type: "date",
9234
9234
  value: M,
9235
- onChange: (te) => x(te.target.value)
9235
+ onChange: (te) => E(te.target.value)
9236
9236
  }
9237
9237
  )
9238
9238
  ] }) : null
@@ -9249,12 +9249,12 @@ function eg({
9249
9249
  }
9250
9250
  )
9251
9251
  ] }),
9252
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__footer", children: [
9253
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__quotes", children: [
9252
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__footer", children: [
9253
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__quotes", children: [
9254
9254
  /* @__PURE__ */ l("span", { children: ae }),
9255
9255
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__quotes-ask", children: N })
9256
9256
  ] }),
9257
- X ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__actions", children: [
9257
+ X ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__actions", children: [
9258
9258
  /* @__PURE__ */ l(
9259
9259
  "button",
9260
9260
  {
@@ -9299,7 +9299,7 @@ function eg({
9299
9299
  }
9300
9300
  function Nl({ confirmation: e, symbolTicker: t, onDismiss: n }) {
9301
9301
  const { t: r } = Ae(), i = Number(Ot(Ct(t))), s = _e(e.price, i), o = e.side === "sell" ? r("WebTrading.sell") : r("WebTrading.buy"), a = hi(e.symbol || gi(t));
9302
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-confirmation", children: [
9302
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-confirmation", children: [
9303
9303
  /* @__PURE__ */ l("div", { className: "web-trading-widget-confirmation__close-row", children: /* @__PURE__ */ l(
9304
9304
  "button",
9305
9305
  {
@@ -9310,9 +9310,9 @@ function Nl({ confirmation: e, symbolTicker: t, onDismiss: n }) {
9310
9310
  children: /* @__PURE__ */ l(qt, { className: "web-trading-widget-icon web-trading-widget-icon--md" })
9311
9311
  }
9312
9312
  ) }),
9313
- /* @__PURE__ */ E("div", { className: "web-trading-widget-confirmation__body", children: [
9314
- /* @__PURE__ */ E("p", { className: "web-trading-widget-confirmation__summary", children: [
9315
- /* @__PURE__ */ E("span", { className: "web-trading-widget-confirmation__ticket", children: [
9313
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-confirmation__body", children: [
9314
+ /* @__PURE__ */ A("p", { className: "web-trading-widget-confirmation__summary", children: [
9315
+ /* @__PURE__ */ A("span", { className: "web-trading-widget-confirmation__ticket", children: [
9316
9316
  "#",
9317
9317
  e.ticket
9318
9318
  ] }),
@@ -9353,7 +9353,7 @@ function Dl({
9353
9353
  order: e,
9354
9354
  onClose: t
9355
9355
  }) {
9356
- const { t: n } = Ae(), { deleteOrder: r, modifyOrder: i } = Pi(), s = fe((N) => N.removeOrder), o = fe((N) => N.liveQuotes), [a, c] = H(String(e.volumeLots)), [d, u] = H(String(e.orderPrice)), [f, m] = H(e.priceTrigger !== void 0 ? String(e.priceTrigger) : ""), h = se((N) => N.stopLoss), y = se((N) => N.takeProfit), w = se((N) => N.setStopLoss), b = se((N) => N.setTakeProfit), p = se((N) => N.setDraft), [T, S] = H(e.comment), [g, C] = H(!1), [O, A] = H(!1), P = Bn(e.digits), I = Ie(e.symbol).toUpperCase(), B = o[I], z = (B == null ? void 0 : B.bid) ?? e.marketBid ?? null, L = (B == null ? void 0 : B.ask) ?? e.marketAsk ?? null, Y = z !== null ? _e(z, e.digits) : "—", G = L !== null ? _e(L, e.digits) : "—", oe = we(() => e.orderPrice > 0 ? e.orderPrice : Vs(z, L) ?? z ?? L, [L, z, e.orderPrice]);
9356
+ const { t: n } = Ae(), { deleteOrder: r, modifyOrder: i } = Pi(), s = fe((N) => N.removeOrder), o = fe((N) => N.liveQuotes), [a, c] = H(String(e.volumeLots)), [d, u] = H(String(e.orderPrice)), [f, m] = H(e.priceTrigger !== void 0 ? String(e.priceTrigger) : ""), h = se((N) => N.stopLoss), y = se((N) => N.takeProfit), w = se((N) => N.setStopLoss), b = se((N) => N.setTakeProfit), p = se((N) => N.setDraft), [T, S] = H(e.comment), [g, C] = H(!1), [O, x] = H(!1), P = Bn(e.digits), I = Ie(e.symbol).toUpperCase(), B = o[I], z = (B == null ? void 0 : B.bid) ?? e.marketBid ?? null, L = (B == null ? void 0 : B.ask) ?? e.marketAsk ?? null, Y = z !== null ? _e(z, e.digits) : "—", G = L !== null ? _e(L, e.digits) : "—", oe = we(() => e.orderPrice > 0 ? e.orderPrice : Vs(z, L) ?? z ?? L, [L, z, e.orderPrice]);
9357
9357
  J(() => {
9358
9358
  p({
9359
9359
  source: "order",
@@ -9378,7 +9378,7 @@ function Dl({
9378
9378
  P,
9379
9379
  p
9380
9380
  ]);
9381
- const k = Bs(e.orderType), D = e.volumeLots, M = Number(d) || e.orderPrice, x = Ue(f), $ = g || O, Q = (M !== e.orderPrice || (k ? x !== e.priceTrigger : !1) || Zn(Ue(h)) !== Zn(e.stopLoss) || Zn(Ue(y)) !== Zn(e.takeProfit) || T.trim() !== e.comment.trim()) && (!k || x !== void 0 && Number.isFinite(M) && M > 0), de = we(() => n("WebTrading.deleteOrderDetail", {
9381
+ const k = Bs(e.orderType), D = e.volumeLots, M = Number(d) || e.orderPrice, E = Ue(f), $ = g || O, Q = (M !== e.orderPrice || (k ? E !== e.priceTrigger : !1) || Zn(Ue(h)) !== Zn(e.stopLoss) || Zn(Ue(y)) !== Zn(e.takeProfit) || T.trim() !== e.comment.trim()) && (!k || E !== void 0 && Number.isFinite(M) && M > 0), de = we(() => n("WebTrading.deleteOrderDetail", {
9382
9382
  ticket: e.ticket,
9383
9383
  typeLabel: e.typeLabel,
9384
9384
  volume: D.toFixed(2),
@@ -9397,7 +9397,7 @@ function Dl({
9397
9397
  const N = await i(e, {
9398
9398
  volumeLots: D,
9399
9399
  priceOrder: M,
9400
- priceTrigger: k ? x : void 0,
9400
+ priceTrigger: k ? E : void 0,
9401
9401
  stopLoss: va(h, e.stopLoss),
9402
9402
  takeProfit: va(y, e.takeProfit),
9403
9403
  comment: T.trim() || "order modify"
@@ -9419,7 +9419,7 @@ function Dl({
9419
9419
  C(!1);
9420
9420
  }
9421
9421
  }, ae = async () => {
9422
- A(!0);
9422
+ x(!0);
9423
9423
  try {
9424
9424
  const N = await r(e);
9425
9425
  if (!N.success) {
@@ -9436,12 +9436,12 @@ function Dl({
9436
9436
  const X = N instanceof Error ? N.message : n("WebTrading.failedDeleteOrder");
9437
9437
  ve({ variant: "destructive", description: X });
9438
9438
  } finally {
9439
- A(!1);
9439
+ x(!1);
9440
9440
  }
9441
9441
  };
9442
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel", children: [
9443
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__header", children: [
9444
- /* @__PURE__ */ E("p", { className: `web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--${e.side}`, children: [
9442
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel", children: [
9443
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__header", children: [
9444
+ /* @__PURE__ */ A("p", { className: `web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--${e.side}`, children: [
9445
9445
  "#",
9446
9446
  e.ticket,
9447
9447
  " ",
@@ -9453,7 +9453,7 @@ function Dl({
9453
9453
  " ",
9454
9454
  e.displaySymbol,
9455
9455
  " ",
9456
- k && x !== void 0 ? `${Mr(x, e.digits)} / ${Mr(M, e.digits)}` : Mr(M, e.digits)
9456
+ k && E !== void 0 ? `${Mr(E, e.digits)} / ${Mr(M, e.digits)}` : Mr(M, e.digits)
9457
9457
  ] }),
9458
9458
  /* @__PURE__ */ l(
9459
9459
  "button",
@@ -9466,9 +9466,9 @@ function Dl({
9466
9466
  }
9467
9467
  )
9468
9468
  ] }),
9469
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__body", children: [
9469
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__body", children: [
9470
9470
  /* @__PURE__ */ l(Ee, { label: n("WebTrading.lots"), value: a, onChange: c, step: 0.01, min: 0.01, decimals: 2, disabled: !0 }),
9471
- k ? /* @__PURE__ */ E(Ye, { children: [
9471
+ k ? /* @__PURE__ */ A(Ye, { children: [
9472
9472
  /* @__PURE__ */ l(
9473
9473
  Ee,
9474
9474
  {
@@ -9502,7 +9502,7 @@ function Dl({
9502
9502
  basePrice: oe
9503
9503
  }
9504
9504
  ),
9505
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9505
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9506
9506
  /* @__PURE__ */ l(
9507
9507
  Ee,
9508
9508
  {
@@ -9530,7 +9530,7 @@ function Dl({
9530
9530
  }
9531
9531
  )
9532
9532
  ] }),
9533
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9533
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9534
9534
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: n("WebTrading.comment") }),
9535
9535
  /* @__PURE__ */ l(cn, { value: T, onChange: (N) => S(N.target.value) })
9536
9536
  ] }),
@@ -9584,7 +9584,7 @@ function Rl({
9584
9584
  position: e,
9585
9585
  onClose: t
9586
9586
  }) {
9587
- const { t: n } = Ae(), { closePosition: r, modifyPosition: i } = Pi(), s = fe((k) => k.removePosition), o = fe((k) => k.liveQuotes), [a, c] = H(String(e.volumeLots)), d = se((k) => k.stopLoss), u = se((k) => k.takeProfit), f = se((k) => k.setStopLoss), m = se((k) => k.setTakeProfit), h = se((k) => k.setDraft), [y, w] = H(!1), [b, p] = H(!1), T = Bn(e.digits), S = Ie(e.symbol).toUpperCase(), g = o[S], C = (g == null ? void 0 : g.bid) ?? e.marketBid ?? null, O = (g == null ? void 0 : g.ask) ?? e.marketAsk ?? null, A = C !== null ? _e(C, e.digits) : "—", P = O !== null ? _e(O, e.digits) : "—";
9587
+ const { t: n } = Ae(), { closePosition: r, modifyPosition: i } = Pi(), s = fe((k) => k.removePosition), o = fe((k) => k.liveQuotes), [a, c] = H(String(e.volumeLots)), d = se((k) => k.stopLoss), u = se((k) => k.takeProfit), f = se((k) => k.setStopLoss), m = se((k) => k.setTakeProfit), h = se((k) => k.setDraft), [y, w] = H(!1), [b, p] = H(!1), T = Bn(e.digits), S = Ie(e.symbol).toUpperCase(), g = o[S], C = (g == null ? void 0 : g.bid) ?? e.marketBid ?? null, O = (g == null ? void 0 : g.ask) ?? e.marketAsk ?? null, x = C !== null ? _e(C, e.digits) : "—", P = O !== null ? _e(O, e.digits) : "—";
9588
9588
  J(() => {
9589
9589
  h({
9590
9590
  source: "position",
@@ -9665,9 +9665,9 @@ function Rl({
9665
9665
  w(!1);
9666
9666
  }
9667
9667
  };
9668
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel", children: [
9669
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__header", children: [
9670
- /* @__PURE__ */ E("p", { className: "web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--position", children: [
9668
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel", children: [
9669
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__header", children: [
9670
+ /* @__PURE__ */ A("p", { className: "web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--position", children: [
9671
9671
  "#",
9672
9672
  e.ticket,
9673
9673
  " ",
@@ -9690,13 +9690,13 @@ function Rl({
9690
9690
  }
9691
9691
  )
9692
9692
  ] }),
9693
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__body", children: [
9693
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__body", children: [
9694
9694
  /* @__PURE__ */ l(Ee, { label: n("WebTrading.lots"), value: a, onChange: c, step: 0.01, min: 0.01, decimals: 2, disabled: !0 }),
9695
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9695
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9696
9696
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: n("WebTrading.price") }),
9697
9697
  /* @__PURE__ */ l(cn, { readOnly: !0, disabled: !0, value: Ur(e.openPrice, e.digits), className: "web-trading-widget-detail-panel__input-muted" })
9698
9698
  ] }),
9699
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9699
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9700
9700
  /* @__PURE__ */ l(
9701
9701
  Ee,
9702
9702
  {
@@ -9706,7 +9706,7 @@ function Rl({
9706
9706
  step: T,
9707
9707
  decimals: e.digits,
9708
9708
  basePrice: C,
9709
- placeholder: A,
9709
+ placeholder: x,
9710
9710
  clearable: !0
9711
9711
  }
9712
9712
  ),
@@ -9724,7 +9724,7 @@ function Rl({
9724
9724
  }
9725
9725
  )
9726
9726
  ] }),
9727
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9727
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9728
9728
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: n("WebTrading.comment") }),
9729
9729
  /* @__PURE__ */ l(
9730
9730
  cn,
@@ -9774,7 +9774,7 @@ function Pa({
9774
9774
  hasConfirmedAccount: f,
9775
9775
  dismissConfirmation: m,
9776
9776
  placeMarketOrder: h
9777
- } = t, y = fe((P) => P.positions), w = fe((P) => P.orders), b = fe((P) => P.selectedPositionTicket), p = fe((P) => P.selectedOrderTicket), T = fe((P) => P.setSelectedPositionTicket), S = fe((P) => P.setSelectedOrderTicket), g = b !== null ? y.find((P) => P.ticket === b) ?? null : null, C = p !== null ? w.find((P) => P.ticket === p) ?? null : null, O = i !== null, A = Z(
9777
+ } = t, y = fe((P) => P.positions), w = fe((P) => P.orders), b = fe((P) => P.selectedPositionTicket), p = fe((P) => P.selectedOrderTicket), T = fe((P) => P.setSelectedPositionTicket), S = fe((P) => P.setSelectedOrderTicket), g = b !== null ? y.find((P) => P.ticket === b) ?? null : null, C = p !== null ? w.find((P) => P.ticket === p) ?? null : null, O = i !== null, x = Z(
9778
9778
  (P) => {
9779
9779
  h({
9780
9780
  symbolTicker: e,
@@ -9810,7 +9810,7 @@ function Pa({
9810
9810
  isSubmitting: s,
9811
9811
  isAccountsLoading: u,
9812
9812
  selectedLogin: d,
9813
- onPlaceOrder: A
9813
+ onPlaceOrder: x
9814
9814
  }
9815
9815
  ) : /* @__PURE__ */ l("div", { className: "web-trading-widget-side-panel__empty", children: n("WebTrading.selectAccountToTrade") });
9816
9816
  }
@@ -9846,8 +9846,8 @@ function ng({
9846
9846
  "aside",
9847
9847
  {
9848
9848
  className: `web-trading-widget-side-panel${c ? " web-trading-widget-side-panel--with-scan" : ""}`,
9849
- children: c ? /* @__PURE__ */ E("div", { className: "web-trading-widget-side-panel__scan-layout", children: [
9850
- /* @__PURE__ */ E(
9849
+ children: c ? /* @__PURE__ */ A("div", { className: "web-trading-widget-side-panel__scan-layout", children: [
9850
+ /* @__PURE__ */ A(
9851
9851
  "div",
9852
9852
  {
9853
9853
  role: "tablist",
@@ -9866,7 +9866,7 @@ function ng({
9866
9866
  ]
9867
9867
  }
9868
9868
  ),
9869
- /* @__PURE__ */ E("div", { className: "web-trading-widget-side-panel__panels", children: [
9869
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-side-panel__panels", children: [
9870
9870
  /* @__PURE__ */ l("div", { role: "tabpanel", hidden: m !== "trade", className: "web-trading-widget-side-panel__tabpanel", children: /* @__PURE__ */ l(Pa, { symbolTicker: e, orderState: t }) }),
9871
9871
  /* @__PURE__ */ l("div", { role: "tabpanel", hidden: m !== "scan", className: "web-trading-widget-side-panel__tabpanel web-trading-widget-side-panel__tabpanel--scan", children: /* @__PURE__ */ l(
9872
9872
  "iframe",
@@ -9933,7 +9933,7 @@ function sg({
9933
9933
  L && (yo(L), C(L), u("confirmed"), o(null), i(t));
9934
9934
  },
9935
9935
  [t, C]
9936
- ), A = Z(() => {
9936
+ ), x = Z(() => {
9937
9937
  o(null), i("market");
9938
9938
  }, []), P = Z(() => {
9939
9939
  o(null), i("mini");
@@ -9955,8 +9955,8 @@ function sg({
9955
9955
  Number(
9956
9956
  Ot(Ct(L.symbolTicker, e))
9957
9957
  );
9958
- const D = pi(L.executionMode), M = Bs(L.orderType), x = Ue(L.priceOrder), $ = Ue(L.priceTrigger);
9959
- if (!D && x === void 0) {
9958
+ const D = pi(L.executionMode), M = Bs(L.orderType), E = Ue(L.priceOrder), $ = Ue(L.priceTrigger);
9959
+ if (!D && E === void 0) {
9960
9960
  Y(), ve({
9961
9961
  variant: "destructive",
9962
9962
  description: n(M ? "WebTrading.pleaseSetLimitPrice" : "WebTrading.pleaseSetOrderPrice")
@@ -9981,7 +9981,7 @@ function sg({
9981
9981
  });
9982
9982
  return;
9983
9983
  }
9984
- const R = D ? L.side === "buy" ? L.ask : L.bid : x ?? (L.side === "buy" ? L.ask : L.bid);
9984
+ const R = D ? L.side === "buy" ? L.ask : L.bid : E ?? (L.side === "buy" ? L.ask : L.bid);
9985
9985
  c(!0);
9986
9986
  try {
9987
9987
  const Q = await b({
@@ -9993,7 +9993,7 @@ function sg({
9993
9993
  volumeLots: oe,
9994
9994
  stopLoss: Ue(L.stopLoss),
9995
9995
  takeProfit: Ue(L.takeProfit),
9996
- priceOrder: Fs(L.orderType) ? x : void 0,
9996
+ priceOrder: Fs(L.orderType) ? E : void 0,
9997
9997
  priceTrigger: M ? $ : void 0,
9998
9998
  comment: L.comment.trim(),
9999
9999
  typeTime: L.typeTime,
@@ -10043,7 +10043,7 @@ function sg({
10043
10043
  hasConfirmedAccount: S,
10044
10044
  needsAccountSelection: g,
10045
10045
  confirmAccountSelection: O,
10046
- openMarketPanel: A,
10046
+ openMarketPanel: x,
10047
10047
  openMiniPanel: P,
10048
10048
  closePanels: I,
10049
10049
  dismissConfirmation: B,
@@ -13476,21 +13476,21 @@ function cy({
13476
13476
  J(() => {
13477
13477
  T(0), S(!1);
13478
13478
  }, [T, S]), J(() => {
13479
- zr() && A(!0);
13479
+ zr() && x(!0);
13480
13480
  }, []);
13481
- const [g, C] = H(null), [O, A] = H(!1), [P, I] = H(null), B = Z(
13481
+ const [g, C] = H(null), [O, x] = H(!1), [P, I] = H(null), B = Z(
13482
13482
  (M) => {
13483
13483
  if (M === b.current)
13484
13484
  return;
13485
- const x = d.find((R) => R.ticker === M);
13486
- if (!x)
13485
+ const E = d.find((R) => R.ticker === M);
13486
+ if (!E)
13487
13487
  return;
13488
13488
  b.current = M, localStorage.setItem(yn, M), t(M);
13489
13489
  const $ = f.current;
13490
13490
  if ($)
13491
13491
  try {
13492
13492
  $.onChartReady(() => {
13493
- $.activeChart().setSymbol(x.ticker);
13493
+ $.activeChart().setSymbol(E.ticker);
13494
13494
  });
13495
13495
  } catch {
13496
13496
  }
@@ -13523,10 +13523,10 @@ function cy({
13523
13523
  }
13524
13524
  const M = oi(d);
13525
13525
  b.current = M, p.current = "60";
13526
- const x = Ml();
13527
- if (!x)
13526
+ const E = Ml();
13527
+ if (!E)
13528
13528
  return;
13529
- const $ = new x({
13529
+ const $ = new E({
13530
13530
  container: g,
13531
13531
  library_path: "/charting_library/",
13532
13532
  datafeed: L,
@@ -13576,24 +13576,24 @@ function cy({
13576
13576
  P.onChartReady(() => {
13577
13577
  M || (async () => {
13578
13578
  try {
13579
- const x = P.activeChart(), $ = await x.createStudy(
13579
+ const E = P.activeChart(), $ = await E.createStudy(
13580
13580
  "Generated Candles - By iC Candle",
13581
13581
  !0,
13582
13582
  !0
13583
13583
  );
13584
- if (M || ($ && x.bringToFront([$]), await P.headerReady(), M) || (await new Promise((de) => {
13584
+ if (M || ($ && E.bringToFront([$]), await P.headerReady(), M) || (await new Promise((de) => {
13585
13585
  setTimeout(() => {
13586
13586
  if (!M)
13587
13587
  try {
13588
- x.clearMarks(2);
13588
+ E.clearMarks(2);
13589
13589
  } catch {
13590
13590
  }
13591
13591
  de(!0);
13592
13592
  }, 150);
13593
13593
  }), M)) return;
13594
- localStorage.setItem("tv:selected-news-events", "[]"), x.refreshMarks();
13594
+ localStorage.setItem("tv:selected-news-events", "[]"), E.refreshMarks();
13595
13595
  const R = (de) => {
13596
- const ue = x.symbol(), ae = Ss(
13596
+ const ue = E.symbol(), ae = Ss(
13597
13597
  ue,
13598
13598
  d,
13599
13599
  w
@@ -13612,7 +13612,7 @@ function cy({
13612
13612
  }
13613
13613
  p.current = de;
13614
13614
  };
13615
- h.current = R, y.current = Q, x.onSymbolChanged().subscribe(null, R), x.onIntervalChanged().subscribe(null, Q);
13615
+ h.current = R, y.current = Q, E.onSymbolChanged().subscribe(null, R), E.onIntervalChanged().subscribe(null, Q);
13616
13616
  } catch {
13617
13617
  }
13618
13618
  })();
@@ -13644,15 +13644,15 @@ function cy({
13644
13644
  };
13645
13645
  }, [P, a]);
13646
13646
  const k = Z(() => {
13647
- A(!0);
13648
- }, []), D = oe ? /* @__PURE__ */ l("div", { className: "web-trading-widget-advanced__scan-limit-wrap", children: /* @__PURE__ */ E(
13647
+ x(!0);
13648
+ }, []), D = oe ? /* @__PURE__ */ l("div", { className: "web-trading-widget-advanced__scan-limit-wrap", children: /* @__PURE__ */ A(
13649
13649
  ag,
13650
13650
  {
13651
13651
  variant: "destructive",
13652
13652
  className: "web-trading-widget-advanced__scan-limit-badge",
13653
13653
  children: [
13654
13654
  /* @__PURE__ */ l("span", { className: "web-trading-widget-advanced__scan-limit-badge-title", children: "Daily scan limit reached" }),
13655
- Y && /* @__PURE__ */ E("span", { className: "web-trading-widget-advanced__scan-limit-badge-count", children: [
13655
+ Y && /* @__PURE__ */ A("span", { className: "web-trading-widget-advanced__scan-limit-badge-count", children: [
13656
13656
  Y.perDayUsage,
13657
13657
  " of ",
13658
13658
  Y.maxPerDayUsage,
@@ -13661,7 +13661,7 @@ function cy({
13661
13661
  ]
13662
13662
  }
13663
13663
  ) }) : null;
13664
- return /* @__PURE__ */ E(Ye, { children: [
13664
+ return /* @__PURE__ */ A(Ye, { children: [
13665
13665
  o ?? D,
13666
13666
  /* @__PURE__ */ l(cg, { onLoad: k }),
13667
13667
  /* @__PURE__ */ l("div", { ref: C, className: "web-trading-widget-advanced__container" })
@@ -13701,34 +13701,34 @@ function dy({
13701
13701
  }) {
13702
13702
  const { t: y } = Ae(), [w, b] = H(!0), p = u ?? w, T = () => {
13703
13703
  f == null || f(), u === void 0 && b((D) => !D);
13704
- }, S = se((D) => D.setOrderSide), g = se((D) => D.setVolumeLots), C = se((D) => D.volumeLots), [O, A] = H(String(C || r));
13704
+ }, S = se((D) => D.setOrderSide), g = se((D) => D.setVolumeLots), C = se((D) => D.volumeLots), [O, x] = H(String(C || r));
13705
13705
  J(() => {
13706
- p || A(Fr(C, 2));
13706
+ p || x(Fr(C, 2));
13707
13707
  }, [p, C]);
13708
13708
  const P = Number(Ot(Ct(e))), I = t !== null ? _e(t, P) : "—", B = n !== null ? _e(n, P) : "—", L = !o && !a && c !== "" && (t !== null && n !== null), Y = (D) => {
13709
- const M = Number(O), x = Number.isFinite(M) && M > 0 ? M : r, $ = Math.max(s, x + D * i), R = Fr($, 2);
13710
- A(R), g($);
13709
+ const M = Number(O), E = Number.isFinite(M) && M > 0 ? M : r, $ = Math.max(s, E + D * i), R = Fr($, 2);
13710
+ x(R), g($);
13711
13711
  }, G = () => {
13712
13712
  const D = Number(O);
13713
13713
  if (!Number.isFinite(D) || D <= 0) {
13714
- A(Fr(r, 2)), g(r);
13714
+ x(Fr(r, 2)), g(r);
13715
13715
  return;
13716
13716
  }
13717
- const M = Math.max(s, D), x = Fr(M, 2);
13718
- A(x), g(M);
13717
+ const M = Math.max(s, D), E = Fr(M, 2);
13718
+ x(E), g(M);
13719
13719
  }, oe = (D) => {
13720
13720
  t === null || n === null || S({ side: D, entryPrice: D === "buy" ? n : t });
13721
13721
  }, k = (D) => {
13722
13722
  if (t === null || n === null || !c)
13723
13723
  return;
13724
- const M = Number(O), x = Math.max(
13724
+ const M = Number(O), E = Math.max(
13725
13725
  s,
13726
13726
  Number.isFinite(M) && M > 0 ? M : r
13727
13727
  );
13728
13728
  S({ side: D, entryPrice: D === "buy" ? n : t }), h({
13729
13729
  login: c,
13730
13730
  side: D,
13731
- volumeLots: x,
13731
+ volumeLots: E,
13732
13732
  bid: t,
13733
13733
  ask: n
13734
13734
  });
@@ -13737,7 +13737,7 @@ function dy({
13737
13737
  "div",
13738
13738
  {
13739
13739
  className: "web-trading-widget-mini-order web-trading-widget-mini-order--expanded",
13740
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__row", children: [
13740
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__row", children: [
13741
13741
  /* @__PURE__ */ l(
13742
13742
  "button",
13743
13743
  {
@@ -13754,8 +13754,8 @@ function dy({
13754
13754
  )
13755
13755
  }
13756
13756
  ),
13757
- /* @__PURE__ */ E(Ye, { children: [
13758
- /* @__PURE__ */ E(
13757
+ /* @__PURE__ */ A(Ye, { children: [
13758
+ /* @__PURE__ */ A(
13759
13759
  "button",
13760
13760
  {
13761
13761
  type: "button",
@@ -13769,7 +13769,7 @@ function dy({
13769
13769
  ]
13770
13770
  }
13771
13771
  ),
13772
- /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__volume", children: [
13772
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__volume", children: [
13773
13773
  /* @__PURE__ */ l(
13774
13774
  "button",
13775
13775
  {
@@ -13794,7 +13794,7 @@ function dy({
13794
13794
  inputMode: "decimal",
13795
13795
  value: O,
13796
13796
  disabled: !L,
13797
- onChange: (D) => A(D.target.value),
13797
+ onChange: (D) => x(D.target.value),
13798
13798
  onBlur: G,
13799
13799
  className: "web-trading-widget-mini-order__volume-input"
13800
13800
  }
@@ -13817,7 +13817,7 @@ function dy({
13817
13817
  }
13818
13818
  )
13819
13819
  ] }),
13820
- /* @__PURE__ */ E(
13820
+ /* @__PURE__ */ A(
13821
13821
  "button",
13822
13822
  {
13823
13823
  type: "button",
@@ -13876,7 +13876,7 @@ function fy({
13876
13876
  onClose: m,
13877
13877
  onPlaceOrder: h
13878
13878
  }) {
13879
- const { t: y } = Ae(), [w, b] = H(!0), [p, T] = H("market"), S = se((ne) => ne.volumeLots), [g, C] = H(String(S || r)), [O, A] = H(""), [P, I] = H(""), B = se((ne) => ne.stopLoss), z = se((ne) => ne.takeProfit), L = se((ne) => ne.setStopLoss), Y = se((ne) => ne.setTakeProfit), G = se((ne) => ne.setVolumeLots), oe = se((ne) => ne.setOrderSide), [k, D] = H(""), [M, x] = H(qe.GTC), [$, R] = H(""), [Q, de] = H(""), [ue, ae] = H(() => new Set(uy));
13879
+ const { t: y } = Ae(), [w, b] = H(!0), [p, T] = H("market"), S = se((ne) => ne.volumeLots), [g, C] = H(String(S || r)), [O, x] = H(""), [P, I] = H(""), B = se((ne) => ne.stopLoss), z = se((ne) => ne.takeProfit), L = se((ne) => ne.setStopLoss), Y = se((ne) => ne.setTakeProfit), G = se((ne) => ne.setVolumeLots), oe = se((ne) => ne.setOrderSide), [k, D] = H(""), [M, E] = H(qe.GTC), [$, R] = H(""), [Q, de] = H(""), [ue, ae] = H(() => new Set(uy));
13880
13880
  J(() => {
13881
13881
  f();
13882
13882
  }, [w, f]);
@@ -13914,7 +13914,7 @@ function fy({
13914
13914
  ask: n
13915
13915
  });
13916
13916
  }, dt = t !== null && n !== null, ki = Se || Ue(O) !== void 0, Oi = !Le || Ue(P) !== void 0, te = Se || yi(M, $, Q), rt = !o && !a && c !== "" && dt && ki && Oi && te, At = !Se && Ws(M), Cr = !Se && $s(M), uo = () => Ne.orderType !== null && Ne.orderType % 2 === 1 ? "sell" : "buy";
13917
- return /* @__PURE__ */ E(
13917
+ return /* @__PURE__ */ A(
13918
13918
  "div",
13919
13919
  {
13920
13920
  className: `web-trading-widget-market-panel web-trading-widget-market-panel--modal${w ? " web-trading-widget-market-panel--collapsed" : ""}`,
@@ -13956,7 +13956,7 @@ function fy({
13956
13956
  }
13957
13957
  }
13958
13958
  ),
13959
- w ? null : /* @__PURE__ */ E(Ye, { children: [
13959
+ w ? null : /* @__PURE__ */ A(Ye, { children: [
13960
13960
  /* @__PURE__ */ l("div", { className: "web-trading-widget-market-panel__header", children: /* @__PURE__ */ l(
13961
13961
  "select",
13962
13962
  {
@@ -13967,7 +13967,7 @@ function fy({
13967
13967
  children: Zr.map((ne) => /* @__PURE__ */ l("option", { value: ne.mode, children: y(Jr[ne.mode]) }, ne.mode))
13968
13968
  }
13969
13969
  ) }),
13970
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__accordion", children: [
13970
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__accordion", children: [
13971
13971
  /* @__PURE__ */ l(
13972
13972
  yt,
13973
13973
  {
@@ -13993,7 +13993,7 @@ function fy({
13993
13993
  title: y("WebTrading.orderPrice"),
13994
13994
  isOpen: ue.has("order-price"),
13995
13995
  onToggle: () => Pe("order-price"),
13996
- children: Le ? /* @__PURE__ */ E(Ye, { children: [
13996
+ children: Le ? /* @__PURE__ */ A(Ye, { children: [
13997
13997
  /* @__PURE__ */ l(
13998
13998
  Ee,
13999
13999
  {
@@ -14011,7 +14011,7 @@ function fy({
14011
14011
  {
14012
14012
  label: y("WebTrading.limitPrice"),
14013
14013
  value: O,
14014
- onChange: A,
14014
+ onChange: x,
14015
14015
  step: X,
14016
14016
  decimals: N,
14017
14017
  basePrice: ee,
@@ -14023,7 +14023,7 @@ function fy({
14023
14023
  {
14024
14024
  label: y("WebTrading.price"),
14025
14025
  value: O,
14026
- onChange: A,
14026
+ onChange: x,
14027
14027
  step: X,
14028
14028
  decimals: N,
14029
14029
  basePrice: ee,
@@ -14038,7 +14038,7 @@ function fy({
14038
14038
  title: y("WebTrading.riskManagement"),
14039
14039
  isOpen: ue.has("risk-management"),
14040
14040
  onToggle: () => Pe("risk-management"),
14041
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
14041
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
14042
14042
  /* @__PURE__ */ l(
14043
14043
  Ee,
14044
14044
  {
@@ -14068,7 +14068,7 @@ function fy({
14068
14068
  ] })
14069
14069
  }
14070
14070
  ),
14071
- Se ? null : /* @__PURE__ */ E(
14071
+ Se ? null : /* @__PURE__ */ A(
14072
14072
  yt,
14073
14073
  {
14074
14074
  title: y("WebTrading.expiration"),
@@ -14081,11 +14081,11 @@ function fy({
14081
14081
  value: String(M),
14082
14082
  className: "web-trading-widget-market-panel__select-full",
14083
14083
  "aria-label": y("WebTrading.orderExpirationType"),
14084
- onChange: (ne) => x(Number(ne.target.value)),
14084
+ onChange: (ne) => E(Number(ne.target.value)),
14085
14085
  children: gc.map((ne) => /* @__PURE__ */ l("option", { value: String(ne.value), children: y(yc[ne.value]) }, ne.value))
14086
14086
  }
14087
14087
  ),
14088
- At ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
14088
+ At ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
14089
14089
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: y("WebTrading.expirationTime") }),
14090
14090
  /* @__PURE__ */ l(
14091
14091
  "input",
@@ -14097,7 +14097,7 @@ function fy({
14097
14097
  }
14098
14098
  )
14099
14099
  ] }) : null,
14100
- Cr ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
14100
+ Cr ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
14101
14101
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: y("WebTrading.expirationDay") }),
14102
14102
  /* @__PURE__ */ l(
14103
14103
  "input",
@@ -14131,7 +14131,7 @@ function fy({
14131
14131
  }
14132
14132
  )
14133
14133
  ] }),
14134
- /* @__PURE__ */ l("div", { className: "web-trading-widget-market-panel__footer", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__quotes", children: [
14134
+ /* @__PURE__ */ l("div", { className: "web-trading-widget-market-panel__footer", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__quotes", children: [
14135
14135
  /* @__PURE__ */ l("span", { children: Oe }),
14136
14136
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__quotes-ask", children: Be })
14137
14137
  ] }) }),
@@ -14169,11 +14169,11 @@ function hy({
14169
14169
  closePanels: y,
14170
14170
  dismissConfirmation: w,
14171
14171
  placeMarketOrder: b
14172
- } = n, p = fe((R) => R.positions), T = fe((R) => R.orders), S = fe((R) => R.selectedPositionTicket), g = fe((R) => R.selectedOrderTicket), C = fe((R) => R.setSelectedPositionTicket), O = fe((R) => R.setSelectedOrderTicket), A = S !== null ? p.find((R) => R.ticket === S) ?? null : null, P = g !== null ? T.find((R) => R.ticket === g) ?? null : null, I = A !== null || P !== null, B = h && s === "confirmation" && o !== null, z = h && s !== "confirmation" && s !== "closed" && A === null && P === null, { panelRef: L, position: Y, isDragging: G, onDragStart: oe, reclamp: k } = Tc({
14172
+ } = n, p = fe((R) => R.positions), T = fe((R) => R.orders), S = fe((R) => R.selectedPositionTicket), g = fe((R) => R.selectedOrderTicket), C = fe((R) => R.setSelectedPositionTicket), O = fe((R) => R.setSelectedOrderTicket), x = S !== null ? p.find((R) => R.ticket === S) ?? null : null, P = g !== null ? T.find((R) => R.ticket === g) ?? null : null, I = x !== null || P !== null, B = h && s === "confirmation" && o !== null, z = h && s !== "confirmation" && s !== "closed" && x === null && P === null, { panelRef: L, position: Y, isDragging: G, onDragStart: oe, reclamp: k } = Tc({
14173
14173
  storageKey: "web-trading-widget-modal-exec-panel-position",
14174
14174
  defaultAlign: "top-right",
14175
14175
  isActive: z
14176
- }), D = se((R) => R.setDraft), M = se((R) => R.clearDraft), x = Number(Ot(Ct(e))), $ = Bn(x);
14176
+ }), D = se((R) => R.setDraft), M = se((R) => R.clearDraft), E = Number(Ot(Ct(e))), $ = Bn(E);
14177
14177
  return J(() => {
14178
14178
  if (h && !I) {
14179
14179
  if (s === "closed" || s === "confirmation") {
@@ -14189,14 +14189,14 @@ function hy({
14189
14189
  stopLoss: "",
14190
14190
  takeProfit: "",
14191
14191
  volumeLots: c,
14192
- digits: x,
14192
+ digits: E,
14193
14193
  priceStep: $
14194
14194
  });
14195
14195
  }
14196
14196
  }, [
14197
14197
  M,
14198
14198
  c,
14199
- x,
14199
+ E,
14200
14200
  h,
14201
14201
  s,
14202
14202
  $,
@@ -14204,12 +14204,12 @@ function hy({
14204
14204
  I,
14205
14205
  e,
14206
14206
  r
14207
- ]), !h && !I ? null : /* @__PURE__ */ E("div", { className: "web-trading-widget-new-order-overlay-layer", children: [
14207
+ ]), !h && !I ? null : /* @__PURE__ */ A("div", { className: "web-trading-widget-new-order-overlay-layer", children: [
14208
14208
  /* @__PURE__ */ l(cl, { chartWidget: t, symbolTicker: e, symbols: r }),
14209
- I && A !== null ? /* @__PURE__ */ l("div", { className: "web-trading-widget-new-order-overlay web-trading-widget-new-order-overlay--news web-trading-widget-new-order-overlay--side-panel", children: /* @__PURE__ */ l(
14209
+ I && x !== null ? /* @__PURE__ */ l("div", { className: "web-trading-widget-new-order-overlay web-trading-widget-new-order-overlay--news web-trading-widget-new-order-overlay--side-panel", children: /* @__PURE__ */ l(
14210
14210
  Rl,
14211
14211
  {
14212
- position: A,
14212
+ position: x,
14213
14213
  onClose: () => C(null)
14214
14214
  }
14215
14215
  ) }) : null,
@@ -14462,22 +14462,42 @@ function Qa(e, t, n, r) {
14462
14462
  !e || (r == null ? void 0 : r.isConnected) === !1 || (r && (Hl.set(r, { dropdown: e, state: t, onLoginChange: n }), Uy(r)), Kl(e, t, n, r ?? null));
14463
14463
  }
14464
14464
  function Fy() {
14465
- const { toasts: e } = Fp();
14465
+ const { toasts: e, dismiss: t } = Fp();
14466
14466
  return /* @__PURE__ */ l("div", { className: "web-trading-widget-toast-viewport", "aria-live": "polite", "aria-relevant": "additions", children: e.map(
14467
- ({ id: t, title: n, description: r, variant: i, open: s }) => s ? /* @__PURE__ */ E(
14467
+ ({ id: n, title: r, description: i, variant: s, open: o }) => o ? /* @__PURE__ */ A(
14468
14468
  "div",
14469
14469
  {
14470
14470
  className: _t(
14471
14471
  "web-trading-widget-toast",
14472
- i === "destructive" && "web-trading-widget-toast--destructive"
14472
+ s === "destructive" && "web-trading-widget-toast--destructive"
14473
14473
  ),
14474
14474
  role: "status",
14475
14475
  children: [
14476
- n ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__title", children: n }) : null,
14477
- r ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__description", children: r }) : null
14476
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-toast__content", children: [
14477
+ r ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__title", children: r }) : null,
14478
+ i ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__description", children: i }) : null
14479
+ ] }),
14480
+ /* @__PURE__ */ l(
14481
+ "button",
14482
+ {
14483
+ type: "button",
14484
+ className: "web-trading-widget-toast__close",
14485
+ "aria-label": "Close notification",
14486
+ onClick: () => t(n),
14487
+ children: /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ l(
14488
+ "path",
14489
+ {
14490
+ d: "M3 3L11 11M11 3L3 11",
14491
+ stroke: "currentColor",
14492
+ strokeWidth: "1.5",
14493
+ strokeLinecap: "round"
14494
+ }
14495
+ ) })
14496
+ }
14497
+ )
14478
14498
  ]
14479
14499
  },
14480
- t
14500
+ n
14481
14501
  ) : null
14482
14502
  ) });
14483
14503
  }
@@ -14501,7 +14521,7 @@ function Wy({
14501
14521
  defaultPanelAfterConfirm: t === "news" ? "market" : "mini"
14502
14522
  }), h = pe(null), y = pe(null), [w, b] = H(null), p = Z((ie) => {
14503
14523
  b(ie);
14504
- }, []), [T, S] = H(null), [g, C] = H(null), O = u ? s ?? null : T, [A, P] = H(
14524
+ }, []), [T, S] = H(null), [g, C] = H(null), O = u ? s ?? null : T, [x, P] = H(
14505
14525
  () => oi(f)
14506
14526
  ), [I, B] = H(
14507
14527
  n ?? null
@@ -14521,7 +14541,7 @@ function Wy({
14521
14541
  m.hasConfirmedAccount
14522
14542
  ), k = pe(null), [D, M] = H(
14523
14543
  m.selectedLogin
14524
- ), x = Z(
14544
+ ), E = Z(
14525
14545
  (ie) => {
14526
14546
  ie !== m.selectedLogin && m.setSelectedLogin(ie);
14527
14547
  },
@@ -14596,7 +14616,7 @@ function Wy({
14596
14616
  isAccountDataLoading: $,
14597
14617
  language: d
14598
14618
  },
14599
- x,
14619
+ E,
14600
14620
  ue
14601
14621
  );
14602
14622
  } catch {
@@ -14620,12 +14640,12 @@ function Wy({
14620
14640
  isAccountDataLoading: $,
14621
14641
  language: d
14622
14642
  },
14623
- x,
14643
+ E,
14624
14644
  ue
14625
14645
  );
14626
14646
  }, [
14627
14647
  ue,
14628
- x,
14648
+ E,
14629
14649
  $,
14630
14650
  d,
14631
14651
  m.accountOptions,
@@ -14634,13 +14654,13 @@ function Wy({
14634
14654
  m.selectedLogin
14635
14655
  ]);
14636
14656
  const X = e ?? (u ? null : /* @__PURE__ */ l(By, {}));
14637
- return t === "news" ? /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ E(
14657
+ return t === "news" ? /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ A(
14638
14658
  "div",
14639
14659
  {
14640
14660
  ref: Y,
14641
14661
  className: "web-trading-widget-trading-layout web-trading-widget-trading-layout--news",
14642
14662
  children: [
14643
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__chart-slot", children: [
14663
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__chart-slot", children: [
14644
14664
  /* @__PURE__ */ l(nl, {}),
14645
14665
  /* @__PURE__ */ l(
14646
14666
  lc,
@@ -14653,7 +14673,7 @@ function Wy({
14653
14673
  createAccountUrl: a
14654
14674
  }
14655
14675
  ),
14656
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__news-body", children: [
14676
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__news-body", children: [
14657
14677
  u ? /* @__PURE__ */ l(
14658
14678
  "div",
14659
14679
  {
@@ -14665,7 +14685,7 @@ function Wy({
14665
14685
  /* @__PURE__ */ l(
14666
14686
  hy,
14667
14687
  {
14668
- symbolTicker: A,
14688
+ symbolTicker: x,
14669
14689
  chartWidget: O,
14670
14690
  orderState: m
14671
14691
  }
@@ -14685,14 +14705,14 @@ function Wy({
14685
14705
  )
14686
14706
  ]
14687
14707
  }
14688
- ) }) : /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout", children: [
14689
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__body", children: [
14690
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__chart-area", children: [
14708
+ ) }) : /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout", children: [
14709
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__body", children: [
14710
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__chart-area", children: [
14691
14711
  /* @__PURE__ */ l(
14692
14712
  mp,
14693
14713
  {
14694
14714
  controlsRef: h,
14695
- symbolTicker: A,
14715
+ symbolTicker: x,
14696
14716
  chartWidget: O,
14697
14717
  sidePanelTab: z,
14698
14718
  orderState: m,
@@ -14712,7 +14732,7 @@ function Wy({
14712
14732
  /* @__PURE__ */ l(
14713
14733
  ng,
14714
14734
  {
14715
- symbolTicker: A,
14735
+ symbolTicker: x,
14716
14736
  orderState: m,
14717
14737
  scanResultUrl: I,
14718
14738
  activeTab: z,
@@ -14724,7 +14744,7 @@ function Wy({
14724
14744
  /* @__PURE__ */ l(
14725
14745
  xl,
14726
14746
  {
14727
- symbolTicker: A,
14747
+ symbolTicker: x,
14728
14748
  onSymbolChange: ae,
14729
14749
  onCreateNewOrder: G,
14730
14750
  dealDetailUrl: c,
@@ -14751,7 +14771,7 @@ function ub({
14751
14771
  () => Rs(n),
14752
14772
  [n]
14753
14773
  );
14754
- return /* @__PURE__ */ l(cc, { language: m, children: /* @__PURE__ */ l("div", { className: "web-trading-widget-root", children: /* @__PURE__ */ l(Im, { token: t, children: /* @__PURE__ */ l(El, { children: /* @__PURE__ */ E(el, { baseUrl: e, children: [
14774
+ return /* @__PURE__ */ l(cc, { language: m, children: /* @__PURE__ */ l("div", { className: "web-trading-widget-root", children: /* @__PURE__ */ l(Im, { token: t, children: /* @__PURE__ */ l(El, { children: /* @__PURE__ */ A(el, { baseUrl: e, children: [
14755
14775
  /* @__PURE__ */ l(
14756
14776
  Wy,
14757
14777
  {