@iccandle/vuejs-widget 0.1.5 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.iccandle-simple-tooltip-wrapper{display:inline-flex!important;position:relative!important}.iccandle-simple-tooltip-trigger{align-items:flex-start!important;gap:4px!important;display:inline-flex!important}.iccandle-simple-tooltip-content{font-size:12px;line-height:1.25;background-color:var(--iccandle-secondary)!important;color:var(--iccandle-text)!important;z-index:50!important;pointer-events:none!important;text-wrap:nowrap!important;border:none!important;border-radius:2px!important;max-width:240px!important;margin-bottom:4px!important;padding:4px 6px!important;position:absolute!important;bottom:100%!important;left:50%!important;transform:translate(-50%)!important;box-shadow:0 1px 3px #0000001f!important}.iccandle-simple-tooltip-content p{margin:0!important}.iccandle-scanner-popup{background-color:var(--iccandle-background);color:var(--iccandle-text);z-index:20!important;border:1px solid var(--iccandle-border)!important;border-radius:1rem!important;flex-direction:column!important;align-items:center!important;gap:.5rem!important;height:38px!important;padding:0 .25rem!important;display:flex!important;position:absolute!important;top:25%!important;left:25%!important;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a!important}@media (width<=640px){.iccandle-scanner-popup{left:2rem!important}}.iccandle-scanner-popup__inner{align-items:center!important;gap:.25rem!important;width:100%!important;height:100%!important;display:flex!important}.iccandle-scanner-popup__grip{cursor:move!important}.iccandle-scanner-popup__divider{background-color:var(--iccandle-border);width:2px!important;height:2rem!important;margin-top:.25rem!important;margin-bottom:.25rem!important}.iccandle-scanner-popup__bars{white-space:nowrap!important;flex:1!important;width:100%!important;min-width:3rem!important;height:100%!important;margin-left:.5rem!important;margin-right:.5rem!important;font-size:.75rem!important;font-weight:600!important}.iccandle-scanner-popup__action-btn,.iccandle-scanner-popup__settings,.iccandle-scanner-popup__toggle{font:inherit;appearance:none!important;box-sizing:border-box!important;background-color:#0000!important;border:none!important;outline:none!important}.iccandle-scanner-popup__action-btn{color:var(--iccandle-border);transition:background-color .2s ease-in-out;touch-action:none!important;cursor:pointer!important;border-radius:.125rem!important;justify-content:center!important;align-items:center!important;gap:.5rem!important;width:100%!important;height:2rem!important;margin-left:.25rem!important;margin-right:.25rem!important;padding:.25rem!important;font-size:.75rem!important;font-weight:600!important;display:flex!important}.iccandle-scanner-popup__action-btn:hover{background-color:color-mix(in srgb, var(--iccandle-background) 40%, transparent)!important}.iccandle-scanner-popup__action-btn--with-gap{gap:.25rem!important;padding-left:.25rem!important}@keyframes iccandle-scanner-label-gradient{0%{background-position:0%}to{background-position:200%}}.iccandle-scanner-popup__label{background:linear-gradient(90deg, var(--iccandle-primary) 0%, var(--iccandle-primary-gradient-end) 50%, var(--iccandle-primary) 100%);color:#0000;animation:2s linear infinite iccandle-scanner-label-gradient;text-wrap:nowrap!important;background-size:200% 100%!important;-webkit-background-clip:text!important;background-clip:text!important}.iccandle-scanner-popup__action-row{flex:1!important;align-items:center!important;gap:.25rem!important;width:100%!important;display:flex!important}.iccandle-scanner-popup__logo{min-width:1.25rem!important;min-height:1.25rem!important}.iccandle-scanner-popup__settings{color:inherit;touch-action:none!important;cursor:pointer!important;border-radius:.125rem!important;justify-content:center!important;align-items:center!important;padding:.25rem!important;display:flex!important}.iccandle-scanner-popup__settings:hover{background-color:color-mix(in srgb, var(--iccandle-background) 40%, transparent)!important}.iccandle-scanner-popup__toggle{color:var(--iccandle-border);transition-property:color,background-color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);cursor:pointer!important;border-radius:.125rem!important;justify-content:center!important;align-items:center!important;gap:.25rem!important;height:2rem!important;margin-right:.25rem!important;padding:.25rem!important;font-size:.75rem!important;font-weight:600!important;display:flex!important}.iccandle-scanner-popup__toggle:hover{background-color:color-mix(in srgb, var(--iccandle-background) 40%, transparent)!important}.text-theme-color{color:var(--iccandle-border)}.iccandle-info-tooltip-icon{color:#6b7280}.iccandle-info-tooltip-icon--muted{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent)!important}.iccandle-info-tooltip-trigger{cursor:pointer!important;align-items:center!important;display:inline-flex!important}.iccandle-info-tooltip-content{z-index:20050!important;background-color:var(--iccandle-background)!important;width:fit-content!important;max-width:320px!important;height:auto!important;color:var(--iccandle-text)!important;border:1px solid var(--iccandle-border)!important;text-wrap:wrap!important;pointer-events:none!important;border-radius:.375rem!important;padding:.75rem!important;position:fixed!important;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a!important}.iccandle-info-tooltip-content__inner{text-align:left!important;flex-direction:column!important;gap:.25rem!important;width:100%!important;display:flex!important}.iccandle-info-tooltip-content__title{color:var(--iccandle-text)!important;margin:0!important;font-size:.875rem!important;font-weight:600!important;line-height:1.25!important}.iccandle-info-tooltip-content__body{flex-direction:column!important;gap:.375rem!important;display:flex!important}.iccandle-info-tooltip-content__description,.iccandle-info-tooltip-content__line{width:100%!important;color:color-mix(in oklab, var(--iccandle-text) 70%, transparent)!important;margin:0!important;font-size:.75rem!important;line-height:1.35!important}.iccandle-info-tooltip-content__line-label{color:var(--iccandle-text)!important;font-weight:500!important}.iccandle-scanner-ai-settings{flex-direction:column!important;gap:.5rem!important;padding:0 1rem!important;display:flex!important;overflow:visible!important}.iccandle-scanner-ai-settings__row{grid-template-columns:1fr auto!important;align-items:center!important;gap:.75rem!important;padding:.25rem 0!important;display:grid!important;position:relative!important;overflow:visible!important}.iccandle-scanner-ai-settings__label{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);font-size:.875rem;align-items:center!important;gap:.5rem!important;min-width:0!important;display:flex!important;overflow:visible!important}.iccandle-scanner-ai-settings__select-wrap{border-radius:.5rem!important;width:11.5rem!important;min-width:10.5rem!important;position:relative!important}.iccandle-scanner-ai-settings__select-wrap--open{z-index:20!important}.iccandle-scanner-ai-settings__select-trigger{font-size:.875rem;border:1px solid var(--iccandle-border)!important;background-color:var(--iccandle-background)!important;width:100%!important;height:2.5rem!important;color:var(--iccandle-text)!important;cursor:pointer!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;padding:0 .625rem 0 .75rem!important;display:flex!important}.iccandle-scanner-ai-settings__trigger-chevron{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);pointer-events:none!important;flex-shrink:0!important;width:1rem!important;height:1rem!important;transition:transform .15s!important}.iccandle-scanner-ai-settings__trigger-chevron--open{transform:rotate(180deg)!important}.iccandle-scanner-ai-settings__dropdown{z-index:70!important;box-sizing:border-box!important;border:1px solid var(--iccandle-border)!important;background-color:var(--iccandle-background)!important;min-width:11.5rem!important;color:var(--iccandle-text)!important;border-radius:.5rem!important;position:fixed!important;overflow-y:auto!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-scanner-ai-settings__dropdown-item{font-size:.875rem;cursor:pointer!important;justify-content:space-between!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-ai-settings__dropdown-item:hover:not(.iccandle-scanner-ai-settings__dropdown-item--locked){background-color:color-mix(in oklab, var(--iccandle-text) 8%, transparent)!important}.iccandle-scanner-ai-settings__dropdown-item--locked{cursor:default!important}.iccandle-scanner-ai-settings__dropdown-item .is-disabled{opacity:.5!important;text-wrap:nowrap!important}.iccandle-scanner-ai-settings__upgrade-btn-wrap{border-radius:.5rem!important;flex-shrink:0!important;width:auto!important}.iccandle-scanner-ai-settings__upgrade-btn{z-index:1;position:relative;height:calc(1.5rem - 2px)!important;color:var(--iccandle-text)!important;background-color:var(--iccandle-background)!important;cursor:pointer!important;white-space:nowrap!important;border:none!important;border-radius:calc(.5rem - 1px)!important;justify-content:center!important;align-items:center!important;padding:0 .5rem!important;font-size:.75rem!important;font-weight:500!important;display:inline-flex!important}.iccandle-scanner-ai-settings__select{background-color:var(--iccandle-background);color:var(--iccandle-text);font-size:.875rem;border:1px solid var(--iccandle-border)!important;cursor:pointer!important;appearance:none!important;width:100%!important;height:2.5rem!important;box-shadow:none!important;border-radius:.5rem!important;outline:none!important;padding:0 2rem 0 .75rem!important;display:block!important}.iccandle-scanner-ai-settings__select:focus,.iccandle-scanner-ai-settings__select:focus-visible{box-shadow:none!important;outline:none!important}.iccandle-scanner-ai-settings__chevron{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);z-index:2!important;pointer-events:none!important;width:1rem!important;height:1rem!important;position:absolute!important;top:50%!important;right:.625rem!important;transform:translateY(-50%)!important}.ai-gradient-border{isolation:isolate;background:var(--iccandle-background);border-radius:.5rem!important;width:100%!important;padding:1px!important;position:relative!important;overflow:hidden!important}.ai-gradient-border:before{content:"";z-index:0;aspect-ratio:1;pointer-events:none;background:conic-gradient(#ffb018,#ffde68,#00beaa,#00dfb9,#ffb84d,#ffb018);width:220%;animation:4s linear infinite ai-spin-border;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ai-gradient-border .iccandle-scanner-ai-settings__select-trigger,.ai-gradient-border .iccandle-scanner-ai-settings__select{z-index:1;position:relative;background-color:var(--iccandle-background)!important;border:none!important;border-radius:calc(.5rem - 1px)!important;height:calc(2.5rem - 2px)!important}.iccandle-scanner-ai-settings__upgrade-btn-wrap.ai-gradient-border{width:auto!important}.ai-gradient-border .iccandle-scanner-ai-settings__upgrade-btn{width:100%}@keyframes ai-spin-border{to{transform:translate(-50%,-50%)rotate(360deg)}}@media (width<=639px){.iccandle-scanner-ai-settings__row{grid-template-columns:1fr!important}.iccandle-scanner-ai-settings__select-wrap{width:100%!important}}.iccandle-scanner-advanced-options{flex-direction:column!important;gap:.5rem!important;max-width:none!important;margin:0!important;padding:0 1rem!important;display:flex!important;overflow:visible!important}.iccandle-scanner-advanced-options__row{grid-template-columns:1fr auto!important;align-items:center!important;gap:.75rem!important;padding:.25rem 0!important;display:grid!important;position:relative!important;overflow:visible!important}.iccandle-scanner-advanced-options__label{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);font-size:.875rem;flex:1!important;align-items:center!important;gap:.5rem!important;min-width:0!important;display:flex!important}@media (width<=639px){.iccandle-scanner-advanced-options__row{grid-template-columns:1fr!important}}.iccandle-forexIcons{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;position:relative!important}.iccandle-forexIcons__img{border-color:var(--iccandle-background);box-sizing:border-box!important;border-style:solid!important;border-width:2px!important;border-radius:9999px!important;position:absolute!important}.iccandle-forexIcons__img--single{top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}.iccandle-forexIcons__img--left{z-index:8!important;bottom:0!important;left:0!important}.iccandle-forexIcons__img--right{top:0!important;right:0!important}.iccandle-scanner-symbol-search--combobox{flex:none!important;padding:0 1rem!important;display:block!important;position:relative!important;overflow:visible!important}.iccandle-scanner-symbol-search__trigger{border:1px solid color-mix(in oklab, var(--iccandle-border) 80%, transparent)!important;background:var(--iccandle-background)!important;width:100%!important;height:auto!important;min-height:2.5rem!important;color:var(--iccandle-text)!important;cursor:pointer!important;text-align:left!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;font-weight:400!important;display:flex!important}.iccandle-scanner-symbol-search__trigger:hover{background:color-mix(in oklab, var(--iccandle-secondary) 20%, var(--iccandle-background))!important}.iccandle-scanner-symbol-search__chips{flex-wrap:wrap!important;flex:auto!important;align-items:center!important;gap:.25rem!important;min-width:0!important;display:flex!important}.iccandle-scanner-symbol-search__placeholder{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;font-weight:300}.iccandle-scanner-symbol-search__chip{background:var(--iccandle-secondary)!important;max-width:7.5rem!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;gap:.125rem!important;padding:0 .25rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-symbol-search__chip-icon{transform:scale(.75);pointer-events:none!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:1rem!important;height:1rem!important;display:flex!important;overflow:hidden!important}.iccandle-scanner-symbol-search__chip-label{font-size:11px;line-height:1rem;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-scanner-symbol-search__chip-remove{cursor:pointer!important;border-radius:.125rem!important;flex-shrink:0!important;padding:.125rem!important;display:inline-flex!important}.iccandle-scanner-symbol-search__chip-remove:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 40%, transparent)}.iccandle-scanner-symbol-search__chip-overflow{font-variant-numeric:tabular-nums;font-size:11px;background:var(--iccandle-secondary)!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;padding:0 .375rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-symbol-search__trigger-meta{font-variant-numeric:tabular-nums;font-size:.875rem;flex-shrink:0!important;align-items:center!important;gap:.375rem!important;display:flex!important}.iccandle-scanner-symbol-search__popover{z-index:10050!important;box-sizing:border-box!important;border:1px solid var(--iccandle-border)!important;background:var(--iccandle-background)!important;color:var(--iccandle-text)!important;border-radius:.5rem!important;padding:0!important;position:fixed!important;overflow:hidden!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-scanner-symbol-search__search{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 60%, transparent)!important;background:var(--iccandle-background)!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-symbol-search__search-icon{opacity:.5;flex-shrink:0!important;width:1rem!important;height:1rem!important}.iccandle-scanner-symbol-search__command-input{font-size:.875rem;width:100%!important;min-width:0!important;color:var(--iccandle-text)!important;background:0 0!important;border:none!important;outline:none!important}.iccandle-scanner-symbol-search__command-input::placeholder{color:color-mix(in oklab, var(--iccandle-text) 45%, transparent)}.iccandle-scanner-symbol-search__command-list{overflow:hidden auto!important}.iccandle-scanner-symbol-search__empty{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;text-align:center!important;padding:1.5rem .75rem!important}.iccandle-scanner-symbol-search__select-all{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 50%, transparent);background:var(--iccandle-background);z-index:10!important;align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important;position:sticky!important;top:0!important}.iccandle-scanner-symbol-search__group{padding:0!important}.iccandle-scanner-symbol-search__group-row{align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important}.iccandle-scanner-symbol-search__group-check-btn,.iccandle-scanner-symbol-search__group-label-btn,.iccandle-scanner-symbol-search__group-expand-btn{color:inherit;background:0 0;cursor:pointer!important;border:none!important;align-items:center!important;display:inline-flex!important}.iccandle-scanner-symbol-search__group-check-btn{border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;width:1.5rem!important;height:1.5rem!important}.iccandle-scanner-symbol-search__group-check-btn:hover,.iccandle-scanner-symbol-search__group-label-btn:hover,.iccandle-scanner-symbol-search__group-expand-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 35%, transparent)}.iccandle-scanner-symbol-search__group-label-btn{font-size:.875rem;font-weight:500;text-align:left!important;border-radius:.25rem!important;flex:auto!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-symbol-search__group-expand-btn{letter-spacing:.02em;font-size:.75rem;border-radius:.25rem!important;flex:auto!important;justify-content:space-between!important;gap:.375rem!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-symbol-search__item{cursor:pointer!important;width:100%!important;color:var(--iccandle-text)!important;text-align:left!important;background:0 0!important;border:none!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem .5rem 1.5rem!important;display:flex!important}.iccandle-scanner-symbol-search__item:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 55%, transparent)!important}.iccandle-scanner-symbol-search__item-label{font-size:.875rem;font-weight:500;text-overflow:ellipsis!important;white-space:nowrap!important;flex:auto!important;min-width:0!important;overflow:hidden!important}.iccandle-scanner-symbol-search__check{opacity:.5;border:1px solid var(--iccandle-primary)!important;border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:1rem!important;height:1rem!important;display:flex!important}.iccandle-scanner-symbol-search__check--on{opacity:1;opacity:1;border:solid 1px var(--iccandle-primary)!important;color:var(--iccandle-primary)!important;border:solid 1px var(--iccandle-primary)!important}@media (width<=767px){.iccandle-scanner-symbol-search__trigger{flex-direction:column!important;align-items:stretch!important}}.iccandle-scanner-symbol-search__trigger-meta-icon{opacity:.6}.iccandle-scanner-symbol-search__group-expand-icon{transition:transform .15s}.iccandle-scanner-symbol-search__group-expand-icon--collapsed{transform:rotate(-90deg)}.iccandle-scanner-option{background-color:hsl(from var(--iccandle-background) h s l / .5);z-index:10000!important;justify-content:center!important;align-items:center!important;padding:.5rem!important;display:flex!important;position:fixed!important;inset:0!important}.iccandle-scanner-option__card{background-color:var(--iccandle-background);color:var(--iccandle-text);border:1px solid var(--iccandle-border)!important;border-radius:1.5rem!important;flex-direction:column!important;width:100%!important;max-width:35rem!important;min-height:0!important;max-height:min(92dvh,100%)!important;display:flex!important;position:relative!important;overflow:hidden!important;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a!important}.iccandle-scanner-settings{flex-direction:column!important;flex:0 auto!important;gap:.5rem!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important;display:flex!important;overflow:hidden!important}.iccandle-scanner-settings__header{flex-shrink:0!important;justify-content:space-between!important;align-items:flex-start!important;gap:.75rem!important;padding:1rem 1rem 0!important;display:flex!important}.iccandle-scanner-settings__title-wrap{flex-direction:column!important;flex:auto!important;gap:.125rem!important;min-width:0!important;display:flex!important}.iccandle-scanner-settings__title{color:var(--iccandle-text);font-size:1.125rem;font-weight:500;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-scanner-settings__description{color:color-mix(in oklab, var(--iccandle-text) 65%, transparent);font-size:.875rem;font-weight:400}.iccandle-scanner-option__close-btn{color:var(--iccandle-text);cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.5rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:2rem!important;height:2rem!important;padding:0!important;display:flex!important}.iccandle-scanner-option__close-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}.iccandle-scanner-settings__form{flex-direction:column!important;flex:0 auto!important;min-width:0!important;max-width:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.iccandle-scanner-settings__body{flex:0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;padding-top:.5rem!important}.iccandle-scanner-settings__section{margin-bottom:.5rem!important}.iccandle-scanner-settings__section-title{color:var(--iccandle-text);font-size:1rem;font-weight:500;margin-bottom:.5rem!important;padding:0 1rem!important}.iccandle-scanner-settings__accordion-trigger{color:var(--iccandle-text);background:0 0;font-size:1rem;font-weight:500;cursor:pointer!important;border:none!important;justify-content:space-between!important;align-items:center!important;width:100%!important;padding:.5rem 1rem!important;display:flex!important}.iccandle-scanner-settings__accordion-caret{transition:transform .2s;border-left:5px solid #0000!important;border-right:5px solid #0000!important;border-top:6px solid color-mix(in oklab, var(--iccandle-text) 60%, transparent)!important;width:0!important;height:0!important}.iccandle-scanner-settings__accordion-caret--open{transform:rotate(180deg)}.iccandle-scanner-settings__accordion-content{padding-bottom:.5rem!important}.iccandle-scanner-option__footer{border-top:1px solid var(--iccandle-border)!important;flex-direction:column!important;flex-shrink:0!important;gap:.5rem!important;display:flex!important}.iccandle-scanner-option__error{color:#ef4444;overflow-wrap:anywhere;font-size:.875rem;font-weight:500;padding:.75rem 1rem 0!important}.iccandle-scanner-option__actions{flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important;gap:.75rem!important;padding:1rem!important;display:flex!important}.iccandle-scanner-option__always-show{align-items:center!important;gap:.5rem!important;display:flex!important}.iccandle-scanner-option__always-show input[type=checkbox]{width:1rem!important;height:1rem!important;accent-color:var(--iccandle-primary)!important;cursor:pointer!important}.iccandle-scanner-option__always-show-label{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);font-size:.875rem;font-weight:400;cursor:pointer!important}.iccandle-scanner-option__buttons{justify-content:flex-end!important;align-items:center!important;gap:.75rem!important;margin-left:auto!important;display:flex!important}.iccandle-scanner-option__btn{font-size:.875rem;font-weight:600;cursor:pointer!important;border:1px solid #0000!important;border-radius:.5rem!important;justify-content:center!important;align-items:center!important;gap:.375rem!important;height:2.25rem!important;padding:0 .875rem!important;display:inline-flex!important}.iccandle-scanner-option__btn--outline{border-color:var(--iccandle-border);color:var(--iccandle-text);background:0 0}.iccandle-scanner-option__btn--outline:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}.iccandle-scanner-option__btn--primary{background-color:color-mix(in srgb, var(--iccandle-primary) 30%, transparent);color:var(--iccandle-text);border:1px solid var(--iccandle-primary)!important}.iccandle-scanner-option__btn--primary:hover{filter:brightness(.95)}.iccandle-scanner-option__btn--scan{color:#ffb84d}@media (width>=640px){.iccandle-scanner-option__card{max-height:90dvh!important}.iccandle-scanner-settings__title{font-size:1.25rem}.iccandle-scanner-settings__body{padding-top:1rem!important}}.iccandle-pattern-alert-name{background-color:var(--iccandle-background)!important;border-radius:1.5rem!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:24rem!important;display:flex!important;overflow:hidden!important}.iccandle-pattern-alert-name__header{text-align:left!important;flex-direction:column!important;gap:.5rem!important;height:fit-content!important;padding:1rem 1rem 0!important;display:flex!important}.iccandle-pattern-alert-name__title-row{justify-content:space-between!important;align-items:center!important;display:flex!important}.iccandle-pattern-alert-name__title{color:var(--iccandle-text);align-items:center!important;gap:.5rem!important;margin:0!important;font-size:1.125rem!important;font-weight:600!important;line-height:1!important;display:flex!important}.iccandle-pattern-alert-name__title-icon{color:var(--iccandle-primary);flex-shrink:0!important}.iccandle-pattern-alert-name__close-btn{color:var(--iccandle-text);cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.375rem!important;justify-content:center!important;align-items:center!important;width:2rem!important;height:2rem!important;padding:0!important;display:flex!important}.iccandle-pattern-alert-name__close-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}@media (width>=640px){.iccandle-pattern-alert-name__close-btn{display:none!important}}.iccandle-pattern-alert-name__description{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);margin:0!important;font-size:.875rem!important}.iccandle-pattern-alert-name__content{flex-direction:column!important;flex:1!important;justify-content:center!important;align-items:center!important;gap:1.5rem!important;padding:1rem!important;display:flex!important}.iccandle-pattern-alert-name__bell-icon{color:var(--iccandle-primary)}.iccandle-pattern-alert-name__form{width:100%!important}.iccandle-pattern-alert-name__field{align-items:center!important;gap:.5rem!important;width:100%!important;display:grid!important}.iccandle-pattern-alert-name__label{color:var(--iccandle-text);font-size:.875rem!important;font-weight:500!important}.iccandle-pattern-alert-name__input{background-color:var(--iccandle-background);color:var(--iccandle-text);border:1px solid var(--iccandle-border)!important;border-radius:.375rem!important;height:2.25rem!important;padding:0 .75rem!important;font-size:.875rem!important}.iccandle-pattern-alert-name__input::placeholder{color:color-mix(in oklab, var(--iccandle-text) 50%, transparent)}.iccandle-pattern-alert-name__input:focus{border-color:var(--iccandle-primary)!important;outline:none!important}.iccandle-pattern-alert-name__error{color:#ef4444;margin:0!important;font-size:.75rem!important}.iccandle-pattern-alert-name__footer-wrap{height:fit-content!important}@media (width>=640px){.iccandle-pattern-alert-name__footer-wrap{height:25%!important}}.iccandle-pattern-alert-name__divider{border:none!important;border-top:1px solid var(--iccandle-border)!important;margin:0!important}.iccandle-pattern-alert-name__footer{color:color-mix(in oklab, var(--iccandle-text) 80%, transparent);justify-content:flex-end!important;align-items:center!important;gap:1rem!important;padding:1rem!important;font-weight:600!important;display:flex!important}.iccandle-pattern-alert-name__btn{cursor:pointer!important;border:1px solid #0000!important;border-radius:.5rem!important;height:2.25rem!important;padding:0 .875rem!important;font-size:.875rem!important;font-weight:600!important}.iccandle-pattern-alert-name__btn--outline{color:var(--iccandle-text);background:0 0;border-color:var(--iccandle-border)!important}.iccandle-pattern-alert-name__btn--outline:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}.iccandle-pattern-alert-name__btn--primary{background-color:color-mix(in srgb, var(--iccandle-primary) 30%, transparent);color:var(--iccandle-primary);border:1px solid var(--iccandle-primary)!important;width:fit-content!important}.iccandle-pattern-alert-name__btn--primary:hover:not(:disabled){filter:brightness(.95)}.iccandle-pattern-alert-name__btn--primary:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-scanner-timeframe-search--combobox{flex:none!important;width:100%!important;padding:0 1rem!important;display:block!important;position:relative!important;overflow:visible!important}.iccandle-scanner-timeframe-search__trigger{border:1px solid color-mix(in oklab, var(--iccandle-border) 80%, transparent)!important;background:var(--iccandle-background)!important;width:100%!important;height:auto!important;min-height:2.5rem!important;color:var(--iccandle-text)!important;cursor:pointer!important;text-align:left!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;font-weight:400!important;display:flex!important}.iccandle-scanner-timeframe-search__trigger:hover{background:color-mix(in oklab, var(--iccandle-secondary) 20%, var(--iccandle-background))!important}.iccandle-scanner-timeframe-search__chips{flex-wrap:wrap!important;flex:auto!important;align-items:center!important;gap:.25rem!important;min-width:0!important;display:flex!important}.iccandle-scanner-timeframe-search__placeholder{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;font-weight:300}.iccandle-scanner-timeframe-search__chip{background:var(--iccandle-secondary)!important;max-width:7.5rem!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;gap:.125rem!important;padding:0 .25rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__chip-label{font-size:11px;line-height:1rem;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-scanner-timeframe-search__chip-remove{cursor:pointer!important;border-radius:.125rem!important;flex-shrink:0!important;padding:.125rem!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__chip-remove:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 40%, transparent)}.iccandle-scanner-timeframe-search__chip-overflow{font-variant-numeric:tabular-nums;font-size:11px;background:var(--iccandle-secondary)!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;padding:0 .375rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__trigger-meta{font-variant-numeric:tabular-nums;font-size:.875rem;flex-shrink:0!important;align-items:center!important;gap:.375rem!important;display:flex!important}.iccandle-scanner-timeframe-search__popover{z-index:10050!important;box-sizing:border-box!important;border:1px solid var(--iccandle-border)!important;background:var(--iccandle-background)!important;color:var(--iccandle-text)!important;border-radius:.5rem!important;padding:0!important;position:fixed!important;overflow:hidden!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-scanner-timeframe-search__search{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 60%, transparent)!important;background:var(--iccandle-background)!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-timeframe-search__search-icon{opacity:.5;flex-shrink:0!important;width:1rem!important;height:1rem!important}.iccandle-scanner-timeframe-search__command-input{font-size:.875rem;width:100%!important;min-width:0!important;color:var(--iccandle-text)!important;background:0 0!important;border:none!important;outline:none!important}.iccandle-scanner-timeframe-search__command-input::placeholder{color:color-mix(in oklab, var(--iccandle-text) 45%, transparent)}.iccandle-scanner-timeframe-search__command-list{overflow:hidden auto!important}.iccandle-scanner-timeframe-search__empty{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;text-align:center!important;padding:1.5rem .75rem!important}.iccandle-scanner-timeframe-search__select-all{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 50%, transparent);background:var(--iccandle-background);z-index:10!important;align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important;position:sticky!important;top:0!important}.iccandle-scanner-timeframe-search__group{padding:0!important}.iccandle-scanner-timeframe-search__group-row{align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important}.iccandle-scanner-timeframe-search__group-check-btn,.iccandle-scanner-timeframe-search__group-label-btn,.iccandle-scanner-timeframe-search__group-expand-btn{color:inherit;background:0 0;cursor:pointer!important;border:none!important;align-items:center!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__group-check-btn{border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;width:1.5rem!important;height:1.5rem!important}.iccandle-scanner-timeframe-search__group-check-btn:hover,.iccandle-scanner-timeframe-search__group-label-btn:hover,.iccandle-scanner-timeframe-search__group-expand-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 35%, transparent)}.iccandle-scanner-timeframe-search__group-label-btn{font-size:.875rem;font-weight:500;text-align:left!important;border-radius:.25rem!important;flex:auto!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-timeframe-search__group-expand-btn{letter-spacing:.02em;font-size:.75rem;border-radius:.25rem!important;flex:auto!important;justify-content:space-between!important;gap:.375rem!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-timeframe-search__item{cursor:pointer!important;width:100%!important;color:var(--iccandle-text)!important;text-align:left!important;background:0 0!important;border:none!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-timeframe-search__item:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 55%, transparent)!important}.iccandle-scanner-timeframe-search__item-label{font-size:.875rem;font-weight:500;text-overflow:ellipsis!important;white-space:nowrap!important;flex:0 auto!important;min-width:0!important;overflow:hidden!important}.iccandle-scanner-timeframe-search__item-description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.75rem;text-overflow:ellipsis!important;white-space:nowrap!important;flex-shrink:0!important;margin-left:auto!important;overflow:hidden!important}.iccandle-scanner-timeframe-search__check{opacity:.5;border:1px solid var(--iccandle-primary)!important;border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:1rem!important;height:1rem!important;display:flex!important}.iccandle-scanner-timeframe-search__check--on{opacity:1;opacity:1;border:solid 1px var(--iccandle-primary)!important;color:var(--iccandle-primary)!important;border:solid 1px var(--iccandle-primary)!important}@media (width<=767px){.iccandle-scanner-timeframe-search__trigger{flex-direction:column!important;align-items:stretch!important}}.iccandle-timeframes-tab{flex-direction:column!important;gap:.5rem!important;min-height:0!important;display:flex!important}.iccandle-timeframes-tab__header{padding:0!important}.iccandle-timeframes-tab__title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:600!important}.iccandle-timeframes-tab__description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.25rem 0 0!important;font-size:.75rem!important}.iccandle-symbols-tab{flex-direction:column!important;gap:.5rem!important;min-height:0!important;display:flex!important}.iccandle-symbols-tab__header{padding:0!important}.iccandle-symbols-tab__title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:600!important}.iccandle-symbols-tab__description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.25rem 0 0!important;font-size:.75rem!important}.iccandle-time-config-section{color:var(--iccandle-text);flex-direction:column!important;gap:.5rem!important;min-width:0!important;max-width:100%!important;font-size:.875rem!important;display:flex!important;overflow:visible!important}.iccandle-time-config-section__header{padding:0!important}.iccandle-time-config-section__title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:600!important}.iccandle-time-config-section__description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.25rem 0 0!important;font-size:.75rem!important}.iccandle-time-config-section__fields{flex-direction:column!important;gap:.75rem!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;display:flex!important}.iccandle-time-config-section__row{flex-direction:column!important;gap:.75rem!important;width:100%!important;min-width:0!important;display:flex!important}@media (width>=640px){.iccandle-time-config-section__row{flex-direction:row!important;align-items:flex-end!important}}.iccandle-time-config-section__field{flex-direction:column!important;flex:1 1 0!important;gap:.25rem!important;min-width:0!important;display:flex!important}.iccandle-time-config-section__label{color:color-mix(in oklab, var(--iccandle-text) 65%, transparent);font-size:.75rem!important;font-weight:500!important}.iccandle-time-config-section__input{color:var(--iccandle-text);background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;border-radius:.5rem!important;height:2.5rem!important;padding:.5rem .75rem!important;font-size:.875rem!important}.iccandle-time-config-section__input:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-time-config-section__select-wrap{position:relative!important}.iccandle-time-config-section__select-wrap--open{z-index:10050!important}.iccandle-time-config-section__select-btn{color:var(--iccandle-text);background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;text-align:left!important;cursor:pointer!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;width:100%!important;height:2.5rem!important;padding:.5rem .75rem!important;font-size:.875rem!important;display:flex!important}.iccandle-time-config-section__select-btn:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-time-config-section__select-label{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-time-config-section__dropdown{background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;box-shadow:0 4px 12px color-mix(in oklab, var(--iccandle-text) 12%, transparent)!important;border-radius:.5rem!important;flex-direction:column!important;display:flex!important;overflow:hidden!important}.iccandle-time-config-section__dropdown--portal{z-index:10050!important;position:fixed!important}.iccandle-time-config-section__dropdown-header{border-bottom:1px solid var(--iccandle-border)!important;padding:.5rem .75rem!important}.iccandle-time-config-section__dropdown-title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:500!important}.iccandle-time-config-section__dropdown-subtitle{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.125rem 0 0!important;font-size:.75rem!important}.iccandle-time-config-section__dropdown-search{border-bottom:1px solid var(--iccandle-border)!important;padding:.5rem!important}.iccandle-time-config-section__dropdown-search-input{color:var(--iccandle-text);background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;border-radius:.25rem!important;width:100%!important;height:2rem!important;padding:0 .5rem!important;font-size:.875rem!important}.iccandle-time-config-section__dropdown-search-input:focus{border-color:var(--iccandle-primary,#00dfb9)!important;outline:none!important}.iccandle-time-config-section__dropdown-list{margin:0!important;padding:.25rem 0!important;list-style:none!important;overflow-y:auto!important}.iccandle-time-config-section__dropdown-group-label{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);padding:.375rem .75rem!important;font-size:.75rem!important;font-weight:500!important}.iccandle-time-config-section__dropdown-item{color:var(--iccandle-text);background-color:#0000;text-align:left!important;cursor:pointer!important;border:none!important;align-items:center!important;width:100%!important;padding:.5rem .75rem!important;font-size:.875rem!important;display:flex!important}.iccandle-time-config-section__dropdown-item:hover,.iccandle-time-config-section__dropdown-item--selected{background-color:color-mix(in oklab, var(--iccandle-text) 6%, transparent)!important}.iccandle-time-config-section__dropdown-empty{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);text-align:center!important;padding:.75rem!important;font-size:.875rem!important}.iccandle-time-config-section__check{opacity:0!important;width:1rem!important;height:1rem!important;margin-right:.5rem!important}.iccandle-time-config-section__check--visible{opacity:1!important}.iccandle-pattern-alert-settings{background-color:var(--iccandle-background)!important;border-radius:1.5rem!important;flex-direction:column!important;gap:.5rem!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}@media (width>=640px){.iccandle-pattern-alert-settings{gap:.75rem!important}}.iccandle-pattern-alert-settings__header-row{flex-shrink:0!important;align-items:flex-start!important;gap:.5rem!important;padding:16px 16px 0!important;display:flex!important}@media (width>=640px){.iccandle-pattern-alert-settings__header-row{align-items:center!important;gap:2px!important}}.iccandle-pattern-alert-settings__header-icon{color:var(--iccandle-primary);flex-shrink:0!important;margin-top:.125rem!important}@media (width>=640px){.iccandle-pattern-alert-settings__header-icon{margin-top:0!important}}.iccandle-pattern-alert-settings__header{text-align:left!important;flex-direction:column!important;gap:.5rem!important;width:100%!important;min-width:0!important;height:fit-content!important;display:flex!important}.iccandle-pattern-alert-settings__title-row{justify-content:space-between!important;align-items:flex-start!important;gap:.5rem!important;width:100%!important;display:flex!important}@media (width>=640px){.iccandle-pattern-alert-settings__title-row{align-items:center!important}}.iccandle-pattern-alert-settings__title{color:var(--iccandle-text);min-width:0!important;margin:0!important;font-size:1rem!important;font-weight:600!important;line-height:1.25!important}@media (width>=640px){.iccandle-pattern-alert-settings__title{font-size:1.125rem!important}}.iccandle-pattern-alert-settings__title-text{text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important;overflow:hidden!important}.iccandle-pattern-alert-settings__close-btn{color:var(--iccandle-text);cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.375rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:2rem!important;height:2rem!important;padding:0!important;display:flex!important}.iccandle-pattern-alert-settings__close-btn:hover{background-color:color-mix(in oklab, var(--iccandle-background) 20%, transparent)}@media (width>=640px){.iccandle-pattern-alert-settings__close-btn{display:none!important}}.iccandle-pattern-alert-settings__description{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);text-align:left!important;margin:0!important;font-size:.875rem!important}.iccandle-pattern-alert-settings__form{flex-direction:column!important;flex:auto!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.iccandle-pattern-alert-settings__sections{flex-direction:column!important;flex:auto!important;gap:1.5rem!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;padding:16px 0!important;display:flex!important;overflow:hidden auto!important}.iccandle-pattern-alert-settings__section{flex-direction:column!important;gap:.5rem!important;min-width:0!important;padding:0 16px!important;display:flex!important}.iccandle-pattern-alert-settings__time-config{min-width:0!important;max-width:100%!important;min-height:0!important;overflow:visible!important}.iccandle-pattern-alert-settings__section .iccandle-scanner-timeframe-search--combobox,.iccandle-pattern-alert-settings__section .iccandle-scanner-symbol-search--combobox{padding:0!important}.iccandle-pattern-alert-settings__footer{border-top:1px solid var(--iccandle-border)!important;flex-direction:column!important;flex-shrink:0!important;gap:.5rem!important;min-width:0!important;max-width:100%!important;height:fit-content!important;display:flex!important}.iccandle-pattern-alert-settings__error{color:#ef4444;overflow-wrap:break-word!important;opacity:0!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:16px 16px 0!important;font-size:.875rem!important;font-weight:500!important;transition:opacity .15s ease-in-out!important}.iccandle-pattern-alert-settings__error--visible{opacity:1!important}.iccandle-pattern-alert-settings__actions{color:color-mix(in oklab, var(--iccandle-text) 80%, transparent);justify-content:flex-end!important;align-items:center!important;gap:.75rem!important;padding:16px!important;font-weight:600!important;display:flex!important}.iccandle-pattern-alert-settings__actions--with-error{padding-top:0!important}@media (width>=640px){.iccandle-pattern-alert-settings__actions{gap:1rem!important}}.iccandle-pattern-alert-settings__btn{cursor:pointer!important;border:1px solid #0000!important;border-radius:.5rem!important;width:100%!important;height:2.25rem!important;padding:0 .875rem!important;font-size:.875rem!important;font-weight:600!important}@media (width>=640px){.iccandle-pattern-alert-settings__btn{width:fit-content!important}}.iccandle-pattern-alert-settings__btn--outline{color:var(--iccandle-text);background:0 0;border-color:var(--iccandle-border)!important}.iccandle-pattern-alert-settings__btn--outline:hover{background-color:color-mix(in oklab, var(--iccandle-background) 20%, transparent)}.iccandle-pattern-alert-settings__btn--primary{background-color:var(--iccandle-primary)!important;color:var(--iccandle-background)!important;border-color:var(--iccandle-primary)!important}.iccandle-pattern-alert-settings__btn--primary:hover:not(:disabled){filter:brightness(.95)}.iccandle-pattern-alert-settings__btn--primary:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-pattern-tracker-modal{z-index:10000!important;background-color:#00000080!important;justify-content:center!important;align-items:center!important;padding:1rem!important;display:flex!important;position:fixed!important;inset:0!important}.iccandle-pattern-tracker-modal__content{border-radius:1.5rem!important;outline:none!important;flex-direction:column!important;width:100%!important;max-width:calc(100% - 2rem)!important;padding:0!important;display:flex!important;position:relative!important;overflow:hidden!important;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a!important}@media (width>=640px){.iccandle-pattern-tracker-modal__content{max-width:425px!important;max-height:60%!important}}.iccandle-pattern-tracker-modal__content--settings{max-width:580px!important;height:80%!important}.iccandle-event-info-modal{z-index:60!important;position:fixed!important;inset:0!important}.iccandle-event-info-modal__dialog{border:1px solid var(--iccandle-border)!important;background:var(--iccandle-background)!important;width:302px!important;color:var(--iccandle-text)!important;box-sizing:border-box!important;border-radius:.375rem!important;padding:1.5rem!important;position:fixed!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-event-info-modal__header{justify-content:space-between!important;align-items:center!important;gap:.5rem!important;margin-bottom:1rem!important;display:flex!important}.iccandle-event-info-modal__title-row{align-items:center!important;gap:.5rem!important;min-width:0!important;display:flex!important}.iccandle-event-info-modal__title{text-overflow:ellipsis!important;margin:0!important;font-size:1.125rem!important;font-weight:700!important;line-height:1.4!important;overflow:hidden!important}.iccandle-event-info-modal__close{color:inherit!important;cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.125rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;padding:.25rem!important;display:inline-flex!important}.iccandle-event-info-modal__close:hover{background:color-mix(in srgb, var(--iccandle-text) 8%, transparent)!important}.iccandle-event-info-modal__date{color:color-mix(in srgb, var(--iccandle-text) 60%, transparent)!important;margin:0 0 1rem!important;font-size:.875rem!important}.iccandle-event-info-modal__rows{flex-direction:column!important;gap:.5rem!important;font-size:.875rem!important;display:flex!important}.iccandle-event-info-modal__row{justify-content:space-between!important;align-items:center!important;gap:.75rem!important;display:flex!important}.iccandle-event-info-modal__label{color:color-mix(in srgb, var(--iccandle-text) 55%, transparent)!important}.iccandle-event-info-modal__value{color:var(--iccandle-text)!important;font-weight:600!important}.iccandle-event-info-modal__actions{flex-direction:column-reverse!important;gap:.5rem!important;margin-top:1.5rem!important;display:flex!important}.iccandle-event-info-modal__actions .iccandle-event-info-modal__btn{width:100%!important}@media (width>=640px){.iccandle-event-info-modal__actions{flex-direction:row!important;justify-content:flex-end!important}.iccandle-event-info-modal__actions .iccandle-event-info-modal__btn{width:auto!important}}.iccandle-event-info-modal__loading,.iccandle-event-info-modal__empty{min-width:16rem!important;min-height:12rem!important;color:color-mix(in srgb, var(--iccandle-text) 55%, transparent)!important;text-align:center!important;justify-content:center!important;align-items:center!important;padding:2rem 0!important;font-size:.875rem!important;display:flex!important}.iccandle-event-info-modal__spinner{border:2px solid color-mix(in srgb, var(--iccandle-text) 20%, transparent)!important;border-top-color:var(--iccandle-primary,#ffb84d)!important;border-radius:9999px!important;width:1.5rem!important;height:1.5rem!important;animation:.8s linear infinite iccandle-event-info-spin!important}.iccandle-event-info-modal__btn{cursor:pointer!important;background:var(--iccandle-primary,#ffb84d)!important;color:#111!important;border:1px solid #0000!important;border-radius:.375rem!important;justify-content:center!important;align-items:center!important;min-height:2.25rem!important;padding:.5rem 1rem!important;font-size:.875rem!important;font-weight:600!important;display:inline-flex!important}.iccandle-event-info-modal__btn--outline{border-color:var(--iccandle-border)!important;color:var(--iccandle-text)!important;background:0 0!important}@keyframes iccandle-event-info-spin{to{transform:rotate(360deg)}}.iccandle-toaster{--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.92, calc(l - .06), .98) c h / .92)}[data-sonner-toaster][data-sonner-theme=dark].iccandle-toaster{--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.22, calc(l + .22), .34) c h / .92)}.custom-toast{border:1px solid var(--iccandle-border,#e5e7eb);background:var(--iccandle-background,#fff);width:100%;color:var(--iccandle-text,#111827);border-radius:12px;gap:12px;padding:16px;display:flex;box-shadow:0 8px 24px #0f172a1f}.custom-toast__icon-wrap{background:var(--iccandle-secondary,#f3f4f6);border-radius:9999px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.custom-toast__icon{width:20px;height:20px;color:var(--iccandle-text,#4b5563);opacity:.7}.custom-toast__content{flex:1;min-width:0}.custom-toast__header{justify-content:space-between;align-items:flex-start;display:flex}.custom-toast__title{color:var(--iccandle-text,#111827);margin:0;font-size:14px;font-weight:600;line-height:20px}.custom-toast__description{color:var(--iccandle-text,#4b5563);opacity:.75;margin:4px 0 0;font-size:14px;line-height:20px}.custom-toast__actions{gap:12px;margin-top:12px;display:flex}.custom-toast__button{cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 12px;font-size:14px;font-weight:500;line-height:20px}.custom-toast__button:hover{background:color-mix(in oklab, var(--iccandle-border,#e5e7eb) 35%, transparent)}.custom-toast__button--action{color:var(--iccandle-primary,#2563eb)}.custom-toast__button--dismiss{color:var(--iccandle-text,#4b5563);opacity:.85}.iccandle-toast-host[data-v-1549ae5b]{z-index:2147483647;pointer-events:none;width:min(420px,100vw - 32px);position:fixed;top:16px;right:16px}.iccandle-toast-list[data-v-1549ae5b]{flex-direction:column;gap:12px;display:flex}.iccandle-toast-list[data-v-1549ae5b] .custom-toast{pointer-events:auto}.iccandle-toast-enter-active[data-v-1549ae5b],.iccandle-toast-leave-active[data-v-1549ae5b]{transition:opacity .2s,transform .2s}.iccandle-toast-enter-from[data-v-1549ae5b],.iccandle-toast-leave-to[data-v-1549ae5b]{opacity:0;transform:translateY(-8px)}.iccandle-toast-move[data-v-1549ae5b]{transition:transform .2s}.iccandle-selector-widget,.iccandle-theme-scope{--iccandle-primary:#00dfb9;--iccandle-primary-gradient-end:#ffb84d;--iccandle-background:#fff;--iccandle-border:#d1d5dc;--iccandle-text:#000;--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.92, calc(l - .06), .98) c h / .92);font-family:var(--iccandle-font,"Inter Tight", ui-sans-serif, system-ui, sans-serif)}.iccandle-selector-widget{width:100%!important;height:100%!important;position:relative!important}.iccandle-selector-widget :where(img,picture,video,canvas,svg),.iccandle-theme-scope :where(img,picture,video,canvas,svg){display:revert;max-width:revert}.iccandle-selector-widget__container{--chart-pane-size:60%;width:100%!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.iccandle-selector-widget__chart-pane{width:var(--chart-pane-size)!important;flex:0 0 var(--chart-pane-size)!important;flex-shrink:0!important;min-width:0!important;height:100%!important;min-height:0!important;overflow:hidden!important}.iccandle-selector-widget__resize-handle{cursor:col-resize!important;background:var(--iccandle-border,#d1d5dc)!important;touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;flex-shrink:0!important;width:4px!important}.iccandle-selector-widget__resize-handle:hover,.iccandle-selector-widget__resize-handle:active{background:var(--iccandle-primary,#00dfb9)!important}.iccandle-selector-widget__resize-handle--stacked{cursor:row-resize!important;width:100%!important;height:4px!important}.iccandle-selector-widget__iframe{border:none!important;flex:1 1 0!important;width:auto!important;min-width:0!important;height:100%!important;min-height:0!important}@media (width<=1023px){.iccandle-selector-widget__container{flex-direction:column!important}.iccandle-selector-widget__chart-pane{width:100%!important;height:var(--chart-pane-size)!important;flex:0 0 var(--chart-pane-size)!important}.iccandle-selector-widget__iframe{flex:1 1 0!important;width:100%!important;height:auto!important}.iccandle-selector-widget{width:100%!important}}.full-container{width:100%;height:100%}.iccandle-dark{--iccandle-primary:#00dfb9;--iccandle-primary-gradient-end:#ffb84d;--iccandle-background:#1a1a1a;--iccandle-border:#fff3;--iccandle-text:#fff;--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.22, calc(l + .22), .34) c h / .92)}.iccandle-selector-widget__overlay{z-index:8!important;position:fixed!important;inset:0!important}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.iccandle-simple-tooltip-wrapper{display:inline-flex!important;position:relative!important}.iccandle-simple-tooltip-trigger{align-items:flex-start!important;gap:4px!important;display:inline-flex!important}.iccandle-simple-tooltip-content{font-size:12px;line-height:1.25;background-color:var(--iccandle-secondary)!important;color:var(--iccandle-text)!important;z-index:50!important;pointer-events:none!important;text-wrap:nowrap!important;border:none!important;border-radius:2px!important;max-width:240px!important;margin-bottom:4px!important;padding:4px 6px!important;position:absolute!important;bottom:100%!important;left:50%!important;transform:translate(-50%)!important;box-shadow:0 1px 3px #0000001f!important}.iccandle-simple-tooltip-content p{margin:0!important}.iccandle-scanner-popup{background-color:var(--iccandle-background);color:var(--iccandle-text);z-index:20!important;border:1px solid var(--iccandle-border)!important;border-radius:1rem!important;flex-direction:column!important;align-items:center!important;gap:.5rem!important;height:38px!important;padding:0 .25rem!important;display:flex!important;position:absolute!important;top:25%!important;left:25%!important;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a!important}@media (width<=640px){.iccandle-scanner-popup{left:2rem!important}}.iccandle-scanner-popup__inner{align-items:center!important;gap:.25rem!important;width:100%!important;height:100%!important;display:flex!important}.iccandle-scanner-popup__grip{cursor:move!important}.iccandle-scanner-popup__divider{background-color:var(--iccandle-border);width:2px!important;height:2rem!important;margin-top:.25rem!important;margin-bottom:.25rem!important}.iccandle-scanner-popup__bars{white-space:nowrap!important;flex:1!important;width:100%!important;min-width:3rem!important;height:100%!important;margin-left:.5rem!important;margin-right:.5rem!important;font-size:.75rem!important;font-weight:600!important}.iccandle-scanner-popup__action-btn,.iccandle-scanner-popup__settings,.iccandle-scanner-popup__toggle{font:inherit;appearance:none!important;box-sizing:border-box!important;background-color:#0000!important;border:none!important;outline:none!important}.iccandle-scanner-popup__action-btn{color:var(--iccandle-border);transition:background-color .2s ease-in-out;touch-action:none!important;cursor:pointer!important;border-radius:.125rem!important;justify-content:center!important;align-items:center!important;gap:.5rem!important;width:100%!important;height:2rem!important;margin-left:.25rem!important;margin-right:.25rem!important;padding:.25rem!important;font-size:.75rem!important;font-weight:600!important;display:flex!important}.iccandle-scanner-popup__action-btn:hover{background-color:color-mix(in srgb, var(--iccandle-background) 40%, transparent)!important}.iccandle-scanner-popup__action-btn--with-gap{gap:.25rem!important;padding-left:.25rem!important}@keyframes iccandle-scanner-label-gradient{0%{background-position:0%}to{background-position:200%}}.iccandle-scanner-popup__label{background:linear-gradient(90deg, var(--iccandle-primary) 0%, var(--iccandle-primary-gradient-end) 50%, var(--iccandle-primary) 100%);color:#0000;animation:2s linear infinite iccandle-scanner-label-gradient;text-wrap:nowrap!important;background-size:200% 100%!important;-webkit-background-clip:text!important;background-clip:text!important}.iccandle-scanner-popup__action-row{flex:1!important;align-items:center!important;gap:.25rem!important;width:100%!important;display:flex!important}.iccandle-scanner-popup__logo{min-width:1.25rem!important;min-height:1.25rem!important}.iccandle-scanner-popup__settings{color:inherit;touch-action:none!important;cursor:pointer!important;border-radius:.125rem!important;justify-content:center!important;align-items:center!important;padding:.25rem!important;display:flex!important}.iccandle-scanner-popup__settings:hover{background-color:color-mix(in srgb, var(--iccandle-background) 40%, transparent)!important}.iccandle-scanner-popup__toggle{color:var(--iccandle-border);transition-property:color,background-color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);cursor:pointer!important;border-radius:.125rem!important;justify-content:center!important;align-items:center!important;gap:.25rem!important;height:2rem!important;margin-right:.25rem!important;padding:.25rem!important;font-size:.75rem!important;font-weight:600!important;display:flex!important}.iccandle-scanner-popup__toggle:hover{background-color:color-mix(in srgb, var(--iccandle-background) 40%, transparent)!important}.text-theme-color{color:var(--iccandle-border)}.iccandle-info-tooltip-icon{color:#6b7280}.iccandle-info-tooltip-icon--muted{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent)!important}.iccandle-info-tooltip-trigger{cursor:pointer!important;align-items:center!important;display:inline-flex!important}.iccandle-info-tooltip-content{z-index:20050!important;background-color:var(--iccandle-background)!important;width:fit-content!important;max-width:320px!important;height:auto!important;color:var(--iccandle-text)!important;border:1px solid var(--iccandle-border)!important;text-wrap:wrap!important;pointer-events:none!important;border-radius:.375rem!important;padding:.75rem!important;position:fixed!important;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a!important}.iccandle-info-tooltip-content__inner{text-align:left!important;flex-direction:column!important;gap:.25rem!important;width:100%!important;display:flex!important}.iccandle-info-tooltip-content__title{color:var(--iccandle-text)!important;margin:0!important;font-size:.875rem!important;font-weight:600!important;line-height:1.25!important}.iccandle-info-tooltip-content__body{flex-direction:column!important;gap:.375rem!important;display:flex!important}.iccandle-info-tooltip-content__description,.iccandle-info-tooltip-content__line{width:100%!important;color:color-mix(in oklab, var(--iccandle-text) 70%, transparent)!important;margin:0!important;font-size:.75rem!important;line-height:1.35!important}.iccandle-info-tooltip-content__line-label{color:var(--iccandle-text)!important;font-weight:500!important}.iccandle-scanner-ai-settings{flex-direction:column!important;gap:.5rem!important;padding:0 1rem!important;display:flex!important;overflow:visible!important}.iccandle-scanner-ai-settings__row{grid-template-columns:1fr auto!important;align-items:center!important;gap:.75rem!important;padding:.25rem 0!important;display:grid!important;position:relative!important;overflow:visible!important}.iccandle-scanner-ai-settings__label{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);font-size:.875rem;align-items:center!important;gap:.5rem!important;min-width:0!important;display:flex!important;overflow:visible!important}.iccandle-scanner-ai-settings__select-wrap{border-radius:.5rem!important;width:13rem!important;min-width:10.5rem!important;position:relative!important}.iccandle-scanner-ai-settings__select-wrap--open{z-index:20!important}.iccandle-scanner-ai-settings__select-trigger{font-size:.875rem;border:1px solid var(--iccandle-border)!important;background-color:var(--iccandle-background)!important;width:100%!important;height:2.5rem!important;color:var(--iccandle-text)!important;cursor:pointer!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;padding:0 .625rem 0 .75rem!important;display:flex!important}.iccandle-scanner-ai-settings__trigger-chevron{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);pointer-events:none!important;flex-shrink:0!important;width:1rem!important;height:1rem!important;transition:transform .15s!important}.iccandle-scanner-ai-settings__trigger-chevron--open{transform:rotate(180deg)!important}.iccandle-scanner-ai-settings__dropdown{z-index:70!important;box-sizing:border-box!important;border:1px solid var(--iccandle-border)!important;background-color:var(--iccandle-background)!important;min-width:11.5rem!important;color:var(--iccandle-text)!important;border-radius:.5rem!important;position:fixed!important;overflow-y:auto!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-scanner-ai-settings__dropdown-item{font-size:.875rem;cursor:pointer!important;justify-content:space-between!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-ai-settings__dropdown-item:hover:not(.iccandle-scanner-ai-settings__dropdown-item--locked){background-color:color-mix(in oklab, var(--iccandle-text) 8%, transparent)!important}.iccandle-scanner-ai-settings__dropdown-item--locked{cursor:default!important}.iccandle-scanner-ai-settings__dropdown-item .is-disabled{opacity:.5!important;text-wrap:nowrap!important}.iccandle-scanner-ai-settings__upgrade-btn-wrap{border-radius:.5rem!important;flex-shrink:0!important;width:auto!important}.iccandle-scanner-ai-settings__upgrade-btn{z-index:1;position:relative;height:calc(1.5rem - 2px)!important;color:var(--iccandle-text)!important;background-color:var(--iccandle-background)!important;cursor:pointer!important;white-space:nowrap!important;border:none!important;border-radius:calc(.5rem - 1px)!important;justify-content:center!important;align-items:center!important;padding:0 .5rem!important;font-size:.75rem!important;font-weight:500!important;display:inline-flex!important}.iccandle-scanner-ai-settings__select{background-color:var(--iccandle-background);color:var(--iccandle-text);font-size:.875rem;border:1px solid var(--iccandle-border)!important;cursor:pointer!important;appearance:none!important;width:100%!important;height:2.5rem!important;box-shadow:none!important;border-radius:.5rem!important;outline:none!important;padding:0 2rem 0 .75rem!important;display:block!important}.iccandle-scanner-ai-settings__select:focus,.iccandle-scanner-ai-settings__select:focus-visible{box-shadow:none!important;outline:none!important}.iccandle-scanner-ai-settings__chevron{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);z-index:2!important;pointer-events:none!important;width:1rem!important;height:1rem!important;position:absolute!important;top:50%!important;right:.625rem!important;transform:translateY(-50%)!important}.ai-gradient-border{isolation:isolate;background:var(--iccandle-background);border-radius:.5rem!important;width:100%!important;padding:1px!important;position:relative!important;overflow:hidden!important}.ai-gradient-border:before{content:"";z-index:0;aspect-ratio:1;pointer-events:none;background:conic-gradient(#ffb018,#ffde68,#00beaa,#00dfb9,#ffb84d,#ffb018);width:220%;animation:4s linear infinite ai-spin-border;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ai-gradient-border .iccandle-scanner-ai-settings__select-trigger,.ai-gradient-border .iccandle-scanner-ai-settings__select{z-index:1;position:relative;background-color:var(--iccandle-background)!important;border:none!important;border-radius:calc(.5rem - 1px)!important;height:calc(2.5rem - 2px)!important}.iccandle-scanner-ai-settings__upgrade-btn-wrap.ai-gradient-border{width:auto!important}.ai-gradient-border .iccandle-scanner-ai-settings__upgrade-btn{width:100%}@keyframes ai-spin-border{to{transform:translate(-50%,-50%)rotate(360deg)}}@media (width<=639px){.iccandle-scanner-ai-settings__row{grid-template-columns:1fr!important}.iccandle-scanner-ai-settings__select-wrap{width:100%!important}}.iccandle-scanner-advanced-options{flex-direction:column!important;gap:.5rem!important;max-width:none!important;margin:0!important;padding:0 1rem!important;display:flex!important;overflow:visible!important}.iccandle-scanner-advanced-options__row{grid-template-columns:1fr auto!important;align-items:center!important;gap:.75rem!important;padding:.25rem 0!important;display:grid!important;position:relative!important;overflow:visible!important}.iccandle-scanner-advanced-options__label{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);font-size:.875rem;flex:1!important;align-items:center!important;gap:.5rem!important;min-width:0!important;display:flex!important}@media (width<=639px){.iccandle-scanner-advanced-options__row{grid-template-columns:1fr!important}}.iccandle-forexIcons{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;position:relative!important}.iccandle-forexIcons__img{border-color:var(--iccandle-background);box-sizing:border-box!important;border-style:solid!important;border-width:2px!important;border-radius:9999px!important;position:absolute!important}.iccandle-forexIcons__img--single{top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}.iccandle-forexIcons__img--left{z-index:8!important;bottom:0!important;left:0!important}.iccandle-forexIcons__img--right{top:0!important;right:0!important}.iccandle-scanner-symbol-search--combobox{flex:none!important;padding:0 1rem!important;display:block!important;position:relative!important;overflow:visible!important}.iccandle-scanner-symbol-search__trigger{border:1px solid color-mix(in oklab, var(--iccandle-border) 80%, transparent)!important;background:var(--iccandle-background)!important;width:100%!important;height:auto!important;min-height:2.5rem!important;color:var(--iccandle-text)!important;cursor:pointer!important;text-align:left!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;font-weight:400!important;display:flex!important}.iccandle-scanner-symbol-search__trigger:hover{background:color-mix(in oklab, var(--iccandle-secondary) 20%, var(--iccandle-background))!important}.iccandle-scanner-symbol-search__chips{flex-wrap:wrap!important;flex:auto!important;align-items:center!important;gap:.25rem!important;min-width:0!important;display:flex!important}.iccandle-scanner-symbol-search__placeholder{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;font-weight:300}.iccandle-scanner-symbol-search__chip{background:var(--iccandle-secondary)!important;max-width:7.5rem!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;gap:.125rem!important;padding:0 .25rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-symbol-search__chip-icon{transform:scale(.75);pointer-events:none!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:1rem!important;height:1rem!important;display:flex!important;overflow:hidden!important}.iccandle-scanner-symbol-search__chip-label{font-size:11px;line-height:1rem;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-scanner-symbol-search__chip-remove{cursor:pointer!important;border-radius:.125rem!important;flex-shrink:0!important;padding:.125rem!important;display:inline-flex!important}.iccandle-scanner-symbol-search__chip-remove:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 40%, transparent)}.iccandle-scanner-symbol-search__chip-overflow{font-variant-numeric:tabular-nums;font-size:11px;background:var(--iccandle-secondary)!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;padding:0 .375rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-symbol-search__trigger-meta{font-variant-numeric:tabular-nums;font-size:.875rem;flex-shrink:0!important;align-items:center!important;gap:.375rem!important;display:flex!important}.iccandle-scanner-symbol-search__popover{z-index:10050!important;box-sizing:border-box!important;border:1px solid var(--iccandle-border)!important;background:var(--iccandle-background)!important;color:var(--iccandle-text)!important;border-radius:.5rem!important;padding:0!important;position:fixed!important;overflow:hidden!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-scanner-symbol-search__search{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 60%, transparent)!important;background:var(--iccandle-background)!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-symbol-search__search-icon{opacity:.5;flex-shrink:0!important;width:1rem!important;height:1rem!important}.iccandle-scanner-symbol-search__command-input{font-size:.875rem;width:100%!important;min-width:0!important;color:var(--iccandle-text)!important;background:0 0!important;border:none!important;outline:none!important}.iccandle-scanner-symbol-search__command-input::placeholder{color:color-mix(in oklab, var(--iccandle-text) 45%, transparent)}.iccandle-scanner-symbol-search__command-list{overflow:hidden auto!important}.iccandle-scanner-symbol-search__empty{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;text-align:center!important;padding:1.5rem .75rem!important}.iccandle-scanner-symbol-search__select-all{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 50%, transparent);background:var(--iccandle-background);z-index:10!important;align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important;position:sticky!important;top:0!important}.iccandle-scanner-symbol-search__group{padding:0!important}.iccandle-scanner-symbol-search__group-row{align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important}.iccandle-scanner-symbol-search__group-check-btn,.iccandle-scanner-symbol-search__group-label-btn,.iccandle-scanner-symbol-search__group-expand-btn{color:inherit;background:0 0;cursor:pointer!important;border:none!important;align-items:center!important;display:inline-flex!important}.iccandle-scanner-symbol-search__group-check-btn{border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;width:1.5rem!important;height:1.5rem!important}.iccandle-scanner-symbol-search__group-check-btn:hover,.iccandle-scanner-symbol-search__group-label-btn:hover,.iccandle-scanner-symbol-search__group-expand-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 35%, transparent)}.iccandle-scanner-symbol-search__group-label-btn{font-size:.875rem;font-weight:500;text-align:left!important;border-radius:.25rem!important;flex:auto!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-symbol-search__group-expand-btn{letter-spacing:.02em;font-size:.75rem;border-radius:.25rem!important;flex:auto!important;justify-content:space-between!important;gap:.375rem!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-symbol-search__item{cursor:pointer!important;width:100%!important;color:var(--iccandle-text)!important;text-align:left!important;background:0 0!important;border:none!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem .5rem 1.5rem!important;display:flex!important}.iccandle-scanner-symbol-search__item:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 55%, transparent)!important}.iccandle-scanner-symbol-search__item-label{font-size:.875rem;font-weight:500;text-overflow:ellipsis!important;white-space:nowrap!important;flex:auto!important;min-width:0!important;overflow:hidden!important}.iccandle-scanner-symbol-search__check{opacity:.5;border:1px solid var(--iccandle-primary)!important;border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:1rem!important;height:1rem!important;display:flex!important}.iccandle-scanner-symbol-search__check--on{opacity:1;opacity:1;border:solid 1px var(--iccandle-primary)!important;color:var(--iccandle-primary)!important;border:solid 1px var(--iccandle-primary)!important}@media (width<=767px){.iccandle-scanner-symbol-search__trigger{flex-direction:column!important;align-items:stretch!important}}.iccandle-scanner-symbol-search__trigger-meta-icon{opacity:.6}.iccandle-scanner-symbol-search__group-expand-icon{transition:transform .15s}.iccandle-scanner-symbol-search__group-expand-icon--collapsed{transform:rotate(-90deg)}.iccandle-scanner-option{background-color:hsl(from var(--iccandle-background) h s l / .5);z-index:10000!important;justify-content:center!important;align-items:center!important;padding:.5rem!important;display:flex!important;position:fixed!important;inset:0!important}.iccandle-scanner-option__card{background-color:var(--iccandle-background);color:var(--iccandle-text);border:1px solid var(--iccandle-border)!important;border-radius:1.5rem!important;flex-direction:column!important;width:100%!important;max-width:35rem!important;min-height:0!important;max-height:min(92dvh,100%)!important;display:flex!important;position:relative!important;overflow:hidden!important;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a!important}.iccandle-scanner-settings{flex-direction:column!important;flex:0 auto!important;gap:.5rem!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important;display:flex!important;overflow:hidden!important}.iccandle-scanner-settings__header{flex-shrink:0!important;justify-content:space-between!important;align-items:flex-start!important;gap:.75rem!important;padding:1rem 1rem 0!important;display:flex!important}.iccandle-scanner-settings__title-wrap{flex-direction:column!important;flex:auto!important;gap:.125rem!important;min-width:0!important;display:flex!important}.iccandle-scanner-settings__title{color:var(--iccandle-text);font-size:1.125rem;font-weight:500;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-scanner-settings__description{color:color-mix(in oklab, var(--iccandle-text) 65%, transparent);font-size:.875rem;font-weight:400}.iccandle-scanner-option__close-btn{color:var(--iccandle-text);cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.5rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:2rem!important;height:2rem!important;padding:0!important;display:flex!important}.iccandle-scanner-option__close-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}.iccandle-scanner-settings__form{flex-direction:column!important;flex:0 auto!important;min-width:0!important;max-width:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.iccandle-scanner-settings__body{flex:0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;padding-top:.5rem!important}.iccandle-scanner-settings__section{margin-bottom:.5rem!important}.iccandle-scanner-settings__section-title{color:var(--iccandle-text);font-size:1rem;font-weight:500;margin-bottom:.5rem!important;padding:0 1rem!important}.iccandle-scanner-settings__accordion-trigger{color:var(--iccandle-text);background:0 0;font-size:1rem;font-weight:500;cursor:pointer!important;border:none!important;justify-content:space-between!important;align-items:center!important;width:100%!important;padding:.5rem 1rem!important;display:flex!important}.iccandle-scanner-settings__accordion-caret{transition:transform .2s;border-left:5px solid #0000!important;border-right:5px solid #0000!important;border-top:6px solid color-mix(in oklab, var(--iccandle-text) 60%, transparent)!important;width:0!important;height:0!important}.iccandle-scanner-settings__accordion-caret--open{transform:rotate(180deg)}.iccandle-scanner-settings__accordion-content{padding-bottom:.5rem!important}.iccandle-scanner-option__footer{border-top:1px solid var(--iccandle-border)!important;flex-direction:column!important;flex-shrink:0!important;gap:.5rem!important;display:flex!important}.iccandle-scanner-option__error{color:#ef4444;overflow-wrap:anywhere;font-size:.875rem;font-weight:500;padding:.75rem 1rem 0!important}.iccandle-scanner-option__actions{flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important;gap:.75rem!important;padding:1rem!important;display:flex!important}.iccandle-scanner-option__always-show{align-items:center!important;gap:.5rem!important;display:flex!important}.iccandle-scanner-option__always-show input[type=checkbox]{width:1rem!important;height:1rem!important;accent-color:var(--iccandle-primary)!important;cursor:pointer!important}.iccandle-scanner-option__always-show-label{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);font-size:.875rem;font-weight:400;cursor:pointer!important}.iccandle-scanner-option__buttons{justify-content:flex-end!important;align-items:center!important;gap:.75rem!important;margin-left:auto!important;display:flex!important}.iccandle-scanner-option__btn{font-size:.875rem;font-weight:600;cursor:pointer!important;border:1px solid #0000!important;border-radius:.5rem!important;justify-content:center!important;align-items:center!important;gap:.375rem!important;height:2.25rem!important;padding:0 .875rem!important;display:inline-flex!important}.iccandle-scanner-option__btn--outline{border-color:var(--iccandle-border);color:var(--iccandle-text);background:0 0}.iccandle-scanner-option__btn--outline:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}.iccandle-scanner-option__btn--primary{background-color:color-mix(in srgb, var(--iccandle-primary) 30%, transparent);color:var(--iccandle-text);border:1px solid var(--iccandle-primary)!important}.iccandle-scanner-option__btn--primary:hover{filter:brightness(.95)}.iccandle-scanner-option__btn--scan{color:#ffb84d}@media (width>=640px){.iccandle-scanner-option__card{max-height:90dvh!important}.iccandle-scanner-settings__title{font-size:1.25rem}.iccandle-scanner-settings__body{padding-top:1rem!important}}.iccandle-pattern-alert-name{background-color:var(--iccandle-background)!important;border-radius:1.5rem!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:24rem!important;display:flex!important;overflow:hidden!important}.iccandle-pattern-alert-name__header{text-align:left!important;flex-direction:column!important;gap:.5rem!important;height:fit-content!important;padding:1rem 1rem 0!important;display:flex!important}.iccandle-pattern-alert-name__title-row{justify-content:space-between!important;align-items:center!important;display:flex!important}.iccandle-pattern-alert-name__title{color:var(--iccandle-text);align-items:center!important;gap:.5rem!important;margin:0!important;font-size:1.125rem!important;font-weight:600!important;line-height:1!important;display:flex!important}.iccandle-pattern-alert-name__title-icon{color:var(--iccandle-primary);flex-shrink:0!important}.iccandle-pattern-alert-name__close-btn{color:var(--iccandle-text);cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.375rem!important;justify-content:center!important;align-items:center!important;width:2rem!important;height:2rem!important;padding:0!important;display:flex!important}.iccandle-pattern-alert-name__close-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}@media (width>=640px){.iccandle-pattern-alert-name__close-btn{display:none!important}}.iccandle-pattern-alert-name__description{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);margin:0!important;font-size:.875rem!important}.iccandle-pattern-alert-name__content{flex-direction:column!important;flex:1!important;justify-content:center!important;align-items:center!important;gap:1.5rem!important;padding:1rem!important;display:flex!important}.iccandle-pattern-alert-name__bell-icon{color:var(--iccandle-primary)}.iccandle-pattern-alert-name__form{width:100%!important}.iccandle-pattern-alert-name__field{align-items:center!important;gap:.5rem!important;width:100%!important;display:grid!important}.iccandle-pattern-alert-name__label{color:var(--iccandle-text);font-size:.875rem!important;font-weight:500!important}.iccandle-pattern-alert-name__input{background-color:var(--iccandle-background);color:var(--iccandle-text);border:1px solid var(--iccandle-border)!important;border-radius:.375rem!important;height:2.25rem!important;padding:0 .75rem!important;font-size:.875rem!important}.iccandle-pattern-alert-name__input::placeholder{color:color-mix(in oklab, var(--iccandle-text) 50%, transparent)}.iccandle-pattern-alert-name__input:focus{border-color:var(--iccandle-primary)!important;outline:none!important}.iccandle-pattern-alert-name__error{color:#ef4444;margin:0!important;font-size:.75rem!important}.iccandle-pattern-alert-name__footer-wrap{height:fit-content!important}@media (width>=640px){.iccandle-pattern-alert-name__footer-wrap{height:25%!important}}.iccandle-pattern-alert-name__divider{border:none!important;border-top:1px solid var(--iccandle-border)!important;margin:0!important}.iccandle-pattern-alert-name__footer{color:color-mix(in oklab, var(--iccandle-text) 80%, transparent);justify-content:flex-end!important;align-items:center!important;gap:1rem!important;padding:1rem!important;font-weight:600!important;display:flex!important}.iccandle-pattern-alert-name__btn{cursor:pointer!important;border:1px solid #0000!important;border-radius:.5rem!important;height:2.25rem!important;padding:0 .875rem!important;font-size:.875rem!important;font-weight:600!important}.iccandle-pattern-alert-name__btn--outline{color:var(--iccandle-text);background:0 0;border-color:var(--iccandle-border)!important}.iccandle-pattern-alert-name__btn--outline:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 20%, transparent)}.iccandle-pattern-alert-name__btn--primary{background-color:color-mix(in srgb, var(--iccandle-primary) 30%, transparent);color:var(--iccandle-primary);border:1px solid var(--iccandle-primary)!important;width:fit-content!important}.iccandle-pattern-alert-name__btn--primary:hover:not(:disabled){filter:brightness(.95)}.iccandle-pattern-alert-name__btn--primary:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-scanner-timeframe-search--combobox{flex:none!important;width:100%!important;padding:0 1rem!important;display:block!important;position:relative!important;overflow:visible!important}.iccandle-scanner-timeframe-search__trigger{border:1px solid color-mix(in oklab, var(--iccandle-border) 80%, transparent)!important;background:var(--iccandle-background)!important;width:100%!important;height:auto!important;min-height:2.5rem!important;color:var(--iccandle-text)!important;cursor:pointer!important;text-align:left!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;font-weight:400!important;display:flex!important}.iccandle-scanner-timeframe-search__trigger:hover{background:color-mix(in oklab, var(--iccandle-secondary) 20%, var(--iccandle-background))!important}.iccandle-scanner-timeframe-search__chips{flex-wrap:wrap!important;flex:auto!important;align-items:center!important;gap:.25rem!important;min-width:0!important;display:flex!important}.iccandle-scanner-timeframe-search__placeholder{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;font-weight:300}.iccandle-scanner-timeframe-search__chip{background:var(--iccandle-secondary)!important;max-width:7.5rem!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;gap:.125rem!important;padding:0 .25rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__chip-label{font-size:11px;line-height:1rem;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-scanner-timeframe-search__chip-remove{cursor:pointer!important;border-radius:.125rem!important;flex-shrink:0!important;padding:.125rem!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__chip-remove:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 40%, transparent)}.iccandle-scanner-timeframe-search__chip-overflow{font-variant-numeric:tabular-nums;font-size:11px;background:var(--iccandle-secondary)!important;color:var(--iccandle-text)!important;border-radius:.375rem!important;align-items:center!important;padding:0 .375rem!important;font-weight:400!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__trigger-meta{font-variant-numeric:tabular-nums;font-size:.875rem;flex-shrink:0!important;align-items:center!important;gap:.375rem!important;display:flex!important}.iccandle-scanner-timeframe-search__popover{z-index:10050!important;box-sizing:border-box!important;border:1px solid var(--iccandle-border)!important;background:var(--iccandle-background)!important;color:var(--iccandle-text)!important;border-radius:.5rem!important;padding:0!important;position:fixed!important;overflow:hidden!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-scanner-timeframe-search__search{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 60%, transparent)!important;background:var(--iccandle-background)!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-timeframe-search__search-icon{opacity:.5;flex-shrink:0!important;width:1rem!important;height:1rem!important}.iccandle-scanner-timeframe-search__command-input{font-size:.875rem;width:100%!important;min-width:0!important;color:var(--iccandle-text)!important;background:0 0!important;border:none!important;outline:none!important}.iccandle-scanner-timeframe-search__command-input::placeholder{color:color-mix(in oklab, var(--iccandle-text) 45%, transparent)}.iccandle-scanner-timeframe-search__command-list{overflow:hidden auto!important}.iccandle-scanner-timeframe-search__empty{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.875rem;text-align:center!important;padding:1.5rem .75rem!important}.iccandle-scanner-timeframe-search__select-all{border-bottom:1px solid color-mix(in oklab, var(--iccandle-border) 50%, transparent);background:var(--iccandle-background);z-index:10!important;align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important;position:sticky!important;top:0!important}.iccandle-scanner-timeframe-search__group{padding:0!important}.iccandle-scanner-timeframe-search__group-row{align-items:center!important;gap:.25rem!important;padding:.375rem .5rem!important;display:flex!important}.iccandle-scanner-timeframe-search__group-check-btn,.iccandle-scanner-timeframe-search__group-label-btn,.iccandle-scanner-timeframe-search__group-expand-btn{color:inherit;background:0 0;cursor:pointer!important;border:none!important;align-items:center!important;display:inline-flex!important}.iccandle-scanner-timeframe-search__group-check-btn{border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;width:1.5rem!important;height:1.5rem!important}.iccandle-scanner-timeframe-search__group-check-btn:hover,.iccandle-scanner-timeframe-search__group-label-btn:hover,.iccandle-scanner-timeframe-search__group-expand-btn:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 35%, transparent)}.iccandle-scanner-timeframe-search__group-label-btn{font-size:.875rem;font-weight:500;text-align:left!important;border-radius:.25rem!important;flex:auto!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-timeframe-search__group-expand-btn{letter-spacing:.02em;font-size:.75rem;border-radius:.25rem!important;flex:auto!important;justify-content:space-between!important;gap:.375rem!important;min-width:0!important;padding:.125rem .25rem!important}.iccandle-scanner-timeframe-search__item{cursor:pointer!important;width:100%!important;color:var(--iccandle-text)!important;text-align:left!important;background:0 0!important;border:none!important;align-items:center!important;gap:.5rem!important;padding:.5rem .75rem!important;display:flex!important}.iccandle-scanner-timeframe-search__item:hover{background-color:color-mix(in oklab, var(--iccandle-secondary) 55%, transparent)!important}.iccandle-scanner-timeframe-search__item-label{font-size:.875rem;font-weight:500;text-overflow:ellipsis!important;white-space:nowrap!important;flex:0 auto!important;min-width:0!important;overflow:hidden!important}.iccandle-scanner-timeframe-search__item-description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);font-size:.75rem;text-overflow:ellipsis!important;white-space:nowrap!important;flex-shrink:0!important;margin-left:auto!important;overflow:hidden!important}.iccandle-scanner-timeframe-search__check{opacity:.5;border:1px solid var(--iccandle-primary)!important;border-radius:.25rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:1rem!important;height:1rem!important;display:flex!important}.iccandle-scanner-timeframe-search__check--on{opacity:1;opacity:1;border:solid 1px var(--iccandle-primary)!important;color:var(--iccandle-primary)!important;border:solid 1px var(--iccandle-primary)!important}@media (width<=767px){.iccandle-scanner-timeframe-search__trigger{flex-direction:column!important;align-items:stretch!important}}.iccandle-timeframes-tab{flex-direction:column!important;gap:.5rem!important;min-height:0!important;display:flex!important}.iccandle-timeframes-tab__header{padding:0!important}.iccandle-timeframes-tab__title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:600!important}.iccandle-timeframes-tab__description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.25rem 0 0!important;font-size:.75rem!important}.iccandle-symbols-tab{flex-direction:column!important;gap:.5rem!important;min-height:0!important;display:flex!important}.iccandle-symbols-tab__header{padding:0!important}.iccandle-symbols-tab__title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:600!important}.iccandle-symbols-tab__description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.25rem 0 0!important;font-size:.75rem!important}.iccandle-time-config-section{color:var(--iccandle-text);flex-direction:column!important;gap:.5rem!important;min-width:0!important;max-width:100%!important;font-size:.875rem!important;display:flex!important;overflow:visible!important}.iccandle-time-config-section__header{padding:0!important}.iccandle-time-config-section__title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:600!important}.iccandle-time-config-section__description{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.25rem 0 0!important;font-size:.75rem!important}.iccandle-time-config-section__fields{flex-direction:column!important;gap:.75rem!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;display:flex!important}.iccandle-time-config-section__row{flex-direction:column!important;gap:.75rem!important;width:100%!important;min-width:0!important;display:flex!important}@media (width>=640px){.iccandle-time-config-section__row{flex-direction:row!important;align-items:flex-end!important}}.iccandle-time-config-section__field{flex-direction:column!important;flex:1 1 0!important;gap:.25rem!important;min-width:0!important;display:flex!important}.iccandle-time-config-section__label{color:color-mix(in oklab, var(--iccandle-text) 65%, transparent);font-size:.75rem!important;font-weight:500!important}.iccandle-time-config-section__input{color:var(--iccandle-text);background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;border-radius:.5rem!important;height:2.5rem!important;padding:.5rem .75rem!important;font-size:.875rem!important}.iccandle-time-config-section__input:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-time-config-section__select-wrap{position:relative!important}.iccandle-time-config-section__select-wrap--open{z-index:10050!important}.iccandle-time-config-section__select-btn{color:var(--iccandle-text);background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;text-align:left!important;cursor:pointer!important;border-radius:.5rem!important;justify-content:space-between!important;align-items:center!important;width:100%!important;height:2.5rem!important;padding:.5rem .75rem!important;font-size:.875rem!important;display:flex!important}.iccandle-time-config-section__select-btn:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-time-config-section__select-label{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.iccandle-time-config-section__dropdown{background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;box-shadow:0 4px 12px color-mix(in oklab, var(--iccandle-text) 12%, transparent)!important;border-radius:.5rem!important;flex-direction:column!important;display:flex!important;overflow:hidden!important}.iccandle-time-config-section__dropdown--portal{z-index:10050!important;position:fixed!important}.iccandle-time-config-section__dropdown-header{border-bottom:1px solid var(--iccandle-border)!important;padding:.5rem .75rem!important}.iccandle-time-config-section__dropdown-title{color:var(--iccandle-text);margin:0!important;font-size:.875rem!important;font-weight:500!important}.iccandle-time-config-section__dropdown-subtitle{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);margin:.125rem 0 0!important;font-size:.75rem!important}.iccandle-time-config-section__dropdown-search{border-bottom:1px solid var(--iccandle-border)!important;padding:.5rem!important}.iccandle-time-config-section__dropdown-search-input{color:var(--iccandle-text);background-color:var(--iccandle-background);border:1px solid var(--iccandle-border)!important;border-radius:.25rem!important;width:100%!important;height:2rem!important;padding:0 .5rem!important;font-size:.875rem!important}.iccandle-time-config-section__dropdown-search-input:focus{border-color:var(--iccandle-primary,#00dfb9)!important;outline:none!important}.iccandle-time-config-section__dropdown-list{margin:0!important;padding:.25rem 0!important;list-style:none!important;overflow-y:auto!important}.iccandle-time-config-section__dropdown-group-label{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);padding:.375rem .75rem!important;font-size:.75rem!important;font-weight:500!important}.iccandle-time-config-section__dropdown-item{color:var(--iccandle-text);background-color:#0000;text-align:left!important;cursor:pointer!important;border:none!important;align-items:center!important;width:100%!important;padding:.5rem .75rem!important;font-size:.875rem!important;display:flex!important}.iccandle-time-config-section__dropdown-item:hover,.iccandle-time-config-section__dropdown-item--selected{background-color:color-mix(in oklab, var(--iccandle-text) 6%, transparent)!important}.iccandle-time-config-section__dropdown-empty{color:color-mix(in oklab, var(--iccandle-text) 55%, transparent);text-align:center!important;padding:.75rem!important;font-size:.875rem!important}.iccandle-time-config-section__check{opacity:0!important;width:1rem!important;height:1rem!important;margin-right:.5rem!important}.iccandle-time-config-section__check--visible{opacity:1!important}.iccandle-pattern-alert-settings{background-color:var(--iccandle-background)!important;border-radius:1.5rem!important;flex-direction:column!important;gap:.5rem!important;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}@media (width>=640px){.iccandle-pattern-alert-settings{gap:.75rem!important}}.iccandle-pattern-alert-settings__header-row{flex-shrink:0!important;align-items:flex-start!important;gap:.5rem!important;padding:16px 16px 0!important;display:flex!important}@media (width>=640px){.iccandle-pattern-alert-settings__header-row{align-items:center!important;gap:2px!important}}.iccandle-pattern-alert-settings__header-icon{color:var(--iccandle-primary);flex-shrink:0!important;margin-top:.125rem!important}@media (width>=640px){.iccandle-pattern-alert-settings__header-icon{margin-top:0!important}}.iccandle-pattern-alert-settings__header{text-align:left!important;flex-direction:column!important;gap:.5rem!important;width:100%!important;min-width:0!important;height:fit-content!important;display:flex!important}.iccandle-pattern-alert-settings__title-row{justify-content:space-between!important;align-items:flex-start!important;gap:.5rem!important;width:100%!important;display:flex!important}@media (width>=640px){.iccandle-pattern-alert-settings__title-row{align-items:center!important}}.iccandle-pattern-alert-settings__title{color:var(--iccandle-text);min-width:0!important;margin:0!important;font-size:1rem!important;font-weight:600!important;line-height:1.25!important}@media (width>=640px){.iccandle-pattern-alert-settings__title{font-size:1.125rem!important}}.iccandle-pattern-alert-settings__title-text{text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important;overflow:hidden!important}.iccandle-pattern-alert-settings__close-btn{color:var(--iccandle-text);cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.375rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;width:2rem!important;height:2rem!important;padding:0!important;display:flex!important}.iccandle-pattern-alert-settings__close-btn:hover{background-color:color-mix(in oklab, var(--iccandle-background) 20%, transparent)}@media (width>=640px){.iccandle-pattern-alert-settings__close-btn{display:none!important}}.iccandle-pattern-alert-settings__description{color:color-mix(in oklab, var(--iccandle-text) 70%, transparent);text-align:left!important;margin:0!important;font-size:.875rem!important}.iccandle-pattern-alert-settings__form{flex-direction:column!important;flex:auto!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.iccandle-pattern-alert-settings__sections{flex-direction:column!important;flex:auto!important;gap:1.5rem!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;padding:16px 0!important;display:flex!important;overflow:hidden auto!important}.iccandle-pattern-alert-settings__section{flex-direction:column!important;gap:.5rem!important;min-width:0!important;padding:0 16px!important;display:flex!important}.iccandle-pattern-alert-settings__time-config{min-width:0!important;max-width:100%!important;min-height:0!important;overflow:visible!important}.iccandle-pattern-alert-settings__section .iccandle-scanner-timeframe-search--combobox,.iccandle-pattern-alert-settings__section .iccandle-scanner-symbol-search--combobox{padding:0!important}.iccandle-pattern-alert-settings__footer{border-top:1px solid var(--iccandle-border)!important;flex-direction:column!important;flex-shrink:0!important;gap:.5rem!important;min-width:0!important;max-width:100%!important;height:fit-content!important;display:flex!important}.iccandle-pattern-alert-settings__error{color:#ef4444;overflow-wrap:break-word!important;opacity:0!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:16px 16px 0!important;font-size:.875rem!important;font-weight:500!important;transition:opacity .15s ease-in-out!important}.iccandle-pattern-alert-settings__error--visible{opacity:1!important}.iccandle-pattern-alert-settings__actions{color:color-mix(in oklab, var(--iccandle-text) 80%, transparent);justify-content:flex-end!important;align-items:center!important;gap:.75rem!important;padding:16px!important;font-weight:600!important;display:flex!important}.iccandle-pattern-alert-settings__actions--with-error{padding-top:0!important}@media (width>=640px){.iccandle-pattern-alert-settings__actions{gap:1rem!important}}.iccandle-pattern-alert-settings__btn{cursor:pointer!important;border:1px solid #0000!important;border-radius:.5rem!important;width:100%!important;height:2.25rem!important;padding:0 .875rem!important;font-size:.875rem!important;font-weight:600!important}@media (width>=640px){.iccandle-pattern-alert-settings__btn{width:fit-content!important}}.iccandle-pattern-alert-settings__btn--outline{color:var(--iccandle-text);background:0 0;border-color:var(--iccandle-border)!important}.iccandle-pattern-alert-settings__btn--outline:hover{background-color:color-mix(in oklab, var(--iccandle-background) 20%, transparent)}.iccandle-pattern-alert-settings__btn--primary{background-color:var(--iccandle-primary)!important;color:var(--iccandle-background)!important;border-color:var(--iccandle-primary)!important}.iccandle-pattern-alert-settings__btn--primary:hover:not(:disabled){filter:brightness(.95)}.iccandle-pattern-alert-settings__btn--primary:disabled{opacity:.5!important;cursor:not-allowed!important}.iccandle-pattern-tracker-modal{z-index:10000!important;background-color:#00000080!important;justify-content:center!important;align-items:center!important;padding:1rem!important;display:flex!important;position:fixed!important;inset:0!important}.iccandle-pattern-tracker-modal__content{border-radius:1.5rem!important;outline:none!important;flex-direction:column!important;width:100%!important;max-width:calc(100% - 2rem)!important;padding:0!important;display:flex!important;position:relative!important;overflow:hidden!important;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a!important}@media (width>=640px){.iccandle-pattern-tracker-modal__content{max-width:425px!important;max-height:60%!important}}.iccandle-pattern-tracker-modal__content--settings{max-width:580px!important;height:80%!important}.iccandle-event-info-modal{z-index:60!important;position:fixed!important;inset:0!important}.iccandle-event-info-modal__dialog{border:1px solid var(--iccandle-border)!important;background:var(--iccandle-background)!important;width:302px!important;color:var(--iccandle-text)!important;box-sizing:border-box!important;border-radius:.375rem!important;padding:1.5rem!important;position:fixed!important;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a!important}.iccandle-event-info-modal__header{justify-content:space-between!important;align-items:center!important;gap:.5rem!important;margin-bottom:1rem!important;display:flex!important}.iccandle-event-info-modal__title-row{align-items:center!important;gap:.5rem!important;min-width:0!important;display:flex!important}.iccandle-event-info-modal__title{text-overflow:ellipsis!important;margin:0!important;font-size:1.125rem!important;font-weight:700!important;line-height:1.4!important;overflow:hidden!important}.iccandle-event-info-modal__close{color:inherit!important;cursor:pointer!important;background:0 0!important;border:none!important;border-radius:.125rem!important;flex-shrink:0!important;justify-content:center!important;align-items:center!important;padding:.25rem!important;display:inline-flex!important}.iccandle-event-info-modal__close:hover{background:color-mix(in srgb, var(--iccandle-text) 8%, transparent)!important}.iccandle-event-info-modal__date{color:color-mix(in srgb, var(--iccandle-text) 60%, transparent)!important;margin:0 0 1rem!important;font-size:.875rem!important}.iccandle-event-info-modal__rows{flex-direction:column!important;gap:.5rem!important;font-size:.875rem!important;display:flex!important}.iccandle-event-info-modal__row{justify-content:space-between!important;align-items:center!important;gap:.75rem!important;display:flex!important}.iccandle-event-info-modal__label{color:color-mix(in srgb, var(--iccandle-text) 55%, transparent)!important}.iccandle-event-info-modal__value{color:var(--iccandle-text)!important;font-weight:600!important}.iccandle-event-info-modal__actions{flex-direction:column-reverse!important;gap:.5rem!important;margin-top:1.5rem!important;display:flex!important}.iccandle-event-info-modal__actions .iccandle-event-info-modal__btn{width:100%!important}@media (width>=640px){.iccandle-event-info-modal__actions{flex-direction:row!important;justify-content:flex-end!important}.iccandle-event-info-modal__actions .iccandle-event-info-modal__btn{width:auto!important}}.iccandle-event-info-modal__loading,.iccandle-event-info-modal__empty{min-width:16rem!important;min-height:12rem!important;color:color-mix(in srgb, var(--iccandle-text) 55%, transparent)!important;text-align:center!important;justify-content:center!important;align-items:center!important;padding:2rem 0!important;font-size:.875rem!important;display:flex!important}.iccandle-event-info-modal__spinner{border:2px solid color-mix(in srgb, var(--iccandle-text) 20%, transparent)!important;border-top-color:var(--iccandle-primary,#ffb84d)!important;border-radius:9999px!important;width:1.5rem!important;height:1.5rem!important;animation:.8s linear infinite iccandle-event-info-spin!important}.iccandle-event-info-modal__btn{cursor:pointer!important;background:var(--iccandle-primary,#ffb84d)!important;color:#111!important;border:1px solid #0000!important;border-radius:.375rem!important;justify-content:center!important;align-items:center!important;min-height:2.25rem!important;padding:.5rem 1rem!important;font-size:.875rem!important;font-weight:600!important;display:inline-flex!important}.iccandle-event-info-modal__btn--outline{border-color:var(--iccandle-border)!important;color:var(--iccandle-text)!important;background:0 0!important}@keyframes iccandle-event-info-spin{to{transform:rotate(360deg)}}.iccandle-toaster{--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.92, calc(l - .06), .98) c h / .92)}[data-sonner-toaster][data-sonner-theme=dark].iccandle-toaster{--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.22, calc(l + .22), .34) c h / .92)}.custom-toast{border:1px solid var(--iccandle-border,#e5e7eb);background:var(--iccandle-background,#fff);width:100%;color:var(--iccandle-text,#111827);border-radius:12px;gap:12px;padding:16px;display:flex;box-shadow:0 8px 24px #0f172a1f}.custom-toast__icon-wrap{background:var(--iccandle-secondary,#f3f4f6);border-radius:9999px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.custom-toast__icon{width:20px;height:20px;color:var(--iccandle-text,#4b5563);opacity:.7}.custom-toast__content{flex:1;min-width:0}.custom-toast__header{justify-content:space-between;align-items:flex-start;display:flex}.custom-toast__title{color:var(--iccandle-text,#111827);margin:0;font-size:14px;font-weight:600;line-height:20px}.custom-toast__description{color:var(--iccandle-text,#4b5563);opacity:.75;margin:4px 0 0;font-size:14px;line-height:20px}.custom-toast__actions{gap:12px;margin-top:12px;display:flex}.custom-toast__button{cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 12px;font-size:14px;font-weight:500;line-height:20px}.custom-toast__button:hover{background:color-mix(in oklab, var(--iccandle-border,#e5e7eb) 35%, transparent)}.custom-toast__button--action{color:var(--iccandle-primary,#2563eb)}.custom-toast__button--dismiss{color:var(--iccandle-text,#4b5563);opacity:.85}.iccandle-toast-host[data-v-1549ae5b]{z-index:2147483647;pointer-events:none;width:min(420px,100vw - 32px);position:fixed;top:16px;right:16px}.iccandle-toast-list[data-v-1549ae5b]{flex-direction:column;gap:12px;display:flex}.iccandle-toast-list[data-v-1549ae5b] .custom-toast{pointer-events:auto}.iccandle-toast-enter-active[data-v-1549ae5b],.iccandle-toast-leave-active[data-v-1549ae5b]{transition:opacity .2s,transform .2s}.iccandle-toast-enter-from[data-v-1549ae5b],.iccandle-toast-leave-to[data-v-1549ae5b]{opacity:0;transform:translateY(-8px)}.iccandle-toast-move[data-v-1549ae5b]{transition:transform .2s}.iccandle-selector-widget,.iccandle-theme-scope{--iccandle-primary:#00dfb9;--iccandle-primary-gradient-end:#ffb84d;--iccandle-background:#fff;--iccandle-border:#d1d5dc;--iccandle-text:#000;--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.92, calc(l - .06), .98) c h / .92);font-family:var(--iccandle-font,"Inter Tight", ui-sans-serif, system-ui, sans-serif)}.iccandle-selector-widget{width:100%!important;height:100%!important;position:relative!important}.iccandle-selector-widget :where(img,picture,video,canvas,svg),.iccandle-theme-scope :where(img,picture,video,canvas,svg){display:revert;max-width:revert}.iccandle-selector-widget__container{--chart-pane-size:60%;width:100%!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.iccandle-selector-widget__chart-pane{width:var(--chart-pane-size)!important;flex:0 0 var(--chart-pane-size)!important;flex-shrink:0!important;min-width:0!important;height:100%!important;min-height:0!important;overflow:hidden!important}.iccandle-selector-widget__resize-handle{cursor:col-resize!important;background:var(--iccandle-border,#d1d5dc)!important;touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;flex-shrink:0!important;width:4px!important}.iccandle-selector-widget__resize-handle:hover,.iccandle-selector-widget__resize-handle:active{background:var(--iccandle-primary,#00dfb9)!important}.iccandle-selector-widget__resize-handle--stacked{cursor:row-resize!important;width:100%!important;height:4px!important}.iccandle-selector-widget__iframe{border:none!important;flex:1 1 0!important;width:auto!important;min-width:0!important;height:100%!important;min-height:0!important}@media (width<=1023px){.iccandle-selector-widget__container{flex-direction:column!important}.iccandle-selector-widget__chart-pane{width:100%!important;height:var(--chart-pane-size)!important;flex:0 0 var(--chart-pane-size)!important}.iccandle-selector-widget__iframe{flex:1 1 0!important;width:100%!important;height:auto!important}.iccandle-selector-widget{width:100%!important}}.full-container{width:100%;height:100%}.iccandle-dark{--iccandle-primary:#00dfb9;--iccandle-primary-gradient-end:#ffb84d;--iccandle-background:#1a1a1a;--iccandle-border:#fff3;--iccandle-text:#fff;--iccandle-secondary:oklch(from var(--iccandle-background) clamp(.22, calc(l + .22), .34) c h / .92)}.iccandle-selector-widget__overlay{z-index:8!important;position:fixed!important;inset:0!important}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import { Fragment as e, Teleport as t, TransitionGroup as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createStaticVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, inject as f, isRef as p, mergeModels as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onWatcherCleanup as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as D, shallowRef as O, toDisplayString as k, unref as A, useModel as j, vModelText as M, watch as N, withCtx as P, withDirectives as F, withModifiers as I } from "vue";
3
3
  import L, { isAxiosError as R } from "axios";
4
4
  //#region src/constants/app.constant.ts
@@ -736,9 +736,11 @@ var ne = {
736
736
  alwaysShow: "Always show",
737
737
  aiModel: "AI Intelligence model",
738
738
  aiTemperature: "AI temperature",
739
- aiModelTooltipLight: "Trained on the last 2 years of data.",
739
+ aiModelTooltipLight: "Trained on the last 1 year of data.",
740
740
  aiModelTooltipPro: "Trained on all historical data.",
741
- aiTemperatureTooltip: "Defines the consistency level of AI predictions."
741
+ aiTemperatureTooltip: "Defines the consistency level of AI predictions.",
742
+ aiModelTooltipStandard: "Trained on the last 3 years of data.",
743
+ aiModelTooltipPlus: "Trained on the last 7 years of data."
742
744
  },
743
745
  UserActivity: {
744
746
  scannedAt: "Scanned At:",
@@ -1667,9 +1669,11 @@ var ne = {
1667
1669
  alwaysShow: "始终显示",
1668
1670
  aiModel: "AI Intelligence 模型",
1669
1671
  aiTemperature: "AI 温度",
1670
- aiModelTooltipLight: "基于近 2 年数据训练。",
1672
+ aiModelTooltipLight: "基于近 1 年数据训练。",
1671
1673
  aiModelTooltipPro: "基于全部历史数据训练。",
1672
- aiTemperatureTooltip: "定义 AI 预测的一致性级别。"
1674
+ aiTemperatureTooltip: "定义 AI 预测的一致性级别。",
1675
+ aiModelTooltipStandard: "基于近 3 年数据训练。",
1676
+ aiModelTooltipPlus: "基于近 7 年数据训练。"
1673
1677
  },
1674
1678
  UserActivity: {
1675
1679
  scannedAt: "扫描时间:",
@@ -2602,9 +2606,11 @@ var ne = {
2602
2606
  alwaysShow: "Luôn hiển thị",
2603
2607
  aiModel: "Mô hình AI Intelligence",
2604
2608
  aiTemperature: "Nhiệt độ AI",
2605
- aiModelTooltipLight: "Được huấn luyện trên dữ liệu 2 năm gần nhất.",
2609
+ aiModelTooltipLight: "Được huấn luyện trên dữ liệu 1 năm gần nhất.",
2606
2610
  aiModelTooltipPro: "Được huấn luyện trên toàn bộ dữ liệu lịch sử.",
2607
- aiTemperatureTooltip: "Xác định mức độ nhất quán của dự đoán AI."
2611
+ aiTemperatureTooltip: "Xác định mức độ nhất quán của dự đoán AI.",
2612
+ aiModelTooltipStandard: "Được huấn luyện trên dữ liệu 3 năm gần nhất.",
2613
+ aiModelTooltipPlus: "Được huấn luyện trên dữ liệu 7 năm gần nhất."
2608
2614
  },
2609
2615
  UserActivity: {
2610
2616
  scannedAt: "Quét lúc:",
@@ -3469,9 +3475,11 @@ var ne = {
3469
3475
  alwaysShow: "แสดงเสมอ",
3470
3476
  aiModel: "โมเดล AI Intelligence",
3471
3477
  aiTemperature: "อุณหภูมิ AI",
3472
- aiModelTooltipLight: "ฝึกด้วยข้อมูล 2 ปีล่าสุด",
3473
- aiModelTooltipPro: "ฝึกด้วยข้อมูลประวัติทั้งหมด",
3474
- aiTemperatureTooltip: "กำหนดระดับความสม่ำเสมอของการทำนาย AI"
3478
+ aiModelTooltipLight: "ฝึกฝนด้วยข้อมูล 1 ปีล่าสุด.",
3479
+ aiModelTooltipPro: "ฝึกฝนด้วยข้อมูลประวัติทั้งหมด.",
3480
+ aiTemperatureTooltip: "กำหนดระดับความสม่ำเสมอของการทำนาย AI",
3481
+ aiModelTooltipStandard: "ฝึกฝนด้วยข้อมูล 3 ปีล่าสุด.",
3482
+ aiModelTooltipPlus: "ฝึกฝนด้วยข้อมูล 7 ปีล่าสุด."
3475
3483
  },
3476
3484
  UserActivity: {
3477
3485
  scannedAt: "สแกนเมื่อ:",
@@ -4404,9 +4412,11 @@ var ne = {
4404
4412
  alwaysShow: "항상 표시",
4405
4413
  aiModel: "AI Intelligence 모델",
4406
4414
  aiTemperature: "AI 온도",
4407
- aiModelTooltipLight: "최근 2년간의 데이터로 학습되었습니다.",
4408
- aiModelTooltipPro: "모든 과거 데이터로 학습되었습니다.",
4409
- aiTemperatureTooltip: "AI 예측의 일관성 수준을 정의합니다."
4415
+ aiModelTooltipLight: "최근 1년간의 데이터로 학습되었습니다.",
4416
+ aiModelTooltipPro: "전체 과거 데이터로 학습되었습니다.",
4417
+ aiTemperatureTooltip: "AI 예측의 일관성 수준을 정의합니다.",
4418
+ aiModelTooltipStandard: "최근 3년간의 데이터로 학습되었습니다.",
4419
+ aiModelTooltipPlus: "최근 7년간의 데이터로 학습되었습니다."
4410
4420
  },
4411
4421
  UserActivity: {
4412
4422
  scannedAt: "스캔 시간:",
@@ -5339,9 +5349,11 @@ var ne = {
5339
5349
  alwaysShow: "常に表示",
5340
5350
  aiModel: "AI Intelligence モデル",
5341
5351
  aiTemperature: "AI 温度",
5342
- aiModelTooltipLight: "過去2年間のデータで学習されています。",
5343
- aiModelTooltipPro: "すべての履歴データで学習されています。",
5344
- aiTemperatureTooltip: "AI予測の一貫性レベルを定義します。"
5352
+ aiModelTooltipLight: "過去1年間のデータで学習されています。",
5353
+ aiModelTooltipPro: "全履歴データで学習されています。",
5354
+ aiTemperatureTooltip: "AI予測の一貫性レベルを定義します。",
5355
+ aiModelTooltipStandard: "過去3年間のデータで学習されています。",
5356
+ aiModelTooltipPlus: "過去7年間のデータで学習されています。"
5345
5357
  },
5346
5358
  UserActivity: {
5347
5359
  scannedAt: "スキャン日時:",
@@ -6274,9 +6286,11 @@ var ne = {
6274
6286
  alwaysShow: "Үргэлж харуулах",
6275
6287
  aiModel: "AI Intelligence модель",
6276
6288
  aiTemperature: "AI температур",
6277
- aiModelTooltipLight: "Сүүлийн 2 жилийн өгөгдлөөр сургагдсан.",
6278
- aiModelTooltipPro: "Бүх түүхэн өгөгдлөөр сургагдсан.",
6279
- aiTemperatureTooltip: "AI таамаглалын тогтвортой байдлын түвшинг тодорхойлно."
6289
+ aiModelTooltipLight: "сүүлийн 1 жилийн өгөгдөл дээр сургагдсан.",
6290
+ aiModelTooltipPro: "бүх түүхэн өгөгдөл дээр сургагдсан.",
6291
+ aiTemperatureTooltip: "AI таамаглалын тогтвортой байдлын түвшинг тодорхойлно.",
6292
+ aiModelTooltipStandard: "сүүлийн 3 жилийн өгөгдөл дээр сургагдсан.",
6293
+ aiModelTooltipPlus: "сүүлийн 7 жилийн өгөгдөл дээр сургагдсан."
6280
6294
  },
6281
6295
  UserActivity: {
6282
6296
  scannedAt: "Скан хийсэн:",
@@ -7208,9 +7222,11 @@ var ne = {
7208
7222
  alwaysShow: "Всегда показывать",
7209
7223
  aiModel: "Модель AI Intelligence",
7210
7224
  aiTemperature: "Температура AI",
7211
- aiModelTooltipLight: "Обучена на данных за последние 2 года.",
7212
- aiModelTooltipPro: "Обучена на всех исторических данных.",
7213
- aiTemperatureTooltip: "Определяет уровень согласованности AI-прогнозов."
7225
+ aiModelTooltipLight: "обучена на данных за последний 1 год.",
7226
+ aiModelTooltipPro: "обучена на всех исторических данных.",
7227
+ aiTemperatureTooltip: "Определяет уровень согласованности AI-прогнозов.",
7228
+ aiModelTooltipStandard: "обучена на данных за последние 3 года.",
7229
+ aiModelTooltipPlus: "обучена на данных за последние 7 лет."
7214
7230
  },
7215
7231
  UserActivity: {
7216
7232
  scannedAt: "Сканировано:",
@@ -7763,6 +7779,7 @@ var we = { class: "iccandle-simple-tooltip-trigger" }, Te = {
7763
7779
  window_size: {},
7764
7780
  handleShowDialog: {},
7765
7781
  onOpenScanConfig: {},
7782
+ onScanClick: {},
7766
7783
  pendingScanAfterConfig: {
7767
7784
  type: Boolean,
7768
7785
  default: !1
@@ -7903,7 +7920,7 @@ var we = { class: "iccandle-simple-tooltip-trigger" }, Te = {
7903
7920
  }), !1);
7904
7921
  }
7905
7922
  function j() {
7906
- if (O()) {
7923
+ if (n.onScanClick?.(), O()) {
7907
7924
  if (n.selectedCandles?.length) {
7908
7925
  fe({
7909
7926
  title: c("Common.error"),
@@ -7946,7 +7963,7 @@ var we = { class: "iccandle-simple-tooltip-trigger" }, Te = {
7946
7963
  r[4] ||= s("div", { class: "iccandle-scanner-popup__divider" }, null, -1),
7947
7964
  t.hasActiveShape ? (x(), o(e, { key: 0 }, [
7948
7965
  u(Ee, { text: A(c)("Selector.availableBars") }, {
7949
- default: P(() => [s("div", Ye, k(A(c)("Pattern.barsCount", { count: t.window_size })), 1)]),
7966
+ default: P(() => [s("div", Ye, k(t.window_size) + " bar ", 1)]),
7950
7967
  _: 1
7951
7968
  }, 8, ["text"]),
7952
7969
  t.hideScanButton ? a("", !0) : (x(), i(Ee, {
@@ -8054,7 +8071,7 @@ var it = (e, t) => {
8054
8071
  return t.setUTCHours(0, 0, 0, 0), t.getTime();
8055
8072
  }
8056
8073
  return e.toString().length > 11 ? e : e * 1e3;
8057
- }, at = {
8074
+ }, at = (e) => e > 1e11 ? Math.floor(e / 1e3) : e, ot = {
8058
8075
  min: 10,
8059
8076
  max: 50,
8060
8077
  custom: [
@@ -8465,11 +8482,11 @@ var it = (e, t) => {
8465
8482
  type: "commodity",
8466
8483
  session: "1700-1700"
8467
8484
  }
8468
- ], ot = [
8485
+ ], st = [
8469
8486
  "width",
8470
8487
  "height",
8471
8488
  "stroke"
8472
- ], st = /* @__PURE__ */ d({
8489
+ ], ct = /* @__PURE__ */ d({
8473
8490
  __name: "XIcon",
8474
8491
  props: {
8475
8492
  size: { default: 24 },
@@ -8488,15 +8505,15 @@ var it = (e, t) => {
8488
8505
  "stroke-linecap": "round",
8489
8506
  "stroke-linejoin": "round",
8490
8507
  class: g(e.className)
8491
- }, [...n[0] ||= [s("path", { d: "M18 6 6 18" }, null, -1), s("path", { d: "m6 6 12 12" }, null, -1)]], 10, ot));
8508
+ }, [...n[0] ||= [s("path", { d: "M18 6 6 18" }, null, -1), s("path", { d: "m6 6 12 12" }, null, -1)]], 10, st));
8492
8509
  }
8493
- }), ct = ["width", "height"], lt = { class: "iccandle-info-tooltip-content__inner" }, ut = { class: "iccandle-info-tooltip-content__title" }, dt = {
8510
+ }), lt = ["width", "height"], ut = { class: "iccandle-info-tooltip-content__inner" }, dt = { class: "iccandle-info-tooltip-content__title" }, ft = {
8494
8511
  key: 0,
8495
8512
  class: "iccandle-info-tooltip-content__body"
8496
- }, ft = { class: "iccandle-info-tooltip-content__line-label" }, pt = {
8513
+ }, pt = { class: "iccandle-info-tooltip-content__line-label" }, mt = {
8497
8514
  key: 1,
8498
8515
  class: "iccandle-info-tooltip-content__description"
8499
- }, mt = /* @__PURE__ */ d({
8516
+ }, ht = /* @__PURE__ */ d({
8500
8517
  __name: "ToolTip",
8501
8518
  props: {
8502
8519
  title: {},
@@ -8579,24 +8596,24 @@ var it = (e, t) => {
8579
8596
  }, null, -1),
8580
8597
  s("path", { d: "M12 16v-4" }, null, -1),
8581
8598
  s("path", { d: "M12 8h.01" }, null, -1)
8582
- ]], 10, ct))], 32), (x(), i(t, { to: p.value }, [f.value ? (x(), o("div", {
8599
+ ]], 10, lt))], 32), (x(), i(t, { to: p.value }, [f.value ? (x(), o("div", {
8583
8600
  key: 0,
8584
8601
  ref_key: "contentRef",
8585
8602
  ref: d,
8586
8603
  class: g(A(Z)("iccandle-info-tooltip-content", "iccandle-theme-scope", y.value && "iccandle-dark")),
8587
8604
  role: "tooltip",
8588
8605
  style: _(m.value)
8589
- }, [s("div", lt, [s("h4", ut, k(n.title), 1), n.lines?.length ? (x(), o("div", dt, [(x(!0), o(e, null, T(n.lines, (e) => (x(), o("p", {
8606
+ }, [s("div", ut, [s("h4", dt, k(n.title), 1), n.lines?.length ? (x(), o("div", ft, [(x(!0), o(e, null, T(n.lines, (e) => (x(), o("p", {
8590
8607
  key: e.label,
8591
8608
  class: "iccandle-info-tooltip-content__line"
8592
- }, [s("span", ft, k(e.label), 1), l(" " + k(e.text), 1)]))), 128))])) : n.description ? (x(), o("p", pt, k(n.description), 1)) : a("", !0)])], 6)) : a("", !0)], 8, ["to"]))], 64));
8609
+ }, [s("span", pt, k(e.label), 1), l(" " + k(e.text), 1)]))), 128))])) : n.description ? (x(), o("p", mt, k(n.description), 1)) : a("", !0)])], 6)) : a("", !0)], 8, ["to"]))], 64));
8593
8610
  }
