PageSourceSearch

https://www.tapbit.com/_next_app/price/0.1.227/_next/static/chunks/464-b76edf0c4bd922a0.js

js tapbit.com collected 2026-10-03 21:40:15 UTC 21,455 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8817285e-54c2-4b56-afbf-6520f96b3209",e._sentryDebugIdIdentifier="sentry-dbid-8817285e-54c2-4b56-afbf-6520f96b3209")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{35725:(e,t,r)=>{r.d(t,{K:()=>o,n:()=>c});var n=r(21083),l=r(38113),a=r(76656),i=r(10022),s=r(97773);function o(e){if(!e||"object"!=typeof e)return[];let t=[],r=[];for(let[a,i]of Object.entries(e)){var n,l;let e=1e3*Number(a);if(!Number.isFinite(e)||e<=0)continue;let{buyOrders:s,sellOrders:o}=i||{};(null==s||null==(n=s[0])?void 0:n[1])&&t.push({averagePrice:Number(s[0][1]),direction:"buy",orderTime:e}),(null==o||null==(l=o[0])?void 0:l[1])&&r.push({averagePrice:Number(o[0][1]),direction:"sell",orderTime:e})}return[...t,...r]}function c(e){var t;let{historyOrders:r}=e,{tradingViewStatus:o,tradingViewDataReady:c,addDrawChartsFn:d,removeDrawChartsFn:u,klineModel:h}=(0,i.ZC)((0,a.k)(e=>({tradingViewStatus:e.tradingViewStatus,tradingViewDataReady:e.tradingViewDataReady,klineModel:e.klineModel,addDrawChartsFn:e.addDrawChartsFn,removeDrawChartsFn:e.removeDrawChartsFn}))),x="ready"===o&&c,v=l.useRef([]),f=(0,n.A)(()=>{if(!v.current.length)return;let e=v.current;v.current=[],e.forEach(e=>{try{e.remove()}catch(e){}})}),p=l.useRef(0),g=l.useRef(null),m=()=>{g.current&&(clearTimeout(g.current),g.current=null)},b=(0,s.P)(e=>{var t;let{tradingViewWidget:n,theme:l}=e;if(!(null==r?void 0:r.length)||!(null==h||null==(t=h.filters)?void 0:t.historyOrder))return void f();f();let a=n.chart();try{for(let e of r){let t=null==e?void 0:e.direction,r="sell"===t?l.down:l.up,n=a.createExecutionShape().setArrowColor(r).setArrowSpacing(5).setArrowHeight(8).setDirection(t).setTime(Number(null==e?void 0:e.orderTime)/1e3).setPrice(null==e?void 0:e.averagePrice);v.current.push(n)}}catch(e){p.current<5&&(p.current+=1,m(),g.current=setTimeout(()=>{b()},1e3))}});l.useEffect(()=>(d(b),()=>{m(),u(b),f()}),[]),l.useEffect(()=>{x&&b()},[x,r,null==h||null==(t=h.filters)?void 0:t.historyOrder])}},91346:(e,t,r)=>{r.d(t,{t:()=>S});var n=r(79237),l=r(30511),a=r(66960),i=r(90477),s=r(21083),o=r(38113),c=r(76656),d=r(47317),u=r(10022);function h(e){let{actionId:t}=e,{$t:r}=(0,a.B)(),l=(0,u.ZC)((0,c.k)(e=>({ensureChartReady:e.ensureChartReady}))),i=o.useCallback(()=>{l.ensureChartReady(e=>{let{tradingViewWidget:r}=e;r.chart().executeActionById(t)})},[t,l]);return(0,n.jsx)("button",{type:"button",className:"text-t3 text-t12 hover:text-t1 flex cursor-pointer items-center gap-1 px-1 whitespace-nowrap",onClick:i,children:"chartProperties"===t?(0,n.jsx)(d.Z,{className:"size-4"}):(0,n.jsx)("span",{children:r("Index")})})}var x=r(65375);let v=o.forwardRef((e,t)=>(0,n.jsx)(x.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M640 85.333333a42.666667 42.666667 0 0 1 42.666667 42.666667v153.002667l183.04-183.04 0.085333-0.085334L896 128l30.165333 30.165333v0.042667h-0.085333l-0.384 0.426667v0.042666l-0.085333 0.042667L742.997333 341.333333H896v85.333334h-256a42.666667 42.666667 0 0 1-42.666667-42.666667V128a42.666667 42.666667 0 0 1 42.666667-42.666667z m256 298.666667v42.666667a42.666667 42.666667 0 1 0 0-85.333334v42.666667z m0-256l30.165333 30.165333a42.666667 42.666667 0 1 0-60.373333-60.330666L896 128zM128 682.666667a42.666667 42.666667 0 1 1 0-85.333334h256a42.666667 42.666667 0 0 1 42.666667 42.666667v256a42.666667 42.666667 0 1 1-85.333334 0v-153.002667l-183.168 183.168a42.666667 42.666667 0 0 1-60.330666-60.330666L281.002667 682.666667H128zM305.536 128H426.666667a42.666667 42.666667 0 1 1 0 85.333333H307.2c-24.618667 0-40.490667 0-52.565333 1.024-11.605333 0.938667-15.914667 2.56-18.005334 3.626667a42.666667 42.666667 0 0 0-18.645333 18.645333c-1.066667 2.133333-2.688 6.4-3.626667 18.005334C213.333333 266.666667 213.333333 282.581333 213.333333 307.2V426.666667a42.666667 42.666667 0 1 1-85.333333 0V305.536c0-22.485333 0-41.856 1.28-57.856 1.408-16.853333 4.437333-33.664 12.672-49.792a128 128 0 0 1 55.936-55.936c16.128-8.234667 32.938667-11.264 49.792-12.629333C263.68 128 283.093333 128 305.536 128zM853.333333 554.666667a42.666667 42.666667 0 0 1 42.666667 42.666666v121.088c0 22.528 0 41.898667-1.28 57.898667-1.408 16.853333-4.437333 33.664-12.672 49.792a128 128 0 0 1-55.936 55.936c-16.128 8.234667-32.938667 11.264-49.792 12.629333-16 1.322667-35.413333 1.322667-57.898667 1.322667H597.333333a42.666667 42.666667 0 1 1 0-85.333333h119.466667c24.618667 0 40.490667 0 52.565333-1.024 11.605333-0.938667 15.872-2.56 18.005334-3.626667a42.666667 42.666667 0 0 0 18.645333-18.645333c1.066667-2.133333 2.688-6.4 3.626667-18.005334C810.666667 757.333333 810.666667 741.418667 810.666667 716.8V597.333333a42.666667 42.666667 0 0 1 42.666666-42.666666z"})}));v.displayName="ShrinkIcon";let f=o.forwardRef((e,t)=>
1(0,n.jsx)(x.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M640 170.666667a42.666667 42.666667 0 1 1 0-85.333334h256a42.666667 42.666667 0 0 1 42.666667 42.666667v256a42.666667 42.666667 0 1 1-85.333334 0V230.997333l-183.168 183.168a42.666667 42.666667 0 0 1-60.330666-60.330666L793.002667 170.666667H640zM305.536 128H426.666667a42.666667 42.666667 0 1 1 0 85.333333H307.2c-24.618667 0-40.490667 0-52.565333 1.024-11.605333 0.938667-15.914667 2.56-18.005334 3.626667a42.666667 42.666667 0 0 0-18.645333 18.645333c-1.066667 2.133333-2.688 6.4-3.626667 18.005334C213.333333 266.666667 213.333333 282.581333 213.333333 307.2V426.666667a42.666667 42.666667 0 1 1-85.333333 0V305.536c0-22.485333 0-41.856 1.28-57.856 1.408-16.853333 4.437333-33.664 12.672-49.792a128 128 0 0 1 55.936-55.936c16.128-8.234667 32.938667-11.264 49.792-12.629333C263.68 128 283.093333 128 305.536 128zM853.333333 554.666667a42.666667 42.666667 0 0 1 42.666667 42.666666v121.130667c0 22.485333 0 41.898667-1.28 57.856-1.408 16.853333-4.437333 33.664-12.672 49.792a128 128 0 0 1-55.936 55.936c-16.128 8.234667-32.938667 11.264-49.792 12.629333-16 1.322667-35.413333 1.322667-57.856 1.322667H597.333333a42.666667 42.666667 0 1 1 0-85.333333h119.466667c24.618667 0 40.490667 0 52.565333-1.024 11.605333-0.938667 15.872-2.56 18.005334-3.626667a42.666667 42.666667 0 0 0 18.645333-18.645333c1.066667-2.133333 2.688-6.4 3.626667-18.005334C810.666667 757.333333 810.666667 741.418667 810.666667 716.8V597.333333a42.666667 42.666667 0 0 1 42.666666-42.666666zM128 597.333333a42.666667 42.666667 0 0 1 42.666667 42.666667v153.002667l183.168-183.168a42.666667 42.666667 0 0 1 60.330666 60.330666L230.997333 853.333333H384a42.666667 42.666667 0 1 1 0 85.333334H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-256a42.666667 42.666667 0 0 1 42.666667-42.666667z"})}));f.displayName="ExpandIcon";var p=r(9242);function g(){return window.document.getElementById("tv_charts")}function m(){let[e,{enterFullscreen:t,exitFullscreen:r}]=(0,p.A)(g);return(0,n.jsx)("button",{type:"button",className:"text-t3 text-t12 hover:text-t1 inline-flex cursor-pointer items-center px-1",onClick:e?r:t,children:e?(0,n.jsx)(v,{className:"size-4"}):(0,n.jsx)(f,{className:"size-4"})})}var b=r(47776),y=r(24626),w=r(69938),j=r(18523);function C(){let[e,t]=o.useState(null);return o.useEffect(()=>{t(document.getElementById("tv_charts"))},[]),e}function k(){var e;let{$t:t}=(0,a.B)(),r=(0,u.ZC)((0,c.k)(e=>({klineModel:e.klineModel,interval:e.interval,storage:e.storage,filterStorage:e.filterStorage}))),l=(0,u.ZC)((0,c.k)(e=>({changeInterval:e.changeInterval,updateKlineModel:e.updateKlineModel,updateTimeFilters:e.updateTimeFilters}))),i=o.useMemo(()=>({"-1":t("TVTime"),1:"1".concat(t("m")),3:"3".concat(t("m")),5:"5".concat(t("m")),15:"15".concat(t("m")),30:"30".concat(t("m")),60:"1".concat(t("h")),120:"2".concat(t("h")),240:"4".concat(t("h")),360:"6".concat(t("h")),720:"12".concat(t("h")),"1D":"1D","1W":"1W","1M":"1M"}),[t]),[d,h]=o.useState(!1),x=C(),v=(null==(e=r.klineModel)?void 0:e.timeFiler)||[],f=(0,s.A)((e,t)=>{let r=[];if(e){for(let e of v)j.Id.indexOf(e)>j.Id.indexOf(t)&&!r.includes(t)&&r.push(t),r.push(e);r.includes(t)||r.push(t)}else r=v.filter(e=>e!==t);l.updateTimeFilters(r)}),p=(0,n.jsxs)("div",{className:"bg-m3 w-[360px] p-4",children:[(0,n.jsx)("div",{className:"text-b14 text-t2 mb-4",children:t("Select intervals")}),(0,n.jsx)("div",{className:"flex flex-wrap gap-y-4",children:j.Id.map(e=>{var t;let l=!!v.find(t=>t===e),a=i[e],s=!1;return s="1"===r.interval&&(null==(t=r.klineModel)?void 0:t.isTime)?"-1"===e:r.interval===e,(0,n.jsx)("div",{className:"w-1/3",children:(0,n.jsx)(y.Checkbox,{checked:l,disabled:s,onCheckedChange:t=>f(!0===t,e),children:(0,n.jsx)("span",{className:s?"":l?"text-t1":"text-t3",children:a})})},e)})})]});return(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[(0,n.jsx)("div",{className:"scrollbar-none flex max-w-full min-w-0 shrink items-center gap-4 overflow-x-auto",children:v.map(e=>{var t,a;let s=i[e],o=!1;return"-1"===e&&(null==(t=r.klineModel)?void 0:t.isTime)?o=!0:"1"===e&&(null==(a=r.klineModel)?void 0:a.isTime)||(o=String(null==r?void 0:r.interval)===String(e)),(0,n.jsx)("button",{type:"button",className:"text-t12 cursor-pointer px-1 whitespace-nowrap ".concat(o?"text-t1":"text-t3 hover:text-t1"),onClick:()=>{let t="-1"===e?"1":e;l.changeInterval(t,"-1"===e)},children:s},e)})}),(0,n.jsxs)(w.Popover,{open:d,onOpenChange:h,children:[(0,n.jsx)(w.PopoverTrigger,{asChild:!0,children:(0,n.jsx)("button",{type:"button",className:"text-t3 text-t12 hover:text-t1 inline-flex shrink-0 cursor-pointer items-center",children:(0,n.jsx)(b.C,{className:"size-3"})})}),(0,n.jsx)(w.PopoverContent,{side:"bottom",align:"start",portalContainer:x,className:"w-auto p-0",showArrow:!1,children:p})]})]})}let N=o.forwardRef((e,t)=>
1{let{className:r,...l}=e;return(0,n.jsxs)(x.B,{ref:t,viewBox:"0 0 14 14",className:(0,i.cn)("fill-none",r),...l,children:[(0,n.jsx)("path",{d:"M1.75 7H5.25M1.75 3.5H12.25M1.75 10.5H5.25",fill:"none",stroke:"currentColor",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M12.2829 8.465L11.0158 10.6597L8.48085 10.6598L7.21345 8.46435L8.48054 6.26969L11.0155 6.26959L12.2829 8.465Z",fill:"none",stroke:"currentColor",strokeWidth:"1.16667"})]})});N.displayName="OrderDisplayIcon";var _=r(51025);function M(){var e,t,r;let{$t:l}=(0,a.B)(),s=(0,u.ZC)((0,c.k)(e=>({klineModel:e.klineModel,filterStorage:e.filterStorage,lineFilterOptions:e.lineFilterOptions,tradingViewType:e.tradingViewType,isDemoTrading:e.isDemoTrading,syncDrawingsEnabled:e.syncDrawingsEnabled}))),d=(0,u.ZC)((0,c.k)(e=>({updateKlineModel:e.updateKlineModel,setSyncDrawingsEnabled:e.setSyncDrawingsEnabled}))),h=(0,_.k)(e=>{var t;return!!(null==(t=e.user)?void 0:t.userId)}),[x,v]=o.useState(!1),f=C(),p=null!=(r=null==(e=s.klineModel)?void 0:e.filters)?r:{},g=!!((null==s?void 0:s.lineFilterOptions)&&Object.values(s.lineFilterOptions).some(e=>e)&&(null==(t=s.filterStorage)?void 0:t.setCurrent)),m="contract"===s.tradingViewType&&!s.isDemoTrading;if(!h||!g&&!m)return null;let b=[{key:"position",labelKey:l("Positions")},{key:"order",labelKey:l("Open Orders")},{key:"triggerOrder",labelKey:l("Trigger Orders")},{key:"tpslOrder",labelKey:l("TP/SL Orders")},{key:"historyOrder",labelKey:l("Historical Orders")}].filter(e=>{var t;let{key:r}=e;return!!(null==s||null==(t=s.lineFilterOptions)?void 0:t[r])}),j=!!s.syncDrawingsEnabled,k=g&&b.length>0,M=(0,n.jsxs)("div",{className:(0,i.cn)("bg-m3 p-4",b.length<=1?"w-50":"w-90"),children:[k&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"text-b14 text-t2",children:l("Order Display")}),(0,n.jsx)("div",{className:(0,i.cn)("mt-4 grid gap-x-4 gap-y-3",1===b.length?"grid-cols-1":"grid-cols-2"),children:b.map(e=>{let{key:t,labelKey:r}=e,l=!!p[t];return(0,n.jsx)(y.Checkbox,{checked:l,onCheckedChange:e=>{var r,n;let l={...p,[t]:!0===e};null==(n=s.filterStorage)||null==(r=n.setCurrent)||r.call(n,l),d.updateKlineModel({filters:l})},children:(0,n.jsx)("span",{className:l?"text-t1":"text-t3",children:r})},t)})})]}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,i.cn)("text-b14 text-t2",k&&"mt-4"),children:l("Others")}),(0,n.jsx)("div",{className:"mt-4 grid",children:(0,n.jsx)(y.Checkbox,{checked:j,onCheckedChange:e=>{d.setSyncDrawingsEnabled(!0===e)},children:(0,n.jsxs)(w.Popover,{trigger:"hover",children:[(0,n.jsx)(w.PopoverTrigger,{asChild:!0,children:(0,n.jsx)("span",{className:(0,i.cn)("decoration-t1/30 cursor-help underline decoration-dotted underline-offset-2",j?"text-t1":"text-t3"),children:l("key_sync_drawings_1_3_10")})}),(0,n.jsx)(w.PopoverContent,{side:"bottom",align:"center",portalContainer:f,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:"text-c12 md:text-b14 p-s3 w-auto max-w-[240px] break-words whitespace-normal md:max-w-[328px]",children:l("key_if_enabled_your_drawings_will_sync_to_tapbit_web_on_other_devices_limited_to_50_drawings_per_trading_pair_1_3_10")})]})})})]})]});return(0,n.jsxs)(w.Popover,{open:x,onOpenChange:v,children:[(0,n.jsx)(w.PopoverTrigger,{asChild:!0,children:(0,n.jsx)("button",{type:"button",className:"text-t3 hover:text-t1 inline-flex cursor-pointer items-center",children:(0,n.jsx)(N,{className:"size-4"})})}),(0,n.jsx)(w.PopoverContent,{side:"bottom",align:"center",portalContainer:f,className:"w-auto p-0",showArrow:!1,children:M})]})}let O=o.forwardRef((e,t)=>(0,n.jsx)(x.B,{ref:t,viewBox:"0 0 1024 1024",...e,children:(0,n.jsx)("path",{d:"M341.333333 128a42.666667 42.666667 0 1 0-85.333333 0v85.333333h-41.429333C166.784 213.333333 128 252.16 128 299.946667v424.234666C128 771.925333 166.741333 810.666667 214.570667 810.666667H256v85.333333a42.666667 42.666667 0 0 0 85.333333 0v-85.333333h41.429334c47.786667 0 86.570667-38.741333 86.570666-86.528V299.904C469.333333 252.117333 430.592 213.333333 382.762667 213.333333H341.333333V128zM213.333333 299.904c0-0.256 0.042667-0.384 0.085334-0.469333a1.28 1.28 0 0 1 0.256-0.426667 1.28 1.28 0 0 1 0.426666-0.256 1.109333 1.109333 0 0 1 0.426667-0.085333h168.234667c0.256 0 0.426667 0.042667 0.469333 0.085333a1.28 1.28 0 0 1 0.426667 0.298667 1.109333 1.109333 0 0 1 0.341333 0.853333v424.234667a1.109333 1.109333 0 0 1-0.341333 0.853333 1.28 1.28 0 0 1-0.426667 0.256 1.066667 1.066667 0 0 1-0.426667 0.085333H214.528a1.066667 1.066667 0 0 1-0.469333-0.085333 1.28 1.28 0 0 1-0.426667-0.256 1.109333 1.109333 0 0 1-0.341333-0.853333V299.904zM768 213.333333a42.666667 42.666667 0 0 0-85.333333 0v85.333334h-41.429334C593.450667 298.666667 554.666667 337.493333 554.666667 385.28v253.568c0 47.786667 38.741333 86.528 86.570666 86.528H682.666667v85.333333a42.666667 42.666667 0 0 0 85.333333 0v-85.333333h41.429333c47.786667 0 86.570667-38.741333 86.570667-86.528V385.237333C896 337.450667 857.258667 298.666667 809.429333 298.666667H768V213.333333z m-128 171.9
104c0-0.256 0.042667-0.384 0.085333-0.469333a1.365333 1.365333 0 0 1 0.682667-0.682667 1.109333 1.109333 0 0 1 0.426667-0.085333h168.234666a1.109333 1.109333 0 0 1 0.853334 0.384 1.365333 1.365333 0 0 1 0.298666 0.384l0.085334 0.426667v253.610666a1.152 1.152 0 0 1-0.085334 0.426667 1.365333 1.365333 0 0 1-0.682666 0.682667 1.066667 1.066667 0 0 1-0.426667 0.085333h-168.234667a1.066667 1.066667 0 0 1-0.469333-0.085333 1.365333 1.365333 0 0 1-0.682667-0.682667 1.152 1.152 0 0 1-0.085333-0.426667V385.237333z"})}));function E(){let{$t:e}=(0,a.B)(),t=(0,u.ZC)((0,c.k)(e=>e.klineModel)),r=(0,u.ZC)((0,c.k)(e=>({selectLineType:e.selectLineType}))),[l,d]=o.useState(!1),h=C(),x=o.useMemo(()=>[{label:e("Bars"),value:0},{label:e("Candles"),value:1},{label:e("Hollow Candles"),value:9},{label:e("Line"),value:2},{label:e("Area"),value:3},{label:e("Baseline"),value:10},{label:e("Heikin Ashi"),value:8}],[e]),v=(0,s.A)(e=>{r.selectLineType(e),d(!1)});return(0,n.jsxs)(w.Popover,{open:l,onOpenChange:d,children:[(0,n.jsx)(w.PopoverTrigger,{asChild:!0,children:(0,n.jsx)("button",{type:"button",className:"text-t12 text-t3 hover:text-t1 inline-flex cursor-pointer items-center px-1",children:(0,n.jsx)(O,{className:"size-4"})})}),(0,n.jsx)(w.PopoverContent,{side:"bottom",align:"start",portalContainer:h,className:"w-[200px] p-0",showArrow:!1,children:(0,n.jsx)("div",{className:"bg-m3",children:x.map(e=>{let r=(null==t?void 0:t.lineType)===e.value;return(0,n.jsx)("button",{type:"button",disabled:null==t?void 0:t.isTime,onClick:()=>v(e.value),className:(0,i.Q)("text-b14 flex w-full cursor-pointer items-center justify-start px-3 py-2","disabled:text-t5 disabled:cursor-not-allowed disabled:opacity-60",r?"text-p1 bg-bg2 disabled:text-t5":"text-t2 enabled:hover:bg-bg2 enabled:hover:text-t1"),children:e.label},e.value)})})})]})}function S(e){let{mode:t,watermark:r}=e,{$t:d}=(0,a.B)(),x="mobile"===t,v=(0,u.ZC)((0,c.k)(e=>({tradingViewStatus:e.tradingViewStatus,initError:e.initError}))),f=(0,u.ZC)((0,c.k)(e=>({reloadCharts:e.reloadCharts,destroyCharts:e.destroyCharts}))),p=(0,s.A)(()=>{f.reloadCharts()});o.useEffect(()=>()=>{f.destroyCharts()},[]);let g="ready"===v.tradingViewStatus;return(0,n.jsxs)("div",{id:"tv_charts",className:"bg-bg5 relative h-full w-full",children:[!g&&!v.initError&&(0,n.jsx)("div",{className:"bg-bg7 absolute inset-0 z-20 flex items-center justify-center",children:(0,n.jsx)(l.t,{type:"global",size:"s"})}),v.initError&&(0,n.jsxs)("div",{className:"bg-bg7 absolute inset-0 z-20 flex flex-col items-center justify-center gap-2 p-4 text-center",children:[(0,n.jsx)("div",{className:"text-b14 text-t2",children:v.initError}),(0,n.jsx)("button",{type:"button",className:"text-b14 text-p1 hover:underline",onClick:p,children:d("Refresh")})]}),(0,n.jsxs)("div",{className:(0,i.Q)("bg-bg7 flex h-full w-full flex-col",g?"visible":"invisible"),children:[(0,n.jsxs)("div",{className:(0,i.Q)("border-l1 dark:border-l3 flex h-10 w-full items-center gap-3 border-b px-3",x?"overflow-hidden":"overflow-x-auto"),children:[(0,n.jsxs)("div",{className:(0,i.Q)("flex min-w-0 items-center gap-4",x?"flex-1":"shrink-0"),children:[(0,n.jsx)(k,{}),(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-4",children:[(0,n.jsx)(h,{actionId:"insertIndicator"}),(0,n.jsx)(E,{}),x?null:(0,n.jsx)(M,{}),(0,n.jsx)(h,{actionId:"chartProperties"})]})]}),x?null:(0,n.jsx)("div",{className:"ml-auto flex shrink-0 items-center gap-3",children:(0,n.jsx)(m,{})})]}),(0,n.jsx)("div",{id:"tv_chart_container",className:"relative flex-1"})]}),r&&(0,n.jsx)("div",{className:(0,i.Q)("trendingview_watermark pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 font-normal whitespace-nowrap text-white opacity-10",x?"text-[28px] leading-9":"text-[45px] leading-[45px]"),children:r})]})}O.displayName="CandleIcon"},97773:(e,t,r)=>{r.d(t,{P:()=>x});var n,l,a=r(55434);let i={debug:10,info:20,warn:30,error:40},s=(null!=(l=null!=(n=a.env.LOG_LEVEL)?n:a.env.EDGE_LOG_LEVEL)?l:"").toLowerCase(),o=s in i?s:"info",c={debug:console.debug.bind(console),info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console)}
1;var d=r(21083),u=r(10022);let h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function e(t){var r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={...n},s=null==(r=l.enable)||r,d=function(e){for(var r,n,l=arguments.length,d=Array(l>1?l-1:0),u=1;u<l;u++)d[u-1]=arguments[u];if(!s||!(i[e]>=i[o]))return;let{message:h,error:x,meta:v}=function(e){let t,r,n;for(let l of e){if(l instanceof Error&&!r){r=l,t||(t=l.message);continue}if("string"==typeof l&&(!t||r&&t===r.message)){t=l;continue}let e=function(e){if(e)return Array.isArray(e)?{extra:{data:e}}:"object"==typeof e?{...e}:{extra:{data:e}}}(l);e&&(n=n?{...n,...e}:e)}return{message:t,error:r,meta:n}}(d),f=new Date().toISOString(),{message:p,type:g,value:m,duration:b,code:y,locale:w,country:j,error:C,extra:k,...N}=null!=v?v:{},_=null!=(r=null!=h?h:p)?r:"",M=null!=x?x:C,O=null!=w?w:a.locale,E=null!=j?j:a.country,S={timestamp:f,eventType:t,level:e,requestId:null!=(n=a.requestId)?n:null,message:_};void 0!==g&&(S.type=g),void 0!==m&&(S.value=m),void 0!==b&&(S.duration=b),void 0!==y&&(S.code=y),void 0!==O&&(S.locale=O),void 0!==E&&(S.country=E),void 0!==M&&(S.error=function(e){try{if(e instanceof Error)return JSON.stringify({name:e.name,message:e.message,stack:e.stack});return JSON.stringify(e)}catch(t){return String(e)}}(M));let T={...a.extra,...N,...k};Object.keys(T).length>0&&(S.extra=T);{let t=JSON.stringify(S);c[e](t)}};return{debug:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return d("debug",...t)},info:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return d("info",...t)},warn:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return d("warn",...t)},error:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return d("error",...t)},withContext:r=>e(t,{...a,...r,extra:{...a.extra,...r.extra}},{enable:s})}}(e,{},{enable:t})}("tv:chart-utils");function x(e){let t=(0,u.ZC)(e=>e.ensureChartReady),r=(0,u.ZC)(e=>e.ensureChartDataReady);return(0,d.A)(()=>{t(t=>{r(()=>{try{Promise.resolve(e(t)).catch(e=>{h.warn("run chart ready handler failed",e)})}catch(e){h.warn("run chart ready handler failed",e)}})})})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.