@iccandle/vuejs-widget 0.1.4 → 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: "Сканировано:",
@@ -7488,7 +7504,9 @@ function fe({ title: e, description: t, action: n, dismiss: r, variant: i = "inf
7488
7504
  //#region src/lib/search-filter-storage.ts
7489
7505
  var pe = "search-filter", me = "search-filter-session", he = "scanner-always-show";
7490
7506
  function ge() {
7491
- return typeof window > "u" ? !1 : localStorage.getItem(he) === "true";
7507
+ if (typeof window > "u") return !0;
7508
+ let e = localStorage.getItem(he);
7509
+ return e === null || e === "true";
7492
7510
  }
7493
7511
  function _e(e) {
7494
7512
  typeof window > "u" || localStorage.setItem(he, String(e));
@@ -7761,6 +7779,7 @@ var we = { class: "iccandle-simple-tooltip-trigger" }, Te = {
7761
7779
  window_size: {},
7762
7780
  handleShowDialog: {},
7763
7781
  onOpenScanConfig: {},
7782
+ onScanClick: {},
7764
7783
  pendingScanAfterConfig: {
7765
7784
  type: Boolean,
7766
7785
  default: !1
@@ -7901,7 +7920,7 @@ var we = { class: "iccandle-simple-tooltip-trigger" }, Te = {
7901
7920
  }), !1);
7902
7921
  }
7903
7922
  function j() {
7904
- if (O()) {
7923
+ if (n.onScanClick?.(), O()) {
7905
7924
  if (n.selectedCandles?.length) {
7906
7925
  fe({
7907
7926
  title: c("Common.error"),
@@ -7944,7 +7963,7 @@ var we = { class: "iccandle-simple-tooltip-trigger" }, Te = {
7944
7963
  r[4] ||= s("div", { class: "iccandle-scanner-popup__divider" }, null, -1),
7945
7964
  t.hasActiveShape ? (x(), o(e, { key: 0 }, [
7946
7965
  u(Ee, { text: A(c)("Selector.availableBars") }, {
7947
- 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)]),
7948
7967
  _: 1
7949
7968
  }, 8, ["text"]),
7950
7969
  t.hideScanButton ? a("", !0) : (x(), i(Ee, {
@@ -8052,7 +8071,7 @@ var it = (e, t) => {
8052
8071
  return t.setUTCHours(0, 0, 0, 0), t.getTime();
8053
8072
  }
8054
8073
  return e.toString().length > 11 ? e : e * 1e3;
8055
- }, at = {
8074
+ }, at = (e) => e > 1e11 ? Math.floor(e / 1e3) : e, ot = {
8056
8075
  min: 10,
8057
8076
  max: 50,
8058
8077
  custom: [
@@ -8463,11 +8482,11 @@ var it = (e, t) => {
8463
8482
  type: "commodity",
8464
8483
  session: "1700-1700"
8465
8484
  }
8466
- ], ot = [
8485
+ ], st = [
8467
8486
  "width",
8468
8487
  "height",
8469
8488
  "stroke"
8470
- ], st = /* @__PURE__ */ d({
8489
+ ], ct = /* @__PURE__ */ d({
8471
8490
  __name: "XIcon",
8472
8491
  props: {
8473
8492
  size: { default: 24 },
@@ -8486,15 +8505,15 @@ var it = (e, t) => {
8486
8505
  "stroke-linecap": "round",
8487
8506
  "stroke-linejoin": "round",
8488
8507
  class: g(e.className)
8489
- }, [...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));
8490
8509
  }
8491
- }), 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 = {
8492
8511
  key: 0,
8493
8512
  class: "iccandle-info-tooltip-content__body"
8494
- }, ft = { class: "iccandle-info-tooltip-content__line-label" }, pt = {
8513
+ }, pt = { class: "iccandle-info-tooltip-content__line-label" }, mt = {
8495
8514
  key: 1,
8496
8515
  class: "iccandle-info-tooltip-content__description"
8497
- }, mt = /* @__PURE__ */ d({
8516
+ }, ht = /* @__PURE__ */ d({
8498
8517
  __name: "ToolTip",
8499
8518
  props: {
8500
8519
  title: {},
@@ -8577,24 +8596,24 @@ var it = (e, t) => {
8577
8596
  }, null, -1),
8578
8597
  s("path", { d: "M12 16v-4" }, null, -1),
8579
8598
  s("path", { d: "M12 8h.01" }, null, -1)
8580
- ]], 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", {
8581
8600
  key: 0,
8582
8601
  ref_key: "contentRef",
8583
8602
  ref: d,
8584
8603
  class: g(A(Z)("iccandle-info-tooltip-content", "iccandle-theme-scope", y.value && "iccandle-dark")),
8585
8604
  role: "tooltip",
8586
8605
  style: _(m.value)
8587
- }, [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", {
8588
8607
  key: e.label,
8589
8608
  class: "iccandle-info-tooltip-content__line"
8590
- }, [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));
8591
8610
  }
8592
- }), ht = [
8611
+ }), gt = [
8593
8612
  "width",
8594
8613
  "height",
8595
8614
  "stroke",
8596
8615
  "stroke-width"
8597
- ], gt = /* @__PURE__ */ d({
8616
+ ], _t = /* @__PURE__ */ d({
8598
8617
  __name: "ChevronDownIcon",
8599
8618
  props: {
8600
8619
  size: { default: 16 },
@@ -8614,12 +8633,12 @@ var it = (e, t) => {
8614
8633
  "stroke-linecap": "round",
8615
8634
  "stroke-linejoin": "round",
8616
8635
  class: g(e.className)
8617
- }, [...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));
8618
8637
  }
8619
- }), _t = ["aria-expanded"], vt = ["aria-selected", "onClick"], yt = {
8638
+ }), vt = ["aria-expanded"], yt = ["aria-selected", "onClick"], bt = {
8620
8639
  key: 0,
8621
8640
  class: "iccandle-scanner-ai-settings__upgrade-btn-wrap ai-gradient-border"
8622
- }, bt = /* @__PURE__ */ d({
8641
+ }, xt = /* @__PURE__ */ d({
8623
8642
  __name: "LimitSelect",
8624
8643
  props: {
8625
8644
  value: {},
@@ -8700,11 +8719,11 @@ var it = (e, t) => {
8700
8719
  "aria-expanded": n.open,
8701
8720
  "aria-haspopup": "listbox",
8702
8721
  onClick: M
8703
- }, [s("span", null, k(n.getLabel(n.value)), 1), u(gt, {
8722
+ }, [s("span", null, k(n.getLabel(n.value)), 1), u(_t, {
8704
8723
  size: 16,
8705
8724
  "class-name": `iccandle-scanner-ai-settings__trigger-chevron${n.open ? " iccandle-scanner-ai-settings__trigger-chevron--open" : ""}`,
8706
8725
  "aria-hidden": "true"
8707
- }, 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, {
8708
8727
  key: 0,
8709
8728
  to: b.value
8710
8729
  }, [s("div", {
@@ -8719,13 +8738,13 @@ var it = (e, t) => {
8719
8738
  "aria-selected": e === n.value,
8720
8739
  class: g(["iccandle-scanner-ai-settings__dropdown-item", (n.isLocked?.(e) ?? !1) && "iccandle-scanner-ai-settings__dropdown-item--locked"]),
8721
8740
  onClick: (t) => P(e, n.isLocked?.(e) ?? !1)
8722
- }, [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", {
8723
8742
  type: "button",
8724
8743
  class: "iccandle-scanner-ai-settings__upgrade-btn",
8725
8744
  onMousedown: F
8726
- }, 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));
8727
8746
  }
8728
- }), 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({
8729
8748
  __name: "ScannerAdvancedOptions",
8730
8749
  props: /*@__PURE__*/ m({ temperature: {} }, {
8731
8750
  modelValue: { required: !0 },
@@ -8811,14 +8830,14 @@ var it = (e, t) => {
8811
8830
  function y(e, t) {
8812
8831
  c.value = t ? e : null;
8813
8832
  }
8814
- return (t, r) => (x(), o("div", xt, [
8815
- 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, {
8816
8835
  title: A(a)("Selector.period"),
8817
8836
  description: A(a)("Selector.periodTooltip"),
8818
8837
  side: "right",
8819
8838
  size: 16,
8820
8839
  "class-name": "text-muted-foreground"
8821
- }, null, 8, ["title", "description"])]), u(bt, {
8840
+ }, null, 8, ["title", "description"])]), u(xt, {
8822
8841
  value: n.value.period ?? 0,
8823
8842
  options: p,
8824
8843
  "get-label": (e) => g.value.get(e) ?? String(e),
@@ -8830,13 +8849,13 @@ var it = (e, t) => {
8830
8849
  "get-label",
8831
8850
  "open"
8832
8851
  ])]),
8833
- 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, {
8834
8853
  title: A(a)("Common.timeframe"),
8835
8854
  description: A(a)("Selector.timeframeTooltip"),
8836
8855
  side: "right",
8837
8856
  size: 16,
8838
8857
  "class-name": "text-muted-foreground"
8839
- }, null, 8, ["title", "description"])]), u(bt, {
8858
+ }, null, 8, ["title", "description"])]), u(xt, {
8840
8859
  value: n.value.timeframe,
8841
8860
  options: m,
8842
8861
  "get-label": (e) => _.value.get(e) ?? e,
@@ -8848,13 +8867,13 @@ var it = (e, t) => {
8848
8867
  "get-label",
8849
8868
  "open"
8850
8869
  ])]),
8851
- 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, {
8852
8871
  title: A(a)("Selector.aiTemperature"),
8853
8872
  description: A(a)("Selector.aiTemperatureTooltip"),
8854
8873
  side: "right",
8855
8874
  size: 16,
8856
8875
  "class-name": "text-muted-foreground"
8857
- }, null, 8, ["title", "description"])]), u(bt, {
8876
+ }, null, 8, ["title", "description"])]), u(xt, {
8858
8877
  value: e.temperature,
8859
8878
  options: h,
8860
8879
  "get-label": v,
@@ -8864,7 +8883,18 @@ var it = (e, t) => {
8864
8883
  }, null, 8, ["value", "open"])])
8865
8884
  ]));
8866
8885
  }
8867
- }), 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({
8868
8898
  __name: "ScannerAiSettings",
8869
8899
  props: /*@__PURE__*/ m({
8870
8900
  userResultLimit: {},
@@ -8876,7 +8906,17 @@ var it = (e, t) => {
8876
8906
  }),
8877
8907
  emits: /*@__PURE__*/ m(["modelChange", "upgradeClick"], ["update:topK"]),
8878
8908
  setup(e, { emit: t }) {
8879
- 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 = [
8880
8920
  10,
8881
8921
  30,
8882
8922
  50,
@@ -8884,94 +8924,95 @@ var it = (e, t) => {
8884
8924
  100,
8885
8925
  150,
8886
8926
  200
8887
- ], r = j(e, "topK"), i = e, a = t, { t: c } = X(), d = w(null), f = ["light", "pro"];
8888
- function p(e) {
8889
- 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;
8890
8933
  }
8891
- function m(e) {
8892
- return e === "pro" && !i.isProModelEnabled;
8934
+ function _(e) {
8935
+ return e !== "light" && !d.isProModelEnabled;
8893
8936
  }
8894
- function h(e) {
8895
- return e === "light" ? "CSE Light" : "CSE Pro";
8937
+ function v(e) {
8938
+ return n[e];
8896
8939
  }
8897
- function g() {
8898
- a("upgradeClick");
8940
+ function y() {
8941
+ f("upgradeClick");
8899
8942
  }
8900
- return (t, i) => (x(), o("div", kt, [s("div", At, [s("label", jt, [l(k(A(c)("Selector.result")) + " ", 1), u(mt, {
8901
- title: A(c)("Selector.result"),
8902
- 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"),
8903
8946
  side: "right",
8904
8947
  size: 16,
8905
8948
  "class-name": "text-muted-foreground"
8906
- }, null, 8, ["title", "description"])]), u(bt, {
8907
- value: r.value ?? 30,
8908
- options: n,
8909
- "is-locked": p,
8949
+ }, null, 8, ["title", "description"])]), u(xt, {
8950
+ value: c.value ?? 30,
8951
+ options: a,
8952
+ "is-locked": g,
8910
8953
  "get-label": (e) => String(e),
8911
- open: d.value === "top_k",
8912
- "on-upgrade-click": g,
8913
- onChange: i[0] ||= (e) => r.value = e,
8914
- 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
8915
8958
  }, null, 8, [
8916
8959
  "value",
8917
8960
  "get-label",
8918
8961
  "open"
8919
- ])]), s("div", Mt, [s("div", Nt, [l(k(A(c)("Selector.aiModel")) + " ", 1), u(mt, {
8920
- title: A(c)("Selector.aiModel"),
8921
- lines: [{
8922
- label: "CSE Light",
8923
- text: A(c)("Selector.aiModelTooltipLight")
8924
- }, {
8925
- label: "CSE Pro",
8926
- text: A(c)("Selector.aiModelTooltipPro")
8927
- }],
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,
8928
8965
  side: "right",
8929
8966
  size: 16,
8930
8967
  "class-name": "text-muted-foreground"
8931
- }, null, 8, ["title", "lines"])]), u(bt, {
8968
+ }, null, 8, ["title", "lines"])]), u(xt, {
8932
8969
  value: e.model,
8933
- options: f,
8934
- "is-locked": m,
8935
- "get-label": h,
8970
+ options: A(At),
8971
+ "is-locked": _,
8972
+ "get-label": v,
8936
8973
  "wrap-class-name": "ai-gradient-border",
8937
- open: d.value === "model",
8938
- "on-upgrade-click": g,
8939
- onChange: i[2] ||= (e) => a("modelChange", e),
8940
- onOpenChange: i[3] ||= (e) => d.value = e ? "model" : null
8941
- }, 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
+ ])])]));
8942
8983
  }
8943
- }), 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({
8944
8985
  __name: "ForexIcons",
8945
8986
  props: { name: {} },
8946
8987
  setup(t) {
8947
8988
  let n = t, i = r(() => Q?.find((e) => e.ticker === n.name)?.logo_urls.map((e) => e) || []);
8948
- 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", {
8949
8990
  key: 0,
8950
8991
  src: i.value[0],
8951
8992
  alt: "forex icon",
8952
8993
  width: "24",
8953
8994
  height: "24",
8954
8995
  class: "iccandle-forexIcons__img iccandle-forexIcons__img--single"
8955
- }, 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", {
8956
8997
  src: i.value[0],
8957
8998
  alt: "forex icon 1",
8958
8999
  width: "18",
8959
9000
  height: "18",
8960
9001
  class: "iccandle-forexIcons__img iccandle-forexIcons__img--left"
8961
- }, null, 8, Lt), s("img", {
9002
+ }, null, 8, Vt), s("img", {
8962
9003
  src: i.value[1],
8963
9004
  alt: "forex icon 2",
8964
9005
  width: "18",
8965
9006
  height: "18",
8966
9007
  class: "iccandle-forexIcons__img iccandle-forexIcons__img--right"
8967
- }, null, 8, Rt)], 64)) : a("", !0)]));
9008
+ }, null, 8, Ht)], 64)) : a("", !0)]));
8968
9009
  }