8594
- }), ht = [
8611
+ }), gt = [
8595
8612
  "width",
8596
8613
  "height",
8597
8614
  "stroke",
8598
8615
  "stroke-width"
8599
- ], gt = /* @__PURE__ */ d({
8616
+ ], _t = /* @__PURE__ */ d({
8600
8617
  __name: "ChevronDownIcon",
8601
8618
  props: {
8602
8619
  size: { default: 16 },
@@ -8616,12 +8633,12 @@ var it = (e, t) => {
8616
8633
  "stroke-linecap": "round",
8617
8634
  "stroke-linejoin": "round",
8618
8635
  class: g(e.className)
8619
- }, [...n[0] ||= [s("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 10, ht));
8636
+ }, [...n[0] ||= [s("path", { d: "m6 9 6 6 6-6" }, null, -1)]], 10, gt));
8620
8637
  }
8621
- }), _t = ["aria-expanded"], vt = ["aria-selected", "onClick"], yt = {
8638
+ }), vt = ["aria-expanded"], yt = ["aria-selected", "onClick"], bt = {
8622
8639
  key: 0,
8623
8640
  class: "iccandle-scanner-ai-settings__upgrade-btn-wrap ai-gradient-border"
8624
- }, bt = /* @__PURE__ */ d({
8641
+ }, xt = /* @__PURE__ */ d({
8625
8642
  __name: "LimitSelect",
8626
8643
  props: {
8627
8644
  value: {},
@@ -8702,11 +8719,11 @@ var it = (e, t) => {
8702
8719
  "aria-expanded": n.open,
8703
8720
  "aria-haspopup": "listbox",
8704
8721
  onClick: M
8705
- }, [s("span", null, k(n.getLabel(n.value)), 1), u(gt, {
8722
+ }, [s("span", null, k(n.getLabel(n.value)), 1), u(_t, {
8706
8723
  size: 16,
8707
8724
  "class-name": `iccandle-scanner-ai-settings__trigger-chevron${n.open ? " iccandle-scanner-ai-settings__trigger-chevron--open" : ""}`,
8708
8725
  "aria-hidden": "true"
8709
- }, null, 8, ["class-name"])], 8, _t)], 2), n.open && C.value ? (x(), i(t, {
8726
+ }, null, 8, ["class-name"])], 8, vt)], 2), n.open && C.value ? (x(), i(t, {
8710
8727
  key: 0,
8711
8728
  to: b.value
8712
8729
  }, [s("div", {
@@ -8721,13 +8738,13 @@ var it = (e, t) => {
8721
8738
  "aria-selected": e === n.value,
8722
8739
  class: g(["iccandle-scanner-ai-settings__dropdown-item", (n.isLocked?.(e) ?? !1) && "iccandle-scanner-ai-settings__dropdown-item--locked"]),
8723
8740
  onClick: (t) => P(e, n.isLocked?.(e) ?? !1)
8724
- }, [s("span", { class: g(n.isLocked?.(e) ?? !1 ? "is-disabled" : void 0) }, k(n.getLabel(e)), 3), n.isLocked?.(e) ? (x(), o("span", yt, [s("button", {
8741
+ }, [s("span", { class: g(n.isLocked?.(e) ?? !1 ? "is-disabled" : void 0) }, k(n.getLabel(e)), 3), n.isLocked?.(e) ? (x(), o("span", bt, [s("button", {
8725
8742
  type: "button",
8726
8743
  class: "iccandle-scanner-ai-settings__upgrade-btn",
8727
8744
  onMousedown: F
8728
- }, k(A(f)("Common.upgradePlan")), 33)])) : a("", !0)], 10, vt))), 128))], 6)], 8, ["to"])) : a("", !0)], 2));
8745
+ }, k(A(f)("Common.upgradePlan")), 33)])) : a("", !0)], 10, yt))), 128))], 6)], 8, ["to"])) : a("", !0)], 2));
8729
8746
  }
