@elcrm/telegram 0.0.133 → 0.0.135

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.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(v,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(v=typeof globalThis<"u"?globalThis:v||self,w((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,w,pr){"use strict";var Vt=document.createElement("style");Vt.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_xpmv7_1){--tg-offset-bottom: 60px}._h_xpmv7_1{--tab-bar-margin: 0 auto;--tab-bar-bg: var(--tg-theme-secondary-bg-color-alpha);--tab-bar-padding: 0 0 calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 0;z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg);margin:var(--tab-bar-margin);padding:var(--tab-bar-padding)}._h_xpmv7_1[data-scale=true]{transform:scale(1.02)}._h_xpmv7_1[data-style=liquid-glass]{--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 10px 10px calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 10px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_xpmv7_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_xpmv7_1._r_xpmv7_61{flex-direction:row}._h_xpmv7_1._c_xpmv7_64{flex-direction:column}._h_xpmv7_1._x_xpmv7_67{opacity:0;visibility:hidden}._h_xpmv7_1 ._b_xpmv7_71{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_xpmv7_1 ._b_xpmv7_71 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_xpmv7_1 ._b_xpmv7_71 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_xpmv7_1 ._b_xpmv7_71 div[data-active=true]{color:var(--tg-theme-button-color)}._h_xpmv7_1 ._b_xpmv7_71 span{padding-top:2px;font-size:10px;font-weight:400}._h_xpmv7_1 ._b_xpmv7_71 ._a_xpmv7_107{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_xpmv7_1{to{stroke-dashoffset:0}}._h_xpmv7_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_xpmv7_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
2
- /*$vite$:1*/`,document.head.appendChild(Vt);var lt={exports:{}},Re={};/**
1
+ (function(v,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(v=typeof globalThis<"u"?globalThis:v||self,w((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,w,pr){"use strict";var Ht=document.createElement("style");Ht.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_1axqy_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}body:has(._h_xfork_1){--tg-offset-bottom: 60px}._h_xfork_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg, var(--tg-theme-secondary-bg-color-alpha));margin:var(--tab-bar-margin, 0 auto);padding:var(--tab-bar-padding, 0 0 calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px)) 0)}._h_xfork_1[data-scale=true]{transform:scale(1.02)}._h_xfork_1[data-style=liquid-glass]{--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 0px 16px calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 16px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_xfork_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_xfork_1._r_xfork_53{flex-direction:row}._h_xfork_1._c_xfork_56{flex-direction:column}._h_xfork_1._x_xfork_59{opacity:0;visibility:hidden}._h_xfork_1 ._b_xfork_63{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_xfork_1 ._b_xfork_63 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_xfork_1 ._b_xfork_63 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_xfork_1 ._b_xfork_63 div[data-active=true]{color:var(--tg-theme-button-color)}._h_xfork_1 ._b_xfork_63 span{padding-top:2px;font-size:10px;font-weight:400}._h_xfork_1 ._b_xfork_63 ._a_xfork_99{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_xfork_1{to{stroke-dashoffset:0}}._h_xfork_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_xfork_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_3m6y6_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_3m6y6_3._n_3m6y6_14{padding-left:7px;padding-right:7px}._s_3m6y6_3._n_3m6y6_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._s_3m6y6_3._f_3m6y6_29{position:fixed;top:0;right:0;bottom:0;left:0;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
2
+ /*$vite$:1*/`,document.head.appendChild(Ht);var lt={exports:{}},Re={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Ht;function gr(){if(Ht)return Re;Ht=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,_){var m,x={},k=null,A=null;_!==void 0&&(k=""+_),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(A=f.ref);for(m in f)i.call(f,m)&&!l.hasOwnProperty(m)&&(x[m]=f[m]);if(p&&p.defaultProps)for(m in f=p.defaultProps,f)x[m]===void 0&&(x[m]=f[m]);return{$$typeof:r,type:p,key:k,ref:A,props:x,_owner:s.current}}return Re.Fragment=n,Re.jsx=d,Re.jsxs=d,Re}var Ae={};/**
10
+ */var Jt;function gr(){if(Jt)return Re;Jt=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,m){var _,x={},k=null,R=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(R=f.ref);for(_ in f)i.call(f,_)&&!l.hasOwnProperty(_)&&(x[_]=f[_]);if(p&&p.defaultProps)for(_ in f=p.defaultProps,f)x[_]===void 0&&(x[_]=f[_]);return{$$typeof:r,type:p,key:k,ref:R,props:x,_owner:s.current}}return Re.Fragment=n,Re.jsx=d,Re.jsxs=d,Re}var Ae={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,20 +15,20 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Jt;function hr(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=z.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,B=!1,ht=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function _t(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===_||e===m||ht||e===A||Ee||je||B||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function bt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return bt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var I=Object.assign,Y=0,Te,Me,Ne,ze,Be,Ie,Le;function De(){}De.__reactDisabledLog=!0;function vt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,ze=console.error,Be=console.group,Ie=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function yt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Te}),info:I({},e,{value:Me}),warn:I({},e,{value:Ne}),error:I({},e,{value:ze}),group:I({},e,{value:Be}),groupCollapsed:I({},e,{value:Ie}),groupEnd:I({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=z.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
19
- `+fe+e}}var de=!1,Q;{var xt=typeof WeakMap=="function"?WeakMap:Map;Q=new xt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,vt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
18
+ */var Kt;function hr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=B.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,I=!1,_t=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function bt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===m||e===_||_t||e===R||Ee||je||I||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var z=Object.assign,Y=0,Te,Me,Ne,Be,Ie,ze,Le;function De(){}De.__reactDisabledLog=!0;function yt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,Be=console.error,Ie=console.group,ze=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function xt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:Te}),info:z({},e,{value:Me}),warn:z({},e,{value:Ne}),error:z({},e,{value:Be}),group:z({},e,{value:Ie}),groupCollapsed:z({},e,{value:ze}),groupEnd:z({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
19
+ `+fe+e}}var de=!1,Q;{var kt=typeof WeakMap=="function"?WeakMap:Map;Q=new kt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,yt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
20
20
  `),O=u.stack.split(`
21
21
  `),S=g.length-1,E=O.length-1;S>=1&&E>=0&&g[S]!==O[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==O[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==O[E]){var P=`
22
- `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,yt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function kt(e,o,a){return Ue(e,!1)}function wt(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,wt(e));if(typeof e=="string")return Z(e);switch(e){case _:return Z("Suspense");case m:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=z.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function St(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var Et=Array.isArray;function pe(e){return Et(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Rt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(Rt(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),qe(e)}var Ve=z.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function Ot(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function $t(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Pt(e,o){typeof e.ref=="string"&&Ve.current}function Ct(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Tt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Mt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Nt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),$t(o)&&(Ye(o.key),g=""+o.key),Ot(o)&&(O=o.ref,Pt(o,b));for(y in o)V.call(o,y)&&!At.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Ct(h,E),O&&Tt(h,E)}return Mt(e,g,O,b,u,Ve.current,h)}}var ge=z.ReactCurrentOwner,Ke=z.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
22
+ `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,xt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function wt(e,o,a){return Ue(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,St(e));if(typeof e=="string")return Z(e);switch(e){case m:return Z("Suspense");case _:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return wt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=B.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function Et(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var jt=Array.isArray;function pe(e){return jt(e)}function Rt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function At(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),qe(e)}var Ve=B.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function $t(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ve.current}function Tt(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Mt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Nt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),Pt(o)&&(Ye(o.key),g=""+o.key),$t(o)&&(O=o.ref,Ct(o,b));for(y in o)V.call(o,y)&&!Ot.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Tt(h,E),O&&Mt(h,E)}return Nt(e,g,O,b,u,Ve.current,h)}}var ge=B.ReactCurrentOwner,Ke=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function zt(e){return""}var Xe={};function Bt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
24
+ Check the render method of \``+e+"`."}return""}}function It(e){return""}var Xe={};function zt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
25
25
 
26
- Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];me(u)&&Ze(u,o)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)me(h.value)&&Ze(h.value,o)}}}function It(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);St(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=_t(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=zt();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Nt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qe(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Yt){return Yt!=="key"}),_e=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+_e]){var qt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=zt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];_e(u)&&Ze(u,o)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)_e(h.value)&&Ze(h.value,o)}}}function Lt(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);Et(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=bt(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=It();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Bt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qe(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Vt){return Vt!=="key"}),me=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+me]){var Yt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,_e,L,qt,L),et[L+_e]=!0}}return e===i?Lt(E):It(E),E}}function Dt(e,o,a){return tt(e,o,a,!0)}function Ut(e,o,a){return tt(e,o,a,!1)}var Ft=Ut,Wt=Dt;Ae.Fragment=i,Ae.jsx=Ft,Ae.jsxs=Wt}()),Ae}process.env.NODE_ENV==="production"?lt.exports=gr():lt.exports=hr();var c=lt.exports;const be={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let U={};var ct;(t=>{function r({children:p,onCallbackModal:f,nameModal:_,offsetTop:m}){const[x,k]=w.useState(!1),[A,C]=w.useState(!1);if(U[_].onClose=()=>{v.default.BackButton(!1),C(!0),setTimeout(()=>{k(!1),C(!1),f==null||f(),U.x(_)},300)},w.useEffect(()=>{x?U[_].onClose():(v.default.BackButton({callback:()=>U[_].onClose()}),k(!0))},[]),!!x)return c.jsx("div",{className:ae(be.o,A&&be.x),children:c.jsx("div",{className:ae(be.p,A&&be.x,m?be.o:be.m),children:p})})}t.Content=r;function n({import_modules:p}){let[f,_]=w.useState([]);return U.x=m=>{_(m?f.filter(x=>x.key!==m):[])},w.useEffect(()=>{p&&(U.i=p)},[]),U.add=(m,x=Date.now())=>{_([...f,{key:x,item:m}])},c.jsx(c.Fragment,{children:f.map(m=>m.item)})}t.Init=n;function i(p,f,_){U.add(c.jsx(r,{onCallbackModal:U["callback_modal"+f],nameModal:f||"",offsetTop:_,children:p},String(Date.now())),f)}t.Add=i;function s(p,f=Date.now().toString(),_){return U[f]={},{Open:k=>{t.Add(c.jsx(p,{...k,onCallbackModal:A=>{var C;(C=k.callback)==null||C.call(k,A)},nameModal:f},new Date().getTime()),f,_===void 0?!0:_)}}}t.Create=s;function l(p){U[p].onClose()}t.Close=l;function d(p,f,_,m){U.i&&(m&&(_.callback=m),U.i(`${p}/modals/${f}.tsx`).then(x=>{var k;x.Open?x.Open(_):(k=x.default)!=null&&k.Open?x.default.Open(_):x.default&&x.default(_)}))}t.Open=d})(ct||(ct={}));function Kt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Gt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Xt(t){const r=Kt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Gt,...t}}function rt(){return Kt().CRYPTO_PARAMS||Gt}const ot=t=>{let r=0;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);r=(r<<5)-r+s,r=r&r}r=Math.abs(r);let n="";for(let i=0;i<64;i++){const s=(r^i*197)&255;n+=s.toString(16).padStart(2,"0")}return n},Zt=(t,r)=>{let n=t+r;for(let s=0;s<rt().iterations;s++)n=ot(n);const i=new Uint8Array(32);for(let s=0;s<32;s++)i[s]=parseInt(n.substring(s*2,s*2+2),16);return i},Qt=(t,r)=>{const n=new Uint8Array(t.length),i=new Uint8Array(t.length);let s=0;for(let l=0;l<t.length;l++){const d=l%r.length;s=r[d]+l+s&255,i[l]=s}for(let l=0;l<t.length;l++)n[l]=t[l]^i[l];return n},mr=t=>new TextEncoder().encode(t),_r=t=>new TextDecoder().decode(t),br=t=>{let r="";for(let n=0;n<t.length;n+=8192){const i=t.slice(n,Math.min(n+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(i))}return btoa(r)},vr=t=>{const r=atob(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n},yr=t=>{try{const r=ot(Date.now().toString()+Math.random()).substring(0,rt().saltLength*2),n=ot(t+r).substring(0,8),i=Zt(rt().key,r),s=mr(t),l=Qt(s,i),d=br(l);return`${r}.${d}.${n}`}catch{throw new Error("Не удалось зашифровать данные")}},xr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const n=r[0],i=r[1],s=r[2],l=Zt(rt().key,n),d=vr(i),p=Qt(d,l),f=_r(p);if(ot(f+n).substring(0,8)!==s)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var re;(t=>{t.setKey=r=>{Xt({key:r})},t.enCode=r=>{try{const n=JSON.stringify(r);return yr(n)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const n=xr(r);return n&&JSON.parse(n)||!1}catch{return!1}},t.setSecurityParams=(r,n)=>{Xt({iterations:r,saltLength:n})}})(re||(re={}));var Oe={};/**
31
+ <%s key={someKey} {...props} />`,me,L,Yt,L),et[L+me]=!0}}return e===i?Dt(E):Lt(E),E}}function Ut(e,o,a){return tt(e,o,a,!0)}function Ft(e,o,a){return tt(e,o,a,!1)}var Wt=Ft,qt=Ut;Ae.Fragment=i,Ae.jsx=Wt,Ae.jsxs=qt}()),Ae}process.env.NODE_ENV==="production"?lt.exports=gr():lt.exports=hr();var c=lt.exports;const be={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let U={};var ct;(t=>{function r({children:p,onCallbackModal:f,nameModal:m,offsetTop:_}){const[x,k]=w.useState(!1),[R,C]=w.useState(!1);if(U[m].onClose=()=>{v.default.BackButton(!1),C(!0),setTimeout(()=>{k(!1),C(!1),f==null||f(),U.x(m)},300)},w.useEffect(()=>{x?U[m].onClose():(v.default.BackButton({callback:()=>U[m].onClose()}),k(!0))},[]),!!x)return c.jsx("div",{className:ae(be.o,R&&be.x),children:c.jsx("div",{className:ae(be.p,R&&be.x,_?be.o:be.m),children:p})})}t.Content=r;function n({import_modules:p}){let[f,m]=w.useState([]);return U.x=_=>{m(_?f.filter(x=>x.key!==_):[])},w.useEffect(()=>{p&&(U.i=p)},[]),U.add=(_,x=Date.now())=>{m([...f,{key:x,item:_}])},c.jsx(c.Fragment,{children:f.map(_=>_.item)})}t.Init=n;function i(p,f,m){U.add(c.jsx(r,{onCallbackModal:U["callback_modal"+f],nameModal:f||"",offsetTop:m,children:p},String(Date.now())),f)}t.Add=i;function s(p,f=Date.now().toString(),m){return U[f]={},{Open:k=>{t.Add(c.jsx(p,{...k,onCallbackModal:R=>{var C;(C=k.callback)==null||C.call(k,R)},nameModal:f},new Date().getTime()),f,m===void 0?!0:m)}}}t.Create=s;function l(p){U[p].onClose()}t.Close=l;function d(p,f,m,_){U.i&&(_&&(m.callback=_),U.i(`${p}/modals/${f}.tsx`).then(x=>{var k;x.Open?x.Open(m):(k=x.default)!=null&&k.Open?x.default.Open(m):x.default&&x.default(m)}))}t.Open=d})(ct||(ct={}));function Gt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Xt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Zt(t){const r=Gt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Xt,...t}}function rt(){return Gt().CRYPTO_PARAMS||Xt}const ot=t=>{let r=0;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);r=(r<<5)-r+s,r=r&r}r=Math.abs(r);let n="";for(let i=0;i<64;i++){const s=(r^i*197)&255;n+=s.toString(16).padStart(2,"0")}return n},Qt=(t,r)=>{let n=t+r;for(let s=0;s<rt().iterations;s++)n=ot(n);const i=new Uint8Array(32);for(let s=0;s<32;s++)i[s]=parseInt(n.substring(s*2,s*2+2),16);return i},er=(t,r)=>{const n=new Uint8Array(t.length),i=new Uint8Array(t.length);let s=0;for(let l=0;l<t.length;l++){const d=l%r.length;s=r[d]+l+s&255,i[l]=s}for(let l=0;l<t.length;l++)n[l]=t[l]^i[l];return n},_r=t=>new TextEncoder().encode(t),mr=t=>new TextDecoder().decode(t),br=t=>{let r="";for(let n=0;n<t.length;n+=8192){const i=t.slice(n,Math.min(n+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(i))}return btoa(r)},vr=t=>{const r=atob(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n},yr=t=>{try{const r=ot(Date.now().toString()+Math.random()).substring(0,rt().saltLength*2),n=ot(t+r).substring(0,8),i=Qt(rt().key,r),s=_r(t),l=er(s,i),d=br(l);return`${r}.${d}.${n}`}catch{throw new Error("Не удалось зашифровать данные")}},xr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const n=r[0],i=r[1],s=r[2],l=Qt(rt().key,n),d=vr(i),p=er(d,l),f=mr(p);if(ot(f+n).substring(0,8)!==s)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var re;(t=>{t.setKey=r=>{Zt({key:r})},t.enCode=r=>{try{const n=JSON.stringify(r);return yr(n)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const n=xr(r);return n&&JSON.parse(n)||!1}catch{return!1}},t.setSecurityParams=(r,n)=>{Zt({iterations:r,saltLength:n})}})(re||(re={}));var Oe={};/**
32
32
  * @license React
33
33
  * react-jsx-runtime.production.min.js
34
34
  *
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var er;function kr(){if(er)return Oe;er=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,_){var m,x={},k=null,A=null;_!==void 0&&(k=""+_),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(A=f.ref);for(m in f)i.call(f,m)&&!l.hasOwnProperty(m)&&(x[m]=f[m]);if(p&&p.defaultProps)for(m in f=p.defaultProps,f)x[m]===void 0&&(x[m]=f[m]);return{$$typeof:r,type:p,key:k,ref:A,props:x,_owner:s.current}}return Oe.Fragment=n,Oe.jsx=d,Oe.jsxs=d,Oe}var nt={};/**
39
+ */var tr;function kr(){if(tr)return Oe;tr=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,m){var _,x={},k=null,R=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(R=f.ref);for(_ in f)i.call(f,_)&&!l.hasOwnProperty(_)&&(x[_]=f[_]);if(p&&p.defaultProps)for(_ in f=p.defaultProps,f)x[_]===void 0&&(x[_]=f[_]);return{$$typeof:r,type:p,key:k,ref:R,props:x,_owner:s.current}}return Oe.Fragment=n,Oe.jsx=d,Oe.jsxs=d,Oe}var nt={};/**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
42
42
  *
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var tr;function wr(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=z.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,B=!1,ht=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function _t(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===_||e===m||ht||e===A||Ee||je||B||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function bt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return bt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var I=Object.assign,Y=0,Te,Me,Ne,ze,Be,Ie,Le;function De(){}De.__reactDisabledLog=!0;function vt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,ze=console.error,Be=console.group,Ie=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function yt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Te}),info:I({},e,{value:Me}),warn:I({},e,{value:Ne}),error:I({},e,{value:ze}),group:I({},e,{value:Be}),groupCollapsed:I({},e,{value:Ie}),groupEnd:I({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=z.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
48
- `+fe+e}}var de=!1,Q;{var xt=typeof WeakMap=="function"?WeakMap:Map;Q=new xt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,vt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
47
+ */var rr;function wr(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=B.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,I=!1,_t=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function bt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===m||e===_||_t||e===R||Ee||je||I||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var z=Object.assign,Y=0,Te,Me,Ne,Be,Ie,ze,Le;function De(){}De.__reactDisabledLog=!0;function yt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,Be=console.error,Ie=console.group,ze=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function xt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:Te}),info:z({},e,{value:Me}),warn:z({},e,{value:Ne}),error:z({},e,{value:Be}),group:z({},e,{value:Ie}),groupCollapsed:z({},e,{value:ze}),groupEnd:z({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
48
+ `+fe+e}}var de=!1,Q;{var kt=typeof WeakMap=="function"?WeakMap:Map;Q=new kt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,yt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
49
49
  `),O=u.stack.split(`
50
50
  `),S=g.length-1,E=O.length-1;S>=1&&E>=0&&g[S]!==O[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==O[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==O[E]){var P=`
51
- `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,yt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function kt(e,o,a){return Ue(e,!1)}function wt(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,wt(e));if(typeof e=="string")return Z(e);switch(e){case _:return Z("Suspense");case m:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=z.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function St(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var Et=Array.isArray;function pe(e){return Et(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Rt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(Rt(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),qe(e)}var Ve=z.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function Ot(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function $t(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Pt(e,o){typeof e.ref=="string"&&Ve.current}function Ct(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Tt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Mt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Nt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),$t(o)&&(Ye(o.key),g=""+o.key),Ot(o)&&(O=o.ref,Pt(o));for(y in o)V.call(o,y)&&!At.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Ct(h,E),O&&Tt(h,E)}return Mt(e,g,O,b,u,Ve.current,h)}}var ge=z.ReactCurrentOwner,Ke=z.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
51
+ `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,xt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function wt(e,o,a){return Ue(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,St(e));if(typeof e=="string")return Z(e);switch(e){case m:return Z("Suspense");case _:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return wt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=B.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function Et(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var jt=Array.isArray;function pe(e){return jt(e)}function Rt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function At(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),qe(e)}var Ve=B.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function $t(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ve.current}function Tt(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Mt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Nt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),Pt(o)&&(Ye(o.key),g=""+o.key),$t(o)&&(O=o.ref,Ct(o));for(y in o)V.call(o,y)&&!Ot.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Tt(h,E),O&&Mt(h,E)}return Nt(e,g,O,b,u,Ve.current,h)}}var ge=B.ReactCurrentOwner,Ke=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function zt(e){return""}var Xe={};function Bt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
53
+ Check the render method of \``+e+"`."}return""}}function It(e){return""}var Xe={};function zt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
54
54
 
55
- Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];me(u)&&Ze(u,o)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)me(h.value)&&Ze(h.value,o)}}}function It(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);St(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=_t(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=zt();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Nt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qe(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Yt){return Yt!=="key"}),_e=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+_e]){var qt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=zt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];_e(u)&&Ze(u,o)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)_e(h.value)&&Ze(h.value,o)}}}function Lt(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);Et(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=bt(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=It();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Bt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Qe(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Vt){return Vt!=="key"}),me=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+me]){var Yt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
56
56
  let props = %s;
57
57
  <%s {...props} />
58
58
  React keys must be passed directly to JSX without using spread:
59
59
  let props = %s;
60
- <%s key={someKey} {...props} />`,_e,L,qt,L),et[L+_e]=!0}}return e===i?Lt(E):It(E),E}}function Dt(e,o,a){return tt(e,o,a,!0)}function Ut(e,o,a){return tt(e,o,a,!1)}var Ft=Ut,Wt=Dt;nt.Fragment=i,nt.jsx=Ft,nt.jsxs=Wt}()),nt}process.env.NODE_ENV==="production"?kr():wr();const Sr="0.0.46",rr={version:Sr},K={},D={module:"",v:rr.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function H(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}H().elcrm||(H().elcrm={}),Object.assign(H().elcrm,{router:rr.version});function J(t){var r,n,i,s;const l=H();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(n=l.ROUTER_PARAMS)==null?void 0:n.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};l.ROUTER_PARAMS={...D,...t,prev:d}}}function R(){return H().ROUTER_PARAMS||D}function ie(t){const r=H();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(n=>{r.ROUTER_PARAMS.LISTENER[n]||(r.ROUTER_PARAMS.LISTENER[n]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[n])||(r.ROUTER_PARAMS.LISTENER[n]=[r.ROUTER_PARAMS.LISTENER[n]]),r.ROUTER_PARAMS.LISTENER[n].includes(t[n])||r.ROUTER_PARAMS.LISTENER[n].push(t[n])})}function q(){var t;const r=H();let n=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return n||(n={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=n:D.LISTENER=n),new Proxy(n,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function or(t,r){const n=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===n)return s;return null}function ut(t){const{basePath:r=".",devExtensions:n=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function Er(t){const{basePath:r=".",modules:n,pages:i}=t||{};return s=>{if(n){const d=or(s,n);if(d)return d()}if(i){const d=or(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function nr(t=".",r,n){return r||n?Er({basePath:t,modules:r,pages:n}):ut({basePath:t})}function jr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=re.deCode(r),!r)return!1;J({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else J({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?R().page:R().auth,module:R().module});return!0}function ar(){return R().page}function ir(){return R().module||""}function ft(){return R().tab}function sr(){return R().id}function Rr(t){let r=s=>(J({page:s}),s);const[n,i]=w.useState(ar()||t&&r(t)||R().page);return w.useEffect(()=>{const s=l=>{i(l)};return ie({page:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const _=f.indexOf(s);_>-1&&f.splice(_,1)}}}},[]),n}function Ar(t,r=!0,n={}){J({page:t,...n}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&q().page(t)}function Or(t){return R().page===t}function $r(){return R().prev}function Pr(t,r){const[n,i]=w.useState(ir()||t||R().module);return w.useEffect(()=>(ie({module:i}),()=>{const s=q();s.module===i&&delete s.module}),[]),n}function Cr(t,r=!0){J({module:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&q().module(t)}function Tr(t){return R().module===t}function Mr(t,r){if(typeof t!="function"){const[n,i]=w.useState(!r),[s,l]=w.useState(t||ft());return ie({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,n]}else ie({tabs:t})}function Nr(t){let r=s=>(J({tab:s}),s);const[n,i]=w.useState(ft()||t&&r(t)||R().tab);return w.useEffect(()=>{const s=l=>{i(l)};return ie({tabs:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const _=f.indexOf(s);_>-1&&f.splice(_,1)}}}},[]),n}async function zr(t,r=!0){J({tab:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&(q().tabs&&q().tabs(t))}function Br(t){return R().tab===t}function Ir(t){if(typeof t!="function"){const[r,n]=w.useState(t||sr());return w.useEffect(()=>{const i=s=>{n(s)};return ie({id:i}),()=>{const s=q();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(ie({id:t}),()=>{var r,n;const i=H();if((n=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&n.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function Lr(t){}async function Dr(t,r=!0){J({id:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&q().id(t)}function Ur(t){return Number(R().id)===t}async function Fr(t){var r,n,i,s,l,d,p,f;const{page:_,module:m,tab:x,id:k}=t;_!==void 0&&(K.page=_),m!==void 0&&(K.module=m),x!==void 0&&(K.tab=x),k!==void 0&&(K.id=k),J({...K}),k!==void 0&&((n=(r=q()).id)==null||n.call(r,k)),x!==void 0&&((s=(i=q()).tabs)==null||s.call(i,x)),m!==void 0&&((d=(l=q()).module)==null||d.call(l,m)),_!==void 0&&((f=(p=q()).page)==null||f.call(p,_)),sessionStorage.setItem(R().STORAGE,re.enCode(R()))}const ve={Reset(){K.id=0,K.tab="",K.page=R().page,K.module=R().module},Default({module:t=R().module,page:r=R().page,auth:n=R().auth,debug:i=R().debug,dir:s=R().dir||".",importModules:l,modules:d,pages:p,glob:f}){let _=l,m=d,x=p;f?(m=typeof d=="object"?d:f,x=typeof p=="object"?p:f):(m=m||f,x=x||f),!_&&(m||x)?!f&&(typeof m=="string"||typeof x=="string")?_=ut({basePath:s}):_=nr(s,m,x):_||(_=ut({basePath:s})),J({page:r,module:t,auth:n,debug:i,dir:s,importModules:_}),jr()},createImportModules:nr,getImportModules:()=>R().importModules,usePage:Rr,setPage:Ar,getPage:ar,isPage:Or,getBack:$r,useModule:Pr,setModule:Cr,getModule:ir,isModule:Tr,useTabs:Mr,useTab:Nr,setTabs:zr,getTabs:ft,isTabs:Br,useId:Ir,subId:Lr,setId:Dr,getId:sr,isId:Ur,navigate:Fr},se={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let at={};function Wr(){const[t,r]=w.useState([]);return at.set=n=>{r([...t,n])},at.del=n=>{t.forEach((i,s)=>{i.key===n&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:se.n,children:t.map(n=>n.item)})}function qr(t){let r=new Date().getTime();t.key=r,at.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[n]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),at.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":l=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:l="icon fa fa-exclamation-circle";break}const d={error:se.e,success:se.s,warning:se.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:se.i+d[r.type]+` ${r.thema!==void 0?se.h:""}`,"data-status":n,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:se.t,children:r.text})]})})}let le={Send:qr,Init:Wr};const oe={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ne={is:!1,MainButton:{},BackButton:{}};let M={};M.dark={"--tg-color-scheme":"dark","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},M.light={"--tg-color-scheme":"light","--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},M.users={"--tg-color-scheme":"users","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[n,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,_]=w.useState(!1);ne.is=!0,ne.MainButton.set=r,ne.BackButton.set=i,w.useEffect(()=>{var k;M[s]["--tg-theme-bg-color-alpha"]=M[s]["--tg-theme-bg-color"]+"b3",M[s]["--tg-theme-secondary-bg-color-alpha"]=M[s]["--tg-theme-secondary-bg-color"]+"d3",M[s]["--tg-theme-bg-color-alpha-25"]=M[s]["--tg-theme-bg-color"]+"40",M[s]["--tg-theme-secondary-bg-color-alpha-25"]=M[s]["--tg-theme-secondary-bg-color"]+"40";for(let A in M[s])document.documentElement.style.setProperty(A,M[s][A]);((k=X.safeAreaInset)==null?void 0:k.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let A in M[k])document.documentElement.style.setProperty(A,M[k][A]),document.documentElement.setAttribute("data-color-scheme",k);l(k),p(!1)},x=()=>{p(!1),_(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.d,children:[n===!1?c.jsx("div",{className:oe.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;n.page===void 0?(k=n.callback)==null||k.call(n):ve.setPage(n.page)},className:oe.b,children:"Назад"}),c.jsx("div",{className:oe.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(le.Init,{}),t&&c.jsx("div",{className:oe.m,children:c.jsx("button",{onClick:()=>{t.page&&ve.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:oe.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:x,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>m("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>p(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:_}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",X.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",X.themeParams.bg_color+"b3"),((t=X.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(le.Init,{})})},Hr=({setAuthorization:t})=>{let r={},n=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:oe.a,children:c.jsxs("div",{className:oe.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:n,children:" Сохранить "})]})})},lr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:n=!0})=>c.jsx("div",{className:[lr.p,n&&lr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(n=>n!==void 0).join(" "),children:t}),ce={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},Xr=({items:t})=>{const r=i=>{ve.setPage(i)},n=i=>{X.openTelegramLink(i)};return c.jsx("div",{className:ce.m,children:t.map(i=>c.jsx("div",{className:ce.g,children:i.items.map((s,l)=>c.jsxs("div",{className:ce.i,onClick:()=>{s.link&&n(s.link),s.page&&r(s.page),s.callback&&s.callback()},children:[c.jsxs("div",{className:ce.c,children:[c.jsx("span",{className:ce.l,style:{background:s.color},children:s.icon}),s.title,s.count&&c.jsx("span",{className:ce.n,children:s.count})]}),c.jsx("span",{className:ce.a,children:"›"})]},l))},i.id))})},G={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},it={};function Zr({children:t,icon:r,iconBadge:n=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,_]=w.useState(!1),[m,x]=w.useState(null);w.useEffect(()=>{let A=document.querySelector(".p_sb");return A||(A=document.createElement("div"),A.className="_p_sb",document.body.appendChild(A)),x(A),it[p]=C=>_(C),()=>{A&&A.parentNode&&A.parentNode.removeChild(A)}},[]);const k=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:G.o,onClick:()=>_(!1)}),c.jsxs("div",{className:ae(G.m,d==="left"?G.l:G.r,f&&G.x,s),children:[c.jsxs("div",{className:G.h,children:[i&&c.jsx("h3",{className:G.t,children:i}),c.jsxs("svg",{onClick:()=>_(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:G.c,children:l==="list"?c.jsx("ul",{className:G.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>_(!0),className:"bage","data-count":n,children:r}),m&&pr.createPortal(k,m)]})}const Qr=(t,r)=>{var n;(n=it[t])==null||n.call(it,r)};let $e=()=>{};const cr=({children:t,title:r,isOverlay:n=!0,footer:i=!0,className:s,onOpen:l})=>{const[d,p]=w.useState(!1);return $e=()=>{p(!0),setTimeout(()=>{var f;l==null||l(!1),(f=xe==null?void 0:xe.onClose)==null||f.call(xe)},300)},c.jsx("div",{className:`footer-menu-overlay ${n?"is-overlay":""} ${d?"closing":""} `,onClick:$e,children:c.jsxs("div",{className:`footer-menu-popup-book ${d?"closing":""} ${s||""} ${i?"footer":""}`,onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:r}),c.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),t]})})},ye={h:"_h_xpmv7_1",r:"_r_xpmv7_61",c:"_c_xpmv7_64",x:"_x_xpmv7_67",b:"_b_xpmv7_71",a:"_a_xpmv7_107",draw:"_draw_xpmv7_1"},eo={b:"_b_r6m8n_1"},to=({className:t,value:r})=>c.jsx("div",{className:[eo.b,t].filter(n=>n!==void 0).join(" "),children:r}),xe=[],ur=(t,r)=>t.findIndex(n=>(n==null?void 0:n.page)===r),ro=({actions:t,children:r,className:n,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[_,m]=w.useState(null),[x,k]=w.useState(l?ur(t||[],l):0);xe.onClose=()=>{m(null),k(l?ur(t||[],l):0)},w.useEffect(()=>{if(!s)return;const Se=document.querySelectorAll("[contenteditable]"),Ee=()=>{const B=document.querySelector("footer");B&&B.classList.remove(ye.x)},je=()=>{const B=document.querySelector("footer");B&&B.classList.add(ye.x)};return Se.forEach(B=>{B.addEventListener("focus",je,!0),B.addEventListener("blur",Ee,!0)}),()=>{Se.forEach(B=>{B.removeEventListener("focus",je,!0),B.removeEventListener("blur",Ee,!0)})}},[]);const[A,C]=w.useState(!1),ke=()=>{C(!0)},we=()=>{C(!1)},z=()=>{C(!1)},j={};return d==="liquid-glass"&&(j.onMouseDown=ke,j.onMouseUp=we,j.onMouseLeave=z,j.onTouchStart=ke,j.onTouchEnd=we),c.jsxs(c.Fragment,{children:[_,c.jsxs("footer",{"data-style":d,"data-scale":A?"true":"false",...j,className:ae(ye.h,ye[f==="row"?"r":"c"],n),children:[r,t&&c.jsx(oo,{actions:t,activeIndex:x,setActiveIndex:k,onPageChange:p,setComponent:m,actual:i})]})]})},oo=({actions:t,activeIndex:r,setActiveIndex:n,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:ye.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(n(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>n(p)),d.component&&(r===p?$e():(s(d.component),n(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(to,{value:d.badge})]},p)),l&&c.jsx("div",{className:ye.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},dt={};function no({children:t,name:r,onClose:n,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,_=()=>{p(!1),setTimeout(()=>{gt(f||!1),n==null||n()},300)};dt[r]={onClose:_,onOpen:()=>{p(!0)}},gt({callback:_});const m=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(m)}},[i]),i?c.jsxs("div",{className:ae(st.w,d&&st.v,s&&st.s),children:[c.jsx("div",{className:st.n}),t]}):""}const ao=(t,r)=>{var n,i;r?(n=dt[t])==null||n.onOpen():(i=dt[t])==null||i.onClose()},fr={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function io({className:t,children:r,onScrollEnd:n,offset:i=100,isLoading:s,isScrollBar:l=!1}){const[d,p]=w.useState(s||!1);w.useEffect(()=>{p(s||!1)},[s]);let f={onScroll:_=>{const{scrollTop:m,scrollHeight:x,clientHeight:k}=_.currentTarget;m+k>=x-i&&!d&&(p(!0),n==null||n())}};return c.jsx("div",{...f,className:ae(fr.s,!l&&fr.n,t),children:r})}const pt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function so({children:t,className:r,position:n="center",title:i}){let s="";return n==="left"?s=pt.l:n==="right"&&(s=pt.r),c.jsxs("div",{className:ae(pt.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const N={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.state.length!==1&&N.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.listen.push(()=>{var n;let r=N.state.pop();N.prev=ve.getPage(),r.page!==void 0?ve.setPage(r.page):(n=r.callback)==null||n.call(r)}),X.BackButton.onClick(N.listen[0]))}},ae=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var n;return((n=t.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=n=>{if(ne.is)return n({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}n(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(n,i,s)=>{var l,d;i!==void 0?(le.Send({type:n,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(le.Send(n),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(n.type))},Error:n=>{var i;le.Send({type:"error",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:n=>{var i;le.Send({type:"success",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:n=>{var i;le.Send({type:"warning",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ro,t.BottomSheet=cr,t.toggleBottomSheet=$e,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=no,t.AppBar=so,t.SideBarController=Qr,t.SidePanelController=ao,t.Scroll=io,t.Modal=ct,t.Menu=Xr,t.MainButton={callback:[],set:n=>{ne.is?ne.MainButton.set(n):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof n=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=n.text,n.color&&(t.WebApp.MainButton.color=n.color),n.textColor&&(t.WebApp.MainButton.textColor=n.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,t.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{N.prev&&(0,t.BackButton)(N.prev)},t.BackButtonState=()=>N.state,t.BackButton=n=>{ne.is?ne.BackButton.set(n):(N.state.push(n),N.router(n))}})(v.default||(v.default={}));const lo=v.default.TabBar,co=cr,gt=v.default.BackButton,uo=v.default.BackButtonPrev,dr=v.default.BackButtonState,fo=v.default.Notice,po=v.default.SafeArea,go=v.default.Loading,ho=v.default.Menu,mo=v.default.SidePanel,_o=v.default.Scroll,bo=v.default.AppBar,vo=v.default.Sidebar,yo=v.default.Location,xo=v.default.SidePanelController,ko=v.default.SideBarController,{Header:wo,toggleBottomSheet:So,Modal:Eo,MainButton:jo,WebApp:X,getUser:Ro}=v.default;v.AppBar=bo,v.BackButton=gt,v.BackButtonPrev=uo,v.BackButtonState=dr,v.BottomSheet=co,v.Header=wo,v.Loading=go,v.Location=yo,v.MainButton=jo,v.Menu=ho,v.Modal=Eo,v.Notice=fo,v.SafeArea=po,v.Scroll=_o,v.SideBarController=ko,v.SidePanel=mo,v.SidePanelController=xo,v.Sidebar=vo,v.TabBar=lo,v.WebApp=X,v.clsx=ae,v.getUser=Ro,v.toggleBottomSheet=So,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,me,L,Yt,L),et[L+me]=!0}}return e===i?Dt(E):Lt(E),E}}function Ut(e,o,a){return tt(e,o,a,!0)}function Ft(e,o,a){return tt(e,o,a,!1)}var Wt=Ft,qt=Ut;nt.Fragment=i,nt.jsx=Wt,nt.jsxs=qt}()),nt}process.env.NODE_ENV==="production"?kr():wr();const Sr="0.0.46",or={version:Sr},K={},D={module:"",v:or.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function H(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}H().elcrm||(H().elcrm={}),Object.assign(H().elcrm,{router:or.version});function J(t){var r,n,i,s;const l=H();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(n=l.ROUTER_PARAMS)==null?void 0:n.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};l.ROUTER_PARAMS={...D,...t,prev:d}}}function A(){return H().ROUTER_PARAMS||D}function ie(t){const r=H();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(n=>{r.ROUTER_PARAMS.LISTENER[n]||(r.ROUTER_PARAMS.LISTENER[n]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[n])||(r.ROUTER_PARAMS.LISTENER[n]=[r.ROUTER_PARAMS.LISTENER[n]]),r.ROUTER_PARAMS.LISTENER[n].includes(t[n])||r.ROUTER_PARAMS.LISTENER[n].push(t[n])})}function q(){var t;const r=H();let n=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return n||(n={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=n:D.LISTENER=n),new Proxy(n,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function nr(t,r){const n=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===n)return s;return null}function ut(t){const{basePath:r=".",devExtensions:n=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function Er(t){const{basePath:r=".",modules:n,pages:i}=t||{};return s=>{if(n){const d=nr(s,n);if(d)return d()}if(i){const d=nr(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function ar(t=".",r,n){return r||n?Er({basePath:t,modules:r,pages:n}):ut({basePath:t})}function jr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=re.deCode(r),!r)return!1;J({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else J({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function ft(){return A().tab}function lr(){return A().id}function Rr(t){let r=s=>(J({page:s}),s);const[n,i]=w.useState(ir()||t&&r(t)||A().page);return w.useEffect(()=>{const s=l=>{i(l)};return ie({page:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}function Ar(t,r=!0,n={}){J({page:t,...n}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().page(t)}function Or(t){return A().page===t}function $r(){return A().prev}function Pr(t,r){const[n,i]=w.useState(sr()||t||A().module);return w.useEffect(()=>(ie({module:i}),()=>{const s=q();s.module===i&&delete s.module}),[]),n}function Cr(t,r=!0){J({module:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().module(t)}function Tr(t){return A().module===t}function Mr(t,r){if(typeof t!="function"){const[n,i]=w.useState(!r),[s,l]=w.useState(t||ft());return ie({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,n]}else ie({tabs:t})}function Nr(t){let r=s=>(J({tab:s}),s);const[n,i]=w.useState(ft()||t&&r(t)||A().tab);return w.useEffect(()=>{const s=l=>{i(l)};return ie({tabs:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}async function Br(t,r=!0){J({tab:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&(q().tabs&&q().tabs(t))}function Ir(t){return A().tab===t}function zr(t){if(typeof t!="function"){const[r,n]=w.useState(t||lr());return w.useEffect(()=>{const i=s=>{n(s)};return ie({id:i}),()=>{const s=q();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(ie({id:t}),()=>{var r,n;const i=H();if((n=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&n.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function Lr(t){}async function Dr(t,r=!0){J({id:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().id(t)}function Ur(t){return Number(A().id)===t}async function Fr(t){var r,n,i,s,l,d,p,f;const{page:m,module:_,tab:x,id:k}=t;m!==void 0&&(K.page=m),_!==void 0&&(K.module=_),x!==void 0&&(K.tab=x),k!==void 0&&(K.id=k),J({...K}),k!==void 0&&((n=(r=q()).id)==null||n.call(r,k)),x!==void 0&&((s=(i=q()).tabs)==null||s.call(i,x)),_!==void 0&&((d=(l=q()).module)==null||d.call(l,_)),m!==void 0&&((f=(p=q()).page)==null||f.call(p,m)),sessionStorage.setItem(A().STORAGE,re.enCode(A()))}const ve={Reset(){K.id=0,K.tab="",K.page=A().page,K.module=A().module},Default({module:t=A().module,page:r=A().page,auth:n=A().auth,debug:i=A().debug,dir:s=A().dir||".",importModules:l,modules:d,pages:p,glob:f}){let m=l,_=d,x=p;f?(_=typeof d=="object"?d:f,x=typeof p=="object"?p:f):(_=_||f,x=x||f),!m&&(_||x)?!f&&(typeof _=="string"||typeof x=="string")?m=ut({basePath:s}):m=ar(s,_,x):m||(m=ut({basePath:s})),J({page:r,module:t,auth:n,debug:i,dir:s,importModules:m}),jr()},createImportModules:ar,getImportModules:()=>A().importModules,usePage:Rr,setPage:Ar,getPage:ir,isPage:Or,getBack:$r,useModule:Pr,setModule:Cr,getModule:sr,isModule:Tr,useTabs:Mr,useTab:Nr,setTabs:Br,getTabs:ft,isTabs:Ir,useId:zr,subId:Lr,setId:Dr,getId:lr,isId:Ur,navigate:Fr},se={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let at={};function Wr(){const[t,r]=w.useState([]);return at.set=n=>{r([...t,n])},at.del=n=>{t.forEach((i,s)=>{i.key===n&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:se.n,children:t.map(n=>n.item)})}function qr(t){let r=new Date().getTime();t.key=r,at.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[n]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),at.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":l=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":l=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:l="icon fa fa-exclamation-circle";break}const d={error:se.e,success:se.s,warning:se.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:se.i+d[r.type]+` ${r.thema!==void 0?se.h:""}`,"data-status":n,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:se.t,children:r.text})]})})}let le={Send:qr,Init:Wr};const oe={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ne={is:!1,MainButton:{},BackButton:{}};let M={};M.dark={"--tg-color-scheme":"dark","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},M.light={"--tg-color-scheme":"light","--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},M.users={"--tg-color-scheme":"users","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[n,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,m]=w.useState(!1);ne.is=!0,ne.MainButton.set=r,ne.BackButton.set=i,w.useEffect(()=>{var k;M[s]["--tg-theme-bg-color-alpha"]=M[s]["--tg-theme-bg-color"]+"b3",M[s]["--tg-theme-secondary-bg-color-alpha"]=M[s]["--tg-theme-secondary-bg-color"]+"d3",M[s]["--tg-theme-bg-color-alpha-25"]=M[s]["--tg-theme-bg-color"]+"40",M[s]["--tg-theme-secondary-bg-color-alpha-25"]=M[s]["--tg-theme-secondary-bg-color"]+"40";for(let R in M[s])document.documentElement.style.setProperty(R,M[s][R]);((k=X.safeAreaInset)==null?void 0:k.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let _=k=>{for(let R in M[k])document.documentElement.style.setProperty(R,M[k][R]),document.documentElement.setAttribute("data-color-scheme",k);l(k),p(!1)},x=()=>{p(!1),m(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.d,children:[n===!1?c.jsx("div",{className:oe.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;n.page===void 0?(k=n.callback)==null||k.call(n):ve.setPage(n.page)},className:oe.b,children:"Назад"}),c.jsx("div",{className:oe.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(le.Init,{}),t&&c.jsx("div",{className:oe.m,children:c.jsx("button",{onClick:()=>{t.page&&ve.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:oe.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:x,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>_("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>p(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:m}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",X.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",X.themeParams.bg_color+"b3"),((t=X.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(le.Init,{})})},Hr=({setAuthorization:t})=>{let r={},n=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:oe.a,children:c.jsxs("div",{className:oe.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:n,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:n=!0})=>c.jsx("div",{className:[cr.p,n&&cr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(n=>n!==void 0).join(" "),children:t}),ce={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},Xr=({items:t})=>{const r=i=>{ve.setPage(i)},n=i=>{X.openTelegramLink(i)};return c.jsx("div",{className:ce.m,children:t.map(i=>c.jsx("div",{className:ce.g,children:i.items.map((s,l)=>c.jsxs("div",{className:ce.i,onClick:()=>{s.link&&n(s.link),s.page&&r(s.page),s.callback&&s.callback()},children:[c.jsxs("div",{className:ce.c,children:[c.jsx("span",{className:ce.l,style:{background:s.color},children:s.icon}),s.title,s.count&&c.jsx("span",{className:ce.n,children:s.count})]}),c.jsx("span",{className:ce.a,children:"›"})]},l))},i.id))})},G={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},it={};function Zr({children:t,icon:r,iconBadge:n=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,m]=w.useState(!1),[_,x]=w.useState(null);w.useEffect(()=>{let R=document.querySelector(".p_sb");return R||(R=document.createElement("div"),R.className="_p_sb",document.body.appendChild(R)),x(R),it[p]=C=>m(C),()=>{R&&R.parentNode&&R.parentNode.removeChild(R)}},[]);const k=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:G.o,onClick:()=>m(!1)}),c.jsxs("div",{className:ae(G.m,d==="left"?G.l:G.r,f&&G.x,s),children:[c.jsxs("div",{className:G.h,children:[i&&c.jsx("h3",{className:G.t,children:i}),c.jsxs("svg",{onClick:()=>m(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:G.c,children:l==="list"?c.jsx("ul",{className:G.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>m(!0),className:"bage","data-count":n,children:r}),_&&pr.createPortal(k,_)]})}const Qr=(t,r)=>{var n;(n=it[t])==null||n.call(it,r)};let $e=()=>{};const ur=({children:t,title:r,isOverlay:n=!0,footer:i=!0,className:s,onOpen:l})=>{const[d,p]=w.useState(!1);return $e=()=>{p(!0),setTimeout(()=>{var f;l==null||l(!1),(f=xe==null?void 0:xe.onClose)==null||f.call(xe)},300)},c.jsx("div",{className:`footer-menu-overlay ${n?"is-overlay":""} ${d?"closing":""} `,onClick:$e,children:c.jsxs("div",{className:`footer-menu-popup-book ${d?"closing":""} ${s||""} ${i?"footer":""}`,onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:r}),c.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),t]})})},ye={h:"_h_xfork_1",r:"_r_xfork_53",c:"_c_xfork_56",x:"_x_xfork_59",b:"_b_xfork_63",a:"_a_xfork_99",draw:"_draw_xfork_1"},eo={b:"_b_r6m8n_1"},to=({className:t,value:r})=>c.jsx("div",{className:[eo.b,t].filter(n=>n!==void 0).join(" "),children:r}),xe=[],fr=(t,r)=>t.findIndex(n=>(n==null?void 0:n.page)===r),ro=({actions:t,children:r,className:n,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[m,_]=w.useState(null),[x,k]=w.useState(l?fr(t||[],l):0);xe.onClose=()=>{_(null),k(l?fr(t||[],l):0)},w.useEffect(()=>{if(!s)return;const Se=document.querySelectorAll("[contenteditable]"),Ee=()=>{const I=document.querySelector("footer");I&&I.classList.remove(ye.x)},je=()=>{const I=document.querySelector("footer");I&&I.classList.add(ye.x)};return Se.forEach(I=>{I.addEventListener("focus",je,!0),I.addEventListener("blur",Ee,!0)}),()=>{Se.forEach(I=>{I.removeEventListener("focus",je,!0),I.removeEventListener("blur",Ee,!0)})}},[]);const[R,C]=w.useState(!1),ke=()=>{C(!0)},we=()=>{C(!1)},B=()=>{C(!1)},j={};return d==="liquid-glass"&&(j.onMouseDown=ke,j.onMouseUp=we,j.onMouseLeave=B,j.onTouchStart=ke,j.onTouchEnd=we),c.jsxs(c.Fragment,{children:[m,c.jsxs("footer",{"data-style":d,"data-scale":R?"true":"false",...j,className:ae(ye.h,ye[f==="row"?"r":"c"],n),children:[r,t&&c.jsx(oo,{actions:t,activeIndex:x,setActiveIndex:k,onPageChange:p,setComponent:_,actual:i})]})]})},oo=({actions:t,activeIndex:r,setActiveIndex:n,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:ye.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(n(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>n(p)),d.component&&(r===p?$e():(s(d.component),n(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(to,{value:d.badge})]},p)),l&&c.jsx("div",{className:ye.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},dt={};function no({children:t,name:r,onClose:n,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,m=()=>{p(!1),setTimeout(()=>{ht(f||!1),n==null||n()},300)};dt[r]={onClose:m,onOpen:()=>{p(!0)}},ht({callback:m});const _=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(_)}},[i]),i?c.jsxs("div",{className:ae(st.w,d&&st.v,s&&st.s),children:[c.jsx("div",{className:st.n}),t]}):""}const ao=(t,r)=>{var n,i;r?(n=dt[t])==null||n.onOpen():(i=dt[t])==null||i.onClose()},pt={s:"_s_3m6y6_3",n:"_n_3m6y6_14",f:"_f_3m6y6_29"};function io({className:t,children:r,onScrollEnd:n,offset:i=100,isLoading:s,fullscreen:l=!1,isScrollBar:d=!1}){const[p,f]=w.useState(s||!1);w.useEffect(()=>{f(s||!1)},[s]);let m={onScroll:_=>{const{scrollTop:x,scrollHeight:k,clientHeight:R}=_.currentTarget;x+R>=k-i&&!p&&(f(!0),n==null||n())}};return c.jsx("div",{...m,className:ae(pt.s,!d&&pt.n,l&&pt.f,t),children:r})}const gt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function so({children:t,className:r,position:n="center",title:i}){let s="";return n==="left"?s=gt.l:n==="right"&&(s=gt.r),c.jsxs("div",{className:ae(gt.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const N={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.state.length!==1&&N.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.listen.push(()=>{var n;let r=N.state.pop();N.prev=ve.getPage(),r.page!==void 0?ve.setPage(r.page):(n=r.callback)==null||n.call(r)}),X.BackButton.onClick(N.listen[0]))}},ae=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var n;return((n=t.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=n=>{if(ne.is)return n({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}n(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(n,i,s)=>{var l,d;i!==void 0?(le.Send({type:n,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(le.Send(n),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(n.type))},Error:n=>{var i;le.Send({type:"error",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:n=>{var i;le.Send({type:"success",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:n=>{var i;le.Send({type:"warning",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ro,t.BottomSheet=ur,t.toggleBottomSheet=$e,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=no,t.AppBar=so,t.SideBarController=Qr,t.SidePanelController=ao,t.Scroll=io,t.Modal=ct,t.Menu=Xr,t.MainButton={callback:[],set:n=>{ne.is?ne.MainButton.set(n):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof n=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=n.text,n.color&&(t.WebApp.MainButton.color=n.color),n.textColor&&(t.WebApp.MainButton.textColor=n.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,t.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{N.prev&&(0,t.BackButton)(N.prev)},t.BackButtonState=()=>N.state,t.BackButton=n=>{ne.is?ne.BackButton.set(n):(N.state.push(n),N.router(n))}})(v.default||(v.default={}));const lo=v.default.TabBar,co=ur,ht=v.default.BackButton,uo=v.default.BackButtonPrev,dr=v.default.BackButtonState,fo=v.default.Notice,po=v.default.SafeArea,go=v.default.Loading,ho=v.default.Menu,_o=v.default.SidePanel,mo=v.default.Scroll,bo=v.default.AppBar,vo=v.default.Sidebar,yo=v.default.Location,xo=v.default.SidePanelController,ko=v.default.SideBarController,{Header:wo,toggleBottomSheet:So,Modal:Eo,MainButton:jo,WebApp:X,getUser:Ro}=v.default;v.AppBar=bo,v.BackButton=ht,v.BackButtonPrev=uo,v.BackButtonState=dr,v.BottomSheet=co,v.Header=wo,v.Loading=go,v.Location=yo,v.MainButton=jo,v.Menu=ho,v.Modal=Eo,v.Notice=fo,v.SafeArea=po,v.Scroll=mo,v.SideBarController=ko,v.SidePanel=_o,v.SidePanelController=xo,v.Sidebar=vo,v.TabBar=lo,v.WebApp=X,v.clsx=ae,v.getUser=Ro,v.toggleBottomSheet=So,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.133",
3
+ "version": "0.0.135",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",