8969
- }), Bt = [
9010
+ }), Wt = [
8970
9011
  "width",
8971
9012
  "height",
8972
9013
  "stroke",
8973
9014
  "stroke-width"
8974
- ], Vt = /* @__PURE__ */ d({
9015
+ ], Gt = /* @__PURE__ */ d({
8975
9016
  __name: "CheckIcon",
8976
9017
  props: {
8977
9018
  size: { default: 16 },
@@ -8991,14 +9032,14 @@ var it = (e, t) => {
8991
9032
  "stroke-linecap": "round",
8992
9033
  "stroke-linejoin": "round",
8993
9034
  class: g(e.className)
8994
- }, [...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));
8995
9036
  }
8996
- }), Ht = [
9037
+ }), Kt = [
8997
9038
  "width",
8998
9039
  "height",
8999
9040
  "stroke",
9000
9041
  "stroke-width"
9001
- ], Ut = /* @__PURE__ */ d({
9042
+ ], qt = /* @__PURE__ */ d({
9002
9043
  __name: "ChevronsUpDownIcon",
9003
9044
  props: {
9004
9045
  size: { default: 16 },
@@ -9018,14 +9059,14 @@ var it = (e, t) => {
9018
9059
  "stroke-linecap": "round",
9019
9060
  "stroke-linejoin": "round",
9020
9061
  class: g(e.className)
9021
- }, [...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));
9022
9063
  }
9023
- }), Wt = [
9064
+ }), Jt = [
9024
9065
  "width",
9025
9066
  "height",
9026
9067
  "stroke",
9027
9068
  "stroke-width"
9028
- ], Gt = /* @__PURE__ */ d({
9069
+ ], Yt = /* @__PURE__ */ d({
9029
9070
  __name: "MinusIcon",
9030
9071
  props: {
9031
9072
  size: { default: 16 },
@@ -9045,14 +9086,14 @@ var it = (e, t) => {
9045
9086
  "stroke-linecap": "round",
9046
9087
  "stroke-linejoin": "round",
9047
9088
  class: g(e.className)
9048
- }, [...n[0] ||= [s("path", { d: "M5 12h14" }, null, -1)]], 10, Wt));
9089
+ }, [...n[0] ||= [s("path", { d: "M5 12h14" }, null, -1)]], 10, Jt));
9049
9090
  }
9050
- }), Kt = [
9091
+ }), Xt = [
9051
9092
  "width",
9052
9093
  "height",
9053
9094
  "stroke",
9054
9095
  "stroke-width"
9055
- ], qt = /* @__PURE__ */ d({
9096
+ ], Zt = /* @__PURE__ */ d({
9056
9097
  __name: "SearchIcon",
9057
9098
  props: {
9058
9099
  size: { default: 24 },
@@ -9076,47 +9117,47 @@ var it = (e, t) => {
9076
9117
  cx: "11",
9077
9118
  cy: "11",
9078
9119
  r: "8"
9079
- }, 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));
9080
9121
  }
9081
- }), Jt = ["aria-expanded"], Yt = { class: "iccandle-scanner-symbol-search__chips" }, Xt = {
9122
+ }), Qt = ["aria-expanded"], $t = { class: "iccandle-scanner-symbol-search__chips" }, en = {
9082
9123
  key: 0,
9083
9124
  class: "iccandle-scanner-symbol-search__placeholder"
9084
- }, 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 = [
9085
9126
  "aria-label",
9086
9127
  "onClick",
9087
9128
  "onKeydown"
9088
- ], en = {
9129
+ ], an = {
9089
9130
  key: 0,
9090
9131
  class: "iccandle-scanner-symbol-search__chip-overflow"
9091
- }, 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 = [
9092
9133
  "placeholder",
9093
9134
  "value",
9094
9135
  "aria-label"
9095
- ], an = {
9136
+ ], ln = {
9096
9137
  key: 0,
9097
9138
  class: "iccandle-scanner-symbol-search__empty"
9098
- }, on = {
9139
+ }, un = {
9099
9140
  key: 1,
9100
9141
  class: "iccandle-scanner-symbol-search__select-all"
9101
- }, sn = ["aria-label"], cn = {
9142
+ }, dn = ["aria-label"], fn = {
9102
9143
  key: 0,
9103
9144
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9104
- }, ln = {
9145
+ }, pn = {
9105
9146
  key: 1,
9106
9147
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9107
- }, un = {
9148
+ }, mn = {
9108
9149
  key: 2,
9109
9150
  class: "iccandle-scanner-symbol-search__check"
9110
- }, 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 = {
9111
9152
  key: 0,
9112
9153
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9113
- }, mn = {
9154
+ }, vn = {
9114
9155
  key: 1,
9115
9156
  class: "iccandle-scanner-symbol-search__check iccandle-scanner-symbol-search__check--on"
9116
- }, hn = {
9157
+ }, yn = {
9117
9158
  key: 2,
9118
9159
  class: "iccandle-scanner-symbol-search__check"
9119
- }, 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({
9120
9161
  __name: "ScannerSymbolSearch",
9121
9162
  props: {
9122
9163
  searchTerm: {},
@@ -9150,7 +9191,7 @@ var it = (e, t) => {
9150
9191
  let t = e?.closest(".iccandle-theme-scope, .iccandle-selector-widget") ?? document.body;
9151
9192
  O.value = t;
9152
9193
  }
9153
- 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(() => {
9154
9195
  let e = /* @__PURE__ */ new Set();
9155
9196
  for (let t of L.value) e.add(t.type);
9156
9197
  return e;
@@ -9245,12 +9286,12 @@ var it = (e, t) => {
9245
9286
  "aria-haspopup": "listbox",
9246
9287
  class: "iccandle-scanner-symbol-search__trigger",
9247
9288
  onClick: c[0] ||= (e) => J(!D.value)
9248
- }, [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", {
9249
9290
  key: e.ticker,
9250
9291
  class: "iccandle-scanner-symbol-search__chip"
9251
9292
  }, [
9252
- s("span", Zt, [u(zt, { name: e.ticker }, null, 8, ["name"])]),
9253
- 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),
9254
9295
  s("span", {
9255
9296
  role: "button",
9256
9297
  tabindex: "0",
@@ -9260,11 +9301,11 @@ var it = (e, t) => {
9260
9301
  onKeydown: (t) => {
9261
9302
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), p("symbolChange", e.ticker, !1));
9262
9303
  }
9263
- }, [u(st, { size: 10 })], 40, $t)
9264
- ]))), 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, {
9265
9306
  size: 16,
9266
9307
  "class-name": "iccandle-scanner-symbol-search__trigger-meta-icon"
9267
- })])], 8, Jt), D.value && M.value ? (x(), i(t, {
9308
+ })])], 8, Qt), D.value && M.value ? (x(), i(t, {
9268
9309
  key: 0,
9269
9310
  to: O.value
9270
9311
  }, [s("div", {
@@ -9279,7 +9320,7 @@ var it = (e, t) => {
9279
9320
  width: `${M.value.width}px`,
9280
9321
  maxHeight: `${M.value.maxHeight}px`
9281
9322
  })
9282
- }, [s("div", nn, [u(qt, {
9323
+ }, [s("div", sn, [u(Zt, {
9283
9324
  size: 16,
9284
9325
  "class-name": "iccandle-scanner-symbol-search__search-icon"
9285
9326
  }), s("input", {
@@ -9291,17 +9332,17 @@ var it = (e, t) => {
9291
9332
  value: n.searchTerm,
9292
9333
  "aria-label": A(m)("Selector.searchSymbol"),
9293
9334
  onInput: c[1] ||= (e) => p("searchChange", e.target.value.toUpperCase())
9294
- }, null, 40, rn)]), s("div", {
9335
+ }, null, 40, cn)]), s("div", {
9295
9336
  class: "iccandle-scanner-symbol-search__command-list",
9296
9337
  style: _({ maxHeight: `${ce.value}px` })
9297
9338
  }, [
9298
- n.searchTerm.trim() && V.value.length === 0 ? (x(), o("div", an, k(A(m)("Selector.noResultsFound")), 1)) : a("", !0),
9299
- 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", {
9300
9341
  type: "button",
9301
9342
  class: "iccandle-scanner-symbol-search__group-check-btn",
9302
9343
  "aria-label": A(m)("Selector.selectAll"),
9303
9344
  onClick: ne
9304
- }, [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", {
9305
9346
  type: "button",
9306
9347
  class: "iccandle-scanner-symbol-search__group-label-btn",
9307
9348
  onClick: ne
@@ -9309,20 +9350,20 @@ var it = (e, t) => {
9309
9350
  (x(!0), o(e, null, T(B.value, (t) => (x(), o("div", {
9310
9351
  key: t.type,
9311
9352
  class: "iccandle-scanner-symbol-search__group"
9312
- }, [s("div", dn, [s("button", {
9353
+ }, [s("div", hn, [s("button", {
9313
9354
  type: "button",
9314
9355
  class: "iccandle-scanner-symbol-search__group-check-btn",
9315
9356
  "aria-label": `${A(m)("Selector.selectAll")} ${A(m)(d[t.type])}`,
9316
9357
  onClick: I((e) => te(t.symbols), ["stop", "prevent"])
9317
- }, [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", {
9318
9359
  type: "button",
9319
9360
  class: "iccandle-scanner-symbol-search__group-expand-btn",
9320
9361
  "aria-expanded": U(t.type),
9321
9362
  onClick: (e) => W(t.type)
9322
- }, [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, {
9323
9364
  size: 16,
9324
9365
  "class-name": A(Z)("iccandle-scanner-symbol-search__group-expand-icon", !U(t.type) && "iccandle-scanner-symbol-search__group-expand-icon--collapsed")
9325
- }, 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", {
9326
9367
  key: e.ticker,
9327
9368
  type: "button",
9328
9369
  role: "option",
@@ -9330,25 +9371,25 @@ var it = (e, t) => {
9330
9371
  class: "iccandle-scanner-symbol-search__item",
9331
9372
  onClick: (t) => G(e.ticker)
9332
9373
  }, [
9333
- 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, {
9334
9375
  key: 0,
9335
9376
  size: 12
9336
9377
  })) : a("", !0)], 2),
9337
- u(zt, { name: e.ticker }, null, 8, ["name"]),
9338
- s("div", vn, k(e.display_name), 1)
9339
- ], 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))
9340
9381
  ], 4)], 6)], 8, ["to"])) : a("", !0)], 512));
9341
9382
  }
9342
- }), 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 = {
9343
9384
  key: 0,
9344
9385
  class: "iccandle-scanner-settings__accordion-content"
9345
- }, Pn = { class: "iccandle-scanner-option__footer" }, Fn = {
9386
+ }, Rn = { class: "iccandle-scanner-option__footer" }, zn = {
9346
9387
  key: 0,
9347
9388
  class: "iccandle-scanner-option__error"
9348
- }, 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 = {
9349
9390
  for: "scanner-always-show",
9350
9391
  class: "iccandle-scanner-option__always-show-label"
9351
- }, Bn = { class: "iccandle-scanner-option__buttons" }, Vn = /* @__PURE__ */ d({
9392
+ }, Wn = { class: "iccandle-scanner-option__buttons" }, Gn = /* @__PURE__ */ d({
9352
9393
  __name: "ScannerSettingsStep",
9353
9394
  props: {
9354
9395
  intent: {},
@@ -9386,8 +9427,8 @@ var it = (e, t) => {
9386
9427
  return e?.timeframe ? e.timeframe : t === "1" || t === "5" ? "60" : t || "60";
9387
9428
  }
9388
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((() => {
9389
- let e = j?.model ?? "light";
9390
- 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;
9391
9432
  })()), B = w(j?.temperature ?? 1), V = w(_(j, d.currentSymbol)), H = w(null), U = null, W = C({
9392
9433
  probability: j?.probability ?? 0,
9393
9434
  top_k: localStorage.getItem("iccandle_token") ? M : Math.min(n.free, M),
@@ -9477,27 +9518,27 @@ var it = (e, t) => {
9477
9518
  let t = e?.user_credit?.plan?.toLowerCase() || "free";
9478
9519
  T.value = t;
9479
9520
  let n = c(t);
9480
- 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");
9481
9522
  }).catch(() => {
9482
- 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");
9483
9524
  });
9484
9525
  }), v(() => {
9485
9526
  window.removeEventListener("keydown", se), I && clearTimeout(I), U && clearTimeout(U);
9486
9527
  });
9487
9528
  let ce = r(() => d.intent === "scan" ? m("Selector.scan") : m("Selector.saveOptions"));
9488
- return (t, n) => (x(), o("div", xn, [
9489
- 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", {
9490
9531
  type: "button",
9491
9532
  class: "iccandle-scanner-option__close-btn",
9492
9533
  "aria-label": A(m)("Common.close"),
9493
9534
  onClick: Y
9494
- }, [u(st, { size: 20 })], 8, En)]),
9535
+ }, [u(ct, { size: 20 })], 8, An)]),
9495
9536
  s("form", {
9496
9537
  id: "scanner-option-form",
9497
9538
  class: "iccandle-scanner-settings__form",
9498
9539
  onSubmit: ie
9499
- }, [s("div", Dn, [
9500
- 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, {
9501
9542
  "search-term": P.value,
9502
9543
  "selected-symbols": V.value,
9503
9544
  "filtered-symbols": te.value,
@@ -9515,7 +9556,7 @@ var it = (e, t) => {
9515
9556
  "logo-by-ticker",
9516
9557
  "all-symbols"
9517
9558
  ])]),
9518
- s("section", An, [u(Pt, {
9559
+ s("section", Pn, [u(Rt, {
9519
9560
  "top-k": A(W).top_k,
9520
9561
  "onUpdate:topK": n[1] ||= (e) => A(W).top_k = e,
9521
9562
  "user-result-limit": E.value,
@@ -9529,24 +9570,24 @@ var it = (e, t) => {
9529
9570
  "model",
9530
9571
  "is-pro-model-enabled"
9531
9572
  ])]),
9532
- s("section", jn, [s("button", {
9573
+ s("section", Fn, [s("button", {
9533
9574
  type: "button",
9534
9575
  class: "iccandle-scanner-settings__accordion-trigger",
9535
9576
  "aria-expanded": R.value,
9536
9577
  onClick: n[3] ||= (e) => R.value = !R.value
9537
- }, [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, {
9538
9579
  modelValue: A(W),
9539
9580
  "onUpdate:modelValue": n[4] ||= (e) => p(W) ? W.value = e : W = e,
9540
9581
  temperature: B.value,
9541
9582
  onTemperatureChange: n[5] ||= (e) => B.value = e
9542
9583
  }, null, 8, ["modelValue", "temperature"])])) : a("", !0)])
9543
9584
  ])], 32),
9544
- 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", {
9545
9586
  id: "scanner-always-show",
9546
9587
  type: "checkbox",
9547
9588
  checked: O.value,
9548
9589
  onChange: n[6] ||= (e) => ae(e.target.checked)
9549
- }, 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", {
9550
9591
  type: "button",
9551
9592
  class: "iccandle-scanner-option__btn iccandle-scanner-option__btn--outline",
9552
9593
  onClick: Y
@@ -9561,7 +9602,7 @@ var it = (e, t) => {
9561
9602
  })) : a("", !0), l(" " + k(ce.value), 1)], 2)])])])
9562
9603
  ]));
9563
9604
  }
