@elcrm/telegram 0.0.129 → 0.0.131

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(x,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(x=typeof globalThis<"u"?globalThis:x||self,S((x.elCRM=x.elCRM||{},x.elCRM.components={}),x.React,x.ReactDOM))})(this,function(x,S,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_4aije_1){--tg-offset-bottom: 60px}._h_4aije_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_4aije_1._r_4aije_23{flex-direction:row}._h_4aije_1._c_4aije_26{flex-direction:column}._h_4aije_1._x_4aije_29{opacity:0;visibility:hidden}._h_4aije_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_4aije_1 div[data-active=true]{color:var(--tg-theme-button-color)}._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 rt={exports:{}},ye={};/**
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_1nuzq_1){--tg-offset-bottom: 60px}._h_1nuzq_1{--tab-bar-margin: 0 auto;--tab-bar-bg: var(--tg-theme-secondary-bg-color-alpha);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);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1nuzq_1[data-scale=true]{transform:scale(1.02)}._h_1nuzq_1[data-style=liquid-glass]{--tg-safe-area-inset-bottom: 0px;--tg-content-safe-area-inset-bottom: 3px;--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 10px;--tab-bar-button-padding: 5px;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_1nuzq_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_1nuzq_1._r_1nuzq_54{flex-direction:row}._h_1nuzq_1._c_1nuzq_57{flex-direction:column}._h_1nuzq_1._x_1nuzq_60{opacity:0;visibility:hidden}._h_1nuzq_1 ._b_1nuzq_64{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_1nuzq_1 ._b_1nuzq_64 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_1nuzq_1 ._b_1nuzq_64 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_1nuzq_1 ._b_1nuzq_64 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1nuzq_1 ._b_1nuzq_64 span{padding-top:2px;font-size:10px;font-weight:400}._h_1nuzq_1 ._b_1nuzq_64 ._a_1nuzq_100{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_1nuzq_1{to{stroke-dashoffset:0}}._h_1nuzq_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_1nuzq_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={};/**
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 ye;Ht=1;var t=S,o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function p(g,f,b){var h,_={},y=null,R=null;b!==void 0&&(y=""+b),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(R=f.ref);for(h in f)s.call(f,h)&&!l.hasOwnProperty(h)&&(_[h]=f[h]);if(g&&g.defaultProps)for(h in f=g.defaultProps,f)_[h]===void 0&&(_[h]=f[h]);return{$$typeof:o,type:g,key:y,ref:R,props:_,_owner:i.current}}return ye.Fragment=n,ye.jsx=p,ye.jsxs=p,ye}var xe={};/**
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,m){var _,x={},k=null,A=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(A=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:A,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=S,o=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),$=Symbol.iterator,ct="@@iterator";function ut(e){if(e===null||typeof e!="object")return null;var r=$&&e[$]||e[ct];return typeof r=="function"?r:null}var D=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];ft("error",e,a)}}function ft(e,r,a){{var u=D.ReactDebugCurrentFrame,v=u.getStackAddendum();v!==""&&(r+="%s",a=a.concat([v]));var k=a.map(function(m){return String(m)});k.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,k)}}var dt=!1,pt=!1,gt=!1,ht=!1,mt=!1,we;we=Symbol.for("react.module.reference");function _t(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===l||mt||e===i||e===b||e===h||ht||e===R||dt||pt||gt||typeof e=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===_||e.$$typeof===p||e.$$typeof===g||e.$$typeof===f||e.$$typeof===we||e.getModuleId!==void 0))}function bt(e,r,a){var u=e.displayName;if(u)return u;var v=r.displayName||r.name||"";return v!==""?a+"("+v+")":a}function je(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 s:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case b:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return je(r)+".Consumer";case p:var a=e;return je(a._context)+".Provider";case f:return bt(e,e.render,"ForwardRef");case _:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case y:{var v=e,k=v._payload,m=v._init;try{return T(m(k))}catch{return null}}}return null}var I=Object.assign,q=0,Ee,Re,Ae,Oe,Pe,$e,Ce;function Te(){}Te.__reactDisabledLog=!0;function vt(){{if(q===0){Ee=console.log,Re=console.info,Ae=console.warn,Oe=console.error,Pe=console.group,$e=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}q++}}function yt(){{if(q--,q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ee}),info:I({},e,{value:Re}),warn:I({},e,{value:Ae}),error:I({},e,{value:Oe}),group:I({},e,{value:Pe}),groupCollapsed:I({},e,{value:$e}),groupEnd:I({},e,{value:Ce})})}q<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=D.ReactCurrentDispatcher,ue;function X(e,r,a){{if(ue===void 0)try{throw Error()}catch(v){var u=v.stack.trim().match(/\n( *(at )?)/);ue=u&&u[1]||""}return`
19
- `+ue+e}}var fe=!1,Z;{var xt=typeof WeakMap=="function"?WeakMap:Map;Z=new xt}function Me(e,r){if(!e||fe)return"";{var a=Z.get(e);if(a!==void 0)return a}var u;fe=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=ce.current,ce.current=null,vt();try{if(r){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(P){u=P}Reflect.construct(e,[],m)}else{try{m.call()}catch(P){u=P}e.call(m.prototype)}}else{try{throw Error()}catch(P){u=P}e()}}catch(P){if(P&&u&&typeof P.stack=="string"){for(var d=P.stack.split(`
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"),m=Symbol.for("react.suspense"),_=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 N=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=N.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,_t=!1,Pe;Pe=Symbol.for("react.module.reference");function mt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||_t||e===s||e===m||e===_||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 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 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,ze,Me,Ne,Be,Ie,qe;function Le(){}Le.__reactDisabledLog=!0;function vt(){{if(Y===0){Te=console.log,ze=console.info,Me=console.warn,Ne=console.error,Be=console.group,Ie=console.groupCollapsed,qe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,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:ze}),warn:I({},e,{value:Me}),error:I({},e,{value:Ne}),group:I({},e,{value:Be}),groupCollapsed:I({},e,{value:Ie}),groupEnd:I({},e,{value:qe})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=N.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 De(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(`
20
20
  `),O=u.stack.split(`
21
- `),w=d.length-1,j=O.length-1;w>=1&&j>=0&&d[w]!==O[j];)j--;for(;w>=1&&j>=0;w--,j--)if(d[w]!==O[j]){if(w!==1||j!==1)do if(w--,j--,j<0||d[w]!==O[j]){var C=`
22
- `+d[w].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),typeof e=="function"&&Z.set(e,C),C}while(w>=1&&j>=0);break}}}finally{fe=!1,ce.current=k,yt(),Error.prepareStackTrace=v}var F=e?e.displayName||e.name:"",B=F?X(F):"";return typeof e=="function"&&Z.set(e,B),B}function kt(e,r,a){return Me(e,!1)}function St(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Q(e,r,a){if(e==null)return"";if(typeof e=="function")return Me(e,St(e));if(typeof e=="string")return X(e);switch(e){case b:return X("Suspense");case h:return X("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case _:return Q(e.type,r,a);case y:{var u=e,v=u._payload,k=u._init;try{return Q(k(v),r,a)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Ne={},Ie=D.ReactDebugCurrentFrame;function ee(e){if(e){var r=e._owner,a=Q(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(a)}else Ie.setExtraStackFrame(null)}function wt(e,r,a,u,v){{var k=Function.call.bind(Y);for(var m in e)if(k(e,m)){var d=void 0;try{if(typeof e[m]!="function"){var O=Error((u||"React class")+": "+a+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}d=e[m](r,m,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){d=w}d&&!(d instanceof Error)&&(ee(v),A("%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,m,typeof d),ee(null)),d instanceof Error&&!(d.message in Ne)&&(Ne[d.message]=!0,ee(v),A("Failed %s type: %s",a,d.message),ee(null))}}}var jt=Array.isArray;function de(e){return jt(e)}function Et(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Rt(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function ze(e){if(Rt(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Et(e)),Be(e)}var Le=D.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},De,Ue;function Ot(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function $t(e,r){typeof e.ref=="string"&&Le.current}function Ct(e,r){{var a=function(){De||(De=!0,A("%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)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Tt(e,r){{var a=function(){Ue||(Ue=!0,A("%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)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Mt=function(e,r,a,u,v,k,m){var d={$$typeof:o,type:e,key:r,ref:a,props:m,_owner:k};return d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(d,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(d,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d};function Nt(e,r,a,u,v){{var k,m={},d=null,O=null;a!==void 0&&(ze(a),d=""+a),Pt(r)&&(ze(r.key),d=""+r.key),Ot(r)&&(O=r.ref,$t(r,v));for(k in r)Y.call(r,k)&&!At.hasOwnProperty(k)&&(m[k]=r[k]);if(e&&e.defaultProps){var w=e.defaultProps;for(k in w)m[k]===void 0&&(m[k]=w[k])}if(d||O){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;d&&Ct(m,j),O&&Tt(m,j)}return Mt(e,d,O,v,u,Le.current,m)}}var pe=D.ReactCurrentOwner,Fe=D.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,a=Q(e.type,e._source,r?r.type:null);Fe.setExtraStackFrame(a)}else Fe.setExtraStackFrame(null)}var ge;ge=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function We(){{if(pe.current){var e=T(pe.current.type);if(e)return`
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 F=e?e.displayName||e.name:"",q=F?Z(F):"";return typeof e=="function"&&Q.set(e,q),q}function kt(e,o,a){return De(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 De(e,wt(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 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,Ue={},Fe=N.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Fe.setExtraStackFrame(a)}else Fe.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 Ue)&&(Ue[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 We(e),!1}catch{return!0}}function We(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)),We(e)}var Ve=N.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 zt=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 Mt(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 zt(e,g,O,b,u,Ve.current,h)}}var ge=N.ReactCurrentOwner,Ke=N.ReactDebugCurrentFrame;function U(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 It(e){return""}var qe={};function Bt(e){{var r=We();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
24
+ Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Xe={};function Bt(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 r}}function Ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(r);if(qe[a])return;qe[a]=!0;var u="";e&&e._owner&&e._owner!==pe.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),U(e),A('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),U(null)}}function Ve(e,r){{if(typeof e!="object")return;if(de(e))for(var a=0;a<e.length;a++){var u=e[a];he(u)&&Ye(u,r)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var v=ut(e);if(typeof v=="function"&&v!==e.entries)for(var k=v.call(e),m;!(m=k.next()).done;)he(m.value)&&Ye(m.value,r)}}}function zt(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===_))a=r.propTypes;else return;if(a){var u=T(r);wt(a,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!ge){ge=!0;var v=T(r);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var u=r[a];if(u!=="children"&&u!=="key"){U(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),U(null);break}}e.ref!==null&&(U(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var He={};function Je(e,r,a,u,v,k){{var m=_t(e);if(!m){var d="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" 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?d+=O:d+=We();var w;e===null?w="null":de(e)?w="array":e!==void 0&&e.$$typeof===o?(w="<"+(T(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,d)}var j=Nt(e,r,a,v,k);if(j==null)return j;if(m){var C=r.children;if(C!==void 0)if(u)if(de(C)){for(var F=0;F<C.length;F++)Ve(C[F],e);Object.freeze&&Object.freeze(C)}else A("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 Ve(C,e)}if(Y.call(r,"key")){var B=T(e),P=Object.keys(r).filter(function(Yt){return Yt!=="key"}),me=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!He[B+me]){var qt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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=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)+"."),U(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),U(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 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 qt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){U(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),U(null);break}}e.ref!==null&&(U(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var et={};function tt(e,o,a,u,b,y){{var h=mt(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=Nt();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=Mt(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 F=0;F<P.length;F++)Qe(P[F],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 q=T(e),$=Object.keys(o).filter(function(Yt){return Yt!=="key"}),me=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[q+me]){var Wt=$.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} />`,me,B,qt,B),He[B+me]=!0}}return e===s?Lt(j):zt(j),j}}function Dt(e,r,a){return Je(e,r,a,!0)}function Ut(e,r,a){return Je(e,r,a,!1)}var Ft=Ut,Wt=Dt;xe.Fragment=s,xe.jsx=Ft,xe.jsxs=Wt}()),xe}process.env.NODE_ENV==="production"?rt.exports=gr():rt.exports=hr();var c=rt.exports;const _e={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let L={};var ot;(t=>{function o({children:g,onCallbackModal:f,nameModal:b,offsetTop:h}){const[_,y]=S.useState(!1),[R,$]=S.useState(!1);if(L[b].onClose=()=>{x.default.BackButton(!1),$(!0),setTimeout(()=>{y(!1),$(!1),f==null||f(),L.x(b)},300)},S.useEffect(()=>{_?L[b].onClose():(x.default.BackButton({callback:()=>L[b].onClose()}),y(!0))},[]),!!_)return c.jsx("div",{className:ne(_e.o,R&&_e.x),children:c.jsx("div",{className:ne(_e.p,R&&_e.x,h?_e.o:_e.m),children:g})})}t.Content=o;function n({import_modules:g}){let[f,b]=S.useState([]);return L.x=h=>{b(h?f.filter(_=>_.key!==h):[])},S.useEffect(()=>{g&&(L.i=g)},[]),L.add=(h,_=Date.now())=>{b([...f,{key:_,item:h}])},c.jsx(c.Fragment,{children:f.map(h=>h.item)})}t.Init=n;function s(g,f,b){L.add(c.jsx(o,{onCallbackModal:L["callback_modal"+f],nameModal:f||"",offsetTop:b,children:g},String(Date.now())),f)}t.Add=s;function i(g,f=Date.now().toString(),b){return L[f]={},{Open:y=>{t.Add(c.jsx(g,{...y,onCallbackModal:R=>{var $;($=y.callback)==null||$.call(y,R)},nameModal:f},new Date().getTime()),f,b===void 0?!0:b)}}}t.Create=i;function l(g){L[g].onClose()}t.Close=l;function p(g,f,b,h){L.i&&(h&&(b.callback=h),L.i(`${g}/modals/${f}.tsx`).then(_=>{var y;_.Open?_.Open(b):(y=_.default)!=null&&y.Open?_.default.Open(b):_.default&&_.default(b)}))}t.Open=p})(ot||(ot={}));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 o=Kt();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...t}:o.CRYPTO_PARAMS={...Gt,...t}}function Ke(){return Kt().CRYPTO_PARAMS||Gt}const Ge=t=>{let o=0;for(let s=0;s<t.length;s++){const i=t.charCodeAt(s);o=(o<<5)-o+i,o=o&o}o=Math.abs(o);let n="";for(let s=0;s<64;s++){const i=(o^s*197)&255;n+=i.toString(16).padStart(2,"0")}return n},Zt=(t,o)=>{let n=t+o;for(let i=0;i<Ke().iterations;i++)n=Ge(n);const s=new Uint8Array(32);for(let i=0;i<32;i++)s[i]=parseInt(n.substring(i*2,i*2+2),16);return s},Qt=(t,o)=>{const n=new Uint8Array(t.length),s=new Uint8Array(t.length);let i=0;for(let l=0;l<t.length;l++){const p=l%o.length;i=o[p]+l+i&255,s[l]=i}for(let l=0;l<t.length;l++)n[l]=t[l]^s[l];return n},mr=t=>new TextEncoder().encode(t),_r=t=>new TextDecoder().decode(t),br=t=>{let o="";for(let n=0;n<t.length;n+=8192){const s=t.slice(n,Math.min(n+8192,t.length));o+=String.fromCharCode.apply(null,Array.from(s))}return btoa(o)},vr=t=>{const o=atob(t),n=new Uint8Array(o.length);for(let s=0;s<o.length;s++)n[s]=o.charCodeAt(s);return n},yr=t=>{try{const o=Ge(Date.now().toString()+Math.random()).substring(0,Ke().saltLength*2),n=Ge(t+o).substring(0,8),s=Zt(Ke().key,o),i=mr(t),l=Qt(i,s),p=br(l);return`${o}.${p}.${n}`}catch{throw new Error("Не удалось зашифровать данные")}},xr=t=>{try{const o=t.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const n=o[0],s=o[1],i=o[2],l=Zt(Ke().key,n),p=vr(s),g=Qt(p,l),f=_r(g);if(Ge(f+n).substring(0,8)!==i)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var te;(t=>{t.setKey=o=>{Xt({key:o})},t.enCode=o=>{try{const n=JSON.stringify(o);return yr(n)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=o=>{try{if(!o||o.length<10)return!1;const n=xr(o);return n&&JSON.parse(n)||!1}catch{return!1}},t.setSecurityParams=(o,n)=>{Xt({iterations:o,saltLength:n})}})(te||(te={}));var ke={};/**
31
+ <%s key={someKey} {...props} />`,me,q,Wt,q),et[q+me]=!0}}return e===i?qt(E):It(E),E}}function Lt(e,o,a){return tt(e,o,a,!0)}function Dt(e,o,a){return tt(e,o,a,!1)}var Ut=Dt,Ft=Lt;Ae.Fragment=i,Ae.jsx=Ut,Ae.jsxs=Ft}()),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 D={};var ct;(t=>{function r({children:p,onCallbackModal:f,nameModal:m,offsetTop:_}){const[x,k]=w.useState(!1),[A,C]=w.useState(!1);if(D[m].onClose=()=>{v.default.BackButton(!1),C(!0),setTimeout(()=>{k(!1),C(!1),f==null||f(),D.x(m)},300)},w.useEffect(()=>{x?D[m].onClose():(v.default.BackButton({callback:()=>D[m].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,_?be.o:be.m),children:p})})}t.Content=r;function n({import_modules:p}){let[f,m]=w.useState([]);return D.x=_=>{m(_?f.filter(x=>x.key!==_):[])},w.useEffect(()=>{p&&(D.i=p)},[]),D.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){D.add(c.jsx(r,{onCallbackModal:D["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 D[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,m===void 0?!0:m)}}}t.Create=s;function l(p){D[p].onClose()}t.Close=l;function d(p,f,m,_){D.i&&(_&&(m.callback=_),D.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 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},_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=Zt(rt().key,r),s=_r(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=mr(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={};/**
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 ke;er=1;var t=S,o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function p(g,f,b){var h,_={},y=null,R=null;b!==void 0&&(y=""+b),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(R=f.ref);for(h in f)s.call(f,h)&&!l.hasOwnProperty(h)&&(_[h]=f[h]);if(g&&g.defaultProps)for(h in f=g.defaultProps,f)_[h]===void 0&&(_[h]=f[h]);return{$$typeof:o,type:g,key:y,ref:R,props:_,_owner:i.current}}return ke.Fragment=n,ke.jsx=p,ke.jsxs=p,ke}var Xe={};/**
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,m){var _,x={},k=null,A=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(A=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:A,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 Sr(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&function(){var t=S,o=Symbol.for("react.element"),n=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),g=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),$=Symbol.iterator,ct="@@iterator";function ut(e){if(e===null||typeof e!="object")return null;var r=$&&e[$]||e[ct];return typeof r=="function"?r:null}var D=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];ft("error",e,a)}}function ft(e,r,a){{var u=D.ReactDebugCurrentFrame,v=u.getStackAddendum();v!==""&&(r+="%s",a=a.concat([v]));var k=a.map(function(m){return String(m)});k.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,k)}}var dt=!1,pt=!1,gt=!1,ht=!1,mt=!1,we;we=Symbol.for("react.module.reference");function _t(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===l||mt||e===i||e===b||e===h||ht||e===R||dt||pt||gt||typeof e=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===_||e.$$typeof===p||e.$$typeof===g||e.$$typeof===f||e.$$typeof===we||e.getModuleId!==void 0))}function bt(e,r,a){var u=e.displayName;if(u)return u;var v=r.displayName||r.name||"";return v!==""?a+"("+v+")":a}function je(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 s:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case b:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return je(r)+".Consumer";case p:var a=e;return je(a._context)+".Provider";case f:return bt(e,e.render,"ForwardRef");case _:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case y:{var v=e,k=v._payload,m=v._init;try{return T(m(k))}catch{return null}}}return null}var I=Object.assign,q=0,Ee,Re,Ae,Oe,Pe,$e,Ce;function Te(){}Te.__reactDisabledLog=!0;function vt(){{if(q===0){Ee=console.log,Re=console.info,Ae=console.warn,Oe=console.error,Pe=console.group,$e=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}q++}}function yt(){{if(q--,q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Ee}),info:I({},e,{value:Re}),warn:I({},e,{value:Ae}),error:I({},e,{value:Oe}),group:I({},e,{value:Pe}),groupCollapsed:I({},e,{value:$e}),groupEnd:I({},e,{value:Ce})})}q<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=D.ReactCurrentDispatcher,ue;function X(e,r,a){{if(ue===void 0)try{throw Error()}catch(v){var u=v.stack.trim().match(/\n( *(at )?)/);ue=u&&u[1]||""}return`
48
- `+ue+e}}var fe=!1,Z;{var xt=typeof WeakMap=="function"?WeakMap:Map;Z=new xt}function Me(e,r){if(!e||fe)return"";{var a=Z.get(e);if(a!==void 0)return a}var u;fe=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=ce.current,ce.current=null,vt();try{if(r){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(P){u=P}Reflect.construct(e,[],m)}else{try{m.call()}catch(P){u=P}e.call(m.prototype)}}else{try{throw Error()}catch(P){u=P}e()}}catch(P){if(P&&u&&typeof P.stack=="string"){for(var d=P.stack.split(`
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"),m=Symbol.for("react.suspense"),_=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 N=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=N.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,_t=!1,Pe;Pe=Symbol.for("react.module.reference");function mt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||_t||e===s||e===m||e===_||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 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 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,ze,Me,Ne,Be,Ie,qe;function Le(){}Le.__reactDisabledLog=!0;function vt(){{if(Y===0){Te=console.log,ze=console.info,Me=console.warn,Ne=console.error,Be=console.group,Ie=console.groupCollapsed,qe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,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:ze}),warn:I({},e,{value:Me}),error:I({},e,{value:Ne}),group:I({},e,{value:Be}),groupCollapsed:I({},e,{value:Ie}),groupEnd:I({},e,{value:qe})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=N.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 De(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(`
49
49
  `),O=u.stack.split(`
50
- `),w=d.length-1,j=O.length-1;w>=1&&j>=0&&d[w]!==O[j];)j--;for(;w>=1&&j>=0;w--,j--)if(d[w]!==O[j]){if(w!==1||j!==1)do if(w--,j--,j<0||d[w]!==O[j]){var C=`
51
- `+d[w].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),typeof e=="function"&&Z.set(e,C),C}while(w>=1&&j>=0);break}}}finally{fe=!1,ce.current=k,yt(),Error.prepareStackTrace=v}var F=e?e.displayName||e.name:"",B=F?X(F):"";return typeof e=="function"&&Z.set(e,B),B}function kt(e,r,a){return Me(e,!1)}function St(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Q(e,r,a){if(e==null)return"";if(typeof e=="function")return Me(e,St(e));if(typeof e=="string")return X(e);switch(e){case b:return X("Suspense");case h:return X("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return kt(e.render);case _:return Q(e.type,r,a);case y:{var u=e,v=u._payload,k=u._init;try{return Q(k(v),r,a)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Ne={},Ie=D.ReactDebugCurrentFrame;function ee(e){if(e){var r=e._owner,a=Q(e.type,e._source,r?r.type:null);Ie.setExtraStackFrame(a)}else Ie.setExtraStackFrame(null)}function wt(e,r,a,u,v){{var k=Function.call.bind(Y);for(var m in e)if(k(e,m)){var d=void 0;try{if(typeof e[m]!="function"){var O=Error((u||"React class")+": "+a+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}d=e[m](r,m,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(w){d=w}d&&!(d instanceof Error)&&(ee(v),A("%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,m,typeof d),ee(null)),d instanceof Error&&!(d.message in Ne)&&(Ne[d.message]=!0,ee(v),A("Failed %s type: %s",a,d.message),ee(null))}}}var jt=Array.isArray;function de(e){return jt(e)}function Et(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Rt(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function ze(e){if(Rt(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Et(e)),Be(e)}var Le=D.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},De,Ue;function Ot(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function $t(e,r){typeof e.ref=="string"&&Le.current}function Ct(e,r){{var a=function(){De||(De=!0,A("%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)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Tt(e,r){{var a=function(){Ue||(Ue=!0,A("%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)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Mt=function(e,r,a,u,v,k,m){var d={$$typeof:o,type:e,key:r,ref:a,props:m,_owner:k};return d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(d,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(d,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d};function Nt(e,r,a,u,v){{var k,m={},d=null,O=null;a!==void 0&&(ze(a),d=""+a),Pt(r)&&(ze(r.key),d=""+r.key),Ot(r)&&(O=r.ref,$t(r));for(k in r)Y.call(r,k)&&!At.hasOwnProperty(k)&&(m[k]=r[k]);if(e&&e.defaultProps){var w=e.defaultProps;for(k in w)m[k]===void 0&&(m[k]=w[k])}if(d||O){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;d&&Ct(m,j),O&&Tt(m,j)}return Mt(e,d,O,v,u,Le.current,m)}}var pe=D.ReactCurrentOwner,Fe=D.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,a=Q(e.type,e._source,r?r.type:null);Fe.setExtraStackFrame(a)}else Fe.setExtraStackFrame(null)}var ge;ge=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function We(){{if(pe.current){var e=T(pe.current.type);if(e)return`
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 F=e?e.displayName||e.name:"",q=F?Z(F):"";return typeof e=="function"&&Q.set(e,q),q}function kt(e,o,a){return De(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 De(e,wt(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 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,Ue={},Fe=N.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Fe.setExtraStackFrame(a)}else Fe.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 Ue)&&(Ue[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 We(e),!1}catch{return!0}}function We(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)),We(e)}var Ve=N.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 zt=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 Mt(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 zt(e,g,O,b,u,Ve.current,h)}}var ge=N.ReactCurrentOwner,Ke=N.ReactDebugCurrentFrame;function U(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 It(e){return""}var qe={};function Bt(e){{var r=We();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
53
+ Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Xe={};function Bt(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 r}}function Ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Bt(r);if(qe[a])return;qe[a]=!0;var u="";e&&e._owner&&e._owner!==pe.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),U(e),A('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),U(null)}}function Ve(e,r){{if(typeof e!="object")return;if(de(e))for(var a=0;a<e.length;a++){var u=e[a];he(u)&&Ye(u,r)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var v=ut(e);if(typeof v=="function"&&v!==e.entries)for(var k=v.call(e),m;!(m=k.next()).done;)he(m.value)&&Ye(m.value,r)}}}function zt(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===_))a=r.propTypes;else return;if(a){var u=T(r);wt(a,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!ge){ge=!0;var v=T(r);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lt(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var u=r[a];if(u!=="children"&&u!=="key"){U(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),U(null);break}}e.ref!==null&&(U(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var He={};function Je(e,r,a,u,v,k){{var m=_t(e);if(!m){var d="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(d+=" 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?d+=O:d+=We();var w;e===null?w="null":de(e)?w="array":e!==void 0&&e.$$typeof===o?(w="<"+(T(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):w=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",w,d)}var j=Nt(e,r,a,v,k);if(j==null)return j;if(m){var C=r.children;if(C!==void 0)if(u)if(de(C)){for(var F=0;F<C.length;F++)Ve(C[F],e);Object.freeze&&Object.freeze(C)}else A("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 Ve(C,e)}if(Y.call(r,"key")){var B=T(e),P=Object.keys(r).filter(function(Yt){return Yt!=="key"}),me=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!He[B+me]){var qt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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=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)+"."),U(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),U(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 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 qt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){U(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),U(null);break}}e.ref!==null&&(U(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var et={};function tt(e,o,a,u,b,y){{var h=mt(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=Nt();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=Mt(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 F=0;F<P.length;F++)Qe(P[F],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 q=T(e),$=Object.keys(o).filter(function(Yt){return Yt!=="key"}),me=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[q+me]){var Wt=$.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} />`,me,B,qt,B),He[B+me]=!0}}return e===s?Lt(j):zt(j),j}}function Dt(e,r,a){return Je(e,r,a,!0)}function Ut(e,r,a){return Je(e,r,a,!1)}var Ft=Ut,Wt=Dt;Xe.Fragment=s,Xe.jsx=Ft,Xe.jsxs=Wt}()),Xe}process.env.NODE_ENV==="production"?kr():Sr();const wr="0.0.46",rr={version:wr},J={},z={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 V(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}V().elcrm||(V().elcrm={}),Object.assign(V().elcrm,{router:rr.version});function H(t){var o,n,s,i;const l=V();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const p={page:(o=l.ROUTER_PARAMS)==null?void 0:o.page,module:(n=l.ROUTER_PARAMS)==null?void 0:n.module,tab:(s=l.ROUTER_PARAMS)==null?void 0:s.tab,id:(i=l.ROUTER_PARAMS)==null?void 0:i.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:p}}else{t.debug||z.debug;const p={page:z==null?void 0:z.page,module:z==null?void 0:z.module,tab:z==null?void 0:z.tab,id:z==null?void 0:z.id};l.ROUTER_PARAMS={...z,...t,prev:p}}}function E(){return V().ROUTER_PARAMS||z}function ae(t){const o=V();o.ROUTER_PARAMS||(o.ROUTER_PARAMS={...z}),o.ROUTER_PARAMS.LISTENER||(o.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(n=>{o.ROUTER_PARAMS.LISTENER[n]||(o.ROUTER_PARAMS.LISTENER[n]=[]),Array.isArray(o.ROUTER_PARAMS.LISTENER[n])||(o.ROUTER_PARAMS.LISTENER[n]=[o.ROUTER_PARAMS.LISTENER[n]]),o.ROUTER_PARAMS.LISTENER[n].includes(t[n])||o.ROUTER_PARAMS.LISTENER[n].push(t[n])})}function W(){var t;const o=V();let n=((t=o.ROUTER_PARAMS)==null?void 0:t.LISTENER)||z.LISTENER;return n||(n={},o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER=n:z.LISTENER=n),new Proxy(n,{get(s,i){const l=s[i];return Array.isArray(l)&&l.length>0?(...p)=>{l.forEach(g=>{if(typeof g=="function")try{g(...p)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function or(t,o){const n=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[s,i]of Object.entries(o))if(s.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===n)return i;return null}function nt(t){const{basePath:o=".",devExtensions:n=[".tsx",".ts",".jsx",".js"],prodExtension:s=".js"}=t||{};return i=>{const l=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(o===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const p=o.replace(/^\.\//,"").replace(/\/+$/,""),g=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${p}/${g}.js`)}}}function jr(t){const{basePath:o=".",modules:n,pages:s}=t||{};return i=>{if(n){const p=or(i,n);if(p)return p()}if(s){const p=or(i,s);if(p)return p()}const l=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(o===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const p=o.replace(/^\.\//,"").replace(/\/+$/,""),g=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${p}/${g}.js`)}}}function nr(t=".",o,n){return o||n?jr({basePath:t,modules:o,pages:n}):nt({basePath:t})}function Er(){var t;let o=sessionStorage.getItem("f");if(o){if(o=te.deCode(o),!o)return!1;H({id:o.id,tab:o.tab,page:o.page,module:o.module,time:o.time,payment:{active:!0},module_admin:o.module_admin})}else H({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?E().page:E().auth,module:E().module});return!0}function ar(){return E().page}function ir(){return E().module||""}function at(){return E().tab}function sr(){return E().id}function Rr(t){let o=i=>(H({page:i}),i);const[n,s]=S.useState(ar()||t&&o(t)||E().page);return S.useEffect(()=>{const i=l=>{s(l)};return ae({page:i}),()=>{var l,p;const g=V();if((p=(l=g.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&p.page){const f=g.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const b=f.indexOf(i);b>-1&&f.splice(b,1)}}}},[]),n}function Ar(t,o=!0,n={}){H({page:t,...n}),sessionStorage.setItem(E().STORAGE,te.enCode(E())),o&&W().page(t)}function Or(t){return E().page===t}function Pr(){return E().prev}function $r(t,o){const[n,s]=S.useState(ir()||t||E().module);return S.useEffect(()=>(ae({module:s}),()=>{const i=W();i.module===s&&delete i.module}),[]),n}function Cr(t,o=!0){H({module:t}),sessionStorage.setItem(E().STORAGE,te.enCode(E())),o&&W().module(t)}function Tr(t){return E().module===t}function Mr(t,o){if(typeof t!="function"){const[n,s]=S.useState(!o),[i,l]=S.useState(t||at());return ae({tabs:l}),o&&S.useEffect(()=>{s(!0)},[]),[i,n]}else ae({tabs:t})}function Nr(t){let o=i=>(H({tab:i}),i);const[n,s]=S.useState(at()||t&&o(t)||E().tab);return S.useEffect(()=>{const i=l=>{s(l)};return ae({tabs:i}),()=>{var l,p;const g=V();if((p=(l=g.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&p.tabs){const f=g.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const b=f.indexOf(i);b>-1&&f.splice(b,1)}}}},[]),n}async function Ir(t,o=!0){H({tab:t}),sessionStorage.setItem(E().STORAGE,te.enCode(E())),o&&(W().tabs&&W().tabs(t))}function Br(t){return E().tab===t}function zr(t){if(typeof t!="function"){const[o,n]=S.useState(t||sr());return S.useEffect(()=>{const s=i=>{n(i)};return ae({id:s}),()=>{const i=W();i.id===s&&delete i.id}},[]),o}else S.useEffect(()=>(ae({id:t}),()=>{var o,n;const s=V();if((n=(o=s.ROUTER_PARAMS)==null?void 0:o.LISTENER)!=null&&n.id){const i=s.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(i)){const l=i.indexOf(t);l>-1&&i.splice(l,1)}}}),[t])}function Lr(t){}async function Dr(t,o=!0){H({id:t}),sessionStorage.setItem(E().STORAGE,te.enCode(E())),o&&W().id(t)}function Ur(t){return Number(E().id)===t}async function Fr(t){var o,n,s,i,l,p,g,f;const{page:b,module:h,tab:_,id:y}=t;b!==void 0&&(J.page=b),h!==void 0&&(J.module=h),_!==void 0&&(J.tab=_),y!==void 0&&(J.id=y),H({...J}),y!==void 0&&((n=(o=W()).id)==null||n.call(o,y)),_!==void 0&&((i=(s=W()).tabs)==null||i.call(s,_)),h!==void 0&&((p=(l=W()).module)==null||p.call(l,h)),b!==void 0&&((f=(g=W()).page)==null||f.call(g,b)),sessionStorage.setItem(E().STORAGE,te.enCode(E()))}const be={Reset(){J.id=0,J.tab="",J.page=E().page,J.module=E().module},Default({module:t=E().module,page:o=E().page,auth:n=E().auth,debug:s=E().debug,dir:i=E().dir||".",importModules:l,modules:p,pages:g,glob:f}){let b=l,h=p,_=g;f?(h=typeof p=="object"?p:f,_=typeof g=="object"?g:f):(h=h||f,_=_||f),!b&&(h||_)?!f&&(typeof h=="string"||typeof _=="string")?b=nt({basePath:i}):b=nr(i,h,_):b||(b=nt({basePath:i})),H({page:o,module:t,auth:n,debug:s,dir:i,importModules:b}),Er()},createImportModules:nr,getImportModules:()=>E().importModules,usePage:Rr,setPage:Ar,getPage:ar,isPage:Or,getBack:Pr,useModule:$r,setModule:Cr,getModule:ir,isModule:Tr,useTabs:Mr,useTab:Nr,setTabs:Ir,getTabs:at,isTabs:Br,useId:zr,subId:Lr,setId:Dr,getId:sr,isId:Ur,navigate:Fr},ie={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 Ze={};function Wr(){const[t,o]=S.useState([]);return Ze.set=n=>{o([...t,n])},Ze.del=n=>{t.forEach((s,i)=>{s.key===n&&t.splice(i,1)}),o(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:ie.n,children:t.map(n=>n.item)})}function qr(t){let o=new Date().getTime();t.key=o,Ze.set({item:c.jsx(Yr,{data:t},o),key:o})}function Yr(t){const o=t.data;let[n]=S.useState("show"),[s,i]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){i(!0),Ze.del(o.key)},5e3)},[o.key]);let l;switch(o.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 p={error:ie.e,success:ie.s,warning:ie.w};return c.jsx(c.Fragment,{children:s?c.jsx(c.Fragment,{}):c.jsxs("div",{className:ie.i+p[o.type]+` ${o.thema!==void 0?ie.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:ie.t,children:o.text})]})})}let se={Send:qr,Init:Wr};const re={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"},oe={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,o]=S.useState(!1),[n,s]=S.useState(!1),[i,l]=S.useState("dark"),[p,g]=S.useState(!1),[f,b]=S.useState(!1);oe.is=!0,oe.MainButton.set=o,oe.BackButton.set=s,S.useEffect(()=>{var y;M[i]["--tg-theme-bg-color-alpha"]=M[i]["--tg-theme-bg-color"]+"b3",M[i]["--tg-theme-secondary-bg-color-alpha"]=M[i]["--tg-theme-secondary-bg-color"]+"d3",M[i]["--tg-theme-bg-color-alpha-25"]=M[i]["--tg-theme-bg-color"]+"40",M[i]["--tg-theme-secondary-bg-color-alpha-25"]=M[i]["--tg-theme-secondary-bg-color"]+"40";for(let R in M[i])document.documentElement.style.setProperty(R,M[i][R]);((y=G.safeAreaInset)==null?void 0:y.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):G.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=y=>{for(let R in M[y])document.documentElement.style.setProperty(R,M[y][R]),document.documentElement.setAttribute("data-color-scheme",y);l(y),g(!1)},_=()=>{g(!1),b(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:re.d,children:[n===!1?c.jsx("div",{className:re.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var y;n.page===void 0?(y=n.callback)==null||y.call(n):be.setPage(n.page)},className:re.b,children:"Назад"}),c.jsx("div",{className:re.o,onClick:()=>g(!p),children:"Меню"})]}),c.jsx(se.Init,{}),t&&c.jsx("div",{className:re.m,children:c.jsx("button",{onClick:()=>{t.page&&be.setPage(t.page),t.callback&&t.callback()},children:t.text})}),p?c.jsxs("div",{className:re.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:_,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:()=>h("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>h("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>g(!p),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:b}):""]})}else return S.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",G.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",G.themeParams.bg_color+"b3"),((t=G.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):G.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(se.Init,{})})},Hr=({setAuthorization:t})=>{let o={},n=()=>{localStorage.setItem("auth",o)};return c.jsx("div",{className:re.a,children:c.jsxs("div",{className:re.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:n,children:" Сохранить "})]})})},lr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:o,isScroll:n=!0})=>c.jsx("div",{className:[lr.p,n&&lr.s,t].filter(s=>s!==void 0).join(" "),children:o}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:o})=>c.jsx("div",{className:[Kr.l,o].filter(n=>n!==void 0).join(" "),children:t}),le={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 o=s=>{be.setPage(s)},n=s=>{G.openTelegramLink(s)};return c.jsx("div",{className:le.m,children:t.map(s=>c.jsx("div",{className:le.g,children:s.items.map((i,l)=>c.jsxs("div",{className:le.i,onClick:()=>{i.link&&n(i.link),i.page&&o(i.page),i.callback&&i.callback()},children:[c.jsxs("div",{className:le.c,children:[c.jsx("span",{className:le.l,style:{background:i.color},children:i.icon}),i.title,i.count&&c.jsx("span",{className:le.n,children:i.count})]}),c.jsx("span",{className:le.a,children:"›"})]},l))},s.id))})},K={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"},Qe={};function Zr({children:t,icon:o,iconBadge:n=0,title:s,className:i,view:l="list",position:p="left",name:g="default"}){const[f,b]=S.useState(!1),[h,_]=S.useState(null);S.useEffect(()=>{let R=document.querySelector(".p_sb");return R||(R=document.createElement("div"),R.className="_p_sb",document.body.appendChild(R)),_(R),Qe[g]=$=>b($),()=>{R&&R.parentNode&&R.parentNode.removeChild(R)}},[]);const y=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:K.o,onClick:()=>b(!1)}),c.jsxs("div",{className:ne(K.m,p==="left"?K.l:K.r,f&&K.x,i),children:[c.jsxs("div",{className:K.h,children:[s&&c.jsx("h3",{className:K.t,children:s}),c.jsxs("svg",{onClick:()=>b(!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:K.c,children:l==="list"?c.jsx("ul",{className:K.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[o&&c.jsx("div",{onClick:()=>b(!0),className:"bage","data-count":n,children:o}),h&&pr.createPortal(y,h)]})}const Qr=(t,o)=>{var n;(n=Qe[t])==null||n.call(Qe,o)};let Se=()=>{};const cr=({children:t,title:o,isOverlay:n=!0,footer:s=!0,className:i,onOpen:l})=>{const[p,g]=S.useState(!1);return Se=()=>{g(!0),setTimeout(()=>{var f;l==null||l(!1),(f=ve==null?void 0:ve.onClose)==null||f.call(ve)},300)},c.jsx("div",{className:`footer-menu-overlay ${n?"is-overlay":""} ${p?"closing":""} `,onClick:Se,children:c.jsxs("div",{className:`footer-menu-popup-book ${p?"closing":""} ${i||""} ${s?"footer":""}`,onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:o}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Se,children:"✕"})]}),t]})})},et={h:"_h_4aije_1",r:"_r_4aije_23",c:"_c_4aije_26",x:"_x_4aije_29"},eo={b:"_b_r6m8n_1"},to=({className:t,value:o})=>c.jsx("div",{className:[eo.b,t].filter(n=>n!==void 0).join(" "),children:o}),ve=[],ur=(t,o)=>t.findIndex(n=>(n==null?void 0:n.page)===o),ro=({actions:t,children:o,className:n,toHide:s=!1,page:i,onPageChange:l,direction:p="row"})=>{const[g,f]=S.useState(null),[b,h]=S.useState(i?ur(t||[],i):0);return ve.onClose=()=>{f(null),h(i?ur(t||[],i):0)},S.useEffect(()=>{if(!s)return;const _=document.querySelectorAll("[contenteditable]"),y=()=>{const $=document.querySelector("footer");$&&$.classList.remove(et.x)},R=()=>{const $=document.querySelector("footer");$&&$.classList.add(et.x)};return _.forEach($=>{$.addEventListener("focus",R,!0),$.addEventListener("blur",y,!0)}),()=>{_.forEach($=>{$.removeEventListener("focus",R,!0),$.removeEventListener("blur",y,!0)})}},[]),c.jsxs(c.Fragment,{children:[g,c.jsxs("footer",{className:ne(et.h,et[p==="row"?"r":"c"],n),children:[o,t&&t.map((_,y)=>c.jsxs("div",{"data-active":b===y?"true":"false",onClick:()=>{_.page&&(h(y),l==null||l(_.page)),_.onClick&&_.onClick(()=>h(y)),_.component&&(b===y?Se():(f(_.component),h(y)))},children:[_.icon,_.title&&c.jsx("span",{children:_.title}),_.badge&&c.jsx(to,{value:_.badge})]},y))]})]})},tt={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},it={};function oo({children:t,name:o,onClose:n,isOpen:s,isScroll:i=!0,nextBackButton:l}){const[p,g]=S.useState(!1);return S.useEffect(()=>{if(!s)return;const f=l===void 0?dr().pop():l,b=()=>{g(!1),setTimeout(()=>{lt(f||!1),n==null||n()},300)};it[o]={onClose:b,onOpen:()=>{g(!0)}},lt({callback:b});const h=setTimeout(()=>{g(!0)},10);return()=>{clearTimeout(h)}},[s]),s?c.jsxs("div",{className:ne(tt.w,p&&tt.v,i&&tt.s),children:[c.jsx("div",{className:tt.n}),t]}):""}const no=(t,o)=>{var n,s;o?(n=it[t])==null||n.onOpen():(s=it[t])==null||s.onClose()},fr={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function ao({className:t,children:o,onScrollEnd:n,offset:s=100,isLoading:i,isScrollBar:l=!1}){const[p,g]=S.useState(i||!1);S.useEffect(()=>{g(i||!1)},[i]);let f={onScroll:b=>{const{scrollTop:h,scrollHeight:_,clientHeight:y}=b.currentTarget;h+y>=_-s&&!p&&(g(!0),n==null||n())}};return c.jsx("div",{...f,className:ne(fr.s,!l&&fr.n,t),children:o})}const st={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function io({children:t,className:o,position:n="center",title:s}){let i="";return n==="left"?i=st.l:n==="right"&&(i=st.r),c.jsxs("div",{className:ne(st.a,i,o),children:[t,s&&c.jsx("b",{children:s})]})}const N={state:[!1],listen:[],prev:{},router:t=>{t===!1?(x.default.WebApp.BackButton.isVisible=!1,x.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.state.length!==1&&N.state.pop()):(x.default.WebApp.BackButton.isVisible=!0,x.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.listen.push(()=>{var n;let o=N.state.pop();N.prev=be.getPage(),o.page!==void 0?be.setPage(o.page):(n=o.callback)==null||n.call(o)}),G.BackButton.onClick(N.listen[0]))}},ne=(...t)=>t.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");x.default=void 0,(t=>{var o;t.WebApp=typeof window<"u"&&((o=window.Telegram)==null?void 0:o.WebApp)||{},t.getUser=()=>{var n;return((n=t.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=n=>{if(oe.is)return n({latitude:55.752555,longitude:37.623123});let s=()=>{t.WebApp.LocationManager.getLocation(async i=>{if(!i){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}n(i)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{s()}):s()},t.Notice={Send:(n,s,i)=>{var l,p;s!==void 0?(se.Send({type:n,text:s,thema:i}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(se.Send(n),(p=t.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var s;se.Send({type:"error",text:n}),(s=t.WebApp.HapticFeedback)==null||s.notificationOccurred("error")},Success:n=>{var s;se.Send({type:"success",text:n}),(s=t.WebApp.HapticFeedback)==null||s.notificationOccurred("success")},Warning:n=>{var s;se.Send({type:"warning",text:n}),(s=t.WebApp.HapticFeedback)==null||s.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ro,t.BottomSheet=cr,t.toggleBottomSheet=Se,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=oo,t.AppBar=io,t.SideBarController=Qr,t.SidePanelController=no,t.Scroll=ao,t.Modal=ot,t.Menu=Xr,t.MainButton={callback:[],set:n=>{oe.is?oe.MainButton.set(n):(t.WebApp.MainButton.callback.forEach(s=>{t.WebApp.MainButton.offClick(s)}),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 s;n.page===void 0?(s=n.callback)==null||s.call(n):be.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=>{oe.is?oe.BackButton.set(n):(N.state.push(n),N.router(n))}})(x.default||(x.default={}));const so=x.default.TabBar,lo=cr,lt=x.default.BackButton,co=x.default.BackButtonPrev,dr=x.default.BackButtonState,uo=x.default.Notice,fo=x.default.SafeArea,po=x.default.Loading,go=x.default.Menu,ho=x.default.SidePanel,mo=x.default.Scroll,_o=x.default.AppBar,bo=x.default.Sidebar,vo=x.default.Location,yo=x.default.SidePanelController,{Header:xo,toggleBottomSheet:ko,Modal:So,MainButton:wo,WebApp:G,getUser:jo}=x.default;x.AppBar=_o,x.BackButton=lt,x.BackButtonPrev=co,x.BackButtonState=dr,x.BottomSheet=lo,x.Header=xo,x.Loading=po,x.Location=vo,x.MainButton=wo,x.Menu=go,x.Modal=So,x.Notice=uo,x.SafeArea=fo,x.Scroll=mo,x.SidePanel=ho,x.SidePanelController=yo,x.Sidebar=bo,x.TabBar=so,x.WebApp=G,x.clsx=ne,x.getUser=jo,x.toggleBottomSheet=ko,Object.defineProperties(x,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,me,q,Wt,q),et[q+me]=!0}}return e===i?qt(E):It(E),E}}function Lt(e,o,a){return tt(e,o,a,!0)}function Dt(e,o,a){return tt(e,o,a,!1)}var Ut=Dt,Ft=Lt;nt.Fragment=i,nt.jsx=Ut,nt.jsxs=Ft}()),nt}process.env.NODE_ENV==="production"?kr():wr();const Sr="0.0.46",rr={version:Sr},K={},L={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||L.debug;const d={page:L==null?void 0:L.page,module:L==null?void 0:L.module,tab:L==null?void 0:L.tab,id:L==null?void 0:L.id};l.ROUTER_PARAMS={...L,...t,prev:d}}}function R(){return H().ROUTER_PARAMS||L}function ie(t){const r=H();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...L}),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 W(){var t;const r=H();let n=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||L.LISTENER;return n||(n={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=n:L.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 m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}function Ar(t,r=!0,n={}){J({page:t,...n}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&W().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=W();s.module===i&&delete s.module}),[]),n}function Cr(t,r=!0){J({module:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&W().module(t)}function Tr(t){return R().module===t}function zr(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 Mr(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 m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}async function Nr(t,r=!0){J({tab:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&(W().tabs&&W().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=W();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 qr(t){}async function Lr(t,r=!0){J({id:t}),sessionStorage.setItem(R().STORAGE,re.enCode(R())),r&&W().id(t)}function Dr(t){return Number(R().id)===t}async function Ur(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=W()).id)==null||n.call(r,k)),x!==void 0&&((s=(i=W()).tabs)==null||s.call(i,x)),_!==void 0&&((d=(l=W()).module)==null||d.call(l,_)),m!==void 0&&((f=(p=W()).page)==null||f.call(p,m)),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 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=nr(s,_,x):m||(m=ut({basePath:s})),J({page:r,module:t,auth:n,debug:i,dir:s,importModules:m}),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:zr,useTab:Mr,setTabs:Nr,getTabs:ft,isTabs:Br,useId:Ir,subId:qr,setId:Lr,getId:sr,isId:Dr,navigate:Ur},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 Fr(){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 Wr(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:Wr,Init:Fr};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 z={};z.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"},z.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"},z.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;z[s]["--tg-theme-bg-color-alpha"]=z[s]["--tg-theme-bg-color"]+"b3",z[s]["--tg-theme-secondary-bg-color-alpha"]=z[s]["--tg-theme-secondary-bg-color"]+"d3",z[s]["--tg-theme-bg-color-alpha-25"]=z[s]["--tg-theme-bg-color"]+"40",z[s]["--tg-theme-secondary-bg-color-alpha-25"]=z[s]["--tg-theme-secondary-bg-color"]+"40";for(let A in z[s])document.documentElement.style.setProperty(A,z[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 _=k=>{for(let A in z[k])document.documentElement.style.setProperty(A,z[k][A]),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:" Сохранить "})]})})},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,m]=w.useState(!1),[_,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=>m(C),()=>{A&&A.parentNode&&A.parentNode.removeChild(A)}},[]);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 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_1nuzq_1",r:"_r_1nuzq_54",c:"_c_1nuzq_57",x:"_x_1nuzq_60",b:"_b_1nuzq_64",a:"_a_1nuzq_100",draw:"_draw_1nuzq_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=()=>{_(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)},N=()=>{C(!1)},j={};return d==="liquid-glass"&&(j.onMouseDown=ke,j.onMouseUp=we,j.onMouseLeave=N,j.onTouchStart=ke,j.onTouchEnd=we),c.jsxs(c.Fragment,{children:[m,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:_,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(()=>{gt(f||!1),n==null||n()},300)};dt[r]={onClose:m,onOpen:()=>{p(!0)}},gt({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()},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:m=>{const{scrollTop:_,scrollHeight:x,clientHeight:k}=m.currentTarget;_+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 M={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.state.length!==1&&M.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.listen.push(()=>{var n;let r=M.state.pop();M.prev=ve.getPage(),r.page!==void 0?ve.setPage(r.page):(n=r.callback)==null||n.call(r)}),X.BackButton.onClick(M.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=()=>{M.prev&&(0,t.BackButton)(M.prev)},t.BackButtonState=()=>M.state,t.BackButton=n=>{ne.is?ne.BackButton.set(n):(M.state.push(n),M.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,_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=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=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"}})});
@@ -6,6 +6,8 @@ export type TFooter = {
6
6
  page?: string;
7
7
  toHide?: boolean;
8
8
  direction?: "row" | "column";
9
+ actual?: boolean;
10
+ style?: "liquid-glass" | "default";
9
11
  onPageChange?: (page: string) => void;
10
12
  };
11
13
  export type TAction = {
@@ -16,6 +18,6 @@ export type TAction = {
16
18
  badge?: any;
17
19
  onClick?: (onActive: () => void) => void;
18
20
  };
19
- declare const TabBar: ({ actions, children, className, toHide, page, onPageChange, direction, }: TFooter) => import("react/jsx-runtime").JSX.Element;
21
+ declare const TabBar: ({ actions, children, className, actual, toHide, page, style, onPageChange, direction, }: TFooter) => import("react/jsx-runtime").JSX.Element;
20
22
  export default TabBar;
21
23
  export { events };
@@ -56,7 +56,7 @@ declare namespace Telegram {
56
56
  * @param {(page: string) => void} [onPageChange] - Функция для обработки смены страницы
57
57
  * @param {boolean} [toHide=false] - Скрывать при открытой клавиатуре
58
58
  */
59
- const TabBar: ({ actions, children, className, toHide, page, onPageChange, direction, }: import("./TabBar/TabBar").TFooter) => import("react/jsx-runtime").JSX.Element;
59
+ const TabBar: ({ actions, children, className, actual, toHide, page, style, onPageChange, direction, }: import("./TabBar/TabBar").TFooter) => import("react/jsx-runtime").JSX.Element;
60
60
  /**
61
61
  * @param {object} props - параметры компонента
62
62
  * @param {React.ReactNode} props.children - Контент внутри шита
@@ -110,7 +110,7 @@ declare namespace Telegram {
110
110
  * @param {(page: string) => void} [onPageChange] - Функция для обработки смены страницы
111
111
  * @param {boolean} [toHide=false] - Скрывать при открытой клавиатуре
112
112
  */
113
- export declare const TabBar: ({ actions, children, className, toHide, page, onPageChange, direction, }: import('./TabBar/TabBar').TFooter) => import("react/jsx-runtime").JSX.Element;
113
+ export declare const TabBar: ({ actions, children, className, actual, toHide, page, style, onPageChange, direction, }: import('./TabBar/TabBar').TFooter) => import("react/jsx-runtime").JSX.Element;
114
114
  /**
115
115
  * @param {object} props - параметры компонента
116
116
  * @param {React.ReactNode} props.children - Контент внутри шита
@@ -178,6 +178,7 @@ export declare const AppBar: typeof _AppBar;
178
178
  export declare const Sidebar: typeof _Sidebar;
179
179
  export declare const Location: (callback: (locationData: any) => void) => void;
180
180
  export declare const SidePanelController: (name: string, action: boolean) => void;
181
+ export declare const SideBarController: (name: string, action: boolean) => void;
181
182
  export declare const Header: () => import("react/jsx-runtime").JSX.Element, toggleBottomSheet: () => void, Modal: typeof _Modal, MainButton: {
182
183
  callback: never[];
183
184
  set: (j: MainButton | boolean) => void;
@@ -0,0 +1,32 @@
1
+ import { JSX } from 'react';
2
+ type TLine = {
3
+ name: "add" | "add_circle" | "albums" | "aperture" | "bag_handle" | "chatbubble_ellipses" | "close_circle" | "close" | "document_text" | "download" | "duplicate" | "flame" | "flask" | "funnel" | "gift" | "grid" | "happy" | "heart" | "image" | "images" | "information_circle" | "laptop" | "layers" | "menu" | "options" | "people" | "person_add" | "person" | "power" | "pricetags" | "reader" | "save" | "settings" | "share" | "shield_checkmark" | "sparkles" | "square" | "star" | "sync" | "thumbs_down" | "thumbs_up" | "trash_bin" | "dashboard_square_01" | "filter" | "layout_grid" | "layout_2_row" | "list_view" | "flask_conical";
4
+ size?: number;
5
+ color?: string;
6
+ style?: any;
7
+ className?: string;
8
+ onClick?: () => void;
9
+ };
10
+ type TSolid = {
11
+ name: "alert_circle" | "camera" | "checkmark_circle" | "close_circle" | "extension_puzzle" | "flame" | "funnel" | "heart" | "person" | "pricetag" | "pricetags" | "sparkles" | "star" | "thumbs_down" | "thumbs_up" | "triangle";
12
+ size?: number;
13
+ color?: string;
14
+ style?: any;
15
+ className?: string;
16
+ onClick?: () => void;
17
+ };
18
+ type TLoading = {
19
+ name: "wind_toy";
20
+ size?: number;
21
+ color?: string;
22
+ style?: any;
23
+ className?: string;
24
+ onClick?: () => void;
25
+ };
26
+ type TIcon = {
27
+ Line: (p: TLine) => JSX.Element;
28
+ Solid: (p: TSolid) => JSX.Element;
29
+ Loading: (p: TLoading) => JSX.Element;
30
+ };
31
+ declare const Icons: TIcon;
32
+ export default Icons;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.129",
3
+ "version": "0.0.131",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",
@@ -56,7 +56,7 @@
56
56
  "scripts": {
57
57
  "dev": "vite",
58
58
  "test": "bun run test/dev.ts",
59
- "test:dev": "bun run test/main.tsx",
59
+ "test:dev": "vite",
60
60
  "build": "vite build"
61
61
  }
62
62
  }