8730
- }), xt = { class: "iccandle-scanner-advanced-options" }, St = { class: "iccandle-scanner-advanced-options__row" }, Ct = { class: "iccandle-scanner-advanced-options__label" }, wt = { class: "iccandle-scanner-advanced-options__row" }, Tt = { class: "iccandle-scanner-advanced-options__label" }, Et = { class: "iccandle-scanner-advanced-options__row" }, Dt = { class: "iccandle-scanner-advanced-options__label" }, Ot = /* @__PURE__ */ d({
8747
+ }), St = { class: "iccandle-scanner-advanced-options" }, Ct = { class: "iccandle-scanner-advanced-options__row" }, wt = { class: "iccandle-scanner-advanced-options__label" }, Tt = { class: "iccandle-scanner-advanced-options__row" }, Et = { class: "iccandle-scanner-advanced-options__label" }, Dt = { class: "iccandle-scanner-advanced-options__row" }, Ot = { class: "iccandle-scanner-advanced-options__label" }, kt = /* @__PURE__ */ d({
8731
8748
  __name: "ScannerAdvancedOptions",
8732
8749
  props: /*@__PURE__*/ m({ temperature: {} }, {
8733
8750
  modelValue: { required: !0 },
@@ -8813,14 +8830,14 @@ var it = (e, t) => {
8813
8830
  function y(e, t) {
8814
8831
  c.value = t ? e : null;
8815
8832
  }
8816
- return (t, r) => (x(), o("div", xt, [
8817
- s("div", St, [s("label", Ct, [l(k(A(a)("Selector.period")) + " ", 1), u(mt, {
8833
+ return (t, r) => (x(), o("div", St, [
8834
+ s("div", Ct, [s("label", wt, [l(k(A(a)("Selector.period")) + " ", 1), u(ht, {
8818
8835
  title: A(a)("Selector.period"),
8819
8836
  description: A(a)("Selector.periodTooltip"),
8820
8837
  side: "right",
8821
8838
  size: 16,
8822
8839
  "class-name": "text-muted-foreground"
8823
- }, null, 8, ["title", "description"])]), u(bt, {
8840
+ }, null, 8, ["title", "description"])]), u(xt, {
8824
8841
  value: n.value.period ?? 0,
8825
8842
  options: p,
8826
8843
  "get-label": (e) => g.value.get(e) ?? String(e),
@@ -8832,13 +8849,13 @@ var it = (e, t) => {
8832
8849
  "get-label",
8833
8850
  "open"
8834
8851
  ])]),
8835
- s("div", wt, [s("label", Tt, [l(k(A(a)("Common.timeframe")) + " ", 1), u(mt, {
8852
+ s("div", Tt, [s("label", Et, [l(k(A(a)("Common.timeframe")) + " ", 1), u(ht, {
8836
8853
  title: A(a)("Common.timeframe"),
8837
8854
  description: A(a)("Selector.timeframeTooltip"),
8838
8855
  side: "right",
8839
8856
  size: 16,
8840
8857
  "class-name": "text-muted-foreground"
8841
- }, null, 8, ["title", "description"])]), u(bt, {
8858
+ }, null, 8, ["title", "description"])]), u(xt, {
8842
8859
  value: n.value.timeframe,
8843
8860
  options: m,
8844
8861
  "get-label": (e) => _.value.get(e) ?? e,
@@ -8850,13 +8867,13 @@ var it = (e, t) => {
8850
8867
  "get-label",
8851
8868
  "open"
8852
8869
  ])]),
8853
- s("div", Et, [s("label", Dt, [l(k(A(a)("Selector.aiTemperature")) + " ", 1), u(mt, {
8870
+ s("div", Dt, [s("label", Ot, [l(k(A(a)("Selector.aiTemperature")) + " ", 1), u(ht, {
8854
8871
  title: A(a)("Selector.aiTemperature"),
8855
8872
  description: A(a)("Selector.aiTemperatureTooltip"),
8856
8873
  side: "right",
8857
8874
  size: 16,
8858
8875
  "class-name": "text-muted-foreground"
8859
- }, null, 8, ["title", "description"])]), u(bt, {
8876
+ }, null, 8, ["title", "description"])]), u(xt, {
8860
8877
  value: e.temperature,
8861
8878
  options: h,
8862
8879
  "get-label": v,
@@ -8866,7 +8883,18 @@ var it = (e, t) => {
8866
8883
  }, null, 8, ["value", "open"])])
8867
8884
  ]));
8868
8885
  }
8869
- }), kt = { class: "iccandle-scanner-ai-settings" }, At = { class: "iccandle-scanner-ai-settings__row" }, jt = { class: "iccandle-scanner-ai-settings__label" }, Mt = { class: "iccandle-scanner-ai-settings__row" }, Nt = { class: "iccandle-scanner-ai-settings__label" }, Pt = /* @__PURE__ */ d({
8886
+ }), At = [
8887
+ "light",
8888
+ "standard",
8889
+ "plus",
8890
+ "pro"
8891
+ ], jt = "light";
8892
+ function Mt(e) {
8893
+ return At.includes(e) ? e : jt;
8894
+ }
8895
+ //#endregion
8896
+ //#region src/components/selector/ScannerAiSettings.vue?vue&type=script&setup=true&lang.ts
8897
+ var Nt = { class: "iccandle-scanner-ai-settings" }, Pt = { class: "iccandle-scanner-ai-settings__row" }, Ft = { class: "iccandle-scanner-ai-settings__label" }, It = { class: "iccandle-scanner-ai-settings__row" }, Lt = { class: "iccandle-scanner-ai-settings__label" }, Rt = /* @__PURE__ */ d({
8870
8898
  __name: "ScannerAiSettings",
8871
8899
  props: /*@__PURE__*/ m({
8872
8900
  userResultLimit: {},
@@ -8878,7 +8906,17 @@ var it = (e, t) => {
8878
8906
  }),
8879
8907
  emits: /*@__PURE__*/ m(["modelChange", "upgradeClick"], ["update:topK"]),
8880
8908
  setup(e, { emit: t }) {
8881
- let n = [
8909
+ let n = {
8910
+ light: "CSE Light",
8911
+ standard: "CSE Std",
8912
+ plus: "CSE Plus",
8913
+ pro: "CSE Pro"
8914
+ }, i = {
8915
+ light: "Selector.aiModelTooltipLight",
8916
+ standard: "Selector.aiModelTooltipStandard",
8917
+ plus: "Selector.aiModelTooltipPlus",
8918
+ pro: "Selector.aiModelTooltipPro"
8919
+ }, a = [
8882
8920
  10,
8883
8921
  30,
8884
8922
  50,
@@ -8886,94 +8924,95 @@ var it = (e, t) => {
8886
8924
  100,
8887
8925
  150,
8888
8926
  200
8889
- ], r = j(e, "topK"), i = e, a = t, { t: c } = X(), d = w(null), f = ["light", "pro"];
8890
- function p(e) {
8891
- return e > i.userResultLimit;
8927
+ ], c = j(e, "topK"), d = e, f = t, { t: p } = X(), m = w(null), h = r(() => At.map((e) => ({
8928
+ label: n[e],
8929
+ text: p(i[e])
8930
+ })));
8931
+ function g(e) {
8932
+ return e > d.userResultLimit;
8892
8933
  }
8893
- function m(e) {
8894
- return e === "pro" && !i.isProModelEnabled;
8934
+ function _(e) {
8935
+ return e !== "light" && !d.isProModelEnabled;
8895
8936
  }
8896
- function h(e) {
8897
- return e === "light" ? "CSE Light" : "CSE Pro";
8937
+ function v(e) {
8938
+ return n[e];
8898
8939
  }
8899
- function g() {
8900
- a("upgradeClick");
8940
+ function y() {
8941
+ f("upgradeClick");
8901
8942
  }
8902
- return (t, i) => (x(), o("div", kt, [s("div", At, [s("label", jt, [l(k(A(c)("Selector.result")) + " ", 1), u(mt, {
8903
- title: A(c)("Selector.result"),
8904
- description: A(c)("Selector.topResultsTooltip"),
8943
+ return (t, n) => (x(), o("div", Nt, [s("div", Pt, [s("label", Ft, [l(k(A(p)("Selector.result")) + " ", 1), u(ht, {
8944
+ title: A(p)("Selector.result"),
8945
+ description: A(p)("Selector.topResultsTooltip"),
8905
8946
  side: "right",
8906
8947
  size: 16,
8907
8948
  "class-name": "text-muted-foreground"
8908
- }, null, 8, ["title", "description"])]), u(bt, {
8909
- value: r.value ?? 30,
8910
- options: n,
8911
- "is-locked": p,
8949
+ }, null, 8, ["title", "description"])]), u(xt, {
8950
+ value: c.value ?? 30,
8951
+ options: a,
8952
+ "is-locked": g,
8912
8953
  "get-label": (e) => String(e),
8913
- open: d.value === "top_k",
8914
- "on-upgrade-click": g,
8915
- onChange: i[0] ||= (e) => r.value = e,
8916
- onOpenChange: i[1] ||= (e) => d.value = e ? "top_k" : null
8954
+ open: m.value === "top_k",
8955
+ "on-upgrade-click": y,
8956
+ onChange: n[0] ||= (e) => c.value = e,
8957
+ onOpenChange: n[1] ||= (e) => m.value = e ? "top_k" : null
8917
8958
  }, null, 8, [
8918
8959
  "value",
8919
8960
  "get-label",
8920
8961
  "open"
8921
- ])]), s("div", Mt, [s("div", Nt, [l(k(A(c)("Selector.aiModel")) + " ", 1), u(mt, {
8922
- title: A(c)("Selector.aiModel"),
8923
- lines: [{
8924
- label: "CSE Light",
8925
- text: A(c)("Selector.aiModelTooltipLight")
8926
- }, {
8927
- label: "CSE Pro",
8928
- text: A(c)("Selector.aiModelTooltipPro")
8929
- }],
8962
+ ])]), s("div", It, [s("div", Lt, [l(k(A(p)("Selector.aiModel")) + " ", 1), u(ht, {
8963
+ title: A(p)("Selector.aiModel"),
8964
+ lines: h.value,
8930
8965
  side: "right",
8931
8966
  size: 16,
8932
8967
  "class-name": "text-muted-foreground"
8933
- }, null, 8, ["title", "lines"])]), u(bt, {
8968
+ }, null, 8, ["title", "lines"])]), u(xt, {
8934
8969
  value: e.model,
8935
- options: f,
8936
- "is-locked": m,
8937
- "get-label": h,
8970
+ options: A(At),
8971
+ "is-locked": _,
8972
+ "get-label": v,
8938
8973
  "wrap-class-name": "ai-gradient-border",
8939
- open: d.value === "model",
8940
- "on-upgrade-click": g,
8941
- onChange: i[2] ||= (e) => a("modelChange", e),
8942
- onOpenChange: i[3] ||= (e) => d.value = e ? "model" : null
8943
- }, null, 8, ["value", "open"])])]));
8974
+ open: m.value === "model",
8975
+ "on-upgrade-click": y,
8976
+ onChange: n[2] ||= (e) => f("modelChange", e),
8977
+ onOpenChange: n[3] ||= (e) => m.value = e ? "model" : null
8978
+ }, null, 8, [
8979
+ "value",
8980
+ "options",
8981
+ "open"
8982
+ ])])]));
8944
8983
  }
8945
- }), Ft = { class: "iccandle-forexIcons" }, It = ["src"], Lt = ["src"], Rt = ["src"], zt = /* @__PURE__ */ d({
8984
+ }), zt = { class: "iccandle-forexIcons" }, Bt = ["src"], Vt = ["src"], Ht = ["src"], Ut = /* @__PURE__ */ d({
8946
8985
  __name: "ForexIcons",
8947
8986
  props: { name: {} },
8948
8987
  setup(t) {
8949
8988
  let n = t, i = r(() => Q?.find((e) => e.ticker === n.name)?.logo_urls.map((e) => e) || []);
8950
- return (t, n) => (x(), o("div", Ft, [i.value.length === 1 ? (x(), o("img", {
8989
+ return (t, n) => (x(), o("div", zt, [i.value.length === 1 ? (x(), o("img", {
8951
8990
  key: 0,
8952
8991
  src: i.value[0],
8953
8992
  alt: "forex icon",
8954
8993
  width: "24",
8955
8994
  height: "24",
8956
8995
  class: "iccandle-forexIcons__img iccandle-forexIcons__img--single"
8957
- }, null, 8, It)) : i.value.length === 2 ? (x(), o(e, { key: 1 }, [s("img", {
8996
+ }, null, 8, Bt)) : i.value.length === 2 ? (x(), o(e, { key: 1 }, [s("img", {
8958
8997
  src: i.value[0],
8959
8998
  alt: "forex icon 1",
8960
8999
  width: "18",
8961
9000
  height: "18",
8962
9001
  class: "iccandle-forexIcons__img iccandle-forexIcons__img--left"
8963
- }, null, 8, Lt), s("img", {
9002
+ }, null, 8, Vt), s("img", {
8964
9003
  src: i.value[1],
8965
9004
  alt: "forex icon 2",
8966
9005
  width: "18",
8967
9006
  height: "18",
8968
9007
  class: "iccandle-forexIcons__img iccandle-forexIcons__img--right"
8969
- }, null, 8, Rt)], 64)) : a("", !0)]));
9008
+ }, null, 8, Ht)], 64)) : a("", !0)]));
8970
9009
  }
8971
- }), Bt = [
9010
+ }), Wt = [
8972
9011
  "width",
8973
9012
  "height",
8974
9013
  "stroke",
8975
9014
  "stroke-width"
8976
- ], Vt = /* @__PURE__ */ d({
9015
+ ], Gt = /* @__PURE__ */ d({
8977
9016
  __name: "CheckIcon",
8978
9017
  props: {
8979
9018
  size: { default: 16 },
@@ -8993,14 +9032,14 @@ var it = (e, t) => {
8993
9032
  "stroke-linecap": "round",
8994
9033
  "stroke-linejoin": "round",
8995
9034
  class: g(e.className)
8996
- }, [...n[0] ||= [s("polyline", { points: "20 6 9 17 4 12" }, null, -1)]], 10, Bt));
9035
+ }, [...n[0] ||= [s("polyline", { points: "20 6 9 17 4 12" }, null, -1)]], 10, Wt));
8997
9036
  }
8998
- }), Ht = [
9037
+ }), Kt = [
8999
9038
  "width",
9000
9039
  "height",
9001
9040
  "stroke",
9002
9041
  "stroke-width"
9003
- ], Ut = /* @__PURE__ */ d({
9042
+ ], qt = /* @__PURE__ */ d({
9004
9043
  __name: "ChevronsUpDownIcon",
9005
9044
  props: {
9006
9045
  size: { default: 16 },
@@ -9020,14 +9059,14 @@ var it = (e, t) => {
9020
9059
  "stroke-linecap": "round",
9021
9060
  "stroke-linejoin": "round",
9022
9061
  class: g(e.className)
9023
- }, [...n[0] ||= [s("path", { d: "m7 15 5 5 5-5" }, null, -1), s("path", { d: "m7 9 5-5 5 5" }, null, -1)]], 10, Ht));
9062
+ }, [...n[0] ||= [s("path", { d: "m7 15 5 5 5-5" }, null, -1), s("path", { d: "m7 9 5-5 5 5" }, null, -1)]], 10, Kt));
9024
9063
  }
9025
- }), Wt = [
9064
+ }), Jt = [
9026
9065
  "width",
9027
9066
  "height",
9028
9067
  "stroke",
9029
9068
  "stroke-width"
9030
- ], Gt = /* @__PURE__ */ d({
9069
+ ], Yt = /* @__PURE__ */ d({
9031
9070
  __name: "MinusIcon",
9032
9071
  props: {
9033
9072
  size: { default: 16 },
@@ -9047,14 +9086,14 @@ var it = (e, t) => {
9047
9086
  "stroke-linecap": "round",
9048
9087
  "stroke-linejoin": "round",
9049
9088
  class: g(e.className)
9050
- }, [...n[0] ||= [s("path", { d: "M5 12h14" }, null, -1)]], 10, Wt));
9089
+ }, [...n[0] ||= [s("path", { d: "M5 12h14" }, null, -1)]], 10, Jt));
9051
9090
  }
9052
- }), Kt = [
9091
+ }), Xt = [
9053
9092
  "width",
9054
9093
  "height",
9055
9094
  "stroke",
9056
9095
  "stroke-width"
9057
- ], qt = /* @__PURE__ */ d({
9096
+ ], Zt = /* @__PURE__ */ d({
9058
9097
  __name: "SearchIcon",
9059
9098
  props: {
9060
9099
  size: { default: 24 },
@@ -9078,47 +9117,47 @@ var it = (e, t) => {
9078
9117
  cx: "11",
9079
9118
  cy: "11",
9080
9119
  r: "8"
9081
- }, null, -1), s("path", { d: "m21 21-4.3-4.3" }, null, -1)]], 10, Kt));
9120
+ }, null, -1), s("path", { d: "m21 21-4.3-4.3" }, null, -1)]], 10, Xt));
9082
9121
  }
9083
- }), Jt = ["aria-expanded"], Yt = { class: "iccandle-scanner-symbol-search__chips" }, Xt = {
9122
+ }), Qt = ["aria-expanded"], $t = { class: "iccandle-scanner-symbol-search__chips" }, en = {
9084
9123
  key: 0,
9085
9124
  class: "iccandle-scanner-symbol-search__placeholder"
9086
- }, Zt = { class: "iccandle-scanner-symbol-search__chip-icon" }, Qt = { class: "iccandle-scanner-symbol-search__chip-label" }, $t = [
9125
+ }, tn = { class: "iccandle-scanner-symbol-search__chip-icon" }, nn = { class: "iccandle-scanner-symbol-search__chip-label" }, rn = [
9087
9126
  "aria-label",
9088
9127
  "onClick",
9089
9128
  "onKeydown"
9090
- ], en = {
9129
+ ], an = {
9091
9130
  key: 0,
9092
9131
  class: "iccandle-scanner-symbol-search__chip-overflow"
9093
- }, tn = { class: "iccandle-scanner-symbol-search__trigger-meta" }, nn = { class: "iccandle-scanner-symbol-search__search" }, rn = [
9132
+ }, on = { class: "iccandle-scanner-symbol-search__trigger-meta" }, sn = { class: "iccandle-scanner-symbol-search__search" }, cn = [
9094
9133
  "placeholder",
9095
9134
  "value",
9096
9135
  "aria-label"
9097
- ], an = {
9136
+ ], ln = {
9098
9137
  key: 0,
9099
9138
  class: "iccandle-scanner-symbol-search__empty"
9100
- }, on = {
9139
+ }, un = {
9101
9140
  key: 1,
9102
9141
  class: "iccandle-scanner-symbol-search__select-all"
9103
- }, sn = ["aria-label"], cn = {
9142
+ }, dn = ["aria-label"], fn = {
9104
9143
  key: 0,
9105
9144
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9106
- }, ln = {
9145
+ }, pn = {
9107
9146
  key: 1,
9108
9147
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9109
- }, un = {
9148
+ }, mn = {
9110
9149
  key: 2,
9111
9150
  class: "iccandle-scanner-symbol-search__check"
9112
- }, dn = { class: "iccandle-scanner-symbol-search__group-row" }, fn = ["aria-label", "onClick"], pn = {
9151
+ }, hn = { class: "iccandle-scanner-symbol-search__group-row" }, gn = ["aria-label", "onClick"], _n = {
9113
9152
  key: 0,
9114
9153
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9115
- }, mn = {
9154
+ }, vn = {
9116
9155
  key: 1,
9117
9156
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9118
- }, hn = {
9157
+ }, yn = {
9119
9158
  key: 2,
9120
9159
  class: "iccandle-scanner-symbol-search__check"
9121
- }, gn = ["aria-expanded", "onClick"], _n = ["aria-selected", "onClick"], vn = { class: "iccandle-scanner-symbol-search__item-label" }, yn = 3, bn = /* @__PURE__ */ d({
9160
+ }, bn = ["aria-expanded", "onClick"], xn = ["aria-selected", "onClick"], Sn = { class: "iccandle-scanner-symbol-search__item-label" }, Cn = 3, wn = /* @__PURE__ */ d({
9122
9161
  __name: "ScannerSymbolSearch",
9123
9162
  props: {
9124
9163
  searchTerm: {},
@@ -9152,7 +9191,7 @@ var it = (e, t) => {
9152
9191
  let t = e?.closest(".iccandle-theme-scope, .iccandle-selector-widget") ?? document.body;
9153
9192
  O.value = t;
9154
9193
  }
9155
- let L = r(() => (f.allSymbols ?? f.filteredSymbols ?? []).filter((e) => f.selectedSymbols[e.ticker])), R = r(() => L.value.slice(0, yn)), ee = r(() => L.value.length - R.value.length), z = r(() => {
9194
+ let L = r(() => (f.allSymbols ?? f.filteredSymbols ?? []).filter((e) => f.selectedSymbols[e.ticker])), R = r(() => L.value.slice(0, Cn)), ee = r(() => L.value.length - R.value.length), z = r(() => {
9156
9195
  let e = /* @__PURE__ */ new Set();
9157
9196
  for (let t of L.value) e.add(t.type);
9158
9197
  return e;
@@ -9247,12 +9286,12 @@ var it = (e, t) => {
9247
9286
  "aria-haspopup": "listbox",
9248
9287
  class: "iccandle-scanner-symbol-search__trigger",
9249
9288
  onClick: c[0] ||= (e) => J(!D.value)
9250
- }, [s("div", Yt, [L.value.length === 0 ? (x(), o("span", Xt, k(A(m)("Selector.searchSymbol")), 1)) : (x(), o(e, { key: 1 }, [(x(!0), o(e, null, T(R.value, (e) => (x(), o("span", {
9289
+ }, [s("div", $t, [L.value.length === 0 ? (x(), o("span", en, k(A(m)("Selector.searchSymbol")), 1)) : (x(), o(e, { key: 1 }, [(x(!0), o(e, null, T(R.value, (e) => (x(), o("span", {
9251
9290
  key: e.ticker,
9252
9291
  class: "iccandle-scanner-symbol-search__chip"
9253
9292
  }, [
9254
- s("span", Zt, [u(zt, { name: e.ticker }, null, 8, ["name"])]),
9255
- s("span", Qt, k(e.display_name), 1),
9293
+ s("span", tn, [u(Ut, { name: e.ticker }, null, 8, ["name"])]),
9294
+ s("span", nn, k(e.display_name), 1),
9256
9295
  s("span", {
9257
9296
  role: "button",
9258
9297
  tabindex: "0",
@@ -9262,11 +9301,11 @@ var it = (e, t) => {
9262
9301
  onKeydown: (t) => {
9263
9302
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), p("symbolChange", e.ticker, !1));
9264
9303
  }
9265
- }, [u(st, { size: 10 })], 40, $t)
9266
- ]))), 128)), ee.value > 0 ? (x(), o("span", en, " +" + k(ee.value), 1)) : a("", !0)], 64))]), s("div", tn, [s("span", null, k(se.value), 1), u(Ut, {
9304
+ }, [u(ct, { size: 10 })], 40, rn)
9305
+ ]))), 128)), ee.value > 0 ? (x(), o("span", an, " +" + k(ee.value), 1)) : a("", !0)], 64))]), s("div", on, [s("span", null, k(se.value), 1), u(qt, {
9267
9306
  size: 16,
9268
9307
  "class-name": "iccandle-scanner-symbol-search__trigger-meta-icon"
9269
- })])], 8, Jt), D.value && M.value ? (x(), i(t, {
9308
+ })])], 8, Qt), D.value && M.value ? (x(), i(t, {
9270
9309
  key: 0,
9271
9310
  to: O.value
9272
9311
  }, [s("div", {
@@ -9281,7 +9320,7 @@ var it = (e, t) => {
9281
9320
  width: `${M.value.width}px`,
9282
9321
  maxHeight: `${M.value.maxHeight}px`
9283
9322
  })
9284
- }, [s("div", nn, [u(qt, {
9323
+ }, [s("div", sn, [u(Zt, {
9285
9324
  size: 16,
9286
9325
  "class-name": "iccandle-scanner-symbol-search__search-icon"
9287
9326
  }), s("input", {
@@ -9293,17 +9332,17 @@ var it = (e, t) => {
9293
9332
  value: n.searchTerm,
9294
9333
  "aria-label": A(m)("Selector.searchSymbol"),
9295
9334
  onInput: c[1] ||= (e) => p("searchChange", e.target.value.toUpperCase())
9296
- }, null, 40, rn)]), s("div", {
9335
+ }, null, 40, cn)]), s("div", {
9297
9336
  class: "iccandle-scanner-symbol-search__command-list",
9298
9337
  style: _({ maxHeight: `${ce.value}px` })
9299
9338
  }, [
9300
- n.searchTerm.trim() && V.value.length === 0 ? (x(), o("div", an, k(A(m)("Selector.noResultsFound")), 1)) : a("", !0),
9301
- V.value.length > 0 ? (x(), o("div", on, [s("button", {
9339
+ n.searchTerm.trim() && V.value.length === 0 ? (x(), o("div", ln, k(A(m)("Selector.noResultsFound")), 1)) : a("", !0),
9340
+ V.value.length > 0 ? (x(), o("div", un, [s("button", {
9302
9341
  type: "button",
9303
9342
  class: "iccandle-scanner-symbol-search__group-check-btn",
9304
9343
  "aria-label": A(m)("Selector.selectAll"),
9305
9344
  onClick: ne
9306
- }, [oe.value === "all" ? (x(), o("div", cn, [u(Vt, { size: 12 })])) : oe.value === "some" ? (x(), o("div", ln, [u(Gt, { size: 12 })])) : (x(), o("div", un))], 8, sn), s("button", {
9345
+ }, [oe.value === "all" ? (x(), o("div", fn, [u(Gt, { size: 12 })])) : oe.value === "some" ? (x(), o("div", pn, [u(Yt, { size: 12 })])) : (x(), o("div", mn))], 8, dn), s("button", {
9307
9346
  type: "button",
9308
9347
  class: "iccandle-scanner-symbol-search__group-label-btn",
9309
9348
  onClick: ne
@@ -9311,20 +9350,20 @@ var it = (e, t) => {
9311
9350
  (x(!0), o(e, null, T(B.value, (t) => (x(), o("div", {
9312
9351
  key: t.type,
9313
9352
  class: "iccandle-scanner-symbol-search__group"
9314
- }, [s("div", dn, [s("button", {
9353
+ }, [s("div", hn, [s("button", {
9315
9354
  type: "button",
9316
9355
  class: "iccandle-scanner-symbol-search__group-check-btn",
9317
9356
  "aria-label": `${A(m)("Selector.selectAll")} ${A(m)(d[t.type])}`,
9318
9357
  onClick: I((e) => te(t.symbols), ["stop", "prevent"])
9319
- }, [H(t.symbols) === "all" ? (x(), o("div", pn, [u(Vt, { size: 12 })])) : H(t.symbols) === "some" ? (x(), o("div", mn, [u(Gt, { size: 12 })])) : (x(), o("div", hn))], 8, fn), s("button", {
9358
+ }, [H(t.symbols) === "all" ? (x(), o("div", _n, [u(Gt, { size: 12 })])) : H(t.symbols) === "some" ? (x(), o("div", vn, [u(Yt, { size: 12 })])) : (x(), o("div", yn))], 8, gn), s("button", {
9320
9359
  type: "button",
9321
9360
  class: "iccandle-scanner-symbol-search__group-expand-btn",
9322
9361
  "aria-expanded": U(t.type),
9323
9362
  onClick: (e) => W(t.type)
9324
- }, [s("span", null, k(A(m)(d[t.type])), 1), u(gt, {
9363
+ }, [s("span", null, k(A(m)(d[t.type])), 1), u(_t, {
9325
9364
  size: 16,
9326
9365
  "class-name": A(Z)("iccandle-scanner-symbol-search__group-expand-icon", !U(t.type) && "iccandle-scanner-symbol-search__group-expand-icon--collapsed")
9327
- }, null, 8, ["class-name"])], 8, gn)]), U(t.type) ? (x(!0), o(e, { key: 0 }, T(t.symbols, (e) => (x(), o("button", {
9366
+ }, null, 8, ["class-name"])], 8, bn)]), U(t.type) ? (x(!0), o(e, { key: 0 }, T(t.symbols, (e) => (x(), o("button", {
9328
9367
  key: e.ticker,
9329
9368
  type: "button",
9330
9369
  role: "option",
@@ -9332,25 +9371,25 @@ var it = (e, t) => {
9332
9371
  class: "iccandle-scanner-symbol-search__item",
9333
9372
  onClick: (t) => G(e.ticker)
9334
9373
  }, [
9335
- s("div", { class: g(A(Z)("iccandle-scanner-symbol-search__check", n.selectedSymbols[e.ticker] && "iccandle-scanner-symbol-search__check--on")) }, [n.selectedSymbols[e.ticker] ? (x(), i(Vt, {
9374
+ s("div", { class: g(A(Z)("iccandle-scanner-symbol-search__check", n.selectedSymbols[e.ticker] && "iccandle-scanner-symbol-search__check--on")) }, [n.selectedSymbols[e.ticker] ? (x(), i(Gt, {
9336
9375
  key: 0,
9337
9376
  size: 12
9338
9377
  })) : a("", !0)], 2),
9339
- u(zt, { name: e.ticker }, null, 8, ["name"]),
9340
- s("div", vn, k(e.display_name), 1)
9341
- ], 8, _n))), 128)) : a("", !0)]))), 128))
9378
+ u(Ut, { name: e.ticker }, null, 8, ["name"]),
9379
+ s("div", Sn, k(e.display_name), 1)
9380
+ ], 8, xn))), 128)) : a("", !0)]))), 128))
9342
9381
  ], 4)], 6)], 8, ["to"])) : a("", !0)], 512));
9343
9382
  }
9344
- }), xn = { class: "iccandle-scanner-settings" }, Sn = { class: "iccandle-scanner-settings__header" }, Cn = { class: "iccandle-scanner-settings__title-wrap" }, wn = { class: "iccandle-scanner-settings__title" }, Tn = { class: "iccandle-scanner-settings__description" }, En = ["aria-label"], Dn = { class: "iccandle-scanner-settings__body" }, On = { class: "iccandle-scanner-settings__section" }, kn = { class: "iccandle-scanner-settings__section-title" }, An = { class: "iccandle-scanner-settings__section" }, jn = { class: "iccandle-scanner-settings__section" }, Mn = ["aria-expanded"], Nn = {
9383
+ }), Tn = { class: "iccandle-scanner-settings" }, En = { class: "iccandle-scanner-settings__header" }, Dn = { class: "iccandle-scanner-settings__title-wrap" }, On = { class: "iccandle-scanner-settings__title" }, kn = { class: "iccandle-scanner-settings__description" }, An = ["aria-label"], jn = { class: "iccandle-scanner-settings__body" }, Mn = { class: "iccandle-scanner-settings__section" }, Nn = { class: "iccandle-scanner-settings__section-title" }, Pn = { class: "iccandle-scanner-settings__section" }, Fn = { class: "iccandle-scanner-settings__section" }, In = ["aria-expanded"], Ln = {
9345
9384
  key: 0,
9346
9385
  class: "iccandle-scanner-settings__accordion-content"
9347
- }, Pn = { class: "iccandle-scanner-option__footer" }, Fn = {
9386
+ }, Rn = { class: "iccandle-scanner-option__footer" }, zn = {
9348
9387
  key: 0,
9349
9388
  class: "iccandle-scanner-option__error"
9350
- }, In = { class: "iccandle-scanner-option__actions" }, Ln = { class: "iccandle-scanner-option__always-show" }, Rn = ["checked"], zn = {
9389
+ }, Bn = { class: "iccandle-scanner-option__actions" }, Vn = { class: "iccandle-scanner-option__always-show" }, Hn = ["checked"], Un = {
9351
9390
  for: "scanner-always-show",
9352
9391
  class: "iccandle-scanner-option__always-show-label"
9353
- }, Bn = { class: "iccandle-scanner-option__buttons" }, Vn = /* @__PURE__ */ d({
9392
+ }, Wn = { class: "iccandle-scanner-option__buttons" }, Gn = /* @__PURE__ */ d({
9354
9393
  __name: "ScannerSettingsStep",
9355
9394
  props: {
9356
9395
  intent: {},
@@ -9388,8 +9427,8 @@ var it = (e, t) => {
9388
9427
  return e?.timeframe ? e.timeframe : t === "1" || t === "5" ? "60" : t || "60";
9389
9428
  }
9390
9429
  let T = w(localStorage.getItem("iccandle_token") ? null : "free"), E = r(() => c(T.value)), D = r(() => T.value === "pro" || T.value === "expert"), O = w(ge()), j = h(), M = j?.top_k ?? 30, P = w(""), F = w(""), I = null, R = w(!1), z = w((() => {
9391
- let e = j?.model ?? "light";
9392
- return !localStorage.getItem("iccandle_token") && e === "pro" ? "light" : e;
9430
+ let e = Mt(j?.model);
9431
+ return !localStorage.getItem("iccandle_token") && e !== "light" ? "light" : e;
9393
9432
  })()), B = w(j?.temperature ?? 1), V = w(_(j, d.currentSymbol)), H = w(null), U = null, W = C({
9394
9433
  probability: j?.probability ?? 0,
9395
9434
  top_k: localStorage.getItem("iccandle_token") ? M : Math.min(n.free, M),
@@ -9479,27 +9518,27 @@ var it = (e, t) => {
9479
9518
  let t = e?.user_credit?.plan?.toLowerCase() || "free";
9480
9519
  T.value = t;
9481
9520
  let n = c(t);
9482
- W.top_k = Math.min(n, M), !(t === "pro" || t === "expert") && z.value === "pro" && (z.value = "light");
9521
+ W.top_k = Math.min(n, M), !(t === "pro" || t === "expert") && z.value !== "light" && (z.value = "light");
9483
9522
  }).catch(() => {
9484
- T.value = "free", W.top_k = Math.min(n.free, M), z.value === "pro" && (z.value = "light");
9523
+ T.value = "free", W.top_k = Math.min(n.free, M), z.value !== "light" && (z.value = "light");
9485
9524
  });
9486
9525
  }), v(() => {
9487
9526
  window.removeEventListener("keydown", se), I && clearTimeout(I), U && clearTimeout(U);
9488
9527
  });
9489
9528
  let ce = r(() => d.intent === "scan" ? m("Selector.scan") : m("Selector.saveOptions"));
9490
- return (t, n) => (x(), o("div", xn, [
9491
- s("div", Sn, [s("div", Cn, [s("div", wn, k(A(m)("Selector.scannerOptions")), 1), s("div", Tn, k(A(m)("Selector.scannerOptionsDescription")), 1)]), s("button", {
9529
+ return (t, n) => (x(), o("div", Tn, [
9530
+ s("div", En, [s("div", Dn, [s("div", On, k(A(m)("Selector.scannerOptions")), 1), s("div", kn, k(A(m)("Selector.scannerOptionsDescription")), 1)]), s("button", {
9492
9531
  type: "button",
9493
9532
  class: "iccandle-scanner-option__close-btn",
9494
9533
  "aria-label": A(m)("Common.close"),
9495
9534
  onClick: Y
9496
- }, [u(st, { size: 20 })], 8, En)]),
9535
+ }, [u(ct, { size: 20 })], 8, An)]),
9497
9536
  s("form", {
9498
9537
  id: "scanner-option-form",
9499
9538
  class: "iccandle-scanner-settings__form",
9500
9539
  onSubmit: ie
9501
- }, [s("div", Dn, [
9502
- s("section", On, [s("h3", kn, k(A(m)("Selector.tabSymbols")), 1), u(bn, {
9540
+ }, [s("div", jn, [
9541
+ s("section", Mn, [s("h3", Nn, k(A(m)("Selector.tabSymbols")), 1), u(wn, {
9503
9542
  "search-term": P.value,
9504
9543
  "selected-symbols": V.value,
9505
9544
  "filtered-symbols": te.value,
@@ -9517,7 +9556,7 @@ var it = (e, t) => {
9517
9556
  "logo-by-ticker",
9518
9557
  "all-symbols"
9519
9558
  ])]),
9520
- s("section", An, [u(Pt, {
9559
+ s("section", Pn, [u(Rt, {
9521
9560
  "top-k": A(W).top_k,
9522
9561
  "onUpdate:topK": n[1] ||= (e) => A(W).top_k = e,
9523
9562
  "user-result-limit": E.value,
@@ -9531,24 +9570,24 @@ var it = (e, t) => {
9531
9570
  "model",
9532
9571
  "is-pro-model-enabled"
9533
9572
  ])]),
9534
- s("section", jn, [s("button", {
9573
+ s("section", Fn, [s("button", {
9535
9574
  type: "button",
9536
9575
  class: "iccandle-scanner-settings__accordion-trigger",
9537
9576
  "aria-expanded": R.value,
9538
9577
  onClick: n[3] ||= (e) => R.value = !R.value
9539
- }, [s("span", null, k(A(m)("Selector.tabAdvancedOptions")), 1), s("span", { class: g(A(Z)("iccandle-scanner-settings__accordion-caret", R.value && "iccandle-scanner-settings__accordion-caret--open")) }, null, 2)], 8, Mn), R.value ? (x(), o("div", Nn, [u(Ot, {
9578
+ }, [s("span", null, k(A(m)("Selector.tabAdvancedOptions")), 1), s("span", { class: g(A(Z)("iccandle-scanner-settings__accordion-caret", R.value && "iccandle-scanner-settings__accordion-caret--open")) }, null, 2)], 8, In), R.value ? (x(), o("div", Ln, [u(kt, {
9540
9579
  modelValue: A(W),
9541
9580
  "onUpdate:modelValue": n[4] ||= (e) => p(W) ? W.value = e : W = e,
9542
9581
  temperature: B.value,
9543
9582
  onTemperatureChange: n[5] ||= (e) => B.value = e
9544
9583
  }, null, 8, ["modelValue", "temperature"])])) : a("", !0)])
9545
9584
  ])], 32),
9546
- s("div", Pn, [H.value ? (x(), o("p", Fn, k(H.value), 1)) : a("", !0), s("div", In, [s("div", Ln, [s("input", {
9585
+ s("div", Rn, [H.value ? (x(), o("p", zn, k(H.value), 1)) : a("", !0), s("div", Bn, [s("div", Vn, [s("input", {
9547
9586
  id: "scanner-always-show",
9548
9587
  type: "checkbox",
9549
9588
  checked: O.value,
9550
9589
  onChange: n[6] ||= (e) => ae(e.target.checked)
9551
- }, null, 40, Rn), s("label", zn, k(A(m)("Selector.alwaysShow")), 1)]), s("div", Bn, [s("button", {
9590
+ }, null, 40, Hn), s("label", Un, k(A(m)("Selector.alwaysShow")), 1)]), s("div", Wn, [s("button", {
9552
9591
  type: "button",
9553
9592
  class: "iccandle-scanner-option__btn iccandle-scanner-option__btn--outline",
9554
9593
  onClick: Y
@@ -9563,7 +9602,7 @@ var it = (e, t) => {
9563
9602
  })) : a("", !0), l(" " + k(ce.value), 1)], 2)])])])
9564
9603
  ]));
9565
9604
  }
9566
- }), Hn = /* @__PURE__ */ d({
9605
+ }), Kn = /* @__PURE__ */ d({
9567
9606
  __name: "ScannerOption",
9568
9607
  props: {
9569
9608
  intent: { default: "settings" },
@@ -9592,7 +9631,7 @@ var it = (e, t) => {
9592
9631
  }, [s("div", {
9593
9632
  class: "iccandle-scanner-option__card",
9594
9633
  onPointerdown: r[0] ||= I(() => {}, ["stop"])
9595
- }, [u(Vn, {
9634
+ }, [u(Gn, {
9596
9635
  intent: e.intent,
9597
9636
  "set-resolution": e.setResolution,
9598
9637
  timeframe: e.timeframe,
@@ -9608,11 +9647,11 @@ var it = (e, t) => {
9608
9647
  "onCancel"
9609
9648
  ])], 32)], 34)]));
9610
9649
  }
9611
- }), Un = [
9650
+ }), qn = [
9612
9651
  "width",
9613
9652
  "height",
9614
9653
  "stroke"
9615
- ], Wn = /* @__PURE__ */ d({
9654
+ ], Jn = /* @__PURE__ */ d({
9616
9655
  __name: "BellIcon",
9617
9656
  props: {
9618
9657
  size: { default: 20 },
@@ -9631,9 +9670,9 @@ var it = (e, t) => {
9631
9670
  "stroke-linecap": "round",
9632
9671
  "stroke-linejoin": "round",
9633
9672
  class: g(e.className)
9634
- }, [...n[0] ||= [s("path", { d: "M10.268 21a2 2 0 0 0 3.464 0" }, null, -1), s("path", { d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }, null, -1)]], 10, Un));
9673
+ }, [...n[0] ||= [s("path", { d: "M10.268 21a2 2 0 0 0 3.464 0" }, null, -1), s("path", { d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }, null, -1)]], 10, qn));
9635
9674
  }
9636
- }), Gn = ["width", "height"], Kn = ["stroke"], qn = ["stroke"], Jn = /* @__PURE__ */ d({
9675
+ }), Yn = ["width", "height"], Xn = ["stroke"], Zn = ["stroke"], Qn = /* @__PURE__ */ d({
9637
9676
  __name: "CloseIcon",
9638
9677
  props: {
9639
9678
  size: { default: 24 },
@@ -9654,24 +9693,24 @@ var it = (e, t) => {
9654
9693
  "stroke-width": "2",
9655
9694
  "stroke-linecap": "round",
9656
9695
  "stroke-linejoin": "round"
9657
- }, null, 8, Kn), s("path", {
9696
+ }, null, 8, Xn), s("path", {
9658
9697
  d: "m6 6 12 12",
9659
9698
  stroke: e.color,
9660
9699
  "stroke-width": "2",
9661
9700
  "stroke-linecap": "round",
9662
9701
  "stroke-linejoin": "round"
9663
- }, null, 8, qn)], 10, Gn));
9702
+ }, null, 8, Zn)], 10, Yn));
9664
9703
  }
9665
- }), Yn = { class: "iccandle-pattern-alert-name" }, Xn = { class: "iccandle-pattern-alert-name__header" }, Zn = { class: "iccandle-pattern-alert-name__title-row" }, Qn = { class: "iccandle-pattern-alert-name__title" }, $n = ["aria-label"], er = { class: "iccandle-pattern-alert-name__description" }, tr = { class: "iccandle-pattern-alert-name__content" }, nr = { class: "iccandle-pattern-alert-name__form" }, rr = { class: "iccandle-pattern-alert-name__field" }, ir = {
9704
+ }), $n = { class: "iccandle-pattern-alert-name" }, er = { class: "iccandle-pattern-alert-name__header" }, tr = { class: "iccandle-pattern-alert-name__title-row" }, nr = { class: "iccandle-pattern-alert-name__title" }, rr = ["aria-label"], ir = { class: "iccandle-pattern-alert-name__description" }, ar = { class: "iccandle-pattern-alert-name__content" }, or = { class: "iccandle-pattern-alert-name__form" }, sr = { class: "iccandle-pattern-alert-name__field" }, cr = {
9666
9705
  for: "patternName",
9667
9706
  class: "iccandle-pattern-alert-name__label"
9668
- }, ar = ["placeholder", "value"], or = {
9707
+ }, lr = ["placeholder", "value"], ur = {
9669
9708
  key: 0,
9670
9709
  class: "iccandle-pattern-alert-name__error"
9671
- }, sr = {
9710
+ }, dr = {
9672
9711
  key: 1,
9673
9712
  class: "iccandle-pattern-alert-name__error"
9674
- }, cr = { class: "iccandle-pattern-alert-name__footer-wrap" }, lr = { class: "iccandle-pattern-alert-name__footer" }, ur = ["disabled"], dr = /* @__PURE__ */ d({
9713
+ }, fr = { class: "iccandle-pattern-alert-name__footer-wrap" }, pr = { class: "iccandle-pattern-alert-name__footer" }, mr = ["disabled"], hr = /* @__PURE__ */ d({
9675
9714
  __name: "PatternAlertNameStep",
9676
9715
  props: {
9677
9716
  patternName: {},
@@ -9685,8 +9724,8 @@ var it = (e, t) => {
9685
9724
  let t = e.target.value.slice(0, 20);
9686
9725
  n("patternNameChange", t);
9687
9726
  }
9688
- return (t, n) => (x(), o("div", Yn, [
9689
- s("div", Xn, [s("div", Zn, [s("h2", Qn, [u(Be, {
9727
+ return (t, n) => (x(), o("div", $n, [
9728
+ s("div", er, [s("div", tr, [s("h2", nr, [u(Be, {
9690
9729
  size: 20,
9691
9730
  "class-name": "iccandle-pattern-alert-name__title-icon"
9692
9731
  }), l(" " + k(A(r)("Pattern.addToPatternTracker")), 1)]), s("button", {
@@ -9694,12 +9733,12 @@ var it = (e, t) => {
9694
9733
  class: "iccandle-pattern-alert-name__close-btn",
9695
9734
  "aria-label": A(r)("Common.close"),
9696
9735
  onClick: n[0] ||= (...t) => e.onCancel && e.onCancel(...t)
9697
- }, [u(Jn, { size: 20 })], 8, $n)]), s("p", er, k(A(r)("Pattern.addToPatternTrackerDescription")), 1)]),
9698
- s("div", tr, [u(Wn, {
9736
+ }, [u(Qn, { size: 20 })], 8, rr)]), s("p", ir, k(A(r)("Pattern.addToPatternTrackerDescription")), 1)]),
9737
+ s("div", ar, [u(Jn, {
9699
9738
  size: 64,
9700
9739
  "class-name": "iccandle-pattern-alert-name__bell-icon"
9701
- }), s("div", nr, [s("div", rr, [
9702
- s("label", ir, k(A(r)("Pattern.patternName")), 1),
9740
+ }), s("div", or, [s("div", sr, [
9741
+ s("label", cr, k(A(r)("Pattern.patternName")), 1),
9703
9742
  s("input", {
9704
9743
  id: "patternName",
9705
9744
  class: "iccandle-pattern-alert-name__input",
@@ -9708,10 +9747,10 @@ var it = (e, t) => {
9708
9747
  maxlength: "20",
9709
9748
  minlength: "5",
9710
9749
  onInput: i
9711
- }, null, 40, ar),
9712
- e.patternName.length === 20 ? (x(), o("p", or, k(A(r)("Pattern.patternNameMaxChars")), 1)) : e.patternName.trim().length > 0 && e.patternName.trim().length < 5 ? (x(), o("p", sr, k(A(r)("Pattern.patternNameMinChars")), 1)) : a("", !0)
9750
+ }, null, 40, lr),
9751
+ e.patternName.length === 20 ? (x(), o("p", ur, k(A(r)("Pattern.patternNameMaxChars")), 1)) : e.patternName.trim().length > 0 && e.patternName.trim().length < 5 ? (x(), o("p", dr, k(A(r)("Pattern.patternNameMinChars")), 1)) : a("", !0)
9713
9752
  ])])]),
9714
- s("div", cr, [n[3] ||= s("hr", { class: "iccandle-pattern-alert-name__divider" }, null, -1), s("div", lr, [s("button", {
9753
+ s("div", fr, [n[3] ||= s("hr", { class: "iccandle-pattern-alert-name__divider" }, null, -1), s("div", pr, [s("button", {
9715
9754
  type: "button",
9716
9755
  class: "iccandle-pattern-alert-name__btn iccandle-pattern-alert-name__btn--outline",
9717
9756
  onClick: n[1] ||= (...t) => e.onCancel && e.onCancel(...t)
@@ -9720,10 +9759,10 @@ var it = (e, t) => {
9720
9759
  class: "iccandle-pattern-alert-name__btn iccandle-pattern-alert-name__btn--primary",
9721
9760
  disabled: e.patternName.trim().length < 5,
9722
9761
  onClick: n[2] ||= (...t) => e.onNext && e.onNext(...t)
9723
- }, k(A(r)("Common.next")), 9, ur)])])
9762
+ }, k(A(r)("Common.next")), 9, mr)])])
9724
9763
  ]));
9725
9764
  }
9726
- }), fr = [
9765
+ }), gr = [
9727
9766
  {
9728
9767
  value: "M15",
9729
9768
  label: "M15",
@@ -9760,33 +9799,33 @@ var it = (e, t) => {
9760
9799
  description: "Daily",
9761
9800
  type: "daily"
9762
9801
  }
9763
- ], pr = ["aria-expanded"], mr = { class: "iccandle-scanner-timeframe-search__chips" }, hr = {
9802
+ ], _r = ["aria-expanded"], vr = { class: "iccandle-scanner-timeframe-search__chips" }, yr = {
9764
9803
  key: 0,
9765
9804
  class: "iccandle-scanner-timeframe-search__placeholder"
9766
- }, gr = { class: "iccandle-scanner-timeframe-search__chip-label" }, _r = [
9805
+ }, br = { class: "iccandle-scanner-timeframe-search__chip-label" }, xr = [
9767
9806
  "aria-label",
9768
9807
  "onClick",
9769
9808
  "onKeydown"
9770
- ], vr = { class: "iccandle-scanner-timeframe-search__trigger-meta" }, yr = { class: "iccandle-scanner-timeframe-search__search" }, br = [
9809
+ ], Sr = { class: "iccandle-scanner-timeframe-search__trigger-meta" }, Cr = { class: "iccandle-scanner-timeframe-search__search" }, wr = [
9771
9810
  "placeholder",
9772
9811
  "value",
9773
9812
  "aria-label"
9774
- ], xr = {
9813
+ ], Tr = {
9775
9814
  key: 0,
9776
9815
  class: "iccandle-scanner-timeframe-search__empty"
9777
- }, Sr = {
9816
+ }, Er = {
9778
9817
  key: 1,
9779
9818
  class: "iccandle-scanner-timeframe-search__select-all"
9780
- }, Cr = ["aria-label"], wr = {
9819
+ }, Dr = ["aria-label"], Or = {
9781
9820
  key: 0,
9782
9821
  class: "iccandle-scanner-timeframe-search__check iccandle-scanner-timeframe-search__check--on"
9783
- }, Tr = {
9822
+ }, kr = {
9784
9823
  key: 1,
9785
9824
  class: "iccandle-scanner-timeframe-search__check iccandle-scanner-timeframe-search__check--on"
9786
- }, Er = {
9825
+ }, Ar = {
9787
9826
  key: 2,
9788
9827
  class: "iccandle-scanner-timeframe-search__check"
9789
- }, Dr = ["aria-selected", "onClick"], Or = { class: "iccandle-scanner-timeframe-search__item-label" }, kr = { class: "iccandle-scanner-timeframe-search__item-description" }, Ar = /* @__PURE__ */ d({
9828
+ }, jr = ["aria-selected", "onClick"], Mr = { class: "iccandle-scanner-timeframe-search__item-label" }, Nr = { class: "iccandle-scanner-timeframe-search__item-description" }, Pr = /* @__PURE__ */ d({
9790
9829
  __name: "ScannerTimeframeSearch",
9791
9830
  props: {
9792
9831
  searchTerm: {},
@@ -9807,7 +9846,7 @@ var it = (e, t) => {
9807
9846
  let t = e?.closest(".iccandle-theme-scope, .iccandle-selector-widget") ?? document.body;
9808
9847
  C.value = t;
9809
9848
  }
9810
- let j = r(() => l.allTimeframes ?? l.filteredTimeframes ?? fr), M = r(() => l.filteredTimeframes ?? fr), P = r(() => j.value.filter((e) => l.selectedTimeframes[e.value]));
9849
+ let j = r(() => l.allTimeframes ?? l.filteredTimeframes ?? gr), M = r(() => l.filteredTimeframes ?? gr), P = r(() => j.value.filter((e) => l.selectedTimeframes[e.value]));
9811
9850
  function F(e) {
9812
9851
  if (e.length === 0) return "none";
9813
9852
  let t = e.filter((e) => l.selectedTimeframes[e.value]).length;
@@ -9877,10 +9916,10 @@ var it = (e, t) => {
9877
9916
  "aria-haspopup": "listbox",
9878
9917
  class: "iccandle-scanner-timeframe-search__trigger",
9879
9918
  onClick: c[0] ||= (e) => V(!S.value)
9880
- }, [s("div", mr, [P.value.length === 0 ? (x(), o("span", hr, k(A(f)("Selector.searchTimeframe")), 1)) : (x(!0), o(e, { key: 1 }, T(P.value, (e) => (x(), o("span", {
9919
+ }, [s("div", vr, [P.value.length === 0 ? (x(), o("span", yr, k(A(f)("Selector.searchTimeframe")), 1)) : (x(!0), o(e, { key: 1 }, T(P.value, (e) => (x(), o("span", {
9881
9920
  key: e.value,
9882
9921
  class: "iccandle-scanner-timeframe-search__chip"
9883
- }, [s("span", gr, k(e.label), 1), s("span", {
9922
+ }, [s("span", br, k(e.label), 1), s("span", {
9884
9923
  role: "button",
9885
9924
  tabindex: "0",
9886
9925
  "aria-label": `Remove ${e.label}`,
@@ -9889,10 +9928,10 @@ var it = (e, t) => {
9889
9928
  onKeydown: (t) => {
9890
9929
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), d("timeframeChange", e.value, !1));
9891
9930
  }
9892
- }, [u(st, { size: 10 })], 40, _r)]))), 128))]), s("div", vr, [s("span", null, k(te.value), 1), u(Ut, {
9931
+ }, [u(ct, { size: 10 })], 40, xr)]))), 128))]), s("div", Sr, [s("span", null, k(te.value), 1), u(qt, {
9893
9932
  size: 16,
9894
9933
  style: { opacity: .6 }
9895
- })])], 8, pr), (x(), i(t, { to: C.value }, [S.value && D.value ? (x(), o("div", {
9934
+ })])], 8, _r), (x(), i(t, { to: C.value }, [S.value && D.value ? (x(), o("div", {
9896
9935
  key: 0,
9897
9936
  ref_key: "popoverRef",
9898
9937
  ref: y,
@@ -9905,7 +9944,7 @@ var it = (e, t) => {
9905
9944
  width: `${D.value.width}px`,
9906
9945
  maxHeight: `${D.value.maxHeight}px`
9907
9946
  })
9908
- }, [s("div", yr, [u(qt, {
9947
+ }, [s("div", Cr, [u(Zt, {
9909
9948
  size: 16,
9910
9949
  "class-name": "iccandle-scanner-timeframe-search__search-icon"
9911
9950
  }), s("input", {
@@ -9917,17 +9956,17 @@ var it = (e, t) => {
9917
9956
  value: n.searchTerm,
9918
9957
  "aria-label": A(f)("Selector.searchTimeframe"),
9919
9958
  onInput: c[1] ||= (e) => d("searchChange", e.target.value.toUpperCase())
9920
- }, null, 40, br)]), s("div", {
9959
+ }, null, 40, wr)]), s("div", {
9921
9960
  class: "iccandle-scanner-timeframe-search__command-list",
9922
9961
  style: _({ maxHeight: `${ne.value}px` })
9923
9962
  }, [
9924
- n.searchTerm.trim() && M.value.length === 0 ? (x(), o("div", xr, k(A(f)("Selector.noResultsFound")), 1)) : a("", !0),
9925
- M.value.length > 0 ? (x(), o("div", Sr, [s("button", {
9963
+ n.searchTerm.trim() && M.value.length === 0 ? (x(), o("div", Tr, k(A(f)("Selector.noResultsFound")), 1)) : a("", !0),
9964
+ M.value.length > 0 ? (x(), o("div", Er, [s("button", {
9926
9965
  type: "button",
9927
9966
  class: "iccandle-scanner-timeframe-search__group-check-btn",
9928
9967
  "aria-label": A(f)("Selector.selectAllTimeframes"),
9929
9968
  onClick: ee
9930
- }, [G.value === "all" ? (x(), o("div", wr, [u(Vt, { size: 12 })])) : G.value === "some" ? (x(), o("div", Tr, [u(Gt, { size: 12 })])) : (x(), o("div", Er))], 8, Cr), s("button", {
9969
+ }, [G.value === "all" ? (x(), o("div", Or, [u(Gt, { size: 12 })])) : G.value === "some" ? (x(), o("div", kr, [u(Yt, { size: 12 })])) : (x(), o("div", Ar))], 8, Dr), s("button", {
9931
9970
  type: "button",
9932
9971
  class: "iccandle-scanner-timeframe-search__group-label-btn",
9933
9972
  onClick: ee
@@ -9940,16 +9979,16 @@ var it = (e, t) => {
9940
9979
  class: "iccandle-scanner-timeframe-search__item",
9941
9980
  onClick: (t) => R(e.value)
9942
9981
  }, [
9943
- s("div", { class: g(A(Z)("iccandle-scanner-timeframe-search__check", n.selectedTimeframes[e.value] && "iccandle-scanner-timeframe-search__check--on")) }, [n.selectedTimeframes[e.value] ? (x(), i(Vt, {
9982
+ s("div", { class: g(A(Z)("iccandle-scanner-timeframe-search__check", n.selectedTimeframes[e.value] && "iccandle-scanner-timeframe-search__check--on")) }, [n.selectedTimeframes[e.value] ? (x(), i(Gt, {
9944
9983
  key: 0,
9945
9984
  size: 12
9946
9985
  })) : a("", !0)], 2),
9947
- s("span", Or, k(I(e.value)), 1),
9948
- s("span", kr, k(L(e.value)), 1)
9949
- ], 8, Dr))), 128))
9986
+ s("span", Mr, k(I(e.value)), 1),
9987
+ s("span", Nr, k(L(e.value)), 1)
9988
+ ], 8, jr))), 128))
9950
9989
  ], 4)], 6)) : a("", !0)], 8, ["to"]))], 512));
9951
9990
  }
9952
- }), jr = { class: "iccandle-timeframes-tab" }, Mr = { class: "iccandle-timeframes-tab__header" }, Nr = { class: "iccandle-timeframes-tab__title" }, Pr = /* @__PURE__ */ d({
9991
+ }), Fr = { class: "iccandle-timeframes-tab" }, Ir = { class: "iccandle-timeframes-tab__header" }, Lr = { class: "iccandle-timeframes-tab__title" }, Rr = /* @__PURE__ */ d({
9953
9992
  __name: "TimeframesTab",
9954
9993
  props: { form: {} },
9955
9994
  setup(e) {
@@ -9961,13 +10000,13 @@ var it = (e, t) => {
9961
10000
  }, { immediate: !0 });
9962
10001
  let l = r(() => t.form.timeframes.reduce((e, t) => (e[t] = !0, e), {})), d = r(() => {
9963
10002
  let e = a.value.toLowerCase();
9964
- return fr.filter((t) => {
10003
+ return gr.filter((t) => {
9965
10004
  let r = n(`Pattern.timeframeOptions.${t.value}.displayName`).toLowerCase(), i = n(`Pattern.timeframeOptions.${t.value}.description`).toLowerCase();
9966
10005
  return t.label.toLowerCase().includes(e) || t.value.toLowerCase().includes(e) || r.includes(e) || i.includes(e);
9967
10006
  });
9968
10007
  }), f = r(() => Object.values(l.value).filter(Boolean).length);
9969
10008
  function p(e) {
9970
- t.form.timeframes = fr.filter((t) => e[t.value]).map((e) => e.value);
10009
+ t.form.timeframes = gr.filter((t) => e[t.value]).map((e) => e.value);
9971
10010
  }
9972
10011
  function m(e, t) {
9973
10012
  p({
@@ -9980,12 +10019,12 @@ var it = (e, t) => {
9980
10019
  for (let r of e) n[r] = t;
9981
10020
  p(n);
9982
10021
  }
9983
- return (e, t) => (x(), o("div", jr, [s("div", Mr, [s("h3", Nr, k(A(n)("Pattern.selectTimeframes")), 1)]), u(Ar, {
10022
+ return (e, t) => (x(), o("div", Fr, [s("div", Ir, [s("h3", Lr, k(A(n)("Pattern.selectTimeframes")), 1)]), u(Pr, {
9984
10023
  "search-term": i.value,
9985
10024
  "selected-timeframes": l.value,
9986
10025
  "filtered-timeframes": d.value,
9987
10026
  "selected-count": f.value,
9988
- "all-timeframes": [...A(fr)],
10027
+ "all-timeframes": [...A(gr)],
9989
10028
  onSearchChange: t[0] ||= (e) => i.value = e,
9990
10029
  onTimeframeChange: m,
9991
10030
  onGroupChange: h
@@ -9997,7 +10036,7 @@ var it = (e, t) => {
9997
10036
  "all-timeframes"
9998
10037
  ])]));
9999
10038
  }
10000
- }), Fr = { class: "iccandle-symbols-tab" }, Ir = { class: "iccandle-symbols-tab__header" }, Lr = { class: "iccandle-symbols-tab__title" }, Rr = /* @__PURE__ */ d({
10039
+ }), zr = { class: "iccandle-symbols-tab" }, Br = { class: "iccandle-symbols-tab__header" }, Vr = { class: "iccandle-symbols-tab__title" }, Hr = /* @__PURE__ */ d({
10001
10040
  __name: "SymbolsTab",
10002
10041
  props: { form: {} },
10003
10042
  setup(e) {
@@ -10033,7 +10072,7 @@ var it = (e, t) => {
10033
10072
  for (let r of e) n[r] = t;
10034
10073
  m(n);
10035
10074
  }
10036
- return (e, t) => (x(), o("div", Fr, [s("div", Ir, [s("h3", Lr, k(A(n)("Pattern.signalDialog.selectCurrencyPairs")), 1)]), u(bn, {
10075
+ return (e, t) => (x(), o("div", zr, [s("div", Br, [s("h3", Vr, k(A(n)("Pattern.signalDialog.selectCurrencyPairs")), 1)]), u(wn, {
10037
10076
  "search-term": i.value,
10038
10077
  "selected-symbols": l.value,
10039
10078
  "filtered-symbols": d.value,
@@ -10052,7 +10091,7 @@ var it = (e, t) => {
10052
10091
  "all-symbols"
10053
10092
  ])]));
10054
10093
  }
10055
- }), zr = [
10094
+ }), Ur = [
10056
10095
  {
10057
10096
  value: "new_york",
10058
10097
  label: "New York Session",
@@ -10081,12 +10120,12 @@ var it = (e, t) => {
10081
10120
  start: "09:00",
10082
10121
  end: "18:00"
10083
10122
  }
10084
- ], Br = [
10123
+ ], Wr = [
10085
10124
  {
10086
10125
  value: "all_time",
10087
10126
  label: "All time"
10088
10127
  },
10089
- ...zr.map((e) => ({
10128
+ ...Ur.map((e) => ({
10090
10129
  value: e.value,
10091
10130
  label: e.label
10092
10131
  })),
@@ -10094,61 +10133,61 @@ var it = (e, t) => {
10094
10133
  value: "customize",
10095
10134
  label: "Customize"
10096
10135
  }
10097
- ], Vr = (e) => {
10136
+ ], Gr = (e) => {
10098
10137
  let t = e.match(/GMT([+-])(\d{1,2})(?::?(\d{2}))?/);
10099
10138
  if (!t) return 0;
10100
10139
  let n = t[1] === "-" ? -1 : 1, r = Number(t[2]), i = Number(t[3] ?? "0");
10101
10140
  return n * (r * 60 + i);
10102
- }, Hr = (e, t) => Vr(new Intl.DateTimeFormat("en-US", {
10141
+ }, Kr = (e, t) => Gr(new Intl.DateTimeFormat("en-US", {
10103
10142
  timeZone: t,
10104
10143
  timeZoneName: "shortOffset",
10105
10144
  hour: "2-digit"
10106
- }).formatToParts(e).find((e) => e.type === "timeZoneName")?.value ?? "GMT+0"), Ur = (e, t, n) => {
10107
- let [r, i] = e.split(":").map(Number), a = /* @__PURE__ */ new Date(), o = Date.UTC(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate(), r, i, 0), s = o - Hr(new Date(o), t) * 6e4;
10108
- return s = o - Hr(new Date(s), t) * 6e4, new Intl.DateTimeFormat("en-GB", {
10145
+ }).formatToParts(e).find((e) => e.type === "timeZoneName")?.value ?? "GMT+0"), qr = (e, t, n) => {
10146
+ let [r, i] = e.split(":").map(Number), a = /* @__PURE__ */ new Date(), o = Date.UTC(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate(), r, i, 0), s = o - Kr(new Date(o), t) * 6e4;
10147
+ return s = o - Kr(new Date(s), t) * 6e4, new Intl.DateTimeFormat("en-GB", {
10109
10148
  timeZone: n,
10110
10149
  hour12: !1,
10111
10150
  hour: "2-digit",
10112
10151
  minute: "2-digit"
10113
10152
  }).format(new Date(s));
10114
- }, Wr = (e, t) => {
10115
- let n = zr.find((t) => t.value === e);
10153
+ }, Jr = (e, t) => {
10154
+ let n = Ur.find((t) => t.value === e);
10116
10155
  return n ? {
10117
- start_time: Ur(n.start, n.timezone, t),
10118
- end_time: Ur(n.end, n.timezone, t),
10156
+ start_time: qr(n.start, n.timezone, t),
10157
+ end_time: qr(n.end, n.timezone, t),
10119
10158
  timezone: t
10120
10159
  } : null;
10121
- }, Gr = (e, t) => {
10160
+ }, Yr = (e, t) => {
10122
10161
  if (!e) return "all_time";
10123
10162
  let n = e.timezone || t, r = !!(e.start_time && e.end_time);
10124
10163
  if (e.preset_session) {
10125
10164
  if (e.preset_session === "all_time") return "all_time";
10126
10165
  if (e.preset_session === "customize") return "customize";
10127
- let t = Wr(e.preset_session, n);
10166
+ let t = Jr(e.preset_session, n);
10128
10167
  if (t && t.start_time === e.start_time && t.end_time === e.end_time) return e.preset_session;
10129
10168
  }
10130
10169
  if (!r) return "customize";
10131
- let i = zr.find((t) => {
10132
- let r = Wr(t.value, n);
10170
+ let i = Ur.find((t) => {
10171
+ let r = Jr(t.value, n);
10133
10172
  return r && r.start_time === e.start_time && r.end_time === e.end_time;
10134
10173
  });
10135
10174
  return i ? i.value : "customize";
10136
- }, Kr = (e) => {
10175
+ }, Xr = (e) => {
10137
10176
  let t = Intl, n = typeof t.supportedValuesOf == "function" ? t.supportedValuesOf("timeZone") ?? [] : [], r = e || "UTC";
10138
10177
  return (n.length ? n : [r]).filter(Boolean);
10139
- }, qr = { class: "iccandle-time-config-section__header" }, Jr = { class: "iccandle-time-config-section__title" }, Yr = { class: "iccandle-time-config-section__fields" }, Xr = { class: "iccandle-time-config-section__row" }, Zr = { class: "iccandle-time-config-section__field" }, Qr = { class: "iccandle-time-config-section__label" }, $r = ["aria-expanded"], ei = { class: "iccandle-time-config-section__select-label" }, ti = { class: "iccandle-time-config-section__field" }, ni = { class: "iccandle-time-config-section__label" }, ri = ["aria-expanded", "disabled"], ii = { class: "iccandle-time-config-section__select-label" }, ai = { class: "iccandle-time-config-section__row" }, oi = { class: "iccandle-time-config-section__field" }, si = { class: "iccandle-time-config-section__label" }, ci = ["disabled", "value"], li = { class: "iccandle-time-config-section__field" }, ui = { class: "iccandle-time-config-section__label" }, di = ["disabled", "value"], fi = { class: "iccandle-time-config-section__dropdown-search" }, pi = ["placeholder"], mi = {
10178
+ }, Zr = { class: "iccandle-time-config-section__header" }, Qr = { class: "iccandle-time-config-section__title" }, $r = { class: "iccandle-time-config-section__fields" }, ei = { class: "iccandle-time-config-section__row" }, ti = { class: "iccandle-time-config-section__field" }, ni = { class: "iccandle-time-config-section__label" }, ri = ["aria-expanded"], ii = { class: "iccandle-time-config-section__select-label" }, ai = { class: "iccandle-time-config-section__field" }, oi = { class: "iccandle-time-config-section__label" }, si = ["aria-expanded", "disabled"], ci = { class: "iccandle-time-config-section__select-label" }, li = { class: "iccandle-time-config-section__row" }, ui = { class: "iccandle-time-config-section__field" }, di = { class: "iccandle-time-config-section__label" }, fi = ["disabled", "value"], pi = { class: "iccandle-time-config-section__field" }, mi = { class: "iccandle-time-config-section__label" }, hi = ["disabled", "value"], gi = { class: "iccandle-time-config-section__dropdown-search" }, _i = ["placeholder"], vi = {
10140
10179
  class: "iccandle-time-config-section__dropdown-group-label",
10141
10180
  "aria-hidden": "true"
10142
- }, hi = {
10181
+ }, yi = {
10143
10182
  key: 0,
10144
10183
  class: "iccandle-time-config-section__dropdown-empty"
10145
- }, gi = ["aria-selected", "onClick"], _i = { class: "iccandle-time-config-section__dropdown-header" }, vi = { class: "iccandle-time-config-section__dropdown-title" }, yi = { class: "iccandle-time-config-section__dropdown-subtitle" }, bi = { class: "iccandle-time-config-section__dropdown-search" }, xi = ["placeholder"], Si = {
10184
+ }, bi = ["aria-selected", "onClick"], xi = { class: "iccandle-time-config-section__dropdown-header" }, Si = { class: "iccandle-time-config-section__dropdown-title" }, Ci = { class: "iccandle-time-config-section__dropdown-subtitle" }, wi = { class: "iccandle-time-config-section__dropdown-search" }, Ti = ["placeholder"], Ei = {
10146
10185
  class: "iccandle-time-config-section__dropdown-group-label",
10147
10186
  "aria-hidden": "true"
10148
- }, Ci = {
10187
+ }, Di = {
10149
10188
  key: 0,
10150
10189
  class: "iccandle-time-config-section__dropdown-empty"
10151
- }, wi = ["aria-selected", "onClick"], Ti = /* @__PURE__ */ d({
10190
+ }, Oi = ["aria-selected", "onClick"], ki = /* @__PURE__ */ d({
10152
10191
  __name: "TimeConfigSection",
10153
10192
  props: {
10154
10193
  timeconfig: {},
@@ -10172,9 +10211,9 @@ var it = (e, t) => {
10172
10211
  let t = e?.closest(".iccandle-theme-scope, .iccandle-selector-widget") ?? document.body;
10173
10212
  E.value = t;
10174
10213
  }
10175
- let z = Intl.DateTimeFormat().resolvedOptions().timeZone, B = r(() => Gr(d.timeconfig, z)), V = (e) => p(c[e]), H = r(() => d.timeconfig?.timezone?.trim() || z || "UTC"), U = r(() => B.value === "all_time" ? p("TimeConfig.yourTimezone") : H.value), W = r(() => Kr(z)), G = r(() => {
10214
+ let z = Intl.DateTimeFormat().resolvedOptions().timeZone, B = r(() => Yr(d.timeconfig, z)), V = (e) => p(c[e]), H = r(() => d.timeconfig?.timezone?.trim() || z || "UTC"), U = r(() => B.value === "all_time" ? p("TimeConfig.yourTimezone") : H.value), W = r(() => Xr(z)), G = r(() => {
10176
10215
  let e = P.value.trim().toLowerCase();
10177
- return e ? Br.filter((t) => V(t.value).toLowerCase().includes(e) || t.value.toLowerCase().includes(e)) : Br;
10216
+ return e ? Wr.filter((t) => V(t.value).toLowerCase().includes(e) || t.value.toLowerCase().includes(e)) : Wr;
10178
10217
  }), te = r(() => f(W.value, I.value)), ne = r(() => `iccandle-time-config-section ${d.containerClassName}`.trim());
10179
10218
  function K(e, t) {
10180
10219
  if (!e) return;
@@ -10217,7 +10256,7 @@ var it = (e, t) => {
10217
10256
  }, { shouldDirty: !0 });
10218
10257
  return;
10219
10258
  }
10220
- let t = Wr(e, d.timeconfig?.timezone || z);
10259
+ let t = Jr(e, d.timeconfig?.timezone || z);
10221
10260
  t && d.onTimeConfigChange({
10222
10261
  ...t,
10223
10262
  preset_session: e
@@ -10225,7 +10264,7 @@ var it = (e, t) => {
10225
10264
  }
10226
10265
  function ae(e) {
10227
10266
  if (B.value !== "all_time" && B.value !== "customize") {
10228
- let t = Wr(B.value, e);
10267
+ let t = Jr(B.value, e);
10229
10268
  t && d.onTimeConfigChange({
10230
10269
  ...t,
10231
10270
  preset_session: B.value
@@ -10272,8 +10311,8 @@ var it = (e, t) => {
10272
10311
  ref: (e) => ee(e),
10273
10312
  class: g(ne.value)
10274
10313
  }, [
10275
- s("div", qr, [s("h3", Jr, k(A(p)("TimeConfig.title")), 1)]),
10276
- s("div", Yr, [s("div", Xr, [s("div", Zr, [s("label", Qr, k(A(p)("TimeConfig.session")), 1), s("div", { class: g(["iccandle-time-config-section__select-wrap", j.value && "iccandle-time-config-section__select-wrap--open"]) }, [s("button", {
10314
+ s("div", Zr, [s("h3", Qr, k(A(p)("TimeConfig.title")), 1)]),
10315
+ s("div", $r, [s("div", ei, [s("div", ti, [s("label", ni, k(A(p)("TimeConfig.session")), 1), s("div", { class: g(["iccandle-time-config-section__select-wrap", j.value && "iccandle-time-config-section__select-wrap--open"]) }, [s("button", {
10277
10316
  ref_key: "sessionTriggerRef",
10278
10317
  ref: y,
10279
10318
  type: "button",
@@ -10287,7 +10326,7 @@ var it = (e, t) => {
10287
10326
  }
10288
10327
  J(), j.value = !0;
10289
10328
  }
10290
- }, [s("span", ei, k(V(B.value) || A(p)("TimeConfig.selectSession")), 1)], 8, $r)], 2)]), s("div", ti, [s("label", ni, k(A(p)("TimeConfig.timezone")), 1), s("div", { class: g(["iccandle-time-config-section__select-wrap", O.value && "iccandle-time-config-section__select-wrap--open"]) }, [s("button", {
10329
+ }, [s("span", ii, k(V(B.value) || A(p)("TimeConfig.selectSession")), 1)], 8, ri)], 2)]), s("div", ai, [s("label", oi, k(A(p)("TimeConfig.timezone")), 1), s("div", { class: g(["iccandle-time-config-section__select-wrap", O.value && "iccandle-time-config-section__select-wrap--open"]) }, [s("button", {
10291
10330
  ref_key: "timezoneTriggerRef",
10292
10331
  ref: b,
10293
10332
  type: "button",
@@ -10302,21 +10341,21 @@ var it = (e, t) => {
10302
10341
  }
10303
10342
  q(), O.value = !0;
10304
10343
  }
10305
- }, [s("span", ii, k(U.value), 1)], 8, ri)], 2)])]), s("div", ai, [s("div", oi, [s("label", si, k(A(p)("TimeConfig.startTime")), 1), s("input", {
10344
+ }, [s("span", ci, k(U.value), 1)], 8, si)], 2)])]), s("div", li, [s("div", ui, [s("label", di, k(A(p)("TimeConfig.startTime")), 1), s("input", {
10306
10345
  type: "time",
10307
10346
  disabled: B.value !== "customize",
10308
10347
  value: n.timeconfig?.start_time ?? "",
10309
10348
  class: "iccandle-time-config-section__input",
10310
10349
  onInput: c[2] ||= (e) => re("start_time", e.target.value),
10311
10350
  onClick: Y
10312
- }, null, 40, ci)]), s("div", li, [s("label", ui, k(A(p)("TimeConfig.endTime")), 1), s("input", {
10351
+ }, null, 40, fi)]), s("div", pi, [s("label", mi, k(A(p)("TimeConfig.endTime")), 1), s("input", {
10313
10352
  type: "time",
10314
10353
  disabled: B.value !== "customize",
10315
10354
  value: n.timeconfig?.end_time ?? "",
10316
10355
  class: "iccandle-time-config-section__input",
10317
10356
  onInput: c[3] ||= (e) => re("end_time", e.target.value),
10318
10357
  onClick: Y
10319
- }, null, 40, di)])])]),
10358
+ }, null, 40, hi)])])]),
10320
10359
  (x(), i(t, { to: E.value }, [j.value && L.value ? (x(), o("div", {
10321
10360
  key: 0,
10322
10361
  ref_key: "sessionPopoverRef",
@@ -10329,22 +10368,22 @@ var it = (e, t) => {
10329
10368
  width: `${L.value.width}px`,
10330
10369
  maxHeight: `${L.value.maxHeight}px`
10331
10370
  })
10332
- }, [s("div", fi, [F(s("input", {
10371
+ }, [s("div", gi, [F(s("input", {
10333
10372
  "onUpdate:modelValue": c[4] ||= (e) => P.value = e,
10334
10373
  type: "text",
10335
10374
  class: "iccandle-time-config-section__dropdown-search-input",
10336
10375
  placeholder: A(p)("TimeConfig.searchSession"),
10337
10376
  autofocus: ""
10338
- }, null, 8, pi), [[M, P.value]])]), s("ul", {
10377
+ }, null, 8, _i), [[M, P.value]])]), s("ul", {
10339
10378
  class: "iccandle-time-config-section__dropdown-list",
10340
10379
  style: _({ maxHeight: `${le.value}px` })
10341
- }, [s("li", mi, k(A(p)("TimeConfig.sessionsHeading")), 1), G.value.length === 0 ? (x(), o("li", hi, k(A(p)("TimeConfig.noSessionFound")), 1)) : (x(!0), o(e, { key: 1 }, T(G.value, (e) => (x(), o("li", { key: e.value }, [s("button", {
10380
+ }, [s("li", vi, k(A(p)("TimeConfig.sessionsHeading")), 1), G.value.length === 0 ? (x(), o("li", yi, k(A(p)("TimeConfig.noSessionFound")), 1)) : (x(!0), o(e, { key: 1 }, T(G.value, (e) => (x(), o("li", { key: e.value }, [s("button", {
10342
10381
  type: "button",
10343
10382
  role: "option",
10344
10383
  "aria-selected": B.value === e.value,
10345
10384
  class: g(["iccandle-time-config-section__dropdown-item", B.value === e.value && "iccandle-time-config-section__dropdown-item--selected"]),
10346
10385
  onClick: (t) => ie(e.value)
10347
- }, [u(Vt, { "class-name": ["iccandle-time-config-section__check", B.value === e.value && "iccandle-time-config-section__check--visible"].filter(Boolean).join(" ") }, null, 8, ["class-name"]), l(" " + k(V(e.value)), 1)], 10, gi)]))), 128))], 4)], 6)) : a("", !0)], 8, ["to"])),
10386
+ }, [u(Gt, { "class-name": ["iccandle-time-config-section__check", B.value === e.value && "iccandle-time-config-section__check--visible"].filter(Boolean).join(" ") }, null, 8, ["class-name"]), l(" " + k(V(e.value)), 1)], 10, bi)]))), 128))], 4)], 6)) : a("", !0)], 8, ["to"])),
10348
10387
  (x(), i(t, { to: E.value }, [O.value && R.value ? (x(), o("div", {
10349
10388
  key: 0,
10350
10389
  ref_key: "timezonePopoverRef",
@@ -10358,31 +10397,31 @@ var it = (e, t) => {
10358
10397
  maxHeight: `${R.value.maxHeight}px`
10359
10398
  })
10360
10399
  }, [
10361
- s("div", _i, [s("p", vi, k(A(p)("TimeConfig.selectTimezone")), 1), s("p", yi, k(A(p)("TimeConfig.selectTimezoneHint")), 1)]),
10362
- s("div", bi, [F(s("input", {
10400
+ s("div", xi, [s("p", Si, k(A(p)("TimeConfig.selectTimezone")), 1), s("p", Ci, k(A(p)("TimeConfig.selectTimezoneHint")), 1)]),
10401
+ s("div", wi, [F(s("input", {
10363
10402
  "onUpdate:modelValue": c[5] ||= (e) => I.value = e,
10364
10403
  type: "text",
10365
10404
  class: "iccandle-time-config-section__dropdown-search-input",
10366
10405
  placeholder: A(p)("TimeConfig.searchTimezone"),
10367
10406
  autofocus: ""
10368
- }, null, 8, xi), [[M, I.value]])]),
10407
+ }, null, 8, Ti), [[M, I.value]])]),
10369
10408
  s("ul", {
10370
10409
  class: "iccandle-time-config-section__dropdown-list",
10371
10410
  style: _({ maxHeight: `${ue.value}px` })
10372
- }, [s("li", Si, k(A(p)("TimeConfig.timezonesHeading")), 1), te.value.length === 0 ? (x(), o("li", Ci, k(A(p)("TimeConfig.noTimezoneFound")), 1)) : (x(!0), o(e, { key: 1 }, T(te.value, (e) => (x(), o("li", { key: e }, [s("button", {
10411
+ }, [s("li", Ei, k(A(p)("TimeConfig.timezonesHeading")), 1), te.value.length === 0 ? (x(), o("li", Di, k(A(p)("TimeConfig.noTimezoneFound")), 1)) : (x(!0), o(e, { key: 1 }, T(te.value, (e) => (x(), o("li", { key: e }, [s("button", {
10373
10412
  type: "button",
10374
10413
  role: "option",
10375
10414
  "aria-selected": H.value === e,
10376
10415
  class: g(["iccandle-time-config-section__dropdown-item", H.value === e && "iccandle-time-config-section__dropdown-item--selected"]),
10377
10416
  onClick: (t) => ae(e)
10378
- }, [u(Vt, { "class-name": ["iccandle-time-config-section__check", H.value === e && "iccandle-time-config-section__check--visible"].filter(Boolean).join(" ") }, null, 8, ["class-name"]), l(" " + k(e), 1)], 10, wi)]))), 128))], 4)
10417
+ }, [u(Gt, { "class-name": ["iccandle-time-config-section__check", H.value === e && "iccandle-time-config-section__check--visible"].filter(Boolean).join(" ") }, null, 8, ["class-name"]), l(" " + k(e), 1)], 10, Oi)]))), 128))], 4)
10379
10418
  ], 6)) : a("", !0)], 8, ["to"]))
10380
10419
  ], 2));
10381
10420
  }
10382
- }), Ei = { class: "iccandle-pattern-alert-settings" }, Di = { class: "iccandle-pattern-alert-settings__header-row" }, Oi = { class: "iccandle-pattern-alert-settings__header" }, ki = { class: "iccandle-pattern-alert-settings__title-row" }, Ai = { class: "iccandle-pattern-alert-settings__title" }, ji = { class: "iccandle-pattern-alert-settings__title-text" }, Mi = ["aria-label"], Ni = { class: "iccandle-pattern-alert-settings__sections" }, Pi = { class: "iccandle-pattern-alert-settings__section" }, Fi = { class: "iccandle-pattern-alert-settings__section" }, Ii = { class: "iccandle-pattern-alert-settings__section" }, Li = { class: "iccandle-pattern-alert-settings__footer" }, Ri = {
10421
+ }), Ai = { class: "iccandle-pattern-alert-settings" }, ji = { class: "iccandle-pattern-alert-settings__header-row" }, Mi = { class: "iccandle-pattern-alert-settings__header" }, Ni = { class: "iccandle-pattern-alert-settings__title-row" }, Pi = { class: "iccandle-pattern-alert-settings__title" }, Fi = { class: "iccandle-pattern-alert-settings__title-text" }, Ii = ["aria-label"], Li = { class: "iccandle-pattern-alert-settings__sections" }, Ri = { class: "iccandle-pattern-alert-settings__section" }, zi = { class: "iccandle-pattern-alert-settings__section" }, Bi = { class: "iccandle-pattern-alert-settings__section" }, Vi = { class: "iccandle-pattern-alert-settings__footer" }, Hi = {
10383
10422
  key: 0,
10384
10423
  class: "iccandle-pattern-alert-settings__error iccandle-pattern-alert-settings__error--visible"
10385
- }, zi = ["disabled"], Bi = /* @__PURE__ */ d({
10424
+ }, Ui = ["disabled"], Wi = /* @__PURE__ */ d({
10386
10425
  __name: "PatternAlertSettingsStep",
10387
10426
  props: {
10388
10427
  form: {},
@@ -10419,30 +10458,30 @@ var it = (e, t) => {
10419
10458
  function h(e, n) {
10420
10459
  t.form.timeconfig = e;
10421
10460
  }
10422
- return (t, r) => (x(), o("div", Ei, [
10423
- s("div", Di, [u(Be, {
10461
+ return (t, r) => (x(), o("div", Ai, [
10462
+ s("div", ji, [u(Be, {
10424
10463
  size: 20,
10425
10464
  "class-name": "iccandle-pattern-alert-settings__header-icon"
10426
- }), s("div", Oi, [s("div", ki, [s("h2", Ai, [s("span", ji, k(A(n)("Pattern.configurePatternTracker")), 1)]), s("button", {
10465
+ }), s("div", Mi, [s("div", Ni, [s("h2", Pi, [s("span", Fi, k(A(n)("Pattern.configurePatternTracker")), 1)]), s("button", {
10427
10466
  type: "button",
10428
10467
  class: "iccandle-pattern-alert-settings__close-btn",
10429
10468
  "aria-label": A(n)("Common.close"),
10430
10469
  onClick: r[0] ||= (...t) => e.onCancel && e.onCancel(...t)
10431
- }, [u(Jn, { size: 16 })], 8, Mi)])])]),
10470
+ }, [u(Qn, { size: 16 })], 8, Ii)])])]),
10432
10471
  s("form", {
10433
10472
  class: "iccandle-pattern-alert-settings__form",
10434
10473
  id: "pattern-alert-settings-form",
10435
10474
  onSubmit: m
10436
- }, [s("div", Ni, [
10437
- s("section", Pi, [u(Pr, { form: e.form }, null, 8, ["form"])]),
10438
- s("section", Fi, [u(Rr, { form: e.form }, null, 8, ["form"])]),
10439
- s("section", Ii, [u(Ti, {
10475
+ }, [s("div", Li, [
10476
+ s("section", Ri, [u(Rr, { form: e.form }, null, 8, ["form"])]),
10477
+ s("section", zi, [u(Hr, { form: e.form }, null, 8, ["form"])]),
10478
+ s("section", Bi, [u(ki, {
10440
10479
  timeconfig: e.form.timeconfig,
10441
10480
  "on-time-config-change": h,
10442
10481
  "container-class-name": "iccandle-pattern-alert-settings__time-config"
10443
10482
  }, null, 8, ["timeconfig"])])
10444
10483
  ])], 32),
10445
- s("div", Li, [f.value ? (x(), o("p", Ri, k(f.value), 1)) : a("", !0), s("div", { class: g(["iccandle-pattern-alert-settings__actions", f.value && "iccandle-pattern-alert-settings__actions--with-error"]) }, [s("button", {
10484
+ s("div", Vi, [f.value ? (x(), o("p", Hi, k(f.value), 1)) : a("", !0), s("div", { class: g(["iccandle-pattern-alert-settings__actions", f.value && "iccandle-pattern-alert-settings__actions--with-error"]) }, [s("button", {
10446
10485
  type: "button",
10447
10486
  class: "iccandle-pattern-alert-settings__btn iccandle-pattern-alert-settings__btn--outline",
10448
10487
  onClick: r[1] ||= (...t) => e.onBack && e.onBack(...t)
@@ -10451,27 +10490,27 @@ var it = (e, t) => {
10451
10490
  form: "pattern-alert-settings-form",
10452
10491
  class: "iccandle-pattern-alert-settings__btn iccandle-pattern-alert-settings__btn--primary",
10453
10492
  disabled: e.isSubscribing
10454
- }, k(e.isSubscribing ? A(n)("Pattern.subscribing") : A(n)("Pattern.subscribe")), 9, zi)], 2)])
10493
+ }, k(e.isSubscribing ? A(n)("Pattern.subscribing") : A(n)("Pattern.subscribe")), 9, Ui)], 2)])
10455
10494
  ]));
10456
10495
  }
10457
10496
  });
10458
10497
  //#endregion
10459
10498
  //#region src/services/pattern-tracker.ts
10460
- async function Vi(e) {
10499
+ async function Gi(e) {
10461
10500
  let { data: t } = await L.post("https://api.iccandle.ai/custom-pattern/v1/searchless", e, { headers: { Authorization: `Bearer ${localStorage.getItem("iccandle_token")}` } });
10462
10501
  return t;
10463
10502
  }
10464
10503
  //#endregion
10465
10504
  //#region src/lib/find-error-message.ts
10466
- var Hi = (e) => {
10505
+ var Ki = (e) => {
10467
10506
  if (typeof e == "string") return e;
10468
10507
  if (typeof e != "object" || !e) return z;
10469
10508
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t)) {
10470
- let n = Hi(e[t]);
10509
+ let n = Ki(e[t]);
10471
10510
  if (n) return n;
10472
10511
  }
10473
10512
  return z;
10474
- }, Ui = (e) => R(e) ? Hi(e.response?.data) : e.message, Wi = ["aria-label"], Gi = /* @__PURE__ */ d({
10513
+ }, qi = (e) => R(e) ? Ki(e.response?.data) : e.message, Ji = ["aria-label"], Yi = /* @__PURE__ */ d({
10475
10514
  __name: "PatternTrackerSubscriptionModal",
10476
10515
  props: {
10477
10516
  open: { type: Boolean },
@@ -10553,13 +10592,13 @@ var Hi = (e) => {
10553
10592
  };
10554
10593
  m.value = !0;
10555
10594
  try {
10556
- await Vi(a), fe({
10595
+ await Gi(a), fe({
10557
10596
  title: u("Pattern.patternSubscribed"),
10558
10597
  description: u("Pattern.patternSubscribedDesc", { name: d.value }),
10559
10598
  variant: "success"
10560
10599
  }), l(!1);
10561
10600
  } catch (e) {
10562
- let t = Ui(e);
10601
+ let t = qi(e);
10563
10602
  p.value = t, fe({
10564
10603
  title: u("Pattern.patternSubscriptionError"),
10565
10604
  description: t,
@@ -10589,7 +10628,7 @@ var Hi = (e) => {
10589
10628
  class: g(A(Z)("iccandle-pattern-tracker-modal__content", f.value && "iccandle-pattern-tracker-modal__content--settings")),
10590
10629
  style: _({ height: f.value ? "100%" : void 0 }),
10591
10630
  onPointerdown: r[1] ||= I(() => {}, ["stop"])
10592
- }, [f.value ? (x(), i(Bi, {
10631
+ }, [f.value ? (x(), i(Wi, {
10593
10632
  key: 1,
10594
10633
  form: h,
10595
10634
  "on-back": T,
@@ -10602,18 +10641,18 @@ var Hi = (e) => {
10602
10641
  "on-cancel",
10603
10642
  "is-subscribing",
10604
10643
  "error-message"
10605
- ])) : (x(), i(dr, {
10644
+ ])) : (x(), i(hr, {
10606
10645
  key: 0,
10607
10646
  "pattern-name": d.value,
10608
10647
  "on-next": y,
10609
10648
  "on-cancel": () => l(!1),
10610
10649
  onPatternNameChange: r[0] ||= (e) => d.value = e
10611
- }, null, 8, ["pattern-name", "on-cancel"]))], 38)], 46, Wi)) : a("", !0)]));
10650
+ }, null, 8, ["pattern-name", "on-cancel"]))], 38)], 46, Ji)) : a("", !0)]));
10612
10651
  }
10613
- }), Ki = { class: "iccandle-event-info-modal__header" }, qi = { class: "iccandle-event-info-modal__title-row" }, Ji = { class: "iccandle-event-info-modal__title" }, Yi = ["aria-label"], Xi = {
10652
+ }), Xi = { class: "iccandle-event-info-modal__header" }, Zi = { class: "iccandle-event-info-modal__title-row" }, Qi = { class: "iccandle-event-info-modal__title" }, $i = ["aria-label"], ea = {
10614
10653
  key: 0,
10615
10654
  class: "iccandle-event-info-modal__date"
10616
- }, Zi = { class: "iccandle-event-info-modal__rows" }, Qi = { class: "iccandle-event-info-modal__row" }, $i = { class: "iccandle-event-info-modal__label" }, ea = { class: "iccandle-event-info-modal__value" }, ta = { class: "iccandle-event-info-modal__row" }, na = { class: "iccandle-event-info-modal__label" }, ra = { class: "iccandle-event-info-modal__value" }, ia = { class: "iccandle-event-info-modal__row" }, aa = { class: "iccandle-event-info-modal__label" }, oa = { class: "iccandle-event-info-modal__value" }, sa = { class: "iccandle-event-info-modal__row" }, ca = { class: "iccandle-event-info-modal__label" }, la = { class: "iccandle-event-info-modal__actions" }, ua = /* @__PURE__ */ d({
10655
+ }, ta = { class: "iccandle-event-info-modal__rows" }, na = { class: "iccandle-event-info-modal__row" }, ra = { class: "iccandle-event-info-modal__label" }, ia = { class: "iccandle-event-info-modal__value" }, aa = { class: "iccandle-event-info-modal__row" }, oa = { class: "iccandle-event-info-modal__label" }, sa = { class: "iccandle-event-info-modal__value" }, ca = { class: "iccandle-event-info-modal__row" }, la = { class: "iccandle-event-info-modal__label" }, ua = { class: "iccandle-event-info-modal__value" }, da = { class: "iccandle-event-info-modal__row" }, fa = { class: "iccandle-event-info-modal__label" }, pa = { class: "iccandle-event-info-modal__actions" }, ma = /* @__PURE__ */ d({
10617
10656
  __name: "EventInfoModal",
10618
10657
  props: {
10619
10658
  event: {},
@@ -10670,21 +10709,21 @@ var Hi = (e) => {
10670
10709
  onClick: n[0] ||= I(() => {}, ["stop"]),
10671
10710
  onKeydown: h
10672
10711
  }, [
10673
- s("div", Ki, [s("div", qi, [u(zt, { name: e.event.default_symbol || e.symbol || "" }, null, 8, ["name"]), s("h3", Ji, k(e.event.event_name), 1)]), s("button", {
10712
+ s("div", Xi, [s("div", Zi, [u(Ut, { name: e.event.default_symbol || e.symbol || "" }, null, 8, ["name"]), s("h3", Qi, k(e.event.event_name), 1)]), s("button", {
10674
10713
  ref_key: "closeButtonRef",
10675
10714
  ref: l,
10676
10715
  type: "button",
10677
10716
  class: "iccandle-event-info-modal__close",
10678
10717
  "aria-label": A(i)("Common.close"),
10679
10718
  onClick: p
10680
- }, [u(st, { size: 20 })], 8, Yi)]),
10681
- s("div", null, [e.event.timestamp ? (x(), o("p", Xi, k(f(e.event.timestamp, A(c))), 1)) : a("", !0), s("div", Zi, [
10682
- s("div", Qi, [s("span", $i, k(A(i)("Common.actual")) + ": ", 1), s("span", ea, k(e.event.actual || "-"), 1)]),
10683
- s("div", ta, [s("span", na, k(A(i)("News.previousActual")) + ": ", 1), s("span", ra, k(e.event.previous || "-"), 1)]),
10684
- s("div", ia, [s("span", aa, k(A(i)("News.currentForecast")) + ": ", 1), s("span", oa, k(e.event.forecast || "-"), 1)]),
10685
- s("div", sa, [s("span", ca, k(A(i)("News.previousForecast")) + ": ", 1), n[1] ||= s("span", { class: "iccandle-event-info-modal__value" }, "-", -1)])
10719
+ }, [u(ct, { size: 20 })], 8, $i)]),
10720
+ s("div", null, [e.event.timestamp ? (x(), o("p", ea, k(f(e.event.timestamp, A(c))), 1)) : a("", !0), s("div", ta, [
10721
+ s("div", na, [s("span", ra, k(A(i)("Common.actual")) + ": ", 1), s("span", ia, k(e.event.actual || "-"), 1)]),
10722
+ s("div", aa, [s("span", oa, k(A(i)("News.previousActual")) + ": ", 1), s("span", sa, k(e.event.previous || "-"), 1)]),
10723
+ s("div", ca, [s("span", la, k(A(i)("News.currentForecast")) + ": ", 1), s("span", ua, k(e.event.forecast || "-"), 1)]),
10724
+ s("div", da, [s("span", fa, k(A(i)("News.previousForecast")) + ": ", 1), n[1] ||= s("span", { class: "iccandle-event-info-modal__value" }, "-", -1)])
10686
10725
  ])]),
10687
- s("div", la, [s("button", {
10726
+ s("div", pa, [s("button", {
10688
10727
  type: "button",
10689
10728
  class: "iccandle-event-info-modal__btn iccandle-event-info-modal__btn--outline",
10690
10729
  onClick: p
@@ -10695,7 +10734,7 @@ var Hi = (e) => {
10695
10734
  }, k(A(i)("News.goToEventDetail")), 1)])
10696
10735
  ], 36)]));
10697
10736
  }
10698
- }), da = ["width", "height"], fa = ["stroke"], pa = ["stroke"], ma = ["stroke"], ha = /* @__PURE__ */ d({
10737
+ }), ha = ["width", "height"], ga = ["stroke"], _a = ["stroke"], va = ["stroke"], ya = /* @__PURE__ */ d({
10699
10738
  __name: "AlertTriangleIcon",
10700
10739
  props: {
10701
10740
  size: { default: 24 },
@@ -10717,28 +10756,28 @@ var Hi = (e) => {
10717
10756
  "stroke-width": "2",
10718
10757
  "stroke-linecap": "round",
10719
10758
  "stroke-linejoin": "round"
10720
- }, null, 8, fa),
10759
+ }, null, 8, ga),
10721
10760
  s("path", {
10722
10761
  d: "M12 9v4",
10723
10762
  stroke: e.color,
10724
10763
  "stroke-width": "2",
10725
10764
  "stroke-linecap": "round",
10726
10765
  "stroke-linejoin": "round"
10727
- }, null, 8, pa),
10766
+ }, null, 8, _a),
10728
10767
  s("path", {
10729
10768
  d: "M12 17h.01",
10730
10769
  stroke: e.color,
10731
10770
  "stroke-width": "2",
10732
10771
  "stroke-linecap": "round",
10733
10772
  "stroke-linejoin": "round"
10734
- }, null, 8, ma)
10735
- ], 10, da));
10773
+ }, null, 8, va)
10774
+ ], 10, ha));
10736
10775
  }
10737
- }), ga = [
10776
+ }), ba = [
10738
10777
  "width",
10739
10778
  "height",
10740
10779
  "stroke"
10741
- ], _a = /* @__PURE__ */ d({
10780
+ ], xa = /* @__PURE__ */ d({
10742
10781
  __name: "CheckCircleIcon",
10743
10782
  props: {
10744
10783
  size: { default: 20 },
@@ -10761,13 +10800,13 @@ var Hi = (e) => {
10761
10800
  cx: "12",
10762
10801
  cy: "12",
10763
10802
  r: "10"
10764
- }, null, -1), s("path", { d: "m9 12 2 2 4-4" }, null, -1)]], 10, ga));
10803
+ }, null, -1), s("path", { d: "m9 12 2 2 4-4" }, null, -1)]], 10, ba));
10765
10804
  }
10766
- }), va = [
10805
+ }), Sa = [
10767
10806
  "width",
10768
10807
  "height",
10769
10808
  "stroke"
10770
- ], ya = /* @__PURE__ */ d({
10809
+ ], Ca = /* @__PURE__ */ d({
10771
10810
  __name: "AlertCircleIcon",
10772
10811
  props: {
10773
10812
  size: { default: 20 },
@@ -10804,27 +10843,27 @@ var Hi = (e) => {
10804
10843
  y1: "16",
10805
10844
  y2: "16"
10806
10845
  }, null, -1)
10807
- ]], 10, va));
10846
+ ]], 10, Sa));
10808
10847
  }
10809
- }), ba = {
10848
+ }), wa = {
10810
10849
  class: "custom-toast",
10811
10850
  role: "alert"
10812
- }, xa = { class: "custom-toast__icon-wrap" }, Sa = { class: "custom-toast__content" }, Ca = { class: "custom-toast__header" }, wa = { class: "custom-toast__title" }, Ta = {
10851
+ }, Ta = { class: "custom-toast__icon-wrap" }, Ea = { class: "custom-toast__content" }, Da = { class: "custom-toast__header" }, Oa = { class: "custom-toast__title" }, ka = {
10813
10852
  key: 0,
10814
10853
  class: "custom-toast__description"
10815
- }, Ea = {
10854
+ }, Aa = {
10816
10855
  key: 1,
10817
10856
  class: "custom-toast__actions"
10818
- }, Da = /* @__PURE__ */ d({
10857
+ }, ja = /* @__PURE__ */ d({
10819
10858
  __name: "CustomToast",
10820
10859
  props: { toast: {} },
10821
10860
  setup(e) {
10822
10861
  let t = e, n = r(() => {
10823
10862
  switch (t.toast.variant) {
10824
- case "warning": return ha;
10825
- case "success": return _a;
10826
- case "error": return ya;
10827
- default: return Wn;
10863
+ case "warning": return ya;
10864
+ case "success": return xa;
10865
+ case "error": return Ca;
10866
+ default: return Jn;
10828
10867
  }
10829
10868
  });
10830
10869
  function c() {
@@ -10834,10 +10873,10 @@ var Hi = (e) => {
10834
10873
  let e = t.toast.dismiss;
10835
10874
  e && typeof e == "object" && e.onClick?.(), de(t.toast.id);
10836
10875
  }
10837
- return (t, r) => (x(), o("div", ba, [s("div", xa, [(x(), i(D(n.value), { class: "custom-toast__icon" }))]), s("div", Sa, [
10838
- s("div", Ca, [s("p", wa, k(e.toast.title), 1)]),
10839
- e.toast.description ? (x(), o("p", Ta, k(e.toast.description), 1)) : a("", !0),
10840
- e.toast.action || e.toast.dismiss ? (x(), o("div", Ea, [e.toast.action ? (x(), o("button", {
10876
+ return (t, r) => (x(), o("div", wa, [s("div", Ta, [(x(), i(D(n.value), { class: "custom-toast__icon" }))]), s("div", Ea, [
10877
+ s("div", Da, [s("p", Oa, k(e.toast.title), 1)]),
10878
+ e.toast.description ? (x(), o("p", ka, k(e.toast.description), 1)) : a("", !0),
10879
+ e.toast.action || e.toast.dismiss ? (x(), o("div", Aa, [e.toast.action ? (x(), o("button", {
10841
10880
  key: 0,
10842
10881
  type: "button",
10843
10882
  class: "custom-toast__button custom-toast__button--action",
@@ -10850,7 +10889,7 @@ var Hi = (e) => {
10850
10889
  }, k(e.toast.dismiss.label ?? "Dismiss"), 1)) : a("", !0)])) : a("", !0)
10851
10890
  ])]));
10852
10891
  }
10853
- }), Oa = /*#__PURE__*/ ((e, t) => {
10892
+ }), Ma = /*#__PURE__*/ ((e, t) => {
10854
10893
  let n = e.__vccOpts || e;
10855
10894
  for (let [e, r] of t) n[e] = r;
10856
10895
  return n;
@@ -10872,16 +10911,16 @@ var Hi = (e) => {
10872
10911
  tag: "div",
10873
10912
  class: "iccandle-toast-list"
10874
10913
  }, {
10875
- default: P(() => [(x(!0), o(e, null, T(A(ue), (e) => (x(), i(Da, {
10914
+ default: P(() => [(x(!0), o(e, null, T(A(ue), (e) => (x(), i(ja, {
10876
10915
  key: e.id,
10877
10916
  toast: e
10878
10917
  }, null, 8, ["toast"]))), 128))]),
10879
10918
  _: 1
10880
10919
  })], 6));
10881
10920
  }
10882
- }), [["__scopeId", "data-v-1549ae5b"]]), ka = "#00dfb9";
10883
- function Aa(e) {
10884
- let t = e || ka;
10921
+ }), [["__scopeId", "data-v-1549ae5b"]]), Na = "#00dfb9";
10922
+ function Pa(e) {
10923
+ let t = e || Na;
10885
10924
  return {
10886
10925
  shape: "date_range",
10887
10926
  overrides: {
@@ -10898,7 +10937,7 @@ function Aa(e) {
10898
10937
  }
10899
10938
  };
10900
10939
  }
10901
- var ja = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n ", Ma = {
10940
+ var Fa = "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n\n \n \n \n \n \n ", Ia = {
10902
10941
  symbol: "XAU_USD",
10903
10942
  interval: "60",
10904
10943
  library_path: "/charting_library/",
@@ -10908,7 +10947,7 @@ var ja = "\n \n \n
10908
10947
  user_id: "public_user_id",
10909
10948
  fullscreen: !1,
10910
10949
  autosize: !0
10911
- }, Na = {
10950
+ }, La = {
10912
10951
  D: "1440",
10913
10952
  H4: "240",
10914
10953
  H2: "120",
@@ -10920,7 +10959,7 @@ var ja = "\n \n \n
10920
10959
  };
10921
10960
  //#endregion
10922
10961
  //#region src/composables/use-selected-news-window-message.ts
10923
- function Pa(e, t) {
10962
+ function Ra(e, t) {
10924
10963
  let n = async ({ origin: n, data: r }) => {
10925
10964
  if (n !== "https://embed-iccandle-app.iccandle.ai" || typeof r != "string") return;
10926
10965
  let i;
@@ -10962,19 +11001,19 @@ function Pa(e, t) {
10962
11001
  }
10963
11002
  //#endregion
10964
11003
  //#region src/lib/debounce.ts
10965
- function Fa(e, t, n = 1) {
11004
+ function za(e, t, n = 1) {
10966
11005
  if (t === 0 || !isFinite(t)) return n;
10967
11006
  let r = e / t;
10968
11007
  return isFinite(r) ? r : n;
10969
11008
  }
10970
- function Ia(e) {
11009
+ function Ba(e) {
10971
11010
  if (e.length === 0) return 0;
10972
11011
  let t = [...e].sort((e, t) => e - t), n = Math.floor(t.length / 2);
10973
11012
  return t.length % 2 == 0 ? (t[n - 1] + t[n]) / 2 : t[n];
10974
11013
  }
10975
- function La(e, t, n = []) {
11014
+ function Va(e, t, n = []) {
10976
11015
  if (e.length === 0) return [];
10977
- let r = n.map((e) => Math.abs(e.c - e.o)), i = Ia(e.map((e) => Math.abs(e.c - e.o))), a = Fa(Ia(r), i), o = e[0].o, s = t.c;
11016
+ let r = n.map((e) => Math.abs(e.c - e.o)), i = Ba(e.map((e) => Math.abs(e.c - e.o))), a = za(Ba(r), i), o = e[0].o, s = t.c;
10978
11017
  return e.map((e) => {
10979
11018
  let t = (e.o - o) * a + s, n = (e.h - o) * a + s, r = (e.l - o) * a + s, i = (e.c - o) * a + s;
10980
11019
  return {
@@ -10987,7 +11026,7 @@ function La(e, t, n = []) {
10987
11026
  }
10988
11027
  //#endregion
10989
11028
  //#region src/lib/session-time.ts
10990
- var Ra = "America/New_York", za = 17, Ba = {
11029
+ var Ha = "America/New_York", Ua = 17, Wa = {
10991
11030
  Sun: 0,
10992
11031
  Mon: 1,
10993
11032
  Tue: 2,
@@ -10995,46 +11034,46 @@ var Ra = "America/New_York", za = 17, Ba = {
10995
11034
  Thu: 4,
10996
11035
  Fri: 5,
10997
11036
  Sat: 6
10998
- }, Va = new Intl.DateTimeFormat("en-US", {
10999
- timeZone: Ra,
11037
+ }, Ga = new Intl.DateTimeFormat("en-US", {
11038
+ timeZone: Ha,
11000
11039
  weekday: "short",
11001
11040
  hour: "numeric",
11002
11041
  minute: "numeric",
11003
11042
  hourCycle: "h23"
11004
- }), Ha = (e) => {
11005
- let t = Va.formatToParts(new Date(e)), n = t.find((e) => e.type === "weekday")?.value ?? "Sun", r = Number(t.find((e) => e.type === "hour")?.value), i = r === 24 ? 0 : r;
11043
+ }), Ka = (e) => {
11044
+ let t = Ga.formatToParts(new Date(e)), n = t.find((e) => e.type === "weekday")?.value ?? "Sun", r = Number(t.find((e) => e.type === "hour")?.value), i = r === 24 ? 0 : r;
11006
11045
  return {
11007
- day: Ba[n] ?? 0,
11046
+ day: Wa[n] ?? 0,
11008
11047
  hour: i
11009
11048
  };
11010
- }, Ua = (e) => {
11011
- let { day: t, hour: n } = Ha(e);
11012
- return t === 6 ? !1 : t === 0 ? n >= za : t !== 5 || n < za;
11013
- }, Wa = (e, t) => {
11049
+ }, qa = (e) => {
11050
+ let { day: t, hour: n } = Ka(e);
11051
+ return t === 6 ? !1 : t === 0 ? n >= Ua : t !== 5 || n < Ua;
11052
+ }, Ja = (e, t) => {
11014
11053
  let n = e, r = Math.max(1, Math.ceil(11520 * 60 * 1e3 / t));
11015
- for (let e = 0; e < r && !Ua(n); e++) n += t;
11054
+ for (let e = 0; e < r && !qa(n); e++) n += t;
11016
11055
  return n;
11017
- }, Ga = (e, t, n) => {
11056
+ }, Ya = (e, t, n) => {
11018
11057
  let r = W(t) * 1e3, i = [], a = e;
11019
- for (let e = 0; e < n; e++) a += r, Ua(a) || (a = Wa(a, r)), i.push(a);
11058
+ for (let e = 0; e < n; e++) a += r, qa(a) || (a = Ja(a, r)), i.push(a);
11020
11059
  return i;
11021
- }, Ka = (e, t, n, r) => {
11060
+ }, Xa = (e, t, n, r) => {
11022
11061
  if (n <= 0) return [];
11023
11062
  if (r === "24x7") {
11024
11063
  let r = W(t) * 1e3;
11025
11064
  return Array.from({ length: n }, (t, n) => e + (n + 1) * r);
11026
11065
  }
11027
- if (r === "1700-1700") return Ga(e, t, n);
11066
+ if (r === "1700-1700") return Ya(e, t, n);
11028
11067
  let i = W(t) * 1e3;
11029
11068
  return Array.from({ length: n }, (t, n) => e + (n + 1) * i);
11030
- }, qa = (e, t, n, r) => {
11069
+ }, Za = (e, t, n, r) => {
11031
11070
  if (r === "24x7") {
11032
11071
  let r = W(n) * 1e3;
11033
11072
  return Math.max(0, Math.floor((t - e) / r));
11034
11073
  }
11035
11074
  if (r === "1700-1700") {
11036
11075
  let r = W(n) * 1e3, i = 0, a = e;
11037
- for (; a < t;) a += r, Ua(a) || (a = Wa(a, r)), a <= t && i++;
11076
+ for (; a < t;) a += r, qa(a) || (a = Ja(a, r)), a <= t && i++;
11038
11077
  return i;
11039
11078
  }
11040
11079
  let i = W(n) * 1e3;
@@ -11064,68 +11103,68 @@ var Ra = "America/New_York", za = 17, Ba = {
11064
11103
  this.gapCount = e;
11065
11104
  }
11066
11105
  });
11067
- function Ja() {
11106
+ function Qa() {
11068
11107
  return $;
11069
11108
  }
11070
11109
  //#endregion
11071
11110
  //#region src/lib/play-chart.ts
11072
- var Ya = null, Xa = !1, Za = !1;
11073
- function Qa(e) {
11111
+ var $a = null, eo = !1, to = !1;
11112
+ function no(e) {
11074
11113
  return typeof e == "function" && typeof e.onReady != "function";
11075
11114
  }
11076
- function $a(e) {
11115
+ function ro(e) {
11077
11116
  if (typeof e?.onReady != "function") throw Error("withPlayChart: expected a TradingView datafeed object with onReady(). If you use a factory, call it first: withPlayChart(yourDataFeed(...)) or pass factory args: withPlayChart(yourDataFeed, arg1, arg2).");
11078
11117
  }
11079
- function eo(e) {
11080
- return Ya = e, (t) => {
11081
- !Xa && Za || e(t);
11118
+ function io(e) {
11119
+ return $a = e, (t) => {
11120
+ !eo && to || e(t);
11082
11121
  };
11083
11122
  }
11084
- function to(e) {
11085
- $a(e);
11123
+ function ao(e) {
11124
+ ro(e);
11086
11125
  let t = e.subscribeBars?.bind(e);
11087
11126
  return t ? Object.assign(Object.create(Object.getPrototypeOf(e)), e, { subscribeBars(e, n, r, i, a) {
11088
- return t(e, n, eo(r), i, a);
11127
+ return t(e, n, io(r), i, a);
11089
11128
  } }) : e;
11090
11129
  }
11091
- function no(e, ...t) {
11092
- if (Qa(e)) {
11093
- if (t.length > 0) return to(e(...t));
11130
+ function oo(e, ...t) {
11131
+ if (no(e)) {
11132
+ if (t.length > 0) return ao(e(...t));
11094
11133
  throw Error("withPlayChart: received a datafeed factory. Call it before passing to TradingView: withPlayChart(yourDataFeed(...)) or pass factory arguments: withPlayChart(yourDataFeed, arg1, arg2).");
11095
11134
  }
11096
- return to(e);
11135
+ return ao(e);
11097
11136
  }
11098
- function ro(e) {
11099
- Za = e;
11137
+ function so(e) {
11138
+ to = e;
11100
11139
  }
11101
- function io(e) {
11102
- if (!Ya) return !1;
11103
- Xa = !0;
11140
+ function co(e) {
11141
+ if (!$a) return !1;
11142
+ eo = !0;
11104
11143
  try {
11105
- Ya(e);
11144
+ $a(e);
11106
11145
  } finally {
11107
- Xa = !1;
11146
+ eo = !1;
11108
11147
  }
11109
11148
  return !0;
11110
11149
  }
11111
11150
  //#endregion
11112
11151
  //#region src/lib/highlight-bars-store.ts
11113
- var ao = [], oo = (e) => {
11114
- ao = e;
11115
- }, so = () => ao, co = (e) => e > 1e11 ? e : e * 1e3, lo = (e, t) => {
11116
- let n = co(e);
11117
- return t.find((e) => co(e.time) === n);
11118
- }, uo = "Generated Candles - By iC Candle", fo = "Generated Candles Background - By iC Candle", po = "revealed_count", mo = {
11119
- id: po,
11152
+ var lo = [], uo = (e) => {
11153
+ lo = e;
11154
+ }, fo = () => lo, po = (e) => e > 1e11 ? e : e * 1e3, mo = (e, t) => {
11155
+ let n = po(e);
11156
+ return t.find((e) => po(e.time) === n);
11157
+ }, ho = "Generated Candles - By iC Candle", go = "Generated Candles Background - By iC Candle", _o = "revealed_count", vo = {
11158
+ id: _o,
11120
11159
  name: "Revealed Count",
11121
11160
  type: "integer",
11122
11161
  defval: 0,
11123
11162
  isHidden: !0,
11124
11163
  min: 0
11125
- }, ho = (e) => {
11164
+ }, yo = (e) => {
11126
11165
  let t = Math.max(0, Number(e(0)) || 0);
11127
- return so().slice(0, t);
11128
- }, go = (e, t) => !!lo(e, t), _o = ({ id: e, description: t, shortDescription: n, isHiddenStudy: r, bodyColors: i, wickColors: a, borderColors: o }) => ({
11166
+ return fo().slice(0, t);
11167
+ }, bo = (e, t) => !!mo(e, t), xo = ({ id: e, description: t, shortDescription: n, isHiddenStudy: r, bodyColors: i, wickColors: a, borderColors: o }) => ({
11129
11168
  _metainfoVersion: 51,
11130
11169
  id: e,
11131
11170
  description: t,
@@ -11138,7 +11177,7 @@ var ao = [], oo = (e) => {
11138
11177
  type: "price",
11139
11178
  precision: 2
11140
11179
  },
11141
- inputs: [mo],
11180
+ inputs: [vo],
11142
11181
  palettes: {
11143
11182
  palette_bar: {
11144
11183
  colors: {
@@ -11266,9 +11305,9 @@ var ao = [], oo = (e) => {
11266
11305
  } }
11267
11306
  },
11268
11307
  precision: 2,
11269
- inputs: { [po]: 0 }
11308
+ inputs: { [_o]: 0 }
11270
11309
  }
11271
- }), vo = 0, yo = (e = "light") => e === "dark" ? "#0F0F0F" : "#ffffff", bo = [
11310
+ }), So = 0, Co = (e = "light") => e === "dark" ? "#0F0F0F" : "#ffffff", wo = [
11272
11311
  NaN,
11273
11312
  NaN,
11274
11313
  NaN,
@@ -11276,32 +11315,32 @@ var ao = [], oo = (e) => {
11276
11315
  NaN,
11277
11316
  NaN,
11278
11317
  NaN
11279
- ], xo = (e) => function() {
11318
+ ], To = (e) => function() {
11280
11319
  this.init = function(e) {
11281
11320
  this._context = e;
11282
11321
  }, this.main = function(t, n) {
11283
11322
  this._context = t;
11284
- let r = t.symbol.time, i = ho(n);
11285
- return !Number.isFinite(r) || !i.length || !go(r, i) ? [...bo] : e(t, i);
11323
+ let r = t.symbol.time, i = yo(n);
11324
+ return !Number.isFinite(r) || !i.length || !bo(r, i) ? [...wo] : e(t, i);
11286
11325
  };
11287
- }, So = (e = "light") => {
11288
- let t = yo(e), n = {
11289
- name: fo,
11326
+ }, Eo = (e = "light") => {
11327
+ let t = Co(e), n = {
11328
+ name: go,
11290
11329
  metainfo: {
11291
11330
  _metainfoVersion: 51,
11292
11331
  id: "Generated Candles Background - By iC Candle@tv-basicstudies-1",
11293
- description: fo,
11332
+ description: go,
11294
11333
  shortDescription: "Generated Candles Background",
11295
11334
  isCustomIndicator: !0,
11296
11335
  is_hidden_study: !0,
11297
11336
  is_price_study: !0,
11298
11337
  linkedToSeries: !0,
11299
11338
  format: { type: "inherit" },
11300
- inputs: [mo],
11339
+ inputs: [vo],
11301
11340
  palettes: {
11302
11341
  prediction_bar_palette: {
11303
11342
  colors: { 0: { name: "Predicted Bar" } },
11304
- valToIndex: { [vo]: 0 }
11343
+ valToIndex: { [So]: 0 }
11305
11344
  },
11306
11345
  prediction_mask_palette: {
11307
11346
  colors: { 0: { name: "Predicted Mask" } },
@@ -11379,7 +11418,7 @@ var ao = [], oo = (e) => {
11379
11418
  style: 0
11380
11419
  } } }
11381
11420
  },
11382
- inputs: { [po]: 0 }
11421
+ inputs: { [_o]: 0 }
11383
11422
  }
11384
11423
  },
11385
11424
  constructor: function() {
@@ -11387,8 +11426,8 @@ var ao = [], oo = (e) => {
11387
11426
  this._context = e;
11388
11427
  }, this.main = function(e, t) {
11389
11428
  this._context = e;
11390
- let n = e.symbol.time, r = ho(t);
11391
- if (!Number.isFinite(n) || !go(n, r)) return [
11429
+ let n = e.symbol.time, r = yo(t);
11430
+ if (!Number.isFinite(n) || !bo(n, r)) return [
11392
11431
  NaN,
11393
11432
  NaN,
11394
11433
  NaN,
@@ -11400,7 +11439,7 @@ var ao = [], oo = (e) => {
11400
11439
  ];
11401
11440
  let { open: i, high: a, low: o, close: s } = e.symbol, c = Math.max(a - o, Math.abs(s - i), Math.abs(s) * 1e-4, .01);
11402
11441
  return [
11403
- vo,
11442
+ So,
11404
11443
  i,
11405
11444
  a + c,
11406
11445
  o - c,
@@ -11412,19 +11451,19 @@ var ao = [], oo = (e) => {
11412
11451
  };
11413
11452
  }
11414
11453
  }, r = {
11415
- name: uo,
11416
- metainfo: _o({
11454
+ name: ho,
11455
+ metainfo: xo({
11417
11456
  id: "Generated Candles - By iC Candle@tv-basicstudies-1",
11418
- description: uo,
11457
+ description: ho,
11419
11458
  shortDescription: "Generated Candles",
11420
11459
  isHiddenStudy: !1,
11421
11460
  bodyColors: ["#00dfb9", "#ffb84d"],
11422
11461
  wickColors: ["#00dfb9", "#ffb84d"],
11423
11462
  borderColors: ["#00dfb9", "#ffb84d"]
11424
11463
  }),
11425
- constructor: xo((e, t) => {
11426
- let n = lo(e.symbol.time, t);
11427
- if (!n) return [...bo];
11464
+ constructor: To((e, t) => {
11465
+ let n = mo(e.symbol.time, t);
11466
+ if (!n) return [...wo];
11428
11467
  let r = +(n.close < n.open);
11429
11468
  return [
11430
11469
  n.open,
@@ -11438,40 +11477,40 @@ var ao = [], oo = (e) => {
11438
11477
  })
11439
11478
  };
11440
11479
  return Promise.resolve([n, r]);
11441
- }, Co = (e, t) => {
11480
+ }, Do = (e, t) => {
11442
11481
  if (t) try {
11443
11482
  e.removeEntity(t);
11444
11483
  } catch {}
11445
- }, wo = (e) => ({
11484
+ }, Oo = (e) => ({
11446
11485
  "predicted mask candle.color": e,
11447
11486
  "predicted mask candle.bordercolor": e,
11448
11487
  "predicted mask candle.wickcolor": e,
11449
11488
  "predicted bar.color.0": e,
11450
11489
  "predicted mask.color.0": e
11451
- }), To = (e, t) => {
11490
+ }), ko = (e, t) => {
11452
11491
  try {
11453
11492
  e.getSeries().sendToBack();
11454
11493
  } catch {}
11455
11494
  let n = t.generatedCandlesStudyIdRef.current;
11456
11495
  n && e.bringToFront([n]);
11457
- }, Eo = (e) => {
11496
+ }, Ao = (e) => {
11458
11497
  try {
11459
11498
  e.getSeries().bringToFront();
11460
11499
  } catch {}
11461
- }, Do = (e, t, n = "light") => {
11500
+ }, jo = (e, t, n = "light") => {
11462
11501
  let r = t.generatedCandlesBackgroundStudyIdRef.current;
11463
11502
  if (r) try {
11464
- e.getStudyById(r).applyOverrides(wo(yo(n)));
11503
+ e.getStudyById(r).applyOverrides(Oo(Co(n)));
11465
11504
  } catch {}
11466
- }, Oo = async (e, t, n = "light") => {
11467
- Co(e, t.generatedCandlesStudyIdRef.current), Co(e, t.generatedCandlesBackgroundStudyIdRef.current), t.generatedCandlesStudyIdRef.current = null, t.generatedCandlesBackgroundStudyIdRef.current = null;
11468
- let r = yo(n), i = await e.createStudy(fo, !0, !0, void 0, wo(r));
11505
+ }, Mo = async (e, t, n = "light") => {
11506
+ Do(e, t.generatedCandlesStudyIdRef.current), Do(e, t.generatedCandlesBackgroundStudyIdRef.current), t.generatedCandlesStudyIdRef.current = null, t.generatedCandlesBackgroundStudyIdRef.current = null;
11507
+ let r = Co(n), i = await e.createStudy(go, !0, !0, void 0, Oo(r));
11469
11508
  i && (t.generatedCandlesBackgroundStudyIdRef.current = i);
11470
- let a = await e.createStudy(uo, !0, !0);
11471
- a && (t.generatedCandlesStudyIdRef.current = a), To(e, t);
11472
- }, ko = (e, t, n) => {
11509
+ let a = await e.createStudy(ho, !0, !0);
11510
+ a && (t.generatedCandlesStudyIdRef.current = a), ko(e, t);
11511
+ }, No = (e, t, n) => {
11473
11512
  let r = {
11474
- id: po,
11513
+ id: _o,
11475
11514
  value: n
11476
11515
  };
11477
11516
  for (let n of [t.generatedCandlesBackgroundStudyIdRef, t.generatedCandlesStudyIdRef]) if (n.current) try {
@@ -11480,27 +11519,27 @@ var ao = [], oo = (e) => {
11480
11519
  };
11481
11520
  //#endregion
11482
11521
  //#region src/composables/use-predict-candle.ts
11483
- function Ao(e, t, n, r, i) {
11522
+ function Po(e, t, n, r, i) {
11484
11523
  let a = t.highlightBarsRef, o = { current: i.value }, s = { current: null }, c = !1, l, u = () => {
11485
11524
  l &&= (clearInterval(l), void 0);
11486
11525
  }, d = (n) => {
11487
11526
  let r = e.value;
11488
11527
  if (r) try {
11489
- ko(r.activeChart(), t, n);
11528
+ No(r.activeChart(), t, n);
11490
11529
  } catch {}
11491
11530
  }, f = (t, r, a = []) => {
11492
11531
  let o = e.value, s = i.value, c = $.targetCandles;
11493
11532
  if (!(!o || !s?.length) && !(!t.length && !a.length) && c.length) try {
11494
11533
  let e = o.activeChart(), i = U(n.value), s = it(c[0].timestamp, n.value) / 1e3 - (100 * i + i * 100);
11495
11534
  if (r > 0 && t.length > 0) {
11496
- let n = co(t[r - 1].time) / 1e3 + 100 / 3 * i;
11535
+ let n = po(t[r - 1].time) / 1e3 + 100 / 3 * i;
11497
11536
  e.setVisibleRange({
11498
11537
  from: s,
11499
11538
  to: n
11500
11539
  });
11501
11540
  return;
11502
11541
  }
11503
- let l = t[t.length - 1] ?? a[a.length - 1], u = (l ? co(l.time) : it(c[c.length - 1].timestamp, n.value)) / 1e3 + 100 / 3 * i;
11542
+ let l = t[t.length - 1] ?? a[a.length - 1], u = (l ? po(l.time) : it(c[c.length - 1].timestamp, n.value)) / 1e3 + 100 / 3 * i;
11504
11543
  e.setVisibleRange({
11505
11544
  from: s,
11506
11545
  to: u
@@ -11529,7 +11568,7 @@ function Ao(e, t, n, r, i) {
11529
11568
  return;
11530
11569
  }
11531
11570
  let t = e[i];
11532
- if (t && io(t)) {
11571
+ if (t && co(t)) {
11533
11572
  i++, a = 0, n?.(i), i >= e.length && o();
11534
11573
  return;
11535
11574
  }
@@ -11542,7 +11581,7 @@ function Ao(e, t, n, r, i) {
11542
11581
  await new Promise((e) => {
11543
11582
  n.onChartReady(async () => {
11544
11583
  try {
11545
- await Oo(n.activeChart(), t, "light");
11584
+ await Mo(n.activeChart(), t, "light");
11546
11585
  } catch (e) {
11547
11586
  console.error("Failed to recreate generated candle studies:", e);
11548
11587
  }
@@ -11551,13 +11590,13 @@ function Ao(e, t, n, r, i) {
11551
11590
  });
11552
11591
  } catch {}
11553
11592
  }, g = (e, t) => {
11554
- c || (ro(!1), s.current = i.value, a.current = e, f(e, e.length, t));
11593
+ c || (so(!1), s.current = i.value, a.current = e, f(e, e.length, t));
11555
11594
  }, _ = async (n, r = []) => {
11556
- if (c || (ro(!0), oo(n), a.current = [], await h(), c)) return;
11595
+ if (c || (so(!0), uo(n), a.current = [], await h(), c)) return;
11557
11596
  if (f(n, 0, r), r.length > 0) {
11558
11597
  for (let e of r) {
11559
11598
  if (c) return;
11560
- io(e);
11599
+ co(e);
11561
11600
  }
11562
11601
  f(n, 0, r);
11563
11602
  }
@@ -11566,7 +11605,7 @@ function Ao(e, t, n, r, i) {
11566
11605
  }), c) return;
11567
11606
  let i = e.value;
11568
11607
  if (i) try {
11569
- To(i.activeChart(), t);
11608
+ ko(i.activeChart(), t);
11570
11609
  } catch {}
11571
11610
  g(n, r);
11572
11611
  }, y = () => {
@@ -11574,45 +11613,48 @@ function Ao(e, t, n, r, i) {
11574
11613
  let l = i.value, d = $.targetCandles, f = $.gapCount, p = e.value;
11575
11614
  if (l?.length && d.length > 0) {
11576
11615
  if (s.current === l) return;
11577
- let e = La([...l].slice(-50 - (f || 0)), d[d.length - 1], d), t = Q.find((e) => e.ticker === r.value || e.display_name === r.value)?.session || "24x7", i = it(d[d.length - 1].timestamp, n.value), a = d[d.length - 1].c, o = Ka(i, n.value, f || 0, t), c = o.map((e) => ({
11578
- open: a,
11579
- high: a,
11580
- low: a,
11581
- close: a,
11616
+ let e = Va([...l].slice(-50 - (f || 0)), d[d.length - 1], d), t = Q.find((e) => e.ticker === r.value || e.display_name === r.value)?.session || "24x7", i = d[d.length - 1], a = it(i.timestamp, n.value);
11617
+ $.playEndTimestamp != null && !f && (a = it($.playEndTimestamp, n.value));
11618
+ let o = i.c, c = Xa(a, n.value, f || 0, t), u = c.map((e) => ({
11619
+ open: o,
11620
+ high: o,
11621
+ low: o,
11622
+ close: o,
11582
11623
  time: e
11583
- })), u = Ka(f ? o[o.length - 1] : i, n.value, e.length, t), m = [...e.map((e, t) => ({
11624
+ })), m = Xa(f ? c[c.length - 1] : a, n.value, e.length, t), h = [...e.map((e, t) => ({
11584
11625
  open: e.o,
11585
11626
  high: e.h,
11586
11627
  low: e.l,
11587
11628
  close: e.c,
11588
- time: it(u[t], n.value)
11629
+ time: it(m[t], n.value)
11589
11630
  }))].sort((e, t) => e.time - t.time);
11590
11631
  try {
11591
11632
  p?.onChartReady(() => {
11592
- _(m, c);
11633
+ _(h, u);
11593
11634
  });
11594
11635
  } catch {
11595
- _(m, c);
11636
+ _(h, u);
11596
11637
  }
11597
11638
  } else {
11598
- if (ro(!1), oo([]), s.current = null, a.current = [], p) try {
11599
- ko(p.activeChart(), t, 0);
11639
+ if (so(!1), uo([]), s.current = null, a.current = [], p) try {
11640
+ No(p.activeChart(), t, 0);
11600
11641
  } catch {}
11601
11642
  try {
11602
11643
  p?.onChartReady(() => {
11603
- p && Eo(p.activeChart());
11644
+ p && Ao(p.activeChart());
11604
11645
  });
11605
11646
  } catch {}
11606
11647
  }
11607
11648
  o.current = l;
11608
11649
  }, b = () => {
11609
- c = !0, u(), ro(!1);
11650
+ c = !0, u(), so(!1);
11610
11651
  };
11611
11652
  N([
11612
11653
  e,
11613
11654
  i,
11614
11655
  () => $.targetCandles,
11615
11656
  () => $.gapCount,
11657
+ () => $.playEndTimestamp,
11616
11658
  () => n.value,
11617
11659
  () => r.value
11618
11660
  ], () => {
@@ -11622,26 +11664,38 @@ function Ao(e, t, n, r, i) {
11622
11664
  deep: !0
11623
11665
  }), N(i, (n) => {
11624
11666
  if (n === null) {
11625
- oo([]), a.current = [];
11667
+ uo([]), a.current = [];
11626
11668
  let n = e.value;
11627
11669
  if (n) try {
11628
- ko(n.activeChart(), t, 0);
11670
+ No(n.activeChart(), t, 0);
11629
11671
  } catch {}
11630
11672
  }
11631
11673
  }), v(b);
11632
11674
  }
11633
11675
  //#endregion
11634
11676
  //#region src/composables/use-window-message.ts
11635
- function jo(e) {
11636
- return {
11637
- o: e[1],
11638
- h: e[2],
11639
- l: e[3],
11640
- c: e[4],
11641
- timestamp: e[0]
11677
+ var Fo = (e) => Number(at(e)), Io = (e) => ({
11678
+ o: e[1],
11679
+ h: e[2],
11680
+ l: e[3],
11681
+ c: e[4],
11682
+ timestamp: Fo(e[0])
11683
+ }), Lo = (e) => Fo(e[0]), Ro = (e, t) => {
11684
+ let n = -1, r = -Infinity;
11685
+ for (let i = 0; i < e.length; i++) {
11686
+ let a = Lo(e[i]);
11687
+ a <= t && a >= r && (r = a, n = i);
11688
+ }
11689
+ return n;
11690
+ }, zo = (e, t = 500) => new Promise((n) => {
11691
+ let r = !1, i = () => {
11692
+ r || (r = !0, n());
11642
11693
  };
11643
- }
11644
- var Mo = (e, t) => {
11694
+ try {
11695
+ e.onDataLoaded().subscribe(null, i, !0);
11696
+ } catch {}
11697
+ setTimeout(i, t);
11698
+ }), Bo = (e, t, n) => t >= e && t - e < n, Vo = (e, t) => {
11645
11699
  if (t.current) {
11646
11700
  try {
11647
11701
  let n = e?.activeChart?.();
@@ -11651,7 +11705,7 @@ var Mo = (e, t) => {
11651
11705
  } catch {}
11652
11706
  t.current = null;
11653
11707
  }
11654
- }, No = (e) => {
11708
+ }, Ho = (e) => {
11655
11709
  try {
11656
11710
  localStorage.removeItem(V);
11657
11711
  } catch {}
@@ -11660,30 +11714,25 @@ var Mo = (e, t) => {
11660
11714
  if (!t) return;
11661
11715
  t.clearMarks(2), t.refreshMarks();
11662
11716
  } catch {}
11663
- }, Po = (e, t) => {
11717
+ }, Uo = (e, t) => {
11664
11718
  try {
11665
11719
  localStorage.setItem(V, JSON.stringify(t));
11666
11720
  } catch {}
11667
11721
  try {
11668
11722
  (e?.activeChart?.())?.refreshMarks();
11669
11723
  } catch {}
11670
- }, Fo = async (e, t) => {
11724
+ }, Wo = async (e, t) => {
11671
11725
  if (!(!e || !Number.isFinite(t) || t <= 0)) try {
11672
11726
  await e.headerReady();
11673
- let n = e.activeChart(), r = Math.floor(t / 1e3), i = n.getVisibleRange(), a;
11727
+ let n = e.activeChart(), r = Fo(t), i = n.getVisibleRange(), a;
11674
11728
  a = i?.from != null && i?.to != null && i.to > i.from ? (i.to - i.from) / 2 : 100 * W(n.resolution()) / 2, await n.setVisibleRange({
11675
11729
  from: r - a,
11676
11730
  to: r + a
11677
- }), await new Promise((e) => {
11678
- let t = !1, r = () => {
11679
- t || (t = !0, e());
11680
- };
11681
- n.onDataLoaded().subscribe(null, r, !0), setTimeout(r, 300);
11682
- });
11731
+ }), await zo(n);
11683
11732
  } catch (e) {
11684
11733
  console.error("Error centering visible range on event", e);
11685
11734
  }
11686
- }, Io = async (e, t, n) => {
11735
+ }, Go = async (e, t, n) => {
11687
11736
  if (!e || !Number.isFinite(t) || t <= 0) return;
11688
11737
  await e?.headerReady();
11689
11738
  let r = e?.activeChart?.();
@@ -11695,7 +11744,11 @@ var Mo = (e, t) => {
11695
11744
  n.current = null;
11696
11745
  }
11697
11746
  try {
11698
- let e = W(r.resolution()), i = Math.floor(t / 1e3), a = i - i % e, o = await r.createShape({ time: a }, {
11747
+ let e = W(r.resolution()), i = Fo(t), { data: a } = await r.exportData({
11748
+ includedStudies: [],
11749
+ from: i - 5 * e,
11750
+ to: i + e
11751
+ }), o = a ?? [], s = Ro(o, i), c = i - i % e, l = s >= 0 && Bo(Lo(o[s]), i, e) ? Lo(o[s]) : c, u = await r.createShape({ time: l }, {
11699
11752
  shape: "vertical_line",
11700
11753
  lock: !0,
11701
11754
  disableSelection: !0,
@@ -11704,51 +11757,66 @@ var Mo = (e, t) => {
11704
11757
  linewidth: 1
11705
11758
  }
11706
11759
  });
11707
- o && (r.getShapeById(o)?.setSavingEnabled(!1), n.current = o);
11760
+ u && (r.getShapeById(u)?.setSavingEnabled(!1), n.current = u);
11708
11761
  } catch {}
11709
11762
  } catch {}
11710
- }, Lo = async (e, t) => {
11763
+ }, Ko = async (e, t) => {
11711
11764
  if (!(!e || !Number.isFinite(t) || t <= 0)) try {
11712
11765
  await e.headerReady();
11713
11766
  let n = e.activeChart(), r = W(n.resolution()), { data: i } = await n.exportData();
11714
11767
  if (!i?.length) return;
11715
- let a = i[i.length - 1][0], o = Math.floor(t / 1e3);
11768
+ let a = Lo(i[i.length - 1]), o = Fo(t);
11716
11769
  await n.setVisibleRange({
11717
11770
  from: a - 100 * r,
11718
11771
  to: o + 100 / 3 * r
11719
- });
11772
+ }), await zo(n);
11720
11773
  } catch (e) {
11721
11774
  console.error("Error expanding visible range for future event", e);
11722
11775
  }
11723
- }, Ro = async (e, t, n) => {
11776
+ }, qo = async (e, t, n) => {
11724
11777
  if (!e || !n || !Number.isFinite(t) || t <= 0) return !1;
11725
11778
  try {
11726
11779
  await e.headerReady();
11727
- let r = e.activeChart(), i = r.resolution(), a = W(i), o = Math.floor(t / 1e3), s = o - o % a, { data: c } = await r.exportData();
11728
- if (!c?.length) return !1;
11729
- let l = c[c.length - 1][0], u = r.symbol(), d = Q.find((e) => e.ticker === u || e.display_name === u)?.session || "24x7";
11730
- if (n.clearSelectedCandles(), $.setPlayEndTimestamp(null), ro(!1), s > l) {
11731
- let e = qa(it(l, i), it(s, i), i, d);
11732
- $.setGapCount(e);
11733
- let t = c.slice(-50).map(jo);
11734
- return t.length === 0 || n.setTargetCandles(t), !0;
11780
+ let r = e.activeChart(), i = r.resolution(), a = W(i), o = Fo(t), s = async (e, t) => {
11781
+ let { data: n } = await r.exportData({
11782
+ includedStudies: [],
11783
+ ...e != null && t != null ? {
11784
+ from: e,
11785
+ to: t
11786
+ } : {}
11787
+ });
11788
+ return n ?? [];
11789
+ }, c = await s();
11790
+ if (!c.length) return !1;
11791
+ let l = o > Lo(c[c.length - 1]), u = r.symbol(), d = Q.find((e) => e.ticker === u || e.display_name === u)?.session || "24x7";
11792
+ n.clearSelectedCandles(), $.setPlayEndTimestamp(null), so(!1), l ? await Ko(e, t) : await Wo(e, t);
11793
+ let f = async () => {
11794
+ let e = await s(o - 250 * a, o + 100 / 3 * a);
11795
+ return e.length ? e : s();
11796
+ };
11797
+ if (c = await f(), !c.length) return !1;
11798
+ let p = (e) => {
11799
+ let t = Ro(e, o);
11800
+ return t < 0 || !Bo(Lo(e[t]), o, a) ? -1 : t;
11801
+ }, m = Lo(c[c.length - 1]), h = o > m, g = h ? -1 : p(c);
11802
+ if (!h && g < 0) {
11803
+ if (await zo(r), c = await f(), !c.length) return !1;
11804
+ m = Lo(c[c.length - 1]), h = o > m, g = h ? -1 : p(c);
11735
11805
  }
11736
- $.setGapCount(0);
11737
- let f = c.findIndex((e) => e[0] === s);
11738
- if (f === -1) {
11739
- let e = Infinity;
11740
- for (let t = 0; t < c.length; t++) {
11741
- let n = Math.abs(c[t][0] - s);
11742
- n < e && (e = n, f = t);
11743
- }
11806
+ if (h) {
11807
+ let e = o - o % a, t = Za(it(m, i), it(e, i), i, d);
11808
+ $.setGapCount(t), $.setPlayEndTimestamp(e);
11809
+ let r = c.slice(-50).map(Io);
11810
+ return r.length === 0 || n.setTargetCandles(r), !0;
11744
11811
  }
11745
- if (f < 0) return !1;
11746
- let p = c.slice(Math.max(0, f - 49), f + 1).map(jo);
11747
- return p.length === 0 || n.setTargetCandles(p), !1;
11812
+ if ($.setGapCount(0), g < 0) return !1;
11813
+ $.setPlayEndTimestamp(Lo(c[g]));
11814
+ let _ = c.slice(Math.max(0, g - 49), g + 1).map(Io);
11815
+ return _.length === 0 || n.setTargetCandles(_), !1;
11748
11816
  } catch (e) {
11749
11817
  return console.error("Error preparing event target candles", e), !1;
11750
11818
  }
11751
- }, zo = (e) => {
11819
+ }, Jo = (e) => {
11752
11820
  if (e) try {
11753
11821
  e.onChartReady(() => {
11754
11822
  try {
@@ -11760,9 +11828,9 @@ var Mo = (e, t) => {
11760
11828
  } catch (e) {
11761
11829
  console.error("Error resetting chart data", e);
11762
11830
  }
11763
- }, Bo = (e, t) => {
11764
- t([]), $.setPlayEndTimestamp(null), ro(!1), zo(e);
11765
- }, Vo = (e, t) => {
11831
+ }, Yo = (e, t) => {
11832
+ t([]), $.setPlayEndTimestamp(null), $.setGapCount(0), so(!1), Jo(e);
11833
+ }, Xo = (e, t) => {
11766
11834
  if (e) try {
11767
11835
  let n = e.activeChart?.();
11768
11836
  if (!n) return;
@@ -11778,23 +11846,23 @@ var Mo = (e, t) => {
11778
11846
  } catch {}
11779
11847
  });
11780
11848
  } catch {}
11781
- }, Ho = (e) => Na[e] || e, Uo = (e) => {
11849
+ }, Zo = (e) => La[e] || e, Qo = (e) => {
11782
11850
  if (!e) return null;
11783
11851
  let t = Object.keys(e)[0], n = Number(t);
11784
11852
  return Number.isFinite(n) && n > 0 ? n : null;
11785
- }, Wo = async (e, t, n, r, i, a) => {
11853
+ }, $o = async (e, t, n, r, i, a) => {
11786
11854
  if (!e) return;
11787
- let { end_timestamp: o, symbol: s, timeframe: c } = t, l = Uo(i), u = Ho(c);
11855
+ let { end_timestamp: o, symbol: s, timeframe: c } = t, l = Qo(i), u = Zo(c);
11788
11856
  if (!(!s || !c || !Number.isFinite(o) || o <= 0 || l == null) && !(a && a.length > 0 && !a.includes(u) && !a.includes(c))) try {
11789
11857
  await e.headerReady();
11790
11858
  let i = W(u);
11791
- r?.clearSelectedCandles(), $.setPlayEndTimestamp(null), ro(!1), r && (r.applyingPatternRef.current = !0);
11859
+ r?.clearSelectedCandles(), $.setPlayEndTimestamp(null), $.setGapCount(0), so(!1), r && (r.applyingPatternRef.current = !0);
11792
11860
  try {
11793
11861
  await new Promise((t) => {
11794
11862
  e.setSymbol(s, u, () => t());
11795
11863
  });
11796
11864
  let a = e.activeChart();
11797
- Vo(e, n);
11865
+ Xo(e, n);
11798
11866
  let c = o - (l - 1) * i;
11799
11867
  try {
11800
11868
  await a.setVisibleRange({
@@ -11806,7 +11874,7 @@ var Mo = (e, t) => {
11806
11874
  }
11807
11875
  let { data: d } = await a.exportData(), f = d.findIndex((e) => e[0] === o);
11808
11876
  f === -1 && (f = d.length - 1);
11809
- let p = Math.max(0, f - l + 1), m = d.slice(p, f + 1), h = m[0]?.[0] ?? o, g = m[m.length - 1]?.[0] ?? o, _ = t.pattern?.trim() || "", v = Aa(), y = await a.createMultipointShape([{ time: h }, { time: g }], {
11877
+ let p = Math.max(0, f - l + 1), m = d.slice(p, f + 1), h = m[0]?.[0] ?? o, g = m[m.length - 1]?.[0] ?? o, _ = t.pattern?.trim() || "", v = Pa(), y = await a.createMultipointShape([{ time: h }, { time: g }], {
11810
11878
  ...v,
11811
11879
  overrides: {
11812
11880
  ...v.overrides,
@@ -11824,7 +11892,7 @@ var Mo = (e, t) => {
11824
11892
  } }), e.setSavingEnabled(!1)), n.current = y, r && (r.lastEntity.current = y);
11825
11893
  }
11826
11894
  if (r && m.length > 0) {
11827
- let e = m.map(jo), t = e.slice(-50);
11895
+ let e = m.map(Io), t = e.slice(-50);
11828
11896
  r.setSymbol(s), r.setResolution(u), r.setTimeframe(u), r.setWindowSize(e.length), r.setCandles(e), r.setTargetCandles(t), r.setHasActiveShape(!0);
11829
11897
  }
11830
11898
  } finally {
@@ -11838,18 +11906,20 @@ var Mo = (e, t) => {
11838
11906
  }, 600);
11839
11907
  }
11840
11908
  };
11841
- function Go(e, t, n, r, i, a, o, s) {
11842
- let c = { current: n.value }, l = { current: e.value }, u = { current: t }, d = { current: r }, f = { current: i }, p = { current: a }, m = { current: o }, h = { current: typeof s == "function" ? s() : s }, g = { current: null }, _ = { current: null }, y = { current: null };
11909
+ function es(e, t, n, r, i, a, o, s, c) {
11910
+ let l = { current: n.value }, u = { current: e.value }, d = { current: t }, f = { current: r }, p = { current: i }, m = { current: a }, h = { current: o }, g = { current: typeof s == "function" ? s() : s }, _ = { current: c }, y = { current: null }, b = { current: null }, x = { current: null };
11843
11911
  N(n, (e) => {
11844
- c.current = e;
11845
- }), N(e, (e) => {
11846
11912
  l.current = e;
11913
+ }), N(e, (e) => {
11914
+ u.current = e;
11847
11915
  }), N(() => o, (e) => {
11848
- m.current = e;
11849
- }), N(() => typeof s == "function" ? s() : s, (e) => {
11850
11916
  h.current = e;
11917
+ }), N(() => typeof s == "function" ? s() : s, (e) => {
11918
+ g.current = e;
11919
+ }), N(() => c, (e) => {
11920
+ _.current = e;
11851
11921
  });
11852
- let b = ({ origin: e, data: t }) => {
11922
+ let S = ({ origin: e, data: t }) => {
11853
11923
  if (e !== "https://embed-iccandle-app.iccandle.ai") return;
11854
11924
  let n;
11855
11925
  try {
@@ -11859,8 +11929,8 @@ function Go(e, t, n, r, i, a, o, s) {
11859
11929
  }
11860
11930
  if (!n || typeof n != "object") return;
11861
11931
  let r = () => {
11862
- Vo(l.current, _);
11863
- let e = p.current;
11932
+ Xo(u.current, b);
11933
+ let e = m.current;
11864
11934
  e && (e.lastEntity.current = null, e.setHasActiveShape(!1), e.setCandles([]), e.setTargetCandles([]));
11865
11935
  }, i = n.name;
11866
11936
  if (typeof i != "string") return;
@@ -11878,31 +11948,37 @@ function Go(e, t, n, r, i, a, o, s) {
11878
11948
  timestamp: e.timestamp
11879
11949
  }));
11880
11950
  if (t.length === 0) return;
11881
- u.current(t);
11882
- let n = e.playEndTimestamp ?? (y.current == null ? c.current : Math.floor(y.current / 1e3));
11883
- n != null && Number.isFinite(n) && $.setPlayEndTimestamp(n);
11951
+ d.current(t);
11952
+ let n = $.playEndTimestamp, r = x.current;
11953
+ if (r == null) try {
11954
+ r = JSON.parse(localStorage.getItem("tv:clicked-news-event") || "null")?.timestamp ?? null;
11955
+ } catch {
11956
+ r = null;
11957
+ }
11958
+ let i = n ?? (r == null ? e.playEndTimestamp ?? l.current : Fo(r));
11959
+ i != null && Number.isFinite(i) && $.setPlayEndTimestamp(i);
11884
11960
  return;
11885
11961
  }
11886
11962
  if (!("candles" in e)) return;
11887
11963
  let t = e.candles ?? null;
11888
- u.current(t);
11889
- let n = c.current;
11964
+ d.current(t);
11965
+ let n = l.current;
11890
11966
  n != null && Number.isFinite(n) && $.setPlayEndTimestamp(n);
11891
11967
  break;
11892
11968
  }
11893
11969
  case "chart.stop":
11894
11970
  if (a?.isReplay === !1) {
11895
- Bo(l.current, u.current);
11971
+ Yo(u.current, d.current);
11896
11972
  break;
11897
11973
  }
11898
- u.current(null), $.setPlayEndTimestamp(null), ro(!1), zo(l.current);
11974
+ d.current(null), $.setPlayEndTimestamp(null), so(!1), Jo(u.current);
11899
11975
  break;
11900
11976
  case "selector.closeResult":
11901
- u.current([]), $.setPlayEndTimestamp(null), f.current?.();
11977
+ d.current([]), $.setPlayEndTimestamp(null), p.current?.();
11902
11978
  break;
11903
11979
  case "selector.loading": {
11904
11980
  let e = a;
11905
- d.current(e?.isLoading ?? !1);
11981
+ f.current(e?.isLoading ?? !1);
11906
11982
  break;
11907
11983
  }
11908
11984
  case "auth.signIn": {
@@ -11916,28 +11992,28 @@ function Go(e, t, n, r, i, a, o, s) {
11916
11992
  case "news.eventClicked": {
11917
11993
  let e = a?.event;
11918
11994
  if (!e?.timestamp) return;
11919
- y.current = e.timestamp, Po(l.current, e), (async () => {
11920
- await Ro(l.current, e.timestamp, p.current) ? await Lo(l.current, e.timestamp) : await Fo(l.current, e.timestamp), await Io(l.current, e.timestamp, g);
11995
+ x.current = e.timestamp, Uo(u.current, e), (async () => {
11996
+ await qo(u.current, e.timestamp, m.current), await Go(u.current, e.timestamp, y);
11921
11997
  })();
11922
11998
  break;
11923
11999
  }
11924
12000
  case "news.back":
11925
- Mo(l.current, g), No(l.current), Bo(l.current, u.current), y.current = null, $.setGapCount(0), p.current?.setTargetCandles([]);
12001
+ Vo(u.current, y), Ho(u.current), Yo(u.current, d.current), x.current = null, $.setGapCount(0), m.current?.setTargetCandles([]);
11926
12002
  break;
11927
12003
  case "news.backToSimilarEvents":
11928
- Bo(l.current, u.current);
12004
+ Yo(u.current, d.current);
11929
12005
  break;
11930
12006
  case "pattern.classicPatternSelected": {
11931
12007
  let e = n.data?.pattern, t = e?.compared_pattern;
11932
12008
  if (!t) return;
11933
- Wo(l.current, t, _, p.current, e?.results?.matches_by_window, h.current);
12009
+ $o(u.current, t, b, m.current, e?.results?.matches_by_window, g.current);
11934
12010
  break;
11935
12011
  }
11936
12012
  case "pattern.custom_pattern_selected":
11937
12013
  case "patter.custom_pattern_selected": {
11938
12014
  let e = a?.pattern, t = e?.compared_pattern;
11939
12015
  if (!t) return;
11940
- Wo(l.current, t, _, p.current, e?.results?.matches_by_window, h.current);
12016
+ $o(u.current, t, b, m.current, e?.results?.matches_by_window, g.current);
11941
12017
  break;
11942
12018
  }
11943
12019
  case "pattern.clear_custom_pattern_selected":
@@ -11946,41 +12022,62 @@ function Go(e, t, n, r, i, a, o, s) {
11946
12022
  break;
11947
12023
  case "nav.click": {
11948
12024
  let e = a;
11949
- e?.href && m.current?.(e.href);
12025
+ e?.href && h.current?.(e.href);
11950
12026
  break;
11951
12027
  }
12028
+ case "chart.requestResolution":
12029
+ _.current?.();
12030
+ break;
11952
12031
  default: break;
11953
12032
  }
11954
12033
  };
11955
- window.addEventListener("message", b), v(() => {
11956
- window.removeEventListener("message", b);
12034
+ window.addEventListener("message", S), v(() => {
12035
+ window.removeEventListener("message", S);
11957
12036
  });
11958
12037
  }
11959
12038
  //#endregion
11960
12039
  //#region src/lib/post-parent-message.ts
11961
- var Ko = "open-pricing";
11962
- function qo(e) {
12040
+ var ts = "open-pricing";
12041
+ function ns(e) {
11963
12042
  return {
11964
- type: Ko,
12043
+ type: ts,
11965
12044
  ...e
11966
12045
  };
11967
12046
  }
11968
- function Jo(e, t) {
11969
- e.postMessage(JSON.stringify(qo(t)), "*");
12047
+ function rs(e, t) {
12048
+ e.postMessage(JSON.stringify(ns(t)), "*");
11970
12049
  }
11971
- function Yo(e, t) {
12050
+ function is(e, t) {
11972
12051
  let n = e?.contentWindow;
11973
- return n ? (Jo(n, t), !0) : !1;
12052
+ return n ? (rs(n, t), !0) : !1;
12053
+ }
12054
+ function as(e) {
12055
+ return typeof window > "u" || window.parent === window ? !1 : (rs(window.parent, e), !0);
12056
+ }
12057
+ //#endregion
12058
+ //#region src/lib/post-chart-resolution.ts
12059
+ var os = "chart-resolution";
12060
+ function ss(e) {
12061
+ return {
12062
+ type: os,
12063
+ resolution: e
12064
+ };
11974
12065
  }
11975
- function Xo(e) {
11976
- return typeof window > "u" || window.parent === window ? !1 : (Jo(window.parent, e), !0);
12066
+ function cs(e, t) {
12067
+ let n = e?.contentWindow;
12068
+ if (!n || !t) return !1;
12069
+ let r = "*";
12070
+ try {
12071
+ e?.src && (r = new URL(e.src).origin);
12072
+ } catch {}
12073
+ return n.postMessage(JSON.stringify(ss(t)), r), !0;
11977
12074
  }
11978
12075
  //#endregion
11979
12076
  //#region src/tradingview/WidgetIccandle.vue?vue&type=script&setup=true&lang.ts
11980
- var Zo = ["lang"], Qo = {
12077
+ var ls = ["lang"], us = {
11981
12078
  key: 3,
11982
12079
  class: "iccandle-selector-widget__overlay"
11983
- }, $o = /* @__PURE__ */ d({
12080
+ }, ds = /* @__PURE__ */ d({
11984
12081
  __name: "WidgetIccandle",
11985
12082
  props: {
11986
12083
  chartWidget: {},
@@ -12005,7 +12102,8 @@ var Zo = ["lang"], Qo = {
12005
12102
  type: Boolean,
12006
12103
  default: !0
12007
12104
  },
12008
- availableIntervals: {}
12105
+ availableIntervals: {},
12106
+ onScanClick: {}
12009
12107
  },
12010
12108
  setup(e, { expose: t }) {
12011
12109
  function n(e) {
@@ -12039,11 +12137,11 @@ var Zo = ["lang"], Qo = {
12039
12137
  generatedCandlesStudyIdRef: { current: null }
12040
12138
  };
12041
12139
  t({ chartRefs: f });
12042
- let p = { current: null }, m = { current: null }, h = { current: !1 }, y = w(null), S = { current: [] }, C = w(null), T = Ja(), D = w(!1), k = w(null), A = w(!1), j = w(null), M = w(null), P = () => C.value && getComputedStyle(C.value).getPropertyValue("--iccandle-primary").trim() || void 0, F = { current: P };
12140
+ let p = { current: null }, m = { current: null }, h = { current: !1 }, y = w(null), S = { current: [] }, C = w(null), T = Qa(), D = w(!1), k = w(null), A = w(!1), j = w(null), M = w(null), P = () => C.value && getComputedStyle(C.value).getPropertyValue("--iccandle-primary").trim() || void 0, F = { current: P };
12043
12141
  N(C, () => {
12044
12142
  F.current = P;
12045
12143
  }, { immediate: !0 });
12046
- let I = r(() => l.theme === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : l.theme), L = r(() => ({ zIndex: 9999999999 })), R = w(!1), ee = w(!1), z = w(!1), U = w(25), W = w([]), G = w(null), ne = w(!1), K = w("60"), q = w(Ma.interval || "60"), J = w(""), re = () => {
12144
+ let I = r(() => l.theme === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : l.theme), L = r(() => ({ zIndex: 9999999999 })), R = w(!1), ee = w(!1), z = w(!1), U = w(25), W = w([]), G = w(null), ne = w(!1), K = w("60"), q = w(Ia.interval || "60"), J = w(""), re = () => {
12047
12145
  try {
12048
12146
  let e = l.chartWidget?.activeChart?.();
12049
12147
  if (e) {
@@ -12066,7 +12164,7 @@ var Zo = ["lang"], Qo = {
12066
12164
  try {
12067
12165
  t = new URL(e, `${B}/`).pathname;
12068
12166
  } catch {}
12069
- t.includes("/news") && re(), k.value?.length && (T.setPlayEndTimestamp(null), T.setGapCount(0), k.value = null, ro(!1), zo(be.value));
12167
+ t.includes("/news") && re(), k.value?.length && (T.setPlayEndTimestamp(null), T.setGapCount(0), k.value = null, so(!1), Jo(xe.value));
12070
12168
  }, ae = () => {
12071
12169
  ee.value = !0;
12072
12170
  }, Y = () => {
@@ -12074,7 +12172,7 @@ var Zo = ["lang"], Qo = {
12074
12172
  }, X = () => {
12075
12173
  T.setPlayEndTimestamp(null), T.setGapCount(0);
12076
12174
  let e = !!k.value?.length;
12077
- k.value = null, ro(!1), e && zo(be.value), y.value?.();
12175
+ k.value = null, so(!1), e && Jo(xe.value), y.value?.();
12078
12176
  }, se = () => {
12079
12177
  G.value = "settings";
12080
12178
  }, ce = () => {
@@ -12086,17 +12184,19 @@ var Zo = ["lang"], Qo = {
12086
12184
  }, de = () => {
12087
12185
  ne.value = !0;
12088
12186
  }, fe = () => {
12187
+ cs(l.resultIframeRef?.current, q.value);
12188
+ }, pe = () => {
12089
12189
  let e = {
12090
12190
  theme: I.value === "dark" ? "dark" : "light",
12091
12191
  language: d.value
12092
12192
  };
12093
- Yo(l.resultIframeRef?.current, e) || Xo(e) || l.submitCallback(`${B}/${d.value}?pricing=true&theme=${I.value === "dark" ? "dark" : "light"}`);
12094
- }, pe = () => {
12095
- A.value = !1, j.value = null, M.value = null;
12193
+ is(l.resultIframeRef?.current, e) || as(e) || l.submitCallback(`${B}/${d.value}?pricing=true&theme=${I.value === "dark" ? "dark" : "light"}`);
12096
12194
  }, me = () => {
12195
+ A.value = !1, j.value = null, M.value = null;
12196
+ }, he = () => {
12097
12197
  R.value = !0;
12098
- }, he = (e) => {
12099
- let t = e.default_symbol || J.value, n = I.value === "dark" ? "dark" : "light", r = be.value;
12198
+ }, ge = (e) => {
12199
+ let t = e.default_symbol || J.value, n = I.value === "dark" ? "dark" : "light", r = xe.value;
12100
12200
  re(), k.value = null, T.setPlayEndTimestamp(null);
12101
12201
  let i = {
12102
12202
  id: e.id,
@@ -12117,7 +12217,7 @@ var Zo = ["lang"], Qo = {
12117
12217
  r?.activeChart?.()?.refreshMarks();
12118
12218
  } catch {}
12119
12219
  (async () => {
12120
- await Ro(r, e.timestamp, {
12220
+ await qo(r, e.timestamp, {
12121
12221
  lastEntity: p,
12122
12222
  applyingPatternRef: h,
12123
12223
  setHasActiveShape: (e) => {
@@ -12144,11 +12244,11 @@ var Zo = ["lang"], Qo = {
12144
12244
  clearSelectedCandles: () => {
12145
12245
  k.value = null;
12146
12246
  }
12147
- }), await Io(r, e.timestamp, m);
12247
+ }), await Go(r, e.timestamp, m);
12148
12248
  })(), l.submitCallback(`${B}/${d.value}/news/similar-events/${e.id}?symbol=${encodeURIComponent(t)}&theme=${n}`);
12149
- }, ge = (e) => {
12249
+ }, _e = (e) => {
12150
12250
  if (!e) return;
12151
- let t = be.value;
12251
+ let t = xe.value;
12152
12252
  if (!t) return;
12153
12253
  let n;
12154
12254
  try {
@@ -12186,23 +12286,59 @@ var Zo = ["lang"], Qo = {
12186
12286
  if (!c(d)) return;
12187
12287
  let f = d.timestamp ? d.timestamp / 1e3 : null, p = i.to - i.from, m = u(f ?? i.from + p * .5);
12188
12288
  m && (M.value = m), j.value = d, A.value = !0;
12189
- }, _e = () => {
12289
+ }, ve = () => {
12190
12290
  h.current || (p.current = null, z.value = !1);
12191
- }, ve = (e) => {
12192
- e === "1" || e === "5" ? K.value = "60" : K.value = e, q.value = e, _e();
12193
12291
  }, ye = (e) => {
12194
- J.value = e.library_custom_fields?.ticker || e.ticker || e.name || e.base_name + "" || "", _e();
12195
- }, be = O(l.chartWidget);
12292
+ e === "1" || e === "5" ? K.value = "60" : K.value = e, q.value = e, ve();
12293
+ let t = null;
12294
+ try {
12295
+ t = JSON.parse(localStorage.getItem("tv:clicked-news-event") || "null");
12296
+ } catch {
12297
+ t = null;
12298
+ }
12299
+ !t?.timestamp || !l.chartWidget || (async () => {
12300
+ await qo(l.chartWidget, t.timestamp, {
12301
+ lastEntity: p,
12302
+ applyingPatternRef: h,
12303
+ setHasActiveShape: (e) => {
12304
+ z.value = e;
12305
+ },
12306
+ setCandles: (e) => {
12307
+ W.value = e;
12308
+ },
12309
+ setWindowSize: (e) => {
12310
+ U.value = e;
12311
+ },
12312
+ setSymbol: (e) => {
12313
+ J.value = e;
12314
+ },
12315
+ setResolution: (e) => {
12316
+ q.value = e;
12317
+ },
12318
+ setTimeframe: (e) => {
12319
+ K.value = e;
12320
+ },
12321
+ setTargetCandles: (e) => {
12322
+ T.setTargetCandles(e);
12323
+ },
12324
+ clearSelectedCandles: () => {
12325
+ k.value = null;
12326
+ }
12327
+ }), await Go(l.chartWidget, t.timestamp, m);
12328
+ })();
12329
+ }, be = (e) => {
12330
+ J.value = e.library_custom_fields?.ticker || e.ticker || e.name || e.base_name + "" || "", ve();
12331
+ }, xe = O(l.chartWidget);
12196
12332
  N(() => l.chartWidget, (e) => {
12197
- be.value = e;
12198
- }), N(be, (e) => {
12333
+ xe.value = e;
12334
+ }), N(xe, (e) => {
12199
12335
  let t, r, i;
12200
12336
  b(() => {
12201
12337
  z.value = !1, p.current = null, y.value = null;
12202
12338
  try {
12203
12339
  if (r && clearTimeout(r), e) {
12204
12340
  let n = e.activeChart();
12205
- n && (i && n.onVisibleRangeChanged().unsubscribe(null, i), n.onIntervalChanged().unsubscribe(null, ve), n.onSymbolChanged().unsubscribe(null, ye)), t && e.unsubscribe("drawing_event", t);
12341
+ n && (i && n.onVisibleRangeChanged().unsubscribe(null, i), n.onIntervalChanged().unsubscribe(null, ye), n.onSymbolChanged().unsubscribe(null, be)), t && e.unsubscribe("drawing_event", t);
12206
12342
  }
12207
12343
  } catch (e) {
12208
12344
  console.log(e);
@@ -12224,11 +12360,11 @@ var Zo = ["lang"], Qo = {
12224
12360
  U.value = c.length, W.value = c.map(n), T.setTargetCandles(l.map(n)), z.value = !0;
12225
12361
  let u = c[0], d = c[c.length - 1];
12226
12362
  if (!u || !d) return;
12227
- if (p.current = await a.createMultipointShape([{ time: u[0] }, { time: d[0] }], Aa(F.current())), p.current) {
12363
+ if (p.current = await a.createMultipointShape([{ time: u[0] }, { time: d[0] }], Pa(F.current())), p.current) {
12228
12364
  let e = a.getShapeById(p.current);
12229
12365
  e && e.setSavingEnabled && (e.setProperties({ customText: {
12230
12366
  visible: !0,
12231
- text: ja
12367
+ text: Fa
12232
12368
  } }), e.setSavingEnabled(!1));
12233
12369
  }
12234
12370
  }
@@ -12240,16 +12376,16 @@ var Zo = ["lang"], Qo = {
12240
12376
  let r = e.getPoints(), i = r[0].time, o = r[1].time, { data: s } = await a.exportData(), c = s.findIndex((e) => e[0] === o), l = s.findIndex((e) => e[0] === i);
12241
12377
  c === -1 && (c = s.length - 2, l = s.length - 1 - 25);
12242
12378
  let u = s.slice(l, c + 1).length - 1;
12243
- u > at.max ? (u = Math.round(u / 10) * 10 - 1, u > at.custom[at.custom.length - 1] && (u = at.custom[at.custom.length - 1] - 1)) : u <= at.min && (u = at.min - 1), p.current && a.removeEntity(p.current), a.getAllShapes().filter((e) => e.name === "date_range").forEach((e) => {
12379
+ u > ot.max ? (u = Math.round(u / 10) * 10 - 1, u > ot.custom[ot.custom.length - 1] && (u = ot.custom[ot.custom.length - 1] - 1)) : u <= ot.min && (u = ot.min - 1), p.current && a.removeEntity(p.current), a.getAllShapes().filter((e) => e.name === "date_range").forEach((e) => {
12244
12380
  a.removeEntity(e.id);
12245
12381
  });
12246
12382
  let d = s.slice(c - u, c + 1), f = s.slice(c - 49, c + 1), m = d[0], h = d[d.length - 1];
12247
12383
  if (!m || !h) return;
12248
- if (p.current = await a.createMultipointShape([{ time: m[0] }, { time: h[0] }], Aa(F.current())), U.value = d.length, W.value = d.map(n), T.setTargetCandles(f.map(n)), z.value = !0, p.current) {
12384
+ if (p.current = await a.createMultipointShape([{ time: m[0] }, { time: h[0] }], Pa(F.current())), U.value = d.length, W.value = d.map(n), T.setTargetCandles(f.map(n)), z.value = !0, p.current) {
12249
12385
  let e = a.getShapeById(p.current);
12250
12386
  e && e.setSavingEnabled && (e.setProperties({ customText: {
12251
12387
  visible: !0,
12252
- text: ja
12388
+ text: Fa
12253
12389
  } }), e.setSavingEnabled(!1));
12254
12390
  }
12255
12391
  }
@@ -12277,13 +12413,13 @@ var Zo = ["lang"], Qo = {
12277
12413
  r && clearTimeout(r), r = setTimeout(() => {
12278
12414
  l(e) ? z.value = !1 : p.current && (z.value = !0);
12279
12415
  }, 150);
12280
- }, a.onIntervalChanged().subscribe(null, ve), a.onSymbolChanged().subscribe(null, ye), a.onVisibleRangeChanged().subscribe(null, i), e.subscribe?.("drawing_event", t);
12416
+ }, a.onIntervalChanged().subscribe(null, ye), a.onSymbolChanged().subscribe(null, be), a.onVisibleRangeChanged().subscribe(null, i), e.subscribe?.("drawing_event", t);
12281
12417
  }
12282
12418
  });
12283
12419
  }, { immediate: !0 });
12284
- let xe = r(() => W.value[W.value.length - 1]?.timestamp ?? null);
12285
- Pa(be, S);
12286
- let Se = {
12420
+ let Se = r(() => W.value[W.value.length - 1]?.timestamp ?? null);
12421
+ Ra(xe, S);
12422
+ let Ce = {
12287
12423
  lastEntity: p,
12288
12424
  applyingPatternRef: h,
12289
12425
  setHasActiveShape: (e) => {
@@ -12311,41 +12447,50 @@ var Zo = ["lang"], Qo = {
12311
12447
  k.value = null;
12312
12448
  }
12313
12449
  };
12314
- Go(be, (e) => {
12450
+ es(xe, (e) => {
12315
12451
  k.value = e;
12316
- }, xe, (e) => {
12452
+ }, Se, (e) => {
12317
12453
  D.value = e;
12318
- }, l.onCloseResult, Se, ie, () => l.availableIntervals), N(be, (e) => {
12454
+ }, l.onCloseResult, Ce, ie, () => l.availableIntervals, fe), N(() => [l.iframeLoaded, q.value], ([e]) => {
12455
+ if (!e) return;
12456
+ let t = [
12457
+ 0,
12458
+ 300,
12459
+ 1e3,
12460
+ 2500
12461
+ ].map((e) => window.setTimeout(fe, e));
12462
+ b(() => t.forEach((e) => window.clearTimeout(e)));
12463
+ }), N(xe, (e) => {
12319
12464
  if (!e) return;
12320
12465
  let t = !1;
12321
12466
  b(() => {
12322
12467
  t = !0;
12323
12468
  try {
12324
- e.unsubscribe("onTimescaleMarkClick", ge);
12469
+ e.unsubscribe("onTimescaleMarkClick", _e);
12325
12470
  } catch {}
12326
12471
  }), e.onChartReady(async () => {
12327
12472
  if (!t) {
12328
12473
  try {
12329
- await Oo(e.activeChart(), f, I.value);
12474
+ await Mo(e.activeChart(), f, I.value);
12330
12475
  } catch (e) {
12331
12476
  console.error("Failed to create generated candle studies:", e);
12332
12477
  }
12333
12478
  try {
12334
- e.subscribe("onTimescaleMarkClick", ge);
12479
+ e.subscribe("onTimescaleMarkClick", _e);
12335
12480
  } catch {}
12336
12481
  }
12337
12482
  });
12338
12483
  }, { immediate: !0 }), N(I, (e) => {
12339
- let t = be.value;
12484
+ let t = xe.value;
12340
12485
  if (t) try {
12341
12486
  t.onChartReady(() => {
12342
12487
  try {
12343
- Do(t.activeChart(), f, e);
12488
+ jo(t.activeChart(), f, e);
12344
12489
  } catch {}
12345
12490
  });
12346
12491
  } catch {}
12347
- }), Ao(be, f, q, J, k);
12348
- let Ce = () => {
12492
+ }), Po(xe, f, q, J, k);
12493
+ let we = () => {
12349
12494
  try {
12350
12495
  localStorage.removeItem(H), localStorage.removeItem(V);
12351
12496
  } catch {}
@@ -12360,11 +12505,11 @@ var Zo = ["lang"], Qo = {
12360
12505
  e.clearMarks(2);
12361
12506
  } catch {}
12362
12507
  }
12363
- }, we = (e) => {
12364
- K.value = e;
12365
12508
  }, Te = (e) => {
12509
+ K.value = e;
12510
+ }, Ee = (e) => {
12366
12511
  R.value = e;
12367
- }, Ee = r(() => Q.find((e) => e.ticker === J.value)?.type ?? "forex"), De = r(() => J.value || localStorage.getItem("tv:latest-symbol") || "XAU_USD");
12512
+ }, De = r(() => Q.find((e) => e.ticker === J.value)?.type ?? "forex"), Oe = r(() => J.value || localStorage.getItem("tv:latest-symbol") || "XAU_USD");
12368
12513
  return v(() => {
12369
12514
  z.value = !1, p.current = null, y.value = null;
12370
12515
  }), (t, n) => (x(), o("div", {
@@ -12381,7 +12526,8 @@ var Zo = ["lang"], Qo = {
12381
12526
  "submit-callback": e.submitCallback,
12382
12527
  "handle-show-dialog": se,
12383
12528
  "on-open-scan-config": ce,
12384
- "on-apply-saved-timeframe": we,
12529
+ "on-scan-click": e.onScanClick,
12530
+ "on-apply-saved-timeframe": Te,
12385
12531
  "pending-scan-after-config": ne.value,
12386
12532
  "on-pending-scan-handled": ue,
12387
12533
  "trigger-scanner": X,
@@ -12396,16 +12542,17 @@ var Zo = ["lang"], Qo = {
12396
12542
  "has-active-shape": z.value,
12397
12543
  theme: I.value,
12398
12544
  language: d.value,
12399
- "clear-scanner-news-marks": Ce,
12545
+ "clear-scanner-news-marks": we,
12400
12546
  "selected-candles": k.value,
12401
12547
  "iframe-loaded": e.iframeLoaded,
12402
12548
  "is-loading": D.value,
12403
- "handle-track-pattern-click": me
12549
+ "handle-track-pattern-click": he
12404
12550
  }, null, 8, [
12405
12551
  "hide",
12406
12552
  "hide-scan-button",
12407
12553
  "hide-tracker-button",
12408
12554
  "submit-callback",
12555
+ "on-scan-click",
12409
12556
  "pending-scan-after-config",
12410
12557
  "window_size",
12411
12558
  "current-symbol",
@@ -12420,12 +12567,12 @@ var Zo = ["lang"], Qo = {
12420
12567
  "iframe-loaded",
12421
12568
  "is-loading"
12422
12569
  ]),
12423
- R.value ? (x(), i(Gi, {
12570
+ R.value ? (x(), i(Yi, {
12424
12571
  key: 0,
12425
12572
  open: R.value,
12426
- "onUpdate:open": Te,
12573
+ "onUpdate:open": Ee,
12427
12574
  resolution: q.value,
12428
- type: Ee.value,
12575
+ type: De.value,
12429
12576
  symbol: J.value,
12430
12577
  candles: W.value,
12431
12578
  percent: 90,
@@ -12438,42 +12585,42 @@ var Zo = ["lang"], Qo = {
12438
12585
  "candles",
12439
12586
  "theme"
12440
12587
  ])) : a("", !0),
12441
- G.value ? (x(), i(Hn, {
12588
+ G.value ? (x(), i(Kn, {
12442
12589
  key: 1,
12443
12590
  intent: G.value,
12444
- "set-resolution": we,
12591
+ "set-resolution": Te,
12445
12592
  timeframe: K.value,
12446
12593
  "handle-close-dialog": le,
12447
12594
  "current-symbol": J.value,
12448
12595
  theme: I.value,
12449
12596
  onScanConfigSaved: de,
12450
- onUpgradeClick: fe
12597
+ onUpgradeClick: pe
12451
12598
  }, null, 8, [
12452
12599
  "intent",
12453
12600
  "timeframe",
12454
12601
  "current-symbol",
12455
12602
  "theme"
12456
12603
  ])) : a("", !0),
12457
- A.value && j.value ? (x(), i(ua, {
12604
+ A.value && j.value ? (x(), i(ma, {
12458
12605
  key: 2,
12459
12606
  event: j.value,
12460
- symbol: De.value,
12607
+ symbol: Oe.value,
12461
12608
  position: M.value,
12462
- onClose: pe,
12463
- onGoToEventDetail: he
12609
+ onClose: me,
12610
+ onGoToEventDetail: ge
12464
12611
  }, null, 8, [
12465
12612
  "event",
12466
12613
  "symbol",
12467
12614
  "position"
12468
12615
  ])) : a("", !0),
12469
- ee.value ? (x(), o("div", Qo)) : a("", !0),
12470
- u(Oa, {
12616
+ ee.value ? (x(), o("div", us)) : a("", !0),
12617
+ u(Ma, {
12471
12618
  theme: I.value,
12472
12619
  style: _(L.value)
12473
12620
  }, null, 8, ["theme", "style"])
12474
- ], 10, Zo));
12621
+ ], 10, ls));
12475
12622
  }
12476
- }), es = (e) => {
12623
+ }), fs = (e) => {
12477
12624
  let t = e?.contentWindow;
12478
12625
  if (!t || !e?.src) return;
12479
12626
  let n = new URL(e.src).origin, r = () => t.postMessage(JSON.stringify({
@@ -12501,4 +12648,4 @@ var Zo = ["lang"], Qo = {
12501
12648
  }
12502
12649
  };
12503
12650
  //#endregion
12504
- export { Ko as OPEN_PRICING_MESSAGE_TYPE, B as WIDGET_RESULT_URL, $o as WidgetIccandle, So as getCustomIndicators, es as handleResultIframeLoad, Yo as postOpenPricingToEmbed, Xo as postOpenPricingToParent, Jo as postOpenPricingToWindow, no as withPlayChart };
12651
+ export { ts as OPEN_PRICING_MESSAGE_TYPE, B as WIDGET_RESULT_URL, ds as WidgetIccandle, Eo as getCustomIndicators, fs as handleResultIframeLoad, is as postOpenPricingToEmbed, as as postOpenPricingToParent, rs as postOpenPricingToWindow, oo as withPlayChart };