9564
- }), Hn = /* @__PURE__ */ d({
9605
+ }), Kn = /* @__PURE__ */ d({
9565
9606
  __name: "ScannerOption",
9566
9607
  props: {
9567
9608
  intent: { default: "settings" },
@@ -9590,7 +9631,7 @@ var it = (e, t) => {
9590
9631
  }, [s("div", {
9591
9632
  class: "iccandle-scanner-option__card",
9592
9633
  onPointerdown: r[0] ||= I(() => {}, ["stop"])
9593
- }, [u(Vn, {
9634
+ }, [u(Gn, {
9594
9635
  intent: e.intent,
9595
9636
  "set-resolution": e.setResolution,
9596
9637
  timeframe: e.timeframe,
@@ -9606,11 +9647,11 @@ var it = (e, t) => {
9606
9647
  "onCancel"
9607
9648
  ])], 32)], 34)]));
9608
9649
  }
9609
- }), Un = [
9650
+ }), qn = [
9610
9651
  "width",
9611
9652
  "height",
9612
9653
  "stroke"
9613
- ], Wn = /* @__PURE__ */ d({
9654
+ ], Jn = /* @__PURE__ */ d({
9614
9655
  __name: "BellIcon",
9615
9656
  props: {
9616
9657
  size: { default: 20 },
@@ -9629,9 +9670,9 @@ var it = (e, t) => {
9629
9670
  "stroke-linecap": "round",
9630
9671
  "stroke-linejoin": "round",
9631
9672
  class: g(e.className)
9632
- }, [...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));
9633
9674
  }
9634
- }), Gn = ["width", "height"], Kn = ["stroke"], qn = ["stroke"], Jn = /* @__PURE__ */ d({
9675
+ }), Yn = ["width", "height"], Xn = ["stroke"], Zn = ["stroke"], Qn = /* @__PURE__ */ d({
9635
9676
  __name: "CloseIcon",
9636
9677
  props: {
9637
9678
  size: { default: 24 },
@@ -9652,24 +9693,24 @@ var it = (e, t) => {
9652
9693
  "stroke-width": "2",
9653
9694
  "stroke-linecap": "round",
9654
9695
  "stroke-linejoin": "round"
9655
- }, null, 8, Kn), s("path", {
9696
+ }, null, 8, Xn), s("path", {
9656
9697
  d: "m6 6 12 12",
9657
9698
  stroke: e.color,
9658
9699
  "stroke-width": "2",
9659
9700
  "stroke-linecap": "round",
9660
9701
  "stroke-linejoin": "round"
9661
- }, null, 8, qn)], 10, Gn));
9702
+ }, null, 8, Zn)], 10, Yn));
9662
9703
  }
9663
- }), 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 = {
9664
9705
  for: "patternName",
9665
9706
  class: "iccandle-pattern-alert-name__label"
9666
- }, ar = ["placeholder", "value"], or = {
9707
+ }, lr = ["placeholder", "value"], ur = {
9667
9708
  key: 0,
9668
9709
  class: "iccandle-pattern-alert-name__error"
9669
- }, sr = {
9710
+ }, dr = {
9670
9711
  key: 1,
9671
9712
  class: "iccandle-pattern-alert-name__error"
9672
- }, 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({
9673
9714
  __name: "PatternAlertNameStep",
9674
9715
  props: {
9675
9716
  patternName: {},
@@ -9683,8 +9724,8 @@ var it = (e, t) => {
9683
9724
  let t = e.target.value.slice(0, 20);
9684
9725
  n("patternNameChange", t);
9685
9726
  }
9686
- return (t, n) => (x(), o("div", Yn, [
9687
- 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, {
9688
9729
  size: 20,
9689
9730
  "class-name": "iccandle-pattern-alert-name__title-icon"
9690
9731
  }), l(" " + k(A(r)("Pattern.addToPatternTracker")), 1)]), s("button", {
@@ -9692,12 +9733,12 @@ var it = (e, t) => {
9692
9733
  class: "iccandle-pattern-alert-name__close-btn",
9693
9734
  "aria-label": A(r)("Common.close"),
9694
9735
  onClick: n[0] ||= (...t) => e.onCancel && e.onCancel(...t)
9695
- }, [u(Jn, { size: 20 })], 8, $n)]), s("p", er, k(A(r)("Pattern.addToPatternTrackerDescription")), 1)]),
9696
- 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, {
9697
9738
  size: 64,
9698
9739
  "class-name": "iccandle-pattern-alert-name__bell-icon"
9699
- }), s("div", nr, [s("div", rr, [
9700
- 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),
9701
9742
  s("input", {
9702
9743
  id: "patternName",
9703
9744
  class: "iccandle-pattern-alert-name__input",
@@ -9706,10 +9747,10 @@ var it = (e, t) => {
9706
9747
  maxlength: "20",
9707
9748
  minlength: "5",
9708
9749
  onInput: i
9709
- }, null, 40, ar),
9710
- 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)
9711
9752
  ])])]),
9712
- 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", {
9713
9754
  type: "button",
9714
9755
  class: "iccandle-pattern-alert-name__btn iccandle-pattern-alert-name__btn--outline",
9715
9756
  onClick: n[1] ||= (...t) => e.onCancel && e.onCancel(...t)
@@ -9718,10 +9759,10 @@ var it = (e, t) => {
9718
9759
  class: "iccandle-pattern-alert-name__btn iccandle-pattern-alert-name__btn--primary",
9719
9760
  disabled: e.patternName.trim().length < 5,
9720
9761
  onClick: n[2] ||= (...t) => e.onNext && e.onNext(...t)
9721
- }, k(A(r)("Common.next")), 9, ur)])])
9762
+ }, k(A(r)("Common.next")), 9, mr)])])
9722
9763
  ]));
9723
9764
  }
9724
- }), fr = [
9765
+ }), gr = [
9725
9766
  {
9726
9767
  value: "M15",
9727
9768
  label: "M15",
@@ -9758,33 +9799,33 @@ var it = (e, t) => {
9758
9799
  description: "Daily",
9759
9800
  type: "daily"
9760
9801
  }
9761
- ], pr = ["aria-expanded"], mr = { class: "iccandle-scanner-timeframe-search__chips" }, hr = {
9802
+ ], _r = ["aria-expanded"], vr = { class: "iccandle-scanner-timeframe-search__chips" }, yr = {
9762
9803
  key: 0,
9763
9804
  class: "iccandle-scanner-timeframe-search__placeholder"
9764
- }, gr = { class: "iccandle-scanner-timeframe-search__chip-label" }, _r = [
9805
+ }, br = { class: "iccandle-scanner-timeframe-search__chip-label" }, xr = [
9765
9806
  "aria-label",
9766
9807
  "onClick",
9767
9808
  "onKeydown"
9768
- ], 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 = [
9769
9810
  "placeholder",
9770
9811
  "value",
9771
9812
  "aria-label"
9772
- ], xr = {
9813
+ ], Tr = {
9773
9814
  key: 0,
9774
9815
  class: "iccandle-scanner-timeframe-search__empty"
9775
- }, Sr = {
9816
+ }, Er = {
9776
9817
  key: 1,
9777
9818
  class: "iccandle-scanner-timeframe-search__select-all"
9778
- }, Cr = ["aria-label"], wr = {
9819
+ }, Dr = ["aria-label"], Or = {
9779
9820
  key: 0,
9780
9821
  class: "iccandle-scanner-timeframe-search__check iccandle-scanner-timeframe-search__check--on"
9781
- }, Tr = {
9822
+ }, kr = {
9782
9823
  key: 1,
9783
9824
  class: "iccandle-scanner-timeframe-search__check iccandle-scanner-timeframe-search__check--on"
9784
- }, Er = {
9825
+ }, Ar = {
9785
9826
  key: 2,
9786
9827
  class: "iccandle-scanner-timeframe-search__check"
9787
- }, 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({
9788
9829
  __name: "ScannerTimeframeSearch",
9789
9830
  props: {
9790
9831
  searchTerm: {},
@@ -9805,7 +9846,7 @@ var it = (e, t) => {
9805
9846
  let t = e?.closest(".iccandle-theme-scope, .iccandle-selector-widget") ?? document.body;
9806
9847
  C.value = t;
9807
9848
  }
9808
- 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]));
9809
9850
  function F(e) {
9810
9851
  if (e.length === 0) return "none";
9811
9852
  let t = e.filter((e) => l.selectedTimeframes[e.value]).length;
@@ -9875,10 +9916,10 @@ var it = (e, t) => {
9875
9916
  "aria-haspopup": "listbox",
9876
9917
  class: "iccandle-scanner-timeframe-search__trigger",
9877
9918
  onClick: c[0] ||= (e) => V(!S.value)
9878
- }, [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", {
9879
9920
  key: e.value,
9880
9921
  class: "iccandle-scanner-timeframe-search__chip"
9881
- }, [s("span", gr, k(e.label), 1), s("span", {
9922
+ }, [s("span", br, k(e.label), 1), s("span", {
9882
9923
  role: "button",
9883
9924
  tabindex: "0",
9884
9925
  "aria-label": `Remove ${e.label}`,
@@ -9887,10 +9928,10 @@ var it = (e, t) => {
9887
9928
  onKeydown: (t) => {
9888
9929
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), d("timeframeChange", e.value, !1));
9889
9930
  }
9890
- }, [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, {
9891
9932
  size: 16,
9892
9933
  style: { opacity: .6 }
9893
- })])], 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", {
9894
9935
  key: 0,
9895
9936
  ref_key: "popoverRef",
9896
9937
  ref: y,
@@ -9903,7 +9944,7 @@ var it = (e, t) => {
9903
9944
  width: `${D.value.width}px`,
9904
9945
  maxHeight: `${D.value.maxHeight}px`
9905
9946
  })
9906
- }, [s("div", yr, [u(qt, {
9947
+ }, [s("div", Cr, [u(Zt, {
9907
9948
  size: 16,
9908
9949
  "class-name": "iccandle-scanner-timeframe-search__search-icon"
9909
9950
  }), s("input", {
@@ -9915,17 +9956,17 @@ var it = (e, t) => {
9915
9956
  value: n.searchTerm,
9916
9957
  "aria-label": A(f)("Selector.searchTimeframe"),
9917
9958
  onInput: c[1] ||= (e) => d("searchChange", e.target.value.toUpperCase())
9918
- }, null, 40, br)]), s("div", {
9959
+ }, null, 40, wr)]), s("div", {
9919
9960
  class: "iccandle-scanner-timeframe-search__command-list",
9920
9961
  style: _({ maxHeight: `${ne.value}px` })
9921
9962
  }, [
9922
- n.searchTerm.trim() && M.value.length === 0 ? (x(), o("div", xr, k(A(f)("Selector.noResultsFound")), 1)) : a("", !0),
9923
- 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", {
9924
9965
  type: "button",
9925
9966
  class: "iccandle-scanner-timeframe-search__group-check-btn",
9926
9967
  "aria-label": A(f)("Selector.selectAllTimeframes"),
9927
9968
  onClick: ee
9928
- }, [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", {
9929
9970
  type: "button",
9930
9971
  class: "iccandle-scanner-timeframe-search__group-label-btn",
9931
9972
  onClick: ee
@@ -9938,16 +9979,16 @@ var it = (e, t) => {
9938
9979
  class: "iccandle-scanner-timeframe-search__item",
9939
9980
  onClick: (t) => R(e.value)
9940
9981
  }, [
9941
- 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, {
9942
9983
  key: 0,
9943
9984
  size: 12
9944
9985
  })) : a("", !0)], 2),
9945
- s("span", Or, k(I(e.value)), 1),
9946
- s("span", kr, k(L(e.value)), 1)
9947
- ], 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))
9948
9989
  ], 4)], 6)) : a("", !0)], 8, ["to"]))], 512));
9949
9990
  }
9950
- }), 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({
9951
9992
  __name: "TimeframesTab",
9952
9993
  props: { form: {} },
9953
9994
  setup(e) {
@@ -9959,13 +10000,13 @@ var it = (e, t) => {
9959
10000
  }, { immediate: !0 });
9960
10001
  let l = r(() => t.form.timeframes.reduce((e, t) => (e[t] = !0, e), {})), d = r(() => {
9961
10002
  let e = a.value.toLowerCase();
9962
- return fr.filter((t) => {
10003
+ return gr.filter((t) => {
9963
10004
  let r = n(`Pattern.timeframeOptions.${t.value}.displayName`).toLowerCase(), i = n(`Pattern.timeframeOptions.${t.value}.description`).toLowerCase();
9964
10005
  return t.label.toLowerCase().includes(e) || t.value.toLowerCase().includes(e) || r.includes(e) || i.includes(e);
9965
10006
  });
9966
10007
  }), f = r(() => Object.values(l.value).filter(Boolean).length);
9967
10008
  function p(e) {
9968
- 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);
9969
10010
  }
9970
10011
  function m(e, t) {
9971
10012
  p({
@@ -9978,12 +10019,12 @@ var it = (e, t) => {
9978
10019
  for (let r of e) n[r] = t;
9979
10020
  p(n);
9980
10021
  }
9981
- 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, {
9982
10023
  "search-term": i.value,
9983
10024
  "selected-timeframes": l.value,
9984
10025
  "filtered-timeframes": d.value,
9985
10026
  "selected-count": f.value,
9986
- "all-timeframes": [...A(fr)],
10027
+ "all-timeframes": [...A(gr)],
9987
10028
  onSearchChange: t[0] ||= (e) => i.value = e,
9988
10029
  onTimeframeChange: m,
9989
10030
  onGroupChange: h
@@ -9995,7 +10036,7 @@ var it = (e, t) => {
9995
10036
  "all-timeframes"
9996
10037
  ])]));
9997
10038
  }
9998
- }), 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({
9999
10040
  __name: "SymbolsTab",
10000
10041
  props: { form: {} },
10001
10042
  setup(e) {
@@ -10031,7 +10072,7 @@ var it = (e, t) => {
10031
10072
  for (let r of e) n[r] = t;
10032
10073
  m(n);
10033
10074
  }
10034
- 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, {
10035
10076
  "search-term": i.value,
10036
10077
  "selected-symbols": l.value,
10037
10078
  "filtered-symbols": d.value,
@@ -10050,7 +10091,7 @@ var it = (e, t) => {
10050
10091
  "all-symbols"
10051
10092
  ])]));
10052
10093
  }
10053
- }), zr = [
10094
+ }), Ur = [
10054
10095
  {
10055
10096
  value: "new_york",
10056
10097
  label: "New York Session",
@@ -10079,12 +10120,12 @@ var it = (e, t) => {
10079
10120
  start: "09:00",
10080
10121
  end: "18:00"
10081
10122
  }
10082
- ], Br = [
10123
+ ], Wr = [
10083
10124
  {
10084
10125
  value: "all_time",
10085
10126
  label: "All time"
10086
10127
  },
10087
- ...zr.map((e) => ({
10128
+ ...Ur.map((e) => ({
10088
10129
  value: e.value,
10089
10130
  label: e.label
10090
10131
  })),
@@ -10092,61 +10133,61 @@ var it = (e, t) => {
10092
10133
  value: "customize",
10093
10134
  label: "Customize"
10094
10135
  }
10095
- ], Vr = (e) => {
10136
+ ], Gr = (e) => {
10096
10137
  let t = e.match(/GMT([+-])(\d{1,2})(?::?(\d{2}))?/);
10097
10138
  if (!t) return 0;
10098
10139
  let n = t[1] === "-" ? -1 : 1, r = Number(t[2]), i = Number(t[3] ?? "0");
10099
10140
  return n * (r * 60 + i);
10100
- }, Hr = (e, t) => Vr(new Intl.DateTimeFormat("en-US", {
10141
+ }, Kr = (e, t) => Gr(new Intl.DateTimeFormat("en-US", {
10101
10142
  timeZone: t,
10102
10143
  timeZoneName: "shortOffset",
10103
10144
  hour: "2-digit"
10104
- }).formatToParts(e).find((e) => e.type === "timeZoneName")?.value ?? "GMT+0"), Ur = (e, t, n) => {
10105
- 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;
10106
- 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", {
10107
10148
  timeZone: n,
10108
10149
  hour12: !1,
10109
10150
  hour: "2-digit",
10110
10151
  minute: "2-digit"
10111
10152
  }).format(new Date(s));
10112
- }, Wr = (e, t) => {
10113
- let n = zr.find((t) => t.value === e);
10153
+ }, Jr = (e, t) => {
10154
+ let n = Ur.find((t) => t.value === e);
10114
10155
  return n ? {
10115
- start_time: Ur(n.start, n.timezone, t),
10116
- 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),
10117
10158
  timezone: t
10118
10159
  } : null;
10119
- }, Gr = (e, t) => {
10160
+ }, Yr = (e, t) => {
10120
10161
  if (!e) return "all_time";
10121
10162
  let n = e.timezone || t, r = !!(e.start_time && e.end_time);
10122
10163
  if (e.preset_session) {
10123
10164
  if (e.preset_session === "all_time") return "all_time";
10124
10165
  if (e.preset_session === "customize") return "customize";
10125
- let t = Wr(e.preset_session, n);
10166
+ let t = Jr(e.preset_session, n);
10126
10167
  if (t && t.start_time === e.start_time && t.end_time === e.end_time) return e.preset_session;
10127
10168
  }
10128
10169
  if (!r) return "customize";
10129
- let i = zr.find((t) => {
10130
- let r = Wr(t.value, n);
10170
+ let i = Ur.find((t) => {
10171
+ let r = Jr(t.value, n);
10131
10172
  return r && r.start_time === e.start_time && r.end_time === e.end_time;
10132
10173
  });
10133
10174
  return i ? i.value : "customize";
10134
- }, Kr = (e) => {
10175
+ }, Xr = (e) => {
10135
10176
  let t = Intl, n = typeof t.supportedValuesOf == "function" ? t.supportedValuesOf("timeZone") ?? [] : [], r = e || "UTC";
10136
10177
  return (n.length ? n : [r]).filter(Boolean);
10137
- }, 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 = {
10138
10179
  class: "iccandle-time-config-section__dropdown-group-label",
10139
10180
  "aria-hidden": "true"
10140
- }, hi = {
10181
+ }, yi = {
10141
10182
  key: 0,
10142
10183
  class: "iccandle-time-config-section__dropdown-empty"
10143
- }, 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 = {
10144
10185
  class: "iccandle-time-config-section__dropdown-group-label",
10145
10186
  "aria-hidden": "true"
10146
- }, Ci = {
10187
+ }, Di = {
10147
10188
  key: 0,
10148
10189
  class: "iccandle-time-config-section__dropdown-empty"
10149
- }, wi = ["aria-selected", "onClick"], Ti = /* @__PURE__ */ d({
10190
+ }, Oi = ["aria-selected", "onClick"], ki = /* @__PURE__ */ d({
10150
10191
  __name: "TimeConfigSection",
10151
10192
  props: {
10152
10193
  timeconfig: {},
@@ -10170,9 +10211,9 @@ var it = (e, t) => {
10170
10211
  let t = e?.closest(".iccandle-theme-scope, .iccandle-selector-widget") ?? document.body;
10171
10212
  E.value = t;
10172
10213
  }
10173
- 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(() => {
10174
10215
  let e = P.value.trim().toLowerCase();
10175
- 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;
10176
10217
  }), te = r(() => f(W.value, I.value)), ne = r(() => `iccandle-time-config-section ${d.containerClassName}`.trim());
10177
10218
  function K(e, t) {
10178
10219
  if (!e) return;
@@ -10215,7 +10256,7 @@ var it = (e, t) => {
10215
10256
  }, { shouldDirty: !0 });
10216
10257
  return;
10217
10258
  }
10218
- let t = Wr(e, d.timeconfig?.timezone || z);
10259
+ let t = Jr(e, d.timeconfig?.timezone || z);
10219
10260
  t && d.onTimeConfigChange({
10220
10261
  ...t,
10221
10262
  preset_session: e
@@ -10223,7 +10264,7 @@ var it = (e, t) => {
10223
10264
  }
10224
10265
  function ae(e) {
10225
10266
  if (B.value !== "all_time" && B.value !== "customize") {
10226
- let t = Wr(B.value, e);
10267
+ let t = Jr(B.value, e);
10227
10268
  t && d.onTimeConfigChange({
10228
10269
  ...t,
10229
10270
  preset_session: B.value
@@ -10270,8 +10311,8 @@ var it = (e, t) => {
10270
10311
  ref: (e) => ee(e),
10271
10312
  class: g(ne.value)
10272
10313
  }, [
10273
- s("div", qr, [s("h3", Jr, k(A(p)("TimeConfig.title")), 1)]),
10274
- 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", {
10275
10316
  ref_key: "sessionTriggerRef",
10276
10317
  ref: y,
10277
10318
  type: "button",
@@ -10285,7 +10326,7 @@ var it = (e, t) => {
10285
10326
  }
10286
10327
  J(), j.value = !0;
10287
10328
  }
10288
- }, [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", {
10289
10330
  ref_key: "timezoneTriggerRef",
10290
10331
  ref: b,
10291
10332
  type: "button",
@@ -10300,21 +10341,21 @@ var it = (e, t) => {
10300
10341
  }
10301
10342
  q(), O.value = !0;
10302
10343
  }
10303
- }, [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", {
10304
10345
  type: "time",
10305
10346
  disabled: B.value !== "customize",
10306
10347
  value: n.timeconfig?.start_time ?? "",
10307
10348
  class: "iccandle-time-config-section__input",
10308
10349
  onInput: c[2] ||= (e) => re("start_time", e.target.value),
10309
10350
  onClick: Y
10310
- }, 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", {
10311
10352
  type: "time",
10312
10353
  disabled: B.value !== "customize",
10313
10354
  value: n.timeconfig?.end_time ?? "",
10314
10355
  class: "iccandle-time-config-section__input",
10315
10356
  onInput: c[3] ||= (e) => re("end_time", e.target.value),
10316
10357
  onClick: Y
10317
- }, null, 40, di)])])]),
10358
+ }, null, 40, hi)])])]),
10318
10359
  (x(), i(t, { to: E.value }, [j.value && L.value ? (x(), o("div", {
10319
10360
  key: 0,
10320
10361
  ref_key: "sessionPopoverRef",
@@ -10327,22 +10368,22 @@ var it = (e, t) => {
10327
10368
  width: `${L.value.width}px`,
10328
10369
  maxHeight: `${L.value.maxHeight}px`
10329
10370
  })
10330
- }, [s("div", fi, [F(s("input", {
10371
+ }, [s("div", gi, [F(s("input", {
10331
10372
  "onUpdate:modelValue": c[4] ||= (e) => P.value = e,
10332
10373
  type: "text",
10333
10374
  class: "iccandle-time-config-section__dropdown-search-input",
10334
10375
  placeholder: A(p)("TimeConfig.searchSession"),
10335
10376
  autofocus: ""
10336
- }, null, 8, pi), [[M, P.value]])]), s("ul", {
10377
+ }, null, 8, _i), [[M, P.value]])]), s("ul", {
10337
10378
  class: "iccandle-time-config-section__dropdown-list",
10338
10379
  style: _({ maxHeight: `${le.value}px` })
10339
- }, [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", {
10340
10381
  type: "button",
10341
10382
  role: "option",
10342
10383
  "aria-selected": B.value === e.value,
10343
10384
  class: g(["iccandle-time-config-section__dropdown-item", B.value === e.value && "iccandle-time-config-section__dropdown-item--selected"]),
10344
10385
  onClick: (t) => ie(e.value)
10345
- }, [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"])),
10346
10387
  (x(), i(t, { to: E.value }, [O.value && R.value ? (x(), o("div", {
10347
10388
  key: 0,
10348
10389
  ref_key: "timezonePopoverRef",
@@ -10356,31 +10397,31 @@ var it = (e, t) => {
10356
10397
  maxHeight: `${R.value.maxHeight}px`
10357
10398
  })
10358
10399
  }, [
10359
- s("div", _i, [s("p", vi, k(A(p)("TimeConfig.selectTimezone")), 1), s("p", yi, k(A(p)("TimeConfig.selectTimezoneHint")), 1)]),
10360
- 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", {
10361
10402
  "onUpdate:modelValue": c[5] ||= (e) => I.value = e,
10362
10403
  type: "text",
10363
10404
  class: "iccandle-time-config-section__dropdown-search-input",
10364
10405
  placeholder: A(p)("TimeConfig.searchTimezone"),
10365
10406
  autofocus: ""
10366
- }, null, 8, xi), [[M, I.value]])]),
10407
+ }, null, 8, Ti), [[M, I.value]])]),
10367
10408
  s("ul", {
10368
10409
  class: "iccandle-time-config-section__dropdown-list",
10369
10410
  style: _({ maxHeight: `${ue.value}px` })
10370
- }, [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", {
10371
10412
  type: "button",
10372
10413
  role: "option",
10373
10414
  "aria-selected": H.value === e,
10374
10415
  class: g(["iccandle-time-config-section__dropdown-item", H.value === e && "iccandle-time-config-section__dropdown-item--selected"]),
10375
10416
  onClick: (t) => ae(e)
10376
- }, [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)
10377
10418
  ], 6)) : a("", !0)], 8, ["to"]))
10378
10419
  ], 2));
10379
10420
  }
10380
- }), 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 = {
10381
10422
  key: 0,
10382
10423
  class: "iccandle-pattern-alert-settings__error iccandle-pattern-alert-settings__error--visible"
10383
- }, zi = ["disabled"], Bi = /* @__PURE__ */ d({
10424
+ }, Ui = ["disabled"], Wi = /* @__PURE__ */ d({
10384
10425
  __name: "PatternAlertSettingsStep",
10385
10426
  props: {
10386
10427
  form: {},
@@ -10417,30 +10458,30 @@ var it = (e, t) => {
10417
10458
  function h(e, n) {
10418
10459
  t.form.timeconfig = e;
10419
10460
  }
10420
- return (t, r) => (x(), o("div", Ei, [
10421
- s("div", Di, [u(Be, {
10461
+ return (t, r) => (x(), o("div", Ai, [
10462
+ s("div", ji, [u(Be, {
10422
10463
  size: 20,
10423
10464
  "class-name": "iccandle-pattern-alert-settings__header-icon"
10424
- }), 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", {
10425
10466
  type: "button",
10426
10467
  class: "iccandle-pattern-alert-settings__close-btn",
10427
10468
  "aria-label": A(n)("Common.close"),
10428
10469
  onClick: r[0] ||= (...t) => e.onCancel && e.onCancel(...t)
10429
- }, [u(Jn, { size: 16 })], 8, Mi)])])]),
10470
+ }, [u(Qn, { size: 16 })], 8, Ii)])])]),
10430
10471
  s("form", {
10431
10472
  class: "iccandle-pattern-alert-settings__form",
10432
10473
  id: "pattern-alert-settings-form",
10433
10474
  onSubmit: m
10434
- }, [s("div", Ni, [
10435
- s("section", Pi, [u(Pr, { form: e.form }, null, 8, ["form"])]),
10436
- s("section", Fi, [u(Rr, { form: e.form }, null, 8, ["form"])]),
10437
- 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, {
10438
10479
  timeconfig: e.form.timeconfig,
10439
10480
  "on-time-config-change": h,
10440
10481
  "container-class-name": "iccandle-pattern-alert-settings__time-config"
10441
10482
  }, null, 8, ["timeconfig"])])
10442
10483
  ])], 32),
10443
- 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", {
10444
10485
  type: "button",
10445
10486
  class: "iccandle-pattern-alert-settings__btn iccandle-pattern-alert-settings__btn--outline",
10446
10487
  onClick: r[1] ||= (...t) => e.onBack && e.onBack(...t)
@@ -10449,27 +10490,27 @@ var it = (e, t) => {
10449
10490
  form: "pattern-alert-settings-form",
10450
10491
  class: "iccandle-pattern-alert-settings__btn iccandle-pattern-alert-settings__btn--primary",
10451
10492
  disabled: e.isSubscribing
10452
- }, 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)])
10453
10494
  ]));
10454
10495
  }
10455
10496
  });
10456
10497
  //#endregion
10457
10498
  //#region src/services/pattern-tracker.ts
10458
- async function Vi(e) {
10499
+ async function Gi(e) {
10459
10500
  let { data: t } = await L.post("https://api.iccandle.ai/custom-pattern/v1/searchless", e, { headers: { Authorization: `Bearer ${localStorage.getItem("iccandle_token")}` } });
10460
10501
  return t;
10461
10502
  }
10462
10503
  //#endregion
10463
10504
  //#region src/lib/find-error-message.ts
10464
- var Hi = (e) => {
10505
+ var Ki = (e) => {
10465
10506
  if (typeof e == "string") return e;
10466
10507
  if (typeof e != "object" || !e) return z;
10467
10508
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t)) {
10468
- let n = Hi(e[t]);
10509
+ let n = Ki(e[t]);
10469
10510
  if (n) return n;
10470
10511
  }
10471
10512
  return z;
10472
- }, 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({
10473
10514
  __name: "PatternTrackerSubscriptionModal",
10474
10515
  props: {
10475
10516
  open: { type: Boolean },
@@ -10551,13 +10592,13 @@ var Hi = (e) => {
10551
10592
  };
10552
10593
  m.value = !0;
10553
10594
  try {
10554
- await Vi(a), fe({
10595
+ await Gi(a), fe({
10555
10596
  title: u("Pattern.patternSubscribed"),
10556
10597
  description: u("Pattern.patternSubscribedDesc", { name: d.value }),
10557
10598
  variant: "success"
10558
10599
  }), l(!1);
10559
10600
  } catch (e) {
10560
- let t = Ui(e);
10601
+ let t = qi(e);
10561
10602
  p.value = t, fe({
10562
10603
  title: u("Pattern.patternSubscriptionError"),
10563
10604
  description: t,
@@ -10587,7 +10628,7 @@ var Hi = (e) => {
10587
10628
  class: g(A(Z)("iccandle-pattern-tracker-modal__content", f.value && "iccandle-pattern-tracker-modal__content--settings")),
10588
10629
  style: _({ height: f.value ? "100%" : void 0 }),
10589
10630
  onPointerdown: r[1] ||= I(() => {}, ["stop"])
10590
- }, [f.value ? (x(), i(Bi, {
10631
+ }, [f.value ? (x(), i(Wi, {
10591
10632
  key: 1,
10592
10633
  form: h,
10593
10634
  "on-back": T,
@@ -10600,18 +10641,18 @@ var Hi = (e) => {
10600
10641
  "on-cancel",
10601
10642
  "is-subscribing",
10602
10643
  "error-message"
10603
- ])) : (x(), i(dr, {
10644
+ ])) : (x(), i(hr, {
10604
10645
  key: 0,
10605
10646
  "pattern-name": d.value,
10606
10647
  "on-next": y,
10607
10648
  "on-cancel": () => l(!1),
10608
10649
  onPatternNameChange: r[0] ||= (e) => d.value = e
10609
- }, null, 8, ["pattern-name", "on-cancel"]))], 38)], 46, Wi)) : a("", !0)]));
10650
+ }, null, 8, ["pattern-name", "on-cancel"]))], 38)], 46, Ji)) : a("", !0)]));
10610
10651
  }
10611
- }), 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 = {
10612
10653
  key: 0,
10613
10654
  class: "iccandle-event-info-modal__date"
10614
- }, 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({
10615
10656
  __name: "EventInfoModal",
10616
10657
  props: {
10617
10658
  event: {},
@@ -10668,21 +10709,21 @@ var Hi = (e) => {
10668
10709
  onClick: n[0] ||= I(() => {}, ["stop"]),
10669
10710
  onKeydown: h
10670
10711
  }, [
10671
- 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", {
10672
10713
  ref_key: "closeButtonRef",
10673
10714
  ref: l,
10674
10715
  type: "button",
10675
10716
  class: "iccandle-event-info-modal__close",
10676
10717
  "aria-label": A(i)("Common.close"),
10677
10718
  onClick: p
10678
- }, [u(st, { size: 20 })], 8, Yi)]),
10679
- s("div", null, [e.event.timestamp ? (x(), o("p", Xi, k(f(e.event.timestamp, A(c))), 1)) : a("", !0), s("div", Zi, [
10680
- s("div", Qi, [s("span", $i, k(A(i)("Common.actual")) + ": ", 1), s("span", ea, k(e.event.actual || "-"), 1)]),
10681
- s("div", ta, [s("span", na, k(A(i)("News.previousActual")) + ": ", 1), s("span", ra, k(e.event.previous || "-"), 1)]),
10682
- s("div", ia, [s("span", aa, k(A(i)("News.currentForecast")) + ": ", 1), s("span", oa, k(e.event.forecast || "-"), 1)]),
10683
- 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)])
10684
10725
  ])]),
10685
- s("div", la, [s("button", {
10726
+ s("div", pa, [s("button", {
10686
10727
  type: "button",
10687
10728
  class: "iccandle-event-info-modal__btn iccandle-event-info-modal__btn--outline",
10688
10729
  onClick: p
@@ -10693,7 +10734,7 @@ var Hi = (e) => {
10693
10734
  }, k(A(i)("News.goToEventDetail")), 1)])
10694
10735
  ], 36)]));
10695
10736
  }
10696
- }), 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({
10697
10738
  __name: "AlertTriangleIcon",
10698
10739
  props: {
10699
10740
  size: { default: 24 },
@@ -10715,28 +10756,28 @@ var Hi = (e) => {
10715
10756
  "stroke-width": "2",
10716
10757
  "stroke-linecap": "round",
10717
10758
  "stroke-linejoin": "round"
10718
- }, null, 8, fa),
10759
+ }, null, 8, ga),
10719
10760
  s("path", {
10720
10761
  d: "M12 9v4",
10721
10762
  stroke: e.color,
10722
10763
  "stroke-width": "2",
10723
10764
  "stroke-linecap": "round",
10724
10765
  "stroke-linejoin": "round"
10725
- }, null, 8, pa),
10766
+ }, null, 8, _a),
10726
10767
  s("path", {
10727
10768
  d: "M12 17h.01",
10728
10769
  stroke: e.color,
10729
10770
  "stroke-width": "2",
10730
10771
  "stroke-linecap": "round",
10731
10772
  "stroke-linejoin": "round"
10732
- }, null, 8, ma)
10733
- ], 10, da));
10773
+ }, null, 8, va)
10774
+ ], 10, ha));
10734
10775
  }
10735
- }), ga = [
10776
+ }), ba = [
10736
10777
  "width",
10737
10778
  "height",
10738
10779
  "stroke"
10739
- ], _a = /* @__PURE__ */ d({
10780
+ ], xa = /* @__PURE__ */ d({
10740
10781
  __name: "CheckCircleIcon",
10741
10782
  props: {
10742
10783
  size: { default: 20 },
@@ -10759,13 +10800,13 @@ var Hi = (e) => {
10759
10800
  cx: "12",
10760
10801
  cy: "12",
10761
10802
  r: "10"
10762
- }, 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));
10763
10804
  }
10764
- }), va = [
10805
+ }), Sa = [
10765
10806
  "width",
10766
10807
  "height",
10767
10808
  "stroke"
10768
- ], ya = /* @__PURE__ */ d({
10809
+ ], Ca = /* @__PURE__ */ d({
10769
10810
  __name: "AlertCircleIcon",
10770
10811
  props: {
10771
10812
  size: { default: 20 },
@@ -10802,27 +10843,27 @@ var Hi = (e) => {
10802
10843
  y1: "16",
10803
10844
  y2: "16"
10804
10845
  }, null, -1)
10805
- ]], 10, va));
10846
+ ]], 10, Sa));
10806
10847
  }
10807
- }), ba = {
10848
+ }), wa = {
10808
10849
  class: "custom-toast",
10809
10850
  role: "alert"
10810
- }, 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 = {
10811
10852
  key: 0,
10812
10853
  class: "custom-toast__description"
10813
- }, Ea = {
10854
+ }, Aa = {
10814
10855
  key: 1,
10815
10856
  class: "custom-toast__actions"
10816
- }, Da = /* @__PURE__ */ d({
10857
+ }, ja = /* @__PURE__ */ d({
10817
10858
  __name: "CustomToast",
10818
10859
  props: { toast: {} },
10819
10860
  setup(e) {
10820
10861
  let t = e, n = r(() => {
10821
10862
  switch (t.toast.variant) {
10822
- case "warning": return ha;
10823
- case "success": return _a;
10824
- case "error": return ya;
10825
- default: return Wn;
10863
+ case "warning": return ya;
10864
+ case "success": return xa;
10865
+ case "error": return Ca;
10866
+ default: return Jn;
10826
10867
  }
10827
10868
  });
10828
10869
  function c() {
@@ -10832,10 +10873,10 @@ var Hi = (e) => {
10832
10873
  let e = t.toast.dismiss;
10833
10874
  e && typeof e == "object" && e.onClick?.(), de(t.toast.id);
10834
10875
  }
10835
- return (t, r) => (x(), o("div", ba, [s("div", xa, [(x(), i(D(n.value), { class: "custom-toast__icon" }))]), s("div", Sa, [
10836
- s("div", Ca, [s("p", wa, k(e.toast.title), 1)]),
10837
- e.toast.description ? (x(), o("p", Ta, k(e.toast.description), 1)) : a("", !0),
10838
- 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", {
10839
10880
  key: 0,
10840
10881
  type: "button",
10841
10882
  class: "custom-toast__button custom-toast__button--action",
@@ -10848,7 +10889,7 @@ var Hi = (e) => {
10848
10889
  }, k(e.toast.dismiss.label ?? "Dismiss"), 1)) : a("", !0)])) : a("", !0)
10849
10890
  ])]));
10850
10891
  }
10851
- }), Oa = /*#__PURE__*/ ((e, t) => {
10892
+ }), Ma = /*#__PURE__*/ ((e, t) => {
10852
10893
  let n = e.__vccOpts || e;
10853
10894
  for (let [e, r] of t) n[e] = r;
10854
10895
  return n;
@@ -10870,16 +10911,16 @@ var Hi = (e) => {
10870
10911
  tag: "div",
10871
10912
  class: "iccandle-toast-list"
10872
10913
  }, {
10873
- 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, {
10874
10915
  key: e.id,
10875
10916
  toast: e
10876
10917
  }, null, 8, ["toast"]))), 128))]),
10877
10918
  _: 1
10878
10919
  })], 6));
10879
10920
  }
10880
- }), [["__scopeId", "data-v-1549ae5b"]]), ka = "#00dfb9";
10881
- function Aa(e) {
10882
- let t = e || ka;
10921
+ }), [["__scopeId", "data-v-1549ae5b"]]), Na = "#00dfb9";
10922
+ function Pa(e) {
10923
+ let t = e || Na;
10883
10924
  return {
10884
10925
  shape: "date_range",
10885
10926
  overrides: {
@@ -10896,7 +10937,7 @@ function Aa(e) {
10896
10937
  }
10897
10938
  };
10898
10939
  }
10899
- 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 = {
10900
10941
  symbol: "XAU_USD",
10901
10942
  interval: "60",
10902
10943
  library_path: "/charting_library/",
@@ -10906,7 +10947,7 @@ var ja = "\n \n \n
10906
10947
  user_id: "public_user_id",
10907
10948
  fullscreen: !1,
10908
10949
  autosize: !0
10909
- }, Na = {
10950
+ }, La = {
10910
10951
  D: "1440",
10911
10952
  H4: "240",
10912
10953
  H2: "120",
@@ -10918,7 +10959,7 @@ var ja = "\n \n \n
10918
10959
  };
10919
10960
  //#endregion
10920
10961
  //#region src/composables/use-selected-news-window-message.ts
10921
- function Pa(e, t) {
10962
+ function Ra(e, t) {
10922
10963
  let n = async ({ origin: n, data: r }) => {
10923
10964
  if (n !== "https://embed-iccandle-app.iccandle.ai" || typeof r != "string") return;
10924
10965
  let i;
@@ -10960,19 +11001,19 @@ function Pa(e, t) {
10960
11001
  }
10961
11002
  //#endregion
10962
11003
  //#region src/lib/debounce.ts
10963
- function Fa(e, t, n = 1) {
11004
+ function za(e, t, n = 1) {
10964
11005
  if (t === 0 || !isFinite(t)) return n;
10965
11006
  let r = e / t;
10966
11007
  return isFinite(r) ? r : n;
10967
11008
  }
10968
- function Ia(e) {
11009
+ function Ba(e) {
10969
11010
  if (e.length === 0) return 0;
10970
11011
  let t = [...e].sort((e, t) => e - t), n = Math.floor(t.length / 2);
10971
11012
  return t.length % 2 == 0 ? (t[n - 1] + t[n]) / 2 : t[n];
10972
11013
  }
10973
- function La(e, t, n = []) {
11014
+ function Va(e, t, n = []) {
10974
11015
  if (e.length === 0) return [];
10975
- 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;
10976
11017
  return e.map((e) => {
10977
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;
10978
11019
  return {
@@ -10985,7 +11026,7 @@ function La(e, t, n = []) {
10985
11026
  }
10986
11027
  //#endregion
10987
11028
  //#region src/lib/session-time.ts
10988
- var Ra = "America/New_York", za = 17, Ba = {
11029
+ var Ha = "America/New_York", Ua = 17, Wa = {
10989
11030
  Sun: 0,
10990
11031
  Mon: 1,
10991
11032
  Tue: 2,
@@ -10993,46 +11034,46 @@ var Ra = "America/New_York", za = 17, Ba = {
10993
11034
  Thu: 4,
10994
11035
  Fri: 5,
10995
11036
  Sat: 6
10996
- }, Va = new Intl.DateTimeFormat("en-US", {
10997
- timeZone: Ra,
11037
+ }, Ga = new Intl.DateTimeFormat("en-US", {
11038
+ timeZone: Ha,
10998
11039
  weekday: "short",
10999
11040
  hour: "numeric",
11000
11041
  minute: "numeric",
11001
11042
  hourCycle: "h23"
11002
- }), Ha = (e) => {
11003
- 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;
11004
11045
  return {
11005
- day: Ba[n] ?? 0,
11046
+ day: Wa[n] ?? 0,
11006
11047
  hour: i
11007
11048
  };
11008
- }, Ua = (e) => {
11009
- let { day: t, hour: n } = Ha(e);
11010
- return t === 6 ? !1 : t === 0 ? n >= za : t !== 5 || n < za;
11011
- }, 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) => {
11012
11053
  let n = e, r = Math.max(1, Math.ceil(11520 * 60 * 1e3 / t));
11013
- for (let e = 0; e < r && !Ua(n); e++) n += t;
11054
+ for (let e = 0; e < r && !qa(n); e++) n += t;
11014
11055
  return n;
11015
- }, Ga = (e, t, n) => {
11056
+ }, Ya = (e, t, n) => {
11016
11057
  let r = W(t) * 1e3, i = [], a = e;
11017
- 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);
11018
11059
  return i;
11019
- }, Ka = (e, t, n, r) => {
11060
+ }, Xa = (e, t, n, r) => {
11020
11061
  if (n <= 0) return [];
11021
11062
  if (r === "24x7") {
11022
11063
  let r = W(t) * 1e3;
11023
11064
  return Array.from({ length: n }, (t, n) => e + (n + 1) * r);
11024
11065
  }
11025
- if (r === "1700-1700") return Ga(e, t, n);
11066
+ if (r === "1700-1700") return Ya(e, t, n);
11026
11067
  let i = W(t) * 1e3;
11027
11068
  return Array.from({ length: n }, (t, n) => e + (n + 1) * i);
11028
- }, qa = (e, t, n, r) => {
11069
+ }, Za = (e, t, n, r) => {
11029
11070
  if (r === "24x7") {
11030
11071
  let r = W(n) * 1e3;
11031
11072
  return Math.max(0, Math.floor((t - e) / r));
11032
11073
  }
11033
11074
  if (r === "1700-1700") {
11034
11075
  let r = W(n) * 1e3, i = 0, a = e;
11035
- 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++;
11036
11077
  return i;
11037
11078
  }
11038
11079
  let i = W(n) * 1e3;
@@ -11062,68 +11103,68 @@ var Ra = "America/New_York", za = 17, Ba = {
11062
11103
  this.gapCount = e;
11063
11104
  }
11064
11105
  });
11065
- function Ja() {
11106
+ function Qa() {
11066
11107
  return $;
11067
11108
  }
11068
11109
  //#endregion
11069
11110
  //#region src/lib/play-chart.ts
11070
- var Ya = null, Xa = !1, Za = !1;
11071
- function Qa(e) {
11111
+ var $a = null, eo = !1, to = !1;
11112
+ function no(e) {
11072
11113
  return typeof e == "function" && typeof e.onReady != "function";
11073
11114
  }
11074
- function $a(e) {
11115
+ function ro(e) {
11075
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).");
11076
11117
  }
11077
- function eo(e) {
11078
- return Ya = e, (t) => {
11079
- !Xa && Za || e(t);
11118
+ function io(e) {
11119
+ return $a = e, (t) => {
11120
+ !eo && to || e(t);
11080
11121
  };
11081
11122
  }
11082
- function to(e) {
11083
- $a(e);
11123
+ function ao(e) {
11124
+ ro(e);
11084
11125
  let t = e.subscribeBars?.bind(e);
11085
11126
  return t ? Object.assign(Object.create(Object.getPrototypeOf(e)), e, { subscribeBars(e, n, r, i, a) {
11086
- return t(e, n, eo(r), i, a);
11127
+ return t(e, n, io(r), i, a);
11087
11128
  } }) : e;
11088
11129
  }
11089
- function no(e, ...t) {
11090
- if (Qa(e)) {
11091
- 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));
11092
11133
  throw Error("withPlayChart: received a datafeed factory. Call it before passing to TradingView: withPlayChart(yourDataFeed(...)) or pass factory arguments: withPlayChart(yourDataFeed, arg1, arg2).");
11093
11134
  }
11094
- return to(e);
11135
+ return ao(e);
11095
11136
  }
11096
- function ro(e) {
11097
- Za = e;
11137
+ function so(e) {
11138
+ to = e;
11098
11139
  }
11099
- function io(e) {
11100
- if (!Ya) return !1;
11101
- Xa = !0;
11140
+ function co(e) {
11141
+ if (!$a) return !1;
11142
+ eo = !0;
11102
11143
  try {
11103
- Ya(e);
11144
+ $a(e);
11104
11145
  } finally {
11105
- Xa = !1;
11146
+ eo = !1;
11106
11147
  }
11107
11148
  return !0;
11108
11149
  }
11109
11150
  //#endregion
11110
11151
  //#region src/lib/highlight-bars-store.ts
11111
- var ao = [], oo = (e) => {
11112
- ao = e;
11113
- }, so = () => ao, co = (e) => e > 1e11 ? e : e * 1e3, lo = (e, t) => {
11114
- let n = co(e);
11115
- return t.find((e) => co(e.time) === n);
11116
- }, uo = "Generated Candles - By iC Candle", fo = "Generated Candles Background - By iC Candle", po = "revealed_count", mo = {
11117
- 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,
11118
11159
  name: "Revealed Count",
11119
11160
  type: "integer",
11120
11161
  defval: 0,
11121
11162
  isHidden: !0,
11122
11163
  min: 0
11123
- }, ho = (e) => {
11164
+ }, yo = (e) => {
11124
11165
  let t = Math.max(0, Number(e(0)) || 0);
11125
- return so().slice(0, t);
11126
- }, 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 }) => ({
11127
11168
  _metainfoVersion: 51,
11128
11169
  id: e,
11129
11170
  description: t,
@@ -11136,7 +11177,7 @@ var ao = [], oo = (e) => {
11136
11177
  type: "price",
11137
11178
  precision: 2
11138
11179
  },
11139
- inputs: [mo],
11180
+ inputs: [vo],
11140
11181
  palettes: {
11141
11182
  palette_bar: {
11142
11183
  colors: {
@@ -11264,9 +11305,9 @@ var ao = [], oo = (e) => {
11264
11305
  } }
11265
11306
  },
11266
11307
  precision: 2,
11267
- inputs: { [po]: 0 }
11308
+ inputs: { [_o]: 0 }
11268
11309
  }
11269
- }), vo = 0, yo = (e = "light") => e === "dark" ? "#131722" : "#ffffff", bo = [
11310
+ }), So = 0, Co = (e = "light") => e === "dark" ? "#0F0F0F" : "#ffffff", wo = [
11270
11311
  NaN,
11271
11312
  NaN,
11272
11313
  NaN,
@@ -11274,32 +11315,32 @@ var ao = [], oo = (e) => {
11274
11315
  NaN,
11275
11316
  NaN,
11276
11317
  NaN
11277
- ], xo = (e) => function() {
11318
+ ], To = (e) => function() {
11278
11319
  this.init = function(e) {
11279
11320
  this._context = e;
11280
11321
  }, this.main = function(t, n) {
11281
11322
  this._context = t;
11282
- let r = t.symbol.time, i = ho(n);
11283
- 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);
11284
11325
  };
11285
- }, So = (e = "light") => {
11286
- let t = yo(e), n = {
11287
- name: fo,
11326
+ }, Eo = (e = "light") => {
11327
+ let t = Co(e), n = {
11328
+ name: go,
11288
11329
  metainfo: {
11289
11330
  _metainfoVersion: 51,
11290
11331
  id: "Generated Candles Background - By iC Candle@tv-basicstudies-1",
11291
- description: fo,
11332
+ description: go,
11292
11333
  shortDescription: "Generated Candles Background",
11293
11334
  isCustomIndicator: !0,
11294
11335
  is_hidden_study: !0,
11295
11336
  is_price_study: !0,
11296
11337
  linkedToSeries: !0,
11297
11338
  format: { type: "inherit" },
11298
- inputs: [mo],
11339
+ inputs: [vo],
11299
11340
  palettes: {
11300
11341
  prediction_bar_palette: {
11301
11342
  colors: { 0: { name: "Predicted Bar" } },
11302
- valToIndex: { [vo]: 0 }
11343
+ valToIndex: { [So]: 0 }
11303
11344
  },
11304
11345
  prediction_mask_palette: {
11305
11346
  colors: { 0: { name: "Predicted Mask" } },
@@ -11377,7 +11418,7 @@ var ao = [], oo = (e) => {
11377
11418
  style: 0
11378
11419
  } } }
11379
11420
  },
11380
- inputs: { [po]: 0 }
11421
+ inputs: { [_o]: 0 }
11381
11422
  }
11382
11423
  },
11383
11424
  constructor: function() {
@@ -11385,8 +11426,8 @@ var ao = [], oo = (e) => {
11385
11426
  this._context = e;
11386
11427
  }, this.main = function(e, t) {
11387
11428
  this._context = e;
11388
- let n = e.symbol.time, r = ho(t);
11389
- 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 [
11390
11431
  NaN,
11391
11432
  NaN,
11392
11433
  NaN,
@@ -11398,7 +11439,7 @@ var ao = [], oo = (e) => {
11398
11439
  ];
11399
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);
11400
11441
  return [
11401
- vo,
11442
+ So,
11402
11443
  i,
11403
11444
  a + c,
11404
11445
  o - c,
@@ -11410,19 +11451,19 @@ var ao = [], oo = (e) => {
11410
11451
  };
11411
11452
  }
11412
11453
  }, r = {
11413
- name: uo,
11414
- metainfo: _o({
11454
+ name: ho,
11455
+ metainfo: xo({
11415
11456
  id: "Generated Candles - By iC Candle@tv-basicstudies-1",
11416
- description: uo,
11457
+ description: ho,
11417
11458
  shortDescription: "Generated Candles",
11418
11459
  isHiddenStudy: !1,
11419
11460
  bodyColors: ["#00dfb9", "#ffb84d"],
11420
11461
  wickColors: ["#00dfb9", "#ffb84d"],
11421
11462
  borderColors: ["#00dfb9", "#ffb84d"]
11422
11463
  }),
11423
- constructor: xo((e, t) => {
11424
- let n = lo(e.symbol.time, t);
11425
- if (!n) return [...bo];
11464
+ constructor: To((e, t) => {
11465
+ let n = mo(e.symbol.time, t);
11466
+ if (!n) return [...wo];
11426
11467
  let r = +(n.close < n.open);
11427
11468
  return [
11428
11469
  n.open,
@@ -11436,40 +11477,40 @@ var ao = [], oo = (e) => {
11436
11477
  })
11437
11478
  };
11438
11479
  return Promise.resolve([n, r]);
11439
- }, Co = (e, t) => {
11480
+ }, Do = (e, t) => {
11440
11481
  if (t) try {
11441
11482
  e.removeEntity(t);
11442
11483
  } catch {}
11443
- }, wo = (e) => ({
11484
+ }, Oo = (e) => ({
11444
11485
  "predicted mask candle.color": e,
11445
11486
  "predicted mask candle.bordercolor": e,
11446
11487
  "predicted mask candle.wickcolor": e,
11447
11488
  "predicted bar.color.0": e,
11448
11489
  "predicted mask.color.0": e
11449
- }), To = (e, t) => {
11490
+ }), ko = (e, t) => {
11450
11491
  try {
11451
11492
  e.getSeries().sendToBack();
11452
11493
  } catch {}
11453
11494
  let n = t.generatedCandlesStudyIdRef.current;
11454
11495
  n && e.bringToFront([n]);
11455
- }, Eo = (e) => {
11496
+ }, Ao = (e) => {
11456
11497
  try {
11457
11498
  e.getSeries().bringToFront();
11458
11499
  } catch {}
11459
- }, Do = (e, t, n = "light") => {
11500
+ }, jo = (e, t, n = "light") => {
11460
11501
  let r = t.generatedCandlesBackgroundStudyIdRef.current;
11461
11502
  if (r) try {
11462
- e.getStudyById(r).applyOverrides(wo(yo(n)));
11503
+ e.getStudyById(r).applyOverrides(Oo(Co(n)));
11463
11504
  } catch {}
11464
- }, Oo = async (e, t, n = "light") => {
11465
- Co(e, t.generatedCandlesStudyIdRef.current), Co(e, t.generatedCandlesBackgroundStudyIdRef.current), t.generatedCandlesStudyIdRef.current = null, t.generatedCandlesBackgroundStudyIdRef.current = null;
11466
- 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));
11467
11508
  i && (t.generatedCandlesBackgroundStudyIdRef.current = i);
11468
- let a = await e.createStudy(uo, !0, !0);
11469
- a && (t.generatedCandlesStudyIdRef.current = a), To(e, t);
11470
- }, 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) => {
11471
11512
  let r = {
11472
- id: po,
11513
+ id: _o,
11473
11514
  value: n
11474
11515
  };
11475
11516
  for (let n of [t.generatedCandlesBackgroundStudyIdRef, t.generatedCandlesStudyIdRef]) if (n.current) try {
@@ -11478,27 +11519,27 @@ var ao = [], oo = (e) => {
11478
11519
  };
11479
11520
  //#endregion
11480
11521
  //#region src/composables/use-predict-candle.ts
11481
- function Ao(e, t, n, r, i) {
11522
+ function Po(e, t, n, r, i) {
11482
11523
  let a = t.highlightBarsRef, o = { current: i.value }, s = { current: null }, c = !1, l, u = () => {
11483
11524
  l &&= (clearInterval(l), void 0);
11484
11525
  }, d = (n) => {
11485
11526
  let r = e.value;
11486
11527
  if (r) try {
11487
- ko(r.activeChart(), t, n);
11528
+ No(r.activeChart(), t, n);
11488
11529
  } catch {}
11489
11530
  }, f = (t, r, a = []) => {
11490
11531
  let o = e.value, s = i.value, c = $.targetCandles;
11491
11532
  if (!(!o || !s?.length) && !(!t.length && !a.length) && c.length) try {
11492
11533
  let e = o.activeChart(), i = U(n.value), s = it(c[0].timestamp, n.value) / 1e3 - (100 * i + i * 100);
11493
11534
  if (r > 0 && t.length > 0) {
11494
- let n = co(t[r - 1].time) / 1e3 + 100 / 3 * i;
11535
+ let n = po(t[r - 1].time) / 1e3 + 100 / 3 * i;
11495
11536
  e.setVisibleRange({
11496
11537
  from: s,
11497
11538
  to: n
11498
11539
  });
11499
11540
  return;
11500
11541
  }
11501
- 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;
11502
11543
  e.setVisibleRange({
11503
11544
  from: s,
11504
11545
  to: u
@@ -11527,7 +11568,7 @@ function Ao(e, t, n, r, i) {
11527
11568
  return;
11528
11569
  }
11529
11570
  let t = e[i];
11530
- if (t && io(t)) {
11571
+ if (t && co(t)) {
11531
11572
  i++, a = 0, n?.(i), i >= e.length && o();
11532
11573
  return;
11533
11574
  }
@@ -11540,7 +11581,7 @@ function Ao(e, t, n, r, i) {
11540
11581
  await new Promise((e) => {
11541
11582
  n.onChartReady(async () => {
11542
11583
  try {
11543
- await Oo(n.activeChart(), t, "light");
11584
+ await Mo(n.activeChart(), t, "light");
11544
11585
  } catch (e) {
11545
11586
  console.error("Failed to recreate generated candle studies:", e);
11546
11587
  }
@@ -11549,13 +11590,13 @@ function Ao(e, t, n, r, i) {
11549
11590
  });
11550
11591
  } catch {}
11551
11592
  }, g = (e, t) => {
11552
- 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));
11553
11594
  }, _ = async (n, r = []) => {
11554
- 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;
11555
11596
  if (f(n, 0, r), r.length > 0) {
11556
11597
  for (let e of r) {
11557
11598
  if (c) return;
11558
- io(e);
11599
+ co(e);
11559
11600
  }
11560
11601
  f(n, 0, r);
11561
11602
  }
@@ -11564,7 +11605,7 @@ function Ao(e, t, n, r, i) {
11564
11605
  }), c) return;
11565
11606
  let i = e.value;
11566
11607
  if (i) try {
11567
- To(i.activeChart(), t);
11608
+ ko(i.activeChart(), t);
11568
11609
  } catch {}
11569
11610
  g(n, r);
11570
11611
  }, y = () => {
@@ -11572,45 +11613,48 @@ function Ao(e, t, n, r, i) {
11572
11613
  let l = i.value, d = $.targetCandles, f = $.gapCount, p = e.value;
11573
11614
  if (l?.length && d.length > 0) {
11574
11615
  if (s.current === l) return;
11575
- 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) => ({
11576
- open: a,
11577
- high: a,
11578
- low: a,
11579
- 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,
11580
11623
  time: e
11581
- })), 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) => ({
11582
11625
  open: e.o,
11583
11626
  high: e.h,
11584
11627
  low: e.l,
11585
11628
  close: e.c,
11586
- time: it(u[t], n.value)
11629
+ time: it(m[t], n.value)
11587
11630
  }))].sort((e, t) => e.time - t.time);
11588
11631
  try {
11589
11632
  p?.onChartReady(() => {
11590
- _(m, c);
11633
+ _(h, u);
11591
11634
  });
11592
11635
  } catch {
11593
- _(m, c);
11636
+ _(h, u);
11594
11637
  }
11595
11638
  } else {
11596
- if (ro(!1), oo([]), s.current = null, a.current = [], p) try {
11597
- ko(p.activeChart(), t, 0);
11639
+ if (so(!1), uo([]), s.current = null, a.current = [], p) try {
11640
+ No(p.activeChart(), t, 0);
11598
11641
  } catch {}
11599
11642
  try {
11600
11643
  p?.onChartReady(() => {
11601
- p && Eo(p.activeChart());
11644
+ p && Ao(p.activeChart());
11602
11645
  });
11603
11646
  } catch {}
11604
11647
  }
11605
11648
  o.current = l;
11606
11649
  }, b = () => {
11607
- c = !0, u(), ro(!1);
11650
+ c = !0, u(), so(!1);
11608
11651
  };
11609
11652
  N([
11610
11653
  e,
11611
11654
  i,
11612
11655
  () => $.targetCandles,
11613
11656
  () => $.gapCount,
11657
+ () => $.playEndTimestamp,
11614
11658
  () => n.value,
11615
11659
  () => r.value
11616
11660
  ], () => {
@@ -11620,26 +11664,38 @@ function Ao(e, t, n, r, i) {
11620
11664
  deep: !0
11621
11665
  }), N(i, (n) => {
11622
11666
  if (n === null) {
11623
- oo([]), a.current = [];
11667
+ uo([]), a.current = [];
11624
11668
  let n = e.value;
11625
11669
  if (n) try {
11626
- ko(n.activeChart(), t, 0);
11670
+ No(n.activeChart(), t, 0);
11627
11671
  } catch {}
11628
11672
  }
11629
11673
  }), v(b);
11630
11674
  }
11631
11675
  //#endregion
11632
11676
  //#region src/composables/use-window-message.ts
11633
- function jo(e) {
11634
- return {
11635
- o: e[1],
11636
- h: e[2],
11637
- l: e[3],
11638
- c: e[4],
11639
- 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());
11640
11693
  };
11641
- }
11642
- 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) => {
11643
11699
  if (t.current) {
11644
11700
  try {
11645
11701
  let n = e?.activeChart?.();
@@ -11649,7 +11705,7 @@ var Mo = (e, t) => {
11649
11705
  } catch {}
11650
11706
  t.current = null;
11651
11707
  }
11652
- }, No = (e) => {
11708
+ }, Ho = (e) => {
11653
11709
  try {
11654
11710
  localStorage.removeItem(V);
11655
11711
  } catch {}
@@ -11658,30 +11714,25 @@ var Mo = (e, t) => {
11658
11714
  if (!t) return;
11659
11715
  t.clearMarks(2), t.refreshMarks();
11660
11716
  } catch {}
11661
- }, Po = (e, t) => {
11717
+ }, Uo = (e, t) => {
11662
11718
  try {
11663
11719
  localStorage.setItem(V, JSON.stringify(t));
11664
11720
  } catch {}
11665
11721
  try {
11666
11722
  (e?.activeChart?.())?.refreshMarks();
11667
11723
  } catch {}
11668
- }, Fo = async (e, t) => {
11724
+ }, Wo = async (e, t) => {
11669
11725
  if (!(!e || !Number.isFinite(t) || t <= 0)) try {
11670
11726
  await e.headerReady();
11671
- 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;
11672
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({
11673
11729
  from: r - a,
11674
11730
  to: r + a
11675
- }), await new Promise((e) => {
11676
- let t = !1, r = () => {
11677
- t || (t = !0, e());
11678
- };
11679
- n.onDataLoaded().subscribe(null, r, !0), setTimeout(r, 300);
11680
- });
11731
+ }), await zo(n);
11681
11732
  } catch (e) {
11682
11733
  console.error("Error centering visible range on event", e);
11683
11734
  }
11684
- }, Io = async (e, t, n) => {
11735
+ }, Go = async (e, t, n) => {
11685
11736
  if (!e || !Number.isFinite(t) || t <= 0) return;
11686
11737
  await e?.headerReady();
11687
11738
  let r = e?.activeChart?.();
@@ -11693,7 +11744,11 @@ var Mo = (e, t) => {
11693
11744
  n.current = null;
11694
11745
  }
11695
11746
  try {
11696
- 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 }, {
11697
11752
  shape: "vertical_line",
11698
11753
  lock: !0,
11699
11754
  disableSelection: !0,
@@ -11702,51 +11757,66 @@ var Mo = (e, t) => {
11702
11757
  linewidth: 1
11703
11758
  }
11704
11759
  });
11705
- o && (r.getShapeById(o)?.setSavingEnabled(!1), n.current = o);
11760
+ u && (r.getShapeById(u)?.setSavingEnabled(!1), n.current = u);
11706
11761
  } catch {}
11707
11762
  } catch {}
11708
- }, Lo = async (e, t) => {
11763
+ }, Ko = async (e, t) => {
11709
11764
  if (!(!e || !Number.isFinite(t) || t <= 0)) try {
11710
11765
  await e.headerReady();
11711
11766
  let n = e.activeChart(), r = W(n.resolution()), { data: i } = await n.exportData();
11712
11767
  if (!i?.length) return;
11713
- let a = i[i.length - 1][0], o = Math.floor(t / 1e3);
11768
+ let a = Lo(i[i.length - 1]), o = Fo(t);
11714
11769
  await n.setVisibleRange({
11715
11770
  from: a - 100 * r,
11716
11771
  to: o + 100 / 3 * r
11717
- });
11772
+ }), await zo(n);
11718
11773
  } catch (e) {
11719
11774
  console.error("Error expanding visible range for future event", e);
11720
11775
  }
11721
- }, Ro = async (e, t, n) => {
11776
+ }, qo = async (e, t, n) => {
11722
11777
  if (!e || !n || !Number.isFinite(t) || t <= 0) return !1;
11723
11778
  try {
11724
11779
  await e.headerReady();
11725
- let r = e.activeChart(), i = r.resolution(), a = W(i), o = Math.floor(t / 1e3), s = o - o % a, { data: c } = await r.exportData();
11726
- if (!c?.length) return !1;
11727
- let l = c[c.length - 1][0], u = r.symbol(), d = Q.find((e) => e.ticker === u || e.display_name === u)?.session || "24x7";
11728
- if (n.clearSelectedCandles(), $.setPlayEndTimestamp(null), ro(!1), s > l) {
11729
- let e = qa(it(l, i), it(s, i), i, d);
11730
- $.setGapCount(e);
11731
- let t = c.slice(-50).map(jo);
11732
- 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);
11733
11805
  }
11734
- $.setGapCount(0);
11735
- let f = c.findIndex((e) => e[0] === s);
11736
- if (f === -1) {
11737
- let e = Infinity;
11738
- for (let t = 0; t < c.length; t++) {
11739
- let n = Math.abs(c[t][0] - s);
11740
- n < e && (e = n, f = t);
11741
- }
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;
11742
11811
  }
11743
- if (f < 0) return !1;
11744
- let p = c.slice(Math.max(0, f - 49), f + 1).map(jo);
11745
- 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;
11746
11816
  } catch (e) {
11747
11817
  return console.error("Error preparing event target candles", e), !1;
11748
11818
  }
11749
- }, zo = (e) => {
11819
+ }, Jo = (e) => {
11750
11820
  if (e) try {
11751
11821
  e.onChartReady(() => {
11752
11822
  try {
@@ -11758,9 +11828,9 @@ var Mo = (e, t) => {
11758
11828
  } catch (e) {
11759
11829
  console.error("Error resetting chart data", e);
11760
11830
  }
11761
- }, Bo = (e, t) => {
11762
- t([]), $.setPlayEndTimestamp(null), ro(!1), zo(e);
11763
- }, Vo = (e, t) => {
11831
+ }, Yo = (e, t) => {
11832
+ t([]), $.setPlayEndTimestamp(null), $.setGapCount(0), so(!1), Jo(e);
11833
+ }, Xo = (e, t) => {
11764
11834
  if (e) try {
11765
11835
  let n = e.activeChart?.();
11766
11836
  if (!n) return;
@@ -11776,23 +11846,23 @@ var Mo = (e, t) => {
11776
11846
  } catch {}
11777
11847
  });
11778
11848
  } catch {}
11779
- }, Ho = (e) => Na[e] || e, Uo = (e) => {
11849
+ }, Zo = (e) => La[e] || e, Qo = (e) => {
11780
11850
  if (!e) return null;
11781
11851
  let t = Object.keys(e)[0], n = Number(t);
11782
11852
  return Number.isFinite(n) && n > 0 ? n : null;
11783
- }, Wo = async (e, t, n, r, i, a) => {
11853
+ }, $o = async (e, t, n, r, i, a) => {
11784
11854
  if (!e) return;
11785
- 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);
11786
11856
  if (!(!s || !c || !Number.isFinite(o) || o <= 0 || l == null) && !(a && a.length > 0 && !a.includes(u) && !a.includes(c))) try {
11787
11857
  await e.headerReady();
11788
11858
  let i = W(u);
11789
- 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);
11790
11860
  try {
11791
11861
  await new Promise((t) => {
11792
11862
  e.setSymbol(s, u, () => t());
11793
11863
  });
11794
11864
  let a = e.activeChart();
11795
- Vo(e, n);
11865
+ Xo(e, n);
11796
11866
  let c = o - (l - 1) * i;
11797
11867
  try {
11798
11868
  await a.setVisibleRange({
@@ -11804,7 +11874,7 @@ var Mo = (e, t) => {
11804
11874
  }
11805
11875
  let { data: d } = await a.exportData(), f = d.findIndex((e) => e[0] === o);
11806
11876
  f === -1 && (f = d.length - 1);
11807
- 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 }], {
11808
11878
  ...v,
11809
11879
  overrides: {
11810
11880
  ...v.overrides,
@@ -11822,7 +11892,7 @@ var Mo = (e, t) => {
11822
11892
  } }), e.setSavingEnabled(!1)), n.current = y, r && (r.lastEntity.current = y);
11823
11893
  }
11824
11894
  if (r && m.length > 0) {
11825
- let e = m.map(jo), t = e.slice(-50);
11895
+ let e = m.map(Io), t = e.slice(-50);
11826
11896
  r.setSymbol(s), r.setResolution(u), r.setTimeframe(u), r.setWindowSize(e.length), r.setCandles(e), r.setTargetCandles(t), r.setHasActiveShape(!0);
11827
11897
  }
11828
11898
  } finally {
@@ -11836,18 +11906,20 @@ var Mo = (e, t) => {
11836
11906
  }, 600);
11837
11907
  }
11838
11908
  };
11839
- function Go(e, t, n, r, i, a, o, s) {
11840
- 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 };
11841
11911
  N(n, (e) => {
11842
- c.current = e;
11843
- }), N(e, (e) => {
11844
11912
  l.current = e;
11913
+ }), N(e, (e) => {
11914
+ u.current = e;
11845
11915
  }), N(() => o, (e) => {
11846
- m.current = e;
11847
- }), N(() => typeof s == "function" ? s() : s, (e) => {
11848
11916
  h.current = e;
11917
+ }), N(() => typeof s == "function" ? s() : s, (e) => {
11918
+ g.current = e;
11919
+ }), N(() => c, (e) => {
11920
+ _.current = e;
11849
11921
  });
11850
- let b = ({ origin: e, data: t }) => {
11922
+ let S = ({ origin: e, data: t }) => {
11851
11923
  if (e !== "https://embed-iccandle-app.iccandle.ai") return;
11852
11924
  let n;
11853
11925
  try {
@@ -11857,8 +11929,8 @@ function Go(e, t, n, r, i, a, o, s) {
11857
11929
  }
11858
11930
  if (!n || typeof n != "object") return;
11859
11931
  let r = () => {
11860
- Vo(l.current, _);
11861
- let e = p.current;
11932
+ Xo(u.current, b);
11933
+ let e = m.current;
11862
11934
  e && (e.lastEntity.current = null, e.setHasActiveShape(!1), e.setCandles([]), e.setTargetCandles([]));
11863
11935
  }, i = n.name;
11864
11936
  if (typeof i != "string") return;
@@ -11876,31 +11948,37 @@ function Go(e, t, n, r, i, a, o, s) {
11876
11948
  timestamp: e.timestamp
11877
11949
  }));
11878
11950
  if (t.length === 0) return;
11879
- u.current(t);
11880
- let n = e.playEndTimestamp ?? (y.current == null ? c.current : Math.floor(y.current / 1e3));
11881
- 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);
11882
11960
  return;
11883
11961
  }
11884
11962
  if (!("candles" in e)) return;
11885
11963
  let t = e.candles ?? null;
11886
- u.current(t);
11887
- let n = c.current;
11964
+ d.current(t);
11965
+ let n = l.current;
11888
11966
  n != null && Number.isFinite(n) && $.setPlayEndTimestamp(n);
11889
11967
  break;
11890
11968
  }
11891
11969
  case "chart.stop":
11892
11970
  if (a?.isReplay === !1) {
11893
- Bo(l.current, u.current);
11971
+ Yo(u.current, d.current);
11894
11972
  break;
11895
11973
  }
11896
- u.current(null), $.setPlayEndTimestamp(null), ro(!1), zo(l.current);
11974
+ d.current(null), $.setPlayEndTimestamp(null), so(!1), Jo(u.current);
11897
11975
  break;
11898
11976
  case "selector.closeResult":
11899
- u.current([]), $.setPlayEndTimestamp(null), f.current?.();
11977
+ d.current([]), $.setPlayEndTimestamp(null), p.current?.();
11900
11978
  break;
11901
11979
  case "selector.loading": {
11902
11980
  let e = a;
11903
- d.current(e?.isLoading ?? !1);
11981
+ f.current(e?.isLoading ?? !1);
11904
11982
  break;
11905
11983
  }
11906
11984
  case "auth.signIn": {
@@ -11914,28 +11992,28 @@ function Go(e, t, n, r, i, a, o, s) {
11914
11992
  case "news.eventClicked": {
11915
11993
  let e = a?.event;
11916
11994
  if (!e?.timestamp) return;
11917
- y.current = e.timestamp, Po(l.current, e), (async () => {
11918
- 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);
11919
11997
  })();
11920
11998
  break;
11921
11999
  }
11922
12000
  case "news.back":
11923
- 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([]);
11924
12002
  break;
11925
12003
  case "news.backToSimilarEvents":
11926
- Bo(l.current, u.current);
12004
+ Yo(u.current, d.current);
11927
12005
  break;
11928
12006
  case "pattern.classicPatternSelected": {
11929
12007
  let e = n.data?.pattern, t = e?.compared_pattern;
11930
12008
  if (!t) return;
11931
- 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);
11932
12010
  break;
11933
12011
  }
11934
12012
  case "pattern.custom_pattern_selected":
11935
12013
  case "patter.custom_pattern_selected": {
11936
12014
  let e = a?.pattern, t = e?.compared_pattern;
11937
12015
  if (!t) return;
11938
- 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);
11939
12017
  break;
11940
12018
  }
11941
12019
  case "pattern.clear_custom_pattern_selected":
@@ -11944,41 +12022,62 @@ function Go(e, t, n, r, i, a, o, s) {
11944
12022
  break;
11945
12023
  case "nav.click": {
11946
12024
  let e = a;
11947
- e?.href && m.current?.(e.href);
12025
+ e?.href && h.current?.(e.href);
11948
12026
  break;
11949
12027
  }
12028
+ case "chart.requestResolution":
12029
+ _.current?.();
12030
+ break;
11950
12031
  default: break;
11951
12032
  }
11952
12033
  };
11953
- window.addEventListener("message", b), v(() => {
11954
- window.removeEventListener("message", b);
12034
+ window.addEventListener("message", S), v(() => {
12035
+ window.removeEventListener("message", S);
11955
12036
  });
11956
12037
  }
11957
12038
  //#endregion
11958
12039
  //#region src/lib/post-parent-message.ts
11959
- var Ko = "open-pricing";
11960
- function qo(e) {
12040
+ var ts = "open-pricing";
12041
+ function ns(e) {
11961
12042
  return {
11962
- type: Ko,
12043
+ type: ts,
11963
12044
  ...e
11964
12045
  };
11965
12046
  }
11966
- function Jo(e, t) {
11967
- e.postMessage(JSON.stringify(qo(t)), "*");
12047
+ function rs(e, t) {
12048
+ e.postMessage(JSON.stringify(ns(t)), "*");
11968
12049
  }
11969
- function Yo(e, t) {
12050
+ function is(e, t) {
11970
12051
  let n = e?.contentWindow;
11971
- 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
+ };
11972
12065
  }
11973
- function Xo(e) {
11974
- 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;
11975
12074
  }
11976
12075
  //#endregion
11977
12076
  //#region src/tradingview/WidgetIccandle.vue?vue&type=script&setup=true&lang.ts
11978
- var Zo = ["lang"], Qo = {
12077
+ var ls = ["lang"], us = {
11979
12078
  key: 3,
11980
12079
  class: "iccandle-selector-widget__overlay"
11981
- }, $o = /* @__PURE__ */ d({
12080
+ }, ds = /* @__PURE__ */ d({
11982
12081
  __name: "WidgetIccandle",
11983
12082
  props: {
11984
12083
  chartWidget: {},
@@ -12003,7 +12102,8 @@ var Zo = ["lang"], Qo = {
12003
12102
  type: Boolean,
12004
12103
  default: !0
12005
12104
  },
12006
- availableIntervals: {}
12105
+ availableIntervals: {},
12106
+ onScanClick: {}
12007
12107
  },
12008
12108
  setup(e, { expose: t }) {
12009
12109
  function n(e) {
@@ -12037,11 +12137,11 @@ var Zo = ["lang"], Qo = {
12037
12137
  generatedCandlesStudyIdRef: { current: null }
12038
12138
  };
12039
12139
  t({ chartRefs: f });
12040
- 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 };
12041
12141
  N(C, () => {
12042
12142
  F.current = P;
12043
12143
  }, { immediate: !0 });
12044
- 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 = () => {
12045
12145
  try {
12046
12146
  let e = l.chartWidget?.activeChart?.();
12047
12147
  if (e) {
@@ -12064,7 +12164,7 @@ var Zo = ["lang"], Qo = {
12064
12164
  try {
12065
12165
  t = new URL(e, `${B}/`).pathname;
12066
12166
  } catch {}
12067
- 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));
12068
12168
  }, ae = () => {
12069
12169
  ee.value = !0;
12070
12170
  }, Y = () => {
@@ -12072,7 +12172,7 @@ var Zo = ["lang"], Qo = {
12072
12172
  }, X = () => {
12073
12173
  T.setPlayEndTimestamp(null), T.setGapCount(0);
12074
12174
  let e = !!k.value?.length;
12075
- k.value = null, ro(!1), e && zo(be.value), y.value?.();
12175
+ k.value = null, so(!1), e && Jo(xe.value), y.value?.();
12076
12176
  }, se = () => {
12077
12177
  G.value = "settings";
12078
12178
  }, ce = () => {
@@ -12084,17 +12184,19 @@ var Zo = ["lang"], Qo = {
12084
12184
  }, de = () => {
12085
12185
  ne.value = !0;
12086
12186
  }, fe = () => {
12187
+ cs(l.resultIframeRef?.current, q.value);
12188
+ }, pe = () => {
12087
12189
  let e = {
12088
12190
  theme: I.value === "dark" ? "dark" : "light",
12089
12191
  language: d.value
12090
12192
  };
12091
- Yo(l.resultIframeRef?.current, e) || Xo(e) || l.submitCallback(`${B}/${d.value}?pricing=true&theme=${I.value === "dark" ? "dark" : "light"}`);
12092
- }, pe = () => {
12093
- 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"}`);
12094
12194
  }, me = () => {
12195
+ A.value = !1, j.value = null, M.value = null;
12196
+ }, he = () => {
12095
12197
  R.value = !0;
12096
- }, he = (e) => {
12097
- 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;
12098
12200
  re(), k.value = null, T.setPlayEndTimestamp(null);
12099
12201
  let i = {
12100
12202
  id: e.id,
@@ -12115,7 +12217,7 @@ var Zo = ["lang"], Qo = {
12115
12217
  r?.activeChart?.()?.refreshMarks();
12116
12218
  } catch {}
12117
12219
  (async () => {
12118
- await Ro(r, e.timestamp, {
12220
+ await qo(r, e.timestamp, {
12119
12221
  lastEntity: p,
12120
12222
  applyingPatternRef: h,
12121
12223
  setHasActiveShape: (e) => {
@@ -12142,11 +12244,11 @@ var Zo = ["lang"], Qo = {
12142
12244
  clearSelectedCandles: () => {
12143
12245
  k.value = null;
12144
12246
  }
12145
- }), await Io(r, e.timestamp, m);
12247
+ }), await Go(r, e.timestamp, m);
12146
12248
  })(), l.submitCallback(`${B}/${d.value}/news/similar-events/${e.id}?symbol=${encodeURIComponent(t)}&theme=${n}`);
12147
- }, ge = (e) => {
12249
+ }, _e = (e) => {
12148
12250
  if (!e) return;
12149
- let t = be.value;
12251
+ let t = xe.value;
12150
12252
  if (!t) return;
12151
12253
  let n;
12152
12254
  try {
@@ -12184,23 +12286,59 @@ var Zo = ["lang"], Qo = {
12184
12286
  if (!c(d)) return;
12185
12287
  let f = d.timestamp ? d.timestamp / 1e3 : null, p = i.to - i.from, m = u(f ?? i.from + p * .5);
12186
12288
  m && (M.value = m), j.value = d, A.value = !0;
12187
- }, _e = () => {
12289
+ }, ve = () => {
12188
12290
  h.current || (p.current = null, z.value = !1);
12189
- }, ve = (e) => {
12190
- e === "1" || e === "5" ? K.value = "60" : K.value = e, q.value = e, _e();
12191
12291
  }, ye = (e) => {
12192
- J.value = e.library_custom_fields?.ticker || e.ticker || e.name || e.base_name + "" || "", _e();
12193
- }, 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);
12194
12332
  N(() => l.chartWidget, (e) => {
12195
- be.value = e;
12196
- }), N(be, (e) => {
12333
+ xe.value = e;
12334
+ }), N(xe, (e) => {
12197
12335
  let t, r, i;
12198
12336
  b(() => {
12199
12337
  z.value = !1, p.current = null, y.value = null;
12200
12338
  try {
12201
12339
  if (r && clearTimeout(r), e) {
12202
12340
  let n = e.activeChart();
12203
- 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);
12204
12342
  }
12205
12343
  } catch (e) {
12206
12344
  console.log(e);
@@ -12222,11 +12360,11 @@ var Zo = ["lang"], Qo = {
12222
12360
  U.value = c.length, W.value = c.map(n), T.setTargetCandles(l.map(n)), z.value = !0;
12223
12361
  let u = c[0], d = c[c.length - 1];
12224
12362
  if (!u || !d) return;
12225
- 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) {
12226
12364
  let e = a.getShapeById(p.current);
12227
12365
  e && e.setSavingEnabled && (e.setProperties({ customText: {
12228
12366
  visible: !0,
12229
- text: ja
12367
+ text: Fa
12230
12368
  } }), e.setSavingEnabled(!1));
12231
12369
  }
12232
12370
  }
@@ -12238,16 +12376,16 @@ var Zo = ["lang"], Qo = {
12238
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);
12239
12377
  c === -1 && (c = s.length - 2, l = s.length - 1 - 25);
12240
12378
  let u = s.slice(l, c + 1).length - 1;
12241
- 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) => {
12242
12380
  a.removeEntity(e.id);
12243
12381
  });
12244
12382
  let d = s.slice(c - u, c + 1), f = s.slice(c - 49, c + 1), m = d[0], h = d[d.length - 1];
12245
12383
  if (!m || !h) return;
12246
- 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) {
12247
12385
  let e = a.getShapeById(p.current);
12248
12386
  e && e.setSavingEnabled && (e.setProperties({ customText: {
12249
12387
  visible: !0,
12250
- text: ja
12388
+ text: Fa
12251
12389
  } }), e.setSavingEnabled(!1));
12252
12390
  }
12253
12391
  }
@@ -12275,13 +12413,13 @@ var Zo = ["lang"], Qo = {
12275
12413
  r && clearTimeout(r), r = setTimeout(() => {
12276
12414
  l(e) ? z.value = !1 : p.current && (z.value = !0);
12277
12415
  }, 150);
12278
- }, 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);
12279
12417
  }
12280
12418
  });
12281
12419
  }, { immediate: !0 });
12282
- let xe = r(() => W.value[W.value.length - 1]?.timestamp ?? null);
12283
- Pa(be, S);
12284
- let Se = {
12420
+ let Se = r(() => W.value[W.value.length - 1]?.timestamp ?? null);
12421
+ Ra(xe, S);
12422
+ let Ce = {
12285
12423
  lastEntity: p,
12286
12424
  applyingPatternRef: h,
12287
12425
  setHasActiveShape: (e) => {
@@ -12309,41 +12447,50 @@ var Zo = ["lang"], Qo = {
12309
12447
  k.value = null;
12310
12448
  }
12311
12449
  };
12312
- Go(be, (e) => {
12450
+ es(xe, (e) => {
12313
12451
  k.value = e;
12314
- }, xe, (e) => {
12452
+ }, Se, (e) => {
12315
12453
  D.value = e;
12316
- }, 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) => {
12317
12464
  if (!e) return;
12318
12465
  let t = !1;
12319
12466
  b(() => {
12320
12467
  t = !0;
12321
12468
  try {
12322
- e.unsubscribe("onTimescaleMarkClick", ge);
12469
+ e.unsubscribe("onTimescaleMarkClick", _e);
12323
12470
  } catch {}
12324
12471
  }), e.onChartReady(async () => {
12325
12472
  if (!t) {
12326
12473
  try {
12327
- await Oo(e.activeChart(), f, I.value);
12474
+ await Mo(e.activeChart(), f, I.value);
12328
12475
  } catch (e) {
12329
12476
  console.error("Failed to create generated candle studies:", e);
12330
12477
  }
12331
12478
  try {
12332
- e.subscribe("onTimescaleMarkClick", ge);
12479
+ e.subscribe("onTimescaleMarkClick", _e);
12333
12480
  } catch {}
12334
12481
  }
12335
12482
  });
12336
12483
  }, { immediate: !0 }), N(I, (e) => {
12337
- let t = be.value;
12484
+ let t = xe.value;
12338
12485
  if (t) try {
12339
12486
  t.onChartReady(() => {
12340
12487
  try {
12341
- Do(t.activeChart(), f, e);
12488
+ jo(t.activeChart(), f, e);
12342
12489
  } catch {}
12343
12490
  });
12344
12491
  } catch {}
12345
- }), Ao(be, f, q, J, k);
12346
- let Ce = () => {
12492
+ }), Po(xe, f, q, J, k);
12493
+ let we = () => {
12347
12494
  try {
12348
12495
  localStorage.removeItem(H), localStorage.removeItem(V);
12349
12496
  } catch {}
@@ -12358,11 +12505,11 @@ var Zo = ["lang"], Qo = {
12358
12505
  e.clearMarks(2);
12359
12506
  } catch {}
12360
12507
  }
12361
- }, we = (e) => {
12362
- K.value = e;
12363
12508
  }, Te = (e) => {
12509
+ K.value = e;
12510
+ }, Ee = (e) => {
12364
12511
  R.value = e;
12365
- }, 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");
12366
12513
  return v(() => {
12367
12514
  z.value = !1, p.current = null, y.value = null;
12368
12515
  }), (t, n) => (x(), o("div", {
@@ -12379,7 +12526,8 @@ var Zo = ["lang"], Qo = {
12379
12526
  "submit-callback": e.submitCallback,
12380
12527
  "handle-show-dialog": se,
12381
12528
  "on-open-scan-config": ce,
12382
- "on-apply-saved-timeframe": we,
12529
+ "on-scan-click": e.onScanClick,
12530
+ "on-apply-saved-timeframe": Te,
12383
12531
  "pending-scan-after-config": ne.value,
12384
12532
  "on-pending-scan-handled": ue,
12385
12533
  "trigger-scanner": X,
@@ -12394,16 +12542,17 @@ var Zo = ["lang"], Qo = {
12394
12542
  "has-active-shape": z.value,
12395
12543
  theme: I.value,
12396
12544
  language: d.value,
12397
- "clear-scanner-news-marks": Ce,
12545
+ "clear-scanner-news-marks": we,
12398
12546
  "selected-candles": k.value,
12399
12547
  "iframe-loaded": e.iframeLoaded,
12400
12548
  "is-loading": D.value,
12401
- "handle-track-pattern-click": me
12549
+ "handle-track-pattern-click": he
12402
12550
  }, null, 8, [
12403
12551
  "hide",
12404
12552
  "hide-scan-button",
12405
12553
  "hide-tracker-button",
12406
12554
  "submit-callback",
12555
+ "on-scan-click",
12407
12556
  "pending-scan-after-config",
12408
12557
  "window_size",
12409
12558
  "current-symbol",
@@ -12418,12 +12567,12 @@ var Zo = ["lang"], Qo = {
12418
12567
  "iframe-loaded",
12419
12568
  "is-loading"
12420
12569
  ]),
12421
- R.value ? (x(), i(Gi, {
12570
+ R.value ? (x(), i(Yi, {
12422
12571
  key: 0,
12423
12572
  open: R.value,
12424
- "onUpdate:open": Te,
12573
+ "onUpdate:open": Ee,
12425
12574
  resolution: q.value,
12426
- type: Ee.value,
12575
+ type: De.value,
12427
12576
  symbol: J.value,
12428
12577
  candles: W.value,
12429
12578
  percent: 90,
@@ -12436,42 +12585,42 @@ var Zo = ["lang"], Qo = {
12436
12585
  "candles",
12437
12586
  "theme"
12438
12587
  ])) : a("", !0),
12439
- G.value ? (x(), i(Hn, {
12588
+ G.value ? (x(), i(Kn, {
12440
12589
  key: 1,
12441
12590
  intent: G.value,
12442
- "set-resolution": we,
12591
+ "set-resolution": Te,
12443
12592
  timeframe: K.value,
12444
12593
  "handle-close-dialog": le,
12445
12594
  "current-symbol": J.value,
12446
12595
  theme: I.value,
12447
12596
  onScanConfigSaved: de,
12448
- onUpgradeClick: fe
12597
+ onUpgradeClick: pe
12449
12598
  }, null, 8, [
12450
12599
  "intent",
12451
12600
  "timeframe",
12452
12601
  "current-symbol",
12453
12602
  "theme"
12454
12603
  ])) : a("", !0),
12455
- A.value && j.value ? (x(), i(ua, {
12604
+ A.value && j.value ? (x(), i(ma, {
12456
12605
  key: 2,
12457
12606
  event: j.value,
12458
- symbol: De.value,
12607
+ symbol: Oe.value,
12459
12608
  position: M.value,
12460
- onClose: pe,
12461
- onGoToEventDetail: he
12609
+ onClose: me,
12610
+ onGoToEventDetail: ge
12462
12611
  }, null, 8, [
12463
12612
  "event",
12464
12613
  "symbol",
12465
12614
  "position"
12466
12615
  ])) : a("", !0),
12467
- ee.value ? (x(), o("div", Qo)) : a("", !0),
12468
- u(Oa, {
12616
+ ee.value ? (x(), o("div", us)) : a("", !0),
12617
+ u(Ma, {
12469
12618
  theme: I.value,
12470
12619
  style: _(L.value)
12471
12620
  }, null, 8, ["theme", "style"])
12472
- ], 10, Zo));
12621
+ ], 10, ls));
12473
12622
  }
12474
- }), es = (e) => {
12623
+ }), fs = (e) => {
12475
12624
  let t = e?.contentWindow;
12476
12625
  if (!t || !e?.src) return;
12477
12626
  let n = new URL(e.src).origin, r = () => t.postMessage(JSON.stringify({
@@ -12499,4 +12648,4 @@ var Zo = ["lang"], Qo = {
12499
12648
  }
12500
12649
  };
12501
12650
  //#endregion
12502
- 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 };